查看“MediaWiki:Gadget-wikiparser-node.js”的源代码
←
MediaWiki:Gadget-wikiparser-node.js
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
该页提供此wiki软件的界面文字,它已被保护以防止恶意修改。如欲修改所有wiki的翻译,请到
translatewiki.net
上的MediaWiki本地化计划。
您可以查看与复制此页面的源代码。
/** * ------------------------------------------------------------------------- * !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!! * ------------------------------------------------------------------------- */ var _addText = '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/prism-language-wiki/MediaWiki:Gadget-wikiparser-node.js|user=github-actions[bot]|co-authors=|longId=f874d58b4bce386ab667d74e1c80a2d09375bf91|shortId=f874d58b|summary=auto(Gadget-prism-language-wiki): bump wikiparser-node to 1.10.0-b by prefetch}}'; /* <pre> */ eval([ "var __makeTemplateObject=this&&this.__makeTemplateObject||function(t,e){return Object.defineProperty?Object.defineProperty(t,'raw',{value:e}):t.raw=e,t},__extends=this&&this.__extends||function(){var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};return function(t,e){if('function'!=typeof e&&null!==e)throw new TypeError('Class extends value '+String(e)+' is not a constructor or null');function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}(),__assign=this&&this.__assign||function(){return(__assign=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)},__values=this&&this.__values||function(t){var e='function'==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&'number'==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?'Object is not iterable.':'Symbol.iterator is not defined.')},__read=this&&this.__read||function(t,e){var n='function'==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};!function(){function W(t,e){return Symbol[t]||Symbol.for('Symbol.'+t)}function L(t,e){Ut(t,'name',{value:e,configurable:!0})}function t(t,e){return function(){return e=t?t(t=0):e}}function e(t,e){for(var n in e)Ut(t,n,{get:e[n],enumerable:!0})}function y(t){return Qt(Ut({},'__esModule',{value:!0}),t)}function R(t){return[,,,Gt(null!=(t=null==t?void 0:t[W('metadata')])?t:null)]}function E(t,e,n,r){for(var i=0,o=t[e>>1],a=o&&o.length;i<a;i++)1&e?o[i].call(n):r=o[i].call(n,r)}function z(t,e,n,r,i,o){var a,s,l,c=7&e,u=!!(8&e),p=!!(16&e),e=3<c?t.length+1:c?u?1:2:0,d=Jt[5+c],h=3<c&&(t[e-1]=[]),f=t[e]||(t[e]=[]),g=c&&(p||u||(i=i.prototype),c<5)&&(3<c||!p)&&Dt(c<4?i:(e={},Object.defineProperty(e,n,{get:function(){return S(this,o)},enumerable:!1,configurable:!0}),Object.defineProperty(e,n,{set:function(t){return k(this,o,t)},enumerable:!1,configurable:!0}),e),n);c?p&&c<4&&L(o,(2<c?'set ':1<c?'get ':'')+n):L(i,n);for(var y=r.length-1;0<=y;y--)s=function(t,e,n,r,i){return{kind:Jt[t],name:e,metadata:r,addInitializer:function(t){return n._?Zt('Already initialized'):i.push(Kt(t||null))}}}(c,n,a={},t[3],f),c&&(s.static=u,s.private=p,l=s.access={has:p?function(t){return e=i,t=t,Object(t)!==t?Zt('Cannot use the \"in\" operator on this value'):e.has(t);var e}:function(t){return n in t}},3^c&&(l.get=p?function(t){return(1^c?S:x)(t,i,4^c?o:g.get)}:function(t){return t[n]}),2<c)&&(l.set=p?function(t,e){return k(t,i,e,4^c?o:g.set)}:function(t,e){return t[n]=e}),l=(0,r[y])(c?c<4?p?o:g[d]:4<c?void 0:{get:g.get,set:g.set}:i,s),a._=1,4^c||void 0===l?Kt(l)&&(4<c?h.unshift(l):c?p?o=l:g[d]=l:i=l):'object'!=typeof l||null===l?Zt('Object expected'):(Kt(s=l.get)&&(g.get=s),Kt(s=l.set)&&(g.set=s),Kt(s=l.init)&&h.unshift(s));return c||(i[W('metadata')]=t[3]),g&&Ut(i,n,g),p?4^c?o:g:i}function v(t,e,n){Xt(t,'symbol'!=typeof e?e+'':e,n)}function B(t,e,n){e.has(t)||Zt('Cannot '+n)}function b(t,e,n){e.has(t)?Zt('Cannot add the same private member more than once'):e instanceof WeakSet?e.add(t):e.set(t,n)}function q(e,n,r,t){return{set _(t){k(e,n,t,r)},get _(){return S(e,n,t)}}}var G,U,D,n,V,C,H,Z,X,Q,J,K,Y,tt,et,nt,rt,r,g,it,m,w,ot,at,st,lt,ct,ut,pt,dt,ht,ft,gt,yt,vt,xt,bt,mt,_t,wt,At,St,kt,jt,Ot,It,Ct,_,Nt,Tt,a,Pt,Ft,$t,Wt,Mt,A,Lt,Rt,Et,zt,Bt,qt,Gt=Object.create,Ut=Object.defineProperty,Dt=Object.getOwnPropertyDescriptor,Vt=Object.getOwnPropertyNames,Ht=Object.prototype.hasOwnProperty,Zt=function(t){throw TypeError(t)},Xt=function(t,e,n){return e in t?Ut(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Qt=function(e,n,r,i){var o,t;if(n&&'object'==typeof n||'function'==typeof n)try{for(var a=__values(Vt(n)),s=a.next();!s.done;s=a.next())!function(t){Ht.call(e,t)||t===r||Ut(e,t,{get:function(){return n[t]},enumerable:!(i=Dt(n,t))||i.enumerable})}(s.value)}catch(t){o={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return e},Jt=['class','method','getter','setter','accessor','field','value','get','set'],Kt=function(t){return void 0!==t&&'function'!=typeof t?Zt('Function expected'):t},S=function(t,e,n){return B(t,e,'read from private field'),n?n.call(t):e.get(t)},k=function(t,e,n,r){return B(t,e,'write to private field'),r?r.call(t,n):e.set(t,n),n},x=function(t,e,n){return B(t,e,'access private method'),n},Yt=t(function(){G=['bold-header','format-leakage','fostered-content','h1','illegal-attr','insecure-style','invalid-gallery','invalid-imagemap','invalid-invoke','invalid-isbn','lonely-apos','lonely-bracket','lonely-http','nested-link','no-arg','no-duplicate','no-ignored','obsolete-attr','obsolete-tag','parsing-order','pipe-like','table-layout','tag-like','unbalanced-header','unclosed-comment','unclosed-quote','unclosed-table','unescaped','unknown-page','unmatched-tag','unterminated-url','url-encoding','var-anchor','void-ext']}),i=t(function(){n=String.raw(__makeTemplateObject(['[^[]<>\"\\0-\u001fp{Zs}�]'],['[^[\\\\]<>\"\\\\0-\\\\x1F\\\\x7F\\\\p{Zs}\\\\uFFFD]'])),U=String.raw(__makeTemplateObject(['(?:[[da-f:.]+]|',')'],['(?:\\\\[[\\\\da-f:.]+\\\\]|',')']),n),D=String.raw(__makeTemplateObject(['(?:','|\\0d+[c!~])*'],['(?:','|\\\\0\\\\d+[c!~]\\\\x7F)*']),n),V=(n=function(e,n){return function(t){return t.replace(e,n)}})(/[\\0\\x7F]|\\r$/gmu,''),C=n(/\\0\\d+c\\x7F/gu,''),H=n(/[\\\\{}()|.?*+^$[\\]]/gu,String.raw(__makeTemplateObject(['$&'],['\\\\$&']))),Z=function(t,e){return void 0===e&&(e=''),t.map(function(t){return'string'==typeof t?t:t.text()}).join(e)},X={lt:'<',gt:'>',lbrack:'[',rbrack:']',lbrace:'{',rbrace:'}'},Q=n(/&(?:#(\\d+|x[\\da-fA-F]+)|([lLgG][tT]|[lr]brac[ke]));/gu,function(t,e,n){return e?String.fromCodePoint(+((/^x/iu.test(e)?'0':'')+e)):X[n.toLowerCase()]}),J=n(/\\n/gu,String.raw(__makeTemplateObject(['\\n'],['\\\\n']))),K={'&':'amp','<':'lt','>':'gt'},Y=n(/[&<>]/gu,function(t){return'&'.concat(K[t],';')}),tt=function(t,e){var n=(e=void 0===e?{}:e).pre,r=e.post,r=void 0===r?'':r,e=e.sep,e=void 0===e?'':e;return(void 0===n?'':n)+t.map(function(t){return t.print()}).join(e)+r}}),te=(et=function(t,e){e.exports={ext:[],html:[['b','bdi','del','i','ins','u','font','big','small','sub','sup','h1','h2','h3','h4','h5','h6','cite','code','em','s','strike','strong','tt','var','div','center','blockquote','ol','ul','dl','table','caption','pre','ruby','rb','rp','rt','rtc','p','span','abbr','dfn','kbd','samp','data','time','mark','tr','td','th','q','bdo'],['li','dt','dd'],['br','wbr','hr','meta','link']],namespaces:{},nsid:{file:6,category:14},parserFunction:[{'#language':'language','#special':'special','#speciale':'speciale','#tag':'tag','#formatdate':'formatdate','#dateformat':'formatdate','#invoke':'invoke','#while':'while','#dowhile':'dowhile','#loop':'loop','#forargs':'forargs','#fornumargs':'fornumargs','#if':'if','#ifeq':'ifeq','#switch':'switch','#ifexist':'ifexist','#ifexpr':'ifexpr','#iferror':'iferror','#time':'time','#timel':'timel','#expr':'expr','#rel2abs':'rel2abs','#titleparts':'titleparts','#categorytree':'categorytree','#urldecode':'urldecode','#choose':'choose','#var':'var','#varexists':'varexists','#var_final':'var_final','#vardefine':'vardefine','#vardefineecho':'vardefineecho','#widget':'widget','#regex':'regex','#related':'related','#cscore':'cscore'},['!','='],['msg','raw'],['subst','safesubst']],doubleUnderscore:[[],[]],protocol:'bitcoin:|ftp://|ftps://|geo:|git://|gopher://|http://|https://|irc://|ircs://|magnet:|mailto:|matrix:|mms://|news:|nntp://|redis://|sftp://|sip:|sips:|sms:|ssh://|svn://|tel:|telnet://|urn:|worldwind://|xmpp:',interwiki:[],img:{},redirection:['#redirect'],variants:[]}},function(){return nt||et((nt={exports:{}}).exports,nt),nt.exports}),o=t(function(){rt=te()}),u=t(function(){function t(t,e){b(this,r),v(this,'token'),v(this,'start'),this.token=t,this.start=e}Object.defineProperty(t.prototype,'top',{get:function(){return null==S(this,r)&&k(this,r,this.getPosition()),S(this,r).top},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'left',{get:function(){return null==S(this,r)&&k(this,r,this.getPosition()),S(this,r).left},enumerable:!1,configurable:!0}),t.prototype.getPosition=function(){return this.token.getRootNode().posFromIndex(this.start)},g=t,r=new WeakMap}),f=t(function(){u(),$(),m=(it=function(c){return function(t,e,n,r,i){void 0===i&&(i='error');var o=e.start,e=e instanceof g?e:new g(t,o),a=e.top,e=e.left,s=t.offsetHeight,l=t.offsetWidth,o=c(t,o,a,e),a=o.startIndex,e=o.startLine,o=o.startCol;return{rule:n,message:M.msg(r),severity:i,startIndex:a,endIndex:a+t.toString().length,startLine:e,endLine:e+s-1,startCol:o,endCol:1===s?o+l:l}}})(function(t,e,n,r){var i=t.getRelativeIndex(),t=t.parentNode.posFromIndex(i),o=t.top,t=t.left;return{startIndex:e+i,startLine:n+o,startCol:o?t:r+t}}),w=it(function(t,e,n,r){return{startIndex:e,startLine:n,startCol:r}})}),ee=t(function(){function t(){b(this,lt),v(this,'childNodes',[]),b(this,st)}ot=function(t){var t=t.split('\\n'),e=t.length;return{height:e,width:t[e-1].length}},at=function(t,r){return r.childNodes.slice(0,t).reduce(function(t,e,n){return t+e.toString().length+r.getGaps(n)},0)+r.getAttribute('padding')},Object.defineProperty(t.prototype,'firstChild',{get:function(){return this.childNodes[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'lastChild',{get:function(){return this.childNodes[this.childNodes.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'parentNode',{get:function(){return S(this,st)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'nextSibling',{get:function(){var t=nu", "ll==(t=this.parentNode)?void 0:t.childNodes;return t&&t[t.indexOf(this)+1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'previousSibling',{get:function(){var t=null==(t=this.parentNode)?void 0:t.childNodes;return t&&t[t.indexOf(this)-1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'offsetHeight',{get:function(){return x(this,lt,ct).call(this).height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'offsetWidth',{get:function(){return x(this,lt,ct).call(this).width},enumerable:!1,configurable:!0}),t.prototype.getAttribute=function(t){return'padding'===t?0:this[t]},t.prototype.setAttribute=function(t,e){'parentNode'===t?k(this,st,e):this[t]=e},t.prototype.getRootNode=function(){for(var t=this.parentNode;null!=t&&t.parentNode;)t=t.parentNode;return null!=t?t:this},t.prototype.posFromIndex=function(t){var e=String(this);if(t>=-e.length&&t<=e.length)return{top:(e=ot(e.slice(0,t))).height-1,left:e.width}},t.prototype.getGaps=function(t){return 0},t.prototype.getRelativeIndex=function(t){var e;return void 0===t?(e=this.parentNode)?at(e.childNodes.indexOf(this),e):0:at(t,this)},t.prototype.getAbsoluteIndex=function(){var t=this.parentNode;return t?t.getAbsoluteIndex()+this.getRelativeIndex():0},t.prototype.seal=function(t,e){Object.defineProperty(this,t,{enumerable:!e&&!!this[t],configurable:!0})},t.prototype.is=function(t){return this.type===t},ut=t,st=new WeakMap,lt=new WeakSet,ct=function(){return ot(String(this))}}),ne=t(function(){function t(){var t=e.apply(this,__spreadArray([],__read(arguments),!1))||this;return b(t,dt),t}var e;i(),F(),ee(),pt=function(t){var e=new Set(t.split(',').map(function(t){return t.trim()}));return function(t){t=t.type;return e.has(t)}},__extends(t,e=ut),Object.defineProperty(t.prototype,'length',{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),t.prototype.text=function(t){return Z(this.childNodes,t)},t.prototype.normalize=function(){for(var t=__spreadArray([],__read(this.childNodes),!1),e=t.length-1;0<=e;e--){var n=t[e],r=n.type,n=n.data;'text'!==r||this.getGaps(e-1)||''===n&&(r=e,t.splice(r,1))}this.setAttribute('childNodes',t)},t.prototype.removeAt=function(t){return So(this,t,1)[0]},t.prototype.insertAt=function(t,e){return void 0===e&&(e=this.length),So(this,e,0,[t]),t},t.prototype.closest=function(t){for(var e=pt(t),n=this.parentNode;n;){if(e(n))return n;n=n.parentNode}},t.prototype.querySelector=function(t){t=pt(t);return x(this,dt,ht).call(this,t)},t.prototype.querySelectorAll=function(t){t=pt(t);return x(this,dt,ft).call(this,t)},t.prototype.append=function(){for(var e,t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{for(var i=__values(n),o=i.next();!o.done;o=i.next()){var a=o.value;this.insertAt(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},t.prototype.replaceChildren=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this.length-1;0<=n;n--)this.removeAt(n);this.append.apply(this,__spreadArray([],__read(t),!1))},t.prototype.setText=function(t,e){void 0===e&&(e=0),e+=e<0?this.length:0;var e=this.childNodes[e],n=e.data;return e.replaceData(t),n},t.prototype.toString=function(e,t){return void 0===t&&(t=''),this.childNodes.map(function(t){return t.toString(e)}).join(t)},t.prototype.lint=function(t,e){for(var n=[],r=0,i=(t=void 0===t?this.getAbsoluteIndex():t)+this.getAttribute('padding');r<this.length;r++){var o=this.childNodes[r];n.push.apply(n,__spreadArray([],__read(o.lint(i,e)),!1)),i+=o.toString().length+this.getGaps(r)}return n},t.prototype.print=function(t){var e;return void 0===t&&(t={}),this.toString()?'<span class=\"wpb-'.concat(null!=(e=t.class)?e:this.type,'\">').concat(tt(this.childNodes,t),'</span>'):''},t.prototype.json=function(t,e){void 0===e&&(e=this.getAbsoluteIndex());for(var n=__assign(__assign({},this),{type:this.type,range:[e,e+this.toString().length],childNodes:[]}),r=0,i=e+this.getAttribute('padding');r<this.length;r++){var o=this.childNodes[r],a=o.toString().length;n.childNodes.push('text'===o.type?{data:o.data,range:[i,i+a]}:o.json(void 0,i)),i+=a+this.getGaps(r)}return n},gt=t,dt=new WeakSet,ht=function(t){var e,n,r;try{for(var i=__values(this.childNodes),o=i.next();!o.done;o=i.next()){var a=o.value;if('text'!==a.type){if(t(a))return a;var s=x(r=a,dt,ht).call(r,t);if(s)return s}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},ft=function(t){var e,n,r,i=[];try{for(var o=__values(this.childNodes),a=o.next();!a.done;a=o.next()){var s=a.value;'text'!==s.type&&(t(s)&&i.push(s),i.push.apply(i,__spreadArray([],__read(x(r=s,dt,ft).call(r,t)),!1)))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}}),re=t(function(){function t(t){var e=n.call(this)||this;return b(e,At),v(e,'data',''),Object.defineProperties(e,{childNodes:{enumerable:!1,configurable:!1},data:{value:t}}),e}var n;i(),$(),ee(),yt=String.raw(__makeTemplateObject(['<s*(?:/s*)?([a-z]w*)|{+|}+|[{2,}|[(?![^[]*?])|((?:^|])[^[]*?)]+'],['<\\\\s*(?:/\\\\s*)?([a-z]\\\\w*)|\\\\{+|\\\\}+|\\\\[{2,}|\\\\[(?![^[]*?\\\\])|((?:^|\\\\])[^[]*?)\\\\]+'])),vt=new RegExp(String.raw(__makeTemplateObject(['','|https?[:/]/+'],['','|https?[:/]/+']),yt),'giu'),xt=new RegExp(yt,'giu'),bt=new RegExp(String.raw(__makeTemplateObject(['^https?://','','.(?:gif|png|jpg|jpeg)$'],['^https?://','','\\\\.(?:gif|png|jpg|jpeg)$']),U,D),'iu'),mt={'[':/[[\\]]/u,'{':/[{}]/u,']':/[[\\]](?=[^[\\]]*$)/u,'}':/[{}](?=[^{}]*$)/u},_t={'<':'tag-like','[':'lonely-bracket','{':'lonely-bracket',']':'lonely-bracket','}':'lonely-bracket',h:'lonely-http'},wt=['html','head','style','title','body','a','audio','img','video','embed','iframe','object','canvas','script','col','colgroup','tbody','tfoot','thead','button','input','label','option','select','textarea'],__extends(t,n=ut),Object.defineProperty(t.prototype,'type',{get:function(){return'text'},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this.data},t.prototype.text=function(){return this.data},t.prototype.lint=function(t,e){var n;if(void 0===t&&(t=this.getAbsoluteIndex()),!1===e)return[];var r=this.data,i=this.parentNode,o=this.nextSibling,a=this.previousSibling;if(!i)throw new Error('An isolated text node cannot be linted!');var s=i.type,l=i.name,c=i.parentNode,u=!1;if('attr-value'===s){var p=c.type,d=c.name,h=c.tag;if('ext-attr'!==p)u=!0;else if('choose'===h&&('before'===d||'after'===d))return[]}if(-1===r.search(e=null==e?'free-ext-link'===s||'ext-link-url'===s||'image-parameter'===s&&'link'===l||u?xt:vt:e))return[];e.lastIndex=0;for(var f=[],g=null==o?void 0:o.type,y=null==o?void 0:o.name,v=null==a?void 0:a.type,x=this.getRootNode(),c=x.getAttribute('config'),l=c.ext,c=c.html,b=x.posFromIndex(t),m=b.top,_=b.left,w=new Set(['onlyinclude','noinclude','includeonly',l,c,wt].flat(2)),p=e.exec(r);p;p=e.exec(r)){var A=__read(p,3),d=A[1],h=A[2],A=p[0],S=p.index,k=(h&&']'!==h&&(S+=P=h.length,A=A.slice(P)),A[0]),j=A.length;if(!('<'===k&&!w.has(d.toLowerCase())||'['===k&&'ext-link-text'===s&&(/&(?:rbrack|#93|#x5[Dd];);/u.test(r.slice(S+1))||null!=o&&o.is('ext')&&'nowiki'===y&&null!=(O=o.innerText)&&O.includes(']')))){if(']'===k&&(S||1<j))e.lastIndex--;else if('h'===k&&0===S&&'ext-link-text'===s&&bt.test(r))continue;var O=t+S,I=O+j,C=x.toString(),N=C[I],C=C[O-1],N=1<j&&('<'!==k||/[\\s/>]/u.test(null!=N?N:''))&&(!u||'['!==k&&']'!==k)||'{'===k&&(N===k||'-'===C)||'}'===k&&(C===k||'-'===N)||'['===k&&(N===k||'ext-link-text'===s||'free-ext-link'===g&&!r.slice(S+1).trim())||']'===k&&(C===k||'free-ext-link'===v&&!r.slice(0,S).includes(']'))?'error':'warning',T='{'===k||'['===k;if('warning'==N&&(T||']'===k||'}'===k)){var P=mt[k],F=T?r.slice(S+1):r.slice(0,S);if('{'===k&&'}'===(null==(n=P.exec(F))?void 0:n[0])||'}'===k&&'{'===(null==(n=P.exec(F))?void 0:n[0]))continue;if(!F.includes(k)){for(var $=T?'nextSibling':'previousSibling',W=this[$];W&&('text'!==W.type||!P.test(W.data));)W=W[$];if(W&&P.exec(W.data)[0]!==k)continue}}F=r.slice(0,S).split('\\n'),T=F.length+m-1,S=F[F.length-1],S=1===F.length?_+S.length:S.length,A={rule:_t[k],message:M.msg('lonely \"$1\"','h'===k?A:k),severity:N,startIndex:O,endIndex:I,startLine:T,endLine:T,startCol:S,endCol:S+j};'<'===k?A.suggestions=[{desc:'escape',range:[O,O+1],text:'<'}]:'h'===k&&'ext-link-text'!==s&&'link-text'!==s&&/[\\p{L}\\d_]/u.test(C||'')?A.suggestions=[{desc:'whitespace',range:[O,O],text:' '}]:'['===k&&'ext-link-text'===s?(P=i.getAbsoluteIndex()+i.toString().length,A.suggestions=[{desc:'escape',range:[P,P+1],text:']'}]):']'===k&&'free-ext-link'===v&&'error'==N&&(P=t-a.toString().length,A.fix={range:[P,P],text:'['}),f.push(A)}}return f},t.prototype.replaceData=function(t){x(this,At,St).call(this,t)},t.prototype.print=function(){return Y(this.data)},kt=t,At=new WeakSet,St=function(t){this.setAttribute('data',t)}}),ie=t(function(){F(),jt=function(o,t){return void 0===o&&(o=!0),void 0===t&&(t=!0),function(t,e){__extends(i,n=t),i.prototype.text=function(){return''},i.prototype.lint=function(t){return o?[]:n.prototype.lint.call(this,t)};var n,r=i;function i(){return null!==n&&n.apply(this,arguments)||this}return jo(r,t),r}}}),oe=t(function(){function t(t,e,n,r,i,o){t=a.call(this,t,r,i,o)||this;return b(t,Ot),k(t,Ot,n),t}var a;P(),__extends(t,a=T),Object.defineProperty(t.prototype,'type',{get:function(){return S(this,Ot)},enumerable:!1,configurable:!0}),t.prototype.lint=function(t){return void 0===t&&(t=this.getAbsoluteIndex()),a.prototype.lint.call(this,t,!1)},It=t,Ot=new WeakMap}),ae=t(function(){function t(t,e,n,r,i){t=o.call(this,t,n,r,i)||this;return b(t,Ct),k(t,Ct,e),t}var o;P(),__extends(t,o=T),Object.defineProperty(t.prototype,'type',{get:function(){return S(this,Ct)},set:function(t){k(this,Ct,t)},enumerable:!1,configurable:!0}),_=t,Ct=new WeakMap}),se=t(function(){function t(t,e,n,r,i){void 0===n&&(n=M.getConfig()),void 0===i&&(i='|');var o=c.call(this,void 0,n,r=void 0===r?[]:r,{})||this;return b(o,Tt,!0),b(o,a),b(o,Pt),o.insertAt(new _(t,'link-target',n,r,{})),void 0!==e&&((t=new T(e,n,r,{})).type='link-text',t.setAttribute('stage',10),o.insertAt(t)),k(o,a,i),o}var c;f(),u(),o(),$(),P(),ae(),Nt=function(t){return'redir", "ect-target'===t||'link'===t},__extends(t,c=T),t.prototype.afterBuild=function(){k(this,Pt,this.getTitle()),S(this,a).includes('\\0')&&k(this,a,this.buildFromStr(S(this,a),0)),this.setAttribute('name',S(this,Pt).title),c.prototype.afterBuild.call(this)},t.prototype.setAttribute=function(t,e){'bracket'===t?k(this,Tt,e):'title'===t?k(this,Pt,e):c.prototype.setAttribute.call(this,t,e)},t.prototype.toString=function(t){t=c.prototype.toString.call(this,t,S(this,a));return S(this,Tt)?'[['.concat(t,']]'):t},t.prototype.text=function(){var t=c.prototype.text.call(this,'|');return S(this,Tt)?'[['.concat(t,']]'):t},t.prototype.getAttribute=function(t){return'title'===t?S(this,Pt):'padding'===t?2:c.prototype.getAttribute.call(this,t)},t.prototype.getGaps=function(t){return 0===t?S(this,a).length:1},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,e=c.prototype.lint.call(this,t,e),i=__read(this.childNodes,2),o=i[0],i=i[1],a=this.type,s=S(this,Pt),l=s.encoded,s=s.fragment,t=new g(this,t);return o.childNodes.some(function(t){return'template'===t.type})&&e.push(m(o,t,'unknown-page','template in an internal link target','warning')),l&&e.push(m(o,t,'url-encoding','unnecessary URL encoding in an internal link')),'link'!==a&&'category'!==a||(n=null==i?void 0:i.childNodes.find(function(t){return'text'===t.type&&t.data.includes('|')}))&&((r=m(i,t,'pipe-like','additional \"|\" in the link text','warning')).suggestions=[{desc:'escape',range:[r.startIndex+n.getRelativeIndex(),r.startIndex+n.getRelativeIndex()+n.data.length],text:n.data.replace(/\\|/gu,'|')}],e.push(r)),void 0===s||Nt(a)||(n=m(o,t,'no-ignored','useless fragment'),(r=o.childNodes.find(function(t){return'text'===t.type&&t.data.includes('#')}))&&(n.fix={range:[n.startIndex+r.getRelativeIndex()+r.data.indexOf('#'),n.endIndex],text:''}),e.push(n)),e},t.prototype.getTitle=function(t){return this.normalizeTitle(this.firstChild.toString(!0),0,t,!0,!0)},t.prototype.print=function(){return c.prototype.print.call(this,S(this,Tt)?{pre:'[[',post:']]',sep:S(this,a)}:{sep:S(this,a)})},Ft=t,Tt=new WeakMap,a=new WeakMap,Pt=new WeakMap}),le=t(function(){function t(t,e,n){return r.call(this,t=void 0===t?'':t,e,n)||this}var r;P(),__extends(t,r=T),Object.defineProperty(t.prototype,'innerText',{get:function(){return this.firstChild.data},enumerable:!1,configurable:!0}),$t=t}),ce=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;ie(),le(),Wt=[jt()],e=Mt=$t,__extends(t,e),Object.defineProperty(t.prototype,'type',{get:function(){return'noinclude'},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){return t?'':e.prototype.toString.call(this)},A=t,Mt=R(Mt),A=z(Mt,0,'NoincludeToken',Wt,A),E(Mt,1,A)}),ue=t(function(){function t(t,e,n,r){void 0===n&&(n=M.getConfig());var i=this,i=o.call(this,t,void 0,n,r=void 0===r?[]:r)||this;return void 0!==e&&i.insertAt(new A(e,n,r)),i}var o;f(),$(),se(),ce(),__extends(t,o=Ft),Object.defineProperty(t.prototype,'type',{get:function(){return'redirect-target'},enumerable:!1,configurable:!0}),t.prototype.getTitle=function(){return this.normalizeTitle(this.firstChild.toString(),0,!0,!0)},t.prototype.lint=function(t){void 0===t&&(t=this.getAbsoluteIndex());var e=o.prototype.lint.call(this,t,!1);return 2===this.length&&((t=m(this.lastChild,{start:t},'no-ignored','useless link text')).startIndex--,t.startCol--,t.fix={range:[t.startIndex,t.endIndex],text:''},e.push(t)),e},Lt=t}),pe=t(function(){function t(t,e,n,r,i,o,a){void 0===o&&(o=M.getConfig());var s=l.call(this,void 0,o,a=void 0===a?[]:a)||this,t=(b(s,Et),b(s,zt),k(s,Et,t),k(s,zt,i),new RegExp(String.raw(__makeTemplateObject(['^(?:',')s*(?::s*)?$'],['^(?:',')\\\\s*(?::\\\\s*)?$']),o.redirection.join('|')),'iu'));return s.append(new It(e,t,'redirect-syntax',o,a,{}),new Lt(n,null==r?void 0:r.slice(1),o,a)),s}var l;ie(),$(),P(),oe(),ue(),Rt=[jt(!1,!1)],l=Bt=T,__extends(t,l),Object.defineProperty(t.prototype,'type',{get:function(){return'redirect'},enumerable:!1,configurable:!0}),t.prototype.getAttribute=function(t){return'padding'===t?S(this,Et).length:l.prototype.getAttribute.call(this,t)},t.prototype.toString=function(t){return S(this,Et)+l.prototype.toString.call(this,t)+S(this,zt)},t.prototype.lint=function(t){return void 0===t&&(t=this.getAbsoluteIndex()),this.lastChild.lint(t+S(this,Et).length+this.firstChild.toString().length)},t.prototype.print=function(){return l.prototype.print.call(this,{pre:S(this,Et),post:S(this,zt)})},qt=t,Bt=R(Bt),Et=new WeakMap,zt=new WeakMap,qt=z(Bt,0,'RedirectToken',Rt,qt),E(Bt,1,qt)}),de={};e(de,{parseRedirect:function(){return he}});var he,fe,ge,ye,ve,xe,be,me,s,_e,we,Ae,Se,ke,je,Oe,Ie,Ce,Ne,Te,Pe,Fe,$e,We,h,j,Me,Le,Re,Ee,ze,Be,qe=t(function(){$(),pe(),he=function(t,e,n){var r=new RegExp(String.raw(__makeTemplateObject(['^(s*)((?:',')s*(?::s*)?)[[([^\\n|]]+)(|.*?)?]](s*)'],['^(\\\\s*)((?:',')\\\\s*(?::\\\\s*)?)\\\\[\\\\[([^\\\\n|\\\\]]+)(\\\\|.*?)?\\\\]\\\\](\\\\s*)']),e.redirection.join('|')),'iu').exec(t);return!(!r||!M.normalizeTitle(r[3],0,!1,e,!0,!0).valid)&&(t='\\0'.concat(n.length,'c').concat(t.slice(r[0].length)),new(qt.bind.apply(qt,__spreadArray(__spreadArray([void 0],__read(r.slice(1)),!1),[e,n],!1))),t)}}),Ge=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;P(),__extends(t,e=T),Object.defineProperty(t.prototype,'type',{get:function(){return'onlyinclude'},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){return'<onlyinclude>'.concat(e.prototype.toString.call(this,t),'</onlyinclude>')},t.prototype.getAttribute=function(t){return'padding'===t?13:'plain'===t||e.prototype.getAttribute.call(this,t)},t.prototype.print=function(){return e.prototype.print.call(this,{pre:'<span class=\"wpb-ext\"><onlyinclude></span>',post:'<span class=\"wpb-ext\"></onlyinclude></span>'})},fe=t}),Ue=t(function(){function t(t,e,n,r,i,o){void 0===o&&(o=[]);i=a.call(this,void 0,i)||this,b(i,ge),v(i,'closed'),v(i,'selfClosing'),i.setAttribute('name',t.toLowerCase()),k(i,ge,[t,r||t]),i.closed=''!==r,i.selfClosing=void 0===r,i.append(e,n),t='string'==typeof e?-1:o.indexOf(e);return o.splice(-1===t?1/0:t,0,i),i}var a;P(),__extends(t,a=T),Object.defineProperty(t.prototype,'innerText',{get:function(){return this.selfClosing?void 0:this.lastChild.text()},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){var e=this.selfClosing,n=this.firstChild,r=this.lastChild,i=__read(S(this,ge),2),o=i[0],i=i[1];return e?'<'.concat(o).concat(n.toString(t),'/>'):'<'.concat(o).concat(n.toString(t),'>').concat(r.toString(t)).concat(this.closed?'</'.concat(i,'>'):'')},t.prototype.text=function(){var t=__read(S(this,ge),2),e=t[0],t=t[1];return this.selfClosing?'<'.concat(e).concat(this.firstChild.text(),'/>'):'<'.concat(e).concat(a.prototype.text.call(this,'>')).concat(this.closed?'</'.concat(t,'>'):'')},t.prototype.getAttribute=function(t){return'padding'===t?S(this,ge)[0].length+1:a.prototype.getAttribute.call(this,t)},t.prototype.getGaps=function(){return 1},t.prototype.print=function(){var t=__read(S(this,ge),2),e=t[0],t=t[1];return a.prototype.print.call(this,this.selfClosing?{pre:'<'.concat(e),post:'/>'}:{pre:'<'.concat(e),sep:'>',post:this.closed?'</'.concat(t,'>'):''})},ye=t,ge=new WeakMap}),De=t(function(){function t(t,e,n,r,i,o){return a.call(this,t,e=void 0===e?'':e,null!=n?n:'',void 0===n||null!=r?r:'',i,o)||this}var a;f(),ie(),$(),Ue(),ve=[jt(!1)],a=xe=ye,__extends(t,a),Object.defineProperty(t.prototype,'type',{get:function(){return'include'},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){return t?'':a.prototype.toString.call(this)},t.prototype.lint=function(t){return void 0===t&&(t=this.getAbsoluteIndex()),this.closed?[]:((t=w(this,{start:t},'unclosed-comment',M.msg('unclosed $1','<'.concat(this.name,'>')))).suggestions=[{desc:'close',range:[t.endIndex,t.endIndex],text:'</'.concat(this.name,'>')}],[t])},be=t,xe=R(xe),be=z(xe,0,'IncludeToken',ve,be),E(xe,1,be)}),Ve=t(function(){function t(t,e,n,r,i,o,a,s){void 0===r&&(r=''),void 0===o&&(o=[]),void 0===a&&(a=M.getConfig());var l,c,u=this,p=new _(n,'attr-key',a,s=void 0===s?[]:s);return'title'===n||'img'===e&&'alt'===n?((c=new T(i,a,s,{})).type='attr-value',c.setAttribute('stage',10)):'gallery'===e&&'caption'===n||'choose'===e&&('before'===n||'after'===n)?(l=__assign(__assign({},a),{excludes:__spreadArray(__spreadArray([],__read(a.excludes),!1),['heading','html','table','hr','list'],!1)}),(c=new T(i,l,s,{})).type='attr-value',c.setAttribute('stage',1)):c=new _(i,'attr-value',a,s,{}),u=d.call(this,void 0,a,s)||this,b(u,$e),b(u,We),b(u,h),b(u,j),k(u,$e,t),u.append(p,c),k(u,h,r),k(u,j,__spreadArray([],__read(o),!1)),k(u,We,e),u.setAttribute('name',C(n).trim().toLowerCase()),u}var d;f(),u(),i(),o(),$(),P(),ae(),me=new Set(['id','class','style','lang','dir','title','tabindex','aria-describedby','aria-flowto','aria-hidden','aria-label','aria-labelledby','aria-level','aria-owns','role','about','property','resource','datatype','typeof','itemid','itemprop','itemref','itemscope','itemtype']),s=new Set(['align']),Ne=new Set(['cite']),_e=new Set(['cite','datetime']),we=new Set(['width']),Ae=new Set(['axis','align','bgcolor','height','width','valign']),Se=new Set(__spreadArray(__spreadArray([],__read(Ae),!1),['abbr','headers','scope','rowspan','colspan'],!1)),ke=new Set(['type']),je=new Set(['summary','align','bgcolor','cellpadding','cellspacing','frame','rules','width']),Oe=new Set(['clear']),Ie=new Set(['bgcolor','align','valign']),Ce={div:s,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,blockquote:Ne,q:Ne,p:s,br:Oe,pre:we,ins:_e,del:_e,ul:ke,ol:new Set(['type','start','reversed']),li:new Set(['type','value']),table:new Set(__spreadArray(__spreadArray([],__read(je),!1),['border'],!1)),caption:s,tr:Ie,td:Se,th:Se,img:new Set(['alt','src','width','height','srcset']),font:new Set(['size','color','face']),hr:we,data:new Set(['value']),time:new Set(['datetime']),meta:new Set(['itemprop','content']),link:new Set(['itemprop','href','title']),gallery:new Set(['mode','showfilename','caption','perrow','widths','heights','showthumbnails','type']),poem:new Set(['compact','align']),categorytree:new Set(['align','hideroot','onlyroot','depth','mode','hideprefix','namespaces','showcount','notrans", "lations']),combooption:new Set(['name','for','inline','align'])},Ne=new Set,Te={nowiki:Ne,indicator:new Set(['name']),langconvert:new Set(['from','to']),ref:new Set(['group','name','extends','follow','dir']),references:new Set(['group','responsive']),charinsert:new Set(['label']),choose:new Set(['uncached','before','after']),option:new Set(['weight']),imagemap:Ne,inputbox:Ne,templatestyles:new Set(['src','wrapper']),dynamicpagelist:Ne,poll:new Set(['id','show-results-before-voting']),sm2:ke,flashmp3:ke,score:new Set(['line_width_inches','lang','override_midi','raw','note-language','override_audio','override_ogg','sound','vorbis']),seo:new Set(['title','title_mode','title_separator','keywords','description','robots','google_bot','image','image_width','image_height','image_alt','type','site_name','locale','section','author','published_time','twitter_site']),tab:new Set(['nested','name','index','class','block','inline','openname','closename','collapsed','dropdown','style','bgcolor','container','id','title']),tabs:new Set(['plain','class','container','id','title','style']),combobox:new Set(['placeholder','value','id','class','text','dropdown','style'])},Pe=/expression|(?:accelerator|-o-link(?:-source)?|-o-replace)\\s*:|(?:url|image(?:-set)?)\\s*\\(|attr\\s*\\([^)]+[\\s,]url/u,Fe={table:je,td:new Set(__spreadArray(__spreadArray([],__read(Ae),!1),['scope'],!1)),th:Ae,br:Oe,caption:s,div:s,hr:we,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,li:ke,p:s,pre:we,tr:Ie,ul:ke},__extends(t,d=T),Object.defineProperty(t.prototype,'type',{get:function(){return S(this,$e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'tag',{get:function(){return S(this,We)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'balanced',{get:function(){return!S(this,h)||S(this,j)[0]===S(this,j)[1]},enumerable:!1,configurable:!0}),t.prototype.afterBuild=function(){S(this,h).includes('\\0')&&k(this,h,this.buildFromStr(S(this,h),0)),this.parentNode&&k(this,We,this.parentNode.name),this.setAttribute('name',this.firstChild.toString(!0).trim().toLowerCase()),d.prototype.afterBuild.call(this)},t.prototype.toString=function(t){var e=__read(S(this,j),2),n=e[0],n=void 0===n?'':n,e=e[1],e=void 0===e?'':e;return S(this,h)?d.prototype.toString.call(this,t,S(this,h)+n)+e:this.firstChild.toString(t)},t.prototype.text=function(){return S(this,h)?''.concat(d.prototype.text.call(this,''.concat(S(this,h).trim(),'\"')),'\"'):this.firstChild.text()},t.prototype.getGaps=function(){var t;return S(this,h)?S(this,h).length+(null!=(t=null==(t=S(this,j)[0])?void 0:t.length)?t:0):0},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,e=d.prototype.lint.call(this,t,e),r=this,i=r.balanced,o=r.firstChild,a=r.lastChild,s=r.type,l=r.name,r=r.tag,c=this.getValue(),u=new g(this,t),i=(i||((n=m(a,u,'unclosed-quote',M.msg('unclosed $1','quotes'),'warning')).startIndex--,n.startCol--,i={range:[n.endIndex,n.endIndex],text:S(this,j)[0]},a.childNodes.some(function(t){var e=t.type,t=t.data;return'text'===e&&/\\s/u.test(t)})?n.suggestions=[__assign({desc:'close'},i)]:n.fix=i,e.push(n)),Te[r]);return i&&!i.has(l)||!(('ext-attr'===s?!(r in Ce):/\\{\\{[^{]+\\}\\}/u.test(l))||null!=(i=Ce[r])&&i.has(l)||/^(?:xmlns:[\\w:.-]+|data-[^:]*)$/u.test(l)||'meta'!==r&&'link'!==r&&me.has(l))?e.push(m(o,u,'illegal-attr','illegal attribute name')):null!=(s=Fe[r])&&s.has(l)?e.push(m(o,u,'obsolete-attr','obsolete attribute','warning')):'style'===l&&'string'==typeof c&&Pe.test(c)?e.push(m(a,u,'insecure-style','insecure style')):'tabindex'===l&&'string'==typeof c&&'0'!==c&&((n=m(a,u,'illegal-attr','nonzero tabindex')).suggestions=[{desc:'remove',range:[t,n.endIndex],text:''},{desc:'0 tabindex',range:[n.startIndex,n.endIndex],text:'0'}],e.push(n)),e},t.prototype.getValue=function(){return S(this,h)?this.lastChild.text().trim():'ext-attr'===this.type||''},t.prototype.print=function(){var t=__read(S(this,j),2),e=t[0],e=void 0===e?'':e,t=t[1],t=void 0===t?'':t;return S(this,h)?d.prototype.print.call(this,{sep:Y(S(this,h))+e,post:t}):d.prototype.print.call(this)},Me=t,$e=new WeakMap,We=new WeakMap,h=new WeakMap,j=new WeakMap}),He=t(function(){function t(t,e,n,r,i){void 0===r&&(r=M.getConfig()),void 0===i&&(i=[]);var o=x.call(this,void 0,r,i,{})||this;if(b(o,ze),k(o,ze,e),o.setAttribute('name',n),t){Le.lastIndex=0;for(var a='',s=Le.exec(t),l=0,c=function(){a&&(x.prototype.insertAt.call(o,new _(a,Ee(e),r,i,{})),a='')};s;){var u=s.index,p=s[0],d=s[1],h=s[2],f=s[3],g=s[4],y=s[5],v=s[6];a+=t.slice(l,u),/^(?:[\\w:]|\\0\\d+[t!~{}+-]\\x7F)(?:[\\w:.-]|\\0\\d+[t!~{}+-]\\x7F)*$/u.test(C(d).trim())?(u=null!=g?g:v,g=[f,y],v=new Me(Re(e),n,d,h,u,g,r,i),c(),x.prototype.insertAt.call(o,v)):a+=p,l=Le.lastIndex,s=Le.exec(t)}a+=t.slice(l),c()}return o}var x;f(),u(),i(),$(),P(),ae(),Ve(),Le=/([^\\s/](?:(?!\\0\\d+~\\x7F)[^\\s/=])*)(?:((?:\\s(?:\\s|\\0\\d+c\\x7F)*)?(?:=|\\0\\d+~\\x7F)(?:\\s|\\0\\d+c\\x7F)*)(?:([\"'])(.*?)(\\3|$)|(\\S*)))?/gsu,Re=function(t){return t.slice(0,-1)},Ee=function(t){return''.concat(Re(t),'-dirty')},__extends(t,x=T),Object.defineProperty(t.prototype,'type',{get:function(){return S(this,ze)},enumerable:!1,configurable:!0}),t.prototype.afterBuild=function(){var t=this.parentNode;'td'===(null==t?void 0:t.type)&&'caption'===t.subtype&&this.setAttribute('name','caption'),x.prototype.afterBuild.call(this)},t.prototype.getAttrTokens=function(e){return this.childNodes.filter(function(t){return t instanceof Me&&(!e||t.name===e.toLowerCase().trim())})},t.prototype.getAttrToken=function(t){t=this.getAttrTokens(t);return t[t.length-1]},t.prototype.getAttr=function(t){return null==(t=this.getAttrToken(t))?void 0:t.getValue()},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i=x.prototype.lint.call(this,t,e),e=this.parentNode,o=this.length,a=this.childNodes,s=new Map,l=new Set,c=new g(this,t);'html'===(null==e?void 0:e.type)&&e.closing&&this.text().trim()&&((u=w(this,c,'no-ignored','attributes of a closing tag')).fix={range:[t,u.endIndex],text:''},i.push(u));for(var u=0;u<o;u++){var p,d=a[u];d instanceof _&&d.text().trim()?((p=m(d,c,'no-ignored','containing invalid attribute')).suggestions=[{desc:'remove',range:[p.startIndex,p.endIndex],text:' '}],i.push(p)):d instanceof Me&&(p=d.name,s.has(p)?(l.add(p),s.get(p).push(d)):s.set(p,[d]))}if(0<l.size)try{for(var h=__values(l),f=h.next();!f.done;f=h.next())!function(e){i.push.apply(i,__spreadArray([],__read(s.get(e).map(function(t){return m(t,c,'no-duplicate',M.msg('duplicated $1 attribute',e))})),!1))}(u=f.value)}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}return i},t.prototype.print=function(){return this.toString()?'<span class=\"wpb-'.concat(this.type,'\">').concat(this.childNodes.map(function(t){return t.print(t instanceof _?{class:'attr-dirty'}:void 0)}).join(''),'</span>'):''},Be=t,ze=new WeakMap}),Ze={};e(Ze,{PreToken:function(){return Xe}});var Xe,Qe=t(function(){function t(t,e,n){void 0===e&&(e=M.getConfig()),void 0===n&&(n=[]);var r=this;if(t){for(var i='<nowiki>',o='</nowiki>',a=i.length,s=t.indexOf(i),l=t.indexOf(o,s+a),c='';-1!==s&&-1!==l;)new A(i,e,n),new A(o,e,n),c+=''.concat(t.slice(0,s),'\\0').concat(n.length-1,'c').concat(t.slice(s+a,l),'\\0').concat(n.length,'c'),s=(t=t.slice(l+a+1)).indexOf(i),l=t.indexOf(o,s+a);t=c+t}return(r=u.call(this,t,e,n,{})||this).setAttribute('stage',10),r}var u;o(),$(),P(),ce(),__extends(t,u=T),Object.defineProperty(t.prototype,'type',{get:function(){return'ext-inner'},enumerable:!1,configurable:!0}),t.prototype.getAttribute=function(t){return'plain'===t||u.prototype.getAttribute.call(this,t)},t.prototype.lint=function(t){return void 0===t&&(t=this.getAbsoluteIndex()),u.prototype.lint.call(this,t,/<\\s*\\/\\s*(pre)\\b/giu)},Xe=t}),Je={};e(Je,{ParamTagToken:function(){return Ke}});var Ke,Ye,tn,en,nn,rn,on,an,sn,ln,cn,un,pn,dn,hn,fn,gn,yn,vn,xn=t(function(){function t(t,e,n,r){void 0===e&&(e=M.getConfig()),void 0===n&&(n=[]),void 0===r&&(r={});var i,r=this,r=o.call(this,void 0,e,n,{})||this;return t&&(i=_,r.append.apply(r,__spreadArray([],__read(t.split('\\n').map(function(t){return new i(t,'param-line',e,n,{})})),!1))),r}var o;f(),u(),$(),P(),ae(),__extends(t,o=T),Object.defineProperty(t.prototype,'type',{get:function(){return'ext-inner'},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){return o.prototype.toString.call(this,t,'\\n')},t.prototype.text=function(){return o.prototype.text.call(this,'\\n')},t.prototype.getGaps=function(){return 1},t.prototype.lint=function(t){var e=this,n=(void 0===t&&(t=this.getAbsoluteIndex()),new g(this,t));return this.childNodes.filter(function(t){var e=t.childNodes,n=e.findIndex(function(t){return'text'!==t.type}),e=(0<=n?e.slice(0,n).map(String).join(''):t.toString()).trim();return e&&!(0<=n?/^[a-z]+(?:\\[\\])?\\s*(?:=|$)/iu:/^[a-z]+(?:\\[\\])?\\s*=/iu).test(e)}).map(function(t){t=m(t,n,'no-ignored',M.msg('invalid parameter of <$1>',e.name));return t.suggestions=[{desc:'remove',range:[t.startIndex,t.endIndex],text:''}],t})},t.prototype.print=function(){return o.prototype.print.call(this,{sep:'\\n'})},Ke=t}),bn=t(function(){function t(t,e,n,r){void 0===n&&(n=M.getConfig());var i=l.call(this,void 0,n,r=void 0===r?[]:r)||this,t=(b(i,tn),b(i,Ye),k(i,Ye,t),new T(e[0],n,r)),e=(t.type='heading-title',t.setAttribute('stage',2),new It(e[1],/^[^\\S\\n]*$/u,'heading-trail',n,r,{}));return i.append(t,e),i}var l;f(),u(),F(),$(),P(),oe(),__extends(t,l=T),Object.defineProperty(t.prototype,'type',{get:function(){return'heading'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'level',{get:function(){return S(this,Ye)},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){var e=S(this,tn,en);return e+this.firstChild.toString(t)+e+this.lastChild.toString(t)},t.prototype.text=function(){var t=S(this,tn,en);return t+this.firstChild.text()+t},t.prototype.getAttribute=function(t){return'padding'===t?this.level:l.prototype.getAttribute.call(this,t)},t.prototype.getGaps=function(){return this.level},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var e=l.prototype.lint.call(this,t,e),n=this.firstChild,r=this.level,i=n.toString(),o=n.childNodes.filter(Ao('quote')),a=o.filter(function(t){return t.bold}),o=o.filter(function(t){", "return t.italic}),s=new g(this,t);return 1===this.level&&e.push(m(n,s,'h1','<h1>')),(i.startsWith('=')||i.endsWith('='))&&e.push(m(n,s,'unbalanced-header',M.msg('unbalanced $1 in a section header','\"=\"'))),this.closest('html-attrs, table-attrs')&&e.push(w(this,s,'parsing-order','section header in a HTML tag')),a.length%2&&e.push(m(a[a.length-1],__assign(__assign({},s),{start:t+r,left:s.left+r}),'format-leakage',M.msg('unbalanced $1 in a section header','bold apostrophes'))),o.length%2&&e.push(m(o[o.length-1],{start:t+r},'format-leakage',M.msg('unbalanced $1 in a section header','italic apostrophes'))),e},t.prototype.print=function(){var t=S(this,tn,en);return l.prototype.print.call(this,{pre:t,sep:t})},t.prototype.json=function(){var t=l.prototype.json.call(this);return t.level=this.level,t},nn=t,Ye=new WeakMap,tn=new WeakSet,en=function(){return'='.repeat(this.level)}}),mn=t(function(){function t(t,e,n,r){void 0===n&&(n=M.getConfig());var i=o.call(this,void 0,n,r=void 0===r?[]:r)||this,t=new T('number'==typeof t?void 0:t,n,r,{}),e=new T(e,n,r);return t.type='parameter-key',t.setAttribute('stage',2),e.type='parameter-value',e.setAttribute('stage',2),i.append(t,e),i}var o;i(),f(),$(),P(),rn=new RegExp('https?://'.concat(U).concat(D,'$'),'iu'),__extends(t,o=T),Object.defineProperty(t.prototype,'type',{get:function(){return'parameter'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'anon',{get:function(){return 0===this.firstChild.length},enumerable:!1,configurable:!0}),t.prototype.trimName=function(t,e){void 0===e&&(e=!0);e=('string'==typeof t?t:t.toString(!0)).replace(/^[ \\t\\n\\0\\v]+|([^ \\t\\n\\0\\v])[ \\t\\n\\0\\v]+$/gu,'$1');return this.setAttribute('name',e),e},t.prototype.afterBuild=function(){var t,e;this.anon||(t=this.parentNode,e=this.firstChild,e=this.trimName(e),t&&t.getArgs(e,!1,!1).add(this)),o.prototype.afterBuild.call(this)},t.prototype.toString=function(t){return this.anon?this.lastChild.toString(t):o.prototype.toString.call(this,t,'=')},t.prototype.text=function(){return this.anon?this.lastChild.text():o.prototype.text.call(this,'=')},t.prototype.getGaps=function(){return this.anon?0:1},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var e=o.prototype.lint.call(this,t,e),n=this.firstChild,r=null==(r=rn.exec(n.text()))?void 0:r[0];return r&&new URL(r).search&&((r=m(n,{start:t},'unescaped','unescaped query string in an anonymous parameter')).startIndex=r.endIndex,r.startLine=r.endLine,r.startCol=r.endCol,r.endIndex++,r.endCol++,r.fix={range:[r.startIndex,r.endIndex],text:'{{=}}'},e.push(r)),e},t.prototype.print=function(){return o.prototype.print.call(this,{sep:this.anon?'':'='})},t.prototype.json=function(){var t=o.prototype.json.call(this);return t.anon=this.anon,t},on=t}),_n=t(function(){function t(t,e,n,r){void 0===n&&(n=M.getConfig());var i=y.call(this,void 0,n,r=void 0===r?[]:r,{})||this,o=(b(i,un),v(i,'modifier',''),b(i,sn,'template'),b(i,ln,!1),b(i,cn,new Map),__read(n.parserFunction,2)),a=o[0],o=o[1],s=null==(s=/^(?:\\s|\\0\\d+c\\x7F)*\\0\\d+s\\x7F/u.exec(t))?void 0:s[0],s=(s?(i.setAttribute('modifier',s),t=t.slice(s.length)):t.includes(':')&&(c=(s=__read(t.split(':')))[0],u=s.slice(1),p=__read(/^(?:\\s|\\0\\d+c\\x7F)*/u.exec(null!=(s=u[0])?s:''),1)[0],i.setModifier(''.concat(c,':').concat(p)))&&(t=u.join(':').slice(p.length)),t.includes(':'));if(s||0===e.length&&!S(i,ln)){var l=__read(t.split(':')),c=l[0],u=l.slice(1),l=(p=C(c))[0<u.length?'trimStart':'trim'](),p=l.toLowerCase(),a=a[p],o=o.includes(l);if(o||an.has(a)||s&&a){i.setAttribute('name',null!=a?a:p),k(i,sn,'magic-word');s=new RegExp(String.raw(__makeTemplateObject(['^s*','s*$'],['^\\\\s*','\\\\s*$']),l),o?'u':'iu'),a=new It(c,s,'magic-word-name',n,r,{});if(y.prototype.insertAt.call(i,a),0<u.length&&e.unshift([u.join(':')]),'invoke'===i.name)for(var d=0;d<2;d++){var h=e.shift();if(!h)break;h=new _(h.join('='),'invoke-'.concat(d?'function':'module'),n,r);y.prototype.insertAt.call(i,h)}}}if('template'===i.type){c=C(t).trim();if(!i.normalizeTitle(c,10,!0).valid)throw r.pop(),new SyntaxError('Invalid template name');u=new _(t,'template-name',n,r,{});y.prototype.insertAt.call(i,u)}for(var f=i.isTemplate(),g=1,c=0;c<e.length;c++){u=e[c];f||'switch'===i.name&&0<c||(u[0]=u.join('='),u.length=1),1===u.length&&(u.unshift(g),g++),i.insertAt(new(on.bind.apply(on,__spreadArray(__spreadArray([void 0],__read(u),!1),[n,r],!1))))}return i.seal('modifier'),i}var y;i(),f(),u(),F(),o(),$(),P(),mn(),ae(),oe(),an=new Set(['pageid','articlepath','server','servername','scriptpath','stylepath']),__extends(t,y=T),Object.defineProperty(t.prototype,'type',{get:function(){return S(this,sn)},enumerable:!1,configurable:!0}),t.prototype.setModifier=function(t){var e=__read(this.getAttribute('config').parserFunction,4),n=e[2],e=e[3],r=C(t).trim();return!(t&&!r.endsWith(':')||(r=r.slice(0,-1).toLowerCase(),n=n.includes(r),e=e.includes(r),!(S(this,ln)&&n||!S(this,ln)&&(e||''===t)||(wo.running||1<this.length)&&(n||e||''===t)))||(this.setAttribute('modifier',t),k(this,ln,n),!t))},t.prototype.isTemplate=function(){return'template'===this.type||'invoke'===this.name},t.prototype.afterBuild=function(){this.modifier.includes('\\0')&&this.setAttribute('modifier',this.buildFromStr(this.modifier,0)),y.prototype.afterBuild.call(this)},t.prototype.toString=function(e){return'{{'.concat(this.modifier).concat('magic-word'===this.type?''.concat(this.firstChild.toString(e)).concat(1===this.length?'':':').concat(this.childNodes.slice(1).map(function(t){return t.toString(e)}).join('|')):y.prototype.toString.call(this,e,'|'),'}}')},t.prototype.text=function(){var t=this,e=t.childNodes,n=t.length,r=t.firstChild,i=t.modifier,o=t.type,t=t.name;return'magic-word'===o&&'vardefine'===t?'':'{{'.concat(i).concat('magic-word'===o?r.text()+(1===n?'':':')+Z(e.slice(1),'|'):y.prototype.text.call(this,'|'),'}}')},t.prototype.getAttribute=function(t){return'padding'!==t?y.prototype.getAttribute.call(this,t):this.modifier.length+2},t.prototype.getGaps=function(){return 1},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i,o,e=y.prototype.lint.call(this,t,e);return this.isTemplate()&&(i=this.type,o=this.childNodes,n=this.length,r=new g(this,t),(t='magic-word'===i)&&!x(this,un,pn).call(this).valid?e.push(m(o[1],r,'invalid-invoke','illegal module name')):(o=(i=o[t?1:0]).childNodes.find(function(t){return'text'===t.type&&t.data.includes('#')}))&&((i=m(i,r,'no-ignored','useless fragment')).fix={range:[i.startIndex+o.getRelativeIndex()+o.data.indexOf('#'),i.endIndex],text:''},e.push(i)),t&&2===n?e.push(w(this,r,'invalid-invoke','missing module function')):0<(o=this.getDuplicatedArgs().filter(function(t){return!__read(t,2)[1][0].querySelector('ext')})).length&&e.push.apply(e,__spreadArray([],__read(o.flatMap(function(t){return __read(t,2)[1]}).map(function(t){return m(t,r,'no-duplicate','duplicated parameter')})),!1))),e},t.prototype.insertAt=function(t,e){return void 0===e&&(e=this.length),y.prototype.insertAt.call(this,t,e),t.anon?x(this,un,dn).call(this,t):t.name&&this.getArgs(t.name,!1,!1).add(t),t},t.prototype.getAllArgs=function(){return this.childNodes.filter(Ao('parameter'))},t.prototype.getAnonArgs=function(){return this.getAllArgs().filter(function(t){return t.anon})},t.prototype.getArgs=function(t,e,n){void 0===n&&(n=!0);var r,i=String(t).replace(/^[ \\t\\n\\0\\v]+|([^ \\t\\n\\0\\v])[ \\t\\n\\0\\v]+$/gu,'$1');return S(this,cn).has(i)?r=S(this,cn).get(i):(r=new Set(this.getAllArgs().filter(function(t){t=t.name;return i===t})),S(this,cn).set(i,r)),r},t.prototype.getDuplicatedArgs=function(){return __spreadArray([],__read(S(this,cn)),!1).filter(function(t){return 1<__read(t,2)[1].size}).map(function(t){var t=__read(t,2),e=t[0],t=t[1];return[e,__spreadArray([],__read(t),!1)]})},t.prototype.getPossibleValues=function(){var t,e=this.type,n=this.name,r=this.childNodes;if('template'===e)throw new Error('TranscludeToken.getPossibleValues method is only for specific magic words!');switch(n){case'if':case'ifexist':case'ifexpr':case'iferror':t=2;break;case'ifeq':t=3;break;default:throw new Error('TranscludeToken.getPossibleValues method is only for specific magic words!')}for(var i=r.slice(t,t+2).map(function(t){return __read(t.childNodes,2)[1]}),o=0;o<i.length;){var a=i[o].childNodes.filter(function(t){return t.text().trim()}),s=a.length,a=a[0];if(0===s)i.splice(o,1);else if(1<s||'magic-word'!==a.type)o++;else try{var l=a.getPossibleValues();i.splice.apply(i,__spreadArray([o,1],__read(l),!1)),o+=l.length}catch(l){o++}}return i},t.prototype.print=function(){var t=this,e=t.childNodes,n=t.length,r=t.firstChild,i=t.modifier,t=t.type;return'<span class=\"wpb-'.concat(t,'\">{{').concat(Y(i)).concat('magic-word'===t?r.print()+(1===n?'':':')+tt(e.slice(1),{sep:'|'}):tt(e,{sep:'|'}),'}}</span>')},hn=t,sn=new WeakMap,ln=new WeakMap,cn=new WeakMap,un=new WeakSet,pn=function(){var t='template'===this.type,e=this.childNodes[t?0:1];return this.normalizeTitle(e.toString(!0),t?10:828)},dn=function(t){for(var e=this.getAnonArgs(),n='number'!=typeof t?e.indexOf(t):t-1;n<e.length;n++){var r=e[n],i=r.name,o=String(n+1);i!==o&&(r.setAttribute('name',o),this.getArgs(o,!1,!1).add(r))}}}),wn=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;ie(),P(),fn=[jt()],e=gn=T,__extends(t,e),Object.defineProperty(t.prototype,'type',{get:function(){return'hidden'},enumerable:!1,configurable:!0}),yn=t,gn=R(gn),yn=z(gn,0,'HiddenToken',fn,yn),E(gn,1,yn)}),An=t(function(){function t(t,e,n){void 0===e&&(e=M.getConfig());for(var r,i=a.call(this,void 0,e,n=void 0===n?[]:n,{})||this,o=0;o<t.length;o++)0===o?r=new _(t[o],'arg-name',e,n,{}):1<o?r=new yn(t[o],e,n):((r=new T(t[o],e,n)).type='arg-default',r.setAttribute('stage',2)),a.prototype.insertAt.call(i,r);return i}var a;i(),f(),u(),$(),P(),ae(),wn(),__extends(t,a=T),Object.defineProperty(t.prototype,'type',{get:function(){return'arg'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'default',{get:function(){var t;return null!=(t=null==(t=this.childNodes[1])?void 0:t.text())&&t},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){return'{{{'.concat(a.prototype.toString.call(this,t,'|'),'}}}')},t.prototype.text=function(){return'{{{'.concat", "(Z(this.childNodes.slice(0,2),'|'),'}}}')},t.prototype.getAttribute=function(t){return'padding'===t?3:a.prototype.getAttribute.call(this,t)},t.prototype.getGaps=function(){return 1},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i=__read(this.childNodes),o=i[0],a=i[1],i=i.slice(2);return this.getAttribute('include')?(n=o.lint(t+3,e),a&&n.push.apply(n,__spreadArray([],__read(a.lint(t+4+o.toString().length,e)),!1)),0<i.length&&(r=new g(this,t),n.push.apply(n,__spreadArray([],__read(i.map(function(t){t=m(t,r,'no-ignored','invisible content inside triple braces');return t.startIndex--,t.startCol--,t.suggestions=[{desc:'remove',range:[t.startIndex,t.endIndex],text:''},{desc:'escape',range:[t.startIndex,t.startIndex+1],text:'{{!}}'}],t})),!1))),n):(o=w(this,{start:t},'no-arg','unexpected template argument'),a&&(o.fix={range:[t,o.endIndex],text:a.text()}),[o])},t.prototype.print=function(){return a.prototype.print.call(this,{pre:'{{{',post:'}}}',sep:'|'})},t.prototype.json=function(){var t=a.prototype.json.call(this);return t.default=this.default,t},vn=t}),Sn={};e(Sn,{parseBraces:function(){return In}});var kn,jn,On,In,Cn=t(function(){i(),bn(),_n(),An(),kn={'=':'\\n','{':String.raw(__makeTemplateObject(['}{2,}||'],['\\\\}{2,}|\\\\|'])),'-':String.raw(__makeTemplateObject(['}-'],['\\\\}-'])),'[':String.raw(__makeTemplateObject([']]'],['\\\\]\\\\]']))},jn=new Map([['!','!'],['!!','+'],['(!','{'],['!)','}'],['!-','-'],['=','~']]),On=new RegExp(String.raw(__makeTemplateObject(['{{s*(',')s*}}(?!})'],['\\\\{\\\\{\\\\s*(',')\\\\s*\\\\}\\\\}(?!\\\\})']),__spreadArray([],__read(jn.keys()),!1).map(H).join('|')),'gu'),In=function(g,y,v){for(var t,e,x,b,m,_=String.raw(__makeTemplateObject(['','[[|-{(?!{)'],['','\\\\[\\\\[|-\\\\{(?!\\\\{)']),null!=(t=y.excludes)&&t.includes('heading')?'':String.raw(__makeTemplateObject(['^(\\0d+c)*={1,6}|'],['^(\\\\0\\\\d+c\\\\x7F)*={1,6}|']))),w=String.raw(__makeTemplateObject(['|{{2,}'],['|\\\\{{2,}'])),A=__read(y.parserFunction,4)[3],S=[],k=(g=g.replace(On,function(t,e){return new hn(t.slice(2,-2),[],y,v),'\\0'.concat(v.length-2).concat(jn.get(e),'')})).lastIndexOf('}}')-g.length,j=k+g.length!==-1,O=new RegExp(_+(j?w:''),'gmu'),I=O.exec(g),n=function(){function t(t){a[a.length-1].push(t.slice(l,r))}null!=I&&I[1]&&(u=__read(I,2)[1].length,I[0]=I[0].slice(u),I.index+=u);var e=null!=I?I:{0:'\\n',index:g.length},n=e[0],r=e.index,e=null!=(x=S.pop())?x:{},i=e[0],o=e.index,a=e.parts,s=e.findEqual,l=e.pos,s='='===n&&s;if(']]'===n||'}-'===n)m=r+2;else if('\\n'===n){m=r+1;var c=null!=(x=S[S.length-1])?x:{},u=c.pos,c=c.findEqual;(void 0===u||c||''!==C(g.slice(u,o)))&&(p=/^(={1,6})(.+)\\1((?:\\s|\\0\\d+c\\x7F)*)$/u.exec(g.slice(o,r)))&&(g=''.concat(g.slice(0,o),'\\0').concat(v.length,'h').concat(g.slice(r)),m=o+4+String(v.length).length,new nn(p[1].length,p.slice(2),y,v))}else if('|'===n||s)m=r+1,t(g),'|'===n&&a.push([]),e.pos=m,e.findEqual='|'===n,S.push(e);else if(n.startsWith('}}')){var u=n.slice(0,Math.min(i.length,3)),c=i.length-u.length,p=v.length,s=(m=r+u.length,t(g),!1),d='t';if(3===u.length){u=1<(h=a.map(function(t){return t.join('=')})).length&&C(h[1]).trim();new vn(h,y,v),u&&u.endsWith(':')&&A.includes(u.slice(0,-1).toLowerCase())&&(d='s')}else try{new hn(a[0][0],a.slice(1),y,v);var h=C(a[0][0]).trim();jn.has(h)?d=jn.get(h):/^(?:filepath|(?:full|canonical)urle?):.|^server$/iu.test(h)?d='m':/^#vardefine:./iu.test(h)&&(d='c')}catch(h){if(!(h instanceof SyntaxError&&'Invalid template name'===h.message))throw h;s=!0}s||(g=''.concat(g.slice(0,o+c),'\\0').concat(p).concat(d,'').concat(g.slice(m)),m=o+c+3+String(p).length,1<c?S.push({0:i.slice(0,c),index:o,pos:o+c,parts:[[]]}):1===c&&'-'===g[o-1]&&S.push({0:'-{',index:o-1,pos:o+1,parts:[[]]}))}else m=r+n.length,n.startsWith('{')&&(I.pos=m,I.parts=[[]]),S.push.apply(S,__spreadArray(__spreadArray([],__read('0'in e?[e]:[]),!1),[I],!1));var f=S[S.length-1];if(j&&k+g.length<m)for(j=!1;null!=(b=null==f?void 0:f[0])&&b.startsWith('{');)S.pop(),f=S[S.length-1];(O=new RegExp(_+(j?w:'')+(f?'|'.concat(kn[f[0][0]]).concat(f.findEqual?'|=':''):''),'gmu')).lastIndex=m,I=O.exec(g)};I||void 0!==m&&m<=g.length&&null!=(e=null==(e=S[S.length-1])?void 0:e[0])&&e.startsWith('=');)n();return g}}),Nn={};e(Nn,{InputboxToken:function(){return Tn}});var Tn,Pn,Fn,$n,Wn=t(function(){function t(t,e,n){void 0===e&&(e=M.getConfig()),void 0===n&&(n=[]);var r=Symbol('InputboxToken'),i=n.length;return n.push(r),t=t&&In(t,e,n),n.splice(i,1),o.call(this,t,e,n,{})||this}var o;Cn(),$(),xn(),__extends(t,o=Ke),Tn=t}),Mn=t(function(){function t(t,e,n,r){void 0===e&&(e=!0);t=i.call(this,t,n,r)||this;return v(t,'closed'),t.closed=e,t}var i;f(),ie(),$(),le(),Pn=[jt(!1)],i=Fn=$t,__extends(t,i),Object.defineProperty(t.prototype,'type',{get:function(){return'comment'},enumerable:!1,configurable:!0}),t.prototype.getAttribute=function(t){return'padding'===t?4:i.prototype.getAttribute.call(this,t)},t.prototype.lint=function(t){return void 0===t&&(t=this.getAbsoluteIndex()),this.closed?[]:((t=w(this,{start:t},'unclosed-comment',M.msg('unclosed $1','HTML comment'))).fix={range:[t.endIndex,t.endIndex],text:'--\\x3e'},[t])},t.prototype.toString=function(t){return t?'':'\\x3c!--'.concat(this.innerText).concat(this.closed?'--\\x3e':'')},t.prototype.print=function(){return i.prototype.print.call(this,{pre:'<!--',post:this.closed?'-->':''})},$n=t,Fn=R(Fn),$n=z(Fn,0,'CommentToken',Pn,$n),E(Fn,1,$n)}),Ln={};e(Ln,{NestedToken:function(){return Rn}});var Rn,En=t(function(){function t(t,e,n,a,s){void 0===a&&(a=M.getConfig()),void 0===s&&(s=[]);return t=null==t?void 0:t.replace(e,function(t,e,n,r,i){var o='\\0'.concat(s.length+1).concat(e?'e':'c','');return e?new kr(e,n,r,i,a,s):(e=t.endsWith('--\\x3e'),new $n(t.slice(4,e?-3:void 0),e,a,s)),o}).replace(/(^|\\0\\d+[ce]\\x7F)([^\\0]+)(?=$|\\0\\d+[ce]\\x7F)/gu,function(t,e,n){return new A(n,a,s),''.concat(e,'\\0').concat(s.length,'c')}),i.call(this,t,a,s,{})||this}var i;f(),u(),$(),P(),Or(),ce(),Mn(),__extends(t,i=T),Object.defineProperty(t.prototype,'type',{get:function(){return'ext-inner'},enumerable:!1,configurable:!0}),t.prototype.lint=function(t,e){var n=this,r=(void 0===t&&(t=this.getAbsoluteIndex()),new g(this,t));return __spreadArray(__spreadArray([],__read(i.prototype.lint.call(this,t,e)),!1),__read(this.childNodes.filter(function(t){return'ext'!==t.type&&'comment'!==t.type&&(t=t.toString().trim())&&!/^<!--.*-->$/su.test(t)}).map(function(t){var e=m(t,r,'no-ignored',M.msg('invalid content in <$1>',n.name));return e.suggestions=[{desc:'remove',range:[e.startIndex,e.endIndex],text:''},{desc:'comment',range:[e.startIndex,e.startIndex],text:'\\x3c!--'.concat(t.toString(),'--\\x3e')}],e})),!1)},Rn=t});function zn(t,e,n,r,i){var o=(e=e.trim()).replace(/\\0\\d+t\\x7F/gu,'').trim();switch(t){case'width':return!o||/^(?:\\d+x?|\\d*x\\d+)(?:\\s*px)?$/u.test(o);case'link':if(!o||new RegExp(String.raw(__makeTemplateObject(['^(?:(?:','|//)','|\\0d+m)','$'],['^(?:(?:','|//)','|\\\\0\\\\d+m\\\\x7F)','$']),n.protocol,U,D),'iu').test(o))return e;o.startsWith('[[')&&o.endsWith(']]')&&(o=o.slice(2,-2));var a=M.normalizeTitle(o,0,!1,n,r,!0,!0);return a.valid&&a;case'lang':return('svg'===i||'svgz'===i)&&!/[^a-z\\d-]/u.test(o);case'alt':case'class':case'manualthumb':return!0;case'page':return('djvu'===i||'djv'===i||'pdf'===i)&&0<Number(o);default:return!!o&&!isNaN(o)}}var Bn,p,qn,Gn,Un,Dn,Vn,Hn,Zn,Xn,Qn,Jn,Kn,Yn=t(function(){function t(n,r,i,t){void 0===i&&(i=M.getConfig());function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];s=c.apply(this,__spreadArray([],__read(t),!1))||this,b(s,qn),b(s,p,'')}var o,a,s=this,l=Object.entries(i.img).map(function(t){var t=__read(t,2),e=t[0];return[e,t[1],new RegExp(String.raw(__makeTemplateObject(['^(s*(?!s))','','(s*)$'],['^(\\\\s*(?!\\\\s))','','(\\\\s*)$']),e.replace('$1','(.*)'),e.endsWith('$1')?'(?=$|\\n)':''),'u')]}).find(function(t){var t=__read(t,3),e=t[1],t=t[2];return(a=t.exec(n))&&(4!==a.length||!1!==zn(e,a[2],i,!0,r))});if(!l||!a)return e(n,__assign(__assign({},i),{excludes:__spreadArray(__spreadArray([],__read(null!=(o=i.excludes)?o:[]),!1),['list'],!1)}),t),s.setAttribute('name','caption'),s.setAttribute('stage',7),s;3===a.length?(e(void 0,i,t),k(s,p,n)):(e(a[2],i,t,{}),k(s,p,a[1]+l[0]+a[3])),s.setAttribute('name',l[1])}var c;i(),f(),$(),P(),Bn=new Set(['alt','link','lang','page','caption']),__extends(t,c=T),Object.defineProperty(t.prototype,'type',{get:function(){return'image-parameter'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'link',{get:function(){return'link'===this.name?zn('link',c.prototype.text.call(this),this.getAttribute('config')):void 0},enumerable:!1,configurable:!0}),t.prototype.afterBuild=function(){var t;'gallery-image'!==(null==(t=this.parentNode)?void 0:t.type)||Bn.has(this.name)||this.setAttribute('name','invalid'),c.prototype.afterBuild.call(this)},t.prototype.toString=function(t){return S(this,p)?S(this,p).replace('$1',c.prototype.toString.call(this,t)):c.prototype.toString.call(this,t)},t.prototype.text=function(){return(S(this,p)?S(this,p).replace('$1',c.prototype.text.call(this)):c.prototype.text.call(this)).trim()},t.prototype.getAttribute=function(t){return'plain'===t?'caption'===this.name:'padding'===t?Math.max(0,S(this,p).indexOf('$1')):c.prototype.getAttribute.call(this,t)},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,e=c.prototype.lint.call(this,t,e),r=this.link;return'invalid'===this.name?((n=w(this,{start:t},'invalid-gallery','invalid gallery image parameter')).fix={range:[t,t+n.endIndex],text:''},e.push(n)):'object'==typeof r&&r.encoded&&e.push(w(this,{start:t},'url-encoding','unnecessary URL encoding in an internal link')),e},t.prototype.getValue=function(){return'invalid'===this.name?this.text():x(this,qn,Gn).call(this)||c.prototype.text.call(this)},t.prototype.print=function(){return S(this,p)?'<span class=\"wpb-image-parameter\">'.concat(S(this,p).replace('$1','<span class=\"wpb-image-caption\">'.concat(tt(this.childNodes),'</span>')),'</span>'):c.prototype.print.call(this,{class:'image-caption'})},Un=t,p=new WeakMap,qn=new WeakSet,Gn=function(){return S(this,p)&&!S(this,p).includes('$1')}}),tr=t(function(){function t(t,e,n,r,i){void 0===n&&(n=M.getConfig()),void 0===r&&(r=[]);var t=h.call(this,t,void 0,n", ",r,i=void 0===i?'|':i)||this,o=(b(t,Xn),t.getTitle(!0).extension);return t.append.apply(t,__spreadArray([],__read(Zn('-{','}-','|',e).map(function(t){return new Un(t,o,n,r)})),!1)),t}var h;i(),f(),u(),$(),se(),Yn(),Dn=new Set(['manualthumb','frameless','framed','thumbnail']),Vn=new Set(['left','right','center','none']),Hn=new Set(['baseline','sub','super','top','text-top','middle','bottom','text-bottom']),Zn=function(t,e,n,r){if(void 0===r)return[];for(var i=new RegExp(''.concat([t,e,n].map(H).join('|')),'gu'),o=[],a=i.exec(r),s=0,l=0;a;){var c=a[0],u=a.index;c!==n?s+=c===t?1:-1:0===s&&(o.push(r.slice(l,u)),l=i.lastIndex),a=i.exec(r)}return o.push(r.slice(l)),o},__extends(t,h=Ft),Object.defineProperty(t.prototype,'type',{get:function(){return'file'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'extension',{get:function(){return this.getTitle().extension},enumerable:!1,configurable:!0}),t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i=h.prototype.lint.call(this,t,e),o=this.getAllArgs().filter(function(t){t=t.childNodes.filter(function(t){return t.text().trim()});return 1!==t.length||'arg'!==t[0].type}),e=__spreadArray([],__read(new Set(o.map(function(t){return t.name}))),!1).filter(function(t){return'invalid'!==t}),a=e.filter(function(t){return Dn.has(t)}),s=e.filter(function(t){return Vn.has(t)}),l=e.filter(function(t){return Hn.has(t)}),c=new g(this,t);if(this.closest('ext-link-text')&&''!==(null==(t=this.getValue('link'))?void 0:t.trim())&&i.push(w(this,c,'nested-link','internal link in an external link')),!(o.length===e.length&&a.length<2&&s.length<2&&l.length<2)){var u=function(e,n){return function(t){return m(t,c,'no-duplicate',M.msg(''.concat(e,' image $1 parameter'),n))}};try{for(var p=__values(e),d=p.next();!d.done;d=p.next())!function(e){var t=o.filter(function(t){return t.name===e});1<(t='caption'===e?__spreadArray(__spreadArray([],__read(t.slice(0,-1).filter(function(t){return t.text()})),!1),__read(t.slice(-1)),!1):t).length&&i.push.apply(i,__spreadArray([],__read(t.map(u('duplicated',e))),!1))}(d.value)}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}1<a.length&&i.push.apply(i,__spreadArray([],__read(o.filter(function(t){t=t.name;return Dn.has(t)}).map(u('conflicting','frame'))),!1)),1<s.length&&i.push.apply(i,__spreadArray([],__read(o.filter(function(t){t=t.name;return Vn.has(t)}).map(u('conflicting','horizontal-alignment'))),!1)),1<l.length&&i.push.apply(i,__spreadArray([],__read(o.filter(function(t){t=t.name;return Hn.has(t)}).map(u('conflicting','vertical-alignment'))),!1))}return i},t.prototype.getAllArgs=function(){return this.childNodes.slice(1)},t.prototype.getArgs=function(e){return this.getAllArgs().filter(function(t){t=t.name;return e===t})},t.prototype.getFrameArgs=function(){return x(this,Xn,Qn).call(this,Dn,'frame')},t.prototype.getHorizAlignArgs=function(){return x(this,Xn,Qn).call(this,Vn,'horizontal-align')},t.prototype.getVertAlignArgs=function(){return x(this,Xn,Qn).call(this,Hn,'vertical-align')},t.prototype.getArg=function(t){t=this.getArgs(t);return t[t.length-1]},t.prototype.getValue=function(t){return null==(t=this.getArg(t))?void 0:t.getValue()},Jn=t,Xn=new WeakSet,Qn=function(e,t){return this.getAllArgs().filter(function(t){t=t.name;return e.has(t)})}}),er=t(function(){function t(t,e,n,r,i){void 0===r&&(r=M.getConfig()),void 0===i&&(i=[]);var o=this;if(void 0!==n){for(var a=i.length,s=new T(n,r,i),l=1;l<11;l++)s.parseOnce();i.splice(a,1)}return o=c.call(this,e,null==s?void 0:s.toString(),r,i)||this,v(o,'privateType','imagemap-image'),o.setAttribute('bracket',!1),o.privateType=''.concat(t,'-image'),o.seal('privateType',!0),o}var c;f(),o(),$(),P(),tr(),__extends(t,c=Jn),Object.defineProperty(t.prototype,'type',{get:function(){return this.privateType},enumerable:!1,configurable:!0}),t.prototype.getTitle=function(){var t='imagemap-image'===this.type;return this.normalizeTitle(this.firstChild.toString(),t?0:6,!0,!t)},t.prototype.getAttribute=function(t){return'padding'===t?0:c.prototype.getAttribute.call(this,t)},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var e=c.prototype.lint.call(this,t,e),n=this.getAttribute('title'),r=n.ns;return!n.interwiki&&6===r||e.push(w(this,{start:t},'invalid-gallery','invalid gallery image')),e},Kn=t}),nr={};e(nr,{GalleryToken:function(){return or}});var rr,ir,or,ar,sr,lr,cr,ur,pr,dr,hr,fr=t(function(){function t(t,e,n){void 0===e&&(e=M.getConfig());var r,i,o,a=f.call(this,void 0,e,n=void 0===n?[]:n,{})||this;b(a,rr);try{for(var s=__values(null!=(o=null==t?void 0:t.split('\\n'))?o:[]),l=s.next();!l.done;l=s.next()){var c,u,p,d=l.value,h=/^([^|]+)(?:\\|(.*))?/u.exec(d);h?(u=(c=__read(h,3))[1],p=c[2],x(a,rr,ir).call(a,u)?f.prototype.insertAt.call(a,new Kn('gallery',u,p,e,n)):f.prototype.insertAt.call(a,new A(d,e,n))):f.prototype.insertAt.call(a,d.trim()?new A(d,e,n):d)}}catch(t){r={error:t}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a}var f;$(),P(),er(),ce(),__extends(t,f=T),Object.defineProperty(t.prototype,'type',{get:function(){return'ext-inner'},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){return f.prototype.toString.call(this,t,'\\n')},t.prototype.text=function(){return f.prototype.text.call(this,'\\n').replace(/\\n\\s*\\n/gu,'\\n')},t.prototype.getGaps=function(){return 1},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());for(var n=this.getRootNode().posFromIndex(t),r=n.top,i=n.left,o=[],a=0;a<this.length;a++){var s=this.childNodes[a],l=s.toString(),c=l.length,u=l.trim(),p=r+a,d=a?0:i;'noinclude'===s.type&&u&&!/^<!--.*-->$/u.test(u)?o.push({rule:'no-ignored',message:M.msg('invalid content in <$1>','gallery'),severity:u.startsWith('|')?'warning':'error',startIndex:t,endIndex:t+c,startLine:p,endLine:p,startCol:d,endCol:d+c,suggestions:[{desc:'remove',range:[t,t+c],text:''},{desc:'comment',range:[t,t+c],text:'\\x3c!--'.concat(l,'--\\x3e')}]}):'noinclude'!==s.type&&'text'!==s.type&&o.push.apply(o,__spreadArray([],__read(s.lint(t,e)),!1)),t+=c+1}return o},t.prototype.print=function(){return f.prototype.print.call(this,{sep:'\\n'})},or=t,rr=new WeakSet,ir=function(t){return this.normalizeTitle(t,6,!0,!0).valid}}),gr=t(function(){function t(){return null!==n&&n.apply(this,arguments)||this}var n;f(),se(),__extends(t,n=Ft),Object.defineProperty(t.prototype,'type',{get:function(){return'link'},enumerable:!1,configurable:!0}),t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());e=n.prototype.lint.call(this,t,e);return this.closest('ext-link-text')&&e.push(w(this,{start:t},'nested-link','internal link in an external link')),e},ar=t}),yr=t(function(){function t(t,e,n,r){void 0===e&&(e='free-ext-link'),void 0===n&&(n=M.getConfig());t=s.call(this,t,n,r,{})||this;return b(t,cr),k(t,cr,e),t}var s;f(),u(),i(),$(),P(),sr=String.raw(__makeTemplateObject(['(?:[p{Zs}\\t]| |�*160;|&#[xX]0*[aA]0;)'],['(?:[\\\\p{Zs}\\\\t]| |�*160;|&#[xX]0*[aA]0;)'])),lr=new RegExp(''.concat(sr,'+'),'gu'),__extends(t,s=T),Object.defineProperty(t.prototype,'type',{get:function(){return S(this,cr)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'innerText',{get:function(){var r=new Map([['!','|'],['=','=']]),t=Z(this.childNodes.map(function(t){var e=t.type,n=String(t.name);return'magic-word'===e&&r.has(n)?r.get(n):t}));return t='magic-link'===this.type?t.replace(lr,' '):t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'link',{get:function(){var t=this.innerText;return t='magic-link'===this.type&&t.startsWith('ISBN')?'ISBN '.concat(t.slice(5).replace(/[- ]/gu,'').replace(/x$/u,'X')):t},enumerable:!1,configurable:!0}),t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i,o,a,e=s.prototype.lint.call(this,t,e),t=new g(this,t);return'magic-link'===this.type?(o=this.link).startsWith('ISBN')&&(10===(i=__spreadArray([],__read(o.slice(5)),!1).map(function(t){return'X'===t?10:Number(t)})).length&&i.reduce(function(t,e,n){return t+e*(10-n)},0)%11||13===i.length&&(10===i[12]||i.reduce(function(t,e,n){return t+e*(n%2?3:1)},0)%10))&&e.push(w(this,t,'invalid-isbn','invalid ISBN')):(n='ext-link-url'===this.type,r=n?/\\|/u:/[,;。:!?()]+/u,(a=this.childNodes.find(function(t){return'text'===t.type&&r.test(t.data)}))&&(o=a.data,i=m(a,t,'unterminated-url',M.msg('$1 in URL',n?'\"|\"':'full-width punctuation'),'warning'),t=(a=r.exec(o)).index,o=a[0],a=i.startIndex+t,i.suggestions=n?[{desc:'whitespace',range:[a,a+1],text:' '}]:[{desc:'whitespace',range:[a,a],text:' '},{desc:'escape',range:[a,a+o.length],text:encodeURI(o)}],e.push(i))),e},ur=t,cr=new WeakMap}),vr=t(function(){function t(t,e,n,r,i){void 0===e&&(e=''),void 0===n&&(n=''),void 0===r&&(r=M.getConfig());var o=a.call(this,void 0,r,i=void 0===i?[]:i,{})||this,t=(b(o,pr),t&&/\\0\\d+f\\x7F/u.test(t)?i[Number(t.slice(1,-2))]:new ur(t,'ext-link-url',r,i));return o.insertAt(t),k(o,pr,e),n&&((t=new T(n,r,i,{})).type='ext-link-text',t.setAttribute('stage',10),o.insertAt(t)),o}var a;o(),f(),$(),P(),yr(),__extends(t,a=T),Object.defineProperty(t.prototype,'type',{get:function(){return'ext-link'},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){return 1===this.length?'['.concat(a.prototype.toString.call(this,t)).concat(S(this,pr),']'):'['.concat(a.prototype.toString.call(this,t,S(this,pr)),']')},t.prototype.text=function(){return'['.concat(a.prototype.text.call(this,' '),']')},t.prototype.getAttribute=function(t){return'padding'===t?1:a.prototype.getAttribute.call(this,t)},t.prototype.getGaps=function(){return S(this,pr).length},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());e=a.prototype.lint.call(this,t,e);return 1===this.length&&this.closest('heading-title')&&e.push(w(this,{start:t},'var-anchor','variable anchor in a section header')),e},t.prototype.print=function(){return a.prototype.print.call(this,1===this.length?{pre:'[',post:''.concat(S(this,pr),']')}:{pre:'[',sep:S(this,pr),post:']'})},dr=t,pr=new WeakMap}),xr=t(function(){function t(t,e,n,r,i){void 0===r&&(r=M.getConfig());var o=this;return(o=a.call(this,void 0,r,i=void 0===i?[]:i)||this).append(t,new(2===e.length?ar.bi", "nd.apply(ar,__spreadArray(__spreadArray([void 0],__read(e),!1),[r,i],!1)):dr.bind.apply(dr,__spreadArray(__spreadArray([void 0],__read(e),!1),[r,i],!1))),new A(n,r,i)),o}var a;$(),P(),ce(),gr(),vr(),__extends(t,a=T),Object.defineProperty(t.prototype,'type',{get:function(){return'imagemap-link'},enumerable:!1,configurable:!0}),hr=t}),br={};e(br,{ImagemapToken:function(){return mr}});var mr,_r=t(function(){function t(t,e,n){void 0===e&&(e=M.getConfig());var r,i,o=this,o=b.call(this,void 0,e,n=void 0===n?[]:n,{})||this;if(t){var t=t.split('\\n'),a=new Set(e.protocol.split('|')),s=A,l=!0,c=!1;try{for(var u=__values(t),p=u.next();!p.done;p=u.next()){var d=p.value,h=d.trim();if(!c&&h&&!h.startsWith('#'))if(l){var f=__read(d.split('|')),g=f[0],y=f.slice(1);if((x=o.normalizeTitle(g,0,!0)).valid&&!x.interwiki&&6===x.ns){var v=new Kn('imagemap',g,0<y.length?y.join('|'):void 0,e,n);b.prototype.insertAt.call(o,v),l=!1;continue}c=!0}else{if('desc'===d.trim().split(/[\\t ]/u)[0]){b.prototype.insertAt.call(o,d);continue}if(d.includes('[')){var x,g=d.indexOf('['),y=d.slice(g);if(x=/^\\[\\[([^|]+)(?:\\|([^\\]]+))?\\]\\][\\w\\s]*$/u.exec(y)){if(o.normalizeTitle(x[1],0,!0,!1,!0).valid){b.prototype.insertAt.call(o,new hr(d.slice(0,g),x.slice(1),y.slice(y.indexOf(']]')+2),e,n));continue}}else if(a.has(y.slice(1,y.indexOf(':')+1))||a.has(y.slice(1,y.indexOf('//')+2)))if(v=/^\\[([^\\]\\s]+)(?:(\\s+(?!\\s))([^\\]]*))?\\][\\w\\s]*$/u.exec(y)){b.prototype.insertAt.call(o,new hr(d.slice(0,g),v.slice(1),y.slice(y.indexOf(']')+1),e,n));continue}}}b.prototype.insertAt.call(o,new s(d,e,n))}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}return o}var b;f(),u(),F(),$(),P(),ce(),er(),xr(),__extends(t,b=T),Object.defineProperty(t.prototype,'type',{get:function(){return'ext-inner'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'image',{get:function(){return this.childNodes.find(Ao('imagemap-image'))},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){return b.prototype.toString.call(this,t,'\\n')},t.prototype.text=function(){return b.prototype.text.call(this,'\\n').replace(/\\n{2,}/gu,'\\n')},t.prototype.getGaps=function(){return 1},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var e=b.prototype.lint.call(this,t,e),n=new g(this,t);return this.image?e.push.apply(e,__spreadArray([],__read(this.childNodes.filter(function(t){var e=t.toString().trim();return'noinclude'===t.type&&e&&!e.startsWith('#')}).map(function(t){return m(t,n,'invalid-imagemap','invalid link in <imagemap>')})),!1)):e.push(w(this,n,'invalid-imagemap','<imagemap> without an image')),e},t.prototype.print=function(){return b.prototype.print.call(this,{sep:'\\n'})},mr=t}),wr={};e(wr,{NowikiToken:function(){return Ar}});var Ar,Sr,kr,jr=t(function(){function t(){return null!==r&&r.apply(this,arguments)||this}var r;f(),$(),le(),__extends(t,r=$t),Object.defineProperty(t.prototype,'type',{get:function(){return'ext-inner'},enumerable:!1,configurable:!0}),t.prototype.lint=function(t){void 0===t&&(t=this.getAbsoluteIndex());var e=this.name,n=this.firstChild.data;return'templatestyles'!==e&&'section'!==e||!n?r.prototype.lint.call(this,t,new RegExp(String.raw(__makeTemplateObject(['<s*(?:/s*)','(',')\\b'],['<\\\\s*(?:/\\\\s*)','(',')\\\\b']),'nowiki'===e?'':'?',e),'giu')):((n=w(this,{start:t},'void-ext',M.msg('nothing should be in <$1>',e))).fix={range:[t-1,n.endIndex+e.length+3],text:'/>'},[n])},Ar=t}),Or=t(function(){function t(t,e,n,r,i,o){void 0===i&&(i=M.getConfig()),void 0===o&&(o=[]);var a,s=this,l=t.toLowerCase(),e=new Be(e&&e.trimStart()===e?' '.concat(e):e,'ext-attrs',l,i,o),c=__assign(__assign({},i),{ext:Sr(i.ext,l),excludes:__spreadArray([],__read(null!=(a=i.excludes)?a:[]),!1)});switch(c.inExt=!0,l){case'tab':c.ext=Sr(c.ext,'tabs');case'indicator':case'poem':case'ref':case'option':case'combooption':case'tabs':case'poll':case'seo':'poem'===l&&c.excludes.push('heading'),u=new T(n,c,o);break;case'pre':Qe();var u=new(y(Ze).PreToken)(n,c,o);break;case'dynamicpagelist':xn(),u=new(y(Je).ParamTagToken)(n,c,o);break;case'inputbox':c.excludes.push('heading'),Wn(),u=new(y(Nn).InputboxToken)(n,c,o);break;case'references':En(),u=new(y(Ln).NestedToken)(n,/<!--.*?(?:-->|$)|<(ref)(\\s[^>]*)?>(.*?)<\\/(ref\\s*)>/gisu,['ref'],c,o);break;case'choose':En(),u=new(y(Ln).NestedToken)(n,/<(option|choicetemplate)(\\s[^>]*)?>(.*?)<\\/(\\1)>/gsu,['option','choicetemplate'],c,o);break;case'combobox':En(),u=new(y(Ln).NestedToken)(n,/<(combooption)(\\s[^>]*)?>(.*?)<\\/(combooption\\s*)>/gisu,['combooption'],c,o);break;case'gallery':fr(),u=new(y(nr).GalleryToken)(n,c,o);break;case'imagemap':_r(),u=new(y(br).ImagemapToken)(n,c,o);break;default:jr(),u=new(y(wr).NowikiToken)(n,c,o)}return u.setAttribute('name',l),'plain'===u.type&&(u.type='ext-inner'),(s=p.call(this,t,e,u,r,i,o)||this).seal('closed',!0),s}var p;f(),u(),$(),P(),Ue(),He(),Sr=function(t,e){t=new Set(t);return t.delete(e),__spreadArray([],__read(t),!1)},__extends(t,p=ye),Object.defineProperty(t.prototype,'type',{get:function(){return'ext'},enumerable:!1,configurable:!0}),t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());e=p.prototype.lint.call(this,t,e),t=new g(this,t);return'nowiki'!==this.name&&this.closest('html-attrs, table-attrs')&&e.push(w(this,t,'parsing-order','extension tag in HTML tag attributes')),'ref'===this.name&&this.closest('heading-title')&&e.push(w(this,t,'var-anchor','variable anchor in a section header')),e},kr=t}),Ir={};e(Ir,{parseCommentAndExt:function(){return Cr}});var Cr,Nr,Tr,Pr,Fr,O,$r,Wr,Mr=t(function(){Ge(),ce(),De(),Or(),Mn(),Cr=function(e,u,p,t){function n(){var t=e.indexOf(r);return{i:t,j:e.indexOf('</onlyinclude>',t+i)}}var r='<onlyinclude>',i=r.length;if(t){var o=n(),a=o.i,s=o.j;if(-1!==a&&-1!==s){for(var l='',c=function(t){new A(t,u,p),l+='\\0'.concat(p.length-1,'c')};-1!==a&&-1!==s;){var d='\\0'.concat(p.length,'e');new fe(e.slice(a+i,s),u,p),0<a&&c(e.slice(0,a)),l+=d,e=e.slice(s+i+1),a=(d=n()).i,s=d.j}return e&&c(e),l}}var o=u.ext.join('|'),h=t?'includeonly':'(?:no|only)include',t=t?'noinclude':'includeonly',h=new RegExp(String.raw(__makeTemplateObject(['\\x3c!--.*?(?:--\\x3e|$)|<','(?:s[^>]*)?/?>|</','s*>|<(',void 0,')(s[^>]*?)?(?:/>|>(.*?)(?:</(','s*)>|$))'],['\\x3c!--.*?(?:--\\x3e|$)|<','(?:\\\\s[^>]*)?/?>|</','\\\\s*>|<(',')(\\\\s[^>]*?)?(?:/>|>(.*?)</(\\\\1\\\\s*)>)|<(',')(\\\\s[^>]*?)?(?:/>|>(.*?)(?:</(','\\\\s*)>|$))']),h,h,o,t,t),'gisu');return e.replace(h,function(t,e,n,r,i,o,a,s,l){var c='\\0'.concat(p.length).concat(e?'e':'c','');return e?new kr(e,n,r,i,u,p):t.startsWith('\\x3c!--')?(e=t.endsWith('--\\x3e'),new $n(t.slice(4,e?-3:void 0),e,u,p)):o?new be(o,a,s,l,u,p):new A(t,u,p),c})}}),Lr=t(function(){function t(t,e,n,r,i,o){i=l.call(this,void 0,i,o)||this;return b(i,Fr),b(i,O),b(i,$r),i.insertAt(e),i.setAttribute('name',t.toLowerCase()),k(i,Fr,n),k(i,O,r),k(i,$r,t),i}var l;f(),u(),i(),P(),Nr=new Set(['if','ifeq','ifexpr','ifexist','iferror','switch']),Tr=new Set(['b','big','center','cite','code','del','dfn','em','font','i','ins','kbd','mark','pre','q','s','samp','small','strike','strong','sub','sup','tt','u','var']),Pr=new Set(['strike','big','center','font','tt']),__extends(t,l=T),Object.defineProperty(t.prototype,'type',{get:function(){return'html'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'selfClosing',{get:function(){return S(this,O)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'closing',{get:function(){return S(this,Fr)},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){return'<'.concat(this.closing?'/':'').concat(S(this,$r)).concat(l.prototype.toString.call(this,t)).concat(S(this,O)?'/':'','>')},t.prototype.text=function(){var t=this.closing,e=S(this,$r)+(t?'':l.prototype.text.call(this));return'<'.concat(t?'/':'').concat(e).concat(S(this,O)?'/':'','>')},t.prototype.getAttribute=function(t){return'padding'===t?S(this,$r).length+(this.closing?2:1):l.prototype.getAttribute.call(this,t)},t.prototype.lint=function(e,n){var r,i,o,a=this,n=(void 0===e&&(e=this.getAbsoluteIndex()),l.prototype.lint.call(this,e,n)),s=new g(this,e);'h1'!==this.name||this.closing||n.push(w(this,s,'h1','<h1>')),this.closest('table-attrs')&&n.push(w(this,s,'parsing-order','HTML tag in table attributes'));try{this.findMatchingTag()}catch(t){t instanceof SyntaxError&&(r=t.message.split(':')[0].toLowerCase(),i=w(this,s,'unmatched-tag',r),'unclosed tag'!==r||this.closest('heading-title')?'unmatched closing tag'===r?(o=this.closest('magic-word'))&&Nr.has(o.name)?i.severity='warning':i.suggestions=[{desc:'remove',range:[e,i.endIndex],text:''}]:'tag that is both closing and self-closing'===r&&(o=__read(this.getAttribute('config').html,3)[2]).includes(this.name)&&(i.fix={range:[e+1,e+2],text:''}):Tr.has(this.name)&&(e=null==(o=null==(r=this.parentNode)?void 0:r.childNodes)?void 0:o.indexOf(this),null!=o)&&o.slice(0,e).some(function(t){var e=t.type,t=t.name;return'html'===e&&t===a.name})||(i.severity='warning'),n.push(i))}return Pr.has(this.name)&&n.push(w(this,s,'obsolete-tag','obsolete HTML tag','warning')),'b'!==this.name&&'strong'!==this.name||!this.closest('heading-title')||n.push(w(this,s,'bold-header','bold in section header','warning')),n},t.prototype.findMatchingTag=function(){var e,t,n=__read(this.getAttribute('config').html,3),r=n[0],i=n[1],n=n[2],o=this.name,a=this.parentNode,s=this.closing,l=J(this.toString());if(s&&(S(this,O)||n.includes(o)))throw new SyntaxError('Tag that is both closing and self-closing: '.concat(l));if(n.includes(o)||S(this,O)&&i.includes(o))return this;if(S(this,O)&&r.includes(o))throw new SyntaxError('Invalid self-closing tag: '.concat(l));if(a){var n=a.childNodes,i=n.indexOf(this),r=(s?n.slice(0,i).reverse():n.slice(i+1)).filter(function(t){return'html'===t.type&&t.name===o}),c=s?-1:1;try{for(var u=__values(r),p=u.next();!p.done;p=u.next()){var d=p.value;if(S(d,Fr)?c--:c++,0===c)return d}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}throw new SyntaxError(''.concat(s?'Unmatched closing':'Unclosed',' tag: ').concat(l))}},t.prototype.print=function(){return l.prototype.print.call(this,{pre:'<'.concat(this.closing?'/':'').concat(S(this,$r)),post:''.conc", "at(S(this,O)?'/':'','>')})},t.prototype.json=function(){var t=l.prototype.json.call(this);return Object.assign(t,{closing:this.closing,selfClosing:S(this,O)}),t},Wr=t,Fr=new WeakMap,O=new WeakMap,$r=new WeakMap}),Rr={};e(Rr,{parseHtml:function(){return Er}});var Er,zr,Br,l,qr,Gr,Ur,Dr,Vr,Hr,Zr,Xr,Qr,Jr,Kr,Yr,ti,ei=t(function(){He(),Lr(),Er=function(t,e,n){var r,i,o=/^(\\/?)([a-z][^\\s/>]*)((?:\\s|\\/(?!>))[^>]*?)?(\\/?>)([^<]*)$/iu,a=e.html,s=new Set(__spreadArray(__spreadArray(__spreadArray([],__read(a[0]),!1),__read(a[1]),!1),__read(a[2]),!1)),a=t.split('<'),l=a.shift();try{for(var c=__values(a),u=c.next();!u.done;u=c.next()){var p,d,h,f,g,y,v,x,b,m=u.value,_=o.exec(m),w=null==_?void 0:_[2],A=null==w?void 0:w.toLowerCase();_&&s.has(A)?(d=(p=__read(_,6))[1],f=void 0===(h=p[3])?'':h,g=p[4],y=p[5],v=n.length,b=(x=new Be(f,'html-attrs',A,e,n)).getAttr('itemprop'),'meta'===A&&(void 0===b||void 0===x.getAttr('content'))||'link'===A&&(void 0===b||void 0===x.getAttr('href'))?(l+='<'.concat(m),n.length=v):(l+='\\0'.concat(n.length,'x').concat(y),new Wr(w,x,'/'===d,'/>'===g,e,n))):l+='<'.concat(m)}}catch(t){r={error:t}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return l}}),ni=t(function(){F(),zr=function(s){return void 0===s&&(s=0),function(t,e){__extends(a,i=t),a.prototype.getAttr=function(t){return S(this,n,r).getAttr(t)};var n,r,i,o=a;function a(){var t=i.apply(this,__spreadArray([],__read(arguments),!1))||this;return b(t,n),t}return n=new WeakSet,r=function(){return this.childNodes[s]},jo(o,t),o}}}),ri=t(function(){function t(t,e,n,r,i,o,a){void 0===i&&(i=M.getConfig());var s=this;return(s=l.call(this,void 0,i,o=void 0===o?[]:o,a=void 0===a?{}:a)||this).append(new It(e,t,'table-syntax',i,o,{}),new Be(r,'table-attrs',n,i,o)),s}var l;ni(),$(),P(),oe(),He(),l=zr(1)(T),__extends(t,l),Br=t}),ii=t(function(){function t(t,e,n,r){void 0===n&&(n=M.getConfig()),void 0===r&&(r=[]);var i=this,o=/\\||\\0\\d+!\\x7F/u.exec(null!=e?e:''),a=o?e.slice(0,o.index):'',t=(/\\[\\[|-\\{/u.test(a)&&(o=null,a=''),i=h.call(this,/^(?:\\n[^\\S\\n]*(?:[|!]|\\|\\+|\\{\\{\\s*!\\s*\\}\\}\\+?)|(?:\\||\\{\\{\\s*!\\s*\\}\\}){2}|!!|\\{\\{\\s*!!\\s*\\}\\})$/u,t,'td',a,n,r)||this,b(i,Gr),b(i,l,''),b(i,qr),o&&(t=__read(o,1),q(i,l)._=t[0]),new T(null==e?void 0:e.slice((null!=(a=null==o?void 0:o.index)?a:NaN)+S(i,l).length),n,r));return t.type='td-inner',t.setAttribute('stage',4),i.insertAt(t),i}var h;f(),u(),o(),F(),$(),P(),ri(),__extends(t,h=Br),Object.defineProperty(t.prototype,'type',{get:function(){return'td'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'rowspan',{get:function(){return this.getAttr('rowspan')},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'colspan',{get:function(){return this.getAttr('colspan')},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'subtype',{get:function(){return x(this,Gr,Ur).call(this).subtype},enumerable:!1,configurable:!0}),t.prototype.afterBuild=function(){S(this,l).includes('\\0')&&k(this,l,this.buildFromStr(S(this,l),0)),h.prototype.afterBuild.call(this)},t.prototype.toString=function(t){var e=__read(this.childNodes,3),n=e[0],r=e[1],e=e[2];return n.toString(t)+r.toString(t)+S(this,l)+e.toString(t)},t.prototype.text=function(){var t=__read(this.childNodes,3),e=t[0],n=t[1],t=t[2];return e.text()+n.text()+S(this,l)+t.text()},t.prototype.getGaps=function(t){return 1===t?S(this,l).length:0},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i=h.prototype.lint.call(this,t,e),o=new g(this,t+this.getRelativeIndex(this.length-1));try{for(var a=__values(this.lastChild.childNodes),s=a.next();!s.done;s=a.next()){var l,c,u,p,d=s.value;'text'===d.type&&(l=d.data).includes('|')&&(c=l.includes('||'),u=m(d,o,'pipe-like','additional \"|\" in a table cell',c?'error':'warning'),c?(p={caption:'|+',td:'|',th:'!'}[this.subtype],u.fix={range:[u.startIndex,u.endIndex],text:l.replace(/\\|\\|/gu,'\\n'.concat(p))}):u.suggestions=[{desc:'escape',range:[u.startIndex,u.endIndex],text:l.replace(/\\|/gu,'|')}],i.push(u))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},t.prototype.isIndependent=function(){return this.firstChild.text().startsWith('\\n')},t.prototype.getAttr=function(t){var e=h.prototype.getAttr.call(this,t);return'rowspan'===t||'colspan'===t?parseInt(e)||1:e},t.prototype.print=function(){var t=__read(this.childNodes,3),e=t[0],n=t[1],t=t[2];return'<span class=\"wpb-td\">'.concat(e.print()).concat(n.print()).concat(S(this,l)).concat(t.print(),'</span>')},t.prototype.json=function(){var t=h.prototype.json.call(this);return t.subtype=this.subtype,t},Vr=t,l=new WeakMap,qr=new WeakMap,Gr=new WeakSet,Ur=function(){var t=wo.rev;return null==S(this,qr)&&k(this,qr,[t,x(this,Gr,Dr).call(this)]),S(this,qr)[1]},Dr=function(){var t=this.firstChild.text().slice(-1),e='td';return'!'===t?e='th':'+'===t&&(e='caption'),this.isIndependent()?{subtype:e}:(t=this.previousSibling,__assign({},x(e=t,Gr,Ur).call(e)))}}),oi=t(function(){function t(){return null!==o&&o.apply(this,arguments)||this}var o;f(),ri(),ii(),__extends(t,o=Br),t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var e=o.prototype.lint.call(this,t,e),n=this.childNodes.find(function(t){return'table-inter'===t.type});if(n){var r=n.childNodes.find(function(t){return t.text().trim()}),i=/^\\s*(?:!|\\{\\{\\s*![!-]?\\s*\\}\\})/u;if(!(!r||i.test(r.toString())||r.is('arg')&&i.test(r.default||''))){if(r.is('magic-word'))try{if(r.getPossibleValues().every(function(t){return i.test(t.text())}))return e}catch(t){}n=m(n,{start:t},'fostered-content','content to be moved out from the table');n.severity='template'===r.type?'warning':'error',n.startIndex++,n.startLine++,n.startCol=0,e.push(n)}}return e},t.prototype.getRowCount=function(){return Number(this.childNodes.some(function(t){return t instanceof Vr&&t.isIndependent()&&!t.firstChild.text().endsWith('+')}))},t.prototype.getNthCol=function(t,e){var n,r,i=0;try{for(var o=__values(this.childNodes.slice(2)),a=o.next();!a.done;a=o.next()){var s=a.value;if(s instanceof Vr&&(t-=i=s.isIndependent()?+('caption'!==s.subtype):i)<0)return s}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Hr=t}),ai=t(function(){function t(t,e,n,r){return c.call(this,/^(?:\\{\\||\\{\\{\\{\\s*!\\s*\\}\\}|\\{\\{\\s*\\(!\\s*\\}\\})$/u,t,'table',e,n,r,{})||this}var c,e;function n(){return null!==e&&e.apply(this,arguments)||this}f(),u(),F(),$(),oi(),oe(),Zr=/^\\n[^\\S\\n]*(?:\\|\\}|\\{\\{\\s*!\\s*\\}\\}\\}|\\{\\{\\s*!\\)\\s*\\}\\})$/u,Xr=function(t){t=t.type;return'tr'===t||'table-syntax'===t},e=Array,__extends(n,e),Qr=n,__extends(t,c=Hr),Object.defineProperty(t.prototype,'type',{get:function(){return'table'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'closed',{get:function(){return'table-syntax'===this.lastChild.type},enumerable:!1,configurable:!0}),t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var e=c.prototype.lint.call(this,t,e),t=new g(this,t),n=(this.closed||e.push(m(this.firstChild,t,'unclosed-table',M.msg('unclosed $1','table'))),this.getLayout()),r=n.length;if(1<r){for(var i=1,o=1/0,a=0;a<r;a++){var s,l=(s=n[a]).length;if(l<i)break;l<o&&(o=l);l=s.indexOf(s[l-1])+1;if(o<l)break;i<l&&(i=l)}a<r&&((s=m(this.getNthRow(a),t,'table-layout','inconsistent table layout','warning')).startIndex++,s.startLine++,s.startCol=0,e.push(s))}return e},t.prototype.close=function(t,e){var n=this,r=(void 0===t&&(t='\\n|}'),this.getAttribute('config')),i=this.getAttribute('accum'),e=e?[t]:M.parse(t,this.getAttribute('include'),2,r).childNodes;wo.run(function(){var t=new It(void 0,Zr,'table-syntax',r,i,{});c.prototype.insertAt.call(n,t)}),(t=this.lastChild).replaceChildren.apply(t,__spreadArray([],__read(e),!1))},t.prototype.getLayout=function(t){for(var e,n,r=this.getAllRows(),i=r.length,o=new(Qr.bind.apply(Qr,__spreadArray([void 0],__read(ko(i,function(){return[]})),!1))),a=0;a<i;a++){var s=o[a],l=0,c=0,u=void 0;try{e=void 0;for(var p=__values(r[a].childNodes.slice(2)),d=p.next();!d.done;d=p.next()){var h=d.value;if('td'===h.type){if(u=h.isIndependent()?'caption'!==h.subtype:u){var f={row:a,column:l},g=h.rowspan,y=h.colspan;for(l++;s[c];)c++;for(var v=a;v<Math.min(a+g,i);v++)for(var x=c;x<c+y;x++)o[v][x]=f;c+=y}}else if(Xr(h))break}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}}return o},t.prototype.getAllRows=function(){return __spreadArray(__spreadArray([],__read(c.prototype.getRowCount.call(this)?[this]:[]),!1),__read(this.childNodes.slice(1).filter(function(t){return'tr'===t.type&&0<t.getRowCount()})),!1)},t.prototype.getNthCell=function(t){var e;return t&&(null==(e=this.getNthRow(t.row,!1,!1))?void 0:e.getNthCol(t.column))},t.prototype.getNthRow=function(t,e,n){var r,i,o=c.prototype.getRowCount.call(this);if(0===t&&o)return this;o&&t--;try{for(var a=__values(this.childNodes.slice(2)),s=a.next();!s.done;s=a.next()){var l=s.value;if('tr'===l.type&&l.getRowCount()&&--t<0)return l}}catch(t){r={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}},t.prototype.json=function(){var t=c.prototype.json.call(this);return t.closed=this.closed,t},Jr=t}),si=t(function(){function t(t,e,n,r){return i.call(this,/^\\n[^\\S\\n]*(?:\\|-+|\\{\\{\\s*!\\s*\\}\\}-+|\\{\\{\\s*!-\\s*\\}\\}-*)$/u,t,'tr',e,n,r,{})||this}var i;oi(),__extends(t,i=Hr),Object.defineProperty(t.prototype,'type',{get:function(){return'tr'},enumerable:!1,configurable:!0}),Kr=t}),li=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;le(),__extends(t,e=$t),Yr=t}),ci=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;li(),__extends(t,e=Yr),Object.defineProperty(t.prototype,'type',{get:function(){return'dd'},enumerable:!1,configurable:!0}),ti=t}),ui={};e(ui,{parseTable:function(){return di}});var pi,di,hi,fi,gi,yi,vi=t(function(){P(),ai(),si(),ii(),ci(),pi=function(t){return t.lastChild.constructor!==T},di=function(t,h,f){function g(t,e){var n,r;e?(n=e.lastChild,pi(e)?((r=new T(t,h,f)).type='table-inter',r.setAttribute('stage',3),e.insertAt(r)):n.setText(n.toString()+t)):b+=t}function y(){return'td'===v.type?x.pop():v}var e,n,v,r=t.firstChild.data,", "i=t.type,t=t.name,x=[],r=r.split('\\n'),b='root'===i||'parameter-value'===i||'ext-inner'===i&&'poem'===t?'':'\\n'.concat(r.shift());try{for(var o=__values(r),a=o.next();!a.done;a=o.next())!function(t){var e;v=x.pop();var n=__read(/^(?:\\s|\\0\\d+c\\x7F)*/u.exec(t),1)[0],r=t.slice(n.length),i=/^(:*)((?:\\s|\\0\\d+c\\x7F)*)(\\{\\||\\{(?:\\0\\d+c\\x7F)*\\0\\d+!\\x7F|\\0\\d+\\{\\x7F)(.*)$/u.exec(r);if(i){for(;v&&'td'!==v.type;)v=x.pop();var i=__read(i,5),o=i[1],a=i[2],s=i[3],i=i[4];return o&&new ti(o,h,f),g('\\n'.concat(n).concat(o&&'\\0'.concat(f.length-1,'d')).concat(a,'\\0').concat(f.length,'b'),v),x.push.apply(x,__spreadArray(__spreadArray([],__read(v?[v]:[]),!1),[new Jr(s,i,h,f)],!1))}if(!v)return b+='\\n'.concat(t);a=/^(?:(\\|\\}|\\0\\d+!\\x7F\\}|\\0\\d+\\}\\x7F)|(\\|-+|\\0\\d+!\\x7F-+|\\0\\d+-\\x7F-*)(?!-)|(!|(?:\\||\\0\\d+!\\x7F)\\+?))(.*)$/u.exec(r);if(!a)return g('\\n'.concat(t),v),x.push(v);var s=__read(a,5),i=s[1],r=s[2],t=s[3],l=s[4];if(i){for(;'table'!==v.type;)v=x.pop();v.close('\\n'.concat(n).concat(i),!0),g(l,x[x.length-1])}else if(r){'tr'===(v=y()).type&&(v=x.pop());o=new Kr('\\n'.concat(n).concat(r),l,h,f);x.push(v,o),v.insertAt(o)}else{v=y();for(var c=(o='!'===t?/!!|(?:\\||\\0\\d+!\\x7F){2}|\\0\\d+\\+\\x7F/gu:/(?:\\||\\0\\d+!\\x7F){2}|\\0\\d+\\+\\x7F/gu).exec(l),u=0,p='\\n'.concat(n).concat(t),d=function(t){var e=new Vr(p,l.slice(u,null==c?void 0:c.index),h,f);return t.insertAt(e),e};c;)d(v),u=o.lastIndex,e=__read(c,1),p=e[0],c=o.exec(l);x.push(v,d(v))}}(a.value)}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return b.slice(1)}}),xi=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;le(),__extends(t,e=$t),Object.defineProperty(t.prototype,'type',{get:function(){return'hr'},enumerable:!1,configurable:!0}),hi=t}),bi=t(function(){function t(t,e,n,r){return i.call(this,t,n,r)||this}var i;ie(),le(),fi=[jt()],i=gi=$t,__extends(t,i),Object.defineProperty(t.prototype,'type',{get:function(){return'double-underscore'},enumerable:!1,configurable:!0}),t.prototype.getAttribute=function(t){return'padding'===t?2:i.prototype.getAttribute.call(this,t)},t.prototype.toString=function(){return'__'.concat(this.innerText,'__')},t.prototype.print=function(){return i.prototype.print.call(this,{pre:'__',post:'__'})},yi=t,gi=R(gi),yi=z(gi,0,'DoubleUnderscoreToken',fi,yi),E(gi,1,yi)}),mi={};e(mi,{parseHrAndDoubleUnderscore:function(){return _i}});var _i,wi,Ai=t(function(){xi(),bi(),bn(),_i=function(t,o,a){var e=t.firstChild.data,n=t.type,t=t.name,r=o.doubleUnderscore,i=new Set(r[0]),s=new Set(r[1]),e=(e='root'===n||'ext-inner'===n&&'poem'===t?e:'\\0'.concat(e)).replace(/^((?:\\0\\d+c\\x7F)*)(-{4,})/gmu,function(t,e,n){return new hi(n,o,a),''.concat(e,'\\0').concat(a.length-1,'r')}).replace(new RegExp('__('.concat(__spreadArray(__spreadArray([],__read(r[0]),!1),__read(r[1]),!1).join('|'),')__'),'giu'),function(t,e){var n=s.has(e);return n||i.has(e.toLowerCase())?(new yi(e,n,o,a),'\\0'.concat(a.length-1,'u')):t}).replace(/^((?:\\0\\d+c\\x7F)*)(={1,6})(.+)\\2((?:[^\\S\\n]|\\0\\d+c\\x7F)*)$/gmu,function(t,e,n,r,i){e=''.concat(e,'\\0').concat(a.length,'h');return new nn(n.length,[r,i],o,a),e});return'root'===n||'ext-inner'===n&&'poem'===t?e:e.slice(1)}}),Si=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;f(),u(),$(),le(),__extends(t,e=$t),Object.defineProperty(t.prototype,'type',{get:function(){return'quote'},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'bold',{get:function(){return 2!==this.innerText.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'italic',{get:function(){return 3!==this.innerText.length},enumerable:!1,configurable:!0}),t.prototype.lint=function(t){void 0===t&&(t=this.getAbsoluteIndex());function e(t,e,n){return{desc:'escape',range:[t,e],text:'''.repeat(n)}}var n,r,i,o,a,s,l=this.previousSibling,c=this.nextSibling,u=this.bold,p=M.msg('lonely \"$1\"','\\''),d=[],h=new g(this,t);return'text'===(null==l?void 0:l.type)&&l.data.endsWith('\\'')&&(r=(n=w(this,h,'lonely-apos',p)).startIndex,i=n.startLine,o=n.startCol,s=t-(a=__read(/(?:^|[^'])('+)$/u.exec(l.data),2)[1].length),d.push(__assign(__assign({},n),{startIndex:s,endIndex:r,startCol:o-a,endLine:i,endCol:o,suggestions:[e(s,r,a)]}))),'text'===(null==c?void 0:c.type)&&c.data.startsWith('\\'')&&(r=(n=null==n?w(this,h,'lonely-apos',p):n).endIndex,i=n.endLine,o=n.endCol,s=r+(a=__read(/^'+/u.exec(c.data),1)[0].length),d.push(__assign(__assign({},n),{startIndex:r,endIndex:s,startLine:i,startCol:o,endCol:o+a,suggestions:[e(r,s,a)]}))),u&&this.closest('heading-title')&&d.push(w(this,h,'bold-header','bold in section header','warning')),d},t.prototype.json=function(){var t=e.prototype.json.call(this);return Object.assign(t,{bold:this.bold,italic:this.italic}),t},wi=t}),ki={};e(ki,{parseQuotes:function(){return ji}});var ji,Oi=t(function(){Si(),ji=function(t,e,n){var r=t.split(/('{2,})/u),i=r.length;if(1===i)return t;for(var o,a,s,l=0,c=0,u=1;u<i;u+=2){var p=r[u].length;switch(p){case 2:c++;break;case 4:r[u-1]+='\\'',r[u]='\\'\\'\\'';case 3:l++,void 0===o&&(r[u-1].endsWith(' ')?void 0===a&&void 0===s&&(s=u):' '===r[u-1].slice(-2,-1)?o=u:null==a&&(a=u));break;default:r[u-1]+='\\''.repeat(p-5),r[u]='\\'\\'\\'\\'\\'',c++,l++}}c%2==1&&l%2==1&&void 0!==(u=null!=(t=null!=o?o:a)?t:s)&&(r[u]='\\'\\'',r[u-1]+='\\'');for(u=1;u<i;u+=2)new wi(r[u],e,n),r[u]='\\0'.concat(n.length-1,'q');return r.join('')}}),Ii={};e(Ii,{parseExternalLinks:function(){return Ci}});var Ci,Ni,Ti=t(function(){i(),vr(),yr(),Ci=function(t,a,s,l){var e=new RegExp(String.raw(__makeTemplateObject(['[(\\0d+f|(?:(?:','|//)','|\\0d+m)','(?=[[]<>\"\\tp{Zs}]|\\0d))(p{Zs}*(?!p{Zs}))([^]\u0001-\\b\\n-\u001f�]*)]'],['\\\\[(\\\\0\\\\d+f\\\\x7F|(?:(?:','|//)','|\\\\0\\\\d+m\\\\x7F)','(?=[[\\\\]<>\"\\\\t\\\\p{Zs}]|\\\\0\\\\d))(\\\\p{Zs}*(?!\\\\p{Zs}))([^\\\\]\\\\x01-\\\\x08\\\\x0A-\\\\x1F\\\\uFFFD]*)\\\\]']),a.protocol,U,D),'giu');return t.replace(e,function(t,e,n,r){var i=s.length,o=/&[lg]t;/u.exec(e);return o&&(n='',r=(e=e.slice(0,o.index)).slice(o.index)+n+r),l?(new ur(e,'ext-link-url',a,s),'[\\0'.concat(i,'f').concat(n).concat(r,']')):(new dr(e,n,r,a,s),'\\0'.concat(i,'w'))})}}),Pi=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;se(),__extends(t,e=Ft),Object.defineProperty(t.prototype,'type',{get:function(){return'category'},enumerable:!1,configurable:!0}),Ni=t}),Fi={};e(Fi,{parseLinks:function(){return $i}});var $i,Wi=t(function(){$(),Oi(),Ti(),gr(),tr(),Pi(),$i=function(t,e,n){for(var r=e.inExt?/^((?:(?!\\0\\d+!\\x7F)[^\\n[\\]{}|])+)(?:(\\||\\0\\d+!\\x7F)(.*?[^\\]]))?\\]\\](.*)$/su:/^((?:(?!\\0\\d+!\\x7F)[^\\n[\\]{}|])+)(?:(\\||\\0\\d+!\\x7F)(.*?[^\\]])?)?\\]\\](.*)$/su,i=/^((?:(?!\\0\\d+!\\x7F)[^\\n[\\]{}|])+)(\\||\\0\\d+!\\x7F)(.*)$/su,o=new RegExp(String.raw(__makeTemplateObject(['^s*(?:','|//)'],['^\\\\s*(?:','|//)']),e.protocol),'iu'),a=t.split('[['),s=a.shift(),l=0;l<a.length;l++){var c=!1,u=void 0,p=void 0,d=void 0,h=void 0,f=a[l],g=r.exec(f);if(g?(u=(g=__read(g,5))[1],p=g[2],d=g[3],(h=g[4]).startsWith(']')&&null!=d&&d.includes('[')&&(d+=']',h=h.slice(1))):(b=i.exec(f))&&(c=!0,u=(g=__read(b,4))[1],p=g[2],d=g[3]),void 0===u||o.test(u)||/\\0\\d+[exhbru]\\x7F/u.test(u))s+='[['.concat(f);else{g=u.trim().startsWith(':');if(g&&c)s+='[['.concat(f);else{var y=M.normalizeTitle(u,0,!1,e,!0,!0,!0),v=y.ns,x=y.valid,y=y.interwiki;if(x){if(c){if(y||6!==v){s+='[['.concat(f);continue}var b=!1;for(l++;l<a.length;l++){var m=a[l],_=m.split(']]');if(2<_.length){b=!0,d+='[['.concat(_[0],']]').concat(_[1]),h=_.slice(2).join(']]');break}if(2!==_.length){d+='[['.concat(m);break}d+='[['.concat(_[0],']]').concat(_[1])}if(d=$i(d,e,n),!b){s+='[['.concat(u).concat(p).concat(d);continue}}d=d&&ji(d,e,n),x=ar;g||(y||6!==v?y||14!==v||(x=Ni):(d=d&&Ci(d,e,n,!0),x=Jn)),void 0===d&&p&&(d=''),s+='\\0'.concat(n.length,'l').concat(h),new x(u,d,e,n,p)}else s+='[['.concat(f)}}}return s}}),Mi={};e(Mi,{parseMagicLinks:function(){return Ei}});var Li,Ri,Ei,zi,Bi=t(function(){i(),yr(),Li=/[^,;\\\\.:!?)][,;\\\\.:!?)]+$/u,Ri=/[^,;\\\\.:!?][,;\\\\.:!?]+$/u,Ei=function(t,s,l){var e=String.raw(__makeTemplateObject(['[p{Zs}\\t]| |�*160;|�*a0;'],['[\\\\p{Zs}\\\\t]| |�*160;|�*a0;'])),n='(?:'.concat(e,'|-)'),e=new RegExp(String.raw(__makeTemplateObject(['(^|[^p{L}d_])(?:(?:',')(','',')|(?:RFC|PMID)(?:',')+d+\\b|ISBN(?:',')+(?:97[89]','?)?(?:d','?){9}[dx]\\b)'],['(^|[^\\\\p{L}\\\\d_])(?:(?:',')(','',')|(?:RFC|PMID)(?:',')+\\\\d+\\\\b|ISBN(?:',')+(?:97[89]','?)?(?:\\\\d','?){9}[\\\\dx]\\\\b)']),s.protocol,U,D,e,e,n,n),'giu');return t.replace(e,function(t,e,n){var r,i,o,a=e?t.slice(e.length):t;return n?(r='',(i=/&(?:lt|gt|nbsp|#x0*(?:3[ce]|a0)|#0*(?:6[02]|160));/iu.exec(a))&&(r=a.slice(i.index),a=a.slice(0,i.index)),(i=(a.includes('(')?Ri:Li).exec(a))&&(';'===i[0][o=1]&&/&(?:[a-z]+|#x[\\da-f]+|#\\d+)$/iu.test(a.slice(0,i.index))&&(o=2),r=a.slice(i.index+o)+r,a=a.slice(0,i.index+o)),r.length>=n.length?t:(new ur(a,void 0,s,l),''.concat(e,'\\0').concat(l.length-1,'w').concat(r))):/^(?:RFC|PMID|ISBN)/u.test(a)?(new ur(a,'magic-link',s,l),''.concat(e,'\\0').concat(l.length-1,'i')):t})}}),qi=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;li(),__extends(t,e=Yr),Object.defineProperty(t.prototype,'type',{get:function(){return'list'},enumerable:!1,configurable:!0}),zi=t}),Gi={};e(Gi,{parseList:function(){return Ui}});var Ui,Di,Vi,Hi,Zi,Xi,Qi=t(function(){qi(),ci(),Ui=function(t,n,r){var e,i,o=/^((?:\\0\\d+c\\x7F)*)([;:*#]+\\s*)/u.exec(t);if(!o)return t;var o=__read(o,3),a=o[0],s=o[1],o=o[2].split(/(?=;)/u),l=s+o.map(function(t,e){return'\\0'.concat(r.length+e,'d')}).join('')+t.slice(a.length),c=o.length-(o[0].startsWith(';')?0:1);try{for(var u=__values(o),p=u.next();!p.done;p=u.next()){var d=p.value;new zi(d,n,r)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(e)throw e.error}}if(c)for(var h=__read(n.html,1)[0],f=/:+\\s*|-\\{|\\0\\d+[xq]\\x7F/gu,g=(w=f).exec(l),y=0,v=!1,x=!1,b=0,m=function(t,e){return new ti(t,n,r),''.concat(l.slice(0,e),'\\0').concat(r.length-1,'d').concat(l.slice(e+t.length))},_=function(t){t?y&&y--:y++};g&&c;){var w,d=g[0],A=g.index;if('-{'===d)b||(k=w.lastIndex,(w=/-\\{|\\}-/gu).lastIndex=k),b++;else if('}-'===d)--b||(k=w.lastIndex,(w=f).lastIndex=k);else if(d.endsWith('x')){var S=r[Number(d.slice(1,-2))],k=S.name,j=S.closing;S.selfClosing&&!h.includ", "es(k)||_(j)}else if(d.endsWith('q')){S=r[Number(d.slice(1,-2))],k=S.bold,j=S.italic;k&&(_(v),v=!v),j&&(_(x),x=!x)}else if(0===y){if(d.length>=c)return m(d.slice(0,c),A);c-=d.length,w.lastIndex=A+4+String(r.length).length,l=m(d,A)}g=w.exec(l)}return l}}),Ji=t(function(){function t(t,e,n){void 0===e&&(e=M.getConfig()),void 0===n&&(n=[]);var r=h.call(this,void 0,e,n,{})||this;return b(r,Vi),r.append.apply(r,__spreadArray([],__read(t.map(function(t){return new _(t,'converter-flag',e,n)})),!1)),r}var h;f(),u(),$(),P(),ae(),Di=new Set(['A','T','R','D','-','H','N']),__extends(t,h=T),Object.defineProperty(t.prototype,'type',{get:function(){return'converter-flags'},enumerable:!1,configurable:!0}),t.prototype.afterBuild=function(){k(this,Vi,this.childNodes.map(function(t){return t.text().trim()})),h.prototype.afterBuild.call(this)},t.prototype.toString=function(t){return h.prototype.toString.call(this,t,';')},t.prototype.text=function(){return h.prototype.text.call(this,';')},t.prototype.getGaps=function(){return 1},t.prototype.getUnknownFlags=function(){return new Set(S(this,Vi).filter(function(t){return/\\{{3}[^{}]+\\}{3}/u.test(t)}))},t.prototype.getVariantFlags=function(){var e=new Set(this.getAttribute('config').variants);return new Set(S(this,Vi).filter(function(t){return e.has(t)}))},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n=this.getVariantFlags(),r=this.getUnknownFlags(),i=new Set(S(this,Vi).filter(function(t){return Di.has(t)})),o=S(this,Vi).filter(function(t){return!t}).length,o=S(this,Vi).length-r.size-o,a=h.prototype.lint.call(this,t,e);if(n.size!==o&&i.size!==o)for(var s=new g(this,t),l=this.childNodes,c=this.length,u=0;u<c;u++){var p=l[u],d=p.text().trim();!d||n.has(d)||r.has(d)||!(0<n.size)&&i.has(d)||(p=m(p,s,'no-ignored','invalid conversion flag'),0===n.size&&Di.has(d.toUpperCase())?p.fix={range:[p.startIndex,p.endIndex],text:d.toUpperCase()}:p.suggestions=[{desc:'remove',range:[p.startIndex,p.endIndex],text:''}],a.push(p))}return a},t.prototype.print=function(){return h.prototype.print.call(this,{sep:';'})},Hi=t,Vi=new WeakMap}),Ki=t(function(){function t(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=M.getConfig());var i=l.call(this,void 0,n,r=void 0===r?[]:r)||this,o=t.indexOf(':'),a=t.slice(0,o).indexOf('=>'),s=-1===a?t.slice(0,o):t.slice(a+2,o);return e&&n.variants.includes(s.trim())?(l.prototype.insertAt.call(i,new _(s,'converter-rule-variant',n,r)),l.prototype.insertAt.call(i,new _(t.slice(o+1),'converter-rule-to',n,r)),-1!==a&&l.prototype.insertAt.call(i,new _(t.slice(0,a),'converter-rule-from',n,r),0)):l.prototype.insertAt.call(i,new _(t,'converter-rule-to',n,r)),i}var l;$(),P(),ae(),__extends(t,l=T),Object.defineProperty(t.prototype,'type',{get:function(){return'converter-rule'},enumerable:!1,configurable:!0}),t.prototype.toString=function(t){var e=this.childNodes,n=this.firstChild,r=this.lastChild;return 3===e.length?''.concat(n.toString(t),'=>').concat(e[1].toString(t),':').concat(r.toString(t)):l.prototype.toString.call(this,t,':')},t.prototype.text=function(){var t=this.childNodes,e=this.firstChild,n=this.lastChild;return 3===t.length?''.concat(e.text(),'=>').concat(t[1].text(),':').concat(n.text()):l.prototype.text.call(this,':')},t.prototype.getGaps=function(t){return 0===t&&3===this.length?2:1},t.prototype.print=function(){var t,e,n=this.childNodes;return 3===n.length?(t=(n=__read(n,3))[0],e=n[1],n=n[2],'<span class=\"wpb-converter-rule\">'.concat(t.print(),'=>').concat(e.print(),':').concat(n.print(),'</span>')):l.prototype.print.call(this,{sep:':'})},Zi=t}),Yi=t(function(){function t(t,e,n,r){void 0===n&&(n=M.getConfig()),void 0===r&&(r=[]);var i=this;(i=a.call(this,void 0,n,r)||this).append(new Hi(t,n,r));var t=__read(e,1)[0],o=t.includes(':'),t=new Zi(t,o,n,r);return o&&1===t.length||!o&&2===e.length&&!C(e[1]).trim()?i.insertAt(new Zi(e.join(';'),!1,n,r)):i.append.apply(i,__spreadArray([t],__read(e.slice(1).map(function(t){return new Zi(t,!0,n,r)})),!1)),i}var a;i(),$(),P(),Ji(),Ki(),__extends(t,a=T),Object.defineProperty(t.prototype,'type',{get:function(){return'converter'},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){var t=__read(this.childNodes),n=t[0],t=t.slice(1);return'-{'.concat(n.toString(e)).concat(0<n.length?'|':'').concat(t.map(function(t){return t.toString(e)}).join(';'),'}-')},t.prototype.text=function(){var t=__read(this.childNodes),e=t[0],t=t.slice(1);return'-{'.concat(e.text(),'|').concat(Z(t,';'),'}-')},t.prototype.getAttribute=function(t){return'padding'===t?2:a.prototype.getAttribute.call(this,t)},t.prototype.getGaps=function(t){return t||0<this.firstChild.length?1:0},t.prototype.print=function(){var t=__read(this.childNodes),e=t[0],t=t.slice(1);return'<span class=\"wpb-converter\">-{'.concat(e.print()).concat(0<e.length?'|':'').concat(tt(t,{sep:';'}),'}-</span>')},Xi=t}),to={};e(to,{parseConverter:function(){return eo}});var eo,no=t(function(){Yi(),eo=function(t,e,n){for(var r='(?:'.concat(e.variants.join('|'),')'),i=/-\\{/gu,o=/-\\{|\\}-/gu,a=new RegExp(String.raw(__makeTemplateObject([';(?=(?:[^;]*?=>)?s*','s*:|(?:s|\\0d+c)*$)'],[';(?=(?:[^;]*?=>)?\\\\s*','\\\\s*:|(?:\\\\s|\\\\0\\\\d+c\\\\x7F)*$)']),r),'u'),s=[],l=i,c=l.exec(t);c;){var u,p,d,h=c[0],f=c.index;'}-'===h?(h=s.pop(),u=n.length,p=(d=t.slice(h.index+2,f)).indexOf('|'),p=(d=__read(-1===p?[[],d]:[d.slice(0,p).split(';'),d.slice(p+1)],2))[0],d=d[1].replace(/(&[#a-z\\d]+);/giu,'$1\u0001').split(a).map(function(t){return t.replace(/\\x01/gu,';')}),new Xi(p,d,e,n),t=''.concat(t.slice(0,h.index),'\\0').concat(u,'v').concat(t.slice(f+2)),(l=0===s.length?i:l).lastIndex=h.index+3+String(u).length):(s.push(c),(l=o).lastIndex=f+2),c=l.exec(t)}return t}}),ro={};e(ro,{Token:function(){return T}});var io,c,d,I,oo,ao,so,N,lo,co,uo,po,ho,fo,go,yo,vo,xo,bo,mo,_o,T,wo,Ao,So,ko,jo,P=t(function(){function n(t,e,n,r){void 0===e&&(e=M.getConfig()),void 0===n&&(n=[]);var i=_.call(this)||this;return b(i,N),b(i,io,'plain'),b(i,c,0),b(i,d),b(i,I),b(i,oo),b(i,ao,!1),b(i,so),'string'==typeof t&&i.insertAt(t),k(i,d,e),k(i,I,n),n.push(i),i}var _;i(),o(),F(),f(),$(),ne(),re(),__extends(n,_=gt),Object.defineProperty(n.prototype,'type',{get:function(){return S(this,io)},set:function(t){k(this,io,t)},enumerable:!1,configurable:!0}),n.prototype.parseOnce=function(t,e){var n,r;if(void 0===e&&(e=!1),!((t=void 0===t?S(this,c):t)<S(this,c)||0===this.length)&&this.getAttribute('plain')&&!(11<=S(this,c))){switch(t){case 0:'root'===this.type&&(S(this,I).pop(),i=x(this,N,lo).call(this),e=e&&!i),k(this,oo,e),x(this,N,co).call(this,e);break;case 1:x(this,N,uo).call(this);break;case 2:x(this,N,po).call(this);break;case 3:x(this,N,ho).call(this);break;case 4:x(this,N,fo).call(this);break;case 5:x(this,N,go).call(this);break;case 6:x(this,N,yo).call(this);break;case 7:x(this,N,vo).call(this);break;case 8:x(this,N,xo).call(this);break;case 9:x(this,N,bo).call(this);break;case 10:x(this,N,mo).call(this)}if('root'===this.type)try{for(var i,o=__values(S(this,I)),a=o.next();!a.done;a=o.next())null!=(i=a.value)&&i.parseOnce(t,e)}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}q(this,c)._++}return this},n.prototype.buildFromStr=function(t,e){var n=this,t=t.split(/[\\0\\x7F]/u).map(function(t,e){if(e%2==0)return new kt(t);if(isNaN(t.slice(-1)))return S(n,I)[Number(t.slice(0,-1))];throw new Error('Failed to build! Unrecognized token: '.concat(t))});return 0===e?t.map(String).join(''):1===e?Z(t):t},n.prototype.build=function(){k(this,c,11);var e,t,n=this.length,r=this.firstChild,i=String(r);if(1===n&&'text'===r.type&&i.includes('\\0')&&(this.replaceChildren.apply(this,__spreadArray([],__read(this.buildFromStr(i)),!1)),this.normalize(),'root'===this.type))try{for(var o=__values(S(this,I)),a=o.next();!a.done;a=o.next()){var s=a.value;null!=s&&s.build()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},n.prototype.afterBuild=function(){var e,t;if('root'===this.type)try{for(var n=__values(S(this,I)),r=n.next();!r.done;r=n.next()){var i=r.value;null!=i&&i.afterBuild()}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}k(this,ao,!0)},n.prototype.parse=function(t,e){for(void 0===t&&(t=11),t=Math.min(t,11);S(this,c)<t;)this.parseOnce(S(this,c),e);return t&&(this.build(),this.afterBuild()),this},n.prototype.getAttribute=function(t){var e;switch(t){case'plain':return this.constructor===n;case'config':return S(this,d);case'include':return null!=(e=S(this,oo))?e:!!S(this.getRootNode(),oo);case'accum':return S(this,I);case'built':return S(this,ao);default:return _.prototype.getAttribute.call(this,t)}},n.prototype.setAttribute=function(t,e){'stage'===t?(0===S(this,c)&&'root'===this.type&&S(this,I).shift(),k(this,c,e)):_.prototype.setAttribute.call(this,t,e)},n.prototype.insertAt=function(t,e){void 0===e&&(e=this.length);t='string'==typeof t?new kt(t):t;return _.prototype.insertAt.call(this,t,e),'root'===t.type&&(t.type='plain'),t},n.prototype.normalizeTitle=function(t,e,n,r,i){return M.normalizeTitle(t,e=void 0===e?0:e,S(this,oo),S(this,d),n,r,i)},n.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i,o,a=_.prototype.lint.call(this,t,e);if('root'===this.type){var s={};try{for(var l=__values(this.querySelectorAll('category')),c=l.next();!c.done;c=l.next())(b=s[(x=c.value).name])?b.add(x):s[x.name]=new Set([x])}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}try{for(var u=__values(Object.values(s)),p=u.next();!p.done;p=u.next())1<(x=p.value).size&&a.push.apply(a,__spreadArray([],__read(__spreadArray([],__read(x),!1).map(function(t){t=w(t,{start:t.getAbsoluteIndex()},'no-duplicate','duplicated category');return t.suggestions=[{desc:'remove',range:[t.startIndex,t.endIndex],text:''}],t})),!1))}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}for(var d=/<!--\\s*lint-(disable(?:(?:-next)?-line)?|enable)(\\s[\\sa-z,-]*)?-->/gu,h=this.toString(),f=[],g=d.exec(h),y=0,v=0;g;){var x=g[1],b=g.index,m=null==(m=g[2])?void 0:m.trim();v+=h.slice(y,b).split('\\n').length-1,y=b,f.push({line:v+('disable-line'===x?0:1),from:'disable'===x?d.lastInd", "ex:void 0,to:'enable'===x?d.lastIndex:void 0,rules:m?new Set(m.split(',').map(function(t){return t.trim()})):void 0}),g=d.exec(h)}a=a.filter(function(t){var e,n,r=t.rule,i=t.startLine,o=t.startIndex,a={pos:0};try{for(var s=__values(f),l=s.next();!l.done;l=s.next()){var c=l.value,u=c.line,p=c.from,d=c.to,h=c.rules;if(i+1<u)break;if(!h||h.has(r)){if(u===i&&void 0===p&&void 0===d)return!1;p<=o&&a.pos<p?(a.pos=p,a.type='from'):d<=o&&a.pos<d&&(a.pos=d,a.type='to')}}}catch(t){e={error:t}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return'from'!==a.type})}return a},n.prototype.toString=function(t,e){var n=wo.rev,r=this.getRootNode();return!t&&'root'===r.type&&S(r,ao)?(null==S(this,so)&&k(this,so,[n,_.prototype.toString.call(this,!1,e)]),S(this,so)[1]):_.prototype.toString.call(this,t,e)},_o=n,io=new WeakMap,c=new WeakMap,d=new WeakMap,I=new WeakMap,oo=new WeakMap,ao=new WeakMap,so=new WeakMap,N=new WeakSet,lo=function(){qe();var t=(0,y(de).parseRedirect)(this.firstChild.toString(),S(this,d),S(this,I));return t&&this.setText(t),!!t},co=function(t){Mr();var e=y(Ir).parseCommentAndExt;this.setText(e(this.firstChild.toString(),S(this,d),S(this,I),t))},uo=function(){Cn();var t=(0,y(Sn).parseBraces)('root'===this.type?this.firstChild.toString():'\\0'.concat(this.firstChild.toString()),S(this,d),S(this,I));this.setText('root'===this.type?t:t.slice(1))},po=function(){var t;null!=(t=S(this,d).excludes)&&t.includes('html')||(ei(),t=y(Rr).parseHtml,this.setText(t(this.firstChild.toString(),S(this,d),S(this,I))))},ho=function(){var t;null!=(t=S(this,d).excludes)&&t.includes('table')||(vi(),t=y(ui).parseTable,this.setText(t(this,S(this,d),S(this,I))))},fo=function(){var t;null!=(t=S(this,d).excludes)&&t.includes('hr')||(Ai(),t=y(mi).parseHrAndDoubleUnderscore,this.setText(t(this,S(this,d),S(this,I))))},go=function(){Wi();var t=y(Fi).parseLinks;this.setText(t(this.firstChild.toString(),S(this,d),S(this,I)))},yo=function(){var t;if(null==(t=S(this,d).excludes)||!t.includes('quote')){Oi();for(var e=y(ki).parseQuotes,n=this.firstChild.toString().split('\\n'),r=0;r<n.length;r++)n[r]=e(n[r],S(this,d),S(this,I));this.setText(n.join('\\n'))}},vo=function(){var t;null!=(t=S(this,d).excludes)&&t.includes('extLink')||(Ti(),t=y(Ii).parseExternalLinks,this.setText(t(this.firstChild.toString(),S(this,d),S(this,I))))},xo=function(){var t;null!=(t=S(this,d).excludes)&&t.includes('magicLink')||(Bi(),t=y(Mi).parseMagicLinks,this.setText(t(this.firstChild.toString(),S(this,d),S(this,I))))},bo=function(){var t;if(null==(t=S(this,d).excludes)||!t.includes('list')){Qi();for(var e=y(Gi).parseList,n=this.firstChild.toString().split('\\n'),r='root'===this.type||'ext-inner'===this.type&&'poem'===this.name?0:1;r<n.length;r++)n[r]=e(n[r],S(this,d),S(this,I));this.setText(n.join('\\n'))}},mo=function(){var t;0<S(this,d).variants.length&&(no(),t=y(to).parseConverter,this.setText(t(this.firstChild.toString(),S(this,d),S(this,I))))},T=_o}),F=t(function(){wo={running:!1,run:function(t){var e=this.running;this.running=!0;try{P();var n=y(ro).Token,r=t();return r instanceof n&&!r.getAttribute('built')&&r.afterBuild(),this.running=e,r}catch(n){throw this.running=e,n}},rev:0},Ao=function(e){return function(t){return t.type===e}},So=function(t,e,n,r){void 0===r&&(r=[]);var i,o,a=__spreadArray([],__read(t.childNodes),!1),e=a.splice.apply(a,__spreadArray([e,n],__read(r),!1));t.setAttribute('childNodes',a);try{for(var s=__values(r),l=s.next();!l.done;l=s.next())l.value.setAttribute('parentNode',t)}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return e},ko=function(t,n){return new Array(t).fill(void 0).map(function(t,e){return n(e)})},jo=function(t,e){Object.defineProperty(t,'name',{value:e.name})}}),Oo={};e(Oo,{Title:function(){return To}});var Io,Co,No,To,Po,Fo,$o,M,Wo=t(function(){function t(t,e,n,r,i){b(this,Co),b(this,No),v(this,'ns'),v(this,'fragment'),v(this,'interwiki',''),v(this,'valid'),v(this,'encoded',!1);var o,a=t.trim().startsWith('../');if(t=Q(t),r&&t.includes('%'))try{var s=/%(?!21|3[ce]|5[bd]|7[b-d])[\\da-f]{2}/iu.test(t);t=Io(t),this.encoded=s}catch(s){}t=t.replace(/_/gu,' ').trim(),a?this.ns=0:(s=e,t.startsWith(':')&&(s=0,t=t.slice(1).trim()),1<(o=t.split(':')).length&&(r=n.nsid[o[0].trim().toLowerCase()])&&(s=r,t=o.slice(1).join(':').trim()),this.ns=s);e=t.indexOf('#');if(-1!==e){if((s=t.slice(e+1).trimEnd()).includes('%'))try{s=Io(s)}catch(o){}this.fragment=s,t=t.slice(0,e).trim()}this.valid=!!(t||this.interwiki||i&&0===this.ns&&void 0!==this.fragment)&&!/^:|\\0\\d+[eh!+-]\\x7F|[<>[\\]{}|\\n]|%[\\da-f]{2}|(?:^|\\/)\\.{1,2}(?:$|\\/)/iu.test(a?/^(?:\\.\\.\\/)+(.*)/u.exec(t)[1]:t),this.main=t,Object.defineProperties(this,{encoded:{enumerable:!1,writable:!1}}),k(this,No,n.namespaces)}i(),Io=function(t){return decodeURIComponent(t.replace(/%(?![\\da-f]{2})/giu,'%25'))},Object.defineProperty(t.prototype,'main',{get:function(){return S(this,Co)},set:function(t){t=t.replace(/_/gu,' ').trim(),k(this,Co,t&&t[0].toUpperCase()+t.slice(1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'prefix',{get:function(){var t=S(this,No)[this.ns];return t+(t&&':')},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'title',{get:function(){return(this.interwiki+(this.interwiki&&':')+this.prefix+this.main).replace(/ /gu,'_')},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'extension',{get:function(){var t=this.main,e=t.lastIndexOf('.');return-1===e?void 0:t.slice(e+1).toLowerCase()},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return''.concat(this.title).concat(void 0===this.fragment?'':'#'.concat(this.fragment))},To=t,Co=new WeakMap,No=new WeakMap}),$=t(function(){for(var t in Yt(),F(),o(),i(),Po={i18n:void 0,rules:G,getConfig:function(){return __assign(__assign(__assign({},rt),this.config),{excludes:[]})},msg:function(t,e){var n;return void 0===e&&(e=''),t&&(null!=(n=null==(n=this.i18n)?void 0:n[t])?n:t).replace('$1',this.msg(e))},normalizeTitle:function(l,c,u,p,t,d,h){void 0===c&&(c=0),void 0===p&&(p=Po.getConfig()),void 0===d&&(d=!1),void 0===h&&(h=!1);Wo();var f,g=y(Oo).Title;return t?new g(l,c,p,d,h):(P(),f=y(ro).Token,wo.run(function(){var e,t,n=new f(l,p),r=(n.type='root',n.parseOnce(0,u).parseOnce(),new g(n.toString(),c,p,d,h));try{for(var i=__values(['main','fragment']),o=i.next();!o.done;o=i.next()){var a=o.value,s=r[a];null!=s&&s.includes('\\0')&&(r[a]=n.buildFromStr(s,1))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r}))},parse:function(e,n,r,i){void 0===r&&(r=11),void 0===i&&(i=Po.getConfig()),e=V(e);P();var o=y(ro).Token;return wo.run(function(){var t=new o(e,i);return t.type='root',t.parse(r,n)})}},Fo={},$o=new Set(['normalizeTitle','parse']),Po)$o.has(t)||(Fo[t]={enumerable:!1});Object.defineProperties(Po,Fo),'object'==typeof self?Object.assign(self,{Parser:Po}):'object'==typeof globalThis&&Object.assign(globalThis,{Parser:Po}),M=Po});$()}();" ].join("")); /* </pre> */
该页面使用的模板:
模板:GHIACode
(
查看源代码
)
返回至
MediaWiki:Gadget-wikiparser-node.js
。
导航菜单
个人工具
登录
名字空间
消息
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
随机页面
最近更改
最新文件
常用
上传多个文件
工具
链入页面
相关更改
特殊页面
页面信息