MediaWiki:Gadget-prism-language-wiki.js

来自萌娘共享
AnnAngela-dbot讨论 | 贡献2024年4月16日 (二) 09:11的版本 (代码变动:2d5d0ae3 - feat(Gadget/prism): 新的代码高亮工具 (#443) by U:AnnAngela, co-authored-by: GH:github-actions[bot],U:Bhsd
跳转至: 导航搜索

注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件
/**
 * -------------------------------------------------------------------------
 * !!! 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-prism-language-wiki.js|user=[[U:AnnAngela]]|co-authors=GH:github-actions[bot]、[[U:Bhsd]]|longId=2d5d0ae30421796cfa323a02a78713c0ed261417|shortId=2d5d0ae3|summary=feat(Gadget/prism): 新的代码高亮工具 (#443)|body=<nowiki>Co-authored-by: github-actions[bot] <41898282+github-actions[bot]📧users.noreply.github.com>↩Co-authored-by: Bhsd <55071315+bhsd-harry📧users.noreply.github.com></nowiki>}}'; 

/* <pre> */

eval([
    "'use strict';var __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 t(t,e){return function(){return e=t?t(t=0):e}}function e(t,e){for(var n in e)nt(t,n,{get:e[n],enumerable:!0})}function d(t){return st(nt({},'__esModule',{value:!0}),t)}function m(t,e,n){at(t,'symbol'!=typeof e?e+'':e,n)}function v(t,e,n){if(e.has(t))throw TypeError('Cannot add the same private member more than once');e instanceof WeakSet?e.add(t):e.set(t,n)}function $(e,n,r,t){return{set _(t){f(e,n,t,r)},get _(){return x(e,n,t)}}}function g(t,e,n){return lt(t,e,'access private method'),n}var P,E,M,z,q,G,B,U,V,H,n,D,N,Z,J,Q,K,X,Y,tt,et,nt=Object.defineProperty,rt=Object.getOwnPropertyDescriptor,it=Object.getOwnPropertyNames,ot=Object.prototype.hasOwnProperty,at=function(t,e,n){return e in t?nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},st=function(e,n,r,i){var o,t;if(n&&'object'==typeof n||'function'==typeof n)try{for(var a=__values(it(n)),s=a.next();!s.done;s=a.next())!function(t){ot.call(e,t)||t===r||nt(e,t,{get:function(){return n[t]},enumerable:!(i=rt(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},lt=function(t,e,n){if(!e.has(t))throw TypeError('Cannot '+n)},x=function(t,e,n){return lt(t,e,'read from private field'),n?n.call(t):e.get(t)},f=function(t,e,n,r){return lt(t,e,'write to private field'),r?r.call(t,n):e.set(t,n),n},ct=t(function(){P=['bold-header','format-leakage','fostered-content','h1','illegal-attr','insecure-style','invalid-gallery','invalid-imagemap','invalid-invoke','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']}),ut=t(function(){E={running:!1,run:function(t){var e=this.running;this.running=!0;try{var n=t();return this.running=e,n}catch(n){throw this.running=e,n}}},M=function(e){return function(t){return t.type===e}},z=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},q=function(t,n){return new Array(t).fill(void 0).map(function(t,e){return n(e)})}}),pt=(G=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:{},variants:[]}},function(){return B||G((B={exports:{}}).exports,B),B.exports}),r=t(function(){U=pt()}),i=t(function(){V='(?:\\\\[[\\\\da-f:.]+\\\\]|'.concat(n='[^[\\\\]<>\"\\0-\u001f\\\\p{Zs}�]',')'),H='(?:'.concat(n,'|\\0\\\\d+[c!~])*'),D=(n=function(e,n){return function(t){return t.replace(e,n)}})(/[\\0\\x7F]/gu,''),N=n(/\\0\\d+c\\x7F/gu,''),Z=n(/[\\\\{}()|.?*+^$[\\]]/gu,'\\\\$&'),J=function(t,e){return void 0===e&&(e=''),t.map(function(t){return'string'==typeof t?t:t.text()}).join(e)},Q={lt:'<',gt:'>',lbrack:'[',rbrack:']',lbrace:'{',rbrace:'}'},K=n(/&(?:#(\\d+|x[\\da-fA-F]+)|([lLgG][tT]|[lr]brac[ke]));/gu,function(t,e,n){return e?String.fromCodePoint(+''.concat(/^x/iu.test(e)?'0':'').concat(e)):Q[n.toLowerCase()]}),X=n(/\\n/gu,'\\\\n'),Y={'&':'amp','<':'lt','>':'gt'},tt=n(/[&<>]/gu,function(t){return'&'.concat(Y[t],';')}),et=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''.concat(void 0===n?'':n).concat(t.map(function(t){return t.print()}).join(e)).concat(r)}}),dt={};e(dt,{Title:function(){return yt}});var ht,ft,gt,yt,vt,I,w,xt,_t,mt,bt,wt,At,St,kt,It,Nt,Ct,jt,Ft,Ot,Tt,Rt,Wt,$t,Lt,Pt,o,b,Et,Mt,zt,A,qt,a,Gt,Bt,Ut,Vt,Ht,Dt,Zt,Jt,Qt,s,Kt,Xt,Yt,te,h,y,ee,ne,re,ie,oe=t(function(){function t(t,e,n,r,i){v(this,ft,void 0),v(this,gt,void 0),m(this,'ns'),m(this,'fragment'),m(this,'interwiki',''),m(this,'valid'),m(this,'encoded',!1);var o,a=t.trim().startsWith('../');if(t=K(t),r&&t.includes('%'))try{var s=/%(?!21|3[ce]|5[bd]|7[b-d])[\\da-f]{2}/iu.test(t);t=ht(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=ht(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}}),f(this,gt,n.namespaces)}i(),ht=function(t){return decodeURIComponent(t.replace(/%(?![\\da-f]{2})/giu,'%25'))},Object.defineProperty(t.prototype,'main',{get:function(){return x(this,ft)},set:function(t){t=t.replace(/_/gu,' ').trim(),f(this,ft,t&&''.concat(t[0].toUpperCase()).concat(t.slice(1)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'prefix',{get:function(){var t=x(this,gt)[this.ns];return''.concat(t).concat(t&&':')},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'title',{get:function(){return''.concat(''.concat(this.interwiki).concat(this.interwiki&&':').concat(this.prefix)).concat(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))},yt=t,ft=new WeakMap,gt=new WeakMap}),S=t(function(){W(),I=(vt=function(c){return function(t,e,n,r,i){void 0===i&&(i='error');var o=e.start,e='top'in e?e:t.getRootNode().posFromIndex(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:L.msg(r),severity:i,startIndex:a,endIndex:a+String(t).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=vt(function(t,e,n,r){return{startIndex:e,startLine:n,startCol:r}})}),ae=t(function(){function t(){v(this,_t),m(this,'childNodes',[]),v(this,xt,void 0)}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 x(this,xt)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'nextSibling',{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,'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 g(this,_t,mt).call(this).height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'offsetWidth',{get:function(){return g(this,_t,mt).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?f(this,xt,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:t=(e=e.slice(0,t).split('\\n')).length-1,left:e[t].length}},t.prototype.getGaps=function(t){return 0},t.prototype.getRelativeIndex=function(t){function e(t,r){return n.slice(0,t).reduce(function(t,e,n){return t+String(e).length+r.getGaps(n)},0)+r.getAttribute('padding')}var n,r;return void 0===t?(r=this.parentNode)?e((n=r.childNodes).indexOf(this),r):0:(n=this.childNodes,e(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})},bt=t,xt=new WeakMap,_t=new WeakSet,mt=function(){var t=String(this).split('\\n'),e=t.length;return{height:e,width:t[e-1].length}}}),se=t(function(){function t(){var t=e.apply(this,__spreadArray([],__read(arguments),!1))||this;return v(t,wt),v(t,St),t}var e;i(),ut(),ae(),__extends(t,e=bt),Object.defineProperty(t.prototype,'length',{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),t.prototype.text=function(t){return J(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&&t.splice(e,1)}this.setAttribute('childNodes',t)},t.prototype.removeAt=function(t){return z(this,t,1)[0]},t.prototype.insertAt=function(t,e){return void 0===e&&(e=this.length),z(this,e,0,[t]),t},t.prototype.closest=function(t){for(var e=g(this,wt,At).call(this,t),n=this.parentNode;n;){if(e(n))return n;n=n.parentNode}},t.prototype.querySelectorAll=function(t){t=g(this,wt,At).call(this,t);return g(this,St,kt).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(t){return void 0===t&&(t=''),this.childNodes.map(String).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+=String(o).length+this.getGaps(r)}return n},t.prototype.print=function(t){var e;return void 0===t&&(t={}),String(this)?'<span class=\"wpb-'.concat(null!=(e=t.class)?e:this.type,'\">').concat(et(this.childNodes,t),'</span>'):''},t.prototype.json=function(t,e){void 0===e&&(e=this.getAbsoluteIndex());for(var n=__assign(__assign({},this),{range:[e,e+String(this).length],childNodes:[]}),r=0,i=e+this.getAttribute('padding');r<this.length;r++){var o=this.childNodes[r],a=String(o).length;'text'===o.type?n.childNodes.push({data:o.data,range:[i,i+a]}):n.childNodes.push(o.json(void 0,i)),i+=a+this.getGaps(r)}return n},It=t,wt=new WeakSet,At=function(t){var e=new Set(t.split(',').map(function(t){return t.trim()}));return function(t){t=t.type;return e.has(t)}},St=new WeakSet,kt=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(g(r=s,St,kt).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}}),le=t(function(){function t(t){var e=n.call(this)||this;return v(e,Rt),m(e,'type','text'),m(e,'data',''),Object.defineProperties(e,{childNodes:{enumerable:!1,configurable:!1},type:{enumerable:!1,writable:!1},data:{value:t}}),e}var n;i(),W(),ae(),Nt='<\\\\s*(?:\\\\/\\\\s*)?([a-z]\\\\w*)|\\\\{+|\\\\}+|\\\\[{2,}|\\\\[(?![^[]*?\\\\])|((?:^|\\\\])[^[]*?)\\\\]+',Ct=new RegExp(''.concat(Nt,'|https?[:/]\\\\/+'),'giu'),jt=new RegExp(Nt,'giu'),Ft={'[':/[[\\]]/u,'{':/[{}]/u,']':/[[\\]](?=[^[\\]]*$)/u,'}':/[{}](?=[^{}]*$)/u},Ot={'<':'tag-like','[':'lonely-bracket','{':'lonely-bracket',']':'lonely-bracket','}':'lonely-bracket',h:'lonely-http'},Tt=['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=bt),t.prototype.toString=function(){return this.data},t.prototype.text=function(){return this.data},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r=this.data,i=this.parentNode,o=this.nextSibling,a=this.previousSibling;if(!i)return[];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?jt:Ct: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,_=x.posFromIndex(t),m=_.top,b=_.left,w=new Set(['onlyinclude','noinclude','includeonly',l,c,Tt].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+=T=h.length,A=A.slice(T)),A[0]),I=A.length;if(!('<'===k&&!w.has(d.toLowerCase())||'['===k&&'ext-link-text'===s&&(/&(?:rbrack|#93|#x5[Dd];);/u.test(r.slice(S+1))||'ext'===g&&'nowiki'===y&&null!=(N=o.innerText)&&N.includes(']')))){']'===k&&(S||1<I)&&e.lastIndex--;var N=t+S,C=N+I,j=String(x),F=j[C],j=j[N-1],F=1<I&&('<'!==k||/[\\s/>]/u.test(null!=F?F:''))&&(!u||'['!==k&&']'!==k)||'{'===k&&(F===k||'-'===j)||'}'===k&&(j===k||'-'===F)||'['===k&&(F===k||'ext-link-text'===s||'free-ext-link'===g&&!r.slice(S+1).trim())||']'===k&&(j===k||'free-ext-link'===v&&!r.slice(0,S).includes(']'))?'error':'warning',O='{'===k||'['===k;if('warning'==F&&(O||']'===k||'}'===k)){var T=Ft[k],R=O?r.slice(S+1):r.slice(0,S);if('{'===k&&'}'===(null==(n=T.exec(R))?void 0:n[0])||'}'===k&&'{'===(null==(n=T.exec(R))?void 0:n[0]))continue;if(!R.includes(k)){for(var W=O?'nextSibling':'previousSibling',$=this[W];$&&('text'!==$.type||!T.test($.data));)$=$[W];if($&&T.exec($.data)[0]!==k)continue}}R=r.slice(0,S).split('\\n'),O=R.length+m-1,S=R[R.length-1],S=1===R.length?b+S.length:S.length,A={rule:Ot[k],message:L.msg('lonely \"$1\"','h'===k?A:k),severity:F,startIndex:N,endIndex:C,startLine:O,endLine:O,startCol:S,endCol:S+I};'<'===k?A.suggestions=[{desc:'escape',range:[N,N+1],text:'&lt;'}]:'h'===k&&'ext-link-text'!==s&&'link-text'!==s&&/[\\p{L}\\d_]/u.test(j||'')?A.suggestions=[{desc:'whitespace',range:[N,N],text:' '}]:'['===k&&'ext-link-text'===s?(T=i.getAbsoluteIndex()+String(i).length,A.suggestions=[{desc:'escape',range:[T,T+1],text:'&#93;'}]):']'===k&&'free-ext-link'===v&&'error'==F&&(T=t-String(a).length,A.fix={range:[T,T],text:'['}),f.push(A)}}return f},t.prototype.replaceData=function(t){g(this,Rt,Wt).call(this,t)},t.prototype.print=function(){return tt(this.data)},$t=t,Rt=new WeakSet,Wt=function(t){this.setAttribute('data',t)}}),ce=t(function(){function t(){var t=e.apply(this,__spreadArray([],__read(arguments),!1))||this;return m(t,'type','onlyinclude'),t}var e;R(),__extends(t,e=T),t.prototype.toString=function(){return'<onlyinclude>'.concat(e.prototype.toString.call(this),'</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\">&lt;onlyinclude&gt;</span>',post:'<span class=\"wpb-ext\">&lt;/onlyinclude&gt;</span>'})},Lt=t}),ue=t(function(){Pt=function(t){var e;function n(){return null!==e&&e.apply(this,arguments)||this}return __extends(n,e=t),n.prototype.text=function(){return''},n.prototype.lint=function(){return[]},n}}),pe=t(function(){function t(t,e,n){return void 0===t&&(t=''),void 0===e&&(e=L.getConfig()),r.call(this,t,e,n=void 0===n?[]:n)||this}var r;W(),R(),__extends(t,r=T),Object.defineProperty(t.prototype,'innerText',{get:function(){return this.firstChild.data},enumerable:!1,configurable:!0}),o=t}),de=t(function(){function t(){var t=e.apply(this,__spreadArray([],__read(arguments),!1))||this;return m(t,'type','noinclude'),t}var e;ue(),pe(),e=Pt(o),__extends(t,e),b=t}),he=t(function(){function t(t,e,n,r,i,o){void 0===i&&(i=L.getConfig()),void 0===o&&(o=[]);i=a.call(this,void 0,i)||this,v(i,Et,void 0),m(i,'closed'),m(i,'selfClosing'),i.setAttribute('name',t.toLowerCase()),f(i,Et,[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;W(),R(),__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(){var t=this.selfClosing,e=this.firstChild,n=this.lastChild,r=__read(x(this,Et),2),i=r[0],r=r[1];return t?'<'.concat(i).concat(String(e),'/>'):'<'.concat(i).concat(String(e),'>').concat(String(n)).concat(this.closed?'</'.concat(r,'>'):'')},t.prototype.text=function(){var t=__read(x(this,Et),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(t",
    "his.closed?'</'.concat(t,'>'):'')},t.prototype.getAttribute=function(t){return'padding'===t?x(this,Et)[0].length+1:a.prototype.getAttribute.call(this,t)},t.prototype.getGaps=function(){return 1},t.prototype.print=function(){var t=__read(x(this,Et),2),e=t[0],t=t[1];return a.prototype.print.call(this,this.selfClosing?{pre:'&lt;'.concat(e),post:'/&gt;'}:{pre:'&lt;'.concat(e),sep:'&gt;',post:this.closed?'&lt;/'.concat(t,'&gt;'):''})},Mt=t,Et=new WeakMap}),fe=t(function(){function t(t,e,n,r,i,o){void 0===e&&(e=''),void 0===i&&(i=L.getConfig());t=a.call(this,t,e,null!=n?n:'',void 0===n||null!=r?r:'',i,o=void 0===o?[]:o)||this;return m(t,'type','include'),t}var a;S(),ue(),W(),he(),a=Pt(Mt),__extends(t,a),t.prototype.lint=function(t){return void 0===t&&(t=this.getAbsoluteIndex()),this.closed?[]:((t=w(this,{start:t},'unclosed-comment',L.msg('unclosed $1','<'.concat(this.name,'>')))).suggestions=[{desc:'close',range:[t.endIndex,t.endIndex],text:'</'.concat(this.name,'>')}],[t])},zt=t}),c=t(function(){function t(t,e,n,r,i){void 0===n&&(n=L.getConfig());var o=this;return(o=a.call(this,t,n,r=void 0===r?[]:r,i)||this).type=e,o}var a;W(),R(),__extends(t,a=T),A=t}),ge=t(function(){function t(t,e,n,r,i,o,a,s){void 0===r&&(r=''),void 0===o&&(o=[]),void 0===a&&(a=L.getConfig());var l,c,u=this,p=new A(n,'attr-key',a,s=void 0===s?[]:s,{});return'title'===n||'img'===e&&'alt'===n?((l=new T(i,a,s,{})).type='attr-value',l.setAttribute('stage',10)):'gallery'===e&&'caption'===n?(c=__assign(__assign({},a),{excludes:__spreadArray(__spreadArray([],__read(a.excludes),!1),['quote','extLink','magicLink','list'],!1)}),(l=new T(i,c,s,{})).type='attr-value',l.setAttribute('stage',5)):'choose'!==e||'before'!==n&&'after'!==n?l=new A(i,'attr-value',a,s,{}):(c=__assign(__assign({},a),{excludes:__spreadArray(__spreadArray([],__read(a.excludes),!1),['heading','html','table','hr','list'],!1)}),(l=new T(i,c,s,{})).type='attr-value',l.setAttribute('stage',1)),u=d.call(this,void 0,a,s)||this,v(u,te,void 0),v(u,h,void 0),v(u,y,void 0),u.type=t,u.append(p,l),f(u,h,r),f(u,y,__spreadArray([],__read(o),!1)),f(u,te,e),u.setAttribute('name',N(n).trim().toLowerCase()),u}var d;S(),i(),r(),W(),R(),c(),qt=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']),a=new Set(['align']),s=new Set(['cite']),Gt=new Set(['cite','datetime']),Bt=new Set(['width']),Ut=new Set(['axis','align','bgcolor','height','width','valign']),Vt=new Set(__spreadArray(__spreadArray([],__read(Ut),!1),['abbr','headers','scope','rowspan','colspan'],!1)),Ht=new Set(['type']),Dt=new Set(['summary','align','bgcolor','cellpadding','cellspacing','frame','rules','width']),Zt=new Set(['clear']),Jt=new Set(['bgcolor','align','valign']),Qt={div:a,h1:a,h2:a,h3:a,h4:a,h5:a,h6:a,blockquote:s,q:s,p:a,br:Zt,pre:Bt,ins:Gt,del:Gt,ul:Ht,ol:new Set(['type','start','reversed']),li:new Set(['type','value']),table:new Set(__spreadArray(__spreadArray([],__read(Dt),!1),['border'],!1)),caption:a,tr:Jt,td:Vt,th:Vt,img:new Set(['alt','src','width','height','srcset']),font:new Set(['size','color','face']),hr:Bt,rt:new Set(['rbspan']),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','notranslations']),combooption:new Set(['name','for','inline','align'])},s=new Set,Kt={nowiki:s,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:s,inputbox:s,templatestyles:new Set(['src','wrapper']),dynamicpagelist:s,poll:new Set(['id','show-results-before-voting']),sm2:Ht,flashmp3:Ht,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'])},Xt=new RegExp('expression|(?:accelerator|-o-link(?:-source)?|-o-replace)\\\\s*:|(?:url|image(?:-set)?)\\\\s*\\\\(|attr\\\\s*\\\\([^)]+[\\\\s,]url','u'),Yt={table:Dt,td:new Set(__spreadArray(__spreadArray([],__read(Ut),!1),['scope'],!1)),th:Ut,br:Zt,caption:a,div:a,hr:Bt,h1:a,h2:a,h3:a,h4:a,h5:a,h6:a,li:Ht,p:a,pre:Bt,tr:Jt,ul:Ht},__extends(t,d=T),Object.defineProperty(t.prototype,'tag',{get:function(){return x(this,te)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'balanced',{get:function(){return!x(this,h)||x(this,y)[0]===x(this,y)[1]},enumerable:!1,configurable:!0}),t.prototype.afterBuild=function(){x(this,h).includes('\\0')&&f(this,h,this.buildFromStr(x(this,h),0)),this.parentNode&&f(this,te,this.parentNode.name),this.setAttribute('name',this.firstChild.text().trim().toLowerCase())},t.prototype.toString=function(){var t=__read(x(this,y),2),e=t[0],e=void 0===e?'':e,t=t[1],t=void 0===t?'':t;return x(this,h)?''.concat(d.prototype.toString.call(this,''.concat(x(this,h)).concat(e))).concat(t):String(this.firstChild)},t.prototype.text=function(){return x(this,h)?''.concat(d.prototype.text.call(this,''.concat(x(this,h).trim(),'\"')),'\"'):this.firstChild.text()},t.prototype.getGaps=function(){var t;return x(this,h)?x(this,h).length+(null!=(t=null==(t=x(this,y)[0])?void 0:t.length)?t:0):0},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,e=d.prototype.lint.call(this,t,e),i=this,o=i.balanced,a=i.firstChild,s=i.lastChild,l=i.type,c=i.name,i=i.tag,u=this.getValue(),p=(o||(r=this.getRootNode(),n=__assign({start:t},r.posFromIndex(t)),(o=I(s,n,'unclosed-quote',L.msg('unclosed $1','quotes'),'warning')).startIndex--,o.startCol--,p={range:[o.endIndex,o.endIndex],text:x(this,y)[0]},s.childNodes.some(function(t){return'text'===t.type&&/\\s/u.test(t.text())})?o.suggestions=[__assign({desc:'close'},p)]:o.fix=p,e.push(o)),Kt[i]);return p&&!p.has(c)||!(('ext-attr'===l?!(i in Qt):/\\{\\{[^{]+\\}\\}/u.test(c))||null!=(o=Qt[i])&&o.has(c)||/^(?:xmlns:[\\w:.-]+|data-[^:]*)$/u.test(c)||'meta'!==i&&'link'!==i&&qt.has(c))?(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(I(a,n,'illegal-attr','illegal attribute name'))):null!=(p=Yt[i])&&p.has(c)?(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(I(a,n,'obsolete-attr','obsolete attribute','warning'))):'style'===c&&'string'==typeof u&&Xt.test(u)?(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(I(s,n,'insecure-style','insecure style'))):'tabindex'===c&&'string'==typeof u&&'0'!==u.trim()&&(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),(r=I(s,n,'illegal-attr','nonzero tabindex')).suggestions=[{desc:'remove',range:[t,r.endIndex],text:''},{desc:'0 tabindex',range:[r.startIndex,r.endIndex],text:'0'}],e.push(r)),e},t.prototype.getValue=function(){var t;return x(this,h)?(t=this.lastChild.text(),x(this,y)[1]?t:t[x(this,y)[0]?'trimEnd':'trim']()):'ext-attr'===this.type||''},t.prototype.print=function(){var t=__read(x(this,y),2),e=t[0],e=void 0===e?'':e,t=t[1],t=void 0===t?'':t;return x(this,h)?d.prototype.print.call(this,{sep:''.concat(tt(x(this,h))).concat(e),post:t}):d.prototype.print.call(this)},ee=t,te=new WeakMap,h=new WeakMap,y=new WeakMap}),ye=t(function(){function t(t,e,n,r,i){void 0===r&&(r=L.getConfig()),void 0===i&&(i=[]);var o=this;if((o=_.call(this,void 0,r,i,{})||this).type=e,o.setAttribute('name',n),t){for(var a=new RegExp('([^\\\\s/](?:(?!\\0\\\\d+~)[^\\\\s/=])*)(?:((?:\\\\s|\\0\\\\d+c)*(?:=|\\0\\\\d+~)(?:\\\\s|\\0\\\\d+c)*)(?:([\"\\'])(.*?)(\\\\3|$)|(\\\\S*)))?','gsu'),s='',l=a.exec(t),c=0,u=function(){s&&(_.prototype.insertAt.call(o,new A(s,re(e),r,i,{})),s='')};l;){var p=l.index,d=l[0],h=l[1],f=l[2],g=l[3],y=l[4],v=l[5],x=l[6];s+=t.slice(c,p),/^(?:[\\w:]|\\0\\d+[t!~{}+-]\\x7F)(?:[\\w:.-]|\\0\\d+[t!~{}+-]\\x7F)*$/u.test(N(h).trim())?(p=null!=y?y:x,y=[g,v],x=new ee(ne(e),n,h,f,p,y,r,i),u(),_.prototype.insertAt.call(o,x)):s+=d,c=a.lastIndex,l=a.exec(t)}s+=t.slice(c),u()}return o}var _;S(),i(),W(),R(),c(),ge(),ne=function(t){return t.slice(0,-1)},re=function(t){return''.concat(ne(t),'-dirty')},__extends(t,_=T),t.prototype.afterBuild=function(){var t;'table-attrs'===this.type&&(t=this.parentNode,this.setAttribute('name','td'===(null==t?void 0:t.type)&&'caption'===t.subtype?'caption':null==t?void 0:t.type))},t.prototype.getAttrTokens=function(e){return this.childNodes.filter(function(t){return t instanceof ee&&(!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,o=_.prototype.lint.call(this,t,e),e=this.parentNode,a=this.length,s=this.childNodes,l=new Map,c=new Set;'html'===(null==e?void 0:e.type)&&e.closing&&this.text().trim()&&(i=__assign({start:t},this.getRootNode().posFromIndex(t)),(u=w(this,i,'no-ignored','attributes of a closing tag')).fix={range:[t,u.endIndex],text:''},o.push(u));for(var u=0;u<a;u++){var p,d=s[u];d instanceof A&&d.text().trim()?(null==i&&(i=__assign({start:t},this.getRootNode().posFromIndex(t))),(p=I(d,i,'no-ignored','containing invalid attribute')).suggestions=[{desc:'remove',range:[p.startIndex,p.endIndex],text:' '}],o.push(p)):d instanceof ee&&(p=d.name,l.has(p)?(c.add(p),l.get(p).push(d)):'class'!==p&&l.set(p,[d]",
    "))}if(0<c.size){null==i&&(i=__assign({start:t},this.getRootNode().posFromIndex(t)));try{for(var h=__values(c),f=h.next();!f.done;f=h.next())!function(e){o.push.apply(o,__spreadArray([],__read(l.get(e).map(function(t){return I(t,i,'no-duplicate',L.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 o},t.prototype.print=function(){return String(this)?'<span class=\"wpb-'.concat(this.type,'\">').concat(this.childNodes.map(function(t){return t.print(t instanceof A?{class:'attr-dirty'}:void 0)}).join(''),'</span>'):''},ie=t}),ve={};e(ve,{PreToken:function(){return xe}});var xe,_e=t(function(){function t(t,e,n){void 0===e&&(e=L.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 b(i,e,n),new b(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=''.concat(c).concat(t)}return r=u.call(this,t,e,n,{})||this,m(r,'type','ext-inner'),r.setAttribute('stage',10),r}var u;r(),W(),R(),de(),__extends(t,u=T),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}),me={};e(me,{ParamTagToken:function(){return be}});var be,we,Ae,Se,ke,Ie,Ne,Ce,je,Fe,Oe,Te,Re,We,$e,Le,Pe,Ee,Me=t(function(){function t(t,e,n,r){void 0===e&&(e=L.getConfig()),void 0===n&&(n=[]),void 0===r&&(r={});var i,r=o.call(this,void 0,e,n,{})||this;return m(r,'type','ext-inner'),t&&(i=A,r.append.apply(r,__spreadArray([],__read(t.split('\\n').map(function(t){return new i(t,'param-line',e,n,{})})),!1))),r}var o;S(),W(),R(),c(),__extends(t,o=T),t.prototype.toString=function(){return o.prototype.toString.call(this,'\\n')},t.prototype.text=function(){return o.prototype.text.call(this,'\\n')},t.prototype.getGaps=function(){return 1},t.prototype.lint=function(e){var n,r=this;return void 0===e&&(e=this.getAbsoluteIndex()),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(''):String(t)).trim();return e&&!(0<=n?/^[a-z]+(?:\\[\\])?\\s*(?:=|$)/iu:/^[a-z]+(?:\\[\\])?\\s*=/iu).test(e)}).map(function(t){null==n&&(n=__assign({start:e},r.getRootNode().posFromIndex(e)));t=I(t,n,'no-ignored',L.msg('invalid parameter of <$1>',r.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'})},be=t}),ze=t(function(){function t(t,e,n,r,i,o){void 0===n&&(n='plain'),void 0===r&&(r=L.getConfig());var a=this;return(a=s.call(this,t,r,i=void 0===i?[]:i,o)||this).type=n,a}var s;W(),R(),__extends(t,s=T),t.prototype.lint=function(){return[]},we=t}),qe=t(function(){function t(t,e,n,r){void 0===n&&(n=L.getConfig());var i=l.call(this,void 0,n,r=void 0===r?[]:r)||this,t=(v(i,Se),m(i,'type','heading'),v(i,Ae,void 0),f(i,Ae,t),new T(e[0],n,r)),e=(t.type='heading-title',t.setAttribute('stage',2),new we(e[1],/^[^\\S\\n]*$/u,'heading-trail',n,r,{}));return i.append(t,e),i}var l;S(),W(),R(),ze(),__extends(t,l=T),Object.defineProperty(t.prototype,'level',{get:function(){return x(this,Ae)},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var t=x(this,Se,ke);return''.concat(t).concat(String(this.firstChild)).concat(t).concat(String(this.lastChild))},t.prototype.text=function(){var t=x(this,Se,ke);return''.concat(t).concat(this.firstChild.text()).concat(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 n,e=l.prototype.lint.call(this,t,e),r=this.firstChild,i=this.level,o=String(r),a=r.childNodes.filter(function(t){return'quote'===t.type}),s=a.filter(function(t){return t.bold}),a=a.filter(function(t){return t.italic});return 1===this.level&&(n=__assign({start:t},this.getRootNode().posFromIndex(t)),e.push(I(r,n,'h1','<h1>'))),(o.startsWith('=')||o.endsWith('='))&&(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(I(r,n,'unbalanced-header',L.msg('unbalanced $1 in a section header','\"=\"')))),this.closest('html-attrs, table-attrs')&&(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(w(this,n,'parsing-order','section header in a HTML tag'))),s.length%2&&(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(I(s[s.length-1],__assign(__assign({},n),{start:t+i,left:n.left+i}),'format-leakage',L.msg('unbalanced $1 in a section header','bold apostrophes')))),a.length%2&&(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(I(a[a.length-1],{start:t+i},'format-leakage',L.msg('unbalanced $1 in a section header','italic apostrophes')))),e},t.prototype.print=function(){var t=x(this,Se,ke);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},Ie=t,Ae=new WeakMap,Se=new WeakSet,ke=function(){return'='.repeat(this.level)}}),Ge=t(function(){function t(t,e,n,r){void 0===n&&(n=L.getConfig());var i=o.call(this,void 0,n,r=void 0===r?[]:r)||this,t=(m(i,'type','parameter'),new T('number'==typeof t?void 0:t,n,r,{})),e=new T(e,n,r);return t.type='parameter-key',e.type='parameter-value',e.setAttribute('stage',2),i.append(t,e),i}var o;i(),S(),W(),R(),Ne=function(t){return t.text().replace(/^[ \\t\\n\\0\\v]+|([^ \\t\\n\\0\\v])[ \\t\\n\\0\\v]+$/gu,'$1')},__extends(t,o=T),Object.defineProperty(t.prototype,'anon',{get:function(){return 0===this.firstChild.length},enumerable:!1,configurable:!0}),t.prototype.afterBuild=function(){var t,e;this.anon||(t=this.parentNode,e=this.firstChild,e=Ne(e),this.setAttribute('name',e),t&&t.getArgs(e,!1,!1).add(this))},t.prototype.toString=function(){return this.anon?String(this.lastChild):o.prototype.toString.call(this,'=')},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=new RegExp('https?://'.concat(V).concat(H,'$'),'iu').exec(n.text()))?void 0:r[0];return r&&new URL(r).search&&((r=I(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},Ce=t}),Be=t(function(){function t(t,e,n,r){void 0===n&&(n=L.getConfig());var i=y.call(this,void 0,n,r=void 0===r?[]:r,{})||this,o=(v(i,Te),v(i,We),m(i,'type','template'),m(i,'modifier',''),v(i,Fe,!1),v(i,Oe,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&&!x(i,Fe)){var l=__read(t.split(':')),c=l[0],u=l.slice(1),l=(p=N(c))[0<u.length?'trimStart':'trim'](),p=l.toLowerCase(),a=a[p],o=o.includes(l);if(o||je.has(a)||s&&a){i.setAttribute('name',null!=a?a:p),i.type='magic-word';s=new RegExp('^\\\\s*'.concat(l,'\\\\s*$'),o?'u':'iu'),a=new we(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 A(h.join('='),'invoke-'.concat(d?'function':'module'),n,r);y.prototype.insertAt.call(i,h)}}}if('template'===i.type){c=N(t).trim();if(!i.normalizeTitle(c,10,!0).valid)throw r.pop(),new SyntaxError('非法的模板名称');u=new A(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(Ce.bind.apply(Ce,__spreadArray(__spreadArray([void 0],__read(u),!1),[n,r],!1))))}return i.seal('modifier'),i}var y;i(),S(),ut(),r(),W(),R(),Ge(),c(),ze(),je=new Set(['pageid','articlepath','server','servername','scriptpath','stylepath']),__extends(t,y=T),t.prototype.setModifier=function(t){var e=__read(this.getAttribute('config').parserFunction,4),n=e[2],e=e[3],r=N(t).trim();return!(t&&!r.endsWith(':')||(r=r.slice(0,-1).toLowerCase(),n=n.includes(r),e=e.includes(r),!(x(this,Fe)&&n||!x(this,Fe)&&(e||''===t)||(E.running||1<this.length)&&(n||e||''===t)))||(this.setAttribute('modifier',t),f(this,Fe,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))},t.prototype.toString=function(){return'{{'.concat(this.modifier).concat('magic-word'===this.type?''.concat(String(this.firstChild)).concat(1===this.length?'':':').concat(this.childNodes.slice(1).map(String).join('|')):y.prototype.toString.call(this,'|'),'}}')},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?''.concat(r.text()).concat(1===n?'':':').concat(J(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),a=this.type,s=this.childNodes,l=this.length;return this.isTemplate()&&(void 0!==(n=g(th",
    "is,Te,Re).call(this)).fragment&&(r=__assign({start:t},this.getRootNode().posFromIndex(t)),o=s['template'===a?0:1],i=I(o,r,'no-ignored','useless fragment'),(o=o.childNodes.find(function(t){return'text'===t.type&&t.data.includes('#')}))&&(i.fix={range:[i.startIndex+o.getRelativeIndex()+o.data.indexOf('#'),i.endIndex],text:''}),e.push(i)),n.valid||(null==r&&(r=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(I(s[1],r,'invalid-invoke','illegal module name'))),'magic-word'===a&&2===l?(null==r&&(r=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(w(this,r,'invalid-invoke','missing module function'))):0<(o=this.getDuplicatedArgs()).length&&(null==r&&(r=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push.apply(e,__spreadArray([],__read(o.flatMap(function(t){return __read(t,2)[1]}).map(function(t){return I(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?g(this,We,$e).call(this,t):t.name&&this.getArgs(t.name,!1,!1).add(t),t},t.prototype.getAllArgs=function(){return this.childNodes.filter(M('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 x(this,Oe).has(i)?r=x(this,Oe).get(i):(r=new Set(this.getAllArgs().filter(function(t){t=t.name;return i===t})),x(this,Oe).set(i,r)),r},t.prototype.getDuplicatedArgs=function(){return __spreadArray([],__read(x(this,Oe)),!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,i=this.constructor.name;if('template'===e)throw new Error(''.concat(i,'.getPossibleValues 方法仅供特定魔术字使用!'));switch(n){case'if':case'ifexist':case'ifexpr':case'iferror':t=2;break;case'ifeq':t=3;break;default:throw new Error(''.concat(i,'.getPossibleValues 方法仅供特定魔术字使用!'))}for(var o=r.slice(t,t+2).map(function(t){return __read(t.childNodes,2)[1]}),a=0;a<o.length;){var s=o[a].childNodes.filter(function(t){return t.text().trim()}),l=s.length,s=s[0];if(0===l)o.splice(a,1);else if(1<l||'magic-word'!==s.type)a++;else try{var c=s.getPossibleValues();o.splice.apply(o,__spreadArray([a,1],__read(c),!1)),a+=c.length}catch(c){a++}}return o},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(tt(i)).concat('magic-word'===t?''.concat(r.print()).concat(1===n?'':':').concat(et(e.slice(1),{sep:'|'})):et(e,{sep:'|'}),'}}</span>')},Le=t,Fe=new WeakMap,Oe=new WeakMap,Te=new WeakSet,Re=function(){var t='template'===this.type,e=this.childNodes[t?0:1];return this.normalizeTitle(e.text(),t?10:828)},We=new WeakSet,$e=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))}}}),Ue=t(function(){function t(){var t=e.apply(this,__spreadArray([],__read(arguments),!1))||this;return m(t,'type','hidden'),t}var e;ue(),R(),e=Pt(T),__extends(t,e),Pe=t}),Ve=t(function(){function t(t,e,n){void 0===e&&(e=L.getConfig());var r=a.call(this,void 0,e,n=void 0===n?[]:n,{})||this;m(r,'type','arg');for(var i,o=0;o<t.length;o++)0===o?i=new A(t[o],'arg-name',e,n,{}):1<o?i=new Pe(t[o],e,n,{}):((i=new T(t[o],e,n)).type='arg-default',i.setAttribute('stage',2)),a.prototype.insertAt.call(r,i);return r}var a;i(),S(),W(),R(),c(),Ue(),__extends(t,a=T),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(){return'{{{'.concat(a.prototype.toString.call(this,'|'),'}}}')},t.prototype.text=function(){return'{{{'.concat(J(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+String(o).length,e)),!1)),0<i.length&&(r=__assign({start:t},this.getRootNode().posFromIndex(t)),n.push.apply(n,__spreadArray([],__read(i.map(function(t){t=I(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},Ee=t}),He={};e(He,{parseBraces:function(){return De}});var De,Ze=t(function(){i(),qe(),Be(),Ve(),De=function(f,g,y){for(var t,e,v,x,_=''.concat(null!=(t=g.excludes)&&t.includes('heading')?'':'^(\\0\\\\d+c)*={1,6}|','\\\\[\\\\[|\\\\{{2,}|-\\\\{(?!\\\\{)'),m=__read(g.parserFunction,4)[3],b=[],w={'=':'\\n','{':'\\\\}{2,}|\\\\|','-':'\\\\}-','[':'\\\\]\\\\]'},A=new Map([['!','!'],['!!','+'],['(!','{'],['!)','}'],['!-','-'],['=','~']]),S=new RegExp(_,'gmu'),k=S.exec(f),I=f.includes('}}'),n=function(){function t(t){a[a.length-1].push(t.slice(l,r))}null!=k&&k[1]&&(u=__read(k,2)[1].length,k[0]=k[0].slice(u),k.index+=u);var e=null!=k?k:{0:'\\n',index:f.length},n=e[0],r=e.index,e=null!=(v=b.pop())?v:{},i=e[0],o=e.index,a=e.parts,s=e.findEqual,l=e.pos,s='='===n&&s;if(']]'===n||'}-'===n)x=r+2;else if('\\n'===n){x=r+1;var c=null!=(v=b[b.length-1])?v:{},u=c.pos,c=c.findEqual;(void 0===u||c||''!==N(f.slice(u,o)))&&(p=/^(={1,6})(.+)\\1((?:\\s|\\0\\d+c\\x7F)*)$/u.exec(f.slice(o,r)))&&(f=''.concat(f.slice(0,o),'\\0').concat(y.length,'h').concat(f.slice(r)),x=o+4+String(y.length).length,new Ie(p[1].length,p.slice(2),g,y))}else if('|'===n||s)x=r+1,t(f),'|'===n&&a.push([]),e.pos=x,e.findEqual='|'===n,b.push(e);else if(n.startsWith('}}')){var u=n.slice(0,Math.min(i.length,3)),c=i.length-u.length,p=y.length,s=(x=r+u.length,t(f),!1),d='t';if(3===u.length){u=1<(h=a.map(function(t){return t.join('=')})).length&&N(h[1]).trim();new Ee(h,g,y),u&&u.endsWith(':')&&m.includes(u.slice(0,-1).toLowerCase())&&(d='s')}else try{new Le(a[0][0],a.slice(1),g,y);var h=N(a[0][0]).trim();A.has(h)?d=A.get(h):/^(?:filepath|(?:full|canonical)urle?):.|^server$/iu.test(h)?d='m':/^#vardefine:./iu.test(h)&&(d='c')}catch(h){if(!(h instanceof SyntaxError&&'非法的模板名称'===h.message))throw h;s=!0}s||(f=''.concat(f.slice(0,o+c),'\\0').concat(p).concat(d,'').concat(f.slice(x)),x=o+c+3+String(p).length,1<c?b.push({0:i.slice(0,c),index:o,pos:o+c,parts:[[]]}):1===c&&'-'===f[o-1]&&b.push({0:'-{',index:o-1,pos:o+1,parts:[[]]}))}else x=r+n.length,n.startsWith('{')&&(k.pos=x,k.parts=[[]]),b.push.apply(b,__spreadArray(__spreadArray([],__read('0'in e?[e]:[]),!1),[k],!1));I=I&&f.slice(x).includes('}}');u=b[b.length-1];!I&&null!=(v=null==u?void 0:u[0])&&v.startsWith('{')&&(b.pop(),u=b[b.length-1]),(S=new RegExp(_+(u?'|'.concat(w[u[0][0]]).concat(u.findEqual?'|=':''):''),'gmu')).lastIndex=x,k=S.exec(f)};k||void 0!==x&&x<=f.length&&null!=(e=null==(e=b[b.length-1])?void 0:e[0])&&e.startsWith('=');)n();return f}}),Je={};e(Je,{InputboxToken:function(){return Qe}});var Qe,Ke,Xe=t(function(){function t(t,e,n){void 0===e&&(e=L.getConfig()),void 0===n&&(n=[]);var r=Symbol('InputboxToken'),i=n.length;return n.push(r),t=t&&De(t,e,n),n.splice(i,1),o.call(this,t,e,n,{})||this}var o;Ze(),W(),Me(),__extends(t,o=be),Qe=t}),Ye=t(function(){function t(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=L.getConfig());t=i.call(this,t,n,r=void 0===r?[]:r)||this;return m(t,'type','comment'),m(t,'closed'),t.closed=e,t}var i;S(),ue(),W(),pe(),i=Pt(o),__extends(t,i),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',L.msg('unclosed $1','HTML comment'))).fix={range:[t.endIndex,t.endIndex],text:'--\\x3e'},[t])},t.prototype.toString=function(){return'\\x3c!--'.concat(this.innerText).concat(this.closed?'--\\x3e':'')},t.prototype.print=function(){return i.prototype.print.call(this,{pre:'&lt;!--',post:this.closed?'--&gt;':''})},Ke=t}),tn={};e(tn,{NestedToken:function(){return en}});var en,nn,l,rn,on,an=t(function(){function t(t,e,n,a,s){void 0===a&&(a=L.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 Vn(e,n,r,i,a,s):(e=t.endsWith('--\\x3e'),new Ke(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 b(n,a,s),''.concat(e,'\\0').concat(s.length,'c')}),e=o.call(this,t,a,s,{})||this,m(e,'type','ext-inner'),e}var o;S(),W(),R(),Dn(),de(),Ye(),__extends(t,o=T),t.prototype.lint=function(n,t){var r,i=this;return void 0===n&&(n=this.getAbsoluteIndex()),__spreadArray(__spreadArray([],__read(o.prototype.lint.call(this,n,t)),!1),__read(this.childNodes.filter(function(t){return'ext'!==t.type&&'comment'!==t.type&&(t=String(t).trim())&&!/^<!--.*-->$/su.test(t)}).map(function(t){null==r&&(r=__assign({start:n},i.getRootNode().posFromIndex(n)));var e=I(t,r,'no-ignored',L.msg('invalid content in <$1>',i.name));return e.suggestions=[{desc:'remove',range:[e.startIndex,e.endIndex],text:''},{desc:'comment',range:[e.startIndex,e.startIndex],text:'\\x3c!--'.concat(String(t),'--\\x3e')}],e})),!1)},en=t}),sn=t(function(){function t(t,e,n,r,i){void 0===n&&(n=L.getConfig()),void 0===i&&(i='|');var o=u.call(this,void 0,n,r=void 0===r?[]:r,{})||this;return v(o,nn,!0),v(o,l,void 0),v(o,rn,void 0),o.insertAt(new A(t,'link-target',n,r,{})),void 0!==e&&((t=new T(e,n,r,{})).type='link-text',t.setAttribute('stage',10),o.insertAt(t)),f(o",
    ",l,i),o}var u;S(),r(),W(),R(),c(),__extends(t,u=T),t.prototype.afterBuild=function(){f(this,rn,this.getTitle()),x(this,l).includes('\\0')&&f(this,l,this.buildFromStr(x(this,l),0)),this.setAttribute('name',x(this,rn).title)},t.prototype.setAttribute=function(t,e){'bracket'===t?f(this,nn,e):'title'===t?f(this,rn,e):u.prototype.setAttribute.call(this,t,e)},t.prototype.toString=function(){var t=u.prototype.toString.call(this,x(this,l));return x(this,nn)?'[['.concat(t,']]'):t},t.prototype.text=function(){var t=u.prototype.text.call(this,'|');return x(this,nn)?'[['.concat(t,']]'):t},t.prototype.getAttribute=function(t){return'title'===t?x(this,rn):'padding'===t?2:u.prototype.getAttribute.call(this,t)},t.prototype.getGaps=function(t){return 0===t?x(this,l).length:1},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i,e=u.prototype.lint.call(this,t,e),o=__read(this.childNodes,2),a=o[0],o=o[1],s=this.type,l=x(this,rn),c=l.encoded,l=l.fragment;return a.childNodes.some(function(t){return'template'===t.type})&&(n=__assign({start:t},this.getRootNode().posFromIndex(t)),e.push(I(a,n,'unknown-page','template in an internal link target','warning'))),c&&(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(I(a,n,'url-encoding','unnecessary URL encoding in an internal link'))),'link'!==s&&'category'!==s||(r=null==o?void 0:o.childNodes.find(function(t){return'text'===t.type&&t.data.includes('|')}))&&(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),(i=I(o,n,'pipe-like','additional \"|\" in the link text','warning')).suggestions=[{desc:'escape',range:[i.startIndex+r.getRelativeIndex(),i.startIndex+r.getRelativeIndex()+r.data.length],text:r.data.replace(/\\|/gu,'&#124;')}],e.push(i)),'link'!==s&&void 0!==l&&(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),r=I(a,n,'no-ignored','useless fragment'),(i=a.childNodes.find(function(t){return'text'===t.type&&t.data.includes('#')}))&&(r.fix={range:[r.startIndex+i.getRelativeIndex()+i.data.indexOf('#'),r.endIndex],text:''}),e.push(r)),e},t.prototype.getTitle=function(t){return this.normalizeTitle(this.firstChild.text(),0,t,!0,!0)},t.prototype.print=function(){return u.prototype.print.call(this,x(this,nn)?{pre:'[[',post:']]',sep:x(this,l)}:{sep:x(this,l)})},on=t,nn=new WeakMap,l=new WeakMap,rn=new WeakMap});function ln(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('^(?:(?:'.concat(n.protocol,'|//)').concat(V,'|\\0\\\\d+m)').concat(H,'$'),'iu').test(o))return e;o.startsWith('[[')&&o.endsWith(']]')&&(o=o.slice(2,-2));var a=L.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 cn,u,un,pn,dn,hn,fn,gn,yn,vn,xn,_n,mn,bn,wn,An=t(function(){function t(n,r,i,t){void 0===i&&(i=L.getConfig()),void 0===t&&(t=[]);function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];s=c.apply(this,__spreadArray([],__read(t),!1))||this,v(s,un),m(s,'type','image-parameter'),v(s,u,'')}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('^(\\\\s*)'.concat(e.replace('$1','(.*)'),'(\\\\s*)$'),'u')]}).find(function(t){var t=__read(t,3),e=t[1],t=t[2];return(a=t.exec(n))&&(4!==a.length||!1!==ln(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),f(s,u,n)):(e(a[2],i,t,{}),f(s,u,''.concat(a[1]).concat(l[0]).concat(a[3]))),s.setAttribute('name',l[1])}var c;i(),S(),W(),R(),cn=new Set(['alt','link','lang','page','caption']),__extends(t,c=T),Object.defineProperty(t.prototype,'link',{get:function(){return'link'===this.name?ln('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)||cn.has(this.name)||this.setAttribute('name','invalid')},t.prototype.toString=function(){return x(this,u)?x(this,u).replace('$1',c.prototype.toString.call(this)):c.prototype.toString.call(this)},t.prototype.text=function(){return(x(this,u)?x(this,u).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,x(this,u).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():g(this,un,pn).call(this)||c.prototype.text.call(this)},t.prototype.print=function(){return x(this,u)?'<span class=\"wpb-image-parameter\">'.concat(x(this,u).replace('$1','<span class=\"wpb-image-caption\">'.concat(et(this.childNodes),'</span>')),'</span>'):c.prototype.print.call(this,{class:'image-caption'})},dn=t,u=new WeakMap,un=new WeakSet,pn=function(){return x(this,u)&&!x(this,u).includes('$1')}}),Sn=t(function(){function t(t,e,n,r,i){void 0===n&&(n=L.getConfig()),void 0===r&&(r=[]);var t=f.call(this,t,void 0,n,r,i=void 0===i?'|':i)||this,o=(v(t,vn),m(t,'type','file'),t.getTitle(!0).extension);return t.append.apply(t,__spreadArray([],__read(yn('-{','}-','|',e).map(function(t){return new dn(t,o,n,r)})),!1)),t}var f;i(),S(),W(),sn(),An(),hn=new Set(['manualthumb','frameless','framed','thumbnail']),fn=new Set(['left','right','center','none']),gn=new Set(['baseline','sub','super','top','text-top','middle','bottom','text-bottom']),yn=function(t,e,n,r){if(void 0===r)return[];for(var i=new RegExp(''.concat([t,e,n].map(Z).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,f=on),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,o=f.prototype.lint.call(this,t,e),a=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(a.map(function(t){return t.name}))),!1).filter(function(t){return'invalid'!==t}),s=e.filter(function(t){return hn.has(t)}),l=e.filter(function(t){return fn.has(t)}),c=e.filter(function(t){return gn.has(t)});if(this.closest('ext-link-text')&&''!==(null==(i=this.getValue('link'))?void 0:i.trim())&&o.push(w(this,{start:t},'nested-link','internal link in an external link')),!(a.length===e.length&&s.length<2&&l.length<2&&c.length<2)){var u=__assign({start:t},this.getRootNode().posFromIndex(t)),p=function(e,n){return function(t){return I(t,u,'no-duplicate',L.msg(''.concat(e,' image $1 parameter'),n))}};try{for(var d=__values(e),h=d.next();!h.done;h=d.next())!function(e){var t=a.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&&o.push.apply(o,__spreadArray([],__read(t.map(p('duplicated',e))),!1))}(h.value)}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}1<s.length&&o.push.apply(o,__spreadArray([],__read(a.filter(function(t){t=t.name;return hn.has(t)}).map(p('conflicting','frame'))),!1)),1<l.length&&o.push.apply(o,__spreadArray([],__read(a.filter(function(t){t=t.name;return fn.has(t)}).map(p('conflicting','horizontal-alignment'))),!1)),1<c.length&&o.push.apply(o,__spreadArray([],__read(a.filter(function(t){t=t.name;return gn.has(t)}).map(p('conflicting','vertical-alignment'))),!1))}return o},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 g(this,vn,xn).call(this,hn,'框架')},t.prototype.getHorizAlignArgs=function(){return g(this,vn,xn).call(this,fn,'水平对齐')},t.prototype.getVertAlignArgs=function(){return g(this,vn,xn).call(this,gn,'垂直对齐')},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()},_n=t,vn=new WeakSet,xn=function(e,t){return this.getAllArgs().filter(function(t){t=t.name;return e.has(t)})}}),kn=t(function(){function t(t,e,n,r,i){void 0===r&&(r=L.getConfig()),void 0===i&&(i=[]);var o=this;if(void 0!==n){var a,s=i.length;(a=new T(n,r,i)).type='plain';for(var l=1;l<11;l++)a.parseOnce();i.splice(s,1)}return o=c.call(this,e,null==a?void 0:a.toString(),r,i)||this,v(o,mn),o.setAttribute('bracket',!1),o.type=''.concat(t,'-image'),o}var c;S(),r(),W(),R(),Sn(),__extends(t,c=_n),t.prototype.getTitle=function(){var t='imagemap-image'===this.type;return this.normalizeTitle(String(this.firstChild),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},t.prototype.afterBuild=function(){g(this,mn,bn).call(this,this.getTitle())},wn=t,mn=new WeakSet,bn=function(t){this.setAttribute('title',t)}}),In={};e(In,{GalleryToken:function(){return jn}});var Nn,Cn,jn,Fn,On,p,Tn,Rn,Wn=t(function(){function t(t,e,n){void 0===e&&(e=L.getConfig());var r,i,o,a=f.call(this,void 0,e,n=void 0===n?[]:n,{})||this;v(a,Nn),m(a,'type','ext-in",
    "ner');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],g(a,Nn,Cn).call(a,u)?f.prototype.insertAt.call(a,new wn('gallery',u,p,e,n)):f.prototype.insertAt.call(a,new b(d,e))):f.prototype.insertAt.call(a,d.trim()?new b(d,e):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;W(),R(),kn(),de(),__extends(t,f=T),t.prototype.toString=function(){return f.prototype.toString.call(this,'\\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=String(s),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:L.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'})},jn=t,Nn=new WeakSet,Cn=function(t){return this.normalizeTitle(t,6,!0,!0).valid}}),$n=t(function(){function t(){var t=n.apply(this,__spreadArray([],__read(arguments),!1))||this;return m(t,'type','link'),t}var n;S(),sn(),__extends(t,n=on),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},Fn=t}),Ln=t(function(){function t(t,e,n,r){void 0===n&&(n=L.getConfig());var i=this;return(i=k.call(this,t,n,r=void 0===r?[]:r,{})||this).type=e?'ext-link-url':'free-ext-link',i}var k;S(),W(),R(),__extends(t,k=T),t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i,o=k.prototype.lint.call(this,t,e),e='[,;。:!?()]+'.concat('ext-link-url'===this.type?'|\\\\|+':''),a=new RegExp(e,'u'),s=new RegExp(e,'gu');try{for(var l=__values(this.childNodes),c=l.next();!c.done;c=l.next()){var u=c.value,p=u.type,d=u.data;if('text'===p&&a.test(d)){null==i&&(i=__assign({start:t},this.getRootNode().posFromIndex(t)));var h=I(u,i,'unterminated-url','','warning');s.lastIndex=0;for(var f=s.exec(d);f;f=s.exec(d)){var g=f.index,y=f[0],v=d.slice(0,g).split('\\n'),x=v.length,_=v[x-1].length,m=h.startIndex+g,b=h.startLine+x-1,w=1===x?h.startCol+_:_,A=y.startsWith('|'),S=__assign(__assign({},h),{message:L.msg('$1 in URL',A?'\"|\"':'full-width punctuation'),startIndex:m,endIndex:m+y.length,startLine:b,endLine:b,startCol:w,endCol:w+y.length});A?1===y.length&&(S.suggestions=[{desc:'whitespace',range:[m,m+1],text:' '}]):S.suggestions=[{desc:'whitespace',range:[m,m],text:' '},{desc:'escape',range:[m,S.endIndex],text:encodeURI(y)}],o.push(S)}}}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return o},On=t}),Pn=t(function(){function t(t,e,n,r,i){void 0===e&&(e=''),void 0===n&&(n=''),void 0===r&&(r=L.getConfig());var o=a.call(this,void 0,r,i=void 0===i?[]:i,{})||this,t=(m(o,'type','ext-link'),v(o,p,void 0),t&&/\\0\\d+f\\x7F/u.test(t)?i[Number(t.slice(1,-2))]:new On(t,!0,r,i));return o.insertAt(t),f(o,p,e),n&&((t=new T(n,r,i,{})).type='ext-link-text',t.setAttribute('stage',10),o.insertAt(t)),o}var a;r(),S(),W(),R(),Ln(),__extends(t,a=T),t.prototype.toString=function(){return 1===this.length?'['.concat(a.prototype.toString.call(this)).concat(x(this,p),']'):'['.concat(a.prototype.toString.call(this,x(this,p)),']')},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 x(this,p).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(x(this,p),']')}:{pre:'[',sep:x(this,p),post:']'})},Tn=t,p=new WeakMap}),En=t(function(){function t(t,e,n,r,i){void 0===r&&(r=L.getConfig());var o=a.call(this,void 0,r,i=void 0===i?[]:i)||this;return m(o,'type','imagemap-link'),o.append(t,new(2===e.length?Fn.bind.apply(Fn,__spreadArray(__spreadArray([void 0],__read(e),!1),[r,i],!1)):Tn.bind.apply(Tn,__spreadArray(__spreadArray([void 0],__read(e),!1),[r,i],!1))),new b(n,r,i)),o}var a;W(),R(),de(),$n(),Pn(),__extends(t,a=T),Rn=t}),Mn={};e(Mn,{ImagemapToken:function(){return zn}});var zn,qn=t(function(){function t(t,e,n){void 0===e&&(e=L.getConfig());var r,i,o=_.call(this,void 0,e,n=void 0===n?[]:n,{})||this;if(m(o,'type','ext-inner'),t){var t=t.split('\\n'),a=new Set(e.protocol.split('|')),s=b,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 wn('imagemap',g,0<y.length?y.join('|'):void 0,e,n);_.prototype.insertAt.call(o,v),l=!1;continue}c=!0}else{if('desc'===d.trim().split(/[\\t ]/u)[0]){_.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){_.prototype.insertAt.call(o,new Rn(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)){_.prototype.insertAt.call(o,new Rn(d.slice(0,g),v.slice(1),y.slice(y.indexOf(']')+1),e,n));continue}}}_.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 _;S(),ut(),W(),R(),de(),kn(),En(),__extends(t,_=T),Object.defineProperty(t.prototype,'image',{get:function(){return this.childNodes.find(M('imagemap-image'))},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return _.prototype.toString.call(this,'\\n')},t.prototype.text=function(){return _.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=_.prototype.lint.call(this,t,e),n=__assign({start:t},this.getRootNode().posFromIndex(t));return this.image?e.push.apply(e,__spreadArray([],__read(this.childNodes.filter(function(t){var e=String(t).trim();return'noinclude'===t.type&&e&&!e.startsWith('#')}).map(function(t){return I(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 _.prototype.print.call(this,{sep:'\\n'})},zn=t}),Gn={};e(Gn,{NowikiToken:function(){return Bn}});var Bn,Un,Vn,Hn=t(function(){function t(){var t=r.apply(this,__spreadArray([],__read(arguments),!1))||this;return m(t,'type','ext-inner'),t}var r;S(),W(),pe(),__extends(t,r=o),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('<\\\\s*(?:\\\\/\\\\s*)'.concat('nowiki'===e?'':'?','(').concat(e,')\\\\b'),'giu')):((n=w(this,{start:t},'void-ext',L.msg('nothing should be in <$1>',e))).fix={range:[t-1,n.endIndex+e.length+3],text:'/>'},[n])},Bn=t}),Dn=t(function(){function t(t,e,n,r,i,o){void 0===i&&(i=L.getConfig()),void 0===o&&(o=[]);var a,s=this,l=t.toLowerCase(),e=new ie(e&&e.trimStart()===e?' '.concat(e):e,'ext-attrs',l,i,o),c=__assign(__assign({},i),{ext:Un(i.ext,l),excludes:__spreadArray([],__read(null!=(a=i.excludes)?a:[]),!1)});switch(c.inExt=!0,l){case'tab':c.ext=Un(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':_e();var u=new(d(ve).PreToken)(n,c,o);break;case'dynamicpagelist':Me(),u=new(d(me).ParamTagToken)(n,c,o);break;case'inputbox':c.excludes.push('heading'),Xe(),u=new(d(Je).InputboxToken)(n,c,o);break;case'references':an(),u=new(d(tn).NestedToken)(n,/<!--.*?(?:-->|$)|<(ref)(\\s[^>]*)?>(.*?)<\\/(ref\\s*)>/gisu,['ref'],c,o);break;case'choose':an(),u=new(d(tn).NestedToken)(n,/<(option|choicetemplate)(\\s[^>]*)?>(.*?)<\\/(\\1)>/gsu,['option','choicetemplate'],c,o);break;case'combobox':an(),u=new(d(tn).NestedToken)(n,/<(combooption)(\\s[^>]*)?>(.*?)<\\/(combooption\\s*)>/gisu,['combooption'],c,o);break;case'gallery':Wn(),u=new(d(In).GalleryToken)(n,c,o);break;case'imagemap':qn(),u=new(d(Mn).ImagemapToken)(n,c,o);break;default:Hn(),u=new(d(Gn).NowikiToken)(n,c)}return u.setAttribute('name',l),u.type='ext-inner',s=p.call(this,t,e,u,r,i,o)||this,m(s,'type','ext'),s.seal('closed',!0),s}var p;S(),W(),R(),he(),ye(),Un=function(t,e){t=new Set(t);return t.delete(e),__spreadArray([],__read(t),!1)},__extends(t,p=Mt),t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,e=p.prototype.lint.call(this,t,e);return'nowiki'!==this.name&&this.closest('html-attrs, table-attrs')&&(n=__assign({start:t},this.getRootNode().posFromIndex(t)),e.push(w(this,n,'parsing-order','extension tag in HTML tag attributes'))),'ref'===this.name&&this.closest('heading-title')&&(null==n&&(n=__assign({start:t},this.getRootNode().posFromIndex(t))),e.push(w(this,n,'var-anchor','variable anchor in a section header'))),e},Vn=t}),Zn={};e(Zn,{parseCommentAndExt:function(){return Jn}});var Jn,Qn,Kn,Xn,Yn,_,tr,er,nr=t(function(){ce(),de(),fe(),Dn(),Ye(),Jn=function(e,u,p,t){function n(){var t=e.indexOf(r);return{i:t,j:e.indexOf('</onlyinclude>',t+i)}}var r='<onlyinclud",
    "e>',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 b(t,u,p),l+='\\0'.concat(p.length-1,'c')};-1!==a&&-1!==s;){var d='\\0'.concat(p.length,'e');new Lt(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('\\x3c!--.*?(?:--\\x3e|$)|<'.concat(h,'(?:\\\\s[^>]*)?>|</').concat(h,'\\\\s*>|<(').concat(o,')(\\\\s[^>]*?)?(?:/>|>(.*?)</(\\\\1\\\\s*)>)|<(').concat(t,')(\\\\s[^>]*?)?(?:/>|>(.*?)(?:</(').concat(t,'\\\\s*)>|$))'),'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 Vn(e,n,r,i,u,p):t.startsWith('\\x3c!--')?(e=t.endsWith('--\\x3e'),new Ke(t.slice(4,e?-3:void 0),e,u,p)):o?new zt(o,a,s,l,u,p):new b(t,u,p),c})}}),rr=t(function(){function t(t,e,n,r,i,o){void 0===i&&(i=L.getConfig());i=l.call(this,void 0,i,o=void 0===o?[]:o)||this;return m(i,'type','html'),v(i,Yn,void 0),v(i,_,void 0),v(i,tr,void 0),i.insertAt(e),i.setAttribute('name',t.toLowerCase()),f(i,Yn,n),f(i,_,r),f(i,tr,t),i}var l;S(),i(),W(),R(),Qn=new Set(['if','ifeq','ifexpr','ifexist','iferror','switch']),Kn=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']),Xn=new Set(['strike','big','center','font','tt']),__extends(t,l=T),Object.defineProperty(t.prototype,'selfClosing',{get:function(){return x(this,_)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,'closing',{get:function(){return x(this,Yn)},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return'<'.concat(this.closing?'/':'').concat(x(this,tr)).concat(l.prototype.toString.call(this)).concat(x(this,_)?'/':'','>')},t.prototype.text=function(){var t=this.closing,e=''.concat(x(this,tr)).concat(t?'':l.prototype.text.call(this));return'<'.concat(t?'/':'').concat(e).concat(x(this,_)?'/':'','>')},t.prototype.getAttribute=function(t){return'padding'===t?x(this,tr).length+(this.closing?2:1):l.prototype.getAttribute.call(this,t)},t.prototype.lint=function(e,n){var r,i,o,a,s=this,n=(void 0===e&&(e=this.getAbsoluteIndex()),l.prototype.lint.call(this,e,n));'h1'!==this.name||this.closing||(r=w(this,{start:e},'h1','<h1>'),n.push(r)),this.closest('table-attrs')&&(null==r&&(r=w(this,{start:e},'h1','')),n.push(__assign(__assign({},r),{rule:'parsing-order',message:L.msg('HTML tag in table attributes')})));try{this.findMatchingTag()}catch(t){t instanceof SyntaxError&&(a=t.message,null==r&&(r=w(this,{start:e},'h1','')),a=__read(a.split(':'),1)[0],i=__assign(__assign({},r),{rule:'unmatched-tag',message:L.msg(a)}),'unclosed tag'!==a||this.closest('heading-title')?'unmatched closing tag'===a?(o=this.closest('magic-word'))&&Qn.has(o.name)?i.severity='warning':i.suggestions=[{desc:'remove',range:[e,i.endIndex],text:''}]:'tag that is both closing and self-closing'===a&&(o=__read(this.getAttribute('config').html,3)[2]).includes(this.name)&&(i.fix={range:[e+1,e+2],text:''}):Kn.has(this.name)&&(a=null==(o=null==(a=this.parentNode)?void 0:a.childNodes)?void 0:o.indexOf(this),null!=o)&&o.slice(0,a).some(function(t){var e=t.type,t=t.name;return'html'===e&&t===s.name})||(i.severity='warning'),n.push(i))}return Xn.has(this.name)&&(null==r&&(r=w(this,{start:e},'h1','')),n.push(__assign(__assign({},r),{rule:'obsolete-tag',message:L.msg('obsolete HTML tag'),severity:'warning'}))),'b'!==this.name&&'strong'!==this.name||!this.closest('heading-title')||(null==r&&(r=w(this,{start:e},'h1','')),n.push(__assign(__assign({},r),{rule:'bold-header',message:L.msg('bold in section header'),severity:'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=X(String(this));if(s&&(x(this,_)||n.includes(o)))throw new SyntaxError('tag that is both closing and self-closing: '.concat(l));if(n.includes(o)||x(this,_)&&i.includes(o))return this;if(x(this,_)&&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(x(d,Yn)?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:'&lt;'.concat(this.closing?'/':'').concat(x(this,tr)),post:''.concat(x(this,_)?'/':'','&gt;')})},t.prototype.json=function(){var t=l.prototype.json.call(this);return Object.assign(t,{closing:this.closing,selfClosing:x(this,_)}),t},er=t,Yn=new WeakMap,_=new WeakMap,tr=new WeakMap}),ir={};e(ir,{parseHtml:function(){return or}});var or,ar,sr,k,lr,cr,ur,pr,dr,hr,fr,gr,yr,vr,xr,_r=t(function(){ye(),rr(),or=function(t,e,n){var r,i,o=/^(\\/?)([a-z][^\\s/>]*)((?:\\s|\\/(?!>))[^>]*?)?(\\/?>)([^<]*)$/iu,a=new Set(e.html.flat()),t=t.split('<'),s=t.shift();try{for(var l=__values(t),c=l.next();!c.done;c=l.next()){var u,p,d,h,f,g,y,v,x,_=c.value,m=o.exec(_),b=null==m?void 0:m[2],w=null==b?void 0:b.toLowerCase();m&&a.has(w)?(p=(u=__read(m,6))[1],h=void 0===(d=u[3])?'':d,f=u[4],g=u[5],y=n.length,x=(v=new ie(h,'html-attrs',w,e,n)).getAttr('itemprop'),'meta'===w&&(void 0===x||void 0===v.getAttr('content'))||'link'===w&&(void 0===x||void 0===v.getAttr('href'))?(s+='<'.concat(_),n.length=y):(s+='\\0'.concat(n.length,'x').concat(g),new er(b,v,'/'===p,'/>'===f,e,n))):s+='<'.concat(_)}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return s}}),mr=t(function(){ar=function(s){return void 0===s&&(s=0),function(t,e){__extends(a,i=t),a.prototype.getAttr=function(t){return x(this,n,r).getAttr(t)};var n,r,i,o=a;function a(){var t=i.apply(this,__spreadArray([],__read(arguments),!1))||this;return v(t,n),t}return n=new WeakSet,r=function(){return this.childNodes[s]},Object.defineProperty(o,'name',{value:t.name}),o}}}),br=t(function(){function t(t,e,n,r,i,o){void 0===r&&(r=L.getConfig());var a=this;return(a=s.call(this,void 0,r,i=void 0===i?[]:i,o=void 0===o?{}:o)||this).append(new we(e,t,'table-syntax',r,i,{}),new ie(n,'table-attrs',a.type,r,i)),a}var s;mr(),W(),R(),ze(),ye(),s=ar(1)(T),__extends(t,s),sr=t}),wr=t(function(){function t(t,e,n,r){void 0===n&&(n=L.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=d.call(this,/^(?:\\n[^\\S\\n]*(?:[|!]|\\|\\+|\\{\\{\\s*!\\s*\\}\\}\\+?)|(?:\\||\\{\\{\\s*!\\s*\\}\\}){2}|!!|\\{\\{\\s*!!\\s*\\}\\})$/u,t,a,n,r)||this,v(i,lr),m(i,'type','td'),v(i,k,''),o&&(t=__read(o,1),$(i,k)._=t[0]),new T(null==e?void 0:e.slice((null!=(a=null==o?void 0:o.index)?a:NaN)+x(i,k).length),n,r));return t.type='td-inner',t.setAttribute('stage',4),i.insertAt(t),i}var d;S(),r(),W(),R(),br(),__extends(t,d=sr),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 g(this,lr,cr).call(this).subtype},enumerable:!1,configurable:!0}),t.prototype.afterBuild=function(){x(this,k).includes('\\0')&&f(this,k,this.buildFromStr(x(this,k),0))},t.prototype.toString=function(){var t=__read(this.childNodes,3),e=t[0],n=t[1],t=t[2];return''.concat(String(e)).concat(String(n)).concat(x(this,k)).concat(String(t))},t.prototype.text=function(){var t=__read(this.childNodes,3),e=t[0],n=t[1],t=t[2];return''.concat(e.text()).concat(n.text()).concat(x(this,k)).concat(t.text())},t.prototype.getGaps=function(t){return 1===t?x(this,k).length:0},t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i=d.prototype.lint.call(this,t,e);t+=this.getRelativeIndex(this.length-1);try{for(var o=__values(this.lastChild.childNodes),a=o.next();!a.done;a=o.next()){var s,l,c,u,p=a.value;'text'===p.type&&(s=p.data).includes('|')&&(l=s.includes('||'),c=I(p,{start:t},'pipe-like','additional \"|\" in a table cell',l?'error':'warning'),l?(u={caption:'|+',td:'|',th:'!'}[this.subtype],c.fix={range:[c.startIndex,c.endIndex],text:s.replace(/\\|\\|/gu,'\\n'.concat(u))}):c.suggestions=[{desc:'escape',range:[c.startIndex,c.endIndex],text:s.replace(/\\|/gu,'&#124;')}],i.push(c))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}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=d.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(x(this,k)).concat(t.print(),'</span>')},t.prototype.json=function(){var t=d.prototype.json.call(this);return t.subtype=this.subtype,t},ur=t,k=new WeakMap,lr=new WeakSet,cr=function(){var t=this.firstChild.text().slice(-1),e='td';return'!'===t?e='th':'+'===t&&(e='caption'),this.isIndependent()?{subtype:e}:(t=this.previousSibling,g(e=t,lr,cr).call(e))}}),Ar=t(function(){function t(){return null!==s&&s.apply(this,arguments)||this}var s;S(),ut(),br(),wr(),__extends(t,s=sr),t.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var e=s.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,o=M('arg'),a=M('magic-word');if(!(!r||i.test(String(r))||o(r)&&i.test(r.default||''))){if(a(r))try{if(r.getPossibleValues().every(function(t){return i.test(t.text())}))return e}catch(t){}o=I(n,{start:t},'fostered-content','content to be moved out from the table');o.severity='template'===r.type?'warning':'error',o.startIndex++,o.startLine++,o.startCol=0,e.push(o)}}return e},t.prototype.getR",
    "owCount=function(){return Number(this.childNodes.some(function(t){return t instanceof ur&&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 ur&&(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}}},pr=t}),Sr=t(function(){function t(t,e,n,r){void 0===n&&(n=L.getConfig());t=c.call(this,/^(?:\\{\\||\\{\\{\\{\\s*!\\s*\\}\\}|\\{\\{\\s*\\(!\\s*\\}\\})$/u,t,e,n,r=void 0===r?[]:r,{})||this;return m(t,'type','table'),t}var c,e;function n(){return null!==e&&e.apply(this,arguments)||this}S(),ut(),W(),Ar(),ze(),dr=/^\\n[^\\S\\n]*(?:\\|\\}|\\{\\{\\s*!\\s*\\}\\}\\}|\\{\\{\\s*!\\)\\s*\\}\\})$/u,hr=function(t){t=t.type;return'tr'===t||'table-syntax'===t},e=Array,__extends(n,e),fr=n,__extends(t,c=pr),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),n=(this.closed||e.push(I(this.firstChild,{start:t},'unclosed-table',L.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=l-this.getNthCell(s[s.length-1]).colspan+1;if(o<l)break;i<l&&(i=l)}a<r&&((s=I(this.getNthRow(a),{start: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'),t=e?[t]:L.parse(t,this.getAttribute('include'),2,r).childNodes,o=E.run(function(){return c.prototype.insertAt.call(n,new we(void 0,dr,'table-syntax',r,i,{}))});e||o.afterBuild(),(e=this.lastChild).replaceChildren.apply(e,__spreadArray([],__read(t),!1))},t.prototype.getLayout=function(t){for(var e,n,r=this.getAllRows(),i=r.length,o=new(fr.bind.apply(fr,__spreadArray([void 0],__read(q(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(hr(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,t=void 0===t.row?void 0:t;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},gr=t}),kr=t(function(){function t(t,e,n,r){void 0===n&&(n=L.getConfig());t=i.call(this,/^\\n[^\\S\\n]*(?:\\|-+|\\{\\{\\s*!\\s*\\}\\}-+|\\{\\{\\s*!-\\s*\\}\\}-*)$/u,t,e,n,r=void 0===r?[]:r,{})||this;return m(t,'type','tr'),t}var i;W(),Ar(),__extends(t,i=pr),yr=t}),Ir=t(function(){function t(){return null!==e&&e.apply(this,arguments)||this}var e;pe(),__extends(t,e=o),vr=t}),Nr=t(function(){function t(){var t=e.apply(this,__spreadArray([],__read(arguments),!1))||this;return m(t,'type','dd'),t}var e;Ir(),__extends(t,e=vr),xr=t}),Cr={};e(Cr,{parseTable:function(){return Fr}});var jr,Fr,Or,Tr,Rr=t(function(){R(),Sr(),kr(),wr(),Nr(),jr=function(t){return t.lastChild.constructor!==T},Fr=function(t,h,f){function g(t,e){var n,r;e?(n=e.lastChild,jr(e)?((r=new T(t,h,f)).type='table-inter',r.setAttribute('stage',3),e.insertAt(r)):n.setText(String(n)+t)):_+=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'),_='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 xr(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 gr(s,i,h,f)],!1))}if(!v)return _+='\\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 yr('\\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 ur(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 _.slice(1)}}),Wr=t(function(){function t(){var t=e.apply(this,__spreadArray([],__read(arguments),!1))||this;return m(t,'type','hr'),t}var e;pe(),__extends(t,e=o),Or=t}),$r=t(function(){function t(t,e,n,r){void 0===n&&(n=L.getConfig());t=i.call(this,t,n,r=void 0===r?[]:r)||this;return m(t,'type','double-underscore'),t}var i;ue(),W(),pe(),i=Pt(o),__extends(t,i),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:'__'})},Tr=t}),Lr={};e(Lr,{parseHrAndDoubleUnderscore:function(){return Pr}});var Pr,Er,Mr=t(function(){Wr(),$r(),qe(),Pr=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 Or(n,o,a),''.concat(e,'\\0').concat(a.length-1,'r')}).replace(new RegExp('__('.concat(r.flat().join('|'),')__'),'giu'),function(t,e){var n=s.has(e);return n||i.has(e.toLowerCase())?(new Tr(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 Ie(n.length,[r,i],o,a),e});return'root'===n||'ext-inner'===n&&'poem'===t?e:e.slice(1)}}),zr=t(function(){function t(){var t=e.apply(this,__spreadArray([],__read(arguments),!1))||this;return m(t,'type','quote'),t}var e;S(),W(),pe(),__extends(t,e=o),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());var e,n,r,i,o,a,s=this.previousSibling,l=this.nextSibling,c=this.bold,u=L.msg('lonely \"$1\"','\\''),p=[];return'text'===(null==s?void 0:s.type)&&s.data.endsWith('\\'')&&(n=(e=w(this,{start:t},'lonely-apos',u)).startIndex,r=e.startLine,i=e.startCol,a=t-(o=__read(/(?:^|[^'])('+)$/u.exec(s.data),2)[1].length),p.push(__assign(__assign({},e),{startIndex:a,endIndex:n,startCol:i-o,endLine:r,endCol:i,suggestions:[{desc:'escape',range:[a,n],text:'&apos;'.repeat(o)}]}))),'text'===(null==l?void 0:l.type)&&l.data.startsWith('\\'')&&(n=(e=null==e?w(this,{start:t},'lonely-apos',u):e).endIndex,r=e.endLine,i=e.endCol,a=n+(o=__read(/^'+/u.exec(l.data),1)[0].length),p.push(__assign(__assign({},e),{startIndex:n,endIndex:a,startLine:r,startCol:i,endCol:i+o,suggestions:[{desc:'escape',range:[n,a],text:'&apos;'.repeat(o)}]}))),c&&this.closest('heading-title')&&(null==e&&(e=w(this,{start:t},'lonely-apos',u)),p.push(__assign(__assign({},e),{rule:'bold-header',message:L.msg('bold in section header'),severity:'warning'}))),p},t.prototype.json=function(){var t=e.prototype.json.call(this);return Object.assign(t,{bold:this.bold,italic:this.italic}),t},Er=t}),qr={};e(qr,{parseQuotes:function(){return Gr}});var Gr,Br=t(function(){zr(),Gr=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 Er(r[u],e,n),r[u]='\\0'.concat(n.length-1,'q');return r.join('')}}),Ur={};e(Ur,{parseExternalLinks:function(){return Vr}});var Vr,Hr,Dr=t(function(){i(),Pn(),Ln(),Vr=function(t,a,s,l){var e=new RegExp('\\\\[('.concat('\\0\\\\d+f|(?:(?:'.concat(a.protocol,'|//)').concat(V,'|\\0\\\\d+m)').concat(H,'(?=[[\\\\]<>\"\\\\t\\\\p{Zs}]|\\0\\\\d)'),')(\\\\p{Zs}*(?=\\\\P{Zs}))([^\\\\]\u0001-\\b\\n-\u001f�]*)\\\\]'),'giu');return t.replace(e,function(t,e,n,r){var i=s.length,o=/&[lg]t;/u.exec(e);return o&&(e=e.slice(0,o.index),r=(n='').concat(e.slice(o.index)).concat(n).concat(r)),l?(new On(e,!0,a,s),'[\\0'.concat(i,'f').concat(n).concat(r,']')):(new Tn(e,n,r,a,s),'\\0'.concat(i,'w'))})}}),Zr=t(function(){function t(){var t=e.apply(this,__spreadArr",
    "ay([],__read(arguments),!1))||this;return m(t,'type','category'),t}var e;sn(),__extends(t,e=on),Hr=t}),Jr={};e(Jr,{parseLinks:function(){return Qr}});var Qr,Kr=t(function(){W(),Br(),Dr(),$n(),Sn(),Zr(),Qr=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('^\\\\s*(?:'.concat(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))):(_=i.exec(f))&&(c=!0,u=(g=__read(_,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=L.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 _=!1;for(l++;l<a.length;l++){var m=a[l],b=m.split(']]');if(2<b.length){_=!0,d+='[['.concat(b[0],']]').concat(b[1]),h=b.slice(2).join(']]');break}if(2!==b.length){d+='[['.concat(m);break}d+='[['.concat(b[0],']]').concat(b[1])}if(d=Qr(d,e,n),!_){s+='[['.concat(u).concat(p).concat(d);continue}}d=d&&Gr(d,e,n),x=Fn;g||(y||6!==v?y||14!==v||(x=Hr):(d=d&&Vr(d,e,n,!0),x=_n)),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}}),Xr={};e(Xr,{parseMagicLinks:function(){return Yr}});var Yr,ti,ei=t(function(){i(),Ln(),Yr=function(t,s,l){var e=new RegExp('(^|[^\\\\p{L}\\\\d_])(?:'.concat(s.protocol,')(').concat(V).concat(H,')'),'giu');return t.replace(e,function(t,e,n){var r='',i=e?t.slice(e.length):t,o=/&(?:lt|gt|nbsp|#x0*(?:3[ce]|a0)|#0*(?:6[02]|160));/iu.exec(i);o&&(r=i.slice(o.index),i=i.slice(0,o.index));var a,o=new RegExp('[,;\\\\\\\\.:!?'.concat(i.includes('(')?'':')',']+$'),'u').exec(i);return o&&(o[a=0].startsWith(';')&&/&(?:[a-z]+|#x[\\da-f]+|#\\d+)$/iu.test(i.slice(0,o.index))&&(a=1),r=''.concat(i.slice(o.index+a)).concat(r),i=i.slice(0,o.index+a)),r.length>=n.length?t:(new On(i,!1,s,l),''.concat(e,'\\0').concat(l.length-1,'w').concat(r))})}}),ni=t(function(){function t(){var t=e.apply(this,__spreadArray([],__read(arguments),!1))||this;return m(t,'type','list'),t}var e;Ir(),__extends(t,e=vr),ti=t}),ri={};e(ri,{parseList:function(){return ii}});var ii,oi,C,ai,si,li,ci=t(function(){ni(),Nr(),ii=function(t,n,r){var e=/^((?:\\0\\d+c\\x7F)*)([;:*#]+)/u.exec(t);if(!e)return t;var e=__read(e,3),i=e[0],o=e[1],e=e[2],a=''.concat(o,'\\0').concat(r.length,'d').concat(t.slice(i.length)),s=e.split(';').length-1;if(new ti(e,n,r),s)for(var l=__read(n.html,1)[0],c=/:+|-\\{|\\0\\d+[xq]\\x7F/gu,u=(v=c).exec(a),p=0,d=!1,h=!1,f=0,g=function(t,e){return new xr(t,n,r),''.concat(a.slice(0,e),'\\0').concat(r.length-1,'d').concat(a.slice(e+t.length))},y=function(t){t?p&&p--:p++};u&&s;){var v,x=u[0],_=u.index;if('-{'===x)f||(b=v.lastIndex,(v=/-\\{|\\}-/gu).lastIndex=b),f++;else if('}-'===x)--f||(b=v.lastIndex,(v=c).lastIndex=b);else if(x.endsWith('x')){var m=r[Number(x.slice(1,-2))],b=m.name,w=m.closing;m.selfClosing&&!l.includes(b)||y(w)}else if(x.endsWith('q')){m=r[Number(x.slice(1,-2))],b=m.bold,w=m.italic;b&&(y(d),d=!d),w&&(y(h),h=!h)}else if(0===p){if(x.length>=s)return g(x.slice(0,s),_);s-=x.length,v.lastIndex=_+4+String(r.length).length,a=g(x,_)}u=v.exec(a)}return a}}),ui=t(function(){function t(t,e,n){void 0===e&&(e=L.getConfig()),void 0===n&&(n=[]);var r=h.call(this,void 0,e,n,{})||this;return m(r,'type','converter-flags'),v(r,C,void 0),r.append.apply(r,__spreadArray([],__read(t.map(function(t){return new A(t,'converter-flag',e,n)})),!1)),r}var h;S(),W(),R(),c(),oi=new Set(['A','T','R','D','-','H','N']),__extends(t,h=T),t.prototype.afterBuild=function(){f(this,C,this.childNodes.map(function(t){return t.text().trim()}))},t.prototype.toString=function(){return h.prototype.toString.call(this,';')},t.prototype.text=function(){return h.prototype.text.call(this,';')},t.prototype.getGaps=function(){return 1},t.prototype.getUnknownFlags=function(){return new Set(x(this,C).filter(function(t){return/\\{{3}[^{}]+\\}{3}/u.test(t)}))},t.prototype.getVariantFlags=function(){var e=new Set(this.getAttribute('config').variants);return new Set(x(this,C).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(x(this,C).filter(function(t){return oi.has(t)})),o=x(this,C).filter(function(t){return!t}).length,o=x(this,C).length-r.size-o,a=h.prototype.lint.call(this,t,e);if(n.size!==o&&i.size!==o)for(var s=__assign({start:t},this.getRootNode().posFromIndex(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=I(p,s,'no-ignored','invalid conversion flag'),0===n.size&&oi.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:';'})},ai=t,C=new WeakMap}),pi=t(function(){function t(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=L.getConfig());var i=l.call(this,void 0,n,r=void 0===r?[]:r)||this,o=(m(i,'type','converter-rule'),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 A(s,'converter-rule-variant',n,r)),l.prototype.insertAt.call(i,new A(t.slice(o+1),'converter-rule-to',n,r)),-1!==a&&l.prototype.insertAt.call(i,new A(t.slice(0,a),'converter-rule-from',n,r),0)):l.prototype.insertAt.call(i,new A(t,'converter-rule-to',n,r)),i}var l;W(),R(),c(),__extends(t,l=T),t.prototype.toString=function(){var t,e,n=this.childNodes;return 3===n.length?(t=(n=__read(n,3))[0],e=n[1],n=n[2],''.concat(String(t),'=>').concat(String(e),':').concat(String(n))):l.prototype.toString.call(this,':')},t.prototype.text=function(){var t,e,n=this.childNodes;return 3===n.length?(t=(n=__read(n,3))[0],e=n[1],n=n[2],''.concat(t.text(),'=>').concat(e.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:':'})},si=t}),di=t(function(){function t(t,e,n,r){void 0===n&&(n=L.getConfig()),void 0===r&&(r=[]);var i=a.call(this,void 0,n,r)||this;m(i,'type','converter'),i.append(new ai(t,n,r));var t=__read(e,1)[0],o=t.includes(':'),t=new si(t,o,n,r);return o&&1===t.length?i.insertAt(new si(e.join(';'),!1,n,r)):i.append.apply(i,__spreadArray([t],__read(e.slice(1).map(function(t){return new si(t,!0,n,r)})),!1)),i}var a;i(),W(),R(),ui(),pi(),__extends(t,a=T),t.prototype.toString=function(){var t=__read(this.childNodes),e=t[0],t=t.slice(1);return'-{'.concat(String(e)).concat(0<e.length?'|':'').concat(t.map(String).join(';'),'}-')},t.prototype.text=function(){var t=__read(this.childNodes),e=t[0],t=t.slice(1);return'-{'.concat(e.text(),'|').concat(J(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(et(t,{sep:';'}),'}-</span>')},li=t}),hi={};e(hi,{parseConverter:function(){return fi}});var fi,gi=t(function(){di(),fi=function(t,e,n){for(var r=/-\\{/gu,i=/-\\{|\\}-/gu,o=[],a=r,s=a.exec(t);s;){var l,c,u,p,d=s[0],h=s.index;'}-'===d?(d=o.pop(),l=n.length,c=(p=t.slice(d.index+2,h)).indexOf('|'),c=(p=__read(-1===c?[[],p]:[p.slice(0,c).split(';'),p.slice(c+1)],2))[0],p=p[1].replace(/(&[#a-z\\d]+);/giu,'$1\u0001'),u='(?:'.concat(e.variants.join('|'),')'),p=p.split(new RegExp(';(?=(?:[^;]*?=>)?\\\\s*'.concat(u,'\\\\s*:|(?:\\\\s|\\0\\\\d+c)*$)'),'u')).map(function(t){return t.replace(/\\x01/gu,';')}),new li(c,p,e,n),t=''.concat(t.slice(0,d.index),'\\0').concat(l,'v').concat(t.slice(h+2)),(a=0===o.length?r:a).lastIndex=d.index+3+String(l).length):(o.push(s),(a=i).lastIndex=h+2),s=a.exec(t)}return t}}),yi={};e(yi,{Token:function(){return T}});var j,F,O,vi,xi,_i,mi,bi,wi,Ai,Si,ki,Ii,Ni,Ci,ji,Fi,Oi,Ti,Ri,Wi,$i,Li,Pi,Ei,Mi,zi,qi,Gi,T,Bi,Ui,Vi,L,R=t(function(){function n(t,e,n,r){void 0===e&&(e=L.getConfig()),void 0===n&&(n=[]);var i=b.call(this)||this;return v(i,xi),v(i,mi),v(i,wi),v(i,Si),v(i,Ii),v(i,Ci),v(i,Fi),v(i,Ti),v(i,Wi),v(i,Li),v(i,Ei),v(i,zi),m(i,'type','root'),v(i,j,0),v(i,F,void 0),v(i,O,void 0),v(i,vi,void 0),'string'==typeof t&&i.insertAt(t),f(i,F,e),f(i,O,n),n.push(i),i}var b;i(),r(),S(),W(),se(),le(),__extends(n,b=It),n.prototype.parseOnce=function(t,e){var n,r;if(void 0===e&&(e=!1),!((t=void 0===t?x(this,j):t)<x(this,j))&&this.getAttribute('plain')&&0!==this.length&&!(11<=x(this,j))){switch(t){case 0:'root'===this.type&&x(this,O).shift(),f(this,vi,e),g(this,mi,bi).call(this,e);break;case 1:g(this,wi,Ai).call(this);break;case 2:g(this,Si,ki).call(this);break;case 3:g(this,Ii,Ni).call(this);break;case 4:g(this,Ci,ji).call(this);break;case 5:g(this,Fi,Oi).call(this);break;case 6:g(this,Ti,Ri).call(this);break;case 7:g(this,Wi,$i).call(this);break;case 8:g(this,Li,Pi).call(this);break;case 9:g(this,Ei,Mi).call(this);break;case 10:g(this,zi,qi).call(this)}if('root'===this.type)try{for(var i=__values(x(this,O)),o=i.next();!o.done;o=i.next())o.value.parseOnce(t,e)}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}$(this,j)._++}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 $t(t);if(isNaN(t.slice(-1)))return x(n,O)[Number(t.slice(0,-1))];throw new Error('解析错误!未正确标记的 Token:'.concat(t))});return 0===e?t.map(String).join(''):1===e?J(t):t},n.prototype.afterBuild=function(){var e,",
    "t;if('root'===this.type)try{for(var n=__values(x(this,O)),r=n.next();!r.done;r=n.next())r.value.afterBuild()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},n.prototype.parse=function(t,e){for(void 0===t&&(t=11),t=Math.min(t,11);x(this,j)<t;)this.parseOnce(x(this,j),e);return t&&(g(this,xi,_i).call(this),this.afterBuild()),this},n.prototype.getAttribute=function(t){switch(t){case'plain':return this.constructor===n;case'config':return JSON.parse(JSON.stringify(x(this,F)));case'include':var e;return void 0!==x(this,vi)?x(this,vi):(e=this.getRootNode())!==this&&e.getAttribute('include');case'accum':return x(this,O);default:return b.prototype.getAttribute.call(this,t)}},n.prototype.setAttribute=function(t,e){'stage'===t?(0===x(this,j)&&'root'===this.type&&x(this,O).shift(),f(this,j,e)):b.prototype.setAttribute.call(this,t,e)},n.prototype.insertAt=function(t,e){void 0===e&&(e=this.length);t='string'==typeof t?new $t(t):t;return b.prototype.insertAt.call(this,t,e),'root'===t.type&&(t.type='plain'),t},n.prototype.normalizeTitle=function(t,e,n,r,i){return L.normalizeTitle(t,e=void 0===e?0:e,x(this,vi),x(this,F),n,r,i)},n.prototype.lint=function(t,e){void 0===t&&(t=this.getAbsoluteIndex());var n,r,i,o,a=b.prototype.lint.call(this,t,e);if('root'!==this.type)return a;var s={};try{for(var l=__values(this.querySelectorAll('category')),c=l.next();!c.done;c=l.next())(_=s[(x=c.value).name])?_.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=String(this),f=[],g=d.exec(h),y=0,v=0;g;){var x=g[1],_=g.index,m=null==(m=g[2])?void 0:m.trim();v+=h.slice(y,_).split('\\n').length-1,y=_,f.push({line:v+('disable-line'===x?0:1),from:'disable'===x?d.lastIndex: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)}return 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})},Gi=n,j=new WeakMap,F=new WeakMap,O=new WeakMap,vi=new WeakMap,xi=new WeakSet,_i=function(){f(this,j,11);var e,t,n,r=this.length,i=this.firstChild,o=String(i);if(1===r&&'text'===i.type&&o.includes('\\0')&&(this.replaceChildren.apply(this,__spreadArray([],__read(this.buildFromStr(o)),!1)),this.normalize(),'root'===this.type))try{for(var a=__values(x(this,O)),s=a.next();!s.done;s=a.next()){var l=s.value;g(n=l,xi,_i).call(n)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},mi=new WeakSet,bi=function(t){nr();var e=d(Zn).parseCommentAndExt;this.setText(e(String(this.firstChild),x(this,F),x(this,O),t))},wi=new WeakSet,Ai=function(){Ze();var t=(0,d(He).parseBraces)('root'===this.type?String(this.firstChild):'\\0'.concat(String(this.firstChild)),x(this,F),x(this,O));this.setText('root'===this.type?t:t.slice(1))},Si=new WeakSet,ki=function(){var t;null!=(t=x(this,F).excludes)&&t.includes('html')||(_r(),t=d(ir).parseHtml,this.setText(t(String(this.firstChild),x(this,F),x(this,O))))},Ii=new WeakSet,Ni=function(){var t;null!=(t=x(this,F).excludes)&&t.includes('table')||(Rr(),t=d(Cr).parseTable,this.setText(t(this,x(this,F),x(this,O))))},Ci=new WeakSet,ji=function(){var t;null!=(t=x(this,F).excludes)&&t.includes('hr')||(Mr(),t=d(Lr).parseHrAndDoubleUnderscore,this.setText(t(this,x(this,F),x(this,O))))},Fi=new WeakSet,Oi=function(){Kr();var t=d(Jr).parseLinks;this.setText(t(String(this.firstChild),x(this,F),x(this,O)))},Ti=new WeakSet,Ri=function(){var t;if(null==(t=x(this,F).excludes)||!t.includes('quote')){Br();for(var e=d(qr).parseQuotes,n=String(this.firstChild).split('\\n'),r=0;r<n.length;r++)n[r]=e(n[r],x(this,F),x(this,O));this.setText(n.join('\\n'))}},Wi=new WeakSet,$i=function(){var t;null!=(t=x(this,F).excludes)&&t.includes('extLink')||(Dr(),t=d(Ur).parseExternalLinks,this.setText(t(String(this.firstChild),x(this,F),x(this,O))))},Li=new WeakSet,Pi=function(){var t;null!=(t=x(this,F).excludes)&&t.includes('magicLink')||(ei(),t=d(Xr).parseMagicLinks,this.setText(t(String(this.firstChild),x(this,F),x(this,O))))},Ei=new WeakSet,Mi=function(){var t;if(null==(t=x(this,F).excludes)||!t.includes('list')){ci();for(var e=d(ri).parseList,n=String(this.firstChild).split('\\n'),r='root'===this.type||'ext-inner'===this.type&&'poem'===this.name?0:1;r<n.length;r++)n[r]=e(n[r],x(this,F),x(this,O));this.setText(n.join('\\n'))}},zi=new WeakSet,qi=function(){var t;0<x(this,F).variants.length&&(gi(),t=d(hi).parseConverter,this.setText(t(String(this.firstChild),x(this,F),x(this,O))))},T=Gi}),W=t(function(){for(var t in ct(),ut(),r(),i(),Bi={i18n:void 0,rules:P,getConfig:function(){return __assign(__assign(__assign({},U),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(t,e,n,r,i,o,a){void 0===e&&(e=0),void 0===r&&(r=Bi.getConfig()),void 0===o&&(o=!1),void 0===a&&(a=!1);oe();var s,l,c,u=d(dt).Title;return i?new u(t,e,r,o,a):(R(),s=d(yi).Token,l=E.run(function(){return new s(t,r).parseOnce(0,n).parseOnce()}),c=new u(String(l),e,r,o,a),E.run(function(){var e,t;try{for(var n=__values(['main','fragment']),r=n.next();!r.done;r=n.next()){var i=r.value,o=c[i];null!=o&&o.includes('\\0')&&(c[i]=l.buildFromStr(o,1))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}),c)},parse:function(t,e,n,r){void 0===n&&(n=11),void 0===r&&(r=Bi.getConfig()),t=D(t);R();var i=d(yi).Token;return E.run(function(){return new i(t,r).parse(n,e)})}},Ui={},Vi=new Set(['normalizeTitle','parse']),Bi)Vi.has(t)||(Ui[t]={enumerable:!1});Object.defineProperties(Bi,Ui),'object'==typeof self?Object.assign(self,{Parser:Bi}):'object'==typeof globalThis&&Object.assign(globalThis,{Parser:Bi}),L=Bi});W()}();"
].join("")); 

/* </pre> */