Swarmlab.io DocLive is a *free online AsciiDoc editor*. - Just type AsciiDoc source text, - ...and the live preview appears
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

65 lines
1.8 MiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"02f0":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.defineMode("shell",(function(){var e={};function n(t,n){for(var r=0;r<n.length;r++)e[n[r]]=t}var r=["true","false"],i=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],o=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];function a(t,n){if(t.eatSpace())return null;var r=t.sol(),i=t.next();if("\\"===i)return t.next(),null;if("'"===i||'"'===i||"`"===i)return n.tokens.unshift(s(i,"`"===i?"quote":"string")),u(t,n);if("#"===i)return r&&t.eat("!")?(t.skipToEnd(),"meta"):(t.skipToEnd(),"comment");if("$"===i)return n.tokens.unshift(c),u(t,n);if("+"===i||"="===i)return"operator";if("-"===i)return t.eat("-"),t.eatWhile(/\w/),"attribute";if(/\d/.test(i)&&(t.eatWhile(/\d/),t.eol()||!/\w/.test(t.peek())))return"number";t.eatWhile(/[\w-]/);var o=t.current();return"="===t.peek()&&/\w+/.test(o)?"def":e.hasOwnProperty(o)?e[o]:null}function s(t,e){var n="("==t?")":"{"==t?"}":t;return function(r,i){var o,a=!1;while(null!=(o=r.next())){if(o===n&&!a){i.tokens.shift();break}if("$"===o&&!a&&"'"!==t&&r.peek()!=n){a=!0,r.backUp(1),i.tokens.unshift(c);break}if(!a&&t!==n&&o===t)return i.tokens.unshift(s(t,e)),u(r,i);if(!a&&/['"]/.test(o)&&!/['"]/.test(t)){i.tokens.unshift(l(o,"string")),r.backUp(1);break}a=!a&&"\\"===o}return e}}function l(t,e){return function(n,r){return r.tokens[0]=s(t,e),n.next(),u(n,r)}}t.registerHelper("hintWords","shell",r.concat(i,o)),n("atom",r),n("keyword",i),n("builtin",o);var c=function(t,e){e.tokens.length>1&&t.eat("$");var n=t.next();return/['"({]/.test(n)?(e.tokens[0]=s(n,"("==n?"quote":"{"==n?"def":"string"),u(t,e)):(/\d/.test(n)||t.eatWhile(/\w/),e.tokens.shift(),"def")};function u(t,e){return(e.tokens[0]||a)(t,e)}return{startState:function(){return{tokens:[]}},token:function(t,e){return u(t,e)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}})),t.defineMIME("text/x-sh","shell"),t.defineMIME("application/x-sh","shell")}))},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=a(t),e=s(e,!0),c)try{return u(t,e)}catch(n){}if(l(t,e))return o(!i.f.call(t,e),t[e])}},"0b6c":function(t,e,n){(function(t){t(n("56b3"),n("b933"),n("2aed"))})((function(t){"use strict";function e(t,e){return"string"==typeof t?t=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(t=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(e){t.lastIndex=e.pos;var n=t.exec(e.string);if(n&&n.index==e.pos)return e.pos+=n[0].length||1,"searching";n?e.pos=n.index:e.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function r(t){return t.state.search||(t.state.search=new n)}function i(t){return"string"==typeof t&&t==t.toLowerCase()}function o(t,e,n){return t.getSearchCursor(e,n,{caseFold:i(e),multiline:!0})}function a(t,e,n,r,i){t.openDialog(e,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(t)},onKeyDown:i})}function s(t,e,n,r,i){t.openDialog?t.openDialog(e,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function l(t,e,n,r){t.openConfirm?t.openConfirm(e,r):confirm(n)&&r[0]()}function c(t){return t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"==e?"\\":t}))}function u(t){var e=t.match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(n){}else t=c(t);return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}function d(t,n,r){n.queryText=r,n.query=u(r),t.removeOverlay(n.overlay,i(n.query)),n.overlay=e(n.query,i(n.query)),t.addOverlay(n.overlay),t.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=t.showMatchesOnScrollbar(n.query,i(n.query)))}function f(e,n,i,o){var l=r(e);if(l.query)return h(e,n);var c=e.getSelection()||l.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),i&&e.openDialog){var u=null,f=function(n,r){t.e_stop(r),n&&(n!=l.queryText&&(d(e,l,n),l.posFrom=l.posTo=e.getCursor()),u&&(u.style.opacity=1),h(e,r.shiftKey,(function(t,n){var r;n.line<3&&document.querySelector&&(r=e.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>e.cursorCoords(n,"window").top&&((u=r).style.opacity=.4)})))};a(e,$(e),c,f,(function(n,i){var o=t.keyName(n),a=e.getOption("extraKeys"),s=a&&a[o]||t.keyMap[e.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(t.e_stop(n),d(e,r(e),i),e.execCommand(s)):"find"!=s&&"findPersistent"!=s||(t.e_stop(n),f(i,n))})),o&&c&&(d(e,l,c),h(e,n))}else s(e,$(e),"Search for:",c,(function(t){t&&!l.query&&e.operation((function(){d(e,l,t),l.posFrom=l.posTo=e.getCursor(),h(e,n)}))}))}function h(e,n,i){e.operation((function(){var a=r(e),s=o(e,a.query,n?a.posFrom:a.posTo);(s.find(n)||(s=o(e,a.query,n?t.Pos(e.lastLine()):t.Pos(e.firstLine(),0)),s.find(n)))&&(e.setSelection(s.from(),s.to()),e.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),i&&i(s.from(),s.to()))}))}function p(t){t.operation((function(){var e=r(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))}))}function $(t){return'<span class="CodeMirror-search-label">'+t.phrase("Search:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+t.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function m(t){return' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+t.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function g(t){return'<span class="CodeMirror-search-label">'+t.phrase("With:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>'}function v(t){return'<span class="CodeMirror-search-label">'+t.phrase("Replace?")+"</span> <button>"+t.phrase("Yes")+"</button> <button>"+t.phrase("No")+"</button> <button>"+t.phrase("All")+"</button> <button>"+t.phrase("Stop")+"</button> "}function y(t,e,n){t.operation((function(){for(var r=o(t,e);r.findNext();)if("string"!=typeof e){var i=t.getRange(r.from(),r.to()).match(e);r.replace(n.replace(/\$(\d)/g,(function(t,e){return i[e]})))}else r.replace(n)}))}function _(t,e){if(!t.getOption("readOnly")){var n=t.getSelection()||r(t).lastQuery,i='<span class="CodeMirror-search-label">'+(e?t.phrase("Replace all:"):t.phrase("Replace:"))+"</span>";s(t,i+m(t),i,n,(function(n){n&&(n=u(n),s(t,g(t),t.phrase("Replace with:"),"",(function(r){if(r=c(r),e)y(t,n,r);else{p(t);var i=o(t,n,t.getCursor("from")),a=function(){var e,c=i.from();!(e=i.findNext())&&(i=o(t,n),!(e=i.findNext())||c&&i.from().line==c.line&&i.from().ch==c.ch)||(t.setSelection(i.from(),i.to()),t.scrollIntoView({from:i.from(),to:i.to()}),l(t,v(t),t.phrase("Replace?"),[function(){s(e)},a,function(){y(t,n,r)}]))},s=function(t){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(e,n){return t[n]}))),a()};a()}})))}))}}t.commands.find=function(t){p(t),f(t)},t.commands.findPersistent=function(t){p(t),f(t,!1,!0)},t.commands.findPersistentNext=function(t){f(t,!1,!0,!0)},t.commands.findPersistentPrev=function(t){f(t,!0,!0,!0)},t.commands.findNext=f,t.commands.findPrev=function(t){f(t,!0)},t.commands.clearSearch=p,t.commands.replace=_,t.commands.replaceAll=function(t){_(t,!0)}}))},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"164b":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.registerGlobalHelper("fold","comment",(function(t){return t.blockCommentStart&&t.blockCommentEnd}),(function(e,n){var r=e.getModeAt(n),i=r.blockCommentStart,o=r.blockCommentEnd;if(i&&o){for(var a,s=n.line,l=e.getLine(s),c=n.ch,u=0;;){var d=c<=0?-1:l.lastIndexOf(i,c-1);if(-1!=d){if(1==u&&d<n.ch)return;if(/comment/.test(e.getTokenTypeAt(t.Pos(s,d+1)))&&(0==d||l.slice(d-o.length,d)==o||!/comment/.test(e.getTokenTypeAt(t.Pos(s,d))))){a=d+i.length;break}c=d-1}else{if(1==u)return;u=1,c=l.length}}var f,h,p=1,$=e.lastLine();t:for(var m=s;m<=$;++m)for(var g=e.getLine(m),v=m==s?a:0;;){var y=g.indexOf(i,v),_=g.indexOf(o,v);if(y<0&&(y=g.length),_<0&&(_=g.length),v=Math.min(y,_),v==g.length)break;if(v==y)++p;else if(!--p){f=m,h=v;break t}++v}if(null!=f&&(s!=f||h!=a))return{from:t.Pos(s,a),to:t.Pos(f,h)}}}))}))},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(l){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("d3b7");function r(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,l,"next",t)}function l(t){r(a,i,o,s,l,"throw",t)}s(void 0)}))}}},"1fb5":function(t,e,n){"use strict";e.byteLength=u,e.toByteArray=f,e.fromByteArray=$;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function u(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function d(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=c(t),a=r[0],s=r[1],l=new o(d(t,a,s)),u=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[u++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e),l}function h(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(h(r));return i.join("")}function $(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(p(t,s,s+a>l?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"21a6":function(t,e,n){(function(n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function r(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){s(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var s=a.URL||a.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?o(l):i(l.href)?r(t,e,n):o(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),n);else if(i(t))r(t,n,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){o(s)}))}}:function(t,e,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var u=a.URL||a.webkitURL,d=u.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout((function(){u.revokeObjectURL(d)}),4e4)}});a.saveAs=s.saveAs=s,t.exports=s}))}).call(this,n("c8ba"))},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),l=n("9bdd"),c=function(t,e){this.stopped=t,this.result=e},u=t.exports=function(t,e,n,u,d){var f,h,p,$,m,g,v,y=a(e,n,u?2:1);if(d)f=t;else{if(h=s(t),"function"!=typeof h)throw TypeError("Target is not iterable");if(i(h)){for(p=0,$=o(t.length);$>p;p++)if(m=u?y(r(v=t[p])[0],v[1]):y(t[p]),m&&m instanceof c)return m;return new c(!1)}f=h.call(t)}g=f.next;while(!(v=g.call(f)).done)if(m=l(f,y,v.value,u),"object"==typeof m&&m&&m instanceof c)return m;return new c(!1)};u.stop=function(t){return new c(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23de":function(t,e,n){(function(t){t(n("56b3"),n("715d"))})((function(t){"use strict";var e={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function n(t){for(var n in this.options={},e)this.options[n]=(t&&t.hasOwnProperty(n)?t:e)[n];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function r(t){var e=t.state.matchHighlighter;(e.active||t.hasFocus())&&o(t,e)}function i(t){var e=t.state.matchHighlighter;e.active||(e.active=!0,o(t,e))}function o(t,e){clearTimeout(e.timeout),e.timeout=setTimeout((function(){l(t)}),e.options.delay)}function a(t,e,n,r){var i=t.state.matchHighlighter;if(t.addOverlay(i.overlay=d(e,n,r)),i.options.annotateScrollbar&&t.showMatchesOnScrollbar){var o=n?new RegExp((/\w/.test(e.charAt(0))?"\\b":"")+e.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(e.charAt(e.length-1))?"\\b":"")):e;i.matchesonscroll=t.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function s(t){var e=t.state.matchHighlighter;e.overlay&&(t.removeOverlay(e.overlay),e.overlay=null,e.matchesonscroll&&(e.matchesonscroll.clear(),e.matchesonscroll=null))}function l(t){t.operation((function(){var e=t.state.matchHighlighter;if(s(t),t.somethingSelected()||!e.options.showToken){var n=t.getCursor("from"),r=t.getCursor("to");if(n.line==r.line&&(!e.options.wordsOnly||c(t,n,r))){var i=t.getRange(n,r);e.options.trim&&(i=i.replace(/^\s+|\s+$/g,"")),i.length>=e.options.minChars&&a(t,i,!1,e.options.style)}}else{var o=!0===e.options.showToken?/[\w$]/:e.options.showToken,l=t.getCursor(),u=t.getLine(l.line),d=l.ch,f=d;while(d&&o.test(u.charAt(d-1)))--d;while(f<u.length&&o.test(u.charAt(f)))++f;d<f&&a(t,u.slice(d,f),o,e.options.style)}}))}function c(t,e,n){var r=t.getRange(e,n);if(null!==r.match(/^\w+$/)){if(e.ch>0){var i={line:e.line,ch:e.ch-1},o=t.getRange(i,e);if(null===o.match(/\W/))return!1}if(n.ch<t.getLine(e.line).length){i={line:n.line,ch:n.ch+1},o=t.getRange(n,i);if(null===o.match(/\W/))return!1}return!0}return!1}function u(t,e){return(!t.start||!e.test(t.string.charAt(t.start-1)))&&(t.pos==t.string.length||!e.test(t.string.charAt(t.pos)))}function d(t,e,n){return{token:function(r){if(r.match(t)&&(!e||u(r,e)))return n;r.next(),r.skipTo(t.charAt(0))||r.skipToEnd()}}}t.defineOption("highlightSelectionMatches",!1,(function(e,o,a){if(a&&a!=t.Init&&(s(e),clearTimeout(e.state.matchHighlighter.timeout),e.state.matchHighlighter=null,e.off("cursorActivity",r),e.off("focus",i)),o){var c=e.state.matchHighlighter=new n(o);e.hasFocus()?(c.active=!0,l(e)):e.on("focus",i),e.on("cursorActivity",r)}}))}))},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");t.exports=function(t,e){var n,u,d,f,h,p,$=t.target,m=t.global,g=t.stat;if(u=m?r:g?r[$]||s($,{}):(r[$]||{}).prototype,u)for(d in e){if(h=e[d],t.noTargetGet?(p=i(u,d),f=p&&p.value):f=u[d],n=c(m?d:$+(g?".":"#")+d,t.forced),!n&&void 0!==f){if(typeof h===typeof f)continue;l(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(u,d,h,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return r}))},"2aed":function(t,e,n){(function(t){t(n("56b3"))})((function(t){function e(e,n,r){var i,o=e.getWrapperElement();return i=o.appendChild(document.createElement("div")),i.className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),t.addClass(o,"dialog-opened"),i}function n(t,e){t.state.currentNotificationClose&&t.state.currentNotificationClose(),t.state.currentNotificationClose=e}t.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=e(this,r,o.bottom),s=!1,l=this;function c(e){if("string"==typeof e)d.value=e;else{if(s)return;s=!0,t.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var u,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&t.on(d,"input",(function(t){o.onInput(t,d.value,c)})),o.onKeyUp&&t.on(d,"keyup",(function(t){o.onKeyUp(t,d.value,c)})),t.on(d,"keydown",(function(e){o&&o.onKeyDown&&o.onKeyDown(e,d.value,c)||((27==e.keyCode||!1!==o.closeOnEnter&&13==e.keyCode)&&(d.blur(),t.e_stop(e),c()),13==e.keyCode&&i(d.value,e))})),!1!==o.closeOnBlur&&t.on(a,"focusout",(function(t){null!==t.relatedTarget&&c()}))):(u=a.getElementsByTagName("button")[0])&&(t.on(u,"click",(function(){c(),l.focus()})),!1!==o.closeOnBlur&&t.on(u,"blur",c),u.focus()),c})),t.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=e(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function d(){l||(l=!0,t.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var f=0;f<s.length;++f){var h=s[f];(function(e){t.on(h,"click",(function(n){t.e_preventDefault(n),d(),e&&e(c)}))})(i[f]),t.on(h,"blur",(function(){--u,setTimeout((function(){u<=0&&d()}),200)})),t.on(h,"focus",(function(){++u}))}})),t.defineExtension("openNotification",(function(r,i){n(this,c);var o,a=e(this,r,i&&i.bottom),s=!1,l=i&&"undefined"!==typeof i.duration?i.duration:5e3;function c(){s||(s=!0,clearTimeout(o),t.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return t.on(a,"click",(function(e){t.e_preventDefault(e),c()})),l&&(o=setTimeout(c,l)),c}))}))},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){
/*!
* Vue.js v2.6.12
* (c) 2014-2020 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function l(t){return null!==t&&"object"===typeof t}var c=Object.prototype.toString;function u(t){return"[object Object]"===c.call(t)}function d(t){return"[object RegExp]"===c.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function h(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function $(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}m("slot,component",!0);var g=m("key,ref,slot,slot-scope,is");function v(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function _(t,e){return y.call(t,e)}function b(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,x=b((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),k=b((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,O=b((function(t){return t.replace(S,"-$1").toLowerCase()}));function C(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function A(t,e){return t.bind(e)}var E=Function.prototype.bind?A:C;function T(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function B(t){for(var e={},n=0;n<t.length;n++)t[n]&&P(e,t[n]);return e}function L(t,e,n){}var I=function(t,e,n){return!1},D=function(t){return t};function R(t,e){if(t===e)return!0;var n=l(t),r=l(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return R(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return R(t[n],e[n])}))}catch(c){return!1}}function j(t,e){for(var n=0;n<t.length;n++)if(R(t[n],e))return n;return-1}function M(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var F="data-server-rendered",N=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:L,parsePlatformTagName:D,mustUseProp:I,async:!0,_lifecycleHooks:z},V=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function q(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var W=new RegExp("[^"+V.source+".$_\\d]");function G(t){if(!W.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Y,K="__proto__"in{},X="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Z&&WXEnvironment.platform.toLowerCase(),Q=X&&window.navigator.userAgent.toLowerCase(),tt=Q&&/msie|trident/.test(Q),et=Q&&Q.indexOf("msie 9.0")>0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),it=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(X)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(xa){}var lt=function(){return void 0===Y&&(Y=!X&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ct=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ut(t){return"function"===typeof t&&/native code/.test(t.toString())}var dt,ft="undefined"!==typeof Symbol&&ut(Symbol)&&"undefined"!==typeof Reflect&&ut(Reflect.ownKeys);dt="undefined"!==typeof Set&&ut(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ht=L,pt=0,$t=function(){this.id=pt++,this.subs=[]};$t.prototype.addSub=function(t){this.subs.push(t)},$t.prototype.removeSub=function(t){v(this.subs,t)},$t.prototype.depend=function(){$t.target&&$t.target.addDep(this)},$t.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},$t.target=null;var mt=[];function gt(t){mt.push(t),$t.target=t}function vt(){mt.pop(),$t.target=mt[mt.length-1]}var yt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},_t={child:{configurable:!0}};_t.child.get=function(){return this.componentInstance},Object.defineProperties(yt.prototype,_t);var bt=function(t){void 0===t&&(t="");var e=new yt;return e.text=t,e.isComment=!0,e};function wt(t){return new yt(void 0,void 0,void 0,String(t))}function xt(t){var e=new yt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var kt=Array.prototype,St=Object.create(kt),Ot=["push","pop","shift","unshift","splice","sort","reverse"];Ot.forEach((function(t){var e=kt[t];q(St,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ct=Object.getOwnPropertyNames(St),At=!0;function Et(t){At=t}var Tt=function(t){this.value=t,this.dep=new $t,this.vmCount=0,q(t,"__ob__",this),Array.isArray(t)?(K?Pt(t,St):Bt(t,St,Ct),this.observeArray(t)):this.walk(t)};function Pt(t,e){t.__proto__=e}function Bt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];q(t,o,e[o])}}function Lt(t,e){var n;if(l(t)&&!(t instanceof yt))return _(t,"__ob__")&&t.__ob__ instanceof Tt?n=t.__ob__:At&&!lt()&&(Array.isArray(t)||u(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new Tt(t)),e&&n&&n.vmCount++,n}function It(t,e,n,r,i){var o=new $t,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=t[e]);var c=!i&&Lt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return $t.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(e)&&jt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!l||(l?l.call(t,e):n=e,c=!i&&Lt(e),o.notify())}})}}function Dt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(It(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Rt(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||_(t,e)&&(delete t[e],n&&n.dep.notify())}}function jt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&jt(e)}Tt.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)It(t,e[n])},Tt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Lt(t[e])};var Mt=H.optionMergeStrategies;function Ft(t,e){if(!e)return t;for(var n,r,i,o=ft?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],_(t,n)?r!==i&&u(r)&&u(i)&&Ft(r,i):Dt(t,n,i));return t}function Nt(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?Ft(r,i):i}:e?t?function(){return Ft("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function zt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?Ht(n):n}function Ht(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Vt(t,e,n,r){var i=Object.create(t||null);return e?P(i,e):i}Mt.data=function(t,e,n){return n?Nt(t,e,n):e&&"function"!==typeof e?t:Nt(t,e)},z.forEach((function(t){Mt[t]=zt})),N.forEach((function(t){Mt[t+"s"]=Vt})),Mt.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in P(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Mt.props=Mt.methods=Mt.inject=Mt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return P(i,t),e&&P(i,e),i},Mt.provide=Nt;var Ut=function(t,e){return void 0===e?t:e};function qt(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=x(i),a[o]={type:null})}else if(u(n))for(var s in n)i=n[s],o=x(s),a[o]=u(i)?i:{type:i};else 0;t.props=a}}function Wt(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?P({from:o},a):{from:a}}else 0}}function Gt(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Yt(t,e,n){if("function"===typeof e&&(e=e.options),qt(e,n),Wt(e,n),Gt(e),!e._base&&(e.extends&&(t=Yt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Yt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)_(t,o)||s(o);function s(r){var i=Mt[r]||Ut;a[r]=i(t[r],e[r],n,r)}return a}function Kt(t,e,n,r){if("string"===typeof n){var i=t[e];if(_(i,n))return i[n];var o=x(n);if(_(i,o))return i[o];var a=k(o);if(_(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Xt(t,e,n,r){var i=e[t],o=!_(n,t),a=n[t],s=te(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===O(t)){var l=te(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=Zt(r,i,t);var c=At;Et(!0),Lt(a),Et(c)}return a}function Zt(t,e,n){if(_(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Jt(e.type)?r.call(t):r}}function Jt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Qt(t,e){return Jt(t)===Jt(e)}function te(t,e){if(!Array.isArray(e))return Qt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Qt(e[n],t))return n;return-1}function ee(t,e,n){gt();try{if(e){var r=e;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,t,e,n);if(a)return}catch(xa){re(xa,r,"errorCaptured hook")}}}re(t,e,n)}finally{vt()}}function ne(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&h(o)&&!o._handled&&(o.catch((function(t){return ee(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(xa){ee(xa,r,i)}return o}function re(t,e,n){if(H.errorHandler)try{return H.errorHandler.call(null,t,e,n)}catch(xa){xa!==t&&ie(xa,null,"config.errorHandler")}ie(t,e,n)}function ie(t,e,n){if(!X&&!Z||"undefined"===typeof console)throw t;console.error(t)}var oe,ae=!1,se=[],le=!1;function ce(){le=!1;var t=se.slice(0);se.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ut(Promise)){var ue=Promise.resolve();oe=function(){ue.then(ce),rt&&setTimeout(L)},ae=!0}else if(tt||"undefined"===typeof MutationObserver||!ut(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&&ut(setImmediate)?function(){setImmediate(ce)}:function(){setTimeout(ce,0)};else{var de=1,fe=new MutationObserver(ce),he=document.createTextNode(String(de));fe.observe(he,{characterData:!0}),oe=function(){de=(de+1)%2,he.data=String(de)},ae=!0}function pe(t,e){var n;if(se.push((function(){if(t)try{t.call(e)}catch(xa){ee(xa,e,"nextTick")}else n&&n(e)})),le||(le=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var $e=new dt;function me(t){ge(t,$e),$e.clear()}function ge(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!l(t)||Object.isFrozen(t)||t instanceof yt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)ge(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)ge(t[r[n]],e)}}}var ve=b((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function ye(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return ne(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)ne(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function _e(t,e,n,i,a,s){var l,c,u,d;for(l in t)c=t[l],u=e[l],d=ve(l),r(c)||(r(u)?(r(c.fns)&&(c=t[l]=ye(c,s)),o(d.once)&&(c=t[l]=a(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,t[l]=u));for(l in e)r(t[l])&&(d=ve(l),i(d.name,e[l],d.capture))}function be(t,e,n){var a;t instanceof yt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function l(){n.apply(this,arguments),v(a.fns,l)}r(s)?a=ye([l]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(l)):a=ye([s,l]),a.merged=!0,t[e]=a}function we(t,e,n){var o=e.options.props;if(!r(o)){var a={},s=t.attrs,l=t.props;if(i(s)||i(l))for(var c in o){var u=O(c);xe(a,l,c,u,!0)||xe(a,s,c,u,!1)}return a}}function xe(t,e,n,r,o){if(i(e)){if(_(e,n))return t[n]=e[n],o||delete e[n],!0;if(_(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function ke(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Se(t){return s(t)?[wt(t)]:Array.isArray(t)?Ce(t):void 0}function Oe(t){return i(t)&&i(t.text)&&a(t.isComment)}function Ce(t,e){var n,a,l,c,u=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(l=u.length-1,c=u[l],Array.isArray(a)?a.length>0&&(a=Ce(a,(e||"")+"_"+n),Oe(a[0])&&Oe(c)&&(u[l]=wt(c.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?Oe(c)?u[l]=wt(c.text+a):""!==a&&u.push(wt(a)):Oe(a)&&Oe(c)?u[l]=wt(c.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),u.push(a)));return u}function Ae(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Ee(t){var e=Te(t.$options.inject,t);e&&(Et(!1),Object.keys(e).forEach((function(n){It(t,n,e[n])})),Et(!0))}function Te(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var l=t[o].default;n[o]="function"===typeof l?l.call(e):l}else 0}}return n}}function Pe(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(Be)&&delete n[c];return n}function Be(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Le(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Ie(e,l,t[l]))}else i={};for(var c in e)c in i||(i[c]=De(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),q(i,"$stable",a),q(i,"$key",s),q(i,"$hasNormal",o),i}function Ie(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Se(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function De(t,e){return function(){return t[e]}}function Re(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(l(t))if(ft&&t[Symbol.iterator]){n=[];var c=t[Symbol.iterator](),u=c.next();while(!u.done)n.push(e(u.value,n.length)),u=c.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=e(t[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function je(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=P(P({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Me(t){return Kt(this.$options,"filters",t,!0)||D}function Fe(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function Ne(t,e,n,r,i){var o=H.keyCodes[e]||n;return i&&r&&!H.keyCodes[e]?Fe(i,r):o?Fe(o,t):r?O(r)!==e:void 0}function ze(t,e,n,r,i){if(n)if(l(n)){var o;Array.isArray(n)&&(n=B(n));var a=function(a){if("class"===a||"style"===a||g(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||H.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=x(a),c=O(a);if(!(l in o)&&!(c in o)&&(o[a]=n[a],i)){var u=t.on||(t.on={});u["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function He(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),Ue(r,"__static__"+t,!1)),r}function Ve(t,e,n){return Ue(t,"__once__"+e+(n?"_"+n:""),!0),t}function Ue(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&qe(t[r],e+"_"+r,n);else qe(t,e,n)}function qe(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function We(t,e){if(e)if(u(e)){var n=t.on=t.on?P({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ge(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Ge(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ye(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Ke(t,e){return"string"===typeof t?e+t:t}function Xe(t){t._o=Ve,t._n=$,t._s=p,t._l=Re,t._t=je,t._q=R,t._i=j,t._m=He,t._f=Me,t._k=Ne,t._b=ze,t._v=wt,t._e=bt,t._u=Ge,t._g=We,t._d=Ye,t._p=Ke}function Ze(t,e,r,i,a){var s,l=this,c=a.options;_(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var u=o(c._compiled),d=!u;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=Te(c.inject,i),this.slots=function(){return l.$slots||Le(t.scopedSlots,l.$slots=Pe(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Le(t.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Le(t.scopedSlots,this.$slots)),c._scopeId?this._c=function(t,e,n,r){var o=dn(s,t,e,n,r,d);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return dn(s,t,e,n,r,d)}}function Je(t,e,r,o,a){var s=t.options,l={},c=s.props;if(i(c))for(var u in c)l[u]=Xt(u,c,e||n);else i(r.attrs)&&tn(l,r.attrs),i(r.props)&&tn(l,r.props);var d=new Ze(r,l,a,o,t),f=s.render.call(null,d._c,d);if(f instanceof yt)return Qe(f,r,d.parent,s,d);if(Array.isArray(f)){for(var h=Se(f)||[],p=new Array(h.length),$=0;$<h.length;$++)p[$]=Qe(h[$],r,d.parent,s,d);return p}}function Qe(t,e,n,r,i){var o=xt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function tn(t,e){for(var n in e)t[x(n)]=e[n]}Xe(Ze.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var r=t.componentInstance=on(t,Tn);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;Dn(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Fn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Jn(n):jn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Mn(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,a,s){if(!r(t)){var c=n.$options._base;if(l(t)&&(t=c.extend(t)),"function"===typeof t){var u;if(r(t.cid)&&(u=t,t=bn(u,c),void 0===t))return _n(u,e,n,a,s);e=e||{},br(t),i(e.model)&&ln(t.options,e);var d=we(e,t,s);if(o(t.options.functional))return Je(t,d,e,n,a);var f=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var h=e.slot;e={},h&&(e.slot=h)}an(e);var p=t.options.name||s,$=new yt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:d,listeners:f,tag:s,children:a},u);return $}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function an(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=e[r],o=en[r];i===o||i&&i._merged||(e[r]=i?sn(o,i):o)}}function sn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function ln(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var cn=1,un=2;function dn(t,e,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=un),fn(t,e,n,r,i)}function fn(t,e,n,r,o){if(i(n)&&i(n.__ob__))return bt();if(i(n)&&i(n.is)&&(e=n.is),!e)return bt();var a,s,l;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===un?r=Se(r):o===cn&&(r=ke(r)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||H.getTagNamespace(e),a=H.isReservedTag(e)?new yt(H.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(l=Kt(t.$options,"components",e))?new yt(e,n,r,void 0,void 0,t):rn(l,n,t,r,e)):a=rn(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(s)&&hn(a,s),i(n)&&pn(n),a):bt()}function hn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var l=t.children[a];i(l.tag)&&(r(l.ns)||o(n)&&"svg"!==l.tag)&&hn(l,e,n)}}function pn(t){l(t.style)&&me(t.style),l(t.class)&&me(t.class)}function $n(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=Pe(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return dn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return dn(t,e,n,r,i,!0)};var o=r&&r.data;It(t,"$attrs",o&&o.attrs||n,null,!0),It(t,"$listeners",e._parentListeners||n,null,!0)}var mn,gn=null;function vn(t){Xe(t.prototype),t.prototype.$nextTick=function(t){return pe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=Le(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{gn=e,t=r.call(e._renderProxy,e.$createElement)}catch(xa){ee(xa,e,"render"),t=e._vnode}finally{gn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof yt||(t=bt()),t.parent=i,t}}function yn(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function _n(t,e,n,r,i){var o=bt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function bn(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=gn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],s=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return v(a,n)}));var d=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},f=M((function(n){t.resolved=yn(n,e),s?a.length=0:d(!0)})),p=M((function(e){i(t.errorComp)&&(t.error=!0,d(!0))})),$=t(f,p);return l($)&&(h($)?r(t.resolved)&&$.then(f,p):h($.component)&&($.component.then(f,p),i($.error)&&(t.errorComp=yn($.error,e)),i($.loading)&&(t.loadingComp=yn($.loading,e),0===$.delay?t.loading=!0:c=setTimeout((function(){c=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,d(!1))}),$.delay||200)),i($.timeout)&&(u=setTimeout((function(){u=null,r(t.resolved)&&p(null)}),$.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function wn(t){return t.isComment&&t.asyncFactory}function xn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||wn(n)))return n}}function kn(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&An(t,e)}function Sn(t,e){mn.$on(t,e)}function On(t,e){mn.$off(t,e)}function Cn(t,e){var n=mn;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function An(t,e,n){mn=t,_e(e,n||{},Sn,On,Cn,t),mn=void 0}function En(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?T(n):n;for(var r=T(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)ne(n[o],e,r,e,i)}return e}}var Tn=null;function Pn(t){var e=Tn;return Tn=t,function(){Tn=e}}function Bn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Ln(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Pn(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Fn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||v(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Fn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function In(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=bt),Fn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new nr(t,r,L,{before:function(){t._isMounted&&!t._isDestroyed&&Fn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Fn(t,"mounted")),t}function Dn(t,e,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,l=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),c=!!(o||t.$options._renderChildren||l);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){Et(!1);for(var u=t._props,d=t.$options._propKeys||[],f=0;f<d.length;f++){var h=d[f],p=t.$options.props;u[h]=Xt(h,p,e,t)}Et(!0),t.$options.propsData=e}r=r||n;var $=t.$options._parentListeners;t.$options._parentListeners=r,An(t,r,$),c&&(t.$slots=Pe(o,i.context),t.$forceUpdate())}function Rn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function jn(t,e){if(e){if(t._directInactive=!1,Rn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)jn(t.$children[n]);Fn(t,"activated")}}function Mn(t,e){if((!e||(t._directInactive=!0,!Rn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Mn(t.$children[n]);Fn(t,"deactivated")}}function Fn(t,e){gt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)ne(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),vt()}var Nn=[],zn=[],Hn={},Vn=!1,Un=!1,qn=0;function Wn(){qn=Nn.length=zn.length=0,Hn={},Vn=Un=!1}var Gn=0,Yn=Date.now;if(X&&!tt){var Kn=window.performance;Kn&&"function"===typeof Kn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Kn.now()})}function Xn(){var t,e;for(Gn=Yn(),Un=!0,Nn.sort((function(t,e){return t.id-e.id})),qn=0;qn<Nn.length;qn++)t=Nn[qn],t.before&&t.before(),e=t.id,Hn[e]=null,t.run();var n=zn.slice(),r=Nn.slice();Wn(),Qn(n),Zn(r),ct&&H.devtools&&ct.emit("flush")}function Zn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Fn(r,"updated")}}function Jn(t){t._inactive=!1,zn.push(t)}function Qn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,jn(t[e],!0)}function tr(t){var e=t.id;if(null==Hn[e]){if(Hn[e]=!0,Un){var n=Nn.length-1;while(n>qn&&Nn[n].id>t.id)n--;Nn.splice(n+1,0,t)}else Nn.push(t);Vn||(Vn=!0,pe(Xn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new dt,this.newDepIds=new dt,this.expression="","function"===typeof e?this.getter=e:(this.getter=G(e),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;gt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(xa){if(!this.user)throw xa;ee(xa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&me(t),vt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(xa){ee(xa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:L,set:L};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):Lt(t._data={},!0),e.computed&&ur(t,e.computed),e.watch&&e.watch!==ot&&$r(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Et(!1);var a=function(o){i.push(o);var a=Xt(o,e,n,t);It(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Et(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?lr(e,t):e||{},u(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||U(o)||ir(t,"_data",o)}Lt(e,!0)}function lr(t,e){gt();try{return t.call(e,e)}catch(xa){return ee(xa,e,"data()"),{}}finally{vt()}}var cr={lazy:!0};function ur(t,e){var n=t._computedWatchers=Object.create(null),r=lt();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||L,L,cr)),i in t||dr(t,i,o)}}function dr(t,e,n){var r=!lt();"function"===typeof n?(rr.get=r?fr(e):hr(n),rr.set=L):(rr.get=n.get?r&&!1!==n.cache?fr(e):hr(n.get):L,rr.set=n.set||L),Object.defineProperty(t,e,rr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),$t.target&&e.depend(),e.value}}function hr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?L:E(e[n],t)}function $r(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)mr(t,n,r[i]);else mr(t,n,r)}}function mr(t,e,n,r){return u(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function gr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Dt,t.prototype.$delete=Rt,t.prototype.$watch=function(t,e,n){var r=this;if(u(e))return mr(r,t,e,n);n=n||{},n.user=!0;var i=new nr(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){ee(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var vr=0;function yr(t){t.prototype._init=function(t){var e=this;e._uid=vr++,e._isVue=!0,t&&t._isComponent?_r(e,t):e.$options=Yt(br(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Bn(e),kn(e),$n(e),Fn(e,"beforeCreate"),Ee(e),or(e),Ae(e),Fn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function _r(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function br(t){var e=t.options;if(t.super){var n=br(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=wr(t);i&&P(t.extendOptions,i),e=t.options=Yt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function wr(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function xr(t){this._init(t)}function kr(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Sr(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function Or(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Yt(n.options,t),a["super"]=n,a.options.props&&Cr(a),a.options.computed&&Ar(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,N.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=P({},a.options),i[r]=a,a}}function Cr(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Ar(t){var e=t.options.computed;for(var n in e)dr(t.prototype,n,e[n])}function Er(t){N.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Tr(t){return t&&(t.Ctor.options.name||t.tag)}function Pr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!d(t)&&t.test(e)}function Br(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Tr(a.componentOptions);s&&!e(s)&&Lr(n,o,r,i)}}}function Lr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,v(n,e)}yr(xr),gr(xr),En(xr),Ln(xr),vn(xr);var Ir=[String,RegExp,Array],Dr={name:"keep-alive",abstract:!0,props:{include:Ir,exclude:Ir,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Lr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Br(t,(function(t){return Pr(e,t)}))})),this.$watch("exclude",(function(e){Br(t,(function(t){return!Pr(e,t)}))}))},render:function(){var t=this.$slots.default,e=xn(t),n=e&&e.componentOptions;if(n){var r=Tr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Pr(o,r))||a&&r&&Pr(a,r))return e;var s=this,l=s.cache,c=s.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,v(c,u),c.push(u)):(l[u]=e,c.push(u),this.max&&c.length>parseInt(this.max)&&Lr(l,c[0],c,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Rr={KeepAlive:Dr};function jr(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ht,extend:P,mergeOptions:Yt,defineReactive:It},t.set=Dt,t.delete=Rt,t.nextTick=pe,t.observable=function(t){return Lt(t),t},t.options=Object.create(null),N.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,Rr),kr(t),Sr(t),Or(t),Er(t)}jr(xr),Object.defineProperty(xr.prototype,"$isServer",{get:lt}),Object.defineProperty(xr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xr,"FunctionalRenderContext",{value:Ze}),xr.version="2.6.12";var Mr=m("style,class"),Fr=m("input,textarea,option,select,progress"),Nr=function(t,e,n){return"value"===n&&Fr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},zr=m("contenteditable,draggable,spellcheck"),Hr=m("events,caret,typing,plaintext-only"),Vr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&Hr(e)?e:"true"},Ur=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qr="http://www.w3.org/1999/xlink",Wr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Gr=function(t){return Wr(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function Kr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Xr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Xr(e,n.data));return Zr(e.staticClass,e.class)}function Xr(t,e){return{staticClass:Jr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Zr(t,e){return i(t)||i(e)?Jr(t,Qr(e)):""}function Jr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?ti(t):l(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Qr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function ei(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(t){return ri(t)||ii(t)};function ai(t){return ii(t)?"svg":"math"===t?"math":void 0}var si=Object.create(null);function li(t){if(!X)return!0;if(oi(t))return!1;if(t=t.toLowerCase(),null!=si[t])return si[t];var e=document.createElement(t);return t.indexOf("-")>-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ci=m("text,number,password,search,email,tel,url");function ui(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function di(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(t,e){return document.createElementNS(ni[t],e)}function hi(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function $i(t,e,n){t.insertBefore(e,n)}function mi(t,e){t.removeChild(e)}function gi(t,e){t.appendChild(e)}function vi(t){return t.parentNode}function yi(t){return t.nextSibling}function _i(t){return t.tagName}function bi(t,e){t.textContent=e}function wi(t,e){t.setAttribute(e,"")}var xi=Object.freeze({createElement:di,createElementNS:fi,createTextNode:hi,createComment:pi,insertBefore:$i,removeChild:mi,appendChild:gi,parentNode:vi,nextSibling:yi,tagName:_i,setTextContent:bi,setStyleScope:wi}),ki={create:function(t,e){Si(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Si(t,!0),Si(e))},destroy:function(t){Si(t,!0)}};function Si(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?v(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Oi=new yt("",{},[]),Ci=["create","activate","update","remove","destroy"];function Ai(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ei(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ei(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ci(r)&&ci(o)}function Ti(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Pi(t){var e,n,a={},l=t.modules,c=t.nodeOps;for(e=0;e<Ci.length;++e)for(a[Ci[e]]=[],n=0;n<l.length;++n)i(l[n][Ci[e]])&&a[Ci[e]].push(l[n][Ci[e]]);function u(t){return new yt(c.tagName(t).toLowerCase(),{},[],void 0,t)}function d(t,e){function n(){0===--n.listeners&&f(t)}return n.listeners=e,n}function f(t){var e=c.parentNode(t);i(e)&&c.removeChild(e,t)}function h(t,e,n,r,a,s,l){if(i(t.elm)&&i(s)&&(t=s[l]=xt(t)),t.isRootInsert=!a,!p(t,e,n,r)){var u=t.data,d=t.children,f=t.tag;i(f)?(t.elm=t.ns?c.createElementNS(t.ns,f):c.createElement(f,t),w(t),y(t,d,e),i(u)&&b(t,e),v(n,t.elm,r)):o(t.isComment)?(t.elm=c.createComment(t.text),v(n,t.elm,r)):(t.elm=c.createTextNode(t.text),v(n,t.elm,r))}}function p(t,e,n,r){var a=t.data;if(i(a)){var s=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1),i(t.componentInstance))return $(t,e),v(n,t.elm,r),o(s)&&g(t,e,n,r),!0}}function $(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,_(t)?(b(t,e),w(t)):(Si(t),e.push(t))}function g(t,e,n,r){var o,s=t;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](Oi,s);e.push(s);break}v(n,t.elm,r)}function v(t,e,n){i(t)&&(i(n)?c.parentNode(n)===t&&c.insertBefore(t,e,n):c.appendChild(t,e))}function y(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)h(e[r],n,t.elm,null,!0,e,r)}else s(t.text)&&c.appendChild(t.elm,c.createTextNode(String(t.text)))}function _(t){while(t.componentInstance)t=t.componentInstance._vnode;return i(t.tag)}function b(t,n){for(var r=0;r<a.create.length;++r)a.create[r](Oi,t);e=t.data.hook,i(e)&&(i(e.create)&&e.create(Oi,t),i(e.insert)&&n.push(t))}function w(t){var e;if(i(e=t.fnScopeId))c.setStyleScope(t.elm,e);else{var n=t;while(n)i(e=n.context)&&i(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e),n=n.parent}i(e=Tn)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&c.setStyleScope(t.elm,e)}function x(t,e,n,r,i,o){for(;r<=i;++r)h(n[r],o,t,e,!1,n,r)}function k(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<a.destroy.length;++e)a.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)k(t.children[n])}function S(t,e,n){for(;e<=n;++e){var r=t[e];i(r)&&(i(r.tag)?(O(r),k(r)):f(r.elm))}}function O(t,e){if(i(e)||i(t.data)){var n,r=a.remove.length+1;for(i(e)?e.listeners+=r:e=d(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&O(n,e),n=0;n<a.remove.length;++n)a.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else f(t.elm)}function C(t,e,n,o,a){var s,l,u,d,f=0,p=0,$=e.length-1,m=e[0],g=e[$],v=n.length-1,y=n[0],_=n[v],b=!a;while(f<=$&&p<=v)r(m)?m=e[++f]:r(g)?g=e[--$]:Ai(m,y)?(E(m,y,o,n,p),m=e[++f],y=n[++p]):Ai(g,_)?(E(g,_,o,n,v),g=e[--$],_=n[--v]):Ai(m,_)?(E(m,_,o,n,v),b&&c.insertBefore(t,m.elm,c.nextSibling(g.elm)),m=e[++f],_=n[--v]):Ai(g,y)?(E(g,y,o,n,p),b&&c.insertBefore(t,g.elm,m.elm),g=e[--$],y=n[++p]):(r(s)&&(s=Ti(e,f,$)),l=i(y.key)?s[y.key]:A(y,e,f,$),r(l)?h(y,o,t,m.elm,!1,n,p):(u=e[l],Ai(u,y)?(E(u,y,o,n,p),e[l]=void 0,b&&c.insertBefore(t,u.elm,m.elm)):h(y,o,t,m.elm,!1,n,p)),y=n[++p]);f>$?(d=r(n[v+1])?null:n[v+1].elm,x(t,d,n,p,v,o)):p>v&&S(e,f,$)}function A(t,e,n,r){for(var o=n;o<r;o++){var a=e[o];if(i(a)&&Ai(t,a))return o}}function E(t,e,n,s,l,u){if(t!==e){i(e.elm)&&i(s)&&(e=s[l]=xt(e));var d=e.elm=t.elm;if(o(t.isAsyncPlaceholder))i(e.asyncFactory.resolved)?B(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,h=e.data;i(h)&&i(f=h.hook)&&i(f=f.prepatch)&&f(t,e);var p=t.children,$=e.children;if(i(h)&&_(e)){for(f=0;f<a.update.length;++f)a.update[f](t,e);i(f=h.hook)&&i(f=f.update)&&f(t,e)}r(e.text)?i(p)&&i($)?p!==$&&C(d,p,$,n,u):i($)?(i(t.text)&&c.setTextContent(d,""),x(d,null,$,0,$.length-1,n)):i(p)?S(p,0,p.length-1):i(t.text)&&c.setTextContent(d,""):t.text!==e.text&&c.setTextContent(d,e.text),i(h)&&i(f=h.hook)&&i(f=f.postpatch)&&f(t,e)}}}function T(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var P=m("attrs,class,staticClass,staticStyle,key");function B(t,e,n,r){var a,s=e.tag,l=e.data,c=e.children;if(r=r||l&&l.pre,e.elm=t,o(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(a=l.hook)&&i(a=a.init)&&a(e,!0),i(a=e.componentInstance)))return $(e,n),!0;if(i(s)){if(i(c))if(t.hasChildNodes())if(i(a=l)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var u=!0,d=t.firstChild,f=0;f<c.length;f++){if(!d||!B(d,c[f],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else y(e,c,n);if(i(l)){var h=!1;for(var p in l)if(!P(p)){h=!0,b(e,n);break}!h&&l["class"]&&me(l["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var l=!1,d=[];if(r(t))l=!0,h(e,d);else{var f=i(t.nodeType);if(!f&&Ai(t,e))E(t,e,d,null,null,s);else{if(f){if(1===t.nodeType&&t.hasAttribute(F)&&(t.removeAttribute(F),n=!0),o(n)&&B(t,e,d))return T(e,d,!0),t;t=u(t)}var p=t.elm,$=c.parentNode(p);if(h(e,d,p._leaveCb?null:$,c.nextSibling(p)),i(e.parent)){var m=e.parent,g=_(e);while(m){for(var v=0;v<a.destroy.length;++v)a.destroy[v](m);if(m.elm=e.elm,g){for(var y=0;y<a.create.length;++y)a.create[y](Oi,m);var b=m.data.hook.insert;if(b.merged)for(var w=1;w<b.fns.length;w++)b.fns[w]()}else Si(m);m=m.parent}}i($)?S([t],0,0):i(t.tag)&&k(t)}}return T(e,d,l),e.elm}i(t)&&k(t)}}var Bi={create:Li,update:Li,destroy:function(t){Li(t,Oi)}};function Li(t,e){(t.data.directives||e.data.directives)&&Ii(t,e)}function Ii(t,e){var n,r,i,o=t===Oi,a=e===Oi,s=Ri(t.data.directives,t.context),l=Ri(e.data.directives,e.context),c=[],u=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Mi(i,"update",e,t),i.def&&i.def.componentUpdated&&u.push(i)):(Mi(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n<c.length;n++)Mi(c[n],"inserted",e,t)};o?be(e,"insert",d):d()}if(u.length&&be(e,"postpatch",(function(){for(var n=0;n<u.length;n++)Mi(u[n],"componentUpdated",e,t)})),!o)for(n in s)l[n]||Mi(s[n],"unbind",t,t,a)}var Di=Object.create(null);function Ri(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Di),i[ji(r)]=r,r.def=Kt(e.$options,"directives",r.name,!0);return i}function ji(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Mi(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(xa){ee(xa,n.context,"directive "+t.name+" "+e+" hook")}}var Fi=[ki,Bi];function Ni(t,e){var n=e.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var o,a,s,l=e.elm,c=t.data.attrs||{},u=e.data.attrs||{};for(o in i(u.__ob__)&&(u=e.data.attrs=P({},u)),u)a=u[o],s=c[o],s!==a&&zi(l,o,a);for(o in(tt||nt)&&u.value!==c.value&&zi(l,"value",u.value),c)r(u[o])&&(Wr(o)?l.removeAttributeNS(qr,Gr(o)):zr(o)||l.removeAttribute(o))}}function zi(t,e,n){t.tagName.indexOf("-")>-1?Hi(t,e,n):Ur(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):zr(e)?t.setAttribute(e,Vr(e,n)):Wr(e)?Yr(n)?t.removeAttributeNS(qr,Gr(e)):t.setAttributeNS(qr,e,n):Hi(t,e,n)}function Hi(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Vi={create:Ni,update:Ni};function Ui(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Kr(e),l=n._transitionClasses;i(l)&&(s=Jr(s,Qr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var qi,Wi={create:Ui,update:Ui},Gi="__r",Yi="__c";function Ki(t){if(i(t[Gi])){var e=tt?"change":"input";t[e]=[].concat(t[Gi],t[e]||[]),delete t[Gi]}i(t[Yi])&&(t.change=[].concat(t[Yi],t.change||[]),delete t[Yi])}function Xi(t,e,n){var r=qi;return function i(){var o=e.apply(null,arguments);null!==o&&Qi(t,i,n,r)}}var Zi=ae&&!(it&&Number(it[1])<=53);function Ji(t,e,n,r){if(Zi){var i=Gn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}qi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Qi(t,e,n,r){(r||qi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};qi=e.elm,Ki(n),_e(n,i,Ji,Qi,Xi,e.context),qi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=P({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var c=r(o)?"":String(o);io(a,c)&&(a.value=c)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+o+"</svg>";var u=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(u.firstChild)a.appendChild(u.firstChild)}else if(o!==s[n])try{a[n]=o}catch(xa){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(xa){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return $(n)!==$(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},lo=b((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function co(t){var e=uo(t.style);return t.staticStyle?P(t.staticStyle,e):e}function uo(t){return Array.isArray(t)?B(t):"string"===typeof t?lo(t):t}function fo(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=co(i.data))&&P(r,n)}(n=co(t.data))&&P(r,n);var o=t;while(o=o.parent)o.data&&(n=co(o.data))&&P(r,n);return r}var ho,po=/^--/,$o=/\s*!important$/,mo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if($o.test(n))t.style.setProperty(O(e),n.replace($o,""),"important");else{var r=vo(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},go=["Webkit","Moz","ms"],vo=b((function(t){if(ho=ho||document.createElement("div").style,t=x(t),"filter"!==t&&t in ho)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<go.length;n++){var r=go[n]+e;if(r in ho)return r}}));function yo(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,l=e.elm,c=o.staticStyle,u=o.normalizedStyle||o.style||{},d=c||u,f=uo(e.data.style)||{};e.data.normalizedStyle=i(f.__ob__)?P({},f):f;var h=fo(e,!0);for(s in d)r(h[s])&&mo(l,s,"");for(s in h)a=h[s],a!==d[s]&&mo(l,s,null==a?"":a)}}var _o={create:yo,update:yo},bo=/\s+/;function wo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function xo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(bo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function ko(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&P(e,So(t.name||"v")),P(e,t),e}return"string"===typeof t?So(t):void 0}}var So=b((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Oo=X&&!et,Co="transition",Ao="animation",Eo="transition",To="transitionend",Po="animation",Bo="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Eo="WebkitTransition",To="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Po="WebkitAnimation",Bo="webkitAnimationEnd"));var Lo=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Io(t){Lo((function(){Lo(t)}))}function Do(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),wo(t,e))}function Ro(t,e){t._transitionClasses&&v(t._transitionClasses,e),xo(t,e)}function jo(t,e,n){var r=Fo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Co?To:Bo,l=0,c=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++l>=a&&c()};setTimeout((function(){l<a&&c()}),o+1),t.addEventListener(s,u)}var Mo=/\b(transform|all)(,|$)/;function Fo(t,e){var n,r=window.getComputedStyle(t),i=(r[Eo+"Delay"]||"").split(", "),o=(r[Eo+"Duration"]||"").split(", "),a=No(i,o),s=(r[Po+"Delay"]||"").split(", "),l=(r[Po+"Duration"]||"").split(", "),c=No(s,l),u=0,d=0;e===Co?a>0&&(n=Co,u=a,d=o.length):e===Ao?c>0&&(n=Ao,u=c,d=l.length):(u=Math.max(a,c),n=u>0?a>c?Co:Ao:null,d=n?n===Co?o.length:l.length:0);var f=n===Co&&Mo.test(r[Eo+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:f}}function No(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return zo(e)+zo(t[n])})))}function zo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Ho(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=ko(t.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,c=o.enterClass,u=o.enterToClass,d=o.enterActiveClass,f=o.appearClass,h=o.appearToClass,p=o.appearActiveClass,m=o.beforeEnter,g=o.enter,v=o.afterEnter,y=o.enterCancelled,_=o.beforeAppear,b=o.appear,w=o.afterAppear,x=o.appearCancelled,k=o.duration,S=Tn,O=Tn.$vnode;while(O&&O.parent)S=O.context,O=O.parent;var C=!S._isMounted||!t.isRootInsert;if(!C||b||""===b){var A=C&&f?f:c,E=C&&p?p:d,T=C&&h?h:u,P=C&&_||m,B=C&&"function"===typeof b?b:g,L=C&&w||v,I=C&&x||y,D=$(l(k)?k.enter:k);0;var R=!1!==a&&!et,j=qo(B),F=n._enterCb=M((function(){R&&(Ro(n,T),Ro(n,E)),F.cancelled?(R&&Ro(n,A),I&&I(n)):L&&L(n),n._enterCb=null}));t.data.show||be(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),B&&B(n,F)})),P&&P(n),R&&(Do(n,A),Do(n,E),Io((function(){Ro(n,A),F.cancelled||(Do(n,T),j||(Uo(D)?setTimeout(F,D):jo(n,s,F)))}))),t.data.show&&(e&&e(),B&&B(n,F)),R||j||F()}}}function Vo(t,e){var n=t.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=ko(t.data.transition);if(r(o)||1!==n.nodeType)return e();if(!i(n._leaveCb)){var a=o.css,s=o.type,c=o.leaveClass,u=o.leaveToClass,d=o.leaveActiveClass,f=o.beforeLeave,h=o.leave,p=o.afterLeave,m=o.leaveCancelled,g=o.delayLeave,v=o.duration,y=!1!==a&&!et,_=qo(h),b=$(l(v)?v.leave:v);0;var w=n._leaveCb=M((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(Ro(n,u),Ro(n,d)),w.cancelled?(y&&Ro(n,c),m&&m(n)):(e(),p&&p(n)),n._leaveCb=null}));g?g(x):x()}function x(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),y&&(Do(n,c),Do(n,d),Io((function(){Ro(n,c),w.cancelled||(Do(n,u),_||(Uo(b)?setTimeout(w,b):jo(n,s,w)))}))),h&&h(n,w),y||_||w())}}function Uo(t){return"number"===typeof t&&!isNaN(t)}function qo(t){if(r(t))return!1;var e=t.fns;return i(e)?qo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Wo(t,e){!0!==e.data.show&&Ho(e)}var Go=X?{create:Wo,activate:Wo,remove:function(t,e){!0!==t.data.show?Vo(t,e):e()}}:{},Yo=[Vi,Wi,no,so,_o,Go],Ko=Yo.concat(Fi),Xo=Pi({nodeOps:xi,modules:Ko});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Zo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?be(n,"postpatch",(function(){Zo.componentUpdated(t,e,n)})):Jo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ci(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Jo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!R(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Jo(t,e,n){Qo(t,e,n),(tt||nt)&&setTimeout((function(){Qo(t,e,n)}),0)}function Qo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],i)o=j(r,ea(a))>-1,a.selected!==o&&(a.selected=o);else if(R(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!R(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ho(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Ho(n,(function(){t.style.display=t.__vOriginalDisplay})):Vo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Zo,show:aa},la={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ca(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ca(xn(e.children)):t}function ua(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[x(o)]=i[o];return e}function da(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function ha(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||wn(t)},$a=function(t){return"show"===t.name},ma={name:"transition",props:la,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ca(i);if(!o)return i;if(this._leaving)return da(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=ua(this),c=this._vnode,u=ca(c);if(o.data.directives&&o.data.directives.some($a)&&(o.data.show=!0),u&&u.data&&!ha(o,u)&&!wn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=P({},l);if("out-in"===r)return this._leaving=!0,be(d,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),da(t,i);if("in-out"===r){if(wn(o))return c;var f,h=function(){f()};be(l,"afterEnter",h),be(l,"enterCancelled",h),be(d,"delayLeave",(function(t){f=t}))}}return i}}},ga=P({tag:String,moveClass:String},la);delete ga.mode;var va={props:ga,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Pn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ua(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(r){for(var c=[],u=[],d=0;d<r.length;d++){var f=r[d];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?c.push(f):u.push(f)}this.kept=t(e,null,c),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ya),t.forEach(_a),t.forEach(ba),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Do(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(To,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(To,t),n._moveCb=null,Ro(n,e))})}})))},methods:{hasMove:function(t,e){if(!Oo)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){xo(n,t)})),wo(n,e),n.style.display="none",this.$el.appendChild(n);var r=Fo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ya(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function _a(t){t.data.newPos=t.elm.getBoundingClientRect()}function ba(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var wa={Transition:ma,TransitionGroup:va};xr.config.mustUseProp=Nr,xr.config.isReservedTag=oi,xr.config.isReservedAttr=Mr,xr.config.getTagNamespace=ai,xr.config.isUnknownElement=li,P(xr.options.directives,sa),P(xr.options.components,wa),xr.prototype.__patch__=X?Xo:L,xr.prototype.$mount=function(t,e){return t=t&&X?ui(t):void 0,In(this,t,e)},X&&setTimeout((function(){H.devtools&&ct&&ct.emit("init",xr)}),0),e["default"]=xr}.call(this,n("c8ba"))},"2b88":function(t,e,n){"use strict";
/*!
* portal-vue © Thorsten Lünborg, 2019
*
* Version: 2.1.7
*
* LICENCE: MIT
*
* https://github.com/linusborg/portal-vue
*
*/function r(t){return t&&"object"===typeof t&&"default"in t?t["default"]:t}Object.defineProperty(e,"__esModule",{value:!0});var i=r(n("2b0e"));function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t){return s(t)||l(t)||c()}function s(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function l(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var u="undefined"!==typeof window;function d(t){return Array.isArray(t)||"object"===o(t)?Object.freeze(t):t}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.reduce((function(t,n){var r=n.passengers[0],i="function"===typeof r?r(e):n.passengers;return t.concat(i)}),[])}function h(t,e){return t.map((function(t,e){return[e,t]})).sort((function(t,n){return e(t[1],n[1])||t[0]-n[0]})).map((function(t){return t[1]}))}function p(t,e){return e.reduce((function(e,n){return t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}var $={},m={},g={},v=i.extend({data:function(){return{transports:$,targets:m,sources:g,trackInstances:u}},methods:{open:function(t){if(u){var e=t.to,n=t.from,r=t.passengers,o=t.order,a=void 0===o?1/0:o;if(e&&n&&r){var s={to:e,from:n,passengers:d(r),order:a},l=Object.keys(this.transports);-1===l.indexOf(e)&&i.set(this.transports,e,[]);var c=this.$_getTransportIndex(s),f=this.transports[e].slice(0);-1===c?f.push(s):f[c]=s,this.transports[e]=h(f,(function(t,e){return t.order-e.order}))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.to,r=t.from;if(n&&(r||!1!==e)&&this.transports[n])if(e)this.transports[n]=[];else{var i=this.$_getTransportIndex(t);if(i>=0){var o=this.transports[n].slice(0);o.splice(i,1),this.transports[n]=o}}},registerTarget:function(t,e,n){u&&(this.trackInstances&&!n&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,n){u&&(this.trackInstances&&!n&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,n=t.from;for(var r in this.transports[e])if(this.transports[e][r].from===n)return+r;return-1}}}),y=new v($),_=1,b=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(_++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){y.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){y.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};y.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"===typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:a(t),order:this.order};y.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(n,[this.normalizeOwnChildren(e)]):this.slim?t():t(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),w=i.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:y.transports,firstRender:!0}},created:function(){var t=this;this.$nextTick((function(){y.registerTarget(t.name,t)}))},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(t,e){y.unregisterTarget(e),y.registerTarget(t,this)}},mounted:function(){var t=this;this.transition&&this.$nextTick((function(){t.firstRender=!1}))},beforeDestroy:function(){y.unregisterTarget(this.name)},computed:{ownTransports:function(){var t=this.transports[this.name]||[];return this.multiple?t:0===t.length?[]:[t[t.length-1]]},passengers:function(){return f(this.ownTransports,this.slotProps)}},methods:{children:function(){return 0!==this.passengers.length?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var t=this.slim&&!this.transition;return t&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),t}},render:function(t){var e=this.noWrapper(),n=this.children(),r=this.transition||this.tag;return e?n[0]:this.slim&&!r?t():t(r,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),x=0,k=["disabled","name","order","slim","slotProps","tag","to"],S=["multiple","transition"],O=i.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(x++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if("undefined"!==typeof document){var t=document.querySelector(this.mountTo);if(t){var e=this.$props;if(y.targets[e.name])e.bail?console.warn("[portal-vue]: Target ".concat(e.name," is already mounted.\n Aborting because 'bail: true' is set")):this.portalTarget=y.targets[e.name];else{var n=e.append;if(n){var r="string"===typeof n?n:"DIV",i=document.createElement(r);t.appendChild(i),t=i}var o=p(this.$props,S);o.slim=this.targetSlim,o.tag=this.targetTag,o.slotProps=this.targetSlotProps,o.name=this.to,this.portalTarget=new w({el:t,parent:this.$parent||this,propsData:o})}}else console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"))}},beforeDestroy:function(){var t=this.portalTarget;if(this.append){var e=t.$el;e.parentNode.removeChild(e)}t.$destroy()},render:function(t){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),t();if(!this.$scopedSlots.manual){var e=p(this.$props,k);return t(b,{props:e,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||t()}});function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.portalName||"Portal",b),t.component(e.portalTargetName||"PortalTarget",w),t.component(e.MountingPortalName||"MountingPortal",O)}var A={install:C};e.default=A,e.Portal=b,e.PortalTarget=w,e.MountingPortal=O,e.Wormhole=y},"2ce7":function(module,exports,__webpack_require__){(function(global,process,Buffer,module){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;
/**
* @license Asciidoctor.js 2.2.0 | MIT | https://github.com/asciidoctor/asciidoctor.js
*/(function(t){var e,n,r,i,o,a,s=this;if("undefined"!==typeof global&&(s=global),"undefined"!==typeof window&&(s=window),e="object"===typeof s.console?s.console:null==s.console?s.console={}:{},"log"in e||(e.log=function(){}),"warn"in e||(e.warn=e.log),"undefined"!==typeof this.Opal)return e.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup."),this.Opal;var l=this.Opal={};l.global=s,s.Opal=l,l.config={missing_require_severity:"error",unsupported_features_severity:"warning",enable_stack_trace:!0};var c=Object.hasOwnProperty,u=Function.prototype.bind,d=Object.setPrototypeOf,f=Array.prototype.slice,h=Array.prototype.splice,p=4,$=p;function m(t,e,n){"string"===typeof t?t[e]=n:Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})}function g(t,e){if(t)return t.$$const[e]}function v(t,e){var n,r,i;if(0!==t.length)for(n=0,r=t.length;n<r;n++)if(i=t[n].$$const[e],null!=i)return i}function y(t,e){var n,r,i;if(null!=t)for(i=l.ancestors(t),n=0,r=i.length;n<r;n++)if(i[n].$$const&&c.call(i[n].$$const,e))return i[n].$$const[e]}function _(t,e){if(null==t||t.$$is_module)return y(i,e)}function b(t,e,n){if(!n)return(t||i).$const_missing(e)}function w(t,e){var n=g(t,e);if(n){if(!n.$$is_class)throw l.TypeError.$new(e+" is not a class");return n}}function x(t,e){if(t.$$super!==e)throw l.TypeError.$new("superclass mismatch for class "+t.$$name)}function k(t,e){var n=g(t,e);if(null==n&&t===i&&(n=y(i,e)),n&&!n.$$is_module&&n!==i)throw l.TypeError.$new(e+" is not a module");return n}function S(t){return t.hasOwnProperty("$$iclass")&&t.hasOwnProperty("$$root")}function O(t){var e,n=[],r=Object.getPrototypeOf(t.$$prototype);while(r){if(r.hasOwnProperty("$$class"))break;e=B(r),e&&n.push(e),r=Object.getPrototypeOf(r)}return n}function C(t){var e,n=[],r=Object.getPrototypeOf(t.$$prototype);if(t.$$prototype.hasOwnProperty("$$dummy"))while(r){if(r===t.$$prototype.$$define_methods_on)break;e=B(r),e&&n.push(e),r=Object.getPrototypeOf(r)}return n}function A(t){for(var e=t.$$prototype,n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var i=n[r];l.is_method(i)&&delete e[i]}}function E(t){var e=T(t);return t.$$is_module&&t.$$iclasses.push(e),e}function T(t){var e={},n=t.$$prototype;n.hasOwnProperty("$$dummy")&&(n=n.$$define_methods_on);var r,i=Object.getOwnPropertyNames(n),o=i.length;for(r=0;r<o;r++){var a=i[r];m(e,a,n[a])}return m(e,"$$iclass",!0),m(e,"$$module",t),e}function P(t){var e=t.length,n=t[0];if(m(n,"$$root",!0),1===e)return{first:n,last:n};for(var r=n,i=1;i<e;i++){var o=t[i];d(r,o),r=o}return{first:t[0],last:t[e-1]}}function B(t){if(!t.hasOwnProperty("$$dummy"))return t.hasOwnProperty("$$iclass")?t.$$module:t.hasOwnProperty("$$class")?t.$$class:void 0}function L(t){return t.$$own_prepended_modules.concat([t]).concat(t.$$own_included_modules)}function I(t){return"function"===typeof t&&!t.$$stub}function D(){}function R(){}function j(){}function M(){}function F(){}l.uid=function(){return $+=2,$},l.id=function(t){return t.$$is_number?2*t+1:(null!=t.$$id||m(t,"$$id",l.uid()),t.$$id)},l.gvars={},l.exit=function(t){l.gvars.DEBUG&&e.log("Exited with status "+t)},l.exceptions=[],l.pop_exception=function(){l.gvars["!"]=l.exceptions.pop()||n},l.inspect=function(e){return e===t?"undefined":null===e?"null":e.$$class?e.$inspect():e.toString()},l.defineProperty=m,l.slice=f,l.truthy=function(t){return t!==n&&null!=t&&(!t.$$is_boolean||1==t)},l.falsy=function(t){return t===n||null==t||t.$$is_boolean&&0==t},l.const_get_local=function(t,e,n){var r;if(null!=t){if("::"===t&&(t=i),!t.$$is_module&&!t.$$is_class)throw new l.TypeError(t.toString()+" is not a class/module");return r=g(t,e),null!=r?r:(r=b(t,e,n),null!=r?r:void 0)}},l.const_get_qualified=function(t,e,n){var r,o,a,s=l.const_cache_version;if(null!=t){if("::"===t&&(t=i),!t.$$is_module&&!t.$$is_class)throw new l.TypeError(t.toString()+" is not a class/module");return null==(o=t.$$const_cache)&&(m(t,"$$const_cache",Object.create(null)),o=t.$$const_cache),a=o[e],null==a||a[0]!==s?(null!=(r=g(t,e))||(r=y(t,e)),o[e]=[s,r]):r=a[1],null!=r?r:b(t,e,n)}},l.const_cache_version=1,l.const_get_relative=function(t,e,n){var r,i,o,a=t[0],s=l.const_cache_version;return null==(i=t.$$const_cache)&&(m(t,"$$const_cache",Object.create(null)),i=t.$$const_cache),o=i[e],null==o||o[0]!==s?(null!=(r=g(a,e))||null!=(r=v(t,e))||null!=(r=y(a,e))||(r=_(a,e)),i[e]=[s,r]):r=o[1],null!=r?r:b(a,e,n)},l.const_set=function(t,e,r){return null!=t&&"::"!==t||(t=i),r.$$is_a_module&&(null!=r.$$name&&r.$$name!==n||(r.$$name=e),null==r.$$base_module&&(r.$$base_module=t)),t.$$const=t.$$const||Object.create(null),t.$$const[e]=r,t.$$=t.$$const,l.const_cache_version++,t===i&&(l[e]=r),m(t,e,r),r},l.constants=function(t,e){null==e&&(e=!0);var n,r,o,a,s=[t],c={};for(e&&(s=s.concat(l.ancestors(t))),e&&t.$$is_module&&(s=s.concat([l.Object]).concat(l.ancestors(l.Object))),r=0,o=s.length;r<o;r++){if(n=s[r],t!==i&&n==i)break;for(a in n.$$const)c[a]=!0}return Object.keys(c)},l.const_remove=function(t,e){if(l.const_cache_version++,null!=t.$$const[e]){var r=t.$$const[e];return delete t.$$const[e],r}if(null!=t.$$autoload&&null!=t.$$autoload[e])return delete t.$$autoload[e],n;throw l.NameError.$new("constant "+t+"::"+t.$name()+" not defined")},l.allocate_class=function(t,e){var n,r;return r=null!=e&&e.$$bridge?function(){var t=f.call(arguments),r=new(u.apply(e.$$constructor,[null].concat(t)));return d(r,n.$$prototype),r}:function(){},t&&m(r,"displayName","::"+t),n=r,m(n,"$$name",t),m(n,"$$constructor",r),m(n,"$$prototype",r.prototype),m(n,"$$const",{}),m(n,"$$is_class",!0),m(n,"$$is_a_module",!0),m(n,"$$super",e),m(n,"$$cvars",{}),m(n,"$$own_included_modules",[]),m(n,"$$own_prepended_modules",[]),m(n,"$$ancestors",[]),m(n,"$$ancestors_cache_version",null),m(n.$$prototype,"$$class",n),l.Class&&d(n,l.Class.prototype),null!=e&&(d(n.$$prototype,e.$$prototype),e.$$meta&&l.build_class_singleton_class(n)),n},l.klass=function(t,e,n){var r;null==t?t=i:t.$$is_class||t.$$is_module||(t=t.$$class),null==e||e.hasOwnProperty("$$is_class")||(r=e,e=i);var o=w(t,n);return o?(e&&x(o,e),o):(null==e&&(e=i),o=l.allocate_class(n,e),l.const_set(t,n,o),e.$inherited&&e.$inherited(o),r&&l.bridge(r,o),o)},l.allocate_module=function(t){var e=function(){};t&&m(e,"displayName",t+".$$constructor");var n=e;return t&&m(e,"displayName",t+".constructor"),m(n,"$$name",t),m(n,"$$prototype",e.prototype),m(n,"$$const",{}),m(n,"$$is_module",!0),m(n,"$$is_a_module",!0),m(n,"$$cvars",{}),m(n,"$$iclasses",[]),m(n,"$$own_included_modules",[]),m(n,"$$own_prepended_modules",[]),m(n,"$$ancestors",[n]),m(n,"$$ancestors_cache_version",null),d(n,l.Module.prototype),n},l.module=function(t,e){var n;return null==t?t=i:t.$$is_class||t.$$is_module||(t=t.$$class),n=k(t,e),n||(n=l.allocate_module(e),l.const_set(t,e,n),n)},l.get_singleton_class=function(t){return t.$$meta?t.$$meta:t.hasOwnProperty("$$is_class")?l.build_class_singleton_class(t):t.hasOwnProperty("$$is_module")?l.build_module_singletin_class(t):l.build_object_singleton_class(t)},l.build_class_singleton_class=function(t){var e,n;return t.$$meta?t.$$meta:(e=t===r?a:l.get_singleton_class(t.$$super),n=l.allocate_class(null,e,(function(){})),m(n,"$$is_singleton",!0),m(n,"$$singleton_of",t),m(t,"$$meta",n),d(t,n.$$prototype),m(t,"$$class",l.Class),n)},l.build_module_singletin_class=function(t){if(t.$$meta)return t.$$meta;var e=l.allocate_class(null,l.Module,(function(){}));return m(e,"$$is_singleton",!0),m(e,"$$singleton_of",t),m(t,"$$meta",e),d(t,e.$$prototype),m(t,"$$class",l.Module),e},l.build_object_singleton_class=function(t){var e=t.$$class,r=l.allocate_class(n,e,(function(){}));return m(r,"$$is_singleton",!0),m(r,"$$singleton_of",t),delete r.$$prototype.$$class,m(t,"$$meta",r),d(t,t.$$meta.$$prototype),r},l.is_method=function(t){return"$"===t[0]&&"$"!==t[1]},l.instance_methods=function(t){for(var e=[],n=[],r=l.ancestors(t),i=0,o=r.length;i<o;i++){var a=r[i],s=a.$$prototype;s.hasOwnProperty("$$dummy")&&(s=s.$$define_methods_on);for(var c=Object.getOwnPropertyNames(s),u=0,d=c.length;u<d;u++){var f=c[u];if(l.is_method(f)){var h=f.slice(1),p=s[f];p.$$stub&&-1===e.indexOf(h)&&e.push(h),p.$$stub||-1!==n.indexOf(h)||-1!==e.indexOf(h)||n.push(h)}}}return n},l.own_instance_methods=function(t){var e=[],n=t.$$prototype;n.hasOwnProperty("$$dummy")&&(n=n.$$define_methods_on);for(var r=Object.getOwnPropertyNames(n),i=0,o=r.length;i<o;i++){var a=r[i];if(l.is_method(a)){var s=n[a];if(!s.$$stub){var c=a.slice(1);e.push(c)}}}return e},l.methods=function(t){return l.instance_methods(l.get_singleton_class(t))},l.own_methods=function(t){return l.own_instance_methods(l.get_singleton_class(t))},l.receiver_methods=function(t){var e=l.get_singleton_class(t),n=l.own_instance_methods(e),r=l.own_instance_methods(e.$$super);return n.concat(r)},l.class_variables=function(t){var e,n=l.ancestors(t),r=n.length,i={};for(e=r-1;e>=0;e--){var o=n[e];for(var a in o.$$cvars)i[a]=o.$$cvars[a]}return i},l.class_variable_set=function(t,e,n){var r,i=l.ancestors(t),o=i.length;for(r=o-2;r>=0;r--){var a=i[r];if(c.call(a.$$cvars,e))return a.$$cvars[e]=n,n}return t.$$cvars[e]=n,n},l.append_features=function(t,e){var n=l.ancestors(t),r=[];if(-1!==n.indexOf(e))throw l.ArgumentError.$new("cyclic include detected");for(var i=0,o=n.length;i<o;i++){var a=n[i],s=E(a);m(s,"$$included",!0),r.push(s)}var c,u,f=l.ancestors(e),h=P(r);if(-1===f.indexOf(t))c=e.$$prototype,u=Object.getPrototypeOf(e.$$prototype);else{var p=e.$$prototype,$=p,g=Object.getPrototypeOf($);while(null!=g){if(S(g)&&g.$$module===t)break;$=g,g=Object.getPrototypeOf(g)}var v=Object.getPrototypeOf(g);while(v.hasOwnProperty("$$iclass")&&!S(v))v=Object.getPrototypeOf(v);c=$,u=v}d(c,h.first),d(h.last,u),e.$$own_included_modules=O(e),l.const_cache_version++},l.prepend_features=function(t,e){var n=l.ancestors(t),r=[];if(-1!==n.indexOf(e))throw l.ArgumentError.$new("cyclic prepend detected");for(var i=0,o=n.length;i<o;i++){var a=n[i],s=E(a);m(s,"$$prepended",!0),r.push(s)}var c,u,f,h=P(r),p=e.$$prototype,$=Object.getPrototypeOf(p);p.hasOwnProperty("$$dummy")?c=p.$$define_methods_on:(c=T(e),A(e),m(p,"$$dummy",!0),m(p,"$$define_methods_on",c),d(p,c),d(c,$));var g=l.ancestors(e);if(-1!==g.indexOf(t))throw l.RuntimeError.$new("Prepending a module multiple times is not supported");u=p,f=Object.getPrototypeOf(p);while(null!=f){if(f.hasOwnProperty("$$root")||f===c||!f.hasOwnProperty("$$iclass"))break;f=Object.getPrototypeOf(f)}d(u,h.first),d(h.last,f),e.$$own_prepended_modules=C(e),l.const_cache_version++},l.bridge=function(t,e){if(t.hasOwnProperty("$$bridge"))throw l.ArgumentError.$new("already bridged");e.$$super||l.Object;e.$$prototype;m(t,"$$bridge",e),d(t.prototype,(e.$$super||l.Object).$$prototype),m(e,"$$prototype",t.prototype),m(e.$$prototype,"$$class",e),m(e,"$$constructor",t),m(e,"$$bridge",!0)},l.ancestors=function(t){if(!t)return[];if(t.$$ancestors_cache_version===l.const_cache_version)return t.$$ancestors;var e,n,r,i=[];for(e=0,n=L(t),r=n.length;e<r;e++)i.push(n[e]);if(t.$$super)for(e=0,n=l.ancestors(t.$$super),r=n.length;e<r;e++)i.push(n[e]);return t.$$ancestors_cache_version=l.const_cache_version,t.$$ancestors=i,i},l.included_modules=function(t){for(var e=[],n=null,r=Object.getPrototypeOf(t.$$prototype);r&&Object.getPrototypeOf(r);r=Object.getPrototypeOf(r))n=B(r),n&&n.$$is_module&&r.$$iclass&&r.$$included&&e.push(n);return e},l.add_stubs=function(t){for(var e=l.BasicObject.$$prototype,n=0,r=t.length;n<r;n++){var i=t[n],o=e[i];(null==o||o.$$stub)&&l.add_stub_for(e,i)}},l.add_stub_for=function(t,e){var n=l.stub_for(e);m(t,e,n)},l.stub_for=function(t){function e(){this.$method_missing.$$p=e.$$p,e.$$p=null;for(var n=new Array(arguments.length),r=0,i=n.length;r<i;r++)n[r]=arguments[r];return this.$method_missing.apply(this,[t.slice(1)].concat(n))}return e.$$stub=!0,e},l.ac=function(t,e,n,r){var i="";throw n.$$is_a_module?i+=n.$$name+".":i+=n.$$class.$$name+"#",i+=r,l.ArgumentError.$new("["+i+"] wrong number of arguments("+t+" for "+e+")")},l.block_ac=function(t,e,n){var r="`block in "+n+"'";throw l.ArgumentError.$new(r+": wrong number of arguments ("+t+" for "+e+")")},l.find_super_dispatcher=function(t,e,n,r,i){var o,a,s="$"+e;o=t.hasOwnProperty("$$meta")?l.ancestors(t.$$meta):l.ancestors(t.$$class);for(var c=o.indexOf(n.$$owner),u=c+1;u<o.length;u++){var d=o[u],f=d.$$prototype;if(f.hasOwnProperty("$$dummy")&&(f=f.$$define_methods_on),f.hasOwnProperty(s)){var h=f[s];h.$$stub||(a=h);break}}if(!r&&null==a&&l.Kernel.$method_missing===t.$method_missing)throw l.NoMethodError.$new("super: no superclass method `"+e+"' for "+t,e);return a},l.find_iter_super_dispatcher=function(t,e,n,r,i){var o=e;if(!n)throw l.RuntimeError.$new("super called outside of method");if(i&&n.$$define_meth)throw l.RuntimeError.$new("implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly");return n.$$def&&(o=n.$$jsid),l.find_super_dispatcher(t,o,n,r)},l.ret=function(t){throw l.returner.$v=t,l.returner},l.brk=function(t,e){throw e.$v=t,e},l.new_brk=function(){return new Error("unexpected break")},l.yield1=function(t,e){if("function"!==typeof t)throw l.LocalJumpError.$new("no block given");var n=t.$$has_top_level_mlhs_arg,r=t.$$has_trailing_comma_in_args;return(t.length>1||(n||r)&&1===t.length)&&(e=l.to_ary(e)),(t.length>1||r&&1===t.length)&&e.$$is_array?t.apply(null,e):t(e)},l.yieldX=function(t,e){if("function"!==typeof t)throw l.LocalJumpError.$new("no block given");if(t.length>1&&1===e.length&&e[0].$$is_array)return t.apply(null,e[0]);if(!e.$$is_array){for(var n=new Array(e.length),r=0,i=n.length;r<i;r++)n[r]=e[r];return t.apply(null,n)}return t.apply(null,e)},l.rescue=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(r.$$is_array){var i=l.rescue(t,r);if(i)return i}else{if(r===l.JS.Error)return r;if(r["$==="](t))return r}}return null},l.is_a=function(t,e){if(null!=e&&t.$$meta===e||t.$$class===e)return!0;if(t.$$is_number&&e.$$is_number_class)return!0;var n,r,i=l.ancestors(t.$$is_class?l.get_singleton_class(t):t.$$meta||t.$$class);for(n=0,r=i.length;n<r;n++)if(i[n]===e)return!0;return!1},l.to_hash=function(t){if(t.$$is_hash)return t;if(t["$respond_to?"]("to_hash",!0)){var e=t.$to_hash();if(e.$$is_hash)return e;throw l.TypeError.$new("Can't convert "+t.$$class+" to Hash ("+t.$$class+"#to_hash gives "+e.$$class+")")}throw l.TypeError.$new("no implicit conversion of "+t.$$class+" into Hash")},l.to_ary=function(t){if(t.$$is_array)return t;if(t["$respond_to?"]("to_ary",!0)){var e=t.$to_ary();if(e===n)return[t];if(e.$$is_array)return e;throw l.TypeError.$new("Can't convert "+t.$$class+" to Array ("+t.$$class+"#to_ary gives "+e.$$class+")")}return[t]},l.to_a=function(t){if(t.$$is_array)return t.slice();if(t["$respond_to?"]("to_a",!0)){var e=t.$to_a();if(e===n)return[t];if(e.$$is_array)return e;throw l.TypeError.$new("Can't convert "+t.$$class+" to Array ("+t.$$class+"#to_a gives "+e.$$class+")")}return[t]},l.extract_kwargs=function(t){var e=t[t.length-1];return null!=e&&e["$respond_to?"]("to_hash",!0)?(h.call(t,t.length-1,1),e.$to_hash()):l.hash2([],{})},l.kwrestargs=function(t,e){var n=[],r={},i=null,o=t.$$smap;for(i in o)e[i]||(n.push(i),r[i]=o[i]);return l.hash2(n,r)},l.send=function(t,e,n,r){var i="string"===typeof e?t["$"+e]:e;return null!=i?("function"===typeof r&&(i.$$p=r),i.apply(t,n)):t.$method_missing.apply(t,[e].concat(n))},l.lambda=function(t){return t.$$is_lambda=!0,t},l.def=function(t,e,n){t===l.top?l.defn(l.Object,e,n):!t.$$eval&&t.$$is_a_module?l.defn(t,e,n):l.defs(t,e,n)},l.defn=function(t,e,n){n.displayName=e,n.$$owner=t;var r=t.$$prototype;if(r.hasOwnProperty("$$dummy")&&(r=r.$$define_methods_on),m(r,e,n),t.$$is_module){t.$$module_function&&l.defs(t,e,n);for(var i=0,o=t.$$iclasses,a=o.length;i<a;i++){var s=o[i];m(s,e,n)}}var c=t.$$singleton_of;!t.$method_added||t.$method_added.$$stub||c?c&&c.$singleton_method_added&&!c.$singleton_method_added.$$stub&&c.$singleton_method_added(e.substr(1)):t.$method_added(e.substr(1))},l.defs=function(t,e,n){if(t.$$is_string||t.$$is_number)throw l.TypeError.$new("can't define singleton");l.defn(l.get_singleton_class(t),e,n)},l.rdef=function(t,e){if(!c.call(t.$$prototype,e))throw l.NameError.$new("method '"+e.substr(1)+"' not defined in "+t.$name());delete t.$$prototype[e],t.$$is_singleton?t.$$prototype.$singleton_method_removed&&!t.$$prototype.$singleton_method_removed.$$stub&&t.$$prototype.$singleton_method_removed(e.substr(1)):t.$method_removed&&!t.$method_removed.$$stub&&t.$method_removed(e.substr(1))},l.udef=function(t,e){if(!t.$$prototype[e]||t.$$prototype[e].$$stub)throw l.NameError.$new("method '"+e.substr(1)+"' not defined in "+t.$name());l.add_stub_for(t.$$prototype,e),t.$$is_singleton?t.$$prototype.$singleton_method_undefined&&!t.$$prototype.$singleton_method_undefined.$$stub&&t.$$prototype.$singleton_method_undefined(e.substr(1)):t.$method_undefined&&!t.$method_undefined.$$stub&&t.$method_undefined(e.substr(1))},l.alias=function(t,e,n){var r,i="$"+e,o="$"+n,a=t.$$prototype["$"+n];if(t.$$eval)return l.alias(l.get_singleton_class(t),e,n);if(!I(a)){var s=t.$$super;while("function"!==typeof a&&s)a=s[o],s=s.$$super;if(!I(a)&&t.$$is_module&&(a=l.Object.$$prototype[o]),!I(a))throw l.NameError.$new("undefined method `"+n+"' for class `"+t.$name()+"'")}return a.$$alias_of&&(a=a.$$alias_of),r=function(){var t,e,n,i=r.$$p;for(t=new Array(arguments.length),e=0,n=arguments.length;e<n;e++)t[e]=arguments[e];return null!=i&&(r.$$p=null),l.send(this,a,t,i)},r.displayName=e,r.length=a.length,r.$$arity=a.$$arity,r.$$parameters=a.$$parameters,r.$$source_location=a.$$source_location,r.$$alias_of=a,r.$$alias_name=e,l.defn(t,i,r),t},l.alias_native=function(t,e,n){var r="$"+e,i=t.$$prototype[n];if("function"!==typeof i||i.$$stub)throw l.NameError.$new("undefined native method `"+n+"' for class `"+t.$name()+"'");return l.defn(t,r,i),t},l.hash_init=function(t){t.$$smap=Object.create(null),t.$$map=Object.create(null),t.$$keys=[]},l.hash_clone=function(t,e){e.$$none=t.$$none,e.$$proc=t.$$proc;for(var n,r,i=0,o=t.$$keys,a=t.$$smap,s=o.length;i<s;i++)n=o[i],n.$$is_string?r=a[n]:(r=n.value,n=n.key),l.hash_put(e,n,r)},l.hash_put=function(e,n,r){if(n.$$is_string)return c.call(e.$$smap,n)||e.$$keys.push(n),void(e.$$smap[n]=r);var i,o,a;if(i=e.$$by_identity?l.id(n):n.$hash(),!c.call(e.$$map,i))return o={key:n,key_hash:i,value:r},e.$$keys.push(o),void(e.$$map[i]=o);o=e.$$map[i];while(o){if(n===o.key||n["$eql?"](o.key)){a=t,o.value=r;break}a=o,o=o.next}a&&(o={key:n,key_hash:i,value:r},e.$$keys.push(o),a.next=o)},l.hash_get=function(t,e){if(e.$$is_string)return c.call(t.$$smap,e)?t.$$smap[e]:void 0;var n,r;if(n=t.$$by_identity?l.id(e):e.$hash(),c.call(t.$$map,n)){r=t.$$map[n];while(r){if(e===r.key||e["$eql?"](r.key))return r.value;r=r.next}}},l.hash_delete=function(t,e){var n,r,i=t.$$keys,o=i.length;if(e.$$is_string){if(!c.call(t.$$smap,e))return;for(n=0;n<o;n++)if(i[n]===e){i.splice(n,1);break}return r=t.$$smap[e],delete t.$$smap[e],r}var a=e.$hash();if(c.call(t.$$map,a)){var s,l=t.$$map[a];while(l){if(e===l.key||e["$eql?"](l.key)){for(r=l.value,n=0;n<o;n++)if(i[n]===l){i.splice(n,1);break}return s&&l.next?s.next=l.next:s?delete s.next:l.next?t.$$map[a]=l.next:delete t.$$map[a],r}s=l,l=l.next}}},l.hash_rehash=function(e){for(var n,r,i,o=0,a=e.$$keys.length;o<a;o++)if(!e.$$keys[o].$$is_string&&(n=e.$$keys[o].key.$hash(),n!==e.$$keys[o].key_hash)){r=e.$$map[e.$$keys[o].key_hash],i=t;while(r){if(r===e.$$keys[o]){i&&r.next?i.next=r.next:i?delete i.next:r.next?e.$$map[e.$$keys[o].key_hash]=r.next:delete e.$$map[e.$$keys[o].key_hash];break}i=r,r=r.next}if(e.$$keys[o].key_hash=n,c.call(e.$$map,n)){r=e.$$map[n],i=t;while(r){if(r===e.$$keys[o]){i=t;break}i=r,r=r.next}i&&(i.next=e.$$keys[o])}else e.$$map[n]=e.$$keys[o]}},l.hash=function(){var t,e,n,r,i,o,a=arguments.length;if(1===a&&arguments[0].$$is_hash)return arguments[0];if(e=new l.Hash,l.hash_init(e),1===a&&arguments[0].$$is_array){for(t=arguments[0],r=t.length,n=0;n<r;n++){if(2!==t[n].length)throw l.ArgumentError.$new("value not of length 2: "+t[n].$inspect());i=t[n][0],o=t[n][1],l.hash_put(e,i,o)}return e}if(1===a){for(i in t=arguments[0],t)c.call(t,i)&&(o=t[i],l.hash_put(e,i,o));return e}if(a%2!==0)throw l.ArgumentError.$new("odd number of arguments for Hash");for(n=0;n<a;n+=2)i=arguments[n],o=arguments[n+1],l.hash_put(e,i,o);return e},l.hash2=function(t,e){var n=new l.Hash;return n.$$smap=e,n.$$map=Object.create(null),n.$$keys=t,n},l.range=function(t,e,n){var r=new l.Range;return r.begin=t,r.end=e,r.excl=n,r},l.ivar=function(t){return"constructor"===t||"displayName"===t||"__count__"===t||"__noSuchMethod__"===t||"__parent__"===t||"__proto__"===t||"hasOwnProperty"===t||"valueOf"===t?t+"$":t},l.escape_regexp=function(t){return t.replace(/([-[\]\/{}()*+?.^$\\| ])/g,"\\$1").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\f]/g,"\\f").replace(/[\t]/g,"\\t")},l.global_regexp=function(t){return t.global?t:(null==t.$$g?t.$$g=new RegExp(t.source,(t.multiline?"gm":"g")+(t.ignoreCase?"i":"")):t.$$g.lastIndex=null,t.$$g)},l.global_multiline_regexp=function(t){var e;if(t.multiline){if(t.global)return t;e=null!=t.$$g?t.$$g:t.$$g=new RegExp(t.source,"gm"+(t.ignoreCase?"i":""))}else e=null!=t.$$gm?t.$$gm:t.$$gm=new RegExp(t.source,"gm"+(t.ignoreCase?"i":""));return e.lastIndex=null,e},l.modules={},l.loaded_features=["corelib/runtime"],l.current_dir=".",l.require_table={"corelib/runtime":!0},l.normalize=function(t){var e,n,r=[],i="/";"."!==l.current_dir&&(t=l.current_dir.replace(/\/*$/,"/")+t),t=t.replace(/^\.\//,""),t=t.replace(/\.(rb|opal|js)$/,""),e=t.split(i);for(var o=0,a=e.length;o<a;o++)n=e[o],""!==n&&(".."===n?r.pop():r.push(n));return r.join(i)},l.loaded=function(t){var e,n,r;for(e=0,n=t.length;e<n;e++)r=l.normalize(t[e]),l.require_table[r]||(l.loaded_features.push(r),l.require_table[r]=!0)},l.load=function(t){t=l.normalize(t),l.loaded([t]);var n=l.modules[t];if(n)n(l);else{var r=l.config.missing_require_severity,i="cannot load such file -- "+t;if("error"===r)throw l.LoadError?l.LoadError.$new(i):i;"warning"===r&&e.warn("WARNING: LoadError: "+i)}return!0},l.require=function(t){return t=l.normalize(t),!l.require_table[t]&&l.load(t)},l.BasicObject=r=l.allocate_class("BasicObject",null,D),l.Object=i=l.allocate_class("Object",l.BasicObject,R),l.Module=o=l.allocate_class("Module",l.Object,j),l.Class=a=l.allocate_class("Class",l.Module,M),d(l.BasicObject,l.Class.$$prototype),d(l.Object,l.Class.$$prototype),d(l.Module,l.Class.$$prototype),d(l.Class,l.Class.$$prototype),r.$$const["BasicObject"]=r,l.const_set(i,"BasicObject",r),l.const_set(i,"Object",i),l.const_set(i,"Module",o),l.const_set(i,"Class",a),r.$$class=a,i.$$class=a,o.$$class=a,a.$$class=a,m(i.$$prototype,"toString",(function(){var t=this.$to_s();return t.$$is_string&&"object"===typeof t?t.valueOf():t})),m(i.$$prototype,"$require",l.require),l.$$=i.$$,l.top=new i,l.top.$to_s=l.top.$inspect=function(){return"main"},l.NilClass=l.allocate_class("NilClass",l.Object,F),l.const_set(i,"NilClass",l.NilClass),n=l.nil=new l.NilClass,n.$$id=p,n.call=n.apply=function(){throw l.LocalJumpError.$new("no block given")},l.breaker=new Error("unexpected break (old)"),l.returner=new Error("unexpected return"),TypeError.$$super=Error}).call(this),Opal.loaded(["corelib/runtime.js"]),Opal.modules["corelib/helpers"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.truthy;return t.add_stubs(["$new","$class","$===","$respond_to?","$raise","$type_error","$__send__","$coerce_to","$nil?","$<=>","$coerce_to!","$!=","$[]","$upcase"]),function(e,a){var s,l,c,u,d,f,h,p,$,m,g,v,y,_,b=i(e,"Opal"),w=[b].concat(a);t.defs(b,"$bridge",s=function(e,n){return t.bridge(e,n)},s.$$arity=2),t.defs(b,"$type_error",l=function(t,e,i,a){var s;return null==i&&(i=n),null==a&&(a=n),o(o(s=i)?a:s)?r(w,"TypeError").$new("can't convert "+t.$class()+" into "+e+" ("+t.$class()+"#"+i+" gives "+a.$class()+")"):r(w,"TypeError").$new("no implicit conversion of "+t.$class()+" into "+e)},l.$$arity=-3),t.defs(b,"$coerce_to",c=function(t,e,n){var r=this;return o(e["$==="](t))?t:(o(t["$respond_to?"](n))||r.$raise(r.$type_error(t,e)),t.$__send__(n))},c.$$arity=3),t.defs(b,"$coerce_to!",u=function(t,e,r){var i=this,a=n;return a=i.$coerce_to(t,e,r),o(e["$==="](a))||i.$raise(i.$type_error(t,e,r,a)),a},u.$$arity=3),t.defs(b,"$coerce_to?",d=function(t,e,r){var i=this,a=n;return o(t["$respond_to?"](r))?(a=i.$coerce_to(t,e,r),o(a["$nil?"]())?n:(o(e["$==="](a))||i.$raise(i.$type_error(t,e,r,a)),a)):n},d.$$arity=3),t.defs(b,"$try_convert",f=function(t,e,r){return o(e["$==="](t))?t:o(t["$respond_to?"](r))?t.$__send__(r):n},f.$$arity=3),t.defs(b,"$compare",h=function(t,e){var i=this,a=n;return a=t["$<=>"](e),o(a===n)&&i.$raise(r(w,"ArgumentError"),"comparison of "+t.$class()+" with "+e.$class()+" failed"),a},h.$$arity=2),t.defs(b,"$destructure",p=function(t){if(1==t.length)return t[0];if(t.$$is_array)return t;for(var e=new Array(t.length),n=0,r=e.length;n<r;n++)e[n]=t[n];return e},p.$$arity=1),t.defs(b,"$respond_to?",$=function(t,e,n){return null==n&&(n=!1),!(null==t||!t.$$class)&&t["$respond_to?"](e,n)},$.$$arity=-3),t.defs(b,"$inspect_obj",m=function(e){return t.inspect(e)},m.$$arity=1),t.defs(b,"$instance_variable_name!",g=function(t){var e=this;return t=r(w,"Opal")["$coerce_to!"](t,r(w,"String"),"to_str"),o(/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(t))||e.$raise(r(w,"NameError").$new("'"+t+"' is not allowed as an instance variable name",t)),t},g.$$arity=1),t.defs(b,"$class_variable_name!",v=function(t){var e=this;return t=r(w,"Opal")["$coerce_to!"](t,r(w,"String"),"to_str"),o(t.length<3||"@@"!==t.slice(0,2))&&e.$raise(r(w,"NameError").$new("`"+t+"' is not allowed as a class variable name",t)),t},v.$$arity=1),t.defs(b,"$const_name!",y=function(t){var e=this;return t=r(w,"Opal")["$coerce_to!"](t,r(w,"String"),"to_str"),o(t["$[]"](0)["$!="](t["$[]"](0).$upcase()))&&e.$raise(r(w,"NameError"),"wrong constant name "+t),t},y.$$arity=1),t.defs(b,"$pristine",_=function(e,r){var i,o,a,s;i=t.slice.call(arguments,1,arguments.length),o=i;for(var l=o.length-1;l>=0;l--)a=o[l],s=e.$$prototype["$"+a],s&&!s.$$stub&&(s.$$pristine=!0);return n},_.$$arity=-2)}(e[0],e)},Opal.modules["corelib/module"]=function(Opal){function $rb_lt(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function $rb_gt(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.const_get_qualified,$$=Opal.const_get_relative,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$send=Opal.send,$truthy=Opal.truthy,$lambda=Opal.lambda,$range=Opal.range,$hash2=Opal.hash2;return Opal.add_stubs(["$module_eval","$to_proc","$===","$raise","$equal?","$<","$>","$nil?","$attr_reader","$attr_writer","$class_variable_name!","$new","$const_name!","$=~","$inject","$split","$const_get","$==","$!~","$start_with?","$bind","$call","$class","$append_features","$included","$name","$cover?","$size","$merge","$compile","$proc","$any?","$prepend_features","$prepended","$to_s","$__id__","$constants","$include?","$copy_class_variables","$copy_constants"]),function($base,$super,$parent_nesting){var self=$klass($base,$super,"Module"),$nesting=[self].concat($parent_nesting),$Module_allocate$1,$Module_initialize$2,$Module_$eq_eq_eq$3,$Module_$lt$4,$Module_$lt_eq$5,$Module_$gt$6,$Module_$gt_eq$7,$Module_$lt_eq_gt$8,$Module_alias_method$9,$Module_alias_native$10,$Module_ancestors$11,$Module_append_features$12,$Module_attr_accessor$13,$Module_attr_reader$14,$Module_attr_writer$15,$Module_autoload$16,$Module_class_variables$17,$Module_class_variable_get$18,$Module_class_variable_set$19,$Module_class_variable_defined$ques$20,$Module_remove_class_variable$21,$Module_constants$22,$Module_constants$23,$Module_nesting$24,$Module_const_defined$ques$25,$Module_const_get$26,$Module_const_missing$28,$Module_const_set$29,$Module_public_constant$30,$Module_define_method$31,$Module_remove_method$33,$Module_singleton_class$ques$34,$Module_include$35,$Module_included_modules$36,$Module_include$ques$37,$Module_instance_method$38,$Module_instance_methods$39,$Module_included$40,$Module_extended$41,$Module_extend_object$42,$Module_method_added$43,$Module_method_removed$44,$Module_method_undefined$45,$Module_module_eval$46,$Module_module_exec$48,$Module_method_defined$ques$49,$Module_module_function$50,$Module_name$51,$Module_prepend$52,$Module_prepend_features$53,$Module_prepended$54,$Module_remove_const$55,$Module_to_s$56,$Module_undef_method$57,$Module_instance_variables$58,$Module_dup$59,$Module_copy_class_variables$60,$Module_copy_constants$61;return Opal.defs(self,"$allocate",$Module_allocate$1=function(){var t=this,e=Opal.allocate_module(nil,(function(){}));return t!==Opal.Module&&Object.setPrototypeOf(e,t.$$prototype),e},$Module_allocate$1.$$arity=0),Opal.def(self,"$initialize",$Module_initialize$2=function(){var t=$Module_initialize$2.$$p,e=t||nil,n=this;return t&&($Module_initialize$2.$$p=null),t&&($Module_initialize$2.$$p=null),e!==nil?$send(n,"module_eval",[],e.$to_proc()):nil},$Module_initialize$2.$$arity=0),Opal.def(self,"$===",$Module_$eq_eq_eq$3=function(t){var e=this;return!$truthy(null==t)&&Opal.is_a(t,e)},$Module_$eq_eq_eq$3.$$arity=1),Opal.def(self,"$<",$Module_$lt$4=function(t){var e=this;$truthy($$($nesting,"Module")["$==="](t))||e.$raise($$($nesting,"TypeError"),"compared with non class/module");var n,r,i,o=e;if(o===t)return!1;for(r=0,n=Opal.ancestors(e),i=n.length;r<i;r++)if(n[r]===t)return!0;for(r=0,n=Opal.ancestors(t),i=n.length;r<i;r++)if(n[r]===e)return!1;return nil},$Module_$lt$4.$$arity=1),Opal.def(self,"$<=",$Module_$lt_eq$5=function(t){var e,n=this;return $truthy(e=n["$equal?"](t))?e:$rb_lt(n,t)},$Module_$lt_eq$5.$$arity=1),Opal.def(self,"$>",$Module_$gt$6=function(t){var e=this;return $truthy($$($nesting,"Module")["$==="](t))||e.$raise($$($nesting,"TypeError"),"compared with non class/module"),$rb_lt(t,e)},$Module_$gt$6.$$arity=1),Opal.def(self,"$>=",$Module_$gt_eq$7=function(t){var e,n=this;return $truthy(e=n["$equal?"](t))?e:$rb_gt(n,t)},$Module_$gt_eq$7.$$arity=1),Opal.def(self,"$<=>",$Module_$lt_eq_gt$8=function(t){var e=this,n=nil;return e===t?0:$truthy($$($nesting,"Module")["$==="](t))?(n=$rb_lt(e,t),$truthy(n["$nil?"]())?nil:$truthy(n)?-1:1):nil},$Module_$lt_eq_gt$8.$$arity=1),Opal.def(self,"$alias_method",$Module_alias_method$9=function(t,e){var n=this;return Opal.alias(n,t,e),n},$Module_alias_method$9.$$arity=2),Opal.def(self,"$alias_native",$Module_alias_native$10=function(t,e){var n=this;return null==e&&(e=t),Opal.alias_native(n,t,e),n},$Module_alias_native$10.$$arity=-2),Opal.def(self,"$ancestors",$Module_ancestors$11=function(){var t=this;return Opal.ancestors(t)},$Module_ancestors$11.$$arity=0),Opal.def(self,"$append_features",$Module_append_features$12=function(t){var e=this;return Opal.append_features(e,t),e},$Module_append_features$12.$$arity=1),Opal.def(self,"$attr_accessor",$Module_attr_accessor$13=function(t){var e,n,r=this;return e=Opal.slice.call(arguments,0,arguments.length),n=e,$send(r,"attr_reader",Opal.to_a(n)),$send(r,"attr_writer",Opal.to_a(n))},$Module_attr_accessor$13.$$arity=-1),Opal.alias(self,"attr","attr_accessor"),Opal.def(self,"$attr_reader",$Module_attr_reader$14=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=r.$$prototype,o=n.length-1;o>=0;o--){var a=n[o],s="$"+a,l=Opal.ivar(a),c=function(t){return function(){return null==this[t]?nil:this[t]}}(l);Opal.defineProperty(i,l,nil),c.$$parameters=[],c.$$arity=0,Opal.defn(r,s,c)}return nil},$Module_attr_reader$14.$$arity=-1),Opal.def(self,"$attr_writer",$Module_attr_writer$15=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=r.$$prototype,o=n.length-1;o>=0;o--){var a=n[o],s="$"+a+"=",l=Opal.ivar(a),c=function(t){return function(e){return this[t]=e}}(l);c.$$parameters=[["req"]],c.$$arity=1,Opal.defineProperty(i,l,nil),Opal.defn(r,s,c)}return nil},$Module_attr_writer$15.$$arity=-1),Opal.def(self,"$autoload",$Module_autoload$16=function(t,e){var n=this;return null==n.$$autoload&&(n.$$autoload={}),Opal.const_cache_version++,n.$$autoload[t]=e,nil},$Module_autoload$16.$$arity=2),Opal.def(self,"$class_variables",$Module_class_variables$17=function(){var t=this;return Object.keys(Opal.class_variables(t))},$Module_class_variables$17.$$arity=0),Opal.def(self,"$class_variable_get",$Module_class_variable_get$18=function(t){var e=this;t=$$($nesting,"Opal")["$class_variable_name!"](t);var n=Opal.class_variables(e)[t];return null==n&&e.$raise($$($nesting,"NameError").$new("uninitialized class variable "+t+" in "+e,t)),n},$Module_class_variable_get$18.$$arity=1),Opal.def(self,"$class_variable_set",$Module_class_variable_set$19=function(t,e){var n=this;return t=$$($nesting,"Opal")["$class_variable_name!"](t),Opal.class_variable_set(n,t,e)},$Module_class_variable_set$19.$$arity=2),Opal.def(self,"$class_variable_defined?",$Module_class_variable_defined$ques$20=function(t){var e=this;return t=$$($nesting,"Opal")["$class_variable_name!"](t),Opal.class_variables(e).hasOwnProperty(t)},$Module_class_variable_defined$ques$20.$$arity=1),Opal.def(self,"$remove_class_variable",$Module_remove_class_variable$21=function(t){var e=this;if(t=$$($nesting,"Opal")["$class_variable_name!"](t),Opal.hasOwnProperty.call(e.$$cvars,t)){var n=e.$$cvars[t];return delete e.$$cvars[t],n}e.$raise($$($nesting,"NameError"),"cannot remove "+t+" for "+e)},$Module_remove_class_variable$21.$$arity=1),Opal.def(self,"$constants",$Module_constants$22=function(t){var e=this;return null==t&&(t=!0),Opal.constants(e,t)},$Module_constants$22.$$arity=-1),Opal.defs(self,"$constants",$Module_constants$23=function(t){var e=this;if(null==t){var n,r,i,o=(e.$$nesting||[]).concat(Opal.Object),a={};for(r=0,i=o.length;r<i;r++)for(n in o[r].$$const)a[n]=!0;return Object.keys(a)}return Opal.constants(e,t)},$Module_constants$23.$$arity=-1),Opal.defs(self,"$nesting",$Module_nesting$24=function(){var t=this;return t.$$nesting||[]},$Module_nesting$24.$$arity=0),Opal.def(self,"$const_defined?",$Module_const_defined$ques$25=function(t,e){var n=this;null==e&&(e=!0),t=$$($nesting,"Opal")["$const_name!"](t),$truthy(t["$=~"]($$$($$($nesting,"Opal"),"CONST_NAME_REGEXP")))||n.$raise($$($nesting,"NameError").$new("wrong constant name "+t,t));var r,i,o,a=[n];for(e&&(a=a.concat(Opal.ancestors(n)),n.$$is_module&&(a=a.concat([Opal.Object]).concat(Opal.ancestors(Opal.Object)))),i=0,o=a.length;i<o;i++)if(r=a[i],null!=r.$$const[t])return!0;return!1},$Module_const_defined$ques$25.$$arity=-2),Opal.def(self,"$const_get",$Module_const_get$26=function(t,e){var n,r=this;return null==e&&(e=!0),t=$$($nesting,"Opal")["$const_name!"](t),0===t.indexOf("::")&&"::"!==t&&(t=t.slice(2)),$truthy(-1!=t.indexOf("::")&&"::"!=t)?$send(t.$split("::"),"inject",[r],(n=function(t,e){n.$$s;return null==t&&(t=nil),null==e&&(e=nil),t.$const_get(e)},n.$$s=r,n.$$arity=2,n)):($truthy(t["$=~"]($$$($$($nesting,"Opal"),"CONST_NAME_REGEXP")))||r.$raise($$($nesting,"NameError").$new("wrong constant name "+t,t)),e?$$([r],t):Opal.const_get_local(r,t))},$Module_const_get$26.$$arity=-2),Opal.def(self,"$const_missing",$Module_const_missing$28=function(t){var e=this,n=nil;if(e.$$autoload){var r=e.$$autoload[t];if(r)return e.$require(r),e.$const_get(t)}return n=function(){return e["$=="]($$($nesting,"Object"))?t:e+"::"+t}(),e.$raise($$($nesting,"NameError").$new("uninitialized constant "+n,t))},$Module_const_missing$28.$$arity=1),Opal.def(self,"$const_set",$Module_const_set$29=function(t,e){var n,r=this;return t=$$($nesting,"Opal")["$const_name!"](t),$truthy($truthy(n=t["$!~"]($$$($$($nesting,"Opal"),"CONST_NAME_REGEXP")))?n:t["$start_with?"]("::"))&&r.$raise($$($nesting,"NameError").$new("wrong constant name "+t,t)),Opal.const_set(r,t,e),e},$Module_const_set$29.$$arity=2),Opal.def(self,"$public_constant",$Module_public_constant$30=function(t){return nil},$Module_public_constant$30.$$arity=1),Opal.def(self,"$define_method",$Module_define_method$31=function(t,e){var n,r,i=$Module_define_method$31.$$p,o=i||nil,a=this,s=nil;i&&($Module_define_method$31.$$p=null),i&&($Module_define_method$31.$$p=null),$truthy(void 0===e&&o===nil)&&a.$raise($$($nesting,"ArgumentError"),"tried to create a Proc object without a block"),o=$truthy(n=o)?n:function(){return s=e,$$($nesting,"Proc")["$==="](s)?e:$$($nesting,"Method")["$==="](s)?e.$to_proc().$$unbound:$$($nesting,"UnboundMethod")["$==="](s)?$lambda((r=function(t){var n,i,o=r.$$s||this,a=nil;return n=Opal.slice.call(arguments,0,arguments.length),i=n,a=e.$bind(o),$send(a,"call",Opal.to_a(i))},r.$$s=a,r.$$arity=-1,r)):a.$raise($$($nesting,"TypeError"),"wrong argument type "+o.$class()+" (expected Proc/Method)")}();var l="$"+t;return o.$$jsid=t,o.$$s=null,o.$$def=o,o.$$define_meth=!0,Opal.defn(a,l,o),t},$Module_define_method$31.$$arity=-2),Opal.def(self,"$remove_method",$Module_remove_method$33=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=0,o=n.length;i<o;i++)Opal.rdef(r,"$"+n[i]);return r},$Module_remove_method$33.$$arity=-1),Opal.def(self,"$singleton_class?",$Module_singleton_class$ques$34=function(){var t=this;return!!t.$$is_singleton},$Module_singleton_class$ques$34.$$arity=0),Opal.def(self,"$include",$Module_include$35=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o.$$is_module||r.$raise($$($nesting,"TypeError"),"wrong argument type "+o.$class()+" (expected Module)"),o.$append_features(r),o.$included(r)}return r},$Module_include$35.$$arity=-1),Opal.def(self,"$included_modules",$Module_included_modules$36=function(){var t=this;return Opal.included_modules(t)},$Module_included_modules$36.$$arity=0),Opal.def(self,"$include?",$Module_include$ques$37=function(t){var e=this;t.$$is_module||e.$raise($$($nesting,"TypeError"),"wrong argument type "+t.$class()+" (expected Module)");var n,r,i,o=Opal.ancestors(e);for(n=0,r=o.length;n<r;n++)if(i=o[n],i===t&&i!==e)return!0;return!1},$Module_include$ques$37.$$arity=1),Opal.def(self,"$instance_method",$Module_instance_method$38=function(t){var e=this,n=e.$$prototype["$"+t];return n&&!n.$$stub||e.$raise($$($nesting,"NameError").$new("undefined method `"+t+"' for class `"+e.$name()+"'",t)),$$($nesting,"UnboundMethod").$new(e,n.$$owner||e,n,t)},$Module_instance_method$38.$$arity=1),Opal.def(self,"$instance_methods",$Module_instance_methods$39=function(t){var e=this;return null==t&&(t=!0),$truthy(t)?Opal.instance_methods(e):Opal.own_instance_methods(e)},$Module_instance_methods$39.$$arity=-1),Opal.def(self,"$included",$Module_included$40=function(t){return nil},$Module_included$40.$$arity=1),Opal.def(self,"$extended",$Module_extended$41=function(t){return nil},$Module_extended$41.$$arity=1),Opal.def(self,"$extend_object",$Module_extend_object$42=function(t){return nil},$Module_extend_object$42.$$arity=1),Opal.def(self,"$method_added",$Module_method_added$43=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$Module_method_added$43.$$arity=-1),Opal.def(self,"$method_removed",$Module_method_removed$44=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$Module_method_removed$44.$$arity=-1),Opal.def(self,"$method_undefined",$Module_method_undefined$45=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$Module_method_undefined$45.$$arity=-1),Opal.def(self,"$module_eval",$Module_module_eval$46=function $$module_eval($a){var $iter=$Module_module_eval$46.$$p,block=$iter||nil,$post_args,args,$b,$$47,self=this,string=nil,file=nil,_lineno=nil,default_eval_options=nil,compiling_options=nil,compiled=nil;$iter&&($Module_module_eval$46.$$p=null),$iter&&($Module_module_eval$46.$$p=null),$post_args=Opal.slice.call(arguments,0,arguments.length),args=$post_args,$truthy($truthy($b=block["$nil?"]())?!!Opal.compile:$b)?($truthy($range(1,3,!1)["$cover?"](args.$size()))||$$($nesting,"Kernel").$raise($$($nesting,"ArgumentError"),"wrong number of arguments (0 for 1..3)"),$b=[].concat(Opal.to_a(args)),string=null==$b[0]?nil:$b[0],file=null==$b[1]?nil:$b[1],_lineno=null==$b[2]?nil:$b[2],default_eval_options=$hash2(["file","eval"],{file:$truthy($b=file)?$b:"(eval)",eval:!0}),compiling_options=Opal.hash({arity_check:!1}).$merge(default_eval_options),compiled=$$($nesting,"Opal").$compile(string,compiling_options),block=$send($$($nesting,"Kernel"),"proc",[],($$47=function(){var self=$$47.$$s||this;return function(self){return eval(compiled)}(self)},$$47.$$s=self,$$47.$$arity=0,$$47))):$truthy(args["$any?"]())&&$$($nesting,"Kernel").$raise($$($nesting,"ArgumentError"),"wrong number of arguments ("+args.$size()+" for 0)\n\n NOTE:If you want to enable passing a String argument please add \"require 'opal-parser'\" to your script\n");var old=block.$$s,result;return block.$$s=null,result=block.apply(self,[self]),block.$$s=old,result},$Module_module_eval$46.$$arity=-1),Opal.alias(self,"class_eval","module_eval"),Opal.def(self,"$module_exec",$Module_module_exec$48=function(t){var e,n,r=$Module_module_exec$48.$$p,i=r||nil,o=this;r&&($Module_module_exec$48.$$p=null),r&&($Module_module_exec$48.$$p=null),e=Opal.slice.call(arguments,0,arguments.length),n=e,i===nil&&o.$raise($$($nesting,"LocalJumpError"),"no block given");var a,s=i.$$s;return i.$$s=null,a=i.apply(o,n),i.$$s=s,a},$Module_module_exec$48.$$arity=-1),Opal.alias(self,"class_exec","module_exec"),Opal.def(self,"$method_defined?",$Module_method_defined$ques$49=function(t){var e=this,n=e.$$prototype["$"+t];return!!n&&!n.$$stub},$Module_method_defined$ques$49.$$arity=1),Opal.def(self,"$module_function",$Module_module_function$50=function(t){var e,n,r=this;if(e=Opal.slice.call(arguments,0,arguments.length),n=e,0===n.length)r.$$module_function=!0;else for(var i=0,o=n.length;i<o;i++){var a=n[i],s="$"+a,l=r.$$prototype[s];Opal.defs(r,s,l)}return r},$Module_module_function$50.$$arity=-1),Opal.def(self,"$name",$Module_name$51=function(){var t=this;if(t.$$full_name)return t.$$full_name;var e=[],n=t;while(n){if(n.$$name===nil||null==n.$$name)return nil;if(e.unshift(n.$$name),n=n.$$base_module,n===Opal.Object)break}return 0===e.length?nil:t.$$full_name=e.join("::")},$Module_name$51.$$arity=0),Opal.def(self,"$prepend",$Module_prepend$52=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e,0===n.length&&r.$raise($$($nesting,"ArgumentError"),"wrong number of arguments (given 0, expected 1+)");for(var i=n.length-1;i>=0;i--){var o=n[i];o.$$is_module||r.$raise($$($nesting,"TypeError"),"wrong argument type "+o.$class()+" (expected Module)"),o.$prepend_features(r),o.$prepended(r)}return r},$Module_prepend$52.$$arity=-1),Opal.def(self,"$prepend_features",$Module_prepend_features$53=function(t){var e=this;return e.$$is_module||e.$raise($$($nesting,"TypeError"),"wrong argument type "+e.$class()+" (expected Module)"),Opal.prepend_features(e,t),e},$Module_prepend_features$53.$$arity=1),Opal.def(self,"$prepended",$Module_prepended$54=function(t){return nil},$Module_prepended$54.$$arity=1),Opal.def(self,"$remove_const",$Module_remove_const$55=function(t){var e=this;return Opal.const_remove(e,t)},$Module_remove_const$55.$$arity=1),Opal.def(self,"$to_s",$Module_to_s$56=function(){var t,e=this;return $truthy(t=Opal.Module.$name.call(e))?t:"#<"+(e.$$is_module?"Module":"Class")+":0x"+e.$__id__().$to_s(16)+">"},$Module_to_s$56.$$arity=0),Opal.def(self,"$undef_method",$Module_undef_method$57=function(t){var e,n,r=this;e=Opal.slice.call(arguments,0,arguments.length),n=e;for(var i=0,o=n.length;i<o;i++)Opal.udef(r,"$"+n[i]);return r},$Module_undef_method$57.$$arity=-1),Opal.def(self,"$instance_variables",$Module_instance_variables$58=function(){var t=this,e=nil;Opal.Module.$$nesting=$nesting,e=t.$constants();var n=[];for(var r in t)t.hasOwnProperty(r)&&"$"!==r.charAt(0)&&"constructor"!==r&&!e["$include?"](r)&&n.push("@"+r);return n},$Module_instance_variables$58.$$arity=0),Opal.def(self,"$dup",$Module_dup$59=function(){var t=$Module_dup$59.$$p,e=this,n=nil,r=nil,i=nil,o=nil;for(t&&($Module_dup$59.$$p=null),i=0,o=arguments.length,r=new Array(o);i<o;i++)r[i]=arguments[i];return n=$send(e,Opal.find_super_dispatcher(e,"dup",$Module_dup$59,!1),r,t),n.$copy_class_variables(e),n.$copy_constants(e),n},$Module_dup$59.$$arity=0),Opal.def(self,"$copy_class_variables",$Module_copy_class_variables$60=function(t){var e=this;for(var n in t.$$cvars)e.$$cvars[n]=t.$$cvars[n]},$Module_copy_class_variables$60.$$arity=1),Opal.def(self,"$copy_constants",$Module_copy_constants$61=function(t){var e,n=this,r=t.$$const;for(e in r)Opal.const_set(n,e,r[e])},$Module_copy_constants$61.$$arity=1),nil&&"copy_constants"}($nesting[0],null,$nesting)},Opal.modules["corelib/class"]=function(t){var e=t.top,n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.klass),a=t.send;return t.add_stubs(["$require","$class_eval","$to_proc","$initialize_copy","$allocate","$name","$to_s"]),e.$require("corelib/module"),function(e,n,s){var l,c,u,d,f,h,p,$=o(e,n,"Class"),m=[$].concat(s);return t.defs($,"$new",l=function(e){var n=l.$$p,o=n||r;if(n&&(l.$$p=null),n&&(l.$$p=null),null==e&&(e=i(m,"Object")),!e.$$is_class)throw t.TypeError.$new("superclass must be a Class");var s=t.allocate_class(r,e);return e.$inherited(s),function(){o!==r&&a(s,"class_eval",[],o.$to_proc())}(),s},l.$$arity=-1),t.def($,"$allocate",c=function(){var e=this,n=new e.$$constructor;return n.$$id=t.uid(),n},c.$$arity=0),t.def($,"$inherited",u=function(t){return r},u.$$arity=1),t.def($,"$initialize_dup",d=function(t){var e=this;e.$initialize_copy(t),e.$$name=null,e.$$full_name=null},d.$$arity=1),t.def($,"$new",f=function(e){var n,i,o=f.$$p,a=o||r,s=this;o&&(f.$$p=null),o&&(f.$$p=null),n=t.slice.call(arguments,0,arguments.length),i=n;var l=s.$allocate();return t.send(l,l.$initialize,i,a),l},f.$$arity=-1),t.def($,"$superclass",h=function(){var t=this;return t.$$super||r},h.$$arity=0),t.def($,"$to_s",p=function(){var e=p.$$p,n=this;e&&(p.$$p=null);var r=n.$$singleton_of;return r&&r.$$is_a_module?"#<Class:"+r.$name()+">":r?"#<Class:#<"+r.$$class.$name()+":0x"+t.id(r).$to_s(16)+">>":a(n,t.find_super_dispatcher(n,"to_s",p,!1),[],null)},p.$$arity=0),r&&"to_s"}(n[0],null,n)},Opal.modules["corelib/basic_object"]=function(Opal){var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.const_get_qualified,$$=Opal.const_get_relative,$breaker=Opal.breaker,$slice=Opal.slice,$klass=Opal.klass,$truthy=Opal.truthy,$range=Opal.range,$hash2=Opal.hash2,$send=Opal.send;return Opal.add_stubs(["$==","$!","$nil?","$cover?","$size","$raise","$merge","$compile","$proc","$any?","$inspect","$new"]),function($base,$super,$parent_nesting){var self=$klass($base,$super,"BasicObject"),$nesting=[self].concat($parent_nesting),$BasicObject_initialize$1,$BasicObject_$eq_eq$2,$BasicObject_eql$ques$3,$BasicObject___id__$4,$BasicObject___send__$5,$BasicObject_$excl$6,$BasicObject_$not_eq$7,$BasicObject_instance_eval$8,$BasicObject_instance_exec$10,$BasicObject_singleton_method_added$11,$BasicObject_singleton_method_removed$12,$BasicObject_singleton_method_undefined$13,$BasicObject_class$14,$BasicObject_method_missing$15;return Opal.def(self,"$initialize",$BasicObject_initialize$1=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_initialize$1.$$arity=-1),Opal.def(self,"$==",$BasicObject_$eq_eq$2=function(t){var e=this;return e===t},$BasicObject_$eq_eq$2.$$arity=1),Opal.def(self,"$eql?",$BasicObject_eql$ques$3=function(t){var e=this;return e["$=="](t)},$BasicObject_eql$ques$3.$$arity=1),Opal.alias(self,"equal?","=="),Opal.def(self,"$__id__",$BasicObject___id__$4=function(){var t=this;return null!=t.$$id||Opal.defineProperty(t,"$$id",Opal.uid()),t.$$id},$BasicObject___id__$4.$$arity=0),Opal.def(self,"$__send__",$BasicObject___send__$5=function(t,e){var n,r,i=$BasicObject___send__$5.$$p,o=i||nil,a=this;i&&($BasicObject___send__$5.$$p=null),i&&($BasicObject___send__$5.$$p=null),n=Opal.slice.call(arguments,1,arguments.length),r=n;var s=a["$"+t];return s?(o!==nil&&(s.$$p=o),s.apply(a,r)):(o!==nil&&(a.$method_missing.$$p=o),a.$method_missing.apply(a,[t].concat(r)))},$BasicObject___send__$5.$$arity=-2),Opal.def(self,"$!",$BasicObject_$excl$6=function(){return!1},$BasicObject_$excl$6.$$arity=0),Opal.def(self,"$!=",$BasicObject_$not_eq$7=function(t){var e=this;return e["$=="](t)["$!"]()},$BasicObject_$not_eq$7.$$arity=1),Opal.def(self,"$instance_eval",$BasicObject_instance_eval$8=function $$instance_eval($a){var $iter=$BasicObject_instance_eval$8.$$p,block=$iter||nil,$post_args,args,$b,$$9,self=this,string=nil,file=nil,_lineno=nil,default_eval_options=nil,compiling_options=nil,compiled=nil;$iter&&($BasicObject_instance_eval$8.$$p=null),$iter&&($BasicObject_instance_eval$8.$$p=null),$post_args=Opal.slice.call(arguments,0,arguments.length),args=$post_args,$truthy($truthy($b=block["$nil?"]())?!!Opal.compile:$b)?($truthy($range(1,3,!1)["$cover?"](args.$size()))||$$$("::","Kernel").$raise($$$("::","ArgumentError"),"wrong number of arguments (0 for 1..3)"),$b=[].concat(Opal.to_a(args)),string=null==$b[0]?nil:$b[0],file=null==$b[1]?nil:$b[1],_lineno=null==$b[2]?nil:$b[2],default_eval_options=$hash2(["file","eval"],{file:$truthy($b=file)?$b:"(eval)",eval:!0}),compiling_options=Opal.hash({arity_check:!1}).$merge(default_eval_options),compiled=$$$("::","Opal").$compile(string,compiling_options),block=$send($$$("::","Kernel"),"proc",[],($$9=function(){var self=$$9.$$s||this;return function(self){return eval(compiled)}(self)},$$9.$$s=self,$$9.$$arity=0,$$9))):$truthy(args["$any?"]())&&$$$("::","Kernel").$raise($$$("::","ArgumentError"),"wrong number of arguments ("+args.$size()+" for 0)");var old=block.$$s,result;if(block.$$s=null,self.$$is_a_module){self.$$eval=!0;try{result=block.call(self,self)}finally{self.$$eval=!1}}else result=block.call(self,self);return block.$$s=old,result},$BasicObject_instance_eval$8.$$arity=-1),Opal.def(self,"$instance_exec",$BasicObject_instance_exec$10=function(t){var e,n,r=$BasicObject_instance_exec$10.$$p,i=r||nil,o=this;r&&($BasicObject_instance_exec$10.$$p=null),r&&($BasicObject_instance_exec$10.$$p=null),e=Opal.slice.call(arguments,0,arguments.length),n=e,$truthy(i)||$$$("::","Kernel").$raise($$$("::","ArgumentError"),"no block given");var a,s=i.$$s;if(i.$$s=null,o.$$is_a_module){o.$$eval=!0;try{a=i.apply(o,n)}finally{o.$$eval=!1}}else a=i.apply(o,n);return i.$$s=s,a},$BasicObject_instance_exec$10.$$arity=-1),Opal.def(self,"$singleton_method_added",$BasicObject_singleton_method_added$11=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_singleton_method_added$11.$$arity=-1),Opal.def(self,"$singleton_method_removed",$BasicObject_singleton_method_removed$12=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_singleton_method_removed$12.$$arity=-1),Opal.def(self,"$singleton_method_undefined",$BasicObject_singleton_method_undefined$13=function(t){return Opal.slice.call(arguments,0,arguments.length),nil},$BasicObject_singleton_method_undefined$13.$$arity=-1),Opal.def(self,"$class",$BasicObject_class$14=function(){var t=this;return t.$$class},$BasicObject_class$14.$$arity=0),Opal.def(self,"$method_missing",$BasicObject_method_missing$15=function(t,e){var n,r=$BasicObject_method_missing$15.$$p,i=this,o=nil;return r&&($BasicObject_method_missing$15.$$p=null),r&&($BasicObject_method_missing$15.$$p=null),n=Opal.slice.call(arguments,1,arguments.length),n,o=function(){return $truthy(i.$inspect&&!i.$inspect.$$stub)?"undefined method `"+t+"' for "+i.$inspect()+":"+i.$$class:"undefined method `"+t+"' for "+i.$$class}(),$$$("::","Kernel").$raise($$$("::","NoMethodError").$new(o,t))},$BasicObject_method_missing$15.$$arity=-2),nil&&"method_missing"}($nesting[0],null,$nesting)},Opal.modules["corelib/kernel"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.module),s=t.truthy,l=t.gvars,c=t.hash2,u=t.send,d=t.klass;return t.add_stubs(["$raise","$new","$inspect","$!","$=~","$==","$object_id","$class","$coerce_to?","$<<","$allocate","$copy_instance_variables","$copy_singleton_methods","$initialize_clone","$initialize_copy","$define_method","$singleton_class","$to_proc","$initialize_dup","$for","$empty?","$pop","$call","$coerce_to","$append_features","$extend_object","$extended","$__id__","$to_s","$instance_variable_name!","$respond_to?","$to_int","$coerce_to!","$Integer","$nil?","$===","$enum_for","$result","$any?","$print","$format","$puts","$each","$<=","$length","$[]","$exception","$is_a?","$rand","$respond_to_missing?","$try_convert!","$expand_path","$join","$start_with?","$new_seed","$srand","$sym","$arg","$open","$include"]),function(n,d){var f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt=a(n,"Kernel"),kt=[xt].concat(d);t.def(xt,"$method_missing",f=function(e,n){var r,i,a=f.$$p,s=this;return a&&(f.$$p=null),a&&(f.$$p=null),r=t.slice.call(arguments,1,arguments.length),i=r,s.$raise(o(kt,"NoMethodError").$new("undefined method `"+e+"' for "+s.$inspect(),e,i))},f.$$arity=-2),t.def(xt,"$=~",h=function(t){return!1},h.$$arity=1),t.def(xt,"$!~",p=function(t){var e=this;return e["$=~"](t)["$!"]()},p.$$arity=1),t.def(xt,"$===",$=function(t){var e,n=this;return s(e=n.$object_id()["$=="](t.$object_id()))?e:n["$=="](t)},$.$$arity=1),t.def(xt,"$<=>",m=function(t){var e=this;e.$$comparable=!0;var n=e["$=="](t);return n&&n!==r?0:r},m.$$arity=1),t.def(xt,"$method",g=function(t){var e=this,n=e["$"+t];return n&&!n.$$stub||e.$raise(o(kt,"NameError").$new("undefined method `"+t+"' for class `"+e.$class()+"'",t)),o(kt,"Method").$new(e,n.$$owner||e.$class(),n,t)},g.$$arity=1),t.def(xt,"$methods",v=function(e){var n=this;return null==e&&(e=!0),s(e)?t.methods(n):t.own_methods(n)},v.$$arity=-1),t.def(xt,"$public_methods",y=function(e){var n=this;return null==e&&(e=!0),s(e)?t.methods(n):t.receiver_methods(n)},y.$$arity=-1),t.def(xt,"$Array",_=function(t){var e;return t===r?[]:t.$$is_array?t:(e=o(kt,"Opal")["$coerce_to?"](t,o(kt,"Array"),"to_ary"),e!==r?e:(e=o(kt,"Opal")["$coerce_to?"](t,o(kt,"Array"),"to_a"),e!==r?e:[t]))},_.$$arity=1),t.def(xt,"$at_exit",b=function(){var t,e=b.$$p,n=e||r;return null==l.__at_exit__&&(l.__at_exit__=r),e&&(b.$$p=null),e&&(b.$$p=null),l.__at_exit__=s(t=l.__at_exit__)?t:[],l.__at_exit__["$<<"](n)},b.$$arity=0),t.def(xt,"$caller",w=function(e){var n;return n=t.slice.call(arguments,0,arguments.length),n,[]},w.$$arity=-1),t.def(xt,"$class",x=function(){var t=this;return t.$$class},x.$$arity=0),t.def(xt,"$copy_instance_variables",k=function(t){var e,n,r,i=this,o=Object.keys(t);for(e=0,n=o.length;e<n;e++)r=o[e],"$"!==r.charAt(0)&&t.hasOwnProperty(r)&&(i[r]=t[r])},k.$$arity=1),t.def(xt,"$copy_singleton_methods",S=function(e){var n,r,i,o,a=this;if(e.hasOwnProperty("$$meta")){var s=t.get_singleton_class(e),l=t.get_singleton_class(a);for(i=Object.getOwnPropertyNames(s.$$prototype),n=0,o=i.length;n<o;n++)r=i[n],t.is_method(r)&&(l.$$prototype[r]=s.$$prototype[r]);l.$$const=Object.assign({},s.$$const),Object.setPrototypeOf(l.$$prototype,Object.getPrototypeOf(s.$$prototype))}for(n=0,i=Object.getOwnPropertyNames(e),o=i.length;n<o;n++)r=i[n],"$"===r.charAt(0)&&"$"!==r.charAt(1)&&e.hasOwnProperty(r)&&(a[r]=e[r])},S.$$arity=1),t.def(xt,"$clone",O=function(e){var n,i=this,o=r;if(null==e)e=c([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),o=i.$class().$allocate(),o.$copy_instance_variables(i),o.$copy_singleton_methods(i),o.$initialize_clone(i),o},O.$$arity=-1),t.def(xt,"$initialize_clone",C=function(t){var e=this;return e.$initialize_copy(t)},C.$$arity=1),t.def(xt,"$define_singleton_method",A=function(t,e){var n=A.$$p,i=n||r,o=this;return n&&(A.$$p=null),n&&(A.$$p=null),u(o.$singleton_class(),"define_method",[t,e],i.$to_proc())},A.$$arity=-2),t.def(xt,"$dup",E=function(){var t=this,e=r;return e=t.$class().$allocate(),e.$copy_instance_variables(t),e.$initialize_dup(t),e},E.$$arity=0),t.def(xt,"$initialize_dup",T=function(t){var e=this;return e.$initialize_copy(t)},T.$$arity=1),t.def(xt,"$enum_for",P=function(e,n){var i,a,s,l=P.$$p,c=l||r,d=this;return l&&(P.$$p=null),l&&(P.$$p=null),i=t.slice.call(arguments,0,arguments.length),i.length>0&&(a=i[0],i.splice(0,1)),null==a&&(a="each"),s=i,u(o(kt,"Enumerator"),"for",[d,a].concat(t.to_a(s)),c.$to_proc())},P.$$arity=-1),t.alias(xt,"to_enum","enum_for"),t.def(xt,"$equal?",B=function(t){var e=this;return e===t},B.$$arity=1),t.def(xt,"$exit",L=function(e){var n,i=r;null==l.__at_exit__&&(l.__at_exit__=r),null==e&&(e=!0),l.__at_exit__=s(n=l.__at_exit__)?n:[];while(!s(l.__at_exit__["$empty?"]()))i=l.__at_exit__.$pop(),i.$call();return e=e.$$is_boolean?e?0:1:o(kt,"Opal").$coerce_to(e,o(kt,"Integer"),"to_int"),t.exit(e),r},L.$$arity=-1),t.def(xt,"$extend",I=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var a=i.$singleton_class(),s=r.length-1;s>=0;s--){var l=r[s];l.$$is_module||i.$raise(o(kt,"TypeError"),"wrong argument type "+l.$class()+" (expected Module)"),l.$append_features(a),l.$extend_object(i),l.$extended(i)}return i},I.$$arity=-1),t.def(xt,"$hash",D=function(){var t=this;return t.$__id__()},D.$$arity=0),t.def(xt,"$initialize_copy",R=function(t){return r},R.$$arity=1),t.def(xt,"$inspect",j=function(){var t=this;return t.$to_s()},j.$$arity=0),t.def(xt,"$instance_of?",M=function(t){var e=this;return t.$$is_class||t.$$is_module||e.$raise(o(kt,"TypeError"),"class or module required"),e.$$class===t},M.$$arity=1),t.def(xt,"$instance_variable_defined?",F=function(e){var n=this;return e=o(kt,"Opal")["$instance_variable_name!"](e),t.hasOwnProperty.call(n,e.substr(1))},F.$$arity=1),t.def(xt,"$instance_variable_get",N=function(e){var n=this;e=o(kt,"Opal")["$instance_variable_name!"](e);var i=n[t.ivar(e.substr(1))];return null==i?r:i},N.$$arity=1),t.def(xt,"$instance_variable_set",z=function(e,n){var r=this;return e=o(kt,"Opal")["$instance_variable_name!"](e),r[t.ivar(e.substr(1))]=n},z.$$arity=2),t.def(xt,"$remove_instance_variable",H=function(e){var n=this;e=o(kt,"Opal")["$instance_variable_name!"](e);var r,i=t.ivar(e.substr(1));return n.hasOwnProperty(i)?(r=n[i],delete n[i],r):n.$raise(o(kt,"NameError"),"instance variable "+e+" not defined")},H.$$arity=1),t.def(xt,"$instance_variables",V=function(){var t,e=this,n=[];for(var r in e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&(t="$"===r.substr(-1)?r.slice(0,r.length-1):r,n.push("@"+t));return n},V.$$arity=0),t.def(xt,"$Integer",U=function(t,e){var n,i,a,s=this;return t.$$is_string?"0"===t?0:(void 0===e?e=0:(e=o(kt,"Opal").$coerce_to(e,o(kt,"Integer"),"to_int"),(1===e||e<0||e>36)&&s.$raise(o(kt,"ArgumentError"),"invalid radix "+e)),i=t.toLowerCase(),i=i.replace(/(\d)_(?=\d)/g,"$1"),i=i.replace(/^(\s*[+-]?)(0[bodx]?)/,(function(n,r,i){switch(i){case"0b":if(0===e||2===e)return e=2,r;case"0":case"0o":if(0===e||8===e)return e=8,r;case"0d":if(0===e||10===e)return e=10,r;case"0x":if(0===e||16===e)return e=16,r}s.$raise(o(kt,"ArgumentError"),'invalid value for Integer(): "'+t+'"')})),e=0===e?10:e,a="0-"+(e<=10?e-1:"9a-"+String.fromCharCode(e-11+97)),new RegExp("^\\s*[+-]?["+a+"]+\\s*$").test(i)||s.$raise(o(kt,"ArgumentError"),'invalid value for Integer(): "'+t+'"'),n=parseInt(i,e),isNaN(n)&&s.$raise(o(kt,"ArgumentError"),'invalid value for Integer(): "'+t+'"'),n):(void 0!==e&&s.$raise(o(kt,"ArgumentError"),"base specified for non string value"),t===r&&s.$raise(o(kt,"TypeError"),"can't convert nil into Integer"),t.$$is_number?((t===1/0||t===-1/0||isNaN(t))&&s.$raise(o(kt,"FloatDomainError"),t),Math.floor(t)):t["$respond_to?"]("to_int")&&(n=t.$to_int(),n!==r)?n:o(kt,"Opal")["$coerce_to!"](t,o(kt,"Integer"),"to_i"))},U.$$arity=-2),t.def(xt,"$Float",q=function(t){var e,n=this;return t===r&&n.$raise(o(kt,"TypeError"),"can't convert nil into Float"),t.$$is_string?(e=t.toString(),e=e.replace(/(\d)_(?=\d)/g,"$1"),/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(e)?n.$Integer(e):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(e)||n.$raise(o(kt,"ArgumentError"),'invalid value for Float(): "'+t+'"'),parseFloat(e))):o(kt,"Opal")["$coerce_to!"](t,o(kt,"Float"),"to_f")},q.$$arity=1),t.def(xt,"$Hash",W=function(t){var e;return s(s(e=t["$nil?"]())?e:t["$=="]([]))?c([],{}):s(o(kt,"Hash")["$==="](t))?t:o(kt,"Opal")["$coerce_to!"](t,o(kt,"Hash"),"to_hash")},W.$$arity=1),t.def(xt,"$is_a?",G=function(e){var n=this;return e.$$is_class||e.$$is_module||n.$raise(o(kt,"TypeError"),"class or module required"),t.is_a(n,e)},G.$$arity=1),t.def(xt,"$itself",Y=function(){var t=this;return t},Y.$$arity=0),t.alias(xt,"kind_of?","is_a?"),t.def(xt,"$lambda",K=function(){var e=K.$$p,n=e||r;return e&&(K.$$p=null),e&&(K.$$p=null),t.lambda(n)},K.$$arity=0),t.def(xt,"$load",X=function(e){return e=o(kt,"Opal")["$coerce_to!"](e,o(kt,"String"),"to_str"),t.load(e)},X.$$arity=1),t.def(xt,"$loop",Z=function(){var e,n=Z.$$p,a=n||r,l=this,c=r;if(n&&(Z.$$p=null),a===r)return u(l,"enum_for",["loop"],(e=function(){e.$$s;return i(o(kt,"Float"),"INFINITY")},e.$$s=l,e.$$arity=0,e));while(s(!0))try{t.yieldX(a,[])}catch(d){if(!t.rescue(d,[o(kt,"StopIteration")]))throw d;c=d;try{return c.$result()}finally{t.pop_exception()}}return l},Z.$$arity=0),t.def(xt,"$nil?",J=function(){return!1},J.$$arity=0),t.alias(xt,"object_id","__id__"),t.def(xt,"$printf",Q=function(e){var n,i,o=this;return n=t.slice.call(arguments,0,arguments.length),i=n,s(i["$any?"]())&&o.$print(u(o,"format",t.to_a(i))),r},Q.$$arity=-1),t.def(xt,"$proc",tt=function(){var t=tt.$$p,e=t||r,n=this;return t&&(tt.$$p=null),t&&(tt.$$p=null),s(e)||n.$raise(o(kt,"ArgumentError"),"tried to create Proc object without a block"),e.$$is_lambda=!1,e},tt.$$arity=0),t.def(xt,"$puts",et=function(e){var n,i;return null==l.stdout&&(l.stdout=r),n=t.slice.call(arguments,0,arguments.length),i=n,u(l.stdout,"puts",t.to_a(i))},et.$$arity=-1),t.def(xt,"$p",nt=function(n){var i,o,a,c=this;return i=t.slice.call(arguments,0,arguments.length),o=i,u(o,"each",[],(a=function(t){a.$$s;return null==l.stdout&&(l.stdout=r),null==t&&(t=r),l.stdout.$puts(t.$inspect())},a.$$s=c,a.$$arity=1,a)),s(e(o.$length(),1))?o["$[]"](0):o},nt.$$arity=-1),t.def(xt,"$print",rt=function(e){var n,i;return null==l.stdout&&(l.stdout=r),n=t.slice.call(arguments,0,arguments.length),i=n,u(l.stdout,"print",t.to_a(i))},rt.$$arity=-1),t.def(xt,"$warn",it=function(e){var n,i,o;return null==l.VERBOSE&&(l.VERBOSE=r),null==l.stderr&&(l.stderr=r),n=t.slice.call(arguments,0,arguments.length),i=n,s(s(o=l.VERBOSE["$nil?"]())?o:i["$empty?"]())?r:u(l.stderr,"puts",t.to_a(i))},it.$$arity=-1),t.def(xt,"$raise",ot=function(e,n,i){if(null==l["!"]&&(l["!"]=r),null==n&&(n=r),null==i&&(i=r),null==e&&l["!"]!==r)throw l["!"];throw null==e?e=o(kt,"RuntimeError").$new():e.$$is_string?e=o(kt,"RuntimeError").$new(e):e.$$is_class&&e["$respond_to?"]("exception")?e=e.$exception(n):e["$is_a?"](o(kt,"Exception"))||(e=o(kt,"TypeError").$new("exception class/object expected")),l["!"]!==r&&t.exceptions.push(l["!"]),l["!"]=e,e},ot.$$arity=-1),t.alias(xt,"fail","raise"),t.def(xt,"$rand",at=function(t){return void 0===t?i(o(kt,"Random"),"DEFAULT").$rand():(t.$$is_number&&(t<0&&(t=Math.abs(t)),t%1!==0&&(t=t.$to_i()),0===t&&(t=void 0)),i(o(kt,"Random"),"DEFAULT").$rand(t))},at.$$arity=-1),t.def(xt,"$respond_to?",st=function(t,e){var n=this;if(null==e&&(e=!1),s(n["$respond_to_missing?"](t,e)))return!0;var r=n["$"+t];return"function"===typeof r&&!r.$$stub},st.$$arity=-2),t.def(xt,"$respond_to_missing?",lt=function(t,e){return null==e&&(e=!1),!1},lt.$$arity=-2),t.def(xt,"$require",ct=function(e){return e=o(kt,"Opal")["$coerce_to!"](e,o(kt,"String"),"to_str"),t.require(e)},ct.$$arity=1),t.def(xt,"$require_relative",ut=function(e){return o(kt,"Opal")["$try_convert!"](e,o(kt,"String"),"to_str"),e=o(kt,"File").$expand_path(o(kt,"File").$join(t.current_file,"..",e)),t.require(e)},ut.$$arity=1),t.def(xt,"$require_tree",dt=function(e){var n=[];for(var r in e=o(kt,"File").$expand_path(e),e=t.normalize(e),"."===e&&(e=""),t.modules)r["$start_with?"](e)&&n.push([r,t.require(r)]);return n},dt.$$arity=1),t.alias(xt,"send","__send__"),t.alias(xt,"public_send","__send__"),t.def(xt,"$singleton_class",ft=function(){var e=this;return t.get_singleton_class(e)},ft.$$arity=0),t.def(xt,"$sleep",ht=function(e){var n=this;null==e&&(e=r),e===r&&n.$raise(o(kt,"TypeError"),"can't convert NilClass into time interval"),e.$$is_number||n.$raise(o(kt,"TypeError"),"can't convert "+e.$class()+" into time interval"),e<0&&n.$raise(o(kt,"ArgumentError"),"time interval must be positive");var i=t.global.performance?function(){return performance.now()}:function(){return new Date},a=i();while(i()-a<=1e3*e);return e},ht.$$arity=-1),t.def(xt,"$srand",pt=function(t){return null==t&&(t=o(kt,"Random").$new_seed()),o(kt,"Random").$srand(t)},pt.$$arity=-1),t.def(xt,"$String",$t=function(t){var e;return s(e=o(kt,"Opal")["$coerce_to?"](t,o(kt,"String"),"to_str"))?e:o(kt,"Opal")["$coerce_to!"](t,o(kt,"String"),"to_s")},$t.$$arity=1),t.def(xt,"$tap",mt=function(){var e=mt.$$p,n=e||r,i=this;return e&&(mt.$$p=null),e&&(mt.$$p=null),t.yield1(n,i),i},mt.$$arity=0),t.def(xt,"$to_proc",gt=function(){var t=this;return t},gt.$$arity=0),t.def(xt,"$to_s",vt=function(){var t=this;return"#<"+t.$class()+":0x"+t.$__id__().$to_s(16)+">"},vt.$$arity=0),t.def(xt,"$catch",yt=function(e){var n=yt.$$p,i=n||r,a=this,s=r;n&&(yt.$$p=null);try{return t.yieldX(i,[])}catch(l){if(!t.rescue(l,[o(kt,"UncaughtThrowError")]))throw l;s=l;try{return s.$sym()["$=="](e)?s.$arg():a.$raise()}finally{t.pop_exception()}}},yt.$$arity=1),t.def(xt,"$throw",_t=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,i.$raise(o(kt,"UncaughtThrowError"),r)},_t.$$arity=-1),t.def(xt,"$open",bt=function(e){var n,i,a=bt.$$p,s=a||r;return a&&(bt.$$p=null),a&&(bt.$$p=null),n=t.slice.call(arguments,0,arguments.length),i=n,u(o(kt,"File"),"open",t.to_a(i),s.$to_proc())},bt.$$arity=-1),t.def(xt,"$yield_self",wt=function(){var e,n=wt.$$p,i=n||r,o=this;return n&&(wt.$$p=null),i===r?u(o,"enum_for",["yield_self"],(e=function(){e.$$s;return 1},e.$$s=o,e.$$arity=0,e)):t.yield1(i,o)},wt.$$arity=0)}(n[0],n),function(t,e,n){var r=d(t,e,"Object"),i=[r].concat(n);return r.$include(o(i,"Kernel"))}(n[0],null,n)},Opal.modules["corelib/error"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}t.top;var r=[],i=t.nil,o=(t.const_get_qualified,t.const_get_relative),a=(t.breaker,t.slice,t.klass),s=t.send,l=t.truthy,c=t.module,u=t.hash2;return t.add_stubs(["$new","$clone","$to_s","$empty?","$class","$raise","$+","$attr_reader","$[]","$>","$length","$inspect"]),function(e,n,r){var c,u,d,f,h,p,$,m,g,v,y=a(e,n,"Exception"),_=[y].concat(r);y.$$prototype.message=i,t.defs(y,"$new",c=function(e){var n,r,o=this;n=t.slice.call(arguments,0,arguments.length),r=n;var a=r.length>0?r[0]:i,s=new o.$$constructor(a);return s.name=o.$$name,s.message=a,t.send(s,s.$initialize,r),t.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace(s,v),s},c.$$arity=-1),v=y.$new,t.defs(y,"$exception",u=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,s(i,"new",t.to_a(r))},u.$$arity=-1),t.def(y,"$initialize",d=function(e){var n,r,o=this;return n=t.slice.call(arguments,0,arguments.length),r=n,o.message=r.length>0?r[0]:i},d.$$arity=-1),t.def(y,"$backtrace",f=function(){var t=this;if(t.backtrace)return t.backtrace;var e=t.stack;return"string"===typeof e?e.split("\n").slice(0,15):e?e.slice(0,15):[]},f.$$arity=0),t.def(y,"$exception",h=function(t){var e=this;if(null==t&&(t=i),t===i||e===t)return e;var n=e.$clone();return n.message=t,n},h.$$arity=-1),t.def(y,"$message",p=function(){var t=this;return t.$to_s()},p.$$arity=0),t.def(y,"$inspect",$=function(){var t=this,e=i;return e=t.$to_s(),l(e["$empty?"]())?t.$class().$to_s():"#<"+t.$class().$to_s()+": "+t.$to_s()+">"},$.$$arity=0),t.def(y,"$set_backtrace",m=function(t){var e,n,r=this,a=!0;if(t===i)r.backtrace=i;else if(t.$$is_string)r.backtrace=[t];else{if(t.$$is_array){for(e=0,n=t.length;e<n;e++)if(!t[e].$$is_string){a=!1;break}}else a=!1;!1===a&&r.$raise(o(_,"TypeError"),"backtrace must be Array of String"),r.backtrace=t}return t},m.$$arity=1),t.def(y,"$to_s",g=function(){var t,e,n=this;return l(t=l(e=n.message)?n.message.$to_s():e)?t:n.$class().$to_s()},g.$$arity=0)}(r[0],Error,r),function(t,e,n){var r=a(t,e,"ScriptError");[r].concat(n)}(r[0],o(r,"Exception"),r),function(t,e,n){var r=a(t,e,"SyntaxError");[r].concat(n)}(r[0],o(r,"ScriptError"),r),function(t,e,n){var r=a(t,e,"LoadError");[r].concat(n)}(r[0],o(r,"ScriptError"),r),function(t,e,n){var r=a(t,e,"NotImplementedError");[r].concat(n)}(r[0],o(r,"ScriptError"),r),function(t,e,n){var r=a(t,e,"SystemExit");[r].concat(n)}(r[0],o(r,"Exception"),r),function(t,e,n){var r=a(t,e,"NoMemoryError");[r].concat(n)}(r[0],o(r,"Exception"),r),function(t,e,n){var r=a(t,e,"SignalException");[r].concat(n)}(r[0],o(r,"Exception"),r),function(t,e,n){var r=a(t,e,"Interrupt");[r].concat(n)}(r[0],o(r,"Exception"),r),function(t,e,n){var r=a(t,e,"SecurityError");[r].concat(n)}(r[0],o(r,"Exception"),r),function(t,e,n){var r=a(t,e,"StandardError");[r].concat(n)}(r[0],o(r,"Exception"),r),function(t,e,n){var r=a(t,e,"EncodingError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"ZeroDivisionError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"NameError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"NoMethodError");[r].concat(n)}(r[0],o(r,"NameError"),r),function(t,e,n){var r=a(t,e,"RuntimeError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"FrozenError");[r].concat(n)}(r[0],o(r,"RuntimeError"),r),function(t,e,n){var r=a(t,e,"LocalJumpError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"TypeError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"ArgumentError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"IndexError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"StopIteration");[r].concat(n)}(r[0],o(r,"IndexError"),r),function(t,e,n){var r=a(t,e,"KeyError");[r].concat(n)}(r[0],o(r,"IndexError"),r),function(t,e,n){var r=a(t,e,"RangeError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"FloatDomainError");[r].concat(n)}(r[0],o(r,"RangeError"),r),function(t,e,n){var r=a(t,e,"IOError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(t,e,n){var r=a(t,e,"SystemCallError");[r].concat(n)}(r[0],o(r,"StandardError"),r),function(n,r){var u=c(n,"Errno"),d=[u].concat(r);(function(n,r,o){var c,u=a(n,r,"EINVAL");[u].concat(o);t.defs(u,"$new",c=function(n){var r=c.$$p,o=this,a=i;return r&&(c.$$p=null),null==n&&(n=i),a="Invalid argument",l(n)&&(a=e(a," - "+n)),s(o,t.find_super_dispatcher(o,"new",c,!1,o.$$class.$$prototype),[a],null)},c.$$arity=-1)})(d[0],o(d,"SystemCallError"),d)}(r[0],r),function(e,r,o){var c,u=a(e,r,"UncaughtThrowError");[u].concat(o);u.$$prototype.sym=i,u.$attr_reader("sym","arg"),t.def(u,"$initialize",c=function(e){var r=c.$$p,i=this;return r&&(c.$$p=null),i.sym=e["$[]"](0),l(n(e.$length(),1))&&(i.arg=e["$[]"](1)),s(i,t.find_super_dispatcher(i,"initialize",c,!1),["uncaught throw "+i.sym.$inspect()],null)},c.$$arity=1)}(r[0],o(r,"ArgumentError"),r),function(e,n,r){var o,l=a(e,n,"NameError");[l].concat(r);l.$attr_reader("name"),t.def(l,"$initialize",o=function(e,n){var r=o.$$p,a=this;return r&&(o.$$p=null),null==n&&(n=i),s(a,t.find_super_dispatcher(a,"initialize",o,!1),[e],null),a.name=n},o.$$arity=-2)}(r[0],null,r),function(e,n,r){var o,l=a(e,n,"NoMethodError");[l].concat(r);l.$attr_reader("args"),t.def(l,"$initialize",o=function(e,n,r){var a=o.$$p,l=this;return a&&(o.$$p=null),null==n&&(n=i),null==r&&(r=[]),s(l,t.find_super_dispatcher(l,"initialize",o,!1),[e,n],null),l.args=r},o.$$arity=-2)}(r[0],null,r),function(t,e,n){var r=a(t,e,"StopIteration");[r].concat(n);r.$attr_reader("result")}(r[0],null,r),function(e,n,r){var c,d,f,h=a(e,n,"KeyError"),p=[h].concat(r);h.$$prototype.receiver=h.$$prototype.key=i,t.def(h,"$initialize",c=function(e,n){var r,o,a=c.$$p,l=this;if(a&&(c.$$p=null),null==n)n=u([],{});else if(!n.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return r=n.$$smap["receiver"],null==r&&(r=i),o=n.$$smap["key"],null==o&&(o=i),s(l,t.find_super_dispatcher(l,"initialize",c,!1),[e],null),l.receiver=r,l.key=o},c.$$arity=-2),t.def(h,"$receiver",d=function(){var t,e=this;return l(t=e.receiver)?t:e.$raise(o(p,"ArgumentError"),"no receiver is available")},d.$$arity=0),t.def(h,"$key",f=function(){var t,e=this;return l(t=e.key)?t:e.$raise(o(p,"ArgumentError"),"no key is available")},f.$$arity=0)}(r[0],null,r),function(t,e){var n=c(t,"JS"),r=[n].concat(e);(function(t,e,n){var r=a(t,e,"Error");[r].concat(n)})(r[0],null,r)}(r[0],r)},Opal.modules["corelib/constants"]=function(t){t.top;var e=[],n=(t.nil,t.const_get_qualified,t.const_get_relative);t.breaker,t.slice;return t.const_set(e[0],"RUBY_PLATFORM","opal"),t.const_set(e[0],"RUBY_ENGINE","opal"),t.const_set(e[0],"RUBY_VERSION","2.5.1"),t.const_set(e[0],"RUBY_ENGINE_VERSION","0.11.99.dev"),t.const_set(e[0],"RUBY_RELEASE_DATE","2018-12-25"),t.const_set(e[0],"RUBY_PATCHLEVEL",0),t.const_set(e[0],"RUBY_REVISION",0),t.const_set(e[0],"RUBY_COPYRIGHT","opal - Copyright (C) 2013-2018 Adam Beynon and the Opal contributors"),t.const_set(e[0],"RUBY_DESCRIPTION","opal "+n(e,"RUBY_ENGINE_VERSION")+" ("+n(e,"RUBY_RELEASE_DATE")+" revision "+n(e,"RUBY_REVISION")+")")},Opal.modules["opal/base"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;return t.add_stubs(["$require"]),e.$require("corelib/runtime"),e.$require("corelib/helpers"),e.$require("corelib/module"),e.$require("corelib/class"),e.$require("corelib/basic_object"),e.$require("corelib/kernel"),e.$require("corelib/error"),e.$require("corelib/constants")},Opal.modules["corelib/nil"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.klass),a=t.hash2,s=t.truthy;return t.add_stubs(["$raise","$name","$new","$>","$length","$Rational"]),function(n,l,c){var u,d,f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A=o(n,l,"NilClass"),E=[A].concat(c);A.$$prototype.$$meta=A,function(e,n){var r,o=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(i(o,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new")}(t.get_singleton_class(A),E),t.def(A,"$!",u=function(){return!0},u.$$arity=0),t.def(A,"$&",d=function(t){return!1},d.$$arity=1),t.def(A,"$|",f=function(t){return!1!==t&&t!==r},f.$$arity=1),t.def(A,"$^",h=function(t){return!1!==t&&t!==r},h.$$arity=1),t.def(A,"$==",p=function(t){return t===r},p.$$arity=1),t.def(A,"$dup",$=function(){return r},$.$$arity=0),t.def(A,"$clone",m=function(e){var n;if(null==e)e=a([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),r},m.$$arity=-1),t.def(A,"$inspect",g=function(){return"nil"},g.$$arity=0),t.def(A,"$nil?",v=function(){return!0},v.$$arity=0),t.def(A,"$singleton_class",y=function(){return i(E,"NilClass")},y.$$arity=0),t.def(A,"$to_a",_=function(){return[]},_.$$arity=0),t.def(A,"$to_h",b=function(){return t.hash()},b.$$arity=0),t.def(A,"$to_i",w=function(){return 0},w.$$arity=0),t.alias(A,"to_f","to_i"),t.def(A,"$to_s",x=function(){return""},x.$$arity=0),t.def(A,"$to_c",k=function(){return i(E,"Complex").$new(0,0)},k.$$arity=0),t.def(A,"$rationalize",S=function(n){var r,o,a=this;return r=t.slice.call(arguments,0,arguments.length),o=r,s(e(o.$length(),1))&&a.$raise(i(E,"ArgumentError")),a.$Rational(0,1)},S.$$arity=-1),t.def(A,"$to_r",O=function(){var t=this;return t.$Rational(0,1)},O.$$arity=0),t.def(A,"$instance_variables",C=function(){return[]},C.$$arity=0)}(n[0],null,n),t.const_set(n[0],"NIL",r)},Opal.modules["corelib/boolean"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.hash2;return t.add_stubs(["$raise","$name"]),function(e,a,s){var l,c,u,d,f,h,p,$,m,g,v=i(e,a,"Boolean"),y=[v].concat(s);t.defineProperty(v.$$prototype,"$$is_boolean",!0),t.defineProperty(v.$$prototype,"$$meta",v),function(e,n){var i,o=[e].concat(n);t.def(e,"$allocate",i=function(){var t=this;return t.$raise(r(o,"TypeError"),"allocator undefined for "+t.$name())},i.$$arity=0),t.udef(e,"$new")}(t.get_singleton_class(v),y),t.def(v,"$__id__",l=function(){var t=this;return t.valueOf()?2:0},l.$$arity=0),t.alias(v,"object_id","__id__"),t.def(v,"$!",c=function(){var t=this;return 1!=t},c.$$arity=0),t.def(v,"$&",u=function(t){var e=this;return 1==e&&(!1!==t&&t!==n)},u.$$arity=1),t.def(v,"$|",d=function(t){var e=this;return 1==e||!1!==t&&t!==n},d.$$arity=1),t.def(v,"$^",f=function(t){var e=this;return 1==e?!1===t||t===n:!1!==t&&t!==n},f.$$arity=1),t.def(v,"$==",h=function(t){var e=this;return 1==e===t.valueOf()},h.$$arity=1),t.alias(v,"equal?","=="),t.alias(v,"eql?","=="),t.def(v,"$singleton_class",p=function(){return r(y,"Boolean")},p.$$arity=0),t.def(v,"$to_s",$=function(){var t=this;return 1==t?"true":"false"},$.$$arity=0),t.def(v,"$dup",m=function(){var t=this;return t},m.$$arity=0),t.def(v,"$clone",g=function(e){var n,r=this;if(null==e)e=o([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),r},g.$$arity=-1)}(e[0],Boolean,e),t.const_set(e[0],"TrueClass",r(e,"Boolean")),t.const_set(e[0],"FalseClass",r(e,"Boolean")),t.const_set(e[0],"TRUE",!0),t.const_set(e[0],"FALSE",!1)},Opal.modules["corelib/comparable"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var r=[],i=t.nil,o=(t.const_get_qualified,t.const_get_relative),a=(t.breaker,t.slice,t.module),s=t.truthy;return t.add_stubs(["$===","$>","$<","$equal?","$<=>","$normalize","$raise","$class"]),function(r,l){var c,u,d,f,h,p,$,m,g=a(r,"Comparable"),v=[g].concat(l);t.defs(g,"$normalize",c=function(t){return s(o(v,"Integer")["$==="](t))?t:s(e(t,0))?1:s(n(t,0))?-1:0},c.$$arity=1),t.def(g,"$==",u=function(e){var n=this,r=i;try{return!!s(n["$equal?"](e))||n["$<=>"]!=t.Kernel["$<=>"]&&(n.$$comparable?(delete n.$$comparable,!1):!!s(r=n["$<=>"](e))&&0==o(v,"Comparable").$normalize(r))}catch(a){if(!t.rescue(a,[o(v,"StandardError")]))throw a;try{return!1}finally{t.pop_exception()}}},u.$$arity=1),t.def(g,"$>",d=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)>0},d.$$arity=1),t.def(g,"$>=",f=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)>=0},f.$$arity=1),t.def(g,"$<",h=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)<0},h.$$arity=1),t.def(g,"$<=",p=function(t){var e=this,n=i;return s(n=e["$<=>"](t))||e.$raise(o(v,"ArgumentError"),"comparison of "+e.$class()+" with "+t.$class()+" failed"),o(v,"Comparable").$normalize(n)<=0},p.$$arity=1),t.def(g,"$between?",$=function(t,r){var i=this;return!n(i,t)&&!e(i,r)},$.$$arity=2),t.def(g,"$clamp",m=function(t,r){var a=this,l=i;return l=t["$<=>"](r),s(l)||a.$raise(o(v,"ArgumentError"),"comparison of "+t.$class()+" with "+r.$class()+" failed"),s(e(o(v,"Comparable").$normalize(l),0))&&a.$raise(o(v,"ArgumentError"),"min argument must be smaller than max argument"),s(n(o(v,"Comparable").$normalize(a["$<=>"](t)),0))?t:s(e(o(v,"Comparable").$normalize(a["$<=>"](r)),0))?r:a},m.$$arity=2)}(r[0],r)},Opal.modules["corelib/regexp"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.send,a=t.truthy,s=t.gvars;return t.add_stubs(["$nil?","$[]","$raise","$escape","$options","$to_str","$new","$join","$coerce_to!","$!","$match","$coerce_to?","$begin","$coerce_to","$=~","$attr_reader","$===","$inspect","$to_a"]),function(t,e,n){var r=i(t,e,"RegexpError");[r].concat(n)}(e[0],r(e,"StandardError"),e),function(e,l,c){var u,d,f,h,p,$,m,g,v,y,_=i(e,l,"Regexp"),b=[_].concat(c);t.const_set(b[0],"IGNORECASE",1),t.const_set(b[0],"EXTENDED",2),t.const_set(b[0],"MULTILINE",4),t.defineProperty(_.$$prototype,"$$is_regexp",!0),function(e,i){var l,c,u,d,f,h=[e].concat(i);t.def(e,"$allocate",l=function(){var e=l.$$p,r=this,i=n,a=n,s=n,c=n;for(e&&(l.$$p=null),s=0,c=arguments.length,a=new Array(c);s<c;s++)a[s]=arguments[s];return i=o(r,t.find_super_dispatcher(r,"allocate",l,!1),a,e),i.uninitialized=!0,i},l.$$arity=0),t.def(e,"$escape",c=function(e){return t.escape_regexp(e)},c.$$arity=1),t.def(e,"$last_match",u=function(t){return null==s["~"]&&(s["~"]=n),null==t&&(t=n),a(t["$nil?"]())?s["~"]:s["~"]["$[]"](t)},u.$$arity=-1),t.alias(e,"quote","escape"),t.def(e,"$union",d=function(e){var n,i,o,a,s,l,c,u=this;if(n=t.slice.call(arguments,0,arguments.length),i=n,0==i.length)return/(?!)/;if(1==i.length&&i[0].$$is_regexp)return i[0];o=i[0].$$is_array,i.length>1&&o&&u.$raise(r(h,"TypeError"),"no implicit conversion of Array into String"),o&&(i=i[0]),l=void 0,a=[];for(var d=0;d<i.length;d++)s=i[d],s.$$is_string?a.push(u.$escape(s)):s.$$is_regexp?(c=s.$options(),void 0!=l&&l!=c&&u.$raise(r(h,"TypeError"),"All expressions must use the same options"),l=c,a.push("("+s.source+")")):a.push(u.$escape(s.$to_str()));return u.$new(a.$join("|"),l)},d.$$arity=-1),t.def(e,"$new",f=function(t,e){var n=this;if(t.$$is_regexp)return new RegExp(t);if(t=r(h,"Opal")["$coerce_to!"](t,r(h,"String"),"to_str"),"\\"===t.charAt(t.length-1)&&"\\"!==t.charAt(t.length-2)&&n.$raise(r(h,"RegexpError"),"too short escape sequence: /"+t+"/"),void 0===e||e["$!"]())return new RegExp(t);if(e.$$is_number){var i="";r(h,"IGNORECASE")&e&&(i+="i"),r(h,"MULTILINE")&e&&(i+="m"),e=i}else e="i";return new RegExp(t,e)},f.$$arity=-2)}(t.get_singleton_class(_),b),t.def(_,"$==",u=function(t){var e=this;return t instanceof RegExp&&e.toString()===t.toString()},u.$$arity=1),t.def(_,"$===",d=function(t){var e=this;return e.$match(r(b,"Opal")["$coerce_to?"](t,r(b,"String"),"to_str"))!==n},d.$$arity=1),t.def(_,"$=~",f=function(t){var e,r=this;return null==s["~"]&&(s["~"]=n),a(e=r.$match(t))?s["~"].$begin(0):e},f.$$arity=1),t.alias(_,"eql?","=="),t.def(_,"$inspect",h=function(){var t=this,e=/^\/(.*)\/([^\/]*)$/,n=t.toString(),r=e.exec(n);if(r){for(var i=r[1],o=r[2],a=i.split(""),s=a.length,l=!1,c="",u=0;u<s;u++){var d=a[u];l||"/"!=d||(c=c.concat("\\")),c=c.concat(d),l="\\"==d&&!l}return"/"+c+"/"+o}return n},h.$$arity=0),t.def(_,"$match",p=function(e,i){var o=p.$$p,a=o||n,l=this;if(null==s["~"]&&(s["~"]=n),o&&(p.$$p=null),o&&(p.$$p=null),l.uninitialized&&l.$raise(r(b,"TypeError"),"uninitialized Regexp"),void 0===i){if(e===n)return s["~"]=n;var c=l.exec(r(b,"Opal").$coerce_to(e,r(b,"String"),"to_str"));return c?(s["~"]=r(b,"MatchData").$new(l,c),a===n?s["~"]:t.yield1(a,s["~"])):s["~"]=n}if(i=r(b,"Opal").$coerce_to(i,r(b,"Integer"),"to_int"),e===n)return s["~"]=n;if(e=r(b,"Opal").$coerce_to(e,r(b,"String"),"to_str"),i<0&&(i+=e.length,i<0))return s["~"]=n;var u,d=t.global_regexp(l);while(1){if(u=d.exec(e),null===u)return s["~"]=n;if(u.index>=i)return s["~"]=r(b,"MatchData").$new(d,u),a===n?s["~"]:t.yield1(a,s["~"]);d.lastIndex=u.index+1}},p.$$arity=-2),t.def(_,"$match?",$=function(e,i){var o=this;if(o.uninitialized&&o.$raise(r(b,"TypeError"),"uninitialized Regexp"),void 0===i)return e!==n&&o.test(r(b,"Opal").$coerce_to(e,r(b,"String"),"to_str"));if(i=r(b,"Opal").$coerce_to(i,r(b,"Integer"),"to_int"),e===n)return!1;if(e=r(b,"Opal").$coerce_to(e,r(b,"String"),"to_str"),i<0&&(i+=e.length,i<0))return!1;var a,s=t.global_regexp(o);return a=s.exec(e),!(null===a||a.index<i)},$.$$arity=-2),t.def(_,"$~",m=function(){var t=this;return null==s._&&(s._=n),t["$=~"](s._)},m.$$arity=0),t.def(_,"$source",g=function(){var t=this;return t.source},g.$$arity=0),t.def(_,"$options",v=function(){var t=this;t.uninitialized&&t.$raise(r(b,"TypeError"),"uninitialized Regexp");var e=0;return t.multiline&&(e|=r(b,"MULTILINE")),t.ignoreCase&&(e|=r(b,"IGNORECASE")),e},v.$$arity=0),t.def(_,"$casefold?",y=function(){var t=this;return t.ignoreCase},y.$$arity=0),t.alias(_,"to_s","source")}(e[0],RegExp,e),function(e,l,c){var u,d,f,h,p,$,m,g,v,y,_,b,w=i(e,l,"MatchData"),x=[w].concat(c);return w.$$prototype.matches=n,w.$attr_reader("post_match","pre_match","regexp","string"),t.def(w,"$initialize",u=function(t,e){var r=this;s["~"]=r,r.regexp=t,r.begin=e.index,r.string=e.input,r.pre_match=e.input.slice(0,e.index),r.post_match=e.input.slice(e.index+e[0].length),r.matches=[];for(var i=0,o=e.length;i<o;i++){var a=e[i];null==a?r.matches.push(n):r.matches.push(a)}},u.$$arity=2),t.def(w,"$[]",d=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,o(i.matches,"[]",t.to_a(r))},d.$$arity=-1),t.def(w,"$offset",f=function(t){var e=this;return 0!==t&&e.$raise(r(x,"ArgumentError"),"MatchData#offset only supports 0th element"),[e.begin,e.begin+e.matches[t].length]},f.$$arity=1),t.def(w,"$==",h=function(t){var e,n,i,o,s=this;return!!a(r(x,"MatchData")["$==="](t))&&(a(e=a(n=a(i=a(o=s.string==t.string)?s.regexp.toString()==t.regexp.toString():o)?s.pre_match==t.pre_match:i)?s.post_match==t.post_match:n)?s.begin==t.begin:e)},h.$$arity=1),t.alias(w,"eql?","=="),t.def(w,"$begin",p=function(t){var e=this;return 0!==t&&e.$raise(r(x,"ArgumentError"),"MatchData#begin only supports 0th element"),e.begin},p.$$arity=1),t.def(w,"$end",$=function(t){var e=this;return 0!==t&&e.$raise(r(x,"ArgumentError"),"MatchData#end only supports 0th element"),e.begin+e.matches[t].length},$.$$arity=1),t.def(w,"$captures",m=function(){var t=this;return t.matches.slice(1)},m.$$arity=0),t.def(w,"$inspect",g=function(){for(var t=this,e="#<MatchData "+t.matches[0].$inspect(),n=1,r=t.matches.length;n<r;n++)e+=" "+n+":"+t.matches[n].$inspect();return e+">"},g.$$arity=0),t.def(w,"$length",v=function(){var t=this;return t.matches.length},v.$$arity=0),t.alias(w,"size","length"),t.def(w,"$to_a",y=function(){var t=this;return t.matches},y.$$arity=0),t.def(w,"$to_s",_=function(){var t=this;return t.matches[0]},_.$$arity=0),t.def(w,"$values_at",b=function(e){var i,o,a=this;i=t.slice.call(arguments,0,arguments.length),o=i;var s,l,c,u=[];for(s=0;s<o.length;s++)o[s].$$is_range&&(l=o[s].$to_a(),l.unshift(s,1),Array.prototype.splice.apply(o,l)),c=r(x,"Opal")["$coerce_to!"](o[s],r(x,"Integer"),"to_int"),c<0&&(c+=a.matches.length,c<0)?u.push(n):u.push(a.matches[c]);return u},b.$$arity=-1),n&&"values_at"}(e[0],null,e)},Opal.modules["corelib/string"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t/e:t["$/"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}var r=t.top,i=[],o=t.nil,a=(t.const_get_qualified,t.const_get_relative),s=(t.breaker,t.slice,t.klass),l=t.truthy,c=t.send,u=t.gvars;return t.add_stubs(["$require","$include","$coerce_to?","$coerce_to","$raise","$===","$format","$to_s","$respond_to?","$to_str","$<=>","$==","$=~","$new","$force_encoding","$casecmp","$empty?","$ljust","$ceil","$/","$+","$rjust","$floor","$to_a","$each_char","$to_proc","$coerce_to!","$copy_singleton_methods","$initialize_clone","$initialize_dup","$enum_for","$size","$chomp","$[]","$to_i","$each_line","$class","$match","$match?","$captures","$proc","$succ","$escape"]),r.$require("corelib/comparable"),r.$require("corelib/regexp"),function(r,i,d){var f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt,kt,St,Ot,Ct,At,Et,Tt,Pt,Bt,Lt,It=s(r,i,"String"),Dt=[It].concat(d);function Rt(t){function e(t){var e,n,r,i,o,s,l="",c=t.length;for(e=0;e<c;e++)if(n=t.charAt(e),"-"===n&&e>0&&e<c-1&&!r){for(i=t.charCodeAt(e-1),o=t.charCodeAt(e+1),i>o&&It.$raise(a(Dt,"ArgumentError"),'invalid range "'+i+"-"+o+'" in string transliteration'),s=i+1;s<o+1;s++)l+=String.fromCharCode(s);r=!0,e++}else r="\\"===n,l+=n;return l}function n(t,e){if(0===t.length)return e;var n,r,i="",o=t.length;for(n=0;n<o;n++)r=t.charAt(n),-1!==e.indexOf(r)&&(i+=r);return i}var r,i,o,s,l,c,u="",d="";for(r=0,i=t.length;r<i;r++)o=a(Dt,"Opal").$coerce_to(t[r],a(Dt,"String"),"to_str"),s="^"===o.charAt(0)&&o.length>1,o=e(s?o.slice(1):o),s?d=n(d,o):u=n(u,o);if(u.length>0&&d.length>0){for(c="",r=0,i=u.length;r<i;r++)l=u.charAt(r),-1===d.indexOf(l)&&(c+=l);u=c,d=""}return u.length>0?"["+a(Dt,"Regexp").$escape(u)+"]":d.length>0?"[^"+a(Dt,"Regexp").$escape(d)+"]":null}It.$include(a(Dt,"Comparable")),t.defineProperty(It.$$prototype,"$$is_string",!0),t.defineProperty(It.$$prototype,"$$cast",(function(t){var e=this.$$class;return e.$$constructor===String?t:new e.$$constructor(t)})),t.def(It,"$__id__",f=function(){var t=this;return t.toString()},f.$$arity=0),t.alias(It,"object_id","__id__"),t.defs(It,"$try_convert",h=function(t){return a(Dt,"Opal")["$coerce_to?"](t,a(Dt,"String"),"to_str")},h.$$arity=1),t.defs(It,"$new",p=function(t){var e=this;return null==t&&(t=""),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),new e.$$constructor(t)},p.$$arity=-1),t.def(It,"$initialize",$=function(t){var e=this;return void 0===t?e:e.$raise(a(Dt,"NotImplementedError"),"Mutable strings are not supported in Opal.")},$.$$arity=-1),t.def(It,"$%",m=function(e){var n=this;return l(a(Dt,"Array")["$==="](e))?c(n,"format",[n].concat(t.to_a(e))):n.$format(n,e)},m.$$arity=1),t.def(It,"$*",g=function(t){var e=this;if(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),t<0&&e.$raise(a(Dt,"ArgumentError"),"negative argument"),0===t)return e.$$cast("");var n="",r=e.toString();for(r.length*t>=1<<28&&e.$raise(a(Dt,"RangeError"),"multiply count must not overflow maximum string size");;){if(1===(1&t)&&(n+=r),t>>>=1,0===t)break;r+=r}return e.$$cast(n)},g.$$arity=1),t.def(It,"$+",v=function(t){var e=this;return t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),e+t.$to_s()},v.$$arity=1),t.def(It,"$<=>",y=function(t){var e=this;if(l(t["$respond_to?"]("to_str")))return t=t.$to_str().$to_s(),e>t?1:e<t?-1:0;var n=t["$<=>"](e);return n===o?o:n>0?-1:n<0?1:0},y.$$arity=1),t.def(It,"$==",_=function(t){var e=this;return t.$$is_string?e.toString()===t.toString():!!a(Dt,"Opal")["$respond_to?"](t,"to_str")&&t["$=="](e)},_.$$arity=1),t.alias(It,"eql?","=="),t.alias(It,"===","=="),t.def(It,"$=~",b=function(t){var e=this;return t.$$is_string&&e.$raise(a(Dt,"TypeError"),"type mismatch: String given"),t["$=~"](e)},b.$$arity=1),t.def(It,"$[]",w=function(t,e){var n,r=this,i=r.length;if(t.$$is_range)return n=t.excl,e=a(Dt,"Opal").$coerce_to(t.end,a(Dt,"Integer"),"to_int"),t=a(Dt,"Opal").$coerce_to(t.begin,a(Dt,"Integer"),"to_int"),Math.abs(t)>i?o:(t<0&&(t+=i),e<0&&(e+=i),n||(e+=1),e-=t,e<0&&(e=0),r.$$cast(r.substr(t,e)));if(t.$$is_string)return null!=e&&r.$raise(a(Dt,"TypeError")),-1!==r.indexOf(t)?r.$$cast(t):o;if(t.$$is_regexp){var s=r.match(t);return null===s?(u["~"]=o,o):(u["~"]=a(Dt,"MatchData").$new(t,s),null==e?r.$$cast(s[0]):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"Integer"),"to_int"),e<0&&-e<s.length?r.$$cast(s[e+=s.length]):e>=0&&e<s.length?r.$$cast(s[e]):o))}return t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),t<0&&(t+=i),null==e?t>=i||t<0?o:r.$$cast(r.substr(t,1)):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"Integer"),"to_int"),e<0||t>i||t<0?o:r.$$cast(r.substr(t,e)))},w.$$arity=-2),t.alias(It,"byteslice","[]"),t.def(It,"$b",x=function(){var t=this;return t.$force_encoding("binary")},x.$$arity=0),t.def(It,"$capitalize",k=function(){var t=this;return t.$$cast(t.charAt(0).toUpperCase()+t.substr(1).toLowerCase())},k.$$arity=0),t.def(It,"$casecmp",S=function(t){var e=this;if(!l(t["$respond_to?"]("to_str")))return o;t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str").$to_s();var n=/^[\x00-\x7F]*$/;return n.test(e)&&n.test(t)&&(e=e.toLowerCase(),t=t.toLowerCase()),e["$<=>"](t)},S.$$arity=1),t.def(It,"$casecmp?",O=function(t){var e=this,n=e.$casecmp(t);return n===o?o:0===n},O.$$arity=1),t.def(It,"$center",C=function(t,r){var i=this;if(null==r&&(r=" "),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),r=a(Dt,"Opal").$coerce_to(r,a(Dt,"String"),"to_str").$to_s(),l(r["$empty?"]())&&i.$raise(a(Dt,"ArgumentError"),"zero width padding"),l(t<=i.length))return i;var o=i.$ljust(e(n(t,i.length),2).$ceil(),r),s=i.$rjust(e(n(t,i.length),2).$floor(),r);return i.$$cast(s+o.slice(i.length))},C.$$arity=-2),t.def(It,"$chars",A=function(){var t=A.$$p,e=t||o,n=this;return t&&(A.$$p=null),t&&(A.$$p=null),l(e)?c(n,"each_char",[],e.$to_proc()):n.$each_char().$to_a()},A.$$arity=0),t.def(It,"$chomp",E=function(t){var e,n=this;if(null==u["/"]&&(u["/"]=o),null==t&&(t=u["/"]),l(t===o||0===n.length))return n;if(t=a(Dt,"Opal")["$coerce_to!"](t,a(Dt,"String"),"to_str").$to_s(),"\n"===t)e=n.replace(/\r?\n?$/,"");else if(""===t)e=n.replace(/(\r?\n)+$/,"");else if(n.length>=t.length){var r=n.substr(n.length-t.length,t.length);r===t&&(e=n.substr(0,n.length-t.length))}return null!=e?n.$$cast(e):n},E.$$arity=-1),t.def(It,"$chop",T=function(){var t,e=this,n=e.length;return t=n<=1?"":"\n"===e.charAt(n-1)&&"\r"===e.charAt(n-2)?e.substr(0,n-2):e.substr(0,n-1),e.$$cast(t)},T.$$arity=0),t.def(It,"$chr",P=function(){var t=this;return t.charAt(0)},P.$$arity=0),t.def(It,"$clone",B=function(){var t=this,e=o;return e=t.slice(),e.$copy_singleton_methods(t),e.$initialize_clone(t),e},B.$$arity=0),t.def(It,"$dup",L=function(){var t=this,e=o;return e=t.slice(),e.$initialize_dup(t),e},L.$$arity=0),t.def(It,"$count",I=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length&&i.$raise(a(Dt,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var o=Rt(r);return null===o?0:i.length-i.replace(new RegExp(o,"g"),"").length},I.$$arity=-1),t.def(It,"$delete",D=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length&&i.$raise(a(Dt,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var o=Rt(r);return null===o?i:i.$$cast(i.replace(new RegExp(o,"g"),""))},D.$$arity=-1),t.def(It,"$delete_prefix",R=function(t){var e=this;return t.$$is_string||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str")),e.slice(0,t.length)===t?e.$$cast(e.slice(t.length)):e},R.$$arity=1),t.def(It,"$delete_suffix",j=function(t){var e=this;return t.$$is_string||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str")),e.slice(e.length-t.length)===t?e.$$cast(e.slice(0,e.length-t.length)):e},j.$$arity=1),t.def(It,"$downcase",M=function(){var t=this;return t.$$cast(t.toLowerCase())},M.$$arity=0),t.def(It,"$each_char",F=function(){var e,n=F.$$p,r=n||o,i=this;if(n&&(F.$$p=null),n&&(F.$$p=null),r===o)return c(i,"enum_for",["each_char"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var a=0,s=i.length;a<s;a++)t.yield1(r,i.charAt(a));return i},F.$$arity=0),t.def(It,"$each_line",N=function(e){var n,r,i,s,l,c,d,f=N.$$p,h=f||o,p=this;if(null==u["/"]&&(u["/"]=o),f&&(N.$$p=null),f&&(N.$$p=null),null==e&&(e=u["/"]),h===o)return p.$enum_for("each_line",e);if(e===o)return t.yield1(h,p),p;if(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),0===e.length){for(n=p.split(/(\n{2,})/),r=0,i=n.length;r<i;r+=2)if(n[r]||n[r+1]){var $=(n[r]||"")+(n[r+1]||"");t.yield1(h,p.$$cast($))}return p}for(l=p.$chomp(e),c=p.length!=l.length,d=l.split(e),r=0,s=d.length;r<s;r++)r<s-1||c?t.yield1(h,p.$$cast(d[r]+e)):t.yield1(h,p.$$cast(d[r]));return p},N.$$arity=-1),t.def(It,"$empty?",z=function(){var t=this;return 0===t.length},z.$$arity=0),t.def(It,"$end_with?",H=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o=0,s=r.length;o<s;o++){var l=a(Dt,"Opal").$coerce_to(r[o],a(Dt,"String"),"to_str").$to_s();if(i.length>=l.length&&i.substr(i.length-l.length,l.length)==l)return!0}return!1},H.$$arity=-1),t.alias(It,"equal?","==="),t.def(It,"$gsub",V=function(e,n){var r=V.$$p,i=r||o,s=this;if(r&&(V.$$p=null),r&&(V.$$p=null),void 0===n&&i===o)return s.$enum_for("gsub",e);var l,c,d,f="",h=o,p=0;e.$$is_regexp?e=t.global_multiline_regexp(e):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),e=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));while(1){if(l=e.exec(s),null===l){u["~"]=o,f+=s.slice(p);break}h=a(Dt,"MatchData").$new(e,l),void 0===n?(d=e.lastIndex,c=i(l[0]),e.lastIndex=d):n.$$is_hash?c=n["$[]"](l[0]).$to_s():(n.$$is_string||(n=a(Dt,"Opal").$coerce_to(n,a(Dt,"String"),"to_str")),c=n.replace(/([\\]+)([0-9+&`'])/g,(function(t,e,n){if(e.length%2===0)return t;switch(n){case"+":for(var r=l.length-1;r>0;r--)if(void 0!==l[r])return e.slice(1)+l[r];return"";case"&":return e.slice(1)+l[0];case"`":return e.slice(1)+s.slice(0,l.index);case"'":return e.slice(1)+s.slice(l.index+l[0].length);default:return e.slice(1)+(l[n]||"")}})).replace(/\\\\/g,"\\")),e.lastIndex===l.index?(f+=c+s.slice(p,l.index+1),e.lastIndex+=1):f+=s.slice(p,l.index)+c,p=e.lastIndex}return u["~"]=h,s.$$cast(f)},V.$$arity=-2),t.def(It,"$hash",U=function(){var t=this;return t.toString()},U.$$arity=0),t.def(It,"$hex",q=function(){var t=this;return t.$to_i(16)},q.$$arity=0),t.def(It,"$include?",W=function(t){var e=this;return t.$$is_string||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str")),-1!==e.indexOf(t)},W.$$arity=1),t.def(It,"$index",G=function(e,n){var r,i,s,l=this;if(void 0===n)n=0;else if(n=a(Dt,"Opal").$coerce_to(n,a(Dt,"Integer"),"to_int"),n<0&&(n+=l.length,n<0))return o;if(e.$$is_regexp){s=t.global_multiline_regexp(e);while(1){if(i=s.exec(l),null===i){u["~"]=o,r=-1;break}if(i.index>=n){u["~"]=a(Dt,"MatchData").$new(s,i),r=i.index;break}s.lastIndex=i.index+1}}else e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),r=0===e.length&&n>l.length?-1:l.indexOf(e,n);return-1===r?o:r},G.$$arity=-2),t.def(It,"$inspect",Y=function(){var t=this,e=/[\\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"":"\\a","":"\\e","\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\v":"\\v",'"':'\\"',"\\":"\\\\"},r=t.replace(e,(function(t){return n[t]||"\\u"+("0000"+t.charCodeAt(0).toString(16).toUpperCase()).slice(-4)}));return'"'+r.replace(/\#[\$\@\{]/g,"\\$&")+'"'},Y.$$arity=0),t.def(It,"$intern",K=function(){var t=this;return t.toString()},K.$$arity=0),t.def(It,"$lines",X=function(t){var e=X.$$p,n=e||o,r=this,i=o;return null==u["/"]&&(u["/"]=o),e&&(X.$$p=null),e&&(X.$$p=null),null==t&&(t=u["/"]),i=c(r,"each_line",[t],n.$to_proc()),l(n)?r:i.$to_a()},X.$$arity=-1),t.def(It,"$length",Z=function(){var t=this;return t.length},Z.$$arity=0),t.def(It,"$ljust",J=function(t,e){var n=this;if(null==e&&(e=" "),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),l(e["$empty?"]())&&n.$raise(a(Dt,"ArgumentError"),"zero width padding"),l(t<=n.length))return n;var r=-1,i="";t-=n.length;while(++r<t)i+=e;return n.$$cast(n+i.slice(0,t))},J.$$arity=-2),t.def(It,"$lstrip",Q=function(){var t=this;return t.replace(/^\s*/,"")},Q.$$arity=0),t.def(It,"$ascii_only?",tt=function(){var t=this;return t.match(/[ -~\n]*/)[0]===t},tt.$$arity=0),t.def(It,"$match",et=function(t,e){var n,r=et.$$p,i=r||o,s=this;return r&&(et.$$p=null),r&&(et.$$p=null),l(l(n=a(Dt,"String")["$==="](t))?n:t["$respond_to?"]("to_str"))&&(t=a(Dt,"Regexp").$new(t.$to_str())),l(a(Dt,"Regexp")["$==="](t))||s.$raise(a(Dt,"TypeError"),"wrong argument type "+t.$class()+" (expected Regexp)"),c(t,"match",[s,e],i.$to_proc())},et.$$arity=-2),t.def(It,"$match?",nt=function(t,e){var n,r=this;return l(l(n=a(Dt,"String")["$==="](t))?n:t["$respond_to?"]("to_str"))&&(t=a(Dt,"Regexp").$new(t.$to_str())),l(a(Dt,"Regexp")["$==="](t))||r.$raise(a(Dt,"TypeError"),"wrong argument type "+t.$class()+" (expected Regexp)"),t["$match?"](r,e)},nt.$$arity=-2),t.def(It,"$next",rt=function(){var t=this,e=t.length;if(0===e)return t.$$cast("");var n,r=t,i=t.search(/[a-zA-Z0-9]/),o=!1;while(e--){if(n=t.charCodeAt(e),n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122)switch(n){case 57:o=!0,n=48;break;case 90:o=!0,n=65;break;case 122:o=!0,n=97;break;default:o=!1,n+=1}else-1===i?255===n?(o=!0,n=0):(o=!1,n+=1):o=!0;if(r=r.slice(0,e)+String.fromCharCode(n)+r.slice(e+1),o&&(0===e||e===i)){switch(n){case 65:break;case 97:break;default:n+=1}r=0===e?String.fromCharCode(n)+r:r.slice(0,e)+String.fromCharCode(n)+r.slice(e),o=!1}if(!o)break}return t.$$cast(r)},rt.$$arity=0),t.def(It,"$oct",it=function(){var t,e=this,n=e,r=8;return/^\s*_/.test(n)?0:(n=n.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,(function(t,e,n,i){switch(i.charAt(0)){case"+":case"-":return t;case"0":if("x"===i.charAt(1)&&"0x"===n)return t}switch(n){case"0b":r=2;break;case"0":case"0o":r=8;break;case"0d":r=10;break;case"0x":r=16;break}return e+i})),t=parseInt(n.replace(/_(?!_)/g,""),r),isNaN(t)?0:t)},it.$$arity=0),t.def(It,"$ord",ot=function(){var t=this;return t.charCodeAt(0)},ot.$$arity=0),t.def(It,"$partition",at=function(t){var e,n,r=this;return t.$$is_regexp?(n=t.exec(r),null===n?e=-1:(a(Dt,"MatchData").$new(t,n),t=n[0],e=n.index)):(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),e=r.indexOf(t)),-1===e?[r,"",""]:[r.slice(0,e),r.slice(e,e+t.length),r.slice(e+t.length)]},at.$$arity=1),t.def(It,"$reverse",st=function(){var t=this;return t.split("").reverse().join("")},st.$$arity=0),t.def(It,"$rindex",lt=function(e,n){var r,i,s,l,c=this;if(void 0===n)n=c.length;else if(n=a(Dt,"Opal").$coerce_to(n,a(Dt,"Integer"),"to_int"),n<0&&(n+=c.length,n<0))return o;if(e.$$is_regexp){i=null,s=t.global_multiline_regexp(e);while(1){if(l=s.exec(c),null===l||l.index>n)break;i=l,s.lastIndex=i.index+1}null===i?(u["~"]=o,r=-1):(a(Dt,"MatchData").$new(s,i),r=i.index)}else e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),r=c.lastIndexOf(e,n);return-1===r?o:r},lt.$$arity=-2),t.def(It,"$rjust",ct=function(t,e){var n=this;if(null==e&&(e=" "),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int"),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),l(e["$empty?"]())&&n.$raise(a(Dt,"ArgumentError"),"zero width padding"),l(t<=n.length))return n;var r=Math.floor(t-n.length),i=Math.floor(r/e.length),o=Array(i+1).join(e),s=r-o.length;return n.$$cast(o+e.slice(0,s)+n)},ct.$$arity=-2),t.def(It,"$rpartition",ut=function(e){var n,r,i,o,s=this;if(e.$$is_regexp){r=null,i=t.global_multiline_regexp(e);while(1){if(o=i.exec(s),null===o)break;r=o,i.lastIndex=r.index+1}null===r?n=-1:(a(Dt,"MatchData").$new(i,r),e=r[0],n=r.index)}else e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),n=s.lastIndexOf(e);return-1===n?["","",s]:[s.slice(0,n),s.slice(n,n+e.length),s.slice(n+e.length)]},ut.$$arity=1),t.def(It,"$rstrip",dt=function(){var t=this;return t.replace(/[\s\u0000]*$/,"")},dt.$$arity=0),t.def(It,"$scan",ft=function(e){var n=ft.$$p,r=n||o,i=this;n&&(ft.$$p=null),n&&(ft.$$p=null);var s,l=[],c=o;e.$$is_regexp?e=t.global_multiline_regexp(e):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),e=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));while(null!=(s=e.exec(i)))c=a(Dt,"MatchData").$new(e,s),r===o?1==s.length?l.push(s[0]):l.push(c.$captures()):1==s.length?r(s[0]):r.call(i,c.$captures()),e.lastIndex===s.index&&(e.lastIndex+=1);return u["~"]=c,r!==o?i:l},ft.$$arity=1),t.alias(It,"size","length"),t.alias(It,"slice","[]"),t.def(It,"$split",ht=function(e,n){var r,i=this;if(null==u[";"]&&(u[";"]=o),0===i.length)return[];if(void 0===n)n=0;else if(n=a(Dt,"Opal")["$coerce_to!"](n,a(Dt,"Integer"),"to_int"),1===n)return[i];void 0!==e&&e!==o||(e=l(r=u[";"])?r:" ");var s,c,d,f=[],h=i.toString(),p=0;if(e.$$is_regexp?e=t.global_multiline_regexp(e):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s()," "===e?(e=/\s+/gm,h=h.replace(/^\s+/,"")):e=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),f=h.split(e),1===f.length&&f[0]===h)return[i.$$cast(f[0])];while(-1!==(c=f.indexOf(void 0)))f.splice(c,1);function $(){for(c=0;c<f.length;c++)f[c]=i.$$cast(f[c])}if(0===n){while(""===f[f.length-1])f.length-=1;return $(),f}if(s=e.exec(h),n<0){if(null!==s&&""===s[0]&&-1===e.source.indexOf("(?="))for(c=0,d=s.length;c<d;c++)f.push("");return $(),f}if(null!==s&&""===s[0])return f.splice(n-1,f.length-1,f.slice(n-1).join("")),$(),f;if(n>=f.length)return $(),f;c=0;while(null!==s){if(c++,p=e.lastIndex,c+1===n)break;s=e.exec(h)}return f.splice(n-1,f.length-1,h.slice(p)),$(),f},ht.$$arity=-1),t.def(It,"$squeeze",pt=function(e){var n,r,i=this;if(n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length)return i.$$cast(i.replace(/(.)\1+/g,"$1"));var o=Rt(r);return null===o?i:i.$$cast(i.replace(new RegExp("("+o+")\\1+","g"),"$1"))},pt.$$arity=-1),t.def(It,"$start_with?",$t=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o=0,s=r.length;o<s;o++){var l=a(Dt,"Opal").$coerce_to(r[o],a(Dt,"String"),"to_str").$to_s();if(0===i.indexOf(l))return!0}return!1},$t.$$arity=-1),t.def(It,"$strip",mt=function(){var t=this;return t.replace(/^\s*/,"").replace(/[\s\u0000]*$/,"")},mt.$$arity=0),t.def(It,"$sub",gt=function(t,e){var n=gt.$$p,r=n||o,i=this;n&&(gt.$$p=null),n&&(gt.$$p=null),t.$$is_regexp||(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str"),t=new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")));var s,l=t.exec(i);return null===l?(u["~"]=o,s=i.toString()):(a(Dt,"MatchData").$new(t,l),void 0===e?(r===o&&i.$raise(a(Dt,"ArgumentError"),"wrong number of arguments (1 for 2)"),s=i.slice(0,l.index)+r(l[0])+i.slice(l.index+l[0].length)):e.$$is_hash?s=i.slice(0,l.index)+e["$[]"](l[0]).$to_s()+i.slice(l.index+l[0].length):(e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str"),e=e.replace(/([\\]+)([0-9+&`'])/g,(function(t,e,n){if(e.length%2===0)return t;switch(n){case"+":for(var r=l.length-1;r>0;r--)if(void 0!==l[r])return e.slice(1)+l[r];return"";case"&":return e.slice(1)+l[0];case"`":return e.slice(1)+i.slice(0,l.index);case"'":return e.slice(1)+i.slice(l.index+l[0].length);default:return e.slice(1)+(l[n]||"")}})).replace(/\\\\/g,"\\"),s=i.slice(0,l.index)+e+i.slice(l.index+l[0].length))),i.$$cast(s)},gt.$$arity=-2),t.alias(It,"succ","next"),t.def(It,"$sum",vt=function(t){var e=this;null==t&&(t=16),t=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int");for(var n=0,r=e.length,i=0;i<r;i++)n+=e.charCodeAt(i);return t<=0?n:n&Math.pow(2,t)-1},vt.$$arity=-1),t.def(It,"$swapcase",yt=function(){var t=this,e=t.replace(/([a-z]+)|([A-Z]+)/g,(function(t,e,n){return e?t.toUpperCase():t.toLowerCase()}));return t.constructor===String?e:t.$class().$new(e)},yt.$$arity=0),t.def(It,"$to_f",_t=function(){var t=this;if("_"===t.charAt(0))return 0;var e=parseFloat(t.replace(/_/g,""));return isNaN(e)||e==1/0||e==-1/0?0:e},_t.$$arity=0),t.def(It,"$to_i",bt=function(t){var e=this;null==t&&(t=10);var n,r=e.toLowerCase(),i=a(Dt,"Opal").$coerce_to(t,a(Dt,"Integer"),"to_int");return(1===i||i<0||i>36)&&e.$raise(a(Dt,"ArgumentError"),"invalid radix "+i),/^\s*_/.test(r)?0:(r=r.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,(function(t,e,n,r){switch(r.charAt(0)){case"+":case"-":return t;case"0":if("x"===r.charAt(1)&&"0x"===n&&(0===i||16===i))return t}switch(n){case"0b":if(0===i||2===i)return i=2,e+r;break;case"0":case"0o":if(0===i||8===i)return i=8,e+r;break;case"0d":if(0===i||10===i)return i=10,e+r;break;case"0x":if(0===i||16===i)return i=16,e+r;break}return t})),n=parseInt(r.replace(/_(?!_)/g,""),i),isNaN(n)?0:n)},bt.$$arity=-1),t.def(It,"$to_proc",wt=function(){var e,r=wt.$$p,i=this,s=o;return r&&(wt.$$p=null),s=n("$",i.valueOf()),c(i,"proc",[],(e=function(n){var r,i,l=e.$$s||this,c=e.$$p,u=c||o;c&&(e.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,0===i.length&&l.$raise(a(Dt,"ArgumentError"),"no receiver given");var d=i[0];null==d&&(d=o);var f=d[s];return f?("function"===typeof u&&(f.$$p=u),1===i.length?f.call(d):f.apply(d,i.slice(1))):d.$method_missing.apply(d,i)},e.$$s=i,e.$$arity=-1,e))},wt.$$arity=0),t.def(It,"$to_s",xt=function(){var t=this;return t.toString()},xt.$$arity=0),t.alias(It,"to_str","to_s"),t.alias(It,"to_sym","intern"),t.def(It,"$tr",kt=function(t,e){var n,r,i,o,s,l,c,u=this;if(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str").$to_s(),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),0==t.length||t===e)return u;var d={},f=t.split(""),h=f.length,p=e.split(""),$=p.length,m=!1,g=null;"^"===f[0]&&f.length>1&&(m=!0,f.shift(),g=p[$-1],h-=1);var v=[],y=null;for(r=!1,n=0;n<h;n++)if(o=f[n],null==y)y=o,v.push(o);else if("-"===o)"-"===y?(v.push("-"),v.push("-")):n==h-1?v.push("-"):r=!0;else if(r){for(s=y.charCodeAt(0),l=o.charCodeAt(0),s>l&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i<l;i++)v.push(String.fromCharCode(i));v.push(o),r=null,y=null}else v.push(o);if(f=v,h=f.length,m)for(n=0;n<h;n++)d[f[n]]=!0;else{if($>0){var _=[],b=null;for(r=!1,n=0;n<$;n++)if(o=p[n],null==b)b=o,_.push(o);else if("-"===o)"-"===b?(_.push("-"),_.push("-")):n==$-1?_.push("-"):r=!0;else if(r){for(s=b.charCodeAt(0),l=o.charCodeAt(0),s>l&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i<l;i++)_.push(String.fromCharCode(i));_.push(o),r=null,b=null}else _.push(o);p=_,$=p.length}var w=h-$;if(w>0){var x=$>0?p[$-1]:"";for(n=0;n<w;n++)p.push(x)}for(n=0;n<h;n++)d[f[n]]=p[n]}var k="";for(n=0,c=u.length;n<c;n++){o=u.charAt(n);var S=d[o];k+=m?null==S?g:o:null!=S?S:o}return u.$$cast(k)},kt.$$arity=2),t.def(It,"$tr_s",St=function(t,e){var n,r,i,o,s,l,c,u=this;if(t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str").$to_s(),e=a(Dt,"Opal").$coerce_to(e,a(Dt,"String"),"to_str").$to_s(),0==t.length)return u;var d={},f=t.split(""),h=f.length,p=e.split(""),$=p.length,m=!1,g=null;"^"===f[0]&&f.length>1&&(m=!0,f.shift(),g=p[$-1],h-=1);var v=[],y=null;for(r=!1,n=0;n<h;n++)if(o=f[n],null==y)y=o,v.push(o);else if("-"===o)"-"===y?(v.push("-"),v.push("-")):n==h-1?v.push("-"):r=!0;else if(r){for(s=y.charCodeAt(0),l=o.charCodeAt(0),s>l&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i<l;i++)v.push(String.fromCharCode(i));v.push(o),r=null,y=null}else v.push(o);if(f=v,h=f.length,m)for(n=0;n<h;n++)d[f[n]]=!0;else{if($>0){var _=[],b=null;for(r=!1,n=0;n<$;n++)if(o=p[n],null==y)y=o,_.push(o);else if("-"===o)"-"===b?(_.push("-"),_.push("-")):n==$-1?_.push("-"):r=!0;else if(r){for(s=y.charCodeAt(0),l=o.charCodeAt(0),s>l&&u.$raise(a(Dt,"ArgumentError"),'invalid range "'+String.fromCharCode(s)+"-"+String.fromCharCode(l)+'" in string transliteration'),i=s+1;i<l;i++)_.push(String.fromCharCode(i));_.push(o),r=null,y=null}else _.push(o);p=_,$=p.length}var w=h-$;if(w>0){var x=$>0?p[$-1]:"";for(n=0;n<w;n++)p.push(x)}for(n=0;n<h;n++)d[f[n]]=p[n]}var k="",S=null;for(n=0,c=u.length;n<c;n++){o=u.charAt(n);var O=d[o];m?null==O?null==S&&(k+=g,S=!0):(k+=o,S=null):null!=O?null!=S&&S===O||(k+=O,S=O):(k+=o,S=null)}return u.$$cast(k)},St.$$arity=2),t.def(It,"$upcase",Ot=function(){var t=this;return t.$$cast(t.toUpperCase())},Ot.$$arity=0),t.def(It,"$upto",Ct=function(t,e){var n=Ct.$$p,r=n||o,i=this;if(n&&(Ct.$$p=null),n&&(Ct.$$p=null),null==e&&(e=!1),r===o)return i.$enum_for("upto",t,e);t=a(Dt,"Opal").$coerce_to(t,a(Dt,"String"),"to_str");var s,l,c=i.toString();if(1===c.length&&1===t.length){s=c.charCodeAt(0),l=t.charCodeAt(0);while(s<=l){if(e&&s===l)break;r(String.fromCharCode(s)),s+=1}}else if(parseInt(c,10).toString()===c&&parseInt(t,10).toString()===t){s=parseInt(c,10),l=parseInt(t,10);while(s<=l){if(e&&s===l)break;r(s.toString()),s+=1}}else while(c.length<=t.length&&c<=t){if(e&&c===t)break;r(c),c=c.$succ()}return i},Ct.$$arity=-2),t.def(It,"$instance_variables",At=function(){return[]},At.$$arity=0),t.defs(It,"$_load",Et=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,c(i,"new",t.to_a(r))},Et.$$arity=-1),t.def(It,"$unicode_normalize",Tt=function(t){var e=this;return e.toString()},Tt.$$arity=-1),t.def(It,"$unicode_normalized?",Pt=function(t){return!0},Pt.$$arity=-1),t.def(It,"$unpack",Bt=function(t){var e=this;return e.$raise("To use String#unpack, you must first require 'corelib/string/unpack'.")},Bt.$$arity=1),t.def(It,"$unpack1",Lt=function(t){var e=this;return e.$raise("To use String#unpack1, you must first require 'corelib/string/unpack'.")},Lt.$$arity=1)}(i[0],String,i),t.const_set(i[0],"Symbol",a(i,"String"))},Opal.modules["corelib/enumerable"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t/e:t["$/"](e)}function s(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}t.top;var l=[],c=t.nil,u=t.const_get_qualified,d=t.const_get_relative,f=(t.breaker,t.slice,t.module),h=t.truthy,p=t.send,$=t.falsy,m=t.hash2,g=t.lambda;return t.add_stubs(["$each","$public_send","$destructure","$to_enum","$enumerator_size","$new","$yield","$raise","$slice_when","$!","$enum_for","$flatten","$map","$warn","$proc","$==","$nil?","$respond_to?","$coerce_to!","$>","$*","$coerce_to","$try_convert","$<","$+","$-","$ceil","$/","$size","$__send__","$length","$<=","$[]","$push","$<<","$[]=","$===","$inspect","$<=>","$first","$reverse","$sort","$to_proc","$compare","$call","$dup","$to_a","$sort!","$map!","$key?","$values","$zip"]),function(l,v){var y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht=f(l,"Enumerable"),pt=[ht].concat(v);function $t(t){return 0===t.length&&(t=[c]),t.length>1&&(t=[t]),t}t.def(ht,"$all?",y=function(e){try{var n,r,i,o=y.$$p,a=o||c,s=this;return o&&(y.$$p=null),o&&(y.$$p=null),h(void 0!==e)?p(s,"each",[],(n=function(r){n.$$s;var i,o,a=c;if(i=t.slice.call(arguments,0,arguments.length),o=i,a=$t(o),h(p(e,"public_send",["==="].concat(t.to_a(a)))))return c;t.ret(!1)},n.$$s=s,n.$$arity=-1,n)):p(s,"each",[],a!==c?(r=function(e){var n,i;r.$$s;if(n=t.slice.call(arguments,0,arguments.length),i=n,h(t.yieldX(a,t.to_a(i))))return c;t.ret(!1)},r.$$s=s,r.$$arity=-1,r):(i=function(e){var n,r;i.$$s;if(n=t.slice.call(arguments,0,arguments.length),r=n,h(d(pt,"Opal").$destructure(r)))return c;t.ret(!1)},i.$$s=s,i.$$arity=-1,i)),!0}catch(l){if(l===t.returner)return l.$v;throw l}},y.$$arity=-1),t.def(ht,"$any?",_=function(e){try{var n,r,i,o=_.$$p,a=o||c,s=this;return o&&(_.$$p=null),o&&(_.$$p=null),h(void 0!==e)?p(s,"each",[],(n=function(r){n.$$s;var i,o,a=c;if(i=t.slice.call(arguments,0,arguments.length),o=i,a=$t(o),!h(p(e,"public_send",["==="].concat(t.to_a(a)))))return c;t.ret(!0)},n.$$s=s,n.$$arity=-1,n)):p(s,"each",[],a!==c?(r=function(e){var n,i;r.$$s;if(n=t.slice.call(arguments,0,arguments.length),i=n,!h(t.yieldX(a,t.to_a(i))))return c;t.ret(!0)},r.$$s=s,r.$$arity=-1,r):(i=function(e){var n,r;i.$$s;if(n=t.slice.call(arguments,0,arguments.length),r=n,!h(d(pt,"Opal").$destructure(r)))return c;t.ret(!0)},i.$$s=s,i.$$arity=-1,i)),!1}catch(l){if(l===t.returner)return l.$v;throw l}},_.$$arity=-1),t.def(ht,"$chunk",b=function(){var e,n,r=b.$$p,i=r||c,o=this;return r&&(b.$$p=null),r&&(b.$$p=null),i===c?p(o,"to_enum",["chunk"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=o,e.$$arity=0,e)):p(u("::","Enumerator"),"new",[],(n=function(e){var r=n.$$s||this;null==e&&(e=c);var o=c,a=[];function s(){a.length>0&&e.$yield(o,a)}r.$each.$$p=function(e){var n=t.yield1(i,e);n===c?(s(),a=[],o=c):(o===c||o===n?a.push(e):(s(),a=[e]),o=n)},r.$each(),s()},n.$$s=o,n.$$arity=1,n))},b.$$arity=0),t.def(ht,"$chunk_while",w=function(){var e,n=w.$$p,r=n||c,i=this;return n&&(w.$$p=null),n&&(w.$$p=null),r!==c||i.$raise(d(pt,"ArgumentError"),"no block given"),p(i,"slice_when",[],(e=function(n,i){e.$$s;return null==n&&(n=c),null==i&&(i=c),t.yieldX(r,[n,i])["$!"]()},e.$$s=i,e.$$arity=2,e))},w.$$arity=0),t.def(ht,"$collect",x=function(){var e,n=x.$$p,r=n||c,i=this;if(n&&(x.$$p=null),n&&(x.$$p=null),r===c)return p(i,"enum_for",["collect"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];return i.$each.$$p=function(){var e=t.yieldX(r,arguments);o.push(e)},i.$each(),o},x.$$arity=0),t.def(ht,"$collect_concat",k=function(){var e,n,r=k.$$p,i=r||c,o=this;return r&&(k.$$p=null),r&&(k.$$p=null),i===c?p(o,"enum_for",["collect_concat"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=o,e.$$arity=0,e)):p(o,"map",[],(n=function(e){n.$$s;return null==e&&(e=c),t.yield1(i,e)},n.$$s=o,n.$$arity=1,n)).$flatten(1)},k.$$arity=0),t.def(ht,"$count",S=function(e){var n,r,i,o=S.$$p,a=o||c,s=this,l=c;return o&&(S.$$p=null),o&&(S.$$p=null),l=0,null!=e&&a!==c&&s.$warn("warning: given block not used"),h(null!=e)?a=p(s,"proc",[],(n=function(r){var i,o;n.$$s;return i=t.slice.call(arguments,0,arguments.length),o=i,d(pt,"Opal").$destructure(o)["$=="](e)},n.$$s=s,n.$$arity=-1,n)):h(a["$nil?"]())&&(a=p(s,"proc",[],(r=function(){r.$$s;return!0},r.$$s=s,r.$$arity=0,r))),p(s,"each",[],(i=function(e){var n,r;i.$$s;return n=t.slice.call(arguments,0,arguments.length),r=n,h(t.yieldX(a,r))?l++:c},i.$$s=s,i.$$arity=-1,i)),l},S.$$arity=-1),t.def(ht,"$cycle",O=function(r){var i,o=O.$$p,a=o||c,s=this;if(o&&(O.$$p=null),o&&(O.$$p=null),null==r&&(r=c),a===c)return p(s,"enum_for",["cycle",r],(i=function(){var t=i.$$s||this;return h(r["$nil?"]())?h(t["$respond_to?"]("size"))?u(d(pt,"Float"),"INFINITY"):c:(r=d(pt,"Opal")["$coerce_to!"](r,d(pt,"Integer"),"to_int"),h(e(r,0))?n(t.$enumerator_size(),r):0)},i.$$s=s,i.$$arity=0,i));if(h(r["$nil?"]()));else if(r=d(pt,"Opal")["$coerce_to!"](r,d(pt,"Integer"),"to_int"),h(r<=0))return c;var l,f,$,m=[];if(s.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);t.yield1(a,e);m.push(e)},s.$each(),void 0!==l)return l;if(0===m.length)return c;if(r===c)while(1)for(f=0,$=m.length;f<$;f++)t.yield1(a,m[f]);else while(r>1){for(f=0,$=m.length;f<$;f++)t.yield1(a,m[f]);r--}},O.$$arity=-1),t.def(ht,"$detect",C=function(e){try{var n,r=C.$$p,i=r||c,o=this;return r&&(C.$$p=null),r&&(C.$$p=null),i===c?o.$enum_for("detect",e):(p(o,"each",[],(n=function(e){n.$$s;var r,o,a=c;if(r=t.slice.call(arguments,0,arguments.length),o=r,a=d(pt,"Opal").$destructure(o),!h(t.yield1(i,a)))return c;t.ret(a)},n.$$s=o,n.$$arity=-1,n)),void 0!==e?"function"===typeof e?e():e:c)}catch(a){if(a===t.returner)return a.$v;throw a}},C.$$arity=-1),t.def(ht,"$drop",A=function(t){var e=this;t=d(pt,"Opal").$coerce_to(t,d(pt,"Integer"),"to_int"),h(t<0)&&e.$raise(d(pt,"ArgumentError"),"attempt to drop negative size");var n=[],r=0;return e.$each.$$p=function(){t<=r&&n.push(d(pt,"Opal").$destructure(arguments)),r++},e.$each(),n},A.$$arity=1),t.def(ht,"$drop_while",E=function(){var e=E.$$p,n=e||c,r=this;if(e&&(E.$$p=null),e&&(E.$$p=null),n===c)return r.$enum_for("drop_while");var i=[],o=!0;return r.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);if(o){var r=t.yield1(n,e);$(r)&&(o=!1,i.push(e))}else i.push(e)},r.$each(),i},E.$$arity=0),t.def(ht,"$each_cons",T=function(e){var n,a=T.$$p,s=a||c,l=this;if(a&&(T.$$p=null),a&&(T.$$p=null),h(1!=arguments.length)&&l.$raise(d(pt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),e=d(pt,"Opal").$try_convert(e,d(pt,"Integer"),"to_int"),h(e<=0)&&l.$raise(d(pt,"ArgumentError"),"invalid size"),s===c)return p(l,"enum_for",["each_cons",e],(n=function(){var t,a=n.$$s||this,s=c;return s=a.$enumerator_size(),h(s["$nil?"]())?c:h(h(t=s["$=="](0))?t:r(s,e))?0:i(o(s,e),1)},n.$$s=l,n.$$arity=0,n));var u=[],f=c;return l.$each.$$p=function(){var n=d(pt,"Opal").$destructure(arguments);u.push(n),u.length>e&&u.shift(),u.length==e&&t.yield1(s,u.slice(0,e))},l.$each(),f},T.$$arity=1),t.def(ht,"$each_entry",P=function(e){var n,r,i,o=P.$$p,a=o||c,s=this;return o&&(P.$$p=null),o&&(P.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,a===c?p(s,"to_enum",["each_entry"].concat(t.to_a(r)),(i=function(){var t=i.$$s||this;return t.$enumerator_size()},i.$$s=s,i.$$arity=0,i)):(s.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);t.yield1(a,e)},s.$each.apply(s,r),s)},P.$$arity=-1),t.def(ht,"$each_slice",B=function(e){var n,r=B.$$p,i=r||c,o=this;if(r&&(B.$$p=null),r&&(B.$$p=null),e=d(pt,"Opal").$coerce_to(e,d(pt,"Integer"),"to_int"),h(e<=0)&&o.$raise(d(pt,"ArgumentError"),"invalid slice size"),i===c)return p(o,"enum_for",["each_slice",e],(n=function(){var t=n.$$s||this;return h(t["$respond_to?"]("size"))?a(t.$size(),e).$ceil():c},n.$$s=o,n.$$arity=0,n));var s,l=[];return o.$each.$$p=function(){var n=d(pt,"Opal").$destructure(arguments);l.push(n),l.length===e&&(t.yield1(i,l),l=[])},o.$each(),void 0!==s?s:(l.length>0&&t.yield1(i,l),c)},B.$$arity=1),t.def(ht,"$each_with_index",L=function(e){var n,r,i,o=L.$$p,a=o||c,s=this;if(o&&(L.$$p=null),o&&(L.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,a===c)return p(s,"enum_for",["each_with_index"].concat(t.to_a(r)),(i=function(){var t=i.$$s||this;return t.$enumerator_size()},i.$$s=s,i.$$arity=0,i));var l,u=0;return s.$each.$$p=function(){var t=d(pt,"Opal").$destructure(arguments);a(t,u),u++},s.$each.apply(s,r),void 0!==l?l:s},L.$$arity=-1),t.def(ht,"$each_with_object",I=function(t){var e,n,r=I.$$p,i=r||c,o=this;return r&&(I.$$p=null),r&&(I.$$p=null),i===c?p(o,"enum_for",["each_with_object",t],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=o,e.$$arity=0,e)):(o.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);i(e,t)},o.$each(),void 0!==n?n:t)},I.$$arity=1),t.def(ht,"$entries",D=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;var o=[];return i.$each.$$p=function(){o.push(d(pt,"Opal").$destructure(arguments))},i.$each.apply(i,r),o},D.$$arity=-1),t.alias(ht,"find","detect"),t.def(ht,"$find_all",R=function(){var e,n=R.$$p,r=n||c,i=this;if(n&&(R.$$p=null),n&&(R.$$p=null),r===c)return p(i,"enum_for",["find_all"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];return i.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(r,e);h(n)&&o.push(e)},i.$each(),o},R.$$arity=0),t.def(ht,"$find_index",j=function(e){try{var n,r,i=j.$$p,o=i||c,a=this,s=c;return i&&(j.$$p=null),i&&(j.$$p=null),h(void 0===e&&o===c)?a.$enum_for("find_index"):(null!=e&&o!==c&&a.$warn("warning: given block not used"),s=0,h(null!=e)?p(a,"each",[],(n=function(r){var i,o;n.$$s;return i=t.slice.call(arguments,0,arguments.length),o=i,d(pt,"Opal").$destructure(o)["$=="](e)&&t.ret(s),s+=1},n.$$s=a,n.$$arity=-1,n)):p(a,"each",[],(r=function(e){var n,i;r.$$s;return n=t.slice.call(arguments,0,arguments.length),i=n,h(t.yieldX(o,t.to_a(i)))&&t.ret(s),s+=1},r.$$s=a,r.$$arity=-1,r)),c)}catch(l){if(l===t.returner)return l.$v;throw l}},j.$$arity=-1),t.def(ht,"$first",M=function(e){try{var n,r,i=this,o=c,a=c;return h(void 0===e)?p(i,"each",[],(n=function(e){n.$$s;null==e&&(e=c),t.ret(e)},n.$$s=i,n.$$arity=1,n)):(o=[],e=d(pt,"Opal").$coerce_to(e,d(pt,"Integer"),"to_int"),h(e<0)&&i.$raise(d(pt,"ArgumentError"),"attempt to take negative size"),h(0==e)?[]:(a=0,p(i,"each",[],(r=function(n){var i,s;r.$$s;if(i=t.slice.call(arguments,0,arguments.length),s=i,o.push(d(pt,"Opal").$destructure(s)),!h(e<=++a))return c;t.ret(o)},r.$$s=i,r.$$arity=-1,r)),o))}catch(s){if(s===t.returner)return s.$v;throw s}},M.$$arity=-1),t.alias(ht,"flat_map","collect_concat"),t.def(ht,"$grep",F=function(n){var r,i=F.$$p,o=i||c,a=this,l=c;return i&&(F.$$p=null),i&&(F.$$p=null),l=[],p(a,"each",[],(r=function(i){r.$$s;var a,u,d=c;return a=t.slice.call(arguments,0,arguments.length),u=a,d=$t(u),h(p(n,"__send__",["==="].concat(t.to_a(d))))?(o!==c?(h(e(u.$length(),1))&&(u=[u]),u=t.yieldX(o,t.to_a(u))):h(s(u.$length(),1))&&(u=u["$[]"](0)),l.$push(u)):c},r.$$s=a,r.$$arity=-1,r)),l},F.$$arity=1),t.def(ht,"$grep_v",N=function(n){var r,i=N.$$p,o=i||c,a=this,l=c;return i&&(N.$$p=null),i&&(N.$$p=null),l=[],p(a,"each",[],(r=function(i){r.$$s;var a,u,d=c;return a=t.slice.call(arguments,0,arguments.length),u=a,d=$t(u),h(p(n,"__send__",["==="].concat(t.to_a(d))))?c:(o!==c?(h(e(u.$length(),1))&&(u=[u]),u=t.yieldX(o,t.to_a(u))):h(s(u.$length(),1))&&(u=u["$[]"](0)),l.$push(u))},r.$$s=a,r.$$arity=-1,r)),l},N.$$arity=1),t.def(ht,"$group_by",z=function(){var e,n,r,i=z.$$p,a=i||c,s=this,l=c,u=c;return i&&(z.$$p=null),i&&(z.$$p=null),a===c?p(s,"enum_for",["group_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=s,e.$$arity=0,e)):(l=m([],{}),s.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),r=t.yield1(a,e);(h(n=l["$[]"](r))?n:(u=[r,[]],p(l,"[]=",t.to_a(u)),u[o(u["length"],1)]))["$<<"](e)},s.$each(),void 0!==r?r:l)},z.$$arity=0),t.def(ht,"$include?",H=function(e){try{var n,r=this;return p(r,"each",[],(n=function(r){var i,o;n.$$s;if(i=t.slice.call(arguments,0,arguments.length),o=i,!d(pt,"Opal").$destructure(o)["$=="](e))return c;t.ret(!0)},n.$$s=r,n.$$arity=-1,n)),!1}catch(i){if(i===t.returner)return i.$v;throw i}},H.$$arity=1),t.def(ht,"$inject",V=function(e,n){var r=V.$$p,i=r||c,o=this;r&&(V.$$p=null),r&&(V.$$p=null);var a=e;return i!==c&&void 0===n?o.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);void 0!==a?(e=t.yieldX(i,[a,e]),a=e):a=e}:(void 0===n&&(d(pt,"Symbol")["$==="](e)||o.$raise(d(pt,"TypeError"),e.$inspect()+" is not a Symbol"),n=e,a=void 0),o.$each.$$p=function(){var t=d(pt,"Opal").$destructure(arguments);a=void 0!==a?a.$__send__(n,t):t}),o.$each(),void 0==a?c:a},V.$$arity=-1),t.def(ht,"$lazy",U=function(){var e,n=this;return p(u(d(pt,"Enumerator"),"Lazy"),"new",[n,n.$enumerator_size()],(e=function(n,r){var i,o;e.$$s;return null==n&&(n=c),i=t.slice.call(arguments,1,arguments.length),o=i,p(n,"yield",t.to_a(o))},e.$$s=n,e.$$arity=-2,e))},U.$$arity=0),t.def(ht,"$enumerator_size",q=function(){var t=this;return h(t["$respond_to?"]("size"))?t.$size():c},q.$$arity=0),t.alias(ht,"map","collect"),t.def(ht,"$max",W=function(e){var n,r,i=W.$$p,o=i||c,a=this;return i&&(W.$$p=null),i&&(W.$$p=null),void 0===e||e===c?(a.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments);void 0!==n?(r=o!==c?t.yieldX(o,[e,n]):e["$<=>"](n),r===c&&a.$raise(d(pt,"ArgumentError"),"comparison failed"),r>0&&(n=e)):n=e},a.$each(),void 0===n?c:n):(e=d(pt,"Opal").$coerce_to(e,d(pt,"Integer"),"to_int"),p(a,"sort",[],o.$to_proc()).$reverse().$first(e))},W.$$arity=-1),t.def(ht,"$max_by",G=function(){var e,n,r,i=G.$$p,o=i||c,a=this;return i&&(G.$$p=null),i&&(G.$$p=null),h(o)?(a.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),i=t.yield1(o,e);if(void 0===n)return n=e,void(r=i);i["$<=>"](r)>0&&(n=e,r=i)},a.$each(),void 0===n?c:n):p(a,"enum_for",["max_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=a,e.$$arity=0,e))},G.$$arity=0),t.alias(ht,"member?","include?"),t.def(ht,"$min",Y=function(){var t,e=Y.$$p,n=e||c,r=this;return e&&(Y.$$p=null),e&&(Y.$$p=null),r.$each.$$p=n!==c?function(){var e=d(pt,"Opal").$destructure(arguments);if(void 0!==t){var i=n(e,t);i===c&&r.$raise(d(pt,"ArgumentError"),"comparison failed"),i<0&&(t=e)}else t=e}:function(){var e=d(pt,"Opal").$destructure(arguments);void 0!==t?d(pt,"Opal").$compare(e,t)<0&&(t=e):t=e},r.$each(),void 0===t?c:t},Y.$$arity=0),t.def(ht,"$min_by",K=function(){var e,n,r,i=K.$$p,o=i||c,a=this;return i&&(K.$$p=null),i&&(K.$$p=null),h(o)?(a.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),i=t.yield1(o,e);if(void 0===n)return n=e,void(r=i);i["$<=>"](r)<0&&(n=e,r=i)},a.$each(),void 0===n?c:n):p(a,"enum_for",["min_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=a,e.$$arity=0,e))},K.$$arity=0),t.def(ht,"$minmax",X=function(){var t,e,n=X.$$p,r=n||c,i=this;n&&(X.$$p=null),n&&(X.$$p=null),r=h(t=r)?t:p(i,"proc",[],(e=function(t,n){e.$$s;return null==t&&(t=c),null==n&&(n=c),t["$<=>"](n)},e.$$s=i,e.$$arity=2,e));var o=c,a=c,s=!0;return i.$each.$$p=function(){var t=d(pt,"Opal").$destructure(arguments);if(s)o=a=t,s=!1;else{var e=r.$call(o,t);e===c?i.$raise(d(pt,"ArgumentError"),"comparison failed"):e>0&&(o=t);var n=r.$call(a,t);n===c?i.$raise(d(pt,"ArgumentError"),"comparison failed"):n<0&&(a=t)}},i.$each(),[o,a]},X.$$arity=0),t.def(ht,"$minmax_by",Z=function(){var t=Z.$$p,e=this;return t&&(Z.$$p=null),t&&(Z.$$p=null),e.$raise(d(pt,"NotImplementedError"))},Z.$$arity=0),t.def(ht,"$none?",J=function(e){try{var n,r,i,o=J.$$p,a=o||c,s=this;return o&&(J.$$p=null),o&&(J.$$p=null),h(void 0!==e)?p(s,"each",[],(n=function(r){n.$$s;var i,o,a=c;if(i=t.slice.call(arguments,0,arguments.length),o=i,a=$t(o),!h(p(e,"public_send",["==="].concat(t.to_a(a)))))return c;t.ret(!1)},n.$$s=s,n.$$arity=-1,n)):p(s,"each",[],a!==c?(r=function(e){var n,i;r.$$s;if(n=t.slice.call(arguments,0,arguments.length),i=n,!h(t.yieldX(a,t.to_a(i))))return c;t.ret(!1)},r.$$s=s,r.$$arity=-1,r):(i=function(e){i.$$s;var n,r,o=c;if(n=t.slice.call(arguments,0,arguments.length),r=n,o=d(pt,"Opal").$destructure(r),!h(o))return c;t.ret(!1)},i.$$s=s,i.$$arity=-1,i)),!0}catch(l){if(l===t.returner)return l.$v;throw l}},J.$$arity=-1),t.def(ht,"$one?",Q=function(n){try{var r,o,a,s=Q.$$p,l=s||c,u=this,f=c;return s&&(Q.$$p=null),s&&(Q.$$p=null),f=0,h(void 0!==n)?p(u,"each",[],(r=function(o){r.$$s;var a,s,l=c;return a=t.slice.call(arguments,0,arguments.length),s=a,l=$t(s),h(p(n,"public_send",["==="].concat(t.to_a(l))))?(f=i(f,1),h(e(f,1))?void t.ret(!1):c):c},r.$$s=u,r.$$arity=-1,r)):p(u,"each",[],l!==c?(o=function(n){var r,a;o.$$s;return r=t.slice.call(arguments,0,arguments.length),a=r,h(t.yieldX(l,t.to_a(a)))?(f=i(f,1),h(e(f,1))?void t.ret(!1):c):c},o.$$s=u,o.$$arity=-1,o):(a=function(n){var r,o;a.$$s;return r=t.slice.call(arguments,0,arguments.length),o=r,h(d(pt,"Opal").$destructure(o))?(f=i(f,1),h(e(f,1))?void t.ret(!1):c):c},a.$$s=u,a.$$arity=-1,a)),f["$=="](1)}catch($){if($===t.returner)return $.$v;throw $}},Q.$$arity=-1),t.def(ht,"$partition",tt=function(){var e,n=tt.$$p,r=n||c,i=this;if(n&&(tt.$$p=null),n&&(tt.$$p=null),r===c)return p(i,"enum_for",["partition"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[],a=[];return i.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(r,e);h(n)?o.push(e):a.push(e)},i.$each(),[o,a]},tt.$$arity=0),t.alias(ht,"reduce","inject"),t.def(ht,"$reject",et=function(){var e,n=et.$$p,r=n||c,i=this;if(n&&(et.$$p=null),n&&(et.$$p=null),r===c)return p(i,"enum_for",["reject"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];return i.$each.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(r,e);$(n)&&o.push(e)},i.$each(),o},et.$$arity=0),t.def(ht,"$reverse_each",nt=function(){var e,n=nt.$$p,r=n||c,i=this;if(n&&(nt.$$p=null),n&&(nt.$$p=null),r===c)return p(i,"enum_for",["reverse_each"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=i,e.$$arity=0,e));var o=[];i.$each.$$p=function(){o.push(arguments)},i.$each();for(var a=o.length-1;a>=0;a--)t.yieldX(r,o[a]);return o},nt.$$arity=0),t.alias(ht,"select","find_all"),t.def(ht,"$slice_before",rt=function(e){var n,r=rt.$$p,i=r||c,o=this;return r&&(rt.$$p=null),r&&(rt.$$p=null),h(void 0===e&&i===c)&&o.$raise(d(pt,"ArgumentError"),"both pattern and block are given"),h(void 0!==e&&i!==c||arguments.length>1)&&o.$raise(d(pt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),p(d(pt,"Enumerator"),"new",[],(n=function(r){var o=n.$$s||this;null==r&&(r=c);var a=[];o.$each.$$p=i!==c?void 0===e?function(){var e=d(pt,"Opal").$destructure(arguments),n=t.yield1(i,e);h(n)&&a.length>0&&(r["$<<"](a),a=[]),a.push(e)}:function(){var t=d(pt,"Opal").$destructure(arguments),n=i(t,e.$dup());h(n)&&a.length>0&&(r["$<<"](a),a=[]),a.push(t)}:function(){var t=d(pt,"Opal").$destructure(arguments),n=e["$==="](t);h(n)&&a.length>0&&(r["$<<"](a),a=[]),a.push(t)},o.$each(),a.length>0&&r["$<<"](a)},n.$$s=o,n.$$arity=1,n))},rt.$$arity=-1),t.def(ht,"$slice_after",it=function(e){var n,r,i=it.$$p,o=i||c,a=this;return i&&(it.$$p=null),i&&(it.$$p=null),h(void 0===e&&o===c)&&a.$raise(d(pt,"ArgumentError"),"both pattern and block are given"),h(void 0!==e&&o!==c||arguments.length>1)&&a.$raise(d(pt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),h(void 0!==e)&&(o=p(a,"proc",[],(n=function(t){n.$$s;return null==t&&(t=c),e["$==="](t)},n.$$s=a,n.$$arity=1,n))),p(d(pt,"Enumerator"),"new",[],(r=function(e){var n,i=r.$$s||this;null==e&&(e=c),i.$each.$$p=function(){var r=d(pt,"Opal").$destructure(arguments),i=t.yield1(o,r);null==n&&(n=[]),h(i)?(n.push(r),e.$yield(n),n=null):n.push(r)},i.$each(),null!=n&&e.$yield(n)},r.$$s=a,r.$$arity=1,r))},it.$$arity=-1),t.def(ht,"$slice_when",ot=function(){var e,n=ot.$$p,r=n||c,i=this;return n&&(ot.$$p=null),n&&(ot.$$p=null),r!==c||i.$raise(d(pt,"ArgumentError"),"wrong number of arguments (0 for 1)"),p(d(pt,"Enumerator"),"new",[],(e=function(n){var i=e.$$s||this;null==n&&(n=c);var o=c,a=c;i.$each_cons.$$p=function(){var e=d(pt,"Opal").$destructure(arguments),i=e[0],s=e[1],l=t.yieldX(r,[i,s]);a=s,o===c&&(o=[]),h(l)?(o.push(i),n.$yield(o),o=[]):o.push(i)},i.$each_cons(2),o!==c&&(o.push(a),n.$yield(o))},e.$$s=i,e.$$arity=1,e))},ot.$$arity=0),t.def(ht,"$sort",at=function(){var t,e=at.$$p,n=e||c,r=this,i=c;return e&&(at.$$p=null),e&&(at.$$p=null),i=r.$to_a(),n!==c||(n=g((t=function(e,n){t.$$s;return null==e&&(e=c),null==n&&(n=c),e["$<=>"](n)},t.$$s=r,t.$$arity=2,t))),p(i,"sort",[],n.$to_proc())},at.$$arity=0),t.def(ht,"$sort_by",st=function(){var e,n,r,i,o=st.$$p,a=o||c,s=this,l=c;return o&&(st.$$p=null),o&&(st.$$p=null),a===c?p(s,"enum_for",["sort_by"],(e=function(){var t=e.$$s||this;return t.$enumerator_size()},e.$$s=s,e.$$arity=0,e)):(l=p(s,"map",[],(n=function(){n.$$s;var e=c;return e=d(pt,"Opal").$destructure(arguments),[t.yield1(a,e),e]},n.$$s=s,n.$$arity=0,n)),p(l,"sort!",[],(r=function(t,e){r.$$s;return null==t&&(t=c),null==e&&(e=c),t[0]["$<=>"](e[0])},r.$$s=s,r.$$arity=2,r)),p(l,"map!",[],(i=function(t){i.$$s;return null==t&&(t=c),t[1]},i.$$s=s,i.$$arity=1,i)))},st.$$arity=0),t.def(ht,"$sum",lt=function(e){var n,r=lt.$$p,o=r||c,a=this,s=c;return r&&(lt.$$p=null),null==e&&(e=0),s=e,p(a,"each",[],(n=function(e){n.$$s;var r,a,l=c;return r=t.slice.call(arguments,0,arguments.length),a=r,l=function(){return o!==c?t.yieldX(o,t.to_a(a)):d(pt,"Opal").$destructure(a)}(),s=i(s,l)},n.$$s=a,n.$$arity=-1,n)),s},lt.$$arity=-1),t.def(ht,"$take",ct=function(t){var e=this;return e.$first(t)},ct.$$arity=1),t.def(ht,"$take_while",ut=function(){try{var e,n=ut.$$p,r=n||c,i=this,o=c;return n&&(ut.$$p=null),n&&(ut.$$p=null),h(r)?(o=[],p(i,"each",[],(e=function(n){e.$$s;var i,a,s=c;return i=t.slice.call(arguments,0,arguments.length),a=i,s=d(pt,"Opal").$destructure(a),h(t.yield1(r,s))||t.ret(o),o.push(s)},e.$$s=i,e.$$arity=-1,e))):i.$enum_for("take_while")}catch(a){if(a===t.returner)return a.$v;throw a}},ut.$$arity=0),t.def(ht,"$uniq",dt=function(){var e,n=dt.$$p,r=n||c,i=this,a=c;return n&&(dt.$$p=null),n&&(dt.$$p=null),a=m([],{}),p(i,"each",[],(e=function(n){e.$$s;var i,s,l=c,u=c,f=c;return i=t.slice.call(arguments,0,arguments.length),s=i,l=d(pt,"Opal").$destructure(s),u=function(){return r!==c?t.yield1(r,l):l}(),h(a["$key?"](u))?c:(f=[u,l],p(a,"[]=",t.to_a(f)),f[o(f["length"],1)])},e.$$s=i,e.$$arity=-1,e)),a.$values()},dt.$$arity=0),t.alias(ht,"to_a","entries"),t.def(ht,"$zip",ft=function(e){var n,r,i=ft.$$p,o=this;return i&&(ft.$$p=null),i&&(ft.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,p(o.$to_a(),"zip",t.to_a(r))},ft.$$arity=-1)}(l[0],l)},Opal.modules["corelib/enumerator"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}var r=t.top,i=[],o=t.nil,a=(t.const_get_qualified,t.const_get_relative),s=t.breaker,l=t.slice,c=t.klass,u=t.truthy,d=t.send,f=t.falsy;return t.add_stubs(["$require","$include","$allocate","$new","$to_proc","$coerce_to","$nil?","$empty?","$+","$class","$__send__","$===","$call","$enum_for","$size","$destructure","$inspect","$any?","$[]","$raise","$yield","$each","$enumerator_size","$respond_to?","$try_convert","$<","$for"]),r.$require("corelib/enumerable"),function(r,i,h){var p,$,m,g,v,y,_=c(r,i,"Enumerator"),b=[_].concat(h);return _.$$prototype.size=_.$$prototype.args=_.$$prototype.object=_.$$prototype.method=o,_.$include(a(b,"Enumerable")),_.$$prototype.$$is_enumerator=!0,t.defs(_,"$for",p=function(e,n,r){var i,a,s,l=p.$$p,c=l||o,u=this;l&&(p.$$p=null),l&&(p.$$p=null),i=t.slice.call(arguments,1,arguments.length),i.length>0&&(a=i[0],i.splice(0,1)),null==a&&(a="each"),s=i;var d=u.$allocate();return d.object=e,d.size=c,d.method=a,d.args=s,d},p.$$arity=-2),t.def(_,"$initialize",$=function(e){var n=$.$$p,r=n||o,i=this;return n&&($.$$p=null),n&&($.$$p=null),t.slice.call(arguments,0,arguments.length),u(r)?(i.object=d(a(b,"Generator"),"new",[],r.$to_proc()),i.method="each",i.args=[],i.size=arguments[0]||o,u(i.size)?i.size=a(b,"Opal").$coerce_to(i.size,a(b,"Integer"),"to_int"):o):(i.object=arguments[0],i.method=arguments[1]||"each",i.args=l.call(arguments,2),i.size=o)},$.$$arity=-1),t.def(_,"$each",m=function(n){var r,i,a,s=m.$$p,l=s||o,c=this;return s&&(m.$$p=null),s&&(m.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,u(u(a=l["$nil?"]())?i["$empty?"]():a)?c:(i=e(c.args,i),u(l["$nil?"]())?d(c.$class(),"new",[c.object,c.method].concat(t.to_a(i))):d(c.object,"__send__",[c.method].concat(t.to_a(i)),l.$to_proc()))},m.$$arity=-1),t.def(_,"$size",g=function(){var e=this;return u(a(b,"Proc")["$==="](e.size))?d(e.size,"call",t.to_a(e.args)):e.size},g.$$arity=0),t.def(_,"$with_index",v=function(t){var e,n=v.$$p,r=n||o,i=this;if(n&&(v.$$p=null),n&&(v.$$p=null),null==t&&(t=0),t=function(){return u(t)?a(b,"Opal").$coerce_to(t,a(b,"Integer"),"to_int"):0}(),!u(r))return d(i,"enum_for",["with_index",t],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));var s=t;return i.$each.$$p=function(){var t=a(b,"Opal").$destructure(arguments),e=r(t,s);return s++,e},i.$each()},v.$$arity=-1),t.alias(_,"with_object","each_with_object"),t.def(_,"$inspect",y=function(){var t=this,n=o;return n="#<"+t.$class()+": "+t.object.$inspect()+":"+t.method,u(t.args["$any?"]())&&(n=e(n,"("+t.args.$inspect()["$[]"](a(b,"Range").$new(1,-2))+")")),e(n,">")},y.$$arity=0),function(e,n,r){var i,l,f=c(e,n,"Generator"),h=[f].concat(r);f.$$prototype.block=o,f.$include(a(h,"Enumerable")),t.def(f,"$initialize",i=function(){var t=i.$$p,e=t||o,n=this;return t&&(i.$$p=null),t&&(i.$$p=null),u(e)||n.$raise(a(h,"LocalJumpError"),"no block given"),n.block=e},i.$$arity=0),t.def(f,"$each",l=function(e){var n,r,i=l.$$p,c=i||o,u=this,f=o;i&&(l.$$p=null),i&&(l.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,f=d(a(h,"Yielder"),"new",[],c.$to_proc());try{r.unshift(f),t.yieldX(u.block,r)}catch(p){if(p===s)return s.$v;throw p}return u},l.$$arity=-1)}(b[0],null,b),function(e,n,r){var i,a,l,u=c(e,n,"Yielder");[u].concat(r);u.$$prototype.block=o,t.def(u,"$initialize",i=function(){var t=i.$$p,e=t||o,n=this;return t&&(i.$$p=null),t&&(i.$$p=null),n.block=e},i.$$arity=0),t.def(u,"$yield",a=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;var o=t.yieldX(i.block,r);if(o===s)throw s;return o},a.$$arity=-1),t.def(u,"$<<",l=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,d(i,"yield",t.to_a(r)),i},l.$$arity=-1)}(b[0],null,b),function(r,i,s){var l,h,p,$,m,g,v,y,_,b,w,x,k,S=c(r,i,"Lazy"),O=[S].concat(s);return S.$$prototype.enumerator=o,function(t,e,n){var r=c(t,e,"StopLazyError");[r].concat(n)}(O[0],a(O,"Exception"),O),t.def(S,"$initialize",l=function(e,n){var r,i=l.$$p,s=i||o,c=this;return i&&(l.$$p=null),i&&(l.$$p=null),null==n&&(n=o),s!==o||c.$raise(a(O,"ArgumentError"),"tried to call lazy new without a block"),c.enumerator=e,d(c,t.find_super_dispatcher(c,"initialize",l,!1),[n],(r=function(n,i){var l,c,u,f=r.$$s||this;null==n&&(n=o),l=t.slice.call(arguments,1,arguments.length),c=l;try{return d(e,"each",t.to_a(c),(u=function(e){var r,i;u.$$s;r=t.slice.call(arguments,0,arguments.length),i=r,i.unshift(n),t.yieldX(s,i)},u.$$s=f,u.$$arity=-1,u))}catch(h){if(!t.rescue(h,[a(O,"Exception")]))throw h;try{return o}finally{t.pop_exception()}}},r.$$s=c,r.$$arity=-2,r))},l.$$arity=-2),t.alias(S,"force","to_a"),t.def(S,"$lazy",h=function(){var t=this;return t},h.$$arity=0),t.def(S,"$collect",p=function(){var e,n=p.$$p,r=n||o,i=this;return n&&(p.$$p=null),n&&(p.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy map without a block"),d(a(O,"Lazy"),"new",[i,i.$enumerator_size()],(e=function(n,i){var a,s;e.$$s;null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),s=a;var l=t.yieldX(r,s);n.$yield(l)},e.$$s=i,e.$$arity=-2,e))},p.$$arity=0),t.def(S,"$collect_concat",$=function(){var e,n=$.$$p,r=n||o,i=this;return n&&($.$$p=null),n&&($.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy map without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var s,l,c,u,f=e.$$s||this;null==n&&(n=o),s=t.slice.call(arguments,1,arguments.length),l=s;var h=t.yieldX(r,l);if(h["$respond_to?"]("force")&&h["$respond_to?"]("each"))d(h,"each",[],(c=function(t){c.$$s;return null==t&&(t=o),n.$yield(t)},c.$$s=f,c.$$arity=1,c));else{var p=a(O,"Opal").$try_convert(h,a(O,"Array"),"to_ary");p===o?n.$yield(h):d(h,"each",[],(u=function(t){u.$$s;return null==t&&(t=o),n.$yield(t)},u.$$s=f,u.$$arity=1,u))}},e.$$s=i,e.$$arity=-2,e))},$.$$arity=0),t.def(S,"$drop",m=function(r){var i,s=this,l=o,c=o,f=o;return r=a(O,"Opal").$coerce_to(r,a(O,"Integer"),"to_int"),u(n(r,0))&&s.$raise(a(O,"ArgumentError"),"attempt to drop negative size"),l=s.$enumerator_size(),c=function(){return u(a(O,"Integer")["$==="](l))&&u(n(r,l))?r:l}(),f=0,d(a(O,"Lazy"),"new",[s,c],(i=function(a,s){var l,c;i.$$s;return null==a&&(a=o),l=t.slice.call(arguments,1,arguments.length),c=l,u(n(f,r))?f=e(f,1):d(a,"yield",t.to_a(c))},i.$$s=s,i.$$arity=-2,i))},m.$$arity=1),t.def(S,"$drop_while",g=function(){var e,n=g.$$p,r=n||o,i=this,s=o;return n&&(g.$$p=null),n&&(g.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy drop_while without a block"),s=!0,d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var a,l;e.$$s;if(null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),l=a,!u(s))return d(n,"yield",t.to_a(l));var c=t.yieldX(r,l);f(c)&&(s=!1,d(n,"yield",t.to_a(l)))},e.$$s=i,e.$$arity=-2,e))},g.$$arity=0),t.def(S,"$enum_for",v=function(e,n){var r,i,a,s=v.$$p,l=s||o,c=this;return s&&(v.$$p=null),s&&(v.$$p=null),r=t.slice.call(arguments,0,arguments.length),r.length>0&&(i=r[0],r.splice(0,1)),null==i&&(i="each"),a=r,d(c.$class(),"for",[c,i].concat(t.to_a(a)),l.$to_proc())},v.$$arity=-1),t.def(S,"$find_all",y=function(){var e,n=y.$$p,r=n||o,i=this;return n&&(y.$$p=null),n&&(y.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy select without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var a,s;e.$$s;null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),s=a;var l=t.yieldX(r,s);u(l)&&d(n,"yield",t.to_a(s))},e.$$s=i,e.$$arity=-2,e))},y.$$arity=0),t.alias(S,"flat_map","collect_concat"),t.def(S,"$grep",_=function(e){var n,r,i=_.$$p,s=i||o,l=this;return i&&(_.$$p=null),i&&(_.$$p=null),u(s)?d(a(O,"Lazy"),"new",[l,o],(n=function(r,i){var l,c;n.$$s;null==r&&(r=o),l=t.slice.call(arguments,1,arguments.length),c=l;var d=a(O,"Opal").$destructure(c),f=e["$==="](d);u(f)&&(f=t.yield1(s,d),r.$yield(t.yield1(s,d)))},n.$$s=l,n.$$arity=-2,n)):d(a(O,"Lazy"),"new",[l,o],(r=function(n,i){var s,l;r.$$s;null==n&&(n=o),s=t.slice.call(arguments,1,arguments.length),l=s;var c=a(O,"Opal").$destructure(l),d=e["$==="](c);u(d)&&n.$yield(c)},r.$$s=l,r.$$arity=-2,r))},_.$$arity=1),t.alias(S,"map","collect"),t.alias(S,"select","find_all"),t.def(S,"$reject",b=function(){var e,n=b.$$p,r=n||o,i=this;return n&&(b.$$p=null),n&&(b.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy reject without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var a,s;e.$$s;null==n&&(n=o),a=t.slice.call(arguments,1,arguments.length),s=a;var l=t.yieldX(r,s);f(l)&&d(n,"yield",t.to_a(s))},e.$$s=i,e.$$arity=-2,e))},b.$$arity=0),t.def(S,"$take",w=function(r){var i,s=this,l=o,c=o,f=o;return r=a(O,"Opal").$coerce_to(r,a(O,"Integer"),"to_int"),u(n(r,0))&&s.$raise(a(O,"ArgumentError"),"attempt to take negative size"),l=s.$enumerator_size(),c=function(){return u(a(O,"Integer")["$==="](l))&&u(n(r,l))?r:l}(),f=0,d(a(O,"Lazy"),"new",[s,c],(i=function(s,l){var c,h,p=i.$$s||this;return null==s&&(s=o),c=t.slice.call(arguments,1,arguments.length),h=c,u(n(f,r))?(d(s,"yield",t.to_a(h)),f=e(f,1)):p.$raise(a(O,"StopLazyError"))},i.$$s=s,i.$$arity=-2,i))},w.$$arity=1),t.def(S,"$take_while",x=function(){var e,n=x.$$p,r=n||o,i=this;return n&&(x.$$p=null),n&&(x.$$p=null),u(r)||i.$raise(a(O,"ArgumentError"),"tried to call lazy take_while without a block"),d(a(O,"Lazy"),"new",[i,o],(e=function(n,i){var s,l,c=e.$$s||this;null==n&&(n=o),s=t.slice.call(arguments,1,arguments.length),l=s;var f=t.yieldX(r,l);u(f)?d(n,"yield",t.to_a(l)):c.$raise(a(O,"StopLazyError"))},e.$$s=i,e.$$arity=-2,e))},x.$$arity=0),t.alias(S,"to_enum","enum_for"),t.def(S,"$inspect",k=function(){var t=this;return"#<"+t.$class()+": "+t.enumerator.$inspect()+">"},k.$$arity=0),o&&"inspect"}(b[0],_,b)}(i[0],null,i)},Opal.modules["corelib/numeric"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t/e:t["$/"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}var a=t.top,s=[],l=t.nil,c=t.const_get_qualified,u=t.const_get_relative,d=(t.breaker,t.slice,t.klass),f=t.truthy,h=t.hash2;return t.add_stubs(["$require","$include","$instance_of?","$class","$Float","$respond_to?","$coerce","$__send__","$===","$raise","$equal?","$-","$*","$div","$<","$-@","$ceil","$to_f","$denominator","$to_r","$==","$floor","$/","$%","$Complex","$zero?","$numerator","$abs","$arg","$coerce_to!","$round","$to_i","$truncate","$>"]),a.$require("corelib/comparable"),function(a,s,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J=d(a,s,"Numeric"),Q=[J].concat(p);return J.$include(u(Q,"Comparable")),t.def(J,"$coerce",$=function(t){var e=this;return f(t["$instance_of?"](e.$class()))?[t,e]:[e.$Float(t),e.$Float(e)]},$.$$arity=1),t.def(J,"$__coerced__",m=function(e,n){var r,i,o=this,a=l,s=l,c=l;return f(n["$respond_to?"]("coerce"))?(i=n.$coerce(o),r=t.to_ary(i),a=null==r[0]?l:r[0],s=null==r[1]?l:r[1],a.$__send__(e,s)):function(){return c=e,"+"["$==="](c)||"-"["$==="](c)||"*"["$==="](c)||"/"["$==="](c)||"%"["$==="](c)||"&"["$==="](c)||"|"["$==="](c)||"^"["$==="](c)||"**"["$==="](c)?o.$raise(u(Q,"TypeError"),n.$class()+" can't be coerced into Numeric"):">"["$==="](c)||">="["$==="](c)||"<"["$==="](c)||"<="["$==="](c)||"<=>"["$==="](c)?o.$raise(u(Q,"ArgumentError"),"comparison of "+o.$class()+" with "+n.$class()+" failed"):l}()},m.$$arity=2),t.def(J,"$<=>",g=function(t){var e=this;return f(e["$equal?"](t))?0:l},g.$$arity=1),t.def(J,"$+@",v=function(){var t=this;return t},v.$$arity=0),t.def(J,"$-@",y=function(){var t=this;return e(0,t)},y.$$arity=0),t.def(J,"$%",_=function(t){var r=this;return e(r,n(t,r.$div(t)))},_.$$arity=1),t.def(J,"$abs",b=function(){var t=this;return r(t,0)?t["$-@"]():t},b.$$arity=0),t.def(J,"$abs2",w=function(){var t=this;return n(t,t)},w.$$arity=0),t.def(J,"$angle",x=function(){var t=this;return r(t,0)?c(u(Q,"Math"),"PI"):0},x.$$arity=0),t.alias(J,"arg","angle"),t.def(J,"$ceil",k=function(t){var e=this;return null==t&&(t=0),e.$to_f().$ceil(t)},k.$$arity=-1),t.def(J,"$conj",S=function(){var t=this;return t},S.$$arity=0),t.alias(J,"conjugate","conj"),t.def(J,"$denominator",O=function(){var t=this;return t.$to_r().$denominator()},O.$$arity=0),t.def(J,"$div",C=function(t){var e=this;return t["$=="](0)&&e.$raise(u(Q,"ZeroDivisionError"),"divided by o"),i(e,t).$floor()},C.$$arity=1),t.def(J,"$divmod",A=function(t){var e=this;return[e.$div(t),e["$%"](t)]},A.$$arity=1),t.def(J,"$fdiv",E=function(t){var e=this;return i(e.$to_f(),t)},E.$$arity=1),t.def(J,"$floor",T=function(t){var e=this;return null==t&&(t=0),e.$to_f().$floor(t)},T.$$arity=-1),t.def(J,"$i",P=function(){var t=this;return t.$Complex(0,t)},P.$$arity=0),t.def(J,"$imag",B=function(){return 0},B.$$arity=0),t.alias(J,"imaginary","imag"),t.def(J,"$integer?",L=function(){return!1},L.$$arity=0),t.alias(J,"magnitude","abs"),t.alias(J,"modulo","%"),t.def(J,"$nonzero?",I=function(){var t=this;return f(t["$zero?"]())?l:t},I.$$arity=0),t.def(J,"$numerator",D=function(){var t=this;return t.$to_r().$numerator()},D.$$arity=0),t.alias(J,"phase","arg"),t.def(J,"$polar",R=function(){var t=this;return[t.$abs(),t.$arg()]},R.$$arity=0),t.def(J,"$quo",j=function(t){var e=this;return i(u(Q,"Opal")["$coerce_to!"](e,u(Q,"Rational"),"to_r"),t)},j.$$arity=1),t.def(J,"$real",M=function(){var t=this;return t},M.$$arity=0),t.def(J,"$real?",F=function(){return!0},F.$$arity=0),t.def(J,"$rect",N=function(){var t=this;return[t,0]},N.$$arity=0),t.alias(J,"rectangular","rect"),t.def(J,"$round",z=function(t){var e=this;return e.$to_f().$round(t)},z.$$arity=-1),t.def(J,"$to_c",H=function(){var t=this;return t.$Complex(t,0)},H.$$arity=0),t.def(J,"$to_int",V=function(){var t=this;return t.$to_i()},V.$$arity=0),t.def(J,"$truncate",U=function(t){var e=this;return null==t&&(t=0),e.$to_f().$truncate(t)},U.$$arity=-1),t.def(J,"$zero?",q=function(){var t=this;return t["$=="](0)},q.$$arity=0),t.def(J,"$positive?",W=function(){var t=this;return o(t,0)},W.$$arity=0),t.def(J,"$negative?",G=function(){var t=this;return r(t,0)},G.$$arity=0),t.def(J,"$dup",Y=function(){var t=this;return t},Y.$$arity=0),t.def(J,"$clone",K=function(e){var n,r=this;if(null==e)e=h([],{});else if(!e.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return n=e.$$smap["freeze"],null==n&&(n=!0),r},K.$$arity=-1),t.def(J,"$finite?",X=function(){return!0},X.$$arity=0),t.def(J,"$infinite?",Z=function(){return l},Z.$$arity=0),l&&"infinite?"}(s[0],null,s)},Opal.modules["corelib/array"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}var a=t.top,s=[],l=t.nil,c=t.const_get_qualified,u=t.const_get_relative,d=(t.breaker,t.slice,t.klass),f=t.truthy,h=t.hash2,p=t.send,$=t.gvars;return t.add_stubs(["$require","$include","$to_a","$warn","$raise","$replace","$respond_to?","$to_ary","$coerce_to","$coerce_to?","$===","$join","$to_str","$class","$hash","$<=>","$==","$object_id","$inspect","$enum_for","$bsearch_index","$to_proc","$nil?","$coerce_to!","$>","$*","$enumerator_size","$empty?","$size","$map","$equal?","$dup","$each","$[]","$dig","$eql?","$length","$begin","$end","$exclude_end?","$flatten","$__id__","$to_s","$new","$max","$min","$!","$>=","$**","$delete_if","$reverse","$rotate","$rand","$at","$keep_if","$shuffle!","$<","$sort","$sort_by","$!=","$times","$[]=","$-","$<<","$values","$is_a?","$last","$first","$upto","$reject","$pristine","$singleton_class"]),a.$require("corelib/enumerable"),a.$require("corelib/numeric"),function(a,s,m){var g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt,kt,St,Ot,Ct,At,Et,Tt,Pt,Bt,Lt,It,Dt,Rt,jt,Mt,Ft,Nt,zt,Ht,Vt,Ut,qt,Wt,Gt,Yt,Kt,Xt,Zt,Jt,Qt,te,ee,ne=d(a,s,"Array"),re=[ne].concat(m);function ie(e,n){return n.$$name===t.Array?e:n.$allocate().$replace(e.$to_a())}function oe(e,n){var r,i,o,a,s=e.length;return r=n.excl,i=t.Opal.$coerce_to(n.begin,t.Integer,"to_int"),o=t.Opal.$coerce_to(n.end,t.Integer,"to_int"),i<0&&(i+=s,i<0)||i>s?l:o<0&&(o+=s,o<0)?[]:(r||(o+=1),a=e.slice(i,o),ie(a,e.$class()))}function ae(e,n,r){var i,o=e.length;return n=t.Opal.$coerce_to(n,t.Integer,"to_int"),n<0&&(n+=o,n<0)?l:void 0===r?n>=o||n<0?l:e[n]:(r=t.Opal.$coerce_to(r,t.Integer,"to_int"),r<0||n>o||n<0?l:(i=e.slice(n,n+r),ie(i,e.$class())))}function se(t,e){return t===e||0===e?1:e>0&&t>e?se(t-1,e-1)+se(t-1,e):0}function le(t,e){var n=e>=0?1:0;while(e)n*=t,t--,e--;return n}return ne.$include(u(re,"Enumerable")),t.defineProperty(ne.$$prototype,"$$is_array",!0),t.defs(ne,"$[]",g=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,ie(r,i)},g.$$arity=-1),t.def(ne,"$initialize",v=function(t,e){var n,r,i=v.$$p,o=i||l,a=this;if(i&&(v.$$p=null),i&&(v.$$p=null),null==t&&(t=l),null==e&&(e=l),e!==l&&o!==l&&a.$warn("warning: block supersedes default value argument"),t>c(u(re,"Integer"),"MAX")&&a.$raise(u(re,"ArgumentError"),"array size too big"),arguments.length>2&&a.$raise(u(re,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)"),0===arguments.length)return a.splice(0,a.length),a;if(1===arguments.length){if(t.$$is_array)return a.$replace(t.$to_a()),a;if(t["$respond_to?"]("to_ary"))return a.$replace(t.$to_ary()),a}if(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),t<0&&a.$raise(u(re,"ArgumentError"),"negative array size"),a.splice(0,a.length),o===l)for(n=0;n<t;n++)a.push(e);else for(n=0,r;n<t;n++)r=o(n),a[n]=r;return a},v.$$arity=-1),t.defs(ne,"$try_convert",y=function(t){return u(re,"Opal")["$coerce_to?"](t,u(re,"Array"),"to_ary")},y.$$arity=1),t.def(ne,"$&",_=function(e){var n=this;e=function(){return f(u(re,"Array")["$==="](e))?e.$to_a():u(re,"Opal").$coerce_to(e,u(re,"Array"),"to_ary").$to_a()}();var r,i,o,a=[],s=h([],{});for(r=0,i=e.length;r<i;r++)t.hash_put(s,e[r],!0);for(r=0,i=n.length;r<i;r++)o=n[r],void 0!==t.hash_delete(s,o)&&a.push(o);return a},_.$$arity=1),t.def(ne,"$|",b=function(e){var n=this;e=function(){return f(u(re,"Array")["$==="](e))?e.$to_a():u(re,"Opal").$coerce_to(e,u(re,"Array"),"to_ary").$to_a()}();var r,i,o=h([],{});for(r=0,i=n.length;r<i;r++)t.hash_put(o,n[r],!0);for(r=0,i=e.length;r<i;r++)t.hash_put(o,e[r],!0);return o.$keys()},b.$$arity=1),t.def(ne,"$*",w=function(t){var e=this;if(f(t["$respond_to?"]("to_str")))return e.$join(t.$to_str());t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),f(t<0)&&e.$raise(u(re,"ArgumentError"),"negative argument");for(var n=[],r=e.$to_a(),i=0;i<t;i++)n=n.concat(r);return ie(n,e.$class())},w.$$arity=1),t.def(ne,"$+",x=function(t){var e=this;return t=function(){return f(u(re,"Array")["$==="](t))?t.$to_a():u(re,"Opal").$coerce_to(t,u(re,"Array"),"to_ary").$to_a()}(),e.concat(t)},x.$$arity=1),t.def(ne,"$-",k=function(e){var n=this;if(e=function(){return f(u(re,"Array")["$==="](e))?e.$to_a():u(re,"Opal").$coerce_to(e,u(re,"Array"),"to_ary").$to_a()}(),f(0===n.length))return[];if(f(0===e.length))return n.slice();var r,i,o,a=[],s=h([],{});for(r=0,i=e.length;r<i;r++)t.hash_put(s,e[r],!0);for(r=0,i=n.length;r<i;r++)o=n[r],void 0===t.hash_get(s,o)&&a.push(o);return a},k.$$arity=1),t.def(ne,"$<<",S=function(t){var e=this;return e.push(t),e},S.$$arity=1),t.def(ne,"$<=>",O=function(t){var e=this;if(f(u(re,"Array")["$==="](t)))t=t.$to_a();else{if(!f(t["$respond_to?"]("to_ary")))return l;t=t.$to_ary().$to_a()}if(e.$hash()===t.$hash())return 0;for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e[r]["$<=>"](t[r]);if(0!==i)return i}return e.length["$<=>"](t.length)},O.$$arity=1),t.def(ne,"$==",C=function(t){var e=this,n={};function r(t,e){var i,o,a,s;if(t===e)return!0;if(!e.$$is_array)return!!u(re,"Opal")["$respond_to?"](e,"to_ary")&&e["$=="](t);if(t.$$constructor!==Array&&(t=t.$to_a()),e.$$constructor!==Array&&(e=e.$to_a()),t.length!==e.length)return!1;for(n[t.$object_id()]=!0,i=0,o=t.length;i<o;i++)if(a=t[i],s=e[i],a.$$is_array){if(s.$$is_array&&s.length!==a.length)return!1;if(!n.hasOwnProperty(a.$object_id())&&!r(a,s))return!1}else if(!a["$=="](s))return!1;return!0}return r(e,t)},C.$$arity=1),t.def(ne,"$[]",A=function(t,e){var n=this;return t.$$is_range?oe(n,t):ae(n,t,e)},A.$$arity=-2),t.def(ne,"$[]=",E=function(t,e,n){var r,i,o=this,a=l,s=l,c=o.length;if(f(u(re,"Range")["$==="](t))){a=function(){return f(u(re,"Array")["$==="](e))?e.$to_a():f(e["$respond_to?"]("to_ary"))?e.$to_ary().$to_a():[e]}();var d=t.excl,h=u(re,"Opal").$coerce_to(t.begin,u(re,"Integer"),"to_int"),p=u(re,"Opal").$coerce_to(t.end,u(re,"Integer"),"to_int");if(h<0&&(h+=c,h<0&&o.$raise(u(re,"RangeError"),t.$inspect()+" out of range")),p<0&&(p+=c),d||(p+=1),h>c)for(r=c;r<h;r++)o[r]=l;return p<0?o.splice.apply(o,[h,0].concat(a)):o.splice.apply(o,[h,p-h].concat(a)),e}if(f(void 0===n)?s=1:(s=e,e=n,a=function(){return f(u(re,"Array")["$==="](e))?e.$to_a():f(e["$respond_to?"]("to_ary"))?e.$to_ary().$to_a():[e]}()),t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),s=u(re,"Opal").$coerce_to(s,u(re,"Integer"),"to_int"),t<0&&(i=t,t+=c,t<0&&o.$raise(u(re,"IndexError"),"index "+i+" too small for array; minimum "+-o.length)),s<0&&o.$raise(u(re,"IndexError"),"negative length ("+s+")"),t>c)for(r=c;r<t;r++)o[r]=l;return void 0===n?o[t]=e:o.splice.apply(o,[t,s].concat(a)),e},E.$$arity=-3),t.def(ne,"$any?",T=function(e){var n=T.$$p,r=this,i=l,o=l,a=l;for(n&&(T.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return n&&(T.$$p=null),0!==r.length&&p(r,t.find_super_dispatcher(r,"any?",T,!1),i,n)},T.$$arity=-1),t.def(ne,"$assoc",P=function(t){for(var e,n=this,r=0,i=n.length;r<i;r++)if(e=n[r],e.length&&e[0]["$=="](t))return e;return l},P.$$arity=1),t.def(ne,"$at",B=function(t){var e=this;return t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),t<0&&(t+=e.length),t<0||t>=e.length?l:e[t]},B.$$arity=1),t.def(ne,"$bsearch_index",L=function(){var e=L.$$p,n=e||l,r=this;if(e&&(L.$$p=null),e&&(L.$$p=null),n===l)return r.$enum_for("bsearch_index");var i,o,a,s=0,c=r.length,d=!1,f=l;while(s<c){if(i=s+Math.floor((c-s)/2),o=r[i],a=t.yield1(n,o),!0===a)f=i,d=!0;else if(!1===a||a===l)d=!1;else if(a.$$is_number){if(0===a)return i;d=a<0}else r.$raise(u(re,"TypeError"),"wrong argument type "+a.$class()+" (must be numeric, true, false or nil)");d?c=i:s=i+1}return f},L.$$arity=0),t.def(ne,"$bsearch",I=function(){var t=I.$$p,e=t||l,n=this,r=l;return t&&(I.$$p=null),t&&(I.$$p=null),e===l?n.$enum_for("bsearch"):(r=p(n,"bsearch_index",[],e.$to_proc()),null!=r&&r.$$is_number?n[r]:r)},I.$$arity=0),t.def(ne,"$cycle",D=function(r){var i,o,a,s,d=D.$$p,h=d||l,$=this;if(d&&(D.$$p=null),d&&(D.$$p=null),null==r&&(r=l),h===l)return p($,"enum_for",["cycle",r],(i=function(){var t=i.$$s||this;return f(r["$nil?"]())?c(u(re,"Float"),"INFINITY"):(r=u(re,"Opal")["$coerce_to!"](r,u(re,"Integer"),"to_int"),f(e(r,0))?n(t.$enumerator_size(),r):0)},i.$$s=$,i.$$arity=0,i));if(f(f(o=$["$empty?"]())?o:r["$=="](0)))return l;if(r===l)while(1)for(a=0,s=$.length;a<s;a++)t.yield1(h,$[a]);else{if(r=u(re,"Opal")["$coerce_to!"](r,u(re,"Integer"),"to_int"),r<=0)return $;while(r>0){for(a=0,s=$.length;a<s;a++)t.yield1(h,$[a]);r--}}return $},D.$$arity=-1),t.def(ne,"$clear",R=function(){var t=this;return t.splice(0,t.length),t},R.$$arity=0),t.def(ne,"$count",j=function(e){var n,r=j.$$p,i=r||l,o=this,a=l,s=l,c=l;for(r&&(j.$$p=null),s=0,c=arguments.length,a=new Array(c);s<c;s++)a[s]=arguments[s];return r&&(j.$$p=null),null==e&&(e=l),f(f(n=e)?n:i)?p(o,t.find_super_dispatcher(o,"count",j,!1),a,r):o.$size()},j.$$arity=-1),t.def(ne,"$initialize_copy",M=function(t){var e=this;return e.$replace(t)},M.$$arity=1),t.def(ne,"$collect",F=function(){var e,n=F.$$p,r=n||l,i=this;if(n&&(F.$$p=null),n&&(F.$$p=null),r===l)return p(i,"enum_for",["collect"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o=[],a=0,s=i.length;a<s;a++){var c=t.yield1(r,i[a]);o.push(c)}return o},F.$$arity=0),t.def(ne,"$collect!",N=function(){var e,n=N.$$p,r=n||l,i=this;if(n&&(N.$$p=null),n&&(N.$$p=null),r===l)return p(i,"enum_for",["collect!"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o=0,a=i.length;o<a;o++){var s=t.yield1(r,i[o]);i[o]=s}return i},N.$$arity=0),t.def(ne,"$combination",z=function(e){var n,r,i,o,a,s,c,d,f=z.$$p,h=f||l,$=this,m=l;if(f&&(z.$$p=null),m=u(re,"Opal")["$coerce_to!"](e,u(re,"Integer"),"to_int"),h===l)return p($,"enum_for",["combination",m],(n=function(){var t=n.$$s||this;return se(t.length,m)},n.$$s=$,n.$$arity=0,n));if(0===m)t.yield1(h,[]);else if(1===m)for(r=0,i=$.length;r<i;r++)t.yield1(h,[$[r]]);else if(m===$.length)t.yield1(h,$.slice());else if(m>=0&&m<$.length){for(o=[],r=0;r<=m+1;r++)o.push(0);a=[],s=0,c=!1,o[0]=-1;while(!c){a[s]=$[o[s+1]];while(s<m-1)s++,d=o[s+1]=o[s]+1,a[s]=$[d];t.yield1(h,a.slice()),s++;do{c=0===s,o[s]++,s--}while(o[s+1]+m===$.length+s+1)}}return $},z.$$arity=1),t.def(ne,"$repeated_combination",H=function(e){var n,r=H.$$p,i=r||l,o=this,a=l;if(r&&(H.$$p=null),a=u(re,"Opal")["$coerce_to!"](e,u(re,"Integer"),"to_int"),i===l)return p(o,"enum_for",["repeated_combination",a],(n=function(){var t=n.$$s||this;return se(t.length+a-1,a)},n.$$s=o,n.$$arity=0,n));function s(e,n,r,o){if(r.length!=e)for(var a=n;a<o.length;a++)r.push(o[a]),s(e,a,r,o),r.pop();else{var l=r.slice();t.yield1(i,l)}}return a>=0&&s(a,0,[],o),o},H.$$arity=1),t.def(ne,"$compact",V=function(){for(var t,e=this,n=[],r=0,i=e.length;r<i;r++)(t=e[r])!==l&&n.push(t);return n},V.$$arity=0),t.def(ne,"$compact!",U=function(){for(var t=this,e=t.length,n=0,r=t.length;n<r;n++)t[n]===l&&(t.splice(n,1),r--,n--);return t.length===e?l:t},U.$$arity=0),t.def(ne,"$concat",q=function(e){var n,r,i,o,a=this;return n=t.slice.call(arguments,0,arguments.length),r=n,r=p(r,"map",[],(i=function(t){var e=i.$$s||this;return null==t&&(t=l),t=function(){return f(u(re,"Array")["$==="](t))?t.$to_a():u(re,"Opal").$coerce_to(t,u(re,"Array"),"to_ary").$to_a()}(),f(t["$equal?"](e))&&(t=t.$dup()),t},i.$$s=a,i.$$arity=1,i)),p(r,"each",[],(o=function(t){var e=o.$$s||this;null==t&&(t=l);for(var n=0,r=t.length;n<r;n++)e.push(t[n])},o.$$s=a,o.$$arity=1,o)),a},q.$$arity=-1),t.def(ne,"$delete",W=function(e){var n=W.$$p,r=n||l,i=this;n&&(W.$$p=null);for(var o=i.length,a=0,s=o;a<s;a++)i[a]["$=="](e)&&(i.splice(a,1),s--,a--);return i.length===o?r!==l?t.yieldX(r,[]):l:e},W.$$arity=1),t.def(ne,"$delete_at",G=function(t){var e=this;if(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),t<0&&(t+=e.length),t<0||t>=e.length)return l;var n=e[t];return e.splice(t,1),n},G.$$arity=1),t.def(ne,"$delete_if",Y=function(){var t,e=Y.$$p,n=e||l,r=this;if(e&&(Y.$$p=null),e&&(Y.$$p=null),n===l)return p(r,"enum_for",["delete_if"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t));for(var i,o=0,a=r.length;o<a;o++)i=n(r[o]),!1!==i&&i!==l&&(r.splice(o,1),a--,o--);return r},Y.$$arity=0),t.def(ne,"$dig",K=function(e,n){var r,i,o=this,a=l;return r=t.slice.call(arguments,1,arguments.length),i=r,a=o["$[]"](e),a===l||0===i.length?a:(f(a["$respond_to?"]("dig"))||o.$raise(u(re,"TypeError"),a.$class()+" does not have #dig method"),p(a,"dig",t.to_a(i)))},K.$$arity=-2),t.def(ne,"$drop",X=function(t){var e=this;return t<0&&e.$raise(u(re,"ArgumentError")),e.slice(t)},X.$$arity=1),t.def(ne,"$dup",Z=function(){var e=Z.$$p,n=this,r=l,i=l,o=l;for(e&&(Z.$$p=null),i=0,o=arguments.length,r=new Array(o);i<o;i++)r[i]=arguments[i];return n.$$class===t.Array&&n.$$class.$allocate.$$pristine&&n.$copy_instance_variables.$$pristine&&n.$initialize_dup.$$pristine?n.slice(0):p(n,t.find_super_dispatcher(n,"dup",Z,!1),r,e)},Z.$$arity=0),t.def(ne,"$each",J=function(){var e,n=J.$$p,r=n||l,i=this;if(n&&(J.$$p=null),n&&(J.$$p=null),r===l)return p(i,"enum_for",["each"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o=0,a=i.length;o<a;o++)t.yield1(r,i[o]);return i},J.$$arity=0),t.def(ne,"$each_index",Q=function(){var e,n=Q.$$p,r=n||l,i=this;if(n&&(Q.$$p=null),n&&(Q.$$p=null),r===l)return p(i,"enum_for",["each_index"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o=0,a=i.length;o<a;o++)t.yield1(r,o);return i},Q.$$arity=0),t.def(ne,"$empty?",tt=function(){var t=this;return 0===t.length},tt.$$arity=0),t.def(ne,"$eql?",et=function(t){var e=this,n={};function r(t,e){var i,o,a,s;if(!e.$$is_array)return!1;if(e=e.$to_a(),t.length!==e.length)return!1;for(n[t.$object_id()]=!0,i=0,o=t.length;i<o;i++)if(a=t[i],s=e[i],a.$$is_array){if(s.$$is_array&&s.length!==a.length)return!1;if(!n.hasOwnProperty(a.$object_id())&&!r(a,s))return!1}else if(!a["$eql?"](s))return!1;return!0}return r(e,t)},et.$$arity=1),t.def(ne,"$fetch",nt=function(t,e){var n=nt.$$p,r=n||l,i=this;n&&(nt.$$p=null),n&&(nt.$$p=null);var o=t;return t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),t<0&&(t+=i.length),t>=0&&t<i.length?i[t]:(r!==l&&null!=e&&i.$warn("warning: block supersedes default value argument"),r!==l?r(o):null!=e?e:void(0===i.length?i.$raise(u(re,"IndexError"),"index "+o+" outside of array bounds: 0...0"):i.$raise(u(re,"IndexError"),"index "+o+" outside of array bounds: -"+i.length+"..."+i.length)))},nt.$$arity=-2),t.def(ne,"$fill",rt=function(e){var n,r,i,o,a,s,c=rt.$$p,d=c||l,h=this,p=l,$=l,m=l,g=l,v=l;if(c&&(rt.$$p=null),c&&(rt.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,f(d)?(f(r.length>2)&&h.$raise(u(re,"ArgumentError"),"wrong number of arguments ("+r.$length()+" for 0..2)"),o=r,i=t.to_ary(o),p=null==i[0]?l:i[0],$=null==i[1]?l:i[1]):(f(0==r.length)?h.$raise(u(re,"ArgumentError"),"wrong number of arguments (0 for 1..3)"):f(r.length>3)&&h.$raise(u(re,"ArgumentError"),"wrong number of arguments ("+r.$length()+" for 1..3)"),o=r,i=t.to_ary(o),m=null==i[0]?l:i[0],p=null==i[1]?l:i[1],$=null==i[2]?l:i[2]),f(u(re,"Range")["$==="](p))){if(f($)&&h.$raise(u(re,"TypeError"),"length invalid with range"),g=u(re,"Opal").$coerce_to(p.$begin(),u(re,"Integer"),"to_int"),f(g<0)&&(g+=this.length),f(g<0)&&h.$raise(u(re,"RangeError"),p.$inspect()+" out of range"),v=u(re,"Opal").$coerce_to(p.$end(),u(re,"Integer"),"to_int"),f(v<0)&&(v+=this.length),f(p["$exclude_end?"]())||(v+=1),f(v<=g))return h}else if(f(p))if(g=u(re,"Opal").$coerce_to(p,u(re,"Integer"),"to_int"),f(g<0)&&(g+=this.length),f(g<0)&&(g=0),f($)){if(v=u(re,"Opal").$coerce_to($,u(re,"Integer"),"to_int"),f(0==v))return h;v+=g}else v=this.length;else g=0,v=this.length;if(f(g>this.length))for(a=this.length;a<v;a++)h[a]=l;if(f(v>this.length)&&(this.length=v),f(d))for(this.length;g<v;g++)s=d(g),h[g]=s;else for(this.length;g<v;g++)h[g]=m;return h},rt.$$arity=-1),t.def(ne,"$first",it=function(t){var e=this;return null==t?0===e.length?l:e[0]:(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),t<0&&e.$raise(u(re,"ArgumentError"),"negative array size"),e.slice(0,t))},it.$$arity=-1),t.def(ne,"$flatten",ot=function(t){var e=this;function n(t,r){var i,o,a,s,c=[];for(t=t.$to_a(),i=0,o=t.length;i<o;i++)if(a=t[i],u(re,"Opal")["$respond_to?"](a,"to_ary",!0))if(s=a.$to_ary(),s!==l)switch(s.$$is_array||e.$raise(u(re,"TypeError")),s===e&&e.$raise(u(re,"ArgumentError")),r){case void 0:c=c.concat(n(s));break;case 0:c.push(s);break;default:c.push.apply(c,n(s,r-1))}else c.push(a);else c.push(a);return c}return void 0!==t&&(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int")),ie(n(e,t),e.$class())},ot.$$arity=-1),t.def(ne,"$flatten!",at=function(t){var e=this,n=e.$flatten(t);if(e.length==n.length){for(var r=0,i=e.length;r<i;r++)if(e[r]!==n[r])break;if(r==i)return l}return e.$replace(n),e},at.$$arity=-1),t.def(ne,"$hash",st=function(){var e,n,r,i=this,o=void 0===t.hash_ids,a=["A"],s=i.$object_id();try{if(o&&(t.hash_ids=Object.create(null)),t.hash_ids[s])return"self";for(r in t.hash_ids)if(e=t.hash_ids[r],i["$eql?"](e))return"self";for(t.hash_ids[s]=i,n=0;n<i.length;n++)e=i[n],a.push(e.$hash());return a.join(",")}finally{o&&(t.hash_ids=void 0)}},st.$$arity=0),t.def(ne,"$include?",lt=function(t){for(var e=this,n=0,r=e.length;n<r;n++)if(e[n]["$=="](t))return!0;return!1},lt.$$arity=1),t.def(ne,"$index",ct=function(t){var e,n,r,i=ct.$$p,o=i||l,a=this;if(i&&(ct.$$p=null),i&&(ct.$$p=null),null!=t&&o!==l&&a.$warn("warning: given block not used"),null!=t){for(e=0,n=a.length;e<n;e++)if(a[e]["$=="](t))return e}else{if(o===l)return a.$enum_for("index");for(e=0,n=a.length;e<n;e++)if(r=o(a[e]),!1!==r&&r!==l)return e}return l},ct.$$arity=-1),t.def(ne,"$insert",ut=function(e,n){var r,i,o=this;if(r=t.slice.call(arguments,1,arguments.length),i=r,e=u(re,"Opal").$coerce_to(e,u(re,"Integer"),"to_int"),i.length>0){if(e<0&&(e+=o.length+1,e<0&&o.$raise(u(re,"IndexError"),e+" is out of bounds")),e>o.length)for(var a=o.length;a<e;a++)o.push(l);o.splice.apply(o,[e,0].concat(i))}return o},ut.$$arity=-2),t.def(ne,"$inspect",dt=function(){for(var t=this,e=[],n=t.$__id__(),r=0,i=t.length;r<i;r++){var o=t["$[]"](r);o.$__id__()===n?e.push("[...]"):e.push(o.$inspect())}return"["+e.join(", ")+"]"},dt.$$arity=0),t.def(ne,"$join",ft=function(e){var n=this;if(null==$[","]&&($[","]=l),null==e&&(e=l),f(0===n.length))return"";f(e===l)&&(e=$[","]);var r,i,o,a,s=[];for(r=0,i=n.length;r<i;r++)o=n[r],u(re,"Opal")["$respond_to?"](o,"to_str")&&(a=o.$to_str(),a!==l)?s.push(a.$to_s()):u(re,"Opal")["$respond_to?"](o,"to_ary")&&(a=o.$to_ary(),a===n&&n.$raise(u(re,"ArgumentError")),a!==l)?s.push(a.$join(e)):u(re,"Opal")["$respond_to?"](o,"to_s")&&(a=o.$to_s(),a!==l)?s.push(a):n.$raise(u(re,"NoMethodError").$new(t.inspect(o)+" doesn't respond to #to_str, #to_ary or #to_s","to_str"));return e===l?s.join(""):s.join(u(re,"Opal")["$coerce_to!"](e,u(re,"String"),"to_str").$to_s())},ft.$$arity=-1),t.def(ne,"$keep_if",ht=function(){var t,e=ht.$$p,n=e||l,r=this;if(e&&(ht.$$p=null),e&&(ht.$$p=null),n===l)return p(r,"enum_for",["keep_if"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t));for(var i,o=0,a=r.length;o<a;o++)i=n(r[o]),!1!==i&&i!==l||(r.splice(o,1),a--,o--);return r},ht.$$arity=0),t.def(ne,"$last",pt=function(t){var e=this;return null==t?0===e.length?l:e[e.length-1]:(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),t<0&&e.$raise(u(re,"ArgumentError"),"negative array size"),t>e.length&&(t=e.length),e.slice(e.length-t,e.length))},pt.$$arity=-1),t.def(ne,"$length",$t=function(){var t=this;return t.length},$t.$$arity=0),t.alias(ne,"map","collect"),t.alias(ne,"map!","collect!"),t.def(ne,"$max",mt=function(t){var e=mt.$$p,n=e||l,r=this;return e&&(mt.$$p=null),e&&(mt.$$p=null),p(r.$each(),"max",[t],n.$to_proc())},mt.$$arity=-1),t.def(ne,"$min",gt=function(){var t=gt.$$p,e=t||l,n=this;return t&&(gt.$$p=null),t&&(gt.$$p=null),p(n.$each(),"min",[],e.$to_proc())},gt.$$arity=0),t.def(ne,"$permutation",vt=function(e){var n,r,i,o,a=vt.$$p,s=a||l,c=this,d=l,f=l;if(a&&(vt.$$p=null),a&&(vt.$$p=null),s===l)return p(c,"enum_for",["permutation",e],(n=function(){var t=n.$$s||this;return le(t.length,void 0===e?t.length:e)},n.$$s=c,n.$$arity=0,n));if(e=void 0===e?c.length:u(re,"Opal").$coerce_to(e,u(re,"Integer"),"to_int"),e<0||c.length<e);else if(0===e)t.yield1(s,[]);else if(1===e)for(var h=0;h<c.length;h++)t.yield1(s,[c[h]]);else d=u(re,"Array").$new(e),f=u(re,"Array").$new(c.length,!1),r=function(e,n,i,a,s){c=this;for(var l=0;l<c.length;l++)if(a["$[]"](l)["$!"]())if(n[i]=l,i<e-1)a[l]=!0,r.call(c,e,n,i+1,a,s),a[l]=!1;else{o=[];for(var u=0;u<n.length;u++)o.push(c[n[u]]);t.yield1(s,o)}},s!==l?(i=c.slice(),r.call(i,e,d,0,f,s)):r.call(c,e,d,0,f,s);return c},vt.$$arity=-1),t.def(ne,"$repeated_permutation",yt=function(e){var n,i=yt.$$p,o=i||l,a=this,s=l;if(i&&(yt.$$p=null),s=u(re,"Opal")["$coerce_to!"](e,u(re,"Integer"),"to_int"),o===l)return p(a,"enum_for",["repeated_permutation",s],(n=function(){var t=n.$$s||this;return f(r(s,0))?t.$size()["$**"](s):0},n.$$s=a,n.$$arity=0,n));function c(e,n,r){if(n.length!=e)for(var i=0;i<r.length;i++)n.push(r[i]),c(e,n,r),n.pop();else{var a=n.slice();t.yield1(o,a)}}return c(s,[],a.slice()),a},yt.$$arity=1),t.def(ne,"$pop",_t=function(t){var e=this;return f(void 0===t)?f(0===e.length)?l:e.pop():(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),f(t<0)&&e.$raise(u(re,"ArgumentError"),"negative array size"),f(0===e.length)?[]:f(t>e.length)?e.splice(0,e.length):e.splice(e.length-t,e.length))},_t.$$arity=-1),t.def(ne,"$product",bt=function(e){var n,r,i=bt.$$p,o=i||l,a=this;i&&(bt.$$p=null),i&&(bt.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n;var s,c,d,f,h=o!==l?null:[],p=r.length+1,$=new Array(p),m=new Array(p),g=new Array(p),v=1;for(g[0]=a,s=1;s<p;s++)g[s]=u(re,"Opal").$coerce_to(r[s-1],u(re,"Array"),"to_ary");for(s=0;s<p;s++){if(f=g[s].length,0===f)return h||a;v*=f,v>2147483647&&a.$raise(u(re,"RangeError"),"too big to product"),m[s]=f,$[s]=0}t:for(;;){for(d=[],s=0;s<p;s++)d.push(g[s][$[s]]);h?h.push(d):t.yield1(o,d),c=p-1,$[c]++;while($[c]===m[c]){if($[c]=0,--c<0)break t;$[c]++}}return h||a},bt.$$arity=-1),t.def(ne,"$push",wt=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o=0,a=r.length;o<a;o++)i.push(r[o]);return i},wt.$$arity=-1),t.alias(ne,"append","push"),t.def(ne,"$rassoc",xt=function(t){for(var e,n=this,r=0,i=n.length;r<i;r++)if(e=n[r],e.length&&void 0!==e[1]&&e[1]["$=="](t))return e;return l},xt.$$arity=1),t.def(ne,"$reject",kt=function(){var t,e=kt.$$p,n=e||l,r=this;if(e&&(kt.$$p=null),e&&(kt.$$p=null),n===l)return p(r,"enum_for",["reject"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t));for(var i,o=[],a=0,s=r.length;a<s;a++)i=n(r[a]),!1!==i&&i!==l||o.push(r[a]);return o},kt.$$arity=0),t.def(ne,"$reject!",St=function(){var t,e=St.$$p,n=e||l,r=this,i=l;return e&&(St.$$p=null),e&&(St.$$p=null),n===l?p(r,"enum_for",["reject!"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t)):(i=r.$length(),p(r,"delete_if",[],n.$to_proc()),r.$length()["$=="](i)?l:r)},St.$$arity=0),t.def(ne,"$replace",Ot=function(t){var e=this;return t=function(){return f(u(re,"Array")["$==="](t))?t.$to_a():u(re,"Opal").$coerce_to(t,u(re,"Array"),"to_ary").$to_a()}(),e.splice(0,e.length),e.push.apply(e,t),e},Ot.$$arity=1),t.def(ne,"$reverse",Ct=function(){var t=this;return t.slice(0).reverse()},Ct.$$arity=0),t.def(ne,"$reverse!",At=function(){var t=this;return t.reverse()},At.$$arity=0),t.def(ne,"$reverse_each",Et=function(){var t,e=Et.$$p,n=e||l,r=this;return e&&(Et.$$p=null),e&&(Et.$$p=null),n===l?p(r,"enum_for",["reverse_each"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t)):(p(r.$reverse(),"each",[],n.$to_proc()),r)},Et.$$arity=0),t.def(ne,"$rindex",Tt=function(t){var e,n,r=Tt.$$p,i=r||l,o=this;if(r&&(Tt.$$p=null),r&&(Tt.$$p=null),null!=t&&i!==l&&o.$warn("warning: given block not used"),null!=t)for(e=o.length-1;e>=0;e--){if(e>=o.length)break;if(o[e]["$=="](t))return e}else if(i!==l)for(e=o.length-1;e>=0;e--){if(e>=o.length)break;if(n=i(o[e]),!1!==n&&n!==l)return e}else if(null==t)return o.$enum_for("rindex");return l},Tt.$$arity=-1),t.def(ne,"$rotate",Pt=function(t){var e,n,r,i,o=this;return null==t&&(t=1),t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),1===o.length?o.slice():0===o.length?[]:(e=o.slice(),n=t%e.length,r=e.slice(n),i=e.slice(0,n),r.concat(i))},Pt.$$arity=-1),t.def(ne,"$rotate!",Bt=function(t){var e=this,n=l;return null==t&&(t=1),0===e.length||1===e.length?e:(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),n=e.$rotate(t),e.$replace(n))},Bt.$$arity=-1),function(e,n,r){var i,o,a=d(e,n,"SampleRandom"),s=[a].concat(r);a.$$prototype.rng=l,t.def(a,"$initialize",i=function(t){var e=this;return e.rng=t},i.$$arity=1),t.def(a,"$rand",o=function(t){var e=this,n=l;return n=u(s,"Opal").$coerce_to(e.rng.$rand(t),u(s,"Integer"),"to_int"),f(n<0)&&e.$raise(u(s,"RangeError"),"random value must be >= 0"),f(n<t)||e.$raise(u(s,"RangeError"),"random value must be less than Array size"),n},o.$$arity=1)}(re[0],null,re),t.def(ne,"$sample",Lt=function(t,e){var n,r,i,o,a,s,c,d,h,p=this,$=l,m=l;if(f(void 0===t))return p.$at(u(re,"Kernel").$rand(p.length));if(f(void 0===e)?f($=u(re,"Opal")["$coerce_to?"](t,u(re,"Hash"),"to_hash"))?(e=$,t=l):(e=l,t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int")):(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),e=u(re,"Opal").$coerce_to(e,u(re,"Hash"),"to_hash")),f(f(n=t)?t<0:n)&&p.$raise(u(re,"ArgumentError"),"count must be greater than 0"),f(e)&&(m=e["$[]"]("random")),m=function(){return f(f(n=m)?m["$respond_to?"]("rand"):n)?u(re,"SampleRandom").$new(m):u(re,"Kernel")}(),!f(t))return p[m.$rand(p.length)];switch(t>p.length&&(t=p.length),t){case 0:return[];case 1:return[p[m.$rand(p.length)]];case 2:return a=m.$rand(p.length),s=m.$rand(p.length),a===s&&(s=0===a?a+1:a-1),[p[a],p[s]];default:if(p.length/t>3){r=!1,i=0,o=u(re,"Array").$new(t),a=1,o[0]=m.$rand(p.length);while(a<t){c=m.$rand(p.length),s=0;while(s<a){while(c===o[s]){if(i++,i>100){r=!0;break}c=m.$rand(p.length)}if(r)break;s++}if(r)break;o[a]=c,a++}if(!r){a=0;while(a<t)o[a]=p[o[a]],a++;return o}}o=p.slice();for(var g=0;g<t;g++)d=m.$rand(p.length),h=o[g],o[g]=o[d],o[d]=h;return t===p.length?o:o["$[]"](0,t)}},Lt.$$arity=-1),t.def(ne,"$select",It=function(){var e,n=It.$$p,r=n||l,i=this;if(n&&(It.$$p=null),n&&(It.$$p=null),r===l)return p(i,"enum_for",["select"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,a,s=[],c=0,u=i.length;c<u;c++)o=i[c],a=t.yield1(r,o),t.truthy(a)&&s.push(o);return s},It.$$arity=0),t.def(ne,"$select!",Dt=function(){var t,e=Dt.$$p,n=e||l,r=this;if(e&&(Dt.$$p=null),e&&(Dt.$$p=null),n===l)return p(r,"enum_for",["select!"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t));var i=r.length;return p(r,"keep_if",[],n.$to_proc()),r.length===i?l:r},Dt.$$arity=0),t.def(ne,"$shift",Rt=function(t){var e=this;return f(void 0===t)?f(0===e.length)?l:e.shift():(t=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),f(t<0)&&e.$raise(u(re,"ArgumentError"),"negative array size"),f(0===e.length)?[]:e.splice(0,t))},Rt.$$arity=-1),t.alias(ne,"size","length"),t.def(ne,"$shuffle",jt=function(t){var e=this;return e.$dup().$to_a()["$shuffle!"](t)},jt.$$arity=-1),t.def(ne,"$shuffle!",Mt=function(t){var e,n,r,i=this,o=i.length;void 0!==t&&(t=u(re,"Opal")["$coerce_to?"](t,u(re,"Hash"),"to_hash"),t!==l&&(t=t["$[]"]("random"),t!==l&&t["$respond_to?"]("rand")&&(e=t)));while(o)e?(n=e.$rand(o).$to_int(),n<0&&i.$raise(u(re,"RangeError"),"random number too small "+n),n>=o&&i.$raise(u(re,"RangeError"),"random number too big "+n)):n=i.$rand(o),r=i[--o],i[o]=i[n],i[n]=r;return i},Mt.$$arity=-1),t.alias(ne,"slice","[]"),t.def(ne,"$slice!",Ft=function(t,e){var n=this,r=l,i=l,o=l,a=l,s=l;if(r=l,f(void 0===e))if(f(u(re,"Range")["$==="](t))){i=t,r=n["$[]"](i),o=u(re,"Opal").$coerce_to(i.$begin(),u(re,"Integer"),"to_int"),a=u(re,"Opal").$coerce_to(i.$end(),u(re,"Integer"),"to_int"),o<0&&(o+=n.length),a<0?a+=n.length:a>=n.length&&(a=n.length-1,i.excl&&(a+=1));var c=a-o;i.excl?a-=1:c+=1,o<n.length&&o>=0&&a<n.length&&a>=0&&c>0&&n.splice(o,c)}else{if(s=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),s<0&&(s+=n.length),s<0||s>=n.length)return l;r=n[s],0===s?n.shift():n.splice(s,1)}else{if(s=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),e=u(re,"Opal").$coerce_to(e,u(re,"Integer"),"to_int"),e<0)return l;r=n["$[]"](s,e),s<0&&(s+=n.length),s+e>n.length&&(e=n.length-s),s<n.length&&s>=0&&n.splice(s,e)}return r},Ft.$$arity=-2),t.def(ne,"$sort",Nt=function(){var t=Nt.$$p,n=t||l,r=this;return t&&(Nt.$$p=null),t&&(Nt.$$p=null),f(r.length>1)?(n===l&&(n=function(t,e){return t["$<=>"](e)}),r.slice().sort((function(t,o){var a=n(t,o);return a===l&&r.$raise(u(re,"ArgumentError"),"comparison of "+t.$inspect()+" with "+o.$inspect()+" failed"),e(a,0)?1:i(a,0)?-1:0}))):r},Nt.$$arity=0),t.def(ne,"$sort!",zt=function(){var t,e=zt.$$p,n=e||l,r=this;e&&(zt.$$p=null),e&&(zt.$$p=null),t=n!==l?p(r.slice(),"sort",[],n.$to_proc()):r.slice().$sort(),r.length=0;for(var i=0,o=t.length;i<o;i++)r.push(t[i]);return r},zt.$$arity=0),t.def(ne,"$sort_by!",Ht=function(){var t,e=Ht.$$p,n=e||l,r=this;return e&&(Ht.$$p=null),e&&(Ht.$$p=null),n===l?p(r,"enum_for",["sort_by!"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t)):r.$replace(p(r,"sort_by",[],n.$to_proc()))},Ht.$$arity=0),t.def(ne,"$take",Vt=function(t){var e=this;return t<0&&e.$raise(u(re,"ArgumentError")),e.slice(0,t)},Vt.$$arity=1),t.def(ne,"$take_while",Ut=function(){var t=Ut.$$p,e=t||l,n=this;t&&(Ut.$$p=null),t&&(Ut.$$p=null);for(var r,i,o=[],a=0,s=n.length;a<s;a++){if(r=n[a],i=e(r),!1===i||i===l)return o;o.push(r)}return o},Ut.$$arity=0),t.def(ne,"$to_a",qt=function(){var t=this;return t},qt.$$arity=0),t.alias(ne,"to_ary","to_a"),t.def(ne,"$to_h",Wt=function(){var e,n,r,i,o=this,a=o.length,s=h([],{});for(e=0;e<a;e++)n=u(re,"Opal")["$coerce_to?"](o[e],u(re,"Array"),"to_ary"),n.$$is_array||o.$raise(u(re,"TypeError"),"wrong element type "+n.$class()+" at "+e+" (expected array)"),2!==n.length&&o.$raise(u(re,"ArgumentError"),"wrong array length at "+e+" (expected 2, was "+n.$length()+")"),r=n[0],i=n[1],t.hash_put(s,r,i);return s},Wt.$$arity=0),t.alias(ne,"to_s","inspect"),t.def(ne,"$transpose",Gt=function(){var e,n=this,r=l,i=l;return f(n["$empty?"]())?[]:(r=[],i=l,p(n,"each",[],(e=function(n){var a,s,c=e.$$s||this;return null==n&&(n=l),n=function(){return f(u(re,"Array")["$==="](n))?n.$to_a():u(re,"Opal").$coerce_to(n,u(re,"Array"),"to_ary").$to_a()}(),i=f(a=i)?a:n.length,f(n.length["$!="](i))&&c.$raise(u(re,"IndexError"),"element size differs ("+n.length+" should be "+i+")"),p(n.length,"times",[],(s=function(e){s.$$s;var i,a=l,c=l;return null==e&&(e=l),a=f(i=r["$[]"](e))?i:(c=[e,[]],p(r,"[]=",t.to_a(c)),c[o(c["length"],1)]),a["$<<"](n.$at(e))},s.$$s=c,s.$$arity=1,s))},e.$$s=n,e.$$arity=1,e)),r)},Gt.$$arity=0),t.def(ne,"$uniq",Yt=function(){var e=Yt.$$p,n=e||l,r=this;e&&(Yt.$$p=null),e&&(Yt.$$p=null);var i,o,a,s,c=h([],{});if(n===l)for(i=0,o=r.length;i<o;i++)a=r[i],void 0===t.hash_get(c,a)&&t.hash_put(c,a,a);else for(i=0,o=r.length;i<o;i++)a=r[i],s=t.yield1(n,a),void 0===t.hash_get(c,s)&&t.hash_put(c,s,a);return ie(c.$values(),r.$class())},Yt.$$arity=0),t.def(ne,"$uniq!",Kt=function(){var e=Kt.$$p,n=e||l,r=this;e&&(Kt.$$p=null),e&&(Kt.$$p=null);var i,o,a,s,c=r.length,u=h([],{});for(i=0,o=c;i<o;i++)a=r[i],s=n===l?a:t.yield1(n,a),void 0!==t.hash_get(u,s)?(r.splice(i,1),o--,i--):t.hash_put(u,s,a);return r.length===c?l:r},Kt.$$arity=0),t.def(ne,"$unshift",Xt=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o=r.length-1;o>=0;o--)i.unshift(r[o]);return i},Xt.$$arity=-1),t.alias(ne,"prepend","unshift"),t.def(ne,"$values_at",Zt=function(e){var n,r,i,o=this,a=l;return n=t.slice.call(arguments,0,arguments.length),r=n,a=[],p(r,"each",[],(i=function(t){var e,n=i.$$s||this,r=l,o=l,s=l;return null==t&&(t=l),f(t["$is_a?"](u(re,"Range")))?(r=u(re,"Opal").$coerce_to(t.$last(),u(re,"Integer"),"to_int"),o=u(re,"Opal").$coerce_to(t.$first(),u(re,"Integer"),"to_int"),o<0?(o+=n.length,l):(r<0&&(r+=n.length),t["$exclude_end?"]()&&r--,r<o?l:p(o,"upto",[r],(e=function(t){var n=e.$$s||this;return null==t&&(t=l),a["$<<"](n.$at(t))},e.$$s=n,e.$$arity=1,e)))):(s=u(re,"Opal").$coerce_to(t,u(re,"Integer"),"to_int"),a["$<<"](n.$at(s)))},i.$$s=o,i.$$arity=1,i)),a},Zt.$$arity=-1),t.def(ne,"$zip",Jt=function(e){var n,r,i,o=Jt.$$p,a=o||l,s=this;o&&(Jt.$$p=null),o&&(Jt.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n;var c,d,h,p,$,m=[],g=s.length;for(p=0,$=r.length;p<$;p++)d=r[p],d.$$is_array||(d.$$is_enumerator?d.$size()===1/0?r[p]=d.$take(g):r[p]=d.$to_a():r[p]=(f(i=u(re,"Opal")["$coerce_to?"](d,u(re,"Array"),"to_ary"))?i:u(re,"Opal")["$coerce_to!"](d,u(re,"Enumerator"),"each")).$to_a());for(h=0;h<g;h++){for(c=[s[h]],p=0,$=r.length;p<$;p++)d=r[p][h],null==d&&(d=l),c[p+1]=d;m[h]=c}if(a!==l){for(h=0;h<g;h++)a(m[h]);return l}return m},Jt.$$arity=-1),t.defs(ne,"$inherited",Qt=function(t){t.$$prototype.$to_a=function(){return this.slice(0,this.length)}},Qt.$$arity=1),t.def(ne,"$instance_variables",te=function(){var e,n=te.$$p,r=this,i=l,o=l,a=l;for(n&&(te.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return p(p(r,t.find_super_dispatcher(r,"instance_variables",te,!1),i,n),"reject",[],(e=function(t){var n;e.$$s;return null==t&&(t=l),f(n=/^@\d+$/.test(t))?n:t["$=="]("@length")},e.$$s=r,e.$$arity=1,e))},te.$$arity=0),u(re,"Opal").$pristine(ne.$singleton_class(),"allocate"),u(re,"Opal").$pristine(ne,"copy_instance_variables","initialize_dup"),t.def(ne,"$pack",ee=function(e){var n,r=this;return n=t.slice.call(arguments,0,arguments.length),n,r.$raise("To use Array#pack, you must first require 'corelib/array/pack'.")},ee.$$arity=-1),l&&"pack"}(s[0],Array,s)},Opal.modules["corelib/hash"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}var i=t.top,o=[],a=t.nil,s=(t.const_get_qualified,t.const_get_relative),l=(t.breaker,t.slice,t.klass),c=t.send,u=t.hash2,d=t.truthy;return t.add_stubs(["$require","$include","$coerce_to?","$[]","$merge!","$allocate","$raise","$coerce_to!","$each","$fetch","$>=","$>","$==","$compare_by_identity","$lambda?","$abs","$arity","$enum_for","$size","$respond_to?","$class","$dig","$new","$inspect","$map","$to_proc","$flatten","$eql?","$default","$dup","$default_proc","$default_proc=","$-","$default=","$proc"]),i.$require("corelib/enumerable"),function(i,o,f){var h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt=l(i,o,"Hash"),xt=[wt].concat(f);return wt.$include(s(xt,"Enumerable")),wt.$$prototype.$$is_hash=!0,t.defs(wt,"$[]",h=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;var o,l,c=r.length;if(1===c){if(o=s(xt,"Opal")["$coerce_to?"](r["$[]"](0),s(xt,"Hash"),"to_hash"),o!==a)return i.$allocate()["$merge!"](o);for(r=s(xt,"Opal")["$coerce_to?"](r["$[]"](0),s(xt,"Array"),"to_ary"),r===a&&i.$raise(s(xt,"ArgumentError"),"odd number of arguments for Hash"),c=r.length,o=i.$allocate(),l=0;l<c;l++)if(r[l].$$is_array)switch(r[l].length){case 1:o.$store(r[l][0],a);break;case 2:o.$store(r[l][0],r[l][1]);break;default:i.$raise(s(xt,"ArgumentError"),"invalid number of elements ("+r[l].length+" for 1..2)")}return o}for(c%2!==0&&i.$raise(s(xt,"ArgumentError"),"odd number of arguments for Hash"),o=i.$allocate(),l=0;l<c;l+=2)o.$store(r[l],r[l+1]);return o},h.$$arity=-1),t.defs(wt,"$allocate",p=function(){var e=this,n=new e.$$constructor;return t.hash_init(n),n.$$none=a,n.$$proc=a,n},p.$$arity=0),t.defs(wt,"$try_convert",$=function(t){return s(xt,"Opal")["$coerce_to?"](t,s(xt,"Hash"),"to_hash")},$.$$arity=1),t.def(wt,"$initialize",m=function(t){var e=m.$$p,n=e||a,r=this;return e&&(m.$$p=null),e&&(m.$$p=null),void 0!==t&&n!==a&&r.$raise(s(xt,"ArgumentError"),"wrong number of arguments (1 for 0)"),r.$$none=void 0===t?a:t,r.$$proc=n,r},m.$$arity=-1),t.def(wt,"$==",g=function(e){var n=this;if(n===e)return!0;if(!e.$$is_hash)return!1;if(n.$$keys.length!==e.$$keys.length)return!1;for(var r,i,o,a=0,s=n.$$keys,l=s.length;a<l;a++)if(r=s[a],r.$$is_string?(i=n.$$smap[r],o=e.$$smap[r]):(i=r.value,o=t.hash_get(e,r.key)),void 0===o||!i["$eql?"](o))return!1;return!0},g.$$arity=1),t.def(wt,"$>=",v=function(t){var e,n=this,r=a;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),!(n.$$keys.length<t.$$keys.length)&&(r=!0,c(t,"each",[],(e=function(t,n){var i=e.$$s||this,o=a;null==t&&(t=a),null==n&&(n=a),o=i.$fetch(t,null),null!=o&&o===n||(r=!1)},e.$$s=n,e.$$arity=2,e)),r)},v.$$arity=1),t.def(wt,"$>",y=function(t){var n=this;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),!(n.$$keys.length<=t.$$keys.length)&&e(n,t)},y.$$arity=1),t.def(wt,"$<",_=function(t){var e=this;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),n(t,e)},_.$$arity=1),t.def(wt,"$<=",b=function(t){var n=this;return t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Hash"),"to_hash"),e(t,n)},b.$$arity=1),t.def(wt,"$[]",w=function(e){var n=this,r=t.hash_get(n,e);return void 0!==r?r:n.$default(e)},w.$$arity=1),t.def(wt,"$[]=",x=function(e,n){var r=this;return t.hash_put(r,e,n),n},x.$$arity=2),t.def(wt,"$assoc",k=function(t){for(var e,n=this,r=0,i=n.$$keys,o=i.length;r<o;r++)if(e=i[r],e.$$is_string){if(e["$=="](t))return[e,n.$$smap[e]]}else if(e.key["$=="](t))return[e.key,e.value];return a},k.$$arity=1),t.def(wt,"$clear",S=function(){var e=this;return t.hash_init(e),e},S.$$arity=0),t.def(wt,"$clone",O=function(){var e=this,n=new e.$$class;return t.hash_init(n),t.hash_clone(e,n),n},O.$$arity=0),t.def(wt,"$compact",C=function(){for(var e,n,r=this,i=t.hash(),o=0,s=r.$$keys,l=s.length;o<l;o++)e=s[o],e.$$is_string?n=r.$$smap[e]:(n=e.value,e=e.key),n!==a&&t.hash_put(i,e,n);return i},C.$$arity=0),t.def(wt,"$compact!",A=function(){for(var e,n,r=this,i=!1,o=0,s=r.$$keys,l=s.length;o<l;o++)e=s[o],e.$$is_string?n=r.$$smap[e]:(n=e.value,e=e.key),n===a&&void 0!==t.hash_delete(r,e)&&(i=!0,l--,o--);return i?r:a},A.$$arity=0),t.def(wt,"$compare_by_identity",E=function(){var e,n,r,i,o=this,a=o.$$keys;if(o.$$by_identity)return o;if(0===o.$$keys.length)return o.$$by_identity=!0,o;for(i=u([],{}).$compare_by_identity(),e=0,n=a.length;e<n;e++)r=a[e],r.$$is_string||(r=r.key),t.hash_put(i,r,t.hash_get(o,r));return o.$$by_identity=!0,o.$$map=i.$$map,o.$$smap=i.$$smap,o},E.$$arity=0),t.def(wt,"$compare_by_identity?",T=function(){var t=this;return!0===t.$$by_identity},T.$$arity=0),t.def(wt,"$default",P=function(t){var e=this;return void 0!==t&&e.$$proc!==a&&void 0!==e.$$proc?e.$$proc.$call(e,t):void 0===e.$$none?a:e.$$none},P.$$arity=-1),t.def(wt,"$default=",B=function(t){var e=this;return e.$$proc=a,e.$$none=t,t},B.$$arity=1),t.def(wt,"$default_proc",L=function(){var t=this;return void 0!==t.$$proc?t.$$proc:a},L.$$arity=0),t.def(wt,"$default_proc=",I=function(t){var e=this,n=t;return n!==a&&(n=s(xt,"Opal")["$coerce_to!"](n,s(xt,"Proc"),"to_proc"),n["$lambda?"]()&&2!==n.$arity().$abs()&&e.$raise(s(xt,"TypeError"),"default_proc takes two arguments")),e.$$none=a,e.$$proc=n,t},I.$$arity=1),t.def(wt,"$delete",D=function(e){var n=D.$$p,r=n||a,i=this;n&&(D.$$p=null),n&&(D.$$p=null);var o=t.hash_delete(i,e);return void 0!==o?o:r!==a?t.yield1(r,e):a},D.$$arity=1),t.def(wt,"$delete_if",R=function(){var e,n=R.$$p,r=n||a,i=this;if(n&&(R.$$p=null),n&&(R.$$p=null),!d(r))return c(i,"enum_for",["delete_if"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l,u=0,f=i.$$keys,h=f.length;u<h;u++)o=f[u],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),l=r(o,s),!1!==l&&l!==a&&void 0!==t.hash_delete(i,o)&&(h--,u--);return i},R.$$arity=0),t.alias(wt,"dup","clone"),t.def(wt,"$dig",j=function(e,n){var r,i,o=this,l=a;return r=t.slice.call(arguments,1,arguments.length),i=r,l=o["$[]"](e),l===a||0===i.length?l:(d(l["$respond_to?"]("dig"))||o.$raise(s(xt,"TypeError"),l.$class()+" does not have #dig method"),c(l,"dig",t.to_a(i)))},j.$$arity=-2),t.def(wt,"$each",M=function(){var e,n=M.$$p,r=n||a,i=this;if(n&&(M.$$p=null),n&&(M.$$p=null),!d(r))return c(i,"enum_for",["each"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l=0,u=i.$$keys,f=u.length;l<f;l++)o=u[l],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),t.yield1(r,[o,s]);return i},M.$$arity=0),t.def(wt,"$each_key",F=function(){var t,e=F.$$p,n=e||a,r=this;if(e&&(F.$$p=null),e&&(F.$$p=null),!d(n))return c(r,"enum_for",["each_key"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t));for(var i,o=0,s=r.$$keys,l=s.length;o<l;o++)i=s[o],n(i.$$is_string?i:i.key);return r},F.$$arity=0),t.alias(wt,"each_pair","each"),t.def(wt,"$each_value",N=function(){var t,e=N.$$p,n=e||a,r=this;if(e&&(N.$$p=null),e&&(N.$$p=null),!d(n))return c(r,"enum_for",["each_value"],(t=function(){var e=t.$$s||this;return e.$size()},t.$$s=r,t.$$arity=0,t));for(var i,o=0,s=r.$$keys,l=s.length;o<l;o++)i=s[o],n(i.$$is_string?r.$$smap[i]:i.value);return r},N.$$arity=0),t.def(wt,"$empty?",z=function(){var t=this;return 0===t.$$keys.length},z.$$arity=0),t.alias(wt,"eql?","=="),t.def(wt,"$fetch",H=function(e,n){var r=H.$$p,i=r||a,o=this;r&&(H.$$p=null),r&&(H.$$p=null);var l=t.hash_get(o,e);return void 0!==l?l:i!==a?i(e):void 0!==n?n:o.$raise(s(xt,"KeyError").$new("key not found: "+e.$inspect(),u(["key","receiver"],{key:e,receiver:o})))},H.$$arity=-2),t.def(wt,"$fetch_values",V=function(e){var n,r,i,o=V.$$p,s=o||a,l=this;return o&&(V.$$p=null),o&&(V.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,c(r,"map",[],(i=function(t){var e=i.$$s||this;return null==t&&(t=a),c(e,"fetch",[t],s.$to_proc())},i.$$s=l,i.$$arity=1,i))},V.$$arity=-1),t.def(wt,"$flatten",U=function(t){var e=this;null==t&&(t=1),t=s(xt,"Opal")["$coerce_to!"](t,s(xt,"Integer"),"to_int");for(var n,r,i=[],o=0,a=e.$$keys,l=a.length;o<l;o++)if(n=a[o],n.$$is_string?r=e.$$smap[n]:(r=n.value,n=n.key),i.push(n),r.$$is_array){if(1===t){i.push(r);continue}i=i.concat(r.$flatten(t-2))}else i.push(r);return i},U.$$arity=-1),t.def(wt,"$has_key?",q=function(e){var n=this;return void 0!==t.hash_get(n,e)},q.$$arity=1),t.def(wt,"$has_value?",W=function(t){for(var e,n=this,r=0,i=n.$$keys,o=i.length;r<o;r++)if(e=i[r],(e.$$is_string?n.$$smap[e]:e.value)["$=="](t))return!0;return!1},W.$$arity=1),t.def(wt,"$hash",G=function(){var e,n,r=this,i=void 0===t.hash_ids,o=r.$object_id(),a=["Hash"];try{if(i&&(t.hash_ids=Object.create(null)),t[o])return"self";for(e in t.hash_ids)if(n=t.hash_ids[e],r["$eql?"](n))return"self";t.hash_ids[o]=r;for(var s=0,l=r.$$keys,c=l.length;s<c;s++)e=l[s],e.$$is_string?a.push([e,r.$$smap[e].$hash()]):a.push([e.key_hash,e.value.$hash()]);return a.sort().join()}finally{i&&(t.hash_ids=void 0)}},G.$$arity=0),t.alias(wt,"include?","has_key?"),t.def(wt,"$index",Y=function(t){for(var e,n,r=this,i=0,o=r.$$keys,s=o.length;i<s;i++)if(e=o[i],e.$$is_string?n=r.$$smap[e]:(n=e.value,e=e.key),n["$=="](t))return e;return a},Y.$$arity=1),t.def(wt,"$indexes",K=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o,a,s=[],l=0,c=r.length;l<c;l++)o=r[l],a=t.hash_get(i,o),void 0!==a?s.push(a):s.push(i.$default());return s},K.$$arity=-1),t.alias(wt,"indices","indexes"),t.def(wt,"$inspect",X=function(){var t=this,e=void 0===bt,n=t.$object_id(),r=[];try{if(e&&(bt={}),bt.hasOwnProperty(n))return"{...}";bt[n]=!0;for(var i,o,a=0,s=t.$$keys,l=s.length;a<l;a++)i=s[a],i.$$is_string?o=t.$$smap[i]:(o=i.value,i=i.key),r.push(i.$inspect()+"=>"+o.$inspect());return"{"+r.join(", ")+"}"}finally{e&&(bt=void 0)}},X.$$arity=0),t.def(wt,"$invert",Z=function(){for(var e,n,r=this,i=t.hash(),o=0,a=r.$$keys,s=a.length;o<s;o++)e=a[o],e.$$is_string?n=r.$$smap[e]:(n=e.value,e=e.key),t.hash_put(i,n,e);return i},Z.$$arity=0),t.def(wt,"$keep_if",J=function(){var e,n=J.$$p,r=n||a,i=this;if(n&&(J.$$p=null),n&&(J.$$p=null),!d(r))return c(i,"enum_for",["keep_if"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l,u=0,f=i.$$keys,h=f.length;u<h;u++)o=f[u],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),l=r(o,s),!1!==l&&l!==a||void 0!==t.hash_delete(i,o)&&(h--,u--);return i},J.$$arity=0),t.alias(wt,"key","index"),t.alias(wt,"key?","has_key?"),t.def(wt,"$keys",Q=function(){for(var t,e=this,n=[],r=0,i=e.$$keys,o=i.length;r<o;r++)t=i[r],t.$$is_string?n.push(t):n.push(t.key);return n},Q.$$arity=0),t.def(wt,"$length",tt=function(){var t=this;return t.$$keys.length},tt.$$arity=0),t.alias(wt,"member?","has_key?"),t.def(wt,"$merge",et=function(t){var e=et.$$p,n=e||a,r=this;return e&&(et.$$p=null),e&&(et.$$p=null),c(r.$dup(),"merge!",[t],n.$to_proc())},et.$$arity=1),t.def(wt,"$merge!",nt=function(e){var n=nt.$$p,r=n||a,i=this;n&&(nt.$$p=null),n&&(nt.$$p=null),e.$$is_hash||(e=s(xt,"Opal")["$coerce_to!"](e,s(xt,"Hash"),"to_hash"));var o,l,c,u,d=e.$$keys,f=d.length;if(r===a){for(o=0;o<f;o++)l=d[o],l.$$is_string?u=e.$$smap[l]:(u=l.value,l=l.key),t.hash_put(i,l,u);return i}for(o=0;o<f;o++)l=d[o],l.$$is_string?u=e.$$smap[l]:(u=l.value,l=l.key),c=t.hash_get(i,l),void 0!==c?t.hash_put(i,l,r(l,c,u)):t.hash_put(i,l,u);return i},nt.$$arity=1),t.def(wt,"$rassoc",rt=function(t){for(var e,n,r=this,i=0,o=r.$$keys,s=o.length;i<s;i++)if(e=o[i],e.$$is_string?n=r.$$smap[e]:(n=e.value,e=e.key),n["$=="](t))return[e,n];return a},rt.$$arity=1),t.def(wt,"$rehash",it=function(){var e=this;return t.hash_rehash(e),e},it.$$arity=0),t.def(wt,"$reject",ot=function(){var e,n=ot.$$p,r=n||a,i=this;if(n&&(ot.$$p=null),n&&(ot.$$p=null),!d(r))return c(i,"enum_for",["reject"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l,u=t.hash(),f=0,h=i.$$keys,p=h.length;f<p;f++)o=h[f],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),l=r(o,s),!1!==l&&l!==a||t.hash_put(u,o,s);return u},ot.$$arity=0),t.def(wt,"$reject!",at=function(){var e,n=at.$$p,r=n||a,i=this;if(n&&(at.$$p=null),n&&(at.$$p=null),!d(r))return c(i,"enum_for",["reject!"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l,u=!1,f=0,h=i.$$keys,p=h.length;f<p;f++)o=h[f],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),l=r(o,s),!1!==l&&l!==a&&void 0!==t.hash_delete(i,o)&&(u=!0,p--,f--);return u?i:a},at.$$arity=0),t.def(wt,"$replace",st=function(e){var n=this,i=a;e=s(xt,"Opal")["$coerce_to!"](e,s(xt,"Hash"),"to_hash"),t.hash_init(n);for(var o,l,u=0,f=e.$$keys,h=f.length;u<h;u++)o=f[u],o.$$is_string?l=e.$$smap[o]:(l=o.value,o=o.key),t.hash_put(n,o,l);return d(e.$default_proc())?(i=[e.$default_proc()],c(n,"default_proc=",t.to_a(i)),i[r(i["length"],1)]):(i=[e.$default()],c(n,"default=",t.to_a(i)),i[r(i["length"],1)]),n},st.$$arity=1),t.def(wt,"$select",lt=function(){var e,n=lt.$$p,r=n||a,i=this;if(n&&(lt.$$p=null),n&&(lt.$$p=null),!d(r))return c(i,"enum_for",["select"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l,u=t.hash(),f=0,h=i.$$keys,p=h.length;f<p;f++)o=h[f],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),l=r(o,s),!1!==l&&l!==a&&t.hash_put(u,o,s);return u},lt.$$arity=0),t.def(wt,"$select!",ct=function(){var e,n=ct.$$p,r=n||a,i=this;if(n&&(ct.$$p=null),n&&(ct.$$p=null),!d(r))return c(i,"enum_for",["select!"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l,u=a,f=0,h=i.$$keys,p=h.length;f<p;f++)o=h[f],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),l=r(o,s),!1!==l&&l!==a||(void 0!==t.hash_delete(i,o)&&(p--,f--),u=i);return u},ct.$$arity=0),t.def(wt,"$shift",ut=function(){var e,n=this,r=n.$$keys;return r.length>0?(e=r[0],e=e.$$is_string?e:e.key,[e,t.hash_delete(n,e)]):n.$default(a)},ut.$$arity=0),t.alias(wt,"size","length"),t.def(wt,"$slice",dt=function(e){var n,r,i=this;n=t.slice.call(arguments,0,arguments.length),r=n;for(var o=t.hash(),a=0,s=r.length;a<s;a++){var l=r[a],c=t.hash_get(i,l);void 0!==c&&t.hash_put(o,l,c)}return o},dt.$$arity=-1),t.alias(wt,"store","[]="),t.def(wt,"$to_a",ft=function(){for(var t,e,n=this,r=[],i=0,o=n.$$keys,a=o.length;i<a;i++)t=o[i],t.$$is_string?e=n.$$smap[t]:(e=t.value,t=t.key),r.push([t,e]);return r},ft.$$arity=0),t.def(wt,"$to_h",ht=function(){var e=this;if(e.$$class===t.Hash)return e;var n=new t.Hash;return t.hash_init(n),t.hash_clone(e,n),n},ht.$$arity=0),t.def(wt,"$to_hash",pt=function(){var t=this;return t},pt.$$arity=0),t.def(wt,"$to_proc",$t=function(){var t,e=this;return c(e,"proc",[],(t=function(e){var n=t.$$s||this;return null==e&&n.$raise(s(xt,"ArgumentError"),"no key given"),n["$[]"](e)},t.$$s=e,t.$$arity=-1,t))},$t.$$arity=0),t.alias(wt,"to_s","inspect"),t.def(wt,"$transform_keys",mt=function(){var e,n=mt.$$p,r=n||a,i=this;if(n&&(mt.$$p=null),n&&(mt.$$p=null),!d(r))return c(i,"enum_for",["transform_keys"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l=t.hash(),u=0,f=i.$$keys,h=f.length;u<h;u++)o=f[u],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),o=t.yield1(r,o),t.hash_put(l,o,s);return l},mt.$$arity=0),t.def(wt,"$transform_keys!",gt=function(){var e,n=gt.$$p,r=n||a,i=this;if(n&&(gt.$$p=null),n&&(gt.$$p=null),!d(r))return c(i,"enum_for",["transform_keys!"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));var o,s,l,u,f=t.slice.call(i.$$keys),h=f.length;for(o=0;o<h;o++)s=f[o],s.$$is_string?l=i.$$smap[s]:(l=s.value,s=s.key),u=t.yield1(r,s),t.hash_delete(i,s),t.hash_put(i,u,l);return i},gt.$$arity=0),t.def(wt,"$transform_values",vt=function(){var e,n=vt.$$p,r=n||a,i=this;if(n&&(vt.$$p=null),n&&(vt.$$p=null),!d(r))return c(i,"enum_for",["transform_values"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l=t.hash(),u=0,f=i.$$keys,h=f.length;u<h;u++)o=f[u],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),s=t.yield1(r,s),t.hash_put(l,o,s);return l},vt.$$arity=0),t.def(wt,"$transform_values!",yt=function(){var e,n=yt.$$p,r=n||a,i=this;if(n&&(yt.$$p=null),n&&(yt.$$p=null),!d(r))return c(i,"enum_for",["transform_values!"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=i,e.$$arity=0,e));for(var o,s,l=0,u=i.$$keys,f=u.length;l<f;l++)o=u[l],o.$$is_string?s=i.$$smap[o]:(s=o.value,o=o.key),s=t.yield1(r,s),t.hash_put(i,o,s);return i},yt.$$arity=0),t.alias(wt,"update","merge!"),t.alias(wt,"value?","has_value?"),t.alias(wt,"values_at","indexes"),t.def(wt,"$values",_t=function(){for(var t,e=this,n=[],r=0,i=e.$$keys,o=i.length;r<o;r++)t=i[r],t.$$is_string?n.push(e.$$smap[t]):n.push(t.value);return n},_t.$$arity=0),a&&"values"}(o[0],null,o)},Opal.modules["corelib/number"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t/e:t["$/"](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function s(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function l(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}var c=t.top,u=[],d=t.nil,f=t.const_get_qualified,h=t.const_get_relative,p=(t.breaker,t.slice,t.klass),$=t.truthy,m=t.send,g=t.hash2;return t.add_stubs(["$require","$bridge","$raise","$name","$class","$Float","$respond_to?","$coerce_to!","$__coerced__","$===","$!","$>","$**","$new","$<","$to_f","$==","$nan?","$infinite?","$enum_for","$+","$-","$gcd","$lcm","$%","$/","$frexp","$to_i","$ldexp","$rationalize","$*","$<<","$to_r","$truncate","$-@","$size","$<=","$>=","$<=>","$compare","$any?"]),c.$require("corelib/numeric"),function(c,u,v){var y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt,gt,vt,yt,_t,bt,wt,xt,kt,St,Ot,Ct,At,Et,Tt,Pt,Bt,Lt,It,Dt,Rt,jt=p(c,u,"Number"),Mt=[jt].concat(v);h(Mt,"Opal").$bridge(Number,jt),t.defineProperty(jt.$$prototype,"$$is_number",!0),jt.$$is_number_class=!0,function(e,n){var r,i=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(h(i,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new")}(t.get_singleton_class(jt),Mt),t.def(jt,"$coerce",y=function(t){var e=this;if(t===d)e.$raise(h(Mt,"TypeError"),"can't convert "+t.$class()+" into Float");else{if(t.$$is_string)return[e.$Float(t),e];if(t["$respond_to?"]("to_f"))return[h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Float"),"to_f"),e];if(t.$$is_number)return[t,e];e.$raise(h(Mt,"TypeError"),"can't convert "+t.$class()+" into Float")}},y.$$arity=1),t.def(jt,"$__id__",_=function(){var t=this;return 2*t+1},_.$$arity=0),t.alias(jt,"object_id","__id__"),t.def(jt,"$+",b=function(t){var e=this;return t.$$is_number?e+t:e.$__coerced__("+",t)},b.$$arity=1),t.def(jt,"$-",w=function(t){var e=this;return t.$$is_number?e-t:e.$__coerced__("-",t)},w.$$arity=1),t.def(jt,"$*",x=function(t){var e=this;return t.$$is_number?e*t:e.$__coerced__("*",t)},x.$$arity=1),t.def(jt,"$/",k=function(t){var e=this;return t.$$is_number?e/t:e.$__coerced__("/",t)},k.$$arity=1),t.alias(jt,"fdiv","/"),t.def(jt,"$%",S=function(t){var e=this;return t.$$is_number?t==-1/0?t:0!=t?t<0||e<0?(e%t+t)%t:e%t:void e.$raise(h(Mt,"ZeroDivisionError"),"divided by 0"):e.$__coerced__("%",t)},S.$$arity=1),t.def(jt,"$&",O=function(t){var e=this;return t.$$is_number?e&t:e.$__coerced__("&",t)},O.$$arity=1),t.def(jt,"$|",C=function(t){var e=this;return t.$$is_number?e|t:e.$__coerced__("|",t)},C.$$arity=1),t.def(jt,"$^",A=function(t){var e=this;return t.$$is_number?e^t:e.$__coerced__("^",t)},A.$$arity=1),t.def(jt,"$<",E=function(t){var e=this;return t.$$is_number?e<t:e.$__coerced__("<",t)},E.$$arity=1),t.def(jt,"$<=",T=function(t){var e=this;return t.$$is_number?e<=t:e.$__coerced__("<=",t)},T.$$arity=1),t.def(jt,"$>",P=function(t){var e=this;return t.$$is_number?e>t:e.$__coerced__(">",t)},P.$$arity=1),t.def(jt,"$>=",B=function(t){var e=this;return t.$$is_number?e>=t:e.$__coerced__(">=",t)},B.$$arity=1);var Ft=function(t,e){return e.$$is_number?isNaN(t)||isNaN(e)?d:t>e?1:t<e?-1:0:t.$__coerced__("<=>",e)};t.def(jt,"$<=>",L=function(e){var n=this;try{return Ft(n,e)}catch(r){if(!t.rescue(r,[h(Mt,"ArgumentError")]))throw r;try{return d}finally{t.pop_exception()}}},L.$$arity=1),t.def(jt,"$<<",I=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),t>0?e<<t:e>>-t},I.$$arity=1),t.def(jt,"$>>",D=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),t>0?e>>t:e<<-t},D.$$arity=1),t.def(jt,"$[]",R=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),t<0?0:t>=32?e<0?1:0:e>>t&1},R.$$arity=1),t.def(jt,"$+@",j=function(){var t=this;return+t},j.$$arity=0),t.def(jt,"$-@",M=function(){var t=this;return-t},M.$$arity=0),t.def(jt,"$~",F=function(){var t=this;return~t},F.$$arity=0),t.def(jt,"$**",N=function(t){var r,i,o=this;return $(h(Mt,"Integer")["$==="](t))?$($(r=h(Mt,"Integer")["$==="](o)["$!"]())?r:e(t,0))?Math.pow(o,t):h(Mt,"Rational").$new(o,1)["$**"](t):$((r=n(o,0))?$(i=h(Mt,"Float")["$==="](t))?i:h(Mt,"Rational")["$==="](t):n(o,0))?h(Mt,"Complex").$new(o,0)["$**"](t.$to_f()):$(null!=t.$$is_number)?Math.pow(o,t):o.$__coerced__("**",t)},N.$$arity=1),t.def(jt,"$===",z=function(t){var e=this;return t.$$is_number?e.valueOf()===t.valueOf():!!t["$respond_to?"]("==")&&t["$=="](e)},z.$$arity=1),t.def(jt,"$==",H=function(t){var e=this;return t.$$is_number?e.valueOf()===t.valueOf():!!t["$respond_to?"]("==")&&t["$=="](e)},H.$$arity=1),t.def(jt,"$abs",V=function(){var t=this;return Math.abs(t)},V.$$arity=0),t.def(jt,"$abs2",U=function(){var t=this;return Math.abs(t*t)},U.$$arity=0),t.def(jt,"$allbits?",q=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),(e&t)==t},q.$$arity=1),t.def(jt,"$anybits?",W=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),0!==(e&t)},W.$$arity=1),t.def(jt,"$angle",G=function(){var t=this;return $(t["$nan?"]())?t:0==t?1/t>0?0:Math.PI:t<0?Math.PI:0},G.$$arity=0),t.alias(jt,"arg","angle"),t.alias(jt,"phase","angle"),t.def(jt,"$bit_length",Y=function(){var t=this;if($(h(Mt,"Integer")["$==="](t))||t.$raise(h(Mt,"NoMethodError").$new("undefined method `bit_length` for "+t+":Float","bit_length")),0===t||-1===t)return 0;var e=0,n=t<0?~t:t;while(0!=n)e+=1,n>>>=1;return e},Y.$$arity=0),t.def(jt,"$ceil",K=function(t){var e=this;null==t&&(t=0);var n=e.$to_f();if(n%1===0&&t>=0)return n;var r=Math.pow(10,t),i=Math.ceil(n*r)/r;return n%1===0&&(i=Math.round(i)),i},K.$$arity=-1),t.def(jt,"$chr",X=function(t){var e=this;return String.fromCharCode(e)},X.$$arity=-1),t.def(jt,"$denominator",Z=function(){var e,n=Z.$$p,r=this,i=d,o=d,a=d;for(n&&(Z.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return $($(e=r["$nan?"]())?e:r["$infinite?"]())?1:m(r,t.find_super_dispatcher(r,"denominator",Z,!1),i,n)},Z.$$arity=0),t.def(jt,"$downto",J=function(t){var n,o=J.$$p,a=o||d,s=this;if(o&&(J.$$p=null),o&&(J.$$p=null),a===d)return m(s,"enum_for",["downto",t],(n=function(){var o=n.$$s||this;return $(h(Mt,"Numeric")["$==="](t))||o.$raise(h(Mt,"ArgumentError"),"comparison of "+o.$class()+" with "+t.$class()+" failed"),$(e(t,o))?0:r(i(o,t),1)},n.$$s=s,n.$$arity=0,n));t.$$is_number||s.$raise(h(Mt,"ArgumentError"),"comparison of "+s.$class()+" with "+t.$class()+" failed");for(var l=s;l>=t;l--)a(l);return s},J.$$arity=1),t.alias(jt,"eql?","=="),t.def(jt,"$equal?",Q=function(t){var e,n=this;return $(e=n["$=="](t))?e:isNaN(n)&&isNaN(t)},Q.$$arity=1),t.def(jt,"$even?",tt=function(){var t=this;return t%2===0},tt.$$arity=0),t.def(jt,"$floor",et=function(t){var e=this;null==t&&(t=0);var n=e.$to_f();if(n%1===0&&t>=0)return n;var r=Math.pow(10,t),i=Math.floor(n*r)/r;return n%1===0&&(i=Math.round(i)),i},et.$$arity=-1),t.def(jt,"$gcd",nt=function(t){var e=this;$(h(Mt,"Integer")["$==="](t))||e.$raise(h(Mt,"TypeError"),"not an integer");var n=Math.abs(e),r=Math.abs(t);while(n>0){var i=n;n=r%n,r=i}return r},nt.$$arity=1),t.def(jt,"$gcdlcm",rt=function(t){var e=this;return[e.$gcd(),e.$lcm()]},rt.$$arity=1),t.def(jt,"$integer?",it=function(){var t=this;return t%1===0},it.$$arity=0),t.def(jt,"$is_a?",ot=function(e){var n=ot.$$p,r=this,i=d,o=d,a=d;for(n&&(ot.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return!!$(e["$=="](h(Mt,"Integer"))?h(Mt,"Integer")["$==="](r):e["$=="](h(Mt,"Integer")))||(!!$(e["$=="](h(Mt,"Integer"))?h(Mt,"Integer")["$==="](r):e["$=="](h(Mt,"Integer")))||(!!$(e["$=="](h(Mt,"Float"))?h(Mt,"Float")["$==="](r):e["$=="](h(Mt,"Float")))||m(r,t.find_super_dispatcher(r,"is_a?",ot,!1),i,n)))},ot.$$arity=1),t.alias(jt,"kind_of?","is_a?"),t.def(jt,"$instance_of?",at=function(e){var n=at.$$p,r=this,i=d,o=d,a=d;for(n&&(at.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return!!$(e["$=="](h(Mt,"Integer"))?h(Mt,"Integer")["$==="](r):e["$=="](h(Mt,"Integer")))||(!!$(e["$=="](h(Mt,"Integer"))?h(Mt,"Integer")["$==="](r):e["$=="](h(Mt,"Integer")))||(!!$(e["$=="](h(Mt,"Float"))?h(Mt,"Float")["$==="](r):e["$=="](h(Mt,"Float")))||m(r,t.find_super_dispatcher(r,"instance_of?",at,!1),i,n)))},at.$$arity=1),t.def(jt,"$lcm",st=function(t){var e=this;return $(h(Mt,"Integer")["$==="](t))||e.$raise(h(Mt,"TypeError"),"not an integer"),0==e||0==t?0:Math.abs(e*t/e.$gcd(t))},st.$$arity=1),t.alias(jt,"magnitude","abs"),t.alias(jt,"modulo","%"),t.def(jt,"$next",lt=function(){var t=this;return t+1},lt.$$arity=0),t.def(jt,"$nobits?",ct=function(t){var e=this;return t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),0==(e&t)},ct.$$arity=1),t.def(jt,"$nonzero?",ut=function(){var t=this;return 0==t?d:t},ut.$$arity=0),t.def(jt,"$numerator",dt=function(){var e,n=dt.$$p,r=this,i=d,o=d,a=d;for(n&&(dt.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return $($(e=r["$nan?"]())?e:r["$infinite?"]())?r:m(r,t.find_super_dispatcher(r,"numerator",dt,!1),i,n)},dt.$$arity=0),t.def(jt,"$odd?",ft=function(){var t=this;return t%2!==0},ft.$$arity=0),t.def(jt,"$ord",ht=function(){var t=this;return t},ht.$$arity=0),t.def(jt,"$pow",pt=function(t,e){var n=this;return 0==n&&n.$raise(h(Mt,"ZeroDivisionError"),"divided by 0"),void 0===e?n["$**"](t):(h(Mt,"Integer")["$==="](t)||n.$raise(h(Mt,"TypeError"),"Integer#pow() 2nd argument not allowed unless a 1st argument is integer"),t<0&&n.$raise(h(Mt,"TypeError"),"Integer#pow() 1st argument cannot be negative when 2nd argument specified"),h(Mt,"Integer")["$==="](e)||n.$raise(h(Mt,"TypeError"),"Integer#pow() 2nd argument not allowed unless all arguments are integers"),0===e&&n.$raise(h(Mt,"ZeroDivisionError"),"divided by 0"),n["$**"](t)["$%"](e))},pt.$$arity=-2),t.def(jt,"$pred",$t=function(){var t=this;return t-1},$t.$$arity=0),t.def(jt,"$quo",mt=function(e){var n=mt.$$p,r=this,i=d,a=d,s=d;for(n&&(mt.$$p=null),a=0,s=arguments.length,i=new Array(s);a<s;a++)i[a]=arguments[a];return $(h(Mt,"Integer")["$==="](r))?m(r,t.find_super_dispatcher(r,"quo",mt,!1),i,n):o(r,e)},mt.$$arity=1),t.def(jt,"$rationalize",gt=function(e){var n,r,o=this,s=d,l=d;return arguments.length>1&&o.$raise(h(Mt,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),$(h(Mt,"Integer")["$==="](o))?h(Mt,"Rational").$new(o,1):$(o["$infinite?"]())?o.$raise(h(Mt,"FloatDomainError"),"Infinity"):$(o["$nan?"]())?o.$raise(h(Mt,"FloatDomainError"),"NaN"):$(null==e)?(r=h(Mt,"Math").$frexp(o),n=t.to_ary(r),s=null==n[0]?d:n[0],l=null==n[1]?d:n[1],s=h(Mt,"Math").$ldexp(s,f(h(Mt,"Float"),"MANT_DIG")).$to_i(),l=i(l,f(h(Mt,"Float"),"MANT_DIG")),h(Mt,"Rational").$new(a(2,s),1["$<<"](i(1,l))).$rationalize(h(Mt,"Rational").$new(1,1["$<<"](i(1,l))))):o.$to_r().$rationalize(e)},gt.$$arity=-1),t.def(jt,"$remainder",vt=function(t){var e=this;return i(e,a(t,o(e,t).$truncate()))},vt.$$arity=1),t.def(jt,"$round",yt=function(a){var c,u,p=this,m=d;if($(h(Mt,"Integer")["$==="](p))){if($(null==a))return p;if($($(c=h(Mt,"Float")["$==="](a))?a["$infinite?"]():c)&&p.$raise(h(Mt,"RangeError"),"Infinity"),a=h(Mt,"Opal")["$coerce_to!"](a,h(Mt,"Integer"),"to_int"),$(n(a,f(h(Mt,"Integer"),"MIN")))&&p.$raise(h(Mt,"RangeError"),"out of bounds"),$(a>=0))return p;if(a=a["$-@"](),.415241*a-.125>p.$size())return 0;var g=Math.pow(10,a),v=Math.floor((Math.abs(v)+g/2)/g)*g;return p<0?-v:v}if($($(c=p["$nan?"]())?null==a:c)&&p.$raise(h(Mt,"FloatDomainError"),"NaN"),a=h(Mt,"Opal")["$coerce_to!"](a||0,h(Mt,"Integer"),"to_int"),$(s(a,0)))$(p["$nan?"]())?p.$raise(h(Mt,"RangeError"),"NaN"):$(p["$infinite?"]())&&p.$raise(h(Mt,"FloatDomainError"),"Infinity");else{if(a["$=="](0))return Math.round(p);if($($(c=p["$nan?"]())?c:p["$infinite?"]()))return p}return u=h(Mt,"Math").$frexp(p),c=t.to_ary(u),null==c[0]?d:c[0],m=null==c[1]?d:c[1],$(l(a,i(r(f(h(Mt,"Float"),"DIG"),2),function(){return $(e(m,0))?o(m,4):i(o(m,3),1)}())))?p:$(n(a,function(){return $(e(m,0))?r(o(m,3),1):o(m,4)}()["$-@"]()))?0:Math.round(p*Math.pow(10,a))/Math.pow(10,a)},yt.$$arity=-1),t.def(jt,"$step",_t=function(e,n,r){var i,o,a,s,l,c,u,p=_t.$$p,$=p||d,v=this,y=d,_=d;if(p&&(_t.$$p=null),p&&(_t.$$p=null),i=t.slice.call(arguments,0,arguments.length),o=t.extract_kwargs(i),null==o)o=g([],{});else if(!o.$$is_hash)throw t.ArgumentError.$new("expected kwargs");function b(){void 0!==l&&(a=l),void 0===a&&(a=d),s===d&&v.$raise(h(Mt,"TypeError"),"step must be numeric"),0===s&&v.$raise(h(Mt,"ArgumentError"),"step can't be 0"),void 0!==c&&(s=c),s!==d&&null!=s||(s=1);var t=s["$<=>"](0);t===d&&v.$raise(h(Mt,"ArgumentError"),"0 can't be coerced into "+s.$class()),a!==d&&null!=a||(a=t>0?f(h(Mt,"Float"),"INFINITY"):f(h(Mt,"Float"),"INFINITY")["$-@"]()),h(Mt,"Opal").$compare(v,a)}function w(){if(s>0&&v>a||s<0&&v<a)return 0;if(s===1/0||s===-1/0)return 1;var t=Math.abs,e=Math.floor,n=(t(v)+t(a)+t(a-v))/t(s)*f(h(Mt,"Float"),"EPSILON");return n===1/0||n===-1/0?0:(n>.5&&(n=.5),e((a-v)/s+n)+1)}function x(){if(b(),0===s)return 1/0;if(s%1!==0)return w();if(s>0&&v>a||s<0&&v<a)return 0;var t=Math.ceil,e=Math.abs,n=e(v-a)+1,r=e(s);return t(n/r)}if(i.length>0&&(a=i[0],i.splice(0,1)),i.length>0&&(s=i[0],i.splice(0,1)),l=o.$$smap["to"],c=o.$$smap["by"],void 0!==a&&void 0!==l&&v.$raise(h(Mt,"ArgumentError"),"to is given twice"),void 0!==s&&void 0!==c&&v.$raise(h(Mt,"ArgumentError"),"step is given twice"),$===d)return y=[],_=g([],{}),void 0!==a&&y.push(a),void 0!==s&&y.push(s),void 0!==l&&t.hash_put(_,"to",l),void 0!==c&&t.hash_put(_,"by",c),_["$any?"]()&&y.push(_),m(v,"enum_for",["step"].concat(t.to_a(y)),(u=function(){u.$$s;return x()},u.$$s=v,u.$$arity=0,u));if(b(),0===s)while(1)$(v);if(v%1!==0||a%1!==0||s%1!==0){var k=w();if(k>0)if(s===1/0||s===-1/0)$(v);else{var S,O=0;if(s>0)while(O<k)S=O*s+v,a<S&&(S=a),$(S),O+=1;else while(O<k)S=O*s+v,a>S&&(S=a),$(S),O+=1}}else{var C=v;if(s>0)while(C<=a)$(C),C+=s;else while(C>=a)$(C),C+=s}return v},_t.$$arity=-1),t.alias(jt,"succ","next"),t.def(jt,"$times",bt=function(){var t,e=bt.$$p,n=e||d,r=this;if(e&&(bt.$$p=null),e&&(bt.$$p=null),!$(n))return m(r,"enum_for",["times"],(t=function(){var e=t.$$s||this;return e},t.$$s=r,t.$$arity=0,t));for(var i=0;i<r;i++)n(i);return r},bt.$$arity=0),t.def(jt,"$to_f",wt=function(){var t=this;return t},wt.$$arity=0),t.def(jt,"$to_i",xt=function(){var t=this;return parseInt(t,10)},xt.$$arity=0),t.alias(jt,"to_int","to_i"),t.def(jt,"$to_r",kt=function(){var e,n,r=this,o=d,s=d;return $(h(Mt,"Integer")["$==="](r))?h(Mt,"Rational").$new(r,1):(n=h(Mt,"Math").$frexp(r),e=t.to_ary(n),o=null==e[0]?d:e[0],s=null==e[1]?d:e[1],o=h(Mt,"Math").$ldexp(o,f(h(Mt,"Float"),"MANT_DIG")).$to_i(),s=i(s,f(h(Mt,"Float"),"MANT_DIG")),a(o,f(h(Mt,"Float"),"RADIX")["$**"](s)).$to_r())},kt.$$arity=0),t.def(jt,"$to_s",St=function(t){var r,i=this;return null==t&&(t=10),t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),$($(r=n(t,2))?r:e(t,36))&&i.$raise(h(Mt,"ArgumentError"),"invalid radix "+t),i.toString(t)},St.$$arity=-1),t.def(jt,"$truncate",Ot=function(t){var e=this;null==t&&(t=0);var n=e.$to_f();if(n%1===0&&t>=0)return n;var r=Math.pow(10,t),i=parseInt(n*r,10)/r;return n%1===0&&(i=Math.round(i)),i},Ot.$$arity=-1),t.alias(jt,"inspect","to_s"),t.def(jt,"$digits",Ct=function(t){var e=this;null==t&&(t=10),n(e,0)&&e.$raise(f(h(Mt,"Math"),"DomainError"),"out of domain"),t=h(Mt,"Opal")["$coerce_to!"](t,h(Mt,"Integer"),"to_int"),$(n(t,2))&&e.$raise(h(Mt,"ArgumentError"),"invalid radix "+t);var r=e,i=[];while(0!==r)i.push(r%t),r=parseInt(r/t,10);return i},Ct.$$arity=-1),t.def(jt,"$divmod",At=function(e){var n,r=At.$$p,i=this,o=d,a=d,s=d;for(r&&(At.$$p=null),a=0,s=arguments.length,o=new Array(s);a<s;a++)o[a]=arguments[a];return $($(n=i["$nan?"]())?n:e["$nan?"]())?i.$raise(h(Mt,"FloatDomainError"),"NaN"):$(i["$infinite?"]())?i.$raise(h(Mt,"FloatDomainError"),"Infinity"):m(i,t.find_super_dispatcher(i,"divmod",At,!1),o,r)},At.$$arity=1),t.def(jt,"$upto",Et=function(t){var e,o=Et.$$p,a=o||d,s=this;if(o&&(Et.$$p=null),o&&(Et.$$p=null),a===d)return m(s,"enum_for",["upto",t],(e=function(){var o=e.$$s||this;return $(h(Mt,"Numeric")["$==="](t))||o.$raise(h(Mt,"ArgumentError"),"comparison of "+o.$class()+" with "+t.$class()+" failed"),$(n(t,o))?0:r(i(t,o),1)},e.$$s=s,e.$$arity=0,e));t.$$is_number||s.$raise(h(Mt,"ArgumentError"),"comparison of "+s.$class()+" with "+t.$class()+" failed");for(var l=s;l<=t;l++)a(l);return s},Et.$$arity=1),t.def(jt,"$zero?",Tt=function(){var t=this;return 0==t},Tt.$$arity=0),t.def(jt,"$size",Pt=function(){return 4},Pt.$$arity=0),t.def(jt,"$nan?",Bt=function(){var t=this;return isNaN(t)},Bt.$$arity=0),t.def(jt,"$finite?",Lt=function(){var t=this;return t!=1/0&&t!=-1/0&&!isNaN(t)},Lt.$$arity=0),t.def(jt,"$infinite?",It=function(){var t=this;return t==1/0?1:t==-1/0?-1:d},It.$$arity=0),t.def(jt,"$positive?",Dt=function(){var t=this;return 0!=t&&(t==1/0||1/t>0)},Dt.$$arity=0),t.def(jt,"$negative?",Rt=function(){var t=this;return t==-1/0||1/t<0},Rt.$$arity=0)}(u[0],h(u,"Numeric"),u),t.const_set(u[0],"Fixnum",h(u,"Number")),function(e,n,r){var i=p(e,n,"Integer"),o=[i].concat(r);i.$$is_number_class=!0,function(e,n){var r,i,o,a=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(h(a,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new"),t.def(e,"$===",i=function(t){return!!t.$$is_number&&t%1===0},i.$$arity=1),t.def(e,"$sqrt",o=function(t){var e=this;return t=h(a,"Opal")["$coerce_to!"](t,h(a,"Integer"),"to_int"),t<0&&e.$raise(f(h(a,"Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"'),parseInt(Math.sqrt(t),10)},o.$$arity=1)}(t.get_singleton_class(i),o),t.const_set(o[0],"MAX",Math.pow(2,30)-1),t.const_set(o[0],"MIN",-Math.pow(2,30))}(u[0],h(u,"Numeric"),u),function(e,n,r){var i=p(e,n,"Float"),o=[i].concat(r);return i.$$is_number_class=!0,function(e,n){var r,i,o=[e].concat(n);t.def(e,"$allocate",r=function(){var t=this;return t.$raise(h(o,"TypeError"),"allocator undefined for "+t.$name())},r.$$arity=0),t.udef(e,"$new"),t.def(e,"$===",i=function(t){return!!t.$$is_number},i.$$arity=1)}(t.get_singleton_class(i),o),t.const_set(o[0],"INFINITY",1/0),t.const_set(o[0],"MAX",Number.MAX_VALUE),t.const_set(o[0],"MIN",Number.MIN_VALUE),t.const_set(o[0],"NAN",NaN),t.const_set(o[0],"DIG",15),t.const_set(o[0],"MANT_DIG",53),t.const_set(o[0],"RADIX",2),t.const_set(o[0],"EPSILON",Number.EPSILON||2220446049250313e-31)}(u[0],h(u,"Numeric"),u)},Opal.modules["corelib/range"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t/e:t["$/"](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function s(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function l(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}var c=t.top,u=[],d=t.nil,f=t.const_get_qualified,h=t.const_get_relative,p=(t.breaker,t.slice,t.klass),$=t.truthy,m=t.send;return t.add_stubs(["$require","$include","$attr_reader","$raise","$<=>","$include?","$<=","$<","$enum_for","$upto","$to_proc","$respond_to?","$class","$succ","$!","$==","$===","$exclude_end?","$eql?","$begin","$end","$last","$to_a","$>","$-","$abs","$to_i","$coerce_to!","$ceil","$/","$size","$loop","$+","$*","$>=","$each_with_index","$%","$bsearch","$inspect","$[]","$hash"]),c.$require("corelib/enumerable"),function(c,u,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R=p(c,u,"Range"),j=[R].concat(g);return R.$$prototype.begin=R.$$prototype.end=R.$$prototype.excl=d,R.$include(h(j,"Enumerable")),R.$$prototype.$$is_range=!0,R.$attr_reader("begin","end"),t.def(R,"$initialize",v=function(t,e,n){var r=this;return null==n&&(n=!1),$(r.begin)&&r.$raise(h(j,"NameError"),"'initialize' called twice"),$(t["$<=>"](e))||r.$raise(h(j,"ArgumentError"),"bad value for range"),r.begin=t,r.end=e,r.excl=n},v.$$arity=-3),t.def(R,"$==",y=function(t){var e=this;return!!t.$$is_range&&(e.excl===t.excl&&e.begin==t.begin&&e.end==t.end)},y.$$arity=1),t.def(R,"$===",_=function(t){var e=this;return e["$include?"](t)},_.$$arity=1),t.def(R,"$cover?",b=function(t){var r,i=this,o=d,a=d;return o=i.begin["$<=>"](t),!!$($(r=o)?e(o,0):r)&&(a=t["$<=>"](i.end),$(i.excl)?$(r=a)?n(a,0):r:$(r=a)?e(a,0):r)},b.$$arity=1),t.def(R,"$each",w=function(){var e,r,i,o=w.$$p,a=o||d,s=this,l=d,c=d;if(o&&(w.$$p=null),o&&(w.$$p=null),a===d)return s.$enum_for("each");if(s.begin.$$is_number&&s.end.$$is_number){for(s.begin%1===0&&s.end%1===0||s.$raise(h(j,"TypeError"),"can't iterate from Float"),r=s.begin,i=s.end+function(){return $(s.excl)?0:1}();r<i;r++)a(r);return s}if(s.begin.$$is_string&&s.end.$$is_string)return m(s.begin,"upto",[s.end,s.excl],a.$to_proc()),s;l=s.begin,c=s.end,$(l["$respond_to?"]("succ"))||s.$raise(h(j,"TypeError"),"can't iterate from "+l.$class());while($(n(l["$<=>"](c),0)))t.yield1(a,l),l=l.$succ();return $($(e=s.excl["$!"]())?l["$=="](c):e)&&t.yield1(a,l),s},w.$$arity=0),t.def(R,"$eql?",x=function(t){var e,n,r=this;return!!$(h(j,"Range")["$==="](t))&&($(e=$(n=r.excl["$==="](t["$exclude_end?"]()))?r.begin["$eql?"](t.$begin()):n)?r.end["$eql?"](t.$end()):e)},x.$$arity=1),t.def(R,"$exclude_end?",k=function(){var t=this;return t.excl},k.$$arity=0),t.def(R,"$first",S=function(e){var n=S.$$p,r=this,i=d,o=d,a=d;for(n&&(S.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return $(null==e)?r.begin:m(r,t.find_super_dispatcher(r,"first",S,!1),i,n)},S.$$arity=-1),t.alias(R,"include?","cover?"),t.def(R,"$last",O=function(t){var e=this;return $(null==t)?e.end:e.$to_a().$last(t)},O.$$arity=-1),t.def(R,"$max",C=function(){var e,n=C.$$p,i=n||d,o=this,a=d,s=d,l=d;for(n&&(C.$$p=null),s=0,l=arguments.length,a=new Array(l);s<l;s++)a[s]=arguments[s];return i!==d?m(o,t.find_super_dispatcher(o,"max",C,!1),a,n):$(r(o.begin,o.end))||$($(e=o.excl)?o.begin["$=="](o.end):e)?d:o.excl?o.end-1:o.end},C.$$arity=0),t.alias(R,"member?","cover?"),t.def(R,"$min",A=function(){var e,n=A.$$p,i=n||d,o=this,a=d,s=d,l=d;for(n&&(A.$$p=null),s=0,l=arguments.length,a=new Array(l);s<l;s++)a[s]=arguments[s];return i!==d?m(o,t.find_super_dispatcher(o,"min",A,!1),a,n):$(r(o.begin,o.end))||$($(e=o.excl)?o.begin["$=="](o.end):e)?d:o.begin},A.$$arity=0),t.def(R,"$size",E=function(){var t,e=this,r=d,o=d,a=d;return r=e.begin,o=e.end,$(e.excl)&&(o=i(o,1)),$($(t=h(j,"Numeric")["$==="](r))?h(j,"Numeric")["$==="](o):t)?$(n(o,r))?0:(a=f(h(j,"Float"),"INFINITY"),$([r.$abs(),o.$abs()]["$include?"](a))?a:(Math.abs(o-r)+1).$to_i()):d},E.$$arity=0),t.def(R,"$step",T=function(e){var n,i,c,u=T.$$p,p=u||d,g=this,v=d;function y(){e.$$is_number||(e=h(j,"Opal")["$coerce_to!"](e,h(j,"Integer"),"to_int")),e<0?g.$raise(h(j,"ArgumentError"),"step can't be negative"):0===e&&g.$raise(h(j,"ArgumentError"),"step can't be 0")}function _(){if(!g.begin["$respond_to?"]("succ"))return d;if(g.begin.$$is_string&&g.end.$$is_string)return d;if(e%1===0)return o(g.$size(),e).$ceil();var t,n=g.begin,r=g.end,i=Math.abs,a=Math.floor,s=(i(n)+i(r)+i(r-n))/i(e)*f(h(j,"Float"),"EPSILON");return s>.5&&(s=.5),g.excl?(t=a((r-n)/e-s),t*e+n<r&&t++):t=a((r-n)/e+s)+1,t}return u&&(T.$$p=null),null==e&&(e=1),p===d?m(g,"enum_for",["step",e],(n=function(){n.$$s;return y(),_()},n.$$s=g,n.$$arity=0,n)):(y(),$(g.begin.$$is_number&&g.end.$$is_number)?(v=0,function(){var n=t.new_brk();try{m(g,"loop",[],(i=function(){var o=i.$$s||this,c=d;return null==o.begin&&(o.begin=d),null==o.excl&&(o.excl=d),null==o.end&&(o.end=d),c=a(o.begin,s(v,e)),$(o.excl)?$(l(c,o.end))&&t.brk(d,n):$(r(c,o.end))&&t.brk(d,n),t.yield1(p,c),v=a(v,1)},i.$$s=g,i.$$brk=n,i.$$arity=0,i))}catch(o){if(o===n)return o.$v;throw o}}()):(g.begin.$$is_string&&g.end.$$is_string&&e%1!==0&&g.$raise(h(j,"TypeError"),"no implicit conversion to float from string"),m(g,"each_with_index",[],(c=function(n,r){c.$$s;return null==n&&(n=d),null==r&&(r=d),r["$%"](e)["$=="](0)?t.yield1(p,n):d},c.$$s=g,c.$$arity=2,c))),g)},T.$$arity=-1),t.def(R,"$bsearch",P=function(){var t=P.$$p,e=t||d,n=this;return t&&(P.$$p=null),t&&(P.$$p=null),e===d?n.$enum_for("bsearch"):($(n.begin.$$is_number&&n.end.$$is_number)||n.$raise(h(j,"TypeError"),"can't do binary search for "+n.begin.$class()),m(n.$to_a(),"bsearch",[],e.$to_proc()))},P.$$arity=0),t.def(R,"$to_s",B=function(){var t=this;return""+t.begin+function(){return $(t.excl)?"...":".."}()+t.end},B.$$arity=0),t.def(R,"$inspect",L=function(){var t=this;return""+t.begin.$inspect()+function(){return $(t.excl)?"...":".."}()+t.end.$inspect()},L.$$arity=0),t.def(R,"$marshal_load",I=function(t){var e=this;return e.begin=t["$[]"]("begin"),e.end=t["$[]"]("end"),e.excl=t["$[]"]("excl")},I.$$arity=1),t.def(R,"$hash",D=function(){var t=this;return[t.begin,t.end,t.excl].$hash()},D.$$arity=0),d&&"hash"}(u[0],null,u)},Opal.modules["corelib/proc"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice),o=t.klass,a=t.truthy;return t.add_stubs(["$raise","$coerce_to!"]),function(e,s,l){var c,u,d,f,h,p,$,m,g,v,y=o(e,s,"Proc"),_=[y].concat(l);return t.defineProperty(y.$$prototype,"$$is_proc",!0),t.defineProperty(y.$$prototype,"$$is_lambda",!1),t.defs(y,"$new",c=function(){var t=c.$$p,e=t||n,i=this;return t&&(c.$$p=null),t&&(c.$$p=null),a(e)||i.$raise(r(_,"ArgumentError"),"tried to create a Proc object without a block"),e},c.$$arity=0),t.def(y,"$call",u=function(e){var r,i,o=u.$$p,a=o||n,s=this;o&&(u.$$p=null),o&&(u.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,a!==n&&(s.$$p=a);var l,c=s.$$brk;if(c)try{l=s.$$is_lambda?s.apply(null,i):t.yieldX(s,i)}catch(d){if(d===c)return c.$v;throw d}else l=s.$$is_lambda?s.apply(null,i):t.yieldX(s,i);return l},u.$$arity=-1),t.alias(y,"[]","call"),t.alias(y,"===","call"),t.alias(y,"yield","call"),t.def(y,"$to_proc",d=function(){var t=this;return t},d.$$arity=0),t.def(y,"$lambda?",f=function(){var t=this;return!!t.$$is_lambda},f.$$arity=0),t.def(y,"$arity",h=function(){var t=this;return t.$$is_curried?-1:t.$$arity},h.$$arity=0),t.def(y,"$source_location",p=function(){var t=this;return t.$$is_curried,n},p.$$arity=0),t.def(y,"$binding",$=function(){var t=this;return t.$$is_curried&&t.$raise(r(_,"ArgumentError"),"Can't create Binding"),n},$.$$arity=0),t.def(y,"$parameters",m=function(){var t=this;if(t.$$is_curried)return[["rest"]];if(t.$$parameters){if(t.$$is_lambda)return t.$$parameters;var e,n,r=[];for(e=0,n=t.$$parameters.length;e<n;e++){var i=t.$$parameters[e];"req"===i[0]&&(i=["opt",i[1]]),r.push(i)}return r}return[]},m.$$arity=0),t.def(y,"$curry",g=function(t){var e=this;function n(){var o,a=i.call(arguments),s=a.length;return s>t&&e.$$is_lambda&&!e.$$is_curried&&e.$raise(r(_,"ArgumentError"),"wrong number of arguments ("+s+" for "+t+")"),s>=t?e.$call.apply(e,a):(o=function(){return n.apply(null,a.concat(i.call(arguments)))},o.$$is_lambda=e.$$is_lambda,o.$$is_curried=!0,o)}return void 0===t?t=e.length:(t=r(_,"Opal")["$coerce_to!"](t,r(_,"Integer"),"to_int"),e.$$is_lambda&&t!==e.length&&e.$raise(r(_,"ArgumentError"),"wrong number of arguments ("+t+" for "+e.length+")")),n.$$is_lambda=e.$$is_lambda,n.$$is_curried=!0,n},g.$$arity=-1),t.def(y,"$dup",v=function(){var t=this,e=t.$$original_proc||t,n=function(){return e.apply(this,arguments)};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},v.$$arity=0),t.alias(y,"clone","dup")}(e[0],Function,e)},Opal.modules["corelib/method"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.truthy;return t.add_stubs(["$attr_reader","$arity","$new","$class","$join","$source_location","$raise"]),function(e,a,s){var l,c,u,d,f,h,p,$,m,g=i(e,a,"Method"),v=[g].concat(s);g.$$prototype.method=g.$$prototype.receiver=g.$$prototype.owner=g.$$prototype.name=n,g.$attr_reader("owner","receiver","name"),t.def(g,"$initialize",l=function(t,e,n,r){var i=this;return i.receiver=t,i.owner=e,i.name=r,i.method=n},l.$$arity=4),t.def(g,"$arity",c=function(){var t=this;return t.method.$arity()},c.$$arity=0),t.def(g,"$parameters",u=function(){var t=this;return t.method.$$parameters},u.$$arity=0),t.def(g,"$source_location",d=function(){var t,e=this;return o(t=e.method.$$source_location)?t:["(eval)",0]},d.$$arity=0),t.def(g,"$comments",f=function(){var t,e=this;return o(t=e.method.$$comments)?t:[]},f.$$arity=0),t.def(g,"$call",h=function(e){var r,i,o=h.$$p,a=o||n,s=this;return o&&(h.$$p=null),o&&(h.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,s.method.$$p=a,s.method.apply(s.receiver,i)},h.$$arity=-1),t.alias(g,"[]","call"),t.def(g,"$unbind",p=function(){var t=this;return r(v,"UnboundMethod").$new(t.receiver.$class(),t.owner,t.method,t.name)},p.$$arity=0),t.def(g,"$to_proc",$=function(){var t=this,e=t.$call.bind(t);return e.$$unbound=t.method,e.$$is_lambda=!0,e.$$arity=t.method.$$arity,e.$$parameters=t.method.$$parameters,e},$.$$arity=0),t.def(g,"$inspect",m=function(){var t=this;return"#<"+t.$class()+": "+t.receiver.$class()+"#"+t.name+" (defined in "+t.owner+" in "+t.$source_location().$join(":")+")>"},m.$$arity=0)}(e[0],null,e),function(e,a,s){var l,c,u,d,f,h,p,$=i(e,a,"UnboundMethod"),m=[$].concat(s);return $.$$prototype.method=$.$$prototype.owner=$.$$prototype.name=$.$$prototype.source=n,$.$attr_reader("source","owner","name"),t.def($,"$initialize",l=function(t,e,n,r){var i=this;return i.source=t,i.owner=e,i.method=n,i.name=r},l.$$arity=4),t.def($,"$arity",c=function(){var t=this;return t.method.$arity()},c.$$arity=0),t.def($,"$parameters",u=function(){var t=this;return t.method.$$parameters},u.$$arity=0),t.def($,"$source_location",d=function(){var t,e=this;return o(t=e.method.$$source_location)?t:["(eval)",0]},d.$$arity=0),t.def($,"$comments",f=function(){var t,e=this;return o(t=e.method.$$comments)?t:[]},f.$$arity=0),t.def($,"$bind",h=function(e){var n=this;if(n.owner.$$is_module||t.is_a(e,n.owner))return r(m,"Method").$new(e,n.owner,n.method,n.name);n.$raise(r(m,"TypeError"),"can't bind singleton method to a different class (expected "+e+".kind_of?("+n.owner+" to be true)")},h.$$arity=1),t.def($,"$inspect",p=function(){var t=this;return"#<"+t.$class()+": "+t.source+"#"+t.name+" (defined in "+t.owner+" in "+t.$source_location().$join(":")+")>"},p.$$arity=0),n&&"inspect"}(e[0],null,e)},Opal.modules["corelib/variables"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.gvars),o=t.hash2;return t.add_stubs(["$new"]),i["&"]=i["~"]=i["`"]=i["'"]=n,i.LOADED_FEATURES=i['"']=t.loaded_features,i.LOAD_PATH=i[":"]=[],i["/"]="\n",i[","]=n,t.const_set(e[0],"ARGV",[]),t.const_set(e[0],"ARGF",r(e,"Object").$new()),t.const_set(e[0],"ENV",o([],{})),i.VERBOSE=!1,i.DEBUG=!1,i.SAFE=0},Opal.modules["opal/regexp_anchors"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module);return t.add_stubs(["$==","$new"]),function(e,o){var a=i(e,"Opal"),s=[a].concat(o);t.const_set(s[0],"REGEXP_START",function(){return r(s,"RUBY_ENGINE")["$=="]("opal")?"^":n}()),t.const_set(s[0],"REGEXP_END",function(){return r(s,"RUBY_ENGINE")["$=="]("opal")?"$":n}()),t.const_set(s[0],"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),t.const_set(s[0],"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),t.const_set(s[0],"INLINE_IDENTIFIER_REGEXP",r(s,"Regexp").$new("[^"+r(s,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+r(s,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]")),t.const_set(s[0],"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),t.const_set(s[0],"CONST_NAME_REGEXP",r(s,"Regexp").$new(r(s,"REGEXP_START")+"(::)?[A-Z][^"+r(s,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+r(s,"REGEXP_END")))}(e[0],e)},Opal.modules["opal/mini"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;return t.add_stubs(["$require"]),e.$require("opal/base"),e.$require("corelib/nil"),e.$require("corelib/boolean"),e.$require("corelib/string"),e.$require("corelib/comparable"),e.$require("corelib/enumerable"),e.$require("corelib/enumerator"),e.$require("corelib/array"),e.$require("corelib/hash"),e.$require("corelib/number"),e.$require("corelib/range"),e.$require("corelib/proc"),e.$require("corelib/method"),e.$require("corelib/regexp"),e.$require("corelib/variables"),e.$require("opal/regexp_anchors")},Opal.modules["corelib/string/encoding"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}var n,r,i,o,a,s=t.top,l=[],c=t.nil,u=t.const_get_qualified,d=t.const_get_relative,f=(t.breaker,t.slice,t.klass),h=t.hash2,p=t.truthy,$=t.send;return t.add_stubs(["$require","$+","$[]","$new","$to_proc","$each","$const_set","$sub","$==","$default_external","$upcase","$raise","$attr_accessor","$attr_reader","$register","$length","$bytes","$to_a","$each_byte","$bytesize","$enum_for","$force_encoding","$dup","$coerce_to!","$find","$getbyte"]),s.$require("corelib/string"),function(n,r,i){var o,a,s,l,u,m,g,v,y,_,b=f(n,r,"Encoding"),w=[b].concat(i);b.$$prototype.ascii=b.$$prototype.dummy=b.$$prototype.name=c,t.defineProperty(b,"$$register",{}),t.defs(b,"$register",o=function(t,n){var r,i,a=o.$$p,s=a||c,l=this,u=c,f=c,m=c;return a&&(o.$$p=null),a&&(o.$$p=null),null==n&&(n=h([],{})),u=e([t],p(r=n["$[]"]("aliases"))?r:[]),f=$(d(w,"Class"),"new",[l],s.$to_proc()).$new(t,u,!!p(r=n["$[]"]("ascii"))&&r,!!p(r=n["$[]"]("dummy"))&&r),m=l["$$register"],$(u,"each",[],(i=function(t){var e=i.$$s||this;return null==t&&(t=c),e.$const_set(t.$sub("-","_"),f),m["$$"+t]=f},i.$$s=l,i.$$arity=1,i))},o.$$arity=-2),t.defs(b,"$find",a=function(t){var e,n=this,r=c,i=c;return t["$=="]("default_external")?n.$default_external():(r=n["$$register"],i=p(e=r["$$"+t])?e:r["$$"+t.$upcase()],p(i)||n.$raise(d(w,"ArgumentError"),"unknown encoding name - "+t),i)},a.$$arity=1),function(t,e){[t].concat(e);t.$attr_accessor("default_external")}(t.get_singleton_class(b),w),b.$attr_reader("name","names"),t.def(b,"$initialize",s=function(t,e,n,r){var i=this;return i.name=t,i.names=e,i.ascii=n,i.dummy=r},s.$$arity=4),t.def(b,"$ascii_compatible?",l=function(){var t=this;return t.ascii},l.$$arity=0),t.def(b,"$dummy?",u=function(){var t=this;return t.dummy},u.$$arity=0),t.def(b,"$to_s",m=function(){var t=this;return t.name},m.$$arity=0),t.def(b,"$inspect",g=function(){var t=this;return"#<Encoding:"+t.name+function(){return p(t.dummy)?" (dummy)":c}()+">"},g.$$arity=0),t.def(b,"$each_byte",v=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(d(w,"NotImplementedError"))},v.$$arity=-1),t.def(b,"$getbyte",y=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(d(w,"NotImplementedError"))},y.$$arity=-1),t.def(b,"$bytesize",_=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(d(w,"NotImplementedError"))},_.$$arity=-1),function(t,e,n){var r=f(t,e,"EncodingError");[r].concat(n)}(w[0],d(w,"StandardError"),w),function(t,e,n){var r=f(t,e,"CompatibilityError");[r].concat(n)}(w[0],d(w,"EncodingError"),w)}(l[0],null,l),$(d(l,"Encoding"),"register",["UTF-8",h(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],(n=function(){var e,r,i=n.$$s||this;return t.def(i,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o<a;o++){var s=n.charCodeAt(o);if(s<=127)t.yield1(i,s);else for(var l=encodeURIComponent(n.charAt(o)).substr(1).split("%"),u=0,d=l.length;u<d;u++)t.yield1(i,parseInt(l[u],16))}},e.$$arity=1),t.def(i,"$bytesize",r=function(t){return t.$bytes().$length()},r.$$arity=1),c&&"bytesize"},n.$$s=s,n.$$arity=0,n)),$(d(l,"Encoding"),"register",["UTF-16LE"],(r=function(){var e,n,i=r.$$s||this;return t.def(i,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o<a;o++){var s=n.charCodeAt(o);t.yield1(i,255&s),t.yield1(i,s>>8)}},e.$$arity=1),t.def(i,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},r.$$s=s,r.$$arity=0,r)),$(d(l,"Encoding"),"register",["UTF-16BE"],(i=function(){var e,n,r=i.$$s||this;return t.def(r,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o<a;o++){var s=n.charCodeAt(o);t.yield1(i,s>>8),t.yield1(i,255&s)}},e.$$arity=1),t.def(r,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},i.$$s=s,i.$$arity=0,i)),$(d(l,"Encoding"),"register",["UTF-32LE"],(o=function(){var e,n,r=o.$$s||this;return t.def(r,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o<a;o++){var s=n.charCodeAt(o);t.yield1(i,255&s),t.yield1(i,s>>8)}},e.$$arity=1),t.def(r,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},o.$$s=s,o.$$arity=0,o)),$(d(l,"Encoding"),"register",["ASCII-8BIT",h(["aliases","ascii","dummy"],{aliases:["BINARY","US-ASCII","ASCII"],ascii:!0,dummy:!0})],(a=function(){var e,n,r=a.$$s||this;return t.def(r,"$each_byte",e=function(n){var r=e.$$p,i=r||c;r&&(e.$$p=null),r&&(e.$$p=null);for(var o=0,a=n.length;o<a;o++){var s=n.charCodeAt(o);t.yield1(i,255&s),t.yield1(i,s>>8)}},e.$$arity=1),t.def(r,"$bytesize",n=function(t){return t.$bytes().$length()},n.$$arity=1),c&&"bytesize"},a.$$s=s,a.$$arity=0,a)),function(e,n,r){var i,o,a,s,l,h,p,m=f(e,n,"String"),g=[m].concat(r);return m.$$prototype.encoding=c,m.$attr_reader("encoding"),t.defineProperty(String.prototype,"encoding",u(d(g,"Encoding"),"UTF_16LE")),t.def(m,"$bytes",i=function(){var t=this;return t.$each_byte().$to_a()},i.$$arity=0),t.def(m,"$bytesize",o=function(){var t=this;return t.encoding.$bytesize(t)},o.$$arity=0),t.def(m,"$each_byte",a=function(){var t=a.$$p,e=t||c,n=this;return t&&(a.$$p=null),t&&(a.$$p=null),e===c?n.$enum_for("each_byte"):($(n.encoding,"each_byte",[n],e.$to_proc()),n)},a.$$arity=0),t.def(m,"$encode",s=function(t){var e=this;return e.$dup().$force_encoding(t)},s.$$arity=1),t.def(m,"$force_encoding",l=function(t){var e=this;return t===e.encoding?e:(t=d(g,"Opal")["$coerce_to!"](t,d(g,"String"),"to_s"),t=d(g,"Encoding").$find(t),t===e.encoding||(e.encoding=t),e)},l.$$arity=1),t.def(m,"$getbyte",h=function(t){var e=this;return e.encoding.$getbyte(e,t)},h.$$arity=1),t.def(m,"$valid_encoding?",p=function(){return!0},p.$$arity=0),c&&"valid_encoding?"}(l[0],null,l)},Opal.modules["corelib/struct"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}var a=t.top,s=[],l=t.nil,c=(t.const_get_qualified,t.const_get_relative),u=(t.breaker,t.slice,t.klass),d=t.hash2,f=t.truthy,h=t.send;return t.add_stubs(["$require","$include","$const_name!","$unshift","$map","$coerce_to!","$new","$each","$define_struct_attribute","$allocate","$initialize","$alias_method","$module_eval","$to_proc","$const_set","$==","$raise","$<<","$members","$define_method","$instance_eval","$class","$last","$>","$length","$-","$keys","$any?","$join","$[]","$[]=","$each_with_index","$hash","$===","$<","$-@","$size","$>=","$include?","$to_sym","$instance_of?","$__id__","$eql?","$enum_for","$name","$+","$each_pair","$inspect","$each_with_object","$flatten","$to_a","$respond_to?","$dig"]),a.$require("corelib/enumerable"),function(a,s,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I=u(a,s,"Struct"),D=[I].concat(p);return I.$include(c(D,"Enumerable")),t.defs(I,"$new",$=function(e,n,r){var i,o,a,s,u,p,m=$.$$p,g=m||l,v=this,y=l;if(m&&($.$$p=null),m&&($.$$p=null),i=t.slice.call(arguments,1,arguments.length),o=t.extract_kwargs(i),null==o)o=d([],{});else if(!o.$$is_hash)throw t.ArgumentError.$new("expected kwargs");if(a=i,s=o.$$smap["keyword_init"],null==s&&(s=!1),f(e))try{e=c(D,"Opal")["$const_name!"](e)}catch(_){if(!t.rescue(_,[c(D,"TypeError"),c(D,"NameError")]))throw _;try{a.$unshift(e),e=l}finally{t.pop_exception()}}return h(a,"map",[],(u=function(t){u.$$s;return null==t&&(t=l),c(D,"Opal")["$coerce_to!"](t,c(D,"String"),"to_str")},u.$$s=v,u.$$arity=1,u)),y=h(c(D,"Class"),"new",[v],(p=function(){var e,n=p.$$s||this;return h(a,"each",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=l),n.$define_struct_attribute(t)},e.$$s=n,e.$$arity=1,e)),function(e,n){var r;[e].concat(n);return t.def(e,"$new",r=function(e){var n,r,i=this,o=l;return n=t.slice.call(arguments,0,arguments.length),r=n,o=i.$allocate(),o.$$data={},h(o,"initialize",t.to_a(r)),o},r.$$arity=-1),e.$alias_method("[]","new")}(t.get_singleton_class(n),D)},p.$$s=v,p.$$arity=0,p)),f(g)&&h(y,"module_eval",[],g.$to_proc()),y.$$keyword_init=s,f(e)&&c(D,"Struct").$const_set(e,y),y},$.$$arity=-2),t.defs(I,"$define_struct_attribute",m=function(t){var e,n,r=this;return r["$=="](c(D,"Struct"))&&r.$raise(c(D,"ArgumentError"),"you cannot define attributes to the Struct class"),r.$members()["$<<"](t),h(r,"define_method",[t],(e=function(){var n=e.$$s||this;return n.$$data[t]},e.$$s=r,e.$$arity=0,e)),h(r,"define_method",[t+"="],(n=function(e){var r=n.$$s||this;return null==e&&(e=l),r.$$data[t]=e},n.$$s=r,n.$$arity=1,n))},m.$$arity=1),t.defs(I,"$members",g=function(){var t,e=this;return null==e.members&&(e.members=l),e["$=="](c(D,"Struct"))&&e.$raise(c(D,"ArgumentError"),"the Struct class has no members"),e.members=f(t=e.members)?t:[]},g.$$arity=0),t.defs(I,"$inherited",v=function(t){var e,n=this,r=l;return null==n.members&&(n.members=l),r=n.members,h(t,"instance_eval",[],(e=function(){var t=e.$$s||this;return t.members=r},e.$$s=n,e.$$arity=0,e))},v.$$arity=1),t.def(I,"$initialize",y=function(r){var i,o,a,s,u,p=this,$=l,m=l;return i=t.slice.call(arguments,0,arguments.length),o=i,f(p.$class().$$keyword_init)?($=f(a=o.$last())?a:d([],{}),f(f(a=e(o.$length(),1))?a:1===o.length&&!$.$$is_hash)&&p.$raise(c(D,"ArgumentError"),"wrong number of arguments (given "+o.$length()+", expected 0)"),m=n($.$keys(),p.$class().$members()),f(m["$any?"]())&&p.$raise(c(D,"ArgumentError"),"unknown keywords: "+m.$join(", ")),h(p.$class().$members(),"each",[],(s=function(e){var r=s.$$s||this,i=l;return null==e&&(e=l),i=[e,$["$[]"](e)],h(r,"[]=",t.to_a(i)),i[n(i["length"],1)]},s.$$s=p,s.$$arity=1,s))):(f(e(o.$length(),p.$class().$members().$length()))&&p.$raise(c(D,"ArgumentError"),"struct size differs"),h(p.$class().$members(),"each_with_index",[],(u=function(e,r){var i=u.$$s||this,a=l;return null==e&&(e=l),null==r&&(r=l),a=[e,o["$[]"](r)],h(i,"[]=",t.to_a(a)),a[n(a["length"],1)]},u.$$s=p,u.$$arity=2,u)))},y.$$arity=-1),t.def(I,"$members",_=function(){var t=this;return t.$class().$members()},_.$$arity=0),t.def(I,"$hash",b=function(){var t=this;return c(D,"Hash").$new(t.$$data).$hash()},b.$$arity=0),t.def(I,"$[]",w=function(t){var e=this;return f(c(D,"Integer")["$==="](t))?(f(r(t,e.$class().$members().$size()["$-@"]()))&&e.$raise(c(D,"IndexError"),"offset "+t+" too small for struct(size:"+e.$class().$members().$size()+")"),f(i(t,e.$class().$members().$size()))&&e.$raise(c(D,"IndexError"),"offset "+t+" too large for struct(size:"+e.$class().$members().$size()+")"),t=e.$class().$members()["$[]"](t)):f(c(D,"String")["$==="](t))?e.$$data.hasOwnProperty(t)||e.$raise(c(D,"NameError").$new("no member '"+t+"' in struct",t)):e.$raise(c(D,"TypeError"),"no implicit conversion of "+t.$class()+" into Integer"),t=c(D,"Opal")["$coerce_to!"](t,c(D,"String"),"to_str"),e.$$data[t]},w.$$arity=1),t.def(I,"$[]=",x=function(t,e){var n=this;return f(c(D,"Integer")["$==="](t))?(f(r(t,n.$class().$members().$size()["$-@"]()))&&n.$raise(c(D,"IndexError"),"offset "+t+" too small for struct(size:"+n.$class().$members().$size()+")"),f(i(t,n.$class().$members().$size()))&&n.$raise(c(D,"IndexError"),"offset "+t+" too large for struct(size:"+n.$class().$members().$size()+")"),t=n.$class().$members()["$[]"](t)):f(c(D,"String")["$==="](t))?f(n.$class().$members()["$include?"](t.$to_sym()))||n.$raise(c(D,"NameError").$new("no member '"+t+"' in struct",t)):n.$raise(c(D,"TypeError"),"no implicit conversion of "+t.$class()+" into Integer"),t=c(D,"Opal")["$coerce_to!"](t,c(D,"String"),"to_str"),n.$$data[t]=e},x.$$arity=2),t.def(I,"$==",k=function(t){var e=this;if(!f(t["$instance_of?"](e.$class())))return!1;var n={},r={};function i(t,e){var o,a,s;for(o in n[t.$__id__()]=!0,r[e.$__id__()]=!0,t.$$data)if(a=t.$$data[o],s=e.$$data[o],c(D,"Struct")["$==="](a)){if((!n.hasOwnProperty(a.$__id__())||!r.hasOwnProperty(s.$__id__()))&&!i(a,s))return!1}else if(!a["$=="](s))return!1;return!0}return i(e,t)},k.$$arity=1),t.def(I,"$eql?",S=function(t){var e=this;if(!f(t["$instance_of?"](e.$class())))return!1;var n={},r={};function i(t,e){var o,a,s;for(o in n[t.$__id__()]=!0,r[e.$__id__()]=!0,t.$$data)if(a=t.$$data[o],s=e.$$data[o],c(D,"Struct")["$==="](a)){if((!n.hasOwnProperty(a.$__id__())||!r.hasOwnProperty(s.$__id__()))&&!i(a,s))return!1}else if(!a["$eql?"](s))return!1;return!0}return i(e,t)},S.$$arity=1),t.def(I,"$each",O=function(){var e,n,r=O.$$p,i=r||l,o=this;return r&&(O.$$p=null),i===l?h(o,"enum_for",["each"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=o,e.$$arity=0,e)):(h(o.$class().$members(),"each",[],(n=function(e){var r=n.$$s||this;return null==e&&(e=l),t.yield1(i,r["$[]"](e))},n.$$s=o,n.$$arity=1,n)),o)},O.$$arity=0),t.def(I,"$each_pair",C=function(){var e,n,r=C.$$p,i=r||l,o=this;return r&&(C.$$p=null),i===l?h(o,"enum_for",["each_pair"],(e=function(){var t=e.$$s||this;return t.$size()},e.$$s=o,e.$$arity=0,e)):(h(o.$class().$members(),"each",[],(n=function(e){var r=n.$$s||this;return null==e&&(e=l),t.yield1(i,[e,r["$[]"](e)])},n.$$s=o,n.$$arity=1,n)),o)},C.$$arity=0),t.def(I,"$length",A=function(){var t=this;return t.$class().$members().$length()},A.$$arity=0),t.alias(I,"size","length"),t.def(I,"$to_a",E=function(){var t,e=this;return h(e.$class().$members(),"map",[],(t=function(e){var n=t.$$s||this;return null==e&&(e=l),n["$[]"](e)},t.$$s=e,t.$$arity=1,t))},E.$$arity=0),t.alias(I,"values","to_a"),t.def(I,"$inspect",T=function(){var t,e,n=this,r=l;return r="#<struct ",f(f(t=c(D,"Struct")["$==="](n))?n.$class().$name():t)&&(r=o(r,n.$class()+" ")),r=o(r,h(n.$each_pair(),"map",[],(e=function(t,n){e.$$s;return null==t&&(t=l),null==n&&(n=l),t+"="+n.$inspect()},e.$$s=n,e.$$arity=2,e)).$join(", ")),r=o(r,">"),r},T.$$arity=0),t.alias(I,"to_s","inspect"),t.def(I,"$to_h",P=function(){var e,r=this;return h(r.$class().$members(),"each_with_object",[d([],{})],(e=function(r,i){var o=e.$$s||this,a=l;return null==r&&(r=l),null==i&&(i=l),a=[r,o["$[]"](r)],h(i,"[]=",t.to_a(a)),a[n(a["length"],1)]},e.$$s=r,e.$$arity=2,e))},P.$$arity=0),t.def(I,"$values_at",B=function(e){var n,r,i,o=this;n=t.slice.call(arguments,0,arguments.length),r=n,r=h(r,"map",[],(i=function(t){i.$$s;return null==t&&(t=l),t.$$is_range?t.$to_a():t},i.$$s=o,i.$$arity=1,i)).$flatten();for(var a=[],s=0,u=r.length;s<u;s++)r[s].$$is_number||o.$raise(c(D,"TypeError"),"no implicit conversion of "+r[s].$class()+" into Integer"),a.push(o["$[]"](r[s]));return a},B.$$arity=-1),t.def(I,"$dig",L=function(e,n){var r,i,o=this,a=l;return r=t.slice.call(arguments,1,arguments.length),i=r,a=function(){return f(e.$$is_string&&o.$$data.hasOwnProperty(e))&&o.$$data[e]||l}(),a===l||0===i.length?a:(f(a["$respond_to?"]("dig"))||o.$raise(c(D,"TypeError"),a.$class()+" does not have #dig method"),h(a,"dig",t.to_a(i)))},L.$$arity=-2),l&&"dig"}(s[0],null,s)},Opal.modules["corelib/io"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.klass),s=t.module,l=t.send,c=t.gvars,u=t.truthy,d=r;t.add_stubs(["$attr_accessor","$size","$write","$join","$map","$String","$empty?","$concat","$chomp","$getbyte","$getc","$raise","$new","$write_proc=","$-","$extend"]),function(e,n,i){var d,f,h,p,$=a(e,n,"IO"),m=[$].concat(i);$.$$prototype.tty=$.$$prototype.closed=r,t.const_set(m[0],"SEEK_SET",0),t.const_set(m[0],"SEEK_CUR",1),t.const_set(m[0],"SEEK_END",2),t.def($,"$tty?",d=function(){var t=this;return t.tty},d.$$arity=0),t.def($,"$closed?",f=function(){var t=this;return t.closed},f.$$arity=0),$.$attr_accessor("write_proc"),t.def($,"$write",h=function(t){var e=this;return e.write_proc(t),t.$size()},h.$$arity=1),$.$attr_accessor("sync","tty"),t.def($,"$flush",p=function(){return r},p.$$arity=0),function(e,n){var i,o,a,d=s(e,"Writable");[d].concat(n);t.def(d,"$<<",i=function(t){var e=this;return e.$write(t),e},i.$$arity=1),t.def(d,"$print",o=function(e){var n,i,o,a=this;return null==c[","]&&(c[","]=r),n=t.slice.call(arguments,0,arguments.length),i=n,a.$write(l(i,"map",[],(o=function(t){var e=o.$$s||this;return null==t&&(t=r),e.$String(t)},o.$$s=a,o.$$arity=1,o)).$join(c[","])),r},o.$$arity=-1),t.def(d,"$puts",a=function(e){var n,i,o,a=this,s=r;return null==c["/"]&&(c["/"]=r),n=t.slice.call(arguments,0,arguments.length),i=n,s=c["/"],u(i["$empty?"]())?a.$write(c["/"]):a.$write(l(i,"map",[],(o=function(t){var e=o.$$s||this;return null==t&&(t=r),e.$String(t).$chomp()},o.$$s=a,o.$$arity=1,o)).$concat([r]).$join(s)),r},a.$$arity=-1)}(m[0],m),function(e,n){var i,a,l,u,d=s(e,"Readable"),f=[d].concat(n);t.def(d,"$readbyte",i=function(){var t=this;return t.$getbyte()},i.$$arity=0),t.def(d,"$readchar",a=function(){var t=this;return t.$getc()},a.$$arity=0),t.def(d,"$readline",l=function(t){var e=this;return null==c["/"]&&(c["/"]=r),null==t&&(t=c["/"]),e.$raise(o(f,"NotImplementedError"))},l.$$arity=-1),t.def(d,"$readpartial",u=function(t,e){var n=this;return null==e&&(e=r),n.$raise(o(f,"NotImplementedError"))},u.$$arity=-2)}(m[0],m)}(n[0],null,n),t.const_set(n[0],"STDERR",c.stderr=o(n,"IO").$new()),t.const_set(n[0],"STDIN",c.stdin=o(n,"IO").$new()),t.const_set(n[0],"STDOUT",c.stdout=o(n,"IO").$new());var f=t.global.console;return d=["object"===typeof process&&"object"===typeof process.stdout?function(t){process.stdout.write(t)}:function(t){f.log(t)}],l(o(n,"STDOUT"),"write_proc=",t.to_a(d)),d[e(d["length"],1)],d=["object"===typeof process&&"object"===typeof process.stderr?function(t){process.stderr.write(t)}:function(t){f.warn(t)}],l(o(n,"STDERR"),"write_proc=",t.to_a(d)),d[e(d["length"],1)],o(n,"STDOUT").$extend(i(o(n,"IO"),"Writable")),o(n,"STDERR").$extend(i(o(n,"IO"),"Writable"))},Opal.modules["corelib/main"]=function(t){var e,n,r=t.top,i=[],o=t.nil,a=(t.const_get_qualified,t.const_get_relative);t.breaker,t.slice;return t.add_stubs(["$include"]),t.defs(r,"$to_s",e=function(){return"main"},e.$$arity=0),t.defs(r,"$include",n=function(t){return a(i,"Object").$include(t)},n.$$arity=1),o&&"include"},Opal.modules["corelib/dir"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.truthy;return t.add_stubs(["$[]"]),function(e,a,s){var l=i(e,a,"Dir"),c=[l].concat(s);return function(e,i){var a,s,l,c=[e].concat(i);return t.def(e,"$chdir",a=function(e){var r=a.$$p,i=r||n,o=n;return r&&(a.$$p=null),function(){try{return o=t.current_dir,t.current_dir=e,t.yieldX(i,[])}finally{t.current_dir=o}}()},a.$$arity=1),t.def(e,"$pwd",s=function(){return t.current_dir||"."},s.$$arity=0),t.alias(e,"getwd","pwd"),t.def(e,"$home",l=function(){var t;return o(t=r(c,"ENV")["$[]"]("HOME"))?t:"."},l.$$arity=0),n&&"home"}(t.get_singleton_class(l),c)}(e[0],null,e)},Opal.modules["corelib/file"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var r=[],i=t.nil,o=(t.const_get_qualified,t.const_get_relative),a=(t.breaker,t.slice,t.klass),s=t.truthy,l=t.range,c=t.send;return t.add_stubs(["$respond_to?","$to_path","$pwd","$split","$sub","$+","$unshift","$join","$home","$raise","$start_with?","$absolute_path","$coerce_to!","$basename","$empty?","$rindex","$[]","$nil?","$==","$-","$length","$gsub","$find","$=~","$map","$each_with_index","$flatten","$reject","$to_proc","$end_with?"]),function(r,u,d){var f=a(r,u,"File"),h=[f].concat(d),p=i;return t.const_set(h[0],"Separator",t.const_set(h[0],"SEPARATOR","/")),t.const_set(h[0],"ALT_SEPARATOR",i),t.const_set(h[0],"PATH_SEPARATOR",":"),t.const_set(h[0],"FNM_SYSCASE",0),p=/^[a-zA-Z]:(?:\\|\/)/,function(r,a){var u,d,f,h,$,m,g,v,y,_=[r].concat(a);function b(t){return s(t["$respond_to?"]("to_path"))&&(t=t.$to_path()),t=o(_,"Opal")["$coerce_to!"](t,o(_,"String"),"to_str"),t}function w(){return o(_,"ALT_SEPARATOR")===i?t.escape_regexp(o(_,"SEPARATOR")):t.escape_regexp(e(o(_,"SEPARATOR"),o(_,"ALT_SEPARATOR")))}return t.def(r,"$absolute_path",u=function(t,n){var r,a,l=i,c=i,u=i,d=i,f=i,h=i,$=i,m=i,g=i;null==n&&(n=i),l=o(_,"SEPARATOR"),c=w(),u=[],t=function(){return s(t["$respond_to?"]("to_path"))?t.$to_path():t}(),n=s(r=n)?r:o(_,"Dir").$pwd(),d=t.substr(0,l.length)===l||p.test(t),f=n.substr(0,l.length)===l||p.test(n),s(d)?(h=t.$split(new RegExp("["+c+"]")),$=p.test(t)?"":t.$sub(new RegExp("^(["+c+"]+).*$"),"\\1"),m=!0):(h=e(n.$split(new RegExp("["+c+"]")),t.$split(new RegExp("["+c+"]"))),$=p.test(n)?"":n.$sub(new RegExp("^(["+c+"]+).*$"),"\\1"),m=f);for(var v=0,y=h.length;v<y;v++)a=h[v],a===i||""===a&&(0===u.length||m)||"."===a&&(0===u.length||m)||(".."===a?u.pop():u.push(a));return m||"."===h[0]||u.$unshift("."),g=u.$join(l),s(m)&&(g=e($,g)),g},u.$$arity=-2),t.def(r,"$expand_path",d=function(t,n){var r=this,a=i,l=i,c=i,u=i,d=i;return null==n&&(n=i),a=o(_,"SEPARATOR"),l=w(),s("~"===t[0]||n&&"~"===n[0])&&(c=o(_,"Dir").$home(),s(c)||r.$raise(o(_,"ArgumentError"),"couldn't find HOME environment -- expanding `~'"),u=p.test(c)?"":c.$sub(new RegExp("^(["+l+"]+).*$"),"\\1"),s(c["$start_with?"](u))||r.$raise(o(_,"ArgumentError"),"non-absolute home"),c=e(c,a),d=new RegExp("^\\~(?:"+a+"|$)"),t=t.$sub(d,c),s(n)&&(n=n.$sub(d,c))),r.$absolute_path(t,n)},d.$$arity=-2),t.alias(r,"realpath","expand_path"),t.def(r,"$dirname",f=function(t){var e=i;e=w(),t=b(t);var n=t.match(new RegExp("^["+e+"]"));return t=t.replace(new RegExp("["+e+"]+$"),""),t=t.replace(new RegExp("[^"+e+"]+$"),""),t=t.replace(new RegExp("["+e+"]+$"),""),""===t?n?"/":".":t},f.$$arity=1),t.def(r,"$basename",h=function(e,n){var r=i;return null==n&&(n=i),r=w(),e=b(e),0==e.length||(n=n!==i?o(_,"Opal")["$coerce_to!"](n,o(_,"String"),"to_str"):null,e=e.replace(new RegExp("(.)["+r+"]*$"),"$1"),e=e.replace(new RegExp("^(?:.*["+r+"])?([^"+r+"]+)$"),"$1"),".*"===n?e=e.replace(/\.[^\.]+$/,""):null!==n&&(n=t.escape_regexp(n),e=e.replace(new RegExp(n+"$"),""))),e},h.$$arity=-2),t.def(r,"$extname",$=function(r){var o,a=this,c=i,u=i;return r=b(r),c=a.$basename(r),s(c["$empty?"]())?"":(u=c["$[]"](l(1,-1,!1)).$rindex("."),s(s(o=u["$nil?"]())?o:e(u,1)["$=="](n(c.$length(),1)))?"":c["$[]"](t.Range.$new(e(u,1),-1,!1)))},$.$$arity=1),t.def(r,"$exist?",m=function(e){return null!=t.modules[e]},m.$$arity=1),t.alias(r,"exists?","exist?"),t.def(r,"$directory?",g=function(e){var n,r=this,a=i,s=i;for(var l in a=[],t.modules)a.push(l);return e=e.$gsub(new RegExp("(^."+o(_,"SEPARATOR")+"+|"+o(_,"SEPARATOR")+"+$)")),s=c(a,"find",[],(n=function(t){n.$$s;return null==t&&(t=i),t["$=~"](new RegExp("^"+e))},n.$$s=r,n.$$arity=1,n)),s},g.$$arity=1),t.def(r,"$join",v=function(n){var r,a,l,u,d=this,f=i;return r=t.slice.call(arguments,0,arguments.length),a=r,s(a["$empty?"]())?"":(f="",a=c(a.$flatten().$each_with_index(),"map",[],(l=function(t,n){l.$$s;return null==t&&(t=i),null==n&&(n=i),s(n["$=="](0)?t["$empty?"]():n["$=="](0))||s(a.$length()["$=="](e(n,1))?t["$empty?"]():a.$length()["$=="](e(n,1)))?o(_,"SEPARATOR"):t},l.$$s=d,l.$$arity=2,l)),a=c(a,"reject",[],"empty?".$to_proc()),c(a,"each_with_index",[],(u=function(t,n){u.$$s;var r,l=i;return null==t&&(t=i),null==n&&(n=i),l=a["$[]"](e(n,1)),s(l["$nil?"]())?f=""+f+t:(s(s(r=t["$end_with?"](o(_,"SEPARATOR")))?l["$start_with?"](o(_,"SEPARATOR")):r)&&(t=t.$sub(new RegExp(o(_,"SEPARATOR")+"+$"),"")),f=function(){return s(s(r=t["$end_with?"](o(_,"SEPARATOR")))?r:l["$start_with?"](o(_,"SEPARATOR")))?""+f+t:""+f+t+o(_,"SEPARATOR")}())},u.$$s=d,u.$$arity=2,u)),f)},v.$$arity=-1),t.def(r,"$split",y=function(t){return t.$split(o(_,"SEPARATOR"))},y.$$arity=1),i&&"split"}(t.get_singleton_class(f),h)}(r[0],o(r,"IO"),r)},Opal.modules["corelib/process"]=function(t){t.top;var e=[],n=t.nil,r=t.const_get_qualified,i=t.const_get_relative,o=(t.breaker,t.slice,t.klass),a=t.truthy;return t.add_stubs(["$const_set","$size","$<<","$__register_clock__","$to_f","$now","$new","$[]","$raise"]),function(e,s,l){var c,u,d,f,h=o(e,s,"Process"),p=[h].concat(l),$=n;if(h.__clocks__=[],t.defs(h,"$__register_clock__",c=function(t,e){var r=this;return null==r.__clocks__&&(r.__clocks__=n),r.$const_set(t,r.__clocks__.$size()),r.__clocks__["$<<"](e)},c.$$arity=2),h.$__register_clock__("CLOCK_REALTIME",(function(){return Date.now()})),$=!1,t.global.performance)$=function(){return performance.now()};else if(t.global.process&&process.hrtime){var m=process.hrtime();$=function(){var t=process.hrtime(m),e=t[1]/1e3|0;return 1e3*t[0]+e/1e3}}a($)&&h.$__register_clock__("CLOCK_MONOTONIC",$),t.defs(h,"$pid",u=function(){return 0},u.$$arity=0),t.defs(h,"$times",d=function(){var t=n;return t=i(p,"Time").$now().$to_f(),r(i(p,"Benchmark"),"Tms").$new(t,t,t,t,t)},d.$$arity=0),t.defs(h,"$clock_gettime",f=function(t,e){var o=this,s=n;null==o.__clocks__&&(o.__clocks__=n),null==e&&(e="float_second"),a(s=o.__clocks__["$[]"](t))||o.$raise(r(i(p,"Errno"),"EINVAL"),"clock_gettime("+t+") "+o.__clocks__["$[]"](t));var l=s();switch(e){case"float_second":return l/1e3;case"float_millisecond":return l/1;case"float_microsecond":return 1e3*l;case"second":return l/1e3|0;case"millisecond":return l/1|0;case"microsecond":return 1e3*l|0;case"nanosecond":return 1e6*l|0;default:o.$raise(i(p,"ArgumentError"),"unexpected unit: "+e)}},f.$$arity=-2)}(e[0],null,e),function(e,r,i){var a,s=o(e,r,"Signal");[s].concat(i);t.defs(s,"$trap",a=function(e){return t.slice.call(arguments,0,arguments.length),n},a.$$arity=-1)}(e[0],null,e),function(e,r,i){var a,s=o(e,r,"GC");[s].concat(i);return t.defs(s,"$start",a=function(){return n},a.$$arity=0),n&&"start"}(e[0],null,e)},Opal.modules["corelib/unsupported"]=function(t){var e,n,r=t.top,i=[],o=t.nil,a=(t.const_get_qualified,t.const_get_relative),s=(t.breaker,t.slice,t.klass),l=t.module;t.add_stubs(["$raise","$warn","$%"]);var c={};function u(e){switch(t.config.unsupported_features_severity){case"error":a(i,"Kernel").$raise(a(i,"NotImplementedError"),e);break;case"warning":d(e);break;default:}}function d(t){c[t]||(c[t]=!0,r.$warn(t))}return function(e,n,r){var i,o,l,c,u,d,f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E=s(e,n,"String"),T=[E].concat(r),P="String#%s not supported. Mutable String methods are not supported in Opal.";t.def(E,"$<<",i=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("<<"))},i.$$arity=-1),t.def(E,"$capitalize!",o=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("capitalize!"))},o.$$arity=-1),t.def(E,"$chomp!",l=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("chomp!"))},l.$$arity=-1),t.def(E,"$chop!",c=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("chop!"))},c.$$arity=-1),t.def(E,"$downcase!",u=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("downcase!"))},u.$$arity=-1),t.def(E,"$gsub!",d=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("gsub!"))},d.$$arity=-1),t.def(E,"$lstrip!",f=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("lstrip!"))},f.$$arity=-1),t.def(E,"$next!",h=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("next!"))},h.$$arity=-1),t.def(E,"$reverse!",p=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("reverse!"))},p.$$arity=-1),t.def(E,"$slice!",$=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("slice!"))},$.$$arity=-1),t.def(E,"$squeeze!",m=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("squeeze!"))},m.$$arity=-1),t.def(E,"$strip!",g=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("strip!"))},g.$$arity=-1),t.def(E,"$sub!",v=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("sub!"))},v.$$arity=-1),t.def(E,"$succ!",y=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("succ!"))},y.$$arity=-1),t.def(E,"$swapcase!",_=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("swapcase!"))},_.$$arity=-1),t.def(E,"$tr!",b=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("tr!"))},b.$$arity=-1),t.def(E,"$tr_s!",w=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("tr_s!"))},w.$$arity=-1),t.def(E,"$upcase!",x=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("upcase!"))},x.$$arity=-1),t.def(E,"$prepend",k=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("prepend"))},k.$$arity=-1),t.def(E,"$[]=",S=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("[]="))},S.$$arity=-1),t.def(E,"$clear",O=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("clear"))},O.$$arity=-1),t.def(E,"$encode!",C=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("encode!"))},C.$$arity=-1),t.def(E,"$unicode_normalize!",A=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(T,"NotImplementedError"),P["$%"]("unicode_normalize!"))},A.$$arity=-1)}(i[0],null,i),function(e,n){var r,i,o=l(e,"Kernel"),a=([o].concat(n),"Object freezing is not supported by Opal");t.def(o,"$freeze",r=function(){var t=this;return u(a),t},r.$$arity=0),t.def(o,"$frozen?",i=function(){return u(a),!1},i.$$arity=0)}(i[0],i),function(e,n){var r,i,o,a=l(e,"Kernel"),s=([a].concat(n),"Object tainting is not supported by Opal");t.def(a,"$taint",r=function(){var t=this;return u(s),t},r.$$arity=0),t.def(a,"$untaint",i=function(){var t=this;return u(s),t},i.$$arity=0),t.def(a,"$tainted?",o=function(){return u(s),!1},o.$$arity=0)}(i[0],i),function(e,n,r){var i,a,l,c,u=s(e,n,"Module");[u].concat(r);t.def(u,"$public",i=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,0===r.length&&(i.$$module_function=!1),o},i.$$arity=-1),t.alias(u,"private","public"),t.alias(u,"protected","public"),t.alias(u,"nesting","public"),t.def(u,"$private_class_method",a=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n},a.$$arity=-1),t.alias(u,"public_class_method","private_class_method"),t.def(u,"$private_method_defined?",l=function(t){return!1},l.$$arity=1),t.def(u,"$private_constant",c=function(e){return t.slice.call(arguments,0,arguments.length),o},c.$$arity=-1),t.alias(u,"protected_method_defined?","private_method_defined?"),t.alias(u,"public_instance_methods","instance_methods"),t.alias(u,"public_instance_method","instance_method"),t.alias(u,"public_method_defined?","method_defined?")}(i[0],null,i),function(e,n){var r,i=l(e,"Kernel");[i].concat(n);t.def(i,"$private_methods",r=function(e){return t.slice.call(arguments,0,arguments.length),[]},r.$$arity=-1),t.alias(i,"private_instance_methods","private_methods")}(i[0],i),function(e,n){var r,i=l(e,"Kernel"),o=[i].concat(n);t.def(i,"$eval",r=function(e){var n=this;return t.slice.call(arguments,0,arguments.length),n.$raise(a(o,"NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. See https://github.com/opal/opal/blob/"+a(o,"RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details.")},r.$$arity=-1)}(i[0],i),t.defs(r,"$public",e=function(e){return t.slice.call(arguments,0,arguments.length),o},e.$$arity=-1),t.defs(r,"$private",n=function(e){return t.slice.call(arguments,0,arguments.length),o},n.$$arity=-1),o&&"private"},function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;t.add_stubs(["$require"]),e.$require("opal/base"),e.$require("opal/mini"),e.$require("corelib/string/encoding"),e.$require("corelib/struct"),e.$require("corelib/io"),e.$require("corelib/main"),e.$require("corelib/dir"),e.$require("corelib/file"),e.$require("corelib/process"),e.$require("corelib/unsupported")}(Opal),function(t,e){module.exports?module.exports=e:(__WEBPACK_AMD_DEFINE_ARRAY__=[module],__WEBPACK_AMD_DEFINE_RESULT__=function(t){return e(t.config())}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(0,(function(t){Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass);return t.add_stubs(["$new"]),function(e,o,a){var s,l=i(e,o,"File"),c=[l].concat(a);return t.defs(l,"$read",s=function(t){var e="",n=-1;try{var i=new XMLHttpRequest;i.open("GET",t,!1),i.addEventListener("load",(function(){n=this.status,0!==n&&200!==n||(e=this.responseText)})),i.overrideMimeType("text/plain"),i.send()}catch(o){throw r(c,"IOError").$new("Error reading file or directory: "+t+"; reason: "+o.message)}if(404===n||0===n&&!e)throw r(c,"IOError").$new("No such file or directory: "+t);return e},s.$$arity=1),n&&"read"}(e[0],null,e)},Opal.modules["asciidoctor/js/opal_ext/browser"]=function(e){var n,r,i,o,a=e.top,s=[];e.nil,e.const_get_qualified,e.const_get_relative,e.breaker,e.slice;if(e.add_stubs(["$require"]),"object"===typeof t&&"object"===typeof t.runtime){var l=t.runtime;n=l.platform,r=l.engine,i=l.framework,o=l.ioModule}return o=o||"xmlhttprequest",n=n||"browser",r=r||"",i=i||"",e.const_set(s[0],"JAVASCRIPT_IO_MODULE",o),e.const_set(s[0],"JAVASCRIPT_PLATFORM",n),e.const_set(s[0],"JAVASCRIPT_ENGINE",r),e.const_set(s[0],"JAVASCRIPT_FRAMEWORK",i),a.$require("asciidoctor/js/opal_ext/browser/file")},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(t){t.top;var e=[],n=t.nil,r=t.const_get_qualified,i=t.const_get_relative,o=(t.breaker,t.slice,t.module),a=t.klass,s=t.hash2,l=t.truthy;return t.add_stubs(["$uriish?","$[]","$web_path","$path_resolver","$descends_from?","$base_dir","$attr?","$join","$prepare_source_string","$read","$fetch","$warn","$logger","$normalize_system_path","$read_asset"]),function(e,c){var u=o(e,"Asciidoctor"),d=[u].concat(c);(function(e,o,c){var u,d,f=a(e,o,"AbstractNode"),h=[f].concat(c);f.$$prototype.document=n,t.def(f,"$read_contents",u=function(e,o){var a,c,u,d=this,f=n,p=n;if(null==o&&(o=s([],{})),f=d.document,!l(l(a=i(h,"Helpers")["$uriish?"](e))?a:l(c=l(u=p=o["$[]"]("start"))?i(h,"Helpers")["$uriish?"](p):u)?e=f.$path_resolver().$web_path(e,p):c))return e=d.$normalize_system_path(e,o["$[]"]("start"),n,s(["target_name"],{target_name:l(a=o["$[]"]("label"))?a:"asset"})),d.$read_asset(e,s(["normalize","warn_on_failure","label"],{normalize:o["$[]"]("normalize"),warn_on_failure:o.$fetch("warn_on_failure",!0),label:o["$[]"]("label")}));if(!l(l(a=f.$path_resolver()["$descends_from?"](e,f.$base_dir()))?a:f["$attr?"]("allow-uri-read")))return l(o.$fetch("warn_on_failure",!0))&&d.$logger().$warn("cannot retrieve contents of "+(l(a=o["$[]"]("label"))?a:"asset")+" at URI: "+e+" (allow-uri-read attribute not enabled)"),n;try{return l(o["$[]"]("normalize"))?i(h,"Helpers").$prepare_source_string(r("::","File").$read(e)).$join(i(h,"LF")):r("::","File").$read(e)}catch($){if(!t.rescue($,[i(h,"StandardError")]))throw $;try{return l(o.$fetch("warn_on_failure",!0))&&d.$logger().$warn("could not retrieve contents of "+(l(a=o["$[]"]("label"))?a:"asset")+" at URI: "+e),n}finally{t.pop_exception()}}},u.$$arity=-2),t.def(f,"$generate_data_uri_from_uri",d=function(t,e){var n=this;null==e&&(e=!1);var r="",i="",o=-1;try{var a=new XMLHttpRequest;a.open("GET",t,!1),a.overrideMimeType("text/plain; charset=x-user-defined"),a.addEventListener("load",(function(){if(o=this.status,0===o||200===o){for(var t="",e=this.responseText,n=0,a=e.length;n<a;++n){var s=e.charCodeAt(n),l=255&s;t+=String.fromCharCode(l)}i=btoa(t),r=this.getResponseHeader("content-type")}})),a.send(null),r||(t.endsWith(".jpeg")||t.endsWith(".jpg")||t.endsWith(".jpe")?r="image/jpg":t.endsWith(".png")?r="image/png":t.endsWith(".svg")?r="image/svg+xml":t.endsWith(".bmp")?r="image/bmp":(t.endsWith(".tif")||t.endsWith(".tiff"))&&(r="image/tiff"))}catch(s){o=0}return 404!==o&&(0!==o||i&&r)?"data:"+r+";base64,"+i:(n.$logger().$warn("could not retrieve image data from URI: "+t),t)},d.$$arity=-2)})(d[0],null,d)}(e[0],e)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/open_uri"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.send;return t.add_stubs(["$new","$path"]),function(e,a){var s,l=i(e,"OpenURI"),c=[l].concat(a);t.defs(r(c,"OpenURI"),"$open_uri",s=function(e,i){var a,l,u=s.$$p,d=u||n,f=this,h=n;return u&&(s.$$p=null),a=t.slice.call(arguments,1,arguments.length),l=a,h=o(r(c,"File"),"new",[f.$path()].concat(t.to_a(l))),d!==n?t.yield1(d,h):h},s.$$arity=-2)}(e[0],e)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/path_resolver"]=function(t){t.top;var e=[],n=(t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.module),r=t.klass,i=t.truthy;return t.add_stubs(["$absolute_path?","$start_with?"]),function(e,o){var a=n(e,"Asciidoctor"),s=[a].concat(o);(function(e,n,o){var a,s=r(e,n,"PathResolver");[s].concat(o);t.def(s,"$root?",a=function(t){var e,n=this;return i(e=n["$absolute_path?"](t))?e:t["$start_with?"]("file://","http://","https://","chrome://")},a.$$arity=1)})(s[0],null,s)}(e[0],e)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/reader"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.klass,a=t.truthy;return t.add_stubs(["$posixify","$new","$base_dir","$start_with?","$uriish?","$descends_from?","$key?","$attributes","$replace_next_line","$absolute_path?","$==","$empty?","$!","$slice","$length"]),function(e,s){var l=i(e,"Asciidoctor"),c=[l].concat(s);(function(e,i,s){var l,c=o(e,i,"PreprocessorReader"),u=[c].concat(s);c.$$prototype.path_resolver=c.$$prototype.document=c.$$prototype.include_stack=c.$$prototype.dir=n,t.def(c,"$resolve_include_path",l=function(t,e,i){var o,s=this,l=n,c=n,d=n,f=n,h=n,p=n,$=n;if(l=(s.path_resolver=a(o=s.path_resolver)?o:r(u,"PathResolver").$new("\\")).$posixify(t),o=["file",s.document.$base_dir()],o[0],c=o[1],a(l["$start_with?"]("file://")))d=f=l;else if(a(r(u,"Helpers")["$uriish?"](l))){if(!a(a(o=s.path_resolver["$descends_from?"](l,c))?o:s.document.$attributes()["$key?"]("allow-uri-read")))return s.$replace_next_line("link:"+t+"["+e+"]");d=f=l}else if(a(s.path_resolver["$absolute_path?"](l)))d=f="file://"+function(){return a(l["$start_with?"]("/"))?"":"/"}()+l;else if((h=function(){return a(p=s.include_stack["$empty?"]())?c:s.dir}())["$=="]("."))d=f=l;else if(a(a(o=h["$start_with?"]("file://"))?o:r(u,"Helpers")["$uriish?"](h)["$!"]()))d=h+"/"+l,f=a(p)?l:a(a(o=c["$=="]("."))?o:($=s.path_resolver["$descends_from?"](d,c))["$!"]())?d:d.$slice($,d.$length());else if(a(p))d=h+"/"+(f=l);else{if(!a(a(o=$=s.path_resolver["$descends_from?"](h,c))?o:s.document.$attributes()["$key?"]("allow-uri-read")))return s.$replace_next_line("link:"+t+"["+e+"]");d=h+"/"+l,f=function(){return a($)?d.$slice($,d.$length()):l}()}return[d,"file",f]},l.$$arity=3)})(c[0],r(c,"Reader"),c)}(e[0],e)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser"]=function(t){var e=t.top,n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative);t.breaker,t.slice;return t.add_stubs(["$==","$require"]),i(n,"JAVASCRIPT_IO_MODULE")["$=="]("xmlhttprequest")?(e.$require("asciidoctor/js/asciidoctor_ext/browser/abstract_node"),e.$require("asciidoctor/js/asciidoctor_ext/browser/open_uri"),e.$require("asciidoctor/js/asciidoctor_ext/browser/path_resolver"),e.$require("asciidoctor/js/asciidoctor_ext/browser/reader")):r},Opal.modules["set"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}t.top;var i=[],o=t.nil,a=(t.const_get_qualified,t.const_get_relative),s=(t.breaker,t.slice,t.klass),l=t.hash2,c=t.truthy,u=t.send,d=t.module;return t.add_stubs(["$include","$new","$nil?","$===","$raise","$each","$add","$merge","$class","$respond_to?","$subtract","$dup","$join","$to_a","$equal?","$instance_of?","$==","$instance_variable_get","$is_a?","$size","$all?","$include?","$[]=","$-","$enum_for","$[]","$<<","$replace","$delete","$select","$each_key","$to_proc","$empty?","$eql?","$instance_eval","$clear","$<","$<=","$keys"]),function(i,d,f){var h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z=s(i,d,"Set"),H=[z].concat(f);z.$$prototype.hash=o,z.$include(a(H,"Enumerable")),t.defs(z,"$[]",h=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,i.$new(r)},h.$$arity=-1),t.def(z,"$initialize",p=function(e){var n,r=p.$$p,i=r||o,s=this;return r&&(p.$$p=null),r&&(p.$$p=null),null==e&&(e=o),s.hash=l([],{}),c(e["$nil?"]())?o:(c(a(H,"Enumerable")["$==="](e))||s.$raise(a(H,"ArgumentError"),"value must be enumerable"),c(i)?u(e,"each",[],(n=function(e){var r=n.$$s||this;return null==e&&(e=o),r.$add(t.yield1(i,e))},n.$$s=s,n.$$arity=1,n)):s.$merge(e))},p.$$arity=-1),t.def(z,"$dup",$=function(){var t=this,e=o;return e=t.$class().$new(),e.$merge(t)},$.$$arity=0),t.def(z,"$-",m=function(t){var e=this;return c(t["$respond_to?"]("each"))||e.$raise(a(H,"ArgumentError"),"value must be enumerable"),e.$dup().$subtract(t)},m.$$arity=1),t.alias(z,"difference","-"),t.def(z,"$inspect",g=function(){var t=this;return"#<Set: {"+t.$to_a().$join(",")+"}>"},g.$$arity=0),t.def(z,"$==",v=function(t){var e,n,r=this;return!!c(r["$equal?"](t))||(c(t["$instance_of?"](r.$class()))?r.hash["$=="](t.$instance_variable_get("@hash")):!!c(c(e=t["$is_a?"](a(H,"Set")))?r.$size()["$=="](t.$size()):e)&&u(t,"all?",[],(n=function(t){var e=n.$$s||this;return null==e.hash&&(e.hash=o),null==t&&(t=o),e.hash["$include?"](t)},n.$$s=r,n.$$arity=1,n)))},v.$$arity=1),t.def(z,"$add",y=function(n){var r=this,i=o;return i=[n,!0],u(r.hash,"[]=",t.to_a(i)),i[e(i["length"],1)],r},y.$$arity=1),t.alias(z,"<<","add"),t.def(z,"$classify",_=function(){var n,r,i=_.$$p,s=i||o,l=this,c=o;return i&&(_.$$p=null),i&&(_.$$p=null),s===o?l.$enum_for("classify"):(c=u(a(H,"Hash"),"new",[],(n=function(r,i){var a=n.$$s||this,s=o;return null==r&&(r=o),null==i&&(i=o),s=[i,a.$class().$new()],u(r,"[]=",t.to_a(s)),s[e(s["length"],1)]},n.$$s=l,n.$$arity=2,n)),u(l,"each",[],(r=function(e){r.$$s;return null==e&&(e=o),c["$[]"](t.yield1(s,e)).$add(e)},r.$$s=l,r.$$arity=1,r)),c)},_.$$arity=0),t.def(z,"$collect!",b=function(){var e,n=b.$$p,r=n||o,i=this,a=o;return n&&(b.$$p=null),n&&(b.$$p=null),r===o?i.$enum_for("collect!"):(a=i.$class().$new(),u(i,"each",[],(e=function(n){e.$$s;return null==n&&(n=o),a["$<<"](t.yield1(r,n))},e.$$s=i,e.$$arity=1,e)),i.$replace(a))},b.$$arity=0),t.alias(z,"map!","collect!"),t.def(z,"$delete",w=function(t){var e=this;return e.hash.$delete(t),e},w.$$arity=1),t.def(z,"$delete?",x=function(t){var e=this;return c(e["$include?"](t))?(e.$delete(t),e):o},x.$$arity=1),t.def(z,"$delete_if",k=function(){var e,n,r=k.$$p,i=r||o,a=this;return r&&(k.$$p=null),i===o?a.$enum_for("delete_if"):(u(u(a,"select",[],(e=function(n){e.$$s;return null==n&&(n=o),t.yield1(i,n)},e.$$s=a,e.$$arity=1,e)),"each",[],(n=function(t){var e=n.$$s||this;return null==e.hash&&(e.hash=o),null==t&&(t=o),e.hash.$delete(t)},n.$$s=a,n.$$arity=1,n)),a)},k.$$arity=0),t.def(z,"$add?",S=function(t){var e=this;return c(e["$include?"](t))?o:e.$add(t)},S.$$arity=1),t.def(z,"$each",O=function(){var t=O.$$p,e=t||o,n=this;return t&&(O.$$p=null),t&&(O.$$p=null),e===o?n.$enum_for("each"):(u(n.hash,"each_key",[],e.$to_proc()),n)},O.$$arity=0),t.def(z,"$empty?",C=function(){var t=this;return t.hash["$empty?"]()},C.$$arity=0),t.def(z,"$eql?",A=function(t){var e,n=this;return n.hash["$eql?"](u(t,"instance_eval",[],(e=function(){var t=e.$$s||this;return null==t.hash&&(t.hash=o),t.hash},e.$$s=n,e.$$arity=0,e)))},A.$$arity=1),t.def(z,"$clear",E=function(){var t=this;return t.hash.$clear(),t},E.$$arity=0),t.def(z,"$include?",T=function(t){var e=this;return e.hash["$include?"](t)},T.$$arity=1),t.alias(z,"member?","include?"),t.def(z,"$merge",P=function(t){var e,n=this;return u(t,"each",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n.$add(t)},e.$$s=n,e.$$arity=1,e)),n},P.$$arity=1),t.def(z,"$replace",B=function(t){var e=this;return e.$clear(),e.$merge(t),e},B.$$arity=1),t.def(z,"$size",L=function(){var t=this;return t.hash.$size()},L.$$arity=0),t.alias(z,"length","size"),t.def(z,"$subtract",I=function(t){var e,n=this;return u(t,"each",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n.$delete(t)},e.$$s=n,e.$$arity=1,e)),n},I.$$arity=1),t.def(z,"$|",D=function(t){var e=this;return c(t["$respond_to?"]("each"))||e.$raise(a(H,"ArgumentError"),"value must be enumerable"),e.$dup().$merge(t)},D.$$arity=1),t.def(z,"$superset?",R=function(t){var e,r=this;return c(t["$is_a?"](a(H,"Set")))||r.$raise(a(H,"ArgumentError"),"value must be a set"),!c(n(r.$size(),t.$size()))&&u(t,"all?",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n["$include?"](t)},e.$$s=r,e.$$arity=1,e))},R.$$arity=1),t.alias(z,">=","superset?"),t.def(z,"$proper_superset?",j=function(t){var e,n=this;return c(t["$is_a?"](a(H,"Set")))||n.$raise(a(H,"ArgumentError"),"value must be a set"),!c(r(n.$size(),t.$size()))&&u(t,"all?",[],(e=function(t){var n=e.$$s||this;return null==t&&(t=o),n["$include?"](t)},e.$$s=n,e.$$arity=1,e))},j.$$arity=1),t.alias(z,">","proper_superset?"),t.def(z,"$subset?",M=function(t){var e,r=this;return c(t["$is_a?"](a(H,"Set")))||r.$raise(a(H,"ArgumentError"),"value must be a set"),!c(n(t.$size(),r.$size()))&&u(r,"all?",[],(e=function(n){e.$$s;return null==n&&(n=o),t["$include?"](n)},e.$$s=r,e.$$arity=1,e))},M.$$arity=1),t.alias(z,"<=","subset?"),t.def(z,"$proper_subset?",F=function(t){var e,n=this;return c(t["$is_a?"](a(H,"Set")))||n.$raise(a(H,"ArgumentError"),"value must be a set"),!c(r(t.$size(),n.$size()))&&u(n,"all?",[],(e=function(n){e.$$s;return null==n&&(n=o),t["$include?"](n)},e.$$s=n,e.$$arity=1,e))},F.$$arity=1),t.alias(z,"<","proper_subset?"),t.alias(z,"+","|"),t.alias(z,"union","|"),t.def(z,"$to_a",N=function(){var t=this;return t.hash.$keys()},N.$$arity=0)}(i[0],null,i),function(e,n){var r,i=d(e,"Enumerable"),s=[i].concat(n);t.def(i,"$to_set",r=function(e,n){var i,l,c,d=r.$$p,f=d||o,h=this;return d&&(r.$$p=null),d&&(r.$$p=null),i=t.slice.call(arguments,0,arguments.length),i.length>0&&(l=i[0],i.splice(0,1)),null==l&&(l=a(s,"Set")),c=i,u(l,"new",[h].concat(t.to_a(c)),f.$to_proc())},r.$$arity=-1)}(i[0],i)},Opal.modules["asciidoctor/js/opal_ext/kernel"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.send;return t.add_stubs(["$new"]),function(e,a){var s,l,c=i(e,"Kernel"),u=[c].concat(a);t.def(c,"$open",s=function(e,i){var a,l,c=s.$$p,d=c||n,f=n;return c&&(s.$$p=null),a=t.slice.call(arguments,1,arguments.length),l=a,f=o(r(u,"File"),"new",[e].concat(t.to_a(l))),d!==n?t.yield1(d,f):f},s.$$arity=-2),t.def(c,"$__dir__",l=function(){return""},l.$$arity=0)}(e[0],e)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.klass),o=t.truthy,a=t.gvars;return t.add_stubs(["$attr_reader","$delete","$gsub","$read","$size","$to_enum","$chomp","$each_line","$readlines","$split"]),function(e,s,l){var c,u,d,f,h=i(e,s,"File"),p=[h].concat(l);h.$$prototype.eof=h.$$prototype.path=n,h.$attr_reader("eof"),h.$attr_reader("lineno"),h.$attr_reader("path"),t.def(h,"$initialize",c=function(t,e){var r=this,i=n;return null==e&&(e="r"),r.path=t,r.contents=n,r.eof=!1,r.lineno=0,e=e.$delete("b"),i=/:(.*)/,e=e.$gsub(i,""),r.flags=e},c.$$arity=-2),t.def(h,"$read",u=function(){var t=this,e=n;return o(t.eof)?"":(e=r(p,"File").$read(t.path),t.eof=!0,t.lineno=e.$size(),e)},u.$$arity=0),t.def(h,"$each_line",d=function(e){var i=d.$$p,s=i||n,l=this,c=n;if(null==a["/"]&&(a["/"]=n),i&&(d.$$p=null),i&&(d.$$p=null),null==e&&(e=a["/"]),o(l.eof))return function(){return s!==n?l:[].$to_enum()}();if(s!==n){c=r(p,"File").$read(l.path),l.eof=!1,l.lineno=0;for(var u=c.$chomp(),f=c.length!=u.length,h=u.split(e),$=0,m=h.length;$<m;$++)l.lineno+=1,$<m-1||f?t.yield1(s,h[$]+e):t.yield1(s,h[$]);return l.eof=!0,l}return l.$read().$each_line()},d.$$arity=-1),t.def(h,"$readlines",f=function(){var t=this;return r(p,"File").$readlines(t.path)},f.$$arity=0),function(e,i){var o,s,l,c,u=[e].concat(i);t.def(e,"$readlines",o=function(t,e){var i=n;return null==a["/"]&&(a["/"]=n),null==e&&(e=a["/"]),i=r(u,"File").$read(t),i.$split(e)},o.$$arity=-2),t.def(e,"$file?",s=function(t){return!0},s.$$arity=1),t.def(e,"$readable?",l=function(t){return!0},l.$$arity=1),t.def(e,"$read",c=function(t){return""},c.$$arity=1)}(t.get_singleton_class(h),p)}(e[0],null,e),function(e,o,a){var s,l=i(e,o,"IO"),c=[l].concat(a);return t.defs(l,"$read",s=function(t){return r(c,"File").$read(t)},s.$$arity=1),n&&"read"}(e[0],null,e)},Opal.modules["asciidoctor/js/opal_ext/match_data"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.klass),o=t.send;return t.add_stubs(["$[]=","$-"]),function(n,a,s){var l,c=i(n,a,"MatchData");[c].concat(s);return c.$$prototype.matches=r,t.def(c,"$[]=",l=function(n,i){var a=this,s=r;return s=[n,i],o(a.matches,"[]=",t.to_a(s)),s[e(s["length"],1)]},l.$$arity=2),r&&"[]="}(n[0],null,n)},Opal.modules["asciidoctor/js/opal_ext/string"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.klass),o=t.truthy,a=t.send;return t.add_stubs(["$method_defined?","$<","$length","$bytes","$to_s","$byteslice","$==","$with_index","$select","$[]","$even?","$_original_unpack"]),function(n,s,l){var c,u,d=i(n,s,"String");[d].concat(l);return o(d["$method_defined?"]("limit_bytesize"))||t.def(d,"$limit_bytesize",c=function(t){var n=this,i=r;return o(e(t,n.$bytes().$length()))?(i=n.$byteslice(0,t),i.$to_s()):n.$to_s()},c.$$arity=1),o(d["$method_defined?"]("limit"))||t.alias(d,"limit","limit_bytesize"),t.alias(d,"_original_unpack","unpack"),t.def(d,"$unpack",u=function(t){var e,n=this;return t["$=="]("C3")?a(n["$[]"](0,3).$bytes().$select(),"with_index",[],(e=function(t,n){e.$$s;return null==t&&(t=r),null==n&&(n=r),n["$even?"]()},e.$$s=n,e.$$arity=2,e)):n.$_original_unpack(t)},u.$$arity=1),r&&"unpack"}(n[0],null,n)},Opal.modules["asciidoctor/js/opal_ext/uri"]=function(t){t.top;var e=[],n=(t.nil,t.const_get_qualified,t.const_get_relative),r=(t.breaker,t.slice,t.module);return t.add_stubs(["$extend"]),function(e,i){var o,a,s=r(e,"URI"),l=[s].concat(i);t.defs(s,"$parse",o=function(t){return t.$extend(n(l,"URI"))},o.$$arity=1),t.def(s,"$path",a=function(){var t=this;return t},a.$$arity=0)}(e[0],e)},Opal.modules["asciidoctor/js/opal_ext/base64"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.module),i=t.hash2,o=t.truthy;return t.add_stubs(["$delete"]),function(e,a){var s,l,c,u,d,f,h,p,$=r(e,"Base64");[$].concat(a);h=t.global.btoa||function(t){var e;return e=t instanceof Buffer?t:Buffer.from(t.toString(),"binary"),e.toString("base64")},p=t.global.atob||function(t){return Buffer.from(t,"base64").toString("binary")},t.defs($,"$decode64",s=function(t){return p(t.replace(/\r?\n/g,""))},s.$$arity=1),t.defs($,"$encode64",l=function(t){return h(t).replace(/(.{60})/g,"$1\n").replace(/([^\n])$/g,"$1\n")},l.$$arity=1),t.defs($,"$strict_decode64",c=function(t){return p(t)},c.$$arity=1),t.defs($,"$strict_encode64",u=function(t){return h(t)},u.$$arity=1),t.defs($,"$urlsafe_decode64",d=function(t){return p(t.replace(/\-/g,"+").replace(/_/g,"/"))},d.$$arity=1),t.defs($,"$urlsafe_encode64",f=function(e,r){var a,s=n;if(null==r)r=i([],{});else if(!r.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return a=r.$$smap["padding"],null==a&&(a=!0),s=h(e).replace(/\+/g,"-").replace(/\//g,"_"),o(a)||(s=s.$delete("=")),s},f.$$arity=-2)}(e[0],e)},Opal.modules["asciidoctor/js/opal_ext/number"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.klass),a=t.truthy;return t.add_stubs(["$coerce_to!","$>"]),function(n,s,l){var c,u=o(n,s,"Number"),d=[u].concat(l);return t.def(u,"$round",c=function(t){var n=this;return t=i(d,"Opal")["$coerce_to!"](t,i(d,"Integer"),"to_int"),a(e(t,0))?Number(n.toFixed(t)):Math.round(n)},c.$$arity=-1),r&&"round"}(n[0],i(n,"Numeric"),n)},Opal.modules["asciidoctor/js/opal_ext"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;t.add_stubs(["$require"]),e.$require("asciidoctor/js/opal_ext/kernel"),e.$require("asciidoctor/js/opal_ext/file"),e.$require("asciidoctor/js/opal_ext/match_data"),e.$require("asciidoctor/js/opal_ext/string"),e.$require("asciidoctor/js/opal_ext/uri"),e.$require("asciidoctor/js/opal_ext/base64"),e.$require("asciidoctor/js/opal_ext/number"),t.config.unsupported_features_severity="ignore",e.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.module),a=t.send,s=t.gvars,l=t.truthy;return t.add_stubs(["$gsub","$+","$unpack_hex_range"]),function(n,c){var u,d=o(n,"Asciidoctor"),f=[d].concat(c);t.const_set(f[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),t.defs(d,"$unpack_hex_range",u=function(t){var e,n=this;return a(t,"gsub",[i(f,"HEX_RANGE_RX")],(e=function(){var t,n;e.$$s;return"\\u"+((t=s["~"])===r?r:t["$[]"](1))+(l(t=(n=s["~"])===r?r:n["$[]"](2))?"-\\u"+((n=s["~"])===r?r:n["$[]"](2)):t)},e.$$s=n,e.$$arity=0,e))},u.$$arity=1),t.const_set(f[0],"P_L",e("A-Za-z",d.$unpack_hex_range("00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D037F03860388-038A038C038E-03A103A3-03F503F7-0481048A-052F0531-055605590561-058705D0-05EA05F0-05F20620-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280840-085808A0-08B20904-0939093D09500958-09610971-09800985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10CF10CF20D05-0D0C0D0E-0D100D12-0D3A0D3D0D4E0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC-0EDF0F000F40-0F470F49-0F6C0F88-0F8C1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510C710CD10D0-10FA10FC-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA16F1-16F81700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191E1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1BBA-1BE51C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11CF51CF61D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209C21022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2CF22CF32D00-2D252D272D2D2D30-2D672D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31BA31F0-31FF3400-4DB54E00-9FCCA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A66EA67F-A69DA6A0-A6E5A717-A71FA722-A788A78B-A78EA790-A7ADA7B0A7B1A7F7-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFA9E0-A9E4A9E6-A9EFA9FA-A9FEAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA7E-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDAAE0-AAEAAAF2-AAF4AB01-AB06AB09-AB0EAB11-AB16AB20-AB26AB28-AB2EAB30-AB5AAB5C-AB5FAB64AB65ABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC"))),t.const_set(f[0],"P_Nl",d.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),t.const_set(f[0],"P_Nd",e("0-9",d.$unpack_hex_range("0660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0DE6-0DEF0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19D91A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9A9F0-A9F9AA50-AA59ABF0-ABF9FF10-FF19"))),t.const_set(f[0],"P_Pc",d.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),t.const_set(f[0],"CC_ALPHA",""+i(f,"P_L")+i(f,"P_Nl")),t.const_set(f[0],"CG_ALPHA","["+i(f,"CC_ALPHA")+"]"),t.const_set(f[0],"CC_ALNUM",""+i(f,"CC_ALPHA")+i(f,"P_Nd")),t.const_set(f[0],"CG_ALNUM","["+i(f,"CC_ALNUM")+"]"),t.const_set(f[0],"CC_WORD",""+i(f,"CC_ALNUM")+i(f,"P_Pc")),t.const_set(f[0],"CG_WORD","["+i(f,"CC_WORD")+"]"),t.const_set(f[0],"CG_BLANK","[ \\t]"),t.const_set(f[0],"CC_EOL","(?=\\n|$)"),t.const_set(f[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),t.const_set(f[0],"CC_ALL","[\\s\\S]"),t.const_set(f[0],"CC_ANY","[^\\n]")}(n[0],n)},Opal.modules["strscan"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.klass),o=t.send;return t.add_stubs(["$attr_reader","$anchor","$scan_until","$length","$size","$rest","$pos=","$-","$private"]),function(n,a,s){var l,c,u,d,f,h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L=i(n,a,"StringScanner");[L].concat(s);return L.$$prototype.pos=L.$$prototype.string=L.$$prototype.working=L.$$prototype.matched=L.$$prototype.prev_pos=L.$$prototype.match=r,L.$attr_reader("pos"),L.$attr_reader("matched"),t.def(L,"$initialize",l=function(t){var e=this;return e.string=t,e.pos=0,e.matched=r,e.working=t,e.match=[]},l.$$arity=1),L.$attr_reader("string"),t.def(L,"$beginning_of_line?",c=function(){var t=this;return 0===t.pos||"\n"===t.string.charAt(t.pos-1)},c.$$arity=0),t.alias(L,"bol?","beginning_of_line?"),t.def(L,"$scan",u=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);return null==n?e.matched=r:"object"===typeof n?(e.prev_pos=e.pos,e.pos+=n[0].length,e.working=e.working.substring(n[0].length),e.matched=n[0],e.match=n,n[0]):"string"===typeof n?(e.pos+=n.length,e.working=e.working.substring(n.length),n):r},u.$$arity=1),t.def(L,"$scan_until",d=function(t){var e=this;t=e.$anchor(t);var n,i=e.pos,o=e.working;while(1){if(n=t.exec(o),i+=1,o=o.substr(1),null!=n)return e.matched=e.string.substr(e.pos,i-e.pos-1+n[0].length),e.prev_pos=i-1,e.pos=i,e.working=o.substr(n[0].length),e.matched;if(0===o.length)return e.matched=r}},d.$$arity=1),t.def(L,"$[]",f=function(t){var e=this,n=e.match;return t<0&&(t+=n.length),t<0||t>=n.length||null==n[t]?r:n[t]},f.$$arity=1),t.def(L,"$check",h=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);return e.matched=null==n?r:n[0]},h.$$arity=1),t.def(L,"$check_until",p=function(t){var e=this,n=e.prev_pos,i=e.pos,o=e.$scan_until(t);return o!==r&&(e.matched=o.substr(-1),e.working=e.string.substr(i)),e.prev_pos=n,e.pos=i,o},p.$$arity=1),t.def(L,"$peek",$=function(t){var e=this;return e.working.substring(0,t)},$.$$arity=1),t.def(L,"$eos?",m=function(){var t=this;return 0===t.working.length},m.$$arity=0),t.def(L,"$exist?",g=function(t){var e=this,n=t.exec(e.working);return null==n?r:0==n.index?0:n.index+1},g.$$arity=1),t.def(L,"$skip",v=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);if(null==n)return e.matched=r;var i=n[0],o=i.length;return e.matched=i,e.prev_pos=e.pos,e.pos+=o,e.working=e.working.substring(o),o},v.$$arity=1),t.def(L,"$skip_until",y=function(t){var e=this,n=e.$scan_until(t);return n===r?r:(e.matched=n.substr(-1),n.length)},y.$$arity=1),t.def(L,"$get_byte",_=function(){var t=this,e=r;return t.pos<t.string.length?(t.prev_pos=t.pos,t.pos+=1,e=t.matched=t.working.substring(0,1),t.working=t.working.substring(1)):t.matched=r,e},_.$$arity=0),t.alias(L,"getch","get_byte"),t.def(L,"$match?",b=function(t){var e=this;t=e.$anchor(t);var n=t.exec(e.working);return null==n?r:(e.prev_pos=e.pos,n[0].length)},b.$$arity=1),t.def(L,"$pos=",w=function(t){var e=this;return t<0&&(t+=e.string.$length()),e.pos=t,e.working=e.string.slice(t)},w.$$arity=1),t.def(L,"$matched_size",x=function(){var t=this;return t.matched===r?r:t.matched.length},x.$$arity=0),t.def(L,"$post_match",k=function(){var t=this;return t.matched===r?r:t.string.substr(t.pos)},k.$$arity=0),t.def(L,"$pre_match",S=function(){var t=this;return t.matched===r?r:t.string.substr(0,t.prev_pos)},S.$$arity=0),t.def(L,"$reset",O=function(){var t=this;return t.working=t.string,t.matched=r,t.pos=0},O.$$arity=0),t.def(L,"$rest",C=function(){var t=this;return t.working},C.$$arity=0),t.def(L,"$rest?",A=function(){var t=this;return 0!==t.working.length},A.$$arity=0),t.def(L,"$rest_size",E=function(){var t=this;return t.$rest().$size()},E.$$arity=0),t.def(L,"$terminate",T=function(){var n=this,i=r;return n.match=r,i=[n.string.$length()],o(n,"pos=",t.to_a(i)),i[e(i["length"],1)]},T.$$arity=0),t.def(L,"$unscan",P=function(){var t=this;return t.pos=t.prev_pos,t.prev_pos=r,t.match=r,t},P.$$arity=0),L.$private(),t.def(L,"$anchor",B=function(t){var e=t.toString().match(/\/([^\/]+)$/);return e=e?e[1]:void 0,new RegExp("^(?:"+t.source+")",e)},B.$$arity=1),r&&"anchor"}(n[0],null,n)},Opal.modules["asciidoctor/js"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;return t.add_stubs(["$require"]),e.$require("asciidoctor/js/opal_ext"),e.$require("asciidoctor/js/rx"),e.$require("strscan")},Opal.modules["asciidoctor/core_ext/nil_or_empty"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.klass),i=t.truthy;return t.add_stubs(["$method_defined?"]),function(e,n,o){var a=r(e,n,"NilClass");[a].concat(o);i(a["$method_defined?"]("nil_or_empty?"))||t.alias(a,"nil_or_empty?","nil?")}(e[0],null,e),function(e,n,o){var a=r(e,n,"String");[a].concat(o);i(a["$method_defined?"]("nil_or_empty?"))||t.alias(a,"nil_or_empty?","empty?")}(e[0],null,e),function(e,n,o){var a=r(e,n,"Array");[a].concat(o);i(a["$method_defined?"]("nil_or_empty?"))||t.alias(a,"nil_or_empty?","empty?")}(e[0],null,e),function(e,n,o){var a=r(e,n,"Hash");[a].concat(o);i(a["$method_defined?"]("nil_or_empty?"))||t.alias(a,"nil_or_empty?","empty?")}(e[0],null,e),function(e,o,a){var s=r(e,o,"Numeric");[s].concat(a);return i(s["$method_defined?"]("nil_or_empty?"))?n:t.alias(s,"nil_or_empty?","nil?")}(e[0],null,e)},Opal.modules["asciidoctor/core_ext/hash/merge"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}var r,i=t.top,o=[],a=t.nil,s=(t.const_get_qualified,t.const_get_relative),l=(t.breaker,t.slice,t.send),c=t.truthy,u=t.hash2;return t.add_stubs(["$==","$arity","$instance_method","$send","$new","$<","$length","$>","$inject","$merge","$[]"]),s(o,"Hash").$instance_method("merge").$arity()["$=="](1)?s(o,"Hash").$send("prepend",l(s(o,"Module"),"new",[],(r=function(){var i,o=r.$$s||this;return t.def(o,"$merge",i=function(r){var o,s,d,f=i.$$p,h=this,p=a;return f&&(i.$$p=null),o=t.slice.call(arguments,0,arguments.length),s=o,c(e(p=s.$length(),1))?l(h,t.find_super_dispatcher(h,"merge",i,!1),[u([],{})],null):c(n(p,1))?l(s,"inject",[h],(d=function(t,e){d.$$s;return null==t&&(t=a),null==e&&(e=a),t.$merge(e)},d.$$s=h,d.$$arity=2,d)):l(h,t.find_super_dispatcher(h,"merge",i,!1),[s["$[]"](0)],null)},i.$$arity=-1),a&&"merge"},r.$$s=i,r.$$arity=0,r))):a},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.truthy),o=t.klass;return t.add_stubs(["$method_defined?"]),i(r(e,"MatchData")["$method_defined?"]("names"))?n:function(e,r,i){var a,s=o(e,r,"MatchData");[s].concat(i);return t.def(s,"$names",a=function(){return[]},a.$$arity=0),n&&"names"}(e[0],null,e)},Opal.modules["asciidoctor/core_ext"]=function(t){var e=t.top,n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative);t.breaker,t.slice;return t.add_stubs(["$=="]),e.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),e.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),i(n,"RUBY_ENGINE")["$=="]("opal")?e.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names"):r},Opal.modules["asciidoctor/helpers"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.truthy,u=t.gvars,d=t.send,f=t.hash2;return t.add_stubs(["$module_function","$require","$include?","$include","$==","$===","$path","$message","$raise","$warn","$logger","$chomp","$empty?","$slice","$unpack","$[]","$byteslice","$bytesize","$[]=","$-","$map","$rstrip","$encode","$encoding","$nil_or_empty?","$!=","$tap","$each_line","$<<","$match?","$gsub","$rindex","$index","$basename","$extname","$!","$length","$directory?","$dirname","$mkdir_p","$mkdir","$private_constant","$join","$divmod","$*","$+","$to_i","$to_s","$chr","$ord","$class_for_name","$const_get"]),function(i,h){var p=l(i,"Asciidoctor"),$=[p].concat(h);(function(i,h){var p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T=l(i,"Helpers"),P=[T].concat(h);T.$module_function(),t.def(T,"$require_library",p=function(e,n,r){var i=this,l=o,d=o;null==u["!"]&&(u["!"]=o),null==n&&(n=!0),null==r&&(r="abort");try{return i.$require(e)}catch(f){if(!t.rescue(f,[a("::","LoadError")]))throw f;try{return c(i["$include?"](s(P,"Logging")))||i.$include(s(P,"Logging")),c(n)?(n["$=="](!0)&&(n=e),l=r,"abort"["$==="](l)?(d=function(){return u["!"].$path()["$=="](n)?"":" (reason: "+function(){return c(u["!"].$path())?"cannot load '"+u["!"].$path()+"'":u["!"].$message()}()+")"}(),i.$raise(a("::","LoadError"),"asciidoctor: FAILED: required gem '"+n+"' is not available"+d+". Processing aborted.")):"warn"["$==="](l)&&(d=function(){return u["!"].$path()["$=="](n)?"":" (reason: "+function(){return c(u["!"].$path())?"cannot load '"+u["!"].$path()+"'":u["!"].$message()}()+")"}(),i.$logger().$warn("optional gem '"+n+"' is not available"+d+". Functionality disabled."))):(l=r,"abort"["$==="](l)?i.$raise(a("::","LoadError"),"asciidoctor: FAILED: "+u["!"].$message().$chomp(".")+". Processing aborted."):"warn"["$==="](l)&&i.$logger().$warn(u["!"].$message().$chomp(".")+". Functionality disabled.")),o}finally{t.pop_exception()}}},p.$$arity=-2),t.def(T,"$prepare_source_array",$=function(n){var r,i,l,u,f=this,h=o,p=o,$=o,m=o;return c(n["$empty?"]())?[]:(h=(p=($=n["$[]"](0)).$unpack("C3")).$slice(0,2))["$=="](s(P,"BOM_BYTES_UTF_16LE"))?(m=[0,$.$byteslice(2,$.$bytesize())],d(n,"[]=",t.to_a(m)),m[e(m["length"],1)],d(n,"map",[],(r=function(t){r.$$s;return null==t&&(t=o),t.$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16LE")).$rstrip()},r.$$s=f,r.$$arity=1,r))):h["$=="](s(P,"BOM_BYTES_UTF_16BE"))?(m=[0,$.$byteslice(2,$.$bytesize())],d(n,"[]=",t.to_a(m)),m[e(m["length"],1)],d(n,"map",[],(i=function(t){i.$$s;return null==t&&(t=o),t.$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16BE")).$rstrip()},i.$$s=f,i.$$arity=1,i))):(p["$=="](s(P,"BOM_BYTES_UTF_8"))&&(m=[0,$.$byteslice(3,$.$bytesize())],d(n,"[]=",t.to_a(m)),m[e(m["length"],1)]),$.$encoding()["$=="](s(P,"UTF_8"))?d(n,"map",[],(l=function(t){l.$$s;return null==t&&(t=o),t.$rstrip()},l.$$s=f,l.$$arity=1,l)):d(n,"map",[],(u=function(t){u.$$s;return null==t&&(t=o),t.$encode(s(P,"UTF_8")).$rstrip()},u.$$s=f,u.$$arity=1,u)))},$.$$arity=1),t.def(T,"$prepare_source_string",m=function(t){var e,n=this,r=o,i=o;return c(t["$nil_or_empty?"]())?[]:((r=(i=t.$unpack("C3")).$slice(0,2))["$=="](s(P,"BOM_BYTES_UTF_16LE"))?t=t.$byteslice(2,t.$bytesize()).$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16LE")):r["$=="](s(P,"BOM_BYTES_UTF_16BE"))?t=t.$byteslice(2,t.$bytesize()).$encode(s(P,"UTF_8"),a(a("::","Encoding"),"UTF_16BE")):i["$=="](s(P,"BOM_BYTES_UTF_8"))?(t=t.$byteslice(3,t.$bytesize()),t.$encoding()["$=="](s(P,"UTF_8"))||(t=t.$encode(s(P,"UTF_8")))):c(t.$encoding()["$!="](s(P,"UTF_8")))&&(t=t.$encode(s(P,"UTF_8"))),d([],"tap",[],(e=function(n){var r,i=e.$$s||this;return null==n&&(n=o),d(t,"each_line",[],(r=function(t){r.$$s;return null==t&&(t=o),n["$<<"](t.$rstrip())},r.$$s=i,r.$$arity=1,r))},e.$$s=n,e.$$arity=1,e)))},m.$$arity=1),t.def(T,"$uriish?",g=function(t){var e;return c(e=t["$include?"](":"))?s(P,"UriSniffRx")["$match?"](t):e},g.$$arity=1),s(P,"RUBY_ENGINE")["$=="]("opal")&&t.def(T,"$encode_uri_component",v=function(t){return encodeURIComponent(t).replace(/%20|[!'()*]/g,(function(t){return"%20"===t?"+":"%"+t.charCodeAt(0).toString(16)}))},v.$$arity=1),t.def(T,"$encode_spaces_in_uri",y=function(t){return c(t["$include?"](" "))?t.$gsub(" ","%20"):t},y.$$arity=1),t.def(T,"$rootname",_=function(t){var e=o;return c(e=t.$rindex("."))?c(t.$index("/",e))?t:t.$slice(0,e):t},_.$$arity=1),t.def(T,"$basename",b=function(t,e){var n=this;return null==e&&(e=o),c(e)?a("::","File").$basename(t,function(){return e["$=="](!0)?n.$extname(t):e}()):a("::","File").$basename(t)},b.$$arity=-2),t.def(T,"$extname?",w=function(t){var e,n=o;return c(e=n=t.$rindex("."))?t.$index("/",n)["$!"]():e},w.$$arity=1),c(a(a("::","File"),"ALT_SEPARATOR"))?t.def(T,"$extname",x=function(t,e){var n,r=o;return null==e&&(e=""),c(r=t.$rindex("."))?c(c(n=t.$index("/",r))?n:t.$index(a(a("::","File"),"ALT_SEPARATOR"),r))?e:t.$slice(r,t.$length()):e},x.$$arity=-2):t.def(T,"$extname",k=function(t,e){var n=o;return null==e&&(e=""),c(n=t.$rindex("."))?c(t.$index("/",n))?e:t.$slice(n,t.$length()):e},k.$$arity=-2),t.def(T,"$mkdir_p",S=function(e){var n=this,r=o;if(c(a("::","File")["$directory?"](e)))return o;(r=a("::","File").$dirname(e))["$=="](".")||n.$mkdir_p(r);try{return a("::","Dir").$mkdir(e)}catch(i){if(!t.rescue(i,[a("::","SystemCallError")]))throw i;try{return c(a("::","File")["$directory?"](e))?o:n.$raise()}finally{t.pop_exception()}}},S.$$arity=1),t.const_set(P[0],"ROMAN_NUMERALS",f(["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],{M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1})),T.$private_constant("ROMAN_NUMERALS"),t.def(T,"$int_to_roman",O=function(e){var r,i=this;return d(s(P,"ROMAN_NUMERALS"),"map",[],(r=function(i,a){r.$$s;var s,l,c=o;return null==i&&(i=o),null==a&&(a=o),l=e.$divmod(a),s=t.to_ary(l),c=null==s[0]?o:s[0],e=null==s[1]?o:s[1],n(i,c)},r.$$s=i,r.$$arity=2,r)).$join()},O.$$arity=1),t.def(T,"$nextval",C=function(t){var e=o;return c(a("::","Integer")["$==="](t))?r(t,1):(e=t.$to_i(),c(e.$to_s()["$!="](t.$to_s()))?r(t["$[]"](0).$ord(),1).$chr():r(e,1))},C.$$arity=1),t.def(T,"$resolve_class",A=function(t){var e=this;return c(a("::","Class")["$==="](t))?t:c(a("::","String")["$==="](t))?e.$class_for_name(t):o},A.$$arity=1),t.def(T,"$class_for_name",E=function(e){var n=this,r=o;try{return c(a("::","Class")["$==="](r=a("::","Object").$const_get(e,!1)))||n.$raise(),r}catch(i){if(!t.rescue(i,[s(P,"StandardError")]))throw i;try{return n.$raise(a("::","NameError"),"Could not resolve class for name: "+e)}finally{t.pop_exception()}}},E.$$arity=1)})($[0],$)}(i[0],i)},Opal.modules["logger"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.klass),c=t.module,u=t.send,d=t.truthy;return t.add_stubs(["$include","$to_h","$map","$constants","$const_get","$to_s","$format","$chr","$strftime","$message_as_string","$===","$+","$message","$class","$join","$backtrace","$inspect","$attr_reader","$attr_accessor","$new","$key","$upcase","$raise","$add","$to_proc","$<=","$<","$write","$call","$[]","$now"]),function(i,f,h){var p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E=l(i,f,"Logger"),T=[E].concat(h);return E.$$prototype.level=E.$$prototype.progname=E.$$prototype.pipe=E.$$prototype.formatter=o,function(e,n){var r=c(e,"Severity"),i=[r].concat(n);t.const_set(i[0],"DEBUG",0),t.const_set(i[0],"INFO",1),t.const_set(i[0],"WARN",2),t.const_set(i[0],"ERROR",3),t.const_set(i[0],"FATAL",4),t.const_set(i[0],"UNKNOWN",5)}(T[0],T),E.$include(s(T,"Severity")),t.const_set(T[0],"SEVERITY_LABELS",u(s(T,"Severity").$constants(),"map",[],(p=function(t){p.$$s;return null==t&&(t=o),[s(T,"Severity").$const_get(t),t.$to_s()]},p.$$s=E,p.$$arity=1,p)).$to_h()),function(n,r,i){var c,u,f=l(n,r,"Formatter"),h=[f].concat(i);t.const_set(h[0],"MESSAGE_FORMAT","%s, [%s] %5s -- %s: %s\n"),t.const_set(h[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N"),t.def(f,"$call",c=function(t,e,n,r){var i=this;return i.$format(s(h,"MESSAGE_FORMAT"),t.$chr(),e.$strftime(s(h,"DATE_TIME_FORMAT")),t,n,i.$message_as_string(r))},c.$$arity=4),t.def(f,"$message_as_string",u=function(t){var n,r=o;return function(){return r=t,a("::","String")["$==="](r)?t:a("::","Exception")["$==="](r)?e(t.$message()+" ("+t.$class()+")\n",(d(n=t.$backtrace())?n:[]).$join("\n")):t.$inspect()}()},u.$$arity=1)}(T[0],null,T),E.$attr_reader("level"),E.$attr_accessor("progname"),E.$attr_accessor("formatter"),t.def(E,"$initialize",$=function(t){var e=this;return e.pipe=t,e.level=s(T,"DEBUG"),e.formatter=s(T,"Formatter").$new()},$.$$arity=1),t.def(E,"$level=",m=function(t){var e=this,n=o;return d(a("::","Integer")["$==="](t))?e.level=t:d(n=s(T,"SEVERITY_LABELS").$key(t.$to_s().$upcase()))?e.level=n:e.$raise(s(T,"ArgumentError"),"invalid log level: "+t)},m.$$arity=1),t.def(E,"$info",g=function(t){var e=g.$$p,n=e||o,r=this;return e&&(g.$$p=null),e&&(g.$$p=null),null==t&&(t=o),u(r,"add",[s(T,"INFO"),o,t],n.$to_proc())},g.$$arity=-1),t.def(E,"$debug",v=function(t){var e=v.$$p,n=e||o,r=this;return e&&(v.$$p=null),e&&(v.$$p=null),null==t&&(t=o),u(r,"add",[s(T,"DEBUG"),o,t],n.$to_proc())},v.$$arity=-1),t.def(E,"$warn",y=function(t){var e=y.$$p,n=e||o,r=this;return e&&(y.$$p=null),e&&(y.$$p=null),null==t&&(t=o),u(r,"add",[s(T,"WARN"),o,t],n.$to_proc())},y.$$arity=-1),t.def(E,"$error",_=function(t){var e=_.$$p,n=e||o,r=this;return e&&(_.$$p=null),e&&(_.$$p=null),null==t&&(t=o),u(r,"add",[s(T,"ERROR"),o,t],n.$to_proc())},_.$$arity=-1),t.def(E,"$fatal",b=function(t){var e=b.$$p,n=e||o,r=this;return e&&(b.$$p=null),e&&(b.$$p=null),null==t&&(t=o),u(r,"add",[s(T,"FATAL"),o,t],n.$to_proc())},b.$$arity=-1),t.def(E,"$unknown",w=function(t){var e=w.$$p,n=e||o,r=this;return e&&(w.$$p=null),e&&(w.$$p=null),null==t&&(t=o),u(r,"add",[s(T,"UNKNOWN"),o,t],n.$to_proc())},w.$$arity=-1),t.def(E,"$info?",x=function(){var t=this;return n(t.level,s(T,"INFO"))},x.$$arity=0),t.def(E,"$debug?",k=function(){var t=this;return n(t.level,s(T,"DEBUG"))},k.$$arity=0),t.def(E,"$warn?",S=function(){var t=this;return n(t.level,s(T,"WARN"))},S.$$arity=0),t.def(E,"$error?",O=function(){var t=this;return n(t.level,s(T,"ERROR"))},O.$$arity=0),t.def(E,"$fatal?",C=function(){var t=this;return n(t.level,s(T,"FATAL"))},C.$$arity=0),t.def(E,"$add",A=function(e,n,i){var l,c=A.$$p,u=c||o,f=this;return c&&(A.$$p=null),c&&(A.$$p=null),null==n&&(n=o),null==i&&(i=o),d(r(e=d(l=e)?l:s(T,"UNKNOWN"),f.level))||(i=d(l=i)?l:f.progname,d(n)||(u!==o?n=t.yieldX(u,[]):(n=i,i=f.progname)),f.pipe.$write(f.formatter.$call(d(l=s(T,"SEVERITY_LABELS")["$[]"](e))?l:"ANY",a("::","Time").$now(),i,n))),!0},A.$$arity=-2),o&&"add"}(i[0],null,i)},Opal.modules["asciidoctor/logging"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}var r=t.top,i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.send,d=t.truthy,f=t.hash2,h=t.gvars;return t.add_stubs(["$require","$attr_reader","$progname=","$-","$new","$formatter=","$level=","$>","$[]","$===","$inspect","$tap","$each","$constants","$const_get","$[]=","$<<","$clear","$empty?","$max","$map","$attr_accessor","$memoize_logger","$private","$private_class_method","$extend","$logger","$merge"]),r.$require("logger"),function(r,i){var p=l(r,"Asciidoctor"),$=[p].concat(i);(function(r,i,h){var p,$,m=c(r,i,"Logger"),g=[m].concat(h);m.$$prototype.max_severity=o,m.$attr_reader("max_severity"),t.def(m,"$initialize",p=function(n){var r,i=p.$$p,a=this,l=o,c=o,d=o,f=o;for(i&&(p.$$p=null),d=0,f=arguments.length,c=new Array(f);d<f;d++)c[d]=arguments[d];return r=t.slice.call(arguments,0,arguments.length),r,u(a,t.find_super_dispatcher(a,"initialize",p,!1),c,i),l=["asciidoctor"],u(a,"progname=",t.to_a(l)),l[e(l["length"],1)],l=[s(g,"BasicFormatter").$new()],u(a,"formatter=",t.to_a(l)),l[e(l["length"],1)],l=[s(g,"WARN")],u(a,"level=",t.to_a(l)),l[e(l["length"],1)]},p.$$arity=-1),t.def(m,"$add",$=function(e,r,i){var a,l=$.$$p,c=this,f=o,h=o,p=o;for(l&&($.$$p=null),h=0,p=arguments.length,f=new Array(p);h<p;h++)f[h]=arguments[h];return null==r&&(r=o),null==i&&(i=o),d(n(e=d(a=e)?a:s(g,"UNKNOWN"),c.max_severity=d(a=c.max_severity)?a:e))&&(c.max_severity=e),u(c,t.find_super_dispatcher(c,"add",$,!1),f,l)},$.$$arity=-2),function(e,n,r){var i,o=c(e,n,"BasicFormatter"),l=[o].concat(r);t.const_set(l[0],"SEVERITY_LABELS",f(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"})),t.def(o,"$call",i=function(t,e,n,r){var i;return n+": "+(d(i=s(l,"SEVERITY_LABELS")["$[]"](t))?i:t)+": "+function(){return d(a("::","String")["$==="](r))?r:r.$inspect()}()+s(l,"LF")},i.$$arity=4)}(g[0],s(g,"Formatter"),g),function(e,n){var r,i=l(e,"AutoFormattingMessage");[i].concat(n);t.def(i,"$inspect",r=function(){var t=this,e=o;return d(e=t["$[]"]("source_location"))?e+": "+t["$[]"]("text"):t["$[]"]("text")},r.$$arity=0)}(g[0],g)})($[0],a("::","Logger"),$),function(n,r,i){var a,l,h,p,$,m,g=c(n,r,"MemoryLogger"),v=[g].concat(i);g.$$prototype.messages=o,t.const_set(v[0],"SEVERITY_LABELS",u(f([],{}),"tap",[],(a=function(n){var r,i=a.$$s||this;return null==n&&(n=o),u(s(v,"Severity").$constants(!1),"each",[],(r=function(i){r.$$s;var a=o;return null==i&&(i=o),a=[s(v,"Severity").$const_get(i,!1),i],u(n,"[]=",t.to_a(a)),a[e(a["length"],1)]},r.$$s=i,r.$$arity=1,r))},a.$$s=g,a.$$arity=1,a))),g.$attr_reader("messages"),t.def(g,"$initialize",l=function(){var n=this,r=o;return r=[s(v,"WARN")],u(n,"level=",t.to_a(r)),r[e(r["length"],1)],n.messages=[]},l.$$arity=0),t.def(g,"$add",h=function(e,n,r){var i,a=h.$$p,l=a||o,c=this;return a&&(h.$$p=null),null==n&&(n=o),null==r&&(r=o),d(n)||(n=function(){return l!==o?t.yieldX(l,[]):r}()),c.messages["$<<"](f(["severity","message"],{severity:s(v,"SEVERITY_LABELS")["$[]"](d(i=e)?i:s(v,"UNKNOWN")),message:n})),!0},h.$$arity=-2),t.def(g,"$clear",p=function(){var t=this;return t.messages.$clear()},p.$$arity=0),t.def(g,"$empty?",$=function(){var t=this;return t.messages["$empty?"]()},$.$$arity=0),t.def(g,"$max_severity",m=function(){var t,e=this;return d(e["$empty?"]())?o:u(e.messages,"map",[],(t=function(e){t.$$s;return null==e&&(e=o),s(v,"Severity").$const_get(e["$[]"]("severity"),!1)},t.$$s=e,t.$$arity=1,t)).$max()},m.$$arity=0)}($[0],a("::","Logger"),$),function(r,i,a){var l,f,h=c(r,i,"NullLogger"),p=[h].concat(a);h.$$prototype.max_severity=o,h.$attr_reader("max_severity"),t.def(h,"$initialize",l=function(){var n=this,r=o;return r=[s(p,"WARN")],u(n,"level=",t.to_a(r)),r[e(r["length"],1)]},l.$$arity=0),t.def(h,"$add",f=function(t,e,r){var i,a=this;return null==e&&(e=o),null==r&&(r=o),d(n(t=d(i=t)?i:s(p,"UNKNOWN"),a.max_severity=d(i=a.max_severity)?i:t))&&(a.max_severity=t),!0},f.$$arity=-2)}($[0],a("::","Logger"),$),function(e,n){var r=l(e,"LoggerManager"),i=[r].concat(n);r.logger_class=s(i,"Logger"),function(e,n){var r,i,a,s=[e].concat(n);e.$attr_accessor("logger_class"),t.def(e,"$logger",r=function(t){var e,n=this;return null==n.logger&&(n.logger=o),null==n.logger_class&&(n.logger_class=o),null==h.stderr&&(h.stderr=o),null==t&&(t=h.stderr),n.$memoize_logger(),n.logger=d(e=n.logger)?e:n.logger_class.$new(t)},r.$$arity=-1),t.def(e,"$logger=",i=function(t){var e,n=this;return null==n.logger_class&&(n.logger_class=o),null==h.stderr&&(h.stderr=o),n.logger=d(e=t)?e:n.logger_class.$new(h.stderr)},i.$$arity=1),e.$private(),t.def(e,"$memoize_logger",a=function(){var e=this;return function(e,n){[e].concat(n);return t.alias(e,"logger","logger"),e.$attr_reader("logger")}(t.get_singleton_class(e),s)},a.$$arity=0)}(t.get_singleton_class(r),i)}($[0],$),function(e,n){var r,i,c,u,h=l(e,"Logging"),p=[h].concat(n);h.$private_class_method(d((t.defs(h,"$included",i=function(t){return t.$extend(s(p,"Logging"))},i.$$arity=1),r=o&&"included"))?r:"included"),t.def(h,"$logger",c=function(){return s(p,"LoggerManager").$logger()},c.$$arity=0),t.def(h,"$message_with_context",u=function(t,e){return null==e&&(e=f([],{})),f(["text"],{text:t}).$merge(e).$extend(a(s(p,"Logger"),"AutoFormattingMessage"))},u.$$arity=-2)}($[0],$)}(i[0],i)},Opal.modules["asciidoctor/rx"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.module),s=t.hash2,l=t.send,c=t.truthy,u=t.hash;return t.add_stubs(["$==","$join","$to_a","$new","$empty?","$escape","$[]=","$-"]),function(n,d){var f,h,p=a(n,"Asciidoctor"),$=[p].concat(d);(function(t,e){var n=a(t,"Rx");[n].concat(e)})($[0],$),t.const_set($[0],"AuthorInfoLineRx",new RegExp("^("+o($,"CG_WORD")+"["+o($,"CC_WORD")+"\\-'.]*)(?: +("+o($,"CG_WORD")+"["+o($,"CC_WORD")+"\\-'.]*))?(?: +("+o($,"CG_WORD")+"["+o($,"CC_WORD")+"\\-'.]*))?(?: +<([^>]+)>)?$")),t.const_set($[0],"AuthorDelimiterRx",/;(?: |$)/),t.const_set($[0],"RevisionInfoLineRx",new RegExp("^(?:[^\\d{]*("+o($,"CC_ANY")+"*?),)? *(?!:)("+o($,"CC_ANY")+"*?)(?: *(?!^),?: *("+o($,"CC_ANY")+"*))?$")),t.const_set($[0],"ManpageTitleVolnumRx",new RegExp("^("+o($,"CC_ANY")+"+?) *\\( *("+o($,"CC_ANY")+"+?) *\\)$")),t.const_set($[0],"ManpageNamePurposeRx",new RegExp("^("+o($,"CC_ANY")+"+?) +- +("+o($,"CC_ANY")+"+)$")),t.const_set($[0],"ConditionalDirectiveRx",new RegExp("^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"EvalExpressionRx",new RegExp("^("+o($,"CC_ANY")+"+?) *([=!><]=|[><]) *("+o($,"CC_ANY")+"+)$")),t.const_set($[0],"IncludeDirectiveRx",new RegExp("^(\\\\)?include::([^\\[][^\\[]*)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),t.const_set($[0],"AttributeEntryRx",new RegExp("^:(!?"+o($,"CG_WORD")+"[^:]*):(?:[ \\t]+("+o($,"CC_ANY")+"*))?$")),t.const_set($[0],"InvalidAttributeNameCharsRx",new RegExp("[^"+o($,"CC_WORD")+"-]")),o($,"RUBY_ENGINE")["$=="]("opal")&&t.const_set($[0],"AttributeEntryPassMacroRx",new RegExp("^pass:([a-z]+(?:,[a-z-]+)*)?\\[("+o($,"CC_ALL")+"*)\\]$")),t.const_set($[0],"AttributeReferenceRx",new RegExp("(\\\\)?\\{("+o($,"CG_WORD")+"["+o($,"CC_WORD")+"-]*|(set|counter2?):"+o($,"CC_ANY")+"+?)(\\\\)?\\}")),t.const_set($[0],"BlockAnchorRx",new RegExp("^\\[\\[(?:|(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+))?)\\]\\]$")),t.const_set($[0],"BlockAttributeListRx",new RegExp("^\\[(|["+o($,"CC_WORD")+".#%{,\"']"+o($,"CC_ANY")+"*)\\]$")),t.const_set($[0],"BlockAttributeLineRx",new RegExp("^\\[(?:|["+o($,"CC_WORD")+".#%{,\"']"+o($,"CC_ANY")+"*|\\[(?:|["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*(?:, *"+o($,"CC_ANY")+"+)?)\\])\\]$")),t.const_set($[0],"BlockTitleRx",new RegExp("^\\.(\\.?[^ \\t.]"+o($,"CC_ANY")+"*)$")),t.const_set($[0],"AdmonitionParagraphRx",new RegExp("^("+o($,"ADMONITION_STYLES").$to_a().$join("|")+"):[ \\t]+")),t.const_set($[0],"LiteralParagraphRx",new RegExp("^([ \\t]+"+o($,"CC_ANY")+"*)$")),t.const_set($[0],"AtxSectionTitleRx",new RegExp("^(=={0,5})[ \\t]+("+o($,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$")),t.const_set($[0],"ExtAtxSectionTitleRx",new RegExp("^(=={0,5}|#\\#{0,5})[ \\t]+("+o($,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$")),t.const_set($[0],"SetextSectionTitleRx",new RegExp("^((?!\\.)"+o($,"CC_ANY")+"*?"+o($,"CG_ALNUM")+o($,"CC_ANY")+"*)$")),t.const_set($[0],"InlineSectionAnchorRx",new RegExp(" (\\\\)?\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+))?\\]\\]$")),t.const_set($[0],"InvalidSectionIdCharsRx",new RegExp("<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ "+o($,"CC_WORD")+"\\-.]+?")),t.const_set($[0],"SectionLevelStyleRx",/^sect\d$/),t.const_set($[0],"AnyListRx",new RegExp("^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]"+o($,"CC_ANY")+"*?(?::::{0,2}|;;)(?:$|[ \\t])|<?\\d+>[ \\t])")),t.const_set($[0],"UnorderedListRx",new RegExp("^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+("+o($,"CC_ANY")+"*)$")),t.const_set($[0],"OrderedListRx",new RegExp("^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+("+o($,"CC_ANY")+"*)$")),t.const_set($[0],"OrderedListMarkerRxMap",s(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),t.const_set($[0],"DescriptionListRx",new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?)(:::{0,2}|;;)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)")),t.const_set($[0],"DescriptionListSiblingRx",s(["::",":::","::::",";;"],{"::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)"),":::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)"),"::::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)"),";;":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+o($,"CC_ANY")+"*?)(;;)(?:$|[ \\t]+("+o($,"CC_ANY")+"*)$)")})),t.const_set($[0],"CalloutListRx",new RegExp("^<(\\d+|\\.)>[ \\t]+("+o($,"CC_ANY")+"*)$")),t.const_set($[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/),t.const_set($[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),t.const_set($[0],"CalloutExtractRxMap",l(i("::","Hash"),"new",[],(f=function(n,a){f.$$s;var s=r;return null==n&&(n=r),null==a&&(a=r),s=[a,new RegExp("("+function(){return c(a["$empty?"]())?"":i("::","Regexp").$escape(a)+" ?"}()+")?"+o($,"CalloutExtractRxt"))],l(n,"[]=",t.to_a(s)),s[e(s["length"],1)]},f.$$s=p,f.$$arity=2,f))),t.const_set($[0],"CalloutScanRx",new RegExp("\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*"+o($,"CC_EOL")+")")),t.const_set($[0],"CalloutSourceRx",new RegExp("((?://|#|--|;;) ?)?(\\\\)?&lt;!?(|--)(\\d+|\\.)\\3&gt;(?=(?: ?\\\\?&lt;!?\\3(?:\\d+|\\.)\\3&gt;)*"+o($,"CC_EOL")+")")),t.const_set($[0],"CalloutSourceRxt","(\\\\)?&lt;()(\\d+|\\.)&gt;(?=(?: ?\\\\?&lt;(?:\\d+|\\.)&gt;)*"+o($,"CC_EOL")+")"),t.const_set($[0],"CalloutSourceRxMap",l(i("::","Hash"),"new",[],(h=function(n,a){h.$$s;var s=r;return null==n&&(n=r),null==a&&(a=r),s=[a,new RegExp("("+function(){return c(a["$empty?"]())?"":i("::","Regexp").$escape(a)+" ?"}()+")?"+o($,"CalloutSourceRxt"))],l(n,"[]=",t.to_a(s)),s[e(s["length"],1)]},h.$$s=p,h.$$arity=2,h))),t.const_set($[0],"ListRxMap",s(["ulist","olist","dlist","colist"],{ulist:o($,"UnorderedListRx"),olist:o($,"OrderedListRx"),dlist:o($,"DescriptionListRx"),colist:o($,"CalloutListRx")})),t.const_set($[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),t.const_set($[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),t.const_set($[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),t.const_set($[0],"CustomBlockMacroRx",new RegExp("^("+o($,"CG_WORD")+"["+o($,"CC_WORD")+"-]*)::(|\\S|\\S"+o($,"CC_ANY")+"*?\\S)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"BlockMediaMacroRx",new RegExp("^(image|video|audio)::(\\S|\\S"+o($,"CC_ANY")+"*?\\S)\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"BlockTocMacroRx",new RegExp("^toc::\\[("+o($,"CC_ANY")+"+)?\\]$")),t.const_set($[0],"InlineAnchorRx",new RegExp("(\\\\)?(?:\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]|anchor:(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+o($,"CC_ANY")+"*?[^\\\\])\\]))")),t.const_set($[0],"InlineAnchorScanRx",new RegExp("(?:^|[^\\\\\\[])\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]|(?:^|[^\\\\])anchor:(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+o($,"CC_ANY")+"*?[^\\\\])\\])")),t.const_set($[0],"LeadingInlineAnchorRx",new RegExp("^\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]")),t.const_set($[0],"InlineBiblioAnchorRx",new RegExp("^\\[\\[\\[(["+o($,"CC_ALPHA")+"_:]["+o($,"CC_WORD")+"\\-:.]*)(?:, *("+o($,"CC_ANY")+"+?))?\\]\\]\\]")),t.const_set($[0],"InlineEmailRx",new RegExp("([\\\\>:/])?"+o($,"CG_WORD")+"(?:&amp;|["+o($,"CC_WORD")+"\\-.%+])*@"+o($,"CG_ALNUM")+"["+o($,"CC_ALNUM")+"_\\-.]*\\.[a-zA-Z]{2,5}\\b")),t.const_set($[0],"InlineFootnoteMacroRx",new RegExp("\\\\?footnote(?:(ref):|:(["+o($,"CC_WORD")+"-]+)?)\\[(?:|("+o($,"CC_ALL")+"*?[^\\\\]))\\]","m")),t.const_set($[0],"InlineImageMacroRx",new RegExp("\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"InlineIndextermMacroRx",new RegExp("\\\\?(?:(indexterm2?):\\[("+o($,"CC_ALL")+"*?[^\\\\])\\]|\\(\\(("+o($,"CC_ALL")+"+?)\\)\\)(?!\\)))","m")),t.const_set($[0],"InlineKbdBtnMacroRx",new RegExp("(\\\\)?(kbd|btn):\\[("+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"InlineLinkRx",new RegExp("(^|link:|"+o($,"CG_BLANK")+"|&lt;|[>\\(\\)\\[\\];])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\])?","m")),t.const_set($[0],"InlineLinkMacroRx",new RegExp("\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"MacroNameRx",new RegExp("^"+o($,"CG_WORD")+"["+o($,"CC_WORD")+"-]*$")),t.const_set($[0],"InlineStemMacroRx",new RegExp("\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[("+o($,"CC_ALL")+"*?[^\\\\])\\]","m")),t.const_set($[0],"InlineMenuMacroRx",new RegExp("\\\\?menu:("+o($,"CG_WORD")+"|["+o($,"CC_WORD")+"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|("+o($,"CC_ALL")+"*?[^\\\\]))?\\]","m")),t.const_set($[0],"InlineMenuRx",new RegExp('\\\\?"(['+o($,"CC_WORD")+'&][^"]*?[ \\n]+&gt;[ \\n]+[^"]*)"')),t.const_set($[0],"InlinePassRx",u(!1,["+","`",new RegExp("(^|[^"+o($,"CC_WORD")+";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S"+o($,"CC_ALL")+"*?\\S)\\4)(?!"+o($,"CG_WORD")+")","m")],!0,["`",r,new RegExp("(^|[^`"+o($,"CC_WORD")+"])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]"+o($,"CC_ALL")+"*?\\S)\\4)(?![`"+o($,"CC_WORD")+"])","m")])),t.const_set($[0],"SinglePlusInlinePassRx",new RegExp("^(\\\\)?\\+(\\S|\\S"+o($,"CC_ALL")+"*?\\S)\\+$","m")),t.const_set($[0],"InlinePassMacroRx",new RegExp("(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)("+o($,"CC_ALL")+"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|"+o($,"CC_ALL")+"*?[^\\\\])\\])","m")),t.const_set($[0],"InlineXrefMacroRx",new RegExp("\\\\?(?:&lt;&lt;(["+o($,"CC_WORD")+"#/.:{]"+o($,"CC_ALL")+"*?)&gt;&gt;|xref:(["+o($,"CC_WORD")+"#/.:{]"+o($,"CC_ALL")+"*?)\\[(?:\\]|("+o($,"CC_ALL")+"*?[^\\\\])\\]))","m")),o($,"RUBY_ENGINE")["$=="]("opal")&&t.const_set($[0],"HardLineBreakRx",new RegExp("^("+o($,"CC_ANY")+"*) \\+$","m")),t.const_set($[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),t.const_set($[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),t.const_set($[0],"BlankLineRx",/\n{2,}/),t.const_set($[0],"EscapedSpaceRx",/\\([ \t\n])/),t.const_set($[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),t.const_set($[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),t.const_set($[0],"SubModifierSniffRx",/[+-]/),t.const_set($[0],"TrailingDigitsRx",/\d+$/),t.const_set($[0],"UriSniffRx",new RegExp("^"+o($,"CG_ALPHA")+"["+o($,"CC_ALNUM")+".+-]+:/{0,2}")),t.const_set($[0],"XmlSanitizeRx",/<[^>]+>/)}(n[0],n)},Opal.modules["asciidoctor/substitutors"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}t.top;var a=[],s=t.nil,l=t.const_get_qualified,c=t.const_get_relative,u=(t.breaker,t.slice),d=t.module,f=t.hash2,h=t.hash,p=t.truthy,$=t.send,m=t.gvars;return t.add_stubs(["$freeze","$+","$keys","$empty?","$!","$===","$[]","$join","$include?","$extract_passthroughs","$each","$sub_specialchars","$sub_quotes","$sub_attributes","$sub_replacements","$sub_macros","$highlight_source","$sub_callouts","$sub_post_replacements","$warn","$logger","$restore_passthroughs","$clear","$split","$apply_subs","$==","$gsub","$match?","$compat_mode","$convert_quoted_text","$attributes","$shift","$store_attribute","$!=","$attribute_undefined","$counter","$key?","$downcase","$attribute_missing","$info","$squeeze","$delete","$reject","$start_with?","$do_replacement","$extensions","$inline_macros?","$inline_macros","$regexp","$instance","$slice","$length","$names","$config","$merge","$[]=","$-","$normalize_text","$parse_attributes","$process_method","$text","$expand_subs","$text=","$convert","$class","$strip","$>","$index","$min","$compact","$end_with?","$map","$chop","$new","$pop","$rstrip","$register","$tr","$basename","$parse","$<<","$lstrip","$split_simple_csv","$partition","$sub","$encode_uri_component","$style","$parse_into","$extname?","$rindex","$info?","$catalog","$fetch","$outfilesuffix","$natural_xrefs","$resolve_id","$find","$footnotes","$id","$<","$size","$attr?","$attr","$to_s","$read_next_id","$callouts","$syntax_highlighter","$highlight?","$sub_source","$extract_callouts","$name","$to_sym","$to_i","$resolve_lines_to_highlight","$highlight","$nil_or_empty?","$restore_callouts","$count","$to_a","$concat","$uniq","$sort","$*","$parse_quoted_text_attributes","$resolve_pass_subs","$extract_inner_passthrough","$basebackend?","$error","$chr","$drop","$&","$resolve_subs","$resolve_block_subs","$private","$=~","$shorthand_property_syntax","$each_char"]),function(a,g){var v=d(a,"Asciidoctor"),y=[v].concat(g);(function(a,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y=d(a,"Substitutors"),K=[Y].concat(g);t.const_set(K[0],"SpecialCharsRx",/[<&>]/),t.const_set(K[0],"SpecialCharsTr",f([">","<","&"],{">":"&gt;","<":"&lt;","&":"&amp;"})),t.const_set(K[0],"QuotedTextSniffRx",h(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),t.const_set(K[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),t.const_set(K[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),t.const_set(K[0],"NO_SUBS",[]).$freeze(),t.const_set(K[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),t.const_set(K[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),t.const_set(K[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),t.const_set(K[0],"SUB_GROUPS",f(["none","normal","verbatim","specialchars"],{none:c(K,"NO_SUBS"),normal:c(K,"NORMAL_SUBS"),verbatim:c(K,"VERBATIM_SUBS"),specialchars:c(K,"BASIC_SUBS")})),t.const_set(K[0],"SUB_HINTS",f(["a","m","n","p","q","r","c","v"],{a:"attributes",m:"macros",n:"normal",p:"post_replacements",q:"quotes",r:"replacements",c:"specialcharacters",v:"verbatim"})),t.const_set(K[0],"SUB_OPTIONS",f(["block","inline"],{block:e(e(c(K,"SUB_GROUPS").$keys(),c(K,"NORMAL_SUBS")),["callouts"]),inline:e(c(K,"SUB_GROUPS").$keys(),c(K,"NORMAL_SUBS"))})),t.const_set(K[0],"CAN",""),t.const_set(K[0],"DEL",""),t.const_set(K[0],"PASS_START","–"),t.const_set(K[0],"PASS_END","—"),t.const_set(K[0],"PassSlotRx",new RegExp(c(K,"PASS_START")+"(\\d+)"+c(K,"PASS_END"))),t.const_set(K[0],"HighlightedPassSlotRx",new RegExp("<span\\b[^>]*>"+c(K,"PASS_START")+"</span>[^\\d]*(\\d+)[^\\d]*<span\\b[^>]*>"+c(K,"PASS_END")+"</span>")),t.const_set(K[0],"RS","\\"),t.const_set(K[0],"R_SB","]"),t.const_set(K[0],"ESC_R_SB","\\]"),t.const_set(K[0],"PLUS","+"),t.def(Y,"$apply_subs",v=function(t,e){var n,r,i=this,o=s,a=s,u=s;return null==i.passthroughs&&(i.passthroughs=s),null==i.passthroughs_locked&&(i.passthroughs_locked=s),null==e&&(e=c(K,"NORMAL_SUBS")),p(p(n=t["$empty?"]())?n:e["$!"]())?t:(p(o=l("::","Array")["$==="](t))&&(t=function(){return p(t["$[]"](1))?t.$join(c(K,"LF")):t["$[]"](0)}()),p(e["$include?"]("macros"))&&(t=i.$extract_passthroughs(t),p(i.passthroughs["$empty?"]())||(a=i.passthroughs,i.passthroughs_locked=p(n=i.passthroughs_locked)?n:u=!0)),$(e,"each",[],(r=function(n){var i=r.$$s||this,o=s;return null==n&&(n=s),function(){return o=n,"specialcharacters"["$==="](o)?t=i.$sub_specialchars(t):"quotes"["$==="](o)?t=i.$sub_quotes(t):"attributes"["$==="](o)?p(t["$include?"](c(K,"ATTR_REF_HEAD")))?t=i.$sub_attributes(t):s:"replacements"["$==="](o)?t=i.$sub_replacements(t):"macros"["$==="](o)?t=i.$sub_macros(t):"highlight"["$==="](o)?t=i.$highlight_source(t,e["$include?"]("callouts")):"callouts"["$==="](o)?p(e["$include?"]("highlight"))?s:t=i.$sub_callouts(t):"post_replacements"["$==="](o)?t=i.$sub_post_replacements(t):i.$logger().$warn("unknown substitution type "+n)}()},r.$$s=i,r.$$arity=1,r)),p(a)&&(t=i.$restore_passthroughs(t),p(u)&&(a.$clear(),i.passthroughs_locked=s)),p(o)?t.$split(c(K,"LF"),-1):t)},v.$$arity=-2),t.def(Y,"$apply_normal_subs",y=function(t){var e=this;return e.$apply_subs(t,c(K,"NORMAL_SUBS"))},y.$$arity=1),t.def(Y,"$apply_header_subs",_=function(t){var e=this;return e.$apply_subs(t,c(K,"HEADER_SUBS"))},_.$$arity=1),t.alias(Y,"apply_title_subs","apply_subs"),t.def(Y,"$apply_reftext_subs",b=function(t){var e=this;return e.$apply_subs(t,c(K,"REFTEXT_SUBS"))},b.$$arity=1),c(K,"RUBY_ENGINE")["$=="]("opal")&&t.def(Y,"$sub_specialchars",w=function(t){var e,n;return p(p(e=p(n=t["$include?"](">"))?n:t["$include?"]("&"))?e:t["$include?"]("<"))?t.$gsub(c(K,"SpecialCharsRx"),c(K,"SpecialCharsTr")):t},w.$$arity=1),t.alias(Y,"sub_specialcharacters","sub_specialchars"),t.def(Y,"$sub_quotes",x=function(t){var e,n=this,r=s;return null==n.document&&(n.document=s),p(c(K,"QuotedTextSniffRx")["$[]"](r=n.document.$compat_mode())["$match?"](t))&&$(c(K,"QUOTE_SUBS")["$[]"](r),"each",[],(e=function(n,r,i){var o,a=e.$$s||this;return null==n&&(n=s),null==r&&(r=s),null==i&&(i=s),t=$(t,"gsub",[i],(o=function(){var t=o.$$s||this;return null==m["~"]&&(m["~"]=s),t.$convert_quoted_text(m["~"],n,r)},o.$$s=a,o.$$arity=0,o))},e.$$s=n,e.$$arity=3,e)),t},x.$$arity=1),t.def(Y,"$sub_attributes",k=function(e,n){var r,i,o,a,l=this,u=s,d=s,h=s,g=s,v=s,y=s,_=s,b=s;return null==l.document&&(l.document=s),null==n&&(n=f([],{})),u=l.document.$attributes(),d=h=g=v=y=_=s,e=$(e,"gsub",[c(K,"AttributeReferenceRx")],(r=function(){var e,i,o,a,l=r.$$s||this,f=s,b=s,w=s,x=s;return null==l.document&&(l.document=s),p(p(e=((i=m["~"])===s?s:i["$[]"](1))["$=="](c(K,"RS")))?e:((i=m["~"])===s?s:i["$[]"](4))["$=="](c(K,"RS")))?"{"+((e=m["~"])===s?s:e["$[]"](2))+"}":p((e=m["~"])===s?s:e["$[]"](3))?function(){return f=(b=((e=m["~"])===s?s:e["$[]"](2)).$split(":",3)).$shift(),"set"["$==="](f)?(i=c(K,"Parser").$store_attribute(b["$[]"](0),p(o=b["$[]"](1))?o:"",l.document),e=t.to_ary(i),null==e[0]?s:e[0],w=null==e[1]?s:e[1],d=p(p(e=w)?e:(y=p(i=y)?i:p(o=u["$[]"]("attribute-undefined"))?o:c(K,"Compliance").$attribute_undefined())["$!="]("drop-line"))?v=c(K,"DEL"):h=c(K,"CAN")):"counter2"["$==="](f)?($(l.document,"counter",t.to_a(b)),d=v=c(K,"DEL")):$(l.document,"counter",t.to_a(b))}():p(u["$key?"](x=((e=m["~"])===s?s:e["$[]"](2)).$downcase()))?u["$[]"](x):p(w=c(K,"INTRINSIC_ATTRIBUTES")["$[]"](x))?w:function(){return f=_=p(e=_)?e:p(i=p(o=n["$[]"]("attribute_missing"))?o:u["$[]"]("attribute-missing"))?i:c(K,"Compliance").$attribute_missing(),"drop"["$==="](f)?d=v=c(K,"DEL"):"drop-line"["$==="](f)?((g=p(e=g)?e:p(i=n["$[]"]("drop_line_severity"))?i:"info")["$=="]("info")&&$(l.$logger(),"info",[],(a=function(){a.$$s;return"dropping line containing reference to missing attribute: "+x},a.$$s=l,a.$$arity=0,a)),d=h=c(K,"CAN")):"warn"["$==="](f)?(l.$logger().$warn("skipping reference to missing attribute: "+x),(e=m["~"])===s?s:e["$[]"](0)):(e=m["~"])===s?s:e["$[]"](0)}()},r.$$s=l,r.$$arity=0,r)),p(d)?p(v)?(b=e.$squeeze(c(K,"DEL")).$split(c(K,"LF"),-1),p(h)?$(b,"reject",[],(i=function(t){var e,n,r;i.$$s;return null==t&&(t=s),p(e=p(n=p(r=t["$=="](c(K,"DEL")))?r:t["$=="](c(K,"CAN")))?n:t["$start_with?"](c(K,"CAN")))?e:t["$include?"](c(K,"CAN"))},i.$$s=l,i.$$arity=1,i)).$join(c(K,"LF")).$delete(c(K,"DEL")):$(b,"reject",[],(o=function(t){o.$$s;return null==t&&(t=s),t["$=="](c(K,"DEL"))},o.$$s=l,o.$$arity=1,o)).$join(c(K,"LF")).$delete(c(K,"DEL"))):p(e["$include?"](c(K,"LF")))?$(e.$split(c(K,"LF"),-1),"reject",[],(a=function(t){var e,n;a.$$s;return null==t&&(t=s),p(e=p(n=t["$=="](c(K,"CAN")))?n:t["$start_with?"](c(K,"CAN")))?e:t["$include?"](c(K,"CAN"))},a.$$s=l,a.$$arity=1,a)).$join(c(K,"LF")):"":e},k.$$arity=-2),t.def(Y,"$sub_replacements",S=function(t){var e,n=this;return p(c(K,"ReplaceableTextRx")["$match?"](t))&&$(c(K,"REPLACEMENTS"),"each",[],(e=function(n,r,i){var o,a=e.$$s||this;return null==n&&(n=s),null==r&&(r=s),null==i&&(i=s),t=$(t,"gsub",[n],(o=function(){var t=o.$$s||this;return null==m["~"]&&(m["~"]=s),t.$do_replacement(m["~"],r,i)},o.$$s=a,o.$$arity=0,o))},e.$$s=n,e.$$arity=3,e)),t},S.$$arity=1),t.def(Y,"$sub_macros",O=function(i){var o,a,d,h,g,v,y,_,b,w,x,k,S,O,C,A=this,E=s,T=s,P=s,B=s,L=s,I=s,D=s;return null==A.document&&(A.document=s),null==A.context&&(A.context=s),null==A.parent&&(A.parent=s),E=i["$include?"]("["),T=i["$include?"](":"),P=p(o=E)?T:o,B=p(o=P)?i["$include?"](":["):o,L=(I=A.document).$attributes(),p(p(o=D=I.$extensions())?D["$inline_macros?"]():o)&&$(D.$inline_macros(),"each",[],(a=function(e){var r,o=a.$$s||this;return null==e&&(e=s),i=$(i,"gsub",[e.$instance().$regexp()],(r=function(){var i,o,a=r.$$s||this,l=s,u=s,d=s,h=s,g=s,v=s,y=s,_=s,b=s;return null==m["~"]&&(m["~"]=s),p((l=(i=m["~"])===s?s:i["$[]"](0))["$start_with?"](c(K,"RS")))?((i=m["~"])===s?s:i["$[]"](0)).$slice(1,((i=m["~"])===s?s:i["$[]"](0)).$length()):(p(m["~"].$names()["$empty?"]())?(i=[(o=m["~"])===s?s:o["$[]"](1),(o=m["~"])===s?s:o["$[]"](2)],u=i[0],d=i[1]):(i=[function(){try{return m["~"]["$[]"]("target")}catch(e){if(!t.rescue(e,[c(K,"StandardError")]))throw e;try{return s}finally{t.pop_exception()}}}(),function(){try{return m["~"]["$[]"]("content")}catch(e){if(!t.rescue(e,[c(K,"StandardError")]))throw e;try{return s}finally{t.pop_exception()}}}()],u=i[0],d=i[1]),h=function(){return p(g=(v=e.$config())["$[]"]("default_attrs"))?g.$merge():f([],{})}(),p(d)&&(p(d["$empty?"]())?v["$[]"]("content_model")["$=="]("attributes")||(y=["text",d],$(h,"[]=",t.to_a(y)),y[n(y["length"],1)]):(d=a.$normalize_text(d,!0,!0),v["$[]"]("content_model")["$=="]("attributes")?a.$parse_attributes(d,p(i=p(o=v["$[]"]("positional_attrs"))?o:v["$[]"]("pos_attrs"))?i:[],f(["into"],{into:h})):(y=["text",d],$(h,"[]=",t.to_a(y)),y[n(y["length"],1)])),u=p(i=u)?i:function(){return v["$[]"]("format")["$=="]("short")?d:u}()),p(c(K,"Inline")["$==="](_=e.$process_method()["$[]"](a,u,h)))?(p(b=_.$attributes().$delete("subs"))&&(y=[a.$apply_subs(_.$text(),a.$expand_subs(b))],$(_,"text=",t.to_a(y)),y[n(y["length"],1)]),_.$convert()):p(_)?(a.$logger().$info("expected substitution value for custom inline macro to be of type Inline; got "+_.$class()+": "+l),_):"")},r.$$s=o,r.$$arity=0,r))},a.$$s=A,a.$$arity=1,a)),p(L["$key?"]("experimental"))&&(p(p(o=B)?p(d=i["$include?"]("kbd:"))?d:i["$include?"]("btn:"):o)&&(i=$(i,"gsub",[c(K,"InlineKbdBtnMacroRx")],(h=function(){var i,o,a,l=h.$$s||this,u=s,d=s,g=s,v=s;return p((i=m["~"])===s?s:i["$[]"](1))?((i=m["~"])===s?s:i["$[]"](0)).$slice(1,((i=m["~"])===s?s:i["$[]"](0)).$length()):((i=m["~"])===s?s:i["$[]"](2))["$=="]("kbd")?(p((u=((i=m["~"])===s?s:i["$[]"](3)).$strip())["$include?"](c(K,"R_SB")))&&(u=u.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(p(i=r(u.$length(),1))?d=function(){return p(d=u.$index(",",1))?[d,u.$index("+",1)].$compact().$min():u.$index("+",1)}():i)?(g=u.$slice(d,1),p(u["$end_with?"](g))?(u=$(u.$chop().$split(g,-1),"map",[],(o=function(t){o.$$s;return null==t&&(t=s),t.$strip()},o.$$s=l,o.$$arity=1,o)),v=[-1,e(u["$[]"](-1),g)],$(u,"[]=",t.to_a(v)),v[n(v["length"],1)]):u=$(u.$split(g),"map",[],(a=function(t){a.$$s;return null==t&&(t=s),t.$strip()},a.$$s=l,a.$$arity=1,a))):u=[u],c(K,"Inline").$new(l,"kbd",s,f(["attributes"],{attributes:f(["keys"],{keys:u})})).$convert()):c(K,"Inline").$new(l,"button",l.$normalize_text((i=m["~"])===s?s:i["$[]"](3),!0,!0)).$convert()},h.$$s=A,h.$$arity=0,h))),p(p(o=P)?i["$include?"]("menu:"):o)&&(i=$(i,"gsub",[c(K,"InlineMenuMacroRx")],(g=function(){var t,e,n=g.$$s||this,r=s,i=s,o=s,a=s,l=s;return p(((t=m["~"])===s?s:t["$[]"](0))["$start_with?"](c(K,"RS")))?((t=m["~"])===s?s:t["$[]"](0)).$slice(1,((t=m["~"])===s?s:t["$[]"](0)).$length()):(r=(t=m["~"])===s?s:t["$[]"](1),p(i=(t=m["~"])===s?s:t["$[]"](2))?(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(o=function(){return p(i["$include?"]("&gt;"))?"&gt;":p(i["$include?"](","))?",":s}())?(a=$(i.$split(o),"map",[],(e=function(t){e.$$s;return null==t&&(t=s),t.$strip()},e.$$s=n,e.$$arity=1,e)),l=a.$pop()):(t=[[],i.$rstrip()],a=t[0],l=t[1])):(t=[[],s],a=t[0],l=t[1]),c(K,"Inline").$new(n,"menu",s,f(["attributes"],{attributes:f(["menu","submenus","menuitem"],{menu:r,submenus:a,menuitem:l})})).$convert())},g.$$s=A,g.$$arity=0,g))),p(p(o=i["$include?"]('"'))?i["$include?"]("&gt;"):o)&&(i=$(i,"gsub",[c(K,"InlineMenuRx")],(v=function(){var e,n,r,i,o=v.$$s||this,a=s,l=s,d=s;return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(n=$(((r=m["~"])===s?s:r["$[]"](1)).$split("&gt;"),"map",[],(i=function(t){i.$$s;return null==t&&(t=s),t.$strip()},i.$$s=o,i.$$arity=1,i)),e=t.to_ary(n),a=null==e[0]?s:e[0],l=u.call(e,1),d=l.$pop(),c(K,"Inline").$new(o,"menu",s,f(["attributes"],{attributes:f(["menu","submenus","menuitem"],{menu:a,submenus:l,menuitem:d})})).$convert())},v.$$s=A,v.$$arity=0,v)))),p(p(o=P)?p(d=i["$include?"]("image:"))?d:i["$include?"]("icon:"):o)&&(i=$(i,"gsub",[c(K,"InlineImageMacroRx")],(y=function(){var e,r=y.$$s||this,i=s,o=s,a=s,l=s,u=s;return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"]("icon:"))?(e=["icon",["size"]],i=e[0],o=e[1]):(e=["image",["alt","width","height"]],i=e[0],o=e[1]),a=(e=m["~"])===s?s:e["$[]"](1),l=r.$parse_attributes((e=m["~"])===s?s:e["$[]"](2),o,f(["unescape_input"],{unescape_input:!0})),i["$=="]("icon")||(I.$register("images",a),u=["imagesdir",L["$[]"]("imagesdir")],$(l,"[]=",t.to_a(u)),u[n(u["length"],1)]),p(e=l["$[]"]("alt"))||(u=["alt",(u=["default-alt",c(K,"Helpers").$basename(a,!0).$tr("_-"," ")],$(l,"[]=",t.to_a(u)),u[n(u["length"],1)])],$(l,"[]=",t.to_a(u)),u[n(u["length"],1)]),c(K,"Inline").$new(r,"image",s,f(["type","target","attributes"],{type:i,target:a,attributes:l})).$convert())},y.$$s=A,y.$$arity=0,y))),p(p(o=p(d=i["$include?"]("(("))?i["$include?"]("))"):d)?o:p(d=B)?i["$include?"]("dexterm"):d)&&(i=$(i,"gsub",[c(K,"InlineIndextermMacroRx")],(_=function(){var e,r,o,a,l=_.$$s||this,d=s,h=s,g=s,v=s,y=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s;return function(){if(d=(e=m["~"])===s?s:e["$[]"](1),"indexterm"["$==="](d))return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(p((h=l.$normalize_text((e=m["~"])===s?s:e["$[]"](2),!0,!0))["$include?"]("="))?p(g=(v=c(K,"AttributeList").$new(h,l).$parse())["$[]"](1))?(y=["terms",b=[g]],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)],p(w=v["$[]"](2))&&(b["$<<"](w),p(x=v["$[]"](3))&&b["$<<"](x)),p(k=v["$[]"]("see-also"))&&(y=["see-also",function(){return p(k["$include?"](","))?$(k.$split(","),"map",[],(r=function(t){r.$$s;return null==t&&(t=s),t.$lstrip()},r.$$s=l,r.$$arity=1,r)):[k]}()],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)])):v=f(["terms"],{terms:b=h}):v=f(["terms"],{terms:b=l.$split_simple_csv(h)}),c(K,"Inline").$new(l,"indexterm",s,f(["attributes"],{attributes:v})).$convert());if("indexterm2"["$==="](d))return p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):(p((S=l.$normalize_text((e=m["~"])===s?s:e["$[]"](2),!0,!0))["$include?"]("="))&&(S=p(e=p(o=(v=c(K,"AttributeList").$new(S,l).$parse())["$[]"](1))?o:v=s)?e:S,p(p(e=v)?k=v["$[]"]("see-also"):e)&&(y=["see-also",function(){return p(k["$include?"](","))?$(k.$split(","),"map",[],(a=function(t){a.$$s;return null==t&&(t=s),t.$lstrip()},a.$$s=l,a.$$arity=1,a)):[k]}()],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)])),c(K,"Inline").$new(l,"indexterm",S,f(["attributes","type"],{attributes:v,type:"visible"})).$convert());if(i=(e=m["~"])===s?s:e["$[]"](3),p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))){if(!p(p(e=i["$start_with?"]("("))?i["$end_with?"](")"):e))return((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length());i=i.$slice(1,n(i.$length(),2)),e=[!0,"(",")"],O=e[0],C=e[1],A=e[2]}else O=!0,p(i["$start_with?"]("("))?p(i["$end_with?"](")"))?(e=[i.$slice(1,n(i.$length(),2)),!1],i=e[0],O=e[1]):(e=[i.$slice(1,i.$length()),"(",""],i=e[0],C=e[1],A=e[2]):p(i["$end_with?"](")"))&&(e=[i.$chop(),"",")"],i=e[0],C=e[1],A=e[2]);return p(O)?(p((S=l.$normalize_text(i,!0))["$include?"](";&"))&&(p(S["$include?"](" &gt;&gt; "))?(o=S.$partition(" &gt;&gt; "),e=t.to_ary(o),S=null==e[0]?s:e[0],null==e[1]?s:e[1],E=null==e[2]?s:e[2],v=f(["see"],{see:E})):p(S["$include?"](" &amp;&gt; "))&&(o=S.$split(" &amp;&gt; "),e=t.to_ary(o),S=null==e[0]?s:e[0],k=u.call(e,1),v=f(["see-also"],{"see-also":k}))),T=c(K,"Inline").$new(l,"indexterm",S,f(["attributes","type"],{attributes:v,type:"visible"})).$convert()):(v=f([],{}),p((b=l.$normalize_text(i,!0))["$include?"](";&"))&&(p(b["$include?"](" &gt;&gt; "))?(o=b.$partition(" &gt;&gt; "),e=t.to_ary(o),b=null==e[0]?s:e[0],null==e[1]?s:e[1],E=null==e[2]?s:e[2],y=["see",E],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)]):p(b["$include?"](" &amp;&gt; "))&&(o=b.$split(" &amp;&gt; "),e=t.to_ary(o),b=null==e[0]?s:e[0],k=u.call(e,1),y=["see-also",k],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)])),y=["terms",b=l.$split_simple_csv(b)],$(v,"[]=",t.to_a(y)),y[n(y["length"],1)],T=c(K,"Inline").$new(l,"indexterm",s,f(["attributes"],{attributes:v})).$convert()),p(C)?""+C+T+A:T}()},_.$$s=A,_.$$arity=0,_))),p(p(o=T)?i["$include?"]("://"):o)&&(i=$(i,"gsub",[c(K,"InlineLinkRx")],(b=function(){var e,r,o=b.$$s||this,a=s,l=s,u=s,d=s,h=s,g=s,v=s;if(p((a=(e=m["~"])===s?s:e["$[]"](2))["$start_with?"](c(K,"RS"))))return""+((e=m["~"])===s?s:e["$[]"](1))+a.$slice(1,a.$length())+((e=m["~"])===s?s:e["$[]"](4));if(e=[(r=m["~"])===s?s:r["$[]"](1),""],l=e[0],u=e[1],p((e=m["~"])===s?s:e["$[]"](4)))l["$=="]("link:")&&(l=""),i=(e=m["~"])===s?s:e["$[]"](4);else{if(l["$=="]("link:"))return(e=m["~"])===s?s:e["$[]"](0);if(i="",d=(e=m["~"])===s?s:e["$[]"](3),")"["$==="](d)){if(a=a.$chop(),u=")",p(a["$end_with?"]("://")))return(e=m["~"])===s?s:e["$[]"](0)}else if(";"["$==="](d)){if(p(p(e=l["$start_with?"]("&lt;"))?a["$end_with?"]("&gt;"):e)?(l=l.$slice(4,l.$length()),a=a.$slice(0,n(a.$length(),4))):p((a=a.$chop())["$end_with?"](")"))?(a=a.$chop(),u=");"):u=";",p(a["$end_with?"]("://")))return(e=m["~"])===s?s:e["$[]"](0)}else if(":"["$==="](d)&&(p((a=a.$chop())["$end_with?"](")"))?(a=a.$chop(),u="):"):u=":",p(a["$end_with?"]("://"))))return(e=m["~"])===s?s:e["$[]"](0)}return e=[s,f(["type"],{type:"link"})],h=e[0],g=e[1],p(i["$empty?"]())||(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(p(e=I.$compat_mode()["$!"]())?i["$include?"]("="):e)&&(i=p(e=(h=c(K,"AttributeList").$new(i,o).$parse())["$[]"](1))?e:"",v=["id",h["$[]"]("id")],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),p(i["$end_with?"]("^"))&&(i=i.$chop(),p(h)?p(e=h["$[]"]("window"))||(v=["window","_blank"],$(h,"[]=",t.to_a(v)),v[n(v["length"],1)]):h=f(["window"],{window:"_blank"}))),p(i["$empty?"]())&&(i=function(){return p(L["$key?"]("hide-uri-scheme"))?a.$sub(c(K,"UriSniffRx"),""):a}(),p(h)?(v=["role",function(){return p(h["$key?"]("role"))?"bare "+h["$[]"]("role"):"bare"}()],$(h,"[]=",t.to_a(v)),v[n(v["length"],1)]):h=f(["role"],{role:"bare"})),I.$register("links",(v=["target",a],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)])),p(h)&&(v=["attributes",h],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),""+l+c(K,"Inline").$new(o,"anchor",i,g).$convert()+u},b.$$s=A,b.$$arity=0,b))),p(p(o=P)?p(d=i["$include?"]("link:"))?d:i["$include?"]("ilto:"):o)&&(i=$(i,"gsub",[c(K,"InlineLinkMacroRx")],(w=function(){var r,o=w.$$s||this,a=s,l=s,u=s,d=s,h=s,g=s;return p(((r=m["~"])===s?s:r["$[]"](0))["$start_with?"](c(K,"RS")))?((r=m["~"])===s?s:r["$[]"](0)).$slice(1,((r=m["~"])===s?s:r["$[]"](0)).$length()):(l=p(a=(r=m["~"])===s?s:r["$[]"](1))?e("mailto:",u=(r=m["~"])===s?s:r["$[]"](2)):(r=m["~"])===s?s:r["$[]"](2),r=[s,f(["type"],{type:"link"})],d=r[0],h=r[1],p((i=(r=m["~"])===s?s:r["$[]"](3))["$empty?"]())||(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(a)?p(p(r=I.$compat_mode()["$!"]())?i["$include?"](","):r)&&(i=p(r=(d=c(K,"AttributeList").$new(i,o).$parse())["$[]"](1))?r:"",g=["id",d["$[]"]("id")],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)],p(d["$key?"](2))&&(l=p(d["$key?"](3))?l+"?subject="+c(K,"Helpers").$encode_uri_component(d["$[]"](2))+"&amp;body="+c(K,"Helpers").$encode_uri_component(d["$[]"](3)):l+"?subject="+c(K,"Helpers").$encode_uri_component(d["$[]"](2)))):p(p(r=I.$compat_mode()["$!"]())?i["$include?"]("="):r)&&(i=p(r=(d=c(K,"AttributeList").$new(i,o).$parse())["$[]"](1))?r:"",g=["id",d["$[]"]("id")],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)]),p(i["$end_with?"]("^"))&&(i=i.$chop(),p(d)?p(r=d["$[]"]("window"))||(g=["window","_blank"],$(d,"[]=",t.to_a(g)),g[n(g["length"],1)]):d=f(["window"],{window:"_blank"}))),p(i["$empty?"]())&&(p(a)?i=u:(p(L["$key?"]("hide-uri-scheme"))?p((i=l.$sub(c(K,"UriSniffRx"),""))["$empty?"]())&&(i=l):i=l,p(d)?(g=["role",function(){return p(d["$key?"]("role"))?"bare "+d["$[]"]("role"):"bare"}()],$(d,"[]=",t.to_a(g)),g[n(g["length"],1)]):d=f(["role"],{role:"bare"}))),I.$register("links",(g=["target",l],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)])),p(d)&&(g=["attributes",d],$(h,"[]=",t.to_a(g)),g[n(g["length"],1)]),c(K,"Inline").$new(o,"anchor",i,h).$convert())},w.$$s=A,w.$$arity=0,w))),p(i["$include?"]("@"))&&(i=$(i,"gsub",[c(K,"InlineEmailRx")],(x=function(){var t,n=x.$$s||this,r=s,i=s;return p((t=m["~"])===s?s:t["$[]"](1))?function(){return((t=m["~"])===s?s:t["$[]"](1))["$=="](c(K,"RS"))?((t=m["~"])===s?s:t["$[]"](0)).$slice(1,((t=m["~"])===s?s:t["$[]"](0)).$length()):(t=m["~"])===s?s:t["$[]"](0)}():(r=e("mailto:",i=(t=m["~"])===s?s:t["$[]"](0)),I.$register("links",r),c(K,"Inline").$new(n,"anchor",i,f(["type","target"],{type:"link",target:r})).$convert())},x.$$s=A,x.$$arity=0,x))),p(p(o=p(d=E)?A.context["$=="]("list_item"):d)?A.parent.$style()["$=="]("bibliography"):o)&&(i=$(i,"sub",[c(K,"InlineBiblioAnchorRx")],(k=function(){var t,e=k.$$s||this;return c(K,"Inline").$new(e,"anchor",(t=m["~"])===s?s:t["$[]"](2),f(["type","id"],{type:"bibref",id:(t=m["~"])===s?s:t["$[]"](1)})).$convert()},k.$$s=A,k.$$arity=0,k))),p(p(o=p(d=E)?i["$include?"]("[["):d)?o:p(d=P)?i["$include?"]("or:"):d)&&(i=$(i,"gsub",[c(K,"InlineAnchorRx")],(S=function(){var t,e,n=S.$$s||this,r=s,i=s;return p((t=m["~"])===s?s:t["$[]"](1))?((t=m["~"])===s?s:t["$[]"](0)).$slice(1,((t=m["~"])===s?s:t["$[]"](0)).$length()):(p(r=(t=m["~"])===s?s:t["$[]"](2))?i=(t=m["~"])===s?s:t["$[]"](3):(r=(t=m["~"])===s?s:t["$[]"](4),p(p(t=i=(e=m["~"])===s?s:e["$[]"](5))?i["$include?"](c(K,"R_SB")):t)&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB")))),c(K,"Inline").$new(n,"anchor",i,f(["type","id"],{type:"ref",id:r})).$convert())},S.$$s=A,S.$$arity=0,S))),p(p(o=p(d=i["$include?"]("&"))?i["$include?"](";&l"):d)?o:p(d=P)?i["$include?"]("xref:"):d)&&(i=$(i,"gsub",[c(K,"InlineXrefMacroRx")],(O=function(){var o,a,l=O.$$s||this,u=s,d=s,h=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s;return p(((o=m["~"])===s?s:o["$[]"](0))["$start_with?"](c(K,"RS")))?((o=m["~"])===s?s:o["$[]"](0)).$slice(1,((o=m["~"])===s?s:o["$[]"](0)).$length()):(u=f([],{}),p(d=(o=m["~"])===s?s:o["$[]"](1))?(a=d.$split(",",2),o=t.to_ary(a),d=null==o[0]?s:o[0],i=null==o[1]?s:o[1],p(i)&&(i=i.$lstrip())):(h=!0,d=(o=m["~"])===s?s:o["$[]"](2),p(i=(o=m["~"])===s?s:o["$[]"](3))&&(p(i["$include?"](c(K,"R_SB")))&&(i=i.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB"))),p(p(o=I.$compat_mode()["$!"]())?i["$include?"]("="):o)&&(i=c(K,"AttributeList").$new(i,l).$parse_into(u)["$[]"](1)))),p(I.$compat_mode())?g=d:p(v=d.$index("#"))?p(r(v,0))?(p(r(y=n(n(d.$length(),1),v),0))?(o=[d.$slice(0,v),d.$slice(e(v,1),y)],_=o[0],g=o[1]):_=d.$chop(),p(h)?p(_["$end_with?"](".adoc"))?b=_=_.$slice(0,n(_.$length(),5)):p(c(K,"Helpers")["$extname?"](_)["$!"]())&&(b=_):b=p($(_,"end_with?",t.to_a(c(K,"ASCIIDOC_EXTENSIONS").$keys())))?_=_.$slice(0,_.$rindex(".")):_):(o=[d,d.$slice(1,d.$length())],w=o[0],g=o[1]):p(h)?p(d["$end_with?"](".adoc"))?b=_=d.$slice(0,n(d.$length(),5)):p(c(K,"Helpers")["$extname?"](d))?_=d:g=d:g=d,p(w)?(d=g,p(p(o=l.$logger()["$info?"]())?I.$catalog()["$[]"]("refs")["$[]"](d)["$!"]():o)&&l.$logger().$info("possible invalid reference: "+d)):p(_)?p(p(o=b)?p(a=I.$attributes()["$[]"]("docname")["$=="](_))?a:I.$catalog()["$[]"]("includes")["$[]"](_):o)?p(g)?(o=[g,s,"#"+g],d=o[0],_=o[1],w=o[2],p(p(o=l.$logger()["$info?"]())?I.$catalog()["$[]"]("refs")["$[]"](d)["$!"]():o)&&l.$logger().$info("possible invalid reference: "+d)):(o=[s,s,"#"],d=o[0],_=o[1],w=o[2]):(o=[_,""+I.$attributes()["$[]"]("relfileprefix")+_+function(){return p(b)?I.$attributes().$fetch("relfilesuffix",I.$outfilesuffix()):""}()],d=o[0],_=o[1],p(g)?(o=[d+"#"+g,_+"#"+g],d=o[0],w=o[1]):w=_):p(p(o=I.$compat_mode())?o:c(K,"Compliance").$natural_xrefs()["$!"]())?(o=[g,"#"+g],d=o[0],w=o[1],p(p(o=l.$logger()["$info?"]())?I.$catalog()["$[]"]("refs")["$[]"](d):o)&&l.$logger().$info("possible invalid reference: "+d)):p(I.$catalog()["$[]"]("refs")["$[]"](g))?(o=[g,"#"+g],d=o[0],w=o[1]):p(p(o=p(a=g["$include?"](" "))?a:g.$downcase()["$!="](g))?d=I.$resolve_id(g):o)?(o=[d,"#"+d],g=o[0],w=o[1]):(o=[g,"#"+g],d=o[0],w=o[1],p(l.$logger()["$info?"]())&&l.$logger().$info("possible invalid reference: "+d)),x=["path",_],$(u,"[]=",t.to_a(x)),x[n(x["length"],1)],x=["fragment",g],$(u,"[]=",t.to_a(x)),x[n(x["length"],1)],x=["refid",d],$(u,"[]=",t.to_a(x)),x[n(x["length"],1)],c(K,"Inline").$new(l,"anchor",i,f(["type","target","attributes"],{type:"xref",target:w,attributes:u})).$convert())},O.$$s=A,O.$$arity=0,O))),p(p(o=P)?i["$include?"]("tnote"):o)&&(i=$(i,"gsub",[c(K,"InlineFootnoteMacroRx")],(C=function(){var e,n,r,o,a=C.$$s||this,u=s,d=s,h=s,g=s,v=s;if(p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS"))))return((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length());if(p((e=m["~"])===s?s:e["$[]"](1))){if(!p((e=m["~"])===s?s:e["$[]"](3)))return(e=m["~"])===s?s:e["$[]"](0);n=((r=m["~"])===s?s:r["$[]"](3)).$split(",",2),e=t.to_ary(n),u=null==e[0]?s:e[0],i=null==e[1]?s:e[1],p(I.$compat_mode())||a.$logger().$warn("found deprecated footnoteref macro: "+((e=m["~"])===s?s:e["$[]"](0))+"; use footnote macro with target instead")}else u=(e=m["~"])===s?s:e["$[]"](2),i=(e=m["~"])===s?s:e["$[]"](3);if(p(u))p(i)?(i=a.$restore_passthroughs(a.$normalize_text(i,!0,!0)),d=I.$counter("footnote-number"),I.$register("footnotes",l(c(K,"Document"),"Footnote").$new(d,u,i)),e=["ref",s],h=e[0],g=e[1]):(p(v=$(I.$footnotes(),"find",[],(o=function(t){o.$$s;return null==t&&(t=s),t.$id()["$=="](u)},o.$$s=a,o.$$arity=1,o)))?(e=[v.$index(),v.$text()],d=e[0],i=e[1]):(a.$logger().$warn("invalid footnote reference: "+u),e=[s,u],d=e[0],i=e[1]),e=["xref",u,s],h=e[0],g=e[1],u=e[2]);else{if(!p(i))return(e=m["~"])===s?s:e["$[]"](0);i=a.$restore_passthroughs(a.$normalize_text(i,!0,!0)),d=I.$counter("footnote-number"),I.$register("footnotes",l(c(K,"Document"),"Footnote").$new(d,u,i)),h=g=s}return c(K,"Inline").$new(a,"footnote",i,f(["attributes","id","target","type"],{attributes:f(["index"],{index:d}),id:u,target:g,type:h})).$convert()},C.$$s=A,C.$$arity=0,C))),i},O.$$arity=1),t.def(Y,"$sub_post_replacements",C=function(t){var e,r,o,a=this,l=s,u=s;return null==a.attributes&&(a.attributes=s),null==a.document&&(a.document=s),p(p(e=a.attributes["$[]"]("hardbreaks-option"))?e:a.document.$attributes()["$[]"]("hardbreaks-option"))?(l=t.$split(c(K,"LF"),-1),p(i(l.$size(),2))?t:(u=l.$pop(),$(l,"map",[],(r=function(t){var e=r.$$s||this;return null==t&&(t=s),c(K,"Inline").$new(e,"break",function(){return p(t["$end_with?"](c(K,"HARD_LINE_BREAK")))?t.$slice(0,n(t.$length(),2)):t}(),f(["type"],{type:"line"})).$convert()},r.$$s=a,r.$$arity=1,r))["$<<"](u).$join(c(K,"LF")))):p(p(e=t["$include?"](c(K,"PLUS")))?t["$include?"](c(K,"HARD_LINE_BREAK")):e)?$(t,"gsub",[c(K,"HardLineBreakRx")],(o=function(){var t,e=o.$$s||this;return c(K,"Inline").$new(e,"break",(t=m["~"])===s?s:t["$[]"](1),f(["type"],{type:"line"})).$convert()},o.$$s=a,o.$$arity=0,o)):t},C.$$arity=1),t.def(Y,"$sub_source",A=function(t,e){var n=this;return p(e)?n.$sub_callouts(n.$sub_specialchars(t)):n.$sub_specialchars(t)},A.$$arity=2),t.def(Y,"$sub_callouts",E=function(t){var n,r=this,i=s,o=s;return i=function(){return p(r["$attr?"]("line-comment"))?c(K,"CalloutSourceRxMap")["$[]"](r.$attr("line-comment")):c(K,"CalloutSourceRx")}(),o=0,$(t,"gsub",[i],(n=function(){var t,r=n.$$s||this;return null==r.document&&(r.document=s),p((t=m["~"])===s?s:t["$[]"](2))?((t=m["~"])===s?s:t["$[]"](0)).$sub(c(K,"RS"),""):c(K,"Inline").$new(r,"callout",function(){return((t=m["~"])===s?s:t["$[]"](4))["$=="](".")?(o=e(o,1)).$to_s():(t=m["~"])===s?s:t["$[]"](4)}(),f(["id","attributes"],{id:r.document.$callouts().$read_next_id(),attributes:f(["guard"],{guard:(t=m["~"])===s?s:t["$[]"](1)})})).$convert()},n.$$s=r,n.$$arity=0,n))},E.$$arity=1),t.def(Y,"$highlight_source",T=function(e,n){var r,o,a,l=this,u=s,d=s,h=s,$=s,m=s,g=s,v=s,y=s,_=s;return null==l.document&&(l.document=s),null==l.passthroughs&&(l.passthroughs=s),p(p(r=u=l.document.$syntax_highlighter())?u["$highlight?"]():r)?(p(n)&&(o=l.$extract_callouts(e),r=t.to_ary(o),e=null==r[0]?s:r[0],d=null==r[1]?s:r[1]),h=l.document.$attributes(),$=u.$name(),p(m=function(){return p(l["$attr?"]("linenums"))?(p(r=h["$[]"]($+"-linenums-mode"))?r:"table").$to_sym():s}())&&p(i(g=l.$attr("start",1).$to_i(),1))&&(g=1),p(l["$attr?"]("highlight"))&&(v=l.$resolve_lines_to_highlight(e,l.$attr("highlight"))),o=u.$highlight(l,e,l.$attr("language"),f(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:d,css_mode:(p(a=h["$[]"]($+"-css"))?a:"class").$to_sym(),highlight_lines:v,number_lines:m,start_line_number:g,style:h["$[]"]($+"-style")})),r=t.to_ary(o),y=null==r[0]?s:r[0],_=null==r[1]?s:r[1],p(l.passthroughs["$empty?"]())||(y=y.$gsub(c(K,"HighlightedPassSlotRx"),c(K,"PASS_START")+"\\1"+c(K,"PASS_END"))),p(d["$nil_or_empty?"]())?y:l.$restore_callouts(y,d,_)):l.$sub_source(e,n)},T.$$arity=2),t.def(Y,"$resolve_lines_to_highlight",P=function(r,o){var a,l=this,u=s;return u=[],p(o["$include?"](" "))&&(o=o.$delete(" ")),$(function(){return p(o["$include?"](","))?o.$split(","):o.$split(";")}(),"map",[],(a=function(o){a.$$s;var l,d,f=s,h=s,$=s,m=s,g=s;return null==o&&(o=s),p(o["$start_with?"]("!"))&&(o=o.$slice(1,o.$length()),f=!0),p(h=function(){return p(o["$include?"](".."))?"..":p(o["$include?"]("-"))?"-":s}())?(d=o.$partition(h),l=t.to_ary(d),$=null==l[0]?s:l[0],h=null==l[1]?s:l[1],m=null==l[2]?s:l[2],p(p(l=m["$empty?"]())?l:i(m=m.$to_i(),0))&&(m=e(r.$count(c(K,"LF")),1)),g=t.Range.$new($.$to_i(),m,!1).$to_a(),p(f)?u=n(u,g):u.$concat(g)):p(f)?u.$delete(o.$to_i()):u["$<<"](o.$to_i())},a.$$s=l,a.$$arity=1,a)),u.$sort().$uniq()},P.$$arity=2),t.def(Y,"$extract_passthroughs",B=function(e){var i,a,l,u,d,h=this,g=s,v=s,y=s,_=s,b=s;return null==h.document&&(h.document=s),null==h.passthroughs&&(h.passthroughs=s),g=h.document.$compat_mode(),v=h.passthroughs,p(p(i=p(a=e["$include?"]("++"))?a:e["$include?"]("$$"))?i:e["$include?"]("ss:"))&&(e=$(e,"gsub",[c(K,"InlinePassMacroRx")],(l=function(){var e,i=l.$$s||this,a=s,u=s,d=s,h=s,y=s,_=s,b=s,w=s,x=s;if(p(a=(e=m["~"])===s?s:e["$[]"](4))){if(p(p(e=g)?a["$=="]("++"):e))return function(){return p((e=m["~"])===s?s:e["$[]"](2))?((e=m["~"])===s?s:e["$[]"](1))+"["+((e=m["~"])===s?s:e["$[]"](2))+"]"+((e=m["~"])===s?s:e["$[]"](3)):""+((e=m["~"])===s?s:e["$[]"](1))+((e=m["~"])===s?s:e["$[]"](3))}()+"++"+i.$extract_passthroughs((e=m["~"])===s?s:e["$[]"](5))+"++";if(p(u=(e=m["~"])===s?s:e["$[]"](2))){if(p(r(d=((e=m["~"])===s?s:e["$[]"](3)).$length(),0)))return((e=m["~"])===s?s:e["$[]"](1))+"["+u+"]"+o(c(K,"RS"),n(d,1))+a+((e=m["~"])===s?s:e["$[]"](5))+a;((e=m["~"])===s?s:e["$[]"](1))["$=="](c(K,"RS"))?h="["+u+"]":(p((e=a["$=="]("++"))?u["$end_with?"]("x-"):a["$=="]("++"))&&(y=!0,u=u.$slice(0,n(u.$length(),2))),_=i.$parse_quoted_text_attributes(u))}else if(p(r(d=((e=m["~"])===s?s:e["$[]"](3)).$length(),0)))return""+o(c(K,"RS"),n(d,1))+a+((e=m["~"])===s?s:e["$[]"](5))+a;b=function(){return a["$=="]("+++")?[]:c(K,"BASIC_SUBS")}(),p(_)?p(y)?(w=[x=v.$size(),f(["text","subs","type","attributes"],{text:(e=m["~"])===s?s:e["$[]"](5),subs:c(K,"NORMAL_SUBS"),type:"monospaced",attributes:_})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)]):(w=[x=v.$size(),f(["text","subs","type","attributes"],{text:(e=m["~"])===s?s:e["$[]"](5),subs:b,type:"unquoted",attributes:_})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)]):(w=[x=v.$size(),f(["text","subs"],{text:(e=m["~"])===s?s:e["$[]"](5),subs:b})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)])}else{if(((e=m["~"])===s?s:e["$[]"](6))["$=="](c(K,"RS")))return((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length());p(b=(e=m["~"])===s?s:e["$[]"](7))?(w=[x=v.$size(),f(["text","subs"],{text:i.$normalize_text((e=m["~"])===s?s:e["$[]"](8),s,!0),subs:i.$resolve_pass_subs(b)})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)]):(w=[x=v.$size(),f(["text"],{text:i.$normalize_text((e=m["~"])===s?s:e["$[]"](8),s,!0)})],$(v,"[]=",t.to_a(w)),w[n(w["length"],1)])}return""+(p(e=h)?e:"")+c(K,"PASS_START")+x+c(K,"PASS_END")},l.$$s=h,l.$$arity=0,l))),a=c(K,"InlinePassRx")["$[]"](g),i=t.to_ary(a),y=null==i[0]?s:i[0],_=null==i[1]?s:i[1],b=null==i[2]?s:i[2],p(p(i=e["$include?"](y))?i:p(a=_)?e["$include?"](_):a)&&(e=$(e,"gsub",[b],(u=function(){var e,r=u.$$s||this,i=s,o=s,a=s,l=s,d=s,h=s,y=s,_=s,b=s,w=s,x=s;if(i=(e=m["~"])===s?s:e["$[]"](1),o=(e=m["~"])===s?s:e["$[]"](2),p((a=(e=m["~"])===s?s:e["$[]"](3))["$start_with?"](c(K,"RS")))&&(l=c(K,"RS")),d=(e=m["~"])===s?s:e["$[]"](4),h=(e=m["~"])===s?s:e["$[]"](5),p(g)?y=!0:p(y=p(e=o)?o["$end_with?"]("x-"):e)&&(o=o.$slice(0,n(o.$length(),2))),p(o)){if(p((e=d["$=="]("`"))?y["$!"]():d["$=="]("`")))return r.$extract_inner_passthrough(h,i+"["+o+"]"+l);if(p(l))return i+"["+o+"]"+a.$slice(1,a.$length());i["$=="](c(K,"RS"))?i="["+o+"]":_=r.$parse_quoted_text_attributes(o)}else{if(p((e=d["$=="]("`"))?y["$!"]():d["$=="]("`")))return r.$extract_inner_passthrough(h,""+i+l);if(p(l))return""+i+a.$slice(1,a.$length())}return p(g)?(b=[w=v.$size(),f(["text","subs","attributes","type"],{text:h,subs:c(K,"BASIC_SUBS"),attributes:_,type:"monospaced"})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]):p(_)?p(y)?(x=function(){return d["$=="]("`")?c(K,"BASIC_SUBS"):c(K,"NORMAL_SUBS")}(),b=[w=v.$size(),f(["text","subs","attributes","type"],{text:h,subs:x,attributes:_,type:"monospaced"})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]):(b=[w=v.$size(),f(["text","subs","attributes","type"],{text:h,subs:c(K,"BASIC_SUBS"),attributes:_,type:"unquoted"})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]):(b=[w=v.$size(),f(["text","subs"],{text:h,subs:c(K,"BASIC_SUBS")})],$(v,"[]=",t.to_a(b)),b[n(b["length"],1)]),""+i+c(K,"PASS_START")+w+c(K,"PASS_END")},u.$$s=h,u.$$arity=0,u))),p(p(i=e["$include?"](":"))?p(a=e["$include?"]("stem:"))?a:e["$include?"]("math:"):i)&&(e=$(e,"gsub",[c(K,"InlineStemMacroRx")],(d=function(){var e,r=d.$$s||this,i=s,o=s,a=s,l=s,u=s;return null==r.document&&(r.document=s),p(((e=m["~"])===s?s:e["$[]"](0))["$start_with?"](c(K,"RS")))?((e=m["~"])===s?s:e["$[]"](0)).$slice(1,((e=m["~"])===s?s:e["$[]"](0)).$length()):((i=((e=m["~"])===s?s:e["$[]"](1)).$to_sym())["$=="]("stem")&&(i=c(K,"STEM_TYPE_ALIASES")["$[]"](r.document.$attributes()["$[]"]("stem")).$to_sym()),o=(e=m["~"])===s?s:e["$[]"](2),a=r.$normalize_text((e=m["~"])===s?s:e["$[]"](3),s,!0),p(p(e=i["$=="]("latexmath")?a["$start_with?"]("$"):i["$=="]("latexmath"))?a["$end_with?"]("$"):e)&&(a=a.$slice(1,n(a.$length(),2))),o=function(){return p(o)?r.$resolve_pass_subs(o):p(r.document["$basebackend?"]("html"))?c(K,"BASIC_SUBS"):s}(),l=[u=v.$size(),f(["text","subs","type"],{text:a,subs:o,type:i})],$(v,"[]=",t.to_a(l)),l[n(l["length"],1)],""+c(K,"PASS_START")+u+c(K,"PASS_END"))},d.$$s=h,d.$$arity=0,d))),e},B.$$arity=1),t.def(Y,"$restore_passthroughs",L=function(t){var e,n=this,r=s;return null==n.passthroughs&&(n.passthroughs=s),r=n.passthroughs,$(t,"gsub",[c(K,"PassSlotRx")],(e=function(){var n,i=e.$$s||this,o=s,a=s,l=s,u=s,d=s;return p(o=r["$[]"](((n=m["~"])===s?s:n["$[]"](1)).$to_i()))?(a=i.$apply_subs(o["$[]"]("text"),o["$[]"]("subs")),p(l=o["$[]"]("type"))&&(p(u=o["$[]"]("attributes"))&&(d=u["$[]"]("id")),a=c(K,"Inline").$new(i,"quoted",a,f(["type","id","attributes"],{type:l,id:d,attributes:u})).$convert()),p(a["$include?"](c(K,"PASS_START")))?i.$restore_passthroughs(a):a):(i.$logger().$error("unresolved passthrough detected: "+t),"??pass??")},e.$$s=n,e.$$arity=0,e))},L.$$arity=1),t.def(Y,"$resolve_subs",I=function(t,i,o,a){var l,u=this,d=s,f=s,h=s,m=s;return null==i&&(i="block"),null==o&&(o=s),null==a&&(a=s),p(t["$nil_or_empty?"]())?s:(d=s,p(t["$include?"](" "))&&(t=t.$delete(" ")),f=c(K,"SubModifierSniffRx")["$match?"](t),$(t.$split(","),"each",[],(l=function(t){l.$$s;var r,a,u=s,h=s,$=s,m=s,g=s,v=s;return null==t&&(t=s),u=s,p(f)&&((h=t.$chr())["$=="]("+")?(u="append",t=t.$slice(1,t.$length())):h["$=="]("-")?(u="remove",t=t.$slice(1,t.$length())):p(t["$end_with?"]("+"))&&(u="prepend",t=t.$chop())),t=t.$to_sym(),p((r=i["$=="]("inline"))?p(a=t["$=="]("verbatim"))?a:t["$=="]("v"):i["$=="]("inline"))?$=c(K,"BASIC_SUBS"):p(c(K,"SUB_GROUPS")["$key?"](t))?$=c(K,"SUB_GROUPS")["$[]"](t):p(p(r=(a=i["$=="]("inline"))?t.$length()["$=="](1):i["$=="]("inline"))?c(K,"SUB_HINTS")["$key?"](t):r)?(m=c(K,"SUB_HINTS")["$[]"](t),$=p(g=c(K,"SUB_GROUPS")["$[]"](m))?g:[m]):$=[t],p(u)?(d=p(r=d)?r:function(){return p(o)?o.$drop(0):[]}(),function(){return v=u,"append"["$==="](v)?d=e(d,$):"prepend"["$==="](v)?d=e($,d):"remove"["$==="](v)?d=n(d,$):s}()):(d=p(r=d)?r:[],d=e(d,$))},l.$$s=u,l.$$arity=1,l)),p(d)?(h=d["$&"](c(K,"SUB_OPTIONS")["$[]"](i)),p(n(d,h)["$empty?"]())||(m=n(d,h),u.$logger().$warn("invalid substitution type"+function(){return p(r(m.$size(),1))?"s":""}()+function(){return p(a)?" for ":""}()+a+": "+m.$join(", "))),h):s)},I.$$arity=-2),t.def(Y,"$resolve_block_subs",D=function(t,e,n){var r=this;return r.$resolve_subs(t,"block",e,n)},D.$$arity=3),t.def(Y,"$resolve_pass_subs",R=function(t){var e=this;return e.$resolve_subs(t,"inline",s,"passthrough macro")},R.$$arity=1),t.def(Y,"$expand_subs",j=function(t){var n,r,i=this,o=s;return p(l("::","Symbol")["$==="](t))?t["$=="]("none")?s:p(n=c(K,"SUB_GROUPS")["$[]"](t))?n:[t]:(o=[],$(t,"each",[],(r=function(t){r.$$s;var n=s;return null==t&&(t=s),t["$=="]("none")?s:p(n=c(K,"SUB_GROUPS")["$[]"](t))?o=e(o,n):o["$<<"](t)},r.$$s=i,r.$$arity=1,r)),p(o["$empty?"]())?s:o)},j.$$arity=1),t.def(Y,"$commit_subs",M=function(){var e,r,i,o=this,a=s,l=s,u=s,d=s,f=s,h=s;if(null==o.default_subs&&(o.default_subs=s),null==o.content_model&&(o.content_model=s),null==o.context&&(o.context=s),null==o.subs&&(o.subs=s),null==o.attributes&&(o.attributes=s),null==o.style&&(o.style=s),null==o.document&&(o.document=s),p(a=o.default_subs));else if(l=o.content_model,"simple"["$==="](l))a=c(K,"NORMAL_SUBS");else if("verbatim"["$==="](l))a=function(){return o.context["$=="]("verse")?c(K,"NORMAL_SUBS"):c(K,"VERBATIM_SUBS")}();else{if(!"raw"["$==="](l))return o.subs;a=function(){return o.context["$=="]("stem")?c(K,"BASIC_SUBS"):c(K,"NO_SUBS")}()}return p(u=o.attributes["$[]"]("subs"))?o.subs=p(e=o.$resolve_block_subs(u,a,o.context))?e:[]:o.subs=a.$drop(0),p(p(e=p(r=p(i=o.context["$=="]("listing")?o.style["$=="]("source"):o.context["$=="]("listing"))?d=o.document.$syntax_highlighter():i)?d["$highlight?"]():r)?f=o.subs.$index("specialcharacters"):e)&&(h=[f,"highlight"],$(o.subs,"[]=",t.to_a(h)),h[n(h["length"],1)]),s},M.$$arity=0),t.def(Y,"$parse_attributes",F=function(t,e,n){var r,i=this,o=s,a=s;return null==i.document&&(i.document=s),null==e&&(e=[]),null==n&&(n=f([],{})),p(function(){return!p(t)||t["$empty?"]()}())?f([],{}):(p(n["$[]"]("unescape_input"))&&(t=i.$normalize_text(t,!0,!0)),p(p(r=n["$[]"]("sub_input"))?t["$include?"](c(K,"ATTR_REF_HEAD")):r)&&(t=i.document.$sub_attributes(t)),p(n["$[]"]("sub_result"))&&(o=i),p(a=n["$[]"]("into"))?c(K,"AttributeList").$new(t,o).$parse_into(a,e):c(K,"AttributeList").$new(t,o).$parse(e))},F.$$arity=-2),Y.$private(),t.def(Y,"$extract_callouts",N=function(r){var i,o=this,a=s,l=s,u=s,d=s;return a=f([],{}),l=0,u=s,d=function(){return p(o["$attr?"]("line-comment"))?c(K,"CalloutExtractRxMap")["$[]"](o.$attr("line-comment")):c(K,"CalloutExtractRx")}(),r=$(r.$split(c(K,"LF"),-1),"map",[],(i=function(r){var o,f=i.$$s||this;return null==r&&(r=s),l=e(l,1),$(r,"gsub",[d],(o=function(){o.$$s;var e,r=s;return p((e=m["~"])===s?s:e["$[]"](2))?((e=m["~"])===s?s:e["$[]"](0)).$sub(c(K,"RS"),""):((p(e=a["$[]"](l))?e:(r=[l,[]],$(a,"[]=",t.to_a(r)),r[n(r["length"],1)]))["$<<"]([(e=m["~"])===s?s:e["$[]"](1),(e=m["~"])===s?s:e["$[]"](4)]),u=l,"")},o.$$s=f,o.$$arity=0,o))},i.$$s=o,i.$$arity=1,i)).$join(c(K,"LF")),p(u)?u["$=="](l)&&(r=""+r+c(K,"LF")):a=s,[r,a]},N.$$arity=1),t.def(Y,"$restore_callouts",z=function(n,r,i){var o,a=this,l=s,u=s,d=s;return null==i&&(i=s),p(i)?(l=n.$slice(0,i),n=n.$slice(i,n.$length())):l="",u=d=0,e(l,$(n.$split(c(K,"LF"),-1),"map",[],(o=function(n){var i,a,l,h=o.$$s||this,m=s,g=s,v=s;return null==h.document&&(h.document=s),null==n&&(n=s),p(m=r.$delete(d=e(d,1)))?m.$size()["$=="](1)?(a=m["$[]"](0),i=t.to_ary(a),g=null==i[0]?s:i[0],v=null==i[1]?s:i[1],""+n+c(K,"Inline").$new(h,"callout",function(){return v["$=="](".")?(u=e(u,1)).$to_s():v}(),f(["id","attributes"],{id:h.document.$callouts().$read_next_id(),attributes:f(["guard"],{guard:g})})).$convert()):""+n+$(m,"map",[],(l=function(t,n){var r=l.$$s||this;return null==r.document&&(r.document=s),null==t&&(t=s),null==n&&(n=s),c(K,"Inline").$new(r,"callout",function(){return n["$=="](".")?(u=e(u,1)).$to_s():n}(),f(["id","attributes"],{id:r.document.$callouts().$read_next_id(),attributes:f(["guard"],{guard:t})})).$convert()},l.$$s=h,l.$$arity=2,l)).$join(" "):n},o.$$s=a,o.$$arity=1,o)).$join(c(K,"LF")))},z.$$arity=-3),t.def(Y,"$extract_inner_passthrough",H=function(e,r){var i,o,a=this,l=s,u=s;return null==a.passthroughs&&(a.passthroughs=s),p(p(i=p(o=e["$end_with?"]("+"))?e["$start_with?"]("+","\\+"):o)?c(K,"SinglePlusInlinePassRx")["$=~"](e):i)?p((i=m["~"])===s?s:i["$[]"](1))?r+"`+"+((i=m["~"])===s?s:i["$[]"](2))+"+`":(l=[u=a.passthroughs.$size(),f(["text","subs"],{text:(i=m["~"])===s?s:i["$[]"](2),subs:c(K,"BASIC_SUBS")})],$(a.passthroughs,"[]=",t.to_a(l)),l[n(l["length"],1)],r+"`"+c(K,"PASS_START")+u+c(K,"PASS_END")+"`"):r+"`"+e+"`"},H.$$arity=2),t.def(Y,"$convert_quoted_text",V=function(t,e,n){var r=this,i=s,o=s,a=s,l=s,u=s;if(p(t["$[]"](0)["$start_with?"](c(K,"RS")))){if(!p(n["$=="]("constrained")?i=t["$[]"](2):n["$=="]("constrained")))return t["$[]"](0).$slice(1,t["$[]"](0).$length());o="["+i+"]"}return n["$=="]("constrained")?p(o)?""+o+c(K,"Inline").$new(r,"quoted",t["$[]"](3),f(["type"],{type:e})).$convert():(p(a=t["$[]"](2))&&(l=(u=r.$parse_quoted_text_attributes(a))["$[]"]("id"),e["$=="]("mark")&&(e="unquoted")),""+t["$[]"](1)+c(K,"Inline").$new(r,"quoted",t["$[]"](3),f(["type","id","attributes"],{type:e,id:l,attributes:u})).$convert()):(p(a=t["$[]"](1))&&(l=(u=r.$parse_quoted_text_attributes(a))["$[]"]("id"),e["$=="]("mark")&&(e="unquoted")),c(K,"Inline").$new(r,"quoted",t["$[]"](2),f(["type","id","attributes"],{type:e,id:l,attributes:u})).$convert())},V.$$arity=3),t.def(Y,"$do_replacement",U=function(t,n,r){var i=s,o=s;return p((i=t["$[]"](0))["$include?"](c(K,"RS")))?i.$sub(c(K,"RS"),""):function(){return o=r,"none"["$==="](o)?n:"bounding"["$==="](o)?e(e(t["$[]"](1),n),t["$[]"](2)):e(t["$[]"](1),n)}()},U.$$arity=3),c(K,"RUBY_ENGINE")["$=="]("opal"),t.def(Y,"$parse_quoted_text_attributes",q=function(e){var i,o,a=this,l=s,d=s,h=s,m=s,g=s,v=s;return p((e=e.$rstrip())["$empty?"]())?f([],{}):(p(e["$include?"](c(K,"ATTR_REF_HEAD")))&&(e=a.$sub_attributes(e)),p(e["$include?"](","))&&(e=e.$slice(0,e.$index(","))),p(p(i=e["$start_with?"](".","#"))?c(K,"Compliance").$shorthand_property_syntax():i)?(l=e.$split("#",2),p(r(l.$size(),1))?(o=l["$[]"](1).$split("."),i=t.to_ary(o),d=null==i[0]?s:i[0],h=u.call(i,1)):h=[],m=function(){return p(l["$[]"](0)["$empty?"]())?[]:l["$[]"](0).$split(".")}(),p(r(m.$size(),1))&&m.$shift(),p(r(h.$size(),0))&&m.$concat(h),g=f([],{}),p(d)&&(v=["id",d],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),p(m["$empty?"]())||(v=["role",m.$join(" ")],$(g,"[]=",t.to_a(v)),v[n(v["length"],1)]),g):f(["role"],{role:e}))},q.$$arity=1),t.def(Y,"$normalize_text",W=function(t,e,n){var r;return null==e&&(e=s),null==n&&(n=s),p(t["$empty?"]())||(p(e)&&(t=t.$strip().$tr(c(K,"LF")," ")),p(p(r=n)?t["$include?"](c(K,"R_SB")):r)&&(t=t.$gsub(c(K,"ESC_R_SB"),c(K,"R_SB")))),t},W.$$arity=-2),t.def(Y,"$split_simple_csv",G=function(t){var n,r,i=this,o=s,a=s,l=s;return p(t["$empty?"]())?[]:p(t["$include?"]('"'))?(o=[],a="",l=s,$(t,"each_char",[],(n=function(t){n.$$s;var r=s;return null==t&&(t=s),function(){return r=t,","["$==="](r)?p(l)?a=e(a,t):(o["$<<"](a.$strip()),a=""):'"'["$==="](r)?l=l["$!"]():a=e(a,t)}()},n.$$s=i,n.$$arity=1,n)),o["$<<"](a.$strip())):$(t.$split(","),"map",[],(r=function(t){r.$$s;return null==t&&(t=s),t.$strip()},r.$$s=i,r.$$arity=1,r))},G.$$arity=1)})(y[0],y)}(a[0],a)},Opal.modules["asciidoctor/version"]=function(t){t.top;var e=[],n=(t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.module);return function(e,r){var i=n(e,"Asciidoctor"),o=[i].concat(r);t.const_set(o[0],"VERSION","2.0.10")}(e[0],e)},Opal.modules["asciidoctor/abstract_node"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var r=[],i=t.nil,o=t.const_get_qualified,a=t.const_get_relative,s=(t.breaker,t.slice,t.module),l=t.klass,c=t.hash2,u=t.truthy,d=t.send;return t.add_stubs(["$include","$attr_reader","$attr_accessor","$==","$document","$to_s","$[]","$merge","$raise","$converter","$attributes","$key?","$[]=","$-","$delete","$tap","$new","$each_key","$end_with?","$<<","$slice","$length","$update","$split","$include?","$empty?","$join","$apply_reftext_subs","$attr?","$attr","$extname?","$image_uri","$<","$safe","$uriish?","$encode_spaces_in_uri","$normalize_web_path","$generate_data_uri_from_uri","$generate_data_uri","$extname","$normalize_system_path","$readable?","$strict_encode64","$binread","$warn","$logger","$require_library","$!","$open_uri","$content_type","$read","$base_dir","$root?","$path_resolver","$system_path","$web_path","$===","$!=","$prepare_source_string","$fetch","$read_asset"]),function(r,f){var h=s(r,"Asciidoctor"),p=[h].concat(f);(function(r,s,f){var h,p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q=l(r,s,"AbstractNode"),W=[q].concat(f);q.$$prototype.document=q.$$prototype.attributes=q.$$prototype.parent=i,q.$include(a(W,"Substitutors"),a(W,"Logging")),q.$attr_reader("attributes"),q.$attr_reader("context"),q.$attr_reader("document"),q.$attr_accessor("id"),q.$attr_reader("node_name"),q.$attr_reader("parent"),t.def(q,"$initialize",h=function(t,e,n){var r=this,o=i;return null==n&&(n=c([],{})),e["$=="]("document")?r.document=r:u(t)&&(r.document=(r.parent=t).$document()),r.node_name=(r.context=e).$to_s(),r.attributes=function(){return u(o=n["$[]"]("attributes"))?o.$merge():c([],{})}(),r.passthroughs=[]},h.$$arity=-3),t.def(q,"$block?",p=function(){var t=this;return t.$raise(o("::","NotImplementedError"))},p.$$arity=0),t.def(q,"$inline?",$=function(){var t=this;return t.$raise(o("::","NotImplementedError"))},$.$$arity=0),t.def(q,"$converter",m=function(){var t=this;return t.document.$converter()},m.$$arity=0),t.def(q,"$parent=",g=function(t){var e,n=this;return e=[t,t.$document()],n.parent=e[0],n.document=e[1],e},g.$$arity=1),t.def(q,"$attr",v=function(t,e,n){var r,o,a,s,l=this;return null==e&&(e=i),null==n&&(n=i),u(r=l.attributes["$[]"](t.$to_s()))?r:u(o=u(a=u(s=n)?l.parent:s)?l.document.$attributes()["$[]"](function(){return n["$=="](!0)?t:n}().$to_s()):a)?o:e},v.$$arity=-2),t.def(q,"$attr?",y=function(t,e,n){var r,o,a=this;return null==e&&(e=i),null==n&&(n=i),u(e)?e["$=="](u(r=a.attributes["$[]"](t.$to_s()))?r:function(){return u(u(o=n)?a.parent:o)?a.document.$attributes()["$[]"](function(){return n["$=="](!0)?t:n}().$to_s()):i}()):u(r=a.attributes["$key?"](t.$to_s()))?r:function(){return!!u(u(o=n)?a.parent:o)&&a.document.$attributes()["$key?"](function(){return n["$=="](!0)?t:n}().$to_s())}()},y.$$arity=-2),t.def(q,"$set_attr",_=function(n,r,o){var a=this,s=i;return null==r&&(r=""),null==o&&(o=!0),!u(o["$=="](!1)?a.attributes["$key?"](n):o["$=="](!1))&&(s=[n,r],d(a.attributes,"[]=",t.to_a(s)),s[e(s["length"],1)],!0)},_.$$arity=-2),t.def(q,"$remove_attr",b=function(t){var e=this;return e.attributes.$delete(t)},b.$$arity=1),t.def(q,"$option?",w=function(t){var e=this;return!!u(e.attributes["$[]"](t+"-option"))},w.$$arity=1),t.def(q,"$set_option",x=function(n){var r=this,o=i;return o=[n+"-option",""],d(r.attributes,"[]=",t.to_a(o)),o[e(o["length"],1)],i},x.$$arity=1),t.def(q,"$enabled_options",k=function(){var t,n=this;return d(o("::","Set").$new(),"tap",[],(t=function(n){var r,o=t.$$s||this;return null==o.attributes&&(o.attributes=i),null==n&&(n=i),d(o.attributes,"each_key",[],(r=function(t){r.$$s;return null==t&&(t=i),u(t.$to_s()["$end_with?"]("-option"))?n["$<<"](t.$slice(0,e(t.$length(),7))):i},r.$$s=o,r.$$arity=1,r))},t.$$s=n,t.$$arity=1,t))},k.$$arity=0),t.def(q,"$update_attributes",S=function(t){var e=this;return e.attributes.$update(t)},S.$$arity=1),t.def(q,"$role",O=function(){var t=this;return t.attributes["$[]"]("role")},O.$$arity=0),t.def(q,"$roles",C=function(){var t=this,e=i;return u(e=t.attributes["$[]"]("role"))?e.$split():[]},C.$$arity=0),t.def(q,"$role?",A=function(t){var e=this;return null==t&&(t=i),u(t)?t["$=="](e.attributes["$[]"]("role")):e.attributes["$key?"]("role")},A.$$arity=-1),t.def(q,"$has_role?",E=function(t){var e=this,n=i;return!!u(n=e.attributes["$[]"]("role"))&&(" "+n+" ")["$include?"](" "+t+" ")},E.$$arity=1),t.def(q,"$add_role",T=function(n){var r=this,o=i,a=i;return u(o=r.attributes["$[]"]("role"))?!u((" "+o+" ")["$include?"](" "+n+" "))&&(a=["role",o+" "+n],d(r.attributes,"[]=",t.to_a(a)),a[e(a["length"],1)],!0):(a=["role",n],d(r.attributes,"[]=",t.to_a(a)),a[e(a["length"],1)],!0)},T.$$arity=1),t.def(q,"$remove_role",P=function(n){var r,o=this,a=i,s=i;return!!u(u(r=a=o.attributes["$[]"]("role"))?(a=a.$split()).$delete(n):r)&&(u(a["$empty?"]())?o.attributes.$delete("role"):(s=["role",a.$join(" ")],d(o.attributes,"[]=",t.to_a(s)),s[e(s["length"],1)]),!0)},P.$$arity=1),t.def(q,"$reftext",B=function(){var t=this,e=i;return u(e=t.attributes["$[]"]("reftext"))?t.$apply_reftext_subs(e):i},B.$$arity=0),t.def(q,"$reftext?",L=function(){var t=this;return t.attributes["$key?"]("reftext")},L.$$arity=0),t.def(q,"$icon_uri",I=function(t){var e=this,n=i;return u(e["$attr?"]("icon"))?(n=e.$attr("icon"),u(a(W,"Helpers")["$extname?"](n))||(n=n+"."+e.document.$attr("icontype","png"))):n=t+"."+e.document.$attr("icontype","png"),e.$image_uri(n,"iconsdir")},I.$$arity=1),t.def(q,"$image_uri",D=function(t,e){var r,s,l,c,d=this,f=i,h=i;return null==e&&(e="imagesdir"),u(u(r=n((f=d.document).$safe(),o(a(W,"SafeMode"),"SECURE")))?f["$attr?"]("data-uri"):r)?u(u(r=u(s=a(W,"Helpers")["$uriish?"](t))?t=a(W,"Helpers").$encode_spaces_in_uri(t):s)?r:u(s=u(l=u(c=e)?h=f.$attr(e):c)?a(W,"Helpers")["$uriish?"](h):l)?t=d.$normalize_web_path(t,h,!1):s)?u(f["$attr?"]("allow-uri-read"))?d.$generate_data_uri_from_uri(t,f["$attr?"]("cache-uri")):t:d.$generate_data_uri(t,e):d.$normalize_web_path(t,function(){return u(e)?f.$attr(e):i}())},D.$$arity=-2),t.def(q,"$media_uri",R=function(t,e){var n=this;return null==e&&(e="imagesdir"),n.$normalize_web_path(t,function(){return u(e)?n.document.$attr(e):i}())},R.$$arity=-2),t.def(q,"$generate_data_uri",j=function(t,e){var n=this,r=i,s=i,l=i;return null==e&&(e=i),s=u(r=a(W,"Helpers").$extname(t,i))?function(){return r["$=="](".svg")?"image/svg+xml":"image/"+r.$slice(1,r.$length())}():"application/octet-stream",l=u(e)?n.$normalize_system_path(t,n.document.$attr(e),i,c(["target_name"],{target_name:"image"})):n.$normalize_system_path(t),u(o("::","File")["$readable?"](l))?"data:"+s+";base64,"+o("::","Base64").$strict_encode64(o("::","File").$binread(l)):(n.$logger().$warn("image to embed not found or not readable: "+l),"data:"+s+";base64,")},j.$$arity=-2),t.def(q,"$generate_data_uri_from_uri",M=function(e,n){var r,s,l,c=this,f=i,h=i;null==n&&(n=!1),u(n)?a(W,"Helpers").$require_library("open-uri/cached","open-uri-cached"):u(a(W,"RUBY_ENGINE_OPAL")["$!"]())&&o("::","OpenURI");try{return s=d(o("::","OpenURI"),"open_uri",[e,a(W,"URI_READ_MODE")],(l=function(t){l.$$s;return null==t&&(t=i),[t.$content_type(),t.$read()]},l.$$s=c,l.$$arity=1,l)),r=t.to_ary(s),f=null==r[0]?i:r[0],h=null==r[1]?i:r[1],"data:"+f+";base64,"+o("::","Base64").$strict_encode64(h)}catch(p){if(!t.rescue(p,[a(W,"StandardError")]))throw p;try{return c.$logger().$warn("could not retrieve image data from URI: "+e),e}finally{t.pop_exception()}}},M.$$arity=-2),t.def(q,"$normalize_asset_path",F=function(t,e,n){var r=this;return null==e&&(e="path"),null==n&&(n=!0),r.$normalize_system_path(t,r.document.$base_dir(),i,c(["target_name","recover"],{target_name:e,recover:n}))},F.$$arity=-2),t.def(q,"$normalize_system_path",N=function(t,e,r,s){var l=this,d=i;return null==e&&(e=i),null==r&&(r=i),null==s&&(s=c([],{})),u(n((d=l.document).$safe(),o(a(W,"SafeMode"),"SAFE")))?u(e)?u(d.$path_resolver()["$root?"](e))||(e=o("::","File").$join(d.$base_dir(),e)):e=d.$base_dir():(u(e)||(e=d.$base_dir()),u(r)||(r=d.$base_dir())),d.$path_resolver().$system_path(t,e,r,s)},N.$$arity=-2),t.def(q,"$normalize_web_path",z=function(t,e,n){var r,o=this;return null==e&&(e=i),null==n&&(n=!0),u(u(r=n)?a(W,"Helpers")["$uriish?"](t):r)?a(W,"Helpers").$encode_spaces_in_uri(t):o.document.$path_resolver().$web_path(t,e)},z.$$arity=-2),t.def(q,"$read_asset",H=function(t,e){var n,r=this;return null==e&&(e=c([],{})),u(o("::","Hash")["$==="](e))||(e=c(["warn_on_failure"],{warn_on_failure:e["$!="](!1)})),u(o("::","File")["$readable?"](t))?u(e["$[]"]("normalize"))?a(W,"Helpers").$prepare_source_string(o("::","File").$read(t,c(["mode"],{mode:a(W,"FILE_READ_MODE")}))).$join(a(W,"LF")):o("::","File").$read(t,c(["mode"],{mode:a(W,"FILE_READ_MODE")})):u(e["$[]"]("warn_on_failure"))?(r.$logger().$warn((u(n=r.$attr("docfile"))?n:"<stdin>")+": "+(u(n=e["$[]"]("label"))?n:"file")+" does not exist or cannot be read: "+t),i):i},H.$$arity=-2),t.def(q,"$read_contents",V=function(e,n){var r,s,l,f,h,p=this,$=i,m=i;if(null==n&&(n=c([],{})),$=p.document,!u(u(r=a(W,"Helpers")["$uriish?"](e))?r:u(s=u(l=m=n["$[]"]("start"))?a(W,"Helpers")["$uriish?"](m):l)?e=$.$path_resolver().$web_path(e,m):s))return e=p.$normalize_system_path(e,n["$[]"]("start"),i,c(["target_name"],{target_name:u(r=n["$[]"]("label"))?r:"asset"})),p.$read_asset(e,c(["normalize","warn_on_failure","label"],{normalize:n["$[]"]("normalize"),warn_on_failure:n.$fetch("warn_on_failure",!0),label:n["$[]"]("label")}));if(!u($["$attr?"]("allow-uri-read")))return u(n.$fetch("warn_on_failure",!0))&&p.$logger().$warn("cannot retrieve contents of "+(u(r=n["$[]"]("label"))?r:"asset")+" at URI: "+e+" (allow-uri-read attribute not enabled)"),i;u($["$attr?"]("cache-uri"))&&a(W,"Helpers").$require_library("open-uri/cached","open-uri-cached");try{return u(n["$[]"]("normalize"))?a(W,"Helpers").$prepare_source_string(d(o("::","OpenURI"),"open_uri",[e,a(W,"URI_READ_MODE")],(f=function(t){f.$$s;return null==t&&(t=i),t.$read()},f.$$s=p,f.$$arity=1,f))).$join(a(W,"LF")):d(o("::","OpenURI"),"open_uri",[e,a(W,"URI_READ_MODE")],(h=function(t){h.$$s;return null==t&&(t=i),t.$read()},h.$$s=p,h.$$arity=1,h))}catch(g){if(!t.rescue(g,[a(W,"StandardError")]))throw g;try{return u(n.$fetch("warn_on_failure",!0))&&p.$logger().$warn("could not retrieve contents of "+(u(r=n["$[]"]("label"))?r:"asset")+" at URI: "+e),i}finally{t.pop_exception()}}},V.$$arity=-2),t.def(q,"$is_uri?",U=function(t){return a(W,"Helpers")["$uriish?"](t)},U.$$arity=1)})(p[0],null,p)}(r[0],r)},Opal.modules["asciidoctor/abstract_block"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.hash2,d=t.send,f=t.truthy;return t.add_stubs(["$attr_reader","$attr_writer","$attr_accessor","$==","$===","$level","$file","$lineno","$playback_attributes","$convert","$converter","$join","$map","$to_s","$parent","$parent=","$-","$<<","$empty?","$>","$Integer","$find_by_internal","$to_proc","$context","$[]","$items","$+","$find_index","$include?","$next_adjacent_block","$blocks","$select","$sub_specialchars","$match?","$sub_replacements","$title","$apply_title_subs","$delete","$reftext","$!","$sub_placeholder","$sub_quotes","$compat_mode","$attributes","$chomp","$increment_and_store_counter","$index=","$numbered","$sectname","$counter","$numeral=","$numeral","$caption=","$int_to_roman","$each","$assign_numeral","$reindex_sections","$protected","$has_role?","$raise","$header?","$!=","$flatten","$head","$rows","$merge","$body","$foot","$style","$inner_document"]),function(i,h){var p=l(i,"Asciidoctor"),$=[p].concat(h);(function(i,l,h){var p,$,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V=c(i,l,"AbstractBlock"),U=[V].concat(h);V.$$prototype.source_location=V.$$prototype.document=V.$$prototype.attributes=V.$$prototype.blocks=V.$$prototype.next_section_index=V.$$prototype.numeral=V.$$prototype.context=V.$$prototype.parent=V.$$prototype.caption=V.$$prototype.style=V.$$prototype.converted_title=V.$$prototype.title=V.$$prototype.subs=V.$$prototype.next_section_ordinal=V.$$prototype.id=V.$$prototype.header=o,V.$attr_reader("blocks"),V.$attr_writer("caption"),V.$attr_accessor("content_model"),V.$attr_accessor("level"),V.$attr_accessor("numeral"),V.$attr_accessor("source_location"),V.$attr_accessor("style"),V.$attr_reader("subs"),t.def(V,"$initialize",p=function(e,n,r){var i,a=p.$$p,l=this,c=o,h=o,$=o;for(a&&(p.$$p=null),h=0,$=arguments.length,c=new Array($);h<$;h++)c[h]=arguments[h];return null==r&&(r=u([],{})),d(l,t.find_super_dispatcher(l,"initialize",p,!1),c,a),l.content_model="compound",l.blocks=[],l.subs=[],l.id=l.title=l.caption=l.numeral=l.style=l.default_subs=l.source_location=o,f(f(i=n["$=="]("document"))?i:n["$=="]("section"))?(l.level=l.next_section_index=0,l.next_section_ordinal=1):f(s(U,"AbstractBlock")["$==="](e))?l.level=e.$level():l.level=o},p.$$arity=-3),t.def(V,"$block?",$=function(){return!0},$.$$arity=0),t.def(V,"$inline?",m=function(){return!1},m.$$arity=0),t.def(V,"$file",g=function(){var t,e=this;return f(t=e.source_location)?e.source_location.$file():t},g.$$arity=0),t.def(V,"$lineno",v=function(){var t,e=this;return f(t=e.source_location)?e.source_location.$lineno():t},v.$$arity=0),t.def(V,"$convert",y=function(){var t=this;return t.document.$playback_attributes(t.attributes),t.$converter().$convert(t)},y.$$arity=0),t.alias(V,"render","convert"),t.def(V,"$content",_=function(){var t,e=this;return d(e.blocks,"map",[],(t=function(e){t.$$s;return null==e&&(e=o),e.$convert()},t.$$s=e,t.$$arity=1,t)).$join(s(U,"LF"))},_.$$arity=0),t.def(V,"$context=",b=function(t){var e=this;return e.node_name=(e.context=t).$to_s()},b.$$arity=1),t.def(V,"$<<",w=function(n){var r=this,i=o;return n.$parent()["$=="](r)||(i=[r],d(n,"parent=",t.to_a(i)),i[e(i["length"],1)]),r.blocks["$<<"](n),r},w.$$arity=1),t.alias(V,"append","<<"),t.def(V,"$blocks?",x=function(){var t=this;return!f(t.blocks["$empty?"]())},x.$$arity=0),t.def(V,"$sections?",k=function(){var t=this;return n(t.next_section_index,0)},k.$$arity=0),t.def(V,"$number",S=function(){var e=this;try{return e.$Integer(e.numeral)}catch(n){if(!t.rescue(n,[s(U,"StandardError")]))throw n;try{return e.numeral}finally{t.pop_exception()}}},S.$$arity=0),t.def(V,"$find_by",O=function(e){var n=O.$$p,r=n||o,i=this,s=o;n&&(O.$$p=null),n&&(O.$$p=null),null==e&&(e=u([],{}));try{return d(i,"find_by_internal",[e,s=[]],r.$to_proc())}catch(l){if(!t.rescue(l,[a("::","StopIteration")]))throw l;try{return s}finally{t.pop_exception()}}},O.$$arity=-1),t.alias(V,"query","find_by"),t.def(V,"$next_adjacent_block",C=function(){var t,e=this,n=o,i=o;return e.context["$=="]("document")?o:f((n=e.parent).$context()["$=="]("dlist")?e.context["$=="]("list_item"):(n=e.parent).$context()["$=="]("dlist"))?f(i=n.$items()["$[]"](r(d(n.$items(),"find_index",[],(t=function(e,n){var r,i=t.$$s||this;return null==e&&(e=o),null==n&&(n=o),f(r=e["$include?"](i))?r:n["$=="](i)},t.$$s=e,t.$$arity=2,t)),1)))?i:n.$next_adjacent_block():f(i=n.$blocks()["$[]"](r(n.$blocks().$find_index(e),1)))?i:n.$next_adjacent_block()},C.$$arity=0),t.def(V,"$sections",A=function(){var t,e=this;return d(e.blocks,"select",[],(t=function(e){t.$$s;return null==e&&(e=o),e.$context()["$=="]("section")},t.$$s=e,t.$$arity=1,t))},A.$$arity=0),t.def(V,"$alt",E=function(){var t=this,e=o;return f(e=t.attributes["$[]"]("alt"))?e["$=="](t.attributes["$[]"]("default-alt"))?t.$sub_specialchars(e):(e=t.$sub_specialchars(e),f(s(U,"ReplaceableTextRx")["$match?"](e))?t.$sub_replacements(e):e):""},E.$$arity=0),t.def(V,"$caption",T=function(){var t=this;return t.context["$=="]("admonition")?t.attributes["$[]"]("textlabel"):t.caption},T.$$arity=0),t.def(V,"$captioned_title",P=function(){var t=this;return""+t.caption+t.$title()},P.$$arity=0),t.def(V,"$list_marker_keyword",B=function(t){var e,n=this;return null==t&&(t=o),s(U,"ORDERED_LIST_KEYWORDS")["$[]"](f(e=t)?e:n.style)},B.$$arity=-1),t.def(V,"$title",L=function(){var t,e,n=this;return n.converted_title=f(t=n.converted_title)?t:f(e=n.title)?n.$apply_title_subs(n.title):e},L.$$arity=0),t.def(V,"$title?",I=function(){var t=this;return!!f(t.title)},I.$$arity=0),t.def(V,"$title=",D=function(t){var e=this;return e.converted_title=o,e.title=t},D.$$arity=1),t.def(V,"$sub?",R=function(t){var e=this;return e.subs["$include?"](t)},R.$$arity=1),t.def(V,"$remove_sub",j=function(t){var e=this;return e.subs.$delete(t),o},j.$$arity=1),t.def(V,"$xreftext",M=function(t){var e,n,r=this,i=o,a=o,l=o,c=o,u=o;return null==t&&(t=o),f(f(e=i=r.$reftext())?i["$empty?"]()["$!"]():e)?i:f(f(e=f(n=t)?r.title:n)?r.caption:e)?function(){return a=t,"full"["$==="](a)?(l=r.$sub_placeholder(r.$sub_quotes(function(){return f(r.document.$compat_mode())?"``%s''":'"`%s`"'}()),r.$title()),f(f(e=f(n=r.numeral)?c=s(U,"CAPTION_ATTR_NAMES")["$[]"](r.context):n)?u=r.document.$attributes()["$[]"](c):e)?u+" "+r.numeral+", "+l:r.caption.$chomp(". ")+", "+l):"short"["$==="](a)?f(f(e=f(n=r.numeral)?c=s(U,"CAPTION_ATTR_NAMES")["$[]"](r.context):n)?u=r.document.$attributes()["$[]"](c):e)?u+" "+r.numeral:r.caption.$chomp(". "):r.$title()}():r.$title()},M.$$arity=-1),t.def(V,"$assign_caption",F=function(t,e){var n,r,i=this,a=o,l=o;return null==e&&(e=i.context),f(f(n=f(r=i.caption)?r:i.title["$!"]())?n:i.caption=f(r=t)?r:i.document.$attributes()["$[]"]("caption"))?o:f(f(n=a=s(U,"CAPTION_ATTR_NAMES")["$[]"](e))?l=i.document.$attributes()["$[]"](a):n)?(i.caption=l+" "+(i.numeral=i.document.$increment_and_store_counter(e+"-number",i))+". ",o):o},F.$$arity=-2),t.def(V,"$assign_numeral",N=function(n){var i,a=this,l=o,c=o,u=o,h=o;return a.next_section_index=r((l=[a.next_section_index],d(n,"index=",t.to_a(l)),l[e(l["length"],1)]),1),f(c=n.$numbered())&&((u=n.$sectname())["$=="]("appendix")?(l=[a.document.$counter("appendix-number","A")],d(n,"numeral=",t.to_a(l)),l[e(l["length"],1)],l=[function(){return f(h=a.document.$attributes()["$[]"]("appendix-caption"))?h+" "+n.$numeral()+": ":n.$numeral()+". "}()],d(n,"caption=",t.to_a(l)),l[e(l["length"],1)]):f(f(i=u["$=="]("chapter"))?i:c["$=="]("chapter"))?(l=[a.document.$counter("chapter-number",1).$to_s()],d(n,"numeral=",t.to_a(l)),l[e(l["length"],1)]):(l=[function(){return u["$=="]("part")?s(U,"Helpers").$int_to_roman(a.next_section_ordinal):a.next_section_ordinal.$to_s()}()],d(n,"numeral=",t.to_a(l)),l[e(l["length"],1)],a.next_section_ordinal=r(a.next_section_ordinal,1))),o},N.$$arity=1),t.def(V,"$reindex_sections",z=function(){var t,e=this;return e.next_section_index=0,e.next_section_ordinal=1,d(e.blocks,"each",[],(t=function(e){var n=t.$$s||this;return null==e&&(e=o),e.$context()["$=="]("section")?(n.$assign_numeral(e),e.$reindex_sections()):o},t.$$s=e,t.$$arity=1,t))},z.$$arity=0),V.$protected(),t.def(V,"$find_by_internal",H=function(e,n){var i,s,l,c,h,p,$,m,g,v,y=H.$$p,_=y||o,b=this,w=o,x=o,k=o,S=o,O=o,C=o,A=o;if(y&&(H.$$p=null),y&&(H.$$p=null),null==e&&(e=u([],{})),null==n&&(n=[]),f(f(i=f(s=f(l=f(c=w=function(){return!f(x=e["$[]"]("context"))||o}())?c:x["$=="](b.context))?f(c=(k=e["$[]"]("style"))["$!"]())?c:k["$=="](b.style):l)?f(l=(S=e["$[]"]("role"))["$!"]())?l:b["$has_role?"](S):s)?f(s=(O=e["$[]"]("id"))["$!"]())?s:O["$=="](b.id):i))if(_!==o)if(f(C=t.yield1(_,b))){if(A=C,"prune"["$==="](A))return n["$<<"](b),f(O)&&b.$raise(a("::","StopIteration")),n;if("reject"["$==="](A))return f(O)&&b.$raise(a("::","StopIteration")),n;"stop"["$==="](A)?b.$raise(a("::","StopIteration")):(n["$<<"](b),f(O)&&b.$raise(a("::","StopIteration")))}else f(O)&&b.$raise(a("::","StopIteration"));else n["$<<"](b),f(O)&&b.$raise(a("::","StopIteration"));return A=b.context,"document"["$==="](A)?x["$=="]("document")||(f(f(i=b["$header?"]())?f(s=w)?s:x["$=="]("section"):i)&&d(b.header,"find_by_internal",[e,n],_.$to_proc()),d(b.blocks,"each",[],(h=function(t){h.$$s;return null==t&&(t=o),f(x["$=="]("section")?t.$context()["$!="]("section"):x["$=="]("section"))?o:d(t,"find_by_internal",[e,n],_.$to_proc())},h.$$s=b,h.$$arity=1,h))):"dlist"["$==="](A)?f(f(i=w)?i:x["$!="]("section"))&&d(b.blocks.$flatten(),"each",[],(p=function(t){p.$$s;return null==t&&(t=o),f(t)?d(t,"find_by_internal",[e,n],_.$to_proc()):o},p.$$s=b,p.$$arity=1,p)):"table"["$==="](A)?f(e["$[]"]("traverse_documents"))?(d(b.$rows().$head(),"each",[],($=function(t){var r,i=$.$$s||this;return null==t&&(t=o),d(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=o),d(t,"find_by_internal",[e,n],_.$to_proc())},r.$$s=i,r.$$arity=1,r))},$.$$s=b,$.$$arity=1,$)),x["$=="]("inner_document")&&(e=e.$merge(u(["context"],{context:"document"}))),d(r(b.$rows().$body(),b.$rows().$foot()),"each",[],(m=function(t){var r,i=m.$$s||this;return null==t&&(t=o),d(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=o),d(t,"find_by_internal",[e,n],_.$to_proc()),t.$style()["$=="]("asciidoc")?d(t.$inner_document(),"find_by_internal",[e,n],_.$to_proc()):o},r.$$s=i,r.$$arity=1,r))},m.$$s=b,m.$$arity=1,m))):d(r(r(b.$rows().$head(),b.$rows().$body()),b.$rows().$foot()),"each",[],(g=function(t){var r,i=g.$$s||this;return null==t&&(t=o),d(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=o),d(t,"find_by_internal",[e,n],_.$to_proc())},r.$$s=i,r.$$arity=1,r))},g.$$s=b,g.$$arity=1,g)):d(b.blocks,"each",[],(v=function(t){v.$$s;return null==t&&(t=o),f(x["$=="]("section")?t.$context()["$!="]("section"):x["$=="]("section"))?o:d(t,"find_by_internal",[e,n],_.$to_proc())},v.$$s=b,v.$$arity=1,v)),n},H.$$arity=-1)})($[0],s($,"AbstractNode"),$)}(i[0],i)},Opal.modules["asciidoctor/attribute_list"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.hash,d=t.hash2,f=t.truthy,h=t.send;return t.add_stubs(["$new","$[]","$update","$parse","$parse_attribute","$eos?","$skip_delimiter","$+","$rekey","$each","$[]=","$-","$private","$skip_blank","$==","$peek","$parse_attribute_value","$get_byte","$start_with?","$scan_name","$!","$!=","$*","$scan_to_delimiter","$===","$include?","$delete","$split","$empty?","$apply_subs","$scan_to_quote","$gsub","$skip","$scan"]),function(i,p){var $=l(i,"Asciidoctor"),m=[$].concat(p);(function(i,l,p){var $,m,g,v,y,_,b,w,x,k,S,O,C=c(i,l,"AttributeList"),A=[C].concat(p);C.$$prototype.attributes=C.$$prototype.scanner=C.$$prototype.delimiter=C.$$prototype.block=C.$$prototype.delimiter_skip_pattern=C.$$prototype.delimiter_boundary_pattern=o,t.const_set(A[0],"BACKSLASH","\\"),t.const_set(A[0],"APOS","'"),t.const_set(A[0],"BoundaryRxs",u('"',/.*?[^\\](?=")/,s(A,"APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),t.const_set(A[0],"EscapedQuotes",u('"','\\"',s(A,"APOS"),"\\'")),t.const_set(A[0],"NameRx",new RegExp(s(A,"CG_WORD")+"["+s(A,"CC_WORD")+"\\-.]*")),t.const_set(A[0],"BlankRx",/[ \t]+/),t.const_set(A[0],"SkipRxs",d([","],{",":/[ \t]*(,|$)/})),t.def(C,"$initialize",$=function(t,e,n){var r=this;return null==e&&(e=o),null==n&&(n=","),r.scanner=a("::","StringScanner").$new(t),r.block=e,r.delimiter=n,r.delimiter_skip_pattern=s(A,"SkipRxs")["$[]"](n),r.delimiter_boundary_pattern=s(A,"BoundaryRxs")["$[]"](n),r.attributes=o},$.$$arity=-2),t.def(C,"$parse_into",m=function(t,e){var n=this;return null==e&&(e=[]),t.$update(n.$parse(e))},m.$$arity=-2),t.def(C,"$parse",g=function(t){var n=this,r=o;if(null==t&&(t=[]),f(n.attributes))return n.attributes;n.attributes=d([],{}),r=0;while(f(n.$parse_attribute(r,t))){if(f(n.scanner["$eos?"]()))break;n.$skip_delimiter(),r=e(r,1)}return n.attributes},g.$$arity=-1),t.def(C,"$rekey",v=function(t){var e=this;return s(A,"AttributeList").$rekey(e.attributes,t)},v.$$arity=1),t.defs(C,"$rekey",y=function(r,i){var a,s=this,l=o;return l=0,h(i,"each",[],(a=function(i){a.$$s;var s=o,c=o;return null==i&&(i=o),l=e(l,1),f(i)&&f(s=r["$[]"](l))?(c=[i,s],h(r,"[]=",t.to_a(c)),c[n(c["length"],1)]):o},a.$$s=s,a.$$arity=1,a)),r},y.$$arity=2),C.$private(),t.def(C,"$parse_attribute",_=function(i,a){var l,c,u=this,d=o,p=o,$=o,m=o,g=o,v=o,y=o,_=o,b=o,w=o;if(null==i&&(i=0),null==a&&(a=[]),d=!1,u.$skip_blank(),(p=u.scanner.$peek(1))["$=="]('"'))$=u.$parse_attribute_value(u.scanner.$get_byte()),m=o;else if(p["$=="](s(A,"APOS")))$=u.$parse_attribute_value(u.scanner.$get_byte()),m=o,f($["$start_with?"](s(A,"APOS")))||(d=!0);else{if($=u.$scan_name(),g=0,v=o,f(u.scanner["$eos?"]())){if(!f($))return!1}else g=f(l=u.$skip_blank())?l:0,v=u.scanner.$get_byte();if(f(f(l=v["$!"]())?l:v["$=="](u.delimiter)))m=o;else if(f(f(l=v["$!="]("="))?l:$["$!"]()))$=""+$+r(" ",g)+v+u.$scan_to_delimiter(),m=o;else if(u.$skip_blank(),f(u.scanner.$peek(1)))if((v=u.scanner.$get_byte())["$=="]('"'))m=u.$parse_attribute_value(v);else if(v["$=="](s(A,"APOS")))m=u.$parse_attribute_value(v),f(m["$start_with?"](s(A,"APOS")))||(d=!0);else if(v["$=="](u.delimiter))m="";else if(m=""+v+u.$scan_to_delimiter(),m["$=="]("None"))return!0}return f(m)?(y=$,"options"["$==="](y)||"opts"["$==="](y)?f(m["$include?"](","))?(f(m["$include?"](" "))&&(m=m.$delete(" ")),h(m.$split(","),"each",[],(c=function(e){var r=c.$$s||this,i=o;return null==r.attributes&&(r.attributes=o),null==e&&(e=o),f(e["$empty?"]())?o:(i=[e+"-option",""],h(r.attributes,"[]=",t.to_a(i)),i[n(i["length"],1)])},c.$$s=u,c.$$arity=1,c))):f(m["$empty?"]())||(_=[m+"-option",""],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]):f(f(l=d)?u.block:l)?(y=$,"title"["$==="](y)||"reftext"["$==="](y)?(_=[$,m],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]):(_=[$,u.block.$apply_subs(m)],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)])):(_=[$,m],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)])):(b=function(){return f(f(l=d)?u.block:l)?u.block.$apply_subs($):$}(),f(w=a["$[]"](i))&&(_=[w,b],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]),_=[e(i,1),b],h(u.attributes,"[]=",t.to_a(_)),_[n(_["length"],1)]),!0},_.$$arity=-1),t.def(C,"$parse_attribute_value",b=function(t){var e=this,n=o;return e.scanner.$peek(1)["$=="](t)?(e.scanner.$get_byte(),""):f(n=e.$scan_to_quote(t))?(e.scanner.$get_byte(),f(n["$include?"](s(A,"BACKSLASH")))?n.$gsub(s(A,"EscapedQuotes")["$[]"](t),t):n):""+t+e.$scan_to_delimiter()},b.$$arity=1),t.def(C,"$skip_blank",w=function(){var t=this;return t.scanner.$skip(s(A,"BlankRx"))},w.$$arity=0),t.def(C,"$skip_delimiter",x=function(){var t=this;return t.scanner.$skip(t.delimiter_skip_pattern)},x.$$arity=0),t.def(C,"$scan_name",k=function(){var t=this;return t.scanner.$scan(s(A,"NameRx"))},k.$$arity=0),t.def(C,"$scan_to_delimiter",S=function(){var t=this;return t.scanner.$scan(t.delimiter_boundary_pattern)},S.$$arity=0),t.def(C,"$scan_to_quote",O=function(t){var e=this;return e.scanner.$scan(s(A,"BoundaryRxs")["$[]"](t))},O.$$arity=1)})(m[0],null,m)}(i[0],i)},Opal.modules["asciidoctor/block"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var r=[],i=t.nil,o=t.const_get_qualified,a=t.const_get_relative,s=(t.breaker,t.slice,t.module),l=t.klass,c=t.send,u=t.hash2,d=t.truthy;return t.add_stubs(["$default=","$-","$attr_accessor","$[]","$key?","$==","$===","$drop","$delete","$[]=","$commit_subs","$nil_or_empty?","$prepare_source_string","$apply_subs","$join","$<","$size","$empty?","$rstrip","$shift","$pop","$warn","$logger","$to_s","$class","$object_id","$inspect"]),function(r,f){var h=s(r,"Asciidoctor"),p=[h].concat(f);(function(r,s,f){var h,p,$,m,g=l(r,s,"Block"),v=[g].concat(f),y=i;g.$$prototype.attributes=g.$$prototype.content_model=g.$$prototype.lines=g.$$prototype.subs=g.$$prototype.blocks=g.$$prototype.context=g.$$prototype.style=i,y=["simple"],c(t.const_set(v[0],"DEFAULT_CONTENT_MODEL",u(["audio","image","listing","literal","stem","open","page_break","pass","thematic_break","video"],{audio:"empty",image:"empty",listing:"verbatim",literal:"verbatim",stem:"raw",open:"compound",page_break:"empty",pass:"raw",thematic_break:"empty",video:"empty"})),"default=",t.to_a(y)),y[e(y["length"],1)],t.alias(g,"blockname","context"),g.$attr_accessor("lines"),t.def(g,"$initialize",h=function(n,r,s){var l,f=h.$$p,p=this,$=i,m=i,g=i,y=i,_=i,b=i;for(f&&(h.$$p=null),_=0,b=arguments.length,y=new Array(b);_<b;_++)y[_]=arguments[_];return null==s&&(s=u([],{})),c(p,t.find_super_dispatcher(p,"initialize",h,!1),y,f),p.content_model=d(l=s["$[]"]("content_model"))?l:a(v,"DEFAULT_CONTENT_MODEL")["$[]"](r),d(s["$key?"]("subs"))?d($=s["$[]"]("subs"))?($["$=="]("default")?p.default_subs=s["$[]"]("default_subs"):d(o("::","Array")["$==="]($))?(p.default_subs=$.$drop(0),p.attributes.$delete("subs")):(p.default_subs=i,m=["subs",""+$],c(p.attributes,"[]=",t.to_a(m)),m[e(m["length"],1)]),p.$commit_subs()):(p.default_subs=[],p.attributes.$delete("subs")):p.default_subs=i,d((g=s["$[]"]("source"))["$nil_or_empty?"]())?p.lines=[]:d(o("::","String")["$==="](g))?p.lines=a(v,"Helpers").$prepare_source_string(g):p.lines=g.$drop(0)},h.$$arity=-3),t.def(g,"$content",p=function(){var e,r=p.$$p,o=this,s=i,l=i,u=i,f=i,h=i,$=i,m=i;for(r&&(p.$$p=null),$=0,m=arguments.length,h=new Array(m);$<m;$++)h[$]=arguments[$];return function(){if(s=o.content_model,"compound"["$==="](s))return c(o,t.find_super_dispatcher(o,"content",p,!1),h,r);if("simple"["$==="](s))return o.$apply_subs(o.lines.$join(a(v,"LF")),o.subs);if("verbatim"["$==="](s)||"raw"["$==="](s)){if(l=o.$apply_subs(o.lines,o.subs),d(n(l.$size(),2)))return l["$[]"](0);while(d(d(e=u=l["$[]"](0))?u.$rstrip()["$empty?"]():e))l.$shift();while(d(d(e=f=l["$[]"](-1))?f.$rstrip()["$empty?"]():e))l.$pop();return l.$join(a(v,"LF"))}return o.content_model["$=="]("empty")||o.$logger().$warn("Unknown content model '"+o.content_model+"' for block: "+o.$to_s()),i}()},p.$$arity=0),t.def(g,"$source",$=function(){var t=this;return t.lines.$join(a(v,"LF"))},$.$$arity=0),t.def(g,"$to_s",m=function(){var t=this,e=i;return e=function(){return t.content_model["$=="]("compound")?"blocks: "+t.blocks.$size():"lines: "+t.lines.$size()}(),"#<"+t.$class()+"@"+t.$object_id()+" {context: "+t.context.$inspect()+", content_model: "+t.content_model.$inspect()+", style: "+t.style.$inspect()+", "+e+"}>"},m.$$arity=0)})(p[0],a(p,"AbstractBlock"),p)}(r[0],r)},Opal.modules["asciidoctor/callouts"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var o=[],a=t.nil,s=(t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.module),l=t.klass,c=t.hash2,u=t.truthy,d=t.send;return t.add_stubs(["$next_list","$<<","$current_list","$to_i","$generate_next_callout_id","$+","$<=","$size","$[]","$-","$chop","$join","$map","$==","$<","$private","$generate_callout_id"]),function(o,f){var h=s(o,"Asciidoctor"),p=[h].concat(f);(function(o,s,f){var h,p,$,m,g,v,y,_,b,w=l(o,s,"Callouts");[w].concat(f);w.$$prototype.co_index=w.$$prototype.lists=w.$$prototype.list_index=a,t.def(w,"$initialize",h=function(){var t=this;return t.lists=[],t.list_index=0,t.$next_list()},h.$$arity=0),t.def(w,"$register",p=function(t){var n=this,r=a;return n.$current_list()["$<<"](c(["ordinal","id"],{ordinal:t.$to_i(),id:r=n.$generate_next_callout_id()})),n.co_index=e(n.co_index,1),r},p.$$arity=1),t.def(w,"$read_next_id",$=function(){var t=this,i=a,o=a;return i=a,o=t.$current_list(),u(n(t.co_index,o.$size()))&&(i=o["$[]"](r(t.co_index,1))["$[]"]("id")),t.co_index=e(t.co_index,1),i},$.$$arity=0),t.def(w,"$callout_ids",m=function(t){var e,n=this;return d(n.$current_list(),"map",[],(e=function(n){e.$$s;return null==n&&(n=a),n["$[]"]("ordinal")["$=="](t)?n["$[]"]("id")+" ":""},e.$$s=n,e.$$arity=1,e)).$join().$chop()},m.$$arity=1),t.def(w,"$current_list",g=function(){var t=this;return t.lists["$[]"](r(t.list_index,1))},g.$$arity=0),t.def(w,"$next_list",v=function(){var t=this;return t.list_index=e(t.list_index,1),u(i(t.lists.$size(),t.list_index))&&t.lists["$<<"]([]),t.co_index=1,a},v.$$arity=0),t.def(w,"$rewind",y=function(){var t=this;return t.list_index=1,t.co_index=1,a},y.$$arity=0),w.$private(),t.def(w,"$generate_next_callout_id",_=function(){var t=this;return t.$generate_callout_id(t.list_index,t.co_index)},_.$$arity=0),t.def(w,"$generate_callout_id",b=function(t,e){return"CO"+t+"-"+e},b.$$arity=2)})(p[0],null,p)}(o[0],o)},Opal.modules["asciidoctor/converter"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var r=[],i=t.nil,o=t.const_get_qualified,a=t.const_get_relative,s=(t.breaker,t.slice,t.module),l=t.hash2,c=t.truthy,u=t.send,d=t.klass,f=t.gvars;return t.add_stubs(["$autoload","$__dir__","$attr_reader","$raise","$class","$[]","$sub","$slice","$length","$==","$[]=","$backend_traits","$-","$derive_backend_traits","$register","$map","$to_s","$new","$create","$default","$each","$default=","$registry","$for","$===","$supports_templates?","$merge","$private","$include","$delete","$clear","$private_class_method","$send","$extend","$node_name","$+","$receiver","$name","$warn","$logger","$respond_to?","$content"]),function(r,h){var p=s(r,"Asciidoctor"),$=[p].concat(h);(function(r,h){var p,$,m,g,v,y,_=s(r,"Converter"),b=[_].concat(h);_.$autoload("CompositeConverter",_.$__dir__()+"/converter/composite"),_.$autoload("TemplateConverter",_.$__dir__()+"/converter/template"),_.$attr_reader("backend"),t.def(_,"$initialize",p=function(t,e){var n=this;return null==e&&(e=l([],{})),n.backend=t},p.$$arity=-2),t.def(_,"$convert",$=function(t,e,n){var r=this;return null==r.backend&&(r.backend=i),null==e&&(e=i),null==n&&(n=i),r.$raise(o("::","NotImplementedError"),r.$class()+" (backend: "+r.backend+") must implement the #convert method")},$.$$arity=-2),t.def(_,"$handles?",m=function(t){return!0},m.$$arity=1),t.defs(_,"$derive_backend_traits",g=function(t){var e=i,n=i,r=i;return c(t)?(c(e=a(b,"DEFAULT_EXTENSIONS")["$[]"](n=t.$sub(a(b,"TrailingDigitsRx"),"")))?r=e.$slice(1,e.$length()):e="."+(r=n),r["$=="]("html")?l(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:n,filetype:r,htmlsyntax:"html",outfilesuffix:e}):l(["basebackend","filetype","outfilesuffix"],{basebackend:n,filetype:r,outfilesuffix:e})):l([],{})},g.$$arity=1),function(n,r){var o,d,f,h,p,$,m,g,v,y=s(n,"BackendTraits"),_=[y].concat(r);t.def(y,"$basebackend",o=function(n){var r=this,o=i;return null==n&&(n=i),c(n)?(o=["basebackend",n],u(r.$backend_traits(),"[]=",t.to_a(o)),o[e(o["length"],1)]):r.$backend_traits()["$[]"]("basebackend")},o.$$arity=-1),t.def(y,"$filetype",d=function(n){var r=this,o=i;return null==n&&(n=i),c(n)?(o=["filetype",n],u(r.$backend_traits(),"[]=",t.to_a(o)),o[e(o["length"],1)]):r.$backend_traits()["$[]"]("filetype")},d.$$arity=-1),t.def(y,"$htmlsyntax",f=function(n){var r=this,o=i;return null==n&&(n=i),c(n)?(o=["htmlsyntax",n],u(r.$backend_traits(),"[]=",t.to_a(o)),o[e(o["length"],1)]):r.$backend_traits()["$[]"]("htmlsyntax")},f.$$arity=-1),t.def(y,"$outfilesuffix",h=function(n){var r=this,o=i;return null==n&&(n=i),c(n)?(o=["outfilesuffix",n],u(r.$backend_traits(),"[]=",t.to_a(o)),o[e(o["length"],1)]):r.$backend_traits()["$[]"]("outfilesuffix")},h.$$arity=-1),t.def(y,"$supports_templates",p=function(n){var r=this,o=i;return null==n&&(n=!0),o=["supports_templates",n],u(r.$backend_traits(),"[]=",t.to_a(o)),o[e(o["length"],1)]},p.$$arity=-1),t.def(y,"$supports_templates?",$=function(){var t=this;return t.$backend_traits()["$[]"]("supports_templates")},$.$$arity=0),t.def(y,"$init_backend_traits",m=function(t){var e,n=this;return null==t&&(t=i),n.backend_traits=c(e=t)?e:l([],{})},m.$$arity=-1),t.def(y,"$backend_traits",g=function(){var t,e=this;return null==e.backend_traits&&(e.backend_traits=i),null==e.backend&&(e.backend=i),e.backend_traits=c(t=e.backend_traits)?t:a(_,"Converter").$derive_backend_traits(e.backend)},g.$$arity=0),t.alias(y,"backend_info","backend_traits"),t.defs(y,"$derive_backend_traits",v=function(t){return a(_,"Converter").$derive_backend_traits(t)},v.$$arity=1)}(b[0],b),function(e,n){var r,o=s(e,"Config"),l=[o].concat(n);t.def(o,"$register_for",r=function(e){var n,r,o,s=this;return n=t.slice.call(arguments,0,arguments.length),r=n,u(a(l,"Converter"),"register",[s].concat(t.to_a(u(r,"map",[],(o=function(t){o.$$s;return null==t&&(t=i),t.$to_s()},o.$$s=s,o.$$arity=1,o)))))},r.$$arity=-1)}(b[0],b),function(n,r){var d,f,h,p,$,m,g,v,y=s(n,"Factory"),_=[y].concat(r);t.defs(y,"$new",d=function(e,n){var r,o,s,u;if(r=t.slice.call(arguments,0,arguments.length),o=t.extract_kwargs(r),null==o)o=l([],{});else if(!o.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return r.length>0&&(s=r[0],r.splice(0,1)),null==s&&(s=i),u=o.$$smap["proxy_default"],null==u&&(u=!0),c(u)?a(_,"DefaultFactoryProxy").$new(s):a(_,"CustomFactory").$new(s)},d.$$arity=-1),t.defs(y,"$default",f=function(e){var n;return n=t.slice.call(arguments,0,arguments.length),n,a(_,"Converter")},f.$$arity=-1),t.defs(y,"$create",h=function(t,e){var n=this;return null==e&&(e=l([],{})),n.$default().$create(t,e)},h.$$arity=-2),t.def(y,"$register",p=function(n,r){var o,a,s,l=this;return o=t.slice.call(arguments,1,arguments.length),a=o,u(a,"each",[],(s=function(r){var o=s.$$s||this,a=i;return null==r&&(r=i),r["$=="]("*")?(a=[n],u(o.$registry(),"default=",t.to_a(a)),a[e(a["length"],1)]):(a=[r,n],u(o.$registry(),"[]=",t.to_a(a)),a[e(a["length"],1)])},s.$$s=l,s.$$arity=1,s))},p.$$arity=-2),t.def(y,"$for",$=function(t){var e=this;return e.$registry()["$[]"](t)},$.$$arity=1),t.def(y,"$create",m=function(t,e){var n,r,s=this,u=i,d=i,f=i;return null==e&&(e=l([],{})),c(u=s.$for(t))?(c(o("::","Class")["$==="](u))&&(u=u.$new(t,e)),c(c(n=c(r=d=e["$[]"]("template_dirs"))?a(_,"BackendTraits")["$==="](u):r)?u["$supports_templates?"]():n)?a(_,"CompositeConverter").$new(t,a(_,"TemplateConverter").$new(t,d,e),u,l(["backend_traits_source"],{backend_traits_source:u})):u):c(d=e["$[]"]("template_dirs"))?c(c(n=f=e["$[]"]("delegate_backend"))?u=s.$for(f):n)?(c(o("::","Class")["$==="](u))&&(u=u.$new(f,e)),a(_,"CompositeConverter").$new(t,a(_,"TemplateConverter").$new(t,d,e),u,l(["backend_traits_source"],{backend_traits_source:u}))):a(_,"TemplateConverter").$new(t,d,e):i},m.$$arity=-2),t.def(y,"$converters",g=function(){var t=this;return t.$registry().$merge()},g.$$arity=0),y.$private(),t.def(y,"$registry",v=function(){var t=this;return t.$raise(o("::","NotImplementedError"),a(_,"Factory")+" subclass "+t.$class()+" must implement the #registry method")},v.$$arity=0)}(b[0],b),function(n,r,o){var s,f,h=d(n,r,"CustomFactory"),p=[h].concat(o);h.$include(a(p,"Factory")),t.def(h,"$initialize",s=function(n){var r=this,o=i;return null==n&&(n=i),c(n)?(o=[n.$delete("*")],u(n,"default=",t.to_a(o)),o[e(o["length"],1)],r.registry=n):r.registry=l([],{})},s.$$arity=-1),t.def(h,"$unregister_all",f=function(){var n=this,r=i;return r=[i],u(n.$registry().$clear(),"default=",t.to_a(r)),r[e(r["length"],1)]},f.$$arity=0),h.$private(),h.$attr_reader("registry")}(b[0],null,b),function(e,n){var r,o=s(e,"DefaultFactory"),c=[o].concat(n);o.$include(a(c,"Factory")),o.$private(),t.class_variable_set(c[0],"@@registry",l([],{})),t.def(o,"$registry",r=function(){var t;return null==(t=c[0].$$cvars["@@registry"])?i:t},r.$$arity=0),a(c,"RUBY_ENGINE")["$=="]("opal")}(b[0],b),function(t,e,n){var r=d(t,e,"DefaultFactoryProxy"),i=[r].concat(n);r.$include(a(i,"DefaultFactory")),a(i,"RUBY_ENGINE")["$=="]("opal")}(b[0],a(b,"CustomFactory"),b),_.$private_class_method(c((t.defs(_,"$included",y=function(t){return t.$send("include",a(b,"BackendTraits")),t.$extend(a(b,"Config"))},y.$$arity=1),v=i&&"included"))?v:"included"),function(e,r,s){var l,u,h,p,$=d(e,r,"Base"),m=[$].concat(s);$.$$prototype.backend=i,$.$include(a(m,"Converter"),a(m,"Logging")),t.def($,"$convert",l=function(e,r,s){var l,u,d=this,h=i;null==f["!"]&&(f["!"]=i),null==r&&(r=e.$node_name()),null==s&&(s=i);try{return c(s)?d.$send(n("convert_",r),e,s):d.$send(n("convert_",r),e)}catch(p){if(!t.rescue(p,[a(m,"StandardError")]))throw p;try{return c(c(l=c(u=o("::","NoMethodError")["$==="](h=f["!"]))?h.$receiver()["$=="](d):u)?h.$name().$to_s()["$=="](r):l)||d.$raise(),d.$logger().$warn("missing convert handler for "+h.$name()+" node in "+d.backend+" backend ("+d.$class()+")"),i}finally{t.pop_exception()}}},l.$$arity=-2),t.def($,"$handles?",u=function(t){var e=this;return e["$respond_to?"]("convert_"+t)},u.$$arity=1),t.def($,"$content_only",h=function(t){return t.$content()},h.$$arity=1),t.def($,"$skip",p=function(t){return i},p.$$arity=1)}(b[0],null,b),_.$extend(a(b,"DefaultFactory"))})($[0],$)}(r[0],r)},Opal.modules["asciidoctor/document"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var a=[],s=t.nil,l=t.const_get_qualified,c=t.const_get_relative,u=(t.breaker,t.slice,t.module),d=t.klass,f=t.send,h=t.truthy,p=t.hash2,$=t.gvars,m=t.hash;return t.add_stubs(["$new","$attr_reader","$nil?","$<<","$[]","$[]=","$-","$include?","$strip","$squeeze","$gsub","$empty?","$!","$rpartition","$attr_accessor","$delete","$base_dir","$options","$merge","$catalog","$attributes","$safe","$compat_mode","$outfilesuffix","$sourcemap","$path_resolver","$converter","$extensions","$syntax_highlighter","$each","$end_with?","$start_with?","$slice","$length","$chop","$==","$downcase","$extname","$===","$value_for_name","$key?","$freeze","$attribute_undefined","$attribute_missing","$name_for_value","$expand_path","$pwd","$>=","$+","$abs","$to_i","$delete_if","$update_doctype_attributes","$cursor","$parse","$restore_attributes","$update_backend_attributes","$fetch","$fill_datetime_attributes","$activate","$create","$to_proc","$groups","$preprocessors?","$preprocessors","$process_method","$tree_processors?","$tree_processors","$!=","$counter","$nil_or_empty?","$nextval","$to_s","$value","$save_to","$register","$tap","$xreftext","$source","$source_lines","$doctitle","$sectname=","$title=","$first_section","$title","$reftext","$>","$<","$find","$context","$assign_numeral","$clear_playback_attributes","$save_attributes","$name","$negate","$rewind","$replace","$attribute_locked?","$apply_attribute_value_subs","$delete?","$start","$doctype","$content_model","$warn","$logger","$content","$convert","$postprocessors?","$postprocessors","$record","$write","$respond_to?","$chomp","$class","$write_alternate_pages","$map","$split","$resolve_docinfo_subs","$&","$normalize_system_path","$read_asset","$apply_subs","$docinfo_processors?","$join","$concat","$compact","$docinfo_processors","$object_id","$inspect","$size","$private","$=~","$resolve_pass_subs","$apply_header_subs","$limit_bytesize","$bytesize","$valid_encoding?","$byteslice","$resolve_subs","$utc","$at","$Integer","$now","$index","$strftime","$year","$utc_offset","$partition","$create_converter","$basebackend","$filetype","$htmlsyntax","$derive_backend_traits","$raise"]),function(a,g){var v=u(a,"Asciidoctor"),y=[v].concat(g);(function(a,u,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,ht,pt,$t,mt=d(a,u,"Document"),gt=[mt].concat(g);mt.$$prototype.attributes=mt.$$prototype.safe=mt.$$prototype.sourcemap=mt.$$prototype.reader=mt.$$prototype.base_dir=mt.$$prototype.parsed=mt.$$prototype.parent_document=mt.$$prototype.extensions=mt.$$prototype.options=mt.$$prototype.counters=mt.$$prototype.catalog=mt.$$prototype.reftexts=mt.$$prototype.header=mt.$$prototype.blocks=mt.$$prototype.header_attributes=mt.$$prototype.attributes_modified=mt.$$prototype.backend=mt.$$prototype.attribute_overrides=mt.$$prototype.timings=mt.$$prototype.converter=mt.$$prototype.outfilesuffix=mt.$$prototype.docinfo_processor_extensions=mt.$$prototype.document=mt.$$prototype.max_attribute_value_size=mt.$$prototype.id=mt.$$prototype.doctype=s,t.const_set(gt[0],"ImageReference",f(l("::","Struct"),"new",["target","imagesdir"],(v=function(){var e=v.$$s||this;return t.alias(e,"to_s","target")},v.$$s=mt,v.$$arity=0,v))),t.const_set(gt[0],"Footnote",l("::","Struct").$new("index","id","text")),function(n,r,i){var o,a,l=d(n,r,"AttributeEntry");[l].concat(i);l.$attr_reader("name","value","negate"),t.def(l,"$initialize",o=function(t,e,n){var r=this;return null==n&&(n=s),r.name=t,r.value=e,r.negate=function(){return h(n["$nil?"]())?e["$nil?"]():n}()},o.$$arity=-3),t.def(l,"$save_to",a=function(n){var r,i=this,o=s;return(h(r=n["$[]"]("attribute_entries"))?r:(o=["attribute_entries",[]],f(n,"[]=",t.to_a(o)),o[e(o["length"],1)]))["$<<"](i),i},a.$$arity=1)}(gt[0],null,gt),function(e,n,r){var i,o,a,l,u=d(e,n,"Title"),f=[u].concat(r);u.$$prototype.sanitized=u.$$prototype.subtitle=u.$$prototype.combined=s,u.$attr_reader("main"),t.alias(u,"title","main"),u.$attr_reader("subtitle"),u.$attr_reader("combined"),t.def(u,"$initialize",i=function(e,n){var r,i,o=this,a=s;return null==n&&(n=p([],{})),h(h(r=o.sanitized=n["$[]"]("sanitize"))?e["$include?"]("<"):r)&&(e=e.$gsub(c(f,"XmlSanitizeRx"),"").$squeeze(" ").$strip()),h(h(r=(a=h(i=n["$[]"]("separator"))?i:":")["$empty?"]())?r:e["$include?"](a+=" ")["$!"]())?(o.main=e,o.subtitle=s):(i=e.$rpartition(a),r=t.to_ary(i),o.main=null==r[0]?s:r[0],null==r[1]?s:r[1],o.subtitle=null==r[2]?s:r[2]),o.combined=e},i.$$arity=-2),t.def(u,"$sanitized?",o=function(){var t=this;return t.sanitized},o.$$arity=0),t.def(u,"$subtitle?",a=function(){var t=this;return!!h(t.subtitle)},a.$$arity=0),t.def(u,"$to_s",l=function(){var t=this;return t.combined},l.$$arity=0)}(gt[0],null,gt),t.const_set(gt[0],"Author",l("::","Struct").$new("name","firstname","middlename","lastname","initials","email")),mt.$attr_reader("safe"),mt.$attr_reader("compat_mode"),mt.$attr_reader("backend"),mt.$attr_reader("doctype"),mt.$attr_accessor("sourcemap"),mt.$attr_reader("catalog"),t.alias(mt,"references","catalog"),mt.$attr_reader("counters"),mt.$attr_reader("header"),mt.$attr_reader("base_dir"),mt.$attr_reader("options"),mt.$attr_reader("outfilesuffix"),mt.$attr_reader("parent_document"),mt.$attr_reader("reader"),mt.$attr_reader("path_resolver"),mt.$attr_reader("converter"),mt.$attr_reader("syntax_highlighter"),mt.$attr_reader("extensions"),t.def(mt,"$initialize",y=function(i,o){var a,u,d,$,m,g,v,_,b=y.$$p,w=this,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s,R=s,j=s,M=s,F=s,N=s;return b&&(y.$$p=null),null==i&&(i=s),null==o&&(o=p([],{})),f(w,t.find_super_dispatcher(w,"initialize",y,!1),[w,"document"],null),h(x=o.$delete("parent"))?(w.parent_document=x,h(a=o["$[]"]("base_dir"))||(k=["base_dir",x.$base_dir()],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(x.$options()["$[]"]("catalog_assets"))&&(k=["catalog_assets",!0],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.catalog=x.$catalog().$merge(p(["footnotes"],{footnotes:[]})),w.attribute_overrides=S=x.$attributes().$merge(),O=S.$delete("doctype"),S.$delete("compat-mode"),S.$delete("toc"),S.$delete("toc-placement"),S.$delete("toc-position"),w.safe=x.$safe(),h(w.compat_mode=x.$compat_mode())&&(k=["compat-mode",""],f(w.attributes,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.outfilesuffix=x.$outfilesuffix(),w.sourcemap=x.$sourcemap(),w.timings=s,w.path_resolver=x.$path_resolver(),w.converter=x.$converter(),C=s,w.extensions=x.$extensions(),w.syntax_highlighter=x.$syntax_highlighter()):(w.parent_document=s,w.catalog=p(["ids","refs","footnotes","links","images","callouts","includes"],{ids:p([],{}),refs:p([],{}),footnotes:[],links:[],images:[],callouts:c(gt,"Callouts").$new(),includes:p([],{})}),w.attribute_overrides=S=p([],{}),f(h(a=o["$[]"]("attributes"))?a:p([],{}),"each",[],(u=function(n,r){var i;u.$$s;return null==n&&(n=s),null==r&&(r=s),h(n["$end_with?"]("@"))?h(n["$start_with?"]("!"))?(i=[n.$slice(1,e(n.$length(),2)),!1],n=i[0],r=i[1]):h(n["$end_with?"]("!@"))?(i=[n.$slice(0,e(n.$length(),2)),!1],n=i[0],r=i[1]):(i=[n.$chop(),r+"@"],n=i[0],r=i[1]):h(n["$start_with?"]("!"))?(i=[n.$slice(1,n.$length()),function(){return!r["$=="]("@")&&s}()],n=i[0],r=i[1]):h(n["$end_with?"]("!"))&&(i=[n.$chop(),function(){return!r["$=="]("@")&&s}()],n=i[0],r=i[1]),k=[n.$downcase(),r],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]},u.$$s=w,u.$$arity=2,u)),h(A=o["$[]"]("to_file"))&&(k=["outfilesuffix",c(gt,"Helpers").$extname(A)],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h((E=o["$[]"]("safe"))["$!"]())?w.safe=l(c(gt,"SafeMode"),"SECURE"):h(l("::","Integer")["$==="](E))?w.safe=E:w.safe=function(){try{return c(gt,"SafeMode").$value_for_name(E)}catch(e){if(!t.rescue(e,[c(gt,"StandardError")]))throw e;try{return l(c(gt,"SafeMode"),"SECURE")}finally{t.pop_exception()}}}(),T=o.$delete("input_mtime"),w.compat_mode=S["$key?"]("compat-mode"),w.sourcemap=o["$[]"]("sourcemap"),w.timings=o.$delete("timings"),w.path_resolver=c(gt,"PathResolver").$new(),C=function(){return!!h((d=l("::","Asciidoctor","skip_raise"))&&(a=l(d,"Extensions","skip_raise"))?"constant":s)||s}(),w.extensions=s,h(h($=o["$key?"]("header_footer"))?o["$key?"]("standalone")["$!"]():$)&&(k=["standalone",o["$[]"]("header_footer")],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)])),w.parsed=w.reftexts=w.header=w.header_attributes=s,w.counters=p([],{}),w.attributes_modified=l("::","Set").$new(),w.docinfo_processor_extensions=p([],{}),P=o["$[]"]("standalone"),(w.options=o).$freeze(),B=w.attributes,k=["sectids",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["toc-placement","auto"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],h(P)?(k=["copycss",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["embedded",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]):(k=["notitle",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["embedded",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),k=["stylesheet",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["webfonts",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["prewrap",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["attribute-undefined",c(gt,"Compliance").$attribute_undefined()],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["attribute-missing",c(gt,"Compliance").$attribute_missing()],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["iconfont-remote",""],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["caution-caption","Caution"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["important-caption","Important"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["note-caption","Note"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["tip-caption","Tip"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["warning-caption","Warning"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["example-caption","Example"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["figure-caption","Figure"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["table-caption","Table"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["toc-title","Table of Contents"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["section-refsig","Section"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["part-refsig","Part"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["chapter-refsig","Chapter"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["appendix-caption",(k=["appendix-refsig","Appendix"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)])],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["untitled-label","Untitled"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["version-label","Version"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["last-update-label","Last updated"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["asciidoctor",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["asciidoctor-version",l(l("::","Asciidoctor"),"VERSION")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["safe-mode-name",L=c(gt,"SafeMode").$name_for_value(w.safe)],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["safe-mode-"+L,""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["safe-mode-level",w.safe],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],h($=S["$[]"]("max-include-depth"))||(k=["max-include-depth",64],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("allow-uri-read"))||(k=["allow-uri-read",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),k=["user-home",c(gt,"USER_HOME")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],h(S["$key?"]("numbered"))&&(k=["sectnums",S.$delete("numbered")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(S["$key?"]("hardbreaks"))&&(k=["hardbreaks-option",S.$delete("hardbreaks")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(I=o["$[]"]("base_dir"))?w.base_dir=(k=["docdir",l("::","File").$expand_path(I)],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]):h(S["$[]"]("docdir"))?w.base_dir=S["$[]"]("docdir"):w.base_dir=(k=["docdir",l("::","Dir").$pwd()],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(D=o["$[]"]("backend"))&&(k=["backend",""+D],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(R=o["$[]"]("doctype"))&&(k=["doctype",""+R],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(n(w.safe,l(c(gt,"SafeMode"),"SERVER")))&&(h($=S["$[]"]("copycss"))||(k=["copycss",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("source-highlighter"))||(k=["source-highlighter",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("backend"))||(k=["backend",c(gt,"DEFAULT_BACKEND")],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(h($=x["$!"]())?S["$key?"]("docfile"):$)&&(k=["docfile",S["$[]"]("docfile")["$[]"](t.Range.$new(r(S["$[]"]("docdir").$length(),1),-1,!1))],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),k=["docdir",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],k=["user-home","."],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)],h(n(w.safe,l(c(gt,"SafeMode"),"SECURE")))&&(h(S["$key?"]("max-attribute-value-size"))||(k=["max-attribute-value-size",4096],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h(S["$key?"]("linkcss"))||(k=["linkcss",""],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=S["$[]"]("icons"))||(k=["icons",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]))),w.max_attribute_value_size=function(){return h(j=h($=S["$[]"]("max-attribute-value-size"))?$:(k=["max-attribute-value-size",s],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)]))?j.$to_i().$abs():s}(),f(S,"delete_if",[],(m=function(n,r){m.$$s;var i,o=s;return null==n&&(n=s),null==r&&(r=s),h(r)?(h(h(i=l("::","String")["$==="](r))?r["$end_with?"]("@"):i)&&(i=[r.$chop(),!0],r=i[0],o=i[1]),k=[n,r],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]):(B.$delete(n),o=r["$=="](!1)),o},m.$$s=w,m.$$arity=2,m)),h(x)?(w.backend=B["$[]"]("backend"),(w.doctype=(k=["doctype",O],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]))["$=="](c(gt,"DEFAULT_DOCTYPE"))||w.$update_doctype_attributes(c(gt,"DEFAULT_DOCTYPE")),w.reader=c(gt,"Reader").$new(i,o["$[]"]("cursor")),h(w.sourcemap)&&(w.source_location=w.reader.$cursor()),c(gt,"Parser").$parse(w.reader,w),w.$restore_attributes(),w.parsed=!0):(w.backend=s,(M=h($=B["$[]"]("backend"))?$:c(gt,"DEFAULT_BACKEND"))["$=="]("manpage")?w.doctype=(k=["doctype",(k=["doctype","manpage"],f(S,"[]=",t.to_a(k)),k[e(k["length"],1)])],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]):w.doctype=h($=B["$[]"]("doctype"))?$:(k=["doctype",c(gt,"DEFAULT_DOCTYPE")],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.$update_backend_attributes(M,!0),h($=B["$[]"]("stylesdir"))||(k=["stylesdir","."],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]),h($=B["$[]"]("iconsdir"))||(k=["iconsdir",B.$fetch("imagesdir","./images")+"/icons"],f(B,"[]=",t.to_a(k)),k[e(k["length"],1)]),w.$fill_datetime_attributes(B,T),h(C)&&(h(F=o["$[]"]("extension_registry"))?h(h($=l(c(gt,"Extensions"),"Registry")["$==="](F))?$:h(g=(_=l("::","AsciidoctorJ","skip_raise"))&&(v=l(_,"Extensions","skip_raise"))&&l(v,"ExtensionRegistry","skip_raise")?"constant":s)?l(l(l("::","AsciidoctorJ"),"Extensions"),"ExtensionRegistry")["$==="](F):g)&&(w.extensions=F.$activate(w)):h(l("::","Proc")["$==="](N=o["$[]"]("extensions")))?w.extensions=f(c(gt,"Extensions"),"create",[],N.$to_proc()).$activate(w):h(c(gt,"Extensions").$groups()["$empty?"]()["$!"]())&&(w.extensions=l(c(gt,"Extensions"),"Registry").$new().$activate(w))),w.reader=c(gt,"PreprocessorReader").$new(w,i,l(c(gt,"Reader"),"Cursor").$new(B["$[]"]("docfile"),w.base_dir),p(["normalize"],{normalize:!0})),h(w.sourcemap)?w.source_location=w.reader.$cursor():s)},y.$$arity=-1),t.def(mt,"$parse",_=function(t){var e,n,r,i=this,o=s,a=s;return null==t&&(t=s),h(i.parsed)?i:(o=i,h(t)&&(i.reader=c(gt,"PreprocessorReader").$new(o,t,l(c(gt,"Reader"),"Cursor").$new(i.attributes["$[]"]("docfile"),i.base_dir),p(["normalize"],{normalize:!0})),h(i.sourcemap)&&(i.source_location=i.reader.$cursor())),h(h(e=a=function(){return h(i.parent_document)?s:i.extensions}())?a["$preprocessors?"]():e)&&f(a.$preprocessors(),"each",[],(n=function(t){var e,r=n.$$s||this;return null==r.reader&&(r.reader=s),null==t&&(t=s),r.reader=h(e=t.$process_method()["$[]"](o,r.reader))?e:r.reader},n.$$s=i,n.$$arity=1,n)),c(gt,"Parser").$parse(i.reader,o,p(["header_only"],{header_only:i.options["$[]"]("parse_header_only")})),i.$restore_attributes(),h(h(e=a)?a["$tree_processors?"]():e)&&f(a.$tree_processors(),"each",[],(r=function(t){r.$$s;var e,n,i=s;return null==t&&(t=s),h(h(e=h(n=i=t.$process_method()["$[]"](o))?c(gt,"Document")["$==="](i):n)?i["$!="](o):e)?o=i:s},r.$$s=i,r.$$arity=1,r)),i.parsed=!0,o)},_.$$arity=-1),t.def(mt,"$parsed?",b=function(){var t=this;return t.parsed},b.$$arity=0),t.def(mt,"$counter",w=function(n,r){var i,o=this,a=s,l=s,u=s;return null==r&&(r=s),h(o.parent_document)?o.parent_document.$counter(n,r):h(h(i=a=(l=o.attributes["$[]"](n))["$nil_or_empty?"]()["$!"]())?o.counters["$key?"](n):i)?(u=[n,(u=[n,c(gt,"Helpers").$nextval(l)],f(o.counters,"[]=",t.to_a(u)),u[e(u["length"],1)])],f(o.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)]):h(r)?(u=[n,(u=[n,function(){return r["$=="](r.$to_i().$to_s())?r.$to_i():r}()],f(o.counters,"[]=",t.to_a(u)),u[e(u["length"],1)])],f(o.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)]):(u=[n,(u=[n,c(gt,"Helpers").$nextval(function(){return h(a)?l:0}())],f(o.counters,"[]=",t.to_a(u)),u[e(u["length"],1)])],f(o.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)])},w.$$arity=-2),t.def(mt,"$increment_and_store_counter",x=function(t,e){var n=this;return c(gt,"AttributeEntry").$new(t,n.$counter(t)).$save_to(e.$attributes()).$value()},x.$$arity=2),t.alias(mt,"counter_increment","increment_and_store_counter"),t.def(mt,"$register",k=function(n,r){var i=this,o=s,a=s,l=s,u=s,d=s;return function(){return o=n,"ids"["$==="](o)?i.$register("refs",[a=r["$[]"](0),c(gt,"Inline").$new(i,"anchor",r["$[]"](1),p(["type","id"],{type:"ref",id:a}))]):"refs"["$==="](o)?(l=i.catalog["$[]"]("refs"),h(l["$[]"](r["$[]"](0)))||(u=[r["$[]"](0),d=r["$[]"](1)],f(l,"[]=",t.to_a(u)),u[e(u["length"],1)]),d):"footnotes"["$==="](o)?i.catalog["$[]"](n)["$<<"](r):h(i.options["$[]"]("catalog_assets"))?i.catalog["$[]"](n)["$<<"](function(){return n["$=="]("images")?c(gt,"ImageReference").$new(r,i.attributes["$[]"]("imagesdir")):r}()):s}()},k.$$arity=2),t.def(mt,"$resolve_id",S=function(n){var r,i,o=this,a=s;return h(o.reftexts)?o.reftexts["$[]"](n):h(o.parsed)?f(o.reftexts=p([],{}),"tap",[],(r=function(n){var i,o=r.$$s||this;return null==o.catalog&&(o.catalog=s),null==n&&(n=s),f(o.catalog["$[]"]("refs"),"each",[],(i=function(r,o){i.$$s;var a,l=s;return null==r&&(r=s),null==o&&(o=s),h(a=n["$[]"](o.$xreftext()))?a:(l=[o.$xreftext(),r],f(n,"[]=",t.to_a(l)),l[e(l["length"],1)])},i.$$s=o,i.$$arity=2,i))},r.$$s=o,r.$$arity=1,r))["$[]"](n):(a=s,function(){var r=t.new_brk();try{f(o.reftexts=p([],{}),"tap",[],(i=function(r){var o,l=i.$$s||this;return null==l.catalog&&(l.catalog=s),null==r&&(r=s),function(){var i=t.new_brk();try{return f(l.catalog["$[]"]("refs"),"each",[],(o=function(l,c){o.$$s;var u,d=s,p=s;if(null==l&&(l=s),null==c&&(c=s),!(d=c.$xreftext())["$=="](n))return h(u=r["$[]"](d))?u:(p=[d,l],f(r,"[]=",t.to_a(p)),p[e(p["length"],1)]);t.brk(a=l,i)},o.$$s=l,o.$$brk=i,o.$$arity=2,o))}catch(c){if(c===i)return c.$v;throw c}}()},i.$$s=o,i.$$brk=r,i.$$arity=1,i))}catch(l){if(l===r)return l.$v;throw l}}(),o.reftexts=s,a)},S.$$arity=1),t.def(mt,"$footnotes?",O=function(){var t=this;return!h(t.catalog["$[]"]("footnotes")["$empty?"]())},O.$$arity=0),t.def(mt,"$footnotes",C=function(){var t=this;return t.catalog["$[]"]("footnotes")},C.$$arity=0),t.def(mt,"$callouts",A=function(){var t=this;return t.catalog["$[]"]("callouts")},A.$$arity=0),t.def(mt,"$nested?",E=function(){var t=this;return!!h(t.parent_document)},E.$$arity=0),t.def(mt,"$embedded?",T=function(){var t=this;return t.attributes["$key?"]("embedded")},T.$$arity=0),t.def(mt,"$extensions?",P=function(){var t=this;return!!h(t.extensions)},P.$$arity=0),t.def(mt,"$source",B=function(){var t=this;return h(t.reader)?t.reader.$source():s},B.$$arity=0),t.def(mt,"$source_lines",L=function(){var t=this;return h(t.reader)?t.reader.$source_lines():s},L.$$arity=0),t.def(mt,"$basebackend?",I=function(t){var e=this;return e.attributes["$[]"]("basebackend")["$=="](t)},I.$$arity=1),t.def(mt,"$title",D=function(){var t=this;return t.$doctitle()},D.$$arity=0),t.def(mt,"$title=",R=function(n){var r=this,i=s,o=s;return h(i=r.header)||(o=["header"],f(i=r.header=c(gt,"Section").$new(r,0),"sectname=",t.to_a(o)),o[e(o["length"],1)]),o=[n],f(i,"title=",t.to_a(o)),o[e(o["length"],1)]},R.$$arity=1),t.def(mt,"$doctitle",j=function(t){var e,n=this,r=s,i=s,o=s;if(null==t&&(t=p([],{})),h(r=n.attributes["$[]"]("title")));else if(h(i=n.$first_section()))r=i.$title();else if(h((h(e=t["$[]"]("use_fallback"))?r=n.attributes["$[]"]("untitled-label"):e)["$!"]()))return s;return h(o=t["$[]"]("partition"))?c(gt,"Title").$new(r,t.$merge(p(["separator"],{separator:function(){return o["$=="](!0)?n.attributes["$[]"]("title-separator"):o}()}))):h(h(e=t["$[]"]("sanitize"))?r["$include?"]("<"):e)?r.$gsub(c(gt,"XmlSanitizeRx"),"").$squeeze(" ").$strip():r},j.$$arity=-1),t.alias(mt,"name","doctitle"),t.def(mt,"$xreftext",M=function(t){var e,n=this,r=s;return null==t&&(t=s),h(h(e=r=n.$reftext())?r["$empty?"]()["$!"]():e)?r:n.$title()},M.$$arity=-1),t.def(mt,"$author",F=function(){var t=this;return t.attributes["$[]"]("author")},F.$$arity=0),t.def(mt,"$authors",N=function(){var t,e=this,n=s,a=s,l=s,u=s;if(h((n=e.attributes)["$key?"]("author"))){if(a=[c(gt,"Author").$new(n["$[]"]("author"),n["$[]"]("firstname"),n["$[]"]("middlename"),n["$[]"]("lastname"),n["$[]"]("authorinitials"),n["$[]"]("email"))],h(i(l=h(t=n["$[]"]("authorcount"))?t:0,1))){u=1;while(h(o(u,l)))u=r(u,1),a["$<<"](c(gt,"Author").$new(n["$[]"]("author_"+u),n["$[]"]("firstname_"+u),n["$[]"]("middlename_"+u),n["$[]"]("lastname_"+u),n["$[]"]("authorinitials_"+u),n["$[]"]("email_"+u)))}return a}return[]},N.$$arity=0),t.def(mt,"$revdate",z=function(){var t=this;return t.attributes["$[]"]("revdate")},z.$$arity=0),t.def(mt,"$notitle",H=function(){var t,e=this;return h(t=e.attributes["$key?"]("showtitle")["$!"]())?e.attributes["$key?"]("notitle"):t},H.$$arity=0),t.def(mt,"$noheader",V=function(){var t=this;return t.attributes["$key?"]("noheader")},V.$$arity=0),t.def(mt,"$nofooter",U=function(){var t=this;return t.attributes["$key?"]("nofooter")},U.$$arity=0),t.def(mt,"$first_section",q=function(){var t,e,n=this;return h(t=n.header)?t:f(n.blocks,"find",[],(e=function(t){e.$$s;return null==t&&(t=s),t.$context()["$=="]("section")},e.$$s=n,e.$$arity=1,e))},q.$$arity=0),t.def(mt,"$header?",W=function(){var t=this;return!!h(t.header)},W.$$arity=0),t.alias(mt,"has_header?","header?"),t.def(mt,"$<<",G=function(e){var n=G.$$p,r=this,i=s,o=s,a=s;for(n&&(G.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return e.$context()["$=="]("section")&&r.$assign_numeral(e),f(r,t.find_super_dispatcher(r,"<<",G,!1),i,n)},G.$$arity=1),t.def(mt,"$finalize_header",Y=function(n,r){var i=this,o=s;return null==r&&(r=!0),i.$clear_playback_attributes(n),i.$save_attributes(),h(r)||(o=["invalid-header",!0],f(n,"[]=",t.to_a(o)),o[e(o["length"],1)]),n},Y.$$arity=-2),t.def(mt,"$playback_attributes",K=function(n){var r,i=this;return h(n["$key?"]("attribute_entries"))?f(n["$[]"]("attribute_entries"),"each",[],(r=function(n){var i=r.$$s||this,o=s,a=s;return null==i.attributes&&(i.attributes=s),null==n&&(n=s),o=n.$name(),h(n.$negate())?(i.attributes.$delete(o),o["$=="]("compat-mode")?i.compat_mode=!1:s):(a=[o,n.$value()],f(i.attributes,"[]=",t.to_a(a)),a[e(a["length"],1)],o["$=="]("compat-mode")?i.compat_mode=!0:s)},r.$$s=i,r.$$arity=1,r)):s},K.$$arity=1),t.def(mt,"$restore_attributes",X=function(){var t=this;return h(t.parent_document)||t.catalog["$[]"]("callouts").$rewind(),t.attributes.$replace(t.header_attributes)},X.$$arity=0),t.def(mt,"$set_attribute",Z=function(n,r){var i,o=this,a=s,l=s;return null==r&&(r=""),h(o["$attribute_locked?"](n))?s:(h(r["$empty?"]())||(r=o.$apply_attribute_value_subs(r)),h(o.header_attributes)?(a=[n,r],f(o.attributes,"[]=",t.to_a(a)),a[e(a["length"],1)]):(l=n,"backend"["$==="](l)?o.$update_backend_attributes(r,h(i=o.attributes_modified["$delete?"]("htmlsyntax"))?r["$=="](o.backend):i):"doctype"["$==="](l)?o.$update_doctype_attributes(r):(a=[n,r],f(o.attributes,"[]=",t.to_a(a)),a[e(a["length"],1)]),o.attributes_modified["$<<"](n)),r)},Z.$$arity=-2),t.def(mt,"$delete_attribute",J=function(t){var e=this;return!h(e["$attribute_locked?"](t))&&(e.attributes.$delete(t),e.attributes_modified["$<<"](t),!0)},J.$$arity=1),t.def(mt,"$attribute_locked?",Q=function(t){var e=this;return e.attribute_overrides["$key?"](t)},Q.$$arity=1),t.def(mt,"$set_header_attribute",tt=function(n,r,i){var o,a=this,l=s,c=s;return null==r&&(r=""),null==i&&(i=!0),l=h(o=a.header_attributes)?o:a.attributes,!h((o=i["$=="](!1))?l["$key?"](n):i["$=="](!1))&&(c=[n,r],f(l,"[]=",t.to_a(c)),c[e(c["length"],1)],!0)},tt.$$arity=-2),t.def(mt,"$convert",et=function(r){var i,o,a=this,u=s,d=s,$=s,m=s,g=s;return null==r&&(r=p([],{})),h(a.timings)&&a.timings.$start("convert"),h(a.parsed)||a.$parse(),h(h(i=n(a.safe,l(c(gt,"SafeMode"),"SERVER")))?i:r["$empty?"]())||(h((u=["outfile",r["$[]"]("outfile")],f(a.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)]))||a.attributes.$delete("outfile"),h((u=["outdir",r["$[]"]("outdir")],f(a.attributes,"[]=",t.to_a(u)),u[e(u["length"],1)]))||a.attributes.$delete("outdir")),a.$doctype()["$=="]("inline")?h(d=h(i=a.blocks["$[]"](0))?i:a.header)&&(h(h(i=d.$content_model()["$=="]("compound"))?i:d.$content_model()["$=="]("empty"))?a.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):$=d.$content()):(m=h(r["$key?"]("standalone"))?function(){return h(r["$[]"]("standalone"))?"document":"embedded"}():h(r["$key?"]("header_footer"))?function(){return h(r["$[]"]("header_footer"))?"document":"embedded"}():function(){return h(a.options["$[]"]("standalone"))?"document":"embedded"}(),$=a.converter.$convert(a,m)),h(a.parent_document)||h(h(i=g=a.extensions)?g["$postprocessors?"]():i)&&f(g.$postprocessors(),"each",[],(o=function(t){var e=o.$$s||this;return null==t&&(t=s),$=t.$process_method()["$[]"](e,$)},o.$$s=a,o.$$arity=1,o)),h(a.timings)&&a.timings.$record("convert"),$},et.$$arity=-1),t.alias(mt,"render","convert"),t.def(mt,"$write",nt=function(t,e){var n,r=this;return h(r.timings)&&r.timings.$start("write"),h(c(gt,"Writer")["$==="](r.converter))?r.converter.$write(t,e):(h(e["$respond_to?"]("write"))?h(t["$nil_or_empty?"]())||(e.$write(t.$chomp()),e.$write(c(gt,"LF"))):l("::","File").$write(e,t,p(["mode"],{mode:c(gt,"FILE_WRITE_MODE")})),h(h(n=r.backend["$=="]("manpage")?l("::","String")["$==="](e):r.backend["$=="]("manpage"))?r.converter.$class()["$respond_to?"]("write_alternate_pages"):n)&&r.converter.$class().$write_alternate_pages(r.attributes["$[]"]("mannames"),r.attributes["$[]"]("manvolnum"),e)),h(r.timings)&&r.timings.$record("write"),s},nt.$$arity=2),t.def(mt,"$content",rt=function(){var e=rt.$$p,n=this,r=s,i=s,o=s;for(e&&(rt.$$p=null),i=0,o=arguments.length,r=new Array(o);i<o;i++)r[i]=arguments[i];return n.attributes.$delete("title"),f(n,t.find_super_dispatcher(n,"content",rt,!1),r,e)},rt.$$arity=0),t.def(mt,"$docinfo",it=function(t,e){var n,r,i,a=this,u=s,d=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s;return null==t&&(t="head"),null==e&&(e=s),h(o(a.$safe(),l(c(gt,"SafeMode"),"SECURE")))&&(t["$=="]("head")||(u="-"+t),h(e)||(e=a.outfilesuffix),d=h((d=a.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?h(a.attributes["$key?"]("docinfo2"))?["private","shared"]:h(a.attributes["$key?"]("docinfo1"))?["shared"]:function(){return h(d)?["private"]:s}():f(d.$split(","),"map",[],(n=function(t){n.$$s;return null==t&&(t=s),t.$strip()},n.$$s=a,n.$$arity=1,n)),h(d)&&($=[],r=["docinfo"+u+e,a.attributes["$[]"]("docinfodir"),a.$resolve_docinfo_subs()],m=r[0],g=r[1],v=r[2],h(d["$&"](["shared","shared-"+t])["$empty?"]())||(y=a.$normalize_system_path(m,g),h(_=a.$read_asset(y,p(["normalize"],{normalize:!0})))&&$["$<<"](a.$apply_subs(_,v))),h(h(r=a.attributes["$[]"]("docname")["$nil_or_empty?"]())?r:d["$&"](["private","private-"+t])["$empty?"]())||(y=a.$normalize_system_path(a.attributes["$[]"]("docname")+"-"+m,g),h(b=a.$read_asset(y,p(["normalize"],{normalize:!0})))&&$["$<<"](a.$apply_subs(b,v))))),h(h(r=a.extensions)?a["$docinfo_processors?"](t):r)?(h(r=$)?r:[]).$concat(f(a.docinfo_processor_extensions["$[]"](t),"map",[],(i=function(t){var e=i.$$s||this;return null==t&&(t=s),t.$process_method()["$[]"](e)},i.$$s=a,i.$$arity=1,i)).$compact()).$join(c(gt,"LF")):h($)?$.$join(c(gt,"LF")):""},it.$$arity=-1),t.def(mt,"$docinfo_processors?",ot=function(n){var r,i=this,o=s;return null==n&&(n="head"),h(i.docinfo_processor_extensions["$key?"](n))?i.docinfo_processor_extensions["$[]"](n)["$!="](!1):h(h(r=i.extensions)?i.document.$extensions()["$docinfo_processors?"](n):r)?(o=[n,i.document.$extensions().$docinfo_processors(n)],f(i.docinfo_processor_extensions,"[]=",t.to_a(o)),o[e(o["length"],1)])["$!"]()["$!"]():(o=[n,!1],f(i.docinfo_processor_extensions,"[]=",t.to_a(o)),o[e(o["length"],1)])},ot.$$arity=-1),t.def(mt,"$to_s",at=function(){var t=this;return"#<"+t.$class()+"@"+t.$object_id()+" {doctype: "+t.$doctype().$inspect()+", doctitle: "+function(){return h(t.header["$!="](s))?t.header.$title():s}().$inspect()+", blocks: "+t.blocks.$size()+"}>"},at.$$arity=0),mt.$private(),t.def(mt,"$apply_attribute_value_subs",st=function(t){var e,n=this;return h(c(gt,"AttributeEntryPassMacroRx")["$=~"](t))?(t=(e=$["~"])===s?s:e["$[]"](2),h((e=$["~"])===s?s:e["$[]"](1))&&(t=n.$apply_subs(t,n.$resolve_pass_subs((e=$["~"])===s?s:e["$[]"](1))))):t=n.$apply_header_subs(t),h(n.max_attribute_value_size)?n.$limit_bytesize(t,n.max_attribute_value_size):t},st.$$arity=1),t.def(mt,"$limit_bytesize",lt=function(t,n){if(h(i(t.$bytesize(),n)))while(!h((t=t.$byteslice(0,n))["$valid_encoding?"]()))n=e(n,1);return t},lt.$$arity=2),t.def(mt,"$resolve_docinfo_subs",ct=function(){var t=this;return h(t.attributes["$key?"]("docinfosubs"))?t.$resolve_subs(t.attributes["$[]"]("docinfosubs"),"block",s,"docinfo"):["attributes"]},ct.$$arity=0),t.def(mt,"$create_converter",ut=function(n,r){var i,o=this,a=s,u=s,d=s,$=s,g=s;return a=p(["document","htmlsyntax"],{document:o,htmlsyntax:o.attributes["$[]"]("htmlsyntax")}),h(u=h(i=(d=o.options)["$[]"]("template_dirs"))?i:d["$[]"]("template_dir"))&&($=["template_dirs",[].concat(t.to_a(u))],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["template_cache",d.$fetch("template_cache",!0)],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["template_engine",d["$[]"]("template_engine")],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["template_engine_options",d["$[]"]("template_engine_options")],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["eruby",d["$[]"]("eruby")],f(a,"[]=",t.to_a($)),$[e($["length"],1)],$=["safe",o.safe],f(a,"[]=",t.to_a($)),$[e($["length"],1)],h(r)&&($=["delegate_backend",r],f(a,"[]=",t.to_a($)),$[e($["length"],1)])),h(g=d["$[]"]("converter"))?l(c(gt,"Converter"),"CustomFactory").$new(m(n,g)).$create(n,a):d.$fetch("converter_factory",c(gt,"Converter")).$create(n,a)},ut.$$arity=2),t.def(mt,"$clear_playback_attributes",dt=function(t){return t.$delete("attribute_entries")},dt.$$arity=1),t.def(mt,"$save_attributes",ft=function(){var n,r,i=this,o=s,a=s,u=s,d=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return h(h(n=(o=i.attributes)["$key?"]("doctitle"))?n:(a=i.$doctitle())["$!"]())||(u=["doctitle",a],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),i.id=h(n=i.id)?n:o["$[]"]("css-signature"),h(d=function(){return h(o.$delete("toc2"))?"left":o["$[]"]("toc")}())&&($=function(){return h(h(n=m=o.$fetch("toc-placement","macro"))?m["$!="]("auto"):n)?m:o["$[]"]("toc-position")}(),h(h(n=d["$empty?"]())?$["$nil_or_empty?"]():n)||(g="left",v="toc2",y=function(){return h($["$nil_or_empty?"]())?h(d["$empty?"]())?g:d:$}(),u=["toc",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],u=["toc-placement","auto"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],_=y,"left"["$==="](_)||"<"["$==="](_)||"&lt;"["$==="](_)?(u=["toc-position","left"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"right"["$==="](_)||">"["$==="](_)||"&gt;"["$==="](_)?(u=["toc-position","right"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"top"["$==="](_)||"^"["$==="](_)?(u=["toc-position","top"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"bottom"["$==="](_)||"v"["$==="](_)?(u=["toc-position","bottom"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]):"preamble"["$==="](_)||"macro"["$==="](_)?(u=["toc-position","content"],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],u=["toc-placement",y],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],v=s):(o.$delete("toc-position"),v=s),h(v)&&(h(n=o["$[]"]("toc-class"))||(u=["toc-class",v],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])))),h(h(n=b=o["$[]"]("icons"))?o["$key?"]("icontype")["$!"]():n)&&(_=b,""["$==="](_)||"font"["$==="](_)||(u=["icons",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],b["$=="]("image")||(u=["icontype",b],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]))),h(i.compat_mode=o["$key?"]("compat-mode"))&&h(o["$key?"]("language"))&&(u=["source-language",o["$[]"]("language")],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(i.parent_document)||((w=o["$[]"]("basebackend"))["$=="]("html")?h(h(n=x=o["$[]"]("source-highlighter"))?o["$[]"](x+"-unavailable")["$!"]():n)&&(h(k=i.options["$[]"]("syntax_highlighter_factory"))?i.syntax_highlighter=k.$create(x,i.backend,p(["document"],{document:i})):h(S=i.options["$[]"]("syntax_highlighters"))?i.syntax_highlighter=l(c(gt,"SyntaxHighlighter"),"DefaultFactoryProxy").$new(S).$create(x,i.backend,p(["document"],{document:i})):i.syntax_highlighter=c(gt,"SyntaxHighlighter").$create(x,i.backend,p(["document"],{document:i}))):w["$=="]("docbook")&&(h(h(n=i["$attribute_locked?"]("toc"))?n:i.attributes_modified["$include?"]("toc"))||(u=["toc",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(h(n=i["$attribute_locked?"]("sectnums"))?n:i.attributes_modified["$include?"]("sectnums"))||(u=["sectnums",""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])),i.outfilesuffix=o["$[]"]("outfilesuffix"),f(c(gt,"FLEXIBLE_ATTRIBUTES"),"each",[],(r=function(t){var e,n=r.$$s||this;return null==n.attribute_overrides&&(n.attribute_overrides=s),null==t&&(t=s),h(h(e=n.attribute_overrides["$key?"](t))?n.attribute_overrides["$[]"](t):e)?n.attribute_overrides.$delete(t):s},r.$$s=i,r.$$arity=1,r))),i.header_attributes=o.$merge()},ft.$$arity=0),t.def(mt,"$fill_datetime_attributes",ht=function(n,r){var i,o,a=this,c=s,u=s,d=s,p=s,$=s,m=s,g=s;return c=function(){return h(l("::","ENV")["$key?"]("SOURCE_DATE_EPOCH"))?u=l("::","Time").$at(a.$Integer(l("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():l("::","Time").$now()}(),h(d=n["$[]"]("localdate"))?h(i=n["$[]"]("localyear"))||(p=["localyear",function(){return d.$index("-")["$=="](4)?d.$slice(0,4):s}()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=["localdate",c.$strftime("%F")],f(n,"[]=",t.to_a(p)),d=p[e(p["length"],1)],h(i=n["$[]"]("localyear"))||(p=["localyear",c.$year().$to_s()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)])),$=h(i=n["$[]"]("localtime"))?i:(p=["localtime",c.$strftime("%T "+function(){return c.$utc_offset()["$=="](0)?"UTC":"%z"}())],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(i=n["$[]"]("localdatetime"))||(p=["localdatetime",d+" "+$],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),r=h(i=h(o=u)?o:r)?i:c,h(m=n["$[]"]("docdate"))?h(i=n["$[]"]("docyear"))||(p=["docyear",function(){return m.$index("-")["$=="](4)?m.$slice(0,4):s}()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=["docdate",r.$strftime("%F")],f(n,"[]=",t.to_a(p)),m=p[e(p["length"],1)],h(i=n["$[]"]("docyear"))||(p=["docyear",r.$year().$to_s()],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)])),g=h(i=n["$[]"]("doctime"))?i:(p=["doctime",r.$strftime("%T "+function(){return r.$utc_offset()["$=="](0)?"UTC":"%z"}())],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(i=n["$[]"]("docdatetime"))||(p=["docdatetime",m+" "+g],f(n,"[]=",t.to_a(p)),p[e(p["length"],1)]),s},ht.$$arity=2),t.def(mt,"$update_backend_attributes",pt=function(n,r){var i,o,a=this,u=s,d=s,p=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return null==r&&(r=s),h(h(i=r)?i:n["$!="](a.backend))?(u=a.backend,d=(p=a.attributes)["$[]"]("basebackend"),$=a.doctype,h(n["$include?"](":"))&&(o=n.$partition(":"),i=t.to_ary(o),m=null==i[0]?s:i[0],null==i[1]?s:i[1],n=null==i[2]?s:i[2]),h(n["$start_with?"]("xhtml"))?(g=["htmlsyntax","xml"],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],n=n.$slice(1,n.$length())):h(n["$start_with?"]("html"))&&(h(i=p["$[]"]("htmlsyntax"))||(g=["htmlsyntax","html"],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)])),n=h(i=c(gt,"BACKEND_ALIASES")["$[]"](n))?i:n,h(m)&&(i=[m,n],n=i[0],v=i[1]),h($)?(h(u)&&(p.$delete("backend-"+u),p.$delete("backend-"+u+"-doctype-"+$)),g=["backend-"+n+"-doctype-"+$,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["doctype-"+$,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(u)&&p.$delete("backend-"+u),g=["backend-"+n,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],a.backend=(g=["backend",n],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(l(c(gt,"Converter"),"BackendTraits")["$==="](y=a.$create_converter(n,v)))?(_=y.$basebackend(),b=y.$filetype(),h(w=y.$htmlsyntax())&&(g=["htmlsyntax",w],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(r)?h(i=p["$[]"]("outfilesuffix"))||(g=["outfilesuffix",y.$outfilesuffix()],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(a["$attribute_locked?"]("outfilesuffix"))||(g=["outfilesuffix",y.$outfilesuffix()],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)])):h(y)?(x=c(gt,"Converter").$derive_backend_traits(n),_=x["$[]"]("basebackend"),b=x["$[]"]("filetype"),h(r)?h(i=p["$[]"]("outfilesuffix"))||(g=["outfilesuffix",x["$[]"]("outfilesuffix")],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(a["$attribute_locked?"]("outfilesuffix"))||(g=["outfilesuffix",x["$[]"]("outfilesuffix")],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)])):a.$raise(l("::","NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+n+"'. Processing aborted."),a.converter=y,h(k=p["$[]"]("filetype"))&&p.$delete("filetype-"+k),g=["filetype",b],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["filetype-"+b,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],h(S=c(gt,"DEFAULT_PAGE_WIDTHS")["$[]"](_))?(g=["pagewidth",S],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):p.$delete("pagewidth"),h(_["$!="](d))&&(h($)?(h(d)&&(p.$delete("basebackend-"+d),p.$delete("basebackend-"+d+"-doctype-"+$)),g=["basebackend-"+_+"-doctype-"+$,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]):h(d)&&p.$delete("basebackend-"+d),g=["basebackend-"+_,""],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["basebackend",_],f(p,"[]=",t.to_a(g)),g[e(g["length"],1)]),n):s},pt.$$arity=-2),t.def(mt,"$update_doctype_attributes",$t=function(n){var r,i=this,o=s,a=s,l=s,c=s,u=s;return h(h(r=n)?n["$!="](i.doctype):r)?(r=[i.backend,(o=i.attributes)["$[]"]("basebackend"),i.doctype],a=r[0],l=r[1],c=r[2],h(c)?(o.$delete("doctype-"+c),h(a)&&(o.$delete("backend-"+a+"-doctype-"+c),u=["backend-"+a+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(l)&&(o.$delete("basebackend-"+l+"-doctype-"+c),u=["basebackend-"+l+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])):(h(a)&&(u=["backend-"+a+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)]),h(l)&&(u=["basebackend-"+l+"-doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])),u=["doctype-"+n,""],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)],i.doctype=(u=["doctype",n],f(o,"[]=",t.to_a(u)),u[e(u["length"],1)])):s},$t.$$arity=1)})(y[0],c(y,"AbstractBlock"),y)}(a[0],a)},Opal.modules["asciidoctor/inline"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.klass,a=t.hash2,s=t.send,l=t.truthy;return t.add_stubs(["$attr_accessor","$attr_reader","$[]","$convert","$converter","$attr","$==","$apply_reftext_subs","$reftext"]),function(e,c){var u=i(e,"Asciidoctor"),d=[u].concat(c);(function(e,r,i){var c,u,d,f,h,p,$,m,g=o(e,r,"Inline");[g].concat(i);g.$$prototype.text=g.$$prototype.type=n,g.$attr_accessor("text"),g.$attr_reader("type"),g.$attr_accessor("target"),t.def(g,"$initialize",c=function(e,r,i,o){var l=c.$$p,u=this;return l&&(c.$$p=null),null==i&&(i=n),null==o&&(o=a([],{})),s(u,t.find_super_dispatcher(u,"initialize",c,!1),[e,r,o],null),u.node_name="inline_"+r,u.text=i,u.id=o["$[]"]("id"),u.type=o["$[]"]("type"),u.target=o["$[]"]("target")},c.$$arity=-3),t.def(g,"$block?",u=function(){return!1},u.$$arity=0),t.def(g,"$inline?",d=function(){return!0},d.$$arity=0),t.def(g,"$convert",f=function(){var t=this;return t.$converter().$convert(t)},f.$$arity=0),t.alias(g,"render","convert"),t.def(g,"$alt",h=function(){var t,e=this;return l(t=e.$attr("alt"))?t:""},h.$$arity=0),t.def(g,"$reftext?",p=function(){var t,e,n=this;return l(t=n.text)?l(e=n.type["$=="]("ref"))?e:n.type["$=="]("bibref"):t},p.$$arity=0),t.def(g,"$reftext",$=function(){var t=this,e=n;return l(e=t.text)?t.$apply_reftext_subs(e):n},$.$$arity=0),t.def(g,"$xreftext",m=function(t){var e=this;return null==t&&(t=n),e.$reftext()},m.$$arity=-1)})(d[0],r(d,"AbstractNode"),d)}(e[0],e)},Opal.modules["asciidoctor/list"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.klass,a=t.hash2,s=t.send,l=t.truthy;return t.add_stubs(["$==","$next_list","$callouts","$class","$object_id","$inspect","$size","$items","$attr_accessor","$level","$drop","$nil_or_empty?","$apply_subs","$empty?","$===","$[]","$outline?","$!","$simple?","$source","$shift","$context","$parent"]),function(e,c){var u=i(e,"Asciidoctor"),d=[u].concat(c);(function(e,r,i){var c,u,d,f,h=o(e,r,"List");[h].concat(i);h.$$prototype.context=h.$$prototype.document=h.$$prototype.style=n,t.alias(h,"items","blocks"),t.alias(h,"content","blocks"),t.alias(h,"items?","blocks?"),t.def(h,"$initialize",c=function(e,r,i){var o=c.$$p,l=this,u=n,d=n,f=n;for(o&&(c.$$p=null),d=0,f=arguments.length,u=new Array(f);d<f;d++)u[d]=arguments[d];return null==i&&(i=a([],{})),s(l,t.find_super_dispatcher(l,"initialize",c,!1),u,o)},c.$$arity=-3),t.def(h,"$outline?",u=function(){var t,e=this;return l(t=e.context["$=="]("ulist"))?t:e.context["$=="]("olist")},u.$$arity=0),t.def(h,"$convert",d=function(){var e=d.$$p,r=this,i=n,o=n,a=n,l=n;for(e&&(d.$$p=null),a=0,l=arguments.length,o=new Array(l);a<l;a++)o[a]=arguments[a];return r.context["$=="]("colist")?(i=s(r,t.find_super_dispatcher(r,"convert",d,!1),o,e),r.document.$callouts().$next_list(),i):s(r,t.find_super_dispatcher(r,"convert",d,!1),o,e)},d.$$arity=0),t.alias(h,"render","convert"),t.def(h,"$to_s",f=function(){var t=this;return"#<"+t.$class()+"@"+t.$object_id()+" {context: "+t.context.$inspect()+", style: "+t.style.$inspect()+", items: "+t.$items().$size()+"}>"},f.$$arity=0)})(d[0],r(d,"AbstractBlock"),d),function(e,i,a){var c,u,d,f,h,p,$,m,g=o(e,i,"ListItem"),v=[g].concat(a);g.$$prototype.text=g.$$prototype.subs=g.$$prototype.blocks=n,t.alias(g,"list","parent"),g.$attr_accessor("marker"),t.def(g,"$initialize",c=function(e,i){var o=c.$$p,a=this;return o&&(c.$$p=null),null==i&&(i=n),s(a,t.find_super_dispatcher(a,"initialize",c,!1),[e,"list_item"],null),a.text=i,a.level=e.$level(),a.subs=r(v,"NORMAL_SUBS").$drop(0)},c.$$arity=-2),t.def(g,"$text?",u=function(){var t=this;return!l(t.text["$nil_or_empty?"]())},u.$$arity=0),t.def(g,"$text",d=function(){var t,e=this;return l(t=e.text)?e.$apply_subs(e.text,e.subs):t},d.$$arity=0),t.def(g,"$text=",f=function(t){var e=this;return e.text=t},f.$$arity=1),t.def(g,"$simple?",h=function(){var t,e,i=this,o=n;return l(t=i.blocks["$empty?"]())?t:l(e=i.blocks.$size()["$=="](1)?r(v,"List")["$==="](o=i.blocks["$[]"](0)):i.blocks.$size()["$=="](1))?o["$outline?"]():e},h.$$arity=0),t.def(g,"$compound?",p=function(){var t=this;return t["$simple?"]()["$!"]()},p.$$arity=0),t.def(g,"$fold_first",$=function(){var t=this;return t.text=function(){return l(t.text["$nil_or_empty?"]())?t.blocks.$shift().$source():""+t.text+r(v,"LF")+t.blocks.$shift().$source()}(),n},$.$$arity=0),t.def(g,"$to_s",m=function(){var t,e=this;return"#<"+e.$class()+"@"+e.$object_id()+" {list_context: "+e.$parent().$context().$inspect()+", text: "+e.text.$inspect()+", blocks: "+(l(t=e.blocks)?t:[]).$size()+"}>"},m.$$arity=0)}(d[0],r(d,"AbstractBlock"),d)}(e[0],e)},Opal.modules["asciidoctor/parser"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}t.top;var a=[],s=t.nil,l=t.const_get_qualified,c=t.const_get_relative,u=(t.breaker,t.slice,t.module),d=t.klass,f=t.send,h=t.truthy,p=t.hash2,$=t.gvars;return t.add_stubs(["$include","$new","$proc","$start_with?","$match?","$is_delimited_block?","$private_class_method","$parse_document_header","$[]","$has_more_lines?","$next_section","$assign_numeral","$<<","$blocks","$parse_block_metadata_lines","$attributes","$is_next_line_doctitle?","$finalize_header","$nil_or_empty?","$title=","$-","$sourcemap","$cursor","$parse_section_title","$id=","$apply_header_subs","$[]=","$source_location=","$header","$attribute_locked?","$id","$clear","$delete","$instance_variable_get","$parse_header_metadata","$include?","$==","$!","$register","$doctype","$parse_manpage_header","$=~","$downcase","$sub_attributes","$error","$logger","$message_with_context","$cursor_at_line","$backend","$skip_blank_lines","$save","$update","$is_next_line_section?","$initialize_section","$join","$map","$read_lines_until","$lstrip","$title","$split","$restore_save","$discard_save","$context","$empty?","$header?","$!=","$attr?","$attr","$key?","$document","$+","$level","$special","$sectname","$to_i","$<","$>","$warn","$next_block","$blocks?","$style","$context=","$style=","$parent=","$size","$content_model","$shift","$unwrap_standalone_preamble","$merge","$fetch","$parse_block_metadata_line","$extensions","$block_macros?","$mark","$read_line","$terminator","$to_s","$masq","$to_sym","$registered_for_block?","$debug?","$debug","$cursor_at_mark","$strict_verbatim_paragraphs","$unshift_line","$markdown_syntax","$keys","$chr","$uniform?","$length","$end_with?","$===","$parse_attributes","$attribute_missing","$tr","$basename","$assign_caption","$registered_for_block_macro?","$config","$process_method","$replace","$parse_callout_list","$callouts","$parse_list","$parse_description_list","$underline_style_section_titles","$is_section_title?","$peek_line","$atx_section_title?","$generate_id","$level=","$read_paragraph_lines","$adjust_indentation!","$map!","$slice","$pop","$build_block","$apply_subs","$chop","$catalog_inline_anchors","$rekey","$index","$strip","$parse_table","$each","$raise","$title?","$update_attributes","$commit_subs","$sub?","$catalog_callouts","$source","$remove_sub","$block_terminates_paragraph","$to_proc","$nil?","$lines","$parse_blocks","$parse_list_item","$items","$scan","$gsub","$count","$advance","$dup","$match","$callout_ids","$next_list","$catalog_inline_anchor","$source_location","$marker=","$catalog_inline_biblio_anchor","$set_option","$text=","$resolve_ordered_list_marker","$read_lines_for_list_item","$skip_line_comments","$unshift_lines","$fold_first","$text?","$is_sibling_list_item?","$concat","$find","$casecmp","$sectname=","$special=","$numbered=","$numbered","$lineno","$peek_lines","$setext_section_title?","$abs","$cursor_at_prev_line","$process_attribute_entries","$next_line_empty?","$process_authors","$rstrip","$each_with_index","$compact","$squeeze","$to_a","$parse_style_attribute","$process_attribute_entry","$skip_comment_lines","$store_attribute","$sanitize_attribute_name","$set_attribute","$save_to","$delete_attribute","$ord","$int_to_roman","$resolve_list_marker","$parse_colspecs","$create_columns","$format","$starts_with_delimiter?","$close_open_cell","$parse_cellspec","$delimiter","$match_delimiter","$pre_match","$post_match","$buffer_has_unclosed_quotes?","$skip_past_delimiter","$buffer","$buffer=","$skip_past_escaped_delimiter","$keep_cell_open","$push_cellspec","$close_cell","$cell_open?","$columns","$assign_column_widths","$has_header_option=","$partition_header_footer","$upto","$partition","$shorthand_property_syntax","$each_char","$yield_buffered_attribute","$any?","$*","$each_byte","$%"]),function(a,m){var g=u(a,"Asciidoctor"),v=[g].concat(m);(function(a,u,m){var g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct=d(a,u,"Parser"),ut=[ct].concat(m);ct.$include(c(ut,"Logging")),t.const_set(ut[0],"BlockMatchData",c(ut,"Struct").$new("context","masq","tip","terminator")),t.const_set(ut[0],"TAB","\t"),t.const_set(ut[0],"TabIndentRx",/^\t+/),t.const_set(ut[0],"StartOfBlockProc",f(ct,"proc",[],(g=function(t){var e,n,r=g.$$s||this;return null==t&&(t=s),h(e=h(n=t["$start_with?"]("["))?c(ut,"BlockAttributeLineRx")["$match?"](t):n)?e:r["$is_delimited_block?"](t)},g.$$s=ct,g.$$arity=1,g))),t.const_set(ut[0],"StartOfListProc",f(ct,"proc",[],(v=function(t){v.$$s;return null==t&&(t=s),c(ut,"AnyListRx")["$match?"](t)},v.$$s=ct,v.$$arity=1,v))),t.const_set(ut[0],"StartOfBlockOrListProc",f(ct,"proc",[],(y=function(t){var e,n,r,i=y.$$s||this;return null==t&&(t=s),h(e=h(n=i["$is_delimited_block?"](t))?n:h(r=t["$start_with?"]("["))?c(ut,"BlockAttributeLineRx")["$match?"](t):r)?e:c(ut,"AnyListRx")["$match?"](t)},y.$$s=ct,y.$$arity=1,y))),t.const_set(ut[0],"NoOp",s),t.const_set(ut[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),t.const_set(ut[0],"TableCellHorzAlignments",p(["<",">","^"],{"<":"left",">":"right","^":"center"})),t.const_set(ut[0],"TableCellVertAlignments",p(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),t.const_set(ut[0],"TableCellStyles",p(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),ct.$private_class_method("new"),t.defs(ct,"$parse",_=function(e,n,r){var i,o,a=this,l=s,c=s;if(null==r&&(r=p([],{})),l=a.$parse_document_header(e,n),h(r["$[]"]("header_only")));else while(h(e["$has_more_lines?"]()))o=a.$next_section(e,n,l),i=t.to_ary(o),c=null==i[0]?s:i[0],l=null==i[1]?s:i[1],h(c)&&(n.$assign_numeral(c),n.$blocks()["$<<"](c));return n},_.$$arity=-3),t.defs(ct,"$parse_document_header",b=function(n,r){var i,o,a=this,l=s,c=s,u=s,d=s,p=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s;return l=a.$parse_block_metadata_lines(n,r),c=r.$attributes(),h(h(i=u=a["$is_next_line_doctitle?"](n,l,c["$[]"]("leveloffset")))?l["$[]"]("title"):i)?r.$finalize_header(l,!1):(h((d=c["$[]"]("doctitle"))["$nil_or_empty?"]())||(p=[$=d],f(r,"title=",t.to_a(p)),p[e(p["length"],1)]),h(u)&&(h(r.$sourcemap())&&(m=n.$cursor()),o=a.$parse_section_title(n,r),i=t.to_ary(o),r["$id="](null==i[0]?s:i[0]),null==i[1]?s:i[1],g=null==i[2]?s:i[2],null==i[3]?s:i[3],v=null==i[4]?s:i[4],h($)?g=s:(p=[g],f(r,"title=",t.to_a(p)),p[e(p["length"],1)],p=["doctitle",$=r.$apply_header_subs(g)],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(m)&&(p=[m],f(r.$header(),"source_location=",t.to_a(p)),p[e(p["length"],1)]),h(h(i=v)?i:r["$attribute_locked?"]("compat-mode"))||(p=["compat-mode",""],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(y=l["$[]"]("separator"))&&(h(r["$attribute_locked?"]("title-separator"))||(p=["title-separator",y],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)])),h(_=l["$[]"]("id"))?(p=[_],f(r,"id=",t.to_a(p)),p[e(p["length"],1)]):_=r.$id(),h(b=l["$[]"]("role"))&&(p=["role",b],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),h(w=l["$[]"]("reftext"))&&(p=["reftext",w],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]),l.$clear(),(x=r.$instance_variable_get("@attributes_modified")).$delete("doctitle"),a.$parse_header_metadata(n,r),h(x["$include?"]("doctitle"))?h(h(i=(d=c["$[]"]("doctitle"))["$nil_or_empty?"]())?i:d["$=="]($))?(p=["doctitle",$],f(c,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=[d],f(r,"title=",t.to_a(p)),p[e(p["length"],1)]):h(g["$!"]())&&x["$<<"]("doctitle"),h(_)&&r.$register("refs",[_,r])),r.$doctype()["$=="]("manpage")&&a.$parse_manpage_header(n,r,l),r.$finalize_header(l))},b.$$arity=2),t.defs(ct,"$parse_manpage_header",w=function(n,r,i){var o,a,l,u,d=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return h(c(ut,"ManpageTitleVolnumRx")["$=~"]((m=r.$attributes())["$[]"]("doctitle")))?(g=["manvolnum",v=(o=$["~"])===s?s:o["$[]"](2)],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["mantitle",function(){return h((y=(o=$["~"])===s?s:o["$[]"](1))["$include?"](c(ut,"ATTR_REF_HEAD")))?r.$sub_attributes(y):y}().$downcase()],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]):(d.$logger().$error(d.$message_with_context("non-conforming manpage title",p(["source_location"],{source_location:n.$cursor_at_line(1)}))),g=["mantitle",h(o=h(a=m["$[]"]("doctitle"))?a:m["$[]"]("docname"))?o:"command"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["manvolnum",v="1"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(h(o=_=m["$[]"]("manname"))?m["$[]"]("manpurpose"):o)?(h(o=m["$[]"]("manname-title"))||(g=["manname-title","Name"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),g=["mannames",[_]],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],r.$backend()["$=="]("manpage")&&(g=["docname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["outfilesuffix","."+v],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)])):(n.$skip_blank_lines(),n.$save(),i.$update(d.$parse_block_metadata_lines(n,r)),h(b=d["$is_next_line_section?"](n,p([],{})))?b["$=="](1)?(w=d.$initialize_section(n,r,p([],{})),x=f(n.$read_lines_until(p(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],(l=function(t){l.$$s;return null==t&&(t=s),t.$lstrip()},l.$$s=d,l.$$arity=1,l)).$join(" "),h(c(ut,"ManpageNamePurposeRx")["$=~"](x))?(h(o=m["$[]"]("manname-title"))||(g=["manname-title",w.$title()],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),h(w.$id())&&(g=["manname-id",w.$id()],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)]),g=["manpurpose",(o=$["~"])===s?s:o["$[]"](2)],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],h((_=(o=$["~"])===s?s:o["$[]"](1))["$include?"](c(ut,"ATTR_REF_HEAD")))&&(_=r.$sub_attributes(_)),h(_["$include?"](","))?_=(k=f(_.$split(","),"map",[],(u=function(t){u.$$s;return null==t&&(t=s),t.$lstrip()},u.$$s=d,u.$$arity=1,u)))["$[]"](0):k=[_],g=["manname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["mannames",k],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],r.$backend()["$=="]("manpage")&&(g=["docname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["outfilesuffix","."+v],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)])):S="non-conforming name section body"):S="name section must be at level 1":S="name section expected",h(S)?(n.$restore_save(),d.$logger().$error(d.$message_with_context(S,p(["source_location"],{source_location:n.$cursor()}))),g=["manname",_=h(o=m["$[]"]("docname"))?o:"command"],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["mannames",[_]],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],r.$backend()["$=="]("manpage")&&(g=["docname",_],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)],g=["outfilesuffix","."+v],f(m,"[]=",t.to_a(g)),g[e(g["length"],1)])):n.$discard_save()),s},w.$$arity=3),t.defs(ct,"$next_section",x=function(o,a,l){var u,d,$,m,g=this,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s,R=s,j=s;null==l&&(l=p([],{})),v=y=_=!1,h(h(u=(d=a.$context()["$=="]("document"))?a.$blocks()["$empty?"]():a.$context()["$=="]("document"))?h(d=h($=b=a["$header?"]())?$:l.$delete("invalid-header"))?d:g["$is_next_line_section?"](o,l)["$!"]():u)?(w=(x=a).$doctype()["$=="]("book"),h(h(u=b)?u:h(d=w)?l["$[]"](1)["$!="]("abstract"):d)&&(v=y=c(ut,"Block").$new(a,"preamble",p(["content_model"],{content_model:"compound"})),h(h(u=w)?a["$attr?"]("preface-title"):u)&&(k=[a.$attr("preface-title")],f(v,"title=",t.to_a(k)),k[e(k["length"],1)]),a.$blocks()["$<<"](v)),S=a,O=0,h(a.$attributes()["$key?"]("fragment"))?C=-1:h(w)?(u=[1,0],C=u[0],A=u[1]):C=1):(w=(x=a.$document()).$doctype()["$=="]("book"),S=g.$initialize_section(o,a,l),l=function(){return h(E=l["$[]"]("title"))?p(["title"],{title:E}):p([],{})}(),C=n(O=S.$level(),1),O["$=="](0)?_=w:h((u=O["$=="](1))?S.$special():O["$=="](1))&&(h(h(u=h(d=(T=S.$sectname())["$=="]("appendix"))?d:T["$=="]("preface"))?u:T["$=="]("abstract"))||(C=s))),o.$skip_blank_lines();while(h(o["$has_more_lines?"]())){if(g.$parse_block_metadata_lines(o,x,l),h(P=g["$is_next_line_section?"](o,l)))if(h(x["$attr?"]("leveloffset"))&&(P=n(P,x.$attr("leveloffset").$to_i()),h(r(P,0))&&(P=0)),h(i(P,O)))h(C)?h(h(d=h($=P["$=="](C))?$:h(m=A)?P["$=="](A):m)?d:r(C,0))||(B=function(){return h(A)?"expected levels "+A+" or "+C:"expected level "+C}(),g.$logger().$warn(g.$message_with_context("section title out of sequence: "+B+", got level "+P,p(["source_location"],{source_location:o.$cursor()})))):g.$logger().$error(g.$message_with_context(T+" sections do not support nested sections",p(["source_location"],{source_location:o.$cursor()}))),$=g.$next_section(o,S,l),d=t.to_ary($),L=null==d[0]?s:d[0],l=null==d[1]?s:d[1],S.$assign_numeral(L),S.$blocks()["$<<"](L);else{if(!h((d=P["$=="](0))?S["$=="](x):P["$=="](0)))break;h(w)||g.$logger().$error(g.$message_with_context("level 0 sections can only be used when doctype is book",p(["source_location"],{source_location:o.$cursor()}))),$=g.$next_section(o,S,l),d=t.to_ary($),L=null==d[0]?s:d[0],l=null==d[1]?s:d[1],S.$assign_numeral(L),S.$blocks()["$<<"](L)}else I=o.$cursor(),h(D=g.$next_block(o,h(d=y)?d:S,l,p(["parse_metadata"],{parse_metadata:!1})))&&(h(_)&&(h(S["$blocks?"]()["$!"]())?h(D.$style()["$!="]("partintro"))&&(D.$context()["$=="]("paragraph")?(k=["open"],f(D,"context=",t.to_a(k)),k[e(k["length"],1)],k=["partintro"],f(D,"style=",t.to_a(k)),k[e(k["length"],1)]):(k=[y=c(ut,"Block").$new(S,"open",p(["content_model"],{content_model:"compound"}))],f(D,"parent=",t.to_a(k)),k[e(k["length"],1)],k=["partintro"],f(y,"style=",t.to_a(k)),k[e(k["length"],1)],S.$blocks()["$<<"](y))):S.$blocks().$size()["$=="](1)&&(R=S.$blocks()["$[]"](0),h(h(d=y["$!"]())?R.$content_model()["$=="]("compound"):d)?g.$logger().$error(g.$message_with_context("illegal block content outside of partintro block",p(["source_location"],{source_location:I}))):h(R.$content_model()["$!="]("compound"))&&(k=[y=c(ut,"Block").$new(S,"open",p(["content_model"],{content_model:"compound"}))],f(D,"parent=",t.to_a(k)),k[e(k["length"],1)],k=["partintro"],f(y,"style=",t.to_a(k)),k[e(k["length"],1)],S.$blocks().$shift(),R.$style()["$=="]("partintro")&&(k=["paragraph"],f(R,"context=",t.to_a(k)),k[e(k["length"],1)],k=[s],f(R,"style=",t.to_a(k)),k[e(k["length"],1)]),y["$<<"](R),S.$blocks()["$<<"](y)))),(h(d=y)?d:S).$blocks()["$<<"](D),l.$clear());if(!h(d=o.$skip_blank_lines()))break}if(h(_))h(h(u=S["$blocks?"]())?S.$blocks()["$[]"](-1).$context()["$=="]("section"):u)||g.$logger().$error(g.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",p(["source_location"],{source_location:o.$cursor()})));else if(h(v))if(h(v["$blocks?"]()))if(h(h(u=h(d=w)?d:x.$blocks()["$[]"](1))?u:c(ut,"Compliance").$unwrap_standalone_preamble()["$!"]()));else{x.$blocks().$shift();while(h(j=v.$blocks().$shift()))x["$<<"](j)}else x.$blocks().$shift();return[function(){return h(S["$!="](a))?S:s}(),l.$merge()]},x.$$arity=-3),t.defs(ct,"$next_block",k=function(o,a,l,u){try{var d,m,g,v,y,_,b,w=this,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s,R=s,j=s,M=s,F=s,N=s,z=s,H=s,V=s,U=s,q=s,W=s,G=s,Y=s,K=s,X=s,Z=s,J=s,Q=s,tt=s,et=s,nt=s,rt=s,it=s,ot=s,at=s,st=s,lt=s,ct=s,dt=s,ft=s,ht=s,pt=s,$t=s,mt=s,gt=s,vt=s,yt=s;if(null==$["~"]&&($["~"]=s),null==l&&(l=p([],{})),null==u&&(u=p([],{})),!h(x=o.$skip_blank_lines()))return s;if(h(h(d=k=u["$[]"]("text_only"))?i(x,0):d)&&(u.$delete("text_only"),k=s),S=a.$document(),h(u.$fetch("parse_metadata",!0)))while(h(w.$parse_block_metadata_line(o,S,l,u)))o.$shift(),h(m=o.$skip_blank_lines())||t.ret(s);if(h(O=S.$extensions())&&(d=[O["$blocks?"](),O["$block_macros?"]()],C=d[0],A=d[1]),o.$mark(),d=[o.$read_line(),S.$attributes(),l["$[]"](1)],E=d[0],T=d[1],P=d[2],B=L=I=D=s,h(R=w["$is_delimited_block?"](E,!0))&&(L=I=R.$context(),D=R.$terminator(),h(P)?P["$=="](L.$to_s())||(h(R.$masq()["$include?"](P))?L=P.$to_sym():h(h(d=R.$masq()["$include?"]("admonition"))?c(ut,"ADMONITION_STYLES")["$include?"](P):d)?L="admonition":h(h(d=C)?O["$registered_for_block?"](P,L):d)?L=P.$to_sym():(h(w.$logger()["$debug?"]())&&w.$logger().$debug(w.$message_with_context("unknown style for "+L+" block: "+P,p(["source_location"],{source_location:o.$cursor_at_mark()}))),P=L.$to_s())):(j=["style",L.$to_s()],f(l,"[]=",t.to_a(j)),P=j[e(j["length"],1)])),h(R));else while(h(!0)){if(h(h(m=h(g=P)?c(ut,"Compliance").$strict_verbatim_paragraphs():g)?c(ut,"VERBATIM_STYLES")["$include?"](P):m)){L=P.$to_sym(),o.$unshift_line(E);break}if(h(k))M=E["$start_with?"](" ",c(ut,"TAB"));else if(F=c(ut,"Compliance").$markdown_syntax(),h(E["$start_with?"](" "))){if(m=[!0," "],M=m[0],N=m[1],h(h(m=h(g=F)?f(E.$lstrip(),"start_with?",t.to_a(c(ut,"MARKDOWN_THEMATIC_BREAK_CHARS").$keys())):g)?c(ut,"MarkdownThematicBreakRx")["$match?"](E):m)){B=c(ut,"Block").$new(a,"thematic_break",p(["content_model"],{content_model:"empty"}));break}}else if(h(E["$start_with?"](c(ut,"TAB"))))m=[!0,c(ut,"TAB")],M=m[0],N=m[1];else{if(m=[!1,E.$chr()],M=m[0],N=m[1],z=function(){return h(F)?c(ut,"HYBRID_LAYOUT_BREAK_CHARS"):c(ut,"LAYOUT_BREAK_CHARS")}(),h(h(m=z["$key?"](N))?function(){return h(F)?c(ut,"ExtLayoutBreakRx")["$match?"](E):h(g=w["$uniform?"](E,N,H=E.$length()))?i(H,2):g}():m)){B=c(ut,"Block").$new(a,z["$[]"](N),p(["content_model"],{content_model:"empty"}));break}if(h(h(m=E["$end_with?"]("]"))?E["$include?"]("::"):m)){if(h(h(m=h(g=N["$=="]("i"))?g:E["$start_with?"]("video:","audio:"))?c(ut,"BlockMediaMacroRx")["$=~"](E):m)){if(m=[((g=$["~"])===s?s:g["$[]"](1)).$to_sym(),(g=$["~"])===s?s:g["$[]"](2),(g=$["~"])===s?s:g["$[]"](3)],V=m[0],U=m[1],q=m[2],B=c(ut,"Block").$new(a,V,p(["content_model"],{content_model:"empty"})),h(q)&&(W=V,G="video"["$==="](W)?["poster","width","height"]:"audio"["$==="](W)?[]:["alt","width","height"],B.$parse_attributes(q,G,p(["sub_input","into"],{sub_input:!0,into:l}))),h(l["$key?"]("style"))&&l.$delete("style"),h(U["$include?"](c(ut,"ATTR_REF_HEAD")))){if(h(h(m=h(g=(Y=B.$sub_attributes(U))["$empty?"]())?(h(v=T["$[]"]("attribute-missing"))?v:c(ut,"Compliance").$attribute_missing())["$=="]("drop-line"):g)?B.$sub_attributes(n(U," "),p(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():m))return l.$clear(),s;U=Y}V["$=="]("image")&&(S.$register("images",U),j=["imagesdir",T["$[]"]("imagesdir")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],h(m=l["$[]"]("alt"))||(j=["alt",h(g=P)?g:(j=["default-alt",c(ut,"Helpers").$basename(U,!0).$tr("_-"," ")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h((K=l.$delete("scaledwidth"))["$nil_or_empty?"]())||(j=["scaledwidth",function(){return h(c(ut,"TrailingDigitsRx")["$match?"](K))?K+"%":K}()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$[]"]("title"))&&(j=[X=l.$delete("title")],f(B,"title=",t.to_a(j)),j[e(j["length"],1)],B.$assign_caption(l.$delete("caption"),"figure"))),j=["target",U],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)];break}if(h(h(m=(g=N["$=="]("t"))?E["$start_with?"]("toc:"):N["$=="]("t"))?c(ut,"BlockTocMacroRx")["$=~"](E):m)){B=c(ut,"Block").$new(a,"toc",p(["content_model"],{content_model:"empty"})),h((m=$["~"])===s?s:m["$[]"](1))&&B.$parse_attributes((m=$["~"])===s?s:m["$[]"](1),[],p(["into"],{into:l}));break}if(h(function(){return h(A)?h(m=h(g=c(ut,"CustomBlockMacroRx")["$=~"](E))?Z=O["$registered_for_block_macro?"]((v=$["~"])===s?s:v["$[]"](1)):g)?m:J=w.$logger()["$debug?"]():h(m=w.$logger()["$debug?"]())?J=c(ut,"CustomBlockMacroRx")["$=~"](E):m}())){if(!h(J)){if(Q=(m=$["~"])===s?s:m["$[]"](3),h((U=(m=$["~"])===s?s:m["$[]"](2))["$include?"](c(ut,"ATTR_REF_HEAD")))){if(h(h(m=h(g=(Y=a.$sub_attributes(U))["$empty?"]())?(h(v=T["$[]"]("attribute-missing"))?v:c(ut,"Compliance").$attribute_missing())["$=="]("drop-line"):g)?a.$sub_attributes(n(U," "),p(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():m))return l.$clear(),s;U=Y}if((tt=Z.$config())["$[]"]("content_model")["$=="]("attributes")?h(Q)&&S.$parse_attributes(Q,h(m=h(g=tt["$[]"]("positional_attrs"))?g:tt["$[]"]("pos_attrs"))?m:[],p(["sub_input","into"],{sub_input:!0,into:l})):(j=["text",h(m=Q)?m:""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(et=tt["$[]"]("default_attrs"))&&f(l,"update",[et],(y=function(t,e){y.$$s;return null==t&&(t=s),null==e&&(e=s),e},y.$$s=w,y.$$arity=2,y)),h(B=Z.$process_method()["$[]"](a,U,l))){l.$replace(B.$attributes());break}return l.$clear(),s}w.$logger().$debug(w.$message_with_context("unknown name for block macro: "+((m=$["~"])===s?s:m["$[]"](1)),p(["source_location"],{source_location:o.$cursor_at_mark()})))}}}if(h(h(m=h(g=M["$!"]())?(N=h(v=N)?v:E.$chr())["$=="]("<"):g)?c(ut,"CalloutListRx")["$=~"](E):m)){o.$unshift_line(E),B=w.$parse_callout_list(o,$["~"],a,S.$callouts()),j=["style","arabic"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)];break}if(h(c(ut,"UnorderedListRx")["$match?"](E))){o.$unshift_line(E),h(h(m=h(g=P["$!"]())?c(ut,"Section")["$==="](a):g)?a.$sectname()["$=="]("bibliography"):m)&&(j=["style",P="bibliography"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=w.$parse_list(o,"ulist",a,P);break}if(h(c(ut,"OrderedListRx")["$match?"](E))){o.$unshift_line(E),B=w.$parse_list(o,"olist",a,P),h(B.$style())&&(j=["style",B.$style()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]);break}if(h(h(m=h(g=E["$include?"]("::"))?g:E["$include?"](";;"))?c(ut,"DescriptionListRx")["$=~"](E):m)){o.$unshift_line(E),B=w.$parse_description_list(o,$["~"],a);break}if(h(h(m=h(g=P["$=="]("float"))?g:P["$=="]("discrete"))?function(){return h(c(ut,"Compliance").$underline_style_section_titles())?w["$is_section_title?"](E,o.$peek_line()):h(g=M["$!"]())?w["$atx_section_title?"](E):g}():m)){o.$unshift_line(E),g=w.$parse_section_title(o,S,l["$[]"]("id")),m=t.to_ary(g),nt=null==m[0]?s:m[0],rt=null==m[1]?s:m[1],X=null==m[2]?s:m[2],it=null==m[3]?s:m[3],h(rt)&&(j=["reftext",rt],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=c(ut,"Block").$new(a,"floating_title",p(["content_model"],{content_model:"empty"})),j=[X],f(B,"title=",t.to_a(j)),j[e(j["length"],1)],l.$delete("title"),j=[h(m=nt)?m:function(){return h(T["$key?"]("sectids"))?c(ut,"Section").$generate_id(B.$title(),S):s}()],f(B,"id=",t.to_a(j)),j[e(j["length"],1)],j=[it],f(B,"level=",t.to_a(j)),j[e(j["length"],1)];break}if(h(h(m=P)?P["$!="]("normal"):m)){if(h(c(ut,"PARAGRAPH_STYLES")["$include?"](P))){L=P.$to_sym(),I="paragraph",o.$unshift_line(E);break}if(h(c(ut,"ADMONITION_STYLES")["$include?"](P))){L="admonition",I="paragraph",o.$unshift_line(E);break}if(h(h(m=C)?O["$registered_for_block?"](P,"paragraph"):m)){L=P.$to_sym(),I="paragraph",o.$unshift_line(E);break}h(w.$logger()["$debug?"]())&&w.$logger().$debug(w.$message_with_context("unknown style for paragraph: "+P,p(["source_location"],{source_location:o.$cursor_at_mark()}))),P=s}if(o.$unshift_line(E),h(h(m=M)?P["$!"]():m))ot=w.$read_paragraph_lines(o,at=function(){return x["$=="](0)?u["$[]"]("list_type"):s}(),p(["skip_line_comments"],{skip_line_comments:k})),w["$adjust_indentation!"](ot),B=h(h(m=k)?m:at["$=="]("dlist"))?c(ut,"Block").$new(a,"paragraph",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l})):c(ut,"Block").$new(a,"literal",p(["content_model","source","attributes"],{content_model:"verbatim",source:ot,attributes:l}));else{if(ot=w.$read_paragraph_lines(o,(m=x["$=="](0))?u["$[]"]("list_type"):x["$=="](0),p(["skip_line_comments"],{skip_line_comments:!0})),h(k))h(h(m=M)?P["$=="]("normal"):m)&&w["$adjust_indentation!"](ot),B=c(ut,"Block").$new(a,"paragraph",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l}));else if(h(h(m=h(g=c(ut,"ADMONITION_STYLE_HEADS")["$include?"](N))?E["$include?"](":"):g)?c(ut,"AdmonitionParagraphRx")["$=~"](E):m))j=[0,(m=$["~"])===s?s:m.$post_match()],f(ot,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["name",st=(j=["style",(m=$["~"])===s?s:m["$[]"](1)],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]).$downcase()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["textlabel",h(m=l.$delete("caption"))?m:T["$[]"](st+"-caption")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=c(ut,"Block").$new(a,"admonition",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l}));else if(h(h(m=h(g=F)?N["$=="](">"):g)?E["$start_with?"]("> "):m)){if(f(ot,"map!",[],(_=function(t){_.$$s;return null==t&&(t=s),t["$=="](">")?t.$slice(1,t.$length()):h(t["$start_with?"]("> "))?t.$slice(2,t.$length()):t},_.$$s=w,_.$$arity=1,_)),h(ot["$[]"](-1)["$start_with?"]("-- ")))if(lt=(lt=ot.$pop()).$slice(3,lt.$length()),h(ot["$empty?"]()));else while(h(ot["$[]"](-1)["$empty?"]()))ot.$pop();j=["style","quote"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=w.$build_block("quote","compound",!1,a,c(ut,"Reader").$new(ot),l),h(lt)&&(g=B.$apply_subs(lt).$split(", ",2),m=t.to_ary(g),ct=null==m[0]?s:m[0],dt=null==m[1]?s:m[1],h(ct)&&(j=["attribution",ct],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(dt)&&(j=["citetitle",dt],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]))}else if(h(h(m=h(g=(v=N["$=="]('"'))?i(ot.$size(),1):N["$=="]('"'))?ot["$[]"](-1)["$start_with?"]("-- "):g)?ot["$[]"](-2)["$end_with?"]('"'):m)){j=[0,E.$slice(1,E.$length())],f(ot,"[]=",t.to_a(j)),j[e(j["length"],1)],lt=(lt=ot.$pop()).$slice(3,lt.$length());while(h(ot["$[]"](-1)["$empty?"]()))ot.$pop();ot["$<<"](ot.$pop().$chop()),j=["style","quote"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=c(ut,"Block").$new(a,"quote",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l})),g=B.$apply_subs(lt).$split(", ",2),m=t.to_ary(g),ct=null==m[0]?s:m[0],dt=null==m[1]?s:m[1],h(ct)&&(j=["attribution",ct],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(dt)&&(j=["citetitle",dt],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])}else h(h(m=M)?P["$=="]("normal"):m)&&w["$adjust_indentation!"](ot),B=c(ut,"Block").$new(a,"paragraph",p(["content_model","source","attributes"],{content_model:"simple",source:ot,attributes:l}));w.$catalog_inline_anchors(ot.$join(c(ut,"LF")),B,S,o)}break}if(h(B));else if(W=L,"listing"["$==="](W)||"source"["$==="](W))h(h(d=L["$=="]("source"))?d:h(m=l["$[]"](1)["$!"]())?ft=h(g=l["$[]"](2))?g:T["$[]"]("source-language"):m)&&(h(ft)?(j=["style","source"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["language",ft],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],c(ut,"AttributeList").$rekey(l,[s,s,"linenums"])):(c(ut,"AttributeList").$rekey(l,[s,"language","linenums"]),h(l["$key?"]("language"))||h(T["$key?"]("source-language"))&&(j=["language",T["$[]"]("source-language")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])),h(l["$key?"]("linenums"))||h(h(d=l["$[]"]("linenums-option"))?d:T["$[]"]("source-linenums-option"))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$key?"]("indent"))||h(T["$key?"]("source-indent"))&&(j=["indent",T["$[]"]("source-indent")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])),B=w.$build_block("listing","verbatim",D,a,o,l);else if("fenced_code"["$==="](W))j=["style","source"],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],h(i(H=E.$length(),3))&&(h(ht=(ft=E.$slice(3,H)).$index(","))?h(i(ht,0))?(ft=ft.$slice(0,ht).$strip(),h(r(ht,e(H,4)))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])):h(i(H,4))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]):ft=ft.$lstrip()),h(ft["$nil_or_empty?"]())?h(T["$key?"]("source-language"))&&(j=["language",T["$[]"]("source-language")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]):(j=["language",ft],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$key?"]("linenums"))||h(h(d=l["$[]"]("linenums-option"))?d:T["$[]"]("source-linenums-option"))&&(j=["linenums",""],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),h(l["$key?"]("indent"))||h(T["$key?"]("source-indent"))&&(j=["indent",T["$[]"]("source-indent")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),D=D.$slice(0,3),B=w.$build_block("listing","verbatim",D,a,o,l);else if("table"["$==="](W))pt=o.$cursor(),$t=c(ut,"Reader").$new(o.$read_lines_until(p(["terminator","skip_line_comments","context","cursor"],{terminator:D,skip_line_comments:!0,context:"table",cursor:"at_mark"})),pt),h(D["$start_with?"]("|","!"))||h(d=l["$[]"]("format"))||(j=["format",function(){return h(D["$start_with?"](","))?"csv":"dsv"}()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=w.$parse_table($t,a,l);else if("sidebar"["$==="](W))B=w.$build_block(L,"compound",D,a,o,l);else if("admonition"["$==="](W))j=["name",st=P.$downcase()],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],j=["textlabel",h(d=l.$delete("caption"))?d:T["$[]"](st+"-caption")],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)],B=w.$build_block(L,"compound",D,a,o,l);else if("open"["$==="](W)||"abstract"["$==="](W)||"partintro"["$==="](W))B=w.$build_block("open","compound",D,a,o,l);else if("literal"["$==="](W))B=w.$build_block(L,"verbatim",D,a,o,l);else if("example"["$==="](W))B=w.$build_block(L,"compound",D,a,o,l);else if("quote"["$==="](W)||"verse"["$==="](W))c(ut,"AttributeList").$rekey(l,[s,"attribution","citetitle"]),B=w.$build_block(L,function(){return L["$=="]("verse")?"verbatim":"compound"}(),D,a,o,l);else if("stem"["$==="](W)||"latexmath"["$==="](W)||"asciimath"["$==="](W))L["$=="]("stem")&&(j=["style",c(ut,"STEM_TYPE_ALIASES")["$[]"](h(d=l["$[]"](2))?d:T["$[]"]("stem"))],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),B=w.$build_block("stem","raw",D,a,o,l);else if("pass"["$==="](W))B=w.$build_block(L,"raw",D,a,o,l);else{if("comment"["$==="](W))return w.$build_block(L,"skip",D,a,o,l),l.$clear(),s;if(h(h(d=C)?Z=O["$registered_for_block?"](L,I):d)){if((mt=(tt=Z.$config())["$[]"]("content_model"))["$=="]("skip")||(h((gt=h(d=tt["$[]"]("positional_attrs"))?d:tt["$[]"]("pos_attrs"))["$nil_or_empty?"]())||c(ut,"AttributeList").$rekey(l,n([s],gt)),h(et=tt["$[]"]("default_attrs"))&&f(et,"each",[],(b=function(n,r){var i;b.$$s;return null==n&&(n=s),null==r&&(r=s),h(i=l["$[]"](n))?i:(j=[n,r],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)])},b.$$s=w,b.$$arity=2,b)),j=["cloaked-context",I],f(l,"[]=",t.to_a(j)),j[e(j["length"],1)]),!h(B=w.$build_block(L,mt,D,a,o,l,p(["extension"],{extension:Z}))))return l.$clear(),s}else w.$raise("Unsupported block type "+L+" at "+o.$cursor())}return h(S.$sourcemap())&&(j=[o.$cursor_at_mark()],f(B,"source_location=",t.to_a(j)),j[e(j["length"],1)]),h(l["$[]"]("title"))&&(j=[X=l.$delete("title")],f(B,"title=",t.to_a(j)),j[e(j["length"],1)],h(h(d=vt=c(ut,"CAPTION_ATTR_NAMES")["$[]"](B.$context()))?S.$attributes()["$[]"](vt):d)&&B.$assign_caption(l.$delete("caption"))),j=[l["$[]"]("style")],f(B,"style=",t.to_a(j)),j[e(j["length"],1)],h(yt=h(d=B.$id())?d:(j=[l["$[]"]("id")],f(B,"id=",t.to_a(j)),j[e(j["length"],1)]))&&(h(function(){return h(X)?X["$include?"](c(ut,"ATTR_REF_HEAD")):B["$title?"]()}())&&B.$title(),h(S.$register("refs",[yt,B]))||w.$logger().$warn(w.$message_with_context("id assigned to block already in use: "+yt,p(["source_location"],{source_location:o.$cursor_at_mark()})))),h(l["$empty?"]())||B.$update_attributes(l),B.$commit_subs(),h(B["$sub?"]("callouts"))&&(h(w.$catalog_callouts(B.$source(),S))||B.$remove_sub("callouts")),B}catch(_t){if(_t===t.returner)return _t.$v;throw _t}},k.$$arity=-3),t.defs(ct,"$read_paragraph_lines",S=function(n,r,i){var o=s,a=s;return null==i&&(i=p([],{})),o=["break_on_blank_lines",!0],f(i,"[]=",t.to_a(o)),o[e(o["length"],1)],o=["break_on_list_continuation",!0],f(i,"[]=",t.to_a(o)),o[e(o["length"],1)],o=["preserve_last_line",!0],f(i,"[]=",t.to_a(o)),o[e(o["length"],1)],a=function(){return h(r)?h(c(ut,"Compliance").$block_terminates_paragraph())?c(ut,"StartOfBlockOrListProc"):c(ut,"StartOfListProc"):h(c(ut,"Compliance").$block_terminates_paragraph())?c(ut,"StartOfBlockProc"):c(ut,"NoOp")}(),f(n,"read_lines_until",[i],a.$to_proc())},S.$$arity=-3),t.defs(ct,"$is_delimited_block?",O=function(n,o){var a,l,u=this,d=s,f=s,p=s,$=s,m=s;if(null==o&&(o=s),!h(h(a=i(d=n.$length(),1))?c(ut,"DELIMITED_BLOCK_HEADS")["$[]"](n.$slice(0,2)):a))return s;if(d["$=="](2))f=n,p=2;else if(h(r(d,5))?(f=n,p=d):f=n.$slice(0,p=4),h(h(a=c(ut,"Compliance").$markdown_syntax())?f["$start_with?"]("`"):a)){if(p["$=="](4)){if(f["$=="]("````"))return s;if(!(f=f.$chop())["$=="]("```"))return s;n=f,d=p=3}else if(!f["$=="]("```"))return s}else if(p["$=="](3))return s;return l=c(ut,"DELIMITED_BLOCKS")["$[]"](f),a=t.to_ary(l),$=null==a[0]?s:a[0],m=null==a[1]?s:a[1],h(h(a=$)?h(l=d["$=="](p))?l:u["$uniform?"](n.$slice(1,d),c(ut,"DELIMITED_BLOCK_TAILS")["$[]"](f),e(d,1)):a)?!h(o)||c(ut,"BlockMatchData").$new($,m,f,n):s},O.$$arity=-2),t.defs(ct,"$build_block",C=function(t,e,n,r,o,a,l){var u,d=this,f=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s;if(null==l&&(l=p([],{})),e["$=="]("skip")?(u=[!0,"simple"],f=u[0],$=u[1]):e["$=="]("raw")?(u=[!1,"simple"],f=u[0],$=u[1]):(u=[!1,e],f=u[0],$=u[1]),h(n["$nil?"]())?($["$=="]("verbatim")?m=o.$read_lines_until(p(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(e["$=="]("compound")&&(e="simple"),m=d.$read_paragraph_lines(o,!1,p(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:f}))),g=s):h($["$!="]("compound"))?(m=o.$read_lines_until(p(["terminator","skip_processing","context","cursor"],{terminator:n,skip_processing:f,context:t,cursor:"at_mark"})),g=s):n["$=="](!1)?(m=s,g=o):(m=s,v=o.$cursor(),g=c(ut,"Reader").$new(o.$read_lines_until(p(["terminator","skip_processing","context","cursor"],{terminator:n,skip_processing:f,context:t,cursor:"at_mark"})),v)),e["$=="]("verbatim"))y=(h(u=a["$[]"]("tabsize"))?u:r.$document().$attributes()["$[]"]("tabsize")).$to_i(),h(_=a["$[]"]("indent"))?d["$adjust_indentation!"](m,_.$to_i(),y):h(i(y,0))&&d["$adjust_indentation!"](m,-1,y);else if(e["$=="]("skip"))return s;if(h(b=l["$[]"]("extension"))){if(a.$delete("style"),!h(w=b.$process_method()["$[]"](r,h(u=g)?u:c(ut,"Reader").$new(m),a.$merge())))return s;a.$replace(w.$attributes()),h((u=w.$content_model()["$=="]("compound"))?(m=w.$lines())["$empty?"]()["$!"]():w.$content_model()["$=="]("compound"))&&(e="compound",g=c(ut,"Reader").$new(m))}else w=c(ut,"Block").$new(r,t,p(["content_model","source","attributes"],{content_model:e,source:m,attributes:a}));return e["$=="]("compound")&&d.$parse_blocks(g,w),w},C.$$arity=-7),t.defs(ct,"$parse_blocks",A=function(t,e,n){var r,i,o=this,a=s;if(null==n&&(n=s),h(n))while(h(h(r=h(i=a=o.$next_block(t,e,n.$merge()))?e.$blocks()["$<<"](a):i)?r:t["$has_more_lines?"]()));else while(h(h(r=h(i=a=o.$next_block(t,e))?e.$blocks()["$<<"](a):i)?r:t["$has_more_lines?"]()));return s},A.$$arity=-3),t.defs(ct,"$parse_list",E=function(t,e,n,r){var i,o=this,a=s,l=s,u=s;null==$["~"]&&($["~"]=s),a=c(ut,"List").$new(n,e),l=c(ut,"ListRxMap")["$[]"](e);while(h(h(i=t["$has_more_lines?"]())?l["$=~"](t.$peek_line()):i))if(h(u=o.$parse_list_item(t,a,$["~"],(i=$["~"])===s?s:i["$[]"](1),r))&&a.$items()["$<<"](u),!h(i=t.$skip_blank_lines()))break;return a},E.$$arity=4),t.defs(ct,"$catalog_callouts",T=function(t,e){var r,i=this,o=s,a=s;return o=!1,a=0,h(t["$include?"]("<"))&&f(t,"scan",[c(ut,"CalloutScanRx")],(r=function(){var t;r.$$s;return h(((t=$["~"])===s?s:t["$[]"](0))["$start_with?"]("\\"))||e.$callouts().$register(function(){return((t=$["~"])===s?s:t["$[]"](2))["$=="](".")?(a=n(a,1)).$to_s():(t=$["~"])===s?s:t["$[]"](2)}()),o=!0},r.$$s=i,r.$$arity=0,r)),o},T.$$arity=2),t.defs(ct,"$catalog_inline_anchor",P=function(t,e,n,r,i){var o,a=this;return null==i&&(i=n.$document()),h(h(o=e)?e["$include?"](c(ut,"ATTR_REF_HEAD")):o)&&(e=i.$sub_attributes(e)),h(i.$register("refs",[t,c(ut,"Inline").$new(n,"anchor",e,p(["type","id"],{type:"ref",id:t}))]))||(h(c(ut,"Reader")["$==="](r))&&(r=r.$cursor()),a.$logger().$warn(a.$message_with_context("id assigned to anchor already in use: "+t,p(["source_location"],{source_location:r})))),s},P.$$arity=-5),t.defs(ct,"$catalog_inline_anchors",B=function(t,e,r,o){var a,l,u=this;return h(h(a=t["$include?"]("[["))?a:t["$include?"]("or:"))&&f(t,"scan",[c(ut,"InlineAnchorScanRx")],(l=function(){var t,a=l.$$s||this,u=s,d=s,f=s,m=s;if(h(u=(t=$["~"])===s?s:t["$[]"](1))){if(h(d=(t=$["~"])===s?s:t["$[]"](2))&&h(h(t=d["$include?"](c(ut,"ATTR_REF_HEAD")))?(d=r.$sub_attributes(d))["$empty?"]():t))return s}else if(u=(t=$["~"])===s?s:t["$[]"](3),h(d=(t=$["~"])===s?s:t["$[]"](4))&&(h(d["$include?"]("]"))&&(d=d.$gsub("\\]","]")),h(h(t=d["$include?"](c(ut,"ATTR_REF_HEAD")))?(d=r.$sub_attributes(d))["$empty?"]():t)))return s;return h(r.$register("refs",[u,c(ut,"Inline").$new(e,"anchor",d,p(["type","id"],{type:"ref",id:u}))]))?s:(f=o.$cursor_at_mark(),h(i(m=n(((t=$["~"])===s?s:t.$pre_match()).$count(c(ut,"LF")),function(){return h(((t=$["~"])===s?s:t["$[]"](0))["$start_with?"](c(ut,"LF")))?1:0}()),0))&&(f=f.$dup()).$advance(m),a.$logger().$warn(a.$message_with_context("id assigned to anchor already in use: "+u,p(["source_location"],{source_location:f}))))},l.$$s=u,l.$$arity=0,l)),s},B.$$arity=4),t.defs(ct,"$catalog_inline_biblio_anchor",L=function(t,e,n,r){var i,o=this;return h(n.$document().$register("refs",[t,c(ut,"Inline").$new(n,"anchor",h(i=e)?"["+e+"]":i,p(["type","id"],{type:"bibref",id:t}))]))||o.$logger().$warn(o.$message_with_context("id assigned to bibliography anchor already in use: "+t,p(["source_location"],{source_location:r.$cursor()}))),s},L.$$arity=4),t.defs(ct,"$parse_description_list",I=function(n,r,i){var o,a=this,l=s,u=s,d=s,p=s,m=s;null==$["~"]&&($["~"]=s),l=c(ut,"List").$new(i,"dlist"),u=c(ut,"DescriptionListSiblingRx")["$[]"](r["$[]"](2)),l.$items()["$<<"](d=a.$parse_list_item(n,l,r,u));while(h(h(o=n["$has_more_lines?"]())?u["$=~"](n.$peek_line()):o))p=a.$parse_list_item(n,l,$["~"],u),h(d["$[]"](1))?l.$items()["$<<"](d=p):(d["$[]"](0)["$<<"](p["$[]"](0)["$[]"](0)),m=[1,p["$[]"](1)],f(d,"[]=",t.to_a(m)),m[e(m["length"],1)]);return l},I.$$arity=3),t.defs(ct,"$parse_callout_list",D=function(r,i,o,a){var l,u,d=this,$=s,m=s,g=s,v=s,y=s,_=s,b=s;$=c(ut,"List").$new(o,"colist"),m=1,g=0;while(h(h(l=i)?l:h(u=i=c(ut,"CalloutListRx").$match(r.$peek_line()))?r.$mark():u))(v=i["$[]"](1))["$=="](".")&&(v=(g=n(g,1)).$to_s()),v["$=="](m.$to_s())||d.$logger().$warn(d.$message_with_context("callout list item index: expected "+m+", got "+v,p(["source_location"],{source_location:r.$cursor_at_mark()}))),h(y=d.$parse_list_item(r,$,i,"<1>"))&&($.$items()["$<<"](y),h((_=a.$callout_ids($.$items().$size()))["$empty?"]())?d.$logger().$warn(d.$message_with_context("no callout found for <"+$.$items().$size()+">",p(["source_location"],{source_location:r.$cursor_at_mark()}))):(b=["coids",_],f(y.$attributes(),"[]=",t.to_a(b)),b[e(b["length"],1)])),m=n(m,1),i=s;return a.$next_list(),$},D.$$arity=4),t.defs(ct,"$parse_list_item",R=function(n,r,i,o,a){var l,u,d=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s;if(null==a&&(a=s),(m=r.$context())["$=="]("dlist")?(g=!0,v=c(ut,"ListItem").$new(r,y=i["$[]"](1)),h(h(l=y["$start_with?"]("[["))?c(ut,"LeadingInlineAnchorRx")["$=~"](y):l)&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),h(l=(u=$["~"])===s?s:u["$[]"](2))?l:((u=$["~"])===s?s:u.$post_match()).$lstrip(),v,n),h(_=i["$[]"](3))&&(b=!0),w=c(ut,"ListItem").$new(r,_),h(r.$document().$sourcemap())&&(x=[n.$cursor()],f(v,"source_location=",t.to_a(x)),x[e(x["length"],1)],h(b)?(x=[v.$source_location()],f(w,"source_location=",t.to_a(x)),x[e(x["length"],1)]):k=!0)):(b=!0,w=c(ut,"ListItem").$new(r,_=i["$[]"](2)),h(r.$document().$sourcemap())&&(x=[n.$cursor()],f(w,"source_location=",t.to_a(x)),x[e(x["length"],1)]),m["$=="]("ulist")?(x=[o],f(w,"marker=",t.to_a(x)),x[e(x["length"],1)],h(_["$start_with?"]("["))&&(h(h(l=a)?a["$=="]("bibliography"):l)?h(c(ut,"InlineBiblioAnchorRx")["$=~"](_))&&d.$catalog_inline_biblio_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n):h(_["$start_with?"]("[["))?h(c(ut,"LeadingInlineAnchorRx")["$=~"](_))&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n):h(_["$start_with?"]("[ ] ","[x] ","[*] "))&&(r.$set_option("checklist"),x=["checkbox",""],f(w.$attributes(),"[]=",t.to_a(x)),x[e(x["length"],1)],h(_["$start_with?"]("[ "))||(x=["checked",""],f(w.$attributes(),"[]=",t.to_a(x)),x[e(x["length"],1)]),x=[_.$slice(4,_.$length())],f(w,"text=",t.to_a(x)),x[e(x["length"],1)]))):m["$=="]("olist")?(u=d.$resolve_ordered_list_marker(o,S=r.$items().$size(),!0,n),l=t.to_ary(u),o=null==l[0]?s:l[0],O=null==l[1]?s:l[1],x=[o],f(w,"marker=",t.to_a(x)),x[e(x["length"],1)],h((l=S["$=="](0))?a["$!"]():S["$=="](0))&&(x=[h(l=O)?l:(h(u=c(ut,"ORDERED_LIST_STYLES")["$[]"](e(o.$length(),1)))?u:"arabic").$to_s()],f(r,"style=",t.to_a(x)),x[e(x["length"],1)]),h(h(l=_["$start_with?"]("[["))?c(ut,"LeadingInlineAnchorRx")["$=~"](_):l)&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n)):(x=[o],f(w,"marker=",t.to_a(x)),x[e(x["length"],1)],h(h(l=_["$start_with?"]("[["))?c(ut,"LeadingInlineAnchorRx")["$=~"](_):l)&&d.$catalog_inline_anchor((l=$["~"])===s?s:l["$[]"](1),(l=$["~"])===s?s:l["$[]"](2),w,n))),n.$shift(),C=n.$cursor(),A=c(ut,"Reader").$new(d.$read_lines_for_list_item(n,m,o,b),C),h(A["$has_more_lines?"]())){h(k)&&(x=[C],f(w,"source_location=",t.to_a(x)),x[e(x["length"],1)]),E=A.$skip_line_comments(),h(T=A.$peek_line())&&(h(E["$empty?"]())||A.$unshift_lines(E),h(T["$empty?"]())||(P=!0,h(g)||(b=s))),h(B=d.$next_block(A,w,p([],{}),p(["text_only","list_type"],{text_only:function(){return!h(b)||s}(),list_type:m})))&&w.$blocks()["$<<"](B);while(h(A["$has_more_lines?"]()))h(B=d.$next_block(A,w,p([],{}),p(["list_type"],{list_type:m})))&&w.$blocks()["$<<"](B);h(h(l=h(u=P)?L=w.$blocks()["$[]"](0):u)?L.$context()["$=="]("paragraph"):l)&&w.$fold_first()}return h(g)?[[v],function(){return h(h(l=w["$text?"]())?l:w["$blocks?"]())?w:s}()]:w},R.$$arity=-5),t.defs(ct,"$read_lines_for_list_item",j=function(n,r,i,o){var a,l,u,d,m,g,v,y=this,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s;null==i&&(i=s),null==o&&(o=!0),_=[],b="inactive",w=!1,x=s,k=r["$=="]("dlist");while(h(n["$has_more_lines?"]())){if(S=n.$read_line(),h(y["$is_sibling_list_item?"](S,r,i)))break;if(O=function(){return h(_["$empty?"]())?s:_["$[]"](-1)}(),O["$=="](c(ut,"LIST_CONTINUATION"))&&(b["$=="]("inactive")&&(b="active",o=!0,h(w)||(C=[-1,""],f(_,"[]=",t.to_a(C)),C[e(C["length"],1)])),S["$=="](c(ut,"LIST_CONTINUATION"))))h(b["$!="]("frozen"))&&(b="frozen",_["$<<"](S)),S=s;else{if(h(A=y["$is_delimited_block?"](S,!0))){if(!b["$=="]("active"))break;_["$<<"](S),_.$concat(n.$read_lines_until(p(["terminator","read_last_line","context"],{terminator:A.$terminator(),read_last_line:!0,context:s}))),b="inactive"}else{if(h(h(a=h(l=k)?b["$!="]("active"):l)?c(ut,"BlockAttributeLineRx")["$match?"](S):a))break;if(h((a=b["$=="]("active"))?S["$empty?"]()["$!"]():b["$=="]("active")))h(c(ut,"LiteralParagraphRx")["$match?"](S))?(n.$unshift_line(S),h(k)?_.$concat(f(n,"read_lines_until",[p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(u=function(t){var e=u.$$s||this;return null==t&&(t=s),e["$is_sibling_list_item?"](t,r,i)},u.$$s=y,u.$$arity=1,u))):_.$concat(n.$read_lines_until(p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0}))),b="inactive"):h(h(a=h(l=c(ut,"BlockTitleRx")["$match?"](S))?l:c(ut,"BlockAttributeLineRx")["$match?"](S))?a:c(ut,"AttributeEntryRx")["$match?"](S))?_["$<<"](S):(h(E=f(function(){return h(w)?["dlist"]:c(ut,"NESTABLE_LIST_CONTEXTS")}(),"find",[],(d=function(t){d.$$s;return null==t&&(t=s),c(ut,"ListRxMap")["$[]"](t)["$match?"](S)},d.$$s=y,d.$$arity=1,d)))&&(w=!0,h((a=E["$=="]("dlist"))?((l=$["~"])===s?s:l["$[]"](3))["$nil_or_empty?"]():E["$=="]("dlist"))&&(o=!1)),_["$<<"](S),b="inactive");else if(h(h(a=O)?O["$empty?"]():a)){if(h(S["$empty?"]())){if(!h(S=h(a=n.$skip_blank_lines())?n.$read_line():a))break;if(h(y["$is_sibling_list_item?"](S,r,i)))break}if(S["$=="](c(ut,"LIST_CONTINUATION")))x=_.$size(),_["$<<"](S);else if(h(o)){if(h(y["$is_sibling_list_item?"](S,r,i)))break;if(h(E=f(c(ut,"NESTABLE_LIST_CONTEXTS"),"find",[],(m=function(t){m.$$s;return null==t&&(t=s),c(ut,"ListRxMap")["$[]"](t)["$=~"](S)},m.$$s=y,m.$$arity=1,m))))_["$<<"](S),w=!0,h((a=E["$=="]("dlist"))?((l=$["~"])===s?s:l["$[]"](3))["$nil_or_empty?"]():E["$=="]("dlist"))&&(o=!1);else{if(!h(c(ut,"LiteralParagraphRx")["$match?"](S)))break;n.$unshift_line(S),h(k)?_.$concat(f(n,"read_lines_until",[p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(g=function(t){var e=g.$$s||this;return null==t&&(t=s),e["$is_sibling_list_item?"](t,r,i)},g.$$s=y,g.$$arity=1,g))):_.$concat(n.$read_lines_until(p(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})))}}else h(w)||_.$pop(),_["$<<"](S),o=!0}else h(S["$empty?"]())||(o=!0),h(E=f(function(){return h(w)?["dlist"]:c(ut,"NESTABLE_LIST_CONTEXTS")}(),"find",[],(v=function(t){v.$$s;return null==t&&(t=s),c(ut,"ListRxMap")["$[]"](t)["$=~"](S)},v.$$s=y,v.$$arity=1,v)))&&(w=!0,h((a=E["$=="]("dlist"))?((l=$["~"])===s?s:l["$[]"](3))["$nil_or_empty?"]():E["$=="]("dlist"))&&(o=!1)),_["$<<"](S)}S=s}}h(S)&&n.$unshift_line(S),h(x)&&(C=[x,""],f(_,"[]=",t.to_a(C)),C[e(C["length"],1)]);while(!h(_["$empty?"]())){if(!h((T=_["$[]"](-1))["$empty?"]())){T["$=="](c(ut,"LIST_CONTINUATION"))&&_.$pop();break}_.$pop()}return _},j.$$arity=-3),t.defs(ct,"$initialize_section",M=function(n,r,o){var a,l,u=this,d=s,$=s,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s;return null==o&&(o=p([],{})),d=r.$document(),$=(m=d.$doctype())["$=="]("book"),h(d.$sourcemap())&&(g=n.$cursor()),v=o["$[]"](1),l=u.$parse_section_title(n,d,o["$[]"]("id")),a=t.to_ary(l),y=null==a[0]?s:a[0],_=null==a[1]?s:a[1],b=null==a[2]?s:a[2],w=null==a[3]?s:a[3],x=null==a[4]?s:a[4],h(_)?(k=["reftext",_],f(o,"[]=",t.to_a(k)),k[e(k["length"],1)]):_=o["$[]"]("reftext"),h(v)?h(h(a=$)?v["$=="]("abstract"):a)?(a=["chapter",1],S=a[0],w=a[1]):h(h(a=v["$start_with?"]("sect"))?c(ut,"SectionLevelStyleRx")["$match?"](v):a)?S="section":(a=[v,!0],S=a[0],O=a[1],w["$=="](0)&&(w=1),C=S["$=="]("appendix")):h($)?S=function(){return w["$=="](0)?"part":h(i(w,1))?"section":"chapter"}():h((a=m["$=="]("manpage"))?b.$casecmp("synopsis")["$=="](0):m["$=="]("manpage"))?(a=["synopsis",!0],S=a[0],O=a[1]):S="section",A=c(ut,"Section").$new(r,w),a=[y,b,S,g],A["$id="](a[0]),A["$title="](a[1]),A["$sectname="](a[2]),A["$source_location="](a[3]),h(O)?(k=[!0],f(A,"special=",t.to_a(k)),k[e(k["length"],1)],h(C)?(k=[!0],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)]):d.$attributes()["$[]"]("sectnums")["$=="]("all")&&(k=[function(){return!h(h(a=$)?w["$=="](1):a)||"chapter"}()],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)])):h(h(a=d.$attributes()["$[]"]("sectnums"))?i(w,0):a)?(k=[function(){return!h(A.$special())||(!!h(a=r.$numbered())||a)}()],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)]):h(h(a=h(l=$)?w["$=="](0):l)?d.$attributes()["$[]"]("partnums"):a)&&(k=[!0],f(A,"numbered=",t.to_a(k)),k[e(k["length"],1)]),h(E=h(a=A.$id())?a:(k=[function(){return h(d.$attributes()["$key?"]("sectids"))?T=c(ut,"Section").$generate_id(A.$title(),d):s}()],f(A,"id=",t.to_a(k)),k[e(k["length"],1)]))&&(h(T)||h(b["$include?"](c(ut,"ATTR_REF_HEAD")))&&A.$title(),h(d.$register("refs",[E,A]))||u.$logger().$warn(u.$message_with_context("id assigned to section already in use: "+E,p(["source_location"],{source_location:n.$cursor_at_line(e(n.$lineno(),function(){return h(x)?1:2}()))})))),A.$update_attributes(o),n.$skip_blank_lines(),A},M.$$arity=-3),t.defs(ct,"$is_next_line_section?",F=function(t,e){var n,r,i=this,o=s,a=s;return h(h(n=o=e["$[]"](1))?h(r=o["$=="]("discrete"))?r:o["$=="]("float"):n)?s:h(c(ut,"Compliance").$underline_style_section_titles())?(a=t.$peek_lines(2,h(n=o)?o["$=="]("comment"):n),i["$is_section_title?"](h(n=a["$[]"](0))?n:"",a["$[]"](1))):i["$atx_section_title?"](h(n=t.$peek_line())?n:"")},F.$$arity=2),t.defs(ct,"$is_next_line_doctitle?",N=function(t,e,r){var i,o=this,a=s;return h(r)?h(i=a=o["$is_next_line_section?"](t,e))?n(a,r.$to_i())["$=="](0):i:o["$is_next_line_section?"](t,e)["$=="](0)},N.$$arity=3),t.defs(ct,"$is_section_title?",z=function(t,e){var n,r=this;return null==e&&(e=s),h(n=r["$atx_section_title?"](t))?n:function(){return h(e["$nil_or_empty?"]())?s:r["$setext_section_title?"](t,e)}()},z.$$arity=-2),t.defs(ct,"$atx_section_title?",H=function(t){var n;return h(function(){return h(c(ut,"Compliance").$markdown_syntax())?h(n=t["$start_with?"]("=","#"))?c(ut,"ExtAtxSectionTitleRx")["$=~"](t):n:h(n=t["$start_with?"]("="))?c(ut,"AtxSectionTitleRx")["$=~"](t):n}())?e(((n=$["~"])===s?s:n["$[]"](1)).$length(),1):s},H.$$arity=1),t.defs(ct,"$setext_section_title?",V=function(t,n){var i,o,a,l=this,u=s,d=s,f=s;return h(h(i=h(o=h(a=u=c(ut,"SETEXT_SECTION_LEVELS")["$[]"](d=n.$chr()))?l["$uniform?"](n,d,f=n.$length()):a)?c(ut,"SetextSectionTitleRx")["$match?"](t):o)?r(e(t.$length(),f).$abs(),2):i)?u:s},V.$$arity=2),t.defs(ct,"$parse_section_title",U=function(t,i,o){var a,l,u,d,f,p=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s;return null==o&&(o=s),m=s,g=t.$read_line(),h(function(){return h(c(ut,"Compliance").$markdown_syntax())?h(a=g["$start_with?"]("=","#"))?c(ut,"ExtAtxSectionTitleRx")["$=~"](g):a:h(a=g["$start_with?"]("="))?c(ut,"AtxSectionTitleRx")["$=~"](g):a}())?(a=[e(((l=$["~"])===s?s:l["$[]"](1)).$length(),1),(l=$["~"])===s?s:l["$[]"](2),!0],v=a[0],y=a[1],_=a[2],h(o)||h(h(a=h(l=y["$end_with?"]("]]"))?c(ut,"InlineSectionAnchorRx")["$=~"](y):l)?((l=$["~"])===s?s:l["$[]"](1))["$!"]():a)&&(a=[y.$slice(0,e(y.$length(),((l=$["~"])===s?s:l["$[]"](0)).$length())),(l=$["~"])===s?s:l["$[]"](2),(l=$["~"])===s?s:l["$[]"](3)],y=a[0],o=a[1],m=a[2])):h(h(a=h(l=h(u=h(d=h(f=c(ut,"Compliance").$underline_style_section_titles())?b=t.$peek_line(!0):f)?v=c(ut,"SETEXT_SECTION_LEVELS")["$[]"](w=b.$chr()):d)?p["$uniform?"](b,w,x=b.$length()):u)?y=h(u=c(ut,"SetextSectionTitleRx")["$=~"](g))?(d=$["~"])===s?s:d["$[]"](1):u:l)?r(e(g.$length(),x).$abs(),2):a)?(_=!1,h(o)||h(h(a=h(l=y["$end_with?"]("]]"))?c(ut,"InlineSectionAnchorRx")["$=~"](y):l)?((l=$["~"])===s?s:l["$[]"](1))["$!"]():a)&&(a=[y.$slice(0,e(y.$length(),((l=$["~"])===s?s:l["$[]"](0)).$length())),(l=$["~"])===s?s:l["$[]"](2),(l=$["~"])===s?s:l["$[]"](3)],y=a[0],o=a[1],m=a[2]),t.$shift()):p.$raise("Unrecognized section at "+t.$cursor_at_prev_line()),h(i["$attr?"]("leveloffset"))&&(v=n(v,i.$attr("leveloffset").$to_i()),h(r(v,0))&&(v=0)),[o,m,y,v,_]},U.$$arity=-3),t.defs(ct,"$parse_header_metadata",q=function(r,i){var o,a,u,d,$=this,m=s,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s;if(null==i&&(i=s),m=h(o=i)?i.$attributes():o,$.$process_attribute_entries(r,i),o=[g=p([],{}),s,s],v=o[0],y=o[1],_=o[2],h(h(o=r["$has_more_lines?"]())?r["$next_line_empty?"]()["$!"]():o)?(h((b=$.$process_authors(r.$read_line()))["$empty?"]())||(h(i)&&(f(b,"each",[],(a=function(n,r){a.$$s;var o=s;return null==n&&(n=s),null==r&&(r=s),h(m["$key?"](n))?s:(o=[n,function(){return h(l("::","String")["$==="](r))?i.$apply_header_subs(r):r}()],f(m,"[]=",t.to_a(o)),o[e(o["length"],1)])},a.$$s=$,a.$$arity=2,a)),y=m["$[]"]("author"),_=m["$[]"]("authorinitials"),g=m["$[]"]("authors")),v=b),$.$process_attribute_entries(r,i),w=p([],{}),h(h(o=r["$has_more_lines?"]())?r["$next_line_empty?"]()["$!"]():o)&&(x=r.$read_line(),h(k=c(ut,"RevisionInfoLineRx").$match(x))?(h(k["$[]"](1))&&(S=["revnumber",k["$[]"](1).$rstrip()],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)]),h((O=k["$[]"](2).$strip())["$empty?"]())||(h(h(o=k["$[]"](1)["$!"]())?O["$start_with?"]("v"):o)?(S=["revnumber",O.$slice(1,O.$length())],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)]):(S=["revdate",O],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)])),h(k["$[]"](3))&&(S=["revremark",k["$[]"](3).$rstrip()],f(w,"[]=",t.to_a(S)),S[e(S["length"],1)])):r.$unshift_line(x)),h(w["$empty?"]())||(h(i)&&f(w,"each",[],(u=function(n,r){u.$$s;return null==n&&(n=s),null==r&&(r=s),h(m["$key?"](n))?s:(S=[n,i.$apply_header_subs(r)],f(m,"[]=",t.to_a(S)),S[e(S["length"],1)])},u.$$s=$,u.$$arity=2,u)),v.$update(w)),$.$process_attribute_entries(r,i),r.$skip_blank_lines()):b=p([],{}),h(i)){if(h(h(o=m["$key?"]("author"))?(C=m["$[]"]("author"))["$!="](y):o))b=$.$process_authors(C,!0,!1),h(m["$[]"]("authorinitials")["$!="](_))&&b.$delete("authorinitials");else if(h(h(o=m["$key?"]("authors"))?(C=m["$[]"]("authors"))["$!="](g):o))b=$.$process_authors(C,!0);else{o=[[],1,"author_1",!1,!1],A=o[0],E=o[1],T=o[2],P=o[3],B=o[4];while(h(m["$key?"](T)))(L=m["$[]"](T))["$=="](b["$[]"](T))?(A["$<<"](s),B=!0):(A["$<<"](L),P=!0),T="author_"+(E=n(E,1));h(P)?(h(B)&&f(A,"each_with_index",[],(d=function(r,i){var o,a=d.$$s||this,l=s;return null==r&&(r=s),null==i&&(i=s),h(r)?s:(S=[i,f([b["$[]"]("firstname_"+(l=n(i,1))),b["$[]"]("middlename_"+l),b["$[]"]("lastname_"+l)].$compact(),"map",[],(o=function(t){o.$$s;return null==t&&(t=s),t.$tr(" ","_")},o.$$s=a,o.$$arity=1,o)).$join(" ")],f(A,"[]=",t.to_a(S)),S[e(S["length"],1)])},d.$$s=$,d.$$arity=2,d)),b=$.$process_authors(A,!0,!1)):b=p([],{})}h(b["$empty?"]())?h(o=v["$[]"]("authorcount"))||(S=["authorcount",(S=["authorcount",0],f(m,"[]=",t.to_a(S)),S[e(S["length"],1)])],f(v,"[]=",t.to_a(S)),S[e(S["length"],1)]):(m.$update(b),h(h(o=m["$key?"]("email")["$!"]())?m["$key?"]("email_1"):o)&&(S=["email",m["$[]"]("email_1")],f(m,"[]=",t.to_a(S)),S[e(S["length"],1)]))}return v},q.$$arity=-2),t.defs(ct,"$process_authors",W=function(r,i,o){var a,l,u=this,d=s,$=s,m=s;return null==i&&(i=!1),null==o&&(o=!0),d=p([],{}),$=0,f(function(){return h(h(a=o)?r["$include?"](";"):a)?r.$split(c(ut,"AuthorDelimiterRx")):[].concat(t.to_a(r))}(),"each",[],(l=function(r){var o,a,u,m,g=l.$$s||this,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s;return null==r&&(r=s),h(r["$empty?"]())?s:(v=p([],{}),($=n($,1))["$=="](1)?f(c(ut,"AuthorKeys"),"each",[],(o=function(n){o.$$s;var r=s;return null==n&&(n=s),r=[n.$to_sym(),n],f(v,"[]=",t.to_a(r)),r[e(r["length"],1)]},o.$$s=g,o.$$arity=1,o)):f(c(ut,"AuthorKeys"),"each",[],(a=function(n){a.$$s;var r=s;return null==n&&(n=s),r=[n.$to_sym(),n+"_"+$],f(v,"[]=",t.to_a(r)),r[e(r["length"],1)]},a.$$s=g,a.$$arity=1,a)),h(i)?(h(r["$include?"]("<"))&&(y=[v["$[]"]("author"),r.$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],r=r.$gsub(c(ut,"XmlSanitizeRx"),"")),(_=r.$split(s,3)).$size()["$=="](3)&&_["$<<"](_.$pop().$squeeze(" "))):h(b=c(ut,"AuthorInfoLineRx").$match(r))&&(_=b.$to_a()).$shift(),h(_)?(y=[v["$[]"]("firstname"),x=_["$[]"](0).$tr("_"," ")],f(d,"[]=",t.to_a(y)),w=y[e(y["length"],1)],y=[v["$[]"]("authorinitials"),x.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],h(_["$[]"](1))&&(h(_["$[]"](2))?(y=[v["$[]"]("middlename"),k=_["$[]"](1).$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],y=[v["$[]"]("lastname"),S=_["$[]"](2).$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],w=n(n(n(n(x," "),k)," "),S),y=[v["$[]"]("authorinitials"),""+x.$chr()+k.$chr()+S.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]):(y=[v["$[]"]("lastname"),S=_["$[]"](1).$tr("_"," ")],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],w=n(n(x," "),S),y=[v["$[]"]("authorinitials"),""+x.$chr()+S.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)])),h(u=d["$[]"](v["$[]"]("author")))||(y=[v["$[]"]("author"),w],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]),h(h(u=i)?u:_["$[]"](3)["$!"]())||(y=[v["$[]"]("email"),_["$[]"](3)],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)])):(y=[v["$[]"]("author"),(y=[v["$[]"]("firstname"),x=r.$squeeze(" ").$strip()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)])],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)],y=[v["$[]"]("authorinitials"),x.$chr()],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]),$["$=="](1)?(y=["authors",d["$[]"](v["$[]"]("author"))],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]):($["$=="](2)&&f(c(ut,"AuthorKeys"),"each",[],(m=function(n){m.$$s;return null==n&&(n=s),h(d["$key?"](n))?(y=[n+"_1",d["$[]"](n)],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]):s},m.$$s=g,m.$$arity=1,m)),y=["authors",d["$[]"]("authors")+", "+d["$[]"](v["$[]"]("author"))],f(d,"[]=",t.to_a(y)),y[e(y["length"],1)]))},l.$$s=u,l.$$arity=1,l)),m=["authorcount",$],f(d,"[]=",t.to_a(m)),m[e(m["length"],1)],d},W.$$arity=-2),t.defs(ct,"$parse_block_metadata_lines",G=function(t,e,n,r){var i=this;null==n&&(n=p([],{})),null==r&&(r=p([],{}));while(h(i.$parse_block_metadata_line(t,e,n,r)))if(t.$shift(),!h(t.$skip_blank_lines()))break;return n},G.$$arity=-3),t.defs(ct,"$parse_block_metadata_line",Y=function(n,r,i,o){var a,l,u=this,d=s,m=s,g=s,v=s,y=s,_=s;return null==$["~"]&&($["~"]=s),null==o&&(o=p([],{})),h(h(a=d=n.$peek_line())?function(){return h(o["$[]"]("text_only"))?d["$start_with?"]("[","/"):m=d["$start_with?"]("[",".","/",":")}():a)?h(d["$start_with?"]("["))?h(d["$start_with?"]("[["))?h(h(a=d["$end_with?"]("]]"))?c(ut,"BlockAnchorRx")["$=~"](d):a)?(g=["id",(a=$["~"])===s?s:a["$[]"](1)],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)],h(v=(a=$["~"])===s?s:a["$[]"](2))&&(g=["reftext",function(){return h(v["$include?"](c(ut,"ATTR_REF_HEAD")))?r.$sub_attributes(v):v}()],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)]),!0):s:h(h(a=d["$end_with?"]("]"))?c(ut,"BlockAttributeListRx")["$=~"](d):a)?(y=i["$[]"](1),h(r.$parse_attributes((a=$["~"])===s?s:a["$[]"](1),[],p(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:i}))["$[]"](1))&&(g=[1,h(a=u.$parse_style_attribute(i,n))?a:y],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)]),!0):s:h(h(a=m)?d["$start_with?"]("."):a)?h(c(ut,"BlockTitleRx")["$=~"](d))?(g=["title",(a=$["~"])===s?s:a["$[]"](1)],f(i,"[]=",t.to_a(g)),g[e(g["length"],1)],!0):s:h(h(a=m["$!"]())?a:d["$start_with?"]("/"))?h(d["$start_with?"]("//"))?!!d["$=="]("//")||(h(h(a=m)?u["$uniform?"](d,"/",_=d.$length()):a)?_["$=="](3)?s:(n.$read_lines_until(p(["terminator","skip_first_line","preserve_last_line","skip_processing","context"],{terminator:d,skip_first_line:!0,preserve_last_line:!0,skip_processing:!0,context:"comment"})),!0):!h(d["$start_with?"]("///"))||s):s:h(h(a=h(l=m)?d["$start_with?"](":"):l)?c(ut,"AttributeEntryRx")["$=~"](d):a)?(u.$process_attribute_entry(n,r,i,$["~"]),!0):s:s},Y.$$arity=-4),t.defs(ct,"$process_attribute_entries",K=function(t,e,n){var r=this;null==n&&(n=s),t.$skip_comment_lines();while(h(r.$process_attribute_entry(t,e,n)))t.$shift(),t.$skip_comment_lines()},K.$$arity=-3),t.defs(ct,"$process_attribute_entry",X=function(t,n,r,i){var o,a,l,u=this,d=s,f=s,p=s,$=s;if(null==r&&(r=s),null==i&&(i=s),h(h(o=i)?o:i=function(){return h(t["$has_more_lines?"]())?c(ut,"AttributeEntryRx").$match(t.$peek_line()):s}())){if(h((d=i["$[]"](2))["$nil_or_empty?"]()))d="";else if(h(d["$end_with?"](c(ut,"LINE_CONTINUATION"),c(ut,"LINE_CONTINUATION_LEGACY")))){o=[d.$slice(e(d.$length(),2),2),d.$slice(0,e(d.$length(),2)).$rstrip()],f=o[0],d=o[1];while(h(h(a=t.$advance())?(p=h(l=t.$peek_line())?l:"")["$empty?"]()["$!"]():a))if(p=p.$lstrip(),h($=p["$end_with?"](f))&&(p=p.$slice(0,e(p.$length(),2)).$rstrip()),d=""+d+function(){return h(d["$end_with?"](c(ut,"HARD_LINE_BREAK")))?c(ut,"LF"):" "}()+p,!h($))break}return u.$store_attribute(i["$[]"](1),d,n,r),!0}return s},X.$$arity=-3),t.defs(ct,"$store_attribute",Z=function(t,r,i,o){var a,u=this,d=s;return null==i&&(i=s),null==o&&(o=s),h(t["$end_with?"]("!"))?(t=t.$chop(),r=s):h(t["$start_with?"]("!"))&&(t=t.$slice(1,t.$length()),r=s),(t=u.$sanitize_attribute_name(t))["$=="]("numbered")?t="sectnums":t["$=="]("hardbreaks")&&(t="hardbreaks-option"),h(i)?h(r)?(t["$=="]("leveloffset")&&(h(r["$start_with?"]("+"))?r=n(i.$attr("leveloffset",0).$to_i(),r.$slice(1,r.$length()).$to_i()).$to_s():h(r["$start_with?"]("-"))&&(r=e(i.$attr("leveloffset",0).$to_i(),r.$slice(1,r.$length()).$to_i()).$to_s())),h(d=i.$set_attribute(t,r))&&(r=d,h(o)&&l(c(ut,"Document"),"AttributeEntry").$new(t,r).$save_to(o))):h(h(a=i.$delete_attribute(t))?o:a)&&l(c(ut,"Document"),"AttributeEntry").$new(t,r).$save_to(o):h(o)&&l(c(ut,"Document"),"AttributeEntry").$new(t,r).$save_to(o),[t,r]},Z.$$arity=-3),t.defs(ct,"$resolve_list_marker",J=function(t,e,n,r,i){var o=this;return null==n&&(n=0),null==r&&(r=!1),null==i&&(i=s),t["$=="]("ulist")?e:t["$=="]("olist")?o.$resolve_ordered_list_marker(e,n,r,i)["$[]"](0):"<1>"},J.$$arity=-3),t.defs(ct,"$resolve_ordered_list_marker",Q=function(t,e,r,i){var o,a,l=this,u=s,d=s,$=s,m=s;return null==e&&(e=0),null==r&&(r=!1),null==i&&(i=s),h(t["$start_with?"]("."))?[t]:(u=d=f(c(ut,"ORDERED_LIST_STYLES"),"find",[],(o=function(e){o.$$s;return null==e&&(e=s),c(ut,"OrderedListMarkerRxMap")["$[]"](e)["$match?"](t)},o.$$s=l,o.$$arity=1,o)),"arabic"["$==="](u)?(h(r)&&($=n(e,1),m=t.$to_i()),t="1."):"loweralpha"["$==="](u)?(h(r)&&($=n("a"["$[]"](0).$ord(),e).$chr(),m=t.$chop()),t="a."):"upperalpha"["$==="](u)?(h(r)&&($=n("A"["$[]"](0).$ord(),e).$chr(),m=t.$chop()),t="A."):"lowerroman"["$==="](u)?(h(r)&&($=c(ut,"Helpers").$int_to_roman(n(e,1)).$downcase(),m=t.$chop()),t="i)"):"upperroman"["$==="](u)&&(h(r)&&($=c(ut,"Helpers").$int_to_roman(n(e,1)),m=t.$chop()),t="I)"),h(h(a=r)?$["$!="](m):a)&&l.$logger().$warn(l.$message_with_context("list item index: expected "+$+", got "+m,p(["source_location"],{source_location:i.$cursor()}))),[t,d])},Q.$$arity=-2),t.defs(ct,"$is_sibling_list_item?",tt=function(t,e,n){var r,i,o=this;return h(l("::","Regexp")["$==="](n))?n["$match?"](t):h(r=c(ut,"ListRxMap")["$[]"](e)["$=~"](t))?n["$=="](o.$resolve_list_marker(e,(i=$["~"])===s?s:i["$[]"](1))):r},tt.$$arity=3),t.defs(ct,"$parse_table",et=function(r,o,a){var u,d,p,$,m=this,g=s,v=s,y=s,_=s,b=s,w=s,x=s,k=s,S=s,O=s,C=s,A=s,E=s,T=s,P=s,B=s,L=s,I=s,D=s;g=c(ut,"Table").$new(o,a),h(h(u=a["$key?"]("cols"))?(v=m.$parse_colspecs(a["$[]"]("cols")))["$empty?"]()["$!"]():u)&&(g.$create_columns(v),y=!0),_=h(u=r.$skip_blank_lines())?u:0,b=l(c(ut,"Table"),"ParserContext").$new(r,g,a),u=[b.$format(),-1,s],w=u[0],x=u[1],k=u[2],h(h(u=h(d=i(_,0))?d:a["$[]"]("header-option"))?u:a["$[]"]("noheader-option"))||(S=!0),u=!1;while(u||h(O=r.$read_line())){u=!1,h(h(d=C=i(x=n(x,1),0))?O["$empty?"]():d)?(O=s,h(k)&&(k=n(k,1))):w["$=="]("psv")&&(h(b["$starts_with_delimiter?"](O))?(O=O.$slice(1,O.$length()),b.$close_open_cell(),h(k)&&(k=s)):(p=m.$parse_cellspec(O,"start",b.$delimiter()),d=t.to_ary(p),A=null==d[0]?s:d[0],O=null==d[1]?s:d[1],h(A)?(b.$close_open_cell(A),h(k)&&(k=s)):h(h(d=k)?k["$=="](x):d)&&(d=[!1,s],S=d[0],k=d[1]))),h(C)||(r.$mark(),h(S)&&(h(h(d=r["$has_more_lines?"]())?r.$peek_line()["$empty?"]():d)?k=1:S=!1)),d=!1;while(d||h(!0)){if(d=!1,!h(h(p=O)?E=b.$match_delimiter(O):p)){L=[""+b.$buffer()+O+c(ut,"LF")],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)],B=w,"csv"["$==="](B)?h(b["$buffer_has_unclosed_quotes?"]())?(h(h(p=k)?x["$=="](0):p)&&(p=[!1,s],S=p[0],k=p[1]),b.$keep_cell_open()):b.$close_cell(!0):"dsv"["$==="](B)?b.$close_cell(!0):b.$keep_cell_open();break}if(p=[E.$pre_match(),E.$post_match()],T=p[0],P=p[1],B=w,"csv"["$==="](B)){if(h(b["$buffer_has_unclosed_quotes?"](T))){if(b.$skip_past_delimiter(T),h((O=P)["$empty?"]()))break;d=!0;continue}L=[""+b.$buffer()+T],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)]}else if("dsv"["$==="](B)){if(h(T["$end_with?"]("\\"))){if(b.$skip_past_escaped_delimiter(T),h((O=P)["$empty?"]())){L=[""+b.$buffer()+c(ut,"LF")],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)],b.$keep_cell_open();break}d=!0;continue}L=[""+b.$buffer()+T],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)]}else{if(h(T["$end_with?"]("\\"))){if(b.$skip_past_escaped_delimiter(T),h((O=P)["$empty?"]())){L=[""+b.$buffer()+c(ut,"LF")],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)],b.$keep_cell_open();break}d=!0;continue}$=m.$parse_cellspec(T),p=t.to_ary($),A=null==p[0]?s:p[0],I=null==p[1]?s:p[1],b.$push_cellspec(A),L=[""+b.$buffer()+I],f(b,"buffer=",t.to_a(L)),L[e(L["length"],1)]}h((O=P)["$empty?"]())&&(O=s),b.$close_cell()}if(h(b["$cell_open?"]()))h(r["$has_more_lines?"]())||b.$close_cell(!0);else if(!h(d=r.$skip_blank_lines()))break}return h(h(u=(D=g.$attributes(),h(d=D["$[]"]("colcount"))?d:(L=["colcount",g.$columns().$size()],f(D,"[]=",t.to_a(L)),L[e(L["length"],1)]))["$=="](0))?u:y)||g.$assign_column_widths(),h(S)&&(L=[!0],f(g,"has_header_option=",t.to_a(L)),L[e(L["length"],1)],L=["header-option",""],f(a,"[]=",t.to_a(L)),L[e(L["length"],1)]),g.$partition_header_footer(a),g},et.$$arity=3),t.defs(ct,"$parse_colspecs",nt=function(n){var r,i,o=this,a=s;return h(n["$include?"](" "))&&(n=n.$delete(" ")),n["$=="](n.$to_i().$to_s())?f(l("::","Array"),"new",[n.$to_i()],(r=function(){r.$$s;return p(["width"],{width:1})},r.$$s=o,r.$$arity=0,r)):(a=[],f(function(){return h(n["$include?"](","))?n.$split(",",-1):n.$split(";",-1)}(),"each",[],(i=function(n){var r,o,l,u=i.$$s||this,d=s,$=s,m=s,g=s,v=s,y=s;return null==n&&(n=s),h(n["$empty?"]())?a["$<<"](p(["width"],{width:1})):h(d=c(ut,"ColumnSpecRx").$match(n))?($=p([],{}),h(d["$[]"](2))&&(o=d["$[]"](2).$split("."),r=t.to_ary(o),m=null==r[0]?s:r[0],g=null==r[1]?s:r[1],h(h(r=m["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellHorzAlignments")["$key?"](m):r)&&(v=["halign",c(ut,"TableCellHorzAlignments")["$[]"](m)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(h(r=g["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellVertAlignments")["$key?"](g):r)&&(v=["valign",c(ut,"TableCellVertAlignments")["$[]"](g)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)])),h(y=d["$[]"](3))?(v=["width",function(){return y["$=="]("~")?-1:y.$to_i()}()],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]):(v=["width",1],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(h(r=d["$[]"](4))?c(ut,"TableCellStyles")["$key?"](d["$[]"](4)):r)&&(v=["style",c(ut,"TableCellStyles")["$[]"](d["$[]"](4))],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(d["$[]"](1))?f(1,"upto",[d["$[]"](1).$to_i()],(l=function(){l.$$s;return a["$<<"]($.$merge())},l.$$s=u,l.$$arity=0,l)):a["$<<"]($)):s},i.$$s=o,i.$$arity=1,i)),a)},nt.$$arity=1),t.defs(ct,"$parse_cellspec",rt=function(n,r,i){var o,a,l=s,u=s,d=s,$=s,m=s,g=s,v=s;if(null==r&&(r="end"),null==i&&(i=s),o=[s,""],l=o[0],u=o[1],r["$=="]("start")){if(!h(n["$include?"](i)))return[s,n];if(a=n.$partition(i),o=t.to_ary(a),d=null==o[0]?s:o[0],i=null==o[1]?s:o[1],u=null==o[2]?s:o[2],!h(l=c(ut,"CellSpecStartRx").$match(d)))return[s,n];if(h(l["$[]"](0)["$empty?"]()))return[p([],{}),u]}else{if(!h(l=c(ut,"CellSpecEndRx").$match(n)))return[p([],{}),n];if(h(l["$[]"](0).$lstrip()["$empty?"]()))return[p([],{}),n.$rstrip()];u=l.$pre_match()}return $=p([],{}),h(l["$[]"](1))&&(a=l["$[]"](1).$split("."),o=t.to_ary(a),m=null==o[0]?s:o[0],g=null==o[1]?s:o[1],m=function(){return h(m["$nil_or_empty?"]())?1:m.$to_i()}(),g=function(){return h(g["$nil_or_empty?"]())?1:g.$to_i()}(),l["$[]"](2)["$=="]("+")?(m["$=="](1)||(v=["colspan",m],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),g["$=="](1)||(v=["rowspan",g],f($,"[]=",t.to_a(v)),v[e(v["length"],1)])):l["$[]"](2)["$=="]("*")&&(m["$=="](1)||(v=["repeatcol",m],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]))),h(l["$[]"](3))&&(a=l["$[]"](3).$split("."),o=t.to_ary(a),m=null==o[0]?s:o[0],g=null==o[1]?s:o[1],h(h(o=m["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellHorzAlignments")["$key?"](m):o)&&(v=["halign",c(ut,"TableCellHorzAlignments")["$[]"](m)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),h(h(o=g["$nil_or_empty?"]()["$!"]())?c(ut,"TableCellVertAlignments")["$key?"](g):o)&&(v=["valign",c(ut,"TableCellVertAlignments")["$[]"](g)],f($,"[]=",t.to_a(v)),v[e(v["length"],1)])),h(h(o=l["$[]"](4))?c(ut,"TableCellStyles")["$key?"](l["$[]"](4)):o)&&(v=["style",c(ut,"TableCellStyles")["$[]"](l["$[]"](4))],f($,"[]=",t.to_a(v)),v[e(v["length"],1)]),[$,u]},rt.$$arity=-2),t.defs(ct,"$parse_style_attribute",it=function(r,i){var o,a,l,u,d=this,$=s,m=s,g=s,v=s,y=s,_=s,b=s;return null==i&&(i=s),h(h(o=h(a=$=r["$[]"](1))?$["$include?"](" ")["$!"]():a)?c(ut,"Compliance").$shorthand_property_syntax():o)?(m=s,g="",v=p([],{}),f($,"each_char",[],(l=function(t){var e=l.$$s||this,r=s;return null==t&&(t=s),function(){return r=t,"."["$==="](r)?(e.$yield_buffered_attribute(v,m,g,i),g="",m="role"):"#"["$==="](r)?(e.$yield_buffered_attribute(v,m,g,i),g="",m="id"):"%"["$==="](r)?(e.$yield_buffered_attribute(v,m,g,i),g="",m="option"):g=n(g,t)}()},l.$$s=d,l.$$arity=1,l)),h(m)?(d.$yield_buffered_attribute(v,m,g,i),h(y=v["$[]"]("style"))&&(_=["style",y],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]),h(v["$key?"]("id"))&&(_=["id",v["$[]"]("id")],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]),h(v["$key?"]("role"))&&(_=["role",function(){return h((b=r["$[]"]("role"))["$nil_or_empty?"]())?v["$[]"]("role").$join(" "):b+" "+v["$[]"]("role").$join(" ")}()],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]),h(v["$key?"]("option"))&&f(v["$[]"]("option"),"each",[],(u=function(n){u.$$s;return null==n&&(n=s),_=[n+"-option",""],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)]},u.$$s=d,u.$$arity=1,u)),y):(_=["style",$],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)])):(_=["style",$],f(r,"[]=",t.to_a(_)),_[e(_["length"],1)])},it.$$arity=-2),t.defs(ct,"$yield_buffered_attribute",ot=function(n,r,i,o){var a,l=this,c=s;return h(r)?h(i["$empty?"]())?h(o)?l.$logger().$warn(l.$message_with_context("invalid empty "+r+" detected in style attribute",p(["source_location"],{source_location:o.$cursor_at_prev_line()}))):l.$logger().$warn("invalid empty "+r+" detected in style attribute"):r["$=="]("id")?(h(n["$key?"]("id"))&&(h(o)?l.$logger().$warn(l.$message_with_context("multiple ids detected in style attribute",p(["source_location"],{source_location:o.$cursor_at_prev_line()}))):l.$logger().$warn("multiple ids detected in style attribute")),c=[r,i],f(n,"[]=",t.to_a(c)),c[e(c["length"],1)]):(h(a=n["$[]"](r))?a:(c=[r,[]],f(n,"[]=",t.to_a(c)),c[e(c["length"],1)]))["$<<"](i):h(i["$empty?"]())||(c=["style",i],f(n,"[]=",t.to_a(c)),c[e(c["length"],1)]),s},ot.$$arity=4),t.defs(ct,"$adjust_indentation!",at=function(a,l,u){var d,p,$,m,g,v,y,_=this,b=s,w=s,x=s;return null==l&&(l=0),null==u&&(u=0),h(a["$empty?"]())?s:(h(h(d=i(u,0))?f(a,"any?",[],(p=function(t){p.$$s;return null==t&&(t=s),t["$include?"](c(ut,"TAB"))},p.$$s=_,p.$$arity=1,p)):d)&&(b=o(" ",u),function(){var r=t.new_brk();try{f(a,"map!",[],($=function(r){var i,a,l=$.$$s||this,d=s,p=s,m=s,g=s,v=s;return null==r&&(r=s),h(r["$empty?"]())?r:h(d=r.$index(c(ut,"TAB")))?d["$=="](0)&&(p=0,function(){var e=t.new_brk();try{f(r,"each_byte",[],(i=function(r){i.$$s;return null==r&&(r=s),r["$=="](9)||t.brk(s,e),p=n(p,1)},i.$$s=l,i.$$brk=e,i.$$arity=1,i))}catch(o){if(o===e)return o.$v;throw o}}(),r=""+o(b,p)+r.$slice(p,r.$length()),!h(r["$include?"](c(ut,"TAB"))))?r:(m=0,g=0,v="",f(r,"each_char",[],(a=function(t){a.$$s;var r=s,i=s;return null==t&&(t=s),t["$=="](c(ut,"TAB"))?(r=n(g,m))["$%"](u)["$=="](0)?(m=n(m,e(u,1)),v=n(v,b)):((i=e(u,r["$%"](u)))["$=="](1)||(m=n(m,e(i,1))),v=n(v,o(" ",i))):v=n(v,t),g=n(g,1)},a.$$s=l,a.$$arity=1,a)),v):r},$.$$s=_,$.$$brk=r,$.$$arity=1,$))}catch(i){if(i===r)return i.$v;throw i}}()),h(r(l,0))||(w=s,function(){var n=t.new_brk();try{f(a,"each",[],(m=function(i){m.$$s;var o,a=s;return null==i&&(i=s),h(i["$empty?"]())?s:((a=e(i.$length(),i.$lstrip().$length()))["$=="](0)&&(w=s,t.brk(s,n)),h(h(o=w)?r(w,a):o)?s:w=a)},m.$$s=_,m.$$brk=n,m.$$arity=1,m))}catch(i){if(i===n)return i.$v;throw i}}(),l["$=="](0)?h(w)&&f(a,"map!",[],(g=function(t){g.$$s;return null==t&&(t=s),h(t["$empty?"]())?t:t.$slice(w,t.$length())},g.$$s=_,g.$$arity=1,g)):(x=o(" ",l),h(w)?f(a,"map!",[],(v=function(t){v.$$s;return null==t&&(t=s),h(t["$empty?"]())?t:n(x,t.$slice(w,t.$length()))},v.$$s=_,v.$$arity=1,v)):f(a,"map!",[],(y=function(t){y.$$s;return null==t&&(t=s),h(t["$empty?"]())?t:n(x,t)},y.$$s=_,y.$$arity=1,y)))),s)},at.$$arity=-2),t.defs(ct,"$uniform?",st=function(t,e,n){return t.$count(e)["$=="](n)},st.$$arity=3),t.defs(ct,"$sanitize_attribute_name",lt=function(t){return t.$gsub(c(ut,"InvalidAttributeNameCharsRx"),"").$downcase()},lt.$$arity=1)})(v[0],null,v)}(a[0],a)},Opal.modules["asciidoctor/path_resolver"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.truthy,d=t.hash2,f=t.send,h=t.gvars;return t.add_stubs(["$include","$attr_accessor","$root?","$posixify","$expand_path","$pwd","$start_with?","$==","$match?","$absolute_path?","$+","$length","$descends_from?","$slice","$to_s","$relative_path_from","$new","$include?","$tr","$partition_path","$each","$pop","$<<","$join_path","$[]","$web_root?","$unc?","$index","$split","$delete","$[]=","$-","$join","$raise","$!","$fetch","$warn","$logger","$empty?","$nil_or_empty?","$chomp","$!=","$>","$size","$extract_uri_prefix","$end_with?","$gsub","$private","$=~"]),function(i,p){var $=l(i,"Asciidoctor"),m=[$].concat(p);(function(i,l,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E=c(i,l,"PathResolver"),T=[E].concat(p);E.$$prototype.file_separator=E.$$prototype._partition_path_web=E.$$prototype._partition_path_sys=E.$$prototype.working_dir=o,E.$include(s(T,"Logging")),t.const_set(T[0],"DOT","."),t.const_set(T[0],"DOT_DOT",".."),t.const_set(T[0],"DOT_SLASH","./"),t.const_set(T[0],"SLASH","/"),t.const_set(T[0],"BACKSLASH","\\"),t.const_set(T[0],"DOUBLE_SLASH","//"),t.const_set(T[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),E.$attr_accessor("file_separator"),E.$attr_accessor("working_dir"),t.def(E,"$initialize",$=function(t,e){var n,r,i=this;return null==t&&(t=o),null==e&&(e=o),i.file_separator=u(n=u(r=t)?r:a(a("::","File"),"ALT_SEPARATOR"))?n:a(a("::","File"),"SEPARATOR"),i.working_dir=function(){return u(e)?u(i["$root?"](e))?i.$posixify(e):a("::","File").$expand_path(e):a("::","Dir").$pwd()}(),i._partition_path_sys=d([],{}),i._partition_path_web=d([],{})},$.$$arity=-1),t.def(E,"$absolute_path?",m=function(t){var e,n=this;return u(e=t["$start_with?"](s(T,"SLASH")))?e:n.file_separator["$=="](s(T,"BACKSLASH"))?s(T,"WindowsRootRx")["$match?"](t):n.file_separator["$=="](s(T,"BACKSLASH"))},m.$$arity=1),u(s(T,"RUBY_ENGINE")["$=="]("opal")?a("::","JAVASCRIPT_IO_MODULE")["$=="]("xmlhttprequest"):s(T,"RUBY_ENGINE")["$=="]("opal"))?t.def(E,"$root?",g=function(t){var e,n=this;return u(e=n["$absolute_path?"](t))?e:t["$start_with?"]("file://","http://","https://")},g.$$arity=1):t.alias(E,"root?","absolute_path?"),t.def(E,"$unc?",v=function(t){return t["$start_with?"](s(T,"DOUBLE_SLASH"))},v.$$arity=1),t.def(E,"$web_root?",y=function(t){return t["$start_with?"](s(T,"SLASH"))},y.$$arity=1),t.def(E,"$descends_from?",_=function(t,n){var r;return n["$=="](t)?0:n["$=="](s(T,"SLASH"))?u(r=t["$start_with?"](s(T,"SLASH")))?1:r:u(r=t["$start_with?"](e(n,s(T,"SLASH"))))?e(n.$length(),1):r},_.$$arity=2),t.def(E,"$relative_path",b=function(e,n){var r=this,i=o;if(!u(r["$root?"](e)))return e;if(u(i=r["$descends_from?"](e,n)))return e.$slice(i,e.$length());try{return s(T,"Pathname").$new(e).$relative_path_from(s(T,"Pathname").$new(n)).$to_s()}catch(a){if(!t.rescue(a,[s(T,"StandardError")]))throw a;try{return e}finally{t.pop_exception()}}},b.$$arity=2),t.def(E,"$posixify",w=function(t){var e=this;return u(t)?u(e.file_separator["$=="](s(T,"BACKSLASH"))?t["$include?"](s(T,"BACKSLASH")):e.file_separator["$=="](s(T,"BACKSLASH")))?t.$tr(s(T,"BACKSLASH"),s(T,"SLASH")):t:""},w.$$arity=1),t.alias(E,"posixfy","posixify"),t.def(E,"$expand_path",x=function(e){var n,r,i,a=this,l=o,c=o,d=o;return r=a.$partition_path(e),n=t.to_ary(r),l=null==n[0]?o:n[0],c=null==n[1]?o:n[1],u(e["$include?"](s(T,"DOT_DOT")))?(d=[],f(l,"each",[],(i=function(t){i.$$s;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?d.$pop():d["$<<"](t)},i.$$s=a,i.$$arity=1,i)),a.$join_path(d,c)):a.$join_path(l,c)},x.$$arity=1),t.def(E,"$partition_path",k=function(r,i){var a=this,l=o,c=o,d=o,h=o,p=o,$=o;return null==i&&(i=o),u(l=(c=function(){return u(i)?a._partition_path_web:a._partition_path_sys}())["$[]"](r))?l:(d=a.$posixify(r),u(i)?u(a["$web_root?"](d))?h=s(T,"SLASH"):u(d["$start_with?"](s(T,"DOT_SLASH")))&&(h=s(T,"DOT_SLASH")):u(a["$root?"](d))?h=u(a["$unc?"](d))?s(T,"DOUBLE_SLASH"):u(d["$start_with?"](s(T,"SLASH")))?s(T,"SLASH"):d.$slice(0,e(d.$index(s(T,"SLASH")),1)):u(d["$start_with?"](s(T,"DOT_SLASH")))&&(h=s(T,"DOT_SLASH")),p=function(){return u(h)?d.$slice(h.$length(),d.$length()):d}().$split(s(T,"SLASH")),p.$delete(s(T,"DOT")),$=[r,[p,h]],f(c,"[]=",t.to_a($)),$[n($["length"],1)])},k.$$arity=-2),t.def(E,"$join_path",S=function(t,e){return null==e&&(e=o),u(e)?""+e+t.$join(s(T,"SLASH")):t.$join(s(T,"SLASH"))},S.$$arity=-2),t.def(E,"$system_path",O=function(n,i,l,c){var h,p,$,m,g=this,v=o,y=o,_=o,b=o,w=o,x=o,k=o,S=o,O=o,C=o;if(null==i&&(i=o),null==l&&(l=o),null==c&&(c=d([],{})),u(l)&&(u(g["$root?"](l))||g.$raise(a("::","SecurityError"),"Jail is not an absolute path: "+l),l=g.$posixify(l)),u(n)){if(u(g["$root?"](n))){if(v=g.$expand_path(n),u(u(h=l)?g["$descends_from?"](v,l)["$!"]():h)){if(u(c.$fetch("recover",!0)))return g.$logger().$warn((u(h=c["$[]"]("target_name"))?h:"path")+" is outside of jail; recovering automatically"),p=g.$partition_path(v),h=t.to_ary(p),y=null==h[0]?o:h[0],null==h[1]?o:h[1],p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],b=null==h[1]?o:h[1],g.$join_path(e(_,y),b);g.$raise(a("::","SecurityError"),(u(h=c["$[]"]("target_name"))?h:"path")+" "+n+" is outside of jail: "+l+" (disallowed in safe mode)")}return v}p=g.$partition_path(n),h=t.to_ary(p),y=null==h[0]?o:h[0],null==h[1]?o:h[1]}else y=[];if(u(y["$empty?"]())){if(u(i["$nil_or_empty?"]()))return u(h=l)?h:g.working_dir;if(u(g["$root?"](i))){if(!u(l))return g.$expand_path(i);i=g.$posixify(i)}else p=g.$partition_path(i),h=t.to_ary(p),y=null==h[0]?o:h[0],null==h[1]?o:h[1],i=u(h=l)?h:g.working_dir}else u(i["$nil_or_empty?"]())?i=u(h=l)?h:g.working_dir:u(g["$root?"](i))?u(l)&&(i=g.$posixify(i)):i=(u(h=l)?h:g.working_dir).$chomp("/")+"/"+i;return u(u(h=u(p=l)?w=g["$descends_from?"](i,l)["$!"]():p)?g.file_separator["$=="](s(T,"BACKSLASH")):h)?(p=g.$partition_path(i),h=t.to_ary(p),x=null==h[0]?o:h[0],k=null==h[1]?o:h[1],p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],b=null==h[1]?o:h[1],u(k["$!="](b))&&(u(c.$fetch("recover",!0))?(g.$logger().$warn("start path for "+(u(h=c["$[]"]("target_name"))?h:"path")+" is outside of jail root; recovering automatically"),x=_,w=!1):g.$raise(a("::","SecurityError"),"start path for "+(u(h=c["$[]"]("target_name"))?h:"path")+" "+i+" refers to location outside jail root: "+l+" (disallowed in safe mode)"))):(p=g.$partition_path(i),h=t.to_ary(p),x=null==h[0]?o:h[0],b=null==h[1]?o:h[1]),u((S=e(x,y))["$include?"](s(T,"DOT_DOT")))&&(h=[S,[]],O=h[0],S=h[1],u(l)?(u(_)||(p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],null==h[1]?o:h[1]),C=!1,f(O,"each",[],($=function(t){var e,i=$.$$s||this;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?u(r(S.$size(),_.$size()))?S.$pop():u(c.$fetch("recover",!0))?u(C)?o:(i.$logger().$warn((u(e=c["$[]"]("target_name"))?e:"path")+" has illegal reference to ancestor of jail; recovering automatically"),C=!0):i.$raise(a("::","SecurityError"),(u(e=c["$[]"]("target_name"))?e:"path")+" "+n+" refers to location outside jail: "+l+" (disallowed in safe mode)"):S["$<<"](t)},$.$$s=g,$.$$arity=1,$))):f(O,"each",[],(m=function(t){m.$$s;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?S.$pop():S["$<<"](t)},m.$$s=g,m.$$arity=1,m))),u(w)?(v=g.$join_path(S,b),u(g["$descends_from?"](v,l))?v:u(c.$fetch("recover",!0))?(g.$logger().$warn((u(h=c["$[]"]("target_name"))?h:"path")+" is outside of jail; recovering automatically"),u(_)||(p=g.$partition_path(l),h=t.to_ary(p),_=null==h[0]?o:h[0],null==h[1]?o:h[1]),g.$join_path(e(_,y),b)):g.$raise(a("::","SecurityError"),(u(h=c["$[]"]("target_name"))?h:"path")+" "+n+" is outside of jail: "+l+" (disallowed in safe mode)")):g.$join_path(S,b)},O.$$arity=-2),t.def(E,"$web_path",C=function(e,n){var r,i,a,l=this,c=o,d=o,h=o,p=o,$=o;return null==n&&(n=o),e=l.$posixify(e),n=l.$posixify(n),u(u(r=n["$nil_or_empty?"]())?r:l["$web_root?"](e))||(i=l.$extract_uri_prefix(""+n+function(){return u(n["$end_with?"](s(T,"SLASH")))?"":s(T,"SLASH")}()+e),r=t.to_ary(i),e=null==r[0]?o:r[0],c=null==r[1]?o:r[1]),i=l.$partition_path(e,!0),r=t.to_ary(i),d=null==r[0]?o:r[0],h=null==r[1]?o:r[1],p=[],f(d,"each",[],(a=function(t){var e;a.$$s;return null==t&&(t=o),t["$=="](s(T,"DOT_DOT"))?u(p["$empty?"]())?u(u(e=h)?h["$!="](s(T,"DOT_SLASH")):e)?o:p["$<<"](t):p["$[]"](-1)["$=="](s(T,"DOT_DOT"))?p["$<<"](t):p.$pop():p["$<<"](t)},a.$$s=l,a.$$arity=1,a)),u(($=l.$join_path(p,h))["$include?"](" "))&&($=$.$gsub(" ","%20")),u(c)?""+c+$:$},C.$$arity=-2),E.$private(),t.def(E,"$extract_uri_prefix",A=function(t){var e;return u(u(e=t["$include?"](":"))?s(T,"UriSniffRx")["$=~"](t):e)?[t.$slice(((e=h["~"])===o?o:e["$[]"](0)).$length(),t.$length()),(e=h["~"])===o?o:e["$[]"](0)]:t},A.$$arity=1)})(m[0],null,m)}(i[0],i)},Opal.modules["asciidoctor/reader"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function s(t,e){return"number"===typeof t&&"number"===typeof e?t/e:t["$/"](e)}t.top;var l=[],c=t.nil,u=t.const_get_qualified,d=t.const_get_relative,f=(t.breaker,t.slice,t.module),h=t.klass,p=t.hash2,$=t.truthy,m=t.send,g=t.gvars,v=t.hash;return t.add_stubs(["$include","$attr_reader","$+","$attr_accessor","$!","$===","$split","$file","$dir","$dirname","$path","$basename","$lineno","$prepare_lines","$drop","$empty?","$nil_or_empty?","$peek_line","$>","$slice","$[]","$length","$process_line","$times","$shift","$read_line","$<<","$-","$unshift_all","$has_more_lines?","$join","$read_lines","$unshift","$start_with?","$==","$*","$read_lines_until","$size","$clear","$cursor","$[]=","$!=","$fetch","$cursor_at_mark","$warn","$logger","$message_with_context","$new","$tap","$each","$instance_variables","$instance_variable_get","$instance_variable_set","$class","$object_id","$inspect","$private","$prepare_source_array","$prepare_source_string","$valid_encoding?","$to_s","$raise","$to_i","$attributes","$catalog","$pop_include","$parse","$path=","$dup","$end_with?","$keys","$rindex","$rootname","$key?","$attr","$>=","$nil?","$extensions?","$include_processors?","$extensions","$include_processors","$map","$skip_front_matter!","$pop","$adjust_indentation!","$include?","$=~","$preprocess_conditional_directive","$preprocess_include_directive","$downcase","$error","$none?","$any?","$all?","$strip","$send","$resolve_expr_val","$replace_next_line","$rstrip","$sub_attributes","$attribute_missing","$info","$parse_attributes","$find","$handles?","$instance","$process_method","$safe","$resolve_include_path","$method","$split_delimited_value","$partition","$<","$/","$to_a","$uniq","$sort","$call","$each_line","$infinite?","$push_include","$delete","$value?","$create_include_cursor","$delete_at","$read","$uriish?","$attr?","$require_library","$normalize_system_path","$file?","$relative_path","$path_resolver","$base_dir","$to_f"]),function(l,y){var _=f(l,"Asciidoctor"),b=[_].concat(y);(function(o,a,s){var l,f,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J=h(o,a,"Reader"),Q=[J].concat(s);J.$$prototype.file=J.$$prototype.lines=J.$$prototype.look_ahead=J.$$prototype.unescape_next_line=J.$$prototype.lineno=J.$$prototype.process_lines=J.$$prototype.dir=J.$$prototype.path=J.$$prototype.mark=J.$$prototype.source_lines=J.$$prototype.saved=c,J.$include(d(Q,"Logging")),function(n,r,i){var o,a,s,l=h(n,r,"Cursor");[l].concat(i);l.$$prototype.lineno=l.$$prototype.path=c,l.$attr_reader("file","dir","path","lineno"),t.def(l,"$initialize",o=function(t,e,n,r){var i,o=this;return null==e&&(e=c),null==n&&(n=c),null==r&&(r=1),i=[t,e,n,r],o.file=i[0],o.dir=i[1],o.path=i[2],o.lineno=i[3],i},o.$$arity=-2),t.def(l,"$advance",a=function(t){var n=this;return n.lineno=e(n.lineno,t)},a.$$arity=1),t.def(l,"$line_info",s=function(){var t=this;return t.path+": line "+t.lineno},s.$$arity=0),t.alias(l,"to_s","line_info")}(Q[0],null,Q),J.$attr_reader("file"),J.$attr_reader("dir"),J.$attr_reader("path"),J.$attr_reader("lineno"),J.$attr_reader("source_lines"),J.$attr_accessor("process_lines"),J.$attr_accessor("unterminated"),t.def(J,"$initialize",l=function(e,n,r){var i,o,a=this;return null==e&&(e=c),null==n&&(n=c),null==r&&(r=p([],{})),$(n["$!"]())?(a.file=c,a.dir=".",a.path="<stdin>",a.lineno=1):$(u("::","String")["$==="](n))?(a.file=n,o=u("::","File").$split(a.file),i=t.to_ary(o),a.dir=null==i[0]?c:i[0],a.path=null==i[1]?c:i[1],a.lineno=1):($(a.file=n.$file())?(a.dir=$(i=n.$dir())?i:u("::","File").$dirname(a.file),a.path=$(i=n.$path())?i:u("::","File").$basename(a.file)):(a.dir=$(i=n.$dir())?i:".",a.path=$(i=n.$path())?i:"<stdin>"),a.lineno=$(i=n.$lineno())?i:1),a.lines=a.$prepare_lines(e,r),a.source_lines=a.lines.$drop(0),a.mark=c,a.look_ahead=0,a.process_lines=!0,a.unescape_next_line=!1,a.unterminated=c,a.saved=c},l.$$arity=-1),t.def(J,"$has_more_lines?",f=function(){var t=this;return!$(t.lines["$empty?"]())||(t.look_ahead=0,!1)},f.$$arity=0),t.def(J,"$empty?",g=function(){var t=this;return!!$(t.lines["$empty?"]())&&(t.look_ahead=0,!0)},g.$$arity=0),t.alias(J,"eof?","empty?"),t.def(J,"$next_line_empty?",v=function(){var t=this;return t.$peek_line()["$nil_or_empty?"]()},v.$$arity=0),t.def(J,"$peek_line",y=function(t){var e,r=this,i=c;return null==t&&(t=!1),$($(e=t)?e:n(r.look_ahead,0))?$(r.unescape_next_line)?(i=r.lines["$[]"](0)).$slice(1,i.$length()):r.lines["$[]"](0):$(r.lines["$empty?"]())?(r.look_ahead=0,c):$(i=r.$process_line(r.lines["$[]"](0)))?i:r.$peek_line()},y.$$arity=-1),t.def(J,"$peek_lines",_=function(e,n){var i,o,a=this,s=c,l=c;return null==e&&(e=c),null==n&&(n=!1),s=a.look_ahead,l=[],function(){var s=t.new_brk();try{m($(i=e)?i:d(Q,"MAX_INT"),"times",[],(o=function(){var e=o.$$s||this,i=c;if(null==e.lineno&&(e.lineno=c),$(i=function(){return $(n)?e.$shift():e.$read_line()}()))return l["$<<"](i);$(n)&&(e.lineno=r(e.lineno,1)),t.brk(c,s)},o.$$s=a,o.$$brk=s,o.$$arity=0,o))}catch(u){if(u===s)return u.$v;throw u}}(),$(l["$empty?"]())||(a.$unshift_all(l),$(n)&&(a.look_ahead=s)),l},_.$$arity=-1),t.def(J,"$read_line",b=function(){var t,e=this;return $($(t=n(e.look_ahead,0))?t:e["$has_more_lines?"]())?e.$shift():c},b.$$arity=0),t.def(J,"$read_lines",w=function(){var t=this,e=c;e=[];while($(t["$has_more_lines?"]()))e["$<<"](t.$shift());return e},w.$$arity=0),t.alias(J,"readlines","read_lines"),t.def(J,"$read",x=function(){var t=this;return t.$read_lines().$join(d(Q,"LF"))},x.$$arity=0),t.def(J,"$advance",k=function(){var t=this;return!!$(t.$shift())},k.$$arity=0),t.def(J,"$unshift_line",S=function(t){var e=this;return e.$unshift(t),c},S.$$arity=1),t.alias(J,"restore_line","unshift_line"),t.def(J,"$unshift_lines",O=function(t){var e=this;return e.$unshift_all(t),c},O.$$arity=1),t.alias(J,"restore_lines","unshift_lines"),t.def(J,"$replace_next_line",C=function(t){var e=this;return e.$shift(),e.$unshift(t),!0},C.$$arity=1),t.alias(J,"replace_line","replace_next_line"),t.def(J,"$skip_blank_lines",A=function(){var t=this,n=c,r=c;if($(t["$empty?"]()))return c;n=0;while($(r=t.$peek_line())){if(!$(r["$empty?"]()))return n;t.$shift(),n=e(n,1)}},A.$$arity=0),t.def(J,"$skip_comment_lines",E=function(){var t,e=this,r=c,o=c;if($(e["$empty?"]()))return c;while($($(t=r=e.$peek_line())?r["$empty?"]()["$!"]():t)){if(!$(r["$start_with?"]("//")))break;if($(r["$start_with?"]("///"))){if(!$($(t=n(o=r.$length(),3))?r["$=="](i("/",o)):t))break;e.$read_lines_until(p(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:r,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}))}else e.$shift()}return c},E.$$arity=0),t.def(J,"$skip_line_comments",T=function(){var t,e=this,n=c,r=c;if($(e["$empty?"]()))return[];n=[];while($($(t=r=e.$peek_line())?r["$empty?"]()["$!"]():t)){if(!$(r["$start_with?"]("//")))break;n["$<<"](e.$shift())}return n},T.$$arity=0),t.def(J,"$terminate",P=function(){var t=this;return t.lineno=e(t.lineno,t.lines.$size()),t.lines.$clear(),t.look_ahead=0,c},P.$$arity=0),t.def(J,"$read_lines_until",B=function(e){var n,i,o,a,s=B.$$p,l=s||c,u=this,f=c,h=c,g=c,v=c,y=c,_=c,b=c,w=c,x=c,k=c,S=c,O=c,C=c;s&&(B.$$p=null),null==e&&(e=p([],{})),f=[],$($(n=u.process_lines)?e["$[]"]("skip_processing"):n)&&(u.process_lines=!1,h=!0),$(g=e["$[]"]("terminator"))?(v=$(n=e["$[]"]("cursor"))?n:u.$cursor(),y=!1,_=!1):(y=e["$[]"]("break_on_blank_lines"),_=e["$[]"]("break_on_list_continuation")),b=e["$[]"]("skip_line_comments"),w=x=k=c,$(e["$[]"]("skip_first_line"))&&u.$shift();while($($(i=w["$!"]())?S=u.$read_line():i))w=function(){while($(!0))return!!$($(o=g)?S["$=="](g):o)||(!!$($(o=y)?S["$empty?"]():o)||($($(o=$(a=_)?x:a)?S["$=="](d(Q,"LIST_CONTINUATION")):o)?(O=["preserve_last_line",!0],m(e,"[]=",t.to_a(O)),O[r(O["length"],1)],!0):!!$((o=l!==c)?t.yield1(l,S):l!==c)));return c}(),$(w)?($(e["$[]"]("read_last_line"))&&(f["$<<"](S),x=!0),$(e["$[]"]("preserve_last_line"))&&(u.$unshift(S),k=!0)):$($(i=$(o=b)?S["$start_with?"]("//"):o)?S["$start_with?"]("///")["$!"]():i)||(f["$<<"](S),x=!0);return $(h)&&(u.process_lines=!0,$($(n=k)?g["$!"]():n)&&(u.look_ahead=r(u.look_ahead,1))),$($(n=$(i=g)?g["$!="](S):i)?C=e.$fetch("context",g):n)&&(v["$=="]("at_mark")&&(v=u.$cursor_at_mark()),u.$logger().$warn(u.$message_with_context("unterminated "+C+" block",p(["source_location"],{source_location:v}))),u.unterminated=!0),f},B.$$arity=-1),t.def(J,"$shift",L=function(){var t=this;return t.lineno=e(t.lineno,1),t.look_ahead["$=="](0)||(t.look_ahead=r(t.look_ahead,1)),t.lines.$shift()},L.$$arity=0),t.def(J,"$unshift",I=function(t){var n=this;return n.lineno=r(n.lineno,1),n.look_ahead=e(n.look_ahead,1),n.lines.$unshift(t)},I.$$arity=1),t.def(J,"$unshift_all",D=function(n){var i=this;return i.lineno=r(i.lineno,n.$size()),i.look_ahead=e(i.look_ahead,n.$size()),m(i.lines,"unshift",t.to_a(n))},D.$$arity=1),t.def(J,"$cursor",R=function(){var t=this;return d(Q,"Cursor").$new(t.file,t.dir,t.path,t.lineno)},R.$$arity=0),t.def(J,"$cursor_at_line",j=function(t){var e=this;return d(Q,"Cursor").$new(e.file,e.dir,e.path,t)},j.$$arity=1),t.def(J,"$cursor_at_mark",M=function(){var e=this;return $(e.mark)?m(d(Q,"Cursor"),"new",t.to_a(e.mark)):e.$cursor()},M.$$arity=0),t.def(J,"$cursor_before_mark",F=function(){var e,n,i=this,o=c,a=c,s=c,l=c;return $(i.mark)?(n=i.mark,e=t.to_ary(n),o=null==e[0]?c:e[0],a=null==e[1]?c:e[1],s=null==e[2]?c:e[2],l=null==e[3]?c:e[3],d(Q,"Cursor").$new(o,a,s,r(l,1))):d(Q,"Cursor").$new(i.file,i.dir,i.path,r(i.lineno,1))},F.$$arity=0),t.def(J,"$cursor_at_prev_line",N=function(){var t=this;return d(Q,"Cursor").$new(t.file,t.dir,t.path,r(t.lineno,1))},N.$$arity=0),t.def(J,"$mark",z=function(){var t=this;return t.mark=[t.file,t.dir,t.path,t.lineno]},z.$$arity=0),t.def(J,"$line_info",H=function(){var t=this;return t.path+": line "+t.lineno},H.$$arity=0),t.def(J,"$lines",V=function(){var t=this;return t.lines.$drop(0)},V.$$arity=0),t.def(J,"$string",U=function(){var t=this;return t.lines.$join(d(Q,"LF"))},U.$$arity=0),t.def(J,"$source",q=function(){var t=this;return t.source_lines.$join(d(Q,"LF"))},q.$$arity=0),t.def(J,"$save",W=function(){var e,n=this;return n.saved=m(p([],{}),"tap",[],(e=function(n){var i,o=e.$$s||this;return null==n&&(n=c),m(o.$instance_variables(),"each",[],(i=function(e){var o,a=i.$$s||this,s=c,l=c;return null==e&&(e=c),$($(o=e["$=="]("@saved"))?o:e["$=="]("@source_lines"))?c:(s=[e,function(){return $(u("::","Array")["$==="](l=a.$instance_variable_get(e)))?l.$drop(0):l}()],m(n,"[]=",t.to_a(s)),s[r(s["length"],1)])},i.$$s=o,i.$$arity=1,i))},e.$$s=n,e.$$arity=1,e)),c},W.$$arity=0),t.def(J,"$restore_save",G=function(){var t,e=this;return $(e.saved)?(m(e.saved,"each",[],(t=function(e,n){var r=t.$$s||this;return null==e&&(e=c),null==n&&(n=c),r.$instance_variable_set(e,n)},t.$$s=e,t.$$arity=2,t)),e.saved=c):c},G.$$arity=0),t.def(J,"$discard_save",Y=function(){var t=this;return t.saved=c},Y.$$arity=0),t.def(J,"$to_s",K=function(){var t=this;return"#<"+t.$class()+"@"+t.$object_id()+" {path: "+t.path.$inspect()+", line: "+t.lineno+"}>"},K.$$arity=0),J.$private(),t.def(J,"$prepare_lines",X=function(e,n){var r=this;null==n&&(n=p([],{}));try{return $(n["$[]"]("normalize"))?$(u("::","Array")["$==="](e))?d(Q,"Helpers").$prepare_source_array(e):d(Q,"Helpers").$prepare_source_string(e):$(u("::","Array")["$==="](e))?e.$drop(0):$(e)?e.$split(d(Q,"LF"),-1):[]}catch(i){if(!t.rescue(i,[d(Q,"StandardError")]))throw i;try{return $(function(){return $(u("::","Array")["$==="](e))?e.$join():e.$to_s()}()["$valid_encoding?"]())?r.$raise():r.$raise(u("::","ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{t.pop_exception()}}},X.$$arity=-2),t.def(J,"$process_line",Z=function(t){var n=this;return $(n.process_lines)&&(n.look_ahead=e(n.look_ahead,1)),t},Z.$$arity=1)})(b[0],null,b),function(i,l,f){var y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F=h(i,l,"PreprocessorReader"),N=[F].concat(f);F.$$prototype.include_stack=F.$$prototype.lines=F.$$prototype.file=F.$$prototype.dir=F.$$prototype.path=F.$$prototype.lineno=F.$$prototype.maxdepth=F.$$prototype.process_lines=F.$$prototype.includes=F.$$prototype.document=F.$$prototype.unescape_next_line=F.$$prototype.include_processor_extensions=F.$$prototype.look_ahead=F.$$prototype.skipping=F.$$prototype.conditional_stack=c,F.$attr_reader("include_stack"),t.def(F,"$initialize",y=function(e,r,i,o){var a,s=y.$$p,l=this,u=c;return s&&(y.$$p=null),null==r&&(r=c),null==i&&(i=c),null==o&&(o=p([],{})),l.document=e,m(l,t.find_super_dispatcher(l,"initialize",y,!1),[r,i,o],null),$(n(u=($(a=e.$attributes()["$[]"]("max-include-depth"))?a:64).$to_i(),0))?l.maxdepth=p(["abs","curr","rel"],{abs:u,curr:u,rel:u}):l.maxdepth=c,l.include_stack=[],l.includes=e.$catalog()["$[]"]("includes"),l.skipping=!1,l.conditional_stack=[],l.include_processor_extensions=c},y.$$arity=-2),t.def(F,"$has_more_lines?",_=function(){var t=this;return!!$(t.$peek_line())},_.$$arity=0),t.def(F,"$empty?",b=function(){var t=this;return!$(t.$peek_line())},b.$$arity=0),t.alias(F,"eof?","empty?"),t.def(F,"$peek_line",w=function(e){var n=w.$$p,r=this,i=c,o=c,a=c,s=c;for(n&&(w.$$p=null),a=0,s=arguments.length,o=new Array(s);a<s;a++)o[a]=arguments[a];return null==e&&(e=!1),$(i=m(r,t.find_super_dispatcher(r,"peek_line",w,!1),o,n))?i:$(r.include_stack["$empty?"]())?c:(r.$pop_include(),r.$peek_line(e))},w.$$arity=-1),t.def(F,"$push_include",x=function(i,o,a,s,l){var f,h=this,g=c,v=c,y=c,_=c,b=c,w=c;return null==o&&(o=c),null==a&&(a=c),null==s&&(s=1),null==l&&(l=p([],{})),h.include_stack["$<<"]([h.lines,h.file,h.dir,h.path,h.lineno,h.maxdepth,h.process_lines]),$(h.file=o)?($(u("::","String")["$==="](o))?h.dir=u("::","File").$dirname(o):$(d(N,"RUBY_ENGINE_OPAL"))?h.dir=u("::","URI").$parse(u("::","File").$dirname(o=o.$to_s())):(g=[function(){return(v=u("::","File").$dirname(o.$path()))["$=="]("/")?"":v}()],m(h.dir=o.$dup(),"path=",t.to_a(g)),g[r(g["length"],1)],o=o.$to_s()),h.path=a=$(f=a)?f:u("::","File").$basename(o),$(h.process_lines=m(o,"end_with?",t.to_a(d(N,"ASCIIDOC_EXTENSIONS").$keys())))&&(g=[a.$slice(0,a.$rindex(".")),function(){return!$(l["$[]"]("partial-option"))||c}()],m(h.includes,"[]=",t.to_a(g)),g[r(g["length"],1)])):(h.dir=".",h.process_lines=!0,$(h.path=a)?(g=[d(N,"Helpers").$rootname(a),function(){return!$(l["$[]"]("partial-option"))||c}()],m(h.includes,"[]=",t.to_a(g)),g[r(g["length"],1)]):h.path="<stdin>"),h.lineno=s,$($(f=h.maxdepth)?l["$key?"]("depth"):f)&&($(n(y=l["$[]"]("depth").$to_i(),0))?($(n(_=e(h.include_stack.$size(),y),b=h.maxdepth["$[]"]("abs")))&&(_=y=b),h.maxdepth=p(["abs","curr","rel"],{abs:b,curr:_,rel:y})):h.maxdepth=p(["abs","curr","rel"],{abs:h.maxdepth["$[]"]("abs"),curr:h.include_stack.$size(),rel:0})),$((h.lines=h.$prepare_lines(i,p(["normalize","condense","indent"],{normalize:!0,condense:!1,indent:l["$[]"]("indent")})))["$empty?"]())?h.$pop_include():($(l["$key?"]("leveloffset"))&&(h.lines.$unshift(""),h.lines.$unshift(":leveloffset: "+l["$[]"]("leveloffset")),h.lines["$<<"](""),$(w=h.document.$attr("leveloffset"))?h.lines["$<<"](":leveloffset: "+w):h.lines["$<<"](":leveloffset!:"),h.lineno=r(h.lineno,2)),h.look_ahead=0),h},x.$$arity=-2),t.def(F,"$include_depth",k=function(){var t=this;return t.include_stack.$size()},k.$$arity=0),t.def(F,"$exceeds_max_depth?",S=function(){var t,e,n=this;return $(t=$(e=n.maxdepth)?o(n.include_stack.$size(),n.maxdepth["$[]"]("curr")):e)?n.maxdepth["$[]"]("rel"):t},S.$$arity=0),t.alias(F,"exceeded_max_depth?","exceeds_max_depth?"),t.def(F,"$shift",O=function(){var e=O.$$p,n=this,r=c,i=c,o=c,a=c;for(e&&(O.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return $(n.unescape_next_line)?(n.unescape_next_line=!1,(r=m(n,t.find_super_dispatcher(n,"shift",O,!1),i,e)).$slice(1,r.$length())):m(n,t.find_super_dispatcher(n,"shift",O,!1),i,e)},O.$$arity=0),t.def(F,"$include_processors?",C=function(){var t,e=this;return $(e.include_processor_extensions["$nil?"]())?$($(t=e.document["$extensions?"]())?e.document.$extensions()["$include_processors?"]():t)?(e.include_processor_extensions=e.document.$extensions().$include_processors())["$!"]()["$!"]():e.include_processor_extensions=!1:e.include_processor_extensions["$!="](!1)},C.$$arity=0),t.def(F,"$create_include_cursor",A=function(t,e,n){var r=c;return $(u("::","String")["$==="](t))?r=u("::","File").$dirname(t):$(d(N,"RUBY_ENGINE_OPAL"))?r=u("::","File").$dirname(t=t.$to_s()):(r=function(){return(r=u("::","File").$dirname(t.$path()))["$=="]("")?"/":r}(),t=t.$to_s()),d(N,"Cursor").$new(t,r,e,n)},A.$$arity=3),t.def(F,"$to_s",E=function(){var t,e=this;return"#<"+e.$class()+"@"+e.$object_id()+" {path: "+e.path.$inspect()+", line: "+e.lineno+", include depth: "+e.include_stack.$size()+", include stack: ["+m(e.include_stack,"map",[],(t=function(e){t.$$s;return null==e&&(e=c),e.$to_s()},t.$$s=e,t.$$arity=1,t)).$join(", ")+"]}>"},E.$$arity=0),F.$private(),t.def(F,"$prepare_lines",T=function(n,i){var o,a,s=T.$$p,l=this,u=c,f=c,h=c,g=c,v=c,y=c,_=c,b=c;for(s&&(T.$$p=null),_=0,b=arguments.length,y=new Array(b);_<b;_++)y[_]=arguments[_];if(null==i&&(i=p([],{})),u=m(l,t.find_super_dispatcher(l,"prepare_lines",T,!1),y,s),$($(o=l.document)?l.document.$attributes()["$[]"]("skip-front-matter"):o)&&$(f=l["$skip_front_matter!"](u))&&(h=["front-matter",f.$join(d(N,"LF"))],m(l.document.$attributes(),"[]=",t.to_a(h)),h[r(h["length"],1)]),$(i.$fetch("condense",!0))){while($($(a=g=u["$[]"](0))?g["$empty?"]():a))$(a=u.$shift())&&(l.lineno=e(l.lineno,1));while($($(a=v=u["$[]"](-1))?v["$empty?"]():a))u.$pop()}return $(i["$[]"]("indent"))&&d(N,"Parser")["$adjust_indentation!"](u,i["$[]"]("indent").$to_i(),l.document.$attr("tabsize").$to_i()),u},T.$$arity=-2),t.def(F,"$process_line",P=function(t){var n,r,i=this;return $(i.process_lines)?$(t["$empty?"]())?(i.look_ahead=e(i.look_ahead,1),t):$($(n=$(r=t["$end_with?"]("]"))?t["$start_with?"]("[")["$!"]():r)?t["$include?"]("::"):n)?$($(n=t["$include?"]("if"))?d(N,"ConditionalDirectiveRx")["$=~"](t):n)?((n=g["~"])===c?c:n["$[]"](1))["$=="]("\\")?(i.unescape_next_line=!0,i.look_ahead=e(i.look_ahead,1),t.$slice(1,t.$length())):$(i.$preprocess_conditional_directive((n=g["~"])===c?c:n["$[]"](2),(n=g["~"])===c?c:n["$[]"](3),(n=g["~"])===c?c:n["$[]"](4),(n=g["~"])===c?c:n["$[]"](5)))?(i.$shift(),c):(i.look_ahead=e(i.look_ahead,1),t):$(i.skipping)?(i.$shift(),c):$($(n=t["$start_with?"]("inc","\\inc"))?d(N,"IncludeDirectiveRx")["$=~"](t):n)?((n=g["~"])===c?c:n["$[]"](1))["$=="]("\\")?(i.unescape_next_line=!0,i.look_ahead=e(i.look_ahead,1),t.$slice(1,t.$length())):$(i.$preprocess_include_directive((n=g["~"])===c?c:n["$[]"](2),(n=g["~"])===c?c:n["$[]"](3)))?c:(i.look_ahead=e(i.look_ahead,1),t):(i.look_ahead=e(i.look_ahead,1),t):$(i.skipping)?(i.$shift(),c):(i.look_ahead=e(i.look_ahead,1),t):t},P.$$arity=1),t.def(F,"$preprocess_conditional_directive",B=function(t,e,n,i){var o,a,s,l,u,f=this,h=c,v=c,y=c,_=c,b=c,w=c,x=c;if($(h=e["$empty?"]())||(e=e.$downcase()),t["$=="]("endif"))return $(i)?f.$logger().$error(f.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+e+"["+i+"]",p(["source_location"],{source_location:f.$cursor()}))):$(f.conditional_stack["$empty?"]())?f.$logger().$error(f.$message_with_context("unmatched preprocessor directive: endif::"+e+"[]",p(["source_location"],{source_location:f.$cursor()}))):$($(o=h)?o:e["$=="]((v=f.conditional_stack["$[]"](-1))["$[]"]("target")))?(f.conditional_stack.$pop(),f.skipping=function(){return!$(f.conditional_stack["$empty?"]())&&f.conditional_stack["$[]"](-1)["$[]"]("skipping")}()):f.$logger().$error(f.$message_with_context("mismatched preprocessor directive: endif::"+e+"[], expected endif::"+v["$[]"]("target")+"[]",p(["source_location"],{source_location:f.$cursor()}))),!0;if($(f.skipping))y=!1;else if(_=t,"ifdef"["$==="](_)){if($(h))return f.$logger().$error(f.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+i+"]",p(["source_location"],{source_location:f.$cursor()}))),!0;_=n,y=","["$==="](_)?m(e.$split(",",-1),"none?",[],(a=function(t){var e=a.$$s||this;return null==e.document&&(e.document=c),null==t&&(t=c),e.document.$attributes()["$key?"](t)},a.$$s=f,a.$$arity=1,a)):"+"["$==="](_)?m(e.$split("+",-1),"any?",[],(s=function(t){var e=s.$$s||this;return null==e.document&&(e.document=c),null==t&&(t=c),e.document.$attributes()["$key?"](t)["$!"]()},s.$$s=f,s.$$arity=1,s)):f.document.$attributes()["$key?"](e)["$!"]()}else if("ifndef"["$==="](_)){if($(h))return f.$logger().$error(f.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+i+"]",p(["source_location"],{source_location:f.$cursor()}))),!0;_=n,y=","["$==="](_)?m(e.$split(",",-1),"any?",[],(l=function(t){var e=l.$$s||this;return null==e.document&&(e.document=c),null==t&&(t=c),e.document.$attributes()["$key?"](t)},l.$$s=f,l.$$arity=1,l)):"+"["$==="](_)?m(e.$split("+",-1),"all?",[],(u=function(t){var e=u.$$s||this;return null==e.document&&(e.document=c),null==t&&(t=c),e.document.$attributes()["$key?"](t)},u.$$s=f,u.$$arity=1,u)):f.document.$attributes()["$key?"](e)}else if("ifeval"["$==="](_)){if(!$(h))return f.$logger().$error(f.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+e+"["+i+"]",p(["source_location"],{source_location:f.$cursor()}))),!0;if(!$($(o=i)?d(N,"EvalExpressionRx")["$=~"](i.$strip()):o))return f.$logger().$error(f.$message_with_context("malformed preprocessor directive - "+function(){return $(i)?"invalid expression":"missing expression"}()+": ifeval::["+i+"]",p(["source_location"],{source_location:f.$cursor()}))),!0;b=(o=g["~"])===c?c:o["$[]"](1),w=(o=g["~"])===c?c:o["$[]"](2),x=(o=g["~"])===c?c:o["$[]"](3),y=function(){return!$(f.$resolve_expr_val(b).$send(w,f.$resolve_expr_val(x)))}()}return $($(o=t["$=="]("ifeval"))?o:i["$!"]())?($(y)&&(f.skipping=!0),f.conditional_stack["$<<"](p(["target","skip","skipping"],{target:e,skip:y,skipping:f.skipping}))):$($(o=f.skipping)?o:y)||(f.$replace_next_line(i.$rstrip()),f.$unshift(""),$(i["$start_with?"]("include::"))&&(f.look_ahead=r(f.look_ahead,1))),!0},B.$$arity=4),t.def(F,"$preprocess_include_directive",L=function(i,l){var f,h,y,_,b,w,x,k,S,O,C,A=this,E=c,T=c,P=c,B=c,L=c,I=c,D=c,R=c,j=c,M=c,F=c,z=c,H=c,V=c,U=c,q=c,W=c,G=c,Y=c,K=c,X=c,Z=c,J=c,Q=c,tt=c;if(E=A.document,$($(f=(T=i)["$include?"](d(N,"ATTR_REF_HEAD")))?(T=E.$sub_attributes(i,p(["attribute_missing"],{attribute_missing:function(){return(P=$(h=E.$attributes()["$[]"]("attribute-missing"))?h:d(N,"Compliance").$attribute_missing())["$=="]("warn")?"drop-line":P}()})))["$empty?"]():f))return $((f=P["$=="]("drop-line"))?E.$sub_attributes(e(i," "),p(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():P["$=="]("drop-line"))?(m(A.$logger(),"info",[],(y=function(){var t=y.$$s||this;return t.$message_with_context("include dropped due to missing attribute: include::"+i+"["+l+"]",p(["source_location"],{source_location:t.$cursor()}))},y.$$s=A,y.$$arity=0,y)),A.$shift(),!0):$(E.$parse_attributes(l,[],p(["sub_input"],{sub_input:!0}))["$[]"]("optional-option"))?(m(A.$logger(),"info",[],(_=function(){var t=_.$$s||this;return t.$message_with_context("optional include dropped "+function(){return $(P["$=="]("warn")?E.$sub_attributes(e(i," "),p(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():P["$=="]("warn"))?"due to missing attribute":"because resolved target is blank"}()+": include::"+i+"["+l+"]",p(["source_location"],{source_location:t.$cursor()}))},_.$$s=A,_.$$arity=0,_)),A.$shift(),!0):(A.$logger().$warn(A.$message_with_context("include dropped "+function(){return $((f=P["$=="]("warn"))?E.$sub_attributes(e(i," "),p(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():P["$=="]("warn"))?"due to missing attribute":"because resolved target is blank"}()+": include::"+i+"["+l+"]",p(["source_location"],{source_location:A.$cursor()}))),A.$replace_next_line("Unresolved directive in "+A.path+" - include::"+i+"["+l+"]"));if($($(f=A["$include_processors?"]())?B=m(A.include_processor_extensions,"find",[],(b=function(t){b.$$s;return null==t&&(t=c),t.$instance()["$handles?"](T)},b.$$s=A,b.$$arity=1,b)):f))return A.$shift(),B.$process_method()["$[]"](E,A,T,E.$parse_attributes(l,[],p(["sub_input"],{sub_input:!0}))),!0;if($(o(E.$safe(),u(d(N,"SafeMode"),"SECURE"))))return A.$replace_next_line("link:"+T+"[]");if($(A.maxdepth)){if($(o(A.include_stack.$size(),A.maxdepth["$[]"]("curr"))))return A.$logger().$error(A.$message_with_context("maximum include depth of "+A.maxdepth["$[]"]("rel")+" exceeded",p(["source_location"],{source_location:A.$cursor()}))),c;if(L=E.$parse_attributes(l,[],p(["sub_input"],{sub_input:!0})),h=A.$resolve_include_path(T,l,L),f=t.to_ary(h),I=null==f[0]?c:f[0],D=null==f[1]?c:f[1],R=null==f[2]?c:f[2],D["$=="]("file"))j=u("::","File").$method("open"),M=d(N,"FILE_READ_MODE");else{if(!D["$=="]("uri"))return I;j=u("::","OpenURI").$method("open_uri"),M=d(N,"URI_READ_MODE")}if(F=z=c,$(l)&&($(L["$key?"]("lines"))?(F=[],m(A.$split_delimited_value(L["$[]"]("lines")),"each",[],(w=function(n){w.$$s;var r,i,o=c,l=c;return null==n&&(n=c),$(n["$include?"](".."))?(i=n.$partition(".."),r=t.to_ary(i),o=null==r[0]?c:r[0],null==r[1]?c:r[1],l=null==r[2]?c:r[2],F=e(F,function(){return $($(r=l["$empty?"]())?r:a(l=l.$to_i(),0))?[o.$to_i(),s(1,0)]:t.Range.$new(o.$to_i(),l,!1).$to_a()}())):F["$<<"](n.$to_i())},w.$$s=A,w.$$arity=1,w)),F=function(){return $(F["$empty?"]())?c:F.$sort().$uniq()}()):$(L["$key?"]("tag"))?$($(f=(H=L["$[]"]("tag"))["$empty?"]())?f:H["$=="]("!"))||(z=function(){return $(H["$start_with?"]("!"))?v(H.$slice(1,H.$length()),!1):v(H,!0)}()):$(L["$key?"]("tags"))&&(z=p([],{}),m(A.$split_delimited_value(L["$[]"]("tags")),"each",[],(x=function(e){x.$$s;var n,i=c;return null==e&&(e=c),$($(n=e["$empty?"]())?n:e["$=="]("!"))?c:$(e["$start_with?"]("!"))?(i=[e.$slice(1,e.$length()),!1],m(z,"[]=",t.to_a(i)),i[r(i["length"],1)]):(i=[e,!0],m(z,"[]=",t.to_a(i)),i[r(i["length"],1)])},x.$$s=A,x.$$arity=1,x)),$(z["$empty?"]())&&(z=c))),$(F)){f=[[],c,0],V=f[0],U=f[1],q=f[2];try{(function(){var n=t.new_brk();try{m(j,"call",[I,M],(k=function(n){var r,i=k.$$s||this,o=c;return null==n&&(n=c),o=c,function(){var a=t.new_brk();try{return m(n,"each_line",[],(r=function(n){r.$$s;var i,s,l=c;return null==n&&(n=c),q=e(q,1),$($(i=o)?i:$(s=u("::","Float")["$==="](l=F["$[]"](0)))?o=l["$infinite?"]():s)?(U=$(i=U)?i:q,V["$<<"](n)):(l["$=="](q)&&(U=$(i=U)?i:q,V["$<<"](n),F.$shift()),$(F["$empty?"]())?void t.brk(c,a):c)},r.$$s=i,r.$$brk=a,r.$$arity=1,r))}catch(s){if(s===a)return s.$v;throw s}}()},k.$$s=A,k.$$brk=n,k.$$arity=1,k))}catch(r){if(r===n)return r.$v;throw r}})()}catch(et){if(!t.rescue(et,[d(N,"StandardError")]))throw et;try{return A.$logger().$error(A.$message_with_context("include "+D+" not readable: "+I,p(["source_location"],{source_location:A.$cursor()}))),A.$replace_next_line("Unresolved directive in "+A.path+" - include::"+T+"["+l+"]")}finally{t.pop_exception()}}A.$shift(),$(U)&&(W=["partial-option",""],m(L,"[]=",t.to_a(W)),W[r(W["length"],1)],A.$push_include(V,I,R,U,L))}else if($(z)){f=[[],c,0,[],u("::","Set").$new(),c],V=f[0],U=f[1],q=f[2],G=f[3],Y=f[4],K=f[5],$(z["$key?"]("**"))?$(z["$key?"]("*"))?(X=Z=z.$delete("**"),J=z.$delete("*")):X=Z=J=z.$delete("**"):(X=Z=z["$value?"](!0)["$!"](),J=z.$delete("*"));try{m(j,"call",[I,M],(S=function(n){var r,i,o=S.$$s||this,a=c,s=c;return null==n&&(n=c),r=["::","[]"],a=r[0],s=r[1],m(n,"each_line",[],(i=function(n){var r,o,l,u=i.$$s||this,f=c,h=c,v=c;return null==n&&(n=c),q=e(q,1),$($(r=$(o=n["$include?"](a))?n["$include?"](s):o)?d(N,"TagDirectiveRx")["$=~"](n):r)?(f=(r=g["~"])===c?c:r["$[]"](2),$((r=g["~"])===c?c:r["$[]"](1))?f["$=="](K)?(G.$pop(),o=function(){return $(G["$empty?"]())?[c,Z]:G["$[]"](-1)}(),r=t.to_ary(o),K=null==r[0]?c:r[0],X=null==r[1]?c:r[1],o):$(z["$key?"](f))?(h=u.$create_include_cursor(I,T,q),$(v=m(G,"rindex",[],(l=function(t,e){l.$$s;return null==t&&(t=c),null==e&&(e=c),t["$=="](f)},l.$$s=u,l.$$arity=2,l)))?(v["$=="](0)?G.$shift():G.$delete_at(v),u.$logger().$warn(u.$message_with_context("mismatched end tag (expected '"+K+"' but found '"+f+"') at line "+q+" of include "+D+": "+I,p(["source_location","include_location"],{source_location:u.$cursor(),include_location:h})))):u.$logger().$warn(u.$message_with_context("unexpected end tag '"+f+"' at line "+q+" of include "+D+": "+I,p(["source_location","include_location"],{source_location:u.$cursor(),include_location:h})))):c:$(z["$key?"](f))?(Y["$<<"](f),G["$<<"]([K=f,X=z["$[]"](f),q])):$(J["$nil?"]()["$!"]())?(X=function(){return!$($(r=K)?X["$!"]():r)&&J}(),G["$<<"]([K=f,X,q])):c):$(X)?(U=$(r=U)?r:q,V["$<<"](n)):c},i.$$s=o,i.$$arity=1,i))},S.$$s=A,S.$$arity=1,S))}catch(et){if(!t.rescue(et,[d(N,"StandardError")]))throw et;try{return A.$logger().$error(A.$message_with_context("include "+D+" not readable: "+I,p(["source_location"],{source_location:A.$cursor()}))),A.$replace_next_line("Unresolved directive in "+A.path+" - include::"+T+"["+l+"]")}finally{t.pop_exception()}}$(G["$empty?"]())||m(G,"each",[],(O=function(t,e,n){var r=O.$$s||this;return null==t&&(t=c),null==e&&(e=c),null==n&&(n=c),r.$logger().$warn(r.$message_with_context("detected unclosed tag '"+t+"' starting at line "+n+" of include "+D+": "+I,p(["source_location","include_location"],{source_location:r.$cursor(),include_location:r.$create_include_cursor(I,T,n)})))},O.$$s=A,O.$$arity=3,O)),$((Q=r(z.$keys(),Y.$to_a()))["$empty?"]())||A.$logger().$warn(A.$message_with_context("tag"+function(){return $(n(Q.$size(),1))?"s":""}()+" '"+Q.$join(", ")+"' not found in include "+D+": "+I,p(["source_location"],{source_location:A.$cursor()}))),A.$shift(),$(U)&&($($(f=$(h=Z)?J:h)?z["$empty?"]():f)||(W=["partial-option",""],m(L,"[]=",t.to_a(W)),W[r(W["length"],1)]),A.$push_include(V,I,R,U,L))}else try{tt=m(j,"call",[I,M],(C=function(t){C.$$s;return null==t&&(t=c),t.$read()},C.$$s=A,C.$$arity=1,C)),A.$shift(),A.$push_include(tt,I,R,1,L)}catch(et){if(!t.rescue(et,[d(N,"StandardError")]))throw et;try{return A.$logger().$error(A.$message_with_context("include "+D+" not readable: "+I,p(["source_location"],{source_location:A.$cursor()}))),A.$replace_next_line("Unresolved directive in "+A.path+" - include::"+T+"["+l+"]")}finally{t.pop_exception()}}return!0}return c},L.$$arity=2),t.def(F,"$resolve_include_path",I=function(t,e,n){var r,i,o,a=this,s=c,l=c,f=c;return s=a.document,$($(r=d(N,"Helpers")["$uriish?"](t))?r:function(){return $(u("::","String")["$==="](a.dir))?c:t=a.dir+"/"+t}())?$(s["$attr?"]("allow-uri-read"))?($(s["$attr?"]("cache-uri"))?$((i=u("::","OpenURI","skip_raise"))&&(r=u(i,"Cache","skip_raise"))?"constant":c)||d(N,"Helpers").$require_library("open-uri/cached","open-uri-cached"):$(d(N,"RUBY_ENGINE_OPAL")["$!"]())&&u("::","OpenURI"),[u("::","URI").$parse(t),"uri",t]):a.$replace_next_line("link:"+t+"["+e+"]"):(l=s.$normalize_system_path(t,a.dir,c,p(["target_name"],{target_name:"include file"})),$(u("::","File")["$file?"](l))?(f=s.$path_resolver().$relative_path(l,s.$base_dir()),[l,"file",f]):$(n["$[]"]("optional-option"))?(m(a.$logger(),"info",[],(o=function(){var t=o.$$s||this;return t.$message_with_context("optional include dropped because include file not found: "+l,p(["source_location"],{source_location:t.$cursor()}))},o.$$s=a,o.$$arity=0,o)),a.$shift(),!0):(a.$logger().$error(a.$message_with_context("include file not found: "+l,p(["source_location"],{source_location:a.$cursor()}))),a.$replace_next_line("Unresolved directive in "+a.path+" - include::"+t+"["+e+"]")))},I.$$arity=3),t.def(F,"$pop_include",D=function(){var e,r,i=this;return $(n(i.include_stack.$size(),0))?(r=i.include_stack.$pop(),e=t.to_ary(r),i.lines=null==e[0]?c:e[0],i.file=null==e[1]?c:e[1],i.dir=null==e[2]?c:e[2],i.path=null==e[3]?c:e[3],i.lineno=null==e[4]?c:e[4],i.maxdepth=null==e[5]?c:e[5],i.process_lines=null==e[6]?c:e[6],i.look_ahead=0,c):c},D.$$arity=0),t.def(F,"$split_delimited_value",R=function(t){return $(t["$include?"](","))?t.$split(","):t.$split(";")},R.$$arity=1),t.def(F,"$skip_front_matter!",j=function(n,r){var i,o=this,a=c,s=c;if(null==r&&(r=!0),a=c,n["$[]"](0)["$=="]("---")){s=n.$drop(0),n.$shift(),a=[],$(r)&&(o.lineno=e(o.lineno,1));while($($(i=n["$empty?"]()["$!"]())?n["$[]"](0)["$!="]("---"):i))a["$<<"](n.$shift()),$(r)&&(o.lineno=e(o.lineno,1));$(n["$empty?"]())?(m(n,"unshift",t.to_a(s)),$(r)&&(o.lineno=0),a=c):(n.$shift(),$(r)&&(o.lineno=e(o.lineno,1)))}return a},j.$$arity=-2),t.def(F,"$resolve_expr_val",M=function(t){var e,n,i=this,o=c;return $($(e=$(n=t["$start_with?"]('"'))?t["$end_with?"]('"'):n)?e:$(n=t["$start_with?"]("'"))?t["$end_with?"]("'"):n)?(o=!0,t=t.$slice(1,r(t.$length(),1))):o=!1,$(t["$include?"](d(N,"ATTR_REF_HEAD")))&&(t=i.document.$sub_attributes(t,p(["attribute_missing"],{attribute_missing:"drop"}))),$(o)?t:$(t["$empty?"]())?c:!!t["$=="]("true")||!t["$=="]("false")&&($(t.$rstrip()["$empty?"]())?" ":$(t["$include?"]("."))?t.$to_f():t.$to_i())},M.$$arity=1)}(b[0],d(b,"Reader"),b)}(l[0],l)},Opal.modules["asciidoctor/section"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var i=[],o=t.nil,a=(t.const_get_qualified,t.const_get_relative),s=(t.breaker,t.slice,t.module),l=t.klass,c=t.hash2,u=t.send,d=t.truthy;return t.add_stubs(["$attr_accessor","$attr_reader","$===","$+","$level","$special","$generate_id","$title","$==","$>","$sectnum","$reftext","$!","$empty?","$sub_placeholder","$sub_quotes","$compat_mode","$[]","$attributes","$context","$assign_numeral","$class","$object_id","$inspect","$size","$length","$chr","$[]=","$-","$gsub","$downcase","$delete","$tr_s","$end_with?","$chop","$start_with?","$slice","$key?","$catalog","$unique_id_start_index"]),function(i,f){var h=s(i,"Asciidoctor"),p=[h].concat(f);(function(i,s,f){var h,p,$,m,g,v,y,_=l(i,s,"Section"),b=[_].concat(f);_.$$prototype.document=_.$$prototype.level=_.$$prototype.parent=_.$$prototype.numeral=_.$$prototype.numbered=_.$$prototype.sectname=_.$$prototype.title=_.$$prototype.blocks=o,_.$attr_accessor("index"),_.$attr_accessor("sectname"),_.$attr_accessor("special"),_.$attr_accessor("numbered"),_.$attr_reader("caption"),t.def(_,"$initialize",h=function(n,r,i,s){var l,f,p=h.$$p,$=this;return p&&(h.$$p=null),null==n&&(n=o),null==r&&(r=o),null==i&&(i=!1),null==s&&(s=c([],{})),u($,t.find_super_dispatcher($,"initialize",h,!1),[n,"section",s],null),d(a(b,"Section")["$==="](n))?(l=[d(f=r)?f:e(n.$level(),1),n.$special()],$.level=l[0],$.special=l[1]):(l=[d(f=r)?f:1,!1],$.level=l[0],$.special=l[1]),$.numbered=i,$.index=0},h.$$arity=-1),t.alias(_,"name","title"),t.def(_,"$generate_id",p=function(){var t=this;return a(b,"Section").$generate_id(t.$title(),t.document)},p.$$arity=0),t.def(_,"$sectnum",$=function(t,e){var r,i=this;return null==t&&(t="."),null==e&&(e=o),e=d(r=e)?r:function(){return e["$=="](!1)?"":t}(),d(d(r=n(i.level,1))?a(b,"Section")["$==="](i.parent):r)?""+i.parent.$sectnum(t,t)+i.numeral+e:""+i.numeral+e},$.$$arity=-1),t.def(_,"$xreftext",m=function(t){var e,n=this,r=o,i=o,a=o,s=o,l=o;return null==t&&(t=o),d(d(e=r=n.$reftext())?r["$empty?"]()["$!"]():e)?r:d(t)?d(n.numbered)?function(){return i=t,"full"["$==="](i)?(s=d(d(e=(a=n.sectname)["$=="]("chapter"))?e:a["$=="]("appendix"))?n.$sub_placeholder(n.$sub_quotes("_%s_"),n.$title()):n.$sub_placeholder(n.$sub_quotes(function(){return d(n.document.$compat_mode())?"``%s''":'"`%s`"'}()),n.$title()),d(l=n.document.$attributes()["$[]"](a+"-refsig"))?l+" "+n.$sectnum(".",",")+" "+s:n.$sectnum(".",",")+" "+s):"short"["$==="](i)?d(l=n.document.$attributes()["$[]"](n.sectname+"-refsig"))?l+" "+n.$sectnum(".",""):n.$sectnum(".",""):d(d(e=(a=n.sectname)["$=="]("chapter"))?e:a["$=="]("appendix"))?n.$sub_placeholder(n.$sub_quotes("_%s_"),n.$title()):n.$title()}():d(d(e=(a=n.sectname)["$=="]("chapter"))?e:a["$=="]("appendix"))?n.$sub_placeholder(n.$sub_quotes("_%s_"),n.$title()):n.$title():n.$title()},m.$$arity=-1),t.def(_,"$<<",g=function(e){var n=g.$$p,r=this,i=o,a=o,s=o;for(n&&(g.$$p=null),a=0,s=arguments.length,i=new Array(s);a<s;a++)i[a]=arguments[a];return e.$context()["$=="]("section")&&r.$assign_numeral(e),u(r,t.find_super_dispatcher(r,"<<",g,!1),i,n)},g.$$arity=1),t.def(_,"$to_s",v=function(){var e=v.$$p,n=this,r=o,i=o,a=o,s=o;for(e&&(v.$$p=null),a=0,s=arguments.length,i=new Array(s);a<s;a++)i[a]=arguments[a];return d(n.title)?(r=function(){return d(n.numbered)?n.$sectnum()+" "+n.title:n.title}(),"#<"+n.$class()+"@"+n.$object_id()+" {level: "+n.level+", title: "+r.$inspect()+", blocks: "+n.blocks.$size()+"}>"):u(n,t.find_super_dispatcher(n,"to_s",v,!1),i,e)},v.$$arity=0),t.defs(_,"$generate_id",y=function(n,i){var s,l,c=o,f=o,h=o,p=o,$=o,m=o,g=o,v=o,y=o,_=o;if(c=i.$attributes(),f=d(s=c["$[]"]("idprefix"))?s:"_",d(h=c["$[]"]("idseparator"))?d(d(s=h.$length()["$=="](1))?s:d(l=(p=h["$empty?"]())["$!"]())?($=["idseparator",h.$chr()],u(c,"[]=",t.to_a($)),h=$[r($["length"],1)]):l)&&(m=function(){return d(d(s=h["$=="]("-"))?s:h["$=="]("."))?" .-":" "+h+".-"}()):(s=["_"," _.-"],h=s[0],m=s[1]),g=""+f+n.$downcase().$gsub(a(b,"InvalidSectionIdCharsRx"),""),d(p)?g=g.$delete(" "):(g=g.$tr_s(m,h),d(g["$end_with?"](h))&&(g=g.$chop()),d(d(s=f["$empty?"]())?g["$start_with?"](h):s)&&(g=g.$slice(1,g.$length()))),d(i.$catalog()["$[]"]("refs")["$key?"](g))){v=i.$catalog()["$[]"]("refs"),y=a(b,"Compliance").$unique_id_start_index();while(d(v["$[]"](_=""+g+h+y)))y=e(y,1);return _}return g},y.$$arity=2)})(p[0],a(p,"AbstractBlock"),p)}(i[0],i)},Opal.modules["asciidoctor/stylesheets"]=function(t){t.top;var e=[],n=t.nil,r=t.const_get_qualified,i=t.const_get_relative,o=(t.breaker,t.slice,t.module),a=t.klass,s=t.truthy,l=t.hash2;return t.add_stubs(["$join","$new","$rstrip","$read","$primary_stylesheet_data","$write","$primary_stylesheet_name","$stylesheet_basename","$for","$read_stylesheet","$coderay_stylesheet_data","$coderay_stylesheet_name","$pygments_stylesheet_data","$pygments_stylesheet_name"]),function(e,c){var u=o(e,"Asciidoctor"),d=[u].concat(c);(function(e,o,c){var u,d,f,h,p,$,m,g,v,y,_,b,w,x=a(e,o,"Stylesheets"),k=[x].concat(c);x.$$prototype.primary_stylesheet_data=n,t.const_set(k[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),t.const_set(k[0],"STYLESHEETS_DIR",r("::","File").$join(i(k,"DATA_DIR"),"stylesheets")),x.__instance__=x.$new(),t.defs(x,"$instance",u=function(){var t=this;return null==t.__instance__&&(t.__instance__=n),t.__instance__},u.$$arity=0),t.def(x,"$primary_stylesheet_name",d=function(){return i(k,"DEFAULT_STYLESHEET_NAME")},d.$$arity=0),t.def(x,"$primary_stylesheet_data",f=function(){var t,e=this;return e.primary_stylesheet_data=s(t=e.primary_stylesheet_data)?t:r("::","File").$read(r("::","File").$join(i(k,"STYLESHEETS_DIR"),"asciidoctor-default.css"),l(["mode"],{mode:i(k,"FILE_READ_MODE")})).$rstrip()},f.$$arity=0),t.def(x,"$embed_primary_stylesheet",h=function(){var t=this;return"<style>\n"+t.$primary_stylesheet_data()+"\n</style>"},h.$$arity=0),t.def(x,"$write_primary_stylesheet",p=function(t){var e=this;return null==t&&(t="."),r("::","File").$write(r("::","File").$join(t,e.$primary_stylesheet_name()),e.$primary_stylesheet_data(),l(["mode"],{mode:i(k,"FILE_WRITE_MODE")}))},p.$$arity=-1),t.def(x,"$coderay_stylesheet_name",$=function(){return i(k,"SyntaxHighlighter").$for("coderay").$stylesheet_basename()},$.$$arity=0),t.def(x,"$coderay_stylesheet_data",m=function(){return i(k,"SyntaxHighlighter").$for("coderay").$read_stylesheet()},m.$$arity=0),t.def(x,"$embed_coderay_stylesheet",g=function(){var t=this;return"<style>\n"+t.$coderay_stylesheet_data()+"\n</style>"},g.$$arity=0),t.def(x,"$write_coderay_stylesheet",v=function(t){var e=this;return null==t&&(t="."),r("::","File").$write(r("::","File").$join(t,e.$coderay_stylesheet_name()),e.$coderay_stylesheet_data(),l(["mode"],{mode:i(k,"FILE_WRITE_MODE")}))},v.$$arity=-1),t.def(x,"$pygments_stylesheet_name",y=function(t){return null==t&&(t=n),i(k,"SyntaxHighlighter").$for("pygments").$stylesheet_basename(t)},y.$$arity=-1),t.def(x,"$pygments_stylesheet_data",_=function(t){return null==t&&(t=n),i(k,"SyntaxHighlighter").$for("pygments").$read_stylesheet(t)},_.$$arity=-1),t.def(x,"$embed_pygments_stylesheet",b=function(t){var e=this;return null==t&&(t=n),"<style>\n"+e.$pygments_stylesheet_data(t)+"\n</style>"},b.$$arity=-1),t.def(x,"$write_pygments_stylesheet",w=function(t,e){var o=this;return null==t&&(t="."),null==e&&(e=n),r("::","File").$write(r("::","File").$join(t,o.$pygments_stylesheet_name(e)),o.$pygments_stylesheet_data(e),l(["mode"],{mode:i(k,"FILE_WRITE_MODE")}))},w.$$arity=-1)})(d[0],null,d)}(e[0],e)},Opal.modules["asciidoctor/table"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t/e:t["$/"](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var s=[],l=t.nil,c=t.const_get_qualified,u=t.const_get_relative,d=(t.breaker,t.slice,t.module),f=t.klass,h=t.hash2,p=t.send,$=t.truthy,m=t.gvars;return t.add_stubs(["$attr_accessor","$attr_reader","$new","$[]","$>","$to_i","$<","$==","$[]=","$-","$attributes","$truncate","$*","$/","$to_f","$empty?","$body","$each","$<<","$size","$+","$assign_column_widths","$warn","$logger","$update_attributes","$assign_width","$round","$shift","$style=","$head=","$pop","$foot=","$parent","$sourcemap","$dup","$header_row?","$table","$delete","$start_with?","$rstrip","$slice","$length","$advance","$lstrip","$strip","$split","$include?","$readlines","$unshift","$nil?","$=~","$catalog_inline_anchor","$apply_subs","$convert","$map","$text","$!=","$file","$lineno","$to_s","$include","$to_set","$mark","$key?","$nested?","$document","$error","$message_with_context","$cursor_at_prev_line","$nil_or_empty?","$escape","$columns","$match","$chop","$end_with?","$gsub","$!","$push_cellspec","$cell_open?","$close_cell","$take_cellspec","$squeeze","$upto","$times","$cursor_before_mark","$rowspan","$activate_rowspan","$colspan","$end_of_row?","$close_row","$private","$rows","$effective_column_visits"]),function(s,g){var v=d(s,"Asciidoctor"),y=[v].concat(g);(function(s,c,d){var m,g,v,y,_,b=f(s,c,"Table"),w=[b].concat(d);b.$$prototype.attributes=b.$$prototype.document=b.$$prototype.has_header_option=b.$$prototype.rows=b.$$prototype.columns=l,t.const_set(w[0],"DEFAULT_PRECISION",4),function(e,n,r){var i,o,a,s=f(e,n,"Rows");[s].concat(r);s.$$prototype.head=s.$$prototype.body=s.$$prototype.foot=l,s.$attr_accessor("head","foot","body"),t.def(s,"$initialize",i=function(t,e,n){var r=this;return null==t&&(t=[]),null==e&&(e=[]),null==n&&(n=[]),r.head=t,r.foot=e,r.body=n},i.$$arity=-1),t.alias(s,"[]","send"),t.def(s,"$by_section",o=function(){var t=this;return[["head",t.head],["body",t.body],["foot",t.foot]]},o.$$arity=0),t.def(s,"$to_h",a=function(){var t=this;return h(["head","body","foot"],{head:t.head,body:t.body,foot:t.foot})},a.$$arity=0)}(w[0],null,w),b.$attr_accessor("columns"),b.$attr_accessor("rows"),b.$attr_accessor("has_header_option"),b.$attr_reader("caption"),t.def(b,"$initialize",m=function(a,s){var c,d,f=m.$$p,h=this,g=l,v=l,y=l,_=l;return f&&(m.$$p=null),p(h,t.find_super_dispatcher(h,"initialize",m,!1),[a,"table"],null),h.rows=u(w,"Rows").$new(),h.columns=[],h.has_header_option=function(){return!!$(s["$[]"]("header-option"))}(),$(g=s["$[]"]("width"))?$($(c=e(v=g.$to_i(),100))?c:n(v,1))&&($((c=v["$=="](0))?$(d=g["$=="]("0"))?d:g["$=="]("0%"):v["$=="](0))||(v=100)):v=100,y=["tablepcwidth",v],p(h.attributes,"[]=",t.to_a(y)),y[r(y["length"],1)],$(h.document.$attributes()["$[]"]("pagewidth"))&&(y=["tableabswidth",function(){return(_=i(o(v,100),h.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(u(w,"DEFAULT_PRECISION")))["$=="](_.$to_i())?_.$to_i():_}()],p(h.attributes,"[]=",t.to_a(y)),y[r(y["length"],1)]),$(s["$[]"]("rotate-option"))?(y=["orientation","landscape"],p(h.attributes,"[]=",t.to_a(y)),y[r(y["length"],1)]):l},m.$$arity=2),t.def(b,"$header_row?",g=function(){var t,e=this;return $(t=e.has_header_option)?e.rows.$body()["$empty?"]():t},g.$$arity=0),t.def(b,"$create_columns",v=function(i){var o,s,c=this,d=l,f=l,h=l,m=l,g=l;return d=[],f=l,h=0,p(i,"each",[],(o=function(t){var e,r=o.$$s||this,i=l;return null==t&&(t=l),i=t["$[]"]("width"),d["$<<"](u(w,"Column").$new(r,d.$size(),t)),$(n(i,0))?(f=$(e=f)?e:[])["$<<"](d["$[]"](-1)):h=a(h,i)},o.$$s=c,o.$$arity=1,o)),$(e(m=(c.columns=d).$size(),0))&&(g=["colcount",m],p(c.attributes,"[]=",t.to_a(g)),g[r(g["length"],1)],$($(s=e(h,0))?s:f)||(h=l),c.$assign_column_widths(h,f)),l},v.$$arity=1),t.def(b,"$assign_column_widths",y=function(t,n){var i,s,c,d=this,f=l,m=l,g=l,v=l,y=l;return null==t&&(t=l),null==n&&(n=l),f=u(w,"DEFAULT_PRECISION"),m=g=0,$(t)?($(n)&&($(e(t,100))?(v=0,d.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+t+"%")):(v=o(r(100,t),n.$size()).$truncate(f),v.$to_i()["$=="](v)&&(v=v.$to_i()),t=100),y=h(["width","autowidth-option"],{width:v,"autowidth-option":""}),p(n,"each",[],(i=function(t){i.$$s;return null==t&&(t=l),t.$update_attributes(y)},i.$$s=d,i.$$arity=1,i))),p(d.columns,"each",[],(s=function(e){s.$$s;return null==e&&(e=l),m=a(m,g=e.$assign_width(l,t,f))},s.$$s=d,s.$$arity=1,s))):(g=o(100,d.columns.$size()).$truncate(f),g.$to_i()["$=="](g)&&(g=g.$to_i()),p(d.columns,"each",[],(c=function(t){c.$$s;return null==t&&(t=l),m=a(m,t.$assign_width(g,l,f))},c.$$s=d,c.$$arity=1,c))),m["$=="](100)||d.columns["$[]"](-1).$assign_width(a(r(100,m),g).$round(f),l,f),l},y.$$arity=-1),t.def(b,"$partition_header_footer",_=function(n){var i,o,a=this,s=l,c=l,u=l;return s=["rowcount",a.rows.$body().$size()],p(a.attributes,"[]=",t.to_a(s)),s[r(s["length"],1)],c=a.rows.$body().$size(),$($(i=e(c,0))?a.has_header_option:i)&&(u=a.rows.$body().$shift(),c=r(c,1),p(u,"each",[],(o=function(e){o.$$s;return null==e&&(e=l),s=[l],p(e,"style=",t.to_a(s)),s[r(s["length"],1)]},o.$$s=a,o.$$arity=1,o)),s=[[u]],p(a.rows,"head=",t.to_a(s)),s[r(s["length"],1)]),$($(i=e(c,0))?n["$[]"]("footer-option"):i)&&(s=[[a.rows.$body().$pop()]],p(a.rows,"foot=",t.to_a(s)),s[r(s["length"],1)]),l},_.$$arity=1)})(y[0],u(y,"AbstractBlock"),y),function(e,n,s){var c,u,d,m,g=f(e,n,"Column");[g].concat(s);g.$$prototype.attributes=l,g.$attr_accessor("style"),t.def(g,"$initialize",c=function(e,n,i){var o=c.$$p,s=this,u=l;return o&&(c.$$p=null),null==i&&(i=h([],{})),p(s,t.find_super_dispatcher(s,"initialize",c,!1),[e,"table_column"],null),s.style=i["$[]"]("style"),u=["colnumber",a(n,1)],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)],$(i["$[]"]("width"))||(u=["width",1],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)]),$(i["$[]"]("halign"))||(u=["halign","left"],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)]),$(i["$[]"]("valign"))||(u=["valign","top"],p(i,"[]=",t.to_a(u)),u[r(u["length"],1)]),s.$update_attributes(i)},c.$$arity=-3),t.alias(g,"table","parent"),t.def(g,"$assign_width",u=function(e,n,a){var s=this,c=l,u=l;return $(n)&&(e=o(i(s.attributes["$[]"]("width").$to_f(),100),n).$truncate(a),e.$to_i()["$=="](e)&&(e=e.$to_i())),$(s.$parent().$attributes()["$[]"]("tableabswidth"))&&(c=["colabswidth",function(){return(u=i(o(e,100),s.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(a))["$=="](u.$to_i())?u.$to_i():u}()],p(s.attributes,"[]=",t.to_a(c)),c[r(c["length"],1)]),c=["colpcwidth",e],p(s.attributes,"[]=",t.to_a(c)),c[r(c["length"],1)]},u.$$arity=3),t.def(g,"$block?",d=function(){return!1},d.$$arity=0),t.def(g,"$inline?",m=function(){return!1},m.$$arity=0)}(u(y,"Table"),u(y,"AbstractNode"),y),function(e,o,s){var c,d,g,v,y,_,b,w,x,k=f(e,o,"Cell"),S=[k].concat(s);k.$$prototype.document=k.$$prototype.text=k.$$prototype.subs=k.$$prototype.style=k.$$prototype.inner_document=k.$$prototype.source_location=k.$$prototype.colspan=k.$$prototype.rowspan=k.$$prototype.attributes=l,t.const_set(S[0],"DOUBLE_LF",i(u(S,"LF"),2)),k.$attr_accessor("colspan"),k.$attr_accessor("rowspan"),t.alias(k,"column","parent"),k.$attr_reader("inner_document"),t.def(k,"$initialize",c=function(e,i,o,s){var d,f,g=c.$$p,v=this,y=l,_=l,b=l,w=l,x=l,k=l,O=l,C=l,A=l,E=l,T=l,P=l;if(g&&(c.$$p=null),null==o&&(o=h([],{})),null==s&&(s=h([],{})),p(v,t.find_super_dispatcher(v,"initialize",c,!1),[e,"table_cell"],null),$(v.document.$sourcemap())&&(v.source_location=s["$[]"]("cursor").$dup()),$(e)&&($(y=e.$table()["$header_row?"]())||(_=e.$attributes()["$[]"]("style")),v.$update_attributes(e.$attributes())),$(o))if($(o["$empty?"]())?v.colspan=v.rowspan=l:(d=[o.$delete("colspan"),o.$delete("rowspan")],v.colspan=d[0],v.rowspan=d[1],$(y)||(_=$(d=o["$[]"]("style"))?d:_),v.$update_attributes(o)),_["$=="]("asciidoc"))if(b=!0,w=s["$[]"]("cursor"),$((i=i.$rstrip())["$start_with?"](u(S,"LF")))){x=1;while($((i=i.$slice(1,i.$length()))["$start_with?"](u(S,"LF"))))x=a(x,1);w.$advance(x)}else i=i.$lstrip();else if(_["$=="]("literal")){k=!0,i=i.$rstrip();while($(i["$start_with?"](u(S,"LF"))))i=i.$slice(1,i.$length())}else O=!0,i=function(){return $(i)?i.$strip():""}();else v.colspan=v.rowspan=l,_["$=="]("asciidoc")&&(b=!0,w=s["$[]"]("cursor"));return $(b)?(C=v.document.$attributes().$delete("doctitle"),A=i.$split(u(S,"LF"),-1),$(A["$empty?"]())||$((E=A["$[]"](0))["$include?"]("::"))&&(T=u(S,"PreprocessorReader").$new(v.document,[E]).$readlines(),$((d=E["$=="](T["$[]"](0)))?n(T.$size(),2):E["$=="](T["$[]"](0)))||(A.$shift(),$(T["$empty?"]())||p(A,"unshift",t.to_a(T)))),v.inner_document=u(S,"Document").$new(A,h(["standalone","parent","cursor"],{standalone:!1,parent:v.document,cursor:w})),$(C["$nil?"]())||(P=["doctitle",C],p(v.document.$attributes(),"[]=",t.to_a(P)),P[r(P["length"],1)]),v.subs=l):$(k)?(v.content_model="verbatim",v.subs=u(S,"BASIC_SUBS")):($($(d=$(f=O)?i["$start_with?"]("[["):f)?u(S,"LeadingInlineAnchorRx")["$=~"](i):d)&&u(S,"Parser").$catalog_inline_anchor((d=m["~"])===l?l:d["$[]"](1),(d=m["~"])===l?l:d["$[]"](2),v,s["$[]"]("cursor"),v.document),v.content_model="simple",v.subs=u(S,"NORMAL_SUBS")),v.text=i,v.style=_},c.$$arity=-3),t.def(k,"$text",d=function(){var t=this;return t.$apply_subs(t.text,t.subs)},d.$$arity=0),t.def(k,"$text=",g=function(t){var e=this;return e.text=t},g.$$arity=1),t.def(k,"$content",v=function(){var t,e,n=this,r=l,i=l;return(r=n.style)["$=="]("asciidoc")?n.inner_document.$convert():$(n.text["$include?"](u(S,"DOUBLE_LF")))?p(n.$text().$split(u(S,"BlankLineRx")),"map",[],(t=function(e){var n,i=t.$$s||this;return null==e&&(e=l),$($(n=r)?r["$!="]("header"):n)?u(S,"Inline").$new(i.$parent(),"quoted",e,h(["type"],{type:r})).$convert():e},t.$$s=n,t.$$arity=1,t)):$((i=n.$text())["$empty?"]())?[]:$($(e=r)?r["$!="]("header"):e)?[u(S,"Inline").$new(n.$parent(),"quoted",i,h(["type"],{type:r})).$convert()]:[i]},v.$$arity=0),t.def(k,"$lines",y=function(){var t=this;return t.text.$split(u(S,"LF"))},y.$$arity=0),t.def(k,"$source",_=function(){var t=this;return t.text},_.$$arity=0),t.def(k,"$file",b=function(){var t,e=this;return $(t=e.source_location)?e.source_location.$file():t},b.$$arity=0),t.def(k,"$lineno",w=function(){var t,e=this;return $(t=e.source_location)?e.source_location.$lineno():t},w.$$arity=0),t.def(k,"$to_s",x=function(){var e,n=x.$$p,r=this,i=l,o=l,a=l;for(n&&(x.$$p=null),o=0,a=arguments.length,i=new Array(a);o<a;o++)i[o]=arguments[o];return p(r,t.find_super_dispatcher(r,"to_s",x,!1),i,n).$to_s()+" - [text: "+r.text+", colspan: "+($(e=r.colspan)?e:1)+", rowspan: "+($(e=r.rowspan)?e:1)+", attributes: "+r.attributes+"]"},x.$$arity=0)}(u(y,"Table"),u(y,"AbstractBlock"),y),function(n,i,o){var s,d,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L=f(n,i,"ParserContext"),I=[L].concat(o);L.$$prototype.delimiter=L.$$prototype.delimiter_rx=L.$$prototype.buffer=L.$$prototype.cellspecs=L.$$prototype.cell_open=L.$$prototype.format=L.$$prototype.start_cursor_data=L.$$prototype.reader=L.$$prototype.table=L.$$prototype.current_row=L.$$prototype.colcount=L.$$prototype.column_visits=L.$$prototype.active_rowspans=L.$$prototype.linenum=l,L.$include(u(I,"Logging")),t.const_set(I[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set()),t.const_set(I[0],"DELIMITERS",h(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:["\t",/\t/],"!sv":["!",/!/]})),L.$attr_accessor("table"),L.$attr_accessor("format"),L.$attr_reader("colcount"),L.$attr_accessor("buffer"),L.$attr_reader("delimiter"),L.$attr_reader("delimiter_re"),t.def(L,"$initialize",s=function(e,n,r){var i,o,a=this,s=l,d=l;return null==r&&(r=h([],{})),a.start_cursor_data=(a.reader=e).$mark(),a.table=n,$(r["$key?"]("format"))?$(u(I,"FORMATS")["$include?"](s=r["$[]"]("format")))?s["$=="]("tsv")?a.format="csv":$((i=(a.format=s)["$=="]("psv"))?n.$document()["$nested?"]():(a.format=s)["$=="]("psv"))&&(s="!sv"):(a.$logger().$error(a.$message_with_context("illegal table format: "+s,h(["source_location"],{source_location:e.$cursor_at_prev_line()}))),i=["psv",function(){return $(n.$document()["$nested?"]())?"!sv":"psv"}()],a.format=i[0],s=i[1]):(i=["psv",function(){return $(n.$document()["$nested?"]())?"!sv":"psv"}()],a.format=i[0],s=i[1]),$(r["$key?"]("separator"))?$((d=r["$[]"]("separator"))["$nil_or_empty?"]())?(o=u(I,"DELIMITERS")["$[]"](s),i=t.to_ary(o),a.delimiter=null==i[0]?l:i[0],a.delimiter_rx=null==i[1]?l:i[1]):d["$=="]("\\t")?(o=u(I,"DELIMITERS")["$[]"]("tsv"),i=t.to_ary(o),a.delimiter=null==i[0]?l:i[0],a.delimiter_rx=null==i[1]?l:i[1]):(i=[d,new RegExp(c("::","Regexp").$escape(d))],a.delimiter=i[0],a.delimiter_rx=i[1]):(o=u(I,"DELIMITERS")["$[]"](s),i=t.to_ary(o),a.delimiter=null==i[0]?l:i[0],a.delimiter_rx=null==i[1]?l:i[1]),a.colcount=function(){return $(n.$columns()["$empty?"]())?-1:n.$columns().$size()}(),a.buffer="",a.cellspecs=[],a.cell_open=!1,a.active_rowspans=[0],a.column_visits=0,a.current_row=[],a.linenum=-1},s.$$arity=-3),t.def(L,"$starts_with_delimiter?",d=function(t){var e=this;return t["$start_with?"](e.delimiter)},d.$$arity=1),t.def(L,"$match_delimiter",m=function(t){var e=this;return e.delimiter_rx.$match(t)},m.$$arity=1),t.def(L,"$skip_past_delimiter",g=function(t){var e=this;return e.buffer=""+e.buffer+t+e.delimiter,l},g.$$arity=1),t.def(L,"$skip_past_escaped_delimiter",v=function(t){var e=this;return e.buffer=""+e.buffer+t.$chop()+e.delimiter,l},v.$$arity=1),t.def(L,"$buffer_has_unclosed_quotes?",y=function(t){var e,n,r=this,i=l,o=l;return null==t&&(t=l),!!(i=function(){return $(t)?a(r.buffer,t).$strip():r.buffer.$strip()}())["$=="]('"')||!!$(i["$start_with?"]('"'))&&($($(e=$(n=o=i["$end_with?"]('"'))?i["$end_with?"]('""'):n)?e:i["$start_with?"]('""'))?$(e=(i=i.$gsub('""',""))["$start_with?"]('"'))?i["$end_with?"]('"')["$!"]():e:o["$!"]())},y.$$arity=-1),t.def(L,"$take_cellspec",_=function(){var t=this;return t.cellspecs.$shift()},_.$$arity=0),t.def(L,"$push_cellspec",b=function(t){var e,n=this;return null==t&&(t=h([],{})),n.cellspecs["$<<"]($(e=t)?e:h([],{})),l},b.$$arity=-1),t.def(L,"$keep_cell_open",w=function(){var t=this;return t.cell_open=!0,l},w.$$arity=0),t.def(L,"$mark_cell_closed",x=function(){var t=this;return t.cell_open=!1,l},x.$$arity=0),t.def(L,"$cell_open?",k=function(){var t=this;return t.cell_open},k.$$arity=0),t.def(L,"$cell_closed?",S=function(){var t=this;return t.cell_open["$!"]()},S.$$arity=0),t.def(L,"$close_open_cell",O=function(t){var e=this;return null==t&&(t=h([],{})),e.$push_cellspec(t),$(e["$cell_open?"]())&&e.$close_cell(!0),e.$advance(),l},O.$$arity=-1),t.def(L,"$close_cell",C=function(n){try{var i,o,s=this,d=l,f=l,m=l;return null==n&&(n=!1),s.format["$=="]("psv")?(d=s.buffer,s.buffer="",$(f=s.$take_cellspec())?m=$(i=f.$delete("repeatcol"))?i:1:(s.$logger().$error(s.$message_with_context("table missing leading separator; recovering automatically",h(["source_location"],{source_location:p(c(u(I,"Reader"),"Cursor"),"new",t.to_a(s.start_cursor_data))}))),f=h([],{}),m=1)):(d=s.buffer.$strip(),s.buffer="",f=l,m=1,$($(i=s.format["$=="]("csv")?d["$empty?"]()["$!"]():s.format["$=="]("csv"))?d["$include?"]('"'):i)&&($($(i=d["$start_with?"]('"'))?d["$end_with?"]('"'):i)?$(d=d.$slice(1,r(d.$length(),2)))?d=d.$strip().$squeeze('"'):(s.$logger().$error(s.$message_with_context("unclosed quote in CSV data; setting cell to empty",h(["source_location"],{source_location:s.reader.$cursor_at_prev_line()}))),d=""):d=d.$squeeze('"'))),p(1,"upto",[m],(o=function(i){var s,g,v,y,_=o.$$s||this,b=l,w=l,x=l,k=l;return null==_.colcount&&(_.colcount=l),null==_.table&&(_.table=l),null==_.current_row&&(_.current_row=l),null==_.reader&&(_.reader=l),null==_.column_visits&&(_.column_visits=l),null==_.linenum&&(_.linenum=l),null==i&&(i=l),_.colcount["$=="](-1)?(_.table.$columns()["$<<"](b=c(u(I,"Table"),"Column").$new(_.table,r(a(_.table.$columns().$size(),i),1))),$($(s=$(g=f)?f["$key?"]("colspan"):g)?e(w=r(f["$[]"]("colspan").$to_i(),1),0):s)&&(x=_.table.$columns().$size(),p(w,"times",[],(v=function(t){var e=v.$$s||this;return null==e.table&&(e.table=l),null==t&&(t=l),e.table.$columns()["$<<"](c(u(I,"Table"),"Column").$new(e.table,a(x,t)))},v.$$s=_,v.$$arity=1,v)))):$(b=_.table.$columns()["$[]"](_.current_row.$size()))||(_.$logger().$error(_.$message_with_context("dropping cell because it exceeds specified number of columns",h(["source_location"],{source_location:_.reader.$cursor_before_mark()}))),t.ret(l)),k=c(u(I,"Table"),"Cell").$new(b,d,f,h(["cursor"],{cursor:_.reader.$cursor_before_mark()})),_.reader.$mark(),$($(s=k.$rowspan()["$!"]())?s:k.$rowspan()["$=="](1))||_.$activate_rowspan(k.$rowspan(),$(s=k.$colspan())?s:1),_.column_visits=a(_.column_visits,$(s=k.$colspan())?s:1),_.current_row["$<<"](k),$($(s=_["$end_of_row?"]())?$(g=$(y=_.colcount["$!="](-1))?y:e(_.linenum,0))?g:$(y=n)?i["$=="](m):y:s)?_.$close_row():l},o.$$s=s,o.$$arity=1,o)),s.cell_open=!1,l}catch(g){if(g===t.returner)return g.$v;throw g}},C.$$arity=-1),L.$private(),t.def(L,"$close_row",A=function(){var e=this,n=l;return e.table.$rows().$body()["$<<"](e.current_row),e.colcount["$=="](-1)&&(e.colcount=e.column_visits),e.column_visits=0,e.current_row=[],e.active_rowspans.$shift(),$(e.active_rowspans["$[]"](0))||(n=[0,0],p(e.active_rowspans,"[]=",t.to_a(n)),n[r(n["length"],1)]),l},A.$$arity=0),t.def(L,"$activate_rowspan",E=function(e,n){var i,o=this;return p(1,"upto",[r(e,1)],(i=function(e){var o,s=i.$$s||this,c=l;return null==s.active_rowspans&&(s.active_rowspans=l),null==e&&(e=l),c=[e,a($(o=s.active_rowspans["$[]"](e))?o:0,n)],p(s.active_rowspans,"[]=",t.to_a(c)),c[r(c["length"],1)]},i.$$s=o,i.$$arity=1,i)),l},E.$$arity=2),t.def(L,"$end_of_row?",T=function(){var t,e=this;return $(t=e.colcount["$=="](-1))?t:e.$effective_column_visits()["$=="](e.colcount)},T.$$arity=0),t.def(L,"$effective_column_visits",P=function(){var t=this;return a(t.column_visits,t.active_rowspans["$[]"](0))},P.$$arity=0),t.def(L,"$advance",B=function(){var t=this;return t.linenum=a(t.linenum,1)},B.$$arity=0)}(u(y,"Table"),null,y)}(s[0],s)},Opal.modules["asciidoctor/writer"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.module),s=t.truthy,l=t.hash2;return t.add_stubs(["$respond_to?","$write","$+","$chomp","$include"]),function(n,c){var u=a(n,"Asciidoctor"),d=[u].concat(c);(function(n,c){var u,d=a(n,"Writer"),f=[d].concat(c);t.def(d,"$write",u=function(t,n){return s(n["$respond_to?"]("write"))?n.$write(e(t.$chomp(),o(f,"LF"))):i("::","File").$write(n,t,l(["mode"],{mode:o(f,"FILE_WRITE_MODE")})),r},u.$$arity=2)})(d[0],d),function(e,n){var i,s=a(e,"VoidWriter"),l=[s].concat(n);s.$include(o(l,"Writer")),t.def(s,"$write",i=function(t,e){return r},i.$$arity=2)}(d[0],d)}(n[0],n)},Opal.modules["asciidoctor/load"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}t.top;var r=[],i=t.nil,o=t.const_get_qualified,a=t.const_get_relative,s=(t.breaker,t.slice,t.module),l=t.hash2,c=t.truthy,u=t.send;return t.add_stubs(["$module_function","$merge","$[]","$start","$!=","$logger","$logger=","$-","$!","$===","$dup","$tap","$each","$partition","$[]=","$split","$gsub","$+","$respond_to?","$keys","$raise","$join","$ancestors","$class","$mtime","$absolute_path","$path","$dirname","$basename","$extname","$read","$rewind","$drop","$record","$==","$new","$parse","$exception","$message","$set_backtrace","$backtrace","$stack_trace","$stack_trace=","$open","$load"]),function(r,d){var f,h,p=s(r,"Asciidoctor"),$=[p].concat(d);p.$module_function(),t.def(p,"$load",f=function(r,s){var d,f,h,p,m,g,v=this,y=i,_=i,b=i,w=i,x=i,k=i,S=i,O=i,C=i,A=i;null==s&&(s=l([],{}));try{if(s=s.$merge(),c(y=s["$[]"]("timings"))&&y.$start("read"),c(c(d=_=s["$[]"]("logger"))?_["$!="](a($,"LoggerManager").$logger()):d)&&(b=[_],u(a($,"LoggerManager"),"logger=",t.to_a(b)),b[e(b["length"],1)]),c((w=s["$[]"]("attributes"))["$!"]())?w=l([],{}):c(o("::","Hash")["$==="](w))?w=w.$merge():c(c(d=(h=o("::","Java","skip_raise"))&&(f=o(h,"JavaUtil","skip_raise"))&&o(f,"Map","skip_raise")?"constant":i)?o(o(o("::","Java"),"JavaUtil"),"Map")["$==="](w):d)?w=w.$dup():c(o("::","Array")["$==="](w))?w=u(l([],{}),"tap",[],(p=function(n){var r,o=p.$$s||this;return null==n&&(n=i),u(w,"each",[],(r=function(o){r.$$s;var a,s,l=i,c=i;return null==o&&(o=i),s=o.$partition("="),a=t.to_ary(s),l=null==a[0]?i:a[0],null==a[1]?i:a[1],c=null==a[2]?i:a[2],b=[l,c],u(n,"[]=",t.to_a(b)),b[e(b["length"],1)]},r.$$s=o,r.$$arity=1,r))},p.$$s=v,p.$$arity=1,p)):c(o("::","String")["$==="](w))?w=u(l([],{}),"tap",[],(m=function(r){var o,s=m.$$s||this;return null==r&&(r=i),u(w.$gsub(a($,"SpaceDelimiterRx"),n("\\1",a($,"NULL"))).$gsub(a($,"EscapedSpaceRx"),"\\1").$split(a($,"NULL")),"each",[],(o=function(n){o.$$s;var a,s,l=i,c=i;return null==n&&(n=i),s=n.$partition("="),a=t.to_ary(s),l=null==a[0]?i:a[0],null==a[1]?i:a[1],c=null==a[2]?i:a[2],b=[l,c],u(r,"[]=",t.to_a(b)),b[e(b["length"],1)]},o.$$s=s,o.$$arity=1,o))},m.$$s=v,m.$$arity=1,m)):c(c(d=w["$respond_to?"]("keys"))?w["$respond_to?"]("[]"):d)?w=u(l([],{}),"tap",[],(g=function(n){var r,o=g.$$s||this;return null==n&&(n=i),u(w.$keys(),"each",[],(r=function(o){r.$$s;return null==o&&(o=i),b=[o,w["$[]"](o)],u(n,"[]=",t.to_a(b)),b[e(b["length"],1)]},r.$$s=o,r.$$arity=1,r))},g.$$s=v,g.$$arity=1,g)):v.$raise(o("::","ArgumentError"),"illegal type for attributes option: "+w.$class().$ancestors().$join(" < ")),c(o("::","File")["$==="](r)))b=["input_mtime",r.$mtime()],u(s,"[]=",t.to_a(b)),b[e(b["length"],1)],b=["docfile",x=o("::","File").$absolute_path(r.$path())],u(w,"[]=",t.to_a(b)),b[e(b["length"],1)],b=["docdir",o("::","File").$dirname(x)],u(w,"[]=",t.to_a(b)),b[e(b["length"],1)],b=["docname",a($,"Helpers").$basename(x,(b=["docfilesuffix",a($,"Helpers").$extname(x)],u(w,"[]=",t.to_a(b)),b[e(b["length"],1)]))],u(w,"[]=",t.to_a(b)),b[e(b["length"],1)],k=r.$read();else if(c(r["$respond_to?"]("read"))){try{r.$rewind()}catch(E){if(!t.rescue(E,[a($,"StandardError")]))throw E;t.pop_exception()}k=r.$read()}else c(o("::","String")["$==="](r))?k=r:c(o("::","Array")["$==="](r))?k=r.$drop(0):c(r)&&v.$raise(o("::","ArgumentError"),"unsupported input type: "+r.$class());return c(y)&&(y.$record("read"),y.$start("parse")),b=["attributes",w],u(s,"[]=",t.to_a(b)),b[e(b["length"],1)],S=function(){return s["$[]"]("parse")["$=="](!1)?a($,"Document").$new(k,s):a($,"Document").$new(k,s).$parse()}(),c(y)&&y.$record("parse"),S}catch(E){if(!t.rescue(E,[a($,"StandardError")]))throw E;O=E;try{try{C="asciidoctor: FAILED: "+(c(d=w["$[]"]("docfile"))?d:"<stdin>")+": Failed to load AsciiDoc document",c(O["$respond_to?"]("exception"))?(A=O.$exception(C+" - "+O.$message()),A.$set_backtrace(O.$backtrace()),A.stack=O.stack):(A=O.$class().$new(C,O),b=[O.$stack_trace()],u(A,"stack_trace=",t.to_a(b)),b[e(b["length"],1)])}catch(E){if(!t.rescue(E,[a($,"StandardError")]))throw E;try{A=O}finally{t.pop_exception()}}return v.$raise(A)}finally{t.pop_exception()}}},f.$$arity=-2),t.def(p,"$load_file",h=function(t,e){var n,r=this;return null==e&&(e=l([],{})),u(o("::","File"),"open",[t,a($,"FILE_READ_MODE")],(n=function(t){var r=n.$$s||this;return null==t&&(t=i),r.$load(t,e)},n.$$s=r,n.$$arity=1,n))},h.$$arity=-2)}(r[0],r)},Opal.modules["asciidoctor/convert"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>=e:t["$>="](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.hash2,u=t.truthy,d=t.send;return t.add_stubs(["$module_function","$delete","$merge","$===","$absolute_path","$path","$load","$respond_to?","$[]=","$-","$key?","$fetch","$[]","$dirname","$expand_path","$join","$attributes","$outfilesuffix","$==","$raise","$pwd","$>=","$safe","$normalize_system_path","$mkdir_p","$directory?","$!","$convert","$write","$<","$attr?","$basebackend?","$attr","$uriish?","$include?","$syntax_highlighter","$write_stylesheet?","$write_primary_stylesheet","$instance","$empty?","$!=","$read_asset","$file?","$write_stylesheet","$open"]),function(i,f){var h,p,$=l(i,"Asciidoctor"),m=[$].concat(f);$.$module_function(),t.def($,"$convert",h=function(i,l){var f,h,p,$,g,v=this,y=o,_=o,b=o,w=o,x=o,k=o,S=o,O=o,C=o,A=o,E=o,T=o,P=o,B=o,L=o,I=o,D=o,R=o,j=o,M=o,F=o,N=o,z=o,H=o;if(null==l&&(l=c([],{})),(l=l.$merge()).$delete("parse"),y=l.$delete("to_dir"),_=l.$delete("mkdirs"),b=w=l.$delete("to_file"),(!0)["$==="](b)||o["$==="](b))u(x=y)||u(a("::","File")["$==="](i))&&(k=a("::","File").$absolute_path(i.$path())),w=o;else if((!1)["$==="](b))w=o;else{if("/dev/null"["$==="](b))return v.$load(i,l);u(S=w["$respond_to?"]("write"))||(O=["to_file",x=w],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)])}return u(l["$key?"]("standalone"))||(u(u(f=k)?f:x)?(O=["standalone",l.$fetch("header_footer",!0)],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):u(l["$key?"]("header_footer"))&&(O=["standalone",l["$[]"]("header_footer")],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)])),u(k)?(O=["to_dir",C=a("::","File").$dirname(k)],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):u(x)&&(u(y)?u(w)?(O=["to_dir",a("::","File").$dirname(a("::","File").$expand_path(a("::","File").$join(y,w)))],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):(O=["to_dir",a("::","File").$expand_path(y)],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)]):u(w)&&(O=["to_dir",a("::","File").$dirname(a("::","File").$expand_path(w))],d(l,"[]=",t.to_a(O)),O[e(O["length"],1)])),A=v.$load(i,l),u(k)?(E=a("::","File").$join(C,""+A.$attributes()["$[]"]("docname")+A.$outfilesuffix()),E["$=="](k)&&v.$raise(a("::","IOError"),"input file and output file cannot be the same: "+E)):u(x)?(T=function(){return u(l["$key?"]("base_dir"))?a("::","File").$expand_path(l["$[]"]("base_dir")):a("::","Dir").$pwd()}(),P=function(){return u(n(A.$safe(),a(s(m,"SafeMode"),"SAFE")))?T:o}(),u(y)?(C=A.$normalize_system_path(y,T,P,c(["target_name","recover"],{target_name:"to_dir",recover:!1})),u(w)?(E=A.$normalize_system_path(w,C,o,c(["target_name","recover"],{target_name:"to_dir",recover:!1})),C=a("::","File").$dirname(E)):E=a("::","File").$join(C,""+A.$attributes()["$[]"]("docname")+A.$outfilesuffix())):u(w)&&(E=A.$normalize_system_path(w,T,P,c(["target_name","recover"],{target_name:"to_dir",recover:!1})),C=a("::","File").$dirname(E)),u(u(f=a("::","File")["$==="](i))?E["$=="](a("::","File").$absolute_path(i.$path())):f)&&v.$raise(a("::","IOError"),"input file and output file cannot be the same: "+E),u(_)?s(m,"Helpers").$mkdir_p(C):u(a("::","File")["$directory?"](C))||v.$raise(a("::","IOError"),"target directory does not exist: "+y+" (hint: set :mkdirs option)")):(E=w,C=o),B=u(u(f=E)?S["$!"]():f)?A.$convert(c(["outfile","outdir"],{outfile:E,outdir:C})):A.$convert(),u(E)?(A.$write(B,E),u(u(f=u(h=u(p=u($=u(g=S["$!"]())?r(A.$safe(),a(s(m,"SafeMode"),"SECURE")):g)?A["$attr?"]("linkcss"):$)?A["$attr?"]("copycss"):p)?A["$basebackend?"]("html"):h)?(u(h=L=A.$attr("stylesdir"))?s(m,"Helpers")["$uriish?"](L):h)["$!"]():f)&&(u(I=A.$attr("stylesheet"))&&(u(s(m,"DEFAULT_STYLESHEET_KEYS")["$include?"](I))?D=!0:u(s(m,"Helpers")["$uriish?"](I)["$!"]())&&(R=!0)),j=u(f=M=A.$syntax_highlighter())?M["$write_stylesheet?"](A):f,u(u(f=u(h=D)?h:R)?f:j)&&(F=A.$normalize_system_path(L,C,function(){return u(n(A.$safe(),a(s(m,"SafeMode"),"SAFE")))?C:o}()),u(_)?s(m,"Helpers").$mkdir_p(F):u(a("::","File")["$directory?"](F))||v.$raise(a("::","IOError"),"target stylesheet directory does not exist: "+F+" (hint: set :mkdirs option)"),u(D)?s(m,"Stylesheets").$instance().$write_primary_stylesheet(F):u(R)&&(N=u((N=A.$attr("copycss"))["$empty?"]())?A.$normalize_system_path(I):A.$normalize_system_path(N),z=A.$normalize_system_path(I,F,function(){return u(n(A.$safe(),a(s(m,"SafeMode"),"SAFE")))?C:o}()),u(u(f=N["$!="](z))?H=A.$read_asset(N,c(["warn_on_failure","label"],{warn_on_failure:a("::","File")["$file?"](z)["$!"](),label:"stylesheet"})):f)&&a("::","File").$write(z,H,c(["mode"],{mode:s(m,"FILE_WRITE_MODE")}))),u(j)&&M.$write_stylesheet(A,F))),A):B},h.$$arity=-2),t.def($,"$convert_file",p=function(t,e){var n,r=this;return null==e&&(e=c([],{})),d(a("::","File"),"open",[t,s(m,"FILE_READ_MODE")],(n=function(t){var r=n.$$s||this;return null==t&&(t=o),r.$convert(t,e)},n.$$s=r,n.$$arity=1,n))},p.$$arity=-2),t.alias($,"render","convert"),$.$module_function("render"),t.alias($,"render_file","convert_file"),$.$module_function("render_file")}(i[0],i)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.module),s=t.klass,l=t.send,c=t.hash2,u=t.truthy;return t.add_stubs(["$register_for","$merge","$proc","$[]=","$-","$==","$attr","$[]","$attr?","$join","$map","$split","$lstrip"]),function(n,d){var f=a(n,"Asciidoctor"),h=[f].concat(d);(function(n,i,a){var d,f,h,p,$=s(n,i,"HighlightJsAdapter"),m=[$].concat(a);$.$register_for("highlightjs","highlight.js"),t.def($,"$initialize",d=function(e){var n,i=d.$$p,o=this,a=r,s=r,c=r;for(i&&(d.$$p=null),s=0,c=arguments.length,a=new Array(c);s<c;s++)a[s]=arguments[s];return n=t.slice.call(arguments,0,arguments.length),n,l(o,t.find_super_dispatcher(o,"initialize",d,!1),a,i),o.name=o.pre_class="highlightjs"},d.$$arity=-1),t.def($,"$format",f=function(n,i,o){var a,s=f.$$p,d=this;return s&&(f.$$p=null),l(d,t.find_super_dispatcher(d,"format",f,!1),[n,i,o.$merge(c(["transform"],{transform:l(d,"proc",[],(a=function(n,o){a.$$s;var s,c=r;return null==n&&(n=r),null==o&&(o=r),c=["class","language-"+(u(s=i)?s:"none")+" hljs"],l(o,"[]=",t.to_a(c)),c[e(c["length"],1)]},a.$$s=d,a.$$arity=2,a))}))],null)},f.$$arity=3),t.def($,"$docinfo?",h=function(t){return t["$=="]("footer")},h.$$arity=1),t.def($,"$docinfo",p=function(t,e,n){var i,a=this,s=r;return s=e.$attr("highlightjsdir",n["$[]"]("cdn_base_url")+"/highlight.js/"+o(m,"HIGHLIGHT_JS_VERSION")),'<link rel="stylesheet" href="'+s+"/styles/"+e.$attr("highlightjs-theme","github")+'.min.css"'+n["$[]"]("self_closing_tag_slash")+'>\n<script src="'+s+'/highlight.min.js"><\/script>\n'+function(){return u(e["$attr?"]("highlightjs-languages"))?l(e.$attr("highlightjs-languages").$split(","),"map",[],(i=function(t){i.$$s;return null==t&&(t=r),'<script src="'+s+"/languages/"+t.$lstrip()+'.min.js"><\/script>\n'},i.$$s=a,i.$$arity=1,i)).$join():""}()+"<script>hljs.initHighlighting()<\/script>"},p.$$arity=3)})(o(h,"SyntaxHighlighter"),i(o(h,"SyntaxHighlighter"),"Base"),h)}(n[0],n)},Opal.modules["asciidoctor/syntax_highlighter"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}var n=t.top,r=[],i=t.nil,o=t.const_get_qualified,a=t.const_get_relative,s=(t.breaker,t.slice,t.module),l=t.hash2,c=t.truthy,u=t.send,d=t.klass;return t.add_stubs(["$attr_reader","$raise","$class","$private_class_method","$extend","$register","$map","$to_s","$each","$[]=","$registry","$-","$[]","$for","$===","$new","$name","$private","$include","$==","$join","$content"]),function(n,r){var f=s(n,"Asciidoctor"),h=[f].concat(r);(function(n,r){var f,h,p,$,m,g,v,y,_,b,w=s(n,"SyntaxHighlighter"),x=[w].concat(r);w.$attr_reader("name"),t.def(w,"$initialize",f=function(t,e,n){var r=this;return null==e&&(e="html5"),null==n&&(n=l([],{})),r.name=r.pre_class=t},f.$$arity=-2),t.def(w,"$docinfo?",h=function(t){return i},h.$$arity=1),t.def(w,"$docinfo",p=function(t,e,n){var r=this;return r.$raise(o("::","NotImplementedError"),a(x,"SyntaxHighlighter")+" subclass "+r.$class()+" must implement the #docinfo method since #docinfo? returns true")},p.$$arity=3),t.def(w,"$highlight?",$=function(){return i},$.$$arity=0),t.def(w,"$highlight",m=function(t,e,n,r){var i=this;return i.$raise(o("::","NotImplementedError"),a(x,"SyntaxHighlighter")+" subclass "+i.$class()+" must implement the #highlight method since #highlight? returns true")},m.$$arity=4),t.def(w,"$format",g=function(t,e,n){var r=this;return r.$raise(o("::","NotImplementedError"),a(x,"SyntaxHighlighter")+" subclass "+r.$class()+" must implement the #format method")},g.$$arity=3),t.def(w,"$write_stylesheet?",v=function(t){return i},v.$$arity=1),t.def(w,"$write_stylesheet",y=function(t,e){var n=this;return n.$raise(o("::","NotImplementedError"),a(x,"SyntaxHighlighter")+" subclass "+n.$class()+" must implement the #write_stylesheet method since #write_stylesheet? returns true")},y.$$arity=2),w.$private_class_method(c((t.defs(w,"$included",b=function(t){return t.$extend(a(x,"Config"))},b.$$arity=1),_=i&&"included"))?_:"included"),function(e,n){var r,o=s(e,"Config"),l=[o].concat(n);t.def(o,"$register_for",r=function(e){var n,r,o,s=this;return n=t.slice.call(arguments,0,arguments.length),r=n,u(a(l,"SyntaxHighlighter"),"register",[s].concat(t.to_a(u(r,"map",[],(o=function(t){o.$$s;return null==t&&(t=i),t.$to_s()},o.$$s=s,o.$$arity=1,o)))))},r.$$arity=-1)}(x[0],x),function(n,r){var d,f,h,p,$=s(n,"Factory"),m=[$].concat(r);t.def($,"$register",d=function(n,r){var o,a,s,l=this;return o=t.slice.call(arguments,1,arguments.length),a=o,u(a,"each",[],(s=function(r){var o=s.$$s||this,a=i;return null==r&&(r=i),a=[r,n],u(o.$registry(),"[]=",t.to_a(a)),a[e(a["length"],1)]},s.$$s=l,s.$$arity=1,s))},d.$$arity=-2),t.def($,"$for",f=function(t){var e=this;return e.$registry()["$[]"](t)},f.$$arity=1),t.def($,"$create",h=function(t,e,n){var r=this,a=i;return null==e&&(e="html5"),null==n&&(n=l([],{})),c(a=r.$for(t))?(c(o("::","Class")["$==="](a))&&(a=a.$new(t,e,n)),c(a.$name())||r.$raise(o("::","NameError"),a.$class()+" must specify a value for `name'"),a):i},h.$$arity=-2),$.$private(),t.def($,"$registry",p=function(){var t=this;return t.$raise(o("::","NotImplementedError"),a(m,"Factory")+" subclass "+t.$class()+" must implement the #registry method")},p.$$arity=0)}(x[0],x),function(e,n,r){var o,s,u=d(e,n,"CustomFactory"),f=[u].concat(r);u.$$prototype.registry=i,u.$include(a(f,"Factory")),t.def(u,"$initialize",o=function(t){var e,n=this;return null==t&&(t=i),n.registry=c(e=t)?e:l([],{})},o.$$arity=-1),u.$private(),t.def(u,"$registry",s=function(){var t=this;return t.registry},s.$$arity=0)}(x[0],null,x),function(e,n){var r,o=s(e,"DefaultFactory"),c=[o].concat(n);o.$include(a(c,"Factory")),o.$private(),t.class_variable_set(c[0],"@@registry",l([],{})),t.def(o,"$registry",r=function(){var t;return null==(t=c[0].$$cvars["@@registry"])?i:t},r.$$arity=0),a(c,"RUBY_ENGINE")["$=="]("opal")}(x[0],x),function(t,e,n){var r=d(t,e,"DefaultFactoryProxy"),i=[r].concat(n);r.$include(a(i,"DefaultFactory")),a(i,"RUBY_ENGINE")["$=="]("opal")}(x[0],a(x,"CustomFactory"),x),function(e,n,r){var o,s=d(e,n,"Base"),f=[s].concat(r);s.$$prototype.pre_class=i,s.$include(a(f,"SyntaxHighlighter")),t.def(s,"$format",o=function(t,e,n){var r,o,a=this,s=i,d=i,f=i,h=i;return s=function(){return c(n["$[]"]("nowrap"))?a.pre_class+" highlight nowrap":a.pre_class+" highlight"}(),c(d=n["$[]"]("transform"))?(f=l(["class"],{class:s}),h=function(){return c(e)?l(["data-lang"],{"data-lang":e}):l([],{})}(),d["$[]"](f,h),"<pre"+u(f,"map",[],(r=function(t,e){r.$$s;return null==t&&(t=i),null==e&&(e=i)," "+t+'="'+e+'"'},r.$$s=a,r.$$arity=2,r)).$join()+"><code"+u(h,"map",[],(o=function(t,e){o.$$s;return null==t&&(t=i),null==e&&(e=i)," "+t+'="'+e+'"'},o.$$s=a,o.$$arity=2,o)).$join()+">"+t.$content()+"</code></pre>"):'<pre class="'+s+'"><code'+function(){return c(e)?' data-lang="'+e+'"':""}()+">"+t.$content()+"</code></pre>"},o.$$arity=3)}(x[0],null,x),w.$extend(a(x,"DefaultFactory"))})(h[0],h)}(r[0],r),n.$require("asciidoctor/syntax_highlighter.rb/../syntax_highlighter/highlightjs"),a(r,"RUBY_ENGINE")["$=="]("opal"),i},Opal.modules["asciidoctor/timings"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}t.top;var i=[],o=t.nil,a=t.const_get_qualified,s=t.const_get_relative,l=(t.breaker,t.slice,t.module),c=t.klass,u=t.hash2,d=t.send,f=t.truthy,h=t.gvars;return t.add_stubs(["$now","$[]=","$-","$delete","$reduce","$+","$[]","$>","$time","$puts","$%","$to_f","$read_parse","$convert","$read_parse_convert","$private","$const_defined?","$==","$clock_gettime"]),function(i,p){var $=l(i,"Asciidoctor"),m=[$].concat(p);(function(i,l,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I=c(i,l,"Timings"),D=[I].concat(p);I.$$prototype.timers=I.$$prototype.log=o,t.def(I,"$initialize",$=function(){var t=this;return t.log=u([],{}),t.timers=u([],{})},$.$$arity=0),t.def(I,"$start",m=function(n){var r=this,i=o;return i=[n,r.$now()],d(r.timers,"[]=",t.to_a(i)),i[e(i["length"],1)]},m.$$arity=1),t.def(I,"$record",g=function(n){var r=this,i=o;return i=[n,e(r.$now(),r.timers.$delete(n))],d(r.log,"[]=",t.to_a(i)),i[e(i["length"],1)]},g.$$arity=1),t.def(I,"$time",v=function(e){var i,a,s,l=this,c=o;return i=t.slice.call(arguments,0,arguments.length),a=i,c=d(a,"reduce",[0],(s=function(t,e){var r,i=s.$$s||this;return null==i.log&&(i.log=o),null==t&&(t=o),null==e&&(e=o),n(t,f(r=i.log["$[]"](e))?r:0)},s.$$s=l,s.$$arity=2,s)),f(r(c,0))?c:o},v.$$arity=-1),t.def(I,"$read",y=function(){var t=this;return t.$time("read")},y.$$arity=0),t.def(I,"$parse",_=function(){var t=this;return t.$time("parse")},_.$$arity=0),t.def(I,"$read_parse",b=function(){var t=this;return t.$time("read","parse")},b.$$arity=0),t.def(I,"$convert",w=function(){var t=this;return t.$time("convert")},w.$$arity=0),t.def(I,"$read_parse_convert",x=function(){var t=this;return t.$time("read","parse","convert")},x.$$arity=0),t.def(I,"$write",k=function(){var t=this;return t.$time("write")},k.$$arity=0),t.def(I,"$total",S=function(){var t=this;return t.$time("read","parse","convert","write")},S.$$arity=0),t.def(I,"$print_report",O=function(t,e){var n=this;return null==h.stdout&&(h.stdout=o),null==t&&(t=h.stdout),null==e&&(e=o),f(e)&&t.$puts("Input file: "+e),t.$puts(" Time to read and parse source: "+"%05.5f"["$%"](n.$read_parse().$to_f())),t.$puts(" Time to convert document: "+"%05.5f"["$%"](n.$convert().$to_f())),t.$puts(" Total time (read, parse and convert): "+"%05.5f"["$%"](n.$read_parse_convert().$to_f()))},O.$$arity=-1),I.$private(),f(f(C=a("::","Process")["$const_defined?"]("CLOCK_MONOTONIC",!1))?((A=a("::","Process","skip_raise"))&&(E=A,E)&&(T=E)&&((P=T.$clock_gettime)&&!P.$$stub||T["$respond_to_missing?"]("clock_gettime"))?"method":o)["$=="]("method"):C)?(t.const_set(D[0],"CLOCK_ID",a(a("::","Process"),"CLOCK_MONOTONIC")),t.def(I,"$now",B=function(){return a("::","Process").$clock_gettime(s(D,"CLOCK_ID"))},B.$$arity=0)):t.def(I,"$now",L=function(){return a("::","Time").$now()},L.$$arity=0)})(m[0],null,m)}(i[0],i)},Opal.modules["asciidoctor/converter/composite"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}t.top;var n=[],r=t.nil,i=t.const_get_qualified,o=t.const_get_relative,a=(t.breaker,t.slice,t.module),s=t.klass,l=t.hash2,c=t.send,u=t.truthy;return t.add_stubs(["$attr_reader","$each","$respond_to?","$composed","$init_backend_traits","$backend_traits","$new","$find_converter","$[]=","$-","$convert","$converter_for","$node_name","$[]","$handles?","$raise"]),function(n,d){var f=a(n,"Asciidoctor"),h=[f].concat(d);(function(n,o,a){var d,f,h,p,$=s(n,o,"CompositeConverter");[$].concat(a);$.$$prototype.converter_cache=$.$$prototype.converters=r,$.$attr_reader("converters"),t.def($,"$initialize",d=function(n,o,a){var s,d,f,h,p,$,m=this;if(s=t.slice.call(arguments,1,arguments.length),d=t.extract_kwargs(s),null==d)d=l([],{});else if(!d.$$is_hash)throw t.ArgumentError.$new("expected kwargs");return f=s,h=d.$$smap["backend_traits_source"],null==h&&(h=r),m.backend=n,c(m.converters=f,"each",[],(p=function(t){var e=p.$$s||this;return null==t&&(t=r),u(t["$respond_to?"]("composed"))?t.$composed(e):r},p.$$s=m,p.$$arity=1,p)),u(h)&&m.$init_backend_traits(h.$backend_traits()),m.converter_cache=c(i("::","Hash"),"new",[],($=function(n,i){var o=$.$$s||this,a=r;return null==n&&(n=r),null==i&&(i=r),a=[i,o.$find_converter(i)],c(n,"[]=",t.to_a(a)),a[e(a["length"],1)]},$.$$s=m,$.$$arity=2,$))},d.$$arity=-2),t.def($,"$convert",f=function(t,e,n){var i,o=this;return null==e&&(e=r),null==n&&(n=r),o.$converter_for(e=u(i=e)?i:t.$node_name()).$convert(t,e,n)},f.$$arity=-2),t.def($,"$converter_for",h=function(t){var e=this;return e.converter_cache["$[]"](t)},h.$$arity=1),t.def($,"$find_converter",p=function(e){try{var n,i=this;return c(i.converters,"each",[],(n=function(i){n.$$s;if(null==i&&(i=r),!u(i["$handles?"](e)))return r;t.ret(i)},n.$$s=i,n.$$arity=1,n)),i.$raise("Could not find a converter to handle transform: "+e)}catch(o){if(o===t.returner)return o.$v;throw o}},p.$$arity=1)})(o(h,"Converter"),i(o(h,"Converter"),"Base"),h)}(n[0],n)},Opal.modules["asciidoctor/converter/html5"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t<=e:t["$<="](e)}function o(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}function a(t,e){return"number"===typeof t&&"number"===typeof e?t*e:t["$*"](e)}t.top;var s=[],l=t.nil,c=t.const_get_qualified,u=t.const_get_relative,d=(t.breaker,t.slice,t.module),f=t.klass,h=t.send,p=t.hash2,$=t.truthy,m=t.gvars;return t.add_stubs(["$register_for","$default=","$-","$==","$[]","$init_backend_traits","$node_name","$convert_inline_quoted","$convert_paragraph","$convert_inline_anchor","$convert_section","$convert_listing","$convert_literal","$convert_ulist","$convert_olist","$convert_dlist","$convert_admonition","$convert_colist","$convert_embedded","$convert_example","$convert_floating_title","$convert_image","$convert_inline_break","$convert_inline_button","$convert_inline_callout","$convert_inline_footnote","$convert_inline_image","$convert_inline_indexterm","$convert_inline_kbd","$convert_inline_menu","$convert_open","$convert_page_break","$convert_preamble","$convert_quote","$convert_sidebar","$convert_stem","$convert_table","$convert_thematic_break","$convert_verse","$convert_video","$convert_document","$convert_toc","$convert_pass","$convert_audio","$empty?","$attr","$attr?","$<<","$include?","$sub_replacements","$gsub","$extname","$slice","$length","$doctitle","$normalize_web_path","$primary_stylesheet_data","$instance","$read_asset","$normalize_system_path","$syntax_highlighter","$docinfo?","$docinfo","$id","$sections?","$doctype","$role?","$role","$join","$noheader","$convert_outline","$generate_manname_section","$header?","$notitle","$title","$header","$each","$authors","$>","$name","$email","$sub_macros","$+","$downcase","$concat","$content","$footnotes?","$!","$footnotes","$index","$text","$nofooter","$inspect","$!=","$to_i","$attributes","$document","$sections","$level","$caption","$captioned_title","$numbered","$<=","$<","$sectname","$sectnum","$title?","$icon_uri","$compact","$media_uri","$option?","$append_boolean_attribute","$style","$items","$blocks?","$===","$text?","$chomp","$safe","$read_svg_contents","$alt","$image_uri","$encode_attribute_value","$append_link_constraint_attrs","$highlight?","$to_sym","$[]=","$format","$*","$count","$start_with?","$end_with?","$list_marker_keyword","$parent","$warn","$logger","$context","$error","$new","$size","$columns","$to_h","$rows","$colspan","$rowspan","$unshift","$shift","$pop","$split","$nil_or_empty?","$type","$catalog","$xreftext","$target","$reftext","$map","$chop","$read_contents","$sub","$match","$private","$upcase","$to_s","$handles?","$send"]),function(s,g){var v=d(s,"Asciidoctor"),y=[v].concat(g);(function(s,d,g){var v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ct=f(s,d,"Html5Converter"),ut=[ct].concat(g),dt=l;ct.$$prototype.void_element_slash=ct.$$prototype.xml_mode=ct.$$prototype.refs=l,ct.$register_for("html5"),dt=[["",""]],h(t.const_set(ut[0],"QUOTE_TAGS",p(["monospaced","emphasis","strong","double","single","mark","superscript","subscript","asciimath","latexmath"],{monospaced:["<code>","</code>",!0],emphasis:["<em>","</em>",!0],strong:["<strong>","</strong>",!0],double:["&#8220;","&#8221;"],single:["&#8216;","&#8217;"],mark:["<mark>","</mark>",!0],superscript:["<sup>","</sup>",!0],subscript:["<sub>","</sub>",!0],asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),"default=",t.to_a(dt)),dt[e(dt["length"],1)],t.const_set(ut[0],"DropAnchorRx",/<(?:a[^>+]+|\/a)>/),t.const_set(ut[0],"StemBreakRx",/ *\\\n(?:\\?\n)*|\n\n+/),u(ut,"RUBY_ENGINE")["$=="]("opal")&&(t.const_set(ut[0],"SvgPreambleRx",new RegExp("^"+u(ut,"CC_ALL")+"*?(?=<svg\\b)")),t.const_set(ut[0],"SvgStartTagRx",/^<svg[^>]*>/)),t.const_set(ut[0],"DimensionAttributeRx",new RegExp("\\s(?:width|height|style)=([\"'])"+u(ut,"CC_ANY")+"*?\\1")),t.def(ct,"$initialize",v=function(t,e){var n=this,r=l;return null==e&&(e=p([],{})),n.backend=t,e["$[]"]("htmlsyntax")["$=="]("xml")?(r="xml",n.xml_mode=!0,n.void_element_slash="/"):(r="html",n.xml_mode=l,n.void_element_slash=""),n.$init_backend_traits(p(["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates"],{basebackend:"html",filetype:"html",htmlsyntax:r,outfilesuffix:".html",supports_templates:!0}))},v.$$arity=-2),t.def(ct,"$convert",y=function(e,n,r){var i=y.$$p,o=this,a=l,s=l,c=l;for(i&&(y.$$p=null),s=0,c=arguments.length,a=new Array(c);s<c;s++)a[s]=arguments[s];return null==n&&(n=e.$node_name()),null==r&&(r=l),n["$=="]("inline_quoted")?o.$convert_inline_quoted(e):n["$=="]("paragraph")?o.$convert_paragraph(e):n["$=="]("inline_anchor")?o.$convert_inline_anchor(e):n["$=="]("section")?o.$convert_section(e):n["$=="]("listing")?o.$convert_listing(e):n["$=="]("literal")?o.$convert_literal(e):n["$=="]("ulist")?o.$convert_ulist(e):n["$=="]("olist")?o.$convert_olist(e):n["$=="]("dlist")?o.$convert_dlist(e):n["$=="]("admonition")?o.$convert_admonition(e):n["$=="]("colist")?o.$convert_colist(e):n["$=="]("embedded")?o.$convert_embedded(e):n["$=="]("example")?o.$convert_example(e):n["$=="]("floating_title")?o.$convert_floating_title(e):n["$=="]("image")?o.$convert_image(e):n["$=="]("inline_break")?o.$convert_inline_break(e):n["$=="]("inline_button")?o.$convert_inline_button(e):n["$=="]("inline_callout")?o.$convert_inline_callout(e):n["$=="]("inline_footnote")?o.$convert_inline_footnote(e):n["$=="]("inline_image")?o.$convert_inline_image(e):n["$=="]("inline_indexterm")?o.$convert_inline_indexterm(e):n["$=="]("inline_kbd")?o.$convert_inline_kbd(e):n["$=="]("inline_menu")?o.$convert_inline_menu(e):n["$=="]("open")?o.$convert_open(e):n["$=="]("page_break")?o.$convert_page_break(e):n["$=="]("preamble")?o.$convert_preamble(e):n["$=="]("quote")?o.$convert_quote(e):n["$=="]("sidebar")?o.$convert_sidebar(e):n["$=="]("stem")?o.$convert_stem(e):n["$=="]("table")?o.$convert_table(e):n["$=="]("thematic_break")?o.$convert_thematic_break(e):n["$=="]("verse")?o.$convert_verse(e):n["$=="]("video")?o.$convert_video(e):n["$=="]("document")?o.$convert_document(e):n["$=="]("toc")?o.$convert_toc(e):n["$=="]("pass")?o.$convert_pass(e):n["$=="]("audio")?o.$convert_audio(e):h(o,t.find_super_dispatcher(o,"convert",y,!1),a,i)},y.$$arity=-2),t.def(ct,"$convert_document",_=function(t){var e,i,o,a,s,c=this,d=l,f=l,m=l,g=l,v=l,y=l,_=l,b=l,w=l,x=l,k=l,S=l,O=l,C=l,A=l,E=l,T=l,P=l,B=l,L=l,I=l,D=l;return d="<br"+(f=c.void_element_slash)+">",$((m=t.$attr("asset-uri-scheme","https"))["$empty?"]())||(m+=":"),g=m+"//cdnjs.cloudflare.com/ajax/libs",v=t["$attr?"]("linkcss"),y=["<!DOCTYPE html>"],_=function(){return $(t["$attr?"]("nolang"))?"":' lang="'+t.$attr("lang","en")+'"'}(),y["$<<"]("<html"+function(){return $(c.xml_mode)?' xmlns="http://www.w3.org/1999/xhtml"':""}()+_+">"),y["$<<"]('<head>\n<meta charset="'+t.$attr("encoding","UTF-8")+'"'+f+'>\n<meta http-equiv="X-UA-Compatible" content="IE=edge"'+f+'>\n<meta name="viewport" content="width=device-width, initial-scale=1.0"'+f+'>\n<meta name="generator" content="Asciidoctor '+t.$attr("asciidoctor-version")+'"'+f+">"),$(t["$attr?"]("app-name"))&&y["$<<"]('<meta name="application-name" content="'+t.$attr("app-name")+'"'+f+">"),$(t["$attr?"]("description"))&&y["$<<"]('<meta name="description" content="'+t.$attr("description")+'"'+f+">"),$(t["$attr?"]("keywords"))&&y["$<<"]('<meta name="keywords" content="'+t.$attr("keywords")+'"'+f+">"),$(t["$attr?"]("authors"))&&y["$<<"]('<meta name="author" content="'+function(){return $((b=t.$sub_replacements(t.$attr("authors")))["$include?"]("<"))?b.$gsub(u(ut,"XmlSanitizeRx"),""):b}()+'"'+f+">"),$(t["$attr?"]("copyright"))&&y["$<<"]('<meta name="copyright" content="'+t.$attr("copyright")+'"'+f+">"),$(t["$attr?"]("favicon"))&&($((w=t.$attr("favicon"))["$empty?"]())?(w="favicon.ico",x="image/x-icon"):x=$(k=u(ut,"Helpers").$extname(w,l))?function(){return k["$=="](".ico")?"image/x-icon":"image/"+k.$slice(1,k.$length())}():"image/x-icon",y["$<<"]('<link rel="icon" type="'+x+'" href="'+w+'"'+f+">")),y["$<<"]("<title>"+t.$doctitle(p(["sanitize","use_fallback"],{sanitize:!0,use_fallback:!0}))+"</title>"),$(u(ut,"DEFAULT_STYLESHEET_KEYS")["$include?"](t.$attr("stylesheet")))?($(S=t.$attr("webfonts"))&&y["$<<"]('<link rel="stylesheet" href="'+m+"//fonts.googleapis.com/css?family="+function(){return $(S["$empty?"]())?"Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700":S}()+'"'+f+">"),$(v)?y["$<<"]('<link rel="stylesheet" href="'+t.$normalize_web_path(u(ut,"DEFAULT_STYLESHEET_NAME"),t.$attr("stylesdir",""),!1)+'"'+f+">"):y["$<<"]("<style>\n"+u(ut,"Stylesheets").$instance().$primary_stylesheet_data()+"\n</style>")):$(t["$attr?"]("stylesheet"))&&($(v)?y["$<<"]('<link rel="stylesheet" href="'+t.$normalize_web_path(t.$attr("stylesheet"),t.$attr("stylesdir",""))+'"'+f+">"):y["$<<"]("<style>\n"+t.$read_asset(t.$normalize_system_path(t.$attr("stylesheet"),t.$attr("stylesdir","")),p(["warn_on_failure","label"],{warn_on_failure:!0,label:"stylesheet"}))+"\n</style>")),$(t["$attr?"]("icons","font"))&&($(t["$attr?"]("iconfont-remote"))?y["$<<"]('<link rel="stylesheet" href="'+t.$attr("iconfont-cdn",g+"/font-awesome/"+u(ut,"FONT_AWESOME_VERSION")+"/css/font-awesome.min.css")+'"'+f+">"):(O=t.$attr("iconfont-name","font-awesome")+".css",y["$<<"]('<link rel="stylesheet" href="'+t.$normalize_web_path(O,t.$attr("stylesdir",""),!1)+'"'+f+">"))),$($(e=C=t.$syntax_highlighter())?C["$docinfo?"]("head"):e)&&y["$<<"](C.$docinfo("head",t,p(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:g,linkcss:v,self_closing_tag_slash:f}))),$((A=t.$docinfo())["$empty?"]())||y["$<<"](A),y["$<<"]("</head>"),E=function(){return $(t.$id())?['id="'+t.$id()+'"']:[]}(),P=$($(e=$(i=$(o=T=t["$sections?"]())?t["$attr?"]("toc-class"):o)?t["$attr?"]("toc"):i)?t["$attr?"]("toc-placement","auto"):e)?[t.$doctype(),t.$attr("toc-class"),"toc-"+t.$attr("toc-position","header")]:[t.$doctype()],$(t["$role?"]())&&P["$<<"](t.$role()),E["$<<"]('class="'+P.$join(" ")+'"'),$(t["$attr?"]("max-width"))&&E["$<<"]('style="max-width: '+t.$attr("max-width")+';"'),y["$<<"]("<body "+E.$join(" ")+">"),$((A=t.$docinfo("header"))["$empty?"]())||y["$<<"](A),$(t.$noheader())||(y["$<<"]('<div id="header">'),t.$doctype()["$=="]("manpage")?(y["$<<"]("<h1>"+t.$doctitle()+" Manual Page</h1>"),$($(e=$(i=T)?t["$attr?"]("toc"):i)?t["$attr?"]("toc-placement","auto"):e)&&y["$<<"]('<div id="toc" class="'+t.$attr("toc-class","toc")+'">\n<div id="toctitle">'+t.$attr("toc-title")+"</div>\n"+c.$convert_outline(t)+"\n</div>"),$(t["$attr?"]("manpurpose"))&&y["$<<"](c.$generate_manname_section(t))):($(t["$header?"]())&&($(t.$notitle())||y["$<<"]("<h1>"+t.$header().$title()+"</h1>"),B=[],L=1,h(t.$authors(),"each",[],(a=function(e){a.$$s;return null==e&&(e=l),B["$<<"]('<span id="author'+function(){return $(n(L,1))?L:""}()+'" class="author">'+t.$sub_replacements(e.$name())+"</span>"+d),$(e.$email())&&B["$<<"]('<span id="email'+function(){return $(n(L,1))?L:""}()+'" class="email">'+t.$sub_macros(e.$email())+"</span>"+d),L=r(L,1)},a.$$s=c,a.$$arity=1,a)),$(t["$attr?"]("revnumber"))&&B["$<<"]('<span id="revnumber">'+($(e=t.$attr("version-label"))?e:"").$downcase()+" "+t.$attr("revnumber")+function(){return $(t["$attr?"]("revdate"))?",":""}()+"</span>"),$(t["$attr?"]("revdate"))&&B["$<<"]('<span id="revdate">'+t.$attr("revdate")+"</span>"),$(t["$attr?"]("revremark"))&&B["$<<"](d+'<span id="revremark">'+t.$attr("revremark")+"</span>"),$(B["$empty?"]())||(y["$<<"]('<div class="details">'),y.$concat(B),y["$<<"]("</div>"))),$($(e=$(i=T)?t["$attr?"]("toc"):i)?t["$attr?"]("toc-placement","auto"):e)&&y["$<<"]('<div id="toc" class="'+t.$attr("toc-class","toc")+'">\n<div id="toctitle">'+t.$attr("toc-title")+"</div>\n"+c.$convert_outline(t)+"\n</div>")),y["$<<"]("</div>")),y["$<<"]('<div id="content">\n'+t.$content()+"\n</div>"),$($(e=t["$footnotes?"]())?t["$attr?"]("nofootnotes")["$!"]():e)&&(y["$<<"]('<div id="footnotes">\n<hr'+f+">"),h(t.$footnotes(),"each",[],(s=function(t){s.$$s;return null==t&&(t=l),y["$<<"]('<div class="footnote" id="_footnotedef_'+t.$index()+'">\n<a href="#_footnoteref_'+t.$index()+'">'+t.$index()+"</a>. "+t.$text()+"\n</div>")},s.$$s=c,s.$$arity=1,s)),y["$<<"]("</div>")),$(t.$nofooter())||(y["$<<"]('<div id="footer">'),y["$<<"]('<div id="footer-text">'),$(t["$attr?"]("revnumber"))&&y["$<<"](t.$attr("version-label")+" "+t.$attr("revnumber")+d),$($(e=t["$attr?"]("last-update-label"))?t["$attr?"]("reproducible")["$!"]():e)&&y["$<<"](t.$attr("last-update-label")+" "+t.$attr("docdatetime")),y["$<<"]("</div>"),y["$<<"]("</div>")),$($(e=C)?C["$docinfo?"]("footer"):e)&&y["$<<"](C.$docinfo("footer",t,p(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:g,linkcss:v,self_closing_tag_slash:f}))),$(t["$attr?"]("stem"))&&(I=t.$attr("eqnums","none"),$(I["$empty?"]())&&(I="AMS"),D=' equationNumbers: { autoNumber: "'+I+'" } ',y["$<<"]('<script type="text/x-mathjax-config">\nMathJax.Hub.Config({\n messageStyle: "none",\n tex2jax: {\n inlineMath: ['+u(ut,"INLINE_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+"],\n displayMath: ["+u(ut,"BLOCK_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+'],\n ignoreClass: "nostem|nolatexmath"\n },\n asciimath2jax: {\n delimiters: ['+u(ut,"BLOCK_MATH_DELIMITERS")["$[]"]("asciimath").$inspect()+'],\n ignoreClass: "nostem|noasciimath"\n },\n TeX: {'+D+'}\n})\nMathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {\n MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {\n if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains(\'stemblock\')) {\n data.math.root.display = "block"\n }\n return data\n })\n})\n<\/script>\n<script src="'+g+"/mathjax/"+u(ut,"MATHJAX_VERSION")+'/MathJax.js?config=TeX-MML-AM_HTMLorMML"><\/script>')),$((A=t.$docinfo("footer"))["$empty?"]())||y["$<<"](A),y["$<<"]("</body>"),y["$<<"]("</html>"),y.$join(u(ut,"LF"))},_.$$arity=1),t.def(ct,"$convert_embedded",b=function(t){var e,n,r,i,o=this,a=l,s=l,c=l;return a=[],t.$doctype()["$=="]("manpage")?($(t.$notitle())||(s=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),a["$<<"]("<h1"+s+">"+t.$doctitle()+" Manual Page</h1>")),$(t["$attr?"]("manpurpose"))&&a["$<<"](o.$generate_manname_section(t))):$($(e=t["$header?"]())?t.$notitle()["$!"]():e)&&(s=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),a["$<<"]("<h1"+s+">"+t.$header().$title()+"</h1>")),$($(e=$(n=$(r=t["$sections?"]())?t["$attr?"]("toc"):r)?(c=t.$attr("toc-placement"))["$!="]("macro"):n)?c["$!="]("preamble"):e)&&a["$<<"]('<div id="toc" class="toc">\n<div id="toctitle">'+t.$attr("toc-title")+"</div>\n"+o.$convert_outline(t)+"\n</div>"),a["$<<"](t.$content()),$($(e=t["$footnotes?"]())?t["$attr?"]("nofootnotes")["$!"]():e)&&(a["$<<"]('<div id="footnotes">\n<hr'+o.void_element_slash+">"),h(t.$footnotes(),"each",[],(i=function(t){i.$$s;return null==t&&(t=l),a["$<<"]('<div class="footnote" id="_footnotedef_'+t.$index()+'">\n<a href="#_footnoteref_'+t.$index()+'">'+t.$index()+"</a>. "+t.$text()+"\n</div>")},i.$$s=o,i.$$arity=1,i)),a["$<<"]("</div>")),a.$join(u(ut,"LF"))},b.$$arity=1),t.def(ct,"$convert_outline",w=function(t,e){var n,r,a,s=this,c=l,d=l,f=l,m=l;return null==e&&(e=p([],{})),$(t["$sections?"]())?(c=$(n=e["$[]"]("sectnumlevels"))?n:($(r=t.$document().$attributes()["$[]"]("sectnumlevels"))?r:3).$to_i(),d=$(n=e["$[]"]("toclevels"))?n:($(r=t.$document().$attributes()["$[]"]("toclevels"))?r:2).$to_i(),f=t.$sections(),m=['<ul class="sectlevel'+f["$[]"](0).$level()+'">'],h(f,"each",[],(a=function(e){var n,r=a.$$s||this,s=l,f=l,h=l,g=l;return null==e&&(e=l),s=e.$level(),f=$(e.$caption())?e.$captioned_title():$($(n=e.$numbered())?i(s,c):n)?$($(n=o(s,2))?t.$document().$doctype()["$=="]("book"):n)?e.$sectname()["$=="]("chapter")?""+function(){return $(h=t.$document().$attributes()["$[]"]("chapter-signifier"))?h+" ":""}()+e.$sectnum()+" "+e.$title():e.$sectname()["$=="]("part")?""+function(){return $(h=t.$document().$attributes()["$[]"]("part-signifier"))?h+" ":""}()+e.$sectnum(l,":")+" "+e.$title():e.$sectnum()+" "+e.$title():e.$sectnum()+" "+e.$title():e.$title(),$(f["$include?"]("<a"))&&(f=f.$gsub(u(ut,"DropAnchorRx"),"")),$($(n=o(s,d))?g=r.$convert_outline(e,p(["toclevels","sectnumlevels"],{toclevels:d,sectnumlevels:c})):n)?(m["$<<"]('<li><a href="#'+e.$id()+'">'+f+"</a>"),m["$<<"](g),m["$<<"]("</li>")):m["$<<"]('<li><a href="#'+e.$id()+'">'+f+"</a></li>")},a.$$s=s,a.$$arity=1,a)),m["$<<"]("</ul>"),m.$join(u(ut,"LF"))):l},w.$$arity=-2),t.def(ct,"$convert_section",x=function(t){var e,n,a=l,s=l,c=l,u=l,d=l,f=l,h=l;return a=t.$document().$attributes(),s=t.$level(),c=$(t.$caption())?t.$captioned_title():$($(e=t.$numbered())?i(s,($(n=a["$[]"]("sectnumlevels"))?n:3).$to_i()):e)?$($(e=o(s,2))?t.$document().$doctype()["$=="]("book"):e)?t.$sectname()["$=="]("chapter")?""+function(){return $(u=a["$[]"]("chapter-signifier"))?u+" ":""}()+t.$sectnum()+" "+t.$title():t.$sectname()["$=="]("part")?""+function(){return $(u=a["$[]"]("part-signifier"))?u+" ":""}()+t.$sectnum(l,":")+" "+t.$title():t.$sectnum()+" "+t.$title():t.$sectnum()+" "+t.$title():t.$title(),$(t.$id())?(d=' id="'+(f=t.$id())+'"',$(a["$[]"]("sectlinks"))&&(c='<a class="link" href="#'+f+'">'+c+"</a>"),$(a["$[]"]("sectanchors"))&&(c=a["$[]"]("sectanchors")["$=="]("after")?c+'<a class="anchor" href="#'+f+'"></a>':'<a class="anchor" href="#'+f+'"></a>'+c)):d="",s["$=="](0)?"<h1"+d+' class="sect0'+function(){return $(h=t.$role())?" "+h:""}()+'">'+c+"</h1>\n"+t.$content():'<div class="sect'+s+function(){return $(h=t.$role())?" "+h:""}()+'">\n<h'+r(s,1)+d+">"+c+"</h"+r(s,1)+">\n"+function(){return s["$=="](1)?'<div class="sectionbody">\n'+t.$content()+"\n</div>":t.$content()}()+"\n</div>"},x.$$arity=1),t.def(ct,"$convert_admonition",k=function(t){var e,n=this,r=l,i=l,o=l,a=l,s=l;return r=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),i=t.$attr("name"),o=function(){return $(t["$title?"]())?'<div class="title">'+t.$title()+"</div>\n":""}(),a=$(t.$document()["$attr?"]("icons"))?$($(e=t.$document()["$attr?"]("icons","font"))?t["$attr?"]("icon")["$!"]():e)?'<i class="fa icon-'+i+'" title="'+t.$attr("textlabel")+'"></i>':'<img src="'+t.$icon_uri(i)+'" alt="'+t.$attr("textlabel")+'"'+n.void_element_slash+">":'<div class="title">'+t.$attr("textlabel")+"</div>","<div"+r+' class="admonitionblock '+i+function(){return $(s=t.$role())?" "+s:""}()+'">\n<table>\n<tr>\n<td class="icon">\n'+a+'\n</td>\n<td class="content">\n'+o+t.$content()+"\n</td>\n</tr>\n</table>\n</div>"},k.$$arity=1),t.def(ct,"$convert_audio",S=function(t){var e,n=this,r=l,i=l,o=l,a=l,s=l,c=l,u=l,d=l;return r=n.xml_mode,i=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),o=["audioblock",t.$role()].$compact(),a=' class="'+o.$join(" ")+'"',s=function(){return $(t["$title?"]())?'<div class="title">'+t.$title()+"</div>\n":""}(),c=t.$attr("start"),u=t.$attr("end"),d=function(){return $($(e=c)?e:u)?"#t="+($(e=c)?e:"")+function(){return $(u)?","+u:""}():""}(),"<div"+i+a+">\n"+s+'<div class="content">\n<audio src="'+t.$media_uri(t.$attr("target"))+d+'"'+function(){return $(t["$option?"]("autoplay"))?n.$append_boolean_attribute("autoplay",r):""}()+function(){return $(t["$option?"]("nocontrols"))?"":n.$append_boolean_attribute("controls",r)}()+function(){return $(t["$option?"]("loop"))?n.$append_boolean_attribute("loop",r):""}()+">\nYour browser does not support the audio tag.\n</audio>\n</div>\n</div>"},S.$$arity=1),t.def(ct,"$convert_colist",O=function(t){var e,n,i,o=this,a=l,s=l,c=l,d=l,f=l,p=l;return a=[],s=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),c=["colist",t.$style(),t.$role()].$compact(),d=' class="'+c.$join(" ")+'"',a["$<<"]("<div"+s+d+">"),$(t["$title?"]())&&a["$<<"]('<div class="title">'+t.$title()+"</div>"),$(t.$document()["$attr?"]("icons"))?(a["$<<"]("<table>"),e=[t.$document()["$attr?"]("icons","font"),0],f=e[0],p=e[1],h(t.$items(),"each",[],(n=function(e){var i=n.$$s||this,o=l;return null==i.void_element_slash&&(i.void_element_slash=l),null==e&&(e=l),p=r(p,1),o=$(f)?'<i class="conum" data-value="'+p+'"></i><b>'+p+"</b>":'<img src="'+t.$icon_uri("callouts/"+p)+'" alt="'+p+'"'+i.void_element_slash+">",a["$<<"]("<tr>\n<td>"+o+"</td>\n<td>"+e.$text()+function(){return $(e["$blocks?"]())?r(u(ut,"LF"),e.$content()):""}()+"</td>\n</tr>")},n.$$s=o,n.$$arity=1,n)),a["$<<"]("</table>")):(a["$<<"]("<ol>"),h(t.$items(),"each",[],(i=function(t){i.$$s;return null==t&&(t=l),a["$<<"]("<li>\n<p>"+t.$text()+"</p>"+function(){return $(t["$blocks?"]())?r(u(ut,"LF"),t.$content()):""}()+"\n</li>")},i.$$s=o,i.$$arity=1,i)),a["$<<"]("</ol>")),a["$<<"]("</div>"),a.$join(u(ut,"LF"))},O.$$arity=1),t.def(ct,"$convert_dlist",C=function(t){var e,n,r,i,o=this,a=l,s=l,c=l,d=l,f=l,p=l,m=l,g=l;return a=[],s=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),c=function(){return d=t.$style(),"qanda"["$==="](d)?["qlist","qanda",t.$role()]:"horizontal"["$==="](d)?["hdlist",t.$role()]:["dlist",t.$style(),t.$role()]}().$compact(),f=' class="'+c.$join(" ")+'"',a["$<<"]("<div"+s+f+">"),$(t["$title?"]())&&a["$<<"]('<div class="title">'+t.$title()+"</div>"),d=t.$style(),"qanda"["$==="](d)?(a["$<<"]("<ol>"),h(t.$items(),"each",[],(e=function(t,n){var r,i=e.$$s||this;return null==t&&(t=l),null==n&&(n=l),a["$<<"]("<li>"),h(t,"each",[],(r=function(t){r.$$s;return null==t&&(t=l),a["$<<"]("<p><em>"+t.$text()+"</em></p>")},r.$$s=i,r.$$arity=1,r)),$(n)&&($(n["$text?"]())&&a["$<<"]("<p>"+n.$text()+"</p>"),$(n["$blocks?"]())&&a["$<<"](n.$content())),a["$<<"]("</li>")},e.$$s=o,e.$$arity=2,e)),a["$<<"]("</ol>")):"horizontal"["$==="](d)?(p=o.void_element_slash,a["$<<"]("<table>"),$($(n=t["$attr?"]("labelwidth"))?n:t["$attr?"]("itemwidth"))&&(a["$<<"]("<colgroup>"),m=function(){return $(t["$attr?"]("labelwidth"))?' style="width: '+t.$attr("labelwidth").$chomp("%")+'%;"':""}(),a["$<<"]("<col"+m+p+">"),m=function(){return $(t["$attr?"]("itemwidth"))?' style="width: '+t.$attr("itemwidth").$chomp("%")+'%;"':""}(),a["$<<"]("<col"+m+p+">"),a["$<<"]("</colgroup>")),h(t.$items(),"each",[],(r=function(e,n){var i,o=r.$$s||this,s=l;return null==e&&(e=l),null==n&&(n=l),a["$<<"]("<tr>"),a["$<<"]('<td class="hdlist1'+function(){return $(t["$option?"]("strong"))?" strong":""}()+'">'),s=!0,h(e,"each",[],(i=function(t){i.$$s;return null==t&&(t=l),$(s)||a["$<<"]("<br"+p+">"),a["$<<"](t.$text()),s=l},i.$$s=o,i.$$arity=1,i)),a["$<<"]("</td>"),a["$<<"]('<td class="hdlist2">'),$(n)&&($(n["$text?"]())&&a["$<<"]("<p>"+n.$text()+"</p>"),$(n["$blocks?"]())&&a["$<<"](n.$content())),a["$<<"]("</td>"),a["$<<"]("</tr>")},r.$$s=o,r.$$arity=2,r)),a["$<<"]("</table>")):(a["$<<"]("<dl>"),g=function(){return $(t.$style())?"":' class="hdlist1"'}(),h(t.$items(),"each",[],(i=function(t,e){var n,r=i.$$s||this;return null==t&&(t=l),null==e&&(e=l),h(t,"each",[],(n=function(t){n.$$s;return null==t&&(t=l),a["$<<"]("<dt"+g+">"+t.$text()+"</dt>")},n.$$s=r,n.$$arity=1,n)),$(e)?(a["$<<"]("<dd>"),$(e["$text?"]())&&a["$<<"]("<p>"+e.$text()+"</p>"),$(e["$blocks?"]())&&a["$<<"](e.$content()),a["$<<"]("</dd>")):l},i.$$s=o,i.$$arity=2,i)),a["$<<"]("</dl>")),a["$<<"]("</div>"),a.$join(u(ut,"LF"))},C.$$arity=1),t.def(ct,"$convert_example",A=function(t){var e=l,n=l,r=l,i=l,o=l;return e=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),$(t["$option?"]("collapsible"))?(n=function(){return $(t.$role())?' class="'+t.$role()+'"':""}(),r=function(){return $(t["$title?"]())?'<summary class="title">'+t.$title()+"</summary>":'<summary class="title">Details</summary>'}(),"<details"+e+n+function(){return $(t["$option?"]("open"))?" open":""}()+">\n"+r+'\n<div class="content">\n'+t.$content()+"\n</div>\n</details>"):(i=function(){return $(t["$title?"]())?'<div class="title">'+t.$captioned_title()+"</div>\n":""}(),"<div"+e+' class="exampleblock'+function(){return $(o=t.$role())?" "+o:""}()+'">\n'+i+'<div class="content">\n'+t.$content()+"\n</div>\n</div>")},A.$$arity=1),t.def(ct,"$convert_floating_title",E=function(t){var e=l,n=l,i=l;return e="h"+r(t.$level(),1),n=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),i=[t.$style(),t.$role()].$compact(),"<"+e+n+' class="'+i.$join(" ")+'">'+t.$title()+"</"+e+">"},E.$$arity=1),t.def(ct,"$convert_image",T=function(t){var e,n,r,i=this,a=l,s=l,d=l,f=l,h=l,p=l,m=l,g=l,v=l,y=l,_=l;return a=t.$attr("target"),s=function(){return $(t["$attr?"]("width"))?' width="'+t.$attr("width")+'"':""}(),d=function(){return $(t["$attr?"]("height"))?' height="'+t.$attr("height")+'"':""}(),$($(e=$(n=$(r=t["$attr?"]("format","svg"))?r:a["$include?"](".svg"))?o(t.$document().$safe(),c(u(ut,"SafeMode"),"SECURE")):n)?$(n=f=t["$option?"]("inline"))?n:h=t["$option?"]("interactive"):e)&&($(f)?p=$(e=i.$read_svg_contents(t,a))?e:'<span class="alt">'+t.$alt()+"</span>":$(h)&&(m=function(){return $(t["$attr?"]("fallback"))?'<img src="'+t.$image_uri(t.$attr("fallback"))+'" alt="'+i.$encode_attribute_value(t.$alt())+'"'+s+d+i.void_element_slash+">":'<span class="alt">'+t.$alt()+"</span>"}(),p='<object type="image/svg+xml" data="'+t.$image_uri(a)+'"'+s+d+">"+m+"</object>")),p=$(e=p)?e:'<img src="'+t.$image_uri(a)+'" alt="'+i.$encode_attribute_value(t.$alt())+'"'+s+d+i.void_element_slash+">",$(t["$attr?"]("link"))&&(p='<a class="image" href="'+t.$attr("link")+'"'+i.$append_link_constraint_attrs(t).$join()+">"+p+"</a>"),g=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),v=["imageblock"],$(t["$attr?"]("float"))&&v["$<<"](t.$attr("float")),$(t["$attr?"]("align"))&&v["$<<"]("text-"+t.$attr("align")),$(t.$role())&&v["$<<"](t.$role()),y=' class="'+v.$join(" ")+'"',_=function(){return $(t["$title?"]())?'\n<div class="title">'+t.$captioned_title()+"</div>":""}(),"<div"+g+y+'>\n<div class="content">\n'+p+"\n</div>"+_+"\n</div>"},T.$$arity=1),t.def(ct,"$convert_listing",P=function(n){var i,o=l,a=l,s=l,c=l,u=l,d=l,f=l,m=l,g=l,v=l,y=l;return o=$(i=n["$option?"]("nowrap"))?i:n.$document()["$attr?"]("prewrap")["$!"](),n.$style()["$=="]("source")?(a=n.$attr("language"),$(s=n.$document().$syntax_highlighter())?(c=function(){return $(s["$highlight?"]())?p(["css_mode","style"],{css_mode:($(i=(u=n.$document().$attributes())["$[]"](s.$name()+"-css"))?i:"class").$to_sym(),style:u["$[]"](s.$name()+"-style")}):p([],{})}(),d=["nowrap",o],h(c,"[]=",t.to_a(d)),d[e(d["length"],1)]):(f='<pre class="highlight'+function(){return $(o)?" nowrap":""}()+'"><code'+function(){return $(a)?' class="language-'+a+'" data-lang="'+a+'"':""}()+">",m="</code></pre>")):(f="<pre"+function(){return $(o)?' class="nowrap"':""}()+">",m="</pre>"),g=function(){return $(n.$id())?' id="'+n.$id()+'"':""}(),v=function(){return $(n["$title?"]())?'<div class="title">'+n.$captioned_title()+"</div>\n":""}(),"<div"+g+' class="listingblock'+function(){return $(y=n.$role())?" "+y:""}()+'">\n'+v+'<div class="content">\n'+function(){return $(s)?s.$format(n,a,c):r(r(f,$(i=n.$content())?i:""),m)}()+"\n</div>\n</div>"},P.$$arity=1),t.def(ct,"$convert_literal",B=function(t){var e,n=l,r=l,i=l,o=l;return n=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),r=function(){return $(t["$title?"]())?'<div class="title">'+t.$title()+"</div>\n":""}(),i=$(e=t.$document()["$attr?"]("prewrap")["$!"]())?e:t["$option?"]("nowrap"),"<div"+n+' class="literalblock'+function(){return $(o=t.$role())?" "+o:""}()+'">\n'+r+'<div class="content">\n<pre'+function(){return $(i)?' class="nowrap"':""}()+">"+t.$content()+"</pre>\n</div>\n</div>"},B.$$arity=1),t.def(ct,"$convert_stem",L=function(e){var n,r,i,o=this,s=l,c=l,d=l,f=l,p=l,g=l,v=l,y=l;return s=function(){return $(e.$id())?' id="'+e.$id()+'"':""}(),c=function(){return $(e["$title?"]())?'<div class="title">'+e.$title()+"</div>\n":""}(),r=u(ut,"BLOCK_MATH_DELIMITERS")["$[]"](d=e.$style().$to_sym()),n=t.to_ary(r),f=null==n[0]?l:n[0],p=null==n[1]?l:n[1],$(g=e.$content())?($((n=d["$=="]("asciimath"))?g["$include?"](u(ut,"LF")):d["$=="]("asciimath"))&&(v="<br"+o.void_element_slash+">"+u(ut,"LF"),g=h(g,"gsub",[u(ut,"StemBreakRx")],(i=function(){var t;i.$$s;return""+p+a(v,((t=m["~"])===l?l:t["$[]"](0)).$count(u(ut,"LF")))+f},i.$$s=o,i.$$arity=0,i))),$($(n=g["$start_with?"](f))?g["$end_with?"](p):n)||(g=""+f+g+p)):g="","<div"+s+' class="stemblock'+function(){return $(y=e.$role())?" "+y:""}()+'">\n'+c+'<div class="content">\n'+g+"\n</div>\n</div>"},L.$$arity=1),t.def(ct,"$convert_olist",I=function(t){var e,n=this,r=l,i=l,o=l,a=l,s=l,c=l,d=l,f=l;return r=[],i=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),o=["olist",t.$style(),t.$role()].$compact(),a=' class="'+o.$join(" ")+'"',r["$<<"]("<div"+i+a+">"),$(t["$title?"]())&&r["$<<"]('<div class="title">'+t.$title()+"</div>"),s=function(){return $(c=t.$list_marker_keyword())?' type="'+c+'"':""}(),d=function(){return $(t["$attr?"]("start"))?' start="'+t.$attr("start")+'"':""}(),f=function(){return $(t["$option?"]("reversed"))?n.$append_boolean_attribute("reversed",n.xml_mode):""}(),r["$<<"]('<ol class="'+t.$style()+'"'+s+d+f+">"),h(t.$items(),"each",[],(e=function(t){e.$$s;return null==t&&(t=l),$(t.$id())?r["$<<"]('<li id="'+t.$id()+'"'+function(){return $(t.$role())?' class="'+t.$role()+'"':""}()+">"):$(t.$role())?r["$<<"]('<li class="'+t.$role()+'">'):r["$<<"]("<li>"),r["$<<"]("<p>"+t.$text()+"</p>"),$(t["$blocks?"]())&&r["$<<"](t.$content()),r["$<<"]("</li>")},e.$$s=n,e.$$arity=1,e)),r["$<<"]("</ol>"),r["$<<"]("</div>"),r.$join(u(ut,"LF"))},I.$$arity=1),t.def(ct,"$convert_open",D=function(t){var e,r,i,o=this,a=l,s=l,c=l,u=l;return(a=t.$style())["$=="]("abstract")?$((e=t.$parent()["$=="](t.$document()))?t.$document().$doctype()["$=="]("book"):t.$parent()["$=="](t.$document()))?(o.$logger().$warn("abstract block cannot be used in a document without a title when doctype is book. Excluding block content."),""):(s=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),c=function(){return $(t["$title?"]())?'<div class="title">'+t.$title()+"</div>\n":""}(),"<div"+s+' class="quoteblock abstract'+function(){return $(u=t.$role())?" "+u:""}()+'">\n'+c+"<blockquote>\n"+t.$content()+"\n</blockquote>\n</div>"):$((e=a["$=="]("partintro"))?$(r=$(i=n(t.$level(),0))?i:t.$parent().$context()["$!="]("section"))?r:t.$document().$doctype()["$!="]("book"):a["$=="]("partintro"))?(o.$logger().$error("partintro block can only be used when doctype is book and must be a child of a book part. Excluding block content."),""):(s=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),c=function(){return $(t["$title?"]())?'<div class="title">'+t.$title()+"</div>\n":""}(),"<div"+s+' class="openblock'+function(){return $($(e=a)?a["$!="]("open"):e)?" "+a:""}()+function(){return $(u=t.$role())?" "+u:""}()+'">\n'+c+'<div class="content">\n'+t.$content()+"\n</div>\n</div>")},D.$$arity=1),t.def(ct,"$convert_page_break",R=function(t){return'<div style="page-break-after: always;"></div>'},R.$$arity=1),t.def(ct,"$convert_paragraph",j=function(t){var e=l;return e=$(t.$role())?function(){return $(t.$id())?' id="'+t.$id()+'"':""}()+' class="paragraph '+t.$role()+'"':$(t.$id())?' id="'+t.$id()+'" class="paragraph"':' class="paragraph"',$(t["$title?"]())?"<div"+e+'>\n<div class="title">'+t.$title()+"</div>\n<p>"+t.$content()+"</p>\n</div>":"<div"+e+">\n<p>"+t.$content()+"</p>\n</div>"},j.$$arity=1),t.alias(ct,"convert_pass","content_only"),t.def(ct,"$convert_preamble",M=function(t){var e,n,r=this,i=l,o=l;return o=$($(e=$(n=(i=t.$document())["$attr?"]("toc-placement","preamble"))?i["$sections?"]():n)?i["$attr?"]("toc"):e)?'\n<div id="toc" class="'+i.$attr("toc-class","toc")+'">\n<div id="toctitle">'+i.$attr("toc-title")+"</div>\n"+r.$convert_outline(i)+"\n</div>":"",'<div id="preamble">\n<div class="sectionbody">\n'+t.$content()+"\n</div>"+o+"\n</div>"},M.$$arity=1),t.def(ct,"$convert_quote",F=function(t){var e,n=this,r=l,i=l,o=l,a=l,s=l,c=l,u=l,d=l,f=l;return r=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),i=["quoteblock",t.$role()].$compact(),o=' class="'+i.$join(" ")+'"',a=function(){return $(t["$title?"]())?'\n<div class="title">'+t.$title()+"</div>":""}(),s=function(){return $(t["$attr?"]("attribution"))?t.$attr("attribution"):l}(),c=function(){return $(t["$attr?"]("citetitle"))?t.$attr("citetitle"):l}(),$($(e=s)?e:c)?(u=function(){return $(c)?"<cite>"+c+"</cite>":""}(),d=function(){return $(s)?"&#8212; "+s+function(){return $(c)?"<br"+n.void_element_slash+">\n":""}():""}(),f='\n<div class="attribution">\n'+d+u+"\n</div>"):f="","<div"+r+o+">"+a+"\n<blockquote>\n"+t.$content()+"\n</blockquote>"+f+"\n</div>"},F.$$arity=1),t.def(ct,"$convert_thematic_break",N=function(t){var e=this;return"<hr"+e.void_element_slash+">"},N.$$arity=1),t.def(ct,"$convert_sidebar",z=function(t){var e=l,n=l,r=l;return e=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),n=function(){return $(t["$title?"]())?'<div class="title">'+t.$title()+"</div>\n":""}(),"<div"+e+' class="sidebarblock'+function(){return $(r=t.$role())?" "+r:""}()+'">\n<div class="content">\n'+n+t.$content()+"\n</div>\n</div>"},z.$$arity=1),t.def(ct,"$convert_table",H=function(t){var e,i,o,a=this,s=l,c=l,d=l,f=l,p=l,m=l,g=l,v=l,y=l,_=l,b=l;return s=[],c=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),d=["tableblock","frame-"+t.$attr("frame","all","table-frame"),"grid-"+t.$attr("grid","all","table-grid")],$(f=t.$attr("stripes",l,"table-stripes"))&&d["$<<"]("stripes-"+f),p=[],$($(e=m=t["$option?"]("autowidth"))?t["$attr?"]("width")["$!"]():e)?d["$<<"]("fit-content"):(g=t.$attr("tablepcwidth"))["$=="](100)?d["$<<"]("stretch"):p["$<<"]("width: "+g+"%;"),$(t["$attr?"]("float"))&&d["$<<"](t.$attr("float")),$(v=t.$role())&&d["$<<"](v),y=' class="'+d.$join(" ")+'"',_=function(){return $(p["$empty?"]())?"":' style="'+p.$join(" ")+'"'}(),s["$<<"]("<table"+c+y+_+">"),$(t["$title?"]())&&s["$<<"]('<caption class="title">'+t.$captioned_title()+"</caption>"),$(n(t.$attr("rowcount"),0))&&(b=a.void_element_slash,s["$<<"]("<colgroup>"),$(m)?s=r(s,u(ut,"Array").$new(t.$columns().$size(),"<col"+b+">")):h(t.$columns(),"each",[],(i=function(t){i.$$s;return null==t&&(t=l),s["$<<"](function(){return $(t["$option?"]("autowidth"))?"<col"+b+">":'<col style="width: '+t.$attr("colpcwidth")+'%;"'+b+">"}())},i.$$s=a,i.$$arity=1,i)),s["$<<"]("</colgroup>"),h(t.$rows().$to_h(),"each",[],(o=function(e,n){var r,i=o.$$s||this;return null==e&&(e=l),null==n&&(n=l),$(n["$empty?"]())?l:(s["$<<"]("<t"+e+">"),h(n,"each",[],(r=function(n){var i,o=r.$$s||this;return null==n&&(n=l),s["$<<"]("<tr>"),h(n,"each",[],(i=function(n){i.$$s;var r,o=l,a=l,c=l,u=l,d=l,f=l,h=l;return null==n&&(n=l),e["$=="]("head")?o=n.$text():(a=n.$style(),o="asciidoc"["$==="](a)?'<div class="content">'+n.$content()+"</div>":"literal"["$==="](a)?'<div class="literal"><pre>'+n.$text()+"</pre></div>":function(){return $((o=n.$content())["$empty?"]())?"":'<p class="tableblock">'+o.$join('</p>\n<p class="tableblock">')+"</p>"}()),c=function(){return $($(r=e["$=="]("head"))?r:n.$style()["$=="]("header"))?"th":"td"}(),u=' class="tableblock halign-'+n.$attr("halign")+" valign-"+n.$attr("valign")+'"',d=function(){return $(n.$colspan())?' colspan="'+n.$colspan()+'"':""}(),f=function(){return $(n.$rowspan())?' rowspan="'+n.$rowspan()+'"':""}(),h=function(){return $(t.$document()["$attr?"]("cellbgcolor"))?' style="background-color: '+t.$document().$attr("cellbgcolor")+';"':""}(),s["$<<"]("<"+c+u+d+f+h+">"+o+"</"+c+">")},i.$$s=o,i.$$arity=1,i)),s["$<<"]("</tr>")},r.$$s=i,r.$$arity=1,r)),s["$<<"]("</t"+e+">"))},o.$$s=a,o.$$arity=2,o))),s["$<<"]("</table>"),s.$join(u(ut,"LF"))},H.$$arity=1),t.def(ct,"$convert_toc",V=function(t){var e,n,r=this,i=l,o=l,a=l,s=l,c=l,u=l;return $($(e=$(n=(i=t.$document())["$attr?"]("toc-placement","macro"))?i["$sections?"]():n)?i["$attr?"]("toc"):e)?($(t.$id())?(o=' id="'+t.$id()+'"',a=' id="'+t.$id()+'title"'):(o=' id="toc"',a=' id="toctitle"'),s=function(){return $(t["$title?"]())?t.$title():i.$attr("toc-title")}(),c=function(){return $(t["$attr?"]("levels"))?t.$attr("levels").$to_i():l}(),u=function(){return $(t["$role?"]())?t.$role():i.$attr("toc-class","toc")}(),"<div"+o+' class="'+u+'">\n<div'+a+' class="title">'+s+"</div>\n"+r.$convert_outline(i,p(["toclevels"],{toclevels:c}))+"\n</div>"):"\x3c!-- toc disabled --\x3e"},V.$$arity=1),t.def(ct,"$convert_ulist",U=function(t){var e,n=this,r=l,i=l,o=l,a=l,s=l,c=l,d=l;return r=[],i=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),o=["ulist",t.$style(),t.$role()].$compact(),a=s="",$(c=t["$option?"]("checklist"))?(o.$unshift(o.$shift(),"checklist"),d=' class="checklist"',$(t["$option?"]("interactive"))?$(n.xml_mode)?(a='<input type="checkbox" data-item-complete="1" checked="checked"/> ',s='<input type="checkbox" data-item-complete="0"/> '):(a='<input type="checkbox" data-item-complete="1" checked> ',s='<input type="checkbox" data-item-complete="0"> '):$(t.$document()["$attr?"]("icons","font"))?(a='<i class="fa fa-check-square-o"></i> ',s='<i class="fa fa-square-o"></i> '):(a="&#10003; ",s="&#10063; ")):d=function(){return $(t.$style())?' class="'+t.$style()+'"':""}(),r["$<<"]("<div"+i+' class="'+o.$join(" ")+'">'),$(t["$title?"]())&&r["$<<"]('<div class="title">'+t.$title()+"</div>"),r["$<<"]("<ul"+d+">"),h(t.$items(),"each",[],(e=function(t){var n;e.$$s;return null==t&&(t=l),$(t.$id())?r["$<<"]('<li id="'+t.$id()+'"'+function(){return $(t.$role())?' class="'+t.$role()+'"':""}()+">"):$(t.$role())?r["$<<"]('<li class="'+t.$role()+'">'):r["$<<"]("<li>"),$($(n=c)?t["$attr?"]("checkbox"):n)?r["$<<"]("<p>"+function(){return $(t["$attr?"]("checked"))?a:s}()+t.$text()+"</p>"):r["$<<"]("<p>"+t.$text()+"</p>"),$(t["$blocks?"]())&&r["$<<"](t.$content()),r["$<<"]("</li>")},e.$$s=n,e.$$arity=1,e)),r["$<<"]("</ul>"),r["$<<"]("</div>"),r.$join(u(ut,"LF"))},U.$$arity=1),t.def(ct,"$convert_verse",q=function(t){var e,n=this,r=l,i=l,o=l,a=l,s=l,c=l,u=l,d=l,f=l;return r=function(){return $(t.$id())?' id="'+t.$id()+'"':""}(),i=["verseblock",t.$role()].$compact(),o=' class="'+i.$join(" ")+'"',a=function(){return $(t["$title?"]())?'\n<div class="title">'+t.$title()+"</div>":""}(),s=function(){return $(t["$attr?"]("attribution"))?t.$attr("attribution"):l}(),c=function(){return $(t["$attr?"]("citetitle"))?t.$attr("citetitle"):l}(),$($(e=s)?e:c)?(u=function(){return $(c)?"<cite>"+c+"</cite>":""}(),d=function(){return $(s)?"&#8212; "+s+function(){return $(c)?"<br"+n.void_element_slash+">\n":""}():""}(),f='\n<div class="attribution">\n'+d+u+"\n</div>"):f="","<div"+r+o+">"+a+'\n<pre class="content">'+t.$content()+"</pre>"+f+"\n</div>"},q.$$arity=1),t.def(ct,"$convert_video",W=function(e){var n,r,i=this,o=l,a=l,s=l,c=l,u=l,d=l,f=l,h=l,p=l,m=l,g=l,v=l,y=l,_=l,b=l,w=l,x=l,k=l,S=l,O=l,C=l,A=l,E=l,T=l,P=l,B=l,L=l,I=l,D=l,R=l,j=l,M=l,F=l,N=l,z=l;return o=i.xml_mode,a=function(){return $(e.$id())?' id="'+e.$id()+'"':""}(),s=["videoblock"],$(e["$attr?"]("float"))&&s["$<<"](e.$attr("float")),$(e["$attr?"]("align"))&&s["$<<"]("text-"+e.$attr("align")),$(e.$role())&&s["$<<"](e.$role()),c=' class="'+s.$join(" ")+'"',u=function(){return $(e["$title?"]())?'\n<div class="title">'+e.$title()+"</div>":""}(),d=function(){return $(e["$attr?"]("width"))?' width="'+e.$attr("width")+'"':""}(),f=function(){return $(e["$attr?"]("height"))?' height="'+e.$attr("height")+'"':""}(),function(){return h=e.$attr("poster"),"vimeo"["$==="](h)?($((p=e.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(p+=":"),m=function(){return $(e["$attr?"]("start"))?"#at="+e.$attr("start"):""}(),g=["?"],v=function(){return $(e["$option?"]("autoplay"))?($(n=g.$pop())?n:"&amp;")+"autoplay=1":""}(),y=function(){return $(e["$option?"]("loop"))?($(n=g.$pop())?n:"&amp;")+"loop=1":""}(),_=function(){return $(e["$option?"]("muted"))?($(n=g.$pop())?n:"&amp;")+"muted=1":""}(),"<div"+a+c+">"+u+'\n<div class="content">\n<iframe'+d+f+' src="'+p+"//player.vimeo.com/video/"+e.$attr("target")+v+y+_+m+'" frameborder="0"'+function(){return $(e["$option?"]("nofullscreen"))?"":i.$append_boolean_attribute("allowfullscreen",o)}()+"></iframe>\n</div>\n</div>"):"youtube"["$==="](h)?($((p=e.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(p+=":"),b=function(){return $(e["$option?"]("related"))?1:0}(),w=function(){return $(e["$attr?"]("start"))?"&amp;start="+e.$attr("start"):""}(),x=function(){return $(e["$attr?"]("end"))?"&amp;end="+e.$attr("end"):""}(),v=function(){return $(e["$option?"]("autoplay"))?"&amp;autoplay=1":""}(),y=function(){return $(k=e["$option?"]("loop"))?"&amp;loop=1":""}(),S=function(){return $(e["$option?"]("muted"))?"&amp;mute=1":""}(),O=function(){return $(e["$option?"]("nocontrols"))?"&amp;controls=0":""}(),$(e["$option?"]("nofullscreen"))?(C="&amp;fs=0",A=""):(C="",A=i.$append_boolean_attribute("allowfullscreen",o)),E=function(){return $(e["$option?"]("modest"))?"&amp;modestbranding=1":""}(),T=function(){return $(e["$attr?"]("theme"))?"&amp;theme="+e.$attr("theme"):""}(),P=function(){return $(e["$attr?"]("lang"))?"&amp;hl="+e.$attr("lang"):""}(),r=e.$attr("target").$split("/",2),n=t.to_ary(r),B=null==n[0]?l:n[0],L=null==n[1]?l:n[1],$(L=$(n=L)?n:e.$attr("list"))?I="&amp;list="+L:(r=B.$split(",",2),n=t.to_ary(r),B=null==n[0]?l:n[0],D=null==n[1]?l:n[1],I=$(D=$(n=D)?n:e.$attr("playlist"))?"&amp;playlist="+D:function(){return $(k)?"&amp;playlist="+B:""}()),"<div"+a+c+">"+u+'\n<div class="content">\n<iframe'+d+f+' src="'+p+"//www.youtube.com/embed/"+B+"?rel="+b+w+x+v+y+S+O+I+C+E+T+P+'" frameborder="0"'+A+"></iframe>\n</div>\n</div>"):(R=function(){return $((j=e.$attr("poster"))["$nil_or_empty?"]())?"":' poster="'+e.$media_uri(j)+'"'}(),M=function(){return $((j=e.$attr("preload"))["$nil_or_empty?"]())?"":' preload="'+j+'"'}(),F=e.$attr("start"),N=e.$attr("end"),z=function(){return $($(n=F)?n:N)?"#t="+($(n=F)?n:"")+function(){return $(N)?","+N:""}():""}(),"<div"+a+c+">"+u+'\n<div class="content">\n<video src="'+e.$media_uri(e.$attr("target"))+z+'"'+d+f+R+function(){return $(e["$option?"]("autoplay"))?i.$append_boolean_attribute("autoplay",o):""}()+function(){return $(e["$option?"]("nocontrols"))?"":i.$append_boolean_attribute("controls",o)}()+function(){return $(e["$option?"]("loop"))?i.$append_boolean_attribute("loop",o):""}()+M+">\nYour browser does not support the video tag.\n</video>\n</div>\n</div>")}()},W.$$arity=1),t.def(ct,"$convert_inline_anchor",G=function(t){var e,n=this,r=l,i=l,o=l,a=l,s=l,c=l;return function(){return r=t.$type(),"xref"["$==="](r)?($(i=t.$attributes()["$[]"]("path"))?(o=n.$append_link_constraint_attrs(t,function(){return $(t.$role())?[' class="'+t.$role()+'"']:[]}()).$join(),a=$(e=t.$text())?e:i):(o=function(){return $(t.$role())?' class="'+t.$role()+'"':""}(),$(a=t.$text())||(s=t.$attributes()["$[]"]("refid"),a=$(u(ut,"AbstractNode")["$==="](c=(n.refs=$(e=n.refs)?e:t.$document().$catalog()["$[]"]("refs"))["$[]"](s)))&&$(e=c.$xreftext(t.$attr("xrefstyle",l,!0)))?e:"["+s+"]")),'<a href="'+t.$target()+'"'+o+">"+a+"</a>"):"ref"["$==="](r)?'<a id="'+t.$id()+'"></a>':"link"["$==="](r)?(o=function(){return $(t.$id())?[' id="'+t.$id()+'"']:[]}(),$(t.$role())&&o["$<<"](' class="'+t.$role()+'"'),$(t["$attr?"]("title"))&&o["$<<"](' title="'+t.$attr("title")+'"'),'<a href="'+t.$target()+'"'+n.$append_link_constraint_attrs(t,o).$join()+">"+t.$text()+"</a>"):"bibref"["$==="](r)?'<a id="'+t.$id()+'"></a>['+($(e=t.$reftext())?e:t.$id())+"]":(n.$logger().$warn("unknown anchor type: "+t.$type().$inspect()),l)}()},G.$$arity=1),t.def(ct,"$convert_inline_break",Y=function(t){var e=this;return t.$text()+"<br"+e.void_element_slash+">"},Y.$$arity=1),t.def(ct,"$convert_inline_button",K=function(t){return'<b class="button">'+t.$text()+"</b>"},K.$$arity=1),t.def(ct,"$convert_inline_callout",X=function(t){var e=this,n=l;return $(t.$document()["$attr?"]("icons","font"))?'<i class="conum" data-value="'+t.$text()+'"></i><b>('+t.$text()+")</b>":$(t.$document()["$attr?"]("icons"))?(n=t.$icon_uri("callouts/"+t.$text()),'<img src="'+n+'" alt="'+t.$text()+'"'+e.void_element_slash+">"):t.$attributes()["$[]"]("guard")+'<b class="conum">('+t.$text()+")</b>"},X.$$arity=1),t.def(ct,"$convert_inline_footnote",Z=function(t){var e=l,n=l;return $(e=t.$attr("index"))?t.$type()["$=="]("xref")?'<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_'+e+'" title="View footnote.">'+e+"</a>]</sup>":(n=function(){return $(t.$id())?' id="_footnote_'+t.$id()+'"':""}(),'<sup class="footnote"'+n+'>[<a id="_footnoteref_'+e+'" class="footnote" href="#_footnotedef_'+e+'" title="View footnote.">'+e+"</a>]</sup>"):t.$type()["$=="]("xref")?'<sup class="footnoteref red" title="Unresolved footnote reference.">['+t.$text()+"]</sup>":l},Z.$$arity=1),t.def(ct,"$convert_inline_image",J=function(t){var e,n,r,i,a,s,d=this,f=l,m=l,g=l,v=l,y=l,_=l,b=l,w=l,x=l,k=l;return $((e=(f=$(n=t.$type())?n:"image")["$=="]("icon"))?t.$document()["$attr?"]("icons","font"):(f=$(n=t.$type())?n:"image")["$=="]("icon"))?(m="fa fa-"+t.$target(),h(p(["size","rotate","flip"],{size:"fa-",rotate:"fa-rotate-",flip:"fa-flip-"}),"each",[],(r=function(e,n){r.$$s;return null==e&&(e=l),null==n&&(n=l),$(t["$attr?"](e))?m=m+" "+n+t.$attr(e):l},r.$$s=d,r.$$arity=2,r)),g=function(){return $(t["$attr?"]("title"))?' title="'+t.$attr("title")+'"':""}(),v='<i class="'+m+'"'+g+"></i>"):$((e=f["$=="]("icon"))?t.$document()["$attr?"]("icons")["$!"]():f["$=="]("icon"))?v="["+t.$alt()+"]":(y=t.$target(),_=h(["width","height","title"],"map",[],(i=function(e){i.$$s;return null==e&&(e=l),$(t["$attr?"](e))?" "+e+'="'+t.$attr(e)+'"':""},i.$$s=d,i.$$arity=1,i)).$join(),$($(e=$(n=$(a=f["$!="]("icon"))?$(s=t["$attr?"]("format","svg"))?s:y["$include?"](".svg"):a)?o(t.$document().$safe(),c(u(ut,"SafeMode"),"SECURE")):n)?$(n=b=t["$option?"]("inline"))?n:w=t["$option?"]("interactive"):e)&&($(b)?v=$(e=d.$read_svg_contents(t,y))?e:'<span class="alt">'+t.$alt()+"</span>":$(w)&&(x=function(){return $(t["$attr?"]("fallback"))?'<img src="'+t.$image_uri(t.$attr("fallback"))+'" alt="'+d.$encode_attribute_value(t.$alt())+'"'+_+d.void_element_slash+">":'<span class="alt">'+t.$alt()+"</span>"}(),v='<object type="image/svg+xml" data="'+t.$image_uri(y)+'"'+_+">"+x+"</object>")),v=$(e=v)?e:'<img src="'+function(){return f["$=="]("icon")?t.$icon_uri(y):t.$image_uri(y)}()+'" alt="'+d.$encode_attribute_value(t.$alt())+'"'+_+d.void_element_slash+">"),$(t["$attr?"]("link"))&&(v='<a class="image" href="'+t.$attr("link")+'"'+d.$append_link_constraint_attrs(t).$join()+">"+v+"</a>"),m=$(k=t.$role())?$(t["$attr?"]("float"))?f+" "+t.$attr("float")+" "+k:f+" "+k:$(t["$attr?"]("float"))?f+" "+t.$attr("float"):f,'<span class="'+m+'">'+v+"</span>"},J.$$arity=1),t.def(ct,"$convert_inline_indexterm",Q=function(t){return t.$type()["$=="]("visible")?t.$text():""},Q.$$arity=1),t.def(ct,"$convert_inline_kbd",tt=function(t){var e=l;return(e=t.$attr("keys")).$size()["$=="](1)?"<kbd>"+e["$[]"](0)+"</kbd>":'<span class="keyseq"><kbd>'+e.$join("</kbd>+<kbd>")+"</kbd></span>"},tt.$$arity=1),t.def(ct,"$convert_inline_menu",et=function(t){var e=l,n=l,r=l,i=l,o=l;return e=function(){return $(t.$document()["$attr?"]("icons","font"))?'&#160;<i class="fa fa-angle-right caret"></i> ':'&#160;<b class="caret">&#8250;</b> '}(),n="</b>"+e+'<b class="submenu">',r=t.$attr("menu"),$((i=t.$attr("submenus"))["$empty?"]())?$(o=t.$attr("menuitem"))?'<span class="menuseq"><b class="menu">'+r+"</b>"+e+'<b class="menuitem">'+o+"</b></span>":'<b class="menuref">'+r+"</b>":'<span class="menuseq"><b class="menu">'+r+"</b>"+e+'<b class="submenu">'+i.$join(n)+"</b>"+e+'<b class="menuitem">'+t.$attr("menuitem")+"</b></span>"},et.$$arity=1),t.def(ct,"$convert_inline_quoted",nt=function(e){var n,r,i=l,o=l,a=l,s=l;return r=u(ut,"QUOTE_TAGS")["$[]"](e.$type()),n=t.to_ary(r),i=null==n[0]?l:n[0],o=null==n[1]?l:n[1],a=null==n[2]?l:n[2],$(e.$id())?(s=function(){return $(e.$role())?' class="'+e.$role()+'"':""}(),$(a)?i.$chop()+' id="'+e.$id()+'"'+s+">"+e.$text()+o:'<span id="'+e.$id()+'"'+s+">"+i+e.$text()+o+"</span>"):$(e.$role())?$(a)?i.$chop()+' class="'+e.$role()+'">'+e.$text()+o:'<span class="'+e.$role()+'">'+i+e.$text()+o+"</span>":""+i+e.$text()+o},nt.$$arity=1),t.def(ct,"$read_svg_contents",rt=function(e,n){var r,i=this,o=l,a=l,s=l;return $(o=e.$read_contents(n,p(["start","normalize","label"],{start:e.$document().$attr("imagesdir"),normalize:!0,label:"SVG"})))&&($(o["$start_with?"]("<svg"))||(o=o.$sub(u(ut,"SvgPreambleRx"),"")),a=s=l,h(["width","height"],"each",[],(r=function(t){r.$$s;return null==t&&(t=l),$(e["$attr?"](t))?($(s)||(s=(a=o.$match(u(ut,"SvgStartTagRx"))["$[]"](0)).$gsub(u(ut,"DimensionAttributeRx"),"")),s=s.$chop()+" "+t+'="'+e.$attr(t)+'px">'):l},r.$$s=i,r.$$arity=1,r)),$(s)&&(o=""+s+o["$[]"](t.Range.$new(a.$length(),-1,!1)))),o},rt.$$arity=2),ct.$private(),t.def(ct,"$append_boolean_attribute",it=function(t,e){return $(e)?" "+t+'="'+t+'"':" "+t},it.$$arity=2),t.def(ct,"$append_link_constraint_attrs",ot=function(t,e){var n,r=l,i=l;return null==e&&(e=[]),$(t["$option?"]("nofollow"))&&(r="nofollow"),$(i=t.$attributes()["$[]"]("window"))?(e["$<<"](' target="'+i+'"'),$($(n=i["$=="]("_blank"))?n:t["$option?"]("noopener"))&&e["$<<"](function(){return $(r)?' rel="'+r+' noopener"':' rel="noopener"'}())):$(r)&&e["$<<"](' rel="'+r+'"'),e},ot.$$arity=-2),t.def(ct,"$encode_attribute_value",at=function(t){return $(t["$include?"]('"'))?t.$gsub('"',"&quot;"):t},at.$$arity=1),t.def(ct,"$generate_manname_section",st=function(t){var e,n=l,r=l,i=l,o=l,a=l;return n=t.$attr("manname-title","Name"),$($(e=r=t.$sections()["$[]"](0))?(i=r.$title())["$=="](i.$upcase()):e)&&(n=n.$upcase()),o=function(){return $(a=t.$attr("manname-id"))?' id="'+a+'"':""}(),"<h2"+o+">"+n+'</h2>\n<div class="sectionbody">\n<p>'+t.$attr("manname")+" - "+t.$attr("manpurpose")+"</p>\n</div>"},st.$$arity=1),t.def(ct,"$method_missing",lt=function(e,n){var r,i,o,a=lt.$$p,s=this,c=l,u=l,d=l,f=l;for(a&&(lt.$$p=null),d=0,f=arguments.length,u=new Array(f);d<f;d++)u[d]=arguments[d];return r=t.slice.call(arguments,1,arguments.length),i=r,$($(o=(c=e.$to_s())["$start_with?"]("convert_")["$!"]())?s["$handles?"](c):o)?h(s,"send",["convert_"+c].concat(t.to_a(i))):h(s,t.find_super_dispatcher(s,"method_missing",lt,!1),u,a)},lt.$$arity=-2)})(u(y,"Converter"),c(u(y,"Converter"),"Base"),y)}(s[0],s)},Opal.modules["asciidoctor/extensions"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}function n(t,e){return"number"===typeof t&&"number"===typeof e?t+e:t["$+"](e)}function r(t,e){return"number"===typeof t&&"number"===typeof e?t>e:t["$>"](e)}function i(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var o=[],a=t.nil,s=t.const_get_qualified,l=t.const_get_relative,c=(t.breaker,t.slice,t.module),u=t.klass,d=t.truthy,f=t.hash2,h=t.send,p=t.hash;return t.add_stubs(["$==","$[]=","$config","$-","$const_defined?","$singleton_class?","$include","$const_get","$extend","$attr_reader","$merge","$class","$update","$raise","$document","$doctype","$[]","$+","$level","$delete","$>","$casecmp","$new","$title=","$sectname=","$special=","$fetch","$numbered=","$!","$key?","$attr?","$special","$numbered","$generate_id","$title","$id=","$update_attributes","$tr","$basename","$create_block","$assign_caption","$===","$parse_blocks","$empty?","$include?","$sub_attributes","$parse","$each","$define_method","$unshift","$shift","$send","$size","$binding","$receiver","$define_singleton_method","$instance_exec","$to_proc","$call","$option","$flatten","$respond_to?","$to_s","$partition","$to_i","$<<","$compact","$inspect","$attr_accessor","$to_set","$match?","$resolve_regexp","$method","$register","$values","$groups","$arity","$activate","$add_document_processor","$any?","$select","$add_syntax_processor","$to_sym","$instance_variable_get","$kind","$private","$join","$map","$split","$capitalize","$instance_variable_set","$resolve_args","$enable_dsl","$singleton_class","$process_block_given?","$source_location","$freeze","$resolve_class","$<","$update_config","$as_symbol","$name","$name=","$pop","$-@","$next_auto_id","$generate_name"]),l(o,"RUBY_ENGINE")["$=="]("opal"),function(o,$){var m=c(o,"Asciidoctor"),g=[m].concat($);(function(o,$){var m=c(o,"Extensions"),g=[m].concat($);(function(i,o,c){var p,$,m,g,v,y,_,b,w,x,k,S,O=u(i,o,"Processor"),C=[O].concat(c);O.$$prototype.config=a,function(n,r){var i,o,s;[n].concat(r);t.def(n,"$config",i=function(){var t,e=this;return null==e.config&&(e.config=a),e.config=d(t=e.config)?t:f([],{})},i.$$arity=0),t.def(n,"$option",o=function(n,r){var i=this,o=a;return o=[n,r],h(i.$config(),"[]=",t.to_a(o)),o[e(o["length"],1)]},o.$$arity=2),t.def(n,"$enable_dsl",s=function(){var t=this;return d(t["$const_defined?"]("DSL"))?d(t["$singleton_class?"]())?t.$include(t.$const_get("DSL")):t.$extend(t.$const_get("DSL")):a},s.$$arity=0),t.alias(n,"use_dsl","enable_dsl")}(t.get_singleton_class(O),C),O.$attr_reader("config"),t.def(O,"$initialize",p=function(t){var e=this;return null==t&&(t=f([],{})),e.config=e.$class().$config().$merge(t)},p.$$arity=-1),t.def(O,"$update_config",$=function(t){var e=this;return e.config.$update(t)},$.$$arity=1),t.def(O,"$process",m=function(e){var n,r=this;return n=t.slice.call(arguments,0,arguments.length),n,r.$raise(s("::","NotImplementedError"),l(C,"Processor")+" subclass "+r.$class()+" must implement the #process method")},m.$$arity=-1),t.def(O,"$create_section",g=function(i,o,s,c){var u,p=a,$=a,m=a,g=a,v=a,y=a,_=a,b=a,w=a,x=a;return null==c&&(c=f([],{})),p=i.$document(),$=(m=p.$doctype())["$=="]("book"),g=d(u=c["$[]"]("level"))?u:n(i.$level(),1),d(v=s.$delete("style"))?d(d(u=$)?v["$=="]("abstract"):u)?(u=["chapter",1],y=u[0],g=u[1]):(u=[v,!0],y=u[0],_=u[1],g["$=="](0)&&(g=1)):d($)?y=function(){return g["$=="](0)?"part":d(r(g,1))?"section":"chapter"}():d((u=m["$=="]("manpage"))?o.$casecmp("synopsis")["$=="](0):m["$=="]("manpage"))?(u=["synopsis",!0],y=u[0],_=u[1]):y="section",b=l(C,"Section").$new(i,g),u=[o,y],b["$title="](u[0]),b["$sectname="](u[1]),d(_)?(w=[!0],h(b,"special=",t.to_a(w)),w[e(w["length"],1)],d(c.$fetch("numbered",v["$=="]("appendix")))?(w=[!0],h(b,"numbered=",t.to_a(w)),w[e(w["length"],1)]):d(d(u=c["$key?"]("numbered")["$!"]())?p["$attr?"]("sectnums","all"):u)&&(w=[function(){return!d(d(u=$)?g["$=="](1):u)||"chapter"}()],h(b,"numbered=",t.to_a(w)),w[e(w["length"],1)])):d(r(g,0))?d(c.$fetch("numbered",p["$attr?"]("sectnums")))&&(w=[function(){return!d(b.$special())||(!!d(u=i.$numbered())||u)}()],h(b,"numbered=",t.to_a(w)),w[e(w["length"],1)]):d(c.$fetch("numbered",d(u=$)?p["$attr?"]("partnums"):u))&&(w=[!0],h(b,"numbered=",t.to_a(w)),w[e(w["length"],1)]),(x=s["$[]"]("id"))["$=="](!1)?s.$delete("id"):(w=[(w=["id",d(u=x)?u:function(){return d(p["$attr?"]("sectids"))?l(C,"Section").$generate_id(b.$title(),p):a}()],h(s,"[]=",t.to_a(w)),w[e(w["length"],1)])],h(b,"id=",t.to_a(w)),w[e(w["length"],1)]),b.$update_attributes(s),b},g.$$arity=-4),t.def(O,"$create_block",v=function(t,e,n,r,i){return null==i&&(i=f([],{})),l(C,"Block").$new(t,e,f(["source","attributes"],{source:n,attributes:r}).$merge(i))},v.$$arity=-5),t.def(O,"$create_list",y=function(t,e,n){var r=a;return null==n&&(n=a),r=l(C,"List").$new(t,e),d(n)&&r.$update_attributes(n),r},y.$$arity=-3),t.def(O,"$create_list_item",_=function(t,e){return null==e&&(e=a),l(C,"ListItem").$new(t,e)},_.$$arity=-2),t.def(O,"$create_image_block",b=function(n,r,i){var o=this,c=a,u=a,p=a,$=a;return null==i&&(i=f([],{})),d(c=r["$[]"]("target"))||o.$raise(s("::","ArgumentError"),"Unable to create an image block, target attribute is required"),d(r["$[]"]("alt"))||(u=["alt",(u=["default-alt",l(C,"Helpers").$basename(c,!0).$tr("_-"," ")],h(r,"[]=",t.to_a(u)),u[e(u["length"],1)])],h(r,"[]=",t.to_a(u)),u[e(u["length"],1)]),p=function(){return d(r["$key?"]("title"))?r.$delete("title"):a}(),$=o.$create_block(n,"image",a,r,i),d(p)&&(u=[p],h($,"title=",t.to_a(u)),u[e(u["length"],1)],$.$assign_caption(r.$delete("caption"),"figure")),$},b.$$arity=-3),t.def(O,"$create_inline",w=function(t,e,n,r){return null==r&&(r=f([],{})),l(C,"Inline").$new(t,e,n,function(){return e["$=="]("quoted")?f(["type"],{type:"unquoted"}).$merge(r):r}())},w.$$arity=-4),t.def(O,"$parse_content",x=function(t,e,n){var r=a;return null==n&&(n=a),r=function(){return d(l(C,"Reader")["$==="](e))?e:l(C,"Reader").$new(e)}(),l(C,"Parser").$parse_blocks(r,t,n),t},x.$$arity=-3),t.def(O,"$parse_attributes",k=function(t,e,n){var r;return null==n&&(n=f([],{})),d(function(){return!d(e)||e["$empty?"]()}())?f([],{}):(d(d(r=n["$[]"]("sub_attributes"))?e["$include?"](l(C,"ATTR_REF_HEAD")):r)&&(e=t.$sub_attributes(e)),l(C,"AttributeList").$new(e).$parse(d(r=n["$[]"]("positional_attributes"))?r:[]))},k.$$arity=-3),h([["create_paragraph","create_block","paragraph"],["create_open_block","create_block","open"],["create_example_block","create_block","example"],["create_pass_block","create_block","pass"],["create_listing_block","create_block","listing"],["create_literal_block","create_block","literal"],["create_anchor","create_inline","anchor"],["create_inline_pass","create_inline","quoted"]],"each",[],(S=function(e,n,r){var i,o=S.$$s||this;return null==e&&(e=a),null==n&&(n=a),null==r&&(r=a),h(o,"define_method",[e],(i=function(e){var o,a,s=i.$$s||this;return o=t.slice.call(arguments,0,arguments.length),a=o,a.$unshift(a.$shift(),r),h(s,"send",[n].concat(t.to_a(a)))},i.$$s=o,i.$$arity=-1,i))},S.$$s=O,S.$$arity=3,S))})(g[0],null,g),function(n,r){var i,o,l,u=c(n,"ProcessorDsl");[u].concat(r);t.def(u,"$option",i=function(n,r){var i=this,o=a;return o=[n,r],h(i.$config(),"[]=",t.to_a(o)),o[e(o["length"],1)]},i.$$arity=2),t.def(u,"$process",o=function(e){var n,r,i,l,c=o.$$p,u=c||a,f=this,p=a;return null==f.process_block&&(f.process_block=a),c&&(o.$$p=null),c&&(o.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,u!==a?(d(r["$empty?"]())||f.$raise(s("::","ArgumentError"),"wrong number of arguments (given "+r.$size()+", expected 0)"),d(d(i=u.$binding())?f["$=="](u.$binding().$receiver()):i)||(p=f,h(u,"define_singleton_method",["call"],(l=function(e){var n,r;l.$$s;return n=t.slice.call(arguments,0,arguments.length),r=n,h(p,"instance_exec",t.to_a(r),u.$to_proc())},l.$$s=f,l.$$arity=-1,l))),f.process_block=u):d((i=f["process_block"],null!=i&&i!==a?"instance-variable":a))?h(f.process_block,"call",t.to_a(r)):f.$raise(s("::","NotImplementedError"),f.$class()+" #process method called before being registered")},o.$$arity=-1),t.def(u,"$process_block_given?",l=function(){var t,e=this;return t=e["process_block"],null!=t&&t!==a?"instance-variable":a},l.$$arity=0)}(g[0],g),function(e,n){var r,i=c(e,"DocumentProcessorDsl"),o=[i].concat(n);i.$include(l(o,"ProcessorDsl")),t.def(i,"$prefer",r=function(){var t=this;return t.$option("position",">>")},r.$$arity=0)}(g[0],g),function(n,i){var o,u,p,$,m,g=c(n,"SyntaxProcessorDsl"),v=[g].concat(i);g.$include(l(v,"ProcessorDsl")),t.def(g,"$named",o=function(t){var e=this;return d(l(v,"Processor")["$==="](e))?e.name=t:e.$option("name",t)},o.$$arity=1),t.def(g,"$content_model",u=function(t){var e=this;return e.$option("content_model",t)},u.$$arity=1),t.alias(g,"parse_content_as","content_model"),t.def(g,"$positional_attributes",p=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,i.$option("positional_attrs",r.$flatten())},p.$$arity=-1),t.alias(g,"name_positional_attributes","positional_attributes"),t.alias(g,"positional_attrs","positional_attributes"),t.def(g,"$default_attributes",$=function(t){var e=this;return e.$option("default_attrs",t)},$.$$arity=1),t.alias(g,"default_attrs","default_attributes"),t.def(g,"$resolve_attributes",m=function(n){var i,o,l,c,u,p=this,$=a,m=a,g=a;return i=t.slice.call(arguments,0,arguments.length),o=i,d(r(o.$size(),1))||d((o=o.$fetch(0,!0))["$respond_to?"]("to_sym"))&&(o=[o]),function(){return $=o,(!0)["$==="]($)?(p.$option("positional_attrs",[]),p.$option("default_attrs",f([],{}))):s("::","Array")["$==="]($)?(l=[[],f([],{})],m=l[0],g=l[1],h(o,"each",[],(c=function(n){c.$$s;var r,i,o=a,s=a,l=a,u=a;return null==n&&(n=a),d((n=n.$to_s())["$include?"]("="))?(i=n.$partition("="),r=t.to_ary(i),o=null==r[0]?a:r[0],null==r[1]?a:r[1],s=null==r[2]?a:r[2],d(o["$include?"](":"))&&(i=o.$partition(":"),r=t.to_ary(i),l=null==r[0]?a:r[0],null==r[1]?a:r[1],o=null==r[2]?a:r[2],l=function(){return l["$=="]("@")?m.$size():l.$to_i()}(),u=[l,o],h(m,"[]=",t.to_a(u)),u[e(u["length"],1)]),u=[o,s],h(g,"[]=",t.to_a(u)),u[e(u["length"],1)]):d(n["$include?"](":"))?(i=n.$partition(":"),r=t.to_ary(i),l=null==r[0]?a:r[0],null==r[1]?a:r[1],o=null==r[2]?a:r[2],l=function(){return l["$=="]("@")?m.$size():l.$to_i()}(),u=[l,o],h(m,"[]=",t.to_a(u)),u[e(u["length"],1)]):m["$<<"](n)},c.$$s=p,c.$$arity=1,c)),p.$option("positional_attrs",m.$compact()),p.$option("default_attrs",g)):s("::","Hash")["$==="]($)?(l=[[],f([],{})],m=l[0],g=l[1],h(o,"each",[],(u=function(n,r){u.$$s;var i,o,s=a,l=a,c=a;return null==n&&(n=a),null==r&&(r=a),d((s=n.$to_s())["$include?"](":"))&&(o=s.$partition(":"),i=t.to_ary(o),l=null==i[0]?a:i[0],null==i[1]?a:i[1],s=null==i[2]?a:i[2],l=function(){return l["$=="]("@")?m.$size():l.$to_i()}(),c=[l,s],h(m,"[]=",t.to_a(c)),c[e(c["length"],1)]),d(r)?(c=[s,r],h(g,"[]=",t.to_a(c)),c[e(c["length"],1)]):a},u.$$s=p,u.$$arity=2,u)),p.$option("positional_attrs",m.$compact()),p.$option("default_attrs",g)):p.$raise(s("::","ArgumentError"),"unsupported attributes specification for macro: "+o.$inspect())}()},m.$$arity=-1),t.alias(g,"resolves_attributes","resolve_attributes")}(g[0],g),function(e,n,r){var i,o=u(e,n,"Preprocessor"),a=[o].concat(r);t.def(o,"$process",i=function(t,e){var n=this;return n.$raise(s("::","NotImplementedError"),l(a,"Preprocessor")+" subclass "+n.$class()+" must implement the #process method")},i.$$arity=2)}(g[0],l(g,"Processor"),g),t.const_set(l(g,"Preprocessor"),"DSL",l(g,"DocumentProcessorDsl")),function(e,n,r){var i,o=u(e,n,"TreeProcessor"),a=[o].concat(r);t.def(o,"$process",i=function(t){var e=this;return e.$raise(s("::","NotImplementedError"),l(a,"TreeProcessor")+" subclass "+e.$class()+" must implement the #process method")},i.$$arity=1)}(g[0],l(g,"Processor"),g),t.const_set(l(g,"TreeProcessor"),"DSL",l(g,"DocumentProcessorDsl")),t.const_set(g[0],"Treeprocessor",l(g,"TreeProcessor")),function(e,n,r){var i,o=u(e,n,"Postprocessor"),a=[o].concat(r);t.def(o,"$process",i=function(t,e){var n=this;return n.$raise(s("::","NotImplementedError"),l(a,"Postprocessor")+" subclass "+n.$class()+" must implement the #process method")},i.$$arity=2)}(g[0],l(g,"Processor"),g),t.const_set(l(g,"Postprocessor"),"DSL",l(g,"DocumentProcessorDsl")),function(e,n,r){var i,o,a=u(e,n,"IncludeProcessor"),c=[a].concat(r);t.def(a,"$process",i=function(t,e,n,r){var i=this;return i.$raise(s("::","NotImplementedError"),l(c,"IncludeProcessor")+" subclass "+i.$class()+" must implement the #process method")},i.$$arity=4),t.def(a,"$handles?",o=function(t){return!0},o.$$arity=1)}(g[0],l(g,"Processor"),g),function(e,n){var r,i=c(e,"IncludeProcessorDsl"),o=[i].concat(n);i.$include(l(o,"DocumentProcessorDsl")),t.def(i,"$handles?",r=function(e){var n,i,o,l=r.$$p,c=l||a,u=this;return null==u.handles_block&&(u.handles_block=a),l&&(r.$$p=null),l&&(r.$$p=null),n=t.slice.call(arguments,0,arguments.length),i=n,c!==a?(d(i["$empty?"]())||u.$raise(s("::","ArgumentError"),"wrong number of arguments (given "+i.$size()+", expected 0)"),u.handles_block=c):!d((o=u["handles_block"],null!=o&&o!==a?"instance-variable":a))||u.handles_block.$call(i["$[]"](0))},r.$$arity=-1)}(g[0],g),t.const_set(l(g,"IncludeProcessor"),"DSL",l(g,"IncludeProcessorDsl")),function(n,r,i){var o,c,p=u(n,r,"DocinfoProcessor"),$=[p].concat(i);p.$$prototype.config=a,t.def(p,"$initialize",o=function(n){var r,i=o.$$p,s=this,l=a;return i&&(o.$$p=null),null==n&&(n=f([],{})),h(s,t.find_super_dispatcher(s,"initialize",o,!1),[n],null),d(r=s.config["$[]"]("location"))?r:(l=["location","head"],h(s.config,"[]=",t.to_a(l)),l[e(l["length"],1)])},o.$$arity=-1),t.def(p,"$process",c=function(t){var e=this;return e.$raise(s("::","NotImplementedError"),l($,"DocinfoProcessor")+" subclass "+e.$class()+" must implement the #process method")},c.$$arity=1)}(g[0],l(g,"Processor"),g),function(e,n){var r,i=c(e,"DocinfoProcessorDsl"),o=[i].concat(n);i.$include(l(o,"DocumentProcessorDsl")),t.def(i,"$at_location",r=function(t){var e=this;return e.$option("location",t)},r.$$arity=1)}(g[0],g),t.const_set(l(g,"DocinfoProcessor"),"DSL",l(g,"DocinfoProcessorDsl")),function(n,r,i){var o,c,p=u(n,r,"BlockProcessor"),$=[p].concat(i);p.$$prototype.config=a,p.$attr_accessor("name"),t.def(p,"$initialize",o=function(n,r){var i,l=o.$$p,c=this,u=a,p=a;return l&&(o.$$p=null),null==n&&(n=a),null==r&&(r=f([],{})),h(c,t.find_super_dispatcher(c,"initialize",o,!1),[r],null),c.name=d(i=n)?i:c.config["$[]"]("name"),u=c.config["$[]"]("contexts"),s("::","NilClass")["$==="](u)?d(i=c.config["$[]"]("contexts"))||(p=["contexts",["open","paragraph"].$to_set()],h(c.config,"[]=",t.to_a(p)),p[e(p["length"],1)]):s("::","Symbol")["$==="](u)?(p=["contexts",[c.config["$[]"]("contexts")].$to_set()],h(c.config,"[]=",t.to_a(p)),p[e(p["length"],1)]):(p=["contexts",c.config["$[]"]("contexts").$to_set()],h(c.config,"[]=",t.to_a(p)),p[e(p["length"],1)]),d(i=c.config["$[]"]("content_model"))?i:(p=["content_model","compound"],h(c.config,"[]=",t.to_a(p)),p[e(p["length"],1)])},o.$$arity=-1),t.def(p,"$process",c=function(t,e,n){var r=this;return r.$raise(s("::","NotImplementedError"),l($,"BlockProcessor")+" subclass "+r.$class()+" must implement the #process method")},c.$$arity=3)}(g[0],l(g,"Processor"),g),function(e,n){var r,i=c(e,"BlockProcessorDsl"),o=[i].concat(n);i.$include(l(o,"SyntaxProcessorDsl")),t.def(i,"$contexts",r=function(e){var n,r,i=this;return n=t.slice.call(arguments,0,arguments.length),r=n,i.$option("contexts",r.$flatten().$to_set())},r.$$arity=-1),t.alias(i,"on_contexts","contexts"),t.alias(i,"on_context","contexts"),t.alias(i,"bind_to","contexts")}(g[0],g),t.const_set(l(g,"BlockProcessor"),"DSL",l(g,"BlockProcessorDsl")),function(n,r,i){var o,c,p=u(n,r,"MacroProcessor"),$=[p].concat(i);p.$$prototype.config=a,p.$attr_accessor("name"),t.def(p,"$initialize",o=function(n,r){var i,s=o.$$p,l=this,c=a;return s&&(o.$$p=null),null==n&&(n=a),null==r&&(r=f([],{})),h(l,t.find_super_dispatcher(l,"initialize",o,!1),[r],null),l.name=d(i=n)?i:l.config["$[]"]("name"),d(i=l.config["$[]"]("content_model"))?i:(c=["content_model","attributes"],h(l.config,"[]=",t.to_a(c)),c[e(c["length"],1)])},o.$$arity=-1),t.def(p,"$process",c=function(t,e,n){var r=this;return r.$raise(s("::","NotImplementedError"),l($,"MacroProcessor")+" subclass "+r.$class()+" must implement the #process method")},c.$$arity=3)}(g[0],l(g,"Processor"),g),function(e,n){var r,i=c(e,"MacroProcessorDsl"),o=[i].concat(n);i.$include(l(o,"SyntaxProcessorDsl")),t.def(i,"$resolve_attributes",r=function(e){var n,i,o=r.$$p,s=this,l=a,c=a,u=a;for(o&&(r.$$p=null),c=0,u=arguments.length,l=new Array(u);c<u;c++)l[c]=arguments[c];return n=t.slice.call(arguments,0,arguments.length),i=n,d(i.$size()["$=="](1)?i["$[]"](0)["$!"]():i.$size()["$=="](1))?s.$option("content_model","text"):(h(s,t.find_super_dispatcher(s,"resolve_attributes",r,!1),l,o),s.$option("content_model","attributes"))},r.$$arity=-1),t.alias(i,"resolves_attributes","resolve_attributes")}(g[0],g),function(e,n,r){var i,o=u(e,n,"BlockMacroProcessor"),c=[o].concat(r);o.$$prototype.name=a,t.def(o,"$name",i=function(){var t=this;return d(l(c,"MacroNameRx")["$match?"](t.name.$to_s()))||t.$raise(s("::","ArgumentError"),"invalid name for block macro: "+t.name),t.name},i.$$arity=0)}(g[0],l(g,"MacroProcessor"),g),t.const_set(l(g,"BlockMacroProcessor"),"DSL",l(g,"MacroProcessorDsl")),function(n,r,i){var o,c,p=u(n,r,"InlineMacroProcessor"),$=[p].concat(i);p.$$prototype.config=p.$$prototype.name=a,t.class_variable_set($[0],"@@rx_cache",f([],{})),t.def(p,"$regexp",o=function(){var n,r=this,i=a;return d(n=r.config["$[]"]("regexp"))?n:(i=["regexp",r.$resolve_regexp(r.name.$to_s(),r.config["$[]"]("format"))],h(r.config,"[]=",t.to_a(i)),i[e(i["length"],1)])},o.$$arity=0),t.def(p,"$resolve_regexp",c=function(n,r){var i,o,c=this,u=a;return d(l($,"MacroNameRx")["$match?"](n))||c.$raise(s("::","ArgumentError"),"invalid name for inline macro: "+n),d(i=(null==(o=$[0].$$cvars["@@rx_cache"])?a:o)["$[]"]([n,r]))?i:(u=[[n,r],new RegExp("\\\\?"+n+":"+function(){return r["$=="]("short")?"(){0}":"(\\S+?)"}()+"\\[(|"+l($,"CC_ANY")+"*?[^\\\\])\\]")],h(null==(o=$[0].$$cvars["@@rx_cache"])?a:o,"[]=",t.to_a(u)),u[e(u["length"],1)])},c.$$arity=2)}(g[0],l(g,"MacroProcessor"),g),function(e,n){var r,i,o=c(e,"InlineMacroProcessorDsl"),a=[o].concat(n);o.$include(l(a,"MacroProcessorDsl")),t.def(o,"$format",r=function(t){var e=this;return e.$option("format",t)},r.$$arity=1),t.alias(o,"match_format","format"),t.alias(o,"using_format","format"),t.def(o,"$match",i=function(t){var e=this;return e.$option("regexp",t)},i.$$arity=1)}(g[0],g),t.const_set(l(g,"InlineMacroProcessor"),"DSL",l(g,"InlineMacroProcessorDsl")),function(e,n,r){var i,o=u(e,n,"Extension");[o].concat(r);o.$attr_reader("kind"),o.$attr_reader("config"),o.$attr_reader("instance"),t.def(o,"$initialize",i=function(t,e,n){var r=this;return r.kind=t,r.instance=e,r.config=n},i.$$arity=3)}(g[0],null,g),function(e,n,r){var i,o=u(e,n,"ProcessorExtension");[o].concat(r);o.$attr_reader("process_method"),t.def(o,"$initialize",i=function(e,n,r){var o,s=i.$$p,l=this;return s&&(i.$$p=null),null==r&&(r=a),h(l,t.find_super_dispatcher(l,"initialize",i,!1),[e,n,n.$config()],null),l.process_method=d(o=r)?o:n.$method("process")},i.$$arity=-3)}(g[0],l(g,"Extension"),g),function(e,n,r){var i,o=u(e,n,"Group"),c=[o].concat(r);(function(e,n){var r,i=[e].concat(n);t.def(e,"$register",r=function(t){var e=this;return null==t&&(t=a),l(i,"Extensions").$register(t,e)},r.$$arity=-1)})(t.get_singleton_class(o),c),t.def(o,"$activate",i=function(t){var e=this;return e.$raise(s("::","NotImplementedError"))},i.$$arity=1)}(g[0],null,g),function(o,c,p){var $,m,g,v,y,_,b,w,x,k,S,O,C,A,E,T,P,B,L,I,D,R,j,M,F,N,z,H,V,U,q,W,G,Y,K,X=u(o,c,"Registry"),Z=[X].concat(p);X.$$prototype.groups=X.$$prototype.preprocessor_extensions=X.$$prototype.tree_processor_extensions=X.$$prototype.postprocessor_extensions=X.$$prototype.include_processor_extensions=X.$$prototype.docinfo_processor_extensions=X.$$prototype.block_extensions=X.$$prototype.block_macro_extensions=X.$$prototype.inline_macro_extensions=a,X.$attr_reader("document"),X.$attr_reader("groups"),t.def(X,"$initialize",$=function(t){var e=this;return null==t&&(t=f([],{})),e.groups=t,e.preprocessor_extensions=e.tree_processor_extensions=e.postprocessor_extensions=e.include_processor_extensions=e.docinfo_processor_extensions=e.block_extensions=e.block_macro_extensions=e.inline_macro_extensions=a,e.document=a},$.$$arity=-1),t.def(X,"$activate",m=function(t){var e,r=this,i=a;return r.document=t,d((i=n(l(Z,"Extensions").$groups().$values(),r.groups.$values()))["$empty?"]())||h(i,"each",[],(e=function(t){var n=e.$$s||this,r=a;return null==t&&(t=a),function(){return r=t,s("::","Proc")["$==="](r)?function(){return r=t.$arity(),(0)["$==="](r)||(-1)["$==="](r)?h(n,"instance_exec",[],t.$to_proc()):1["$==="](r)?t.$call(n):a}():s("::","Class")["$==="](r)?t.$new().$activate(n):t.$activate(n)}()},e.$$s=r,e.$$arity=1,e)),r},m.$$arity=1),t.def(X,"$preprocessor",g=function(e){var n,r,i=g.$$p,o=i||a,s=this;return i&&(g.$$p=null),i&&(g.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,h(s,"add_document_processor",["preprocessor",r],o.$to_proc())},g.$$arity=-1),t.def(X,"$preprocessors?",v=function(){var t=this;return t.preprocessor_extensions["$!"]()["$!"]()},v.$$arity=0),t.def(X,"$preprocessors",y=function(){var t=this;return t.preprocessor_extensions},y.$$arity=0),t.def(X,"$tree_processor",_=function(e){var n,r,i=_.$$p,o=i||a,s=this;return i&&(_.$$p=null),i&&(_.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,h(s,"add_document_processor",["tree_processor",r],o.$to_proc())},_.$$arity=-1),t.def(X,"$tree_processors?",b=function(){var t=this;return t.tree_processor_extensions["$!"]()["$!"]()},b.$$arity=0),t.def(X,"$tree_processors",w=function(){var t=this;return t.tree_processor_extensions},w.$$arity=0),t.alias(X,"treeprocessor","tree_processor"),t.alias(X,"treeprocessors?","tree_processors?"),t.alias(X,"treeprocessors","tree_processors"),t.def(X,"$postprocessor",x=function(e){var n,r,i=x.$$p,o=i||a,s=this;return i&&(x.$$p=null),i&&(x.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,h(s,"add_document_processor",["postprocessor",r],o.$to_proc())},x.$$arity=-1),t.def(X,"$postprocessors?",k=function(){var t=this;return t.postprocessor_extensions["$!"]()["$!"]()},k.$$arity=0),t.def(X,"$postprocessors",S=function(){var t=this;return t.postprocessor_extensions},S.$$arity=0),t.def(X,"$include_processor",O=function(e){var n,r,i=O.$$p,o=i||a,s=this;return i&&(O.$$p=null),i&&(O.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,h(s,"add_document_processor",["include_processor",r],o.$to_proc())},O.$$arity=-1),t.def(X,"$include_processors?",C=function(){var t=this;return t.include_processor_extensions["$!"]()["$!"]()},C.$$arity=0),t.def(X,"$include_processors",A=function(){var t=this;return t.include_processor_extensions},A.$$arity=0),t.def(X,"$docinfo_processor",E=function(e){var n,r,i=E.$$p,o=i||a,s=this;return i&&(E.$$p=null),i&&(E.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,h(s,"add_document_processor",["docinfo_processor",r],o.$to_proc())},E.$$arity=-1),t.def(X,"$docinfo_processors?",T=function(t){var e,n=this;return null==t&&(t=a),!!d(n.docinfo_processor_extensions)&&(!d(t)||h(n.docinfo_processor_extensions,"any?",[],(e=function(n){e.$$s;return null==n&&(n=a),n.$config()["$[]"]("location")["$=="](t)},e.$$s=n,e.$$arity=1,e)))},T.$$arity=-1),t.def(X,"$docinfo_processors",P=function(t){var e,n=this;return null==t&&(t=a),d(n.docinfo_processor_extensions)?d(t)?h(n.docinfo_processor_extensions,"select",[],(e=function(n){e.$$s;return null==n&&(n=a),n.$config()["$[]"]("location")["$=="](t)},e.$$s=n,e.$$arity=1,e)):n.docinfo_processor_extensions:a},P.$$arity=-1),t.def(X,"$block",B=function(e){var n,r,i=B.$$p,o=i||a,s=this;return i&&(B.$$p=null),i&&(B.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,h(s,"add_syntax_processor",["block",r],o.$to_proc())},B.$$arity=-1),t.def(X,"$blocks?",L=function(){var t=this;return t.block_extensions["$!"]()["$!"]()},L.$$arity=0),t.def(X,"$registered_for_block?",I=function(t,e){var n=this,r=a;return!!d(r=n.block_extensions["$[]"](t.$to_sym()))&&(!!d(r.$config()["$[]"]("contexts")["$include?"](e))&&r)},I.$$arity=2),t.def(X,"$find_block_extension",D=function(t){var e=this;return e.block_extensions["$[]"](t.$to_sym())},D.$$arity=1),t.def(X,"$block_macro",R=function(e){var n,r,i=R.$$p,o=i||a,s=this;return i&&(R.$$p=null),i&&(R.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,h(s,"add_syntax_processor",["block_macro",r],o.$to_proc())},R.$$arity=-1),t.def(X,"$block_macros?",j=function(){var t=this;return t.block_macro_extensions["$!"]()["$!"]()},j.$$arity=0),t.def(X,"$registered_for_block_macro?",M=function(t){var e=this,n=a;return!!d(n=e.block_macro_extensions["$[]"](t.$to_sym()))&&n},M.$$arity=1),t.def(X,"$find_block_macro_extension",F=function(t){var e=this;return e.block_macro_extensions["$[]"](t.$to_sym())},F.$$arity=1),t.def(X,"$inline_macro",N=function(e){var n,r,i=N.$$p,o=i||a,s=this;return i&&(N.$$p=null),i&&(N.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,h(s,"add_syntax_processor",["inline_macro",r],o.$to_proc())},N.$$arity=-1),t.def(X,"$inline_macros?",z=function(){var t=this;return t.inline_macro_extensions["$!"]()["$!"]()},z.$$arity=0),t.def(X,"$registered_for_inline_macro?",H=function(t){var e=this,n=a;return!!d(n=e.inline_macro_extensions["$[]"](t.$to_sym()))&&n},H.$$arity=1),t.def(X,"$find_inline_macro_extension",V=function(t){var e=this;return e.inline_macro_extensions["$[]"](t.$to_sym())},V.$$arity=1),t.def(X,"$inline_macros",U=function(){var t=this;return t.inline_macro_extensions.$values()},U.$$arity=0),t.def(X,"$prefer",q=function(e){var n,r,i=q.$$p,o=i||a,s=this,c=a,u=a,f=a;return i&&(q.$$p=null),i&&(q.$$p=null),n=t.slice.call(arguments,0,arguments.length),r=n,c=function(){return d(l(Z,"ProcessorExtension")["$==="](u=r.$shift()))?u:h(s,"send",[u].concat(t.to_a(r)),o.$to_proc())}(),f=s.$instance_variable_get(("@"+c.$kind()+"_extensions").$to_sym()),f.$unshift(f.$delete(c)),c},q.$$arity=-1),X.$private(),t.def(X,"$add_document_processor",W=function(e,n){var r,o,c,u=W.$$p,f=u||a,p=this,$=a,m=a,g=a,v=a,y=a,_=a,b=a,w=a,x=a,k=a;return u&&(W.$$p=null),u&&(W.$$p=null),$=e.$to_s().$tr("_"," "),m=h($.$split(),"map",[],(r=function(t){r.$$s;return null==t&&(t=a),t.$capitalize()},r.$$s=p,r.$$arity=1,r)).$join().$to_sym(),g=l(Z,"Extensions").$const_get(m,!1),v=function(){return d(s("::","AsciidoctorJ","skip_raise")?"constant":a)?s(s("::","AsciidoctorJ"),"Extensions").$const_get(m,!1):a}(),y=d(o=p.$instance_variable_get(("@"+e+"_extensions").$to_sym()))?o:p.$instance_variable_set(("@"+e+"_extensions").$to_sym(),[]),_=function(){return f!==a?(b=p.$resolve_args(n,1),(w=g.$new(b)).$singleton_class().$enable_dsl(),f.$arity()["$=="](0)?h(w,"instance_exec",[],f.$to_proc()):t.yield1(f,w),d(w["$process_block_given?"]())||p.$raise(s("::","ArgumentError"),"No block specified to process "+$+" extension at "+f.$source_location()),w.$freeze(),l(Z,"ProcessorExtension").$new(e,w)):(c=p.$resolve_args(n,2),o=t.to_ary(c),w=null==o[0]?a:o[0],b=null==o[1]?a:o[1],d(x=l(Z,"Helpers").$resolve_class(w))?(d(d(o=i(x,g))?o:d(c=v)?i(x,v):c)||p.$raise(s("::","ArgumentError"),"Invalid type for "+$+" extension: "+w),k=x.$new(b),k.$freeze(),l(Z,"ProcessorExtension").$new(e,k)):d(d(o=g["$==="](w))?o:d(c=v)?v["$==="](w):c)?(w.$update_config(b),w.$freeze(),l(Z,"ProcessorExtension").$new(e,w)):p.$raise(s("::","ArgumentError"),"Invalid arguments specified for registering "+$+" extension: "+n))}(),_.$config()["$[]"]("position")["$=="](">>")?y.$unshift(_):y["$<<"](_),_},W.$$arity=2),t.def(X,"$add_syntax_processor",G=function(n,r){var o,c,u,p=G.$$p,$=p||a,m=this,g=a,v=a,y=a,_=a,b=a,w=a,x=a,k=a,S=a,O=a,C=a;return p&&(G.$$p=null),p&&(G.$$p=null),g=n.$to_s().$tr("_"," "),v=h(g.$split(),"map",[],(o=function(t){o.$$s;return null==t&&(t=a),t.$capitalize()},o.$$s=m,o.$$arity=1,o))["$<<"]("Processor").$join().$to_sym(),y=l(Z,"Extensions").$const_get(v,!1),_=function(){return d(s("::","AsciidoctorJ","skip_raise")?"constant":a)?s(s("::","AsciidoctorJ"),"Extensions").$const_get(v,!1):a}(),b=d(c=m.$instance_variable_get(("@"+n+"_extensions").$to_sym()))?c:m.$instance_variable_set(("@"+n+"_extensions").$to_sym(),f([],{})),$!==a?(u=m.$resolve_args(r,2),c=t.to_ary(u),w=null==c[0]?a:c[0],x=null==c[1]?a:c[1],(k=y.$new(m.$as_symbol(w),x)).$singleton_class().$enable_dsl(),$.$arity()["$=="](0)?h(k,"instance_exec",[],$.$to_proc()):t.yield1($,k),d(w=m.$as_symbol(k.$name()))||m.$raise(s("::","ArgumentError"),"No name specified for "+g+" extension at "+$.$source_location()),d(k["$process_block_given?"]())||m.$raise(s("::","NoMethodError"),"No block specified to process "+g+" extension at "+$.$source_location()),k.$freeze(),S=[w,l(Z,"ProcessorExtension").$new(n,k)],h(b,"[]=",t.to_a(S)),S[e(S["length"],1)]):(u=m.$resolve_args(r,3),c=t.to_ary(u),k=null==c[0]?a:c[0],w=null==c[1]?a:c[1],x=null==c[2]?a:c[2],d(O=l(Z,"Helpers").$resolve_class(k))?(d(d(c=i(O,y))?c:d(u=_)?i(O,_):u)||m.$raise(s("::","ArgumentError"),"Class specified for "+g+" extension does not inherit from "+y+": "+k),C=O.$new(m.$as_symbol(w),x),d(w=m.$as_symbol(C.$name()))||m.$raise(s("::","ArgumentError"),"No name specified for "+g+" extension: "+k),C.$freeze(),S=[w,l(Z,"ProcessorExtension").$new(n,C)],h(b,"[]=",t.to_a(S)),S[e(S["length"],1)]):d(d(c=y["$==="](k))?c:d(u=_)?_["$==="](k):u)?(k.$update_config(x),d(w=function(){return d(w)?(S=[m.$as_symbol(w)],h(k,"name=",t.to_a(S)),S[e(S["length"],1)]):m.$as_symbol(k.$name())}())||m.$raise(s("::","ArgumentError"),"No name specified for "+g+" extension: "+k),k.$freeze(),S=[w,l(Z,"ProcessorExtension").$new(n,k)],h(b,"[]=",t.to_a(S)),S[e(S["length"],1)]):m.$raise(s("::","ArgumentError"),"Invalid arguments specified for registering "+g+" extension: "+r))},G.$$arity=2),t.def(X,"$resolve_args",Y=function(t,o){var l=a,c=a;return l=function(){return d(s("::","Hash")["$==="](t["$[]"](-1)))?t.$pop():f([],{})}(),o["$=="](1)?l:(d(r(c=e(e(o,1),t.$size()),0))?t=n(t,s("::","Array").$new(c)):d(i(c,0))&&t.$pop(c["$-@"]()),t["$<<"](l),t)},Y.$$arity=2),t.def(X,"$as_symbol",K=function(t){return d(t)?t.$to_sym():a},K.$$arity=1)}(g[0],null,g),function(r,i){var o,c,u,$,m,g,v,y=[r].concat(i);t.def(r,"$generate_name",o=function(){var t=this;return"extgrp"+t.$next_auto_id()},o.$$arity=0),t.def(r,"$next_auto_id",c=function(){var t,e=this;return null==e.auto_id&&(e.auto_id=a),e.auto_id=d(t=e.auto_id)?t:-1,e.auto_id=n(e.auto_id,1)},c.$$arity=0),t.def(r,"$groups",u=function(){var t,e=this;return null==e.groups&&(e.groups=a),e.groups=d(t=e.groups)?t:f([],{})},u.$$arity=0),t.def(r,"$create",$=function(t){var e,n=$.$$p,r=n||a,i=this;return n&&($.$$p=null),n&&($.$$p=null),null==t&&(t=a),r!==a?l(y,"Registry").$new(p(d(e=t)?e:i.$generate_name(),r)):l(y,"Registry").$new()},$.$$arity=-1),t.def(r,"$register",m=function(n){var r,i,o,c=m.$$p,u=c||a,f=this,p=a,$=a,g=a,v=a,_=a;return c&&(m.$$p=null),c&&(m.$$p=null),r=t.slice.call(arguments,0,arguments.length),i=r,p=i.$size(),u!==a?$=u:d(g=i.$pop())?$=d(o=l(y,"Helpers").$resolve_class(g))?o:g:f.$raise(s("::","ArgumentError"),"Extension group to register not specified"),v=d(o=i.$pop())?o:f.$generate_name(),d(i["$empty?"]())||f.$raise(s("::","ArgumentError"),"Wrong number of arguments ("+p+" for 1..2)"),_=[v.$to_sym(),$],h(f.$groups(),"[]=",t.to_a(_)),_[e(_["length"],1)]},m.$$arity=-1),t.def(r,"$unregister_all",g=function(){var t=this;return t.groups=f([],{}),a},g.$$arity=0),t.def(r,"$unregister",v=function(e){var n,r,i,o=this;return n=t.slice.call(arguments,0,arguments.length),r=n,h(r,"each",[],(i=function(t){var e=i.$$s||this;return null==e.groups&&(e.groups=a),null==t&&(t=a),e.groups.$delete(t.$to_sym())},i.$$s=o,i.$$arity=1,i)),a},v.$$arity=-1)}(t.get_singleton_class(m),g)})(g[0],g)}(o[0],o)},Opal.modules["asciidoctor/js/asciidoctor_ext/stylesheet"]=function(t){t.top;var e=[],n=t.nil,r=t.const_get_qualified,i=(t.const_get_relative,t.breaker,t.slice,t.module),o=t.klass,a=t.truthy;return t.add_stubs(["$rstrip","$read","$join"]),function(e,s){var l=i(e,"Asciidoctor"),c=[l].concat(s);(function(e,i,s){var l,c=o(e,i,"Stylesheets");[c].concat(s);c.$$prototype.primary_stylesheet_data=n,t.def(c,"$primary_stylesheet_data",l=function(){var t,e=this;return e.primary_stylesheet_data=a(t=e.primary_stylesheet_data)?t:r("::","IO").$read(r("::","File").$join("css","asciidoctor.css")).$rstrip()},l.$$arity=0)})(c[0],null,c)}(e[0],e)},Opal.modules["asciidoctor/js/asciidoctor_ext/document"]=function(t){t.top;var e=[],n=(t.nil,t.const_get_qualified,t.const_get_relative),r=(t.breaker,t.slice,t.module),i=t.klass;return function(e,o){var a=r(e,"Asciidoctor"),s=[a].concat(o);(function(e,n,r){var o,a=i(e,n,"Document");[a].concat(r);t.def(a,"$fill_datetime_attributes",o=function(e,n){var r,i,o=t.truthy,a=t.falsy,s=t.nil,l=function(t,e){return 0===e?t.getUTCFullYear():t.getFullYear()},c=function(t,e){return 0===e?t.getUTCMonth():t.getMonth()},u=function(t,e){return 0===e?t.getUTCDate():t.getDate()},d=function(t,e){return 0===e?t.getUTCHours():t.getHours()},f=new Date;if(t.const_get_qualified("::","ENV")["$key?"]("SOURCE_DATE_EPOCH")?(f.setTime(1e3*parseInt(t.const_get_qualified("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))),i=f,r=0):r=-f.getTimezoneOffset()/60,o(localdate=e["$[]"]("localdate")))a(localyear=e["$[]"]("localyear"))&&(localyear=4===localdate.indexOf("-")?localdate.substring(0,4):s,e["$[]="]("localyear",localyear));else{var h=l(f,r).toString(),p=("0"+(c(f,r)+1)).slice(-2),$=("0"+u(f,r)).slice(-2);localdate=h+"-"+p+"-"+$,e["$[]="]("localdate",localdate),localyear=h,e["$[]="]("localyear",h)}if(a(localtime=e["$[]"]("localtime"))){var m,g=("0"+d(f,r)).slice(-2),v=("0"+f.getMinutes()).slice(-2),y=("0"+f.getSeconds()).slice(-2);m=0===r?"UTC":r>0?("+0"+100*r).slice(-5):("-0"+100*-r).slice(-5),localtime=g+":"+v+":"+y+" "+m,e["$[]="]("localtime",localtime)}if(a(localdatetime=e["$[]"]("localdatetime"))&&(localdatetime=localdate+" "+localtime,e["$[]="]("localdatetime",localdatetime)),o(i)?n=i:o(n)?r=-n.getTimezoneOffset()/60:n=f,o(docdate=e["$[]"]("docdate")))e["$[]="]("docyear",4===docdate.indexOf("-")?docdate.substring(0,4):s);else{var _=l(n,r).toString(),b=("0"+(c(n,r)+1)).slice(-2),w=("0"+u(n,r)).slice(-2);docdate=_+"-"+b+"-"+w,e["$[]="]("docdate",docdate),a(e["$[]"]("docyear"))&&e["$[]="]("docyear",_)}if(a(doctime=e["$[]"]("doctime"))){var x=("0"+d(n,r)).slice(-2),k=("0"+n.getMinutes()).slice(-2),S=("0"+n.getSeconds()).slice(-2);m=0===r?"UTC":r>0?("+0"+100*r).slice(-5):("-0"+100*-r).slice(-5),doctime=x+":"+k+":"+S+" "+m,e["$[]="]("doctime",doctime)}return a(e["$[]"]("docdatetime"))&&e["$[]="]("docdatetime",docdate+" "+doctime),s},o.$$arity=2)})(s[0],n(s,"AbstractBlock"),s)}(e[0],e)},Opal.modules["asciidoctor/js/asciidoctor_ext/substitutors"]=function(t){t.top;var e=[],n=(t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.module);return function(e,r){var i=n(e,"Asciidoctor"),o=[i].concat(r);(function(e,r){var i,o=n(e,"Substitutors");[o].concat(r);t.def(o,"$sub_placeholder",i=function(t,e){return t.replace("%s",e)},i.$$arity=2)})(o[0],o)}(e[0],e)},Opal.modules["asciidoctor/js/asciidoctor_ext/parser"]=function(t){t.top;var e=[],n=(t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice,t.module),r=t.klass,i=t.truthy;return function(e,o){var a=n(e,"Asciidoctor"),s=[a].concat(o);(function(e,n,o){var a,s,l=r(e,n,"Parser");[l].concat(o);i(String.prototype.repeat)?t.defs(l,"$uniform?",a=function(t,e,n){return e.repeat(n)===t},a.$$arity=3):t.defs(l,"$uniform?",s=function(t,e,n){return Array.apply(null,{length:n}).map((function(){return e})).join("")===t},s.$$arity=3)})(s[0],null,s)}(e[0],e)},Opal.modules["asciidoctor/js/asciidoctor_ext/syntax_highlighter"]=function(t){t.top;var e=[],n=t.nil,r=(t.const_get_qualified,t.const_get_relative),i=(t.breaker,t.slice,t.module),o=t.truthy;return t.add_stubs(["$key?","$registry","$[]","$include?","$include","$empty?","$debug","$logger","$join","$keys"]),function(e,a){var s=i(e,"Asciidoctor"),l=[s].concat(a);(function(e,a){var s=i(e,"SyntaxHighlighter"),l=[s].concat(a);(function(e,a){var s,l=i(e,"Factory"),c=[l].concat(a);t.def(l,"$for",s=function(t){var e=this;return o(e.$registry()["$key?"](t))?e.$registry()["$[]"](t):(o(e["$include?"](r(c,"Logging")))||e.$include(r(c,"Logging")),o(e.$registry()["$empty?"]())?e.$logger().$debug("no syntax highlighter available, functionality disabled."):e.$logger().$debug("syntax highlighter named '"+t+"' is not available, must be one of: '"+e.$registry().$keys().$join("', '")+"'."),n)},s.$$arity=1)})(l[0],l)})(l[0],l)}(e[0],e)},Opal.modules["asciidoctor/js/asciidoctor_ext"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;t.add_stubs(["$require"]),e.$require("asciidoctor/js/asciidoctor_ext/stylesheet"),e.$require("asciidoctor/js/asciidoctor_ext/document"),e.$require("asciidoctor/js/asciidoctor_ext/substitutors"),e.$require("asciidoctor/js/asciidoctor_ext/parser"),e.$require("asciidoctor/js/asciidoctor_ext/syntax_highlighter"),e.$require("asciidoctor/js/asciidoctor_ext/browser")},Opal.modules["asciidoctor/js/opal_ext/logger"]=function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t<e:t["$<"](e)}t.top;var n=[],r=t.nil,i=(t.const_get_qualified,t.const_get_relative),o=(t.breaker,t.slice,t.klass),a=t.truthy;return t.add_stubs(["$chr","$rjust","$message_as_string","$<","$write","$call","$[]"]),function(n,s,l){var c,u=o(n,s,"Logger"),d=[u].concat(l);return u.$$prototype.level=u.$$prototype.progname=u.$$prototype.pipe=u.$$prototype.formatter=r,function(e,n,i){var a,s=o(e,n,"Formatter");[s].concat(i);t.def(s,"$call",a=function(t,e,n,i){var o=this,a=r;return a=e.getFullYear()+"-"+("0"+(e.getMonth()+1)).slice(-2)+"-"+("0"+e.getDate()).slice(-2)+"T"+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+"."+("00"+1e3*(new Date).getMilliseconds()).slice(-6),t.$chr()+", ["+a+"] "+t.$rjust(5)+" -- "+n+": "+o.$message_as_string(i)},a.$$arity=4)}(d[0],null,d),t.def(u,"$add",c=function(n,o,s){var l,u=c.$$p,f=u||r,h=this;return u&&(c.$$p=null),u&&(c.$$p=null),null==o&&(o=r),null==s&&(s=r),a(e(n=a(l=n)?l:i(d,"UNKNOWN"),h.level))||(s=a(l=s)?l:h.progname,a(o)||(f!==r?o=t.yieldX(f,[]):(o=s,s=h.progname)),h.pipe.$write(h.formatter.$call(a(l=i(d,"SEVERITY_LABELS")["$[]"](n))?l:"ANY",new Date,s,o))),!0},c.$$arity=-2),r&&"add"}(n[0],null,n)},Opal.modules["asciidoctor/js/postscript"]=function(t){var e=t.top;t.nil,t.const_get_qualified,t.const_get_relative,t.breaker,t.slice;return t.add_stubs(["$require"]),e.$require("asciidoctor/converter/composite"),e.$require("asciidoctor/converter/html5"),e.$require("asciidoctor/extensions"),e.$require("asciidoctor/js/asciidoctor_ext"),e.$require("asciidoctor/js/opal_ext/logger")},function(t){function e(t,e){return"number"===typeof t&&"number"===typeof e?t-e:t["$-"](e)}var n=t.top,r=[],i=t.nil,o=t.const_get_qualified,a=t.const_get_relative,s=(t.breaker,t.slice,t.module),l=t.send,c=t.hash2,u=t.truthy;t.add_stubs(["$require","$==","$tap","$each","$constants","$const_get","$downcase","$to_s","$[]=","$-","$upcase","$[]","$values","$new","$attr_reader","$instance_variable_set","$send","$singleton_class","$<<","$define","$dirname","$absolute_path","$__dir__","$join","$home","$pwd","$to_set","$chr","$each_key","$slice","$length","$merge","$default=","$drop","$insert"]),n.$require("set"),a(r,"RUBY_ENGINE")["$=="]("opal")&&n.$require("asciidoctor/js"),function(n,r){var d,f,h,p,$,m=s(n,"Asciidoctor"),g=[m].concat(r),v=i;t.const_set(g[0],"RUBY_ENGINE_OPAL",t.const_set(g[0],"RUBY_ENGINE",o("::","RUBY_ENGINE"))["$=="]("opal")),function(n,r){var o,a,u,d,f=s(n,"SafeMode"),h=[f].concat(r);t.const_set(h[0],"UNSAFE",0),t.const_set(h[0],"SAFE",1),t.const_set(h[0],"SERVER",10),t.const_set(h[0],"SECURE",20),f.names_by_value=l(c([],{}),"tap",[],(o=function(n){var r,a=o.$$s||this;return null==n&&(n=i),l(a.$constants(!1),"each",[],(r=function(o){var a=r.$$s||this,s=i;return null==o&&(o=i),s=[a.$const_get(o,!1),o.$to_s().$downcase()],l(n,"[]=",t.to_a(s)),s[e(s["length"],1)]},r.$$s=a,r.$$arity=1,r))},o.$$s=f,o.$$arity=1,o)),t.defs(f,"$value_for_name",a=function(t){var e=this;return e.$const_get(t.$upcase(),!1)},a.$$arity=1),t.defs(f,"$name_for_value",u=function(t){var e=this;return null==e.names_by_value&&(e.names_by_value=i),e.names_by_value["$[]"](t)},u.$$arity=1),t.defs(f,"$names",d=function(){var t=this;return null==t.names_by_value&&(t.names_by_value=i),t.names_by_value.$values()},d.$$arity=0)}(g[0],g),function(e,n){var r=s(e,"Compliance"),a=[r].concat(n);r.keys=o("::","Set").$new(),function(e,n){var r;[e].concat(n);e.$attr_reader("keys"),t.def(e,"$define",r=function(t,e){var n=this;return null==n.keys&&(n.keys=i),n.$instance_variable_set("@"+t,e),n.$singleton_class().$send("attr_accessor",t),n.keys["$<<"](t),i},r.$$arity=2)}(t.get_singleton_class(r),a),r.$define("block_terminates_paragraph",!0),r.$define("strict_verbatim_paragraphs",!0),r.$define("underline_style_section_titles",!0),r.$define("unwrap_standalone_preamble",!0),r.$define("attribute_missing","skip"),r.$define("attribute_undefined","drop-line"),r.$define("shorthand_property_syntax",!0),r.$define("natural_xrefs",!0),r.$define("unique_id_start_index",2),r.$define("markdown_syntax",!0)}(g[0],g),u(a(g,"ROOT_DIR","skip_raise")?"constant":i)||t.const_set(g[0],"ROOT_DIR",o("::","File").$dirname(o("::","File").$absolute_path(m.$__dir__()))),t.const_set(g[0],"LIB_DIR",o("::","File").$join(a(g,"ROOT_DIR"),"lib")),t.const_set(g[0],"DATA_DIR",o("::","File").$join(a(g,"ROOT_DIR"),"data")),t.const_set(g[0],"USER_HOME",function(){try{return o("::","Dir").$home()}catch(e){if(!t.rescue(e,[a(g,"StandardError")]))throw e;try{return u(d=o("::","ENV")["$[]"]("HOME"))?d:o("::","Dir").$pwd()}finally{t.pop_exception()}}}()),t.const_set(g[0],"LF","\n"),t.const_set(g[0],"NULL","\0"),t.const_set(g[0],"TAB","\t"),t.const_set(g[0],"MAX_INT",9007199254740991),t.const_set(g[0],"UTF_8",o(o("::","Encoding"),"UTF_8")),t.const_set(g[0],"BOM_BYTES_UTF_8",[239,187,191]),t.const_set(g[0],"BOM_BYTES_UTF_16LE",[255,254]),t.const_set(g[0],"BOM_BYTES_UTF_16BE",[254,255]),t.const_set(g[0],"FILE_READ_MODE",function(){return u(a(g,"RUBY_ENGINE_OPAL"))?"r":"rb:utf-8:utf-8"}()),t.const_set(g[0],"URI_READ_MODE",a(g,"FILE_READ_MODE")),t.const_set(g[0],"FILE_WRITE_MODE",function(){return u(a(g,"RUBY_ENGINE_OPAL"))?"w":"w:utf-8"}()),t.const_set(g[0],"DEFAULT_DOCTYPE","article"),t.const_set(g[0],"DEFAULT_BACKEND","html5"),t.const_set(g[0],"DEFAULT_STYLESHEET_KEYS",["","DEFAULT"].$to_set()),t.const_set(g[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),t.const_set(g[0],"BACKEND_ALIASES",c(["html","docbook"],{html:"html5",docbook:"docbook5"})),t.const_set(g[0],"DEFAULT_PAGE_WIDTHS",c(["docbook"],{docbook:425})),t.const_set(g[0],"DEFAULT_EXTENSIONS",c(["html","docbook","pdf","epub","manpage","asciidoc"],{html:".html",docbook:".xml",pdf:".pdf",epub:".epub",manpage:".man",asciidoc:".adoc"})),t.const_set(g[0],"ASCIIDOC_EXTENSIONS",c([".adoc",".asciidoc",".asc",".ad",".txt"],{".adoc":!0,".asciidoc":!0,".asc":!0,".ad":!0,".txt":!0})),t.const_set(g[0],"SETEXT_SECTION_LEVELS",c(["=","-","~","^","+"],{"=":0,"-":1,"~":2,"^":3,"+":4})),t.const_set(g[0],"ADMONITION_STYLES",["NOTE","TIP","IMPORTANT","WARNING","CAUTION"].$to_set()),t.const_set(g[0],"ADMONITION_STYLE_HEADS",l(o("::","Set").$new(),"tap",[],(f=function(t){var e,n=f.$$s||this;return null==t&&(t=i),l(a(g,"ADMONITION_STYLES"),"each",[],(e=function(n){e.$$s;return null==n&&(n=i),t["$<<"](n.$chr())},e.$$s=n,e.$$arity=1,e))},f.$$s=m,f.$$arity=1,f))),t.const_set(g[0],"PARAGRAPH_STYLES",["comment","example","literal","listing","normal","open","pass","quote","sidebar","source","verse","abstract","partintro"].$to_set()),t.const_set(g[0],"VERBATIM_STYLES",["literal","listing","source","verse"].$to_set()),t.const_set(g[0],"DELIMITED_BLOCKS",c(["--","----","....","====","****","____","++++","|===",",===",":===","!===","////","```"],{"--":["open",["comment","example","literal","listing","pass","quote","sidebar","source","verse","admonition","abstract","partintro"].$to_set()],"----":["listing",["literal","source"].$to_set()],"....":["literal",["listing","source"].$to_set()],"====":["example",["admonition"].$to_set()],"****":["sidebar",o("::","Set").$new()],____:["quote",["verse"].$to_set()],"++++":["pass",["stem","latexmath","asciimath"].$to_set()],"|===":["table",o("::","Set").$new()],",===":["table",o("::","Set").$new()],":===":["table",o("::","Set").$new()],"!===":["table",o("::","Set").$new()],"////":["comment",o("::","Set").$new()],"```":["fenced_code",o("::","Set").$new()]})),t.const_set(g[0],"DELIMITED_BLOCK_HEADS",l(c([],{}),"tap",[],(h=function(n){var r,o=h.$$s||this;return null==n&&(n=i),l(a(g,"DELIMITED_BLOCKS"),"each_key",[],(r=function(o){r.$$s;var a=i;return null==o&&(o=i),a=[o.$slice(0,2),!0],l(n,"[]=",t.to_a(a)),a[e(a["length"],1)]},r.$$s=o,r.$$arity=1,r))},h.$$s=m,h.$$arity=1,h))),t.const_set(g[0],"DELIMITED_BLOCK_TAILS",l(c([],{}),"tap",[],(p=function(n){var r,o=p.$$s||this;return null==n&&(n=i),l(a(g,"DELIMITED_BLOCKS"),"each_key",[],(r=function(o){r.$$s;var a=i;return null==o&&(o=i),o.$length()["$=="](4)?(a=[o,o["$[]"](e(o.$length(),1))],l(n,"[]=",t.to_a(a)),a[e(a["length"],1)]):i},r.$$s=o,r.$$arity=1,r))},p.$$s=m,p.$$arity=1,p))),t.const_set(g[0],"CAPTION_ATTR_NAMES",c(["example","figure","listing","table"],{example:"example-caption",figure:"figure-caption",listing:"listing-caption",table:"table-caption"})),t.const_set(g[0],"LAYOUT_BREAK_CHARS",c(["'","<"],{"'":"thematic_break","<":"page_break"})),t.const_set(g[0],"MARKDOWN_THEMATIC_BREAK_CHARS",c(["-","*","_"],{"-":"thematic_break","*":"thematic_break",_:"thematic_break"})),t.const_set(g[0],"HYBRID_LAYOUT_BREAK_CHARS",a(g,"LAYOUT_BREAK_CHARS").$merge(a(g,"MARKDOWN_THEMATIC_BREAK_CHARS"))),t.const_set(g[0],"NESTABLE_LIST_CONTEXTS",["ulist","olist","dlist"]),t.const_set(g[0],"ORDERED_LIST_STYLES",["arabic","loweralpha","lowerroman","upperalpha","upperroman"]),t.const_set(g[0],"ORDERED_LIST_KEYWORDS",c(["loweralpha","lowerroman","upperalpha","upperroman"],{loweralpha:"a",lowerroman:"i",upperalpha:"A",upperroman:"I"})),t.const_set(g[0],"ATTR_REF_HEAD","{"),t.const_set(g[0],"LIST_CONTINUATION","+"),t.const_set(g[0],"HARD_LINE_BREAK"," +"),t.const_set(g[0],"LINE_CONTINUATION"," \\"),t.const_set(g[0],"LINE_CONTINUATION_LEGACY"," +"),t.const_set(g[0],"BLOCK_MATH_DELIMITERS",c(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\[","\\]"]})),t.const_set(g[0],"INLINE_MATH_DELIMITERS",c(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),v=["asciimath"],l(t.const_set(g[0],"STEM_TYPE_ALIASES",c(["latexmath","latex","tex"],{latexmath:"latexmath",latex:"latexmath",tex:"latexmath"})),"default=",t.to_a(v)),v[e(v["length"],1)],t.const_set(g[0],"FONT_AWESOME_VERSION","4.7.0"),t.const_set(g[0],"HIGHLIGHT_JS_VERSION","9.15.6"),t.const_set(g[0],"MATHJAX_VERSION","2.7.5"),t.const_set(g[0],"FLEXIBLE_ATTRIBUTES",["sectnums"]),t.const_set(g[0],"INTRINSIC_ATTRIBUTES",c(["startsb","endsb","vbar","caret","asterisk","tilde","plus","backslash","backtick","blank","empty","sp","two-colons","two-semicolons","nbsp","deg","zwsp","quot","apos","lsquo","rsquo","ldquo","rdquo","wj","brvbar","pp","cpp","amp","lt","gt"],{startsb:"[",endsb:"]",vbar:"|",caret:"^",asterisk:"*",tilde:"~",plus:"&#43;",backslash:"\\",backtick:"`",blank:"",empty:"",sp:" ","two-colons":"::","two-semicolons":";;",nbsp:"&#160;",deg:"&#176;",zwsp:"&#8203;",quot:"&#34;",apos:"&#39;",lsquo:"&#8216;",rsquo:"&#8217;",ldquo:"&#8220;",rdquo:"&#8221;",wj:"&#8288;",brvbar:"&#166;",pp:"&#43;&#43;",cpp:"C&#43;&#43;",amp:"&",lt:"<",gt:">"})),a(g,"RUBY_ENGINE")["$=="]("opal"),t.const_set(g[0],"QUOTE_SUBS",l(c([],{}),"tap",[],($=function(n){$.$$s;var r=i,o=i;return null==n&&(n=i),v=[!1,r=[["strong","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?\\*\\*("+a(g,"CC_ALL")+"+?)\\*\\*","m")],["strong","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?\\*(\\S|\\S"+a(g,"CC_ALL")+"*?\\S)\\*(?!"+a(g,"CG_WORD")+")","m")],["double","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+';:}])(?:\\[([^\\]]+)\\])?"`(\\S|\\S'+a(g,"CC_ALL")+'*?\\S)`"(?!'+a(g,"CG_WORD")+")","m")],["single","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+";:`}])(?:\\[([^\\]]+)\\])?'`(\\S|\\S"+a(g,"CC_ALL")+"*?\\S)`'(?!"+a(g,"CG_WORD")+")","m")],["monospaced","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?``("+a(g,"CC_ALL")+"+?)``","m")],["monospaced","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+";:\"'`}])(?:\\[([^\\]]+)\\])?`(\\S|\\S"+a(g,"CC_ALL")+"*?\\S)`(?!["+a(g,"CC_WORD")+"\"'`])","m")],["emphasis","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?__("+a(g,"CC_ALL")+"+?)__","m")],["emphasis","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?_(\\S|\\S"+a(g,"CC_ALL")+"*?\\S)_(?!"+a(g,"CG_WORD")+")","m")],["mark","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?##("+a(g,"CC_ALL")+"+?)##","m")],["mark","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+"&;:}])(?:\\[([^\\]]+)\\])?#(\\S|\\S"+a(g,"CC_ALL")+"*?\\S)#(?!"+a(g,"CG_WORD")+")","m")],["superscript","unconstrained",/\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],["subscript","unconstrained",/\\?(?:\[([^\]]+)\])?~(\S+?)~/]]],l(n,"[]=",t.to_a(v)),v[e(v["length"],1)],v=[!0,o=r.$drop(0)],l(n,"[]=",t.to_a(v)),v[e(v["length"],1)],v=[2,["double","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?``(\\S|\\S"+a(g,"CC_ALL")+"*?\\S)''(?!"+a(g,"CG_WORD")+")","m")]],l(o,"[]=",t.to_a(v)),v[e(v["length"],1)],v=[3,["single","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?`(\\S|\\S"+a(g,"CC_ALL")+"*?\\S)'(?!"+a(g,"CG_WORD")+")","m")]],l(o,"[]=",t.to_a(v)),v[e(v["length"],1)],v=[4,["monospaced","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?\\+\\+("+a(g,"CC_ALL")+"+?)\\+\\+","m")]],l(o,"[]=",t.to_a(v)),v[e(v["length"],1)],v=[5,["monospaced","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?\\+(\\S|\\S"+a(g,"CC_ALL")+"*?\\S)\\+(?!"+a(g,"CG_WORD")+")","m")]],l(o,"[]=",t.to_a(v)),v[e(v["length"],1)],o.$insert(3,["emphasis","constrained",new RegExp("(^|[^"+a(g,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?'(\\S|\\S"+a(g,"CC_ALL")+"*?\\S)'(?!"+a(g,"CG_WORD")+")","m")])},$.$$s=m,$.$$arity=1,$))),t.const_set(g[0],"REPLACEMENTS",[[/\\?\(C\)/,"&#169;","none"],[/\\?\(R\)/,"&#174;","none"],[/\\?\(TM\)/,"&#8482;","none"],[/(?: |\n|^|\\)--(?: |\n|$)/,"&#8201;&#8212;&#8201;","none"],[new RegExp("("+a(g,"CG_WORD")+")\\\\?--(?="+a(g,"CG_WORD")+")"),"&#8212;&#8203;","leading"],[/\\?\.\.\./,"&#8230;&#8203;","none"],[/\\?`'/,"&#8217;","none"],[new RegExp("("+a(g,"CG_ALNUM")+")\\\\?'(?="+a(g,"CG_ALPHA")+")"),"&#8217;","leading"],[/\\?-&gt;/,"&#8594;","none"],[/\\?=&gt;/,"&#8658;","none"],[/\\?&lt;-/,"&#8592;","none"],[/\\?&lt;=/,"&#8656;","none"],[/\\?(&)amp;((?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d\d\d{0,4}|#x[\da-fA-F][\da-fA-F][\da-fA-F]{0,3});)/,"","bounding"]]),a(g,"RUBY_ENGINE")["$=="]("opal"),a(g,"RUBY_ENGINE")["$=="]("opal")}(r[0],r),n.$require("asciidoctor.rb/../asciidoctor/core_ext"),n.$require("asciidoctor.rb/../asciidoctor/helpers"),n.$require("asciidoctor.rb/../asciidoctor/logging"),n.$require("asciidoctor.rb/../asciidoctor/rx"),n.$require("asciidoctor.rb/../asciidoctor/substitutors"),n.$require("asciidoctor.rb/../asciidoctor/version"),n.$require("asciidoctor.rb/../asciidoctor/abstract_node"),n.$require("asciidoctor.rb/../asciidoctor/abstract_block"),n.$require("asciidoctor.rb/../asciidoctor/attribute_list"),n.$require("asciidoctor.rb/../asciidoctor/block"),n.$require("asciidoctor.rb/../asciidoctor/callouts"),n.$require("asciidoctor.rb/../asciidoctor/converter"),n.$require("asciidoctor.rb/../asciidoctor/document"),n.$require("asciidoctor.rb/../asciidoctor/inline"),n.$require("asciidoctor.rb/../asciidoctor/list"),n.$require("asciidoctor.rb/../asciidoctor/parser"),n.$require("asciidoctor.rb/../asciidoctor/path_resolver"),n.$require("asciidoctor.rb/../asciidoctor/reader"),n.$require("asciidoctor.rb/../asciidoctor/section"),n.$require("asciidoctor.rb/../asciidoctor/stylesheets"),n.$require("asciidoctor.rb/../asciidoctor/table"),n.$require("asciidoctor.rb/../asciidoctor/writer"),n.$require("asciidoctor.rb/../asciidoctor/load"),n.$require("asciidoctor.rb/../asciidoctor/convert"),a(r,"RUBY_ENGINE")["$=="]("opal")&&(n.$require("asciidoctor.rb/../asciidoctor/syntax_highlighter"),n.$require("asciidoctor.rb/../asciidoctor/timings"),n.$require("asciidoctor/js/postscript"))}(Opal);var e=function(t){return t&&!t.$$is_hash?Opal.hash2(Object.keys(t),t):t},n=function(t){var e={};if(t){var n=t.$$smap;for(var r in n){var i=n[r];e[r]=i===Opal.nil?void 0:i}}return e},r=function(t){var e={};if(t){var n=t.$$keys;for(var r in n){var i=n[r].value;e[r.toString()]=i===Opal.nil?void 0:i}}return e},i=function(t){if(t=e(t),t){var n=t["$[]"]("attributes");n&&"object"===typeof n&&"Object"===n.constructor.name&&(t=t.$dup(),t["$[]="]("attributes",e(n)))}return t};function o(t,r,i,o,a){var s,l,c,u,d=Opal.klass(Opal.Object,t,r,(function(){})),f={};for(var h in i)Object.prototype.hasOwnProperty.call(i,h)&&function(t){var e=i[t];"postConstruct"===t?s=e:"initialize"===t?l=e:"constructor"===t?c=e:(o&&Object.prototype.hasOwnProperty.call(o,t)&&(f[t]=!0),Opal.def(d,"$"+t,(function(){var n;return n=a&&Object.prototype.hasOwnProperty.call(a,t)?a[t](arguments):arguments,e.apply(this,n)})))}(h);if(u="function"===typeof c?function(){for(var t=Array.from(arguments),e=0;e<t.length;e++)"object"===typeof t[e]&&"$$smap"in t[e]&&(t[e]=n(t[e]));t.unshift(null);var r=new(Function.prototype.bind.apply(c,t));Object.assign(this,r),"function"===typeof s&&s.bind(this)()}:"function"===typeof l?function(){for(var t=Array.from(arguments),e=0;e<t.length;e++)"object"===typeof t[e]&&"$$smap"in t[e]&&(t[e]=n(t[e]));l.apply(this,t),"function"===typeof s&&s.bind(this)()}:function(){Opal.send(this,Opal.find_super_dispatcher(this,"initialize",u)),"function"===typeof s&&s.bind(this)()},Opal.def(d,"$initialize",u),Opal.def(d,"super",(function(t){if("function"===typeof t)Opal.send(this,Opal.find_super_dispatcher(this,t.name,t));else{for(var n=Array.from(arguments),r=0;r<n.length;r++)"object"===typeof n[r]&&(n[r]=e(n[r]));Opal.send(this,Opal.find_super_dispatcher(this,"initialize",u),n)}})),o)for(var p in o)Object.prototype.hasOwnProperty.call(o,p)&&!Object.prototype.hasOwnProperty.call(f,p)&&function(t){var e=o[t];Opal.def(d,"$"+t,(function(){return e.apply(this,arguments)}))}(p);return d}var a=Opal.Asciidoctor.$$class;a.prototype.getCoreVersion=function(){return this.$$const.VERSION},a.prototype.getRuntime=function(){return{ioModule:Opal.const_get_qualified("::","JAVASCRIPT_IO_MODULE"),platform:Opal.const_get_qualified("::","JAVASCRIPT_PLATFORM"),engine:Opal.const_get_qualified("::","JAVASCRIPT_ENGINE"),framework:Opal.const_get_qualified("::","JAVASCRIPT_FRAMEWORK")}},a.prototype.convert=function(t,e){"object"===typeof t&&"Buffer"===t.constructor.name&&(t=t.toString("utf8"));var n=this.$convert(t,i(e));return n===Opal.nil?"":n},a.prototype.convertFile=function(t,e){return this.$convert_file(t,i(e))},a.prototype.load=function(t,e){return"object"===typeof t&&"Buffer"===t.constructor.name&&(t=t.toString("utf8")),this.$load(t,i(e))},a.prototype.loadFile=function(t,e){return this.$load_file(t,i(e))};var s=Opal.Asciidoctor.AbstractBlock;s.prototype.append=function(t){return this.$append(t),this},s.prototype.getTitle=function(){var t=this.$title();return t===Opal.nil?void 0:t},s.prototype.setTitle=function(t){return this["$title="](t)},s.prototype.getCaptionedTitle=function(){return this.$captioned_title()},s.prototype.getStyle=function(){var t=this.style;return t===Opal.nil?void 0:t},s.prototype.setStyle=function(t){this.style=t},s.prototype.getSourceLocation=function(){var t=this.source_location;if(t!==Opal.nil)return t.getFile=function(){var t=this.file;return t===Opal.nil?void 0:t},t.getDirectory=function(){var t=this.dir;return t===Opal.nil?void 0:t},t.getPath=function(){var t=this.path;return t===Opal.nil?void 0:t},t.getLineNumber=function(){var t=this.lineno;return t===Opal.nil?void 0:t},t},s.prototype.getCaption=function(){var t=this.$caption();return t===Opal.nil?void 0:t},s.prototype.setCaption=function(t){this.caption=t},s.prototype.getLevel=function(){var t=this.level;return t===Opal.nil?void 0:t},s.prototype.getSubstitutions=function(){return this.subs},s.prototype.hasSubstitution=function(t){return this["$sub?"](t)},s.prototype.removeSubstitution=function(t){this.$remove_sub(t)},s.prototype.hasBlocks=function(){return this.blocks.length>0},s.prototype.getBlocks=function(){return this.blocks},s.prototype.getContent=function(){return this.$content()},s.prototype.convert=function(){return this.$convert()},s.prototype.findBy=function(t,n){return"undefined"===typeof n&&"function"===typeof t?Opal.send(this,"find_by",null,t):"function"===typeof n?Opal.send(this,"find_by",[e(t)],n):this.$find_by(e(t))},s.prototype.getLineNumber=function(){var t=this.$lineno();return t===Opal.nil?void 0:t},s.prototype.hasSections=function(){return this.next_section_index!==Opal.nil&&this.next_section_index>0},s.prototype.getSections=function(){return this.$sections()},s.prototype.getNumeral=function(){return this.$numeral()},s.prototype.setNumeral=function(t){this["$numeral="](t)},s.prototype.hasTitle=function(){return this["$title?"]()};var l=Opal.Asciidoctor.Section;l.create=function(t,n,r,i){return i&&i.attributes&&(i.attributes=e(i.attributes)),this.$new(t,n,r,e(i))},l.prototype.setLevel=function(t){this.level=t},l.prototype.getIndex=function(){return this.index},l.prototype.setIndex=function(t){this.index=t},l.prototype.getSectionName=function(){var t=this.sectname;return t===Opal.nil?void 0:t},l.prototype.setSectionName=function(t){this.sectname=t},l.prototype.isSpecial=function(){return this.special},l.prototype.setSpecial=function(t){this.special=t},l.prototype.isNumbered=function(){return this.numbered},l.prototype.getCaption=function(){var t=this.caption;return t===Opal.nil?void 0:t},l.prototype.getName=function(){return this.getTitle()};var c=Opal.Asciidoctor.Block;c.create=function(t,n,r){return r&&r.attributes&&(r.attributes=e(r.attributes)),this.$new(t,n,e(r))},c.prototype.getSource=function(){return this.$source()},c.prototype.getSourceLines=function(){return this.lines};var u=Opal.Asciidoctor.AbstractNode;u.prototype.applySubstitutions=function(t,e){return this.$apply_subs(t,e)},u.prototype.resolveSubstitutions=function(t,e,n,r){return"undefined"===typeof e&&(e="block"),"undefined"===typeof n&&(n=Opal.nil),"undefined"===typeof r&&(r=Opal.nil),this.$resolve_subs(t,e,n,r)},u.prototype.resolveBlockSubstitutions=function(t,e,n){return this.resolveSubstitutions(t,"block",e,n)},u.prototype.resolvePassSubstitutions=function(t){return this.resolveSubstitutions(t,"inline",void 0,"passthrough macro")},u.prototype.getNodeName=function(){return this.node_name},u.prototype.getAttributes=function(){return n(this.attributes)},u.prototype.getAttribute=function(t,e,n){var r=this.$attr(t,e,n);return r===Opal.nil?void 0:r},u.prototype.hasAttribute=function(t){return t in this.attributes.$$smap},u.prototype.isAttribute=function(t,e,n){var r=this["$attr?"](t,e,n);return r!==Opal.nil&&r},u.prototype.setAttribute=function(t,e,n){return"undefined"===typeof n&&(n=!0),this.$set_attr(t,e,n)},u.prototype.removeAttribute=function(t){var e=this.$remove_attr(t);return e===Opal.nil?void 0:e},u.prototype.getDocument=function(){return this.document},u.prototype.getParent=function(){var t=this.parent;return t===Opal.nil?void 0:t},u.prototype.isInline=function(){return this["$inline?"]()},u.prototype.isBlock=function(){return this["$block?"]()},u.prototype.isRole=function(t){return this["$role?"](t)},u.prototype.getRole=function(){return this.$role()},u.prototype.hasRole=function(t){return this["$has_role?"](t)},u.prototype.getRoles=function(){return this.$roles()},u.prototype.addRole=function(t){return this.$add_role(t)},u.prototype.removeRole=function(t){return this.$remove_role(t)},u.prototype.isReftext=function(){return this["$reftext?"]()},u.prototype.getReftext=function(){var t=this.$reftext();return t===Opal.nil?void 0:t},u.prototype.getContext=function(){var t=this.context;return"string"===typeof t?t:t.toString()},u.prototype.getId=function(){var t=this.id;return t===Opal.nil?void 0:t},u.prototype.setId=function(t){this.id=t},u.prototype.isOption=function(t){return this["$option?"](t)},u.prototype.setOption=function(t){return this.$set_option(t)},u.prototype.getIconUri=function(t){return this.$icon_uri(t)},u.prototype.getMediaUri=function(t,e){return this.$media_uri(t,e)},u.prototype.getImageUri=function(t,e){return this.$image_uri(t,e)},u.prototype.getConverter=function(){return this.$converter()},u.prototype.readContents=function(t,n){return this.$read_contents(t,e(n))},u.prototype.readAsset=function(t,n){var r=this.$read_asset(t,e(n));return r===Opal.nil?void 0:r},u.prototype.normalizeWebPath=function(t,e,n){return this.$normalize_web_path(t,e,n)},u.prototype.normalizeSystemPath=function(t,n,r,i){return this.$normalize_system_path(t,n,r,e(i))},u.prototype.normalizeAssetPath=function(t,e,n){return this.$normalize_asset_path(t,e,n)};var d=Opal.Asciidoctor.Document;d.prototype.getRefs=function(){return n(this.catalog.$$smap.refs)},d.prototype.getImages=function(){return this.catalog.$$smap.images},d.prototype.getLinks=function(){return this.catalog.$$smap.links},d.prototype.hasFootnotes=function(){return this["$footnotes?"]()},d.prototype.getFootnotes=function(){return this.$footnotes()},d.prototype.getHeader=function(){return this.header},d.prototype.setAttribute=function(t,e){return this.$set_attribute(t,e)},d.prototype.removeAttribute=function(t){this.attributes.$delete(t),this.attribute_overrides.$delete(t)},d.prototype.convert=function(t){var n=this.$convert(e(t));return n===Opal.nil?"":n},d.prototype.write=function(t,e){return this.$write(t,e)},d.prototype.getAuthor=function(){return this.$author()},d.prototype.getSource=function(){return this.$source()},d.prototype.getSourceLines=function(){return this.$source_lines()},d.prototype.isNested=function(){return this["$nested?"]()},d.prototype.isEmbedded=function(){return this["$embedded?"]()},d.prototype.hasExtensions=function(){return this["$extensions?"]()},d.prototype.getDoctype=function(){return this.doctype},d.prototype.getBackend=function(){return this.backend},d.prototype.isBasebackend=function(t){return this["$basebackend?"](t)},d.prototype.getTitle=function(){var t=this.$title();return t===Opal.nil?void 0:t},d.prototype.setTitle=function(t){return this["$title="](t)},d.prototype.getDocumentTitle=function(t){var n=this.$doctitle(e(t));return n===Opal.nil?void 0:n},d.prototype.getDoctitle=d.prototype.getDocumentTitle,d.prototype.getCatalog=function(){return n(this.catalog)},d.prototype.getReferences=d.prototype.getCatalog,d.prototype.getRevisionDate=function(){return this.getAttribute("revdate")},d.prototype.getRevdate=function(){return this.getRevisionDate()},d.prototype.getRevisionNumber=function(){return this.getAttribute("revnumber")},d.prototype.getRevisionRemark=function(){return this.getAttribute("revremark")},d.prototype.setHeaderAttribute=function(t,e,n){return"undefined"===typeof n&&(n=!0),"undefined"===typeof e&&(e=""),this.$set_header_attribute(t,e,n)},d.prototype.getAuthors=function(){return this.$authors()};var f=d.Footnote;f.prototype.getIndex=function(){var t=this.$$data.index;return t===Opal.nil?void 0:t},f.prototype.getId=function(){var t=this.$$data.id;return t===Opal.nil?void 0:t},f.prototype.getText=function(){var t=this.$$data.text;return t===Opal.nil?void 0:t};var h=d.ImageReference;h.prototype.getTarget=function(){return this.$$data.target},h.prototype.getImagesDirectory=function(){var t=this.$$data.imagesdir;return t===Opal.nil?void 0:t};var p=d.Author;p.prototype.getName=function(){var t=this.$$data.name;return t===Opal.nil?void 0:t},p.prototype.getFirstName=function(){var t=this.$$data.firstname;return t===Opal.nil?void 0:t},p.prototype.getMiddleName=function(){var t=this.$$data.middlename;return t===Opal.nil?void 0:t},p.prototype.getLastName=function(){var t=this.$$data.lastname;return t===Opal.nil?void 0:t},p.prototype.getInitials=function(){var t=this.$$data.initials;return t===Opal.nil?void 0:t},p.prototype.getEmail=function(){var t=this.$$data.email;return t===Opal.nil?void 0:t},d.RevisionInfo=function(t,e,n){this.date=t,this.number=e,this.remark=n};var $=d.RevisionInfo;$.prototype.getDate=function(){return this.date},$.prototype.getNumber=function(){return this.number},$.prototype.getRemark=function(){return this.remark},$.prototype.isEmpty=function(){return void 0===this.date&&void 0===this.number&&void 0===this.remark};var m=Opal.Asciidoctor.SafeMode;m.getValueForName=function(t){return this.$value_for_name(t)},m.getNameForValue=function(t){var e=this.$name_for_value(t);return e===Opal.nil?void 0:e},m.getNames=function(){return this.$names()};var g=Opal.Asciidoctor.Callouts;g.create=function(){return this.$new()},g.prototype.register=function(t){return this.$register(t)},g.prototype.readNextId=function(){return this.$read_next_id()},g.prototype.getCalloutIds=function(t){return this.$callout_ids(t)},g.prototype.getLists=function(){var t=this.lists;if(t&&t.length>0)for(var e=0;e<t.length;e++){var r=t[e];if(r&&r.length>0)for(var i=0;i<r.length;i++)"object"===typeof r[i]&&"$$smap"in r[i]&&(r[i]=n(r[i]))}return t},g.prototype.getListIndex=function(){return this.list_index},g.prototype.getCurrentList=function(){const t=this.$current_list();if(t&&t.length>0)for(var e=0;e<t.length;e++)"object"===typeof t[e]&&"$$smap"in t[e]&&(t[e]=n(t[e]));return t},g.prototype.nextList=function(){return this.$nextList()},g.prototype.rewind=function(){return this.$rewind()},d.prototype.getRevisionInfo=function(){return new d.RevisionInfo(this.getRevisionDate(),this.getRevisionNumber(),this.getRevisionRemark())},d.prototype.hasRevisionInfo=function(){var t=this.getRevisionInfo();return!t.isEmpty()},d.prototype.getNotitle=function(){return this.$notitle()},d.prototype.getNoheader=function(){return this.$noheader()},d.prototype.getNofooter=function(){return this.$nofooter()},d.prototype.hasHeader=function(){return this["$header?"]()},d.prototype.playbackAttributes=function(t){if(t=e(t),t){var n=t["$[]"]("attribute_entries");if(n&&Array.isArray(n)){for(var r=[],i=0;i<n.length;i++){var o=n[i];o&&"object"===typeof o&&"Object"===o.constructor.name&&(o.$name=function(){return this.name},o.$value=function(){return this.value},o.$negate=function(){return this.negate}),r.push(o)}t["$[]="]("attribute_entries",r)}}this.$playback_attributes(t)},d.prototype.deleteAttribute=function(t){return this.$delete_attribute(t)},d.prototype.isAttributeLocked=function(t){return this["$attribute_locked?"](t)},d.prototype.restoreAttributes=function(){return this.$restore_attributes()},d.prototype.parse=function(t){return this.$parse(t)},d.prototype.getDocinfo=function(t,e){return this.$docinfo(t,e)},d.prototype.hasDocinfoProcessors=function(t){return this["$docinfo_processors?"](t)},d.prototype.incrementAndStoreCounter=function(t,e){return this.$increment_and_store_counter(t,e)},d.prototype.counterIncrement=d.prototype.incrementAndStoreCounter,d.prototype.counter=function(t,e){return this.$counter(t,e)},d.prototype.getSafe=function(){return this.safe},d.prototype.getCompatMode=function(){return this.compat_mode},d.prototype.getSourcemap=function(){var t=this.sourcemap;return t!==Opal.nil&&t},d.prototype.setSourcemap=function(t){this.sourcemap=t},d.prototype.getCounters=function(){return n(this.counters)},d.prototype.getCallouts=function(){return this.$callouts()},d.prototype.getBaseDir=function(){return this.base_dir},d.prototype.getOptions=function(){return n(this.options)},d.prototype.getOutfilesuffix=function(){return this.outfilesuffix},d.prototype.getParentDocument=function(){var t=this.parent_document;return t===Opal.nil?void 0:t},d.prototype.getReader=function(){return this.reader},d.prototype.getConverter=function(){return this.converter},d.prototype.getExtensions=function(){var t=this.extensions;return t===Opal.nil?void 0:t};var v=d.Title;v.prototype.getMain=function(){return this.main},v.prototype.getCombined=function(){return this.combined},v.prototype.getSubtitle=function(){var t=this.subtitle;return t===Opal.nil?void 0:t},v.prototype.isSanitized=function(){var t=this["$sanitized?"]();return t!==Opal.nil&&t},v.prototype.hasSubtitle=function(){return this["$subtitle?"]()};var y=Opal.Asciidoctor.Inline;y.create=function(t,n,r,i){return this.$new(t,n,r,e(i))},y.prototype.convert=function(){return this.$convert()},y.prototype.getText=function(){var t=this.$text();return t===Opal.nil?void 0:t},y.prototype.getType=function(){return this.$type()},y.prototype.getTarget=function(){var t=this.$target();return t===Opal.nil?void 0:t};var _=Opal.Asciidoctor.List;_.prototype.hasItems=function(){return this["$items?"]()},_.prototype.getItems=function(){return this.blocks};var b=Opal.Asciidoctor.ListItem;b.prototype.getText=function(){return this.$text()},b.prototype.setText=function(t){return this["$text="](t)},b.prototype.hasText=function(){return this["$text?"]()},b.prototype.getMarker=function(){return this.marker},b.prototype.setMarker=function(t){this.marker=t},b.prototype.getList=function(){return this.$list()},b.prototype.getParent=b.prototype.getList;var w=Opal.Asciidoctor.Reader;w.prototype.pushInclude=function(t,n,r,i,o){return this.$push_include(t,n,r,i,e(o))},w.prototype.getCursor=function(){return this.$cursor()},w.prototype.getLines=function(){return this.$lines()},w.prototype.getString=function(){return this.$string()},w.prototype.hasMoreLines=function(){return this["$has_more_lines?"]()},w.prototype.isEmpty=function(){return this["$empty?"]()},w.prototype.peekLine=function(t){t=t||!1;var e=this.$peek_line(t);return e===Opal.nil?void 0:e},w.prototype.readLine=function(){var t=this.$read_line();return t===Opal.nil?void 0:t},w.prototype.readLines=function(){return this.$read_lines()},w.prototype.read=function(){return this.$read()},w.prototype.advance=function(){return this.$advance()};var x=Opal.Asciidoctor.Reader.Cursor;function k(t,e){var r=Opal.const_get_qualified(Opal.Logger,"Formatter");return o(r,t,e,{},{call:function(t){for(var e=0;e<t.length;e++)"object"===typeof t[e]&&"$$smap"in t[e]&&(t[e]=n(t[e]));return t}})}function S(t,e){var r=Opal.const_get_qualified(Opal.Asciidoctor,"Logger");return o(r,t,e,{},{add:function(t){if(t.length>=2&&"object"===typeof t[2]&&"$$smap"in t[2]){var e=t[2],r=n(e);r.getText=function(){return this.text},r.getSourceLocation=function(){return this.source_location},r.$inspect=function(){var t=this.getSourceLocation();return t?t.getPath()+": line "+t.getLineNumber()+": "+this.getText():this.getText()},t[2]=r}return t.length>=1&&(t[1]=t[1]===Opal.nil?void 0:t[1]),t}})}x.prototype.getFile=function(){var t=this.file;return t===Opal.nil?void 0:t},x.prototype.getDirectory=function(){var t=this.dir;return t===Opal.nil?void 0:t},x.prototype.getPath=function(){var t=this.path;return t===Opal.nil?void 0:t},x.prototype.getLineNumber=function(){return this.lineno};var O=Opal.const_get_qualified(Opal.Asciidoctor,"LoggerManager",!0);Opal.Asciidoctor.LoggerManager=O,O.getLogger=function(){return this.$logger()},O.setLogger=function(t){this.logger=t},O.newLogger=function(t,e){return S(t,e).$new()},O.newFormatter=function(t,e){return k(t,e).$new()};var C=Opal.const_get_qualified(Opal.Logger,"Severity",!0);Opal.Asciidoctor.LoggerSeverity=C,C.get=function(t){return C.$constants()[t]};var A=Opal.const_get_qualified(Opal.Logger,"Formatter",!0);Opal.Asciidoctor.LoggerFormatter=A,A.prototype.call=function(t,e,n,r){return this.$call(C.get(t),e,n,r)};var E=Opal.const_get_qualified(Opal.Asciidoctor,"MemoryLogger",!0);Opal.Asciidoctor.MemoryLogger=E,E.create=function(){return this.$new()},E.prototype.getMessages=function(){for(var t=this.messages,e=[],r=0;r<t.length;r++){var i=t[r],o=n(i);"string"===typeof o.message?o.getText=function(){return this.message}:(o.message=n(o.message),o.getText=function(){return this.message.text}),o.getSeverity=function(){return this.severity.toString()},o.getSourceLocation=function(){return this.message.source_location},e.push(o)}return e};var T=Opal.const_get_qualified(Opal.Asciidoctor,"Logging",!0);Opal.Asciidoctor.Logging=T,T.getLogger=function(){return O.$logger()},T.createLogMessage=function(t,n){return T.prototype.$message_with_context(t,e(n))},w.prototype.getLogger=T.getLogger,w.prototype.createLogMessage=T.createLogMessage,u.prototype.getLogger=T.getLogger,u.prototype.createLogMessage=T.createLogMessage;var P=Opal.const_get_qualified(Opal.Asciidoctor,"Logger",!0);Opal.Asciidoctor.Logger=P,P.prototype.getMaxSeverity=function(){var t=this.max_severity;return t===Opal.nil?void 0:t},P.prototype.getFormatter=function(){return this.formatter},P.prototype.setFormatter=function(t){this.formatter=t},P.prototype.getLevel=function(){return this.level},P.prototype.setLevel=function(t){this.level=t},P.prototype.getProgramName=function(){return this.progname},P.prototype.setProgramName=function(t){this.progname=t};var B=Opal.const_get_qualified("::","Logger"),L=function(t,e,n){t["$"+e](n)};B.prototype.add=function(t,e,n){var r="string"===typeof t?C[t.toUpperCase()]:t;this.$add(r,e,n)},B.prototype.log=B.prototype.add,B.prototype.debug=function(t){L(this,"debug",t)},B.prototype.info=function(t){L(this,"info",t)},B.prototype.warn=function(t){L(this,"warn",t)},B.prototype.error=function(t){L(this,"error",t)},B.prototype.fatal=function(t){L(this,"fatal",t)},B.prototype.isDebugEnabled=function(){return this["$debug?"]()},B.prototype.isInfoEnabled=function(){return this["$info?"]()},B.prototype.isWarnEnabled=function(){return this["$warn?"]()},B.prototype.isErrorEnabled=function(){return this["$error?"]()},B.prototype.isFatalEnabled=function(){return this["$fatal?"]()};var I=Opal.const_get_qualified(Opal.Asciidoctor,"NullLogger",!0);Opal.Asciidoctor.NullLogger=I,I.create=function(){return this.$new()},I.prototype.getMaxSeverity=function(){return this.max_severity},Opal.Asciidoctor.StopIteration=Opal.StopIteration;var D=Opal.const_get_qualified(Opal.Asciidoctor,"Timings",!0);Opal.Asciidoctor.Timings=D,D.create=function(){return this.$new()},D.prototype.printReport=function(t,e){var n;if(t)if("function"===typeof t.$add)n=function(e){t.$add(1,e)};else if("function"===typeof t.log)n=t.log;else{if("function"!==typeof t.write)throw new Error("The output should be a Stream (with a write function), an object with a log function or a Ruby Logger (with a add function)");n=function(e){t.write(e,"utf-8")}}else n=function(t){Opal.gvars.stdout.$write(t)};e&&n("Input file: "+e),n(" Time to read and parse source: "+this.$read_parse().toFixed(2)),n(" Time to convert document: "+this.$convert().toFixed(2)),n(" Total time (read, parse and convert): "+this.$read_parse_convert().toFixed(2))};var R=Opal.const_get_qualified(Opal.Asciidoctor,"SyntaxHighlighter",!0);Opal.Asciidoctor.SyntaxHighlighter=R,R.register=function(t,e){var i="string"===typeof t?t:t[0];if("function"===typeof e){var a=e,s=a.prototype,l=Object.getOwnPropertyNames(s);for(var c in e={},l){var u=l[c];e[u]=s[u]}}var d=o(j,i,e,{},{format:function(t){return t.length>=2&&"object"===typeof t[2]&&"$$smap"in t[2]&&(t[2]=n(t[2])),t.length>=1&&(t[1]=t[1]===Opal.nil?void 0:t[1]),t},highlight:function(t){if(t.length>=3&&"object"===typeof t[3]&&"$$smap"in t[3]){var e=t[3];for(var i in e=n(e),e){var o=e[i];if("callouts"===i){var a=r(o);for(var s in a)for(var l=a[s],c=0;c<l.length;c++)for(var u=l[c],d=0;d<u.length;d++)u[d]=u[d]===Opal.nil?void 0:u[d];e[i]=a}else e[i]=o===Opal.nil?void 0:o}t[3]=e}return t.length>=2&&(t[2]=t[2]===Opal.nil?void 0:t[2]),t}});for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&function(t){var n=e[t];"handlesHighlighting"===t?Opal.def(d,"$highlight?",(function(){return n.call()})):"hasDocinfo"===t&&Opal.def(d,"$docinfo?",(function(t){return n.apply(this,[t])}))}(f);return Opal.def(d,"$name",(function(){return i})),R.$register(d,t),d},R.get=function(t){var e=R.$for(t);return e===Opal.nil?void 0:e},R.for=R.get;var j=Opal.const_get_qualified(R,"Base",!0);Opal.Asciidoctor.SyntaxHighlighterBase=j,j.prototype.registerFor=function(t){R.$register(this,t)};var M=Opal.Asciidoctor.Table;M.create=function(t,n){return this.$new(t,e(n))},M.prototype.getCaption=function(){return this.caption},M.prototype.getRows=function(){return this.rows},M.prototype.getColumns=function(){return this.columns},M.prototype.getHeadRows=function(){return this.rows.head},M.prototype.hasHeadRows=function(){return this.rows!==Opal.nil&&this.rows.head.length>0},M.prototype.getBodyRows=function(){return this.rows.body},M.prototype.hasBodyRows=function(){return this.rows!==Opal.nil&&this.rows.body.length>0},M.prototype.getFootRows=function(){return this.rows.foot},M.prototype.hasFootRows=function(){return this.rows!==Opal.nil&&this.rows.foot.length>0},M.prototype.hasHeaderOption=function(){return this.has_header_option},M.prototype.hasFooterOption=function(){var t=this.getAttributes()["footer-option"];return""===t},M.prototype.hasAutowidthOption=function(){var t=this.getAttributes()["autowidth-option"];return""===t},M.prototype.getRowCount=function(){return this.getAttribute("rowcount")},M.prototype.setRowCount=function(t){this.setAttribute("rowcount",t)},M.prototype.getColumnCount=function(){return this.getAttribute("colcount")},M.prototype.setColumnCount=function(t){this.setAttribute("colcount",t)};var F=Opal.Asciidoctor.Table.Rows;F.create=function(t,e,n){return this.$new(t,e,n)},F.prototype.getHead=function(){return this.head},F.prototype.getFoot=function(){return this.foot},F.prototype.getBody=function(){return this.body},F.prototype.bySection=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]};var N=Opal.Asciidoctor.Table.Column;N.create=function(t,n,r){return this.$new(t,n,e(r))},N.prototype.getColumnNumber=function(){return this.getAttribute("colnumber")},N.prototype.getWidth=function(){return this.getAttribute("width")},N.prototype.getHorizontalAlign=function(){return this.getAttribute("halign")},N.prototype.getVerticalAlign=function(){return this.getAttribute("valign")},N.prototype.getStyle=function(){var t=this.style;return t===Opal.nil?void 0:t};var z=Opal.Asciidoctor.Table.Cell;z.create=function(t,n,r,i){return this.$new(t,n,e(r),e(i))},z.prototype.getColumnSpan=function(){var t=this.colspan;return t===Opal.nil?void 0:t},z.prototype.setColumnSpan=function(t){return this["$colspan="](t)},z.prototype.getRowSpan=function(){var t=this.rowspan;return t===Opal.nil?void 0:t},z.prototype.setRowSpan=function(t){return this["$rowspan="](t)},z.prototype.getContent=function(){return this.$content()},z.prototype.getText=function(){return this.$text()},z.prototype.getSource=function(){return this.$source()},z.prototype.getLines=function(){return this.$lines()},z.prototype.getLineNumber=function(){var t=this.$lineno();return t===Opal.nil?void 0:t},z.prototype.getFile=function(){var t=this.$file();return t===Opal.nil?void 0:t},z.prototype.getStyle=function(){var t=this.$style();return t===Opal.nil?void 0:t},z.prototype.getColumn=function(){var t=this.$column();return t===Opal.nil?void 0:t},z.prototype.getWidth=function(){return this.getAttribute("width")},z.prototype.getColumnPercentageWidth=function(){return this.getAttribute("colpcwidth")},z.prototype.getInnerDocument=function(){const t=this.inner_document;return t===Opal.nil?void 0:t};var H=Opal.Asciidoctor.Converter.TemplateConverter;if(H){Opal.Asciidoctor.TemplateConverter=H,H.create=function(t,n,r){r&&r.template_cache&&(r.template_cache=e(r.template_cache)),this.$new(t,n,e(r))},H.getCache=function(){var t=n(this.caches);if(t){if(t.scans)for(var e in t.scans=n(t.scans),t.scans)t.scans[e]=n(t.scans[e]);t.templates&&(t.templates=n(t.templates))}return t},H.clearCache=function(){this.$clear_caches()},H.prototype.convert=function(t,n,r){return this.$convert(t,n,e(r))},H.prototype.handles=function(t){return this["$handles?"](t)},H.prototype.getTemplates=function(){return n(this.$templates())},H.prototype.register=function(t,e){return this.$register(t,e)};var V={registry:{}};Opal.Asciidoctor.TemplateEngine=V,V.register=function(t,e){if("string"===typeof t)this.registry[t]=e;else for(var n=0;n<t.length;n++){var r=t[n];this.registry[r]=e}}}var U=function(t){return t.$$arity=t.length,t},q=function(t,e,n,r){return"object"===typeof n||n.$$is_class?t["$"+e](n,r):Opal.send(t,e,r&&[r],U(n))},W=Opal.const_get_qualified(Opal.Asciidoctor,"Extensions");Opal.Asciidoctor.Extensions=W,W.create=function(t,e){return"function"===typeof t&&"undefined"===typeof e?Opal.send(this,"create",null,U(t)):"function"===typeof e?Opal.send(this,"create",[t],U(e)):this.$create()},W.register=function(t,e){return"function"===typeof t&&"undefined"===typeof e?Opal.send(this,"register",null,U(t)):Opal.send(this,"register",[t],U(e))},W.getGroups=function(){return n(this.$groups())},W.unregisterAll=function(){this.$unregister_all()},W.unregister=function(){for(var t=Array.prototype.concat.apply([],arguments),e=this.$groups(),n={},r=0,i=e.$$keys;r<i.length;r++){var o=i[r];n[o.toString()]=o}for(var a=0;a<t.length;a++){var s=t[a];s in n&&Opal.hash_delete(e,n[s])}};var G=W.Registry;G.prototype.getGroups=W.getGroups,G.prototype.unregisterAll=function(){this.groups=Opal.hash()},G.prototype.unregister=W.unregister,G.prototype.prefer=function(t,e){return 1===arguments.length&&(e=t,t=null),"object"===typeof e||e.$$is_class?this.$prefer(t,e):Opal.send(this,"prefer",t&&[t],U(e))},G.prototype.block=function(t,e){return 1===arguments.length&&(e=t,t=null),q(this,"block",e,t)},G.prototype.inlineMacro=function(t,e){return 1===arguments.length&&(e=t,t=null),q(this,"inline_macro",e,t)},G.prototype.includeProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),q(this,"include_processor",e,t)},G.prototype.blockMacro=function(t,e){return 1===arguments.length&&(e=t,t=null),q(this,"block_macro",e,t)},G.prototype.treeProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),q(this,"tree_processor",e,t)},G.prototype.postprocessor=function(t,e){return 1===arguments.length&&(e=t,t=null),q(this,"postprocessor",e,t)},G.prototype.preprocessor=function(t,e){return 1===arguments.length&&(e=t,t=null),q(this,"preprocessor",e,t)},G.prototype.docinfoProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),q(this,"docinfo_processor",e,t)},G.prototype.hasPreprocessors=function(){return this["$preprocessors?"]()},G.prototype.hasTreeProcessors=function(){return this["$tree_processors?"]()},G.prototype.hasIncludeProcessors=function(){return this["$include_processors?"]()},G.prototype.hasPostprocessors=function(){return this["$postprocessors?"]()},G.prototype.hasDocinfoProcessors=function(t){return this["$docinfo_processors?"](t)},G.prototype.hasBlocks=function(){return this["$blocks?"]()},G.prototype.hasBlockMacros=function(){return this["$block_macros?"]()},G.prototype.hasInlineMacros=function(){return this["$inline_macros?"]()},G.prototype.getPreprocessors=function(){return this.$preprocessors()},G.prototype.getTreeProcessors=function(){return this.$tree_processors()},G.prototype.getIncludeProcessors=function(){return this.$include_processors()},G.prototype.getPostprocessors=function(){return this.$postprocessors()},G.prototype.getDocinfoProcessors=function(t){return this.$docinfo_processors(t)},G.prototype.getBlocks=function(){return this.block_extensions.$values()},G.prototype.getBlockMacros=function(){return this.block_macro_extensions.$values()},G.prototype.getInlineMacros=function(){return this.$inline_macros()},G.prototype.getInlineMacroFor=function(t){var e=this["$registered_for_inline_macro?"](t);return!1===e?void 0:e},G.prototype.getBlockFor=function(t,e){if("undefined"===typeof e){var n=this.$find_block_extension(t);return n===Opal.nil?void 0:n}var r=this["$registered_for_block?"](t,e);return!1===r?void 0:r},G.prototype.getBlockMacroFor=function(t){var e=this["$registered_for_block_macro?"](t);return!1===e?void 0:e};var Y=W.Processor;Y.prototype.prepend=function(){this.$option("position",">>")},Y.prototype.process=function(t){var e={apply:function(t,e,r){for(var i=0;i<r.length;i++)"object"===typeof r[i]&&"$$smap"in r[i]&&(r[i]=n(r[i]));return t.apply(e,r)}},r=new Proxy(t,e);return Opal.send(this,"process",null,U(r))},Y.prototype.named=function(t){return this.$named(t)},Y.prototype.createBlock=function(t,n,r,i,o){return this.$create_block(t,n,r,e(i),e(o))},Y.prototype.createList=function(t,n,r){return this.$create_list(t,n,e(r))},Y.prototype.createListItem=function(t,e){return this.$create_list_item(t,e)},Y.prototype.createImageBlock=function(t,n,r){return this.$create_image_block(t,e(n),e(r))},Y.prototype.createParagraph=function(t,n,r,i){return this.$create_paragraph(t,n,e(r),e(i))},Y.prototype.createOpenBlock=function(t,n,r,i){return this.$create_open_block(t,n,e(r),e(i))},Y.prototype.createExampleBlock=function(t,n,r,i){return this.$create_example_block(t,n,e(r),e(i))},Y.prototype.createPassBlock=function(t,n,r,i){return this.$create_pass_block(t,n,e(r),e(i))},Y.prototype.createListingBlock=function(t,n,r,i){return this.$create_listing_block(t,n,e(r),e(i))},Y.prototype.createLiteralBlock=function(t,n,r,i){return this.$create_literal_block(t,n,e(r),e(i))},Y.prototype.createAnchor=function(t,n,r){return r&&r.attributes&&(r.attributes=e(r.attributes)),this.$create_anchor(t,n,e(r))},Y.prototype.createInlinePass=function(t,n,r){return r&&r.attributes&&(r.attributes=e(r.attributes)),this.$create_inline_pass(t,n,e(r))},Y.prototype.createInline=function(t,n,r,i){return i&&i.attributes&&(i.attributes=e(i.attributes)),this.$create_inline(t,n,r,e(i))},Y.prototype.parseContent=function(t,e,n){return this.$parse_content(t,e,n)},Y.prototype.parseAttributes=function(t,r,i){return i&&i.attributes&&(i.attributes=e(i.attributes)),n(this.$parse_attributes(t,r,e(i)))},Y.prototype.positionalAttributes=function(t){return this.$positional_attrs(t)},Y.prototype.resolveAttributes=function(t){return"object"!==typeof t||Array.isArray(t)?arguments.length>1?this.$resolves_attributes(Array.prototype.slice.call(arguments)):"undefined"===typeof t?this.$resolves_attributes(Opal.nil):this.$resolves_attributes(t):this.$resolves_attributes(e(t))},Y.prototype.resolvesAttributes=Y.prototype.resolveAttributes,Y.prototype.getConfig=function(){return n(this.config)},Y.prototype.option=function(t,e){this.$option(t,e)};var K=W.BlockProcessor;K.prototype.defaultAttributes=function(t){this.$default_attributes(e(t))},K.prototype.onContext=function(t){return this.$on_context(t)},K.prototype.onContexts=function(t){return this.$on_contexts(Array.prototype.slice.call(arguments))},K.prototype.getName=function(){var t=this.name;return t===Opal.nil?void 0:t},K.prototype.parseContentAs=function(t){this.$parse_content_as(t)};var X=W.BlockMacroProcessor;X.prototype.defaultAttributes=function(t){this.$default_attributes(e(t))},X.prototype.getName=function(){var t=this.name;return t===Opal.nil?void 0:t},X.prototype.parseContentAs=function(t){this.$parse_content_as(t)};var Z=W.InlineMacroProcessor;Z.prototype.defaultAttributes=function(t){this.$default_attributes(e(t))},Z.prototype.getName=function(){var t=this.name;return t===Opal.nil?void 0:t},Z.prototype.parseContentAs=function(t){this.$parse_content_as(t)},Z.prototype.matchFormat=function(t){this.$match_format(t)},Z.prototype.match=function(t){this.$match(t)};var J=W.IncludeProcessor;J.prototype.handles=function(t){return Opal.send(this,"handles?",null,U(t))},J.prototype.prefer=function(){this.$prefer()};var Q=W.TreeProcessor;Q.prototype.prefer=function(){this.$prefer()};var tt=W.Postprocessor;tt.prototype.prefer=function(){this.$prefer()};var et=W.Preprocessor;et.prototype.prefer=function(){this.$prefer()};var nt=W.DocinfoProcessor;function rt(t,e,n){var r=Opal.const_get_qualified(W,t);return o(r,e,n,{"handles?":function(){return!0}})}nt.prototype.prefer=function(){this.$prefer()},nt.prototype.atLocation=function(t){this.$at_location(t)},W.createPostprocessor=function(t,e){return 1===arguments.length&&(e=t,t=null),rt("Postprocessor",t,e)},W.newPostprocessor=function(t,e){return 1===arguments.length&&(e=t,t=null),this.createPostprocessor(t,e).$new()},W.createPreprocessor=function(t,e){return 1===arguments.length&&(e=t,t=null),rt("Preprocessor",t,e)},W.newPreprocessor=function(t,e){return 1===arguments.length&&(e=t,t=null),this.createPreprocessor(t,e).$new()},W.createTreeProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),rt("TreeProcessor",t,e)},W.newTreeProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),this.createTreeProcessor(t,e).$new()},W.createIncludeProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),rt("IncludeProcessor",t,e)},W.newIncludeProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),this.createIncludeProcessor(t,e).$new()},W.createDocinfoProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),rt("DocinfoProcessor",t,e)},W.newDocinfoProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),this.createDocinfoProcessor(t,e).$new()},W.createBlockProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),rt("BlockProcessor",t,e)},W.newBlockProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),this.createBlockProcessor(t,e).$new()},W.createInlineMacroProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),rt("InlineMacroProcessor",t,e)},W.newInlineMacroProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),this.createInlineMacroProcessor(t,e).$new()},W.createBlockMacroProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),rt("BlockMacroProcessor",t,e)},W.newBlockMacroProcessor=function(t,e){return 1===arguments.length&&(e=t,t=null),this.createBlockMacroProcessor(t,e).$new()};var it=Opal.const_get_qualified(Opal.Asciidoctor,"Converter");Opal.Asciidoctor.Converter=it,it.prototype.convert=function(t,n,r){return this.$convert(t,n,e(r))},it.create=function(t,n){return this.$create(t,e(n))};var ot=Opal.Asciidoctor.Converter.Factory,at=Opal.Asciidoctor.Converter.Base;Opal.Asciidoctor.ConverterFactory=ot;var st=Opal.Asciidoctor.Converter.BackendTraits;Opal.Asciidoctor.ConverterBackendTraits=st,ot.register=function(t,n){var r,i=function(t){return Object.assign({},t.basebackend?{basebackend:t.basebackend}:{},t.outfilesuffix?{outfilesuffix:t.outfilesuffix}:{},t.filetype?{filetype:t.filetype}:{},t.htmlsyntax?{htmlsyntax:t.htmlsyntax}:{},t.supports_templates?{supports_templates:t.supports_templates}:{})},a=function(t,n){t.backend_traits?n.backend_traits=e(t.backend_traits):t.backendTraits?n.backend_traits=e(t.backendTraits):(t.basebackend||t.outfilesuffix||t.filetype||t.htmlsyntax||t.supports_templates)&&(n.backend_traits=e(i(t)))},s=function(t,e){c(t,e,"$handles?","handles",(function(){return!0}))},l=function(t,e){c(t,e,"$composed","composed")},c=function(t,e,n,r,i){"undefined"===typeof t[n]&&("function"===typeof t[r]?e[n]=t[r]:i&&(e[n]=i))},u=function(t){"function"!==typeof t["$respond_to?"]&&(t["$respond_to?"]=function(t){return"function"===typeof this[t]})};if("function"===typeof t)r=o(at,t.constructor.name,{initialize:function(e,n){var r=this,i=new t(e,n);Object.assign(this,i),a(i,r);for(var o=Object.getOwnPropertyNames(t.prototype),c=0;c<o.length;c++){var d=o[c];"constructor"!==d&&(r[d]=i[d])}"undefined"===typeof i.$convert&&"function"===typeof i.convert&&(r.$convert=i.convert),s(i,r),l(i,r),u(r),r.super(e,n)}}),r.$extend(st);else if("object"===typeof t){if("undefined"===typeof t.$convert&&"function"===typeof t.convert&&(t.$convert=t.convert),a(t,t),t.backend_traits){var d=["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates","supports_templates?","init_backend_traits","backend_traits"];for(var f of d)t["$"+f]=st.prototype["$"+f];t.$$meta=st}s(t,t),l(t,t),u(t),r=t}var h=[r].concat(n);return it.$register.apply(it,h)},ot.getDefault=function(t){return this.$default(t)},ot.prototype.create=function(t,n){return this.$create(t,e(n))},ot.getRegistry=function(){return n(it.$registry())},ot.for=function(t){const e=it.$for(t);return e===Opal.nil?void 0:e},ot.unregisterAll=function(){var t=it.DefaultFactory.$$cvars["@@registry"];it.DefaultFactory.$$cvars["@@registry"]=e({html5:t["$[]"]("html5")})};var lt=Opal.Asciidoctor.Converter.Html5Converter;Opal.Asciidoctor.Html5Converter=lt,lt.create=function(){return this.$new()},lt.prototype.convert=function(t,e,n){return this.$convert(t,e,n)};var ct="2.2.0";return Opal.Asciidoctor.prototype.getVersion=function(){return ct},Opal.Asciidoctor}))}).call(this,__webpack_require__("c8ba"),__webpack_require__("4362"),__webpack_require__("b639").Buffer,__webpack_require__("62e4")(module))},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),s=n("d039"),l=n("c6b6"),c=n("0366"),u=n("1be4"),d=n("cc12"),f=n("1cdc"),h=a.location,p=a.setImmediate,$=a.clearImmediate,m=a.process,g=a.MessageChannel,v=a.Dispatch,y=0,_={},b="onreadystatechange",w=function(t){if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},x=function(t){return function(){w(t)}},k=function(t){w(t.data)},S=function(t){a.postMessage(t+"",h.protocol+"//"+h.host)};p&&$||(p=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return _[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(y),y},$=function(t){delete _[t]},"process"==l(m)?r=function(t){m.nextTick(x(t))}:v&&v.now?r=function(t){v.now(x(t))}:g&&!f?(i=new g,o=i.port2,i.port1.onmessage=k,r=c(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(S)||"file:"===h.protocol?r=b in d("script")?function(t){u.appendChild(d("script"))[b]=function(){u.removeChild(this),w(t)}}:function(t){setTimeout(x(t),0)}:(r=S,a.addEventListener("message",k,!1))),t.exports={set:p,clear:$}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?(r=c.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2dd8":function(t,e,n){},"31c5":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";var e="CodeMirror-activeline",n="CodeMirror-activeline-background",r="CodeMirror-activeline-gutter";function i(t){for(var i=0;i<t.state.activeLines.length;i++)t.removeLineClass(t.state.activeLines[i],"wrap",e),t.removeLineClass(t.state.activeLines[i],"background",n),t.removeLineClass(t.state.activeLines[i],"gutter",r)}function o(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function a(t,a){for(var s=[],l=0;l<a.length;l++){var c=a[l],u=t.getOption("styleActiveLine");if("object"==typeof u&&u.nonEmpty?c.anchor.line==c.head.line:c.empty()){var d=t.getLineHandleVisualStart(c.head.line);s[s.length-1]!=d&&s.push(d)}}o(t.state.activeLines,s)||t.operation((function(){i(t);for(var o=0;o<s.length;o++)t.addLineClass(s[o],"wrap",e),t.addLineClass(s[o],"background",n),t.addLineClass(s[o],"gutter",r);t.state.activeLines=s}))}function s(t,e){a(t,e.ranges)}t.defineOption("styleActiveLine",!1,(function(e,n,r){var o=r!=t.Init&&r;n!=o&&(o&&(e.off("beforeSelectionChange",s),i(e),delete e.state.activeLines),n&&(e.state.activeLines=[],a(e,e.listSelections()),e.on("beforeSelectionChange",s)))}))}))},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,l=0;while(s>l)i.f(t,n=r[l++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3c98":function(t,e,n){(function(t){t(n("56b3"))})((function(t){var e=t.Pos;function n(t,e){for(var n=0,r=t.length;n<r;++n)e(t[n])}function r(t,e){if(!Array.prototype.indexOf){var n=t.length;while(n--)if(t[n]===e)return!0;return!1}return-1!=t.indexOf(e)}function i(n,r,i,o){var a=n.getCursor(),s=i(n,a);if(!/\b(?:string|comment)\b/.test(s.type)){var l=t.innerMode(n.getMode(),s.state);if("json"!==l.mode.helperType){s.state=l.state,/^[\w$_]*$/.test(s.string)?s.end>a.ch&&(s.end=a.ch,s.string=s.string.slice(0,a.ch-s.start)):s={start:a.ch,end:a.ch,string:"",state:s.state,type:"."==s.string?"property":null};var c=s;while("property"==c.type){if(c=i(n,e(a.line,c.start)),"."!=c.string)return;if(c=i(n,e(a.line,c.start)),!u)var u=[];u.push(c)}return{list:p(s,u,r,o),from:e(a.line,s.start),to:e(a.line,s.end)}}}}function o(t,e){return i(t,d,(function(t,e){return t.getTokenAt(e)}),e)}function a(t,e){var n=t.getTokenAt(e);return e.ch==n.start+1&&"."==n.string.charAt(0)?(n.end=n.start,n.string=".",n.type="property"):/^\.[\w$_]*$/.test(n.string)&&(n.type="property",n.start++,n.string=n.string.replace(/\./,"")),n}function s(t,e){return i(t,f,a,e)}t.registerHelper("hint","javascript",o),t.registerHelper("hint","coffeescript",s);var l="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),c="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),u="prototype apply call bind".split(" "),d="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),f="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function h(t,e){if(Object.getOwnPropertyNames&&Object.getPrototypeOf)for(var n=t;n;n=Object.getPrototypeOf(n))Object.getOwnPropertyNames(n).forEach(e);else for(var r in t)e(r)}function p(t,e,i,o){var a=[],s=t.string,d=o&&o.globalScope||window;function f(t){0!=t.lastIndexOf(s,0)||r(a,t)||a.push(t)}function p(t){"string"==typeof t?n(l,f):t instanceof Array?n(c,f):t instanceof Function&&n(u,f),h(t,f)}if(e&&e.length){var $,m=e.pop();m.type&&0===m.type.indexOf("variable")?(o&&o.additionalContext&&($=o.additionalContext[m.string]),o&&!1===o.useGlobalScope||($=$||d[m.string])):"string"==m.type?$="":"atom"==m.type?$=1:"function"==m.type&&(null==d.jQuery||"$"!=m.string&&"jQuery"!=m.string||"function"!=typeof d.jQuery?null!=d._&&"_"==m.string&&"function"==typeof d._&&($=d._()):$=d.jQuery());while(null!=$&&e.length)$=$[e.pop().string];null!=$&&p($)}else{for(var g=t.state.localVars;g;g=g.next)f(g.name);for(var v=t.state.context;v;v=v.prev)for(g=v.vars;g;g=g.next)f(g.name);for(g=t.state.globalVars;g;g=g.next)f(g.name);if(o&&null!=o.additionalContext)for(var y in o.additionalContext)f(y);o&&!1===o.useGlobalScope||p(d),n(i,f)}return a}}))},"3d20":function(t,e,n){
/*!
* sweetalert2 v9.17.2
* Released under the MIT License.
*/
(function(e,n){t.exports=n()})(0,(function(){"use strict";function t(e){return t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,n){return c=l()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),o=new i;return n&&s(o,n.prototype),o},c.apply(null,arguments)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?u(t):e}function f(t){var e=l();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function h(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=a(t),null===t)break;return t}function p(t,e,n){return p="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},p(t,e,n||t)}var $="SweetAlert2:",m=function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e},g=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},v=function(t){return Object.keys(t).map((function(e){return t[e]}))},y=function(t){return Array.prototype.slice.call(t)},_=function(t){console.warn("".concat($," ").concat(t))},b=function(t){console.error("".concat($," ").concat(t))},w=[],x=function(t){-1===w.indexOf(t)&&(w.push(t),_(t))},k=function(t,e){x('"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'))},S=function(t){return"function"===typeof t?t():t},O=function(t){return t&&"function"===typeof t.toPromise},C=function(t){return O(t)?t.toPromise():Promise.resolve(t)},A=function(t){return t&&Promise.resolve(t)===t},E=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),T=function(e){return"object"===t(e)&&e.jquery},P=function(t){return t instanceof Element||T(t)},B=function(e){var n={};return"object"!==t(e[0])||P(e[0])?["title","html","icon"].forEach((function(r,i){var o=e[i];"string"===typeof o||P(o)?n[r]=o:void 0!==o&&b("Unexpected type of ".concat(r,'! Expected "string" or "Element", got ').concat(t(o)))})):i(n,e[0]),n},L="swal2-",I=function(t){var e={};for(var n in t)e[t[n]]=L+t[n];return e},D=I(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),R=I(["success","warning","info","question","error"]),j=function(){return document.body.querySelector(".".concat(D.container))},M=function(t){var e=j();return e?e.querySelector(t):null},F=function(t){return M(".".concat(t))},N=function(){return F(D.popup)},z=function(){var t=N();return y(t.querySelectorAll(".".concat(D.icon)))},H=function(){var t=z().filter((function(t){return xt(t)}));return t.length?t[0]:null},V=function(){return F(D.title)},U=function(){return F(D.content)},q=function(){return F(D["html-container"])},W=function(){return F(D.image)},G=function(){return F(D["progress-steps"])},Y=function(){return F(D["validation-message"])},K=function(){return M(".".concat(D.actions," .").concat(D.confirm))},X=function(){return M(".".concat(D.actions," .").concat(D.cancel))},Z=function(){return F(D.actions)},J=function(){return F(D.header)},Q=function(){return F(D.footer)},tt=function(){return F(D["timer-progress-bar"])},et=function(){return F(D.close)},nt='\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n',rt=function(){var t=y(N().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(t,e){return t=parseInt(t.getAttribute("tabindex")),e=parseInt(e.getAttribute("tabindex")),t>e?1:t<e?-1:0})),e=y(N().querySelectorAll(nt)).filter((function(t){return"-1"!==t.getAttribute("tabindex")}));return m(t.concat(e)).filter((function(t){return xt(t)}))},it=function(){return!ot()&&!document.body.classList.contains(D["no-backdrop"])},ot=function(){return document.body.classList.contains(D["toast-shown"])},at=function(){return N().hasAttribute("data-loading")},st={previousBodyPadding:null},lt=function(t,e){if(t.textContent="",e){var n=new DOMParser,r=n.parseFromString(e,"text/html");y(r.querySelector("head").childNodes).forEach((function(e){t.appendChild(e)})),y(r.querySelector("body").childNodes).forEach((function(e){t.appendChild(e)}))}},ct=function(t,e){if(!e)return!1;for(var n=e.split(/\s+/),r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},ut=function(t,e){y(t.classList).forEach((function(n){-1===v(D).indexOf(n)&&-1===v(R).indexOf(n)&&-1===v(e.showClass).indexOf(n)&&t.classList.remove(n)}))},dt=function(e,n,r){if(ut(e,n),n.customClass&&n.customClass[r]){if("string"!==typeof n.customClass[r]&&!n.customClass[r].forEach)return _("Invalid type of customClass.".concat(r,'! Expected string or iterable object, got "').concat(t(n.customClass[r]),'"'));mt(e,n.customClass[r])}};function ft(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return vt(t,D[e]);case"checkbox":return t.querySelector(".".concat(D.checkbox," input"));case"radio":return t.querySelector(".".concat(D.radio," input:checked"))||t.querySelector(".".concat(D.radio," input:first-child"));case"range":return t.querySelector(".".concat(D.range," input"));default:return vt(t,D.input)}}var ht,pt=function(t){if(t.focus(),"file"!==t.type){var e=t.value;t.value="",t.value=e}},$t=function(t,e,n){t&&e&&("string"===typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach((function(e){t.forEach?t.forEach((function(t){n?t.classList.add(e):t.classList.remove(e)})):n?t.classList.add(e):t.classList.remove(e)})))},mt=function(t,e){$t(t,e,!0)},gt=function(t,e){$t(t,e,!1)},vt=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(ct(t.childNodes[n],e))return t.childNodes[n]},yt=function(t,e,n){n||0===parseInt(n)?t.style[e]="number"===typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)},_t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.opacity="",t.style.display=e},bt=function(t){t.style.opacity="",t.style.display="none"},wt=function(t,e,n){e?_t(t,n):bt(t)},xt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},kt=function(t){return!!(t.scrollHeight>t.clientHeight)},St=function(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},Ot=function(t,e){if("function"===typeof t.contains)return t.contains(e)},Ct=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=tt();xt(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(t/1e3,"s linear"),n.style.width="0%"}),10))},At=function(){var t=tt(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),r=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(r,"%")},Et=function(){return"undefined"===typeof window||"undefined"===typeof document},Tt='\n <div aria-labelledby="'.concat(D.title,'" aria-describedby="').concat(D.content,'" class="').concat(D.popup,'" tabindex="-1">\n <div class="').concat(D.header,'">\n <ul class="').concat(D["progress-steps"],'"></ul>\n <div class="').concat(D.icon," ").concat(R.error,'"></div>\n <div class="').concat(D.icon," ").concat(R.question,'"></div>\n <div class="').concat(D.icon," ").concat(R.warning,'"></div>\n <div class="').concat(D.icon," ").concat(R.info,'"></div>\n <div class="').concat(D.icon," ").concat(R.success,'"></div>\n <img class="').concat(D.image,'" />\n <h2 class="').concat(D.title,'" id="').concat(D.title,'"></h2>\n <button type="button" class="').concat(D.close,'"></button>\n </div>\n <div class="').concat(D.content,'">\n <div id="').concat(D.content,'" class="').concat(D["html-container"],'"></div>\n <input class="').concat(D.input,'" />\n <input type="file" class="').concat(D.file,'" />\n <div class="').concat(D.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(D.select,'"></select>\n <div class="').concat(D.radio,'"></div>\n <label for="').concat(D.checkbox,'" class="').concat(D.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(D.label,'"></span>\n </label>\n <textarea class="').concat(D.textarea,'"></textarea>\n <div class="').concat(D["validation-message"],'" id="').concat(D["validation-message"],'"></div>\n </div>\n <div class="').concat(D.actions,'">\n <button type="button" class="').concat(D.confirm,'">OK</button>\n <button type="button" class="').concat(D.cancel,'">Cancel</button>\n </div>\n <div class="').concat(D.footer,'"></div>\n <div class="').concat(D["timer-progress-bar-container"],'">\n <div class="').concat(D["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),Pt=function(){var t=j();return!!t&&(t.parentNode.removeChild(t),gt([document.documentElement,document.body],[D["no-backdrop"],D["toast-shown"],D["has-column"]]),!0)},Bt=function(t){Lr.isVisible()&&ht!==t.target.value&&Lr.resetValidationMessage(),ht=t.target.value},Lt=function(){var t=U(),e=vt(t,D.input),n=vt(t,D.file),r=t.querySelector(".".concat(D.range," input")),i=t.querySelector(".".concat(D.range," output")),o=vt(t,D.select),a=t.querySelector(".".concat(D.checkbox," input")),s=vt(t,D.textarea);e.oninput=Bt,n.onchange=Bt,o.onchange=Bt,a.onchange=Bt,s.oninput=Bt,r.oninput=function(t){Bt(t),i.value=r.value},r.onchange=function(t){Bt(t),r.nextSibling.value=r.value}},It=function(t){return"string"===typeof t?document.querySelector(t):t},Dt=function(t){var e=N();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Rt=function(t){"rtl"===window.getComputedStyle(t).direction&&mt(j(),D.rtl)},jt=function(t){var e=Pt();if(Et())b("SweetAlert2 requires document to initialize");else{var n=document.createElement("div");n.className=D.container,e&&mt(n,D["no-transition"]),lt(n,Tt);var r=It(t.target);r.appendChild(n),Dt(t),Rt(r),Lt()}},Mt=function(e,n){e instanceof HTMLElement?n.appendChild(e):"object"===t(e)?Ft(e,n):e&&lt(n,e)},Ft=function(t,e){t.jquery?Nt(e,t):lt(e,t.toString())},Nt=function(t,e){if(t.textContent="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},zt=function(){if(Et())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"undefined"!==typeof t.style[n])return e[n];return!1}(),Ht=function(){var t=document.createElement("div");t.className=D["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Vt=function(t,e){var n=Z(),r=K(),i=X();e.showConfirmButton||e.showCancelButton||bt(n),dt(n,e,"actions"),qt(r,"confirm",e),qt(i,"cancel",e),e.buttonsStyling?Ut(r,i,e):(gt([r,i],D.styled),r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor="",i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor=""),e.reverseButtons&&r.parentNode.insertBefore(i,r)};function Ut(t,e,n){if(mt([t,e],D.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor),!at()){var r=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=r,t.style.borderRightColor=r}}function qt(t,e,n){wt(t,n["show".concat(g(e),"Button")],"inline-block"),lt(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=D[e],dt(t,n,"".concat(e,"Button")),mt(t,n["".concat(e,"ButtonClass")])}function Wt(t,e){"string"===typeof e?t.style.background=e:e||mt([document.documentElement,document.body],D["no-backdrop"])}function Gt(t,e){e in D?mt(t,D[e]):(_('The "position" parameter is not valid, defaulting to "center"'),mt(t,D.center))}function Yt(t,e){if(e&&"string"===typeof e){var n="grow-".concat(e);n in D&&mt(t,D[n])}}var Kt=function(t,e){var n=j();if(n){Wt(n,e.backdrop),!e.backdrop&&e.allowOutsideClick&&_('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),Gt(n,e.position),Yt(n,e.grow),dt(n,e,"container");var r=document.body.getAttribute("data-swal2-queue-step");r&&(n.setAttribute("data-queue-step",r),document.body.removeAttribute("data-swal2-queue-step"))}},Xt={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Zt=["input","file","range","select","radio","checkbox","textarea"],Jt=function(t,e){var n=U(),r=Xt.innerParams.get(t),i=!r||e.input!==r.input;Zt.forEach((function(t){var r=D[t],o=vt(n,r);ee(t,e.inputAttributes),o.className=r,i&&bt(o)})),e.input&&(i&&Qt(e),ne(e))},Qt=function(t){if(!oe[t.input])return b('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=ie(t.input),n=oe[t.input](e,t);_t(n),setTimeout((function(){pt(n)}))},te=function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}},ee=function(t,e){var n=ft(U(),t);if(n)for(var r in te(n),e)"range"===t&&"placeholder"===r||n.setAttribute(r,e[r])},ne=function(t){var e=ie(t.input);t.customClass&&mt(e,t.customClass.input)},re=function(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},ie=function(t){var e=D[t]?D[t]:D.input;return vt(U(),e)},oe={};oe.text=oe.email=oe.password=oe.number=oe.tel=oe.url=function(e,n){return"string"===typeof n.inputValue||"number"===typeof n.inputValue?e.value=n.inputValue:A(n.inputValue)||_('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(n.inputValue),'"')),re(e,n),e.type=n.input,e},oe.file=function(t,e){return re(t,e),t},oe.range=function(t,e){var n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,t},oe.select=function(t,e){if(t.textContent="",e.inputPlaceholder){var n=document.createElement("option");lt(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return t},oe.radio=function(t){return t.textContent="",t},oe.checkbox=function(t,e){var n=ft(U(),"checkbox");n.value=1,n.id=D.checkbox,n.checked=Boolean(e.inputValue);var r=t.querySelector("span");return lt(r,e.inputPlaceholder),t},oe.textarea=function(t,e){if(t.value=e.inputValue,re(t,e),"MutationObserver"in window){var n=parseInt(window.getComputedStyle(N()).width),r=parseInt(window.getComputedStyle(N()).paddingLeft)+parseInt(window.getComputedStyle(N()).paddingRight),i=function(){var e=t.offsetWidth+r;N().style.width=e>n?"".concat(e,"px"):null};new MutationObserver(i).observe(t,{attributes:!0,attributeFilter:["style"]})}return t};var ae=function(t,e){var n=U().querySelector("#".concat(D.content));e.html?(Mt(e.html,n),_t(n,"block")):e.text?(n.textContent=e.text,_t(n,"block")):bt(n),Jt(t,e),dt(U(),e,"content")},se=function(t,e){var n=Q();wt(n,e.footer),e.footer&&Mt(e.footer,n),dt(n,e,"footer")},le=function(t,e){var n=et();lt(n,e.closeButtonHtml),dt(n,e,"closeButton"),wt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},ce=function(t,e){var n=Xt.innerParams.get(t);if(n&&e.icon===n.icon&&H())dt(H(),e,"icon");else if(ue(),e.icon)if(-1!==Object.keys(R).indexOf(e.icon)){var r=M(".".concat(D.icon,".").concat(R[e.icon]));_t(r),fe(r,e),de(),dt(r,e,"icon"),mt(r,e.showClass.icon)}else b('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"'))},ue=function(){for(var t=z(),e=0;e<t.length;e++)bt(t[e])},de=function(){for(var t=N(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),r=0;r<n.length;r++)n[r].style.backgroundColor=e},fe=function(t,e){if(t.textContent="",e.iconHtml)lt(t,he(e.iconHtml));else if("success"===e.icon)lt(t,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n ');else if("error"===e.icon)lt(t,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n ');else{var n={question:"?",warning:"!",info:"i"};lt(t,he(n[e.icon]))}},he=function(t){return'<div class="'.concat(D["icon-content"],'">').concat(t,"</div>")},pe=function(t,e){var n=W();if(!e.imageUrl)return bt(n);_t(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),yt(n,"width",e.imageWidth),yt(n,"height",e.imageHeight),n.className=D.image,dt(n,e,"image")},$e=[],me=function(t){var e=this;$e=t;var n=function(t,e){$e=[],t(e)},r=[];return new Promise((function(t){(function i(o,a){o<$e.length?(document.body.setAttribute("data-swal2-queue-step",o),e.fire($e[o]).then((function(e){"undefined"!==typeof e.value?(r.push(e.value),i(o+1,a)):n(t,{dismiss:e.dismiss})}))):n(t,{value:r})})(0)}))},ge=function(){return j()&&j().getAttribute("data-queue-step")},ve=function(t,e){return e&&e<$e.length?$e.splice(e,0,t):$e.push(t)},ye=function(t){"undefined"!==typeof $e[t]&&$e.splice(t,1)},_e=function(t){var e=document.createElement("li");return mt(e,D["progress-step"]),lt(e,t),e},be=function(t){var e=document.createElement("li");return mt(e,D["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},we=function(t,e){var n=G();if(!e.progressSteps||0===e.progressSteps.length)return bt(n);_t(n),n.textContent="";var r=parseInt(void 0===e.currentProgressStep?ge():e.currentProgressStep);r>=e.progressSteps.length&&_("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,i){var o=_e(t);if(n.appendChild(o),i===r&&mt(o,D["active-progress-step"]),i!==e.progressSteps.length-1){var a=be(e);n.appendChild(a)}}))},xe=function(t,e){var n=V();wt(n,e.title||e.titleText),e.title&&Mt(e.title,n),e.titleText&&(n.innerText=e.titleText),dt(n,e,"title")},ke=function(t,e){var n=J();dt(n,e,"header"),we(t,e),ce(t,e),pe(t,e),xe(t,e),le(t,e)},Se=function(t,e){var n=N();yt(n,"width",e.width),yt(n,"padding",e.padding),e.background&&(n.style.background=e.background),Oe(n,e)},Oe=function(t,e){t.className="".concat(D.popup," ").concat(xt(t)?e.showClass.popup:""),e.toast?(mt([document.documentElement,document.body],D["toast-shown"]),mt(t,D.toast)):mt(t,D.modal),dt(t,e,"popup"),"string"===typeof e.customClass&&mt(t,e.customClass),e.icon&&mt(t,D["icon-".concat(e.icon)])},Ce=function(t,e){Se(t,e),Kt(t,e),ke(t,e),ae(t,e),Vt(t,e),se(t,e),"function"===typeof e.onRender&&e.onRender(N())},Ae=function(){return xt(N())},Ee=function(){return K()&&K().click()},Te=function(){return X()&&X().click()};function Pe(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return c(t,n)}function Be(t){var n=function(n){o(l,n);var s=f(l);function l(){return e(this,l),s.apply(this,arguments)}return r(l,[{key:"_main",value:function(e){return p(a(l.prototype),"_main",this).call(this,i({},t,e))}}]),l}(this);return n}var Le=function(){var t=N();t||Lr.fire(),t=N();var e=Z(),n=K();_t(e),_t(n,"inline-block"),mt([t,e],D.loading),n.disabled=!0,t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()},Ie=100,De={},Re=function(){De.previousActiveElement&&De.previousActiveElement.focus?(De.previousActiveElement.focus(),De.previousActiveElement=null):document.body&&document.body.focus()},je=function(){return new Promise((function(t){var e=window.scrollX,n=window.scrollY;De.restoreFocusTimeout=setTimeout((function(){Re(),t()}),Ie),"undefined"!==typeof e&&"undefined"!==typeof n&&window.scrollTo(e,n)}))},Me=function(){return De.timeout&&De.timeout.getTimerLeft()},Fe=function(){if(De.timeout)return At(),De.timeout.stop()},Ne=function(){if(De.timeout){var t=De.timeout.start();return Ct(t),t}},ze=function(){var t=De.timeout;return t&&(t.running?Fe():Ne())},He=function(t){if(De.timeout){var e=De.timeout.increase(t);return Ct(e,!0),e}},Ve=function(){return De.timeout&&De.timeout.isRunning()},Ue={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconHtml:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,onRender:void 0,onClose:void 0,onAfterClose:void 0,onDestroy:void 0,scrollbarPadding:!0},qe=["allowEscapeKey","allowOutsideClick","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","footer","hideClass","html","icon","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","text","title","titleText"],We={animation:'showClass" and "hideClass'},Ge=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],Ye=function(t){return Object.prototype.hasOwnProperty.call(Ue,t)},Ke=function(t){return-1!==qe.indexOf(t)},Xe=function(t){return We[t]},Ze=function(t){Ye(t)||_('Unknown parameter "'.concat(t,'"'))},Je=function(t){-1!==Ge.indexOf(t)&&_('The parameter "'.concat(t,'" is incompatible with toasts'))},Qe=function(t){Xe(t)&&k(t,Xe(t))},tn=function(t){for(var e in t)Ze(e),t.toast&&Je(e),Qe(e)},en=Object.freeze({isValidParameter:Ye,isUpdatableParameter:Ke,isDeprecatedParameter:Xe,argsToParams:B,isVisible:Ae,clickConfirm:Ee,clickCancel:Te,getContainer:j,getPopup:N,getTitle:V,getContent:U,getHtmlContainer:q,getImage:W,getIcon:H,getIcons:z,getCloseButton:et,getActions:Z,getConfirmButton:K,getCancelButton:X,getHeader:J,getFooter:Q,getTimerProgressBar:tt,getFocusableElements:rt,getValidationMessage:Y,isLoading:at,fire:Pe,mixin:Be,queue:me,getQueueStep:ge,insertQueueStep:ve,deleteQueueStep:ye,showLoading:Le,enableLoading:Le,getTimerLeft:Me,stopTimer:Fe,resumeTimer:Ne,toggleTimer:ze,increaseTimer:He,isTimerRunning:Ve});function nn(){var t=Xt.innerParams.get(this);if(t){var e=Xt.domCache.get(this);t.showConfirmButton||(bt(e.confirmButton),t.showCancelButton||bt(e.actions)),gt([e.popup,e.actions],D.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.cancelButton.disabled=!1}}function rn(t){var e=Xt.innerParams.get(t||this),n=Xt.domCache.get(t||this);return n?ft(n.content,e.input):null}var on=function(){null===st.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(st.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(st.previousBodyPadding+Ht(),"px"))},an=function(){null!==st.previousBodyPadding&&(document.body.style.paddingRight="".concat(st.previousBodyPadding,"px"),st.previousBodyPadding=null)},sn=function(){var t=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;if(t&&!ct(document.body,D.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),mt(document.body,D.iosfix),cn(),ln()}},ln=function(){var t=!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i);if(t){var e=44;N().scrollHeight>window.innerHeight-e&&(j().style.paddingBottom="".concat(e,"px"))}},cn=function(){var t,e=j();e.ontouchstart=function(e){t=un(e.target)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},un=function(t){var e=j();return t===e||!(kt(e)||"INPUT"===t.tagName||kt(U())&&U().contains(t))},dn=function(){if(ct(document.body,D.iosfix)){var t=parseInt(document.body.style.top,10);gt(document.body,D.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},fn=function(){return!!window.MSInputMethodContext&&!!document.documentMode},hn=function(){var t=j(),e=N();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},pn=function(){"undefined"!==typeof window&&fn()&&(hn(),window.addEventListener("resize",hn))},$n=function(){"undefined"!==typeof window&&fn()&&window.removeEventListener("resize",hn)},mn=function(){var t=y(document.body.children);t.forEach((function(t){t===j()||Ot(t,j())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))},gn=function(){var t=y(document.body.children);t.forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},vn={swalPromiseResolve:new WeakMap};function yn(t,e,n,r){n?kn(t,r):(je().then((function(){return kn(t,r)})),De.keydownTarget.removeEventListener("keydown",De.keydownHandler,{capture:De.keydownListenerCapture}),De.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),it()&&(an(),dn(),$n(),gn()),_n()}function _n(){gt([document.documentElement,document.body],[D.shown,D["height-auto"],D["no-backdrop"],D["toast-shown"],D["toast-column"]])}function bn(t){var e=N();if(e){var n=Xt.innerParams.get(this);if(n&&!ct(e,n.hideClass.popup)){var r=vn.swalPromiseResolve.get(this);gt(e,n.showClass.popup),mt(e,n.hideClass.popup);var i=j();gt(i,n.showClass.backdrop),mt(i,n.hideClass.backdrop),wn(this,e,n),"undefined"!==typeof t?(t.isDismissed="undefined"!==typeof t.dismiss,t.isConfirmed="undefined"===typeof t.dismiss):t={isDismissed:!0,isConfirmed:!1},r(t||{})}}}var wn=function(t,e,n){var r=j(),i=zt&&St(e),o=n.onClose,a=n.onAfterClose;null!==o&&"function"===typeof o&&o(e),i?xn(t,e,r,a):yn(t,r,ot(),a)},xn=function(t,e,n,r){De.swalCloseEventFinishedCallback=yn.bind(null,t,n,ot(),r),e.addEventListener(zt,(function(t){t.target===e&&(De.swalCloseEventFinishedCallback(),delete De.swalCloseEventFinishedCallback)}))},kn=function(t,e){setTimeout((function(){"function"===typeof e&&e(),t._destroy()}))};function Sn(t,e,n){var r=Xt.domCache.get(t);e.forEach((function(t){r[t].disabled=n}))}function On(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode,r=n.querySelectorAll("input"),i=0;i<r.length;i++)r[i].disabled=e;else t.disabled=e}function Cn(){Sn(this,["confirmButton","cancelButton"],!1)}function An(){Sn(this,["confirmButton","cancelButton"],!0)}function En(){return On(this.getInput(),!1)}function Tn(){return On(this.getInput(),!0)}function Pn(t){var e=Xt.domCache.get(this);lt(e.validationMessage,t);var n=window.getComputedStyle(e.popup);e.validationMessage.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),e.validationMessage.style.marginRight="-".concat(n.getPropertyValue("padding-right")),_t(e.validationMessage);var r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedBy",D["validation-message"]),pt(r),mt(r,D.inputerror))}function Bn(){var t=Xt.domCache.get(this);t.validationMessage&&bt(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),gt(e,D.inputerror))}function Ln(){var t=Xt.domCache.get(this);return t.progressSteps}var In=function(){function t(n,r){e(this,t),this.callback=n,this.remaining=r,this.running=!1,this.start()}return r(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),Dn={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function Rn(t){t.inputValidator||Object.keys(Dn).forEach((function(e){t.input===e&&(t.inputValidator=Dn[e])}))}function jn(t){(!t.target||"string"===typeof t.target&&!document.querySelector(t.target)||"string"!==typeof t.target&&!t.target.appendChild)&&(_('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Mn(t){Rn(t),t.showLoaderOnConfirm&&!t.preConfirm&&_("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=S(t.animation),jn(t),"string"===typeof t.title&&(t.title=t.title.split("\n").join("<br />")),jt(t)}var Fn=function(t){var e=j(),n=N();"function"===typeof t.onBeforeOpen&&t.onBeforeOpen(n);var r=window.getComputedStyle(document.body),i=r.overflowY;Vn(e,n,t),zn(e,n),it()&&(Hn(e,t.scrollbarPadding,i),mn()),ot()||De.previousActiveElement||(De.previousActiveElement=document.activeElement),"function"===typeof t.onOpen&&setTimeout((function(){return t.onOpen(n)})),gt(e,D["no-transition"])};function Nn(t){var e=N();if(t.target===e){var n=j();e.removeEventListener(zt,Nn),n.style.overflowY="auto"}}var zn=function(t,e){zt&&St(e)?(t.style.overflowY="hidden",e.addEventListener(zt,Nn)):t.style.overflowY="auto"},Hn=function(t,e,n){sn(),pn(),e&&"hidden"!==n&&on(),setTimeout((function(){t.scrollTop=0}))},Vn=function(t,e,n){mt(t,n.showClass.backdrop),_t(e),mt(e,n.showClass.popup),mt([document.documentElement,document.body],D.shown),n.heightAuto&&n.backdrop&&!n.toast&&mt([document.documentElement,document.body],D["height-auto"])},Un=function(t,e){"select"===e.input||"radio"===e.input?Kn(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&(O(e.inputValue)||A(e.inputValue))&&Xn(t,e)},qn=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Wn(n);case"radio":return Gn(n);case"file":return Yn(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Wn=function(t){return t.checked?1:0},Gn=function(t){return t.checked?t.value:null},Yn=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},Kn=function(e,n){var r=U(),i=function(t){return Zn[n.input](r,Jn(t),n)};O(n.inputOptions)||A(n.inputOptions)?(Le(),C(n.inputOptions).then((function(t){e.hideLoading(),i(t)}))):"object"===t(n.inputOptions)?i(n.inputOptions):b("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions)))},Xn=function(t,e){var n=t.getInput();bt(n),C(e.inputValue).then((function(r){n.value="number"===e.input?parseFloat(r)||0:"".concat(r),_t(n),n.focus(),t.hideLoading()}))["catch"]((function(e){b("Error in inputValue promise: ".concat(e)),n.value="",_t(n),n.focus(),t.hideLoading()}))},Zn={select:function(t,e,n){var r=vt(t,D.select),i=function(t,e,r){var i=document.createElement("option");i.value=r,lt(i,e),n.inputValue.toString()===r.toString()&&(i.selected=!0),t.appendChild(i)};e.forEach((function(t){var e=t[0],n=t[1];if(Array.isArray(n)){var o=document.createElement("optgroup");o.label=e,o.disabled=!1,r.appendChild(o),n.forEach((function(t){return i(o,t[1],t[0])}))}else i(r,n,e)})),r.focus()},radio:function(t,e,n){var r=vt(t,D.radio);e.forEach((function(t){var e=t[0],i=t[1],o=document.createElement("input"),a=document.createElement("label");o.type="radio",o.name=D.radio,o.value=e,n.inputValue.toString()===e.toString()&&(o.checked=!0);var s=document.createElement("span");lt(s,i),s.className=D.label,a.appendChild(o),a.appendChild(s),r.appendChild(a)}));var i=r.querySelectorAll("input");i.length&&i[0].focus()}},Jn=function e(n){var r=[];return"undefined"!==typeof Map&&n instanceof Map?n.forEach((function(n,i){var o=n;"object"===t(o)&&(o=e(o)),r.push([i,o])})):Object.keys(n).forEach((function(i){var o=n[i];"object"===t(o)&&(o=e(o)),r.push([i,o])})),r},Qn=function(t,e){t.disableButtons(),e.input?er(t,e):rr(t,e,!0)},tr=function(t,e){t.disableButtons(),e(E.cancel)},er=function(t,e){var n=qn(t,e);if(e.inputValidator){t.disableInput();var r=Promise.resolve().then((function(){return C(e.inputValidator(n,e.validationMessage))}));r.then((function(r){t.enableButtons(),t.enableInput(),r?t.showValidationMessage(r):rr(t,e,n)}))}else t.getInput().checkValidity()?rr(t,e,n):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},nr=function(t,e){t.closePopup({value:e})},rr=function(t,e,n){if(e.showLoaderOnConfirm&&Le(),e.preConfirm){t.resetValidationMessage();var r=Promise.resolve().then((function(){return C(e.preConfirm(n,e.validationMessage))}));r.then((function(e){xt(Y())||!1===e?t.hideLoading():nr(t,"undefined"===typeof e?n:e)}))}else nr(t,n)},ir=function(t,e,n,r){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),n.toast||(e.keydownHandler=function(e){return lr(t,e,r)},e.keydownTarget=n.keydownListenerCapture?window:N(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},or=function(t,e,n){for(var r=rt(),i=0;i<r.length;i++)return e+=n,e===r.length?e=0:-1===e&&(e=r.length-1),r[e].focus();N().focus()},ar=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],sr=["Escape","Esc"],lr=function(t,e,n){var r=Xt.innerParams.get(t);r.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?cr(t,e,r):"Tab"===e.key?ur(e,r):-1!==ar.indexOf(e.key)?dr():-1!==sr.indexOf(e.key)&&fr(e,r,n)},cr=function(t,e,n){if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Ee(),e.preventDefault()}},ur=function(t,e){for(var n=t.target,r=rt(),i=-1,o=0;o<r.length;o++)if(n===r[o]){i=o;break}t.shiftKey?or(e,i,-1):or(e,i,1),t.stopPropagation(),t.preventDefault()},dr=function(){var t=K(),e=X();document.activeElement===t&&xt(e)?e.focus():document.activeElement===e&&xt(t)&&t.focus()},fr=function(t,e,n){S(e.allowEscapeKey)&&(t.preventDefault(),n(E.esc))},hr=function(t,e,n){var r=Xt.innerParams.get(t);r.toast?pr(t,e,n):(mr(e),gr(e),vr(t,e,n))},pr=function(t,e,n){e.popup.onclick=function(){var e=Xt.innerParams.get(t);e.showConfirmButton||e.showCancelButton||e.showCloseButton||e.input||n(E.close)}},$r=!1,mr=function(t){t.popup.onmousedown=function(){t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&($r=!0)}}},gr=function(t){t.container.onmousedown=function(){t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&($r=!0)}}},vr=function(t,e,n){e.container.onclick=function(r){var i=Xt.innerParams.get(t);$r?$r=!1:r.target===e.container&&S(i.allowOutsideClick)&&n(E.backdrop)}};function yr(t){tn(t),De.currentInstance&&De.currentInstance._destroy(),De.currentInstance=this;var e=_r(t);Mn(e),Object.freeze(e),De.timeout&&(De.timeout.stop(),delete De.timeout),clearTimeout(De.restoreFocusTimeout);var n=wr(this);return Ce(this,e),Xt.innerParams.set(this,e),br(this,n,e)}var _r=function(t){var e=i({},Ue.showClass,t.showClass),n=i({},Ue.hideClass,t.hideClass),r=i({},Ue,t);return r.showClass=e,r.hideClass=n,!1===t.animation&&(r.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},r.hideClass={}),r},br=function(t,e,n){return new Promise((function(r){var i=function(e){t.closePopup({dismiss:e})};vn.swalPromiseResolve.set(t,r),e.confirmButton.onclick=function(){return Qn(t,n)},e.cancelButton.onclick=function(){return tr(t,i)},e.closeButton.onclick=function(){return i(E.close)},hr(t,e,i),ir(t,De,n,i),n.toast&&(n.input||n.footer||n.showCloseButton)?mt(document.body,D["toast-column"]):gt(document.body,D["toast-column"]),Un(t,n),Fn(n),xr(De,n,i),kr(e,n),setTimeout((function(){e.container.scrollTop=0}))}))},wr=function(t){var e={popup:N(),container:j(),content:U(),actions:Z(),confirmButton:K(),cancelButton:X(),closeButton:et(),validationMessage:Y(),progressSteps:G()};return Xt.domCache.set(t,e),e},xr=function(t,e,n){var r=tt();bt(r),e.timer&&(t.timeout=new In((function(){n("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(_t(r),setTimeout((function(){t.timeout.running&&Ct(e.timer)}))))},kr=function(t,e){if(!e.toast)return S(e.allowEnterKey)?e.focusCancel&&xt(t.cancelButton)?t.cancelButton.focus():e.focusConfirm&&xt(t.confirmButton)?t.confirmButton.focus():void or(e,-1,1):Sr()},Sr=function(){document.activeElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()};function Or(t){var e=N(),n=Xt.innerParams.get(this);if(!e||ct(e,n.hideClass.popup))return _("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var r={};Object.keys(t).forEach((function(e){Lr.isUpdatableParameter(e)?r[e]=t[e]:_('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js'))}));var o=i({},n,r);Ce(this,o),Xt.innerParams.set(this,o),Object.defineProperties(this,{params:{value:i({},this.params,t),writable:!1,enumerable:!0}})}function Cr(){var t=Xt.domCache.get(this),e=Xt.innerParams.get(this);e&&(t.popup&&De.swalCloseEventFinishedCallback&&(De.swalCloseEventFinishedCallback(),delete De.swalCloseEventFinishedCallback),De.deferDisposalTimer&&(clearTimeout(De.deferDisposalTimer),delete De.deferDisposalTimer),"function"===typeof e.onDestroy&&e.onDestroy(),Er(this))}var Ar,Er=function(t){delete t.params,delete De.keydownHandler,delete De.keydownTarget,Tr(Xt),Tr(vn)},Tr=function(t){for(var e in t)t[e]=new WeakMap},Pr=Object.freeze({hideLoading:nn,disableLoading:nn,getInput:rn,close:bn,closePopup:bn,closeModal:bn,closeToast:bn,enableButtons:Cn,disableButtons:An,enableInput:En,disableInput:Tn,showValidationMessage:Pn,resetValidationMessage:Bn,getProgressSteps:Ln,_main:yr,update:Or,_destroy:Cr}),Br=function(){function t(){if(e(this,t),"undefined"!==typeof window){"undefined"===typeof Promise&&b("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Ar=this;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=Object.freeze(this.constructor.argsToParams(r));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}});var a=this._main(this.params);Xt.promise.set(this,a)}}return r(t,[{key:"then",value:function(t){var e=Xt.promise.get(this);return e.then(t)}},{key:"finally",value:function(t){var e=Xt.promise.get(this);return e["finally"](t)}}]),t}();i(Br.prototype,Pr),i(Br,en),Object.keys(Pr).forEach((function(t){Br[t]=function(){var e;if(Ar)return(e=Ar)[t].apply(e,arguments)}})),Br.DismissReason=E,Br.version="9.17.2";var Lr=Br;return Lr["default"]=Lr,Lr})),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,'.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent!important;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:.3125em;border-bottom-left-radius:.3125em}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}')},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,n){var r=n("da84");t.exports=r},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4895:function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";function e(e,r,o,a){if(o&&o.call){var s=o;o=null}else s=i(e,o,"rangeFinder");"number"==typeof r&&(r=t.Pos(r,0));var l=i(e,o,"minFoldSize");function c(t){var n=s(e,r);if(!n||n.to.line-n.from.line<l)return null;for(var i=e.findMarksAt(n.from),o=0;o<i.length;++o)if(i[o].__isFold&&"fold"!==a){if(!t)return null;n.cleared=!0,i[o].clear()}return n}var u=c(!0);if(i(e,o,"scanUp"))while(!u&&r.line>e.firstLine())r=t.Pos(r.line-1,0),u=c(!1);if(u&&!u.cleared&&"unfold"!==a){var d=n(e,o,u);t.on(d,"mousedown",(function(e){f.clear(),t.e_preventDefault(e)}));var f=e.markText(u.from,u.to,{replacedWith:d,clearOnEnter:i(e,o,"clearOnEnter"),__isFold:!0});f.on("clear",(function(n,r){t.signal(e,"unfold",e,n,r)})),t.signal(e,"fold",e,u.from,u.to)}}function n(t,e,n){var r=i(t,e,"widget");if("function"==typeof r&&(r=r(n.from,n.to)),"string"==typeof r){var o=document.createTextNode(r);r=document.createElement("span"),r.appendChild(o),r.className="CodeMirror-foldmarker"}else r&&(r=r.cloneNode(!0));return r}t.newFoldFunction=function(t,n){return function(r,i){e(r,i,{rangeFinder:t,widget:n})}},t.defineExtension("foldCode",(function(t,n,r){e(this,t,n,r)})),t.defineExtension("isFolded",(function(t){for(var e=this.findMarksAt(t),n=0;n<e.length;++n)if(e[n].__isFold)return!0})),t.commands.toggleFold=function(t){t.foldCode(t.getCursor())},t.commands.fold=function(t){t.foldCode(t.getCursor(),null,"fold")},t.commands.unfold=function(t){t.foldCode(t.getCursor(),null,"unfold")},t.commands.foldAll=function(e){e.operation((function(){for(var n=e.firstLine(),r=e.lastLine();n<=r;n++)e.foldCode(t.Pos(n,0),null,"fold")}))},t.commands.unfoldAll=function(e){e.operation((function(){for(var n=e.firstLine(),r=e.lastLine();n<=r;n++)e.foldCode(t.Pos(n,0),null,"unfold")}))},t.registerHelper("fold","combine",(function(){var t=Array.prototype.slice.call(arguments,0);return function(e,n){for(var r=0;r<t.length;++r){var i=t[r](e,n);if(i)return i}}})),t.registerHelper("fold","auto",(function(t,e){for(var n=t.getHelpers(e,"fold"),r=0;r<n.length;r++){var i=n[r](t,e);if(i)return i}}));var r={rangeFinder:t.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function i(t,e,n){if(e&&void 0!==e[n])return e[n];var i=t.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}t.defineOption("foldOptions",null),t.defineExtension("foldOption",(function(t,e){return i(this,t,e)}))}))},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var s,l=r(e),c=i(l.length),u=o(a,c);if(t&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56b3":function(t,e,n){(function(e,n){t.exports=n()})(0,(function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!o&&/Chrome\//.test(t),d=/Opera\//.test(t),f=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),p=/PhantomJS/.test(t),$=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),m=/Android/.test(t),g=$||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),v=$||/Mac/.test(e),y=/\bCrOS\b/.test(t),_=/win/i.test(e),b=d&&t.match(/Version\/(\d*\.\d*)/);b&&(b=Number(b[1])),b&&b>=15&&(d=!1,l=!0);var w=v&&(c||d&&(null==b||b<12.11)),x=n||a&&s>=9;function k(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var S,O=function(t,e){var n=t.className,r=k(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function A(t,e){return C(t).appendChild(e)}function E(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)i.appendChild(e[o]);return i}function T(t,e,n,r){var i=E(t,e,n,r);return i.setAttribute("role","presentation"),i}function P(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function B(){var t;try{t=document.activeElement}catch(e){t=document.body||null}while(t&&t.shadowRoot&&t.shadowRoot.activeElement)t=t.shadowRoot.activeElement;return t}function L(t,e){var n=t.className;k(e).test(n)||(t.className+=(n?" ":"")+e)}function I(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!k(n[r]).test(e)&&(e+=" "+n[r]);return e}S=document.createRange?function(t,e,n,r){var i=document.createRange();return i.setEnd(r||t,n),i.setStart(t,e),i}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var D=function(t){t.select()};function R(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function j(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function M(t,e,n,r,i){null==e&&(e=t.search(/[^\s\u00a0]/),-1==e&&(e=t.length));for(var o=r||0,a=i||0;;){var s=t.indexOf("\t",o);if(s<0||s>=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}$?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(D=function(t){try{t.select()}catch(e){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function N(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}F.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},F.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var z=50,H={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},U={origin:"*mouse"},q={origin:"+move"};function W(t,e,n){for(var r=0,i=0;;){var o=t.indexOf("\t",r);-1==o&&(o=t.length);var a=o-r;if(o==t.length||i+a>=e)return r+Math.min(a,e-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=e)return r}}var G=[""];function Y(t){while(G.length<=t)G.push(K(G)+" ");return G[t]}function K(t){return t[t.length-1]}function X(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function Z(t,e,n){var r=0,i=n(e);while(r<t.length&&n(t[r])<=i)r++;t.splice(r,0,e)}function J(){}function Q(t,e){var n;return Object.create?n=Object.create(t):(J.prototype=t,n=new J),e&&j(e,n),n}var tt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||tt.test(t))}function nt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&et(t))||e.test(t):et(t)}function rt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var it=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ot(t){return t.charCodeAt(0)>=768&&it.test(t)}function at(t,e,n){while((n<0?e>0:e<t.length)&&ot(t.charAt(e)))e+=n;return e}function st(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}function lt(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,o=0;o<t.length;++o){var a=t[o];(a.from<n&&a.to>e||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}var ct=null;function ut(t,e,n){var r;ct=null;for(var i=0;i<t.length;++i){var o=t[i];if(o.from<e&&o.to>e)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:ct=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:ct=i)}return null!=r?r:ct}var dt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var c="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!r.test(t))return!1;for(var u=t.length,d=[],f=0;f<u;++f)d.push(n(t.charCodeAt(f)));for(var h=0,p=c;h<u;++h){var $=d[h];"m"==$?d[h]=p:p=$}for(var m=0,g=c;m<u;++m){var v=d[m];"1"==v&&"r"==g?d[m]="n":o.test(v)&&(g=v,"r"==v&&(d[m]="R"))}for(var y=1,_=d[0];y<u-1;++y){var b=d[y];"+"==b&&"1"==_&&"1"==d[y+1]?d[y]="1":","!=b||_!=d[y+1]||"1"!=_&&"n"!=_||(d[y]=_),_=b}for(var w=0;w<u;++w){var x=d[w];if(","==x)d[w]="N";else if("%"==x){var k=void 0;for(k=w+1;k<u&&"%"==d[k];++k);for(var S=w&&"!"==d[w-1]||k<u&&"1"==d[k]?"1":"N",O=w;O<k;++O)d[O]=S;w=k-1}}for(var C=0,A=c;C<u;++C){var E=d[C];"L"==A&&"1"==E?d[C]="L":o.test(E)&&(A=E)}for(var T=0;T<u;++T)if(i.test(d[T])){var P=void 0;for(P=T+1;P<u&&i.test(d[P]);++P);for(var B="L"==(T?d[T-1]:c),L="L"==(P<u?d[P]:c),I=B==L?B?"L":"R":c,D=T;D<P;++D)d[D]=I;T=P-1}for(var R,j=[],M=0;M<u;)if(a.test(d[M])){var F=M;for(++M;M<u&&a.test(d[M]);++M);j.push(new l(0,F,M))}else{var N=M,z=j.length,H="rtl"==e?1:0;for(++M;M<u&&"L"!=d[M];++M);for(var V=N;V<M;)if(s.test(d[V])){N<V&&(j.splice(z,0,new l(1,N,V)),z+=H);var U=V;for(++V;V<M&&s.test(d[V]);++V);j.splice(z,0,new l(2,U,V)),z+=H,N=V}else++V;N<M&&j.splice(z,0,new l(1,N,M))}return"ltr"==e&&(1==j[0].level&&(R=t.match(/^\s+/))&&(j[0].from=R[0].length,j.unshift(new l(0,0,R[0].length))),1==K(j).level&&(R=t.match(/\s+$/))&&(K(j).to-=R[0].length,j.push(new l(0,u-R[0].length,u)))),"rtl"==e?j.reverse():j}}();function ft(t,e){var n=t.order;return null==n&&(n=t.order=dt(t.text,e)),n}var ht=[],pt=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||ht).concat(n)}};function $t(t,e){return t._handlers&&t._handlers[e]||ht}function mt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,i=r&&r[e];if(i){var o=N(i,n);o>-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function gt(t,e){var n=$t(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function vt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),gt(t,n||e.type,t,e),kt(e)||e.codemirrorIgnore}function yt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==N(n,e[r])&&n.push(e[r])}function _t(t,e){return $t(t,e).length>0}function bt(t){t.prototype.on=function(t,e){pt(this,t,e)},t.prototype.off=function(t,e){mt(this,t,e)}}function wt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function xt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function kt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function St(t){wt(t),xt(t)}function Ot(t){return t.target||t.srcElement}function Ct(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),v&&t.ctrlKey&&1==e&&(e=3),e}var At,Et,Tt=function(){if(a&&s<9)return!1;var t=E("div");return"draggable"in t||"dragDrop"in t}();function Pt(t){if(null==At){var e=E("span","​");A(t,E("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(At=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=At?E("span","​"):E("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Bt(t){if(null!=Et)return Et;var e=A(t,document.createTextNode("AخA")),n=S(e,0,1).getBoundingClientRect(),r=S(e,1,2).getBoundingClientRect();return C(t),!(!n||n.left==n.right)&&(Et=r.right-n.right<3)}var Lt=3!="\n\nb".split(/\n/).length?function(t){var e=0,n=[],r=t.length;while(e<=r){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},It=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(e){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(n){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Dt=function(){var t=E("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),Rt=null;function jt(t){if(null!=Rt)return Rt;var e=A(t,E("span","x")),n=e.getBoundingClientRect(),r=S(e,0,1).getBoundingClientRect();return Rt=Math.abs(n.left-r.left)>1}var Mt={},Ft={};function Nt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Mt[t]=e}function zt(t,e){Ft[t]=e}function Ht(t){if("string"==typeof t&&Ft.hasOwnProperty(t))t=Ft[t];else if(t&&"string"==typeof t.name&&Ft.hasOwnProperty(t.name)){var e=Ft[t.name];"string"==typeof e&&(e={name:e}),t=Q(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Ht("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Ht("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Vt(t,e){e=Ht(e);var n=Mt[e.name];if(!n)return Vt(t,"text/plain");var r=n(t,e);if(Ut.hasOwnProperty(e.name)){var i=Ut[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var Ut={};function qt(t,e){var n=Ut.hasOwnProperty(t)?Ut[t]:Ut[t]={};j(e,n)}function Wt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Gt(t,e){var n;while(t.innerMode){if(n=t.innerMode(e),!n||n.mode==t)break;e=n.state,t=n.mode}return n||{mode:t,state:e}}function Yt(t,e,n){return!t.startState||t.startState(e,n)}var Kt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xt(t,e){if(e-=t.first,e<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");var n=t;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e<o){n=i;break}e-=o}return n.lines[e]}function Zt(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,(function(t){var o=t.text;i==n.line&&(o=o.slice(0,n.ch)),i==e.line&&(o=o.slice(e.ch)),r.push(o),++i})),r}function Jt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function Qt(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function te(t){if(null==t.parent)return null;for(var e=t.parent,n=N(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;;++i){if(r.children[i]==e)break;n+=r.children[i].chunkSize()}return n+e.first}function ee(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],o=i.height;if(e<o){t=i;continue t}e-=o,n+=i.chunkSize()}return n}while(!t.lines);for(var a=0;a<t.lines.length;++a){var s=t.lines[a],l=s.height;if(e<l)break;e-=l}return n+a}function ne(t,e){return e>=t.first&&e<t.first+t.size}function re(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function ie(t,e,n){if(void 0===n&&(n=null),!(this instanceof ie))return new ie(t,e,n);this.line=t,this.ch=e,this.sticky=n}function oe(t,e){return t.line-e.line||t.ch-e.ch}function ae(t,e){return t.sticky==e.sticky&&0==oe(t,e)}function se(t){return ie(t.line,t.ch)}function le(t,e){return oe(t,e)<0?e:t}function ce(t,e){return oe(t,e)<0?t:e}function ue(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function de(t,e){if(e.line<t.first)return ie(t.first,0);var n=t.first+t.size-1;return e.line>n?ie(n,Xt(t,n).text.length):fe(e,Xt(t,e.line).text.length)}function fe(t,e){var n=t.ch;return null==n||n>e?ie(t.line,e):n<0?ie(t.line,0):t}function he(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=de(t,e[r]);return n}Kt.prototype.eol=function(){return this.pos>=this.string.length},Kt.prototype.sol=function(){return this.pos==this.lineStart},Kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Kt.prototype.eat=function(t){var e,n=this.string.charAt(this.pos);if(e="string"==typeof t?n==t:n&&(t.test?t.test(n):t(n)),e)return++this.pos,n},Kt.prototype.eatWhile=function(t){var e=this.pos;while(this.eat(t));return this.pos>e},Kt.prototype.eatSpace=function(){var t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>t},Kt.prototype.skipToEnd=function(){this.pos=this.string.length},Kt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Kt.prototype.backUp=function(t){this.pos-=t},Kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=M(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?M(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.indentation=function(){return M(this.string,null,this.tabSize)-(this.lineStart?M(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t},o=this.string.substr(this.pos,t.length);if(i(o)==i(t))return!1!==e&&(this.pos+=t.length),!0},Kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Kt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Kt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var pe=function(t,e){this.state=t,this.lookAhead=e},$e=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function me(t,e,n,r){var i=[t.state.modeGen],o={};Se(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],l=1,c=0;n.state=!0,Se(t,e.text,s.mode,n,(function(t,e){var n=l;while(c<t){var r=i[l];r>t&&i.splice(l,1,t,i[l+1],r),l+=2,c=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+e}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function ge(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=ve(t,te(e)),i=e.text.length>t.options.maxHighlightLength&&Wt(t.doc.mode,r.state),o=me(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function ve(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new $e(r,!0,e);var o=Oe(t,e,n),a=o>r.first&&Xt(r,o-1).stateAfter,s=a?$e.fromSaved(r,a,o):new $e(r,Yt(r.mode),o);return r.iter(o,e,(function(n){ye(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ye(t,e,n,r){var i=t.doc.mode,o=new Kt(e,t.options.tabSize,n);o.start=o.pos=r||0,""==e&&_e(i,n.state);while(!o.eol())be(i,o,n.state),o.start=o.pos}function _e(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Gt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function be(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=Gt(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}$e.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},$e.prototype.baseToken=function(t){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=t)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},$e.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$e.fromSaved=function(t,e,n){return e instanceof pe?new $e(t,Wt(t.mode,e.state),n,e.lookAhead):new $e(t,Wt(t.mode,e),n)},$e.prototype.save=function(t){var e=!1!==t?Wt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pe(e,this.maxLookAhead):e};var we=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function xe(t,e,n,r){var i,o=t.doc,a=o.mode;e=de(o,e);var s,l=Xt(o,e.line),c=ve(t,e.line,n),u=new Kt(l.text,t.options.tabSize,c);r&&(s=[]);while((r||u.pos<e.ch)&&!u.eol())u.start=u.pos,i=be(a,u,c.state),r&&s.push(new we(u,i,Wt(o.mode,c.state)));return r?s:new we(u,i,c.state)}function ke(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function Se(t,e,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var l,c=0,u=null,d=new Kt(e,t.options.tabSize,r),f=t.options.addModeClass&&[null];""==e&&ke(_e(n,r.state),o);while(!d.eol()){if(d.pos>t.options.maxHighlightLength?(s=!1,a&&ye(t,e,r,d.pos),d.pos=e.length,l=null):l=ke(be(n,d,r.state,f),o),f){var h=f[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||u!=l){while(c<d.start)c=Math.min(d.start,c+5e3),i(c,u);u=l}d.start=d.pos}while(c<d.pos){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}function Oe(t,e,n){for(var r,i,o=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var l=Xt(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof pe?c.lookAhead:0)<=o.modeFrontier))return s;var u=M(l.text,null,t.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function Ce(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var i=Xt(t,r).stateAfter;if(i&&(!(i instanceof pe)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}var Ae=!1,Ee=!1;function Te(){Ae=!0}function Pe(){Ee=!0}function Be(t,e,n){this.marker=t,this.from=e,this.to=n}function Le(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function Ie(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function De(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}function Re(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e);if(s||o.from==e&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=e:o.to>e);(r||(r=[])).push(new Be(a,o.from,l?null:o.to))}}return r}function je(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=e:o.to>e);if(s||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e);(r||(r=[])).push(new Be(a,l?null:o.from-e,null==o.to?null:o.to-e))}}return r}function Me(t,e){if(e.full)return null;var n=ne(t,e.from.line)&&Xt(t,e.from.line).markedSpans,r=ne(t,e.to.line)&&Xt(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,o=e.to.ch,a=0==oe(e.from,e.to),s=Re(n,i,a),l=je(r,o,a),c=1==e.text.length,u=K(e.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var h=Le(l,f.marker);h?c&&(f.to=null==h.to?null:h.to+u):f.to=i}}if(l)for(var p=0;p<l.length;++p){var $=l[p];if(null!=$.to&&($.to+=u),null==$.from){var m=Le(s,$.marker);m||($.from=u,c&&(s||(s=[])).push($))}else $.from+=u,c&&(s||(s=[])).push($)}s&&(s=Fe(s)),l&&l!=s&&(l=Fe(l));var g=[s];if(!c){var v,y=e.text.length-2;if(y>0&&s)for(var _=0;_<s.length;++_)null==s[_].to&&(v||(v=[])).push(new Be(s[_].marker,null,null));for(var b=0;b<y;++b)g.push(v);g.push(l)}return g}function Fe(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Ne(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=N(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:e,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(oe(c.to,s.from)<0||oe(c.from,s.to)>0)){var u=[l,1],d=oe(c.from,s.from),f=oe(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function ze(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function He(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Ve(t){return t.inclusiveLeft?-1:0}function Ue(t){return t.inclusiveRight?1:0}function qe(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),o=oe(r.from,i.from)||Ve(t)-Ve(e);if(o)return-o;var a=oe(r.to,i.to)||Ue(t)-Ue(e);return a||e.id-t.id}function We(t,e){var n,r=Ee&&t.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(e?i.from:i.to)&&(!n||qe(n,i.marker)<0)&&(n=i.marker);return n}function Ge(t){return We(t,!0)}function Ye(t){return We(t,!1)}function Ke(t,e){var n,r=Ee&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!n||qe(n,o.marker)<0)&&(n=o.marker)}return n}function Xe(t,e,n,r,i){var o=Xt(t,e),a=Ee&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=oe(c.from,n)||Ve(l.marker)-Ve(i),d=oe(c.to,r)||Ue(l.marker)-Ue(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?oe(c.to,n)>=0:oe(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?oe(c.from,r)<=0:oe(c.from,r)<0)))return!0}}}function Ze(t){var e;while(e=Ge(t))t=e.find(-1,!0).line;return t}function Je(t){var e;while(e=Ye(t))t=e.find(1,!0).line;return t}function Qe(t){var e,n;while(e=Ye(t))t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function tn(t,e){var n=Xt(t,e),r=Ze(n);return n==r?e:te(r)}function en(t,e){if(e>t.lastLine())return e;var n,r=Xt(t,e);if(!nn(t,r))return e;while(n=Ye(r))r=n.find(1,!0).line;return te(r)+1}function nn(t,e){var n=Ee&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&rn(t,e,r))return!0}}function rn(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return rn(t,r.line,Le(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,o=0;o<e.markedSpans.length;++o)if(i=e.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&rn(t,e,i))return!0}function on(t){t=Ze(t);for(var e=0,n=t.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;e+=s.height}return e}function an(t){if(0==t.height)return 0;var e,n=t.text.length,r=t;while(e=Ge(r)){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}r=t;while(e=Ye(r)){var o=e.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function sn(t){var e=t.display,n=t.doc;e.maxLine=Xt(n,n.first),e.maxLineLength=an(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=an(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var ln=function(t,e,n){this.text=t,He(this,e),this.height=n?n(this):1};function cn(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),ze(t),He(t,n);var i=r?r(t):1;i!=t.height&&Qt(t,i)}function un(t){t.parent=null,ze(t)}ln.prototype.lineNo=function(){return te(this)},bt(ln);var dn={},fn={};function hn(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?fn:dn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function pn(t,e){var n=T("span",null,null,l?"padding-right: .1px":null),r={pre:T("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,a=void 0;r.pos=0,r.addToken=mn,Bt(t.display.measure)&&(a=ft(o,t.doc.direction))&&(r.addToken=vn(r.addToken,a)),r.map=[];var s=e!=t.display.externalMeasured&&te(o);_n(o,r,ge(t,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=I(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=I(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Pt(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return gt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=I(r.pre.className,r.textClass||"")),r}function $n(t){var e=E("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function mn(t,e,n,r,i,o,l){if(e){var c,u=t.splitSpaces?gn(e,t.trailingSpace):e,d=t.cm.state.specialChars,f=!1;if(d.test(e)){c=document.createDocumentFragment();var h=0;while(1){d.lastIndex=h;var p=d.exec(e),$=p?p.index-h:e.length-h;if($){var m=document.createTextNode(u.slice(h,h+$));a&&s<9?c.appendChild(E("span",[m])):c.appendChild(m),t.map.push(t.pos,t.pos+$,m),t.col+=$,t.pos+=$}if(!p)break;h+=$+1;var g=void 0;if("\t"==p[0]){var v=t.cm.options.tabSize,y=v-t.col%v;g=c.appendChild(E("span",Y(y),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),t.col+=y}else"\r"==p[0]||"\n"==p[0]?(g=c.appendChild(E("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",p[0]),t.col+=1):(g=t.cm.options.specialCharPlaceholder(p[0]),g.setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(E("span",[g])):c.appendChild(g),t.col+=1);t.map.push(t.pos,t.pos+1,g),t.pos++}}else t.col+=e.length,c=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,c),a&&s<9&&(f=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||i||f||o||l){var _=n||"";r&&(_+=r),i&&(_+=i);var b=E("span",[c],_,o);if(l)for(var w in l)l.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&b.setAttribute(w,l[w]);return t.content.appendChild(b)}t.content.appendChild(c)}}function gn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var o=t.charAt(i);" "!=o||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function vn(t,e){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,f=0;f<e.length;f++)if(d=e[f],d.to>c&&d.from<=c)break;if(d.to>=u)return t(n,r,i,o,a,s,l);t(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function yn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function _n(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var a,s,l,c,u,d,f,h=i.length,p=0,$=1,m="",g=0;;){if(g==p){l=c=u=s="",f=null,d=null,g=1/0;for(var v=[],y=void 0,_=0;_<r.length;++_){var b=r[_],w=b.marker;if("bookmark"==w.type&&b.from==p&&w.widgetNode)v.push(w);else if(b.from<=p&&(null==b.to||b.to>p||w.collapsed&&b.to==p&&b.from==p)){if(null!=b.to&&b.to!=p&&g>b.to&&(g=b.to,c=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&b.from==p&&(u+=" "+w.startStyle),w.endStyle&&b.to==g&&(y||(y=[])).push(w.endStyle,b.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var x in w.attributes)(f||(f={}))[x]=w.attributes[x];w.collapsed&&(!d||qe(d.marker,w)<0)&&(d=b)}else b.from>p&&g>b.from&&(g=b.from)}if(y)for(var k=0;k<y.length;k+=2)y[k+1]==g&&(c+=" "+y[k]);if(!d||d.from==p)for(var S=0;S<v.length;++S)yn(e,0,v[S]);if(d&&(d.from||0)==p){if(yn(e,(null==d.to?h+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=h)break;var O=Math.min(h,g);while(1){if(m){var C=p+m.length;if(!d){var A=C>O?m.slice(0,O-p):m;e.addToken(e,A,a?a+l:l,u,p+A.length==g?c:"",s,f)}if(C>=O){m=m.slice(O-p),p=O;break}p=C,u=""}m=i.slice(o,o=n[$++]),a=hn(n[$++],e.cm.options)}}else for(var E=1;E<n.length;E+=2)e.addToken(e,i.slice(o,o=n[E]),hn(n[E+1],e.cm.options))}function bn(t,e,n){this.line=e,this.rest=Qe(e),this.size=this.rest?te(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=nn(t,e)}function wn(t,e,n){for(var r,i=[],o=e;o<n;o=r){var a=new bn(t.doc,Xt(t.doc,o),o);r=o+a.size,i.push(a)}return i}var xn=null;function kn(t){xn?xn.ops.push(t):t.ownsGroup=xn={ops:[t],delayedCallbacks:[]}}function Sn(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var i=t.ops[r];if(i.cursorActivityHandlers)while(i.cursorActivityCalled<i.cursorActivityHandlers.length)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}function On(t,e){var n=t.ownsGroup;if(n)try{Sn(n)}finally{xn=null,e(n)}}var Cn=null;function An(t,e){var n=$t(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);xn?r=xn.delayedCallbacks:Cn?r=Cn:(r=Cn=[],setTimeout(En,0));for(var o=function(t){r.push((function(){return n[t].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function En(){var t=Cn;Cn=null;for(var e=0;e<t.length;++e)t[e]()}function Tn(t,e,n,r){for(var i=0;i<e.changes.length;i++){var o=e.changes[i];"text"==o?In(t,e):"gutter"==o?Rn(t,e,n,r):"class"==o?Dn(t,e):"widget"==o&&jn(t,e,r)}e.changes=null}function Pn(t){return t.node==t.text&&(t.node=E("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),a&&s<8&&(t.node.style.zIndex=2)),t.node}function Bn(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=Pn(e);e.background=r.insertBefore(E("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}function Ln(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):pn(t,e)}function In(t,e){var n=e.text.className,r=Ln(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,Dn(t,e)):n&&(e.text.className=n)}function Dn(t,e){Bn(t,e),e.line.wrapClass?Pn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function Rn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=Pn(e);e.gutterBackground=E("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var a=Pn(e),s=e.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(s),a.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(E("div",re(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.display.gutterSpecs.length;++l){var c=t.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(E("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function jn(t,e,n){e.alignable&&(e.alignable=null);for(var r=k("CodeMirror-linewidget"),i=e.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&e.node.removeChild(i);Fn(t,e,n)}function Mn(t,e,n,r){var i=Ln(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),Dn(t,e),Rn(t,e,n,r),Fn(t,e,r),e.node}function Fn(t,e,n){if(Nn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)Nn(t,e.rest[r],e,n,!1)}function Nn(t,e,n,r,i){if(e.widgets)for(var o=Pn(n),a=0,s=e.widgets;a<s.length;++a){var l=s[a],c=E("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),zn(l,c,n,r),t.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),An(l,"redraw")}}function zn(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var i=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(i-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function Hn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!P(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),A(e.display.measure,E("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function Vn(t,e){for(var n=Ot(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function Un(t){return t.lineSpace.offsetTop}function qn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Wn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=A(t.measure,E("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function Gn(t){return z-t.display.nativeBarWidth}function Yn(t){return t.display.scroller.clientWidth-Gn(t)-t.display.barWidth}function Kn(t){return t.display.scroller.clientHeight-Gn(t)-t.display.barHeight}function Xn(t,e,n){var r=t.options.lineWrapping,i=r&&Yn(t);if(!e.measure.heights||r&&e.measure.width!=i){var o=e.measure.heights=[];if(r){e.measure.width=i;for(var a=e.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Zn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var i=0;i<t.rest.length;i++)if(te(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Jn(t,e){e=Ze(e);var n=te(e),r=t.display.externalMeasured=new bn(t.doc,e,n);r.lineN=n;var i=r.built=pn(t,r);return r.text=i.pre,A(t.display.lineMeasure,i.pre),r}function Qn(t,e,n,r){return nr(t,er(t,e),n,r)}function tr(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[Dr(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function er(t,e){var n=te(e),r=tr(t,n);r&&!r.text?r=null:r&&r.changes&&(Tn(t,r,n,Tr(t)),t.curOp.forceUpdate=!0),r||(r=Jn(t,e));var i=Zn(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function nr(t,e,n,r,i){e.before&&(n=-1);var o,a=n+(r||"");return e.cache.hasOwnProperty(a)?o=e.cache[a]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(Xn(t,e.view,e.rect),e.hasHeights=!0),o=sr(t,e,n,r),o.bogus||(e.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var rr,ir={left:0,right:0,top:0,bottom:0};function or(t,e,n){for(var r,i,o,a,s,l,c=0;c<t.length;c+=3)if(s=t[c],l=t[c+1],e<s?(i=0,o=1,a="left"):e<l?(i=e-s,o=i+1):(c==t.length-3||e==l&&t[c+3]>e)&&(o=l-s,i=o-1,e>=l&&(a="right")),null!=i){if(r=t[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(c&&t[c-2]==t[c-3]&&t[c-1].insertLeft)r=t[2+(c-=3)],a="left";if("right"==n&&i==l-s)while(c<t.length-3&&t[c+3]==t[c+4]&&!t[c+5].insertLeft)r=t[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function ar(t,e){var n=ir;if("left"==e){for(var r=0;r<t.length;r++)if((n=t[r]).left!=n.right)break}else for(var i=t.length-1;i>=0;i--)if((n=t[i]).left!=n.right)break;return n}function sr(t,e,n,r){var i,o=or(e.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){while(c&&ot(e.line.text.charAt(o.coverStart+c)))--c;while(o.coverStart+u<o.coverEnd&&ot(e.line.text.charAt(o.coverStart+u)))++u;if(i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():ar(S(l,c,u).getClientRects(),r),i.left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=lr(t.display.measure,i))}else{var h;c>0&&(d=r="right"),i=t.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Er(t.display),top:p.top,bottom:p.bottom}:ir}for(var $=i.top-e.rect.top,m=i.bottom-e.rect.top,g=($+m)/2,v=e.view.measure.heights,y=0;y<v.length-1;y++)if(g<v[y])break;var _=y?v[y-1]:0,b=v[y],w={left:("right"==d?i.right:i.left)-e.rect.left,right:("left"==d?i.left:i.right)-e.rect.left,top:_,bottom:b};return i.left||i.right||(w.bogus=!0),t.options.singleCursorHeightPerLine||(w.rtop=$,w.rbottom=m),w}function lr(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!jt(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}function cr(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function ur(t){t.display.externalMeasure=null,C(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)cr(t.display.view[e])}function dr(t){ur(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function fr(){return u&&m?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hr(){return u&&m?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function pr(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=Hn(t.widgets[n]));return e}function $r(t,e,n,r,i){if(!i){var o=pr(e);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=on(e);if("local"==r?a+=Un(t.display):a-=t.display.viewOffset,"page"==r||"window"==r){var s=t.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:hr());var l=s.left+("window"==r?0:fr());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function mr(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=fr(),i-=hr();else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=t.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function gr(t,e,n,r,i){return r||(r=Xt(t.doc,e.line)),$r(t,r,Qn(t,r,e.ch,i),n)}function vr(t,e,n,r,i,o){function a(e,a){var s=nr(t,i,e,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,$r(t,r,s,n)}r=r||Xt(t.doc,e.line),i||(i=er(t,r));var s=ft(r,t.doc.direction),l=e.ch,c=e.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(t,e,n){var r=s[e],i=1==r.level;return a(n?t-1:t,i!=n)}var d=ut(s,l,c),f=ct,h=u(l,d,"before"==c);return null!=f&&(h.other=u(l,f,"before"!=c)),h}function yr(t,e){var n=0;e=de(t.doc,e),t.options.lineWrapping||(n=Er(t.display)*e.ch);var r=Xt(t.doc,e.line),i=on(r)+Un(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function _r(t,e,n,r,i){var o=ie(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function br(t,e,n){var r=t.doc;if(n+=t.display.viewOffset,n<0)return _r(r.first,0,null,-1,-1);var i=ee(r,n),o=r.first+r.size-1;if(i>o)return _r(r.first+r.size-1,Xt(r,o).text.length,null,1,1);e<0&&(e=0);for(var a=Xt(r,i);;){var s=Sr(t,a,i,e,n),l=Ke(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Xt(r,i=c.line)}}function wr(t,e,n,r){r-=pr(e);var i=e.text.length,o=st((function(e){return nr(t,n,e-1).bottom<=r}),i,0);return i=st((function(e){return nr(t,n,e).top>r}),o,i),{begin:o,end:i}}function xr(t,e,n,r){n||(n=er(t,e));var i=$r(t,e,nr(t,n,r),"line").top;return wr(t,e,n,i)}function kr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function Sr(t,e,n,r,i){i-=on(e);var o=er(t,e),a=pr(e),s=0,l=e.text.length,c=!0,u=ft(e,t.doc.direction);if(u){var d=(t.options.lineWrapping?Cr:Or)(t,e,n,o,u,r,i);c=1!=d.level,s=c?d.from:d.to-1,l=c?d.to:d.from-1}var f,h,p=null,$=null,m=st((function(e){var n=nr(t,o,e);return n.top+=a,n.bottom+=a,!!kr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=e,$=n),!0)}),s,l),g=!1;if($){var v=r-$.left<$.right-r,y=v==c;m=p+(y?0:1),h=y?"after":"before",f=v?$.left:$.right}else{c||m!=l&&m!=s||m++,h=0==m?"after":m==e.text.length?"before":nr(t,o,m-(c?1:0)).bottom+a<=i==c?"after":"before";var _=vr(t,ie(n,m,h),"line",e,o);f=_.left,g=i<_.top?-1:i>=_.bottom?1:0}return m=at(e.text,m,1),_r(n,m,h,g,r-f)}function Or(t,e,n,r,i,o,a){var s=st((function(s){var l=i[s],c=1!=l.level;return kr(vr(t,ie(n,c?l.to:l.from,c?"before":"after"),"line",e,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=vr(t,ie(n,c?l.from:l.to,c?"after":"before"),"line",e,r);kr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function Cr(t,e,n,r,i,o,a){var s=wr(t,e,r,a),l=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f<i.length;f++){var h=i[f];if(!(h.from>=c||h.to<=l)){var p=1!=h.level,$=nr(t,r,p?Math.min(c,h.to)-1:Math.max(l,h.from)).right,m=$<o?o-$+1e9:$-o;(!u||d>m)&&(u=h,d=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Ar(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==rr){rr=E("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)rr.appendChild(document.createTextNode("x")),rr.appendChild(E("br"));rr.appendChild(document.createTextNode("x"))}A(t.measure,rr);var n=rr.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),C(t.measure),n||1}function Er(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=E("span","xxxxxxxxxx"),n=E("pre",[e],"CodeMirror-line-like");A(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function Tr(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Pr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function Pr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Br(t){var e=Ar(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/Er(t.display)-3);return function(i){if(nn(t.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*e:o+e}}function Lr(t){var e=t.doc,n=Br(t);e.iter((function(t){var e=n(t);e!=t.height&&Qt(t,e)}))}function Ir(t,e,n,r){var i=t.display;if(!n&&"true"==Ot(e).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=e.clientX-s.left,a=e.clientY-s.top}catch(d){return null}var l,c=br(t,o,a);if(r&&c.xRel>0&&(l=Xt(t.doc,c.line).text).length==c.ch){var u=M(l,l.length,t.options.tabSize)-l.length;c=ie(c.line,Math.max(0,Math.round((o-Wn(t.display).left)/Er(t.display))-u))}return c}function Dr(t,e){if(e>=t.display.viewTo)return null;if(e-=t.display.viewFrom,e<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if(e-=n[r].size,e<0)return r}function Rr(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var i=t.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Ee&&tn(t.doc,e)<i.viewTo&&Mr(t);else if(n<=i.viewFrom)Ee&&en(t.doc,n+r)>i.viewFrom?Mr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)Mr(t);else if(e<=i.viewFrom){var o=Fr(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Mr(t)}else if(n>=i.viewTo){var a=Fr(t,e,e,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Mr(t)}else{var s=Fr(t,e,e,-1),l=Fr(t,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(wn(t,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Mr(t)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:e<c.lineN+c.size&&(i.externalMeasured=null))}function jr(t,e,n){t.curOp.viewChanged=!0;var r=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var o=r.view[Dr(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==N(a,n)&&a.push(n)}}}function Mr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Fr(t,e,n,r){var i,o=Dr(t,e),a=t.display.view;if(!Ee||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=e){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-e,o++}else i=s-e;e+=i,n+=i}while(tn(t.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Nr(t,e,n){var r=t.display,i=r.view;0==i.length||e>=r.viewTo||n<=r.viewFrom?(r.view=wn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=wn(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(Dr(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(wn(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Dr(t,n)))),r.viewTo=n}function zr(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var i=e[r];i.hidden||i.node&&!i.changes||++n}return n}function Hr(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Vr(t,e){void 0===e&&(e=!0);for(var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(e||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var l=s.empty();(l||t.options.showCursorWhenSelecting)&&Ur(t,s.head,i),l||Wr(t,s,o)}}return r}function Ur(t,e,n){var r=vr(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(E("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var o=n.appendChild(E("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function qr(t,e){return t.top-e.top||t.left-e.left}function Wr(t,e,n){var r=t.display,i=t.doc,o=document.createDocumentFragment(),a=Wn(t.display),s=a.left,l=Math.max(r.sizerWidth,Yn(t)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),o.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?l-t:n)+"px;\n height: "+(r-e)+"px"))}function d(e,n,r){var o,a,d=Xt(i,e),f=d.text.length;function h(n,r){return gr(t,ie(e,n),"div",d,r)}function p(e,n,r){var i=xr(t,d,null,e),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1);return h(a,o)[o]}var $=ft(d,i.direction);return lt($,n||0,null==r?f:r,(function(t,e,i,d){var m="ltr"==i,g=h(t,m?"left":"right"),v=h(e-1,m?"right":"left"),y=null==n&&0==t,_=null==r&&e==f,b=0==d,w=!$||d==$.length-1;if(v.top-g.top<=3){var x=(c?y:_)&&b,k=(c?_:y)&&w,S=x?s:(m?g:v).left,O=k?l:(m?v:g).right;u(S,g.top,O-S,g.bottom)}else{var C,A,E,T;m?(C=c&&y&&b?s:g.left,A=c?l:p(t,i,"before"),E=c?s:p(e,i,"after"),T=c&&_&&w?l:v.right):(C=c?p(t,i,"before"):s,A=!c&&y&&b?l:g.right,E=!c&&_&&w?s:v.left,T=c?p(e,i,"after"):l),u(C,g.top,A-C,g.bottom),g.bottom<v.top&&u(s,g.bottom,null,v.top),u(E,v.top,T-E,v.bottom)}(!o||qr(g,o)<0)&&(o=g),qr(v,o)<0&&(o=v),(!a||qr(g,a)<0)&&(a=g),qr(v,a)<0&&(a=v)})),{start:o,end:a}}var f=e.from(),h=e.to();if(f.line==h.line)d(f.line,f.ch,h.ch);else{var p=Xt(i,f.line),$=Xt(i,h.line),m=Ze(p)==Ze($),g=d(f.line,f.ch,m?p.text.length+1:null).end,v=d(h.line,m?0:null,h.ch).start;m&&(g.top<v.top-2?(u(g.right,g.top,null,g.bottom),u(s,v.top,v.left,v.bottom)):u(g.right,g.top,v.left-g.right,g.bottom)),g.bottom<v.top&&u(s,g.bottom,null,v.top)}n.appendChild(o)}function Gr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||Zr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Yr(t){t.state.focused||(t.display.input.focus(),Xr(t))}function Kr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Zr(t))}),100)}function Xr(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(gt(t,"focus",t,e),t.state.focused=!0,L(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Gr(t))}function Zr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(gt(t,"blur",t,e),t.state.focused=!1,O(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Jr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=0;r<e.view.length;r++){var i=e.view[r],o=t.options.lineWrapping,l=void 0,c=0;if(!i.hidden){if(a&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;l=u-n,n=u}else{var d=i.node.getBoundingClientRect();l=d.bottom-d.top,!o&&i.text.firstChild&&(c=i.text.firstChild.getBoundingClientRect().right-d.left-1)}var f=i.line.height-l;if((f>.005||f<-.005)&&(Qt(i.line,l),Qr(i.line),i.rest))for(var h=0;h<i.rest.length;h++)Qr(i.rest[h]);if(c>t.display.sizerWidth){var p=Math.ceil(c/Er(t.display));p>t.display.maxLineLength&&(t.display.maxLineLength=p,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Qr(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ti(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-Un(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,o=ee(e,r),a=ee(e,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=ee(e,on(Xt(e,s))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=a&&(o=ee(e,on(Xt(e,l))-t.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ei(t,e){if(!vt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null;if(e.top+r.top<0?i=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=E("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Un(t.display))+"px;\n height: "+(e.bottom-e.top+Gn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}function ni(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(e=e.ch?ie(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e,n="before"==e.sticky?ie(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var a=!1,s=vr(t,e),l=n&&n!=e?vr(t,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var c=ii(t,i),u=t.doc.scrollTop,d=t.doc.scrollLeft;if(null!=c.scrollTop&&(di(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(hi(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ri(t,e){var n=ii(t,e);null!=n.scrollTop&&di(t,n.scrollTop),null!=n.scrollLeft&&hi(t,n.scrollLeft)}function ii(t,e){var n=t.display,r=Ar(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=Kn(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+qn(n),l=e.top<r,c=e.bottom>s-r;if(e.top<i)a.scrollTop=l?0:e.top;else if(e.bottom>i+o){var u=Math.min(e.top,(c?s:e.bottom)-o);u!=i&&(a.scrollTop=u)}var d=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,f=Yn(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),h=e.right-e.left>f;return h&&(e.right=e.left+f),e.left<10?a.scrollLeft=0:e.left<d?a.scrollLeft=Math.max(0,e.left-(h?0:10)):e.right>f+d-3&&(a.scrollLeft=e.right+(h?0:10)-f),a}function oi(t,e){null!=e&&(ci(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function ai(t){ci(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function si(t,e,n){null==e&&null==n||ci(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function li(t,e){ci(t),t.curOp.scrollToPos=e}function ci(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;var n=yr(t,e.from),r=yr(t,e.to);ui(t,n,r,e.margin)}}function ui(t,e,n,r){var i=ii(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});si(t,i.scrollLeft,i.scrollTop)}function di(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||Hi(t,{top:e}),fi(t,e,!0),n&&Hi(t),Ii(t,100))}function fi(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function hi(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,Wi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function pi(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+qn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Gn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var $i=function(t,e,n){this.cm=n;var r=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),pt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),pt(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};$i.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},$i.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},$i.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},$i.prototype.zeroWidthHack=function(){var t=v&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},$i.prototype.enableZeroWidthBar=function(t,e,n){function r(){var i=t.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=t?t.style.pointerEvents="none":e.set(1e3,r)}t.style.pointerEvents="auto",e.set(1e3,r)},$i.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var mi=function(){};function gi(t,e){e||(e=pi(t));var n=t.display.barWidth,r=t.display.barHeight;vi(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Jr(t),vi(t,pi(t)),n=t.display.barWidth,r=t.display.barHeight}function vi(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}mi.prototype.update=function(){return{bottom:0,right:0}},mi.prototype.setScrollLeft=function(){},mi.prototype.setScrollTop=function(){},mi.prototype.clear=function(){};var yi={native:$i,null:mi};function _i(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&O(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new yi[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),pt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?hi(t,e):di(t,e)}),t),t.display.scrollbars.addClass&&L(t.display.wrapper,t.display.scrollbars.addClass)}var bi=0;function wi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++bi},kn(t.curOp)}function xi(t){var e=t.curOp;e&&On(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;ki(t)}))}function ki(t){for(var e=t.ops,n=0;n<e.length;n++)Si(e[n]);for(var r=0;r<e.length;r++)Oi(e[r]);for(var i=0;i<e.length;i++)Ci(e[i]);for(var o=0;o<e.length;o++)Ai(e[o]);for(var a=0;a<e.length;a++)Ei(e[a])}function Si(t){var e=t.cm,n=e.display;ji(e),t.updateMaxLine&&sn(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Ri(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Oi(t){t.updatedDisplay=t.mustUpdate&&Ni(t.cm,t.update)}function Ci(t){var e=t.cm,n=e.display;t.updatedDisplay&&Jr(e),t.barMeasure=pi(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Qn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Gn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Yn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Ai(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&hi(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==B();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&gi(e,t.barMeasure),t.updatedDisplay&&qi(e,t.barMeasure),t.selectionChanged&&Gr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Yr(t.cm)}function Ei(t){var e=t.cm,n=e.display,r=e.doc;if(t.updatedDisplay&&zi(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&fi(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&hi(e,t.scrollLeft,!0,!0),t.scrollToPos){var i=ni(e,de(r,t.scrollToPos.from),de(r,t.scrollToPos.to),t.scrollToPos.margin);ei(e,i)}var o=t.maybeHiddenMarkers,a=t.maybeUnhiddenMarkers;if(o)for(var s=0;s<o.length;++s)o[s].lines.length||gt(o[s],"hide");if(a)for(var l=0;l<a.length;++l)a[l].lines.length&&gt(a[l],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&gt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Ti(t,e){if(t.curOp)return e();wi(t);try{return e()}finally{xi(t)}}function Pi(t,e){return function(){if(t.curOp)return e.apply(t,arguments);wi(t);try{return e.apply(t,arguments)}finally{xi(t)}}}function Bi(t){return function(){if(this.curOp)return t.apply(this,arguments);wi(this);try{return t.apply(this,arguments)}finally{xi(this)}}}function Li(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);wi(e);try{return t.apply(this,arguments)}finally{xi(e)}}}function Ii(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,R(Di,t))}function Di(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=ve(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?Wt(e.mode,r.state):null,l=me(t,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=t.options.maxHighlightLength&&ye(t,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Ii(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&Ti(t,(function(){for(var e=0;e<i.length;e++)jr(t,i[e],"text")}))}}var Ri=function(t,e,n){var r=t.display;this.viewport=e,this.visible=ti(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Yn(t),this.force=n,this.dims=Tr(t),this.events=[]};function ji(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Gn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Gn(t)+"px",e.scrollbarsClipped=!0)}function Mi(t){if(t.hasFocus())return null;var e=B();if(!e||!P(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&P(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Fi(t){if(t&&t.activeElt&&t.activeElt!=B()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&P(document.body,t.anchorNode)&&P(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}function Ni(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return Mr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==zr(t))return!1;Gi(t)&&(Mr(t),e.dims=Tr(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ee&&(o=tn(t.doc,o),a=en(t.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;Nr(t,o,a),n.viewOffset=on(Xt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=zr(t);if(!s&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Mi(t);return l>4&&(n.lineDiv.style.display="none"),Vi(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Fi(c),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Ii(t,400)),n.updateLineNumbers=null,!0}function zi(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Yn(t))r&&(e.visible=ti(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+qn(t.display)-Kn(t),n.top)}),e.visible=ti(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!Ni(t,e))break;Jr(t);var i=pi(t);Hr(t),gi(t,i),qi(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Hi(t,e){var n=new Ri(t,e);if(Ni(t,n)){Jr(t),zi(t,n);var r=pi(t);Hr(t),gi(t,r),qi(t,r),n.finish()}}function Vi(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return l&&v&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var f=c[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){while(a!=f.node)a=s(a);var h=i&&null!=e&&e<=u&&f.lineNumber;f.changes&&(N(f.changes,"gutter")>-1&&(h=!1),Tn(t,f,u,n)),h&&(C(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(re(t.options,u)))),a=f.node.nextSibling}else{var p=Mn(t,f,u,n);o.insertBefore(p,a)}u+=f.size}while(a)a=s(a)}function Ui(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function qi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Gn(t)+"px"}function Wi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=Pr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){t.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function Gi(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=re(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(E("div",[E("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Ui(t.display),!0}return!1}function Yi(t,e){for(var n=[],r=!1,i=0;i<t.length;i++){var o=t[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!e)continue;r=!0}n.push({className:o,style:a})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Ki(t){var e=t.gutters,n=t.gutterSpecs;C(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=e.appendChild(E("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",Ui(t)}function Xi(t){Ki(t.display),Rr(t),Wi(t)}function Zi(t,e,r,i){var o=this;this.input=r,o.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=T("div",null,"CodeMirror-code"),o.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=E("div",null,"CodeMirror-cursors"),o.measure=E("div",null,"CodeMirror-measure"),o.lineMeasure=E("div",null,"CodeMirror-measure"),o.lineSpace=T("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=T("div",[o.lineSpace],"CodeMirror-lines");o.mover=E("div",[c],null,"position: relative"),o.sizer=E("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=E("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),o.gutters=E("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=E("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=E("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&g||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Yi(i.gutters,i.lineNumbers),Ki(o),r.init(o)}Ri.prototype.signal=function(t,e){_t(t,e)&&this.events.push(arguments)},Ri.prototype.finish=function(){for(var t=0;t<this.events.length;t++)gt.apply(null,this.events[t])};var Ji=0,Qi=null;function to(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function eo(t){var e=to(t);return e.x*=Qi,e.y*=Qi,e}function no(t,e){var r=to(e),i=r.x,o=r.y,a=t.display,s=a.scroller,c=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&c||o&&u){if(o&&v&&l)t:for(var f=e.target,h=a.view;f!=s;f=f.parentNode)for(var p=0;p<h.length;p++)if(h[p].node==f){t.display.currentWheelTarget=f;break t}if(i&&!n&&!d&&null!=Qi)return o&&u&&di(t,Math.max(0,s.scrollTop+o*Qi)),hi(t,Math.max(0,s.scrollLeft+i*Qi)),(!o||o&&u)&&wt(e),void(a.wheelStartX=null);if(o&&null!=Qi){var $=o*Qi,m=t.doc.scrollTop,g=m+a.wrapper.clientHeight;$<0?m=Math.max(0,m+$-50):g=Math.min(t.doc.height,g+$+50),Hi(t,{top:m,bottom:g})}Ji<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var t=s.scrollLeft-a.wheelStartX,e=s.scrollTop-a.wheelStartY,n=e&&a.wheelDY&&e/a.wheelDY||t&&a.wheelDX&&t/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(Qi=(Qi*Ji+n)/(Ji+1),++Ji)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?Qi=-.53:n?Qi=15:u?Qi=-.7:f&&(Qi=-1/3);var ro=function(t,e){this.ranges=t,this.primIndex=e};ro.prototype.primary=function(){return this.ranges[this.primIndex]},ro.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!ae(n.anchor,r.anchor)||!ae(n.head,r.head))return!1}return!0},ro.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new io(se(this.ranges[e].anchor),se(this.ranges[e].head));return new ro(t,this.primIndex)},ro.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ro.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(oe(e,r.from())>=0&&oe(t,r.to())<=0)return n}return-1};var io=function(t,e){this.anchor=t,this.head=e};function oo(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return oe(t.from(),e.from())})),n=N(e,i);for(var o=1;o<e.length;o++){var a=e[o],s=e[o-1],l=oe(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ce(s.from(),a.from()),u=le(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new io(d?u:c,d?c:u))}}return new ro(e,n)}function ao(t,e){return new ro([new io(t,e||t)],0)}function so(t){return t.text?ie(t.from.line+t.text.length-1,K(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function lo(t,e){if(oe(t,e.from)<0)return t;if(oe(t,e.to)<=0)return so(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=so(e).ch-e.to.ch),ie(n,r)}function co(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new io(lo(i.anchor,e),lo(i.head,e)))}return oo(t.cm,n,t.sel.primIndex)}function uo(t,e,n){return t.line==e.line?ie(n.line,t.ch-e.ch+n.ch):ie(n.line+(t.line-e.line),t.ch)}function fo(t,e,n){for(var r=[],i=ie(t.first,0),o=i,a=0;a<e.length;a++){var s=e[a],l=uo(s.from,i,o),c=uo(so(s),i,o);if(i=s.to,o=c,"around"==n){var u=t.sel.ranges[a],d=oe(u.head,u.anchor)<0;r[a]=new io(d?c:l,d?l:c)}else r[a]=new io(l,l)}return new ro(r,t.sel.primIndex)}function ho(t){t.doc.mode=Vt(t.options,t.doc.modeOption),po(t)}function po(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Ii(t,100),t.state.modeGen++,t.curOp&&Rr(t)}function $o(t,e){return 0==e.from.ch&&0==e.to.ch&&""==K(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function mo(t,e,n,r){function i(t){return n?n[t]:null}function o(t,n,i){cn(t,n,i,r),An(t,"change",t,e)}function a(t,e){for(var n=[],o=t;o<e;++o)n.push(new ln(c[o],i(o),r));return n}var s=e.from,l=e.to,c=e.text,u=Xt(t,s.line),d=Xt(t,l.line),f=K(c),h=i(c.length-1),p=l.line-s.line;if(e.full)t.insert(0,a(0,c.length)),t.remove(c.length,t.size-c.length);else if($o(t,e)){var $=a(0,c.length-1);o(d,d.text,h),p&&t.remove(s.line,p),$.length&&t.insert(s.line,$)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+f+u.text.slice(l.ch),h);else{var m=a(1,c.length-1);m.push(new ln(f+u.text.slice(l.ch),h,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),t.insert(s.line+1,m)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),t.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,f+d.text.slice(l.ch),h);var g=a(1,c.length-1);p>1&&t.remove(s.line+1,p-1),t.insert(s.line+1,g)}An(t,"change",t,e)}function go(t,e,n){function r(t,i,o){if(t.linked)for(var a=0;a<t.linked.length;++a){var s=t.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(e(s.doc,l),r(s.doc,t,l))}}}r(t,null,!0)}function vo(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,Lr(t),ho(t),yo(t),t.options.lineWrapping||sn(t),t.options.mode=e.modeOption,Rr(t)}function yo(t){("rtl"==t.doc.direction?L:O)(t.display.lineDiv,"CodeMirror-rtl")}function _o(t){Ti(t,(function(){yo(t),Rr(t)}))}function bo(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function wo(t,e){var n={from:se(e.from),to:so(e),text:Zt(t,e.from,e.to)};return Eo(t,n,e.from.line,e.to.line+1),go(t,(function(t){return Eo(t,n,e.from.line,e.to.line+1)}),!0),n}function xo(t){while(t.length){var e=K(t);if(!e.ranges)break;t.pop()}}function ko(t,e){return e?(xo(t.done),K(t.done)):t.done.length&&!K(t.done).ranges?K(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),K(t.done)):void 0}function So(t,e,n,r){var i=t.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=ko(i,i.lastOp==r)))a=K(o.changes),0==oe(e.from,e.to)&&0==oe(e.from,a.to)?a.to=so(e):o.changes.push(wo(t,e));else{var l=K(i.done);l&&l.ranges||Ao(t.sel,i.done),o={changes:[wo(t,e)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,a||gt(t,"historyAdded")}function Oo(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function Co(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Oo(t,o,K(i.done),e))?i.done[i.done.length-1]=e:Ao(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&xo(i.undone)}function Ao(t,e){var n=K(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Eo(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function To(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Po(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(To(n[i]));return r}function Bo(t,e){var n=Po(t,e),r=Me(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)t:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue t;o.push(l)}else a&&(n[i]=a)}return n}function Lo(t,e,n){for(var r=[],i=0;i<t.length;++i){var o=t[i];if(o.ranges)r.push(n?ro.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),e)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&N(e,Number(u[1]))>-1&&(K(s)[d]=c[d],delete c[d])}}}return r}function Io(t,e,n,r){if(r){var i=t.anchor;if(n){var o=oe(e,i)<0;o!=oe(n,i)<0?(i=e,e=n):o!=oe(e,n)<0&&(e=n)}return new io(i,e)}return new io(n||e,e)}function Do(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),zo(t,new ro([Io(t.sel.primary(),e,n,i)],0),r)}function Ro(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)r[o]=Io(t.sel.ranges[o],e[o],null,i);var a=oo(t.cm,r,t.sel.primIndex);zo(t,a,n)}function jo(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,zo(t,oo(t.cm,i,t.sel.primIndex),r)}function Mo(t,e,n,r){zo(t,ao(e,n),r)}function Fo(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new io(de(t,e[n].anchor),de(t,e[n].head))},origin:n&&n.origin};return gt(t,"beforeSelectionChange",t,r),t.cm&&gt(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?oo(t.cm,r.ranges,r.ranges.length-1):e}function No(t,e,n){var r=t.history.done,i=K(r);i&&i.ranges?(r[r.length-1]=e,Ho(t,e,n)):zo(t,e,n)}function zo(t,e,n){Ho(t,e,n),Co(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function Ho(t,e,n){(_t(t,"beforeSelectionChange")||t.cm&&_t(t.cm,"beforeSelectionChange"))&&(e=Fo(t,e,n));var r=n&&n.bias||(oe(e.primary().head,t.sel.primary().head)<0?-1:1);Vo(t,qo(t,e,r,!0)),n&&!1===n.scroll||!t.cm||ai(t.cm)}function Vo(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,yt(t.cm)),An(t,"cursorActivity",t))}function Uo(t){Vo(t,qo(t,t.sel,null,!1))}function qo(t,e,n,r){for(var i,o=0;o<e.ranges.length;o++){var a=e.ranges[o],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=Go(t,a.anchor,s&&s.anchor,n,r),c=Go(t,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=e.ranges.slice(0,o)),i[o]=new io(l,c))}return i?oo(t.cm,i,e.primIndex):e}function Wo(t,e,n,r,i){var o=Xt(t,e.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(u?s.to>=e.ch:s.to>e.ch))){if(i&&(gt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?u:c)&&(d=Yo(t,d,-r,d&&d.line==e.line?o:null)),d&&d.line==e.line&&(f=oe(d,n))&&(r<0?f<0:f>0))return Wo(t,d,e,r,i)}var h=l.find(r<0?-1:1);return(r<0?c:u)&&(h=Yo(t,h,r,h.line==e.line?o:null)),h?Wo(t,h,e,r,i):null}}return e}function Go(t,e,n,r,i){var o=r||1,a=Wo(t,e,n,o,i)||!i&&Wo(t,e,n,o,!0)||Wo(t,e,n,-o,i)||!i&&Wo(t,e,n,-o,!0);return a||(t.cantEdit=!0,ie(t.first,0))}function Yo(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?de(t,ie(e.line-1)):null:n>0&&e.ch==(r||Xt(t,e.line)).text.length?e.line<t.first+t.size-1?ie(e.line+1,0):null:new ie(e.line,e.ch+n)}function Ko(t){t.setSelection(ie(t.firstLine(),0),ie(t.lastLine()),V)}function Xo(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,i,o){e&&(r.from=de(t,e)),n&&(r.to=de(t,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),gt(t,"beforeChange",t,r),t.cm&&gt(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Zo(t,e,n){if(t.cm){if(!t.cm.curOp)return Pi(t.cm,Zo)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"))||(e=Xo(t,e,!0),e)){var r=Ae&&!n&&Ne(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)Jo(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else Jo(t,e)}}function Jo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=oe(e.from,e.to)){var n=co(t,e);So(t,e,n,t.cm?t.cm.curOp.id:NaN),ea(t,e,n,Me(t,e));var r=[];go(t,(function(t,n){n||-1!=N(r,t.history)||(aa(t.history,e),r.push(t.history)),ea(t,e,null,Me(t,e))}))}}function Qo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,c=0;c<s.length;c++)if(i=s[c],n?i.ranges&&!i.equals(t.sel):!i.ranges)break;if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=s.pop(),!i.ranges){if(r)return void s.push(i);break}if(Ao(i,l),n&&!i.equals(t.sel))return void zo(t,i,{clearRedo:!1});a=i}var u=[];Ao(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=e,d&&!Xo(t,r,!1))return s.length=0,{};u.push(wo(t,r));var o=n?co(t,r):K(s);ea(t,r,o,Bo(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:so(r)});var a=[];go(t,(function(t,e){e||-1!=N(a,t.history)||(aa(t.history,r),a.push(t.history)),ea(t,r,null,Bo(t,r))}))},h=i.changes.length-1;h>=0;--h){var p=f(h);if(p)return p.v}}}}function ta(t,e){if(0!=e&&(t.first+=e,t.sel=new ro(X(t.sel.ranges,(function(t){return new io(ie(t.anchor.line+e,t.anchor.ch),ie(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){Rr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)jr(t.cm,r,"gutter")}}function ea(t,e,n,r){if(t.cm&&!t.cm.curOp)return Pi(t.cm,ea)(t,e,n,r);if(e.to.line<t.first)ta(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);ta(t,i),e={from:ie(t.first,0),to:ie(e.to.line+i,e.to.ch),text:[K(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:ie(o,Xt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Zt(t,e.from,e.to),n||(n=co(t,e)),t.cm?na(t.cm,e,r):mo(t,e,r),Ho(t,n,V),t.cantEdit&&Go(t,ie(t.firstLine(),0))&&(t.cantEdit=!1)}}function na(t,e,n){var r=t.doc,i=t.display,o=e.from,a=e.to,s=!1,l=o.line;t.options.lineWrapping||(l=te(Ze(Xt(r,o.line))),r.iter(l,a.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&yt(t),mo(r,e,n,Br(t)),t.options.lineWrapping||(r.iter(l,o.line+e.text.length,(function(t){var e=an(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),Ce(r,o.line),Ii(t,400);var c=e.text.length-(a.line-o.line)-1;e.full?Rr(t):o.line!=a.line||1!=e.text.length||$o(t.doc,e)?Rr(t,o.line,a.line+1,c):jr(t,o.line,"text");var u=_t(t,"changes"),d=_t(t,"change");if(d||u){var f={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};d&&An(t,"change",t,f),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(f)}t.display.selForContextMenu=null}function ra(t,e,n,r,i){var o;r||(r=n),oe(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof e&&(e=t.splitLines(e)),Zo(t,{from:n,to:r,text:e,origin:i})}function ia(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function oa(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i],a=!0;if(o.ranges){o.copied||(o=t[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)ia(o.ranges[s].anchor,e,n,r),ia(o.ranges[s].head,e,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=ie(c.from.line+r,c.from.ch),c.to=ie(c.to.line+r,c.to.ch);else if(e<=c.to.line){a=!1;break}}a||(t.splice(0,i+1),i=0)}}}function aa(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;oa(t.done,n,r,i),oa(t.undone,n,r,i)}function sa(t,e,n,r){var i=e,o=e;return"number"==typeof e?o=Xt(t,ue(t,e)):i=te(e),null==i?null:(r(o,i)&&t.cm&&jr(t.cm,i,n),o)}function la(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function ca(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var i=t[r];e+=i.chunkSize(),n+=i.height,i.parent=this}this.size=e,this.height=n,this.parent=null}io.prototype.from=function(){return ce(this.anchor,this.head)},io.prototype.to=function(){return le(this.anchor,this.head)},io.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var i=this.lines[n];this.height-=i.height,un(i),An(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},ca.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(t<i){var o=Math.min(e,i-t),a=r.height;if(r.removeInner(t,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(e-=o))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof la))){var s=[];this.collapse(s),this.children=[new la(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<=o){if(i.insertInner(t,e,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new la(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=t.children.splice(t.children.length-5,5),n=new ca(e);if(t.parent){t.size-=n.size,t.height-=n.height;var r=N(t.parent.children,t);t.parent.children.splice(r+1,0,n)}else{var i=new ca(t.children);i.parent=t,t.children=[i,n],t=i}n.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<o){var a=Math.min(e,o-t);if(i.iterN(t,a,n))return!0;if(0==(e-=a))break;t=0}else t-=o}}};var ua=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function da(t,e,n){on(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&oi(t,n)}function fa(t,e,n,r){var i=new ua(t,n,r),o=t.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),sa(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!nn(t,e)){var r=on(e)<t.scrollTop;Qt(e,e.height+Hn(i)),r&&oi(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&An(o,"lineWidgetAdded",o,i,"number"==typeof e?e:te(e)),i}ua.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=te(n);if(null!=r&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(n.widgets=null);var o=Hn(this);Qt(n,Math.max(0,n.height-o)),t&&(Ti(t,(function(){da(t,n,-o),jr(t,r,"widget")})),An(t,"lineWidgetCleared",t,this,r))}},ua.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Hn(this)-e;i&&(nn(this.doc,r)||Qt(r,r.height+i),n&&Ti(n,(function(){n.curOp.forceUpdate=!0,da(n,r,i),An(n,"lineWidgetChanged",n,t,te(r))})))},bt(ua);var ha=0,pa=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++ha};function $a(t,e,n,r,i){if(r&&r.shared)return ga(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return Pi(t.cm,$a)(t,e,n,r,i);var o=new pa(t,i),a=oe(e,n);if(r&&j(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=T("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Xe(t,e.line,e,n,o)||e.line!=n.line&&Xe(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pe()}o.addToHistory&&So(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,l=e.line,c=t.cm;if(t.iter(l,n.line+1,(function(t){c&&o.collapsed&&!c.options.lineWrapping&&Ze(t)==c.display.maxLine&&(s=!0),o.collapsed&&l!=e.line&&Qt(t,0),De(t,new Be(o,l==e.line?e.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){nn(t,e)&&Qt(e,0)})),o.clearOnEnter&&pt(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Te(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++ha,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Rr(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=e.line;u<=n.line;u++)jr(c,u,"text");o.atomic&&Uo(c.doc),An(c,"markerAdded",c,o)}return o}pa.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&wi(t),_t(this,"clear")){var n=this.find();n&&An(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Le(a.markedSpans,this);t&&!this.collapsed?jr(t,te(a),"text"):t&&(null!=s.to&&(i=te(a)),null!=s.from&&(r=te(a))),a.markedSpans=Ie(a.markedSpans,s),null==s.from&&this.collapsed&&!nn(this.doc,a)&&t&&Qt(a,Ar(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Ze(this.lines[l]),u=an(c);u>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&Rr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Uo(t.doc)),t&&An(t,"markerCleared",t,this,r,i),e&&xi(t),this.parent&&this.parent.clear()}},pa.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Le(o.markedSpans,this);if(null!=a.from&&(n=ie(e?o:te(o),a.from),-1==t))return n;if(null!=a.to&&(r=ie(e?o:te(o),a.to),1==t))return r}return n&&{from:n,to:r}},pa.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&Ti(r,(function(){var i=e.line,o=te(e.line),a=tr(r,o);if(a&&(cr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!nn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Hn(n)-s;l&&Qt(i,i.height+l)}An(r,"markerChanged",r,t)}))},pa.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=N(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},pa.prototype.detachLine=function(t){if(this.lines.splice(N(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},bt(pa);var ma=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function ga(t,e,n,r,i){r=j(r),r.shared=!1;var o=[$a(t,e,n,r,i)],a=o[0],s=r.widgetNode;return go(t,(function(t){s&&(r.widgetNode=s.cloneNode(!0)),o.push($a(t,de(t,e),de(t,n),r,i));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;a=K(o)})),new ma(o,a)}function va(t){return t.findMarks(ie(t.first,0),t.clipPos(ie(t.lastLine())),(function(t){return t.parent}))}function ya(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),o=t.clipPos(i.from),a=t.clipPos(i.to);if(oe(o,a)){var s=$a(t,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function _a(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];go(n.primary.doc,(function(t){return r.push(t)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==N(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}ma.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();An(this,"clear")}},ma.prototype.find=function(t,e){return this.primary.find(t,e)},bt(ma);var ba=0,wa=function(t,e,n,r,i){if(!(this instanceof wa))return new wa(t,e,n,r,i);null==n&&(n=0),ca.call(this,[new la([new ln("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ie(n,0);this.sel=ao(o),this.history=new bo(null),this.id=++ba,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),mo(this,{from:o,to:o,text:t}),zo(this,ao(o),V)};wa.prototype=Q(ca.prototype,{constructor:wa,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Jt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:Li((function(t){var e=ie(this.first,0),n=this.first+this.size-1;Zo(this,{from:e,to:ie(n,Xt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&si(this.cm,0,0),zo(this,ao(e),V)})),replaceRange:function(t,e,n,r){e=de(this,e),n=n?de(this,n):e,ra(this,t,e,n,r)},getRange:function(t,e,n){var r=Zt(this,de(this,t),de(this,e));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(ne(this,t))return Xt(this,t)},getLineNumber:function(t){return te(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Xt(this,t)),Ze(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return de(this,t)},getCursor:function(t){var e,n=this.sel.primary();return e=null==t||"head"==t?n.head:"anchor"==t?n.anchor:"end"==t||"to"==t||!1===t?n.to():n.from(),e},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Li((function(t,e,n){Mo(this,de(this,"number"==typeof t?ie(t,e||0):t),null,n)})),setSelection:Li((function(t,e,n){Mo(this,de(this,t),de(this,e||t),n)})),extendSelection:Li((function(t,e,n){Do(this,de(this,t),e&&de(this,e),n)})),extendSelections:Li((function(t,e){Ro(this,he(this,t),e)})),extendSelectionsBy:Li((function(t,e){var n=X(this.sel.ranges,t);Ro(this,he(this,n),e)})),setSelections:Li((function(t,e,n){if(t.length){for(var r=[],i=0;i<t.length;i++)r[i]=new io(de(this,t[i].anchor),de(this,t[i].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),zo(this,oo(this.cm,r,e),n)}})),addSelection:Li((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new io(de(this,t),de(this,e||t))),zo(this,oo(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var i=Zt(this,n[r].from(),n[r].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Zt(this,n[r].from(),n[r].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[r]=i}return e},replaceSelection:function(t,e,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:Li((function(t,e,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(t[o]),origin:n}}for(var s=e&&"end"!=e&&fo(this,r,e),l=r.length-1;l>=0;l--)Zo(this,r[l]);s?No(this,s):this.cm&&ai(this.cm)})),undo:Li((function(){Qo(this,"undo")})),redo:Li((function(){Qo(this,"redo")})),undoSelection:Li((function(){Qo(this,"undo",!0)})),redoSelection:Li((function(){Qo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new bo(this.history.maxGeneration),go(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Lo(this.history.done),undone:Lo(this.history.undone)}},setHistory:function(t){var e=this.history=new bo(this.history.maxGeneration);e.done=Lo(t.done.slice(0),null,!0),e.undone=Lo(t.undone.slice(0),null,!0)},setGutterMarker:Li((function(t,e,n){return sa(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&rt(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:Li((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&sa(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,rt(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!ne(this,t))return null;if(e=t,t=Xt(this,t),!t)return null}else if(e=te(t),null==e)return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Li((function(t,e,n){return sa(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(k(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:Li((function(t,e,n){return sa(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[r];if(!i)return!1;if(null==n)t[r]=null;else{var o=i.match(k(n));if(!o)return!1;var a=o.index+o[0].length;t[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Li((function(t,e,n){return fa(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return $a(this,de(this,t),de(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return t=de(this,t),$a(this,t,t,n,"bookmark")},findMarksAt:function(t){t=de(this,t);var e=[],n=Xt(this,t.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=de(this,t),e=de(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==t.line&&t.ch>=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>t)return e=t,!0;t-=o,++n})),de(this,ie(n,e))},indexFromPos:function(t){t=de(this,t);var e=t.ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new wa(Jt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new wa(Jt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],ya(r,va(this)),r},unlinkDoc:function(t){if(t instanceof Rs&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e){var n=this.linked[e];if(n.doc==t){this.linked.splice(e,1),t.unlinkDoc(this),_a(va(this));break}}if(t.history==this.history){var r=[t.id];go(t,(function(t){return r.push(t.id)}),!0),t.history=new bo(null),t.history.done=Lo(this.history.done,r),t.history.undone=Lo(this.history.undone,r)}},iterLinkedDocs:function(t){go(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Lt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Li((function(t){"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&_o(this.cm))}))}),wa.prototype.eachLine=wa.prototype.iter;var xa=0;function ka(t){var e=this;if(Ca(e),!vt(e,t)&&!Vn(e.display,t)){wt(t),a&&(xa=+new Date);var n=Ir(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&Pi(e,(function(){n=de(e.doc,n);var t={from:n,to:n,text:e.doc.splitLines(o.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};Zo(e.doc,t),No(e.doc,ao(de(e.doc,n),de(e.doc,so(t))))}))()},c=function(t,n){if(e.options.allowDropFileTypes&&-1==N(e.options.allowDropFileTypes,t.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(o[n]=t),l()},r.readAsText(t)}},u=0;u<r.length;u++)c(r[u],u);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var d=t.dataTransfer.getData("Text");if(d){var f;if(e.state.draggingText&&!e.state.draggingText.copy&&(f=e.listSelections()),Ho(e.doc,ao(n,n)),f)for(var h=0;h<f.length;++h)ra(e.doc,"",f[h].anchor,f[h].head,"drag");e.replaceSelection(d,"around","paste"),e.display.input.focus()}}catch(p){}}}}function Sa(t,e){if(a&&(!t.state.draggingText||+new Date-xa<100))St(e);else if(!vt(t,e)&&!Vn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!f)){var n=E("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Oa(t,e){var n=Ir(t,e);if(n){var r=document.createDocumentFragment();Ur(t,n,r),t.display.dragCursor||(t.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),A(t.display.dragCursor,r)}}function Ca(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Aa(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var Ea=!1;function Ta(){Ea||(Pa(),Ea=!0)}function Pa(){var t;pt(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Aa(Ba)}),100))})),pt(window,"blur",(function(){return Aa(Zr)}))}function Ba(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var La={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ia=0;Ia<10;Ia++)La[Ia+48]=La[Ia+96]=String(Ia);for(var Da=65;Da<=90;Da++)La[Da]=String.fromCharCode(Da);for(var Ra=1;Ra<=12;Ra++)La[Ra+111]=La[Ra+63235]="F"+Ra;var ja={};function Ma(t){var e,n,r,i,o=t.split(/-(?!$)/);t=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Fa(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var i=X(n.split(" "),Ma),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=e[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else e[s]=a}delete t[n]}for(var c in e)t[c]=e[c];return t}function Na(t,e,n,r){e=Ua(e);var i=e.call?e.call(t,r):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Na(t,e.fallthrough,n,r);for(var o=0;o<e.fallthrough.length;o++){var a=Na(t,e.fallthrough[o],n,r);if(a)return a}}}function za(t){var e="string"==typeof t?t:La[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Ha(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(w?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(w?e.ctrlKey:e.metaKey)&&"Mod"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function Va(t,e){if(d&&34==t.keyCode&&t["char"])return!1;var n=La[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),Ha(n,t,e))}function Ua(t){return"string"==typeof t?ja[t]:t}function qa(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){var o=e(n[i]);while(r.length&&oe(o.from,K(r).to)<=0){var a=r.pop();if(oe(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Ti(t,(function(){for(var e=r.length-1;e>=0;e--)ra(t.doc,"",r[e].from,r[e].to,"+delete");ai(t)}))}function Wa(t,e,n){var r=at(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Ga(t,e,n){var r=Wa(t,e.ch,n);return null==r?null:new ie(e.line,r,n<0?"after":"before")}function Ya(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=ft(n,e.doc.direction);if(o){var a,s=i<0?K(o):o[0],l=i<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var u=er(e,n);a=i<0?n.text.length-1:0;var d=nr(e,u,a).top;a=st((function(t){return nr(e,u,t).top==d}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Wa(n,a,1))}else a=i<0?s.to:s.from;return new ie(r,a,c)}}return new ie(r,i<0?n.text.length:0,i<0?"before":"after")}function Ka(t,e,n,r){var i=ft(e,t.doc.direction);if(!i)return Ga(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ut(i,n.ch,n.sticky),a=i[o];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ga(e,n,r);var s,l=function(t,n){return Wa(e,t instanceof ie?t.ch:t,n)},c=function(n){return t.options.lineWrapping?(s=s||er(t,e),xr(t,e,s,n)):{begin:0,end:e.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var h=d?"before":"after";return new ie(n.line,f,h)}}var p=function(t,e,r){for(var o=function(t,e){return e?new ie(n.line,l(t,1),"before"):new ie(n.line,t,"after")};t>=0&&t<i.length;t+=e){var a=i[t],s=e>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},$=p(o+r,r,u);if($)return $;var m=r>0?u.end:l(u.begin,-1);return null==m||r>0&&m==e.text.length||($=p(r>0?0:i.length-1,r,c(m)),!$)?null:$}ja.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ja.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ja.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ja.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ja["default"]=v?ja.macDefault:ja.pcDefault;var Xa={selectAll:Ko,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),V)},killLine:function(t){return qa(t,(function(e){if(e.empty()){var n=Xt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:ie(e.head.line+1,0)}:{from:e.head,to:ie(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return qa(t,(function(e){return{from:ie(e.from().line,0),to:de(t.doc,ie(e.to().line+1,0))}}))},delLineLeft:function(t){return qa(t,(function(t){return{from:ie(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return qa(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return{from:r,to:e.from()}}))},delWrappedLineRight:function(t){return qa(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(ie(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(ie(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return Za(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return Qa(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return Ja(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),q)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),q)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?Qa(t,e.head):r}),q)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=M(t.getLine(o.line),o.ch,r);e.push(Y(r-a%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Ti(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,o=Xt(t.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ie(i.line,i.ch-1)),i.ch>0)i=new ie(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ie(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=Xt(t.doc,i.line-1).text;a&&(i=new ie(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),ie(i.line-1,a.length-1),i,"+transpose"))}n.push(new io(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Ti(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);ai(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function Za(t,e){var n=Xt(t.doc,e),r=Ze(n);return r!=n&&(e=te(r)),Ya(!0,t,r,e,1)}function Ja(t,e){var n=Xt(t.doc,e),r=Je(n);return r!=n&&(e=te(r)),Ya(!0,t,n,e,-1)}function Qa(t,e){var n=Za(t,e.line),r=Xt(t.doc,n.line),i=ft(r,t.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=e.line==n.line&&e.ch<=o&&e.ch;return ie(n.line,a?0:o,n.sticky)}return n}function ts(t,e,n){if("string"==typeof e&&(e=Xa[e],!e))return!1;t.display.input.ensurePolled();var r=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=H}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}function es(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=Na(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&Na(e,t.options.extraKeys,n,t)||Na(e,t.options.keyMap,n,t)}var ns=new F;function rs(t,e,n,r){var i=t.state.keySeq;if(i){if(za(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:ns.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),is(t,i+" "+e,n,r))return!0}return is(t,e,n,r)}function is(t,e,n,r){var i=es(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&An(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(wt(n),Gr(t)),!!i}function os(t,e){var n=Va(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?rs(t,"Shift-"+n,e,(function(e){return ts(t,e,!0)}))||rs(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return ts(t,e)})):rs(t,n,e,(function(e){return ts(t,e)})))}function as(t,e,n){return rs(t,"'"+n+"'",e,(function(e){return ts(t,e,!0)}))}var ss=null;function ls(t){var e=this;if((!t.target||t.target==e.display.input.getField())&&(e.curOp.focus=B(),!vt(e,t))){a&&s<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var i=os(e,t);d&&(ss=i?r:null,i||88!=r||Dt||!(v?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!v&&!i&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||cs(e)}}function cs(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(O(e,"CodeMirror-crosshair"),mt(document,"keyup",n),mt(document,"mouseover",n))}L(e,"CodeMirror-crosshair"),pt(document,"keyup",n),pt(document,"mouseover",n)}function us(t){16==t.keyCode&&(this.doc.sel.shift=!1),vt(this,t)}function ds(t){var e=this;if((!t.target||t.target==e.display.input.getField())&&!(Vn(e.display,t)||vt(e,t)||t.ctrlKey&&!t.altKey||v&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(d&&n==ss)return ss=null,void wt(t);if(!d||t.which&&!(t.which<10)||!os(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(as(e,t,i)||e.display.input.onKeyPress(t))}}}var fs,hs,ps=400,$s=function(t,e,n){this.time=t,this.pos=e,this.button=n};function ms(t,e){var n=+new Date;return hs&&hs.compare(n,t,e)?(fs=hs=null,"triple"):fs&&fs.compare(n,t,e)?(hs=new $s(n,t,e),fs=null,"double"):(fs=new $s(n,t,e),hs=null,"single")}function gs(t){var e=this,n=e.display;if(!(vt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,Vn(n,t))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Os(e,t)){var r=Ir(e,t),i=Ct(t),o=r?ms(r,i):"single";window.focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&vs(e,i,r,o,t)||(1==i?r?_s(e,r,o,t):Ot(t)==n.scroller&&wt(t):2==i?(r&&Do(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(x?e.display.input.onContextMenu(t):Kr(e)))}}function vs(t,e,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==e?"Left":2==e?"Middle":"Right")+o,rs(t,Ha(o,i),i,(function(e){if("string"==typeof e&&(e=Xa[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=H}finally{t.state.suppressEdits=!1}return r}))}function ys(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};if(null==i.unit){var o=y?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=v?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(v?n.altKey:n.ctrlKey)),i}function _s(t,e,n,r){a?setTimeout(R(Yr,t),0):t.curOp.focus=B();var i,o=ys(t,n,r),s=t.doc.sel;t.options.dragDrop&&Tt&&!t.isReadOnly()&&"single"==n&&(i=s.contains(e))>-1&&(oe((i=s.ranges[i]).from(),e)<0||e.xRel>0)&&(oe(i.to(),e)>0||e.xRel<0)?bs(t,r,e,o):xs(t,r,e,o)}function bs(t,e,n,r){var i=t.display,o=!1,c=Pi(t,(function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,mt(i.wrapper.ownerDocument,"mouseup",c),mt(i.wrapper.ownerDocument,"mousemove",u),mt(i.scroller,"dragstart",d),mt(i.scroller,"drop",c),o||(wt(e),r.addNew||Do(t.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),pt(i.wrapper.ownerDocument,"mouseup",c),pt(i.wrapper.ownerDocument,"mousemove",u),pt(i.scroller,"dragstart",d),pt(i.scroller,"drop",c),Kr(t),setTimeout((function(){return i.input.focus()}),20)}function ws(t,e,n){if("char"==n)return new io(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new io(ie(e.line,0),de(t.doc,ie(e.line+1,0)));var r=n(t,e);return new io(r.from,r.to)}function xs(t,e,n,r){var i=t.display,o=t.doc;wt(e);var a,s,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new io(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new io(n,n)),n=Ir(t,e,!0,!0),s=-1;else{var u=ws(t,n,r.unit);a=r.extend?Io(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=c.length,zo(o,oo(t,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(zo(o,oo(t,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):jo(o,s,a,U):(s=0,zo(o,new ro([a],0),U),l=o.sel);var d=n;function f(e){if(0!=oe(d,e))if(d=e,"rectangle"==r.unit){for(var i=[],c=t.options.tabSize,u=M(Xt(o,n.line).text,n.ch,c),f=M(Xt(o,e.line).text,e.ch,c),h=Math.min(u,f),p=Math.max(u,f),$=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));$<=m;$++){var g=Xt(o,$).text,v=W(g,h,c);h==p?i.push(new io(ie($,v),ie($,v))):g.length>v&&i.push(new io(ie($,v),ie($,W(g,p,c))))}i.length||i.push(new io(n,n)),zo(o,oo(t,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var y,_=a,b=ws(t,e,r.unit),w=_.anchor;oe(b.anchor,w)>0?(y=b.head,w=ce(_.from(),b.anchor)):(y=b.anchor,w=le(_.to(),b.head));var x=l.ranges.slice(0);x[s]=ks(t,new io(de(o,w),y)),zo(o,oo(t,x,s),U)}}var h=i.wrapper.getBoundingClientRect(),p=0;function $(e){var n=++p,a=Ir(t,e,!0,"rectangle"==r.unit);if(a)if(0!=oe(a,d)){t.curOp.focus=B(),f(a);var s=ti(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Pi(t,(function(){p==n&&$(e)})),150)}else{var l=e.clientY<h.top?-20:e.clientY>h.bottom?20:0;l&&setTimeout(Pi(t,(function(){p==n&&(i.scroller.scrollTop+=l,$(e))})),50)}}function m(e){t.state.selectingText=!1,p=1/0,e&&(wt(e),i.input.focus()),mt(i.wrapper.ownerDocument,"mousemove",g),mt(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=Pi(t,(function(t){0!==t.buttons&&Ct(t)?$(t):m(t)})),v=Pi(t,m);t.state.selectingText=v,pt(i.wrapper.ownerDocument,"mousemove",g),pt(i.wrapper.ownerDocument,"mouseup",v)}function ks(t,e){var n=e.anchor,r=e.head,i=Xt(t.doc,n.line);if(0==oe(n,r)&&n.sticky==r.sticky)return e;var o=ft(i);if(!o)return e;var a=ut(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=ut(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var f=o[c+(l?-1:0)],h=l==(1==f.level),p=h?f.from:f.to,$=h?"after":"before";return n.ch==p&&n.sticky==$?e:new io(new ie(n.line,p,$),r)}function Ss(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(f){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&wt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!_t(t,n))return kt(e);o-=s.top-a.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i){var u=ee(t.doc,o),d=t.display.gutterSpecs[l];return gt(t,n,t,u,d.className,e),kt(e)}}}function Os(t,e){return Ss(t,e,"gutterClick",!0)}function Cs(t,e){Vn(t.display,e)||As(t,e)||vt(t,e,"contextmenu")||x||t.display.input.onContextMenu(e)}function As(t,e){return!!_t(t,"gutterContextMenu")&&Ss(t,e,"gutterContextMenu",!1)}function Es(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),dr(t)}$s.prototype.compare=function(t,e,n){return this.time+ps>t&&0==oe(e,this.pos)&&n==this.button};var Ts={toString:function(){return"CodeMirror.Init"}},Ps={},Bs={};function Ls(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=Ts&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Ts,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,ho(t)}),!0),n("indentUnit",2,ho,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){po(t),dr(t),Rr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(ie(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ra(t.doc,e,n[i],ie(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Ts&&t.refresh()})),n("specialCharPlaceholder",$n,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){Es(t),Xi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Ua(e),i=n!=Ts&&Ua(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ds,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=Yi(e,t.options.lineNumbers),Xi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?Pr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return gi(t)}),!0),n("scrollbarStyle","native",(function(t){_i(t),gi(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=Yi(t.options.gutters,e),Xi(t)}),!0),n("firstLineNumber",1,Xi,!0),n("lineNumberFormatter",(function(t){return t}),Xi,!0),n("showCursorWhenSelecting",!1,Hr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Zr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Is),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Hr,!0),n("singleCursorHeightPerLine",!0,Hr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,po,!0),n("addModeClass",!1,po,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,po,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}function Is(t,e,n){var r=n&&n!=Ts;if(!e!=!r){var i=t.display.dragFunctions,o=e?pt:mt;o(t.display.scroller,"dragstart",i.start),o(t.display.scroller,"dragenter",i.enter),o(t.display.scroller,"dragover",i.over),o(t.display.scroller,"dragleave",i.leave),o(t.display.scroller,"drop",i.drop)}}function Ds(t){t.options.lineWrapping?(L(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(O(t.display.wrapper,"CodeMirror-wrap"),sn(t)),Lr(t),Rr(t),dr(t),setTimeout((function(){return gi(t)}),100)}function Rs(t,e){var n=this;if(!(this instanceof Rs))return new Rs(t,e);this.options=e=e?j(e):{},j(Ps,e,!1);var r=e.value;"string"==typeof r?r=new wa(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Rs.inputStyles[e.inputStyle](this),o=this.display=new Zi(t,r,i,e);for(var c in o.wrapper.CodeMirror=this,Es(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_i(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},e.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),js(this),Ta(),wi(this),this.curOp.forceUpdate=!0,vo(this,r),e.autofocus&&!g||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Xr(n)}),20):Zr(this),Bs)Bs.hasOwnProperty(c)&&Bs[c](this,e[c],Ts);Gi(this),e.finishInit&&e.finishInit(this);for(var u=0;u<Ms.length;++u)Ms[u](this);xi(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function js(t){var e=t.display;pt(e.scroller,"mousedown",Pi(t,gs)),pt(e.scroller,"dblclick",a&&s<11?Pi(t,(function(e){if(!vt(t,e)){var n=Ir(t,e);if(n&&!Os(t,e)&&!Vn(t.display,e)){wt(e);var r=t.findWordAt(n);Do(t.doc,r.anchor,r.head)}}})):function(e){return vt(t,e)||wt(e)}),pt(e.scroller,"contextmenu",(function(e){return Cs(t,e)})),pt(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||Cs(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),r=e.activeTouch,r.end=+new Date)}function o(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function l(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}pt(e.scroller,"touchstart",(function(i){if(!vt(t,i)&&!o(i)&&!Os(t,i)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),pt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),pt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!Vn(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=t.coordsChar(e.activeTouch,"page");o=!r.prev||l(r,r.prev)?new io(a,a):!r.prev.prev||l(r,r.prev.prev)?t.findWordAt(a):new io(ie(a.line,0),de(t.doc,ie(a.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),wt(n)}i()})),pt(e.scroller,"touchcancel",i),pt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(di(t,e.scroller.scrollTop),hi(t,e.scroller.scrollLeft,!0),gt(t,"scroll",t))})),pt(e.scroller,"mousewheel",(function(e){return no(t,e)})),pt(e.scroller,"DOMMouseScroll",(function(e){return no(t,e)})),pt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){vt(t,e)||St(e)},over:function(e){vt(t,e)||(Oa(t,e),St(e))},start:function(e){return Sa(t,e)},drop:Pi(t,ka),leave:function(e){vt(t,e)||Ca(t)}};var c=e.input.getField();pt(c,"keyup",(function(e){return us.call(t,e)})),pt(c,"keydown",Pi(t,ls)),pt(c,"keypress",Pi(t,ds)),pt(c,"focus",(function(e){return Xr(t,e)})),pt(c,"blur",(function(e){return Zr(t,e)}))}Rs.defaults=Ps,Rs.optionHandlers=Bs;var Ms=[];function Fs(t,e,n,r){var i,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=ve(t,e).state:n="prev");var a=t.options.tabSize,s=Xt(o,e),l=M(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(c=o.mode.indent(i,s.text.slice(u.length),s.text),c==H||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?M(Xt(o,e-1).text,null,a):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",f=0;if(t.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)f+=a,d+="\t";if(f<c&&(d+=Y(c-f)),d!=u)return ra(o,d,ie(e,0),ie(e,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var $=o.sel.ranges[p];if($.head.line==e&&$.head.ch<u.length){var m=ie(e,u.length);jo(o,p,new io(m,m));break}}}Rs.defineInitHook=function(t){return Ms.push(t)};var Ns=null;function zs(t){Ns=t}function Hs(t,e,n,r,i){var o=t.doc;t.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||t.state.pasteIncoming>a,l=Lt(e),c=null;if(s&&r.ranges.length>1)if(Ns&&Ns.text.join("\n")==e){if(r.ranges.length%Ns.text.length==0){c=[];for(var u=0;u<Ns.text.length;u++)c.push(o.splitLines(Ns.text[u]))}}else l.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(c=X(l,(function(t){return[t]})));for(var d=t.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],p=h.from(),$=h.to();h.empty()&&(n&&n>0?p=ie(p.line,p.ch-n):t.state.overwrite&&!s?$=ie($.line,Math.min(Xt(o,$.line).text.length,$.ch+K(l).length)):s&&Ns&&Ns.lineWise&&Ns.text.join("\n")==l.join("\n")&&(p=$=ie(p.line,0)));var m={from:p,to:$,text:c?c[f%c.length]:l,origin:i||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};Zo(t.doc,m),An(t,"inputRead",t,m)}e&&!s&&Us(t,e),ai(t),t.curOp.updateInput<2&&(t.curOp.updateInput=d),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Vs(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Ti(e,(function(){return Hs(e,n,0,null,"paste")})),!0}function Us(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=t.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(e.indexOf(o.electricChars.charAt(s))>-1){a=Fs(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Fs(t,i.head.line,"smart"));a&&An(t,"electricInput",t,i.head.line)}}}function qs(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,o={anchor:ie(i,0),head:ie(i+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function Ws(t,e,n,r){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",r?"":"off"),t.setAttribute("spellcheck",!!e)}function Gs(){var t=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=E("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),$&&(t.style.border="1px solid black"),Ws(t),e}function Ys(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&Pi(this,e[t])(this,n,i),gt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Ua(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:Bi((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");Z(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,Rr(this)})),removeOverlay:Bi((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void Rr(this)}})),indentLine:Bi((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),ne(this.doc,t)&&Fs(this,t,e,n)})),indentSelection:Bi((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var i=e[r];if(i.empty())i.head.line>n&&(Fs(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&ai(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Fs(this,l,t);var c=this.doc.sel.ranges;0==o.ch&&e.length==c.length&&c[r].from().ch>0&&jo(this.doc,r,new io(o,c[r].to()),V)}}})),getTokenAt:function(t,e){return xe(this,t,e)},getLineTokens:function(t,e){return xe(this,ie(t),e,!0)},getTokenTypeAt:function(t){t=de(this.doc,t);var e,n=ge(this,Xt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){e=n[2*a+2];break}r=a+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var i=n[e],o=this.getModeAt(t);if("string"==typeof o[e])i[o[e]]&&r.push(i[o[e]]);else if(o[e])for(var a=0;a<o[e].length;a++){var s=i[o[e][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==N(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(t,e){var n=this.doc;return t=ue(n,null==t?n.first+n.size-1:t),ve(this,t+1,e).state},cursorCoords:function(t,e){var n,r=this.doc.sel.primary();return n=null==t?r.head:"object"==typeof t?de(this.doc,t):t?r.from():r.to(),vr(this,n,e||"page")},charCoords:function(t,e){return gr(this,de(this.doc,t),e||"page")},coordsChar:function(t,e){return t=mr(this,t,e||"page"),br(this,t.left,t.top)},lineAtHeight:function(t,e){return t=mr(this,{top:t,left:0},e||"page").top,ee(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,i=!0),r=Xt(this.doc,t)}else r=t;return $r(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Ar(this.display)},defaultCharWidth:function(){return Er(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o=this.display;t=vr(this,de(this.doc,t));var a=t.bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==r)a=t.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?a=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(a=t.bottom),s+e.offsetWidth>c&&(s=c-e.offsetWidth)}e.style.top=a+"px",e.style.left=e.style.right="","right"==i?(s=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&ri(this,{left:s,top:a,right:s+e.offsetWidth,bottom:a+e.offsetHeight})},triggerOnKeyDown:Bi(ls),triggerOnKeyPress:Bi(ds),triggerOnKeyUp:us,triggerOnMouseDown:Bi(gs),execCommand:function(t){if(Xa.hasOwnProperty(t))return Xa[t].call(null,this)},triggerElectric:Bi((function(t){Us(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=de(this.doc,t),a=0;a<e;++a)if(o=Ks(this.doc,o,i,n,r),o.hitSide)break;return o},moveH:Bi((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ks(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),q)})),deleteH:Bi((function(t,e){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):qa(this,(function(n){var i=Ks(r,n.head,t,e,!1);return t<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(t,e,n,r){var i=1,o=r;e<0&&(i=-1,e=-e);for(var a=de(this.doc,t),s=0;s<e;++s){var l=vr(this,a,"div");if(null==o?o=l.left:l.left=o,a=Xs(this,l,i,n),a.hitSide)break}return a},moveV:Bi((function(t,e){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return t<0?a.from():a.to();var s=vr(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Xs(n,s,t,e);return"page"==e&&a==r.sel.primary()&&oi(n,gr(n,l,"div").top-s.top),l}),q),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(t){var e=this.doc,n=Xt(e,t.line).text,r=t.ch,i=t.ch;if(n){var o=this.getHelper(t,"wordChars");"before"!=t.sticky&&i!=n.length||!r?++i:--r;var a=n.charAt(r),s=nt(a,o)?function(t){return nt(t,o)}:/\s/.test(a)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!nt(t)};while(r>0&&s(n.charAt(r-1)))--r;while(i<n.length&&s(n.charAt(i)))++i}return new io(ie(t.line,r),ie(t.line,i))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?L(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),gt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==B()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Bi((function(t,e){si(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Gn(this)-this.display.barHeight,width:t.scrollWidth-Gn(this)-this.display.barWidth,clientHeight:Kn(this),clientWidth:Yn(this)}},scrollIntoView:Bi((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:ie(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?li(this,t):ui(this,t.from,t.to,t.margin)})),setSize:Bi((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&ur(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){jr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,gt(this,"refresh",this)})),operation:function(t){return Ti(this,t)},startOperation:function(){return wi(this)},endOperation:function(){return xi(this)},refresh:Bi((function(){var t=this.display.cachedTextHeight;Rr(this),this.curOp.forceUpdate=!0,dr(this),si(this,this.doc.scrollLeft,this.doc.scrollTop),Ui(this.display),(null==t||Math.abs(t-Ar(this.display))>.5||this.options.lineWrapping)&&Lr(this),gt(this,"refresh",this)})),swapDoc:Bi((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),vo(this,t),dr(this),this.display.input.reset(),si(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,An(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},bt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}function Ks(t,e,n,r,i){var o=e,a=n,s=Xt(t,e.line),l=i&&"rtl"==t.direction?-n:n;function c(){var n=e.line+l;return!(n<t.first||n>=t.first+t.size)&&(e=new ie(n,e.ch,e.sticky),s=Xt(t,n))}function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(e.ch+(r>0?0:-1));a=isNaN(u)?null:new ie(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(u>=55296&&u<56320?2:1))),-n)}else a=i?Ka(t.cm,s,e,n):Ga(s,e,n);if(null==a){if(o||!c())return!1;e=Ya(i,t.cm,s,e.line,l)}else e=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var d=null,f="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;;p=!1){if(n<0&&!u(!p))break;var $=s.text.charAt(e.ch)||"\n",m=nt($,h)?"w":f&&"\n"==$?"n":!f||/\s/.test($)?null:"p";if(!f||p||m||(m="s"),d&&d!=m){n<0&&(n=1,u(),e.sticky="after");break}if(m&&(d=m),n>0&&!u(!p))break}var g=Go(t,e,o,a,!0);return ae(o,g)&&(g.hitSide=!0),g}function Xs(t,e,n,r){var i,o,a=t.doc,s=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Ar(t.display),3);i=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;;){if(o=br(t,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Zs=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Js(t,e){var n=tr(t,e.line);if(!n||n.hidden)return null;var r=Xt(t.doc,e.line),i=Zn(n,r,e.line),o=ft(r,t.doc.direction),a="left";if(o){var s=ut(o,e.ch);a=s%2?"right":"left"}var l=or(i.map,e.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Qs(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function tl(t,e){return e&&(t.bad=!0),t}function el(t,e,n,r,i){var o="",a=!1,s=t.doc.lineSeparator(),l=!1;function c(t){return function(e){return e.id==t}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(t){t&&(u(),o+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void d(n);var o,h=e.getAttribute("cm-marker");if(h){var p=t.findMarks(ie(r,0),ie(i+1,0),c(+h));return void(p.length&&(o=p[0].find(0))&&d(Zt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var $=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;$&&u();for(var m=0;m<e.childNodes.length;m++)f(e.childNodes[m]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),$&&(a=!0)}else 3==e.nodeType&&d(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;;){if(f(e),e==n)break;e=e.nextSibling,l=!1}return o}function nl(t,e,n){var r;if(e==t.display.lineDiv){if(r=t.display.lineDiv.childNodes[n],!r)return tl(t.clipPos(ie(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var o=t.display.view[i];if(o.node==r)return rl(o,e,n)}}function rl(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!P(r,e))return tl(ie(te(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var o=t.rest?K(t.rest):t.line;return tl(ie(te(o),o.text.length),i)}var a=3==e.nodeType?e:null,s=e;a||1!=e.childNodes.length||3!=e.firstChild.nodeType||(a=e.firstChild,n&&(n=a.nodeValue.length));while(s.parentNode!=r)s=s.parentNode;var l=t.measure,c=l.maps;function u(e,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==e||s==n){var u=te(i<0?t.line:t.rest[i]),d=o[a]+r;return(r<0||s!=e)&&(d=o[a+(r?1:0)]),ie(u,d)}}}var d=u(a,s,n);if(d)return tl(d,i);for(var f=s.nextSibling,h=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0),d)return tl(ie(d.line,d.ch-h),i);h+=f.textContent.length}for(var p=s.previousSibling,$=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1),d)return tl(ie(d.line,d.ch+$),i);$+=p.textContent.length}}Zs.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function o(t){for(var e=t.target;e;e=e.parentNode){if(e==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function a(t){if(o(t)&&!vt(r,t)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=qs(r);zs({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,V),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var a=Ns.text.join("\n");if(t.clipboardData.setData("Text",a),t.clipboardData.getData("Text")==a)return void t.preventDefault()}var s=Gs(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ns.text.join("\n");var c=document.activeElement;D(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}Ws(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pt(i,"paste",(function(t){!o(t)||vt(r,t)||Vs(t,r)||s<=11&&setTimeout(Pi(r,(function(){return e.updateFromDOM()})),20)})),pt(i,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),pt(i,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),pt(i,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),pt(i,"touchstart",(function(){return n.forceCompositionEnd()})),pt(i,"input",(function(){e.composing||e.readFromDOMSoon()})),pt(i,"copy",a),pt(i,"cut",a)},Zs.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Zs.prototype.prepareSelection=function(){var t=Vr(this.cm,!1);return t.focus=document.activeElement==this.div,t},Zs.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Zs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Zs.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),o=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var a=nl(e,t.anchorNode,t.anchorOffset),s=nl(e,t.focusNode,t.focusOffset);if(!a||a.bad||!s||s.bad||0!=oe(ce(a,s),i)||0!=oe(le(a,s),o)){var l=e.display.view,c=i.line>=e.display.viewFrom&&Js(e,i)||{node:l[0].measure.map[2],offset:0},u=o.line<e.display.viewTo&&Js(e,o);if(!u){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&u){var h,p=t.rangeCount&&t.getRangeAt(0);try{h=S(c.node,c.offset,u.offset,u.node)}catch($){}h&&(!n&&e.state.focused?(t.collapse(c.node,c.offset),h.collapsed||(t.removeAllRanges(),t.addRange(h))):(t.removeAllRanges(),t.addRange(h)),p&&null==t.anchorNode?t.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Zs.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Zs.prototype.showMultipleSelections=function(t){A(this.cm.display.cursorDiv,t.cursors),A(this.cm.display.selectionDiv,t.selection)},Zs.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Zs.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return P(this.div,e)},Zs.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Zs.prototype.blur=function(){this.div.blur()},Zs.prototype.getField=function(){return this.div},Zs.prototype.supportsTouch=function(){return!0},Zs.prototype.receivedFocus=function(){var t=this;function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}this.selectionInEditor()?this.pollSelection():Ti(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,e)},Zs.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Zs.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(m&&u&&this.cm.display.gutterSpecs.length&&Qs(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=nl(e,t.anchorNode,t.anchorOffset),r=nl(e,t.focusNode,t.focusOffset);n&&r&&Ti(e,(function(){zo(e.doc,ao(n,r),V),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},Zs.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ie(a.line-1,Xt(r.doc,a.line-1).length)),s.ch==Xt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ie(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(t=Dr(r,a.line))?(e=te(i.view[0].line),n=i.view[0].node):(e=te(i.view[t].line),n=i.view[t-1].node.nextSibling);var l,c,u=Dr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=te(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;var d=r.doc.splitLines(el(r,n,c,e,l)),f=Zt(r.doc,ie(e,0),ie(l,Xt(r.doc,l).text.length));while(d.length>1&&f.length>1)if(K(d)==K(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),e++}var h=0,p=0,$=d[0],m=f[0],g=Math.min($.length,m.length);while(h<g&&$.charCodeAt(h)==m.charCodeAt(h))++h;var v=K(d),y=K(f),_=Math.min(v.length-(1==d.length?h:0),y.length-(1==f.length?h:0));while(p<_&&v.charCodeAt(v.length-p-1)==y.charCodeAt(y.length-p-1))++p;if(1==d.length&&1==f.length&&e==a.line)while(h&&h>a.ch&&v.charCodeAt(v.length-p-1)==y.charCodeAt(y.length-p-1))h--,p++;d[d.length-1]=v.slice(0,v.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var b=ie(e,h),w=ie(l,f.length?K(f).length-p:0);return d.length>1||d[0]||oe(b,w)?(ra(r.doc,d,b,w,"+input"),!0):void 0},Zs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Zs.prototype.reset=function(){this.forceCompositionEnd()},Zs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Zs.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Zs.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Ti(this.cm,(function(){return Rr(t.cm)}))},Zs.prototype.setUneditable=function(t){t.contentEditable="false"},Zs.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Pi(this.cm,Hs)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Zs.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Zs.prototype.onContextMenu=function(){},Zs.prototype.resetPosition=function(){},Zs.prototype.needsContentAttribute=!0;var il=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};function ol(t,e){if(e=e?j(e):{},e.value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=B();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(pt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(l){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(mt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Rs((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s}function al(t){t.off=mt,t.on=pt,t.wheelEventPixels=eo,t.Doc=wa,t.splitLines=Lt,t.countColumn=M,t.findColumn=W,t.isWordChar=et,t.Pass=H,t.signal=gt,t.Line=ln,t.changeEnd=so,t.scrollbarModel=yi,t.Pos=ie,t.cmpPos=oe,t.modes=Mt,t.mimeModes=Ft,t.resolveMode=Ht,t.getMode=Vt,t.modeExtensions=Ut,t.extendMode=qt,t.copyState=Wt,t.startState=Yt,t.innerMode=Gt,t.commands=Xa,t.keyMap=ja,t.keyName=Va,t.isModifierKey=za,t.lookupKey=Na,t.normalizeKeyMap=Fa,t.StringStream=Kt,t.SharedTextMarker=ma,t.TextMarker=pa,t.LineWidget=ua,t.e_preventDefault=wt,t.e_stopPropagation=xt,t.e_stop=St,t.addClass=L,t.contains=P,t.rmClass=O,t.keyNames=La}il.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!vt(r,t)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=qs(r);zs({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,V):(n.prevInput="",i.value=e.text.join("\n"),D(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),$&&(i.style.width="0px"),pt(i,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),pt(i,"paste",(function(t){vt(r,t)||Vs(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pt(i,"cut",o),pt(i,"copy",o),pt(t.scroller,"paste",(function(e){if(!Vn(t,e)&&!vt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),pt(t.lineSpace,"selectstart",(function(e){Vn(t,e)||wt(e)})),pt(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pt(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},il.prototype.createField=function(t){this.wrapper=Gs(),this.textarea=this.wrapper.firstChild},il.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=Vr(t);if(t.options.moveInputWithCursor){var i=vr(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},il.prototype.showSelection=function(t){var e=this.cm,n=e.display;A(n.cursorDiv,t.cursors),A(n.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},il.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&D(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},il.prototype.getField=function(){return this.textarea},il.prototype.supportsTouch=function(){return!1},il.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||B()!=this.textarea))try{this.textarea.focus()}catch(t){}},il.prototype.blur=function(){this.textarea.blur()},il.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},il.prototype.receivedFocus=function(){this.slowPoll()},il.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},il.prototype.fastPoll=function(){var t=!1,e=this;function n(){var r=e.poll();r||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},il.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||It(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||v&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,c=Math.min(r.length,i.length);while(l<c&&r.charCodeAt(l)==i.charCodeAt(l))++l;return Ti(e,(function(){Hs(e,i.slice(l),r.length-l,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},il.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},il.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},il.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=Ir(n,t),c=r.scroller.scrollTop;if(o&&!d){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(o)&&Pi(n,zo)(n.doc,ao(o),V);var f,h=i.style.cssText,p=e.wrapper.style.cssText,$=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-$.top-5)+"px; left: "+(t.clientX-$.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(f=window.scrollY),r.input.focus(),l&&window.scrollTo(null,f),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),x){St(t);var m=function(){mt(window,"mouseup",m),setTimeout(v,20)};pt(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,i.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&g();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?Pi(n,Ko)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},il.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},il.prototype.setUneditable=function(){},il.prototype.needsContentAttribute=!1,Ls(Rs),Ys(Rs);var sl="iter insert remove copy getEditor constructor".split(" ");for(var ll in wa.prototype)wa.prototype.hasOwnProperty(ll)&&N(sl,ll)<0&&(Rs.prototype[ll]=function(t){return function(){return t.apply(this.doc,arguments)}}(wa.prototype[ll]));return bt(wa),Rs.inputStyles={textarea:il,contenteditable:Zs},Rs.defineMode=function(t){Rs.defaults.mode||"null"==t||(Rs.defaults.mode=t),Nt.apply(this,arguments)},Rs.defineMIME=zt,Rs.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Rs.defineMIME("text/plain","null"),Rs.defineExtension=function(t,e){Rs.prototype[t]=e},Rs.defineDocExtension=function(t,e){wa.prototype[t]=e},Rs.fromTextArea=ol,al(Rs),Rs.version="5.58.1",Rs}))},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5886:function(t,e,n){"use strict";var r=n("3d20"),i=n.n(r),o=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},a=function(){function t(){}return t.install=function(t,e){var n,r=e?i.a.mixin(e):i.a,a=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=r.fire).call.apply(t,o([r],e))};for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&"function"===typeof r[n]&&(a[n]=function(t){return function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return(e=r[t]).call.apply(e,o([r],n))}}(n));t["swal"]=a,Object.prototype.hasOwnProperty.call(t,"$swal")||(t.prototype.$swal=a)},t}();e["a"]=a},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5f5b":function(t,e,n){"use strict";var r=n("2b0e"),i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o={kebab:/-(\w)/g,styleProp:/:(.*)/,styleList:/;(?![^(]*\))/g};function a(t,e){return e?e.toUpperCase():""}function s(t){for(var e,n={},r=0,i=t.split(o.styleList);r<i.length;r++){var s=i[r].split(o.styleProp),l=s[0],c=s[1];(l=l.trim())&&("string"==typeof c&&(c=c.trim()),n[(e=l,e.replace(o.kebab,a))]=c)}return n}function l(){for(var t,e,n={},r=arguments.length;r--;)for(var o=0,a=Object.keys(arguments[r]);o<a.length;o++)switch(t=a[o]){case"class":case"style":case"directives":if(Array.isArray(n[t])||(n[t]=[]),"style"===t){var l=void 0;l=Array.isArray(arguments[r].style)?arguments[r].style:[arguments[r].style];for(var c=0;c<l.length;c++){var u=l[c];"string"==typeof u&&(l[c]=s(u))}arguments[r].style=l}n[t]=n[t].concat(arguments[r][t]);break;case"staticClass":if(!arguments[r][t])break;void 0===n[t]&&(n[t]=""),n[t]&&(n[t]+=" "),n[t]+=arguments[r][t].trim();break;case"on":case"nativeOn":n[t]||(n[t]={});for(var d=0,f=Object.keys(arguments[r][t]||{});d<f.length;d++)e=f[d],n[t][e]?n[t][e]=[].concat(n[t][e],arguments[r][t][e]):n[t][e]=arguments[r][t][e];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":n[t]||(n[t]={}),n[t]=i({},arguments[r][t],n[t]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:n[t]||(n[t]=arguments[r][t])}return n}var c=r["default"],u=n("938d");function d(t){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}function p(t){var e=y();return function(){var n,r=w(t);if(e){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $(this,n)}}function $(t,e){return!e||"object"!==d(e)&&"function"!==typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){var e="function"===typeof Map?new Map:void 0;return g=function(t){if(null===t||!_(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return v(t,arguments,w(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),b(n,t)},g(t)}function v(t,e,n){return v=y()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),o=new i;return n&&b(o,n.prototype),o},v.apply(null,arguments)}function y(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function _(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function b(t,e){return b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},b(t,e)}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}var x=u["i"]?window:{},k=u["i"]?x.Element:function(t){h(n,t);var e=p(n);function n(){return f(this,n),e.apply(this,arguments)}return n}(g(Object)),S=u["i"]?x.HTMLElement:function(t){h(n,t);var e=p(n);function n(){return f(this,n),e.apply(this,arguments)}return n}(k),O=u["i"]?x.SVGElement:function(t){h(n,t);var e=p(n);function n(){return f(this,n),e.apply(this,arguments)}return n}(k),C=u["i"]?x.File:function(t){h(n,t);var e=p(n);function n(){return f(this,n),e.apply(this,arguments)}return n}(g(Object));function A(t){return A="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(t)}var E=function(t){return A(t)},T=function(t){return Object.prototype.toString.call(t).slice(8,-1)},P=function(t){return void 0===t},B=function(t){return null===t},L=function(t){return P(t)||B(t)},I=function(t){return"function"===E(t)},D=function(t){return"boolean"===E(t)},R=function(t){return"string"===E(t)},j=function(t){return"number"===E(t)},M=function(t){return!isNaN(parseInt(t,10))},F=function(t){return Array.isArray(t)},N=function(t){return null!==t&&"object"===A(t)},z=function(t){return"[object Object]"===Object.prototype.toString.call(t)},H=function(t){return t instanceof Date},V=function(t){return t instanceof Event},U=function(t){return t instanceof C},q=function(t){return"RegExp"===T(t)},W=function(t){return!L(t)&&I(t.then)&&I(t.catch)};function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){K(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function K(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var X=function(){return Object.assign.apply(Object,arguments)},Z=function(t,e){return Object.create(t,e)},J=function(t,e){return Object.defineProperties(t,e)},Q=function(t,e,n){return Object.defineProperty(t,e,n)},tt=function(t){return Object.freeze(t)},et=function(t){return Object.getOwnPropertyNames(t)},nt=function(t){return Object.keys(t)},rt=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},it=function(t){return Object.prototype.toString.call(t)},ot=function(t){return Y({},t)},at=function(t,e){return nt(t).filter((function(t){return-1!==e.indexOf(t)})).reduce((function(e,n){return Y(Y({},e),{},K({},n,t[n]))}),{})},st=function(t,e){return nt(t).filter((function(t){return-1===e.indexOf(t)})).reduce((function(e,n){return Y(Y({},e),{},K({},n,t[n]))}),{})},lt=function t(e,n){return N(e)&&N(n)&&nt(n).forEach((function(r){N(n[r])?(e[r]&&N(e[r])||(e[r]=n[r]),t(e[r],n[r])):X(e,K({},r,n[r]))})),e},ct=function(){return{enumerable:!0,configurable:!1,writable:!1}},ut=function t(e){var n=nt(e);return n.forEach((function(n){var r=e[n];e[n]=r&&(z(r)||F(r))?t(r):r})),tt(e)};function dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ft(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dt(Object(n),!0).forEach((function(e){ht(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ht(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pt(t){return vt(t)||gt(t)||mt(t)||$t()}function $t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mt(t,e){if(t){if("string"===typeof t)return yt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yt(t,e):void 0}}function gt(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function vt(t){if(Array.isArray(t))return yt(t)}function yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var _t,bt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return F(e)?e.reduce((function(e,n){return[].concat(pt(e),[t(n,n)])}),[]):z(e)?nt(e).reduce((function(n,r){return ft(ft({},n),{},ht({},r,t(e[r],e[r])))}),{}):n},wt=bt,xt=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,kt=/-|\s|T/,St=/^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/,Ot=/^.*(#[^#]+)$/,Ct=/\[(\d+)]/g,At=/^\d+$/,Et=/^\..+/,Tt=/^#/,Pt=/^#[A-Za-z]+[\w\-:.]*$/,Bt=/(<([^>]+)>)/gi,Lt=/\B([A-Z])/g,It=/([a-z])([A-Z])/g,Dt=/^[0-9]*\.?[0-9]+$/,Rt=/[-/\\^$*+?.()|[\]{}]/g,jt=/[\s\uFEFF\xA0]+/g,Mt=/\s+/,Ft=/\/\*$/,Nt=/(\s|^)(\w)/g,zt=/^\s+/,Ht=/_/g,Vt=/-(\w)/g,Ut=/^\d+(\.\d*)?[/:]\d+(\.\d*)?$/,qt=/[/:]/,Wt=/^col-/,Gt=/^BIcon/,Yt=/-u-.+/,Kt=function(t){return t},Xt=Kt,Zt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(e=F(e)?e.join("."):e,!e||!N(t))return n;if(e in t)return t[e];e=String(e).replace(Ct,".$1");var r=e.split(".").filter(Xt);return 0===r.length?n:r.every((function(e){return N(t)&&e in t&&!L(t=t[e])}))?t:B(t)?null:n},Jt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Zt(t,e);return L(r)?n:r},Qt=Jt,te=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Object(u["a"])()||console.warn("[BootstrapVue warn]: ".concat(e?"".concat(e," - "):"").concat(t))},ee=function(t){return!u["j"]&&(te("".concat(t,": Can not be called during SSR.")),!0)},ne=function(t){return!u["g"]&&(te("".concat(t,": Requires Promise support.")),!0)},re=function(t){return!u["d"]&&(te("".concat(t,": Requires MutationObserver support.")),!0)},ie="BAlert",oe="BAspect",ae="BAvatar",se="BAvatarGroup",le="BBadge",ce="BBreadcrumb",ue="BBreadcrumbItem",de="BBreadcrumbLink",fe="BButton",he="BButtonClose",pe="BButtonGroup",$e="BButtonToolbar",me="BCalendar",ge="BCard",ve="BCardBody",ye="BCardFooter",_e="BCardGroup",be="BCardHeader",we="BCardImg",xe="BCardImgLazy",ke="BCardSubTitle",Se="BCardText",Oe="BCardTitle",Ce="BCarousel",Ae="BCarouselSlide",Ee="BCol",Te="BCollapse",Pe="BVCollapse",Be="BContainer",Le="BDropdown",Ie="BDropdownDivider",De="BDropdownForm",Re="BDropdownGroup",je="BDropdownHeader",Me="BDropdownItem",Fe="BDropdownItemButton",Ne="BDropdownText",ze="BEmbed",He="BForm",Ve="BVFormBtnLabelControl",Ue="BFormCheckbox",qe="BFormCheckboxGroup",We="BFormDatalist",Ge="BFormDatepicker",Ye="BFormFile",Ke="BFormGroup",Xe="BFormInput",Ze="BFormInvalidFeedback",Je="BFormRadio",Qe="BFormRadioGroup",tn="BFormRating",en="BVFormRatingStar",nn="BFormRow",rn="BFormSelect",on="BFormSelectOption",an="BFormSelectOptionGroup",sn="BFormSpinbutton",ln="BFormTag",cn="BFormTags",un="BFormText",dn="BFormTextarea",fn="BFormTimepicker",hn="BFormValidFeedback",pn="BIcon",$n="BIconBase",mn="BImg",gn="BImgLazy",vn="BInputGroup",yn="BInputGroupAddon",_n="BInputGroupAppend",bn="BInputGroupPrepend",wn="BInputGroupText",xn="BJumbotron",kn="BLink",Sn="BListGroup",On="BListGroupItem",Cn="BMedia",An="BMediaAside",En="BMediaBody",Tn="BModal",Pn="BMsgBox",Bn="BNav",Ln="BNavbar",In="BNavbarBrand",Dn="BNavbarNav",Rn="BNavbarToggle",jn="BNavForm",Mn="BNavItem",Fn="BNavItemDropdown",Nn="BNavText",zn="BOverlay",Hn="BPagination",Vn="BPaginationNav",Un="BPopover",qn="BVPopover",Wn="BVPopoverTemplate",Gn="BVPopper",Yn="BProgress",Kn="BProgressBar",Xn="BRow",Zn="BSidebar",Jn="BSkeleton",Qn="BSkeletonIcon",tr="BSkeletonImg",er="BSkeletonTable",nr="BSkeletonWrapper",rr="BSpinner",ir="BTab",or="BTable",ar="BTableCell",sr="BTableLite",lr="BTableSimple",cr="BTabs",ur="BVTabButton",dr="BTbody",fr="BTfoot",hr="BTh",pr="BThead",$r="BTime",mr="BToast",gr="BToaster",vr="BVToastPop",yr="BTooltip",_r="BVTooltip",br="BVTooltipTemplate",wr="BTr",xr="BVTransition",kr="BTransporterSingle",Sr="BTransporterTargetSingle";function Or(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cr=ut((_t={breakpoints:["xs","sm","md","lg","xl"],formControls:{size:void 0}},Or(_t,ie,{dismissLabel:"Close",variant:"info"}),Or(_t,ae,{variant:"secondary",badgeVariant:"primary"}),Or(_t,le,{variant:"secondary"}),Or(_t,fe,{size:void 0,variant:"secondary"}),Or(_t,he,{content:"&times;",textVariant:void 0,ariaLabel:"Close"}),Or(_t,me,{selectedVariant:"primary",todayVariant:void 0,navButtonVariant:"secondary",labelPrevDecade:"Previous decade",labelPrevYear:"Previous year",labelPrevMonth:"Previous month",labelCurrentMonth:"Current month",labelNextMonth:"Next month",labelNextYear:"Next year",labelNextDecade:"Next decade",labelToday:"Today",labelSelected:"Selected date",labelNoDateSelected:"No date selected",labelCalendar:"Calendar",labelNav:"Calendar navigation",labelHelp:"Use cursor keys to navigate calendar dates"}),Or(_t,ke,{subTitleTextVariant:"muted"}),Or(_t,Ce,{labelPrev:"Previous Slide",labelNext:"Next Slide",labelGotoSlide:"Goto Slide",labelIndicators:"Select a slide to display"}),Or(_t,Le,{toggleText:"Toggle Dropdown",size:void 0,variant:"secondary",splitVariant:void 0}),Or(_t,Ge,{selectedVariant:void 0,todayVariant:void 0,navButtonVariant:void 0,labelPrevDecade:void 0,labelPrevYear:void 0,labelPrevMonth:void 0,labelCurrentMonth:void 0,labelNextMonth:void 0,labelNextYear:void 0,labelNextDecade:void 0,labelToday:void 0,labelSelected:void 0,labelNoDateSelected:void 0,labelCalendar:void 0,labelNav:void 0,labelHelp:void 0,labelTodayButton:"Select today",labelResetButton:"Reset",labelCloseButton:"Close"}),Or(_t,Ye,{browseText:"Browse",placeholder:"No file chosen",dropPlaceholder:"Drop files here",noDropPlaceholder:"Not allowed"}),Or(_t,tn,{variant:null,color:null}),Or(_t,ln,{removeLabel:"Remove tag",variant:"secondary"}),Or(_t,cn,{addButtonText:"Add",addButtonVariant:"outline-secondary",duplicateTagText:"Duplicate tag(s)",invalidTagText:"Invalid tag(s)",limitTagsText:"Tag limit reached",placeholder:"Add tag...",tagRemoveLabel:"Remove tag",tagRemovedLabel:"Tag removed",tagVariant:"secondary"}),Or(_t,un,{textVariant:"muted"}),Or(_t,fn,{labelNoTimeSelected:void 0,labelSelected:void 0,labelHours:void 0,labelMinutes:void 0,labelSeconds:void 0,labelAmpm:void 0,labelAm:void 0,labelPm:void 0,labelDecrement:void 0,labelIncrement:void 0,labelNowButton:"Select now",labelResetButton:"Reset",labelCloseButton:"Close"}),Or(_t,sn,{labelDecrement:"Decrement",labelIncrement:"Increment"}),Or(_t,mn,{blankColor:"transparent"}),Or(_t,gn,{blankColor:"transparent"}),Or(_t,vn,{size:void 0}),Or(_t,xn,{bgVariant:void 0,borderVariant:void 0,textVariant:void 0}),Or(_t,kn,{routerComponentName:void 0}),Or(_t,On,{variant:void 0}),Or(_t,Tn,{titleTag:"h5",size:"md",headerBgVariant:void 0,headerBorderVariant:void 0,headerTextVariant:void 0,headerCloseVariant:void 0,bodyBgVariant:void 0,bodyTextVariant:void 0,footerBgVariant:void 0,footerBorderVariant:void 0,footerTextVariant:void 0,cancelTitle:"Cancel",cancelVariant:"secondary",okTitle:"OK",okVariant:"primary",headerCloseContent:"&times;",headerCloseLabel:"Close"}),Or(_t,Ln,{variant:null}),Or(_t,Rn,{label:"Toggle navigation"}),Or(_t,Hn,{size:void 0}),Or(_t,Vn,{size:void 0}),Or(_t,Un,{boundary:"scrollParent",boundaryPadding:5,customClass:void 0,delay:50,variant:void 0}),Or(_t,Yn,{variant:void 0}),Or(_t,Kn,{variant:void 0}),Or(_t,rr,{variant:void 0}),Or(_t,Jn,{animation:"wave"}),Or(_t,Qn,{animation:"wave"}),Or(_t,Zn,{bgVariant:"light",textVariant:"dark",shadow:!1,width:void 0,tag:"div",backdropVariant:"dark"}),Or(_t,or,{selectedVariant:"active",headVariant:void 0,footVariant:void 0}),Or(_t,$r,{labelNoTimeSelected:"No time selected",labelSelected:"Selected time",labelHours:"Hours",labelMinutes:"Minutes",labelSeconds:"Seconds",labelAmpm:"AM/PM",labelAm:"AM",labelPm:"PM",labelIncrement:void 0,labelDecrement:void 0}),Or(_t,mr,{toaster:"b-toaster-top-right",autoHideDelay:5e3,variant:void 0,toastClass:void 0,headerClass:void 0,bodyClass:void 0}),Or(_t,gr,{ariaLive:void 0,ariaAtomic:void 0,role:void 0}),Or(_t,yr,{boundary:"scrollParent",boundaryPadding:5,customClass:void 0,delay:50,variant:void 0}),_t));function Ar(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Er(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tr(t,e,n){return e&&Er(t.prototype,e),n&&Er(t,n),t}var Pr="BvConfig",Br="$bvConfig",Lr=function(){function t(){Ar(this,t),this.$_config={},this.$_cachedBreakpoints=null}return Tr(t,[{key:"getDefaults",value:function(){return this.defaults}},{key:"setConfig",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(z(e)){var n=et(e);n.forEach((function(n){if(rt(Cr,n)){var r=e[n];if("breakpoints"===n){var i=e.breakpoints;!F(i)||i.length<2||i.some((function(t){return!R(t)||0===t.length}))?te('"breakpoints" must be an array of at least 2 breakpoint names',Pr):t.$_config.breakpoints=wt(i)}else if(z(r)){var o=et(r);o.forEach((function(e){rt(Cr[n],e)?(t.$_config[n]=t.$_config[n]||{},P(r[e])||(t.$_config[n][e]=wt(r[e]))):te('Unknown config property "'.concat(n,".").concat(e,'"'),Pr)}))}}else te('Unknown config property "'.concat(n,'"'),Pr)}))}}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return wt(this.$_config)}},{key:"getConfigValue",value:function(t){return wt(Zt(this.$_config,t,Zt(Cr,t)))}},{key:"defaults",get:function(){return Cr}}],[{key:"Defaults",get:function(){return Cr}}]),t}(),Ir=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;e.prototype[Br]=c.prototype[Br]=e.prototype[Br]||c.prototype[Br]||new Lr,e.prototype[Br].setConfig(t)};function Dr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dr(Object(n),!0).forEach((function(e){jr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mr=function(){var t=!1,e=["Multiple instances of Vue detected!","You may need to set up an alias for Vue in your bundler config.","See: https://bootstrap-vue.org/docs#using-module-bundlers"].join("\n");return function(n){t||c===n||u["k"]||te(e),t=!0}}(),Fr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.components,n=t.directives,r=t.plugins,i=function t(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.installed||(t.installed=!0,Mr(i),Ir(o,i),Vr(i,e),qr(i,n),zr(i,r))};return i.installed=!1,i},Nr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Rr(Rr({},e),{},{install:Fr(t)})},zr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)n&&e[n]&&t.use(e[n])},Hr=function(t,e,n){t&&e&&n&&t.component(e,n)},Vr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)Hr(t,n,e[n])},Ur=function(t,e,n){t&&e&&n&&t.directive(e.replace(/^VB/,"B"),n)},qr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)Ur(t,n,e[n])},Wr=function(t){var e=Z(null);return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=JSON.stringify(r);return e[o]=e[o]||t.apply(null,r)}},Gr=Wr,Yr="$bvConfig",Kr=c.prototype,Xr=function(t){return Kr[Yr]?Kr[Yr].getConfigValue(t):wt(Zt(Cr,t))},Zr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?Xr("".concat(t,".").concat(e)):Xr(t)||{}},Jr=function(){return Xr("breakpoints")},Qr=Gr((function(){return Jr()})),ti=function(){return wt(Qr())},ei=Gr((function(){var t=ti();return t[0]="",t})),ni=function(){return Array.from.apply(Array,arguments)},ri=function(t,e){return-1!==t.indexOf(e)},ii=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Array.prototype.concat.apply([],e)},oi=function(t,e){return Array(t).fill(e)},ai=function(t){return t.reduce((function(t,e){return t.concat(e)}),[])},si=function t(e){return e.reduce((function(e,n){return e.concat(Array.isArray(n)?t(n):n)}),[])},li=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseInt(t,10);return isNaN(n)?e:n},ci=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=parseFloat(t);return isNaN(n)?e:n},ui=function(t,e){return ci(t).toFixed(li(e,0))},di=function(t){return t.replace(Lt,"-$1").toLowerCase()},fi=function(t){return t=di(t).replace(Vt,(function(t,e){return e?e.toUpperCase():""})),t.charAt(0).toUpperCase()+t.slice(1)},hi=function(t){return t.replace(Ht," ").replace(It,(function(t,e,n){return e+" "+n})).replace(Nt,(function(t,e,n){return e+n.toUpperCase()}))},pi=function(t){return t=R(t)?t.trim():String(t),t.charAt(0).toLowerCase()+t.slice(1)},$i=function(t){return t=R(t)?t.trim():String(t),t.charAt(0).toUpperCase()+t.slice(1)},mi=function(t){return t.replace(Rt,"\\$&")},gi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return L(t)?"":F(t)||z(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,e):String(t)},vi=function(t){return gi(t).replace(zt,"")},yi=function(t){return gi(t).trim()},_i=function(t){return gi(t).toLowerCase()},bi=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map((function(t){return"".concat(t,":not(:disabled):not([disabled])")})).join(", "),wi=u["i"]?window:{},xi=u["b"]?document:{},ki="undefined"!==typeof Element?Element.prototype:{},Si=ki.matches||ki.msMatchesSelector||ki.webkitMatchesSelector,Oi=ki.closest||function(t){var e=this;do{if(Fi(e,t))return e;e=e.parentElement||e.parentNode}while(!B(e)&&e.nodeType===Node.ELEMENT_NODE);return null},Ci=wi.requestAnimationFrame||wi.webkitRequestAnimationFrame||wi.mozRequestAnimationFrame||wi.msRequestAnimationFrame||wi.oRequestAnimationFrame||function(t){return setTimeout(t,16)},Ai=wi.MutationObserver||wi.WebKitMutationObserver||wi.MozMutationObserver||null,Ei=function(t){return t&&t.parentNode&&t.parentNode.removeChild(t)},Ti=function(t){return!(!t||t.nodeType!==Node.ELEMENT_NODE)},Pi=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=xi.activeElement;return e&&!t.some((function(t){return t===e}))?e:null},Bi=function(t,e){return gi(t).toLowerCase()===gi(e).toLowerCase()},Li=function(t){return Ti(t)&&t===Pi()},Ii=function(t){if(!Ti(t)||!t.parentNode||!zi(xi.body,t))return!1;if("none"===Ji(t,"display"))return!1;var e=Qi(t);return!!(e&&e.height>0&&e.width>0)},Di=function(t){return!Ti(t)||t.disabled||Ki(t,"disabled")||qi(t,"disabled")},Ri=function(t){return Ti(t)&&t.offsetHeight},ji=function(t,e){return ni((Ti(e)?e:xi).querySelectorAll(t))},Mi=function(t,e){return(Ti(e)?e:xi).querySelector(t)||null},Fi=function(t,e){return!!Ti(t)&&Si.call(t,e)},Ni=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Ti(e))return null;var r=Oi.call(e,t);return n?r:r===e?null:r},zi=function(t,e){return!(!t||!I(t.contains))&&t.contains(e)},Hi=function(t){return xi.getElementById(/^#/.test(t)?t.slice(1):t)||null},Vi=function(t,e){e&&Ti(t)&&t.classList&&t.classList.add(e)},Ui=function(t,e){e&&Ti(t)&&t.classList&&t.classList.remove(e)},qi=function(t,e){return!!(e&&Ti(t)&&t.classList)&&t.classList.contains(e)},Wi=function(t,e,n){e&&Ti(t)&&t.setAttribute(e,n)},Gi=function(t,e){e&&Ti(t)&&t.removeAttribute(e)},Yi=function(t,e){return e&&Ti(t)?t.getAttribute(e):null},Ki=function(t,e){return e&&Ti(t)?t.hasAttribute(e):null},Xi=function(t,e,n){e&&Ti(t)&&(t.style[e]=n)},Zi=function(t,e){e&&Ti(t)&&(t.style[e]="")},Ji=function(t,e){return e&&Ti(t)&&t.style[e]||null},Qi=function(t){return Ti(t)?t.getBoundingClientRect():null},to=function(t){return u["i"]&&Ti(t)?wi.getComputedStyle(t):{}},eo=function(){return u["i"]&&wi.getSelection?wi.getSelection():null},no=function(t){var e={top:0,left:0};if(!Ti(t)||0===t.getClientRects().length)return e;var n=Qi(t);if(n){var r=t.ownerDocument.defaultView;e.top=n.top+r.pageYOffset,e.left=n.left+r.pageXOffset}return e},ro=function(t){var e={top:0,left:0};if(!Ti(t))return e;var n={top:0,left:0},r=to(t);if("fixed"===r.position)e=Qi(t)||e;else{e=no(t);var i=t.ownerDocument,o=t.offsetParent||i.documentElement;while(o&&(o===i.body||o===i.documentElement)&&"static"===to(o).position)o=o.parentNode;if(o&&o!==t&&o.nodeType===Node.ELEMENT_NODE){n=no(o);var a=to(o);n.top+=ci(a.borderTopWidth,0),n.left+=ci(a.borderLeftWidth,0)}}return{top:e.top-n.top-ci(r.marginTop,0),left:e.left-n.left-ci(r.marginLeft,0)}},io=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return ji(bi,t).filter(Ii).filter((function(t){return t.tabIndex>-1&&!t.disabled}))},oo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t.focus(e)}catch(n){}return Li(t)},ao=function(t){try{t.blur()}catch(e){}return!Li(t)};function so(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?so(Object(n),!0).forEach((function(e){co(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function co(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uo={name:"",enterClass:"",enterActiveClass:"",enterToClass:"show",leaveClass:"show",leaveActiveClass:"",leaveToClass:""},fo=lo(lo({},uo),{},{enterActiveClass:"fade",leaveActiveClass:"fade"}),ho=c.extend({name:xr,functional:!0,props:{noFade:{type:Boolean,default:!1},appear:{type:Boolean,default:!1},mode:{type:String},transProps:{type:Object,default:null}},render:function(t,e){var n=e.children,r=e.data,i=e.props,o=i.transProps;return z(o)||(o=i.noFade?uo:fo,i.appear&&(o=lo(lo({},o),{},{appear:!0,appearClass:o.enterClass,appearActiveClass:o.enterActiveClass,appearToClass:o.enterToClass}))),o=lo(lo({mode:i.mode},o),{},{css:!0}),t("transition",l(r,{props:o}),n)}}),po=ho,$o="append",mo="button-content",go="default",vo="description",yo="first",_o="footer",bo="header",wo="label",xo="lead",ko="prepend",So="text",Oo="title",Co=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=ii(t).filter(Xt),t.some((function(t){return e[t]||n[t]}))},Ao=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=ii(t).filter(Xt);for(var o=0;o<t.length&&!e;o++){var a=t[o];e=r[a]||i[a]}return I(e)?e(n):e},Eo={methods:{hasNormalizedSlot:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:go;return Co(t,this.$scopedSlots,this.$slots)},normalizeSlot:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:go,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ao(t,e,this.$scopedSlots,this.$slots);return n?ii(n):n}}},To=function(t){return u["e"]?N(t)?t:{capture:!!t||!1}:!!(N(t)?t.capture:t)},Po=function(t,e,n,r){t&&t.addEventListener&&t.addEventListener(e,n,To(r))},Bo=function(t,e,n,r){t&&t.removeEventListener&&t.removeEventListener(e,n,To(r))},Lo=function(t){for(var e=t?Po:Bo,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.apply(void 0,r)},Io=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preventDefault,r=void 0===n||n,i=e.propagation,o=void 0===i||i,a=e.immediatePropagation,s=void 0!==a&&a;r&&t.preventDefault(),o&&t.stopPropagation(),s&&t.stopImmediatePropagation()};function Do(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ro={content:{type:String,default:function(){return Zr(he,"content")}},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:function(){return Zr(he,"ariaLabel")}},textVariant:{type:String,default:function(){return Zr(he,"textVariant")}}},jo=c.extend({name:he,functional:!0,props:Ro,render:function(t,e){var n=e.props,r=e.data,i=e.slots,o=e.scopedSlots,a=i(),s=o||{},c={staticClass:"close",class:Do({},"text-".concat(n.textVariant),n.textVariant),attrs:{type:"button",disabled:n.disabled,"aria-label":n.ariaLabel?String(n.ariaLabel):null},on:{click:function(t){n.disabled&&V(t)&&Io(t)}}};return Co(go,s,a)||(c.domProps={innerHTML:n.content}),t("button",l(r,c),Ao(go,{},s,a))}});function Mo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Fo=function(t){return""===t||D(t)?0:(t=li(t,0),t>0?t:0)},No=function(t){return""===t||!0===t||!(li(t,0)<1)&&!!t},zo=c.extend({name:ie,mixins:[Eo],model:{prop:"show",event:"input"},props:{variant:{type:String,default:function(){return Zr(ie,"variant")}},dismissible:{type:Boolean,default:!1},dismissLabel:{type:String,default:function(){return Zr(ie,"dismissLabel")}},show:{type:[Boolean,Number,String],default:!1},fade:{type:Boolean,default:!1}},data:function(){return{countDown:0,countDownTimeout:null,localShow:No(this.show)}},watch:{show:function(t){this.countDown=Fo(t),this.localShow=No(t)},countDown:function(t){var e=this;this.clearCountDownInterval(),M(this.show)&&(this.$emit("dismiss-count-down",t),this.show!==t&&this.$emit("input",t),t>0?(this.localShow=!0,this.countDownTimeout=setTimeout((function(){e.countDown--}),1e3)):this.$nextTick((function(){Ci((function(){e.localShow=!1}))})))},localShow:function(t){t||!this.dismissible&&!M(this.show)||this.$emit("dismissed"),M(this.show)||this.show===t||this.$emit("input",t)}},created:function(){this.countDown=Fo(this.show),this.localShow=No(this.show)},mounted:function(){this.countDown=Fo(this.show),this.localShow=No(this.show)},beforeDestroy:function(){this.clearCountDownInterval()},methods:{dismiss:function(){this.clearCountDownInterval(),this.countDown=0,this.localShow=!1},clearCountDownInterval:function(){this.countDownTimeout&&(clearTimeout(this.countDownTimeout),this.countDownTimeout=null)}},render:function(t){var e;if(this.localShow){var n=t();this.dismissible&&(n=t(jo,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot("dismiss")])),e=t("div",{key:this._uid,staticClass:"alert",class:Mo({"alert-dismissible":this.dismissible},"alert-".concat(this.variant),this.variant),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0}},[n,this.normalizeSlot()]),e=[e]}return t(po,{props:{noFade:!this.fade}},e)}}),Ho=Nr({components:{BAlert:zo}}),Vo=Math.min,Uo=Math.max,qo=Math.abs,Wo=Math.ceil,Go=Math.floor,Yo=Math.pow,Ko=Math.round;function Xo(t,e){return ea(t)||ta(t,e)||Jo(t,e)||Zo()}function Zo(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jo(t,e){if(t){if("string"===typeof t)return Qo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qo(t,e):void 0}}function Qo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ta(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function ea(t){if(Array.isArray(t))return t}var na="b-aspect",ra=c.extend({name:oe,mixins:[Eo],props:{aspect:{type:[Number,String],default:"1:1"},tag:{type:String,default:"div"}},computed:{padding:function(){var t=this.aspect,e=1;if(Ut.test(t)){var n=t.split(qt).map((function(t){return ci(t)||1})),r=Xo(n,2),i=r[0],o=r[1];e=i/o}else e=ci(t)||1;return"".concat(100/qo(e),"%")}},render:function(t){var e=t("div",{staticClass:"".concat(na,"-sizer flex-grow-1"),style:{paddingBottom:this.padding,height:0}}),n=t("div",{staticClass:"".concat(na,"-content flex-grow-1 w-100 mw-100"),style:{marginLeft:"-100%"}},[this.normalizeSlot()]);return t(this.tag,{staticClass:"".concat(na," d-flex")},[e,n])}}),ia=Nr({components:{BAspect:ra}}),oa=function(t,e){return t+$i(e)},aa=function(t,e){return pi(e.replace(t,""))},sa=function(t,e){return e+(t?$i(t):"")},la=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xt;if(F(t))return t.map(e);var n={};for(var r in t)rt(t,r)&&(n[e(r)]=N(t[r])?ot(t[r]):t[r]);return n},ca=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xt;return(F(t)?t.slice():nt(t)).reduce((function(t,r){return t[n(r)]=e[r],t}),{})},ua="a",da=/%2C/g,fa=/[!'()*]/g,ha=/\+/g,pa=/^(\?|#|&)/,$a=function(t){return"%"+t.charCodeAt(0).toString(16)},ma=function(t){return encodeURIComponent(gi(t)).replace(fa,$a).replace(da,",")},ga=decodeURIComponent,va=function(t){if(!z(t))return"";var e=nt(t).map((function(e){var n=t[e];return P(n)?"":B(n)?ma(e):F(n)?n.reduce((function(t,n){return B(n)?t.push(ma(e)):P(n)||t.push(ma(e)+"="+ma(n)),t}),[]).join("&"):ma(e)+"="+ma(n)})).filter((function(t){return t.length>0})).join("&");return e?"?".concat(e):""},ya=function(t){var e={};return t=gi(t).trim().replace(pa,""),t?(t.split("&").forEach((function(t){var n=t.replace(ha," ").split("="),r=ga(n.shift()),i=n.length>0?ga(n.join("=")):null;P(e[r])?e[r]=i:F(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e},_a=function(t){return!(!t.href&&!t.to)},ba=function(t){return!Bi(t,ua)},wa=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.to,n=t.disabled,r=t.routerComponentName,i=arguments.length>1?arguments[1]:void 0,o=i.$router;return!o||o&&n||o&&!e?ua:r||(i.$nuxt?"nuxt-link":"router-link")},xa=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.target,n=t.rel;return"_blank"===e&&B(n)?"noopener":n||null},ka=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.href,n=t.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ua,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";if(ba(r))return null;if(e)return e;if(n){if(R(n))return n||o;if(z(n)&&(n.path||n.query||n.hash)){var a=gi(n.path),s=va(n.query),l=gi(n.hash);return l=l&&"#"!==l.charAt(0)?"#".concat(l):l,"".concat(a).concat(s).concat(l)||o}}return i},Sa=8,Oa=46,Ca=40,Aa=35,Ea=13,Ta=27,Pa=36,Ba=37,La=34,Ia=33,Da=39,Ra=32,ja=38,Ma=function(t,e){if(t.length!==e.length)return!1;for(var n=!0,r=0;n&&r<t.length;r++)n=Fa(t[r],e[r]);return n},Fa=function t(e,n){if(e===n)return!0;var r=H(e),i=H(n);if(r||i)return!(!r||!i)&&e.getTime()===n.getTime();if(r=F(e),i=F(n),r||i)return!(!r||!i)&&Ma(e,n);if(r=N(e),i=N(n),r||i){if(!r||!i)return!1;var o=nt(e).length,a=nt(n).length;if(o!==a)return!1;for(var s in e){var l=rt(e,s),c=rt(n,s);if(l&&!c||!l&&c||!t(e[s],n[s]))return!1}}return String(e)===String(n)},Na=Fa;function za(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ha=function(t){return!t||0===nt(t).length},Va=function(t){return{handler:function(e,n){if(!Na(e,n))if(Ha(e)||Ha(n))this[t]=wt(e);else{for(var r in n)rt(e,r)||this.$delete(this.$data[t],r);for(var i in e)this.$set(this.$data[t],i,e[i])}}}},Ua=function(t,e){return{data:function(){return za({},e,wt(this[t]))},watch:za({},t,Va(e))}},qa=Ua("$attrs","bvAttrs"),Wa=Ua("$listeners","bvListeners");function Ga(t){return Za(t)||Xa(t)||Ka(t)||Ya()}function Ya(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ka(t,e){if(t){if("string"===typeof t)return Ja(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ja(t,e):void 0}}function Xa(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Za(t){if(Array.isArray(t))return Ja(t)}function Ja(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Qa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ts(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qa(Object(n),!0).forEach((function(e){es(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qa(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function es(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ns={to:{type:[String,Object],default:null},append:{type:Boolean,default:!1},replace:{type:Boolean,default:!1},event:{type:[String,Array],default:"click"},activeClass:{type:String},exact:{type:Boolean,default:!1},exactActiveClass:{type:String},routerTag:{type:String,default:"a"}},rs={prefetch:{type:Boolean,default:null},noPrefetch:{type:Boolean,default:!1}},is=ts(ts(ts({href:{type:String,default:null},rel:{type:String,default:null},target:{type:String,default:"_self"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},ns),rs),{},{routerComponentName:{type:String,default:function(){return Zr(kn,"routerComponentName")}}}),os=c.extend({name:kn,mixins:[qa,Wa,Eo],inheritAttrs:!1,props:is,computed:{computedTag:function(){var t=this.to,e=this.disabled,n=this.routerComponentName;return wa({to:t,disabled:e,routerComponentName:n},this)},isRouterLink:function(){return ba(this.computedTag)},computedRel:function(){return xa({target:this.target,rel:this.rel})},computedHref:function(){return ka({to:this.to,href:this.href},this.computedTag)},computedProps:function(){var t=this.prefetch;return this.isRouterLink?ts(ts({},ca(ts(ts({},ns),rs),this)),{},{prefetch:D(t)?t:void 0,tag:this.routerTag}):{}},computedAttrs:function(){var t=this.bvAttrs,e=this.computedHref,n=this.computedRel,r=this.disabled,i=this.target,o=this.routerTag,a=this.isRouterLink;return ts(ts(ts(ts({},t),e?{href:e}:{}),a&&"a"!==o&&"area"!==o?{}:{rel:n,target:i}),{},{tabindex:r?"-1":P(t.tabindex)?null:t.tabindex,"aria-disabled":r?"true":null})},computedListeners:function(){return ts(ts({},this.bvListeners),{},{click:this.onClick})}},methods:{onClick:function(t){var e=arguments,n=V(t),r=this.isRouterLink,i=this.bvListeners.click;n&&this.disabled?Io(t,{immediatePropagation:!0}):(r&&t.currentTarget.__vue__&&t.currentTarget.__vue__.$emit("click",t),ii(i).filter((function(t){return I(t)})).forEach((function(t){t.apply(void 0,Ga(e))})),this.$root.$emit("clicked::link",t)),n&&!r&&"#"===this.computedHref&&Io(t,{propagation:!1})},focus:function(){oo(this.$el)},blur:function(){ao(this.$el)}},render:function(t){var e=this.active,n=this.disabled;return t(this.computedTag,es({class:{active:e,disabled:n},attrs:this.computedAttrs,props:this.computedProps},this.isRouterLink?"nativeOn":"on",this.computedListeners),this.normalizeSlot())}});function as(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ss(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?as(Object(n),!0).forEach((function(e){ls(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ls(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cs=st(is,["event","routerTag"]);delete cs.href.default,delete cs.to.default;var us={block:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:function(){return Zr(fe,"size")}},variant:{type:String,default:function(){return Zr(fe,"variant")}},type:{type:String,default:"button"},tag:{type:String,default:"button"},pill:{type:Boolean,default:!1},squared:{type:Boolean,default:!1},pressed:{type:Boolean,default:null}},ds=ss(ss({},us),cs),fs=function(t){"focusin"===t.type?Vi(t.target,"focus"):"focusout"===t.type&&Ui(t.target,"focus")},hs=function(t){return _a(t)||Bi(t.tag,"a")},ps=function(t){return D(t.pressed)},$s=function(t){return!(hs(t)||t.tag&&!Bi(t.tag,"button"))},ms=function(t){return!hs(t)&&!$s(t)},gs=function(t){var e;return["btn-".concat(t.variant||Zr(fe,"variant")),(e={},ls(e,"btn-".concat(t.size),t.size),ls(e,"btn-block",t.block),ls(e,"rounded-pill",t.pill),ls(e,"rounded-0",t.squared&&!t.pill),ls(e,"disabled",t.disabled),ls(e,"active",t.pressed),e)]},vs=function(t){return hs(t)?ca(cs,t):{}},ys=function(t,e){var n=$s(t),r=hs(t),i=ps(t),o=ms(t),a=r&&"#"===t.href,s=e.attrs&&e.attrs.role?e.attrs.role:null,l=e.attrs?e.attrs.tabindex:null;return(o||a)&&(l="0"),{type:n&&!r?t.type:null,disabled:n?t.disabled:null,role:o||a?"button":s,"aria-disabled":o?String(t.disabled):null,"aria-pressed":i?String(t.pressed):null,autocomplete:i?"off":null,tabindex:t.disabled&&!n?"-1":l}},_s=c.extend({name:fe,functional:!0,props:ds,render:function(t,e){var n=e.props,r=e.data,i=e.listeners,o=e.children,a=ps(n),s=hs(n),c=ms(n),u=s&&"#"===n.href,d={keydown:function(t){if(!n.disabled&&(c||u)){var e=t.keyCode;if(e===Ra||e===Ea&&c){var r=t.currentTarget||t.target;Io(t,{propagation:!1}),r.click()}}},click:function(t){n.disabled&&V(t)?Io(t):a&&i&&i["update:pressed"]&&ii(i["update:pressed"]).forEach((function(t){I(t)&&t(!n.pressed)}))}};a&&(d.focusin=fs,d.focusout=fs);var f={staticClass:"btn",class:gs(n),props:vs(n),attrs:ys(n,r),on:d};return t(s?os:n.tag,l(r,f),o)}});function bs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ws(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bs(Object(n),!0).forEach((function(e){xs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ks={title:{type:String},variant:{type:String,default:null},fontScale:{type:[Number,String],default:1},scale:{type:[Number,String],default:1},rotate:{type:[Number,String],default:0},flipH:{type:Boolean,default:!1},flipV:{type:Boolean,default:!1},shiftH:{type:[Number,String],default:0},shiftV:{type:[Number,String],default:0},animation:{type:String,default:null}},Ss={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},Os={width:null,height:null,focusable:null,role:null,"aria-label":null},Cs=c.extend({name:$n,functional:!0,props:ws({content:{type:String},stacked:{type:Boolean,default:!1}},ks),render:function(t,e){var n,r=e.data,i=e.props,o=e.children,a=Uo(ci(i.fontScale,1),0)||1,s=Uo(ci(i.scale,1),0)||1,c=ci(i.rotate,0),u=ci(i.shiftH,0),d=ci(i.shiftV,0),f=i.flipH,h=i.flipV,p=i.animation,$=f||h||1!==s,m=$||c,g=u||d,v=[m?"translate(8 8)":null,$?"scale(".concat((f?-1:1)*s," ").concat((h?-1:1)*s,")"):null,c?"rotate(".concat(c,")"):null,m?"translate(-8 -8)":null].filter(Xt),y=i.stacked,_=!L(i.content),b=t("g",{attrs:{transform:v.join(" ")||null},domProps:_?{innerHTML:i.content||""}:{}},o);g&&(b=t("g",{attrs:{transform:"translate(".concat(16*u/16," ").concat(-16*d/16,")")}},[b])),y&&(b=t("g",{},[b]));var w=i.title?t("title",i.title):null;return t("svg",l({staticClass:"b-icon bi",class:(n={},xs(n,"text-".concat(i.variant),!!i.variant),xs(n,"b-icon-animation-".concat(p),!!p),n),attrs:Ss,style:y?{}:{fontSize:1===a?null:"".concat(100*a,"%")}},r,y?{attrs:Os}:{},{attrs:{xmlns:y?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),[w,b])}});function As(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Es(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?As(Object(n),!0).forEach((function(e){Ts(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ts(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ps=function(t,e){var n=di(t),r="BIcon".concat(fi(t)),i="bi-".concat(n),o=n.replace(/-/g," "),a=yi(e||"");return c.extend({name:r,functional:!0,props:Es(Es({},ks),{},{stacked:{type:Boolean,default:!1}}),render:function(t,e){var n=e.data,r=e.props;return t(Cs,l({props:{title:o},attrs:{"aria-label":o}},n,{staticClass:i,props:Es(Es({},r),{},{content:a})}))}})},Bs=Ps("Blank",""),Ls=Ps("Calendar",'<path fill-rule="evenodd" d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/>'),Is=Ps("CalendarFill",'<path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V5h16V4H0V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5z"/>'),Ds=Ps("ChevronBarLeft",'<path fill-rule="evenodd" d="M11.854 3.646a.5.5 0 0 1 0 .708L8.207 8l3.647 3.646a.5.5 0 0 1-.708.708l-4-4a.5.5 0 0 1 0-.708l4-4a.5.5 0 0 1 .708 0zM4.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 1 0v-13a.5.5 0 0 0-.5-.5z"/>'),Rs=Ps("ChevronDoubleLeft",'<path fill-rule="evenodd" d="M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/><path fill-rule="evenodd" d="M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>'),js=Ps("ChevronDown",'<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>'),Ms=Ps("ChevronLeft",'<path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>'),Fs=Ps("ChevronUp",'<path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"/>'),Ns=Ps("CircleFill",'<circle cx="8" cy="8" r="8"/>'),zs=Ps("Clock",'<path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm8-7A8 8 0 1 1 0 8a8 8 0 0 1 16 0z"/><path fill-rule="evenodd" d="M7.5 3a.5.5 0 0 1 .5.5v5.21l3.248 1.856a.5.5 0 0 1-.496.868l-3.5-2A.5.5 0 0 1 7 9V3.5a.5.5 0 0 1 .5-.5z"/>'),Hs=Ps("ClockFill",'<path fill-rule="evenodd" d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z"/>'),Vs=Ps("Dash",'<path fill-rule="evenodd" d="M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z"/>'),Us=Ps("PersonFill",'<path fill-rule="evenodd" d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>'),qs=Ps("Plus",'<path fill-rule="evenodd" d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>'),Ws=Ps("Star",'<path fill-rule="evenodd" d="M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256 4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73 3.523-3.356c.329-.314.158-.888-.283-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356-.83 4.73zm4.905-2.767l-3.686 1.894.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288l1.847-3.658 1.846 3.658a.525.525 0 0 0 .393.288l4.052.575-2.906 2.77a.564.564 0 0 0-.163.506l.694 3.957-3.686-1.894a.503.503 0 0 0-.461 0z"/>'),Gs=Ps("StarFill",'<path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.283.95l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>'),Ys=Ps("StarHalf",'<path fill-rule="evenodd" d="M5.354 5.119L7.538.792A.516.516 0 0 1 8 .5c.183 0 .366.097.465.292l2.184 4.327 4.898.696A.537.537 0 0 1 16 6.32a.55.55 0 0 1-.17.445l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256a.519.519 0 0 1-.146.05c-.341.06-.668-.254-.6-.642l.83-4.73L.173 6.765a.55.55 0 0 1-.171-.403.59.59 0 0 1 .084-.302.513.513 0 0 1 .37-.245l4.898-.696zM8 12.027c.08 0 .16.018.232.056l3.686 1.894-.694-3.957a.564.564 0 0 1 .163-.505l2.906-2.77-4.052-.576a.525.525 0 0 1-.393-.288L8.002 2.223 8 2.226v9.8z"/>'),Ks=Ps("X",'<path fill-rule="evenodd" d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/>');
/*!
* BootstrapVue Icons, generated from Bootstrap Icons 1.0.0
*
* @link https://icons.getbootstrap.com/
* @license MIT
* https://github.com/twbs/icons/blob/master/LICENSE.md
*/function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xs(Object(n),!0).forEach((function(e){Js(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Js(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qs=c.extend({name:pn,functional:!0,props:Zs(Zs({icon:{type:String,default:null}},ks),{},{stacked:{type:Boolean,default:!1}}),render:function(t,e){var n=e.data,r=e.props,i=e.parent,o=fi(yi(r.icon||"")).replace(Gt,""),a="BIcon".concat(o),s=((i||{}).$options||{}).components,c=o&&s?s[a]||Bs:o?a:Bs;return t(c,l(n,{props:Zs(Zs({},r),{},{icon:null})}))}});function tl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function el(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tl(Object(n),!0).forEach((function(e){nl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rl="b-avatar",il=["sm",null,"lg"],ol=.4,al=.7*ol,sl=st(is,["active","event","routerTag"]),ll=el(el({src:{type:String},text:{type:String},icon:{type:String},alt:{type:String,default:"avatar"},variant:{type:String,default:function(){return Zr(ae,"variant")}},size:{type:[Number,String],default:null},square:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},button:{type:Boolean,default:!1},buttonType:{type:String,default:"button"},badge:{type:[Boolean,String],default:!1},badgeVariant:{type:String,default:function(){return Zr(ae,"badgeVariant")}},badgeTop:{type:Boolean,default:!1},badgeLeft:{type:Boolean,default:!1},badgeOffset:{type:String,default:"0px"}},sl),{},{ariaLabel:{type:String}}),cl=function(t){return t=R(t)&&Dt.test(t)?ci(t,0):t,j(t)?"".concat(t,"px"):t||null},ul=c.extend({name:ae,mixins:[Eo],inject:{bvAvatarGroup:{default:null}},props:ll,data:function(){return{localSrc:this.src||null}},computed:{computedSize:function(){var t=this.bvAvatarGroup;return cl(t?t.size:this.size)},computedVariant:function(){var t=this.bvAvatarGroup;return t&&t.variant?t.variant:this.variant},computedRounded:function(){var t=this.bvAvatarGroup,e=!(!t||!t.square)||this.square,n=t&&t.rounded?t.rounded:this.rounded;return e?"0":""===n||(n||"circle")},fontStyle:function(){var t=this.computedSize,e=-1===il.indexOf(t)?"calc(".concat(t," * ").concat(ol,")"):null;return e?{fontSize:e}:{}},marginStyle:function(){var t=this.computedSize,e=this.bvAvatarGroup,n=e?e.overlapScale:0,r=t&&n?"calc(".concat(t," * -").concat(n,")"):null;return r?{marginLeft:r,marginRight:r}:{}},badgeStyle:function(){var t=this.computedSize,e=this.badgeTop,n=this.badgeLeft,r=this.badgeOffset,i=r||"0px";return{fontSize:-1===il.indexOf(t)?"calc(".concat(t," * ").concat(al," )"):null,top:e?i:null,bottom:e?null:i,left:n?i:null,right:n?null:i}}},watch:{src:function(t,e){t!==e&&(this.localSrc=t||null)}},methods:{onImgError:function(t){this.localSrc=null,this.$emit("img-error",t)},onClick:function(t){this.$emit("click",t)}},render:function(t){var e,n=this.computedVariant,r=this.disabled,i=this.computedRounded,o=this.icon,a=this.localSrc,s=this.text,l=this.fontStyle,c=this.marginStyle,u=this.computedSize,d=this.button,f=this.buttonType,h=this.badge,p=this.badgeVariant,$=this.badgeStyle,m=!d&&_a(this),g=d?_s:m?os:"span",v=this.alt,y=this.ariaLabel||null,_=null;this.hasNormalizedSlot()?_=t("span",{staticClass:"b-avatar-custom"},[this.normalizeSlot()]):a?(_=t("img",{style:n?{}:{width:"100%",height:"100%"},attrs:{src:a,alt:v},on:{error:this.onImgError}}),_=t("span",{staticClass:"b-avatar-img"},[_])):_=o?t(Qs,{props:{icon:o},attrs:{"aria-hidden":"true",alt:v}}):s?t("span",{staticClass:"b-avatar-text",style:l},[t("span",s)]):t(Us,{attrs:{"aria-hidden":"true",alt:v}});var b=t(),w=this.hasNormalizedSlot("badge");if(h||""===h||w){var x=!0===h?"":h;b=t("span",{staticClass:"b-avatar-badge",class:nl({},"badge-".concat(p),!!p),style:$},[w?this.normalizeSlot("badge"):x])}var k={staticClass:rl,class:(e={},nl(e,"".concat(rl,"-").concat(u),u&&-1!==il.indexOf(u)),nl(e,"badge-".concat(n),!d&&n),nl(e,"rounded",!0===i),nl(e,"rounded-".concat(i),i&&!0!==i),nl(e,"disabled",r),e),style:el(el({},c),{},{width:u,height:u}),attrs:{"aria-label":y||null},props:d?{variant:n,disabled:r,type:f}:m?ca(sl,this):{},on:d||m?{click:this.onClick}:{}};return t(g,k,[_,b])}}),dl=c.extend({name:se,mixins:[Eo],provide:function(){return{bvAvatarGroup:this}},props:{variant:{type:String,default:null},size:{type:String,default:null},overlap:{type:[Number,String],default:.3},square:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},tag:{type:String,default:"div"}},computed:{computedSize:function(){return cl(this.size)},overlapScale:function(){return Vo(Uo(ci(this.overlap,0),0),1)/2},paddingStyle:function(){var t=this.computedSize;return t=t?"calc(".concat(t," * ").concat(this.overlapScale,")"):null,t?{paddingLeft:t,paddingRight:t}:{}}},render:function(t){var e=t("div",{staticClass:"b-avatar-group-inner",style:this.paddingStyle},[this.normalizeSlot()]);return t(this.tag,{staticClass:"b-avatar-group",attrs:{role:"group"}},[e])}}),fl=Nr({components:{BAvatar:ul,BAvatarGroup:dl}});function hl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hl(Object(n),!0).forEach((function(e){$l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ml=st(is,["event","routerTag"]);delete ml.href.default,delete ml.to.default;var gl=pl({tag:{type:String,default:"span"},variant:{type:String,default:function(){return Zr(le,"variant")}},pill:{type:Boolean,default:!1}},ml),vl=c.extend({name:le,functional:!0,props:gl,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=_a(n),a=o?os:n.tag,s={staticClass:"badge",class:[n.variant?"badge-".concat(n.variant):"badge-secondary",{"badge-pill":n.pill,active:n.active,disabled:n.disabled}],props:o?ca(ml,n):{}};return t(a,l(r,s),i)}}),yl=Nr({components:{BBadge:vl}}),_l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(Bt,"")},bl=function(t,e){return t?{innerHTML:t}:e?{textContent:e}:{}};function wl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wl(Object(n),!0).forEach((function(e){kl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sl=xl({text:{type:String,default:null},html:{type:String,default:null},ariaCurrent:{type:String,default:"location"}},st(is,["event","routerTag"])),Ol=c.extend({name:de,functional:!0,props:Sl,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.active,a=o?"span":os,s={attrs:{"aria-current":o?n.ariaCurrent:null},props:ca(Sl,n)};return i||(s.domProps=bl(n.html,n.text)),t(a,l(r,s),i)}}),Cl=c.extend({name:ue,functional:!0,props:Sl,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("li",l(r,{staticClass:"breadcrumb-item",class:{active:n.active}}),[t(Ol,{props:n},i)])}});function Al(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function El(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Al(Object(n),!0).forEach((function(e){Tl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pl={items:{type:Array,default:null}},Bl=c.extend({name:ce,functional:!0,props:Pl,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=i;if(F(n.items)){var a=!1;o=n.items.map((function(e,r){N(e)||(e={text:gi(e)});var i=e.active;return i&&(a=!0),i||a||(i=r+1===n.items.length),t(Cl,{props:El(El({},e),{},{active:i})})}))}return t("ol",l(r,{staticClass:"breadcrumb"}),o)}}),Ll=Nr({components:{BBreadcrumb:Bl,BBreadcrumbItem:Cl,BBreadcrumbLink:Ol}}),Il=Nr({components:{BButton:_s,BBtn:_s,BButtonClose:jo,BBtnClose:jo}});function Dl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rl={vertical:{type:Boolean,default:!1},size:{type:String,default:function(){return Zr(fe,"size")}},tag:{type:String,default:"div"},ariaRole:{type:String,default:"group"}},jl=c.extend({name:pe,functional:!0,props:Rl,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{class:Dl({"btn-group":!n.vertical,"btn-group-vertical":n.vertical},"btn-group-".concat(n.size),n.size),attrs:{role:n.ariaRole}}),i)}}),Ml=Nr({components:{BButtonGroup:jl,BBtnGroup:jl}}),Fl=[".btn:not(.disabled):not([disabled]):not(.dropdown-item)",".form-control:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])",'input[type="checkbox"]:not(.disabled)','input[type="radio"]:not(.disabled)'].join(","),Nl=c.extend({name:$e,mixins:[Eo],props:{justify:{type:Boolean,default:!1},keyNav:{type:Boolean,default:!1}},mounted:function(){this.keyNav&&this.getItems()},methods:{getItems:function(){var t=ji(Fl,this.$el);return t.forEach((function(t){t.tabIndex=-1})),t.filter((function(t){return Ii(t)}))},focusFirst:function(){var t=this.getItems();oo(t[0])},focusPrev:function(t){var e=this.getItems(),n=e.indexOf(t.target);n>-1&&(e=e.slice(0,n).reverse(),oo(e[0]))},focusNext:function(t){var e=this.getItems(),n=e.indexOf(t.target);n>-1&&(e=e.slice(n+1),oo(e[0]))},focusLast:function(){var t=this.getItems().reverse();oo(t[0])},onFocusin:function(t){var e=this.$el;t.target!==e||zi(e,t.relatedTarget)||(Io(t),this.focusFirst(t))},onKeydown:function(t){var e=t.keyCode,n=t.shiftKey;e===ja||e===Ba?(Io(t),n?this.focusFirst(t):this.focusPrev(t)):e!==Ca&&e!==Da||(Io(t),n?this.focusLast(t):this.focusNext(t))}},render:function(t){return t("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:this.keyNav?"0":null},on:this.keyNav?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot()])}}),zl=Nr({components:{BButtonToolbar:Nl,BBtnToolbar:Nl}}),Hl="gregory",Vl="long",Ul="narrow",ql="short",Wl="2-digit",Gl="numeric";function Yl(t,e){return Ql(t)||Jl(t,e)||Xl(t,e)||Kl()}function Kl(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xl(t,e){if(t){if("string"===typeof t)return Zl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zl(t,e):void 0}}function Zl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Jl(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function Ql(t){if(Array.isArray(t))return t}function tc(t,e,n){return tc=ec()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),o=new i;return n&&nc(o,n.prototype),o},tc.apply(null,arguments)}function ec(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function nc(t,e){return nc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},nc(t,e)}var rc=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return tc(Date,e)},ic=function(t){if(R(t)&&xt.test(t.trim())){var e=t.split(kt).map((function(t){return li(t,1)})),n=Yl(e,3),r=n[0],i=n[1],o=n[2];return rc(r,i-1,o)}return H(t)?rc(t.getFullYear(),t.getMonth(),t.getDate()):null},oc=function(t){if(t=ic(t),!t)return null;var e=t.getFullYear(),n="0".concat(t.getMonth()+1).slice(-2),r="0".concat(t.getDate()).slice(-2);return"".concat(e,"-").concat(n,"-").concat(r)},ac=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hl;t=ii(t).filter(Xt);var n=new Intl.DateTimeFormat(t,{calendar:e});return n.resolvedOptions().locale},sc=function(t,e){var n=new Intl.DateTimeFormat(t,e);return n.format},lc=function(t,e){return oc(t)===oc(e)},cc=function(t){return t=rc(t),t.setDate(1),t},uc=function(t){return t=rc(t),t.setMonth(t.getMonth()+1),t.setDate(0),t},dc=function(t,e){t=rc(t);var n=t.getMonth();return t.setFullYear(t.getFullYear()+e),t.getMonth()!==n&&t.setDate(0),t},fc=function(t){t=rc(t);var e=t.getMonth();return t.setMonth(e-1),t.getMonth()===e&&t.setDate(0),t},hc=function(t){t=rc(t);var e=t.getMonth();return t.setMonth(e+1),t.getMonth()===(e+2)%12&&t.setDate(0),t},pc=function(t){return dc(t,-1)},$c=function(t){return dc(t,1)},mc=function(t){return dc(t,-10)},gc=function(t){return dc(t,10)},vc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t=ic(t),e=ic(e)||t,n=ic(n)||t,t?t<e?e:t>n?n:t:null},yc=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map((function(t){return t.toLowerCase()})),_c=function(t){var e=gi(t).toLowerCase().replace(Yt,"").split("-"),n=e.slice(0,2).join("-"),r=e[0];return ri(yc,n)||ri(yc,r)},bc={props:{id:{type:String}},data:function(){return{localId_:null}},computed:{safeId:function(){var t=this.id||this.localId_,e=function(e){return t?(e=String(e||"").replace(/\s+/g,"_"),e?t+"_"+e:t):null};return e}},mounted:function(){var t=this;this.$nextTick((function(){t.localId_="__BVID__".concat(t._uid)}))}};function wc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wc(Object(n),!0).forEach((function(e){kc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sc=c.extend({name:me,mixins:[qa,bc,Eo],model:{prop:"value",event:"input"},props:{value:{type:[String,Date]},valueAsDate:{type:Boolean,default:!1},initialDate:{type:[String,Date]},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},min:{type:[String,Date]},max:{type:[String,Date]},dateDisabledFn:{type:Function},startWeekday:{type:[Number,String],default:0},locale:{type:[String,Array]},direction:{type:String},selectedVariant:{type:String,default:Zr(me,"selectedVariant")},todayVariant:{type:String,default:Zr(me,"todayVariant")},navButtonVariant:{type:String,default:Zr(me,"navButtonVariant")},noHighlightToday:{type:Boolean,default:!1},dateInfoFn:{type:Function},width:{type:String,default:"270px"},block:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},showDecadeNav:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},ariaControls:{type:String},roleDescription:{type:String},labelPrevDecade:{type:String,default:function(){return Zr(me,"labelPrevDecade")}},labelPrevYear:{type:String,default:function(){return Zr(me,"labelPrevYear")}},labelPrevMonth:{type:String,default:function(){return Zr(me,"labelPrevMonth")}},labelCurrentMonth:{type:String,default:function(){return Zr(me,"labelCurrentMonth")}},labelNextMonth:{type:String,default:function(){return Zr(me,"labelNextMonth")}},labelNextYear:{type:String,default:function(){return Zr(me,"labelNextYear")}},labelNextDecade:{type:String,default:function(){return Zr(me,"labelNextDecade")}},labelToday:{type:String,default:function(){return Zr(me,"labelToday")}},labelSelected:{type:String,default:function(){return Zr(me,"labelSelected")}},labelNoDateSelected:{type:String,default:function(){return Zr(me,"labelNoDateSelected")}},labelCalendar:{type:String,default:function(){return Zr(me,"labelCalendar")}},labelNav:{type:String,default:function(){return Zr(me,"labelNav")}},labelHelp:{type:String,default:function(){return Zr(me,"labelHelp")}},dateFormatOptions:{type:Object,default:function(){return{year:Gl,month:Vl,day:Gl,weekday:Vl}}},weekdayHeaderFormat:{type:String,default:ql,validator:function(t){return ri([Vl,ql,Ul],t)}}},data:function(){var t=oc(this.value)||"";return{selectedYMD:t,activeYMD:t||oc(vc(this.initialDate||this.getToday()),this.min,this.max),gridHasFocus:!1,isLive:!1}},computed:{valueId:function(){return this.safeId()},widgetId:function(){return this.safeId("_calendar-wrapper_")},navId:function(){return this.safeId("_calendar-nav_")},gridId:function(){return this.safeId("_calendar-grid_")},gridCaptionId:function(){return this.safeId("_calendar-grid-caption_")},gridHelpId:function(){return this.safeId("_calendar-grid-help_")},activeId:function(){return this.activeYMD?this.safeId("_cell-".concat(this.activeYMD,"_")):null},selectedDate:function(){return ic(this.selectedYMD)},activeDate:function(){return ic(this.activeYMD)},computedMin:function(){return ic(this.min)},computedMax:function(){return ic(this.max)},computedWeekStarts:function(){return Uo(li(this.startWeekday,0),0)%7},computedLocale:function(){return ac(ii(this.locale).filter(Xt),Hl)},calendarLocale:function(){var t=new Intl.DateTimeFormat(this.computedLocale,{calendar:Hl}),e=t.resolvedOptions().calendar,n=t.resolvedOptions().locale;return e!==Hl&&(n=n.replace(/-u-.+$/i,"").concat("-u-ca-gregory")),n},calendarYear:function(){return this.activeDate.getFullYear()},calendarMonth:function(){return this.activeDate.getMonth()},calendarFirstDay:function(){return rc(this.calendarYear,this.calendarMonth,1)},calendarDaysInMonth:function(){var t=rc(this.calendarFirstDay);return t.setMonth(t.getMonth()+1,0),t.getDate()},computedVariant:function(){return"btn-".concat(this.selectedVariant||"primary")},computedTodayVariant:function(){return"btn-outline-".concat(this.todayVariant||this.selectedVariant||"primary")},computedNavButtonVariant:function(){return"btn-outline-".concat(this.navButtonVariant||"primary")},isRTL:function(){var t=gi(this.direction).toLowerCase();return"rtl"===t||"ltr"!==t&&_c(this.computedLocale)},context:function(){var t=this.selectedYMD,e=ic(t),n=this.activeYMD,r=ic(n);return{selectedYMD:t,selectedDate:e,selectedFormatted:e?this.formatDateString(e):this.labelNoDateSelected,activeYMD:n,activeDate:r,activeFormatted:r?this.formatDateString(r):"",disabled:this.dateDisabled(r),locale:this.computedLocale,calendarLocale:this.calendarLocale,rtl:this.isRTL}},dateOutOfRange:function(){var t=this.computedMin,e=this.computedMax;return function(n){return n=ic(n),t&&n<t||e&&n>e}},dateDisabled:function(){var t=this.dateOutOfRange,e=I(this.dateDisabledFn)?this.dateDisabledFn:function(){return!1};return function(n){n=ic(n);var r=oc(n);return!(!t(n)&&!e(r,n))}},formatDateString:function(){return sc(this.calendarLocale,xc(xc({year:Gl,month:Wl,day:Wl},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:Hl}))},formatYearMonth:function(){return sc(this.calendarLocale,{year:Gl,month:Vl,calendar:Hl})},formatWeekdayName:function(){return sc(this.calendarLocale,{weekday:Vl,calendar:Hl})},formatWeekdayNameShort:function(){return sc(this.calendarLocale,{weekday:this.weekdayHeaderFormat||ql,calendar:Hl})},formatDay:function(){var t=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(e){return t.format(e.getDate())}},prevDecadeDisabled:function(){var t=this.computedMin;return this.disabled||t&&uc(mc(this.activeDate))<t},prevYearDisabled:function(){var t=this.computedMin;return this.disabled||t&&uc(pc(this.activeDate))<t},prevMonthDisabled:function(){var t=this.computedMin;return this.disabled||t&&uc(fc(this.activeDate))<t},thisMonthDisabled:function(){return this.disabled},nextMonthDisabled:function(){var t=this.computedMax;return this.disabled||t&&cc(hc(this.activeDate))>t},nextYearDisabled:function(){var t=this.computedMax;return this.disabled||t&&cc($c(this.activeDate))>t},nextDecadeDisabled:function(){var t=this.computedMax;return this.disabled||t&&cc(gc(this.activeDate))>t},calendar:function(){for(var t=[],e=this.calendarFirstDay,n=e.getFullYear(),r=e.getMonth(),i=this.calendarDaysInMonth,o=e.getDay(),a=(this.computedWeekStarts>o?7:0)-this.computedWeekStarts,s=I(this.dateInfoFn)?this.dateInfoFn:function(){return{}},l=0-a-o,c=0;c<6&&l<i;c++){t[c]=[];for(var u=0;u<7;u++){l++;var d=rc(n,r,l),f=d.getMonth(),h=oc(d),p=this.dateDisabled(d),$=s(h,ic(h));$=R($)||F($)?{class:$}:z($)?xc({class:""},$):{class:""},t[c].push({ymd:h,day:this.formatDay(d),label:this.formatDateString(d),isThisMonth:f===r,isDisabled:p,info:$})}}return t},calendarHeadings:function(){var t=this;return this.calendar[0].map((function(e){return{text:t.formatWeekdayNameShort(ic(e.ymd)),label:t.formatWeekdayName(ic(e.ymd))}}))}},watch:{value:function(t,e){var n=oc(t)||"",r=oc(e)||"";lc(n,r)||(this.activeYMD=n||this.activeYMD,this.selectedYMD=n)},selectedYMD:function(t,e){t!==e&&this.$emit("input",this.valueAsDate?ic(t)||null:t||"")},context:function(t,e){Na(t,e)||this.$emit("context",t)},hidden:function(t){this.activeYMD=this.selectedYMD||oc(this.value||this.constrainDate(this.initialDate||this.getToday())),this.setLive(!t)}},created:function(){var t=this;this.$nextTick((function(){t.$emit("context",t.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||oo(this.$refs.grid)},blur:function(){this.disabled||ao(this.$refs.grid)},setLive:function(t){var e=this;t?this.$nextTick((function(){Ci((function(){e.isLive=!0}))})):this.isLive=!1},getToday:function(){return ic(rc())},constrainDate:function(t){return vc(t,this.computedMin,this.computedMax)},emitSelected:function(t){var e=this;this.$nextTick((function(){e.$emit("selected",oc(t)||"",ic(t)||null)}))},setGridFocusFlag:function(t){this.gridHasFocus=!this.disabled&&"focus"===t.type},onKeydownWrapper:function(t){var e=t.altKey,n=t.ctrlKey,r=t.keyCode;if(ri([Ia,La,Aa,Pa,Ba,ja,Da,Ca],r)){Io(t);var i=rc(this.activeDate),o=rc(this.activeDate),a=i.getDate(),s=this.constrainDate(this.getToday()),l=this.isRTL;r===Ia?(i=(e?n?mc:pc:fc)(i),o=rc(i),o.setDate(1)):r===La?(i=(e?n?gc:$c:hc)(i),o=rc(i),o.setMonth(o.getMonth()+1),o.setDate(0)):r===Ba?(i.setDate(a+(l?1:-1)),i=this.constrainDate(i),o=i):r===Da?(i.setDate(a+(l?-1:1)),i=this.constrainDate(i),o=i):r===ja?(i.setDate(a-7),i=this.constrainDate(i),o=i):r===Ca?(i.setDate(a+7),i=this.constrainDate(i),o=i):r===Pa?(i=s,o=i):r===Aa&&(i=ic(this.selectedDate)||s,o=i),this.dateOutOfRange(o)||lc(i,this.activeDate)||(this.activeYMD=oc(i)),this.focus()}},onKeydownGrid:function(t){var e=t.keyCode,n=this.activeDate;e!==Ea&&e!==Ra||(Io(t),this.disabled||this.readonly||this.dateDisabled(n)||(this.selectedYMD=oc(n),this.emitSelected(n)),this.focus())},onClickDay:function(t){var e=this.selectedDate,n=this.activeDate,r=ic(t.ymd);this.disabled||t.isDisabled||this.dateDisabled(r)||(this.readonly||(this.selectedYMD=oc(lc(r,e)?e:r),this.emitSelected(r)),this.activeYMD=oc(lc(r,n)?n:rc(r)),this.focus())},gotoPrevDecade:function(){this.activeYMD=oc(this.constrainDate(mc(this.activeDate)))},gotoPrevYear:function(){this.activeYMD=oc(this.constrainDate(pc(this.activeDate)))},gotoPrevMonth:function(){this.activeYMD=oc(this.constrainDate(fc(this.activeDate)))},gotoCurrentMonth:function(){this.activeYMD=oc(this.constrainDate(this.getToday()))},gotoNextMonth:function(){this.activeYMD=oc(this.constrainDate(hc(this.activeDate)))},gotoNextYear:function(){this.activeYMD=oc(this.constrainDate($c(this.activeDate)))},gotoNextDecade:function(){this.activeYMD=oc(this.constrainDate(gc(this.activeDate)))},onHeaderClick:function(){this.disabled||(this.activeYMD=this.selectedYMD||oc(this.getToday()),this.focus())}},render:function(t){var e=this;if(this.hidden)return t();var n=this.valueId,r=this.widgetId,i=this.navId,o=this.gridId,a=this.gridCaptionId,s=this.gridHelpId,l=this.activeId,c=this.isLive,u=this.isRTL,d=this.activeYMD,f=this.selectedYMD,h=this.safeId,p=!this.showDecadeNav,$=oc(this.getToday()),m=!this.noHighlightToday,g=t("output",{staticClass:"form-control form-control-sm text-center",class:{"text-muted":this.disabled,readonly:this.readonly||this.disabled},attrs:{id:n,for:o,role:"status",tabindex:this.disabled?null:"-1","data-selected":gi(f),"aria-live":c?"polite":"off","aria-atomic":c?"true":null},on:{click:this.onHeaderClick,focus:this.onHeaderClick}},this.selectedDate?[t("bdi",{staticClass:"sr-only"}," (".concat(gi(this.labelSelected),") ")),t("bdi",this.formatDateString(this.selectedDate))]:this.labelNoDateSelected||" ");g=t("header",{staticClass:"b-calendar-header",class:{"sr-only":this.hideHeader},attrs:{title:this.selectedDate&&this.labelSelectedDate||null}},[g]);var v={isRTL:u},y={shiftV:.5},_=xc(xc({},y),{},{flipH:u}),b=xc(xc({},y),{},{flipH:!u}),w=this.normalizeSlot("nav-prev-decade",v)||t(Ds,{props:_}),x=this.normalizeSlot("nav-prev-year",v)||t(Rs,{props:_}),k=this.normalizeSlot("nav-prev-month",v)||t(Ms,{props:_}),S=this.normalizeSlot("nav-this-month",v)||t(Ns,{props:y}),O=this.normalizeSlot("nav-next-month",v)||t(Ms,{props:b}),C=this.normalizeSlot("nav-next-year",v)||t(Rs,{props:b}),A=this.normalizeSlot("nav-next-decade",v)||t(Ds,{props:b}),E=function(n,r,i,o,a){return t("button",{staticClass:"btn btn-sm border-0 flex-fill",class:[e.computedNavButtonVariant,{disabled:o}],attrs:{title:r||null,type:"button","aria-label":r||null,"aria-disabled":o?"true":null,"aria-keyshortcuts":a||null},on:o?{}:{click:i}},[t("div",{attrs:{"aria-hidden":"true"}},[n])])},T=t("div",{staticClass:"b-calendar-nav d-flex",attrs:{id:i,role:"group","aria-hidden":this.disabled?"true":null,"aria-label":this.labelNav||null,"aria-controls":o}},[p?t():E(w,this.labelPrevDecade,this.gotoPrevDecade,this.prevDecadeDisabled,"Ctrl+Alt+PageDown"),E(x,this.labelPrevYear,this.gotoPrevYear,this.prevYearDisabled,"Alt+PageDown"),E(k,this.labelPrevMonth,this.gotoPrevMonth,this.prevMonthDisabled,"PageDown"),E(S,this.labelCurrentMonth,this.gotoCurrentMonth,this.thisMonthDisabled,"Home"),E(O,this.labelNextMonth,this.gotoNextMonth,this.nextMonthDisabled,"PageUp"),E(C,this.labelNextYear,this.gotoNextYear,this.nextYearDisabled,"Alt+PageUp"),p?t():E(A,this.labelNextDecade,this.gotoNextDecade,this.nextDecadeDisabled,"Ctrl+Alt+PageUp")]),P=t("header",{key:"grid-caption",staticClass:"b-calendar-grid-caption text-center font-weight-bold",class:{"text-muted":this.disabled},attrs:{id:a,"aria-live":c?"polite":null,"aria-atomic":c?"true":null}},this.formatYearMonth(this.calendarFirstDay)),B=t("div",{staticClass:"b-calendar-grid-weekdays row no-gutters border-bottom",attrs:{"aria-hidden":"true"}},this.calendarHeadings.map((function(n,r){return t("small",{key:r,staticClass:"col text-truncate",class:{"text-muted":e.disabled},attrs:{title:n.label===n.text?null:n.label,"aria-label":n.label}},n.text)}))),L=this.calendar.map((function(n){var r=n.map((function(n,r){var i,o=n.ymd===f,a=n.ymd===d,s=n.ymd===$,l=h("_cell-".concat(n.ymd,"_")),c=t("span",{staticClass:"btn border-0 rounded-circle text-nowrap",class:(i={focus:a&&e.gridHasFocus,disabled:n.isDisabled||e.disabled,active:o},kc(i,e.computedVariant,o),kc(i,e.computedTodayVariant,s&&m&&!o&&n.isThisMonth),kc(i,"btn-outline-light",!(s&&m)&&!o&&!a),kc(i,"btn-light",!(s&&m)&&!o&&a),kc(i,"text-muted",!n.isThisMonth&&!o),kc(i,"text-dark",!(s&&m)&&!o&&!a&&n.isThisMonth),kc(i,"font-weight-bold",(o||n.isThisMonth)&&!n.isDisabled),i),on:{click:function(){return e.onClickDay(n)}}},n.day);return t("div",{key:r,staticClass:"col p-0",class:n.isDisabled?"bg-light":n.info.class||"",attrs:{id:l,role:"button","data-date":n.ymd,"aria-hidden":n.isThisMonth?null:"true","aria-disabled":n.isDisabled||e.disabled?"true":null,"aria-label":[n.label,o?"(".concat(e.labelSelected,")"):null,s?"(".concat(e.labelToday,")"):null].filter(Xt).join(" "),"aria-selected":o?"true":null,"aria-current":o?"date":null}},[c])}));return t("div",{key:n[0].ymd,staticClass:"row no-gutters"},r)}));L=t("div",{staticClass:"b-calendar-grid-body",style:this.disabled?{pointerEvents:"none"}:{}},L);var I=t("footer",{staticClass:"b-calendar-grid-help border-top small text-muted text-center bg-light",attrs:{id:s}},[t("div",{staticClass:"small"},this.labelHelp)]),D=t("div",{ref:"grid",staticClass:"b-calendar-grid form-control h-auto text-center",attrs:{id:o,role:"application",tabindex:this.disabled?null:"0","data-month":d.slice(0,-3),"aria-roledescription":this.labelCalendar||null,"aria-labelledby":a,"aria-describedby":s,"aria-disabled":this.disabled?"true":null,"aria-activedescendant":l},on:{keydown:this.onKeydownGrid,focus:this.setGridFocusFlag,blur:this.setGridFocusFlag}},[P,B,L,I]),R=this.normalizeSlot();R=R?t("footer",{staticClass:"b-calendar-footer"},R):t();var j=t("div",{staticClass:"b-calendar-inner",style:this.block?{}:{width:this.width},attrs:{id:r,dir:u?"rtl":"ltr",lang:this.computedLocale||null,role:"group","aria-disabled":this.disabled?"true":null,"aria-controls":this.ariaControls||null,"aria-roledescription":this.roleDescription||null,"aria-describedby":[this.bvAttrs["aria-describedby"],n,s].filter(Xt).join(" ")},on:{keydown:this.onKeydownWrapper}},[g,T,D,R]);return t("div",{staticClass:"b-calendar",class:{"d-block":this.block}},[j])}}),Oc=Nr({components:{BCalendar:Sc}}),Cc={props:{tag:{type:String,default:"div"},bgVariant:{type:String},borderVariant:{type:String},textVariant:{type:String}}},Ac={title:{type:String},titleTag:{type:String,default:"h4"}},Ec=c.extend({name:Oe,functional:!0,props:Ac,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.titleTag,l(r,{staticClass:"card-title"}),i||gi(n.title))}}),Tc={subTitle:{type:String},subTitleTag:{type:String,default:"h6"},subTitleTextVariant:{type:String,default:function(){return Zr(ke,"subTitleTextVariant")}}},Pc=c.extend({name:ke,functional:!0,props:Tc,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.subTitleTag,l(r,{staticClass:"card-subtitle",class:[n.subTitleTextVariant?"text-".concat(n.subTitleTextVariant):null]}),i||gi(n.subTitle))}});function Bc(t){return Rc(t)||Dc(t)||Ic(t)||Lc()}function Lc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ic(t,e){if(t){if("string"===typeof t)return jc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jc(t,e):void 0}}function Dc(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Rc(t){if(Array.isArray(t))return jc(t)}function jc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mc(Object(n),!0).forEach((function(e){Nc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Nc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zc=Fc(Fc(Fc(Fc({},la(Cc.props,oa.bind(null,"body"))),{},{bodyClass:{type:[String,Object,Array]}},Ac),Tc),{},{overlay:{type:Boolean,default:!1}}),Hc=c.extend({name:ve,functional:!0,props:zc,render:function(t,e){var n,r=e.props,i=e.data,o=e.children,a=t(),s=t(),c=o||[t()];return r.title&&(a=t(Ec,{props:ca(Ac,r)})),r.subTitle&&(s=t(Pc,{props:ca(Tc,r),class:["mb-2"]})),t(r.bodyTag,l(i,{staticClass:"card-body",class:[(n={"card-img-overlay":r.overlay},Nc(n,"bg-".concat(r.bodyBgVariant),r.bodyBgVariant),Nc(n,"border-".concat(r.bodyBorderVariant),r.bodyBorderVariant),Nc(n,"text-".concat(r.bodyTextVariant),r.bodyTextVariant),n),r.bodyClass||{}]}),[a,s].concat(Bc(c)))}});function Vc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vc(Object(n),!0).forEach((function(e){qc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function qc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Wc=Uc(Uc({},la(Cc.props,oa.bind(null,"header"))),{},{header:{type:String},headerHtml:{type:String},headerClass:{type:[String,Object,Array]}}),Gc=c.extend({name:be,functional:!0,props:Wc,render:function(t,e){var n,r=e.props,i=e.data,o=e.children,a=r.headerBgVariant,s=r.headerBorderVariant,c=r.headerTextVariant;return t(r.headerTag,l(i,{staticClass:"card-header",class:[r.headerClass,(n={},qc(n,"bg-".concat(a),a),qc(n,"border-".concat(s),s),qc(n,"text-".concat(c),c),n)],domProps:o?{}:bl(r.headerHtml,r.header)}),o)}});function Yc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yc(Object(n),!0).forEach((function(e){Xc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zc=Kc(Kc({},la(Cc.props,oa.bind(null,"footer"))),{},{footer:{type:String},footerHtml:{type:String},footerClass:{type:[String,Object,Array]}}),Jc=c.extend({name:ye,functional:!0,props:Zc,render:function(t,e){var n,r=e.props,i=e.data,o=e.children,a=r.footerBgVariant,s=r.footerBorderVariant,c=r.footerTextVariant;return t(r.footerTag,l(i,{staticClass:"card-footer",class:[r.footerClass,(n={},Xc(n,"bg-".concat(a),a),Xc(n,"border-".concat(s),s),Xc(n,"text-".concat(c),c),n)],domProps:o?{}:bl(r.footerHtml,r.footer)}),o)}}),Qc={src:{type:String,required:!0},alt:{type:String,default:null},top:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},start:{type:Boolean,default:!1},left:{type:Boolean,default:!1},end:{type:Boolean,default:!1},right:{type:Boolean,default:!1},height:{type:[Number,String]},width:{type:[Number,String]}},tu=c.extend({name:we,functional:!0,props:Qc,render:function(t,e){var n=e.props,r=e.data,i="card-img";return n.top?i+="-top":n.right||n.end?i+="-right":n.bottom?i+="-bottom":(n.left||n.start)&&(i+="-left"),t("img",l(r,{class:[i],attrs:{src:n.src||null,alt:n.alt,height:n.height||null,width:n.width||null}}))}});function eu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eu(Object(n),!0).forEach((function(e){ru(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ru(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var iu=la(Qc,oa.bind(null,"img"));iu.imgSrc.required=!1;var ou=nu(nu(nu(nu(nu(nu({},zc),Wc),Zc),iu),la(Cc.props)),{},{align:{type:String},noBody:{type:Boolean,default:!1}}),au=c.extend({name:ge,functional:!0,props:ou,render:function(t,e){var n,r=e.props,i=e.data,o=e.slots,a=e.scopedSlots,s=r.imgLeft,c=r.imgRight,u=r.imgStart,d=r.imgEnd,f=r.header,h=r.headerHtml,p=r.footer,$=r.footerHtml,m=r.align,g=r.textVariant,v=r.bgVariant,y=r.borderVariant,_=a||{},b=o(),w={},x=t(),k=t();if(r.imgSrc){var S=t(tu,{props:ca(iu,r,aa.bind(null,"img"))});r.imgBottom?k=S:x=S}var O=t(),C=Co(bo,_,b);(C||f||h)&&(O=t(Gc,{props:ca(Wc,r),domProps:C?{}:bl(h,f)},Ao(bo,w,_,b)));var A=Ao(go,w,_,b);r.noBody||(A=t(Hc,{props:ca(zc,r)},A));var E=t(),T=Co(_o,_,b);return(T||p||$)&&(E=t(Jc,{props:ca(Zc,r),domProps:C?{}:bl($,p)},Ao(_o,w,_,b))),t(r.tag,l(i,{staticClass:"card",class:(n={"flex-row":s||u,"flex-row-reverse":(c||d)&&!(s||u)},ru(n,"text-".concat(m),m),ru(n,"bg-".concat(v),v),ru(n,"border-".concat(y),y),ru(n,"text-".concat(g),g),n)}),[x,O,A,E,k])}});function su(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cu(t,e,n){return e&&lu(t.prototype,e),n&&lu(t,n),t}var uu="__bv__visibility_observer",du=function(){function t(e,n,r){su(this,t),this.el=e,this.callback=n.callback,this.margin=n.margin||0,this.once=n.once||!1,this.observer=null,this.visible=void 0,this.doneOnce=!1,this.createObserver(r)}return cu(t,[{key:"createObserver",value:function(t){var e=this;if(this.observer&&this.stop(),!this.doneOnce&&I(this.callback)){try{this.observer=new IntersectionObserver(this.handler.bind(this),{root:null,rootMargin:this.margin,threshold:0})}catch(n){return this.doneOnce=!0,this.observer=void 0,void this.callback(null)}t.context.$nextTick((function(){Ci((function(){e.observer&&e.observer.observe(e.el)}))}))}}},{key:"handler",value:function(t){var e=t?t[0]:{},n=Boolean(e.isIntersecting||e.intersectionRatio>0);n!==this.visible&&(this.visible=n,this.callback(n),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}},{key:"stop",value:function(){this.observer&&this.observer.disconnect(),this.observer=null}}]),t}(),fu=function(t){var e=t[uu];e&&e.stop&&e.stop(),delete t[uu]},hu=function(t,e,n){var r=e.value,i=e.modifiers,o={margin:"0px",once:!1,callback:r};nt(i).forEach((function(t){At.test(t)?o.margin="".concat(t,"px"):"once"===t.toLowerCase()&&(o.once=!0)})),fu(t),t[uu]=new du(t,o,n),t[uu]._prevModifiers=ot(i)},pu=function(t,e,n){var r=e.value,i=e.oldValue,o=e.modifiers;o=ot(o),!t||r===i&&t[uu]&&Na(o,t[uu]._prevModifiers)||hu(t,{value:r,modifiers:o},n)},$u=function(t){fu(t)},mu={bind:hu,componentUpdated:pu,unbind:$u};function gu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vu='<svg width="%{w}" height="%{h}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 %{w} %{h}" preserveAspectRatio="none"><rect width="100%" height="100%" style="fill:%{f};"></rect></svg>',yu={src:{type:String},srcset:{type:[String,Array]},sizes:{type:[String,Array]},alt:{type:String,default:null},width:{type:[Number,String]},height:{type:[Number,String]},block:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},thumbnail:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},center:{type:Boolean,default:!1},blank:{type:Boolean,default:!1},blankColor:{type:String,default:function(){return Zr(mn,"blankColor")}}},_u=function(t,e,n){var r=encodeURIComponent(vu.replace("%{w}",gi(t)).replace("%{h}",gi(e)).replace("%{f}",n));return"data:image/svg+xml;charset=UTF-8,".concat(r)},bu=c.extend({name:mn,functional:!0,props:yu,render:function(t,e){var n,r=e.props,i=e.data,o=r.src,a=li(r.width)||null,s=li(r.height)||null,c=null,u=r.block,d=ii(r.srcset).filter(Xt).join(","),f=ii(r.sizes).filter(Xt).join(",");return r.blank&&(!s&&a?s=a:!a&&s&&(a=s),a||s||(a=1,s=1),o=_u(a,s,r.blankColor||"transparent"),d=null,f=null),r.left?c="float-left":r.right?c="float-right":r.center&&(c="mx-auto",u=!0),t("img",l(i,{attrs:{src:o,alt:r.alt,width:a?gi(a):null,height:s?gi(s):null,srcset:d||null,sizes:f||null},class:(n={"img-thumbnail":r.thumbnail,"img-fluid":r.fluid||r.fluidGrow,"w-100":r.fluidGrow,rounded:""===r.rounded||!0===r.rounded},gu(n,"rounded-".concat(r.rounded),R(r.rounded)&&""!==r.rounded),gu(n,c,c),gu(n,"d-block",u),n)}))}});function wu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xu={src:{type:String,required:!0},srcset:{type:[String,Array]},sizes:{type:[String,Array]},alt:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},blankSrc:{type:String,default:null},blankColor:{type:String,default:function(){return Zr(gn,"blankColor")}},blankWidth:{type:[Number,String]},blankHeight:{type:[Number,String]},show:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},block:{type:Boolean,default:!1},thumbnail:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},center:{type:Boolean,default:!1},offset:{type:[Number,String],default:360}},ku=c.extend({name:gn,directives:{bVisible:mu},props:xu,data:function(){return{isShown:this.show}},computed:{computedSrc:function(){return!this.blankSrc||this.isShown?this.src:this.blankSrc},computedBlank:function(){return!(this.isShown||this.blankSrc)},computedWidth:function(){return this.isShown?this.width:this.blankWidth||this.width},computedHeight:function(){return this.isShown?this.height:this.blankHeight||this.height},computedSrcset:function(){var t=ii(this.srcset).filter(Xt).join(",");return!this.blankSrc||this.isShown?t:null},computedSizes:function(){var t=ii(this.sizes).filter(Xt).join(",");return!this.blankSrc||this.isShown?t:null}},watch:{show:function(t,e){if(t!==e){var n=!u["c"]||t;this.isShown=n,n!==t&&this.$nextTick(this.updateShowProp)}},isShown:function(t,e){t!==e&&this.updateShowProp()}},mounted:function(){this.isShown=!u["c"]||this.show},methods:{updateShowProp:function(){this.$emit("update:show",this.isShown)},doShow:function(t){!t&&null!==t||this.isShown||(this.isShown=!0)}},render:function(t){var e,n=[];this.isShown||n.push({name:"b-visible",value:this.doShow,modifiers:(e={},wu(e,"".concat(li(this.offset,0)),!0),wu(e,"once",!0),e)});return t(bu,{directives:n,props:{src:this.computedSrc,blank:this.computedBlank,width:this.computedWidth,height:this.computedHeight,srcset:this.computedSrcset||null,sizes:this.computedSizes||null,alt:this.alt,blankColor:this.blankColor,fluid:this.fluid,fluidGrow:this.fluidGrow,block:this.block,thumbnail:this.thumbnail,rounded:this.rounded,left:this.left,right:this.right,center:this.center}})}});function Su(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ou(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Su(Object(n),!0).forEach((function(e){Cu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Su(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Cu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Au=st(xu,["left","right","center","block","rounded","thumbnail","fluid","fluidGrow"]),Eu=Ou(Ou({},Au),{},{top:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},start:{type:Boolean,default:!1},left:{type:Boolean,default:!1},end:{type:Boolean,default:!1},right:{type:Boolean,default:!1}}),Tu=c.extend({name:xe,functional:!0,props:Eu,render:function(t,e){var n=e.props,r=e.data,i="card-img";n.top?i+="-top":n.right||n.end?i+="-right":n.bottom?i+="-bottom":(n.left||n.start)&&(i+="-left");var o=Ou(Ou({},n),{},{left:!1,right:!1,center:!1});return t(ku,l(r,{class:[i],props:o}))}}),Pu={textTag:{type:String,default:"p"}},Bu=c.extend({name:Se,functional:!0,props:Pu,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.textTag,l(r,{staticClass:"card-text"}),i)}}),Lu={tag:{type:String,default:"div"},deck:{type:Boolean,default:!1},columns:{type:Boolean,default:!1}},Iu=c.extend({name:_e,functional:!0,props:Lu,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{class:n.deck?"card-deck":n.columns?"card-columns":"card-group"}),i)}}),Du=Nr({components:{BCard:au,BCardHeader:Gc,BCardBody:Hc,BCardTitle:Ec,BCardSubTitle:Pc,BCardFooter:Jc,BCardImg:tu,BCardImgLazy:Tu,BCardText:Bu,BCardGroup:Iu}}),Ru={passive:!0},ju={passive:!0,capture:!1},Mu=function(){},Fu=Mu;function Nu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Nu(Object(n),!0).forEach((function(e){Hu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vu=function(t,e,n){if(t=t?t.$el||t:null,!Ti(t))return null;if(re("observeDom"))return null;var r=new Ai((function(t){for(var n=!1,r=0;r<t.length&&!n;r++){var i=t[r],o=i.type,a=i.target;("characterData"===o&&a.nodeType===Node.TEXT_NODE||"attributes"===o||"childList"===o&&(i.addedNodes.length>0||i.removedNodes.length>0))&&(n=!0)}n&&e()}));return r.observe(t,zu({childList:!0,subtree:!0},n)),r},Uu=Vu,qu={next:{dirClass:"carousel-item-left",overlayClass:"carousel-item-next"},prev:{dirClass:"carousel-item-right",overlayClass:"carousel-item-prev"}},Wu=650,Gu=500,Yu=40,Ku={TOUCH:"touch",PEN:"pen"},Xu={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend oTransitionEnd",transition:"transitionend"},Zu=function(t){for(var e in Xu)if(!P(t.style[e]))return Xu[e];return null},Ju=c.extend({name:Ce,mixins:[bc,Eo],provide:function(){return{bvCarousel:this}},model:{prop:"value",event:"input"},props:{labelPrev:{type:String,default:function(){return Zr(Ce,"labelPrev")}},labelNext:{type:String,default:function(){return Zr(Ce,"labelNext")}},labelGotoSlide:{type:String,default:function(){return Zr(Ce,"labelGotoSlide")}},labelIndicators:{type:String,default:function(){return Zr(Ce,"labelIndicators")}},interval:{type:Number,default:5e3},indicators:{type:Boolean,default:!1},controls:{type:Boolean,default:!1},noAnimation:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},noTouch:{type:Boolean,default:!1},noHoverPause:{type:Boolean,default:!1},imgWidth:{type:[Number,String]},imgHeight:{type:[Number,String]},background:{type:String},value:{type:Number,default:0}},data:function(){return{index:this.value||0,isSliding:!1,transitionEndEvent:null,slides:[],direction:null,isPaused:!(li(this.interval,0)>0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:{value:function(t,e){t!==e&&this.setSlide(li(t,0))},interval:function(t,e){t!==e&&(t?(this.pause(!0),this.start(!1)):this.pause(!1))},isPaused:function(t,e){t!==e&&this.$emit(t?"paused":"unpaused")},index:function(t,e){t===e||this.isSliding||this.doSlide(t,e)}},created:function(){this.$_interval=null,this.$_animationTimeout=null,this.$_touchTimeout=null,this.$_observer=null,this.isPaused=!(li(this.interval,0)>0)},mounted:function(){this.transitionEndEvent=Zu(this.$el)||null,this.updateSlides(),this.setObserver(!0)},beforeDestroy:function(){this.clearInterval(),this.clearAnimationTimeout(),this.clearTouchTimeout(),this.setObserver(!1)},methods:{clearInterval:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(){clearInterval(this.$_interval),this.$_interval=null})),clearAnimationTimeout:function(){clearTimeout(this.$_animationTimeout),this.$_animationTimeout=null},clearTouchTimeout:function(){clearTimeout(this.$_touchTimeout),this.$_touchTimeout=null},setObserver:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t&&(this.$_observer=Uu(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]}))},setSlide:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(u["j"]&&document.visibilityState&&document.hidden)){var r=this.noWrap,i=this.numSlides;t=Go(t),0!==i&&(this.isSliding?this.$once("sliding-end",(function(){return e.setSlide(t,n)})):(this.direction=n,this.index=t>=i?r?i-1:0:t<0?r?0:i-1:t,r&&this.index!==t&&this.index!==this.value&&this.$emit("input",this.index)))}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(t){t||(this.isPaused=!0),this.clearInterval()},start:function(t){t||(this.isPaused=!1),this.clearInterval(),this.interval&&this.numSlides>1&&(this.$_interval=setInterval(this.next,Uo(1e3,this.interval)))},restart:function(){this.$el.contains(Pi())||this.start()},doSlide:function(t,e){var n=this,r=Boolean(this.interval),i=this.calcDirection(this.direction,e,t),o=i.overlayClass,a=i.dirClass,s=this.slides[e],l=this.slides[t];if(s&&l){if(this.isSliding=!0,r&&this.pause(!1),this.$emit("sliding-start",t),this.$emit("input",this.index),this.noAnimation)Vi(l,"active"),Ui(s,"active"),this.isSliding=!1,this.$nextTick((function(){return n.$emit("sliding-end",t)}));else{Vi(l,o),Ri(l),Vi(s,a),Vi(l,a);var c=!1,u=function e(){if(!c){if(c=!0,n.transitionEndEvent){var r=n.transitionEndEvent.split(/\s+/);r.forEach((function(t){return Bo(l,t,e,ju)}))}n.clearAnimationTimeout(),Ui(l,a),Ui(l,o),Vi(l,"active"),Ui(s,"active"),Ui(s,a),Ui(s,o),Wi(s,"aria-current","false"),Wi(l,"aria-current","true"),Wi(s,"aria-hidden","true"),Wi(l,"aria-hidden","false"),n.isSliding=!1,n.direction=null,n.$nextTick((function(){return n.$emit("sliding-end",t)}))}};if(this.transitionEndEvent){var d=this.transitionEndEvent.split(/\s+/);d.forEach((function(t){return Po(l,t,u,ju)}))}this.$_animationTimeout=setTimeout(u,Wu)}r&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=ji(".carousel-item",this.$refs.inner);var t=this.slides.length,e=Uo(0,Vo(Go(this.index),t-1));this.slides.forEach((function(n,r){var i=r+1;r===e?(Vi(n,"active"),Wi(n,"aria-current","true")):(Ui(n,"active"),Wi(n,"aria-current","false")),Wi(n,"aria-posinset",String(i)),Wi(n,"aria-setsize",String(t))})),this.setSlide(e),this.start(this.isPaused)},calcDirection:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t?qu[t]:n>e?qu.next:qu.prev},handleClick:function(t,e){var n=t.keyCode;"click"!==t.type&&n!==Ra&&n!==Ea||(Io(t),e())},handleSwipe:function(){var t=qo(this.touchDeltaX);if(!(t<=Yu)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0?this.prev():e<0&&this.next()}},touchStart:function(t){u["f"]&&Ku[t.pointerType.toUpperCase()]?this.touchStartX=t.clientX:u["f"]||(this.touchStartX=t.touches[0].clientX)},touchMove:function(t){t.touches&&t.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=t.touches[0].clientX-this.touchStartX},touchEnd:function(t){u["f"]&&Ku[t.pointerType.toUpperCase()]&&(this.touchDeltaX=t.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this.clearTouchTimeout(),this.$_touchTimeout=setTimeout(this.start,Gu+Uo(1e3,this.interval))}},render:function(t){var e=this,n=t("div",{ref:"inner",class:["carousel-inner"],attrs:{id:this.safeId("__BV_inner_"),role:"list"}},[this.normalizeSlot()]),r=t();if(this.controls){var i=function(t){e.isSliding?Io(t,{propagation:!1}):e.handleClick(t,e.prev)},o=function(t){e.isSliding?Io(t,{propagation:!1}):e.handleClick(t,e.next)};r=[t("a",{class:["carousel-control-prev"],attrs:{href:"#",role:"button","aria-controls":this.safeId("__BV_inner_"),"aria-disabled":this.isSliding?"true":null},on:{click:i,keydown:i}},[t("span",{class:["carousel-control-prev-icon"],attrs:{"aria-hidden":"true"}}),t("span",{class:["sr-only"]},[this.labelPrev])]),t("a",{class:["carousel-control-next"],attrs:{href:"#",role:"button","aria-controls":this.safeId("__BV_inner_"),"aria-disabled":this.isSliding?"true":null},on:{click:o,keydown:o}},[t("span",{class:["carousel-control-next-icon"],attrs:{"aria-hidden":"true"}}),t("span",{class:["sr-only"]},[this.labelNext])])]}var a=t("ol",{class:["carousel-indicators"],directives:[{name:"show",rawName:"v-show",value:this.indicators,expression:"indicators"}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":this.indicators?"false":"true","aria-label":this.labelIndicators,"aria-owns":this.safeId("__BV_inner_")}},this.slides.map((function(n,r){return t("li",{key:"slide_".concat(r),class:{active:r===e.index},attrs:{role:"button",id:e.safeId("__BV_indicator_".concat(r+1,"_")),tabindex:e.indicators?"0":"-1","aria-current":r===e.index?"true":"false","aria-label":"".concat(e.labelGotoSlide," ").concat(r+1),"aria-describedby":e.slides[r].id||null,"aria-controls":e.safeId("__BV_inner_")},on:{click:function(t){e.handleClick(t,(function(){e.setSlide(r)}))},keydown:function(t){e.handleClick(t,(function(){e.setSlide(r)}))}}})}))),s={mouseenter:this.noHoverPause?Fu:this.pause,mouseleave:this.noHoverPause?Fu:this.restart,focusin:this.pause,focusout:this.restart,keydown:function(t){if(!/input|textarea/i.test(t.target.tagName)){var n=t.keyCode;n!==Ba&&n!==Da||(Io(t),e[n===Ba?"prev":"next"]())}}};return!this.noTouch&&u["h"]&&(u["f"]?(s["&pointerdown"]=this.touchStart,s["&pointerup"]=this.touchEnd):(s["&touchstart"]=this.touchStart,s["&touchmove"]=this.touchMove,s["&touchend"]=this.touchEnd)),t("div",{staticClass:"carousel",class:{slide:!this.noAnimation,"carousel-fade":!this.noAnimation&&this.fade,"pointer-event":!this.noTouch&&u["h"]&&u["f"]},style:{background:this.background},attrs:{role:"region",id:this.safeId(),"aria-busy":this.isSliding?"true":"false"},on:s},[n,r,a])}});function Qu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function td(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qu(Object(n),!0).forEach((function(e){ed(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ed(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nd={imgSrc:{type:String},imgAlt:{type:String},imgWidth:{type:[Number,String]},imgHeight:{type:[Number,String]},imgBlank:{type:Boolean,default:!1},imgBlankColor:{type:String,default:"transparent"}},rd=td(td({},nd),{},{contentVisibleUp:{type:String},contentTag:{type:String,default:"div"},caption:{type:String},captionHtml:{type:String},captionTag:{type:String,default:"h3"},text:{type:String},textHtml:{type:String},textTag:{type:String,default:"p"},background:{type:String}}),id=c.extend({name:Ae,mixins:[bc,Eo],inject:{bvCarousel:{default:function(){return{noTouch:!0}}}},props:rd,computed:{contentClasses:function(){return[this.contentVisibleUp?"d-none":"",this.contentVisibleUp?"d-".concat(this.contentVisibleUp,"-block"):""]},computedWidth:function(){return this.imgWidth||this.bvCarousel.imgWidth||null},computedHeight:function(){return this.imgHeight||this.bvCarousel.imgHeight||null}},render:function(t){var e=this.normalizeSlot("img");if(!e&&(this.imgSrc||this.imgBlank)){var n={};!this.bvCarousel.noTouch&&u["h"]&&(n.dragstart=function(t){return Io(t,{propagation:!1})}),e=t(bu,{props:td(td({},ca(nd,this.$props,aa.bind(null,"img"))),{},{width:this.computedWidth,height:this.computedHeight,fluidGrow:!0,block:!0}),on:n})}var r=[!(!this.caption&&!this.captionHtml)&&t(this.captionTag,{domProps:bl(this.captionHtml,this.caption)}),!(!this.text&&!this.textHtml)&&t(this.textTag,{domProps:bl(this.textHtml,this.text)}),this.normalizeSlot()||!1],i=t();return r.some(Boolean)&&(i=t(this.contentTag,{staticClass:"carousel-caption",class:this.contentClasses},r.map((function(e){return e||t()})))),t("div",{staticClass:"carousel-item",style:{background:this.background||this.bvCarousel.background||null},attrs:{id:this.safeId(),role:"listitem"}},[e,i])}}),od=Nr({components:{BCarousel:Ju,BCarouselSlide:id}}),ad=function(t){Xi(t,"height",0),Ci((function(){Ri(t),Xi(t,"height","".concat(t.scrollHeight,"px"))}))},sd=function(t){Zi(t,"height")},ld=function(t){Xi(t,"height","auto"),Xi(t,"display","block"),Xi(t,"height","".concat(Qi(t).height,"px")),Ri(t),Xi(t,"height",0)},cd=function(t){Zi(t,"height")},ud={css:!0,enterClass:"",enterActiveClass:"collapsing",enterToClass:"collapse show",leaveClass:"collapse show",leaveActiveClass:"collapsing",leaveToClass:"collapse"},dd={enter:ad,afterEnter:sd,leave:ld,afterLeave:cd},fd=c.extend({name:Pe,functional:!0,props:{appear:{type:Boolean,default:!1}},render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("transition",l(r,{props:ud,on:dd},{props:n}),i)}}),hd={methods:{listenOnRoot:function(t,e){var n=this;this.$root.$on(t,e),this.$on("hook:beforeDestroy",(function(){n.$root.$off(t,e)}))},listenOnRootOnce:function(t,e){var n=this;this.$root.$once(t,e),this.$on("hook:beforeDestroy",(function(){n.$root.$off(t,e)}))},emitOnRoot:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.$root).$emit.apply(e,[t].concat(r))}}},pd="collapsed",$d="not-collapsed",md="__BV_toggle",gd="".concat(md,"_HANDLER__"),vd="".concat(md,"_CLICK__"),yd="".concat(md,"_STATE__"),_d="".concat(md,"_TARGETS__"),bd="false",wd="true",xd="aria-controls",kd="aria-expanded",Sd="role",Od="tabindex",Cd="overflow-anchor",Ad="bv::toggle::collapse",Ed="bv::collapse::state",Td="bv::collapse::sync::state",Pd="bv::request::collapse::state",Bd=[Ea,Ra],Ld=function(t){return!ri(["button","a"],t.tagName.toLowerCase())},Id=function(t,e){var n=t.modifiers,r=t.arg,i=t.value,o=nt(n||{});if(i=R(i)?i.split(Mt):i,Bi(e.tagName,"a")){var a=Yi(e,"href")||"";Pt.test(a)&&o.push(a.replace(Tt,""))}return ii(r,i).forEach((function(t){return R(t)&&o.push(t)})),o.filter((function(t,e,n){return t&&n.indexOf(t)===e}))},Dd=function(t){var e=t[vd];e&&(Bo(t,"click",e,Ru),Bo(t,"keydown",e,Ru)),t[vd]=null},Rd=function(t,e){if(Dd(t),e.context){var n=function(n){if(("keydown"!==n.type||ri(Bd,n.keyCode))&&!Di(t)){var r=t[_d]||[];r.forEach((function(t){e.context.$root.$emit(Ad,t)}))}};t[vd]=n,Po(t,"click",n,Ru),Ld(t)&&Po(t,"keydown",n,Ru)}},jd=function(t,e){t[gd]&&e.context&&e.context.$root.$off([Ed,Td],t[gd]),t[gd]=null},Md=function(t,e){if(jd(t,e),e.context){var n=function(e,n){ri(t[_d]||[],e)&&(t[yd]=n,Fd(t,n))};t[gd]=n,e.context.$root.$on([Ed,Td],n)}},Fd=function(t,e){e?(Ui(t,pd),Vi(t,$d),Wi(t,kd,wd)):(Ui(t,$d),Vi(t,pd),Wi(t,kd,bd))},Nd=function(t,e){t[e]=null,delete t[e]},zd=function(t,e,n){if(u["j"]&&n.context){Ld(t)&&(Ki(t,Sd)||Wi(t,Sd,"button"),Ki(t,Od)||Wi(t,Od,"0")),Fd(t,t[yd]);var r=Id(e,t);r.length>0?(Wi(t,xd,r.join(" ")),Xi(t,Cd,"none")):(Gi(t,xd),Zi(t,Cd)),Ci((function(){Rd(t,n)})),Na(r,t[_d])||(t[_d]=r,r.forEach((function(t){n.context.$root.$emit(Pd,t)})))}},Hd={bind:function(t,e,n){t[yd]=!1,t[_d]=[],Md(t,n),zd(t,e,n)},componentUpdated:zd,updated:zd,unbind:function(t,e,n){Dd(t),jd(t,n),Nd(t,gd),Nd(t,vd),Nd(t,yd),Nd(t,_d),Ui(t,pd),Ui(t,$d),Gi(t,kd),Gi(t,xd),Gi(t,Sd),Zi(t,Cd)}},Vd="bv::collapse::accordion",Ud=c.extend({name:Te,mixins:[bc,hd,Eo],model:{prop:"visible",event:"input"},props:{isNav:{type:Boolean,default:!1},accordion:{type:String},visible:{type:Boolean,default:!1},tag:{type:String,default:"div"},appear:{type:Boolean,default:!1}},data:function(){return{show:this.visible,transitioning:!1}},computed:{classObject:function(){return{"navbar-collapse":this.isNav,collapse:!this.transitioning,show:this.show&&!this.transitioning}}},watch:{visible:function(t){t!==this.show&&(this.show=t)},show:function(t,e){t!==e&&this.emitState()}},created:function(){this.show=this.visible},mounted:function(){var t=this;this.show=this.visible,this.listenOnRoot(Ad,this.handleToggleEvt),this.listenOnRoot(Vd,this.handleAccordionEvt),this.isNav&&(this.setWindowEvents(!0),this.handleResize()),this.$nextTick((function(){t.emitState()})),this.listenOnRoot(Pd,(function(e){e===t.safeId()&&t.$nextTick(t.emitSync)}))},updated:function(){this.emitSync()},deactivated:function(){this.isNav&&this.setWindowEvents(!1)},activated:function(){this.isNav&&this.setWindowEvents(!0),this.emitSync()},beforeDestroy:function(){this.show=!1,this.isNav&&u["j"]&&this.setWindowEvents(!1)},methods:{setWindowEvents:function(t){Lo(t,window,"resize",this.handleResize,ju),Lo(t,window,"orientationchange",this.handleResize,ju)},toggle:function(){this.show=!this.show},onEnter:function(){this.transitioning=!0,this.$emit("show")},onAfterEnter:function(){this.transitioning=!1,this.$emit("shown")},onLeave:function(){this.transitioning=!0,this.$emit("hide")},onAfterLeave:function(){this.transitioning=!1,this.$emit("hidden")},emitState:function(){this.$emit("input",this.show),this.emitOnRoot(Ed,this.safeId(),this.show),this.accordion&&this.show&&this.emitOnRoot(Vd,this.safeId(),this.accordion)},emitSync:function(){this.emitOnRoot(Td,this.safeId(),this.show)},checkDisplayBlock:function(){var t=qi(this.$el,"show");Ui(this.$el,"show");var e="block"===to(this.$el).display;return t&&Vi(this.$el,"show"),e},clickHandler:function(t){var e=t.target;this.isNav&&e&&"block"===to(this.$el).display&&(Fi(e,".nav-link,.dropdown-item")||Ni(".nav-link,.dropdown-item",e))&&(this.checkDisplayBlock()||(this.show=!1))},handleToggleEvt:function(t){t===this.safeId()&&this.toggle()},handleAccordionEvt:function(t,e){this.accordion&&e===this.accordion&&(t===this.safeId()?this.show||this.toggle():this.show&&this.toggle())},handleResize:function(){this.show="block"===to(this.$el).display}},render:function(t){var e=this,n={visible:this.show,close:function(){return e.show=!1}},r=t(this.tag,{class:this.classObject,directives:[{name:"show",value:this.show}],attrs:{id:this.safeId()},on:{click:this.clickHandler}},[this.normalizeSlot(go,n)]);return t(fd,{props:{appear:this.appear},on:{enter:this.onEnter,afterEnter:this.onAfterEnter,leave:this.onLeave,afterLeave:this.onAfterLeave}},[r])}}),qd=Nr({directives:{VBToggle:Hd}}),Wd=Nr({components:{BCollapse:Ud},plugins:{VBTogglePlugin:qd}}),Gd=n("f0bd"),Yd="top-start",Kd="top-end",Xd="bottom-start",Zd="bottom-end",Jd="right-start",Qd="left-start";function tf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ef(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nf(t,e,n){return e&&ef(t.prototype,e),n&&ef(t,n),t}var rf=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(tf(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));X(this,t.Defaults,this.constructor.Defaults,n,{type:e}),J(this,{type:ct(),cancelable:ct(),nativeEvent:ct(),target:ct(),relatedTarget:ct(),vueTarget:ct(),componentId:ct()});var r=!1;this.preventDefault=function(){this.cancelable&&(r=!0)},Q(this,"defaultPrevented",{enumerable:!0,get:function(){return r}})}return nf(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),of={data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(t,e){t!==e&&(Bo(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ju),t&&Po(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ju))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&Po(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ju)},beforeDestroy:function(){Bo(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,ju)},methods:{isClickOut:function(t){return!zi(this.$el,t.target)},_clickOutHandler:function(t){this.clickOutHandler&&this.isClickOut(t)&&this.clickOutHandler(t)}}},af={data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(t,e){t!==e&&(Bo(this.focusInElement,"focusin",this._focusInHandler,ju),t&&Po(this.focusInElement,"focusin",this._focusInHandler,ju))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&Po(this.focusInElement,"focusin",this._focusInHandler,ju)},beforeDestroy:function(){Bo(this.focusInElement,"focusin",this._focusInHandler,ju)},methods:{_focusInHandler:function(t){this.focusInHandler&&this.focusInHandler(t)}}};function sf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sf(Object(n),!0).forEach((function(e){cf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uf="bv::dropdown::",df="".concat(uf,"shown"),ff="".concat(uf,"hidden"),hf=".dropdown form",pf=[".dropdown-item",".b-dropdown-form"].map((function(t){return"".concat(t,":not(.disabled):not([disabled])")})).join(", "),$f=function(t){return(t||[]).filter(Ii)},mf={dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},right:{type:Boolean,default:!1},offset:{type:[Number,String],default:0},noFlip:{type:Boolean,default:!1},popperOpts:{type:Object,default:function(){}},boundary:{type:[String,S],default:"scrollParent"}},gf={mixins:[bc,of,af],provide:function(){return{bvDropdown:this}},inject:{bvNavbar:{default:null}},props:lf(lf({},mf),{},{disabled:{type:Boolean,default:!1}}),data:function(){return{visible:!1,visibleChangePrevented:!1}},computed:{inNavbar:function(){return!B(this.bvNavbar)},toggler:function(){var t=this.$refs.toggle;return t?t.$el||t:null},directionClass:function(){return this.dropup?"dropup":this.dropright?"dropright":this.dropleft?"dropleft":""},boundaryClass:function(){return"scrollParent"===this.boundary||this.inNavbar?"":"position-static"}},watch:{visible:function(t,e){if(this.visibleChangePrevented)this.visibleChangePrevented=!1;else if(t!==e){var n=t?"show":"hide",r=new rf(n,{cancelable:!0,vueTarget:this,target:this.$refs.menu,relatedTarget:null,componentId:this.safeId?this.safeId():this.id||null});if(this.emitEvent(r),r.defaultPrevented)return this.visibleChangePrevented=!0,this.visible=e,void this.$off("hidden",this.focusToggler);"show"===n?this.showMenu():this.hideMenu()}},disabled:function(t,e){t!==e&&t&&this.visible&&(this.visible=!1)}},created:function(){this.$_popper=null},deactivated:function(){this.visible=!1,this.whileOpenListen(!1),this.destroyPopper()},beforeDestroy:function(){this.visible=!1,this.whileOpenListen(!1),this.destroyPopper()},methods:{emitEvent:function(t){var e=t.type;this.$emit(e,t),this.$root.$emit("".concat(uf).concat(e),t)},showMenu:function(){var t=this;if(!this.disabled){if(!this.inNavbar)if("undefined"===typeof Gd["a"])te("Popper.js not found. Falling back to CSS positioning",Le);else{var e=this.dropup&&this.right||this.split?this.$el:this.$refs.toggle;e=e.$el||e,this.createPopper(e)}this.$root.$emit(df,this),this.whileOpenListen(!0),this.$nextTick((function(){t.focusMenu(),t.$emit("shown")}))}},hideMenu:function(){this.whileOpenListen(!1),this.$root.$emit(ff,this),this.$emit("hidden"),this.destroyPopper()},createPopper:function(t){this.destroyPopper(),this.$_popper=new Gd["a"](t,this.$refs.menu,this.getPopperConfig())},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){try{this.$_popper.scheduleUpdate()}catch(t){}},getPopperConfig:function(){var t=Xd;this.dropup?t=this.right?Kd:Yd:this.dropright?t=Jd:this.dropleft?t=Qd:this.right&&(t=Zd);var e={placement:t,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip}}},n=this.boundary;return n&&(e.modifiers.preventOverflow={boundariesElement:n}),lt(e,this.popperOpts||{})},whileOpenListen:function(t){this.listenForClickOut=t,this.listenForFocusIn=t;var e=t?"$on":"$off";this.$root[e](df,this.rootCloseListener)},rootCloseListener:function(t){t!==this&&(this.visible=!1)},show:function(){var t=this;this.disabled||Ci((function(){t.visible=!0}))},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.disabled||(this.visible=!1,t&&this.$once("hidden",this.focusToggler))},toggle:function(t){t=t||{};var e=t,n=e.type,r=e.keyCode;("click"===n||"keydown"===n&&-1!==[Ea,Ra,Ca].indexOf(r))&&(this.disabled?this.visible=!1:(this.$emit("toggle",t),Io(t),this.visible?this.hide(!0):this.show()))},onMousedown:function(t){Io(t,{propagation:!1})},onKeydown:function(t){var e=t.keyCode;e===Ta?this.onEsc(t):e===Ca?this.focusNext(t,!1):e===ja&&this.focusNext(t,!0)},onEsc:function(t){this.visible&&(this.visible=!1,Io(t),this.$once("hidden",this.focusToggler))},onSplitClick:function(t){this.disabled?this.visible=!1:this.$emit("click",t)},hideHandler:function(t){var e=t.target;!this.visible||zi(this.$refs.menu,e)||zi(this.toggler,e)||this.hide()},clickOutHandler:function(t){this.hideHandler(t)},focusInHandler:function(t){this.hideHandler(t)},focusNext:function(t,e){var n=this,r=t.target;!this.visible||t&&Ni(hf,r)||(Io(t),this.$nextTick((function(){var t=n.getItems();if(!(t.length<1)){var i=t.indexOf(r);e&&i>0?i--:!e&&i<t.length-1&&i++,i<0&&(i=0),n.focusItem(i,t)}})))},focusItem:function(t,e){var n=e.find((function(e,n){return n===t}));oo(n)},getItems:function(){return $f(ji(pf,this.$refs.menu))},focusMenu:function(){oo(this.$refs.menu)},focusToggler:function(){var t=this;this.$nextTick((function(){oo(t.toggler)}))}}};function vf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vf(Object(n),!0).forEach((function(e){_f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bf={text:{type:String},html:{type:String},variant:{type:String,default:function(){return Zr(Le,"variant")}},size:{type:String,default:function(){return Zr(Le,"size")}},block:{type:Boolean,default:!1},menuClass:{type:[String,Array,Object]},toggleTag:{type:String,default:"button"},toggleText:{type:String,default:function(){return Zr(Le,"toggleText")}},toggleClass:{type:[String,Array,Object]},noCaret:{type:Boolean,default:!1},split:{type:Boolean,default:!1},splitHref:{type:String},splitTo:{type:[String,Object]},splitVariant:{type:String,default:function(){return Zr(Le,"splitVariant")}},splitClass:{type:[String,Array,Object]},splitButtonType:{type:String,default:"button",validator:function(t){return ri(["button","submit","reset"],t)}},lazy:{type:Boolean,default:!1},role:{type:String,default:"menu"}},wf=c.extend({name:Le,mixins:[bc,gf,Eo],props:bf,computed:{dropdownClasses:function(){var t=this.block,e=this.split;return[this.directionClass,this.boundaryClass,{show:this.visible,"btn-group":e||!t,"d-flex":t&&e}]},menuClasses:function(){return[this.menuClass,{"dropdown-menu-right":this.right,show:this.visible}]},toggleClasses:function(){var t=this.split;return[this.toggleClass,{"dropdown-toggle-split":t,"dropdown-toggle-no-caret":this.noCaret&&!t}]}},render:function(t){var e=this.visible,n=this.variant,r=this.size,i=this.block,o=this.disabled,a=this.split,s=this.role,l=this.hide,c=this.toggle,u={variant:n,size:r,block:i,disabled:o},d="button-content",f=this.normalizeSlot(d),h=this.hasNormalizedSlot(d)?{}:bl(this.html,this.text),p=t();if(a){var $=this.splitTo,m=this.splitHref,g=this.splitButtonType,v=yf(yf({},u),{},{variant:this.splitVariant||n});$?v.to=$:m?v.href=m:g&&(v.type=g),p=t(_s,{class:this.splitClass,attrs:{id:this.safeId("_BV_button_")},props:v,domProps:h,on:{click:this.onSplitClick},ref:"button"},f),f=[t("span",{class:["sr-only"]},[this.toggleText])],h={}}var y=t(_s,{staticClass:"dropdown-toggle",class:this.toggleClasses,attrs:{id:this.safeId("_BV_toggle_"),"aria-haspopup":"true","aria-expanded":gi(e)},props:yf(yf({},u),{},{tag:this.toggleTag,block:i&&!a}),domProps:h,on:{mousedown:this.onMousedown,click:c,keydown:c},ref:"toggle"},f),_=t("ul",{staticClass:"dropdown-menu",class:this.menuClasses,attrs:{role:s,tabindex:"-1","aria-labelledby":this.safeId(a?"_BV_button_":"_BV_toggle_")},on:{keydown:this.onKeydown},ref:"menu"},[!this.lazy||e?this.normalizeSlot(go,{hide:l}):t()]);return t("div",{staticClass:"dropdown b-dropdown",class:this.dropdownClasses,attrs:{id:this.safeId()}},[p,y,_])}});function xf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xf(Object(n),!0).forEach((function(e){Sf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Of=st(is,["event","routerTag"]),Cf=c.extend({name:Me,mixins:[qa,Eo],inheritAttrs:!1,inject:{bvDropdown:{default:null}},props:kf(kf({},Of),{},{linkClass:{type:[String,Array,Object]},variant:{type:String}}),computed:{computedAttrs:function(){return kf(kf({},this.bvAttrs),{},{role:"menuitem"})}},methods:{closeDropdown:function(){var t=this;Ci((function(){t.bvDropdown&&t.bvDropdown.hide(!0)}))},onClick:function(t){this.$emit("click",t),this.closeDropdown()}},render:function(t){var e=this.linkClass,n=this.variant,r=this.active,i=this.disabled,o=this.onClick;return t("li",{attrs:{role:"presentation"}},[t(os,{staticClass:"dropdown-item",class:[e,Sf({},"text-".concat(n),n&&!(r||i))],props:this.$props,attrs:this.computedAttrs,on:{click:o},ref:"item"},this.normalizeSlot())])}});function Af(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ef(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Af(Object(n),!0).forEach((function(e){Tf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Tf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pf={active:{type:Boolean,default:!1},activeClass:{type:String,default:"active"},buttonClass:{type:[String,Array,Object]},disabled:{type:Boolean,default:!1},variant:{type:String}},Bf=c.extend({name:Fe,mixins:[qa,Eo],inheritAttrs:!1,inject:{bvDropdown:{default:null}},props:Pf,computed:{computedAttrs:function(){return Ef(Ef({},this.bvAttrs),{},{role:"menuitem",type:"button",disabled:this.disabled})}},methods:{closeDropdown:function(){this.bvDropdown&&this.bvDropdown.hide(!0)},onClick:function(t){this.$emit("click",t),this.closeDropdown()}},render:function(t){var e;return t("li",{attrs:{role:"presentation"}},[t("button",{staticClass:"dropdown-item",class:[this.buttonClass,(e={},Tf(e,this.activeClass,this.active),Tf(e,"text-".concat(this.variant),this.variant&&!(this.active||this.disabled)),e)],attrs:this.computedAttrs,on:{click:this.onClick},ref:"button"},this.normalizeSlot())])}});function Lf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function If(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Lf(Object(n),!0).forEach((function(e){Df(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Df(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rf={id:{type:String},tag:{type:String,default:"header"},variant:{type:String}},jf=c.extend({name:je,functional:!0,props:Rf,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=r.attrs||{};return r.attrs={},t("li",l(r,{attrs:{role:"presentation"}}),[t(n.tag,{staticClass:"dropdown-header",class:Df({},"text-".concat(n.variant),n.variant),attrs:If(If({},o),{},{id:n.id||null,role:"heading"}),ref:"header"},i)])}});function Mf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ff(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mf(Object(n),!0).forEach((function(e){Nf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Nf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zf={tag:{type:String,default:"hr"}},Hf=c.extend({name:Ie,functional:!0,props:zf,render:function(t,e){var n=e.props,r=e.data,i=r.attrs||{};return r.attrs={},t("li",l(r,{attrs:{role:"presentation"}}),[t(n.tag,{staticClass:"dropdown-divider",attrs:Ff(Ff({},i),{},{role:"separator","aria-orientation":"horizontal"}),ref:"divider"})])}}),Vf={id:{type:String},inline:{type:Boolean,default:!1},novalidate:{type:Boolean,default:!1},validated:{type:Boolean,default:!1}},Uf=c.extend({name:He,functional:!0,props:Vf,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t("form",l(r,{class:{"form-inline":n.inline,"was-validated":n.validated},attrs:{id:n.id,novalidate:n.novalidate}}),i)}});function qf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qf(Object(n),!0).forEach((function(e){Gf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yf=c.extend({name:De,functional:!0,props:Wf(Wf({},Vf),{},{disabled:{type:Boolean,default:!1},formClass:{type:[String,Object,Array]}}),render:function(t,e){var n=e.props,r=e.data,i=e.children,o=r.attrs||{},a=r.on||{};return r.attrs={},r.on={},t("li",l(r,{attrs:{role:"presentation"}}),[t(Uf,{ref:"form",staticClass:"b-dropdown-form",class:[n.formClass,{disabled:n.disabled}],props:n,attrs:Wf(Wf({},o),{},{disabled:n.disabled,tabindex:n.disabled?null:"-1"}),on:a},i)])}});function Kf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xf=c.extend({name:Ne,functional:!0,props:{tag:{type:String,default:"p"},textClass:{type:[String,Array,Object]},variant:{type:String}},render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.tag,a=n.textClass,s=n.variant,c=r.attrs||{};return r.attrs={},t("li",l(r,{attrs:{role:"presentation"}}),[t(o,{staticClass:"b-dropdown-text",class:[a,Kf({},"text-".concat(s),s)],props:n,attrs:c,ref:"text"},i)])}});function Zf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zf(Object(n),!0).forEach((function(e){Qf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var th={id:{type:String},header:{type:String},headerTag:{type:String,default:"header"},headerVariant:{type:String},headerClasses:{type:[String,Array,Object]},ariaDescribedby:{type:String}},eh=c.extend({name:Re,functional:!0,props:th,render:function(t,e){var n,r=e.props,i=e.data,o=e.slots,a=e.scopedSlots,s=o(),c=a||{},u=i.attrs||{};i.attrs={};var d=null;(Co(bo,c,s)||r.header)&&(d=r.id?"_bv_".concat(r.id,"_group_dd_header"):null,n=t(r.headerTag,{staticClass:"dropdown-header",class:[r.headerClasses,Qf({},"text-".concat(r.variant),r.variant)],attrs:{id:d,role:"heading"}},Ao(bo,{},c,s)||r.header));var f=[d,r.ariaDescribedBy].filter(Xt).join(" ").trim();return t("li",l(i,{attrs:{role:"presentation"}}),[n||t(),t("ul",{staticClass:"list-unstyled",attrs:Jf(Jf({},u),{},{id:r.id||null,role:"group","aria-describedby":f||null})},Ao(go,{},c,s))])}}),nh=Nr({components:{BDropdown:wf,BDd:wf,BDropdownItem:Cf,BDdItem:Cf,BDropdownItemButton:Bf,BDropdownItemBtn:Bf,BDdItemButton:Bf,BDdItemBtn:Bf,BDropdownHeader:jf,BDdHeader:jf,BDropdownDivider:Hf,BDdDivider:Hf,BDropdownForm:Yf,BDdForm:Yf,BDropdownText:Xf,BDdText:Xf,BDropdownGroup:eh,BDdGroup:eh}});function rh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ih={type:{type:String,default:"iframe",validator:function(t){return ri(["iframe","embed","video","object","img","b-img","b-img-lazy"],t)}},tag:{type:String,default:"div"},aspect:{type:String,default:"16by9"}},oh=c.extend({name:ze,functional:!0,props:ih,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,{ref:r.ref,staticClass:"embed-responsive",class:rh({},"embed-responsive-".concat(n.aspect),n.aspect)},[t(n.type,l(r,{ref:"",staticClass:"embed-responsive-item"}),i)])}}),ah=Nr({components:{BEmbed:oh}}),sh='Setting prop "options" to an object is deprecated. Use the array format instead.',lh={props:{options:{type:[Array,Object],default:function(){return[]}},valueField:{type:String,default:"value"},textField:{type:String,default:"text"},htmlField:{type:String,default:"html"},disabledField:{type:String,default:"disabled"}},computed:{formOptions:function(){return this.normalizeOptions(this.options)}},methods:{normalizeOption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(z(t)){var n=Qt(t,this.valueField),r=Qt(t,this.textField);return{value:P(n)?e||r:n,text:_l(String(P(r)?e:r)),html:Qt(t,this.htmlField),disabled:Boolean(Qt(t,this.disabledField))}}return{value:e||t,text:_l(String(t)),disabled:!1}},normalizeOptions:function(t){var e=this;return F(t)?t.map((function(t){return e.normalizeOption(t)})):z(t)?(te(sh,this.$options.name),nt(t).map((function(n){return e.normalizeOption(t[n]||{},n)}))):[]}}},ch=c.extend({name:We,mixins:[lh,Eo],props:{id:{type:String,required:!0}},render:function(t){var e=this.formOptions.map((function(e,n){var r=e.value,i=e.text,o=e.html,a=e.disabled;return t("option",{attrs:{value:r,disabled:a},domProps:bl(o,i),key:"option_".concat(n)})}));return t("datalist",{attrs:{id:this.id}},[e,this.normalizeSlot()])}});function uh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dh={id:{type:String},tag:{type:String,default:"small"},textVariant:{type:String,default:function(){return Zr(un,"textVariant")}},inline:{type:Boolean,default:!1}},fh=c.extend({name:un,functional:!0,props:dh,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{class:uh({"form-text":!n.inline},"text-".concat(n.textVariant),n.textVariant),attrs:{id:n.id}}),i)}}),hh={id:{type:String},tag:{type:String,default:"div"},tooltip:{type:Boolean,default:!1},forceShow:{type:Boolean,default:!1},state:{type:Boolean,default:null},ariaLive:{type:String},role:{type:String}},ph=c.extend({name:Ze,functional:!0,props:hh,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=!0===n.forceShow||!1===n.state;return t(n.tag,l(r,{class:{"invalid-feedback":!n.tooltip,"invalid-tooltip":n.tooltip,"d-block":o},attrs:{id:n.id||null,role:n.role||null,"aria-live":n.ariaLive||null,"aria-atomic":n.ariaLive?"true":null}}),i)}}),$h={id:{type:String},tag:{type:String,default:"div"},tooltip:{type:Boolean,default:!1},forceShow:{type:Boolean,default:!1},state:{type:Boolean,default:null},ariaLive:{type:String},role:{type:String}},mh=c.extend({name:hn,functional:!0,props:$h,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=!0===n.forceShow||!0===n.state;return t(n.tag,l(r,{class:{"valid-feedback":!n.tooltip,"valid-tooltip":n.tooltip,"d-block":o},attrs:{id:n.id||null,role:n.role||null,"aria-live":n.ariaLive||null,"aria-atomic":n.ariaLive?"true":null}}),i)}}),gh={tag:{type:String,default:"div"}},vh=c.extend({name:nn,functional:!0,props:gh,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{staticClass:"form-row"}),i)}}),yh=Nr({components:{BForm:Uf,BFormDatalist:ch,BDatalist:ch,BFormText:fh,BFormInvalidFeedback:ph,BFormFeedback:ph,BFormValidFeedback:mh,BFormRow:vh}}),_h=function(t,e){for(var n=0;n<t.length;n++)if(Na(t[n],e))return n;return-1},bh=_h,wh="input, textarea, select",xh={props:{name:{type:String},id:{type:String},disabled:{type:Boolean},required:{type:Boolean,default:!1},form:{type:String},autofocus:{type:Boolean,default:!1}},mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{handleAutofocus:function(){var t=this;this.$nextTick((function(){Ci((function(){var e=t.$el;t.autofocus&&Ii(e)&&(Fi(e,wh)||(e=Mi(wh,e)),oo(e))}))}))}}};function kh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kh(Object(n),!0).forEach((function(e){Oh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Oh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ch={mixins:[qa,Eo],inheritAttrs:!1,model:{prop:"checked",event:"input"},props:{value:{},checked:{},inline:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},button:{type:Boolean,default:!1},buttonVariant:{type:String},ariaLabel:{type:String},ariaLabelledby:{type:String}},data:function(){return{localChecked:this.isGroup?this.bvGroup.checked:this.checked,hasFocus:!1}},computed:{computedLocalChecked:{get:function(){return this.isGroup?this.bvGroup.localChecked:this.localChecked},set:function(t){this.isGroup?this.bvGroup.localChecked=t:this.localChecked=t}},isGroup:function(){return Boolean(this.bvGroup)},isBtnMode:function(){return this.isGroup?this.bvGroup.buttons:this.button},isPlain:function(){return!this.isBtnMode&&(this.isGroup?this.bvGroup.plain:this.plain)},isCustom:function(){return!this.isBtnMode&&!this.isPlain},isSwitch:function(){return!(this.isBtnMode||this.isRadio||this.isPlain)&&(this.isGroup?this.bvGroup.switches:this.switch)},isInline:function(){return this.isGroup?this.bvGroup.inline:this.inline},isDisabled:function(){return this.isGroup&&this.bvGroup.disabled||this.disabled},isRequired:function(){return this.getName&&(this.isGroup?this.bvGroup.required:this.required)},getName:function(){return(this.isGroup?this.bvGroup.groupName:this.name)||null},getForm:function(){return(this.isGroup?this.bvGroup.form:this.form)||null},getSize:function(){return(this.isGroup?this.bvGroup.size:this.size)||""},getState:function(){return this.isGroup?this.bvGroup.computedState:this.computedState},getButtonVariant:function(){return this.buttonVariant?this.buttonVariant:this.isGroup&&this.bvGroup.buttonVariant?this.bvGroup.buttonVariant:"secondary"},buttonClasses:function(){var t;return["btn","btn-".concat(this.getButtonVariant),(t={},Oh(t,"btn-".concat(this.getSize),this.getSize),Oh(t,"disabled",this.isDisabled),Oh(t,"active",this.isChecked),Oh(t,"focus",this.hasFocus),t)]},computedAttrs:function(){return Sh(Sh({},this.bvAttrs),{},{id:this.safeId(),type:this.isRadio?"radio":"checkbox",name:this.getName,form:this.getForm,disabled:this.isDisabled,required:this.isRequired,"aria-required":this.isRequired||null,"aria-label":this.ariaLabel||null,"aria-labelledby":this.ariaLabelledby||null})}},watch:{checked:function(t){Na(t,this.computedLocalChecked)||(this.computedLocalChecked=t)}},methods:{handleFocus:function(t){t.target&&("focus"===t.type?this.hasFocus=!0:"blur"===t.type&&(this.hasFocus=!1))},focus:function(){this.isDisabled||oo(this.$refs.input)},blur:function(){this.isDisabled||ao(this.$refs.input)}},render:function(t){var e=this.normalizeSlot(),n={change:this.handleChange};this.isBtnMode&&(n.focus=n.blur=this.handleFocus);var r=t("input",{ref:"input",key:"input",on:n,class:{"form-check-input":this.isPlain,"custom-control-input":this.isCustom,"is-valid":!0===this.getState&&!this.isBtnMode,"is-invalid":!1===this.getState&&!this.isBtnMode,"position-static":this.isPlain&&!e},directives:[{name:"model",rawName:"v-model",value:this.computedLocalChecked,expression:"computedLocalChecked"}],attrs:this.computedAttrs,domProps:{value:this.value,checked:this.isChecked}});if(this.isBtnMode){var i=t("label",{class:this.buttonClasses},[r,e]);return this.isGroup||(i=t("div",{class:["btn-group-toggle","d-inline-block"]},[i])),i}var o=t();return this.isPlain&&!e||(o=t("label",{class:{"form-check-label":this.isPlain,"custom-control-label":this.isCustom},attrs:{for:this.safeId()}},e)),t("div",{class:Oh({"form-check":this.isPlain,"form-check-inline":this.isPlain&&this.isInline,"custom-control":this.isCustom,"custom-control-inline":this.isCustom&&this.isInline,"custom-checkbox":this.isCustom&&this.isCheck&&!this.isSwitch,"custom-switch":this.isSwitch,"custom-radio":this.isCustom&&this.isRadio},"b-custom-control-".concat(this.getSize),Boolean(this.getSize&&!this.isBtnMode))},[r,o])}},Ah={props:{size:{type:String,default:function(){return Zr("formControls","size")}}},computed:{sizeFormClass:function(){return[this.size?"form-control-".concat(this.size):null]},sizeBtnClass:function(){return[this.size?"btn-".concat(this.size):null]}}},Eh={props:{state:{type:Boolean,default:null}},computed:{computedState:function(){return D(this.state)?this.state:null},stateClass:function(){var t=this.computedState;return!0===t?"is-valid":!1===t?"is-invalid":null}}},Th=c.extend({name:Ue,mixins:[Ch,bc,xh,Ah,Eh],inject:{bvGroup:{from:"bvCheckGroup",default:!1}},props:{value:{default:!0},uncheckedValue:{default:!1},indeterminate:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},checked:{default:null}},computed:{isChecked:function(){var t=this.value,e=this.computedLocalChecked;return F(e)?bh(e,t)>-1:Na(e,t)},isRadio:function(){return!1},isCheck:function(){return!0}},watch:{computedLocalChecked:function(t,e){if(!Na(t,e)){this.$emit("input",t);var n=this.$refs.input;n&&this.$emit("update:indeterminate",n.indeterminate)}},indeterminate:function(t){this.setIndeterminate(t)}},mounted:function(){this.setIndeterminate(this.indeterminate)},methods:{handleChange:function(t){var e=t.target,n=e.checked,r=e.indeterminate,i=this.value,o=this.uncheckedValue,a=this.computedLocalChecked;if(F(a)){var s=bh(a,i);n&&s<0?a=a.concat(i):!n&&s>-1&&(a=a.slice(0,s).concat(a.slice(s+1)))}else a=n?i:o;this.computedLocalChecked=a,this.$emit("change",a),this.isGroup&&this.bvGroup.$emit("change",a),this.$emit("update:indeterminate",r)},setIndeterminate:function(t){F(this.computedLocalChecked)&&(t=!1);var e=this.$refs.input;e&&(e.indeterminate=t,this.$emit("update:indeterminate",t))}}}),Ph=c.extend({name:Je,mixins:[bc,Ch,xh,Ah,Eh],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:{checked:{default:null}},computed:{isChecked:function(){return Na(this.value,this.computedLocalChecked)},isRadio:function(){return!0},isCheck:function(){return!1}},watch:{computedLocalChecked:function(){this.$emit("input",this.computedLocalChecked)}},methods:{handleChange:function(t){var e=t.target.checked,n=this.value;this.computedLocalChecked=n,this.$emit("change",e?n:null),this.isGroup&&this.bvGroup.$emit("change",e?n:null)}}}),Bh={mixins:[Eo],model:{prop:"checked",event:"input"},props:{validated:{type:Boolean,default:!1},ariaInvalid:{type:[Boolean,String],default:!1},stacked:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"}},computed:{inline:function(){return!this.stacked},groupName:function(){return this.name||this.safeId()},groupClasses:function(){return this.buttons?["btn-group-toggle",this.inline?"btn-group":"btn-group-vertical",this.size?"btn-group-".concat(this.size):"",this.validated?"was-validated":""]:[this.validated?"was-validated":""]},computedAriaInvalid:function(){var t=this.ariaInvalid;return!0===t||"true"===t||""===t||!1===this.computedState?"true":null}},watch:{checked:function(t){Na(t,this.localChecked)||(this.localChecked=t)},localChecked:function(t,e){Na(t,e)||this.$emit("input",t)}},render:function(t){var e=this,n=this.formOptions.map((function(n,r){var i="BV_option_".concat(r);return t(e.isRadioGroup?Ph:Th,{props:{id:e.safeId(i),value:n.value,disabled:n.disabled||!1},key:i},[t("span",{domProps:bl(n.html,n.text)})])}));return t("div",{class:[this.groupClasses,"bv-no-focus-ring"],attrs:{id:this.safeId(),role:this.isRadioGroup?"radiogroup":"group",tabindex:"-1","aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},[this.normalizeSlot(yo),n,this.normalizeSlot()])}},Lh={switches:{type:Boolean,default:!1},checked:{type:Array,default:null}},Ih=c.extend({name:qe,mixins:[bc,xh,Bh,lh,Ah,Eh],provide:function(){return{bvCheckGroup:this}},props:Lh,data:function(){return{localChecked:this.checked||[]}},computed:{isRadioGroup:function(){return!1}}}),Dh=Nr({components:{BFormCheckbox:Th,BCheckbox:Th,BCheck:Th,BFormCheckboxGroup:Ih,BCheckboxGroup:Ih,BCheckGroup:Ih}}),Rh="__BV_hover_handler__",jh="mouseenter",Mh="mouseleave",Fh=function(t){var e=function(e){t(e.type===jh,e)};return e.fn=t,e},Nh=function(t,e,n){Lo(t,e,jh,n,ju),Lo(t,e,Mh,n,ju)},zh=function(t,e){var n=e.value,r=void 0===n?null:n;if(u["j"]){var i=t[Rh],o=I(i),a=!(o&&i.fn===r);o&&a&&(Nh(!1,t,i),delete t[Rh]),I(r)&&a&&(t[Rh]=Fh(r),Nh(!0,t,t[Rh]))}},Hh={bind:zh,componentUpdated:zh,unbind:function(t){zh(t,{value:null})}};function Vh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Uh=mf,qh=c.extend({name:Ve,directives:{BHover:Hh},mixins:[bc,Eo,gf],props:{value:{type:String,default:""},formattedValue:{type:String},placeholder:{type:String},labelSelected:{type:String},state:{type:Boolean,default:null},size:{type:String},name:{type:String},form:{type:String},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},lang:{type:String},rtl:{type:Boolean,default:null},buttonOnly:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"},menuClass:{type:[String,Array,Object]}},data:function(){return{isHovered:!1,hasFocus:!1}},computed:{idButton:function(){return this.safeId()},idLabel:function(){return this.safeId("_value_")},idMenu:function(){return this.safeId("_dialog_")},idWrapper:function(){return this.safeId("_outer_")},computedDir:function(){return!0===this.rtl?"rtl":!1===this.rtl?"ltr":null}},methods:{focus:function(){this.disabled||oo(this.$refs.toggle)},blur:function(){this.disabled||ao(this.$refs.toggle)},setFocus:function(t){this.hasFocus="focus"===t.type},handleHover:function(t){this.isHovered=t}},render:function(t){var e,n,r,i=this.idButton,o=this.idLabel,a=this.idMenu,s=this.idWrapper,l=this.disabled,c=this.readonly,u=this.required,d=this.isHovered,f=this.hasFocus,h=this.state,p=this.visible,$=this.size,m=gi(this.value)||"",g=this.labelSelected,v=!!this.buttonOnly,y=this.buttonVariant,_={isHovered:d,hasFocus:f,state:h,opened:p},b=t("button",{ref:"toggle",staticClass:"btn",class:(e={},Vh(e,"btn-".concat(y),v),Vh(e,"btn-".concat($),!!$),Vh(e,"h-auto",!v),Vh(e,"dropdown-toggle",v),Vh(e,"dropdown-toggle-no-caret",v),e),attrs:{id:i,type:"button",disabled:l,"aria-haspopup":"dialog","aria-expanded":p?"true":"false","aria-invalid":!1===h||u&&!m?"true":null,"aria-required":u?"true":null},directives:[{name:"b-hover",value:this.handleHover}],on:{mousedown:this.onMousedown,click:this.toggle,keydown:this.toggle,"!focus":this.setFocus,"!blur":this.setFocus}},[this.hasNormalizedSlot(mo)?this.normalizeSlot(mo,_):t(js,{props:{scale:1.25}})]),w=t();this.name&&!l&&(w=t("input",{attrs:{type:"hidden",name:this.name||null,form:this.form||null,value:m}}));var x=t("div",{ref:"menu",staticClass:"dropdown-menu",class:[this.menuClass,{show:p,"dropdown-menu-right":this.right}],attrs:{id:a,role:"dialog",tabindex:"-1","aria-modal":"false","aria-labelledby":o},on:{keydown:this.onKeydown}},[this.normalizeSlot(go,{opened:p})]),k=t("label",{staticClass:"form-control text-break text-wrap bg-transparent h-auto",class:(n={"sr-only":v,"text-muted":!m},Vh(n,"form-control-".concat($),!!$),Vh(n,"is-invalid",!1===h),Vh(n,"is-valid",!0===h),n),attrs:{id:o,for:i,"aria-invalid":!1===h||u&&!m?"true":null,"aria-required":u?"true":null},directives:[{name:"b-hover",value:this.handleHover}],on:{"!click":function(t){Io(t,{preventDefault:!1})}}},[m?this.formattedValue||m:this.placeholder||"",m&&g?t("bdi",{staticClass:"sr-only"},g):""]);return t("div",{staticClass:"b-form-btn-label-control dropdown",class:[this.directionClass,this.boundaryClass,(r={"btn-group":v,"form-control":!v},Vh(r,"form-control-".concat($),!!$&&!v),Vh(r,"d-flex",!v),Vh(r,"h-auto",!v),Vh(r,"align-items-stretch",!v),Vh(r,"focus",f&&!v),Vh(r,"show",p),Vh(r,"is-valid",!0===h),Vh(r,"is-invalid",!1===h),r)],attrs:{id:s,role:v?null:"group",lang:this.lang||null,dir:this.computedDir,"aria-disabled":l,"aria-readonly":c&&!l,"aria-labelledby":o,"aria-invalid":!1===h||u&&!m?"true":null,"aria-required":u?"true":null}},[b,w,x,k])}});function Wh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wh(Object(n),!0).forEach((function(e){Yh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Kh=function(t){return Zr(Ge,t)||Zr(me,t)},Xh={props:Gh({value:{type:[String,Date],default:null},valueAsDate:{type:Boolean,default:!1},resetValue:{type:[String,Date]},initialDate:{type:[String,Date]},placeholder:{type:String},size:{type:String},min:{type:[String,Date]},max:{type:[String,Date]},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{type:String},form:{type:String},state:{type:Boolean,default:null},dateDisabledFn:{type:Function},noCloseOnSelect:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},showDecadeNav:{type:Boolean,default:!1},locale:{type:[String,Array]},startWeekday:{type:[Number,String],default:0},direction:{type:String},buttonOnly:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"},calendarWidth:{type:String,default:"270px"},selectedVariant:{type:String,default:function(){return Kh("selectedVariant")}},todayVariant:{type:String,default:function(){return Kh("todayVariant")}},navButtonVariant:{type:String,default:function(){return Kh("navButtonVariant")}},noHighlightToday:{type:Boolean,default:!1},todayButton:{type:Boolean,default:!1},labelTodayButton:{type:String,default:function(){return Zr(Ge,"labelTodayButton")}},todayButtonVariant:{type:String,default:"outline-primary"},resetButton:{type:Boolean,default:!1},labelResetButton:{type:String,default:function(){return Zr(Ge,"labelResetButton")}},resetButtonVariant:{type:String,default:"outline-danger"},closeButton:{type:Boolean,default:!1},labelCloseButton:{type:String,default:function(){return Zr(Ge,"labelCloseButton")}},closeButtonVariant:{type:String,default:"outline-secondary"},dateInfoFn:{type:Function},labelPrevDecade:{type:String,default:function(){return Kh("labelPrevDecade")}},labelPrevYear:{type:String,default:function(){return Kh("labelPrevYear")}},labelPrevMonth:{type:String,default:function(){return Kh("labelPrevMonth")}},labelCurrentMonth:{type:String,default:function(){return Kh("labelCurrentMonth")}},labelNextMonth:{type:String,default:function(){return Kh("labelNextMonth")}},labelNextYear:{type:String,default:function(){return Kh("labelNextYear")}},labelNextDecade:{type:String,default:function(){return Kh("labelNextDecade")}},labelToday:{type:String,default:function(){return Kh("labelToday")}},labelSelected:{type:String,default:function(){return Kh("labelSelected")}},labelNoDateSelected:{type:String,default:function(){return Kh("labelNoDateSelected")}},labelCalendar:{type:String,default:function(){return Kh("labelCalendar")}},labelNav:{type:String,default:function(){return Kh("labelNav")}},labelHelp:{type:String,default:function(){return Kh("labelHelp")}},dateFormatOptions:{type:Object,default:function(){return{year:Gl,month:Vl,day:Gl,weekday:Vl}}},weekdayHeaderFormat:{type:String,default:ql,validator:function(t){return ri([Vl,ql,Ul],t)}},dark:{type:Boolean,default:!1},menuClass:{type:[String,Array,Object]}},Uh)},Zh=c.extend({name:Ge,mixins:[bc,Xh],model:{prop:"value",event:"input"},data:function(){return{localYMD:oc(this.value)||"",isVisible:!1,localLocale:null,isRTL:!1,formattedValue:"",activeYMD:""}},computed:{calendarYM:function(){return this.activeYMD.slice(0,-3)},calendarProps:function(){var t=this;return{hidden:!t.isVisible,value:t.localYMD,min:t.min,max:t.max,initialDate:t.initialDate,readonly:t.readonly,disabled:t.disabled,locale:t.locale,startWeekday:t.startWeekday,direction:t.direction,width:t.calendarWidth,dateDisabledFn:t.dateDisabledFn,selectedVariant:t.selectedVariant,todayVariant:t.todayVariant,navButtonVariant:t.navButtonVariant,dateInfoFn:t.dateInfoFn,hideHeader:t.hideHeader,showDecadeNav:t.showDecadeNav,noHighlightToday:t.noHighlightToday,labelPrevDecade:t.labelPrevDecade,labelPrevYear:t.labelPrevYear,labelPrevMonth:t.labelPrevMonth,labelCurrentMonth:t.labelCurrentMonth,labelNextMonth:t.labelNextMonth,labelNextYear:t.labelNextYear,labelNextDecade:t.labelNextDecade,labelToday:t.labelToday,labelSelected:t.labelSelected,labelNoDateSelected:t.labelNoDateSelected,labelCalendar:t.labelCalendar,labelNav:t.labelNav,labelHelp:t.labelHelp,dateFormatOptions:t.dateFormatOptions,weekdayHeaderFormat:t.weekdayHeaderFormat}},computedLang:function(){return(this.localLocale||"").replace(/-u-.*$/i,"")||null},computedResetValue:function(){return oc(vc(this.resetValue))||""}},watch:{value:function(t){this.localYMD=oc(t)||""},localYMD:function(t){this.isVisible&&this.$emit("input",this.valueAsDate?ic(t)||null:t||"")},calendarYM:function(t,e){if(t!==e&&e)try{this.$refs.control.updatePopper()}catch(n){}}},methods:{focus:function(){this.disabled||oo(this.$refs.control)},blur:function(){this.disabled||ao(this.$refs.control)},setAndClose:function(t){var e=this;this.localYMD=t,this.noCloseOnSelect||this.$nextTick((function(){e.$refs.control.hide(!0)}))},onSelected:function(t){var e=this;this.$nextTick((function(){e.setAndClose(t)}))},onInput:function(t){this.localYMD!==t&&(this.localYMD=t)},onContext:function(t){var e=t.activeYMD,n=t.isRTL,r=t.locale,i=t.selectedYMD,o=t.selectedFormatted;this.isRTL=n,this.localLocale=r,this.formattedValue=o,this.localYMD=i,this.activeYMD=e,this.$emit("context",t)},onTodayButton:function(){this.setAndClose(oc(vc(rc(),this.min,this.max)))},onResetButton:function(){this.setAndClose(this.computedResetValue)},onCloseButton:function(){this.$refs.control.hide(!0)},onShow:function(){this.isVisible=!0},onShown:function(){var t=this;this.$nextTick((function(){oo(t.$refs.calendar),t.$emit("shown")}))},onHidden:function(){this.isVisible=!1,this.$emit("hidden")},defaultButtonFn:function(t){var e=t.isHovered,n=t.hasFocus;return this.$createElement(e||n?Is:Ls,{attrs:{"aria-hidden":"true"}})}},render:function(t){var e=this.$scopedSlots,n=this.localYMD,r=this.disabled,i=this.readonly,o=L(this.placeholder)?this.labelNoDateSelected:this.placeholder,a=[];if(this.todayButton){var s=this.labelTodayButton;a.push(t(_s,{props:{size:"sm",disabled:r||i,variant:this.todayButtonVariant},attrs:{"aria-label":s||null},on:{click:this.onTodayButton}},s))}if(this.resetButton){var l=this.labelResetButton;a.push(t(_s,{props:{size:"sm",disabled:r||i,variant:this.resetButtonVariant},attrs:{"aria-label":l||null},on:{click:this.onResetButton}},l))}if(this.closeButton){var c=this.labelCloseButton;a.push(t(_s,{props:{size:"sm",disabled:r,variant:this.closeButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onCloseButton}},c))}a.length>0&&(a=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":a.length>1,"justify-content-end":a.length<2}},a)]);var u=t(Sc,{key:"calendar",ref:"calendar",staticClass:"b-form-date-calendar w-100",props:this.calendarProps,on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:at(e,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"])},a);return t(qh,{ref:"control",staticClass:"b-form-datepicker",props:Gh(Gh({},this.$props),{},{id:this.safeId(),rtl:this.isRTL,lang:this.computedLang,value:n||"",formattedValue:n?this.formattedValue:"",placeholder:o||"",menuClass:[{"bg-dark":!!this.dark,"text-light":!!this.dark},this.menuClass]}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:{"button-content":e["button-content"]||this.defaultButtonFn}},[u])}}),Jh=Nr({components:{BFormDatepicker:Zh,BDatepicker:Zh}}),Qh={props:{plain:{type:Boolean,default:!1}},computed:{custom:function(){return!this.plain}}};function tp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ep(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tp(Object(n),!0).forEach((function(e){np(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function np(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rp='Setting "value"/"v-model" to an empty string for reset is deprecated. Set to "null" instead.',ip=function t(e){return U(e)||F(e)&&e.every((function(e){return t(e)}))},op=function(t){return I(t.getAsEntry)?t.getAsEntry():I(t.webkitGetAsEntry)?t.webkitGetAsEntry():null},ap=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.all(ni(t).filter((function(t){return"file"===t.kind})).map((function(t){var n=op(t);if(n){if(n.isDirectory&&e)return sp(n.createReader(),"".concat(n.name,"/"));if(n.isFile)return new Promise((function(t){n.file((function(e){e.$path="",t(e)}))}))}return null})).filter(Xt))},sp=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(r){var i=[],o=function o(){e.readEntries((function(e){0===e.length?r(Promise.all(i).then((function(t){return ai(t)}))):(i.push(Promise.all(e.map((function(e){if(e){if(e.isDirectory)return t(e.createReader(),"".concat(n).concat(e.name,"/"));if(e.isFile)return new Promise((function(t){e.file((function(e){e.$path="".concat(n).concat(e.name),t(e)}))}))}return null})).filter(Xt))),o())}))};o()}))},lp=c.extend({name:Ye,mixins:[qa,bc,xh,Eh,Qh,Eo],inheritAttrs:!1,model:{prop:"value",event:"input"},props:{size:{type:String,default:function(){return Zr("BFormControl","size")}},value:{type:[C,Array],default:null,validator:function(t){return""===t?(te(rp,Ye),!0):L(t)||ip(t)}},accept:{type:String,default:""},capture:{type:Boolean,default:!1},placeholder:{type:String,default:function(){return Zr(Ye,"placeholder")}},browseText:{type:String,default:function(){return Zr(Ye,"browseText")}},dropPlaceholder:{type:String,default:function(){return Zr(Ye,"dropPlaceholder")}},noDropPlaceholder:{type:String,default:function(){return Zr(Ye,"noDropPlaceholder")}},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},noTraverse:{type:Boolean,default:!1},noDrop:{type:Boolean,default:!1},fileNameFormatter:{type:Function,default:null}},data:function(){return{files:[],dragging:!1,dropAllowed:!this.noDrop,hasFocus:!1}},computed:{computedAccept:function(){var t=this.accept;return t=(t||"").trim().split(/[,\s]+/).filter(Boolean),0===t.length?null:t.map((function(t){var e="name",n="^",r="$";Et.test(t)?n="":(e="type",Ft.test(t)&&(r=".+$",t=t.slice(0,-1))),t=mi(t);var i=new RegExp("".concat(n).concat(t).concat(r));return{rx:i,prop:e}}))},computedCapture:function(){var t=this.capture;return!0===t||""===t||(t||null)},computedAttrs:function(){var t=this.name,e=this.disabled,n=this.required,r=this.form,i=this.computedCapture,o=this.accept,a=this.multiple,s=this.directory;return ep(ep({},this.bvAttrs),{},{type:"file",id:this.safeId(),name:t,disabled:e,required:n,form:r||null,capture:i,accept:o||null,multiple:a,directory:s,webkitdirectory:s,"aria-required":n?"true":null})},clonedFiles:function(){return wt(this.files)},flattenedFiles:function(){return si(this.files)},fileNames:function(){return this.flattenedFiles.map((function(t){return t.name}))},labelContent:function(){var t=this.$createElement;return this.dragging&&!this.noDrop?this.normalizeSlot("drop-placeholder",{allowed:this.dropAllowed})||(this.dropAllowed?this.dropPlaceholder:t("span",{staticClass:"text-danger"},this.noDropPlaceholder)):0===this.files.length?this.normalizeSlot("placeholder")||this.placeholder:this.hasNormalizedSlot("file-name")?this.normalizeSlot("file-name",{files:this.flattenedFiles,filesTraversed:this.clonedFiles,names:this.fileNames}):I(this.fileNameFormatter)?String(this.fileNameFormatter(this.flattenedFiles,this.clonedFiles)):this.fileNames.join(", ")}},watch:{value:function(t){(!t||F(t)&&0===t.length)&&this.reset()},files:function(t,e){if(!Na(t,e)){var n=this.multiple,r=this.noTraverse,i=!n||r?si(t):t;this.$emit("input",n?i:i[0]||null)}}},mounted:function(){var t=this,e=Ni("form",this.$el);e&&(Po(e,"reset",this.reset,Ru),this.$on("hook:beforeDestroy",(function(){Bo(e,"reset",t.reset,Ru)})))},methods:{isFileValid:function(t){if(!t)return!1;var e=this.computedAccept;return!e||e.some((function(e){return e.rx.test(t[e.prop])}))},isFilesArrayValid:function(t){var e=this;return F(t)?t.every((function(t){return e.isFileValid(t)})):this.isFileValid(t)},setFiles:function(t){this.dropAllowed=!this.noDrop,this.dragging=!1,this.files=this.multiple?this.directory?t:si(t):si(t).slice(0,1)},setInputFiles:function(t){try{var e=new ClipboardEvent("").clipboardData||new DataTransfer;si(wt(t)).forEach((function(t){delete t.$path,e.items.add(t)})),this.$refs.input.files=e.files}catch(n){}},reset:function(){try{var t=this.$refs.input;t.value="",t.type="",t.type="file"}catch(e){}this.files=[]},handleFiles:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=t.filter(this.isFilesArrayValid);n.length>0&&(this.setFiles(n),this.setInputFiles(n))}else this.setFiles(t)},focusHandler:function(t){this.plain||"focusout"===t.type?this.hasFocus=!1:this.hasFocus=!0},onChange:function(t){var e=this,n=t.type,r=t.target,i=t.dataTransfer,o=void 0===i?{}:i,a="drop"===n;this.$emit("change",t);var s=ni(o.items||[]);if(u["g"]&&s.length>0&&!B(op(s[0])))ap(s,this.directory).then((function(t){return e.handleFiles(t,a)}));else{var l=ni(r.files||o.files||[]).map((function(t){return t.$path=t.webkitRelativePath||"",t}));this.handleFiles(l,a)}},onDragenter:function(t){Io(t),this.dragging=!0;var e=t.dataTransfer,n=void 0===e?{}:e;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragover:function(t){Io(t),this.dragging=!0;var e=t.dataTransfer,n=void 0===e?{}:e;if(this.noDrop||this.disabled||!this.dropAllowed)return n.dropEffect="none",void(this.dropAllowed=!1);n.dropEffect="copy"},onDragleave:function(t){var e=this;Io(t),this.$nextTick((function(){e.dragging=!1,e.dropAllowed=!e.noDrop}))},onDrop:function(t){var e=this;Io(t),this.dragging=!1,this.noDrop||this.disabled||!this.dropAllowed?this.$nextTick((function(){e.dropAllowed=!e.noDrop})):this.onChange(t)}},render:function(t){var e=this.custom,n=this.plain,r=this.size,i=this.dragging,o=this.stateClass,a=t("input",{ref:"input",class:[{"form-control-file":n,"custom-file-input":e,focus:e&&this.hasFocus},o],style:e?{zIndex:-5}:{},attrs:this.computedAttrs,on:{change:this.onChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.reset}});if(n)return a;var s=t("label",{staticClass:"custom-file-label",class:{dragging:i},attrs:{for:this.safeId(),"data-browse":this.browseText||null}},[t("span",{staticClass:"d-block form-file-text",style:{pointerEvents:"none"}},[this.labelContent])]);return t("div",{staticClass:"custom-file b-form-file",class:[np({},"b-custom-control-".concat(r),r),o],attrs:{id:this.safeId("_BV_file_outer_")},on:{dragenter:this.onDragenter,dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[a,s])}}),cp=Nr({components:{BFormFile:lp,BFile:lp}}),up=function(t){return"\\"+t},dp=function(t){t=gi(t);var e=t.length,n=t.charCodeAt(0);return t.split("").reduce((function(r,i,o){var a=t.charCodeAt(o);return 0===a?r+"�":127===a||a>=1&&a<=31||0===o&&a>=48&&a<=57||1===o&&a>=48&&a<=57&&45===n?r+up("".concat(a.toString(16)," ")):0===o&&45===a&&1===e?r+up(i):a>=128||45===a||95===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+i:r+up(i)}),"")},fp=dp;function hp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hp(Object(n),!0).forEach((function(e){$p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mp=function(){return{type:[Boolean,String,Number],default:!1}},gp=function(){return{type:[String,Number],default:null}},vp=function(t,e,n){var r=t;if(!L(n)&&!1!==n)return e&&(r+="-".concat(e)),"col"!==t||""!==n&&!0!==n?(r+="-".concat(n),_i(r)):_i(r)},yp=Gr(vp),_p=Z(null),bp=function(){var t=ei().filter(Xt),e=t.reduce((function(t,e){return e&&(t[e]=mp()),t}),Z(null)),n=t.reduce((function(t,e){return t[sa(e,"offset")]=gp(),t}),Z(null)),r=t.reduce((function(t,e){return t[sa(e,"order")]=gp(),t}),Z(null));return _p=X(Z(null),{col:nt(e),offset:nt(n),order:nt(r)}),pp(pp(pp(pp({col:{type:Boolean,default:!1},cols:gp()},e),{},{offset:gp()},n),{},{order:gp()},r),{},{alignSelf:{type:String,default:null,validator:function(t){return ri(["auto","start","end","center","baseline","stretch"],t)}},tag:{type:String,default:"div"}})},wp={name:Ee,functional:!0,get props(){return delete this.props,this.props=bp()},render:function(t,e){var n,r=e.props,i=e.data,o=e.children,a=[];for(var s in _p)for(var c=_p[s],u=0;u<c.length;u++){var d=yp(s,c[u].replace(s,""),r[c[u]]);d&&a.push(d)}var f=a.some((function(t){return Wt.test(t)}));return a.push((n={col:r.col||!f&&!r.cols},$p(n,"col-".concat(r.cols),r.cols),$p(n,"offset-".concat(r.offset),r.offset),$p(n,"order-".concat(r.order),r.order),$p(n,"align-self-".concat(r.alignSelf),r.alignSelf),n)),t(r.tag,l(i,{class:a}),o)}};function xp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xp(Object(n),!0).forEach((function(e){Sp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Op="input:not([disabled]),textarea:not([disabled]),select:not([disabled])",Cp=function(t,e){var n=e.normalizeSlot("invalid-feedback")||e.invalidFeedback,r=t();return n&&(r=t(ph,{props:{id:e.invalidFeedbackId,state:e.computedState,tooltip:e.tooltip,ariaLive:e.feedbackAriaLive,role:e.feedbackAriaLive?"alert":null},attrs:{tabindex:n?"-1":null}},[n])),r},Ap=function(t,e){var n=e.normalizeSlot("valid-feedback")||e.validFeedback,r=t();return n&&(r=t(mh,{props:{id:e.validFeedbackId,state:e.computedState,tooltip:e.tooltip,ariaLive:e.feedbackAriaLive,role:e.feedbackAriaLive?"alert":null},attrs:{tabindex:n?"-1":null}},[n])),r},Ep=function(t,e){var n=e.normalizeSlot(vo)||e.description,r=t();return n&&(r=t(fh,{attrs:{id:e.descriptionId,tabindex:n?"-1":null}},[n])),r},Tp=function(t,e){var n=e.normalizeSlot(wo)||e.label,r=e.labelFor,i=!r,o=e.isHorizontal,a=i?"legend":"label";if(n||o){if(e.labelSrOnly){var s=t();return n&&(s=t(a,{class:"sr-only",attrs:{id:e.labelId,for:r||null}},[n])),t(o?wp:"div",{props:o?e.labelColProps:{}},[s])}return t(o?wp:a,{on:i?{click:e.legendClick}:{},props:o?kp({tag:a},e.labelColProps):{},attrs:{id:e.labelId,for:r||null,tabindex:i?"-1":null},class:[i?"bv-no-focus-ring":"",o||i?"col-form-label":"",!o&&i?"pt-0":"",o||i?"":"d-block",e.labelSize?"col-form-label-".concat(e.labelSize):"",e.labelAlignClasses,e.labelClass]},[n])}return t()},Pp=Gr((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return"".concat(e).concat($i(t))})),Bp=function(){var t=ei(),e=t.reduce((function(t,e){return t[Pp(e,"labelCols")]={type:[Number,String,Boolean],default:!e&&null},t}),Z(null)),n=t.reduce((function(t,e){return t[Pp(e,"labelAlign")]={type:String},t}),Z(null));return kp(kp(kp({label:{type:String},labelFor:{type:String},labelSize:{type:String},labelSrOnly:{type:Boolean,default:!1}},e),n),{},{labelClass:{type:[String,Array,Object]},description:{type:String},invalidFeedback:{type:String},validFeedback:{type:String},tooltip:{type:Boolean,default:!1},feedbackAriaLive:{type:String,default:"assertive"},validated:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}})},Lp={name:Ke,mixins:[bc,Eh,Eo],get props(){return delete this.props,this.props=Bp()},computed:{labelColProps:function(){var t=this,e={};return ei().forEach((function(n){var r=t[Pp(n,"labelCols")];if(r=""===r||(r||!1),D(r)||"auto"===r||(r=li(r,0),r=r>0&&r),r){var i=n||(D(r)?"col":"cols");e[i]=r}})),e},labelAlignClasses:function(){var t=this,e=[];return ei().forEach((function(n){var r=t[Pp(n,"labelAlign")]||null;if(r){var i=n?"text-".concat(n,"-").concat(r):"text-".concat(r);e.push(i)}})),e},isHorizontal:function(){return nt(this.labelColProps).length>0},labelId:function(){return this.hasNormalizedSlot(wo)||this.label?this.safeId("_BV_label_"):null},descriptionId:function(){return this.hasNormalizedSlot(vo)||this.description?this.safeId("_BV_description_"):null},hasInvalidFeedback:function(){return!1===this.computedState&&(this.hasNormalizedSlot("invalid-feedback")||this.invalidFeedback)},invalidFeedbackId:function(){return this.hasInvalidFeedback?this.safeId("_BV_feedback_invalid_"):null},hasValidFeedback:function(){return!0===this.computedState&&(this.hasNormalizedSlot("valid-feedback")||this.validFeedback)},validFeedbackId:function(){return this.hasValidFeedback?this.safeId("_BV_feedback_valid_"):null},describedByIds:function(){return[this.descriptionId,this.invalidFeedbackId,this.validFeedbackId].filter(Boolean).join(" ")||null}},watch:{describedByIds:function(t,e){t!==e&&this.setInputDescribedBy(t,e)}},mounted:function(){var t=this;this.$nextTick((function(){t.setInputDescribedBy(t.describedByIds)}))},methods:{legendClick:function(t){if(!this.labelFor){var e=t.target?t.target.tagName:"";if(!/^(input|select|textarea|label|button|a)$/i.test(e)){var n=ji(Op,this.$refs.content).filter(Ii);n&&1===n.length&&oo(n[0])}}},setInputDescribedBy:function(t,e){if(this.labelFor&&u["j"]){var n=Mi("#".concat(fp(this.labelFor)),this.$refs.content);if(n){var r="aria-describedby",i=(Yi(n,r)||"").split(/\s+/);t=(t||"").split(/\s+/),e=(e||"").split(/\s+/),i=i.filter((function(t){return!ri(e,t)})).concat(t).filter(Boolean),i=nt(i.reduce((function(t,e){return kp(kp({},t),{},Sp({},e,!0))}),{})).join(" ").trim(),i?Wi(n,r,i):Gi(n,r)}}}},render:function(t){var e=!this.labelFor,n=this.isHorizontal,r=Tp(t,this),i=t(n?wp:"div",{ref:"content",staticClass:"bv-no-focus-ring",attrs:{tabindex:e?"-1":null,role:e?"group":null}},[this.normalizeSlot()||t(),Cp(t,this),Ap(t,this),Ep(t,this)]),o={staticClass:"form-group",class:[this.validated?"was-validated":null,this.stateClass],attrs:{id:this.safeId(),disabled:e?this.disabled:null,role:e?null:"group","aria-invalid":!1===this.computedState?"true":null,"aria-labelledby":e&&n?this.labelId:null,"aria-describedby":e?this.describedByIds:null}};return t(e?"fieldset":n?vh:"div",o,n&&e?[t(vh,[r,i])]:[r,i])}},Ip=Nr({components:{BFormGroup:Lp,BFormFieldset:Lp}}),Dp={computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(t){this.$refs.input.selectionStart=t}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(t){this.$refs.input.selectionEnd=t}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(t){this.$refs.input.selectionDirection=t}}},methods:{select:function(){var t;(t=this.$refs.input).select.apply(t,arguments)},setSelectionRange:function(){var t;(t=this.$refs.input).setSelectionRange.apply(t,arguments)},setRangeText:function(){var t;(t=this.$refs.input).setRangeText.apply(t,arguments)}}},Rp={model:{prop:"value",event:"update"},props:{value:{type:[String,Number],default:""},ariaInvalid:{type:[Boolean,String],default:!1},readonly:{type:Boolean,default:!1},plaintext:{type:Boolean,default:!1},autocomplete:{type:String},placeholder:{type:String},formatter:{type:Function},lazyFormatter:{type:Boolean,default:!1},trim:{type:Boolean,default:!1},number:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},debounce:{type:[Number,String],default:0}},data:function(){return{localValue:gi(this.value),vModelValue:this.value}},computed:{computedClass:function(){return[{"custom-range":"range"===this.type,"form-control-plaintext":this.plaintext&&"range"!==this.type&&"color"!==this.type,"form-control":!this.plaintext&&"range"!==this.type||"color"===this.type},this.sizeFormClass,this.stateClass]},computedAriaInvalid:function(){return this.ariaInvalid&&"false"!==this.ariaInvalid?!0===this.ariaInvalid?"true":this.ariaInvalid:!1===this.computedState?"true":null},computedDebounce:function(){return Uo(li(this.debounce,0),0)},hasFormatter:function(){return I(this.formatter)}},watch:{value:function(t){var e=gi(t);e!==this.localValue&&t!==this.vModelValue&&(this.clearDebounce(),this.localValue=e,this.vModelValue=t)}},created:function(){this.$_inputDebounceTimer=null},mounted:function(){this.$on("hook:beforeDestroy",this.clearDebounce);var t=this.value,e=gi(t);e!==this.localValue&&t!==this.vModelValue&&(this.localValue=e,this.vModelValue=t)},methods:{clearDebounce:function(){clearTimeout(this.$_inputDebounceTimer),this.$_inputDebounceTimer=null},formatValue:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t=gi(t),!this.hasFormatter||this.lazyFormatter&&!n||(t=this.formatter(t,e)),t},modifyValue:function(t){return this.trim&&(t=t.trim()),this.number&&(t=ci(t,t)),t},updateValue:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.lazy;if(!r||n){this.clearDebounce();var i=function(){if(t=e.modifyValue(t),t!==e.vModelValue)e.vModelValue=t,e.$emit("update",t);else if(e.hasFormatter){var n=e.$refs.input;n&&t!==n.value&&(n.value=t)}},o=this.computedDebounce;o>0&&!r&&!n?this.$_inputDebounceTimer=setTimeout(i,o):i()}},onInput:function(t){if(!t.target.composing){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Io(t,{propagation:!1}):(this.localValue=n,this.updateValue(n),this.$emit("input",n))}},onChange:function(t){var e=t.target.value,n=this.formatValue(e,t);!1===n||t.defaultPrevented?Io(t,{propagation:!1}):(this.localValue=n,this.updateValue(n,!0),this.$emit("change",n))},onBlur:function(t){var e=t.target.value,n=this.formatValue(e,t,!0);!1!==n&&(this.localValue=gi(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit("blur",t)},focus:function(){this.disabled||oo(this.$el)},blur:function(){this.disabled||ao(this.$el)}}},jp={computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var t;return(t=this.$refs.input).setCustomValidity.apply(t,arguments)},checkValidity:function(){var t;return(t=this.$refs.input).checkValidity.apply(t,arguments)},reportValidity:function(){var t;return(t=this.$refs.input).reportValidity.apply(t,arguments)}}};function Mp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mp(Object(n),!0).forEach((function(e){Np(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Np(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zp=["text","password","email","number","url","tel","search","range","color","date","time","datetime","datetime-local","month","week"],Hp=c.extend({name:Xe,mixins:[Wa,bc,xh,Ah,Eh,Rp,Dp,jp],props:{type:{type:String,default:"text",validator:function(t){return ri(zp,t)}},noWheel:{type:Boolean,default:!1},min:{type:[String,Number]},max:{type:[String,Number]},step:{type:[String,Number]},list:{type:String}},computed:{localType:function(){return ri(zp,this.type)?this.type:"text"},computedAttrs:function(){var t=this.localType,e=this.disabled,n=this.placeholder,r=this.required,i=this.min,o=this.max,a=this.step;return{id:this.safeId(),name:this.name||null,form:this.form||null,type:t,disabled:e,placeholder:n,required:r,autocomplete:this.autocomplete||null,readonly:this.readonly||this.plaintext,min:i,max:o,step:a,list:"password"!==t?this.list:null,"aria-required":r?"true":null,"aria-invalid":this.computedAriaInvalid}},computedListeners:function(){return Fp(Fp({},this.bvListeners),{},{input:this.onInput,change:this.onChange,blur:this.onBlur})}},watch:{noWheel:function(t){this.setWheelStopper(t)}},mounted:function(){this.setWheelStopper(this.noWheel)},deactivated:function(){this.setWheelStopper(!1)},activated:function(){this.setWheelStopper(this.noWheel)},beforeDestroy:function(){this.setWheelStopper(!1)},methods:{setWheelStopper:function(t){var e=this.$el;Lo(t,e,"focus",this.onWheelFocus),Lo(t,e,"blur",this.onWheelBlur),t||Bo(document,"wheel",this.stopWheel)},onWheelFocus:function(){Po(document,"wheel",this.stopWheel)},onWheelBlur:function(){Bo(document,"wheel",this.stopWheel)},stopWheel:function(t){Io(t,{propagation:!1}),ao(this.$el)}},render:function(t){return t("input",{ref:"input",class:this.computedClass,attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners})}}),Vp=Nr({components:{BFormInput:Hp,BInput:Hp}}),Up={checked:{default:null}},qp=c.extend({name:Qe,mixins:[bc,xh,Bh,lh,Ah,Eh],provide:function(){return{bvRadioGroup:this}},props:Up,data:function(){return{localChecked:this.checked}},computed:{isRadioGroup:function(){return!0}}}),Wp=Nr({components:{BFormRadio:Ph,BRadio:Ph,BFormRadioGroup:qp,BRadioGroup:qp}});function Gp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yp=3,Kp=5,Xp=c.extend({name:en,mixins:[Eo],props:{rating:{type:Number,default:0},star:{type:Number,default:0},focused:{type:Boolean,default:!1},variant:{type:String},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},hasClear:{type:Boolean,default:!1}},methods:{onClick:function(t){this.disabled||this.readonly||(Io(t,{propagation:!1}),this.$emit("selected",this.star))}},render:function(t){var e=this.rating,n=this.star,r=this.focused,i=this.hasClear,o=this.variant,a=this.disabled,s=this.readonly,l=i?0:1,c=e>=n?"full":e>=n-.5?"half":"empty",u={variant:o,disabled:a,readonly:s};return t("span",{staticClass:"b-rating-star",class:{focused:r&&e===n||!li(e)&&n===l,"b-rating-star-empty":"empty"===c,"b-rating-star-half":"half"===c,"b-rating-star-full":"full"===c},attrs:{tabindex:a||s?null:"-1"},on:{click:this.onClick}},[t("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(c,u)])])}}),Zp=function(t){return Uo(Yp,li(t,Kp))},Jp=function(t,e,n){return Uo(Vo(t,n),e)},Qp=c.extend({name:tn,components:{BIconStar:Ws,BIconStarHalf:Ys,BIconStarFill:Gs,BIconX:Ks},mixins:[bc],model:{prop:"value",event:"change"},props:{value:{type:[Number,String],default:null},stars:{type:[Number,String],default:Kp,validator:function(t){return li(t)>=Yp}},variant:{type:String,default:function(){return Zr(tn,"variant")}},color:{type:String,default:function(){return Zr(tn,"color")}},showValue:{type:Boolean,default:!1},showValueMax:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{type:String},name:{type:String},form:{type:String},noBorder:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},precision:{type:[Number,String],default:null},iconEmpty:{type:String,default:"star"},iconHalf:{type:String,default:"star-half"},iconFull:{type:String,default:"star-fill"},iconClear:{type:String,default:"x"},locale:{type:[String,Array]},showClear:{type:Boolean,default:!1}},data:function(){var t=ci(this.value,null),e=Zp(this.stars);return{localValue:B(t)?null:Jp(t,0,e),hasFocus:!1}},computed:{computedStars:function(){return Zp(this.stars)},computedRating:function(){var t=ci(this.localValue,0),e=li(this.precision,3);return Jp(ci(t.toFixed(e)),0,this.computedStars)},computedLocale:function(){var t=ii(this.locale).filter(Xt),e=new Intl.NumberFormat(t);return e.resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return _c(this.computedLocale)},formattedRating:function(){var t=li(this.precision),e=this.showValueMax,n=this.computedLocale,r={notation:"standard",minimumFractionDigits:isNaN(t)?0:t,maximumFractionDigits:isNaN(t)?3:t},i=this.computedStars.toLocaleString(n),o=this.localValue;return o=B(o)?e?"-":"":o.toLocaleString(n,r),e?"".concat(o,"/").concat(i):o}},watch:{value:function(t,e){if(t!==e){var n=ci(t,null);this.localValue=B(n)?null:Jp(n,0,this.computedStars)}},localValue:function(t,e){t!==e&&t!==(this.value||0)&&this.$emit("change",t||null)},disabled:function(t){t&&(this.hasFocus=!1,this.blur())}},methods:{focus:function(){this.disabled||oo(this.$el)},blur:function(){this.disabled||ao(this.$el)},onKeydown:function(t){var e=t.keyCode;if(this.isInteractive&&ri([Ba,Ca,Da,ja],e)){Io(t,{propagation:!1});var n=li(this.localValue,0),r=this.showClear?0:1,i=this.computedStars,o=this.isRTL?-1:1;e===Ba?this.localValue=Jp(n-o,r,i)||null:e===Da?this.localValue=Jp(n+o,r,i):e===Ca?this.localValue=Jp(n-1,r,i)||null:e===ja&&(this.localValue=Jp(n+1,r,i))}},onSelected:function(t){this.isInteractive&&(this.localValue=t)},onFocus:function(t){this.hasFocus=!!this.isInteractive&&"focus"===t.type},renderIcon:function(t){return this.$createElement(Qs,{props:{icon:t,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(Qs,{props:{icon:this.iconClear}})}},render:function(t){var e,n=this,r=this.disabled,i=this.readonly,o=this.size,a=this.name,s=this.form,l=this.inline,c=this.variant,u=this.color,d=this.noBorder,f=this.hasFocus,h=this.computedRating,p=this.computedStars,$=this.formattedRating,m=this.showClear,g=this.isRTL,v=this.isInteractive,y=this.$scopedSlots,_=[];if(m&&!r&&!i){var b=t("span",{staticClass:"b-rating-icon"},[(y["icon-clear"]||this.iconClearFn)()]);_.push(t("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:f&&0===h},attrs:{tabindex:v?"-1":null},on:{click:function(){return n.onSelected(null)}},key:"clear"},[b]))}for(var w=0;w<p;w++){var x=w+1;_.push(t(Xp,{staticClass:"flex-grow-1",style:u&&!r?{color:u}:{},props:{rating:h,star:x,variant:r?null:c||null,disabled:r,readonly:i,focused:f,hasClear:m},on:{selected:this.onSelected},scopedSlots:{empty:y["icon-empty"]||this.iconEmptyFn,half:y["icon-half"]||this.iconHalfFn,full:y["icon-full"]||this.iconFullFn},key:w}))}return a&&_.push(t("input",{attrs:{type:"hidden",value:B(this.localValue)?"":h,name:a,form:s||null},key:"hidden"})),this.showValue&&_.push(t("b",{staticClass:"b-rating-value flex-grow-1",attrs:{"aria-hidden":"true"},key:"value"},gi($))),t("output",{staticClass:"b-rating form-control align-items-center",class:(e={},Gp(e,"form-control-".concat(o),!!o),Gp(e,"d-inline-flex",l),Gp(e,"d-flex",!l),Gp(e,"border-0",d),Gp(e,"disabled",r),Gp(e,"readonly",!r&&i),e),attrs:{id:this.safeId(),dir:g?"rtl":"ltr",tabindex:r?null:"0",disabled:r,role:"slider","aria-disabled":r?"true":null,"aria-readonly":!r&&i?"true":null,"aria-live":"off","aria-valuemin":m?"0":"1","aria-valuemax":gi(p),"aria-valuenow":h?gi(h):null},on:{keydown:this.onKeydown,focus:this.onFocus,blur:this.onFocus}},_)}}),t$=Nr({components:{BFormRating:Qp,BRating:Qp}}),e$={mixins:[lh],props:{labelField:{type:String,default:"label"},optionsField:{type:String,default:"options"}},methods:{normalizeOption:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(z(t)){var n=Qt(t,this.valueField),r=Qt(t,this.textField),i=Qt(t,this.optionsField,null);return B(i)?{value:P(n)?e||r:n,text:String(P(r)?e:r),html:Qt(t,this.htmlField),disabled:Boolean(Qt(t,this.disabledField))}:{label:String(Qt(t,this.labelField)||r),options:this.normalizeOptions(i)}}return{value:e||t,text:String(t),disabled:!1}}}},n$={value:{required:!0},disabled:{type:Boolean,default:!1}},r$=c.extend({name:on,functional:!0,props:n$,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.value,a=n.disabled;return t("option",l(r,{attrs:{disabled:a},domProps:{value:o}}),i)}}),i$=c.extend({name:an,mixins:[Eo,lh],props:{label:{type:String,required:!0}},render:function(t){var e=this.formOptions.map((function(e,n){var r=e.value,i=e.text,o=e.html,a=e.disabled;return t(r$,{attrs:{value:r,disabled:a},domProps:bl(o,i),key:"option_".concat(n)})}));return t("optgroup",{attrs:{label:this.label}},[this.normalizeSlot(yo),e,this.normalizeSlot()])}}),o$=c.extend({name:rn,mixins:[bc,Eo,xh,Ah,Eh,Qh,e$],model:{prop:"value",event:"input"},props:{value:{},multiple:{type:Boolean,default:!1},selectSize:{type:Number,default:0},ariaInvalid:{type:[Boolean,String],default:!1}},data:function(){return{localValue:this.value}},computed:{computedSelectSize:function(){return this.plain||0!==this.selectSize?this.selectSize:null},inputClass:function(){return[this.plain?"form-control":"custom-select",this.size&&this.plain?"form-control-".concat(this.size):null,this.size&&!this.plain?"custom-select-".concat(this.size):null,this.stateClass]},computedAriaInvalid:function(){return!0===this.ariaInvalid||"true"===this.ariaInvalid||"is-invalid"===this.stateClass?"true":null}},watch:{value:function(t){this.localValue=t},localValue:function(){this.$emit("input",this.localValue)}},methods:{focus:function(){oo(this.$refs.input)},blur:function(){ao(this.$refs.input)},onChange:function(t){var e=this,n=t.target,r=ni(n.options).filter((function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));this.localValue=n.multiple?r:r[0],this.$nextTick((function(){e.$emit("change",e.localValue)}))}},render:function(t){var e=this.name,n=this.disabled,r=this.required,i=this.computedSelectSize,o=this.localValue,a=this.formOptions.map((function(e,n){var r=e.value,i=e.label,o=e.options,a=e.disabled,s="option_".concat(n);return F(o)?t(i$,{props:{label:i,options:o},key:s}):t(r$,{props:{value:r,disabled:a},domProps:bl(e.html,e.text),key:s})}));return t("select",{class:this.inputClass,attrs:{id:this.safeId(),name:e,form:this.form||null,multiple:this.multiple||null,size:i,disabled:n,required:r,"aria-required":r?"true":null,"aria-invalid":this.computedAriaInvalid},on:{change:this.onChange},directives:[{name:"model",value:o}],ref:"input"},[this.normalizeSlot(yo),a,this.normalizeSlot()])}}),a$=Nr({components:{BFormSelect:o$,BFormSelectOption:r$,BFormSelectOptionGroup:i$,BSelect:o$,BSelectOption:r$,BSelectOptionGroup:i$}});function s$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l$(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s$(Object(n),!0).forEach((function(e){c$(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c$(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u$=1,d$=100,f$=1,h$=500,p$=100,$$=10,m$=4,g$=[ja,Ca,Pa,Aa,Ia,La],v$=c.extend({name:sn,mixins:[qa,bc,Eo],inheritAttrs:!1,props:{value:{type:Number,default:null},min:{type:[Number,String],default:u$},max:{type:[Number,String],default:d$},step:{type:[Number,String],default:f$},wrap:{type:Boolean,default:!1},formatterFn:{type:Function},size:{type:String},placeholder:{type:String},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{type:String},form:{type:String},state:{type:Boolean,default:null},inline:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},ariaLabel:{type:String},ariaControls:{type:String},labelDecrement:{type:String,default:function(){return Zr(sn,"labelDecrement")}},labelIncrement:{type:String,default:function(){return Zr(sn,"labelIncrement")}},locale:{type:[String,Array]},repeatDelay:{type:[Number,String],default:h$},repeatInterval:{type:[Number,String],default:p$},repeatThreshold:{type:[Number,String],default:$$},repeatStepMultiplier:{type:[Number,String],default:m$}},data:function(){return{localValue:ci(this.value,null),hasFocus:!1}},computed:{spinId:function(){return this.safeId()},computedInline:function(){return this.inline&&!this.vertical},computedReadonly:function(){return this.readonly&&!this.disabled},computedRequired:function(){return this.required&&!this.computedReadonly&&!this.disabled},computedStep:function(){return ci(this.step,f$)},computedMin:function(){return ci(this.min,u$)},computedMax:function(){var t=ci(this.max,d$),e=this.computedStep,n=this.computedMin;return Go((t-n)/e)*e+n},computedDelay:function(){var t=li(this.repeatDelay,0);return t>0?t:h$},computedInterval:function(){var t=li(this.repeatInterval,0);return t>0?t:p$},computedThreshold:function(){return Uo(li(this.repeatThreshold,$$),1)},computedStepMultiplier:function(){return Uo(li(this.repeatStepMultiplier,m$),1)},computedPrecision:function(){var t=this.computedStep;return Go(t)===t?0:(t.toString().split(".")[1]||"").length},computedMultiplier:function(){return Yo(10,this.computedPrecision||0)},valueAsFixed:function(){var t=this.localValue;return B(t)?"":t.toFixed(this.computedPrecision)},computedLocale:function(){var t=ii(this.locale).filter(Xt),e=new Intl.NumberFormat(t);return e.resolvedOptions().locale},computedRTL:function(){return _c(this.computedLocale)},defaultFormatter:function(){var t=this.computedPrecision,e=new Intl.NumberFormat(this.computedLocale,{style:"decimal",useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:t,maximumFractionDigits:t,notation:"standard"});return e.format},computedFormatter:function(){return I(this.formatterFn)?this.formatterFn:this.defaultFormatter},computedAttrs:function(){return l$(l$({},this.bvAttrs),{},{role:"group",lang:this.computedLocale,tabindex:this.disabled?null:"-1",title:this.ariaLabel})},computedSpinAttrs:function(){var t=this.spinId,e=this.localValue,n=this.computedRequired,r=this.disabled,i=this.state,o=this.computedFormatter,a=!B(e);return l$(l$({dir:this.computedRTL?"rtl":"ltr"},this.bvAttrs),{},{id:t,role:"spinbutton",tabindex:r?null:"0","aria-live":"off","aria-label":this.ariaLabel||null,"aria-controls":this.ariaControls||null,"aria-invalid":!1===i||!a&&n?"true":null,"aria-required":n?"true":null,"aria-valuemin":gi(this.computedMin),"aria-valuemax":gi(this.computedMax),"aria-valuenow":a?e:null,"aria-valuetext":a?o(e):null})}},watch:{value:function(t){this.localValue=ci(t,null)},localValue:function(t){this.$emit("input",t)},disabled:function(t){t&&this.clearRepeat()},readonly:function(t){t&&this.clearRepeat()}},created:function(){this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null,this.$_keyIsDown=!1},beforeDestroy:function(){this.clearRepeat()},deactivated:function(){this.clearRepeat()},methods:{focus:function(){this.disabled||oo(this.$refs.spinner)},blur:function(){this.disabled||ao(this.$refs.spinner)},emitChange:function(){this.$emit("change",this.localValue)},stepValue:function(t){var e=this.localValue;if(!this.disabled&&!B(e)){var n=this.computedStep*t,r=this.computedMin,i=this.computedMax,o=this.computedMultiplier,a=this.wrap;e=Ko((e-r)/n)*n+r+n,e=Ko(e*o)/o,this.localValue=e>i?a?r:i:e<r?a?i:r:e}},onFocusBlur:function(t){this.disabled?this.hasFocus=!1:this.hasFocus="focus"===t.type},stepUp:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.localValue;B(e)?this.localValue=this.computedMin:this.stepValue(1*t)},stepDown:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this.localValue;B(e)?this.localValue=this.wrap?this.computedMax:this.computedMin:this.stepValue(-1*t)},onKeydown:function(t){var e=t.keyCode,n=t.altKey,r=t.ctrlKey,i=t.metaKey;if(!(this.disabled||this.readonly||n||r||i)&&ri(g$,e)){if(Io(t,{propagation:!1}),this.$_keyIsDown)return;this.resetTimers(),ri([ja,Ca],e)?(this.$_keyIsDown=!0,e===ja?this.handleStepRepeat(t,this.stepUp):e===Ca&&this.handleStepRepeat(t,this.stepDown)):e===Ia?this.stepUp(this.computedStepMultiplier):e===La?this.stepDown(this.computedStepMultiplier):e===Pa?this.localValue=this.computedMin:e===Aa&&(this.localValue=this.computedMax)}},onKeyup:function(t){var e=t.keyCode,n=t.altKey,r=t.ctrlKey,i=t.metaKey;this.disabled||this.readonly||n||r||i||ri(g$,e)&&(Io(t,{propagation:!1}),this.resetTimers(),this.$_keyIsDown=!1,this.emitChange())},handleStepRepeat:function(t,e){var n=this,r=t||{},i=r.type,o=r.button;if(!this.disabled&&!this.readonly){if("mousedown"===i&&o)return;this.resetTimers(),e(1);var a=this.computedThreshold,s=this.computedStepMultiplier,l=this.computedDelay,c=this.computedInterval;this.$_autoDelayTimer=setTimeout((function(){var t=0;n.$_autoRepeatTimer=setInterval((function(){e(t<a?1:s),t++}),c)}),l)}},onMouseup:function(t){var e=t||{},n=e.type,r=e.button;"mouseup"===n&&r||(Io(t,{propagation:!1}),this.resetTimers(),this.setMouseup(!1),this.emitChange())},setMouseup:function(t){try{Lo(t,document.body,"mouseup",this.onMouseup,!1),Lo(t,document.body,"touchend",this.onMouseup,!1)}catch(e){}},resetTimers:function(){clearTimeout(this.$_autoDelayTimer),clearInterval(this.$_autoRepeatTimer),this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null},clearRepeat:function(){this.resetTimers(),this.setMouseup(!1),this.$_keyIsDown=!1}},render:function(t){var e,n=this,r=this.spinId,i=this.localValue,o=this.computedInline,a=this.computedReadonly,s=this.vertical,l=this.disabled,c=this.state,u=this.size,d=this.computedFormatter,f=!B(i),h=function(e,i,o,c,u,d,f){var h=t(o,{props:{scale:n.hasFocus?1.5:1.25},attrs:{"aria-hidden":"true"}}),p={hasFocus:n.hasFocus},$=function(t){l||a||(Io(t,{propagation:!1}),n.setMouseup(!0),oo(t.currentTarget),n.handleStepRepeat(t,e))};return t("button",{key:c||null,ref:c,staticClass:"btn btn-sm border-0 rounded-0",class:{"py-0":!s},attrs:{tabindex:"-1",type:"button",disabled:l||a||d,"aria-disabled":l||a||d?"true":null,"aria-controls":r,"aria-label":i||null,"aria-keyshortcuts":u||null},on:{mousedown:$,touchstart:$}},[t("div",[n.normalizeSlot(f,p)||h])])},p=h(this.stepUp,this.labelIncrement,qs,"inc","ArrowUp",!1,"increment"),$=h(this.stepDown,this.labelDecrement,Vs,"dec","ArrowDown",!1,"decrement"),m=t();this.name&&!l&&(m=t("input",{key:"hidden",attrs:{type:"hidden",name:this.name,form:this.form||null,value:this.valueAsFixed}}));var g=t("output",{ref:"spinner",key:"output",staticClass:"flex-grow-1",class:{"d-flex":s,"align-self-center":!s,"align-items-center":s,"border-top":s,"border-bottom":s,"border-left":!s,"border-right":!s},attrs:this.computedSpinAttrs},[t("bdi",f?d(i):this.placeholder||"")]);return t("div",{staticClass:"b-form-spinbutton form-control",class:(e={disabled:l,readonly:a,focus:this.hasFocus},c$(e,"form-control-".concat(u),!!u),c$(e,"d-inline-flex",o||s),c$(e,"d-flex",!o&&!s),c$(e,"align-items-stretch",!s),c$(e,"flex-column",s),c$(e,"is-valid",!0===c),c$(e,"is-invalid",!1===c),e),attrs:this.computedAttrs,on:{keydown:this.onKeydown,keyup:this.onKeyup,"!focus":this.onFocusBlur,"!blur":this.onFocusBlur}},s?[p,m,g,$]:[$,m,g,p])}}),y$=Nr({components:{BFormSpinbutton:v$,BSpinbutton:v$}}),_$=c.extend({name:ln,mixins:[bc,Eo],props:{variant:{type:String,default:function(){return Zr(ln,"variant")}},disabled:{type:Boolean,default:!1},title:{type:String},pill:{type:Boolean,default:!1},removeLabel:{type:String,default:function(){return Zr(ln,"removeLabel")}},tag:{type:String,default:"span"}},methods:{onDelete:function(t){var e=t.type,n=t.keyCode;this.disabled||"click"!==e&&("keydown"!==e||n!==Oa)||this.$emit("remove")}},render:function(t){var e=this.safeId(),n=this.safeId("_taglabel_"),r=t();this.disabled||(r=t(jo,{staticClass:"b-form-tag-remove",props:{ariaLabel:this.removeLabel},attrs:{"aria-controls":e,"aria-describedby":n,"aria-keyshortcuts":"Delete"},on:{click:this.onDelete,keydown:this.onDelete}}));var i=t("span",{staticClass:"b-form-tag-content flex-grow-1 text-truncate",attrs:{id:n}},this.normalizeSlot()||this.title||[t()]);return t(vl,{staticClass:"b-form-tag d-inline-flex align-items-baseline mw-100",class:{disabled:this.disabled},attrs:{id:e,title:this.title||null,"aria-labelledby":n},props:{tag:this.tag,variant:this.variant,pill:this.pill}},[i,r])}});function b$(t){return S$(t)||k$(t)||x$(t)||w$()}function w$(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x$(t,e){if(t){if("string"===typeof t)return O$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O$(t,e):void 0}}function k$(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function S$(t){if(Array.isArray(t))return O$(t)}function O$(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function C$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A$(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C$(Object(n),!0).forEach((function(e){E$(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function E$(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var T$=["text","email","tel","url","number"],P$=function(t){return mi(t).replace(jt,"\\s")},B$=function(t){return ii(t).map((function(t){return yi(gi(t))})).filter((function(t,e,n){return t.length>0&&n.indexOf(t)===e}))},L$=function(t){return R(t)?t:V(t)&&t.target.value||""},I$=function(){return{all:[],valid:[],invalid:[],duplicate:[]}},D$=c.extend({name:cn,mixins:[bc,Eo],model:{prop:"value",event:"input"},props:{inputId:{type:String},placeholder:{type:String,default:function(){return Zr(cn,"placeholder")}},disabled:{type:Boolean,default:!1},name:{type:String},form:{type:String},autofocus:{type:Boolean,default:!1},state:{type:Boolean,default:null},size:{type:String},inputType:{type:String,default:"text",validator:function(t){return ri(T$,t)}},inputClass:{type:[String,Array,Object]},inputAttrs:{type:Object,default:function(){return{}}},addButtonText:{type:String,default:function(){return Zr(cn,"addButtonText")}},addButtonVariant:{type:String,default:function(){return Zr(cn,"addButtonVariant")}},tagVariant:{type:String,default:function(){return Zr(cn,"tagVariant")}},tagClass:{type:[String,Array,Object]},tagPills:{type:Boolean,default:!1},tagRemoveLabel:{type:String,default:function(){return Zr(cn,"tagRemoveLabel")}},tagRemovedLabel:{type:String,default:function(){return Zr(cn,"tagRemovedLabel")}},tagValidator:{type:Function},duplicateTagText:{type:String,default:function(){return Zr(cn,"duplicateTagText")}},invalidTagText:{type:String,default:function(){return Zr(cn,"invalidTagText")}},limitTagsText:{type:String,default:function(){return Zr(cn,"limitTagsText")}},limit:{type:Number},separator:{type:[String,Array]},removeOnDelete:{type:Boolean,default:!1},addOnChange:{type:Boolean,default:!1},noAddOnEnter:{type:Boolean,default:!1},noOuterFocus:{type:Boolean,default:!1},ignoreInputFocusSelector:{type:[Array,String],default:function(){return[".b-form-tag","button","input","select"]}},value:{type:Array,default:function(){return[]}}},data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:I$()}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return ri(T$,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){return A$(A$({},this.inputAttrs),{},{id:this.computedInputId,value:this.newTag,disabled:this.disabled||null,form:this.form||null})},computedInputHandlers:function(){return{input:this.onInputInput,change:this.onInputChange,keydown:this.onInputKeydown}},computedSeparator:function(){return ii(this.separator).filter(R).filter(Xt).join("")},computedSeparatorRegExp:function(){var t=this.computedSeparator;return t?new RegExp("[".concat(P$(t),"]+")):null},computedJoiner:function(){var t=this.computedSeparator.charAt(0);return" "!==t?"".concat(t," "):t},computeIgnoreInputFocusSelector:function(){return ii(this.ignoreInputFocusSelector).filter(Xt).join(",").trim()},disableAddButton:function(){var t=this,e=yi(this.newTag);return""===e||!this.splitTags(e).some((function(e){return!ri(t.tags,e)&&t.validateTag(e)}))},duplicateTags:function(){return this.tagsState.duplicate},hasDuplicateTags:function(){return this.duplicateTags.length>0},invalidTags:function(){return this.tagsState.invalid},hasInvalidTags:function(){return this.invalidTags.length>0},isLimitReached:function(){var t=this.limit;return j(t)&&t>=0&&this.tags.length>=t}},watch:{value:function(t){this.tags=B$(t)},tags:function(t,e){Na(t,this.value)||this.$emit("input",t),Na(t,e)||(t=ii(t).filter(Xt),e=ii(e).filter(Xt),this.removedTags=e.filter((function(e){return!ri(t,e)})))},tagsState:function(t,e){Na(t,e)||this.$emit("tag-state",t.valid,t.invalid,t.duplicate)}},created:function(){this.tags=B$(this.value)},mounted:function(){this.handleAutofocus()},activated:function(){this.handleAutofocus()},methods:{addTag:function(t){if(t=R(t)?t:this.newTag,!this.disabled&&""!==yi(t)&&!this.isLimitReached){var e=this.parseTags(t);if(e.valid.length>0||0===e.all.length)if(Fi(this.getInput(),"select"))this.newTag="";else{var n=[].concat(b$(e.invalid),b$(e.duplicate));this.newTag=e.all.filter((function(t){return ri(n,t)})).join(this.computedJoiner).concat(n.length>0?this.computedJoiner.charAt(0):"")}e.valid.length>0&&(this.tags=ii(this.tags,e.valid)),this.tagsState=e,this.focus()}},removeTag:function(t){var e=this;this.disabled||(this.tags=this.tags.filter((function(e){return e!==t})),this.$nextTick((function(){e.focus()})))},onInputInput:function(t){if(!(this.disabled||V(t)&&t.target.composing)){var e=L$(t),n=this.computedSeparatorRegExp;this.newTag!==e&&(this.newTag=e),e=vi(e),n&&n.test(e.slice(-1))?this.addTag():this.tagsState=""===e?I$():this.parseTags(e)}},onInputChange:function(t){if(!this.disabled&&this.addOnChange){var e=L$(t);this.newTag!==e&&(this.newTag=e),this.addTag()}},onInputKeydown:function(t){if(!this.disabled&&V(t)){var e=t.keyCode,n=t.target.value||"";this.noAddOnEnter||e!==Ea?!this.removeOnDelete||e!==Sa&&e!==Oa||""!==n||(Io(t,{propagation:!1}),this.tags=this.tags.slice(0,-1)):(Io(t,{propagation:!1}),this.addTag())}},onClick:function(t){var e=this,n=this.computeIgnoreInputFocusSelector,r=t.target;this.disabled||Li(r)||n&&Ni(n,r,!0)||this.$nextTick((function(){e.focus()}))},onFocusin:function(){this.hasFocus=!0},onFocusout:function(){this.hasFocus=!1},handleAutofocus:function(){var t=this;this.$nextTick((function(){Ci((function(){t.autofocus&&!t.disabled&&t.focus()}))}))},focus:function(){this.disabled||oo(this.getInput())},blur:function(){this.disabled||ao(this.getInput())},splitTags:function(t){t=gi(t);var e=this.computedSeparatorRegExp;return(e?t.split(e):[t]).map(yi).filter(Xt)},parseTags:function(t){var e=this,n=this.splitTags(t),r={all:n,valid:[],invalid:[],duplicate:[]};return n.forEach((function(t){ri(e.tags,t)||ri(r.valid,t)?ri(r.duplicate,t)||r.duplicate.push(t):e.validateTag(t)?r.valid.push(t):ri(r.invalid,t)||r.invalid.push(t)})),r},validateTag:function(t){var e=this.tagValidator;return!I(e)||e(t)},getInput:function(){return Mi("#".concat(fp(this.computedInputId)),this.$el)},defaultRender:function(t){var e=t.tags,n=t.inputAttrs,r=t.inputType,i=t.inputHandlers,o=t.removeTag,a=t.addTag,s=t.isInvalid,l=t.isDuplicate,c=t.isLimitReached,u=t.disableAddButton,d=t.disabled,f=t.placeholder,h=t.inputClass,p=t.tagRemoveLabel,$=t.tagVariant,m=t.tagPills,g=t.tagClass,v=t.addButtonText,y=t.addButtonVariant,_=t.invalidTagText,b=t.duplicateTagText,w=t.limitTagsText,x=this.$createElement,k=e.map((function(t){return t=gi(t),x(_$,{class:g,props:{tag:"li",title:t,disabled:d,variant:$,pill:m,removeLabel:p},on:{remove:function(){return o(t)}},key:"tags_".concat(t)},t)})),S=_&&s?this.safeId("__invalid_feedback__"):null,O=b&&l?this.safeId("__duplicate_feedback__"):null,C=w&&c?this.safeId("__limit_feedback__"):null,A=[n["aria-describedby"],S,O,C].filter(Xt).join(" "),E=x("input",{ref:"input",directives:[{name:"model",value:n.value}],staticClass:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",class:h,style:{outline:0,minWidth:"5rem"},attrs:A$(A$({},n),{},{"aria-describedby":A||null,type:r,placeholder:f||null}),domProps:{value:n.value},on:i}),T=x(_s,{ref:"button",staticClass:"b-form-tags-button py-0",class:{invisible:u},style:{fontSize:"90%"},props:{variant:y,disabled:u||c},on:{click:function(){return a()}}},[this.normalizeSlot("add-button-text")||v]),P=this.safeId("__tag_list__"),B=x("li",{staticClass:"b-from-tags-field flex-grow-1",attrs:{role:"none","aria-live":"off","aria-controls":P},key:"tags_field"},[x("div",{staticClass:"d-flex",attrs:{role:"group"}},[E,T])]),L=x("ul",{staticClass:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center",attrs:{id:P},key:"tags_list"},[k,B]),I=x();if(_||b||w){var D=this.computedJoiner,R=x();S&&(R=x(ph,{props:{id:S,forceShow:!0},key:"tags_invalid_feedback"},[this.invalidTagText,": ",this.invalidTags.join(D)]));var j=x();O&&(j=x(fh,{props:{id:O},key:"tags_duplicate_feedback"},[this.duplicateTagText,": ",this.duplicateTags.join(D)]));var M=x();C&&(M=x(fh,{props:{id:C},key:"tags_limit_feedback"},[w])),I=x("div",{attrs:{"aria-live":"polite","aria-atomic":"true"},key:"tags_feedback"},[R,j,M])}return[L,I]}},render:function(t){var e=this,n={tags:this.tags.slice(),inputAttrs:this.computedInputAttrs,inputType:this.computedInputType,inputHandlers:this.computedInputHandlers,removeTag:this.removeTag,addTag:this.addTag,inputId:this.computedInputId,isInvalid:this.hasInvalidTags,invalidTags:this.invalidTags.slice(),isDuplicate:this.hasDuplicateTags,duplicateTags:this.duplicateTags.slice(),isLimitReached:this.isLimitReached,disableAddButton:this.disableAddButton,disabled:this.disabled,state:this.state,size:this.size,limit:this.limit,separator:this.separator,placeholder:this.placeholder,inputClass:this.inputClass,tagRemoveLabel:this.tagRemoveLabel,tagVariant:this.tagVariant,tagPills:this.tagPills,tagClass:this.tagClass,addButtonText:this.addButtonText,addButtonVariant:this.addButtonVariant,invalidTagText:this.invalidTagText,duplicateTagText:this.duplicateTagText,limitTagsText:this.limitTagsText},r=this.normalizeSlot(go,n)||this.defaultRender(n),i=t("output",{staticClass:"sr-only",attrs:{id:this.safeId("__selected_tags__"),role:"status",for:this.computedInputId,"aria-live":this.hasFocus?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"}},this.tags.join(", ")),o=t("div",{staticClass:"sr-only",attrs:{id:this.safeId("__removed_tags__"),role:"status","aria-live":this.hasFocus?"assertive":"off","aria-atomic":"true"}},this.removedTags.length>0?"(".concat(this.tagRemovedLabel,") ").concat(this.removedTags.join(", ")):""),a=t();return this.name&&!this.disabled&&(a=this.tags.map((function(n){return t("input",{attrs:{type:"hidden",value:n,name:e.name,form:e.form||null},key:"tag_input_".concat(n)})}))),t("div",{staticClass:"b-form-tags form-control h-auto",class:E$({focus:this.hasFocus&&!this.noOuterFocus&&!this.disabled,disabled:this.disabled,"is-valid":!0===this.state,"is-invalid":!1===this.state},"form-control-".concat(this.size),this.size),attrs:{id:this.safeId(),role:"group",tabindex:this.disabled||this.noOuterFocus?null:"-1","aria-describedby":this.safeId("__selected_tags__")},on:{click:this.onClick,focusin:this.onFocusin,focusout:this.onFocusout}},[i,o,r,a])}}),R$=Nr({components:{BFormTags:D$,BTags:D$,BFormTag:_$,BTag:_$}});function j$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M$(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j$(Object(n),!0).forEach((function(e){F$(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F$(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var N$=c.extend({name:dn,directives:{"b-visible":mu},mixins:[Wa,bc,hd,xh,Ah,Eh,Rp,Dp,jp],props:{rows:{type:[Number,String],default:2},maxRows:{type:[Number,String]},wrap:{type:String,default:"soft"},noResize:{type:Boolean,default:!1},noAutoShrink:{type:Boolean,default:!1}},data:function(){return{heightInPx:null}},computed:{computedStyle:function(){var t={resize:!this.computedRows||this.noResize?"none":null};return this.computedRows||(t.height=this.heightInPx,t.overflowY="scroll"),t},computedMinRows:function(){return Uo(li(this.rows,2),2)},computedMaxRows:function(){return Uo(this.computedMinRows,li(this.maxRows,0))},computedRows:function(){return this.computedMinRows===this.computedMaxRows?this.computedMinRows:null},computedAttrs:function(){var t=this.disabled,e=this.required;return{id:this.safeId(),name:this.name||null,form:this.form||null,disabled:t,placeholder:this.placeholder||null,required:e,autocomplete:this.autocomplete||null,readonly:this.readonly||this.plaintext,rows:this.computedRows,wrap:this.wrap||null,"aria-required":this.required?"true":null,"aria-invalid":this.computedAriaInvalid}},computedListeners:function(){return M$(M$({},this.bvListeners),{},{input:this.onInput,change:this.onChange,blur:this.onBlur})}},watch:{localValue:function(){this.setHeight()}},mounted:function(){this.setHeight()},methods:{visibleCallback:function(t){t&&this.$nextTick(this.setHeight)},setHeight:function(){var t=this;this.$nextTick((function(){Ci((function(){t.heightInPx=t.computeHeight()}))}))},computeHeight:function(){if(this.$isServer||!B(this.computedRows))return null;var t=this.$el;if(!Ii(t))return null;var e=to(t),n=ci(e.lineHeight,1),r=ci(e.borderTopWidth,0)+ci(e.borderBottomWidth,0),i=ci(e.paddingTop,0)+ci(e.paddingBottom,0),o=r+i,a=n*this.computedMinRows+o,s=Ji(t,"height")||e.height;Xi(t,"height","auto");var l=t.scrollHeight;Xi(t,"height",s);var c=Uo((l-i)/n,2),u=Vo(Uo(c,this.computedMinRows),this.computedMaxRows),d=Uo(Wo(u*n+o),a);return this.noAutoShrink&&ci(s,0)>d?s:"".concat(d,"px")}},render:function(t){return t("textarea",{ref:"input",class:this.computedClass,style:this.computedStyle,directives:[{name:"b-visible",value:this.visibleCallback,modifiers:{640:!0}}],attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners})}}),z$=Nr({components:{BFormTextarea:N$,BTextarea:N$}});function H$(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V$(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?H$(Object(n),!0).forEach((function(e){U$(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):H$(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function U$(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q$(t,e){return X$(t)||K$(t,e)||G$(t,e)||W$()}function W$(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function G$(t,e){if(t){if("string"===typeof t)return Y$(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y$(t,e):void 0}}function Y$(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function K$(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function X$(t){if(Array.isArray(t))return t}var Z$="numeric",J$=function(t){return Zr($r,t)||Zr(sn,t)},Q$=function(t){return"00".concat(t||"").slice(-2)},tm=function(t){t=gi(t);var e=null,n=null,r=null;if(St.test(t)){var i=t.split(":").map((function(t){return li(t,null)})),o=q$(i,3);e=o[0],n=o[1],r=o[2]}return{hours:L(e)?null:e,minutes:L(n)?null:n,seconds:L(r)?null:r,ampm:L(e)||e<12?0:1}},em=function(t){var e=t.hours,n=t.minutes,r=t.seconds,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(B(e)||B(n)||i&&B(r))return"";var o=[e,n,i?r:0];return o.map(Q$).join(":")},nm=c.extend({name:$r,mixins:[bc,Eo],model:{prop:"value",event:"input"},props:{value:{type:String,default:""},showSeconds:{type:Boolean,default:!1},hour12:{type:Boolean,default:null},locale:{type:[String,Array]},ariaLabelledby:{type:String},secondsStep:{type:[Number,String],default:1},minutesStep:{type:[Number,String],default:1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},labelNoTimeSelected:{type:String,default:function(){return Zr($r,"labelNoTimeSelected")}},labelSelected:{type:String,default:function(){return Zr($r,"labelSelected")}},labelHours:{type:String,default:function(){return Zr($r,"labelHours")}},labelMinutes:{type:String,default:function(){return Zr($r,"labelMinutes")}},labelSeconds:{type:String,default:function(){return Zr($r,"labelSeconds")}},labelAmpm:{type:String,default:function(){return Zr($r,"labelAmpm")}},labelAm:{type:String,default:function(){return Zr($r,"labelAm")}},labelPm:{type:String,default:function(){return Zr($r,"labelPm")}},labelIncrement:{type:String,default:function(){return J$("labelIncrement")}},labelDecrement:{type:String,default:function(){return J$("labelDecrement")}},hidden:{type:Boolean,default:!1}},data:function(){var t=tm(this.value||"");return{modelHours:t.hours,modelMinutes:t.minutes,modelSeconds:t.seconds,modelAmpm:t.ampm,isLive:!1}},computed:{computedHMS:function(){var t=this.modelHours,e=this.modelMinutes,n=this.modelSeconds;return em({hours:t,minutes:e,seconds:n},this.showSeconds)},resolvedOptions:function(){var t=ii(this.locale).filter(Xt),e={hour:Z$,minute:Z$,second:Z$};L(this.hour12)||(e.hour12=!!this.hour12);var n=new Intl.DateTimeFormat(t,e),r=n.resolvedOptions(),i=r.hour12||!1,o=r.hourCycle||(i?"h12":"h23");return{locale:r.locale,hour12:i,hourCycle:o}},computedLocale:function(){return this.resolvedOptions.locale},computedLang:function(){return(this.computedLocale||"").replace(/-u-.*$/,"")},computedRTL:function(){return _c(this.computedLang)},computedHourCycle:function(){return this.resolvedOptions.hourCycle},is12Hour:function(){return!!this.resolvedOptions.hour12},context:function(){return{locale:this.computedLocale,isRTL:this.computedRTL,hourCycle:this.computedHourCycle,hour12:this.is12Hour,hours:this.modelHours,minutes:this.modelMinutes,seconds:this.showSeconds?this.modelSeconds:0,value:this.computedHMS,formatted:this.formattedTimeString}},valueId:function(){return this.safeId()||null},computedAriaLabelledby:function(){return[this.ariaLabelledby,this.valueId].filter(Xt).join(" ")||null},timeFormatter:function(){var t={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:Z$,minute:Z$,timeZone:"UTC"};return this.showSeconds&&(t.second=Z$),sc(this.computedLocale,t)},numberFormatter:function(){var t=new Intl.NumberFormat(this.computedLocale,{style:"decimal",minimumIntegerDigits:2,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return t.format},formattedTimeString:function(){var t=this.modelHours,e=this.modelMinutes,n=this.showSeconds&&this.modelSeconds||0;return this.computedHMS?this.timeFormatter(rc(Date.UTC(0,0,1,t,e,n))):this.labelNoTimeSelected||" "},spinScopedSlots:function(){var t=this.$createElement;return{increment:function(e){var n=e.hasFocus;return t(Fs,{props:{scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})},decrement:function(e){var n=e.hasFocus;return t(Fs,{props:{flipV:!0,scale:n?1.5:1.25},attrs:{"aria-hidden":"true"}})}}}},watch:{value:function(t,e){if(t!==e&&!Na(tm(t),tm(this.computedHMS))){var n=tm(t),r=n.hours,i=n.minutes,o=n.seconds,a=n.ampm;this.modelHours=r,this.modelMinutes=i,this.modelSeconds=o,this.modelAmpm=a}},computedHMS:function(t,e){t!==e&&this.$emit("input",t)},context:function(t,e){Na(t,e)||this.$emit("context",t)},modelAmpm:function(t,e){var n=this;if(t!==e){var r=B(this.modelHours)?0:this.modelHours;this.$nextTick((function(){0===t&&r>11?n.modelHours=r-12:1===t&&r<12&&(n.modelHours=r+12)}))}},modelHours:function(t,e){t!==e&&(this.modelAmpm=t>11?1:0)}},created:function(){var t=this;this.$nextTick((function(){t.$emit("context",t.context)}))},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||oo(this.$refs.spinners[0])},blur:function(){if(!this.disabled){var t=Pi();zi(this.$el,t)&&ao(t)}},formatHours:function(t){var e=this.computedHourCycle;return t=this.is12Hour&&t>12?t-12:t,t=0===t&&"h12"===e?12:0===t&&"h24"===e?24:12===t&&"h11"===e?0:t,this.numberFormatter(t)},formatMinutes:function(t){return this.numberFormatter(t)},formatSeconds:function(t){return this.numberFormatter(t)},formatAmpm:function(t){return 0===t?this.labelAm:1===t?this.labelPm:""},setHours:function(t){this.modelHours=t},setMinutes:function(t){this.modelMinutes=t},setSeconds:function(t){this.modelSeconds=t},setAmpm:function(t){this.modelAmpm=t},onSpinLeftRight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.type,n=t.keyCode;if(!this.disabled&&"keydown"===e&&(n===Ba||n===Da)){Io(t);var r=this.$refs.spinners||[],i=r.map((function(t){return!!t.hasFocus})).indexOf(!0);i+=n===Ba?-1:1,i=i>=r.length?0:i<0?r.length-1:i,oo(r[i])}},setLive:function(t){var e=this;t?this.$nextTick((function(){Ci((function(){e.isLive=!0}))})):this.isLive=!1}},render:function(t){var e=this;if(this.hidden)return t();var n=this.valueId,r=this.computedAriaLabelledby,i=[],o=function(r,o,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=e.safeId("_spinbutton_".concat(o,"_"))||null;return i.push(l),t(v$,{key:o,ref:"spinners",refInFor:!0,class:a,props:V$({id:l,placeholder:"--",vertical:!0,required:!0,disabled:e.disabled,readonly:e.readonly,locale:e.computedLocale,labelIncrement:e.labelIncrement,labelDecrement:e.labelDecrement,wrap:!0,ariaControls:n,min:0},s),scopedSlots:e.spinScopedSlots,on:{change:r}})},a=function(){return t("div",{staticClass:"d-flex flex-column",class:{"text-muted":e.disabled||e.readonly},attrs:{"aria-hidden":"true"}},[t(Ns,{props:{shiftV:4,scale:.5}}),t(Ns,{props:{shiftV:-4,scale:.5}})])},s=[];s.push(o(this.setHours,"hours","b-time-hours",{value:this.modelHours,max:23,step:1,formatterFn:this.formatHours,ariaLabel:this.labelHours})),s.push(a()),s.push(o(this.setMinutes,"minutes","b-time-minutes",{value:this.modelMinutes,max:59,step:this.minutesStep||1,formatterFn:this.formatMinutes,ariaLabel:this.labelMinutes})),this.showSeconds&&(s.push(a()),s.push(o(this.setSeconds,"seconds","b-time-seconds",{value:this.modelSeconds,max:59,step:this.secondsStep||1,formatterFn:this.formatSeconds,ariaLabel:this.labelSeconds}))),this.is12Hour&&s.push(o(this.setAmpm,"ampm","b-time-ampm",{value:this.modelAmpm,max:1,formatterFn:this.formatAmpm,ariaLabel:this.labelAmpm,required:!1})),s=t("div",{staticClass:"d-flex align-items-center justify-content-center mx-auto",attrs:{role:"group",tabindex:this.disabled||this.readonly?null:"-1","aria-labelledby":r},on:{keydown:this.onSpinLeftRight,click:function(t){t.target===t.currentTarget&&e.focus()}}},s);var l=t("output",{staticClass:"form-control form-control-sm text-center",class:{disabled:this.disabled||this.readonly},attrs:{id:n,role:"status",for:i.filter(Xt).join(" ")||null,tabindex:this.disabled?null:"-1","aria-live":this.isLive?"polite":"off","aria-atomic":"true"},on:{click:this.focus,focus:this.focus}},[t("bdi",this.formattedTimeString),this.computedHMS?t("span",{staticClass:"sr-only"}," (".concat(this.labelSelected,") ")):""]),c=t("header",{staticClass:"b-time-header",class:{"sr-only":this.hideHeader}},[l]),u=this.normalizeSlot();return u=u?t("footer",{staticClass:"b-time-footer"},u):t(),t("div",{staticClass:"b-time d-inline-flex flex-column text-center",attrs:{role:"group",lang:this.computedLang||null,"aria-labelledby":r||null,"aria-disabled":this.disabled?"true":null,"aria-readonly":this.readonly&&!this.disabled?"true":null}},[c,s,u])}});function rm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function im(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rm(Object(n),!0).forEach((function(e){om(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function om(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var am=function(t){return Zr(fn,t)||Zr($r,t)||Zr(sn,t)},sm={props:im({value:{type:String,default:""},resetValue:{type:String,default:""},placeholder:{type:String},size:{type:String},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},name:{type:String},form:{type:String},state:{type:Boolean,default:null},hour12:{type:Boolean,default:null},locale:{type:[String,Array]},showSeconds:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},secondsStep:{type:[Number,String],default:1},minutesStep:{type:[Number,String],default:1},buttonOnly:{type:Boolean,default:!1},buttonVariant:{type:String,default:"secondary"},nowButton:{type:Boolean,default:!1},labelNowButton:{type:String,default:function(){return Zr(fn,"labelNowButton")}},nowButtonVariant:{type:String,default:"outline-primary"},resetButton:{type:Boolean,default:!1},labelResetButton:{type:String,default:function(){return Zr(fn,"labelResetButton")}},resetButtonVariant:{type:String,default:"outline-danger"},noCloseButton:{type:Boolean,default:!1},labelCloseButton:{type:String,default:function(){return Zr(fn,"labelCloseButton")}},closeButtonVariant:{type:String,default:"outline-secondary"},labelSelected:{type:String,default:function(){return am("labelSelected")}},labelNoTimeSelected:{type:String,default:function(){return am("labelNoTimeSelected")}},labelHours:{type:String,default:function(){return am("labelHours")}},labelMinutes:{type:String,default:function(){return am("labelMinutes")}},labelSeconds:{type:String,default:function(){return am("labelSeconds")}},labelAmpm:{type:String,default:function(){return am("labelAmpm")}},labelAm:{type:String,default:function(){return am("labelAm")}},labelPm:{type:String,default:function(){return am("labelPm")}},labelIncrement:{type:String,default:function(){return am("labelIncrement")}},labelDecrement:{type:String,default:function(){return am("labelDecrement")}},menuClass:{type:[String,Array,Object]}},Uh)},lm=c.extend({name:fn,mixins:[bc,sm],model:{prop:"value",event:"input"},data:function(){return{localHMS:this.value||"",localLocale:null,isRTL:!1,formattedValue:"",isVisible:!1}},computed:{computedLang:function(){return(this.localLocale||"").replace(/-u-.*$/i,"")||null},timeProps:function(){var t=this;return{hidden:!t.isVisible,value:t.localHMS,readonly:t.readonly,disabled:t.disabled,locale:t.locale,hour12:t.hour12,hideHeader:t.hideHeader,showSeconds:t.showSeconds,secondsStep:t.secondsStep,minutesStep:t.minutesStep,labelNoTimeSelected:t.labelNoTimeSelected,labelSelected:t.labelSelected,labelHours:t.labelHours,labelMinutes:t.labelMinutes,labelSeconds:t.labelSeconds,labelAmpm:t.labelAmpm,labelAm:t.labelAm,labelPm:t.labelPm,labelIncrement:t.labelIncrement,labelDecrement:t.labelDecrement}}},watch:{value:function(t){this.localHMS=t||""},localHMS:function(t){this.isVisible&&this.$emit("input",t||"")}},methods:{focus:function(){this.disabled||oo(this.$refs.control)},blur:function(){this.disabled||ao(this.$refs.control)},setAndClose:function(t){var e=this;this.localHMS=t,this.$nextTick((function(){e.$refs.control.hide(!0)}))},onInput:function(t){this.localHMS!==t&&(this.localHMS=t)},onContext:function(t){var e=t.isRTL,n=t.locale,r=t.value,i=t.formatted;this.isRTL=e,this.localLocale=n,this.formattedValue=i,this.localHMS=r||"",this.$emit("context",t)},onNowButton:function(){var t=new Date,e=t.getHours(),n=t.getMinutes(),r=this.showSeconds?t.getSeconds():0,i=[e,n,r].map((function(t){return"00".concat(t||"").slice(-2)})).join(":");this.setAndClose(i)},onResetButton:function(){this.setAndClose(this.resetValue)},onCloseButton:function(){this.$refs.control.hide(!0)},onShow:function(){this.isVisible=!0},onShown:function(){var t=this;this.$nextTick((function(){oo(t.$refs.time),t.$emit("shown")}))},onHidden:function(){this.isVisible=!1,this.$emit("hidden")},defaultButtonFn:function(t){var e=t.isHovered,n=t.hasFocus;return this.$createElement(e||n?Hs:zs,{attrs:{"aria-hidden":"true"}})}},render:function(t){var e=this.localHMS,n=this.disabled,r=this.readonly,i=L(this.placeholder)?this.labelNoTimeSelected:this.placeholder,o=[];if(this.nowButton){var a=this.labelNowButton;o.push(t(_s,{key:"now-btn",props:{size:"sm",disabled:n||r,variant:this.nowButtonVariant},attrs:{"aria-label":a||null},on:{click:this.onNowButton}},a))}if(this.resetButton){o.length>0&&o.push(t("span"," "));var s=this.labelResetButton;o.push(t(_s,{key:"reset-btn",props:{size:"sm",disabled:n||r,variant:this.resetButtonVariant},attrs:{"aria-label":s||null},on:{click:this.onResetButton}},s))}if(!this.noCloseButton){o.length>0&&o.push(t("span"," "));var l=this.labelCloseButton;o.push(t(_s,{key:"close-btn",props:{size:"sm",disabled:n,variant:this.closeButtonVariant},attrs:{"aria-label":l||null},on:{click:this.onCloseButton}},l))}o.length>0&&(o=[t("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":o.length>1,"justify-content-end":o.length<2}},o)]);var c=t(nm,{ref:"time",staticClass:"b-form-time-control",props:this.timeProps,on:{input:this.onInput,context:this.onContext}},o);return t(qh,{ref:"control",staticClass:"b-form-timepicker",props:im(im({},this.$props),{},{id:this.safeId(),rtl:this.isRTL,lang:this.computedLang,value:e||"",formattedValue:e?this.formattedValue:"",placeholder:i||""}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:{"button-content":this.$scopedSlots["button-content"]||this.defaultButtonFn}},[c])}}),cm=Nr({components:{BFormTimepicker:lm,BTimepicker:lm}}),um=Nr({components:{BImg:bu,BImgLazy:ku}}),dm={tag:{type:String,default:"div"}},fm=c.extend({name:wn,functional:!0,props:dm,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{staticClass:"input-group-text"}),i)}});function hm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hm(Object(n),!0).forEach((function(e){$m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mm={id:{type:String,default:null},tag:{type:String,default:"div"},isText:{type:Boolean,default:!1}},gm=c.extend({name:yn,functional:!0,props:pm(pm({},mm),{},{append:{type:Boolean,default:!1}}),render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{class:{"input-group-append":n.append,"input-group-prepend":!n.append},attrs:{id:n.id}}),n.isText?[t(fm,i)]:i)}});function vm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ym(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vm(Object(n),!0).forEach((function(e){_m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bm=c.extend({name:_n,functional:!0,props:mm,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(gm,l(r,{props:ym(ym({},n),{},{append:!0})}),i)}});function wm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wm(Object(n),!0).forEach((function(e){km(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function km(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sm=c.extend({name:bn,functional:!0,props:mm,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(gm,l(r,{props:xm(xm({},n),{},{append:!1})}),i)}});function Om(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cm={id:{type:String},size:{type:String,default:function(){return Zr(vn,"size")}},prepend:{type:String},prependHtml:{type:String},append:{type:String},appendHtml:{type:String},tag:{type:String,default:"div"}},Am=c.extend({name:vn,functional:!0,props:Cm,render:function(t,e){var n=e.props,r=e.data,i=e.slots,o=e.scopedSlots,a=n.prepend,s=n.prependHtml,c=n.append,u=n.appendHtml,d=n.size,f=o||{},h=i(),p={},$=t(),m=Co(ko,f,h);(m||a||s)&&($=t(Sm,[m?Ao(ko,p,f,h):t(fm,{domProps:bl(s,a)})]));var g=t(),v=Co($o,f,h);return(v||c||u)&&(g=t(bm,[v?Ao($o,p,f,h):t(fm,{domProps:bl(u,c)})])),t(n.tag,l(r,{staticClass:"input-group",class:Om({},"input-group-".concat(d),d),attrs:{id:n.id||null,role:"group"}}),[$,Ao(go,p,f,h),g])}}),Em=Nr({components:{BInputGroup:Am,BInputGroupAddon:gm,BInputGroupPrepend:Sm,BInputGroupAppend:bm,BInputGroupText:fm}});function Tm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pm={tag:{type:String,default:"div"},fluid:{type:[Boolean,String],default:!1}},Bm=c.extend({name:Be,functional:!0,props:Pm,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{class:Tm({container:!(n.fluid||""===n.fluid),"container-fluid":!0===n.fluid||""===n.fluid},"container-".concat(n.fluid),n.fluid&&!0!==n.fluid)}),i)}});function Lm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Im={fluid:{type:Boolean,default:!1},containerFluid:{type:[Boolean,String],default:!1},header:{type:String},headerHtml:{type:String},headerTag:{type:String,default:"h1"},headerLevel:{type:[Number,String],default:"3"},lead:{type:String},leadHtml:{type:String},leadTag:{type:String,default:"p"},tag:{type:String,default:"div"},bgVariant:{type:String,default:function(){return Zr(xn,"bgVariant")}},borderVariant:{type:String,default:function(){return Zr(xn,"borderVariant")}},textVariant:{type:String,default:function(){return Zr(xn,"textVariant")}}},Dm=c.extend({name:xn,functional:!0,props:Im,render:function(t,e){var n,r=e.props,i=e.data,o=e.slots,a=e.scopedSlots,s=r.header,c=r.headerHtml,u=r.lead,d=r.leadHtml,f=r.textVariant,h=r.bgVariant,p=r.borderVariant,$=a||{},m=o(),g={},v=t(),y=Co(bo,$,m);if(y||s||c){var _=r.headerLevel;v=t(r.headerTag,{class:Lm({},"display-".concat(_),_),domProps:y?{}:bl(c,s)},Ao(bo,g,$,m))}var b=t(),w=Co(xo,$,m);(w||u||d)&&(b=t(r.leadTag,{staticClass:"lead",domProps:w?{}:bl(d,u)},Ao(xo,g,$,m)));var x=[v,b,Ao(go,g,$,m)];return r.fluid&&(x=[t(Bm,{props:{fluid:r.containerFluid}},x)]),t(r.tag,l(i,{staticClass:"jumbotron",class:(n={"jumbotron-fluid":r.fluid},Lm(n,"text-".concat(f),f),Lm(n,"bg-".concat(h),h),Lm(n,"border-".concat(p),p),Lm(n,"border",p),n)}),x)}}),Rm=Nr({components:{BJumbotron:Dm}});function jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jm(Object(n),!0).forEach((function(e){Fm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Nm=["start","end","center"],zm=function(){return{type:[String,Number],default:null}},Hm=Gr((function(t,e){return e=yi(gi(e)),e?_i(["row-cols",t,e].filter(Xt).join("-")):null})),Vm=Gr((function(t){return _i(t.replace("cols",""))})),Um=[],qm=function(){var t=ei(),e=t.reduce((function(t,e){return t[sa(e,"cols")]=zm(),t}),Z(null));return Um=nt(e),Mm({tag:{type:String,default:"div"},noGutters:{type:Boolean,default:!1},alignV:{type:String,default:null,validator:function(t){return ri(ii(Nm,"baseline","stretch"),t)}},alignH:{type:String,default:null,validator:function(t){return ri(ii(Nm,"between","around"),t)}},alignContent:{type:String,default:null,validator:function(t){return ri(ii(Nm,"between","around","stretch"),t)}}},e)},Wm={name:Xn,functional:!0,get props(){return delete this.props,this.props=qm(),this.props},render:function(t,e){var n,r=e.props,i=e.data,o=e.children,a=[];return Um.forEach((function(t){var e=Hm(Vm(t),r[t]);e&&a.push(e)})),a.push((n={"no-gutters":r.noGutters},Fm(n,"align-items-".concat(r.alignV),r.alignV),Fm(n,"justify-content-".concat(r.alignH),r.alignH),Fm(n,"align-content-".concat(r.alignContent),r.alignContent),n)),t(r.tag,l(i,{staticClass:"row",class:a}),o)}},Gm=Nr({components:{BContainer:Bm,BRow:Wm,BCol:wp,BFormRow:vh}}),Ym=Nr({components:{BLink:os}});function Km(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xm={tag:{type:String,default:"div"},flush:{type:Boolean,default:!1},horizontal:{type:[Boolean,String],default:!1}},Zm=c.extend({name:Sn,functional:!0,props:Xm,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=""===n.horizontal||n.horizontal;o=!n.flush&&o;var a={staticClass:"list-group",class:Km({"list-group-flush":n.flush,"list-group-horizontal":!0===o},"list-group-horizontal-".concat(o),R(o))};return t(n.tag,l(r,a),i)}});function Jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jm(Object(n),!0).forEach((function(e){tg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var eg=["a","router-link","button","b-link"],ng=st(is,["event","routerTag"]);delete ng.href.default,delete ng.to.default;var rg=Qm(Qm({},ng),{},{tag:{type:String,default:"div"},action:{type:Boolean,default:null},button:{type:Boolean,default:null},variant:{type:String,default:function(){return Zr(On,"variant")}}}),ig=c.extend({name:On,functional:!0,props:rg,render:function(t,e){var n,r=e.props,i=e.data,o=e.children,a=r.button,s=r.variant,c=r.active,u=r.disabled,d=_a(r),f=a?"button":d?os:r.tag,h=!!(r.action||d||a||ri(eg,r.tag)),p={},$={};return Bi(f,"button")?(i.attrs&&i.attrs.type||(p.type="button"),r.disabled&&(p.disabled=!0)):$=ca(ng,r),t(f,l(i,{attrs:p,props:$,staticClass:"list-group-item",class:(n={},tg(n,"list-group-item-".concat(s),s),tg(n,"list-group-item-action",h),tg(n,"active",c),tg(n,"disabled",u),n)}),o)}}),og=Nr({components:{BListGroup:Zm,BListGroupItem:ig}}),ag={tag:{type:String,default:"div"}},sg=c.extend({name:En,functional:!0,props:ag,render:function(t,e){var n=e.props,r=e.data,i=e.children;return t(n.tag,l(r,{staticClass:"media-body"}),i)}});function lg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cg={tag:{type:String,default:"div"},verticalAlign:{type:String,default:"top"}},ug=c.extend({name:An,functional:!0,props:cg,render:function(t,e){var n=e.props,r=e.data,i=e.children,o="top"===n.verticalAlign?"start":"bottom"===n.verticalAlign?"end":n.verticalAlign;return t(n.tag,l(r,{staticClass:"d-flex",class:lg({},"align-self-".concat(o),o)}),i)}}),dg={tag:{type:String,default:"div"},rightAlign:{type:Boolean,default:!1},verticalAlign:{type:String,default:"top"},noBody:{type:Boolean,default:!1}},fg=c.extend({name:Cn,functional:!0,props:dg,render:function(t,e){var n=e.props,r=e.data,i=e.slots,o=e.scopedSlots,a=e.children,s=n.noBody?a:[];if(!n.noBody){var c=i(),u=o||{},d=Ao("aside",{},u,c),f=Ao(go,{},u,c);d&&!n.rightAlign&&s.push(t(ug,{staticClass:"mr-3",props:{verticalAlign:n.verticalAlign}},d)),s.push(t(sg,f)),d&&n.rightAlign&&s.push(t(ug,{staticClass:"ml-3",props:{verticalAlign:n.verticalAlign}},d))}return t(n.tag,l(r,{staticClass:"media"}),s)}}),hg=Nr({components:{BMedia:fg,BMediaAside:ug,BMediaBody:sg}}),pg=c.extend({abstract:!0,name:Sr,props:{nodes:{type:[Array,Function]}},data:function(t){return{updatedNodes:t.nodes}},destroyed:function(){Ei(this.$el)},render:function(t){var e=I(this.updatedNodes)?this.updatedNodes({}):this.updatedNodes;return e=ii(e).filter(Boolean),e&&e.length>0&&!e[0].text?e[0]:t()}}),$g=c.extend({name:kr,mixins:[Eo],props:{disabled:{type:Boolean,default:!1},container:{type:[String,S],default:"body"},tag:{type:String,default:"div"}},watch:{disabled:{immediate:!0,handler:function(t){t?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(u["j"]){var t=this.container;return R(t)?Mi(t):t}return null},mountTarget:function(){if(!this.$_target){var t=this.getContainer();if(t){var e=document.createElement("div");t.appendChild(e),this.$_target=new pg({el:e,parent:this,propsData:{nodes:ii(this.normalizeSlot())}})}}},updateTarget:function(){if(u["j"]&&this.$_target){var t=this.$scopedSlots.default;this.disabled||(t&&this.$_defaultFn!==t?this.$_target.updatedNodes=t:t||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=t}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(t){if(this.disabled){var e=ii(this.normalizeSlot()).filter(Xt);if(e.length>0&&!e[0].text)return e[0]}return t()}}),mg="$_bv_documentHandlers_",gg={created:function(){var t=this;u["j"]&&(this[mg]={},this.$once("hook:beforeDestroy",(function(){var e=t[mg]||{};delete t[mg],nt(e).forEach((function(t){var n=e[t]||[];n.forEach((function(e){return Bo(document,t,e,ju)}))}))})))},methods:{listenDocument:function(t,e,n){t?this.listenOnDocument(e,n):this.listenOffDocument(e,n)},listenOnDocument:function(t,e){this[mg]&&R(t)&&I(e)&&(this[mg][t]=this[mg][t]||[],ri(this[mg][t],e)||(this[mg][t].push(e),Po(document,t,e,ju)))},listenOffDocument:function(t,e){this[mg]&&R(t)&&I(e)&&(Bo(document,t,e,ju),this[mg][t]=(this[mg][t]||[]).filter((function(t){return t!==e})))}}},vg="$_bv_windowHandlers_",yg={beforeCreate:function(){this[vg]={}},beforeDestroy:function(){if(u["j"]){var t=this[vg];delete this[vg],nt(t).forEach((function(e){var n=t[e]||[];n.forEach((function(t){return Bo(window,e,t,ju)}))}))}},methods:{listenWindow:function(t,e,n){t?this.listenOnWindow(e,n):this.listenOffWindow(e,n)},listenOnWindow:function(t,e){u["j"]&&this[vg]&&R(t)&&I(e)&&(this[vg][t]=this[vg][t]||[],ri(this[vg][t],e)||(this[vg][t].push(e),Po(window,t,e,ju)))},listenOffWindow:function(t,e){u["j"]&&this[vg]&&R(t)&&I(e)&&(Bo(window,t,e,ju),this[vg][t]=(this[vg][t]||[]).filter((function(t){return t!==e})))}}},_g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t&&t.$options._scopeId||e},bg=_g;function wg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xg={computed:{scopedStyleAttrs:function(){var t=bg(this.$parent);return t?wg({},t,""):{}}}},kg=1040,Sg={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},Og=c.extend({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(t,e){u["j"]&&(this.getScrollbarWidth(),t>0&&0===e?(this.checkScrollbar(),this.setScrollbar(),Vi(document.body,"modal-open")):0===t&&e>0&&(this.resetScrollbar(),Ui(document.body,"modal-open")),Wi(document.body,"data-modal-open-count",String(t)))},modals:function(t){var e=this;this.checkScrollbar(),Ci((function(){e.updateModals(t||[])}))}},methods:{registerModal:function(t){var e=this;t&&-1===this.modals.indexOf(t)&&(this.modals.push(t),t.$once("hook:beforeDestroy",(function(){e.unregisterModal(t)})))},unregisterModal:function(t){var e=this.modals.indexOf(t);e>-1&&(this.modals.splice(e,1),t._isBeingDestroyed||t._isDestroyed||this.resetModal(t))},getBaseZIndex:function(){if(B(this.baseZIndex)&&u["j"]){var t=document.createElement("div");Vi(t,"modal-backdrop"),Vi(t,"d-none"),Xi(t,"display","none"),document.body.appendChild(t),this.baseZIndex=li(to(t).zIndex,kg),document.body.removeChild(t)}return this.baseZIndex||kg},getScrollbarWidth:function(){if(B(this.scrollbarWidth)&&u["j"]){var t=document.createElement("div");Vi(t,"modal-scrollbar-measure"),document.body.appendChild(t),this.scrollbarWidth=Qi(t).width-t.clientWidth,document.body.removeChild(t)}return this.scrollbarWidth||0},updateModals:function(t){var e=this,n=this.getBaseZIndex(),r=this.getScrollbarWidth();t.forEach((function(t,i){t.zIndex=n+i,t.scrollbarWidth=r,t.isTop=i===e.modals.length-1,t.isBodyOverflowing=e.isBodyOverflowing}))},resetModal:function(t){t&&(t.zIndex=this.getBaseZIndex(),t.isTop=!0,t.isBodyOverflowing=!1)},checkScrollbar:function(){var t=Qi(document.body),e=t.left,n=t.right;this.isBodyOverflowing=e+n<window.innerWidth},setScrollbar:function(){var t=document.body;if(t._paddingChangedForModal=t._paddingChangedForModal||[],t._marginChangedForModal=t._marginChangedForModal||[],this.isBodyOverflowing){var e=this.scrollbarWidth;ji(Sg.FIXED_CONTENT).forEach((function(n){var r=Ji(n,"paddingRight")||"";Wi(n,"data-padding-right",r),Xi(n,"paddingRight","".concat(ci(to(n).paddingRight,0)+e,"px")),t._paddingChangedForModal.push(n)})),ji(Sg.STICKY_CONTENT).forEach((function(n){var r=Ji(n,"marginRight")||"";Wi(n,"data-margin-right",r),Xi(n,"marginRight","".concat(ci(to(n).marginRight,0)-e,"px")),t._marginChangedForModal.push(n)})),ji(Sg.NAVBAR_TOGGLER).forEach((function(n){var r=Ji(n,"marginRight")||"";Wi(n,"data-margin-right",r),Xi(n,"marginRight","".concat(ci(to(n).marginRight,0)+e,"px")),t._marginChangedForModal.push(n)}));var n=Ji(t,"paddingRight")||"";Wi(t,"data-padding-right",n),Xi(t,"paddingRight","".concat(ci(to(t).paddingRight,0)+e,"px"))}},resetScrollbar:function(){var t=document.body;t._paddingChangedForModal&&t._paddingChangedForModal.forEach((function(t){Ki(t,"data-padding-right")&&(Xi(t,"paddingRight",Yi(t,"data-padding-right")||""),Gi(t,"data-padding-right"))})),t._marginChangedForModal&&t._marginChangedForModal.forEach((function(t){Ki(t,"data-margin-right")&&(Xi(t,"marginRight",Yi(t,"data-margin-right")||""),Gi(t,"data-margin-right"))})),t._paddingChangedForModal=null,t._marginChangedForModal=null,Ki(t,"data-padding-right")&&(Xi(t,"paddingRight",Yi(t,"data-padding-right")||""),Gi(t,"data-padding-right"))}}}),Cg=new Og;function Ag(t){return Ag="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ag(t)}function Eg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Eg(Object(n),!0).forEach((function(e){Pg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lg(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ig(t,e,n){return e&&Lg(t.prototype,e),n&&Lg(t,n),t}function Dg(t,e,n){return Dg="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Rg(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},Dg(t,e,n||t)}function Rg(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=Vg(t),null===t)break;return t}function jg(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mg(t,e)}function Mg(t,e){return Mg=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Mg(t,e)}function Fg(t){var e=Hg();return function(){var n,r=Vg(t);if(e){var i=Vg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ng(this,n)}}function Ng(t,e){return!e||"object"!==Ag(e)&&"function"!==typeof e?zg(t):e}function zg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hg(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Vg(t){return Vg=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Vg(t)}var Ug=function(t){jg(n,t);var e=Fg(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Bg(this,n),r=e.call(this,t,i),J(zg(r),{trigger:ct()}),r}return Ig(n,null,[{key:"Defaults",get:function(){return Tg(Tg({},Dg(Vg(n),"Defaults",this)),{},{trigger:null})}}]),n}(rf);function qg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qg(Object(n),!0).forEach((function(e){Gg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yg={subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["style","class"]},Kg={size:{type:String,default:function(){return Zr(Tn,"size")}},centered:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},buttonSize:{type:String},noStacking:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},noEnforceFocus:{type:Boolean,default:!1},ignoreEnforceFocusSelector:{type:[Array,String],default:""},title:{type:String,default:""},titleHtml:{type:String},titleTag:{type:String,default:function(){return Zr(Tn,"titleTag")}},titleClass:{type:[String,Array,Object]},titleSrOnly:{type:Boolean,default:!1},ariaLabel:{type:String},headerBgVariant:{type:String,default:function(){return Zr(Tn,"headerBgVariant")}},headerBorderVariant:{type:String,default:function(){return Zr(Tn,"headerBorderVariant")}},headerTextVariant:{type:String,default:function(){return Zr(Tn,"headerTextVariant")}},headerCloseVariant:{type:String,default:function(){return Zr(Tn,"headerCloseVariant")}},headerClass:{type:[String,Array,Object]},bodyBgVariant:{type:String,default:function(){return Zr(Tn,"bodyBgVariant")}},bodyTextVariant:{type:String,default:function(){return Zr(Tn,"bodyTextVariant")}},modalClass:{type:[String,Array,Object]},dialogClass:{type:[String,Array,Object]},contentClass:{type:[String,Array,Object]},bodyClass:{type:[String,Array,Object]},footerBgVariant:{type:String,default:function(){return Zr(Tn,"footerBgVariant")}},footerBorderVariant:{type:String,default:function(){return Zr(Tn,"footerBorderVariant")}},footerTextVariant:{type:String,default:function(){return Zr(Tn,"footerTextVariant")}},footerClass:{type:[String,Array,Object]},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideHeaderClose:{type:Boolean,default:!1},hideBackdrop:{type:Boolean,default:!1},okOnly:{type:Boolean,default:!1},okDisabled:{type:Boolean,default:!1},cancelDisabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},returnFocus:{type:[S,String,Object],default:null},headerCloseContent:{type:String,default:function(){return Zr(Tn,"headerCloseContent")}},headerCloseLabel:{type:String,default:function(){return Zr(Tn,"headerCloseLabel")}},cancelTitle:{type:String,default:function(){return Zr(Tn,"cancelTitle")}},cancelTitleHtml:{type:String},okTitle:{type:String,default:function(){return Zr(Tn,"okTitle")}},okTitleHtml:{type:String},cancelVariant:{type:String,default:function(){return Zr(Tn,"cancelVariant")}},okVariant:{type:String,default:function(){return Zr(Tn,"okVariant")}},lazy:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},static:{type:Boolean,default:!1},autoFocusButton:{type:String,default:null,validator:function(t){return L(t)||ri(["ok","cancel","close"],t)}}},Xg=c.extend({name:Tn,mixins:[qa,bc,gg,hd,yg,Eo,xg],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:Kg,data:function(){return{isHidden:!0,isVisible:!1,isTransitioning:!1,isShow:!1,isBlock:!1,isOpening:!1,isClosing:!1,ignoreBackdropClick:!1,isModalOverflowing:!1,return_focus:this.returnFocus||null,scrollbarWidth:0,zIndex:Cg.getBaseZIndex(),isTop:!0,isBodyOverflowing:!1}},computed:{modalId:function(){return this.safeId()},modalOuterId:function(){return this.safeId("__BV_modal_outer_")},modalHeaderId:function(){return this.safeId("__BV_modal_header_")},modalBodyId:function(){return this.safeId("__BV_modal_body_")},modalTitleId:function(){return this.safeId("__BV_modal_title_")},modalContentId:function(){return this.safeId("__BV_modal_content_")},modalFooterId:function(){return this.safeId("__BV_modal_footer_")},modalBackdropId:function(){return this.safeId("__BV_modal_backdrop_")},modalClasses:function(){return[{fade:!this.noFade,show:this.isShow},this.modalClass]},modalStyles:function(){var t="".concat(this.scrollbarWidth,"px");return{paddingLeft:!this.isBodyOverflowing&&this.isModalOverflowing?t:"",paddingRight:this.isBodyOverflowing&&!this.isModalOverflowing?t:"",display:this.isBlock?"block":"none"}},dialogClasses:function(){var t;return[(t={},Gg(t,"modal-".concat(this.size),this.size),Gg(t,"modal-dialog-centered",this.centered),Gg(t,"modal-dialog-scrollable",this.scrollable),t),this.dialogClass]},headerClasses:function(){var t;return[(t={},Gg(t,"bg-".concat(this.headerBgVariant),this.headerBgVariant),Gg(t,"text-".concat(this.headerTextVariant),this.headerTextVariant),Gg(t,"border-".concat(this.headerBorderVariant),this.headerBorderVariant),t),this.headerClass]},titleClasses:function(){return[{"sr-only":this.titleSrOnly},this.titleClass]},bodyClasses:function(){var t;return[(t={},Gg(t,"bg-".concat(this.bodyBgVariant),this.bodyBgVariant),Gg(t,"text-".concat(this.bodyTextVariant),this.bodyTextVariant),t),this.bodyClass]},footerClasses:function(){var t;return[(t={},Gg(t,"bg-".concat(this.footerBgVariant),this.footerBgVariant),Gg(t,"text-".concat(this.footerTextVariant),this.footerTextVariant),Gg(t,"border-".concat(this.footerBorderVariant),this.footerBorderVariant),t),this.footerClass]},modalOuterStyle:function(){return{position:"absolute",zIndex:this.zIndex}},slotScope:function(){return{ok:this.onOk,cancel:this.onCancel,close:this.onClose,hide:this.hide,visible:this.isVisible}},computeIgnoreEnforceFocusSelector:function(){return ii(this.ignoreEnforceFocusSelector).filter(Xt).join(",").trim()},computedAttrs:function(){var t=this.static?{}:this.scopedStyleAttrs;return Wg(Wg(Wg({},t),this.bvAttrs),{},{id:this.modalOuterId})},computedModalAttrs:function(){var t=this.isVisible,e=this.ariaLabel;return{id:this.modalId,role:"dialog","aria-hidden":t?null:"true","aria-modal":t?"true":null,"aria-label":e,"aria-labelledby":this.hideHeader||e||!(this.hasNormalizedSlot("modal-title")||this.titleHtml||this.title)?null:this.modalTitleId,"aria-describedby":this.modalBodyId}}},watch:{visible:function(t,e){t!==e&&this[t?"show":"hide"]()}},created:function(){this.$_observer=null},mounted:function(){this.zIndex=Cg.getBaseZIndex(),this.listenOnRoot("bv::show::modal",this.showHandler),this.listenOnRoot("bv::hide::modal",this.hideHandler),this.listenOnRoot("bv::toggle::modal",this.toggleHandler),this.listenOnRoot("bv::modal::show",this.modalListener),!0===this.visible&&this.$nextTick(this.show)},beforeDestroy:function(){this.setObserver(!1),this.isVisible&&(this.isVisible=!1,this.isShow=!1,this.isTransitioning=!1)},methods:{setObserver:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t&&(this.$_observer=Uu(this.$refs.content,this.checkModalOverflow.bind(this),Yg))},updateModel:function(t){t!==this.visible&&this.$emit("change",t)},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Ug(t,Wg(Wg({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},e),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!this.isVisible&&!this.isOpening)if(this.isClosing)this.$once("hidden",this.show);else{this.isOpening=!0,this.return_focus=this.return_focus||this.getActiveElement();var t=this.buildEvent("show",{cancelable:!0});if(this.emitEvent(t),t.defaultPrevented||this.isVisible)return this.isOpening=!1,void this.updateModel(!1);this.doShow()}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.isVisible&&!this.isClosing){this.isClosing=!0;var e=this.buildEvent("hide",{cancelable:"FORCE"!==t,trigger:t||null});if("ok"===t?this.$emit("ok",e):"cancel"===t?this.$emit("cancel",e):"headerclose"===t&&this.$emit("close",e),this.emitEvent(e),e.defaultPrevented||!this.isVisible)return this.isClosing=!1,void this.updateModel(!0);this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(t){t&&(this.return_focus=t),this.isVisible?this.hide("toggle"):this.show()},getActiveElement:function(){var t=Pi(u["j"]?[document.body]:[]);return t&&t.focus?t:null},doShow:function(){var t=this;Cg.modalsAreOpen&&this.noStacking?this.listenOnRootOnce("bv::modal::hidden",this.doShow):(Cg.registerModal(this),this.isHidden=!1,this.$nextTick((function(){t.isVisible=!0,t.isOpening=!1,t.updateModel(!0),t.$nextTick((function(){t.setObserver(!0)}))})))},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var t=this;this.isBlock=!0,Ci((function(){Ci((function(){t.isShow=!0}))}))},onAfterEnter:function(){var t=this;this.checkModalOverflow(),this.isTransitioning=!1,Ci((function(){t.emitEvent(t.buildEvent("shown")),t.setEnforceFocus(!0),t.$nextTick((function(){t.focusFirst()}))}))},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var t=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick((function(){t.isClosing=!1,Cg.unregisterModal(t),t.returnFocusTo(),t.emitEvent(t.buildEvent("hidden"))}))},emitEvent:function(t){var e=t.type;this.emitOnRoot("bv::modal::".concat(e),t,t.componentId),this.$emit(e,t)},onDialogMousedown:function(){var t=this,e=this.$refs.modal,n=function n(r){Bo(e,"mouseup",n,ju),r.target===e&&(t.ignoreBackdropClick=!0)};Po(e,"mouseup",n,ju)},onClickOut:function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:this.isVisible&&!this.noCloseOnBackdrop&&zi(document.body,t.target)&&(zi(this.$refs.content,t.target)||this.hide("backdrop"))},onOk:function(){this.hide("ok")},onCancel:function(){this.hide("cancel")},onClose:function(){this.hide("headerclose")},onEsc:function(t){t.keyCode===Ta&&this.isVisible&&!this.noCloseOnEsc&&this.hide("esc")},focusHandler:function(t){var e=this.$refs.content,n=t.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!e||document===n||zi(e,n)||this.computeIgnoreEnforceFocusSelector&&Ni(this.computeIgnoreEnforceFocusSelector,n,!0))){var r=io(this.$refs.content),i=this.$refs,o=i.bottomTrap,a=i.topTrap;if(o&&n===o){if(oo(r[0]))return}else if(a&&n===a&&oo(r[r.length-1]))return;oo(e,{preventScroll:!0})}},setEnforceFocus:function(t){this.listenDocument(t,"focusin",this.focusHandler)},setResizeEvent:function(t){this.listenWindow(t,"resize",this.checkModalOverflow),this.listenWindow(t,"orientationchange",this.checkModalOverflow)},showHandler:function(t,e){t===this.modalId&&(this.return_focus=e||this.getActiveElement(),this.show())},hideHandler:function(t){t===this.modalId&&this.hide("event")},toggleHandler:function(t,e){t===this.modalId&&this.toggle(e)},modalListener:function(t){this.noStacking&&t.vueTarget!==this&&this.hide()},focusFirst:function(){var t=this;u["j"]&&Ci((function(){var e=t.$refs.modal,n=t.$refs.content,r=t.getActiveElement();if(e&&n&&(!r||!zi(n,r))){var i=t.$refs["ok-button"],o=t.$refs["cancel-button"],a=t.$refs["close-button"],s=t.autoFocusButton,l="ok"===s&&i?i.$el||i:"cancel"===s&&o?o.$el||o:"close"===s&&a?a.$el||a:n;oo(l),l===n&&t.$nextTick((function(){e.scrollTop=0}))}}))},returnFocusTo:function(){var t=this.returnFocus||this.return_focus||null;this.return_focus=null,this.$nextTick((function(){t=R(t)?Mi(t):t,t&&(t=t.$el||t,oo(t))}))},checkModalOverflow:function(){if(this.isVisible){var t=this.$refs.modal;this.isModalOverflowing=t.scrollHeight>document.documentElement.clientHeight}},makeModal:function(t){var e=t();if(!this.hideHeader){var n=this.normalizeSlot("modal-header",this.slotScope);if(!n){var r=t();this.hideHeaderClose||(r=t(jo,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot("modal-header-close")])),n=[t(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot("modal-title")?{}:bl(this.titleHtml,this.title)},this.normalizeSlot("modal-title",this.slotScope)),r]}e=t("header",{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[n])}var i=t("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot(go,this.slotScope)),o=t();if(!this.hideFooter){var a=this.normalizeSlot("modal-footer",this.slotScope);if(!a){var s=t();this.okOnly||(s=t(_s,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-cancel")?{}:bl(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot("modal-cancel")));var l=t(_s,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot("modal-ok")?{}:bl(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot("modal-ok"));a=[s,l]}o=t("footer",{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[a])}var c=t("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[e,i,o]),u=t(),d=t();this.isVisible&&!this.noEnforceFocus&&(u=t("span",{ref:"topTrap",attrs:{tabindex:"0"}}),d=t("span",{ref:"bottomTrap",attrs:{tabindex:"0"}}));var f=t("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[u,c,d]),h=t("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[f]);h=t("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[h]);var p=t();return!this.hideBackdrop&&this.isVisible&&(p=t("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot("modal-backdrop"))),p=t(po,{props:{noFade:this.noFade}},[p]),t("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this._uid)},[h,p])}},render:function(t){return this.static?this.lazy&&this.isHidden?t():this.makeModal(t):this.isHidden?t():t($g,[this.makeModal(t)])}}),Zg="bv::show::modal",Jg="__bv_modal_directive__",Qg=function(t){var e=t.modifiers,n=void 0===e?{}:e,r=t.arg,i=t.value;return R(i)?i:R(r)?r:nt(n).reverse()[0]},tv=function(t){return t&&Fi(t,".dropdown-menu > li, li.nav-item")&&Mi("a, button",t)||t},ev=function(t){t&&"BUTTON"!==t.tagName&&(Ki(t,"role")||Wi(t,"role","button"),"A"===t.tagName||Ki(t,"tabindex")||Wi(t,"tabindex","0"))},nv=function(t,e,n){var r=Qg(e),i=tv(t);if(r&&i){var o=function(t){var e=t.currentTarget;if(!Di(e)){var i=t.type,o=t.keyCode;"click"!==i&&("keydown"!==i||o!==Ea&&o!==Ra)||n.context.$root.$emit(Zg,r,e)}};t[Jg]={handler:o,target:r,trigger:i},ev(i),Po(i,"click",o,Ru),"BUTTON"!==i.tagName&&"button"===Yi(i,"role")&&Po(i,"keydown",o,Ru)}},rv=function(t){var e=t[Jg]||{},n=e.trigger,r=e.handler;n&&r&&(Bo(n,"click",r,Ru),Bo(n,"keydown",r,Ru),Bo(t,"click",r,Ru),Bo(t,"keydown",r,Ru)),delete t[Jg]},iv=function(t,e,n){var r=t[Jg]||{},i=Qg(e),o=tv(t);i===r.target&&o===r.trigger||(rv(t,e,n),nv(t,e,n)),ev(o)},ov=function(){},av={inserted:iv,updated:ov,componentUpdated:iv,unbind:rv};function sv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cv(t,e,n){return e&&lv(t.prototype,e),n&&lv(t,n),t}function uv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function dv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uv(Object(n),!0).forEach((function(e){fv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hv(t){return gv(t)||mv(t)||$v(t)||pv()}function pv(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $v(t,e){if(t){if("string"===typeof t)return vv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vv(t,e):void 0}}function mv(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function gv(t){if(Array.isArray(t))return vv(t)}function vv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var yv="$bvModal",_v="_bv__modal",bv=["id"].concat(hv(nt(st(Kg,["busy","lazy","noStacking","static","visible"])))),wv=function(){},xv={msgBoxContent:"default",title:"modal-title",okTitle:"modal-ok",cancelTitle:"modal-cancel"},kv=function(t){return bv.reduce((function(e,n){return P(t[n])||(e[n]=t[n]),e}),{})},Sv=function(t){var e=t.extend({name:Pn,extends:Xg,destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},mounted:function(){var t=this,e=function(){t.$nextTick((function(){Ci((function(){t.$destroy()}))}))};this.$parent.$once("hook:destroyed",e),this.$once("hidden",e),this.$router&&this.$route&&this.$once("hook:beforeDestroy",this.$watch("$router",e)),this.show()}}),n=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wv;if(!ee(yv)&&!ne(yv)){var i=new e({parent:t,propsData:dv(dv(dv({},kv(Zr(Tn)||{})),{},{hideHeaderClose:!0,hideHeader:!(n.title||n.titleHtml)},st(n,nt(xv))),{},{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return nt(xv).forEach((function(t){P(n[t])||(i.$slots[xv[t]]=ii(n[t]))})),new Promise((function(t,e){var n=!1;i.$once("hook:destroyed",(function(){n||e(new Error("BootstrapVue MsgBox destroyed before resolve"))})),i.$on("hide",(function(e){if(!e.defaultPrevented){var i=r(e);e.defaultPrevented||(n=!0,t(i))}}));var o=document.createElement("div");document.body.appendChild(o),i.$mount(o)}))}},r=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(e&&!ne(yv)&&!ee(yv)&&I(i))return n(t,dv(dv({},kv(r)),{},{msgBoxContent:e}),i)},i=function(){function t(e){sv(this,t),X(this,{_vm:e,_root:e.$root}),J(this,{_vm:ct(),_root:ct()})}return cv(t,[{key:"show",value:function(t){if(t&&this._root){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this._root).$emit.apply(e,["bv::show::modal",t].concat(r))}}},{key:"hide",value:function(t){if(t&&this._root){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this._root).$emit.apply(e,["bv::hide::modal",t].concat(r))}}},{key:"msgBoxOk",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=dv(dv({},e),{},{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:t});return r(this._vm,t,n,(function(){return!0}))}},{key:"msgBoxConfirm",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=dv(dv({},e),{},{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return r(this._vm,t,n,(function(t){var e=t.trigger;return"ok"===e||"cancel"!==e&&null}))}}]),t}();t.mixin({beforeCreate:function(){this[_v]=new i(this)}}),rt(t.prototype,yv)||Q(t.prototype,yv,{get:function(){return this&&this[_v]||te('"'.concat(yv,'" must be accessed from a Vue instance "this" context.'),Tn),this[_v]}})},Ov=Nr({plugins:{plugin:Sv}}),Cv=Nr({components:{BModal:Xg},directives:{VBModal:av},plugins:{BVModalPlugin:Ov}});function Av(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ev={tag:{type:String,default:"ul"},fill:{type:Boolean,default:!1},justified:{type:Boolean,default:!1},align:{type:String},tabs:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},small:{type:Boolean,default:!1},cardHeader:{type:Boolean,default:!1}},Tv=function(t){return t="left"===t?"start":"right"===t?"end":t,"justify-content-".concat(t)},Pv=c.extend({name:Bn,functional:!0,props:Ev,render:function(t,e){var n,r=e.props,i=e.data,o=e.children;return t(r.tag,l(i,{staticClass:"nav",class:(n={"nav-tabs":r.tabs,"nav-pills":r.pills&&!r.tabs,"card-header-tabs":!r.vertical&&r.cardHeader&&r.tabs,"card-header-pills":!r.vertical&&r.cardHeader&&r.pills&&!r.tabs,"flex-column":r.vertical,"nav-fill":!r.vertical&&r.fill,"nav-justified":!r.vertical&&r.justified},Av(n,Tv(r.align),!r.vertical&&r.align),Av(n,"small",r.small),n)}),o)}});function Bv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bv(Object(n),!0).forEach((function(e){Iv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Iv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dv=st(is,["event","routerTag"]),Rv=c.extend({name:Mn,functional:!0,props:Lv(Lv({},Dv),{},{linkAttrs:{type:Object,default:function(){}},linkClasses:{type:[String,Object,Array],default:null}}),render:function(t,e){var n=e.props,r=e.data,i=e.listeners,o=e.children;return delete r.on,t("li",l(r,{staticClass:"nav-item"}),[t(os,{staticClass:"nav-link",class:n.linkClasses,attrs:n.linkAttrs,props:n,on:i},o)])}}),jv={},Mv=c.extend({name:Nn,functional:!0,props:jv,render:function(t,e){var n=e.data,r=e.children;return t("li",l(n,{staticClass:"navbar-text"}),r)}});function Fv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Nv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fv(Object(n),!0).forEach((function(e){zv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hv=Nv(Nv({},st(Vf,["inline"])),{},{formClass:{type:[String,Array,Object]}}),Vv=c.extend({name:jn,functional:!0,props:Hv,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=e.listeners,a=void 0===o?{}:o,s=r.attrs;r.attrs={},r.on={};var c=t(Uf,{class:n.formClass,props:Nv(Nv({},n),{},{inline:!0}),attrs:s,on:a},i);return t("li",l(r,{staticClass:"form-inline"}),[c])}}),Uv=ca(["text","html","menuClass","toggleClass","noCaret","role","lazy"],bf),qv=c.extend({name:Fn,mixins:[bc,gf,Eo],props:Uv,computed:{toggleId:function(){return this.safeId("_BV_toggle_")},dropdownClasses:function(){return[this.directionClass,this.boundaryClass,{show:this.visible}]},menuClasses:function(){return[this.menuClass,{"dropdown-menu-right":this.right,show:this.visible}]},toggleClasses:function(){return[this.toggleClass,{"dropdown-toggle-no-caret":this.noCaret}]}},render:function(t){var e=this.toggleId,n=this.visible,r=t(os,{staticClass:"nav-link dropdown-toggle",class:this.toggleClasses,props:{href:"#".concat(this.id||""),disabled:this.disabled},attrs:{id:e,role:"button","aria-haspopup":"true","aria-expanded":n?"true":"false"},on:{mousedown:this.onMousedown,click:this.toggle,keydown:this.toggle},ref:"toggle"},[this.normalizeSlot([mo,So])||t("span",{domProps:bl(this.html,this.text)})]),i=t("ul",{staticClass:"dropdown-menu",class:this.menuClasses,attrs:{tabindex:"-1","aria-labelledby":e},on:{keydown:this.onKeydown},ref:"menu"},!this.lazy||n?this.normalizeSlot(go,{hide:this.hide}):[t()]);return t("li",{staticClass:"nav-item b-nav-dropdown dropdown",class:this.dropdownClasses,attrs:{id:this.safeId()}},[r,i])}}),Wv=Nr({components:{BNav:Pv,BNavItem:Rv,BNavText:Mv,BNavForm:Vv,BNavItemDropdown:qv,BNavItemDd:qv,BNavDropdown:qv,BNavDd:qv},plugins:{DropdownPlugin:nh}});function Gv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yv={tag:{type:String,default:"nav"},type:{type:String,default:"light"},variant:{type:String,default:function(){return Zr(Ln,"variant")}},toggleable:{type:[Boolean,String],default:!1},fixed:{type:String},sticky:{type:Boolean,default:!1},print:{type:Boolean,default:!1}},Kv=c.extend({name:Ln,mixins:[Eo],props:Yv,provide:function(){return{bvNavbar:this}},computed:{breakpointClass:function(){var t=null,e=Jr()[0],n=this.toggleable;return n&&R(n)&&n!==e?t="navbar-expand-".concat(n):!1===n&&(t="navbar-expand"),t}},render:function(t){var e;return t(this.tag,{staticClass:"navbar",class:[(e={"d-print":this.print,"sticky-top":this.sticky},Gv(e,"navbar-".concat(this.type),this.type),Gv(e,"bg-".concat(this.variant),this.variant),Gv(e,"fixed-".concat(this.fixed),this.fixed),e),this.breakpointClass],attrs:{role:Bi(this.tag,"nav")?null:"navigation"}},[this.normalizeSlot()])}});function Xv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zv=ca(["tag","fill","justified","align","small"],Ev),Jv=function(t){return t="left"===t?"start":"right"===t?"end":t,"justify-content-".concat(t)},Qv=c.extend({name:Dn,functional:!0,props:Zv,render:function(t,e){var n,r=e.props,i=e.data,o=e.children;return t(r.tag,l(i,{staticClass:"navbar-nav",class:(n={"nav-fill":r.fill,"nav-justified":r.justified},Xv(n,Jv(r.align),r.align),Xv(n,"small",r.small),n)}),o)}});function ty(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ey(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ty(Object(n),!0).forEach((function(e){ny(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ny(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ry=st(is,["event","routerTag"]);ry.href.default=void 0,ry.to.default=void 0;var iy=ey({tag:{type:String,default:"div"}},ry),oy=c.extend({name:In,functional:!0,props:iy,render:function(t,e){var n=e.props,r=e.data,i=e.children,o=n.to||n.href,a=o?os:n.tag;return t(a,l(r,{staticClass:"navbar-brand",props:o?ca(ry,n):{}}),i)}}),ay="navbar-toggler",sy=c.extend({name:Rn,directives:{VBToggle:Hd},mixins:[hd,Eo],props:{label:{type:String,default:function(){return Zr(Rn,"label")}},target:{type:String,required:!0},disabled:{type:Boolean,default:!1}},data:function(){return{toggleState:!1}},created:function(){this.listenOnRoot(Ed,this.handleStateEvt),this.listenOnRoot(Td,this.handleStateEvt)},methods:{onClick:function(t){this.disabled||this.$emit("click",t)},handleStateEvt:function(t,e){t===this.target&&(this.toggleState=e)}},render:function(t){var e=this.disabled;return t("button",{staticClass:ay,class:{disabled:e},directives:[{name:"VBToggle",value:this.target}],attrs:{type:"button",disabled:e,"aria-label":this.label},on:{click:this.onClick}},[this.normalizeSlot(go,{expanded:this.toggleState})||t("span",{staticClass:"".concat(ay,"-icon")})])}}),ly=Nr({components:{BNavbar:Kv,BNavbarNav:Qv,BNavbarBrand:oy,BNavbarToggle:sy,BNavToggle:sy},plugins:{NavPlugin:Wv,CollapsePlugin:Wd,DropdownPlugin:nh}});function cy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uy=c.extend({name:rr,functional:!0,props:{type:{type:String,default:"border"},label:{type:String},variant:{type:String,default:function(){return Zr(rr,"variant")}},small:{type:Boolean,default:!1},role:{type:String,default:"status"},tag:{type:String,default:"span"}},render:function(t,e){var n,r=e.props,i=e.data,o=e.slots,a=e.scopedSlots,s=o(),c=a||{},u=Ao(wo,{},c,s)||r.label;return u&&(u=t("span",{staticClass:"sr-only"},u)),t(r.tag,l(i,{attrs:{role:u?r.role||"status":null,"aria-hidden":u?null:"true"},class:(n={},cy(n,"spinner-".concat(r.type),r.type),cy(n,"spinner-".concat(r.type,"-sm"),r.small),cy(n,"text-".concat(r.variant),r.variant),n)}),[u||t()])}});function dy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dy(Object(n),!0).forEach((function(e){hy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var py={top:0,left:0,bottom:0,right:0},$y=c.extend({name:zn,mixins:[Eo],props:{show:{type:Boolean,default:!1},variant:{type:String,default:"light"},bgColor:{type:String},opacity:{type:[Number,String],default:.85,validator:function(t){var e=ci(t,0);return e>=0&&e<=1}},blur:{type:String,default:"2px"},rounded:{type:[Boolean,String],default:!1},noCenter:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},spinnerType:{type:String,default:"border"},spinnerVariant:{type:String},spinnerSmall:{type:Boolean,default:!1},overlayTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},noWrap:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:10}},computed:{computedRounded:function(){var t=this.rounded;return!0===t||""===t?"rounded":t?"rounded-".concat(t):""},computedVariant:function(){return this.variant&&!this.bgColor?"bg-".concat(this.variant):""},overlayScope:function(){return{spinnerType:this.spinnerType||null,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(t){var e=t.spinnerType,n=t.spinnerVariant,r=t.spinnerSmall;return this.$createElement(uy,{props:{type:e,variant:n,small:r}})}},render:function(t){var e=this,n=t();if(this.show){var r=this.overlayScope,i=t("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:fy(fy({},py),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),o=t("div",{staticClass:"position-absolute",style:this.noCenter?fy({},py):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot("overlay",r)||this.defaultOverlayFn(r)]);n=t(this.overlayTag,{key:"overlay",staticClass:"b-overlay",class:{"position-absolute":!this.noWrap||this.noWrap&&!this.fixed,"position-fixed":this.noWrap&&this.fixed},style:fy(fy({},py),{},{zIndex:this.zIndex||10}),on:{click:function(t){return e.$emit("click",t)}}},[i,o])}return n=t(ho,{props:{noFade:this.noFade,appear:!0},on:{"after-enter":function(){return e.$emit("shown")},"after-leave":function(){return e.$emit("hidden")}}},[n]),this.noWrap?n:t(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":this.show?"true":null}},this.noWrap?[n]:[this.normalizeSlot(),n])}}),my=Nr({components:{BOverlay:$y}}),gy=function(t){return Array.apply(null,{length:t})},vy=gy,yy=3,_y=5,by=function(t,e){return vy(e).map((function(e,n){return{number:t+n,classes:null}}))},wy=function(t){var e=li(t)||1;return e<1?_y:e},xy=function(t,e){var n=li(t)||1;return n>e?e:n<1?1:n},ky=function(t){if(t.keyCode===Ra)return Io(t,{immediatePropagation:!0}),t.currentTarget.click(),!1},Sy={disabled:{type:Boolean,default:!1},value:{type:[Number,String],default:null,validator:function(t){return!(!B(t)&&li(t,0)<1)||(te('"v-model" value must be a number greater than "0"',Hn),!1)}},limit:{type:[Number,String],default:_y,validator:function(t){return!(li(t,0)<1)||(te('Prop "limit" must be a number greater than "0"',Hn),!1)}},align:{type:String,default:"left"},pills:{type:Boolean,default:!1},hideGotoEndButtons:{type:Boolean,default:!1},ariaLabel:{type:String,default:"Pagination"},labelFirstPage:{type:String,default:"Go to first page"},firstText:{type:String,default:"«"},firstNumber:{type:Boolean,default:!1},firstClass:{type:[String,Array,Object],default:null},labelPrevPage:{type:String,default:"Go to previous page"},prevText:{type:String,default:"‹"},prevClass:{type:[String,Array,Object],default:null},labelNextPage:{type:String,default:"Go to next page"},nextText:{type:String,default:"›"},nextClass:{type:[String,Array,Object]},labelLastPage:{type:String,default:"Go to last page"},lastText:{type:String,default:"»"},lastNumber:{type:Boolean,default:!1},lastClass:{type:[String,Array,Object]},labelPage:{type:[String,Function],default:"Go to page"},pageClass:{type:[String,Array,Object]},hideEllipsis:{type:Boolean,default:!1},ellipsisText:{type:String,default:"…"},ellipsisClass:{type:[String,Array,Object]}},Oy={mixins:[Eo],model:{prop:"value",event:"input"},props:Sy,data:function(){var t=li(this.value,0);return t=t>0?t:-1,{currentPage:t,localNumberOfPages:1,localLimit:_y}},computed:{btnSize:function(){return this.size?"pagination-".concat(this.size):""},alignment:function(){var t=this.align;return"center"===t?"justify-content-center":"end"===t||"right"===t?"justify-content-end":"fill"===t?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return xy(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var t=this.localLimit,e=this.localNumberOfPages,n=this.computedCurrentPage,r=this.hideEllipsis,i=this.firstNumber,o=this.lastNumber,a=!1,s=!1,l=t,c=1;e<=t?l=e:n<t-1&&t>yy?(r&&!o||(s=!0,l=t-(i?0:1)),l=Vo(l,t)):e-n+2<t&&t>yy?(r&&!i||(a=!0,l=t-(o?0:1)),c=e-l+1):(t>yy&&(l=t-(r?0:2),a=!(r&&!i),s=!(r&&!o)),c=n-Go(l/2)),c<1?(c=1,a=!1):c>e-l&&(c=e-l+1,s=!1),a&&i&&c<4&&(l+=2,c=1,a=!1);var u=c+l-1;return s&&o&&u>e-3&&(l+=u===e-2?2:3,s=!1),t<=yy&&(i&&1===c?l=Vo(l+1,e,t+1):o&&e===c+l-1&&(c=Uo(c-1,1),l=Vo(e-c+1,e,t+1))),l=Vo(l,e-c+1),{showFirstDots:a,showLastDots:s,numberOfLinks:l,startNumber:c}},pageList:function(){var t=this.paginationParams,e=t.numberOfLinks,n=t.startNumber,r=this.computedCurrentPage,i=by(n,e);if(i.length>3){var o=r-n,a="bv-d-xs-down-none";if(0===o)for(var s=3;s<i.length;s++)i[s].classes=a;else if(o===i.length-1)for(var l=0;l<i.length-3;l++)i[l].classes=a;else{for(var c=0;c<o-1;c++)i[c].classes=a;for(var u=i.length-1;u>o+1;u--)i[u].classes=a}}return i}},watch:{value:function(t,e){t!==e&&(this.currentPage=xy(t,this.localNumberOfPages))},currentPage:function(t,e){t!==e&&this.$emit("input",t>0?t:null)},limit:function(t,e){t!==e&&(this.localLimit=wy(t))}},created:function(){var t=this;this.localLimit=wy(this.limit),this.$nextTick((function(){t.currentPage=t.currentPage>t.localNumberOfPages?t.localNumberOfPages:t.currentPage}))},methods:{handleKeyNav:function(t){var e=t.keyCode,n=t.shiftKey;this.isNav||(e===Ba||e===ja?(Io(t,{propagation:!1}),n?this.focusFirst():this.focusPrev()):e!==Da&&e!==Ca||(Io(t,{propagation:!1}),n?this.focusLast():this.focusNext()))},getButtons:function(){return ji("button.page-link, a.page-link",this.$el).filter((function(t){return Ii(t)}))},focusCurrent:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(e){return li(Yi(e,"aria-posinset"),0)===t.computedCurrentPage}));oo(e)||t.focusFirst()}))},focusFirst:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().find((function(t){return!Di(t)}));oo(e)}))},focusLast:function(){var t=this;this.$nextTick((function(){var e=t.getButtons().reverse().find((function(t){return!Di(t)}));oo(e)}))},focusPrev:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(Pi());n>0&&!Di(e[n-1])&&oo(e[n-1])}))},focusNext:function(){var t=this;this.$nextTick((function(){var e=t.getButtons(),n=e.indexOf(Pi());n<e.length-1&&!Di(e[n+1])&&oo(e[n+1])}))}},render:function(t){var e=this,n=[],r=this.localNumberOfPages,i=this.pageList.map((function(t){return t.number})),o=this.disabled,a=this.paginationParams,s=a.showFirstDots,l=a.showLastDots,c=this.computedCurrentPage,u="fill"===this.align,d=this.isNav,f=function(t){return t===c},h=this.currentPage<1,p=function(n,i,a,s,l,c,p){var $=o||f(c)||h||n<1||n>r,m=n<1?1:n>r?r:n,g={disabled:$,page:m,index:m-1},v=e.normalizeSlot(a,g)||gi(s)||t(),y=t($?"span":d?os:"button",{staticClass:"page-link",class:{"flex-grow-1":!d&&!$&&u},props:$||!d?{}:e.linkProps(n),attrs:{role:d?null:"menuitem",type:d||$?null:"button",tabindex:$||d?null:"-1","aria-label":i,"aria-controls":e.ariaControls||null,"aria-disabled":$?"true":null},on:$?{}:{"!click":function(t){e.onClick(t,n)},keydown:ky}},[v]);return t("li",{key:p,staticClass:"page-item",class:[{disabled:$,"flex-fill":u,"d-flex":u&&!d&&!$},l],attrs:{role:d?null:"presentation","aria-hidden":$?"true":null}},[y])},$=function(n){return t("li",{key:"ellipsis-".concat(n?"last":"first"),staticClass:"page-item",class:["disabled","bv-d-xs-down-none",u?"flex-fill":"",e.ellipsisClass],attrs:{role:"separator"}},[t("span",{staticClass:"page-link"},[e.normalizeSlot("ellipsis-text")||gi(e.ellipsisText)||t()])])},m=function(n,i){var a=f(n.number)&&!h,s=o?null:a||h&&0===i?"0":"-1",l={role:d?null:"menuitemradio",type:d||o?null:"button","aria-disabled":o?"true":null,"aria-controls":e.ariaControls||null,"aria-label":I(e.labelPage)?e.labelPage(n.number):"".concat(e.labelPage," ").concat(n.number),"aria-checked":d?null:a?"true":"false","aria-current":d&&a?"page":null,"aria-posinset":d?null:n.number,"aria-setsize":d?null:r,tabindex:d?null:s},c=gi(e.makePage(n.number)),p={page:n.number,index:n.number-1,content:c,active:a,disabled:o},$=t(o?"span":d?os:"button",{props:o||!d?{}:e.linkProps(n.number),staticClass:"page-link",class:{"flex-grow-1":!d&&!o&&u},attrs:l,on:o?{}:{"!click":function(t){e.onClick(t,n.number)},keydown:ky}},[e.normalizeSlot("page",p)||c]);return t("li",{key:"page-".concat(n.number),staticClass:"page-item",class:[{disabled:o,active:a,"flex-fill":u,"d-flex":u&&!d&&!o},n.classes,e.pageClass],attrs:{role:d?null:"presentation"}},[$])},g=t();this.firstNumber||this.hideGotoEndButtons||(g=p(1,this.labelFirstPage,"first-text",this.firstText,this.firstClass,1,"pagination-goto-first")),n.push(g),n.push(p(c-1,this.labelPrevPage,"prev-text",this.prevText,this.prevClass,1,"pagination-goto-prev")),n.push(this.firstNumber&&1!==i[0]?m({number:1},0):t()),n.push(s?$(!1):t()),this.pageList.forEach((function(t,r){var o=s&&e.firstNumber&&1!==i[0]?1:0;n.push(m(t,r+o))})),n.push(l?$(!0):t()),n.push(this.lastNumber&&i[i.length-1]!==r?m({number:r},-1):t()),n.push(p(c+1,this.labelNextPage,"next-text",this.nextText,this.nextClass,r,"pagination-goto-next"));var v=t();this.lastNumber||this.hideGotoEndButtons||(v=p(r,this.labelLastPage,"last-text",this.lastText,this.lastClass,r,"pagination-goto-last")),n.push(v);var y=t("ul",{ref:"ul",staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:d?null:"menubar","aria-disabled":o?"true":"false","aria-label":d?null:this.ariaLabel||null},on:d?{}:{keydown:this.handleKeyNav}},n);return d?t("nav",{attrs:{"aria-disabled":o?"true":null,"aria-hidden":o?"true":"false","aria-label":d&&this.ariaLabel||null}},[y]):y}},Cy=20,Ay=0,Ey={size:{type:String,default:function(){return Zr(Hn,"size")}},perPage:{type:[Number,String],default:Cy},totalRows:{type:[Number,String],default:Ay},ariaControls:{type:String}},Ty=function(t){return Uo(li(t)||Cy,1)},Py=function(t){return Uo(li(t)||Ay,0)},By=c.extend({name:Hn,mixins:[Oy],props:Ey,computed:{numberOfPages:function(){var t=Wo(Py(this.totalRows)/Ty(this.perPage));return t<1?1:t},pageSizeNumberOfPages:function(){return{perPage:Ty(this.perPage),totalRows:Py(this.totalRows),numberOfPages:this.numberOfPages}}},watch:{pageSizeNumberOfPages:function(t,e){L(e)||(t.perPage!==e.perPage&&t.totalRows===e.totalRows||t.numberOfPages!==e.numberOfPages&&this.currentPage>t.numberOfPages)&&(this.currentPage=1),this.localNumberOfPages=t.numberOfPages}},created:function(){var t=this;this.localNumberOfPages=this.numberOfPages;var e=li(this.value,0);e>0?this.currentPage=e:this.$nextTick((function(){t.currentPage=0}))},mounted:function(){this.localNumberOfPages=this.numberOfPages},methods:{onClick:function(t,e){var n=this;if(e!==this.currentPage){var r=t.target,i=new rf("page-click",{cancelable:!0,vueTarget:this,target:r});this.$emit(i.type,i,e),i.defaultPrevented||(this.currentPage=e,this.$emit("change",this.currentPage),this.$nextTick((function(){Ii(r)&&n.$el.contains(r)?oo(r):n.focusCurrent()})))}},makePage:function(t){return t},linkProps:function(){return{}}}}),Ly=Nr({components:{BPagination:By}});function Iy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Iy(Object(n),!0).forEach((function(e){Ry(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Iy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ry(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jy=st(is,["event","routerTag"]),My=Dy({size:{type:String,default:function(){return Zr(Vn,"size")}},numberOfPages:{type:[Number,String],default:1,validator:function(t){var e=li(t,0);return!(e<1)||(te('Prop "number-of-pages" must be a number greater than "0"',Vn),!1)}},baseUrl:{type:String,default:"/"},useRouter:{type:Boolean,default:!1},linkGen:{type:Function},pageGen:{type:Function},pages:{type:Array},noPageDetect:{type:Boolean,default:!1}},jy),Fy=function(t){return Uo(li(t,0),1)},Ny=c.extend({name:Vn,mixins:[Oy],props:My,computed:{isNav:function(){return!0},computedValue:function(){var t=li(this.value,0);return t<1?null:t}},watch:{numberOfPages:function(){var t=this;this.$nextTick((function(){t.setNumberOfPages()}))},pages:function(){var t=this;this.$nextTick((function(){t.setNumberOfPages()}))}},created:function(){this.setNumberOfPages()},mounted:function(){var t=this;this.$router&&this.$watch("$route",(function(){t.$nextTick((function(){Ci((function(){t.guessCurrentPage()}))}))}))},methods:{setNumberOfPages:function(){var t=this;F(this.pages)&&this.pages.length>0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=Fy(this.numberOfPages),this.$nextTick((function(){t.guessCurrentPage()}))},onClick:function(t,e){var n=this;if(e!==this.currentPage){var r=t.currentTarget||t.target,i=new rf("page-click",{cancelable:!0,vueTarget:this,target:r});this.$emit(i.type,i,e),i.defaultPrevented||(Ci((function(){n.currentPage=e,n.$emit("change",e)})),this.$nextTick((function(){ao(r)})))}},getPageInfo:function(t){if(!F(this.pages)||0===this.pages.length||P(this.pages[t-1])){var e="".concat(this.baseUrl).concat(t);return{link:this.useRouter?{path:e}:e,text:gi(t)}}var n=this.pages[t-1];if(N(n)){var r=n.link;return{link:N(r)?r:this.useRouter?{path:r}:r,text:gi(n.text||t)}}return{link:gi(n),text:gi(t)}},makePage:function(t){var e=this.getPageInfo(t);return this.pageGen&&I(this.pageGen)?this.pageGen(t,e):e.text},makeLink:function(t){var e=this.getPageInfo(t);return this.linkGen&&I(this.linkGen)?this.linkGen(t,e):e.link},linkProps:function(t){var e=ca(jy,this),n=this.makeLink(t);return this.useRouter||N(n)?e.to=n:e.href=n,e},resolveLink:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{t=document.createElement("a"),t.href=ka({to:e},"a","/","/"),document.body.appendChild(t);var n=t,r=n.pathname,i=n.hash,o=n.search;return document.body.removeChild(t),{path:r,hash:i,query:ya(o)}}catch(a){try{t&&t.parentNode&&t.parentNode.removeChild(t)}catch(s){}return{}}},resolveRoute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{var e=this.$router.resolve(t,this.$route).route;return{path:e.path,hash:e.hash,query:e.query}}catch(n){return{}}},guessCurrentPage:function(){var t=this.computedValue,e=this.$router,n=this.$route;if(!this.noPageDetect&&!t&&(u["j"]||!u["j"]&&e))for(var r=e&&n?{path:n.path,hash:n.hash,query:n.query}:{},i=u["j"]?window.location||document.location:null,o=i?{path:i.pathname,hash:i.hash,query:ya(i.search)}:{},a=1;!t&&a<=this.localNumberOfPages;a++){var s=this.makeLink(a);t=e&&(N(s)||this.useRouter)?Na(this.resolveRoute(s),r)?a:null:u["j"]?Na(this.resolveLink(s),o)?a:null:-1}this.currentPage=t>0?t:0}}}),zy=Nr({components:{BPaginationNav:Ny}}),Hy={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},Vy={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},Uy=c.extend({name:Gn,props:{target:{type:[S,O]},placement:{type:String,default:"top"},fallbackPlacement:{type:[String,Array],default:"flip"},offset:{type:Number,default:0},boundary:{type:[String,S],default:"scrollParent"},boundaryPadding:{type:Number,default:5},arrowPadding:{type:Number,default:6}},data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var t=this,e=this.placement;return{placement:this.getAttachment(e),modifiers:{offset:{offset:this.getOffset(e)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t.popperPlacementChange(e)},onUpdate:function(e){t.popperPlacementChange(e)}}}},created:function(){var t=this;this.$_popper=null,this.localShow=!0,this.$on("show",(function(e){t.popperCreate(e)}));var e=function(){t.$nextTick((function(){Ci((function(){t.$destroy()}))}))};this.$parent.$once("hook:destroyed",e),this.$once("hidden",e)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},mounted:function(){},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var t=this.$el;t&&t.parentNode&&t.parentNode.removeChild(t)},methods:{hide:function(){this.localShow=!1},getAttachment:function(t){return Hy[String(t).toUpperCase()]||"auto"},getOffset:function(t){if(!this.offset){var e=this.$refs.arrow||Mi(".arrow",this.$el),n=ci(to(e).width,0)+ci(this.arrowPadding,0);switch(Vy[String(t).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(t){this.destroyPopper(),this.$_popper=new Gd["a"](this.target,t,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(t){this.attachment=this.getAttachment(t.placement)},renderTemplate:function(t){return t("div")}},render:function(t){var e=this;return t(ho,{props:{appear:!0,noFade:this.noFade},on:{beforeEnter:function(t){return e.$emit("show",t)},afterEnter:function(t){return e.$emit("shown",t)},beforeLeave:function(t){return e.$emit("hide",t)},afterLeave:function(t){return e.$emit("hidden",t)}}},[this.localShow?this.renderTemplate(t):t()])}});function qy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qy(Object(n),!0).forEach((function(e){Gy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Yy=c.extend({name:br,extends:Uy,mixins:[xg],props:{id:{type:String},html:{type:Boolean}},data:function(){return{title:"",content:"",variant:null,customClass:null,interactive:!0}},computed:{templateType:function(){return"tooltip"},templateClasses:function(){var t;return[(t={noninteractive:!this.interactive},Gy(t,"b-".concat(this.templateType,"-").concat(this.variant),this.variant),Gy(t,"bs-".concat(this.templateType,"-").concat(this.attachment),this.attachment),t),this.customClass]},templateAttributes:function(){return Wy({id:this.id,role:"tooltip",tabindex:"-1"},this.scopedStyleAttrs)},templateListeners:function(){var t=this;return{mouseenter:function(e){t.$emit("mouseenter",e)},mouseleave:function(e){t.$emit("mouseleave",e)},focusin:function(e){t.$emit("focusin",e)},focusout:function(e){t.$emit("focusout",e)}}}},methods:{renderTemplate:function(t){var e=I(this.title)?this.title({}):L(this.title)?t():this.title,n=this.html&&!I(this.title)?{innerHTML:this.title}:{};return t("div",{staticClass:"tooltip b-tooltip",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[t("div",{ref:"arrow",staticClass:"arrow"}),t("div",{staticClass:"tooltip-inner",domProps:n},[e])])}}});function Ky(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ky(Object(n),!0).forEach((function(e){Zy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jy=".modal-content",Qy="bv::modal::hidden",t_=".b-sidebar",e_=[Jy,t_].join(", "),n_="dropdown",r_=".dropdown-menu.show",i_="data-original-title",o_={title:"",content:"",variant:null,customClass:null,triggers:"",placement:"auto",fallbackPlacement:"flip",target:null,container:null,noFade:!1,boundary:"scrollParent",boundaryPadding:5,offset:0,delay:0,arrowPadding:6,interactive:!0,disabled:!1,id:null,html:!1},a_=c.extend({name:_r,props:{},data:function(){return Xy(Xy({},o_),{},{activeTrigger:{hover:!1,click:!1,focus:!1},localShow:!1})},computed:{templateType:function(){return"tooltip"},computedId:function(){return this.id||"__bv_".concat(this.templateType,"_").concat(this._uid,"__")},computedDelay:function(){var t={show:0,hide:0};return z(this.delay)?(t.show=Uo(li(this.delay.show,0),0),t.hide=Uo(li(this.delay.hide,0),0)):(j(this.delay)||R(this.delay))&&(t.show=t.hide=Uo(li(this.delay,0),0)),t},computedTriggers:function(){return ii(this.triggers).filter(Boolean).join(" ").trim().toLowerCase().split(/\s+/).sort()},isWithActiveTrigger:function(){for(var t in this.activeTrigger)if(this.activeTrigger[t])return!0;return!1},computedTemplateData:function(){return{title:this.title,content:this.content,variant:this.variant,customClass:this.customClass,noFade:this.noFade,interactive:this.interactive}}},watch:{computedTriggers:function(t,e){var n=this;Na(t,e)||this.$nextTick((function(){n.unListen(),e.forEach((function(e){ri(t,e)||n.activeTrigger[e]&&(n.activeTrigger[e]=!1)})),n.listen()}))},computedTemplateData:function(){this.handleTemplateUpdate()},title:function(t,e){t===e||t||this.hide()},disabled:function(t){t?this.disable():this.enable()}},created:function(){var t=this;this.$_tip=null,this.$_hoverTimeout=null,this.$_hoverState="",this.$_visibleInterval=null,this.$_enabled=!this.disabled,this.$_noop=Fu.bind(this),this.$parent&&this.$parent.$once("hook:beforeDestroy",(function(){t.$nextTick((function(){Ci((function(){t.$destroy()}))}))})),this.$nextTick((function(){var e=t.getTarget();e&&zi(document.body,e)?(t.scopeId=bg(t.$parent),t.listen()):te(R(t.target)?'Unable to find target element by ID "#'.concat(t.target,'" in document.'):"The provided target is no valid HTML element.",t.templateType)}))},updated:function(){this.$nextTick(this.handleTemplateUpdate)},deactivated:function(){this.forceHide()},beforeDestroy:function(){this.unListen(),this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.clearVisibilityInterval(),this.destroyTemplate(),this.$_noop=null},methods:{getTemplate:function(){return Yy},updateData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!1;nt(o_).forEach((function(r){P(e[r])||t[r]===e[r]||(t[r]=e[r],"title"===r&&(n=!0))})),n&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var t=this.getContainer(),e=this.getTemplate(),n=this.$_tip=new e({parent:this,propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:li(this.offset,0),arrowPadding:li(this.arrowPadding,0),boundaryPadding:li(this.boundaryPadding,0)}});this.handleTemplateUpdate(),n.$once("show",this.onTemplateShow),n.$once("shown",this.onTemplateShown),n.$once("hide",this.onTemplateHide),n.$once("hidden",this.onTemplateHidden),n.$once("hook:destroyed",this.destroyTemplate),n.$on("focusin",this.handleEvent),n.$on("focusout",this.handleEvent),n.$on("mouseenter",this.handleEvent),n.$on("mouseleave",this.handleEvent),n.$mount(t.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch(t){}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var t=this,e=this.$_tip;if(e){var n=["title","content","variant","customClass","noFade","interactive"];n.forEach((function(n){e[n]!==t[n]&&(e[n]=t[n])}))}},show:function(){var t=this.getTarget();if(t&&zi(document.body,t)&&Ii(t)&&!this.dropdownOpen()&&(!L(this.title)&&""!==this.title||!L(this.content)&&""!==this.content)&&!this.$_tip&&!this.localShow){this.localShow=!0;var e=this.buildEvent("show",{cancelable:!0});this.emitEvent(e),e.defaultPrevented?this.destroyTemplate():(this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow())}},hide:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getTemplateElement();if(e&&this.localShow){var n=this.buildEvent("hide",{cancelable:!t});this.emitEvent(n),n.defaultPrevented||this.hideTemplate()}else this.restoreTitle()},forceHide:function(){var t=this.getTemplateElement();t&&this.localShow&&(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent("enabled"))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent("disabled"))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var t=this.$_hoverState;this.$_hoverState="","out"===t&&this.leave(null),this.emitEvent(this.buildEvent("shown"))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent("hidden"))},getTarget:function(){var t=this.target;return R(t)?t=Hi(t.replace(/^#/,"")):I(t)?t=t():t&&(t=t.$el||t),Ti(t)?t:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var t=this.getTarget();return t&&t.id?t.id:null},getContainer:function(){var t=!!this.container&&(this.container.$el||this.container),e=document.body,n=this.getTarget();return!1===t?Ni(e_,n)||e:R(t)&&Hi(t.replace(/^#/,""))||e},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var t=this.getTarget();return t&&Ni(Jy,t)},isDropdown:function(){var t=this.getTarget();return t&&qi(t,n_)},dropdownOpen:function(){var t=this.getTarget();return this.isDropdown()&&t&&Mi(r_,t)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var t in this.activeTrigger)this.activeTrigger[t]=!1},addAriaDescribedby:function(){var t=this.getTarget(),e=Yi(t,"aria-describedby")||"";e=e.split(/\s+/).concat(this.computedId).join(" ").trim(),Wi(t,"aria-describedby",e)},removeAriaDescribedby:function(){var t=this,e=this.getTarget(),n=Yi(e,"aria-describedby")||"";n=n.split(/\s+/).filter((function(e){return e!==t.computedId})).join(" ").trim(),n?Wi(e,"aria-describedby",n):Gi(e,"aria-describedby")},fixTitle:function(){var t=this.getTarget();if(Ki(t,"title")){var e=Yi(t,"title");Wi(t,"title",""),e&&Wi(t,i_,e)}},restoreTitle:function(){var t=this.getTarget();if(Ki(t,i_)){var e=Yi(t,i_);Gi(t,i_),e&&Wi(t,"title",e)}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new rf(t,Xy({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},e))},emitEvent:function(t){var e=t.type,n=this.$root;n&&n.$emit&&n.$emit("bv::".concat(this.templateType,"::").concat(e),t),this.$emit(e,t)},listen:function(){var t=this,e=this.getTarget();e&&(this.setRootListener(!0),this.computedTriggers.forEach((function(n){"click"===n?Po(e,"click",t.handleEvent,ju):"focus"===n?(Po(e,"focusin",t.handleEvent,ju),Po(e,"focusout",t.handleEvent,ju)):"blur"===n?Po(e,"focusout",t.handleEvent,ju):"hover"===n&&(Po(e,"mouseenter",t.handleEvent,ju),Po(e,"mouseleave",t.handleEvent,ju))}),this))},unListen:function(){var t=this,e=["click","focusin","focusout","mouseenter","mouseleave"],n=this.getTarget();this.setRootListener(!1),e.forEach((function(e){n&&Bo(n,e,t.handleEvent,ju)}),this)},setRootListener:function(t){var e=this.$root;if(e){var n=t?"$on":"$off",r=this.templateType;e[n]("bv::hide::".concat(r),this.doHide),e[n]("bv::show::".concat(r),this.doShow),e[n]("bv::disable::".concat(r),this.doDisable),e[n]("bv::enable::".concat(r),this.doEnable)}},setWhileOpenListeners:function(t){this.setModalListener(t),this.setDropdownListener(t),this.visibleCheck(t),this.setOnTouchStartListener(t)},visibleCheck:function(t){var e=this;this.clearVisibilityInterval();var n=this.getTarget(),r=this.getTemplateElement();t&&(this.$_visibleInterval=setInterval((function(){!r||!e.localShow||n.parentNode&&Ii(n)||e.forceHide()}),100))},setModalListener:function(t){this.isInModal()&&this.$root[t?"$on":"$off"](Qy,this.forceHide)},setOnTouchStartListener:function(t){var e=this;"ontouchstart"in document.documentElement&&ni(document.body.children).forEach((function(n){Lo(t,n,"mouseover",e.$_noop)}))},setDropdownListener:function(t){var e=this.getTarget();e&&this.$root&&this.isDropdown&&e.__vue__&&e.__vue__[t?"$on":"$off"]("shown",this.forceHide)},handleEvent:function(t){var e=this.getTarget();if(e&&!Di(e)&&this.$_enabled&&!this.dropdownOpen()){var n=t.type,r=this.computedTriggers;if("click"===n&&ri(r,"click"))this.click(t);else if("mouseenter"===n&&ri(r,"hover"))this.enter(t);else if("focusin"===n&&ri(r,"focus"))this.enter(t);else if("focusout"===n&&(ri(r,"focus")||ri(r,"blur"))||"mouseleave"===n&&ri(r,"hover")){var i=this.getTemplateElement(),o=t.target,a=t.relatedTarget;if(i&&zi(i,o)&&zi(e,a)||i&&zi(e,o)&&zi(i,a)||i&&zi(i,o)&&zi(i,a)||zi(e,o)&&zi(e,a))return;this.leave(t)}}},doHide:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.forceHide()},doShow:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.show()},doDisable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.disable()},doEnable:function(t){t&&this.getTargetId()!==t&&this.computedId!==t||this.enable()},click:function(t){this.$_enabled&&!this.dropdownOpen()&&(oo(t.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){this.$_enabled&&!this.dropdownOpen()&&(this.localShow?this.leave(null):this.enter(null))},enter:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusin"===e.type?"focus":"hover"]=!0),this.localShow||"in"===this.$_hoverState?this.$_hoverState="in":(this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout((function(){"in"===t.$_hoverState?t.show():t.localShow||t.restoreTitle()}),this.computedDelay.show)):this.show())},leave:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(this.activeTrigger["focusout"===e.type?"focus":"hover"]=!1,"focusout"===e.type&&ri(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),this.isWithActiveTrigger||(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout((function(){"out"===t.$_hoverState&&t.hide()}),this.computedDelay.hide):this.hide())}}}),s_=c.extend({name:yr,props:{title:{type:String},target:{type:[String,S,O,Function,Object],required:!0},triggers:{type:[String,Array],default:"hover focus"},placement:{type:String,default:"top"},fallbackPlacement:{type:[String,Array],default:"flip",validator:function(t){return F(t)&&t.every((function(t){return R(t)}))||ri(["flip","clockwise","counterclockwise"],t)}},variant:{type:String,default:function(){return Zr(yr,"variant")}},customClass:{type:String,default:function(){return Zr(yr,"customClass")}},delay:{type:[Number,Object,String],default:function(){return Zr(yr,"delay")}},boundary:{type:[String,S,Object],default:function(){return Zr(yr,"boundary")}},boundaryPadding:{type:[Number,String],default:function(){return Zr(yr,"boundaryPadding")}},offset:{type:[Number,String],default:0},noFade:{type:Boolean,default:!1},container:{type:[String,S,Object]},show:{type:Boolean,default:!1},noninteractive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{type:String}},data:function(){return{localShow:this.show,localTitle:"",localContent:""}},computed:{templateData:function(){return{title:this.localTitle,content:this.localContent,target:this.target,triggers:this.triggers,placement:this.placement,fallbackPlacement:this.fallbackPlacement,variant:this.variant,customClass:this.customClass,container:this.container,boundary:this.boundary,boundaryPadding:this.boundaryPadding,delay:this.delay,offset:this.offset,noFade:this.noFade,interactive:!this.noninteractive,disabled:this.disabled,id:this.id}},templateTitleContent:function(){return{title:this.title,content:this.content}}},watch:{show:function(t,e){t!==e&&t!==this.localShow&&this.$_toolpop&&(t?this.$_toolpop.show():this.$_toolpop.forceHide())},disabled:function(t){t?this.doDisable():this.doEnable()},localShow:function(t){this.$emit("update:show",t)},templateData:function(){var t=this;this.$nextTick((function(){t.$_toolpop&&t.$_toolpop.updateData(t.templateData)}))},templateTitleContent:function(){this.$nextTick(this.updateContent)}},created:function(){this.$_toolpop=null},updated:function(){this.$nextTick(this.updateContent)},beforeDestroy:function(){this.$off("open",this.doOpen),this.$off("close",this.doClose),this.$off("disable",this.doDisable),this.$off("enable",this.doEnable),this.$_toolpop&&(this.$_toolpop.$destroy(),this.$_toolpop=null)},mounted:function(){var t=this;this.$nextTick((function(){var e=t.getComponent();t.updateContent();var n=bg(t)||bg(t.$parent),r=t.$_toolpop=new e({parent:t,_scopeId:n||void 0});r.updateData(t.templateData),r.$on("show",t.onShow),r.$on("shown",t.onShown),r.$on("hide",t.onHide),r.$on("hidden",t.onHidden),r.$on("disabled",t.onDisabled),r.$on("enabled",t.onEnabled),t.disabled&&t.doDisable(),t.$on("open",t.doOpen),t.$on("close",t.doClose),t.$on("disable",t.doDisable),t.$on("enable",t.doEnable),t.localShow&&r.show()}))},methods:{getComponent:function(){return a_},updateContent:function(){this.setTitle(this.$scopedSlots.default||this.title)},setTitle:function(t){t=L(t)?"":t,this.localTitle!==t&&(this.localTitle=t)},setContent:function(t){t=L(t)?"":t,this.localContent!==t&&(this.localContent=t)},onShow:function(t){this.$emit("show",t),t&&(this.localShow=!t.defaultPrevented)},onShown:function(t){this.localShow=!0,this.$emit("shown",t)},onHide:function(t){this.$emit("hide",t)},onHidden:function(t){this.$emit("hidden",t),this.localShow=!1},onDisabled:function(t){t&&"disabled"===t.type&&(this.$emit("update:disabled",!0),this.$emit("disabled",t))},onEnabled:function(t){t&&"enabled"===t.type&&(this.$emit("update:disabled",!1),this.$emit("enabled",t))},doOpen:function(){!this.localShow&&this.$_toolpop&&this.$_toolpop.show()},doClose:function(){this.localShow&&this.$_toolpop&&this.$_toolpop.hide()},doDisable:function(){this.$_toolpop&&this.$_toolpop.disable()},doEnable:function(){this.$_toolpop&&this.$_toolpop.enable()}},render:function(t){return t()}}),l_=c.extend({name:Wn,extends:Yy,computed:{templateType:function(){return"popover"}},methods:{renderTemplate:function(t){var e=I(this.title)?this.title({}):this.title,n=I(this.content)?this.content({}):this.content,r=this.html&&!I(this.title)?{innerHTML:this.title}:{},i=this.html&&!I(this.content)?{innerHTML:this.content}:{};return t("div",{staticClass:"popover b-popover",class:this.templateClasses,attrs:this.templateAttributes,on:this.templateListeners},[t("div",{ref:"arrow",staticClass:"arrow"}),L(e)||""===e?t():t("h3",{staticClass:"popover-header",domProps:r},[e]),L(n)||""===n?t():t("div",{staticClass:"popover-body",domProps:i},[n])])}}}),c_=c.extend({name:qn,extends:a_,computed:{templateType:function(){return"popover"}},methods:{getTemplate:function(){return l_}}}),u_=c.extend({name:Un,extends:s_,inheritAttrs:!1,props:{title:{type:String},content:{type:String},triggers:{type:[String,Array],default:"click"},placement:{type:String,default:"right"},variant:{type:String,default:function(){return Zr(Un,"variant")}},customClass:{type:String,default:function(){return Zr(Un,"customClass")}},delay:{type:[Number,Object,String],default:function(){return Zr(Un,"delay")}},boundary:{type:[String,S,Object],default:function(){return Zr(Un,"boundary")}},boundaryPadding:{type:[Number,String],default:function(){return Zr(Un,"boundaryPadding")}}},methods:{getComponent:function(){return c_},updateContent:function(){this.setContent(this.$scopedSlots.default||this.content),this.setTitle(this.$scopedSlots.title||this.title)}}});function d_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d_(Object(n),!0).forEach((function(e){h_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p_="__BV_Popover__",$_="click",m_={focus:!0,hover:!0,click:!0,blur:!0,manual:!0},g_=/^html$/i,v_=/^nofade$/i,y_=/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/i,__=/^(window|viewport|scrollParent)$/i,b_=/^d\d+$/i,w_=/^ds\d+$/i,x_=/^dh\d+$/i,k_=/^o-?\d+$/i,S_=/^v-.+$/i,O_=/\s+/,C_=function(t,e){var n={title:void 0,content:void 0,trigger:"",placement:"right",fallbackPlacement:"flip",container:!1,animation:!0,offset:0,disabled:!1,id:null,html:!1,delay:Zr(Un,"delay"),boundary:String(Zr(Un,"boundary")),boundaryPadding:li(Zr(Un,"boundaryPadding"),0),variant:Zr(Un,"variant"),customClass:Zr(Un,"customClass")};if(R(t.value)||j(t.value)||I(t.value)?n.content=t.value:z(t.value)&&(n=f_(f_({},n),t.value)),t.arg&&(n.container="#".concat(t.arg)),P(n.title)){var r=e.data||{};n.title=r.attrs&&!L(r.attrs.title)?r.attrs.title:void 0}z(n.delay)||(n.delay={show:li(n.delay,0),hide:li(n.delay,0)}),nt(t.modifiers).forEach((function(t){if(g_.test(t))n.html=!0;else if(v_.test(t))n.animation=!1;else if(y_.test(t))n.placement=t;else if(__.test(t))t="scrollparent"===t?"scrollParent":t,n.boundary=t;else if(b_.test(t)){var e=li(t.slice(1),0);n.delay.show=e,n.delay.hide=e}else w_.test(t)?n.delay.show=li(t.slice(2),0):x_.test(t)?n.delay.hide=li(t.slice(2),0):k_.test(t)?n.offset=li(t.slice(1),0):S_.test(t)&&(n.variant=t.slice(2)||null)}));var i={};return ii(n.trigger||"").filter(Xt).join(" ").trim().toLowerCase().split(O_).forEach((function(t){m_[t]&&(i[t]=!0)})),nt(t.modifiers).forEach((function(t){t=t.toLowerCase(),m_[t]&&(i[t]=!0)})),n.trigger=nt(i).join(" "),"blur"===n.trigger&&(n.trigger="focus"),n.trigger||(n.trigger=$_),n},A_=function(t,e,n){if(u["j"]){var r=C_(e,n);if(!t[p_]){var i=n.context;t[p_]=new c_({parent:i,_scopeId:bg(i,void 0)}),t[p_].__bv_prev_data__={},t[p_].$on("show",(function(){var e={};I(r.title)&&(e.title=r.title(t)),I(r.content)&&(e.content=r.content(t)),nt(e).length>0&&t[p_].updateData(e)}))}var o={title:r.title,content:r.content,triggers:r.trigger,placement:r.placement,fallbackPlacement:r.fallbackPlacement,variant:r.variant,customClass:r.customClass,container:r.container,boundary:r.boundary,delay:r.delay,offset:r.offset,noFade:!r.animation,id:r.id,disabled:r.disabled,html:r.html},a=t[p_].__bv_prev_data__;if(t[p_].__bv_prev_data__=o,!Na(o,a)){var s={target:t};nt(o).forEach((function(e){o[e]!==a[e]&&(s[e]="title"!==e&&"content"!==e||!I(o[e])?o[e]:o[e](t))})),t[p_].updateData(s)}}},E_=function(t){t[p_]&&(t[p_].$destroy(),t[p_]=null),delete t[p_]},T_={bind:function(t,e,n){A_(t,e,n)},componentUpdated:function(t,e,n){n.context.$nextTick((function(){A_(t,e,n)}))},unbind:function(t){E_(t)}},P_=Nr({directives:{VBPopover:T_}}),B_=Nr({components:{BPopover:u_},plugins:{VBPopoverPlugin:P_}}),L_=c.extend({name:Kn,mixins:[Eo],inject:{bvProgress:{default:function(){return{}}}},props:{value:{type:[Number,String],default:0},label:{type:String},labelHtml:{type:String},max:{type:[Number,String],default:null},precision:{type:[Number,String],default:null},variant:{type:String,default:function(){return Zr(Kn,"variant")}},striped:{type:Boolean,default:null},animated:{type:Boolean,default:null},showProgress:{type:Boolean,default:null},showValue:{type:Boolean,default:null}},computed:{progressBarClasses:function(){return[this.computedVariant?"bg-".concat(this.computedVariant):"",this.computedStriped||this.computedAnimated?"progress-bar-striped":"",this.computedAnimated?"progress-bar-animated":""]},progressBarStyles:function(){return{width:this.computedValue/this.computedMax*100+"%"}},computedValue:function(){return ci(this.value,0)},computedMax:function(){var t=ci(this.max)||ci(this.bvProgress.max,0);return t>0?t:100},computedPrecision:function(){return Uo(li(this.precision,li(this.bvProgress.precision,0)),0)},computedProgress:function(){var t=this.computedPrecision,e=Yo(10,t);return ui(100*e*this.computedValue/this.computedMax/e,t)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return D(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return D(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return D(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return D(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(t){var e,n=this.label,r=this.labelHtml,i=this.computedValue,o=this.computedPrecision,a={};return this.hasNormalizedSlot()?e=this.normalizeSlot():n||r?a=bl(r,n):this.computedShowProgress?e=this.computedProgress:this.computedShowValue&&(e=ui(i,o)),t("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":gi(this.computedMax),"aria-valuenow":ui(i,o)},domProps:a},e)}}),I_=c.extend({name:Yn,mixins:[Eo],provide:function(){return{bvProgress:this}},props:{variant:{type:String,default:function(){return Zr(Yn,"variant")}},striped:{type:Boolean,default:!1},animated:{type:Boolean,default:!1},height:{type:String},precision:{type:[Number,String],default:0},showProgress:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0}},computed:{progressHeight:function(){return{height:this.height||null}}},render:function(t){var e=this.normalizeSlot();return e||(e=t(L_,{props:{value:this.value,max:this.max,precision:this.precision,variant:this.variant,animated:this.animated,striped:this.striped,showProgress:this.showProgress,showValue:this.showValue}})),t("div",{class:["progress"],style:this.progressHeight},[e])}}),D_=Nr({components:{BProgress:I_,BProgressBar:L_}});function R_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R_(Object(n),!0).forEach((function(e){M_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function M_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F_="b-sidebar",N_=function(t,e){var n=e.computedTile;return n?t("strong",{attrs:{id:e.safeId("__title__")}},[n]):t("span")},z_=function(t,e){if(e.noHeaderClose)return t();var n=e.closeLabel,r=e.textVariant,i=e.hide;return t(jo,{ref:"close-button",props:{ariaLabel:n,textVariant:r},on:{click:i}},[e.normalizeSlot("header-close")||t(Ks)])},H_=function(t,e){if(e.noHeader)return t();var n=N_(t,e),r=z_(t,e);return t("header",{key:"header",staticClass:"".concat(F_,"-header"),class:e.headerClass},e.right?[r,n]:[n,r])},V_=function(t,e){return t("div",{key:"body",staticClass:"".concat(F_,"-body"),class:e.bodyClass},[e.normalizeSlot(go,e.slotScope)])},U_=function(t,e){var n=e.normalizeSlot(_o,e.slotScope);return n?t("footer",{key:"footer",staticClass:"".concat(F_,"-footer"),class:e.footerClass},[n]):t()},q_=function(t,e){var n=H_(t,e);return e.lazy&&!e.isOpen?n:[n,V_(t,e),U_(t,e)]},W_=function(t,e){if(!e.backdrop)return t();var n=e.backdropVariant;return t("div",{directives:[{name:"show",value:e.localShow}],staticClass:"b-sidebar-backdrop",class:M_({},"bg-".concat(n),!!n),on:{click:e.onBackdropClick}})},G_=c.extend({name:Zn,mixins:[qa,bc,hd,Eo],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:{title:{type:String},right:{type:Boolean,default:!1},bgVariant:{type:String,default:function(){return Zr(Zn,"bgVariant")}},textVariant:{type:String,default:function(){return Zr(Zn,"textVariant")}},shadow:{type:[Boolean,String],default:function(){return Zr(Zn,"shadow")}},width:{type:String,default:function(){return Zr(Zn,"width")}},zIndex:{type:[Number,String]},ariaLabel:{type:String},ariaLabelledby:{type:String},closeLabel:{type:String},tag:{type:String,default:function(){return Zr(Zn,"tag")}},sidebarClass:{type:[String,Array,Object]},headerClass:{type:[String,Array,Object]},bodyClass:{type:[String,Array,Object]},footerClass:{type:[String,Array,Object]},backdrop:{type:Boolean,default:!1},backdropVariant:{type:String,default:function(){return Zr(Zn,"backdropVariant")}},noSlide:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},noHeaderClose:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnRouteChange:{type:Boolean,default:!1},noEnforceFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},data:function(){return{localShow:!!this.visible,isOpen:!!this.visible}},computed:{transitionProps:function(){return this.noSlide?{css:!0}:{css:!0,enterClass:"",enterActiveClass:"slide",enterToClass:"show",leaveClass:"show",leaveActiveClass:"slide",leaveToClass:""}},slotScope:function(){return{visible:this.localShow,right:this.right,hide:this.hide}},computedTile:function(){return this.normalizeSlot(Oo,this.slotScope)||gi(this.title)||null},titleId:function(){return this.computedTile?this.safeId("__title__"):null},computedAttrs:function(){return j_(j_({},this.bvAttrs),{},{id:this.safeId(),tabindex:"-1",role:"dialog","aria-modal":this.backdrop?"true":"false","aria-hidden":this.localShow?null:"true","aria-label":this.ariaLabel||null,"aria-labelledby":this.ariaLabelledby||this.titleId||null})}},watch:{visible:function(t,e){t!==e&&(this.localShow=t)},localShow:function(t,e){t!==e&&(this.emitState(t),this.$emit("change",t))},$route:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.noCloseOnRouteChange||t.fullPath===e.fullPath||this.hide()}},created:function(){this.$_returnFocusEl=null},mounted:function(){var t=this;this.listenOnRoot(Ad,this.handleToggle),this.listenOnRoot(Pd,this.handleSync),this.$nextTick((function(){t.emitState(t.localShow)}))},activated:function(){this.emitSync()},beforeDestroy:function(){this.localShow=!1,this.$_returnFocusEl=null},methods:{hide:function(){this.localShow=!1},emitState:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(Ed,this.safeId(),t)},emitSync:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.localShow;this.emitOnRoot(Td,this.safeId(),t)},handleToggle:function(t){t&&t===this.safeId()&&(this.localShow=!this.localShow)},handleSync:function(t){var e=this;t&&t===this.safeId()&&this.$nextTick((function(){e.emitSync(e.localShow)}))},onKeydown:function(t){var e=t.keyCode;!this.noCloseOnEsc&&e===Ta&&this.localShow&&this.hide()},onBackdropClick:function(){this.localShow&&!this.noCloseOnBackdrop&&this.hide()},onTopTrapFocus:function(){var t=io(this.$refs.content);this.enforceFocus(t.reverse()[0])},onBottomTrapFocus:function(){var t=io(this.$refs.content);this.enforceFocus(t[0])},onBeforeEnter:function(){this.$_returnFocusEl=Pi(u["j"]?[document.body]:[]),this.isOpen=!0},onAfterEnter:function(t){zi(t,Pi())||this.enforceFocus(t),this.$emit("shown")},onAfterLeave:function(){this.enforceFocus(this.$_returnFocusEl),this.$_returnFocusEl=null,this.isOpen=!1,this.$emit("hidden")},enforceFocus:function(t){this.noEnforceFocus||oo(t)}},render:function(t){var e,n=this.localShow,r=""===this.shadow||this.shadow,i=t(this.tag,{ref:"content",directives:[{name:"show",value:n}],staticClass:F_,class:[(e={shadow:!0===r},M_(e,"shadow-".concat(r),r&&!0!==r),M_(e,"".concat(F_,"-right"),this.right),M_(e,"bg-".concat(this.bgVariant),!!this.bgVariant),M_(e,"text-".concat(this.textVariant),!!this.textVariant),e),this.sidebarClass],attrs:this.computedAttrs,style:{width:this.width}},[q_(t,this)]);i=t("transition",{props:this.transitionProps,on:{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[i]);var o=t(po,{props:{noFade:this.noSlide}},[W_(t,this)]),a=t(),s=t();return this.backdrop&&this.localShow&&(a=t("div",{attrs:{tabindex:"0"},on:{focus:this.onTopTrapFocus}}),s=t("div",{attrs:{tabindex:"0"},on:{focus:this.onBottomTrapFocus}})),t("div",{staticClass:"b-sidebar-outer",style:{zIndex:this.zIndex},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown}},[a,i,s,o])}}),Y_=Nr({components:{BSidebar:G_},plugins:{VBTogglePlugin:qd}});function K_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var X_=c.extend({name:Jn,functional:!0,props:{animation:{type:String,default:function(){return Zr(Jn,"animation")}},type:{type:String,default:"text"},width:{type:String},height:{type:String},size:{type:String},variant:{type:String}},render:function(t,e){var n,r=e.data,i=e.props,o=i.size,a=i.animation,s=i.variant;return t("div",l(r,{staticClass:"b-skeleton",style:{width:o||i.width,height:o||i.height},class:(n={},K_(n,"b-skeleton-".concat(i.type),!0),K_(n,"b-skeleton-animate-".concat(a),a),K_(n,"bg-".concat(s),s),n)}))}});function Z_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function J_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z_(Object(n),!0).forEach((function(e){Q_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Q_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tb=c.extend({name:Qn,functional:!0,props:{animation:{type:String,default:function(){return Zr(Qn,"animation")}},icon:{type:String},iconProps:{type:Object,default:function(){}}},render:function(t,e){var n=e.props,r=n.icon,i=n.animation,o=t(Qs,{props:J_({icon:r},n.iconProps),staticClass:"b-skeleton-icon"});return t("div",{staticClass:"b-skeleton-icon-wrapper position-relative d-inline-block overflow-hidden",class:Q_({},"b-skeleton-animate-".concat(i),i)},[o])}});function eb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nb=c.extend({name:tr,functional:!0,props:{animation:{type:String},aspect:{type:String,default:"16:9"},noAspect:{type:Boolean,default:!1},height:{type:String},width:{type:String},variant:{type:String},cardImg:{type:String}},render:function(t,e){var n=e.props,r=n.aspect,i=n.width,o=n.height,a=n.animation,s=n.variant,l=n.cardImg,c=t(X_,{props:{type:"img",width:i,height:o,animation:a,variant:s},class:eb({},"card-img-".concat(l),l)});return n.noAspect?c:t(ra,{props:{aspect:r}},[c])}});function rb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ib={props:{stacked:{type:[Boolean,String],default:!1}},computed:{isStacked:function(){return""===this.stacked||this.stacked},isStackedAlways:function(){return!0===this.isStacked},stackedTableClasses:function(){return rb({"b-table-stacked":this.isStackedAlways},"b-table-stacked-".concat(this.stacked),!this.isStackedAlways&&this.isStacked)}}};function ob(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ab(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ob(Object(n),!0).forEach((function(e){sb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ob(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lb={inheritAttrs:!1,mixins:[qa],provide:function(){return{bvTable:this}},props:{striped:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},small:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},responsive:{type:[Boolean,String],default:!1},stickyHeader:{type:[Boolean,String],default:!1},noBorderCollapse:{type:Boolean,default:!1},captionTop:{type:Boolean,default:!1},tableVariant:{type:String},tableClass:{type:[String,Array,Object]}},computed:{isResponsive:function(){var t=""===this.responsive||this.responsive;return!this.isStacked&&t},isStickyHeader:function(){var t=""===this.stickyHeader||this.stickyHeader;return!this.isStacked&&t},wrapperClasses:function(){return[this.isStickyHeader?"b-table-sticky-header":"",!0===this.isResponsive?"table-responsive":this.isResponsive?"table-responsive-".concat(this.responsive):""].filter(Xt)},wrapperStyles:function(){return this.isStickyHeader&&!D(this.isStickyHeader)?{maxHeight:this.isStickyHeader}:{}},tableClasses:function(){var t=this.isTableSimple?this.hover:this.hover&&this.computedItems.length>0&&!this.computedBusy;return[this.tableClass,{"table-striped":this.striped,"table-hover":t,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},this.tableVariant?"".concat(this.dark?"bg":"table","-").concat(this.tableVariant):"",this.stackedTableClasses,this.selectableTableClasses]},tableAttrs:function(){var t=[(this.bvAttrs||{})["aria-describedby"],this.captionId].filter(Xt).join(" ")||null,e=this.computedItems,n=this.filteredItems,r=this.computedFields,i=this.selectableTableAttrs||{},o=this.isTableSimple?{}:{"aria-busy":this.computedBusy?"true":"false","aria-colcount":gi(r.length),"aria-describedby":t},a=e&&n&&n.length>e.length?gi(n.length):null;return ab(ab(ab({"aria-rowcount":a},this.bvAttrs),{},{id:this.safeId(),role:"table"},o),i)}},render:function(t){var e=[];this.isTableSimple?e.push(this.normalizeSlot()):(e.push(this.renderCaption?this.renderCaption():null),e.push(this.renderColgroup?this.renderColgroup():null),e.push(this.renderThead?this.renderThead():null),e.push(this.renderTbody?this.renderTbody():null),e.push(this.renderTfoot?this.renderTfoot():null));var n=t("table",{key:"b-table",staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs},e.filter(Xt));return this.wrapperClasses.length>0?t("div",{key:"wrap",class:this.wrapperClasses,style:this.wrapperStyles},[n]):n}},cb=c.extend({name:lr,mixins:[bc,Eo,lb,ib],computed:{isTableSimple:function(){return!0}}});function ub(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function db(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ub(Object(n),!0).forEach((function(e){fb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ub(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hb=c.extend({name:er,functional:!0,props:{animation:{type:String},rows:{type:Number,default:3,validator:function(t){return t>0}},columns:{type:Number,default:5,validator:function(t){return t>0}},hideHeader:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!1},tableProps:{type:Object,default:function(){}}},render:function(t,e){var n=e.props,r=n.animation,i=n.columns,o=t("th",[t(X_,{props:{animation:r}})]),a=t("tr",oi(i,o)),s=t("td",[t(X_,{props:{width:"75%",animation:r}})]),l=t("tr",oi(i,s)),c=t("tbody",oi(n.rows,l)),u=n.hideHeader?t():t("thead",[a]),d=n.showFooter?t("tfoot",[a]):t();return t(cb,{props:db({},n.tableProps)},[u,c,d])}}),pb=c.extend({name:nr,functional:!0,props:{loading:{type:Boolean,default:!1}},render:function(t,e){var n=e.data,r=e.props,i=e.slots,o=e.scopedSlots,a=i(),s=o||{},c={};return r.loading?t("div",l(n,{attrs:{role:"alert","aria-live":"polite","aria-busy":!0},staticClass:"b-skeleton-wrapper",key:"loading"}),[Ao("loading",c,s,a)||t()]):Ao(go,c,s,a)||t()}}),$b=Nr({components:{BSkeleton:X_,BSkeletonIcon:tb,BSkeletonImg:nb,BSkeletonTable:hb,BSkeletonWrapper:pb}}),mb=Nr({components:{BSpinner:uy}}),gb={methods:{hasListener:function(t){var e=this.$listeners||{},n=this._events||{};return!P(e[t])||F(n[t])&&n[t].length>0}}};function vb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vb(Object(n),!0).forEach((function(e){_b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bb={variant:{type:String,default:null}},wb="light",xb="dark",kb=c.extend({name:wr,mixins:[qa,Wa,Eo],inheritAttrs:!1,provide:function(){return{bvTableTr:this}},inject:{bvTableRowGroup:{default:function(){return{}}}},props:bb,computed:{inTbody:function(){return this.bvTableRowGroup.isTbody},inThead:function(){return this.bvTableRowGroup.isThead},inTfoot:function(){return this.bvTableRowGroup.isTfoot},isDark:function(){return this.bvTableRowGroup.isDark},isStacked:function(){return this.bvTableRowGroup.isStacked},isResponsive:function(){return this.bvTableRowGroup.isResponsive},isStickyHeader:function(){return this.bvTableRowGroup.isStickyHeader},hasStickyHeader:function(){return!this.isStacked&&this.bvTableRowGroup.hasStickyHeader},tableVariant:function(){return this.bvTableRowGroup.tableVariant},headVariant:function(){return this.inThead?this.bvTableRowGroup.headVariant:null},footVariant:function(){return this.inTfoot?this.bvTableRowGroup.footVariant:null},isRowDark:function(){return this.headVariant!==wb&&this.footVariant!==wb&&(this.headVariant===xb||this.footVariant===xb||this.isDark)},trClasses:function(){return[this.variant?"".concat(this.isRowDark?"bg":"table","-").concat(this.variant):null]},trAttrs:function(){return yb({role:"row"},this.bvAttrs)}},render:function(t){return t("tr",{class:this.trClasses,attrs:this.trAttrs,on:this.bvListeners},this.normalizeSlot())}}),Sb="bottom-row",Ob={methods:{renderBottomRow:function(){var t=this.$createElement;if(!this.hasNormalizedSlot(Sb)||!0===this.stacked||""===this.stacked)return t();var e=this.computedFields;return t(kb,{key:"b-bottom-row",staticClass:"b-table-bottom-row",class:[I(this.tbodyTrClass)?this.tbodyTrClass(null,"row-bottom"):this.tbodyTrClass],attrs:I(this.tbodyTrAttr)?this.tbodyTrAttr(null,"row-bottom"):this.tbodyTrAttr},this.normalizeSlot(Sb,{columns:e.length,fields:e}))}}};function Cb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ab(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cb(Object(n),!0).forEach((function(e){Eb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Eb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tb=function(t){return t=li(t,0),t>0?t:null},Pb=function(t){return L(t)||Tb(t)>0},Bb={variant:{type:String,default:null},colspan:{type:[Number,String],default:null,validator:Pb},rowspan:{type:[Number,String],default:null,validator:Pb},stackedHeading:{type:String,default:null},stickyColumn:{type:Boolean,default:!1}},Lb=c.extend({name:ar,mixins:[qa,Wa,Eo],inheritAttrs:!1,inject:{bvTableTr:{default:function(){return{}}}},props:Bb,computed:{tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return Tb(this.colspan)},computedRowspan:function(){return Tb(this.rowspan)},cellClasses:function(){var t=this.variant;return(!t&&this.isStickyHeader&&!this.headVariant||!t&&this.isStickyColumn&&this.inTfoot&&!this.footVariant||!t&&this.isStickyColumn&&this.inThead&&!this.headVariant||!t&&this.isStickyColumn&&this.inTbody)&&(t=this.rowVariant||this.tableVariant||"b-table-default"),[t?"".concat(this.isDark?"bg":"table","-").concat(t):null,this.isStickyColumn?"b-table-sticky-column":null]},cellAttrs:function(){var t=this.inThead||this.inTfoot,e=this.computedColspan,n=this.computedRowspan,r="cell",i=null;return t?(r="columnheader",i=e>0?"colspan":"col"):Bi(this.tag,"th")&&(r="rowheader",i=n>0?"rowgroup":"row"),Ab(Ab({colspan:e,rowspan:n,role:r,scope:i},this.bvAttrs),{},{"data-label":this.isStackedCell&&!L(this.stackedHeading)?gi(this.stackedHeading):null})}},render:function(t){var e=[this.normalizeSlot()];return t(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?t("div",[e]):e])}}),Ib="table-busy",Db={props:{busy:{type:Boolean,default:!1}},data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this.busy||this.localBusy}},watch:{localBusy:function(t,e){t!==e&&this.$emit("update:busy",t)}},methods:{stopIfBusy:function(t){return!!this.computedBusy&&(Io(t),!0)},renderBusy:function(){var t=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(Ib)?t(kb,{key:"table-busy-slot",staticClass:"b-table-busy-slot",class:[I(this.tbodyTrClass)?this.tbodyTrClass(null,Ib):this.tbodyTrClass],attrs:I(this.tbodyTrAttr)?this.tbodyTrAttr(null,Ib):this.tbodyTrAttr},[t(Lb,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(Ib)])]):null}}},Rb={props:{caption:{type:String},captionHtml:{type:String}},computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var t=this.caption,e=this.captionHtml,n=this.$createElement,r=n(),i=this.hasNormalizedSlot("table-caption");return(i||t||e)&&(r=n("caption",{key:"caption",attrs:{id:this.captionId},domProps:i?{}:bl(e,t)},this.normalizeSlot("table-caption"))),r}}},jb={methods:{renderColgroup:function(){var t=this.$createElement,e=this.computedFields,n=t();return this.hasNormalizedSlot("table-colgroup")&&(n=t("colgroup",{key:"colgroup"},[this.normalizeSlot("table-colgroup",{columns:e.length,fields:e})])),n}}},Mb={props:{showEmpty:{type:Boolean,default:!1},emptyText:{type:String,default:"There are no records to show"},emptyHtml:{type:String},emptyFilteredText:{type:String,default:"There are no records matching your request"},emptyFilteredHtml:{type:String}},methods:{renderEmpty:function(){var t=this.$createElement,e=this.computedItems,n=t();if(this.showEmpty&&(!e||0===e.length)&&(!this.computedBusy||!this.hasNormalizedSlot("table-busy"))){var r=this.isFiltered,i=this.emptyText,o=this.emptyHtml,a=this.emptyFilteredText,s=this.emptyFilteredHtml,l=this.computedFields,c=this.tbodyTrClass,u=this.tbodyTrAttr;n=this.normalizeSlot(this.isFiltered?"emptyfiltered":"empty",{emptyFilteredHtml:s,emptyFilteredText:a,emptyHtml:o,emptyText:i,fields:l,items:this.computedItems}),n||(n=t("div",{class:["text-center","my-2"],domProps:r?bl(s,a):bl(o,i)})),n=t(Lb,{props:{colspan:l.length||null}},[t("div",{attrs:{role:"alert","aria-live":"polite"}},[n])]),n=t(kb,{staticClass:"b-table-empty-row",class:[I(c)?this.tbodyTrClass(null,"row-empty"):c],attrs:I(u)?this.tbodyTrAttr(null,"row-empty"):u,key:r?"b-empty-filtered-row":"b-empty-row"},[n])}return n}}},Fb={_rowVariant:!0,_cellVariants:!0,_showDetails:!0},Nb=["a","a *","button","button *","input:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])","textarea:not(.disabled):not([disabled])",'[role="link"]','[role="link"] *','[role="button"]','[role="button"] *',"[tabindex]:not(.disabled):not([disabled])"].join(","),zb=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=nt(r).reduce((function(e,n){var i=r[n],o=i.filterByFormatted,a=I(o)?o:o?i.formatter:null;return I(a)&&(e[n]=a(t[n],n,t)),e}),ot(t)),o=nt(i).filter((function(t){return!Fb[t]&&!(F(e)&&e.length>0&&ri(e,t))&&!(F(n)&&n.length>0&&!ri(n,t))}));return at(i,o)},Hb=zb,Vb=function t(e){return L(e)?"":N(e)&&!H(e)?nt(e).sort().filter((function(t){return!L(t)})).map((function(n){return t(e[n])})).join(" "):gi(e)},Ub=Vb,qb=function(t,e,n,r){return N(t)?Ub(Hb(t,e,n,r)):""},Wb=qb,Gb='Prop "filter-debounce" is deprecated. Use the debounce feature of "<b-form-input>" instead.',Yb={props:{filter:{type:[String,RegExp,Object,Array],default:null},filterFunction:{type:Function},filterIgnoredFields:{type:Array},filterIncludedFields:{type:Array},filterDebounce:{type:[Number,String],deprecated:Gb,default:0,validator:function(t){return/^\d+/.test(String(t))}}},data:function(){return{isFiltered:!1,localFilter:this.filterSanitize(this.filter)}},computed:{computedFilterIgnored:function(){return ii(this.filterIgnoredFields||[]).filter(Xt)},computedFilterIncluded:function(){return ii(this.filterIncludedFields||[]).filter(Xt)},computedFilterDebounce:function(){var t=li(this.filterDebounce,0);return t>0&&te(Gb,or),t},localFiltering:function(){return!this.hasProvider||!!this.noProviderFiltering},filteredCheck:function(){return{filteredItems:this.filteredItems,localItems:this.localItems,localFilter:this.localFilter}},localFilterFn:function(){return I(this.filterFunction)?this.filterFunction:null},filteredItems:function(){var t=this.localItems||[],e=this.localFilter,n=this.localFiltering?this.filterFnFactory(this.localFilterFn,e)||this.defaultFilterFnFactory(e):null;return n&&t.length>0?t.filter(n):t}},watch:{computedFilterDebounce:function(t){!t&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(t){var e=this,n=this.computedFilterDebounce;this.clearFilterTimer(),n&&n>0?this.$_filterTimer=setTimeout((function(){e.localFilter=e.filterSanitize(t)}),n):this.localFilter=this.filterSanitize(t)}},filteredCheck:function(t){var e=t.filteredItems,n=t.localFilter,r=!1;n?Na(n,[])||Na(n,{})?r=!1:n&&(r=!0):r=!1,r&&this.$emit("filtered",e,e.length),this.isFiltered=r},isFiltered:function(t,e){!1===t&&!0===e&&this.$emit("filtered",this.localItems,this.localItems.length)}},created:function(){var t=this;this.$_filterTimer=null,this.$nextTick((function(){t.isFiltered=Boolean(t.localFilter)}))},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(t){return!this.localFiltering||this.localFilterFn||R(t)||q(t)?wt(t):""},filterFnFactory:function(t,e){if(!t||!I(t)||!e||Na(e,[])||Na(e,{}))return null;var n=function(n){return t(n,e)};return n},defaultFilterFnFactory:function(t){var e=this;if(!t||!R(t)&&!q(t))return null;var n=t;if(R(n)){var r=mi(t).replace(jt,"\\s+");n=new RegExp(".*".concat(r,".*"),"i")}var i=function(t){return n.lastIndex=0,n.test(Wb(t,e.computedFilterIgnored,e.computedFilterIncluded,e.computedFieldsObj))};return i}}},Kb=function(t,e){var n=null;return R(e)?n={key:t,label:e}:I(e)?n={key:t,formatter:e}:N(e)?(n=ot(e),n.key=n.key||t):!1!==e&&(n={key:t}),n},Xb=function(t,e){var n=[];if(F(t)&&t.filter(Xt).forEach((function(t){if(R(t))n.push({key:t,label:hi(t)});else if(N(t)&&t.key&&R(t.key))n.push(ot(t));else if(N(t)&&1===nt(t).length){var e=nt(t)[0],r=Kb(e,t[e]);r&&n.push(r)}})),0===n.length&&F(e)&&e.length>0){var r=e[0];nt(r).forEach((function(t){Fb[t]||n.push({key:t,label:hi(t)})}))}var i={};return n.filter((function(t){return!i[t.key]&&(i[t.key]=!0,t.label=R(t.label)?t.label:hi(t.key),!0)}))},Zb=Xb,Jb={props:{items:{type:Array,default:function(){return[]}},fields:{type:Array,default:null},primaryKey:{type:String},value:{type:Array,default:function(){return[]}}},data:function(){return{localItems:F(this.items)?this.items.slice():[]}},computed:{computedFields:function(){return Zb(this.fields,this.localItems)},computedFieldsObj:function(){var t=this.$parent;return this.computedFields.reduce((function(e,n){if(e[n.key]=ot(n),n.formatter){var r=n.formatter;R(r)&&I(t[r])?r=t[r]:I(r)||(r=void 0),e[n.key].formatter=r}return e}),{})},computedItems:function(){return(this.paginatedItems||this.sortedItems||this.filteredItems||this.localItems||[]).slice()},context:function(){return{filter:this.localFilter,sortBy:this.localSortBy,sortDesc:this.localSortDesc,perPage:Uo(li(this.perPage,0),0),currentPage:Uo(li(this.currentPage,0),1),apiUrl:this.apiUrl}}},watch:{items:function(t){F(t)?this.localItems=t.slice():L(t)&&(this.localItems=[])},computedItems:function(t,e){Na(t,e)||this.$emit("input",t)},context:function(t,e){Na(t,e)||this.$emit("context-changed",t)}},mounted:function(){this.$emit("input",this.computedItems)},methods:{getFieldFormatter:function(t){var e=this.computedFieldsObj[t];return e?e.formatter:void 0}}},Qb={props:{perPage:{type:[Number,String],default:0},currentPage:{type:[Number,String],default:1}},computed:{localPaging:function(){return!this.hasProvider||!!this.noProviderPaging},paginatedItems:function(){var t=this.sortedItems||this.filteredItems||this.localItems||[],e=Uo(li(this.currentPage,1),1),n=Uo(li(this.perPage,0),0);return this.localPaging&&n&&(t=t.slice((e-1)*n,e*n)),t}}},tw={mixins:[hd],props:{items:{type:[Array,Function],default:function(){return[]}},noProviderPaging:{type:Boolean,default:!1},noProviderSorting:{type:Boolean,default:!1},noProviderFiltering:{type:Boolean,default:!1},apiUrl:{type:String,default:""}},computed:{hasProvider:function(){return I(this.items)},providerTriggerContext:function(){var t={apiUrl:this.apiUrl,filter:null,sortBy:null,sortDesc:null,perPage:null,currentPage:null};return this.noProviderFiltering||(t.filter=this.localFilter),this.noProviderSorting||(t.sortBy=this.localSortBy,t.sortDesc=this.localSortDesc),this.noProviderPaging||(t.perPage=this.perPage,t.currentPage=this.currentPage),ot(t)}},watch:{items:function(t){(this.hasProvider||I(t))&&this.$nextTick(this._providerUpdate)},providerTriggerContext:function(t,e){Na(t,e)||this.$nextTick(this._providerUpdate)}},mounted:function(){var t=this;!this.hasProvider||this.localItems&&0!==this.localItems.length||this._providerUpdate(),this.listenOnRoot("bv::refresh::table",(function(e){e!==t.id&&e!==t||t.refresh()}))},methods:{refresh:function(){this.$off("refreshed",this.refresh),this.computedBusy?this.localBusy&&this.hasProvider&&this.$on("refreshed",this.refresh):(this.clearSelected(),this.hasProvider?this.$nextTick(this._providerUpdate):this.localItems=F(this.items)?this.items.slice():[])},_providerSetLocal:function(t){this.localItems=F(t)?t.slice():[],this.localBusy=!1,this.$emit("refreshed"),this.id&&this.emitOnRoot("bv::table::refreshed",this.id)},_providerUpdate:function(){var t=this;this.hasProvider&&(this.computedBusy?this.$nextTick(this.refresh):(this.localBusy=!0,this.$nextTick((function(){try{var e=t.items(t.context,t._providerSetLocal);W(e)?e.then((function(e){t._providerSetLocal(e)})):F(e)?t._providerSetLocal(e):2!==t.items.length&&(te("Provider function didn't request callback and did not return a promise or data.",or),t.localBusy=!1)}catch(n){te("Provider function error [".concat(n.name,"] ").concat(n.message,"."),or),t.localBusy=!1,t.$off("refreshed",t.refresh)}}))))}}};function ew(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nw={props:{selectable:{type:Boolean,default:!1},selectMode:{type:String,default:"multi",validator:function(t){return ri(["range","multi","single"],t)}},selectedVariant:{type:String,default:function(){return Zr(or,"selectedVariant")}},noSelectOnClick:{type:Boolean,default:!1}},data:function(){return{selectedRows:[],selectedLastRow:-1}},computed:{isSelectable:function(){return this.selectable&&this.selectMode},hasSelectableRowClick:function(){return this.isSelectable&&!this.noSelectOnClick},supportsSelectableRows:function(){return!0},selectableHasSelection:function(){return this.isSelectable&&this.selectedRows&&this.selectedRows.length>0&&this.selectedRows.some(Xt)},selectableIsMultiSelect:function(){return this.isSelectable&&ri(["range","multi"],this.selectMode)},selectableTableClasses:function(){var t;return t={"b-table-selectable":this.isSelectable},ew(t,"b-table-select-".concat(this.selectMode),this.isSelectable),ew(t,"b-table-selecting",this.selectableHasSelection),ew(t,"b-table-selectable-no-click",this.isSelectable&&!this.hasSelectableRowClick),t},selectableTableAttrs:function(){return{"aria-multiselectable":this.isSelectable?this.selectableIsMultiSelect?"true":"false":null}}},watch:{computedItems:function(t,e){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=F(t)&&F(e)&&t.length===e.length;for(var r=0;n&&r<t.length;r++)n=Na(Hb(t[r]),Hb(e[r]))}n||this.clearSelected()},selectable:function(t){this.clearSelected(),this.setSelectionHandlers(t)},selectMode:function(){this.clearSelected()},hasSelectableRowClick:function(t){this.clearSelected(),this.setSelectionHandlers(!t)},selectedRows:function(t,e){var n=this;if(this.isSelectable&&!Na(t,e)){var r=[];t.forEach((function(t,e){t&&r.push(n.computedItems[e])})),this.$emit("row-selected",r)}}},beforeMount:function(){this.isSelectable&&this.setSelectionHandlers(!0)},methods:{selectRow:function(t){if(this.isSelectable&&j(t)&&t>=0&&t<this.computedItems.length&&!this.isRowSelected(t)){var e=this.selectableIsMultiSelect?this.selectedRows.slice():[];e[t]=!0,this.selectedLastClicked=-1,this.selectedRows=e}},unselectRow:function(t){if(this.isSelectable&&j(t)&&this.isRowSelected(t)){var e=this.selectedRows.slice();e[t]=!1,this.selectedLastClicked=-1,this.selectedRows=e}},selectAllRows:function(){var t=this.computedItems.length;this.isSelectable&&t>0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?vy(t).map((function(){return!0})):[!0])},isRowSelected:function(t){return!(!j(t)||!this.selectedRows[t])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(t){if(this.isSelectable&&this.isRowSelected(t)){var e=this.selectedVariant;return ew({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(e),e)}return{}},selectableRowAttrs:function(t){return{"aria-selected":this.isSelectable?this.isRowSelected(t)?"true":"false":null}},setSelectionHandlers:function(t){var e=t&&!this.noSelectOnClick?"$on":"$off";this[e]("row-clicked",this.selectionHandler),this[e]("filtered",this.clearSelected),this[e]("context-changed",this.clearSelected)},selectionHandler:function(t,e,n){if(this.isSelectable&&!this.noSelectOnClick){var r=this.selectMode,i=this.selectedRows.slice(),o=!i[e];if("single"===r)i=[];else if("range"===r)if(this.selectedLastRow>-1&&n.shiftKey){for(var a=Vo(this.selectedLastRow,e);a<=Uo(this.selectedLastRow,e);a++)i[a]=!0;o=!0}else n.ctrlKey||n.metaKey||(i=[],o=!0),this.selectedLastRow=o?e:-1;i[e]=o,this.selectedRows=i}else this.clearSelected()}}},rw=function(t,e){return t.map((function(t,e){return[e,t]})).sort(function(t,e){return this(t[1],e[1])||t[0]-e[0]}.bind(e)).map((function(t){return t[1]}))},iw=rw,ow=function(t,e,n,r,i,o,a,s){var l=Qt(t,n,null),c=Qt(e,n,null);return I(i)&&(l=i(l,n,t),c=i(c,n,e)),l=L(l)?"":l,c=L(c)?"":c,H(l)&&H(c)||j(l)&&j(c)?l<c?-1:l>c?1:0:s&&""===l&&""!==c?1:s&&""!==l&&""===c?-1:Ub(l).localeCompare(Ub(c),a,o)},aw=ow;function sw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function lw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sw(Object(n),!0).forEach((function(e){cw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var uw={props:{sortBy:{type:String,default:""},sortDesc:{type:Boolean,default:!1},sortDirection:{type:String,default:"asc",validator:function(t){return ri(["asc","desc","last"],t)}},sortCompare:{type:Function},sortCompareOptions:{type:Object,default:function(){return{numeric:!0}}},sortCompareLocale:{type:[String,Array]},sortNullLast:{type:Boolean,default:!1},noSortReset:{type:Boolean,default:!1},labelSortAsc:{type:String,default:"Click to sort Ascending"},labelSortDesc:{type:String,default:"Click to sort Descending"},labelSortClear:{type:String,default:"Click to clear sorting"},noLocalSorting:{type:Boolean,default:!1},noFooterSorting:{type:Boolean,default:!1},sortIconLeft:{type:Boolean,default:!1}},data:function(){return{localSortBy:this.sortBy||"",localSortDesc:this.sortDesc||!1}},computed:{localSorting:function(){return this.hasProvider?!!this.noProviderSorting:!this.noLocalSorting},isSortable:function(){return this.computedFields.some((function(t){return t.sortable}))},sortedItems:function(){var t=(this.filteredItems||this.localItems||[]).slice(),e=this.localSortBy,n=this.localSortDesc,r=this.sortCompare,i=this.localSorting,o=lw(lw({},this.sortCompareOptions),{},{usage:"sort"}),a=this.sortCompareLocale||void 0,s=this.sortNullLast;if(e&&i){var l=this.computedFieldsObj[e]||{},c=l.sortByFormatted,u=I(c)?c:c?this.getFieldFormatter(e):void 0;return iw(t,(function(t,i){var l=null;return I(r)&&(l=r(t,i,e,n,u,o,a)),(L(l)||!1===l)&&(l=aw(t,i,e,n,u,o,a,s)),(l||0)*(n?-1:1)}))}return t}},watch:{isSortable:function(t){t?this.isSortable&&this.$on("head-clicked",this.handleSort):this.$off("head-clicked",this.handleSort)},sortDesc:function(t){t!==this.localSortDesc&&(this.localSortDesc=t||!1)},sortBy:function(t){t!==this.localSortBy&&(this.localSortBy=t||"")},localSortDesc:function(t,e){t!==e&&this.$emit("update:sortDesc",t)},localSortBy:function(t,e){t!==e&&this.$emit("update:sortBy",t)}},created:function(){this.isSortable&&this.$on("head-clicked",this.handleSort)},methods:{handleSort:function(t,e,n,r){var i=this;if(this.isSortable&&(!r||!this.noFooterSorting)){var o=!1,a=function(){var t=e.sortDirection||i.sortDirection;"asc"===t?i.localSortDesc=!1:"desc"===t&&(i.localSortDesc=!0)};if(e.sortable){var s=!this.localSorting&&e.sortKey?e.sortKey:t;this.localSortBy===s?this.localSortDesc=!this.localSortDesc:(this.localSortBy=s,a()),o=!0}else this.localSortBy&&!this.noSortReset&&(this.localSortBy="",a(),o=!0);o&&this.$emit("sort-changed",this.context)}},sortTheadThClasses:function(t,e,n){return{"b-table-sort-icon-left":e.sortable&&this.sortIconLeft&&!(n&&this.noFooterSorting)}},sortTheadThAttrs:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return{};var r=e.sortable,i=r&&this.localSortBy===t?this.localSortDesc?"descending":"ascending":r?"none":null;return{"aria-sort":i}},sortTheadThLabel:function(t,e,n){if(!this.isSortable||n&&this.noFooterSorting)return null;var r=e.sortable,i="";if(r)if(this.localSortBy===t)i=this.localSortDesc?this.labelSortAsc:this.labelSortDesc;else{i=this.localSortDesc?this.labelSortDesc:this.labelSortAsc;var o=this.sortDirection||e.sortDirection;"asc"===o?i=this.labelSortAsc:"desc"===o&&(i=this.labelSortDesc)}else this.noSortReset||(i=this.localSortBy?this.labelSortClear:"");return yi(i)||null}}};function dw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dw(Object(n),!0).forEach((function(e){hw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pw={tbodyTransitionProps:{type:Object},tbodyTransitionHandlers:{type:Object}},$w=c.extend({name:dr,mixins:[qa,Wa,Eo],inheritAttrs:!1,provide:function(){return{bvTableRowGroup:this}},inject:{bvTable:{default:function(){return{}}}},props:pw,computed:{isTbody:function(){return!0},isDark:function(){return this.bvTable.dark},isStacked:function(){return this.bvTable.isStacked},isResponsive:function(){return this.bvTable.isResponsive},isStickyHeader:function(){return!1},hasStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant:function(){return this.bvTable.tableVariant},isTransitionGroup:function(){return this.tbodyTransitionProps||this.tbodyTransitionHandlers},tbodyAttrs:function(){return fw({role:"rowgroup"},this.bvAttrs)},tbodyProps:function(){return this.tbodyTransitionProps?fw(fw({},this.tbodyTransitionProps),{},{tag:"tbody"}):{}}},render:function(t){var e={props:this.tbodyProps,attrs:this.tbodyAttrs};return this.isTransitionGroup?(e.on=this.tbodyTransitionHandlers||{},e.nativeOn=this.bvListeners):e.on=this.bvListeners,t(this.isTransitionGroup?"transition-group":"tbody",e,this.normalizeSlot())}}),mw=["TD","TH","TR"],gw=function(t){if(!t||!t.target)return!1;var e=t.target;if(e.disabled||-1!==mw.indexOf(e.tagName))return!1;if(Ni(".dropdown-menu",e))return!0;var n="LABEL"===e.tagName?e:Ni("label",e);if(n){var r=Yi(n,"for"),i=r?Hi(r):Mi("input, select, textarea",n);if(i&&!i.disabled)return!0}return Fi(e,Nb)},vw=gw,yw=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=eo();return!!(e&&""!==e.toString().trim()&&e.containsNode&&Ti(t))&&e.containsNode(t,!0)},_w=yw,bw=c.extend({name:hr,extends:Lb,computed:{tag:function(){return"th"}}});function ww(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ww(Object(n),!0).forEach((function(e){kw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ww(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sw="row-details",Ow={props:{tbodyTrClass:{type:[String,Array,Object,Function]},tbodyTrAttr:{type:[Object,Function]},detailsTdClass:{type:[String,Array,Object]}},methods:{getTdValues:function(t,e,n,r){var i=this.$parent;if(n){var o=Qt(t,e,"");return I(n)?n(o,e,t):R(n)&&I(i[n])?i[n](o,e,t):n}return r},getThValues:function(t,e,n,r,i){var o=this.$parent;if(n){var a=Qt(t,e,"");return I(n)?n(a,e,t,r):R(n)&&I(o[n])?o[n](a,e,t,r):n}return i},getFormattedValue:function(t,e){var n=e.key,r=this.getFieldFormatter(n),i=Qt(t,n,null);return I(r)&&(i=r(i,n,t)),L(i)?"":i},toggleDetailsFactory:function(t,e){var n=this;return function(){t&&n.$set(e,"_showDetails",!e._showDetails)}},rowHovered:function(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent("row-hovered",t)},rowUnhovered:function(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent("row-unhovered",t)},renderTbodyRowCell:function(t,e,n,r){var i=this,o=this.$createElement,a=this.hasNormalizedSlot(Sw),s=this.getFormattedValue(n,t),l=t.key,c=!this.isStacked&&(this.isResponsive||this.stickyHeader)&&t.stickyColumn,u=c?t.isRowHeader?bw:Lb:t.isRowHeader?"th":"td",d=n._cellVariants&&n._cellVariants[l]?n._cellVariants[l]:t.variant||null,f={key:"row-".concat(r,"-cell-").concat(e,"-").concat(l),class:[t.class?t.class:"",this.getTdValues(n,l,t.tdClass,"")],props:{},attrs:xw({"aria-colindex":String(e+1)},t.isRowHeader?this.getThValues(n,l,t.thAttr,"row",{}):this.getTdValues(n,l,t.tdAttr,{}))};c?f.props={stackedHeading:this.isStacked?t.label:null,stickyColumn:!0,variant:d}:(f.attrs["data-label"]=this.isStacked&&!L(t.label)?gi(t.label):null,f.attrs.role=t.isRowHeader?"rowheader":"cell",f.attrs.scope=t.isRowHeader?"row":null,d&&f.class.push("".concat(this.dark?"bg":"table","-").concat(d)));var h={item:n,index:r,field:t,unformatted:Qt(n,l,""),value:s,toggleDetails:this.toggleDetailsFactory(a,n),detailsShowing:Boolean(n._showDetails)};this.supportsSelectableRows&&(h.rowSelected=this.isRowSelected(r),h.selectRow=function(){return i.selectRow(r)},h.unselectRow=function(){return i.unselectRow(r)});var p=this.$_bodyFieldSlotNameCache[l],$=p?this.normalizeSlot(p,h):gi(s);return this.isStacked&&($=[o("div",[$])]),o(u,f,[$])},renderTbodyRow:function(t,e){var n=this,r=this.$createElement,i=this.computedFields,o=this.striped,a=this.hasNormalizedSlot(Sw),s=t._showDetails&&a,l=this.$listeners["row-clicked"]||this.hasSelectableRowClick,c=[],u=s?this.safeId("_details_".concat(e,"_")):null,d=i.map((function(r,i){return n.renderTbodyRowCell(r,i,t,e)})),f=null;this.currentPage&&this.perPage&&this.perPage>0&&(f=String((this.currentPage-1)*this.perPage+e+1));var h=this.primaryKey,p=gi(Qt(t,h))||null,$=p||gi(e),m=p?this.safeId("_row_".concat(p)):null,g=this.selectableRowClasses?this.selectableRowClasses(e):{},v=this.selectableRowAttrs?this.selectableRowAttrs(e):{},y=I(this.tbodyTrClass)?this.tbodyTrClass(t,"row"):this.tbodyTrClass,_=I(this.tbodyTrAttr)?this.tbodyTrAttr(t,"row"):this.tbodyTrAttr;if(c.push(r(kb,{key:"__b-table-row-".concat($,"__"),ref:"itemRows",refInFor:!0,class:[y,g,s?"b-table-has-details":""],props:{variant:t._rowVariant||null},attrs:xw(xw({id:m},_),{},{tabindex:l?"0":null,"data-pk":p||null,"aria-details":u,"aria-owns":u,"aria-rowindex":f},v),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered}},d)),s){var b={item:t,index:e,fields:i,toggleDetails:this.toggleDetailsFactory(a,t)};this.supportsSelectableRows&&(b.rowSelected=this.isRowSelected(e),b.selectRow=function(){return n.selectRow(e)},b.unselectRow=function(){return n.unselectRow(e)});var w=r(Lb,{props:{colspan:i.length},class:this.detailsTdClass},[this.normalizeSlot(Sw,b)]);o&&c.push(r("tr",{key:"__b-table-details-stripe__".concat($),staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"}}));var x=I(this.tbodyTrClass)?this.tbodyTrClass(t,Sw):this.tbodyTrClass,k=I(this.tbodyTrAttr)?this.tbodyTrAttr(t,Sw):this.tbodyTrAttr;c.push(r(kb,{key:"__b-table-details__".concat($),staticClass:"b-table-details",class:[x],props:{variant:t._rowVariant||null},attrs:xw(xw({},k),{},{id:u,tabindex:"-1"})},[w]))}else a&&(c.push(r()),o&&c.push(r()));return c}}};function Cw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Aw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cw(Object(n),!0).forEach((function(e){Ew(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ew(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Tw=Aw(Aw({},pw),{},{tbodyClass:{type:[String,Array,Object]}}),Pw={mixins:[Ow],props:Tw,beforeDestroy:function(){this.$_bodyFieldSlotNameCache=null},methods:{getTbodyTrs:function(){var t=this.$refs||{},e=t.tbody?t.tbody.$el||t.tbody:null,n=(t.itemRows||[]).map((function(t){return t.$el||t}));return e&&e.children&&e.children.length>0&&n&&n.length>0?ni(e.children).filter((function(t){return ri(n,t)})):[]},getTbodyTrIndex:function(t){if(!Ti(t))return-1;var e="TR"===t.tagName?t:Ni("tr",t,!0);return e?this.getTbodyTrs().indexOf(e):-1},emitTbodyRowEvent:function(t,e){if(t&&this.hasListener(t)&&e&&e.target){var n=this.getTbodyTrIndex(e.target);if(n>-1){var r=this.computedItems[n];this.$emit(t,r,n,e)}}},tbodyRowEvtStopped:function(t){return this.stopIfBusy&&this.stopIfBusy(t)},onTbodyRowKeydown:function(t){var e=t.target;if(!this.tbodyRowEvtStopped(t)&&"TR"===e.tagName&&Li(e)&&0===e.tabIndex){var n=t.keyCode;if(ri([Ea,Ra],n))Io(t),this.onTBodyRowClicked(t);else if(ri([ja,Ca,Pa,Aa],n)){var r=this.getTbodyTrIndex(e);if(r>-1){Io(t);var i=this.getTbodyTrs(),o=t.shiftKey;n===Pa||o&&n===ja?oo(i[0]):n===Aa||o&&n===Ca?oo(i[i.length-1]):n===ja&&r>0?oo(i[r-1]):n===Ca&&r<i.length-1&&oo(i[r+1])}}}},onTBodyRowClicked:function(t){this.tbodyRowEvtStopped(t)||vw(t)||_w(this.$el)||this.emitTbodyRowEvent("row-clicked",t)},onTbodyRowMiddleMouseRowClicked:function(t){this.tbodyRowEvtStopped(t)||2!==t.which||this.emitTbodyRowEvent("row-middle-clicked",t)},onTbodyRowContextmenu:function(t){this.tbodyRowEvtStopped(t)||this.emitTbodyRowEvent("row-contextmenu",t)},onTbodyRowDblClicked:function(t){this.tbodyRowEvtStopped(t)||vw(t)||this.emitTbodyRowEvent("row-dblclicked",t)},renderTbody:function(){var t=this,e=this.computedItems,n=this.$createElement,r=this.hasListener("row-clicked")||this.hasSelectableRowClick,i=[],o=this.renderBusy?this.renderBusy():null;if(o)i.push(o);else{var a={},s=this.hasNormalizedSlot("cell()")?"cell()":null;this.computedFields.forEach((function(e){var n=e.key,r="cell(".concat(n,")"),i="cell(".concat(n.toLowerCase(),")");a[n]=t.hasNormalizedSlot(r)?r:t.hasNormalizedSlot(i)?i:s})),this.$_bodyFieldSlotNameCache=a,i.push(this.renderTopRow?this.renderTopRow():n()),e.forEach((function(e,n){i.push(t.renderTbodyRow(e,n))})),i.push(this.renderEmpty?this.renderEmpty():n()),i.push(this.renderBottomRow?this.renderBottomRow():n())}var l={auxclick:this.onTbodyRowMiddleMouseRowClicked,contextmenu:this.onTbodyRowContextmenu,dblclick:this.onTbodyRowDblClicked};r&&(l.click=this.onTBodyRowClicked,l.keydown=this.onTbodyRowKeydown);var c=n($w,{ref:"tbody",class:this.tbodyClass||null,props:{tbodyTransitionProps:this.tbodyTransitionProps,tbodyTransitionHandlers:this.tbodyTransitionHandlers},on:l},i);return c}}};function Bw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bw(Object(n),!0).forEach((function(e){Iw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Iw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Dw={footVariant:{type:String,default:null}},Rw=c.extend({name:fr,mixins:[qa,Wa,Eo],inheritAttrs:!1,provide:function(){return{bvTableRowGroup:this}},inject:{bvTable:{default:function(){return{}}}},props:Dw,computed:{isTfoot:function(){return!0},isDark:function(){return this.bvTable.dark},isStacked:function(){return this.bvTable.isStacked},isResponsive:function(){return this.bvTable.isResponsive},isStickyHeader:function(){return!1},hasStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant:function(){return this.bvTable.tableVariant},tfootClasses:function(){return[this.footVariant?"thead-".concat(this.footVariant):null]},tfootAttrs:function(){return Lw({role:"rowgroup"},this.bvAttrs)}},render:function(t){return t("tfoot",{class:this.tfootClasses,attrs:this.tfootAttrs,on:this.bvListeners},this.normalizeSlot())}}),jw={props:{footClone:{type:Boolean,default:!1},footVariant:{type:String,default:function(){return Zr(or,"footVariant")}},footRowVariant:{type:String},tfootClass:{type:[String,Array,Object]},tfootTrClass:{type:[String,Array,Object]}},methods:{renderTFootCustom:function(){var t=this.$createElement;return this.hasNormalizedSlot("custom-foot")?t(Rw,{key:"bv-tfoot-custom",class:this.tfootClass||null,props:{footVariant:this.footVariant||this.headVariant||null}},this.normalizeSlot("custom-foot",{items:this.computedItems.slice(),fields:this.computedFields.slice(),columns:this.computedFields.length})):t()},renderTfoot:function(){return this.footClone?this.renderThead(!0):this.renderTFootCustom()}}};function Mw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mw(Object(n),!0).forEach((function(e){Nw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Nw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zw={headVariant:{type:String,default:null}},Hw=c.extend({name:pr,mixins:[qa,Wa,Eo],inheritAttrs:!1,provide:function(){return{bvTableRowGroup:this}},inject:{bvTable:{default:function(){return{}}}},props:zw,computed:{isThead:function(){return!0},isDark:function(){return this.bvTable.dark},isStacked:function(){return this.bvTable.isStacked},isResponsive:function(){return this.bvTable.isResponsive},isStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},hasStickyHeader:function(){return!this.isStacked&&this.bvTable.stickyHeader},tableVariant:function(){return this.bvTable.tableVariant},theadClasses:function(){return[this.headVariant?"thead-".concat(this.headVariant):null]},theadAttrs:function(){return Fw({role:"rowgroup"},this.bvAttrs)}},render:function(t){return t("thead",{class:this.theadClasses,attrs:this.theadAttrs,on:this.bvListeners},this.normalizeSlot())}});function Vw(t){return Gw(t)||Ww(t)||qw(t)||Uw()}function Uw(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function qw(t,e){if(t){if("string"===typeof t)return Yw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yw(t,e):void 0}}function Ww(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Gw(t){if(Array.isArray(t))return Yw(t)}function Yw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Kw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kw(Object(n),!0).forEach((function(e){Zw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jw={props:{headVariant:{type:String,default:function(){return Zr(or,"headVariant")}},headRowVariant:{type:String},theadClass:{type:[String,Array,Object]},theadTrClass:{type:[String,Array,Object]}},methods:{fieldClasses:function(t){return[t.class?t.class:"",t.thClass?t.thClass:""]},headClicked:function(t,e,n){this.stopIfBusy&&this.stopIfBusy(t)||vw(t)||_w(this.$el)||(Io(t),this.$emit("head-clicked",e.key,e,t,n))},renderThead:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.$createElement,r=this.computedFields||[];if(this.isStackedAlways||0===r.length)return n();var i=this.isSortable,o=this.isSelectable,a=this.headVariant,s=this.footVariant,l=this.headRowVariant,c=this.footRowVariant,u=i||this.hasListener("head-clicked"),d=o?this.selectAllRows:Fu,f=o?this.clearSelected:Fu,h=function(r,o){var a=r.label,s=r.labelHtml,l=r.variant,c=r.stickyColumn,h=r.key,p=null;r.label.trim()||r.headerTitle||(p=hi(r.key));var $={};u&&($.click=function(n){t.headClicked(n,r,e)},$.keydown=function(n){var i=n.keyCode;i!==Ea&&i!==Ra||t.headClicked(n,r,e)});var m=i?t.sortTheadThAttrs(h,r,e):{},g=i?t.sortTheadThClasses(h,r,e):null,v=i?t.sortTheadThLabel(h,r,e):null,y={class:[t.fieldClasses(r),g],props:{variant:l,stickyColumn:c},style:r.thStyle||{},attrs:Xw(Xw({tabindex:u?"0":null,abbr:r.headerAbbr||null,title:r.headerTitle||null,"aria-colindex":o+1,"aria-label":p},t.getThValues(null,h,r.thAttr,e?"foot":"head",{})),m),on:$,key:h},_=["head(".concat(h,")"),"head(".concat(h.toLowerCase(),")"),"head()"];e&&(_=["foot(".concat(h,")"),"foot(".concat(h.toLowerCase(),")"),"foot()"].concat(Vw(_)));var b={label:a,column:h,field:r,isFoot:e,selectAllRows:d,clearSelected:f},w=t.normalizeSlot(_,b)||n("div",{domProps:bl(s,a)}),x=v?n("span",{staticClass:"sr-only"}," (".concat(v,")")):null;return n(bw,y,[w,x].filter(Xt))},p=r.map(h).filter(Xt),$=[];if(e)$.push(n(kb,{class:this.tfootTrClass,props:{variant:L(c)?l:c}},p));else{var m={columns:r.length,fields:r,selectAllRows:d,clearSelected:f};$.push(this.normalizeSlot("thead-top",m)||n()),$.push(n(kb,{class:this.theadTrClass,props:{variant:l}},p))}return n(e?Rw:Hw,{key:e?"bv-tfoot":"bv-thead",class:(e?this.tfootClass:this.theadClass)||null,props:e?{footVariant:s||a||null}:{headVariant:a||null}},$)}}},Qw="top-row",tx={methods:{renderTopRow:function(){var t=this.$createElement;if(!this.hasNormalizedSlot(Qw)||!0===this.stacked||""===this.stacked)return t();var e=this.computedFields;return t(kb,{key:"b-top-row",staticClass:"b-table-top-row",class:[I(this.tbodyTrClass)?this.tbodyTrClass(null,"row-top"):this.tbodyTrClass],attrs:I(this.tbodyTrAttr)?this.tbodyTrAttr(null,"row-top"):this.tbodyTrAttr},[this.normalizeSlot(Qw,{columns:e.length,fields:e})])}}},ex=c.extend({name:or,mixins:[qa,gb,bc,Eo,Jb,lb,ib,Jw,jw,Pw,ib,Yb,uw,Qb,Rb,jb,nw,Mb,tx,Ob,Db,tw]}),nx=c.extend({name:sr,mixins:[gb,bc,Eo,Jb,lb,ib,Jw,jw,Pw,Rb,jb]}),rx=Nr({components:{BTableLite:nx}}),ix=Nr({components:{BTableSimple:cb,BTbody:$w,BThead:Hw,BTfoot:Rw,BTr:kb,BTd:Lb,BTh:bw}}),ox=Nr({components:{BTable:ex},plugins:{TableLitePlugin:rx,TableSimplePlugin:ix}});function ax(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ax(Object(n),!0).forEach((function(e){lx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ax(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cx=st(Ev,["tabs","isNavBar","cardHeader"]),ux=function(t){return!t.disabled},dx=c.extend({name:ur,inject:{bvTabs:{default:function(){return{}}}},props:{tab:{default:null},tabs:{type:Array,default:function(){return[]}},id:{type:String,default:null},controls:{type:String,default:null},tabIndex:{type:Number,default:null},posInSet:{type:Number,default:null},setSize:{type:Number,default:null},noKeyNav:{type:Boolean,default:!1}},methods:{focus:function(){oo(this.$refs.link)},handleEvt:function(t){if(!this.tab.disabled){var e=t.type,n=t.keyCode,r=t.shiftKey;"click"===e||"keydown"===e&&n===Ra?(Io(t),this.$emit("click",t)):"keydown"!==e||this.noKeyNav||(-1!==[ja,Ba,Pa].indexOf(n)?(Io(t),r||n===Pa?this.$emit("first",t):this.$emit("prev",t)):-1!==[Ca,Da,Aa].indexOf(n)&&(Io(t),r||n===Aa?this.$emit("last",t):this.$emit("next",t)))}}},render:function(t){var e=this.id,n=this.tabIndex,r=this.setSize,i=this.posInSet,o=this.controls,a=this.handleEvt,s=this.tab,l=s.title,c=s.localActive,u=s.disabled,d=s.titleItemClass,f=s.titleLinkClass,h=s.titleLinkAttributes,p=t(os,{ref:"link",staticClass:"nav-link",class:[{active:c&&!u,disabled:u},f,c?this.bvTabs.activeNavItemClass:null],props:{disabled:u},attrs:sx(sx({},h),{},{role:"tab",id:e,tabindex:n,"aria-selected":c&&!u?"true":"false","aria-setsize":r,"aria-posinset":i,"aria-controls":o}),on:{click:a,keydown:a}},[this.tab.normalizeSlot(Oo)||l]);return t("li",{staticClass:"nav-item",class:[d],attrs:{role:"presentation"}},[p])}}),fx=c.extend({name:cr,mixins:[bc,Eo],provide:function(){return{bvTabs:this}},model:{prop:"value",event:"input"},props:sx(sx({},cx),{},{tag:{type:String,default:"div"},card:{type:Boolean,default:!1},end:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noNavStyle:{type:Boolean,default:!1},noKeyNav:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},contentClass:{type:[String,Array,Object]},navClass:{type:[String,Array,Object]},navWrapperClass:{type:[String,Array,Object]},activeNavItemClass:{type:[String,Array,Object]},activeTabClass:{type:[String,Array,Object]},value:{type:Number,default:null}}),data:function(){return{currentTab:li(this.value,-1),tabs:[],registeredTabs:[],isMounted:!1}},computed:{fade:function(){return!this.noFade},localNavClass:function(){var t=[];return this.card&&this.vertical&&t.push("card-header","h-100","border-bottom-0","rounded-0"),[].concat(t,[this.navClass])}},watch:{currentTab:function(t){var e=-1;this.tabs.forEach((function(n,r){t!==r||n.disabled?n.localActive=!1:(n.localActive=!0,e=r)})),this.$emit("input",e)},value:function(t,e){if(t!==e){t=li(t,-1),e=li(e,0);var n=this.tabs;n[t]&&!n[t].disabled?this.activateTab(n[t]):t<e?this.previousTab():this.nextTab()}},registeredTabs:function(){var t=this;this.$nextTick((function(){Ci((function(){t.updateTabs()}))}))},tabs:function(t,e){var n=this;Na(t.map((function(t){return t._uid})),e.map((function(t){return t._uid})))||this.$nextTick((function(){n.$emit("changed",t.slice(),e.slice())}))},isMounted:function(t){var e=this;t&&Ci((function(){e.updateTabs()})),this.setObserver(t)}},created:function(){var t=this;this.$_observer=null,this.currentTab=li(this.value,-1),this.$nextTick((function(){t.updateTabs()}))},mounted:function(){var t=this;this.updateTabs(),this.$nextTick((function(){t.isMounted=!0}))},deactivated:function(){this.isMounted=!1},activated:function(){var t=this;this.currentTab=li(this.value,-1),this.$nextTick((function(){t.updateTabs(),t.isMounted=!0}))},beforeDestroy:function(){this.isMounted=!1},destroyed:function(){this.tabs=[]},methods:{registerTab:function(t){var e=this;ri(this.registeredTabs,t)||(this.registeredTabs.push(t),t.$once("hook:destroyed",(function(){e.unregisterTab(t)})))},unregisterTab:function(t){this.registeredTabs=this.registeredTabs.slice().filter((function(e){return e!==t}))},setObserver:function(t){if(this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,t){var e=this,n=function(){e.$nextTick((function(){Ci((function(){e.updateTabs()}))}))};this.$_observer=Uu(this.$refs.tabsContainer,n,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs:function(){var t=this.registeredTabs.filter((function(t){return 0===t.$children.filter((function(t){return t._isTab})).length})),e=[];if(this.isMounted&&t.length>0){var n=t.map((function(t){return"#".concat(t.safeId())})).join(", ");e=ji(n,this.$el).map((function(t){return t.id})).filter(Xt)}return iw(t,(function(t,n){return e.indexOf(t.safeId())-e.indexOf(n.safeId())}))},updateTabs:function(){var t=this.getTabs(),e=t.indexOf(t.slice().reverse().find((function(t){return t.localActive&&!t.disabled})));if(e<0){var n=this.currentTab;n>=t.length?e=t.indexOf(t.slice().reverse().find(ux)):t[n]&&!t[n].disabled&&(e=n)}e<0&&(e=t.indexOf(t.find(ux))),t.forEach((function(t){t.localActive=!1})),t[e]&&(t[e].localActive=!0),this.tabs=t,this.currentTab=e},getButtonForTab:function(t){return(this.$refs.buttons||[]).find((function(e){return e.tab===t}))},updateButton:function(t){var e=this.getButtonForTab(t);e&&e.$forceUpdate&&e.$forceUpdate()},activateTab:function(t){var e=!1;if(t){var n=this.tabs.indexOf(t);if(!t.disabled&&n>-1&&n!==this.currentTab){var r=new rf("activate-tab",{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(r.type,n,this.currentTab,r),r.defaultPrevented||(e=!0,this.currentTab=n)}}return e||this.currentTab===this.value||this.$emit("input",this.currentTab),e},deactivateTab:function(t){return!!t&&this.activateTab(this.tabs.filter((function(e){return e!==t})).find(ux))},focusButton:function(t){var e=this;this.$nextTick((function(){oo(e.getButtonForTab(t))}))},emitTabClick:function(t,e){V(e)&&t&&t.$emit&&!t.disabled&&t.$emit("click",e)},clickTab:function(t,e){this.activateTab(t),this.emitTabClick(t,e)},firstTab:function(t){var e=this.tabs.find(ux);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))},previousTab:function(t){var e=Uo(this.currentTab,0),n=this.tabs.slice(0,e).reverse().find(ux);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},nextTab:function(t){var e=Uo(this.currentTab,-1),n=this.tabs.slice(e+1).find(ux);this.activateTab(n)&&t&&(this.focusButton(n),this.emitTabClick(n,t))},lastTab:function(t){var e=this.tabs.slice().reverse().find(ux);this.activateTab(e)&&t&&(this.focusButton(e),this.emitTabClick(e,t))}},render:function(t){var e=this,n=this.tabs,r=this.noKeyNav,i=this.firstTab,o=this.previousTab,a=this.nextTab,s=this.lastTab,l=n.find((function(t){return t.localActive&&!t.disabled})),c=n.find((function(t){return!t.disabled})),u=n.map((function(u,d){var f=null;return r||(f=-1,(l===u||!l&&c===u)&&(f=null)),t(dx,{key:u._uid||d,ref:"buttons",refInFor:!0,props:{tab:u,tabs:n,id:u.controlledBy||(u.safeId?u.safeId("_BV_tab_button_"):null),controls:u.safeId?u.safeId():null,tabIndex:f,setSize:n.length,posInSet:d+1,noKeyNav:r},on:{click:function(t){e.clickTab(u,t)},first:i,prev:o,next:a,last:s}})})),d=t(Pv,{ref:"nav",class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:this.fill,justified:this.justified,align:this.align,tabs:!this.noNavStyle&&!this.pills,pills:!this.noNavStyle&&this.pills,vertical:this.vertical,small:this.small,cardHeader:this.card&&!this.vertical}},[this.normalizeSlot("tabs-start")||t(),u,this.normalizeSlot("tabs-end")||t()]);d=t("div",{key:"bv-tabs-nav",class:[{"card-header":this.card&&!this.vertical&&!this.end,"card-footer":this.card&&!this.vertical&&this.end,"col-auto":this.vertical},this.navWrapperClass]},[d]);var f=t();n&&0!==n.length||(f=t("div",{key:"bv-empty-tab",class:["tab-pane","active",{"card-body":this.card}]},this.normalizeSlot("empty")));var h=t("div",{ref:"tabsContainer",key:"bv-tabs-container",staticClass:"tab-content",class:[{col:this.vertical},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")}},ii(this.normalizeSlot(),f));return t(this.tag,{staticClass:"tabs",class:{row:this.vertical,"no-gutters":this.vertical&&this.card},attrs:{id:this.safeId()}},[this.end?h:t(),[d],this.end?t():h])}}),hx=c.extend({name:ir,mixins:[bc,Eo],inject:{bvTabs:{default:function(){return{}}}},props:{active:{type:Boolean,default:!1},tag:{type:String,default:"div"},buttonId:{type:String},title:{type:String,default:""},titleItemClass:{type:[String,Array,Object]},titleLinkClass:{type:[String,Array,Object]},titleLinkAttributes:{type:Object},disabled:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},data:function(){return{localActive:this.active&&!this.disabled,show:!1}},computed:{tabClasses:function(){return[{active:this.localActive,disabled:this.disabled,"card-body":this.bvTabs.card&&!this.noBody},this.localActive?this.bvTabs.activeTabClass:null]},controlledBy:function(){return this.buttonId||this.safeId("__BV_tab_button__")},computedNoFade:function(){return!this.bvTabs.fade},computedLazy:function(){return this.bvTabs.lazy||this.lazy},_isTab:function(){return!0}},watch:{localActive:function(t){this.$emit("update:active",t)},active:function(t,e){t!==e&&(t?this.activate():this.deactivate()||this.$emit("update:active",this.localActive))},disabled:function(t,e){if(t!==e){var n=this.bvTabs.firstTab;t&&this.localActive&&n&&(this.localActive=!1,n())}}},mounted:function(){this.registerTab(),this.show=this.localActive},updated:function(){var t=this.bvTabs.updateButton;t&&this.hasNormalizedSlot(Oo)&&t(this)},destroyed:function(){this.unregisterTab()},methods:{registerTab:function(){var t=this.bvTabs.registerTab;t&&t(this)},unregisterTab:function(){var t=this.bvTabs.unregisterTab;t&&t(this)},activate:function(){var t=this.bvTabs.activateTab;return!(!t||this.disabled)&&t(this)},deactivate:function(){var t=this.bvTabs.deactivateTab;return!(!t||!this.localActive)&&t(this)}},render:function(t){var e=this.localActive,n=t(this.tag,{ref:"panel",staticClass:"tab-pane",class:this.tabClasses,directives:[{name:"show",rawName:"v-show",value:e,expression:"localActive"}],attrs:{role:"tabpanel",id:this.safeId(),"aria-hidden":e?"false":"true","aria-labelledby":this.controlledBy||null}},[e||!this.computedLazy?this.normalizeSlot():t()]);return t(po,{props:{mode:"out-in",noFade:this.computedNoFade}},[n])}}),px=Nr({components:{BTabs:fx,BTab:hx}}),$x=Nr({components:{BTime:nm}}),mx=n("2b88"),gx={name:{type:String,required:!0},ariaLive:{type:String,default:function(){return Zr(gr,"ariaLive")}},ariaAtomic:{type:String,default:function(){return Zr(gr,"ariaAtomic")}},role:{type:String,default:function(){return Zr(gr,"role")}}},vx=c.extend({data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(t){var e=this;Ci((function(){Ui(t,"".concat(e.name,"-enter-to"))}))}},render:function(t){return t("transition-group",{props:{tag:"div",name:this.name},on:{afterEnter:this.onAfterEnter}},this.$slots.default)}}),yx=c.extend({name:gr,props:gx,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var t=this;this.staticName=this.name,mx["Wormhole"].hasTarget(this.staticName)?(te('A "<portal-target>" with name "'.concat(this.name,'" already exists in the document.'),gr),this.dead=!0):(this.doRender=!0,this.$once("hook:beforeDestroy",(function(){t.$root.$emit("bv::toaster::destroyed",t.staticName)})))},destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},render:function(t){var e=t("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var n=t(mx["PortalTarget"],{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:vx}});e=t("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[n])}return e}});function _x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_x(Object(n),!0).forEach((function(e){wx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xx=1e3,kx=at(is,["href","to"]),Sx=bx({id:{type:String},title:{type:String},toaster:{type:String,default:function(){return Zr(mr,"toaster")}},visible:{type:Boolean,default:!1},variant:{type:String,default:function(){return Zr(mr,"variant")}},isStatus:{type:Boolean,default:!1},appendToast:{type:Boolean,default:!1},noAutoHide:{type:Boolean,default:!1},autoHideDelay:{type:[Number,String],default:function(){return Zr(mr,"autoHideDelay")}},noCloseButton:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noHoverPause:{type:Boolean,default:!1},solid:{type:Boolean,default:!1},toastClass:{type:[String,Object,Array],default:function(){return Zr(mr,"toastClass")}},headerClass:{type:[String,Object,Array],default:function(){return Zr(mr,"headerClass")}},bodyClass:{type:[String,Object,Array],default:function(){return Zr(mr,"bodyClass")}},static:{type:Boolean,default:!1}},kx),Ox=c.extend({name:mr,mixins:[qa,bc,hd,Eo,xg],inheritAttrs:!1,model:{prop:"visible",event:"change"},props:Sx,data:function(){return{isMounted:!1,doRender:!1,localShow:!1,isTransitioning:!1,isHiding:!1,order:0,timer:null,dismissStarted:0,resumeDismiss:0}},computed:{bToastClasses:function(){return wx({"b-toast-solid":this.solid,"b-toast-append":this.appendToast,"b-toast-prepend":!this.appendToast},"b-toast-".concat(this.variant),this.variant)},slotScope:function(){return{hide:this.hide}},computedDuration:function(){return Uo(li(this.autoHideDelay,0),xx)},computedToaster:function(){return String(this.toaster)},transitionHandlers:function(){return{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,afterLeave:this.onAfterLeave}},computedAttrs:function(){return bx(bx({},this.bvAttrs),{},{id:this.safeId(),tabindex:"0"})}},watch:{visible:function(t){t?this.show():this.hide()},localShow:function(t){t!==this.visible&&this.$emit("change",t)},toaster:function(){this.$nextTick(this.ensureToaster)},static:function(t){t&&this.localShow&&this.ensureToaster()}},mounted:function(){var t=this;this.isMounted=!0,this.$nextTick((function(){t.visible&&Ci((function(){t.show()}))})),this.listenOnRoot("bv::show::toast",(function(e){e===t.safeId()&&t.show()})),this.listenOnRoot("bv::hide::toast",(function(e){e&&e!==t.safeId()||t.hide()})),this.listenOnRoot("bv::toaster::destroyed",(function(e){e===t.computedToaster&&t.hide()}))},beforeDestroy:function(){this.clearDismissTimer()},methods:{show:function(){var t=this;if(!this.localShow){this.ensureToaster();var e=this.buildEvent("show");this.emitEvent(e),this.dismissStarted=this.resumeDismiss=0,this.order=Date.now()*(this.appendToast?1:-1),this.isHiding=!1,this.doRender=!0,this.$nextTick((function(){Ci((function(){t.localShow=!0}))}))}},hide:function(){var t=this;if(this.localShow){var e=this.buildEvent("hide");this.emitEvent(e),this.setHoverHandler(!1),this.dismissStarted=this.resumeDismiss=0,this.clearDismissTimer(),this.isHiding=!0,Ci((function(){t.localShow=!1}))}},buildEvent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new rf(t,bx(bx({cancelable:!1,target:this.$el||null,relatedTarget:null},e),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(t){var e=t.type;this.emitOnRoot("bv::toast:".concat(e),t),this.$emit(e,t)},ensureToaster:function(){if(!this.static&&!mx["Wormhole"].hasTarget(this.computedToaster)){var t=document.createElement("div");document.body.appendChild(t);var e=new yx({parent:this.$root,propsData:{name:this.computedToaster}});e.$mount(t)}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.timer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.timer),this.timer=null},setHoverHandler:function(t){var e=this.$refs["b-toast"];Lo(t,e,"mouseenter",this.onPause,ju),Lo(t,e,"mouseleave",this.onUnPause,ju)},onPause:function(){if(!this.noAutoHide&&!this.noHoverPause&&this.timer&&!this.resumeDismiss){var t=Date.now()-this.dismissStarted;t>0&&(this.clearDismissTimer(),this.resumeDismiss=Uo(this.computedDuration-t,xx))}},onUnPause:function(){this.noAutoHide||this.noHoverPause||!this.resumeDismiss?this.resumeDismiss=this.dismissStarted=0:this.startDismissTimer()},onLinkClick:function(){var t=this;this.$nextTick((function(){Ci((function(){t.hide()}))}))},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var t=this.buildEvent("shown");this.emitEvent(t),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var t=this.buildEvent("hidden");this.emitEvent(t),this.doRender=!1},makeToast:function(t){var e=this,n=[],r=this.normalizeSlot("toast-title",this.slotScope);r?n.push(r):this.title&&n.push(t("strong",{staticClass:"mr-2"},this.title)),this.noCloseButton||n.push(t(jo,{staticClass:"ml-auto mb-1",on:{click:function(){e.hide()}}}));var i=t();n.length>0&&(i=t("header",{staticClass:"toast-header",class:this.headerClass},n));var o=_a(this),a=t(o?os:"div",{staticClass:"toast-body",class:this.bodyClass,props:o?ca(kx,this):{},on:o?{click:this.onLinkClick}:{}},[this.normalizeSlot(go,this.slotScope)||t()]),s=t("div",{key:"toast-".concat(this._uid),ref:"toast",staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs},[i,a]);return s}},render:function(t){if(!this.doRender||!this.isMounted)return t();var e="b-toast-".concat(this._uid),n=this.static?{}:this.scopedStyleAttrs;return t(mx["Portal"],{props:{name:e,to:this.computedToaster,order:this.order,slim:!0,disabled:this.static}},[t("div",{key:e,ref:"b-toast",staticClass:"b-toast",class:this.bToastClasses,attrs:bx(bx({},n),{},{id:this.safeId("_toast_outer"),role:this.isHiding?null:this.isStatus?"status":"alert","aria-live":this.isHiding?null:this.isStatus?"polite":"assertive","aria-atomic":this.isHiding?null:"true"})},[t(po,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(t):t()])])])}});function Cx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ax(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ex(t,e,n){return e&&Ax(t.prototype,e),n&&Ax(t,n),t}function Tx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Px(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tx(Object(n),!0).forEach((function(e){Bx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lx(t){return jx(t)||Rx(t)||Dx(t)||Ix()}function Ix(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dx(t,e){if(t){if("string"===typeof t)return Mx(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mx(t,e):void 0}}function Rx(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function jx(t){if(Array.isArray(t))return Mx(t)}function Mx(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Fx="$bvToast",Nx="_bv__toast",zx=["id"].concat(Lx(nt(st(Sx,["static","visible"])))),Hx={toastContent:"default",title:"toast-title"},Vx=function(t){return zx.reduce((function(e,n){return P(t[n])||(e[n]=t[n]),e}),{})},Ux=function(t){var e=t.extend({name:vr,extends:Ox,destroyed:function(){this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},mounted:function(){var t=this,e=function(){t.localShow=!1,t.doRender=!1,t.$nextTick((function(){t.$nextTick((function(){Ci((function(){t.$destroy()}))}))}))};this.$parent.$once("hook:destroyed",e),this.$once("hidden",e),this.listenOnRoot("bv::toaster::destroyed",(function(n){n===t.toaster&&e()}))}}),n=function(t,n){if(!ee(Fx)){var r=new e({parent:n,propsData:Px(Px(Px({},Vx(Zr(mr)||{})),st(t,nt(Hx))),{},{static:!1,visible:!0})});nt(Hx).forEach((function(e){var i=t[e];P(i)||("title"===e&&R(i)&&(i=[n.$createElement("strong",{class:"mr-2"},i)]),r.$slots[Hx[e]]=ii(i))}));var i=document.createElement("div");document.body.appendChild(i),r.$mount(i)}},r=function(){function t(e){Cx(this,t),X(this,{_vm:e,_root:e.$root}),J(this,{_vm:ct(),_root:ct()})}return Ex(t,[{key:"toast",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t&&!ee(Fx)&&n(Px(Px({},Vx(e)),{},{toastContent:t}),this._vm)}},{key:"show",value:function(t){t&&this._root.$emit("bv::show::toast",t)}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._root.$emit("bv::hide::toast",t)}}]),t}();t.mixin({beforeCreate:function(){this[Nx]=new r(this)}}),rt(t.prototype,Fx)||Q(t.prototype,Fx,{get:function(){return this&&this[Nx]||te('"'.concat(Fx,'" must be accessed from a Vue instance "this" context.'),mr),this[Nx]}})},qx=Nr({plugins:{plugin:Ux}}),Wx=Nr({components:{BToast:Ox,BToaster:yx},plugins:{BVToastPlugin:qx}});function Gx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gx(Object(n),!0).forEach((function(e){Kx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xx="__BV_Tooltip__",Zx="hover focus",Jx={focus:!0,hover:!0,click:!0,blur:!0,manual:!0},Qx=/^html$/i,tk=/^noninteractive$/i,ek=/^nofade$/i,nk=/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/i,rk=/^(window|viewport|scrollParent)$/i,ik=/^d\d+$/i,ok=/^ds\d+$/i,ak=/^dh\d+$/i,sk=/^o-?\d+$/i,lk=/^v-.+$/i,ck=/\s+/,uk=function(t,e){var n={title:void 0,trigger:"",placement:"top",fallbackPlacement:"flip",container:!1,animation:!0,offset:0,id:null,html:!1,interactive:!0,disabled:!1,delay:Zr(yr,"delay"),boundary:String(Zr(yr,"boundary")),boundaryPadding:li(Zr(yr,"boundaryPadding"),0),variant:Zr(yr,"variant"),customClass:Zr(yr,"customClass")};if(R(t.value)||j(t.value)||I(t.value)?n.title=t.value:z(t.value)&&(n=Yx(Yx({},n),t.value)),P(n.title)){var r=e.data||{};n.title=r.attrs&&!L(r.attrs.title)?r.attrs.title:void 0}z(n.delay)||(n.delay={show:li(n.delay,0),hide:li(n.delay,0)}),t.arg&&(n.container="#".concat(t.arg)),nt(t.modifiers).forEach((function(t){if(Qx.test(t))n.html=!0;else if(tk.test(t))n.interactive=!1;else if(ek.test(t))n.animation=!1;else if(nk.test(t))n.placement=t;else if(rk.test(t))t="scrollparent"===t?"scrollParent":t,n.boundary=t;else if(ik.test(t)){var e=li(t.slice(1),0);n.delay.show=e,n.delay.hide=e}else ok.test(t)?n.delay.show=li(t.slice(2),0):ak.test(t)?n.delay.hide=li(t.slice(2),0):sk.test(t)?n.offset=li(t.slice(1),0):lk.test(t)&&(n.variant=t.slice(2)||null)}));var i={};return ii(n.trigger||"").filter(Xt).join(" ").trim().toLowerCase().split(ck).forEach((function(t){Jx[t]&&(i[t]=!0)})),nt(t.modifiers).forEach((function(t){t=t.toLowerCase(),Jx[t]&&(i[t]=!0)})),n.trigger=nt(i).join(" "),"blur"===n.trigger&&(n.trigger="focus"),n.trigger||(n.trigger=Zx),n},dk=function(t,e,n){if(u["j"]){var r=uk(e,n);if(!t[Xx]){var i=n.context;t[Xx]=new a_({parent:i,_scopeId:bg(i,void 0)}),t[Xx].__bv_prev_data__={},t[Xx].$on("show",(function(){I(r.title)&&t[Xx].updateData({title:r.title(t)})}))}var o={title:r.title,triggers:r.trigger,placement:r.placement,fallbackPlacement:r.fallbackPlacement,variant:r.variant,customClass:r.customClass,container:r.container,boundary:r.boundary,delay:r.delay,offset:r.offset,noFade:!r.animation,id:r.id,interactive:r.interactive,disabled:r.disabled,html:r.html},a=t[Xx].__bv_prev_data__;if(t[Xx].__bv_prev_data__=o,!Na(o,a)){var s={target:t};nt(o).forEach((function(e){o[e]!==a[e]&&(s[e]="title"===e&&I(o[e])?o[e](t):o[e])})),t[Xx].updateData(s)}}},fk=function(t){t[Xx]&&(t[Xx].$destroy(),t[Xx]=null),delete t[Xx]},hk={bind:function(t,e,n){dk(t,e,n)},componentUpdated:function(t,e,n){n.context.$nextTick((function(){dk(t,e,n)}))},unbind:function(t){fk(t)}},pk=Nr({directives:{VBTooltip:hk}}),$k=Nr({components:{BTooltip:s_},plugins:{VBTooltipPlugin:pk}}),mk=Nr({plugins:{AlertPlugin:Ho,AspectPlugin:ia,AvatarPlugin:fl,BadgePlugin:yl,BreadcrumbPlugin:Ll,ButtonPlugin:Il,ButtonGroupPlugin:Ml,ButtonToolbarPlugin:zl,CalendarPlugin:Oc,CardPlugin:Du,CarouselPlugin:od,CollapsePlugin:Wd,DropdownPlugin:nh,EmbedPlugin:ah,FormPlugin:yh,FormCheckboxPlugin:Dh,FormDatepickerPlugin:Jh,FormFilePlugin:cp,FormGroupPlugin:Ip,FormInputPlugin:Vp,FormRadioPlugin:Wp,FormRatingPlugin:t$,FormSelectPlugin:a$,FormSpinbuttonPlugin:y$,FormTagsPlugin:R$,FormTextareaPlugin:z$,FormTimepickerPlugin:cm,ImagePlugin:um,InputGroupPlugin:Em,JumbotronPlugin:Rm,LayoutPlugin:Gm,LinkPlugin:Ym,ListGroupPlugin:og,MediaPlugin:hg,ModalPlugin:Cv,NavPlugin:Wv,NavbarPlugin:ly,OverlayPlugin:my,PaginationPlugin:Ly,PaginationNavPlugin:zy,PopoverPlugin:B_,ProgressPlugin:D_,SidebarPlugin:Y_,SkeletonPlugin:$b,SpinnerPlugin:mb,TablePlugin:ox,TabsPlugin:px,TimePlugin:$x,ToastPlugin:Wx,TooltipPlugin:$k}}),gk=Nr({directives:{VBHover:Hh}}),vk=Nr({directives:{VBModal:av}});function yk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yk(Object(n),!0).forEach((function(e){bk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bk(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xk(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kk(t,e,n){return e&&xk(t.prototype,e),n&&xk(t,n),t}var Sk="v-b-scrollspy",Ok="bv::scrollspy::activate",Ck="dropdown-item",Ak="active",Ek=".nav, .list-group",Tk=".nav-link",Pk=".nav-item",Bk=".list-group-item",Lk=".dropdown, .dropup",Ik=".dropdown-item",Dk=".dropdown-toggle",Rk="offset",jk="position",Mk={element:"body",offset:10,method:"auto",throttle:75},Fk={element:"(string|element|component)",offset:"number",method:"string",throttle:"number"},Nk=["webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd"],zk=function(t){return it(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()},Hk=function(t,e,n){for(var r in n)if(rt(n,r)){var i=n[r],o=e[r],a=o&&Ti(o)?"element":zk(o);a=o&&o._isVue?"component":a,new RegExp(i).test(a)||te("".concat(t,': Option "').concat(r,'" provided type "').concat(a,'" but expected type "').concat(i,'"'))}},Vk=function(){function t(e,n,r){wk(this,t),this.$el=e,this.$scroller=null,this.$selector=[Tk,Bk,Ik].join(","),this.$offsets=[],this.$targets=[],this.$activeTarget=null,this.$scrollHeight=0,this.$resizeTimeout=null,this.$scrollerObserver=null,this.$targetsObserver=null,this.$root=r||null,this.$config=null,this.updateConfig(n)}return kk(t,[{key:"updateConfig",value:function(t,e){this.$scroller&&(this.unlisten(),this.$scroller=null);var n=_k(_k({},this.constructor.Default),t);if(e&&(this.$root=e),Hk(this.constructor.Name,n,this.constructor.DefaultType),this.$config=n,this.$root){var r=this;this.$root.$nextTick((function(){r.listen()}))}else this.listen()}},{key:"dispose",value:function(){this.unlisten(),clearTimeout(this.$resizeTimeout),this.$resizeTimeout=null,this.$el=null,this.$config=null,this.$scroller=null,this.$selector=null,this.$offsets=null,this.$targets=null,this.$activeTarget=null,this.$scrollHeight=null}},{key:"listen",value:function(){var t=this,e=this.getScroller();e&&"BODY"!==e.tagName&&Po(e,"scroll",this,ju),Po(window,"scroll",this,ju),Po(window,"resize",this,ju),Po(window,"orientationchange",this,ju),Nk.forEach((function(e){Po(window,e,t,ju)})),this.setObservers(!0),this.handleEvent("refresh")}},{key:"unlisten",value:function(){var t=this,e=this.getScroller();this.setObservers(!1),e&&"BODY"!==e.tagName&&Bo(e,"scroll",this,ju),Bo(window,"scroll",this,ju),Bo(window,"resize",this,ju),Bo(window,"orientationchange",this,ju),Nk.forEach((function(e){Bo(window,e,t,ju)}))}},{key:"setObservers",value:function(t){var e=this;this.$scrollerObserver&&this.$scrollerObserver.disconnect(),this.$targetsObserver&&this.$targetsObserver.disconnect(),this.$scrollerObserver=null,this.$targetsObserver=null,t&&(this.$targetsObserver=Uu(this.$el,(function(){e.handleEvent("mutation")}),{subtree:!0,childList:!0,attributes:!0,attributeFilter:["href"]}),this.$scrollerObserver=Uu(this.getScroller(),(function(){e.handleEvent("mutation")}),{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["id","style","class"]}))}},{key:"handleEvent",value:function(t){var e=R(t)?t:t.type,n=this,r=function(){n.$resizeTimeout||(n.$resizeTimeout=setTimeout((function(){n.refresh(),n.process(),n.$resizeTimeout=null}),n.$config.throttle))};"scroll"===e?(this.$scrollerObserver||this.listen(),this.process()):/(resize|orientationchange|mutation|refresh)/.test(e)&&r()}},{key:"refresh",value:function(){var t=this,e=this.getScroller();if(e){var n=e!==e.window?jk:Rk,r="auto"===this.$config.method?n:this.$config.method,i=r===jk?ro:no,o=r===jk?this.getScrollTop():0;return this.$offsets=[],this.$targets=[],this.$scrollHeight=this.getScrollHeight(),ji(this.$selector,this.$el).map((function(t){return Yi(t,"href")})).filter((function(t){return t&&Ot.test(t||"")})).map((function(t){var n=t.replace(Ot,"$1").trim();if(!n)return null;var r=Mi(n,e);return r&&Ii(r)?{offset:li(i(r).top,0)+o,target:n}:null})).filter(Boolean).sort((function(t,e){return t.offset-e.offset})).reduce((function(e,n){return e[n.target]||(t.$offsets.push(n.offset),t.$targets.push(n.target),e[n.target]=!0),e}),{}),this}}},{key:"process",value:function(){var t=this.getScrollTop()+this.$config.offset,e=this.getScrollHeight(),n=this.$config.offset+e-this.getOffsetHeight();if(this.$scrollHeight!==e&&this.refresh(),t>=n){var r=this.$targets[this.$targets.length-1];this.$activeTarget!==r&&this.activate(r)}else{if(this.$activeTarget&&t<this.$offsets[0]&&this.$offsets[0]>0)return this.$activeTarget=null,void this.clear();for(var i=this.$offsets.length;i--;){var o=this.$activeTarget!==this.$targets[i]&&t>=this.$offsets[i]&&(P(this.$offsets[i+1])||t<this.$offsets[i+1]);o&&this.activate(this.$targets[i])}}}},{key:"getScroller",value:function(){if(this.$scroller)return this.$scroller;var t=this.$config.element;return t?(Ti(t.$el)?t=t.$el:R(t)&&(t=Mi(t)),t?(this.$scroller="BODY"===t.tagName?window:t,this.$scroller):null):null}},{key:"getScrollTop",value:function(){var t=this.getScroller();return t===window?t.pageYOffset:t.scrollTop}},{key:"getScrollHeight",value:function(){return this.getScroller().scrollHeight||Uo(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"getOffsetHeight",value:function(){var t=this.getScroller();return t===window?window.innerHeight:Qi(t).height}},{key:"activate",value:function(t){var e=this;this.$activeTarget=t,this.clear();var n=ji(this.$selector.split(",").map((function(e){return"".concat(e,'[href$="').concat(t,'"]')})).join(","),this.$el);n.forEach((function(t){if(qi(t,Ck)){var n=Ni(Lk,t);n&&e.setActiveState(Mi(Dk,n),!0),e.setActiveState(t,!0)}else{e.setActiveState(t,!0),Fi(t.parentElement,Pk)&&e.setActiveState(t.parentElement,!0);var r=t;while(r){r=Ni(Ek,r);var i=r?r.previousElementSibling:null;i&&Fi(i,"".concat(Tk,", ").concat(Bk))&&e.setActiveState(i,!0),i&&Fi(i,Pk)&&(e.setActiveState(Mi(Tk,i),!0),e.setActiveState(i,!0))}}})),n&&n.length>0&&this.$root&&this.$root.$emit(Ok,t,n)}},{key:"clear",value:function(){var t=this;ji("".concat(this.$selector,", ").concat(Pk),this.$el).filter((function(t){return qi(t,Ak)})).forEach((function(e){return t.setActiveState(e,!1)}))}},{key:"setActiveState",value:function(t,e){t&&(e?Vi(t,Ak):Ui(t,Ak))}}],[{key:"Name",get:function(){return Sk}},{key:"Default",get:function(){return Mk}},{key:"DefaultType",get:function(){return Fk}}]),t}(),Uk=Vk,qk="__BV_ScrollSpy__",Wk=/^\d+$/,Gk=/^(auto|position|offset)$/,Yk=function(t){var e={};return t.arg&&(e.element="#".concat(t.arg)),nt(t.modifiers).forEach((function(t){Wk.test(t)?e.offset=li(t,0):Gk.test(t)&&(e.method=t)})),R(t.value)?e.element=t.value:j(t.value)?e.offset=Ko(t.value):N(t.value)&&nt(t.value).filter((function(t){return!!Uk.DefaultType[t]})).forEach((function(n){e[n]=t.value[n]})),e},Kk=function(t,e,n){if(u["j"]){var r=Yk(e);t[qk]?t[qk].updateConfig(r,n.context.$root):t[qk]=new Uk(t,r,n.context.$root)}},Xk=function(t){t[qk]&&(t[qk].dispose(),t[qk]=null,delete t[qk])},Zk={bind:function(t,e,n){Kk(t,e,n)},inserted:function(t,e,n){Kk(t,e,n)},update:function(t,e,n){e.value!==e.oldValue&&Kk(t,e,n)},componentUpdated:function(t,e,n){e.value!==e.oldValue&&Kk(t,e,n)},unbind:function(t){Xk(t)}},Jk=Nr({directives:{VBScrollspy:Zk}}),Qk=Nr({directives:{VBVisible:mu}}),tS=Nr({plugins:{VBHoverPlugin:gk,VBModalPlugin:vk,VBPopoverPlugin:P_,VBScrollspyPlugin:Jk,VBTogglePlugin:qd,VBTooltipPlugin:pk,VBVisiblePlugin:Qk}}),eS="BootstrapVue",nS=Fr({plugins:{componentsPlugin:mk,directivesPlugin:tS}}),rS={install:nS,NAME:eS};e["a"]=rS},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),l=n("7b0b"),c=n("44ad"),u=Object.assign,d=Object.defineProperty;t.exports=!u||i((function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||o(u({},e)).join("")!=i}))?function(t,e){var n=l(t),i=arguments.length,u=1,d=a.f,f=s.f;while(i>u){var h,p=c(arguments[u++]),$=d?o(p).concat(d(p)):o(p),m=$.length,g=0;while(m>g)h=$[g++],r&&!f.call(p,h)||(n[h]=p[h])}return n}:u},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"697e":function(t,e,n){},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),d=n("f772"),f=n("d012"),h=s.WeakMap,p=function(t){return o(t)?i(t):r(t,{})},$=function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var m=new h,g=m.get,v=m.has,y=m.set;r=function(t,e){return y.call(m,t,e),e},i=function(t){return g.call(m,t)||{}},o=function(t){return v.call(m,t)}}else{var _=d("state");f[_]=!0,r=function(t,e){return c(t,_,e),e},i=function(t){return u(t,_)?t[_]:{}},o=function(t){return u(t,_)}}t.exports={set:r,get:i,has:o,enforce:p,getterFor:$}},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,d=String(String).split("String");(t.exports=function(t,e,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),u(n).source=d.join("string"==typeof e?e:"")),t!==r?(l?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=n:i(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"715d":function(t,e,n){(function(t){t(n("56b3"),n("b933"),n("9c7b"))})((function(t){"use strict";function e(t,e,n,r){this.cm=t,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=t.annotateScrollbar(i),this.query=e,this.caseFold=n,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;t.on("change",this.changeHandler=function(t,e){a.onChange(e)})}t.defineExtension("showMatchesOnScrollbar",(function(t,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new e(this,t,n,r)}));var n=1e3;function r(t,e,n){return t<=e?t:Math.max(e,t+n)}e.prototype.findMatches=function(){if(this.gap){for(var e=0;e<this.matches.length;e++){var r=this.matches[e];if(r.from.line>=this.gap.to)break;r.to.line>=this.gap.from&&this.matches.splice(e--,1)}var i=this.cm.getSearchCursor(this.query,t.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),o=this.options&&this.options.maxMatches||n;while(i.findNext()){r={from:i.from(),to:i.to()};if(r.from.line>=this.gap.to)break;if(this.matches.splice(e++,0,r),this.matches.length>o)break}this.gap=null}},e.prototype.onChange=function(e){var n=e.from.line,i=t.changeEnd(e).line,o=i-e.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,o),e.from.line),this.gap.to=Math.max(r(this.gap.to,n,o),e.from.line)):this.gap={from:e.from.line,to:i+1},o)for(var a=0;a<this.matches.length;a++){var s=this.matches[a],l=r(s.from.line,n,o);l!=s.from.line&&(s.from=t.Pos(l,s.from.ch));var c=r(s.to.line,n,o);c!=s.to.line&&(s.to=t.Pos(c,s.to.ch))}clearTimeout(this.update);var u=this;this.update=setTimeout((function(){u.updateAfterChange()}),250)},e.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},e.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}))},7289:function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";var e={},n=/[^\s\u00a0]/,r=t.Pos,i=t.cmpPos;function o(t){var e=t.search(n);return-1==e?0:e}function a(t,e,n){return/\bstring\b/.test(t.getTokenTypeAt(r(e.line,0)))&&!/^[\'\"\`]/.test(n)}function s(t,e){var n=t.getMode();return!1!==n.useInnerComments&&n.innerMode?t.getModeAt(e):n}t.commands.toggleComment=function(t){t.toggleComment()},t.defineExtension("toggleComment",(function(t){t||(t=e);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),c=o[s].to();l.line>=i||(c.line>=i&&(c=r(i,0)),i=l.line,null==a?n.uncomment(l,c,t)?a="un":(n.lineComment(l,c,t),a="line"):"un"==a?n.uncomment(l,c,t):n.lineComment(l,c,t))}})),t.defineExtension("lineComment",(function(t,i,l){l||(l=e);var c=this,u=s(c,t),d=c.getLine(t.line);if(null!=d&&!a(c,t,d)){var f=l.lineComment||u.lineComment;if(f){var h=Math.min(0!=i.ch||i.line==t.line?i.line+1:i.line,c.lastLine()+1),p=null==l.padding?" ":l.padding,$=l.commentBlankLines||t.line==i.line;c.operation((function(){if(l.indent){for(var e=null,i=t.line;i<h;++i){var a=c.getLine(i),s=a.slice(0,o(a));(null==e||e.length>s.length)&&(e=s)}for(i=t.line;i<h;++i){a=c.getLine(i);var u=e.length;($||n.test(a))&&(a.slice(0,u)!=e&&(u=o(a)),c.replaceRange(e+f+p,r(i,0),r(i,u)))}}else for(i=t.line;i<h;++i)($||n.test(c.getLine(i)))&&c.replaceRange(f+p,r(i,0))}))}else(l.blockCommentStart||u.blockCommentStart)&&(l.fullLines=!0,c.blockComment(t,i,l))}})),t.defineExtension("blockComment",(function(t,o,a){a||(a=e);var l=this,c=s(l,t),u=a.blockCommentStart||c.blockCommentStart,d=a.blockCommentEnd||c.blockCommentEnd;if(u&&d){if(!/\bcomment\b/.test(l.getTokenTypeAt(r(t.line,0)))){var f=Math.min(o.line,l.lastLine());f!=t.line&&0==o.ch&&n.test(l.getLine(f))&&--f;var h=null==a.padding?" ":a.padding;t.line>f||l.operation((function(){if(0!=a.fullLines){var e=n.test(l.getLine(f));l.replaceRange(h+d,r(f)),l.replaceRange(u+h,r(t.line,0));var s=a.blockCommentLead||c.blockCommentLead;if(null!=s)for(var p=t.line+1;p<=f;++p)(p!=f||e)&&l.replaceRange(s+h,r(p,0))}else{var $=0==i(l.getCursor("to"),o),m=!l.somethingSelected();l.replaceRange(d,o),$&&l.setSelection(m?o:l.getCursor("from"),o),l.replaceRange(u,t)}}))}}else(a.lineComment||c.lineComment)&&0!=a.fullLines&&l.lineComment(t,o,a)})),t.defineExtension("uncomment",(function(t,i,o){o||(o=e);var a,l=this,c=s(l,t),u=Math.min(0!=i.ch||i.line==t.line?i.line:i.line-1,l.lastLine()),d=Math.min(t.line,u),f=o.lineComment||c.lineComment,h=[],p=null==o.padding?" ":o.padding;t:if(f){for(var $=d;$<=u;++$){var m=l.getLine($),g=m.indexOf(f);if(g>-1&&!/comment/.test(l.getTokenTypeAt(r($,g+1)))&&(g=-1),-1==g&&n.test(m))break t;if(g>-1&&n.test(m.slice(0,g)))break t;h.push(m)}if(l.operation((function(){for(var t=d;t<=u;++t){var e=h[t-d],n=e.indexOf(f),i=n+f.length;n<0||(e.slice(i,i+p.length)==p&&(i+=p.length),a=!0,l.replaceRange("",r(t,n),r(t,i)))}})),a)return!0}var v=o.blockCommentStart||c.blockCommentStart,y=o.blockCommentEnd||c.blockCommentEnd;if(!v||!y)return!1;var _=o.blockCommentLead||c.blockCommentLead,b=l.getLine(d),w=b.indexOf(v);if(-1==w)return!1;var x=u==d?b:l.getLine(u),k=x.indexOf(y,u==d?w+v.length:0),S=r(d,w+1),O=r(u,k+1);if(-1==k||!/comment/.test(l.getTokenTypeAt(S))||!/comment/.test(l.getTokenTypeAt(O))||l.getRange(S,O,"\n").indexOf(y)>-1)return!1;var C=b.lastIndexOf(v,t.ch),A=-1==C?-1:b.slice(0,t.ch).indexOf(y,C+v.length);if(-1!=C&&-1!=A&&A+y.length!=t.ch)return!1;A=x.indexOf(y,i.ch);var E=x.slice(i.ch).lastIndexOf(v,A-i.ch);return C=-1==A||-1==E?-1:i.ch+E,(-1==A||-1==C||C==i.ch)&&(l.operation((function(){l.replaceRange("",r(u,k-(p&&x.slice(k-p.length,k)==p?p.length:0)),r(u,k+y.length));var t=w+v.length;if(p&&b.slice(t,t+p.length)==p&&(t+=p.length),l.replaceRange("",r(d,w),r(d,t)),_)for(var e=d+1;e<=u;++e){var i=l.getLine(e),o=i.indexOf(_);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+_.length;p&&i.slice(a,a+p.length)==p&&(a+=p.length),l.replaceRange("",r(e,o),r(e,a))}}})),!0)}))}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"75f8":function(t,e,n){(function(t){t(n("56b3"),n("b933"),n("2aed"),n("8c33"))})((function(t){"use strict";var e=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],n=e.length,r=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],i=t.Pos,o=function(){function o(e){e.setOption("disableInput",!0),e.setOption("showCursorWhenSelecting",!1),t.signal(e,"vim-mode-change",{mode:"normal"}),e.on("cursorActivity",He),U(e),t.on(e.getInputField(),"paste",g(e))}function a(e){e.setOption("disableInput",!1),e.off("cursorActivity",He),t.off(e.getInputField(),"paste",g(e)),e.state.vim=null}function s(e,n){this==t.keyMap.vim&&(t.rmClass(e.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==e.getOption("inputStyle")&&null!=document.body.style.caretColor&&(f(e),e.getInputField().style.caretColor="")),n&&n.attach==l||a(e)}function l(e,n){this==t.keyMap.vim&&(t.addClass(e.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==e.getOption("inputStyle")&&null!=document.body.style.caretColor&&(d(e),e.getInputField().style.caretColor="transparent")),n&&n.attach==l||o(e)}function c(t){if(t.state.fatCursorMarks){u(t);for(var e=t.listSelections(),n=[],r=0;r<e.length;r++){var o=e[r];if(o.empty()){var a=t.getLine(o.anchor.line).length;o.anchor.ch<a?n.push(t.markText(o.anchor,i(o.anchor.line,o.anchor.ch+1),{className:"cm-fat-cursor-mark"})):n.push(t.markText(i(o.anchor.line,a-1),i(o.anchor.line,a),{className:"cm-fat-cursor-mark"}))}}t.state.fatCursorMarks=n}}function u(t){var e=t.state.fatCursorMarks;if(e)for(var n=0;n<e.length;n++)e[n].clear()}function d(t){t.state.fatCursorMarks=[],c(t),t.on("cursorActivity",c)}function f(t){u(t),t.off("cursorActivity",c),t.state.fatCursorMarks=null}function h(e,n){if(n){if(this[e])return this[e];var r=m(e);if(!r)return!1;var i=t.Vim.findKey(n,r);return"function"==typeof i&&t.signal(n,"vim-keypress",r),i}}t.defineOption("vimMode",!1,(function(e,n,r){n&&"vim"!=e.getOption("keyMap")?e.setOption("keyMap","vim"):!n&&r!=t.Init&&/^vim/.test(e.getOption("keyMap"))&&e.setOption("keyMap","default")}));var p={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A"},$={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function m(t){if("'"==t.charAt(0))return t.charAt(1);var e=t.split(/-(?!$)/),n=e[e.length-1];if(1==e.length&&1==e[0].length)return!1;if(2==e.length&&"Shift"==e[0]&&1==n.length)return!1;for(var r=!1,i=0;i<e.length;i++){var o=e[i];o in p?e[i]=p[o]:r=!0,o in $&&(e[i]=$[o])}return!!r&&(P(n)&&(e[e.length-1]=n.toLowerCase()),"<"+e.join("-")+">")}function g(t){var e=t.state.vim;return e.onPasteFn||(e.onPasteFn=function(){e.insertMode||(t.setCursor(ct(t.getCursor(),0,1)),ot.enterInsertMode(t,{},e))}),e.onPasteFn}var v=/[\d]/,y=[t.isWordChar,function(e){return e&&!t.isWordChar(e)&&!/\s/.test(e)}],_=[function(t){return/\S/.test(t)}];function b(t,e){for(var n=[],r=t;r<t+e;r++)n.push(String.fromCharCode(r));return n}var w=b(65,26),x=b(97,26),k=b(48,10),S=[].concat(w,x,k,["<",">"]),O=[].concat(w,x,k,["-",'"',".",":","_","/"]);function C(t,e){return e>=t.firstLine()&&e<=t.lastLine()}function A(t){return/^[a-z]$/.test(t)}function E(t){return-1!="()[]{}".indexOf(t)}function T(t){return v.test(t)}function P(t){return/^[A-Z]$/.test(t)}function B(t){return/^\s*$/.test(t)}function L(t){return-1!=".?!".indexOf(t)}function I(t,e){for(var n=0;n<e.length;n++)if(e[n]==t)return!0;return!1}var D={};function R(t,e,n,r,i){if(void 0===e&&!i)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),D[t]={type:n,defaultValue:e,callback:i},r)for(var o=0;o<r.length;o++)D[r[o]]=D[t];e&&j(t,e)}function j(t,e,n,r){var i=D[t];r=r||{};var o=r.scope;if(!i)return new Error("Unknown option: "+t);if("boolean"==i.type){if(e&&!0!==e)return new Error("Invalid argument: "+t+"="+e);!1!==e&&(e=!0)}i.callback?("local"!==o&&i.callback(e,void 0),"global"!==o&&n&&i.callback(e,n)):("local"!==o&&(i.value="boolean"==i.type?!!e:e),"global"!==o&&n&&(n.state.vim.options[t]={value:e}))}function M(t,e,n){var r=D[t];n=n||{};var i=n.scope;if(!r)return new Error("Unknown option: "+t);if(r.callback){var o=e&&r.callback(void 0,e);return"global"!==i&&void 0!==o?o:"local"!==i?r.callback():void 0}o="global"!==i&&e&&e.state.vim.options[t];return(o||"local"!==i&&r||{}).value}R("filetype",void 0,"string",["ft"],(function(t,e){if(void 0!==e){if(void 0===t){var n=e.getOption("mode");return"null"==n?"":n}n=""==t?"null":t;e.setOption("mode",n)}}));var F,N,z=function(){var t=100,e=-1,n=0,r=0,i=new Array(t);function o(o,a,s){var l=e%t,c=i[l];function u(n){var r=++e%t,a=i[r];a&&a.clear(),i[r]=o.setBookmark(n)}if(c){var d=c.find();d&&!$t(d,a)&&u(a)}else u(a);u(s),n=e,r=e-t+1,r<0&&(r=0)}function a(o,a){e+=a,e>n?e=n:e<r&&(e=r);var s=i[(t+e)%t];if(s&&!s.find()){var l,c=a>0?1:-1,u=o.getCursor();do{if(e+=c,s=i[(t+e)%t],s&&(l=s.find())&&!$t(u,l))break}while(e<n&&e>r)}return s}function s(t,n){var r=e,i=a(t,n);return e=r,i&&i.find()}return{cachedCursor:void 0,add:o,find:s,move:a}},H=function(t){return t?{changes:t.changes,expectCursorActivityForChange:t.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function V(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=H()}function U(t){return t.state.vim||(t.state.vim={inputState:new G,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},fakeCursor:null,insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),t.state.vim}function q(){for(var t in F={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:z(),macroModeState:new V,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Z({}),searchHistoryController:new J,exCommandHistoryController:new J},D){var e=D[t];e.value=e.defaultValue}}V.prototype={exitMacroRecordMode:function(){var t=F.macroModeState;t.onRecordingDone&&t.onRecordingDone(),t.onRecordingDone=void 0,t.isRecording=!1},enterMacroRecordMode:function(t,e){var n=F.registerController.getRegister(e);n&&(n.clear(),this.latestRegister=e,t.openDialog&&(this.onRecordingDone=t.openDialog("(recording)["+e+"]",null,{bottom:!0})),this.isRecording=!0)}};var W={buildKeyMap:function(){},getRegisterController:function(){return F.registerController},resetVimGlobalState_:q,getVimGlobalState_:function(){return F},maybeInitVimState_:U,suppressErrorLogging:!1,InsertModeKey:We,map:function(t,e,n){Be.map(t,e,n)},unmap:function(t,e){Be.unmap(t,e)},noremap:function(t,r,i){function o(t){return t?[t]:["normal","insert","visual"]}for(var a=o(i),s=e.length,l=n,c=s-l;c<s&&a.length;c++){var u=e[c];if(u.keys==r&&(!i||!u.context||u.context===i)&&"ex"!==u.type.substr(0,2)&&"key"!==u.type.substr(0,3)){var d={};for(var f in u)d[f]=u[f];d.keys=t,i&&!d.context&&(d.context=i),this._mapCommand(d);var h=o(u.context);a=a.filter((function(t){return-1===h.indexOf(t)}))}}},mapclear:function(t){var r=e.length,i=n,o=e.slice(0,r-i);if(e=e.slice(r-i),t)for(var a=o.length-1;a>=0;a--){var s=o[a];if(t!==s.context)if(s.context)this._mapCommand(s);else{var l=["normal","insert","visual"];for(var c in l)if(l[c]!==t){var u={};for(var d in s)u[d]=s[d];u.context=l[c],this._mapCommand(u)}}}},setOption:j,getOption:M,defineOption:R,defineEx:function(t,e,n){if(e){if(0!==t.indexOf(e))throw new Error('(Vim.defineEx) "'+e+'" is not a prefix of "'+t+'", command not registered')}else e=t;Pe[t]=n,Be.commandMap_[e]={name:t,shortName:e,type:"api"}},handleKey:function(t,e,n){var r=this.findKey(t,e,n);if("function"===typeof r)return r()},findKey:function(n,r,i){var o,a=U(n);function s(){var t=F.macroModeState;if(t.isRecording){if("q"==r)return t.exitMacroRecordMode(),Y(n),!0;"mapping"!=i&&Me(t,r)}}function l(){if("<Esc>"==r)return Y(n),a.visualMode?Lt(n):a.insertMode&&Ie(n),!0}function c(e){var i;while(e)i=/<\w+-.+?>|<\w+>|./.exec(e),r=i[0],e=e.substring(i.index+r.length),t.Vim.handleKey(n,r,"mapping")}function u(){if(l())return!0;var t=a.inputState.keyBuffer=a.inputState.keyBuffer+r,i=1==r.length,o=Q.matchCommand(t,e,a.inputState,"insert");while(t.length>1&&"full"!=o.type){t=a.inputState.keyBuffer=t.slice(1);var s=Q.matchCommand(t,e,a.inputState,"insert");"none"!=s.type&&(o=s)}if("none"==o.type)return Y(n),!1;if("partial"==o.type)return N&&window.clearTimeout(N),N=window.setTimeout((function(){a.insertMode&&a.inputState.keyBuffer&&Y(n)}),M("insertModeEscKeysTimeout")),!i;if(N&&window.clearTimeout(N),i){for(var c=n.listSelections(),u=0;u<c.length;u++){var d=c[u].head;n.replaceRange("",ct(d,0,-(t.length-1)),d,"+input")}F.macroModeState.lastInsertModeChanges.changes.pop()}return Y(n),o.command}function d(){if(s()||l())return!0;var t=a.inputState.keyBuffer=a.inputState.keyBuffer+r;if(/^[1-9]\d*$/.test(t))return!0;var i=/^(\d*)(.*)$/.exec(t);if(!i)return Y(n),!1;var o=a.visualMode?"visual":"normal",c=Q.matchCommand(i[2]||i[1],e,a.inputState,o);if("none"==c.type)return Y(n),!1;if("partial"==c.type)return!0;a.inputState.keyBuffer="";i=/^(\d*)(.*)$/.exec(t);return i[1]&&"0"!=i[1]&&a.inputState.pushRepeatDigit(i[1]),c.command}return o=a.insertMode?u():d(),!1===o?a.insertMode||1!==r.length?void 0:function(){return!0}:!0===o?function(){return!0}:function(){return n.operation((function(){n.curOp.isVimOp=!0;try{"keyToKey"==o.type?c(o.toKeys):Q.processCommand(n,a,o)}catch(e){throw n.state.vim=void 0,U(n),t.Vim.suppressErrorLogging||console["log"](e),e}return!0}))}},handleEx:function(t,e){Be.processCommand(t,e)},defineMotion:et,defineAction:at,defineOperator:it,mapCommand:Re,_mapCommand:De,defineRegister:X,exitVisualMode:Lt,exitInsertMode:Ie};function G(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function Y(e,n){e.state.vim.inputState=new G,t.signal(e,"vim-command-done",n)}function K(t,e,n){this.clear(),this.keyBuffer=[t||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!e,this.blockwise=!!n}function X(t,e){var n=F.registerController.registers;if(!t||1!=t.length)throw Error("Register name must be 1 character");if(n[t])throw Error("Register already defined "+t);n[t]=e,O.push(t)}function Z(t){this.registers=t,this.unnamedRegister=t['"']=new K,t["."]=new K,t[":"]=new K,t["/"]=new K}function J(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}G.prototype.pushRepeatDigit=function(t){this.operator?this.motionRepeat=this.motionRepeat.concat(t):this.prefixRepeat=this.prefixRepeat.concat(t)},G.prototype.getRepeat=function(){var t=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(t=1,this.prefixRepeat.length>0&&(t*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(t*=parseInt(this.motionRepeat.join(""),10))),t},K.prototype={setText:function(t,e,n){this.keyBuffer=[t||""],this.linewise=!!e,this.blockwise=!!n},pushText:function(t,e){e&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(t)},pushInsertModeChanges:function(t){this.insertModeChanges.push(H(t))},pushSearchQuery:function(t){this.searchQueries.push(t)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},Z.prototype={pushText:function(t,e,n,r,i){if("_"!==t){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(t)?this.getRegister(t):null;if(o){var a=P(t);a?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r)}else{switch(e){case"yank":this.registers["0"]=new K(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new K(n,r):(this.shiftNumericRegisters_(),this.registers["1"]=new K(n,r));break}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(t){return this.isValidRegister(t)?(t=t.toLowerCase(),this.registers[t]||(this.registers[t]=new K),this.registers[t]):this.unnamedRegister},isValidRegister:function(t){return t&&I(t,O)},shiftNumericRegisters_:function(){for(var t=9;t>=2;t--)this.registers[t]=this.getRegister(""+(t-1))}},J.prototype={nextMatch:function(t,e){var n=this.historyBuffer,r=e?-1:1;null===this.initialPrefix&&(this.initialPrefix=t);for(var i=this.iterator+r;e?i>=0:i<n.length;i+=r)for(var o=n[i],a=0;a<=o.length;a++)if(this.initialPrefix==o.substring(0,a))return this.iterator=i,o;return i>=n.length?(this.iterator=n.length,this.initialPrefix):i<0?t:void 0},pushInput:function(t){var e=this.historyBuffer.indexOf(t);e>-1&&this.historyBuffer.splice(e,1),t.length&&this.historyBuffer.push(t)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Q={matchCommand:function(t,e,n,r){var i,o=ut(t,e,r,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var a=0;a<o.full.length;a++){var s=o.full[a];i||(i=s)}if("<character>"==i.keys.slice(-11)){var l=ft(t);if(!l)return{type:"none"};n.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(t,e,n){switch(e.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(t,e,n);break;case"operator":this.processOperator(t,e,n);break;case"operatorMotion":this.processOperatorMotion(t,e,n);break;case"action":this.processAction(t,e,n);break;case"search":this.processSearch(t,e,n);break;case"ex":case"keyToEx":this.processEx(t,e,n);break;default:break}},processMotion:function(t,e,n){e.inputState.motion=n.motion,e.inputState.motionArgs=lt(n.motionArgs),this.evalInput(t,e)},processOperator:function(t,e,n){var r=e.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(t,e);Y(t)}r.operator=n.operator,r.operatorArgs=lt(n.operatorArgs),n.exitVisualBlock&&(e.visualBlock=!1,Tt(t)),e.visualMode&&this.evalInput(t,e)},processOperatorMotion:function(t,e,n){var r=e.visualMode,i=lt(n.operatorMotionArgs);i&&r&&i.visualLine&&(e.visualLine=!0),this.processOperator(t,e,n),r||this.processMotion(t,e,n)},processAction:function(t,e,n){var r=e.inputState,i=r.getRepeat(),o=!!i,a=lt(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(t,e,n),n.motion&&this.processMotion(t,e,n),(n.motion||n.operator)&&this.evalInput(t,e),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,Y(t),e.lastMotion=null,n.isEdit&&this.recordLastEdit(e,r,n),ot[n.action](t,a,e)},processSearch:function(e,n,r){if(e.getSearchCursor){var i=r.searchArgs.forward,o=r.searchArgs.wholeWordOnly;ne(e).setReversed(!i);var a=i?"/":"?",s=ne(e).getQuery(),l=e.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var c=F.macroModeState;if(c.isPlaying){var u=c.replaySearchQueries.shift();h(u,!0,!1)}else ge(e,{onClose:p,prefix:a,desc:me,onKeyUp:$,onKeyDown:m});break;case"wordUnderCursor":var d=jt(e,!1,!0,!1,!0),f=!0;if(d||(d=jt(e,!1,!0,!1,!1),f=!1),!d)return;u=e.getLine(d.start.line).substring(d.start.ch,d.end.ch);u=f&&o?"\\b"+u+"\\b":wt(u),F.jumpList.cachedCursor=e.getCursor(),e.setCursor(d.start),h(u,!0,!1);break}}function h(t,i,o){F.searchHistoryController.pushInput(t),F.searchHistoryController.reset();try{ye(e,t,i,o)}catch(a){return pe(e,"Invalid regex: "+t),void Y(e)}Q.processMotion(e,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}function p(t){e.scrollTo(l.left,l.top),h(t,!0,!0);var n=F.macroModeState;n.isRecording&&Ne(n,t)}function $(n,r,o){var a,s,c,u=t.keyName(n);"Up"==u||"Down"==u?(a="Up"==u,s=n.target?n.target.selectionEnd:0,r=F.searchHistoryController.nextMatch(r,a)||"",o(r),s&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(s,n.target.value.length))):"Left"!=u&&"Right"!=u&&"Ctrl"!=u&&"Alt"!=u&&"Shift"!=u&&F.searchHistoryController.reset();try{c=ye(e,r,!0,!0)}catch(n){}c?e.scrollIntoView(xe(e,!i,c),30):(Se(e),e.scrollTo(l.left,l.top))}function m(n,r,i){var o=t.keyName(n);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==r?(F.searchHistoryController.pushInput(r),F.searchHistoryController.reset(),ye(e,s),Se(e),e.scrollTo(l.left,l.top),t.e_stop(n),Y(e),i(),e.focus()):"Up"==o||"Down"==o?t.e_stop(n):"Ctrl-U"==o&&(t.e_stop(n),i(""))}},processEx:function(e,n,r){function i(t){F.exCommandHistoryController.pushInput(t),F.exCommandHistoryController.reset(),Be.processCommand(e,t)}function o(n,r,i){var o,a,s=t.keyName(n);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&(F.exCommandHistoryController.pushInput(r),F.exCommandHistoryController.reset(),t.e_stop(n),Y(e),i(),e.focus()),"Up"==s||"Down"==s?(t.e_stop(n),o="Up"==s,a=n.target?n.target.selectionEnd:0,r=F.exCommandHistoryController.nextMatch(r,o)||"",i(r),a&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(a,n.target.value.length))):"Ctrl-U"==s?(t.e_stop(n),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&F.exCommandHistoryController.reset()}"keyToEx"==r.type?Be.processCommand(e,r.exArgs.input):n.visualMode?ge(e,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o,selectValueOnOpen:!1}):ge(e,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(t,e){var n,r,o,a=e.inputState,s=a.motion,l=a.motionArgs||{},c=a.operator,u=a.operatorArgs||{},d=a.registerName,f=e.sel,h=pt(e.visualMode?st(t,f.head):t.getCursor("head")),p=pt(e.visualMode?st(t,f.anchor):t.getCursor("anchor")),$=pt(h),m=pt(p);if(c&&this.recordLastEdit(e,a),o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat(),o>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=u.selectedCharacter=a.selectedCharacter),l.repeat=o,Y(t),s){var g=tt[s](t,h,l,e,a);if(e.lastMotion=tt[s],!g)return;if(l.toJumplist){var v=F.jumpList,y=v.cachedCursor;y?(Ft(t,y,g),delete v.cachedCursor):Ft(t,h,g)}g instanceof Array?(r=g[0],n=g[1]):n=g,n||(n=pt(h)),e.visualMode?(e.visualBlock&&n.ch===1/0||(n=st(t,n)),r&&(r=st(t,r)),r=r||m,f.anchor=r,f.head=n,Tt(t),Kt(t,e,"<",mt(r,n)?r:n),Kt(t,e,">",mt(r,n)?n:r)):c||(n=st(t,n),t.setCursor(n.line,n.ch))}if(c){if(u.lastSel){r=m;var _=u.lastSel,b=Math.abs(_.head.line-_.anchor.line),w=Math.abs(_.head.ch-_.anchor.ch);n=_.visualLine?i(m.line+b,m.ch):_.visualBlock?i(m.line+b,m.ch+w):_.head.line==_.anchor.line?i(m.line,m.ch+w):i(m.line+b,m.ch),e.visualMode=!0,e.visualLine=_.visualLine,e.visualBlock=_.visualBlock,f=e.sel={anchor:r,head:n},Tt(t)}else e.visualMode&&(u.lastSel={anchor:pt(f.anchor),head:pt(f.head),visualBlock:e.visualBlock,visualLine:e.visualLine});var x,k,S,O,C;if(e.visualMode){if(x=gt(f.head,f.anchor),k=vt(f.head,f.anchor),S=e.visualLine||u.linewise,O=e.visualBlock?"block":S?"line":"char",C=Pt(t,{anchor:x,head:k},O),S){var A=C.ranges;if("block"==O)for(var E=0;E<A.length;E++)A[E].head.ch=_t(t,A[E].head.line);else"line"==O&&(A[0].head=i(A[0].head.line+1,0))}}else{if(x=pt(r||m),k=pt(n||$),mt(k,x)){var T=x;x=k,k=T}S=l.linewise||u.linewise,S?Dt(t,x,k):l.forward&&It(t,x,k),O="char";var P=!l.inclusive||S;C=Pt(t,{anchor:x,head:k},O,P)}t.setSelections(C.ranges,C.primary),e.lastMotion=null,u.repeat=o,u.registerName=d,u.linewise=S;var B=rt[c](t,u,C.ranges,m,n);e.visualMode&&Lt(t,null!=B),B&&t.setCursor(B)}},recordLastEdit:function(t,e,n){var r=F.macroModeState;r.isPlaying||(t.lastEditInputState=e,t.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=t.visualBlock?t.sel.head.line-t.sel.anchor.line:0)}},tt={moveToTopLine:function(t,e,n){var r=Ce(t).top+n.repeat-1;return i(r,Rt(t.getLine(r)))},moveToMiddleLine:function(t){var e=Ce(t),n=Math.floor(.5*(e.top+e.bottom));return i(n,Rt(t.getLine(n)))},moveToBottomLine:function(t,e,n){var r=Ce(t).bottom-n.repeat+1;return i(r,Rt(t.getLine(r)))},expandToLine:function(t,e,n){var r=e;return i(r.line+n.repeat-1,1/0)},findNext:function(t,e,n){var r=ne(t),i=r.getQuery();if(i){var o=!n.forward;return o=r.isReversed()?!o:o,we(t,i),xe(t,o,i,n.repeat)}},findAndSelectNextInclusive:function(e,n,r,o,a){var s=ne(e),l=s.getQuery();if(l){var c=!r.forward;c=s.isReversed()?!c:c;var u=ke(e,c,l,r.repeat,o);if(u){if(a.operator)return u;var d=u[0],f=i(u[1].line,u[1].ch-1);if(o.visualMode){(o.visualLine||o.visualBlock)&&(o.visualLine=!1,o.visualBlock=!1,t.signal(e,"vim-mode-change",{mode:"visual",subMode:""}));var h=o.sel.anchor;if(h)return s.isReversed()?r.forward?[h,d]:[h,f]:r.forward?[h,f]:[h,d]}else o.visualMode=!0,o.visualLine=!1,o.visualBlock=!1,t.signal(e,"vim-mode-change",{mode:"visual",subMode:""});return c?[f,d]:[d,f]}}},goToMark:function(t,e,n,r){var i=Ae(t,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:Rt(t.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(t,e,n,r){if(r.visualBlock&&n.sameLine){var o=r.sel;return[st(t,i(o.anchor.line,o.head.ch)),st(t,i(o.head.line,o.anchor.ch))]}return[r.sel.head,r.sel.anchor]},jumpToMark:function(t,e,n,r){for(var o=e,a=0;a<n.repeat;a++){var s=o;for(var l in r.marks)if(A(l)){var c=r.marks[l].find(),u=n.forward?mt(c,s):mt(s,c);if(!u&&(!n.linewise||c.line!=s.line)){var d=$t(s,o),f=n.forward?yt(s,c,o):yt(o,c,s);(d||f)&&(o=c)}}}return n.linewise&&(o=i(o.line,Rt(t.getLine(o.line)))),o},moveByCharacters:function(t,e,n){var r=e,o=n.repeat,a=n.forward?r.ch+o:r.ch-o;return i(r.line,a)},moveByLines:function(t,e,n,r){var o=e,a=o.ch;switch(r.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=r.lastHPos;break;default:r.lastHPos=a}var s=n.repeat+(n.repeatOffset||0),l=n.forward?o.line+s:o.line-s,c=t.firstLine(),u=t.lastLine(),d=t.findPosV(o,n.forward?s:-s,"line",r.lastHSPos),f=n.forward?d.line>l:d.line<l;return f&&(l=d.line,a=d.ch),l<c&&o.line==c?this.moveToStartOfLine(t,e,n,r):l>u&&o.line==u?Wt(t,e,n,r,!0):(n.toFirstChar&&(a=Rt(t.getLine(l)),r.lastHPos=a),r.lastHSPos=t.charCoords(i(l,a),"div").left,i(l,a))},moveByDisplayLines:function(t,e,n,r){var o=e;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=t.charCoords(o,"div").left}var a=n.repeat,s=t.findPosV(o,n.forward?a:-a,"line",r.lastHSPos);if(s.hitSide)if(n.forward){var l=t.charCoords(s,"div"),c={top:l.top+8,left:r.lastHSPos};s=t.coordsChar(c,"div")}else{var u=t.charCoords(i(t.firstLine(),0),"div");u.left=r.lastHSPos,s=t.coordsChar(u,"div")}return r.lastHPos=s.ch,s},moveByPage:function(t,e,n){var r=e,i=n.repeat;return t.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(t,e,n){var r=n.forward?1:-1;return Zt(t,e,n.repeat,r)},moveBySentence:function(t,e,n){var r=n.forward?1:-1;return Jt(t,e,n.repeat,r)},moveByScroll:function(t,e,n,r){var i=t.getScrollInfo(),o=null,a=n.repeat;a||(a=i.clientHeight/(2*t.defaultTextHeight()));var s=t.charCoords(e,"local");n.repeat=a;o=tt.moveByDisplayLines(t,e,n,r);if(!o)return null;var l=t.charCoords(o,"local");return t.scrollTo(null,i.top+l.top-s.top),o},moveByWords:function(t,e,n){return qt(t,e,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(t,e,n){var r=n.repeat,i=Gt(t,r,n.forward,n.selectedCharacter),o=n.forward?-1:1;return Nt(o,n),i?(i.ch+=o,i):null},moveToCharacter:function(t,e,n){var r=n.repeat;return Nt(0,n),Gt(t,r,n.forward,n.selectedCharacter)||e},moveToSymbol:function(t,e,n){var r=n.repeat;return Vt(t,r,n.forward,n.selectedCharacter)||e},moveToColumn:function(t,e,n,r){var i=n.repeat;return r.lastHPos=i-1,r.lastHSPos=t.charCoords(e,"div").left,Yt(t,i)},moveToEol:function(t,e,n,r){return Wt(t,e,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(t,e){var n=e;return i(n.line,Rt(t.getLine(n.line)))},moveToMatchedSymbol:function(t,e){for(var n,r=e,o=r.line,a=r.ch,s=t.getLine(o);a<s.length;a++)if(n=s.charAt(a),n&&E(n)){var l=t.getTokenTypeAt(i(o,a+1));if("string"!==l&&"comment"!==l)break}if(a<s.length){var c="<"===a||">"===a?/[(){}[\]<>]/:/[(){}[\]]/,u=t.findMatchingBracket(i(o,a),{bracketRegex:c});return u.to}return r},moveToStartOfLine:function(t,e){return i(e.line,0)},moveToLineOrEdgeOfDocument:function(t,e,n){var r=n.forward?t.lastLine():t.firstLine();return n.repeatIsExplicit&&(r=n.repeat-t.getOption("firstLineNumber")),i(r,Rt(t.getLine(r)))},textObjectManipulation:function(t,e,n,r){var i={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},o={"'":!0,'"':!0,"`":!0},a=n.selectedCharacter;"b"==a?a="(":"B"==a&&(a="{");var s,l=!n.textObjectInner;if(i[a])s=Qt(t,e,a,l);else if(o[a])s=te(t,e,a,l);else if("W"===a)s=jt(t,l,!0,!0);else if("w"===a)s=jt(t,l,!0,!1);else if("p"===a)if(s=Zt(t,e,n.repeat,0,l),n.linewise=!0,r.visualMode)r.visualLine||(r.visualLine=!0);else{var c=r.inputState.operatorArgs;c&&(c.linewise=!0),s.end.line--}else{if("t"!==a)return null;s=Mt(t,e,l)}return t.state.vim.visualMode?Et(t,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(t,e,n){var r=F.lastCharacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);t.moveH(-a,"char"),n.inclusive=!!o;var s=Gt(t,i,o,r.selectedCharacter);return s?(s.ch+=a,s):(t.moveH(a,"char"),e)}};function et(t,e){tt[t]=e}function nt(t,e){for(var n=[],r=0;r<e;r++)n.push(t);return n}var rt={change:function(e,n,r){var o,a,s=e.state.vim,l=r[0].anchor,c=r[0].head;if(s.visualMode)if(n.fullLine)c.ch=Number.MAX_VALUE,c.line--,e.setSelection(l,c),a=e.getSelection(),e.replaceSelection(""),o=l;else{a=e.getSelection();var u=nt("",r.length);e.replaceSelections(u),o=gt(r[0].head,r[0].anchor)}else{a=e.getRange(l,c);var d=s.lastEditInputState||{};if("moveByWords"==d.motion&&!B(a)){var f=/\s+$/.exec(a);f&&d.motionArgs&&d.motionArgs.forward&&(c=ct(c,0,-f[0].length),a=a.slice(0,-f[0].length))}var h=new i(l.line-1,Number.MAX_VALUE),p=e.firstLine()==e.lastLine();c.line>e.lastLine()&&n.linewise&&!p?e.replaceRange("",h,c):e.replaceRange("",l,c),n.linewise&&(p||(e.setCursor(h),t.commands.newlineAndIndent(e)),l.ch=Number.MAX_VALUE),o=l}F.registerController.pushText(n.registerName,"change",a,n.linewise,r.length>1),ot.enterInsertMode(e,{head:o},e.state.vim)},delete:function(t,e,n){var r,o,a=t.state.vim;if(a.visualBlock){o=t.getSelection();var s=nt("",n.length);t.replaceSelections(s),r=n[0].anchor}else{var l=n[0].anchor,c=n[0].head;e.linewise&&c.line!=t.firstLine()&&l.line==t.lastLine()&&l.line==c.line-1&&(l.line==t.firstLine()?l.ch=0:l=i(l.line-1,_t(t,l.line-1))),o=t.getRange(l,c),t.replaceRange("",l,c),r=l,e.linewise&&(r=tt.moveToFirstNonWhiteSpaceCharacter(t,l))}return F.registerController.pushText(e.registerName,"delete",o,e.linewise,a.visualBlock),st(t,r)},indent:function(t,e,n){var r=t.state.vim,i=n[0].anchor.line,o=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line,a=r.visualMode?e.repeat:1;e.linewise&&o--;for(var s=i;s<=o;s++)for(var l=0;l<a;l++)t.indentLine(s,e.indentRight);return tt.moveToFirstNonWhiteSpaceCharacter(t,n[0].anchor)},indentAuto:function(t,e,n){return t.execCommand("indentAuto"),tt.moveToFirstNonWhiteSpaceCharacter(t,n[0].anchor)},changeCase:function(t,e,n,r,i){for(var o=t.getSelections(),a=[],s=e.toLower,l=0;l<o.length;l++){var c=o[l],u="";if(!0===s)u=c.toLowerCase();else if(!1===s)u=c.toUpperCase();else for(var d=0;d<c.length;d++){var f=c.charAt(d);u+=P(f)?f.toLowerCase():f.toUpperCase()}a.push(u)}return t.replaceSelections(a),e.shouldMoveCursor?i:!t.state.vim.visualMode&&e.linewise&&n[0].anchor.line+1==n[0].head.line?tt.moveToFirstNonWhiteSpaceCharacter(t,r):e.linewise?r:gt(n[0].anchor,n[0].head)},yank:function(t,e,n,r){var i=t.state.vim,o=t.getSelection(),a=i.visualMode?gt(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return F.registerController.pushText(e.registerName,"yank",o,e.linewise,i.visualBlock),a}};function it(t,e){rt[t]=e}var ot={jumpListWalk:function(t,e,n){if(!n.visualMode){var r=e.repeat,i=e.forward,o=F.jumpList,a=o.move(t,i?r:-r),s=a?a.find():void 0;s=s||t.getCursor(),t.setCursor(s)}},scroll:function(t,e,n){if(!n.visualMode){var r=e.repeat||1,i=t.defaultTextHeight(),o=t.getScrollInfo().top,a=i*r,s=e.forward?o+a:o-a,l=pt(t.getCursor()),c=t.charCoords(l,"local");if(e.forward)s>c.top?(l.line+=(s-c.top)/i,l.line=Math.ceil(l.line),t.setCursor(l),c=t.charCoords(l,"local"),t.scrollTo(null,c.top)):t.scrollTo(null,s);else{var u=s+t.getScrollInfo().clientHeight;u<c.bottom?(l.line-=(c.bottom-u)/i,l.line=Math.floor(l.line),t.setCursor(l),c=t.charCoords(l,"local"),t.scrollTo(null,c.bottom-t.getScrollInfo().clientHeight)):t.scrollTo(null,s)}}},scrollToCursor:function(t,e){var n=t.getCursor().line,r=t.charCoords(i(n,0),"local"),o=t.getScrollInfo().clientHeight,a=r.top,s=r.bottom-a;switch(e.position){case"center":a=a-o/2+s;break;case"bottom":a=a-o+s;break}t.scrollTo(null,a)},replayMacro:function(t,e,n){var r=e.selectedCharacter,i=e.repeat,o=F.macroModeState;"@"==r?r=o.latestRegister:o.latestRegister=r;while(i--)je(t,n,o,r)},enterMacroRecordMode:function(t,e){var n=F.macroModeState,r=e.selectedCharacter;F.registerController.isValidRegister(r)&&n.enterMacroRecordMode(t,r)},toggleOverwrite:function(e){e.state.overwrite?(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),t.signal(e,"vim-mode-change",{mode:"insert"})):(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),t.signal(e,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(e,n,r){if(!e.getOption("readOnly")){r.insertMode=!0,r.insertModeRepeat=n&&n.repeat||1;var o=n?n.insertAt:null,a=r.sel,s=n.head||e.getCursor("head"),l=e.listSelections().length;if("eol"==o)s=i(s.line,_t(e,s.line));else if("bol"==o)s=i(s.line,0);else if("charAfter"==o)s=ct(s,0,1);else if("firstNonBlank"==o)s=tt.moveToFirstNonWhiteSpaceCharacter(e,s);else if("startOfSelectedArea"==o){if(!r.visualMode)return;r.visualBlock?(s=i(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:i(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!r.visualMode)return;r.visualBlock?(s=i(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch+1,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?ct(a.head,0,1):i(a.anchor.line,0)}else if("inplace"==o){if(r.visualMode)return}else"lastEdit"==o&&(s=Ee(e)||s);e.setOption("disableInput",!1),n&&n.replace?(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),t.signal(e,"vim-mode-change",{mode:"replace"})):(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),t.signal(e,"vim-mode-change",{mode:"insert"})),F.macroModeState.isPlaying||(e.on("change",ze),t.on(e.getInputField(),"keydown",Ge)),r.visualMode&&Lt(e),St(e,s,l)}},toggleVisualMode:function(e,n,r){var o,a=n.repeat,s=e.getCursor();r.visualMode?r.visualLine^n.linewise||r.visualBlock^n.blockwise?(r.visualLine=!!n.linewise,r.visualBlock=!!n.blockwise,t.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Tt(e)):Lt(e):(r.visualMode=!0,r.visualLine=!!n.linewise,r.visualBlock=!!n.blockwise,o=st(e,i(s.line,s.ch+a-1)),r.sel={anchor:s,head:o},t.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Tt(e),Kt(e,r,"<",gt(s,o)),Kt(e,r,">",vt(s,o)))},reselectLastSelection:function(e,n,r){var i=r.lastSelection;if(r.visualMode&&At(e,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,Tt(e),Kt(e,r,"<",gt(o,a)),Kt(e,r,">",vt(o,a)),t.signal(e,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(t,e,n){var r,o;if(n.visualMode){if(r=t.getCursor("anchor"),o=t.getCursor("head"),mt(o,r)){var a=o;o=r,r=a}o.ch=_t(t,o.line)-1}else{var s=Math.max(e.repeat,2);r=t.getCursor(),o=st(t,i(r.line+s-1,1/0))}for(var l=0,c=r.line;c<o.line;c++){l=_t(t,r.line);a=i(r.line+1,_t(t,r.line+1));var u=t.getRange(r,a);u=e.keepSpaces?u.replace(/\n\r?/g,""):u.replace(/\n\s*/g," "),t.replaceRange(u,r,a)}var d=i(r.line,l);n.visualMode&&Lt(t,!1),t.setCursor(d)},newLineAndEnterInsertMode:function(e,n,r){r.insertMode=!0;var o=pt(e.getCursor());if(o.line!==e.firstLine()||n.after){o.line=n.after?o.line:o.line-1,o.ch=_t(e,o.line),e.setCursor(o);var a=t.commands.newlineAndIndentContinueComment||t.commands.newlineAndIndent;a(e)}else e.replaceRange("\n",i(e.firstLine(),0)),e.setCursor(e.firstLine(),0);this.enterInsertMode(e,{repeat:n.repeat},r)},paste:function(t,e,n){var r=pt(t.getCursor()),o=F.registerController.getRegister(e.registerName),a=o.toString();if(a){if(e.matchIndent){var s=t.getOption("tabSize"),l=function(t){var e=t.split("\t").length-1,n=t.split(" ").length-1;return e*s+1*n},c=t.getLine(t.getCursor().line),u=l(c.match(/^\s*/)[0]),d=a.replace(/\n$/,""),f=a!==d,h=l(a.match(/^\s*/)[0]);a=d.replace(/^\s*/gm,(function(e){var n=u+(l(e)-h);if(n<0)return"";if(t.getOption("indentWithTabs")){var r=Math.floor(n/s);return Array(r+1).join("\t")}return Array(n+1).join(" ")}));a+=f?"\n":""}if(e.repeat>1)a=Array(e.repeat+1).join(a);var p,$,m=o.linewise,g=o.blockwise;if(g){a=a.split("\n"),m&&a.pop();for(var v=0;v<a.length;v++)a[v]=""==a[v]?" ":a[v];r.ch+=e.after?1:0,r.ch=Math.min(_t(t,r.line),r.ch)}else m?n.visualMode?a=n.visualLine?a.slice(0,-1):"\n"+a.slice(0,a.length-1)+"\n":e.after?(a="\n"+a.slice(0,a.length-1),r.ch=_t(t,r.line)):r.ch=0:r.ch+=e.after?1:0;if(n.visualMode){var y;n.lastPastedText=a;var _=Ct(t,n),b=_[0],w=_[1],x=t.getSelection(),k=t.listSelections(),S=new Array(k.length).join("1").split("1");n.lastSelection&&(y=n.lastSelection.headMark.find()),F.registerController.unnamedRegister.setText(x),g?(t.replaceSelections(S),w=i(b.line+a.length-1,b.ch),t.setCursor(b),kt(t,w),t.replaceSelections(a),p=b):n.visualBlock?(t.replaceSelections(S),t.setCursor(b),t.replaceRange(a,b,b),p=b):(t.replaceRange(a,b,w),p=t.posFromIndex(t.indexFromPos(b)+a.length-1)),y&&(n.lastSelection.headMark=t.setBookmark(y)),m&&(p.ch=0)}else if(g){t.setCursor(r);for(v=0;v<a.length;v++){var O=r.line+v;O>t.lastLine()&&t.replaceRange("\n",i(O,0));var C=_t(t,O);C<r.ch&&xt(t,O,r.ch)}t.setCursor(r),kt(t,i(r.line+a.length-1,r.ch)),t.replaceSelections(a),p=r}else t.replaceRange(a,r),m&&e.after?p=i(r.line+1,Rt(t.getLine(r.line+1))):m&&!e.after?p=i(r.line,Rt(t.getLine(r.line))):!m&&e.after?($=t.indexFromPos(r),p=t.posFromIndex($+a.length-1)):($=t.indexFromPos(r),p=t.posFromIndex($+a.length));n.visualMode&&Lt(t,!1),t.setCursor(p)}},undo:function(e,n){e.operation((function(){ht(e,t.commands.undo,n.repeat)(),e.setCursor(e.getCursor("anchor"))}))},redo:function(e,n){ht(e,t.commands.redo,n.repeat)()},setRegister:function(t,e,n){n.inputState.registerName=e.selectedCharacter},setMark:function(t,e,n){var r=e.selectedCharacter;Kt(t,n,r,t.getCursor())},replace:function(e,n,r){var o,a,s=n.selectedCharacter,l=e.getCursor(),c=e.listSelections();if(r.visualMode)l=e.getCursor("start"),a=e.getCursor("end");else{var u=e.getLine(l.line);o=l.ch+n.repeat,o>u.length&&(o=u.length),a=i(l.line,o)}if("\n"==s)r.visualMode||e.replaceRange("",l,a),(t.commands.newlineAndIndentContinueComment||t.commands.newlineAndIndent)(e);else{var d=e.getRange(l,a);if(d=d.replace(/[^\n]/g,s),r.visualBlock){var f=new Array(e.getOption("tabSize")+1).join(" ");d=e.getSelection(),d=d.replace(/\t/g,f).replace(/[^\n]/g,s).split("\n"),e.replaceSelections(d)}else e.replaceRange(d,l,a);r.visualMode?(l=mt(c[0].anchor,c[0].head)?c[0].anchor:c[0].head,e.setCursor(l),Lt(e,!1)):e.setCursor(ct(a,0,-1))}},incrementNumberToken:function(t,e){var n,r,o,a,s=t.getCursor(),l=t.getLine(s.line),c=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;while(null!==(n=c.exec(l)))if(r=n.index,o=r+n[0].length,s.ch<o)break;if((e.backtrack||!(o<=s.ch))&&n){var u=n[2]||n[4],d=n[3]||n[5],f=e.increase?1:-1,h={"0b":2,0:8,"":10,"0x":16}[u.toLowerCase()],p=parseInt(n[1]+d,h)+f*e.repeat;a=p.toString(h);var $=u?new Array(d.length-a.length+1+n[1].length).join("0"):"";a="-"===a.charAt(0)?"-"+u+$+a.substr(1):u+$+a;var m=i(s.line,r),g=i(s.line,o);t.replaceRange(a,m,g),t.setCursor(i(s.line,r+a.length-1))}},repeatLastEdit:function(t,e,n){var r=n.lastEditInputState;if(r){var i=e.repeat;i&&e.repeatIsExplicit?n.lastEditInputState.repeatOverride=i:i=n.lastEditInputState.repeatOverride||i,Ye(t,n,i,!1)}},indent:function(t,e){t.indentLine(t.getCursor().line,e.indentRight)},exitInsertMode:Ie};function at(t,e){ot[t]=e}function st(t,e){var n=t.state.vim,r=n.insertMode||n.visualMode,o=Math.min(Math.max(t.firstLine(),e.line),t.lastLine()),a=_t(t,o)-1+!!r,s=Math.min(Math.max(0,e.ch),a);return i(o,s)}function lt(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function ct(t,e,n){return"object"===typeof e&&(n=e.ch,e=e.line),i(t.line+e,t.ch+n)}function ut(t,e,n,r){for(var i,o=[],a=[],s=0;s<e.length;s++){var l=e[s];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||r.operator&&"action"==l.type||!(i=dt(t,l.keys))||("partial"==i&&o.push(l),"full"==i&&a.push(l))}return{partial:o.length&&o,full:a.length&&a}}function dt(t,e){if("<character>"==e.slice(-11)){var n=e.length-11,r=t.slice(0,n),i=e.slice(0,n);return r==i&&t.length>n?"full":0==i.indexOf(r)&&"partial"}return t==e?"full":0==e.indexOf(t)&&"partial"}function ft(t){var e=/^.*(<[^>]+>)$/.exec(t),n=e?e[1]:t.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n="";break}return n}function ht(t,e,n){return function(){for(var r=0;r<n;r++)e(t)}}function pt(t){return i(t.line,t.ch)}function $t(t,e){return t.ch==e.ch&&t.line==e.line}function mt(t,e){return t.line<e.line||t.line==e.line&&t.ch<e.ch}function gt(t,e){return arguments.length>2&&(e=gt.apply(void 0,Array.prototype.slice.call(arguments,1))),mt(t,e)?t:e}function vt(t,e){return arguments.length>2&&(e=vt.apply(void 0,Array.prototype.slice.call(arguments,1))),mt(t,e)?e:t}function yt(t,e,n){var r=mt(t,e),i=mt(e,n);return r&&i}function _t(t,e){return t.getLine(e).length}function bt(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function wt(t){return t.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function xt(t,e,n){var r=_t(t,e),o=new Array(n-r+1).join(" ");t.setCursor(i(e,r)),t.replaceRange(o,t.getCursor())}function kt(t,e){var n=[],r=t.listSelections(),o=pt(t.clipPos(e)),a=!$t(e,o),s=t.getCursor("head"),l=Ot(r,s),c=$t(r[l].head,r[l].anchor),u=r.length-1,d=u-l>l?u:0,f=r[d].anchor,h=Math.min(f.line,o.line),p=Math.max(f.line,o.line),$=f.ch,m=o.ch,g=r[d].head.ch-$,v=m-$;g>0&&v<=0?($++,a||m--):g<0&&v>=0?($--,c||m++):g<0&&-1==v&&($--,m++);for(var y=h;y<=p;y++){var _={anchor:new i(y,$),head:new i(y,m)};n.push(_)}return t.setSelections(n),e.ch=m,f.ch=$,f}function St(t,e,n){for(var r=[],i=0;i<n;i++){var o=ct(e,i,0);r.push({anchor:o,head:o})}t.setSelections(r,0)}function Ot(t,e,n){for(var r=0;r<t.length;r++){var i="head"!=n&&$t(t[r].anchor,e),o="anchor"!=n&&$t(t[r].head,e);if(i||o)return r}return-1}function Ct(t,e){var n=e.lastSelection,r=function(){var e=t.listSelections(),n=e[0],r=e[e.length-1],i=mt(n.anchor,n.head)?n.anchor:n.head,o=mt(r.anchor,r.head)?r.head:r.anchor;return[i,o]},o=function(){var e=t.getCursor(),r=t.getCursor(),o=n.visualBlock;if(o){var a=o.width,s=o.height;r=i(e.line+s,e.ch+a);for(var l=[],c=e.line;c<r.line;c++){var u=i(c,e.ch),d=i(c,r.ch),f={anchor:u,head:d};l.push(f)}t.setSelections(l)}else{var h=n.anchorMark.find(),p=n.headMark.find(),$=p.line-h.line,m=p.ch-h.ch;r={line:r.line+$,ch:$?r.ch:m+r.ch},n.visualLine&&(e=i(e.line,0),r=i(r.line,_t(t,r.line))),t.setSelection(e,r)}return[e,r]};return e.visualMode?r():o()}function At(t,e){var n=e.sel.anchor,r=e.sel.head;e.lastPastedText&&(r=t.posFromIndex(t.indexFromPos(n)+e.lastPastedText.length),e.lastPastedText=null),e.lastSelection={anchorMark:t.setBookmark(n),headMark:t.setBookmark(r),anchor:pt(n),head:pt(r),visualMode:e.visualMode,visualLine:e.visualLine,visualBlock:e.visualBlock}}function Et(t,e,n){var r,o=t.state.vim.sel,a=o.head,s=o.anchor;return mt(n,e)&&(r=n,n=e,e=r),mt(a,s)?(a=gt(e,a),s=vt(s,n)):(s=gt(e,s),a=vt(a,n),a=ct(a,0,-1),-1==a.ch&&a.line!=t.firstLine()&&(a=i(a.line-1,_t(t,a.line-1)))),[s,a]}function Tt(t,e,n){var r=t.state.vim;e=e||r.sel;n=n||r.visualLine?"line":r.visualBlock?"block":"char";var i=Pt(t,e,n);t.setSelections(i.ranges,i.primary),Ve(t)}function Pt(t,e,n,r){var o=pt(e.head),a=pt(e.anchor);if("char"==n){var s=r||mt(e.head,e.anchor)?0:1,l=mt(e.head,e.anchor)?1:0;return o=ct(e.head,0,s),a=ct(e.anchor,0,l),{ranges:[{anchor:a,head:o}],primary:0}}if("line"==n){if(mt(e.head,e.anchor))o.ch=0,a.ch=_t(t,a.line);else{a.ch=0;var c=t.lastLine();o.line>c&&(o.line=c),o.ch=_t(t,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==n){for(var u=Math.min(a.line,o.line),d=Math.min(a.ch,o.ch),f=Math.max(a.line,o.line),h=Math.max(a.ch,o.ch)+1,p=f-u+1,$=o.line==u?0:p-1,m=[],g=0;g<p;g++)m.push({anchor:i(u+g,d),head:i(u+g,h)});return{ranges:m,primary:$}}}function Bt(t){var e=t.getCursor("head");return 1==t.getSelection().length&&(e=gt(e,t.getCursor("anchor"))),e}function Lt(e,n){var r=e.state.vim;!1!==n&&e.setCursor(st(e,r.sel.head)),At(e,r),r.visualMode=!1,r.visualLine=!1,r.visualBlock=!1,r.insertMode||t.signal(e,"vim-mode-change",{mode:"normal"}),Ue(r)}function It(t,e,n){var r=t.getRange(e,n);if(/\n\s*$/.test(r)){var i=r.split("\n");i.pop();for(var o=i.pop();i.length>0&&o&&B(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=_t(t,n.line)):n.ch=0}}function Dt(t,e,n){e.ch=0,n.ch=0,n.line++}function Rt(t){if(!t)return 0;var e=t.search(/\S/);return-1==e?t.length:e}function jt(t,e,n,r,o){var a=Bt(t),s=t.getLine(a.line),l=a.ch,c=o?y[0]:_[0];while(!c(s.charAt(l)))if(l++,l>=s.length)return null;r?c=_[0]:(c=y[0],c(s.charAt(l))||(c=y[1]));var u=l,d=l;while(c(s.charAt(u))&&u<s.length)u++;while(c(s.charAt(d))&&d>=0)d--;if(d++,e){var f=u;while(/\s/.test(s.charAt(u))&&u<s.length)u++;if(f==u){var h=d;while(/\s/.test(s.charAt(d-1))&&d>0)d--;d||(d=h)}}return{start:i(a.line,d),end:i(a.line,u)}}function Mt(e,n,r){var i=n;if(!t.findMatchingTag||!t.findEnclosingTag)return{start:i,end:i};var o=t.findMatchingTag(e,n)||t.findEnclosingTag(e,n);return o&&o.open&&o.close?r?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:i,end:i}}function Ft(t,e,n){$t(e,n)||F.jumpList.add(t,e,n)}function Nt(t,e){F.lastCharacterSearch.increment=t,F.lastCharacterSearch.forward=e.forward,F.lastCharacterSearch.selectedCharacter=e.selectedCharacter}var zt={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Ht={bracket:{isComplete:function(t){if(t.nextCh===t.symb){if(t.depth++,t.depth>=1)return!0}else t.nextCh===t.reverseSymb&&t.depth--;return!1}},section:{init:function(t){t.curMoveThrough=!0,t.symb=(t.forward?"]":"[")===t.symb?"{":"}"},isComplete:function(t){return 0===t.index&&t.nextCh===t.symb}},comment:{isComplete:function(t){var e="*"===t.lastCh&&"/"===t.nextCh;return t.lastCh=t.nextCh,e}},method:{init:function(t){t.symb="m"===t.symb?"{":"}",t.reverseSymb="{"===t.symb?"}":"{"},isComplete:function(t){return t.nextCh===t.symb}},preprocess:{init:function(t){t.index=0},isComplete:function(t){if("#"===t.nextCh){var e=t.lineText.match(/#(\w+)/)[1];if("endif"===e){if(t.forward&&0===t.depth)return!0;t.depth++}else if("if"===e){if(!t.forward&&0===t.depth)return!0;t.depth--}if("else"===e&&0===t.depth)return!0}return!1}}};function Vt(t,e,n,r){var o=pt(t.getCursor()),a=n?1:-1,s=n?t.lineCount():-1,l=o.ch,c=o.line,u=t.getLine(c),d={lineText:u,nextCh:u.charAt(l),lastCh:null,index:l,symb:r,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:n,depth:0,curMoveThrough:!1},f=zt[r];if(!f)return o;var h=Ht[f].init,p=Ht[f].isComplete;h&&h(d);while(c!==s&&e){if(d.index+=a,d.nextCh=d.lineText.charAt(d.index),!d.nextCh){if(c+=a,d.lineText=t.getLine(c)||"",a>0)d.index=0;else{var $=d.lineText.length;d.index=$>0?$-1:0}d.nextCh=d.lineText.charAt(d.index)}p(d)&&(o.line=c,o.ch=d.index,e--)}return d.nextCh||d.curMoveThrough?i(c,d.index):o}function Ut(t,e,n,r,i){var o=e.line,a=e.ch,s=t.getLine(o),l=n?1:-1,c=r?_:y;if(i&&""==s){if(o+=l,s=t.getLine(o),!C(t,o))return null;a=n?0:s.length}while(1){if(i&&""==s)return{from:0,to:0,line:o};var u=l>0?s.length:-1,d=u,f=u;while(a!=u){for(var h=!1,p=0;p<c.length&&!h;++p)if(c[p](s.charAt(a))){d=a;while(a!=u&&c[p](s.charAt(a)))a+=l;if(f=a,h=d!=f,d==e.ch&&o==e.line&&f==d+l)continue;return{from:Math.min(d,f+1),to:Math.max(d,f),line:o}}h||(a+=l)}if(o+=l,!C(t,o))return null;s=t.getLine(o),a=l>0?0:s.length}}function qt(t,e,n,r,o,a){var s=pt(e),l=[];(r&&!o||!r&&o)&&n++;for(var c=!(r&&o),u=0;u<n;u++){var d=Ut(t,e,r,a,c);if(!d){var f=_t(t,t.lastLine());l.push(r?{line:t.lastLine(),from:f,to:f}:{line:0,from:0,to:0});break}l.push(d),e=i(d.line,r?d.to-1:d.from)}var h=l.length!=n,p=l[0],$=l.pop();return r&&!o?(h||p.from==s.ch&&p.line==s.line||($=l.pop()),i($.line,$.from)):r&&o?i($.line,$.to-1):!r&&o?(h||p.to==s.ch&&p.line==s.line||($=l.pop()),i($.line,$.to)):i($.line,$.from)}function Wt(t,e,n,r,o){var a=e,s=i(a.line+n.repeat-1,1/0),l=t.clipPos(s);return l.ch--,o||(r.lastHPos=1/0,r.lastHSPos=t.charCoords(l,"div").left),s}function Gt(t,e,n,r){for(var o,a=t.getCursor(),s=a.ch,l=0;l<e;l++){var c=t.getLine(a.line);if(o=Xt(s,c,r,n,!0),-1==o)return null;s=o}return i(t.getCursor().line,o)}function Yt(t,e){var n=t.getCursor().line;return st(t,i(n,e-1))}function Kt(t,e,n,r){I(n,S)&&(e.marks[n]&&e.marks[n].clear(),e.marks[n]=t.setBookmark(r))}function Xt(t,e,n,r,i){var o;return r?(o=e.indexOf(n,t+1),-1==o||i||(o-=1)):(o=e.lastIndexOf(n,t-1),-1==o||i||(o+=1)),o}function Zt(t,e,n,r,o){var a,s,l=e.line,c=t.firstLine(),u=t.lastLine(),d=l;function f(e){return!t.getLine(e)}function h(t,e,n){return n?f(t)!=f(t+e):!f(t)&&f(t+e)}if(r){while(c<=d&&d<=u&&n>0)h(d,r)&&n--,d+=r;return new i(d,0)}var p=t.state.vim;if(p.visualLine&&h(l,1,!0)){var $=p.sel.anchor;h($.line,-1,!0)&&(o&&$.line==l||(l+=1))}var m=f(l);for(d=l;d<=u&&n;d++)h(d,1,!0)&&(o&&f(d)==m||n--);for(s=new i(d,0),d>u&&!m?m=!0:o=!1,d=l;d>c;d--)if((!o||f(d)==m||d==l)&&h(d,-1,!0))break;return a=new i(d,0),{start:a,end:s}}function Jt(t,e,n,r){function o(t,e){if(e.pos+e.dir<0||e.pos+e.dir>=e.line.length){if(e.ln+=e.dir,!C(t,e.ln))return e.line=null,e.ln=null,void(e.pos=null);e.line=t.getLine(e.ln),e.pos=e.dir>0?0:e.line.length-1}else e.pos+=e.dir}function a(t,e,n,r){var i=t.getLine(e),a=""===i,s={line:i,ln:e,pos:n,dir:r},l={ln:s.ln,pos:s.pos},c=""===s.line;o(t,s);while(null!==s.line){if(l.ln=s.ln,l.pos=s.pos,""===s.line&&!c)return{ln:s.ln,pos:s.pos};if(a&&""!==s.line&&!B(s.line[s.pos]))return{ln:s.ln,pos:s.pos};!L(s.line[s.pos])||a||s.pos!==s.line.length-1&&!B(s.line[s.pos+1])||(a=!0),o(t,s)}i=t.getLine(l.ln);l.pos=0;for(var u=i.length-1;u>=0;--u)if(!B(i[u])){l.pos=u;break}return l}function s(t,e,n,r){var i=t.getLine(e),a={line:i,ln:e,pos:n,dir:r},s={ln:a.ln,pos:null},l=""===a.line;o(t,a);while(null!==a.line){if(""===a.line&&!l)return null!==s.pos?s:{ln:a.ln,pos:a.pos};if(L(a.line[a.pos])&&null!==s.pos&&(a.ln!==s.ln||a.pos+1!==s.pos))return s;""===a.line||B(a.line[a.pos])||(l=!1,s={ln:a.ln,pos:a.pos}),o(t,a)}i=t.getLine(s.ln);s.pos=0;for(var c=0;c<i.length;++c)if(!B(i[c])){s.pos=c;break}return s}var l={ln:e.line,pos:e.ch};while(n>0)l=r<0?s(t,l.ln,l.pos,r):a(t,l.ln,l.pos,r),n--;return i(l.ln,l.pos)}function Qt(t,e,n,r){var o,a,s=e,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],c={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],u=t.getLine(s.line).charAt(s.ch),d=u===c?1:0;if(o=t.scanForBracket(i(s.line,s.ch+d),-1,void 0,{bracketRegex:l}),a=t.scanForBracket(i(s.line,s.ch+d),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var f=o;o=a,a=f}return r?a.ch+=1:o.ch+=1,{start:o,end:a}}function te(t,e,n,r){var o,a,s,l,c=pt(e),u=t.getLine(c.line),d=u.split(""),f=d.indexOf(n);if(c.ch<f?c.ch=f:f<c.ch&&d[c.ch]==n&&(a=c.ch,--c.ch),d[c.ch]!=n||a)for(s=c.ch;s>-1&&!o;s--)d[s]==n&&(o=s+1);else o=c.ch+1;if(o&&!a)for(s=o,l=d.length;s<l&&!a;s++)d[s]==n&&(a=s);return o&&a?(r&&(--o,++a),{start:i(c.line,o),end:i(c.line,a)}):{start:c,end:c}}function ee(){}function ne(t){var e=t.state.vim;return e.searchState_||(e.searchState_=new ee)}function re(t,e,n,r,i){t.openDialog?t.openDialog(e,r,{bottom:!0,value:i.value,onKeyDown:i.onKeyDown,onKeyUp:i.onKeyUp,selectValueOnOpen:!1}):r(prompt(n,""))}function ie(t){return ae(t,"/")}function oe(t){return se(t,"/")}function ae(t,e){var n=se(t,e)||[];if(!n.length)return[];var r=[];if(0===n[0]){for(var i=0;i<n.length;i++)"number"==typeof n[i]&&r.push(t.substring(n[i]+1,n[i+1]));return r}}function se(t,e){e||(e="/");for(var n=!1,r=[],i=0;i<t.length;i++){var o=t.charAt(i);n||o!=e||r.push(i),n=!n&&"\\"==o}return r}function le(t){for(var e="|(){",n="}",r=!1,i=[],o=-1;o<t.length;o++){var a=t.charAt(o)||"",s=t.charAt(o+1)||"",l=s&&-1!=e.indexOf(s);r?("\\"===a&&l||i.push(a),r=!1):"\\"===a?(r=!0,s&&-1!=n.indexOf(s)&&(l=!0),l&&"\\"!==s||i.push(a)):(i.push(a),l&&"\\"!==s&&i.push("\\"))}return i.join("")}R("pcre",!0,"boolean"),ee.prototype={getQuery:function(){return F.query},setQuery:function(t){F.query=t},getOverlay:function(){return this.searchOverlay},setOverlay:function(t){this.searchOverlay=t},isReversed:function(){return F.isReversed},setReversed:function(t){F.isReversed=t},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(t){this.annotate=t}};var ce={"\\n":"\n","\\r":"\r","\\t":"\t"};function ue(t){for(var e=!1,n=[],r=-1;r<t.length;r++){var i=t.charAt(r)||"",o=t.charAt(r+1)||"";ce[i+o]?(n.push(ce[i+o]),r++):e?(n.push(i),e=!1):"\\"===i?(e=!0,T(o)||"$"===o?n.push("$"):"/"!==o&&"\\"!==o&&n.push("\\")):("$"===i&&n.push("$"),n.push(i),"/"===o&&n.push("\\"))}return n.join("")}var de={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function fe(e){var n=new t.StringStream(e),r=[];while(!n.eol()){while(n.peek()&&"\\"!=n.peek())r.push(n.next());var i=!1;for(var o in de)if(n.match(o,!0)){i=!0,r.push(de[o]);break}i||r.push(n.next())}return r.join("")}function he(t,e,n){var r=F.registerController.getRegister("/");if(r.setText(t),t instanceof RegExp)return t;var i,o,a=oe(t);if(a.length){i=t.substring(0,a[0]);var s=t.substring(a[0]);o=-1!=s.indexOf("i")}else i=t;if(!i)return null;M("pcre")||(i=le(i)),n&&(e=/^[^A-Z]*$/.test(i));var l=new RegExp(i,e||o?"i":void 0);return l}function pe(t,e){t.openNotification?t.openNotification('<span style="color: red">'+e+"</span>",{bottom:!0,duration:5e3}):alert(e)}function $e(t,e){var n='<span style="font-family: monospace; white-space: pre">'+(t||"")+'<input type="text" autocorrect="off" autocapitalize="off" spellcheck="false"></span>';return e&&(n+=' <span style="color: #888">'+e+"</span>"),n}var me="(Javascript regexp)";function ge(t,e){var n=(e.prefix||"")+" "+(e.desc||""),r=$e(e.prefix,e.desc);re(t,r,n,e.onClose,e)}function ve(t,e){if(t instanceof RegExp&&e instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r<n.length;r++){var i=n[r];if(t[i]!==e[i])return!1}return!0}return!1}function ye(t,e,n,r){if(e){var i=ne(t),o=he(e,!!n,!!r);if(o)return we(t,o),ve(o,i.getQuery())||i.setQuery(o),o}}function _e(t){if("^"==t.source.charAt(0))var e=!0;return{token:function(n){if(!e||n.sol()){var r=n.match(t,!1);if(r)return 0==r[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),t.exec(n.next()+r[0]))?(n.match(t),"searching"):(n.next(),null);while(!n.eol())if(n.next(),n.match(t,!1))break}else n.skipToEnd()},query:t}}var be=0;function we(t,e){clearTimeout(be),be=setTimeout((function(){var n=ne(t),r=n.getOverlay();r&&e==r.query||(r&&t.removeOverlay(r),r=_e(e),t.addOverlay(r),t.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(t.showMatchesOnScrollbar(e))),n.setOverlay(r))}),50)}function xe(t,e,n,r){return void 0===r&&(r=1),t.operation((function(){for(var o=t.getCursor(),a=t.getSearchCursor(n,o),s=0;s<r;s++){var l=a.find(e);if(0==s&&l&&$t(a.from(),o)&&(l=a.find(e)),!l&&(a=t.getSearchCursor(n,e?i(t.lastLine()):i(t.firstLine(),0)),!a.find(e)))return}return a.from()}))}function ke(t,e,n,r,o){return void 0===r&&(r=1),t.operation((function(){var a=t.getCursor(),s=t.getSearchCursor(n,a),l=s.find(!e);!o.visualMode&&l&&$t(s.from(),a)&&s.find(!e);for(var c=0;c<r;c++)if(l=s.find(e),!l&&(s=t.getSearchCursor(n,e?i(t.lastLine()):i(t.firstLine(),0)),!s.find(e)))return;return[s.from(),s.to()]}))}function Se(t){var e=ne(t);t.removeOverlay(ne(t).getOverlay()),e.setOverlay(null),e.getScrollbarAnnotate()&&(e.getScrollbarAnnotate().clear(),e.setScrollbarAnnotate(null))}function Oe(t,e,n){return"number"!=typeof t&&(t=t.line),e instanceof Array?I(t,e):n?t>=e&&t<=n:t==e}function Ce(t){var e=t.getScrollInfo(),n=6,r=10,i=t.coordsChar({left:0,top:n+e.top},"local"),o=e.clientHeight-r+e.top,a=t.coordsChar({left:0,top:o},"local");return{top:i.line,bottom:a.line}}function Ae(t,e,n){if("'"==n||"`"==n)return F.jumpList.find(t,-1)||i(0,0);if("."==n)return Ee(t);var r=e.marks[n];return r&&r.find()}function Ee(t){for(var e=t.doc.history.done,n=e.length;n--;)if(e[n].changes)return pt(e[n].changes[0].to)}var Te=function(){this.buildCommandMap_()};Te.prototype={processCommand:function(t,e,n){var r=this;t.operation((function(){t.curOp.isVimOp=!0,r._processCommand(t,e,n)}))},_processCommand:function(e,n,r){var i=e.state.vim,o=F.registerController.getRegister(":"),a=o.toString();i.visualMode&&Lt(e);var s=new t.StringStream(n);o.setText(n);var l,c,u=r||{};u.input=n;try{this.parseInput_(e,s,u)}catch(f){throw pe(e,f),f}if(u.commandName){if(l=this.matchCommand_(u.commandName),l){if(c=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,u,l),"exToKey"==l.type){for(var d=0;d<l.toKeys.length;d++)t.Vim.handleKey(e,l.toKeys[d],"mapping");return}if("exToEx"==l.type)return void this.processCommand(e,l.toInput)}}else void 0!==u.line&&(c="move");if(c)try{Pe[c](e,u),l&&l.possiblyAsync||!u.callback||u.callback()}catch(f){throw pe(e,f),f}else pe(e,'Not an editor command ":'+n+'"')},parseInput_:function(t,e,n){e.eatWhile(":"),e.eat("%")?(n.line=t.firstLine(),n.lineEnd=t.lastLine()):(n.line=this.parseLineSpec_(t,e),void 0!==n.line&&e.eat(",")&&(n.lineEnd=this.parseLineSpec_(t,e)));var r=e.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return n.commandName=r?r[1]:e.match(/.*/)[0],n},parseLineSpec_:function(t,e){var n=e.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(e.next()){case".":return this.parseLineSpecOffset_(e,t.getCursor().line);case"$":return this.parseLineSpecOffset_(e,t.lastLine());case"'":var r=e.next(),i=Ae(t,t.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(e,i.line);case"-":case"+":return e.backUp(1),this.parseLineSpecOffset_(e,t.getCursor().line);default:return void e.backUp(1)}},parseLineSpecOffset_:function(t,e){var n=t.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?e-=r:e+=r}return e},parseCommandArgs_:function(t,e,n){if(!t.eol()){e.argString=t.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=bt(e.argString).split(r);i.length&&i[0]&&(e.args=i)}},matchCommand_:function(t){for(var e=t.length;e>0;e--){var n=t.substring(0,e);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(t))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var t=0;t<r.length;t++){var e=r[t],n=e.shortName||e.name;this.commandMap_[n]=e}},map:function(t,n,r){if(":"!=t&&":"==t.charAt(0)){if(r)throw Error("Mode not supported for ex mappings");var i=t.substring(1);":"!=n&&":"==n.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:n.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:n,user:!0}}else if(":"!=n&&":"==n.charAt(0)){var o={keys:t,type:"keyToEx",exArgs:{input:n.substring(1)}};r&&(o.context=r),e.unshift(o)}else{o={keys:t,type:"keyToKey",toKeys:n};r&&(o.context=r),e.unshift(o)}},unmap:function(t,n){if(":"!=t&&":"==t.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var r=t.substring(1);if(this.commandMap_[r]&&this.commandMap_[r].user)return void delete this.commandMap_[r]}else for(var i=t,o=0;o<e.length;o++)if(i==e[o].keys&&e[o].context===n)return void e.splice(o,1);throw Error("No such mapping.")}};var Pe={colorscheme:function(t,e){!e.args||e.args.length<1?pe(t,t.getOption("theme")):t.setOption("theme",e.args[0])},map:function(t,e,n){var r=e.args;!r||r.length<2?t&&pe(t,"Invalid mapping: "+e.input):Be.map(r[0],r[1],n)},imap:function(t,e){this.map(t,e,"insert")},nmap:function(t,e){this.map(t,e,"normal")},vmap:function(t,e){this.map(t,e,"visual")},unmap:function(t,e,n){var r=e.args;!r||r.length<1?t&&pe(t,"No such mapping: "+e.input):Be.unmap(r[0],n)},move:function(t,e){Q.processCommand(t,t.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:e.line+1})},set:function(t,e){var n=e.args,r=e.setCfg||{};if(!n||n.length<1)t&&pe(t,"Invalid mapping: "+e.input);else{var i=n[0].split("="),o=i[0],a=i[1],s=!1;if("?"==o.charAt(o.length-1)){if(a)throw Error("Trailing characters: "+e.argString);o=o.substring(0,o.length-1),s=!0}void 0===a&&"no"==o.substring(0,2)&&(o=o.substring(2),a=!1);var l=D[o]&&"boolean"==D[o].type;if(l&&void 0==a&&(a=!0),!l&&void 0===a||s){var c=M(o,t,r);c instanceof Error?pe(t,c.message):pe(t,!0===c||!1===c?" "+(c?"":"no")+o:" "+o+"="+c)}else{var u=j(o,a,t,r);u instanceof Error&&pe(t,u.message)}}},setlocal:function(t,e){e.setCfg={scope:"local"},this.set(t,e)},setglobal:function(t,e){e.setCfg={scope:"global"},this.set(t,e)},registers:function(t,e){var n=e.args,r=F.registerController.registers,i="----------Registers----------<br><br>";if(n){n=n.join("");for(var o=0;o<n.length;o++)if(s=n.charAt(o),F.registerController.isValidRegister(s)){var a=r[s]||new K;i+='"'+s+" "+a.toString()+"<br>"}}else for(var s in r){var l=r[s].toString();l.length&&(i+='"'+s+" "+l+"<br>")}pe(t,i)},sort:function(e,n){var r,o,a,s,l;function c(){if(n.argString){var e=new t.StringStream(n.argString);if(e.eat("!")&&(r=!0),e.eol())return;if(!e.eatSpace())return"Invalid arguments";var i=e.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!i&&!e.eol())return"Invalid arguments";if(i[1]){o=-1!=i[1].indexOf("i"),a=-1!=i[1].indexOf("u");var c=-1!=i[1].indexOf("d")||-1!=i[1].indexOf("n")&&1,u=-1!=i[1].indexOf("x")&&1,d=-1!=i[1].indexOf("o")&&1;if(c+u+d>1)return"Invalid arguments";s=(c?"decimal":u&&"hex")||d&&"octal"}i[2]&&(l=new RegExp(i[2].substr(1,i[2].length-2),o?"i":""))}}var u=c();if(u)pe(e,u+": "+n.argString);else{var d=n.line||e.firstLine(),f=n.lineEnd||n.line||e.lastLine();if(d!=f){var h=i(d,0),p=i(f,_t(e,f)),$=e.getRange(h,p).split("\n"),m=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),g="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,v=[],y=[];if(s||l)for(var _=0;_<$.length;_++){var b=l?$[_].match(l):null;b&&""!=b[0]?v.push(b):!l&&m.exec($[_])?v.push($[_]):y.push($[_])}else y=$;if(v.sort(l?S:k),l)for(_=0;_<v.length;_++)v[_]=v[_].input;else s||y.sort(k);if($=r?v.concat(y):y.concat(v),a){var w,x=$;$=[];for(_=0;_<x.length;_++)x[_]!=w&&$.push(x[_]),w=x[_]}e.replaceRange($.join("\n"),h,p)}}function k(t,e){var n;r&&(n=t,t=e,e=n);o&&(t=t.toLowerCase(),e=e.toLowerCase());var i=s&&m.exec(t),a=s&&m.exec(e);return i?(i=parseInt((i[1]+i[2]).toLowerCase(),g),a=parseInt((a[1]+a[2]).toLowerCase(),g),i-a):t<e?-1:1}function S(t,e){var n;r&&(n=t,t=e,e=n);return o&&(t[0]=t[0].toLowerCase(),e[0]=e[0].toLowerCase()),t[0]<e[0]?-1:1}},global:function(t,e){var n=e.argString;if(n){var r,i=void 0!==e.line?e.line:t.firstLine(),o=e.lineEnd||e.line||t.lastLine(),a=ie(n),s=n;if(a.length&&(s=a[0],r=a.slice(1,a.length).join("/")),s)try{ye(t,s,!0,!0)}catch($){return void pe(t,"Invalid regex: "+s)}for(var l=ne(t).getQuery(),c=[],u="",d=i;d<=o;d++){var f=l.test(t.getLine(d));f&&(c.push(d+1),u+=t.getLine(d)+"<br>")}if(r){var h=0,p=function(){if(h<c.length){var e=c[h]+r;Be.processCommand(t,e,{callback:p})}h++};p()}else pe(t,u)}else pe(t,"Regular Expression missing from global")},substitute:function(t,e){if(!t.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var n,r,o,a,s=e.argString,l=s?ae(s,s[0]):[],c="",u=!1,d=!1;if(l.length)n=l[0],M("pcre")&&""!==n&&(n=new RegExp(n).source),c=l[1],n&&"$"===n[n.length-1]&&(n=n.slice(0,n.length-1)+"\\n",c=c?c+"\n":"\n"),void 0!==c&&(c=M("pcre")?fe(c.replace(/([^\\])&/g,"$1$$&")):ue(c),F.lastSubstituteReplacePart=c),r=l[2]?l[2].split(" "):[];else if(s&&s.length)return void pe(t,"Substitutions should be of the form :s/pattern/replace/");if(r&&(o=r[0],a=parseInt(r[1]),o&&(-1!=o.indexOf("c")&&(u=!0,o.replace("c","")),-1!=o.indexOf("g")&&(d=!0,o.replace("g","")),n=M("pcre")?n+"/"+o:n.replace(/\//g,"\\/")+"/"+o)),n)try{ye(t,n,!0,!0)}catch(v){return void pe(t,"Invalid regex: "+n)}if(c=c||F.lastSubstituteReplacePart,void 0!==c){var f=ne(t),h=f.getQuery(),p=void 0!==e.line?e.line:t.getCursor().line,$=e.lineEnd||p;p==t.firstLine()&&$==t.lastLine()&&($=1/0),a&&(p=$,$=p+a-1);var m=st(t,i(p,0)),g=t.getSearchCursor(h,m);Le(t,u,d,p,$,g,h,c,e.callback)}else pe(t,"No previous substitute regular expression")},redo:t.commands.redo,undo:t.commands.undo,write:function(e){t.commands.save?t.commands.save(e):e.save&&e.save()},nohlsearch:function(t){Se(t)},yank:function(t){var e=pt(t.getCursor()),n=e.line,r=t.getLine(n);F.registerController.pushText("0","yank",r,!0,!0)},delmarks:function(e,n){if(n.argString&&bt(n.argString)){var r=e.state.vim,i=new t.StringStream(bt(n.argString));while(!i.eol()){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void pe(e,"Invalid argument: "+n.argString.substring(o));var a=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void pe(e,"Invalid argument: "+n.argString.substring(o));var s=a,l=i.next();if(!(A(s)&&A(l)||P(s)&&P(l)))return void pe(e,"Invalid argument: "+s+"-");var c=s.charCodeAt(0),u=l.charCodeAt(0);if(c>=u)return void pe(e,"Invalid argument: "+n.argString.substring(o));for(var d=0;d<=u-c;d++){var f=String.fromCharCode(c+d);delete r.marks[f]}}else delete r.marks[a]}}else pe(e,"Argument required")}},Be=new Te;function Le(e,n,r,i,o,a,s,l,c){e.state.vim.exMode=!0;var u=!1,d=a.from();function f(){e.operation((function(){while(!u)h(),p();$()}))}function h(){var t=e.getRange(a.from(),a.to()),n=t.replace(s,l);a.replace(n)}function p(){while(a.findNext()&&Oe(a.from(),i,o))if(r||!d||a.from().line!=d.line)return e.scrollIntoView(a.from(),30),e.setSelection(a.from(),a.to()),d=a.from(),void(u=!1);u=!0}function $(t){if(t&&t(),e.focus(),d){e.setCursor(d);var n=e.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=d.ch}c&&c()}function m(n,r,i){t.e_stop(n);var o=t.keyName(n);switch(o){case"Y":h(),p();break;case"N":p();break;case"A":var a=c;c=void 0,e.operation(f),c=a;break;case"L":h();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":$(i);break}return u&&$(i),!0}if(p(),!u)return n?void ge(e,{prefix:"replace with <strong>"+l+"</strong> (y/n/a/q/l)",onKeyDown:m}):(f(),void(c&&c()));pe(e,"No matches for "+s.source)}function Ie(e){var n=e.state.vim,r=F.macroModeState,i=F.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(e.off("change",ze),t.off(e.getInputField(),"keydown",Ge)),!o&&n.insertModeRepeat>1&&(Ye(e,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,e.setCursor(e.getCursor().line,e.getCursor().ch-1),e.setOption("keyMap","vim"),e.setOption("disableInput",!0),e.toggleOverwrite(!1),i.setText(a.changes.join("")),t.signal(e,"vim-mode-change",{mode:"normal"}),r.isRecording&&Fe(r)}function De(t){e.unshift(t)}function Re(t,e,n,r,i){var o={keys:t,type:e};for(var a in o[e]=n,o[e+"Args"]=r,i)o[a]=i[a];De(o)}function je(e,n,r,i){var o=F.registerController.getRegister(i);if(":"==i)return o.keyBuffer[0]&&Be.processCommand(e,o.keyBuffer[0]),void(r.isPlaying=!1);var a=o.keyBuffer,s=0;r.isPlaying=!0,r.replaySearchQueries=o.searchQueries.slice(0);for(var l=0;l<a.length;l++){var c,u,d=a[l];while(d)if(c=/<\w+-.+?>|<\w+>|./.exec(d),u=c[0],d=d.substring(c.index+u.length),t.Vim.handleKey(e,u,"macro"),n.insertMode){var f=o.insertModeChanges[s++].changes;F.macroModeState.lastInsertModeChanges.changes=f,Ke(e,f,1),Ie(e)}}r.isPlaying=!1}function Me(t,e){if(!t.isPlaying){var n=t.latestRegister,r=F.registerController.getRegister(n);r&&r.pushText(e)}}function Fe(t){if(!t.isPlaying){var e=t.latestRegister,n=F.registerController.getRegister(e);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(t.lastInsertModeChanges)}}function Ne(t,e){if(!t.isPlaying){var n=t.latestRegister,r=F.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(e)}}function ze(t,e){var n=F.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)while(e){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==e.origin||"paste"==e.origin||void 0===e.origin){var i=t.listSelections().length;i>1&&(r.ignoreCount=i);var o=e.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(t.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}e=e.next}}function He(t){var e=t.state.vim;if(e.insertMode){var n=F.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else t.curOp.isVimOp||qe(t,e);e.visualMode&&Ve(t)}function Ve(t){var e="cm-animate-fat-cursor",n=t.state.vim,r=st(t,pt(n.sel.head)),i=ct(r,0,1);if(Ue(n),r.ch==t.getLine(r.line).length){var o=document.createElement("span");o.textContent=" ",o.className=e,n.fakeCursorBookmark=t.setBookmark(r,{widget:o})}else n.fakeCursor=t.markText(r,i,{className:e})}function Ue(t){t.fakeCursor&&(t.fakeCursor.clear(),t.fakeCursor=null),t.fakeCursorBookmark&&(t.fakeCursorBookmark.clear(),t.fakeCursorBookmark=null)}function qe(e,n){var r=e.getCursor("anchor"),i=e.getCursor("head");if(n.visualMode&&!e.somethingSelected()?Lt(e,!1):n.visualMode||n.insertMode||!e.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,t.signal(e,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=mt(i,r)?0:-1,a=mt(i,r)?-1:0;i=ct(i,0,o),r=ct(r,0,a),n.sel={anchor:r,head:i},Kt(e,n,"<",gt(i,r)),Kt(e,n,">",vt(i,r))}else n.insertMode||(n.lastHPos=e.getCursor().ch)}function We(t){this.keyName=t}function Ge(e){var n=F.macroModeState,r=n.lastInsertModeChanges,i=t.keyName(e);function o(){return r.maybeReset&&(r.changes=[],r.maybeReset=!1),r.changes.push(new We(i)),!0}i&&(-1==i.indexOf("Delete")&&-1==i.indexOf("Backspace")||t.lookupKey(i,"vim-insert",o))}function Ye(t,e,n,r){var i=F.macroModeState;i.isPlaying=!0;var o=!!e.lastEditActionCommand,a=e.inputState;function s(){o?Q.processAction(t,e,e.lastEditActionCommand):Q.evalInput(t,e)}function l(n){if(i.lastInsertModeChanges.changes.length>0){n=e.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;Ke(t,r.changes,n)}}if(e.inputState=e.lastEditInputState,o&&e.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;c<n;c++)s(),l(1);else r||s(),l(n);e.inputState=a,e.insertMode&&!r&&Ie(t),i.isPlaying=!1}function Ke(e,n,r){function i(n){return"string"==typeof n?t.commands[n](e):n(e),!0}var o=e.getCursor("head"),a=F.macroModeState.lastInsertModeChanges.visualBlock;a&&(St(e,o,a+1),r=e.listSelections().length,e.setCursor(o));for(var s=0;s<r;s++){a&&e.setCursor(ct(o,s,0));for(var l=0;l<n.length;l++){var c=n[l];if(c instanceof We)t.lookupKey(c.keyName,"vim-insert",i);else if("string"==typeof c){var u=e.getCursor();e.replaceRange(c,u,u)}else{var d=e.getCursor(),f=ct(d,0,c[0].length);e.replaceRange(c[0],d,f)}}}a&&e.setCursor(ct(o,0,1))}return t.keyMap.vim={attach:l,detach:s,call:h},R("insertModeEscKeysTimeout",200,"number"),t.keyMap["vim-insert"]={fallthrough:["default"],attach:l,detach:s,call:h},t.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:l,detach:s,call:h},q(),W};t.Vim=o()}))},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),d=">",f="<",h="prototype",p="script",$=u("IE_PROTO"),m=function(){},g=function(t){return f+p+d+t+f+"/"+p+d},v=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=c("iframe"),n="java"+p+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}_=r?v(r):y();var t=a.length;while(t--)delete _[h][a[t]];return _()};s[$]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[h]=i(t),n=new m,m[h]=null,n[$]=t):n=_(),void 0===e?n:o(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),c=n("6eeb"),u=n("b622"),d=n("c430"),f=n("3f8c"),h=n("ae93"),p=h.IteratorPrototype,$=h.BUGGY_SAFARI_ITERATORS,m=u("iterator"),g="keys",v="values",y="entries",_=function(){return this};t.exports=function(t,e,n,u,h,b,w){i(n,e,u);var x,k,S,O=function(t){if(t===h&&P)return P;if(!$&&t in E)return E[t];switch(t){case g:return function(){return new n(this,t)};case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",A=!1,E=t.prototype,T=E[m]||E["@@iterator"]||h&&E[h],P=!$&&T||O(h),B="Array"==e&&E.entries||T;if(B&&(x=o(B.call(new t)),p!==Object.prototype&&x.next&&(d||o(x)===p||(a?a(x,p):"function"!=typeof x[m]&&l(x,m,_)),s(x,C,!0,!0),d&&(f[C]=_))),h==v&&T&&T.name!==v&&(A=!0,P=function(){return T.call(this)}),d&&!w||E[m]===P||l(E,m,P),f[e]=P,h)if(k={values:O(v),keys:b?P:O(g),entries:O(y)},w)for(S in k)($||A||!(S in E))&&c(E,S,k[S]);else r({target:e,proto:!0,forced:$||A},k);return k}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8c33":function(t,e,n){(function(t){t(n("56b3"))})((function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(t){return t&&t.bracketRegex||/[(){}[\]]/}function o(t,e,o){var s=t.getLineHandle(e.line),l=e.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var u=i(o),d=!c&&l>=0&&u.test(s.text.charAt(l))&&r[s.text.charAt(l)]||u.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==e.ch))return null;var h=t.getTokenTypeAt(n(e.line,l+1)),p=a(t,n(e.line,l+(f>0?1:0)),f,h||null,o);return null==p?null:{from:n(e.line,l),to:p&&p.pos,match:p&&p.ch==d.charAt(0),forward:f>0}}function a(t,e,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],d=i(s),f=o>0?Math.min(e.line+c,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-c),h=e.line;h!=f;h+=o){var p=t.getLine(h);if(p){var $=o>0?0:p.length-1,m=o>0?p.length:-1;if(!(p.length>l))for(h==e.line&&($=e.ch-(o<0?1:0));$!=m;$+=o){var g=p.charAt($);if(d.test(g)&&(void 0===a||t.getTokenTypeAt(n(h,$+1))==a)){var v=r[g];if(v&&">"==v.charAt(1)==o>0)u.push(g);else{if(!u.length)return{pos:n(h,$),ch:g};u.pop()}}}}}return h-o!=(o>0?t.lastLine():t.firstLine())&&null}function s(t,r,i){for(var a=t.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=t.listSelections(),c=0;c<l.length;c++){var u=l[c].empty()&&o(t,l[c].head,i);if(u&&t.getLine(u.from.line).length<=a){var d=u.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(t.markText(u.from,n(u.from.line,u.from.ch+1),{className:d})),u.to&&t.getLine(u.to.line).length<=a&&s.push(t.markText(u.to,n(u.to.line,u.to.ch+1),{className:d}))}}if(s.length){e&&t.state.focused&&t.focus();var f=function(){t.operation((function(){for(var t=0;t<s.length;t++)s[t].clear()}))};if(!r)return f;setTimeout(f,800)}}function l(t){t.operation((function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=s(t,!1,t.state.matchBrackets)}))}t.defineOption("matchBrackets",!1,(function(e,n,r){function i(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}r&&r!=t.Init&&(e.off("cursorActivity",l),e.off("focus",l),e.off("blur",i),i(e)),n&&(e.state.matchBrackets="object"==typeof n?n:{},e.on("cursorActivity",l),e.on("focus",l),e.on("blur",i))})),t.defineExtension("matchBrackets",(function(){s(this,!0)})),t.defineExtension("findMatchingBracket",(function(t,e,n){return(n||"boolean"==typeof e)&&(n?(n.strict=e,e=n):e=e?{strict:!0}:null),o(this,t,e)})),t.defineExtension("scanForBracket",(function(t,e,n,r){return a(this,t,e,n,r)}))}))},"8d70":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";function e(e,n){var r=e.getLine(n),i=r.search(/\S/);return-1==i||/\bcomment\b/.test(e.getTokenTypeAt(t.Pos(n,i+1)))?-1:t.countColumn(r,null,e.getOption("tabSize"))}t.registerHelper("fold","indent",(function(n,r){var i=e(n,r.line);if(!(i<0)){for(var o=null,a=r.line+1,s=n.lastLine();a<=s;++a){var l=e(n,a);if(-1==l);else{if(!(l>i))break;o=a}}return o?{from:t.Pos(r.line,n.getLine(r.line).length),to:t.Pos(o,n.getLine(o).length)}:void 0}}))}))},"8f94":function(t,e,n){!function(e,r){t.exports=r(n("56b3"))}(0,(function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(e,n){e.exports=t},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=window.CodeMirror||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},writable:!0,configurable:!0}),e.default={name:"codemirror",data:function(){return{content:"",codemirror:null,cminstance:null}},props:{code:String,value:String,marker:Function,unseenLines:Array,name:{type:String,default:"codemirror"},placeholder:{type:String,default:""},merge:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{}}},globalEvents:{type:Array,default:function(){return[]}}},watch:{options:{deep:!0,handler:function(t){for(var e in t)this.cminstance.setOption(e,t[e])}},merge:function(){this.$nextTick(this.switchMerge)},code:function(t){this.handerCodeChange(t)},value:function(t){this.handerCodeChange(t)}},methods:{initialize:function(){var t=this,e=Object.assign({},this.globalOptions,this.options);this.merge?(this.codemirror=o.MergeView(this.$refs.mergeview,e),this.cminstance=this.codemirror.edit):(this.codemirror=o.fromTextArea(this.$refs.textarea,e),this.cminstance=this.codemirror,this.cminstance.setValue(this.code||this.value||this.content)),this.cminstance.on("change",(function(e){t.content=e.getValue(),t.$emit&&t.$emit("input",t.content)}));var n={};["scroll","changes","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"].concat(this.events).concat(this.globalEvents).filter((function(t){return!n[t]&&(n[t]=!0)})).forEach((function(e){t.cminstance.on(e,(function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.$emit.apply(t,[e].concat(r));var o=e.replace(/([A-Z])/g,"-$1").toLowerCase();o!==e&&t.$emit.apply(t,[o].concat(r))}))})),this.$emit("ready",this.codemirror),this.unseenLineMarkers(),this.refresh()},refresh:function(){var t=this;this.$nextTick((function(){t.cminstance.refresh()}))},destroy:function(){var t=this.cminstance.doc.cm.getWrapperElement();t&&t.remove&&t.remove()},handerCodeChange:function(t){if(t!==this.cminstance.getValue()){var e=this.cminstance.getScrollInfo();this.cminstance.setValue(t),this.content=t,this.cminstance.scrollTo(e.left,e.top)}this.unseenLineMarkers()},unseenLineMarkers:function(){var t=this;void 0!==this.unseenLines&&void 0!==this.marker&&this.unseenLines.forEach((function(e){var n=t.cminstance.lineInfo(e);t.cminstance.setGutterMarker(e,"breakpoints",n.gutterMarkers?null:t.marker())}))},switchMerge:function(){var t=this.cminstance.doc.history,e=this.cminstance.doc.cleanGeneration;this.options.value=this.cminstance.getValue(),this.destroy(),this.initialize(),this.cminstance.doc.history=t,this.cminstance.doc.cleanGeneration=e}},mounted:function(){this.initialize()},beforeDestroy:function(){this.destroy()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n.n(r);for(var o in r)["default","default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a=n(5),s=n(4),l=s(i.a,a.a,!1,null,null,null);e.default=l.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.codemirror=e.CodeMirror=void 0;var i=n(0),o=r(i),a=n(2),s=r(a),l=window.CodeMirror||o.default,c=function(t,e){e&&(e.options&&(s.default.props.globalOptions.default=function(){return e.options}),e.events&&(s.default.props.globalEvents.default=function(){return e.events})),t.component(s.default.name,s.default)},u={CodeMirror:l,codemirror:s.default,install:c};e.default=u,e.CodeMirror=l,e.codemirror=s.default,e.install=c},function(t,e){t.exports=function(t,e,n,r,i,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):r&&(c=r),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),f(t,e)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-codemirror",class:{merge:t.merge}},[t.merge?n("div",{ref:"mergeview"}):n("textarea",{ref:"textarea",attrs:{name:t.name,placeholder:t.placeholder}})])},i=[],o={render:r,staticRenderFns:i};e.a=o}])}))},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9152:function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,f=n?-1:1,h=t[e+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+t[e+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+t[e+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,$=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+d>=1?f/l:f*Math.pow(2,1-d),e*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(e*l-1)*Math.pow(2,i),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+h]=255&a,h+=p,a/=256,c-=8);t[n+h-p]|=128*$}},"938d":function(t,e,n){"use strict";(function(t){n.d(e,"i",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"g",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"k",(function(){return u})),n.d(e,"e",(function(){return d})),n.d(e,"h",(function(){return f})),n.d(e,"f",(function(){return h})),n.d(e,"c",(function(){return p})),n.d(e,"a",(function(){return m}));var r="undefined"!==typeof window,i="undefined"!==typeof document,o="undefined"!==typeof navigator,a="undefined"!==typeof Promise,s="undefined"!==typeof MutationObserver||"undefined"!==typeof WebKitMutationObserver||"undefined"!==typeof MozMutationObserver,l=r&&i&&o,c=l?window.navigator.userAgent.toLowerCase():"",u=c.indexOf("jsdom")>0,d=(/msie|trident/.test(c),function(){var t=!1;if(l)try{var e={get passive(){t=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(n){t=!1}return t}()),f=l&&("ontouchstart"in document.documentElement||navigator.maxTouchPoints>0),h=l&&Boolean(window.PointerEvent||window.MSPointerEvent),p=l&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype,$=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r="undefined"!==typeof t&&t?Object({NODE_ENV:"production",BASE_URL:"/"})||!1:{};return e?r[e]||n:r},m=function(){return $("BOOTSTRAP_VUE_NO_WARN")||"production"===$("NODE_ENV")}}).call(this,n("4362"))},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=l&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},"96cf":function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(B){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=S(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(B){return{type:"throw",arg:B}}}t.wrap=c;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",$={};function m(){}function g(){}function v(){}var y={};y[o]=function(){return this};var _=Object.getPrototypeOf,b=_&&_(_(T([])));b&&b!==n&&r.call(b,o)&&(y=b);var w=v.prototype=m.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,a,s){var l=u(t[i],t,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"===typeof d&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var i;function o(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function S(t,e,n){var r=d;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return P()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===$)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=u(t,e,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===$)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}function O(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator["return"]&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method))return $;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return $}var i=u(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,$;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,$):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,$)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function T(t){if(t){var n=t[o];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){while(++i<t.length)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=w.constructor=v,v.constructor=g,g.displayName=l(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(k.prototype),k.prototype[a]=function(){return this},t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,s,"Generator"),w[o]=function(){return this},w.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,$):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),$},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),$}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),$}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},"97a1":function(t,e,n){t.exports=n("2ce7")},"9a48":function(t,e,n){(function(t){t(n("56b3"),n("b933"),n("8c33"))})((function(t){"use strict";var e=t.commands,n=t.Pos;function r(e,r,i){if(i<0&&0==r.ch)return e.clipPos(n(r.line-1));var o=e.getLine(r.line);if(i>0&&r.ch>=o.length)return e.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,c=l,u=i<0?0:o.length,d=0;c!=u;c+=i,d++){var f=o.charAt(i<0?c-1:c),h="_"!=f&&t.isWordChar(f)?"w":"o";if("w"==h&&f.toUpperCase()==f&&(h="W"),"start"==s)"o"!=h?(s="in",a=h):l=c+i;else if("in"==s&&a!=h){if("w"==a&&"W"==h&&i<0&&c--,"W"==a&&"w"==h&&i>0){if(c==l+1){a="w";continue}c--}break}}return n(r.line,c)}function i(t,e){t.extendSelectionsBy((function(n){return t.display.shift||t.doc.extend||n.empty()?r(t.doc,n.head,e):e<0?n.from():n.to()}))}function o(e,r){if(e.isReadOnly())return t.Pass;e.operation((function(){for(var t=e.listSelections().length,i=[],o=-1,a=0;a<t;a++){var s=e.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);e.replaceRange("\n",l,null,"+insertLine"),e.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}e.setSelections(i)})),e.execCommand("indentAuto")}function a(e,r){var i=r.ch,o=i,a=e.getLine(r.line);while(i&&t.isWordChar(a.charAt(i-1)))--i;while(o<a.length&&t.isWordChar(a.charAt(o)))++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function s(t,e){for(var n=t.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=t.findPosV(o.anchor,e,"line",o.anchor.goalColumn),s=t.findPosV(o.head,e,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:t.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:t.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}t.setSelections(r)}function l(e,n,r){for(var i=0;i<e.length;i++)if(0==t.cmpPos(e[i].from(),n)&&0==t.cmpPos(e[i].to(),r))return!0;return!1}e.goSubwordLeft=function(t){i(t,-1)},e.goSubwordRight=function(t){i(t,1)},e.scrollLineUp=function(t){var e=t.getScrollInfo();if(!t.somethingSelected()){var n=t.lineAtHeight(e.top+e.clientHeight,"local");t.getCursor().line>=n&&t.execCommand("goLineUp")}t.scrollTo(null,e.top-t.defaultTextHeight())},e.scrollLineDown=function(t){var e=t.getScrollInfo();if(!t.somethingSelected()){var n=t.lineAtHeight(e.top,"local")+1;t.getCursor().line<=n&&t.execCommand("goLineDown")}t.scrollTo(null,e.top+t.defaultTextHeight())},e.splitSelectionByLine=function(t){for(var e=t.listSelections(),r=[],i=0;i<e.length;i++)for(var o=e[i].from(),a=e[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});t.setSelections(r,0)},e.singleSelectionTop=function(t){var e=t.listSelections()[0];t.setSelection(e.anchor,e.head,{scroll:!1})},e.selectLine=function(t){for(var e=t.listSelections(),r=[],i=0;i<e.length;i++){var o=e[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}t.setSelections(r)},e.insertLineAfter=function(t){return o(t,!1)},e.insertLineBefore=function(t){return o(t,!0)},e.selectNextOccurrence=function(e){var r=e.getCursor("from"),i=e.getCursor("to"),o=e.state.sublimeFindFullWord==e.doc.sel;if(0==t.cmpPos(r,i)){var s=a(e,r);if(!s.word)return;e.setSelection(s.from,s.to),o=!0}else{var c=e.getRange(r,i),u=o?new RegExp("\\b"+c+"\\b"):c,d=e.getSearchCursor(u,i),f=d.findNext();if(f||(d=e.getSearchCursor(u,n(e.firstLine(),0)),f=d.findNext()),!f||l(e.listSelections(),d.from(),d.to()))return;e.addSelection(d.from(),d.to())}o&&(e.state.sublimeFindFullWord=e.doc.sel)},e.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");e.selectNextOccurrence(n),0!=t.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(t){return t.anchor!=r||t.head!=i})))},e.addCursorToPrevLine=function(t){s(t,-1)},e.addCursorToNextLine=function(t){s(t,1)};var c="(){}[]";function u(e){for(var r=e.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],s=a.head,l=e.scanForBracket(s,-1);if(!l)return!1;for(;;){var u=e.scanForBracket(s,1);if(!u)return!1;if(u.ch==c.charAt(c.indexOf(l.ch)+1)){var d=n(l.pos.line,l.pos.ch+1);if(0!=t.cmpPos(d,a.from())||0!=t.cmpPos(u.pos,a.to())){i.push({anchor:d,head:u.pos});break}if(l=e.scanForBracket(l.pos,-1),!l)return!1}s=n(u.pos.line,u.pos.ch+1)}}return e.setSelections(i),!0}function d(t){return t?/\bpunctuation\b/.test(t)?t:void 0:null}function f(e,r){if(e.isReadOnly())return t.Pass;for(var i,o=e.listSelections(),a=[],s=0;s<o.length;s++){var l=o[s];if(!l.empty()){var c=l.from().line,u=l.to().line;while(s<o.length-1&&o[s+1].from().line==u)u=o[++s].to().line;o[s].to().ch||u--,a.push(c,u)}}a.length?i=!0:a.push(e.firstLine(),e.lastLine()),e.operation((function(){for(var t=[],o=0;o<a.length;o+=2){var s=a[o],l=a[o+1],c=n(s,0),u=n(l),d=e.getRange(c,u,!1);r?d.sort():d.sort((function(t,e){var n=t.toUpperCase(),r=e.toUpperCase();return n!=r&&(t=n,e=r),t<e?-1:t==e?0:1})),e.replaceRange(d,c,u),i&&t.push({anchor:c,head:n(l+1,0)})}i&&e.setSelections(t,0)}))}function h(e,n){e.operation((function(){for(var r=e.listSelections(),i=[],o=[],s=0;s<r.length;s++){var l=r[s];l.empty()?(i.push(s),o.push("")):o.push(n(e.getRange(l.from(),l.to())))}e.replaceSelections(o,"around","case");var c;for(s=i.length-1;s>=0;s--){l=r[i[s]];if(!(c&&t.cmpPos(l.head,c)>0)){var u=a(e,l.head);c=u.from,e.replaceRange(n(u.word),u.from,u.to)}}}))}function p(e){var n=e.getCursor("from"),r=e.getCursor("to");if(0==t.cmpPos(n,r)){var i=a(e,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:e.getRange(n,r),word:i}}function $(t,e){var r=p(t);if(r){var i=r.query,o=t.getSearchCursor(i,e?r.to:r.from);(e?o.findNext():o.findPrevious())?t.setSelection(o.from(),o.to()):(o=t.getSearchCursor(i,e?n(t.firstLine(),0):t.clipPos(n(t.lastLine()))),(e?o.findNext():o.findPrevious())?t.setSelection(o.from(),o.to()):r.word&&t.setSelection(r.from,r.to))}}e.selectScope=function(t){u(t)||t.execCommand("selectAll")},e.selectBetweenBrackets=function(e){if(!u(e))return t.Pass},e.goToBracket=function(e){e.extendSelectionsBy((function(r){var i=e.scanForBracket(r.head,1,d(e.getTokenTypeAt(r.head)));if(i&&0!=t.cmpPos(i.pos,r.head))return i.pos;var o=e.scanForBracket(r.head,-1,d(e.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},e.swapLineUp=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],o=e.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],c=l.from().line-1,u=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--u,c>o?i.push(c,u):i.length&&(i[i.length-1]=u),o=u}e.operation((function(){for(var t=0;t<i.length;t+=2){var r=i[t],o=i[t+1],s=e.getLine(r);e.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>e.lastLine()?e.replaceRange("\n"+s,n(e.lastLine()),null,"+swapLine"):e.replaceRange(s+"\n",n(o,0),null,"+swapLine")}e.setSelections(a),e.scrollIntoView()}))},e.swapLineDown=function(e){if(e.isReadOnly())return t.Pass;for(var r=e.listSelections(),i=[],o=e.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,c=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,c):i.length&&(i[i.length-1]=c),o=c}e.operation((function(){for(var t=i.length-2;t>=0;t-=2){var r=i[t],o=i[t+1],a=e.getLine(r);r==e.lastLine()?e.replaceRange("",n(r-1),n(r),"+swapLine"):e.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),e.replaceRange(a+"\n",n(o,0),null,"+swapLine")}e.scrollIntoView()}))},e.toggleCommentIndented=function(t){t.toggleComment({indent:!0})},e.joinLines=function(t){for(var e=t.listSelections(),r=[],i=0;i<e.length;i++){var o=e[i],a=o.from(),s=a.line,l=o.to().line;while(i<e.length-1&&e[i+1].from().line==l)l=e[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}t.operation((function(){for(var e=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-e,s.anchor.ch),c=s.start;c<=s.end;c++){var u=c-e;c==s.end&&(a=n(u,t.getLine(u).length+1)),u<t.lastLine()&&(t.replaceRange(" ",n(u),n(u+1,/^\s*/.exec(t.getLine(u+1))[0].length)),++e)}i.push({anchor:l||a,head:a})}t.setSelections(i,0)}))},e.duplicateLine=function(t){t.operation((function(){for(var e=t.listSelections().length,r=0;r<e;r++){var i=t.listSelections()[r];i.empty()?t.replaceRange(t.getLine(i.head.line)+"\n",n(i.head.line,0)):t.replaceRange(t.getRange(i.from(),i.to()),i.from())}t.scrollIntoView()}))},e.sortLines=function(t){f(t,!0)},e.sortLinesInsensitive=function(t){f(t,!1)},e.nextBookmark=function(t){var e=t.state.sublimeBookmarks;if(e)while(e.length){var n=e.shift(),r=n.find();if(r)return e.push(n),t.setSelection(r.from,r.to)}},e.prevBookmark=function(t){var e=t.state.sublimeBookmarks;if(e)while(e.length){e.unshift(e.pop());var n=e[e.length-1].find();if(n)return t.setSelection(n.from,n.to);e.pop()}},e.toggleBookmark=function(t){for(var e=t.listSelections(),n=t.state.sublimeBookmarks||(t.state.sublimeBookmarks=[]),r=0;r<e.length;r++){for(var i=e[r].from(),o=e[r].to(),a=e[r].empty()?t.findMarksAt(i):t.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(t.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},e.clearBookmarks=function(t){var e=t.state.sublimeBookmarks;if(e)for(var n=0;n<e.length;n++)e[n].clear();e.length=0},e.selectBookmarks=function(t){var e=t.state.sublimeBookmarks,n=[];if(e)for(var r=0;r<e.length;r++){var i=e[r].find();i?n.push({anchor:i.from,head:i.to}):e.splice(r--,0)}n.length&&t.setSelections(n,0)},e.smartBackspace=function(e){if(e.somethingSelected())return t.Pass;e.operation((function(){for(var r=e.listSelections(),i=e.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=e.getRange({line:a.line,ch:0},a),l=t.countColumn(s,null,e.getOption("tabSize")),c=e.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var u=new n(a.line,t.findColumn(s,l-i,i));u.ch!=a.ch&&(c=u)}e.replaceRange("",c,a,"+delete")}}))},e.delLineRight=function(t){t.operation((function(){for(var e=t.listSelections(),r=e.length-1;r>=0;r--)t.replaceRange("",e[r].anchor,n(e[r].to().line),"+delete");t.scrollIntoView()}))},e.upcaseAtCursor=function(t){h(t,(function(t){return t.toUpperCase()}))},e.downcaseAtCursor=function(t){h(t,(function(t){return t.toLowerCase()}))},e.setSublimeMark=function(t){t.state.sublimeMark&&t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor())},e.selectToSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&t.setSelection(t.getCursor(),e)},e.deleteToSublimeMark=function(e){var n=e.state.sublimeMark&&e.state.sublimeMark.find();if(n){var r=e.getCursor(),i=n;if(t.cmpPos(r,i)>0){var o=i;i=r,r=o}e.state.sublimeKilled=e.getRange(r,i),e.replaceRange("",r,i)}},e.swapWithSublimeMark=function(t){var e=t.state.sublimeMark&&t.state.sublimeMark.find();e&&(t.state.sublimeMark.clear(),t.state.sublimeMark=t.setBookmark(t.getCursor()),t.setCursor(e))},e.sublimeYank=function(t){null!=t.state.sublimeKilled&&t.replaceSelection(t.state.sublimeKilled,null,"paste")},e.showInCenter=function(t){var e=t.cursorCoords(null,"local");t.scrollTo(null,(e.top+e.bottom)/2-t.getScrollInfo().clientHeight/2)},e.findUnder=function(t){$(t,!0)},e.findUnderPrevious=function(t){$(t,!1)},e.findAllUnder=function(t){var e=p(t);if(e){var n=t.getSearchCursor(e.query),r=[],i=-1;while(n.findNext())r.push({anchor:n.from(),head:n.to()}),n.from().line<=e.from.line&&n.from().ch<=e.from.ch&&i++;t.setSelections(r,i)}};var m=t.keyMap;m.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},t.normalizeKeyMap(m.macSublime),m.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},t.normalizeKeyMap(m.pcSublime);var g=m.default==m.macDefault;m.sublime=g?m.macSublime:m.pcSublime}))},"9b74":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";var e="CodeMirror-hint",n="CodeMirror-hint-active";function r(t,e){this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var r={hint:e};if(n)for(var i in n)r[i]=n[i];return t.showHint(r)},t.defineExtension("showHint",(function(e){e=a(this,this.getCursor("start"),e);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var i=0;i<n.length;i++)if(n[i].head.line!=n[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new r(this,e);o.options.hint&&(t.signal(this,"startCompletion",this),o.update(!0))}})),t.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var i=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function a(t,e,n){var r=t.options.hintOptions,i={};for(var o in p)i[o]=p[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(t,e)),i}function s(t){return"string"==typeof t?t:t.text}function l(t,e){var n={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},r=/Mac/.test(navigator.platform);r&&(n["Ctrl-P"]=function(){e.moveFocus(-1)},n["Ctrl-N"]=function(){e.moveFocus(1)});var i=t.options.customKeys,o=i?{}:n;function a(t,r){var i;i="string"!=typeof r?function(t){return r(t,e)}:n.hasOwnProperty(r)?n[r]:r,o[t]=i}if(i)for(var s in i)i.hasOwnProperty(s)&&a(s,i[s]);var l=t.options.extraKeys;if(l)for(var s in l)l.hasOwnProperty(s)&&a(s,l[s]);return o}function c(t,e){while(e&&e!=t){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function u(r,i){this.completion=r,this.data=i,this.picked=!1;var o=this,a=r.cm,u=a.getInputField().ownerDocument,d=u.defaultView||u.parentWindow,f=this.hints=u.createElement("ul"),h=r.cm.options.theme;f.className="CodeMirror-hints "+h,this.selectedHint=i.selectedHint||0;for(var p=i.list,$=0;$<p.length;++$){var m=f.appendChild(u.createElement("li")),g=p[$],v=e+($!=this.selectedHint?"":" "+n);null!=g.className&&(v=g.className+" "+v),m.className=v,g.render?g.render(m,i,g):m.appendChild(u.createTextNode(g.displayText||s(g))),m.hintId=$}var y=r.options.container||u.body,_=a.cursorCoords(r.options.alignWithWord?i.from:null),b=_.left,w=_.bottom,x=!0,k=0,S=0;if(y!==u.body){var O=-1!==["absolute","relative","fixed"].indexOf(d.getComputedStyle(y).position),C=O?y:y.offsetParent,A=C.getBoundingClientRect(),E=u.body.getBoundingClientRect();k=A.left-E.left-C.scrollLeft,S=A.top-E.top-C.scrollTop}f.style.left=b-k+"px",f.style.top=w-S+"px";var T=d.innerWidth||Math.max(u.body.offsetWidth,u.documentElement.offsetWidth),P=d.innerHeight||Math.max(u.body.offsetHeight,u.documentElement.offsetHeight);y.appendChild(f);var B=f.getBoundingClientRect(),L=B.bottom-P,I=f.scrollHeight>f.clientHeight+1,D=a.getScrollInfo();if(L>0){var R=B.bottom-B.top,j=_.top-(_.bottom-B.top);if(j-R>0)f.style.top=(w=_.top-R-S)+"px",x=!1;else if(R>P){f.style.height=P-5+"px",f.style.top=(w=_.bottom-B.top-S)+"px";var M=a.getCursor();i.from.ch!=M.ch&&(_=a.cursorCoords(M),f.style.left=(b=_.left-k)+"px",B=f.getBoundingClientRect())}}var F,N=B.right-T;if(N>0&&(B.right-B.left>T&&(f.style.width=T-5+"px",N-=B.right-B.left-T),f.style.left=(b=_.left-N-k)+"px"),I)for(var z=f.firstChild;z;z=z.nextSibling)z.style.paddingRight=a.display.nativeBarWidth+"px";(a.addKeyMap(this.keyMap=l(r,{moveFocus:function(t,e){o.changeActive(o.selectedHint+t,e)},setFocus:function(t){o.changeActive(t)},menuSize:function(){return o.screenAmount()},length:p.length,close:function(){r.close()},pick:function(){o.pick()},data:i})),r.options.closeOnUnfocus)&&(a.on("blur",this.onBlur=function(){F=setTimeout((function(){r.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(F)}));return a.on("scroll",this.onScroll=function(){var t=a.getScrollInfo(),e=a.getWrapperElement().getBoundingClientRect(),n=w+D.top-t.top,i=n-(d.pageYOffset||(u.documentElement||u.body).scrollTop);if(x||(i+=f.offsetHeight),i<=e.top||i>=e.bottom)return r.close();f.style.top=n+"px",f.style.left=b+D.left-t.left+"px"}),t.on(f,"dblclick",(function(t){var e=c(f,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),o.pick())})),t.on(f,"click",(function(t){var e=c(f,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),r.options.completeOnSingleClick&&o.pick())})),t.on(f,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),this.scrollToActive(),t.signal(i,"select",p[this.selectedHint],f.childNodes[this.selectedHint]),!0}function d(t,e){if(!t.somethingSelected())return e;for(var n=[],r=0;r<e.length;r++)e[r].supportsSelection&&n.push(e[r]);return n}function f(t,e,n,r){if(t.async)t(e,r,n);else{var i=t(e,n);i&&i.then?i.then(r):r(i)}}function h(e,n){var r,i=e.getHelpers(n,"hint");if(i.length){var o=function(t,e,n){var r=d(t,i);function o(i){if(i==r.length)return e(null);f(r[i],t,n,(function(t){t&&t.list.length>0?e(t):o(i+1)}))}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:r})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var r=e.list[n],i=this;this.cm.operation((function(){r.hint?r.hint(i.cm,e,r):i.cm.replaceRange(s(r),r.from||e.from,r.to||e.to,"complete"),t.signal(e,"pick",r),i.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),n=this.cm.getLine(e.line);if(e.line!=this.startPos.line||n.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(n.charAt(e.ch-1)))this.close();else{var r=this;this.debounce=i((function(){r.update()})),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,n=++this.tick;f(this.options.hint,this.cm,this.options,(function(r){e.tick==n&&e.finishUpdate(r,t)}))}},finishUpdate:function(e,n){this.data&&t.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(r&&1==e.list.length?this.pick(e,0):(this.widget=new u(this,e),t.signal(e,"shown")))}},u.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,r){if(e>=this.data.list.length?e=r?this.data.list.length-1:0:e<0&&(e=r?0:this.data.list.length-1),this.selectedHint!=e){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+n,"")),i=this.hints.childNodes[this.selectedHint=e],i.className+=" "+n,this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var t=this.completion.options.scrollMargin||0,e=this.hints.childNodes[Math.max(0,this.selectedHint-t)],n=this.hints.childNodes[Math.min(this.data.list.length-1,this.selectedHint+t)],r=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:h}),t.registerHelper("hint","fromList",(function(e,n){var r,i=e.getCursor(),o=e.getTokenAt(i),a=t.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,r.length)==r&&l.push(u)}if(l.length)return{list:l,from:a,to:s}})),t.commands.autocomplete=t.showHint;var p={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)}))},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9c7b":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";function e(t,e){function n(t){clearTimeout(r.doRedraw),r.doRedraw=setTimeout((function(){r.redraw()}),t)}this.cm=t,this.options=e,this.buttonHeight=e.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;t.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout((function(){r.computeScale()&&n(20)}),100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==e.listenForChanges&&t.on("changes",this.changeHandler=function(){n(250)})}t.defineExtension("annotateScrollbar",(function(t){return"string"==typeof t&&(t={className:t}),new e(this,t)})),t.defineOption("scrollButtonHeight",0),e.prototype.computeScale=function(){var t=this.cm,e=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(e!=this.hScale)return this.hScale=e,!0},e.prototype.update=function(t){this.annotations=t,this.redraw()},e.prototype.redraw=function(t){!1!==t&&this.computeScale();var e=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,o=e.getOption("lineWrapping"),a=o&&1.5*e.defaultTextHeight(),s=null,l=null;function c(t,n){if(s!=t.line){s=t.line,l=e.getLineHandle(t.line);var r=e.getLineHandleVisualStart(l);r!=l&&(s=e.getLineNumber(r),l=r)}if(l.widgets&&l.widgets.length||o&&l.height>a)return e.charCoords(t,"local")[n?"top":"bottom"];var i=e.heightAtLine(l,"local");return i+(n?0:l.height)}var u=e.lastLine();if(e.display.barWidth)for(var d,f=0;f<i.length;f++){var h=i[f];if(!(h.to.line>u)){var p=d||c(h.from,!0)*n,$=c(h.to,!1)*n;while(f<i.length-1){if(i[f+1].to.line>u)break;if(d=c(i[f+1].from,!0)*n,d>$+.9)break;h=i[++f],$=c(h.to,!1)*n}if($!=p){var m=Math.max($-p,3),g=r.appendChild(document.createElement("div"));g.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(p+this.buttonHeight)+"px; height: "+m+"px",g.className=this.options.className,h.id&&g.setAttribute("annotation-id",h.id)}}}this.div.textContent="",this.div.appendChild(r)},e.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}))},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=l,t}},"9f09":function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.registerHelper("fold","markdown",(function(e,n){var r=100;function i(n){var r=e.getTokenTypeAt(t.Pos(n,0));return r&&/\bheader\b/.test(r)}function o(t,e,n){var o=e&&e.match(/^#+/);return o&&i(t)?o[0].length:(o=n&&n.match(/^[=\-]+\s*$/),o&&i(t+1)?"="==n[0]?1:2:r)}var a=e.getLine(n.line),s=e.getLine(n.line+1),l=o(n.line,a,s);if(l!==r){var c=e.lastLine(),u=n.line,d=e.getLine(u+2);while(u<c){if(o(u+1,s,d)<=l)break;++u,s=d,d=e.getLine(u+2)}return{from:t.Pos(n.line,a.length),to:t.Pos(u,e.getLine(u).length)}}}))}))},a2c1:function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",o=new RegExp("<(/?)(["+r+"]["+i+"]*)","g");function a(t,e,n,r){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=r?Math.max(r.from,t.firstLine()):t.firstLine(),this.max=r?Math.min(r.to-1,t.lastLine()):t.lastLine()}function s(t,n){var r=t.cm.getTokenTypeAt(e(t.line,n));return r&&/\btag\b/.test(r)}function l(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function c(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function u(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(l(t))continue;return}if(s(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e+1}}function d(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(s(t,e+1)){o.lastIndex=e,t.ch=e;var n=o.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function f(t){for(;;){o.lastIndex=t.ch;var e=o.exec(t.text);if(!e){if(l(t))continue;return}if(s(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function h(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(c(t))continue;return}if(s(t,e+1)){var n=t.text.lastIndexOf("/",e),r=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,r?"selfClose":"regular"}t.ch=e}}function p(t,n){for(var r=[];;){var i,o=f(t),a=t.line,s=t.ch-(o?o[0].length:0);if(!o||!(i=u(t)))return;if("selfClose"!=i)if(o[1]){for(var l=r.length-1;l>=0;--l)if(r[l]==o[2]){r.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:e(a,s),to:e(t.line,t.ch)}}else r.push(o[2])}}function $(t,n){for(var r=[];;){var i=h(t);if(!i)return;if("selfClose"!=i){var o=t.line,a=t.ch,s=d(t);if(!s)return;if(s[1])r.push(s[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==s[2]){r.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:e(t.line,t.ch),to:e(o,a)}}}else d(t)}}t.registerHelper("fold","xml",(function(t,r){for(var i=new a(t,r.line,0);;){var o=f(i);if(!o||i.line!=r.line)return;var s=u(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var l=e(i.line,i.ch),c=p(i,o[2]);return c&&n(c.from,l)>0?{from:l,to:c.from}:null}}})),t.findMatchingTag=function(t,r,i){var o=new a(t,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var s=u(o),l=s&&e(o.line,o.ch),c=s&&d(o);if(s&&c&&!(n(o,r)>0)){var f={from:e(o.line,o.ch),to:l,tag:c[2]};return"selfClose"==s?{open:f,close:null,at:"open"}:c[1]?{open:$(o,c[2]),close:f,at:"close"}:(o=new a(t,l.line,l.ch,i),{open:f,close:p(o,c[2]),at:"open"})}}},t.findEnclosingTag=function(t,e,n,r){for(var i=new a(t,e.line,e.ch,n);;){var o=$(i,r);if(!o)break;var s=new a(t,e.line,e.ch,n),l=p(s,o.tag);if(l)return{open:o,close:l}}},t.scanForClosingTag=function(t,e,n,r){var i=new a(t,e.line,e.ch,r?{from:0,to:r}:null);return p(i,n)}}))},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a79d:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),l=n("4840"),c=n("cdf9"),u=n("6eeb"),d=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(t){var e=l(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),i||"function"!=typeof o||o.prototype["finally"]||u(o.prototype,"finally",s("Promise").prototype["finally"])},a7be:function(t,e,n){},ab24:function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.defineMode("asciidoc",(function(t,e){var n=function(){var t="[a-zA-Z¡-￿]+\\b";function e(t){var e=/\w/.test(t)?"\\b":"(?:\\B|^)";return e+t+"[^"+t+"].*?"+t+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1,6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:t},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:t+"|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:t+"|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var n={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var r in this.$rules)for(var i=this.$rules[r],o=i.length;o--;){var a=i[o];if(a.include||"string"==typeof a){var s=[o,1].concat(this.$rules[a.include||a]);a.noEscape&&(s=s.filter((function(t){return!t.next}))),i.splice.apply(i,s)}else a.token in n&&(a.token=n[a.token])}},r=1e3,i=function(t){for(var e in this.states=t,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[e],r=[],i=0,o=this.matchMappings[e]={defaultToken:"text"},a="g",s=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(o.defaultToken=c.defaultToken),c.caseInsensitive&&(a="gi"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var u=c.regex,d=new RegExp("(?:("+u+")|(.))").exec("a").length-2;if(Array.isArray(c.token))if(1==c.token.length||1==d)c.token=c.token[0];else{if(d-1!=c.token.length)throw new Error("number of classes and regexp groups in '"+c.token+"'\n'"+c.regex+"' doesn't match\n"+(d-1)+"!="+c.token.length);c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens}else"function"!=typeof c.token||c.onMatch||(c.onMatch=d>1?this.$applyToken:c.token);d>1&&(/\\\d/.test(c.regex)?u=c.regex.replace(/\\([0-9]+)/g,(function(t,e){return"\\"+(parseInt(e,10)+i+1)})):(d=1,u=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||s.push(c)),o[i]=l,i+=d,r.push(u),c.onMatch||(c.onMatch=null)}}s.forEach((function(t){t.splitRegex=this.createSplitterRegexp(t.regex,a)}),this),this.regExps[e]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(t){r=0|t},this.$applyToken=function(t){var e=this.splitRegex.exec(t).slice(1),n=this.token.apply(this,e);if("string"===typeof n)return[{type:n,value:t}];for(var r=[],i=0,o=n.length;i<o;i++)e[i]&&(r[r.length]={type:n[i],value:e[i]});return r},this.$arrayTokens=function(t){if(!t)return[];var e=this.splitRegex.exec(t);if(!e)return"text";for(var n=[],r=this.tokenArray,i=0,o=r.length;i<o;i++)e[i+1]&&(n[n.length]={type:r[i],value:e[i+1]});return n},this.removeCapturingGroups=function(t){var e=t.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,(function(t,e){return e?"(?:":t}));return e},this.createSplitterRegexp=function(t,e){if(-1!=t.indexOf("(?=")){var n=0,r=!1,i={};t.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(t,e,o,a,s,l){return r?r="]"!=s:s?r=!0:a?(n==i.stack&&(i.end=l+1,i.stack=-1),n--):o&&(n++,1!=o.length&&(i.stack=n,i.start=l)),t})),null!=i.end&&/^\)*$/.test(t.substr(i.end))&&(t=t.substring(0,i.start)+t.substr(i.end))}return new RegExp(t,(e||"").replace("g",""))},this.getLineTokens=function(t,e){if(e&&"string"!=typeof e){var n=e.slice(0);e=n[0]}else n=[];var i=e||"start",o=this.states[i];o||(i="start",o=this.states[i]);var a=this.matchMappings[i],s=this.regExps[i];s.lastIndex=0;var l,c=[],u=0,d={type:null,value:""};while(l=s.exec(t)){var f=a.defaultToken,h=null,p=l[0],$=s.lastIndex;if($-p.length>u){var m=t.substring(u,$-p.length);d.type==f?d.value+=m:(d.type&&c.push(d),d={type:f,value:m})}for(var g=0;g<l.length-2;g++)if(void 0!==l[g+1]){h=o[a[g]],f=h.onMatch?h.onMatch(p,i,n):h.token,h.next&&(i="string"==typeof h.next?h.next:h.next(i,n),o=this.states[i],o||(window.console&&console.error&&console.error(i,"doesn't exist"),i="start",o=this.states[i]),a=this.matchMappings[i],u=$,s=this.regExps[i],s.lastIndex=$);break}if(p)if("string"==typeof f)h&&!1===h.merge||d.type!==f?(d.type&&c.push(d),d={type:f,value:p}):d.value+=p;else if(f){d.type&&c.push(d),d={type:null,value:""};for(g=0;g<f.length;g++)c.push(f[g])}if(u==t.length)break;if(u=$,c.length>r){while(u<t.length)d.type&&c.push(d),d={value:t.substring(u,u+=2e3),type:"overflow"};i="start",n=[];break}}return d.type&&c.push(d),n.length>1&&n[0]!==i&&n.unshift(i),{tokens:c,state:n.length?n:i}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},a=function(t){for(var e=null,n=0;n<t.length;n++)void 0!==o[t[n]]&&(e=o[t[n]]);return e},s=function(t,e){var n=e.plannedTokens.shift();if(void 0===n)return null;t.match(n.value);var r=n.type.split(".");return a(r)},l=function(t,e){if(e.plannedTokens.length>0)return s(t,e);var n=e.current,r=t.match(/.*$/,!1)[0],i=u.getLineTokens(r,n);return e.plannedTokens=i.tokens,e.current=i.state,s(t,e)},c=new n,u=new i(c.$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(t){l("",t)},token:l}})),t.defineMIME("text/x-asciidoc","asciidoc")}))},ae93:function(t,e,n){"use strict";var r,i,o,a=n("e163"),s=n("9112"),l=n("5135"),c=n("b622"),u=n("c430"),d=c("iterator"),f=!1,h=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),u||l(r,d)||s(r,d,h),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},aedd:function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";t.registerHelper("fold","brace",(function(e,n){var r,i=n.line,o=e.getLine(i);function a(a){for(var s=n.ch,l=0;;){var c=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=c){if(1==l&&c<n.ch)break;if(r=e.getTokenTypeAt(t.Pos(i,c+1)),!/^(comment|string)/.test(r))return c+1;s=c-1}else{if(1==l)break;l=1,s=o.length}}}var s="{",l="}",c=a("{");if(null==c&&(s="[",l="]",c=a("[")),null!=c){var u,d,f=1,h=e.lastLine();t:for(var p=i;p<=h;++p)for(var $=e.getLine(p),m=p==i?c:0;;){var g=$.indexOf(s,m),v=$.indexOf(l,m);if(g<0&&(g=$.length),v<0&&(v=$.length),m=Math.min(g,v),m==$.length)break;if(e.getTokenTypeAt(t.Pos(p,m+1))==r)if(m==g)++f;else if(!--f){u=p,d=m;break t}++m}if(null!=u&&i!=u)return{from:t.Pos(i,c),to:t.Pos(u,d)}}})),t.registerHelper("fold","import",(function(e,n){function r(n){if(n<e.firstLine()||n>e.lastLine())return null;var r=e.getTokenAt(t.Pos(n,1));if(/\S/.test(r.string)||(r=e.getTokenAt(t.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(e.lastLine(),n+10);i<=o;++i){var a=e.getLine(i),s=a.indexOf(";");if(-1!=s)return{startCh:r.end,end:t.Pos(i,s)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:e.clipPos(t.Pos(o,a.startCh+1)),to:s}})),t.registerHelper("fold","include",(function(e,n){function r(n){if(n<e.firstLine()||n>e.lastLine())return null;var r=e.getTokenAt(t.Pos(n,1));return/\S/.test(r.string)||(r=e.getTokenAt(t.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;;){var s=r(a+1);if(null==s)break;++a}return{from:t.Pos(i,o+1),to:e.clipPos(t.Pos(a))}}))}))},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b575:function(t,e,n){var r,i,o,a,s,l,c,u,d=n("da84"),f=n("06cf").f,h=n("c6b6"),p=n("2cf4").set,$=n("1cdc"),m=d.MutationObserver||d.WebKitMutationObserver,g=d.process,v=d.Promise,y="process"==h(g),_=f(d,"queueMicrotask"),b=_&&_.value;b||(r=function(){var t,e;y&&(t=g.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},y?a=function(){g.nextTick(r)}:m&&!$?(s=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):v&&v.resolve?(c=v.resolve(void 0),u=c.then,a=function(){u.call(c,r)}):a=function(){p.call(d,r)}),t.exports=b||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),l=n("fdbf"),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(u,t)?c[t]=u[t]:c[t]=d("Symbol."+t)),c[t]}},b639:function(t,e,n){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=c.prototype):(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return h(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?m(t,e,n,r):"string"===typeof e?p(t,e,n):g(t,e)}function d(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,n,r){return d(e),e<=0?l(t,e):void 0!==n?"string"===typeof r?l(t,e).fill(n,r):l(t,e).fill(n):l(t,e)}function h(t,e){if(d(e),t=l(t,e<0?0:0|v(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_(e,n);t=l(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function $(t,e){var n=e.length<0?0:0|v(e.length);t=l(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function m(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),c.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=c.prototype):t=$(t,e),t}function g(t,e){if(c.isBuffer(e)){var n=0|v(e.length);return t=l(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):$(t,e);if("Buffer"===e.type&&o(e.data))return $(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),c.alloc(+t)}function _(t,e){if(c.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return X(t).length;e=(""+e).toLowerCase(),r=!0}}function b(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return j(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return D(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return P(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function x(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:k(t,e,n,r,i);if("number"===typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):k(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function k(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(t,o)===c(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(t,o+f)!==c(e,f)){d=!1;break}if(d)return o}return-1}function S(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function O(t,e,n,r){return tt(X(e,t.length-n),t,n,r)}function C(t,e,n,r){return tt(Z(e),t,n,r)}function A(t,e,n,r){return C(t,e,n,r)}function E(t,e,n,r){return tt(Q(e),t,n,r)}function T(t,e,n,r){return tt(J(e,t.length-n),t,n,r)}function P(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function B(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var o,a,s,l,c=t[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return I(r)}e.Buffer=c,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return f(null,t,e,n)},c.allocUnsafe=function(t){return h(null,t)},c.allocUnsafeSlow=function(t){return h(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(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!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?B(this,0,t):b.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),u=t.slice(e,n),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return x(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return x(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return S(this,t,e,n);case"utf8":case"utf-8":return O(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function I(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=L));return n}function D(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function R(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function j(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=K(t[o]);return i}function M(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function F(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function z(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function V(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,r,o){return o||V(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function q(t,e,n,r,o){return o||V(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;N(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a<n&&(o*=256))this[e+a]=t/o&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;N(this,t,e,n,i,0)}var o=n-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o<n&&(a*=256))t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):z(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):z(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return q(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return q(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=c.isBuffer(t)?t:X(new c(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function G(t){if(t=Y(t).replace(W,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function K(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function J(t,e){for(var n,r,i,o=[],a=0;a<t.length;++a){if((e-=2)<0)break;n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function Q(t){return r.toByteArray(G(t))}function tt(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b933:function(t,e,n){(function(t){t(n("56b3"))})((function(t){"use strict";var e,n,r=t.Pos;function i(t){var e=t.flags;return null!=e?e:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}function o(t,e){for(var n=i(t),r=n,o=0;o<e.length;o++)-1==r.indexOf(e.charAt(o))&&(r+=e.charAt(o));return n==r?t:new RegExp(t.source,r)}function a(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function s(t,e,n){e=o(e,"g");for(var i=n.line,a=n.ch,s=t.lastLine();i<=s;i++,a=0){e.lastIndex=a;var l=t.getLine(i),c=e.exec(l);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function l(t,e,n){if(!a(e))return s(t,e,n);e=o(e,"gm");for(var i,l=1,c=n.line,u=t.lastLine();c<=u;){for(var d=0;d<l;d++){if(c>u)break;var f=t.getLine(c++);i=null==i?f:i+"\n"+f}l*=2,e.lastIndex=n.ch;var h=e.exec(i);if(h){var p=i.slice(0,h.index).split("\n"),$=h[0].split("\n"),m=n.line+p.length-1,g=p[p.length-1].length;return{from:r(m,g),to:r(m+$.length-1,1==$.length?g+$[0].length:$[$.length-1].length),match:h}}}}function c(t,e,n){var r,i=0;while(i<=t.length){e.lastIndex=i;var o=e.exec(t);if(!o)break;var a=o.index+o[0].length;if(a>t.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(t,e,n){e=o(e,"g");for(var i=n.line,a=n.ch,s=t.firstLine();i>=s;i--,a=-1){var l=t.getLine(i),u=c(l,e,a<0?0:l.length-a);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function d(t,e,n){if(!a(e))return u(t,e,n);e=o(e,"gm");for(var i,s=1,l=t.getLine(n.line).length-n.ch,d=n.line,f=t.firstLine();d>=f;){for(var h=0;h<s&&d>=f;h++){var p=t.getLine(d--);i=null==i?p:p+"\n"+i}s*=2;var $=c(i,e,l);if($){var m=i.slice(0,$.index).split("\n"),g=$[0].split("\n"),v=d+m.length,y=m[m.length-1].length;return{from:r(v,y),to:r(v+g.length-1,1==g.length?y+g[0].length:g[g.length-1].length),match:$}}}}function f(t,e,n,r){if(t.length==e.length)return n;for(var i=0,o=n+Math.max(0,t.length-e.length);;){if(i==o)return i;var a=i+o>>1,s=r(t.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function h(t,i,o,a){if(!i.length)return null;var s=a?e:n,l=s(i).split(/\r|\n\r?/);t:for(var c=o.line,u=o.ch,d=t.lastLine()+1-l.length;c<=d;c++,u=0){var h=t.getLine(c).slice(u),p=s(h);if(1==l.length){var $=p.indexOf(l[0]);if(-1==$)continue t;o=f(h,p,$,s)+u;return{from:r(c,f(h,p,$,s)+u),to:r(c,f(h,p,$+l[0].length,s)+u)}}var m=p.length-l[0].length;if(p.slice(m)==l[0]){for(var g=1;g<l.length-1;g++)if(s(t.getLine(c+g))!=l[g])continue t;var v=t.getLine(c+l.length-1),y=s(v),_=l[l.length-1];if(y.slice(0,_.length)==_)return{from:r(c,f(h,p,m,s)+u),to:r(c+l.length-1,f(v,y,_.length,s))}}}}function p(t,i,o,a){if(!i.length)return null;var s=a?e:n,l=s(i).split(/\r|\n\r?/);t:for(var c=o.line,u=o.ch,d=t.firstLine()-1+l.length;c>=d;c--,u=-1){var h=t.getLine(c);u>-1&&(h=h.slice(0,u));var p=s(h);if(1==l.length){var $=p.lastIndexOf(l[0]);if(-1==$)continue t;return{from:r(c,f(h,p,$,s)),to:r(c,f(h,p,$+l[0].length,s))}}var m=l[l.length-1];if(p.slice(0,m.length)==m){var g=1;for(o=c-l.length+1;g<l.length-1;g++)if(s(t.getLine(o+g))!=l[g])continue t;var v=t.getLine(c+1-l.length),y=s(v);if(y.slice(y.length-l[0].length)==l[0])return{from:r(c+1-l.length,f(v,y,v.length-l[0].length,s)),to:r(c,f(h,p,m.length,s))}}}}function $(t,e,n,i){var a;this.atOccurrence=!1,this.doc=t,n=n?t.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?a=i.caseFold:(a=i,i=null),"string"==typeof e?(null==a&&(a=!1),this.matches=function(n,r){return(n?p:h)(t,e,r,a)}):(e=o(e,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?u:s)(t,e,r)}:this.matches=function(n,r){return(n?d:l)(t,e,r)})}String.prototype.normalize?(e=function(t){return t.normalize("NFD").toLowerCase()},n=function(t){return t.normalize("NFD")}):(e=function(t){return t.toLowerCase()},n=function(t){return t}),$.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){var n=this.matches(e,this.doc.clipPos(e?this.pos.from:this.pos.to));while(n&&0==t.cmpPos(n.from,n.to))e?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(e,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(e,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(e?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e,n){if(this.atOccurrence){var i=t.splitLines(e);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",(function(t,e,n){return new $(this.doc,t,e,n)})),t.defineDocExtension("getSearchCursor",(function(t,e,n){return new $(this,t,e,n)})),t.defineExtension("selectMatches",(function(e,n){var r=[],i=this.getSearchCursor(e,this.getCursor("from"),n);while(i.findNext()){if(t.cmpPos(i.to(),this.getCursor("to"))>0)break;r.push({anchor:i.from(),head:i.to()})}r.length&&this.setSelections(r,0)}))}))},bbca:function(t,e,n){},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c4e3:function(t,e,n){(function(e,n){var r;!function(e){t.exports=e()}((function(){return function t(e,n,i){function o(s,l){if(!n[s]){if(!e[s]){var c="function"==typeof r&&r;if(!l&&c)return r(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};e[s][0].call(d.exports,(function(t){var n=e[s][1][t];return o(n||t)}),d,d.exports,t,e,n,i)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,i,a,s,l,c,u=[],d=0,f=t.length,h=f,p="string"!==r.getTypeOf(t);d<t.length;)h=f-d,i=p?(e=t[d++],n=d<f?t[d++]:0,d<f?t[d++]:0):(e=t.charCodeAt(d++),n=d<f?t.charCodeAt(d++):0,d<f?t.charCodeAt(d++):0),a=e>>2,s=(3&e)<<4|n>>4,l=1<h?(15&n)<<2|i>>6:64,c=2<h?63&i:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(t){var e,n,r,a,s,l,c=0,u=0,d="data:";if(t.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&h--,t.charAt(t.length-2)===o.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=i.uint8array?new Uint8Array(0|h):new Array(0|h);c<t.length;)e=o.indexOf(t.charAt(c++))<<2|(a=o.indexOf(t.charAt(c++)))>>4,n=(15&a)<<4|(s=o.indexOf(t.charAt(c++)))>>2,r=(3&s)<<6|(l=o.indexOf(t.charAt(c++))),f[u++]=e,64!==s&&(f[u++]=n),64!==l&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var r=t("./external"),i=t("./stream/DataWorker"),o=t("./stream/DataLengthProbe"),a=t("./stream/Crc32Probe");function s(t,e,n,r,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=i}o=t("./stream/DataLengthProbe"),s.prototype={getContentWorker:function(){var t=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new a).pipe(new o("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var r=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(t){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var r=t("./utils"),i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,e,n,r){var o=i,a=r+n;t^=-1;for(var s=r;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,n,r){var o=i,a=r+n;t^=-1;for(var s=r;s<a;s++)t=t>>>8^o[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:r}},{lie:37}],7:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=r?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function r(t,e){var n,r="";for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r}function i(t,e,n,i,a,u){var d,f,h=t.file,p=t.compression,$=u!==s.utf8encode,m=o.transformTo("string",u(h.name)),g=o.transformTo("string",s.utf8encode(h.name)),v=h.comment,y=o.transformTo("string",u(v)),_=o.transformTo("string",s.utf8encode(v)),b=g.length!==h.name.length,w=_.length!==v.length,x="",k="",S="",O=h.dir,C=h.date,A={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(A.crc32=t.crc32,A.compressedSize=t.compressedSize,A.uncompressedSize=t.uncompressedSize);var E=0;e&&(E|=8),$||!b&&!w||(E|=2048);var T=0,P=0;O&&(T|=16),"UNIX"===a?(P=798,T|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(h.unixPermissions,O)):(P=20,T|=function(t){return 63&(t||0)}(h.dosPermissions)),d=C.getUTCHours(),d<<=6,d|=C.getUTCMinutes(),d<<=5,d|=C.getUTCSeconds()/2,f=C.getUTCFullYear()-1980,f<<=4,f|=C.getUTCMonth()+1,f<<=5,f|=C.getUTCDate(),b&&(k=r(1,1)+r(l(m),4)+g,x+="up"+r(k.length,2)+k),w&&(S=r(1,1)+r(l(y),4)+_,x+="uc"+r(S.length,2)+S);var B="";return B+="\n\0",B+=r(E,2),B+=p.magic,B+=r(d,2),B+=r(f,2),B+=r(A.crc32,4),B+=r(A.compressedSize,4),B+=r(A.uncompressedSize,4),B+=r(m.length,2),B+=r(x.length,2),{fileRecord:c.LOCAL_FILE_HEADER+B+m+x,dirRecord:c.CENTRAL_FILE_HEADER+r(P,2)+B+r(y.length,2)+"\0\0\0\0"+r(T,4)+r(i,4)+m+x+y}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),c=t("../signature");function u(t,e,n,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,a),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return c.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,i=function(t,e,n,i,a){var s=o.transformTo("string",a(i));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var r=t("../compressions"),i=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var o=new i(e.streamFiles,n,e.platform,e.encodeFileName),a=0;try{t.forEach((function(t,n){a++;var i=function(t,e){var n=t||e,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:t,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var t=new r;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.5.0",r.loadAsync=function(t,e){return(new r).loadAsync(t,e)},r.external=t("./external"),e.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./external"),o=t("./utf8"),a=(r=t("./utils"),t("./zipEntries")),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function c(t){return new i.Promise((function(e,n){var r=t.decompressed.getContentWorker().pipe(new s);r.on("error",(function(t){n(t)})).on("end",(function(){r.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=r.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new a(e);return n.load(t),n})).then((function(t){var n=[i.Promise.resolve(t)],r=t.files;if(e.checkCRC32)for(var o=0;o<r.length;o++)n.push(c(r[o]));return i.Promise.all(n)})).then((function(t){for(var r=t.shift(),i=r.files,o=0;o<i.length;o++){var a=i[o];n.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders})}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../stream/GenericWorker");function o(t,e){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}r.inherits(o,i),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var r=t("readable-stream").Readable;function i(t,e,n){r.call(this,e),this._helper=t;var i=this;t.on("data",(function(t,e){i.push(t)||i._helper.pause(),n&&n(e)})).on("error",(function(t){i.emit("error",t)})).on("end",(function(){i.push(null)}))}t("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(t,n,r){"use strict";n.exports={isNode:"undefined"!=typeof e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function r(t,e,n){var r,i=o.getTypeOf(e),s=o.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=$(t)),s.createFolders&&(r=p(t))&&m.call(this,r,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(e instanceof c&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",i="string");var g=null;g=e instanceof c||e instanceof a?e:f.isNode&&f.isStream(e)?new h(t,e):o.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var v=new u(t,g,s);this.files[t]=v}var i=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),c=t("./compressedObject"),u=t("./zipObject"),d=t("./generate"),f=t("./nodejsUtils"),h=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},$=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=$(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function g(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,r;for(e in this.files)this.files.hasOwnProperty(e)&&(r=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,r))},filter:function(t){var e=[];return this.forEach((function(n,r){t(n,r)&&e.push(r)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,r.call(this,t,e,n),this;if(g(t)){var i=t;return this.filter((function(t,e){return!e.dir&&i.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(g(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),r=this.clone();return r.root=n.name,r},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";e=d.generateWorker(this,n,r)}catch(t){(e=new a("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var r=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,n){"use strict";var r=t("./Uint8ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var r=t("./ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=r.getTypeOf(t);return r.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new s(t):i.uint8array?new l(r.transformTo("uint8array",t)):new o(r.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../utils");function o(t){r.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(o,r),o.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,r),o.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(o,i),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function o(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=r.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=r},{}],29:[function(t,n,r){"use strict";var i=t("../utils"),o=t("./ConvertWorker"),a=t("./GenericWorker"),s=t("../base64"),l=t("../support"),c=t("../external"),u=null;if(l.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function d(t,n){return new c.Promise((function(r,o){var a=[],l=t._internalType,c=t._outputType,u=t._mimeType;t.on("data",(function(t,e){a.push(t),n&&n(e)})).on("error",(function(t){a=[],o(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return i.transformTo(t,e)}}(c,function(t,n){var r,i=0,o=null,a=0;for(r=0;r<n.length;r++)a+=n[r].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(o=new Uint8Array(a),r=0;r<n.length;r++)o.set(n[r],i),i+=n[r].length;return o;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(l,a),u);r(t)}catch(t){o(t)}a=[]})).resume()}))}function f(t,e,n){var r=e;switch(e){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=e,this._mimeType=n,i.checkSupport(r),this._worker=t.pipe(new o(r)),t.lock()}catch(t){this._worker=new a("error"),this._worker.error(t)}}f.prototype={accumulate:function(t){return d(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof e,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),r.blob=0===o.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var r=t("./utils"),i=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return i.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,r,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=i.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e}(t)},n.utf8decode=function(t){return i.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,i,o,a=t.length,l=new Array(2*a);for(e=n=0;e<a;)if((i=t[e++])<128)l[n++]=i;else if(4<(o=s[i]))l[n++]=65533,e+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&e<a;)i=i<<6|63&t[e++],o--;1<o?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(t=r.transformTo(i.uint8array?"uint8array":"array",t))},r.inherits(c,a),c.prototype.processChunk=function(t){var e=r.transformTo(i.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),l=e;a!==e.length&&(i.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,a),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var r=t("./support"),i=t("./base64"),o=t("./nodejsUtils"),a=t("set-immediate-shim"),s=t("./external");function l(t){return t}function c(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}n.newBlob=function(e,r){n.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(r)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(t,e,n){var r=[],i=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;i<o;)"array"===e||"nodebuffer"===e?r.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+n,o)))),i+=n;return r.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function d(t){var e=65536,r=n.getTypeOf(t),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<e;)try{return u.stringifyByChunk(t,r,e)}catch(t){e=Math.floor(e/2)}return u.stringifyByChar(t)}function f(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=d;var h={};h.string={string:l,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return h.string.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:function(t){return c(t,o.allocBuffer(t.length))}},h.array={string:d,array:l,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},h.arraybuffer={string:function(t){return d(new Uint8Array(t))},array:function(t){return f(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:l,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},h.uint8array={string:d,array:function(t){return f(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:l,nodebuffer:function(t){return o.newBufferFrom(t)}},h.nodebuffer={string:d,array:function(t){return f(t,new Array(t.length))},arraybuffer:function(t){return h.nodebuffer.uint8array(t).buffer},uint8array:function(t){return f(t,new Uint8Array(t.length))},nodebuffer:l},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var r=n.getTypeOf(e);return h[r][t](e)},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":r.nodebuffer&&o.isBuffer(t)?"nodebuffer":r.uint8array&&t instanceof Uint8Array?"uint8array":r.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!r[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,r="";for(n=0;n<(t||"").length;n++)r+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return r},n.delay=function(t,e,n){a((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,o,a,l){return s.Promise.resolve(e).then((function(t){return r.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new s.Promise((function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t.target.error)},r.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(l?e=i.decode(e):o&&!0!==a&&(e=function(t){return c(t,r.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=(t("./utf8"),t("./support"));function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(e)+", expected "+i.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var r=this.reader.readString(4)===e;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=i.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,r=this.zip64EndOfCentralSize-44;0<r;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=e-n;if(0<r)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),c=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(l.hasOwnProperty(e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,n,r,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),n=t.readInt(2),r=t.readData(n),this.extraFields[e]={id:e,length:n,value:r};t.setIndex(i)},handleUTF8:function(){var t=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var o=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=r(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=r(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function r(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var r="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!r&&(e=e.pipe(new a.Utf8EncodeWorker)),!o&&r&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new i(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)r.prototype[c[d]]=u;e.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,r){(function(t){"use strict";var n,r,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var t,e;r=!0;for(var n=c.length;n;){for(e=c,c=[],t=-1;++t<n;)e[t]();n=c.length}r=!1}e.exports=function(t){1!==c.push(t)||r||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var r=t("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==i&&h(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){r((function(){var r;try{r=e(n)}catch(r){return o.reject(t,r)}r===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,r)}))}function f(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function h(t,e){var n=!1;function r(e){n||(n=!0,o.reject(t,e))}function i(e){n||(n=!0,o.resolve(t,e))}var a=p((function(){e(i,r)}));"error"===a.status&&r(a.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=c).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){o.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=p(f,e);if("error"===n.status)return o.reject(t,n.value);var r=n.value;if(r)h(t,r);else{t.state=s,t.outcome=e;for(var i=-1,a=t.queue.length;++i<a;)t.queue[i].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callRejected(e);return t},c.resolve=function(t){return t instanceof this?t:o.resolve(new this(i),t)},c.reject=function(t){var e=new this(i);return o.reject(e,t)},c.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(i);++l<n;)u(t[l],l);return c;function u(t,i){e.resolve(t).then((function(t){a[i]=t,++s!==n||r||(r=!0,o.resolve(c,a))}),(function(t){r||(r=!0,o.reject(c,t))}))}},c.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var a,s=-1,l=new this(i);++s<n;)a=t[s],e.resolve(a).then((function(t){r||(r=!0,o.resolve(l,t))}),(function(t){r||(r=!0,o.reject(l,t))}));return l}},{immediate:36}],38:[function(t,e,n){"use strict";var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var r=t("./zlib/deflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,f=8;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==c)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var p;if(p="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[n]);this._dict_set=!0}}function p(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(t,e){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=h,n.deflate=p,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,p(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,p(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var r=t("./zlib/inflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),c=t("./zlib/gzheader"),u=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function f(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(t,e){var n,s,l,c,d,f,h=this.strm,p=this.options.chunkSize,$=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?h.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new i.Buf8(p),h.next_out=0,h.avail_out=p),(n=r.inflate(h,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&$&&(f="string"==typeof $?o.string2buf($):"[object ArrayBuffer]"===u.call($)?new Uint8Array($):$,n=r.inflateSetDictionary(this.strm,f)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&n!==a.Z_STREAM_END&&(0!==h.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(h.output,h.next_out),c=h.next_out-l,d=o.buf2string(h.output,l),h.next_out=c,h.avail_out=p-c,c&&i.arraySet(h.output,h.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((0<h.avail_in||0===h.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(e=r=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),e=i=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a}},o={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],42:[function(t,e,n){"use strict";var r=t("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,n.string2buf=function(t){var e,n,i,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,r,i,o,s=e||t.length,c=new Array(2*s);for(n=r=0;n<s;)if((i=t[n++])<128)c[r++]=i;else if(4<(o=a[i]))c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&t[n++],o--;1<o?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+e[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var r,i=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),c=0,u=4,d=0,f=-2,h=-1,p=4,$=2,m=8,g=9,v=286,y=30,_=19,b=2*v+1,w=15,x=3,k=258,S=k+x+1,O=42,C=113,A=1,E=2,T=3,P=4;function B(t,e){return t.msg=l[e],e}function L(t){return(t<<1)-(4<t?9:0)}function I(t){for(var e=t.length;0<=--e;)t[e]=0}function D(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function R(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,D(t.strm)}function j(t,e){t.pending_buf[t.pending++]=e}function M(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function F(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-S?t.strstart-(t.w_size-S):0,c=t.window,u=t.w_mask,d=t.prev,f=t.strstart+k,h=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===h&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(r=k-(f-o),o=f-k,a<r){if(t.match_start=e,s<=(a=r))break;h=c[o+a-1],p=c[o+a]}}}while((e=d[e&u])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function N(t){var e,n,r,o,l,c,u,d,f,h,p=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=p+(p-S)){for(i.arraySet(t.window,t.window,p,p,0),t.match_start-=p,t.strstart-=p,t.block_start-=p,e=n=t.hash_size;r=t.head[--e],t.head[e]=p<=r?r-p:0,--n;);for(e=n=p;r=t.prev[--e],t.prev[e]=p<=r?r-p:0,--n;);o+=p}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,d=t.strstart+t.lookahead,f=o,h=void 0,h=c.avail_in,f<h&&(h=f),n=0===h?0:(c.avail_in-=h,i.arraySet(u,c.input,c.next_in,h,d),1===c.state.wrap?c.adler=a(c.adler,u,h,d):2===c.state.wrap&&(c.adler=s(c.adler,u,h,d)),c.next_in+=h,c.total_in+=h,h),t.lookahead+=n,t.lookahead+t.insert>=x)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+x-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<x)););}while(t.lookahead<S&&0!==t.strm.avail_in)}function z(t,e){for(var n,r;;){if(t.lookahead<S){if(N(t),t.lookahead<S&&e===c)return A;if(0===t.lookahead)break}if(n=0,t.lookahead>=x&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-S&&(t.match_length=F(t,n)),t.match_length>=x)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-x),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=x){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(R(t,!1),0===t.strm.avail_out))return A}return t.insert=t.strstart<x-1?t.strstart:x-1,e===u?(R(t,!0),0===t.strm.avail_out?T:P):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?A:E}function H(t,e){for(var n,r,i;;){if(t.lookahead<S){if(N(t),t.lookahead<S&&e===c)return A;if(0===t.lookahead)break}if(n=0,t.lookahead>=x&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=x-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-S&&(t.match_length=F(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===x&&4096<t.strstart-t.match_start)&&(t.match_length=x-1)),t.prev_length>=x&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-x,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-x),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+x-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=x-1,t.strstart++,r&&(R(t,!1),0===t.strm.avail_out))return A}else if(t.match_available){if((r=o._tr_tally(t,0,t.window[t.strstart-1]))&&R(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return A}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<x-1?t.strstart:x-1,e===u?(R(t,!0),0===t.strm.avail_out?T:P):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?A:E}function V(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function U(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*b),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*_+1)),I(this.dyn_ltree),I(this.dyn_dtree),I(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(w+1),this.heap=new i.Buf16(2*v+1),I(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),I(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function q(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=$,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?O:C,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),d):B(t,f)}function W(t){var e=q(t);return e===d&&function(t){t.window_size=2*t.w_size,I(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=x-1,t.match_available=0,t.ins_h=0}(t.state),e}function G(t,e,n,r,o,a){if(!t)return f;var s=1;if(e===h&&(e=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||g<o||n!==m||r<8||15<r||e<0||9<e||a<0||p<a)return B(t,f);8===r&&(r=9);var l=new U;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+x-1)/x),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=n,W(t)}r=[new V(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(N(t),0===t.lookahead&&e===c)return A;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,R(t,!1),0===t.strm.avail_out))return A;if(t.strstart-t.block_start>=t.w_size-S&&(R(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===u?(R(t,!0),0===t.strm.avail_out?T:P):(t.strstart>t.block_start&&(R(t,!1),t.strm.avail_out),A)})),new V(4,4,8,4,z),new V(4,5,16,8,z),new V(4,6,32,32,z),new V(4,4,16,16,H),new V(8,16,32,32,H),new V(8,16,128,128,H),new V(8,32,128,256,H),new V(32,128,258,1024,H),new V(32,258,258,4096,H)],n.deflateInit=function(t,e){return G(t,e,m,15,8,0)},n.deflateInit2=G,n.deflateReset=W,n.deflateResetKeep=q,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?f:(t.state.gzhead=e,d):f},n.deflate=function(t,e){var n,i,a,l;if(!t||!t.state||5<e||e<0)return t?B(t,f):f;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&e!==u)return B(t,0===t.avail_out?-5:f);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===O)if(2===i.wrap)t.adler=0,j(i,31),j(i,139),j(i,8),i.gzhead?(j(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),j(i,255&i.gzhead.time),j(i,i.gzhead.time>>8&255),j(i,i.gzhead.time>>16&255),j(i,i.gzhead.time>>24&255),j(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),j(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(j(i,255&i.gzhead.extra.length),j(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(j(i,0),j(i,0),j(i,0),j(i,0),j(i,0),j(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),j(i,3),i.status=C);else{var h=m+(i.w_bits-8<<4)<<8;h|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=C,M(i,h),0!==i.strstart&&(M(i,t.adler>>>16),M(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),D(t),a=i.pending,i.pending!==i.pending_buf_size));)j(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),D(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,j(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),D(t),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,j(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&D(t),i.pending+2<=i.pending_buf_size&&(j(i,255&t.adler),j(i,t.adler>>8&255),t.adler=0,i.status=C)):i.status=C),0!==i.pending){if(D(t),0===t.avail_out)return i.last_flush=-1,d}else if(0===t.avail_in&&L(e)<=L(n)&&e!==u)return B(t,-5);if(666===i.status&&0!==t.avail_in)return B(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==c&&666!==i.status){var p=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(N(t),0===t.lookahead)){if(e===c)return A;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(R(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===u?(R(t,!0),0===t.strm.avail_out?T:P):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?A:E}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=k){if(N(t),t.lookahead<=k&&e===c)return A;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=x&&0<t.strstart&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+k;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);t.match_length=k-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=x?(n=o._tr_tally(t,1,t.match_length-x),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(R(t,!1),0===t.strm.avail_out))return A}return t.insert=0,e===u?(R(t,!0),0===t.strm.avail_out?T:P):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?A:E}(i,e):r[i.level].func(i,e);if(p!==T&&p!==P||(i.status=666),p===A||p===T)return 0===t.avail_out&&(i.last_flush=-1),d;if(p===E&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(I(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),D(t),0===t.avail_out))return i.last_flush=-1,d}return e!==u?d:i.wrap<=0?1:(2===i.wrap?(j(i,255&t.adler),j(i,t.adler>>8&255),j(i,t.adler>>16&255),j(i,t.adler>>24&255),j(i,255&t.total_in),j(i,t.total_in>>8&255),j(i,t.total_in>>16&255),j(i,t.total_in>>24&255)):(M(i,t.adler>>>16),M(i,65535&t.adler)),D(t),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==O&&69!==e&&73!==e&&91!==e&&103!==e&&e!==C&&666!==e?B(t,f):(t.state=null,e===C?B(t,-3):d):f},n.deflateSetDictionary=function(t,e){var n,r,o,s,l,c,u,h,p=e.length;if(!t||!t.state)return f;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==O||n.lookahead)return f;for(1===s&&(t.adler=a(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(I(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,e,p-n.w_size,n.w_size,0),e=h,p=n.w_size),l=t.avail_in,c=t.next_in,u=t.input,t.avail_in=p,t.next_in=0,t.input=e,N(n);n.lookahead>=x;){for(r=n.strstart,o=n.lookahead-(x-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+x-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=x-1,N(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=x-1,n.match_available=0,t.next_in=c,t.input=u,t.avail_in=l,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,r,i,o,a,s,l,c,u,d,f,h,p,$,m,g,v,y,_,b,w,x,k,S,O;n=t.state,r=t.next_in,S=t.input,i=r+(t.avail_in-5),o=t.next_out,O=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,f=n.window,h=n.hold,p=n.bits,$=n.lencode,m=n.distcode,g=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{p<15&&(h+=S[r++]<<p,p+=8,h+=S[r++]<<p,p+=8),y=$[h&g];e:for(;;){if(h>>>=_=y>>>24,p-=_,0===(_=y>>>16&255))O[o++]=65535&y;else{if(!(16&_)){if(0==(64&_)){y=$[(65535&y)+(h&(1<<_)-1)];continue e}if(32&_){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}b=65535&y,(_&=15)&&(p<_&&(h+=S[r++]<<p,p+=8),b+=h&(1<<_)-1,h>>>=_,p-=_),p<15&&(h+=S[r++]<<p,p+=8,h+=S[r++]<<p,p+=8),y=m[h&v];n:for(;;){if(h>>>=_=y>>>24,p-=_,!(16&(_=y>>>16&255))){if(0==(64&_)){y=m[(65535&y)+(h&(1<<_)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(w=65535&y,p<(_&=15)&&(h+=S[r++]<<p,(p+=8)<_&&(h+=S[r++]<<p,p+=8)),l<(w+=h&(1<<_)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(h>>>=_,p-=_,(_=o-a)<w){if(u<(_=w-_)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(k=f,(x=0)===d){if(x+=c-_,_<b){for(b-=_;O[o++]=f[x++],--_;);x=o-w,k=O}}else if(d<_){if(x+=c+d-_,(_-=d)<b){for(b-=_;O[o++]=f[x++],--_;);if(x=0,d<b){for(b-=_=d;O[o++]=f[x++],--_;);x=o-w,k=O}}}else if(x+=d-_,_<b){for(b-=_;O[o++]=f[x++],--_;);x=o-w,k=O}for(;2<b;)O[o++]=k[x++],O[o++]=k[x++],O[o++]=k[x++],b-=3;b&&(O[o++]=k[x++],1<b&&(O[o++]=k[x++]))}else{for(x=o-w;O[o++]=O[x++],O[o++]=O[x++],O[o++]=O[x++],2<(b-=3););b&&(O[o++]=O[x++],1<b&&(O[o++]=O[x++]))}break}}break}}while(r<i&&o<s);r-=b=p>>3,h&=(1<<(p-=b<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}},{}],49:[function(t,e,n){"use strict";var r=t("../utils/common"),i=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees"),l=1,c=2,u=0,d=-2,f=1,h=852,p=592;function $(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=f,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(h),e.distcode=e.distdyn=new r.Buf32(p),e.sane=1,e.back=-1,u):d}function v(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,g(t)):d}function y(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?d:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,v(t))):d}function _(t,e){var n,r;return t?(r=new m,(t.state=r).window=null,(n=y(t,e))!==u&&(t.state=null),n):d}var b,w,x=!0;function k(t){if(x){var e;for(b=new r.Buf32(512),w=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(l,t.lens,0,288,b,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(c,t.lens,0,32,w,0,t.work,{bits:5}),x=!1}t.lencode=b,t.lenbits=9,t.distcode=w,t.distbits=5}function S(t,e,n,i){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,e,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,e,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=v,n.inflateReset2=y,n.inflateResetKeep=g,n.inflateInit=function(t){return _(t,15)},n.inflateInit2=_,n.inflate=function(t,e){var n,h,p,m,g,v,y,_,b,w,x,O,C,A,E,T,P,B,L,I,D,R,j,M,F=0,N=new r.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return d;12===(n=t.state).mode&&(n.mode=13),g=t.next_out,p=t.output,y=t.avail_out,m=t.next_in,h=t.input,v=t.avail_in,_=n.hold,b=n.bits,w=v,x=y,R=u;t:for(;;)switch(n.mode){case f:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if(2&n.wrap&&35615===_){N[n.check=0]=255&_,N[1]=_>>>8&255,n.check=o(n.check,N,2,0),b=_=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&_)<<8)+(_>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&_)){t.msg="unknown compression method",n.mode=30;break}if(b-=4,D=8+(15&(_>>>=4)),0===n.wbits)n.wbits=D;else if(D>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<D,t.adler=n.check=1,n.mode=512&_?10:12,b=_=0;break;case 2:for(;b<16;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if(n.flags=_,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=_>>8&1),512&n.flags&&(N[0]=255&_,N[1]=_>>>8&255,n.check=o(n.check,N,2,0)),b=_=0,n.mode=3;case 3:for(;b<32;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}n.head&&(n.head.time=_),512&n.flags&&(N[0]=255&_,N[1]=_>>>8&255,N[2]=_>>>16&255,N[3]=_>>>24&255,n.check=o(n.check,N,4,0)),b=_=0,n.mode=4;case 4:for(;b<16;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}n.head&&(n.head.xflags=255&_,n.head.os=_>>8),512&n.flags&&(N[0]=255&_,N[1]=_>>>8&255,n.check=o(n.check,N,2,0)),b=_=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}n.length=_,n.head&&(n.head.extra_len=_),512&n.flags&&(N[0]=255&_,N[1]=_>>>8&255,n.check=o(n.check,N,2,0)),b=_=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(O=n.length)&&(O=v),O&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,h,m,O,D)),512&n.flags&&(n.check=o(n.check,h,O,m)),v-=O,m+=O,n.length-=O),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===v)break t;for(O=0;D=h[m+O++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D)),D&&O<v;);if(512&n.flags&&(n.check=o(n.check,h,O,m)),v-=O,m+=O,D)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===v)break t;for(O=0;D=h[m+O++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D)),D&&O<v;);if(512&n.flags&&(n.check=o(n.check,h,O,m)),v-=O,m+=O,D)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if(_!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}b=_=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}t.adler=n.check=$(_),b=_=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=g,t.avail_out=y,t.next_in=m,t.avail_in=v,n.hold=_,n.bits=b,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){_>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}switch(n.last=1&_,b-=1,3&(_>>>=1)){case 0:n.mode=14;break;case 1:if(k(n),n.mode=20,6!==e)break;_>>>=2,b-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}_>>>=2,b-=2;break;case 14:for(_>>>=7&b,b-=7&b;b<32;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if((65535&_)!=(_>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&_,b=_=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(O=n.length){if(v<O&&(O=v),y<O&&(O=y),0===O)break t;r.arraySet(p,h,m,O,g),v-=O,m+=O,y-=O,g+=O,n.length-=O;break}n.mode=12;break;case 17:for(;b<14;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if(n.nlen=257+(31&_),_>>>=5,b-=5,n.ndist=1+(31&_),_>>>=5,b-=5,n.ncode=4+(15&_),_>>>=4,b-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}n.lens[z[n.have++]]=7&_,_>>>=3,b-=3}for(;n.have<19;)n.lens[z[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,j={bits:n.lenbits},R=s(0,n.lens,0,19,n.lencode,0,n.work,j),n.lenbits=j.bits,R){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(F=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,P=65535&F,!((E=F>>>24)<=b);){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if(P<16)_>>>=E,b-=E,n.lens[n.have++]=P;else{if(16===P){for(M=E+2;b<M;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if(_>>>=E,b-=E,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}D=n.lens[n.have-1],O=3+(3&_),_>>>=2,b-=2}else if(17===P){for(M=E+3;b<M;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}b-=E,D=0,O=3+(7&(_>>>=E)),_>>>=3,b-=3}else{for(M=E+7;b<M;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}b-=E,D=0,O=11+(127&(_>>>=E)),_>>>=7,b-=7}if(n.have+O>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;O--;)n.lens[n.have++]=D}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,j={bits:n.lenbits},R=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,j),n.lenbits=j.bits,R){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,j={bits:n.distbits},R=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,j),n.distbits=j.bits,R){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=v&&258<=y){t.next_out=g,t.avail_out=y,t.next_in=m,t.avail_in=v,n.hold=_,n.bits=b,a(t,x),g=t.next_out,p=t.output,y=t.avail_out,m=t.next_in,h=t.input,v=t.avail_in,_=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(F=n.lencode[_&(1<<n.lenbits)-1])>>>16&255,P=65535&F,!((E=F>>>24)<=b);){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if(T&&0==(240&T)){for(B=E,L=T,I=P;T=(F=n.lencode[I+((_&(1<<B+L)-1)>>B)])>>>16&255,P=65535&F,!(B+(E=F>>>24)<=b);){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}_>>>=B,b-=B,n.back+=B}if(_>>>=E,b-=E,n.back+=E,n.length=P,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(M=n.extra;b<M;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}n.length+=_&(1<<n.extra)-1,_>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(F=n.distcode[_&(1<<n.distbits)-1])>>>16&255,P=65535&F,!((E=F>>>24)<=b);){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if(0==(240&T)){for(B=E,L=T,I=P;T=(F=n.distcode[I+((_&(1<<B+L)-1)>>B)])>>>16&255,P=65535&F,!(B+(E=F>>>24)<=b);){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}_>>>=B,b-=B,n.back+=B}if(_>>>=E,b-=E,n.back+=E,64&T){t.msg="invalid distance code",n.mode=30;break}n.offset=P,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(M=n.extra;b<M;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}n.offset+=_&(1<<n.extra)-1,_>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break t;if(O=x-y,n.offset>O){if((O=n.offset-O)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}C=O>n.wnext?(O-=n.wnext,n.wsize-O):n.wnext-O,O>n.length&&(O=n.length),A=n.window}else A=p,C=g-n.offset,O=n.length;for(y<O&&(O=y),y-=O,n.length-=O;p[g++]=A[C++],--O;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break t;p[g++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===v)break t;v--,_|=h[m++]<<b,b+=8}if(x-=y,t.total_out+=x,n.total+=x,x&&(t.adler=n.check=n.flags?o(n.check,p,x,g-x):i(n.check,p,x,g-x)),x=y,(n.flags?_:$(_))!==n.check){t.msg="incorrect data check",n.mode=30;break}b=_=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===v)break t;v--,_+=h[m++]<<b,b+=8}if(_!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}b=_=0}n.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;case 32:default:return d}return t.next_out=g,t.avail_out=y,t.next_in=m,t.avail_in=v,n.hold=_,n.bits=b,(n.wsize||x!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&S(t,t.output,t.next_out,x-t.avail_out)?(n.mode=31,-4):(w-=t.avail_in,x-=t.avail_out,t.total_in+=w,t.total_out+=x,n.total+=x,n.wrap&&x&&(t.adler=n.check=n.flags?o(n.check,p,x,t.next_out-x):i(n.check,p,x,t.next_out-x)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===x||4===e)&&R===u&&(R=-5),R)},n.inflateEnd=function(t){if(!t||!t.state)return d;var e=t.state;return e.window&&(e.window=null),t.state=null,u},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?d:((n.head=e).done=!1,u):d},n.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?d:11===n.mode&&i(1,e,r,0)!==n.check?-3:S(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var r=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,c,u,d,f){var h,p,$,m,g,v,y,_,b,w=f.bits,x=0,k=0,S=0,O=0,C=0,A=0,E=0,T=0,P=0,B=0,L=null,I=0,D=new r.Buf16(16),R=new r.Buf16(16),j=null,M=0;for(x=0;x<=15;x++)D[x]=0;for(k=0;k<l;k++)D[e[n+k]]++;for(C=w,O=15;1<=O&&0===D[O];O--);if(O<C&&(C=O),0===O)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(S=1;S<O&&0===D[S];S++);for(C<S&&(C=S),x=T=1;x<=15;x++)if(T<<=1,(T-=D[x])<0)return-1;if(0<T&&(0===t||1!==O))return-1;for(R[1]=0,x=1;x<15;x++)R[x+1]=R[x]+D[x];for(k=0;k<l;k++)0!==e[n+k]&&(d[R[e[n+k]]++]=k);if(v=0===t?(L=j=d,19):1===t?(L=i,I-=257,j=o,M-=257,256):(L=a,j=s,-1),x=S,g=u,E=k=B=0,$=-1,m=(P=1<<(A=C))-1,1===t&&852<P||2===t&&592<P)return 1;for(;;){for(y=x-E,b=d[k]<v?(_=0,d[k]):d[k]>v?(_=j[M+d[k]],L[I+d[k]]):(_=96,0),h=1<<x-E,S=p=1<<A;c[g+(B>>E)+(p-=h)]=y<<24|_<<16|b|0,0!==p;);for(h=1<<x-1;B&h;)h>>=1;if(0!==h?(B&=h-1,B+=h):B=0,k++,0==--D[x]){if(x===O)break;x=e[n+d[k]]}if(C<x&&(B&m)!==$){for(0===E&&(E=C),g+=S,T=1<<(A=x-E);A+E<O&&!((T-=D[A+E])<=0);)A++,T<<=1;if(P+=1<<A,1===t&&852<P||2===t&&592<P)return 1;c[$=B&m]=C<<24|A<<16|g-u|0}}return 0!==B&&(c[g+B]=x-E<<24|64<<16|0),f.bits=C,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var r=t("../utils/common"),i=0,o=1;function a(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,l=29,c=256,u=c+1+l,d=30,f=19,h=2*u+1,p=15,$=16,m=7,g=256,v=16,y=17,_=18,b=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],w=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(2*(u+2));a(S);var O=new Array(2*d);a(O);var C=new Array(512);a(C);var A=new Array(256);a(A);var E=new Array(l);a(E);var T,P,B,L=new Array(d);function I(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function D(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function R(t){return t<256?C[t]:C[256+(t>>>7)]}function j(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function M(t,e,n){t.bi_valid>$-n?(t.bi_buf|=e<<t.bi_valid&65535,j(t,t.bi_buf),t.bi_buf=e>>$-t.bi_valid,t.bi_valid+=n-$):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function F(t,e,n){M(t,n[2*e],n[2*e+1])}function N(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function z(t,e,n){var r,i,o=new Array(p+1),a=0;for(r=1;r<=p;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=N(o[s]++,s))}}function H(t){var e;for(e=0;e<u;e++)t.dyn_ltree[2*e]=0;for(e=0;e<d;e++)t.dyn_dtree[2*e]=0;for(e=0;e<f;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*g]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function V(t){8<t.bi_valid?j(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function U(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function q(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&U(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!U(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function W(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)for(;r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?F(t,i,e):(F(t,(o=A[i])+c+1,e),0!==(a=b[o])&&M(t,i-=E[o],a),F(t,o=R(--r),n),0!==(a=w[o])&&M(t,r-=L[o],a)),s<t.last_lit;);F(t,g,e)}function G(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=h,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;1<=n;n--)q(t,o,n);for(i=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],q(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,q(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,d=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,$=e.stat_desc.extra_base,m=e.stat_desc.max_length,g=0;for(o=0;o<=p;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<h;n++)m<(o=l[2*l[2*(r=t.heap[n])+1]+1]+1)&&(o=m,g++),l[2*r+1]=o,c<r||(t.bl_count[o]++,a=0,$<=r&&(a=f[r-$]),s=l[2*r],t.opt_len+=s*(o+a),d&&(t.static_len+=s*(u[2*r+1]+a)));if(0!==g){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,g-=2}while(0<g);for(o=m;0!==o;o--)for(r=t.bl_count[o];0!==r;)c<(i=t.heap[--n])||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(t,e),z(o,c,t.bl_count)}function Y(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<l&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*v]++):s<=10?t.bl_tree[2*y]++:t.bl_tree[2*_]++,o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function K(t,e,n){var r,i,o=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)for(;F(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==o&&(F(t,i,t.bl_tree),s--),F(t,v,t.bl_tree),M(t,s-3,2)):s<=10?(F(t,y,t.bl_tree),M(t,s-3,3)):(F(t,_,t.bl_tree),M(t,s-11,7));o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}a(L);var X=!1;function Z(t,e,n,i){M(t,(s<<1)+(i?1:0),3),function(t,e,n,i){V(t),i&&(j(t,n),j(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}n._tr_init=function(t){X||(function(){var t,e,n,r,i,o=new Array(p+1);for(r=n=0;r<l-1;r++)for(E[r]=n,t=0;t<1<<b[r];t++)A[n++]=r;for(A[n-1]=r,r=i=0;r<16;r++)for(L[r]=i,t=0;t<1<<w[r];t++)C[i++]=r;for(i>>=7;r<d;r++)for(L[r]=i<<7,t=0;t<1<<w[r]-7;t++)C[256+i++]=r;for(e=0;e<=p;e++)o[e]=0;for(t=0;t<=143;)S[2*t+1]=8,t++,o[8]++;for(;t<=255;)S[2*t+1]=9,t++,o[9]++;for(;t<=279;)S[2*t+1]=7,t++,o[7]++;for(;t<=287;)S[2*t+1]=8,t++,o[8]++;for(z(S,u+1,o),t=0;t<d;t++)O[2*t+1]=5,O[2*t]=N(t,5);T=new I(S,b,c+1,u,p),P=new I(O,w,0,d,p),B=new I(new Array(0),x,0,f,m)}(),X=!0),t.l_desc=new D(t.dyn_ltree,T),t.d_desc=new D(t.dyn_dtree,P),t.bl_desc=new D(t.bl_tree,B),t.bi_buf=0,t.bi_valid=0,H(t)},n._tr_stored_block=Z,n._tr_flush_block=function(t,e,n,r){var a,s,l=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return o;return i}(t)),G(t,t.l_desc),G(t,t.d_desc),l=function(t){var e;for(Y(t,t.dyn_ltree,t.l_desc.max_code),Y(t,t.dyn_dtree,t.d_desc.max_code),G(t,t.bl_desc),e=f-1;3<=e&&0===t.bl_tree[2*k[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==e?Z(t,e,n,r):4===t.strategy||s===a?(M(t,2+(r?1:0),3),W(t,S,O)):(M(t,4+(r?1:0),3),function(t,e,n,r){var i;for(M(t,e-257,5),M(t,n-1,5),M(t,r-4,4),i=0;i<r;i++)M(t,t.bl_tree[2*k[i]+1],3);K(t,t.dyn_ltree,e-1),K(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,l+1),W(t,t.dyn_ltree,t.dyn_dtree)),H(t),r&&V(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(A[n]+c+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){M(t,2,3),F(t,g,S),function(t){16===t.bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,n){"use strict";e.exports="function"==typeof setImmediate?setImmediate:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)}))}).call(this,n("b639").Buffer,n("c8ba"))},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,s=i(t),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(e.length>l)r(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},cbc8:function(t,e,n){(function(t){t(n("56b3"),n("4895"))})((function(t){"use strict";t.defineOption("foldGutter",!1,(function(e,i,o){o&&o!=t.Init&&(e.clearGutter(e.state.foldGutter.options.gutter),e.state.foldGutter=null,e.off("gutterClick",c),e.off("changes",u),e.off("viewportChange",d),e.off("fold",f),e.off("unfold",f),e.off("swapDoc",u)),i&&(e.state.foldGutter=new n(r(i)),l(e),e.on("gutterClick",c),e.on("changes",u),e.on("viewportChange",d),e.on("fold",f),e.on("unfold",f),e.on("swapDoc",u))}));var e=t.Pos;function n(t){this.options=t,this.from=this.to=0}function r(t){return!0===t&&(t={}),null==t.gutter&&(t.gutter="CodeMirror-foldgutter"),null==t.indicatorOpen&&(t.indicatorOpen="CodeMirror-foldgutter-open"),null==t.indicatorFolded&&(t.indicatorFolded="CodeMirror-foldgutter-folded"),t}function i(t,n){for(var r=t.findMarks(e(n,0),e(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function o(t){if("string"==typeof t){var e=document.createElement("div");return e.className=t+" CodeMirror-guttermarker-subtle",e}return t.cloneNode(!0)}function a(t,n,r){var a=t.state.foldGutter.options,l=n-1,c=t.foldOption(a,"minFoldSize"),u=t.foldOption(a,"rangeFinder"),d="string"==typeof a.indicatorFolded&&s(a.indicatorFolded),f="string"==typeof a.indicatorOpen&&s(a.indicatorOpen);t.eachLine(n,r,(function(n){++l;var r=null,s=n.gutterMarkers;if(s&&(s=s[a.gutter]),i(t,l)){if(d&&s&&d.test(s.className))return;r=o(a.indicatorFolded)}else{var h=e(l,0),p=u&&u(t,h);if(p&&p.to.line-p.from.line>=c){if(f&&s&&f.test(s.className))return;r=o(a.indicatorOpen)}}(r||s)&&t.setGutterMarker(n,a.gutter,r)}))}function s(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function l(t){var e=t.getViewport(),n=t.state.foldGutter;n&&(t.operation((function(){a(t,e.from,e.to)})),n.from=e.from,n.to=e.to)}function c(t,n,r){var o=t.state.foldGutter;if(o){var a=o.options;if(r==a.gutter){var s=i(t,n);s?s.clear():t.foldCode(e(n,0),a)}}}function u(t){var e=t.state.foldGutter;if(e){var n=e.options;e.from=e.to=0,clearTimeout(e.changeUpdate),e.changeUpdate=setTimeout((function(){l(t)}),n.foldOnChangeTimeSpan||600)}}function d(t){var e=t.state.foldGutter;if(e){var n=e.options;clearTimeout(e.changeUpdate),e.changeUpdate=setTimeout((function(){var n=t.getViewport();e.from==e.to||n.from-e.to>20||e.from-n.to>20?l(t):t.operation((function(){n.from<e.from&&(a(t,n.from,e.from),e.from=n.from),n.to>e.to&&(a(t,e.to,n.to),e.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(t,e){var n=t.state.foldGutter;if(n){var r=e.line;r>=n.from&&r<n.to&&a(t,r,r+1)}}}))},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d72f:function(t,e,n){},d7d5:function(t,e,n){(function(t){t(n("56b3"))})((function(t){function e(t){t.state.placeholder&&(t.state.placeholder.parentNode.removeChild(t.state.placeholder),t.state.placeholder=null)}function n(t){e(t);var n=t.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=t.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=t.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),t.display.lineSpace.insertBefore(n,t.display.lineSpace.firstChild)}function r(t){setTimeout((function(){var r=!1,i=t.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==t.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(t):e(t)}),20)}function i(t){a(t)&&n(t)}function o(t){var r=t.getWrapperElement(),i=a(t);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(t):e(t)}function a(t){return 1===t.lineCount()&&""===t.getLine(0)}t.defineOption("placeholder","",(function(n,a,s){var l=s&&s!=t.Init;if(a&&!l)n.on("blur",i),n.on("change",o),n.on("swapDoc",o),t.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),o(n);else if(!a&&l){n.off("blur",i),n.off("change",o),n.off("swapDoc",o),t.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),e(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&i(n)}))}))},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var c=[];for(l=s;l<i.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),l="Array Iterator",c=a.set,u=a.getterFor(l);t.exports=s(Array,"Array",(function(t,e){c(this,{type:l,target:r(t),index:0,kind:e})}),(function(){var t=u(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,i,o,a,s=n("23e7"),l=n("c430"),c=n("da84"),u=n("d066"),d=n("fea9"),f=n("6eeb"),h=n("e2cc"),p=n("d44e"),$=n("2626"),m=n("861d"),g=n("1c0b"),v=n("19aa"),y=n("c6b6"),_=n("8925"),b=n("2266"),w=n("1c7e"),x=n("4840"),k=n("2cf4").set,S=n("b575"),O=n("cdf9"),C=n("44de"),A=n("f069"),E=n("e667"),T=n("69f3"),P=n("94ca"),B=n("b622"),L=n("2d00"),I=B("species"),D="Promise",R=T.get,j=T.set,M=T.getterFor(D),F=d,N=c.TypeError,z=c.document,H=c.process,V=u("fetch"),U=A.f,q=U,W="process"==y(H),G=!!(z&&z.createEvent&&c.dispatchEvent),Y="unhandledrejection",K="rejectionhandled",X=0,Z=1,J=2,Q=1,tt=2,et=P(D,(function(){var t=_(F)!==String(F);if(!t){if(66===L)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!F.prototype["finally"])return!0;if(L>=51&&/native code/.test(F))return!1;var e=F.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[I]=n,!(e.then((function(){}))instanceof n)})),nt=et||!w((function(t){F.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;S((function(){var i=e.value,o=e.state==Z,a=0;while(r.length>a){var s,l,c,u=r[a++],d=o?u.ok:u.fail,f=u.resolve,h=u.reject,p=u.domain;try{d?(o||(e.rejection===tt&&lt(t,e),e.rejection=Q),!0===d?s=i:(p&&p.enter(),s=d(i),p&&(p.exit(),c=!0)),s===u.promise?h(N("Promise-chain cycle")):(l=rt(s))?l.call(s,f,h):f(s)):h(i)}catch($){p&&!c&&p.exit(),h($)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&at(t,e)}))}},ot=function(t,e,n){var r,i;G?(r=z.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},(i=c["on"+t])?i(r):t===Y&&C("Unhandled promise rejection",n)},at=function(t,e){k.call(c,(function(){var n,r=e.value,i=st(e);if(i&&(n=E((function(){W?H.emit("unhandledRejection",r,t):ot(Y,t,r)})),e.rejection=W||st(e)?tt:Q,n.error))throw n.value}))},st=function(t){return t.rejection!==Q&&!t.parent},lt=function(t,e){k.call(c,(function(){W?H.emit("rejectionHandled",t):ot(K,t,e.value)}))},ct=function(t,e,n,r){return function(i){t(e,n,i,r)}},ut=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=J,it(t,e,!0))},dt=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw N("Promise can't be resolved itself");var i=rt(n);i?S((function(){var r={done:!1};try{i.call(n,ct(dt,t,r,e),ct(ut,t,r,e))}catch(o){ut(t,r,o,e)}})):(e.value=n,e.state=Z,it(t,e,!1))}catch(o){ut(t,{done:!1},o,e)}}};et&&(F=function(t){v(this,F,D),g(t),r.call(this);var e=R(this);try{t(ct(dt,this,e),ct(ut,this,e))}catch(n){ut(this,e,n)}},r=function(t){j(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=h(F.prototype,{then:function(t,e){var n=M(this),r=U(x(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=W?H.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&it(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=R(t);this.promise=t,this.resolve=ct(dt,t,e),this.reject=ct(ut,t,e)},A.f=U=function(t){return t===F||t===o?new i(t):q(t)},l||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",(function(t,e){var n=this;return new F((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof V&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return O(F,V.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:et},{Promise:F}),p(F,D,!1,!0),$(D),o=u(D),s({target:D,stat:!0,forced:et},{reject:function(t){var e=U(this);return e.reject.call(void 0,t),e.promise}}),s({target:D,stat:!0,forced:l||et},{resolve:function(t){return O(l&&this===o?F:this,t)}}),s({target:D,stat:!0,forced:nt},{all:function(t){var e=this,n=U(e),r=n.resolve,i=n.reject,o=E((function(){var n=g(e.resolve),o=[],a=0,s=1;b(t,(function(t){var l=a++,c=!1;o.push(void 0),s++,n.call(e,t).then((function(t){c||(c=!0,o[l]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=U(e),r=n.reject,i=E((function(){var i=g(e.resolve);b(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(t,u)||s(t,u,l(e,u))}}},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f0bd:function(t,e,n){"use strict";(function(t){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();function i(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}function o(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}}var a=n&&window.Promise,s=a?i:o;function l(t){var e={};return t&&"[object Function]"===e.toString.call(t)}function c(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView,r=n.getComputedStyle(t,null);return e?r[e]:r}function u(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function d(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=c(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:d(u(t))}function f(t){return t&&t.referenceNode?t.referenceNode:t}var h=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function $(t){return 11===t?h:10===t?p:h||p}function m(t){if(!t)return document.documentElement;var e=$(10)?document.body:null,n=t.offsetParent||null;while(n===e&&t.nextElementSibling)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===c(n,"position")?m(n):n:t?t.ownerDocument.documentElement:document.documentElement}function g(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||m(t.firstElementChild)===t)}function v(t){return null!==t.parentNode?v(t.parentNode):t}function y(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(t!==a&&e!==a||r.contains(i))return g(a)?a:m(a);var s=v(t);return s.host?y(s.host,e):y(t,v(e).host)}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function b(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_(e,"top"),i=_(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function w(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function x(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],$(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function k(t){var e=t.body,n=t.documentElement,r=$(10)&&getComputedStyle(n);return{height:x("Height",e,n,r),width:x("Width",e,n,r)}}var S=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},O=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),C=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},A=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function E(t){return A({},t,{right:t.left+t.width,bottom:t.top+t.height})}function T(t){var e={};try{if($(10)){e=t.getBoundingClientRect();var n=_(t,"top"),r=_(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(f){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?k(t.ownerDocument):{},a=o.width||t.clientWidth||i.width,s=o.height||t.clientHeight||i.height,l=t.offsetWidth-a,u=t.offsetHeight-s;if(l||u){var d=c(t);l-=w(d,"x"),u-=w(d,"y"),i.width-=l,i.height-=u}return E(i)}function P(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=$(10),i="HTML"===e.nodeName,o=T(t),a=T(e),s=d(t),l=c(e),u=parseFloat(l.borderTopWidth),f=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=E({top:o.top-a.top-u,left:o.left-a.left-f,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var p=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);h.top-=u-p,h.bottom-=u-p,h.left-=f-m,h.right-=f-m,h.marginTop=p,h.marginLeft=m}return(r&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(h=b(h,e)),h}function B(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=P(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:_(n),s=e?0:_(n,"left"),l={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return E(l)}function L(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===c(t,"position"))return!0;var n=u(t);return!!n&&L(n)}function I(t){if(!t||!t.parentElement||$())return document.documentElement;var e=t.parentElement;while(e&&"none"===c(e,"transform"))e=e.parentElement;return e||document.documentElement}function D(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?I(t):y(t,f(e));if("viewport"===r)o=B(a,i);else{var s=void 0;"scrollParent"===r?(s=d(u(e)),"BODY"===s.nodeName&&(s=t.ownerDocument.documentElement)):s="window"===r?t.ownerDocument.documentElement:r;var l=P(s,a,i);if("HTML"!==s.nodeName||L(a))o=l;else{var c=k(t.ownerDocument),h=c.height,p=c.width;o.top+=l.top-l.marginTop,o.bottom=h+l.top,o.left+=l.left-l.marginLeft,o.right=p+l.left}}n=n||0;var $="number"===typeof n;return o.left+=$?n:n.left||0,o.top+=$?n:n.top||0,o.right-=$?n:n.right||0,o.bottom-=$?n:n.bottom||0,o}function R(t){var e=t.width,n=t.height;return e*n}function j(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=D(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map((function(t){return A({key:t},s[t],{area:R(s[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=t.split("-")[1];return u+(d?"-"+d:"")}function M(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?I(e):y(e,f(n));return P(n,i,r)}function F(t){var e=t.ownerDocument.defaultView,n=e.getComputedStyle(t),r=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0),i=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0),o={width:t.offsetWidth+i,height:t.offsetHeight+r};return o}function N(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function z(t,e,n){n=n.split("-")[0];var r=F(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=e[a]+e[l]/2-r[l]/2,i[s]=n===s?e[s]-r[c]:e[N(s)],i}function H(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function V(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=H(t,(function(t){return t[e]===n}));return t.indexOf(r)}function U(t,e,n){var r=void 0===n?t:t.slice(0,V(t,"name",n));return r.forEach((function(t){t["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t["function"]||t.fn;t.enabled&&l(n)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=n(e,t))})),e}function q(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=M(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=j(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=z(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=U(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function W(t,e){return t.some((function(t){var n=t.name,r=t.enabled;return r&&n===e}))}function G(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if("undefined"!==typeof document.body.style[o])return o}return null}function Y(){return this.state.isDestroyed=!0,W(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[G("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function K(t){var e=t.ownerDocument;return e?e.defaultView:window}function X(t,e,n,r){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),i||X(d(o.parentNode),e,n,r),r.push(o)}function Z(t,e,n,r){n.updateBound=r,K(t).addEventListener("resize",n.updateBound,{passive:!0});var i=d(t);return X(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function J(){this.state.eventsEnabled||(this.state=Z(this.reference,this.options,this.state,this.scheduleUpdate))}function Q(t,e){return K(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function tt(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Q(this.reference,this.state))}function et(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function nt(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&et(e[n])&&(r="px"),t.style[n]=e[n]+r}))}function rt(t,e){Object.keys(e).forEach((function(n){var r=e[n];!1!==r?t.setAttribute(n,e[n]):t.removeAttribute(n)}))}function it(t){return nt(t.instance.popper,t.styles),rt(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&nt(t.arrowElement,t.arrowStyles),t}function ot(t,e,n,r,i){var o=M(i,e,t,n.positionFixed),a=j(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),nt(e,{position:n.positionFixed?"fixed":"absolute"}),n}function at(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},l=o(i.width),c=o(r.width),u=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),f=l%2===c%2,h=l%2===1&&c%2===1,p=e?u||d||f?o:a:s,$=e?o:s;return{left:p(h&&!d&&e?r.left-1:r.left),top:$(r.top),bottom:$(r.bottom),right:p(r.right)}}var st=n&&/Firefox/i.test(navigator.userAgent);function lt(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=H(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=m(t.instance.popper),l=T(s),c={position:i.position},u=at(t,window.devicePixelRatio<2||!st),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",h=G("transform"),p=void 0,$=void 0;if($="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&h)c[h]="translate3d("+p+"px, "+$+"px, 0)",c[d]=0,c[f]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===f?-1:1;c[d]=$*g,c[f]=p*v,c.willChange=d+", "+f}var y={"x-placement":t.placement};return t.attributes=A({},y,t.attributes),t.styles=A({},c,t.styles),t.arrowStyles=A({},t.offsets.arrow,t.arrowStyles),t}function ct(t,e,n){var r=H(t,(function(t){var n=t.name;return n===e})),i=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!i){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}function ut(t,e){var n;if(!ct(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"===typeof r){if(r=t.instance.popper.querySelector(r),!r)return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",$=F(r)[u];s[p]-$<a[f]&&(t.offsets.popper[f]-=a[f]-(s[p]-$)),s[f]+$>a[p]&&(t.offsets.popper[f]+=s[f]+$-a[p]),t.offsets.popper=E(t.offsets.popper);var m=s[f]+s[u]/2-$/2,g=c(t.instance.popper),v=parseFloat(g["margin"+d]),y=parseFloat(g["border"+d+"Width"]),_=m-t.offsets.popper[f]-v-y;return _=Math.max(Math.min(a[u]-$,_),0),t.arrowElement=r,t.offsets.arrow=(n={},C(n,f,Math.round(_)),C(n,h,""),n),t}function dt(t){return"end"===t?"start":"start"===t?"end":t}var ft=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ht=ft.slice(3);function pt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ht.indexOf(t),r=ht.slice(n+1).concat(ht.slice(0,n));return e?r.reverse():r}var $t={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function mt(t,e){if(W(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=D(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=N(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case $t.FLIP:a=[r,i];break;case $t.CLOCKWISE:a=pt(r);break;case $t.COUNTERCLOCKWISE:a=pt(r,!0);break;default:a=e.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return t;r=t.placement.split("-")[0],i=N(r);var c=t.offsets.popper,u=t.offsets.reference,d=Math.floor,f="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),p=d(c.right)>d(n.right),$=d(c.top)<d(n.top),m=d(c.bottom)>d(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&$||"bottom"===r&&m,v=-1!==["top","bottom"].indexOf(r),y=!!e.flipVariations&&(v&&"start"===o&&h||v&&"end"===o&&p||!v&&"start"===o&&$||!v&&"end"===o&&m),_=!!e.flipVariationsByContent&&(v&&"start"===o&&p||v&&"end"===o&&h||!v&&"start"===o&&m||!v&&"end"===o&&$),b=y||_;(f||g||b)&&(t.flipped=!0,(f||g)&&(r=a[l+1]),b&&(o=dt(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=A({},t.offsets.popper,z(t.instance.popper,t.offsets.reference,t.placement)),t=U(t.instance.modifiers,t,"flip"))})),t}function gt(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(r[l])&&(t.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[s])&&(t.offsets.popper[l]=o(r[s])),t}function vt(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=E(s);return l[e]/100*o}if("vh"===a||"vw"===a){var c=void 0;return c="vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*o}return o}function yt(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(H(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return vt(t,i,e,n)}))})),c.forEach((function(t,e){t.forEach((function(n,r){et(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}function _t(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=et(+n)?[+n,0]:yt(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t}function bt(t,e){var n=e.boundariesElement||m(t.instance.popper);t.instance.reference===n&&(n=m(n));var r=G("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=D(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=l;var c=e.priority,u=t.offsets.popper,d={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),C({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(r=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),C({},n,r)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=A({},u,d[e](t))})),t.offsets.popper=u,t}function wt(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:C({},l,o[l]),end:C({},l,o[l]+o[c]-a[c])};t.offsets.popper=A({},a,u[r])}return t}function xt(t){if(!ct(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=H(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}function kt(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=N(e),t.offsets.popper=E(i),t}var St={shift:{order:100,enabled:!0,fn:wt},offset:{order:200,enabled:!0,fn:_t,offset:0},preventOverflow:{order:300,enabled:!0,fn:bt,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:gt},arrow:{order:500,enabled:!0,fn:ut,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:mt,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:kt},hide:{order:800,enabled:!0,fn:xt},computeStyle:{order:850,enabled:!0,fn:lt,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:it,onLoad:ot,gpuAcceleration:void 0}},Ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:St},Ct=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};S(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=s(this.update.bind(this)),this.options=A({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(A({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){r.options.modifiers[e]=A({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return A({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&l(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return O(t,[{key:"update",value:function(){return q.call(this)}},{key:"destroy",value:function(){return Y.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return tt.call(this)}}]),t}();Ct.Utils=("undefined"!==typeof window?window:t).PopperUtils,Ct.placements=ft,Ct.Defaults=Ot,e["a"]=Ct}).call(this,n("c8ba"))},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f6b6:function(t,e,n){},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},f9e3:function(t,e,n){},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise}}]);
//# sourceMappingURL=chunk-vendors.d7ec7d73.js.map