UNPKG

@codesandbox/sandpack-client

Version:

<img style="width:100%" src="https://user-images.githubusercontent.com/4838076/143581035-ebee5ba2-9cb1-4fe8-a05b-2f44bd69bb4b.gif" alt="Component toolkit for live running code editing experiences" />

1 lines 78.7 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.html=t())}(this,function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}})(e,t,n||e)}function l(e,t){return u(e)||function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(e,t)||h()}function u(e){if(Array.isArray(e))return e}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var p=/[|\\{}()[\]^$+*?.]/g,d=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(p,"\\$&")},f={"---":"yaml","+++":"toml"};var m=function(e){var t=Object.keys(f).map(d).join("|"),n=e.match(new RegExp("^(".concat(t,")[^\\n\\S]*\\n(?:([\\s\\S]*?)\\n)?\\1[^\\n\\S]*(\\n|$)")));if(null===n)return{frontMatter:null,content:e};var i=n[0].replace(/\n$/,""),r=n[1],o=n[2];return{frontMatter:{type:f[r],value:o,raw:i},content:n[0].replace(/[^\n]/g," ")+e.slice(n[0].length)}},_=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"],v=Object.freeze({default:_}),g=["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],y=["title"],T=["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],S=["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],C=["autoplay","controls","crossorigin","loop","muted","preload","src"],k=["href","target"],E=["color","face","size"],b=["dir"],A=["cite"],P=["alink","background","bgcolor","link","text","vlink"],N=["clear"],x=["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],w=["height","width"],O=["align"],R=["align","char","charoff","span","valign","width"],$=["align","char","charoff","span","valign","width"],D=["value"],L=["cite","datetime"],M=["open"],I=["title"],F=["open"],B=["compact"],U=["align"],X=["compact"],j=["height","src","type","width"],V=["disabled","form","name"],q=["color","face","size"],z=["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],H=["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],G=["cols","rows"],W=["align"],Q=["align"],K=["align"],Y=["align"],J=["align"],Z=["align"],ee=["profile"],te=["align","noshade","size","width"],ne=["manifest","version"],ie=["align","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],re=["align","alt","border","crossorigin","decoding","height","hspace","ismap","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],oe=["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ae=["cite","datetime"],se=["prompt"],ce=["accesskey","for","form"],le=["accesskey","align"],ue=["type","value"],he=["as","charset","color","crossorigin","href","hreflang","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],pe=["name"],de=["compact"],fe=["charset","content","http-equiv","name","scheme"],me=["high","low","max","min","optimum","value"],_e=["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ve=["compact","reversed","start","type"],ge=["disabled","label"],ye=["disabled","label","selected","value"],Te=["for","form","name"],Se=["align"],Ce=["name","type","value","valuetype"],ke=["width"],Ee=["max","value"],be=["cite"],Ae=["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],Pe=["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],Ne=["name"],xe=["media","sizes","src","srcset","type"],we=["media","nonce","title","type"],Oe=["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],Re=["align","char","charoff","valign"],$e=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],De=["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],Le=["align","char","charoff","valign"],Me=["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],Ie=["align","char","charoff","valign"],Fe=["datetime"],Be=["align","bgcolor","char","charoff","valign"],Ue=["default","kind","label","src","srclang"],Xe=["compact","type"],je=["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"],Ve={a:g,abbr:y,applet:T,area:S,audio:C,base:k,basefont:E,bdo:b,blockquote:A,body:P,br:N,button:x,canvas:w,caption:O,col:R,colgroup:$,data:D,del:L,details:M,dfn:I,dialog:F,dir:B,div:U,dl:X,embed:j,fieldset:V,font:q,form:z,frame:H,frameset:G,h1:W,h2:Q,h3:K,h4:Y,h5:J,h6:Z,head:ee,hr:te,html:ne,iframe:ie,img:re,input:oe,ins:ae,isindex:se,label:ce,legend:le,li:ue,link:he,map:pe,menu:de,meta:fe,meter:me,object:_e,ol:ve,optgroup:ge,option:ye,output:Te,p:Se,param:Ce,pre:ke,progress:Ee,q:be,script:Ae,select:Pe,slot:Ne,source:xe,style:we,table:Oe,tbody:Re,td:$e,textarea:De,tfoot:Le,th:Me,thead:Ie,time:Fe,tr:Be,track:Ue,ul:Xe,video:je,"*":["accesskey","autocapitalize","class","contenteditable","dir","draggable","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"]},qe=Object.freeze({a:g,abbr:y,applet:T,area:S,audio:C,base:k,basefont:E,bdo:b,blockquote:A,body:P,br:N,button:x,canvas:w,caption:O,col:R,colgroup:$,data:D,del:L,details:M,dfn:I,dialog:F,dir:B,div:U,dl:X,embed:j,fieldset:V,font:q,form:z,frame:H,frameset:G,h1:W,h2:Q,h3:K,h4:Y,h5:J,h6:Z,head:ee,hr:te,html:ne,iframe:ie,img:re,input:oe,ins:ae,isindex:se,label:ce,legend:le,li:ue,link:he,map:pe,menu:de,meta:fe,meter:me,object:_e,ol:ve,optgroup:ge,option:ye,output:Te,p:Se,param:Ce,pre:ke,progress:Ee,q:be,script:Ae,select:Pe,slot:Ne,source:xe,style:we,table:Oe,tbody:Re,td:$e,textarea:De,tfoot:Le,th:Me,thead:Ie,time:Fe,tr:Be,track:Ue,ul:Xe,video:je,default:Ve}),ze=qe&&Ve||qe,He={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"none",rp:"none",script:"none",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",video:"inline-block",audio:"inline-block"},Ge="inline",We={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},Qe="normal",Ke=Ye(v&&_||v);function Ye(e){var t=Object.create(null),n=!0,i=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){t[o.value]=!0}}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return t}function Je(e,t){return!("element"!==e.type||"template"!==e.fullName||!e.attrMap.lang||"html"===e.attrMap.lang)||(!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||("ieConditionalComment"===e.type&&!e.complete||("vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&-1===["template","style","script","html"].indexOf(e.fullName)||!(!ht(e)||!e.children.some(function(e){return"text"!==e.type&&"interpolation"!==e.type})))))}function Ze(e){return"attribute"!==e.type&&!et(e)&&(!!e.parent&&("number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])))}function et(e){return"text"===e.type||"comment"===e.type}function tt(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName)}function nt(e){return"yaml"===e.type||"toml"===e.type}function it(e){return pt(e).startsWith("pre")}function rt(e){return"element"===e.type&&0!==e.children.length&&(-1!==["html","head","ul","ol","select"].indexOf(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function ot(e){return lt(e)||"element"===e.type&&"br"===e.fullName||at(e)}function at(e){return st(e)&&ct(e)}function st(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:"root"===e.parent.type||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function ct(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function lt(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return-1!==["script","select"].indexOf(e.name)}return!1}function ut(e){return"block"===e||"list-item"===e||e.startsWith("table")}function ht(e){return pt(e).startsWith("pre")}function pt(e){return"element"===e.type&&!e.namespace&&We[e.name]||Qe}var dt={HTML_ELEMENT_ATTRIBUTES:function(e,t){for(var n=Object.create(null),i=Object.keys(e),r=0;r<i.length;r++){var o=i[r];n[o]=t(e[o],o)}return n}(ze,Ye),HTML_TAGS:Ke,canHaveInterpolation:function(e){return e.children&&!tt(e)},countChars:function(e,t){for(var n=0,i=0;i<e.length;i++)e[i]===t&&n++;return n},countParents:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},i=0,r=t.stack.length-1;r>=0;r--){var o=t.stack[r];o&&"object"===e(o)&&!Array.isArray(o)&&n(o)&&i++}return i},dedentString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t=1/0,n=!0,i=!1,r=void 0;try{for(var o,a=e.split("\n")[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(0!==s.length){if(/\S/.test(s[0]))return 0;var c=s.match(/^\s*/)[0].length;s.length!==c&&c<t&&(t=c)}}}catch(e){i=!0,r=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}return t===1/0?0:t}(e);return 0===t?e:e.split("\n").map(function(e){return e.slice(t)}).join("\n")},forceBreakChildren:rt,forceBreakContent:function(e){return rt(e)||"element"===e.type&&0!==e.children.length&&(-1!==["body","template","script","style"].indexOf(e.name)||e.children.some(function(e){return(t=e).children&&t.children.some(function(e){return"text"!==e.type});var t}))||e.firstChild&&e.firstChild===e.lastChild&&st(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||ct(e.lastChild))},forceNextEmptyLine:function(e){return nt(e)||e.next&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&"comment"===e.prev.type){var n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(n)return n[1]}var i=!1;if("element"===e.type&&"svg"===e.namespace){if(!function(e,t){for(var n=e;n;){if(t(n))return!0;n=n.parent}return!1}(e,function(e){return"svg:foreignObject"===e.fullName}))return"svg"===e.name?"inline-block":"block";i=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||i)&&He[e.name]||Ge}},getNodeCssStyleWhiteSpace:pt,getPrettierIgnoreAttributeCommentData:function(e){var t=e.trim().match(/^prettier-ignore-attribute(?:\s+([^]+))?$/);return!!t&&(!t[1]||t[1].split(/\s+/))},hasPrettierIgnore:Ze,identity:function(e){return e},inferScriptParser:function(e){if("script"===e.name&&!e.attrMap.src){if(!e.attrMap.lang&&!e.attrMap.type||"module"===e.attrMap.type||"text/javascript"===e.attrMap.type||"text/babel"===e.attrMap.type||"application/javascript"===e.attrMap.type)return"babel";if("application/x-typescript"===e.attrMap.type||"ts"===e.attrMap.lang||"tsx"===e.attrMap.lang)return"typescript";if("text/markdown"===e.attrMap.type)return"markdown";if("application/ld+json"===e.attrMap.type)return"json"}if("style"===e.name){if(!e.attrMap.lang||"postcss"===e.attrMap.lang)return"css";if("scss"===e.attrMap.lang)return"scss";if("less"===e.attrMap.lang)return"less"}return null},isDanglingSpaceSensitiveNode:function(e){return!ut(t=e.cssDisplay)&&"inline-block"!==t&&!tt(e);var t},isFrontMatterNode:nt,isIndentationSensitiveNode:it,isLeadingSpaceSensitiveNode:function(e){var t=!(nt(e)||("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)&&(!e.parent||"none"===e.parent.cssDisplay||!ht(e.parent)&&(!e.prev&&("root"===e.parent.type||tt(e.parent)||(n=e.parent.cssDisplay,ut(n)||"inline-block"===n))||e.prev&&!function(e){return!ut(e)}(e.prev.cssDisplay))));var n;return t&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:t},isPreLikeNode:ht,isScriptLikeTag:tt,isTextLikeNode:et,isTrailingSpaceSensitiveNode:function(e){return!(nt(e)||("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)&&(!e.parent||"none"===e.parent.cssDisplay||!ht(e.parent)&&(!e.next&&("root"===e.parent.type||tt(e.parent)||(t=e.parent.cssDisplay,ut(t)||"inline-block"===t))||e.next&&!function(e){return!ut(e)}(e.next.cssDisplay))));var t},isWhitespaceSensitiveNode:function(e){return tt(e)||"interpolation"===e.type||it(e)},normalizeParts:function(e){for(var t=[],n=e.slice();0!==n.length;){var i=n.shift();i&&("concat"!==i.type?0===t.length||"string"!=typeof t[t.length-1]||"string"!=typeof i?t.push(i):t.push(t.pop()+i):Array.prototype.unshift.apply(n,i.parts))}return t},preferHardlineAsLeadingSpaces:function(e){return lt(e)||e.prev&&ot(e.prev)||at(e)},preferHardlineAsTrailingSpaces:ot,shouldNotPrintClosingTag:function(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Ze(e)||Je(e.parent,t))},shouldPreserveContent:Je,unescapeQuoteEntities:function(e){return e.replace(/&apos;/g,"'").replace(/&quot;/g,'"')}};var ft=function(e){return/^\s*<!--\s*@(format|prettier)\s*-->/.test(e)};var mt=function(e,t){var n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n},_t={attrs:!0,children:!0},vt=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t(this,e);for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r],a=n[o];o in _t?this._setNodes(o,a):this[o]=a}}return i(e,[{key:"_setNodes",value:function(e,t){t!==this[e]&&(this[e]=function(e,t){for(var n=e.map(function(e){return e instanceof vt?e.clone():new vt(e)}),i=null,r=n[0],o=n[1]||null,a=0;a<n.length;a++)yt(r,{index:a,siblings:n,prev:i,next:o,parent:t}),i=r,r=o,o=n[a+2]||null;return n}(t,this),"attrs"===e&&yt(this,{attrMap:this[e].reduce(function(e,t){return e[t.fullName]=t.value,e},Object.create(null))}))}},{key:"map",value:function(t){var n=null;for(var i in _t){var r=this[i];if(r){var o=gt(r,function(e){return e.map(t)});n!==r&&(n||(n=new e),n._setNodes(i,o))}}if(n){for(var a in this)a in _t||(n[a]=this[a]);yt(n,{index:this.index,siblings:this.siblings,prev:this.prev,next:this.next,parent:this.parent})}return t(n||this)}},{key:"clone",value:function(t){return new e(t?Object.assign({},this,t):this)}},{key:"firstChild",get:function(){return this.children&&0!==this.children.length?this.children[0]:null}},{key:"lastChild",get:function(){return this.children&&0!==this.children.length?this.children[this.children.length-1]:null}},{key:"rawName",get:function(){return this.hasExplicitNamespace?this.fullName:this.name}},{key:"fullName",get:function(){return this.namespace?this.namespace+":"+this.name:this.name}}]),e}();function gt(e,t){var n=e.map(t);return n.some(function(t,n){return t!==e[n]})?n:e}function yt(e,t){var n=Object.keys(t).reduce(function(e,n){return e[n]={value:t[n],enumerable:!1},e},{});Object.defineProperties(e,n)}var Tt={Node:vt},St=[[/^(\[if([^\]]*?)\]>)([\s\S]*?)<!\s*\[endif\]$/,function(e,t,n){var i=l(n,4),r=i[1],o=i[2],a=i[3],s="\x3c!--".length+r.length,c=e.sourceSpan.start.moveBy(s),u=c.moveBy(a.length),h=e.sourceSpan.constructor,p=l(function(){try{return[!0,t(a,c).children]}catch(t){var e={type:"text",value:a,sourceSpan:new h(c,u)};return[!1,[e]]}}(),2),d=p[0],f=p[1];return{type:"ieConditionalComment",complete:d,children:f,condition:o.trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan,startSourceSpan:new h(e.sourceSpan.start,c),endSourceSpan:new h(u,e.sourceSpan.end)}}],[/^\[if([^\]]*?)\]><!$/,function(e,t,n){return{type:"ieConditionalStartComment",condition:l(n,2)[1].trim().replace(/\s+/g," "),sourceSpan:e.sourceSpan}}],[/^<!\s*\[endif\]$/,function(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}]];var Ct=function(e,t){if(e.value)for(var n,i=0;i<St.length;i++){var r=l(St[i],2),o=r[0],a=r[1];if(n=e.value.match(o))return a(e,t,n)}return null};function kt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Et(e,t){return e(t={exports:{}},t.exports),t.exports}var bt=Et(function(e,t){function n(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(-1==t)throw new Error('Unsupported format "'.concat(e,'" expecting ":namespace:name"'));return[e.slice(1,t),e.slice(t+1)]}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(t.TagContentType||(t.TagContentType={})),t.splitNsName=n,t.isNgContainer=function(e){return"ng-container"===n(e)[1]},t.isNgContent=function(e){return"ng-content"===n(e)[1]},t.isNgTemplate=function(e){return"ng-template"===n(e)[1]},t.getNsPrefix=function(e){return null===e?null:n(e)[0]},t.mergeNsAndName=function(e,t){return e?":".concat(e,":").concat(t):t},t.NAMED_ENTITIES={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},t.NGSP_UNICODE="",t.NAMED_ENTITIES.ngsp=t.NGSP_UNICODE});kt(bt);var At=Et(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r,o,a=function(){function e(){var n=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.closedByChildren,o=i.requiredParents,a=i.implicitNamespacePrefix,s=i.contentType,c=void 0===s?bt.TagContentType.PARSABLE_DATA:s,l=i.closedByParent,u=void 0!==l&&l,h=i.isVoid,p=void 0!==h&&h,d=i.ignoreFirstLf,f=void 0!==d&&d;t(this,e),this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(e){return n.closedByChildren[e]=!0}),this.isVoid=p,this.closedByParent=u||p,o&&o.length>0&&(this.requiredParents={},this.parentToAdd=o[0],o.forEach(function(e){return n.requiredParents[e]=!0})),this.implicitNamespacePrefix=a||null,this.contentType=c,this.ignoreFirstLf=f}return i(e,[{key:"requireExtraParent",value:function(e){if(!this.requiredParents)return!1;if(!e)return!0;var t=e.toLowerCase();return!("template"===t||"ng-template"===e)&&1!=this.requiredParents[t]}},{key:"isClosedByChild",value:function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}}]),e}();n.HtmlTagDefinition=a,n.getHtmlTagDefinition=function(e){return o||(r=new a,o={base:new a({isVoid:!0}),meta:new a({isVoid:!0}),area:new a({isVoid:!0}),embed:new a({isVoid:!0}),link:new a({isVoid:!0}),img:new a({isVoid:!0}),input:new a({isVoid:!0}),param:new a({isVoid:!0}),hr:new a({isVoid:!0}),br:new a({isVoid:!0}),source:new a({isVoid:!0}),track:new a({isVoid:!0}),wbr:new a({isVoid:!0}),p:new a({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new a({closedByChildren:["tbody","tfoot"]}),tbody:new a({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new a({closedByChildren:["tbody"],closedByParent:!0}),tr:new a({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new a({closedByChildren:["td","th"],closedByParent:!0}),th:new a({closedByChildren:["td","th"],closedByParent:!0}),col:new a({requiredParents:["colgroup"],isVoid:!0}),svg:new a({implicitNamespacePrefix:"svg"}),math:new a({implicitNamespacePrefix:"math"}),li:new a({closedByChildren:["li"],closedByParent:!0}),dt:new a({closedByChildren:["dt","dd"]}),dd:new a({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new a({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new a({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new a({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new a({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new a({closedByChildren:["optgroup"],closedByParent:!0}),option:new a({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new a({ignoreFirstLf:!0}),listing:new a({ignoreFirstLf:!0}),style:new a({contentType:bt.TagContentType.RAW_TEXT}),script:new a({contentType:bt.TagContentType.RAW_TEXT}),title:new a({contentType:bt.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new a({contentType:bt.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),o[e]||r}});kt(At);var Pt=Et(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.assertArrayOfStrings=function(e,t){if(null!=t){if(!Array.isArray(t))throw new Error("Expected '".concat(e,"' to be an array of strings."));for(var n=0;n<t.length;n+=1)if("string"!=typeof t[n])throw new Error("Expected '".concat(e,"' to be an array of strings."))}};var n=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];t.assertInterpolationSymbols=function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){var i=t[0],r=t[1];n.forEach(function(e){if(e.test(i)||e.test(r))throw new Error("['".concat(i,"', '").concat(r,"'] contains unusable interpolation symbol."))})}}});kt(Pt);var Nt=Et(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(n,i){t(this,e),this.start=n,this.end=i}return i(e,null,[{key:"fromArray",value:function(t){return t?(Pt.assertInterpolationSymbols("interpolation",t),new e(t[0],t[1])):n.DEFAULT_INTERPOLATION_CONFIG}}]),e}();n.InterpolationConfig=r,n.DEFAULT_INTERPOLATION_CONFIG=new r("{{","}}")});kt(Nt);var xt=Et(function(e,t){function n(e){return t.$0<=e&&e<=t.$9}Object.defineProperty(t,"__esModule",{value:!0}),t.$EOF=0,t.$TAB=9,t.$LF=10,t.$VTAB=11,t.$FF=12,t.$CR=13,t.$SPACE=32,t.$BANG=33,t.$DQ=34,t.$HASH=35,t.$$=36,t.$PERCENT=37,t.$AMPERSAND=38,t.$SQ=39,t.$LPAREN=40,t.$RPAREN=41,t.$STAR=42,t.$PLUS=43,t.$COMMA=44,t.$MINUS=45,t.$PERIOD=46,t.$SLASH=47,t.$COLON=58,t.$SEMICOLON=59,t.$LT=60,t.$EQ=61,t.$GT=62,t.$QUESTION=63,t.$0=48,t.$9=57,t.$A=65,t.$E=69,t.$F=70,t.$X=88,t.$Z=90,t.$LBRACKET=91,t.$BACKSLASH=92,t.$RBRACKET=93,t.$CARET=94,t.$_=95,t.$a=97,t.$e=101,t.$f=102,t.$n=110,t.$r=114,t.$t=116,t.$u=117,t.$v=118,t.$x=120,t.$z=122,t.$LBRACE=123,t.$BAR=124,t.$RBRACE=125,t.$NBSP=160,t.$PIPE=124,t.$TILDA=126,t.$AT=64,t.$BT=96,t.isWhitespace=function(e){return e>=t.$TAB&&e<=t.$SPACE||e==t.$NBSP},t.isDigit=n,t.isAsciiLetter=function(e){return e>=t.$a&&e<=t.$z||e>=t.$A&&e<=t.$Z},t.isAsciiHexDigit=function(e){return e>=t.$a&&e<=t.$f||e>=t.$A&&e<=t.$F||n(e)}});kt(xt);var wt=Et(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(n,i,r){t(this,e),this.filePath=n,this.name=i,this.members=r}return i(e,[{key:"assertNoMembers",value:function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}]),e}();n.StaticSymbol=r;var o=function(){function e(){t(this,e),this.cache=new Map}return i(e,[{key:"get",value:function(e,t,n){var i=(n=n||[]).length?".".concat(n.join(".")):"",o='"'.concat(e,'".').concat(t).concat(i),a=this.cache.get(o);return a||(a=new r(e,t,n),this.cache.set(o,a)),a}}]),e}();n.StaticSymbolCache=o});kt(wt);var Ot=Et(function(n,r){Object.defineProperty(r,"__esModule",{value:!0});var o=/-+([a-z0-9])/g;function a(e,t,n){var i=e.indexOf(t);return-1==i?n:[e.slice(0,i).trim(),e.slice(i+1).trim()]}function s(t,n,i){return Array.isArray(t)?n.visitArray(t,i):"object"===e(r=t)&&null!==r&&Object.getPrototypeOf(r)===h?n.visitStringMap(t,i):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?n.visitPrimitive(t,i):n.visitOther(t,i);var r}r.dashCaseToCamelCase=function(e){return e.replace(o,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})},r.splitAtColon=function(e,t){return a(e,":",t)},r.splitAtPeriod=function(e,t){return a(e,".",t)},r.visitValue=s,r.isDefined=function(e){return null!==e&&void 0!==e},r.noUndefined=function(e){return void 0===e?null:e};var c=function(){function e(){t(this,e)}return i(e,[{key:"visitArray",value:function(e,t){var n=this;return e.map(function(e){return s(e,n,t)})}},{key:"visitStringMap",value:function(e,t){var n=this,i={};return Object.keys(e).forEach(function(r){i[r]=s(e[r],n,t)}),i}},{key:"visitPrimitive",value:function(e,t){return e}},{key:"visitOther",value:function(e,t){return e}}]),e}();r.ValueTransformer=c,r.SyncAsync={assertSync:function(e){if(p(e))throw new Error("Illegal state: value cannot be a promise");return e},then:function(e,t){return p(e)?e.then(t):t(e)},all:function(e){return e.some(p)?Promise.all(e):e}},r.error=function(e){throw new Error("Internal Error: ".concat(e))},r.syntaxError=function(e,t){var n=Error(e);return n[l]=!0,t&&(n[u]=t),n};var l="ngSyntaxError",u="ngParseErrors";r.isSyntaxError=function(e){return e[l]},r.getParseErrors=function(e){return e[u]||[]},r.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};var h=Object.getPrototypeOf({});function p(e){return!!e&&"function"==typeof e.then}r.utf8Encode=function(e){for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);if(i>=55296&&i<=56319&&e.length>n+1){var r=e.charCodeAt(n+1);r>=56320&&r<=57343&&(n++,i=(i-55296<<10)+r-56320+65536)}i<=127?t+=String.fromCharCode(i):i<=2047?t+=String.fromCharCode(i>>6&31|192,63&i|128):i<=65535?t+=String.fromCharCode(i>>12|224,i>>6&63|128,63&i|128):i<=2097151&&(t+=String.fromCharCode(i>>18&7|240,i>>12&63|128,i>>6&63|128,63&i|128))}return t},r.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var n=t.toString();if(null==n)return""+n;var i=n.indexOf("\n");return-1===i?n:n.substring(0,i)},r.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},r.isPromise=p;r.Version=function e(n){t(this,e),this.full=n;var i=n.split(".");this.major=i[0],this.minor=i[1],this.patch=i.slice(2).join(".")}});kt(Ot);var Rt=Et(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function o(e){return e.replace(/\W/g,"_")}n.sanitizeIdentifier=o;var a,s=0;function c(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof wt.StaticSymbol)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=Ot.stringify(t);return n.indexOf("(")>=0?(n="anonymous_".concat(s++),t.__anonymousType=n):n=o(n),n}n.identifierName=c,n.identifierModuleUrl=function(e){var t=e.reference;return t instanceof wt.StaticSymbol?t.filePath:"./".concat(Ot.stringify(t))},n.viewClassName=function(e,t){return"View_".concat(c({reference:e}),"_").concat(t)},n.rendererTypeName=function(e){return"RenderType_".concat(c({reference:e}))},n.hostViewClassName=function(e){return"HostView_".concat(c({reference:e}))},n.componentFactoryName=function(e){return"".concat(c({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(a=n.CompileSummaryKind||(n.CompileSummaryKind={})),n.tokenName=function(e){return null!=e.value?o(e.value):c(e.identifier)},n.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value};n.CompileStylesheetMetadata=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.moduleUrl,r=n.styles,o=n.styleUrls;t(this,e),this.moduleUrl=i||null,this.styles=f(r),this.styleUrls=f(o)};var l=function(){function e(n){var i=n.encapsulation,r=n.template,o=n.templateUrl,a=n.htmlAst,s=n.styles,c=n.styleUrls,l=n.externalStylesheets,u=n.animations,h=n.ngContentSelectors,p=n.interpolation,d=n.isInline,_=n.preserveWhitespaces;if(t(this,e),this.encapsulation=i,this.template=r,this.templateUrl=o,this.htmlAst=a,this.styles=f(s),this.styleUrls=f(c),this.externalStylesheets=f(l),this.animations=u?m(u):[],this.ngContentSelectors=h||[],p&&2!=p.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=p,this.isInline=d,this.preserveWhitespaces=_}return i(e,[{key:"toSummary",value:function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}]),e}();n.CompileTemplateMetadata=l;var u=function(){function e(n){var i=n.isHost,r=n.type,o=n.isComponent,a=n.selector,s=n.exportAs,c=n.changeDetection,l=n.inputs,u=n.outputs,h=n.hostListeners,p=n.hostProperties,d=n.hostAttributes,m=n.providers,_=n.viewProviders,v=n.queries,g=n.guards,y=n.viewQueries,T=n.entryComponents,S=n.template,C=n.componentViewType,k=n.rendererType,E=n.componentFactory;t(this,e),this.isHost=!!i,this.type=r,this.isComponent=o,this.selector=a,this.exportAs=s,this.changeDetection=c,this.inputs=l,this.outputs=u,this.hostListeners=h,this.hostProperties=p,this.hostAttributes=d,this.providers=f(m),this.viewProviders=f(_),this.queries=f(v),this.guards=g,this.viewQueries=f(y),this.entryComponents=f(T),this.template=S,this.componentViewType=C,this.rendererType=k,this.componentFactory=E}return i(e,null,[{key:"create",value:function(t){var n=t.isHost,i=t.type,o=t.isComponent,a=t.selector,s=t.exportAs,c=t.changeDetection,l=t.inputs,u=t.outputs,h=t.host,p=t.providers,d=t.viewProviders,f=t.queries,m=t.guards,_=t.viewQueries,v=t.entryComponents,g=t.template,y=t.componentViewType,T=t.rendererType,S=t.componentFactory,C={},k={},E={};null!=h&&Object.keys(h).forEach(function(e){var t=h[e],n=e.match(r);null===n?E[e]=t:null!=n[1]?k[n[1]]=t:null!=n[2]&&(C[n[2]]=t)});var b={};null!=l&&l.forEach(function(e){var t=Ot.splitAtColon(e,[e,e]);b[t[0]]=t[1]});var A={};return null!=u&&u.forEach(function(e){var t=Ot.splitAtColon(e,[e,e]);A[t[0]]=t[1]}),new e({isHost:n,type:i,isComponent:!!o,selector:a,exportAs:s,changeDetection:c,inputs:b,outputs:A,hostListeners:C,hostProperties:k,hostAttributes:E,providers:p,viewProviders:d,queries:f,guards:m,viewQueries:_,entryComponents:v,template:g,componentViewType:y,rendererType:T,componentFactory:S})}}]),i(e,[{key:"toSummary",value:function(){return{summaryKind:a.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}]),e}();n.CompileDirectiveMetadata=u;var h=function(){function e(n){var i=n.type,r=n.name,o=n.pure;t(this,e),this.type=i,this.name=r,this.pure=!!o}return i(e,[{key:"toSummary",value:function(){return{summaryKind:a.Pipe,type:this.type,name:this.name,pure:this.pure}}}]),e}();n.CompilePipeMetadata=h;n.CompileShallowModuleMetadata=function e(){t(this,e)};var p=function(){function e(n){var i=n.type,r=n.providers,o=n.declaredDirectives,a=n.exportedDirectives,s=n.declaredPipes,c=n.exportedPipes,l=n.entryComponents,u=n.bootstrapComponents,h=n.importedModules,p=n.exportedModules,d=n.schemas,m=n.transitiveModule,_=n.id;t(this,e),this.type=i||null,this.declaredDirectives=f(o),this.exportedDirectives=f(a),this.declaredPipes=f(s),this.exportedPipes=f(c),this.providers=f(r),this.entryComponents=f(l),this.bootstrapComponents=f(u),this.importedModules=f(h),this.exportedModules=f(p),this.schemas=f(d),this.id=_||null,this.transitiveModule=m||null}return i(e,[{key:"toSummary",value:function(){var e=this.transitiveModule;return{summaryKind:a.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}}}]),e}();n.CompileNgModuleMetadata=p;var d=function(){function e(){t(this,e),this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return i(e,[{key:"addProvider",value:function(e,t){this.providers.push({provider:e,module:t})}},{key:"addDirective",value:function(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))}},{key:"addExportedDirective",value:function(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))}},{key:"addPipe",value:function(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))}},{key:"addExportedPipe",value:function(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))}},{key:"addModule",value:function(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))}},{key:"addEntryComponent",value:function(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))}}]),e}();function f(e){return e||[]}n.TransitiveCompileNgModuleMetadata=d;function m(e){return e.reduce(function(e,t){var n=Array.isArray(t)?m(t):t;return e.concat(n)},[])}function _(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}n.ProviderMeta=function e(n,i){var r=i.useClass,o=i.useValue,a=i.useExisting,s=i.useFactory,c=i.deps,l=i.multi;t(this,e),this.token=n,this.useClass=r||null,this.useValue=o,this.useExisting=a,this.useFactory=s||null,this.dependencies=c||null,this.multi=!!l},n.flatten=m,n.templateSourceUrl=function(e,t,n){var i;return i=n.isInline?t.type.reference instanceof wt.StaticSymbol?"".concat(t.type.reference.filePath,".").concat(t.type.reference.name,".html"):"".concat(c(e),"/").concat(c(t.type),".html"):n.templateUrl,t.type.reference instanceof wt.StaticSymbol?i:_(i)},n.sharedStylesheetJitUrl=function(e,t){var n=e.moduleUrl.split(/\/\\/g),i=n[n.length-1];return _("css/".concat(t).concat(i,".ngstyle.js"))},n.ngModuleJitUrl=function(e){return _("".concat(c(e.type),"/module.ngfactory.js"))},n.templateJitUrl=function(e,t){return _("".concat(c(e),"/").concat(c(t.type),".ngfactory.js"))}});kt(Rt);var $t=Et(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(n,i,r,o){t(this,e),this.file=n,this.offset=i,this.line=r,this.col=o}return i(e,[{key:"toString",value:function(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}},{key:"moveBy",value:function(t){for(var n=this.file.content,i=n.length,r=this.offset,o=this.line,a=this.col;r>0&&t<0;){if(r--,t++,n.charCodeAt(r)==xt.$LF){o--;var s=n.substr(0,r-1).lastIndexOf(String.fromCharCode(xt.$LF));a=s>0?r-s:r}else a--}for(;r<i&&t>0;){var c=n.charCodeAt(r);r++,t--,c==xt.$LF?(o++,a=0):a++}return new e(this.file,r,o,a)}},{key:"getContext",value:function(e,t){var n=this.file.content,i=this.offset;if(null!=i){i>n.length-1&&(i=n.length-1);for(var r=i,o=0,a=0;o<e&&i>0&&(o++,"\n"!=n[--i]||++a!=t););for(o=0,a=0;o<e&&r<n.length-1&&(o++,"\n"!=n[++r]||++a!=t););return{before:n.substring(i,this.offset),after:n.substring(this.offset,r+1)}}return null}}]),e}();n.ParseLocation=r;var o=function e(n,i){t(this,e),this.content=n,this.url=i};n.ParseSourceFile=o;var a,s=function(){function e(n,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;t(this,e),this.start=n,this.end=i,this.details=r}return i(e,[{key:"toString",value:function(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}]),e}();n.ParseSourceSpan=s,function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(a=n.ParseErrorLevel||(n.ParseErrorLevel={}));var c=function(){function e(n,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.ERROR;t(this,e),this.span=n,this.msg=i,this.level=r}return i(e,[{key:"contextualMessage",value:function(){var e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(a[this.level]," ->]").concat(e.after,'")'):this.msg}},{key:"toString",value:function(){var e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}}]),e}();n.ParseError=c,n.typeSourceSpan=function(e,t){var n=Rt.identifierModuleUrl(t),i=null!=n?"in ".concat(e," ").concat(Rt.identifierName(t)," in ").concat(n):"in ".concat(e," ").concat(Rt.identifierName(t)),a=new o("",i);return new s(new r(a,-1,-1,-1),new r(a,-1,-1,-1))}});kt($t);var Dt=Et(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;t(this,e),this.path=n,this.position=i}return i(e,[{key:"parentOf",value:function(e){return e&&this.path[this.path.indexOf(e)-1]}},{key:"childOf",value:function(e){return this.path[this.path.indexOf(e)+1]}},{key:"first",value:function(e){for(var t=this.path.length-1;t>=0;t--){var n=this.path[t];if(n instanceof e)return n}}},{key:"push",value:function(e){this.path.push(e)}},{key:"pop",value:function(){return this.path.pop()}},{key:"empty",get:function(){return!this.path||!this.path.length}},{key:"head",get:function(){return this.path[0]}},{key:"tail",get:function(){return this.path[this.path.length-1]}}]),e}();n.AstPath=r});kt(Dt);var Lt=Et(function(e,n){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function e(n,i){t(this,e),this.value=n,this.sourceSpan=i}return i(e,[{key:"visit",value:function(e,t){return e.visitText(this,t)}}]),e}();n.Text=a;var c=function(){function e(n,i){t(this,e),this.value=n,this.sourceSpan=i}return i(e,[{key:"visit",value:function(e,t){return e.visitCdata(this,t)}}]),e}();n.CDATA=c;var l=function(){function e(n,i,r,o,a){t(this,e),this.switchValue=n,this.type=i,this.cases=r,this.sourceSpan=o,this.switchValueSourceSpan=a}return i(e,[{key:"visit",value:function(e,t){return e.visitExpansion(this,t)}}]),e}();n.Expansion=l;var u=function(){function e(n,i,r,o,a){t(this,e),this.value=n,this.expression=i,this.sourceSpan=r,this.valueSourceSpan=o,this.expSourceSpan=a}return i(e,[{key:"visit",value:function(e,t){return e.visitExpansionCase(this,t)}}]),e}();n.ExpansionCase=u;var h=function(){function e(n,i,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;t(this,e),this.name=n,this.value=i,this.sourceSpan=r,this.valueSpan=o,this.nameSpan=a}return i(e,[{key:"visit",value:function(e,t){return e.visitAttribute(this,t)}}]),e}();n.Attribute=h;var p=function(){function e(n,i,r,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;t(this,e),this.name=n,this.attrs=i,this.children=r,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=s,this.nameSpan=c}return i(e,[{key:"visit",value:function(e,t){return e.visitElement(this,t)}}]),e}();n.Element=p;var d=function(){function e(n,i){t(this,e),this.value=n,this.sourceSpan=i}return i(e,[{key:"visit",value:function(e,t){return e.visitComment(this,t)}}]),e}();n.Comment=d;var f=function(){function e(n,i){t(this,e),this.value=n,this.sourceSpan=i}return i(e,[{key:"visit",value:function(e,t){return e.visitDocType(this,t)}}]),e}();function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=[],r=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=r(e);t&&i.push(t)}),i}n.DocType=f,n.visitAll=m;var _=function(){function e(){t(this,e)}return i(e,[{key:"visitElement",value:function(e,t){this.visitChildren(t,function(t){t(e.attrs),t(e.children)})}},{key:"visitAttribute",value:function(e,t){}},{key:"visitText",value:function(e,t){}},{key:"visitCdata",value:function(e,t){}},{key:"visitComment",value:function(e,t){}},{key:"visitDocType",value:function(e,t){}},{key:"visitExpansion",value:function(e,t){return this.visitChildren(t,function(t){t(e.cases)})}},{key:"visitExpansionCase",value:function(e,t){}},{key:"visitChildren",value:function(e,t){var n=[],i=this;return t(function(t){t&&n.push(m(i,t,e))}),[].concat.apply([],n)}}]),e}();n.RecursiveVisitor=_,n.findNode=function(e,n){var a=[];return m(new(function(e){function c(){return t(this,c),s(this,o(c).apply(this,arguments))}return r(c,_),i(c,[{key:"visit",value:function(e,t){var i=function e(t){var n=t.sourceSpan.start.offset,i=t.sourceSpan.end.offset;return t instanceof p&&(t.endSourceSpan?i=t.endSourceSpan.end.offset:t.children&&t.children.length&&(i=e(t.children[t.children.length-1]).end)),{start:n,end:i}}(e);if(!(i.start<=n&&n<i.end))return!0;a.push(e)}}]),c}()),e),new Dt.AstPath(a,n)}});kt(Lt);var Mt=Et(function(e,n){var a;Object.defineProperty(n,"__esModule",{value:!0}),function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE_START=13]="DOC_TYPE_START",e[e.DOC_TYPE_END=14]="DOC_TYPE_END",e[e.EXPANSION_FORM_START=15]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=16]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=17]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=18]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=19]="EXPANSION_FORM_END",e[e.EOF=20]="EOF"}(a=n.TokenType||(n.TokenType={}));var c=function e(n,i,r){t(this,e),this.type=n,this.parts=i,this.sourceSpan=r};n.Token=c;var l=function(e){function n(e,i,r){var a;return t(this,n),(a=s(this,o(n).call(this,r,e))).tokenType=i,a}return r(n,$t.ParseError),n}();n.TokenError=l;var u=function e(n,i){t(this,e),this.tokens=n,this.errors=i};n.TokenizeResult=u,n.tokenize=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Nt.DEFAULT_INTERPOLATION_CONFIG,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return new m(new $t.ParseSourceFile(e,t),n,i,r,o,a).tokenize()};var h=/\r\n?/g;function p(e){var t=e===xt.$EOF?"EOF":String.fromCharCode(e);return'Unexpected character "'.concat(t,'"')}function d(e){return'Unknown entity "'.concat(e,'" - use the "&#<decimal>;" or "&#x<hex>;" syntax')}var f=function e(n){t(this,e),this.error=n},m=function(){function e(n,i,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Nt.DEFAULT_INTERPOLATION_CONFIG,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];t(this,e),this._file=n,this._getTagDefinition=i,this._tokenizeIcu=r,this._interpolationConfig=o,this.canSelfClose=a,this.allowHtmComponentClosingTa