otomate 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/otomate.js +22454 -0
- package/dist/otomate.js.map +1 -0
- package/dist/otomate.umd.cjs +125 -0
- package/dist/otomate.umd.cjs.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
(function(le,Se){typeof exports=="object"&&typeof module<"u"?Se(exports):typeof define=="function"&&define.amd?define(["exports"],Se):(le=typeof globalThis<"u"?globalThis:le||self,Se(le.otomate={}))})(this,(function(le){"use strict";function Se(e){return"children"in e&&Array.isArray(e.children)}function Sn(e){return"value"in e&&typeof e.value=="string"}function sn(e){return e.type==="text"}function pd(...e){return{type:"root",children:e}}function md(...e){return{type:"paragraph",children:e}}function gd(e,...t){return{type:"heading",depth:e,children:t}}function bd(...e){return{type:"blockquote",children:e}}function Ed(e,...t){return{type:"list",ordered:e,children:t}}function yd(...e){return{type:"listItem",children:e}}function Td(e,t){return{type:"codeBlock",value:e,lang:t}}function _d(...e){return{type:"table",children:e}}function kd(e,...t){return{type:"tableRow",isHeader:e||void 0,children:t}}function wd(...e){return{type:"tableCell",children:e}}function Ad(){return{type:"thematicBreak"}}function Sd(...e){return{type:"div",children:e}}function Cd(e,t){const n={type:"text",value:e};return t&&t.length>0&&(n.marks=t),n}function xd(){return{type:"break"}}function Nd(e,t,n){const r={type:"image",url:e};return t!==void 0&&(r.alt=t),n!==void 0&&(r.title=n),r}function Id(){return{type:"strong"}}function vd(){return{type:"emphasis"}}function Od(){return{type:"strikethrough"}}function Ld(){return{type:"underline"}}function Rd(){return{type:"code"}}function Pd(e,t){const n={url:e};return t!==void 0&&(n.title=t),{type:"link",attrs:n}}function Dd(e){return e?{type:"highlight",attrs:{color:e}}:{type:"highlight"}}function Md(e,...t){return e.classes=t,e}function Bd(e,t){return e.data={...e.data,...t},e}function Fd(e,t){return e.id=t,e}function oi(e,t,n=null,r=0){if(t(e,n,r)!==!1&&Se(e))for(let s=0;s<e.children.length;s++)oi(e.children[s],t,e,s)}function ui(e){let t=1;if(Se(e))for(const n of e.children)t+=ui(n);return t}function Ud(e){const t=[];return oi(e,n=>{t.push(n)}),t}function an(e,t){if(e===t)return[];if(!Se(e))return null;for(let n=0;n<e.children.length;n++){const r=an(e.children[n],t);if(r!==null)return[n,...r]}return null}function Hd(e,t){let n=e;for(const r of t){if(!Se(n)||r<0||r>=n.children.length)return null;n=n.children[r]}return n}const zd=2166136261,$d=16777619;function ir(e){let t=zd;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,$d)>>>0;return t}function jd(e){return!e||e.length===0?"":[...e].sort((n,r)=>n.type.localeCompare(r.type)).map(n=>n.attrs?`${n.type}:${JSON.stringify(n.attrs,Object.keys(n.attrs).sort())}`:n.type).join("|")}const li=new WeakMap;function ci(e){const t=li.get(e);if(t!==void 0)return t;let n;const r=Yd(e);if(sn(e)){const i=e;n=ir(`text:${i.value}:${jd(i.marks)}:${r}`)}else if(Sn(e)){const i=Wd(e);n=ir(`${e.type}:${i}:${r}`)}else if(Se(e)){const i=e.children.map(ci),s=Gd(e);n=ir(`${e.type}:${s}:${r}:[${i.join(",")}]`)}else n=ir(`${e.type}:${Vd(e)}:${r}`);return li.set(e,n),n}function qd(e){li.delete(e)}function Yd(e){return!e.classes||e.classes.length===0?"":`cls:${[...e.classes].sort().join(",")}`}function Wd(e){const t=[e.value];return"lang"in e&&e.lang&&t.push(`lang:${e.lang}`),"meta"in e&&e.meta&&t.push(`meta:${e.meta}`),"displayMode"in e&&t.push(`dm:${e.displayMode}`),"identifier"in e&&t.push(`id:${e.identifier}`),t.join(";")}function Gd(e){const t=[];return"depth"in e&&t.push(`d:${e.depth}`),"ordered"in e&&t.push(`o:${e.ordered}`),"start"in e&&e.start!==void 0&&t.push(`s:${e.start}`),"checked"in e&&e.checked!==void 0&&t.push(`c:${e.checked}`),"isHeader"in e&&e.isHeader&&t.push("h"),"colspan"in e&&e.colspan&&t.push(`cs:${e.colspan}`),"rowspan"in e&&e.rowspan&&t.push(`rs:${e.rowspan}`),"align"in e&&e.align&&t.push(`a:${e.align}`),t.join(";")}function Vd(e){const t=[];return"url"in e&&t.push(`u:${e.url}`),"alt"in e&&e.alt&&t.push(`a:${e.alt}`),"title"in e&&e.title&&t.push(`t:${e.title}`),"identifier"in e&&t.push(`id:${e.identifier}`),t.join(";")}function ga(e){const t=new Map;function n(r){const i=ci(r),s=ui(r),o={node:r,hash:i,size:s},a=t.get(i);if(a?a.push(o):t.set(i,[o]),Se(r))for(const u of r.children)n(u)}return n(e),t}function ba(e,t,n,r){if(n.set(e,t),r.set(t,e),Se(e)&&Se(t)){const i=e,s=t;for(let o=0;o<i.children.length&&o<s.children.length;o++)ba(i.children[o],s.children[o],n,r)}}function Kd(e,t){const n=new Map,r=new Map,i=ga(e),s=ga(t),o=[];for(const[a,u]of i){const c=s.get(a);if(c)if(u.length===1&&c.length===1)o.push({oldNode:u[0].node,newNode:c[0].node,size:u[0].size});else for(const d of u)for(const h of c)o.push({oldNode:d.node,newNode:h.node,size:d.size})}o.sort((a,u)=>u.size-a.size);for(const{oldNode:a,newNode:u}of o)n.has(a)||r.has(u)||ba(a,u,n,r);return{forward:n,reverse:r}}function Xd(e,t,n){const r=di(e),i=new Set(di(t));let s=0;for(const a of r){const u=n.get(a);u&&i.has(u)&&s++}const o=r.length+i.size;return o===0?1:2*s/o}function di(e){const t=[];if(Se(e))for(const n of e.children)t.push(n),t.push(...di(n));return t}function Qd(e){const t=new Map;function n(r,i){if(i&&t.set(r,i),Se(r))for(const s of r.children)n(s,r)}return n(e,null),t}function Zd(e,t){const n=[];function r(i){if(Se(i)){for(const s of i.children)r(s);t.has(i)||n.push(i)}}return r(e),n}function Jd(e,t){const n=new Map;function r(i){if(!t.has(i)){const s=n.get(i.type);s?s.push(i):n.set(i.type,[i])}if(Se(i))for(const s of i.children)r(s)}return r(e),n}function eh(e,t,n,r,i=.5){const s=Qd(t),o=Jd(t,r),a=Zd(e,n);for(const u of a){if(n.has(u))continue;const c=o.get(u.type);if(!c||c.length===0)continue;let d=null,h=-1;for(const m of c){if(r.has(m)||!Se(m))continue;const f=Xd(u,m,n);let E=0;const g=th(u,e,n);g&&s.get(m)===g&&(E=.3);const _=f+E;_>h&&(h=_,d=m)}d&&h>=i&&(n.set(u,d),r.set(d,u),ya(o,u.type,d))}nh(e,n,r,o)}function th(e,t,n){const r=Ea(t,e);if(r)return n.get(r)}function Ea(e,t){if(!Se(e))return null;const n=e;for(const r of n.children){if(r===t)return e;const i=Ea(r,t);if(i)return i}return null}function nh(e,t,n,r){for(const[i,s]of t){if(!Se(i)||!Se(s))continue;const o=i,a=s,u=[],c=[];for(let h=0;h<o.children.length;h++)t.has(o.children[h])||u.push({node:o.children[h],index:h});for(let h=0;h<a.children.length;h++)n.has(a.children[h])||c.push({node:a.children[h],index:h});const d=new Set;for(const h of u){const m=c.find(g=>g.index===h.index&&g.node.type===h.node.type&&!d.has(g.index));if(m){hi(h.node,m.node,t,n,r),d.add(m.index);continue}let f=1/0,E=null;for(const g of c){if(d.has(g.index)||g.node.type!==h.node.type)continue;const _=Math.abs(g.index-h.index);_<f&&(f=_,E=g)}E&&(hi(h.node,E.node,t,n,r),d.add(E.index))}}}function hi(e,t,n,r,i){if(n.set(e,t),r.set(t,e),ya(i,t.type,t),Se(e)&&Se(t)){const s=e,o=t,a=new Set;for(let u=0;u<s.children.length;u++){if(n.has(s.children[u]))continue;!a.has(u)&&u<o.children.length&&!r.has(o.children[u])&&o.children[u].type===s.children[u].type&&(hi(s.children[u],o.children[u],n,r,i),a.add(u))}}}function ya(e,t,n){const r=e.get(t);if(r){const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}function rh(e){if(e.length===0)return[];const t=e.match(/\S+\s*/g);if(!t)return[e];const n=e.search(/\S/);return n>0?[e.slice(0,n),...t]:t}function ih(e){return[...e]}function sh(e,t){const n=e.length,r=t.length;if(n===0&&r===0)return[];if(n===0)return t.map(m=>({type:"insert",value:m}));if(r===0)return e.map(m=>({type:"delete",value:m}));const i=n+r,s=2*i+1,o=[],a=new Array(s).fill(0);let u=-1;for(let m=0;m<=i;m++){o.push([...a]);for(let f=-m;f<=m;f+=2){const E=f+i;let g;f===-m||f!==m&&a[E-1]<a[E+1]?g=a[E+1]:g=a[E-1]+1;let _=g-f;for(;g<n&&_<r&&e[g]===t[_];)g++,_++;if(a[E]=g,g>=n&&_>=r){u=m;break}}if(u>=0)break}const c=[];let d=n,h=r;for(let m=u;m>0;m--){const f=o[m],E=d-h,g=E+i;let _;E===-m||E!==m&&f[g-1]<f[g+1]?_=E+1:_=E-1;const p=_+i,y=f[p],S=y-_;for(;d>y&&h>S;)d--,h--,c.push({type:"equal",value:e[d]});E>_?(d--,c.push({type:"delete",value:e[d]})):(h--,c.push({type:"insert",value:t[h]}))}for(;d>0&&h>0;)d--,h--,c.push({type:"equal",value:e[d]});return c.reverse(),c}function fi(e,t,n="word"){if(e===t)return[{type:"equal",value:e,offset:0}];const r=n==="word"?rh:ih,i=r(e),s=r(t),o=sh(i,s),a=[];let u=0,c=0,d=0;for(;d<o.length;){const h=o[d].type;let m="";for(;d<o.length&&o[d].type===h;)m+=o[d].value,d++;switch(h){case"equal":a.push({type:"equal",value:m,offset:u}),u+=m.length,c+=m.length;break;case"delete":a.push({type:"delete",value:m,offset:u}),u+=m.length;break;case"insert":a.push({type:"insert",value:m,offset:c}),c+=m.length;break}}return a}function ah(e,t){const n=e??[],r=t??[];if(n.length!==r.length)return!1;const i=[...n].sort((o,a)=>o.type.localeCompare(a.type)),s=[...r].sort((o,a)=>o.type.localeCompare(a.type));for(let o=0;o<i.length;o++)if(i[o].type!==s[o].type||JSON.stringify(i[o].attrs)!==JSON.stringify(s[o].attrs))return!1;return!0}function Ta(e){const t={};for(const[n,r]of Object.entries(e))["type","children","value","data","position","id","marks"].includes(n)||r!==void 0&&(t[n]=r);return t}function oh(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n)if(JSON.stringify(e[i])!==JSON.stringify(t[i]))return!1;return!0}function uh(e,t,n,r,i={}){const s=[],o=i.textGranularity??"word";for(const[u,c]of n){if(u===e&&c===t)continue;const d=an(e,u),h=an(t,c);if(!d||!h)continue;const m=Ta(u),f=Ta(c);if(oh(m,f)||s.push({type:"update",path:h,properties:{old:m,new:f}}),sn(u)&&sn(c)){const E=u,g=c;if(!ah(E.marks,g.marks)){const _=E.marks??[],p=g.marks??[];s.push({type:"update",path:h,properties:{old:{marks:_},new:{marks:p}}})}}if(sn(u)&&sn(c)){const E=u,g=c;E.value!==g.value&&s.push({type:"updateText",path:h,changes:fi(E.value,g.value,o)})}else if(Sn(u)&&Sn(c)){const E=u.value,g=c.value;E!==g&&s.push({type:"updateText",path:h,changes:fi(E,g,o)})}if(d.length>0&&h.length>0){const E=d.slice(0,-1),g=h.slice(0,-1),_=ka(e,E),p=ka(t,g);if(_&&p){const y=n.get(_);if(y&&y!==p)s.push({type:"move",from:d,to:h});else if(y===p){const S=d[d.length-1],L=h[h.length-1];S!==L&&s.push({type:"move",from:d,to:h})}}}}_a(e,n,u=>{const c=an(e,u);c&&s.push({type:"delete",path:c,node:pi(u)})}),_a(t,r,u=>{const c=an(t,u);c&&s.push({type:"insert",path:c,node:pi(u)})});const a={nodesAdded:s.filter(u=>u.type==="insert").length,nodesDeleted:s.filter(u=>u.type==="delete").length,nodesMoved:s.filter(u=>u.type==="move").length,nodesModified:s.filter(u=>u.type==="update").length,textChanges:s.filter(u=>u.type==="updateText").length};return{version:1,operations:s,stats:a}}function _a(e,t,n){function r(i){if(!t.has(i)){n(i);return}if(Se(i))for(const s of i.children)r(s)}if(Se(e))for(const i of e.children)r(i)}function ka(e,t){let n=e;for(const r of t){if(!Se(n))return null;const i=n;if(r<0||r>=i.children.length)return null;n=i.children[r]}return n}function pi(e){const t={};for(const[n,r]of Object.entries(e))n==="position"||n==="id"||(n==="children"&&Array.isArray(r)?t.children=r.map(pi):t[n]=r);return t}function lh(e,t,n={}){const{diceThreshold:r=.5}=n,{forward:i,reverse:s}=Kd(e,t);return i.has(e)||(i.set(e,t),s.set(t,e)),eh(e,t,i,s,r),uh(e,t,i,s,n)}function vk(){}class Cn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Cn.prototype.normal={},Cn.prototype.property={},Cn.prototype.space=void 0;function wa(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Cn(n,r,t)}function xn(e){return e.toLowerCase()}class Je{constructor(t,n){this.attribute=n,this.property=t}}Je.prototype.attribute="",Je.prototype.booleanish=!1,Je.prototype.boolean=!1,Je.prototype.commaOrSpaceSeparated=!1,Je.prototype.commaSeparated=!1,Je.prototype.defined=!1,Je.prototype.mustUseProperty=!1,Je.prototype.number=!1,Je.prototype.overloadedBoolean=!1,Je.prototype.property="",Je.prototype.spaceSeparated=!1,Je.prototype.space=void 0;let ch=0;const me=Gt(),Me=Gt(),mi=Gt(),ee=Gt(),Ce=Gt(),on=Gt(),st=Gt();function Gt(){return 2**++ch}const gi=Object.freeze(Object.defineProperty({__proto__:null,boolean:me,booleanish:Me,commaOrSpaceSeparated:st,commaSeparated:on,number:ee,overloadedBoolean:mi,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),bi=Object.keys(gi);class Ei extends Je{constructor(t,n,r,i){let s=-1;if(super(t,n),Aa(this,"space",i),typeof r=="number")for(;++s<bi.length;){const o=bi[s];Aa(this,bi[s],(r&gi[o])===gi[o])}}}Ei.prototype.defined=!0;function Aa(e,t,n){n&&(e[t]=n)}function un(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Ei(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[xn(r)]=r,n[xn(s.attribute)]=r}return new Cn(t,n,e.space)}const Sa=un({properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:ee,ariaColIndex:ee,ariaColSpan:ee,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:Ce,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:ee,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:ee,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:Ce,ariaRowCount:ee,ariaRowIndex:ee,ariaRowSpan:ee,ariaSelected:Me,ariaSetSize:ee,ariaSort:null,ariaValueMax:ee,ariaValueMin:ee,ariaValueNow:ee,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ca(e,t){return t in e?e[t]:t}function xa(e,t){return Ca(e,t.toLowerCase())}const dh=un({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:on,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:me,allowPaymentRequest:me,allowUserMedia:me,alt:null,as:null,async:me,autoCapitalize:null,autoComplete:Ce,autoFocus:me,autoPlay:me,blocking:Ce,capture:null,charSet:null,checked:me,cite:null,className:Ce,cols:ee,colSpan:null,content:null,contentEditable:Me,controls:me,controlsList:Ce,coords:ee|on,crossOrigin:null,data:null,dateTime:null,decoding:null,default:me,defer:me,dir:null,dirName:null,disabled:me,download:mi,draggable:Me,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:me,formTarget:null,headers:Ce,height:ee,hidden:mi,high:ee,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:me,inputMode:null,integrity:null,is:null,isMap:me,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:me,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:me,low:ee,manifest:null,max:null,maxLength:ee,media:null,method:null,min:null,minLength:ee,multiple:me,muted:me,name:null,nonce:null,noModule:me,noValidate:me,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:me,optimum:ee,pattern:null,ping:Ce,placeholder:null,playsInline:me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:me,referrerPolicy:null,rel:Ce,required:me,reversed:me,rows:ee,rowSpan:ee,sandbox:Ce,scope:null,scoped:me,seamless:me,selected:me,shadowRootClonable:me,shadowRootDelegatesFocus:me,shadowRootMode:null,shape:null,size:ee,sizes:null,slot:null,span:ee,spellCheck:Me,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ee,step:null,style:null,tabIndex:ee,target:null,title:null,translate:null,type:null,typeMustMatch:me,useMap:null,value:Me,width:ee,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:ee,borderColor:null,bottomMargin:ee,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:me,declare:me,event:null,face:null,frame:null,frameBorder:null,hSpace:ee,leftMargin:ee,link:null,longDesc:null,lowSrc:null,marginHeight:ee,marginWidth:ee,noResize:me,noHref:me,noShade:me,noWrap:me,object:null,profile:null,prompt:null,rev:null,rightMargin:ee,rules:null,scheme:null,scrolling:Me,standby:null,summary:null,text:null,topMargin:ee,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ee,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:me,disableRemotePlayback:me,prefix:null,property:null,results:ee,security:null,unselectable:null},space:"html",transform:xa}),hh=un({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:st,accentHeight:ee,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ee,amplitude:ee,arabicForm:null,ascent:ee,attributeName:null,attributeType:null,azimuth:ee,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ee,by:null,calcMode:null,capHeight:ee,className:Ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ee,diffuseConstant:ee,direction:null,display:null,dur:null,divisor:ee,dominantBaseline:null,download:me,dx:null,dy:null,edgeMode:null,editable:null,elevation:ee,enableBackground:null,end:null,event:null,exponent:ee,externalResourcesRequired:null,fill:null,fillOpacity:ee,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:on,g2:on,glyphName:on,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ee,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ee,horizOriginX:ee,horizOriginY:ee,id:null,ideographic:ee,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ee,k:ee,k1:ee,k2:ee,k3:ee,k4:ee,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ee,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ee,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ee,overlineThickness:ee,paintOrder:null,panose1:null,path:null,pathLength:ee,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ee,pointsAtY:ee,pointsAtZ:ee,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ee,specularExponent:ee,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ee,strikethroughThickness:ee,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ee,strokeOpacity:ee,strokeWidth:null,style:null,surfaceScale:ee,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:ee,tableValues:null,target:null,targetX:ee,targetY:ee,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ee,underlineThickness:ee,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ee,values:null,vAlphabetic:ee,vMathematical:ee,vectorEffect:null,vHanging:ee,vIdeographic:ee,version:null,vertAdvY:ee,vertOriginX:ee,vertOriginY:ee,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ee,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ca}),Na=un({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ia=un({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xa}),va=un({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),fh=/[A-Z]/g,Oa=/-[a-z]/g,ph=/^data[-\w.:]+$/i;function yi(e,t){const n=xn(t);let r=t,i=Je;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ph.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Oa,gh);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Oa.test(s)){let o=s.replace(fh,mh);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Ei}return new i(r,t)}function mh(e){return"-"+e.toLowerCase()}function gh(e){return e.charAt(1).toUpperCase()}const sr=wa([Sa,dh,Na,Ia,va],"html"),Nn=wa([Sa,hh,Na,Ia,va],"svg");function La(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const o=n.slice(i,r).trim();(o||!s)&&t.push(o),i=r+1,r=n.indexOf(",",i)}return t}function bh(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ra=/[#.]/g;function Eh(e,t){const n=e||"",r={};let i=0,s,o;for(;i<n.length;){Ra.lastIndex=i;const a=Ra.exec(n),u=n.slice(i,a?a.index:n.length);u&&(s?s==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:o=u,i+=u.length),a&&(s=a[0],i++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function Pa(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function yh(e){return e.join(" ").trim()}function Da(e,t,n){const r=n?wh(n):void 0;function i(s,o,...a){let u;if(s==null){u={type:"root",children:[]};const c=o;a.unshift(c)}else{u=Eh(s,t);const c=u.tagName.toLowerCase(),d=r?r.get(c):void 0;if(u.tagName=d||c,Th(o))a.unshift(o);else for(const[h,m]of Object.entries(o))_h(e,u.properties,h,m)}for(const c of a)Ti(u.children,c);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function Th(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function _h(e,t,n,r){const i=yi(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?i.spaceSeparated?s=Pa(r):i.commaSeparated?s=La(r):i.commaOrSpaceSeparated?s=Pa(La(r).join(" ")):s=Ma(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?kh(r):String(r);if(Array.isArray(s)){const o=[];for(const a of s)o.push(Ma(i,i.property,a));s=o}i.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[i.property]=s}}function Ti(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Ti(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ti(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Ma(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||xn(n)===xn(t)))return!0}return n}function kh(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function wh(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Ah=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Sh=Da(sr,"div"),Ch=Da(Nn,"g",Ah);function xh(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let o=0;for(;;){let a=n[o];if(a===void 0){const u=Ba(t,n[o-1]);a=u===-1?t.length+1:u+1,n[o]=a}if(a>s)return{line:o+1,column:s-(o>0?n[o-1]:0)+1,offset:s};o++}}}function i(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const a=n[n.length-1],u=Ba(t,a),c=u===-1?t.length+1:u+1;if(a===c)break;n.push(c)}const o=(s.line>1?n[s.line-2]:0)+s.column-1;if(o<n[s.line-1])return o}}}function Ba(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
2
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Nh={svg:"http://www.w3.org/2000/svg"},Fa={}.hasOwnProperty,Ih=Object.prototype;function vh(e,t){const n=t||{};return _i({file:n.file||void 0,location:!1,schema:n.space==="svg"?Nn:sr,verbose:n.verbose||!1},e)}function _i(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ar(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Ua(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const s=String(e.file),o=xh(s),a=o.toPoint(0),u=o.toPoint(s.length);n.position={start:a,end:u}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ar(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ar(e,r,n),n}default:return n=Oh(e,t),n}}function Ua(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=_i(e,t[n]);r.push(i)}return r}function Oh(e,t){const n=e.schema;e.schema=t.namespaceURI===Nh.svg?Nn:sr;let r=-1;const i={};for(;++r<t.attrs.length;){const a=t.attrs[r],u=(a.prefix?a.prefix+":":"")+a.name;Fa.call(Ih,u)||(i[u]=a.value)}const o=(e.schema.space==="svg"?Ch:Sh)(t.tagName,i,Ua(e,t.childNodes));if(ar(e,t,o),o.tagName==="template"){const a=t,u=a.sourceCodeLocation,c=u&&u.startTag&&ln(u.startTag),d=u&&u.endTag&&ln(u.endTag),h=_i(e,a.content);c&&d&&e.file&&(h.position={start:c.end,end:d.start}),o.content=h}return e.schema=n,o}function ar(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Lh(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Lh(e,t,n){const r=ln(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const s={};let o;if(n.attrs)for(o in n.attrs)Fa.call(n.attrs,o)&&(s[yi(e.schema,o).property]=ln(n.attrs[o]));n.startTag;const a=ln(n.startTag),u=n.endTag?ln(n.endTag):void 0,c={opening:a};u&&(c.closing=u),c.properties=s,t.data={position:c}}}return r}function ln(e){const t=Ha({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ha({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ha(e){return e.line&&e.column?e:void 0}const Rh=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ve="�";var w;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(w||(w={}));const et={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function za(e){return e>=55296&&e<=57343}function Ph(e){return e>=56320&&e<=57343}function Dh(e,t){return(e-55296)*1024+9216+t}function $a(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ja(e){return e>=64976&&e<=65007||Rh.has(e)}var q;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(q||(q={}));const Mh=65536;class Bh{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Mh,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:s}=this,o=i+n,a=s+n;return{code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:a,endOffset:a}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Ph(n))return this.pos++,this._addGap(),Dh(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,w.EOF;return this._err(q.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,w.EOF;const r=this.html.charCodeAt(n);return r===w.CARRIAGE_RETURN?w.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,w.EOF;let t=this.html.charCodeAt(this.pos);return t===w.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,w.LINE_FEED):t===w.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,za(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===w.LINE_FEED||t===w.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){$a(t)?this._err(q.controlCharacterInInputStream):ja(t)&&this._err(q.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Te;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Te||(Te={}));function qa(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const Fh=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Uh=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Hh(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Uh.get(e))!==null&&t!==void 0?t:e}var Ue;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ue||(Ue={}));const zh=32;var Bt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Bt||(Bt={}));function ki(e){return e>=Ue.ZERO&&e<=Ue.NINE}function $h(e){return e>=Ue.UPPER_A&&e<=Ue.UPPER_F||e>=Ue.LOWER_A&&e<=Ue.LOWER_F}function jh(e){return e>=Ue.UPPER_A&&e<=Ue.UPPER_Z||e>=Ue.LOWER_A&&e<=Ue.LOWER_Z||ki(e)}function qh(e){return e===Ue.EQUALS||jh(e)}var He;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(He||(He={}));var It;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(It||(It={}));class Yh{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=He.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=It.Strict}startEntity(t){this.decodeMode=t,this.state=He.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case He.EntityStart:return t.charCodeAt(n)===Ue.NUM?(this.state=He.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=He.NamedEntity,this.stateNamedEntity(t,n));case He.NumericStart:return this.stateNumericStart(t,n);case He.NumericDecimal:return this.stateNumericDecimal(t,n);case He.NumericHex:return this.stateNumericHex(t,n);case He.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|zh)===Ue.LOWER_X?(this.state=He.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=He.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+Number.parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ki(i)||$h(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(ki(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ue.SEMI)this.consumed+=1;else if(this.decodeMode===It.Strict)return 0;return this.emitCodePoint(Hh(this.result),this.consumed),this.errors&&(t!==Ue.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&Bt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=Wh(r,i,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===It.Attribute&&(s===0||qh(o))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&Bt.VALUE_LENGTH)>>14,s!==0){if(o===Ue.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==It.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Bt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Bt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case He.NamedEntity:return this.result!==0&&(this.decodeMode!==It.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case He.NumericDecimal:return this.emitNumericEntity(0,2);case He.NumericHex:return this.emitNumericEntity(0,3);case He.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case He.EntityStart:return 0}}}function Wh(e,t,n,r){const i=(t&Bt.BRANCH_LENGTH)>>7,s=t&Bt.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const u=r-s;return u<0||u>=i?-1:e[n+u]-1}let o=n,a=o+i-1;for(;o<=a;){const u=o+a>>>1,c=e[u];if(c<r)o=u+1;else if(c>r)a=u-1;else return e[u+i]}return-1}var X;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(X||(X={}));var Vt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Vt||(Vt={}));var lt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(lt||(lt={}));var H;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(H||(H={}));var l;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(l||(l={}));const Gh=new Map([[H.A,l.A],[H.ADDRESS,l.ADDRESS],[H.ANNOTATION_XML,l.ANNOTATION_XML],[H.APPLET,l.APPLET],[H.AREA,l.AREA],[H.ARTICLE,l.ARTICLE],[H.ASIDE,l.ASIDE],[H.B,l.B],[H.BASE,l.BASE],[H.BASEFONT,l.BASEFONT],[H.BGSOUND,l.BGSOUND],[H.BIG,l.BIG],[H.BLOCKQUOTE,l.BLOCKQUOTE],[H.BODY,l.BODY],[H.BR,l.BR],[H.BUTTON,l.BUTTON],[H.CAPTION,l.CAPTION],[H.CENTER,l.CENTER],[H.CODE,l.CODE],[H.COL,l.COL],[H.COLGROUP,l.COLGROUP],[H.DD,l.DD],[H.DESC,l.DESC],[H.DETAILS,l.DETAILS],[H.DIALOG,l.DIALOG],[H.DIR,l.DIR],[H.DIV,l.DIV],[H.DL,l.DL],[H.DT,l.DT],[H.EM,l.EM],[H.EMBED,l.EMBED],[H.FIELDSET,l.FIELDSET],[H.FIGCAPTION,l.FIGCAPTION],[H.FIGURE,l.FIGURE],[H.FONT,l.FONT],[H.FOOTER,l.FOOTER],[H.FOREIGN_OBJECT,l.FOREIGN_OBJECT],[H.FORM,l.FORM],[H.FRAME,l.FRAME],[H.FRAMESET,l.FRAMESET],[H.H1,l.H1],[H.H2,l.H2],[H.H3,l.H3],[H.H4,l.H4],[H.H5,l.H5],[H.H6,l.H6],[H.HEAD,l.HEAD],[H.HEADER,l.HEADER],[H.HGROUP,l.HGROUP],[H.HR,l.HR],[H.HTML,l.HTML],[H.I,l.I],[H.IMG,l.IMG],[H.IMAGE,l.IMAGE],[H.INPUT,l.INPUT],[H.IFRAME,l.IFRAME],[H.KEYGEN,l.KEYGEN],[H.LABEL,l.LABEL],[H.LI,l.LI],[H.LINK,l.LINK],[H.LISTING,l.LISTING],[H.MAIN,l.MAIN],[H.MALIGNMARK,l.MALIGNMARK],[H.MARQUEE,l.MARQUEE],[H.MATH,l.MATH],[H.MENU,l.MENU],[H.META,l.META],[H.MGLYPH,l.MGLYPH],[H.MI,l.MI],[H.MO,l.MO],[H.MN,l.MN],[H.MS,l.MS],[H.MTEXT,l.MTEXT],[H.NAV,l.NAV],[H.NOBR,l.NOBR],[H.NOFRAMES,l.NOFRAMES],[H.NOEMBED,l.NOEMBED],[H.NOSCRIPT,l.NOSCRIPT],[H.OBJECT,l.OBJECT],[H.OL,l.OL],[H.OPTGROUP,l.OPTGROUP],[H.OPTION,l.OPTION],[H.P,l.P],[H.PARAM,l.PARAM],[H.PLAINTEXT,l.PLAINTEXT],[H.PRE,l.PRE],[H.RB,l.RB],[H.RP,l.RP],[H.RT,l.RT],[H.RTC,l.RTC],[H.RUBY,l.RUBY],[H.S,l.S],[H.SCRIPT,l.SCRIPT],[H.SEARCH,l.SEARCH],[H.SECTION,l.SECTION],[H.SELECT,l.SELECT],[H.SOURCE,l.SOURCE],[H.SMALL,l.SMALL],[H.SPAN,l.SPAN],[H.STRIKE,l.STRIKE],[H.STRONG,l.STRONG],[H.STYLE,l.STYLE],[H.SUB,l.SUB],[H.SUMMARY,l.SUMMARY],[H.SUP,l.SUP],[H.TABLE,l.TABLE],[H.TBODY,l.TBODY],[H.TEMPLATE,l.TEMPLATE],[H.TEXTAREA,l.TEXTAREA],[H.TFOOT,l.TFOOT],[H.TD,l.TD],[H.TH,l.TH],[H.THEAD,l.THEAD],[H.TITLE,l.TITLE],[H.TR,l.TR],[H.TRACK,l.TRACK],[H.TT,l.TT],[H.U,l.U],[H.UL,l.UL],[H.SVG,l.SVG],[H.VAR,l.VAR],[H.WBR,l.WBR],[H.XMP,l.XMP]]);function or(e){var t;return(t=Gh.get(e))!==null&&t!==void 0?t:l.UNKNOWN}const J=l,Vh={[X.HTML]:new Set([J.ADDRESS,J.APPLET,J.AREA,J.ARTICLE,J.ASIDE,J.BASE,J.BASEFONT,J.BGSOUND,J.BLOCKQUOTE,J.BODY,J.BR,J.BUTTON,J.CAPTION,J.CENTER,J.COL,J.COLGROUP,J.DD,J.DETAILS,J.DIR,J.DIV,J.DL,J.DT,J.EMBED,J.FIELDSET,J.FIGCAPTION,J.FIGURE,J.FOOTER,J.FORM,J.FRAME,J.FRAMESET,J.H1,J.H2,J.H3,J.H4,J.H5,J.H6,J.HEAD,J.HEADER,J.HGROUP,J.HR,J.HTML,J.IFRAME,J.IMG,J.INPUT,J.LI,J.LINK,J.LISTING,J.MAIN,J.MARQUEE,J.MENU,J.META,J.NAV,J.NOEMBED,J.NOFRAMES,J.NOSCRIPT,J.OBJECT,J.OL,J.P,J.PARAM,J.PLAINTEXT,J.PRE,J.SCRIPT,J.SECTION,J.SELECT,J.SOURCE,J.STYLE,J.SUMMARY,J.TABLE,J.TBODY,J.TD,J.TEMPLATE,J.TEXTAREA,J.TFOOT,J.TH,J.THEAD,J.TITLE,J.TR,J.TRACK,J.UL,J.WBR,J.XMP]),[X.MATHML]:new Set([J.MI,J.MO,J.MN,J.MS,J.MTEXT,J.ANNOTATION_XML]),[X.SVG]:new Set([J.TITLE,J.FOREIGN_OBJECT,J.DESC]),[X.XLINK]:new Set,[X.XML]:new Set,[X.XMLNS]:new Set},wi=new Set([J.H1,J.H2,J.H3,J.H4,J.H5,J.H6]);H.STYLE,H.SCRIPT,H.XMP,H.IFRAME,H.NOEMBED,H.NOFRAMES,H.PLAINTEXT;var N;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(N||(N={}));const tt={DATA:N.DATA,RCDATA:N.RCDATA,RAWTEXT:N.RAWTEXT,SCRIPT_DATA:N.SCRIPT_DATA,PLAINTEXT:N.PLAINTEXT,CDATA_SECTION:N.CDATA_SECTION};function Kh(e){return e>=w.DIGIT_0&&e<=w.DIGIT_9}function In(e){return e>=w.LATIN_CAPITAL_A&&e<=w.LATIN_CAPITAL_Z}function Xh(e){return e>=w.LATIN_SMALL_A&&e<=w.LATIN_SMALL_Z}function Ft(e){return Xh(e)||In(e)}function Ya(e){return Ft(e)||Kh(e)}function ur(e){return e+32}function Wa(e){return e===w.SPACE||e===w.LINE_FEED||e===w.TABULATION||e===w.FORM_FEED}function Ga(e){return Wa(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN}function Qh(e){return e===w.NULL?q.nullCharacterReference:e>1114111?q.characterReferenceOutsideUnicodeRange:za(e)?q.surrogateCharacterReference:ja(e)?q.noncharacterCharacterReference:$a(e)||e===w.CARRIAGE_RETURN?q.controlCharacterReference:null}class Zh{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=N.DATA,this.returnState=N.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Bh(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Yh(Fh,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(q.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(q.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=Qh(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Te.START_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Te.END_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Te.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Te.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(qa(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(q.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=or(t.tagName),t.type===Te.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(q.endTagWithAttributes),t.selfClosing&&this._err(q.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Te.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Te.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Te.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Te.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Wa(t)?Te.WHITESPACE_CHARACTER:t===w.NULL?Te.NULL_CHARACTER:Te.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Te.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=N.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?It.Attribute:It.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===N.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case N.DATA:{this._stateData(t);break}case N.RCDATA:{this._stateRcdata(t);break}case N.RAWTEXT:{this._stateRawtext(t);break}case N.SCRIPT_DATA:{this._stateScriptData(t);break}case N.PLAINTEXT:{this._statePlaintext(t);break}case N.TAG_OPEN:{this._stateTagOpen(t);break}case N.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case N.TAG_NAME:{this._stateTagName(t);break}case N.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case N.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case N.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case N.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case N.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case N.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case N.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case N.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case N.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case N.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case N.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case N.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case N.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case N.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case N.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case N.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case N.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case N.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case N.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case N.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case N.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case N.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case N.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case N.BOGUS_COMMENT:{this._stateBogusComment(t);break}case N.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case N.COMMENT_START:{this._stateCommentStart(t);break}case N.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case N.COMMENT:{this._stateComment(t);break}case N.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case N.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case N.COMMENT_END:{this._stateCommentEnd(t);break}case N.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case N.DOCTYPE:{this._stateDoctype(t);break}case N.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case N.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case N.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case N.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case N.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case N.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case N.CDATA_SECTION:{this._stateCdataSection(t);break}case N.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case N.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case N.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case N.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitCodePoint(t);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case w.AMPERSAND:{this._startCharacterReference();break}case w.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case w.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ft(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case w.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case w.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case w.QUESTION_MARK:{this._err(q.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case w.EOF:{this._err(q.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=N.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ft(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case w.GREATER_THAN_SIGN:{this._err(q.missingEndTagName),this.state=N.DATA;break}case w.EOF:{this._err(q.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(q.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.tagName+=ve;break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(In(t)?ur(t):t)}}_stateRcdataLessThanSign(t){t===w.SOLIDUS?this.state=N.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ft(t)?(this.state=N.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=N.BEFORE_ATTRIBUTE_NAME,!1;case w.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=N.SELF_CLOSING_START_TAG,!1;case w.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=N.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===w.SOLIDUS?this.state=N.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ft(t)?(this.state=N.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case w.SOLIDUS:{this.state=N.SCRIPT_DATA_END_TAG_OPEN;break}case w.EXCLAMATION_MARK:{this.state=N.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=N.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ft(t)?(this.state=N.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===w.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===w.HYPHEN_MINUS?(this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=N.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===w.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ft(t)?(this._emitChars("<"),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ft(t)?(this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(et.SCRIPT,!1)&&Ga(this.preprocessor.peek(et.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<et.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(q.unexpectedNullCharacter),this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.GREATER_THAN_SIGN:{this.state=N.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case w.EOF:{this._err(q.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===w.SOLIDUS?(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(et.SCRIPT,!1)&&Ga(this.preprocessor.peek(et.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<et.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=N.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._err(q.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=N.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this._leaveAttrName(),this.state=N.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._leaveAttrName(),this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:{this._err(q.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.name+=ve;break}default:this.currentAttr.name+=String.fromCodePoint(In(t)?ur(t):t)}}_stateAfterAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:{this.state=N.SELF_CLOSING_START_TAG;break}case w.EQUALS_SIGN:{this.state=N.BEFORE_ATTRIBUTE_VALUE;break}case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=N.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{this.state=N.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this.state=N.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingAttributeValue),this.state=N.DATA,this.emitCurrentTagToken();break}default:this.state=N.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case w.QUOTATION_MARK:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case w.APOSTROPHE:{this.state=N.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(q.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:case w.EQUALS_SIGN:case w.GRAVE_ACCENT:{this._err(q.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=N.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this._leaveAttrValue(),this.state=N.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=N.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBetweenAttributes),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case w.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=N.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(q.eofInTag),this._emitEOFToken();break}default:this._err(q.unexpectedSolidusInTag),this.state=N.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case w.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.data+=ve;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(et.DASH_DASH,!0)?(this._createCommentToken(et.DASH_DASH.length+1),this.state=N.COMMENT_START):this._consumeSequenceIfMatch(et.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(et.DOCTYPE.length+1),this.state=N.DOCTYPE):this._consumeSequenceIfMatch(et.CDATA_START,!0)?this.inForeignNode?this.state=N.CDATA_SECTION:(this._err(q.cdataInHtmlContent),this._createCommentToken(et.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=N.BOGUS_COMMENT):this._ensureHibernation()||(this._err(q.incorrectlyOpenedComment),this._createCommentToken(2),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case w.HYPHEN_MINUS:{this.state=N.COMMENT_START_DASH;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=N.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptClosingOfEmptyComment),this.state=N.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=N.COMMENT_END_DASH;break}case w.LESS_THAN_SIGN:{n.data+="<",this.state=N.COMMENT_LESS_THAN_SIGN;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.data+=ve;break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case w.EXCLAMATION_MARK:{n.data+="!",this.state=N.COMMENT_LESS_THAN_SIGN_BANG;break}case w.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=N.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===w.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=N.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===w.HYPHEN_MINUS?this.state=N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=N.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==w.GREATER_THAN_SIGN&&t!==w.EOF&&this._err(q.nestedComment),this.state=N.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=N.COMMENT_END;break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentComment(n);break}case w.EXCLAMATION_MARK:{this.state=N.COMMENT_END_BANG;break}case w.HYPHEN_MINUS:{n.data+="-";break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=N.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{n.data+="--!",this.state=N.COMMENT_END_DASH;break}case w.GREATER_THAN_SIGN:{this._err(q.incorrectlyClosedComment),this.state=N.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(q.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=N.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case w.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingWhitespaceBeforeDoctypeName),this.state=N.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(In(t))this._createDoctypeToken(String.fromCharCode(ur(t))),this.state=N.DOCTYPE_NAME;else switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.NULL:{this._err(q.unexpectedNullCharacter),this._createDoctypeToken(ve),this.state=N.DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=N.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.AFTER_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.name+=ve;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(In(t)?ur(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(et.PUBLIC,!1)?this.state=N.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(et.SYSTEM,!1)?this.state=N.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(q.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.publicId="",this.state=N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=ve;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.publicId+=ve;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case w.GREATER_THAN_SIGN:{this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.QUOTATION_MARK:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(q.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(q.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(q.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=ve;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(q.unexpectedNullCharacter),n.systemId+=ve;break}case w.GREATER_THAN_SIGN:{this._err(q.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.EOF:{this._err(q.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(q.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=N.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=N.DATA;break}case w.NULL:{this._err(q.unexpectedNullCharacter);break}case w.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case w.RIGHT_SQUARE_BRACKET:{this.state=N.CDATA_SECTION_BRACKET;break}case w.EOF:{this._err(q.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===w.RIGHT_SQUARE_BRACKET?this.state=N.CDATA_SECTION_END:(this._emitChars("]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case w.GREATER_THAN_SIGN:{this.state=N.DATA;break}case w.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=N.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(w.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ya(this.preprocessor.peek(1))?N.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ya(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===w.SEMICOLON&&this._err(q.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Va=new Set([l.DD,l.DT,l.LI,l.OPTGROUP,l.OPTION,l.P,l.RB,l.RP,l.RT,l.RTC]),Ka=new Set([...Va,l.CAPTION,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]),lr=new Set([l.APPLET,l.CAPTION,l.HTML,l.MARQUEE,l.OBJECT,l.TABLE,l.TD,l.TEMPLATE,l.TH]),Jh=new Set([...lr,l.OL,l.UL]),ef=new Set([...lr,l.BUTTON]),Xa=new Set([l.ANNOTATION_XML,l.MI,l.MN,l.MO,l.MS,l.MTEXT]),Qa=new Set([l.DESC,l.FOREIGN_OBJECT,l.TITLE]),tf=new Set([l.TR,l.TEMPLATE,l.HTML]),nf=new Set([l.TBODY,l.TFOOT,l.THEAD,l.TEMPLATE,l.HTML]),rf=new Set([l.TABLE,l.TEMPLATE,l.HTML]),sf=new Set([l.TD,l.TH]);class af{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=l.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===l.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===X.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==X.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(wi,X.HTML)}popUntilTableCellPopped(){this.popUntilPopped(sf,X.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(rf,X.HTML)}clearBackToTableBodyContext(){this.clearBackTo(nf,X.HTML)}clearBackToTableRowContext(){this.clearBackTo(tf,X.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===l.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===l.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case X.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case X.SVG:{if(Qa.has(i))return!1;break}case X.MATHML:{if(Xa.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,lr)}hasInListItemScope(t){return this.hasInDynamicScope(t,Jh)}hasInButtonScope(t){return this.hasInDynamicScope(t,ef)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case X.HTML:{if(wi.has(n))return!0;if(lr.has(n))return!1;break}case X.SVG:{if(Qa.has(n))return!1;break}case X.MATHML:{if(Xa.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===X.HTML)switch(this.tagIDs[t]){case l.TBODY:case l.THEAD:case l.TFOOT:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case l.OPTION:case l.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Va.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Ka.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Ka.has(this.currentTagId);)this.pop()}}const Ai=3;var kt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(kt||(kt={}));const Za={type:kt.Marker};class of{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=0;a<this.entries.length;a++){const u=this.entries[a];if(u.type===kt.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===o){const d=this.treeAdapter.getAttrList(c);d.length===i&&r.push({idx:a,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Ai)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Ai)return;const i=new Map(n.map(o=>[o.name,o.value]));let s=0;for(let o=0;o<r.length;o++){const a=r[o];a.attrs.every(u=>i.get(u.name)===u.value)&&(s+=1,s>=Ai&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(Za)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:kt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:kt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Za);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===kt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===kt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===kt.Element&&n.element===t)}}const Ut={createDocument(){return{nodeName:"#document",mode:lt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ut.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ut.isTextNode(n)){n.value+=t;return}}Ut.appendChild(e,Ut.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ut.isTextNode(r)?r.value+=t:Ut.insertBefore(e,Ut.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Ja="html",uf="about:legacy-compat",lf="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",eo=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],cf=[...eo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],df=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),to=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],hf=[...to,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function no(e,t){return t.some(n=>e.startsWith(n))}function ff(e){return e.name===Ja&&e.publicId===null&&(e.systemId===null||e.systemId===uf)}function pf(e){if(e.name!==Ja)return lt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===lf)return lt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),df.has(n))return lt.QUIRKS;let r=t===null?cf:eo;if(no(n,r))return lt.QUIRKS;if(r=t===null?to:hf,no(n,r))return lt.LIMITED_QUIRKS}return lt.NO_QUIRKS}const ro={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},mf="definitionurl",gf="definitionURL",bf=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Ef=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:X.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:X.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:X.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:X.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:X.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:X.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:X.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:X.XML}],["xml:space",{prefix:"xml",name:"space",namespace:X.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:X.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:X.XMLNS}]]),yf=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Tf=new Set([l.B,l.BIG,l.BLOCKQUOTE,l.BODY,l.BR,l.CENTER,l.CODE,l.DD,l.DIV,l.DL,l.DT,l.EM,l.EMBED,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HR,l.I,l.IMG,l.LI,l.LISTING,l.MENU,l.META,l.NOBR,l.OL,l.P,l.PRE,l.RUBY,l.S,l.SMALL,l.SPAN,l.STRONG,l.STRIKE,l.SUB,l.SUP,l.TABLE,l.TT,l.U,l.UL,l.VAR]);function _f(e){const t=e.tagID;return t===l.FONT&&e.attrs.some(({name:r})=>r===Vt.COLOR||r===Vt.SIZE||r===Vt.FACE)||Tf.has(t)}function io(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===mf){e.attrs[t].name=gf;break}}function so(e){for(let t=0;t<e.attrs.length;t++){const n=bf.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Si(e){for(let t=0;t<e.attrs.length;t++){const n=Ef.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function kf(e){const t=yf.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=or(e.tagName))}function wf(e,t){return t===X.MATHML&&(e===l.MI||e===l.MO||e===l.MN||e===l.MS||e===l.MTEXT)}function Af(e,t,n){if(t===X.MATHML&&e===l.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Vt.ENCODING){const i=n[r].value.toLowerCase();return i===ro.TEXT_HTML||i===ro.APPLICATION_XML}}return t===X.SVG&&(e===l.FOREIGN_OBJECT||e===l.DESC||e===l.TITLE)}function Sf(e,t,n,r){return(!r||r===X.HTML)&&Af(e,t,n)||(!r||r===X.MATHML)&&wf(e,t)}const Cf="hidden",xf=8,Nf=3;var O;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(O||(O={}));const If={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ao=new Set([l.TABLE,l.TBODY,l.TFOOT,l.THEAD,l.TR]),oo={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ut,onParseError:null};class uo{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=O.INITIAL,this.originalInsertionMode=O.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={...oo,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Zh(this.options,this),this.activeFormattingElements=new of(this.treeAdapter),this.fragmentContextID=r?or(this.treeAdapter.getTagName(r)):l.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new af(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...oo,...n};t??(t=r.treeAdapter.createElement(H.TEMPLATE,X.HTML,[]));const i=r.treeAdapter.createElement("documentmock",X.HTML,[]),s=new this(r,i,t);return s.fragmentContextID===l.TEMPLATE&&s.tmplInsertionModeStack.unshift(O.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const s=(i=t.location)!==null&&i!==void 0?i:If,o={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(o)}onItemPush(t,n,r){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let s,o;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,o=this.fragmentContextID):{current:s,currentTagId:o}=this.openElements,this._setContextModes(s,o)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===X.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,X.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=O.TEXT}switchToPlaintextParsing(){this.insertionMode=O.TEXT,this.originalInsertionMode=O.IN_BODY,this.tokenizer.state=tt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===H.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==X.HTML))switch(this.fragmentContextID){case l.TITLE:case l.TEXTAREA:{this.tokenizer.state=tt.RCDATA;break}case l.STYLE:case l.XMP:case l.IFRAME:case l.NOEMBED:case l.NOFRAMES:case l.NOSCRIPT:{this.tokenizer.state=tt.RAWTEXT;break}case l.SCRIPT:{this.tokenizer.state=tt.SCRIPT_DATA;break}case l.PLAINTEXT:{this.tokenizer.state=tt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,X.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,X.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(H.HTML,X.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),s=r?i.lastIndexOf(r):i.length,o=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:u,endCol:c,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:u,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),s=n.type===Te.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===l.SVG&&this.treeAdapter.getTagName(n)===H.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===X.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.MGLYPH||t.tagID===l.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,X.HTML)}_processToken(t){switch(t.type){case Te.CHARACTER:{this.onCharacter(t);break}case Te.NULL_CHARACTER:{this.onNullCharacter(t);break}case Te.COMMENT:{this.onComment(t);break}case Te.DOCTYPE:{this.onDoctype(t);break}case Te.START_TAG:{this._processStartTag(t);break}case Te.END_TAG:{this.onEndTag(t);break}case Te.EOF:{this.onEof(t);break}case Te.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return Sf(t,i,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===kt.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=O.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TR:{this.insertionMode=O.IN_ROW;return}case l.TBODY:case l.THEAD:case l.TFOOT:{this.insertionMode=O.IN_TABLE_BODY;return}case l.CAPTION:{this.insertionMode=O.IN_CAPTION;return}case l.COLGROUP:{this.insertionMode=O.IN_COLUMN_GROUP;return}case l.TABLE:{this.insertionMode=O.IN_TABLE;return}case l.BODY:{this.insertionMode=O.IN_BODY;return}case l.FRAMESET:{this.insertionMode=O.IN_FRAMESET;return}case l.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.HTML:{this.insertionMode=this.headElement?O.AFTER_HEAD:O.BEFORE_HEAD;return}case l.TD:case l.TH:{if(t>0){this.insertionMode=O.IN_CELL;return}break}case l.HEAD:{if(t>0){this.insertionMode=O.IN_HEAD;return}break}}this.insertionMode=O.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===l.TEMPLATE)break;if(r===l.TABLE){this.insertionMode=O.IN_SELECT_IN_TABLE;return}}this.insertionMode=O.IN_SELECT}_isElementCausesFosterParenting(t){return ao.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===X.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case l.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return Vh[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){s0(this,t);return}switch(this.insertionMode){case O.INITIAL:{vn(this,t);break}case O.BEFORE_HTML:{On(this,t);break}case O.BEFORE_HEAD:{Ln(this,t);break}case O.IN_HEAD:{Rn(this,t);break}case O.IN_HEAD_NO_SCRIPT:{Pn(this,t);break}case O.AFTER_HEAD:{Dn(this,t);break}case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:{co(this,t);break}case O.TEXT:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{Ii(this,t);break}case O.IN_TABLE_TEXT:{yo(this,t);break}case O.IN_COLUMN_GROUP:{hr(this,t);break}case O.AFTER_BODY:{mr(this,t);break}case O.AFTER_AFTER_BODY:{gr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){i0(this,t);return}switch(this.insertionMode){case O.INITIAL:{vn(this,t);break}case O.BEFORE_HTML:{On(this,t);break}case O.BEFORE_HEAD:{Ln(this,t);break}case O.IN_HEAD:{Rn(this,t);break}case O.IN_HEAD_NO_SCRIPT:{Pn(this,t);break}case O.AFTER_HEAD:{Dn(this,t);break}case O.TEXT:{this._insertCharacters(t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{Ii(this,t);break}case O.IN_COLUMN_GROUP:{hr(this,t);break}case O.AFTER_BODY:{mr(this,t);break}case O.AFTER_AFTER_BODY:{gr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){xi(this,t);return}switch(this.insertionMode){case O.INITIAL:case O.BEFORE_HTML:case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_TEMPLATE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:{xi(this,t);break}case O.IN_TABLE_TEXT:{Fn(this,t);break}case O.AFTER_BODY:{Mf(this,t);break}case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{Bf(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case O.INITIAL:{Ff(this,t);break}case O.BEFORE_HEAD:case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:{this._err(t,q.misplacedDoctype);break}case O.IN_TABLE_TEXT:{Fn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,q.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?a0(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case O.INITIAL:{vn(this,t);break}case O.BEFORE_HTML:{Uf(this,t);break}case O.BEFORE_HEAD:{zf(this,t);break}case O.IN_HEAD:{pt(this,t);break}case O.IN_HEAD_NO_SCRIPT:{qf(this,t);break}case O.AFTER_HEAD:{Wf(this,t);break}case O.IN_BODY:{We(this,t);break}case O.IN_TABLE:{cn(this,t);break}case O.IN_TABLE_TEXT:{Fn(this,t);break}case O.IN_CAPTION:{$p(this,t);break}case O.IN_COLUMN_GROUP:{vi(this,t);break}case O.IN_TABLE_BODY:{fr(this,t);break}case O.IN_ROW:{pr(this,t);break}case O.IN_CELL:{Yp(this,t);break}case O.IN_SELECT:{ko(this,t);break}case O.IN_SELECT_IN_TABLE:{Gp(this,t);break}case O.IN_TEMPLATE:{Kp(this,t);break}case O.AFTER_BODY:{Qp(this,t);break}case O.IN_FRAMESET:{Zp(this,t);break}case O.AFTER_FRAMESET:{e0(this,t);break}case O.AFTER_AFTER_BODY:{n0(this,t);break}case O.AFTER_AFTER_FRAMESET:{r0(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?o0(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case O.INITIAL:{vn(this,t);break}case O.BEFORE_HTML:{Hf(this,t);break}case O.BEFORE_HEAD:{$f(this,t);break}case O.IN_HEAD:{jf(this,t);break}case O.IN_HEAD_NO_SCRIPT:{Yf(this,t);break}case O.AFTER_HEAD:{Gf(this,t);break}case O.IN_BODY:{dr(this,t);break}case O.TEXT:{Lp(this,t);break}case O.IN_TABLE:{Mn(this,t);break}case O.IN_TABLE_TEXT:{Fn(this,t);break}case O.IN_CAPTION:{jp(this,t);break}case O.IN_COLUMN_GROUP:{qp(this,t);break}case O.IN_TABLE_BODY:{Oi(this,t);break}case O.IN_ROW:{_o(this,t);break}case O.IN_CELL:{Wp(this,t);break}case O.IN_SELECT:{wo(this,t);break}case O.IN_SELECT_IN_TABLE:{Vp(this,t);break}case O.IN_TEMPLATE:{Xp(this,t);break}case O.AFTER_BODY:{So(this,t);break}case O.IN_FRAMESET:{Jp(this,t);break}case O.AFTER_FRAMESET:{t0(this,t);break}case O.AFTER_AFTER_BODY:{gr(this,t);break}}}onEof(t){switch(this.insertionMode){case O.INITIAL:{vn(this,t);break}case O.BEFORE_HTML:{On(this,t);break}case O.BEFORE_HEAD:{Ln(this,t);break}case O.IN_HEAD:{Rn(this,t);break}case O.IN_HEAD_NO_SCRIPT:{Pn(this,t);break}case O.AFTER_HEAD:{Dn(this,t);break}case O.IN_BODY:case O.IN_TABLE:case O.IN_CAPTION:case O.IN_COLUMN_GROUP:case O.IN_TABLE_BODY:case O.IN_ROW:case O.IN_CELL:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:{bo(this,t);break}case O.TEXT:{Rp(this,t);break}case O.IN_TABLE_TEXT:{Fn(this,t);break}case O.IN_TEMPLATE:{Ao(this,t);break}case O.AFTER_BODY:case O.IN_FRAMESET:case O.AFTER_FRAMESET:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{Ni(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===w.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case O.IN_HEAD:case O.IN_HEAD_NO_SCRIPT:case O.AFTER_HEAD:case O.TEXT:case O.IN_COLUMN_GROUP:case O.IN_SELECT:case O.IN_SELECT_IN_TABLE:case O.IN_FRAMESET:case O.AFTER_FRAMESET:{this._insertCharacters(t);break}case O.IN_BODY:case O.IN_CAPTION:case O.IN_CELL:case O.IN_TEMPLATE:case O.AFTER_BODY:case O.AFTER_AFTER_BODY:case O.AFTER_AFTER_FRAMESET:{lo(this,t);break}case O.IN_TABLE:case O.IN_TABLE_BODY:case O.IN_ROW:{Ii(this,t);break}case O.IN_TABLE_TEXT:{Eo(this,t);break}}}}function vf(e,t){let 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):go(e,t),n}function Of(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Lf(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,o=i;o!==n;s++,o=i){i=e.openElements.getCommonAncestor(o);const a=e.activeFormattingElements.getElementEntry(o),u=a&&s>=Nf;!a||u?(u&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(o)):(o=Rf(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Rf(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Pf(e,t,n){const r=e.treeAdapter.getTagName(t),i=or(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);i===l.TEMPLATE&&s===X.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Df(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,i.tagID)}function Ci(e,t){for(let n=0;n<xf;n++){const r=vf(e,t);if(!r)break;const i=Of(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const s=Lf(e,i,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),o&&Pf(e,o,s),Df(e,i,r)}}function xi(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Mf(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Bf(e,t){e._appendCommentNode(t,e.document)}function Ni(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(s);o&&!o.endTag&&e._setEndLocation(s,t)}}}}function Ff(e,t){e._setDocumentType(t);const n=t.forceQuirks?lt.QUIRKS:pf(t);ff(t)||e._err(t,q.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=O.BEFORE_HTML}function vn(e,t){e._err(t,q.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,lt.QUIRKS),e.insertionMode=O.BEFORE_HTML,e._processToken(t)}function Uf(e,t){t.tagID===l.HTML?(e._insertElement(t,X.HTML),e.insertionMode=O.BEFORE_HEAD):On(e,t)}function Hf(e,t){const n=t.tagID;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&On(e,t)}function On(e,t){e._insertFakeRootElement(),e.insertionMode=O.BEFORE_HEAD,e._processToken(t)}function zf(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.HEAD:{e._insertElement(t,X.HTML),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD;break}default:Ln(e,t)}}function $f(e,t){const n=t.tagID;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?Ln(e,t):e._err(t,q.endTagWithoutMatchingOpenElement)}function Ln(e,t){e._insertFakeElement(H.HEAD,l.HEAD),e.headElement=e.openElements.current,e.insertionMode=O.IN_HEAD,e._processToken(t)}function pt(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.TITLE:{e._switchToTextParsing(t,tt.RCDATA);break}case l.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,tt.RAWTEXT):(e._insertElement(t,X.HTML),e.insertionMode=O.IN_HEAD_NO_SCRIPT);break}case l.NOFRAMES:case l.STYLE:{e._switchToTextParsing(t,tt.RAWTEXT);break}case l.SCRIPT:{e._switchToTextParsing(t,tt.SCRIPT_DATA);break}case l.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=O.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(O.IN_TEMPLATE);break}case l.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Rn(e,t)}}function jf(e,t){switch(t.tagID){case l.HEAD:{e.openElements.pop(),e.insertionMode=O.AFTER_HEAD;break}case l.BODY:case l.BR:case l.HTML:{Rn(e,t);break}case l.TEMPLATE:{Kt(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Kt(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TEMPLATE&&e._err(t,q.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,q.endTagWithoutMatchingOpenElement)}function Rn(e,t){e.openElements.pop(),e.insertionMode=O.AFTER_HEAD,e._processToken(t)}function qf(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.BASEFONT:case l.BGSOUND:case l.HEAD:case l.LINK:case l.META:case l.NOFRAMES:case l.STYLE:{pt(e,t);break}case l.NOSCRIPT:{e._err(t,q.nestedNoscriptInHead);break}default:Pn(e,t)}}function Yf(e,t){switch(t.tagID){case l.NOSCRIPT:{e.openElements.pop(),e.insertionMode=O.IN_HEAD;break}case l.BR:{Pn(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Pn(e,t){const n=t.type===Te.EOF?q.openElementsLeftAfterEof:q.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=O.IN_HEAD,e._processToken(t)}function Wf(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.BODY:{e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=O.IN_BODY;break}case l.FRAMESET:{e._insertElement(t,X.HTML),e.insertionMode=O.IN_FRAMESET;break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{e._err(t,q.abandonedHeadElementChild),e.openElements.push(e.headElement,l.HEAD),pt(e,t),e.openElements.remove(e.headElement);break}case l.HEAD:{e._err(t,q.misplacedStartTagForHeadElement);break}default:Dn(e,t)}}function Gf(e,t){switch(t.tagID){case l.BODY:case l.HTML:case l.BR:{Dn(e,t);break}case l.TEMPLATE:{Kt(e,t);break}default:e._err(t,q.endTagWithoutMatchingOpenElement)}}function Dn(e,t){e._insertFakeElement(H.BODY,l.BODY),e.insertionMode=O.IN_BODY,cr(e,t)}function cr(e,t){switch(t.type){case Te.CHARACTER:{co(e,t);break}case Te.WHITESPACE_CHARACTER:{lo(e,t);break}case Te.COMMENT:{xi(e,t);break}case Te.START_TAG:{We(e,t);break}case Te.END_TAG:{dr(e,t);break}case Te.EOF:{bo(e,t);break}}}function lo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function co(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Vf(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Kf(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function Xf(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,X.HTML),e.insertionMode=O.IN_FRAMESET)}function Qf(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function Zf(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&wi.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,X.HTML)}function Jf(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ep(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),n||(e.formElement=e.openElements.current))}function tp(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===l.LI&&i===l.LI||(n===l.DD||n===l.DT)&&(i===l.DD||i===l.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.ADDRESS&&i!==l.DIV&&i!==l.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function np(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.tokenizer.state=tt.PLAINTEXT}function rp(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1}function ip(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(H.A);n&&(Ci(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function sp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ap(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(Ci(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function op(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function up(e,t){e.treeAdapter.getDocumentMode(e.document)!==lt.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=O.IN_TABLE}function ho(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function fo(e){const t=qa(e,Vt.TYPE);return t!=null&&t.toLowerCase()===Cf}function lp(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),fo(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function cp(e,t){e._appendElement(t,X.HTML),t.ackSelfClosing=!0}function dp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function hp(e,t){t.tagName=H.IMG,t.tagID=l.IMG,ho(e,t)}function fp(e,t){e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.tokenizer.state=tt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=O.TEXT}function pp(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,tt.RAWTEXT)}function mp(e,t){e.framesetOk=!1,e._switchToTextParsing(t,tt.RAWTEXT)}function po(e,t){e._switchToTextParsing(t,tt.RAWTEXT)}function gp(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===O.IN_TABLE||e.insertionMode===O.IN_CAPTION||e.insertionMode===O.IN_TABLE_BODY||e.insertionMode===O.IN_ROW||e.insertionMode===O.IN_CELL?O.IN_SELECT_IN_TABLE:O.IN_SELECT}function bp(e,t){e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function Ep(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,X.HTML)}function yp(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,X.HTML)}function Tp(e,t){e._reconstructActiveFormattingElements(),io(t),Si(t),t.selfClosing?e._appendElement(t,X.MATHML):e._insertElement(t,X.MATHML),t.ackSelfClosing=!0}function _p(e,t){e._reconstructActiveFormattingElements(),so(t),Si(t),t.selfClosing?e._appendElement(t,X.SVG):e._insertElement(t,X.SVG),t.ackSelfClosing=!0}function mo(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function We(e,t){switch(t.tagID){case l.I:case l.S:case l.B:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.SMALL:case l.STRIKE:case l.STRONG:{sp(e,t);break}case l.A:{ip(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{Zf(e,t);break}case l.P:case l.DL:case l.OL:case l.UL:case l.DIV:case l.DIR:case l.NAV:case l.MAIN:case l.MENU:case l.ASIDE:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.DETAILS:case l.ADDRESS:case l.ARTICLE:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{Qf(e,t);break}case l.LI:case l.DD:case l.DT:{tp(e,t);break}case l.BR:case l.IMG:case l.WBR:case l.AREA:case l.EMBED:case l.KEYGEN:{ho(e,t);break}case l.HR:{dp(e,t);break}case l.RB:case l.RTC:{Ep(e,t);break}case l.RT:case l.RP:{yp(e,t);break}case l.PRE:case l.LISTING:{Jf(e,t);break}case l.XMP:{pp(e,t);break}case l.SVG:{_p(e,t);break}case l.HTML:{Vf(e,t);break}case l.BASE:case l.LINK:case l.META:case l.STYLE:case l.TITLE:case l.SCRIPT:case l.BGSOUND:case l.BASEFONT:case l.TEMPLATE:{pt(e,t);break}case l.BODY:{Kf(e,t);break}case l.FORM:{ep(e,t);break}case l.NOBR:{ap(e,t);break}case l.MATH:{Tp(e,t);break}case l.TABLE:{up(e,t);break}case l.INPUT:{lp(e,t);break}case l.PARAM:case l.TRACK:case l.SOURCE:{cp(e,t);break}case l.IMAGE:{hp(e,t);break}case l.BUTTON:{rp(e,t);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{op(e,t);break}case l.IFRAME:{mp(e,t);break}case l.SELECT:{gp(e,t);break}case l.OPTION:case l.OPTGROUP:{bp(e,t);break}case l.NOEMBED:case l.NOFRAMES:{po(e,t);break}case l.FRAMESET:{Xf(e,t);break}case l.TEXTAREA:{fp(e,t);break}case l.NOSCRIPT:{e.options.scriptingEnabled?po(e,t):mo(e,t);break}case l.PLAINTEXT:{np(e,t);break}case l.COL:case l.TH:case l.TD:case l.TR:case l.HEAD:case l.FRAME:case l.TBODY:case l.TFOOT:case l.THEAD:case l.CAPTION:case l.COLGROUP:break;default:mo(e,t)}}function kp(e,t){if(e.openElements.hasInScope(l.BODY)&&(e.insertionMode=O.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function wp(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=O.AFTER_BODY,So(e,t))}function Ap(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Sp(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):n&&e.openElements.remove(n))}function Cp(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(H.P,l.P),e._closePElement()}function xp(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function Np(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Ip(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function vp(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Op(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(H.BR,l.BR),e.openElements.pop(),e.framesetOk=!1}function go(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const s=e.openElements.items[i],o=e.openElements.tagIDs[i];if(r===o&&(r!==l.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,o))break}}function dr(e,t){switch(t.tagID){case l.A:case l.B:case l.I:case l.S:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.NOBR:case l.SMALL:case l.STRIKE:case l.STRONG:{Ci(e,t);break}case l.P:{Cp(e);break}case l.DL:case l.UL:case l.OL:case l.DIR:case l.DIV:case l.NAV:case l.PRE:case l.MAIN:case l.MENU:case l.ASIDE:case l.BUTTON:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.ADDRESS:case l.ARTICLE:case l.DETAILS:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.LISTING:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{Ap(e,t);break}case l.LI:{xp(e);break}case l.DD:case l.DT:{Np(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{Ip(e);break}case l.BR:{Op(e);break}case l.BODY:{kp(e,t);break}case l.HTML:{wp(e,t);break}case l.FORM:{Sp(e);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{vp(e,t);break}case l.TEMPLATE:{Kt(e,t);break}default:go(e,t)}}function bo(e,t){e.tmplInsertionModeStack.length>0?Ao(e,t):Ni(e,t)}function Lp(e,t){var n;t.tagID===l.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Rp(e,t){e._err(t,q.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Ii(e,t){if(e.openElements.currentTagId!==void 0&&ao.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=O.IN_TABLE_TEXT,t.type){case Te.CHARACTER:{yo(e,t);break}case Te.WHITESPACE_CHARACTER:{Eo(e,t);break}}else Bn(e,t)}function Pp(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,X.HTML),e.insertionMode=O.IN_CAPTION}function Dp(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=O.IN_COLUMN_GROUP}function Mp(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.COLGROUP,l.COLGROUP),e.insertionMode=O.IN_COLUMN_GROUP,vi(e,t)}function Bp(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=O.IN_TABLE_BODY}function Fp(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(H.TBODY,l.TBODY),e.insertionMode=O.IN_TABLE_BODY,fr(e,t)}function Up(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Hp(e,t){fo(t)?e._appendElement(t,X.HTML):Bn(e,t),t.ackSelfClosing=!0}function zp(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,X.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function cn(e,t){switch(t.tagID){case l.TD:case l.TH:case l.TR:{Fp(e,t);break}case l.STYLE:case l.SCRIPT:case l.TEMPLATE:{pt(e,t);break}case l.COL:{Mp(e,t);break}case l.FORM:{zp(e,t);break}case l.TABLE:{Up(e,t);break}case l.TBODY:case l.TFOOT:case l.THEAD:{Bp(e,t);break}case l.INPUT:{Hp(e,t);break}case l.CAPTION:{Pp(e,t);break}case l.COLGROUP:{Dp(e,t);break}default:Bn(e,t)}}function Mn(e,t){switch(t.tagID){case l.TABLE:{e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode());break}case l.TEMPLATE:{Kt(e,t);break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Bn(e,t)}}function Bn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,cr(e,t),e.fosterParentingEnabled=n}function Eo(e,t){e.pendingCharacterTokens.push(t)}function yo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Fn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Bn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const To=new Set([l.CAPTION,l.COL,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]);function $p(e,t){const n=t.tagID;To.has(n)?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_TABLE,cn(e,t)):We(e,t)}function jp(e,t){const n=t.tagID;switch(n){case l.CAPTION:case l.TABLE:{e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_TABLE,n===l.TABLE&&Mn(e,t));break}case l.BODY:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:dr(e,t)}}function vi(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.COL:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.TEMPLATE:{pt(e,t);break}default:hr(e,t)}}function qp(e,t){switch(t.tagID){case l.COLGROUP:{e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=O.IN_TABLE);break}case l.TEMPLATE:{Kt(e,t);break}case l.COL:break;default:hr(e,t)}}function hr(e,t){e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=O.IN_TABLE,e._processToken(t))}function fr(e,t){switch(t.tagID){case l.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,X.HTML),e.insertionMode=O.IN_ROW;break}case l.TH:case l.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(H.TR,l.TR),e.insertionMode=O.IN_ROW,pr(e,t);break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE,cn(e,t));break}default:cn(e,t)}}function Oi(e,t){const n=t.tagID;switch(t.tagID){case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE);break}case l.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE,Mn(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:case l.TR:break;default:Mn(e,t)}}function pr(e,t){switch(t.tagID){case l.TH:case l.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,X.HTML),e.insertionMode=O.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY,fr(e,t));break}default:cn(e,t)}}function _o(e,t){switch(t.tagID){case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY);break}case l.TABLE:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY,Oi(e,t));break}case l.TBODY:case l.TFOOT:case l.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=O.IN_TABLE_BODY,Oi(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:break;default:Mn(e,t)}}function Yp(e,t){const n=t.tagID;To.has(n)?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),pr(e,t)):We(e,t)}function Wp(e,t){const n=t.tagID;switch(n){case l.TD:case l.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=O.IN_ROW);break}case l.TABLE:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),_o(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:break;default:dr(e,t)}}function ko(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case l.OPTGROUP:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case l.HR:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.INPUT:case l.KEYGEN:case l.TEXTAREA:case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),t.tagID!==l.SELECT&&e._processStartTag(t));break}case l.SCRIPT:case l.TEMPLATE:{pt(e,t);break}}}function wo(e,t){switch(t.tagID){case l.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop();break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop();break}case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode());break}case l.TEMPLATE:{Kt(e,t);break}}}function Gp(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ko(e,t)}function Vp(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e.onEndTag(t)):wo(e,t)}function Kp(e,t){switch(t.tagID){case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{pt(e,t);break}case l.CAPTION:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.tmplInsertionModeStack[0]=O.IN_TABLE,e.insertionMode=O.IN_TABLE,cn(e,t);break}case l.COL:{e.tmplInsertionModeStack[0]=O.IN_COLUMN_GROUP,e.insertionMode=O.IN_COLUMN_GROUP,vi(e,t);break}case l.TR:{e.tmplInsertionModeStack[0]=O.IN_TABLE_BODY,e.insertionMode=O.IN_TABLE_BODY,fr(e,t);break}case l.TD:case l.TH:{e.tmplInsertionModeStack[0]=O.IN_ROW,e.insertionMode=O.IN_ROW,pr(e,t);break}default:e.tmplInsertionModeStack[0]=O.IN_BODY,e.insertionMode=O.IN_BODY,We(e,t)}}function Xp(e,t){t.tagID===l.TEMPLATE&&Kt(e,t)}function Ao(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ni(e,t)}function Qp(e,t){t.tagID===l.HTML?We(e,t):mr(e,t)}function So(e,t){var n;if(t.tagID===l.HTML){if(e.fragmentContext||(e.insertionMode=O.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else mr(e,t)}function mr(e,t){e.insertionMode=O.IN_BODY,cr(e,t)}function Zp(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.FRAMESET:{e._insertElement(t,X.HTML);break}case l.FRAME:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case l.NOFRAMES:{pt(e,t);break}}}function Jp(e,t){t.tagID===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.FRAMESET&&(e.insertionMode=O.AFTER_FRAMESET))}function e0(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.NOFRAMES:{pt(e,t);break}}}function t0(e,t){t.tagID===l.HTML&&(e.insertionMode=O.AFTER_AFTER_FRAMESET)}function n0(e,t){t.tagID===l.HTML?We(e,t):gr(e,t)}function gr(e,t){e.insertionMode=O.IN_BODY,cr(e,t)}function r0(e,t){switch(t.tagID){case l.HTML:{We(e,t);break}case l.NOFRAMES:{pt(e,t);break}}}function i0(e,t){t.chars=ve,e._insertCharacters(t)}function s0(e,t){e._insertCharacters(t),e.framesetOk=!1}function Co(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==X.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function a0(e,t){if(_f(t))Co(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===X.MATHML?io(t):r===X.SVG&&(kf(t),so(t)),Si(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function o0(e,t){if(t.tagID===l.P||t.tagID===l.BR){Co(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===X.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}H.AREA,H.BASE,H.BASEFONT,H.BGSOUND,H.BR,H.COL,H.EMBED,H.FRAME,H.HR,H.IMG,H.INPUT,H.KEYGEN,H.LINK,H.META,H.PARAM,H.SOURCE,H.TRACK,H.WBR;function u0(e,t){return uo.parse(e,t)}function l0(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=uo.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function c0(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?xo(e.position):"start"in e||"end"in e?xo(e):"line"in e||"column"in e?Li(e):""}function Li(e){return No(e&&e.line)+":"+No(e&&e.column)}function xo(e){return Li(e&&e.start)+"-"+Li(e&&e.end)}function No(e){return e&&typeof e=="number"?e:1}class Ze extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?i=t:!s.cause&&t&&(o=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?s.ruleId=r:(s.source=r.slice(0,u),s.ruleId=r.slice(u+1))}if(!s.place&&s.ancestors&&s.ancestors){const u=s.ancestors[s.ancestors.length-1];u&&(s.place=u.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=c0(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ze.prototype.file="",Ze.prototype.name="",Ze.prototype.reason="",Ze.prototype.message="",Ze.prototype.stack="",Ze.prototype.column=void 0,Ze.prototype.line=void 0,Ze.prototype.ancestors=void 0,Ze.prototype.cause=void 0,Ze.prototype.fatal=void 0,Ze.prototype.place=void 0,Ze.prototype.ruleId=void 0,Ze.prototype.source=void 0;const wt={basename:d0,dirname:h0,extname:f0,join:p0,sep:"/"};function d0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Un(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else o<0&&(s=!0,o=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function h0(e){if(Un(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function f0(e){Un(e);let t=e.length,n=-1,r=0,i=-1,s=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function p0(...e){let t=-1,n;for(;++t<e.length;)Un(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":m0(n)}function m0(e){Un(e);const t=e.codePointAt(0)===47;let n=g0(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function g0(e,t){let n="",r=0,i=-1,s=0,o=-1,a,u;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length>0){n="",r=0,i=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function Un(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const b0={cwd:E0};function E0(){return"/"}function Ri(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function y0(e){if(typeof e=="string")e=new URL(e);else if(!Ri(e)){const t=new 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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return T0(e)}function T0(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Pi=["history","path","basename","stem","extname","dirname"];class Io{constructor(t){let n;t?Ri(t)?n={path:t}:typeof t=="string"||_0(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":b0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Pi.length;){const s=Pi[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)Pi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?wt.basename(this.path):void 0}set basename(t){Mi(t,"basename"),Di(t,"basename"),this.path=wt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?wt.dirname(this.path):void 0}set dirname(t){vo(this.basename,"dirname"),this.path=wt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?wt.extname(this.path):void 0}set extname(t){if(Di(t,"extname"),vo(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ri(t)&&(t=y0(t)),Mi(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?wt.basename(this.path,this.extname):void 0}set stem(t){Mi(t,"stem"),Di(t,"stem"),this.path=wt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ze(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Di(e,t){if(e&&e.includes(wt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wt.sep+"`")}function Mi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function vo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function _0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const k0={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `-->` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `-->` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `<!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `<!--`. Expected `-->`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},w0="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",A0=/-[a-z]/g,S0=/%c(?:([-+])(\d+))?/g,C0=/%x/g,x0={2:!0,1:!1,0:null},N0={};function I0(e,t){const n=t||N0,r=n.onerror,i=e instanceof Io?e:new Io(e),s=n.fragment?l0:u0,o=String(i),a=s(o,{sourceCodeLocationInfo:!0,onParseError:n.onerror?u:null,scriptingEnabled:!1});return vh(a,{file:i,space:n.space,verbose:n.verbose});function u(c){const d=c.code,h=v0(d),m=n[h],f=m??!0,E=typeof f=="number"?f:f?1:0;if(E){const _=k0[h],p=new Ze(g(_.reason),{place:{start:{line:c.startLine,column:c.startCol,offset:c.startOffset},end:{line:c.endLine,column:c.endCol,offset:c.endOffset}},ruleId:d,source:"hast-util-from-html"});i.path&&(p.file=i.path,p.name=i.path+":"+p.name),p.fatal=x0[E],p.note=g(_.description),p.url=_.url===!1?void 0:w0+d,r(p)}function g(_){return _.replace(S0,p).replace(C0,y);function p(S,L,D){const B=(D?Number.parseInt(D,10):0)*(L==="-"?-1:1),C=o.charAt(c.startOffset+B);return L0(C)}function y(){return R0(o.charCodeAt(c.startOffset))}}}}function v0(e){return e.replace(A0,O0)}function O0(e){return e.charAt(1).toUpperCase()}function L0(e){return e==="`"?"` ` `":e}function R0(e){return"0x"+e.toString(16).toUpperCase()}const Ht=0,ne=1,pe=2,Be=3,xe=4,mt=5,br=6,Ge=7,nt=8,ge=9,fe=10,Oe=11,be=12,Le=13,Hn=14,rt=15,Ve=16,Ke=17,it=18,at=19,ct=20,_e=21,de=22,ze=23,ot=24,qe=25,P0=0;function Ye(e){return e>=48&&e<=57}function zt(e){return Ye(e)||e>=65&&e<=70||e>=97&&e<=102}function Bi(e){return e>=65&&e<=90}function D0(e){return e>=97&&e<=122}function M0(e){return Bi(e)||D0(e)}function B0(e){return e>=128}function Er(e){return M0(e)||B0(e)||e===95}function Oo(e){return Er(e)||Ye(e)||e===45}function F0(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function yr(e){return e===10||e===13||e===12}function Xt(e){return yr(e)||e===32||e===9}function At(e,t){return!(e!==92||yr(t)||t===P0)}function Tr(e,t,n){return e===45?Er(t)||t===45||At(t,n):Er(e)?!0:e===92?At(e,t):!1}function Fi(e,t,n){return e===43||e===45?Ye(t)?2:t===46&&Ye(n)?3:0:e===46?Ye(t)?2:0:Ye(e)?1:0}function Lo(e){return e===65279||e===65534?1:0}const Ui=new Array(128),U0=128,_r=130,Ro=131,Hi=132,Po=133;for(let e=0;e<Ui.length;e++)Ui[e]=Xt(e)&&_r||Ye(e)&&Ro||Er(e)&&Hi||F0(e)&&Po||e||U0;function zi(e){return e<128?Ui[e]:Hi}function dn(e,t){return t<e.length?e.charCodeAt(t):0}function $i(e,t,n){return n===13&&dn(e,t+1)===10?2:1}function hn(e,t,n){let r=e.charCodeAt(t);return Bi(r)&&(r=r|32),r===n}function zn(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let i=t;i<n;i++){const s=r.charCodeAt(i-t);let o=e.charCodeAt(i);if(Bi(o)&&(o=o|32),o!==s)return!1}return!0}function H0(e,t){for(;t>=0&&Xt(e.charCodeAt(t));t--);return t+1}function kr(e,t){for(;t<e.length&&Xt(e.charCodeAt(t));t++);return t}function ji(e,t){for(;t<e.length&&Ye(e.charCodeAt(t));t++);return t}function fn(e,t){if(t+=2,zt(dn(e,t-1))){for(const r=Math.min(e.length,t+5);t<r&&zt(dn(e,t));t++);const n=dn(e,t);Xt(n)&&(t+=$i(e,t,n))}return t}function wr(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!Oo(n)){if(At(n,dn(e,t+1))){t=fn(e,t)-1;continue}break}}return t}function Ar(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),Ye(n)&&(t=ji(e,t+1),n=e.charCodeAt(t)),n===46&&Ye(e.charCodeAt(t+1))&&(t+=2,t=ji(e,t)),hn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),Ye(n)&&(t=ji(e,t+1+r+1))}return t}function qi(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(n===41){t++;break}At(n,dn(e,t+1))&&(t=fn(e,t))}return t}function Do(e){if(e.length===1&&!zt(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const Yi=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],z0=16*1024;function Sr(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,z0)):e}const Mo=10,$0=12,Bo=13;function Fo(e){const t=e.source,n=t.length,r=t.length>0?Lo(t.charCodeAt(0)):0,i=Sr(e.lines,n),s=Sr(e.columns,n);let o=e.startLine,a=e.startColumn;for(let u=r;u<n;u++){const c=t.charCodeAt(u);i[u]=o,s[u]=a++,(c===Mo||c===Bo||c===$0)&&(c===Bo&&u+1<n&&t.charCodeAt(u+1)===Mo&&(u++,i[u]=o,s[u]=a),o++,a=1)}i[n]=o,s[n]=a,e.lines=i,e.columns=s,e.computed=!0}class j0{constructor(t,n,r,i){this.setSource(t,n,r,i),this.lines=null,this.columns=null}setSource(t="",n=0,r=1,i=1){this.source=t,this.startOffset=n,this.startLine=r,this.startColumn=i,this.computed=!1}getLocation(t,n){return this.computed||Fo(this),{source:n,offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}getLocationRange(t,n,r){return this.computed||Fo(this),{source:r,start:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]},end:{offset:this.startOffset+n,line:this.lines[n],column:this.columns[n]}}}}const gt=16777215,bt=24,$n=1,Cr=2,$t=new Uint8Array(32);$t[pe]=de,$t[_e]=de,$t[at]=ct,$t[ze]=ot;const Et=new Uint8Array(32);Et[pe]=$n,Et[_e]=$n,Et[at]=$n,Et[ze]=$n,Et[de]=Cr,Et[ct]=Cr,Et[ot]=Cr;function Uo(e,t,n){return e<t?t:e>n?n:e}class q0{constructor(t,n){this.setSource(t,n)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(t="",n=()=>{}){t=String(t||"");const r=t.length,i=Sr(this.offsetAndType,t.length+1),s=Sr(this.balance,t.length+1);let o=0,a=-1,u=0,c=t.length;this.offsetAndType=null,this.balance=null,s.fill(0),n(t,(d,h,m)=>{const f=o++;if(i[f]=d<<bt|m,a===-1&&(a=h),s[f]=c,d===u){const E=s[c];s[c]=f,c=E,u=$t[i[E]>>bt]}else this.isBlockOpenerTokenType(d)&&(c=f,u=$t[d])}),i[o]=Ht<<bt|r,s[o]=o;for(let d=0;d<o;d++){const h=s[d];if(h<=d){const m=s[h];m!==d&&(s[d]=m)}else h>o&&(s[d]=o)}this.source=t,this.firstCharOffset=a===-1?0:a,this.tokenCount=o,this.offsetAndType=i,this.balance=s,this.reset(),this.next()}lookupType(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t]>>bt:Ht}lookupTypeNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>bt;if(r!==Le&&r!==qe&&t--===0)return r}return Ht}lookupOffset(t){return t+=this.tokenIndex,t<this.tokenCount?this.offsetAndType[t-1]>:this.source.length}lookupOffsetNonSC(t){for(let n=this.tokenIndex;n<this.tokenCount;n++){const r=this.offsetAndType[n]>>bt;if(r!==Le&&r!==qe&&t--===0)return n-this.tokenIndex}return Ht}lookupValue(t,n){return t+=this.tokenIndex,t<this.tokenCount?zn(this.source,this.offsetAndType[t-1]>,this.offsetAndType[t]>,n):!1}getTokenStart(t){return t===this.tokenIndex?this.tokenStart:t>0?t<this.tokenCount?this.offsetAndType[t-1]>:this.offsetAndType[this.tokenCount]>:this.firstCharOffset}getTokenEnd(t){return t===this.tokenIndex?this.tokenEnd:this.offsetAndType[Uo(t,0,this.tokenCount)]>}getTokenType(t){return t===this.tokenIndex?this.tokenType:this.offsetAndType[Uo(t,0,this.tokenCount)]>>bt}substrToCursor(t){return this.source.substring(t,this.tokenStart)}isBlockOpenerTokenType(t){return Et[t]===$n}isBlockCloserTokenType(t){return Et[t]===Cr}getBlockTokenPairIndex(t){const n=this.getTokenType(t);if(Et[n]===1){const r=this.balance[t],i=this.getTokenType(r);return $t[n]===i?r:-1}else if(Et[n]===2){const r=this.balance[t],i=this.getTokenType(r);return $t[i]===n?r:-1}return-1}isBalanceEdge(t){return this.balance[this.tokenIndex]<t}isDelim(t,n){return n?this.lookupType(n)===ge&&this.source.charCodeAt(this.lookupOffset(n))===t:this.tokenType===ge&&this.source.charCodeAt(this.tokenStart)===t}skip(t){let n=this.tokenIndex+t;n<this.tokenCount?(this.tokenIndex=n,this.tokenStart=this.offsetAndType[n-1]>,n=this.offsetAndType[n],this.tokenType=n>>bt,this.tokenEnd=n>):(this.tokenIndex=this.tokenCount,this.next())}next(){let t=this.tokenIndex+1;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.tokenEnd,t=this.offsetAndType[t],this.tokenType=t>>bt,this.tokenEnd=t>):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=Ht,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Le||this.tokenType===qe;)this.next()}skipUntilBalanced(t,n){let r=t,i=0,s=0;e:for(;r<this.tokenCount;r++){if(i=this.balance[r],i<t)break e;switch(s=r>0?this.offsetAndType[r-1]>:this.firstCharOffset,n(this.source.charCodeAt(s))){case 1:break e;case 2:r++;break e;default:this.isBlockOpenerTokenType(this.offsetAndType[r]>>bt)&&(r=i)}}this.skip(r-this.tokenIndex)}forEachToken(t){for(let n=0,r=this.firstCharOffset;n<this.tokenCount;n++){const i=r,s=this.offsetAndType[n],o=s>,a=s>>bt;r=o,t(a,i,o,n)}}dump(){const t=new Array(this.tokenCount);return this.forEachToken((n,r,i,s)=>{t[s]={idx:s,type:Yi[n],chunk:this.source.substring(r,i),balance:this.balance[s]}}),t}}function xr(e,t){function n(h){return h<a?e.charCodeAt(h):0}function r(){if(c=Ar(e,c),Tr(n(c),n(c+1),n(c+2))){d=be,c=wr(e,c);return}if(n(c)===37){d=Oe,c++;return}d=fe}function i(){const h=c;if(c=wr(e,c),zn(e,h,c,"url")&&n(c)===40){if(c=kr(e,c+1),n(c)===34||n(c)===39){d=pe,c=h+4;return}o();return}if(n(c)===40){d=pe,c++;return}d=ne}function s(h){for(h||(h=n(c++)),d=mt;c<e.length;c++){const m=e.charCodeAt(c);switch(zi(m)){case h:c++;return;case _r:if(yr(m)){c+=$i(e,c,m),d=br;return}break;case 92:if(c===e.length-1)break;const f=n(c+1);yr(f)?c+=$i(e,c+1,f):At(m,f)&&(c=fn(e,c)-1);break}}}function o(){for(d=Ge,c=kr(e,c);c<e.length;c++){const h=e.charCodeAt(c);switch(zi(h)){case 41:c++;return;case _r:if(c=kr(e,c),n(c)===41||c>=e.length){c<e.length&&c++;return}c=qi(e,c),d=nt;return;case 34:case 39:case 40:case Po:c=qi(e,c),d=nt;return;case 92:if(At(h,n(c+1))){c=fn(e,c)-1;break}c=qi(e,c),d=nt;return}}}e=String(e||"");const a=e.length;let u=Lo(n(0)),c=u,d;for(;c<a;){const h=e.charCodeAt(c);switch(zi(h)){case _r:d=Le,c=kr(e,c+1);break;case 34:s();break;case 35:Oo(n(c+1))||At(n(c+1),n(c+2))?(d=xe,c=wr(e,c+1)):(d=ge,c++);break;case 39:s();break;case 40:d=_e,c++;break;case 41:d=de,c++;break;case 43:Fi(h,n(c+1),n(c+2))?r():(d=ge,c++);break;case 44:d=it,c++;break;case 45:Fi(h,n(c+1),n(c+2))?r():n(c+1)===45&&n(c+2)===62?(d=rt,c=c+3):Tr(h,n(c+1),n(c+2))?i():(d=ge,c++);break;case 46:Fi(h,n(c+1),n(c+2))?r():(d=ge,c++);break;case 47:n(c+1)===42?(d=qe,c=e.indexOf("*/",c+2),c=c===-1?e.length:c+2):(d=ge,c++);break;case 58:d=Ve,c++;break;case 59:d=Ke,c++;break;case 60:n(c+1)===33&&n(c+2)===45&&n(c+3)===45?(d=Hn,c=c+4):(d=ge,c++);break;case 64:Tr(n(c+1),n(c+2),n(c+3))?(d=Be,c=wr(e,c+1)):(d=ge,c++);break;case 91:d=at,c++;break;case 92:At(h,n(c+1))?i():(d=ge,c++);break;case 93:d=ct,c++;break;case 123:d=ze,c++;break;case 125:d=ot,c++;break;case Ro:r();break;case Hi:i();break;default:d=ge,c++}t(d,u,u=c)}}let pn=null;class $e{static createItem(t){return{prev:null,next:null,data:t}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return $e.createItem(t)}allocateCursor(t,n){let r;return pn!==null?(r=pn,pn=pn.cursor,r.prev=t,r.next=n,r.cursor=this.cursor):r={prev:t,next:n,cursor:this.cursor},this.cursor=r,r}releaseCursor(){const{cursor:t}=this;this.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=pn,pn=t}updateCursors(t,n,r,i){let{cursor:s}=this;for(;s!==null;)s.prev===t&&(s.prev=n),s.next===r&&(s.next=i),s=s.cursor}*[Symbol.iterator](){for(let t=this.head;t!==null;t=t.next)yield t.data}get size(){let t=0;for(let n=this.head;n!==null;n=n.next)t++;return t}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){const i=$e.createItem(r);n!==null?n.next=i:this.head=i,i.prev=n,n=i}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(t,n=this){const r=this.allocateCursor(null,this.head);for(;r.next!==null;){const i=r.next;r.next=i.next,t.call(n,i.data,i,this)}this.releaseCursor()}forEachRight(t,n=this){const r=this.allocateCursor(this.tail,null);for(;r.prev!==null;){const i=r.prev;r.prev=i.prev,t.call(n,i.data,i,this)}this.releaseCursor()}reduce(t,n,r=this){let i=this.allocateCursor(null,this.head),s=n,o;for(;i.next!==null;)o=i.next,i.next=o.next,s=t.call(r,s,o.data,o,this);return this.releaseCursor(),s}reduceRight(t,n,r=this){let i=this.allocateCursor(this.tail,null),s=n,o;for(;i.prev!==null;)o=i.prev,i.prev=o.prev,s=t.call(r,s,o.data,o,this);return this.releaseCursor(),s}some(t,n=this){for(let r=this.head;r!==null;r=r.next)if(t.call(n,r.data,r,this))return!0;return!1}map(t,n=this){const r=new $e;for(let i=this.head;i!==null;i=i.next)r.appendData(t.call(n,i.data,i,this));return r}filter(t,n=this){const r=new $e;for(let i=this.head;i!==null;i=i.next)t.call(n,i.data,i,this)&&r.appendData(i.data);return r}nextUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(null,t);for(;i.next!==null;){const s=i.next;if(i.next=s.next,n.call(r,s.data,s,this))break}this.releaseCursor()}prevUntil(t,n,r=this){if(t===null)return;const i=this.allocateCursor(t,null);for(;i.prev!==null;){const s=i.prev;if(i.prev=s.prev,n.call(r,s.data,s,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const t=new $e;for(let n of this)t.appendData(n);return t}prepend(t){return this.updateCursors(null,t,this.head,t),this.head!==null?(this.head.prev=t,t.next=this.head):this.tail=t,this.head=t,this}prependData(t){return this.prepend($e.createItem(t))}append(t){return this.insert(t)}appendData(t){return this.insert($e.createItem(t))}insert(t,n=null){if(n!==null)if(this.updateCursors(n.prev,t,n,t),n.prev===null){if(this.head!==n)throw new Error("before doesn't belong to list");this.head=t,n.prev=t,t.next=n,this.updateCursors(null,t)}else n.prev.next=t,t.prev=n.prev,n.prev=t,t.next=n;else this.updateCursors(this.tail,t,null,t),this.tail!==null?(this.tail.next=t,t.prev=this.tail):this.head=t,this.tail=t;return this}insertData(t,n){return this.insert($e.createItem(t),n)}remove(t){if(this.updateCursors(t,t.prev,t,t.next),t.prev!==null)t.prev.next=t.next;else{if(this.head!==t)throw new Error("item doesn't belong to list");this.head=t.next}if(t.next!==null)t.next.prev=t.prev;else{if(this.tail!==t)throw new Error("item doesn't belong to list");this.tail=t.prev}return t.prev=null,t.next=null,t}push(t){this.insert($e.createItem(t))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(t){this.prepend($e.createItem(t))}shift(){return this.head!==null?this.remove(this.head):null}prependList(t){return this.insertList(t,this.head)}appendList(t){return this.insertList(t)}insertList(t,n){return t.head===null?this:(n!=null?(this.updateCursors(n.prev,t.tail,n,t.head),n.prev!==null?(n.prev.next=t.head,t.head.prev=n.prev):this.head=t.head,n.prev=t.tail,t.tail.next=n):(this.updateCursors(this.tail,t.tail,null,t.head),this.tail!==null?(this.tail.next=t.head,t.head.prev=this.tail):this.head=t.head,this.tail=t.tail),t.head=null,t.tail=null,this)}replace(t,n){"head"in n?this.insertList(n,t):this.insert(n,t),this.remove(t)}}function Nr(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}
|
|
3
|
+
`)}})}const Wi=100,Ho=60,zo=" ";function $o({source:e,line:t,column:n,baseLine:r,baseColumn:i},s){function o(E,g){return c.slice(E,g).map((_,p)=>String(E+p+1).padStart(m)+" |"+_).join(`
|
|
4
|
+
`)}const a=`
|
|
5
|
+
`.repeat(Math.max(r-1,0)),u=" ".repeat(Math.max(i-1,0)),c=(a+u+e).split(/\r\n?|\n|\f/),d=Math.max(1,t-s)-1,h=Math.min(t+s,c.length+1),m=Math.max(4,String(h).length)+1;let f=0;n+=(zo.length-1)*(c[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>Wi&&(f=n-Ho+3,n=Ho-2);for(let E=d;E<=h;E++)E>=0&&E<c.length&&(c[E]=c[E].replace(/\t/g,zo),c[E]=(f>0&&c[E].length>f?"…":"")+c[E].substr(f,Wi-2)+(c[E].length>f+Wi-1?"…":""));return[o(d,t),new Array(n+m+2).join("-")+"^",o(t,h)].filter(Boolean).join(`
|
|
6
|
+
`).replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}function jo(e,t,n,r,i,s=1,o=1){return Object.assign(Nr("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment(u){return $o({source:t,line:r,column:i,baseLine:s,baseColumn:o},isNaN(u)?0:u)},get formattedMessage(){return`Parse error: ${e}
|
|
7
|
+
`+$o({source:t,line:r,column:i,baseLine:s,baseColumn:o},2)}})}function Y0(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case qe:this.next();continue;case Le:n=!0,this.next();continue}let i=e.getNode.call(this,r);if(i===void 0)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}const mn=()=>{},W0=33,G0=35,Gi=59,qo=123,Yo=0,V0={createList(){return[]},createSingleNodeList(e){return[e]},getFirstListNode(e){return e&&e[0]||null},getLastListNode(e){return e&&e.length>0?e[e.length-1]:null}},K0={createList(){return new $e},createSingleNodeList(e){return new $e().appendData(e)},getFirstListNode(e){return e&&e.first},getLastListNode(e){return e&&e.last}};function X0(e){return function(){return this[e]()}}function Vi(e){const t=Object.create(null);for(const n of Object.keys(e)){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function Q0(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:Vi(e.atrule),pseudo:Vi(e.pseudo),node:Vi(e.node)};for(const[n,r]of Object.entries(e.parseContext))switch(typeof r){case"function":t.context[n]=r;break;case"string":t.context[n]=X0(r);break}return{config:t,...t,...t.node}}function Z0(e){let t="",n="<unknown>",r=!1,i=mn,s=!1;const o=new j0,a=Object.assign(new q0,Q0(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Y0,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(d){return d===qo?1:0},consumeUntilLeftCurlyBracketOrSemicolon(d){return d===qo||d===Gi?1:0},consumeUntilExclamationMarkOrSemicolon(d){return d===W0||d===Gi?1:0},consumeUntilSemicolonIncluded(d){return d===Gi?2:0},createList:mn,createSingleNodeList:mn,getFirstListNode:mn,getLastListNode:mn,parseWithFallback(d,h){const m=this.tokenIndex;try{return d.call(this)}catch(f){if(s)throw f;this.skip(m-this.tokenIndex);const E=h.call(this);return s=!0,i(f,E),s=!1,E}},lookupNonWSType(d){let h;do if(h=this.lookupType(d++),h!==Le&&h!==qe)return h;while(h!==Yo);return Yo},charCodeAt(d){return d>=0&&d<t.length?t.charCodeAt(d):0},substring(d,h){return t.substring(d,h)},substrToCursor(d){return this.source.substring(d,this.tokenStart)},cmpChar(d,h){return hn(t,d,h)},cmpStr(d,h,m){return zn(t,d,h,m)},consume(d){const h=this.tokenStart;return this.eat(d),this.substrToCursor(h)},consumeFunctionName(){const d=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(pe),d},consumeNumber(d){const h=t.substring(this.tokenStart,Ar(t,this.tokenStart));return this.eat(d),h},eat(d){if(this.tokenType!==d){const h=Yi[d].slice(0,-6).replace(/-/g," ").replace(/^./,E=>E.toUpperCase());let m=`${/[[\](){}]/.test(h)?`"${h}"`:h} is expected`,f=this.tokenStart;switch(d){case ne:this.tokenType===pe||this.tokenType===Ge?(f=this.tokenEnd-1,m="Identifier is expected but function found"):m="Identifier is expected";break;case xe:this.isDelim(G0)&&(this.next(),f++,m="Name is expected");break;case Oe:this.tokenType===fe&&(f=this.tokenEnd,m="Percent sign is expected");break}this.error(m,f)}this.next()},eatIdent(d){(this.tokenType!==ne||this.lookupValue(0,d)===!1)&&this.error(`Identifier "${d}" is expected`),this.next()},eatDelim(d){this.isDelim(d)||this.error(`Delim "${String.fromCharCode(d)}" is expected`),this.next()},getLocation(d,h){return r?o.getLocationRange(d,h,n):null},getLocationFromList(d){if(r){const h=this.getFirstListNode(d),m=this.getLastListNode(d);return o.getLocationRange(h!==null?h.loc.start.offset-o.startOffset:this.tokenStart,m!==null?m.loc.end.offset-o.startOffset:this.tokenStart,n)}return null},error(d,h){const m=typeof h<"u"&&h<t.length?o.getLocation(h):this.eof?o.getLocation(H0(t,t.length-1)):o.getLocation(this.tokenStart);throw new jo(d||"Unexpected input",t,m.offset,m.line,m.column,o.startLine,o.startColumn)}}),u=()=>({filename:n,source:t,tokenCount:a.tokenCount,getTokenType:d=>a.getTokenType(d),getTokenTypeName:d=>Yi[a.getTokenType(d)],getTokenStart:d=>a.getTokenStart(d),getTokenEnd:d=>a.getTokenEnd(d),getTokenValue:d=>a.source.substring(a.getTokenStart(d),a.getTokenEnd(d)),substring:(d,h)=>a.source.substring(d,h),balance:a.balance.subarray(0,a.tokenCount+1),isBlockOpenerTokenType:a.isBlockOpenerTokenType,isBlockCloserTokenType:a.isBlockCloserTokenType,getBlockTokenPairIndex:d=>a.getBlockTokenPairIndex(d),getLocation:d=>o.getLocation(d,n),getRangeLocation:(d,h)=>o.getLocationRange(d,h,n)});return Object.assign(function(d,h){t=d,h=h||{},a.setSource(t,xr),o.setSource(t,h.offset,h.line,h.column),n=h.filename||"<unknown>",r=!!h.positions,i=typeof h.onParseError=="function"?h.onParseError:mn,s=!1,a.parseAtrulePrelude="parseAtrulePrelude"in h?!!h.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in h?!!h.parseRulePrelude:!0,a.parseValue="parseValue"in h?!!h.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in h?!!h.parseCustomProperty:!1;const{context:m="default",list:f=!0,onComment:E,onToken:g}=h;if(!(m in a.context))throw new Error("Unknown context `"+m+"`");Object.assign(a,f?K0:V0),Array.isArray(g)?a.forEachToken((p,y,S)=>{g.push({type:p,start:y,end:S})}):typeof g=="function"&&a.forEachToken(g.bind(u())),typeof E=="function"&&a.forEachToken((p,y,S)=>{if(p===qe){const L=a.getLocation(y,S),D=zn(t,S-2,S,"*/")?t.slice(y+2,S-2):t.slice(y+2,S);E(D,L)}});const _=a.context[m].call(a,h);return a.eof||a.error(),_},{SyntaxError:jo,config:a.config})}var Ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function J0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ki={},vr={},Or={},Wo;function em(){if(Wo)return Or;Wo=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Or.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Or.decode=function(t){var n=65,r=90,i=97,s=122,o=48,a=57,u=43,c=47,d=26,h=52;return n<=t&&t<=r?t-n:i<=t&&t<=s?t-i+d:o<=t&&t<=a?t-o+h:t==u?62:t==c?63:-1},Or}var Go;function tm(){if(Go)return vr;Go=1;var e=em(),t=5,n=1<<t,r=n-1,i=n;function s(a){return a<0?(-a<<1)+1:(a<<1)+0}function o(a){var u=(a&1)===1,c=a>>1;return u?-c:c}return vr.encode=function(u){var c="",d,h=s(u);do d=h&r,h>>>=t,h>0&&(d|=i),c+=e.encode(d);while(h>0);return c},vr.decode=function(u,c,d){var h=u.length,m=0,f=0,E,g;do{if(c>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(g=e.decode(u.charCodeAt(c++)),g===-1)throw new Error("Invalid base64 digit: "+u.charAt(c-1));E=!!(g&i),g&=r,m=m+(g<<f),f+=t}while(E);d.value=o(m),d.rest=c},vr}var Xi={},Vo;function Qi(){return Vo||(Vo=1,(function(e){function t(x,k,P){if(k in x)return x[k];if(arguments.length===3)return P;throw new Error('"'+k+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(x){var k=x.match(n);return k?{scheme:k[1],auth:k[2],host:k[3],port:k[4],path:k[5]}:null}e.urlParse=i;function s(x){var k="";return x.scheme&&(k+=x.scheme+":"),k+="//",x.auth&&(k+=x.auth+"@"),x.host&&(k+=x.host),x.port&&(k+=":"+x.port),x.path&&(k+=x.path),k}e.urlGenerate=s;var o=32;function a(x){var k=[];return function(P){for(var R=0;R<k.length;R++)if(k[R].input===P){var A=k[0];return k[0]=k[R],k[R]=A,k[0].result}var M=x(P);return k.unshift({input:P,result:M}),k.length>o&&k.pop(),M}}var u=a(function(k){var P=k,R=i(k);if(R){if(!R.path)return k;P=R.path}for(var A=e.isAbsolute(P),M=[],T=0,U=0;;)if(T=U,U=P.indexOf("/",T),U===-1){M.push(P.slice(T));break}else for(M.push(P.slice(T,U));U<P.length&&P[U]==="/";)U++;for(var W,G=0,U=M.length-1;U>=0;U--)W=M[U],W==="."?M.splice(U,1):W===".."?G++:G>0&&(W===""?(M.splice(U+1,G),G=0):(M.splice(U,2),G--));return P=M.join("/"),P===""&&(P=A?"/":"."),R?(R.path=P,s(R)):P});e.normalize=u;function c(x,k){x===""&&(x="."),k===""&&(k=".");var P=i(k),R=i(x);if(R&&(x=R.path||"/"),P&&!P.scheme)return R&&(P.scheme=R.scheme),s(P);if(P||k.match(r))return k;if(R&&!R.host&&!R.path)return R.host=k,s(R);var A=k.charAt(0)==="/"?k:u(x.replace(/\/+$/,"")+"/"+k);return R?(R.path=A,s(R)):A}e.join=c,e.isAbsolute=function(x){return x.charAt(0)==="/"||n.test(x)};function d(x,k){x===""&&(x="."),x=x.replace(/\/$/,"");for(var P=0;k.indexOf(x+"/")!==0;){var R=x.lastIndexOf("/");if(R<0||(x=x.slice(0,R),x.match(/^([^\/]+:\/)?\/*$/)))return k;++P}return Array(P+1).join("../")+k.substr(x.length+1)}e.relative=d;var h=(function(){var x=Object.create(null);return!("__proto__"in x)})();function m(x){return x}function f(x){return g(x)?"$"+x:x}e.toSetString=h?m:f;function E(x){return g(x)?x.slice(1):x}e.fromSetString=h?m:E;function g(x){if(!x)return!1;var k=x.length;if(k<9||x.charCodeAt(k-1)!==95||x.charCodeAt(k-2)!==95||x.charCodeAt(k-3)!==111||x.charCodeAt(k-4)!==116||x.charCodeAt(k-5)!==111||x.charCodeAt(k-6)!==114||x.charCodeAt(k-7)!==112||x.charCodeAt(k-8)!==95||x.charCodeAt(k-9)!==95)return!1;for(var P=k-10;P>=0;P--)if(x.charCodeAt(P)!==36)return!1;return!0}function _(x,k,P){var R=L(x.source,k.source);return R!==0||(R=x.originalLine-k.originalLine,R!==0)||(R=x.originalColumn-k.originalColumn,R!==0||P)||(R=x.generatedColumn-k.generatedColumn,R!==0)||(R=x.generatedLine-k.generatedLine,R!==0)?R:L(x.name,k.name)}e.compareByOriginalPositions=_;function p(x,k,P){var R;return R=x.originalLine-k.originalLine,R!==0||(R=x.originalColumn-k.originalColumn,R!==0||P)||(R=x.generatedColumn-k.generatedColumn,R!==0)||(R=x.generatedLine-k.generatedLine,R!==0)?R:L(x.name,k.name)}e.compareByOriginalPositionsNoSource=p;function y(x,k,P){var R=x.generatedLine-k.generatedLine;return R!==0||(R=x.generatedColumn-k.generatedColumn,R!==0||P)||(R=L(x.source,k.source),R!==0)||(R=x.originalLine-k.originalLine,R!==0)||(R=x.originalColumn-k.originalColumn,R!==0)?R:L(x.name,k.name)}e.compareByGeneratedPositionsDeflated=y;function S(x,k,P){var R=x.generatedColumn-k.generatedColumn;return R!==0||P||(R=L(x.source,k.source),R!==0)||(R=x.originalLine-k.originalLine,R!==0)||(R=x.originalColumn-k.originalColumn,R!==0)?R:L(x.name,k.name)}e.compareByGeneratedPositionsDeflatedNoLine=S;function L(x,k){return x===k?0:x===null?1:k===null?-1:x>k?1:-1}function D(x,k){var P=x.generatedLine-k.generatedLine;return P!==0||(P=x.generatedColumn-k.generatedColumn,P!==0)||(P=L(x.source,k.source),P!==0)||(P=x.originalLine-k.originalLine,P!==0)||(P=x.originalColumn-k.originalColumn,P!==0)?P:L(x.name,k.name)}e.compareByGeneratedPositionsInflated=D;function B(x){return JSON.parse(x.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=B;function C(x,k,P){if(k=k||"",x&&(x[x.length-1]!=="/"&&k[0]!=="/"&&(x+="/"),k=x+k),P){var R=i(P);if(!R)throw new Error("sourceMapURL could not be parsed");if(R.path){var A=R.path.lastIndexOf("/");A>=0&&(R.path=R.path.substring(0,A+1))}k=c(s(R),k)}return u(k)}e.computeSourceURL=C})(Xi)),Xi}var Zi={},Ko;function nm(){if(Ko)return Zi;Ko=1;var e=Qi(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(s,o){for(var a=new r,u=0,c=s.length;u<c;u++)a.add(s[u],o);return a},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(s,o){var a=n?s:e.toSetString(s),u=n?this.has(s):t.call(this._set,a),c=this._array.length;(!u||o)&&this._array.push(s),u||(n?this._set.set(s,c):this._set[a]=c)},r.prototype.has=function(s){if(n)return this._set.has(s);var o=e.toSetString(s);return t.call(this._set,o)},r.prototype.indexOf=function(s){if(n){var o=this._set.get(s);if(o>=0)return o}else{var a=e.toSetString(s);if(t.call(this._set,a))return this._set[a]}throw new Error('"'+s+'" is not in the set.')},r.prototype.at=function(s){if(s>=0&&s<this._array.length)return this._array[s];throw new Error("No element indexed by "+s)},r.prototype.toArray=function(){return this._array.slice()},Zi.ArraySet=r,Zi}var Ji={},Xo;function rm(){if(Xo)return Ji;Xo=1;var e=Qi();function t(r,i){var s=r.generatedLine,o=i.generatedLine,a=r.generatedColumn,u=i.generatedColumn;return o>s||o==s&&u>=a||e.compareByGeneratedPositionsInflated(r,i)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(i,s){this._array.forEach(i,s)},n.prototype.add=function(i){t(this._last,i)?(this._last=i,this._array.push(i)):(this._sorted=!1,this._array.push(i))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Ji.MappingList=n,Ji}var Qo;function im(){if(Qo)return Ki;Qo=1;var e=tm(),t=Qi(),n=nm().ArraySet,r=rm().MappingList;function i(s){s||(s={}),this._file=t.getArg(s,"file",null),this._sourceRoot=t.getArg(s,"sourceRoot",null),this._skipValidation=t.getArg(s,"skipValidation",!1),this._ignoreInvalidMapping=t.getArg(s,"ignoreInvalidMapping",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return i.prototype._version=3,i.fromSourceMap=function(o,a){var u=o.sourceRoot,c=new i(Object.assign(a||{},{file:o.file,sourceRoot:u}));return o.eachMapping(function(d){var h={generated:{line:d.generatedLine,column:d.generatedColumn}};d.source!=null&&(h.source=d.source,u!=null&&(h.source=t.relative(u,h.source)),h.original={line:d.originalLine,column:d.originalColumn},d.name!=null&&(h.name=d.name)),c.addMapping(h)}),o.sources.forEach(function(d){var h=d;u!==null&&(h=t.relative(u,d)),c._sources.has(h)||c._sources.add(h);var m=o.sourceContentFor(d);m!=null&&c.setSourceContent(d,m)}),c},i.prototype.addMapping=function(o){var a=t.getArg(o,"generated"),u=t.getArg(o,"original",null),c=t.getArg(o,"source",null),d=t.getArg(o,"name",null);!this._skipValidation&&this._validateMapping(a,u,c,d)===!1||(c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),d!=null&&(d=String(d),this._names.has(d)||this._names.add(d)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:c,name:d}))},i.prototype.setSourceContent=function(o,a){var u=o;this._sourceRoot!=null&&(u=t.relative(this._sourceRoot,u)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(u)]=a):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(o,a,u){var c=a;if(a==null){if(o.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=o.file}var d=this._sourceRoot;d!=null&&(c=t.relative(d,c));var h=new n,m=new n;this._mappings.unsortedForEach(function(f){if(f.source===c&&f.originalLine!=null){var E=o.originalPositionFor({line:f.originalLine,column:f.originalColumn});E.source!=null&&(f.source=E.source,u!=null&&(f.source=t.join(u,f.source)),d!=null&&(f.source=t.relative(d,f.source)),f.originalLine=E.line,f.originalColumn=E.column,E.name!=null&&(f.name=E.name))}var g=f.source;g!=null&&!h.has(g)&&h.add(g);var _=f.name;_!=null&&!m.has(_)&&m.add(_)},this),this._sources=h,this._names=m,o.sources.forEach(function(f){var E=o.sourceContentFor(f);E!=null&&(u!=null&&(f=t.join(u,f)),d!=null&&(f=t.relative(d,f)),this.setSourceContent(f,E))},this)},i.prototype._validateMapping=function(o,a,u,c){if(a&&typeof a.line!="number"&&typeof a.column!="number"){var d="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(d),!1;throw new Error(d)}if(!(o&&"line"in o&&"column"in o&&o.line>0&&o.column>=0&&!a&&!u&&!c)){if(o&&"line"in o&&"column"in o&&a&&"line"in a&&"column"in a&&o.line>0&&o.column>=0&&a.line>0&&a.column>=0&&u)return;var d="Invalid mapping: "+JSON.stringify({generated:o,source:u,original:a,name:c});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(d),!1;throw new Error(d)}},i.prototype._serializeMappings=function(){for(var o=0,a=1,u=0,c=0,d=0,h=0,m="",f,E,g,_,p=this._mappings.toArray(),y=0,S=p.length;y<S;y++){if(E=p[y],f="",E.generatedLine!==a)for(o=0;E.generatedLine!==a;)f+=";",a++;else if(y>0){if(!t.compareByGeneratedPositionsInflated(E,p[y-1]))continue;f+=","}f+=e.encode(E.generatedColumn-o),o=E.generatedColumn,E.source!=null&&(_=this._sources.indexOf(E.source),f+=e.encode(_-h),h=_,f+=e.encode(E.originalLine-1-c),c=E.originalLine-1,f+=e.encode(E.originalColumn-u),u=E.originalColumn,E.name!=null&&(g=this._names.indexOf(E.name),f+=e.encode(g-d),d=g)),m+=f}return m},i.prototype._generateSourcesContent=function(o,a){return o.map(function(u){if(!this._sourcesContents)return null;a!=null&&(u=t.relative(a,u));var c=t.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},i.prototype.toJSON=function(){var o={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(o.file=this._file),this._sourceRoot!=null&&(o.sourceRoot=this._sourceRoot),this._sourcesContents&&(o.sourcesContent=this._generateSourcesContent(o.sources,o.sourceRoot)),o},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ki.SourceMapGenerator=i,Ki}var sm=im();const Zo=new Set(["Atrule","Selector","Declaration"]);function am(e){const t=new sm.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},s={generated:i};let o=1,a=0,u=!1;const c=e.node;e.node=function(m){if(m.loc&&m.loc.start&&Zo.has(m.type)){const f=m.loc.start.line,E=m.loc.start.column-1;(r.line!==f||r.column!==E)&&(r.line=f,r.column=E,n.line=o,n.column=a,u&&(u=!1,(n.line!==i.line||n.column!==i.column)&&t.addMapping(s)),u=!0,t.addMapping({source:m.loc.source,original:r,generated:n}))}c.call(this,m),u&&Zo.has(m.type)&&(i.line=o,i.column=a)};const d=e.emit;e.emit=function(m,f,E){for(let g=0;g<m.length;g++)m.charCodeAt(g)===10?(o++,a=0):a++;d(m,f,E)};const h=e.result;return e.result=function(){return u&&t.addMapping(s),{css:h(),map:t}},e}const om=43,um=45,es=(e,t)=>(e===ge&&(e=t),typeof e=="string"&&(e=Math.min(e.charCodeAt(0),128)<<6),e<<1),Jo=[[ne,ne],[ne,pe],[ne,Ge],[ne,nt],[ne,"-"],[ne,fe],[ne,Oe],[ne,be],[ne,rt],[ne,_e],[Be,ne],[Be,pe],[Be,Ge],[Be,nt],[Be,"-"],[Be,fe],[Be,Oe],[Be,be],[Be,rt],[xe,ne],[xe,pe],[xe,Ge],[xe,nt],[xe,"-"],[xe,fe],[xe,Oe],[xe,be],[xe,rt],[be,ne],[be,pe],[be,Ge],[be,nt],[be,"-"],[be,fe],[be,Oe],[be,be],[be,rt],["#",ne],["#",pe],["#",Ge],["#",nt],["#","-"],["#",fe],["#",Oe],["#",be],["#",rt],["-",ne],["-",pe],["-",Ge],["-",nt],["-","-"],["-",fe],["-",Oe],["-",be],["-",rt],[fe,ne],[fe,pe],[fe,Ge],[fe,nt],[fe,fe],[fe,Oe],[fe,be],[fe,"%"],[fe,rt],["@",ne],["@",pe],["@",Ge],["@",nt],["@","-"],["@",rt],[".",fe],[".",Oe],[".",be],["+",fe],["+",Oe],["+",be],["/","*"]],lm=Jo.concat([[ne,xe],[be,xe],[xe,xe],[Be,_e],[Be,mt],[Be,Ve],[Oe,Oe],[Oe,be],[Oe,pe],[Oe,"-"],[de,ne],[de,pe],[de,Oe],[de,be],[de,xe],[de,"-"]]);function eu(e){const t=new Set(e.map(([n,r])=>es(n)<<16|es(r)));return function(n,r,i){const s=es(r,i),o=i.charCodeAt(0),a=o===um&&r!==ne&&r!==pe&&r!==rt||o===om?t.has((n&65534)<<16|o<<7):t.has((n&65534)<<16|s);return s|a}}const cm=eu(Jo),tu=eu(lm),nu=Object.freeze(Object.defineProperty({__proto__:null,safe:tu,spec:cm},Symbol.toStringTag,{value:"Module"})),dm=92;function hm(e,t){if(typeof t=="function"){let n=null;e.children.forEach(r=>{n!==null&&t.call(this,n),this.node(r),n=r});return}e.children.forEach(this.node,this)}function fm(e){const t=new Map;for(let[n,r]of Object.entries(e.node))typeof(r.generate||r)=="function"&&t.set(n,r.generate||r);return function(n,r){let i="",s=0,o={node(u){if(t.has(u.type))t.get(u.type).call(a,u);else throw new Error("Unknown node type: "+u.type)},tokenBefore:tu,token(u,c,d){s=this.tokenBefore(s,u,c),!d&&s&1&&this.emit(" ",Le,!0),this.emit(c,u,!1),u===ge&&c.charCodeAt(0)===dm&&this.emit(`
|
|
8
|
+
`,Le,!0)},emit(u){i+=u},result(){return i}};r&&(typeof r.decorator=="function"&&(o=r.decorator(o)),r.sourceMap&&(o=am(o)),r.mode in nu&&(o.tokenBefore=nu[r.mode]));const a={node:u=>o.node(u),children:hm,token:(u,c)=>o.token(u,c),tokenize:u=>xr(u,(c,d,h)=>{o.token(c,u.slice(d,h),d!==0)})};return o.node(n),o.result()}}function pm(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof $e)&&(n.children=new $e().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof $e&&(n.children=n.children.toArray())}}),t}}}const{hasOwnProperty:ts}=Object.prototype,jn=function(){};function ru(e){return typeof e=="function"?e:jn}function iu(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function mm(e,t){const n=t.structure,r=[];for(const i in n){if(ts.call(n,i)===!1)continue;let s=n[i];const o={name:i,type:!1,nullable:!1};Array.isArray(s)||(s=[s]);for(const a of s)a===null?o.nullable=!0:typeof a=="string"?o.type="node":Array.isArray(a)&&(o.type="list");o.type&&r.push(o)}return r.length?{context:t.walkContext,fields:r}:null}function gm(e){const t={};for(const n in e.node)if(ts.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=mm(n,r)}return t}function su(e,t){const n=e.fields.slice(),r=e.context,i=typeof r=="string";return t&&n.reverse(),function(s,o,a,u){let c;i&&(c=o[r],o[r]=s);for(const d of n){const h=s[d.name];if(!d.nullable||h){if(d.type==="list"){if(t?h.reduceRight(u,!1):h.reduce(u,!1))return!0}else if(a(h))return!0}}i&&(o[r]=c)}}function au({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:i}}}function bm(e){const t=gm(e),n={},r={},i=Symbol("break-walk"),s=Symbol("skip-node");for(const c in t)ts.call(t,c)&&t[c]!==null&&(n[c]=su(t[c],!1),r[c]=su(t[c],!0));const o=au(n),a=au(r),u=function(c,d){function h(p,y,S){const L=m.call(_,p,y,S);return L===i?!0:L===s?!1:!!(E.hasOwnProperty(p.type)&&E[p.type](p,_,h,g)||f.call(_,p,y,S)===i)}let m=jn,f=jn,E=n,g=(p,y,S,L)=>p||h(y,S,L);const _={break:i,skip:s,root:c,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof d=="function")m=d;else if(d&&(m=ru(d.enter),f=ru(d.leave),d.reverse&&(E=r),d.visit)){if(o.hasOwnProperty(d.visit))E=d.reverse?a[d.visit]:o[d.visit];else if(!t.hasOwnProperty(d.visit))throw new Error("Bad value `"+d.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");m=iu(m,d.visit),f=iu(f,d.visit)}if(m===jn&&f===jn)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");h(c)};return u.break=i,u.skip=s,u.find=function(c,d){let h=null;return u(c,function(m,f,E){if(d.call(this,m,f,E))return h=m,i}),h},u.findLast=function(c,d){let h=null;return u(c,{reverse:!0,enter(m,f,E){if(d.call(this,m,f,E))return h=m,i}}),h},u.findAll=function(c,d){const h=[];return u(c,function(m,f,E){d.call(this,m,f,E)&&h.push(m)}),h},u}function Em(e){return e}function ym(e){const{min:t,max:n,comma:r}=e;return t===0&&n===0?r?"#?":"*":t===0&&n===1?"?":t===1&&n===0?r?"#":"+":t===1&&n===1?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(n!==0?n:"")+"}")}function Tm(e){switch(e.type){case"Range":return" ["+(e.min===null?"-∞":e.min)+","+(e.max===null?"∞":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function _m(e,t,n,r){const i=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",s=e.terms.map(o=>Lr(o,t,n,r)).join(i);return e.explicit||n?(r||s[0]===","?"[":"[ ")+s+(r?"]":" ]"):s}function Lr(e,t,n,r){let i;switch(e.type){case"Group":i=_m(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Lr(e.term,t,n,r)+t(ym(e),e);case"Boolean":i="<boolean-expr["+Lr(e.term,t,n,r)+"]>";break;case"Type":i="<"+e.name+(e.opts?t(Tm(e.opts),e.opts):"")+">";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function ns(e,t){let n=Em,r=!1,i=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,i=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Lr(e,n,r,i)}const ou={offset:0,line:1,column:1};function km(e,t){const n=e.tokens,r=e.longestMatch,i=r<n.length&&n[r].node||null,s=i!==t?i:null;let o=0,a=0,u=0,c="",d,h;for(let m=0;m<n.length;m++){const f=n[m].value;m===r&&(a=f.length,o=c.length),s!==null&&n[m].node===s&&(m<=r?u++:u=0),c+=f}return r===n.length||u>1?(d=Rr(s||t,"end")||qn(ou,c),h=qn(d)):(d=Rr(s,"start")||qn(Rr(t,"start")||ou,c.slice(0,o)),h=Rr(s,"end")||qn(d,c.substr(o,a))),{css:c,mismatchOffset:o,mismatchLength:a,start:d,end:h}}function Rr(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?qn(n):n:null}function qn({offset:e,line:t,column:n},r){const i={offset:e,line:t,column:n};if(r){const s=r.split(/\n|\r\n?|\f/);i.offset+=r.length,i.line+=s.length-1,i.column=s.length===1?i.column+r.length:s.pop().length+1}return i}const Yn=function(e,t){const n=Nr("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},wm=function(e,t,n,r){const i=Nr("SyntaxMatchError",e),{css:s,mismatchOffset:o,mismatchLength:a,start:u,end:c}=km(r,n);return i.rawMessage=e,i.syntax=t?ns(t):"<generic>",i.css=s,i.mismatchOffset=o,i.mismatchLength=a,i.message=e+`
|
|
9
|
+
syntax: `+i.syntax+`
|
|
10
|
+
value: `+(s||"<empty string>")+`
|
|
11
|
+
--------`+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,u),i.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:u,end:c},i},Pr=new Map,gn=new Map,Dr=45,rs=Am,uu=Sm;function is(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Dr&&e.charCodeAt(t+1)===Dr}function lu(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Dr&&e.charCodeAt(t+1)!==Dr){const n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function Am(e){if(Pr.has(e))return Pr.get(e);const t=e.toLowerCase();let n=Pr.get(t);if(n===void 0){const r=is(t,0),i=r?"":lu(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return Pr.set(e,n),n}function Sm(e){if(gn.has(e))return gn.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");const r=is(t,n.length);if(!r&&(t=t.toLowerCase(),gn.has(t))){const a=gn.get(t);return gn.set(e,a),a}const i=r?"":lu(t,n.length),s=t.substr(0,n.length+i.length),o=Object.freeze({basename:t.substr(s.length),name:t.substr(n.length),hack:n,vendor:i,prefix:s,custom:r});return gn.set(e,o),o}const ss=["initial","inherit","unset","revert","revert-layer"],Wn=43,St=45,as=110,bn=!0,Cm=!1;function os(e,t){return e!==null&&e.type===ge&&e.value.charCodeAt(0)===t}function Gn(e,t,n){for(;e!==null&&(e.type===Le||e.type===qe);)e=n(++t);return t}function jt(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===Wn||i===St){if(n)return 0;t++}for(;t<e.value.length;t++)if(!Ye(e.value.charCodeAt(t)))return 0;return r+1}function us(e,t,n){let r=!1,i=Gn(e,t,n);if(e=n(i),e===null)return t;if(e.type!==fe)if(os(e,Wn)||os(e,St)){if(r=!0,i=Gn(n(++i),i,n),e=n(i),e===null||e.type!==fe)return 0}else return t;if(!r){const s=e.value.charCodeAt(0);if(s!==Wn&&s!==St)return 0}return jt(e,r?0:1,r,i)}function xm(e,t){let n=0;if(!e)return 0;if(e.type===fe)return jt(e,0,Cm,n);if(e.type===ne&&e.value.charCodeAt(0)===St){if(!hn(e.value,1,as))return 0;switch(e.value.length){case 2:return us(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==St?0:(n=Gn(t(++n),n,t),e=t(n),jt(e,0,bn,n));default:return e.value.charCodeAt(2)!==St?0:jt(e,3,bn,n)}}else if(e.type===ne||os(e,Wn)&&t(n+1).type===ne){if(e.type!==ne&&(e=t(++n)),e===null||!hn(e.value,0,as))return 0;switch(e.value.length){case 1:return us(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==St?0:(n=Gn(t(++n),n,t),e=t(n),jt(e,0,bn,n));default:return e.value.charCodeAt(1)!==St?0:jt(e,2,bn,n)}}else if(e.type===be){let r=e.value.charCodeAt(0),i=r===Wn||r===St?1:0,s=i;for(;s<e.value.length&&Ye(e.value.charCodeAt(s));s++);return s===i||!hn(e.value,s,as)?0:s+1===e.value.length?us(t(++n),n,t):e.value.charCodeAt(s+1)!==St?0:s+2===e.value.length?(n=Gn(t(++n),n,t),e=t(n),jt(e,0,bn,n)):jt(e,s+2,bn,n)}return 0}const Nm=43,cu=45,du=63,Im=117;function ls(e,t){return e!==null&&e.type===ge&&e.value.charCodeAt(0)===t}function vm(e,t){return e.value.charCodeAt(0)===t}function Vn(e,t,n){let r=0;for(let i=t;i<e.value.length;i++){const s=e.value.charCodeAt(i);if(s===cu&&n&&r!==0)return Vn(e,t+r+1,!1),6;if(!zt(s)||++r>6)return 0}return r}function Mr(e,t,n){if(!e)return 0;for(;ls(n(t),du);){if(++e>6)return 0;t++}return t}function Om(e,t){let n=0;if(e===null||e.type!==ne||!hn(e.value,0,Im)||(e=t(++n),e===null))return 0;if(ls(e,Nm))return e=t(++n),e===null?0:e.type===ne?Mr(Vn(e,0,!0),++n,t):ls(e,du)?Mr(1,++n,t):0;if(e.type===fe){const r=Vn(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===be||e.type===fe?!vm(e,cu)||!Vn(e,1,!1)?0:n+1:Mr(r,n,t))}return e.type===be?Mr(Vn(e,1,!0),++n,t):0}const cs=["calc(","-moz-calc(","-webkit-calc("],ds=["min(","max(","clamp("],hs=["round(","mod(","rem("],Lm=["sin(","cos(","tan("],Rm=["asin(","acos(","atan(","atan2("],Pm=["pow(","sqrt(","log(","exp(","sign("],fs=["hypot("],ps=["abs("],hu=[...cs,...ds,...hs,...Lm,...Pm,...fs,...ps],Dm=[...cs,...ds,...hs,...fs,...ps],vt=[...cs,...ds,...hs,...Rm,...fs,...ps],ms=new Map([[pe,de],[_e,de],[at,ct],[ze,ot]]);function yt(e,t){return t<e.length?e.charCodeAt(t):0}function fu(e,t){return zn(e,0,e.length,t)}function pu(e,t){for(let n=0;n<t.length;n++)if(fu(e,t[n]))return!0;return!1}function mu(e,t){return t!==e.length-2?!1:yt(e,t)===92&&Ye(yt(e,t+1))}function Br(e,t,n){if(e&&e.type==="Range"){const r=Number(n!==void 0&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||e.min!==null&&r<e.min&&typeof e.min!="string"||e.max!==null&&r>e.max&&typeof e.max!="string")return!0}return!1}function Mm(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case ot:case de:case ct:if(e.type!==n)break e;if(n=r.pop(),r.length===0){i++;break e}break;case pe:case _e:case at:case ze:r.push(n),n=ms.get(e.type);break}i++}while(e=t(i));return i}function dt(e,t){return function(n,r,i){return n===null?0:n.type===pe&&pu(n.value,t)?Mm(n,r):e(n,r,i)}}function Ne(e){return function(t){return t===null||t.type!==e?0:1}}function Bm(e){if(e===null||e.type!==ne)return 0;const t=e.value.toLowerCase();return pu(t,ss)||fu(t,"default")?0:1}function gu(e){return e===null||e.type!==ne||yt(e.value,0)!==45||yt(e.value,1)!==45?0:1}function Fm(e){return!gu(e)||e.value==="--"?0:1}function Um(e){if(e===null||e.type!==xe)return 0;const t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!zt(yt(e.value,n)))return 0;return 1}function Hm(e){return e===null||e.type!==xe||!Tr(yt(e.value,1),yt(e.value,2),yt(e.value,3))?0:1}function zm(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case br:case nt:break e;case ot:case de:case ct:if(e.type!==n)break e;n=r.pop();break;case Ke:if(n===0)break e;break;case ge:if(n===0&&e.value==="!")break e;break;case pe:case _e:case at:case ze:r.push(n),n=ms.get(e.type);break}i++}while(e=t(i));return i}function $m(e,t){if(!e)return 0;let n=0,r=[],i=0;e:do{switch(e.type){case br:case nt:break e;case ot:case de:case ct:if(e.type!==n)break e;n=r.pop();break;case pe:case _e:case at:case ze:r.push(n),n=ms.get(e.type);break}i++}while(e=t(i));return i}function Ot(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==be)return 0;const i=Ar(t.value,0);if(e!==null){const s=t.value.indexOf("\\",i),o=s===-1||!mu(t.value,s)?t.value.substr(i):t.value.substring(i,s);if(e.has(o.toLowerCase())===!1)return 0}return Br(r,t.value,i)?0:1}}function jm(e,t,n){return e===null||e.type!==Oe||Br(n,e.value,e.value.length-1)?0:1}function bu(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===fe&&Number(t.value)===0?1:e(t,n,r)}}function qm(e,t,n){if(e===null)return 0;const r=Ar(e.value,0);return!(r===e.value.length)&&!mu(e.value,r)||Br(n,e.value,r)?0:1}function Ym(e,t,n){if(e===null||e.type!==fe)return 0;let r=yt(e.value,0)===43||yt(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!Ye(yt(e.value,r)))return 0;return Br(n,e.value,r)?0:1}const Wm={"ident-token":Ne(ne),"function-token":Ne(pe),"at-keyword-token":Ne(Be),"hash-token":Ne(xe),"string-token":Ne(mt),"bad-string-token":Ne(br),"url-token":Ne(Ge),"bad-url-token":Ne(nt),"delim-token":Ne(ge),"number-token":Ne(fe),"percentage-token":Ne(Oe),"dimension-token":Ne(be),"whitespace-token":Ne(Le),"CDO-token":Ne(Hn),"CDC-token":Ne(rt),"colon-token":Ne(Ve),"semicolon-token":Ne(Ke),"comma-token":Ne(it),"[-token":Ne(at),"]-token":Ne(ct),"(-token":Ne(_e),")-token":Ne(de),"{-token":Ne(ze),"}-token":Ne(ot)},Gm={string:Ne(mt),ident:Ne(ne),percentage:dt(jm,Dm),zero:bu(),number:dt(qm,hu),integer:dt(Ym,hu),"custom-ident":Bm,"dashed-ident":gu,"custom-property-name":Fm,"hex-color":Um,"id-selector":Hm,"an-plus-b":xm,urange:Om,"declaration-value":zm,"any-value":$m},Vm=["length","angle","time","frequency","resolution","flex","decibel","semitones"];function Km(e){const{angle:t,decibel:n,frequency:r,flex:i,length:s,resolution:o,semitones:a,time:u}=e||{};return{dimension:dt(Ot(null),vt),angle:dt(Ot(t),vt),decibel:dt(Ot(n),vt),frequency:dt(Ot(r),vt),flex:dt(Ot(i),vt),length:dt(bu(Ot(s)),vt),resolution:dt(Ot(o),vt),semitones:dt(Ot(a),vt),time:dt(Ot(u),vt)}}function Xm(e){const t=new Set;for(const n of Vm)if(Array.isArray(e[n]))for(const r of e[n])t.add(r.toLowerCase());return function(r){return r===null?0:r.type===ge&&r.value==="%"||r.type===ne&&t.has(r.value.toLowerCase())?1:0}}function Qm(e){return{...Wm,...Gm,...Km(e),"attr-unit":Xm(e)}}const Eu=Object.freeze(Object.defineProperty({__proto__:null,angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},Symbol.toStringTag,{value:"Module"}));function Zm(e,t,n){return Object.assign(Nr("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
|
|
12
|
+
`+t+`
|
|
13
|
+
--`+new Array((n||t.length)+1).join("-")+"^"})}const Jm=9,eg=10,tg=12,ng=13,rg=32,yu=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0);class ig{constructor(t){this.str=t,this.pos=0}charCodeAt(t){return t<this.str.length?this.str.charCodeAt(t):0}charCode(){return this.charCodeAt(this.pos)}isNameCharCode(t=this.charCode()){return t<128&&yu[t]===1}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(t){return this.charCodeAt(this.findWsEnd(t))}skipWs(){this.pos=this.findWsEnd(this.pos)}findWsEnd(t){for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n!==ng&&n!==eg&&n!==tg&&n!==rg&&n!==Jm)break}return t}substringToPos(t){return this.str.substring(this.pos,this.pos=t)}eat(t){this.charCode()!==t&&this.error("Expect `"+String.fromCharCode(t)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(t){throw new Zm(t,this.str,this.pos)}scanSpaces(){return this.substringToPos(this.findWsEnd(this.pos))}scanWord(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n>=128||yu[n]===0)break}return this.pos===t&&this.error("Expect a keyword"),this.substringToPos(t)}scanNumber(){let t=this.pos;for(;t<this.str.length;t++){const n=this.str.charCodeAt(t);if(n<48||n>57)break}return this.pos===t&&this.error("Expect a number"),this.substringToPos(t)}scanString(){const t=this.str.indexOf("'",this.pos+1);return t===-1&&(this.pos=this.str.length,this.error("Expect an apostrophe")),this.substringToPos(t+1)}}const sg=9,ag=10,og=12,ug=13,lg=32,Tu=33,gs=35,_u=38,Fr=39,ku=40,wu=41,Au=42,bs=43,Es=44,Su=45,ys=60,Ts=62,Ur=63,cg=64,Kn=91,En=93,Hr=123,Cu=124,_s=125,xu=8734,Nu={" ":1,"&&":2,"||":3,"|":4};function Iu(e){let t=null,n=null;return e.eat(Hr),e.skipWs(),t=e.scanNumber(e),e.skipWs(),e.charCode()===Es?(e.pos++,e.skipWs(),e.charCode()!==_s&&(n=e.scanNumber(e),e.skipWs())):n=t,e.eat(_s),{min:Number(t),max:n?Number(n):0}}function dg(e){let t=null,n=!1;switch(e.charCode()){case Au:e.pos++,t={min:0,max:0};break;case bs:e.pos++,t={min:1,max:0};break;case Ur:e.pos++,t={min:0,max:1};break;case gs:e.pos++,n=!0,e.charCode()===Hr?t=Iu(e):e.charCode()===Ur?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Hr:t=Iu(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Lt(e,t){const n=dg(e);return n!==null?(n.term=t,e.charCode()===gs&&e.charCodeAt(e.pos-1)===bs||e.charCode()===Ur&&e.charCodeAt(e.pos-1)===_s?Lt(e,n):n):t}function ks(e){const t=e.peek();return t===""?null:Lt(e,{type:"Token",value:t})}function hg(e){let t;return e.eat(ys),e.eat(Fr),t=e.scanWord(),e.eat(Fr),e.eat(Ts),Lt(e,{type:"Property",name:t})}function fg(e){let t=null,n=null,r=1;return e.eat(Kn),e.charCode()===Su&&(e.peek(),r=-1),r==-1&&e.charCode()===xu?e.peek():(t=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(t+=e.scanWord())),e.skipWs(),e.eat(Es),e.skipWs(),e.charCode()===xu?e.peek():(r=1,e.charCode()===Su&&(e.peek(),r=-1),n=r*Number(e.scanNumber(e)),e.isNameCharCode()&&(n+=e.scanWord())),e.eat(En),{type:"Range",min:t,max:n}}function pg(e){let t,n=null;if(e.eat(ys),t=e.scanWord(),t==="boolean-expr"){e.eat(Kn);const r=zr(e,En);return e.eat(En),e.eat(Ts),Lt(e,{type:"Boolean",term:r.terms.length===1?r.terms[0]:r})}return e.charCode()===ku&&e.nextCharCode()===wu&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Kn&&(e.skipWs(),n=fg(e)),e.eat(Ts),Lt(e,{type:"Type",name:t,opts:n})}function mg(e){const t=e.scanWord();return e.charCode()===ku?(e.pos++,{type:"Function",name:t}):Lt(e,{type:"Keyword",name:t})}function gg(e,t){function n(i,s){return{type:"Group",terms:i,combinator:s,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((i,s)=>Nu[i]-Nu[s]);t.length>0;){r=t.shift();let i=0,s=0;for(;i<e.length;i++){const o=e[i];o.type==="Combinator"&&(o.value===r?(s===-1&&(s=i-1),e.splice(i,1),i--):(s!==-1&&i-s>1&&(e.splice(s,i-s,n(e.slice(s,i),r)),i=s+1),s=-1))}s!==-1&&t.length&&e.splice(s,i-s,n(e.slice(s,i),r))}return r}function zr(e,t=-1){const n=Object.create(null),r=[];let i=null,s=e.pos,o=!1;for(;e.charCode()!==t;){let a=o?zr(e,wu):Eg(e);if(!a)break;if(a.type!=="Spaces"){if(o){if(a.terms.length===0){o=!1;continue}if(a.combinator===" "){for(;a.terms.length>1;)n[" "]=!0,r.push({type:"Combinator",value:" "},a.terms.shift());a=a.terms[0]}}a.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=s,e.error("Unexpected combinator")),n[a.value]=!0):i!==null&&i.type!=="Combinator"&&(n[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(a),i=a,s=e.pos,o=a.type==="Function"}}return i!==null&&i.type==="Combinator"&&(e.pos-=s,e.error("Unexpected combinator")),{type:"Group",terms:r,combinator:gg(r,n)||" ",disallowEmpty:!1,explicit:!1}}function bg(e){let t;return e.eat(Kn),t=zr(e,En),e.eat(En),t.explicit=!0,e.charCode()===Tu&&(e.pos++,t.disallowEmpty=!0),t}function Eg(e){let t=e.charCode();switch(t){case En:break;case Kn:return Lt(e,bg(e));case ys:return e.nextCharCode()===Fr?hg(e):pg(e);case Cu:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Cu?2:1))};case _u:return e.pos++,e.eat(_u),{type:"Combinator",value:"&&"};case Es:return e.pos++,{type:"Comma"};case Fr:return Lt(e,{type:"String",value:e.scanString()});case lg:case sg:case ag:case ug:case og:return{type:"Spaces",value:e.scanSpaces()};case cg:return t=e.nextCharCode(),e.isNameCharCode(t)?(e.pos++,{type:"AtKeyword",name:e.scanWord()}):ks(e);case Au:case bs:case Ur:case gs:case Tu:break;case Hr:if(t=e.nextCharCode(),t<48||t>57)return ks(e);break;default:return e.isNameCharCode(t)?mg(e):ks(e)}}function vu(e){const t=new ig(e),n=zr(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}const Xn=function(){};function Ou(e){return typeof e=="function"?e:Xn}function yg(e,t,n){function r(o){switch(i.call(n,o),o.type){case"Group":o.terms.forEach(r);break;case"Multiplier":case"Boolean":r(o.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+o.type)}s.call(n,o)}let i=Xn,s=Xn;if(typeof t=="function"?i=t:t&&(i=Ou(t.enter),s=Ou(t.leave)),i===Xn&&s===Xn)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e)}const Tg={decorator(e){const t=[];let n=null;return{...e,node(r){const i=n;n=r,e.node.call(this,r),n=i},emit(r,i,s){t.push({type:i,value:r,node:s?null:n})},result(){return t}}}};function _g(e){const t=[];return xr(e,(n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null})),t}function kg(e,t){return typeof e=="string"?_g(e):t.generate(e,Tg)}const ke={type:"Match"},Ae={type:"Mismatch"},ws={type:"DisallowEmpty"},wg=40,Ag=41;function Xe(e,t,n){return t===ke&&n===Ae||e===ke&&t===ke&&n===ke?e:(e.type==="If"&&e.else===Ae&&t===ke&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Lu(e){return e.length>2&&e.charCodeAt(e.length-2)===wg&&e.charCodeAt(e.length-1)===Ag}function Ru(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&Lu(e.name)}function qt(e,t=" ",n=!1){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:n}}function Qn(e,t,n=new Set){if(!n.has(e))switch(n.add(e),e.type){case"If":e.match=Qn(e.match,t,n),e.then=Qn(e.then,t,n),e.else=Qn(e.else,t,n);break;case"Type":return t[e.name]||e}return e}function As(e,t,n){switch(e){case" ":{let r=ke;for(let i=t.length-1;i>=0;i--){const s=t[i];r=Xe(s,r,Ae)}return r}case"|":{let r=Ae,i=null;for(let s=t.length-1;s>=0;s--){let o=t[s];if(Ru(o)&&(i===null&&s>0&&Ru(t[s-1])&&(i=Object.create(null),r=Xe({type:"Enum",map:i},ke,r)),i!==null)){const a=(Lu(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(!(a in i)){i[a]=o;continue}}i=null,r=Xe(o,ke,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=Ae;for(let i=t.length-1;i>=0;i--){const s=t[i];let o;t.length>1?o=As(e,t.filter(function(a){return a!==s}),!1):o=ke,r=Xe(s,o,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?ke:Ae;for(let i=t.length-1;i>=0;i--){const s=t[i];let o;t.length>1?o=As(e,t.filter(function(a){return a!==s}),!0):o=ke,r=Xe(s,o,r)}return r}}}function Sg(e){let t=ke,n=yn(e.term);if(e.max===0)n=Xe(n,ws,Ae),t=Xe(n,null,Ae),t.then=Xe(ke,ke,t),e.comma&&(t.then.else=Xe({type:"Comma",syntax:e},t,Ae));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==ke&&(t=Xe({type:"Comma",syntax:e},t,Ae)),t=Xe(n,Xe(ke,ke,t),Ae);if(e.min===0)t=Xe(ke,ke,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==ke&&(t=Xe({type:"Comma",syntax:e},t,Ae)),t=Xe(n,t,Ae);return t}function yn(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=As(e.combinator,e.terms.map(yn),!1);return e.disallowEmpty&&(t=Xe(t,ws,Ae)),t}case"Multiplier":return Sg(e);case"Boolean":{const t=yn(e.term),n=yn(qt([qt([{type:"Keyword",name:"not"},{type:"Type",name:"!boolean-group"}]),qt([{type:"Type",name:"!boolean-group"},qt([{type:"Multiplier",comma:!1,min:0,max:0,term:qt([{type:"Keyword",name:"and"},{type:"Type",name:"!boolean-group"}])},{type:"Multiplier",comma:!1,min:0,max:0,term:qt([{type:"Keyword",name:"or"},{type:"Type",name:"!boolean-group"}])}],"|")])],"|")),r=yn(qt([{type:"Type",name:"!term"},qt([{type:"Token",value:"("},{type:"Type",name:"!self"},{type:"Token",value:")"}]),{type:"Type",name:"general-enclosed"}],"|"));return Qn(r,{"!term":t,"!self":n}),Qn(n,{"!boolean-group":r}),n}case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function $r(e,t){return typeof e=="string"&&(e=vu(e)),{type:"MatchGraph",match:yn(e),syntax:t||null,source:e}}const{hasOwnProperty:Pu}=Object.prototype,Cg=0,xg=1,Ss=2,Du=3,Mu="Match",Ng="Mismatch",Ig="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Bu=15e3;function vg(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function Cs(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let i=e.charCodeAt(n);if(i>=65&&i<=90&&(i=i|32),i!==r)return!1}return!0}function Og(e){return e.type!==ge?!1:e.value!=="?"}function Fu(e){return e===null?!0:e.type===it||e.type===pe||e.type===_e||e.type===at||e.type===ze||Og(e)}function Uu(e){return e===null?!0:e.type===de||e.type===ct||e.type===ot||e.type===ge&&e.value==="/"}function Lg(e,t,n){function r(){do y++,p=y<e.length?e[y]:null;while(p!==null&&(p.type===Le||p.type===qe))}function i(D){const B=y+D;return B<e.length?e[B]:null}function s(D,B){return{nextState:D,matchStack:L,syntaxStack:h,thenStack:m,tokenIndex:y,prev:B}}function o(D){m={nextState:D,matchStack:L,syntaxStack:h,prev:m}}function a(D){f=s(D,f)}function u(){L={type:xg,syntax:t.syntax,token:p,prev:L},r(),E=null,y>S&&(S=y)}function c(){h={syntax:t.syntax,opts:t.syntax.opts||h!==null&&h.opts||null,prev:h},L={type:Ss,syntax:t.syntax,token:L.token,prev:L}}function d(){L.type===Ss?L=L.prev:L={type:Du,syntax:h.syntax,token:L.token,prev:L},h=h.prev}let h=null,m=null,f=null,E=null,g=0,_=null,p=null,y=-1,S=0,L={type:Cg,syntax:null,token:null,prev:null};for(r();_===null&&++g<Bu;)switch(t.type){case"Match":if(m===null){if(p!==null&&(y!==e.length-1||p.value!=="\\0"&&p.value!=="\\9")){t=Ae;break}_=Mu;break}if(t=m.nextState,t===ws)if(m.matchStack===L){t=Ae;break}else t=ke;for(;m.syntaxStack!==h;)d();m=m.prev;break;case"Mismatch":if(E!==null&&E!==!1)(f===null||y>f.tokenIndex)&&(f=E,E=!1);else if(f===null){_=Ng;break}t=f.nextState,m=f.thenStack,h=f.syntaxStack,L=f.matchStack,y=f.tokenIndex,p=y<e.length?e[y]:null,f=f.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Ae&&a(t.else),t.then!==ke&&o(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const C=t.syntax.terms;if(t.index===C.length){if(t.mask===0||t.syntax.all){t=Ae;break}t=ke;break}if(t.mask===(1<<C.length)-1){t=ke;break}for(;t.index<C.length;t.index++){const x=1<<t.index;if((t.mask&x)===0){a(t),o({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|x}),t=C[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(p!==null){let C=p.value.toLowerCase();if(C.indexOf("\\")!==-1&&(C=C.replace(/\\[09].*$/,"")),Pu.call(t.map,C)){t=t.map[C];break}}t=Ae;break;case"Generic":{const C=h!==null?h.opts:null,x=y+Math.floor(t.fn(p,i,C));if(!isNaN(x)&&x>y){for(;y<x;)u();t=ke}else t=Ae;break}case"Type":case"Property":{const C=t.type==="Type"?"types":"properties",x=Pu.call(n,C)?n[C][t.name]:null;if(!x||!x.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(E!==!1&&p!==null&&t.type==="Type"&&(t.name==="custom-ident"&&p.type===ne||t.name==="length"&&p.value==="0")){E===null&&(E=s(t,f)),t=Ae;break}c(),t=x.matchRef||x.match;break}case"Keyword":{const C=t.name;if(p!==null){let x=p.value;if(x.indexOf("\\")!==-1&&(x=x.replace(/\\[09].*$/,"")),Cs(x,C)){u(),t=ke;break}}t=Ae;break}case"AtKeyword":case"Function":if(p!==null&&Cs(p.value,t.name)){u(),t=ke;break}t=Ae;break;case"Token":if(p!==null&&p.value===t.value){u(),t=ke;break}t=Ae;break;case"Comma":p!==null&&p.type===it?Fu(L.token)?t=Ae:(u(),t=Uu(p)?Ae:ke):t=Fu(L.token)||Uu(p)?ke:Ae;break;case"String":let D="",B=y;for(;B<e.length&&D.length<t.value.length;B++)D+=e[B].value;if(Cs(D,t.value)){for(;y<B;)u();t=ke}else t=Ae;break;default:throw new Error("Unknown node type: "+t.type)}switch(_){case null:console.warn("[csstree-match] BREAK after "+Bu+" iterations"),_=Ig,L=null;break;case Mu:for(;h!==null;)d();break;default:L=null}return{tokens:e,reason:_,iterations:g,match:L,longestMatch:S}}function Hu(e,t,n){const r=Lg(e,t,n||{});if(r.match===null)return r;let i=r.match,s=r.match={syntax:t.syntax||null,match:[]};const o=[s];for(i=vg(i).prev;i!==null;){switch(i.type){case Ss:s.match.push(s={syntax:i.syntax,match:[]}),o.push(s);break;case Du:o.pop(),s=o[o.length-1];break;default:s.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return r}function zu(e){function t(i){return i===null?!1:i.type==="Type"||i.type==="Property"||i.type==="Keyword"}function n(i){if(Array.isArray(i.match)){for(let s=0;s<i.match.length;s++)if(n(i.match[s]))return t(i.syntax)&&r.unshift(i.syntax),!0}else if(i.node===e)return r=t(i.syntax)?[i.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function Rg(e,t){return xs(this,e,n=>n.type==="Type"&&n.name===t)}function Pg(e,t){return xs(this,e,n=>n.type==="Property"&&n.name===t)}function Dg(e){return xs(this,e,t=>t.type==="Keyword")}function xs(e,t,n){const r=zu.call(e,t);return r===null?!1:r.some(n)}const Mg=Object.freeze(Object.defineProperty({__proto__:null,getTrace:zu,isKeyword:Dg,isProperty:Pg,isType:Rg},Symbol.toStringTag,{value:"Module"}));function $u(e){return"node"in e?e.node:$u(e.match[0])}function ju(e){return"node"in e?e.node:ju(e.match[e.match.length-1])}function qu(e,t,n,r,i){function s(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===i){const u=$u(a),c=ju(a);e.syntax.walk(t,function(d,h,m){if(d===u){const f=new $e;do{if(f.appendData(h.data),h.data===c)break;h=h.next}while(h!==null);o.push({parent:m,nodes:f})}})}Array.isArray(a.match)&&a.match.forEach(s)}const o=[];return n.matched!==null&&s(n.matched),o}const{hasOwnProperty:Zn}=Object.prototype;function Ns(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Yu(e){return!!e&&Ns(e.offset)&&Ns(e.line)&&Ns(e.column)}function Bg(e,t){return function(r,i){if(!r||r.constructor!==Object)return i(r,"Type of node should be an Object");for(let s in r){let o=!0;if(Zn.call(r,s)!==!1){if(s==="type")r.type!==e&&i(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if(s==="loc"){if(r.loc===null)continue;if(r.loc&&r.loc.constructor===Object)if(typeof r.loc.source!="string")s+=".source";else if(!Yu(r.loc.start))s+=".start";else if(!Yu(r.loc.end))s+=".end";else continue;o=!1}else if(t.hasOwnProperty(s)){o=!1;for(let a=0;!o&&a<t[s].length;a++){const u=t[s][a];switch(u){case String:o=typeof r[s]=="string";break;case Boolean:o=typeof r[s]=="boolean";break;case null:o=r[s]===null;break;default:typeof u=="string"?o=r[s]&&r[s].type===u:Array.isArray(u)&&(o=r[s]instanceof $e)}}}else i(r,"Unknown field `"+s+"` for "+e+" node type");o||i(r,"Bad value for `"+e+"."+s+"`")}}for(const s in t)Zn.call(t,s)&&Zn.call(r,s)===!1&&i(r,"Field `"+e+"."+s+"` is missed")}}function Wu(e,t){const n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i===String||i===Boolean)n.push(i.name.toLowerCase());else if(i===null)n.push("null");else if(typeof i=="string")n.push(i);else if(Array.isArray(i))n.push("List<"+(Wu(i,t)||"any")+">");else throw new Error("Wrong value `"+i+"` in `"+t+"` structure definition")}return n.join(" | ")}function Fg(e,t){const n=t.structure,r={type:String,loc:!0},i={type:'"'+e+'"'};for(const s in n){if(Zn.call(n,s)===!1)continue;const o=r[s]=Array.isArray(n[s])?n[s].slice():[n[s]];i[s]=Wu(o,e+"."+s)}return{docs:i,check:Bg(e,r)}}function Ug(e){const t={};if(e.node){for(const n in e.node)if(Zn.call(e.node,n)){const r=e.node[n];if(r.structure)t[n]=Fg(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function Is(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:ns(e[i].syntax,{compact:t}));return r}function Hg(e,t,n){const r={};for(const[i,s]of Object.entries(e))r[i]={prelude:s.prelude&&(n?s.prelude.syntax:ns(s.prelude.syntax,{compact:t})),descriptors:s.descriptors&&Is(s.descriptors,t,n)};return r}function zg(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function $g(e){const t=e.terms[0];return e.explicit===!1&&e.terms.length===1&&t.type==="Multiplier"&&t.comma===!0}function Tt(e,t,n){return{matched:e,iterations:n,error:t,...Mg}}function Tn(e,t,n,r){const i=kg(n,e.syntax);let s;return zg(i)?Tt(null,new Error("Matching for a tree with var() is not supported")):(r&&(s=Hu(i,e.cssWideKeywordsSyntax,e)),(!r||!s.match)&&(s=Hu(i,t.match,e),!s.match)?Tt(null,new wm(s.reason,t.syntax,n,s),s.iterations):Tt(s.match,null,s.iterations))}class Gu{constructor(t,n,r){if(this.cssWideKeywords=ss,this.syntax=n,this.generic=!1,this.units={...Eu},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||Ug(t),t){if(t.cssWideKeywords&&(this.cssWideKeywords=t.cssWideKeywords),t.units)for(const i of Object.keys(Eu))Array.isArray(t.units[i])&&(this.units[i]=t.units[i]);if(t.types)for(const[i,s]of Object.entries(t.types))this.addType_(i,s);if(t.generic){this.generic=!0;for(const[i,s]of Object.entries(Qm(this.units)))this.addType_(i,s)}if(t.atrules)for(const[i,s]of Object.entries(t.atrules))this.addAtrule_(i,s);if(t.properties)for(const[i,s]of Object.entries(t.properties))this.addProperty_(i,s)}this.cssWideKeywordsSyntax=$r(this.cssWideKeywords.join(" | "))}checkStructure(t){function n(s,o){i.push({node:s,message:o})}const r=this.structure,i=[];return this.syntax.walk(t,function(s){r.hasOwnProperty(s.type)?r[s.type].check(s,n):n(s,"Unknown node type `"+s.type+"`")}),i.length?i:!1}createDescriptor(t,n,r,i=null){const s={type:n,name:r},o={type:n,name:r,parent:i,serializable:typeof t=="string"||t&&typeof t.type=="string",syntax:null,match:null,matchRef:null};return typeof t=="function"?o.match=$r(t,s):(typeof t=="string"?Object.defineProperty(o,"syntax",{get(){return Object.defineProperty(o,"syntax",{value:vu(t)}),o.syntax}}):o.syntax=t,Object.defineProperty(o,"match",{get(){return Object.defineProperty(o,"match",{value:$r(o.syntax,s)}),o.match}}),n==="Property"&&Object.defineProperty(o,"matchRef",{get(){const a=o.syntax,u=$g(a)?$r({...a,terms:[a.terms[0].term]},s):null;return Object.defineProperty(o,"matchRef",{value:u}),u}})),o}addAtrule_(t,n){n&&(this.atrules[t]={type:"Atrule",name:t,prelude:n.prelude?this.createDescriptor(n.prelude,"AtrulePrelude",t):null,descriptors:n.descriptors?Object.keys(n.descriptors).reduce((r,i)=>(r[i]=this.createDescriptor(n.descriptors[i],"AtruleDescriptor",i,t),r),Object.create(null)):null})}addProperty_(t,n){n&&(this.properties[t]=this.createDescriptor(n,"Property",t))}addType_(t,n){n&&(this.types[t]=this.createDescriptor(n,"Type",t))}checkAtruleName(t){if(!this.getAtrule(t))return new Yn("Unknown at-rule","@"+t)}checkAtrulePrelude(t,n){const r=this.checkAtruleName(t);if(r)return r;const i=this.getAtrule(t);if(!i.prelude&&n)return new SyntaxError("At-rule `@"+t+"` should not contain a prelude");if(i.prelude&&!n&&!Tn(this,i.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+t+"` should contain a prelude")}checkAtruleDescriptorName(t,n){const r=this.checkAtruleName(t);if(r)return r;const i=this.getAtrule(t),s=rs(n);if(!i.descriptors)return new SyntaxError("At-rule `@"+t+"` has no known descriptors");if(!i.descriptors[s.name]&&!i.descriptors[s.basename])return new Yn("Unknown at-rule descriptor",n)}checkPropertyName(t){if(!this.getProperty(t))return new Yn("Unknown property",t)}matchAtrulePrelude(t,n){const r=this.checkAtrulePrelude(t,n);if(r)return Tt(null,r);const i=this.getAtrule(t);return i.prelude?Tn(this,i.prelude,n||"",!1):Tt(null,null)}matchAtruleDescriptor(t,n,r){const i=this.checkAtruleDescriptorName(t,n);if(i)return Tt(null,i);const s=this.getAtrule(t),o=rs(n);return Tn(this,s.descriptors[o.name]||s.descriptors[o.basename],r,!1)}matchDeclaration(t){return t.type!=="Declaration"?Tt(null,new Error("Not a Declaration node")):this.matchProperty(t.property,t.value)}matchProperty(t,n){if(uu(t).custom)return Tt(null,new Error("Lexer matching doesn't applicable for custom properties"));const r=this.checkPropertyName(t);return r?Tt(null,r):Tn(this,this.getProperty(t),n,!0)}matchType(t,n){const r=this.getType(t);return r?Tn(this,r,n,!1):Tt(null,new Yn("Unknown type",t))}match(t,n){return typeof t!="string"&&(!t||!t.type)?Tt(null,new Yn("Bad syntax")):((typeof t=="string"||!t.match)&&(t=this.createDescriptor(t,"Type","anonymous")),Tn(this,t,n,!1))}findValueFragments(t,n,r,i){return qu(this,n,this.matchProperty(t,n),r,i)}findDeclarationValueFragments(t,n,r){return qu(this,t.value,this.matchDeclaration(t),n,r)}findAllFragments(t,n,r){const i=[];return this.syntax.walk(t,{visit:"Declaration",enter:s=>{i.push.apply(i,this.findDeclarationValueFragments(s,n,r))}}),i}getAtrule(t,n=!0){const r=rs(t);return(r.vendor&&n?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(t,n=!0){const r=this.getAtrule(t,n);return r&&r.prelude||null}getAtruleDescriptor(t,n){return this.atrules.hasOwnProperty(t)&&this.atrules.declarators&&this.atrules[t].declarators[n]||null}getProperty(t,n=!0){const r=uu(t);return(r.vendor&&n?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(t){return hasOwnProperty.call(this.types,t)?this.types[t]:null}validate(){function t(u,c){return c?`<${u}>`:`<'${u}'>`}function n(u,c,d,h){if(d.has(c))return d.get(c);d.set(c,!1),h.syntax!==null&&yg(h.syntax,function(m){if(m.type!=="Type"&&m.type!=="Property")return;const f=m.type==="Type"?u.types:u.properties,E=m.type==="Type"?i:s;hasOwnProperty.call(f,m.name)?n(u,m.name,E,f[m.name])&&(r.push(`${t(c,d===i)} used broken syntax definition ${t(m.name,m.type==="Type")}`),d.set(c,!0)):(r.push(`${t(c,d===i)} used missed syntax definition ${t(m.name,m.type==="Type")}`),d.set(c,!0))},this)}const r=[];let i=new Map,s=new Map;for(const u in this.types)n(this,u,i,this.types[u]);for(const u in this.properties)n(this,u,s,this.properties[u]);const o=[...i.keys()].filter(u=>i.get(u)),a=[...s.keys()].filter(u=>s.get(u));return o.length||a.length?{errors:r,types:o,properties:a}:null}dump(t,n){return{generic:this.generic,cssWideKeywords:this.cssWideKeywords,units:this.units,types:Is(this.types,!n,t),properties:Is(this.properties,!n,t),atrules:Hg(this.atrules,!n,t)}}toString(){return JSON.stringify(this.dump())}}function vs(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function jg(e,t){const n=Object.create(null);for(const r of Object.keys(e))t.includes(r)&&(n[r]=e[r]);return n}function Os(e,t,n){const r={...e};for(const[i,s]of Object.entries(t))r[i]={...r[i],...n?jg(s,n):s};return r}function Ls(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=!!i;break;case"cssWideKeywords":n[r]=e[r]?[...e[r],...i]:i||[];break;case"units":n[r]={...e[r]};for(const[s,o]of Object.entries(i))n[r][s]=Array.isArray(o)?o:[];break;case"atrules":n[r]={...e[r]};for(const[s,o]of Object.entries(i)){const a=n[r][s]||{},u=n[r][s]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(o){u.prelude=o.prelude?vs(u.prelude,o.prelude):u.prelude||null;for(const[c,d]of Object.entries(o.descriptors||{}))u.descriptors[c]=d?vs(u.descriptors[c],d):null;Object.keys(u.descriptors).length||(u.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[s,o]of Object.entries(i))n[r][s]=vs(n[r][s],o);break;case"parseContext":n[r]={...e[r],...i};break;case"scope":case"features":n[r]=Os(e[r],i);break;case"atrule":case"pseudo":n[r]=Os(e[r],i,["parse"]);break;case"node":n[r]=Os(e[r],i,["name","structure","parse","generate","walkContext"]);break}return n}function Vu(e){const t=Z0(e),n=bm(e),r=fm(e),{fromPlainObject:i,toPlainObject:s}=pm(n),o={lexer:null,createLexer:a=>new Gu(a,o,o.lexer.structure),tokenize:xr,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:s,fork(a){const u=Ls({},e);return Vu(typeof a=="function"?a(u):Ls(u,a))}};return o.lexer=new Gu({generic:e.generic,cssWideKeywords:e.cssWideKeywords,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},o),o}const qg=e=>Vu(Ls({},e)),Yg={generic:!0,cssWideKeywords:["initial","inherit","unset","revert","revert-layer"],units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","an+b":"odd|even|<integer>|<n-dimension>|'+'? † n|-n|<ndashdigit-dimension>|'+'? † <ndashdigit-ident>|<dashndashdigit-ident>|<n-dimension> <signed-integer>|'+'? † n <signed-integer>|-n <signed-integer>|<ndash-dimension> <signless-integer>|'+'? † n- <signless-integer>|-n- <signless-integer>|<n-dimension> ['+'|'-'] <signless-integer>|'+'? † n ['+'|'-'] <signless-integer>|-n ['+'|'-'] <signless-integer>","anchor()":"anchor( <anchor-name>?&&<anchor-side> , <length-percentage>? )","anchor-name":"<dashed-ident>","anchor-side":"inside|outside|top|left|right|bottom|start|end|self-start|self-end|<percentage>|center","anchor-size":"width|height|block|inline|self-block|self-inline","anchor-size()":"anchor-size( [<anchor-name>||<anchor-size>]? , <length-percentage>? )","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>|<zero>","angular-color-stop":"<color> <color-stop-angle>?","angular-color-stop-list":"<angular-color-stop> , [<angular-color-hint>? , <angular-color-stop>]#?","animateable-feature":"scroll-position|contents|<custom-ident>","animation-action":"none|play|play-once|play-forwards|play-backwards|pause|reset|replay","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <attr-type>? , <declaration-value>? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attr-type":"type( <syntax> )|raw-string|number|<attr-unit>","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|x|y","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<xywh()>|<rect()>|<circle()>|<ellipse()>|<polygon()>|<path()>","basic-shape-rect":"<inset()>|<rect()>|<xywh()>","bg-clip":"<visual-box>|border-area|text","bg-image":"<image>|none","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<visual-box>||<visual-box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage [0,∞]>|auto]{1,2}|cover|contain","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity","blur()":"blur( <length>? )","brightness()":"brightness( [<number>|<percentage>]? )","calc()":"calc( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-size()":"calc-size( <calc-size-basis> , <calc-sum> )","calc-size-basis":"<intrinsic-size-keyword>|<calc-size()>|any|<calc-sum>","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( <radial-size>? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<color-base>|currentColor|<system-color>|<device-cmyk()>|<light-dark()>|<-non-standard-color>","color()":"color( <colorspace-params> [/ [<alpha-value>|none]]? )","color-base":"<hex-color>|<color-function>|<named-color>|<color-mix()>|transparent","color-function":"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>","color-interpolation-method":"in [<rectangular-color-space>|<polar-color-space> <hue-interpolation-method>?|<custom-color-space>]","color-mix()":"color-mix( <color-interpolation-method> , [<color>&&<percentage [0,100]>?]#{2} )","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"[<angle-percentage>|<zero>]{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"<linear-color-stop> , [<linear-color-hint>? , <linear-color-stop>]#?","colorspace-params":"[<predefined-rgb-params>|<xyz-params>]",combinator:"'>'|'+'|'~'|['|' '|']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|checkbox|radio|menulist|listbox|meter|progress-bar|button","compat-special":"textfield|menulist-button","complex-selector":"<complex-selector-unit> [<combinator>? <complex-selector-unit>]*","complex-selector-list":"<complex-selector>#","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>*]!","compound-selector-list":"<compound-selector>#","conic-gradient()":"conic-gradient( [<conic-gradient-syntax>] )","conic-gradient-syntax":"[[[from [<angle>|<zero>]]? [at <position>]?]||<color-interpolation-method>]? , <angular-color-stop-list>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","container-name":"<custom-ident>","container-query":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contextual-alt-values":"[contextual|no-contextual]","contrast()":"contrast( [<number>|<percentage>]? )","coord-box":"content-box|padding-box|border-box|fill-box|stroke-box|view-box","corner-shape-value":"round|scoop|bevel|notch|square|squircle|<superellipse()>","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier()":"cubic-bezier( [<number [0,1]> , <number>]#{2} )","cubic-bezier-easing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","cursor-predefined":"auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing","custom-color-space":"<dashed-ident>","custom-params":"<dashed-ident> [<number>|<percentage>|none]+",dasharray:"[[<length-percentage>|<number>]+]#","dashndashdigit-ident":"<ident-token>","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonHighlight|ButtonShadow|CaptionText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( [<color>?&&<length>{2,3}] )","dynamic-range-limit-mix()":"dynamic-range-limit-mix( [<'dynamic-range-limit'>&&<percentage [0,100]>]#{2,} )","easing-function":"<linear-easing-function>|<cubic-bezier-easing-function>|<step-easing-function>","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( <radial-size>? [at <position>]? )","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-value-list":"[<filter-function>|<url>]+","final-bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<visual-box>||<visual-box>||<'background-color'>","fit-content()":"fit-content( <length-percentage [0,∞]> )","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css2":"normal|small-caps","font-weight-absolute":"normal|bold|<number [1,1000]>","font-width-css3":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded","form-control-identifier":"select","frequency-percentage":"<frequency>|<percentage>","generic-complete":"serif|sans-serif|system-ui|cursive|fantasy|math|monospace","general-enclosed":"[<function-token> <any-value>? )]|[( <any-value>? )]","generic-family":"<generic-script-specific>|<generic-complete>|<generic-incomplete>|<-non-standard-generic-family>","generic-incomplete":"ui-serif|ui-sans-serif|ui-monospace|ui-rounded","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( [<number>|<percentage>]? )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )|hsl( [<hue>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","hsla()":"hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )|hsla( [<hue>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )",hue:"<number>|<angle>","hue-interpolation-method":"[shorter|longer|increasing|decreasing] hue","hue-rotate()":"hue-rotate( [<angle>|<zero>]? )","hwb()":"hwb( [<hue>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( [<number>|<percentage>]? )","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-selector":"from|to|<percentage [0,100]>|<timeline-range-name> <percentage>","keyframes-name":"<custom-ident>|<string>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","light-dark()":"light-dark( <color> , <color> )","line-name-list":"[<line-names>|<name-repeat>]+","line-names":"'[' <custom-ident>* ']'","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear()":"linear( [<number>&&<percentage>{0,2}]# )","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-easing-function":"linear|<linear()>","linear-gradient()":"linear-gradient( [<linear-gradient-syntax>] )","linear-gradient-syntax":"[[<angle>|<zero>|to <side-or-corner>]||<color-interpolation-method>]? , <color-stop-list>","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","n-dimension":"<dimension-token>","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","named-color":"aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen","namespace-prefix":"<ident>","ndash-dimension":"<dimension-token>","ndashdigit-dimension":"<dimension-token>","ndashdigit-ident":"<ident-token>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]","offset-path":"<ray()>|<url>|<basic-shape>","oklab()":"oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","oklch()":"oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","opacity()":"opacity( [<number>|<percentage>]? )","opacity-value":"<number>|<percentage>","outline-line-style":"none|dotted|dashed|solid|double|groove|ridge|inset|outset","outline-radius":"<length>|<percentage>","overflow-position":"unsafe|safe","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-selector-list":"[<page-selector>#]?","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","paint()":"paint( <ident> , <declaration-value>? )","paint-box":"<visual-box>|fill-box|stroke-box","palette-identifier":"<dashed-ident>","palette-mix()":"palette-mix( <color-interpolation-method> , [[normal|light|dark|<palette-identifier>|<palette-mix()>]&&<percentage [0,100]>?]#{2} )","path()":"path( <'fill-rule'>? , <string> )","perspective()":"perspective( [<length [0,∞]>|none] )","polar-color-space":"hsl|hwb|lch|oklch","polygon()":"polygon( <'fill-rule'>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","position-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|center|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|center|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]","pow()":"pow( <calc-sum> , <calc-sum> )","predefined-rgb":"srgb|srgb-linear|display-p3|display-p3-linear|a98-rgb|prophoto-rgb|rec2020","predefined-rgb-params":"<predefined-rgb> [<number>|<percentage>|none]{3}","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>|<legacy-pseudo-element-selector>","pseudo-page":": [left|right|first|blank]","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-extent":"closest-corner|closest-side|farthest-corner|farthest-side","radial-gradient()":"radial-gradient( [<radial-gradient-syntax>] )","radial-gradient-syntax":"[[[<radial-shape>||<radial-size>]? [at <position>]?]||<color-interpolation-method>]? , <color-stop-list>","radial-shape":"circle|ellipse","radial-size":"<radial-extent>|<length [0,∞]>|<length-percentage [0,∞]>{2}",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","ray()":"ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","rect()":"rect( [<length-percentage>|auto]{4} [round <'border-radius'>]? )","rectangular-color-space":"srgb|srgb-linear|display-p3|display-p3-linear|a98-rgb|prophoto-rgb|rec2020|lab|oklab|xyz|xyz-d50|xyz-d65","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [<conic-gradient-syntax>] )","repeating-linear-gradient()":"repeating-linear-gradient( [<linear-gradient-syntax>] )","repeating-radial-gradient()":"repeating-radial-gradient( [<radial-gradient-syntax>] )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )|rgb( [<number>|<percentage>|none]{3} [/ [<alpha-value>|none]]? )","rgba()":"rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )|rgba( [<number>|<percentage>|none]{3} [/ [<alpha-value>|none]]? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( [<number>|<percentage>]? )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )","scope-end":"<forgiving-selector-list>","scope-start":"<forgiving-selector-list>","scroll()":"scroll( [<scroller>||<axis>]? )",scroller:"root|nearest|self","scroll-state-feature":"<media-query-list>","scroll-state-in-parens":"( <scroll-state-query> )|( <scroll-state-feature> )|<general-enclosed>","scroll-state-query":"not <scroll-state-in-parens>|<scroll-state-in-parens> [[and <scroll-state-in-parens>]*|[or <scroll-state-in-parens>]*]|<scroll-state-feature>","selector-list":"<complex-selector-list>","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","sepia()":"sepia( [<number>|<percentage>]? )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<visual-box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sign()":"sign( <calc-sum> )","signed-integer":"<number-token>","signless-integer":"<number-token>","sin()":"sin( <calc-sum> )","single-animation":"<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>","single-animation-composition":"replace|add|accumulate","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<dashed-ident>|<scroll()>|<view()>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>||<transition-behavior-value>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-easing-function":"step-start|step-end|<steps()>","steps()":"steps( <integer> , <step-position>? )","style-feature":"<declaration>","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","style-query":"<style-condition>|<style-feature>","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","superellipse()":"superellipse( [<number>|infinity|-infinity] )","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-decl":"( <declaration> )","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","symbols()":"symbols( <symbols-type>? [<string>|<image>]+ )","symbols-type":"cyclic|numeric|alphabetic|symbolic|fixed","system-color":"AccentColor|AccentColorText|ActiveText|ButtonBorder|ButtonFace|ButtonText|Canvas|CanvasText|Field|FieldText|GrayText|Highlight|HighlightText|LinkText|Mark|MarkText|SelectedItem|SelectedItemText|VisitedText","system-family-name":"caption|icon|menu|message-box|small-caption|status-bar","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","text-edge":"[text|cap|ex|ideographic|ideographic-ink] [text|alphabetic|ideographic|ideographic-ink]?","time-percentage":"<time>|<percentage>","timeline-range-name":"cover|contain|entry|exit|entry-crossing|exit-crossing","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","transition-behavior-value":"normal|allow-discrete","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","try-size":"most-width|most-height|most-block-size|most-inline-size","try-tactic":"flip-block||flip-inline||flip-start","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","view()":"view( [<axis>||<'view-timeline-inset'>]? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","xywh()":"xywh( <length-percentage>{2} <length-percentage [0,∞]>{2} [round <'border-radius'>]? )",xyz:"xyz|xyz-d50|xyz-d65","xyz-params":"<xyz-space> [<number>|<percentage>|none]{3}","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-size":"intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>",autospace:"no-autospace|[ideograph-alpha||ideograph-numeric||punctuation]||[insert|replace]",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral","generic-script-specific":"generic( kai )|generic( fangsong )|generic( nastaliq )","-non-standard-generic-family":"-apple-system|BlinkMacSystemFont","intrinsic-size-keyword":"min-content|max-content|fit-content",left:"<length>|auto","device-cmyk()":"<legacy-device-cmyk-syntax>|<modern-device-cmyk-syntax>","legacy-device-cmyk-syntax":"device-cmyk( <number>#{4} )","modern-device-cmyk-syntax":"device-cmyk( <cmyk-component>{4} [/ [<alpha-value>|none]]? )","cmyk-component":"<number>|<percentage>|none","color-space":"<rectangular-color-space>|<polar-color-space>|<custom-color-space>",right:"<length>|auto","forgiving-selector-list":"<complex-real-selector-list>","forgiving-relative-selector-list":"<relative-real-selector-list>","complex-real-selector-list":"<complex-real-selector>#","simple-selector-list":"<simple-selector>#","relative-real-selector-list":"<relative-real-selector>#","complex-selector-unit":"[<compound-selector>? <pseudo-compound-selector>*]!","complex-real-selector":"<compound-selector> [<combinator>? <compound-selector>]*","relative-real-selector":"<combinator>? <complex-real-selector>","pseudo-compound-selector":"<pseudo-element-selector> <pseudo-class-selector>*","simple-selector":"<type-selector>|<subclass-selector>","legacy-pseudo-element-selector":"':' [before|after|first-line|first-letter]","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","xyz-space":"xyz|xyz-d50|xyz-d65","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box","inset-area":"[[left|center|right|span-left|span-right|x-start|x-end|span-x-start|span-x-end|x-self-start|x-self-end|span-x-self-start|span-x-self-end|span-all]||[top|center|bottom|span-top|span-bottom|y-start|y-end|span-y-start|span-y-end|y-self-start|y-self-end|span-y-self-start|span-y-self-end|span-all]|[block-start|center|block-end|span-block-start|span-block-end|span-all]||[inline-start|center|inline-end|span-inline-start|span-inline-end|span-all]|[self-block-start|self-block-end|span-self-block-start|span-self-block-end|span-all]||[self-inline-start|self-inline-end|span-self-inline-start|span-self-inline-end|span-all]|[start|center|end|span-start|span-end|span-all]{1,2}|[self-start|center|self-end|span-self-start|span-self-end|span-all]{1,2}]",syntax:"'*'|<syntax-component> [<syntax-combinator> <syntax-component>]*|<syntax-string>","syntax-component":"<syntax-single-component> <syntax-multiplier>?|'<' transform-list '>'","syntax-single-component":"'<' <syntax-type-name> '>'|<ident>","syntax-type-name":"angle|color|custom-ident|image|integer|length|length-percentage|number|percentage|resolution|string|time|url|transform-function","syntax-combinator":"'|'","syntax-multiplier":"'#'|'+'","syntax-string":"<string>"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-content-zooming":"none|zoom","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<visual-box>|border|padding|content|text]||[<visual-box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<coord-box>|no-clip|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<coord-box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","-webkit-user-select":"auto|none|text|all","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]|anchor-center","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>|anchor-center","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical",all:"initial|inherit|unset|revert|revert-layer","anchor-name":"none|<dashed-ident>#","anchor-scope":"none|all|<dashed-ident>#",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"[auto|<time [0s,∞]>]#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-range":"[<'animation-range-start'> <'animation-range-end'>?]#","animation-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-timeline":"<single-animation-timeline>#","animation-timing-function":"<easing-function>#","animation-trigger":"[none|[<dashed-ident> <animation-action>+]+]#",appearance:"none|auto|<compat-auto>|<compat-special>","aspect-ratio":"auto||<ratio>","backdrop-filter":"none|<filter-value-list>","backface-visibility":"visible|hidden",background:"<bg-layer>#? , <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<visual-box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","baseline-shift":"baseline|sub|super|<svg-length>","baseline-source":"auto|first|last","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-block-start'>","border-block-color":"<'border-top-color'>{1,2}","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-block-style":"<'border-top-style'>{1,2}","border-block-width":"<'border-top-width'>{1,2}","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage [0,∞]>{1,2}","border-bottom-right-radius":"<length-percentage [0,∞]>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"separate|collapse","border-color":"<color>{1,4}","border-end-end-radius":"<'border-top-left-radius'>","border-end-start-radius":"<'border-top-left-radius'>","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length [0,∞]>|<number [0,∞]>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"[<number [0,∞]>|<percentage [0,∞]>]{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage [0,∞]>|<number [0,∞]>|auto]{1,4}","border-inline":"<'border-block-start'>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-inline-style":"<'border-top-style'>{1,2}","border-inline-width":"<'border-top-width'>{1,2}","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage [0,∞]>{1,4} [/ <length-percentage [0,∞]>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length>{1,2}","border-start-end-radius":"<'border-top-left-radius'>","border-start-start-radius":"<'border-top-left-radius'>","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage [0,∞]>{1,2}","border-top-right-radius":"<length-percentage [0,∞]>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"auto|<length-percentage>|<anchor()>|<anchor-size()>","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom",caret:"<'caret-color'>||<'caret-animation'>||<'caret-shape'>","caret-animation":"auto|manual","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none","clip-rule":"nonzero|evenodd",color:"<color>","color-interpolation-filters":"auto|sRGB|linearRGB","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance","column-gap":"normal|<length-percentage>","column-height":"auto|<length [0,∞]>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"auto|<length [0,∞]>","column-wrap":"auto|nowrap|wrap",columns:"[<'column-width'>||<'column-count'>] [/ <'column-height'>]?",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-block-size":"auto? [none|<length>]","contain-intrinsic-height":"auto? [none|<length>]","contain-intrinsic-inline-size":"auto? [none|<length>]","contain-intrinsic-size":"[auto? [none|<length>]]{1,2}","contain-intrinsic-width":"auto? [none|<length>]",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>|<attr()>]+]?","content-visibility":"visible|auto|hidden","corner-block-end-shape":"<corner-shape-value>{1,2}","corner-block-start-shape":"<corner-shape-value>{1,2}","corner-bottom-shape":"<corner-shape-value>{1,2}","corner-bottom-left-shape":"<corner-shape-value>","corner-bottom-right-shape":"<corner-shape-value>","corner-end-end-shape":"<corner-shape-value>","corner-end-start-shape":"<corner-shape-value>","corner-inline-end-shape":"<corner-shape-value>{1,2}","corner-inline-start-shape":"<corner-shape-value>{1,2}","corner-left-shape":"<corner-shape-value>{1,2}","corner-right-shape":"<corner-shape-value>{1,2}","corner-shape":"<corner-shape-value>{1,4}","corner-start-start-shape":"<corner-shape-value>","corner-start-end-shape":"<corner-shape-value>","corner-top-shape":"<corner-shape-value>{1,2}","corner-top-left-shape":"<corner-shape-value>","corner-top-right-shape":"<corner-shape-value>","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",cx:"<length>|<percentage>",cy:"<length>|<percentage>",d:"none|path( <string> )",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge","dynamic-range-limit":"standard|no-limit|constrained|<dynamic-range-limit-mix()>","empty-cells":"show|hide","field-sizing":"content|fixed",fill:"<paint>","fill-opacity":"<number-zero-one>|<percentage>","fill-rule":"nonzero|evenodd",filter:"none|<filter-value-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end","flood-color":"<color>","flood-opacity":"<'opacity'>",font:"[[<'font-style'>||<font-variant-css2>||<'font-weight'>||<font-width-css3>]? <'font-size'> [/ <'line-height'>]? <'font-family'>#]|<system-family-name>|<-non-standard-font>","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-palette":"normal|light|dark|<palette-identifier>|<palette-mix()>","font-size":"<absolute-size>|<relative-size>|<length-percentage [0,∞]>|math","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps||position]","font-synthesis-position":"auto|none","font-synthesis-small-caps":"auto|none","font-synthesis-style":"auto|none","font-synthesis-weight":"auto|none","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-emoji":"normal|text|emoji|unicode","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-variation-settings":"normal|[<string> <number>]#","font-weight":"<font-weight-absolute>|bolder|lighter","font-width":"normal|<percentage [0,∞]>|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded","forced-color-adjust":"auto|none|preserve-parent-color",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","hyphenate-character":"auto|<string>","hyphenate-limit-chars":"[auto|<integer>]{1,3}",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|smooth|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>","interpolate-size":"numeric-only|allow-keywords",isolation:"auto|isolate",interactivity:"auto|inert","interest-delay":"<'interest-delay-start'>{1,2}","interest-delay-end":"normal|<time>","interest-delay-start":"normal|<time>","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]|anchor-center","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|anchor-center","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"auto|<length-percentage>|<anchor()>|<anchor-size()>","letter-spacing":"normal|<length-percentage>","lighting-color":"<color>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"<'margin-top'>{1,4}","margin-block":"<'margin-top'>{1,2}","margin-block-end":"<'margin-top'>","margin-block-start":"<'margin-top'>","margin-bottom":"<length-percentage>|auto|<anchor-size()>","margin-inline":"<'margin-top'>{1,2}","margin-inline-end":"<'margin-top'>","margin-inline-start":"<'margin-top'>","margin-left":"<length-percentage>|auto|<anchor-size()>","margin-right":"<length-percentage>|auto|<anchor-size()>","margin-top":"<length-percentage>|auto|<anchor-size()>","margin-trim":"none|in-flow|all",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<coord-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<coord-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","min-block-size":"<'min-width'>","min-height":"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","min-inline-size":"<'min-width'>","min-width":"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","mix-blend-mode":"<blend-mode>|plus-darker|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>","object-view-box":"none|<basic-shape-rect>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|<offset-path>||<coord-box>","offset-position":"normal|auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<opacity-value>",order:"<integer>",orphans:"<integer>",outline:"<'outline-width'>||<'outline-style'>||<'outline-color'>","outline-color":"auto|<color>","outline-offset":"<length>","outline-style":"auto|<outline-line-style>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>","overflow-y":"visible|hidden|clip|scroll|auto|<-non-standard-overflow>",overlay:"none|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"<'padding-top'>{1,4}","padding-block":"<'padding-top'>{1,2}","padding-block-end":"<'padding-top'>","padding-block-start":"<'padding-top'>","padding-bottom":"<length-percentage [0,∞]>","padding-inline":"<'padding-top'>{1,2}","padding-inline-end":"<'padding-top'>","padding-inline-start":"<'padding-top'>","padding-left":"<length-percentage [0,∞]>","padding-right":"<length-percentage [0,∞]>","padding-top":"<length-percentage [0,∞]>",page:"auto|<custom-ident>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky","position-anchor":"auto|none|<anchor-name>","position-area":"none|<position-area>","position-try":"<'position-try-order'>? <'position-try-fallbacks'>","position-try-fallbacks":"none|[[<dashed-ident>||<try-tactic>]|<'position-area'>]#","position-try-order":"normal|<try-size>","position-visibility":"always|[anchors-valid||anchors-visible||no-overflow]","print-color-adjust":"economy|exact",quotes:"none|auto|[<string> <string>]+",r:"<length>|<percentage>","reading-flow":"normal|source-order|flex-visual|flex-flow|grid-rows|grid-columns|grid-order","reading-order":"<integer>",resize:"none|both|horizontal|vertical|block|inline",right:"auto|<length-percentage>|<anchor()>|<anchor-size()>",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-overhang":"auto|none","ruby-position":"[alternate||[over|under]]|inter-character",rx:"<length>|<percentage>",ry:"<length>|<percentage>",scale:"none|[<number>|<percentage>]{1,3}","scroll-behavior":"auto|smooth","scroll-initial-target":"none|nearest","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-end":"<length>","scroll-margin-block-start":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-end":"<length>","scroll-margin-inline-start":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-marker-group":"none|before|after","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-target-group":"none|auto","scroll-timeline":"[<'scroll-timeline-name'> <'scroll-timeline-axis'>?]#","scroll-timeline-axis":"[block|inline|x|y]#","scroll-timeline-name":"[none|<dashed-ident>]#","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","shape-image-threshold":"<opacity-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]","stop-color":"<'color'>","stop-opacity":"<'opacity'>",stroke:"<paint>","stroke-color":"<color>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<'opacity'>","stroke-width":"<svg-length>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-anchor":"start|middle|end","text-autospace":"normal|<autospace>|auto","text-box":"normal|<'text-box-trim'>||<'text-box-edge'>","text-box-edge":"auto|<text-edge>","text-box-trim":"none|trim-start|trim-end|trim-both","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-inset":"<length>{1,2}|auto","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"auto|[over|under]&&[right|left]?","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-spacing-trim":"space-all|normal|space-first|trim-start","text-transform":"none|[capitalize|uppercase|lowercase]||full-width||full-size-kana|math-auto","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]","text-wrap":"<'text-wrap-mode'>||<'text-wrap-style'>","text-wrap-mode":"wrap|nowrap","text-wrap-style":"auto|balance|stable|pretty","timeline-scope":"none|<dashed-ident>#","timeline-trigger":"none|[<'timeline-trigger-name'> <'timeline-trigger-source'> <'timeline-trigger-range'> ['/' <'timeline-trigger-exit-range'>]?]#","timeline-trigger-name":"none|<dashed-ident>#","timeline-trigger-exit-range":"[<'timeline-trigger-exit-range-start'> <'timeline-trigger-exit-range-end'>?]#","timeline-trigger-exit-range-end":"[auto|normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-exit-range-start":"[auto|normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-range":"[<'timeline-trigger-range-start'> <'timeline-trigger-range-end'>?]#","timeline-trigger-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","timeline-trigger-source":"<single-animation-timeline>#",top:"auto|<length-percentage>|<anchor()>|<anchor-size()>","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-behavior":"<transition-behavior-value>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","trigger-scope":"none|all|<dashed-ident>#","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|all","vector-effect":"none|non-scaling-stroke|non-scaling-size|non-rotation|fixed-position","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","view-timeline":"[<'view-timeline-name'> [<'view-timeline-axis'>||<'view-timeline-inset'>]?]#","view-timeline-axis":"[block|inline|x|y]#","view-timeline-inset":"[[auto|<length-percentage>]{1,2}]#","view-timeline-name":"[none|<dashed-ident>]#","view-transition-class":"none|<custom-ident>+","view-transition-name":"none|<custom-ident>|match-element",visibility:"visible|hidden|collapse","white-space":"normal|pre|pre-wrap|pre-line|<'white-space-collapse'>||<'text-wrap-mode'>","white-space-collapse":"collapse|preserve|preserve-breaks|preserve-spaces|break-spaces",widows:"<integer>",width:"auto|<length-percentage [0,∞]>|min-content|max-content|fit-content|fit-content( <length-percentage [0,∞]> )|<calc-size()>|<anchor-size()>|stretch|<-non-standard-size>","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word|auto-phrase","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>",x:"<length>|<percentage>",y:"<length>|<percentage>","z-index":"auto|<integer>",zoom:"normal|reset|<number [0,∞]>||<percentage [0,∞]>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<visual-box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto",behavior:"<url>+",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong","position-try-options":"<'position-try-fallbacks'>",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong",speak:"auto|never|always","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]","white-space-trim":"none|discard-before||discard-after||discard-inner"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer [0,∞]>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer [0,∞]>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"auto|block|swap|fallback|optional","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-variation-settings":"normal|[<string> <number>]#","font-weight":"<font-weight-absolute>{1,2}","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},"font-palette-values":{prelude:"<dashed-ident>",descriptors:{"base-palette":"light|dark|<integer [0,∞]>","font-family":"<family-name>#","override-colors":"[<integer [0,∞]> <color>]#"}},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]","page-orientation":"upright|rotate-left|rotate-right",size:"<length [0,∞]>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},"position-try":{prelude:"<dashed-ident>",descriptors:{top:"<'top'>",left:"<'left'>",bottom:"<'bottom'>",right:"<'right'>","inset-block-start":"<'inset-block-start'>","inset-block-end":"<'inset-block-end'>","inset-inline-start":"<'inset-inline-start'>","inset-inline-end":"<'inset-inline-end'>","inset-block":"<'inset-block'>","inset-inline":"<'inset-inline'>",inset:"<'inset'>","margin-top":"<'margin-top'>","margin-left":"<'margin-left'>","margin-bottom":"<'margin-bottom'>","margin-right":"<'margin-right'>","margin-block-start":"<'margin-block-start'>","margin-block-end":"<'margin-block-end'>","margin-inline-start":"<'margin-inline-start'>","margin-inline-end":"<'margin-inline-end'>",margin:"<'margin'>","margin-block":"<'margin-block'>","margin-inline":"<'margin-inline'>",width:"<'width'>",height:"<'height'>","min-width":"<'min-width'>","min-height":"<'min-height'>","max-width":"<'max-width'>","max-height":"<'max-height'>","block-size":"<'block-size'>","inline-size":"<'inline-size'>","min-block-size":"<'min-block-size'>","min-inline-size":"<'min-inline-size'>","max-block-size":"<'max-block-size'>","max-inline-size":"<'max-inline-size'>","align-self":"<'align-self'>|anchor-center","justify-self":"<'justify-self'>|anchor-center"}},property:{prelude:"<custom-property-name>",descriptors:{inherits:"true|false","initial-value":"<declaration-value>?",syntax:"<string>"}},scope:{prelude:"[( <scope-start> )]? [to ( <scope-end> )]?",descriptors:null},"starting-style":{prelude:null,descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},"view-transition":{prelude:null,descriptors:{navigation:"auto|none",types:"none|<custom-ident>+"}},"font-features-values":{prelude:"[<string>|<custom-ident>]+",descriptors:{"font-display":"auto|block|swap|fallback|optional"}}}},Ct=43,ut=45,jr=110,Qt=!0,Wg=!1;function qr(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for((r===Ct||r===ut)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)Ye(this.charCodeAt(n))||this.error("Integer is expected",n)}function _n(e){return qr.call(this,0,e)}function Yt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case jr:n="N is expected";break;case ut:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function Rs(){let e=0,t=0,n=this.tokenType;for(;n===Le||n===qe;)n=this.lookupType(++e);if(n!==fe)if(this.isDelim(Ct,e)||this.isDelim(ut,e)){t=this.isDelim(Ct,e)?Ct:ut;do n=this.lookupType(++e);while(n===Le||n===qe);n!==fe&&(this.skip(e),_n.call(this,Qt))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==Ct&&n!==ut&&this.error("Number sign is expected")),_n.call(this,t!==0),t===ut?"-"+this.consume(fe):this.consume(fe)}const Gg="AnPlusB",Vg={a:[String,null],b:[String,null]};function Ku(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===fe)_n.call(this,Wg),n=this.consume(fe);else if(this.tokenType===ne&&this.cmpChar(this.tokenStart,ut))switch(t="-1",Yt.call(this,1,jr),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Rs.call(this);break;case 3:Yt.call(this,2,ut),this.next(),this.skipSC(),_n.call(this,Qt),n="-"+this.consume(fe);break;default:Yt.call(this,2,ut),qr.call(this,3,Qt),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===ne||this.isDelim(Ct)&&this.lookupType(1)===ne){let r=0;switch(t="1",this.isDelim(Ct)&&(r=1,this.next()),Yt.call(this,0,jr),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Rs.call(this);break;case 2:Yt.call(this,1,ut),this.next(),this.skipSC(),_n.call(this,Qt),n="-"+this.consume(fe);break;default:Yt.call(this,1,ut),qr.call(this,2,Qt),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===be){const r=this.charCodeAt(this.tokenStart),i=r===Ct||r===ut;let s=this.tokenStart+i;for(;s<this.tokenEnd&&Ye(this.charCodeAt(s));s++);s===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),Yt.call(this,s-this.tokenStart,jr),t=this.substring(e,s),s+1===this.tokenEnd?(this.next(),n=Rs.call(this)):(Yt.call(this,s-this.tokenStart+1,ut),s+2===this.tokenEnd?(this.next(),this.skipSC(),_n.call(this,Qt),n="-"+this.consume(fe)):(qr.call(this,s-this.tokenStart+2,Qt),this.next(),n=this.substrToCursor(s+1)))}else this.error();return t!==null&&t.charCodeAt(0)===Ct&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===Ct&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function Kg(e){if(e.a){const t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){const n=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}const Xg=Object.freeze(Object.defineProperty({__proto__:null,generate:Kg,name:Gg,parse:Ku,structure:Vg},Symbol.toStringTag,{value:"Module"}));function Xu(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Qg(){for(let e=1,t;t=this.lookupType(e);e++){if(t===ot)return!0;if(t===ze||t===Be)return!1}return!1}const Zg="Atrule",Jg="atrule",eb={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Qu(e=!1){const t=this.tokenStart;let n,r,i=null,s=null;switch(this.eat(Be),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==ze&&this.tokenType!==Ke&&(this.parseAtrulePrelude?i=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),Xu):i=Xu.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case Ke:this.next();break;case ze:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?s=this.atrule[r].block.call(this,e):s=this.Block(Qg.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:s}}function tb(e){this.token(Be,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(Ke,";")}const nb=Object.freeze(Object.defineProperty({__proto__:null,generate:tb,name:Zg,parse:Qu,structure:eb,walkContext:Jg},Symbol.toStringTag,{value:"Module"})),rb="AtrulePrelude",ib="atrulePrelude",sb={children:[[]]};function Zu(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?t=this.atrule[e].prelude.call(this):t=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==ze&&this.tokenType!==Ke&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function ab(e){this.children(e)}const ob=Object.freeze(Object.defineProperty({__proto__:null,generate:ab,name:rb,parse:Zu,structure:sb,walkContext:ib},Symbol.toStringTag,{value:"Module"})),ub=36,Ju=42,Yr=61,lb=94,Ps=124,cb=126;function db(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(Ju)?(t=!0,this.next()):this.isDelim(Ps)||this.eat(ne),this.isDelim(Ps)?this.charCodeAt(this.tokenStart+1)!==Yr?(this.next(),this.eat(ne)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function hb(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==Yr&&t!==cb&&t!==lb&&t!==ub&&t!==Ju&&t!==Ps&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Yr&&(this.isDelim(Yr)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const fb="AttributeSelector",pb={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function el(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(at),this.skipSC(),t=db.call(this),this.skipSC(),this.tokenType!==ct&&(this.tokenType!==ne&&(n=hb.call(this),this.skipSC(),r=this.tokenType===mt?this.String():this.Identifier(),this.skipSC()),this.tokenType===ne&&(i=this.consume(ne),this.skipSC())),this.eat(ct),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function mb(e){this.token(ge,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(ne,e.flags),this.token(ge,"]")}const gb=Object.freeze(Object.defineProperty({__proto__:null,generate:mb,name:fb,parse:el,structure:pb},Symbol.toStringTag,{value:"Module"})),bb=38;function tl(){return this.Raw(null,!0)}function nl(){return this.parseWithFallback(this.Rule,tl)}function rl(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function Eb(){if(this.tokenType===Ke)return rl.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,rl);return this.tokenType===Ke&&this.next(),e}const yb="Block",Tb="block",_b={children:[["Atrule","Rule","Declaration"]]};function il(e){const t=e?Eb:nl,n=this.tokenStart;let r=this.createList();this.eat(ze);e:for(;!this.eof;)switch(this.tokenType){case ot:break e;case Le:case qe:this.next();break;case Be:r.push(this.parseWithFallback(this.Atrule.bind(this,e),tl));break;default:e&&this.isDelim(bb)?r.push(nl.call(this)):r.push(t.call(this))}return this.eof||this.eat(ot),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function kb(e){this.token(ze,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(Ke,";")}),this.token(ot,"}")}const wb=Object.freeze(Object.defineProperty({__proto__:null,generate:kb,name:yb,parse:il,structure:_b,walkContext:Tb},Symbol.toStringTag,{value:"Module"})),Ab="Brackets",Sb={children:[[]]};function sl(e,t){const n=this.tokenStart;let r=null;return this.eat(at),r=e.call(this,t),this.eof||this.eat(ct),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function Cb(e){this.token(ge,"["),this.children(e),this.token(ge,"]")}const xb=Object.freeze(Object.defineProperty({__proto__:null,generate:Cb,name:Ab,parse:sl,structure:Sb},Symbol.toStringTag,{value:"Module"})),Nb="CDC",Ib=[];function al(){const e=this.tokenStart;return this.eat(rt),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function vb(){this.token(rt,"-->")}const Ob=Object.freeze(Object.defineProperty({__proto__:null,generate:vb,name:Nb,parse:al,structure:Ib},Symbol.toStringTag,{value:"Module"})),Lb="CDO",Rb=[];function ol(){const e=this.tokenStart;return this.eat(Hn),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Pb(){this.token(Hn,"<!--")}const Db=Object.freeze(Object.defineProperty({__proto__:null,generate:Pb,name:Lb,parse:ol,structure:Rb},Symbol.toStringTag,{value:"Module"})),Mb=46,Bb="ClassSelector",Fb={name:String};function ul(){return this.eatDelim(Mb),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(ne)}}function Ub(e){this.token(ge,"."),this.token(ne,e.name)}const Hb=Object.freeze(Object.defineProperty({__proto__:null,generate:Ub,name:Bb,parse:ul,structure:Fb},Symbol.toStringTag,{value:"Module"})),zb=43,ll=47,$b=62,jb=126,qb="Combinator",Yb={name:String};function cl(){const e=this.tokenStart;let t;switch(this.tokenType){case Le:t=" ";break;case ge:switch(this.charCodeAt(this.tokenStart)){case $b:case zb:case jb:this.next();break;case ll:this.next(),this.eatIdent("deep"),this.eatDelim(ll);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function Wb(e){this.tokenize(e.name)}const Gb=Object.freeze(Object.defineProperty({__proto__:null,generate:Wb,name:qb,parse:cl,structure:Yb},Symbol.toStringTag,{value:"Module"})),Vb=42,Kb=47,Xb="Comment",Qb={value:String};function dl(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(qe),t-e+2>=2&&this.charCodeAt(t-2)===Vb&&this.charCodeAt(t-1)===Kb&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Zb(e){this.token(qe,"/*"+e.value+"*/")}const Jb=Object.freeze(Object.defineProperty({__proto__:null,generate:Zb,name:Xb,parse:dl,structure:Qb},Symbol.toStringTag,{value:"Module"})),e1=new Set([Ve,de,Ht]),t1="Condition",n1={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function hl(e){return this.lookupTypeNonSC(1)===ne&&e1.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const r1={media:hl,container:hl,supports(){return this.SupportsDeclaration()}};function fl(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case qe:case Le:this.next();continue;case ne:t.push(this.Identifier());break;case _e:{let n=this.parseWithFallback(()=>r1[e].call(this,e),()=>null);n||(n=this.parseWithFallback(()=>{this.eat(_e);const r=this.Condition(e);return this.eat(de),r},()=>this.GeneralEnclosed(e))),t.push(n);break}case pe:{let n=this.parseWithFallback(()=>this.FeatureFunction(e),()=>null);n||(n=this.GeneralEnclosed(e)),t.push(n);break}default:break e}return t.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(t),kind:e,children:t}}function i1(e){e.children.forEach(t=>{t.type==="Condition"?(this.token(_e,"("),this.node(t),this.token(de,")")):this.node(t)})}const s1=Object.freeze(Object.defineProperty({__proto__:null,generate:i1,name:t1,parse:fl,structure:n1},Symbol.toStringTag,{value:"Module"})),pl=33,a1=35,o1=36,u1=38,l1=42,c1=43,ml=47;function d1(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function h1(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function f1(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==Ke&&this.isDelim(pl)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}const p1="Declaration",m1="declaration",g1={important:[Boolean,String],property:String,value:["Value","Raw"]};function gl(){const e=this.tokenStart,t=this.tokenIndex,n=E1.call(this),r=is(n),i=r?this.parseCustomProperty:this.parseValue,s=r?h1:d1;let o=!1,a;this.skipSC(),this.eat(Ve);const u=this.tokenIndex;if(r||this.skipSC(),i?a=this.parseWithFallback(f1,s):a=s.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let c=u-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===Le){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(pl)&&(o=y1.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==Ke&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:o,property:n,value:a}}function b1(e){this.token(ne,e.property),this.token(Ve,":"),this.node(e.value),e.important&&(this.token(ge,"!"),this.token(ne,e.important===!0?"important":e.important))}function E1(){const e=this.tokenStart;if(this.tokenType===ge)switch(this.charCodeAt(this.tokenStart)){case l1:case o1:case c1:case a1:case u1:this.next();break;case ml:this.next(),this.isDelim(ml)&&this.next();break}return this.tokenType===xe?this.eat(xe):this.eat(ne),this.substrToCursor(e)}function y1(){this.eat(ge),this.skipSC();const e=this.consume(ne);return e==="important"?!0:e}const T1=Object.freeze(Object.defineProperty({__proto__:null,generate:b1,name:p1,parse:gl,structure:g1,walkContext:m1},Symbol.toStringTag,{value:"Module"})),_1=38;function Ds(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}const k1="DeclarationList",w1={children:[["Declaration","Atrule","Rule"]]};function bl(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Le:case qe:case Ke:this.next();break;case Be:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),Ds));break;default:this.isDelim(_1)?e.push(this.parseWithFallback(this.Rule,Ds)):e.push(this.parseWithFallback(this.Declaration,Ds))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function A1(e){this.children(e,t=>{t.type==="Declaration"&&this.token(Ke,";")})}const S1=Object.freeze(Object.defineProperty({__proto__:null,generate:A1,name:k1,parse:bl,structure:w1},Symbol.toStringTag,{value:"Module"})),C1="Dimension",x1={value:String,unit:String};function El(){const e=this.tokenStart,t=this.consumeNumber(be);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function N1(e){this.token(be,e.value+e.unit)}const I1=Object.freeze(Object.defineProperty({__proto__:null,generate:N1,name:C1,parse:El,structure:x1},Symbol.toStringTag,{value:"Module"})),v1=47,O1="Feature",L1={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};function yl(e){const t=this.tokenStart;let n,r=null;if(this.eat(_e),this.skipSC(),n=this.consume(ne),this.skipSC(),this.tokenType!==de){switch(this.eat(Ve),this.skipSC(),this.tokenType){case fe:this.lookupNonWSType(1)===ge?r=this.Ratio():r=this.Number();break;case be:r=this.Dimension();break;case ne:r=this.Identifier();break;case pe:r=this.parseWithFallback(()=>{const i=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(v1)&&this.error(),i},()=>this.Ratio());break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(de),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}}function R1(e){this.token(_e,"("),this.token(ne,e.name),e.value!==null&&(this.token(Ve,":"),this.node(e.value)),this.token(de,")")}const P1=Object.freeze(Object.defineProperty({__proto__:null,generate:R1,name:O1,parse:yl,structure:L1},Symbol.toStringTag,{value:"Module"})),D1="FeatureFunction",M1={kind:String,feature:String,value:["Declaration","Selector"]};function B1(e,t){const r=(this.features[e]||{})[t];return typeof r!="function"&&this.error(`Unknown feature ${t}()`),r}function Tl(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=B1.call(this,e,n.toLowerCase());this.skipSC();const i=this.parseWithFallback(()=>{const s=this.tokenIndex,o=r.call(this);return this.eof===!1&&this.isBalanceEdge(s)===!1&&this.error(),o},()=>this.Raw(null,!1));return this.eof||this.eat(de),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:i}}function F1(e){this.token(pe,e.feature+"("),this.node(e.value),this.token(de,")")}const U1=Object.freeze(Object.defineProperty({__proto__:null,generate:F1,name:D1,parse:Tl,structure:M1},Symbol.toStringTag,{value:"Module"})),_l=47,H1=60,kl=61,z1=62,$1="FeatureRange",j1={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function Ms(){switch(this.skipSC(),this.tokenType){case fe:return this.isDelim(_l,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case be:return this.Dimension();case ne:return this.Identifier();case pe:return this.parseWithFallback(()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(_l)&&this.error(),e},()=>this.Ratio());default:this.error("Number, dimension, ratio or identifier is expected")}}function wl(e){if(this.skipSC(),this.isDelim(H1)||this.isDelim(z1)){const t=this.source[this.tokenStart];return this.next(),this.isDelim(kl)?(this.next(),t+"="):t}if(this.isDelim(kl))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}function Al(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(_e);const n=Ms.call(this),r=wl.call(this,n.type==="Identifier"),i=Ms.call(this);let s=null,o=null;return this.lookupNonWSType(0)!==de&&(s=wl.call(this),o=Ms.call(this)),this.skipSC(),this.eat(de),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:i,rightComparison:s,right:o}}function q1(e){this.token(_e,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(de,")")}const Y1=Object.freeze(Object.defineProperty({__proto__:null,generate:q1,name:$1,parse:Al,structure:j1},Symbol.toStringTag,{value:"Module"})),W1="Function",G1="function",V1={name:String,children:[[]]};function Sl(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let s;return s=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(de),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:s}}function K1(e){this.token(pe,e.name+"("),this.children(e),this.token(de,")")}const X1=Object.freeze(Object.defineProperty({__proto__:null,generate:K1,name:W1,parse:Sl,structure:V1,walkContext:G1},Symbol.toStringTag,{value:"Module"})),Q1="GeneralEnclosed",Z1={kind:String,function:[String,null],children:[[]]};function Cl(e){const t=this.tokenStart;let n=null;this.tokenType===pe?n=this.consumeFunctionName():this.eat(_e);const r=this.parseWithFallback(()=>{const i=this.tokenIndex,s=this.readSequence(this.scope.Value);return this.eof===!1&&this.isBalanceEdge(i)===!1&&this.error(),s},()=>this.createSingleNodeList(this.Raw(null,!1)));return this.eof||this.eat(de),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}}function J1(e){e.function?this.token(pe,e.function+"("):this.token(_e,"("),this.children(e),this.token(de,")")}const eE=Object.freeze(Object.defineProperty({__proto__:null,generate:J1,name:Q1,parse:Cl,structure:Z1},Symbol.toStringTag,{value:"Module"})),tE="XXX",nE="Hash",rE={value:String};function xl(){const e=this.tokenStart;return this.eat(xe),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function iE(e){this.token(xe,"#"+e.value)}const sE=Object.freeze(Object.defineProperty({__proto__:null,generate:iE,name:nE,parse:xl,structure:rE,xxx:tE},Symbol.toStringTag,{value:"Module"})),aE="Identifier",oE={name:String};function Nl(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(ne)}}function uE(e){this.token(ne,e.name)}const lE=Object.freeze(Object.defineProperty({__proto__:null,generate:uE,name:aE,parse:Nl,structure:oE},Symbol.toStringTag,{value:"Module"})),cE="IdSelector",dE={name:String};function Il(){const e=this.tokenStart;return this.eat(xe),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function hE(e){this.token(ge,"#"+e.name)}const fE=Object.freeze(Object.defineProperty({__proto__:null,generate:hE,name:cE,parse:Il,structure:dE},Symbol.toStringTag,{value:"Module"})),pE=46,mE="Layer",gE={name:String};function vl(){let e=this.tokenStart,t=this.consume(ne);for(;this.isDelim(pE);)this.eat(ge),t+="."+this.consume(ne);return{type:"Layer",loc:this.getLocation(e,this.tokenStart),name:t}}function bE(e){this.tokenize(e.name)}const EE=Object.freeze(Object.defineProperty({__proto__:null,generate:bE,name:mE,parse:vl,structure:gE},Symbol.toStringTag,{value:"Module"})),yE="LayerList",TE={children:[["Layer"]]};function Ol(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.lookupTypeNonSC(0)===it);)this.skipSC(),this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}}function _E(e){this.children(e,()=>this.token(it,","))}const kE=Object.freeze(Object.defineProperty({__proto__:null,generate:_E,name:yE,parse:Ol,structure:TE},Symbol.toStringTag,{value:"Module"})),wE="MediaQuery",AE={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};function Ll(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===ne&&this.lookupTypeNonSC(1)!==_e){const i=this.consume(ne),s=i.toLowerCase();switch(s==="not"||s==="only"?(this.skipSC(),t=s,n=this.consume(ne)):n=i,this.lookupTypeNonSC(0)){case ne:{this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break}case ze:case Ke:case it:case Ht:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case ne:case _e:case pe:{r=this.Condition("media");break}case ze:case Ke:case Ht:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}}function SE(e){e.mediaType?(e.modifier&&this.token(ne,e.modifier),this.token(ne,e.mediaType),e.condition&&(this.token(ne,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)}const CE=Object.freeze(Object.defineProperty({__proto__:null,generate:SE,name:wE,parse:Ll,structure:AE},Symbol.toStringTag,{value:"Module"})),xE="MediaQueryList",NE={children:[["MediaQuery"]]};function Rl(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===it);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function IE(e){this.children(e,()=>this.token(it,","))}const vE=Object.freeze(Object.defineProperty({__proto__:null,generate:IE,name:xE,parse:Rl,structure:NE},Symbol.toStringTag,{value:"Module"})),OE=38,LE="NestingSelector",RE={};function Pl(){const e=this.tokenStart;return this.eatDelim(OE),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function PE(){this.token(ge,"&")}const DE=Object.freeze(Object.defineProperty({__proto__:null,generate:PE,name:LE,parse:Pl,structure:RE},Symbol.toStringTag,{value:"Module"})),ME="Nth",BE={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Dl(){this.skipSC();const e=this.tokenStart;let t=e,n=null,r;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?r=this.Identifier():r=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:r,selector:n}}function FE(e){this.node(e.nth),e.selector!==null&&(this.token(ne,"of"),this.node(e.selector))}const UE=Object.freeze(Object.defineProperty({__proto__:null,generate:FE,name:ME,parse:Dl,structure:BE},Symbol.toStringTag,{value:"Module"})),HE="Number",zE={value:String};function Ml(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(fe)}}function $E(e){this.token(fe,e.value)}const jE=Object.freeze(Object.defineProperty({__proto__:null,generate:$E,name:HE,parse:Ml,structure:zE},Symbol.toStringTag,{value:"Module"})),qE="Operator",YE={value:String};function Bl(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function WE(e){this.tokenize(e.value)}const GE=Object.freeze(Object.defineProperty({__proto__:null,generate:WE,name:qE,parse:Bl,structure:YE},Symbol.toStringTag,{value:"Module"})),VE="Parentheses",KE={children:[[]]};function Fl(e,t){const n=this.tokenStart;let r=null;return this.eat(_e),r=e.call(this,t),this.eof||this.eat(de),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function XE(e){this.token(_e,"("),this.children(e),this.token(de,")")}const QE=Object.freeze(Object.defineProperty({__proto__:null,generate:XE,name:VE,parse:Fl,structure:KE},Symbol.toStringTag,{value:"Module"})),ZE="Percentage",JE={value:String};function Ul(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Oe)}}function ey(e){this.token(Oe,e.value+"%")}const ty=Object.freeze(Object.defineProperty({__proto__:null,generate:ey,name:ZE,parse:Ul,structure:JE},Symbol.toStringTag,{value:"Module"})),ny="PseudoClassSelector",ry="function",iy={name:String,children:[["Raw"],null]};function Hl(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ve),this.tokenType===pe?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==de?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(de)):n=this.consume(ne),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function sy(e){this.token(Ve,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const ay=Object.freeze(Object.defineProperty({__proto__:null,generate:sy,name:ny,parse:Hl,structure:iy,walkContext:ry},Symbol.toStringTag,{value:"Module"})),oy="PseudoElementSelector",uy="function",ly={name:String,children:[["Raw"],null]};function zl(){const e=this.tokenStart;let t=null,n,r;return this.eat(Ve),this.eat(Ve),this.tokenType===pe?(n=this.consumeFunctionName(),r=n.toLowerCase(),this.lookupNonWSType(0)==de?t=this.createList():hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(null,!1))),this.eat(de)):n=this.consume(ne),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function cy(e){this.token(Ve,":"),this.token(Ve,":"),e.children===null?this.token(ne,e.name):(this.token(pe,e.name+"("),this.children(e),this.token(de,")"))}const dy=Object.freeze(Object.defineProperty({__proto__:null,generate:cy,name:oy,parse:zl,structure:ly,walkContext:uy},Symbol.toStringTag,{value:"Module"})),$l=47;function jl(){switch(this.skipSC(),this.tokenType){case fe:return this.Number();case pe:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}const hy="Ratio",fy={left:["Number","Function"],right:["Number","Function",null]};function ql(){const e=this.tokenStart,t=jl.call(this);let n=null;return this.skipSC(),this.isDelim($l)&&(this.eatDelim($l),n=jl.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function py(e){this.node(e.left),this.token(ge,"/"),e.right?this.node(e.right):this.node(fe,1)}const my=Object.freeze(Object.defineProperty({__proto__:null,generate:py,name:hy,parse:ql,structure:fy},Symbol.toStringTag,{value:"Module"}));function gy(){return this.tokenIndex>0&&this.lookupType(-1)===Le?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const by="Raw",Ey={value:String};function Yl(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),t&&this.tokenStart>n?r=gy.call(this):r=this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}}function yy(e){this.tokenize(e.value)}const Ty=Object.freeze(Object.defineProperty({__proto__:null,generate:yy,name:by,parse:Yl,structure:Ey},Symbol.toStringTag,{value:"Module"}));function Wl(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function _y(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==ze&&this.error(),e}const ky="Rule",wy="rule",Ay={prelude:["SelectorList","Raw"],block:["Block"]};function Gl(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return this.parseRulePrelude?n=this.parseWithFallback(_y,Wl):n=Wl.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function Sy(e){this.node(e.prelude),this.node(e.block)}const Cy=Object.freeze(Object.defineProperty({__proto__:null,generate:Sy,name:ky,parse:Gl,structure:Ay,walkContext:wy},Symbol.toStringTag,{value:"Module"})),xy="Scope",Ny={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};function Vl(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===_e&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(de)),this.lookupNonWSType(0)===ne&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(_e),this.skipSC(),t=this.parseWithFallback(this.SelectorList,()=>this.Raw(!1,!0)),this.skipSC(),this.eat(de)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}}function Iy(e){e.root&&(this.token(_e,"("),this.node(e.root),this.token(de,")")),e.limit&&(this.token(ne,"to"),this.token(_e,"("),this.node(e.limit),this.token(de,")"))}const vy=Object.freeze(Object.defineProperty({__proto__:null,generate:Iy,name:xy,parse:Vl,structure:Ny},Symbol.toStringTag,{value:"Module"})),Oy="Selector",Ly={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]};function Kl(){const e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function Ry(e){this.children(e)}const Py=Object.freeze(Object.defineProperty({__proto__:null,generate:Ry,name:Oy,parse:Kl,structure:Ly},Symbol.toStringTag,{value:"Module"})),Dy="SelectorList",My="selector",By={children:[["Selector","Raw"]]};function Xl(){const e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===it){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function Fy(e){this.children(e,()=>this.token(it,","))}const Uy=Object.freeze(Object.defineProperty({__proto__:null,generate:Fy,name:Dy,parse:Xl,structure:By,walkContext:My},Symbol.toStringTag,{value:"Module"})),Bs=92,Ql=34,Hy=39;function Zl(e){const t=e.length,n=e.charCodeAt(0),r=n===Ql||n===Hy?1:0,i=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let s="";for(let o=r;o<=i;o++){let a=e.charCodeAt(o);if(a===Bs){if(o===i){o!==t-1&&(s=e.substr(o+1));break}if(a=e.charCodeAt(++o),At(Bs,a)){const u=o-1,c=fn(e,u);o=c-1,s+=Do(e.substring(u+1,c))}else a===13&&e.charCodeAt(o+1)===10&&o++}else s+=e[o]}return s}function zy(e,t){const r=Ql;let i="",s=!1;for(let o=0;o<e.length;o++){const a=e.charCodeAt(o);if(a===0){i+="�";continue}if(a<=31||a===127){i+="\\"+a.toString(16),s=!0;continue}a===r||a===Bs?(i+="\\"+e.charAt(o),s=!1):(s&&(zt(a)||Xt(a))&&(i+=" "),i+=e.charAt(o),s=!1)}return'"'+i+'"'}const $y="String",jy={value:String};function Jl(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Zl(this.consume(mt))}}function qy(e){this.token(mt,zy(e.value))}const Yy=Object.freeze(Object.defineProperty({__proto__:null,generate:qy,name:$y,parse:Jl,structure:jy},Symbol.toStringTag,{value:"Module"})),Wy=33;function ec(){return this.Raw(null,!1)}const Gy="StyleSheet",Vy="stylesheet",Ky={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function tc(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case Le:this.next();continue;case qe:if(this.charCodeAt(this.tokenStart+2)!==Wy){this.next();continue}n=this.Comment();break;case Hn:n=this.CDO();break;case rt:n=this.CDC();break;case Be:n=this.parseWithFallback(this.Atrule,ec);break;default:n=this.parseWithFallback(this.Rule,ec)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function Xy(e){this.children(e)}const Qy=Object.freeze(Object.defineProperty({__proto__:null,generate:Xy,name:Gy,parse:tc,structure:Ky,walkContext:Vy},Symbol.toStringTag,{value:"Module"})),Zy="SupportsDeclaration",Jy={declaration:"Declaration"};function nc(){const e=this.tokenStart;this.eat(_e),this.skipSC();const t=this.Declaration();return this.eof||this.eat(de),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}}function eT(e){this.token(_e,"("),this.node(e.declaration),this.token(de,")")}const tT=Object.freeze(Object.defineProperty({__proto__:null,generate:eT,name:Zy,parse:nc,structure:Jy},Symbol.toStringTag,{value:"Module"})),nT=42,rc=124;function Fs(){this.tokenType!==ne&&this.isDelim(nT)===!1&&this.error("Identifier or asterisk is expected"),this.next()}const rT="TypeSelector",iT={name:String};function ic(){const e=this.tokenStart;return this.isDelim(rc)?(this.next(),Fs.call(this)):(Fs.call(this),this.isDelim(rc)&&(this.next(),Fs.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function sT(e){this.tokenize(e.name)}const aT=Object.freeze(Object.defineProperty({__proto__:null,generate:sT,name:rT,parse:ic,structure:iT},Symbol.toStringTag,{value:"Module"})),sc=43,ac=45,Us=63;function Jn(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const i=this.charCodeAt(r);if(i===ac&&t&&n!==0)return Jn.call(this,e+n+1,!1),-1;zt(i)||this.error(t&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function Wr(e){let t=0;for(;this.isDelim(Us);)++t>e&&this.error("Too many question marks"),this.next()}function oT(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===sc?"Plus sign":"Hyphen minus")+" is expected")}function uT(){let e=0;switch(this.tokenType){case fe:if(e=Jn.call(this,1,!0),this.isDelim(Us)){Wr.call(this,6-e);break}if(this.tokenType===be||this.tokenType===fe){oT.call(this,ac),Jn.call(this,1,!1);break}break;case be:e=Jn.call(this,1,!0),e>0&&Wr.call(this,6-e);break;default:if(this.eatDelim(sc),this.tokenType===ne){e=Jn.call(this,0,!0),e>0&&Wr.call(this,6-e);break}if(this.isDelim(Us)){this.next(),Wr.call(this,5);break}this.error("Hex digit or question mark is expected")}}const lT="UnicodeRange",cT={value:String};function oc(){const e=this.tokenStart;return this.eatIdent("u"),uT.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function dT(e){this.tokenize(e.value)}const hT=Object.freeze(Object.defineProperty({__proto__:null,generate:dT,name:lT,parse:oc,structure:cT},Symbol.toStringTag,{value:"Module"})),fT=32,Hs=92,pT=34,mT=39,gT=40,uc=41;function bT(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===uc?t-2:t-1,i="";for(;n<r&&Xt(e.charCodeAt(n));)n++;for(;n<r&&Xt(e.charCodeAt(r));)r--;for(let s=n;s<=r;s++){let o=e.charCodeAt(s);if(o===Hs){if(s===r){s!==t-1&&(i=e.substr(s+1));break}if(o=e.charCodeAt(++s),At(Hs,o)){const a=s-1,u=fn(e,a);s=u-1,i+=Do(e.substring(a+1,u))}else o===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function ET(e){let t="",n=!1;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);if(i===0){t+="�";continue}if(i<=31||i===127){t+="\\"+i.toString(16),n=!0;continue}i===fT||i===Hs||i===pT||i===mT||i===gT||i===uc?(t+="\\"+e.charAt(r),n=!1):(n&&zt(i)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}const yT="Url",TT={value:String};function lc(){const e=this.tokenStart;let t;switch(this.tokenType){case Ge:t=bT(this.consume(Ge));break;case pe:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(pe),this.skipSC(),t=Zl(this.consume(mt)),this.skipSC(),this.eof||this.eat(de);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function _T(e){this.token(Ge,ET(e.value))}const kT=Object.freeze(Object.defineProperty({__proto__:null,generate:_T,name:yT,parse:lc,structure:TT},Symbol.toStringTag,{value:"Module"})),wT="Value",AT={children:[[]]};function cc(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function ST(e){this.children(e)}const CT=Object.freeze(Object.defineProperty({__proto__:null,generate:ST,name:wT,parse:cc,structure:AT},Symbol.toStringTag,{value:"Module"})),xT=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),NT="WhiteSpace",IT={value:String};function dc(){return this.eat(Le),xT}function vT(e){this.token(Le,e.value)}const hc=Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Xg,Atrule:nb,AtrulePrelude:ob,AttributeSelector:gb,Block:wb,Brackets:xb,CDC:Ob,CDO:Db,ClassSelector:Hb,Combinator:Gb,Comment:Jb,Condition:s1,Declaration:T1,DeclarationList:S1,Dimension:I1,Feature:P1,FeatureFunction:U1,FeatureRange:Y1,Function:X1,GeneralEnclosed:eE,Hash:sE,IdSelector:fE,Identifier:lE,Layer:EE,LayerList:kE,MediaQuery:CE,MediaQueryList:vE,NestingSelector:DE,Nth:UE,Number:jE,Operator:GE,Parentheses:QE,Percentage:ty,PseudoClassSelector:ay,PseudoElementSelector:dy,Ratio:my,Raw:Ty,Rule:Cy,Scope:vy,Selector:Py,SelectorList:Uy,String:Yy,StyleSheet:Qy,SupportsDeclaration:tT,TypeSelector:aT,UnicodeRange:hT,Url:kT,Value:CT,WhiteSpace:Object.freeze(Object.defineProperty({__proto__:null,generate:vT,name:NT,parse:dc,structure:IT},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),OT={generic:!0,cssWideKeywords:ss,...Yg,node:hc},LT=35,RT=42,fc=43,PT=45,DT=47,MT=117;function pc(e){switch(this.tokenType){case xe:return this.Hash();case it:return this.Operator();case _e:return this.Parentheses(this.readSequence,e.recognizer);case at:return this.Brackets(this.readSequence,e.recognizer);case mt:return this.String();case be:return this.Dimension();case Oe:return this.Percentage();case fe:return this.Number();case pe:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Ge:return this.Url();case ne:return this.cmpChar(this.tokenStart,MT)&&this.cmpChar(this.tokenStart+1,fc)?this.UnicodeRange():this.Identifier();case ge:{const t=this.charCodeAt(this.tokenStart);if(t===DT||t===RT||t===fc||t===PT)return this.Operator();t===LT&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}const BT={getNode:pc},FT=35,UT=38,HT=42,zT=43,$T=47,mc=46,jT=62,qT=124,YT=126;function WT(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function GT(){switch(this.tokenType){case at:return this.AttributeSelector();case xe:return this.IdSelector();case Ve:return this.lookupType(1)===Ve?this.PseudoElementSelector():this.PseudoClassSelector();case ne:return this.TypeSelector();case fe:case Oe:return this.Percentage();case be:this.charCodeAt(this.tokenStart)===mc&&this.error("Identifier is expected",this.tokenStart+1);break;case ge:{switch(this.charCodeAt(this.tokenStart)){case zT:case jT:case YT:case $T:return this.Combinator();case mc:return this.ClassSelector();case HT:case qT:return this.TypeSelector();case FT:return this.IdSelector();case UT:return this.NestingSelector()}break}}}const VT={onWhiteSpace:WT,getNode:GT};function KT(){return this.createSingleNodeList(this.Raw(null,!1))}function XT(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===it){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===Le){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function gc(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}const QT=Object.freeze(Object.defineProperty({__proto__:null,AtrulePrelude:BT,Selector:VT,Value:{getNode:pc,onWhiteSpace(e,t){gc(e)&&(e.value=" "+e.value),gc(t.last)&&(t.last.value+=" ")},expression:KT,var:XT}},Symbol.toStringTag,{value:"Module"})),ZT=new Set(["none","and","not","or"]),JT={parse:{prelude(){const e=this.createList();if(this.tokenType===ne){const t=this.substring(this.tokenStart,this.tokenEnd);ZT.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},e2={parse:{prelude:null,block(){return this.Block(!0)}}};function zs(e,t){return this.parseWithFallback(()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==de&&this.error()}},t||(()=>this.Raw(null,!0)))}const bc={layer(){this.skipSC();const e=this.createList(),t=zs.call(this,this.Layer);return(t.type!=="Raw"||t.value!=="")&&e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=zs.call(this,this.Declaration,()=>zs.call(this,()=>this.Condition("supports")));return(t.type!=="Raw"||t.value!=="")&&e.push(t),e}},t2={container:JT,"font-face":e2,import:{parse:{prelude(){const e=this.createList();switch(this.tokenType){case mt:e.push(this.String());break;case Ge:case pe:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===ne&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===pe&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,bc)),this.skipSC(),this.tokenType===pe&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,bc)),(this.lookupNonWSType(0)===ne||this.lookupNonWSType(0)===_e)&&e.push(this.MediaQueryList()),e},block:null}},layer:{parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},scope:{parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},"starting-style":{parse:{prelude:null,block(e=!1){return this.Block(e)}}},supports:{parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}}};function n2(){const e=this.createList();this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case ne:e.push(this.Identifier());break;case mt:e.push(this.String());break;case it:e.push(this.Operator());break;case de:break e;default:this.error("Identifier, string or comma is expected")}this.skipSC()}return e}const Zt={parse(){return this.createSingleNodeList(this.SelectorList())}},$s={parse(){return this.createSingleNodeList(this.Selector())}},r2={parse(){return this.createSingleNodeList(this.Identifier())}},i2={parse:n2},Gr={parse(){return this.createSingleNodeList(this.Nth())}},s2=qg({...OT,...{parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(e){return this.Condition(e.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:QT,atrule:t2,pseudo:{dir:r2,has:Zt,lang:i2,matches:Zt,is:Zt,"-moz-any":Zt,"-webkit-any":Zt,where:Zt,not:Zt,"nth-child":Gr,"nth-last-child":Gr,"nth-last-of-type":Gr,"nth-of-type":Gr,slotted:$s,host:$s,"host-context":$s},node:Object.freeze(Object.defineProperty({__proto__:null,AnPlusB:Ku,Atrule:Qu,AtrulePrelude:Zu,AttributeSelector:el,Block:il,Brackets:sl,CDC:al,CDO:ol,ClassSelector:ul,Combinator:cl,Comment:dl,Condition:fl,Declaration:gl,DeclarationList:bl,Dimension:El,Feature:yl,FeatureFunction:Tl,FeatureRange:Al,Function:Sl,GeneralEnclosed:Cl,Hash:xl,IdSelector:Il,Identifier:Nl,Layer:vl,LayerList:Ol,MediaQuery:Ll,MediaQueryList:Rl,NestingSelector:Pl,Nth:Dl,Number:Ml,Operator:Bl,Parentheses:Fl,Percentage:Ul,PseudoClassSelector:Hl,PseudoElementSelector:zl,Ratio:ql,Raw:Yl,Rule:Gl,Scope:Vl,Selector:Kl,SelectorList:Xl,String:Jl,StyleSheet:tc,SupportsDeclaration:nc,TypeSelector:ic,UnicodeRange:oc,Url:lc,Value:cc,WhiteSpace:dc},Symbol.toStringTag,{value:"Module"}))},...{node:hc}}),{tokenize:Jk,parse:a2,generate:o2,lexer:ew,createLexer:tw,walk:Vr,find:nw,findLast:rw,findAll:iw,toPlainObject:sw,fromPlainObject:aw,fork:ow}=s2;function u2(e){return js(e).classRules}function js(e){const t={},n={},r=a2(e,{parseCustomProperty:!0});return Vr(r,{visit:"Rule",enter(i){if(i.type!=="Rule"||!i.prelude||!i.block)return;const s={};if(Vr(i.block,{visit:"Declaration",enter(a){const u=a.property,c=o2(a.value);s[u]=c}}),Object.keys(s).length===0)return;const o=l2(i.prelude);for(const a of o.classes)t[a]={...t[a],...s};for(const a of o.elements)n[a]={...n[a],...s}}}),{classRules:t,elementRules:n}}function l2(e){const t=[],n=[];return Vr(e,{visit:"ClassSelector",enter(r){r.type==="ClassSelector"&&r.name&&t.push(r.name)}}),Vr(e,{visit:"TypeSelector",enter(r){r.type==="TypeSelector"&&r.name&&n.push(r.name.toLowerCase())}}),{classes:t,elements:n}}function c2(e,t){const n=I0(e,{fragment:!0}),i={type:"root",children:Rt(n.children,"block")};if(t!=null&&t.css){const s=js(t.css),o=Object.keys(s.classRules).length>0,a=Object.keys(s.elementRules).length>0;(o||a)&&(i.data={...i.data,css:s})}return i}function Rt(e,t){const n=[];for(const r of e)if(r.type==="text"){const i=r.value;(t==="inline"||i.trim())&&n.push({type:"text",value:i})}else if(r.type==="element"){const i=d2(r,t);i&&(Array.isArray(i)?n.push(...i):n.push(i))}return n}function d2(e,t){const n=e.tagName.toLowerCase();switch(n){case"p":return Kr("paragraph",e);case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return h2(e,Number(n[1]));case"blockquote":return Kr("blockquote",e);case"ul":return Ec(e,!1);case"ol":return Ec(e,!0);case"li":return yc(e);case"pre":return f2(e);case"table":return p2(e);case"thead":case"tbody":case"tfoot":return Rt(e.children,"block");case"tr":return Tc(e);case"td":case"th":return _c(e);case"hr":return{type:"thematicBreak"};case"br":return{type:"break"};case"img":return m2(e);case"div":case"section":case"article":case"main":case"header":case"footer":case"nav":case"aside":return Kr("div",e);case"figure":return Kr("figure",e);case"figcaption":return g2(e)}if(b2(n))return Ys(e);if(n==="code")return{type:"inlineCode",value:Xr(e)};if(n==="span")return Ys(e);if(t==="block"){const r=Rt(e.children,"block");return r.length===0?null:r.length===1?r[0]:r}else return Ys(e)}function Kr(e,t){const r=e==="paragraph"?"inline":"block",i=Rt(t.children,r),s={type:e,children:i};return Jt(t,s),Ws(t,s),s}function h2(e,t){const n=Rt(e.children,"inline"),r={type:"heading",depth:t,children:n};return Jt(e,r),Ws(e,r),r}function Ec(e,t){var i,s,o;const n=[];for(const a of e.children)a.type==="element"&&a.tagName.toLowerCase()==="li"&&n.push(yc(a));const r={type:"list",ordered:t,children:n};return t&&((i=e.properties)==null?void 0:i.start)!==void 0&&(r.start=Number(e.properties.start)),(s=e.properties)!=null&&s.type&&(r.data={...r.data,html:{...((o=r.data)==null?void 0:o.html)??{},type:String(e.properties.type)}}),Jt(e,r),Ws(e,r),r}function yc(e){const t=Rt(e.children,"block"),n=[];let r=[];const i=()=>{r.length>0&&(n.push({type:"paragraph",children:r}),r=[])};for(const o of t)kc(o.type)?r.push(o):(i(),n.push(o));i();const s={type:"listItem",children:n};return Jt(e,s),s}function f2(e){var o;const t=e.children.find(a=>a.type==="element"&&a.tagName.toLowerCase()==="code"),n=Xr(t||e);let r;if((o=t==null?void 0:t.properties)!=null&&o.className){const a=Array.isArray(t.properties.className)?t.properties.className:[t.properties.className];for(const u of a){const c=String(u).match(/^language-(.+)$/);if(c){r=c[1];break}}}const i={type:"codeBlock",value:n};r&&(i.lang=r);const s=i;return Jt(e,s),s}function p2(e){const t=[];function n(i){for(const s of i){if(s.type!=="element")continue;const o=s.tagName.toLowerCase();o==="tr"?t.push(Tc(s)):(o==="thead"||o==="tbody"||o==="tfoot")&&n(s.children)}}n(e.children),t.length>0&&!t[0].isHeader&&e.children.find(s=>s.type==="element"&&s.tagName.toLowerCase()==="thead")&&(t[0].isHeader=!0);const r={type:"table",children:t};return Jt(e,r),r}function Tc(e){const t=[];let n=!0;for(const i of e.children)if(i.type==="element"){const s=i.tagName.toLowerCase();(s==="td"||s==="th")&&(t.push(_c(i)),s!=="th"&&(n=!1))}const r={type:"tableRow",children:t};return n&&(r.isHeader=!0),r}function _c(e,t){var a,u;const n=Rt(e.children,"block"),r=[];let i=[];const s=()=>{i.length>0&&(r.push({type:"paragraph",children:i}),i=[])};for(const c of n)kc(c.type)?i.push(c):(s(),r.push(c));s();const o={type:"tableCell",children:r};return(a=e.properties)!=null&&a.colSpan&&Number(e.properties.colSpan)>1&&(o.colspan=Number(e.properties.colSpan)),(u=e.properties)!=null&&u.rowSpan&&Number(e.properties.rowSpan)>1&&(o.rowspan=Number(e.properties.rowSpan)),o}function m2(e){var n,r,i;const t={type:"image",url:String(((n=e.properties)==null?void 0:n.src)??"")};return(r=e.properties)!=null&&r.alt&&(t.alt=String(e.properties.alt)),(i=e.properties)!=null&&i.title&&(t.title=String(e.properties.title)),Jt(e,t),t}function g2(e){return{type:"figCaption",children:Rt(e.children,"inline")}}const qs={strong:()=>({type:"strong"}),b:()=>({type:"strong"}),em:()=>({type:"emphasis"}),i:()=>({type:"emphasis"}),u:()=>({type:"underline"}),del:()=>({type:"strikethrough"}),s:()=>({type:"strikethrough"}),sup:()=>({type:"superscript"}),sub:()=>({type:"subscript"}),mark:()=>({type:"highlight"})};function b2(e){return e in qs}function Ys(e){var i,s;const t=e.tagName.toLowerCase();let n;if(t==="a"){const o={url:String(((i=e.properties)==null?void 0:i.href)??"")};(s=e.properties)!=null&&s.title&&(o.title=String(e.properties.title)),n={type:"link",attrs:o}}else qs[t]&&(n=qs[t]());const r=Rt(e.children,"inline");return n?r.map(o=>E2(o,n)):r}function E2(e,t){if(e.type==="text"){const n=e,r=n.marks??[];return{...n,marks:[...r,t]}}return e}function Xr(e){let t="";for(const n of e.children)n.type==="text"?t+=n.value:n.type==="element"&&(t+=Xr(n));return t}function kc(e){return["text","break","image","footnoteReference","inlineCode","inlineMath"].includes(e)}function Jt(e,t){var n;if((n=e.properties)!=null&&n.className){const r=Array.isArray(e.properties.className)?e.properties.className.map(String):[String(e.properties.className)];r.length>0&&(t.classes=r)}}function Ws(e,t){const n={};if(e.properties){for(const[r,i]of Object.entries(e.properties))["className","src","href","alt","title","colSpan","rowSpan","start"].includes(r)||(r==="id"||r.startsWith("data")||r==="style"||r.startsWith("aria")||r==="role")&&(n[r]=i);Object.keys(n).length>0&&(t.data={...t.data,html:n})}}const y2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],wc={}.hasOwnProperty;function T2(e,t){const n=t||{};function r(i,...s){let o=r.invalid;const a=r.handlers;if(i&&wc.call(i,e)){const u=String(i[e]);o=wc.call(a,u)?a[u]:r.unknown}if(o)return o.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const _2=/["&'<>`]/g,k2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,w2=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,A2=/[|\\{}()[\]^$+*?.]/g,Ac=new WeakMap;function S2(e,t){if(e=e.replace(t.subset?C2(t.subset):_2,r),t.subset||t.escapeOnly)return e;return e.replace(k2,n).replace(w2,r);function n(i,s,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),t)}function r(i,s,o){return t.format(i.charCodeAt(0),o.charCodeAt(s+1),t)}}function C2(e){let t=Ac.get(e);return t||(t=x2(e),Ac.set(e,t)),t}function x2(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(A2,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const N2=/[\dA-Fa-f]/;function I2(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!N2.test(String.fromCharCode(t))?r:r+";"}const v2=/\d/;function O2(e,t,n){const r="&#"+String(e);return n&&t&&!v2.test(String.fromCharCode(t))?r:r+";"}const L2=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Gs={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},R2=["cent","copy","divide","gt","lt","not","para","times"],Sc={}.hasOwnProperty,Vs={};let Qr;for(Qr in Gs)Sc.call(Gs,Qr)&&(Vs[Gs[Qr]]=Qr);const P2=/[^\dA-Za-z]/;function D2(e,t,n,r){const i=String.fromCharCode(e);if(Sc.call(Vs,i)){const s=Vs[i],o="&"+s;return n&&L2.includes(s)&&!R2.includes(s)&&(!r||t&&t!==61&&P2.test(String.fromCharCode(t)))?o:o+";"}return""}function M2(e,t,n){let r=I2(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=D2(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const s=O2(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function kn(e,t){return S2(e,Object.assign({format:M2},t))}const B2=/^>|^->|<!--|-->|--!>|<!-$/g,F2=[">"],U2=["<",">"];function H2(e,t,n,r){return r.settings.bogusComments?"<?"+kn(e.value,Object.assign({},r.settings.characterReferences,{subset:F2}))+">":"<!--"+e.value.replace(B2,i)+"-->";function i(s){return kn(s,Object.assign({},r.settings.characterReferences,{subset:U2}))}}function z2(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Cc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const $2=/[ \t\n\f\r]/g;function Ks(e){return typeof e=="object"?e.type==="text"?xc(e.value):!1:xc(e)}function xc(e){return e.replace($2,"")===""}const Fe=Ic(1),Nc=Ic(-1),j2=[];function Ic(e){return t;function t(n,r,i){const s=n?n.children:j2;let o=(r||0)+e,a=s[o];if(!i)for(;a&&Ks(a);)o+=e,a=s[o];return a}}const q2={}.hasOwnProperty;function vc(e){return t;function t(n,r,i){return q2.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const Xs=vc({body:W2,caption:Qs,colgroup:Qs,dd:X2,dt:K2,head:Qs,html:Y2,li:V2,optgroup:Q2,option:Z2,p:G2,rp:Oc,rt:Oc,tbody:e_,td:Lc,tfoot:t_,th:Lc,thead:J2,tr:n_});function Qs(e,t,n){const r=Fe(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ks(r.value.charAt(0)))}function Y2(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function W2(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function G2(e,t,n){const r=Fe(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function V2(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="li"}function K2(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function X2(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Oc(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Q2(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Z2(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function J2(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function e_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function t_(e,t,n){return!Fe(n,t)}function n_(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Lc(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const r_=vc({body:a_,colgroup:o_,head:s_,html:i_,tbody:u_});function i_(e){const t=Fe(e,-1);return!t||t.type!=="comment"}function s_(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function a_(e){const t=Fe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ks(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function o_(e,t,n){const r=Nc(n,t),i=Fe(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Xs(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function u_(e,t,n){const r=Nc(n,t),i=Fe(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Xs(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Zr={name:[[`
|
|
14
|
+
\f\r &/=>`.split(""),`
|
|
15
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
16
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
17
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
18
|
+
\f\r &>`.split(""),`\0
|
|
19
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
20
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
21
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function l_(e,t,n,r){const i=r.schema,s=i.space==="svg"?!1:r.settings.omitOptionalTags;let o=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let u;i.space==="html"&&e.tagName==="svg"&&(r.schema=Nn);const c=c_(r,e.properties),d=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,d&&(o=!1),(c||!s||!r_(e,t,n))&&(a.push("<",e.tagName,c?" "+c:""),o&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(d),!o&&(!s||!Xs(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function c_(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const s=d_(e,i,t[i]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function d_(e,t,n){const r=yi(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let o=e.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const u=kn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Zr.name[i][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?bh:yh)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(a=kn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Zr.unquoted[i][s]}))),a!==n&&(e.settings.quoteSmart&&Cc(n,o)>Cc(n,e.alternative)&&(o=e.alternative),a=o+kn(n,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Zr.single:Zr.double)[i][s],attribute:!0}))+o),u+(a&&"="+a))}const h_=["<","&"];function Rc(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:kn(e.value,Object.assign({},r.settings.characterReferences,{subset:h_}))}function f_(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Rc(e,t,n,r)}function p_(e,t,n,r){return r.all(e)}const m_=T2("type",{invalid:g_,unknown:b_,handlers:{comment:H2,doctype:z2,element:l_,raw:f_,root:p_,text:Rc}});function g_(e){throw new Error("Expected node, not `"+e+"`")}function b_(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const E_={},y_={},T_=[];function __(e,t){const n=E_,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:k_,all:w_,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||y2,characterReferences:n.characterReferences||y_,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Nn:sr,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function k_(e,t,n){return m_(e,t,n,this)}function w_(e){const t=[],n=e&&e.children||T_;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function A_(e,t){const n=(t==null?void 0:t.restoreAttributes)!==!1,r={type:"root",children:e.children.map(s=>Pt(s,n))},i=__(r);return t!=null&&t.prettyPrint?S_(i):i}function S_(e){const t=new Set(["html","head","body","div","section","article","nav","aside","header","footer","main","ul","ol","table","thead","tbody","tfoot","tr","blockquote","figure"]),n=new Set(["p","h1","h2","h3","h4","h5","h6","li","td","th","figcaption","pre"]),r=new Set(["hr","br","img","input","meta","link"]);let i=0,s="",o=0;for(;o<e.length;)if(e[o]==="<"){const a=e.indexOf(">",o);if(a===-1){s+=e.slice(o);break}const u=e.slice(o,a+1),c=u[1]==="/",d=u[a-o-1]==="/",h=u.match(/^<\/?([a-zA-Z][a-zA-Z0-9]*)/),m=h?h[1].toLowerCase():"";t.has(m)?c?(i=Math.max(0,i-1),s+=`
|
|
22
|
+
`+" ".repeat(i)+u):(s+=`
|
|
23
|
+
`+" ".repeat(i)+u,d||i++):n.has(m)?c?s+=u:s+=`
|
|
24
|
+
`+" ".repeat(i)+u:r.has(m)?s+=`
|
|
25
|
+
`+" ".repeat(i)+u:s+=u,o=a+1}else{const a=e.indexOf("<",o),u=a===-1?e.slice(o):e.slice(o,a);u.trim()&&(s+=u),o=a===-1?e.length:a}return s.trim()}function Pt(e,t){switch(e.type){case"paragraph":return en("p",e,t);case"heading":return C_(e,t);case"blockquote":return en("blockquote",e,t);case"list":return x_(e,t);case"listItem":return N_(e,t);case"codeBlock":return I_(e);case"table":return en("table",e,t);case"tableRow":return v_(e,t);case"tableCell":return O_(e,t);case"thematicBreak":return{type:"element",tagName:"hr",properties:{},children:[]};case"break":return{type:"element",tagName:"br",properties:{},children:[]};case"image":return L_(e,t);case"div":return en("div",e,t);case"figure":return en("figure",e,t);case"figCaption":return en("figcaption",e,t);case"html":return{type:"text",value:e.value};case"text":return D_(e);case"inlineCode":return R_(e);default:return Sn(e)?{type:"text",value:e.value}:Se(e)?en("div",e,t):{type:"text",value:""}}}function en(e,t,n,r){const i={type:"element",tagName:e,properties:{},children:t.children.map(s=>Pt(s,n))};return er(t,i,n),i}function C_(e,t){const n={type:"element",tagName:`h${e.depth}`,properties:{},children:e.children.map(r=>Pt(r,t))};return er(e,n,t),n}function x_(e,t){const r={type:"element",tagName:e.ordered?"ol":"ul",properties:{},children:e.children.map(i=>Pt(i,t))};return e.ordered&&e.start!==void 0&&e.start!==1&&(r.properties.start=e.start),er(e,r,t),r}function N_(e,t){let n;e.children.length===1&&e.children[0].type==="paragraph"?n=e.children[0].children.map(s=>Pt(s,t)):n=e.children.map(i=>Pt(i,t));const r={type:"element",tagName:"li",properties:{},children:n};return er(e,r,t),r}function I_(e,t){const n={};e.lang&&(n.className=[`language-${e.lang}`]);const r={type:"element",tagName:"code",properties:n,children:[{type:"text",value:e.value}]};return{type:"element",tagName:"pre",properties:{},children:[r]}}function v_(e,t){return{type:"element",tagName:"tr",properties:{},children:e.children.map(n=>Pt(n,t))}}function O_(e,t){const r={};e.colspan&&e.colspan>1&&(r.colSpan=e.colspan),e.rowspan&&e.rowspan>1&&(r.rowSpan=e.rowspan);let i;return e.children.length===1&&e.children[0].type==="paragraph"?i=e.children[0].children.map(o=>Pt(o,t)):i=e.children.map(s=>Pt(s,t)),{type:"element",tagName:"td",properties:r,children:i}}function L_(e,t){const n={src:e.url};e.alt&&(n.alt=e.alt),e.title&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return er(e,r,t),r}function R_(e,t){return{type:"element",tagName:"code",properties:{},children:[{type:"text",value:e.value}]}}const P_={strong:"strong",emphasis:"em",underline:"u",strikethrough:"del",superscript:"sup",subscript:"sub",highlight:"mark",code:"code"};function D_(e,t){var s,o;const n={type:"text",value:e.value};if(!e.marks||e.marks.length===0)return n;let r=n;const i=[...e.marks].sort((a,u)=>a.type==="link"?1:u.type==="link"?-1:0);for(const a of i)if(a.type==="link"){const u={};(s=a.attrs)!=null&&s.url&&(u.href=String(a.attrs.url)),(o=a.attrs)!=null&&o.title&&(u.title=String(a.attrs.title)),r={type:"element",tagName:"a",properties:u,children:[r]}}else{const u=P_[a.type];u&&(r={type:"element",tagName:u,properties:{},children:[r]})}return r}function er(e,t,n){var r,i;if((r=e.classes)!=null&&r.length&&(t.properties.className=e.classes),n&&((i=e.data)!=null&&i.html)){const s=e.data.html;for(const[o,a]of Object.entries(s))t.properties[o]=a}}function Jr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Zs={exports:{}};/*!
|
|
26
|
+
|
|
27
|
+
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
28
|
+
<http://stuartk.com/jszip>
|
|
29
|
+
|
|
30
|
+
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
31
|
+
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
32
|
+
|
|
33
|
+
JSZip uses the library pako released under the MIT license :
|
|
34
|
+
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
35
|
+
*/var Pc;function M_(){return Pc||(Pc=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,i,s){function o(c,d){if(!i[c]){if(!r[c]){var h=typeof Jr=="function"&&Jr;if(!d&&h)return h(c,!0);if(a)return a(c,!0);var m=new Error("Cannot find module '"+c+"'");throw m.code="MODULE_NOT_FOUND",m}var f=i[c]={exports:{}};r[c][0].call(f.exports,function(E){var g=r[c][1][E];return o(g||E)},f,f.exports,n,r,i,s)}return i[c].exports}for(var a=typeof Jr=="function"&&Jr,u=0;u<s.length;u++)o(s[u]);return o})({1:[function(n,r,i){var s=n("./utils"),o=n("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(u){for(var c,d,h,m,f,E,g,_=[],p=0,y=u.length,S=y,L=s.getTypeOf(u)!=="string";p<u.length;)S=y-p,h=L?(c=u[p++],d=p<y?u[p++]:0,p<y?u[p++]:0):(c=u.charCodeAt(p++),d=p<y?u.charCodeAt(p++):0,p<y?u.charCodeAt(p++):0),m=c>>2,f=(3&c)<<4|d>>4,E=1<S?(15&d)<<2|h>>6:64,g=2<S?63&h:64,_.push(a.charAt(m)+a.charAt(f)+a.charAt(E)+a.charAt(g));return _.join("")},i.decode=function(u){var c,d,h,m,f,E,g=0,_=0,p="data:";if(u.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var y,S=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===a.charAt(64)&&S--,u.charAt(u.length-2)===a.charAt(64)&&S--,S%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=o.uint8array?new Uint8Array(0|S):new Array(0|S);g<u.length;)c=a.indexOf(u.charAt(g++))<<2|(m=a.indexOf(u.charAt(g++)))>>4,d=(15&m)<<4|(f=a.indexOf(u.charAt(g++)))>>2,h=(3&f)<<6|(E=a.indexOf(u.charAt(g++))),y[_++]=c,f!==64&&(y[_++]=d),E!==64&&(y[_++]=h);return y}},{"./support":30,"./utils":32}],2:[function(n,r,i){var s=n("./external"),o=n("./stream/DataWorker"),a=n("./stream/Crc32Probe"),u=n("./stream/DataLengthProbe");function c(d,h,m,f,E){this.compressedSize=d,this.uncompressedSize=h,this.crc32=m,this.compression=f,this.compressedContent=E}c.prototype={getContentWorker:function(){var d=new o(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),h=this;return d.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new o(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(d,h,m){return d.pipe(new a).pipe(new u("uncompressedSize")).pipe(h.compressWorker(m)).pipe(new u("compressedSize")).withStreamInfo("compression",h)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var s=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var s=n("./utils"),o=(function(){for(var a,u=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;u[c]=a}return u})();r.exports=function(a,u){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?(function(c,d,h,m){var f=o,E=m+h;c^=-1;for(var g=m;g<E;g++)c=c>>>8^f[255&(c^d[g])];return-1^c})(0|u,a,a.length,0):(function(c,d,h,m){var f=o,E=m+h;c^=-1;for(var g=m;g<E;g++)c=c>>>8^f[255&(c^d.charCodeAt(g))];return-1^c})(0|u,a,a.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var s=null;s=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:s}},{lie:37}],7:[function(n,r,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=n("pako"),a=n("./utils"),u=n("./stream/GenericWorker"),c=s?"uint8array":"array";function d(h,m){u.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=m,this.meta={}}i.magic="\b\0",a.inherits(d,u),d.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(c,h.data),!1)},d.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(m){h.push({data:m,meta:h.meta})}},i.compressWorker=function(h){return new d("Deflate",h)},i.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function s(f,E){var g,_="";for(g=0;g<E;g++)_+=String.fromCharCode(255&f),f>>>=8;return _}function o(f,E,g,_,p,y){var S,L,D=f.file,B=f.compression,C=y!==c.utf8encode,x=a.transformTo("string",y(D.name)),k=a.transformTo("string",c.utf8encode(D.name)),P=D.comment,R=a.transformTo("string",y(P)),A=a.transformTo("string",c.utf8encode(P)),M=k.length!==D.name.length,T=A.length!==P.length,U="",W="",G="",se=D.dir,Z=D.date,he={crc32:0,compressedSize:0,uncompressedSize:0};E&&!g||(he.crc32=f.crc32,he.compressedSize=f.compressedSize,he.uncompressedSize=f.uncompressedSize);var j=0;E&&(j|=8),C||!M&&!T||(j|=2048);var $=0,oe=0;se&&($|=16),p==="UNIX"?(oe=798,$|=(function(ie,Re){var Qe=ie;return ie||(Qe=Re?16893:33204),(65535&Qe)<<16})(D.unixPermissions,se)):(oe=20,$|=(function(ie){return 63&(ie||0)})(D.dosPermissions)),S=Z.getUTCHours(),S<<=6,S|=Z.getUTCMinutes(),S<<=5,S|=Z.getUTCSeconds()/2,L=Z.getUTCFullYear()-1980,L<<=4,L|=Z.getUTCMonth()+1,L<<=5,L|=Z.getUTCDate(),M&&(W=s(1,1)+s(d(x),4)+k,U+="up"+s(W.length,2)+W),T&&(G=s(1,1)+s(d(R),4)+A,U+="uc"+s(G.length,2)+G);var ae="";return ae+=`
|
|
36
|
+
\0`,ae+=s(j,2),ae+=B.magic,ae+=s(S,2),ae+=s(L,2),ae+=s(he.crc32,4),ae+=s(he.compressedSize,4),ae+=s(he.uncompressedSize,4),ae+=s(x.length,2),ae+=s(U.length,2),{fileRecord:h.LOCAL_FILE_HEADER+ae+x+U,dirRecord:h.CENTRAL_FILE_HEADER+s(oe,2)+ae+s(R.length,2)+"\0\0\0\0"+s($,4)+s(_,4)+x+U+R}}var a=n("../utils"),u=n("../stream/GenericWorker"),c=n("../utf8"),d=n("../crc32"),h=n("../signature");function m(f,E,g,_){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=E,this.zipPlatform=g,this.encodeFileName=_,this.streamFiles=f,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(m,u),m.prototype.push=function(f){var E=f.meta.percent||0,g=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(f):(this.bytesWritten+=f.data.length,u.prototype.push.call(this,{data:f.data,meta:{currentFile:this.currentFile,percent:g?(E+100*(g-_-1))/g:100}}))},m.prototype.openedSource=function(f){this.currentSourceOffset=this.bytesWritten,this.currentFile=f.file.name;var E=this.streamFiles&&!f.file.dir;if(E){var g=o(f,E,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(f){this.accumulate=!1;var E=this.streamFiles&&!f.file.dir,g=o(f,E,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),E)this.push({data:(function(_){return h.DATA_DESCRIPTOR+s(_.crc32,4)+s(_.compressedSize,4)+s(_.uncompressedSize,4)})(f),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var f=this.bytesWritten,E=0;E<this.dirRecords.length;E++)this.push({data:this.dirRecords[E],meta:{percent:100}});var g=this.bytesWritten-f,_=(function(p,y,S,L,D){var B=a.transformTo("string",D(L));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(p,2)+s(p,2)+s(y,4)+s(S,4)+s(B.length,2)+B})(this.dirRecords.length,g,f,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(f){this._sources.push(f);var E=this;return f.on("data",function(g){E.processChunk(g)}),f.on("end",function(){E.closedSource(E.previous.streamInfo),E._sources.length?E.prepareNextSource():E.end()}),f.on("error",function(g){E.error(g)}),this},m.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(f){var E=this._sources;if(!u.prototype.error.call(this,f))return!1;for(var g=0;g<E.length;g++)try{E[g].error(f)}catch{}return!0},m.prototype.lock=function(){u.prototype.lock.call(this);for(var f=this._sources,E=0;E<f.length;E++)f[E].lock()},r.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var s=n("../compressions"),o=n("./ZipFileWorker");i.generateWorker=function(a,u,c){var d=new o(u.streamFiles,c,u.platform,u.encodeFileName),h=0;try{a.forEach(function(m,f){h++;var E=(function(y,S){var L=y||S,D=s[L];if(!D)throw new Error(L+" is not a valid compression method !");return D})(f.options.compression,u.compression),g=f.options.compressionOptions||u.compressionOptions||{},_=f.dir,p=f.date;f._compressWorker(E,g).withStreamInfo("file",{name:m,dir:_,date:p,comment:f.comment||"",unixPermissions:f.unixPermissions,dosPermissions:f.dosPermissions}).pipe(d)}),d.entriesCount=h}catch(m){d.error(m)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new s;for(var a in this)typeof this[a]!="function"&&(o[a]=this[a]);return o}}(s.prototype=n("./object")).loadAsync=n("./load"),s.support=n("./support"),s.defaults=n("./defaults"),s.version="3.10.1",s.loadAsync=function(o,a){return new s().loadAsync(o,a)},s.external=n("./external"),r.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var s=n("./utils"),o=n("./external"),a=n("./utf8"),u=n("./zipEntries"),c=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function h(m){return new o.Promise(function(f,E){var g=m.decompressed.getContentWorker().pipe(new c);g.on("error",function(_){E(_)}).on("end",function(){g.streamInfo.crc32!==m.decompressed.crc32?E(new Error("Corrupted zip : CRC32 mismatch")):f()}).resume()})}r.exports=function(m,f){var E=this;return f=s.extend(f||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),d.isNode&&d.isStream(m)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):s.prepareContent("the loaded zip file",m,!0,f.optimizedBinaryString,f.base64).then(function(g){var _=new u(f);return _.load(g),_}).then(function(g){var _=[o.Promise.resolve(g)],p=g.files;if(f.checkCRC32)for(var y=0;y<p.length;y++)_.push(h(p[y]));return o.Promise.all(_)}).then(function(g){for(var _=g.shift(),p=_.files,y=0;y<p.length;y++){var S=p[y],L=S.fileNameStr,D=s.resolve(S.fileNameStr);E.file(D,S.decompressed,{binary:!0,optimizedBinaryString:!0,date:S.date,dir:S.dir,comment:S.fileCommentStr.length?S.fileCommentStr:null,unixPermissions:S.unixPermissions,dosPermissions:S.dosPermissions,createFolders:f.createFolders}),S.dir||(E.file(D).unsafeOriginalName=L)}return _.zipComment.length&&(E.comment=_.zipComment),E})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var s=n("../utils"),o=n("../stream/GenericWorker");function a(u,c){o.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(c)}s.inherits(a,o),a.prototype._bindStream=function(u){var c=this;(this._stream=u).pause(),u.on("data",function(d){c.push({data:d,meta:{percent:0}})}).on("error",function(d){c.isPaused?this.generatedError=d:c.error(d)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},a.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var s=n("readable-stream").Readable;function o(a,u,c){s.call(this,u),this._helper=a;var d=this;a.on("data",function(h,m){d.push(h)||d._helper.pause(),c&&c(m)}).on("error",function(h){d.emit("error",h)}).on("end",function(){d.push(null)})}n("../utils").inherits(o,s),o.prototype._read=function(){this._helper.resume()},r.exports=o},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(s,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(s,o);if(typeof s=="number")throw new Error('The "data" argument must not be a number');return new Buffer(s,o)},allocBuffer:function(s){if(Buffer.alloc)return Buffer.alloc(s);var o=new Buffer(s);return o.fill(0),o},isBuffer:function(s){return Buffer.isBuffer(s)},isStream:function(s){return s&&typeof s.on=="function"&&typeof s.pause=="function"&&typeof s.resume=="function"}}},{}],15:[function(n,r,i){function s(D,B,C){var x,k=a.getTypeOf(B),P=a.extend(C||{},d);P.date=P.date||new Date,P.compression!==null&&(P.compression=P.compression.toUpperCase()),typeof P.unixPermissions=="string"&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(D=p(D)),P.createFolders&&(x=_(D))&&y.call(this,x,!0);var R=k==="string"&&P.binary===!1&&P.base64===!1;C&&C.binary!==void 0||(P.binary=!R),(B instanceof h&&B.uncompressedSize===0||P.dir||!B||B.length===0)&&(P.base64=!1,P.binary=!0,B="",P.compression="STORE",k="string");var A=null;A=B instanceof h||B instanceof u?B:E.isNode&&E.isStream(B)?new g(D,B):a.prepareContent(D,B,P.binary,P.optimizedBinaryString,P.base64);var M=new m(D,A,P);this.files[D]=M}var o=n("./utf8"),a=n("./utils"),u=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),d=n("./defaults"),h=n("./compressedObject"),m=n("./zipObject"),f=n("./generate"),E=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),_=function(D){D.slice(-1)==="/"&&(D=D.substring(0,D.length-1));var B=D.lastIndexOf("/");return 0<B?D.substring(0,B):""},p=function(D){return D.slice(-1)!=="/"&&(D+="/"),D},y=function(D,B){return B=B!==void 0?B:d.createFolders,D=p(D),this.files[D]||s.call(this,D,null,{dir:!0,createFolders:B}),this.files[D]};function S(D){return Object.prototype.toString.call(D)==="[object RegExp]"}var L={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(D){var B,C,x;for(B in this.files)x=this.files[B],(C=B.slice(this.root.length,B.length))&&B.slice(0,this.root.length)===this.root&&D(C,x)},filter:function(D){var B=[];return this.forEach(function(C,x){D(C,x)&&B.push(x)}),B},file:function(D,B,C){if(arguments.length!==1)return D=this.root+D,s.call(this,D,B,C),this;if(S(D)){var x=D;return this.filter(function(P,R){return!R.dir&&x.test(P)})}var k=this.files[this.root+D];return k&&!k.dir?k:null},folder:function(D){if(!D)return this;if(S(D))return this.filter(function(k,P){return P.dir&&D.test(k)});var B=this.root+D,C=y.call(this,B),x=this.clone();return x.root=C.name,x},remove:function(D){D=this.root+D;var B=this.files[D];if(B||(D.slice(-1)!=="/"&&(D+="/"),B=this.files[D]),B&&!B.dir)delete this.files[D];else for(var C=this.filter(function(k,P){return P.name.slice(0,D.length)===D}),x=0;x<C.length;x++)delete this.files[C[x].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(D){var B,C={};try{if((C=a.extend(D||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=C.type.toLowerCase(),C.compression=C.compression.toUpperCase(),C.type==="binarystring"&&(C.type="string"),!C.type)throw new Error("No output type specified.");a.checkSupport(C.type),C.platform!=="darwin"&&C.platform!=="freebsd"&&C.platform!=="linux"&&C.platform!=="sunos"||(C.platform="UNIX"),C.platform==="win32"&&(C.platform="DOS");var x=C.comment||this.comment||"";B=f.generateWorker(this,C,x)}catch(k){(B=new u("error")).error(k)}return new c(B,C.type||"string",C.mimeType)},generateAsync:function(D,B){return this.generateInternalStream(D).accumulate(B)},generateNodeStream:function(D,B){return(D=D||{}).type||(D.type="nodebuffer"),this.generateInternalStream(D).toNodejsStream(B)}};r.exports=L},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var s=n("./DataReader");function o(a){s.call(this,a);for(var u=0;u<this.data.length;u++)a[u]=255&a[u]}n("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data[this.zero+a]},o.prototype.lastIndexOfSignature=function(a){for(var u=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),h=a.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===u&&this.data[m+1]===c&&this.data[m+2]===d&&this.data[m+3]===h)return m-this.zero;return-1},o.prototype.readAndCheckSignature=function(a){var u=a.charCodeAt(0),c=a.charCodeAt(1),d=a.charCodeAt(2),h=a.charCodeAt(3),m=this.readData(4);return u===m[0]&&c===m[1]&&d===m[2]&&h===m[3]},o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var s=n("../utils");function o(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var u,c=0;for(this.checkOffset(a),u=this.index+a-1;u>=this.index;u--)c=(c<<8)+this.byteAt(u);return this.index+=a,c},readString:function(a){return s.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=o},{"../utils":32}],19:[function(n,r,i){var s=n("./Uint8ArrayReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var s=n("./DataReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},o.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},o.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},o.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var s=n("./ArrayReader");function o(a){s.call(this,a)}n("../utils").inherits(o,s),o.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},r.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var s=n("../utils"),o=n("../support"),a=n("./ArrayReader"),u=n("./StringReader"),c=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(h){var m=s.getTypeOf(h);return s.checkSupport(m),m!=="string"||o.uint8array?m==="nodebuffer"?new c(h):o.uint8array?new d(s.transformTo("uint8array",h)):new a(s.transformTo("array",h)):new u(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var s=n("./GenericWorker"),o=n("../utils");function a(u){s.call(this,"ConvertWorker to "+u),this.destType=u}o.inherits(a,s),a.prototype.processChunk=function(u){this.push({data:o.transformTo(this.destType,u.data),meta:u.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var s=n("./GenericWorker"),o=n("../crc32");function a(){s.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,s),a.prototype.processChunk=function(u){this.streamInfo.crc32=o(u.data,this.streamInfo.crc32||0),this.push(u)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var s=n("../utils"),o=n("./GenericWorker");function a(u){o.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}s.inherits(a,o),a.prototype.processChunk=function(u){if(u){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+u.data.length}o.prototype.processChunk.call(this,u)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var s=n("../utils"),o=n("./GenericWorker");function a(u){o.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(d){c.dataIsReady=!0,c.data=d,c.max=d&&d.length||0,c.type=s.getTypeOf(d),c.isPaused||c._tickAndRepeat()},function(d){c.error(d)})}s.inherits(a,o),a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,s.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(s.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,c);break;case"uint8array":u=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":u=this.data.slice(this.index,c)}return this.index=c,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function s(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}s.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,a){return this._listeners[o].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,a){if(this._listeners[o])for(var u=0;u<this._listeners[o].length;u++)this._listeners[o][u].call(this,a)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var a=this;return o.on("data",function(u){a.processChunk(u)}),o.on("end",function(){a.end()}),o.on("error",function(u){a.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,a){return this.extraStreamInfo[o]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},r.exports=s},{}],29:[function(n,r,i){var s=n("../utils"),o=n("./ConvertWorker"),a=n("./GenericWorker"),u=n("../base64"),c=n("../support"),d=n("../external"),h=null;if(c.nodestream)try{h=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(E,g){return new d.Promise(function(_,p){var y=[],S=E._internalType,L=E._outputType,D=E._mimeType;E.on("data",function(B,C){y.push(B),g&&g(C)}).on("error",function(B){y=[],p(B)}).on("end",function(){try{var B=(function(C,x,k){switch(C){case"blob":return s.newBlob(s.transformTo("arraybuffer",x),k);case"base64":return u.encode(x);default:return s.transformTo(C,x)}})(L,(function(C,x){var k,P=0,R=null,A=0;for(k=0;k<x.length;k++)A+=x[k].length;switch(C){case"string":return x.join("");case"array":return Array.prototype.concat.apply([],x);case"uint8array":for(R=new Uint8Array(A),k=0;k<x.length;k++)R.set(x[k],P),P+=x[k].length;return R;case"nodebuffer":return Buffer.concat(x);default:throw new Error("concat : unsupported type '"+C+"'")}})(S,y),D);_(B)}catch(C){p(C)}y=[]}).resume()})}function f(E,g,_){var p=g;switch(g){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=g,this._mimeType=_,s.checkSupport(p),this._worker=E.pipe(new o(p)),E.lock()}catch(y){this._worker=new a("error"),this._worker.error(y)}}f.prototype={accumulate:function(E){return m(this,E)},on:function(E,g){var _=this;return E==="data"?this._worker.on(E,function(p){g.call(_,p.data,p.meta)}):this._worker.on(E,function(){s.delay(g,arguments,_)}),this},resume:function(){return s.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(E){if(s.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},E)}},r.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var s=new ArrayBuffer(0);try{i.blob=new Blob([s],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(s),i.blob=o.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var s=n("./utils"),o=n("./support"),a=n("./nodejsUtils"),u=n("./stream/GenericWorker"),c=new Array(256),d=0;d<256;d++)c[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;c[254]=c[254]=1;function h(){u.call(this,"utf-8 decode"),this.leftOver=null}function m(){u.call(this,"utf-8 encode")}i.utf8encode=function(f){return o.nodebuffer?a.newBufferFrom(f,"utf-8"):(function(E){var g,_,p,y,S,L=E.length,D=0;for(y=0;y<L;y++)(64512&(_=E.charCodeAt(y)))==55296&&y+1<L&&(64512&(p=E.charCodeAt(y+1)))==56320&&(_=65536+(_-55296<<10)+(p-56320),y++),D+=_<128?1:_<2048?2:_<65536?3:4;for(g=o.uint8array?new Uint8Array(D):new Array(D),y=S=0;S<D;y++)(64512&(_=E.charCodeAt(y)))==55296&&y+1<L&&(64512&(p=E.charCodeAt(y+1)))==56320&&(_=65536+(_-55296<<10)+(p-56320),y++),_<128?g[S++]=_:(_<2048?g[S++]=192|_>>>6:(_<65536?g[S++]=224|_>>>12:(g[S++]=240|_>>>18,g[S++]=128|_>>>12&63),g[S++]=128|_>>>6&63),g[S++]=128|63&_);return g})(f)},i.utf8decode=function(f){return o.nodebuffer?s.transformTo("nodebuffer",f).toString("utf-8"):(function(E){var g,_,p,y,S=E.length,L=new Array(2*S);for(g=_=0;g<S;)if((p=E[g++])<128)L[_++]=p;else if(4<(y=c[p]))L[_++]=65533,g+=y-1;else{for(p&=y===2?31:y===3?15:7;1<y&&g<S;)p=p<<6|63&E[g++],y--;1<y?L[_++]=65533:p<65536?L[_++]=p:(p-=65536,L[_++]=55296|p>>10&1023,L[_++]=56320|1023&p)}return L.length!==_&&(L.subarray?L=L.subarray(0,_):L.length=_),s.applyFromCharCode(L)})(f=s.transformTo(o.uint8array?"uint8array":"array",f))},s.inherits(h,u),h.prototype.processChunk=function(f){var E=s.transformTo(o.uint8array?"uint8array":"array",f.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var g=E;(E=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),E.set(g,this.leftOver.length)}else E=this.leftOver.concat(E);this.leftOver=null}var _=(function(y,S){var L;for((S=S||y.length)>y.length&&(S=y.length),L=S-1;0<=L&&(192&y[L])==128;)L--;return L<0||L===0?S:L+c[y[L]]>S?L:S})(E),p=E;_!==E.length&&(o.uint8array?(p=E.subarray(0,_),this.leftOver=E.subarray(_,E.length)):(p=E.slice(0,_),this.leftOver=E.slice(_,E.length))),this.push({data:i.utf8decode(p),meta:f.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,s.inherits(m,u),m.prototype.processChunk=function(f){this.push({data:i.utf8encode(f.data),meta:f.meta})},i.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var s=n("./support"),o=n("./base64"),a=n("./nodejsUtils"),u=n("./external");function c(g){return g}function d(g,_){for(var p=0;p<g.length;++p)_[p]=255&g.charCodeAt(p);return _}n("setimmediate"),i.newBlob=function(g,_){i.checkSupport("blob");try{return new Blob([g],{type:_})}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(g),p.getBlob(_)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(g,_,p){var y=[],S=0,L=g.length;if(L<=p)return String.fromCharCode.apply(null,g);for(;S<L;)_==="array"||_==="nodebuffer"?y.push(String.fromCharCode.apply(null,g.slice(S,Math.min(S+p,L)))):y.push(String.fromCharCode.apply(null,g.subarray(S,Math.min(S+p,L)))),S+=p;return y.join("")},stringifyByChar:function(g){for(var _="",p=0;p<g.length;p++)_+=String.fromCharCode(g[p]);return _},applyCanBeUsed:{uint8array:(function(){try{return s.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return s.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function m(g){var _=65536,p=i.getTypeOf(g),y=!0;if(p==="uint8array"?y=h.applyCanBeUsed.uint8array:p==="nodebuffer"&&(y=h.applyCanBeUsed.nodebuffer),y)for(;1<_;)try{return h.stringifyByChunk(g,p,_)}catch{_=Math.floor(_/2)}return h.stringifyByChar(g)}function f(g,_){for(var p=0;p<g.length;p++)_[p]=g[p];return _}i.applyFromCharCode=m;var E={};E.string={string:c,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return E.string.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:function(g){return d(g,a.allocBuffer(g.length))}},E.array={string:m,array:c,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(g)}},E.arraybuffer={string:function(g){return m(new Uint8Array(g))},array:function(g){return f(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:c,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return a.newBufferFrom(new Uint8Array(g))}},E.uint8array={string:m,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:c,nodebuffer:function(g){return a.newBufferFrom(g)}},E.nodebuffer={string:m,array:function(g){return f(g,new Array(g.length))},arraybuffer:function(g){return E.nodebuffer.uint8array(g).buffer},uint8array:function(g){return f(g,new Uint8Array(g.length))},nodebuffer:c},i.transformTo=function(g,_){if(_=_||"",!g)return _;i.checkSupport(g);var p=i.getTypeOf(_);return E[p][g](_)},i.resolve=function(g){for(var _=g.split("/"),p=[],y=0;y<_.length;y++){var S=_[y];S==="."||S===""&&y!==0&&y!==_.length-1||(S===".."?p.pop():p.push(S))}return p.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":s.nodebuffer&&a.isBuffer(g)?"nodebuffer":s.uint8array&&g instanceof Uint8Array?"uint8array":s.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!s[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var _,p,y="";for(p=0;p<(g||"").length;p++)y+="\\x"+((_=g.charCodeAt(p))<16?"0":"")+_.toString(16).toUpperCase();return y},i.delay=function(g,_,p){setImmediate(function(){g.apply(p||null,_||[])})},i.inherits=function(g,_){function p(){}p.prototype=_.prototype,g.prototype=new p},i.extend=function(){var g,_,p={};for(g=0;g<arguments.length;g++)for(_ in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],_)&&p[_]===void 0&&(p[_]=arguments[g][_]);return p},i.prepareContent=function(g,_,p,y,S){return u.Promise.resolve(_).then(function(L){return s.blob&&(L instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(L))!==-1)&&typeof FileReader<"u"?new u.Promise(function(D,B){var C=new FileReader;C.onload=function(x){D(x.target.result)},C.onerror=function(x){B(x.target.error)},C.readAsArrayBuffer(L)}):L}).then(function(L){var D=i.getTypeOf(L);return D?(D==="arraybuffer"?L=i.transformTo("uint8array",L):D==="string"&&(S?L=o.decode(L):p&&y!==!0&&(L=(function(B){return d(B,s.uint8array?new Uint8Array(B.length):new Array(B.length))})(L))),L):u.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var s=n("./reader/readerFor"),o=n("./utils"),a=n("./signature"),u=n("./zipEntry"),c=n("./support");function d(h){this.files=[],this.loadOptions=h}d.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(m)+", expected "+o.pretty(h)+")")}},isSignature:function(h,m){var f=this.reader.index;this.reader.setIndex(h);var E=this.reader.readString(4)===m;return this.reader.setIndex(f),E},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),m=c.uint8array?"uint8array":"array",f=o.transformTo(m,h);this.zipComment=this.loadOptions.decodeFileName(f)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,m,f,E=this.zip64EndOfCentralSize-44;0<E;)h=this.reader.readInt(2),m=this.reader.readInt(4),f=this.reader.readData(m),this.zip64ExtensibleData[h]={id:h,length:m,value:f}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,m;for(h=0;h<this.files.length;h++)m=this.files[h],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(h=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var m=h;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var E=m-f;if(0<E)this.isSignature(m,a.CENTRAL_FILE_HEADER)||(this.reader.zero=E);else if(E<0)throw new Error("Corrupted zip: missing "+Math.abs(E)+" bytes.")},prepareReader:function(h){this.reader=s(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var s=n("./reader/readerFor"),o=n("./utils"),a=n("./compressedObject"),u=n("./crc32"),c=n("./utf8"),d=n("./compressions"),h=n("./support");function m(f,E){this.options=f,this.loadOptions=E}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(f){var E,g;if(f.skip(22),this.fileNameLength=f.readInt(2),g=f.readInt(2),this.fileName=f.readData(this.fileNameLength),f.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((E=(function(_){for(var p in d)if(Object.prototype.hasOwnProperty.call(d,p)&&d[p].magic===_)return d[p];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,E,f.readData(this.compressedSize))},readCentralPart:function(f){this.versionMadeBy=f.readInt(2),f.skip(2),this.bitFlag=f.readInt(2),this.compressionMethod=f.readString(2),this.date=f.readDate(),this.crc32=f.readInt(4),this.compressedSize=f.readInt(4),this.uncompressedSize=f.readInt(4);var E=f.readInt(2);if(this.extraFieldsLength=f.readInt(2),this.fileCommentLength=f.readInt(2),this.diskNumberStart=f.readInt(2),this.internalFileAttributes=f.readInt(2),this.externalFileAttributes=f.readInt(4),this.localHeaderOffset=f.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");f.skip(E),this.readExtraFields(f),this.parseZIP64ExtraField(f),this.fileComment=f.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var f=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),f==0&&(this.dosPermissions=63&this.externalFileAttributes),f==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var f=s(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=f.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=f.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=f.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=f.readInt(4))}},readExtraFields:function(f){var E,g,_,p=f.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});f.index+4<p;)E=f.readInt(2),g=f.readInt(2),_=f.readData(g),this.extraFields[E]={id:E,length:g,value:_};f.setIndex(p)},handleUTF8:function(){var f=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var E=this.findExtraFieldUnicodePath();if(E!==null)this.fileNameStr=E;else{var g=o.transformTo(f,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var _=this.findExtraFieldUnicodeComment();if(_!==null)this.fileCommentStr=_;else{var p=o.transformTo(f,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var f=this.extraFields[28789];if(f){var E=s(f.value);return E.readInt(1)!==1||u(this.fileName)!==E.readInt(4)?null:c.utf8decode(E.readData(f.length-5))}return null},findExtraFieldUnicodeComment:function(){var f=this.extraFields[25461];if(f){var E=s(f.value);return E.readInt(1)!==1||u(this.fileComment)!==E.readInt(4)?null:c.utf8decode(E.readData(f.length-5))}return null}},r.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function s(E,g,_){this.name=E,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=g,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}}var o=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),u=n("./utf8"),c=n("./compressedObject"),d=n("./stream/GenericWorker");s.prototype={internalStream:function(E){var g=null,_="string";try{if(!E)throw new Error("No output type specified.");var p=(_=E.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),g=this._decompressWorker();var y=!this._dataBinary;y&&!p&&(g=g.pipe(new u.Utf8EncodeWorker)),!y&&p&&(g=g.pipe(new u.Utf8DecodeWorker))}catch(S){(g=new d("error")).error(S)}return new o(g,_,"")},async:function(E,g){return this.internalStream(E).accumulate(g)},nodeStream:function(E,g){return this.internalStream(E||"nodebuffer").toNodejsStream(g)},_compressWorker:function(E,g){if(this._data instanceof c&&this._data.compression.magic===E.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new u.Utf8EncodeWorker)),c.createWorkerFrom(_,E,g)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof d?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<h.length;f++)s.prototype[h[f]]=m;r.exports=s},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(s){var o,a,u=s.MutationObserver||s.WebKitMutationObserver;if(u){var c=0,d=new u(E),h=s.document.createTextNode("");d.observe(h,{characterData:!0}),o=function(){h.data=c=++c%2}}else if(s.setImmediate||s.MessageChannel===void 0)o="document"in s&&"onreadystatechange"in s.document.createElement("script")?function(){var g=s.document.createElement("script");g.onreadystatechange=function(){E(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},s.document.documentElement.appendChild(g)}:function(){setTimeout(E,0)};else{var m=new s.MessageChannel;m.port1.onmessage=E,o=function(){m.port2.postMessage(0)}}var f=[];function E(){var g,_;a=!0;for(var p=f.length;p;){for(_=f,f=[],g=-1;++g<p;)_[g]();p=f.length}a=!1}r.exports=function(g){f.push(g)!==1||a||o()}}).call(this,typeof Ir<"u"?Ir:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var s=n("immediate");function o(){}var a={},u=["REJECTED"],c=["FULFILLED"],d=["PENDING"];function h(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,p!==o&&g(this,p)}function m(p,y,S){this.promise=p,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof S=="function"&&(this.onRejected=S,this.callRejected=this.otherCallRejected)}function f(p,y,S){s(function(){var L;try{L=y(S)}catch(D){return a.reject(p,D)}L===p?a.reject(p,new TypeError("Cannot resolve promise with itself")):a.resolve(p,L)})}function E(p){var y=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof y=="function")return function(){y.apply(p,arguments)}}function g(p,y){var S=!1;function L(C){S||(S=!0,a.reject(p,C))}function D(C){S||(S=!0,a.resolve(p,C))}var B=_(function(){y(D,L)});B.status==="error"&&L(B.value)}function _(p,y){var S={};try{S.value=p(y),S.status="success"}catch(L){S.status="error",S.value=L}return S}(r.exports=h).prototype.finally=function(p){if(typeof p!="function")return this;var y=this.constructor;return this.then(function(S){return y.resolve(p()).then(function(){return S})},function(S){return y.resolve(p()).then(function(){throw S})})},h.prototype.catch=function(p){return this.then(null,p)},h.prototype.then=function(p,y){if(typeof p!="function"&&this.state===c||typeof y!="function"&&this.state===u)return this;var S=new this.constructor(o);return this.state!==d?f(S,this.state===c?p:y,this.outcome):this.queue.push(new m(S,p,y)),S},m.prototype.callFulfilled=function(p){a.resolve(this.promise,p)},m.prototype.otherCallFulfilled=function(p){f(this.promise,this.onFulfilled,p)},m.prototype.callRejected=function(p){a.reject(this.promise,p)},m.prototype.otherCallRejected=function(p){f(this.promise,this.onRejected,p)},a.resolve=function(p,y){var S=_(E,y);if(S.status==="error")return a.reject(p,S.value);var L=S.value;if(L)g(p,L);else{p.state=c,p.outcome=y;for(var D=-1,B=p.queue.length;++D<B;)p.queue[D].callFulfilled(y)}return p},a.reject=function(p,y){p.state=u,p.outcome=y;for(var S=-1,L=p.queue.length;++S<L;)p.queue[S].callRejected(y);return p},h.resolve=function(p){return p instanceof this?p:a.resolve(new this(o),p)},h.reject=function(p){var y=new this(o);return a.reject(y,p)},h.all=function(p){var y=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=p.length,L=!1;if(!S)return this.resolve([]);for(var D=new Array(S),B=0,C=-1,x=new this(o);++C<S;)k(p[C],C);return x;function k(P,R){y.resolve(P).then(function(A){D[R]=A,++B!==S||L||(L=!0,a.resolve(x,D))},function(A){L||(L=!0,a.reject(x,A))})}},h.race=function(p){var y=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=p.length,L=!1;if(!S)return this.resolve([]);for(var D=-1,B=new this(o);++D<S;)C=p[D],y.resolve(C).then(function(x){L||(L=!0,a.resolve(B,x))},function(x){L||(L=!0,a.reject(B,x))});var C;return B}},{immediate:36}],38:[function(n,r,i){var s={};(0,n("./lib/utils/common").assign)(s,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=s},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var s=n("./zlib/deflate"),o=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/messages"),c=n("./zlib/zstream"),d=Object.prototype.toString,h=0,m=-1,f=0,E=8;function g(p){if(!(this instanceof g))return new g(p);this.options=o.assign({level:m,method:E,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},p||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var S=s.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(S!==h)throw new Error(u[S]);if(y.header&&s.deflateSetHeader(this.strm,y.header),y.dictionary){var L;if(L=typeof y.dictionary=="string"?a.string2buf(y.dictionary):d.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(S=s.deflateSetDictionary(this.strm,L))!==h)throw new Error(u[S]);this._dict_set=!0}}function _(p,y){var S=new g(y);if(S.push(p,!0),S.err)throw S.msg||u[S.err];return S.result}g.prototype.push=function(p,y){var S,L,D=this.strm,B=this.options.chunkSize;if(this.ended)return!1;L=y===~~y?y:y===!0?4:0,typeof p=="string"?D.input=a.string2buf(p):d.call(p)==="[object ArrayBuffer]"?D.input=new Uint8Array(p):D.input=p,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new o.Buf8(B),D.next_out=0,D.avail_out=B),(S=s.deflate(D,L))!==1&&S!==h)return this.onEnd(S),!(this.ended=!0);D.avail_out!==0&&(D.avail_in!==0||L!==4&&L!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(o.shrinkBuf(D.output,D.next_out))):this.onData(o.shrinkBuf(D.output,D.next_out)))}while((0<D.avail_in||D.avail_out===0)&&S!==1);return L===4?(S=s.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===h):L!==2||(this.onEnd(h),!(D.avail_out=0))},g.prototype.onData=function(p){this.chunks.push(p)},g.prototype.onEnd=function(p){p===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},i.Deflate=g,i.deflate=_,i.deflateRaw=function(p,y){return(y=y||{}).raw=!0,_(p,y)},i.gzip=function(p,y){return(y=y||{}).gzip=!0,_(p,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var s=n("./zlib/inflate"),o=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/constants"),c=n("./zlib/messages"),d=n("./zlib/zstream"),h=n("./zlib/gzheader"),m=Object.prototype.toString;function f(g){if(!(this instanceof f))return new f(g);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},g||{});var _=this.options;_.raw&&0<=_.windowBits&&_.windowBits<16&&(_.windowBits=-_.windowBits,_.windowBits===0&&(_.windowBits=-15)),!(0<=_.windowBits&&_.windowBits<16)||g&&g.windowBits||(_.windowBits+=32),15<_.windowBits&&_.windowBits<48&&(15&_.windowBits)==0&&(_.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var p=s.inflateInit2(this.strm,_.windowBits);if(p!==u.Z_OK)throw new Error(c[p]);this.header=new h,s.inflateGetHeader(this.strm,this.header)}function E(g,_){var p=new f(_);if(p.push(g,!0),p.err)throw p.msg||c[p.err];return p.result}f.prototype.push=function(g,_){var p,y,S,L,D,B,C=this.strm,x=this.options.chunkSize,k=this.options.dictionary,P=!1;if(this.ended)return!1;y=_===~~_?_:_===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof g=="string"?C.input=a.binstring2buf(g):m.call(g)==="[object ArrayBuffer]"?C.input=new Uint8Array(g):C.input=g,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new o.Buf8(x),C.next_out=0,C.avail_out=x),(p=s.inflate(C,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&k&&(B=typeof k=="string"?a.string2buf(k):m.call(k)==="[object ArrayBuffer]"?new Uint8Array(k):k,p=s.inflateSetDictionary(this.strm,B)),p===u.Z_BUF_ERROR&&P===!0&&(p=u.Z_OK,P=!1),p!==u.Z_STREAM_END&&p!==u.Z_OK)return this.onEnd(p),!(this.ended=!0);C.next_out&&(C.avail_out!==0&&p!==u.Z_STREAM_END&&(C.avail_in!==0||y!==u.Z_FINISH&&y!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(S=a.utf8border(C.output,C.next_out),L=C.next_out-S,D=a.buf2string(C.output,S),C.next_out=L,C.avail_out=x-L,L&&o.arraySet(C.output,C.output,S,L,0),this.onData(D)):this.onData(o.shrinkBuf(C.output,C.next_out)))),C.avail_in===0&&C.avail_out===0&&(P=!0)}while((0<C.avail_in||C.avail_out===0)&&p!==u.Z_STREAM_END);return p===u.Z_STREAM_END&&(y=u.Z_FINISH),y===u.Z_FINISH?(p=s.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===u.Z_OK):y!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(C.avail_out=0))},f.prototype.onData=function(g){this.chunks.push(g)},f.prototype.onEnd=function(g){g===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=f,i.inflate=E,i.inflateRaw=function(g,_){return(_=_||{}).raw=!0,E(g,_)},i.ungzip=E},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(u){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var d=c.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var h in d)d.hasOwnProperty(h)&&(u[h]=d[h])}}return u},i.shrinkBuf=function(u,c){return u.length===c?u:u.subarray?u.subarray(0,c):(u.length=c,u)};var o={arraySet:function(u,c,d,h,m){if(c.subarray&&u.subarray)u.set(c.subarray(d,d+h),m);else for(var f=0;f<h;f++)u[m+f]=c[d+f]},flattenChunks:function(u){var c,d,h,m,f,E;for(c=h=0,d=u.length;c<d;c++)h+=u[c].length;for(E=new Uint8Array(h),c=m=0,d=u.length;c<d;c++)f=u[c],E.set(f,m),m+=f.length;return E}},a={arraySet:function(u,c,d,h,m){for(var f=0;f<h;f++)u[m+f]=c[d+f]},flattenChunks:function(u){return[].concat.apply([],u)}};i.setTyped=function(u){u?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(s)},{}],42:[function(n,r,i){var s=n("./common"),o=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var u=new s.Buf8(256),c=0;c<256;c++)u[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function d(h,m){if(m<65537&&(h.subarray&&a||!h.subarray&&o))return String.fromCharCode.apply(null,s.shrinkBuf(h,m));for(var f="",E=0;E<m;E++)f+=String.fromCharCode(h[E]);return f}u[254]=u[254]=1,i.string2buf=function(h){var m,f,E,g,_,p=h.length,y=0;for(g=0;g<p;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<p&&(64512&(E=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(E-56320),g++),y+=f<128?1:f<2048?2:f<65536?3:4;for(m=new s.Buf8(y),g=_=0;_<y;g++)(64512&(f=h.charCodeAt(g)))==55296&&g+1<p&&(64512&(E=h.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(E-56320),g++),f<128?m[_++]=f:(f<2048?m[_++]=192|f>>>6:(f<65536?m[_++]=224|f>>>12:(m[_++]=240|f>>>18,m[_++]=128|f>>>12&63),m[_++]=128|f>>>6&63),m[_++]=128|63&f);return m},i.buf2binstring=function(h){return d(h,h.length)},i.binstring2buf=function(h){for(var m=new s.Buf8(h.length),f=0,E=m.length;f<E;f++)m[f]=h.charCodeAt(f);return m},i.buf2string=function(h,m){var f,E,g,_,p=m||h.length,y=new Array(2*p);for(f=E=0;f<p;)if((g=h[f++])<128)y[E++]=g;else if(4<(_=u[g]))y[E++]=65533,f+=_-1;else{for(g&=_===2?31:_===3?15:7;1<_&&f<p;)g=g<<6|63&h[f++],_--;1<_?y[E++]=65533:g<65536?y[E++]=g:(g-=65536,y[E++]=55296|g>>10&1023,y[E++]=56320|1023&g)}return d(y,E)},i.utf8border=function(h,m){var f;for((m=m||h.length)>h.length&&(m=h.length),f=m-1;0<=f&&(192&h[f])==128;)f--;return f<0||f===0?m:f+u[h[f]]>m?f:m}},{"./common":41}],43:[function(n,r,i){r.exports=function(s,o,a,u){for(var c=65535&s|0,d=s>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;d=d+(c=c+o[u++]|0)|0,--h;);c%=65521,d%=65521}return c|d<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var s=(function(){for(var o,a=[],u=0;u<256;u++){o=u;for(var c=0;c<8;c++)o=1&o?3988292384^o>>>1:o>>>1;a[u]=o}return a})();r.exports=function(o,a,u,c){var d=s,h=c+u;o^=-1;for(var m=c;m<h;m++)o=o>>>8^d[255&(o^a[m])];return-1^o}},{}],46:[function(n,r,i){var s,o=n("../utils/common"),a=n("./trees"),u=n("./adler32"),c=n("./crc32"),d=n("./messages"),h=0,m=4,f=0,E=-2,g=-1,_=4,p=2,y=8,S=9,L=286,D=30,B=19,C=2*L+1,x=15,k=3,P=258,R=P+k+1,A=42,M=113,T=1,U=2,W=3,G=4;function se(b,V){return b.msg=d[V],V}function Z(b){return(b<<1)-(4<b?9:0)}function he(b){for(var V=b.length;0<=--V;)b[V]=0}function j(b){var V=b.state,Y=V.pending;Y>b.avail_out&&(Y=b.avail_out),Y!==0&&(o.arraySet(b.output,V.pending_buf,V.pending_out,Y,b.next_out),b.next_out+=Y,V.pending_out+=Y,b.total_out+=Y,b.avail_out-=Y,V.pending-=Y,V.pending===0&&(V.pending_out=0))}function $(b,V){a._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,V),b.block_start=b.strstart,j(b.strm)}function oe(b,V){b.pending_buf[b.pending++]=V}function ae(b,V){b.pending_buf[b.pending++]=V>>>8&255,b.pending_buf[b.pending++]=255&V}function ie(b,V){var Y,v,I=b.max_chain_length,F=b.strstart,K=b.prev_length,Q=b.nice_match,z=b.strstart>b.w_size-R?b.strstart-(b.w_size-R):0,te=b.window,ue=b.w_mask,re=b.prev,ce=b.strstart+P,Ie=te[F+K-1],ye=te[F+K];b.prev_length>=b.good_match&&(I>>=2),Q>b.lookahead&&(Q=b.lookahead);do if(te[(Y=V)+K]===ye&&te[Y+K-1]===Ie&&te[Y]===te[F]&&te[++Y]===te[F+1]){F+=2,Y++;do;while(te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&te[++F]===te[++Y]&&F<ce);if(v=P-(ce-F),F=ce-P,K<v){if(b.match_start=V,Q<=(K=v))break;Ie=te[F+K-1],ye=te[F+K]}}while((V=re[V&ue])>z&&--I!=0);return K<=b.lookahead?K:b.lookahead}function Re(b){var V,Y,v,I,F,K,Q,z,te,ue,re=b.w_size;do{if(I=b.window_size-b.lookahead-b.strstart,b.strstart>=re+(re-R)){for(o.arraySet(b.window,b.window,re,re,0),b.match_start-=re,b.strstart-=re,b.block_start-=re,V=Y=b.hash_size;v=b.head[--V],b.head[V]=re<=v?v-re:0,--Y;);for(V=Y=re;v=b.prev[--V],b.prev[V]=re<=v?v-re:0,--Y;);I+=re}if(b.strm.avail_in===0)break;if(K=b.strm,Q=b.window,z=b.strstart+b.lookahead,te=I,ue=void 0,ue=K.avail_in,te<ue&&(ue=te),Y=ue===0?0:(K.avail_in-=ue,o.arraySet(Q,K.input,K.next_in,ue,z),K.state.wrap===1?K.adler=u(K.adler,Q,ue,z):K.state.wrap===2&&(K.adler=c(K.adler,Q,ue,z)),K.next_in+=ue,K.total_in+=ue,ue),b.lookahead+=Y,b.lookahead+b.insert>=k)for(F=b.strstart-b.insert,b.ins_h=b.window[F],b.ins_h=(b.ins_h<<b.hash_shift^b.window[F+1])&b.hash_mask;b.insert&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[F+k-1])&b.hash_mask,b.prev[F&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=F,F++,b.insert--,!(b.lookahead+b.insert<k)););}while(b.lookahead<R&&b.strm.avail_in!==0)}function Qe(b,V){for(var Y,v;;){if(b.lookahead<R){if(Re(b),b.lookahead<R&&V===h)return T;if(b.lookahead===0)break}if(Y=0,b.lookahead>=k&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+k-1])&b.hash_mask,Y=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),Y!==0&&b.strstart-Y<=b.w_size-R&&(b.match_length=ie(b,Y)),b.match_length>=k)if(v=a._tr_tally(b,b.strstart-b.match_start,b.match_length-k),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=k){for(b.match_length--;b.strstart++,b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+k-1])&b.hash_mask,Y=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart,--b.match_length!=0;);b.strstart++}else b.strstart+=b.match_length,b.match_length=0,b.ins_h=b.window[b.strstart],b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+1])&b.hash_mask;else v=a._tr_tally(b,0,b.window[b.strstart]),b.lookahead--,b.strstart++;if(v&&($(b,!1),b.strm.avail_out===0))return T}return b.insert=b.strstart<k-1?b.strstart:k-1,V===m?($(b,!0),b.strm.avail_out===0?W:G):b.last_lit&&($(b,!1),b.strm.avail_out===0)?T:U}function Ee(b,V){for(var Y,v,I;;){if(b.lookahead<R){if(Re(b),b.lookahead<R&&V===h)return T;if(b.lookahead===0)break}if(Y=0,b.lookahead>=k&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+k-1])&b.hash_mask,Y=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),b.prev_length=b.match_length,b.prev_match=b.match_start,b.match_length=k-1,Y!==0&&b.prev_length<b.max_lazy_match&&b.strstart-Y<=b.w_size-R&&(b.match_length=ie(b,Y),b.match_length<=5&&(b.strategy===1||b.match_length===k&&4096<b.strstart-b.match_start)&&(b.match_length=k-1)),b.prev_length>=k&&b.match_length<=b.prev_length){for(I=b.strstart+b.lookahead-k,v=a._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-k),b.lookahead-=b.prev_length-1,b.prev_length-=2;++b.strstart<=I&&(b.ins_h=(b.ins_h<<b.hash_shift^b.window[b.strstart+k-1])&b.hash_mask,Y=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),--b.prev_length!=0;);if(b.match_available=0,b.match_length=k-1,b.strstart++,v&&($(b,!1),b.strm.avail_out===0))return T}else if(b.match_available){if((v=a._tr_tally(b,0,b.window[b.strstart-1]))&&$(b,!1),b.strstart++,b.lookahead--,b.strm.avail_out===0)return T}else b.match_available=1,b.strstart++,b.lookahead--}return b.match_available&&(v=a._tr_tally(b,0,b.window[b.strstart-1]),b.match_available=0),b.insert=b.strstart<k-1?b.strstart:k-1,V===m?($(b,!0),b.strm.avail_out===0?W:G):b.last_lit&&($(b,!1),b.strm.avail_out===0)?T:U}function we(b,V,Y,v,I){this.good_length=b,this.max_lazy=V,this.nice_length=Y,this.max_chain=v,this.func=I}function je(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*C),this.dyn_dtree=new o.Buf16(2*(2*D+1)),this.bl_tree=new o.Buf16(2*(2*B+1)),he(this.dyn_ltree),he(this.dyn_dtree),he(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(x+1),this.heap=new o.Buf16(2*L+1),he(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*L+1),he(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Pe(b){var V;return b&&b.state?(b.total_in=b.total_out=0,b.data_type=p,(V=b.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?A:M,b.adler=V.wrap===2?0:1,V.last_flush=h,a._tr_init(V),f):se(b,E)}function xt(b){var V=Pe(b);return V===f&&(function(Y){Y.window_size=2*Y.w_size,he(Y.head),Y.max_lazy_match=s[Y.level].max_lazy,Y.good_match=s[Y.level].good_length,Y.nice_match=s[Y.level].nice_length,Y.max_chain_length=s[Y.level].max_chain,Y.strstart=0,Y.block_start=0,Y.lookahead=0,Y.insert=0,Y.match_length=Y.prev_length=k-1,Y.match_available=0,Y.ins_h=0})(b.state),V}function _t(b,V,Y,v,I,F){if(!b)return E;var K=1;if(V===g&&(V=6),v<0?(K=0,v=-v):15<v&&(K=2,v-=16),I<1||S<I||Y!==y||v<8||15<v||V<0||9<V||F<0||_<F)return se(b,E);v===8&&(v=9);var Q=new je;return(b.state=Q).strm=b,Q.wrap=K,Q.gzhead=null,Q.w_bits=v,Q.w_size=1<<Q.w_bits,Q.w_mask=Q.w_size-1,Q.hash_bits=I+7,Q.hash_size=1<<Q.hash_bits,Q.hash_mask=Q.hash_size-1,Q.hash_shift=~~((Q.hash_bits+k-1)/k),Q.window=new o.Buf8(2*Q.w_size),Q.head=new o.Buf16(Q.hash_size),Q.prev=new o.Buf16(Q.w_size),Q.lit_bufsize=1<<I+6,Q.pending_buf_size=4*Q.lit_bufsize,Q.pending_buf=new o.Buf8(Q.pending_buf_size),Q.d_buf=1*Q.lit_bufsize,Q.l_buf=3*Q.lit_bufsize,Q.level=V,Q.strategy=F,Q.method=Y,xt(b)}s=[new we(0,0,0,0,function(b,V){var Y=65535;for(Y>b.pending_buf_size-5&&(Y=b.pending_buf_size-5);;){if(b.lookahead<=1){if(Re(b),b.lookahead===0&&V===h)return T;if(b.lookahead===0)break}b.strstart+=b.lookahead,b.lookahead=0;var v=b.block_start+Y;if((b.strstart===0||b.strstart>=v)&&(b.lookahead=b.strstart-v,b.strstart=v,$(b,!1),b.strm.avail_out===0)||b.strstart-b.block_start>=b.w_size-R&&($(b,!1),b.strm.avail_out===0))return T}return b.insert=0,V===m?($(b,!0),b.strm.avail_out===0?W:G):(b.strstart>b.block_start&&($(b,!1),b.strm.avail_out),T)}),new we(4,4,8,4,Qe),new we(4,5,16,8,Qe),new we(4,6,32,32,Qe),new we(4,4,16,16,Ee),new we(8,16,32,32,Ee),new we(8,16,128,128,Ee),new we(8,32,128,256,Ee),new we(32,128,258,1024,Ee),new we(32,258,258,4096,Ee)],i.deflateInit=function(b,V){return _t(b,V,y,15,8,0)},i.deflateInit2=_t,i.deflateReset=xt,i.deflateResetKeep=Pe,i.deflateSetHeader=function(b,V){return b&&b.state?b.state.wrap!==2?E:(b.state.gzhead=V,f):E},i.deflate=function(b,V){var Y,v,I,F;if(!b||!b.state||5<V||V<0)return b?se(b,E):E;if(v=b.state,!b.output||!b.input&&b.avail_in!==0||v.status===666&&V!==m)return se(b,b.avail_out===0?-5:E);if(v.strm=b,Y=v.last_flush,v.last_flush=V,v.status===A)if(v.wrap===2)b.adler=0,oe(v,31),oe(v,139),oe(v,8),v.gzhead?(oe(v,(v.gzhead.text?1:0)+(v.gzhead.hcrc?2:0)+(v.gzhead.extra?4:0)+(v.gzhead.name?8:0)+(v.gzhead.comment?16:0)),oe(v,255&v.gzhead.time),oe(v,v.gzhead.time>>8&255),oe(v,v.gzhead.time>>16&255),oe(v,v.gzhead.time>>24&255),oe(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),oe(v,255&v.gzhead.os),v.gzhead.extra&&v.gzhead.extra.length&&(oe(v,255&v.gzhead.extra.length),oe(v,v.gzhead.extra.length>>8&255)),v.gzhead.hcrc&&(b.adler=c(b.adler,v.pending_buf,v.pending,0)),v.gzindex=0,v.status=69):(oe(v,0),oe(v,0),oe(v,0),oe(v,0),oe(v,0),oe(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),oe(v,3),v.status=M);else{var K=y+(v.w_bits-8<<4)<<8;K|=(2<=v.strategy||v.level<2?0:v.level<6?1:v.level===6?2:3)<<6,v.strstart!==0&&(K|=32),K+=31-K%31,v.status=M,ae(v,K),v.strstart!==0&&(ae(v,b.adler>>>16),ae(v,65535&b.adler)),b.adler=1}if(v.status===69)if(v.gzhead.extra){for(I=v.pending;v.gzindex<(65535&v.gzhead.extra.length)&&(v.pending!==v.pending_buf_size||(v.gzhead.hcrc&&v.pending>I&&(b.adler=c(b.adler,v.pending_buf,v.pending-I,I)),j(b),I=v.pending,v.pending!==v.pending_buf_size));)oe(v,255&v.gzhead.extra[v.gzindex]),v.gzindex++;v.gzhead.hcrc&&v.pending>I&&(b.adler=c(b.adler,v.pending_buf,v.pending-I,I)),v.gzindex===v.gzhead.extra.length&&(v.gzindex=0,v.status=73)}else v.status=73;if(v.status===73)if(v.gzhead.name){I=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>I&&(b.adler=c(b.adler,v.pending_buf,v.pending-I,I)),j(b),I=v.pending,v.pending===v.pending_buf_size)){F=1;break}F=v.gzindex<v.gzhead.name.length?255&v.gzhead.name.charCodeAt(v.gzindex++):0,oe(v,F)}while(F!==0);v.gzhead.hcrc&&v.pending>I&&(b.adler=c(b.adler,v.pending_buf,v.pending-I,I)),F===0&&(v.gzindex=0,v.status=91)}else v.status=91;if(v.status===91)if(v.gzhead.comment){I=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>I&&(b.adler=c(b.adler,v.pending_buf,v.pending-I,I)),j(b),I=v.pending,v.pending===v.pending_buf_size)){F=1;break}F=v.gzindex<v.gzhead.comment.length?255&v.gzhead.comment.charCodeAt(v.gzindex++):0,oe(v,F)}while(F!==0);v.gzhead.hcrc&&v.pending>I&&(b.adler=c(b.adler,v.pending_buf,v.pending-I,I)),F===0&&(v.status=103)}else v.status=103;if(v.status===103&&(v.gzhead.hcrc?(v.pending+2>v.pending_buf_size&&j(b),v.pending+2<=v.pending_buf_size&&(oe(v,255&b.adler),oe(v,b.adler>>8&255),b.adler=0,v.status=M)):v.status=M),v.pending!==0){if(j(b),b.avail_out===0)return v.last_flush=-1,f}else if(b.avail_in===0&&Z(V)<=Z(Y)&&V!==m)return se(b,-5);if(v.status===666&&b.avail_in!==0)return se(b,-5);if(b.avail_in!==0||v.lookahead!==0||V!==h&&v.status!==666){var Q=v.strategy===2?(function(z,te){for(var ue;;){if(z.lookahead===0&&(Re(z),z.lookahead===0)){if(te===h)return T;break}if(z.match_length=0,ue=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,ue&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===m?($(z,!0),z.strm.avail_out===0?W:G):z.last_lit&&($(z,!1),z.strm.avail_out===0)?T:U})(v,V):v.strategy===3?(function(z,te){for(var ue,re,ce,Ie,ye=z.window;;){if(z.lookahead<=P){if(Re(z),z.lookahead<=P&&te===h)return T;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=k&&0<z.strstart&&(re=ye[ce=z.strstart-1])===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]){Ie=z.strstart+P;do;while(re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&re===ye[++ce]&&ce<Ie);z.match_length=P-(Ie-ce),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=k?(ue=a._tr_tally(z,1,z.match_length-k),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(ue=a._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),ue&&($(z,!1),z.strm.avail_out===0))return T}return z.insert=0,te===m?($(z,!0),z.strm.avail_out===0?W:G):z.last_lit&&($(z,!1),z.strm.avail_out===0)?T:U})(v,V):s[v.level].func(v,V);if(Q!==W&&Q!==G||(v.status=666),Q===T||Q===W)return b.avail_out===0&&(v.last_flush=-1),f;if(Q===U&&(V===1?a._tr_align(v):V!==5&&(a._tr_stored_block(v,0,0,!1),V===3&&(he(v.head),v.lookahead===0&&(v.strstart=0,v.block_start=0,v.insert=0))),j(b),b.avail_out===0))return v.last_flush=-1,f}return V!==m?f:v.wrap<=0?1:(v.wrap===2?(oe(v,255&b.adler),oe(v,b.adler>>8&255),oe(v,b.adler>>16&255),oe(v,b.adler>>24&255),oe(v,255&b.total_in),oe(v,b.total_in>>8&255),oe(v,b.total_in>>16&255),oe(v,b.total_in>>24&255)):(ae(v,b.adler>>>16),ae(v,65535&b.adler)),j(b),0<v.wrap&&(v.wrap=-v.wrap),v.pending!==0?f:1)},i.deflateEnd=function(b){var V;return b&&b.state?(V=b.state.status)!==A&&V!==69&&V!==73&&V!==91&&V!==103&&V!==M&&V!==666?se(b,E):(b.state=null,V===M?se(b,-3):f):E},i.deflateSetDictionary=function(b,V){var Y,v,I,F,K,Q,z,te,ue=V.length;if(!b||!b.state||(F=(Y=b.state).wrap)===2||F===1&&Y.status!==A||Y.lookahead)return E;for(F===1&&(b.adler=u(b.adler,V,ue,0)),Y.wrap=0,ue>=Y.w_size&&(F===0&&(he(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0),te=new o.Buf8(Y.w_size),o.arraySet(te,V,ue-Y.w_size,Y.w_size,0),V=te,ue=Y.w_size),K=b.avail_in,Q=b.next_in,z=b.input,b.avail_in=ue,b.next_in=0,b.input=V,Re(Y);Y.lookahead>=k;){for(v=Y.strstart,I=Y.lookahead-(k-1);Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[v+k-1])&Y.hash_mask,Y.prev[v&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=v,v++,--I;);Y.strstart=v,Y.lookahead=k-1,Re(Y)}return Y.strstart+=Y.lookahead,Y.block_start=Y.strstart,Y.insert=Y.lookahead,Y.lookahead=0,Y.match_length=Y.prev_length=k-1,Y.match_available=0,b.next_in=Q,b.input=z,b.avail_in=K,Y.wrap=F,f},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,i){r.exports=function(s,o){var a,u,c,d,h,m,f,E,g,_,p,y,S,L,D,B,C,x,k,P,R,A,M,T,U;a=s.state,u=s.next_in,T=s.input,c=u+(s.avail_in-5),d=s.next_out,U=s.output,h=d-(o-s.avail_out),m=d+(s.avail_out-257),f=a.dmax,E=a.wsize,g=a.whave,_=a.wnext,p=a.window,y=a.hold,S=a.bits,L=a.lencode,D=a.distcode,B=(1<<a.lenbits)-1,C=(1<<a.distbits)-1;e:do{S<15&&(y+=T[u++]<<S,S+=8,y+=T[u++]<<S,S+=8),x=L[y&B];t:for(;;){if(y>>>=k=x>>>24,S-=k,(k=x>>>16&255)===0)U[d++]=65535&x;else{if(!(16&k)){if((64&k)==0){x=L[(65535&x)+(y&(1<<k)-1)];continue t}if(32&k){a.mode=12;break e}s.msg="invalid literal/length code",a.mode=30;break e}P=65535&x,(k&=15)&&(S<k&&(y+=T[u++]<<S,S+=8),P+=y&(1<<k)-1,y>>>=k,S-=k),S<15&&(y+=T[u++]<<S,S+=8,y+=T[u++]<<S,S+=8),x=D[y&C];n:for(;;){if(y>>>=k=x>>>24,S-=k,!(16&(k=x>>>16&255))){if((64&k)==0){x=D[(65535&x)+(y&(1<<k)-1)];continue n}s.msg="invalid distance code",a.mode=30;break e}if(R=65535&x,S<(k&=15)&&(y+=T[u++]<<S,(S+=8)<k&&(y+=T[u++]<<S,S+=8)),f<(R+=y&(1<<k)-1)){s.msg="invalid distance too far back",a.mode=30;break e}if(y>>>=k,S-=k,(k=d-h)<R){if(g<(k=R-k)&&a.sane){s.msg="invalid distance too far back",a.mode=30;break e}if(M=p,(A=0)===_){if(A+=E-k,k<P){for(P-=k;U[d++]=p[A++],--k;);A=d-R,M=U}}else if(_<k){if(A+=E+_-k,(k-=_)<P){for(P-=k;U[d++]=p[A++],--k;);if(A=0,_<P){for(P-=k=_;U[d++]=p[A++],--k;);A=d-R,M=U}}}else if(A+=_-k,k<P){for(P-=k;U[d++]=p[A++],--k;);A=d-R,M=U}for(;2<P;)U[d++]=M[A++],U[d++]=M[A++],U[d++]=M[A++],P-=3;P&&(U[d++]=M[A++],1<P&&(U[d++]=M[A++]))}else{for(A=d-R;U[d++]=U[A++],U[d++]=U[A++],U[d++]=U[A++],2<(P-=3););P&&(U[d++]=U[A++],1<P&&(U[d++]=U[A++]))}break}}break}}while(u<c&&d<m);u-=P=S>>3,y&=(1<<(S-=P<<3))-1,s.next_in=u,s.next_out=d,s.avail_in=u<c?c-u+5:5-(u-c),s.avail_out=d<m?m-d+257:257-(d-m),a.hold=y,a.bits=S}},{}],49:[function(n,r,i){var s=n("../utils/common"),o=n("./adler32"),a=n("./crc32"),u=n("./inffast"),c=n("./inftrees"),d=1,h=2,m=0,f=-2,E=1,g=852,_=592;function p(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new s.Buf16(320),this.work=new s.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function S(A){var M;return A&&A.state?(M=A.state,A.total_in=A.total_out=M.total=0,A.msg="",M.wrap&&(A.adler=1&M.wrap),M.mode=E,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new s.Buf32(g),M.distcode=M.distdyn=new s.Buf32(_),M.sane=1,M.back=-1,m):f}function L(A){var M;return A&&A.state?((M=A.state).wsize=0,M.whave=0,M.wnext=0,S(A)):f}function D(A,M){var T,U;return A&&A.state?(U=A.state,M<0?(T=0,M=-M):(T=1+(M>>4),M<48&&(M&=15)),M&&(M<8||15<M)?f:(U.window!==null&&U.wbits!==M&&(U.window=null),U.wrap=T,U.wbits=M,L(A))):f}function B(A,M){var T,U;return A?(U=new y,(A.state=U).window=null,(T=D(A,M))!==m&&(A.state=null),T):f}var C,x,k=!0;function P(A){if(k){var M;for(C=new s.Buf32(512),x=new s.Buf32(32),M=0;M<144;)A.lens[M++]=8;for(;M<256;)A.lens[M++]=9;for(;M<280;)A.lens[M++]=7;for(;M<288;)A.lens[M++]=8;for(c(d,A.lens,0,288,C,0,A.work,{bits:9}),M=0;M<32;)A.lens[M++]=5;c(h,A.lens,0,32,x,0,A.work,{bits:5}),k=!1}A.lencode=C,A.lenbits=9,A.distcode=x,A.distbits=5}function R(A,M,T,U){var W,G=A.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new s.Buf8(G.wsize)),U>=G.wsize?(s.arraySet(G.window,M,T-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(U<(W=G.wsize-G.wnext)&&(W=U),s.arraySet(G.window,M,T-U,W,G.wnext),(U-=W)?(s.arraySet(G.window,M,T-U,U,0),G.wnext=U,G.whave=G.wsize):(G.wnext+=W,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=W))),0}i.inflateReset=L,i.inflateReset2=D,i.inflateResetKeep=S,i.inflateInit=function(A){return B(A,15)},i.inflateInit2=B,i.inflate=function(A,M){var T,U,W,G,se,Z,he,j,$,oe,ae,ie,Re,Qe,Ee,we,je,Pe,xt,_t,b,V,Y,v,I=0,F=new s.Buf8(4),K=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!A||!A.state||!A.output||!A.input&&A.avail_in!==0)return f;(T=A.state).mode===12&&(T.mode=13),se=A.next_out,W=A.output,he=A.avail_out,G=A.next_in,U=A.input,Z=A.avail_in,j=T.hold,$=T.bits,oe=Z,ae=he,V=m;e:for(;;)switch(T.mode){case E:if(T.wrap===0){T.mode=13;break}for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(2&T.wrap&&j===35615){F[T.check=0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0),$=j=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&j)<<8)+(j>>8))%31){A.msg="incorrect header check",T.mode=30;break}if((15&j)!=8){A.msg="unknown compression method",T.mode=30;break}if($-=4,b=8+(15&(j>>>=4)),T.wbits===0)T.wbits=b;else if(b>T.wbits){A.msg="invalid window size",T.mode=30;break}T.dmax=1<<b,A.adler=T.check=1,T.mode=512&j?10:12,$=j=0;break;case 2:for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(T.flags=j,(255&T.flags)!=8){A.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){A.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=j>>8&1),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0)),$=j=0,T.mode=3;case 3:for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.head&&(T.head.time=j),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,F[2]=j>>>16&255,F[3]=j>>>24&255,T.check=a(T.check,F,4,0)),$=j=0,T.mode=4;case 4:for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.head&&(T.head.xflags=255&j,T.head.os=j>>8),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0)),$=j=0,T.mode=5;case 5:if(1024&T.flags){for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.length=j,T.head&&(T.head.extra_len=j),512&T.flags&&(F[0]=255&j,F[1]=j>>>8&255,T.check=a(T.check,F,2,0)),$=j=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(Z<(ie=T.length)&&(ie=Z),ie&&(T.head&&(b=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),s.arraySet(T.head.extra,U,G,ie,b)),512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,T.length-=ie),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(Z===0)break e;for(ie=0;b=U[G+ie++],T.head&&b&&T.length<65536&&(T.head.name+=String.fromCharCode(b)),b&&ie<Z;);if(512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,b)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(Z===0)break e;for(ie=0;b=U[G+ie++],T.head&&b&&T.length<65536&&(T.head.comment+=String.fromCharCode(b)),b&&ie<Z;);if(512&T.flags&&(T.check=a(T.check,U,ie,G)),Z-=ie,G+=ie,b)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;$<16;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j!==(65535&T.check)){A.msg="header crc mismatch",T.mode=30;break}$=j=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),A.adler=T.check=0,T.mode=12;break;case 10:for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}A.adler=T.check=p(j),$=j=0,T.mode=11;case 11:if(T.havedict===0)return A.next_out=se,A.avail_out=he,A.next_in=G,A.avail_in=Z,T.hold=j,T.bits=$,2;A.adler=T.check=1,T.mode=12;case 12:if(M===5||M===6)break e;case 13:if(T.last){j>>>=7&$,$-=7&$,T.mode=27;break}for(;$<3;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}switch(T.last=1&j,$-=1,3&(j>>>=1)){case 0:T.mode=14;break;case 1:if(P(T),T.mode=20,M!==6)break;j>>>=2,$-=2;break e;case 2:T.mode=17;break;case 3:A.msg="invalid block type",T.mode=30}j>>>=2,$-=2;break;case 14:for(j>>>=7&$,$-=7&$;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if((65535&j)!=(j>>>16^65535)){A.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&j,$=j=0,T.mode=15,M===6)break e;case 15:T.mode=16;case 16:if(ie=T.length){if(Z<ie&&(ie=Z),he<ie&&(ie=he),ie===0)break e;s.arraySet(W,U,G,ie,se),Z-=ie,G+=ie,he-=ie,se+=ie,T.length-=ie;break}T.mode=12;break;case 17:for(;$<14;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(T.nlen=257+(31&j),j>>>=5,$-=5,T.ndist=1+(31&j),j>>>=5,$-=5,T.ncode=4+(15&j),j>>>=4,$-=4,286<T.nlen||30<T.ndist){A.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;$<3;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.lens[K[T.have++]]=7&j,j>>>=3,$-=3}for(;T.have<19;)T.lens[K[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,Y={bits:T.lenbits},V=c(0,T.lens,0,19,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){A.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;we=(I=T.lencode[j&(1<<T.lenbits)-1])>>>16&255,je=65535&I,!((Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(je<16)j>>>=Ee,$-=Ee,T.lens[T.have++]=je;else{if(je===16){for(v=Ee+2;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j>>>=Ee,$-=Ee,T.have===0){A.msg="invalid bit length repeat",T.mode=30;break}b=T.lens[T.have-1],ie=3+(3&j),j>>>=2,$-=2}else if(je===17){for(v=Ee+3;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}$-=Ee,b=0,ie=3+(7&(j>>>=Ee)),j>>>=3,$-=3}else{for(v=Ee+7;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}$-=Ee,b=0,ie=11+(127&(j>>>=Ee)),j>>>=7,$-=7}if(T.have+ie>T.nlen+T.ndist){A.msg="invalid bit length repeat",T.mode=30;break}for(;ie--;)T.lens[T.have++]=b}}if(T.mode===30)break;if(T.lens[256]===0){A.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,Y={bits:T.lenbits},V=c(d,T.lens,0,T.nlen,T.lencode,0,T.work,Y),T.lenbits=Y.bits,V){A.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,Y={bits:T.distbits},V=c(h,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,Y),T.distbits=Y.bits,V){A.msg="invalid distances set",T.mode=30;break}if(T.mode=20,M===6)break e;case 20:T.mode=21;case 21:if(6<=Z&&258<=he){A.next_out=se,A.avail_out=he,A.next_in=G,A.avail_in=Z,T.hold=j,T.bits=$,u(A,ae),se=A.next_out,W=A.output,he=A.avail_out,G=A.next_in,U=A.input,Z=A.avail_in,j=T.hold,$=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;we=(I=T.lencode[j&(1<<T.lenbits)-1])>>>16&255,je=65535&I,!((Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(we&&(240&we)==0){for(Pe=Ee,xt=we,_t=je;we=(I=T.lencode[_t+((j&(1<<Pe+xt)-1)>>Pe)])>>>16&255,je=65535&I,!(Pe+(Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}j>>>=Pe,$-=Pe,T.back+=Pe}if(j>>>=Ee,$-=Ee,T.back+=Ee,T.length=je,we===0){T.mode=26;break}if(32&we){T.back=-1,T.mode=12;break}if(64&we){A.msg="invalid literal/length code",T.mode=30;break}T.extra=15&we,T.mode=22;case 22:if(T.extra){for(v=T.extra;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.length+=j&(1<<T.extra)-1,j>>>=T.extra,$-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;we=(I=T.distcode[j&(1<<T.distbits)-1])>>>16&255,je=65535&I,!((Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if((240&we)==0){for(Pe=Ee,xt=we,_t=je;we=(I=T.distcode[_t+((j&(1<<Pe+xt)-1)>>Pe)])>>>16&255,je=65535&I,!(Pe+(Ee=I>>>24)<=$);){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}j>>>=Pe,$-=Pe,T.back+=Pe}if(j>>>=Ee,$-=Ee,T.back+=Ee,64&we){A.msg="invalid distance code",T.mode=30;break}T.offset=je,T.extra=15&we,T.mode=24;case 24:if(T.extra){for(v=T.extra;$<v;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}T.offset+=j&(1<<T.extra)-1,j>>>=T.extra,$-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){A.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(he===0)break e;if(ie=ae-he,T.offset>ie){if((ie=T.offset-ie)>T.whave&&T.sane){A.msg="invalid distance too far back",T.mode=30;break}Re=ie>T.wnext?(ie-=T.wnext,T.wsize-ie):T.wnext-ie,ie>T.length&&(ie=T.length),Qe=T.window}else Qe=W,Re=se-T.offset,ie=T.length;for(he<ie&&(ie=he),he-=ie,T.length-=ie;W[se++]=Qe[Re++],--ie;);T.length===0&&(T.mode=21);break;case 26:if(he===0)break e;W[se++]=T.length,he--,T.mode=21;break;case 27:if(T.wrap){for(;$<32;){if(Z===0)break e;Z--,j|=U[G++]<<$,$+=8}if(ae-=he,A.total_out+=ae,T.total+=ae,ae&&(A.adler=T.check=T.flags?a(T.check,W,ae,se-ae):o(T.check,W,ae,se-ae)),ae=he,(T.flags?j:p(j))!==T.check){A.msg="incorrect data check",T.mode=30;break}$=j=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;$<32;){if(Z===0)break e;Z--,j+=U[G++]<<$,$+=8}if(j!==(4294967295&T.total)){A.msg="incorrect length check",T.mode=30;break}$=j=0}T.mode=29;case 29:V=1;break e;case 30:V=-3;break e;case 31:return-4;case 32:default:return f}return A.next_out=se,A.avail_out=he,A.next_in=G,A.avail_in=Z,T.hold=j,T.bits=$,(T.wsize||ae!==A.avail_out&&T.mode<30&&(T.mode<27||M!==4))&&R(A,A.output,A.next_out,ae-A.avail_out)?(T.mode=31,-4):(oe-=A.avail_in,ae-=A.avail_out,A.total_in+=oe,A.total_out+=ae,T.total+=ae,T.wrap&&ae&&(A.adler=T.check=T.flags?a(T.check,W,ae,A.next_out-ae):o(T.check,W,ae,A.next_out-ae)),A.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(oe==0&&ae===0||M===4)&&V===m&&(V=-5),V)},i.inflateEnd=function(A){if(!A||!A.state)return f;var M=A.state;return M.window&&(M.window=null),A.state=null,m},i.inflateGetHeader=function(A,M){var T;return A&&A.state?(2&(T=A.state).wrap)==0?f:((T.head=M).done=!1,m):f},i.inflateSetDictionary=function(A,M){var T,U=M.length;return A&&A.state?(T=A.state).wrap!==0&&T.mode!==11?f:T.mode===11&&o(1,M,U,0)!==T.check?-3:R(A,M,U,U)?(T.mode=31,-4):(T.havedict=1,m):f},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var s=n("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(d,h,m,f,E,g,_,p){var y,S,L,D,B,C,x,k,P,R=p.bits,A=0,M=0,T=0,U=0,W=0,G=0,se=0,Z=0,he=0,j=0,$=null,oe=0,ae=new s.Buf16(16),ie=new s.Buf16(16),Re=null,Qe=0;for(A=0;A<=15;A++)ae[A]=0;for(M=0;M<f;M++)ae[h[m+M]]++;for(W=R,U=15;1<=U&&ae[U]===0;U--);if(U<W&&(W=U),U===0)return E[g++]=20971520,E[g++]=20971520,p.bits=1,0;for(T=1;T<U&&ae[T]===0;T++);for(W<T&&(W=T),A=Z=1;A<=15;A++)if(Z<<=1,(Z-=ae[A])<0)return-1;if(0<Z&&(d===0||U!==1))return-1;for(ie[1]=0,A=1;A<15;A++)ie[A+1]=ie[A]+ae[A];for(M=0;M<f;M++)h[m+M]!==0&&(_[ie[h[m+M]]++]=M);if(C=d===0?($=Re=_,19):d===1?($=o,oe-=257,Re=a,Qe-=257,256):($=u,Re=c,-1),A=T,B=g,se=M=j=0,L=-1,D=(he=1<<(G=W))-1,d===1&&852<he||d===2&&592<he)return 1;for(;;){for(x=A-se,P=_[M]<C?(k=0,_[M]):_[M]>C?(k=Re[Qe+_[M]],$[oe+_[M]]):(k=96,0),y=1<<A-se,T=S=1<<G;E[B+(j>>se)+(S-=y)]=x<<24|k<<16|P|0,S!==0;);for(y=1<<A-1;j&y;)y>>=1;if(y!==0?(j&=y-1,j+=y):j=0,M++,--ae[A]==0){if(A===U)break;A=h[m+_[M]]}if(W<A&&(j&D)!==L){for(se===0&&(se=W),B+=T,Z=1<<(G=A-se);G+se<U&&!((Z-=ae[G+se])<=0);)G++,Z<<=1;if(he+=1<<G,d===1&&852<he||d===2&&592<he)return 1;E[L=j&D]=W<<24|G<<16|B-g|0}}return j!==0&&(E[B+j]=A-se<<24|64<<16|0),p.bits=W,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,i){var s=n("../utils/common"),o=0,a=1;function u(I){for(var F=I.length;0<=--F;)I[F]=0}var c=0,d=29,h=256,m=h+1+d,f=30,E=19,g=2*m+1,_=15,p=16,y=7,S=256,L=16,D=17,B=18,C=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=new Array(2*(m+2));u(R);var A=new Array(2*f);u(A);var M=new Array(512);u(M);var T=new Array(256);u(T);var U=new Array(d);u(U);var W,G,se,Z=new Array(f);function he(I,F,K,Q,z){this.static_tree=I,this.extra_bits=F,this.extra_base=K,this.elems=Q,this.max_length=z,this.has_stree=I&&I.length}function j(I,F){this.dyn_tree=I,this.max_code=0,this.stat_desc=F}function $(I){return I<256?M[I]:M[256+(I>>>7)]}function oe(I,F){I.pending_buf[I.pending++]=255&F,I.pending_buf[I.pending++]=F>>>8&255}function ae(I,F,K){I.bi_valid>p-K?(I.bi_buf|=F<<I.bi_valid&65535,oe(I,I.bi_buf),I.bi_buf=F>>p-I.bi_valid,I.bi_valid+=K-p):(I.bi_buf|=F<<I.bi_valid&65535,I.bi_valid+=K)}function ie(I,F,K){ae(I,K[2*F],K[2*F+1])}function Re(I,F){for(var K=0;K|=1&I,I>>>=1,K<<=1,0<--F;);return K>>>1}function Qe(I,F,K){var Q,z,te=new Array(_+1),ue=0;for(Q=1;Q<=_;Q++)te[Q]=ue=ue+K[Q-1]<<1;for(z=0;z<=F;z++){var re=I[2*z+1];re!==0&&(I[2*z]=Re(te[re]++,re))}}function Ee(I){var F;for(F=0;F<m;F++)I.dyn_ltree[2*F]=0;for(F=0;F<f;F++)I.dyn_dtree[2*F]=0;for(F=0;F<E;F++)I.bl_tree[2*F]=0;I.dyn_ltree[2*S]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function we(I){8<I.bi_valid?oe(I,I.bi_buf):0<I.bi_valid&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function je(I,F,K,Q){var z=2*F,te=2*K;return I[z]<I[te]||I[z]===I[te]&&Q[F]<=Q[K]}function Pe(I,F,K){for(var Q=I.heap[K],z=K<<1;z<=I.heap_len&&(z<I.heap_len&&je(F,I.heap[z+1],I.heap[z],I.depth)&&z++,!je(F,Q,I.heap[z],I.depth));)I.heap[K]=I.heap[z],K=z,z<<=1;I.heap[K]=Q}function xt(I,F,K){var Q,z,te,ue,re=0;if(I.last_lit!==0)for(;Q=I.pending_buf[I.d_buf+2*re]<<8|I.pending_buf[I.d_buf+2*re+1],z=I.pending_buf[I.l_buf+re],re++,Q===0?ie(I,z,F):(ie(I,(te=T[z])+h+1,F),(ue=C[te])!==0&&ae(I,z-=U[te],ue),ie(I,te=$(--Q),K),(ue=x[te])!==0&&ae(I,Q-=Z[te],ue)),re<I.last_lit;);ie(I,S,F)}function _t(I,F){var K,Q,z,te=F.dyn_tree,ue=F.stat_desc.static_tree,re=F.stat_desc.has_stree,ce=F.stat_desc.elems,Ie=-1;for(I.heap_len=0,I.heap_max=g,K=0;K<ce;K++)te[2*K]!==0?(I.heap[++I.heap_len]=Ie=K,I.depth[K]=0):te[2*K+1]=0;for(;I.heap_len<2;)te[2*(z=I.heap[++I.heap_len]=Ie<2?++Ie:0)]=1,I.depth[z]=0,I.opt_len--,re&&(I.static_len-=ue[2*z+1]);for(F.max_code=Ie,K=I.heap_len>>1;1<=K;K--)Pe(I,te,K);for(z=ce;K=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Pe(I,te,1),Q=I.heap[1],I.heap[--I.heap_max]=K,I.heap[--I.heap_max]=Q,te[2*z]=te[2*K]+te[2*Q],I.depth[z]=(I.depth[K]>=I.depth[Q]?I.depth[K]:I.depth[Q])+1,te[2*K+1]=te[2*Q+1]=z,I.heap[1]=z++,Pe(I,te,1),2<=I.heap_len;);I.heap[--I.heap_max]=I.heap[1],(function(ye,ft){var tr,Nt,nr,De,si,ma,Mt=ft.dyn_tree,hd=ft.max_code,xk=ft.stat_desc.static_tree,Nk=ft.stat_desc.has_stree,Ik=ft.stat_desc.extra_bits,fd=ft.stat_desc.extra_base,rr=ft.stat_desc.max_length,ai=0;for(De=0;De<=_;De++)ye.bl_count[De]=0;for(Mt[2*ye.heap[ye.heap_max]+1]=0,tr=ye.heap_max+1;tr<g;tr++)rr<(De=Mt[2*Mt[2*(Nt=ye.heap[tr])+1]+1]+1)&&(De=rr,ai++),Mt[2*Nt+1]=De,hd<Nt||(ye.bl_count[De]++,si=0,fd<=Nt&&(si=Ik[Nt-fd]),ma=Mt[2*Nt],ye.opt_len+=ma*(De+si),Nk&&(ye.static_len+=ma*(xk[2*Nt+1]+si)));if(ai!==0){do{for(De=rr-1;ye.bl_count[De]===0;)De--;ye.bl_count[De]--,ye.bl_count[De+1]+=2,ye.bl_count[rr]--,ai-=2}while(0<ai);for(De=rr;De!==0;De--)for(Nt=ye.bl_count[De];Nt!==0;)hd<(nr=ye.heap[--tr])||(Mt[2*nr+1]!==De&&(ye.opt_len+=(De-Mt[2*nr+1])*Mt[2*nr],Mt[2*nr+1]=De),Nt--)}})(I,F),Qe(te,Ie,I.bl_count)}function b(I,F,K){var Q,z,te=-1,ue=F[1],re=0,ce=7,Ie=4;for(ue===0&&(ce=138,Ie=3),F[2*(K+1)+1]=65535,Q=0;Q<=K;Q++)z=ue,ue=F[2*(Q+1)+1],++re<ce&&z===ue||(re<Ie?I.bl_tree[2*z]+=re:z!==0?(z!==te&&I.bl_tree[2*z]++,I.bl_tree[2*L]++):re<=10?I.bl_tree[2*D]++:I.bl_tree[2*B]++,te=z,Ie=(re=0)===ue?(ce=138,3):z===ue?(ce=6,3):(ce=7,4))}function V(I,F,K){var Q,z,te=-1,ue=F[1],re=0,ce=7,Ie=4;for(ue===0&&(ce=138,Ie=3),Q=0;Q<=K;Q++)if(z=ue,ue=F[2*(Q+1)+1],!(++re<ce&&z===ue)){if(re<Ie)for(;ie(I,z,I.bl_tree),--re!=0;);else z!==0?(z!==te&&(ie(I,z,I.bl_tree),re--),ie(I,L,I.bl_tree),ae(I,re-3,2)):re<=10?(ie(I,D,I.bl_tree),ae(I,re-3,3)):(ie(I,B,I.bl_tree),ae(I,re-11,7));te=z,Ie=(re=0)===ue?(ce=138,3):z===ue?(ce=6,3):(ce=7,4)}}u(Z);var Y=!1;function v(I,F,K,Q){ae(I,(c<<1)+(Q?1:0),3),(function(z,te,ue,re){we(z),oe(z,ue),oe(z,~ue),s.arraySet(z.pending_buf,z.window,te,ue,z.pending),z.pending+=ue})(I,F,K)}i._tr_init=function(I){Y||((function(){var F,K,Q,z,te,ue=new Array(_+1);for(z=Q=0;z<d-1;z++)for(U[z]=Q,F=0;F<1<<C[z];F++)T[Q++]=z;for(T[Q-1]=z,z=te=0;z<16;z++)for(Z[z]=te,F=0;F<1<<x[z];F++)M[te++]=z;for(te>>=7;z<f;z++)for(Z[z]=te<<7,F=0;F<1<<x[z]-7;F++)M[256+te++]=z;for(K=0;K<=_;K++)ue[K]=0;for(F=0;F<=143;)R[2*F+1]=8,F++,ue[8]++;for(;F<=255;)R[2*F+1]=9,F++,ue[9]++;for(;F<=279;)R[2*F+1]=7,F++,ue[7]++;for(;F<=287;)R[2*F+1]=8,F++,ue[8]++;for(Qe(R,m+1,ue),F=0;F<f;F++)A[2*F+1]=5,A[2*F]=Re(F,5);W=new he(R,C,h+1,m,_),G=new he(A,x,0,f,_),se=new he(new Array(0),k,0,E,y)})(),Y=!0),I.l_desc=new j(I.dyn_ltree,W),I.d_desc=new j(I.dyn_dtree,G),I.bl_desc=new j(I.bl_tree,se),I.bi_buf=0,I.bi_valid=0,Ee(I)},i._tr_stored_block=v,i._tr_flush_block=function(I,F,K,Q){var z,te,ue=0;0<I.level?(I.strm.data_type===2&&(I.strm.data_type=(function(re){var ce,Ie=4093624447;for(ce=0;ce<=31;ce++,Ie>>>=1)if(1&Ie&&re.dyn_ltree[2*ce]!==0)return o;if(re.dyn_ltree[18]!==0||re.dyn_ltree[20]!==0||re.dyn_ltree[26]!==0)return a;for(ce=32;ce<h;ce++)if(re.dyn_ltree[2*ce]!==0)return a;return o})(I)),_t(I,I.l_desc),_t(I,I.d_desc),ue=(function(re){var ce;for(b(re,re.dyn_ltree,re.l_desc.max_code),b(re,re.dyn_dtree,re.d_desc.max_code),_t(re,re.bl_desc),ce=E-1;3<=ce&&re.bl_tree[2*P[ce]+1]===0;ce--);return re.opt_len+=3*(ce+1)+5+5+4,ce})(I),z=I.opt_len+3+7>>>3,(te=I.static_len+3+7>>>3)<=z&&(z=te)):z=te=K+5,K+4<=z&&F!==-1?v(I,F,K,Q):I.strategy===4||te===z?(ae(I,2+(Q?1:0),3),xt(I,R,A)):(ae(I,4+(Q?1:0),3),(function(re,ce,Ie,ye){var ft;for(ae(re,ce-257,5),ae(re,Ie-1,5),ae(re,ye-4,4),ft=0;ft<ye;ft++)ae(re,re.bl_tree[2*P[ft]+1],3);V(re,re.dyn_ltree,ce-1),V(re,re.dyn_dtree,Ie-1)})(I,I.l_desc.max_code+1,I.d_desc.max_code+1,ue+1),xt(I,I.dyn_ltree,I.dyn_dtree)),Ee(I),Q&&we(I)},i._tr_tally=function(I,F,K){return I.pending_buf[I.d_buf+2*I.last_lit]=F>>>8&255,I.pending_buf[I.d_buf+2*I.last_lit+1]=255&F,I.pending_buf[I.l_buf+I.last_lit]=255&K,I.last_lit++,F===0?I.dyn_ltree[2*K]++:(I.matches++,F--,I.dyn_ltree[2*(T[K]+h+1)]++,I.dyn_dtree[2*$(F)]++),I.last_lit===I.lit_bufsize-1},i._tr_align=function(I){ae(I,2,3),ie(I,S,R),(function(F){F.bi_valid===16?(oe(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):8<=F.bi_valid&&(F.pending_buf[F.pending++]=255&F.bi_buf,F.bi_buf>>=8,F.bi_valid-=8)})(I)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(s){(function(o,a){if(!o.setImmediate){var u,c,d,h,m=1,f={},E=!1,g=o.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(o);_=_&&_.setTimeout?_:o,u={}.toString.call(o.process)==="[object process]"?function(L){process.nextTick(function(){y(L)})}:(function(){if(o.postMessage&&!o.importScripts){var L=!0,D=o.onmessage;return o.onmessage=function(){L=!1},o.postMessage("","*"),o.onmessage=D,L}})()?(h="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",S,!1):o.attachEvent("onmessage",S),function(L){o.postMessage(h+L,"*")}):o.MessageChannel?((d=new MessageChannel).port1.onmessage=function(L){y(L.data)},function(L){d.port2.postMessage(L)}):g&&"onreadystatechange"in g.createElement("script")?(c=g.documentElement,function(L){var D=g.createElement("script");D.onreadystatechange=function(){y(L),D.onreadystatechange=null,c.removeChild(D),D=null},c.appendChild(D)}):function(L){setTimeout(y,0,L)},_.setImmediate=function(L){typeof L!="function"&&(L=new Function(""+L));for(var D=new Array(arguments.length-1),B=0;B<D.length;B++)D[B]=arguments[B+1];var C={callback:L,args:D};return f[m]=C,u(m),m++},_.clearImmediate=p}function p(L){delete f[L]}function y(L){if(E)setTimeout(y,0,L);else{var D=f[L];if(D){E=!0;try{(function(B){var C=B.callback,x=B.args;switch(x.length){case 0:C();break;case 1:C(x[0]);break;case 2:C(x[0],x[1]);break;case 3:C(x[0],x[1],x[2]);break;default:C.apply(a,x)}})(D)}finally{p(L),E=!1}}}}function S(L){L.source===o&&typeof L.data=="string"&&L.data.indexOf(h)===0&&y(+L.data.slice(h.length))}})(typeof self>"u"?s===void 0?this:s:self)}).call(this,typeof Ir<"u"?Ir:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Zs)),Zs.exports}var B_=M_();const Dc=J0(B_);async function F_(e){const t=await Dc.loadAsync(e),n={document:"",media:new Map,rawParts:new Map};for(const[r,i]of Object.entries(t.files))if(!i.dir)if(r==="word/document.xml")n.document=await i.async("string");else if(r==="word/styles.xml")n.styles=await i.async("string");else if(r==="word/numbering.xml")n.numbering=await i.async("string");else if(r==="word/_rels/document.xml.rels")n.relationships=await i.async("string");else if(r==="[Content_Types].xml")n.contentTypes=await i.async("string");else if(r.startsWith("word/media/"))n.media.set(r,await i.async("uint8array"));else try{n.rawParts.set(r,await i.async("string"))}catch{const s=await i.async("uint8array");n.rawParts.set(r,Buffer.from(s).toString("base64"))}return n}async function U_(e){const t=new Dc;t.file("[Content_Types].xml",e.contentTypes??H_),t.file("word/document.xml",e.document),e.styles&&t.file("word/styles.xml",e.styles),e.numbering&&t.file("word/numbering.xml",e.numbering),e.relationships&&t.file("word/_rels/document.xml.rels",e.relationships);for(const[n,r]of e.media)t.file(n,r);for(const[n,r]of e.rawParts)t.file(n)||t.file(n,r);return t.generateAsync({type:"uint8array"})}const H_=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
37
|
+
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
|
38
|
+
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
|
|
39
|
+
<Default Extension="xml" ContentType="application/xml"/>
|
|
40
|
+
<Default Extension="png" ContentType="image/png"/>
|
|
41
|
+
<Default Extension="jpeg" ContentType="image/jpeg"/>
|
|
42
|
+
<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
|
|
43
|
+
<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
|
|
44
|
+
<Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>
|
|
45
|
+
</Types>`;var Js={},ea={},Mc;function ei(){return Mc||(Mc=1,(function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",r="["+t+"]["+n+"]*",i=new RegExp("^"+r+"$"),s=function(c,d){const h=[];let m=d.exec(c);for(;m;){const f=[];f.startIndex=d.lastIndex-m[0].length;const E=m.length;for(let g=0;g<E;g++)f.push(m[g]);h.push(f),m=d.exec(c)}return h},o=function(c){const d=i.exec(c);return!(d===null||typeof d>"u")};e.isExist=function(c){return typeof c<"u"},e.isEmptyObject=function(c){return Object.keys(c).length===0},e.merge=function(c,d,h){if(d){const m=Object.keys(d),f=m.length;for(let E=0;E<f;E++)h==="strict"?c[m[E]]=[d[m[E]]]:c[m[E]]=d[m[E]]}},e.getValue=function(c){return e.isExist(c)?c:""};const a=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],u=["__proto__","constructor","prototype"];e.isName=o,e.getAllMatches=s,e.nameRegexp=r,e.DANGEROUS_PROPERTY_NAMES=a,e.criticalProperties=u})(ea)),ea}var Bc;function Fc(){if(Bc)return Js;Bc=1;const e=ei(),t={allowBooleanAttributes:!1,unpairedTags:[]};Js.validate=function(p,y){y=Object.assign({},t,y);const S=[];let L=!1,D=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let B=0;B<p.length;B++)if(p[B]==="<"&&p[B+1]==="?"){if(B+=2,B=r(p,B),B.err)return B}else if(p[B]==="<"){let C=B;if(B++,p[B]==="!"){B=i(p,B);continue}else{let x=!1;p[B]==="/"&&(x=!0,B++);let k="";for(;B<p.length&&p[B]!==">"&&p[B]!==" "&&p[B]!==" "&&p[B]!==`
|
|
46
|
+
`&&p[B]!=="\r";B++)k+=p[B];if(k=k.trim(),k[k.length-1]==="/"&&(k=k.substring(0,k.length-1),B--),!E(k)){let A;return k.trim().length===0?A="Invalid space after '<'.":A="Tag '"+k+"' is an invalid name.",m("InvalidTag",A,g(p,B))}const P=a(p,B);if(P===!1)return m("InvalidAttr","Attributes for '"+k+"' have open quote.",g(p,B));let R=P.value;if(B=P.index,R[R.length-1]==="/"){const A=B-R.length;R=R.substring(0,R.length-1);const M=c(R,y);if(M===!0)L=!0;else return m(M.err.code,M.err.msg,g(p,A+M.err.line))}else if(x)if(P.tagClosed){if(R.trim().length>0)return m("InvalidTag","Closing tag '"+k+"' can't have attributes or invalid starting.",g(p,C));if(S.length===0)return m("InvalidTag","Closing tag '"+k+"' has not been opened.",g(p,C));{const A=S.pop();if(k!==A.tagName){let M=g(p,A.tagStartPos);return m("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+M.line+", col "+M.col+") instead of closing tag '"+k+"'.",g(p,C))}S.length==0&&(D=!0)}}else return m("InvalidTag","Closing tag '"+k+"' doesn't have proper closing.",g(p,B));else{const A=c(R,y);if(A!==!0)return m(A.err.code,A.err.msg,g(p,B-R.length+A.err.line));if(D===!0)return m("InvalidXml","Multiple possible root nodes found.",g(p,B));y.unpairedTags.indexOf(k)!==-1||S.push({tagName:k,tagStartPos:C}),L=!0}for(B++;B<p.length;B++)if(p[B]==="<")if(p[B+1]==="!"){B++,B=i(p,B);continue}else if(p[B+1]==="?"){if(B=r(p,++B),B.err)return B}else break;else if(p[B]==="&"){const A=h(p,B);if(A==-1)return m("InvalidChar","char '&' is not expected.",g(p,B));B=A}else if(D===!0&&!n(p[B]))return m("InvalidXml","Extra text at the end",g(p,B));p[B]==="<"&&B--}}else{if(n(p[B]))continue;return m("InvalidChar","char '"+p[B]+"' is not expected.",g(p,B))}if(L){if(S.length==1)return m("InvalidTag","Unclosed tag '"+S[0].tagName+"'.",g(p,S[0].tagStartPos));if(S.length>0)return m("InvalidXml","Invalid '"+JSON.stringify(S.map(B=>B.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return m("InvalidXml","Start tag expected.",1);return!0};function n(p){return p===" "||p===" "||p===`
|
|
47
|
+
`||p==="\r"}function r(p,y){const S=y;for(;y<p.length;y++)if(p[y]=="?"||p[y]==" "){const L=p.substr(S,y-S);if(y>5&&L==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",g(p,y));if(p[y]=="?"&&p[y+1]==">"){y++;break}else continue}return y}function i(p,y){if(p.length>y+5&&p[y+1]==="-"&&p[y+2]==="-"){for(y+=3;y<p.length;y++)if(p[y]==="-"&&p[y+1]==="-"&&p[y+2]===">"){y+=2;break}}else if(p.length>y+8&&p[y+1]==="D"&&p[y+2]==="O"&&p[y+3]==="C"&&p[y+4]==="T"&&p[y+5]==="Y"&&p[y+6]==="P"&&p[y+7]==="E"){let S=1;for(y+=8;y<p.length;y++)if(p[y]==="<")S++;else if(p[y]===">"&&(S--,S===0))break}else if(p.length>y+9&&p[y+1]==="["&&p[y+2]==="C"&&p[y+3]==="D"&&p[y+4]==="A"&&p[y+5]==="T"&&p[y+6]==="A"&&p[y+7]==="["){for(y+=8;y<p.length;y++)if(p[y]==="]"&&p[y+1]==="]"&&p[y+2]===">"){y+=2;break}}return y}const s='"',o="'";function a(p,y){let S="",L="",D=!1;for(;y<p.length;y++){if(p[y]===s||p[y]===o)L===""?L=p[y]:L!==p[y]||(L="");else if(p[y]===">"&&L===""){D=!0;break}S+=p[y]}return L!==""?!1:{value:S,index:y,tagClosed:D}}const u=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function c(p,y){const S=e.getAllMatches(p,u),L={};for(let D=0;D<S.length;D++){if(S[D][1].length===0)return m("InvalidAttr","Attribute '"+S[D][2]+"' has no space in starting.",_(S[D]));if(S[D][3]!==void 0&&S[D][4]===void 0)return m("InvalidAttr","Attribute '"+S[D][2]+"' is without value.",_(S[D]));if(S[D][3]===void 0&&!y.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+S[D][2]+"' is not allowed.",_(S[D]));const B=S[D][2];if(!f(B))return m("InvalidAttr","Attribute '"+B+"' is an invalid name.",_(S[D]));if(!L.hasOwnProperty(B))L[B]=1;else return m("InvalidAttr","Attribute '"+B+"' is repeated.",_(S[D]))}return!0}function d(p,y){let S=/\d/;for(p[y]==="x"&&(y++,S=/[\da-fA-F]/);y<p.length;y++){if(p[y]===";")return y;if(!p[y].match(S))break}return-1}function h(p,y){if(y++,p[y]===";")return-1;if(p[y]==="#")return y++,d(p,y);let S=0;for(;y<p.length;y++,S++)if(!(p[y].match(/\w/)&&S<20)){if(p[y]===";")break;return-1}return y}function m(p,y,S){return{err:{code:p,msg:y,line:S.line||S,col:S.col}}}function f(p){return e.isName(p)}function E(p){return e.isName(p)}function g(p,y){const S=p.substring(0,y).split(/\r?\n/);return{line:S.length,col:S[S.length-1].length+1}}function _(p){return p.startIndex+p[1].length}return Js}var ti={},Uc;function z_(){if(Uc)return ti;Uc=1;const{DANGEROUS_PROPERTY_NAMES:e,criticalProperties:t}=ei(),n=a=>e.includes(a)?"__"+a:a,r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(a,u){return u},attributeValueProcessor:function(a,u){return u},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(a,u,c){return a},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,onDangerousProperty:n};function i(a,u){if(typeof a!="string")return;const c=a.toLowerCase();if(e.some(d=>c===d.toLowerCase()))throw new Error(`[SECURITY] Invalid ${u}: "${a}" is a reserved JavaScript keyword that could cause prototype pollution`);if(t.some(d=>c===d.toLowerCase()))throw new Error(`[SECURITY] Invalid ${u}: "${a}" is a reserved JavaScript keyword that could cause prototype pollution`)}function s(a){return typeof a=="boolean"?{enabled:a,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}:typeof a=="object"&&a!==null?{enabled:a.enabled!==!1,maxEntitySize:Math.max(1,a.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,a.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,a.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,a.maxExpandedLength??1e5),maxEntityCount:Math.max(1,a.maxEntityCount??1e3),allowedTags:a.allowedTags??null,tagFilter:a.tagFilter??null}:s(!0)}const o=function(a){const u=Object.assign({},r,a),c=[{value:u.attributeNamePrefix,name:"attributeNamePrefix"},{value:u.attributesGroupName,name:"attributesGroupName"},{value:u.textNodeName,name:"textNodeName"},{value:u.cdataPropName,name:"cdataPropName"},{value:u.commentPropName,name:"commentPropName"}];for(const{value:d,name:h}of c)d&&i(d,h);return u.onDangerousProperty===null&&(u.onDangerousProperty=n),u.processEntities=s(u.processEntities),u};return ti.buildOptions=o,ti.defaultOptions=r,ti}var ta,Hc;function $_(){if(Hc)return ta;Hc=1;class e{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,r){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:r})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}}return ta=e,ta}var na,zc;function j_(){if(zc)return na;zc=1;const e=ei();class t{constructor(o){this.suppressValidationErr=!o,this.options=o||{}}readDocType(o,a){const u=Object.create(null);let c=0;if(o[a+3]==="O"&&o[a+4]==="C"&&o[a+5]==="T"&&o[a+6]==="Y"&&o[a+7]==="P"&&o[a+8]==="E"){a=a+9;let d=1,h=!1,m=!1,f="";for(;a<o.length;a++)if(o[a]==="<"&&!m){if(h&&r(o,"!ENTITY",a)){a+=7;let E,g;if([E,g,a]=this.readEntityExp(o,a+1,this.suppressValidationErr),g.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&c>=this.options.maxEntityCount)throw new Error(`Entity count (${c+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const _=E.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");u[E]={regx:RegExp(`&${_};`,"g"),val:g},c++}}else if(h&&r(o,"!ELEMENT",a)){a+=8;const{index:E}=this.readElementExp(o,a+1);a=E}else if(h&&r(o,"!ATTLIST",a))a+=8;else if(h&&r(o,"!NOTATION",a)){a+=9;const{index:E}=this.readNotationExp(o,a+1,this.suppressValidationErr);a=E}else if(r(o,"!--",a))m=!0;else throw new Error("Invalid DOCTYPE");d++,f=""}else if(o[a]===">"){if(m?o[a-1]==="-"&&o[a-2]==="-"&&(m=!1,d--):d--,d===0)break}else o[a]==="["?h=!0:f+=o[a];if(d!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:u,i:a}}readEntityExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a])&&o[a]!=='"'&&o[a]!=="'";)u+=o[a],a++;if(i(u),a=n(o,a),!this.suppressValidationErr){if(o.substring(a,a+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(o[a]==="%")throw new Error("Parameter entities are not supported")}let c="";if([a,c]=this.readIdentifierVal(o,a,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&c.length>this.options.maxEntitySize)throw new Error(`Entity "${u}" size (${c.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return a--,[u,c,a]}readNotationExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a]);)u+=o[a],a++;!this.suppressValidationErr&&i(u),a=n(o,a);const c=o.substring(a,a+6).toUpperCase();if(!this.suppressValidationErr&&c!=="SYSTEM"&&c!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${c}"`);a+=c.length,a=n(o,a);let d=null,h=null;if(c==="PUBLIC")[a,d]=this.readIdentifierVal(o,a,"publicIdentifier"),a=n(o,a),(o[a]==='"'||o[a]==="'")&&([a,h]=this.readIdentifierVal(o,a,"systemIdentifier"));else if(c==="SYSTEM"&&([a,h]=this.readIdentifierVal(o,a,"systemIdentifier"),!this.suppressValidationErr&&!h))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:u,publicIdentifier:d,systemIdentifier:h,index:--a}}readIdentifierVal(o,a,u){let c="";const d=o[a];if(d!=='"'&&d!=="'")throw new Error(`Expected quoted string, found "${d}"`);for(a++;a<o.length&&o[a]!==d;)c+=o[a],a++;if(o[a]!==d)throw new Error(`Unterminated ${u} value`);return a++,[a,c]}readElementExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a]);)u+=o[a],a++;if(!this.suppressValidationErr&&!e.isName(u))throw new Error(`Invalid element name: "${u}"`);a=n(o,a);let c="";if(o[a]==="E"&&r(o,"MPTY",a))a+=4;else if(o[a]==="A"&&r(o,"NY",a))a+=2;else if(o[a]==="("){for(a++;a<o.length&&o[a]!==")";)c+=o[a],a++;if(o[a]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${o[a]}"`);return{elementName:u,contentModel:c.trim(),index:a}}readAttlistExp(o,a){a=n(o,a);let u="";for(;a<o.length&&!/\s/.test(o[a]);)u+=o[a],a++;i(u),a=n(o,a);let c="";for(;a<o.length&&!/\s/.test(o[a]);)c+=o[a],a++;if(!i(c))throw new Error(`Invalid attribute name: "${c}"`);a=n(o,a);let d="";if(o.substring(a,a+8).toUpperCase()==="NOTATION"){if(d="NOTATION",a+=8,a=n(o,a),o[a]!=="(")throw new Error(`Expected '(', found "${o[a]}"`);a++;let m=[];for(;a<o.length&&o[a]!==")";){let f="";for(;a<o.length&&o[a]!=="|"&&o[a]!==")";)f+=o[a],a++;if(f=f.trim(),!i(f))throw new Error(`Invalid notation name: "${f}"`);m.push(f),o[a]==="|"&&(a++,a=n(o,a))}if(o[a]!==")")throw new Error("Unterminated list of notations");a++,d+=" ("+m.join("|")+")"}else{for(;a<o.length&&!/\s/.test(o[a]);)d+=o[a],a++;const m=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!m.includes(d.toUpperCase()))throw new Error(`Invalid attribute type: "${d}"`)}a=n(o,a);let h="";return o.substring(a,a+8).toUpperCase()==="#REQUIRED"?(h="#REQUIRED",a+=8):o.substring(a,a+7).toUpperCase()==="#IMPLIED"?(h="#IMPLIED",a+=7):[a,h]=this.readIdentifierVal(o,a,"ATTLIST"),{elementName:u,attributeName:c,attributeType:d,defaultValue:h,index:a}}}const n=(s,o)=>{for(;o<s.length&&/\s/.test(s[o]);)o++;return o};function r(s,o,a){for(let u=0;u<o.length;u++)if(o[u]!==s[a+u+1])return!1;return!0}function i(s){if(e.isName(s))return s;throw new Error(`Invalid entity name ${s}`)}return na=t,na}var ra,$c;function q_(){if($c)return ra;$c=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function r(o,a={}){if(a=Object.assign({},n,a),!o||typeof o!="string")return o;let u=o.trim();if(a.skipLike!==void 0&&a.skipLike.test(u))return o;if(o==="0")return 0;if(a.hex&&e.test(u))return s(u,16);if(u.search(/[eE]/)!==-1){const c=u.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(c){if(a.leadingZeros)u=(c[1]||"")+c[3];else if(!(c[2]==="0"&&c[3][0]==="."))return o;return a.eNotation?Number(u):o}else return o}else{const c=t.exec(u);if(c){const d=c[1],h=c[2];let m=i(c[3]);if(!a.leadingZeros&&h.length>0&&d&&u[2]!==".")return o;if(!a.leadingZeros&&h.length>0&&!d&&u[1]!==".")return o;if(a.leadingZeros&&h===o)return 0;{const f=Number(u),E=""+f;return E.search(/[eE]/)!==-1?a.eNotation?f:o:u.indexOf(".")!==-1?E==="0"&&m===""||E===m||d&&E==="-"+m?f:o:h?m===E||d+m===E?f:o:u===E||u===d+E?f:o}}else return o}}function i(o){return o&&o.indexOf(".")!==-1&&(o=o.replace(/0+$/,""),o==="."?o="0":o[0]==="."?o="0"+o:o[o.length-1]==="."&&(o=o.substr(0,o.length-1))),o}function s(o,a){if(parseInt)return parseInt(o,a);if(Number.parseInt)return Number.parseInt(o,a);if(window&&window.parseInt)return window.parseInt(o,a);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return ra=r,ra}var ia,jc;function qc(){if(jc)return ia;jc=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?n=>{for(const r of t)if(typeof r=="string"&&n===r||r instanceof RegExp&&r.test(n))return!0}:()=>!1}return ia=e,ia}var sa,Yc;function Y_(){if(Yc)return sa;Yc=1;const e=ei(),t=$_(),n=j_(),r=q_(),i=qc();class s{constructor(x){if(this.options=x,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(k,P)=>D(P,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(k,P)=>D(P,16,"&#x")}},this.addExternalEntities=o,this.parseXml=h,this.parseTextData=a,this.resolveNameSpace=u,this.buildAttributesMap=d,this.isItStopNode=g,this.replaceEntitiesValue=f,this.readStopNodeData=S,this.saveTextToParentTag=E,this.addChild=m,this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let k=0;k<this.options.stopNodes.length;k++){const P=this.options.stopNodes[k];typeof P=="string"&&(P.startsWith("*.")?this.stopNodesWildcard.add(P.substring(2)):this.stopNodesExact.add(P))}}}}function o(C){const x=Object.keys(C);for(let k=0;k<x.length;k++){const P=x[k],R=P.replace(/[.\-+*:]/g,"\\.");this.lastEntities[P]={regex:new RegExp("&"+R+";","g"),val:C[P]}}}function a(C,x,k,P,R,A,M){if(C!==void 0&&(this.options.trimValues&&!P&&(C=C.trim()),C.length>0)){M||(C=this.replaceEntitiesValue(C,x,k));const T=this.options.tagValueProcessor(x,C,k,R,A);return T==null?C:typeof T!=typeof C||T!==C?T:this.options.trimValues?L(C,this.options.parseTagValue,this.options.numberParseOptions):C.trim()===C?L(C,this.options.parseTagValue,this.options.numberParseOptions):C}}function u(C){if(this.options.removeNSPrefix){const x=C.split(":"),k=C.charAt(0)==="/"?"/":"";if(x[0]==="xmlns")return"";x.length===2&&(C=k+x[1])}return C}const c=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function d(C,x,k){if(this.options.ignoreAttributes!==!0&&typeof C=="string"){const P=e.getAllMatches(C,c),R=P.length,A={};for(let M=0;M<R;M++){const T=this.resolveNameSpace(P[M][1]);if(this.ignoreAttributesFn(T,x))continue;let U=P[M][4],W=this.options.attributeNamePrefix+T;if(T.length)if(this.options.transformAttributeName&&(W=this.options.transformAttributeName(W)),W=B(W,this.options),U!==void 0){this.options.trimValues&&(U=U.trim()),U=this.replaceEntitiesValue(U,k,x);const G=this.options.attributeValueProcessor(T,U,x);G==null?A[W]=U:typeof G!=typeof U||G!==U?A[W]=G:A[W]=L(U,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(A[W]=!0)}if(!Object.keys(A).length)return;if(this.options.attributesGroupName){const M={};return M[this.options.attributesGroupName]=A,M}return A}}const h=function(C){C=C.replace(/\r\n?/g,`
|
|
48
|
+
`);const x=new t("!xml");let k=x,P="",R="";this.entityExpansionCount=0,this.currentExpandedLength=0;const A=new n(this.options.processEntities);for(let M=0;M<C.length;M++)if(C[M]==="<")if(C[M+1]==="/"){const U=p(C,">",M,"Closing Tag is not closed.");let W=C.substring(M+2,U).trim();if(this.options.removeNSPrefix){const Z=W.indexOf(":");Z!==-1&&(W=W.substr(Z+1))}this.options.transformTagName&&(W=this.options.transformTagName(W)),k&&(P=this.saveTextToParentTag(P,k,R));const G=R.substring(R.lastIndexOf(".")+1);if(W&&this.options.unpairedTags.indexOf(W)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${W}>`);let se=0;G&&this.options.unpairedTags.indexOf(G)!==-1?(se=R.lastIndexOf(".",R.lastIndexOf(".")-1),this.tagsNodeStack.pop()):se=R.lastIndexOf("."),R=R.substring(0,se),k=this.tagsNodeStack.pop(),P="",M=U}else if(C[M+1]==="?"){let U=y(C,M,!1,"?>");if(!U)throw new Error("Pi Tag is not closed.");if(P=this.saveTextToParentTag(P,k,R),!(this.options.ignoreDeclaration&&U.tagName==="?xml"||this.options.ignorePiTags)){const W=new t(U.tagName);W.add(this.options.textNodeName,""),U.tagName!==U.tagExp&&U.attrExpPresent&&(W[":@"]=this.buildAttributesMap(U.tagExp,R,U.tagName)),this.addChild(k,W,R,M)}M=U.closeIndex+1}else if(C.substr(M+1,3)==="!--"){const U=p(C,"-->",M+4,"Comment is not closed.");if(this.options.commentPropName){const W=C.substring(M+4,U-2);P=this.saveTextToParentTag(P,k,R),k.add(this.options.commentPropName,[{[this.options.textNodeName]:W}])}M=U}else if(C.substr(M+1,2)==="!D"){const U=A.readDocType(C,M);this.docTypeEntities=U.entities,M=U.i}else if(C.substr(M+1,2)==="!["){const U=p(C,"]]>",M,"CDATA is not closed.")-2,W=C.substring(M+9,U);P=this.saveTextToParentTag(P,k,R);let G=this.parseTextData(W,k.tagname,R,!0,!1,!0,!0);G==null&&(G=""),this.options.cdataPropName?k.add(this.options.cdataPropName,[{[this.options.textNodeName]:W}]):k.add(this.options.textNodeName,G),M=U+2}else{let U=y(C,M,this.options.removeNSPrefix),W=U.tagName;const G=U.rawTagName;let se=U.tagExp,Z=U.attrExpPresent,he=U.closeIndex;if(this.options.transformTagName){const oe=this.options.transformTagName(W);se===W&&(se=oe),W=oe}if(this.options.strictReservedNames&&(W===this.options.commentPropName||W===this.options.cdataPropName||W===this.options.textNodeName||W===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${W}`);k&&P&&k.tagname!=="!xml"&&(P=this.saveTextToParentTag(P,k,R,!1));const j=k;j&&this.options.unpairedTags.indexOf(j.tagname)!==-1&&(k=this.tagsNodeStack.pop(),R=R.substring(0,R.lastIndexOf("."))),W!==x.tagname&&(R+=R?"."+W:W);const $=M;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,R,W)){let oe="";if(se.length>0&&se.lastIndexOf("/")===se.length-1)W[W.length-1]==="/"?(W=W.substr(0,W.length-1),R=R.substr(0,R.length-1),se=W):se=se.substr(0,se.length-1),M=U.closeIndex;else if(this.options.unpairedTags.indexOf(W)!==-1)M=U.closeIndex;else{const ie=this.readStopNodeData(C,G,he+1);if(!ie)throw new Error(`Unexpected end of ${G}`);M=ie.i,oe=ie.tagContent}const ae=new t(W);W!==se&&Z&&(ae[":@"]=this.buildAttributesMap(se,R,W)),oe&&(oe=this.parseTextData(oe,W,R,!0,Z,!0,!0)),R=R.substr(0,R.lastIndexOf(".")),ae.add(this.options.textNodeName,oe),this.addChild(k,ae,R,$)}else{if(se.length>0&&se.lastIndexOf("/")===se.length-1){if(W[W.length-1]==="/"?(W=W.substr(0,W.length-1),R=R.substr(0,R.length-1),se=W):se=se.substr(0,se.length-1),this.options.transformTagName){const ae=this.options.transformTagName(W);se===W&&(se=ae),W=ae}const oe=new t(W);W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,R,W)),this.addChild(k,oe,R,$),R=R.substr(0,R.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(W)!==-1){const oe=new t(W);W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,R)),this.addChild(k,oe,R,$),R=R.substr(0,R.lastIndexOf(".")),M=U.closeIndex;continue}else{const oe=new t(W);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(k),W!==se&&Z&&(oe[":@"]=this.buildAttributesMap(se,R,W)),this.addChild(k,oe,R),k=oe}P="",M=he}}else P+=C[M];return x.child};function m(C,x,k,P){this.options.captureMetaData||(P=void 0);const R=this.options.updateTag(x.tagname,k,x[":@"]);R===!1||(typeof R=="string"&&(x.tagname=R),C.addChild(x,P))}const f=function(C,x,k){if(C.indexOf("&")===-1)return C;const P=this.options.processEntities;if(!P.enabled||P.allowedTags&&!P.allowedTags.includes(x)||P.tagFilter&&!P.tagFilter(x,k))return C;for(let R in this.docTypeEntities){const A=this.docTypeEntities[R],M=C.match(A.regx);if(M){if(this.entityExpansionCount+=M.length,P.maxTotalExpansions&&this.entityExpansionCount>P.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`);const T=C.length;if(C=C.replace(A.regx,A.val),P.maxExpandedLength&&(this.currentExpandedLength+=C.length-T,this.currentExpandedLength>P.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${P.maxExpandedLength}`)}}if(C.indexOf("&")===-1)return C;for(const R of Object.keys(this.lastEntities)){const A=this.lastEntities[R],M=C.match(A.regex);if(M&&(this.entityExpansionCount+=M.length,P.maxTotalExpansions&&this.entityExpansionCount>P.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`);C=C.replace(A.regex,A.val)}if(C.indexOf("&")===-1)return C;if(this.options.htmlEntities)for(const R of Object.keys(this.htmlEntities)){const A=this.htmlEntities[R],M=C.match(A.regex);if(M&&(this.entityExpansionCount+=M.length,P.maxTotalExpansions&&this.entityExpansionCount>P.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${P.maxTotalExpansions}`);C=C.replace(A.regex,A.val)}return C=C.replace(this.ampEntity.regex,this.ampEntity.val),C};function E(C,x,k,P){return C&&(P===void 0&&(P=x.child.length===0),C=this.parseTextData(C,x.tagname,k,!1,x[":@"]?Object.keys(x[":@"]).length!==0:!1,P),C!==void 0&&C!==""&&x.add(this.options.textNodeName,C),C=""),C}function g(C,x,k,P){return!!(x&&x.has(P)||C&&C.has(k))}function _(C,x,k=">"){let P,R="";for(let A=x;A<C.length;A++){let M=C[A];if(P)M===P&&(P="");else if(M==='"'||M==="'")P=M;else if(M===k[0])if(k[1]){if(C[A+1]===k[1])return{data:R,index:A}}else return{data:R,index:A};else M===" "&&(M=" ");R+=M}}function p(C,x,k,P){const R=C.indexOf(x,k);if(R===-1)throw new Error(P);return R+x.length-1}function y(C,x,k,P=">"){const R=_(C,x+1,P);if(!R)return;let A=R.data;const M=R.index,T=A.search(/\s/);let U=A,W=!0;T!==-1&&(U=A.substring(0,T),A=A.substring(T+1).trimStart());const G=U;if(k){const se=U.indexOf(":");se!==-1&&(U=U.substr(se+1),W=U!==R.data.substr(se+1))}return{tagName:U,tagExp:A,closeIndex:M,attrExpPresent:W,rawTagName:G}}function S(C,x,k){const P=k;let R=1;for(;k<C.length;k++)if(C[k]==="<")if(C[k+1]==="/"){const A=p(C,">",k,`${x} is not closed`);if(C.substring(k+2,A).trim()===x&&(R--,R===0))return{tagContent:C.substring(P,k),i:A};k=A}else if(C[k+1]==="?")k=p(C,"?>",k+1,"StopNode is not closed.");else if(C.substr(k+1,3)==="!--")k=p(C,"-->",k+3,"StopNode is not closed.");else if(C.substr(k+1,2)==="![")k=p(C,"]]>",k,"StopNode is not closed.")-2;else{const A=y(C,k,">");A&&((A&&A.tagName)===x&&A.tagExp[A.tagExp.length-1]!=="/"&&R++,k=A.closeIndex)}}function L(C,x,k){if(x&&typeof C=="string"){const P=C.trim();return P==="true"?!0:P==="false"?!1:r(C,k)}else return e.isExist(C)?C:""}function D(C,x,k){const P=Number.parseInt(C,x);return P>=0&&P<=1114111?String.fromCodePoint(P):k+C+";"}function B(C,x){if(e.criticalProperties.includes(C))throw new Error(`[SECURITY] Invalid name: "${C}" is a reserved JavaScript keyword that could cause prototype pollution`);return e.DANGEROUS_PROPERTY_NAMES.includes(C)?x.onDangerousProperty(C):C}return sa=s,sa}var aa={},Wc;function W_(){if(Wc)return aa;Wc=1;function e(s,o){return t(s,o)}function t(s,o,a){let u;const c={};for(let d=0;d<s.length;d++){const h=s[d],m=n(h);let f="";if(a===void 0?f=m:f=a+"."+m,m===o.textNodeName)u===void 0?u=h[m]:u+=""+h[m];else{if(m===void 0)continue;if(h[m]){let E=t(h[m],o,f);const g=i(E,o);h[":@"]?r(E,h[":@"],f,o):Object.keys(E).length===1&&E[o.textNodeName]!==void 0&&!o.alwaysCreateTextNode?E=E[o.textNodeName]:Object.keys(E).length===0&&(o.alwaysCreateTextNode?E[o.textNodeName]="":E=""),c[m]!==void 0&&c.hasOwnProperty(m)?(Array.isArray(c[m])||(c[m]=[c[m]]),c[m].push(E)):o.isArray(m,f,g)?c[m]=[E]:c[m]=E}}}return typeof u=="string"?u.length>0&&(c[o.textNodeName]=u):u!==void 0&&(c[o.textNodeName]=u),c}function n(s){const o=Object.keys(s);for(let a=0;a<o.length;a++){const u=o[a];if(u!==":@")return u}}function r(s,o,a,u){if(o){const c=Object.keys(o),d=c.length;for(let h=0;h<d;h++){const m=c[h];u.isArray(m,a+"."+m,!0,!0)?s[m]=[o[m]]:s[m]=o[m]}}}function i(s,o){const{textNodeName:a}=o,u=Object.keys(s).length;return!!(u===0||u===1&&(s[a]||typeof s[a]=="boolean"||s[a]===0))}return aa.prettify=e,aa}var oa,Gc;function G_(){if(Gc)return oa;Gc=1;const{buildOptions:e}=z_(),t=Y_(),{prettify:n}=W_(),r=Fc();class i{constructor(o){this.externalEntities={},this.options=e(o)}parse(o,a){if(typeof o!="string")if(o.toString)o=o.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(a){a===!0&&(a={});const d=r.validate(o,a);if(d!==!0)throw Error(`${d.err.msg}:${d.err.line}:${d.err.col}`)}const u=new t(this.options);u.addExternalEntities(this.externalEntities);const c=u.parseXml(o);return this.options.preserveOrder||c===void 0?c:n(c,this.options)}addEntity(o,a){if(a.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(o.indexOf("&")!==-1||o.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(a==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[o]=a}}return oa=i,oa}var ua,Vc;function V_(){if(Vc)return ua;Vc=1;const e=`
|
|
49
|
+
`;function t(a,u){let c="";return u.format&&u.indentBy.length>0&&(c=e),n(a,u,"",c)}function n(a,u,c,d){let h="",m=!1;if(!Array.isArray(a)){if(a!=null){let f=a.toString();return f=o(f,u),f}return""}for(let f=0;f<a.length;f++){const E=a[f],g=r(E);if(g===void 0)continue;let _="";if(c.length===0?_=g:_=`${c}.${g}`,g===u.textNodeName){let D=E[g];s(_,u)||(D=u.tagValueProcessor(g,D),D=o(D,u)),m&&(h+=d),h+=D,m=!1;continue}else if(g===u.cdataPropName){m&&(h+=d),h+=`<![CDATA[${E[g][0][u.textNodeName]}]]>`,m=!1;continue}else if(g===u.commentPropName){h+=d+`<!--${E[g][0][u.textNodeName]}-->`,m=!0;continue}else if(g[0]==="?"){const D=i(E[":@"],u),B=g==="?xml"?"":d;let C=E[g][0][u.textNodeName];C=C.length!==0?" "+C:"",h+=B+`<${g}${C}${D}?>`,m=!0;continue}let p=d;p!==""&&(p+=u.indentBy);const y=i(E[":@"],u),S=d+`<${g}${y}`,L=n(E[g],u,_,p);u.unpairedTags.indexOf(g)!==-1?u.suppressUnpairedNode?h+=S+">":h+=S+"/>":(!L||L.length===0)&&u.suppressEmptyNode?h+=S+"/>":L&&L.endsWith(">")?h+=S+`>${L}${d}</${g}>`:(h+=S+">",L&&d!==""&&(L.includes("/>")||L.includes("</"))?h+=d+u.indentBy+L+d:h+=L,h+=`</${g}>`),m=!0}return h}function r(a){const u=Object.keys(a);for(let c=0;c<u.length;c++){const d=u[c];if(Object.prototype.hasOwnProperty.call(a,d)&&d!==":@")return d}}function i(a,u){let c="";if(a&&!u.ignoreAttributes)for(let d in a){if(!Object.prototype.hasOwnProperty.call(a,d))continue;let h=u.attributeValueProcessor(d,a[d]);h=o(h,u),h===!0&&u.suppressBooleanAttributes?c+=` ${d.substr(u.attributeNamePrefix.length)}`:c+=` ${d.substr(u.attributeNamePrefix.length)}="${h}"`}return c}function s(a,u){a=a.substr(0,a.length-u.textNodeName.length-1);let c=a.substr(a.lastIndexOf(".")+1);for(let d in u.stopNodes)if(u.stopNodes[d]===a||u.stopNodes[d]==="*."+c)return!0;return!1}function o(a,u){if(a&&a.length>0&&u.processEntities)for(let c=0;c<u.entities.length;c++){const d=u.entities[c];a=a.replace(d.regex,d.val)}return a}return ua=t,ua}var la,Kc;function K_(){if(Kc)return la;Kc=1;const e=V_(),t=qc(),n={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(a,u){return u},attributeValueProcessor:function(a,u){return u},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function r(a){this.options=Object.assign({},n,a),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=o),this.processTextOrObjNode=i,this.options.format?(this.indentate=s,this.tagEndChar=`>
|
|
50
|
+
`,this.newLine=`
|
|
51
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}r.prototype.build=function(a){return this.options.preserveOrder?e(a,this.options):(Array.isArray(a)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(a={[this.options.arrayNodeName]:a}),this.j2x(a,0,[]).val)},r.prototype.j2x=function(a,u,c){let d="",h="";const m=c.join(".");for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f))if(typeof a[f]>"u")this.isAttribute(f)&&(h+="");else if(a[f]===null)this.isAttribute(f)||f===this.options.cdataPropName?h+="":f[0]==="?"?h+=this.indentate(u)+"<"+f+"?"+this.tagEndChar:h+=this.indentate(u)+"<"+f+"/"+this.tagEndChar;else if(a[f]instanceof Date)h+=this.buildTextValNode(a[f],f,"",u);else if(typeof a[f]!="object"){const E=this.isAttribute(f);if(E&&!this.ignoreAttributesFn(E,m))d+=this.buildAttrPairStr(E,""+a[f]);else if(!E)if(f===this.options.textNodeName){let g=this.options.tagValueProcessor(f,""+a[f]);h+=this.replaceEntitiesValue(g)}else h+=this.buildTextValNode(a[f],f,"",u)}else if(Array.isArray(a[f])){const E=a[f].length;let g="",_="";for(let p=0;p<E;p++){const y=a[f][p];if(!(typeof y>"u"))if(y===null)f[0]==="?"?h+=this.indentate(u)+"<"+f+"?"+this.tagEndChar:h+=this.indentate(u)+"<"+f+"/"+this.tagEndChar;else if(typeof y=="object")if(this.options.oneListGroup){const S=this.j2x(y,u+1,c.concat(f));g+=S.val,this.options.attributesGroupName&&y.hasOwnProperty(this.options.attributesGroupName)&&(_+=S.attrStr)}else g+=this.processTextOrObjNode(y,f,u,c);else if(this.options.oneListGroup){let S=this.options.tagValueProcessor(f,y);S=this.replaceEntitiesValue(S),g+=S}else g+=this.buildTextValNode(y,f,"",u)}this.options.oneListGroup&&(g=this.buildObjectNode(g,f,_,u)),h+=g}else if(this.options.attributesGroupName&&f===this.options.attributesGroupName){const E=Object.keys(a[f]),g=E.length;for(let _=0;_<g;_++)d+=this.buildAttrPairStr(E[_],""+a[f][E[_]])}else h+=this.processTextOrObjNode(a[f],f,u,c);return{attrStr:d,val:h}},r.prototype.buildAttrPairStr=function(a,u){return u=this.options.attributeValueProcessor(a,""+u),u=this.replaceEntitiesValue(u),this.options.suppressBooleanAttributes&&u==="true"?" "+a:" "+a+'="'+u+'"'};function i(a,u,c,d){const h=this.j2x(a,c+1,d.concat(u));return a[this.options.textNodeName]!==void 0&&Object.keys(a).length===1?this.buildTextValNode(a[this.options.textNodeName],u,h.attrStr,c):this.buildObjectNode(h.val,u,h.attrStr,c)}r.prototype.buildObjectNode=function(a,u,c,d){if(a==="")return u[0]==="?"?this.indentate(d)+"<"+u+c+"?"+this.tagEndChar:this.indentate(d)+"<"+u+c+this.closeTag(u)+this.tagEndChar;{let h="</"+u+this.tagEndChar,m="";return u[0]==="?"&&(m="?",h=""),(c||c==="")&&a.indexOf("<")===-1?this.indentate(d)+"<"+u+c+m+">"+a+h:this.options.commentPropName!==!1&&u===this.options.commentPropName&&m.length===0?this.indentate(d)+`<!--${a}-->`+this.newLine:this.indentate(d)+"<"+u+c+m+this.tagEndChar+a+this.indentate(d)+h}},r.prototype.closeTag=function(a){let u="";return this.options.unpairedTags.indexOf(a)!==-1?this.options.suppressUnpairedNode||(u="/"):this.options.suppressEmptyNode?u="/":u=`></${a}`,u},r.prototype.buildTextValNode=function(a,u,c,d){if(this.options.cdataPropName!==!1&&u===this.options.cdataPropName)return this.indentate(d)+`<![CDATA[${a}]]>`+this.newLine;if(this.options.commentPropName!==!1&&u===this.options.commentPropName)return this.indentate(d)+`<!--${a}-->`+this.newLine;if(u[0]==="?")return this.indentate(d)+"<"+u+c+"?"+this.tagEndChar;{let h=this.options.tagValueProcessor(u,a);return h=this.replaceEntitiesValue(h),h===""?this.indentate(d)+"<"+u+c+this.closeTag(u)+this.tagEndChar:this.indentate(d)+"<"+u+c+">"+h+"</"+u+this.tagEndChar}},r.prototype.replaceEntitiesValue=function(a){if(a&&a.length>0&&this.options.processEntities)for(let u=0;u<this.options.entities.length;u++){const c=this.options.entities[u];a=a.replace(c.regex,c.val)}return a};function s(a){return this.options.indentBy.repeat(a)}function o(a){return a.startsWith(this.options.attributeNamePrefix)&&a!==this.options.textNodeName?a.substr(this.attrPrefixLen):!1}return la=r,la}var ca,Xc;function X_(){if(Xc)return ca;Xc=1;const e=Fc(),t=G_(),n=K_();return ca={XMLParser:t,XMLValidator:e,XMLBuilder:n},ca}var da=X_();const Q_={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",trimValues:!1,preserveOrder:!1,isArray:e=>["w:p","w:r","w:t","w:tbl","w:tr","w:tc","w:hyperlink","w:drawing","w:style","w:abstractNum","w:num","w:lvl"].includes(e)},Z_={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",trimValues:!1,preserveOrder:!0},J_=new da.XMLParser(Z_),ek={ignoreAttributes:!1,attributeNamePrefix:"@_",textNodeName:"#text",format:!0,suppressEmptyNode:!0};new da.XMLParser(Q_),new da.XMLBuilder(ek);function tk(e){return J_.parse(e)}const Qc={Heading1:1,Heading2:2,Heading3:3,Heading4:4,Heading5:5,Heading6:6,heading1:1,heading2:2,heading3:3,heading4:4,heading5:5,heading6:6,"Heading 1":1,"Heading 2":2,"Heading 3":3,"Heading 4":4,"Heading 5":5,"Heading 6":6},Zc=new Set(["Code","code","SourceCode","HTMLCode"]),Jc=new Set(["Quote","quote","BlockQuote","IntenseQuote"]);let ed=new Map;function nk(e){const t=new Map;if(!e)return t;const n=/Id="([^"]+)"[^>]*Type="[^"]*\/hyperlink"[^>]*Target="([^"]+)"/g;let r;for(;(r=n.exec(e))!==null;)t.set(r[1],r[2]);return t}async function rk(e,t){const n=await F_(e),r=n.rawParts.get("word/occam-udm.json");if(r)try{const a=JSON.parse(r),u=n.rawParts.get("word/occam-css.json");if(u){const c=JSON.parse(u);a.data={...a.data,css:c}}return a.data={...a.data,docx:{rawParts:Object.fromEntries(n.rawParts),styles:n.styles,numbering:n.numbering,relationships:n.relationships,contentTypes:n.contentTypes}},a}catch{}ed=nk(n.relationships);const i=tk(n.document),o={type:"root",children:ik(i)};return o.data={docx:{rawParts:Object.fromEntries(n.rawParts),styles:n.styles,numbering:n.numbering,relationships:n.relationships,contentTypes:n.contentTypes}},n.media.size>0&&(o.data.docx.media=Object.fromEntries([...n.media].map(([a,u])=>[a,Array.from(u)]))),o}function ik(e){const t=e.find(s=>s["w:document"]);if(!t)return[];const r=(t["w:document"]??[]).find(s=>s["w:body"]);if(!r)return[];const i=r["w:body"]??[];return sk(i)}function sk(e){const t=[];let n=[];function r(){n.length>0&&(t.push(n[0].list),n=[])}for(const i of e)if(i["w:p"]!==void 0){const s=i["w:p"]??[],o=i[":@"]??{},a=ak(s,o,n,r);a&&(r(),t.push(a))}else i["w:tbl"]!==void 0?(r(),t.push(lk(i["w:tbl"]??[]))):i["w:sectPr"];return r(),t}function ak(e,t,n,r,i){var _,p;const s=e.find(y=>y["w:pPr"]!==void 0),o=(s==null?void 0:s["w:pPr"])??[],a=o.find(y=>y["w:numPr"]!==void 0);if(a){const y=a["w:numPr"]??[],S=fa(y,"w:numId","w:val")??"0",L=Number(fa(y,"w:ilvl","w:val")??0),C={type:"listItem",children:[{type:"paragraph",children:wn(e)}]};if(n.length===0||n[0].numId!==S){r();const x={type:"list",ordered:!1,children:[C]};n.push({numId:S,ilvl:L,list:x,item:C})}else{const x=n[n.length-1];if(L>x.ilvl){const k={type:"list",ordered:!1,children:[C]};x.item.children.push(k),n.push({numId:S,ilvl:L,list:k,item:C})}else if(L<x.ilvl){for(;n.length>1&&n[n.length-1].ilvl>L;)n.pop();n[n.length-1].list.children.push(C),n[n.length-1].item=C}else x.list.children.push(C),x.item=C}return null}const u=fa(o,"w:pStyle","w:val");if(u&&Zc.has(u))return{type:"codeBlock",value:ok(e)};if(u&&Jc.has(u)){const y=wn(e);return y.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:y}]}}const c=o.find(y=>y["w:ind"]!==void 0),d=(_=c==null?void 0:c[":@"])==null?void 0:_["@_w:left"];if(d&&Number(d)>=720&&!u){const y=wn(e);return y.length===0?null:{type:"blockquote",children:[{type:"paragraph",children:y}]}}const h=u?Qc[u]:void 0;if(h){const y=wn(e);return{type:"heading",depth:h,children:y}}const m=wn(e);if(m.length===0)return null;const f={type:"paragraph",children:m};u&&!Qc[u]&&!Zc.has(u)&&!Jc.has(u)&&(f.classes=[u]);const E={},g=o.find(y=>y["w:jc"]!==void 0);return g&&(E.align=(p=g[":@"])==null?void 0:p["@_w:val"]),Object.keys(E).length>0&&(f.data={docx:E}),f}function wn(e){const t=[];for(const n of e)if(n["w:r"]!==void 0){const r=n["w:r"]??[],i=ha(r);if(!i)continue;const s=td(r),o={type:"text",value:i};s.length>0&&(o.marks=s);const a=r.find(u=>u["w:rPr"]!==void 0);if(a){const u=uk(a["w:rPr"]??[]);Object.keys(u).length>0&&(o.data={docx:u})}t.push(o)}else if(n["w:hyperlink"]!==void 0){const r=n["w:hyperlink"]??[],i=n[":@"]??{},s=i["@_r:id"]??i["@_w:id"]??"",o=ed.get(s)??`#${s}`;for(const a of r)if(a["w:r"]!==void 0){const u=a["w:r"]??[],c=ha(u);if(!c)continue;const d=td(u);d.push({type:"link",attrs:{url:o}}),t.push({type:"text",value:c,marks:d})}}return t}function ha(e){let t="";for(const n of e)if(n["w:t"]!==void 0){const r=n["w:t"];if(Array.isArray(r))for(const i of r)typeof i=="object"&&i["#text"]!==void 0?t+=i["#text"]:typeof i=="string"&&(t+=i);else typeof r=="string"?t+=r:(r==null?void 0:r["#text"])!==void 0&&(t+=r["#text"])}return t||null}function ok(e){let t="";for(const n of e)if(n["w:r"]!==void 0){const r=ha(n["w:r"]??[]);r&&(t+=r)}return t}function td(e){var i,s,o;const t=e.find(a=>a["w:rPr"]!==void 0);if(!t)return[];const n=t["w:rPr"]??[],r=[];for(const a of n){if(a["w:b"]!==void 0&&r.push({type:"strong"}),a["w:i"]!==void 0&&r.push({type:"emphasis"}),a["w:u"]!==void 0){const u=((i=a[":@"])==null?void 0:i["@_w:val"])??"single";r.push({type:"underline",attrs:{style:u}})}if(a["w:strike"]!==void 0&&r.push({type:"strikethrough"}),a["w:dstrike"]!==void 0&&r.push({type:"strikethrough",attrs:{double:!0}}),a["w:vertAlign"]!==void 0){const u=(s=a[":@"])==null?void 0:s["@_w:val"];u==="superscript"&&r.push({type:"superscript"}),u==="subscript"&&r.push({type:"subscript"})}if(a["w:highlight"]!==void 0){const u=(o=a[":@"])==null?void 0:o["@_w:val"];r.push({type:"highlight",attrs:{color:u}})}}return r}function uk(e){var n,r,i,s,o;const t={};for(const a of e)a["w:rFonts"]!==void 0&&(t.font={ascii:(n=a[":@"])==null?void 0:n["@_w:ascii"],hAnsi:(r=a[":@"])==null?void 0:r["@_w:hAnsi"]}),a["w:sz"]!==void 0&&(t.fontSize=Number((i=a[":@"])==null?void 0:i["@_w:val"])),a["w:color"]!==void 0&&(t.color=(s=a[":@"])==null?void 0:s["@_w:val"]),a["w:rStyle"]!==void 0&&(t.rStyle=(o=a[":@"])==null?void 0:o["@_w:val"]);return t}function lk(e){var n;const t=[];for(const r of e)if(r["w:tr"]!==void 0){const i=r["w:tr"]??[],s=[];let o=!1;for(const a of i)if(a["w:trPr"]!==void 0&&(a["w:trPr"]??[]).some(c=>c["w:tblHeader"]!==void 0)&&(o=!0),a["w:tc"]!==void 0){const u=a["w:tc"]??[],c=[];let d;for(const m of u){if(m["w:tcPr"]!==void 0){const f=m["w:tcPr"]??[];for(const E of f)if(E["w:gridSpan"]!==void 0){const g=Number((n=E[":@"])==null?void 0:n["@_w:val"]);g>1&&(d=g)}}if(m["w:p"]!==void 0){const f=wn(m["w:p"]??[]);f.length>0&&c.push({type:"paragraph",children:f})}}const h={type:"tableCell",children:c};d&&(h.colspan=d),s.push(h)}t.push({type:"tableRow",isHeader:o||void 0,children:s})}return{type:"table",children:t}}function fa(e,t,n){var i;const r=e.find(s=>s[t]!==void 0);if(r)return(i=r[":@"])==null?void 0:i[`@_${n}`]}const nd={black:"000000",white:"FFFFFF",red:"FF0000",green:"008000",blue:"0000FF",yellow:"FFFF00",gray:"808080",grey:"808080",orange:"FFA500",purple:"800080",navy:"000080",teal:"008080",maroon:"800000",silver:"C0C0C0",olive:"808000",aqua:"00FFFF",fuchsia:"FF00FF",lime:"00FF00"};function ni(e){const t=e.trim().toLowerCase();if(nd[t])return nd[t];const n=t.match(/^#([0-9a-f]{3,8})$/);if(n){const i=n[1];if(i.length===3||i.length===4)return i[0]+i[0]+i[1]+i[1]+i[2]+i[2];if(i.length===6)return i;if(i.length===8)return i.slice(0,6)}const r=t.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(r)return[r[1],r[2],r[3]].map(i=>Number(i).toString(16).padStart(2,"0")).join("")}function tn(e){const t=e.trim().match(/^(-?[\d.]+)(px|pt|em|rem|cm|mm|in|%)$/);if(!t)return;const n=parseFloat(t[1]);switch(t[2]){case"pt":return Math.round(n*20);case"px":return Math.round(n*.75*20);case"in":return Math.round(n*1440);case"cm":return Math.round(n*567);case"mm":return Math.round(n*56.7);case"em":case"rem":return Math.round(n*12*20);default:return}}function rd(e){const t=e.trim().match(/^(-?[\d.]+)(px|pt|em|rem)$/);if(!t)return;const n=parseFloat(t[1]);switch(t[2]){case"pt":return Math.round(n*2);case"px":return Math.round(n*.75*2);case"em":case"rem":return Math.round(n*12*2);default:return}}function ht(e){const t={};if(e["font-family"]){const n=e["font-family"].replace(/['"]/g,"").split(",")[0].trim();t.rFonts={ascii:n,hAnsi:n}}if(e["font-size"]){const n=rd(e["font-size"]);n&&(t.sz=n)}if(e["font-weight"]){const n=e["font-weight"];(n==="bold"||n==="bolder"||Number(n)>=700)&&(t.b=!0)}if(e["font-style"]&&(e["font-style"]==="italic"||e["font-style"]==="oblique")&&(t.i=!0),e.color){const n=ni(e.color);n&&(t.color=n)}if(e["background-color"]){const n=ni(e["background-color"]);n&&(t.shd=n)}if(e["text-decoration"]){const n=e["text-decoration"];n.includes("underline")&&(t.u="single"),n.includes("line-through")&&(t.strike=!0)}return t}function An(e){const t={};if(e["text-align"]){const i=e["text-align"];(i==="left"||i==="center"||i==="right")&&(t.jc=i),i==="justify"&&(t.jc="both")}const n={};if(e["margin-top"]){const i=tn(e["margin-top"]);i&&(n.before=i)}if(e["margin-bottom"]){const i=tn(e["margin-bottom"]);i&&(n.after=i)}if(e["line-height"]){const i=e["line-height"].match(/^([\d.]+)(px|pt)?$/);if(i){const s=parseFloat(i[1]);i[2]==="pt"?n.line=Math.round(s*20):i[2]==="px"?n.line=Math.round(s*.75*20):n.line=Math.round(s*240)}}Object.keys(n).length>0&&(t.spacing=n);const r={};if(e["margin-left"]){const i=tn(e["margin-left"]);i&&(r.left=i)}if(e["margin-right"]){const i=tn(e["margin-right"]);i&&(r.right=i)}if(e["text-indent"]){const i=tn(e["text-indent"]);i&&(r.firstLine=i)}return Object.keys(r).length>0&&(t.ind=r),t}function id(e){const t=[];if(e.rFonts){const n=[];e.rFonts.ascii&&n.push(`w:ascii="${e.rFonts.ascii}"`),e.rFonts.hAnsi&&n.push(`w:hAnsi="${e.rFonts.hAnsi}"`),e.rFonts.cs&&n.push(`w:cs="${e.rFonts.cs}"`),t.push(`<w:rFonts ${n.join(" ")}/>`)}return e.b&&t.push("<w:b/>"),e.i&&t.push("<w:i/>"),e.sz&&t.push(`<w:sz w:val="${e.sz}"/>`),e.color&&t.push(`<w:color w:val="${e.color}"/>`),e.u&&t.push(`<w:u w:val="${e.u}"/>`),e.strike&&t.push("<w:strike/>"),e.shd&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${e.shd}"/>`),e.vertAlign&&t.push(`<w:vertAlign w:val="${e.vertAlign}"/>`),t.length>0?`<w:rPr>${t.join("")}</w:rPr>`:""}function sd(e){const t=[];if(e.jc&&t.push(`<w:jc w:val="${e.jc}"/>`),e.spacing){const n=[];e.spacing.before!==void 0&&n.push(`w:before="${e.spacing.before}"`),e.spacing.after!==void 0&&n.push(`w:after="${e.spacing.after}"`),e.spacing.line!==void 0&&n.push(`w:line="${e.spacing.line}"`),t.push(`<w:spacing ${n.join(" ")}/>`)}if(e.ind){const n=[];e.ind.left!==void 0&&n.push(`w:left="${e.ind.left}"`),e.ind.right!==void 0&&n.push(`w:right="${e.ind.right}"`),e.ind.firstLine!==void 0&&n.push(`w:firstLine="${e.ind.firstLine}"`),e.ind.hanging!==void 0&&n.push(`w:hanging="${e.ind.hanging}"`),t.push(`<w:ind ${n.join(" ")}/>`)}return t.length>0?`<w:pPr>${t.join("")}</w:pPr>`:""}function ri(e,t,n,r,i){const s=[];if(s.push(`<w:style w:type="${n}" w:customStyle="1" w:styleId="${e}">`),s.push(`<w:name w:val="${t}"/>`),n==="paragraph"&&s.push('<w:basedOn w:val="Normal"/>'),i){const o=sd(i);o&&s.push(o)}if(r){const o=id(r);o&&s.push(o)}return s.push("</w:style>"),s.join("")}const ck=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
52
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
53
|
+
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
|
|
54
|
+
</Relationships>`,dk=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
55
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
|
56
|
+
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
|
57
|
+
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" Target="numbering.xml"/>
|
|
58
|
+
</Relationships>`,hk=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
59
|
+
<w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
|
60
|
+
<w:docDefaults>
|
|
61
|
+
<w:rPrDefault><w:rPr>
|
|
62
|
+
<w:rFonts w:ascii="Calibri" w:hAnsi="Calibri"/>
|
|
63
|
+
<w:sz w:val="22"/>
|
|
64
|
+
</w:rPr></w:rPrDefault>
|
|
65
|
+
</w:docDefaults>
|
|
66
|
+
<w:style w:type="paragraph" w:default="1" w:styleId="Normal">
|
|
67
|
+
<w:name w:val="Normal"/>
|
|
68
|
+
</w:style>
|
|
69
|
+
<w:style w:type="paragraph" w:styleId="Heading1">
|
|
70
|
+
<w:name w:val="heading 1"/><w:basedOn w:val="Normal"/>
|
|
71
|
+
<w:pPr><w:outlineLvl w:val="0"/></w:pPr>
|
|
72
|
+
<w:rPr><w:b/><w:sz w:val="32"/></w:rPr>
|
|
73
|
+
</w:style>
|
|
74
|
+
<w:style w:type="paragraph" w:styleId="Heading2">
|
|
75
|
+
<w:name w:val="heading 2"/><w:basedOn w:val="Normal"/>
|
|
76
|
+
<w:pPr><w:outlineLvl w:val="1"/></w:pPr>
|
|
77
|
+
<w:rPr><w:b/><w:sz w:val="28"/></w:rPr>
|
|
78
|
+
</w:style>
|
|
79
|
+
<w:style w:type="paragraph" w:styleId="Heading3">
|
|
80
|
+
<w:name w:val="heading 3"/><w:basedOn w:val="Normal"/>
|
|
81
|
+
<w:pPr><w:outlineLvl w:val="2"/></w:pPr>
|
|
82
|
+
<w:rPr><w:b/><w:sz w:val="24"/></w:rPr>
|
|
83
|
+
</w:style>
|
|
84
|
+
</w:styles>`,fk=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
85
|
+
<w:numbering xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
|
86
|
+
<w:abstractNum w:abstractNumId="0">
|
|
87
|
+
<w:lvl w:ilvl="0"><w:start w:val="1"/><w:numFmt w:val="bullet"/>
|
|
88
|
+
<w:lvlText w:val="•"/><w:lvlJc w:val="left"/>
|
|
89
|
+
</w:lvl>
|
|
90
|
+
<w:lvl w:ilvl="1"><w:start w:val="1"/><w:numFmt w:val="bullet"/>
|
|
91
|
+
<w:lvlText w:val="◦"/><w:lvlJc w:val="left"/>
|
|
92
|
+
</w:lvl>
|
|
93
|
+
</w:abstractNum>
|
|
94
|
+
<w:abstractNum w:abstractNumId="1">
|
|
95
|
+
<w:lvl w:ilvl="0"><w:start w:val="1"/><w:numFmt w:val="decimal"/>
|
|
96
|
+
<w:lvlText w:val="%1."/><w:lvlJc w:val="left"/>
|
|
97
|
+
</w:lvl>
|
|
98
|
+
<w:lvl w:ilvl="1"><w:start w:val="1"/><w:numFmt w:val="lowerLetter"/>
|
|
99
|
+
<w:lvlText w:val="%2)"/><w:lvlJc w:val="left"/>
|
|
100
|
+
</w:lvl>
|
|
101
|
+
</w:abstractNum>
|
|
102
|
+
<w:num w:numId="1"><w:abstractNumId w:val="0"/></w:num>
|
|
103
|
+
<w:num w:numId="2"><w:abstractNumId w:val="1"/></w:num>
|
|
104
|
+
</w:numbering>`,pk='xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"',mk='xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"',gk='xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"';async function bk(e,t){var f,E;const n=(f=e.data)==null?void 0:f.css,r={...n==null?void 0:n.classRules,...t==null?void 0:t.cssClasses},i=(n==null?void 0:n.elementRules)??{},s={cssClasses:r,cssElements:i,customStyles:[],generatedStyleIds:new Set,nextNumId:3,hyperlinks:new Map,nextRId:100},o=e.children.map(g=>nn(g,s,0)).join(`
|
|
105
|
+
`),a=(E=e.data)==null?void 0:E.docx;let u=(a==null?void 0:a.styles)??hk;if(s.customStyles.length>0){const g=s.customStyles.join(`
|
|
106
|
+
`);u=u.replace("</w:styles>",`${g}
|
|
107
|
+
</w:styles>`)}const c=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
108
|
+
<w:document ${pk} ${mk} ${gk}>
|
|
109
|
+
<w:body>
|
|
110
|
+
${o}
|
|
111
|
+
<w:sectPr><w:pgSz w:w="12240" w:h="15840"/><w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440"/></w:sectPr>
|
|
112
|
+
</w:body>
|
|
113
|
+
</w:document>`;let d=(a==null?void 0:a.relationships)??dk;if(s.hyperlinks.size>0){const g=[...s.hyperlinks].map(([_,p])=>`<Relationship Id="${_}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${Dt(p)}" TargetMode="External"/>`).join(`
|
|
114
|
+
`);d=d.replace("</Relationships>",` ${g}
|
|
115
|
+
</Relationships>`)}const h={document:c,styles:u,numbering:(a==null?void 0:a.numbering)??fk,relationships:d,contentTypes:(a==null?void 0:a.contentTypes)??void 0,media:new Map,rawParts:new Map},m=dd(e);if(h.rawParts.set("word/occam-udm.json",JSON.stringify(m)),n&&(Object.keys(n.classRules??{}).length>0||Object.keys(n.elementRules??{}).length>0)&&h.rawParts.set("word/occam-css.json",JSON.stringify(n)),a!=null&&a.rawParts){const g=a.rawParts;for(const[_,p]of Object.entries(g))h.rawParts.has(_)||h.rawParts.set(_,p)}return h.rawParts.has("_rels/.rels")||h.rawParts.set("_rels/.rels",ck),U_(h)}function Ek(e,t){for(const[r,i]of e.hyperlinks)if(i===t)return r;const n=`rId${e.nextRId++}`;return e.hyperlinks.set(n,t),n}function nn(e,t,n){switch(e.type){case"paragraph":return Tk(e,t);case"heading":return _k(e,t);case"blockquote":return kk(e,t);case"list":return ud(e,t,n);case"listItem":return"";case"codeBlock":return Ak(e,t);case"table":return Sk(e,t);case"thematicBreak":return'<w:p><w:pPr><w:pBdr><w:bottom w:val="single" w:sz="6" w:color="auto"/></w:pBdr></w:pPr></w:p>';case"div":case"figure":return yk(e,t,n);case"html":return`<w:p><w:r><w:t>${Dt(e.value)}</w:t></w:r></w:p>`;default:return""}}function yk(e,t,n){const r=e.classes;if(!r||r.length===0)return e.children.map(h=>nn(h,t,n)).join(`
|
|
116
|
+
`);let i={};for(const h of r)t.cssClasses[h]&&(i={...i,...t.cssClasses[h]});if(Object.keys(i).length===0)return e.children.map(h=>nn(h,t,n)).join(`
|
|
117
|
+
`);const s=An(i),o=ht(i),a=Wt(o),u=i["background-color"]?ii(i["background-color"]):void 0;let c="";if(u&&u!=="auto"&&(c+=`<w:shd w:val="clear" w:color="auto" w:fill="${u}"/>`),s.jc&&(c+=`<w:jc w:val="${s.jc}"/>`),s.ind){const h=[];s.ind.left&&h.push(`w:left="${s.ind.left}"`),s.ind.right&&h.push(`w:right="${s.ind.right}"`),h.length&&(c+=`<w:ind ${h.join(" ")}/>`)}const d={...t,_containerRPr:a,_containerPPr:c};return e.children.map(h=>ad(h,d,n)).join(`
|
|
118
|
+
`)}function ad(e,t,n){const r=t,i=r._containerRPr??"",s=r._containerPPr??"",o=od(e,t),a=i+o;function u(d){return s?d?d.replace("</w:pPr>",`${s}</w:pPr>`):`<w:pPr>${s}</w:pPr>`:d}if(e.type==="paragraph"){const d=e,h=u(ld(d,t)),m=d.children.map(f=>rn(f,t,a)).join("");return`<w:p>${h}${m}</w:p>`}if(e.type==="heading"){const d=e,h=`h${d.depth}`,m=a,f=d.children.map(p=>rn(p,t,m)).join("");let E="";t.cssElements[h]?(pa(h,t),E=`<w:pStyle w:val="_el_${h}"/>`):E=`<w:pStyle w:val="Heading${d.depth}"/>`;const g=d.classes;if(g!=null&&g.length){for(const p of g)if(t.cssClasses[p]&&!t.generatedStyleIds.has(p)){t.generatedStyleIds.add(p);const y=ht(t.cssClasses[p]),S=An(t.cssClasses[p]);t.customStyles.push(ri(p,p,"paragraph",y,S))}}return`<w:p>${u(`<w:pPr>${E}</w:pPr>`)}${f}</w:p>`}if(e.type==="list"){const d=e,h=d.ordered?"2":"1",m=[];for(const f of d.children){if(f.type!=="listItem")continue;const E=f,g=E.classes;let _=a;if(g)for(const p of g)t.cssClasses[p]&&(_+=Wt(ht(t.cssClasses[p])));t.cssElements.li&&(_+=Wt(ht(t.cssElements.li)));for(const p of E.children)if(p.type==="paragraph"){const y=p.children.map(L=>rn(L,t,_)).join("");let S=`<w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${h}"/></w:numPr></w:pPr>`;S=u(S),m.push(`<w:p>${S}${y}</w:p>`)}else p.type==="list"&&m.push(ad(p,t,n+1))}return m.join(`
|
|
119
|
+
`)}const c={...t};return delete c._containerRPr,delete c._containerPPr,nn(e,c,n)}function Tk(e,t){const n=ld(e,t),r=od(e,t),i=e.children.map(s=>rn(s,t,r)).join("");return`<w:p>${n}${i}</w:p>`}function _k(e,t){const n=`h${e.depth}`,r=t.cssElements[n]?Wt(ht(t.cssElements[n])):"",i=e.children.map(s=>rn(s,t,r)).join("");return t.cssElements[n]?(pa(n,t),`<w:p><w:pPr><w:pStyle w:val="_el_${n}"/></w:pPr>${i}</w:p>`):`<w:p><w:pPr><w:pStyle w:val="Heading${e.depth}"/></w:pPr>${i}</w:p>`}function od(e,t){const n=cd(e.type,e),r=e.classes;let i={};if(n&&t.cssElements[n]&&(i={...i,...t.cssElements[n]}),r)for(const s of r)t.cssClasses[s]&&(i={...i,...t.cssClasses[s]});return Object.keys(i).length===0?"":Wt(ht(i))}function Wt(e){const t=[];if(e.rFonts){const n=[];e.rFonts.ascii&&n.push(`w:ascii="${e.rFonts.ascii}"`),e.rFonts.hAnsi&&n.push(`w:hAnsi="${e.rFonts.hAnsi}"`),t.push(`<w:rFonts ${n.join(" ")}/>`)}return e.b&&t.push("<w:b/>"),e.i&&t.push("<w:i/>"),e.sz&&t.push(`<w:sz w:val="${e.sz}"/>`),e.color&&t.push(`<w:color w:val="${e.color}"/>`),e.u&&t.push(`<w:u w:val="${e.u}"/>`),e.strike&&t.push("<w:strike/>"),e.shd&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${e.shd}"/>`),t.join("")}function kk(e,t){const n=t.cssElements.blockquote??{},r=Object.keys(n).length>0?Wt(ht(n)):"",i=wk(n);return e.children.map(s=>{if(s.type==="paragraph"){const o=s.children.map(a=>rn(a,t,r)).join("");return`<w:p>${i}${o}</w:p>`}return nn(s,t,0)}).join(`
|
|
120
|
+
`)}function wk(e){const t=[];t.push(`<w:pBdr><w:left w:val="single" w:sz="18" w:space="4" w:color="${e["border-color"]?ii(e["border-color"]):"AAAAAA"}"/></w:pBdr>`);const n=e["margin-left"]?tn(e["margin-left"]):void 0;if(t.push(`<w:ind w:left="${n??720}"/>`),e["background-color"]){const i=ii(e["background-color"]);i&&t.push(`<w:shd w:val="clear" w:color="auto" w:fill="${i}"/>`)}const r=An(e);if(r.spacing){const i=[];r.spacing.before&&i.push(`w:before="${r.spacing.before}"`),r.spacing.after&&i.push(`w:after="${r.spacing.after}"`),i.length&&t.push(`<w:spacing ${i.join(" ")}/>`)}return`<w:pPr>${t.join("")}</w:pPr>`}function ud(e,t,n){const r=e.ordered?"2":"1",i=t.cssElements.li?Wt(ht(t.cssElements.li)):"",s=[];for(const o of e.children){if(o.type!=="listItem")continue;const a=o;for(const u of a.children)if(u.type==="paragraph"){const c=u.children.map(d=>rn(d,t,i)).join("");s.push(`<w:p><w:pPr><w:numPr><w:ilvl w:val="${n}"/><w:numId w:val="${r}"/></w:numPr></w:pPr>${c}</w:p>`)}else u.type==="list"?s.push(ud(u,t,n+1)):s.push(nn(u,t,n))}return s.join(`
|
|
121
|
+
`)}function Ak(e,t){const n=(t==null?void 0:t.cssElements.pre)??{},r=n["background-color"]?ii(n["background-color"]):void 0,i=Object.keys(n).length>0?Wt(ht(n)):"";let s='<w:pPr><w:pStyle w:val="Code"/>';return r&&(s+=`<w:shd w:val="clear" w:color="auto" w:fill="${r}"/>`),s+="</w:pPr>",e.value.split(`
|
|
122
|
+
`).map(a=>`<w:p>${s}<w:r><w:rPr><w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/>${i}</w:rPr><w:t xml:space="preserve">${Dt(a)}</w:t></w:r></w:p>`).join(`
|
|
123
|
+
`)}function Sk(e,t){return`<w:tbl><w:tblPr><w:tblW w:w="0" w:type="auto"/><w:tblBorders><w:top w:val="single" w:sz="4" w:color="auto"/><w:left w:val="single" w:sz="4" w:color="auto"/><w:bottom w:val="single" w:sz="4" w:color="auto"/><w:right w:val="single" w:sz="4" w:color="auto"/><w:insideH w:val="single" w:sz="4" w:color="auto"/><w:insideV w:val="single" w:sz="4" w:color="auto"/></w:tblBorders></w:tblPr>${e.children.map(r=>{if(r.type!=="tableRow")return"";const i=r,s=i.isHeader?"<w:trPr><w:tblHeader/></w:trPr>":"",o=i.children.map(a=>{if(a.type!=="tableCell")return"";const u=a;let c="<w:tcPr>";u.colspan&&u.colspan>1&&(c+=`<w:gridSpan w:val="${u.colspan}"/>`),c+="</w:tcPr>";const d=u.children.length>0?u.children.map(h=>nn(h,t,0)).join(""):"<w:p/>";return`<w:tc>${c}${d}</w:tc>`}).join("");return`<w:tr>${s}${o}</w:tr>`}).join(`
|
|
124
|
+
`)}</w:tbl>`}function rn(e,t,n=""){if(e.type==="text")return Ck(e,t,n);if(e.type==="break")return"<w:r><w:br/></w:r>";if(e.type==="inlineCode")return`<w:r><w:rPr><w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/>${n}</w:rPr><w:t>${Dt(e.value)}</w:t></w:r>`;if(e.type==="image"){const r=e;return`<w:r><w:t>[image: ${Dt(r.alt??r.url)}]</w:t></w:r>`}return""}function Ck(e,t,n=""){var c,d,h,m,f,E;const r=(c=e.marks)==null?void 0:c.find(g=>g.type==="link"),i=((d=e.marks)==null?void 0:d.filter(g=>g.type!=="link"))??[],s=[];if(n){const g=n.match(/<w:[^/]*\/>/g)??[];s.push(...g)}for(const g of i)switch(g.type){case"strong":s.push("<w:b/>");break;case"emphasis":s.push("<w:i/>");break;case"underline":s.push(`<w:u w:val="${((h=g.attrs)==null?void 0:h.style)??"single"}"/>`);break;case"strikethrough":s.push((m=g.attrs)!=null&&m.double?"<w:dstrike/>":"<w:strike/>");break;case"superscript":s.push('<w:vertAlign w:val="superscript"/>');break;case"subscript":s.push('<w:vertAlign w:val="subscript"/>');break;case"highlight":s.push(`<w:highlight w:val="${((f=g.attrs)==null?void 0:f.color)??"yellow"}"/>`);break}const o=new Set,a=[];for(const g of s)o.has(g)||(o.add(g),a.push(g));const u=a.length>0?`<w:rPr>${a.join("")}</w:rPr>`:"";if(r){const g=String(((E=r.attrs)==null?void 0:E.url)??"");return`<w:hyperlink r:id="${Ek(t,g)}"><w:r>${u}<w:t xml:space="preserve">${Dt(e.value)}</w:t></w:r></w:hyperlink>`}return`<w:r>${u}<w:t xml:space="preserve">${Dt(e.value)}</w:t></w:r>`}function ld(e,t){var o;const n=[],r=e.classes;if(r&&r.length>0){const a=r[0];n.push(`<w:pStyle w:val="${Dt(a)}"/>`);for(const u of r)if(t.cssClasses[u]&&!t.generatedStyleIds.has(u)){t.generatedStyleIds.add(u);const c=t.cssClasses[u],d=ht(c),h=An(c);t.customStyles.push(ri(u,u,"paragraph",d,h))}}const i=(o=e.data)==null?void 0:o.docx;if(i&&(i.align&&n.push(`<w:jc w:val="${i.align}"/>`),i.spacing)){const a=i.spacing,u=[];a.before&&u.push(`w:before="${a.before}"`),a.after&&u.push(`w:after="${a.after}"`),a.line&&u.push(`w:line="${a.line}"`),u.length&&n.push(`<w:spacing ${u.join(" ")}/>`)}const s=cd(e.type,e);return s&&(pa(s,t),(!r||r.length===0)&&n.unshift(`<w:pStyle w:val="_el_${Dt(s)}"/>`)),n.length>0?`<w:pPr>${n.join("")}</w:pPr>`:""}function cd(e,t){switch(e){case"paragraph":return"p";case"heading":return`h${t.depth}`;case"blockquote":return"blockquote";case"list":return t.ordered?"ol":"ul";case"listItem":return"li";case"table":return"table";case"tableRow":return"tr";case"tableCell":return"td";case"codeBlock":return"pre";default:return null}}function pa(e,t){const n=`_el_${e}`;if(t.generatedStyleIds.has(n))return;const r=t.cssElements[e];if(!r)return;t.generatedStyleIds.add(n);const i=ht(r),s=An(r),o=e.match(/^h[1-6]$/)?`Heading${e[1]}`:void 0;let a=ri(n,e,"paragraph",i,s);o&&(a=a.replace('<w:basedOn w:val="Normal"/>',`<w:basedOn w:val="${o}"/>`)),t.customStyles.push(a)}function dd(e){const t={};for(const[n,r]of Object.entries(e))if(!(n==="position"||n==="id")){if(n==="data"){const i=r,s={};i.css&&(s.css=i.css),i.html&&(s.html=i.html),Object.keys(s).length>0&&(t.data=s);continue}n==="children"&&Array.isArray(r)?t.children=r.map(dd):t[n]=r}return t}function ii(e){return ni(e)??"auto"}function Dt(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}le.blockquote=bd,le.buildStyleElement=ri,le.code=Rd,le.codeBlock=Td,le.collectNodes=Ud,le.cssToParaProps=An,le.cssToRunProps=ht,le.diff=lh,le.diffText=fi,le.div=Sd,le.emphasis=vd,le.hashNode=ci,le.heading=gd,le.highlight=Dd,le.image=Nd,le.invalidateHash=qd,le.isLiteral=Sn,le.isParent=Se,le.isText=sn,le.lineBreak=xd,le.link=Pd,le.list=Ed,le.listItem=yd,le.nodeAtPath=Hd,le.nodeCount=ui,le.paraPropsToXml=sd,le.paragraph=md,le.parseColor=ni,le.parseCssClasses=u2,le.parseCssRules=js,le.parseLengthHalfPts=rd,le.parseLengthTwips=tn,le.pathTo=an,le.readDocx=rk,le.readHtml=c2,le.root=pd,le.runPropsToXml=id,le.strikethrough=Od,le.strong=Id,le.table=_d,le.tableCell=wd,le.tableRow=kd,le.text=Cd,le.thematicBreak=Ad,le.underline=Ld,le.visit=oi,le.withClasses=Md,le.withData=Bd,le.withId=Fd,le.writeDocx=bk,le.writeHtml=A_,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})}));
|
|
125
|
+
//# sourceMappingURL=otomate.umd.cjs.map
|