-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvendors-4.7347971a.bundle.js
1 lines (1 loc) · 50.5 KB
/
vendors-4.7347971a.bundle.js
1
(self.webpackChunktypescript_tutorial_exercises=self.webpackChunktypescript_tutorial_exercises||[]).push([["944"],{73974:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},21591:function(e,t,n){var a=n("44000");e.exports=function(e){return a(this.__data__,e)>-1}},27625:function(e,t,n){var a=n("8592"),s=n("58929"),r=n("21326"),o=Math.max,i=Math.min;e.exports=function(e,t,n){var c,E,T,L,l,p,B=0,m=!1,d=!1,I=!0;if("function"!=typeof e)throw TypeError("Expected a function");function _(t){var n=c,a=E;return c=E=void 0,B=t,L=e.apply(a,n)}t=r(t)||0,a(n)&&(m=!!n.leading,T=(d="maxWait"in n)?o(r(n.maxWait)||0,t):T,I="trailing"in n?!!n.trailing:I);function h(e){var n=e-p,a=e-B;return void 0===p||n>=t||n<0||d&&a>=T}function A(){var e,n,a,r,o=s();if(h(o))return N(o);l=setTimeout(A,(n=(e=o)-p,a=e-B,r=t-n,d?i(r,T-a):r))}function N(e){return(l=void 0,I&&c)?_(e):(c=E=void 0,L)}function u(){var e,n=s(),a=h(n);if(c=arguments,E=this,p=n,a){if(void 0===l){;return B=e=p,l=setTimeout(A,t),m?_(e):L}if(d)return clearTimeout(l),l=setTimeout(A,t),_(p)}return void 0===l&&(l=setTimeout(A,t)),L}return u.cancel=function(){void 0!==l&&clearTimeout(l),B=0,c=p=E=l=void 0},u.flush=function(){return void 0===l?L:N(s())},u}},61447:function(e,t,n){"use strict";function a(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}n.d(t,{k:function(){return a}})},2853:function(e,t,n){"use strict";function a(e){return e}n.d(t,{$:function(){return a}})},3e4:function(e,t,n){"use strict";n.d(t,{_:function(){return A}});var a,s,r=n("94923"),o=n("98852"),i=n("37328"),c=n("90762"),E=n("47808"),T=n("92366"),L=n("15989"),l=n("14712"),p=n("24307"),B=n("53061");function m(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){var a,s,r;a=e,s=t,r=n[t],s in a?Object.defineProperty(a,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[s]=r})}return e}(a=s||(s={}))[a.INITIAL=0]="INITIAL",a[a.BEFORE_HTML=1]="BEFORE_HTML",a[a.BEFORE_HEAD=2]="BEFORE_HEAD",a[a.IN_HEAD=3]="IN_HEAD",a[a.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",a[a.AFTER_HEAD=5]="AFTER_HEAD",a[a.IN_BODY=6]="IN_BODY",a[a.TEXT=7]="TEXT",a[a.IN_TABLE=8]="IN_TABLE",a[a.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",a[a.IN_CAPTION=10]="IN_CAPTION",a[a.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",a[a.IN_TABLE_BODY=12]="IN_TABLE_BODY",a[a.IN_ROW=13]="IN_ROW",a[a.IN_CELL=14]="IN_CELL",a[a.IN_SELECT=15]="IN_SELECT",a[a.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",a[a.IN_TEMPLATE=17]="IN_TEMPLATE",a[a.AFTER_BODY=18]="AFTER_BODY",a[a.IN_FRAMESET=19]="IN_FRAMESET",a[a.AFTER_FRAMESET=20]="AFTER_FRAMESET",a[a.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",a[a.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";var I={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},_=new Set([p.LB.TABLE,p.LB.TBODY,p.LB.TFOOT,p.LB.THEAD,p.LB.TR]),h={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:c.g,onParseError:null},A=function(){var e,t,n;function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),this.fragmentContext=n,this.scriptHandler=c,this.currentToken=null,this.stopped=!1,this.insertionMode=s.INITIAL,this.originalInsertionMode=s.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=d({},h,e),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new r.d(this.options,this),this.activeFormattingElements=new i.T(this.treeAdapter),this.fragmentContextID=n?(0,p.OL)(this.treeAdapter.getTagName(n)):p.LB.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new o.X(this.document,this.treeAdapter,this)}return e=a,t=[{key:"getFragment",value:function(){var e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}},{key:"_err",value:function(e,t,n){if(this.onParseError){var a,s=null!==(a=e.location)&&void 0!==a?a:I,r={code:t,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:n?s.startLine:s.endLine,endCol:n?s.startCol:s.endCol,endOffset:n?s.startOffset:s.endOffset};this.onParseError(r)}}},{key:"onItemPush",value:function(e,t,n){var a,s;null===(s=(a=this.treeAdapter).onItemPush)||void 0===s||s.call(a,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}},{key:"onItemPop",value:function(e,t){var n,a,s,r,o;this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(a=(n=this.treeAdapter).onItemPop)||void 0===a||a.call(n,e,this.openElements.current),t&&(0===this.openElements.stackTop&&this.fragmentContext?(s=this.fragmentContext,r=this.fragmentContextID):(s=(o=this.openElements).current,r=o.currentTagId),this._setContextModes(s,r))}},{key:"_setContextModes",value:function(e,t){var n=e===this.document||this.treeAdapter.getNamespaceURI(e)===p.NS.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}},{key:"_switchToTextParsing",value:function(e,t){this._insertElement(e,p.NS.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=s.TEXT}},{key:"switchToPlaintextParsing",value:function(){this.insertionMode=s.TEXT,this.originalInsertionMode=s.IN_BODY,this.tokenizer.state=r.P.PLAINTEXT}},{key:"_getAdjustedCurrentElement",value:function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}},{key:"_findFormInFragmentContext",value:function(){for(var e=this.fragmentContext;e;){if(this.treeAdapter.getTagName(e)===p.ab.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}},{key:"_initTokenizerForFragmentParsing",value:function(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===p.NS.HTML)switch(this.fragmentContextID){case p.LB.TITLE:case p.LB.TEXTAREA:this.tokenizer.state=r.P.RCDATA;break;case p.LB.STYLE:case p.LB.XMP:case p.LB.IFRAME:case p.LB.NOEMBED:case p.LB.NOFRAMES:case p.LB.NOSCRIPT:this.tokenizer.state=r.P.RAWTEXT;break;case p.LB.SCRIPT:this.tokenizer.state=r.P.SCRIPT_DATA;break;case p.LB.PLAINTEXT:this.tokenizer.state=r.P.PLAINTEXT}}},{key:"_setDocumentType",value:function(e){var t=this,n=e.name||"",a=e.publicId||"",s=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,a,s),e.location){var r=this.treeAdapter.getChildNodes(this.document).find(function(e){return t.treeAdapter.isDocumentTypeNode(e)});r&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}}},{key:"_attachElementToTree",value:function(e,t){if(this.options.sourceCodeLocationInfo){var n,a,s=t&&(n=d({},t),a=(a={startTag:t},a),Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n.push.apply(n,a)}return n})(Object(a)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}),n);this.treeAdapter.setNodeSourceCodeLocation(e,s)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{var r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,e)}}},{key:"_appendElement",value:function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}},{key:"_insertElement",value:function(e,t){var n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}},{key:"_insertFakeElement",value:function(e,t){var n=this.treeAdapter.createElement(e,p.NS.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}},{key:"_insertTemplate",value:function(e){var t=this.treeAdapter.createElement(e.tagName,p.NS.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}},{key:"_insertFakeRootElement",value:function(){var e=this.treeAdapter.createElement(p.ab.HTML,p.NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,p.LB.HTML)}},{key:"_appendCommentNode",value:function(e,t){var n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}},{key:"_insertCharacters",value:function(e){if(this._shouldFosterParentOnInsertion()?(t=(a=this._findFosterParentingLocation()).parent,(n=a.beforeElement)?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),e.location){var t,n,a,s=this.treeAdapter.getChildNodes(t),r=n?s.lastIndexOf(n):s.length,o=s[r-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){var i=e.location,c=i.endLine,E=i.endCol,T=i.endOffset;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:c,endCol:E,endOffset:T})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}}},{key:"_adoptNodes",value:function(e,t){for(var n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}},{key:"_setEndLocation",value:function(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){var n=t.location,a=this.treeAdapter.getTagName(e),s=t.type===B.i.END_TAG&&a===t.tagName?{endTag:d({},n),endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,s)}}},{key:"shouldProcessStartTagTokenInForeignContent",value:function(e){var t,n,a;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):(t=(a=this.openElements).current,n=a.currentTagId),(e.tagID!==p.LB.SVG||this.treeAdapter.getTagName(t)!==p.ab.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==p.NS.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===p.LB.MGLYPH||e.tagID===p.LB.MALIGNMARK)&&!this._isIntegrationPoint(n,t,p.NS.HTML)))}},{key:"_processToken",value:function(e){switch(e.type){case B.i.CHARACTER:this.onCharacter(e);break;case B.i.NULL_CHARACTER:this.onNullCharacter(e);break;case B.i.COMMENT:this.onComment(e);break;case B.i.DOCTYPE:this.onDoctype(e);break;case B.i.START_TAG:this._processStartTag(e);break;case B.i.END_TAG:this.onEndTag(e);break;case B.i.EOF:this.onEof(e);break;case B.i.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}},{key:"_isIntegrationPoint",value:function(e,t,n){var a=this.treeAdapter.getNamespaceURI(t),s=this.treeAdapter.getAttrList(t);return T.xM(e,a,s,n)}},{key:"_reconstructActiveFormattingElements",value:function(){var e=this,t=this.activeFormattingElements.entries.length;if(t){for(var n=this.activeFormattingElements.entries.findIndex(function(t){return t.type===i.U.Marker||e.openElements.contains(t.element)}),a=n<0?t-1:n-1,s=a;s>=0;s--){var r=this.activeFormattingElements.entries[s];this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}}},{key:"_closeTableCell",value:function(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=s.IN_ROW}},{key:"_closePElement",value:function(){this.openElements.generateImpliedEndTagsWithExclusion(p.LB.P),this.openElements.popUntilTagNamePopped(p.LB.P)}},{key:"_resetInsertionMode",value:function(){for(var e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case p.LB.TR:this.insertionMode=s.IN_ROW;return;case p.LB.TBODY:case p.LB.THEAD:case p.LB.TFOOT:this.insertionMode=s.IN_TABLE_BODY;return;case p.LB.CAPTION:this.insertionMode=s.IN_CAPTION;return;case p.LB.COLGROUP:this.insertionMode=s.IN_COLUMN_GROUP;return;case p.LB.TABLE:this.insertionMode=s.IN_TABLE;return;case p.LB.BODY:this.insertionMode=s.IN_BODY;return;case p.LB.FRAMESET:this.insertionMode=s.IN_FRAMESET;return;case p.LB.SELECT:this._resetInsertionModeForSelect(e);return;case p.LB.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case p.LB.HTML:this.insertionMode=this.headElement?s.AFTER_HEAD:s.BEFORE_HEAD;return;case p.LB.TD:case p.LB.TH:if(e>0){this.insertionMode=s.IN_CELL;return}break;case p.LB.HEAD:if(e>0){this.insertionMode=s.IN_HEAD;return}}this.insertionMode=s.IN_BODY}},{key:"_resetInsertionModeForSelect",value:function(e){if(e>0)for(var t=e-1;t>0;t--){var n=this.openElements.tagIDs[t];if(n===p.LB.TEMPLATE)break;if(n===p.LB.TABLE){this.insertionMode=s.IN_SELECT_IN_TABLE;return}}this.insertionMode=s.IN_SELECT}},{key:"_isElementCausesFosterParenting",value:function(e){return _.has(e)}},{key:"_shouldFosterParentOnInsertion",value:function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}},{key:"_findFosterParentingLocation",value:function(){for(var e=this.openElements.stackTop;e>=0;e--){var t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case p.LB.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===p.NS.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case p.LB.TABLE:var n=this.treeAdapter.getParentNode(t);if(n)return{parent:n,beforeElement:t};return{parent:this.openElements.items[e-1],beforeElement:null}}}return{parent:this.openElements.items[0],beforeElement:null}}},{key:"_fosterParentElement",value:function(e){var t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}},{key:"_isSpecialElement",value:function(e,t){var n=this.treeAdapter.getNamespaceURI(e);return(0,p.up)[n].has(t)}},{key:"onCharacter",value:function(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){(function(e,t){e._insertCharacters(t),e.framesetOk=!1})(this,e);return}switch(this.insertionMode){case s.INITIAL:k(this,e);break;case s.BEFORE_HTML:f(this,e);break;case s.BEFORE_HEAD:g(this,e);break;case s.IN_HEAD:R(this,e);break;case s.IN_HEAD_NO_SCRIPT:b(this,e);break;case s.AFTER_HEAD:D(this,e);break;case s.IN_BODY:case s.IN_CAPTION:case s.IN_CELL:case s.IN_TEMPLATE:F(this,e);break;case s.TEXT:case s.IN_SELECT:case s.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case s.IN_TABLE:case s.IN_TABLE_BODY:case s.IN_ROW:W(this,e);break;case s.IN_TABLE_TEXT:z(this,e);break;case s.IN_COLUMN_GROUP:$(this,e);break;case s.AFTER_BODY:ei(this,e);break;case s.AFTER_AFTER_BODY:ec(this,e)}}},{key:"onNullCharacter",value:function(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){(function(e,t){t.chars=l.wV,e._insertCharacters(t)})(this,e);return}switch(this.insertionMode){case s.INITIAL:k(this,e);break;case s.BEFORE_HTML:f(this,e);break;case s.BEFORE_HEAD:g(this,e);break;case s.IN_HEAD:R(this,e);break;case s.IN_HEAD_NO_SCRIPT:b(this,e);break;case s.AFTER_HEAD:D(this,e);break;case s.TEXT:this._insertCharacters(e);break;case s.IN_TABLE:case s.IN_TABLE_BODY:case s.IN_ROW:W(this,e);break;case s.IN_COLUMN_GROUP:$(this,e);break;case s.AFTER_BODY:ei(this,e);break;case s.AFTER_AFTER_BODY:ec(this,e)}}},{key:"onComment",value:function(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){u(this,e);return}switch(this.insertionMode){case s.INITIAL:case s.BEFORE_HTML:case s.BEFORE_HEAD:case s.IN_HEAD:case s.IN_HEAD_NO_SCRIPT:case s.AFTER_HEAD:case s.IN_BODY:case s.IN_TABLE:case s.IN_CAPTION:case s.IN_COLUMN_GROUP:case s.IN_TABLE_BODY:case s.IN_ROW:case s.IN_CELL:case s.IN_SELECT:case s.IN_SELECT_IN_TABLE:case s.IN_TEMPLATE:case s.IN_FRAMESET:case s.AFTER_FRAMESET:u(this,e);break;case s.IN_TABLE_TEXT:Q(this,e);break;case s.AFTER_BODY:(function(e,t){e._appendCommentNode(t,e.openElements.items[0])})(this,e);break;case s.AFTER_AFTER_BODY:case s.AFTER_AFTER_FRAMESET:(function(e,t){e._appendCommentNode(t,e.document)})(this,e)}}},{key:"onDoctype",value:function(e){switch(this.skipNextNewLine=!1,this.insertionMode){case s.INITIAL:(function(e,t){e._setDocumentType(t);var n=t.forceQuirks?p.Bj.QUIRKS:E.M(t);!E.f(t)&&e._err(t,L.w.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=s.BEFORE_HTML})(this,e);break;case s.BEFORE_HEAD:case s.IN_HEAD:case s.IN_HEAD_NO_SCRIPT:case s.AFTER_HEAD:this._err(e,L.w.misplacedDoctype);break;case s.IN_TABLE_TEXT:Q(this,e)}}},{key:"onStartTag",value:function(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,L.w.nonVoidHtmlElementStartTagWithTrailingSolidus)}},{key:"_processStartTag",value:function(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(T.GT(t))eE(e),e._startTagOutsideForeignContent(t);else{var n=e._getAdjustedCurrentElement(),a=e.treeAdapter.getNamespaceURI(n);a===p.NS.MATHML?T.ii(t):a===p.NS.SVG&&(T.TZ(t),T.NV(t)),T.cS(t),t.selfClosing?e._appendElement(t,a):e._insertElement(t,a),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}},{key:"_startTagOutsideForeignContent",value:function(e){switch(this.insertionMode){case s.INITIAL:k(this,e);break;case s.BEFORE_HTML:(function(e,t){t.tagID===p.LB.HTML?(e._insertElement(t,p.NS.HTML),e.insertionMode=s.BEFORE_HEAD):f(e,t)})(this,e);break;case s.BEFORE_HEAD:(function(e,t){switch(t.tagID){case p.LB.HTML:w(e,t);break;case p.LB.HEAD:e._insertElement(t,p.NS.HTML),e.headElement=e.openElements.current,e.insertionMode=s.IN_HEAD;break;default:g(e,t)}})(this,e);break;case s.IN_HEAD:M(this,e);break;case s.IN_HEAD_NO_SCRIPT:(function(e,t){switch(t.tagID){case p.LB.HTML:w(e,t);break;case p.LB.BASEFONT:case p.LB.BGSOUND:case p.LB.HEAD:case p.LB.LINK:case p.LB.META:case p.LB.NOFRAMES:case p.LB.STYLE:M(e,t);break;case p.LB.NOSCRIPT:e._err(t,L.w.nestedNoscriptInHead);break;default:b(e,t)}})(this,e);break;case s.AFTER_HEAD:(function(e,t){switch(t.tagID){case p.LB.HTML:w(e,t);break;case p.LB.BODY:e._insertElement(t,p.NS.HTML),e.framesetOk=!1,e.insertionMode=s.IN_BODY;break;case p.LB.FRAMESET:e._insertElement(t,p.NS.HTML),e.insertionMode=s.IN_FRAMESET;break;case p.LB.BASE:case p.LB.BASEFONT:case p.LB.BGSOUND:case p.LB.LINK:case p.LB.META:case p.LB.NOFRAMES:case p.LB.SCRIPT:case p.LB.STYLE:case p.LB.TEMPLATE:case p.LB.TITLE:e._err(t,L.w.abandonedHeadElementChild),e.openElements.push(e.headElement,p.LB.HEAD),M(e,t),e.openElements.remove(e.headElement);break;case p.LB.HEAD:e._err(t,L.w.misplacedStartTagForHeadElement);break;default:D(e,t)}})(this,e);break;case s.IN_BODY:w(this,e);break;case s.IN_TABLE:X(this,e);break;case s.IN_TABLE_TEXT:Q(this,e);break;case s.IN_CAPTION:(function(e,t){var n=t.tagID;Z.has(n)?e.openElements.hasInTableScope(p.LB.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.LB.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=s.IN_TABLE,X(e,t)):w(e,t)})(this,e);break;case s.IN_COLUMN_GROUP:J(this,e);break;case s.IN_TABLE_BODY:q(this,e);break;case s.IN_ROW:et(this,e);break;case s.IN_CELL:(function(e,t){var n=t.tagID;Z.has(n)?(e.openElements.hasInTableScope(p.LB.TD)||e.openElements.hasInTableScope(p.LB.TH))&&(e._closeTableCell(),et(e,t)):w(e,t)})(this,e);break;case s.IN_SELECT:ea(this,e);break;case s.IN_SELECT_IN_TABLE:(function(e,t){var n=t.tagID;n===p.LB.CAPTION||n===p.LB.TABLE||n===p.LB.TBODY||n===p.LB.TFOOT||n===p.LB.THEAD||n===p.LB.TR||n===p.LB.TD||n===p.LB.TH?(e.openElements.popUntilTagNamePopped(p.LB.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ea(e,t)})(this,e);break;case s.IN_TEMPLATE:(function(e,t){switch(t.tagID){case p.LB.BASE:case p.LB.BASEFONT:case p.LB.BGSOUND:case p.LB.LINK:case p.LB.META:case p.LB.NOFRAMES:case p.LB.SCRIPT:case p.LB.STYLE:case p.LB.TEMPLATE:case p.LB.TITLE:M(e,t);break;case p.LB.CAPTION:case p.LB.COLGROUP:case p.LB.TBODY:case p.LB.TFOOT:case p.LB.THEAD:e.tmplInsertionModeStack[0]=s.IN_TABLE,e.insertionMode=s.IN_TABLE,X(e,t);break;case p.LB.COL:e.tmplInsertionModeStack[0]=s.IN_COLUMN_GROUP,e.insertionMode=s.IN_COLUMN_GROUP,J(e,t);break;case p.LB.TR:e.tmplInsertionModeStack[0]=s.IN_TABLE_BODY,e.insertionMode=s.IN_TABLE_BODY,q(e,t);break;case p.LB.TD:case p.LB.TH:e.tmplInsertionModeStack[0]=s.IN_ROW,e.insertionMode=s.IN_ROW,et(e,t);break;default:e.tmplInsertionModeStack[0]=s.IN_BODY,e.insertionMode=s.IN_BODY,w(e,t)}})(this,e);break;case s.AFTER_BODY:(function(e,t){t.tagID===p.LB.HTML?w(e,t):ei(e,t)})(this,e);break;case s.IN_FRAMESET:(function(e,t){switch(t.tagID){case p.LB.HTML:w(e,t);break;case p.LB.FRAMESET:e._insertElement(t,p.NS.HTML);break;case p.LB.FRAME:e._appendElement(t,p.NS.HTML),t.ackSelfClosing=!0;break;case p.LB.NOFRAMES:M(e,t)}})(this,e);break;case s.AFTER_FRAMESET:(function(e,t){switch(t.tagID){case p.LB.HTML:w(e,t);break;case p.LB.NOFRAMES:M(e,t)}})(this,e);break;case s.AFTER_AFTER_BODY:(function(e,t){t.tagID===p.LB.HTML?w(e,t):ec(e,t)})(this,e);break;case s.AFTER_AFTER_FRAMESET:(function(e,t){switch(t.tagID){case p.LB.HTML:w(e,t);break;case p.LB.NOFRAMES:M(e,t)}})(this,e)}}},{key:"onEndTag",value:function(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===p.LB.P||t.tagID===p.LB.BR){eE(e),e._endTagOutsideForeignContent(t);return}for(var n=e.openElements.stackTop;n>0;n--){var a=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(a)===p.NS.HTML){e._endTagOutsideForeignContent(t);break}var s=e.treeAdapter.getTagName(a);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}},{key:"_endTagOutsideForeignContent",value:function(e){switch(this.insertionMode){case s.INITIAL:k(this,e);break;case s.BEFORE_HTML:(function(e,t){var n=t.tagID;(n===p.LB.HTML||n===p.LB.HEAD||n===p.LB.BODY||n===p.LB.BR)&&f(e,t)})(this,e);break;case s.BEFORE_HEAD:(function(e,t){var n=t.tagID;n===p.LB.HEAD||n===p.LB.BODY||n===p.LB.HTML||n===p.LB.BR?g(e,t):e._err(t,L.w.endTagWithoutMatchingOpenElement)})(this,e);break;case s.IN_HEAD:(function(e,t){switch(t.tagID){case p.LB.HEAD:e.openElements.pop(),e.insertionMode=s.AFTER_HEAD;break;case p.LB.BODY:case p.LB.BR:case p.LB.HTML:R(e,t);break;case p.LB.TEMPLATE:C(e,t);break;default:e._err(t,L.w.endTagWithoutMatchingOpenElement)}})(this,e);break;case s.IN_HEAD_NO_SCRIPT:(function(e,t){switch(t.tagID){case p.LB.NOSCRIPT:e.openElements.pop(),e.insertionMode=s.IN_HEAD;break;case p.LB.BR:b(e,t);break;default:e._err(t,L.w.endTagWithoutMatchingOpenElement)}})(this,e);break;case s.AFTER_HEAD:(function(e,t){switch(t.tagID){case p.LB.BODY:case p.LB.HTML:case p.LB.BR:D(e,t);break;case p.LB.TEMPLATE:C(e,t);break;default:e._err(t,L.w.endTagWithoutMatchingOpenElement)}})(this,e);break;case s.IN_BODY:x(this,e);break;case s.TEXT:(function(e,t){var n;t.tagID===p.LB.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode})(this,e);break;case s.IN_TABLE:j(this,e);break;case s.IN_TABLE_TEXT:Q(this,e);break;case s.IN_CAPTION:(function(e,t){var n=t.tagID;switch(n){case p.LB.CAPTION:case p.LB.TABLE:e.openElements.hasInTableScope(p.LB.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.LB.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=s.IN_TABLE,n===p.LB.TABLE&&j(e,t));break;case p.LB.BODY:case p.LB.COL:case p.LB.COLGROUP:case p.LB.HTML:case p.LB.TBODY:case p.LB.TD:case p.LB.TFOOT:case p.LB.TH:case p.LB.THEAD:case p.LB.TR:break;default:x(e,t)}})(this,e);break;case s.IN_COLUMN_GROUP:(function(e,t){switch(t.tagID){case p.LB.COLGROUP:e.openElements.currentTagId===p.LB.COLGROUP&&(e.openElements.pop(),e.insertionMode=s.IN_TABLE);break;case p.LB.TEMPLATE:C(e,t);break;case p.LB.COL:break;default:$(e,t)}})(this,e);break;case s.IN_TABLE_BODY:ee(this,e);break;case s.IN_ROW:en(this,e);break;case s.IN_CELL:(function(e,t){var n=t.tagID;switch(n){case p.LB.TD:case p.LB.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=s.IN_ROW);break;case p.LB.TABLE:case p.LB.TBODY:case p.LB.TFOOT:case p.LB.THEAD:case p.LB.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),en(e,t));break;case p.LB.BODY:case p.LB.CAPTION:case p.LB.COL:case p.LB.COLGROUP:case p.LB.HTML:break;default:x(e,t)}})(this,e);break;case s.IN_SELECT:es(this,e);break;case s.IN_SELECT_IN_TABLE:(function(e,t){var n=t.tagID;n===p.LB.CAPTION||n===p.LB.TABLE||n===p.LB.TBODY||n===p.LB.TFOOT||n===p.LB.THEAD||n===p.LB.TR||n===p.LB.TD||n===p.LB.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(p.LB.SELECT),e._resetInsertionMode(),e.onEndTag(t)):es(e,t)})(this,e);break;case s.IN_TEMPLATE:(function(e,t){t.tagID===p.LB.TEMPLATE&&C(e,t)})(this,e);break;case s.AFTER_BODY:eo(this,e);break;case s.IN_FRAMESET:(function(e,t){t.tagID===p.LB.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.LB.FRAMESET&&(e.insertionMode=s.AFTER_FRAMESET))})(this,e);break;case s.AFTER_FRAMESET:(function(e,t){t.tagID===p.LB.HTML&&(e.insertionMode=s.AFTER_AFTER_FRAMESET)})(this,e);break;case s.AFTER_AFTER_BODY:ec(this,e)}}},{key:"onEof",value:function(e){switch(this.insertionMode){case s.INITIAL:k(this,e);break;case s.BEFORE_HTML:f(this,e);break;case s.BEFORE_HEAD:g(this,e);break;case s.IN_HEAD:R(this,e);break;case s.IN_HEAD_NO_SCRIPT:b(this,e);break;case s.AFTER_HEAD:D(this,e);break;case s.IN_BODY:case s.IN_TABLE:case s.IN_CAPTION:case s.IN_COLUMN_GROUP:case s.IN_TABLE_BODY:case s.IN_ROW:case s.IN_CELL:case s.IN_SELECT:case s.IN_SELECT_IN_TABLE:G(this,e);break;case s.TEXT:(function(e,t){e._err(t,L.w.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)})(this,e);break;case s.IN_TABLE_TEXT:Q(this,e);break;case s.IN_TEMPLATE:er(this,e);break;case s.AFTER_BODY:case s.IN_FRAMESET:case s.AFTER_FRAMESET:case s.AFTER_AFTER_BODY:case s.AFTER_AFTER_FRAMESET:O(this,e)}}},{key:"onWhitespaceCharacter",value:function(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===l.gH.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case s.IN_HEAD:case s.IN_HEAD_NO_SCRIPT:case s.AFTER_HEAD:case s.TEXT:case s.IN_COLUMN_GROUP:case s.IN_SELECT:case s.IN_SELECT_IN_TABLE:case s.IN_FRAMESET:case s.AFTER_FRAMESET:this._insertCharacters(e);break;case s.IN_BODY:case s.IN_CAPTION:case s.IN_CELL:case s.IN_TEMPLATE:case s.AFTER_BODY:case s.AFTER_AFTER_BODY:case s.AFTER_AFTER_FRAMESET:P(this,e);break;case s.IN_TABLE:case s.IN_TABLE_BODY:case s.IN_ROW:W(this,e);break;case s.IN_TABLE_TEXT:V(this,e)}}}],n=[{key:"parse",value:function(e,t){var n=new this(t);return n.tokenizer.write(e,!0),n.document}},{key:"getFragmentParser",value:function(e,t){var n=d({},h,t);null!=e||(e=n.treeAdapter.createElement(p.ab.TEMPLATE,p.NS.HTML,[]));var a=n.treeAdapter.createElement("documentmock",p.NS.HTML,[]),r=new this(n,a,e);return r.fragmentContextID===p.LB.TEMPLATE&&r.tmplInsertionModeStack.unshift(s.IN_TEMPLATE),r._initTokenizerForFragmentParsing(),r._insertFakeRootElement(),r._resetInsertionMode(),r._findFormInFragmentContext(),r}}],t&&m(e.prototype,t),n&&m(e,n),a}();function N(e,t){for(var n=0;n<8;n++){var a=function(e,t){var n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?!e.openElements.hasInScope(t.tagID)&&(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Y(e,t),n}(e,t);if(!a)break;var s=function(e,t){for(var n=null,a=e.openElements.stackTop;a>=0;a--){var s=e.openElements.items[a];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[a])&&(n=s)}return!n&&(e.openElements.shortenToLength(a<0?0:a),e.activeFormattingElements.removeEntry(t)),n}(e,a);if(!s)break;e.activeFormattingElements.bookmark=a;var r=function(e,t,n){for(var a=t,s=e.openElements.getCommonAncestor(t),r=0,o=s;o!==n;r++,o=s){s=e.openElements.getCommonAncestor(o);var i=e.activeFormattingElements.getElementEntry(o),c=i&&r>=3;!i||c?(c&&e.activeFormattingElements.removeEntry(i),e.openElements.remove(o)):(o=function(e,t){var n=e.treeAdapter.getNamespaceURI(t.element),a=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,a),t.element=a,a}(e,i),a===t&&(e.activeFormattingElements.bookmark=i),e.treeAdapter.detachNode(a),e.treeAdapter.appendChild(o,a),a=o)}return a}(e,s,a.element),o=e.openElements.getCommonAncestor(a.element);e.treeAdapter.detachNode(r),o&&!function(e,t,n){var a=e.treeAdapter.getTagName(t),s=(0,p.OL)(a);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{var r=e.treeAdapter.getNamespaceURI(t);s===p.LB.TEMPLATE&&r===p.NS.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,o,r),!function(e,t,n){var a=e.treeAdapter.getNamespaceURI(n.element),s=n.token,r=e.treeAdapter.createElement(s.tagName,a,s.attrs);e._adoptNodes(t,r),e.treeAdapter.appendChild(t,r),e.activeFormattingElements.insertElementAfterBookmark(r,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,r,s.tagID)}(e,s,a)}}function u(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function O(e,t){if(e.stopped=!0,t.location){for(var n=e.fragmentContext?0:2,a=e.openElements.stackTop;a>=n;a--)e._setEndLocation(e.openElements.items[a],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){var s=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(s);if(r&&!r.endTag&&(e._setEndLocation(s,t),e.openElements.stackTop>=1)){var o=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(o);i&&!i.endTag&&e._setEndLocation(o,t)}}}}function k(e,t){e._err(t,L.w.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,p.Bj.QUIRKS),e.insertionMode=s.BEFORE_HTML,e._processToken(t)}function f(e,t){e._insertFakeRootElement(),e.insertionMode=s.BEFORE_HEAD,e._processToken(t)}function g(e,t){e._insertFakeElement(p.ab.HEAD,p.LB.HEAD),e.headElement=e.openElements.current,e.insertionMode=s.IN_HEAD,e._processToken(t)}function M(e,t){switch(t.tagID){case p.LB.HTML:w(e,t);break;case p.LB.BASE:case p.LB.BASEFONT:case p.LB.BGSOUND:case p.LB.LINK:case p.LB.META:e._appendElement(t,p.NS.HTML),t.ackSelfClosing=!0;break;case p.LB.TITLE:e._switchToTextParsing(t,r.P.RCDATA);break;case p.LB.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,r.P.RAWTEXT):(e._insertElement(t,p.NS.HTML),e.insertionMode=s.IN_HEAD_NO_SCRIPT);break;case p.LB.NOFRAMES:case p.LB.STYLE:e._switchToTextParsing(t,r.P.RAWTEXT);break;case p.LB.SCRIPT:e._switchToTextParsing(t,r.P.SCRIPT_DATA);break;case p.LB.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=s.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(s.IN_TEMPLATE);break;case p.LB.HEAD:e._err(t,L.w.misplacedStartTagForHeadElement);break;default:R(e,t)}}function C(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.LB.TEMPLATE&&e._err(t,L.w.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.LB.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,L.w.endTagWithoutMatchingOpenElement)}function R(e,t){e.openElements.pop(),e.insertionMode=s.AFTER_HEAD,e._processToken(t)}function b(e,t){var n=t.type===B.i.EOF?L.w.openElementsLeftAfterEof:L.w.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=s.IN_HEAD,e._processToken(t)}function D(e,t){e._insertFakeElement(p.ab.BODY,p.LB.BODY),e.insertionMode=s.IN_BODY,S(e,t)}function S(e,t){switch(t.type){case B.i.CHARACTER:F(e,t);break;case B.i.WHITESPACE_CHARACTER:P(e,t);break;case B.i.COMMENT:u(e,t);break;case B.i.START_TAG:w(e,t);break;case B.i.END_TAG:x(e,t);break;case B.i.EOF:G(e,t)}}function P(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function F(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function H(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,p.NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function v(e){var t=(0,B.F)(e,p.Ze.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function U(e,t){e._switchToTextParsing(t,r.P.RAWTEXT)}function y(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,p.NS.HTML)}function w(e,t){var n,a,o,i,c,E,L,l,B,m,d,I,_,h,A,u,O,k,f,g,C,R,b,D,S,P,F,w,Y,x,G,W,X,j,K,V,z,Q,Z,J,$,q,ee,et,en,ea,es,er,eo,ei,ec,eE,eT,eL,el,ep,eB,em;switch(t.tagID){case p.LB.I:case p.LB.S:case p.LB.B:case p.LB.U:case p.LB.EM:case p.LB.TT:case p.LB.BIG:case p.LB.CODE:case p.LB.FONT:case p.LB.SMALL:case p.LB.STRIKE:case p.LB.STRONG:;n=e,a=t,n._reconstructActiveFormattingElements(),n._insertElement(a,p.NS.HTML),n.activeFormattingElements.pushElement(n.openElements.current,a);break;case p.LB.A:;o=e,i=t,(c=o.activeFormattingElements.getElementEntryInScopeWithTagName(p.ab.A))&&(N(o,i),o.openElements.remove(c.element),o.activeFormattingElements.removeEntry(c)),o._reconstructActiveFormattingElements(),o._insertElement(i,p.NS.HTML),o.activeFormattingElements.pushElement(o.openElements.current,i);break;case p.LB.H1:case p.LB.H2:case p.LB.H3:case p.LB.H4:case p.LB.H5:case p.LB.H6:;E=e,L=t,E.openElements.hasInButtonScope(p.LB.P)&&E._closePElement(),(0,p.Nc)(E.openElements.currentTagId)&&E.openElements.pop(),E._insertElement(L,p.NS.HTML);break;case p.LB.P:case p.LB.DL:case p.LB.OL:case p.LB.UL:case p.LB.DIV:case p.LB.DIR:case p.LB.NAV:case p.LB.MAIN:case p.LB.MENU:case p.LB.ASIDE:case p.LB.CENTER:case p.LB.FIGURE:case p.LB.FOOTER:case p.LB.HEADER:case p.LB.HGROUP:case p.LB.DIALOG:case p.LB.DETAILS:case p.LB.ADDRESS:case p.LB.ARTICLE:case p.LB.SECTION:case p.LB.SUMMARY:case p.LB.FIELDSET:case p.LB.BLOCKQUOTE:case p.LB.FIGCAPTION:;l=e,B=t,l.openElements.hasInButtonScope(p.LB.P)&&l._closePElement(),l._insertElement(B,p.NS.HTML);break;case p.LB.LI:case p.LB.DD:case p.LB.DT:!function(e,t){e.framesetOk=!1;for(var n=t.tagID,a=e.openElements.stackTop;a>=0;a--){var s=e.openElements.tagIDs[a];if(n===p.LB.LI&&s===p.LB.LI||(n===p.LB.DD||n===p.LB.DT)&&(s===p.LB.DD||s===p.LB.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==p.LB.ADDRESS&&s!==p.LB.DIV&&s!==p.LB.P&&e._isSpecialElement(e.openElements.items[a],s))break}e.openElements.hasInButtonScope(p.LB.P)&&e._closePElement(),e._insertElement(t,p.NS.HTML)}(e,t);break;case p.LB.BR:case p.LB.IMG:case p.LB.WBR:case p.LB.AREA:case p.LB.EMBED:case p.LB.KEYGEN:H(e,t);break;case p.LB.HR:;m=e,d=t,m.openElements.hasInButtonScope(p.LB.P)&&m._closePElement(),m._appendElement(d,p.NS.HTML),m.framesetOk=!1,d.ackSelfClosing=!0;break;case p.LB.RB:case p.LB.RTC:;I=e,_=t,I.openElements.hasInScope(p.LB.RUBY)&&I.openElements.generateImpliedEndTags(),I._insertElement(_,p.NS.HTML);break;case p.LB.RT:case p.LB.RP:;h=e,A=t,h.openElements.hasInScope(p.LB.RUBY)&&h.openElements.generateImpliedEndTagsWithExclusion(p.LB.RTC),h._insertElement(A,p.NS.HTML);break;case p.LB.PRE:case p.LB.LISTING:;u=e,O=t,u.openElements.hasInButtonScope(p.LB.P)&&u._closePElement(),u._insertElement(O,p.NS.HTML),u.skipNextNewLine=!0,u.framesetOk=!1;break;case p.LB.XMP:;k=e,f=t,k.openElements.hasInButtonScope(p.LB.P)&&k._closePElement(),k._reconstructActiveFormattingElements(),k.framesetOk=!1,k._switchToTextParsing(f,r.P.RAWTEXT);break;case p.LB.SVG:;g=e,C=t,g._reconstructActiveFormattingElements(),T.NV(C),T.cS(C),C.selfClosing?g._appendElement(C,p.NS.SVG):g._insertElement(C,p.NS.SVG),C.ackSelfClosing=!0;break;case p.LB.HTML:;R=e,b=t,0===R.openElements.tmplCount&&R.treeAdapter.adoptAttributes(R.openElements.items[0],b.attrs);break;case p.LB.BASE:case p.LB.LINK:case p.LB.META:case p.LB.STYLE:case p.LB.TITLE:case p.LB.SCRIPT:case p.LB.BGSOUND:case p.LB.BASEFONT:case p.LB.TEMPLATE:M(e,t);break;case p.LB.BODY:;D=e,S=t,(P=D.openElements.tryPeekProperlyNestedBodyElement())&&0===D.openElements.tmplCount&&(D.framesetOk=!1,D.treeAdapter.adoptAttributes(P,S.attrs));break;case p.LB.FORM:;F=e,w=t,Y=F.openElements.tmplCount>0,F.formElement&&!Y||(F.openElements.hasInButtonScope(p.LB.P)&&F._closePElement(),F._insertElement(w,p.NS.HTML),Y||(F.formElement=F.openElements.current));break;case p.LB.NOBR:;x=e,G=t,x._reconstructActiveFormattingElements(),x.openElements.hasInScope(p.LB.NOBR)&&(N(x,G),x._reconstructActiveFormattingElements()),x._insertElement(G,p.NS.HTML),x.activeFormattingElements.pushElement(x.openElements.current,G);break;case p.LB.MATH:;W=e,X=t,W._reconstructActiveFormattingElements(),T.ii(X),T.cS(X),X.selfClosing?W._appendElement(X,p.NS.MATHML):W._insertElement(X,p.NS.MATHML),X.ackSelfClosing=!0;break;case p.LB.TABLE:;j=e,K=t,j.treeAdapter.getDocumentMode(j.document)!==p.Bj.QUIRKS&&j.openElements.hasInButtonScope(p.LB.P)&&j._closePElement(),j._insertElement(K,p.NS.HTML),j.framesetOk=!1,j.insertionMode=s.IN_TABLE;break;case p.LB.INPUT:;V=e,z=t,V._reconstructActiveFormattingElements(),V._appendElement(z,p.NS.HTML),v(z)||(V.framesetOk=!1),z.ackSelfClosing=!0;break;case p.LB.PARAM:case p.LB.TRACK:case p.LB.SOURCE:;Q=e,Z=t,Q._appendElement(Z,p.NS.HTML),Z.ackSelfClosing=!0;break;case p.LB.IMAGE:;J=e,($=t).tagName=p.ab.IMG,$.tagID=p.LB.IMG,H(J,$);break;case p.LB.BUTTON:;q=e,ee=t,q.openElements.hasInScope(p.LB.BUTTON)&&(q.openElements.generateImpliedEndTags(),q.openElements.popUntilTagNamePopped(p.LB.BUTTON)),q._reconstructActiveFormattingElements(),q._insertElement(ee,p.NS.HTML),q.framesetOk=!1;break;case p.LB.APPLET:case p.LB.OBJECT:case p.LB.MARQUEE:;et=e,en=t,et._reconstructActiveFormattingElements(),et._insertElement(en,p.NS.HTML),et.activeFormattingElements.insertMarker(),et.framesetOk=!1;break;case p.LB.IFRAME:;ea=e,es=t,ea.framesetOk=!1,ea._switchToTextParsing(es,r.P.RAWTEXT);break;case p.LB.SELECT:;er=e,eo=t,er._reconstructActiveFormattingElements(),er._insertElement(eo,p.NS.HTML),er.framesetOk=!1,er.insertionMode=er.insertionMode===s.IN_TABLE||er.insertionMode===s.IN_CAPTION||er.insertionMode===s.IN_TABLE_BODY||er.insertionMode===s.IN_ROW||er.insertionMode===s.IN_CELL?s.IN_SELECT_IN_TABLE:s.IN_SELECT;break;case p.LB.OPTION:case p.LB.OPTGROUP:;ei=e,ec=t,ei.openElements.currentTagId===p.LB.OPTION&&ei.openElements.pop(),ei._reconstructActiveFormattingElements(),ei._insertElement(ec,p.NS.HTML);break;case p.LB.NOEMBED:U(e,t);break;case p.LB.FRAMESET:;eE=e,eT=t,eL=eE.openElements.tryPeekProperlyNestedBodyElement(),eE.framesetOk&&eL&&(eE.treeAdapter.detachNode(eL),eE.openElements.popAllUpToHtmlElement(),eE._insertElement(eT,p.NS.HTML),eE.insertionMode=s.IN_FRAMESET);break;case p.LB.TEXTAREA:;el=e,ep=t,el._insertElement(ep,p.NS.HTML),el.skipNextNewLine=!0,el.tokenizer.state=r.P.RCDATA,el.originalInsertionMode=el.insertionMode,el.framesetOk=!1,el.insertionMode=s.TEXT;break;case p.LB.NOSCRIPT:e.options.scriptingEnabled?U(e,t):y(e,t);break;case p.LB.PLAINTEXT:;eB=e,em=t,eB.openElements.hasInButtonScope(p.LB.P)&&eB._closePElement(),eB._insertElement(em,p.NS.HTML),eB.tokenizer.state=r.P.PLAINTEXT;break;case p.LB.COL:case p.LB.TH:case p.LB.TD:case p.LB.TR:case p.LB.HEAD:case p.LB.FRAME:case p.LB.TBODY:case p.LB.TFOOT:case p.LB.THEAD:case p.LB.CAPTION:case p.LB.COLGROUP:break;default:y(e,t)}}function Y(e,t){for(var n=t.tagName,a=t.tagID,s=e.openElements.stackTop;s>0;s--){var r=e.openElements.items[s],o=e.openElements.tagIDs[s];if(a===o&&(a!==p.LB.UNKNOWN||e.treeAdapter.getTagName(r)===n)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(r,o))break}}function x(e,t){var n,a,r,o,i,c,E,T,L,l,B,m,d,I,_;switch(t.tagID){case p.LB.A:case p.LB.B:case p.LB.I:case p.LB.S:case p.LB.U:case p.LB.EM:case p.LB.TT:case p.LB.BIG:case p.LB.CODE:case p.LB.FONT:case p.LB.NOBR:case p.LB.SMALL:case p.LB.STRIKE:case p.LB.STRONG:N(e,t);break;case p.LB.P:;(n=e).openElements.hasInButtonScope(p.LB.P)||n._insertFakeElement(p.ab.P,p.LB.P),n._closePElement();break;case p.LB.DL:case p.LB.UL:case p.LB.OL:case p.LB.DIR:case p.LB.DIV:case p.LB.NAV:case p.LB.PRE:case p.LB.MAIN:case p.LB.MENU:case p.LB.ASIDE:case p.LB.BUTTON:case p.LB.CENTER:case p.LB.FIGURE:case p.LB.FOOTER:case p.LB.HEADER:case p.LB.HGROUP:case p.LB.DIALOG:case p.LB.ADDRESS:case p.LB.ARTICLE:case p.LB.DETAILS:case p.LB.SECTION:case p.LB.SUMMARY:case p.LB.LISTING:case p.LB.FIELDSET:case p.LB.BLOCKQUOTE:case p.LB.FIGCAPTION:;a=e,r=t.tagID,a.openElements.hasInScope(r)&&(a.openElements.generateImpliedEndTags(),a.openElements.popUntilTagNamePopped(r));break;case p.LB.LI:;(o=e).openElements.hasInListItemScope(p.LB.LI)&&(o.openElements.generateImpliedEndTagsWithExclusion(p.LB.LI),o.openElements.popUntilTagNamePopped(p.LB.LI));break;case p.LB.DD:case p.LB.DT:;i=e,c=t.tagID,i.openElements.hasInScope(c)&&(i.openElements.generateImpliedEndTagsWithExclusion(c),i.openElements.popUntilTagNamePopped(c));break;case p.LB.H1:case p.LB.H2:case p.LB.H3:case p.LB.H4:case p.LB.H5:case p.LB.H6:;(E=e).openElements.hasNumberedHeaderInScope()&&(E.openElements.generateImpliedEndTags(),E.openElements.popUntilNumberedHeaderPopped());break;case p.LB.BR:;(T=e)._reconstructActiveFormattingElements(),T._insertFakeElement(p.ab.BR,p.LB.BR),T.openElements.pop(),T.framesetOk=!1;break;case p.LB.BODY:!function(e,t){if(e.openElements.hasInScope(p.LB.BODY)&&(e.insertionMode=s.AFTER_BODY,e.options.sourceCodeLocationInfo)){var n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case p.LB.HTML:;L=e,l=t,L.openElements.hasInScope(p.LB.BODY)&&(L.insertionMode=s.AFTER_BODY,eo(L,l));break;case p.LB.FORM:;m=(B=e).openElements.tmplCount>0,d=B.formElement,m||(B.formElement=null),(d||m)&&B.openElements.hasInScope(p.LB.FORM)&&(B.openElements.generateImpliedEndTags(),m?B.openElements.popUntilTagNamePopped(p.LB.FORM):d&&B.openElements.remove(d));break;case p.LB.APPLET:case p.LB.OBJECT:case p.LB.MARQUEE:;I=e,_=t.tagID,I.openElements.hasInScope(_)&&(I.openElements.generateImpliedEndTags(),I.openElements.popUntilTagNamePopped(_),I.activeFormattingElements.clearToLastMarker());break;case p.LB.TEMPLATE:C(e,t);break;default:Y(e,t)}}function G(e,t){e.tmplInsertionModeStack.length>0?er(e,t):O(e,t)}function W(e,t){if(_.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=s.IN_TABLE_TEXT,t.type){case B.i.CHARACTER:z(e,t);break;case B.i.WHITESPACE_CHARACTER:V(e,t)}else K(e,t)}function X(e,t){var n,a,r,o,i,c,E,T,L,l,B,m,d,I,_,h;switch(t.tagID){case p.LB.TD:case p.LB.TH:case p.LB.TR:;n=e,a=t,n.openElements.clearBackToTableContext(),n._insertFakeElement(p.ab.TBODY,p.LB.TBODY),n.insertionMode=s.IN_TABLE_BODY,q(n,a);break;case p.LB.STYLE:case p.LB.SCRIPT:case p.LB.TEMPLATE:M(e,t);break;case p.LB.COL:;r=e,o=t,r.openElements.clearBackToTableContext(),r._insertFakeElement(p.ab.COLGROUP,p.LB.COLGROUP),r.insertionMode=s.IN_COLUMN_GROUP,J(r,o);break;case p.LB.FORM:;i=e,c=t,i.formElement||0!==i.openElements.tmplCount||(i._insertElement(c,p.NS.HTML),i.formElement=i.openElements.current,i.openElements.pop());break;case p.LB.TABLE:;E=e,T=t,E.openElements.hasInTableScope(p.LB.TABLE)&&(E.openElements.popUntilTagNamePopped(p.LB.TABLE),E._resetInsertionMode(),E._processStartTag(T));break;case p.LB.TBODY:case p.LB.TFOOT:case p.LB.THEAD:;L=e,l=t,L.openElements.clearBackToTableContext(),L._insertElement(l,p.NS.HTML),L.insertionMode=s.IN_TABLE_BODY;break;case p.LB.INPUT:;B=e,v(m=t)?B._appendElement(m,p.NS.HTML):K(B,m),m.ackSelfClosing=!0;break;case p.LB.CAPTION:;d=e,I=t,d.openElements.clearBackToTableContext(),d.activeFormattingElements.insertMarker(),d._insertElement(I,p.NS.HTML),d.insertionMode=s.IN_CAPTION;break;case p.LB.COLGROUP:;_=e,h=t,_.openElements.clearBackToTableContext(),_._insertElement(h,p.NS.HTML),_.insertionMode=s.IN_COLUMN_GROUP;break;default:K(e,t)}}function j(e,t){switch(t.tagID){case p.LB.TABLE:e.openElements.hasInTableScope(p.LB.TABLE)&&(e.openElements.popUntilTagNamePopped(p.LB.TABLE),e._resetInsertionMode());break;case p.LB.TEMPLATE:C(e,t);break;case p.LB.BODY:case p.LB.CAPTION:case p.LB.COL:case p.LB.COLGROUP:case p.LB.HTML:case p.LB.TBODY:case p.LB.TD:case p.LB.TFOOT:case p.LB.TH:case p.LB.THEAD:case p.LB.TR:break;default:K(e,t)}}function K(e,t){var n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,S(e,t),e.fosterParentingEnabled=n}function V(e,t){e.pendingCharacterTokens.push(t)}function z(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Q(e,t){var n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)K(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var Z=new Set([p.LB.CAPTION,p.LB.COL,p.LB.COLGROUP,p.LB.TBODY,p.LB.TD,p.LB.TFOOT,p.LB.TH,p.LB.THEAD,p.LB.TR]);function J(e,t){switch(t.tagID){case p.LB.HTML:w(e,t);break;case p.LB.COL:e._appendElement(t,p.NS.HTML),t.ackSelfClosing=!0;break;case p.LB.TEMPLATE:M(e,t);break;default:$(e,t)}}function $(e,t){e.openElements.currentTagId===p.LB.COLGROUP&&(e.openElements.pop(),e.insertionMode=s.IN_TABLE,e._processToken(t))}function q(e,t){switch(t.tagID){case p.LB.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,p.NS.HTML),e.insertionMode=s.IN_ROW;break;case p.LB.TH:case p.LB.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(p.ab.TR,p.LB.TR),e.insertionMode=s.IN_ROW,et(e,t);break;case p.LB.CAPTION:case p.LB.COL:case p.LB.COLGROUP:case p.LB.TBODY:case p.LB.TFOOT:case p.LB.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=s.IN_TABLE,X(e,t));break;default:X(e,t)}}function ee(e,t){var n=t.tagID;switch(t.tagID){case p.LB.TBODY:case p.LB.TFOOT:case p.LB.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=s.IN_TABLE);break;case p.LB.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=s.IN_TABLE,j(e,t));break;case p.LB.BODY:case p.LB.CAPTION:case p.LB.COL:case p.LB.COLGROUP:case p.LB.HTML:case p.LB.TD:case p.LB.TH:case p.LB.TR:break;default:j(e,t)}}function et(e,t){switch(t.tagID){case p.LB.TH:case p.LB.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,p.NS.HTML),e.insertionMode=s.IN_CELL,e.activeFormattingElements.insertMarker();break;case p.LB.CAPTION:case p.LB.COL:case p.LB.COLGROUP:case p.LB.TBODY:case p.LB.TFOOT:case p.LB.THEAD:case p.LB.TR:e.openElements.hasInTableScope(p.LB.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=s.IN_TABLE_BODY,q(e,t));break;default:X(e,t)}}function en(e,t){switch(t.tagID){case p.LB.TR:e.openElements.hasInTableScope(p.LB.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=s.IN_TABLE_BODY);break;case p.LB.TABLE:e.openElements.hasInTableScope(p.LB.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=s.IN_TABLE_BODY,ee(e,t));break;case p.LB.TBODY:case p.LB.TFOOT:case p.LB.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.LB.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=s.IN_TABLE_BODY,ee(e,t));break;case p.LB.BODY:case p.LB.CAPTION:case p.LB.COL:case p.LB.COLGROUP:case p.LB.HTML:case p.LB.TD:case p.LB.TH:break;default:j(e,t)}}function ea(e,t){switch(t.tagID){case p.LB.HTML:w(e,t);break;case p.LB.OPTION:e.openElements.currentTagId===p.LB.OPTION&&e.openElements.pop(),e._insertElement(t,p.NS.HTML);break;case p.LB.OPTGROUP:e.openElements.currentTagId===p.LB.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.LB.OPTGROUP&&e.openElements.pop(),e._insertElement(t,p.NS.HTML);break;case p.LB.INPUT:case p.LB.KEYGEN:case p.LB.TEXTAREA:case p.LB.SELECT:e.openElements.hasInSelectScope(p.LB.SELECT)&&(e.openElements.popUntilTagNamePopped(p.LB.SELECT),e._resetInsertionMode(),t.tagID!==p.LB.SELECT&&e._processStartTag(t));break;case p.LB.SCRIPT:case p.LB.TEMPLATE:M(e,t)}}function es(e,t){switch(t.tagID){case p.LB.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===p.LB.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.LB.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.LB.OPTGROUP&&e.openElements.pop();break;case p.LB.OPTION:e.openElements.currentTagId===p.LB.OPTION&&e.openElements.pop();break;case p.LB.SELECT:e.openElements.hasInSelectScope(p.LB.SELECT)&&(e.openElements.popUntilTagNamePopped(p.LB.SELECT),e._resetInsertionMode());break;case p.LB.TEMPLATE:C(e,t)}}function er(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.LB.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):O(e,t)}function eo(e,t){var n;if(t.tagID===p.LB.HTML){if(!e.fragmentContext&&(e.insertionMode=s.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.LB.HTML){e._setEndLocation(e.openElements.items[0],t);var a=e.openElements.items[1];a&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(a))||void 0===n?void 0:n.endTag)&&e._setEndLocation(a,t)}}else ei(e,t)}function ei(e,t){e.insertionMode=s.IN_BODY,S(e,t)}function ec(e,t){e.insertionMode=s.IN_BODY,S(e,t)}function eE(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==p.NS.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}},91107:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n("24881");function s(e){if("string"==typeof e)e=new URL(e);else if(!(0,a.C)(e)){var t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){var n=TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(e){if(""!==e.hostname){var t=TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}for(var n=e.pathname,a=-1;++a<n.length;)if(37===n.charCodeAt(a)&&50===n.charCodeAt(a+1)){var s=n.charCodeAt(a+2);if(70===s||102===s){var r=TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(n)}(e)}}}]);