@citolab/qti-components 6.3.8 → 6.4.0

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.
Files changed (43) hide show
  1. package/dist/{chunk-OMMRIRZN.cjs → chunk-4UAPG3LE.cjs} +59 -312
  2. package/dist/{chunk-DHQGPGHW.js → chunk-C4LCNAWX.js} +59 -312
  3. package/dist/chunk-DMECNMIP.js +405 -0
  4. package/dist/chunk-W7PJYSDO.cjs +405 -0
  5. package/dist/context/index.cjs +1 -1
  6. package/dist/context/index.d.cts +3 -3
  7. package/dist/context/index.d.ts +3 -3
  8. package/dist/context/index.js +1 -1
  9. package/dist/custom-elements.json +776 -566
  10. package/dist/index.bundled.css +487 -0
  11. package/dist/index.cjs +189 -433
  12. package/dist/index.css +48 -310
  13. package/dist/index.d.cts +36 -11
  14. package/dist/index.d.ts +36 -11
  15. package/dist/index.js +194 -438
  16. package/dist/qti-components/index.cjs +39 -38
  17. package/dist/qti-components/index.d.cts +4 -7
  18. package/dist/qti-components/index.d.ts +4 -7
  19. package/dist/qti-components/index.js +66 -65
  20. package/dist/qti-item/index.cjs +1 -1
  21. package/dist/qti-item/index.d.cts +5 -1
  22. package/dist/qti-item/index.d.ts +5 -1
  23. package/dist/qti-item/index.js +1 -1
  24. package/dist/qti-item-react/index.cjs +1 -1
  25. package/dist/qti-item-react/index.d.cts +2 -2
  26. package/dist/qti-item-react/index.d.ts +2 -2
  27. package/dist/qti-item-react/index.js +1 -1
  28. package/dist/{qti-simple-choice-1e52645f.d.ts → qti-simple-choice-216b88b7.d.ts} +3 -1
  29. package/dist/qti-test/index.cjs +1 -1
  30. package/dist/qti-test/index.d.cts +23 -4
  31. package/dist/qti-test/index.d.ts +23 -4
  32. package/dist/qti-test/index.js +1 -1
  33. package/dist/qti-test-react/index.cjs +1 -1
  34. package/dist/qti-test-react/index.d.cts +2 -2
  35. package/dist/qti-test-react/index.d.ts +2 -2
  36. package/dist/qti-test-react/index.js +1 -1
  37. package/dist/{test-print-variables-9f2390d5.d.ts → test-print-variables-7ec6a0d5.d.ts} +5 -2
  38. package/dist/{test-print-variables-9b4289a6.d.ts → test-print-variables-d61937ce.d.ts} +5 -2
  39. package/package.json +1 -1
  40. package/dist/chunk-BKBZWUX6.cjs +0 -1
  41. package/dist/chunk-DPSTDDQZ.js +0 -1
  42. package/dist/chunk-GHNL64KC.js +0 -397
  43. package/dist/chunk-QGPCSWAA.cjs +0 -397
package/dist/index.cjs CHANGED
@@ -1,29 +1,29 @@
1
- var nh=Object.create;var hr=Object.defineProperty,ah=Object.defineProperties,ac=Object.getOwnPropertyDescriptor,oh=Object.getOwnPropertyDescriptors,uh=Object.getOwnPropertyNames,nc=Object.getOwnPropertySymbols,ch=Object.getPrototypeOf,oc=Object.prototype.hasOwnProperty,lh=Object.prototype.propertyIsEnumerable;var Fa=(e,t,r)=>t in e?hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N=(e,t)=>{for(var r in t||(t={}))oc.call(t,r)&&Fa(e,r,t[r]);if(nc)for(var r of nc(t))lh.call(t,r)&&Fa(e,r,t[r]);return e},U=(e,t)=>ah(e,oh(t));var dh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_t=(e,t)=>{for(var r in t)hr(e,r,{get:t[r],enumerable:!0})},uc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of uh(t))!oc.call(e,s)&&s!==r&&hr(e,s,{get:()=>t[s],enumerable:!(i=ac(t,s))||i.enumerable});return e};var Se=(e,t,r)=>(r=e!=null?nh(ch(e)):{},uc(t||!e||!e.__esModule?hr(r,"default",{value:e,enumerable:!0}):r,e)),hh=e=>uc(hr({},"__esModule",{value:!0}),e),m=(e,t,r,i)=>{for(var s=i>1?void 0:i?ac(t,r):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(s=(i?o(t,r,s):o(s))||s);return i&&s&&hr(t,r,s),s};var P=(e,t,r)=>(Fa(e,typeof t!="symbol"?t+"":t,r),r);var Ee=dh((gS,Fl)=>{Fl.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var lE={};_t(lE,{Events:()=>Qa,Interaction:()=>W,QtPrintedVariable:()=>_r,QtiAnd:()=>fn,QtiAssessmentItem:()=>ht,QtiAssessmentItemRef:()=>er,QtiAssessmentTest:()=>ir,QtiAssociableHotspot:()=>Fi,QtiAssociateInteraction:()=>Ar,QtiBaseValue:()=>Si,QtiChoice:()=>ot,QtiChoiceElementSelected:()=>za,QtiChoiceInteraction:()=>Ue,QtiCompanionMaterialsInfo:()=>xi,QtiConditionExpression:()=>wt,QtiContains:()=>pn,QtiCorrect:()=>mn,QtiCustomOperator:()=>Nr,QtiEndAttemptInteraction:()=>Ye,QtiEqual:()=>Ni,QtiEqualRounded:()=>Ii,QtiExpression:()=>q,QtiExtendedTextInteraction:()=>Pt,QtiFeedbackBlock:()=>yi,QtiFeedbackInline:()=>_i,QtiGap:()=>Yi,QtiGapImg:()=>$i,QtiGapMatchInteraction:()=>Di,QtiGapText:()=>Vi,QtiGraphicAssociateInteraction:()=>Wt,QtiGraphicGapMatchInteraction:()=>Oi,QtiGraphicOrderInteraction:()=>ki,QtiGt:()=>gn,QtiGte:()=>bn,QtiHotspotChoice:()=>Cr,QtiHotspotInteraction:()=>Mi,QtiHottext:()=>Gi,QtiHottextInteraction:()=>cn,QtiInlineChoice:()=>On,QtiInlineChoiceInteraction:()=>He,QtiInteractionChanged:()=>Va,QtiInteractionResponse:()=>Ka,QtiIsNull:()=>En,QtiItem:()=>$t,QtiLooseChoice:()=>ja,QtiLt:()=>wn,QtiLte:()=>Tn,QtiMapResponse:()=>Ri,QtiMapping:()=>Fe,QtiMatch:()=>vr,QtiMatchInteraction:()=>$e,QtiMediaInteraction:()=>Hi,QtiMember:()=>xn,QtiModalFeedback:()=>Ai,QtiMultiple:()=>vn,QtiNot:()=>_n,QtiOr:()=>An,QtiOrderInteraction:()=>Ve,QtiOrdered:()=>yn,QtiOutcomeChanged:()=>$a,QtiOutcomeDeclaration:()=>qe,QtiPortableCustomInteraction:()=>In,QtiPositionObjectStage:()=>Bi,QtiProduct:()=>Cn,QtiPrompt:()=>sn,QtiRegisterChoice:()=>Xa,QtiRegisterHotspot:()=>Wa,QtiRegisterInteraction:()=>Ga,QtiRegisterVariable:()=>Ya,QtiResponseCondition:()=>ln,QtiResponseDeclaration:()=>Pe,QtiResponseElse:()=>Tr,QtiResponseElseIf:()=>hn,QtiResponseIf:()=>xr,QtiResponseProcessing:()=>Be,QtiRule:()=>Gt,QtiSPositionObjectInteraction:()=>Ui,QtiSelectPointInteraction:()=>fe,QtiSetOutcomeValue:()=>dn,QtiSimpleAssociableChoice:()=>Dn,QtiSimpleChoice:()=>Sr,QtiSliderInteraction:()=>ct,QtiStringMatch:()=>Li,QtiStylesheet:()=>rn,QtiSum:()=>Nn,QtiTest:()=>sh,QtiTestPart:()=>sr,QtiTextEntryInteraction:()=>Ct,QtiVariable:()=>Sn,TestContext:()=>yu,TestNext:()=>Zr,TestPagingButtons:()=>dr,TestPagingRadio:()=>ii,TestPrev:()=>ti,TestPrintScore:()=>ui,TestPrintVariables:()=>oi,TestProgress:()=>ei,TestScript:()=>ni,TestShowCorrect:()=>si,TestShowIndex:()=>ai,TestSlider:()=>ri,fetchManifestData:()=>sc,itemContext:()=>Ti,qtiContentBody:()=>vi,qtiRubricBlock:()=>Ot,qtiTransform:()=>Au,requestItem:()=>ic,testContext:()=>K});module.exports=hh(lE);var $a={};var Va={};var Ya={};var Ga={};var Xa={};var Wa={};var ja={};var Ka={};var za={};var Qa={ON_OUTCOME_CHANGED:"qti-outcome-changed",ON_INTERACTION_CHANGED:"on-interaction-changed",ON_REGISTER_VARIABLE:"on-register-variable",ON_REGISTER_FEEDBACK:"on-register-feedback",ON_REGISTER_INTERACTION:"on-register-interaction",ON_REGISTER_CHOICE:"on-register-choice",ON_REGISTER_HOTSPOT:"on-register-hotspot",ON_LOOSE_CHOICE:"on-loose-choice",ON_INTERACTION_RESPONSE:"on-interaction-response",ON_DROPDOWN_SELECTED:"on-dropdown-selected",ON_CHOICE_ELEMENT_SELECTED:"choice-element-selected"};var D=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var cc=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(t){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=t}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}};var lc=new WeakMap,li=e=>{let t=lc.get(e);return t===void 0&&lc.set(e,t=new Map),t},fh=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(li(this)).map(([t,r])=>({name:t,value:r}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}setAttribute(t,r){li(this).set(t,String(r))}removeAttribute(t){li(this).delete(t)}hasAttribute(t){return li(this).has(t)}attachShadow(t){let r={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=r),r}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let t=new cc(this);return this.__internals=t,t}getAttribute(t){let r=li(this).get(t);return r!=null?r:null}};var ph=class extends fh{},Ys=ph;var mh=class{constructor(){this.__definitions=new Map}define(t,r){var i;if(this.__definitions.has(t))if(process.env.NODE_ENV==="development")console.warn(`'CustomElementRegistry' already has "${t}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.
2
- Make sure to test your application with a production build as repeat registrations will throw in production.`);else throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);this.__definitions.set(t,{ctor:r,observedAttributes:(i=r.observedAttributes)!=null?i:[]})}get(t){let r=this.__definitions.get(t);return r==null?void 0:r.ctor}},gh=mh;var Gs=new gh;var di=globalThis,Xs=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ja=Symbol(),dc=new WeakMap,hi=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==Ja)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Xs&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=dc.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&dc.set(r,t))}return t}toString(){return this.cssText}},hc=e=>new hi(typeof e=="string"?e:e+"",void 0,Ja),k=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((i,s,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[n+1],e[0]);return new hi(r,e,Ja)},Za=(e,t)=>{if(Xs)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),s=di.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)}},Ws=Xs||di.CSSStyleSheet===void 0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return hc(r)})(e):e;var{is:bh,defineProperty:Eh,getOwnPropertyDescriptor:wh,getOwnPropertyNames:Th,getOwnPropertySymbols:xh,getPrototypeOf:vh}=Object,Dt=globalThis,mc;(mc=Dt.customElements)!=null||(Dt.customElements=Gs);var fc=Dt.trustedTypes,_h=fc?fc.emptyScript:"",to=Dt.reactiveElementPolyfillSupport,fi=(e,t)=>e,pi={toAttribute(e,t){switch(t){case Boolean:e=e?_h:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(i){r=null}}return r}},js=(e,t)=>!bh(e,t),pc={attribute:!0,type:String,converter:pi,reflect:!1,hasChanged:js},gc,bc;(gc=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(bc=Dt.litPropertyMetadata)!=null||(Dt.litPropertyMetadata=new WeakMap);var Ec,Qt=class extends((Ec=globalThis.HTMLElement)!=null?Ec:Ys){static addInitializer(t){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=pc){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(t,i,r);s!==void 0&&Eh(this.prototype,t,s)}}static getPropertyDescriptor(t,r,i){var o;let{get:s,set:n}=(o=wh(this.prototype,t))!=null?o:{get(){return this[r]},set(u){this[r]=u}};return{get(){return s==null?void 0:s.call(this)},set(u){let c=s==null?void 0:s.call(this);n.call(this,u),this.requestUpdate(t,c,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var r;return(r=this.elementProperties.get(t))!=null?r:pc}static _$Ei(){if(this.hasOwnProperty(fi("elementProperties")))return;let t=vh(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(fi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fi("properties"))){let r=this.properties,i=[...Th(r),...xh(r)];for(let s of i)this.createProperty(s,r[s])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[i,s]of r)this.elementProperties.set(i,s)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let s=this._$Eu(r,i);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let s of i)r.unshift(Ws(s))}else t!==void 0&&r.push(Ws(t));return r}static _$Eu(t,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r,i;((r=this._$ES)!=null?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var r;(r=this._$ES)==null||r.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var r;let t=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return Za(t,this.constructor.elementStyles),t}connectedCallback(){var t,r;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$ES)==null||r.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(r=>{var i;return(i=r.hostDisconnected)==null?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r){var n;let i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){let o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:pi).toAttribute(r,i.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,r){var n;let i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let o=i.getPropertyOptions(s),u=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:pi;this._$Em=s,this[s]=u.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,i,s=!1,n){var o;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((o=i.hasChanged)!=null?o:js)(s?n:this[t],r))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,i){var s;this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(let[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,o]of s)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(i=this._$ES)==null||i.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(r)):this._$ET()}catch(s){throw t=!1,this._$ET(),s}t&&this._$AE(r)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)==null||r.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EO(r,this[r]))),this._$ET()}updated(t){}firstUpdated(t){}},wc;Qt.elementStyles=[],Qt.shadowRootOptions={mode:"open"},Qt[fi("elementProperties")]=new Map,Qt[fi("finalized")]=new Map,to==null||to({ReactiveElement:Qt}),((wc=Dt.reactiveElementVersions)!=null?wc:Dt.reactiveElementVersions=[]).push("2.0.0");var Ah={attribute:!0,type:String,converter:pi,reflect:!1,hasChanged:js},yh=(e=Ah,t,r)=>{let{kind:i,metadata:s}=r,n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(r.name,e),i==="accessor"){let{name:o}=r;return{set(u){let c=t.get.call(this);t.set.call(this,u),this.requestUpdate(o,c,e)},init(u){return u!==void 0&&this.C(o,void 0,e),u}}}if(i==="setter"){let{name:o}=r;return function(u){let c=this[o];t.call(this,u),this.requestUpdate(o,c,e)}}throw Error("Unsupported decorator location: "+i)};function v(e){return(t,r)=>typeof r=="object"?yh(e,t,r):((i,s,n)=>{let o=s.hasOwnProperty(n);return s.constructor.createProperty(n,o?U(N({},i),{wrapped:!0}):i),o?Object.getOwnPropertyDescriptor(s,n):void 0})(e,t,r)}function M(e){return v(U(N({},e),{state:!0,attribute:!1}))}var le=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function mi(e,t){return(r,i,s)=>{let n=o=>{var u,c;return(c=(u=o.renderRoot)==null?void 0:u.querySelector(e))!=null?c:null};if(t){let{get:o,set:u}=typeof i=="object"?r:s!=null?s:(()=>{let c=Symbol();return{get(){return this[c]},set(d){this[c]=d}}})();return le(r,i,{get(){if(t){let c=o.call(this);return c===void 0&&(c=n(this),u.call(this,c)),c}return n(this)}})}return le(r,i,{get(){return n(this)}})}}function Tc(e){return(t,r)=>{let{slot:i,selector:s}=e!=null?e:{},n="slot"+(i?`[name=${i}]`:":not([name])");return le(t,r,{get(){var c,d;let o=(c=this.renderRoot)==null?void 0:c.querySelector(n),u=(d=o==null?void 0:o.assignedElements(e))!=null?d:[];return s===void 0?u:u.filter(p=>p.matches(s))}})}}var fr=globalThis,Ks=fr.trustedTypes,xc=Ks?Ks.createPolicy("lit-html",{createHTML:e=>e}):void 0,io="$lit$",Jt=`lit$${(Math.random()+"").slice(9)}$`,so="?"+Jt,Ch=`<${so}>`,Re=fr.document===void 0?{createTreeWalker:()=>({})}:document,bi=()=>Re.createComment(""),Ei=e=>e===null||typeof e!="object"&&typeof e!="function",Nc=Array.isArray,Ic=e=>Nc(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",eo=`[
3
- \f\r]`,gi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vc=/-->/g,_c=/>/g,Ne=RegExp(`>|${eo}(?:([^\\s"'>=/]+)(${eo}*=${eo}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ac=/'/g,yc=/"/g,Rc=/^(?:script|style|textarea|title)$/i,Lc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),E=Lc(1),Oe=Lc(2),Et=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Cc=new WeakMap,Ie=Re.createTreeWalker(Re,129);function Dc(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return xc!==void 0?xc.createHTML(t):t}var Oc=(e,t)=>{let r=e.length-1,i=[],s,n=t===2?"<svg>":"",o=gi;for(let u=0;u<r;u++){let c=e[u],d,p,g=-1,_=0;for(;_<c.length&&(o.lastIndex=_,p=o.exec(c),p!==null);)_=o.lastIndex,o===gi?p[1]==="!--"?o=vc:p[1]!==void 0?o=_c:p[2]!==void 0?(Rc.test(p[2])&&(s=RegExp("</"+p[2],"g")),o=Ne):p[3]!==void 0&&(o=Ne):o===Ne?p[0]===">"?(o=s!=null?s:gi,g=-1):p[1]===void 0?g=-2:(g=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?Ne:p[3]==='"'?yc:Ac):o===yc||o===Ac?o=Ne:o===vc||o===_c?o=gi:(o=Ne,s=void 0);let x=o===Ne&&e[u+1].startsWith("/>")?" ":"";n+=o===gi?c+Ch:g>=0?(i.push(d),c.slice(0,g)+io+c.slice(g)+Jt+x):c+Jt+(g===-2?u:x)}return[Dc(e,n+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},wi=class e{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,u=t.length-1,c=this.parts,[d,p]=Oc(t,r);if(this.el=e.createElement(d,i),Ie.currentNode=this.el.content,r===2){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(s=Ie.nextNode())!==null&&c.length<u;){if(s.nodeType===1){if(s.hasAttributes())for(let g of s.getAttributeNames())if(g.endsWith(io)){let _=p[o++],x=s.getAttribute(g).split(Jt),S=/([.?@])?(.*)/.exec(_);c.push({type:1,index:n,name:S[2],strings:x,ctor:S[1]==="."?Qs:S[1]==="?"?Js:S[1]==="@"?Zs:De}),s.removeAttribute(g)}else g.startsWith(Jt)&&(c.push({type:6,index:n}),s.removeAttribute(g));if(Rc.test(s.tagName)){let g=s.textContent.split(Jt),_=g.length-1;if(_>0){s.textContent=Ks?Ks.emptyScript:"";for(let x=0;x<_;x++)s.append(g[x],bi()),Ie.nextNode(),c.push({type:2,index:++n});s.append(g[_],bi())}}}else if(s.nodeType===8)if(s.data===so)c.push({type:2,index:n});else{let g=-1;for(;(g=s.data.indexOf(Jt,g+1))!==-1;)c.push({type:7,index:n}),g+=Jt.length-1}n++}}static createElement(t,r){let i=Re.createElement("template");return i.innerHTML=t,i}};function Le(e,t,r=e,i){var o,u,c;if(t===Et)return t;let s=i!==void 0?(o=r._$Co)==null?void 0:o[i]:r._$Cl,n=Ei(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((u=s==null?void 0:s._$AO)==null||u.call(s,!1),n===void 0?s=void 0:(s=new n(e),s._$AT(e,r,i)),i!==void 0?((c=r._$Co)!=null?c:r._$Co=[])[i]=s:r._$Cl=s),s!==void 0&&(t=Le(e,s._$AS(e,t.values),s,i)),t}var zs=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;let{el:{content:r},parts:i}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:Re).importNode(r,!0);Ie.currentNode=s;let n=Ie.nextNode(),o=0,u=0,c=i[0];for(;c!==void 0;){if(o===c.index){let p;c.type===2?p=new pr(n,n.nextSibling,this,t):c.type===1?p=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(p=new tn(n,this,t)),this._$AV.push(p),c=i[++u]}o!==(c==null?void 0:c.index)&&(n=Ie.nextNode(),o++)}return Ie.currentNode=Re,s}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},pr=class e{get _$AU(){var t,r;return(r=(t=this._$AM)==null?void 0:t._$AU)!=null?r:this._$Cv}constructor(t,r,i,s){var n;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=(n=s==null?void 0:s.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Le(this,t,r),Ei(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==Et&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Ic(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==$&&Ei(this._$AH)?this._$AA.nextSibling.data=t:this.$(Re.createTextNode(t)),this._$AH=t}g(t){var n;let{values:r,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=wi.createElement(Dc(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(r);else{let o=new zs(s,this),u=o.u(this.options);o.p(r),this.$(u),this._$AH=o}}_$AC(t){let r=Cc.get(t.strings);return r===void 0&&Cc.set(t.strings,r=new wi(t)),r}T(t){Nc(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of t)s===r.length?r.push(i=new e(this.k(bi()),this.k(bi()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,r);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}},De=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,s,n){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}_$AI(t,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)t=Le(this,t,r,0),o=!Ei(t)||t!==this._$AH&&t!==Et,o&&(this._$AH=t);else{let u=t,c,d;for(t=n[0],c=0;c<n.length-1;c++)d=Le(this,u[i+c],r,c),d===Et&&(d=this._$AH[c]),o||(o=!Ei(d)||d!==this._$AH[c]),d===$?t=$:t!==$&&(t+=(d!=null?d:"")+n[c+1]),this._$AH[c]=d}o&&!s&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Qs=class extends De{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}},Js=class extends De{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}},Zs=class extends De{constructor(t,r,i,s,n){super(t,r,i,s,n),this.type=5}_$AI(t,r=this){var o;if((t=(o=Le(this,t,r,0))!=null?o:$)===Et)return;let i=this._$AH,s=t===$&&i!==$||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==$&&(i===$||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)==null?void 0:r.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}},tn=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Le(this,t)}},kc={S:io,A:Jt,P:so,C:1,M:Oc,L:zs,R:Ic,V:Le,D:pr,I:De,H:Js,N:Zs,U:Qs,B:tn},ro=fr.litHtmlPolyfillSupport,Sc;ro==null||ro(wi,pr),((Sc=fr.litHtmlVersions)!=null?Sc:fr.litHtmlVersions=[]).push("3.0.0");var Mc=(e,t,r)=>{var n,o;let i=(n=r==null?void 0:r.renderBefore)!=null?n:t,s=i._$litPart$;if(s===void 0){let u=(o=r==null?void 0:r.renderBefore)!=null?o:null;i._$litPart$=s=new pr(t.insertBefore(bi(),u),u,void 0,r!=null?r:{})}return s._$AI(e),s};var y=class extends Qt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,i;let t=super.createRenderRoot();return(i=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=t.firstChild),t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mc(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Et}},Pc;y._$litElement$=!0,y["finalized"]=!0,(Pc=globalThis.litElementHydrateSupport)==null||Pc.call(globalThis,{LitElement:y});var no=globalThis.litElementPolyfillSupport;no==null||no({LitElement:y});var qc;((qc=globalThis.litElementVersions)!=null?qc:globalThis.litElementVersions=[]).push("4.0.0");function Q(e,t){let r=N({waitUntilFirstUpdate:!1},t);return(i,s)=>{let{update:n}=i,o=Array.isArray(e)?e:[e];i.update=function(u){o.forEach(c=>{let d=c;if(u.has(d)){let p=u.get(d),g=this[d];p!==g&&(!r.waitUntilFirstUpdate||this.hasUpdated)&&this[s](p,g)}}),n.call(this,u)}}}var de=class extends Event{constructor(t,r,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=r,this.subscribe=i!=null?i:!1}};var Yt=class{constructor(t,r,i,s){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,u)=>{this.unsubscribe&&(this.unsubscribe!==u&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,u)),this.unsubscribe=u},this.host=t,r.context!==void 0){let o=r;this.context=o.context,this.callback=o.callback,this.subscribe=(n=o.subscribe)!=null?n:!1}else this.context=r,this.callback=i,this.subscribe=s!=null?s:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new de(this.context,this.t,this.subscribe))}};var en=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,r=!1){let i=r||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:i}]of this.subscriptions)r(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,r,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:r});let{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var ao=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},mr=class extends en{constructor(t,r,i){super(r.context!==void 0?r.initialValue:i),this.onContextRequest=s=>{let n=s.composedPath()[0];s.context===this.context&&n!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,n,s.subscribe))},this.onProviderRequest=s=>{let n=s.composedPath()[0];if(s.context!==this.context||n===this.host)return;let o=new Set;for(let[u,{consumerHost:c}]of this.subscriptions)o.has(u)||(o.add(u),c.dispatchEvent(new de(this.context,u,!0)));s.stopPropagation()},this.host=t,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new ao(this.context))}};function ke({context:e}){return(t,r)=>{let i=new WeakMap;if(typeof r=="object")return r.addInitializer(function(){i.set(this,new mr(this,{context:e}))}),{get(){return t.get.call(this)},set(s){var n;return(n=i.get(this))==null||n.setValue(s),t.set.call(this,s)},init(s){var n;return(n=i.get(this))==null||n.setValue(s),s}};{t.constructor.addInitializer(o=>{i.set(o,new mr(o,{context:e}))});let s=Object.getOwnPropertyDescriptor(t,r),n;if(s===void 0){let o=new WeakMap;n={get:function(){return o.get(this)},set:function(u){i.get(this).setValue(u),o.set(this,u)}}}else{let o=s==null?void 0:s.set;n=U(N({},s),{set:function(u){var c;(c=i.get(this))==null||c.setValue(u),o==null||o.call(this,u)}})}return void Object.defineProperty(t,r,n)}}}function z({context:e,subscribe:t}){return(r,i)=>{typeof i=="object"?i.addInitializer(function(){new Yt(this,{context:e,callback:s=>{this[i.name]=s},subscribe:t})}):r.constructor.addInitializer(s=>{new Yt(s,{context:e,callback:n=>{s[i]=n},subscribe:t})})}}var Ti="item";var ht=class extends y{constructor(){super();this.identifier=void 0;this.adaptive="false";this.timeDependent="false";this._handleDisabledChange=(r,i)=>{this._interactionElements.forEach(s=>s.disabled=i)};this._handleReadonlyChange=(r,i)=>this._interactionElements.forEach(s=>s.readonly=i);this._context={identifier:this.getAttribute("identifier"),variables:[{identifier:"completionStatus",cardinality:"single",baseType:"string",value:"unknown",type:"outcome"},{identifier:"numAttempts",cardinality:"single",baseType:"integer",value:"0",type:"response"}]};this._initialContext=U(N({},this.context),{variables:this._context.variables});this._feedbackElements=[];this._interactionElements=[];this.addEventListener("qti-register-variable",({detail:r})=>{this._context=U(N({},this._context),{variables:[...this._context.variables,r.variable]}),this._initialContext=this._context}),this.addEventListener("qti-register-feedback",r=>{r.stopPropagation();let i=r.detail;this._feedbackElements.push(i),i.checkShowFeedback(i.outcomeIdentifier)}),this.addEventListener("qti-register-interaction",r=>{r.stopPropagation(),this._interactionElements.push(r.target)}),this.addEventListener("end-attempt",r=>{let{responseIdentifier:i,countAttempt:s}=r.detail;this.updateResponseVariable(i,"true"),this.processResponse(s)}),this.addEventListener("qti-set-outcome-value",r=>{let{outcomeIdentifier:i,value:s}=r.detail;this.updateOutcomeVariable(i,s)}),this.addEventListener("qti-interaction-response",this.handleUpdateResponseVariable)}get context(){return N({},this._context)}set variables(r){this._context=U(N({},this.context),{variables:r}),this.context.variables.forEach(i=>{if(i.type==="response"){let s=this._interactionElements.find(n=>n.responseIdentifier===i.identifier);s&&(s.response=i.value)}i.type==="outcome"&&this._feedbackElements.forEach(s=>s.checkShowFeedback(i.identifier))})}firstUpdated(r){super.firstUpdated(r),this._emit("qti-item-first-updated",this)}disconnectedCallback(){super.disconnectedCallback(),this._emit("qti-item-disconnected")}set responses(r){if(r)for(let i of r){this.getResponse(i.responseIdentifier)&&this.updateResponseVariable(i.responseIdentifier,i.response);let n=this._interactionElements.find(o=>o.getAttribute("response-identifier")===i.responseIdentifier);n&&(n.response=i.response)}}render(){return E`<slot></slot>`}showCorrectResponse(){let r=this.context.variables.filter(i=>"correctResponse"in i&&i.correctResponse);this.responses=r.map(i=>({responseIdentifier:i.identifier,response:i.correctResponse}))}processResponse(r=!0){var s;let i=this.querySelector("qti-response-processing");return i?i.process?(i.process(),this.adaptive==="false"&&this.updateOutcomeVariable("completionStatus",this._getCompletionStatus()),r&&this.updateOutcomeVariable("numAttempts",(+((s=this._context.variables.find(n=>n.identifier==="numAttempts"))==null?void 0:s.value)+1).toString()),this._emit("qti-response-processed"),!0):(console.info("Client side response webcomponents not available"),!1):(console.info("Client side response processing template not available"),!1)}resetResponses(){this._context=this._initialContext}getResponse(r){return this.getVariable(r)}getOutcome(r){return this.getVariable(r)}getVariable(r){return this._context.variables.find(i=>i.identifier===r)||null}handleUpdateResponseVariable(r){let{responseIdentifier:i,response:s}=r.detail;this.updateResponseVariable(i,s)}updateResponseVariable(r,i){this._context=U(N({},this._context),{variables:this._context.variables.map(s=>s.identifier!==r?s:U(N({},s),{value:i}))}),this._emit("qti-interaction-changed",{item:this.identifier,responseIdentifier:r,response:i})}updateOutcomeVariable(r,i){var n;let s=this.getOutcome(r);if(!s){console.warn(`Can not set qti-outcome-identifier: ${r}, it is not available`);return}this._context=U(N({},this._context),{variables:this._context.variables.map(o=>o.identifier!==r?o:U(N({},o),{value:s.cardinality==="single"?i:[...o.value,i]}))}),this._feedbackElements.forEach(o=>o.checkShowFeedback(r)),this._emit("qti-outcome-changed",{item:this.identifier,outcomeIdentifier:r,value:(n=this._context.variables.find(o=>o.identifier===r))==null?void 0:n.value})}_getCompletionStatus(){return this._interactionElements.every(r=>r.validate())?"completed":this._interactionElements.some(r=>r.validate())?"incomplete":"not_attempted"}_emit(r,i=null){this.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:i}))}};m([v({type:String})],ht.prototype,"title",2),m([v({type:String})],ht.prototype,"identifier",2),m([v({type:String})],ht.prototype,"adaptive",2),m([v({type:String})],ht.prototype,"timeDependent",2),m([v({type:Boolean})],ht.prototype,"disabled",2),m([Q("disabled",{waitUntilFirstUpdate:!0})],ht.prototype,"_handleDisabledChange",2),m([v({type:Boolean})],ht.prototype,"readonly",2),m([Q("readonly",{waitUntilFirstUpdate:!0})],ht.prototype,"_handleReadonlyChange",2),m([ke({context:Ti}),v({attribute:!1})],ht.prototype,"_context",2),ht=m([D("qti-assessment-item")],ht);var rn=class extends y{constructor(){super()}firstUpdated(r){super.firstUpdated(r);let i=this.closest("qti-assessment-item"),s=this.getAttribute("href");if(s!==null){let n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.media="screen",n.href=s,i.appendChild(n),this.styleLink=n}if(this.textContent!==null){let n=document.createElement("style");n.media="screen",n.textContent=this.textContent,i.appendChild(n),this.styleLink=n}}disconnectedCallback(){let r=this.closest("qti-assessment-item");if(this.styleLink&&this.styleLink.parentElement===this)try{r.removeChild(this.styleLink)}catch(i){console.log("could not remove stylesheet")}}};customElements.define("qti-stylesheet",rn);var Hc=k`
1
+ var oh=Object.create;var fr=Object.defineProperty,uh=Object.defineProperties,oc=Object.getOwnPropertyDescriptor,ch=Object.getOwnPropertyDescriptors,lh=Object.getOwnPropertyNames,ac=Object.getOwnPropertySymbols,dh=Object.getPrototypeOf,uc=Object.prototype.hasOwnProperty,hh=Object.prototype.propertyIsEnumerable;var Va=(e,t,r)=>t in e?fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))uc.call(t,r)&&Va(e,r,t[r]);if(ac)for(var r of ac(t))hh.call(t,r)&&Va(e,r,t[r]);return e},U=(e,t)=>uh(e,ch(t));var fh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_t=(e,t)=>{for(var r in t)fr(e,r,{get:t[r],enumerable:!0})},cc=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of lh(t))!uc.call(e,s)&&s!==r&&fr(e,s,{get:()=>t[s],enumerable:!(i=oc(t,s))||i.enumerable});return e};var Re=(e,t,r)=>(r=e!=null?oh(dh(e)):{},cc(t||!e||!e.__esModule?fr(r,"default",{value:e,enumerable:!0}):r,e)),ph=e=>cc(fr({},"__esModule",{value:!0}),e),p=(e,t,r,i)=>{for(var s=i>1?void 0:i?oc(t,r):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(s=(i?o(t,r,s):o(s))||s);return i&&s&&fr(t,r,s),s};var P=(e,t,r)=>(Va(e,typeof t!="symbol"?t+"":t,r),r);var xe=fh((gN,Vl)=>{Vl.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}});var hE={};_t(hE,{Events:()=>Za,Interaction:()=>K,QtPrintedVariable:()=>Ar,QtiAnd:()=>fn,QtiAssessmentItem:()=>ht,QtiAssessmentItemRef:()=>ir,QtiAssessmentTest:()=>oe,QtiAssociableHotspot:()=>Fi,QtiAssociateInteraction:()=>yr,QtiBaseValue:()=>Ii,QtiChoice:()=>ot,QtiChoiceElementSelected:()=>Ja,QtiChoiceInteraction:()=>Fe,QtiCompanionMaterialsInfo:()=>vi,QtiConditionExpression:()=>wt,QtiContains:()=>pn,QtiCorrect:()=>mn,QtiCustomOperator:()=>Ir,QtiEndAttemptInteraction:()=>Xe,QtiEqual:()=>Ri,QtiEqualRounded:()=>Li,QtiExpression:()=>q,QtiExtendedTextInteraction:()=>qt,QtiFeedbackBlock:()=>Ci,QtiFeedbackInline:()=>Ai,QtiGap:()=>Yi,QtiGapImg:()=>$i,QtiGapMatchInteraction:()=>ki,QtiGapText:()=>Vi,QtiGraphicAssociateInteraction:()=>Xt,QtiGraphicGapMatchInteraction:()=>Mi,QtiGraphicOrderInteraction:()=>Pi,QtiGt:()=>gn,QtiGte:()=>bn,QtiHotspotChoice:()=>Nr,QtiHotspotInteraction:()=>qi,QtiHottext:()=>Gi,QtiHottextInteraction:()=>cn,QtiInlineChoice:()=>On,QtiInlineChoiceInteraction:()=>me,QtiInteractionChanged:()=>Ga,QtiInteractionResponse:()=>Qa,QtiIsNull:()=>En,QtiItem:()=>Dt,QtiLooseChoice:()=>za,QtiLt:()=>wn,QtiLte:()=>Tn,QtiMapResponse:()=>Di,QtiMapping:()=>Ve,QtiMatch:()=>_r,QtiMatchInteraction:()=>Ye,QtiMediaInteraction:()=>Hi,QtiMember:()=>xn,QtiModalFeedback:()=>yi,QtiMultiple:()=>vn,QtiNot:()=>_n,QtiOr:()=>An,QtiOrderInteraction:()=>Ge,QtiOrdered:()=>yn,QtiOutcomeChanged:()=>Ya,QtiOutcomeDeclaration:()=>Ue,QtiPortableCustomInteraction:()=>In,QtiPositionObjectStage:()=>Bi,QtiProduct:()=>Cn,QtiPrompt:()=>nn,QtiRegisterChoice:()=>ja,QtiRegisterHotspot:()=>Ka,QtiRegisterInteraction:()=>Wa,QtiRegisterVariable:()=>Xa,QtiResponseCondition:()=>ln,QtiResponseDeclaration:()=>He,QtiResponseElse:()=>xr,QtiResponseElseIf:()=>hn,QtiResponseIf:()=>vr,QtiResponseProcessing:()=>$e,QtiRule:()=>Yt,QtiSPositionObjectInteraction:()=>Ui,QtiSelectPointInteraction:()=>ge,QtiSetOutcomeValue:()=>dn,QtiSimpleAssociableChoice:()=>Dn,QtiSimpleChoice:()=>Sr,QtiSliderInteraction:()=>ct,QtiStringMatch:()=>Oi,QtiStylesheet:()=>sn,QtiSum:()=>Sn,QtiTest:()=>ah,QtiTestPart:()=>nr,QtiTextEntryInteraction:()=>Ct,QtiVariable:()=>Nn,TestContext:()=>Cu,TestItemId:()=>ui,TestManualScoring:()=>zt,TestNext:()=>Jr,TestPagingButtons:()=>hr,TestPagingRadio:()=>ri,TestPrev:()=>Zr,TestPrintScore:()=>oi,TestPrintVariables:()=>ai,TestProgress:()=>ti,TestScript:()=>si,TestShowCorrect:()=>ii,TestShowIndex:()=>ni,TestSlider:()=>ei,TestToggleScoring:()=>Vs,fetchManifestData:()=>nc,itemContext:()=>xi,qtiContentBody:()=>_i,qtiRubricBlock:()=>kt,qtiTransform:()=>yu,requestItem:()=>sc,testContext:()=>X});module.exports=ph(hE);var Ya={};var Ga={};var Xa={};var Wa={};var ja={};var Ka={};var za={};var Qa={};var Ja={};var Za={ON_OUTCOME_CHANGED:"qti-outcome-changed",ON_INTERACTION_CHANGED:"on-interaction-changed",ON_REGISTER_VARIABLE:"on-register-variable",ON_REGISTER_FEEDBACK:"on-register-feedback",ON_REGISTER_INTERACTION:"on-register-interaction",ON_REGISTER_CHOICE:"on-register-choice",ON_REGISTER_HOTSPOT:"on-register-hotspot",ON_LOOSE_CHOICE:"on-loose-choice",ON_INTERACTION_RESPONSE:"on-interaction-response",ON_DROPDOWN_SELECTED:"on-dropdown-selected",ON_CHOICE_ELEMENT_SELECTED:"choice-element-selected"};var R=e=>(t,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)};var lc=class{get shadowRoot(){return this.__host.__shadowRoot}constructor(t){this.ariaAtomic="",this.ariaAutoComplete="",this.ariaBraileLabel="",this.ariaBraileRoleDescription="",this.ariaBusy="",this.ariaChecked="",this.ariaColCount="",this.ariaColIndex="",this.ariaColSpan="",this.ariaCurrent="",this.ariaDescription="",this.ariaDisabled="",this.ariaExpanded="",this.ariaHasPopup="",this.ariaHidden="",this.ariaInvalid="",this.ariaKeyShortcuts="",this.ariaLabel="",this.ariaLevel="",this.ariaLive="",this.ariaModal="",this.ariaMultiLine="",this.ariaMultiSelectable="",this.ariaOrientation="",this.ariaPlaceholder="",this.ariaPosInSet="",this.ariaPressed="",this.ariaReadOnly="",this.ariaRequired="",this.ariaRoleDescription="",this.ariaRowCount="",this.ariaRowIndex="",this.ariaRowSpan="",this.ariaSelected="",this.ariaSetSize="",this.ariaSort="",this.ariaValueMax="",this.ariaValueMin="",this.ariaValueNow="",this.ariaValueText="",this.role="",this.form=null,this.labels=[],this.states=new Set,this.validationMessage="",this.validity={},this.willValidate=!0,this.__host=t}checkValidity(){return console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true."),!0}reportValidity(){return!0}setFormValue(){}setValidity(){}};var dc=new WeakMap,li=e=>{let t=dc.get(e);return t===void 0&&dc.set(e,t=new Map),t},mh=class{constructor(){this.__shadowRootMode=null,this.__shadowRoot=null,this.__internals=null}get attributes(){return Array.from(li(this)).map(([t,r])=>({name:t,value:r}))}get shadowRoot(){return this.__shadowRootMode==="closed"?null:this.__shadowRoot}setAttribute(t,r){li(this).set(t,String(r))}removeAttribute(t){li(this).delete(t)}hasAttribute(t){return li(this).has(t)}attachShadow(t){let r={host:this};return this.__shadowRootMode=t.mode,t&&t.mode==="open"&&(this.__shadowRoot=r),r}attachInternals(){if(this.__internals!==null)throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");let t=new lc(this);return this.__internals=t,t}getAttribute(t){let r=li(this).get(t);return r!=null?r:null}};var gh=class extends mh{},Gs=gh;var bh=class{constructor(){this.__definitions=new Map}define(t,r){var i;if(this.__definitions.has(t))if(process.env.NODE_ENV==="development")console.warn(`'CustomElementRegistry' already has "${t}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.
2
+ Make sure to test your application with a production build as repeat registrations will throw in production.`);else throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);this.__definitions.set(t,{ctor:r,observedAttributes:(i=r.observedAttributes)!=null?i:[]})}get(t){let r=this.__definitions.get(t);return r==null?void 0:r.ctor}},Eh=bh;var Xs=new Eh;var di=globalThis,Ws=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,to=Symbol(),hc=new WeakMap,hi=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==to)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Ws&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=hc.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&hc.set(r,t))}return t}toString(){return this.cssText}},fc=e=>new hi(typeof e=="string"?e:e+"",void 0,to),k=(e,...t)=>{let r=e.length===1?e[0]:t.reduce((i,s,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+e[n+1],e[0]);return new hi(r,e,to)},eo=(e,t)=>{if(Ws)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),s=di.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)}},js=Ws||di.CSSStyleSheet===void 0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return fc(r)})(e):e;var{is:wh,defineProperty:Th,getOwnPropertyDescriptor:xh,getOwnPropertyNames:vh,getOwnPropertySymbols:_h,getPrototypeOf:Ah}=Object,Ot=globalThis,gc;(gc=Ot.customElements)!=null||(Ot.customElements=Xs);var pc=Ot.trustedTypes,yh=pc?pc.emptyScript:"",ro=Ot.reactiveElementPolyfillSupport,fi=(e,t)=>e,pi={toAttribute(e,t){switch(t){case Boolean:e=e?yh:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(i){r=null}}return r}},Ks=(e,t)=>!wh(e,t),mc={attribute:!0,type:String,converter:pi,reflect:!1,hasChanged:Ks},bc,Ec;(bc=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ec=Ot.litPropertyMetadata)!=null||(Ot.litPropertyMetadata=new WeakMap);var wc,Qt=class extends((wc=globalThis.HTMLElement)!=null?wc:Gs){static addInitializer(t){var r;this._$Ei(),((r=this.l)!=null?r:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=mc){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let i=Symbol(),s=this.getPropertyDescriptor(t,i,r);s!==void 0&&Th(this.prototype,t,s)}}static getPropertyDescriptor(t,r,i){var o;let{get:s,set:n}=(o=xh(this.prototype,t))!=null?o:{get(){return this[r]},set(u){this[r]=u}};return{get(){return s==null?void 0:s.call(this)},set(u){let c=s==null?void 0:s.call(this);n.call(this,u),this.requestUpdate(t,c,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var r;return(r=this.elementProperties.get(t))!=null?r:mc}static _$Ei(){if(this.hasOwnProperty(fi("elementProperties")))return;let t=Ah(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(fi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(fi("properties"))){let r=this.properties,i=[...vh(r),..._h(r)];for(let s of i)this.createProperty(s,r[s])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);if(r!==void 0)for(let[i,s]of r)this.elementProperties.set(i,s)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let s=this._$Eu(r,i);s!==void 0&&this._$Eh.set(s,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let s of i)r.unshift(js(s))}else t!==void 0&&r.push(js(t));return r}static _$Eu(t,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(r=>r(this))}addController(t){var r,i;((r=this._$ES)!=null?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var r;(r=this._$ES)==null||r.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var r;let t=(r=this.shadowRoot)!=null?r:this.attachShadow(this.constructor.shadowRootOptions);return eo(t,this.constructor.elementStyles),t}connectedCallback(){var t,r;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(r=this._$ES)==null||r.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(r=>{var i;return(i=r.hostDisconnected)==null?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r){var n;let i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){let o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:pi).toAttribute(r,i.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,r){var n;let i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){let o=i.getPropertyOptions(s),u=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:pi;this._$Em=s,this[s]=u.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,i,s=!1,n){var o;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((o=i.hasChanged)!=null?o:Ks)(s?n:this[t],r))return;this.C(t,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,r,i){var s;this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(let[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,o]of s)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(i=this._$ES)==null||i.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(r)):this._$ET()}catch(s){throw t=!1,this._$ET(),s}t&&this._$AE(r)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)==null||r.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EO(r,this[r]))),this._$ET()}updated(t){}firstUpdated(t){}},Tc;Qt.elementStyles=[],Qt.shadowRootOptions={mode:"open"},Qt[fi("elementProperties")]=new Map,Qt[fi("finalized")]=new Map,ro==null||ro({ReactiveElement:Qt}),((Tc=Ot.reactiveElementVersions)!=null?Tc:Ot.reactiveElementVersions=[]).push("2.0.0");var Ch={attribute:!0,type:String,converter:pi,reflect:!1,hasChanged:Ks},Nh=(e=Ch,t,r)=>{let{kind:i,metadata:s}=r,n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(r.name,e),i==="accessor"){let{name:o}=r;return{set(u){let c=t.get.call(this);t.set.call(this,u),this.requestUpdate(o,c,e)},init(u){return u!==void 0&&this.C(o,void 0,e),u}}}if(i==="setter"){let{name:o}=r;return function(u){let c=this[o];t.call(this,u),this.requestUpdate(o,c,e)}}throw Error("Unsupported decorator location: "+i)};function x(e){return(t,r)=>typeof r=="object"?Nh(e,t,r):((i,s,n)=>{let o=s.hasOwnProperty(n);return s.constructor.createProperty(n,o?U(S({},i),{wrapped:!0}):i),o?Object.getOwnPropertyDescriptor(s,n):void 0})(e,t,r)}function M(e){return x(U(S({},e),{state:!0,attribute:!1}))}var de=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,r),r);function mi(e,t){return(r,i,s)=>{let n=o=>{var u,c;return(c=(u=o.renderRoot)==null?void 0:u.querySelector(e))!=null?c:null};if(t){let{get:o,set:u}=typeof i=="object"?r:s!=null?s:(()=>{let c=Symbol();return{get(){return this[c]},set(d){this[c]=d}}})();return de(r,i,{get(){if(t){let c=o.call(this);return c===void 0&&(c=n(this),u.call(this,c)),c}return n(this)}})}return de(r,i,{get(){return n(this)}})}}function xc(e){return(t,r)=>{let{slot:i,selector:s}=e!=null?e:{},n="slot"+(i?`[name=${i}]`:":not([name])");return de(t,r,{get(){var c,d;let o=(c=this.renderRoot)==null?void 0:c.querySelector(n),u=(d=o==null?void 0:o.assignedElements(e))!=null?d:[];return s===void 0?u:u.filter(m=>m.matches(s))}})}}var pr=globalThis,zs=pr.trustedTypes,vc=zs?zs.createPolicy("lit-html",{createHTML:e=>e}):void 0,no="$lit$",Jt=`lit$${(Math.random()+"").slice(9)}$`,ao="?"+Jt,Sh=`<${ao}>`,Oe=pr.document===void 0?{createTreeWalker:()=>({})}:document,bi=()=>Oe.createComment(""),Ei=e=>e===null||typeof e!="object"&&typeof e!="function",Ic=Array.isArray,Rc=e=>Ic(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",io=`[
3
+ \f\r]`,gi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_c=/-->/g,Ac=/>/g,Le=RegExp(`>|${io}(?:([^\\s"'>=/]+)(${io}*=${io}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),yc=/'/g,Cc=/"/g,Lc=/^(?:script|style|textarea|title)$/i,Dc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),E=Dc(1),Pe=Dc(2),Et=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Nc=new WeakMap,De=Oe.createTreeWalker(Oe,129);function Oc(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return vc!==void 0?vc.createHTML(t):t}var kc=(e,t)=>{let r=e.length-1,i=[],s,n=t===2?"<svg>":"",o=gi;for(let u=0;u<r;u++){let c=e[u],d,m,g=-1,_=0;for(;_<c.length&&(o.lastIndex=_,m=o.exec(c),m!==null);)_=o.lastIndex,o===gi?m[1]==="!--"?o=_c:m[1]!==void 0?o=Ac:m[2]!==void 0?(Lc.test(m[2])&&(s=RegExp("</"+m[2],"g")),o=Le):m[3]!==void 0&&(o=Le):o===Le?m[0]===">"?(o=s!=null?s:gi,g=-1):m[1]===void 0?g=-2:(g=o.lastIndex-m[2].length,d=m[1],o=m[3]===void 0?Le:m[3]==='"'?Cc:yc):o===Cc||o===yc?o=Le:o===_c||o===Ac?o=gi:(o=Le,s=void 0);let v=o===Le&&e[u+1].startsWith("/>")?" ":"";n+=o===gi?c+Sh:g>=0?(i.push(d),c.slice(0,g)+no+c.slice(g)+Jt+v):c+Jt+(g===-2?u:v)}return[Oc(e,n+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},wi=class e{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,u=t.length-1,c=this.parts,[d,m]=kc(t,r);if(this.el=e.createElement(d,i),De.currentNode=this.el.content,r===2){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(s=De.nextNode())!==null&&c.length<u;){if(s.nodeType===1){if(s.hasAttributes())for(let g of s.getAttributeNames())if(g.endsWith(no)){let _=m[o++],v=s.getAttribute(g).split(Jt),N=/([.?@])?(.*)/.exec(_);c.push({type:1,index:n,name:N[2],strings:v,ctor:N[1]==="."?Js:N[1]==="?"?Zs:N[1]==="@"?tn:Me}),s.removeAttribute(g)}else g.startsWith(Jt)&&(c.push({type:6,index:n}),s.removeAttribute(g));if(Lc.test(s.tagName)){let g=s.textContent.split(Jt),_=g.length-1;if(_>0){s.textContent=zs?zs.emptyScript:"";for(let v=0;v<_;v++)s.append(g[v],bi()),De.nextNode(),c.push({type:2,index:++n});s.append(g[_],bi())}}}else if(s.nodeType===8)if(s.data===ao)c.push({type:2,index:n});else{let g=-1;for(;(g=s.data.indexOf(Jt,g+1))!==-1;)c.push({type:7,index:n}),g+=Jt.length-1}n++}}static createElement(t,r){let i=Oe.createElement("template");return i.innerHTML=t,i}};function ke(e,t,r=e,i){var o,u,c;if(t===Et)return t;let s=i!==void 0?(o=r._$Co)==null?void 0:o[i]:r._$Cl,n=Ei(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((u=s==null?void 0:s._$AO)==null||u.call(s,!1),n===void 0?s=void 0:(s=new n(e),s._$AT(e,r,i)),i!==void 0?((c=r._$Co)!=null?c:r._$Co=[])[i]=s:r._$Cl=s),s!==void 0&&(t=ke(e,s._$AS(e,t.values),s,i)),t}var Qs=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;let{el:{content:r},parts:i}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:Oe).importNode(r,!0);De.currentNode=s;let n=De.nextNode(),o=0,u=0,c=i[0];for(;c!==void 0;){if(o===c.index){let m;c.type===2?m=new mr(n,n.nextSibling,this,t):c.type===1?m=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(m=new en(n,this,t)),this._$AV.push(m),c=i[++u]}o!==(c==null?void 0:c.index)&&(n=De.nextNode(),o++)}return De.currentNode=Oe,s}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},mr=class e{get _$AU(){var t,r;return(r=(t=this._$AM)==null?void 0:t._$AU)!=null?r:this._$Cv}constructor(t,r,i,s){var n;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=(n=s==null?void 0:s.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ke(this,t,r),Ei(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==Et&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Rc(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==$&&Ei(this._$AH)?this._$AA.nextSibling.data=t:this.$(Oe.createTextNode(t)),this._$AH=t}g(t){var n;let{values:r,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=wi.createElement(Oc(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(r);else{let o=new Qs(s,this),u=o.u(this.options);o.p(r),this.$(u),this._$AH=o}}_$AC(t){let r=Nc.get(t.strings);return r===void 0&&Nc.set(t.strings,r=new wi(t)),r}T(t){Ic(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of t)s===r.length?r.push(i=new e(this.k(bi()),this.k(bi()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,r);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}},Me=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,s,n){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}_$AI(t,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)t=ke(this,t,r,0),o=!Ei(t)||t!==this._$AH&&t!==Et,o&&(this._$AH=t);else{let u=t,c,d;for(t=n[0],c=0;c<n.length-1;c++)d=ke(this,u[i+c],r,c),d===Et&&(d=this._$AH[c]),o||(o=!Ei(d)||d!==this._$AH[c]),d===$?t=$:t!==$&&(t+=(d!=null?d:"")+n[c+1]),this._$AH[c]=d}o&&!s&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Js=class extends Me{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}},Zs=class extends Me{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}},tn=class extends Me{constructor(t,r,i,s,n){super(t,r,i,s,n),this.type=5}_$AI(t,r=this){var o;if((t=(o=ke(this,t,r,0))!=null?o:$)===Et)return;let i=this._$AH,s=t===$&&i!==$||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==$&&(i===$||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)==null?void 0:r.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}},en=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ke(this,t)}},Mc={S:no,A:Jt,P:ao,C:1,M:kc,L:Qs,R:Rc,V:ke,D:mr,I:Me,H:Zs,N:tn,U:Js,B:en},so=pr.litHtmlPolyfillSupport,Sc;so==null||so(wi,mr),((Sc=pr.litHtmlVersions)!=null?Sc:pr.litHtmlVersions=[]).push("3.0.0");var Pc=(e,t,r)=>{var n,o;let i=(n=r==null?void 0:r.renderBefore)!=null?n:t,s=i._$litPart$;if(s===void 0){let u=(o=r==null?void 0:r.renderBefore)!=null?o:null;i._$litPart$=s=new mr(t.insertBefore(bi(),u),u,void 0,r!=null?r:{})}return s._$AI(e),s};var y=class extends Qt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r,i;let t=super.createRenderRoot();return(i=(r=this.renderOptions).renderBefore)!=null||(r.renderBefore=t.firstChild),t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Pc(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Et}},qc;y._$litElement$=!0,y["finalized"]=!0,(qc=globalThis.litElementHydrateSupport)==null||qc.call(globalThis,{LitElement:y});var oo=globalThis.litElementPolyfillSupport;oo==null||oo({LitElement:y});var Hc;((Hc=globalThis.litElementVersions)!=null?Hc:globalThis.litElementVersions=[]).push("4.0.0");function Q(e,t){let r=S({waitUntilFirstUpdate:!1},t);return(i,s)=>{let{update:n}=i,o=Array.isArray(e)?e:[e];i.update=function(u){o.forEach(c=>{let d=c;if(u.has(d)){let m=u.get(d),g=this[d];m!==g&&(!r.waitUntilFirstUpdate||this.hasUpdated)&&this[s](m,g)}}),n.call(this,u)}}}var he=class extends Event{constructor(t,r,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=r,this.subscribe=i!=null?i:!1}};var fe=class{constructor(t,r,i,s){var n;if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,u)=>{this.unsubscribe&&(this.unsubscribe!==u&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,u)),this.unsubscribe=u},this.host=t,r.context!==void 0){let o=r;this.context=o.context,this.callback=o.callback,this.subscribe=(n=o.subscribe)!=null?n:!1}else this.context=r,this.callback=i,this.subscribe=s!=null?s:!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new he(this.context,this.t,this.subscribe))}};var rn=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,r=!1){let i=r||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[r,{disposer:i}]of this.subscriptions)r(this.o,i)},t!==void 0&&(this.value=t)}addCallback(t,r,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:r});let{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var uo=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}},gr=class extends rn{constructor(t,r,i){super(r.context!==void 0?r.initialValue:i),this.onContextRequest=s=>{let n=s.composedPath()[0];s.context===this.context&&n!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,n,s.subscribe))},this.onProviderRequest=s=>{let n=s.composedPath()[0];if(s.context!==this.context||n===this.host)return;let o=new Set;for(let[u,{consumerHost:c}]of this.subscriptions)o.has(u)||(o.add(u),c.dispatchEvent(new he(this.context,u,!0)));s.stopPropagation()},this.host=t,r.context!==void 0?this.context=r.context:this.context=r,this.attachListeners(),this.host.addController(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new uo(this.context))}};function Ti({context:e}){return(t,r)=>{let i=new WeakMap;if(typeof r=="object")return r.addInitializer(function(){i.set(this,new gr(this,{context:e}))}),{get(){return t.get.call(this)},set(s){var n;return(n=i.get(this))==null||n.setValue(s),t.set.call(this,s)},init(s){var n;return(n=i.get(this))==null||n.setValue(s),s}};{t.constructor.addInitializer(o=>{i.set(o,new gr(o,{context:e}))});let s=Object.getOwnPropertyDescriptor(t,r),n;if(s===void 0){let o=new WeakMap;n={get:function(){return o.get(this)},set:function(u){i.get(this).setValue(u),o.set(this,u)}}}else{let o=s==null?void 0:s.set;n=U(S({},s),{set:function(u){var c;(c=i.get(this))==null||c.setValue(u),o==null||o.call(this,u)}})}return void Object.defineProperty(t,r,n)}}}function j({context:e,subscribe:t}){return(r,i)=>{typeof i=="object"?i.addInitializer(function(){new fe(this,{context:e,callback:s=>{this[i.name]=s},subscribe:t})}):r.constructor.addInitializer(s=>{new fe(s,{context:e,callback:n=>{s[i]=n},subscribe:t})})}}var xi="item";var ht=class extends y{constructor(){super();this.identifier=void 0;this.adaptive="false";this.timeDependent="false";this._handleDisabledChange=(r,i)=>{this._interactionElements.forEach(s=>s.disabled=i)};this._handleReadonlyChange=(r,i)=>this._interactionElements.forEach(s=>s.readonly=i);this._context={identifier:this.getAttribute("identifier"),variables:[{identifier:"completionStatus",cardinality:"single",baseType:"string",value:"unknown",type:"outcome"},{identifier:"numAttempts",cardinality:"single",baseType:"integer",value:"0",type:"response"}]};this._initialContext=U(S({},this.context),{variables:this._context.variables});this._feedbackElements=[];this._interactionElements=[];this.addEventListener("qti-register-variable",({detail:r})=>{this._context=U(S({},this._context),{variables:[...this._context.variables,r.variable]}),this._initialContext=this._context}),this.addEventListener("qti-register-feedback",r=>{r.stopPropagation();let i=r.detail;this._feedbackElements.push(i),i.checkShowFeedback(i.outcomeIdentifier)}),this.addEventListener("qti-register-interaction",r=>{r.stopPropagation(),this._interactionElements.push(r.target)}),this.addEventListener("end-attempt",r=>{let{responseIdentifier:i,countAttempt:s}=r.detail;this.updateResponseVariable(i,"true"),this.processResponse(s)}),this.addEventListener("qti-set-outcome-value",r=>{let{outcomeIdentifier:i,value:s}=r.detail;this.updateOutcomeVariable(i,s)}),this.addEventListener("qti-interaction-response",this.handleUpdateResponseVariable)}get context(){return S({},this._context)}set variables(r){this._context=U(S({},this.context),{variables:r}),this.context.variables.forEach(i=>{if(i.type==="response"){let s=this._interactionElements.find(n=>n.responseIdentifier===i.identifier);s&&(s.response=i.value)}i.type==="outcome"&&this._feedbackElements.forEach(s=>s.checkShowFeedback(i.identifier))})}firstUpdated(r){super.firstUpdated(r),this._emit("qti-item-first-updated",this)}disconnectedCallback(){super.disconnectedCallback(),this._emit("qti-item-disconnected")}set responses(r){if(r)for(let i of r){this.getResponse(i.responseIdentifier)&&this.updateResponseVariable(i.responseIdentifier,i.response);let n=this._interactionElements.find(o=>o.getAttribute("response-identifier")===i.responseIdentifier);n&&(n.response=i.response)}}render(){return E`<slot></slot>`}showCorrectResponse(r){let s=this.context.variables.filter(n=>"correctResponse"in n&&n.correctResponse).map(n=>({responseIdentifier:n.identifier,response:n.correctResponse}));for(let n of s){let o=this._interactionElements.find(u=>u.getAttribute("response-identifier")===n.responseIdentifier);o&&(o.correctResponse=r?n.response:"")}}processResponse(r=!0){var s;let i=this.querySelector("qti-response-processing");return i?i.process?(i.process(),this.adaptive==="false"&&this.updateOutcomeVariable("completionStatus",this._getCompletionStatus()),r&&this.updateOutcomeVariable("numAttempts",(+((s=this._context.variables.find(n=>n.identifier==="numAttempts"))==null?void 0:s.value)+1).toString()),this._emit("qti-response-processed"),!0):(console.info("Client side response webcomponents not available"),!1):(console.info("Client side response processing template not available"),!1)}resetResponses(){this._context=this._initialContext}getResponse(r){return this.getVariable(r)}getOutcome(r){return this.getVariable(r)}getVariable(r){return this._context.variables.find(i=>i.identifier===r)||null}handleUpdateResponseVariable(r){let{responseIdentifier:i,response:s}=r.detail;this.updateResponseVariable(i,s)}updateResponseVariable(r,i){this._context=U(S({},this._context),{variables:this._context.variables.map(s=>s.identifier!==r?s:U(S({},s),{value:i}))}),this._emit("qti-interaction-changed",{item:this.identifier,responseIdentifier:r,response:i})}updateOutcomeVariable(r,i){var n;let s=this.getOutcome(r);if(!s){console.warn(`Can not set qti-outcome-identifier: ${r}, it is not available`);return}this._context=U(S({},this._context),{variables:this._context.variables.map(o=>o.identifier!==r?o:U(S({},o),{value:s.cardinality==="single"?i:[...o.value,i]}))}),this._feedbackElements.forEach(o=>o.checkShowFeedback(r)),this._emit("qti-outcome-changed",{item:this.identifier,outcomeIdentifier:r,value:(n=this._context.variables.find(o=>o.identifier===r))==null?void 0:n.value})}_getCompletionStatus(){return this._interactionElements.every(r=>r.validate())?"completed":this._interactionElements.some(r=>r.validate())?"incomplete":"not_attempted"}_emit(r,i=null){this.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:i}))}};p([x({type:String})],ht.prototype,"title",2),p([x({type:String})],ht.prototype,"identifier",2),p([x({type:String})],ht.prototype,"adaptive",2),p([x({type:String})],ht.prototype,"timeDependent",2),p([x({type:Boolean})],ht.prototype,"disabled",2),p([Q("disabled",{waitUntilFirstUpdate:!0})],ht.prototype,"_handleDisabledChange",2),p([x({type:Boolean})],ht.prototype,"readonly",2),p([Q("readonly",{waitUntilFirstUpdate:!0})],ht.prototype,"_handleReadonlyChange",2),p([Ti({context:xi}),x({attribute:!1})],ht.prototype,"_context",2),ht=p([R("qti-assessment-item")],ht);var sn=class extends y{constructor(){super()}firstUpdated(r){super.firstUpdated(r);let i=this.closest("qti-assessment-item"),s=this.getAttribute("href");if(s!==null){let n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.media="screen",n.href=s,i.appendChild(n),this.styleLink=n}if(this.textContent!==null){let n=document.createElement("style");n.media="screen",n.textContent=this.textContent,i.appendChild(n),this.styleLink=n}}disconnectedCallback(){let r=this.closest("qti-assessment-item");if(this.styleLink&&this.styleLink.parentElement===this)try{r.removeChild(this.styleLink)}catch(i){console.log("could not remove stylesheet")}}};customElements.define("qti-stylesheet",sn);var Bc=k`
5
5
  :host {
6
6
  display: block;
7
7
  }
8
- `;var gr=class extends y{render(){return E`<slot name="qti-rubric-block"></slot><slot></slot>`}};gr.styles=Hc,gr=m([D("qti-item-body")],gr);var sn=class extends y{render(){return E`<slot></slot>`}connectedCallback(){this.parentElement.tagName.endsWith("INTERACTION")&&this.setAttribute("slot","prompt")}};customElements.define("qti-prompt",sn);var Sh=Symbol.for(""),Nh=e=>{if((e==null?void 0:e.r)===Sh)return e==null?void 0:e._$litStatic$};var Uc=new Map,Bc=e=>(t,...r)=>{let i=r.length,s,n,o=[],u=[],c,d=0,p=!1;for(;d<i;){for(c=t[d];d<i&&(n=r[d],(s=Nh(n))!==void 0);)c+=s+t[++d],p=!0;d!==i&&u.push(n),o.push(c),d++}if(d===i&&o.push(t[i]),p){let g=o.join("$$lit$$");(t=Uc.get(g))===void 0&&(o.raw=o,Uc.set(g,t=o)),r=u}return e(t,...r)},Fc=Bc(E),hw=Bc(Oe);var Ih={SPACE:32},ot=class extends y{constructor(){super(...arguments);this.tabindex=0;this.disabled=!1;this.readonly=!1;this.checked=!1}handleDisabledChange(r,i){i?(this.tabindex=void 0,this.blur()):this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("qti-register-choice",{bubbles:!0,cancelable:!1,composed:!0}))}disconnectedCallback(){this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("qti-loose-choice",{bubbles:!0,cancelable:!1,composed:!0}))}reset(){this.checked=!1,this.disabled=!1}_onKeyUp(r){if(!r.altKey)switch(r.keyCode){case Ih.SPACE:r.preventDefault(),this._toggleChecked();break;default:}}_onClick(){this._toggleChecked()}_toggleChecked(){this.disabled||this.readonly||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("qti-choice-element-selected",{bubbles:!0,cancelable:!1,composed:!0,detail:{identifier:this.identifier,checked:this.checked}})))}validateAllProps(){return!!this.getAttribute("identifier")}render(){return this.validateAllProps()||console.warn(`Invalid props for ${this.outerHTML}`,"missing identifier"),Fc` <slot></slot> `}};m([v({type:String})],ot.prototype,"identifier",2),m([v({type:Number,reflect:!0})],ot.prototype,"tabindex",2),m([v({reflect:!0,type:Boolean,attribute:"aria-disabled",converter:{toAttribute:e=>e}})],ot.prototype,"disabled",2),m([v({reflect:!0,type:Boolean,attribute:"aria-readonly",converter:{toAttribute:e=>e}})],ot.prototype,"readonly",2),m([v({reflect:!0,type:Boolean,attribute:"aria-checked",converter:{toAttribute:e=>e}})],ot.prototype,"checked",2),m([Q("disabled",{waitUntilFirstUpdate:!0})],ot.prototype,"handleDisabledChange",1);var Me=class extends y{render(){return E``}defaultValues(t){let r=Array.from(this.querySelectorAll("qti-default-value > qti-value"));if(r.length===0)return null;let i=r.map(s=>s.innerHTML);return i.length>1||t.cardinality==="multiple"||t.cardinality==="ordered"?i:i[0]}};customElements.define("qti-variabledeclaration",Me);var Pe=class extends Me{connectedCallback(){super.connectedCallback();let r={baseType:this.baseType,identifier:this.identifier,correctResponse:this.correctResponse,cardinality:this.cardinality||"single",mapping:this.mapping,value:null,type:"response",candidateResponse:null};r.value=this.defaultValues(r),this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:r}}))}get correctResponse(){let r,i=this.querySelector("qti-correct-response");if(i){let s=i.querySelectorAll("qti-value");if(this.cardinality==="single"&&s.length>0)r=s[0].textContent,s[0].remove();else if(this.cardinality!=="single"){r=[];for(let n=0;n<s.length;n++)r.push(s[n].textContent),s[n].remove()}}return r}get mapping(){return this.querySelector("qti-mapping")}};m([v({type:String,attribute:"base-type"})],Pe.prototype,"baseType",2),m([v({type:String})],Pe.prototype,"identifier",2),m([v({type:String})],Pe.prototype,"cardinality",2);customElements.define("qti-response-declaration",Pe);var qe=class extends Me{get interpolationTable(){let r=this.querySelector("qti-interpolation-table");if(r){let i=new Map;for(let s of r.querySelectorAll("qti-interpolation-table-entry")){!s.getAttribute("source-value")&&s.getAttribute("target-value")&&console.error("source-value or target-value is missing in qti-interpolation-table-entry");let n=parseInt(s.getAttribute("source-value")),o=parseInt(s.getAttribute("target-value"));(isNaN(n)||isNaN(o))&&console.error("source-value or target-value is not a number in qti-interpolation-table-entry"),i.set(n,o)}}return null}connectedCallback(){super.connectedCallback();let r={identifier:this.identifier,cardinality:this.cardinality,baseType:this.baseType,type:"outcome",value:null};r.value=this.defaultValues(r),this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:r}}))}};m([v({type:String,attribute:"base-type"})],qe.prototype,"baseType",2),m([v({type:String})],qe.prototype,"identifier",2),m([v({type:String})],qe.prototype,"cardinality",2);customElements.define("qti-outcome-declaration",qe);var xi=class extends y{};xi=m([D("qti-companion-materials-info")],xi);var nn="audience";var Ot=class extends y{constructor(){super(...arguments);this.logger=new Yt(this,nn,r=>this.style.display=this.view===r.view?"block":"none",!0)}handleclassNamesChange(r,i){this.classNames.split(" ").forEach(n=>{switch(n){case"qti-rubric-discretionary-placement":this.setAttribute("slot","qti-rubric-block");break;case"qti-rubric-inline":this.setAttribute("slot","");break;default:break}})}render(){return E`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-rubric-block")}};Ot.styles=k`
8
+ `;var br=class extends y{render(){return E`<slot name="qti-rubric-block"></slot><slot></slot>`}};br.styles=Bc,br=p([R("qti-item-body")],br);var nn=class extends y{render(){return E`<slot></slot>`}connectedCallback(){this.parentElement.tagName.endsWith("INTERACTION")&&this.setAttribute("slot","prompt")}};customElements.define("qti-prompt",nn);var Ih=Symbol.for(""),Rh=e=>{if((e==null?void 0:e.r)===Ih)return e==null?void 0:e._$litStatic$};var Fc=new Map,$c=e=>(t,...r)=>{let i=r.length,s,n,o=[],u=[],c,d=0,m=!1;for(;d<i;){for(c=t[d];d<i&&(n=r[d],(s=Rh(n))!==void 0);)c+=s+t[++d],m=!0;d!==i&&u.push(n),o.push(c),d++}if(d===i&&o.push(t[i]),m){let g=o.join("$$lit$$");(t=Fc.get(g))===void 0&&(o.raw=o,Fc.set(g,t=o)),r=u}return e(t,...r)},Vc=$c(E),mw=$c(Pe);var Lh={SPACE:32},ot=class extends y{constructor(){super(...arguments);this.tabindex=0;this.disabled=!1;this.readonly=!1;this.checked=!1}handleDisabledChange(r,i){i?(this.tabindex=void 0,this.blur()):this.tabIndex=0}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("qti-register-choice",{bubbles:!0,cancelable:!1,composed:!0}))}disconnectedCallback(){this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent("qti-loose-choice",{bubbles:!0,cancelable:!1,composed:!0}))}reset(){this.checked=!1,this.disabled=!1}_onKeyUp(r){if(!r.altKey)switch(r.keyCode){case Lh.SPACE:r.preventDefault(),this._toggleChecked();break;default:}}_onClick(){this._toggleChecked()}_toggleChecked(){this.disabled||this.readonly||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("qti-choice-element-selected",{bubbles:!0,cancelable:!1,composed:!0,detail:{identifier:this.identifier,checked:this.checked}})))}validateAllProps(){return!!this.getAttribute("identifier")}render(){return this.validateAllProps()||console.warn(`Invalid props for ${this.outerHTML}`,"missing identifier"),Vc` <slot></slot> `}};p([x({type:String})],ot.prototype,"identifier",2),p([x({type:Number,reflect:!0})],ot.prototype,"tabindex",2),p([x({reflect:!0,type:Boolean,attribute:"aria-disabled",converter:{toAttribute:e=>e}})],ot.prototype,"disabled",2),p([x({reflect:!0,type:Boolean,attribute:"aria-readonly",converter:{toAttribute:e=>e}})],ot.prototype,"readonly",2),p([x({reflect:!0,type:Boolean,attribute:"aria-checked",converter:{toAttribute:e=>e}})],ot.prototype,"checked",2),p([Q("disabled",{waitUntilFirstUpdate:!0})],ot.prototype,"handleDisabledChange",1);var qe=class extends y{render(){return E`<slot></slot>`}defaultValues(t){let r=Array.from(this.querySelectorAll("qti-default-value > qti-value"));if(r.length===0)return null;let i=r.map(s=>s.innerHTML);return i.length>1||t.cardinality==="multiple"||t.cardinality==="ordered"?i:i[0]}};customElements.define("qti-variabledeclaration",qe);var He=class extends qe{connectedCallback(){super.connectedCallback();let r={baseType:this.baseType,identifier:this.identifier,correctResponse:this.correctResponse,cardinality:this.cardinality||"single",mapping:this.mapping,value:null,type:"response",candidateResponse:null};r.value=this.defaultValues(r),this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:r}}))}get correctResponse(){let r,i=this.querySelector("qti-correct-response");if(i){let s=i.querySelectorAll("qti-value");if(this.cardinality==="single"&&s.length>0)r=s[0].textContent,s[0].remove();else if(this.cardinality!=="single"){r=[];for(let n=0;n<s.length;n++)r.push(s[n].textContent),s[n].remove()}}return r}get mapping(){return this.querySelector("qti-mapping")}};p([x({type:String,attribute:"base-type"})],He.prototype,"baseType",2),p([x({type:String})],He.prototype,"identifier",2),p([x({type:String})],He.prototype,"cardinality",2);customElements.define("qti-response-declaration",He);var Ue=class extends qe{get interpolationTable(){let r=this.querySelector("qti-interpolation-table");if(r){let i=new Map;for(let s of r.querySelectorAll("qti-interpolation-table-entry")){!s.getAttribute("source-value")&&s.getAttribute("target-value")&&console.error("source-value or target-value is missing in qti-interpolation-table-entry");let n=parseInt(s.getAttribute("source-value")),o=parseInt(s.getAttribute("target-value"));(isNaN(n)||isNaN(o))&&console.error("source-value or target-value is not a number in qti-interpolation-table-entry"),i.set(n,o)}}return null}connectedCallback(){super.connectedCallback();let r={identifier:this.identifier,cardinality:this.cardinality,baseType:this.baseType,type:"outcome",value:null};r.value=this.defaultValues(r),this.dispatchEvent(new CustomEvent("qti-register-variable",{bubbles:!0,composed:!0,detail:{variable:r}}))}};p([x({type:String,attribute:"base-type"})],Ue.prototype,"baseType",2),p([x({type:String})],Ue.prototype,"identifier",2),p([x({type:String})],Ue.prototype,"cardinality",2);customElements.define("qti-outcome-declaration",Ue);var vi=class extends y{};vi=p([R("qti-companion-materials-info")],vi);var kt=class extends y{handleclassNamesChange(r,i){this.classNames.split(" ").forEach(n=>{switch(n){case"qti-rubric-discretionary-placement":this.setAttribute("slot","qti-rubric-block");break;case"qti-rubric-inline":this.setAttribute("slot","");break;default:break}})}render(){return E`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-rubric-block")}};kt.styles=k`
9
9
  :host {
10
10
  display: block;
11
11
  }
12
- `,m([v({type:String})],Ot.prototype,"id",2),m([v({type:String})],Ot.prototype,"use",2),m([v({type:String})],Ot.prototype,"view",2),m([v({type:String,attribute:"class"})],Ot.prototype,"classNames",2),m([Q("classNames",{waitUntilFirstUpdate:!0})],Ot.prototype,"handleclassNamesChange",1),Ot=m([D("qti-rubric-block")],Ot);var vi=class extends y{render(){return E`<slot></slot>`}};vi=m([D("qti-content-body")],vi);var Rh=()=>new Intl.NumberFormat().format(.1).replace(/\d/g,""),uo=e=>{if(typeof e=="string")return e;let t=Rh();return t==="."?e.toLocaleString():e.toString().replace(".","").replace(t,".")};function co(e){return e==null}var At=class extends y{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-register-feedback",{bubbles:!0,composed:!0,detail:this}))}checkShowFeedback(r){let i=this.closest("qti-assessment-item").getOutcome(r);if(this.outcomeIdentifier!==r||!i)return;let s=!1;Array.isArray(i.value)?s=i.value.includes(this.identifier):s=!co(this.identifier)&&!co(i==null?void 0:i.value)&&this.identifier===i.value||!1,this.showFeedback(s)}showFeedback(r){this.showStatus=r&&this.showHide==="show"||!r&&this.showHide==="hide"?"on":"off"}};m([v({type:String,attribute:"show-hide"})],At.prototype,"showHide",2),m([v({type:String,attribute:"outcome-identifier"})],At.prototype,"outcomeIdentifier",2),m([v({type:String})],At.prototype,"identifier",2),m([v({type:String,attribute:!1})],At.prototype,"showStatus",2);var _i=class extends At{constructor(){super(...arguments);this.render=()=>E` <slot part="feedback" class="${this.showStatus}"></slot> `}};_i.styles=k`
12
+ `,p([x({type:String})],kt.prototype,"id",2),p([x({type:String})],kt.prototype,"use",2),p([x({type:String})],kt.prototype,"view",2),p([x({type:String,attribute:"class"})],kt.prototype,"classNames",2),p([Q("classNames",{waitUntilFirstUpdate:!0})],kt.prototype,"handleclassNamesChange",1),kt=p([R("qti-rubric-block")],kt);var _i=class extends y{render(){return E`<slot></slot>`}};_i=p([R("qti-content-body")],_i);var Dh=()=>new Intl.NumberFormat().format(.1).replace(/\d/g,""),co=e=>{if(typeof e=="string")return e;let t=Dh();return t==="."?e.toLocaleString():e.toString().replace(".","").replace(t,".")};function lo(e){return e==null}var At=class extends y{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-register-feedback",{bubbles:!0,composed:!0,detail:this}))}checkShowFeedback(r){let i=this.closest("qti-assessment-item").getOutcome(r);if(this.outcomeIdentifier!==r||!i)return;let s=!1;Array.isArray(i.value)?s=i.value.includes(this.identifier):s=!lo(this.identifier)&&!lo(i==null?void 0:i.value)&&this.identifier===i.value||!1,this.showFeedback(s)}showFeedback(r){this.showStatus=r&&this.showHide==="show"||!r&&this.showHide==="hide"?"on":"off"}};p([x({type:String,attribute:"show-hide"})],At.prototype,"showHide",2),p([x({type:String,attribute:"outcome-identifier"})],At.prototype,"outcomeIdentifier",2),p([x({type:String})],At.prototype,"identifier",2),p([x({type:String,attribute:!1})],At.prototype,"showStatus",2);var Ai=class extends At{constructor(){super(...arguments);this.render=()=>E` <slot part="feedback" class="${this.showStatus}"></slot> `}};Ai.styles=k`
13
13
  .on {
14
14
  display: inline-block;
15
15
  }
16
16
  .off {
17
17
  display: none;
18
18
  }
19
- `;customElements.define("qti-feedback-inline",_i);var Ai=class extends At{constructor(){super(...arguments);this.render=()=>E` <slot part="feedback" class="${this.showStatus}"></slot> `}};Ai.styles=k`
19
+ `;customElements.define("qti-feedback-inline",Ai);var yi=class extends At{constructor(){super(...arguments);this.render=()=>E` <slot part="feedback" class="${this.showStatus}"></slot> `}};yi.styles=k`
20
20
  .on {
21
21
  display: inline-block;
22
22
  }
23
23
  .off {
24
24
  display: none;
25
25
  }
26
- `;customElements.define("qti-modal-feedback",Ai);var yi=class extends At{render(){return E` <slot part="feedback" class="feedback ${this.showStatus}"></slot> `}firstUpdated(t){this.checkShowFeedback(this.outcomeIdentifier)}};yi.styles=k`
26
+ `;customElements.define("qti-modal-feedback",yi);var Ci=class extends At{render(){return E` <slot part="feedback" class="feedback ${this.showStatus}"></slot> `}firstUpdated(t){this.checkShowFeedback(this.outcomeIdentifier)}};Ci.styles=k`
27
27
  :host {
28
28
  display: block;
29
29
  }
@@ -33,7 +33,7 @@ Make sure to test your application with a production build as repeat registratio
33
33
  .off {
34
34
  display: none;
35
35
  }
36
- `;customElements.define("qti-feedback-block",yi);var yt=e=>e!=null?e:$;var W=class extends y{constructor(){super(...arguments);this.responseIdentifier="";this.disabled=!1;this.readonly=!1}connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,cancelable:!1,composed:!0}))}saveResponse(r){this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,cancelable:!1,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:r}}))}};m([v({attribute:"response-identifier"})],W.prototype,"responseIdentifier",2),m([v({reflect:!0,type:Boolean})],W.prototype,"disabled",2),m([v({reflect:!0,type:Boolean})],W.prototype,"readonly",2);function $c(e,t){let r,i=N({},t);return(s,n)=>{let{connectedCallback:o,disconnectedCallback:u}=s;s.connectedCallback=function(){var p;o.call(this);let c=g=>{let _=Array.from(this.querySelectorAll(e));for(let x of g){let S=Array.from(x.addedNodes).map(H=>H),R=Array.from(x.addedNodes).map(H=>H);x.type==="childList"&&S.find(H=>_.includes(H))&&this[n](S,R)}};r=new MutationObserver(c),r.observe(this,{childList:!0,subtree:!0});let d=(p=this.querySelectorAll(e))!=null?p:[];this[n](Array.from(d),[])},s.disconnectedCallback=function(){u.call(this),r.disconnect()}}}var{D:Lh}=kc;var Yc=e=>e.strings===void 0,Vc=()=>document.createComment(""),br=(e,t,r)=>{var n;let i=e._$AA.parentNode,s=t===void 0?e._$AB:t._$AA;if(r===void 0){let o=i.insertBefore(Vc(),s),u=i.insertBefore(Vc(),s);r=new Lh(o,u,e,e.options)}else{let o=r._$AB.nextSibling,u=r._$AM,c=u!==e;if(c){let d;(n=r._$AQ)==null||n.call(r,e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==u._$AU&&r._$AP(d)}if(o!==s||c){let d=r._$AA;for(;d!==o;){let p=d.nextSibling;i.insertBefore(d,s),d=p}}}return r},he=(e,t,r=e)=>(e._$AI(t,r),e),Dh={},Gc=(e,t=Dh)=>e._$AH=t,Xc=e=>e._$AH,an=e=>{var i;(i=e._$AP)==null||i.call(e,!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let s=t.nextSibling;t.remove(),t=s}};var Zt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Mt=e=>(...t)=>({_$litDirective$:e,values:t}),kt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var Ci=(e,t)=>{var i;let r=e._$AN;if(r===void 0)return!1;for(let s of r)(i=s._$AO)==null||i.call(s,t,!1),Ci(s,t);return!0},on=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while((r==null?void 0:r.size)===0)},Wc=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),Mh(t)}};function Oh(e){this._$AN!==void 0?(on(this),this._$AM=e,Wc(this)):this._$AM=e}function kh(e,t=!1,r=0){let i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(i))for(let n=r;n<i.length;n++)Ci(i[n],!1),on(i[n]);else i!=null&&(Ci(i,!1),on(i));else Ci(this,e)}var Mh=e=>{var t,r;e.type==Zt.CHILD&&((t=e._$AP)!=null||(e._$AP=kh),(r=e._$AQ)!=null||(e._$AQ=Oh))},Er=class extends kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,i){super._$AT(t,r,i),Wc(this),this.isConnected=t._$AU}_$AO(t,r=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(s=this.disconnected)==null||s.call(this)),r&&(Ci(this,t),on(this))}setValue(t){if(Yc(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var wr=()=>new ho,ho=class{},lo=new WeakMap,un=Mt(class extends Er{render(e){return $}update(e,[t]){var i;let r=t!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)==null?void 0:i.host,this.ot(this.lt=e.element)),$}ot(e){var t;if(typeof this.G=="function"){let r=(t=this.ct)!=null?t:globalThis,i=lo.get(r);i===void 0&&(i=new WeakMap,lo.set(r,i)),i.get(this.G)!==void 0&&this.G.call(this.ct,void 0),i.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,r;return typeof this.G=="function"?(t=lo.get((e=this.ct)!=null?e:globalThis))==null?void 0:t.get(this.G):(r=this.G)==null?void 0:r.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var Ct=class extends W{constructor(){super(...arguments);this._value="";this._size=5;this.inputRef=wr()}handleclassNamesChange(r,i){i.split(" ").forEach(n=>{if(n.startsWith("qti-input-width")){let o=n.replace("qti-input-width-","");this._size=parseInt(o)}})}set response(r){this._value=r!==void 0?r:""}validate(){return this._value!==""}static get styles(){return[k`
36
+ `;customElements.define("qti-feedback-block",Ci);var yt=e=>e!=null?e:$;var K=class extends y{constructor(){super(...arguments);this.responseIdentifier="";this.disabled=!1;this.readonly=!1}set correctResponse(r){console.warn("correctResponse is not implemented")}connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,cancelable:!1,composed:!0}))}saveResponse(r){this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,cancelable:!1,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:r}}))}};p([x({attribute:"response-identifier"})],K.prototype,"responseIdentifier",2),p([x({reflect:!0,type:Boolean})],K.prototype,"disabled",2),p([x({reflect:!0,type:Boolean})],K.prototype,"readonly",2);function Yc(e,t){let r,i=S({},t);return(s,n)=>{let{connectedCallback:o,disconnectedCallback:u}=s;s.connectedCallback=function(){var m;o.call(this);let c=g=>{let _=Array.from(this.querySelectorAll(e));for(let v of g){let N=Array.from(v.addedNodes).map(H=>H),L=Array.from(v.addedNodes).map(H=>H);v.type==="childList"&&N.find(H=>_.includes(H))&&this[n](N,L)}};r=new MutationObserver(c),r.observe(this,{childList:!0,subtree:!0});let d=(m=this.querySelectorAll(e))!=null?m:[];this[n](Array.from(d),[])},s.disconnectedCallback=function(){u.call(this),r.disconnect()}}}var{D:Oh}=Mc;var Xc=e=>e.strings===void 0,Gc=()=>document.createComment(""),Er=(e,t,r)=>{var n;let i=e._$AA.parentNode,s=t===void 0?e._$AB:t._$AA;if(r===void 0){let o=i.insertBefore(Gc(),s),u=i.insertBefore(Gc(),s);r=new Oh(o,u,e,e.options)}else{let o=r._$AB.nextSibling,u=r._$AM,c=u!==e;if(c){let d;(n=r._$AQ)==null||n.call(r,e),r._$AM=e,r._$AP!==void 0&&(d=e._$AU)!==u._$AU&&r._$AP(d)}if(o!==s||c){let d=r._$AA;for(;d!==o;){let m=d.nextSibling;i.insertBefore(d,s),d=m}}}return r},pe=(e,t,r=e)=>(e._$AI(t,r),e),kh={},Wc=(e,t=kh)=>e._$AH=t,jc=e=>e._$AH,an=e=>{var i;(i=e._$AP)==null||i.call(e,!1,!0);let t=e._$AA,r=e._$AB.nextSibling;for(;t!==r;){let s=t.nextSibling;t.remove(),t=s}};var Zt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Pt=e=>(...t)=>({_$litDirective$:e,values:t}),Mt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var Ni=(e,t)=>{var i;let r=e._$AN;if(r===void 0)return!1;for(let s of r)(i=s._$AO)==null||i.call(s,t,!1),Ni(s,t);return!0},on=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while((r==null?void 0:r.size)===0)},Kc=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),qh(t)}};function Mh(e){this._$AN!==void 0?(on(this),this._$AM=e,Kc(this)):this._$AM=e}function Ph(e,t=!1,r=0){let i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(i))for(let n=r;n<i.length;n++)Ni(i[n],!1),on(i[n]);else i!=null&&(Ni(i,!1),on(i));else Ni(this,e)}var qh=e=>{var t,r;e.type==Zt.CHILD&&((t=e._$AP)!=null||(e._$AP=Ph),(r=e._$AQ)!=null||(e._$AQ=Mh))},wr=class extends Mt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,i){super._$AT(t,r,i),Kc(this),this.isConnected=t._$AU}_$AO(t,r=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(s=this.disconnected)==null||s.call(this)),r&&(Ni(this,t),on(this))}setValue(t){if(Xc(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Tr=()=>new fo,fo=class{},ho=new WeakMap,un=Pt(class extends wr{render(e){return $}update(e,[t]){var i;let r=t!==this.G;return r&&this.G!==void 0&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=(i=e.options)==null?void 0:i.host,this.ot(this.lt=e.element)),$}ot(e){var t;if(typeof this.G=="function"){let r=(t=this.ct)!=null?t:globalThis,i=ho.get(r);i===void 0&&(i=new WeakMap,ho.set(r,i)),i.get(this.G)!==void 0&&this.G.call(this.ct,void 0),i.set(this.G,e),e!==void 0&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){var e,t,r;return typeof this.G=="function"?(t=ho.get((e=this.ct)!=null?e:globalThis))==null?void 0:t.get(this.G):(r=this.G)==null?void 0:r.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var Ct=class extends K{constructor(){super(...arguments);this._value="";this._size=5;this.inputRef=Tr()}handleclassNamesChange(r,i){i.split(" ").forEach(n=>{if(n.startsWith("qti-input-width")){let o=n.replace("qti-input-width-","");this._size=parseInt(o)}})}set response(r){this._value=r!==void 0?r:""}validate(){return this._value!==""}static get styles(){return[k`
37
37
  :host {
38
38
  display: inline-flex;
39
39
  }
@@ -53,7 +53,7 @@ Make sure to test your application with a production build as repeat registratio
53
53
  ?disabled="${this.disabled}"
54
54
  ?readonly="${this.readonly}"
55
55
  />
56
- `}textChanged(r){if(this.disabled||this.readonly)return;let i=r.target;this.setEmptyAttribute(i.value),this._value!==i.value&&(this._value=i.value,this.saveResponse(i.value))}reset(){this._value=""}setEmptyAttribute(r){this.setAttribute("empty",r===""?"true":"false")}};m([v({type:Number,attribute:"expected-length"})],Ct.prototype,"expectedLength",2),m([v({type:String,attribute:"pattern-mask"})],Ct.prototype,"patternMask",2),m([v({type:String,attribute:"placeholder-text"})],Ct.prototype,"placeholderText",2),m([M()],Ct.prototype,"_value",2),m([M()],Ct.prototype,"_size",2),m([v({type:String,attribute:"class"})],Ct.prototype,"classNames",2),m([Q("classNames")],Ct.prototype,"handleclassNamesChange",1),Ct=m([D("qti-text-entry-interaction")],Ct);var Pt=class extends W{constructor(){super(...arguments);this.textareaRef=wr();this._value=""}handleclassNamesChange(r,i){this.classNames.split(" ").forEach(n=>{if(n.startsWith("qti-height-lines")){let o=n.replace("qti-height-lines-","");this.textareaRef&&(this.textareaRef.value.rows=parseInt(o))}})}set response(r){this._value=r!==void 0?r:""}validate(){return this._value!==""}static get styles(){return[k`
56
+ `}textChanged(r){if(this.disabled||this.readonly)return;let i=r.target;this.setEmptyAttribute(i.value),this._value!==i.value&&(this._value=i.value,this.saveResponse(i.value))}reset(){this._value=""}setEmptyAttribute(r){this.setAttribute("empty",r===""?"true":"false")}};p([x({type:Number,attribute:"expected-length"})],Ct.prototype,"expectedLength",2),p([x({type:String,attribute:"pattern-mask"})],Ct.prototype,"patternMask",2),p([x({type:String,attribute:"placeholder-text"})],Ct.prototype,"placeholderText",2),p([M()],Ct.prototype,"_value",2),p([M()],Ct.prototype,"_size",2),p([x({type:String,attribute:"class"})],Ct.prototype,"classNames",2),p([Q("classNames")],Ct.prototype,"handleclassNamesChange",1),Ct=p([R("qti-text-entry-interaction")],Ct);var qt=class extends K{constructor(){super(...arguments);this.textareaRef=Tr();this._value=""}handleclassNamesChange(r,i){this.classNames.split(" ").forEach(n=>{if(n.startsWith("qti-height-lines")){let o=n.replace("qti-height-lines-","");this.textareaRef&&(this.textareaRef.value.rows=parseInt(o))}})}set response(r){this._value=r!==void 0?r:""}validate(){return this._value!==""}static get styles(){return[k`
57
57
  /* PK: display host as block, else design will be collapsed */
58
58
  :host {
59
59
  display: block;
@@ -78,24 +78,25 @@ Make sure to test your application with a production build as repeat registratio
78
78
  ?disabled="${this.disabled}"
79
79
  ?readonly="${this.readonly}"
80
80
  .value=${this._value}
81
- ></textarea>`}textChanged(r){if(this.disabled||this.readonly)return;let i=r.target;this.setEmptyAttribute(i.value),this._value!==i.value&&(this._value=i.value,this.saveResponse(i.value))}reset(){this._value=""}setEmptyAttribute(r){this.setAttribute("empty",r===""?"true":"false")}};m([v({type:Number,attribute:"expected-length"})],Pt.prototype,"expectedLength",2),m([v({type:String,attribute:"pattern-mask"})],Pt.prototype,"patternMask",2),m([v({type:String,attribute:"placeholder-text"})],Pt.prototype,"placeholderText",2),m([M()],Pt.prototype,"_value",2),m([v({type:String,attribute:"class"})],Pt.prototype,"classNames",2),m([Q("classNames",{waitUntilFirstUpdate:!0})],Pt.prototype,"handleclassNamesChange",1),Pt=m([D("qti-extended-text-interaction")],Pt);var ut=class extends W{constructor(){super();this._choiceElements=[];this.minChoices=0;this.maxChoices=1;this._handleDisabledChange=(r,i)=>this._choiceElements.forEach(s=>s.disabled=i);this._handleReadonlyChange=(r,i)=>this._choiceElements.forEach(s=>s.readonly=i);this._handleMaxChoicesChange=()=>this._determineInputType();this.addEventListener("qti-register-choice",this._registerChoiceElement),this.addEventListener("qti-loose-choice",this._looseChoiceElement)}validate(){return this._choiceElements.reduce((i,s)=>i+(s.checked?1:0),0)>=this.minChoices}set response(r){let i=Array.isArray(r)?r:[r];this._choiceElements.forEach(s=>{s.checked=!!i.find(n=>n===s.identifier)})}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-choice-element-selected",this._choiceElementSelectedHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-choice-element-selected",this._choiceElementSelectedHandler),this.removeEventListener("qti-register-choice",this._registerChoiceElement)}_registerChoiceElement(r){r.stopPropagation();let i=r.target;this._choiceElements.push(i),this._setInputType(i)}_looseChoiceElement(r){r.stopPropagation();let i=r.target;this._choiceElements.push(i),this._choiceElements=this._choiceElements.filter(s=>s!==i)}_determineInputType(){this._choiceElements.forEach(r=>{this._setInputType(r)})}_setInputType(r){this.maxChoices===1?r.setAttribute("role","radio"):r.setAttribute("role","checkbox")}_choiceElementSelectedHandler(r){this.maxChoices===1&&this._choiceElements.filter(i=>i.identifier!==r.detail.identifier).forEach(i=>{i.checked=!1}),this._choiceElementSelected()}_choiceElementSelected(){let r=this._choiceElements.filter(s=>s.checked).map(s=>s.identifier);this.maxChoices>1&&(this.maxChoices===r.length?this._choiceElements.forEach(s=>s.disabled=!s.checked):this._choiceElements.forEach(s=>s.disabled=!1));let i;this.maxChoices===1?i=r.length>0?r[0]:void 0:i=r,this.saveResponse(i)}};m([v({type:Number,attribute:"min-choices"})],ut.prototype,"minChoices",2),m([v({type:Number,attribute:"max-choices"})],ut.prototype,"maxChoices",2),m([Q("disabled",{waitUntilFirstUpdate:!0})],ut.prototype,"_handleDisabledChange",2),m([Q("readonly",{waitUntilFirstUpdate:!0})],ut.prototype,"_handleReadonlyChange",2),m([Q("maxChoices",{waitUntilFirstUpdate:!0})],ut.prototype,"_handleMaxChoicesChange",2);var cn=class extends ut{constructor(){super(...arguments);this.render=()=>E`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.setAttribute("qti-hottext-interaction","")}};customElements.define("qti-hottext-interaction",cn);var He=class extends W{constructor(){super(...arguments);this.options=[];this.dataPrompt="select"}static get styles(){return[k`
81
+ ></textarea>`}textChanged(r){if(this.disabled||this.readonly)return;let i=r.target;this.setEmptyAttribute(i.value),this._value!==i.value&&(this._value=i.value,this.saveResponse(i.value))}reset(){this._value=""}setEmptyAttribute(r){this.setAttribute("empty",r===""?"true":"false")}};p([x({type:Number,attribute:"expected-length"})],qt.prototype,"expectedLength",2),p([x({type:String,attribute:"pattern-mask"})],qt.prototype,"patternMask",2),p([x({type:String,attribute:"placeholder-text"})],qt.prototype,"placeholderText",2),p([M()],qt.prototype,"_value",2),p([x({type:String,attribute:"class"})],qt.prototype,"classNames",2),p([Q("classNames",{waitUntilFirstUpdate:!0})],qt.prototype,"handleclassNamesChange",1),qt=p([R("qti-extended-text-interaction")],qt);var ut=class extends K{constructor(){super();this._choiceElements=[];this.minChoices=0;this.maxChoices=1;this._handleDisabledChange=(r,i)=>this._choiceElements.forEach(s=>s.disabled=i);this._handleReadonlyChange=(r,i)=>this._choiceElements.forEach(s=>s.readonly=i);this._handleMaxChoicesChange=()=>this._determineInputType();this.addEventListener("qti-register-choice",this._registerChoiceElement),this.addEventListener("qti-loose-choice",this._looseChoiceElement)}validate(){return this._choiceElements.reduce((i,s)=>i+(s.checked?1:0),0)>=this.minChoices}set response(r){let i=Array.isArray(r)?r:[r];this._choiceElements.forEach(s=>{s.checked=!!i.find(n=>n===s.identifier)})}set correctResponse(r){let i=Array.isArray(r)?r:[r];if(r==""){this._choiceElements.forEach(s=>{s.removeAttribute("data-correct-response")});return}this._choiceElements.forEach(s=>{s.setAttribute("data-correct-response",i.find(n=>n===s.identifier)?"true":"false")})}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-choice-element-selected",this._choiceElementSelectedHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-choice-element-selected",this._choiceElementSelectedHandler),this.removeEventListener("qti-register-choice",this._registerChoiceElement)}_registerChoiceElement(r){r.stopPropagation();let i=r.target;this._choiceElements.push(i),this._setInputType(i)}_looseChoiceElement(r){r.stopPropagation();let i=r.target;this._choiceElements.push(i),this._choiceElements=this._choiceElements.filter(s=>s!==i)}_determineInputType(){this._choiceElements.forEach(r=>{this._setInputType(r)})}_setInputType(r){this.maxChoices===1?r.setAttribute("role","radio"):r.setAttribute("role","checkbox")}_choiceElementSelectedHandler(r){this.maxChoices===1&&this._choiceElements.filter(i=>i.identifier!==r.detail.identifier).forEach(i=>{i.checked=!1}),this._choiceElementSelected()}_choiceElementSelected(){let r=this._choiceElements.filter(s=>s.checked).map(s=>s.identifier);this.maxChoices>1&&(this.maxChoices===r.length?this._choiceElements.forEach(s=>s.disabled=!s.checked):this._choiceElements.forEach(s=>s.disabled=!1));let i;this.maxChoices===1?i=r.length>0?r[0]:void 0:i=r,this.saveResponse(i)}};p([x({type:Number,attribute:"min-choices"})],ut.prototype,"minChoices",2),p([x({type:Number,attribute:"max-choices"})],ut.prototype,"maxChoices",2),p([Q("disabled",{waitUntilFirstUpdate:!0})],ut.prototype,"_handleDisabledChange",2),p([Q("readonly",{waitUntilFirstUpdate:!0})],ut.prototype,"_handleReadonlyChange",2),p([Q("maxChoices",{waitUntilFirstUpdate:!0})],ut.prototype,"_handleMaxChoicesChange",2);var cn=class extends ut{constructor(){super(...arguments);this.render=()=>E`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.setAttribute("qti-hottext-interaction","")}};customElements.define("qti-hottext-interaction",cn);var Si=class extends Mt{constructor(t){if(super(t),this.et=$,t.type!==Zt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this.vt=void 0,this.et=t;if(t===Et)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let r=[t];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Si.directiveName="unsafeHTML",Si.resultType=1;var Be=Pt(Si);var me=class extends K{constructor(){super(...arguments);this.options=[];this.correctOption="";this.dataPrompt="select"}static get styles(){return[k`
82
82
  :host {
83
83
  display: inline-block;
84
84
  }
85
- `]}render(){return E` <select
86
- part="select"
87
- @change="${this.choiceSelected}"
88
- ?disabled="${this.disabled}"
89
- ?readonly="${this.readonly}"
90
- >
91
- ${this.options.map(r=>E` <option value="${r.value}" ?selected="${r.selected}">${r.textContent}</option> `)}
92
- </select>`}firstUpdated(r){super.firstUpdated(r),this.addEventListener(Qa.ON_DROPDOWN_SELECTED,this.choiceSelected);let i=Array.from(this.querySelectorAll("qti-inline-choice"));this.options=[{textContent:this.dataPrompt,value:"",selected:!1},...i.map(s=>({textContent:s.innerHTML,value:s.getAttribute("identifier"),selected:!1}))]}validate(){let r=this.options.find(i=>i.selected);return r?r.value!=="":!1}reset(){this.options=this.options.map((r,i)=>U(N({},r),{selected:i===0}))}set response(r){this.options=this.options.map(i=>(r===i.value&&(i.selected=!0),i))}choiceSelected(r){let i=r.target.value;this.options=this.options.map(s=>U(N({},s),{selected:s.value===i})),this.saveResponse(i)}};He.inputWidthClass=["","qti-input-width-2","qti-input-width-1","qti-input-width-3","qti-input-width-4","qti-input-width-6","qti-input-width-10","qti-input-width-15","qti-input-width-20","qti-input-width-72"],m([M()],He.prototype,"options",2),m([v({attribute:"data-prompt",type:String})],He.prototype,"dataPrompt",2);customElements.define("qti-inline-choice-interaction",He);var jc=k`
85
+ `]}render(){return E`
86
+ <select part="select" @change="${this.choiceSelected}" ?disabled="${this.disabled}" ?readonly="${this.readonly}">
87
+ ${this.options.map(r=>E`
88
+ <option value="${r.value}" ?selected="${r.selected}">${r.textContent}</option>
89
+ `)}
90
+ </select>
91
+
92
+ ${Be(this.correctOption)}
93
+ `}firstUpdated(r){super.firstUpdated(r),this.addEventListener(Za.ON_DROPDOWN_SELECTED,this.choiceSelected);let i=Array.from(this.querySelectorAll("qti-inline-choice"));this.options=[{textContent:this.dataPrompt,value:"",selected:!1},...i.map(s=>({textContent:s.innerHTML,value:s.getAttribute("identifier"),selected:!1}))]}validate(){let r=this.options.find(i=>i.selected);return r?r.value!=="":!1}reset(){this.options=this.options.map((r,i)=>U(S({},r),{selected:i===0}))}set response(r){this.options=this.options.map(i=>(r===i.value&&(i.selected=!0),i))}set correctResponse(r){if(r===""){this.correctOption="";return}console.log("correctResponse",r),this.correctOption=this.options.find(i=>r===i.value).textContent}choiceSelected(r){let i=r.target.value;this.options=this.options.map(s=>U(S({},s),{selected:s.value===i})),this.saveResponse(i)}};me.inputWidthClass=["","qti-input-width-2","qti-input-width-1","qti-input-width-3","qti-input-width-4","qti-input-width-6","qti-input-width-10","qti-input-width-15","qti-input-width-20","qti-input-width-72"],p([M()],me.prototype,"options",2),p([M()],me.prototype,"correctOption",2),p([x({attribute:"data-prompt",type:String})],me.prototype,"dataPrompt",2);customElements.define("qti-inline-choice-interaction",me);var zc=k`
93
94
  :host {
94
95
  display: flex;
95
96
  flex-direction: column;
96
97
  // align-items: flex-start;
97
98
  }
98
- `;var Ue=class extends ut{render(){return E` <slot name="prompt"></slot><slot part="slot"></slot>`}};Ue.styles=jc,m([v({type:String})],Ue.prototype,"orientation",2),Ue=m([D("qti-choice-interaction")],Ue);var Kc=`<qti-response-processing>
99
+ `;var Fe=class extends ut{render(){return E` <slot name="prompt"></slot><slot part="slot"></slot>`}};Fe.styles=zc,p([x({type:String})],Fe.prototype,"orientation",2),Fe=p([R("qti-choice-interaction")],Fe);var Qc=`<qti-response-processing>
99
100
  <qti-response-condition>
100
101
  <qti-response-if>
101
102
  <qti-match>
@@ -112,7 +113,7 @@ Make sure to test your application with a production build as repeat registratio
112
113
  </qti-set-outcome-value>
113
114
  </qti-response-else>
114
115
  </qti-response-condition>
115
- </qti-response-processing>`,zc=`<qti-response-processing>
116
+ </qti-response-processing>`,Jc=`<qti-response-processing>
116
117
  <qti-response-condition>
117
118
  <qti-response-if>
118
119
  <qti-is-null>
@@ -128,7 +129,7 @@ Make sure to test your application with a production build as repeat registratio
128
129
  </qti-set-outcome-value>
129
130
  </qti-response-else>
130
131
  </qti-response-condition>
131
- </qti-response-processing>`,Qc=`<qti-response-processing>
132
+ </qti-response-processing>`,Zc=`<qti-response-processing>
132
133
  <qti-response-condition>
133
134
  <qti-response-if>
134
135
  <qti-is-null>
@@ -144,7 +145,7 @@ Make sure to test your application with a production build as repeat registratio
144
145
  </qti-set-outcome-value>
145
146
  </qti-response-else>
146
147
  </qti-response-condition>
147
- </qti-response-processing>`;var Be=class extends y{render(){return E`<slot></slot>`}static get observedAttributes(){return["identifier"]}process(){if(this.getAttribute("template")){let r=this.getAttribute("template").split("/"),i=r[r.length-1].replace(".xml","");switch(this.innerHTML="",i){case"map_response":{this.appendChild(this.fragmentFromString(zc));break}case"map_response_point":{this.appendChild(this.fragmentFromString(Qc));break}case"match_correct":this.appendChild(this.fragmentFromString(Kc));break}}let t=[...this.children];for(let r of t)r.process()}fragmentFromString(t){return document.createRange().createContextualFragment(t)}};Be=m([D("qti-response-processing")],Be);var Gt=class extends y{render(){return E`<slot></slot>`}process(){throw new Error("Not implemented")}};Gt=m([D("qti-rule")],Gt);var ln=class extends Gt{render(){return E`<slot></slot>`}process(){let t=[...this.children];for(let r=0;r<t.length;r++){let i=t[r];if(i.calculate()){i.process();return}}}};customElements.define("qti-response-condition",ln);var dn=class extends Gt{process(){let t=this.getAttribute("identifier"),r=this.firstElementChild,i=r?r.calculate():null;if(i==null){console.warn("setOutcomeValue: value is null or undefined");return}this.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:t,value:Array.isArray(i)?i.map(s=>uo(s)):uo(i)}}))}};customElements.define("qti-set-outcome-value",dn);var Tr=class extends y{static get properties(){return{debugCalculateResult:{type:Object}}}render(){return E` <slot></slot>`}calculate(){return!0}getSubRules(){return[...this.children]}process(){let t=this.getSubRules();for(let r=0;r<t.length;r++)t[r].process()}};customElements.define("qti-response-else",Tr);var xr=class extends Tr{render(){return E`${super.render()}`}calculate(){return this.firstElementChild.calculate()}getSubRules(){let t=[];for(let r=1;r<this.children.length;r++)t.push(this.children[r]);return t}};customElements.define("qti-response-if",xr);var hn=class extends xr{render(){return E`${super.render()}`}};customElements.define("qti-response-else-if",hn);var q=class extends y{constructor(){super(...arguments);this._error=[];this._debug=!1;this.getVariables=()=>Array.from(this.children).map(r=>{switch(r.tagName.toLowerCase()){case"qti-base-value":return{baseType:r.getAttribute("base-type"),value:r.textContent,cardinality:"single"};case"qti-variable":{let i=r.getAttribute("identifier")||"";return this.assessmentItem.getVariable(i)}case"qti-multiple":{let s=r.calculate();return s.length>0?{identifier:"",baseType:s[0].baseType,value:s.map(n=>n.value),cardinality:"multiple",type:"response"}:null}case"qti-correct":{let i=r.getAttribute("identifier")||"",s=this.assessmentItem.getResponse(i);return{baseType:s.baseType,value:s.correctResponse,cardinality:s.cardinality}}default:{try{return{baseType:"integer",value:r.calculate().toString(),cardinality:"single"}}catch(i){console.warn("default not sufficient")}return null}}}).filter(r=>r!==null)}set error(r){let i=this._error;this._error.push(r),this.requestUpdate("error",i)}render(){return E`${this._debug?E`${this._error.map(r=>E`<div role="alert">${r}</div>`)}`:$}
148
+ </qti-response-processing>`;var $e=class extends y{render(){return E`<slot></slot>`}static get observedAttributes(){return["identifier"]}process(){if(this.getAttribute("template")){let r=this.getAttribute("template").split("/"),i=r[r.length-1].replace(".xml","");switch(this.innerHTML="",i){case"map_response":{this.appendChild(this.fragmentFromString(Jc));break}case"map_response_point":{this.appendChild(this.fragmentFromString(Zc));break}case"match_correct":this.appendChild(this.fragmentFromString(Qc));break}}let t=[...this.children];for(let r of t)r.process()}fragmentFromString(t){return document.createRange().createContextualFragment(t)}};$e=p([R("qti-response-processing")],$e);var Yt=class extends y{render(){return E`<slot></slot>`}process(){throw new Error("Not implemented")}};Yt=p([R("qti-rule")],Yt);var ln=class extends Yt{render(){return E`<slot></slot>`}process(){let t=[...this.children];for(let r=0;r<t.length;r++){let i=t[r];if(i.calculate()){i.process();return}}}};customElements.define("qti-response-condition",ln);var dn=class extends Yt{process(){let t=this.getAttribute("identifier"),r=this.firstElementChild,i=r?r.calculate():null;if(i==null){console.warn("setOutcomeValue: value is null or undefined");return}this.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:t,value:Array.isArray(i)?i.map(s=>co(s)):co(i)}}))}};customElements.define("qti-set-outcome-value",dn);var xr=class extends y{static get properties(){return{debugCalculateResult:{type:Object}}}render(){return E` <slot></slot>`}calculate(){return!0}getSubRules(){return[...this.children]}process(){let t=this.getSubRules();for(let r=0;r<t.length;r++)t[r].process()}};customElements.define("qti-response-else",xr);var vr=class extends xr{render(){return E`${super.render()}`}calculate(){return this.firstElementChild.calculate()}getSubRules(){let t=[];for(let r=1;r<this.children.length;r++)t.push(this.children[r]);return t}};customElements.define("qti-response-if",vr);var hn=class extends vr{render(){return E`${super.render()}`}};customElements.define("qti-response-else-if",hn);var q=class extends y{constructor(){super(...arguments);this._error=[];this._debug=!1;this.getVariables=()=>Array.from(this.children).map(r=>{switch(r.tagName.toLowerCase()){case"qti-base-value":return{baseType:r.getAttribute("base-type"),value:r.textContent,cardinality:"single"};case"qti-variable":{let i=r.getAttribute("identifier")||"";return this.assessmentItem.getVariable(i)}case"qti-multiple":{let s=r.calculate();return s.length>0?{identifier:"",baseType:s[0].baseType,value:s.map(n=>n.value),cardinality:"multiple",type:"response"}:null}case"qti-correct":{let i=r.getAttribute("identifier")||"",s=this.assessmentItem.getResponse(i);return{baseType:s.baseType,value:s.correctResponse,cardinality:s.cardinality}}default:{try{return{baseType:"integer",value:r.calculate().toString(),cardinality:"single"}}catch(i){console.warn("default not sufficient")}return null}}}).filter(r=>r!==null)}set error(r){let i=this._error;this._error.push(r),this.requestUpdate("error",i)}render(){return E`${this._debug?E`${this._error.map(r=>E`<div role="alert">${r}</div>`)}`:$}
148
149
  ${this._debug?E`${JSON.stringify(this._result)}`:$} ${this._debug?E`<slot></slot>`:$}`}calculate(){throw new Error("Not implemented")}get assessmentItem(){return this.closest("qti-assessment-item")}};q.styles=k`
149
150
  :host {
150
151
  display: inline;
@@ -158,15 +159,15 @@ Make sure to test your application with a production build as repeat registratio
158
159
  border-radius: 5px;
159
160
  margin-bottom: 3px;
160
161
  }
161
- `,m([M()],q.prototype,"_result",2),m([M()],q.prototype,"error",1);var wt=class extends q{calculate(){throw new Error("Not implemented")}};var fn=class extends wt{calculate(){return Array.from(this.children).map(r=>{let i=r;if(!i.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=i.calculate();if(typeof s=="string")if(s==="true")s=!0;else if(s==="false")s=!1;else return console.error("unexpected value in qti-and, expected boolean"),null;return s}).every(r=>typeof r=="boolean"&&r)}};customElements.define("qti-and",fn);var Si=class extends q{constructor(){super(...arguments);this.baseType="string"}calculate(){return this.textContent}};m([v({type:String,attribute:"base-type"})],Si.prototype,"baseType",2);customElements.define("qti-base-value",Si);var pn=class extends wt{calculate(){let t=this.getVariables();if(this.children.length===2){let r=t[0],i=t[1];if(r.baseType==="directedPair"&&i.baseType==="directedPair"&&r.cardinality==="multiple"){let s=r.value,n=i.value;return s.filter(c=>n.includes(c)).length>0}else if(r.baseType==="directedPair"&&i.baseType==="directedPair"&&r.cardinality==="single"){let s=r.value;return i.value.includes(s)}else console.error("unsupported baseType or cardinality in qti contains, only baseType: directedPair and cardinality: multiple is supported")}else console.error("unexpected number of children in qti contains");return!1}};customElements.define("qti-contains",pn);var mn=class extends q{get interpretation(){return this.getAttribute("interpretation")||""}calculate(){let t=this.getAttribute("identifier")||"",r=this.closest("qti-assessment-item").getResponse(t);return r.correctResponse,r.cardinality!=="single"?r.correctResponse.length>0?r.correctResponse[0]:"":r.correctResponse}};customElements.define("qti-correct",mn);var St=class{static compareSingleValues(t,r,i){switch(i){case"identifier":case"string":return t===r;case"integer":{let s=parseInt(t,10),n=parseInt(r,10);if(!isNaN(s)&&!isNaN(n))return s===n;console.error(`Cannot convert ${t} and/or ${r} to int.`);break}case"float":{let s=parseFloat(t),n=parseFloat(r);if(!isNaN(s)&&!isNaN(n))return s===n;console.error(`couldn't convert ${t} and/or ${r} to float.`);break}case"pair":case"directedPair":{let s=t.split(" ").sort(),n=r.split(" ").sort();if(s.length===2&&n.length===2)return i==="pair"&&(s.sort(),n.sort()),s.join(" ")===n.join(" ");console.error(`compared two pair but one of the values does not have 2 values: 1: ${t} 2: ${r}`);break}}return!1}};var Ni=class extends q{constructor(){super(...arguments);this.toleranceMode="exact"}calculate(){if(this.children.length===2){let r=this.getVariables(),i=r[0],s=r[1];return this.toleranceMode!=="exact"?(console.error("toleranceMode is not supported yet"),!1):i.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(i.value)||Array.isArray(s.value)?(console.error("unexpected cardinality in qti equal"),!1):St.compareSingleValues(i.value,s.value,i.baseType)}return console.error("unexpected number of children in qti-equal"),null}};m([v({type:String})],Ni.prototype,"toleranceMode",2);customElements.define("qti-equal",Ni);var Ii=class extends q{constructor(){super(...arguments);this.roundingMode="significantFigures"}get figures(){if(!this.getAttribute("figures"))return console.error("figures attribute is missing"),null;let i=parseInt(this.getAttribute("figures")||"0");return isNaN(i)?(console.error("figures attribute is not a number"),null):i<0?(console.error("figures attribute is negative"),null):i<1&&this.roundingMode==="significantFigures"?(console.error("figures cannot be smaller than 1 for RoundingMode significantFigures"),null):i}calculate(){if(this.children.length===2){let r=this.getVariables(),i=r[0],s=r[1];if(this.roundingMode===null)return null;if(i.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(i.value)||Array.isArray(s.value))return console.error("unexpected cardinality in qti equal"),!1;switch(r[0].baseType){case"integer":case"float":{let n=parseFloat(i.value),o=parseFloat(s.value);if(!isNaN(n)&&!isNaN(o))return this.roundingMode==="significantFigures"?n.toPrecision(this.figures)===o.toPrecision(this.figures):Math.round(n*Math.pow(10,this.figures))/Math.pow(10,this.figures)===Math.round(o*Math.pow(10,this.figures))/Math.pow(10,this.figures);console.error(`value cannot be casted to numeric value in equalRounded operator: ${n}, ${o}`);break}default:{console.error("values other than float and int cannot be used in equalRounded operator.");break}}return!1}return console.error("unexpected number of children in qti-equal-rounded"),null}};m([v({type:String})],Ii.prototype,"roundingMode",2);customElements.define("qti-equal-rounded",Ii);var gn=class extends q{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];if(r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float"))return+r.value>+i.value;console.error("unexpected baseType or cardinality in qti gt")}return console.error("unexpected number of children in qt"),null}};customElements.define("qti-gt",gn);var bn=class extends wt{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];return r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float")?+r.value>=+i.value:(console.error("unexpected baseType or cardinality in qti gte"),null)}return console.log("unexpected number of children in qte"),null}};customElements.define("qti-gte",bn);var En=class extends q{calculate(){if(this.children.length===1){let t=this.getVariables();if(!t)return!0;let r=t[0].value;return r==null||r==null||r===""}return console.error("unexpected number of children in qti Null"),null}};customElements.define("qti-is-null",En);var wn=class extends q{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];if(r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float"))return+r.value<+i.value;console.error("unexpected baseType or cardinality in qti lt")}return console.error("unexpected number of children in lt"),null}};customElements.define("qti-lt",wn);var Tn=class extends wt{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];return r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float")?+r.value<=+i.value:(console.error("unexpected baseType or cardinality in qti lte"),null)}return console.log("unexpected number of children in lte"),null}};customElements.define("qti-lte",Tn);var Fe=class extends y{constructor(){super(...arguments);this.defaultValue=0}get mapEntries(){return Array.from(this.querySelectorAll("qti-map-entry")).map(r=>({mapKey:r.getAttribute("map-key"),mappedValue:+r.getAttribute("mapped-value")}))}};m([v({attribute:"default-value",type:Number})],Fe.prototype,"defaultValue",2),m([v({attribute:"lower-bound",type:Number})],Fe.prototype,"lowerBound",2),m([v({attribute:"upper-bound",type:Number})],Fe.prototype,"upperBound",2);customElements.define("qti-mapping",Fe);var Ri=class extends q{calculate(){let r=this.assessmentItem.getResponse(this.identifier);if(!r)return console.warn(`Response ${this.identifier} can not be found`),null;let i=r.mapping,s=Array.isArray(r.value)?r.value:[r.value],n=0;for(let o of s){let u=i.mapEntries.find(c=>St.compareSingleValues(c.mapKey,o,r.baseType));u==null||u.mappedValue==null?n+=i.defaultValue:n+=u.mappedValue}return i.lowerBound!=null&&(n=Math.max(i.lowerBound,n)),i.upperBound!=null&&(n=Math.min(i.upperBound,n)),n}};m([v({type:String})],Ri.prototype,"identifier",2);customElements.define("qti-map-response",Ri);var vr=class e extends q{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];return this._result=e.match(r,i),this._result}return console.error("unexpected number of children in match"),null}static match(t,r){var i;if(r.cardinality==="single")return t.value===null?!1:Array.isArray(t.value)||Array.isArray(r.value)?(console.error("unexpected cardinality in qti match"),!1):St.compareSingleValues((i=t.value)==null?void 0:i.toString(),r.value.toString(),r.baseType);{if(!Array.isArray(t.value)||!Array.isArray(r.value))return console.error("unexpected cardinality in qti match"),!1;if(t.value.length!==r.value.length)return!1;let s=0;for(let n of r.value){if(r.cardinality==="ordered"){let o=t[s];if(!St.compareSingleValues(n,o,r.baseType))return!1}else{let o=null;for(let u of t.value)if(St.compareSingleValues(n,u,r.baseType)){o=u;break}if(o!==null)t.value.splice(t.value.indexOf(o),1);else return!1}s++}return!0}}};customElements.define("qti-match",vr);var xn=class extends q{calculate(){let t=this.getVariables();this.children.length!==2&&(this.error="The member operator takes two sub-expressions");let[r,i]=t;if(r.baseType!==i.baseType&&(this.error="Which must both have the same base-type"),i.cardinality==="multiple"||i.cardinality==="ordered"||(this.error="and the second must be a multiple or ordered container"),(r.baseType==="float"||i.baseType==="float")&&(this.error="The member operator should not be used on sub-expressions with a base-type of float"),(r.baseType==="duration"||i.baseType==="duration")&&(this.error="It must not be used on sub-expressions with a base-type of duration"),r.value===null||i.value===null)return null;let s=r.value;return i.value.includes(s)}};customElements.define("qti-member",xn);var vn=class extends q{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let r of t)if(r.cardinality!=="multiple"&&r.cardinality!=="single")return console.error("unexpected cardinality in qti multiple"),[];return t}};customElements.define("qti-multiple",vn);var _n=class extends q{render(){return E`${super.render()}`}calculate(){return!this.firstElementChild.calculate()}};customElements.define("qti-not",_n);var An=class extends wt{render(){return E``}calculate(){return Array.from(this.children).map(r=>{let i=r;if(!i.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=i.calculate();if(typeof s=="string")if(s==="true")s=!0;else if(s==="false")s=!1;else return console.error("unexpected value in qti-or, expected boolean"),null;return s}).some(r=>typeof r=="boolean"&&r)}};customElements.define("qti-or",An);var yn=class extends q{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let r of t)if(r.cardinality!=="ordered"&&r.cardinality!=="single")return console.error("unexpected cardinality in qti ordered"),[];return t}};customElements.define("qti-ordered",yn);var _r=class extends y{constructor(){super();this.value="";this.closest("qti-assessment-item").addEventListener("qti-response-processed",()=>{this.value=this.calculate()})}render(){return E`${Array.isArray(this.value)?this.value.map(r=>E`${r}`):this.value}`}calculate(){let r=this.closest("qti-assessment-item"),i=this.identifier;return r.getVariable(i).value}};m([v({type:String})],_r.prototype,"identifier",2),m([M()],_r.prototype,"value",2);customElements.define("qti-printed-variable",_r);var Cn=class extends q{calculate(){return this.getVariables().reduce((i,s)=>{if(s.baseType=="float"||s.baseType=="integer")try{return i*parseInt(s.value.toString())}catch(n){console.warn("can not convert to number")}else console.warn(`has another baseType ${s.baseType}`);return i},1)}};customElements.define("qti-product",Cn);var Sn=class extends q{calculate(){let t=this.getAttribute("identifier");return this.closest("qti-assessment-item").getVariable(t).value}};customElements.define("qti-variable",Sn);var Li=class extends q{constructor(){super(...arguments);this.caseSensitive="true"}calculate(){if(this.children.length===2){let r=this.getVariables(),i=r[0],s=r[1];if(i.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(i.value)||Array.isArray(s.value))return console.error("unexpected cardinality in qti string-match"),!1;let n=this.caseSensitive==="true"?i.value:i.value.toLowerCase(),o=this.caseSensitive==="true"?s.value:s.value.toLowerCase();return St.compareSingleValues(n,o,i.baseType)}return console.error("unexpected number of children in qti-string-match"),null}};m([v({type:String,attribute:"case-sensitive"})],Li.prototype,"caseSensitive",2);customElements.define("qti-string-match",Li);var Nn=class extends q{calculate(){return Array.from(this.children).map(r=>{let i=r;if(!i.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=i.calculate();return Number.isNaN(s)?(console.error("unexpected value in qti-sum, expected number"),null):Number(s)}).reduce((r,i)=>r+i,0)}};customElements.define("qti-sum",Nn);var In=class extends y{constructor(){super(...arguments);this._errorMessage=null}static get properties(){return{responseIdentifier:{type:String,attribute:"response-identifier"},module:{type:String,attribute:"module"},customInteractionTypeIdentifier:{type:String,attribute:"custom-interaction-type-identifier"},baseUrl:{type:String,attribute:"base-url"},_errorMessage:{type:String,state:!0}}}getTAOConfig(r){let i=r.querySelectorAll("properties"),s={},n=u=>{let c={},d=u.getAttribute("key");if(d){let p=Array.from(u.children),g=p.map(x=>x.getAttribute("key"));g.length>0&&!g.find(x=>!Number.isInteger(+x))?c[d]=p.map(x=>o(x)):c[d]=u.textContent}return c},o=u=>{if(u){let c={};for(let d of u.children)c=N(N({},c),n(d));return c}};for(let u of i)return u.getAttribute("key")||(s=N(N({},s),o(u))),s;console.log("Can not find qti-custom-interaction config")}register(r){let i=this.parentElement.tagName==="QTI-CUSTOM-INTERACTION"?"TAO":"IMS",s=i=="IMS"?this.querySelector("qti-interaction-markup"):this.querySelector("markup");s.classList.add("qti-customInteraction"),i=="TAO"&&this.querySelector("properties")&&(this.querySelector("properties").style.display="none");let n=i=="IMS"?{properties:this.dataset}:this.getTAOConfig(this);i=="IMS"?r.getInstance(s,n,void 0):r.initialize(this.customInteractionTypeIdentifier,s.firstElementChild,n),i=="TAO"&&Array.from(this.querySelectorAll("link")).map(u=>u.getAttribute("href")).forEach(u=>{let c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.media="screen",c.href=u,s.appendChild(c)})}connectedCallback(){super.connectedCallback();let r={context:this.customInteractionTypeIdentifier,baseUrl:this.baseUrl,catchError:!0};if(window.requirePaths&&window.requireShim&&(r.paths=window.requirePaths,r.shim=window.requireShim),!globalThis.require){this._errorMessage="requirejs not found, load with cdn: https://cdnjs.com/libraries/require.js";return}requirejs.config(r)(["require"],s=>{!s.defined("qtiCustomInteractionContext")&&define("qtiCustomInteractionContext",()=>({register:o=>{this.register(o)},notifyReady:()=>{}}));let n=s.defined(this.module);s([this.module],o=>{n&&this.register(o)},o=>{this._errorMessage=o})},s=>{this._errorMessage=s})}render(){return E`<slot></slot>${this._errorMessage&&E`<div style="color:red">
162
+ `,p([M()],q.prototype,"_result",2),p([M()],q.prototype,"error",1);var wt=class extends q{calculate(){throw new Error("Not implemented")}};var fn=class extends wt{calculate(){return Array.from(this.children).map(r=>{let i=r;if(!i.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=i.calculate();if(typeof s=="string")if(s==="true")s=!0;else if(s==="false")s=!1;else return console.error("unexpected value in qti-and, expected boolean"),null;return s}).every(r=>typeof r=="boolean"&&r)}};customElements.define("qti-and",fn);var Ii=class extends q{constructor(){super(...arguments);this.baseType="string"}calculate(){return this.textContent}};p([x({type:String,attribute:"base-type"})],Ii.prototype,"baseType",2);customElements.define("qti-base-value",Ii);var pn=class extends wt{calculate(){let t=this.getVariables();if(this.children.length===2){let r=t[0],i=t[1];if(r.baseType==="directedPair"&&i.baseType==="directedPair"&&r.cardinality==="multiple"){let s=r.value,n=i.value;return s.filter(c=>n.includes(c)).length>0}else if(r.baseType==="directedPair"&&i.baseType==="directedPair"&&r.cardinality==="single"){let s=r.value;return i.value.includes(s)}else console.error("unsupported baseType or cardinality in qti contains, only baseType: directedPair and cardinality: multiple is supported")}else console.error("unexpected number of children in qti contains");return!1}};customElements.define("qti-contains",pn);var mn=class extends q{get interpretation(){return this.getAttribute("interpretation")||""}calculate(){let t=this.getAttribute("identifier")||"",r=this.closest("qti-assessment-item").getResponse(t);return r.correctResponse,r.cardinality!=="single"?r.correctResponse.length>0?r.correctResponse[0]:"":r.correctResponse}};customElements.define("qti-correct",mn);var Nt=class{static compareSingleValues(t,r,i){switch(i){case"identifier":case"string":return t===r;case"integer":{let s=parseInt(t,10),n=parseInt(r,10);if(!isNaN(s)&&!isNaN(n))return s===n;console.error(`Cannot convert ${t} and/or ${r} to int.`);break}case"float":{let s=parseFloat(t),n=parseFloat(r);if(!isNaN(s)&&!isNaN(n))return s===n;console.error(`couldn't convert ${t} and/or ${r} to float.`);break}case"pair":case"directedPair":{let s=t.split(" ").sort(),n=r.split(" ").sort();if(s.length===2&&n.length===2)return i==="pair"&&(s.sort(),n.sort()),s.join(" ")===n.join(" ");console.error(`compared two pair but one of the values does not have 2 values: 1: ${t} 2: ${r}`);break}}return!1}};var Ri=class extends q{constructor(){super(...arguments);this.toleranceMode="exact"}calculate(){if(this.children.length===2){let r=this.getVariables(),i=r[0],s=r[1];return this.toleranceMode!=="exact"?(console.error("toleranceMode is not supported yet"),!1):i.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(i.value)||Array.isArray(s.value)?(console.error("unexpected cardinality in qti equal"),!1):Nt.compareSingleValues(i.value,s.value,i.baseType)}return console.error("unexpected number of children in qti-equal"),null}};p([x({type:String})],Ri.prototype,"toleranceMode",2);customElements.define("qti-equal",Ri);var Li=class extends q{constructor(){super(...arguments);this.roundingMode="significantFigures"}get figures(){if(!this.getAttribute("figures"))return console.error("figures attribute is missing"),null;let i=parseInt(this.getAttribute("figures")||"0");return isNaN(i)?(console.error("figures attribute is not a number"),null):i<0?(console.error("figures attribute is negative"),null):i<1&&this.roundingMode==="significantFigures"?(console.error("figures cannot be smaller than 1 for RoundingMode significantFigures"),null):i}calculate(){if(this.children.length===2){let r=this.getVariables(),i=r[0],s=r[1];if(this.roundingMode===null)return null;if(i.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(i.value)||Array.isArray(s.value))return console.error("unexpected cardinality in qti equal"),!1;switch(r[0].baseType){case"integer":case"float":{let n=parseFloat(i.value),o=parseFloat(s.value);if(!isNaN(n)&&!isNaN(o))return this.roundingMode==="significantFigures"?n.toPrecision(this.figures)===o.toPrecision(this.figures):Math.round(n*Math.pow(10,this.figures))/Math.pow(10,this.figures)===Math.round(o*Math.pow(10,this.figures))/Math.pow(10,this.figures);console.error(`value cannot be casted to numeric value in equalRounded operator: ${n}, ${o}`);break}default:{console.error("values other than float and int cannot be used in equalRounded operator.");break}}return!1}return console.error("unexpected number of children in qti-equal-rounded"),null}};p([x({type:String})],Li.prototype,"roundingMode",2);customElements.define("qti-equal-rounded",Li);var gn=class extends q{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];if(r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float"))return+r.value>+i.value;console.error("unexpected baseType or cardinality in qti gt")}return console.error("unexpected number of children in qt"),null}};customElements.define("qti-gt",gn);var bn=class extends wt{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];return r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float")?+r.value>=+i.value:(console.error("unexpected baseType or cardinality in qti gte"),null)}return console.log("unexpected number of children in qte"),null}};customElements.define("qti-gte",bn);var En=class extends q{calculate(){if(this.children.length===1){let t=this.getVariables();if(!t)return!0;let r=t[0].value;return r==null||r==null||r===""}return console.error("unexpected number of children in qti Null"),null}};customElements.define("qti-is-null",En);var wn=class extends q{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];if(r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float"))return+r.value<+i.value;console.error("unexpected baseType or cardinality in qti lt")}return console.error("unexpected number of children in lt"),null}};customElements.define("qti-lt",wn);var Tn=class extends wt{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];return r.baseType===i.baseType&&(r.baseType==="integer"||r.baseType==="float")?+r.value<=+i.value:(console.error("unexpected baseType or cardinality in qti lte"),null)}return console.log("unexpected number of children in lte"),null}};customElements.define("qti-lte",Tn);var Ve=class extends y{constructor(){super(...arguments);this.defaultValue=0}get mapEntries(){return Array.from(this.querySelectorAll("qti-map-entry")).map(r=>({mapKey:r.getAttribute("map-key"),mappedValue:+r.getAttribute("mapped-value")}))}};p([x({attribute:"default-value",type:Number})],Ve.prototype,"defaultValue",2),p([x({attribute:"lower-bound",type:Number})],Ve.prototype,"lowerBound",2),p([x({attribute:"upper-bound",type:Number})],Ve.prototype,"upperBound",2);customElements.define("qti-mapping",Ve);var Di=class extends q{calculate(){let r=this.assessmentItem.getResponse(this.identifier);if(!r)return console.warn(`Response ${this.identifier} can not be found`),null;let i=r.mapping,s=Array.isArray(r.value)?r.value:[r.value],n=0;for(let o of s){let u=i.mapEntries.find(c=>Nt.compareSingleValues(c.mapKey,o,r.baseType));u==null||u.mappedValue==null?n+=i.defaultValue:n+=u.mappedValue}return i.lowerBound!=null&&(n=Math.max(i.lowerBound,n)),i.upperBound!=null&&(n=Math.min(i.upperBound,n)),n}};p([x({type:String})],Di.prototype,"identifier",2);customElements.define("qti-map-response",Di);var _r=class e extends q{calculate(){if(this.children.length===2){let t=this.getVariables(),r=t[0],i=t[1];return this._result=e.match(r,i),this._result}return console.error("unexpected number of children in match"),null}static match(t,r){var i;if(r.cardinality==="single")return t.value===null?!1:Array.isArray(t.value)||Array.isArray(r.value)?(console.error("unexpected cardinality in qti match"),!1):Nt.compareSingleValues((i=t.value)==null?void 0:i.toString(),r.value.toString(),r.baseType);{if(!Array.isArray(t.value)||!Array.isArray(r.value))return console.error("unexpected cardinality in qti match"),!1;if(t.value.length!==r.value.length)return!1;let s=0;for(let n of r.value){if(r.cardinality==="ordered"){let o=t[s];if(!Nt.compareSingleValues(n,o,r.baseType))return!1}else{let o=null;for(let u of t.value)if(Nt.compareSingleValues(n,u,r.baseType)){o=u;break}if(o!==null)t.value.splice(t.value.indexOf(o),1);else return!1}s++}return!0}}};customElements.define("qti-match",_r);var xn=class extends q{calculate(){let t=this.getVariables();this.children.length!==2&&(this.error="The member operator takes two sub-expressions");let[r,i]=t;if(r.baseType!==i.baseType&&(this.error="Which must both have the same base-type"),i.cardinality==="multiple"||i.cardinality==="ordered"||(this.error="and the second must be a multiple or ordered container"),(r.baseType==="float"||i.baseType==="float")&&(this.error="The member operator should not be used on sub-expressions with a base-type of float"),(r.baseType==="duration"||i.baseType==="duration")&&(this.error="It must not be used on sub-expressions with a base-type of duration"),r.value===null||i.value===null)return null;let s=r.value;return i.value.includes(s)}};customElements.define("qti-member",xn);var vn=class extends q{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let r of t)if(r.cardinality!=="multiple"&&r.cardinality!=="single")return console.error("unexpected cardinality in qti multiple"),[];return t}};customElements.define("qti-multiple",vn);var _n=class extends q{render(){return E`${super.render()}`}calculate(){return!this.firstElementChild.calculate()}};customElements.define("qti-not",_n);var An=class extends wt{render(){return E``}calculate(){return Array.from(this.children).map(r=>{let i=r;if(!i.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=i.calculate();if(typeof s=="string")if(s==="true")s=!0;else if(s==="false")s=!1;else return console.error("unexpected value in qti-or, expected boolean"),null;return s}).some(r=>typeof r=="boolean"&&r)}};customElements.define("qti-or",An);var yn=class extends q{calculate(){let t=this.getVariables();if(t.length===0)return console.error("unexpected number of children in qti multiple"),null;for(let r of t)if(r.cardinality!=="ordered"&&r.cardinality!=="single")return console.error("unexpected cardinality in qti ordered"),[];return t}};customElements.define("qti-ordered",yn);var Ar=class extends y{constructor(){super();this.value="";this.closest("qti-assessment-item").addEventListener("qti-response-processed",()=>{this.value=this.calculate()})}render(){return E`${Array.isArray(this.value)?this.value.map(r=>E`${r}`):this.value}`}calculate(){let r=this.closest("qti-assessment-item"),i=this.identifier;return r.getVariable(i).value}};p([x({type:String})],Ar.prototype,"identifier",2),p([M()],Ar.prototype,"value",2);customElements.define("qti-printed-variable",Ar);var Cn=class extends q{calculate(){return this.getVariables().reduce((i,s)=>{if(s.baseType=="float"||s.baseType=="integer")try{return i*parseInt(s.value.toString())}catch(n){console.warn("can not convert to number")}else console.warn(`has another baseType ${s.baseType}`);return i},1)}};customElements.define("qti-product",Cn);var Nn=class extends q{calculate(){let t=this.getAttribute("identifier");return this.closest("qti-assessment-item").getVariable(t).value}};customElements.define("qti-variable",Nn);var Oi=class extends q{constructor(){super(...arguments);this.caseSensitive="true"}calculate(){if(this.children.length===2){let r=this.getVariables(),i=r[0],s=r[1];if(i.cardinality!=="single"||s.cardinality!=="single"||Array.isArray(i.value)||Array.isArray(s.value))return console.error("unexpected cardinality in qti string-match"),!1;let n=this.caseSensitive==="true"?i.value:i.value.toLowerCase(),o=this.caseSensitive==="true"?s.value:s.value.toLowerCase();return Nt.compareSingleValues(n,o,i.baseType)}return console.error("unexpected number of children in qti-string-match"),null}};p([x({type:String,attribute:"case-sensitive"})],Oi.prototype,"caseSensitive",2);customElements.define("qti-string-match",Oi);var Sn=class extends q{calculate(){return Array.from(this.children).map(r=>{let i=r;if(!i.calculate)return console.error("Element doesn't implement QtiConditionExpression"),null;let s=i.calculate();return Number.isNaN(s)?(console.error("unexpected value in qti-sum, expected number"),null):Number(s)}).reduce((r,i)=>r+i,0)}};customElements.define("qti-sum",Sn);var In=class extends y{constructor(){super(...arguments);this._errorMessage=null}static get properties(){return{responseIdentifier:{type:String,attribute:"response-identifier"},module:{type:String,attribute:"module"},customInteractionTypeIdentifier:{type:String,attribute:"custom-interaction-type-identifier"},baseUrl:{type:String,attribute:"base-url"},_errorMessage:{type:String,state:!0}}}getTAOConfig(r){let i=r.querySelectorAll("properties"),s={},n=u=>{let c={},d=u.getAttribute("key");if(d){let m=Array.from(u.children),g=m.map(v=>v.getAttribute("key"));g.length>0&&!g.find(v=>!Number.isInteger(+v))?c[d]=m.map(v=>o(v)):c[d]=u.textContent}return c},o=u=>{if(u){let c={};for(let d of u.children)c=S(S({},c),n(d));return c}};for(let u of i)return u.getAttribute("key")||(s=S(S({},s),o(u))),s;console.log("Can not find qti-custom-interaction config")}register(r){let i=this.parentElement.tagName==="QTI-CUSTOM-INTERACTION"?"TAO":"IMS",s=i=="IMS"?this.querySelector("qti-interaction-markup"):this.querySelector("markup");s.classList.add("qti-customInteraction"),i=="TAO"&&this.querySelector("properties")&&(this.querySelector("properties").style.display="none");let n=i=="IMS"?{properties:this.dataset}:this.getTAOConfig(this);i=="IMS"?r.getInstance(s,n,void 0):r.initialize(this.customInteractionTypeIdentifier,s.firstElementChild,n),i=="TAO"&&Array.from(this.querySelectorAll("link")).map(u=>u.getAttribute("href")).forEach(u=>{let c=document.createElement("link");c.rel="stylesheet",c.type="text/css",c.media="screen",c.href=u,s.appendChild(c)})}connectedCallback(){super.connectedCallback();let r={context:this.customInteractionTypeIdentifier,baseUrl:this.baseUrl,catchError:!0};if(window.requirePaths&&window.requireShim&&(r.paths=window.requirePaths,r.shim=window.requireShim),!globalThis.require){this._errorMessage="requirejs not found, load with cdn: https://cdnjs.com/libraries/require.js";return}requirejs.config(r)(["require"],s=>{!s.defined("qtiCustomInteractionContext")&&define("qtiCustomInteractionContext",()=>({register:o=>{this.register(o)},notifyReady:()=>{}}));let n=s.defined(this.module);s([this.module],o=>{n&&this.register(o)},o=>{this._errorMessage=o})},s=>{this._errorMessage=s})}render(){return E`<slot></slot>${this._errorMessage&&E`<div style="color:red">
162
163
  <h1>Error</h1>
163
164
  ${this._errorMessage}
164
- </div>`}`}};customElements.define("qti-portable-custom-interaction",In);var Rn=class e{constructor(){this._touchBegin=0;this._touchDown=null;this._lastClick=0;this._canDrag=!1;this._dragSrc=null;this._dragCopy=null;this._touchEndCalled=!1;this._dragRunning=!1;this._dataTransfer={data:{},setData:function(t,r){this.data[t]=r},getData:function(t){return this.data[t]},effectAllowed:"move"};this._copyOffset={x:0,y:0};this._lastTarget=null;this._currentDropContainer=null;this._handleClick=!0;this._DBLCLICKDELAY=500;this._CONTEXTMENUDELAY=1e3;this._DRAGDELTA=5;this._COPYOPACITY=.7;this.copyStylesDragClone=!0;this.dragOnClick=!1;this._createDragCopy=(t,r)=>{if(this._dragCopy===null&&this._dragRunning){this._dragSrc.style.opacity=this._COPYOPACITY,this._dragCopy=this._dragSrc.cloneNode(!0);let i=window.getComputedStyle(this._dragSrc);if(this._dragCopy.style="",this._dragCopy.setAttribute("dragclone",""),this.copyStylesDragClone)for(let s of i)this._dragCopy.style[s]=i.getPropertyValue(s);this._calculateDragCopyPosition(r),this._dragCopy.style.top=r.clientY-this._copyOffset.y+"px",this._dragCopy.style.left=r.clientX-this._copyOffset.x+"px",this._dragCopy.style.position="fixed",this._dragCopy.style.pointerEvents="none",this._dragCopy.style.zIndex="999999",this._dragCopy=document.body.appendChild(this._dragCopy),this._dispatchEvent(this._dragSrc,"dragstart")}if(this._dragRunning){let i=this;requestAnimationFrame(function(){i._touchEndCalled||i._dragCopy===null||(i._dragCopy.style.top=r.clientY-i._copyOffset.y+"px",i._dragCopy.style.left=r.clientX-i._copyOffset.x+"px")});let s=this._findDroppable(t);s!=this._lastTarget&&(this._dispatchEvent(s,"dragenter"),this._dispatchEvent(this._lastTarget,"dragleave"),this._lastTarget=s),this._currentDropContainer=s,this._currentDropContainer&&this._dispatchEvent(s,"dragover")}};return e._instance?e._instance:(e._instance=this,document.addEventListener("touchmove",this._touchMove.bind(this),{passive:!1,capture:!1}),document.addEventListener("mousemove",this._touchMove.bind(this),{passive:!1,capture:!1}),document.addEventListener("touchend",this._touchEnd.bind(this),{passive:!1,capture:!1}),document.addEventListener("mouseup",this._touchEnd.bind(this),{passive:!1,capture:!1}),document.addEventListener("touchcancel",this._touchCancel.bind(this),{passive:!1,capture:!1}),this)}addDraggables(t){t.forEach(r=>{r.addEventListener("touchstart",this._touchStart.bind(this),{passive:!1,capture:!1}),r.addEventListener("mousedown",this._touchStart.bind(this),{passive:!1,capture:!1})})}_touchStart(t){this._touchBegin=Date.now();let{x:r,y:i}=this._getPoint(t);if(this._touchDown={x:r,y:i},this._dragSrc=t.currentTarget,this._canDrag=!0,this.dragOnClick){let s={clientX:r,clientY:i};this._dragRunning=!0,this._createDragCopy(t,s)}t.preventDefault()}_touchMove(t){if(this._canDrag&&this._dragSrc){let{x:r,y:i}=this._getPoint(t),s={clientX:r,clientY:i};this._getDelta(s)>=this._DRAGDELTA&&(this._dragRunning=!0),this._createDragCopy(t,s),t.preventDefault()}}_touchEnd(t){var r;if(this._touchEndCalled=!0,this._canDrag=!1,this._currentDropContainer)this._dispatchEvent(this._currentDropContainer,"drop"),this._dispatchEvent(this._dragSrc,"dragend");else if(this._dragRunning){let i=new CustomEvent("dragend",{bubbles:!0,cancelable:!0});i.dataTransfer={dropEffect:"none"},(r=this._dragSrc)==null||r.dispatchEvent(i)}this._reset()}_touchCancel(t){this._reset()}_findDroppable(t){let r=this._getPoint(t);return this.elementFromPoint(r.x,r.y)}elementFromPoint(t,r){let i=document.elementFromPoint(t,r);if(i){for(;i.shadowRoot;){let s=i.shadowRoot.elementFromPoint(t,r);if(s===null||s===i)break;i=s}return i}return null}_getPoint(t,r){return t&&t.touches&&(t=t.touches[0]),{x:r?t.pageX:t.clientX,y:r?t.pageY:t.clientY}}_calculateDragCopyPosition(t){let r=this._dragSrc.getBoundingClientRect();this._copyOffset.x=t.clientX-r.left,this._copyOffset.y=t.clientY-r.top}_getDelta(t){let r=Math.abs(t.clientX-this._touchDown.x),i=Math.abs(t.clientY-this._touchDown.y);return r+i}_dispatchEvent(t,r,i=!0){if(!t)return!1;let s=new CustomEvent(r,{bubbles:i,cancelable:!0});return s.dataTransfer=this._dataTransfer,t.dispatchEvent(s),s.defaultPrevented}_reset(){this._dragRunning&&(this._dragSrc.style.opacity="1.0",this._dragCopy.parentElement.removeChild(this._dragCopy)),this._dragRunning=!1,this._dragSrc=null,this._dragCopy=null,this._canDrag=!1,this._touchBegin=0,this._touchDown=null,this._lastClick=0,this._touchEndCalled=!1,this._dataTransfer={data:{},setData:function(t,r){this.data[t]=r},getData:function(t){return this.data[t]},effectAllowed:"move"},this._copyOffset={x:0,y:0},this._lastTarget=null,this._currentDropContainer=null,this._handleClick=!0}};var Jc=(e,t,r)=>{class i extends e{constructor(){super(...arguments);this.disabled=!1}firstUpdated(o){if(this.classList.contains("qti-match-tabular"))return;super.firstUpdated(o);let u=Array.from(t?this.shadowRoot.querySelectorAll(r):this.querySelectorAll(r));this.dragoverHandler=this.dragoverHandler.bind(this),this.dragleaveHandler=this.dragleaveHandler.bind(this),this.dragenterHandler=this.dragenterHandler.bind(this),this.dropHandler=this.dropHandler.bind(this),u.forEach(c=>{c.setAttribute("dropzone","move"),c.addEventListener("dragleave",this.dragleaveHandler),this.attachHandler(c)});for(let c of u)this.observer=new MutationObserver(d=>{d.forEach(p=>{if(p.type==="attributes")switch(p.attributeName){case"disabled":{c.hasAttribute("disabled")?this.removeHandler(c):this.attachHandler(c);break}}})}),this.observer.observe(c,{attributes:!0})}attachHandler(o){o.addEventListener("dragover",this.dragoverHandler),o.addEventListener("dragenter",this.dragenterHandler),o.addEventListener("drop",this.dropHandler)}removeHandler(o){o.removeEventListener("dragover",this.dragoverHandler),o.removeEventListener("dragenter",this.dragenterHandler),o.removeEventListener("drop",this.dropHandler)}disconnectedCallback(){var o;this.classList.contains("qti-match-tabular")||(super.disconnectedCallback(),(o=this.observer)==null||o.disconnect())}dragenterHandler(o){o.preventDefault()}dragoverHandler(o){return o.preventDefault(),o.currentTarget.setAttribute("active",""),o.dataTransfer.dropEffect="move",!1}dropHandler(o){o.preventDefault();let u=o.currentTarget,c=this.querySelector(`[identifier=${o.dataTransfer.getData("text")}`),d=c||this.shadowRoot.querySelector(`[identifier=${o.dataTransfer.getData("text")}`);return u?d.parentElement.getAttribute("identifier")!==u.getAttribute("identifier")&&u.appendChild(d):console.error(`cannot find droppable, target: ${o.target?JSON.stringify(o.target):"null"}`),u.removeAttribute("active"),!1}dragleaveHandler(o){return o.preventDefault(),o.currentTarget.removeAttribute("active"),o.dataTransfer.dropEffect="none",!1}}return m([v({type:Boolean,reflect:!0})],i.prototype,"disabled",2),i};var Zc=(e,t,r)=>{class i extends e{}return i};var Xt=(e,t,r,i)=>{class s extends Zc(Jc(e,r,i),i,t){constructor(){super(...arguments);this.draggables=new Map;this.responseIdentifier="";this.configuration={copyStylesDragClone:!0,dragCanBePlacedBack:!0,dragOnClick:!1};this.disabled=!1;this.readonly=!1;this.minAssociations=1;this.maxAssociations=1}reInitDragAndDrop(u,c){if(this.classList.contains("qti-match-tabular"))return;u.filter(p=>!this.draggables||!this.draggables.get(p)).length>0&&(this.dragDropApi.addDraggables(u),u.forEach(p=>{this.draggables.set(p,{parent:p.parentElement,index:Array.from(p.parentNode.children).indexOf(p)}),p.setAttribute("qti-draggable","true"),p.addEventListener("dragstart",g=>{g.dataTransfer.setData("text",g.currentTarget.getAttribute("identifier")),p.setAttribute("dragging","")}),p.addEventListener("dragend",g=>{if(g.preventDefault(),p.removeAttribute("over"),p.removeAttribute("dragging"),(g.dataTransfer.dropEffect==="none"||g.dataTransfer.dropEffect===void 0)&&this.configuration.dragCanBePlacedBack){let _=g.currentTarget,x=this.draggables.get(_),S=x.index<x.parent.children.length?x.index:x.parent.children.length-1,R=x.parent,H=x.parent.children[S];R.insertBefore(_,H),this.saveResponse(),this.checkMaxMatchAssociations()}g.dataTransfer.dropEffect==="move"&&(this.saveResponse(),this.checkMaxMatchAssociations())})}))}handleDragOptionsChanged(u,c){this.dragDropApi.copyStylesDragClone=c.copyStylesDragClone,this.dragDropApi.dragOnClick=c.dragOnClick}handleDisabledChange(u,c){this.draggables.forEach((d,p)=>{c?p.setAttribute("disabled",""):p.removeAttribute("disabled"),c?p.removeAttribute("qti-draggable"):p.setAttribute("qti-draggable","true")})}handleReadonlyChange(u,c){this.draggables.forEach((d,p)=>{c?p.setAttribute("readonly",""):p.removeAttribute("readonly"),c?p.removeAttribute("qti-draggable"):p.setAttribute("qti-draggable","true")})}firstUpdated(u){super.firstUpdated(u),this.droppables=Array.from(r?this.shadowRoot.querySelectorAll(i):this.querySelectorAll(i))}connectedCallback(){super.connectedCallback(),this.dragDropApi=new Rn,this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0,detail:this}))}reset(u=!0){this.draggables.forEach((c,d)=>{let p=c.parent.children,g=c.index<p.length?c.index:p.length;c.parent.insertBefore(d,p[g])}),u&&this.saveResponse()}checkMaxMatchAssociations(){this.droppables.forEach(u=>{let d=+(u.getAttribute("match-max")||1)<=(u.children.length||0);d?u.setAttribute("disabled",""):u.removeAttribute("disabled"),d?u.removeAttribute("dropzone"):u.setAttribute("dropzone","move")})}set response(u){this.classList.contains("qti-match-tabular")||(this.reset(!1),u!==null&&Array.isArray(u)&&u.forEach(c=>{let[d,...p]=c.split(" ").reverse();if(d){let g=this.droppables.find(_=>_.getAttribute("identifier")===d);p.forEach(_=>{let x=this.querySelector(`[identifier=${_}]`);g?x?(g.appendChild(x),this.checkMaxMatchAssociations()):console.error(`cannot find draggable with identifier: ${_}`):console.error(`cannot find droppable with identifier: ${d}`)})}}))}validate(){let c=(r?Array.from(this.shadowRoot.querySelectorAll(i)):Array.from(this.querySelectorAll(i))).filter(d=>d.childElementCount>0).length;return this.minAssociations<=0||this.minAssociations<=c}saveResponse(){let u=this.droppables.map(c=>{var p;let d="";return((p=c.children)==null?void 0:p.length)>0&&(d+=Array.from(c.children).map(g=>g.getAttribute("identifier")).join(" ")+" "),d+=c.getAttribute("identifier"),d});this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:u}}))}}return m([$c(t)],s.prototype,"reInitDragAndDrop",1),m([v({type:String,attribute:"response-identifier"})],s.prototype,"responseIdentifier",2),m([v({attribute:!1,type:Object})],s.prototype,"configuration",2),m([Q("configuration")],s.prototype,"handleDragOptionsChanged",1),m([v({type:Boolean,reflect:!0})],s.prototype,"disabled",2),m([Q("disabled",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),m([v({type:Boolean,reflect:!0})],s.prototype,"readonly",2),m([Q("readonly",{waitUntilFirstUpdate:!0})],s.prototype,"handleReadonlyChange",1),m([v({type:Number,reflect:!0,attribute:"min-associations"})],s.prototype,"minAssociations",2),m([v({type:Number,reflect:!0,attribute:"max-associations"})],s.prototype,"maxAssociations",2),s};var Ar=class extends Xt(y,"qti-simple-associable-choice",!0,".dl"){render(){return E` <slot name="prompt"></slot>
165
+ </div>`}`}};customElements.define("qti-portable-custom-interaction",In);var Rn=class e{constructor(){this._touchBegin=0;this._touchDown=null;this._lastClick=0;this._canDrag=!1;this._dragSrc=null;this._dragCopy=null;this._touchEndCalled=!1;this._dragRunning=!1;this._dataTransfer={data:{},setData:function(t,r){this.data[t]=r},getData:function(t){return this.data[t]},effectAllowed:"move"};this._copyOffset={x:0,y:0};this._lastTarget=null;this._currentDropContainer=null;this._handleClick=!0;this._DBLCLICKDELAY=500;this._CONTEXTMENUDELAY=1e3;this._DRAGDELTA=5;this._COPYOPACITY=.7;this.copyStylesDragClone=!0;this.dragOnClick=!1;this._createDragCopy=(t,r)=>{if(this._dragCopy===null&&this._dragRunning){this._dragSrc.style.opacity=this._COPYOPACITY,this._dragCopy=this._dragSrc.cloneNode(!0);let i=window.getComputedStyle(this._dragSrc);if(this._dragCopy.style="",this._dragCopy.setAttribute("dragclone",""),this.copyStylesDragClone)for(let s of i)this._dragCopy.style[s]=i.getPropertyValue(s);this._calculateDragCopyPosition(r),this._dragCopy.style.top=r.clientY-this._copyOffset.y+"px",this._dragCopy.style.left=r.clientX-this._copyOffset.x+"px",this._dragCopy.style.position="fixed",this._dragCopy.style.pointerEvents="none",this._dragCopy.style.zIndex="999999",this._dragCopy=document.body.appendChild(this._dragCopy),this._dispatchEvent(this._dragSrc,"dragstart")}if(this._dragRunning){let i=this;requestAnimationFrame(function(){i._touchEndCalled||i._dragCopy===null||(i._dragCopy.style.top=r.clientY-i._copyOffset.y+"px",i._dragCopy.style.left=r.clientX-i._copyOffset.x+"px")});let s=this._findDroppable(t);s!=this._lastTarget&&(this._dispatchEvent(s,"dragenter"),this._dispatchEvent(this._lastTarget,"dragleave"),this._lastTarget=s),this._currentDropContainer=s,this._currentDropContainer&&this._dispatchEvent(s,"dragover")}};return e._instance?e._instance:(e._instance=this,document.addEventListener("touchmove",this._touchMove.bind(this),{passive:!1,capture:!1}),document.addEventListener("mousemove",this._touchMove.bind(this),{passive:!1,capture:!1}),document.addEventListener("touchend",this._touchEnd.bind(this),{passive:!1,capture:!1}),document.addEventListener("mouseup",this._touchEnd.bind(this),{passive:!1,capture:!1}),document.addEventListener("touchcancel",this._touchCancel.bind(this),{passive:!1,capture:!1}),this)}addDraggables(t){t.forEach(r=>{r.addEventListener("touchstart",this._touchStart.bind(this),{passive:!1,capture:!1}),r.addEventListener("mousedown",this._touchStart.bind(this),{passive:!1,capture:!1})})}_touchStart(t){this._touchBegin=Date.now();let{x:r,y:i}=this._getPoint(t);if(this._touchDown={x:r,y:i},this._dragSrc=t.currentTarget,this._canDrag=!0,this.dragOnClick){let s={clientX:r,clientY:i};this._dragRunning=!0,this._createDragCopy(t,s)}t.preventDefault()}_touchMove(t){if(this._canDrag&&this._dragSrc){let{x:r,y:i}=this._getPoint(t),s={clientX:r,clientY:i};this._getDelta(s)>=this._DRAGDELTA&&(this._dragRunning=!0),this._createDragCopy(t,s),t.preventDefault()}}_touchEnd(t){var r;if(this._touchEndCalled=!0,this._canDrag=!1,this._currentDropContainer)this._dispatchEvent(this._currentDropContainer,"drop"),this._dispatchEvent(this._dragSrc,"dragend");else if(this._dragRunning){let i=new CustomEvent("dragend",{bubbles:!0,cancelable:!0});i.dataTransfer={dropEffect:"none"},(r=this._dragSrc)==null||r.dispatchEvent(i)}this._reset()}_touchCancel(t){this._reset()}_findDroppable(t){let r=this._getPoint(t);return this.elementFromPoint(r.x,r.y)}elementFromPoint(t,r){let i=document.elementFromPoint(t,r);if(i){for(;i.shadowRoot;){let s=i.shadowRoot.elementFromPoint(t,r);if(s===null||s===i)break;i=s}return i}return null}_getPoint(t,r){return t&&t.touches&&(t=t.touches[0]),{x:r?t.pageX:t.clientX,y:r?t.pageY:t.clientY}}_calculateDragCopyPosition(t){let r=this._dragSrc.getBoundingClientRect();this._copyOffset.x=t.clientX-r.left,this._copyOffset.y=t.clientY-r.top}_getDelta(t){let r=Math.abs(t.clientX-this._touchDown.x),i=Math.abs(t.clientY-this._touchDown.y);return r+i}_dispatchEvent(t,r,i=!0){if(!t)return!1;let s=new CustomEvent(r,{bubbles:i,cancelable:!0});return s.dataTransfer=this._dataTransfer,t.dispatchEvent(s),s.defaultPrevented}_reset(){this._dragRunning&&(this._dragSrc.style.opacity="1.0",this._dragCopy.parentElement.removeChild(this._dragCopy)),this._dragRunning=!1,this._dragSrc=null,this._dragCopy=null,this._canDrag=!1,this._touchBegin=0,this._touchDown=null,this._lastClick=0,this._touchEndCalled=!1,this._dataTransfer={data:{},setData:function(t,r){this.data[t]=r},getData:function(t){return this.data[t]},effectAllowed:"move"},this._copyOffset={x:0,y:0},this._lastTarget=null,this._currentDropContainer=null,this._handleClick=!0}};var tl=(e,t,r)=>{class i extends e{constructor(){super(...arguments);this.disabled=!1}firstUpdated(o){if(this.classList.contains("qti-match-tabular"))return;super.firstUpdated(o);let u=Array.from(t?this.shadowRoot.querySelectorAll(r):this.querySelectorAll(r));this.dragoverHandler=this.dragoverHandler.bind(this),this.dragleaveHandler=this.dragleaveHandler.bind(this),this.dragenterHandler=this.dragenterHandler.bind(this),this.dropHandler=this.dropHandler.bind(this),u.forEach(c=>{c.setAttribute("dropzone","move"),c.addEventListener("dragleave",this.dragleaveHandler),this.attachHandler(c)});for(let c of u)this.observer=new MutationObserver(d=>{d.forEach(m=>{if(m.type==="attributes")switch(m.attributeName){case"disabled":{c.hasAttribute("disabled")?this.removeHandler(c):this.attachHandler(c);break}}})}),this.observer.observe(c,{attributes:!0})}attachHandler(o){o.addEventListener("dragover",this.dragoverHandler),o.addEventListener("dragenter",this.dragenterHandler),o.addEventListener("drop",this.dropHandler)}removeHandler(o){o.removeEventListener("dragover",this.dragoverHandler),o.removeEventListener("dragenter",this.dragenterHandler),o.removeEventListener("drop",this.dropHandler)}disconnectedCallback(){var o;this.classList.contains("qti-match-tabular")||(super.disconnectedCallback(),(o=this.observer)==null||o.disconnect())}dragenterHandler(o){o.preventDefault()}dragoverHandler(o){return o.preventDefault(),o.currentTarget.setAttribute("active",""),o.dataTransfer.dropEffect="move",!1}dropHandler(o){o.preventDefault();let u=o.currentTarget,c=this.querySelector(`[identifier=${o.dataTransfer.getData("text")}`),d=c||this.shadowRoot.querySelector(`[identifier=${o.dataTransfer.getData("text")}`);return u?d.parentElement.getAttribute("identifier")!==u.getAttribute("identifier")&&u.appendChild(d):console.error(`cannot find droppable, target: ${o.target?JSON.stringify(o.target):"null"}`),u.removeAttribute("active"),!1}dragleaveHandler(o){return o.preventDefault(),o.currentTarget.removeAttribute("active"),o.dataTransfer.dropEffect="none",!1}}return p([x({type:Boolean,reflect:!0})],i.prototype,"disabled",2),i};var el=(e,t,r)=>{class i extends e{}return i};var Gt=(e,t,r,i)=>{class s extends el(tl(e,r,i),i,t){constructor(){super(...arguments);this.draggables=new Map;this.responseIdentifier="";this.configuration={copyStylesDragClone:!0,dragCanBePlacedBack:!0,dragOnClick:!1};this.disabled=!1;this.readonly=!1;this.minAssociations=1;this.maxAssociations=1}reInitDragAndDrop(u,c){if(this.classList.contains("qti-match-tabular"))return;u.filter(m=>!this.draggables||!this.draggables.get(m)).length>0&&(this.dragDropApi.addDraggables(u),u.forEach(m=>{this.draggables.set(m,{parent:m.parentElement,index:Array.from(m.parentNode.children).indexOf(m)}),m.setAttribute("qti-draggable","true"),m.addEventListener("dragstart",g=>{g.dataTransfer.setData("text",g.currentTarget.getAttribute("identifier")),m.setAttribute("dragging","")}),m.addEventListener("dragend",g=>{if(g.preventDefault(),m.removeAttribute("over"),m.removeAttribute("dragging"),(g.dataTransfer.dropEffect==="none"||g.dataTransfer.dropEffect===void 0)&&this.configuration.dragCanBePlacedBack){let _=g.currentTarget,v=this.draggables.get(_),N=v.index<v.parent.children.length?v.index:v.parent.children.length-1,L=v.parent,H=v.parent.children[N];L.insertBefore(_,H),this.saveResponse(),this.checkMaxMatchAssociations()}g.dataTransfer.dropEffect==="move"&&(this.saveResponse(),this.checkMaxMatchAssociations())})}))}handleDragOptionsChanged(u,c){this.dragDropApi.copyStylesDragClone=c.copyStylesDragClone,this.dragDropApi.dragOnClick=c.dragOnClick}handleDisabledChange(u,c){this.draggables.forEach((d,m)=>{c?m.setAttribute("disabled",""):m.removeAttribute("disabled"),c?m.removeAttribute("qti-draggable"):m.setAttribute("qti-draggable","true")})}handleReadonlyChange(u,c){this.draggables.forEach((d,m)=>{c?m.setAttribute("readonly",""):m.removeAttribute("readonly"),c?m.removeAttribute("qti-draggable"):m.setAttribute("qti-draggable","true")})}firstUpdated(u){super.firstUpdated(u),this.droppables=Array.from(r?this.shadowRoot.querySelectorAll(i):this.querySelectorAll(i))}connectedCallback(){super.connectedCallback(),this.dragDropApi=new Rn,this.dispatchEvent(new CustomEvent("qti-register-interaction",{bubbles:!0,composed:!0,detail:this}))}reset(u=!0){this.draggables.forEach((c,d)=>{let m=c.parent.children,g=c.index<m.length?c.index:m.length;c.parent.insertBefore(d,m[g])}),u&&this.saveResponse()}checkMaxMatchAssociations(){this.droppables.forEach(u=>{let d=+(u.getAttribute("match-max")||1)<=(u.children.length||0);d?u.setAttribute("disabled",""):u.removeAttribute("disabled"),d?u.removeAttribute("dropzone"):u.setAttribute("dropzone","move")})}set response(u){this.classList.contains("qti-match-tabular")||(this.reset(!1),u!==null&&Array.isArray(u)&&u.forEach(c=>{let[d,...m]=c.split(" ").reverse();if(d){let g=this.droppables.find(_=>_.getAttribute("identifier")===d);m.forEach(_=>{let v=this.querySelector(`[identifier=${_}]`);g?v?(g.appendChild(v),this.checkMaxMatchAssociations()):console.error(`cannot find draggable with identifier: ${_}`):console.error(`cannot find droppable with identifier: ${d}`)})}}))}validate(){let c=(r?Array.from(this.shadowRoot.querySelectorAll(i)):Array.from(this.querySelectorAll(i))).filter(d=>d.childElementCount>0).length;return this.minAssociations<=0||this.minAssociations<=c}saveResponse(){let u=this.droppables.map(c=>{var m;let d="";return((m=c.children)==null?void 0:m.length)>0&&(d+=Array.from(c.children).map(g=>g.getAttribute("identifier")).join(" ")+" "),d+=c.getAttribute("identifier"),d});this.dispatchEvent(new CustomEvent("qti-interaction-response",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,response:u}}))}}return p([Yc(t)],s.prototype,"reInitDragAndDrop",1),p([x({type:String,attribute:"response-identifier"})],s.prototype,"responseIdentifier",2),p([x({attribute:!1,type:Object})],s.prototype,"configuration",2),p([Q("configuration")],s.prototype,"handleDragOptionsChanged",1),p([x({type:Boolean,reflect:!0})],s.prototype,"disabled",2),p([Q("disabled",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),p([x({type:Boolean,reflect:!0})],s.prototype,"readonly",2),p([Q("readonly",{waitUntilFirstUpdate:!0})],s.prototype,"handleReadonlyChange",1),p([x({type:Number,reflect:!0,attribute:"min-associations"})],s.prototype,"minAssociations",2),p([x({type:Number,reflect:!0,attribute:"max-associations"})],s.prototype,"maxAssociations",2),s};var yr=class extends Gt(y,"qti-simple-associable-choice",!0,".dl"){render(){return E` <slot name="prompt"></slot>
165
166
  <slot name="qti-simple-associable-choice"></slot>
166
167
  ${this._childrenMap.length>0&&Array.from(Array(Math.ceil(this._childrenMap.length/2)).keys()).map((r,i)=>E`<div part="associables-container">
167
168
  <div name="left${i}" part="drop-list" class="dl" identifier="droplist${i}_left"></div>
168
169
  <div name="right${i}" part="drop-list" class="dl" identifier="droplist${i}_right"></div>
169
- </div>`)}`}connectedCallback(){super.connectedCallback(),this._childrenMap=Array.from(this.querySelectorAll("qti-simple-associable-choice"))}};Ar.styles=k`
170
+ </div>`)}`}connectedCallback(){super.connectedCallback(),this._childrenMap=Array.from(this.querySelectorAll("qti-simple-associable-choice"))}};yr.styles=k`
170
171
  :host {
171
172
  display: block; /* necessary to calculate scaling position */
172
173
  }
@@ -175,8 +176,8 @@ Make sure to test your application with a production build as repeat registratio
175
176
  flex-wrap: wrap;
176
177
  gap: 0.5rem;
177
178
  }
178
- `,m([M()],Ar.prototype,"_childrenMap",2);customElements.define("qti-associate-interaction",Ar);var Di=class extends Xt(y,"qti-gap-text",!1,"qti-gap"){render(){return E` <slot part="drags" name="qti-gap-text"></slot>
179
- <slot part="drops"></slot>`}};Di.styles=[k`
179
+ `,p([M()],yr.prototype,"_childrenMap",2);customElements.define("qti-associate-interaction",yr);var ki=class extends Gt(y,"qti-gap-text",!1,"qti-gap"){render(){return E` <slot part="drags" name="qti-gap-text"></slot>
180
+ <slot part="drops"></slot>`}};ki.styles=[k`
180
181
  :host {
181
182
  display: flex;
182
183
  align-items: flex-start;
@@ -199,14 +200,14 @@ Make sure to test your application with a production build as repeat registratio
199
200
  align-items: flex-start;
200
201
  flex: 1;
201
202
  }
202
- `];customElements.define("qti-gap-match-interaction",Di);function yr(e,t,r,i){switch(e){case"circle":{let[s,n,o]=t,u=s/r.width*100,c=n/r.height*100,d=o/r.width*100;i.style.left=u-d+"%",i.style.top=c-d+"%",i.style.width=i.style.height=4*d+"px",i.style.borderRadius="9999px"}break;case"rect":{let[s,n,o,u]=t,c=s/r.width*100,d=n/r.height*100,p=o/r.width*100,g=u/r.height*100;i.style.left=c+"%",i.style.top=d+"%",i.style.width=p-c+"%",i.style.height=g-d+"%"}break;case"poly":{let s=t.reduce((R,H,Y,bt)=>{if(Y%2===1){let ye=R.pop();R[R.length]={x:ye,y:bt[Y]}}else R.push(H);return R},[]),n=Math.min(...s.map(R=>R.x)),o=Math.max(...s.map(R=>R.x)),u=Math.min(...s.map(R=>R.y)),c=Math.max(...s.map(R=>R.y)),d=n/r.width*100,p=u/r.height*100,g=o/r.width*100,_=c/r.height*100;i.style.left=n/r.width*100+"%",i.style.top=u/r.height*100+"%",i.style.width=g-d+"%",i.style.height=_-p+"%";let S=s.map(R=>({x:(R.x-n)/(o-n)*100,y:(R.y-u)/(c-u)*100})).map(R=>Math.round(R.x)+"% "+Math.round(R.y)+"%").join(",");i.style.clipPath=`polygon(${S})`}break;default:break}}var tl=(e,t,r)=>{let i=new Map;for(let s=t;s<=r;s++)i.set(e[s],s);return i},Ln=Mt(class extends kt{constructor(e){if(super(e),e.type!==Zt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,t,r){let i;r===void 0?r=t:t!==void 0&&(i=t);let s=[],n=[],o=0;for(let u of e)s[o]=i?i(u,o):o,n[o]=r(u,o),o++;return{values:n,keys:s}}render(e,t,r){return this.ht(e,t,r).values}update(e,[t,r,i]){var R;let s=Xc(e),{values:n,keys:o}=this.ht(t,r,i);if(!Array.isArray(s))return this.dt=o,n;let u=(R=this.dt)!=null?R:this.dt=[],c=[],d,p,g=0,_=s.length-1,x=0,S=n.length-1;for(;g<=_&&x<=S;)if(s[g]===null)g++;else if(s[_]===null)_--;else if(u[g]===o[x])c[x]=he(s[g],n[x]),g++,x++;else if(u[_]===o[S])c[S]=he(s[_],n[S]),_--,S--;else if(u[g]===o[S])c[S]=he(s[g],n[S]),br(e,c[S+1],s[g]),g++,S--;else if(u[_]===o[x])c[x]=he(s[_],n[x]),br(e,s[g],s[_]),_--,x++;else if(d===void 0&&(d=tl(o,x,S),p=tl(u,g,_)),d.has(u[g]))if(d.has(u[_])){let H=p.get(o[x]),Y=H!==void 0?s[H]:null;if(Y===null){let bt=br(e,s[g]);he(bt,n[x]),c[x]=bt}else c[x]=he(Y,n[x]),br(e,s[g],Y),s[H]=null;x++}else an(s[_]),_--;else an(s[g]),g++;for(;x<=S;){let H=br(e,c[S+1]);he(H,n[x]),c[x++]=H}for(;g<=_;){let H=s[g++];H!==null&&an(H)}return this.dt=o,Gc(e,c),Et}});var Wt=class extends W{constructor(){super();this.startPoint=null;this.endPoint=null;this._lines=[];this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}reset(){this._lines=[]}validate(){return this._lines.length>0}set response(r){Array.isArray(r)&&(this._lines=r)}render(){var r,i,s,n;return E`<slot name="prompt"></slot>
203
+ `];customElements.define("qti-gap-match-interaction",ki);function Cr(e,t,r,i){switch(e){case"circle":{let[s,n,o]=t,u=s/r.width*100,c=n/r.height*100,d=o/r.width*100;i.style.left=u-d+"%",i.style.top=c-d+"%",i.style.width=i.style.height=4*d+"px",i.style.borderRadius="9999px"}break;case"rect":{let[s,n,o,u]=t,c=s/r.width*100,d=n/r.height*100,m=o/r.width*100,g=u/r.height*100;i.style.left=c+"%",i.style.top=d+"%",i.style.width=m-c+"%",i.style.height=g-d+"%"}break;case"poly":{let s=t.reduce((L,H,Y,bt)=>{if(Y%2===1){let Se=L.pop();L[L.length]={x:Se,y:bt[Y]}}else L.push(H);return L},[]),n=Math.min(...s.map(L=>L.x)),o=Math.max(...s.map(L=>L.x)),u=Math.min(...s.map(L=>L.y)),c=Math.max(...s.map(L=>L.y)),d=n/r.width*100,m=u/r.height*100,g=o/r.width*100,_=c/r.height*100;i.style.left=n/r.width*100+"%",i.style.top=u/r.height*100+"%",i.style.width=g-d+"%",i.style.height=_-m+"%";let N=s.map(L=>({x:(L.x-n)/(o-n)*100,y:(L.y-u)/(c-u)*100})).map(L=>Math.round(L.x)+"% "+Math.round(L.y)+"%").join(",");i.style.clipPath=`polygon(${N})`}break;default:break}}var rl=(e,t,r)=>{let i=new Map;for(let s=t;s<=r;s++)i.set(e[s],s);return i},Ln=Pt(class extends Mt{constructor(e){if(super(e),e.type!==Zt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(e,t,r){let i;r===void 0?r=t:t!==void 0&&(i=t);let s=[],n=[],o=0;for(let u of e)s[o]=i?i(u,o):o,n[o]=r(u,o),o++;return{values:n,keys:s}}render(e,t,r){return this.ht(e,t,r).values}update(e,[t,r,i]){var L;let s=jc(e),{values:n,keys:o}=this.ht(t,r,i);if(!Array.isArray(s))return this.dt=o,n;let u=(L=this.dt)!=null?L:this.dt=[],c=[],d,m,g=0,_=s.length-1,v=0,N=n.length-1;for(;g<=_&&v<=N;)if(s[g]===null)g++;else if(s[_]===null)_--;else if(u[g]===o[v])c[v]=pe(s[g],n[v]),g++,v++;else if(u[_]===o[N])c[N]=pe(s[_],n[N]),_--,N--;else if(u[g]===o[N])c[N]=pe(s[g],n[N]),Er(e,c[N+1],s[g]),g++,N--;else if(u[_]===o[v])c[v]=pe(s[_],n[v]),Er(e,s[g],s[_]),_--,v++;else if(d===void 0&&(d=rl(o,v,N),m=rl(u,g,_)),d.has(u[g]))if(d.has(u[_])){let H=m.get(o[v]),Y=H!==void 0?s[H]:null;if(Y===null){let bt=Er(e,s[g]);pe(bt,n[v]),c[v]=bt}else c[v]=pe(Y,n[v]),Er(e,s[g],Y),s[H]=null;v++}else an(s[_]),_--;else an(s[g]),g++;for(;v<=N;){let H=Er(e,c[N+1]);pe(H,n[v]),c[v++]=H}for(;g<=_;){let H=s[g++];H!==null&&an(H)}return this.dt=o,Wc(e,c),Et}});var Xt=class extends K{constructor(){super();this.startPoint=null;this.endPoint=null;this._lines=[];this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}reset(){this._lines=[]}validate(){return this._lines.length>0}set response(r){Array.isArray(r)&&(this._lines=r)}render(){var r,i,s,n;return E`<slot name="prompt"></slot>
203
204
  <line-container>
204
205
  <svg
205
206
  width=${yt((r=this.grImage[0])==null?void 0:r.width)}
206
207
  height=${yt((i=this.grImage[0])==null?void 0:i.height)}
207
208
  viewbox="0 0 ${(s=this.grImage[0])==null?void 0:s.width} ${(n=this.grImage[0])==null?void 0:n.height}"
208
209
  >
209
- ${Ln(this._lines,o=>o,(o,u)=>Oe`
210
+ ${Ln(this._lines,o=>o,(o,u)=>Pe`
210
211
  <line
211
212
  part="line"
212
213
  x1=${parseInt(this.querySelector("[identifier="+o.split(" ")[0]+"]").style.left)}
@@ -215,10 +216,10 @@ Make sure to test your application with a production build as repeat registratio
215
216
  y2=${parseInt(this.querySelector("[identifier="+o.split(" ")[1]+"]").style.top)}
216
217
  stroke="red"
217
218
  stroke-width="3"
218
- @click=${c=>{c.stopPropagation(),this._lines=this._lines.filter((d,p)=>p!==u),this.saveResponse(this._lines)}}
219
+ @click=${c=>{c.stopPropagation(),this._lines=this._lines.filter((d,m)=>m!==u),this.saveResponse(this._lines)}}
219
220
  />
220
221
  `)}
221
- ${this.startPoint&&Oe`<line
222
+ ${this.startPoint&&Pe`<line
222
223
  part="point"
223
224
  x1=${this.startCoord.x}
224
225
  y1=${this.startCoord.y}
@@ -229,7 +230,7 @@ Make sure to test your application with a production build as repeat registratio
229
230
  />`}
230
231
  </svg>
231
232
  <slot></slot>
232
- </line-container>`}positionHotspotOnRegister(r){let i=this.querySelector("img"),s=r.target,n=s.getAttribute("coords"),o=s.getAttribute("shape"),u=n.split(",").map(c=>parseInt(c));yr(o,u,i,s)}firstUpdated(r){super.firstUpdated(r),this.hotspots=document.querySelectorAll("qti-associable-hotspot"),document.addEventListener("mousemove",i=>{this.mouseCoord={x:i.clientX-this.grImage[0].getBoundingClientRect().left,y:i.clientY-this.grImage[0].getBoundingClientRect().top}}),this.hotspots.forEach(i=>{i.style.left=i.getAttribute("coords").split(",")[0]+"px",i.style.top=i.getAttribute("coords").split(",")[1]+"px",i.addEventListener("click",s=>{this.startPoint?this.endPoint||(this.endPoint=s.target,this._lines=[...this._lines,this.startPoint.getAttribute("identifier")+" "+this.endPoint.getAttribute("identifier")],this.saveResponse(this._lines),this.startPoint=null,this.endPoint=null):(this.startPoint=s.target,this.startCoord={x:this.startPoint.getAttribute("coords").split(",")[0],y:this.startPoint.getAttribute("coords").split(",")[1]})})})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}};Wt.styles=[k`
233
+ </line-container>`}positionHotspotOnRegister(r){let i=this.querySelector("img"),s=r.target,n=s.getAttribute("coords"),o=s.getAttribute("shape"),u=n.split(",").map(c=>parseInt(c));Cr(o,u,i,s)}firstUpdated(r){super.firstUpdated(r),this.hotspots=document.querySelectorAll("qti-associable-hotspot"),document.addEventListener("mousemove",i=>{this.mouseCoord={x:i.clientX-this.grImage[0].getBoundingClientRect().left,y:i.clientY-this.grImage[0].getBoundingClientRect().top}}),this.hotspots.forEach(i=>{i.style.left=i.getAttribute("coords").split(",")[0]+"px",i.style.top=i.getAttribute("coords").split(",")[1]+"px",i.addEventListener("click",s=>{this.startPoint?this.endPoint||(this.endPoint=s.target,this._lines=[...this._lines,this.startPoint.getAttribute("identifier")+" "+this.endPoint.getAttribute("identifier")],this.saveResponse(this._lines),this.startPoint=null,this.endPoint=null):(this.startPoint=s.target,this.startCoord={x:this.startPoint.getAttribute("coords").split(",")[0],y:this.startPoint.getAttribute("coords").split(",")[1]})})})}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}};Xt.styles=[k`
233
234
  slot:not([name='prompt']) {
234
235
  // position: relative; /* qti-hotspot-choice relative to the slot */
235
236
  display: block;
@@ -252,8 +253,8 @@ Make sure to test your application with a production build as repeat registratio
252
253
  top: 0px;
253
254
  left: 0px;
254
255
  }
255
- `],m([M()],Wt.prototype,"_lines",2),m([M()],Wt.prototype,"startCoord",2),m([M()],Wt.prototype,"mouseCoord",2),m([mi("svg")],Wt.prototype,"svgContainer",2),m([Tc({selector:"img"})],Wt.prototype,"grImage",2);customElements.define("qti-graphic-associate-interaction",Wt);var Oi=class extends Xt(y,"qti-gap-img",!1,"qti-associable-hotspot"){render(){return E` <slot></slot>
256
- <slot name="qti-gap-img"></slot>`}positionHotspotOnRegister(t){let r=this.querySelector("img"),i=t.target,s=i.getAttribute("coords"),n=i.getAttribute("shape"),o=s.split(",").map(u=>parseInt(u));switch(n){case"circle":{let[u,c,d]=o;i.style.left=u-d+"px",i.style.top=c-d+"px",i.style.width=i.style.height=2*d+"px"}break;case"rect":{let[u,c,d,p]=o;i.style.left=u+"px",i.style.top=c+"px",i.style.width=d-u+"px",i.style.height=p-c+"px"}break;default:break}}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}};Oi.styles=k`
256
+ `],p([M()],Xt.prototype,"_lines",2),p([M()],Xt.prototype,"startCoord",2),p([M()],Xt.prototype,"mouseCoord",2),p([mi("svg")],Xt.prototype,"svgContainer",2),p([xc({selector:"img"})],Xt.prototype,"grImage",2);customElements.define("qti-graphic-associate-interaction",Xt);var Mi=class extends Gt(y,"qti-gap-img",!1,"qti-associable-hotspot"){render(){return E` <slot></slot>
257
+ <slot name="qti-gap-img"></slot>`}positionHotspotOnRegister(t){let r=this.querySelector("img"),i=t.target,s=i.getAttribute("coords"),n=i.getAttribute("shape"),o=s.split(",").map(u=>parseInt(u));switch(n){case"circle":{let[u,c,d]=o;i.style.left=u-d+"px",i.style.top=c-d+"px",i.style.width=i.style.height=2*d+"px"}break;case"rect":{let[u,c,d,m]=o;i.style.left=u+"px",i.style.top=c+"px",i.style.width=d-u+"px",i.style.height=m-c+"px"}break;default:break}}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-hotspot",this.positionHotspotOnRegister)}};Mi.styles=k`
257
258
  :host {
258
259
  display: inline-block;
259
260
  position: relative;
@@ -262,12 +263,12 @@ Make sure to test your application with a production build as repeat registratio
262
263
  display: flex;
263
264
  gap: 1rem;
264
265
  }
265
- `;customElements.define("qti-graphic-gap-match-interaction",Oi);var ki=class extends ut{render(){return E`
266
+ `;customElements.define("qti-graphic-gap-match-interaction",Mi);var Pi=class extends ut{render(){return E`
266
267
  <slot name="prompt"></slot>
267
268
  <!-- slot for the prompt -->
268
269
  <slot></slot>
269
270
  <!-- slot for the image and hotspots -->
270
- `}setHotspotOrder(r){let{identifier:i}=r.detail,s=this._choiceElements.find(o=>o.getAttribute("identifier")===i),n=this._choiceElements.length;if(!this.choiceOrdering){if(this.choiceOrdering=!0,s.order==null){if(this._choiceElements.filter(o=>o.order>0).length>=n){this.choiceOrdering=!1;return}s.order=this._choiceElements.filter(o=>!!o.order).length+1,this.choiceOrdering=!1;return}else this._choiceElements.forEach(o=>(o.order>o.order&&o.order--,o)),s.order=null;this.choiceOrdering=!1}}positionHotspotOnRegister(r){let i=this.querySelector("img"),s=r.target,n=s.getAttribute("coords"),o=s.getAttribute("shape"),u=n.split(",").map(c=>parseInt(c));yr(o,u,i,s)}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-choice-element-selected",this.setHotspotOrder),this.addEventListener("qti-register-choice",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-choice-element-selected",this.setHotspotOrder),this.removeEventListener("qti-register-choice",this.positionHotspotOnRegister)}};ki.styles=[k`
271
+ `}setHotspotOrder(r){let{identifier:i}=r.detail,s=this._choiceElements.find(o=>o.getAttribute("identifier")===i),n=this._choiceElements.length;if(!this.choiceOrdering){if(this.choiceOrdering=!0,s.order==null){if(this._choiceElements.filter(o=>o.order>0).length>=n){this.choiceOrdering=!1;return}s.order=this._choiceElements.filter(o=>!!o.order).length+1,this.choiceOrdering=!1;return}else this._choiceElements.forEach(o=>(o.order>o.order&&o.order--,o)),s.order=null;this.choiceOrdering=!1}}positionHotspotOnRegister(r){let i=this.querySelector("img"),s=r.target,n=s.getAttribute("coords"),o=s.getAttribute("shape"),u=n.split(",").map(c=>parseInt(c));Cr(o,u,i,s)}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-choice-element-selected",this.setHotspotOrder),this.addEventListener("qti-register-choice",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-choice-element-selected",this.setHotspotOrder),this.removeEventListener("qti-register-choice",this.positionHotspotOnRegister)}};Pi.styles=[k`
271
272
  slot:not([name='prompt']) {
272
273
  position: relative; /* qti-hotspot-choice relative to the slot */
273
274
  display: block;
@@ -278,12 +279,12 @@ Make sure to test your application with a production build as repeat registratio
278
279
  pointer-events: none;
279
280
  user-select: none;
280
281
  }
281
- `];customElements.define("qti-graphic-order-interaction",ki);var Mi=class extends ut{render(){return E`
282
+ `];customElements.define("qti-graphic-order-interaction",Pi);var qi=class extends ut{render(){return E`
282
283
  <slot name="prompt"></slot>
283
284
  <!-- slot for the prompt -->
284
285
  <slot></slot>
285
286
  <!-- slot for the image and hotspots -->
286
- `}positionHotspotOnRegister(t){let r=this.querySelector("img"),i=t.target,s=i.getAttribute("coords"),n=i.getAttribute("shape"),o=s.split(",").map(u=>parseInt(u));yr(n,o,r,i)}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-choice",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-choice",this.positionHotspotOnRegister)}};Mi.styles=[k`
287
+ `}positionHotspotOnRegister(t){let r=this.querySelector("img"),i=t.target,s=i.getAttribute("coords"),n=i.getAttribute("shape"),o=s.split(",").map(u=>parseInt(u));Cr(n,o,r,i)}connectedCallback(){super.connectedCallback(),this.addEventListener("qti-register-choice",this.positionHotspotOnRegister)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("qti-register-choice",this.positionHotspotOnRegister)}};qi.styles=[k`
287
288
  slot:not([name='prompt']) {
288
289
  position: relative; /* qti-hotspot-choice relative to the slot */
289
290
  display: block;
@@ -295,18 +296,18 @@ Make sure to test your application with a production build as repeat registratio
295
296
  user-select: none;
296
297
  /* width:100%; */
297
298
  }
298
- `];customElements.define("qti-hotspot-interaction",Mi);var Dn=class extends y{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-simple-associable-choice"),this.setAttribute("part","qti-simple-associable-choice")}render(){return E`
299
+ `];customElements.define("qti-hotspot-interaction",qi);var Dn=class extends y{connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-simple-associable-choice"),this.setAttribute("part","qti-simple-associable-choice")}render(){return E`
299
300
  <slot></slot>
300
301
  <slot name="qti-simple-associable-choice"></slot>
301
- `}};customElements.define("qti-simple-associable-choice",Dn);var Pi=class extends kt{constructor(t){if(super(t),this.et=$,t.type!==Zt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this.vt=void 0,this.et=t;if(t===Et)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let r=[t];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Pi.directiveName="unsafeHTML",Pi.resultType=1;var qi=Mt(Pi);var $e=class extends Xt(y,"qti-simple-match-set:first-of-type qti-simple-associable-choice",!1,"qti-simple-match-set:last-of-type qti-simple-associable-choice"){constructor(){super(...arguments);this.response=[];this.responseIdentifier=""}connectedCallback(){super.connectedCallback(),this.rows=Array.from(this.querySelectorAll("qti-simple-match-set:first-of-type qti-simple-associable-choice")),this.cols=Array.from(this.querySelectorAll("qti-simple-match-set:last-of-type qti-simple-associable-choice")),this.response=[]}render(){return this.classList.contains("qti-match-tabular")?E`
302
+ `}};customElements.define("qti-simple-associable-choice",Dn);var Ye=class extends Gt(y,"qti-simple-match-set:first-of-type qti-simple-associable-choice",!1,"qti-simple-match-set:last-of-type qti-simple-associable-choice"){constructor(){super(...arguments);this.response=[];this.responseIdentifier=""}connectedCallback(){super.connectedCallback(),this.rows=Array.from(this.querySelectorAll("qti-simple-match-set:first-of-type qti-simple-associable-choice")),this.cols=Array.from(this.querySelectorAll("qti-simple-match-set:last-of-type qti-simple-associable-choice")),this.response=[]}render(){return this.classList.contains("qti-match-tabular")?E`
302
303
  <slot name="prompt"></slot>
303
304
  <table>
304
305
  <tr>
305
306
  <td></td>
306
- ${this.cols.map((r,i)=>E`<th part="r-header">${qi(r.innerHTML)}</th>`)}
307
+ ${this.cols.map((r,i)=>E`<th part="r-header">${Be(r.innerHTML)}</th>`)}
307
308
  </tr>
308
309
  ${this.rows.map((r,i)=>E`<tr>
309
- <td part="c-header">${qi(r.innerHTML)}</td>
310
+ <td part="c-header">${Be(r.innerHTML)}</td>
310
311
  ${this.cols.map((s,n)=>{let o=`${r.getAttribute("identifier")} ${s.getAttribute("identifier")}`;return E`<td>
311
312
  <input
312
313
  type="checkbox"
@@ -317,14 +318,14 @@ Make sure to test your application with a production build as repeat registratio
317
318
  </td>`})}
318
319
  </tr>`)}
319
320
  </table>
320
- `:E`<slot name="prompt"></slot> <slot></slot>`}};$e.styles=[],m([M()],$e.prototype,"response",2),m([v({type:String,attribute:"response-identifier"})],$e.prototype,"responseIdentifier",2);customElements.define("qti-match-interaction",$e);var Hi=class extends W{constructor(){super();this.value=0}reset(){}validate(){return!0}set response(r){}static get properties(){return U(N({},W.properties),{step:{type:Number,attribute:"step",default:10}})}render(){return E` <slot name="prompt"></slot>
321
- <slot></slot>`}connectedCallback(){super.connectedCallback();let r=this.querySelector("audio")||this.querySelector("video")||this.querySelector("object");r&&r.addEventListener("ended",()=>{this.value++,this.saveResponse(this.value.toString())})}};Hi.styles=[k``];customElements.define("qti-media-interaction",Hi);var Ve=class extends Xt(y,"qti-simple-choice",!0,"drop-list"){render(){return E` <slot name="prompt"> </slot>
321
+ `:E`<slot name="prompt"></slot> <slot></slot>`}};Ye.styles=[],p([M()],Ye.prototype,"response",2),p([x({type:String,attribute:"response-identifier"})],Ye.prototype,"responseIdentifier",2);customElements.define("qti-match-interaction",Ye);var Hi=class extends K{constructor(){super();this.value=0}reset(){}validate(){return!0}set response(r){}static get properties(){return U(S({},K.properties),{step:{type:Number,attribute:"step",default:10}})}render(){return E` <slot name="prompt"></slot>
322
+ <slot></slot>`}connectedCallback(){super.connectedCallback();let r=this.querySelector("audio")||this.querySelector("video")||this.querySelector("object");r&&r.addEventListener("ended",()=>{this.value++,this.saveResponse(this.value.toString())})}};Hi.styles=[k``];customElements.define("qti-media-interaction",Hi);var Ge=class extends Gt(y,"qti-simple-choice",!0,"drop-list"){render(){return E` <slot name="prompt"> </slot>
322
323
  <div part="container">
323
324
  <slot part="drags"> </slot>
324
325
  <div part="drops">
325
326
  ${Array.from(this.querySelectorAll("qti-simple-choice")).map((r,i)=>E`<drop-list part="drop-list" identifier="droplist${i}"></drop-list>`)}
326
327
  </div>
327
- </div>`}connectedCallback(){super.connectedCallback(),this.childrenMap=Array.from(this.querySelectorAll("qti-simple-choice")),this.childrenMap.forEach(r=>r.setAttribute("part","qti-simple-choice"))}};Ve.layoutClass=["qti-choices-top","qti-choices-bottom","qti-choices-left","qti-choices-right"],Ve.styles=[k`
328
+ </div>`}connectedCallback(){super.connectedCallback(),this.childrenMap=Array.from(this.querySelectorAll("qti-simple-choice")),this.childrenMap.forEach(r=>r.setAttribute("part","qti-simple-choice"))}};Ge.layoutClass=["qti-choices-top","qti-choices-bottom","qti-choices-left","qti-choices-right"],Ge.styles=[k`
328
329
  [part='drags'] {
329
330
  display: flex;
330
331
  align-items: flex-start;
@@ -372,7 +373,7 @@ Make sure to test your application with a production build as repeat registratio
372
373
  :host(.qti-choices-right) [part='container'] {
373
374
  flex-direction: row-reverse;
374
375
  }
375
- `],m([v({type:String})],Ve.prototype,"orientation",2);customElements.define("qti-order-interaction",Ve);var Ui=class extends y{render(){return E`<slot></slot>`}};Ui.styles=[k`
376
+ `],p([x({type:String})],Ge.prototype,"orientation",2);customElements.define("qti-order-interaction",Ge);var Ui=class extends y{render(){return E`<slot></slot>`}};Ui.styles=[k`
376
377
  :host {
377
378
  display: block;
378
379
  }
@@ -388,18 +389,18 @@ Make sure to test your application with a production build as repeat registratio
388
389
  display: inline-block;
389
390
  position: relative;
390
391
  }
391
- `];customElements.define("qti-position-object-stage",Bi);var el="important",Ph=" !"+el,rl=Mt(class extends kt{constructor(e){var t;if(super(e),e.type!==Zt.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let i=e[r];return i==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in t){let s=t[i];if(s!=null){this.ut.add(i);let n=typeof s=="string"&&s.endsWith(Ph);i.includes("-")||n?r.setProperty(i,n?s.slice(0,-11):s,n?el:""):r[i]=s}}return Et}});var fe=class extends W{constructor(){super(...arguments);this.maxChoices=0;this.minChoices=0;this._points=[]}render(){return E` <slot name="prompt"></slot>
392
+ `];customElements.define("qti-position-object-stage",Bi);var il="important",Hh=" !"+il,sl=Pt(class extends Mt{constructor(e){var t;if(super(e),e.type!==Zt.ATTRIBUTE||e.name!=="style"||((t=e.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{let i=e[r];return i==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let i of this.ut)t[i]==null&&(this.ut.delete(i),i.includes("-")?r.removeProperty(i):r[i]=null);for(let i in t){let s=t[i];if(s!=null){this.ut.add(i);let n=typeof s=="string"&&s.endsWith(Hh);i.includes("-")||n?r.setProperty(i,n?s.slice(0,-11):s,n?il:""):r[i]=s}}return Et}});var ge=class extends K{constructor(){super(...arguments);this.maxChoices=0;this.minChoices=0;this._points=[]}render(){return E` <slot name="prompt"></slot>
392
393
  <point-container>
393
394
  ${Ln(this._points,r=>r,(r,i)=>E`
394
395
  <button
395
396
  part="point"
396
- style=${rl({position:"absolute",transform:"translate(-50%, -50%)",left:`${r.split(" ")[0]}px`,top:`${r.split(" ")[1]}px`})}
397
+ style=${sl({position:"absolute",transform:"translate(-50%, -50%)",left:`${r.split(" ")[0]}px`,top:`${r.split(" ")[1]}px`})}
397
398
  aria-label="Remove point at ${r}"
398
399
  @click=${s=>{s.stopPropagation(),this._points=this._points.filter((n,o)=>o!==i),this.saveResponse(this._points)}}
399
400
  ></button>
400
401
  `)}
401
402
  <slot></slot>
402
- </point-container>`}reset(){this._points=[]}validate(){return this._points.length>=this.minChoices&&this._points.length<=this.maxChoices}set response(r){this._points=Array.isArray(r)?r:[r]}connectedCallback(){super.connectedCallback(),this.querySelector("img").addEventListener("click",i=>{let s=i.offsetX,n=i.offsetY;this._points=[...this._points,s+" "+n],this.saveResponse(this._points)})}disconnectedCallback(){super.disconnectedCallback()}};fe.styles=[k`
403
+ </point-container>`}reset(){this._points=[]}validate(){return this._points.length>=this.minChoices&&this._points.length<=this.maxChoices}set response(r){this._points=Array.isArray(r)?r:[r]}connectedCallback(){super.connectedCallback(),this.querySelector("img").addEventListener("click",i=>{let s=i.offsetX,n=i.offsetY;this._points=[...this._points,s+" "+n],this.saveResponse(this._points)})}disconnectedCallback(){super.disconnectedCallback()}};ge.styles=[k`
403
404
  :host {
404
405
  display: block;
405
406
  }
@@ -407,7 +408,7 @@ Make sure to test your application with a production build as repeat registratio
407
408
  display: block;
408
409
  position: relative;
409
410
  }
410
- `],m([v({type:Number,attribute:"max-choices"})],fe.prototype,"maxChoices",2),m([v({type:Number,attribute:"min-choices"})],fe.prototype,"minChoices",2),m([M()],fe.prototype,"_points",2);customElements.define("qti-select-point-interaction",fe);var ct=class extends W{constructor(){super();this.stepLabel=!1;this.reverse=!1;this._handleDisabledChange=(r,i)=>{};this._handleReadonlyChange=(r,i)=>{};this.csLive=getComputedStyle(this)}set min(r){this._min=r,this.value=r,this.style.setProperty("--min",`${this._min}`)}get min(){return this._min}set max(r){this._max=r,this.style.setProperty("--max",`${this._max}`)}get max(){return this._max}set step(r){this._step=r,this.style.setProperty("--step",`${this._step}`)}get step(){return this._step}reset(){}validate(){return!0}set response(r){if(Array.isArray(r)){console.error("QtiSliderInteraction: response is an array, but should be a single value");return}let i=parseInt(r);if(Number.isNaN(i)){console.error("QtiSliderInteraction: response is not a number");return}this.value=i}render(){this.value<this.min&&(this.value=this.min),this.value>this.max&&(this.value=this.max);let r=(this.value-this.min)/(this.max-this.min)*100;return this.style.setProperty("--value-percentage",`${r}%`),this.setAttribute("aria-valuenow",this.value.toString()),E`<slot name="prompt"></slot>
411
+ `],p([x({type:Number,attribute:"max-choices"})],ge.prototype,"maxChoices",2),p([x({type:Number,attribute:"min-choices"})],ge.prototype,"minChoices",2),p([M()],ge.prototype,"_points",2);customElements.define("qti-select-point-interaction",ge);var ct=class extends K{constructor(){super();this.stepLabel=!1;this.reverse=!1;this._handleDisabledChange=(r,i)=>{};this._handleReadonlyChange=(r,i)=>{};this.csLive=getComputedStyle(this)}set min(r){this._min=r,this.value=r,this.style.setProperty("--min",`${this._min}`)}get min(){return this._min}set max(r){this._max=r,this.style.setProperty("--max",`${this._max}`)}get max(){return this._max}set step(r){this._step=r,this.style.setProperty("--step",`${this._step}`)}get step(){return this._step}reset(){}validate(){return!0}set response(r){if(Array.isArray(r)){console.error("QtiSliderInteraction: response is an array, but should be a single value");return}let i=parseInt(r);if(Number.isNaN(i)){console.error("QtiSliderInteraction: response is not a number");return}this.value=i}render(){this.value<this.min&&(this.value=this.min),this.value>this.max&&(this.value=this.max);let r=(this.value-this.min)/(this.max-this.min)*100;return this.style.setProperty("--value-percentage",`${r}%`),this.setAttribute("aria-valuenow",this.value.toString()),E`<slot name="prompt"></slot>
411
412
  <div id="slider" part="slider">
412
413
  ${this.csLive.getPropertyValue("--show-bounds")=="true"?E`<div id="bounds" part="bounds">
413
414
  <div>${this._min}</div>
@@ -419,16 +420,16 @@ Make sure to test your application with a production build as repeat registratio
419
420
  ${this.csLive.getPropertyValue("--show-value")=="true"?E`<div id="value" part="value">${this.value}</div>`:$}
420
421
  </div>
421
422
  </div>
422
- </div>`}connectedCallback(){super.connectedCallback(),this.step=1,this.setAttribute("tabindex","0"),this.setAttribute("role","slider")}_onTouchMove(r){let i=u=>{let{x:c}=this.getPositionFromEvent(u),d=c-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(d),u.stopPropagation()},s=()=>{document.removeEventListener("touchmove",i),document.removeEventListener("touchend",s),this.saveResponse(this.value.toString())};document.addEventListener("touchmove",i),document.addEventListener("touchend",s);let{x:n}=this.getPositionFromEvent(r),o=n-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(o),r.stopPropagation()}_onMouseDown(r){let i=o=>{let u=o.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(u),o.preventDefault(),o.stopPropagation()},s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s),this.saveResponse(this.value.toString())};document.addEventListener("mousemove",i),document.addEventListener("mouseup",s);let n=r.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(n),r.preventDefault(),r.stopPropagation()}calculateValue(r){let i=this.min+(this.max-this.min)*r/this._rail.getBoundingClientRect().width,s=this.min+Math.round((i-this.min)/this._step)*this._step;this.value=s}getPositionFromEvent(r){let i;if(r.type=="touchstart"||r.type=="touchmove"||r.type=="touchend"||r.type=="touchcancel"){let s=typeof r.originalEvent=="undefined"?r:r.originalEvent,n=s.touches[0]||s.changedTouches[0];i={x:n.pageX,y:n.pageY}}else(r.type=="mousedown"||r.type=="mouseup"||r.type=="mousemove"||r.type=="mouseover"||r.type=="mouseout"||r.type=="mouseenter"||r.type=="mouseleave")&&(i={x:r.clientX,y:r.clientY});return i}};ct.styles=[k``],m([mi("#knob")],ct.prototype,"_knob",2),m([mi("#rail")],ct.prototype,"_rail",2),m([v({type:Number})],ct.prototype,"value",2),m([v({type:Boolean,attribute:"step-label"})],ct.prototype,"stepLabel",2),m([v({type:Boolean})],ct.prototype,"reverse",2),m([v({type:Number,attribute:"lower-bound"})],ct.prototype,"min",1),m([v({type:Number,attribute:"upper-bound"})],ct.prototype,"max",1),m([v({type:Number,attribute:"step"})],ct.prototype,"step",1),m([Q("disabled",{waitUntilFirstUpdate:!0})],ct.prototype,"_handleDisabledChange",2),m([Q("readonly",{waitUntilFirstUpdate:!0})],ct.prototype,"_handleReadonlyChange",2);customElements.define("qti-slider-interaction",ct);var Ye=class extends W{constructor(){super(...arguments);this.countAttempt="true"}validate(){return!0}set response(r){}render(){return E`<button ?disabled=${this.disabled} part="button" @click=${this.endAttempt}>${this.title}</button>`}endAttempt(r){this.dispatchEvent(new CustomEvent("end-attempt",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,countAttempt:this.countAttempt==="true"}}))}};m([v({type:String,attribute:"count-attempt"})],Ye.prototype,"countAttempt",2),m([v({type:String})],Ye.prototype,"title",2),Ye=m([D("qti-end-attempt-interaction")],Ye);var Fi=class extends y{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-register-hotspot",{bubbles:!0,cancelable:!1,composed:!0}))}render(){return E` <slot name="qti-gap-img"></slot> `}};Fi.styles=k`
423
+ </div>`}connectedCallback(){super.connectedCallback(),this.step=1,this.setAttribute("tabindex","0"),this.setAttribute("role","slider")}_onTouchMove(r){let i=u=>{let{x:c}=this.getPositionFromEvent(u),d=c-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(d),u.stopPropagation()},s=()=>{document.removeEventListener("touchmove",i),document.removeEventListener("touchend",s),this.saveResponse(this.value.toString())};document.addEventListener("touchmove",i),document.addEventListener("touchend",s);let{x:n}=this.getPositionFromEvent(r),o=n-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(o),r.stopPropagation()}_onMouseDown(r){let i=o=>{let u=o.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(u),o.preventDefault(),o.stopPropagation()},s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s),this.saveResponse(this.value.toString())};document.addEventListener("mousemove",i),document.addEventListener("mouseup",s);let n=r.pageX-this._rail.getBoundingClientRect().left-document.documentElement.scrollLeft;this.calculateValue(n),r.preventDefault(),r.stopPropagation()}calculateValue(r){let i=this.min+(this.max-this.min)*r/this._rail.getBoundingClientRect().width,s=this.min+Math.round((i-this.min)/this._step)*this._step;this.value=s}getPositionFromEvent(r){let i;if(r.type=="touchstart"||r.type=="touchmove"||r.type=="touchend"||r.type=="touchcancel"){let s=typeof r.originalEvent=="undefined"?r:r.originalEvent,n=s.touches[0]||s.changedTouches[0];i={x:n.pageX,y:n.pageY}}else(r.type=="mousedown"||r.type=="mouseup"||r.type=="mousemove"||r.type=="mouseover"||r.type=="mouseout"||r.type=="mouseenter"||r.type=="mouseleave")&&(i={x:r.clientX,y:r.clientY});return i}};ct.styles=[k``],p([mi("#knob")],ct.prototype,"_knob",2),p([mi("#rail")],ct.prototype,"_rail",2),p([x({type:Number})],ct.prototype,"value",2),p([x({type:Boolean,attribute:"step-label"})],ct.prototype,"stepLabel",2),p([x({type:Boolean})],ct.prototype,"reverse",2),p([x({type:Number,attribute:"lower-bound"})],ct.prototype,"min",1),p([x({type:Number,attribute:"upper-bound"})],ct.prototype,"max",1),p([x({type:Number,attribute:"step"})],ct.prototype,"step",1),p([Q("disabled",{waitUntilFirstUpdate:!0})],ct.prototype,"_handleDisabledChange",2),p([Q("readonly",{waitUntilFirstUpdate:!0})],ct.prototype,"_handleReadonlyChange",2);customElements.define("qti-slider-interaction",ct);var Xe=class extends K{constructor(){super(...arguments);this.countAttempt="true"}validate(){return!0}set response(r){}render(){return E`<button ?disabled=${this.disabled} part="button" @click=${this.endAttempt}>${this.title}</button>`}endAttempt(r){this.dispatchEvent(new CustomEvent("end-attempt",{bubbles:!0,composed:!0,detail:{responseIdentifier:this.responseIdentifier,countAttempt:this.countAttempt==="true"}}))}};p([x({type:String,attribute:"count-attempt"})],Xe.prototype,"countAttempt",2),p([x({type:String})],Xe.prototype,"title",2),Xe=p([R("qti-end-attempt-interaction")],Xe);var Fi=class extends y{connectedCallback(){super.connectedCallback(),this.dispatchEvent(new CustomEvent("qti-register-hotspot",{bubbles:!0,cancelable:!1,composed:!0}))}render(){return E` <slot name="qti-gap-img"></slot> `}};Fi.styles=k`
423
424
  :host {
424
425
  position: absolute;
425
426
  }
426
- `;customElements.define("qti-associable-hotspot",Fi);var $i=class extends y{constructor(){super(...arguments);this.tabindex=0}connectedCallback(){this.setAttribute("slot","qti-gap-img")}};m([v({type:Number,reflect:!0})],$i.prototype,"tabindex",2);customElements.define("qti-gap-img",$i);var Vi=class extends y{constructor(){super(...arguments);this.tabindex=0}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-gap-text")}render(){return E`<slot></slot>`}};m([v({type:Number,reflect:!0})],Vi.prototype,"tabindex",2);customElements.define("qti-gap-text",Vi);var Yi=class extends y{constructor(){super(...arguments);this.tabindex=0}render(){return E` <slot name="qti-gap-text"></slot>`}};m([v({type:Number,reflect:!0})],Yi.prototype,"tabindex",2);customElements.define("qti-gap",Yi);var Cr=class extends ot{};Cr.styles=k`
427
+ `;customElements.define("qti-associable-hotspot",Fi);var $i=class extends y{constructor(){super(...arguments);this.tabindex=0}connectedCallback(){this.setAttribute("slot","qti-gap-img")}};p([x({type:Number,reflect:!0})],$i.prototype,"tabindex",2);customElements.define("qti-gap-img",$i);var Vi=class extends y{constructor(){super(...arguments);this.tabindex=0}connectedCallback(){super.connectedCallback(),this.setAttribute("slot","qti-gap-text")}render(){return E`<slot></slot>`}};p([x({type:Number,reflect:!0})],Vi.prototype,"tabindex",2);customElements.define("qti-gap-text",Vi);var Yi=class extends y{constructor(){super(...arguments);this.tabindex=0}render(){return E` <slot name="qti-gap-text"></slot>`}};p([x({type:Number,reflect:!0})],Yi.prototype,"tabindex",2);customElements.define("qti-gap",Yi);var Nr=class extends ot{};Nr.styles=k`
427
428
  :host {
428
429
  position: absolute;
429
430
  }
430
- `,m([v({attribute:"aria-ordervalue",type:Number,reflect:!0})],Cr.prototype,"order",2);customElements.define("qti-hotspot-choice",Cr);var Gi=class extends ot{render(){return E`<div part="ch"><div part="cha"></div></div>
431
- <slot></slot> `}};Gi=m([D("qti-hottext")],Gi);var On=class extends y{};customElements.define("qti-inline-choice",On);var Sr=class extends ot{render(){return E`<div part="ch"><div part="cha"></div></div>
431
+ `,p([x({attribute:"aria-ordervalue",type:Number,reflect:!0})],Nr.prototype,"order",2);customElements.define("qti-hotspot-choice",Nr);var Gi=class extends ot{render(){return E`<div part="ch"><div part="cha"></div></div>
432
+ <slot></slot> `}};Gi=p([R("qti-hottext")],Gi);var On=class extends y{};customElements.define("qti-inline-choice",On);var Sr=class extends ot{render(){return E`<div part="ch"><div part="cha"></div></div>
432
433
  <slot part="slot"></slot> `}};Sr.styles=k`
433
434
  :host {
434
435
  display: flex;
@@ -437,52 +438,8 @@ Make sure to test your application with a production build as repeat registratio
437
438
  width: 100%;
438
439
  display: block;
439
440
  }
440
- `,Sr=m([D("qti-simple-choice")],Sr);var Nr=class extends y{render(){return E`<slot @slotchange=${this.handleSlotChange}></slot>`}handleSlotChange(r){var s,n,o;let i=Array.from((n=(s=this.firstElementChild)==null?void 0:s.childNodes)!=null?n:[]).find(u=>u.nodeType===Node.COMMENT_NODE);try{this.operatorFunction=new Function("context","fn","item",(o=i.textContent)!=null?o:"")}catch(u){console.error("custom-operator contains invalid javascript code",u)}}calculate(){let r={match:vr.match,variable:s=>{var n,o,u;return(u=(o=(n=this.context)==null?void 0:n.variables.find(c=>c.identifier===s))==null?void 0:o.value)!=null?u:""},correct:s=>{var n,o,u;return(u=(o=(n=this.context)==null?void 0:n.variables.find(c=>c.identifier===s))==null?void 0:o.correctResponse)!=null?u:""}},i={getVariable:s=>{var n;return(n=this.context)==null?void 0:n.variables.find(o=>o.identifier===s)},updateOutcomeVariable:(s,n)=>{this.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:s,value:n}}))}};return this.operatorFunction(this.context,r,i)}};m([z({context:Ti,subscribe:!0}),v({attribute:!1})],Nr.prototype,"context",2),Nr=m([D("qti-custom-operator")],Nr);var il=`/* PK: Tailwind theming file for all qti-components
441
- Uses tailwind components and utilities from the other files
442
-
443
- https://play.tailwindcss.com/OFThGk8CbR
444
- https://play.tailwindcss.com/CeHVrnwgXR
445
- https://play.tailwindcss.com/JOgoCf81JM
446
-
447
- You should in you project include modern-normalize.css
448
-
449
- Then we create tailwind components
450
- Then we consume these components in our qti-webcomponents
451
-
452
- outline: used for focus
453
- ring: used for border around the elements, can be active, its an inner ring, except for
454
- the dropping well, because that has to surround the drag with the inner ring
455
-
456
- There are 6 types
457
- - text : text-entry and extended-text
458
- - select : inline-choice
459
- - button : .input-control-hidden qti-choice, qti-hotspot
460
- - check : qti-choice, qti-hotspot
461
- - drag : gap-match, match, order, associate
462
- - drop : gap-match, match, order, associate
463
- - spot : gap-select-point, graphic-order, qti-graphic-associate
464
-
465
- trying to get the follower modifiers to work:
466
-
467
- - sm , for elements inside text
468
- - lg, , for large readable containers
469
- - in , inline in text
470
-
471
- taking into account cursors, select-none for some of the elements
472
- */
473
-
474
- /* FIXMEs
475
- Outline always on top, sometimes it slips under the hover background
476
- Intext with inline gaps does not align nicely with existing text https://play.tailwindcss.com/cJEGhvANwM
477
- modifiers can not be in components, like this example where red should be a modifier inside base https://play.tailwindcss.com/JSnnv1Vvab?file=css
478
- */
479
-
480
- /* @layer base, components, utilities, variants; */
481
-
482
- /* layout, dimensions, design */
483
-
484
- /** default styles for all components */
485
-
441
+ `,Sr=p([R("qti-simple-choice")],Sr);var Ir=class extends y{render(){return E`<slot @slotchange=${this.handleSlotChange}></slot>`}handleSlotChange(r){var s,n,o;let i=Array.from((n=(s=this.firstElementChild)==null?void 0:s.childNodes)!=null?n:[]).find(u=>u.nodeType===Node.COMMENT_NODE);try{this.operatorFunction=new Function("context","fn","item",(o=i.textContent)!=null?o:"")}catch(u){console.error("custom-operator contains invalid javascript code",u)}}calculate(){let r={match:_r.match,variable:s=>{var n,o,u;return(u=(o=(n=this.context)==null?void 0:n.variables.find(c=>c.identifier===s))==null?void 0:o.value)!=null?u:""},correct:s=>{var n,o,u;return(u=(o=(n=this.context)==null?void 0:n.variables.find(c=>c.identifier===s))==null?void 0:o.correctResponse)!=null?u:""}},i={getVariable:s=>{var n;return(n=this.context)==null?void 0:n.variables.find(o=>o.identifier===s)},updateOutcomeVariable:(s,n)=>{this.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:s,value:n}}))}};return this.operatorFunction(this.context,r,i)}};p([j({context:xi,subscribe:!0}),x({attribute:!1})],Ir.prototype,"context",2),Ir=p([R("qti-custom-operator")],Ir);var nl=`
442
+ /** default styles for all components */
486
443
  *, ::before, ::after{
487
444
  --tw-border-spacing-x: 0;
488
445
  --tw-border-spacing-y: 0;
@@ -532,7 +489,6 @@ Make sure to test your application with a production build as repeat registratio
532
489
  --tw-backdrop-saturate: ;
533
490
  --tw-backdrop-sepia: ;
534
491
  }
535
-
536
492
  ::backdrop{
537
493
  --tw-border-spacing-x: 0;
538
494
  --tw-border-spacing-y: 0;
@@ -582,100 +538,106 @@ Make sure to test your application with a production build as repeat registratio
582
538
  --tw-backdrop-saturate: ;
583
539
  --tw-backdrop-sepia: ;
584
540
  }
585
-
586
541
  /** The different components, you can choose only one */
587
-
588
542
  /* - button : .input-control-hidden qti-choice, qti-hotspot */
589
-
590
543
  /* - select : inline-choice */
591
-
592
544
  /* - check : qti-choice, qti-hotspot */
593
-
594
545
  /* !important, remove for checkbox and radio the active ring, the radio and checkbox will be selected instead */
595
-
596
546
  /* @apply select-none; */
597
-
598
547
  /* - text : text-entry and extended-text */
599
-
600
548
  /* - spot : gap-select-point, graphic-order, qti-graphic-associate */
601
-
602
549
  /* - drag : gap-match, match, order, associate */
603
-
604
550
  /* - drop : gap-match, match, order, associate */
605
-
606
551
  /** End components */
607
-
608
552
  /* hover, every element has a hover, except disabled( which overrides hover */
609
-
610
553
  /* focus, every element has a focus, even drop ( for keyboard access, eventually ) */
611
-
612
554
  /* active, choice active class and, used on checkbox and radio where not .qti-input-choice-hidden */
613
-
614
555
  /* readonly, overwrites cursor, hover background, outline for focus and ring */
615
-
616
556
  /* disabled, make gray state */
617
-
618
557
  /* drag in the drop, else the drag in the drop was black and not gray */
619
-
620
558
  /** Modifiers */
621
-
622
559
  /* PK: There was no utility to reset the ring-inset
623
560
  We use this for the drop container, where we want the ring to have an outset
624
561
  So the drag, with ring-inset, snugs neatly into the drop with ring-'outset'
625
562
  by unsetting the ring-inset */
626
-
627
563
  /* intext for elements which has to appear in text
628
564
  - intext : gap-match > qti-gap, hottext > hottext, select
629
565
  */
630
-
631
566
  /* small for elements which has to appear in text
632
567
  - intext : gap-match > qti-gap, hottext > hottext, select
633
568
  */
634
-
635
569
  /* @apply gap-0.5 rounded !px-1 !py-0 outline-offset-0 ring-1; */
570
+ /* PK: Tailwind theming file for all qti-components
571
+ Uses tailwind components and utilities from the other files
636
572
 
637
- /* QTI Interactions */
573
+ https://play.tailwindcss.com/OFThGk8CbR
574
+ https://play.tailwindcss.com/CeHVrnwgXR
575
+ https://play.tailwindcss.com/JOgoCf81JM
576
+
577
+ You should in you project include modern-normalize.css
578
+
579
+ Then we create tailwind components
580
+ Then we consume these components in our qti-webcomponents
581
+
582
+ outline: used for focus
583
+ ring: used for border around the elements, can be active, its an inner ring, except for
584
+ the dropping well, because that has to surround the drag with the inner ring
585
+
586
+ There are 6 types
587
+ - text : text-entry and extended-text
588
+ - select : inline-choice
589
+ - button : .input-control-hidden qti-choice, qti-hotspot
590
+ - check : qti-choice, qti-hotspot
591
+ - drag : gap-match, match, order, associate
592
+ - drop : gap-match, match, order, associate
593
+ - spot : gap-select-point, graphic-order, qti-graphic-associate
594
+
595
+ trying to get the follower modifiers to work:
638
596
 
597
+ - sm , for elements inside text
598
+ - lg, , for large readable containers
599
+ - in , inline in text
600
+
601
+ taking into account cursors, select-none for some of the elements
602
+ */
603
+ /* FIXMEs
604
+ Outline always on top, sometimes it slips under the hover background
605
+ Intext with inline gaps does not align nicely with existing text https://play.tailwindcss.com/cJEGhvANwM
606
+ modifiers can not be in components, like this example where red should be a modifier inside base https://play.tailwindcss.com/JSnnv1Vvab?file=css
607
+ */
608
+ /* @layer base, components, utilities, variants; */
609
+ /* layout, dimensions, design */
610
+ /* QTI Interactions */
639
611
  .qti-underline {
640
612
  text-decoration: underline;
641
613
  }
642
-
643
614
  .qti-align-left {
644
615
  text-align: left;
645
616
  }
646
-
647
617
  .qti-align-center {
648
618
  text-align: center;
649
619
  }
650
-
651
620
  .qti-align-right {
652
621
  text-align: right;
653
622
  }
654
-
655
623
  .qti-valign-top {
656
624
  vertical-align: top;
657
625
  }
658
-
659
626
  .qti-valign-middle {
660
627
  vertical-align: middle;
661
628
  }
662
-
663
629
  .qti-valign-baseline {
664
630
  vertical-align: baseline;
665
631
  }
666
-
667
632
  .qti-valign-bottom {
668
633
  vertical-align: bottom;
669
634
  }
670
-
671
635
  .qti-fullwidth {
672
636
  width: 100%;
673
637
  }
674
-
675
638
  .qti-hidden {
676
639
  display: none;
677
640
  }
678
-
679
641
  .qti-visually-hidden {
680
642
  position: fixed !important;
681
643
  overflow: hidden;
@@ -685,12 +647,10 @@ Make sure to test your application with a production build as repeat registratio
685
647
  margin: -1px;
686
648
  clip: rect(1px 1px 1px 1px);
687
649
  }
688
-
689
650
  .qti-bordered {
690
651
  padding: 2px;
691
652
  border: 1px solid #888;
692
653
  }
693
-
694
654
  .qti-well{
695
655
  cursor: pointer;
696
656
  outline: 2px solid transparent;
@@ -715,165 +675,125 @@ Make sure to test your application with a production build as repeat registratio
715
675
  --tw-text-opacity: 1;
716
676
  color: rgb(75 85 99 / var(--tw-text-opacity));
717
677
  }
718
-
719
678
  .qti-layout-row {
720
679
  display: flow-root;
721
680
  width: 100%;
722
681
  }
723
-
724
682
  .qti-layout-row [class*='qti-layout-col'] {
725
683
  margin-left: 2.1276595745%;
726
684
  float: left;
727
685
  }
728
-
729
686
  .qti-layout-row [class*='qti-layout-col']:first-child {
730
687
  margin-left: 0;
731
688
  }
732
-
733
689
  .qti-layout-row .qti-layout-col12 {
734
690
  width: 100%;
735
691
  }
736
-
737
692
  .qti-layout-row .qti-layout-offset12 {
738
693
  margin-left: 104.2553191489%;
739
694
  }
740
-
741
695
  .qti-layout-row .qti-layout-offset12:first-child {
742
696
  margin-left: 102.1276595745%;
743
697
  }
744
-
745
698
  .qti-layout-row .qti-layout-col11 {
746
699
  width: 91.4893617021%;
747
700
  }
748
-
749
701
  .qti-layout-row .qti-layout-offset11 {
750
702
  margin-left: 95.7446808511%;
751
703
  }
752
-
753
704
  .qti-layout-row .qti-layout-offset11:first-child {
754
705
  margin-left: 93.6170212766%;
755
706
  }
756
-
757
707
  .qti-layout-row .qti-layout-col10 {
758
708
  width: 82.9787234043%;
759
709
  }
760
-
761
710
  .qti-layout-row .qti-layout-offset10 {
762
711
  margin-left: 87.2340425532%;
763
712
  }
764
-
765
713
  .qti-layout-row .qti-layout-offset10:first-child {
766
714
  margin-left: 85.1063829787%;
767
715
  }
768
-
769
716
  .qti-layout-row .qti-layout-col9 {
770
717
  width: 74.4680851064%;
771
718
  }
772
-
773
719
  .qti-layout-row .qti-layout-offset9 {
774
720
  margin-left: 78.7234042553%;
775
721
  }
776
-
777
722
  .qti-layout-row .qti-layout-offset9:first-child {
778
723
  margin-left: 76.5957446809%;
779
724
  }
780
-
781
725
  .qti-layout-row .qti-layout-col8 {
782
726
  width: 65.9574468085%;
783
727
  }
784
-
785
728
  .qti-layout-row .qti-layout-offset8 {
786
729
  margin-left: 70.2127659574%;
787
730
  }
788
-
789
731
  .qti-layout-row .qti-layout-offset8:first-child {
790
732
  margin-left: 68.085106383%;
791
733
  }
792
-
793
734
  .qti-layout-row .qti-layout-col7 {
794
735
  width: 57.4468085106%;
795
736
  }
796
-
797
737
  .qti-layout-row .qti-layout-offset7 {
798
738
  margin-left: 61.7021276596%;
799
739
  }
800
-
801
740
  .qti-layout-row .qti-layout-offset7:first-child {
802
741
  margin-left: 59.5744680851%;
803
742
  }
804
-
805
743
  .qti-layout-row .qti-layout-col6 {
806
744
  width: 48.9361702128%;
807
745
  }
808
-
809
746
  .qti-layout-row .qti-layout-offset6 {
810
747
  margin-left: 53.1914893617%;
811
748
  }
812
-
813
749
  .qti-layout-row .qti-layout-offset6:first-child {
814
750
  margin-left: 51.0638297872%;
815
751
  }
816
-
817
752
  .qti-layout-row .qti-layout-col5 {
818
753
  width: 40.4255319149%;
819
754
  }
820
-
821
755
  .qti-layout-row .qti-layout-offset5 {
822
756
  margin-left: 44.6808510638%;
823
757
  }
824
-
825
758
  .qti-layout-row .qti-layout-offset5:first-child {
826
759
  margin-left: 42.5531914894%;
827
760
  }
828
-
829
761
  .qti-layout-row .qti-layout-col4 {
830
762
  width: 31.914893617%;
831
763
  }
832
-
833
764
  .qti-layout-row .qti-layout-offset4 {
834
765
  margin-left: 36.170212766%;
835
766
  }
836
-
837
767
  .qti-layout-row .qti-layout-offset4:first-child {
838
768
  margin-left: 34.0425531915%;
839
769
  }
840
-
841
770
  .qti-layout-row .qti-layout-col3 {
842
771
  width: 23.4042553191%;
843
772
  }
844
-
845
773
  .qti-layout-row .qti-layout-offset3 {
846
774
  margin-left: 27.6595744681%;
847
775
  }
848
-
849
776
  .qti-layout-row .qti-layout-offset3:first-child {
850
777
  margin-left: 25.5319148936%;
851
778
  }
852
-
853
779
  .qti-layout-row .qti-layout-col2 {
854
780
  width: 14.8936170213%;
855
781
  }
856
-
857
782
  .qti-layout-row .qti-layout-offset2 {
858
783
  margin-left: 19.1489361702%;
859
784
  }
860
-
861
785
  .qti-layout-row .qti-layout-offset2:first-child {
862
786
  margin-left: 17.0212765957%;
863
787
  }
864
-
865
788
  .qti-layout-row .qti-layout-col1 {
866
789
  width: 6.3829787234%;
867
790
  }
868
-
869
791
  .qti-layout-row .qti-layout-offset1 {
870
792
  margin-left: 10.6382978723%;
871
793
  }
872
-
873
794
  .qti-layout-row .qti-layout-offset1:first-child {
874
795
  margin-left: 8.5106382979%;
875
796
  }
876
-
877
797
  /* .qti-input-width-1 {
878
798
  width: 1ch;
879
799
  min-width: 1ch;
@@ -910,13 +830,11 @@ Make sure to test your application with a production build as repeat registratio
910
830
  width: 72ch;
911
831
  min-width: 72ch;
912
832
  } */
913
-
914
833
  qti-choice-interaction{
915
834
  margin-top: 0.5rem;
916
835
  margin-bottom: 0.5rem;
917
836
  gap: 0.5rem;
918
837
  }
919
-
920
838
  qti-choice-interaction.qti-input-control-hidden qti-simple-choice{
921
839
  cursor: pointer;
922
840
  border-radius: 0.375rem;
@@ -938,17 +856,14 @@ qti-choice-interaction.qti-input-control-hidden qti-simple-choice{
938
856
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
939
857
  /* @apply select-none; */
940
858
  }
941
-
942
859
  qti-choice-interaction.qti-input-control-hidden qti-simple-choice:hover{
943
860
  --tw-bg-opacity: 1;
944
861
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
945
862
  }
946
-
947
863
  qti-choice-interaction.qti-input-control-hidden qti-simple-choice:focus{
948
864
  outline-width: 2px;
949
865
  outline-color: #93c5fd;
950
866
  }
951
-
952
867
  qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-checked="true"]{
953
868
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
954
869
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -956,7 +871,6 @@ qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-checked="
956
871
  --tw-ring-opacity: 1;
957
872
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
958
873
  }
959
-
960
874
  qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-disabled="true"]{
961
875
  cursor: not-allowed;
962
876
  --tw-bg-opacity: 1;
@@ -969,12 +883,10 @@ qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-disabled=
969
883
  --tw-ring-opacity: 1;
970
884
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
971
885
  }
972
-
973
886
  qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-disabled="true"] > *{
974
887
  --tw-text-opacity: 1 !important;
975
888
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
976
889
  }
977
-
978
890
  qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-readonly="true"]{
979
891
  cursor: pointer;
980
892
  --tw-bg-opacity: 1;
@@ -987,7 +899,6 @@ qti-choice-interaction.qti-input-control-hidden qti-simple-choice[aria-readonly=
987
899
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
988
900
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
989
901
  }
990
-
991
902
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice{
992
903
  cursor: pointer;
993
904
  border-radius: 0.375rem;
@@ -1012,13 +923,11 @@ qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice{
1012
923
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
1013
924
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
1014
925
  }
1015
-
1016
926
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice::part(cha) {
1017
927
  /* let the checkmark or radio circle already take up space, else when checking everyhing collapses */
1018
928
  height: 66.666667%;
1019
929
  width: 66.666667%;
1020
930
  }
1021
-
1022
931
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='radio']::part(ch){
1023
932
  display: flex;
1024
933
  height: 1.25rem;
@@ -1037,13 +946,11 @@ qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='ra
1037
946
  --tw-ring-opacity: 1;
1038
947
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
1039
948
  }
1040
-
1041
949
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='radio'][aria-checked='true']::part(cha){
1042
950
  border-radius: 9999px;
1043
951
  --tw-bg-opacity: 1;
1044
952
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
1045
953
  }
1046
-
1047
954
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='checkbox']::part(ch){
1048
955
  display: flex;
1049
956
  height: 1.25rem;
@@ -1062,23 +969,19 @@ qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='ch
1062
969
  --tw-ring-opacity: 1;
1063
970
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
1064
971
  }
1065
-
1066
972
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[role='checkbox'][aria-checked='true']::part(cha){
1067
973
  --tw-bg-opacity: 1;
1068
974
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
1069
975
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
1070
976
  }
1071
-
1072
977
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice:hover{
1073
978
  --tw-bg-opacity: 1;
1074
979
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1075
980
  }
1076
-
1077
981
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice:focus{
1078
982
  outline-width: 2px;
1079
983
  outline-color: #93c5fd;
1080
984
  }
1081
-
1082
985
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-checked="true"]{
1083
986
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1084
987
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -1086,7 +989,6 @@ qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-che
1086
989
  --tw-ring-opacity: 1;
1087
990
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
1088
991
  }
1089
-
1090
992
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-disabled="true"]{
1091
993
  cursor: not-allowed;
1092
994
  --tw-bg-opacity: 1;
@@ -1099,12 +1001,10 @@ qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-dis
1099
1001
  --tw-ring-opacity: 1;
1100
1002
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
1101
1003
  }
1102
-
1103
1004
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-disabled="true"] > *{
1104
1005
  --tw-text-opacity: 1 !important;
1105
1006
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
1106
1007
  }
1107
-
1108
1008
  qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-readonly="true"]{
1109
1009
  cursor: pointer;
1110
1010
  --tw-bg-opacity: 1;
@@ -1117,17 +1017,22 @@ qti-choice-interaction:not(.qti-input-control-hidden) qti-simple-choice[aria-rea
1117
1017
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1118
1018
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1119
1019
  }
1120
-
1020
+ qti-choice-interaction qti-simple-choice[data-correct-response='true'] {
1021
+ /* @apply bg-green-100 text-green-600; */
1022
+ }
1023
+ qti-choice-interaction qti-simple-choice[data-correct-response='true']::after {
1024
+ content: '\\02714';
1025
+ --tw-text-opacity: 1;
1026
+ color: rgb(22 163 74 / var(--tw-text-opacity));
1027
+ }
1121
1028
  qti-choice-interaction qti-simple-choice > p{
1122
1029
  margin: 0px;
1123
1030
  padding: 0px;
1124
1031
  }
1125
-
1126
1032
  qti-text-entry-interaction{
1127
1033
  margin-top: 0.5rem;
1128
1034
  margin-bottom: 0.5rem;
1129
1035
  }
1130
-
1131
1036
  qti-text-entry-interaction::part(input){
1132
1037
  cursor: pointer;
1133
1038
  outline: 2px solid transparent;
@@ -1148,22 +1053,18 @@ qti-text-entry-interaction::part(input){
1148
1053
  --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
1149
1054
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1150
1055
  }
1151
-
1152
1056
  qti-text-entry-interaction::part(input):hover{
1153
1057
  --tw-bg-opacity: 1;
1154
1058
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1155
1059
  }
1156
-
1157
1060
  qti-text-entry-interaction::part(input):focus{
1158
1061
  outline-width: 2px;
1159
1062
  outline-color: #93c5fd;
1160
1063
  }
1161
-
1162
1064
  qti-extended-text-interaction{
1163
1065
  margin-top: 0.5rem;
1164
1066
  margin-bottom: 0.5rem;
1165
1067
  }
1166
-
1167
1068
  qti-extended-text-interaction::part(textarea){
1168
1069
  cursor: pointer;
1169
1070
  outline: 2px solid transparent;
@@ -1184,23 +1085,19 @@ qti-extended-text-interaction::part(textarea){
1184
1085
  --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);
1185
1086
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1186
1087
  }
1187
-
1188
1088
  qti-extended-text-interaction::part(textarea):hover{
1189
1089
  --tw-bg-opacity: 1;
1190
1090
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1191
1091
  }
1192
-
1193
1092
  qti-extended-text-interaction::part(textarea):focus{
1194
1093
  outline-width: 2px;
1195
1094
  outline-color: #93c5fd;
1196
1095
  }
1197
-
1198
1096
  qti-gap-match-interaction{
1199
1097
  margin-top: 0.5rem;
1200
1098
  margin-bottom: 0.5rem;
1201
1099
  line-height: 2rem;
1202
1100
  }
1203
-
1204
1101
  qti-gap-match-interaction qti-gap-text{
1205
1102
  cursor: pointer;
1206
1103
  border-radius: 0.375rem;
@@ -1237,17 +1134,14 @@ qti-gap-match-interaction qti-gap-text{
1237
1134
  padding-right: 0.5rem;
1238
1135
  line-height: 1.5;
1239
1136
  }
1240
-
1241
1137
  qti-gap-match-interaction qti-gap-text:hover{
1242
1138
  --tw-bg-opacity: 1;
1243
1139
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1244
1140
  }
1245
-
1246
1141
  qti-gap-match-interaction qti-gap-text:focus{
1247
1142
  outline-width: 2px;
1248
1143
  outline-color: #93c5fd;
1249
1144
  }
1250
-
1251
1145
  qti-gap-match-interaction qti-gap{
1252
1146
  cursor: pointer;
1253
1147
  border-radius: 0.375rem;
@@ -1272,27 +1166,21 @@ qti-gap-match-interaction qti-gap{
1272
1166
  display: inline-flex;
1273
1167
  line-height: 1.5;
1274
1168
  }
1275
-
1276
1169
  qti-gap-match-interaction qti-gap:hover{
1277
1170
  --tw-bg-opacity: 1;
1278
1171
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1279
1172
  }
1280
-
1281
1173
  qti-gap-match-interaction qti-gap:focus{
1282
1174
  outline-width: 2px;
1283
1175
  outline-color: #93c5fd;
1284
1176
  }
1285
-
1286
1177
  qti-gap-match-interaction qti-gap{
1287
1178
  width: 8rem;
1288
1179
  }
1289
-
1290
1180
  /* PK: should be set in the javascript, default 100px, or listening to data-width attribute according to the spec */
1291
-
1292
1181
  qti-gap-match-interaction qti-gap:empty:after {
1293
1182
  content: '\\0000a0'; /* when empty, put a space in it */
1294
1183
  }
1295
-
1296
1184
  qti-gap-match-interaction qti-gap:not(:empty){
1297
1185
  display: inline-flex;
1298
1186
  width: auto;
@@ -1301,7 +1189,6 @@ qti-gap-match-interaction qti-gap:not(:empty){
1301
1189
  --tw-shadow-colored: 0 0 #0000;
1302
1190
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
1303
1191
  }
1304
-
1305
1192
  qti-gap-match-interaction qti-gap:not(:empty) > *{
1306
1193
  flex: 1 1 0%;
1307
1194
  --tw-rotate: 0deg;
@@ -1312,17 +1199,14 @@ qti-gap-match-interaction qti-gap:not(:empty) > *{
1312
1199
  --tw-ring-opacity: 1;
1313
1200
  --tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity));
1314
1201
  }
1315
-
1316
1202
  qti-hotspot-interaction{
1317
1203
  margin-top: 0.5rem;
1318
1204
  margin-bottom: 0.5rem;
1319
1205
  }
1320
-
1321
1206
  qti-hotspot-interaction qti-hotspot-choice:hover{
1322
1207
  background-color: rgb(219 234 254 / var(--tw-bg-opacity));
1323
1208
  --tw-bg-opacity: 0.3;
1324
1209
  }
1325
-
1326
1210
  qti-hotspot-interaction qti-hotspot-choice {
1327
1211
 
1328
1212
  /* &::after {
@@ -1333,7 +1217,6 @@ qti-hotspot-interaction qti-hotspot-choice {
1333
1217
  clip-path: inherit;
1334
1218
  } */
1335
1219
  }
1336
-
1337
1220
  qti-hotspot-interaction qti-hotspot-choice[shape='circle']{
1338
1221
  cursor: pointer;
1339
1222
  border-radius: 0.375rem;
@@ -1353,17 +1236,14 @@ qti-hotspot-interaction qti-hotspot-choice[shape='circle']{
1353
1236
  --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
1354
1237
  border-radius: 9999px;
1355
1238
  }
1356
-
1357
1239
  qti-hotspot-interaction qti-hotspot-choice[shape='circle']:hover{
1358
1240
  --tw-ring-opacity: 1;
1359
1241
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
1360
1242
  }
1361
-
1362
1243
  qti-hotspot-interaction qti-hotspot-choice[shape='circle']:focus{
1363
1244
  outline-width: 2px;
1364
1245
  outline-color: #93c5fd;
1365
1246
  }
1366
-
1367
1247
  qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-checked="true"]{
1368
1248
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1369
1249
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -1371,7 +1251,6 @@ qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-checked="true"]{
1371
1251
  --tw-ring-opacity: 1;
1372
1252
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
1373
1253
  }
1374
-
1375
1254
  qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-disabled="true"]{
1376
1255
  cursor: not-allowed;
1377
1256
  --tw-bg-opacity: 1;
@@ -1384,12 +1263,10 @@ qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-disabled="true"]
1384
1263
  --tw-ring-opacity: 1;
1385
1264
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
1386
1265
  }
1387
-
1388
1266
  qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-disabled="true"] > *{
1389
1267
  --tw-text-opacity: 1 !important;
1390
1268
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
1391
1269
  }
1392
-
1393
1270
  qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-readonly="true"]{
1394
1271
  cursor: pointer;
1395
1272
  --tw-bg-opacity: 1;
@@ -1402,7 +1279,6 @@ qti-hotspot-interaction qti-hotspot-choice[shape='circle'][aria-readonly="true"]
1402
1279
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1403
1280
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1404
1281
  }
1405
-
1406
1282
  qti-hotspot-interaction qti-hotspot-choice[shape='rect']{
1407
1283
  cursor: pointer;
1408
1284
  border-radius: 0.375rem;
@@ -1421,17 +1297,14 @@ qti-hotspot-interaction qti-hotspot-choice[shape='rect']{
1421
1297
  --tw-ring-opacity: 1;
1422
1298
  --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
1423
1299
  }
1424
-
1425
1300
  qti-hotspot-interaction qti-hotspot-choice[shape='rect']:hover{
1426
1301
  --tw-ring-opacity: 1;
1427
1302
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
1428
1303
  }
1429
-
1430
1304
  qti-hotspot-interaction qti-hotspot-choice[shape='rect']:focus{
1431
1305
  outline-width: 2px;
1432
1306
  outline-color: #93c5fd;
1433
1307
  }
1434
-
1435
1308
  qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-checked="true"]{
1436
1309
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1437
1310
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -1439,7 +1312,6 @@ qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-checked="true"]{
1439
1312
  --tw-ring-opacity: 1;
1440
1313
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
1441
1314
  }
1442
-
1443
1315
  qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-disabled="true"]{
1444
1316
  cursor: not-allowed;
1445
1317
  --tw-bg-opacity: 1;
@@ -1452,12 +1324,10 @@ qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-disabled="true"]{
1452
1324
  --tw-ring-opacity: 1;
1453
1325
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
1454
1326
  }
1455
-
1456
1327
  qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-disabled="true"] > *{
1457
1328
  --tw-text-opacity: 1 !important;
1458
1329
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
1459
1330
  }
1460
-
1461
1331
  qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-readonly="true"]{
1462
1332
  cursor: pointer;
1463
1333
  --tw-bg-opacity: 1;
@@ -1470,17 +1340,14 @@ qti-hotspot-interaction qti-hotspot-choice[shape='rect'][aria-readonly="true"]{
1470
1340
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1471
1341
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1472
1342
  }
1473
-
1474
1343
  qti-hotspot-interaction qti-hotspot-choice[shape='poly']:hover{
1475
1344
  --tw-bg-opacity: 1;
1476
1345
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1477
1346
  }
1478
-
1479
1347
  qti-hotspot-interaction qti-hotspot-choice[shape='poly']:focus{
1480
1348
  outline-width: 2px;
1481
1349
  outline-color: #93c5fd;
1482
1350
  }
1483
-
1484
1351
  qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-checked="true"]{
1485
1352
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1486
1353
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -1488,7 +1355,6 @@ qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-checked="true"]{
1488
1355
  --tw-ring-opacity: 1;
1489
1356
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
1490
1357
  }
1491
-
1492
1358
  qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-disabled="true"]{
1493
1359
  cursor: not-allowed;
1494
1360
  --tw-bg-opacity: 1;
@@ -1501,12 +1367,10 @@ qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-disabled="true"]{
1501
1367
  --tw-ring-opacity: 1;
1502
1368
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
1503
1369
  }
1504
-
1505
1370
  qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-disabled="true"] > *{
1506
1371
  --tw-text-opacity: 1 !important;
1507
1372
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
1508
1373
  }
1509
-
1510
1374
  qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-readonly="true"]{
1511
1375
  cursor: pointer;
1512
1376
  --tw-bg-opacity: 1;
@@ -1519,17 +1383,14 @@ qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-readonly="true"]{
1519
1383
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1520
1384
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1521
1385
  }
1522
-
1523
1386
  qti-hotspot-interaction qti-hotspot-choice[shape='poly'][aria-checked='true']{
1524
1387
  --tw-bg-opacity: 1;
1525
1388
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
1526
1389
  }
1527
-
1528
1390
  qti-hottext-interaction{
1529
1391
  margin-top: 0.5rem;
1530
1392
  margin-bottom: 0.5rem;
1531
1393
  }
1532
-
1533
1394
  qti-hottext-interaction.qti-input-control-hidden qti-hottext{
1534
1395
  cursor: pointer;
1535
1396
  border-radius: 0.375rem;
@@ -1555,17 +1416,14 @@ qti-hottext-interaction.qti-input-control-hidden qti-hottext{
1555
1416
  /* @apply inline-flex gap-1 px-1 py-0 align-bottom font-normal ring-offset-0; */
1556
1417
  /* @apply gap-0.5 rounded !px-1 !py-0 outline-offset-0 ring-1; */
1557
1418
  }
1558
-
1559
1419
  qti-hottext-interaction.qti-input-control-hidden qti-hottext:hover{
1560
1420
  --tw-bg-opacity: 1;
1561
1421
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1562
1422
  }
1563
-
1564
1423
  qti-hottext-interaction.qti-input-control-hidden qti-hottext:focus{
1565
1424
  outline-width: 2px;
1566
1425
  outline-color: #93c5fd;
1567
1426
  }
1568
-
1569
1427
  qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-checked="true"]{
1570
1428
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1571
1429
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -1573,7 +1431,6 @@ qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-checked="true"
1573
1431
  --tw-ring-opacity: 1;
1574
1432
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
1575
1433
  }
1576
-
1577
1434
  qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-disabled="true"]{
1578
1435
  cursor: not-allowed;
1579
1436
  --tw-bg-opacity: 1;
@@ -1586,12 +1443,10 @@ qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-disabled="true
1586
1443
  --tw-ring-opacity: 1;
1587
1444
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
1588
1445
  }
1589
-
1590
1446
  qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-disabled="true"] > *{
1591
1447
  --tw-text-opacity: 1 !important;
1592
1448
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
1593
1449
  }
1594
-
1595
1450
  qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-readonly="true"]{
1596
1451
  cursor: pointer;
1597
1452
  --tw-bg-opacity: 1;
@@ -1604,11 +1459,9 @@ qti-hottext-interaction.qti-input-control-hidden qti-hottext[aria-readonly="true
1604
1459
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1605
1460
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1606
1461
  }
1607
-
1608
1462
  qti-hottext-interaction.qti-input-control-hidden qti-hottext::part(ch){
1609
1463
  display: none !important;
1610
1464
  }
1611
-
1612
1465
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext{
1613
1466
  cursor: pointer;
1614
1467
  border-radius: 0.375rem;
@@ -1633,13 +1486,11 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext{
1633
1486
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
1634
1487
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
1635
1488
  }
1636
-
1637
1489
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext::part(cha) {
1638
1490
  /* let the checkmark or radio circle already take up space, else when checking everyhing collapses */
1639
1491
  height: 66.666667%;
1640
1492
  width: 66.666667%;
1641
1493
  }
1642
-
1643
1494
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='radio']::part(ch){
1644
1495
  display: flex;
1645
1496
  height: 1.25rem;
@@ -1658,13 +1509,11 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='radio']
1658
1509
  --tw-ring-opacity: 1;
1659
1510
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
1660
1511
  }
1661
-
1662
1512
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='radio'][aria-checked='true']::part(cha){
1663
1513
  border-radius: 9999px;
1664
1514
  --tw-bg-opacity: 1;
1665
1515
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
1666
1516
  }
1667
-
1668
1517
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='checkbox']::part(ch){
1669
1518
  display: flex;
1670
1519
  height: 1.25rem;
@@ -1683,13 +1532,11 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='checkbo
1683
1532
  --tw-ring-opacity: 1;
1684
1533
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity));
1685
1534
  }
1686
-
1687
1535
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[role='checkbox'][aria-checked='true']::part(cha){
1688
1536
  --tw-bg-opacity: 1;
1689
1537
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
1690
1538
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='currentColor' width='100%' height='100%' viewBox='0 0 24 24'%3E%3Cpath d='M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z'/%3E%3C/svg%3E");
1691
1539
  }
1692
-
1693
1540
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext{
1694
1541
  display: inline-flex;
1695
1542
 
@@ -1705,7 +1552,6 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext{
1705
1552
 
1706
1553
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1707
1554
  }
1708
-
1709
1555
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext::part(ch){
1710
1556
  height: 1rem !important;
1711
1557
  width: 1rem !important;
@@ -1713,17 +1559,14 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext::part(ch){
1713
1559
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
1714
1560
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
1715
1561
  }
1716
-
1717
1562
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext:hover{
1718
1563
  --tw-bg-opacity: 1;
1719
1564
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1720
1565
  }
1721
-
1722
1566
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext:focus{
1723
1567
  outline-width: 2px;
1724
1568
  outline-color: #93c5fd;
1725
1569
  }
1726
-
1727
1570
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-checked="true"]{
1728
1571
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
1729
1572
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -1731,7 +1574,6 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-checked=
1731
1574
  --tw-ring-opacity: 1;
1732
1575
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
1733
1576
  }
1734
-
1735
1577
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-disabled="true"]{
1736
1578
  cursor: not-allowed;
1737
1579
  --tw-bg-opacity: 1;
@@ -1744,12 +1586,10 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-disabled
1744
1586
  --tw-ring-opacity: 1;
1745
1587
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
1746
1588
  }
1747
-
1748
1589
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-disabled="true"] > *{
1749
1590
  --tw-text-opacity: 1 !important;
1750
1591
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
1751
1592
  }
1752
-
1753
1593
  qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-readonly="true"]{
1754
1594
  cursor: pointer;
1755
1595
  --tw-bg-opacity: 1;
@@ -1762,7 +1602,6 @@ qti-hottext-interaction:not(.qti-input-control-hidden) qti-hottext[aria-readonly
1762
1602
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
1763
1603
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
1764
1604
  }
1765
-
1766
1605
  qti-inline-choice-interaction::part(select){
1767
1606
  cursor: pointer;
1768
1607
  border-radius: 0.375rem;
@@ -1788,27 +1627,22 @@ qti-inline-choice-interaction::part(select){
1788
1627
  background: url("data:image/svg+xml,%3Csvg fill='currentColor' width='22' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' aria-hidden='true'%3E%3Cpath clip-rule='evenodd' fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'%3E%3C/path%3E%3C/svg%3E")
1789
1628
  no-repeat center right 6px;
1790
1629
  }
1791
-
1792
1630
  qti-inline-choice-interaction::part(select):hover{
1793
1631
  --tw-bg-opacity: 1;
1794
1632
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1795
1633
  }
1796
-
1797
1634
  qti-inline-choice-interaction::part(select):focus{
1798
1635
  outline-width: 2px;
1799
1636
  outline-color: #93c5fd;
1800
1637
  }
1801
-
1802
1638
  qti-inline-choice-interaction::part(select) { /* aria-checked:act aria-readonly:rdo aria-disabled:dis; */
1803
1639
  }
1804
-
1805
1640
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type{
1806
1641
  display: flex;
1807
1642
  flex-wrap: wrap;
1808
1643
  gap: 0.5rem;
1809
1644
  padding-bottom: 1rem;
1810
1645
  }
1811
-
1812
1646
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice{
1813
1647
  cursor: pointer;
1814
1648
  border-radius: 0.375rem;
@@ -1844,24 +1678,20 @@ qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type
1844
1678
  padding-left: 1rem;
1845
1679
  padding-right: 0.75rem;
1846
1680
  }
1847
-
1848
1681
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:hover{
1849
1682
  --tw-bg-opacity: 1;
1850
1683
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1851
1684
  }
1852
-
1853
1685
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:first-of-type qti-simple-associable-choice:focus{
1854
1686
  outline-width: 2px;
1855
1687
  outline-color: #93c5fd;
1856
1688
  }
1857
-
1858
1689
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type{
1859
1690
  display: grid;
1860
1691
  grid-auto-columns: minmax(0, 1fr);
1861
1692
  grid-auto-flow: column;
1862
1693
  gap: 0.5rem;
1863
1694
  }
1864
-
1865
1695
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice{
1866
1696
  cursor: pointer;
1867
1697
  border-radius: 0.375rem;
@@ -1884,24 +1714,20 @@ qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type
1884
1714
  --tw-ring-offset-width: 1px;
1885
1715
  --tw-ring-inset: unset;
1886
1716
  }
1887
-
1888
1717
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:hover{
1889
1718
  --tw-bg-opacity: 1;
1890
1719
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1891
1720
  }
1892
-
1893
1721
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice:focus{
1894
1722
  outline-width: 2px;
1895
1723
  outline-color: #93c5fd;
1896
1724
  }
1897
-
1898
1725
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice {
1899
1726
  /* @apply flex h-32 flex-col gap-2; */
1900
1727
  display: flex;
1901
1728
  height: 8rem;
1902
1729
  flex-direction: column;
1903
1730
  }
1904
-
1905
1731
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice{
1906
1732
  cursor: pointer;
1907
1733
  border-radius: 0.375rem;
@@ -1937,21 +1763,17 @@ qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type
1937
1763
  padding-left: 1rem;
1938
1764
  padding-right: 0.75rem;
1939
1765
  }
1940
-
1941
1766
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:hover{
1942
1767
  --tw-bg-opacity: 1;
1943
1768
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1944
1769
  }
1945
-
1946
1770
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice:focus{
1947
1771
  outline-width: 2px;
1948
1772
  outline-color: #93c5fd;
1949
1773
  }
1950
-
1951
1774
  qti-match-interaction:not(.qti-match-tabular) qti-simple-match-set:last-of-type qti-simple-associable-choice > qti-simple-associable-choice {
1952
1775
  flex-basis: fit-content;
1953
1776
  }
1954
-
1955
1777
  qti-order-interaction::part(qti-simple-choice),
1956
1778
  qti-order-interaction qti-simple-choice{
1957
1779
  cursor: pointer;
@@ -1988,19 +1810,16 @@ qti-order-interaction::part(qti-simple-choice),
1988
1810
  padding-left: 1rem;
1989
1811
  padding-right: 0.75rem;
1990
1812
  }
1991
-
1992
1813
  qti-order-interaction::part(qti-simple-choice):hover,
1993
1814
  qti-order-interaction qti-simple-choice:hover{
1994
1815
  --tw-bg-opacity: 1;
1995
1816
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
1996
1817
  }
1997
-
1998
1818
  qti-order-interaction::part(qti-simple-choice):focus,
1999
1819
  qti-order-interaction qti-simple-choice:focus{
2000
1820
  outline-width: 2px;
2001
1821
  outline-color: #93c5fd;
2002
1822
  }
2003
-
2004
1823
  qti-order-interaction::part(qti-simple-choice){
2005
1824
  display: flex;
2006
1825
  width: 100%;
@@ -2008,15 +1827,12 @@ qti-order-interaction::part(qti-simple-choice){
2008
1827
  overflow: hidden;
2009
1828
  text-overflow: ellipsis;
2010
1829
  }
2011
-
2012
1830
  qti-order-interaction::part(drops){
2013
1831
  gap: 0.5rem;
2014
1832
  }
2015
-
2016
1833
  qti-order-interaction::part(drags){
2017
1834
  gap: 0.5rem;
2018
1835
  }
2019
-
2020
1836
  qti-order-interaction::part(drop-list){
2021
1837
  cursor: pointer;
2022
1838
  border-radius: 0.375rem;
@@ -2041,17 +1857,14 @@ qti-order-interaction::part(drop-list){
2041
1857
  display: flex;
2042
1858
  min-height: 4rem;
2043
1859
  }
2044
-
2045
1860
  qti-order-interaction::part(drop-list):hover{
2046
1861
  --tw-bg-opacity: 1;
2047
1862
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
2048
1863
  }
2049
-
2050
1864
  qti-order-interaction::part(drop-list):focus{
2051
1865
  outline-width: 2px;
2052
1866
  outline-color: #93c5fd;
2053
1867
  }
2054
-
2055
1868
  qti-order-interaction::part(active){
2056
1869
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2057
1870
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -2059,7 +1872,6 @@ qti-order-interaction::part(active){
2059
1872
  --tw-ring-opacity: 1;
2060
1873
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
2061
1874
  }
2062
-
2063
1875
  qti-associate-interaction::part(qti-simple-associable-choice),
2064
1876
  qti-associate-interaction qti-simple-associable-choice{
2065
1877
  cursor: pointer;
@@ -2100,19 +1912,16 @@ qti-associate-interaction::part(qti-simple-associable-choice),
2100
1912
  padding-left: 1rem;
2101
1913
  padding-right: 0.75rem;
2102
1914
  }
2103
-
2104
1915
  qti-associate-interaction::part(qti-simple-associable-choice):hover,
2105
1916
  qti-associate-interaction qti-simple-associable-choice:hover{
2106
1917
  --tw-bg-opacity: 1;
2107
1918
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
2108
1919
  }
2109
-
2110
1920
  qti-associate-interaction::part(qti-simple-associable-choice):focus,
2111
1921
  qti-associate-interaction qti-simple-associable-choice:focus{
2112
1922
  outline-width: 2px;
2113
1923
  outline-color: #93c5fd;
2114
1924
  }
2115
-
2116
1925
  qti-associate-interaction::part(associables-container){
2117
1926
  margin-top: 0.5rem;
2118
1927
  margin-bottom: 0.5rem;
@@ -2126,7 +1935,6 @@ qti-associate-interaction::part(associables-container){
2126
1935
  rgb(0 0 0 / 0%) calc(50% + 1px)
2127
1936
  );
2128
1937
  }
2129
-
2130
1938
  qti-associate-interaction::part(active){
2131
1939
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2132
1940
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -2134,7 +1942,6 @@ qti-associate-interaction::part(active){
2134
1942
  --tw-ring-opacity: 1;
2135
1943
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
2136
1944
  }
2137
-
2138
1945
  qti-associate-interaction::part(drop-list){
2139
1946
  cursor: pointer;
2140
1947
  border-radius: 0.375rem;
@@ -2160,9 +1967,7 @@ qti-associate-interaction::part(drop-list){
2160
1967
  height: 3rem;
2161
1968
  width: 33.333333%;
2162
1969
  }
2163
-
2164
1970
  /* @apply my-2; */
2165
-
2166
1971
  qti-graphic-order-interaction qti-hotspot-choice{
2167
1972
  cursor: pointer;
2168
1973
  border-radius: 0.375rem;
@@ -2181,17 +1986,14 @@ qti-graphic-order-interaction qti-hotspot-choice{
2181
1986
  --tw-ring-opacity: 1;
2182
1987
  --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
2183
1988
  }
2184
-
2185
1989
  qti-graphic-order-interaction qti-hotspot-choice:hover{
2186
1990
  --tw-bg-opacity: 1;
2187
1991
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
2188
1992
  }
2189
-
2190
1993
  qti-graphic-order-interaction qti-hotspot-choice:focus{
2191
1994
  outline-width: 2px;
2192
1995
  outline-color: #93c5fd;
2193
1996
  }
2194
-
2195
1997
  qti-graphic-order-interaction qti-hotspot-choice[aria-checked="true"]{
2196
1998
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2197
1999
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -2199,7 +2001,6 @@ qti-graphic-order-interaction qti-hotspot-choice[aria-checked="true"]{
2199
2001
  --tw-ring-opacity: 1;
2200
2002
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
2201
2003
  }
2202
-
2203
2004
  qti-graphic-order-interaction qti-hotspot-choice[aria-disabled="true"]{
2204
2005
  cursor: not-allowed;
2205
2006
  --tw-bg-opacity: 1;
@@ -2212,12 +2013,10 @@ qti-graphic-order-interaction qti-hotspot-choice[aria-disabled="true"]{
2212
2013
  --tw-ring-opacity: 1;
2213
2014
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
2214
2015
  }
2215
-
2216
2016
  qti-graphic-order-interaction qti-hotspot-choice[aria-disabled="true"] > *{
2217
2017
  --tw-text-opacity: 1 !important;
2218
2018
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
2219
2019
  }
2220
-
2221
2020
  qti-graphic-order-interaction qti-hotspot-choice[aria-readonly="true"]{
2222
2021
  cursor: pointer;
2223
2022
  --tw-bg-opacity: 1;
@@ -2230,7 +2029,6 @@ qti-graphic-order-interaction qti-hotspot-choice[aria-readonly="true"]{
2230
2029
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
2231
2030
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
2232
2031
  }
2233
-
2234
2032
  /* &::after {
2235
2033
  content: '';
2236
2034
  @apply absolute top-0 block scale-75 bg-white;
@@ -2238,7 +2036,6 @@ qti-graphic-order-interaction qti-hotspot-choice[aria-readonly="true"]{
2238
2036
  width: inherit;
2239
2037
  clip-path: inherit;
2240
2038
  } */
2241
-
2242
2039
  qti-graphic-order-interaction qti-hotspot-choice[aria-ordervalue]{
2243
2040
  height: 1.5rem;
2244
2041
  width: 1.5rem;
@@ -2251,16 +2048,13 @@ qti-graphic-order-interaction qti-hotspot-choice[aria-ordervalue]{
2251
2048
  align-items: center;
2252
2049
  justify-content: center;
2253
2050
  }
2254
-
2255
2051
  qti-graphic-order-interaction qti-hotspot-choice[aria-ordervalue]::after {
2256
2052
  content: attr(aria-ordervalue) !important;
2257
2053
  }
2258
-
2259
2054
  qti-graphic-associate-interaction{
2260
2055
  position: relative;
2261
2056
  display: block;
2262
2057
  }
2263
-
2264
2058
  qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'] {
2265
2059
  /* border-radius: 100%;
2266
2060
  background-color: green; */
@@ -2281,17 +2075,14 @@ qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'] {
2281
2075
  --tw-ring-opacity: 1;
2282
2076
  --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
2283
2077
  }
2284
-
2285
2078
  qti-graphic-associate-interaction qti-associable-hotspot[shape='circle']:hover{
2286
2079
  --tw-bg-opacity: 1;
2287
2080
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
2288
2081
  }
2289
-
2290
2082
  qti-graphic-associate-interaction qti-associable-hotspot[shape='circle']:focus{
2291
2083
  outline-width: 2px;
2292
2084
  outline-color: #93c5fd;
2293
2085
  }
2294
-
2295
2086
  qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-checked="true"]{
2296
2087
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2297
2088
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -2299,7 +2090,6 @@ qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-ch
2299
2090
  --tw-ring-opacity: 1;
2300
2091
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
2301
2092
  }
2302
-
2303
2093
  qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-disabled="true"]{
2304
2094
  cursor: not-allowed;
2305
2095
  --tw-bg-opacity: 1;
@@ -2312,12 +2102,10 @@ qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-di
2312
2102
  --tw-ring-opacity: 1;
2313
2103
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
2314
2104
  }
2315
-
2316
2105
  qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-disabled="true"] > *{
2317
2106
  --tw-text-opacity: 1 !important;
2318
2107
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
2319
2108
  }
2320
-
2321
2109
  qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-readonly="true"]{
2322
2110
  cursor: pointer;
2323
2111
  --tw-bg-opacity: 1;
@@ -2330,7 +2118,6 @@ qti-graphic-associate-interaction qti-associable-hotspot[shape='circle'][aria-re
2330
2118
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
2331
2119
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
2332
2120
  }
2333
-
2334
2121
  qti-graphic-associate-interaction qti-associable-hotspot[shape='square'] {
2335
2122
  /* border-radius: 0; */
2336
2123
  /* background-color: green; */
@@ -2351,17 +2138,14 @@ qti-graphic-associate-interaction qti-associable-hotspot[shape='square'] {
2351
2138
  --tw-ring-opacity: 1;
2352
2139
  --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
2353
2140
  }
2354
-
2355
2141
  qti-graphic-associate-interaction qti-associable-hotspot[shape='square']:hover{
2356
2142
  --tw-bg-opacity: 1;
2357
2143
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
2358
2144
  }
2359
-
2360
2145
  qti-graphic-associate-interaction qti-associable-hotspot[shape='square']:focus{
2361
2146
  outline-width: 2px;
2362
2147
  outline-color: #93c5fd;
2363
2148
  }
2364
-
2365
2149
  qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-checked="true"]{
2366
2150
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2367
2151
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -2369,7 +2153,6 @@ qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-ch
2369
2153
  --tw-ring-opacity: 1;
2370
2154
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
2371
2155
  }
2372
-
2373
2156
  qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-disabled="true"]{
2374
2157
  cursor: not-allowed;
2375
2158
  --tw-bg-opacity: 1;
@@ -2382,12 +2165,10 @@ qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-di
2382
2165
  --tw-ring-opacity: 1;
2383
2166
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
2384
2167
  }
2385
-
2386
2168
  qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-disabled="true"] > *{
2387
2169
  --tw-text-opacity: 1 !important;
2388
2170
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
2389
2171
  }
2390
-
2391
2172
  qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-readonly="true"]{
2392
2173
  cursor: pointer;
2393
2174
  --tw-bg-opacity: 1;
@@ -2400,30 +2181,24 @@ qti-graphic-associate-interaction qti-associable-hotspot[shape='square'][aria-re
2400
2181
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
2401
2182
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
2402
2183
  }
2403
-
2404
2184
  qti-graphic-gap-match-interaction{
2405
2185
  position: relative;
2406
2186
  }
2407
-
2408
2187
  qti-graphic-gap-match-interaction img{
2409
2188
  margin: 0px;
2410
2189
  padding: 0px;
2411
2190
  }
2412
-
2413
2191
  qti-slider-interaction{
2414
2192
  display: block; /* else no screenshot will be made with html-to-image */
2415
2193
  }
2416
-
2417
2194
  qti-slider-interaction:hover{
2418
2195
  --tw-bg-opacity: 1;
2419
2196
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
2420
2197
  }
2421
-
2422
2198
  qti-slider-interaction:focus{
2423
2199
  outline-width: 2px;
2424
2200
  outline-color: #93c5fd;
2425
2201
  }
2426
-
2427
2202
  qti-slider-interaction[aria-checked="true"]{
2428
2203
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
2429
2204
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -2431,7 +2206,6 @@ qti-slider-interaction[aria-checked="true"]{
2431
2206
  --tw-ring-opacity: 1;
2432
2207
  --tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity));
2433
2208
  }
2434
-
2435
2209
  qti-slider-interaction[aria-disabled="true"]{
2436
2210
  cursor: not-allowed;
2437
2211
  --tw-bg-opacity: 1;
@@ -2444,12 +2218,10 @@ qti-slider-interaction[aria-disabled="true"]{
2444
2218
  --tw-ring-opacity: 1;
2445
2219
  --tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity));
2446
2220
  }
2447
-
2448
2221
  qti-slider-interaction[aria-disabled="true"] > *{
2449
2222
  --tw-text-opacity: 1 !important;
2450
2223
  color: rgb(107 114 128 / var(--tw-text-opacity)) !important;
2451
2224
  }
2452
-
2453
2225
  qti-slider-interaction[aria-readonly="true"]{
2454
2226
  cursor: pointer;
2455
2227
  --tw-bg-opacity: 1;
@@ -2462,34 +2234,28 @@ qti-slider-interaction[aria-readonly="true"]{
2462
2234
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
2463
2235
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
2464
2236
  }
2465
-
2466
2237
  qti-slider-interaction {
2467
2238
 
2468
2239
  --qti-tick-color: rgb(229 231 235 / 1);
2469
2240
  --qti-tick-width: 2px;
2470
2241
  }
2471
-
2472
2242
  qti-slider-interaction::part(slider){
2473
2243
  margin-left: 2rem;
2474
2244
  margin-right: 2rem; /* so the slider stays INSIDE of the qti-slider-interaction */ padding-bottom: 1rem; padding-top: 1.25rem; /* this keeps all content in the qti-slider interaction, also for html-to-image */
2475
2245
  }
2476
-
2477
2246
  qti-slider-interaction{
2478
2247
 
2479
2248
  --show-bounds: true;
2480
2249
  }
2481
-
2482
2250
  qti-slider-interaction::part(bounds){
2483
2251
  display: flex;
2484
2252
  width: 100%;
2485
2253
  justify-content: space-between; /* the two divs with value lower and upper will now be at start and end of this bounds container */ margin-bottom: 0.5rem; /* just so it aligns with the value 'knob' */
2486
2254
  }
2487
-
2488
2255
  qti-slider-interaction{
2489
2256
 
2490
2257
  --show-ticks: true;
2491
2258
  }
2492
-
2493
2259
  qti-slider-interaction::part(ticks){
2494
2260
  margin-left: 0.125rem;
2495
2261
  margin-right: 0.125rem;
@@ -2499,14 +2265,12 @@ qti-slider-interaction::part(ticks){
2499
2265
  background: linear-gradient(to right, var(--qti-tick-color) var(--qti-tick-width), transparent 1px) repeat-x;
2500
2266
  background-size: calc(calc(100% - var(--qti-tick-width)) / ((var(--max) - var(--min)) / var(--step))) 100%;
2501
2267
  }
2502
-
2503
2268
  qti-slider-interaction::part(rail){
2504
2269
  display: flex;
2505
2270
  align-items: center; /* so the knob is neatly centered vertically */
2506
2271
  /* DESIGN */
2507
2272
  box-sizing: border-box; /* if you have a border in the design apply, this box-border will make the border stay INSIDE the rail */ height: 0.75rem; width: 100%; cursor: pointer; border-radius: 9999px; border-style: solid; --tw-border-opacity: 1; border-color: rgb(229 231 235 / var(--tw-border-opacity)); --tw-bg-opacity: 1; background-color: rgb(243 244 246 / var(--tw-bg-opacity));
2508
2273
  }
2509
-
2510
2274
  qti-slider-interaction::part(knob){
2511
2275
  position: relative;
2512
2276
  height: 1.5rem;
@@ -2520,22 +2284,18 @@ qti-slider-interaction::part(knob){
2520
2284
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
2521
2285
  left: var(--value-percentage);
2522
2286
  }
2523
-
2524
2287
  qti-slider-interaction{
2525
2288
 
2526
2289
  --show-value: true;
2527
2290
  }
2528
-
2529
2291
  qti-slider-interaction::part(value){
2530
2292
  position: absolute;
2531
2293
  bottom: 2rem; /* align the value, which you can drag, on top of the knob, so it aligns with the rest of the values */ left: 0.75rem; /* should be half width of the knob if you want to center these two */ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); cursor: pointer; border-radius: 0.25rem; --tw-bg-opacity: 1; background-color: rgb(59 130 246 / var(--tw-bg-opacity)); padding-left: 1rem; padding-right: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; text-align: center;
2532
2294
  }
2533
-
2534
2295
  qti-select-point-interaction::part(point):hover{
2535
2296
  background-color: rgb(219 234 254 / var(--tw-bg-opacity));
2536
2297
  --tw-bg-opacity: 0.3;
2537
2298
  }
2538
-
2539
2299
  qti-select-point-interaction::part(point){
2540
2300
  cursor: pointer;
2541
2301
  border-radius: 0.375rem;
@@ -2555,89 +2315,68 @@ qti-select-point-interaction::part(point){
2555
2315
  --tw-ring-color: rgb(17 24 39 / var(--tw-ring-opacity));
2556
2316
  border-radius: 9999px;
2557
2317
  }
2558
-
2559
2318
  qti-select-point-interaction::part(point):hover{
2560
2319
  --tw-ring-opacity: 1;
2561
2320
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
2562
2321
  }
2563
-
2564
2322
  qti-select-point-interaction::part(point):focus{
2565
2323
  outline-width: 2px;
2566
2324
  outline-color: #93c5fd;
2567
2325
  }
2568
-
2569
2326
  qti-select-point-interaction::part(point) { /* aria-checked:act aria-readonly:rdo aria-disabled:dis ;*/
2570
2327
  }
2571
-
2572
2328
  qti-position-object-stage qti-position-object-interaction {
2573
2329
  /* no styles necessary, only layout styles, defined in the component */
2574
2330
  /* height: 40px; */
2575
2331
  }
2576
-
2577
2332
  qti-prompt{
2578
2333
  margin-top: 0.5rem;
2579
2334
  margin-bottom: 0.5rem;
2580
2335
  display: block;
2581
2336
  width: 100%;
2582
2337
  }
2583
-
2584
2338
  qti-choice-interaction.qti-choices-stacking-2{
2585
2339
  display: grid;
2586
2340
  grid-template-columns: repeat(2, minmax(0, 1fr));
2587
2341
  }
2588
-
2589
2342
  qti-choice-interaction.qti-choices-stacking-2 qti-prompt{
2590
2343
  grid-column: span 2 / span 2;
2591
2344
  }
2592
-
2593
2345
  qti-choice-interaction.qti-choices-stacking-3{
2594
2346
  display: grid;
2595
2347
  grid-template-columns: repeat(3, minmax(0, 1fr));
2596
2348
  }
2597
-
2598
2349
  qti-choice-interaction.qti-choices-stacking-3 qti-prompt{
2599
2350
  grid-column: span 3 / span 3;
2600
2351
  }
2601
-
2602
2352
  qti-choice-interaction.qti-choices-stacking-4{
2603
2353
  display: grid;
2604
2354
  grid-template-columns: repeat(4, minmax(0, 1fr));
2605
2355
  }
2606
-
2607
2356
  qti-choice-interaction.qti-choices-stacking-4 qti-prompt{
2608
2357
  grid-column: span 4 / span 4;
2609
2358
  }
2610
-
2611
2359
  qti-choice-interaction.qti-choices-stacking-5{
2612
2360
  display: grid;
2613
2361
  grid-template-columns: repeat(5, minmax(0, 1fr));
2614
2362
  }
2615
-
2616
2363
  qti-choice-interaction.qti-choices-stacking-5 qti-prompt{
2617
2364
  grid-column: span 5 / span 5;
2618
2365
  }
2619
-
2620
2366
  qti-choice-interaction.qti-orientation-horizontal {
2621
2367
  /* is the default layout */
2622
2368
  }
2623
-
2624
2369
  qti-choice-interaction[orientation='horizontal'] {
2625
2370
  flex-direction: row;
2626
2371
  }
2627
-
2628
- img,
2629
- video {
2630
- max-width: 100%;
2631
- height: auto;
2632
- }
2633
- `;var Hh={xml:!1,decodeEntities:!0},Xi=Hh,sl={_useHtmlParser2:!0,xmlMode:!0};function Wi(e){return e!=null&&e.xml?typeof e.xml=="boolean"?sl:N(N({},sl),e.xml):e!=null?e:void 0}var be={};_t(be,{contains:()=>Oo,html:()=>Cl,merge:()=>If,parseHTML:()=>Sf,root:()=>Nf,text:()=>ge,xml:()=>Sl});var ie={};_t(ie,{DocumentPosition:()=>It,append:()=>lf,appendChild:()=>cf,compareDocumentPosition:()=>vl,existsOne:()=>wl,filter:()=>rs,find:()=>Yn,findAll:()=>pf,findOne:()=>Gn,findOneChild:()=>ff,getAttributeValue:()=>nf,getChildren:()=>kr,getElementById:()=>Ef,getElements:()=>bf,getElementsByTagName:()=>Ke,getElementsByTagType:()=>wf,getFeed:()=>Do,getInnerHTML:()=>sf,getName:()=>of,getOuterHTML:()=>bl,getParent:()=>El,getSiblings:()=>Lo,getText:()=>Fn,hasAttrib:()=>af,hasChildren:()=>j,innerText:()=>es,isCDATA:()=>Ir,isComment:()=>je,isDocument:()=>qt,isTag:()=>L,isText:()=>ft,nextElementSibling:()=>$n,prepend:()=>hf,prependChild:()=>df,prevElementSibling:()=>Vn,removeElement:()=>re,removeSubsets:()=>Tf,replaceElement:()=>uf,testElement:()=>gf,textContent:()=>ee,uniqueSort:()=>pe});var kn={};_t(kn,{CDATA:()=>xo,Comment:()=>bo,Directive:()=>go,Doctype:()=>vo,ElementType:()=>F,Root:()=>po,Script:()=>Eo,Style:()=>wo,Tag:()=>To,Text:()=>mo,isTag:()=>fo});var F;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(F||(F={}));function fo(e){return e.type===F.Tag||e.type===F.Script||e.type===F.Style}var po=F.Root,mo=F.Text,go=F.Directive,bo=F.Comment,Eo=F.Script,wo=F.Style,To=F.Tag,xo=F.CDATA,vo=F.Doctype;var Mn=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Qi(this,t)}},ji=class extends Mn{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},jt=class extends ji{constructor(){super(...arguments),this.type=F.Text}get nodeType(){return 3}},Ge=class extends ji{constructor(){super(...arguments),this.type=F.Comment}get nodeType(){return 8}},Xe=class extends ji{constructor(t,r){super(r),this.name=t,this.type=F.Directive}get nodeType(){return 1}},Ki=class extends Mn{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},zi=class extends Ki{constructor(){super(...arguments),this.type=F.CDATA}get nodeType(){return 4}},Tt=class extends Ki{constructor(){super(...arguments),this.type=F.Root}get nodeType(){return 9}},We=class extends Ki{constructor(t,r,i=[],s=t==="script"?F.Script:t==="style"?F.Style:F.Tag){super(i),this.name=t,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var r,i;return{name:t,value:this.attribs[t],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(i=this["x-attribsPrefix"])===null||i===void 0?void 0:i[t]}})}};function L(e){return fo(e)}function Ir(e){return e.type===F.CDATA}function ft(e){return e.type===F.Text}function je(e){return e.type===F.Comment}function Pn(e){return e.type===F.Directive}function qt(e){return e.type===F.Root}function j(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Qi(e,t=!1){let r;if(ft(e))r=new jt(e.data);else if(je(e))r=new Ge(e.data);else if(L(e)){let i=t?_o(e.children):[],s=new We(e.name,N({},e.attribs),i);i.forEach(n=>n.parent=s),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=N({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=N({},e["x-attribsPrefix"])),r=s}else if(Ir(e)){let i=t?_o(e.children):[],s=new zi(i);i.forEach(n=>n.parent=s),r=s}else if(qt(e)){let i=t?_o(e.children):[],s=new Tt(i);i.forEach(n=>n.parent=s),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(Pn(e)){let i=new Xe(e.name,e.data);e["x-name"]!=null&&(i["x-name"]=e["x-name"],i["x-publicId"]=e["x-publicId"],i["x-systemId"]=e["x-systemId"]),r=i}else throw new Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function _o(e){let t=e.map(r=>Qi(r,!0));for(let r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}var nl={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Rr=class{constructor(t,r,i){this.dom=[],this.root=new Tt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(i=r,r=nl),typeof t=="object"&&(r=t,t=void 0),this.callback=t!=null?t:null,this.options=r!=null?r:nl,this.elementCB=i!=null?i:null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new Tt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;let t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,r){let i=this.options.xmlMode?F.Tag:void 0,s=new We(t,r,void 0,i);this.addNode(s),this.tagStack.push(s)}ontext(t){let{lastNode:r}=this;if(r&&r.type===F.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{let i=new jt(t);this.addNode(i),this.lastNode=i}}oncomment(t){if(this.lastNode&&this.lastNode.type===F.Comment){this.lastNode.data+=t;return}let r=new Ge(t);this.addNode(r),this.lastNode=r}oncommentend(){this.lastNode=null}oncdatastart(){let t=new jt(""),r=new zi([t]);this.addNode(r),t.parent=r,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,r){let i=new Xe(t,r);this.addNode(i)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){let r=this.tagStack[this.tagStack.length-1],i=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),i&&(t.prev=i,i.next=t),t.parent=r,this.lastNode=null}};var Nt=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var qn=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var Ao,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]]),Lr=(Ao=String.fromCodePoint)!==null&&Ao!==void 0?Ao:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Ji(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Uh.get(e))!==null&&t!==void 0?t:e}var et;(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"})(et||(et={}));var Bh=32,lt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(lt||(lt={}));function yo(e){return e>=et.ZERO&&e<=et.NINE}function Fh(e){return e>=et.UPPER_A&&e<=et.UPPER_F||e>=et.LOWER_A&&e<=et.LOWER_F}function $h(e){return e>=et.UPPER_A&&e<=et.UPPER_Z||e>=et.LOWER_A&&e<=et.LOWER_Z||yo(e)}function Vh(e){return e===et.EQUALS||$h(e)}var tt;(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"})(tt||(tt={}));var te;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(te||(te={}));var Hn=class{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=te.Strict}startEntity(t){this.decodeMode=t,this.state=tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case tt.EntityStart:return t.charCodeAt(r)===et.NUM?(this.state=tt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=tt.NamedEntity,this.stateNamedEntity(t,r));case tt.NumericStart:return this.stateNumericStart(t,r);case tt.NumericDecimal:return this.stateNumericDecimal(t,r);case tt.NumericHex:return this.stateNumericHex(t,r);case tt.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|Bh)===et.LOWER_X?(this.state=tt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=tt.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,i,s){if(r!==i){let n=i-r;this.result=this.result*Math.pow(s,n)+parseInt(t.substr(r,n),s),this.consumed+=n}}stateNumericHex(t,r){let i=r;for(;r<t.length;){let s=t.charCodeAt(r);if(yo(s)||Fh(s))r+=1;else return this.addToNumericResult(t,i,r,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,i,r,16),-1}stateNumericDecimal(t,r){let i=r;for(;r<t.length;){let s=t.charCodeAt(r);if(yo(s))r+=1;else return this.addToNumericResult(t,i,r,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,i,r,10),-1}emitNumericEntity(t,r){var i;if(this.consumed<=r)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===et.SEMI)this.consumed+=1;else if(this.decodeMode===te.Strict)return 0;return this.emitCodePoint(Ji(this.result),this.consumed),this.errors&&(t!==et.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:i}=this,s=i[this.treeIndex],n=(s&lt.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let o=t.charCodeAt(r);if(this.treeIndex=Zi(i,s,this.treeIndex+Math.max(1,n),o),this.treeIndex<0)return this.result===0||this.decodeMode===te.Attribute&&(n===0||Vh(o))?0:this.emitNotTerminatedNamedEntity();if(s=i[this.treeIndex],n=(s&lt.VALUE_LENGTH)>>14,n!==0){if(o===et.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==te.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:i}=this,s=(i[r]&lt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,i){let{decodeTree:s}=this;return this.emitCodePoint(r===1?s[t]&~lt.VALUE_LENGTH:s[t+1],i),r===3&&this.emitCodePoint(s[t+2],i),i}end(){var t;switch(this.state){case tt.NamedEntity:return this.result!==0&&(this.decodeMode!==te.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tt.NumericDecimal:return this.emitNumericEntity(0,2);case tt.NumericHex:return this.emitNumericEntity(0,3);case tt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tt.EntityStart:return 0}}};function al(e){let t="",r=new Hn(e,i=>t+=Lr(i));return function(s,n){let o=0,u=0;for(;(u=s.indexOf("&",u))>=0;){t+=s.slice(o,u),r.startEntity(n);let d=r.write(s,u+1);if(d<0){o=u+r.end();break}o=u+d,u=d===0?o+1:o}let c=t+s.slice(o);return t="",c}}function Zi(e,t,r,i){let s=(t&lt.BRANCH_LENGTH)>>7,n=t&lt.JUMP_TABLE;if(s===0)return n!==0&&i===n?r:-1;if(n){let c=i-n;return c<0||c>=s?-1:e[r+c]-1}let o=r,u=o+s-1;for(;o<=u;){let c=o+u>>>1,d=e[c];if(d<i)o=c+1;else if(d>i)u=c-1;else return e[c+s]}return-1}var o3=al(Nt),u3=al(qn);function Un(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var Yh=new Map(Un([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Un([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Un([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Un([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Co=/["&'<>$\x80-\uFFFF]/g,ol=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),ul=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function ts(e){let t="",r=0,i;for(;(i=Co.exec(e))!==null;){let s=i.index,n=e.charCodeAt(s),o=ol.get(n);o!==void 0?(t+=e.substring(r,s)+o,r=s+1):(t+=`${e.substring(r,s)}&#x${ul(e,s).toString(16)};`,r=Co.lastIndex+=+((n&64512)===55296))}return t+e.substr(r)}function So(e,t){return function(i){let s,n=0,o="";for(;s=e.exec(i);)n!==s.index&&(o+=i.substring(n,s.index)),o+=t.get(s[0].charCodeAt(0)),n=s.index+1;return o+i.substring(n)}}var cl=So(/[&<>'"]/g,ol),Dr=So(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Or=So(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var ll;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(ll||(ll={}));var dl;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(dl||(dl={}));var pl=new Map(["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","textPath"].map(e=>[e.toLowerCase(),e])),ml=new Map(["definitionURL","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]));var Xh=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Wh(e){return e.replace(/"/g,"&quot;")}function jh(e,t){var r;if(!e)return;let i=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?Wh:t.xmlMode||t.encodeEntities!=="utf8"?ts:Dr;return Object.keys(e).map(s=>{var n,o;let u=(n=e[s])!==null&&n!==void 0?n:"";return t.xmlMode==="foreign"&&(s=(o=ml.get(s))!==null&&o!==void 0?o:s),!t.emptyAttrs&&!t.xmlMode&&u===""?s:`${s}="${i(u)}"`}).join(" ")}var gl=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Ro(e,t={}){let r="length"in e?e:[e],i="";for(let s=0;s<r.length;s++)i+=Kh(r[s],t);return i}var Bn=Ro;function Kh(e,t){switch(e.type){case po:return Ro(e.children,t);case vo:case go:return Zh(e);case bo:return rf(e);case xo:return ef(e);case Eo:case wo:case To:return Jh(e,t);case mo:return tf(e,t)}}var zh=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Qh=new Set(["svg","math"]);function Jh(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=pl.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&zh.has(e.parent.name)&&(t=U(N({},t),{xmlMode:!1}))),!t.xmlMode&&Qh.has(e.name)&&(t=U(N({},t),{xmlMode:"foreign"}));let i=`<${e.name}`,s=jh(e.attribs,t);return s&&(i+=` ${s}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&gl.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=Ro(e.children,t)),(t.xmlMode||!gl.has(e.name))&&(i+=`</${e.name}>`)),i}function Zh(e){return`<${e.data}>`}function tf(e,t){var r;let i=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&Xh.has(e.parent.name))&&(i=t.xmlMode||t.encodeEntities!=="utf8"?ts(i):Or(i)),i}function ef(e){return`<![CDATA[${e.children[0].data}]]>`}function rf(e){return`<!--${e.data}-->`}function bl(e,t){return Bn(e,t)}function sf(e,t){return j(e)?e.children.map(r=>bl(r,t)).join(""):""}function Fn(e){return Array.isArray(e)?e.map(Fn).join(""):L(e)?e.name==="br"?`
2634
- `:Fn(e.children):Ir(e)?Fn(e.children):ft(e)?e.data:""}function ee(e){return Array.isArray(e)?e.map(ee).join(""):j(e)&&!je(e)?ee(e.children):ft(e)?e.data:""}function es(e){return Array.isArray(e)?e.map(es).join(""):j(e)&&(e.type===F.Tag||Ir(e))?es(e.children):ft(e)?e.data:""}function kr(e){return j(e)?e.children:[]}function El(e){return e.parent||null}function Lo(e){let t=El(e);if(t!=null)return kr(t);let r=[e],{prev:i,next:s}=e;for(;i!=null;)r.unshift(i),{prev:i}=i;for(;s!=null;)r.push(s),{next:s}=s;return r}function nf(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function af(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function of(e){return e.name}function $n(e){let{next:t}=e;for(;t!==null&&!L(t);)({next:t}=t);return t}function Vn(e){let{prev:t}=e;for(;t!==null&&!L(t);)({prev:t}=t);return t}function re(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function uf(e,t){let r=t.prev=e.prev;r&&(r.next=t);let i=t.next=e.next;i&&(i.prev=t);let s=t.parent=e.parent;if(s){let n=s.children;n[n.lastIndexOf(e)]=t,e.parent=null}}function cf(e,t){if(re(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function lf(e,t){re(t);let{parent:r}=e,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){let s=r.children;s.splice(s.lastIndexOf(i),0,t)}}else r&&r.children.push(t)}function df(e,t){if(re(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let r=e.children[1];r.prev=t,t.next=r}else t.next=null}function hf(e,t){re(t);let{parent:r}=e;if(r){let i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}function rs(e,t,r=!0,i=1/0){return Yn(e,Array.isArray(t)?t:[t],r,i)}function Yn(e,t,r,i){let s=[],n=[t],o=[0];for(;;){if(o[0]>=n[0].length){if(o.length===1)return s;n.shift(),o.shift();continue}let u=n[0][o[0]++];if(e(u)&&(s.push(u),--i<=0))return s;r&&j(u)&&u.children.length>0&&(o.unshift(0),n.unshift(u.children))}}function ff(e,t){return t.find(e)}function Gn(e,t,r=!0){let i=null;for(let s=0;s<t.length&&!i;s++){let n=t[s];if(L(n))e(n)?i=n:r&&n.children.length>0&&(i=Gn(e,n.children,!0));else continue}return i}function wl(e,t){return t.some(r=>L(r)&&(e(r)||wl(e,r.children)))}function pf(e,t){let r=[],i=[t],s=[0];for(;;){if(s[0]>=i[0].length){if(i.length===1)return r;i.shift(),s.shift();continue}let n=i[0][s[0]++];L(n)&&(e(n)&&r.push(n),n.children.length>0&&(s.unshift(0),i.unshift(n.children)))}}var Xn={tag_name(e){return typeof e=="function"?t=>L(t)&&e(t.name):e==="*"?L:t=>L(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>ft(t)&&e(t.data):t=>ft(t)&&t.data===e}};function Tl(e,t){return typeof t=="function"?r=>L(r)&&t(r.attribs[e]):r=>L(r)&&r.attribs[e]===t}function mf(e,t){return r=>e(r)||t(r)}function xl(e){let t=Object.keys(e).map(r=>{let i=e[r];return Object.prototype.hasOwnProperty.call(Xn,r)?Xn[r](i):Tl(r,i)});return t.length===0?null:t.reduce(mf)}function gf(e,t){let r=xl(e);return r?r(t):!0}function bf(e,t,r,i=1/0){let s=xl(e);return s?rs(s,t,r,i):[]}function Ef(e,t,r=!0){return Array.isArray(t)||(t=[t]),Gn(Tl("id",e),t,r)}function Ke(e,t,r=!0,i=1/0){return rs(Xn.tag_name(e),t,r,i)}function wf(e,t,r=!0,i=1/0){return rs(Xn.tag_type(e),t,r,i)}function Tf(e){let t=e.length;for(;--t>=0;){let r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(let i=r.parent;i;i=i.parent)if(e.includes(i)){e.splice(t,1);break}}return e}var It;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(It||(It={}));function vl(e,t){let r=[],i=[];if(e===t)return 0;let s=j(e)?e:e.parent;for(;s;)r.unshift(s),s=s.parent;for(s=j(t)?t:t.parent;s;)i.unshift(s),s=s.parent;let n=Math.min(r.length,i.length),o=0;for(;o<n&&r[o]===i[o];)o++;if(o===0)return It.DISCONNECTED;let u=r[o-1],c=u.children,d=r[o],p=i[o];return c.indexOf(d)>c.indexOf(p)?u===t?It.FOLLOWING|It.CONTAINED_BY:It.FOLLOWING:u===e?It.PRECEDING|It.CONTAINS:It.PRECEDING}function pe(e){return e=e.filter((t,r,i)=>!i.includes(t,r+1)),e.sort((t,r)=>{let i=vl(t,r);return i&It.PRECEDING?-1:i&It.FOLLOWING?1:0}),e}function Do(e){let t=Wn(yf,e);return t?t.name==="feed"?xf(t):vf(t):null}function xf(e){var t;let r=e.children,i={type:"atom",items:Ke("entry",r).map(o=>{var u;let{children:c}=o,d={media:_l(c)};pt(d,"id","id",c),pt(d,"title","title",c);let p=(u=Wn("link",c))===null||u===void 0?void 0:u.attribs.href;p&&(d.link=p);let g=me("summary",c)||me("content",c);g&&(d.description=g);let _=me("updated",c);return _&&(d.pubDate=new Date(_)),d})};pt(i,"id","id",r),pt(i,"title","title",r);let s=(t=Wn("link",r))===null||t===void 0?void 0:t.attribs.href;s&&(i.link=s),pt(i,"description","subtitle",r);let n=me("updated",r);return n&&(i.updated=new Date(n)),pt(i,"author","email",r,!0),i}function vf(e){var t,r;let i=(r=(t=Wn("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],s={type:e.name.substr(0,3),id:"",items:Ke("item",e.children).map(o=>{let{children:u}=o,c={media:_l(u)};pt(c,"id","guid",u),pt(c,"title","title",u),pt(c,"link","link",u),pt(c,"description","description",u);let d=me("pubDate",u)||me("dc:date",u);return d&&(c.pubDate=new Date(d)),c})};pt(s,"title","title",i),pt(s,"link","link",i),pt(s,"description","description",i);let n=me("lastBuildDate",i);return n&&(s.updated=new Date(n)),pt(s,"author","managingEditor",i,!0),s}var _f=["url","type","lang"],Af=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function _l(e){return Ke("media:content",e).map(t=>{let{attribs:r}=t,i={medium:r.medium,isDefault:!!r.isDefault};for(let s of _f)r[s]&&(i[s]=r[s]);for(let s of Af)r[s]&&(i[s]=parseInt(r[s],10));return r.expression&&(i.expression=r.expression),i})}function Wn(e,t){return Ke(e,t,!0,1)[0]}function me(e,t,r=!1){return ee(Ke(e,t,r,1)).trim()}function pt(e,t,r,i,s=!1){let n=me(r,i,s);n&&(e[t]=n)}function yf(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function yl(e,t,r){return e?e(t!=null?t:e._root.children,null,void 0,r).toString():""}function Cf(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function Cl(e,t){let r=Cf(e)?(t=e,void 0):e,i=N(N(N({},Xi),this===null||this===void 0?void 0:this._options),Wi(t!=null?t:{}));return yl(this,r,i)}function Sl(e){let t=U(N({},this._options),{xmlMode:!0});return yl(this,e,t)}function ge(e){let t=e||(this?this.root():[]),r="";for(let i=0;i<t.length;i++)r+=ee(t[i]);return r}function Sf(e,t,r=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);let i=this.load(e,Xi,!1);return r||i("script").remove(),i.root()[0].children.slice()}function Nf(){return this(this._root)}function Oo(e,t){if(t===e)return!1;let r=t;for(;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}function If(e,t){if(!Al(e)||!Al(t))return;let r=e.length,i=+t.length;for(let s=0;s<i;s++)e[r++]=t[s];return e.length=r,e}function Al(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}var qo={};_t(qo,{addClass:()=>Ml,attr:()=>Lf,data:()=>Of,hasClass:()=>Pf,prop:()=>Df,removeAttr:()=>Mf,removeClass:()=>Pl,toggleClass:()=>ql,val:()=>kf});function xt(e){return e.cheerio!=null}function Nl(e){return e.replace(/[_.-](\w|$)/g,(t,r)=>r.toUpperCase())}function Il(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function G(e,t){let r=e.length;for(let i=0;i<r;i++)t(e[i],i);return e}function jn(e){let t="length"in e?Array.prototype.map.call(e,i=>Qi(i,!0)):[Qi(e,!0)],r=new Tt(t);return t.forEach(i=>{i.parent=r}),t}var ze;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(ze||(ze={}));function is(e){let t=e.indexOf("<");if(t<0||t>e.length-3)return!1;let r=e.charCodeAt(t+1);return(r>=ze.LowerA&&r<=ze.LowerZ||r>=ze.UpperA&&r<=ze.UpperZ||r===ze.Exclamation)&&e.includes(">",t+2)}var Mr=Object.prototype.hasOwnProperty,ss=/\s+/,ko="data-",Rl={null:null,true:!0,false:!1},Po=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Rf=/^{[^]*}$|^\[[^]*]$/;function Kn(e,t,r){var i;if(!(!e||!L(e))){if((i=e.attribs)!==null&&i!==void 0||(e.attribs={}),!t)return e.attribs;if(Mr.call(e.attribs,t))return!r&&Po.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return ge(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function Pr(e,t,r){r===null?kl(e,t):e.attribs[t]=`${r}`}function Lf(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return G(this,(r,i)=>{L(r)&&Pr(r,e,t.call(r,i,r.attribs[e]))})}return G(this,r=>{L(r)&&(typeof e=="object"?Object.keys(e).forEach(i=>{let s=e[i];Pr(r,i,s)}):Pr(r,e,t))})}return arguments.length>1?this:Kn(this[0],e,this.options.xmlMode)}function Ll(e,t,r){return t in e?e[t]:!r&&Po.test(t)?Kn(e,t,!1)!==void 0:Kn(e,t,r)}function Mo(e,t,r,i){t in e?e[t]=r:Pr(e,t,!i&&Po.test(t)?r?"":null:`${r}`)}function Df(e,t){var r;if(typeof e=="string"&&t===void 0){let i=this[0];if(!i||!L(i))return;switch(e){case"style":{let s=this.css(),n=Object.keys(s);return n.forEach((o,u)=>{s[u]=o}),s.length=n.length,s}case"tagName":case"nodeName":return i.name.toUpperCase();case"href":case"src":{let s=(r=i.attribs)===null||r===void 0?void 0:r[e];return typeof URL!="undefined"&&(e==="href"&&(i.tagName==="a"||i.name==="link")||e==="src"&&(i.tagName==="img"||i.tagName==="iframe"||i.tagName==="audio"||i.tagName==="video"||i.tagName==="source"))&&s!==void 0&&this.options.baseURI?new URL(s,this.options.baseURI).href:s}case"innerText":return es(i);case"textContent":return ee(i);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return Ll(i,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return G(this,(i,s)=>{L(i)&&Mo(i,e,t.call(i,s,Ll(i,e,this.options.xmlMode)),this.options.xmlMode)})}return G(this,i=>{L(i)&&(typeof e=="object"?Object.keys(e).forEach(s=>{let n=e[s];Mo(i,s,n,this.options.xmlMode)}):Mo(i,e,t,this.options.xmlMode))})}}function Dl(e,t,r){var i;let s=e;(i=s.data)!==null&&i!==void 0||(s.data={}),typeof t=="object"?Object.assign(s.data,t):typeof t=="string"&&r!==void 0&&(s.data[t]=r)}function Ol(e,t){let r,i,s;t==null?(r=Object.keys(e.attribs).filter(n=>n.startsWith(ko)),i=r.map(n=>Nl(n.slice(ko.length)))):(r=[ko+Il(t)],i=[t]);for(let n=0;n<r.length;++n){let o=r[n],u=i[n];if(Mr.call(e.attribs,o)&&!Mr.call(e.data,u)){if(s=e.attribs[o],Mr.call(Rl,s))s=Rl[s];else if(s===String(Number(s)))s=Number(s);else if(Rf.test(s))try{s=JSON.parse(s)}catch(c){}e.data[u]=s}}return t==null?e.data:s}function Of(e,t){var r;let i=this[0];if(!i||!L(i))return;let s=i;return(r=s.data)!==null&&r!==void 0||(s.data={}),e?typeof e=="object"||t!==void 0?(G(this,n=>{L(n)&&(typeof e=="object"?Dl(n,e):Dl(n,e,t))}),this):Mr.call(s.data,e)?s.data[e]:Ol(s,e):Ol(s)}function kf(e){let t=arguments.length===0,r=this[0];if(!r||!L(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{let i=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");let s=typeof e!="object"?[e]:e;for(let n=0;n<s.length;n++)this.find(`option[value="${s[n]}"]`).attr("selected","");return this}return this.attr("multiple")?i.toArray().map(s=>ge(s.children)):i.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function kl(e,t){!e.attribs||!Mr.call(e.attribs,t)||delete e.attribs[t]}function zn(e){return e?e.trim().split(ss):[]}function Mf(e){let t=zn(e);for(let r=0;r<t.length;r++)G(this,i=>{L(i)&&kl(i,t[r])});return this}function Pf(e){return this.toArray().some(t=>{let r=L(t)&&t.attribs.class,i=-1;if(r&&e.length)for(;(i=r.indexOf(e,i+1))>-1;){let s=i+e.length;if((i===0||ss.test(r[i-1]))&&(s===r.length||ss.test(r[s])))return!0}return!1})}function Ml(e){if(typeof e=="function")return G(this,(i,s)=>{if(L(i)){let n=i.attribs.class||"";Ml.call([i],e.call(i,s,n))}});if(!e||typeof e!="string")return this;let t=e.split(ss),r=this.length;for(let i=0;i<r;i++){let s=this[i];if(!L(s))continue;let n=Kn(s,"class",!1);if(!n)Pr(s,"class",t.join(" ").trim());else{let o=` ${n} `;for(let u=0;u<t.length;u++){let c=`${t[u]} `;o.includes(` ${c}`)||(o+=c)}Pr(s,"class",o.trim())}}return this}function Pl(e){if(typeof e=="function")return G(this,(s,n)=>{L(s)&&Pl.call([s],e.call(s,n,s.attribs.class||""))});let t=zn(e),r=t.length,i=arguments.length===0;return G(this,s=>{if(L(s))if(i)s.attribs.class="";else{let n=zn(s.attribs.class),o=!1;for(let u=0;u<r;u++){let c=n.indexOf(t[u]);c>=0&&(n.splice(c,1),o=!0,u--)}o&&(s.attribs.class=n.join(" "))}})}function ql(e,t){if(typeof e=="function")return G(this,(o,u)=>{L(o)&&ql.call([o],e.call(o,u,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;let r=e.split(ss),i=r.length,s=typeof t=="boolean"?t?1:-1:0,n=this.length;for(let o=0;o<n;o++){let u=this[o];if(!L(u))continue;let c=zn(u.attribs.class);for(let d=0;d<i;d++){let p=c.indexOf(r[d]);s>=0&&p<0?c.push(r[d]):s<=0&&p>=0&&c.splice(p,1)}u.attribs.class=c.join(" ")}return this}var au={};_t(au,{add:()=>Mp,addBack:()=>Pp,children:()=>wp,closest:()=>dp,contents:()=>Tp,each:()=>xp,end:()=>kp,eq:()=>Ip,filter:()=>_p,filterArray:()=>nu,find:()=>op,first:()=>Sp,get:()=>Rp,has:()=>Cp,index:()=>Dp,is:()=>Ap,last:()=>Np,map:()=>vp,next:()=>hp,nextAll:()=>fp,nextUntil:()=>pp,not:()=>yp,parent:()=>up,parents:()=>cp,parentsUntil:()=>lp,prev:()=>mp,prevAll:()=>gp,prevUntil:()=>bp,siblings:()=>Ep,slice:()=>Op,toArray:()=>Lp});var O;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(O||(O={}));var Z;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(Z||(Z={}));var Hl=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,qf=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,Hf=new Map([[126,Z.Element],[94,Z.Start],[36,Z.End],[42,Z.Any],[33,Z.Not],[124,Z.Hyphen]]),Uf=new Set(["has","not","matches","is","where","host","host-context"]);function Qe(e){switch(e.type){case O.Adjacent:case O.Child:case O.Descendant:case O.Parent:case O.Sibling:case O.ColumnCombinator:return!0;default:return!1}}var Bf=new Set(["contains","icontains"]);function Ff(e,t,r){let i=parseInt(t,16)-65536;return i!==i||r?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,i&1023|56320)}function ns(e){return e.replace(qf,Ff)}function Ho(e){return e===39||e===34}function Ul(e){return e===32||e===9||e===10||e===12||e===13}function se(e){let t=[],r=Bl(t,`${e}`,0);if(r<e.length)throw new Error(`Unmatched selector: ${e.slice(r)}`);return t}function Bl(e,t,r){let i=[];function s(_){let x=t.slice(r+_).match(Hl);if(!x)throw new Error(`Expected name, found ${t.slice(r)}`);let[S]=x;return r+=_+S.length,ns(S)}function n(_){for(r+=_;r<t.length&&Ul(t.charCodeAt(r));)r++}function o(){r+=1;let _=r,x=1;for(;x>0&&r<t.length;r++)t.charCodeAt(r)===40&&!u(r)?x++:t.charCodeAt(r)===41&&!u(r)&&x--;if(x)throw new Error("Parenthesis not matched");return ns(t.slice(_,r-1))}function u(_){let x=0;for(;t.charCodeAt(--_)===92;)x++;return(x&1)===1}function c(){if(i.length>0&&Qe(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function d(_){if(i.length>0&&i[i.length-1].type===O.Descendant){i[i.length-1].type=_;return}c(),i.push({type:_})}function p(_,x){i.push({type:O.Attribute,name:_,action:x,value:s(1),namespace:null,ignoreCase:"quirks"})}function g(){if(i.length&&i[i.length-1].type===O.Descendant&&i.pop(),i.length===0)throw new Error("Empty sub-selector");e.push(i)}if(n(0),t.length===r)return r;t:for(;r<t.length;){let _=t.charCodeAt(r);switch(_){case 32:case 9:case 10:case 12:case 13:{(i.length===0||i[0].type!==O.Descendant)&&(c(),i.push({type:O.Descendant})),n(1);break}case 62:{d(O.Child),n(1);break}case 60:{d(O.Parent),n(1);break}case 126:{d(O.Sibling),n(1);break}case 43:{d(O.Adjacent),n(1);break}case 46:{p("class",Z.Element);break}case 35:{p("id",Z.Equals);break}case 91:{n(1);let x,S=null;t.charCodeAt(r)===124?x=s(1):t.startsWith("*|",r)?(S="*",x=s(2)):(x=s(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(S=x,x=s(1))),n(0);let R=Z.Exists,H=Hf.get(t.charCodeAt(r));if(H){if(R=H,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");n(2)}else t.charCodeAt(r)===61&&(R=Z.Equals,n(1));let Y="",bt=null;if(R!=="exists"){if(Ho(t.charCodeAt(r))){let Vs=t.charCodeAt(r),Ce=r+1;for(;Ce<t.length&&(t.charCodeAt(Ce)!==Vs||u(Ce));)Ce+=1;if(t.charCodeAt(Ce)!==Vs)throw new Error("Attribute value didn't end");Y=ns(t.slice(r+1,Ce)),r=Ce+1}else{let Vs=r;for(;r<t.length&&(!Ul(t.charCodeAt(r))&&t.charCodeAt(r)!==93||u(r));)r+=1;Y=ns(t.slice(Vs,r))}n(0);let ci=t.charCodeAt(r)|32;ci===115?(bt=!1,n(1)):ci===105&&(bt=!0,n(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;let ye={type:O.Attribute,name:x,action:R,value:Y,namespace:S,ignoreCase:bt};i.push(ye);break}case 58:{if(t.charCodeAt(r+1)===58){i.push({type:O.PseudoElement,name:s(2).toLowerCase(),data:t.charCodeAt(r)===40?o():null});continue}let x=s(1).toLowerCase(),S=null;if(t.charCodeAt(r)===40)if(Uf.has(x)){if(Ho(t.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${x} cannot be quoted`);if(S=[],r=Bl(S,t,r+1),t.charCodeAt(r)!==41)throw new Error(`Missing closing parenthesis in :${x} (${t})`);r+=1}else{if(S=o(),Bf.has(x)){let R=S.charCodeAt(0);R===S.charCodeAt(S.length-1)&&Ho(R)&&(S=S.slice(1,-1))}S=ns(S)}i.push({type:O.Pseudo,name:x,data:S});break}case 44:{g(),i=[],n(1);break}default:{if(t.startsWith("/*",r)){let R=t.indexOf("*/",r+2);if(R<0)throw new Error("Comment was not terminated");r=R+2,i.length===0&&n(0);break}let x=null,S;if(_===42)r+=1,S="*";else if(_===124){if(S="",t.charCodeAt(r+1)===124){d(O.ColumnCombinator),n(2);break}}else if(Hl.test(t.slice(r)))S=s(0);else break t;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(x=S,t.charCodeAt(r+1)===42?(S="*",r+=2):S=s(1)),i.push(S==="*"?{type:O.Universal,namespace:x}:{type:O.Tag,name:S,namespace:x})}}}return g(),r}var Ko=Se(Ee(),1);var ne=Se(Ee(),1);var $l=new Map([[O.Universal,50],[O.Tag,30],[O.Attribute,1],[O.Pseudo,0]]);function as(e){return!$l.has(e.type)}var $f=new Map([[Z.Exists,10],[Z.Equals,8],[Z.Not,7],[Z.Start,6],[Z.End,6],[Z.Any,5]]);function Uo(e){let t=e.map(Vl);for(let r=1;r<e.length;r++){let i=t[r];if(!(i<0))for(let s=r-1;s>=0&&i<t[s];s--){let n=e[s+1];e[s+1]=e[s],e[s]=n,t[s+1]=t[s],t[s]=i}}}function Vl(e){var t,r;let i=(t=$l.get(e.type))!==null&&t!==void 0?t:-1;return e.type===O.Attribute?(i=(r=$f.get(e.action))!==null&&r!==void 0?r:4,e.action===Z.Equals&&e.name==="id"&&(i=9),e.ignoreCase&&(i>>=1)):e.type===O.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?i=0:Array.isArray(e.data)?(i=Math.min(...e.data.map(s=>Math.min(...s.map(Vl)))),i<0&&(i=0)):i=2:i=3),i}var os=Se(Ee(),1),Vf=/[-[\]{}()*+?.,\\^$|#\s]/g;function Yl(e){return e.replace(Vf,"\\$&")}var Yf=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Je(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&Yf.has(e.name)}var Gl={equals(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t;return Je(t,r)?(n=n.toLowerCase(),o=>{let u=i.getAttributeValue(o,s);return u!=null&&u.length===n.length&&u.toLowerCase()===n&&e(o)}):o=>i.getAttributeValue(o,s)===n&&e(o)},hyphen(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t,o=n.length;return Je(t,r)?(n=n.toLowerCase(),function(c){let d=i.getAttributeValue(c,s);return d!=null&&(d.length===o||d.charAt(o)==="-")&&d.substr(0,o).toLowerCase()===n&&e(c)}):function(c){let d=i.getAttributeValue(c,s);return d!=null&&(d.length===o||d.charAt(o)==="-")&&d.substr(0,o)===n&&e(c)}},element(e,t,r){let{adapter:i}=r,{name:s,value:n}=t;if(/\s/.test(n))return os.default.falseFunc;let o=new RegExp(`(?:^|\\s)${Yl(n)}(?:$|\\s)`,Je(t,r)?"i":"");return function(c){let d=i.getAttributeValue(c,s);return d!=null&&d.length>=n.length&&o.test(d)&&e(c)}},exists(e,{name:t},{adapter:r}){return i=>r.hasAttrib(i,t)&&e(i)},start(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t,o=n.length;return o===0?os.default.falseFunc:Je(t,r)?(n=n.toLowerCase(),u=>{let c=i.getAttributeValue(u,s);return c!=null&&c.length>=o&&c.substr(0,o).toLowerCase()===n&&e(u)}):u=>{var c;return!!(!((c=i.getAttributeValue(u,s))===null||c===void 0)&&c.startsWith(n))&&e(u)}},end(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t,o=-n.length;return o===0?os.default.falseFunc:Je(t,r)?(n=n.toLowerCase(),u=>{var c;return((c=i.getAttributeValue(u,s))===null||c===void 0?void 0:c.substr(o).toLowerCase())===n&&e(u)}):u=>{var c;return!!(!((c=i.getAttributeValue(u,s))===null||c===void 0)&&c.endsWith(n))&&e(u)}},any(e,t,r){let{adapter:i}=r,{name:s,value:n}=t;if(n==="")return os.default.falseFunc;if(Je(t,r)){let o=new RegExp(Yl(n),"i");return function(c){let d=i.getAttributeValue(c,s);return d!=null&&d.length>=n.length&&o.test(d)&&e(c)}}return o=>{var u;return!!(!((u=i.getAttributeValue(o,s))===null||u===void 0)&&u.includes(n))&&e(o)}},not(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t;return n===""?o=>!!i.getAttributeValue(o,s)&&e(o):Je(t,r)?(n=n.toLowerCase(),o=>{let u=i.getAttributeValue(o,s);return(u==null||u.length!==n.length||u.toLowerCase()!==n)&&e(o)}):o=>i.getAttributeValue(o,s)!==n&&e(o)}};var Gf=new Set([9,10,12,13,32]),Xl="0".charCodeAt(0),Xf="9".charCodeAt(0);function Wl(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,r=0,i=n(),s=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=i*(s!=null?s:1),u(),t<e.length?(i=n(),u(),s=o()):i=s=0),s===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,i*s];function n(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){let c=t,d=0;for(;t<e.length&&e.charCodeAt(t)>=Xl&&e.charCodeAt(t)<=Xf;)d=d*10+(e.charCodeAt(t)-Xl),t++;return t===c?null:d}function u(){for(;t<e.length&&Gf.has(e.charCodeAt(t));)t++}}var Bo=Se(Ee(),1);function jl(e){let t=e[0],r=e[1]-1;if(r<0&&t<=0)return Bo.default.falseFunc;if(t===-1)return n=>n<=r;if(t===0)return n=>n===r;if(t===1)return r<0?Bo.default.trueFunc:n=>n>=r;let i=Math.abs(t),s=(r%i+i)%i;return t>1?n=>n>=r&&n%i===s:n=>n<=r&&n%i===s}function qr(e){return jl(Wl(e))}var mt=Se(Ee(),1);function Qn(e,t){return r=>{let i=t.getParent(r);return i!=null&&t.isTag(i)&&e(r)}}var Hr={contains(e,t,{adapter:r}){return function(s){return e(s)&&r.getText(s).includes(t)}},icontains(e,t,{adapter:r}){let i=t.toLowerCase();return function(n){return e(n)&&r.getText(n).toLowerCase().includes(i)}},"nth-child"(e,t,{adapter:r,equals:i}){let s=qr(t);return s===mt.default.falseFunc?mt.default.falseFunc:s===mt.default.trueFunc?Qn(e,r):function(o){let u=r.getSiblings(o),c=0;for(let d=0;d<u.length&&!i(o,u[d]);d++)r.isTag(u[d])&&c++;return s(c)&&e(o)}},"nth-last-child"(e,t,{adapter:r,equals:i}){let s=qr(t);return s===mt.default.falseFunc?mt.default.falseFunc:s===mt.default.trueFunc?Qn(e,r):function(o){let u=r.getSiblings(o),c=0;for(let d=u.length-1;d>=0&&!i(o,u[d]);d--)r.isTag(u[d])&&c++;return s(c)&&e(o)}},"nth-of-type"(e,t,{adapter:r,equals:i}){let s=qr(t);return s===mt.default.falseFunc?mt.default.falseFunc:s===mt.default.trueFunc?Qn(e,r):function(o){let u=r.getSiblings(o),c=0;for(let d=0;d<u.length;d++){let p=u[d];if(i(o,p))break;r.isTag(p)&&r.getName(p)===r.getName(o)&&c++}return s(c)&&e(o)}},"nth-last-of-type"(e,t,{adapter:r,equals:i}){let s=qr(t);return s===mt.default.falseFunc?mt.default.falseFunc:s===mt.default.trueFunc?Qn(e,r):function(o){let u=r.getSiblings(o),c=0;for(let d=u.length-1;d>=0;d--){let p=u[d];if(i(o,p))break;r.isTag(p)&&r.getName(p)===r.getName(o)&&c++}return s(c)&&e(o)}},root(e,t,{adapter:r}){return i=>{let s=r.getParent(i);return(s==null||!r.isTag(s))&&e(i)}},scope(e,t,r,i){let{equals:s}=r;return!i||i.length===0?Hr.root(e,t,r):i.length===1?n=>s(i[0],n)&&e(n):n=>i.includes(n)&&e(n)},hover:Fo("isHovered"),visited:Fo("isVisited"),active:Fo("isActive")};function Fo(e){return function(r,i,{adapter:s}){let n=s[e];return typeof n!="function"?mt.default.falseFunc:function(u){return n(u)&&r(u)}}}var us={empty(e,{adapter:t}){return!t.getChildren(e).some(r=>t.isTag(r)||t.getText(r)!=="")},"first-child"(e,{adapter:t,equals:r}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let i=t.getSiblings(e).find(s=>t.isTag(s));return i!=null&&r(e,i)},"last-child"(e,{adapter:t,equals:r}){let i=t.getSiblings(e);for(let s=i.length-1;s>=0;s--){if(r(e,i[s]))return!0;if(t.isTag(i[s]))break}return!1},"first-of-type"(e,{adapter:t,equals:r}){let i=t.getSiblings(e),s=t.getName(e);for(let n=0;n<i.length;n++){let o=i[n];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"last-of-type"(e,{adapter:t,equals:r}){let i=t.getSiblings(e),s=t.getName(e);for(let n=i.length-1;n>=0;n--){let o=i[n];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"only-of-type"(e,{adapter:t,equals:r}){let i=t.getName(e);return t.getSiblings(e).every(s=>r(e,s)||!t.isTag(s)||t.getName(s)!==i)},"only-child"(e,{adapter:t,equals:r}){return t.getSiblings(e).every(i=>r(e,i)||!t.isTag(i))}};function $o(e,t,r,i){if(r===null){if(e.length>i)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===i)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}var Jn={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
2372
+ `;var Bh={xml:!1,decodeEntities:!0},Xi=Bh,al={_useHtmlParser2:!0,xmlMode:!0};function Wi(e){return e!=null&&e.xml?typeof e.xml=="boolean"?al:S(S({},al),e.xml):e!=null?e:void 0}var Te={};_t(Te,{contains:()=>ko,html:()=>Sl,merge:()=>Lf,parseHTML:()=>If,root:()=>Rf,text:()=>we,xml:()=>Il});var ie={};_t(ie,{DocumentPosition:()=>It,append:()=>hf,appendChild:()=>df,compareDocumentPosition:()=>Al,existsOne:()=>xl,filter:()=>rs,find:()=>Yn,findAll:()=>gf,findOne:()=>Gn,findOneChild:()=>mf,getAttributeValue:()=>of,getChildren:()=>Mr,getElementById:()=>Tf,getElements:()=>wf,getElementsByTagName:()=>Qe,getElementsByTagType:()=>xf,getFeed:()=>Oo,getInnerHTML:()=>af,getName:()=>cf,getOuterHTML:()=>wl,getParent:()=>Tl,getSiblings:()=>Do,getText:()=>Fn,hasAttrib:()=>uf,hasChildren:()=>z,innerText:()=>es,isCDATA:()=>Rr,isComment:()=>ze,isDocument:()=>Ht,isTag:()=>D,isText:()=>ft,nextElementSibling:()=>$n,prepend:()=>pf,prependChild:()=>ff,prevElementSibling:()=>Vn,removeElement:()=>re,removeSubsets:()=>vf,replaceElement:()=>lf,testElement:()=>Ef,textContent:()=>ee,uniqueSort:()=>be});var kn={};_t(kn,{CDATA:()=>vo,Comment:()=>Eo,Directive:()=>bo,Doctype:()=>_o,ElementType:()=>F,Root:()=>mo,Script:()=>wo,Style:()=>To,Tag:()=>xo,Text:()=>go,isTag:()=>po});var F;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(F||(F={}));function po(e){return e.type===F.Tag||e.type===F.Script||e.type===F.Style}var mo=F.Root,go=F.Text,bo=F.Directive,Eo=F.Comment,wo=F.Script,To=F.Style,xo=F.Tag,vo=F.CDATA,_o=F.Doctype;var Mn=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Qi(this,t)}},ji=class extends Mn{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},Wt=class extends ji{constructor(){super(...arguments),this.type=F.Text}get nodeType(){return 3}},We=class extends ji{constructor(){super(...arguments),this.type=F.Comment}get nodeType(){return 8}},je=class extends ji{constructor(t,r){super(r),this.name=t,this.type=F.Directive}get nodeType(){return 1}},Ki=class extends Mn{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},zi=class extends Ki{constructor(){super(...arguments),this.type=F.CDATA}get nodeType(){return 4}},Tt=class extends Ki{constructor(){super(...arguments),this.type=F.Root}get nodeType(){return 9}},Ke=class extends Ki{constructor(t,r,i=[],s=t==="script"?F.Script:t==="style"?F.Style:F.Tag){super(i),this.name=t,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var r,i;return{name:t,value:this.attribs[t],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(i=this["x-attribsPrefix"])===null||i===void 0?void 0:i[t]}})}};function D(e){return po(e)}function Rr(e){return e.type===F.CDATA}function ft(e){return e.type===F.Text}function ze(e){return e.type===F.Comment}function Pn(e){return e.type===F.Directive}function Ht(e){return e.type===F.Root}function z(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Qi(e,t=!1){let r;if(ft(e))r=new Wt(e.data);else if(ze(e))r=new We(e.data);else if(D(e)){let i=t?Ao(e.children):[],s=new Ke(e.name,S({},e.attribs),i);i.forEach(n=>n.parent=s),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=S({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=S({},e["x-attribsPrefix"])),r=s}else if(Rr(e)){let i=t?Ao(e.children):[],s=new zi(i);i.forEach(n=>n.parent=s),r=s}else if(Ht(e)){let i=t?Ao(e.children):[],s=new Tt(i);i.forEach(n=>n.parent=s),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(Pn(e)){let i=new je(e.name,e.data);e["x-name"]!=null&&(i["x-name"]=e["x-name"],i["x-publicId"]=e["x-publicId"],i["x-systemId"]=e["x-systemId"]),r=i}else throw new Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function Ao(e){let t=e.map(r=>Qi(r,!0));for(let r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}var ol={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Lr=class{constructor(t,r,i){this.dom=[],this.root=new Tt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof r=="function"&&(i=r,r=ol),typeof t=="object"&&(r=t,t=void 0),this.callback=t!=null?t:null,this.options=r!=null?r:ol,this.elementCB=i!=null?i:null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new Tt(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;let t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,r){let i=this.options.xmlMode?F.Tag:void 0,s=new Ke(t,r,void 0,i);this.addNode(s),this.tagStack.push(s)}ontext(t){let{lastNode:r}=this;if(r&&r.type===F.Text)r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{let i=new Wt(t);this.addNode(i),this.lastNode=i}}oncomment(t){if(this.lastNode&&this.lastNode.type===F.Comment){this.lastNode.data+=t;return}let r=new We(t);this.addNode(r),this.lastNode=r}oncommentend(){this.lastNode=null}oncdatastart(){let t=new Wt(""),r=new zi([t]);this.addNode(r),t.parent=r,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,r){let i=new je(t,r);this.addNode(i)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){let r=this.tagStack[this.tagStack.length-1],i=r.children[r.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),r.children.push(t),i&&(t.prev=i,i.next=t),t.parent=r,this.lastNode=null}};var St=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var qn=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var yo,Fh=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]]),Dr=(yo=String.fromCodePoint)!==null&&yo!==void 0?yo:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Ji(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Fh.get(e))!==null&&t!==void 0?t:e}var et;(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"})(et||(et={}));var $h=32,lt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(lt||(lt={}));function Co(e){return e>=et.ZERO&&e<=et.NINE}function Vh(e){return e>=et.UPPER_A&&e<=et.UPPER_F||e>=et.LOWER_A&&e<=et.LOWER_F}function Yh(e){return e>=et.UPPER_A&&e<=et.UPPER_Z||e>=et.LOWER_A&&e<=et.LOWER_Z||Co(e)}function Gh(e){return e===et.EQUALS||Yh(e)}var tt;(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"})(tt||(tt={}));var te;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(te||(te={}));var Hn=class{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=tt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=te.Strict}startEntity(t){this.decodeMode=t,this.state=tt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case tt.EntityStart:return t.charCodeAt(r)===et.NUM?(this.state=tt.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=tt.NamedEntity,this.stateNamedEntity(t,r));case tt.NumericStart:return this.stateNumericStart(t,r);case tt.NumericDecimal:return this.stateNumericDecimal(t,r);case tt.NumericHex:return this.stateNumericHex(t,r);case tt.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|$h)===et.LOWER_X?(this.state=tt.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=tt.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,i,s){if(r!==i){let n=i-r;this.result=this.result*Math.pow(s,n)+parseInt(t.substr(r,n),s),this.consumed+=n}}stateNumericHex(t,r){let i=r;for(;r<t.length;){let s=t.charCodeAt(r);if(Co(s)||Vh(s))r+=1;else return this.addToNumericResult(t,i,r,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,i,r,16),-1}stateNumericDecimal(t,r){let i=r;for(;r<t.length;){let s=t.charCodeAt(r);if(Co(s))r+=1;else return this.addToNumericResult(t,i,r,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,i,r,10),-1}emitNumericEntity(t,r){var i;if(this.consumed<=r)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===et.SEMI)this.consumed+=1;else if(this.decodeMode===te.Strict)return 0;return this.emitCodePoint(Ji(this.result),this.consumed),this.errors&&(t!==et.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){let{decodeTree:i}=this,s=i[this.treeIndex],n=(s&lt.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){let o=t.charCodeAt(r);if(this.treeIndex=Zi(i,s,this.treeIndex+Math.max(1,n),o),this.treeIndex<0)return this.result===0||this.decodeMode===te.Attribute&&(n===0||Gh(o))?0:this.emitNotTerminatedNamedEntity();if(s=i[this.treeIndex],n=(s&lt.VALUE_LENGTH)>>14,n!==0){if(o===et.SEMI)return this.emitNamedEntityData(this.treeIndex,n,this.consumed+this.excess);this.decodeMode!==te.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:r,decodeTree:i}=this,s=(i[r]&lt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,i){let{decodeTree:s}=this;return this.emitCodePoint(r===1?s[t]&~lt.VALUE_LENGTH:s[t+1],i),r===3&&this.emitCodePoint(s[t+2],i),i}end(){var t;switch(this.state){case tt.NamedEntity:return this.result!==0&&(this.decodeMode!==te.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tt.NumericDecimal:return this.emitNumericEntity(0,2);case tt.NumericHex:return this.emitNumericEntity(0,3);case tt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tt.EntityStart:return 0}}};function ul(e){let t="",r=new Hn(e,i=>t+=Dr(i));return function(s,n){let o=0,u=0;for(;(u=s.indexOf("&",u))>=0;){t+=s.slice(o,u),r.startEntity(n);let d=r.write(s,u+1);if(d<0){o=u+r.end();break}o=u+d,u=d===0?o+1:o}let c=t+s.slice(o);return t="",c}}function Zi(e,t,r,i){let s=(t&lt.BRANCH_LENGTH)>>7,n=t&lt.JUMP_TABLE;if(s===0)return n!==0&&i===n?r:-1;if(n){let c=i-n;return c<0||c>=s?-1:e[r+c]-1}let o=r,u=o+s-1;for(;o<=u;){let c=o+u>>>1,d=e[c];if(d<i)o=c+1;else if(d>i)u=c-1;else return e[c+s]}return-1}var o3=ul(St),u3=ul(qn);function Un(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}var Xh=new Map(Un([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Un([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Un([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Un([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var No=/["&'<>$\x80-\uFFFF]/g,cl=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),ll=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function ts(e){let t="",r=0,i;for(;(i=No.exec(e))!==null;){let s=i.index,n=e.charCodeAt(s),o=cl.get(n);o!==void 0?(t+=e.substring(r,s)+o,r=s+1):(t+=`${e.substring(r,s)}&#x${ll(e,s).toString(16)};`,r=No.lastIndex+=+((n&64512)===55296))}return t+e.substr(r)}function So(e,t){return function(i){let s,n=0,o="";for(;s=e.exec(i);)n!==s.index&&(o+=i.substring(n,s.index)),o+=t.get(s[0].charCodeAt(0)),n=s.index+1;return o+i.substring(n)}}var dl=So(/[&<>'"]/g,cl),Or=So(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),kr=So(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));var hl;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(hl||(hl={}));var fl;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(fl||(fl={}));var gl=new Map(["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","textPath"].map(e=>[e.toLowerCase(),e])),bl=new Map(["definitionURL","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]));var jh=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Kh(e){return e.replace(/"/g,"&quot;")}function zh(e,t){var r;if(!e)return;let i=((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)===!1?Kh:t.xmlMode||t.encodeEntities!=="utf8"?ts:Or;return Object.keys(e).map(s=>{var n,o;let u=(n=e[s])!==null&&n!==void 0?n:"";return t.xmlMode==="foreign"&&(s=(o=bl.get(s))!==null&&o!==void 0?o:s),!t.emptyAttrs&&!t.xmlMode&&u===""?s:`${s}="${i(u)}"`}).join(" ")}var El=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Lo(e,t={}){let r="length"in e?e:[e],i="";for(let s=0;s<r.length;s++)i+=Qh(r[s],t);return i}var Bn=Lo;function Qh(e,t){switch(e.type){case mo:return Lo(e.children,t);case _o:case bo:return ef(e);case Eo:return nf(e);case vo:return sf(e);case wo:case To:case xo:return tf(e,t);case go:return rf(e,t)}}var Jh=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Zh=new Set(["svg","math"]);function tf(e,t){var r;t.xmlMode==="foreign"&&(e.name=(r=gl.get(e.name))!==null&&r!==void 0?r:e.name,e.parent&&Jh.has(e.parent.name)&&(t=U(S({},t),{xmlMode:!1}))),!t.xmlMode&&Zh.has(e.name)&&(t=U(S({},t),{xmlMode:"foreign"}));let i=`<${e.name}`,s=zh(e.attribs,t);return s&&(i+=` ${s}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&El.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=Lo(e.children,t)),(t.xmlMode||!El.has(e.name))&&(i+=`</${e.name}>`)),i}function ef(e){return`<${e.data}>`}function rf(e,t){var r;let i=e.data||"";return((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&jh.has(e.parent.name))&&(i=t.xmlMode||t.encodeEntities!=="utf8"?ts(i):kr(i)),i}function sf(e){return`<![CDATA[${e.children[0].data}]]>`}function nf(e){return`<!--${e.data}-->`}function wl(e,t){return Bn(e,t)}function af(e,t){return z(e)?e.children.map(r=>wl(r,t)).join(""):""}function Fn(e){return Array.isArray(e)?e.map(Fn).join(""):D(e)?e.name==="br"?`
2373
+ `:Fn(e.children):Rr(e)?Fn(e.children):ft(e)?e.data:""}function ee(e){return Array.isArray(e)?e.map(ee).join(""):z(e)&&!ze(e)?ee(e.children):ft(e)?e.data:""}function es(e){return Array.isArray(e)?e.map(es).join(""):z(e)&&(e.type===F.Tag||Rr(e))?es(e.children):ft(e)?e.data:""}function Mr(e){return z(e)?e.children:[]}function Tl(e){return e.parent||null}function Do(e){let t=Tl(e);if(t!=null)return Mr(t);let r=[e],{prev:i,next:s}=e;for(;i!=null;)r.unshift(i),{prev:i}=i;for(;s!=null;)r.push(s),{next:s}=s;return r}function of(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function uf(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function cf(e){return e.name}function $n(e){let{next:t}=e;for(;t!==null&&!D(t);)({next:t}=t);return t}function Vn(e){let{prev:t}=e;for(;t!==null&&!D(t);)({prev:t}=t);return t}function re(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,r=t.lastIndexOf(e);r>=0&&t.splice(r,1)}e.next=null,e.prev=null,e.parent=null}function lf(e,t){let r=t.prev=e.prev;r&&(r.next=t);let i=t.next=e.next;i&&(i.prev=t);let s=t.parent=e.parent;if(s){let n=s.children;n[n.lastIndexOf(e)]=t,e.parent=null}}function df(e,t){if(re(t),t.next=null,t.parent=e,e.children.push(t)>1){let r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null}function hf(e,t){re(t);let{parent:r}=e,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){let s=r.children;s.splice(s.lastIndexOf(i),0,t)}}else r&&r.children.push(t)}function ff(e,t){if(re(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let r=e.children[1];r.prev=t,t.next=r}else t.next=null}function pf(e,t){re(t);let{parent:r}=e;if(r){let i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}function rs(e,t,r=!0,i=1/0){return Yn(e,Array.isArray(t)?t:[t],r,i)}function Yn(e,t,r,i){let s=[],n=[t],o=[0];for(;;){if(o[0]>=n[0].length){if(o.length===1)return s;n.shift(),o.shift();continue}let u=n[0][o[0]++];if(e(u)&&(s.push(u),--i<=0))return s;r&&z(u)&&u.children.length>0&&(o.unshift(0),n.unshift(u.children))}}function mf(e,t){return t.find(e)}function Gn(e,t,r=!0){let i=null;for(let s=0;s<t.length&&!i;s++){let n=t[s];if(D(n))e(n)?i=n:r&&n.children.length>0&&(i=Gn(e,n.children,!0));else continue}return i}function xl(e,t){return t.some(r=>D(r)&&(e(r)||xl(e,r.children)))}function gf(e,t){let r=[],i=[t],s=[0];for(;;){if(s[0]>=i[0].length){if(i.length===1)return r;i.shift(),s.shift();continue}let n=i[0][s[0]++];D(n)&&(e(n)&&r.push(n),n.children.length>0&&(s.unshift(0),i.unshift(n.children)))}}var Xn={tag_name(e){return typeof e=="function"?t=>D(t)&&e(t.name):e==="*"?D:t=>D(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>ft(t)&&e(t.data):t=>ft(t)&&t.data===e}};function vl(e,t){return typeof t=="function"?r=>D(r)&&t(r.attribs[e]):r=>D(r)&&r.attribs[e]===t}function bf(e,t){return r=>e(r)||t(r)}function _l(e){let t=Object.keys(e).map(r=>{let i=e[r];return Object.prototype.hasOwnProperty.call(Xn,r)?Xn[r](i):vl(r,i)});return t.length===0?null:t.reduce(bf)}function Ef(e,t){let r=_l(e);return r?r(t):!0}function wf(e,t,r,i=1/0){let s=_l(e);return s?rs(s,t,r,i):[]}function Tf(e,t,r=!0){return Array.isArray(t)||(t=[t]),Gn(vl("id",e),t,r)}function Qe(e,t,r=!0,i=1/0){return rs(Xn.tag_name(e),t,r,i)}function xf(e,t,r=!0,i=1/0){return rs(Xn.tag_type(e),t,r,i)}function vf(e){let t=e.length;for(;--t>=0;){let r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(let i=r.parent;i;i=i.parent)if(e.includes(i)){e.splice(t,1);break}}return e}var It;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(It||(It={}));function Al(e,t){let r=[],i=[];if(e===t)return 0;let s=z(e)?e:e.parent;for(;s;)r.unshift(s),s=s.parent;for(s=z(t)?t:t.parent;s;)i.unshift(s),s=s.parent;let n=Math.min(r.length,i.length),o=0;for(;o<n&&r[o]===i[o];)o++;if(o===0)return It.DISCONNECTED;let u=r[o-1],c=u.children,d=r[o],m=i[o];return c.indexOf(d)>c.indexOf(m)?u===t?It.FOLLOWING|It.CONTAINED_BY:It.FOLLOWING:u===e?It.PRECEDING|It.CONTAINS:It.PRECEDING}function be(e){return e=e.filter((t,r,i)=>!i.includes(t,r+1)),e.sort((t,r)=>{let i=Al(t,r);return i&It.PRECEDING?-1:i&It.FOLLOWING?1:0}),e}function Oo(e){let t=Wn(Nf,e);return t?t.name==="feed"?_f(t):Af(t):null}function _f(e){var t;let r=e.children,i={type:"atom",items:Qe("entry",r).map(o=>{var u;let{children:c}=o,d={media:yl(c)};pt(d,"id","id",c),pt(d,"title","title",c);let m=(u=Wn("link",c))===null||u===void 0?void 0:u.attribs.href;m&&(d.link=m);let g=Ee("summary",c)||Ee("content",c);g&&(d.description=g);let _=Ee("updated",c);return _&&(d.pubDate=new Date(_)),d})};pt(i,"id","id",r),pt(i,"title","title",r);let s=(t=Wn("link",r))===null||t===void 0?void 0:t.attribs.href;s&&(i.link=s),pt(i,"description","subtitle",r);let n=Ee("updated",r);return n&&(i.updated=new Date(n)),pt(i,"author","email",r,!0),i}function Af(e){var t,r;let i=(r=(t=Wn("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[],s={type:e.name.substr(0,3),id:"",items:Qe("item",e.children).map(o=>{let{children:u}=o,c={media:yl(u)};pt(c,"id","guid",u),pt(c,"title","title",u),pt(c,"link","link",u),pt(c,"description","description",u);let d=Ee("pubDate",u)||Ee("dc:date",u);return d&&(c.pubDate=new Date(d)),c})};pt(s,"title","title",i),pt(s,"link","link",i),pt(s,"description","description",i);let n=Ee("lastBuildDate",i);return n&&(s.updated=new Date(n)),pt(s,"author","managingEditor",i,!0),s}var yf=["url","type","lang"],Cf=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function yl(e){return Qe("media:content",e).map(t=>{let{attribs:r}=t,i={medium:r.medium,isDefault:!!r.isDefault};for(let s of yf)r[s]&&(i[s]=r[s]);for(let s of Cf)r[s]&&(i[s]=parseInt(r[s],10));return r.expression&&(i.expression=r.expression),i})}function Wn(e,t){return Qe(e,t,!0,1)[0]}function Ee(e,t,r=!1){return ee(Qe(e,t,r,1)).trim()}function pt(e,t,r,i,s=!1){let n=Ee(r,i,s);n&&(e[t]=n)}function Nf(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function Nl(e,t,r){return e?e(t!=null?t:e._root.children,null,void 0,r).toString():""}function Sf(e,t){return!t&&typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function Sl(e,t){let r=Sf(e)?(t=e,void 0):e,i=S(S(S({},Xi),this===null||this===void 0?void 0:this._options),Wi(t!=null?t:{}));return Nl(this,r,i)}function Il(e){let t=U(S({},this._options),{xmlMode:!0});return Nl(this,e,t)}function we(e){let t=e||(this?this.root():[]),r="";for(let i=0;i<t.length;i++)r+=ee(t[i]);return r}function If(e,t,r=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(r=t);let i=this.load(e,Xi,!1);return r||i("script").remove(),i.root()[0].children.slice()}function Rf(){return this(this._root)}function ko(e,t){if(t===e)return!1;let r=t;for(;r&&r!==r.parent;)if(r=r.parent,r===e)return!0;return!1}function Lf(e,t){if(!Cl(e)||!Cl(t))return;let r=e.length,i=+t.length;for(let s=0;s<i;s++)e[r++]=t[s];return e.length=r,e}function Cl(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}var Ho={};_t(Ho,{addClass:()=>ql,attr:()=>Of,data:()=>Mf,hasClass:()=>Hf,prop:()=>kf,removeAttr:()=>qf,removeClass:()=>Hl,toggleClass:()=>Ul,val:()=>Pf});function xt(e){return e.cheerio!=null}function Rl(e){return e.replace(/[_.-](\w|$)/g,(t,r)=>r.toUpperCase())}function Ll(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function G(e,t){let r=e.length;for(let i=0;i<r;i++)t(e[i],i);return e}function jn(e){let t="length"in e?Array.prototype.map.call(e,i=>Qi(i,!0)):[Qi(e,!0)],r=new Tt(t);return t.forEach(i=>{i.parent=r}),t}var Je;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(Je||(Je={}));function is(e){let t=e.indexOf("<");if(t<0||t>e.length-3)return!1;let r=e.charCodeAt(t+1);return(r>=Je.LowerA&&r<=Je.LowerZ||r>=Je.UpperA&&r<=Je.UpperZ||r===Je.Exclamation)&&e.includes(">",t+2)}var Pr=Object.prototype.hasOwnProperty,ss=/\s+/,Mo="data-",Dl={null:null,true:!0,false:!1},qo=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Df=/^{[^]*}$|^\[[^]*]$/;function Kn(e,t,r){var i;if(!(!e||!D(e))){if((i=e.attribs)!==null&&i!==void 0||(e.attribs={}),!t)return e.attribs;if(Pr.call(e.attribs,t))return!r&&qo.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return we(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function qr(e,t,r){r===null?Pl(e,t):e.attribs[t]=`${r}`}function Of(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return G(this,(r,i)=>{D(r)&&qr(r,e,t.call(r,i,r.attribs[e]))})}return G(this,r=>{D(r)&&(typeof e=="object"?Object.keys(e).forEach(i=>{let s=e[i];qr(r,i,s)}):qr(r,e,t))})}return arguments.length>1?this:Kn(this[0],e,this.options.xmlMode)}function Ol(e,t,r){return t in e?e[t]:!r&&qo.test(t)?Kn(e,t,!1)!==void 0:Kn(e,t,r)}function Po(e,t,r,i){t in e?e[t]=r:qr(e,t,!i&&qo.test(t)?r?"":null:`${r}`)}function kf(e,t){var r;if(typeof e=="string"&&t===void 0){let i=this[0];if(!i||!D(i))return;switch(e){case"style":{let s=this.css(),n=Object.keys(s);return n.forEach((o,u)=>{s[u]=o}),s.length=n.length,s}case"tagName":case"nodeName":return i.name.toUpperCase();case"href":case"src":{let s=(r=i.attribs)===null||r===void 0?void 0:r[e];return typeof URL!="undefined"&&(e==="href"&&(i.tagName==="a"||i.name==="link")||e==="src"&&(i.tagName==="img"||i.tagName==="iframe"||i.tagName==="audio"||i.tagName==="video"||i.tagName==="source"))&&s!==void 0&&this.options.baseURI?new URL(s,this.options.baseURI).href:s}case"innerText":return es(i);case"textContent":return ee(i);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return Ol(i,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return G(this,(i,s)=>{D(i)&&Po(i,e,t.call(i,s,Ol(i,e,this.options.xmlMode)),this.options.xmlMode)})}return G(this,i=>{D(i)&&(typeof e=="object"?Object.keys(e).forEach(s=>{let n=e[s];Po(i,s,n,this.options.xmlMode)}):Po(i,e,t,this.options.xmlMode))})}}function kl(e,t,r){var i;let s=e;(i=s.data)!==null&&i!==void 0||(s.data={}),typeof t=="object"?Object.assign(s.data,t):typeof t=="string"&&r!==void 0&&(s.data[t]=r)}function Ml(e,t){let r,i,s;t==null?(r=Object.keys(e.attribs).filter(n=>n.startsWith(Mo)),i=r.map(n=>Rl(n.slice(Mo.length)))):(r=[Mo+Ll(t)],i=[t]);for(let n=0;n<r.length;++n){let o=r[n],u=i[n];if(Pr.call(e.attribs,o)&&!Pr.call(e.data,u)){if(s=e.attribs[o],Pr.call(Dl,s))s=Dl[s];else if(s===String(Number(s)))s=Number(s);else if(Df.test(s))try{s=JSON.parse(s)}catch(c){}e.data[u]=s}}return t==null?e.data:s}function Mf(e,t){var r;let i=this[0];if(!i||!D(i))return;let s=i;return(r=s.data)!==null&&r!==void 0||(s.data={}),e?typeof e=="object"||t!==void 0?(G(this,n=>{D(n)&&(typeof e=="object"?kl(n,e):kl(n,e,t))}),this):Pr.call(s.data,e)?s.data[e]:Ml(s,e):Ml(s)}function Pf(e){let t=arguments.length===0,r=this[0];if(!r||!D(r))return t?void 0:this;switch(r.name){case"textarea":return this.text(e);case"select":{let i=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");let s=typeof e!="object"?[e]:e;for(let n=0;n<s.length;n++)this.find(`option[value="${s[n]}"]`).attr("selected","");return this}return this.attr("multiple")?i.toArray().map(s=>we(s.children)):i.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function Pl(e,t){!e.attribs||!Pr.call(e.attribs,t)||delete e.attribs[t]}function zn(e){return e?e.trim().split(ss):[]}function qf(e){let t=zn(e);for(let r=0;r<t.length;r++)G(this,i=>{D(i)&&Pl(i,t[r])});return this}function Hf(e){return this.toArray().some(t=>{let r=D(t)&&t.attribs.class,i=-1;if(r&&e.length)for(;(i=r.indexOf(e,i+1))>-1;){let s=i+e.length;if((i===0||ss.test(r[i-1]))&&(s===r.length||ss.test(r[s])))return!0}return!1})}function ql(e){if(typeof e=="function")return G(this,(i,s)=>{if(D(i)){let n=i.attribs.class||"";ql.call([i],e.call(i,s,n))}});if(!e||typeof e!="string")return this;let t=e.split(ss),r=this.length;for(let i=0;i<r;i++){let s=this[i];if(!D(s))continue;let n=Kn(s,"class",!1);if(!n)qr(s,"class",t.join(" ").trim());else{let o=` ${n} `;for(let u=0;u<t.length;u++){let c=`${t[u]} `;o.includes(` ${c}`)||(o+=c)}qr(s,"class",o.trim())}}return this}function Hl(e){if(typeof e=="function")return G(this,(s,n)=>{D(s)&&Hl.call([s],e.call(s,n,s.attribs.class||""))});let t=zn(e),r=t.length,i=arguments.length===0;return G(this,s=>{if(D(s))if(i)s.attribs.class="";else{let n=zn(s.attribs.class),o=!1;for(let u=0;u<r;u++){let c=n.indexOf(t[u]);c>=0&&(n.splice(c,1),o=!0,u--)}o&&(s.attribs.class=n.join(" "))}})}function Ul(e,t){if(typeof e=="function")return G(this,(o,u)=>{D(o)&&Ul.call([o],e.call(o,u,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;let r=e.split(ss),i=r.length,s=typeof t=="boolean"?t?1:-1:0,n=this.length;for(let o=0;o<n;o++){let u=this[o];if(!D(u))continue;let c=zn(u.attribs.class);for(let d=0;d<i;d++){let m=c.indexOf(r[d]);s>=0&&m<0?c.push(r[d]):s<=0&&m>=0&&c.splice(m,1)}u.attribs.class=c.join(" ")}return this}var ou={};_t(ou,{add:()=>qp,addBack:()=>Hp,children:()=>xp,closest:()=>fp,contents:()=>vp,each:()=>_p,end:()=>Pp,eq:()=>Lp,filter:()=>yp,filterArray:()=>au,find:()=>cp,first:()=>Ip,get:()=>Dp,has:()=>Sp,index:()=>kp,is:()=>Cp,last:()=>Rp,map:()=>Ap,next:()=>pp,nextAll:()=>mp,nextUntil:()=>gp,not:()=>Np,parent:()=>lp,parents:()=>dp,parentsUntil:()=>hp,prev:()=>bp,prevAll:()=>Ep,prevUntil:()=>wp,siblings:()=>Tp,slice:()=>Mp,toArray:()=>Op});var O;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(O||(O={}));var Z;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(Z||(Z={}));var Bl=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Uf=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,Bf=new Map([[126,Z.Element],[94,Z.Start],[36,Z.End],[42,Z.Any],[33,Z.Not],[124,Z.Hyphen]]),Ff=new Set(["has","not","matches","is","where","host","host-context"]);function Ze(e){switch(e.type){case O.Adjacent:case O.Child:case O.Descendant:case O.Parent:case O.Sibling:case O.ColumnCombinator:return!0;default:return!1}}var $f=new Set(["contains","icontains"]);function Vf(e,t,r){let i=parseInt(t,16)-65536;return i!==i||r?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,i&1023|56320)}function ns(e){return e.replace(Uf,Vf)}function Uo(e){return e===39||e===34}function Fl(e){return e===32||e===9||e===10||e===12||e===13}function se(e){let t=[],r=$l(t,`${e}`,0);if(r<e.length)throw new Error(`Unmatched selector: ${e.slice(r)}`);return t}function $l(e,t,r){let i=[];function s(_){let v=t.slice(r+_).match(Bl);if(!v)throw new Error(`Expected name, found ${t.slice(r)}`);let[N]=v;return r+=_+N.length,ns(N)}function n(_){for(r+=_;r<t.length&&Fl(t.charCodeAt(r));)r++}function o(){r+=1;let _=r,v=1;for(;v>0&&r<t.length;r++)t.charCodeAt(r)===40&&!u(r)?v++:t.charCodeAt(r)===41&&!u(r)&&v--;if(v)throw new Error("Parenthesis not matched");return ns(t.slice(_,r-1))}function u(_){let v=0;for(;t.charCodeAt(--_)===92;)v++;return(v&1)===1}function c(){if(i.length>0&&Ze(i[i.length-1]))throw new Error("Did not expect successive traversals.")}function d(_){if(i.length>0&&i[i.length-1].type===O.Descendant){i[i.length-1].type=_;return}c(),i.push({type:_})}function m(_,v){i.push({type:O.Attribute,name:_,action:v,value:s(1),namespace:null,ignoreCase:"quirks"})}function g(){if(i.length&&i[i.length-1].type===O.Descendant&&i.pop(),i.length===0)throw new Error("Empty sub-selector");e.push(i)}if(n(0),t.length===r)return r;t:for(;r<t.length;){let _=t.charCodeAt(r);switch(_){case 32:case 9:case 10:case 12:case 13:{(i.length===0||i[0].type!==O.Descendant)&&(c(),i.push({type:O.Descendant})),n(1);break}case 62:{d(O.Child),n(1);break}case 60:{d(O.Parent),n(1);break}case 126:{d(O.Sibling),n(1);break}case 43:{d(O.Adjacent),n(1);break}case 46:{m("class",Z.Element);break}case 35:{m("id",Z.Equals);break}case 91:{n(1);let v,N=null;t.charCodeAt(r)===124?v=s(1):t.startsWith("*|",r)?(N="*",v=s(2)):(v=s(0),t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==61&&(N=v,v=s(1))),n(0);let L=Z.Exists,H=Bf.get(t.charCodeAt(r));if(H){if(L=H,t.charCodeAt(r+1)!==61)throw new Error("Expected `=`");n(2)}else t.charCodeAt(r)===61&&(L=Z.Equals,n(1));let Y="",bt=null;if(L!=="exists"){if(Uo(t.charCodeAt(r))){let Ys=t.charCodeAt(r),Ie=r+1;for(;Ie<t.length&&(t.charCodeAt(Ie)!==Ys||u(Ie));)Ie+=1;if(t.charCodeAt(Ie)!==Ys)throw new Error("Attribute value didn't end");Y=ns(t.slice(r+1,Ie)),r=Ie+1}else{let Ys=r;for(;r<t.length&&(!Fl(t.charCodeAt(r))&&t.charCodeAt(r)!==93||u(r));)r+=1;Y=ns(t.slice(Ys,r))}n(0);let ci=t.charCodeAt(r)|32;ci===115?(bt=!1,n(1)):ci===105&&(bt=!0,n(1))}if(t.charCodeAt(r)!==93)throw new Error("Attribute selector didn't terminate");r+=1;let Se={type:O.Attribute,name:v,action:L,value:Y,namespace:N,ignoreCase:bt};i.push(Se);break}case 58:{if(t.charCodeAt(r+1)===58){i.push({type:O.PseudoElement,name:s(2).toLowerCase(),data:t.charCodeAt(r)===40?o():null});continue}let v=s(1).toLowerCase(),N=null;if(t.charCodeAt(r)===40)if(Ff.has(v)){if(Uo(t.charCodeAt(r+1)))throw new Error(`Pseudo-selector ${v} cannot be quoted`);if(N=[],r=$l(N,t,r+1),t.charCodeAt(r)!==41)throw new Error(`Missing closing parenthesis in :${v} (${t})`);r+=1}else{if(N=o(),$f.has(v)){let L=N.charCodeAt(0);L===N.charCodeAt(N.length-1)&&Uo(L)&&(N=N.slice(1,-1))}N=ns(N)}i.push({type:O.Pseudo,name:v,data:N});break}case 44:{g(),i=[],n(1);break}default:{if(t.startsWith("/*",r)){let L=t.indexOf("*/",r+2);if(L<0)throw new Error("Comment was not terminated");r=L+2,i.length===0&&n(0);break}let v=null,N;if(_===42)r+=1,N="*";else if(_===124){if(N="",t.charCodeAt(r+1)===124){d(O.ColumnCombinator),n(2);break}}else if(Bl.test(t.slice(r)))N=s(0);else break t;t.charCodeAt(r)===124&&t.charCodeAt(r+1)!==124&&(v=N,t.charCodeAt(r+1)===42?(N="*",r+=2):N=s(1)),i.push(N==="*"?{type:O.Universal,namespace:v}:{type:O.Tag,name:N,namespace:v})}}}return g(),r}var zo=Re(xe(),1);var ne=Re(xe(),1);var Yl=new Map([[O.Universal,50],[O.Tag,30],[O.Attribute,1],[O.Pseudo,0]]);function as(e){return!Yl.has(e.type)}var Yf=new Map([[Z.Exists,10],[Z.Equals,8],[Z.Not,7],[Z.Start,6],[Z.End,6],[Z.Any,5]]);function Bo(e){let t=e.map(Gl);for(let r=1;r<e.length;r++){let i=t[r];if(!(i<0))for(let s=r-1;s>=0&&i<t[s];s--){let n=e[s+1];e[s+1]=e[s],e[s]=n,t[s+1]=t[s],t[s]=i}}}function Gl(e){var t,r;let i=(t=Yl.get(e.type))!==null&&t!==void 0?t:-1;return e.type===O.Attribute?(i=(r=Yf.get(e.action))!==null&&r!==void 0?r:4,e.action===Z.Equals&&e.name==="id"&&(i=9),e.ignoreCase&&(i>>=1)):e.type===O.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?i=0:Array.isArray(e.data)?(i=Math.min(...e.data.map(s=>Math.min(...s.map(Gl)))),i<0&&(i=0)):i=2:i=3),i}var os=Re(xe(),1),Gf=/[-[\]{}()*+?.,\\^$|#\s]/g;function Xl(e){return e.replace(Gf,"\\$&")}var Xf=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function tr(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&Xf.has(e.name)}var Wl={equals(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t;return tr(t,r)?(n=n.toLowerCase(),o=>{let u=i.getAttributeValue(o,s);return u!=null&&u.length===n.length&&u.toLowerCase()===n&&e(o)}):o=>i.getAttributeValue(o,s)===n&&e(o)},hyphen(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t,o=n.length;return tr(t,r)?(n=n.toLowerCase(),function(c){let d=i.getAttributeValue(c,s);return d!=null&&(d.length===o||d.charAt(o)==="-")&&d.substr(0,o).toLowerCase()===n&&e(c)}):function(c){let d=i.getAttributeValue(c,s);return d!=null&&(d.length===o||d.charAt(o)==="-")&&d.substr(0,o)===n&&e(c)}},element(e,t,r){let{adapter:i}=r,{name:s,value:n}=t;if(/\s/.test(n))return os.default.falseFunc;let o=new RegExp(`(?:^|\\s)${Xl(n)}(?:$|\\s)`,tr(t,r)?"i":"");return function(c){let d=i.getAttributeValue(c,s);return d!=null&&d.length>=n.length&&o.test(d)&&e(c)}},exists(e,{name:t},{adapter:r}){return i=>r.hasAttrib(i,t)&&e(i)},start(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t,o=n.length;return o===0?os.default.falseFunc:tr(t,r)?(n=n.toLowerCase(),u=>{let c=i.getAttributeValue(u,s);return c!=null&&c.length>=o&&c.substr(0,o).toLowerCase()===n&&e(u)}):u=>{var c;return!!(!((c=i.getAttributeValue(u,s))===null||c===void 0)&&c.startsWith(n))&&e(u)}},end(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t,o=-n.length;return o===0?os.default.falseFunc:tr(t,r)?(n=n.toLowerCase(),u=>{var c;return((c=i.getAttributeValue(u,s))===null||c===void 0?void 0:c.substr(o).toLowerCase())===n&&e(u)}):u=>{var c;return!!(!((c=i.getAttributeValue(u,s))===null||c===void 0)&&c.endsWith(n))&&e(u)}},any(e,t,r){let{adapter:i}=r,{name:s,value:n}=t;if(n==="")return os.default.falseFunc;if(tr(t,r)){let o=new RegExp(Xl(n),"i");return function(c){let d=i.getAttributeValue(c,s);return d!=null&&d.length>=n.length&&o.test(d)&&e(c)}}return o=>{var u;return!!(!((u=i.getAttributeValue(o,s))===null||u===void 0)&&u.includes(n))&&e(o)}},not(e,t,r){let{adapter:i}=r,{name:s}=t,{value:n}=t;return n===""?o=>!!i.getAttributeValue(o,s)&&e(o):tr(t,r)?(n=n.toLowerCase(),o=>{let u=i.getAttributeValue(o,s);return(u==null||u.length!==n.length||u.toLowerCase()!==n)&&e(o)}):o=>i.getAttributeValue(o,s)!==n&&e(o)}};var Wf=new Set([9,10,12,13,32]),jl="0".charCodeAt(0),jf="9".charCodeAt(0);function Kl(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,r=0,i=n(),s=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,r=i*(s!=null?s:1),u(),t<e.length?(i=n(),u(),s=o()):i=s=0),s===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[r,i*s];function n(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){let c=t,d=0;for(;t<e.length&&e.charCodeAt(t)>=jl&&e.charCodeAt(t)<=jf;)d=d*10+(e.charCodeAt(t)-jl),t++;return t===c?null:d}function u(){for(;t<e.length&&Wf.has(e.charCodeAt(t));)t++}}var Fo=Re(xe(),1);function zl(e){let t=e[0],r=e[1]-1;if(r<0&&t<=0)return Fo.default.falseFunc;if(t===-1)return n=>n<=r;if(t===0)return n=>n===r;if(t===1)return r<0?Fo.default.trueFunc:n=>n>=r;let i=Math.abs(t),s=(r%i+i)%i;return t>1?n=>n>=r&&n%i===s:n=>n<=r&&n%i===s}function Hr(e){return zl(Kl(e))}var mt=Re(xe(),1);function Qn(e,t){return r=>{let i=t.getParent(r);return i!=null&&t.isTag(i)&&e(r)}}var Ur={contains(e,t,{adapter:r}){return function(s){return e(s)&&r.getText(s).includes(t)}},icontains(e,t,{adapter:r}){let i=t.toLowerCase();return function(n){return e(n)&&r.getText(n).toLowerCase().includes(i)}},"nth-child"(e,t,{adapter:r,equals:i}){let s=Hr(t);return s===mt.default.falseFunc?mt.default.falseFunc:s===mt.default.trueFunc?Qn(e,r):function(o){let u=r.getSiblings(o),c=0;for(let d=0;d<u.length&&!i(o,u[d]);d++)r.isTag(u[d])&&c++;return s(c)&&e(o)}},"nth-last-child"(e,t,{adapter:r,equals:i}){let s=Hr(t);return s===mt.default.falseFunc?mt.default.falseFunc:s===mt.default.trueFunc?Qn(e,r):function(o){let u=r.getSiblings(o),c=0;for(let d=u.length-1;d>=0&&!i(o,u[d]);d--)r.isTag(u[d])&&c++;return s(c)&&e(o)}},"nth-of-type"(e,t,{adapter:r,equals:i}){let s=Hr(t);return s===mt.default.falseFunc?mt.default.falseFunc:s===mt.default.trueFunc?Qn(e,r):function(o){let u=r.getSiblings(o),c=0;for(let d=0;d<u.length;d++){let m=u[d];if(i(o,m))break;r.isTag(m)&&r.getName(m)===r.getName(o)&&c++}return s(c)&&e(o)}},"nth-last-of-type"(e,t,{adapter:r,equals:i}){let s=Hr(t);return s===mt.default.falseFunc?mt.default.falseFunc:s===mt.default.trueFunc?Qn(e,r):function(o){let u=r.getSiblings(o),c=0;for(let d=u.length-1;d>=0;d--){let m=u[d];if(i(o,m))break;r.isTag(m)&&r.getName(m)===r.getName(o)&&c++}return s(c)&&e(o)}},root(e,t,{adapter:r}){return i=>{let s=r.getParent(i);return(s==null||!r.isTag(s))&&e(i)}},scope(e,t,r,i){let{equals:s}=r;return!i||i.length===0?Ur.root(e,t,r):i.length===1?n=>s(i[0],n)&&e(n):n=>i.includes(n)&&e(n)},hover:$o("isHovered"),visited:$o("isVisited"),active:$o("isActive")};function $o(e){return function(r,i,{adapter:s}){let n=s[e];return typeof n!="function"?mt.default.falseFunc:function(u){return n(u)&&r(u)}}}var us={empty(e,{adapter:t}){return!t.getChildren(e).some(r=>t.isTag(r)||t.getText(r)!=="")},"first-child"(e,{adapter:t,equals:r}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let i=t.getSiblings(e).find(s=>t.isTag(s));return i!=null&&r(e,i)},"last-child"(e,{adapter:t,equals:r}){let i=t.getSiblings(e);for(let s=i.length-1;s>=0;s--){if(r(e,i[s]))return!0;if(t.isTag(i[s]))break}return!1},"first-of-type"(e,{adapter:t,equals:r}){let i=t.getSiblings(e),s=t.getName(e);for(let n=0;n<i.length;n++){let o=i[n];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"last-of-type"(e,{adapter:t,equals:r}){let i=t.getSiblings(e),s=t.getName(e);for(let n=i.length-1;n>=0;n--){let o=i[n];if(r(e,o))return!0;if(t.isTag(o)&&t.getName(o)===s)break}return!1},"only-of-type"(e,{adapter:t,equals:r}){let i=t.getName(e);return t.getSiblings(e).every(s=>r(e,s)||!t.isTag(s)||t.getName(s)!==i)},"only-child"(e,{adapter:t,equals:r}){return t.getSiblings(e).every(i=>r(e,i)||!t.isTag(i))}};function Vo(e,t,r,i){if(r===null){if(e.length>i)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===i)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}var Jn={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
2635
2374
  :is(button, input, select, textarea, optgroup, option)[disabled],
2636
2375
  optgroup[disabled] > option,
2637
2376
  fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
2638
- )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Rt=Se(Ee(),1);var Go={};function Xo(e,t){return e===Rt.default.falseFunc?Rt.default.falseFunc:r=>t.isTag(r)&&e(r)}function Wo(e,t){let r=t.getSiblings(e);if(r.length<=1)return[];let i=r.indexOf(e);return i<0||i===r.length-1?[]:r.slice(i+1).filter(t.isTag)}function Yo(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var Vo=(e,t,r,i,s)=>{let n=s(t,Yo(r),i);return n===Rt.default.trueFunc?e:n===Rt.default.falseFunc?Rt.default.falseFunc:o=>n(o)&&e(o)},Zn={is:Vo,matches:Vo,where:Vo,not(e,t,r,i,s){let n=s(t,Yo(r),i);return n===Rt.default.falseFunc?e:n===Rt.default.trueFunc?Rt.default.falseFunc:o=>!n(o)&&e(o)},has(e,t,r,i,s){let{adapter:n}=r,o=Yo(r);o.relativeSelector=!0;let u=t.some(p=>p.some(as))?[Go]:void 0,c=s(t,o,u);if(c===Rt.default.falseFunc)return Rt.default.falseFunc;let d=Xo(c,n);if(u&&c!==Rt.default.trueFunc){let{shouldTestNextSiblings:p=!1}=c;return g=>{if(!e(g))return!1;u[0]=g;let _=n.getChildren(g),x=p?[..._,...Wo(g,n)]:_;return n.existsOne(d,x)}}return p=>e(p)&&n.existsOne(d,n.getChildren(p))}};function Kl(e,t,r,i,s){var n;let{name:o,data:u}=t;if(Array.isArray(u)){if(!(o in Zn))throw new Error(`Unknown pseudo-class :${o}(${u})`);return Zn[o](e,u,r,i,s)}let c=(n=r.pseudos)===null||n===void 0?void 0:n[o],d=typeof c=="string"?c:Jn[o];if(typeof d=="string"){if(u!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let p=se(d);return Zn.is(e,p,r,i,s)}if(typeof c=="function")return $o(c,o,u,1),p=>c(p,u)&&e(p);if(o in Hr)return Hr[o](e,u,r,i);if(o in us){let p=us[o];return $o(p,o,u,2),g=>p(g,r,u)&&e(g)}throw new Error(`Unknown pseudo-class :${o}`)}function jo(e,t){let r=t.getParent(e);return r&&t.isTag(r)?r:null}function zl(e,t,r,i,s){let{adapter:n,equals:o}=r;switch(t.type){case O.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case O.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case O.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Gl[t.action](e,t,r)}case O.Pseudo:return Kl(e,t,r,i,s);case O.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:u}=t;return(!r.xmlMode||r.lowerCaseTags)&&(u=u.toLowerCase()),function(d){return n.getName(d)===u&&e(d)}}case O.Descendant:{if(r.cacheResults===!1||typeof WeakSet=="undefined")return function(d){let p=d;for(;p=jo(p,n);)if(e(p))return!0;return!1};let u=new WeakSet;return function(d){let p=d;for(;p=jo(p,n);)if(!u.has(p)){if(n.isTag(p)&&e(p))return!0;u.add(p)}return!1}}case"_flexibleDescendant":return function(c){let d=c;do if(e(d))return!0;while(d=jo(d,n));return!1};case O.Parent:return function(c){return n.getChildren(c).some(d=>n.isTag(d)&&e(d))};case O.Child:return function(c){let d=n.getParent(c);return d!=null&&n.isTag(d)&&e(d)};case O.Sibling:return function(c){let d=n.getSiblings(c);for(let p=0;p<d.length;p++){let g=d[p];if(o(c,g))break;if(n.isTag(g)&&e(g))return!0}return!1};case O.Adjacent:return n.prevElementSibling?function(c){let d=n.prevElementSibling(c);return d!=null&&e(d)}:function(c){let d=n.getSiblings(c),p;for(let g=0;g<d.length;g++){let _=d[g];if(o(c,_))break;n.isTag(_)&&(p=_)}return!!p&&e(p)};case O.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function Ql(e,t,r){let i=ta(e,t,r);return Xo(i,t.adapter)}function ta(e,t,r){let i=typeof e=="string"?se(e):e;return ea(i,t,r)}function Jl(e){return e.type===O.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(Jl)))}var Wf={type:O.Descendant},jf={type:"_flexibleDescendant"},Kf={type:O.Pseudo,name:"scope",data:null};function zf(e,{adapter:t},r){let i=!!(r!=null&&r.every(s=>{let n=t.isTag(s)&&t.getParent(s);return s===Go||n&&t.isTag(n)}));for(let s of e){if(!(s.length>0&&as(s[0])&&s[0].type!==O.Descendant))if(i&&!s.some(Jl))s.unshift(Wf);else continue;s.unshift(Kf)}}function ea(e,t,r){var i;e.forEach(Uo),r=(i=t.context)!==null&&i!==void 0?i:r;let s=Array.isArray(r),n=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)zf(e,t,n);else if(e.some(c=>c.length>0&&as(c[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1,u=e.map(c=>{if(c.length>=2){let[d,p]=c;d.type!==O.Pseudo||d.name!=="scope"||(s&&p.type===O.Descendant?c[1]=jf:(p.type===O.Adjacent||p.type===O.Sibling)&&(o=!0))}return Qf(c,t,n)}).reduce(Jf,ne.default.falseFunc);return u.shouldTestNextSiblings=o,u}function Qf(e,t,r){var i;return e.reduce((s,n)=>s===ne.default.falseFunc?ne.default.falseFunc:zl(s,n,t,r,ea),(i=t.rootFunc)!==null&&i!==void 0?i:ne.default.trueFunc)}function Jf(e,t){return t===ne.default.falseFunc||e===ne.default.trueFunc?e:e===ne.default.falseFunc||t===ne.default.trueFunc?t:function(i){return e(i)||t(i)}}var Zl=(e,t)=>e===t,Zf={adapter:ie,equals:Zl};function td(e){var t,r,i,s;let n=e!=null?e:Zf;return(t=n.adapter)!==null&&t!==void 0||(n.adapter=ie),(r=n.equals)!==null&&r!==void 0||(n.equals=(s=(i=n.adapter)===null||i===void 0?void 0:i.equals)!==null&&s!==void 0?s:Zl),n}function zo(e){return function(r,i,s){let n=td(i);return e(r,n,s)}}var KS=zo(Ql),zS=zo(ta),ra=zo(ea);function ed(e){return function(r,i,s){let n=td(s);typeof r!="function"&&(r=ta(r,n,i));let o=ia(i,n.adapter,r.shouldTestNextSiblings);return e(r,o,n)}}function ia(e,t,r=!1){return r&&(e=tp(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function tp(e,t){let r=Array.isArray(e)?e.slice(0):[e],i=r.length;for(let s=0;s<i;s++){let n=Wo(r[s],t);r.push(...n)}return r}var QS=ed((e,t,r)=>e===Ko.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)),JS=ed((e,t,r)=>e===Ko.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t));var na=Se(Ee(),1);var ep=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function Ur(e){return e.type!=="pseudo"?!1:ep.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(Ur)):!1}function rd(e,t,r){let i=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(i)?i>=0?i+1:1/0:0;case"lt":return isFinite(i)?i>=0?Math.min(i,r):1/0:0;case"gt":return isFinite(i)?1/0:0;case"odd":return 2*r;case"even":return 2*r-1;case"last":case"not":return 1/0}}function id(e){for(;e.parent;)e=e.parent;return e}function sa(e){let t=[],r=[];for(let i of e)i.some(Ur)?t.push(i):r.push(i);return[r,t]}var rp={type:O.Universal,namespace:null},ip={type:O.Pseudo,name:"scope",data:null};function Zo(e,t,r={}){return tu([e],t,r)}function tu(e,t,r={}){if(typeof t=="function")return e.some(t);let[i,s]=sa(se(t));return i.length>0&&e.some(ra(i,r))||s.some(n=>nd(n,e,r).length>0)}function sp(e,t,r,i){let s=typeof r=="string"?parseInt(r,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(s)&&Math.abs(s)<t.length?[s<0?t[t.length+s]:t[s]]:[];case"gt":return isFinite(s)?t.slice(s+1):[];case"even":return t.filter((n,o)=>o%2===0);case"odd":return t.filter((n,o)=>o%2===1);case"not":{let n=new Set(sd(r,t,i));return t.filter(o=>!n.has(o))}}}function eu(e,t,r={}){return sd(se(e),t,r)}function sd(e,t,r){if(t.length===0)return[];let[i,s]=sa(e),n;if(i.length){let o=Jo(t,i,r);if(s.length===0)return o;o.length&&(n=new Set(o))}for(let o=0;o<s.length&&(n==null?void 0:n.size)!==t.length;o++){let u=s[o];if((n?t.filter(p=>L(p)&&!n.has(p)):t).length===0)break;let d=nd(u,t,r);if(d.length)if(n)d.forEach(p=>n.add(p));else{if(o===s.length-1)return d;n=new Set(d)}}return typeof n!="undefined"?n.size===t.length?t:t.filter(o=>n.has(o)):[]}function nd(e,t,r){var i;if(e.some(Qe)){let s=(i=r.root)!==null&&i!==void 0?i:id(t[0]),n=U(N({},r),{context:t,relativeSelector:!1});return e.push(ip),aa(s,e,n,!0,t.length)}return aa(t,e,r,!1,t.length)}function ad(e,t,r={},i=1/0){if(typeof e=="function")return od(t,e);let[s,n]=sa(se(e)),o=n.map(u=>aa(t,u,r,!0,i));return s.length&&o.push(Qo(t,s,r,i)),o.length===0?[]:o.length===1?o[0]:pe(o.reduce((u,c)=>[...u,...c]))}function aa(e,t,r,i,s){let n=t.findIndex(Ur),o=t.slice(0,n),u=t[n],c=t.length-1===n?s:1/0,d=rd(u.name,u.data,c);if(d===0)return[];let g=(o.length===0&&!Array.isArray(e)?kr(e).filter(L):o.length===0?(Array.isArray(e)?e:[e]).filter(L):i||o.some(Qe)?Qo(e,[o],r,d):Jo(e,[o],r)).slice(0,d),_=sp(u.name,g,u.data,r);if(_.length===0||t.length===n+1)return _;let x=t.slice(n+1),S=x.some(Qe);if(S){if(Qe(x[0])){let{type:R}=x[0];(R===O.Sibling||R===O.Adjacent)&&(_=ia(_,ie,!0)),x.unshift(rp)}r=U(N({},r),{relativeSelector:!1,rootFunc:R=>_.includes(R)})}else r.rootFunc&&r.rootFunc!==na.trueFunc&&(r=U(N({},r),{rootFunc:na.trueFunc}));return x.some(Ur)?aa(_,x,r,!1,s):S?Qo(_,[x],r,s):Jo(_,[x],r)}function Qo(e,t,r,i){let s=ra(t,r,e);return od(e,s,i)}function od(e,t,r=1/0){let i=ia(e,ie,t.shouldTestNextSiblings);return Yn(s=>L(s)&&t(s),i,!0,r)}function Jo(e,t,r){let i=(Array.isArray(e)?e:[e]).filter(L);if(i.length===0)return i;let s=ra(t,r);return s===na.trueFunc?i:i.filter(s)}var ap=/^\s*[~+]/;function op(e){var t;if(!e)return this._make([]);let r=this.toArray();if(typeof e!="string"){let n=xt(e)?e.toArray():[e];return this._make(n.filter(o=>r.some(u=>Oo(u,o))))}let i=ap.test(e)?r:this.children().toArray(),s={context:r,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(ad(e,i,s))}function ru(e){return function(t,...r){return function(i){var s;let n=e(t,this);return i&&(n=nu(n,i,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&n.length>1?r.reduce((o,u)=>u(o),n):n)}}}var cs=ru((e,t)=>{let r=[];for(let i=0;i<t.length;i++){let s=e(t[i]);r.push(s)}return new Array().concat(...r)}),iu=ru((e,t)=>{let r=[];for(let i=0;i<t.length;i++){let s=e(t[i]);s!==null&&r.push(s)}return r});function su(e,...t){let r=null,i=ru((s,n)=>{let o=[];return G(n,u=>{for(let c;(c=s(u))&&!(r!=null&&r(c,o.length));u=c)o.push(c)}),o})(e,...t);return function(s,n){r=typeof s=="string"?u=>Zo(u,s,this.options):s?ls(s):null;let o=i.call(this,n);return r=null,o}}function Br(e){return Array.from(new Set(e))}var up=iu(({parent:e})=>e&&!qt(e)?e:null,Br),cp=cs(e=>{let t=[];for(;e.parent&&!qt(e.parent);)t.push(e.parent),e=e.parent;return t},pe,e=>e.reverse()),lp=su(({parent:e})=>e&&!qt(e)?e:null,pe,e=>e.reverse());function dp(e){var t;let r=[];if(!e)return this._make(r);let i={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},s=typeof e=="string"?n=>Zo(n,e,i):ls(e);return G(this,n=>{for(;n&&L(n);){if(s(n,0)){r.includes(n)||r.push(n);break}n=n.parent}}),this._make(r)}var hp=iu(e=>$n(e)),fp=cs(e=>{let t=[];for(;e.next;)e=e.next,L(e)&&t.push(e);return t},Br),pp=su(e=>$n(e),Br),mp=iu(e=>Vn(e)),gp=cs(e=>{let t=[];for(;e.prev;)e=e.prev,L(e)&&t.push(e);return t},Br),bp=su(e=>Vn(e),Br),Ep=cs(e=>Lo(e).filter(t=>L(t)&&t!==e),pe),wp=cs(e=>kr(e).filter(L),Br);function Tp(){let e=this.toArray().reduce((t,r)=>j(r)?t.concat(r.children):t,[]);return this._make(e)}function xp(e){let t=0,r=this.length;for(;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}function vp(e){let t=[];for(let r=0;r<this.length;r++){let i=this[r],s=e.call(i,r,i);s!=null&&(t=t.concat(s))}return this._make(t)}function ls(e){return typeof e=="function"?(t,r)=>e.call(t,r,t):xt(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function _p(e){var t;return this._make(nu(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function nu(e,t,r,i){return typeof t=="string"?eu(t,e,{xmlMode:r,root:i}):e.filter(ls(t))}function Ap(e){let t=this.toArray();return typeof e=="string"?tu(t.filter(L),e,this.options):e?t.some(ls(e)):!1}function yp(e){let t=this.toArray();if(typeof e=="string"){let r=new Set(eu(e,t,this.options));t=t.filter(i=>!r.has(i))}else{let r=ls(e);t=t.filter((i,s)=>!r(i,s))}return this._make(t)}function Cp(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,r)=>this._make(r).find(e).length>0)}function Sp(){return this.length>1?this._make(this[0]):this}function Np(){return this.length>0?this._make(this[this.length-1]):this}function Ip(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function Rp(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function Lp(){return Array.prototype.slice.call(this)}function Dp(e){let t,r;return e==null?(t=this.parent().children(),r=this[0]):typeof e=="string"?(t=this._make(e),r=this[0]):(t=this,r=xt(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}function Op(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function kp(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function Mp(e,t){let r=this._make(e,t),i=pe([...this.get(),...r.get()]);return this._make(i)}function Pp(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}var ou={};_t(ou,{_makeDomArray:()=>qp,after:()=>Xp,append:()=>Bp,appendTo:()=>Hp,before:()=>jp,clone:()=>rm,empty:()=>Jp,html:()=>Zp,insertAfter:()=>Wp,insertBefore:()=>Kp,prepend:()=>Fp,prependTo:()=>Up,remove:()=>zp,replaceWith:()=>Qp,text:()=>em,toString:()=>tm,unwrap:()=>Yp,wrap:()=>$p,wrapAll:()=>Gp,wrapInner:()=>Vp});function ud(e){return function(r,i,s,n){if(typeof Buffer!="undefined"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,i,s,n);let o=r;if(!Array.isArray(o)&&qt(o))return o;let u=new Tt([]);return we(o,u),u}}function we(e,t){let r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(let i=0;i<r.length;i++){let s=r[i];s.parent&&s.parent.children!==r&&re(s),t?(s.prev=r[i-1]||null,s.next=r[i+1]||null):s.prev=s.next=null,s.parent=t}return t}function qp(e,t){return e==null?[]:xt(e)?t?jn(e.get()):e.get():Array.isArray(e)?e.reduce((r,i)=>r.concat(this._makeDomArray(i,t)),[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?jn([e]):[e]}function cd(e){return function(...t){let r=this.length-1;return G(this,(i,s)=>{if(!j(i))return;let n=typeof t[0]=="function"?t[0].call(i,s,this._render(i.children)):t,o=this._makeDomArray(n,s<r);e(o,i.children,i)})}}function Te(e,t,r,i,s){var n,o;let u=[t,r,...i],c=t===0?null:e[t-1],d=t+r>=e.length?null:e[t+r];for(let p=0;p<i.length;++p){let g=i[p],_=g.parent;if(_){let S=_.children.indexOf(g);S>-1&&(_.children.splice(S,1),s===_&&t>S&&u[0]--)}g.parent=s,g.prev&&(g.prev.next=(n=g.next)!==null&&n!==void 0?n:null),g.next&&(g.next.prev=(o=g.prev)!==null&&o!==void 0?o:null),g.prev=p===0?c:i[p-1],g.next=p===i.length-1?d:i[p+1]}return c&&(c.next=i[0]),d&&(d.prev=i[i.length-1]),e.splice(...u)}function Hp(e){return(xt(e)?e:this._make(e)).append(this),this}function Up(e){return(xt(e)?e:this._make(e)).prepend(this),this}var Bp=cd((e,t,r)=>{Te(t,t.length,0,e,r)}),Fp=cd((e,t,r)=>{Te(t,0,0,e,r)});function ld(e){return function(t){let r=this.length-1,i=this.parents().last();for(let s=0;s<this.length;s++){let n=this[s],o=typeof t=="function"?t.call(n,s,n):typeof t=="string"&&!is(t)?i.find(t).clone():t,[u]=this._makeDomArray(o,s<r);if(!u||!j(u))continue;let c=u,d=0;for(;d<c.children.length;){let p=c.children[d];L(p)?(c=p,d=0):d++}e(n,c,[u])}return this}}var $p=ld((e,t,r)=>{let{parent:i}=e;if(!i)return;let s=i.children,n=s.indexOf(e);we([e],t),Te(s,n,0,r,i)}),Vp=ld((e,t,r)=>{j(e)&&(we(e.children,t),we(r,e))});function Yp(e){return this.parent(e).not("body").each((t,r)=>{this._make(r).replaceWith(r.children)}),this}function Gp(e){let t=this[0];if(t){let r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),i;for(let n=0;n<r.length;n++)r[n].type==="tag"&&(i=r[n]);let s=0;for(;i&&s<i.children.length;){let n=i.children[s];n.type==="tag"?(i=n,s=0):s++}i&&this._make(i).append(this)}return this}function Xp(...e){let t=this.length-1;return G(this,(r,i)=>{let{parent:s}=r;if(!j(r)||!s)return;let n=s.children,o=n.indexOf(r);if(o<0)return;let u=typeof e[0]=="function"?e[0].call(r,i,this._render(r.children)):e,c=this._makeDomArray(u,i<t);Te(n,o+1,0,c,s)})}function Wp(e){typeof e=="string"&&(e=this._make(e)),this.remove();let t=[];return this._makeDomArray(e).forEach(r=>{let i=this.clone().toArray(),{parent:s}=r;if(!s)return;let n=s.children,o=n.indexOf(r);o<0||(Te(n,o+1,0,i,s),t.push(...i))}),this._make(t)}function jp(...e){let t=this.length-1;return G(this,(r,i)=>{let{parent:s}=r;if(!j(r)||!s)return;let n=s.children,o=n.indexOf(r);if(o<0)return;let u=typeof e[0]=="function"?e[0].call(r,i,this._render(r.children)):e,c=this._makeDomArray(u,i<t);Te(n,o,0,c,s)})}function Kp(e){let t=this._make(e);this.remove();let r=[];return G(t,i=>{let s=this.clone().toArray(),{parent:n}=i;if(!n)return;let o=n.children,u=o.indexOf(i);u<0||(Te(o,u,0,s,n),r.push(...s))}),this._make(r)}function zp(e){let t=e?this.filter(e):this;return G(t,r=>{re(r),r.prev=r.next=r.parent=null}),this}function Qp(e){return G(this,(t,r)=>{let{parent:i}=t;if(!i)return;let s=i.children,n=typeof e=="function"?e.call(t,r,t):e,o=this._makeDomArray(n);we(o,null);let u=s.indexOf(t);Te(s,u,1,o,i),o.includes(t)||(t.parent=t.prev=t.next=null)})}function Jp(){return G(this,e=>{j(e)&&(e.children.forEach(t=>{t.next=t.prev=t.parent=null}),e.children.length=0)})}function Zp(e){if(e===void 0){let t=this[0];return!t||!j(t)?null:this._render(t.children)}return G(this,t=>{if(!j(t))return;t.children.forEach(i=>{i.next=i.prev=i.parent=null});let r=xt(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;we(r,t)})}function tm(){return this._render(this)}function em(e){return e===void 0?ge(this):typeof e=="function"?G(this,(t,r)=>this._make(t).text(e.call(t,r,ge([t])))):G(this,t=>{if(!j(t))return;t.children.forEach(i=>{i.next=i.prev=i.parent=null});let r=new jt(`${e}`);we(r,t)})}function rm(){return this._make(jn(this.get()))}var uu={};_t(uu,{css:()=>im});function im(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return G(this,(r,i)=>{L(r)&&dd(r,e,t,i)});if(this.length!==0)return hd(this[0],e)}function dd(e,t,r,i){if(typeof t=="string"){let s=hd(e),n=typeof r=="function"?r.call(e,i,s[t]):r;n===""?delete s[t]:n!=null&&(s[t]=n),e.attribs.style=sm(s)}else typeof t=="object"&&Object.keys(t).forEach((s,n)=>{dd(e,s,t[s],n)})}function hd(e,t){if(!e||!L(e))return;let r=nm(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){let i={};return t.forEach(s=>{r[s]!=null&&(i[s]=r[s])}),i}return r}function sm(e){return Object.keys(e).reduce((t,r)=>`${t}${t?" ":""}${r}: ${e[r]};`,"")}function nm(e){if(e=(e||"").trim(),!e)return{};let t={},r;for(let i of e.split(";")){let s=i.indexOf(":");if(s<1||s===i.length-1){let n=i.trimEnd();n.length>0&&r!==void 0&&(t[r]+=`;${n}`)}else r=i.slice(0,s).trim(),t[r]=i.slice(s+1).trim()}return t}var cu={};_t(cu,{serialize:()=>om,serializeArray:()=>um});var fd="input,select,textarea,keygen",am=/%20/g,pd=/\r?\n/g;function om(){return this.serializeArray().map(r=>`${encodeURIComponent(r.name)}=${encodeURIComponent(r.value)}`).join("&").replace(am,"+")}function um(){return this.map((e,t)=>{let r=this._make(t);return L(t)&&t.name==="form"?r.find(fd).toArray():r.filter(fd).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var r;let i=this._make(t),s=i.attr("name"),n=(r=i.val())!==null&&r!==void 0?r:"";return Array.isArray(n)?n.map(o=>({name:s,value:o.replace(pd,`\r
2639
- `)})):{name:s,value:n.replace(pd,`\r
2640
- `)}}).toArray()}var xe=class{constructor(t,r,i){if(this.length=0,this.options=i,this._root=r,t){for(let s=0;s<t.length;s++)this[s]=t[s];this.length=t.length}}};xe.prototype.cheerio="[cheerio object]";xe.prototype.splice=Array.prototype.splice;xe.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(xe.prototype,qo,au,ou,uu,cu);function md(e,t){return function r(i,s,n=!0){if(i==null)throw new Error("cheerio.load() expects a string");let o=N(N({},Xi),Wi(s)),u=e(i,o,n,null);class c extends xe{_make(g,_){let x=d(g,_);return x.prevObject=this,x}_parse(g,_,x,S){return e(g,_,x,S)}_render(g){return t(g,this.options)}}function d(p,g,_=u,x){if(p&&xt(p))return p;let S=N(N({},o),Wi(x)),R=typeof _=="string"?[e(_,S,!1,null)]:"length"in _?_:[_],H=xt(R)?R:new c(R,null,S);if(H._root=H,!p)return new c(void 0,H,S);let Y=typeof p=="string"&&is(p)?e(p,S,!1,null).children:cm(p)?[p]:Array.isArray(p)?p:void 0,bt=new c(Y,H,S);if(Y)return bt;if(typeof p!="string")throw new Error("Unexpected type of selector");let ye=p,ci=g?typeof g=="string"?is(g)?new c([e(g,S,!1,null)],H,S):(ye=`${g} ${ye}`,H):xt(g)?g:new c(Array.isArray(g)?g:[g],H,S):H;return ci?ci.find(ye):bt}return Object.assign(d,be,{load:r,_root:u,_options:o,fn:c.prototype,prototype:c.prototype}),d}}function cm(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var lm=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]),X="\uFFFD",l;(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.NUMBER_SIGN=35]="NUMBER_SIGN",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_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",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_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(l=l||(l={}));var dt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function oa(e){return e>=55296&&e<=57343}function gd(e){return e>=56320&&e<=57343}function bd(e,t){return(e-55296)*1024+9216+t}function ua(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ca(e){return e>=64976&&e<=65007||lm.has(e)}var w;(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"})(w=w||(w={}));var hm=65536,la=class{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=hm,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){let{line:r,col:i,offset:s}=this;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let r=this.html.charCodeAt(this.pos+1);if(gd(r))return this.pos++,this._addGap(),bd(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,l.EOF;return this._err(w.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,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){let r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,l.EOF;let i=this.html.charCodeAt(r);return i===l.CARRIAGE_RETURN?l.LINE_FEED:i}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,l.EOF;let t=this.html.charCodeAt(this.pos);return t===l.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,l.LINE_FEED):t===l.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,oa(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===l.LINE_FEED||t===l.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ua(t)?this._err(w.controlCharacterInInputStream):ca(t)&&this._err(w.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var lu={};_t(lu,{TokenType:()=>B,getTokenAttr:()=>ds});var B;(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"})(B=B||(B={}));function ds(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}var fs={};_t(fs,{ATTRS:()=>Ht,DOCUMENT_MODE:()=>it,NS:()=>T,SPECIAL_ELEMENTS:()=>du,TAG_ID:()=>a,TAG_NAMES:()=>b,getTagID:()=>ve,hasUnescapedText:()=>hu,isNumberedHeader:()=>hs});var T;(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/"})(T=T||(T={}));var Ht;(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"})(Ht=Ht||(Ht={}));var it;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(it=it||(it={}));var b;(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.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"})(b=b||(b={}));var a;(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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(a=a||(a={}));var fm=new Map([[b.A,a.A],[b.ADDRESS,a.ADDRESS],[b.ANNOTATION_XML,a.ANNOTATION_XML],[b.APPLET,a.APPLET],[b.AREA,a.AREA],[b.ARTICLE,a.ARTICLE],[b.ASIDE,a.ASIDE],[b.B,a.B],[b.BASE,a.BASE],[b.BASEFONT,a.BASEFONT],[b.BGSOUND,a.BGSOUND],[b.BIG,a.BIG],[b.BLOCKQUOTE,a.BLOCKQUOTE],[b.BODY,a.BODY],[b.BR,a.BR],[b.BUTTON,a.BUTTON],[b.CAPTION,a.CAPTION],[b.CENTER,a.CENTER],[b.CODE,a.CODE],[b.COL,a.COL],[b.COLGROUP,a.COLGROUP],[b.DD,a.DD],[b.DESC,a.DESC],[b.DETAILS,a.DETAILS],[b.DIALOG,a.DIALOG],[b.DIR,a.DIR],[b.DIV,a.DIV],[b.DL,a.DL],[b.DT,a.DT],[b.EM,a.EM],[b.EMBED,a.EMBED],[b.FIELDSET,a.FIELDSET],[b.FIGCAPTION,a.FIGCAPTION],[b.FIGURE,a.FIGURE],[b.FONT,a.FONT],[b.FOOTER,a.FOOTER],[b.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[b.FORM,a.FORM],[b.FRAME,a.FRAME],[b.FRAMESET,a.FRAMESET],[b.H1,a.H1],[b.H2,a.H2],[b.H3,a.H3],[b.H4,a.H4],[b.H5,a.H5],[b.H6,a.H6],[b.HEAD,a.HEAD],[b.HEADER,a.HEADER],[b.HGROUP,a.HGROUP],[b.HR,a.HR],[b.HTML,a.HTML],[b.I,a.I],[b.IMG,a.IMG],[b.IMAGE,a.IMAGE],[b.INPUT,a.INPUT],[b.IFRAME,a.IFRAME],[b.KEYGEN,a.KEYGEN],[b.LABEL,a.LABEL],[b.LI,a.LI],[b.LINK,a.LINK],[b.LISTING,a.LISTING],[b.MAIN,a.MAIN],[b.MALIGNMARK,a.MALIGNMARK],[b.MARQUEE,a.MARQUEE],[b.MATH,a.MATH],[b.MENU,a.MENU],[b.META,a.META],[b.MGLYPH,a.MGLYPH],[b.MI,a.MI],[b.MO,a.MO],[b.MN,a.MN],[b.MS,a.MS],[b.MTEXT,a.MTEXT],[b.NAV,a.NAV],[b.NOBR,a.NOBR],[b.NOFRAMES,a.NOFRAMES],[b.NOEMBED,a.NOEMBED],[b.NOSCRIPT,a.NOSCRIPT],[b.OBJECT,a.OBJECT],[b.OL,a.OL],[b.OPTGROUP,a.OPTGROUP],[b.OPTION,a.OPTION],[b.P,a.P],[b.PARAM,a.PARAM],[b.PLAINTEXT,a.PLAINTEXT],[b.PRE,a.PRE],[b.RB,a.RB],[b.RP,a.RP],[b.RT,a.RT],[b.RTC,a.RTC],[b.RUBY,a.RUBY],[b.S,a.S],[b.SCRIPT,a.SCRIPT],[b.SECTION,a.SECTION],[b.SELECT,a.SELECT],[b.SOURCE,a.SOURCE],[b.SMALL,a.SMALL],[b.SPAN,a.SPAN],[b.STRIKE,a.STRIKE],[b.STRONG,a.STRONG],[b.STYLE,a.STYLE],[b.SUB,a.SUB],[b.SUMMARY,a.SUMMARY],[b.SUP,a.SUP],[b.TABLE,a.TABLE],[b.TBODY,a.TBODY],[b.TEMPLATE,a.TEMPLATE],[b.TEXTAREA,a.TEXTAREA],[b.TFOOT,a.TFOOT],[b.TD,a.TD],[b.TH,a.TH],[b.THEAD,a.THEAD],[b.TITLE,a.TITLE],[b.TR,a.TR],[b.TRACK,a.TRACK],[b.TT,a.TT],[b.U,a.U],[b.UL,a.UL],[b.SVG,a.SVG],[b.VAR,a.VAR],[b.WBR,a.WBR],[b.XMP,a.XMP]]);function ve(e){var t;return(t=fm.get(e))!==null&&t!==void 0?t:a.UNKNOWN}var C=a,du={[T.HTML]:new Set([C.ADDRESS,C.APPLET,C.AREA,C.ARTICLE,C.ASIDE,C.BASE,C.BASEFONT,C.BGSOUND,C.BLOCKQUOTE,C.BODY,C.BR,C.BUTTON,C.CAPTION,C.CENTER,C.COL,C.COLGROUP,C.DD,C.DETAILS,C.DIR,C.DIV,C.DL,C.DT,C.EMBED,C.FIELDSET,C.FIGCAPTION,C.FIGURE,C.FOOTER,C.FORM,C.FRAME,C.FRAMESET,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HEADER,C.HGROUP,C.HR,C.HTML,C.IFRAME,C.IMG,C.INPUT,C.LI,C.LINK,C.LISTING,C.MAIN,C.MARQUEE,C.MENU,C.META,C.NAV,C.NOEMBED,C.NOFRAMES,C.NOSCRIPT,C.OBJECT,C.OL,C.P,C.PARAM,C.PLAINTEXT,C.PRE,C.SCRIPT,C.SECTION,C.SELECT,C.SOURCE,C.STYLE,C.SUMMARY,C.TABLE,C.TBODY,C.TD,C.TEMPLATE,C.TEXTAREA,C.TFOOT,C.TH,C.THEAD,C.TITLE,C.TR,C.TRACK,C.UL,C.WBR,C.XMP]),[T.MATHML]:new Set([C.MI,C.MO,C.MN,C.MS,C.MTEXT,C.ANNOTATION_XML]),[T.SVG]:new Set([C.TITLE,C.FOREIGN_OBJECT,C.DESC]),[T.XLINK]:new Set,[T.XML]:new Set,[T.XMLNS]:new Set};function hs(e){return e===C.H1||e===C.H2||e===C.H3||e===C.H4||e===C.H5||e===C.H6}var pm=new Set([b.STYLE,b.SCRIPT,b.XMP,b.IFRAME,b.NOEMBED,b.NOFRAMES,b.PLAINTEXT]);function hu(e,t){return pm.has(e)||t&&e===b.NOSCRIPT}var mm=new Map([[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]]),h;(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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(h||(h={}));var nt={DATA:h.DATA,RCDATA:h.RCDATA,RAWTEXT:h.RAWTEXT,SCRIPT_DATA:h.SCRIPT_DATA,PLAINTEXT:h.PLAINTEXT,CDATA_SECTION:h.CDATA_SECTION};function ms(e){return e>=l.DIGIT_0&&e<=l.DIGIT_9}function ps(e){return e>=l.LATIN_CAPITAL_A&&e<=l.LATIN_CAPITAL_Z}function gm(e){return e>=l.LATIN_SMALL_A&&e<=l.LATIN_SMALL_Z}function _e(e){return gm(e)||ps(e)}function fu(e){return _e(e)||ms(e)}function wd(e){return e>=l.LATIN_CAPITAL_A&&e<=l.LATIN_CAPITAL_F}function Td(e){return e>=l.LATIN_SMALL_A&&e<=l.LATIN_SMALL_F}function bm(e){return ms(e)||wd(e)||Td(e)}function da(e){return e+32}function xd(e){return e===l.SPACE||e===l.LINE_FEED||e===l.TABULATION||e===l.FORM_FEED}function Em(e){return e===l.EQUALS_SIGN||fu(e)}function Ed(e){return xd(e)||e===l.SOLIDUS||e===l.GREATER_THAN_SIGN}var gs=class{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=h.DATA,this.returnState=h.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new la(r),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t))}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;let 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,r,i){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,r){this.state=t,this._callState(r)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:B.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:B.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:B.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:B.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;let i=this.currentToken;if(ds(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){let s=(t=(r=i.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(w.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(){let t=this.currentToken;this.prepareToken(t),t.tagID=ve(t.tagName),t.type===B.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(w.endTagWithAttributes),t.selfClosing&&this._err(w.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 B.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case B.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case B.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:B.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=r;return}this._createCharacterToken(t,r)}_emitCodePoint(t){let r=xd(t)?B.WHITESPACE_CHARACTER:t===l.NULL?B.NULL_CHARACTER:B.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(B.CHARACTER,t)}_matchNamedCharacterReference(t){let r=null,i=0,s=!1;for(let n=0,o=Nt[0];n>=0&&(n=Zi(Nt,o,n+1,t),!(n<0));t=this._consume()){i+=1,o=Nt[n];let u=o&lt.VALUE_LENGTH;if(u){let c=(u>>14)-1;if(t!==l.SEMICOLON&&this._isCharacterReferenceInAttribute()&&Em(this.preprocessor.peek(1))?(r=[l.AMPERSAND],n+=c):(r=c===0?[Nt[n]&~lt.VALUE_LENGTH]:c===1?[Nt[++n]]:[Nt[++n],Nt[++n]],i=0,s=t!==l.SEMICOLON),c===0){this._consume();break}}}return this._unconsume(i),s&&!this.preprocessor.endOfChunkHit&&this._err(w.missingSemicolonAfterCharacterReference),this._unconsume(1),r}_isCharacterReferenceInAttribute(){return this.returnState===h.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===h.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===h.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case h.DATA:{this._stateData(t);break}case h.RCDATA:{this._stateRcdata(t);break}case h.RAWTEXT:{this._stateRawtext(t);break}case h.SCRIPT_DATA:{this._stateScriptData(t);break}case h.PLAINTEXT:{this._statePlaintext(t);break}case h.TAG_OPEN:{this._stateTagOpen(t);break}case h.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case h.TAG_NAME:{this._stateTagName(t);break}case h.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case h.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case h.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case h.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case h.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case h.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case h.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case h.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case h.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case h.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case h.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case h.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case h.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case h.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case h.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case h.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case h.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case h.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case h.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case h.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case h.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case h.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case h.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case h.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case h.BOGUS_COMMENT:{this._stateBogusComment(t);break}case h.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case h.COMMENT_START:{this._stateCommentStart(t);break}case h.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case h.COMMENT:{this._stateComment(t);break}case h.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case h.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case h.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case h.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case h.COMMENT_END:{this._stateCommentEnd(t);break}case h.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case h.DOCTYPE:{this._stateDoctype(t);break}case h.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case h.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case h.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case h.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case h.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case h.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case h.CDATA_SECTION:{this._stateCdataSection(t);break}case h.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case h.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case h.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case h.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case h.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case h.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case h.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case h.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case h.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case h.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=h.TAG_OPEN;break}case l.AMPERSAND:{this.returnState=h.DATA,this.state=h.CHARACTER_REFERENCE;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitCodePoint(t);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case l.AMPERSAND:{this.returnState=h.RCDATA,this.state=h.CHARACTER_REFERENCE;break}case l.LESS_THAN_SIGN:{this.state=h.RCDATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(X);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case l.LESS_THAN_SIGN:{this.state=h.RAWTEXT_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(X);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(X);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(X);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_e(t))this._createStartTagToken(),this.state=h.TAG_NAME,this._stateTagName(t);else switch(t){case l.EXCLAMATION_MARK:{this.state=h.MARKUP_DECLARATION_OPEN;break}case l.SOLIDUS:{this.state=h.END_TAG_OPEN;break}case l.QUESTION_MARK:{this._err(w.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=h.BOGUS_COMMENT,this._stateBogusComment(t);break}case l.EOF:{this._err(w.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(w.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=h.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_e(t))this._createEndTagToken(),this.state=h.TAG_NAME,this._stateTagName(t);else switch(t){case l.GREATER_THAN_SIGN:{this._err(w.missingEndTagName),this.state=h.DATA;break}case l.EOF:{this._err(w.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(w.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=h.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this.state=h.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.tagName+=X;break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(ps(t)?da(t):t)}}_stateRcdataLessThanSign(t){t===l.SOLIDUS?this.state=h.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=h.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_e(t)?(this.state=h.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=h.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=h.BEFORE_ATTRIBUTE_NAME,!1;case l.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=h.SELF_CLOSING_START_TAG,!1;case l.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=h.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===l.SOLIDUS?this.state=h.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=h.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_e(t)?(this.state=h.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=h.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case l.SOLIDUS:{this.state=h.SCRIPT_DATA_END_TAG_OPEN;break}case l.EXCLAMATION_MARK:{this.state=h.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=h.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){_e(t)?(this.state=h.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===l.HYPHEN_MINUS?(this.state=h.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===l.HYPHEN_MINUS?(this.state=h.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(X);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_ESCAPED,this._emitChars(X);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.GREATER_THAN_SIGN:{this.state=h.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_ESCAPED,this._emitChars(X);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===l.SOLIDUS?this.state=h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_e(t)?(this._emitChars("<"),this.state=h.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){_e(t)?(this.state=h.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(dt.SCRIPT,!1)&&Ed(this.preprocessor.peek(dt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<dt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(X);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(X);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.GREATER_THAN_SIGN:{this.state=h.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(X);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===l.SOLIDUS?(this.state=h.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(dt.SCRIPT,!1)&&Ed(this.preprocessor.peek(dt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<dt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=h.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this.state=h.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._err(w.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=h.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=h.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this._leaveAttrName(),this.state=h.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._leaveAttrName(),this.state=h.BEFORE_ATTRIBUTE_VALUE;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:{this._err(w.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.name+=X;break}default:this.currentAttr.name+=String.fromCodePoint(ps(t)?da(t):t)}}_stateAfterAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:{this.state=h.SELF_CLOSING_START_TAG;break}case l.EQUALS_SIGN:{this.state=h.BEFORE_ATTRIBUTE_VALUE;break}case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=h.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{this.state=h.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this.state=h.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingAttributeValue),this.state=h.DATA,this.emitCurrentTagToken();break}default:this.state=h.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case l.QUOTATION_MARK:{this.state=h.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this.returnState=h.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=h.CHARACTER_REFERENCE;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.value+=X;break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case l.APOSTROPHE:{this.state=h.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this.returnState=h.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=h.CHARACTER_REFERENCE;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.value+=X;break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=h.BEFORE_ATTRIBUTE_NAME;break}case l.AMPERSAND:{this.returnState=h.ATTRIBUTE_VALUE_UNQUOTED,this.state=h.CHARACTER_REFERENCE;break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=h.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.value+=X;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:case l.EQUALS_SIGN:case l.GRAVE_ACCENT:{this._err(w.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=h.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this._leaveAttrValue(),this.state=h.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=h.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this._err(w.missingWhitespaceBetweenAttributes),this.state=h.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case l.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=h.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this._err(w.unexpectedSolidusInTag),this.state=h.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentComment(r);break}case l.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.data+=X;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(dt.DASH_DASH,!0)?(this._createCommentToken(dt.DASH_DASH.length+1),this.state=h.COMMENT_START):this._consumeSequenceIfMatch(dt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(dt.DOCTYPE.length+1),this.state=h.DOCTYPE):this._consumeSequenceIfMatch(dt.CDATA_START,!0)?this.inForeignNode?this.state=h.CDATA_SECTION:(this._err(w.cdataInHtmlContent),this._createCommentToken(dt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=h.BOGUS_COMMENT):this._ensureHibernation()||(this._err(w.incorrectlyOpenedComment),this._createCommentToken(2),this.state=h.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.COMMENT_START_DASH;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptClosingOfEmptyComment),this.state=h.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=h.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=h.COMMENT_END;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptClosingOfEmptyComment),this.state=h.DATA,this.emitCurrentComment(r);break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=h.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=h.COMMENT_END_DASH;break}case l.LESS_THAN_SIGN:{r.data+="<",this.state=h.COMMENT_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.data+=X;break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case l.EXCLAMATION_MARK:{r.data+="!",this.state=h.COMMENT_LESS_THAN_SIGN_BANG;break}case l.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=h.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===l.HYPHEN_MINUS?this.state=h.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=h.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===l.HYPHEN_MINUS?this.state=h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=h.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==l.GREATER_THAN_SIGN&&t!==l.EOF&&this._err(w.nestedComment),this.state=h.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=h.COMMENT_END;break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=h.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentComment(r);break}case l.EXCLAMATION_MARK:{this.state=h.COMMENT_END_BANG;break}case l.HYPHEN_MINUS:{r.data+="-";break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=h.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{r.data+="--!",this.state=h.COMMENT_END_DASH;break}case l.GREATER_THAN_SIGN:{this._err(w.incorrectlyClosedComment),this.state=h.DATA,this.emitCurrentComment(r);break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=h.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BEFORE_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=h.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case l.EOF:{this._err(w.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingWhitespaceBeforeDoctypeName),this.state=h.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ps(t))this._createDoctypeToken(String.fromCharCode(da(t))),this.state=h.DOCTYPE_NAME;else switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.NULL:{this._err(w.unexpectedNullCharacter),this._createDoctypeToken(X),this.state=h.DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=h.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.AFTER_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.name+=X;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(ps(t)?da(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(dt.PUBLIC,!1)?this.state=h.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(dt.SYSTEM,!1)?this.state=h.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(w.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(w.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(w.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{r.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.publicId+=X;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.publicId+=X;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.QUOTATION_MARK:{this._err(w.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(w.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.QUOTATION_MARK:{r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(w.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(w.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.systemId+=X;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.systemId+=X;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.NULL:{this._err(w.unexpectedNullCharacter);break}case l.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case l.RIGHT_SQUARE_BRACKET:{this.state=h.CDATA_SECTION_BRACKET;break}case l.EOF:{this._err(w.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===l.RIGHT_SQUARE_BRACKET?this.state=h.CDATA_SECTION_END:(this._emitChars("]"),this.state=h.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case l.GREATER_THAN_SIGN:{this.state=h.DATA;break}case l.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=h.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===l.NUMBER_SIGN?this.state=h.NUMERIC_CHARACTER_REFERENCE:fu(t)?(this.state=h.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){let r=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(r){for(let i=0;i<r.length;i++)this._flushCodePointConsumedAsCharacterReference(r[i]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this.state=h.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){fu(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===l.SEMICOLON&&this._err(w.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===l.LATIN_SMALL_X||t===l.LATIN_CAPITAL_X?this.state=h.HEXADEMICAL_CHARACTER_REFERENCE_START:ms(t)?(this.state=h.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(w.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(l.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){bm(t)?(this.state=h.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(w.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(l.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){wd(t)?this.charRefCode=this.charRefCode*16+t-55:Td(t)?this.charRefCode=this.charRefCode*16+t-87:ms(t)?this.charRefCode=this.charRefCode*16+t-48:t===l.SEMICOLON?this.state=h.NUMERIC_CHARACTER_REFERENCE_END:(this._err(w.missingSemicolonAfterCharacterReference),this.state=h.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){ms(t)?this.charRefCode=this.charRefCode*10+t-48:t===l.SEMICOLON?this.state=h.NUMERIC_CHARACTER_REFERENCE_END:(this._err(w.missingSemicolonAfterCharacterReference),this.state=h.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===l.NULL)this._err(w.nullCharacterReference),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(w.characterReferenceOutsideUnicodeRange),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(oa(this.charRefCode))this._err(w.surrogateCharacterReference),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(ca(this.charRefCode))this._err(w.noncharacterCharacterReference);else if(ua(this.charRefCode)||this.charRefCode===l.CARRIAGE_RETURN){this._err(w.controlCharacterReference);let r=mm.get(this.charRefCode);r!==void 0&&(this.charRefCode=r)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};var _d=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),vd=new Set([..._d,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),ha=new Map([[a.APPLET,T.HTML],[a.CAPTION,T.HTML],[a.HTML,T.HTML],[a.MARQUEE,T.HTML],[a.OBJECT,T.HTML],[a.TABLE,T.HTML],[a.TD,T.HTML],[a.TEMPLATE,T.HTML],[a.TH,T.HTML],[a.ANNOTATION_XML,T.MATHML],[a.MI,T.MATHML],[a.MN,T.MATHML],[a.MO,T.MATHML],[a.MS,T.MATHML],[a.MTEXT,T.MATHML],[a.DESC,T.SVG],[a.FOREIGN_OBJECT,T.SVG],[a.TITLE,T.SVG]]),wm=[a.H1,a.H2,a.H3,a.H4,a.H5,a.H6],Tm=[a.TR,a.TEMPLATE,a.HTML],xm=[a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML],vm=[a.TABLE,a.TEMPLATE,a.HTML],_m=[a.TD,a.TH],fa=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,i){this.treeAdapter=r,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=a.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===T.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){let i=this._indexOf(t);this.items[i]=r,i===this.stackTop&&(this.current=r)}insertAfter(t,r,i){let s=this._indexOf(t)+1;this.items.splice(s,0,r),this.tagIDs.splice(s,0,i),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==T.HTML);this.shortenToLength(r<0?0:r)}shortenToLength(t){for(;this.stackTop>=t;){let r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){let r=this._indexOf(t);this.shortenToLength(r<0?0:r)}popUntilPopped(t,r){let i=this._indexOfTagNames(t,r);this.shortenToLength(i<0?0:i)}popUntilNumberedHeaderPopped(){this.popUntilPopped(wm,T.HTML)}popUntilTableCellPopped(){this.popUntilPopped(_m,T.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let i=this.stackTop;i>=0;i--)if(t.includes(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===r)return i;return-1}clearBackTo(t,r){let i=this._indexOfTagNames(t,r);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(vm,T.HTML)}clearBackToTableBodyContext(){this.clearBackTo(xm,T.HTML)}clearBackToTableRowContext(){this.clearBackTo(Tm,T.HTML)}remove(t){let r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===a.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===a.HTML}hasInScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r],s=this.treeAdapter.getNamespaceURI(this.items[r]);if(i===t&&s===T.HTML)return!0;if(ha.get(i)===s)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],i=this.treeAdapter.getNamespaceURI(this.items[t]);if(hs(r)&&i===T.HTML)return!0;if(ha.get(r)===i)return!1}return!0}hasInListItemScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r],s=this.treeAdapter.getNamespaceURI(this.items[r]);if(i===t&&s===T.HTML)return!0;if((i===a.UL||i===a.OL)&&s===T.HTML||ha.get(i)===s)return!1}return!0}hasInButtonScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r],s=this.treeAdapter.getNamespaceURI(this.items[r]);if(i===t&&s===T.HTML)return!0;if(i===a.BUTTON&&s===T.HTML||ha.get(i)===s)return!1}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===T.HTML){if(i===t)return!0;if(i===a.TABLE||i===a.TEMPLATE||i===a.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===T.HTML){if(r===a.TBODY||r===a.THEAD||r===a.TFOOT)return!0;if(r===a.TABLE||r===a.HTML)return!1}}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===T.HTML){if(i===t)return!0;if(i!==a.OPTION&&i!==a.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;_d.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;vd.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&vd.has(this.currentTagId);)this.pop()}};var Lt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Lt=Lt||(Lt={}));var Ad={type:Lt.Marker},pa=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let i=[],s=r.length,n=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){let c=this.entries[u];if(c.type===Lt.Marker)break;let{element:d}=c;if(this.treeAdapter.getTagName(d)===n&&this.treeAdapter.getNamespaceURI(d)===o){let p=this.treeAdapter.getAttrList(d);p.length===s&&i.push({idx:u,attrs:p})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<3)return;let s=new Map(r.map(o=>[o.name,o.value])),n=0;for(let o=0;o<i.length;o++){let u=i[o];u.attrs.every(c=>s.get(c.name)===c.value)&&(n+=1,n>=3&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(Ad)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Lt.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Lt.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(Ad);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let r=this.entries.find(i=>i.type===Lt.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===Lt.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Lt.Element&&r.element===t)}};function yd(e){return{nodeName:"#text",value:e,parentNode:null}}var Kt={createDocument(){return{nodeName:"#document",mode:it.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){let s=e.childNodes.find(n=>n.nodeName==="#documentType");if(s)s.name=t,s.publicId=r,s.systemId=i;else{let n={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};Kt.appendChild(e,n)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(Kt.isTextNode(r)){r.value+=t;return}}Kt.appendChild(e,yd(t))},insertTextBefore(e,t,r){let i=e.childNodes[e.childNodes.indexOf(r)-1];i&&Kt.isTextNode(i)?i.value+=t:Kt.insertBefore(e,yd(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},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=N(N({},e.sourceCodeLocation),t)}};var Sd="html",Am="about:legacy-compat",ym="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Nd=["+//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//"],Cm=[...Nd,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Sm=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Id=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Nm=[...Id,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Cd(e,t){return t.some(r=>e.startsWith(r))}function Rd(e){return e.name===Sd&&e.publicId===null&&(e.systemId===null||e.systemId===Am)}function Ld(e){if(e.name!==Sd)return it.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===ym)return it.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),Sm.has(r))return it.QUIRKS;let i=t===null?Cm:Nd;if(Cd(r,i))return it.QUIRKS;if(i=t===null?Id:Nm,Cd(r,i))return it.LIMITED_QUIRKS}return it.NO_QUIRKS}var ba={};_t(ba,{SVG_TAG_NAMES_ADJUSTMENT_MAP:()=>Od,adjustTokenMathMLAttrs:()=>ma,adjustTokenSVGAttrs:()=>ga,adjustTokenSVGTagName:()=>mu,adjustTokenXMLAttrs:()=>bs,causesExit:()=>pu,isIntegrationPoint:()=>gu});var Dd={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Rm="definitionurl",Lm="definitionURL",Dm=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])),Om=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:T.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:T.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:T.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:T.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:T.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:T.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:T.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:T.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:T.XML}],["xml:space",{prefix:"xml",name:"space",namespace:T.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:T.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:T.XMLNS}]]),Od=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])),km=new Set([a.B,a.BIG,a.BLOCKQUOTE,a.BODY,a.BR,a.CENTER,a.CODE,a.DD,a.DIV,a.DL,a.DT,a.EM,a.EMBED,a.H1,a.H2,a.H3,a.H4,a.H5,a.H6,a.HEAD,a.HR,a.I,a.IMG,a.LI,a.LISTING,a.MENU,a.META,a.NOBR,a.OL,a.P,a.PRE,a.RUBY,a.S,a.SMALL,a.SPAN,a.STRONG,a.STRIKE,a.SUB,a.SUP,a.TABLE,a.TT,a.U,a.UL,a.VAR]);function pu(e){let t=e.tagID;return t===a.FONT&&e.attrs.some(({name:i})=>i===Ht.COLOR||i===Ht.SIZE||i===Ht.FACE)||km.has(t)}function ma(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Rm){e.attrs[t].name=Lm;break}}function ga(e){for(let t=0;t<e.attrs.length;t++){let r=Dm.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function bs(e){for(let t=0;t<e.attrs.length;t++){let r=Om.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function mu(e){let t=Od.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ve(e.tagName))}function Mm(e,t){return t===T.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function Pm(e,t,r){if(t===T.MATHML&&e===a.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===Ht.ENCODING){let s=r[i].value.toLowerCase();return s===Dd.TEXT_HTML||s===Dd.APPLICATION_XML}}return t===T.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function gu(e,t,r,i){return(!i||i===T.HTML)&&Pm(e,t,r)||(!i||i===T.MATHML)&&Mm(e,t)}var qm="hidden",Hm=8,Um=3,f;(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"})(f||(f={}));var Bm={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},qd=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),kd={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Kt,onParseError:null},Fr=class{constructor(t,r,i=null,s=null){this.fragmentContext=i,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=f.INITIAL,this.originalInsertionMode=f.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=N(N({},kd),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r!=null?r:this.treeAdapter.createDocument(),this.tokenizer=new gs(this.options,this),this.activeFormattingElements=new pa(this.treeAdapter),this.fragmentContextID=i?ve(this.treeAdapter.getTagName(i)):a.UNKNOWN,this._setContextModes(i!=null?i:this.document,this.fragmentContextID),this.openElements=new fa(this.document,this.treeAdapter,this)}static parse(t,r){let i=new this(r);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,r){let i=N(N({},kd),r);t!=null||(t=i.treeAdapter.createElement(b.TEMPLATE,T.HTML,[]));let s=i.treeAdapter.createElement("documentmock",T.HTML,[]),n=new this(i,s,t);return n.fragmentContextID===a.TEMPLATE&&n.tmplInsertionModeStack.unshift(f.IN_TEMPLATE),n._initTokenizerForFragmentParsing(),n._insertFakeRootElement(),n._resetInsertionMode(),n._findFormInFragmentContext(),n}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,i){var s;if(!this.onParseError)return;let n=(s=t.location)!==null&&s!==void 0?s:Bm,o={code:r,startLine:n.startLine,startCol:n.startCol,startOffset:n.startOffset,endLine:i?n.startLine:n.endLine,endCol:i?n.startCol:n.endCol,endOffset:i?n.startOffset:n.endOffset};this.onParseError(o)}onItemPush(t,r,i){var s,n;(n=(s=this.treeAdapter).onItemPush)===null||n===void 0||n.call(s,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var i,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(i=this.treeAdapter).onItemPop)===null||s===void 0||s.call(i,t,this.openElements.current),r){let n,o;this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,o=this.fragmentContextID):{current:n,currentTagId:o}=this.openElements,this._setContextModes(n,o)}}_setContextModes(t,r){let i=t===this.document||this.treeAdapter.getNamespaceURI(t)===T.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,T.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=f.TEXT}switchToPlaintextParsing(){this.insertionMode=f.TEXT,this.originalInsertionMode=f.IN_BODY,this.tokenizer.state=nt.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)===b.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==T.HTML))switch(this.fragmentContextID){case a.TITLE:case a.TEXTAREA:{this.tokenizer.state=nt.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=nt.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=nt.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=nt.PLAINTEXT;break}default:}}_setDocumentType(t){let r=t.name||"",i=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,i,s),t.location){let o=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let i=r&&U(N({},r),{startTag:r});this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i,t)}}_appendElement(t,r){let i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,r){let i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,r){let i=this.treeAdapter.createElement(t,T.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,T.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,i),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(b.HTML,T.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,a.HTML)}_appendCommentNode(t,r){let i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let r,i;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(r,t.chars,i):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;let s=this.treeAdapter.getChildNodes(r),n=i?s.lastIndexOf(i):s.length,o=s[n-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:c,endCol:d,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:c,endCol:d,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,r){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(r,i)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){let i=r.location,s=this.treeAdapter.getTagName(t),n=r.type===B.END_TAG&&s===r.tagName?{endTag:N({},i),endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,n)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,i;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,t.tagID===a.SVG&&this.treeAdapter.getTagName(r)===b.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===T.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===a.MGLYPH||t.tagID===a.MALIGNMARK)&&!this._isIntegrationPoint(i,r,T.HTML)}_processToken(t){switch(t.type){case B.CHARACTER:{this.onCharacter(t);break}case B.NULL_CHARACTER:{this.onNullCharacter(t);break}case B.COMMENT:{this.onComment(t);break}case B.DOCTYPE:{this.onDoctype(t);break}case B.START_TAG:{this._processStartTag(t);break}case B.END_TAG:{this.onEndTag(t);break}case B.EOF:{this.onEof(t);break}case B.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){let s=this.treeAdapter.getNamespaceURI(r),n=this.treeAdapter.getAttrList(r);return gu(t,s,n,i)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(s=>s.type===Lt.Marker||this.openElements.contains(s.element)),i=r<0?t-1:r-1;for(let s=i;s>=0;s--){let n=this.activeFormattingElements.entries[s];this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=f.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(a.P),this.openElements.popUntilTagNamePopped(a.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case a.TR:{this.insertionMode=f.IN_ROW;return}case a.TBODY:case a.THEAD:case a.TFOOT:{this.insertionMode=f.IN_TABLE_BODY;return}case a.CAPTION:{this.insertionMode=f.IN_CAPTION;return}case a.COLGROUP:{this.insertionMode=f.IN_COLUMN_GROUP;return}case a.TABLE:{this.insertionMode=f.IN_TABLE;return}case a.BODY:{this.insertionMode=f.IN_BODY;return}case a.FRAMESET:{this.insertionMode=f.IN_FRAMESET;return}case a.SELECT:{this._resetInsertionModeForSelect(t);return}case a.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case a.HTML:{this.insertionMode=this.headElement?f.AFTER_HEAD:f.BEFORE_HEAD;return}case a.TD:case a.TH:{if(t>0){this.insertionMode=f.IN_CELL;return}break}case a.HEAD:{if(t>0){this.insertionMode=f.IN_HEAD;return}break}}this.insertionMode=f.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let i=this.openElements.tagIDs[r];if(i===a.TEMPLATE)break;if(i===a.TABLE){this.insertionMode=f.IN_SELECT_IN_TABLE;return}}this.insertionMode=f.IN_SELECT}_isElementCausesFosterParenting(t){return qd.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===T.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case a.TABLE:{let i=this.treeAdapter.getParentNode(r);return i?{parent:i,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){let i=this.treeAdapter.getNamespaceURI(t);return du[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){gb(this,t);return}switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{Ts(this,t);break}case f.BEFORE_HEAD:{xs(this,t);break}case f.IN_HEAD:{vs(this,t);break}case f.IN_HEAD_NO_SCRIPT:{_s(this,t);break}case f.AFTER_HEAD:{As(this,t);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:{Ud(this,t);break}case f.TEXT:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{bu(this,t);break}case f.IN_TABLE_TEXT:{Gd(this,t);break}case f.IN_COLUMN_GROUP:{wa(this,t);break}case f.AFTER_BODY:{Ta(this,t);break}case f.AFTER_AFTER_BODY:{Ea(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){mb(this,t);return}switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{Ts(this,t);break}case f.BEFORE_HEAD:{xs(this,t);break}case f.IN_HEAD:{vs(this,t);break}case f.IN_HEAD_NO_SCRIPT:{_s(this,t);break}case f.AFTER_HEAD:{As(this,t);break}case f.TEXT:{this._insertCharacters(t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{bu(this,t);break}case f.IN_COLUMN_GROUP:{wa(this,t);break}case f.AFTER_BODY:{Ta(this,t);break}case f.AFTER_AFTER_BODY:{Ea(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Eu(this,t);return}switch(this.insertionMode){case f.INITIAL:case f.BEFORE_HTML:case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_TEMPLATE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{Eu(this,t);break}case f.IN_TABLE_TEXT:{ws(this,t);break}case f.AFTER_BODY:{Wm(this,t);break}case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{jm(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case f.INITIAL:{Km(this,t);break}case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:{this._err(t,w.misplacedDoctype);break}case f.IN_TABLE_TEXT:{ws(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,w.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?bb(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{zm(this,t);break}case f.BEFORE_HEAD:{Jm(this,t);break}case f.IN_HEAD:{Ut(this,t);break}case f.IN_HEAD_NO_SCRIPT:{eg(this,t);break}case f.AFTER_HEAD:{ig(this,t);break}case f.IN_BODY:{at(this,t);break}case f.IN_TABLE:{$r(this,t);break}case f.IN_TABLE_TEXT:{ws(this,t);break}case f.IN_CAPTION:{Zg(this,t);break}case f.IN_COLUMN_GROUP:{vu(this,t);break}case f.IN_TABLE_BODY:{_a(this,t);break}case f.IN_ROW:{Aa(this,t);break}case f.IN_CELL:{rb(this,t);break}case f.IN_SELECT:{jd(this,t);break}case f.IN_SELECT_IN_TABLE:{sb(this,t);break}case f.IN_TEMPLATE:{ab(this,t);break}case f.AFTER_BODY:{ub(this,t);break}case f.IN_FRAMESET:{cb(this,t);break}case f.AFTER_FRAMESET:{db(this,t);break}case f.AFTER_AFTER_BODY:{fb(this,t);break}case f.AFTER_AFTER_FRAMESET:{pb(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Eb(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{Qm(this,t);break}case f.BEFORE_HEAD:{Zm(this,t);break}case f.IN_HEAD:{tg(this,t);break}case f.IN_HEAD_NO_SCRIPT:{rg(this,t);break}case f.AFTER_HEAD:{sg(this,t);break}case f.IN_BODY:{va(this,t);break}case f.TEXT:{Vg(this,t);break}case f.IN_TABLE:{ys(this,t);break}case f.IN_TABLE_TEXT:{ws(this,t);break}case f.IN_CAPTION:{tb(this,t);break}case f.IN_COLUMN_GROUP:{eb(this,t);break}case f.IN_TABLE_BODY:{wu(this,t);break}case f.IN_ROW:{Wd(this,t);break}case f.IN_CELL:{ib(this,t);break}case f.IN_SELECT:{Kd(this,t);break}case f.IN_SELECT_IN_TABLE:{nb(this,t);break}case f.IN_TEMPLATE:{ob(this,t);break}case f.AFTER_BODY:{Qd(this,t);break}case f.IN_FRAMESET:{lb(this,t);break}case f.AFTER_FRAMESET:{hb(this,t);break}case f.AFTER_AFTER_BODY:{Ea(this,t);break}default:}}onEof(t){switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{Ts(this,t);break}case f.BEFORE_HEAD:{xs(this,t);break}case f.IN_HEAD:{vs(this,t);break}case f.IN_HEAD_NO_SCRIPT:{_s(this,t);break}case f.AFTER_HEAD:{As(this,t);break}case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{Vd(this,t);break}case f.TEXT:{Yg(this,t);break}case f.IN_TABLE_TEXT:{ws(this,t);break}case f.IN_TEMPLATE:{zd(this,t);break}case f.AFTER_BODY:case f.IN_FRAMESET:case f.AFTER_FRAMESET:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{xu(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===l.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 f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.TEXT:case f.IN_COLUMN_GROUP:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{this._insertCharacters(t);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:case f.AFTER_BODY:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{Hd(this,t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{bu(this,t);break}case f.IN_TABLE_TEXT:{Yd(this,t);break}default:}}};function Fm(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):$d(e,t),r}function $m(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){let s=e.openElements.items[i];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[i])&&(r=s)}return r||(e.openElements.shortenToLength(i<0?0:i),e.activeFormattingElements.removeEntry(t)),r}function Vm(e,t,r){let i=t,s=e.openElements.getCommonAncestor(t);for(let n=0,o=s;o!==r;n++,o=s){s=e.openElements.getCommonAncestor(o);let u=e.activeFormattingElements.getElementEntry(o),c=u&&n>=Um;!u||c?(c&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(o)):(o=Ym(e,u),i===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(o,i),i=o)}return i}function Ym(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function Gm(e,t,r){let i=e.treeAdapter.getTagName(t),s=ve(i);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(r);else{let n=e.treeAdapter.getNamespaceURI(t);s===a.TEMPLATE&&n===T.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function Xm(e,t,r){let i=e.treeAdapter.getNamespaceURI(r.element),{token:s}=r,n=e.treeAdapter.createElement(s.tagName,i,s.attrs);e._adoptNodes(t,n),e.treeAdapter.appendChild(t,n),e.activeFormattingElements.insertElementAfterBookmark(n,s),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,n,s.tagID)}function Tu(e,t){for(let r=0;r<Hm;r++){let i=Fm(e,t);if(!i)break;let s=$m(e,i);if(!s)break;e.activeFormattingElements.bookmark=i;let n=Vm(e,s,i.element),o=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(n),o&&Gm(e,o,n),Xm(e,s,i)}}function Eu(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Wm(e,t){e._appendCommentNode(t,e.openElements.items[0])}function jm(e,t){e._appendCommentNode(t,e.document)}function xu(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let i=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(i);if(s&&!s.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(n);o&&!o.endTag&&e._setEndLocation(n,t)}}}}function Km(e,t){e._setDocumentType(t);let r=t.forceQuirks?it.QUIRKS:Ld(t);Rd(t)||e._err(t,w.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=f.BEFORE_HTML}function Es(e,t){e._err(t,w.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,it.QUIRKS),e.insertionMode=f.BEFORE_HTML,e._processToken(t)}function zm(e,t){t.tagID===a.HTML?(e._insertElement(t,T.HTML),e.insertionMode=f.BEFORE_HEAD):Ts(e,t)}function Qm(e,t){let r=t.tagID;(r===a.HTML||r===a.HEAD||r===a.BODY||r===a.BR)&&Ts(e,t)}function Ts(e,t){e._insertFakeRootElement(),e.insertionMode=f.BEFORE_HEAD,e._processToken(t)}function Jm(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.HEAD:{e._insertElement(t,T.HTML),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD;break}default:xs(e,t)}}function Zm(e,t){let r=t.tagID;r===a.HEAD||r===a.BODY||r===a.HTML||r===a.BR?xs(e,t):e._err(t,w.endTagWithoutMatchingOpenElement)}function xs(e,t){e._insertFakeElement(b.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD,e._processToken(t)}function Ut(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,nt.RCDATA);break}case a.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,nt.RAWTEXT):(e._insertElement(t,T.HTML),e.insertionMode=f.IN_HEAD_NO_SCRIPT);break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,nt.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,nt.SCRIPT_DATA);break}case a.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=f.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(f.IN_TEMPLATE);break}case a.HEAD:{e._err(t,w.misplacedStartTagForHeadElement);break}default:vs(e,t)}}function tg(e,t){switch(t.tagID){case a.HEAD:{e.openElements.pop(),e.insertionMode=f.AFTER_HEAD;break}case a.BODY:case a.BR:case a.HTML:{vs(e,t);break}case a.TEMPLATE:{Ze(e,t);break}default:e._err(t,w.endTagWithoutMatchingOpenElement)}}function Ze(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE&&e._err(t,w.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,w.endTagWithoutMatchingOpenElement)}function vs(e,t){e.openElements.pop(),e.insertionMode=f.AFTER_HEAD,e._processToken(t)}function eg(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{Ut(e,t);break}case a.NOSCRIPT:{e._err(t,w.nestedNoscriptInHead);break}default:_s(e,t)}}function rg(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=f.IN_HEAD;break}case a.BR:{_s(e,t);break}default:e._err(t,w.endTagWithoutMatchingOpenElement)}}function _s(e,t){let r=t.type===B.EOF?w.openElementsLeftAfterEof:w.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=f.IN_HEAD,e._processToken(t)}function ig(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.BODY:{e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=f.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,T.HTML),e.insertionMode=f.IN_FRAMESET;break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{e._err(t,w.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),Ut(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,w.misplacedStartTagForHeadElement);break}default:As(e,t)}}function sg(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{As(e,t);break}case a.TEMPLATE:{Ze(e,t);break}default:e._err(t,w.endTagWithoutMatchingOpenElement)}}function As(e,t){e._insertFakeElement(b.BODY,a.BODY),e.insertionMode=f.IN_BODY,xa(e,t)}function xa(e,t){switch(t.type){case B.CHARACTER:{Ud(e,t);break}case B.WHITESPACE_CHARACTER:{Hd(e,t);break}case B.COMMENT:{Eu(e,t);break}case B.START_TAG:{at(e,t);break}case B.END_TAG:{va(e,t);break}case B.EOF:{Vd(e,t);break}default:}}function Hd(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ud(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ng(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function ag(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function og(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_FRAMESET)}function ug(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function cg(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),hs(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,T.HTML)}function lg(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function dg(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),r||(e.formElement=e.openElements.current))}function hg(e,t){e.framesetOk=!1;let r=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){let s=e.openElements.tagIDs[i];if(r===a.LI&&s===a.LI||(r===a.DD||r===a.DT)&&(s===a.DD||s===a.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==a.ADDRESS&&s!==a.DIV&&s!==a.P&&e._isSpecialElement(e.openElements.items[i],s))break}e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function fg(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.tokenizer.state=nt.PLAINTEXT}function pg(e,t){e.openElements.hasInScope(a.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1}function mg(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(b.A);r&&(Tu(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function gg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bg(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR)&&(Tu(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Eg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function wg(e,t){e.treeAdapter.getDocumentMode(e.document)!==it.QUIRKS&&e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=f.IN_TABLE}function Bd(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Fd(e){let t=ds(e,Ht.TYPE);return t!=null&&t.toLowerCase()===qm}function Tg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),Fd(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function xg(e,t){e._appendElement(t,T.HTML),t.ackSelfClosing=!0}function vg(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _g(e,t){t.tagName=b.IMG,t.tagID=a.IMG,Bd(e,t)}function Ag(e,t){e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.tokenizer.state=nt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=f.TEXT}function yg(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function Cg(e,t){e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function Md(e,t){e._switchToTextParsing(t,nt.RAWTEXT)}function Sg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===f.IN_TABLE||e.insertionMode===f.IN_CAPTION||e.insertionMode===f.IN_TABLE_BODY||e.insertionMode===f.IN_ROW||e.insertionMode===f.IN_CELL?f.IN_SELECT_IN_TABLE:f.IN_SELECT}function Ng(e,t){e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function Ig(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,T.HTML)}function Rg(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(a.RTC),e._insertElement(t,T.HTML)}function Lg(e,t){e._reconstructActiveFormattingElements(),ma(t),bs(t),t.selfClosing?e._appendElement(t,T.MATHML):e._insertElement(t,T.MATHML),t.ackSelfClosing=!0}function Dg(e,t){e._reconstructActiveFormattingElements(),ga(t),bs(t),t.selfClosing?e._appendElement(t,T.SVG):e._insertElement(t,T.SVG),t.ackSelfClosing=!0}function Pd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function at(e,t){switch(t.tagID){case a.I:case a.S:case a.B:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.SMALL:case a.STRIKE:case a.STRONG:{gg(e,t);break}case a.A:{mg(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{cg(e,t);break}case a.P:case a.DL:case a.OL:case a.UL:case a.DIV:case a.DIR:case a.NAV:case a.MAIN:case a.MENU:case a.ASIDE:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.DETAILS:case a.ADDRESS:case a.ARTICLE:case a.SECTION:case a.SUMMARY:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{ug(e,t);break}case a.LI:case a.DD:case a.DT:{hg(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{Bd(e,t);break}case a.HR:{vg(e,t);break}case a.RB:case a.RTC:{Ig(e,t);break}case a.RT:case a.RP:{Rg(e,t);break}case a.PRE:case a.LISTING:{lg(e,t);break}case a.XMP:{yg(e,t);break}case a.SVG:{Dg(e,t);break}case a.HTML:{ng(e,t);break}case a.BASE:case a.LINK:case a.META:case a.STYLE:case a.TITLE:case a.SCRIPT:case a.BGSOUND:case a.BASEFONT:case a.TEMPLATE:{Ut(e,t);break}case a.BODY:{ag(e,t);break}case a.FORM:{dg(e,t);break}case a.NOBR:{bg(e,t);break}case a.MATH:{Lg(e,t);break}case a.TABLE:{wg(e,t);break}case a.INPUT:{Tg(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{xg(e,t);break}case a.IMAGE:{_g(e,t);break}case a.BUTTON:{pg(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Eg(e,t);break}case a.IFRAME:{Cg(e,t);break}case a.SELECT:{Sg(e,t);break}case a.OPTION:case a.OPTGROUP:{Ng(e,t);break}case a.NOEMBED:{Md(e,t);break}case a.FRAMESET:{og(e,t);break}case a.TEXTAREA:{Ag(e,t);break}case a.NOSCRIPT:{e.options.scriptingEnabled?Md(e,t):Pd(e,t);break}case a.PLAINTEXT:{fg(e,t);break}case a.COL:case a.TH:case a.TD:case a.TR:case a.HEAD:case a.FRAME:case a.TBODY:case a.TFOOT:case a.THEAD:case a.CAPTION:case a.COLGROUP:break;default:Pd(e,t)}}function Og(e,t){if(e.openElements.hasInScope(a.BODY)&&(e.insertionMode=f.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function kg(e,t){e.openElements.hasInScope(a.BODY)&&(e.insertionMode=f.AFTER_BODY,Qd(e,t))}function Mg(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function Pg(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(a.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(a.FORM):r&&e.openElements.remove(r))}function qg(e){e.openElements.hasInButtonScope(a.P)||e._insertFakeElement(b.P,a.P),e._closePElement()}function Hg(e){e.openElements.hasInListItemScope(a.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI))}function Ug(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function Bg(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Fg(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function $g(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(b.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function $d(e,t){let r=t.tagName,i=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){let n=e.openElements.items[s],o=e.openElements.tagIDs[s];if(i===o&&(i!==a.UNKNOWN||e.treeAdapter.getTagName(n)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(n,o))break}}function va(e,t){switch(t.tagID){case a.A:case a.B:case a.I:case a.S:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.NOBR:case a.SMALL:case a.STRIKE:case a.STRONG:{Tu(e,t);break}case a.P:{qg(e);break}case a.DL:case a.UL:case a.OL:case a.DIR:case a.DIV:case a.NAV:case a.PRE:case a.MAIN:case a.MENU:case a.ASIDE:case a.BUTTON:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.ADDRESS:case a.ARTICLE:case a.DETAILS:case a.SECTION:case a.SUMMARY:case a.LISTING:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{Mg(e,t);break}case a.LI:{Hg(e);break}case a.DD:case a.DT:{Ug(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{Bg(e);break}case a.BR:{$g(e);break}case a.BODY:{Og(e,t);break}case a.HTML:{kg(e,t);break}case a.FORM:{Pg(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Fg(e,t);break}case a.TEMPLATE:{Ze(e,t);break}default:$d(e,t)}}function Vd(e,t){e.tmplInsertionModeStack.length>0?zd(e,t):xu(e,t)}function Vg(e,t){var r;t.tagID===a.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Yg(e,t){e._err(t,w.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function bu(e,t){if(qd.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=f.IN_TABLE_TEXT,t.type){case B.CHARACTER:{Gd(e,t);break}case B.WHITESPACE_CHARACTER:{Yd(e,t);break}}else Cs(e,t)}function Gg(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_CAPTION}function Xg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_COLUMN_GROUP}function Wg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(b.COLGROUP,a.COLGROUP),e.insertionMode=f.IN_COLUMN_GROUP,vu(e,t)}function jg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_TABLE_BODY}function Kg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(b.TBODY,a.TBODY),e.insertionMode=f.IN_TABLE_BODY,_a(e,t)}function zg(e,t){e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Qg(e,t){Fd(t)?e._appendElement(t,T.HTML):Cs(e,t),t.ackSelfClosing=!0}function Jg(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,T.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function $r(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{Kg(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{Ut(e,t);break}case a.COL:{Wg(e,t);break}case a.FORM:{Jg(e,t);break}case a.TABLE:{zg(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{jg(e,t);break}case a.INPUT:{Qg(e,t);break}case a.CAPTION:{Gg(e,t);break}case a.COLGROUP:{Xg(e,t);break}default:Cs(e,t)}}function ys(e,t){switch(t.tagID){case a.TABLE:{e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode());break}case a.TEMPLATE:{Ze(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:Cs(e,t)}}function Cs(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,xa(e,t),e.fosterParentingEnabled=r}function Yd(e,t){e.pendingCharacterTokens.push(t)}function Gd(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ws(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Cs(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var Xd=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function Zg(e,t){let r=t.tagID;Xd.has(r)?e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,$r(e,t)):at(e,t)}function tb(e,t){let r=t.tagID;switch(r){case a.CAPTION:case a.TABLE:{e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,r===a.TABLE&&ys(e,t));break}case a.BODY:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:va(e,t)}}function vu(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.COL:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{Ut(e,t);break}default:wa(e,t)}}function eb(e,t){switch(t.tagID){case a.COLGROUP:{e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=f.IN_TABLE);break}case a.TEMPLATE:{Ze(e,t);break}case a.COL:break;default:wa(e,t)}}function wa(e,t){e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=f.IN_TABLE,e._processToken(t))}function _a(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(b.TR,a.TR),e.insertionMode=f.IN_ROW,Aa(e,t);break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,$r(e,t));break}default:$r(e,t)}}function wu(e,t){let r=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE);break}case a.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,ys(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:case a.TR:break;default:ys(e,t)}}function Aa(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_CELL,e.activeFormattingElements.insertMarker();break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,_a(e,t));break}default:$r(e,t)}}function Wd(e,t){switch(t.tagID){case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY);break}case a.TABLE:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,wu(e,t));break}case a.TBODY:case a.TFOOT:case a.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(a.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,wu(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:break;default:ys(e,t)}}function rb(e,t){let r=t.tagID;Xd.has(r)?(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))&&(e._closeTableCell(),Aa(e,t)):at(e,t)}function ib(e,t){let r=t.tagID;switch(r){case a.TD:case a.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_ROW);break}case a.TABLE:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Wd(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:va(e,t)}}function jd(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case a.OPTGROUP:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case a.INPUT:case a.KEYGEN:case a.TEXTAREA:case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),t.tagID!==a.SELECT&&e._processStartTag(t));break}case a.SCRIPT:case a.TEMPLATE:{Ut(e,t);break}default:}}function Kd(e,t){switch(t.tagID){case a.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===a.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===a.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop();break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop();break}case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode());break}case a.TEMPLATE:{Ze(e,t);break}default:}}function sb(e,t){let r=t.tagID;r===a.CAPTION||r===a.TABLE||r===a.TBODY||r===a.TFOOT||r===a.THEAD||r===a.TR||r===a.TD||r===a.TH?(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t)):jd(e,t)}function nb(e,t){let r=t.tagID;r===a.CAPTION||r===a.TABLE||r===a.TBODY||r===a.TFOOT||r===a.THEAD||r===a.TR||r===a.TD||r===a.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Kd(e,t)}function ab(e,t){switch(t.tagID){case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{Ut(e,t);break}case a.CAPTION:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.tmplInsertionModeStack[0]=f.IN_TABLE,e.insertionMode=f.IN_TABLE,$r(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=f.IN_COLUMN_GROUP,e.insertionMode=f.IN_COLUMN_GROUP,vu(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=f.IN_TABLE_BODY,e.insertionMode=f.IN_TABLE_BODY,_a(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=f.IN_ROW,e.insertionMode=f.IN_ROW,Aa(e,t);break}default:e.tmplInsertionModeStack[0]=f.IN_BODY,e.insertionMode=f.IN_BODY,at(e,t)}}function ob(e,t){t.tagID===a.TEMPLATE&&Ze(e,t)}function zd(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):xu(e,t)}function ub(e,t){t.tagID===a.HTML?at(e,t):Ta(e,t)}function Qd(e,t){var r;if(t.tagID===a.HTML){if(e.fragmentContext||(e.insertionMode=f.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===a.HTML){e._setEndLocation(e.openElements.items[0],t);let i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else Ta(e,t)}function Ta(e,t){e.insertionMode=f.IN_BODY,xa(e,t)}function cb(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.FRAMESET:{e._insertElement(t,T.HTML);break}case a.FRAME:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{Ut(e,t);break}default:}}function lb(e,t){t.tagID===a.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==a.FRAMESET&&(e.insertionMode=f.AFTER_FRAMESET))}function db(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.NOFRAMES:{Ut(e,t);break}default:}}function hb(e,t){t.tagID===a.HTML&&(e.insertionMode=f.AFTER_AFTER_FRAMESET)}function fb(e,t){t.tagID===a.HTML?at(e,t):Ea(e,t)}function Ea(e,t){e.insertionMode=f.IN_BODY,xa(e,t)}function pb(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.NOFRAMES:{Ut(e,t);break}default:}}function mb(e,t){t.chars=X,e._insertCharacters(t)}function gb(e,t){e._insertCharacters(t),e.framesetOk=!1}function Jd(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==T.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function bb(e,t){if(pu(t))Jd(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===T.MATHML?ma(t):i===T.SVG&&(mu(t),ga(t)),bs(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function Eb(e,t){if(t.tagID===a.P||t.tagID===a.BR){Jd(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===T.HTML){e._endTagOutsideForeignContent(t);break}let s=e.treeAdapter.getTagName(i);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(r);break}}}var wb=new Set([b.AREA,b.BASE,b.BASEFONT,b.BGSOUND,b.BR,b.COL,b.EMBED,b.FRAME,b.HR,b.IMG,b.INPUT,b.KEYGEN,b.LINK,b.META,b.PARAM,b.SOURCE,b.TRACK,b.WBR]);function Tb(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===T.HTML&&wb.has(t.treeAdapter.getTagName(e))}var xb={treeAdapter:Kt,scriptingEnabled:!0};function _u(e,t){let r=N(N({},xb),t);return Zd(e,r)}function vb(e,t){let r="",i=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===b.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===T.HTML?t.treeAdapter.getTemplateContent(e):e,s=t.treeAdapter.getChildNodes(i);if(s)for(let n of s)r+=Zd(n,t);return r}function Zd(e,t){return t.treeAdapter.isElementNode(e)?_b(e,t):t.treeAdapter.isTextNode(e)?yb(e,t):t.treeAdapter.isCommentNode(e)?Cb(e,t):t.treeAdapter.isDocumentTypeNode(e)?Sb(e,t):""}function _b(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${Ab(e,t)}>${Tb(e,t)?"":`${vb(e,t)}</${r}>`}`}function Ab(e,{treeAdapter:t}){let r="";for(let i of t.getAttrList(e)){if(r+=" ",!i.namespace)r+=i.name;else switch(i.namespace){case T.XML:{r+=`xml:${i.name}`;break}case T.XMLNS:{i.name!=="xmlns"&&(r+="xmlns:"),r+=i.name;break}case T.XLINK:{r+=`xlink:${i.name}`;break}default:r+=`${i.prefix}:${i.name}`}r+=`="${Dr(i.value)}"`}return r}function yb(e,t){let{treeAdapter:r}=t,i=r.getTextNodeContent(e),s=r.getParentNode(e),n=s&&r.isElementNode(s)&&r.getTagName(s);return n&&r.getNamespaceURI(s)===T.HTML&&hu(n,t.scriptingEnabled)?i:Or(i)}function Cb(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function Sb(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function t0(e,t){return Fr.parse(e,t)}function e0(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let i=Fr.getFragmentParser(e,r);return i.tokenizer.write(t,!0),i.getFragment()}function r0(e){return new jt(e)}function i0(e){let t=e.includes('"')?"'":'"';return t+e+t}function Nb(e,t,r){let i="!DOCTYPE ";return e&&(i+=e),t?i+=` PUBLIC ${i0(t)}`:r&&(i+=" SYSTEM"),r&&(i+=` ${i0(r)}`),i}var tr={isCommentNode:je,isElementNode:L,isTextNode:ft,createDocument(){let e=new Tt([]);return e["x-mode"]=fs.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new Tt([])},createElement(e,t,r){let i=Object.create(null),s=Object.create(null),n=Object.create(null);for(let u=0;u<r.length;u++){let c=r[u].name;i[c]=r[u].value,s[c]=r[u].namespace,n[c]=r[u].prefix}let o=new We(e,i,[]);return o.namespace=t,o["x-attribsNamespace"]=s,o["x-attribsPrefix"]=n,o},createCommentNode(e){return new Ge(e)},appendChild(e,t){let r=e.children[e.children.length-1];r&&(r.next=t,t.prev=r),e.children.push(t),t.parent=e},insertBefore(e,t,r){let i=e.children.indexOf(r),{prev:s}=r;s&&(s.next=t,t.prev=s),r.prev=t,t.next=r,e.children.splice(i,0,t),t.parent=e},setTemplateContent(e,t){tr.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,i){let s=Nb(t,r,i),n=e.children.find(o=>Pn(o)&&o.name==="!doctype");n?n.data=s!=null?s:null:(n=new Xe("!doctype",s),tr.appendChild(e,n)),n["x-name"]=t!=null?t:void 0,n["x-publicId"]=r!=null?r:void 0,n["x-systemId"]=i!=null?i:void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:r,next:i}=e;e.prev=null,e.next=null,r&&(r.next=i),i&&(i.prev=r),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let r=e.children[e.children.length-1];r&&ft(r)?r.data+=t:tr.appendChild(e,r0(t))},insertTextBefore(e,t,r){let i=e.children[e.children.indexOf(r)-1];i&&ft(i)?i.data+=t:tr.insertBefore(e,r0(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let i=t[r].name;typeof e.attribs[i]=="undefined"&&(e.attribs[i]=t[r].value,e["x-attribsNamespace"][i]=t[r].namespace,e["x-attribsPrefix"][i]=t[r].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Pn(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation=N(N({},e.sourceCodeLocation),t)}};function s0(e,t,r,i){let s={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:tr,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return r?t0(e,s):e0(i,e,s)}var Ib={treeAdapter:tr};function n0(e){let t="length"in e?e:[e];for(let i=0;i<t.length;i+=1){let s=t[i];qt(s)&&Array.prototype.splice.call(t,i,1,...s.children)}let r="";for(let i=0;i<t.length;i+=1){let s=t[i];r+=_u(s,Ib)}return r}var I;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(I||(I={}));var A;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(A||(A={}));function ae(e){return e===I.Space||e===I.NewLine||e===I.Tab||e===I.FormFeed||e===I.CarriageReturn}function ya(e){return e===I.Slash||e===I.Gt||ae(e)}function a0(e){return e>=I.Zero&&e<=I.Nine}function Rb(e){return e>=I.LowerA&&e<=I.LowerZ||e>=I.UpperA&&e<=I.UpperZ}function Lb(e){return e>=I.UpperA&&e<=I.UpperF||e>=I.LowerA&&e<=I.LowerF}var Bt;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Bt||(Bt={}));var gt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},Vr=class{constructor({xmlMode:t=!1,decodeEntities:r=!0},i){this.cbs=i,this.state=A.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=A.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=r,this.entityTrie=t?qn:Nt}reset(){this.state=A.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=A.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(t){t===I.Lt||!this.decodeEntities&&this.fastForwardTo(I.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=A.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===I.Amp&&(this.state=A.BeforeEntity)}stateSpecialStartSequence(t){let r=this.sequenceIndex===this.currentSequence.length;if(!(r?ya(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=A.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===I.Gt||ae(t)){let r=this.index-this.currentSequence.length;if(this.sectionStart<r){let i=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=i}this.isSpecial=!1,this.sectionStart=r+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===gt.TitleEnd?this.decodeEntities&&t===I.Amp&&(this.state=A.BeforeEntity):this.fastForwardTo(I.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===I.Lt)}stateCDATASequence(t){t===gt.Cdata[this.sequenceIndex]?++this.sequenceIndex===gt.Cdata.length&&(this.state=A.InCommentLike,this.currentSequence=gt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=A.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===gt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=A.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!ya(t):Rb(t)}startSpecial(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=A.SpecialStartSequence}stateBeforeTagName(t){if(t===I.ExclamationMark)this.state=A.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===I.Questionmark)this.state=A.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){let r=t|32;this.sectionStart=this.index,!this.xmlMode&&r===gt.TitleEnd[2]?this.startSpecial(gt.TitleEnd,3):this.state=!this.xmlMode&&r===gt.ScriptEnd[2]?A.BeforeSpecialS:A.InTagName}else t===I.Slash?this.state=A.BeforeClosingTagName:(this.state=A.Text,this.stateText(t))}stateInTagName(t){ya(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){ae(t)||(t===I.Gt?this.state=A.Text:(this.state=this.isTagStartChar(t)?A.InClosingTagName:A.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===I.Gt||ae(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=A.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===I.Gt||this.fastForwardTo(I.Gt))&&(this.state=A.Text,this.baseState=A.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===I.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=A.InSpecialTag,this.sequenceIndex=0):this.state=A.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===I.Slash?this.state=A.InSelfClosingTag:ae(t)||(this.state=A.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===I.Gt?(this.cbs.onselfclosingtag(this.index),this.state=A.Text,this.baseState=A.Text,this.sectionStart=this.index+1,this.isSpecial=!1):ae(t)||(this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===I.Eq||ya(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=A.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===I.Eq?this.state=A.BeforeAttributeValue:t===I.Slash||t===I.Gt?(this.cbs.onattribend(Bt.NoValue,this.index),this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t)):ae(t)||(this.cbs.onattribend(Bt.NoValue,this.index),this.state=A.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===I.DoubleQuote?(this.state=A.InAttributeValueDq,this.sectionStart=this.index+1):t===I.SingleQuote?(this.state=A.InAttributeValueSq,this.sectionStart=this.index+1):ae(t)||(this.sectionStart=this.index,this.state=A.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===I.DoubleQuote?Bt.Double:Bt.Single,this.index),this.state=A.BeforeAttributeName):this.decodeEntities&&t===I.Amp&&(this.baseState=this.state,this.state=A.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,I.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,I.SingleQuote)}stateInAttributeValueNoQuotes(t){ae(t)||t===I.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Bt.Unquoted,this.index),this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===I.Amp&&(this.baseState=this.state,this.state=A.BeforeEntity)}stateBeforeDeclaration(t){t===I.OpeningSquareBracket?(this.state=A.CDATASequence,this.sequenceIndex=0):this.state=t===I.Dash?A.BeforeComment:A.InDeclaration}stateInDeclaration(t){(t===I.Gt||this.fastForwardTo(I.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=A.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===I.Gt||this.fastForwardTo(I.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=A.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===I.Dash?(this.state=A.InCommentLike,this.currentSequence=gt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=A.InDeclaration}stateInSpecialComment(t){(t===I.Gt||this.fastForwardTo(I.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=A.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){let r=t|32;r===gt.ScriptEnd[3]?this.startSpecial(gt.ScriptEnd,4):r===gt.StyleEnd[3]?this.startSpecial(gt.StyleEnd,4):(this.state=A.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===I.Number?this.state=A.BeforeNumericEntity:t===I.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=A.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=Zi(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let r=this.trieCurrent&lt.VALUE_LENGTH;if(r){let i=(r>>14)-1;if(!this.allowLegacyEntity()&&t!==I.Semi)this.trieIndex+=i;else{let s=this.index-this.entityExcess+1;s>this.sectionStart&&this.emitPartial(this.sectionStart,s),this.entityResult=this.trieIndex,this.trieIndex+=i,this.entityExcess=0,this.sectionStart=this.index+1,i===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&lt.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~lt.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(t|32)===I.LowerX?(this.entityExcess++,this.state=A.InHexEntity):(this.state=A.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){let r=this.index-this.entityExcess-1;r+2+ +(this.state===A.InHexEntity)!==this.index&&(r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.sectionStart=this.index+Number(t),this.emitCodePoint(Ji(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===I.Semi?this.emitNumericEntity(!0):a0(t)?(this.entityResult=this.entityResult*10+(t-I.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===I.Semi?this.emitNumericEntity(!0):a0(t)?(this.entityResult=this.entityResult*16+(t-I.Zero),this.entityExcess++):Lb(t)?(this.entityResult=this.entityResult*16+((t|32)-I.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===A.Text||this.baseState===A.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===A.Text||this.state===A.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===A.InAttributeValueDq||this.state===A.InAttributeValueSq||this.state===A.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case A.Text:{this.stateText(t);break}case A.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case A.InSpecialTag:{this.stateInSpecialTag(t);break}case A.CDATASequence:{this.stateCDATASequence(t);break}case A.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case A.InAttributeName:{this.stateInAttributeName(t);break}case A.InCommentLike:{this.stateInCommentLike(t);break}case A.InSpecialComment:{this.stateInSpecialComment(t);break}case A.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case A.InTagName:{this.stateInTagName(t);break}case A.InClosingTagName:{this.stateInClosingTagName(t);break}case A.BeforeTagName:{this.stateBeforeTagName(t);break}case A.AfterAttributeName:{this.stateAfterAttributeName(t);break}case A.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case A.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case A.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case A.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case A.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case A.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case A.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case A.InDeclaration:{this.stateInDeclaration(t);break}case A.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case A.BeforeComment:{this.stateBeforeComment(t);break}case A.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case A.InNamedEntity:{this.stateInNamedEntity(t);break}case A.BeforeEntity:{this.stateBeforeEntity(t);break}case A.InHexEntity:{this.stateInHexEntity(t);break}case A.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()}finish(){this.state===A.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length+this.offset;this.state===A.InCommentLike?this.currentSequence===gt.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===A.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===A.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===A.InTagName||this.state===A.BeforeAttributeName||this.state===A.BeforeAttributeValue||this.state===A.AfterAttributeName||this.state===A.InAttributeName||this.state===A.InAttributeValueSq||this.state===A.InAttributeValueDq||this.state===A.InAttributeValueNq||this.state===A.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,r){this.baseState!==A.Text&&this.baseState!==A.InSpecialTag?this.cbs.onattribdata(t,r):this.cbs.ontext(t,r)}emitCodePoint(t){this.baseState!==A.Text&&this.baseState!==A.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}};var Yr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),V=new Set(["p"]),o0=new Set(["thead","tbody"]),u0=new Set(["dd","dt"]),c0=new Set(["rt","rp"]),Db=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",V],["h1",V],["h2",V],["h3",V],["h4",V],["h5",V],["h6",V],["select",Yr],["input",Yr],["output",Yr],["button",Yr],["datalist",Yr],["textarea",Yr],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",u0],["dt",u0],["address",V],["article",V],["aside",V],["blockquote",V],["details",V],["div",V],["dl",V],["fieldset",V],["figcaption",V],["figure",V],["footer",V],["form",V],["header",V],["hr",V],["main",V],["nav",V],["ol",V],["pre",V],["section",V],["table",V],["ul",V],["rt",c0],["rp",c0],["tbody",o0],["tfoot",o0]]),Ob=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),l0=new Set(["math","svg"]),d0=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),kb=/\s|\//,Ss=class{constructor(t,r={}){var i,s,n,o,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t!=null?t:{},this.lowerCaseTagNames=(i=r.lowerCaseTags)!==null&&i!==void 0?i:!r.xmlMode,this.lowerCaseAttributeNames=(s=r.lowerCaseAttributeNames)!==null&&s!==void 0?s:!r.xmlMode,this.tokenizer=new((n=r.Tokenizer)!==null&&n!==void 0?n:Vr)(this.options,this),(u=(o=this.cbs).onparserinit)===null||u===void 0||u.call(o,this)}ontext(t,r){var i,s;let n=this.getSlice(t,r);this.endIndex=r-1,(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,n),this.startIndex=r}ontextentity(t){var r,i;let s=this.tokenizer.getSectionStart();this.endIndex=s-1,(i=(r=this.cbs).ontext)===null||i===void 0||i.call(r,Lr(t)),this.startIndex=s}isVoidElement(t){return!this.options.xmlMode&&Ob.has(t)}onopentagname(t,r){this.endIndex=r;let i=this.getSlice(t,r);this.lowerCaseTagNames&&(i=i.toLowerCase()),this.emitOpenTag(i)}emitOpenTag(t){var r,i,s,n;this.openTagStart=this.startIndex,this.tagname=t;let o=!this.options.xmlMode&&Db.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){let u=this.stack.pop();(i=(r=this.cbs).onclosetag)===null||i===void 0||i.call(r,u,!0)}this.isVoidElement(t)||(this.stack.push(t),l0.has(t)?this.foreignContext.push(!0):d0.has(t)&&this.foreignContext.push(!1)),(n=(s=this.cbs).onopentagname)===null||n===void 0||n.call(s,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var r,i;this.startIndex=this.openTagStart,this.attribs&&((i=(r=this.cbs).onopentag)===null||i===void 0||i.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,r){var i,s,n,o,u,c;this.endIndex=r;let d=this.getSlice(t,r);if(this.lowerCaseTagNames&&(d=d.toLowerCase()),(l0.has(d)||d0.has(d))&&this.foreignContext.pop(),this.isVoidElement(d))!this.options.xmlMode&&d==="br"&&((s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,"br"),(o=(n=this.cbs).onopentag)===null||o===void 0||o.call(n,"br",{},!0),(c=(u=this.cbs).onclosetag)===null||c===void 0||c.call(u,"br",!1));else{let p=this.stack.lastIndexOf(d);if(p!==-1)if(this.cbs.onclosetag){let g=this.stack.length-p;for(;g--;)this.cbs.onclosetag(this.stack.pop(),g!==0)}else this.stack.length=p;else!this.options.xmlMode&&d==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var r,i;let s=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===s&&((i=(r=this.cbs).onclosetag)===null||i===void 0||i.call(r,s,!t),this.stack.pop())}onattribname(t,r){this.startIndex=t;let i=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?i.toLowerCase():i}onattribdata(t,r){this.attribvalue+=this.getSlice(t,r)}onattribentity(t){this.attribvalue+=Lr(t)}onattribend(t,r){var i,s;this.endIndex=r,(s=(i=this.cbs).onattribute)===null||s===void 0||s.call(i,this.attribname,this.attribvalue,t===Bt.Double?'"':t===Bt.Single?"'":t===Bt.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){let r=t.search(kb),i=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i}ondeclaration(t,r){this.endIndex=r;let i=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(i);this.cbs.onprocessinginstruction(`!${s}`,`!${i}`)}this.startIndex=r+1}onprocessinginstruction(t,r){this.endIndex=r;let i=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(i);this.cbs.onprocessinginstruction(`?${s}`,`?${i}`)}this.startIndex=r+1}oncomment(t,r,i){var s,n,o,u;this.endIndex=r,(n=(s=this.cbs).oncomment)===null||n===void 0||n.call(s,this.getSlice(t,r-i)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1}oncdata(t,r,i){var s,n,o,u,c,d,p,g,_,x;this.endIndex=r;let S=this.getSlice(t,r-i);this.options.xmlMode||this.options.recognizeCDATA?((n=(s=this.cbs).oncdatastart)===null||n===void 0||n.call(s),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,S),(d=(c=this.cbs).oncdataend)===null||d===void 0||d.call(c)):((g=(p=this.cbs).oncomment)===null||g===void 0||g.call(p,`[CDATA[${S}]]`),(x=(_=this.cbs).oncommentend)===null||x===void 0||x.call(_)),this.startIndex=r+1}onend(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let i=this.stack.length;i>0;this.cbs.onclosetag(this.stack[--i],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)}reset(){var t,r,i,s;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(i=this.cbs).onparserinit)===null||s===void 0||s.call(i,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let i=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);for(;r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),i+=this.buffers[0].slice(0,r-this.bufferOffset);return i}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var r,i;if(this.ended){(i=(r=this.cbs).onerror)===null||i===void 0||i.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var r,i;if(this.ended){(i=(r=this.cbs).onerror)===null||i===void 0||i.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};function h0(e,t){let r=new Rr(void 0,t);return new Ss(r,t).end(e),r.root}var Mb=ud((e,t,r,i)=>t.xmlMode||t._useHtmlParser2?h0(e,t):s0(e,t,r,i)),Ft=md(Mb,(e,t)=>t.xmlMode||t._useHtmlParser2?Bn(e,t):n0(e)),VI=Ft([]),{contains:YI}=be,{merge:GI}=be,{parseHTML:XI}=be,{root:WI}=be;var Pb=`
2377
+ )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Rt=Re(xe(),1);var Xo={};function Wo(e,t){return e===Rt.default.falseFunc?Rt.default.falseFunc:r=>t.isTag(r)&&e(r)}function jo(e,t){let r=t.getSiblings(e);if(r.length<=1)return[];let i=r.indexOf(e);return i<0||i===r.length-1?[]:r.slice(i+1).filter(t.isTag)}function Go(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var Yo=(e,t,r,i,s)=>{let n=s(t,Go(r),i);return n===Rt.default.trueFunc?e:n===Rt.default.falseFunc?Rt.default.falseFunc:o=>n(o)&&e(o)},Zn={is:Yo,matches:Yo,where:Yo,not(e,t,r,i,s){let n=s(t,Go(r),i);return n===Rt.default.falseFunc?e:n===Rt.default.trueFunc?Rt.default.falseFunc:o=>!n(o)&&e(o)},has(e,t,r,i,s){let{adapter:n}=r,o=Go(r);o.relativeSelector=!0;let u=t.some(m=>m.some(as))?[Xo]:void 0,c=s(t,o,u);if(c===Rt.default.falseFunc)return Rt.default.falseFunc;let d=Wo(c,n);if(u&&c!==Rt.default.trueFunc){let{shouldTestNextSiblings:m=!1}=c;return g=>{if(!e(g))return!1;u[0]=g;let _=n.getChildren(g),v=m?[..._,...jo(g,n)]:_;return n.existsOne(d,v)}}return m=>e(m)&&n.existsOne(d,n.getChildren(m))}};function Ql(e,t,r,i,s){var n;let{name:o,data:u}=t;if(Array.isArray(u)){if(!(o in Zn))throw new Error(`Unknown pseudo-class :${o}(${u})`);return Zn[o](e,u,r,i,s)}let c=(n=r.pseudos)===null||n===void 0?void 0:n[o],d=typeof c=="string"?c:Jn[o];if(typeof d=="string"){if(u!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let m=se(d);return Zn.is(e,m,r,i,s)}if(typeof c=="function")return Vo(c,o,u,1),m=>c(m,u)&&e(m);if(o in Ur)return Ur[o](e,u,r,i);if(o in us){let m=us[o];return Vo(m,o,u,2),g=>m(g,r,u)&&e(g)}throw new Error(`Unknown pseudo-class :${o}`)}function Ko(e,t){let r=t.getParent(e);return r&&t.isTag(r)?r:null}function Jl(e,t,r,i,s){let{adapter:n,equals:o}=r;switch(t.type){case O.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case O.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case O.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Wl[t.action](e,t,r)}case O.Pseudo:return Ql(e,t,r,i,s);case O.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:u}=t;return(!r.xmlMode||r.lowerCaseTags)&&(u=u.toLowerCase()),function(d){return n.getName(d)===u&&e(d)}}case O.Descendant:{if(r.cacheResults===!1||typeof WeakSet=="undefined")return function(d){let m=d;for(;m=Ko(m,n);)if(e(m))return!0;return!1};let u=new WeakSet;return function(d){let m=d;for(;m=Ko(m,n);)if(!u.has(m)){if(n.isTag(m)&&e(m))return!0;u.add(m)}return!1}}case"_flexibleDescendant":return function(c){let d=c;do if(e(d))return!0;while(d=Ko(d,n));return!1};case O.Parent:return function(c){return n.getChildren(c).some(d=>n.isTag(d)&&e(d))};case O.Child:return function(c){let d=n.getParent(c);return d!=null&&n.isTag(d)&&e(d)};case O.Sibling:return function(c){let d=n.getSiblings(c);for(let m=0;m<d.length;m++){let g=d[m];if(o(c,g))break;if(n.isTag(g)&&e(g))return!0}return!1};case O.Adjacent:return n.prevElementSibling?function(c){let d=n.prevElementSibling(c);return d!=null&&e(d)}:function(c){let d=n.getSiblings(c),m;for(let g=0;g<d.length;g++){let _=d[g];if(o(c,_))break;n.isTag(_)&&(m=_)}return!!m&&e(m)};case O.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function Zl(e,t,r){let i=ta(e,t,r);return Wo(i,t.adapter)}function ta(e,t,r){let i=typeof e=="string"?se(e):e;return ea(i,t,r)}function td(e){return e.type===O.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(td)))}var Kf={type:O.Descendant},zf={type:"_flexibleDescendant"},Qf={type:O.Pseudo,name:"scope",data:null};function Jf(e,{adapter:t},r){let i=!!(r!=null&&r.every(s=>{let n=t.isTag(s)&&t.getParent(s);return s===Xo||n&&t.isTag(n)}));for(let s of e){if(!(s.length>0&&as(s[0])&&s[0].type!==O.Descendant))if(i&&!s.some(td))s.unshift(Kf);else continue;s.unshift(Qf)}}function ea(e,t,r){var i;e.forEach(Bo),r=(i=t.context)!==null&&i!==void 0?i:r;let s=Array.isArray(r),n=r&&(Array.isArray(r)?r:[r]);if(t.relativeSelector!==!1)Jf(e,t,n);else if(e.some(c=>c.length>0&&as(c[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1,u=e.map(c=>{if(c.length>=2){let[d,m]=c;d.type!==O.Pseudo||d.name!=="scope"||(s&&m.type===O.Descendant?c[1]=zf:(m.type===O.Adjacent||m.type===O.Sibling)&&(o=!0))}return Zf(c,t,n)}).reduce(tp,ne.default.falseFunc);return u.shouldTestNextSiblings=o,u}function Zf(e,t,r){var i;return e.reduce((s,n)=>s===ne.default.falseFunc?ne.default.falseFunc:Jl(s,n,t,r,ea),(i=t.rootFunc)!==null&&i!==void 0?i:ne.default.trueFunc)}function tp(e,t){return t===ne.default.falseFunc||e===ne.default.trueFunc?e:e===ne.default.falseFunc||t===ne.default.trueFunc?t:function(i){return e(i)||t(i)}}var ed=(e,t)=>e===t,ep={adapter:ie,equals:ed};function rd(e){var t,r,i,s;let n=e!=null?e:ep;return(t=n.adapter)!==null&&t!==void 0||(n.adapter=ie),(r=n.equals)!==null&&r!==void 0||(n.equals=(s=(i=n.adapter)===null||i===void 0?void 0:i.equals)!==null&&s!==void 0?s:ed),n}function Qo(e){return function(r,i,s){let n=rd(i);return e(r,n,s)}}var KN=Qo(Zl),zN=Qo(ta),ra=Qo(ea);function id(e){return function(r,i,s){let n=rd(s);typeof r!="function"&&(r=ta(r,n,i));let o=ia(i,n.adapter,r.shouldTestNextSiblings);return e(r,o,n)}}function ia(e,t,r=!1){return r&&(e=rp(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function rp(e,t){let r=Array.isArray(e)?e.slice(0):[e],i=r.length;for(let s=0;s<i;s++){let n=jo(r[s],t);r.push(...n)}return r}var QN=id((e,t,r)=>e===zo.default.falseFunc||!t||t.length===0?[]:r.adapter.findAll(e,t)),JN=id((e,t,r)=>e===zo.default.falseFunc||!t||t.length===0?null:r.adapter.findOne(e,t));var na=Re(xe(),1);var ip=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function Br(e){return e.type!=="pseudo"?!1:ip.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(Br)):!1}function sd(e,t,r){let i=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(i)?i>=0?i+1:1/0:0;case"lt":return isFinite(i)?i>=0?Math.min(i,r):1/0:0;case"gt":return isFinite(i)?1/0:0;case"odd":return 2*r;case"even":return 2*r-1;case"last":case"not":return 1/0}}function nd(e){for(;e.parent;)e=e.parent;return e}function sa(e){let t=[],r=[];for(let i of e)i.some(Br)?t.push(i):r.push(i);return[r,t]}var sp={type:O.Universal,namespace:null},np={type:O.Pseudo,name:"scope",data:null};function tu(e,t,r={}){return eu([e],t,r)}function eu(e,t,r={}){if(typeof t=="function")return e.some(t);let[i,s]=sa(se(t));return i.length>0&&e.some(ra(i,r))||s.some(n=>od(n,e,r).length>0)}function ap(e,t,r,i){let s=typeof r=="string"?parseInt(r,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(s)&&Math.abs(s)<t.length?[s<0?t[t.length+s]:t[s]]:[];case"gt":return isFinite(s)?t.slice(s+1):[];case"even":return t.filter((n,o)=>o%2===0);case"odd":return t.filter((n,o)=>o%2===1);case"not":{let n=new Set(ad(r,t,i));return t.filter(o=>!n.has(o))}}}function ru(e,t,r={}){return ad(se(e),t,r)}function ad(e,t,r){if(t.length===0)return[];let[i,s]=sa(e),n;if(i.length){let o=Zo(t,i,r);if(s.length===0)return o;o.length&&(n=new Set(o))}for(let o=0;o<s.length&&(n==null?void 0:n.size)!==t.length;o++){let u=s[o];if((n?t.filter(m=>D(m)&&!n.has(m)):t).length===0)break;let d=od(u,t,r);if(d.length)if(n)d.forEach(m=>n.add(m));else{if(o===s.length-1)return d;n=new Set(d)}}return typeof n!="undefined"?n.size===t.length?t:t.filter(o=>n.has(o)):[]}function od(e,t,r){var i;if(e.some(Ze)){let s=(i=r.root)!==null&&i!==void 0?i:nd(t[0]),n=U(S({},r),{context:t,relativeSelector:!1});return e.push(np),aa(s,e,n,!0,t.length)}return aa(t,e,r,!1,t.length)}function ud(e,t,r={},i=1/0){if(typeof e=="function")return cd(t,e);let[s,n]=sa(se(e)),o=n.map(u=>aa(t,u,r,!0,i));return s.length&&o.push(Jo(t,s,r,i)),o.length===0?[]:o.length===1?o[0]:be(o.reduce((u,c)=>[...u,...c]))}function aa(e,t,r,i,s){let n=t.findIndex(Br),o=t.slice(0,n),u=t[n],c=t.length-1===n?s:1/0,d=sd(u.name,u.data,c);if(d===0)return[];let g=(o.length===0&&!Array.isArray(e)?Mr(e).filter(D):o.length===0?(Array.isArray(e)?e:[e]).filter(D):i||o.some(Ze)?Jo(e,[o],r,d):Zo(e,[o],r)).slice(0,d),_=ap(u.name,g,u.data,r);if(_.length===0||t.length===n+1)return _;let v=t.slice(n+1),N=v.some(Ze);if(N){if(Ze(v[0])){let{type:L}=v[0];(L===O.Sibling||L===O.Adjacent)&&(_=ia(_,ie,!0)),v.unshift(sp)}r=U(S({},r),{relativeSelector:!1,rootFunc:L=>_.includes(L)})}else r.rootFunc&&r.rootFunc!==na.trueFunc&&(r=U(S({},r),{rootFunc:na.trueFunc}));return v.some(Br)?aa(_,v,r,!1,s):N?Jo(_,[v],r,s):Zo(_,[v],r)}function Jo(e,t,r,i){let s=ra(t,r,e);return cd(e,s,i)}function cd(e,t,r=1/0){let i=ia(e,ie,t.shouldTestNextSiblings);return Yn(s=>D(s)&&t(s),i,!0,r)}function Zo(e,t,r){let i=(Array.isArray(e)?e:[e]).filter(D);if(i.length===0)return i;let s=ra(t,r);return s===na.trueFunc?i:i.filter(s)}var up=/^\s*[~+]/;function cp(e){var t;if(!e)return this._make([]);let r=this.toArray();if(typeof e!="string"){let n=xt(e)?e.toArray():[e];return this._make(n.filter(o=>r.some(u=>ko(u,o))))}let i=up.test(e)?r:this.children().toArray(),s={context:r,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(ud(e,i,s))}function iu(e){return function(t,...r){return function(i){var s;let n=e(t,this);return i&&(n=au(n,i,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&n.length>1?r.reduce((o,u)=>u(o),n):n)}}}var cs=iu((e,t)=>{let r=[];for(let i=0;i<t.length;i++){let s=e(t[i]);r.push(s)}return new Array().concat(...r)}),su=iu((e,t)=>{let r=[];for(let i=0;i<t.length;i++){let s=e(t[i]);s!==null&&r.push(s)}return r});function nu(e,...t){let r=null,i=iu((s,n)=>{let o=[];return G(n,u=>{for(let c;(c=s(u))&&!(r!=null&&r(c,o.length));u=c)o.push(c)}),o})(e,...t);return function(s,n){r=typeof s=="string"?u=>tu(u,s,this.options):s?ls(s):null;let o=i.call(this,n);return r=null,o}}function Fr(e){return Array.from(new Set(e))}var lp=su(({parent:e})=>e&&!Ht(e)?e:null,Fr),dp=cs(e=>{let t=[];for(;e.parent&&!Ht(e.parent);)t.push(e.parent),e=e.parent;return t},be,e=>e.reverse()),hp=nu(({parent:e})=>e&&!Ht(e)?e:null,be,e=>e.reverse());function fp(e){var t;let r=[];if(!e)return this._make(r);let i={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},s=typeof e=="string"?n=>tu(n,e,i):ls(e);return G(this,n=>{for(;n&&D(n);){if(s(n,0)){r.includes(n)||r.push(n);break}n=n.parent}}),this._make(r)}var pp=su(e=>$n(e)),mp=cs(e=>{let t=[];for(;e.next;)e=e.next,D(e)&&t.push(e);return t},Fr),gp=nu(e=>$n(e),Fr),bp=su(e=>Vn(e)),Ep=cs(e=>{let t=[];for(;e.prev;)e=e.prev,D(e)&&t.push(e);return t},Fr),wp=nu(e=>Vn(e),Fr),Tp=cs(e=>Do(e).filter(t=>D(t)&&t!==e),be),xp=cs(e=>Mr(e).filter(D),Fr);function vp(){let e=this.toArray().reduce((t,r)=>z(r)?t.concat(r.children):t,[]);return this._make(e)}function _p(e){let t=0,r=this.length;for(;t<r&&e.call(this[t],t,this[t])!==!1;)++t;return this}function Ap(e){let t=[];for(let r=0;r<this.length;r++){let i=this[r],s=e.call(i,r,i);s!=null&&(t=t.concat(s))}return this._make(t)}function ls(e){return typeof e=="function"?(t,r)=>e.call(t,r,t):xt(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function yp(e){var t;return this._make(au(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function au(e,t,r,i){return typeof t=="string"?ru(t,e,{xmlMode:r,root:i}):e.filter(ls(t))}function Cp(e){let t=this.toArray();return typeof e=="string"?eu(t.filter(D),e,this.options):e?t.some(ls(e)):!1}function Np(e){let t=this.toArray();if(typeof e=="string"){let r=new Set(ru(e,t,this.options));t=t.filter(i=>!r.has(i))}else{let r=ls(e);t=t.filter((i,s)=>!r(i,s))}return this._make(t)}function Sp(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,r)=>this._make(r).find(e).length>0)}function Ip(){return this.length>1?this._make(this[0]):this}function Rp(){return this.length>0?this._make(this[this.length-1]):this}function Lp(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function Dp(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function Op(){return Array.prototype.slice.call(this)}function kp(e){let t,r;return e==null?(t=this.parent().children(),r=this[0]):typeof e=="string"?(t=this._make(e),r=this[0]):(t=this,r=xt(e)?e[0]:e),Array.prototype.indexOf.call(t,r)}function Mp(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function Pp(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function qp(e,t){let r=this._make(e,t),i=be([...this.get(),...r.get()]);return this._make(i)}function Hp(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}var uu={};_t(uu,{_makeDomArray:()=>Up,after:()=>jp,append:()=>$p,appendTo:()=>Bp,before:()=>zp,clone:()=>sm,empty:()=>tm,html:()=>em,insertAfter:()=>Kp,insertBefore:()=>Qp,prepend:()=>Vp,prependTo:()=>Fp,remove:()=>Jp,replaceWith:()=>Zp,text:()=>im,toString:()=>rm,unwrap:()=>Xp,wrap:()=>Yp,wrapAll:()=>Wp,wrapInner:()=>Gp});function ld(e){return function(r,i,s,n){if(typeof Buffer!="undefined"&&Buffer.isBuffer(r)&&(r=r.toString()),typeof r=="string")return e(r,i,s,n);let o=r;if(!Array.isArray(o)&&Ht(o))return o;let u=new Tt([]);return ve(o,u),u}}function ve(e,t){let r=Array.isArray(e)?e:[e];t?t.children=r:t=null;for(let i=0;i<r.length;i++){let s=r[i];s.parent&&s.parent.children!==r&&re(s),t?(s.prev=r[i-1]||null,s.next=r[i+1]||null):s.prev=s.next=null,s.parent=t}return t}function Up(e,t){return e==null?[]:xt(e)?t?jn(e.get()):e.get():Array.isArray(e)?e.reduce((r,i)=>r.concat(this._makeDomArray(i,t)),[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?jn([e]):[e]}function dd(e){return function(...t){let r=this.length-1;return G(this,(i,s)=>{if(!z(i))return;let n=typeof t[0]=="function"?t[0].call(i,s,this._render(i.children)):t,o=this._makeDomArray(n,s<r);e(o,i.children,i)})}}function _e(e,t,r,i,s){var n,o;let u=[t,r,...i],c=t===0?null:e[t-1],d=t+r>=e.length?null:e[t+r];for(let m=0;m<i.length;++m){let g=i[m],_=g.parent;if(_){let N=_.children.indexOf(g);N>-1&&(_.children.splice(N,1),s===_&&t>N&&u[0]--)}g.parent=s,g.prev&&(g.prev.next=(n=g.next)!==null&&n!==void 0?n:null),g.next&&(g.next.prev=(o=g.prev)!==null&&o!==void 0?o:null),g.prev=m===0?c:i[m-1],g.next=m===i.length-1?d:i[m+1]}return c&&(c.next=i[0]),d&&(d.prev=i[i.length-1]),e.splice(...u)}function Bp(e){return(xt(e)?e:this._make(e)).append(this),this}function Fp(e){return(xt(e)?e:this._make(e)).prepend(this),this}var $p=dd((e,t,r)=>{_e(t,t.length,0,e,r)}),Vp=dd((e,t,r)=>{_e(t,0,0,e,r)});function hd(e){return function(t){let r=this.length-1,i=this.parents().last();for(let s=0;s<this.length;s++){let n=this[s],o=typeof t=="function"?t.call(n,s,n):typeof t=="string"&&!is(t)?i.find(t).clone():t,[u]=this._makeDomArray(o,s<r);if(!u||!z(u))continue;let c=u,d=0;for(;d<c.children.length;){let m=c.children[d];D(m)?(c=m,d=0):d++}e(n,c,[u])}return this}}var Yp=hd((e,t,r)=>{let{parent:i}=e;if(!i)return;let s=i.children,n=s.indexOf(e);ve([e],t),_e(s,n,0,r,i)}),Gp=hd((e,t,r)=>{z(e)&&(ve(e.children,t),ve(r,e))});function Xp(e){return this.parent(e).not("body").each((t,r)=>{this._make(r).replaceWith(r.children)}),this}function Wp(e){let t=this[0];if(t){let r=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),i;for(let n=0;n<r.length;n++)r[n].type==="tag"&&(i=r[n]);let s=0;for(;i&&s<i.children.length;){let n=i.children[s];n.type==="tag"?(i=n,s=0):s++}i&&this._make(i).append(this)}return this}function jp(...e){let t=this.length-1;return G(this,(r,i)=>{let{parent:s}=r;if(!z(r)||!s)return;let n=s.children,o=n.indexOf(r);if(o<0)return;let u=typeof e[0]=="function"?e[0].call(r,i,this._render(r.children)):e,c=this._makeDomArray(u,i<t);_e(n,o+1,0,c,s)})}function Kp(e){typeof e=="string"&&(e=this._make(e)),this.remove();let t=[];return this._makeDomArray(e).forEach(r=>{let i=this.clone().toArray(),{parent:s}=r;if(!s)return;let n=s.children,o=n.indexOf(r);o<0||(_e(n,o+1,0,i,s),t.push(...i))}),this._make(t)}function zp(...e){let t=this.length-1;return G(this,(r,i)=>{let{parent:s}=r;if(!z(r)||!s)return;let n=s.children,o=n.indexOf(r);if(o<0)return;let u=typeof e[0]=="function"?e[0].call(r,i,this._render(r.children)):e,c=this._makeDomArray(u,i<t);_e(n,o,0,c,s)})}function Qp(e){let t=this._make(e);this.remove();let r=[];return G(t,i=>{let s=this.clone().toArray(),{parent:n}=i;if(!n)return;let o=n.children,u=o.indexOf(i);u<0||(_e(o,u,0,s,n),r.push(...s))}),this._make(r)}function Jp(e){let t=e?this.filter(e):this;return G(t,r=>{re(r),r.prev=r.next=r.parent=null}),this}function Zp(e){return G(this,(t,r)=>{let{parent:i}=t;if(!i)return;let s=i.children,n=typeof e=="function"?e.call(t,r,t):e,o=this._makeDomArray(n);ve(o,null);let u=s.indexOf(t);_e(s,u,1,o,i),o.includes(t)||(t.parent=t.prev=t.next=null)})}function tm(){return G(this,e=>{z(e)&&(e.children.forEach(t=>{t.next=t.prev=t.parent=null}),e.children.length=0)})}function em(e){if(e===void 0){let t=this[0];return!t||!z(t)?null:this._render(t.children)}return G(this,t=>{if(!z(t))return;t.children.forEach(i=>{i.next=i.prev=i.parent=null});let r=xt(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;ve(r,t)})}function rm(){return this._render(this)}function im(e){return e===void 0?we(this):typeof e=="function"?G(this,(t,r)=>this._make(t).text(e.call(t,r,we([t])))):G(this,t=>{if(!z(t))return;t.children.forEach(i=>{i.next=i.prev=i.parent=null});let r=new Wt(`${e}`);ve(r,t)})}function sm(){return this._make(jn(this.get()))}var cu={};_t(cu,{css:()=>nm});function nm(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return G(this,(r,i)=>{D(r)&&fd(r,e,t,i)});if(this.length!==0)return pd(this[0],e)}function fd(e,t,r,i){if(typeof t=="string"){let s=pd(e),n=typeof r=="function"?r.call(e,i,s[t]):r;n===""?delete s[t]:n!=null&&(s[t]=n),e.attribs.style=am(s)}else typeof t=="object"&&Object.keys(t).forEach((s,n)=>{fd(e,s,t[s],n)})}function pd(e,t){if(!e||!D(e))return;let r=om(e.attribs.style);if(typeof t=="string")return r[t];if(Array.isArray(t)){let i={};return t.forEach(s=>{r[s]!=null&&(i[s]=r[s])}),i}return r}function am(e){return Object.keys(e).reduce((t,r)=>`${t}${t?" ":""}${r}: ${e[r]};`,"")}function om(e){if(e=(e||"").trim(),!e)return{};let t={},r;for(let i of e.split(";")){let s=i.indexOf(":");if(s<1||s===i.length-1){let n=i.trimEnd();n.length>0&&r!==void 0&&(t[r]+=`;${n}`)}else r=i.slice(0,s).trim(),t[r]=i.slice(s+1).trim()}return t}var lu={};_t(lu,{serialize:()=>cm,serializeArray:()=>lm});var md="input,select,textarea,keygen",um=/%20/g,gd=/\r?\n/g;function cm(){return this.serializeArray().map(r=>`${encodeURIComponent(r.name)}=${encodeURIComponent(r.value)}`).join("&").replace(um,"+")}function lm(){return this.map((e,t)=>{let r=this._make(t);return D(t)&&t.name==="form"?r.find(md).toArray():r.filter(md).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var r;let i=this._make(t),s=i.attr("name"),n=(r=i.val())!==null&&r!==void 0?r:"";return Array.isArray(n)?n.map(o=>({name:s,value:o.replace(gd,`\r
2378
+ `)})):{name:s,value:n.replace(gd,`\r
2379
+ `)}}).toArray()}var Ae=class{constructor(t,r,i){if(this.length=0,this.options=i,this._root=r,t){for(let s=0;s<t.length;s++)this[s]=t[s];this.length=t.length}}};Ae.prototype.cheerio="[cheerio object]";Ae.prototype.splice=Array.prototype.splice;Ae.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Ae.prototype,Ho,ou,uu,cu,lu);function bd(e,t){return function r(i,s,n=!0){if(i==null)throw new Error("cheerio.load() expects a string");let o=S(S({},Xi),Wi(s)),u=e(i,o,n,null);class c extends Ae{_make(g,_){let v=d(g,_);return v.prevObject=this,v}_parse(g,_,v,N){return e(g,_,v,N)}_render(g){return t(g,this.options)}}function d(m,g,_=u,v){if(m&&xt(m))return m;let N=S(S({},o),Wi(v)),L=typeof _=="string"?[e(_,N,!1,null)]:"length"in _?_:[_],H=xt(L)?L:new c(L,null,N);if(H._root=H,!m)return new c(void 0,H,N);let Y=typeof m=="string"&&is(m)?e(m,N,!1,null).children:dm(m)?[m]:Array.isArray(m)?m:void 0,bt=new c(Y,H,N);if(Y)return bt;if(typeof m!="string")throw new Error("Unexpected type of selector");let Se=m,ci=g?typeof g=="string"?is(g)?new c([e(g,N,!1,null)],H,N):(Se=`${g} ${Se}`,H):xt(g)?g:new c(Array.isArray(g)?g:[g],H,N):H;return ci?ci.find(Se):bt}return Object.assign(d,Te,{load:r,_root:u,_options:o,fn:c.prototype,prototype:c.prototype}),d}}function dm(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var hm=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]),W="\uFFFD",l;(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.NUMBER_SIGN=35]="NUMBER_SIGN",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_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",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_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(l=l||(l={}));var dt={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function oa(e){return e>=55296&&e<=57343}function Ed(e){return e>=56320&&e<=57343}function wd(e,t){return(e-55296)*1024+9216+t}function ua(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ca(e){return e>=64976&&e<=65007||hm.has(e)}var w;(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"})(w=w||(w={}));var pm=65536,la=class{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=pm,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){let{line:r,col:i,offset:s}=this;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){let r=this.html.charCodeAt(this.pos+1);if(Ed(r))return this.pos++,this._addGap(),wd(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,l.EOF;return this._err(w.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,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){let r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,l.EOF;let i=this.html.charCodeAt(r);return i===l.CARRIAGE_RETURN?l.LINE_FEED:i}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,l.EOF;let t=this.html.charCodeAt(this.pos);return t===l.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,l.LINE_FEED):t===l.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,oa(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===l.LINE_FEED||t===l.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){ua(t)?this._err(w.controlCharacterInInputStream):ca(t)&&this._err(w.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var du={};_t(du,{TokenType:()=>B,getTokenAttr:()=>ds});var B;(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"})(B=B||(B={}));function ds(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}var fs={};_t(fs,{ATTRS:()=>Ut,DOCUMENT_MODE:()=>it,NS:()=>T,SPECIAL_ELEMENTS:()=>hu,TAG_ID:()=>a,TAG_NAMES:()=>b,getTagID:()=>ye,hasUnescapedText:()=>fu,isNumberedHeader:()=>hs});var T;(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/"})(T=T||(T={}));var Ut;(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"})(Ut=Ut||(Ut={}));var it;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(it=it||(it={}));var b;(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.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"})(b=b||(b={}));var a;(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.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(a=a||(a={}));var mm=new Map([[b.A,a.A],[b.ADDRESS,a.ADDRESS],[b.ANNOTATION_XML,a.ANNOTATION_XML],[b.APPLET,a.APPLET],[b.AREA,a.AREA],[b.ARTICLE,a.ARTICLE],[b.ASIDE,a.ASIDE],[b.B,a.B],[b.BASE,a.BASE],[b.BASEFONT,a.BASEFONT],[b.BGSOUND,a.BGSOUND],[b.BIG,a.BIG],[b.BLOCKQUOTE,a.BLOCKQUOTE],[b.BODY,a.BODY],[b.BR,a.BR],[b.BUTTON,a.BUTTON],[b.CAPTION,a.CAPTION],[b.CENTER,a.CENTER],[b.CODE,a.CODE],[b.COL,a.COL],[b.COLGROUP,a.COLGROUP],[b.DD,a.DD],[b.DESC,a.DESC],[b.DETAILS,a.DETAILS],[b.DIALOG,a.DIALOG],[b.DIR,a.DIR],[b.DIV,a.DIV],[b.DL,a.DL],[b.DT,a.DT],[b.EM,a.EM],[b.EMBED,a.EMBED],[b.FIELDSET,a.FIELDSET],[b.FIGCAPTION,a.FIGCAPTION],[b.FIGURE,a.FIGURE],[b.FONT,a.FONT],[b.FOOTER,a.FOOTER],[b.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[b.FORM,a.FORM],[b.FRAME,a.FRAME],[b.FRAMESET,a.FRAMESET],[b.H1,a.H1],[b.H2,a.H2],[b.H3,a.H3],[b.H4,a.H4],[b.H5,a.H5],[b.H6,a.H6],[b.HEAD,a.HEAD],[b.HEADER,a.HEADER],[b.HGROUP,a.HGROUP],[b.HR,a.HR],[b.HTML,a.HTML],[b.I,a.I],[b.IMG,a.IMG],[b.IMAGE,a.IMAGE],[b.INPUT,a.INPUT],[b.IFRAME,a.IFRAME],[b.KEYGEN,a.KEYGEN],[b.LABEL,a.LABEL],[b.LI,a.LI],[b.LINK,a.LINK],[b.LISTING,a.LISTING],[b.MAIN,a.MAIN],[b.MALIGNMARK,a.MALIGNMARK],[b.MARQUEE,a.MARQUEE],[b.MATH,a.MATH],[b.MENU,a.MENU],[b.META,a.META],[b.MGLYPH,a.MGLYPH],[b.MI,a.MI],[b.MO,a.MO],[b.MN,a.MN],[b.MS,a.MS],[b.MTEXT,a.MTEXT],[b.NAV,a.NAV],[b.NOBR,a.NOBR],[b.NOFRAMES,a.NOFRAMES],[b.NOEMBED,a.NOEMBED],[b.NOSCRIPT,a.NOSCRIPT],[b.OBJECT,a.OBJECT],[b.OL,a.OL],[b.OPTGROUP,a.OPTGROUP],[b.OPTION,a.OPTION],[b.P,a.P],[b.PARAM,a.PARAM],[b.PLAINTEXT,a.PLAINTEXT],[b.PRE,a.PRE],[b.RB,a.RB],[b.RP,a.RP],[b.RT,a.RT],[b.RTC,a.RTC],[b.RUBY,a.RUBY],[b.S,a.S],[b.SCRIPT,a.SCRIPT],[b.SECTION,a.SECTION],[b.SELECT,a.SELECT],[b.SOURCE,a.SOURCE],[b.SMALL,a.SMALL],[b.SPAN,a.SPAN],[b.STRIKE,a.STRIKE],[b.STRONG,a.STRONG],[b.STYLE,a.STYLE],[b.SUB,a.SUB],[b.SUMMARY,a.SUMMARY],[b.SUP,a.SUP],[b.TABLE,a.TABLE],[b.TBODY,a.TBODY],[b.TEMPLATE,a.TEMPLATE],[b.TEXTAREA,a.TEXTAREA],[b.TFOOT,a.TFOOT],[b.TD,a.TD],[b.TH,a.TH],[b.THEAD,a.THEAD],[b.TITLE,a.TITLE],[b.TR,a.TR],[b.TRACK,a.TRACK],[b.TT,a.TT],[b.U,a.U],[b.UL,a.UL],[b.SVG,a.SVG],[b.VAR,a.VAR],[b.WBR,a.WBR],[b.XMP,a.XMP]]);function ye(e){var t;return(t=mm.get(e))!==null&&t!==void 0?t:a.UNKNOWN}var C=a,hu={[T.HTML]:new Set([C.ADDRESS,C.APPLET,C.AREA,C.ARTICLE,C.ASIDE,C.BASE,C.BASEFONT,C.BGSOUND,C.BLOCKQUOTE,C.BODY,C.BR,C.BUTTON,C.CAPTION,C.CENTER,C.COL,C.COLGROUP,C.DD,C.DETAILS,C.DIR,C.DIV,C.DL,C.DT,C.EMBED,C.FIELDSET,C.FIGCAPTION,C.FIGURE,C.FOOTER,C.FORM,C.FRAME,C.FRAMESET,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HEADER,C.HGROUP,C.HR,C.HTML,C.IFRAME,C.IMG,C.INPUT,C.LI,C.LINK,C.LISTING,C.MAIN,C.MARQUEE,C.MENU,C.META,C.NAV,C.NOEMBED,C.NOFRAMES,C.NOSCRIPT,C.OBJECT,C.OL,C.P,C.PARAM,C.PLAINTEXT,C.PRE,C.SCRIPT,C.SECTION,C.SELECT,C.SOURCE,C.STYLE,C.SUMMARY,C.TABLE,C.TBODY,C.TD,C.TEMPLATE,C.TEXTAREA,C.TFOOT,C.TH,C.THEAD,C.TITLE,C.TR,C.TRACK,C.UL,C.WBR,C.XMP]),[T.MATHML]:new Set([C.MI,C.MO,C.MN,C.MS,C.MTEXT,C.ANNOTATION_XML]),[T.SVG]:new Set([C.TITLE,C.FOREIGN_OBJECT,C.DESC]),[T.XLINK]:new Set,[T.XML]:new Set,[T.XMLNS]:new Set};function hs(e){return e===C.H1||e===C.H2||e===C.H3||e===C.H4||e===C.H5||e===C.H6}var gm=new Set([b.STYLE,b.SCRIPT,b.XMP,b.IFRAME,b.NOEMBED,b.NOFRAMES,b.PLAINTEXT]);function fu(e,t){return gm.has(e)||t&&e===b.NOSCRIPT}var bm=new Map([[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]]),h;(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.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(h||(h={}));var nt={DATA:h.DATA,RCDATA:h.RCDATA,RAWTEXT:h.RAWTEXT,SCRIPT_DATA:h.SCRIPT_DATA,PLAINTEXT:h.PLAINTEXT,CDATA_SECTION:h.CDATA_SECTION};function ms(e){return e>=l.DIGIT_0&&e<=l.DIGIT_9}function ps(e){return e>=l.LATIN_CAPITAL_A&&e<=l.LATIN_CAPITAL_Z}function Em(e){return e>=l.LATIN_SMALL_A&&e<=l.LATIN_SMALL_Z}function Ce(e){return Em(e)||ps(e)}function pu(e){return Ce(e)||ms(e)}function xd(e){return e>=l.LATIN_CAPITAL_A&&e<=l.LATIN_CAPITAL_F}function vd(e){return e>=l.LATIN_SMALL_A&&e<=l.LATIN_SMALL_F}function wm(e){return ms(e)||xd(e)||vd(e)}function da(e){return e+32}function _d(e){return e===l.SPACE||e===l.LINE_FEED||e===l.TABULATION||e===l.FORM_FEED}function Tm(e){return e===l.EQUALS_SIGN||pu(e)}function Td(e){return _d(e)||e===l.SOLIDUS||e===l.GREATER_THAN_SIGN}var gs=class{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=h.DATA,this.returnState=h.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new la(r),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t))}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;let 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,r,i){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,r){this.state=t,this._callState(r)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:B.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:B.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:B.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:B.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;let i=this.currentToken;if(ds(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){let s=(t=(r=i.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(w.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(){let t=this.currentToken;this.prepareToken(t),t.tagID=ye(t.tagName),t.type===B.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(w.endTagWithAttributes),t.selfClosing&&this._err(w.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 B.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case B.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case B.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:B.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=r;return}this._createCharacterToken(t,r)}_emitCodePoint(t){let r=_d(t)?B.WHITESPACE_CHARACTER:t===l.NULL?B.NULL_CHARACTER:B.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(B.CHARACTER,t)}_matchNamedCharacterReference(t){let r=null,i=0,s=!1;for(let n=0,o=St[0];n>=0&&(n=Zi(St,o,n+1,t),!(n<0));t=this._consume()){i+=1,o=St[n];let u=o&lt.VALUE_LENGTH;if(u){let c=(u>>14)-1;if(t!==l.SEMICOLON&&this._isCharacterReferenceInAttribute()&&Tm(this.preprocessor.peek(1))?(r=[l.AMPERSAND],n+=c):(r=c===0?[St[n]&~lt.VALUE_LENGTH]:c===1?[St[++n]]:[St[++n],St[++n]],i=0,s=t!==l.SEMICOLON),c===0){this._consume();break}}}return this._unconsume(i),s&&!this.preprocessor.endOfChunkHit&&this._err(w.missingSemicolonAfterCharacterReference),this._unconsume(1),r}_isCharacterReferenceInAttribute(){return this.returnState===h.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===h.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===h.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case h.DATA:{this._stateData(t);break}case h.RCDATA:{this._stateRcdata(t);break}case h.RAWTEXT:{this._stateRawtext(t);break}case h.SCRIPT_DATA:{this._stateScriptData(t);break}case h.PLAINTEXT:{this._statePlaintext(t);break}case h.TAG_OPEN:{this._stateTagOpen(t);break}case h.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case h.TAG_NAME:{this._stateTagName(t);break}case h.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case h.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case h.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case h.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case h.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case h.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case h.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case h.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case h.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case h.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case h.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case h.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case h.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case h.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case h.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case h.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case h.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case h.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case h.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case h.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case h.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case h.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case h.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case h.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case h.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case h.BOGUS_COMMENT:{this._stateBogusComment(t);break}case h.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case h.COMMENT_START:{this._stateCommentStart(t);break}case h.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case h.COMMENT:{this._stateComment(t);break}case h.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case h.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case h.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case h.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case h.COMMENT_END:{this._stateCommentEnd(t);break}case h.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case h.DOCTYPE:{this._stateDoctype(t);break}case h.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case h.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case h.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case h.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case h.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case h.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case h.CDATA_SECTION:{this._stateCdataSection(t);break}case h.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case h.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case h.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case h.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case h.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case h.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case h.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case h.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case h.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case h.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=h.TAG_OPEN;break}case l.AMPERSAND:{this.returnState=h.DATA,this.state=h.CHARACTER_REFERENCE;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitCodePoint(t);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case l.AMPERSAND:{this.returnState=h.RCDATA,this.state=h.CHARACTER_REFERENCE;break}case l.LESS_THAN_SIGN:{this.state=h.RCDATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(W);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case l.LESS_THAN_SIGN:{this.state=h.RAWTEXT_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(W);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(W);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(W);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ce(t))this._createStartTagToken(),this.state=h.TAG_NAME,this._stateTagName(t);else switch(t){case l.EXCLAMATION_MARK:{this.state=h.MARKUP_DECLARATION_OPEN;break}case l.SOLIDUS:{this.state=h.END_TAG_OPEN;break}case l.QUESTION_MARK:{this._err(w.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=h.BOGUS_COMMENT,this._stateBogusComment(t);break}case l.EOF:{this._err(w.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(w.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=h.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ce(t))this._createEndTagToken(),this.state=h.TAG_NAME,this._stateTagName(t);else switch(t){case l.GREATER_THAN_SIGN:{this._err(w.missingEndTagName),this.state=h.DATA;break}case l.EOF:{this._err(w.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(w.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=h.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this.state=h.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.tagName+=W;break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(ps(t)?da(t):t)}}_stateRcdataLessThanSign(t){t===l.SOLIDUS?this.state=h.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=h.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ce(t)?(this.state=h.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=h.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=h.BEFORE_ATTRIBUTE_NAME,!1;case l.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=h.SELF_CLOSING_START_TAG,!1;case l.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=h.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===l.SOLIDUS?this.state=h.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=h.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ce(t)?(this.state=h.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=h.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case l.SOLIDUS:{this.state=h.SCRIPT_DATA_END_TAG_OPEN;break}case l.EXCLAMATION_MARK:{this.state=h.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=h.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ce(t)?(this.state=h.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===l.HYPHEN_MINUS?(this.state=h.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===l.HYPHEN_MINUS?(this.state=h.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=h.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(W);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_ESCAPED,this._emitChars(W);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.GREATER_THAN_SIGN:{this.state=h.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_ESCAPED,this._emitChars(W);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===l.SOLIDUS?this.state=h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ce(t)?(this._emitChars("<"),this.state=h.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ce(t)?(this.state=h.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(dt.SCRIPT,!1)&&Td(this.preprocessor.peek(dt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<dt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=h.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(w.unexpectedNullCharacter),this._emitChars(W);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(W);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.GREATER_THAN_SIGN:{this.state=h.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(W);break}case l.EOF:{this._err(w.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===l.SOLIDUS?(this.state=h.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(dt.SCRIPT,!1)&&Td(this.preprocessor.peek(dt.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<dt.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=h.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=h.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this.state=h.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._err(w.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=h.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=h.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this._leaveAttrName(),this.state=h.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._leaveAttrName(),this.state=h.BEFORE_ATTRIBUTE_VALUE;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:{this._err(w.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.name+=W;break}default:this.currentAttr.name+=String.fromCodePoint(ps(t)?da(t):t)}}_stateAfterAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:{this.state=h.SELF_CLOSING_START_TAG;break}case l.EQUALS_SIGN:{this.state=h.BEFORE_ATTRIBUTE_VALUE;break}case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=h.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{this.state=h.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this.state=h.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingAttributeValue),this.state=h.DATA,this.emitCurrentTagToken();break}default:this.state=h.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case l.QUOTATION_MARK:{this.state=h.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this.returnState=h.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=h.CHARACTER_REFERENCE;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.value+=W;break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case l.APOSTROPHE:{this.state=h.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this.returnState=h.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=h.CHARACTER_REFERENCE;break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.value+=W;break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=h.BEFORE_ATTRIBUTE_NAME;break}case l.AMPERSAND:{this.returnState=h.ATTRIBUTE_VALUE_UNQUOTED,this.state=h.CHARACTER_REFERENCE;break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=h.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(w.unexpectedNullCharacter),this.currentAttr.value+=W;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:case l.EQUALS_SIGN:case l.GRAVE_ACCENT:{this._err(w.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=h.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this._leaveAttrValue(),this.state=h.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=h.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this._err(w.missingWhitespaceBetweenAttributes),this.state=h.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case l.GREATER_THAN_SIGN:{let r=this.currentToken;r.selfClosing=!0,this.state=h.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(w.eofInTag),this._emitEOFToken();break}default:this._err(w.unexpectedSolidusInTag),this.state=h.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentComment(r);break}case l.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.data+=W;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(dt.DASH_DASH,!0)?(this._createCommentToken(dt.DASH_DASH.length+1),this.state=h.COMMENT_START):this._consumeSequenceIfMatch(dt.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(dt.DOCTYPE.length+1),this.state=h.DOCTYPE):this._consumeSequenceIfMatch(dt.CDATA_START,!0)?this.inForeignNode?this.state=h.CDATA_SECTION:(this._err(w.cdataInHtmlContent),this._createCommentToken(dt.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=h.BOGUS_COMMENT):this._ensureHibernation()||(this._err(w.incorrectlyOpenedComment),this._createCommentToken(2),this.state=h.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case l.HYPHEN_MINUS:{this.state=h.COMMENT_START_DASH;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptClosingOfEmptyComment),this.state=h.DATA;let r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=h.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=h.COMMENT_END;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptClosingOfEmptyComment),this.state=h.DATA,this.emitCurrentComment(r);break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=h.COMMENT,this._stateComment(t)}}_stateComment(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=h.COMMENT_END_DASH;break}case l.LESS_THAN_SIGN:{r.data+="<",this.state=h.COMMENT_LESS_THAN_SIGN;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.data+=W;break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){let r=this.currentToken;switch(t){case l.EXCLAMATION_MARK:{r.data+="!",this.state=h.COMMENT_LESS_THAN_SIGN_BANG;break}case l.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=h.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===l.HYPHEN_MINUS?this.state=h.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=h.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===l.HYPHEN_MINUS?this.state=h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=h.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==l.GREATER_THAN_SIGN&&t!==l.EOF&&this._err(w.nestedComment),this.state=h.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=h.COMMENT_END;break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=h.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentComment(r);break}case l.EXCLAMATION_MARK:{this.state=h.COMMENT_END_BANG;break}case l.HYPHEN_MINUS:{r.data+="-";break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=h.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){let r=this.currentToken;switch(t){case l.HYPHEN_MINUS:{r.data+="--!",this.state=h.COMMENT_END_DASH;break}case l.GREATER_THAN_SIGN:{this._err(w.incorrectlyClosedComment),this.state=h.DATA,this.emitCurrentComment(r);break}case l.EOF:{this._err(w.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=h.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BEFORE_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=h.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case l.EOF:{this._err(w.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingWhitespaceBeforeDoctypeName),this.state=h.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ps(t))this._createDoctypeToken(String.fromCharCode(da(t))),this.state=h.DOCTYPE_NAME;else switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.NULL:{this._err(w.unexpectedNullCharacter),this._createDoctypeToken(W),this.state=h.DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypeName),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),this._createDoctypeToken(null);let r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=h.DOCTYPE_NAME}}_stateDoctypeName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.AFTER_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.name+=W;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(ps(t)?da(t):t)}}_stateAfterDoctypeName(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(dt.PUBLIC,!1)?this.state=h.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(dt.SYSTEM,!1)?this.state=h.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(w.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(w.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(w.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{r.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.publicId="",this.state=h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.publicId+=W;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.publicId+=W;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case l.GREATER_THAN_SIGN:{this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.QUOTATION_MARK:{this._err(w.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(w.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.QUOTATION_MARK:{r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(w.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(w.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{r.systemId="",this.state=h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(w.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.DATA,this.emitCurrentDoctype(r);break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){let r=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.systemId+=W;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){let r=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(w.unexpectedNullCharacter),r.systemId+=W;break}case l.GREATER_THAN_SIGN:{this._err(w.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){let r=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.EOF:{this._err(w.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(w.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=h.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){let r=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=h.DATA;break}case l.NULL:{this._err(w.unexpectedNullCharacter);break}case l.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}default:}}_stateCdataSection(t){switch(t){case l.RIGHT_SQUARE_BRACKET:{this.state=h.CDATA_SECTION_BRACKET;break}case l.EOF:{this._err(w.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===l.RIGHT_SQUARE_BRACKET?this.state=h.CDATA_SECTION_END:(this._emitChars("]"),this.state=h.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case l.GREATER_THAN_SIGN:{this.state=h.DATA;break}case l.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=h.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(t){t===l.NUMBER_SIGN?this.state=h.NUMERIC_CHARACTER_REFERENCE:pu(t)?(this.state=h.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._reconsumeInState(this.returnState,t))}_stateNamedCharacterReference(t){let r=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(r){for(let i=0;i<r.length;i++)this._flushCodePointConsumedAsCharacterReference(r[i]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this.state=h.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(t){pu(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===l.SEMICOLON&&this._err(w.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}_stateNumericCharacterReference(t){this.charRefCode=0,t===l.LATIN_SMALL_X||t===l.LATIN_CAPITAL_X?this.state=h.HEXADEMICAL_CHARACTER_REFERENCE_START:ms(t)?(this.state=h.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(w.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(l.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}_stateHexademicalCharacterReferenceStart(t){wm(t)?(this.state=h.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t)):(this._err(w.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(l.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(t){xd(t)?this.charRefCode=this.charRefCode*16+t-55:vd(t)?this.charRefCode=this.charRefCode*16+t-87:ms(t)?this.charRefCode=this.charRefCode*16+t-48:t===l.SEMICOLON?this.state=h.NUMERIC_CHARACTER_REFERENCE_END:(this._err(w.missingSemicolonAfterCharacterReference),this.state=h.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateDecimalCharacterReference(t){ms(t)?this.charRefCode=this.charRefCode*10+t-48:t===l.SEMICOLON?this.state=h.NUMERIC_CHARACTER_REFERENCE_END:(this._err(w.missingSemicolonAfterCharacterReference),this.state=h.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}_stateNumericCharacterReferenceEnd(t){if(this.charRefCode===l.NULL)this._err(w.nullCharacterReference),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(w.characterReferenceOutsideUnicodeRange),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(oa(this.charRefCode))this._err(w.surrogateCharacterReference),this.charRefCode=l.REPLACEMENT_CHARACTER;else if(ca(this.charRefCode))this._err(w.noncharacterCharacterReference);else if(ua(this.charRefCode)||this.charRefCode===l.CARRIAGE_RETURN){this._err(w.controlCharacterReference);let r=bm.get(this.charRefCode);r!==void 0&&(this.charRefCode=r)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}};var yd=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),Ad=new Set([...yd,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),ha=new Map([[a.APPLET,T.HTML],[a.CAPTION,T.HTML],[a.HTML,T.HTML],[a.MARQUEE,T.HTML],[a.OBJECT,T.HTML],[a.TABLE,T.HTML],[a.TD,T.HTML],[a.TEMPLATE,T.HTML],[a.TH,T.HTML],[a.ANNOTATION_XML,T.MATHML],[a.MI,T.MATHML],[a.MN,T.MATHML],[a.MO,T.MATHML],[a.MS,T.MATHML],[a.MTEXT,T.MATHML],[a.DESC,T.SVG],[a.FOREIGN_OBJECT,T.SVG],[a.TITLE,T.SVG]]),xm=[a.H1,a.H2,a.H3,a.H4,a.H5,a.H6],vm=[a.TR,a.TEMPLATE,a.HTML],_m=[a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML],Am=[a.TABLE,a.TEMPLATE,a.HTML],ym=[a.TD,a.TH],fa=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,i){this.treeAdapter=r,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=a.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===T.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){let i=this._indexOf(t);this.items[i]=r,i===this.stackTop&&(this.current=r)}insertAfter(t,r,i){let s=this._indexOf(t)+1;this.items.splice(s,0,r),this.tagIDs.splice(s,0,i),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==T.HTML);this.shortenToLength(r<0?0:r)}shortenToLength(t){for(;this.stackTop>=t;){let r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){let r=this._indexOf(t);this.shortenToLength(r<0?0:r)}popUntilPopped(t,r){let i=this._indexOfTagNames(t,r);this.shortenToLength(i<0?0:i)}popUntilNumberedHeaderPopped(){this.popUntilPopped(xm,T.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ym,T.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let i=this.stackTop;i>=0;i--)if(t.includes(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===r)return i;return-1}clearBackTo(t,r){let i=this._indexOfTagNames(t,r);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(Am,T.HTML)}clearBackToTableBodyContext(){this.clearBackTo(_m,T.HTML)}clearBackToTableRowContext(){this.clearBackTo(vm,T.HTML)}remove(t){let r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===a.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===a.HTML}hasInScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r],s=this.treeAdapter.getNamespaceURI(this.items[r]);if(i===t&&s===T.HTML)return!0;if(ha.get(i)===s)return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],i=this.treeAdapter.getNamespaceURI(this.items[t]);if(hs(r)&&i===T.HTML)return!0;if(ha.get(r)===i)return!1}return!0}hasInListItemScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r],s=this.treeAdapter.getNamespaceURI(this.items[r]);if(i===t&&s===T.HTML)return!0;if((i===a.UL||i===a.OL)&&s===T.HTML||ha.get(i)===s)return!1}return!0}hasInButtonScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r],s=this.treeAdapter.getNamespaceURI(this.items[r]);if(i===t&&s===T.HTML)return!0;if(i===a.BUTTON&&s===T.HTML||ha.get(i)===s)return!1}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===T.HTML){if(i===t)return!0;if(i===a.TABLE||i===a.TEMPLATE||i===a.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===T.HTML){if(r===a.TBODY||r===a.THEAD||r===a.TFOOT)return!0;if(r===a.TABLE||r===a.HTML)return!1}}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--){let i=this.tagIDs[r];if(this.treeAdapter.getNamespaceURI(this.items[r])===T.HTML){if(i===t)return!0;if(i!==a.OPTION&&i!==a.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;yd.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Ad.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Ad.has(this.currentTagId);)this.pop()}};var Lt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Lt=Lt||(Lt={}));var Cd={type:Lt.Marker},pa=class{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){let i=[],s=r.length,n=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let u=0;u<this.entries.length;u++){let c=this.entries[u];if(c.type===Lt.Marker)break;let{element:d}=c;if(this.treeAdapter.getTagName(d)===n&&this.treeAdapter.getNamespaceURI(d)===o){let m=this.treeAdapter.getAttrList(d);m.length===s&&i.push({idx:u,attrs:m})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<3)return;let r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<3)return;let s=new Map(r.map(o=>[o.name,o.value])),n=0;for(let o=0;o<i.length;o++){let u=i[o];u.attrs.every(c=>s.get(c.name)===c.value)&&(n+=1,n>=3&&this.entries.splice(u.idx,1))}}insertMarker(){this.entries.unshift(Cd)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Lt.Element,element:t,token:r})}insertElementAfterBookmark(t,r){let i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Lt.Element,element:t,token:r})}removeEntry(t){let r=this.entries.indexOf(t);r>=0&&this.entries.splice(r,1)}clearToLastMarker(){let t=this.entries.indexOf(Cd);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){let r=this.entries.find(i=>i.type===Lt.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===Lt.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Lt.Element&&r.element===t)}};function Nd(e){return{nodeName:"#text",value:e,parentNode:null}}var jt={createDocument(){return{nodeName:"#document",mode:it.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){let i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){let s=e.childNodes.find(n=>n.nodeName==="#documentType");if(s)s.name=t,s.publicId=r,s.systemId=i;else{let n={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};jt.appendChild(e,n)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let r=e.childNodes[e.childNodes.length-1];if(jt.isTextNode(r)){r.value+=t;return}}jt.appendChild(e,Nd(t))},insertTextBefore(e,t,r){let i=e.childNodes[e.childNodes.indexOf(r)-1];i&&jt.isTextNode(i)?i.value+=t:jt.insertBefore(e,Nd(t),r)},adoptAttributes(e,t){let r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},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=S(S({},e.sourceCodeLocation),t)}};var Id="html",Cm="about:legacy-compat",Nm="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Rd=["+//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//"],Sm=[...Rd,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Im=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ld=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Rm=[...Ld,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Sd(e,t){return t.some(r=>e.startsWith(r))}function Dd(e){return e.name===Id&&e.publicId===null&&(e.systemId===null||e.systemId===Cm)}function Od(e){if(e.name!==Id)return it.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===Nm)return it.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),Im.has(r))return it.QUIRKS;let i=t===null?Sm:Rd;if(Sd(r,i))return it.QUIRKS;if(i=t===null?Ld:Rm,Sd(r,i))return it.LIMITED_QUIRKS}return it.NO_QUIRKS}var ba={};_t(ba,{SVG_TAG_NAMES_ADJUSTMENT_MAP:()=>Md,adjustTokenMathMLAttrs:()=>ma,adjustTokenSVGAttrs:()=>ga,adjustTokenSVGTagName:()=>gu,adjustTokenXMLAttrs:()=>bs,causesExit:()=>mu,isIntegrationPoint:()=>bu});var kd={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Dm="definitionurl",Om="definitionURL",km=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])),Mm=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:T.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:T.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:T.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:T.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:T.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:T.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:T.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:T.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:T.XML}],["xml:space",{prefix:"xml",name:"space",namespace:T.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:T.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:T.XMLNS}]]),Md=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])),Pm=new Set([a.B,a.BIG,a.BLOCKQUOTE,a.BODY,a.BR,a.CENTER,a.CODE,a.DD,a.DIV,a.DL,a.DT,a.EM,a.EMBED,a.H1,a.H2,a.H3,a.H4,a.H5,a.H6,a.HEAD,a.HR,a.I,a.IMG,a.LI,a.LISTING,a.MENU,a.META,a.NOBR,a.OL,a.P,a.PRE,a.RUBY,a.S,a.SMALL,a.SPAN,a.STRONG,a.STRIKE,a.SUB,a.SUP,a.TABLE,a.TT,a.U,a.UL,a.VAR]);function mu(e){let t=e.tagID;return t===a.FONT&&e.attrs.some(({name:i})=>i===Ut.COLOR||i===Ut.SIZE||i===Ut.FACE)||Pm.has(t)}function ma(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Dm){e.attrs[t].name=Om;break}}function ga(e){for(let t=0;t<e.attrs.length;t++){let r=km.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function bs(e){for(let t=0;t<e.attrs.length;t++){let r=Mm.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function gu(e){let t=Md.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ye(e.tagName))}function qm(e,t){return t===T.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function Hm(e,t,r){if(t===T.MATHML&&e===a.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===Ut.ENCODING){let s=r[i].value.toLowerCase();return s===kd.TEXT_HTML||s===kd.APPLICATION_XML}}return t===T.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function bu(e,t,r,i){return(!i||i===T.HTML)&&Hm(e,t,r)||(!i||i===T.MATHML)&&qm(e,t)}var Um="hidden",Bm=8,Fm=3,f;(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"})(f||(f={}));var $m={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ud=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),Pd={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:jt,onParseError:null},$r=class{constructor(t,r,i=null,s=null){this.fragmentContext=i,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=f.INITIAL,this.originalInsertionMode=f.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=S(S({},Pd),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r!=null?r:this.treeAdapter.createDocument(),this.tokenizer=new gs(this.options,this),this.activeFormattingElements=new pa(this.treeAdapter),this.fragmentContextID=i?ye(this.treeAdapter.getTagName(i)):a.UNKNOWN,this._setContextModes(i!=null?i:this.document,this.fragmentContextID),this.openElements=new fa(this.document,this.treeAdapter,this)}static parse(t,r){let i=new this(r);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,r){let i=S(S({},Pd),r);t!=null||(t=i.treeAdapter.createElement(b.TEMPLATE,T.HTML,[]));let s=i.treeAdapter.createElement("documentmock",T.HTML,[]),n=new this(i,s,t);return n.fragmentContextID===a.TEMPLATE&&n.tmplInsertionModeStack.unshift(f.IN_TEMPLATE),n._initTokenizerForFragmentParsing(),n._insertFakeRootElement(),n._resetInsertionMode(),n._findFormInFragmentContext(),n}getFragment(){let t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,i){var s;if(!this.onParseError)return;let n=(s=t.location)!==null&&s!==void 0?s:$m,o={code:r,startLine:n.startLine,startCol:n.startCol,startOffset:n.startOffset,endLine:i?n.startLine:n.endLine,endCol:i?n.startCol:n.endCol,endOffset:i?n.startOffset:n.endOffset};this.onParseError(o)}onItemPush(t,r,i){var s,n;(n=(s=this.treeAdapter).onItemPush)===null||n===void 0||n.call(s,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var i,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(i=this.treeAdapter).onItemPop)===null||s===void 0||s.call(i,t,this.openElements.current),r){let n,o;this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,o=this.fragmentContextID):{current:n,currentTagId:o}=this.openElements,this._setContextModes(n,o)}}_setContextModes(t,r){let i=t===this.document||this.treeAdapter.getNamespaceURI(t)===T.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,T.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=f.TEXT}switchToPlaintextParsing(){this.insertionMode=f.TEXT,this.originalInsertionMode=f.IN_BODY,this.tokenizer.state=nt.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)===b.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==T.HTML))switch(this.fragmentContextID){case a.TITLE:case a.TEXTAREA:{this.tokenizer.state=nt.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=nt.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=nt.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=nt.PLAINTEXT;break}default:}}_setDocumentType(t){let r=t.name||"",i=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,i,s),t.location){let o=this.treeAdapter.getChildNodes(this.document).find(u=>this.treeAdapter.isDocumentTypeNode(u));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){let i=r&&U(S({},r),{startTag:r});this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{let i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i,t)}}_appendElement(t,r){let i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,r){let i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,r){let i=this.treeAdapter.createElement(t,T.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){let r=this.treeAdapter.createElement(t.tagName,T.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,i),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){let t=this.treeAdapter.createElement(b.HTML,T.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,a.HTML)}_appendCommentNode(t,r){let i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let r,i;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(r,t.chars,i):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;let s=this.treeAdapter.getChildNodes(r),n=i?s.lastIndexOf(i):s.length,o=s[n-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:c,endCol:d,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:c,endCol:d,endOffset:m})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,r){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(r,i)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){let i=r.location,s=this.treeAdapter.getTagName(t),n=r.type===B.END_TAG&&s===r.tagName?{endTag:S({},i),endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,n)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,i;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,t.tagID===a.SVG&&this.treeAdapter.getTagName(r)===b.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===T.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===a.MGLYPH||t.tagID===a.MALIGNMARK)&&!this._isIntegrationPoint(i,r,T.HTML)}_processToken(t){switch(t.type){case B.CHARACTER:{this.onCharacter(t);break}case B.NULL_CHARACTER:{this.onNullCharacter(t);break}case B.COMMENT:{this.onComment(t);break}case B.DOCTYPE:{this.onDoctype(t);break}case B.START_TAG:{this._processStartTag(t);break}case B.END_TAG:{this.onEndTag(t);break}case B.EOF:{this.onEof(t);break}case B.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){let s=this.treeAdapter.getNamespaceURI(r),n=this.treeAdapter.getAttrList(r);return bu(t,s,n,i)}_reconstructActiveFormattingElements(){let t=this.activeFormattingElements.entries.length;if(t){let r=this.activeFormattingElements.entries.findIndex(s=>s.type===Lt.Marker||this.openElements.contains(s.element)),i=r<0?t-1:r-1;for(let s=i;s>=0;s--){let n=this.activeFormattingElements.entries[s];this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=f.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(a.P),this.openElements.popUntilTagNamePopped(a.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case a.TR:{this.insertionMode=f.IN_ROW;return}case a.TBODY:case a.THEAD:case a.TFOOT:{this.insertionMode=f.IN_TABLE_BODY;return}case a.CAPTION:{this.insertionMode=f.IN_CAPTION;return}case a.COLGROUP:{this.insertionMode=f.IN_COLUMN_GROUP;return}case a.TABLE:{this.insertionMode=f.IN_TABLE;return}case a.BODY:{this.insertionMode=f.IN_BODY;return}case a.FRAMESET:{this.insertionMode=f.IN_FRAMESET;return}case a.SELECT:{this._resetInsertionModeForSelect(t);return}case a.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case a.HTML:{this.insertionMode=this.headElement?f.AFTER_HEAD:f.BEFORE_HEAD;return}case a.TD:case a.TH:{if(t>0){this.insertionMode=f.IN_CELL;return}break}case a.HEAD:{if(t>0){this.insertionMode=f.IN_HEAD;return}break}}this.insertionMode=f.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){let i=this.openElements.tagIDs[r];if(i===a.TEMPLATE)break;if(i===a.TABLE){this.insertionMode=f.IN_SELECT_IN_TABLE;return}}this.insertionMode=f.IN_SELECT}_isElementCausesFosterParenting(t){return Ud.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){let r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===T.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case a.TABLE:{let i=this.treeAdapter.getParentNode(r);return i?{parent:i,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){let r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){let i=this.treeAdapter.getNamespaceURI(t);return hu[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Eb(this,t);return}switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{Ts(this,t);break}case f.BEFORE_HEAD:{xs(this,t);break}case f.IN_HEAD:{vs(this,t);break}case f.IN_HEAD_NO_SCRIPT:{_s(this,t);break}case f.AFTER_HEAD:{As(this,t);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:{Fd(this,t);break}case f.TEXT:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{Eu(this,t);break}case f.IN_TABLE_TEXT:{Wd(this,t);break}case f.IN_COLUMN_GROUP:{wa(this,t);break}case f.AFTER_BODY:{Ta(this,t);break}case f.AFTER_AFTER_BODY:{Ea(this,t);break}default:}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){bb(this,t);return}switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{Ts(this,t);break}case f.BEFORE_HEAD:{xs(this,t);break}case f.IN_HEAD:{vs(this,t);break}case f.IN_HEAD_NO_SCRIPT:{_s(this,t);break}case f.AFTER_HEAD:{As(this,t);break}case f.TEXT:{this._insertCharacters(t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{Eu(this,t);break}case f.IN_COLUMN_GROUP:{wa(this,t);break}case f.AFTER_BODY:{Ta(this,t);break}case f.AFTER_AFTER_BODY:{Ea(this,t);break}default:}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){wu(this,t);return}switch(this.insertionMode){case f.INITIAL:case f.BEFORE_HTML:case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_TEMPLATE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{wu(this,t);break}case f.IN_TABLE_TEXT:{ws(this,t);break}case f.AFTER_BODY:{Km(this,t);break}case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{zm(this,t);break}default:}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case f.INITIAL:{Qm(this,t);break}case f.BEFORE_HEAD:case f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:{this._err(t,w.misplacedDoctype);break}case f.IN_TABLE_TEXT:{ws(this,t);break}default:}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,w.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?wb(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{Jm(this,t);break}case f.BEFORE_HEAD:{tg(this,t);break}case f.IN_HEAD:{Bt(this,t);break}case f.IN_HEAD_NO_SCRIPT:{ig(this,t);break}case f.AFTER_HEAD:{ng(this,t);break}case f.IN_BODY:{at(this,t);break}case f.IN_TABLE:{Vr(this,t);break}case f.IN_TABLE_TEXT:{ws(this,t);break}case f.IN_CAPTION:{eb(this,t);break}case f.IN_COLUMN_GROUP:{_u(this,t);break}case f.IN_TABLE_BODY:{_a(this,t);break}case f.IN_ROW:{Aa(this,t);break}case f.IN_CELL:{sb(this,t);break}case f.IN_SELECT:{zd(this,t);break}case f.IN_SELECT_IN_TABLE:{ab(this,t);break}case f.IN_TEMPLATE:{ub(this,t);break}case f.AFTER_BODY:{lb(this,t);break}case f.IN_FRAMESET:{db(this,t);break}case f.AFTER_FRAMESET:{fb(this,t);break}case f.AFTER_AFTER_BODY:{mb(this,t);break}case f.AFTER_AFTER_FRAMESET:{gb(this,t);break}default:}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Tb(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{Zm(this,t);break}case f.BEFORE_HEAD:{eg(this,t);break}case f.IN_HEAD:{rg(this,t);break}case f.IN_HEAD_NO_SCRIPT:{sg(this,t);break}case f.AFTER_HEAD:{ag(this,t);break}case f.IN_BODY:{va(this,t);break}case f.TEXT:{Gg(this,t);break}case f.IN_TABLE:{ys(this,t);break}case f.IN_TABLE_TEXT:{ws(this,t);break}case f.IN_CAPTION:{rb(this,t);break}case f.IN_COLUMN_GROUP:{ib(this,t);break}case f.IN_TABLE_BODY:{Tu(this,t);break}case f.IN_ROW:{Kd(this,t);break}case f.IN_CELL:{nb(this,t);break}case f.IN_SELECT:{Qd(this,t);break}case f.IN_SELECT_IN_TABLE:{ob(this,t);break}case f.IN_TEMPLATE:{cb(this,t);break}case f.AFTER_BODY:{Zd(this,t);break}case f.IN_FRAMESET:{hb(this,t);break}case f.AFTER_FRAMESET:{pb(this,t);break}case f.AFTER_AFTER_BODY:{Ea(this,t);break}default:}}onEof(t){switch(this.insertionMode){case f.INITIAL:{Es(this,t);break}case f.BEFORE_HTML:{Ts(this,t);break}case f.BEFORE_HEAD:{xs(this,t);break}case f.IN_HEAD:{vs(this,t);break}case f.IN_HEAD_NO_SCRIPT:{_s(this,t);break}case f.AFTER_HEAD:{As(this,t);break}case f.IN_BODY:case f.IN_TABLE:case f.IN_CAPTION:case f.IN_COLUMN_GROUP:case f.IN_TABLE_BODY:case f.IN_ROW:case f.IN_CELL:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:{Gd(this,t);break}case f.TEXT:{Xg(this,t);break}case f.IN_TABLE_TEXT:{ws(this,t);break}case f.IN_TEMPLATE:{Jd(this,t);break}case f.AFTER_BODY:case f.IN_FRAMESET:case f.AFTER_FRAMESET:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{vu(this,t);break}default:}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===l.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 f.IN_HEAD:case f.IN_HEAD_NO_SCRIPT:case f.AFTER_HEAD:case f.TEXT:case f.IN_COLUMN_GROUP:case f.IN_SELECT:case f.IN_SELECT_IN_TABLE:case f.IN_FRAMESET:case f.AFTER_FRAMESET:{this._insertCharacters(t);break}case f.IN_BODY:case f.IN_CAPTION:case f.IN_CELL:case f.IN_TEMPLATE:case f.AFTER_BODY:case f.AFTER_AFTER_BODY:case f.AFTER_AFTER_FRAMESET:{Bd(this,t);break}case f.IN_TABLE:case f.IN_TABLE_BODY:case f.IN_ROW:{Eu(this,t);break}case f.IN_TABLE_TEXT:{Xd(this,t);break}default:}}};function Vm(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):Yd(e,t),r}function Ym(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){let s=e.openElements.items[i];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[i])&&(r=s)}return r||(e.openElements.shortenToLength(i<0?0:i),e.activeFormattingElements.removeEntry(t)),r}function Gm(e,t,r){let i=t,s=e.openElements.getCommonAncestor(t);for(let n=0,o=s;o!==r;n++,o=s){s=e.openElements.getCommonAncestor(o);let u=e.activeFormattingElements.getElementEntry(o),c=u&&n>=Fm;!u||c?(c&&e.activeFormattingElements.removeEntry(u),e.openElements.remove(o)):(o=Xm(e,u),i===t&&(e.activeFormattingElements.bookmark=u),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(o,i),i=o)}return i}function Xm(e,t){let r=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function Wm(e,t,r){let i=e.treeAdapter.getTagName(t),s=ye(i);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(r);else{let n=e.treeAdapter.getNamespaceURI(t);s===a.TEMPLATE&&n===T.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function jm(e,t,r){let i=e.treeAdapter.getNamespaceURI(r.element),{token:s}=r,n=e.treeAdapter.createElement(s.tagName,i,s.attrs);e._adoptNodes(t,n),e.treeAdapter.appendChild(t,n),e.activeFormattingElements.insertElementAfterBookmark(n,s),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,n,s.tagID)}function xu(e,t){for(let r=0;r<Bm;r++){let i=Vm(e,t);if(!i)break;let s=Ym(e,i);if(!s)break;e.activeFormattingElements.bookmark=i;let n=Gm(e,s,i.element),o=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(n),o&&Wm(e,o,n),jm(e,s,i)}}function wu(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Km(e,t){e._appendCommentNode(t,e.openElements.items[0])}function zm(e,t){e._appendCommentNode(t,e.document)}function vu(e,t){if(e.stopped=!0,t.location){let r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let i=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(i);if(s&&!s.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(n);o&&!o.endTag&&e._setEndLocation(n,t)}}}}function Qm(e,t){e._setDocumentType(t);let r=t.forceQuirks?it.QUIRKS:Od(t);Dd(t)||e._err(t,w.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=f.BEFORE_HTML}function Es(e,t){e._err(t,w.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,it.QUIRKS),e.insertionMode=f.BEFORE_HTML,e._processToken(t)}function Jm(e,t){t.tagID===a.HTML?(e._insertElement(t,T.HTML),e.insertionMode=f.BEFORE_HEAD):Ts(e,t)}function Zm(e,t){let r=t.tagID;(r===a.HTML||r===a.HEAD||r===a.BODY||r===a.BR)&&Ts(e,t)}function Ts(e,t){e._insertFakeRootElement(),e.insertionMode=f.BEFORE_HEAD,e._processToken(t)}function tg(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.HEAD:{e._insertElement(t,T.HTML),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD;break}default:xs(e,t)}}function eg(e,t){let r=t.tagID;r===a.HEAD||r===a.BODY||r===a.HTML||r===a.BR?xs(e,t):e._err(t,w.endTagWithoutMatchingOpenElement)}function xs(e,t){e._insertFakeElement(b.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=f.IN_HEAD,e._processToken(t)}function Bt(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,nt.RCDATA);break}case a.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,nt.RAWTEXT):(e._insertElement(t,T.HTML),e.insertionMode=f.IN_HEAD_NO_SCRIPT);break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,nt.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,nt.SCRIPT_DATA);break}case a.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=f.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(f.IN_TEMPLATE);break}case a.HEAD:{e._err(t,w.misplacedStartTagForHeadElement);break}default:vs(e,t)}}function rg(e,t){switch(t.tagID){case a.HEAD:{e.openElements.pop(),e.insertionMode=f.AFTER_HEAD;break}case a.BODY:case a.BR:case a.HTML:{vs(e,t);break}case a.TEMPLATE:{er(e,t);break}default:e._err(t,w.endTagWithoutMatchingOpenElement)}}function er(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE&&e._err(t,w.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,w.endTagWithoutMatchingOpenElement)}function vs(e,t){e.openElements.pop(),e.insertionMode=f.AFTER_HEAD,e._processToken(t)}function ig(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{Bt(e,t);break}case a.NOSCRIPT:{e._err(t,w.nestedNoscriptInHead);break}default:_s(e,t)}}function sg(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=f.IN_HEAD;break}case a.BR:{_s(e,t);break}default:e._err(t,w.endTagWithoutMatchingOpenElement)}}function _s(e,t){let r=t.type===B.EOF?w.openElementsLeftAfterEof:w.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=f.IN_HEAD,e._processToken(t)}function ng(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.BODY:{e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=f.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,T.HTML),e.insertionMode=f.IN_FRAMESET;break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{e._err(t,w.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),Bt(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,w.misplacedStartTagForHeadElement);break}default:As(e,t)}}function ag(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{As(e,t);break}case a.TEMPLATE:{er(e,t);break}default:e._err(t,w.endTagWithoutMatchingOpenElement)}}function As(e,t){e._insertFakeElement(b.BODY,a.BODY),e.insertionMode=f.IN_BODY,xa(e,t)}function xa(e,t){switch(t.type){case B.CHARACTER:{Fd(e,t);break}case B.WHITESPACE_CHARACTER:{Bd(e,t);break}case B.COMMENT:{wu(e,t);break}case B.START_TAG:{at(e,t);break}case B.END_TAG:{va(e,t);break}case B.EOF:{Gd(e,t);break}default:}}function Bd(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Fd(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function og(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function ug(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function cg(e,t){let r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_FRAMESET)}function lg(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function dg(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),hs(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,T.HTML)}function hg(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function fg(e,t){let r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),r||(e.formElement=e.openElements.current))}function pg(e,t){e.framesetOk=!1;let r=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){let s=e.openElements.tagIDs[i];if(r===a.LI&&s===a.LI||(r===a.DD||r===a.DT)&&(s===a.DD||s===a.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==a.ADDRESS&&s!==a.DIV&&s!==a.P&&e._isSpecialElement(e.openElements.items[i],s))break}e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function mg(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.tokenizer.state=nt.PLAINTEXT}function gg(e,t){e.openElements.hasInScope(a.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1}function bg(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(b.A);r&&(xu(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Eg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function wg(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR)&&(xu(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Tg(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function xg(e,t){e.treeAdapter.getDocumentMode(e.document)!==it.QUIRKS&&e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=f.IN_TABLE}function $d(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Vd(e){let t=ds(e,Ut.TYPE);return t!=null&&t.toLowerCase()===Um}function vg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),Vd(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function _g(e,t){e._appendElement(t,T.HTML),t.ackSelfClosing=!0}function Ag(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yg(e,t){t.tagName=b.IMG,t.tagID=a.IMG,$d(e,t)}function Cg(e,t){e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.tokenizer.state=nt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=f.TEXT}function Ng(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function Sg(e,t){e.framesetOk=!1,e._switchToTextParsing(t,nt.RAWTEXT)}function qd(e,t){e._switchToTextParsing(t,nt.RAWTEXT)}function Ig(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===f.IN_TABLE||e.insertionMode===f.IN_CAPTION||e.insertionMode===f.IN_TABLE_BODY||e.insertionMode===f.IN_ROW||e.insertionMode===f.IN_CELL?f.IN_SELECT_IN_TABLE:f.IN_SELECT}function Rg(e,t){e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function Lg(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,T.HTML)}function Dg(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(a.RTC),e._insertElement(t,T.HTML)}function Og(e,t){e._reconstructActiveFormattingElements(),ma(t),bs(t),t.selfClosing?e._appendElement(t,T.MATHML):e._insertElement(t,T.MATHML),t.ackSelfClosing=!0}function kg(e,t){e._reconstructActiveFormattingElements(),ga(t),bs(t),t.selfClosing?e._appendElement(t,T.SVG):e._insertElement(t,T.SVG),t.ackSelfClosing=!0}function Hd(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function at(e,t){switch(t.tagID){case a.I:case a.S:case a.B:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.SMALL:case a.STRIKE:case a.STRONG:{Eg(e,t);break}case a.A:{bg(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{dg(e,t);break}case a.P:case a.DL:case a.OL:case a.UL:case a.DIV:case a.DIR:case a.NAV:case a.MAIN:case a.MENU:case a.ASIDE:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.DETAILS:case a.ADDRESS:case a.ARTICLE:case a.SECTION:case a.SUMMARY:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{lg(e,t);break}case a.LI:case a.DD:case a.DT:{pg(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{$d(e,t);break}case a.HR:{Ag(e,t);break}case a.RB:case a.RTC:{Lg(e,t);break}case a.RT:case a.RP:{Dg(e,t);break}case a.PRE:case a.LISTING:{hg(e,t);break}case a.XMP:{Ng(e,t);break}case a.SVG:{kg(e,t);break}case a.HTML:{og(e,t);break}case a.BASE:case a.LINK:case a.META:case a.STYLE:case a.TITLE:case a.SCRIPT:case a.BGSOUND:case a.BASEFONT:case a.TEMPLATE:{Bt(e,t);break}case a.BODY:{ug(e,t);break}case a.FORM:{fg(e,t);break}case a.NOBR:{wg(e,t);break}case a.MATH:{Og(e,t);break}case a.TABLE:{xg(e,t);break}case a.INPUT:{vg(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{_g(e,t);break}case a.IMAGE:{yg(e,t);break}case a.BUTTON:{gg(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Tg(e,t);break}case a.IFRAME:{Sg(e,t);break}case a.SELECT:{Ig(e,t);break}case a.OPTION:case a.OPTGROUP:{Rg(e,t);break}case a.NOEMBED:{qd(e,t);break}case a.FRAMESET:{cg(e,t);break}case a.TEXTAREA:{Cg(e,t);break}case a.NOSCRIPT:{e.options.scriptingEnabled?qd(e,t):Hd(e,t);break}case a.PLAINTEXT:{mg(e,t);break}case a.COL:case a.TH:case a.TD:case a.TR:case a.HEAD:case a.FRAME:case a.TBODY:case a.TFOOT:case a.THEAD:case a.CAPTION:case a.COLGROUP:break;default:Hd(e,t)}}function Mg(e,t){if(e.openElements.hasInScope(a.BODY)&&(e.insertionMode=f.AFTER_BODY,e.options.sourceCodeLocationInfo)){let r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function Pg(e,t){e.openElements.hasInScope(a.BODY)&&(e.insertionMode=f.AFTER_BODY,Zd(e,t))}function qg(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function Hg(e){let t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(a.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(a.FORM):r&&e.openElements.remove(r))}function Ug(e){e.openElements.hasInButtonScope(a.P)||e._insertFakeElement(b.P,a.P),e._closePElement()}function Bg(e){e.openElements.hasInListItemScope(a.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI))}function Fg(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function $g(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Vg(e,t){let r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function Yg(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(b.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function Yd(e,t){let r=t.tagName,i=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){let n=e.openElements.items[s],o=e.openElements.tagIDs[s];if(i===o&&(i!==a.UNKNOWN||e.treeAdapter.getTagName(n)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(n,o))break}}function va(e,t){switch(t.tagID){case a.A:case a.B:case a.I:case a.S:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.NOBR:case a.SMALL:case a.STRIKE:case a.STRONG:{xu(e,t);break}case a.P:{Ug(e);break}case a.DL:case a.UL:case a.OL:case a.DIR:case a.DIV:case a.NAV:case a.PRE:case a.MAIN:case a.MENU:case a.ASIDE:case a.BUTTON:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.ADDRESS:case a.ARTICLE:case a.DETAILS:case a.SECTION:case a.SUMMARY:case a.LISTING:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{qg(e,t);break}case a.LI:{Bg(e);break}case a.DD:case a.DT:{Fg(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{$g(e);break}case a.BR:{Yg(e);break}case a.BODY:{Mg(e,t);break}case a.HTML:{Pg(e,t);break}case a.FORM:{Hg(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Vg(e,t);break}case a.TEMPLATE:{er(e,t);break}default:Yd(e,t)}}function Gd(e,t){e.tmplInsertionModeStack.length>0?Jd(e,t):vu(e,t)}function Gg(e,t){var r;t.tagID===a.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Xg(e,t){e._err(t,w.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Eu(e,t){if(Ud.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=f.IN_TABLE_TEXT,t.type){case B.CHARACTER:{Wd(e,t);break}case B.WHITESPACE_CHARACTER:{Xd(e,t);break}}else Cs(e,t)}function Wg(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_CAPTION}function jg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_COLUMN_GROUP}function Kg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(b.COLGROUP,a.COLGROUP),e.insertionMode=f.IN_COLUMN_GROUP,_u(e,t)}function zg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_TABLE_BODY}function Qg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(b.TBODY,a.TBODY),e.insertionMode=f.IN_TABLE_BODY,_a(e,t)}function Jg(e,t){e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Zg(e,t){Vd(t)?e._appendElement(t,T.HTML):Cs(e,t),t.ackSelfClosing=!0}function tb(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,T.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Vr(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{Qg(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{Bt(e,t);break}case a.COL:{Kg(e,t);break}case a.FORM:{tb(e,t);break}case a.TABLE:{Jg(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{zg(e,t);break}case a.INPUT:{Zg(e,t);break}case a.CAPTION:{Wg(e,t);break}case a.COLGROUP:{jg(e,t);break}default:Cs(e,t)}}function ys(e,t){switch(t.tagID){case a.TABLE:{e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode());break}case a.TEMPLATE:{er(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:Cs(e,t)}}function Cs(e,t){let r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,xa(e,t),e.fosterParentingEnabled=r}function Xd(e,t){e.pendingCharacterTokens.push(t)}function Wd(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ws(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)Cs(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var jd=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function eb(e,t){let r=t.tagID;jd.has(r)?e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,Vr(e,t)):at(e,t)}function rb(e,t){let r=t.tagID;switch(r){case a.CAPTION:case a.TABLE:{e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_TABLE,r===a.TABLE&&ys(e,t));break}case a.BODY:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:va(e,t)}}function _u(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.COL:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{Bt(e,t);break}default:wa(e,t)}}function ib(e,t){switch(t.tagID){case a.COLGROUP:{e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=f.IN_TABLE);break}case a.TEMPLATE:{er(e,t);break}case a.COL:break;default:wa(e,t)}}function wa(e,t){e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=f.IN_TABLE,e._processToken(t))}function _a(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(b.TR,a.TR),e.insertionMode=f.IN_ROW,Aa(e,t);break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,Vr(e,t));break}default:Vr(e,t)}}function Tu(e,t){let r=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE);break}case a.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE,ys(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:case a.TR:break;default:ys(e,t)}}function Aa(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,T.HTML),e.insertionMode=f.IN_CELL,e.activeFormattingElements.insertMarker();break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,_a(e,t));break}default:Vr(e,t)}}function Kd(e,t){switch(t.tagID){case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY);break}case a.TABLE:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,Tu(e,t));break}case a.TBODY:case a.TFOOT:case a.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(a.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=f.IN_TABLE_BODY,Tu(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:break;default:ys(e,t)}}function sb(e,t){let r=t.tagID;jd.has(r)?(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))&&(e._closeTableCell(),Aa(e,t)):at(e,t)}function nb(e,t){let r=t.tagID;switch(r){case a.TD:case a.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=f.IN_ROW);break}case a.TABLE:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),Kd(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:va(e,t)}}function zd(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case a.OPTGROUP:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case a.INPUT:case a.KEYGEN:case a.TEXTAREA:case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),t.tagID!==a.SELECT&&e._processStartTag(t));break}case a.SCRIPT:case a.TEMPLATE:{Bt(e,t);break}default:}}function Qd(e,t){switch(t.tagID){case a.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===a.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===a.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop();break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop();break}case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode());break}case a.TEMPLATE:{er(e,t);break}default:}}function ab(e,t){let r=t.tagID;r===a.CAPTION||r===a.TABLE||r===a.TBODY||r===a.TFOOT||r===a.THEAD||r===a.TR||r===a.TD||r===a.TH?(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t)):zd(e,t)}function ob(e,t){let r=t.tagID;r===a.CAPTION||r===a.TABLE||r===a.TBODY||r===a.TFOOT||r===a.THEAD||r===a.TR||r===a.TD||r===a.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Qd(e,t)}function ub(e,t){switch(t.tagID){case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{Bt(e,t);break}case a.CAPTION:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.tmplInsertionModeStack[0]=f.IN_TABLE,e.insertionMode=f.IN_TABLE,Vr(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=f.IN_COLUMN_GROUP,e.insertionMode=f.IN_COLUMN_GROUP,_u(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=f.IN_TABLE_BODY,e.insertionMode=f.IN_TABLE_BODY,_a(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=f.IN_ROW,e.insertionMode=f.IN_ROW,Aa(e,t);break}default:e.tmplInsertionModeStack[0]=f.IN_BODY,e.insertionMode=f.IN_BODY,at(e,t)}}function cb(e,t){t.tagID===a.TEMPLATE&&er(e,t)}function Jd(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):vu(e,t)}function lb(e,t){t.tagID===a.HTML?at(e,t):Ta(e,t)}function Zd(e,t){var r;if(t.tagID===a.HTML){if(e.fragmentContext||(e.insertionMode=f.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===a.HTML){e._setEndLocation(e.openElements.items[0],t);let i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else Ta(e,t)}function Ta(e,t){e.insertionMode=f.IN_BODY,xa(e,t)}function db(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.FRAMESET:{e._insertElement(t,T.HTML);break}case a.FRAME:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{Bt(e,t);break}default:}}function hb(e,t){t.tagID===a.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==a.FRAMESET&&(e.insertionMode=f.AFTER_FRAMESET))}function fb(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.NOFRAMES:{Bt(e,t);break}default:}}function pb(e,t){t.tagID===a.HTML&&(e.insertionMode=f.AFTER_AFTER_FRAMESET)}function mb(e,t){t.tagID===a.HTML?at(e,t):Ea(e,t)}function Ea(e,t){e.insertionMode=f.IN_BODY,xa(e,t)}function gb(e,t){switch(t.tagID){case a.HTML:{at(e,t);break}case a.NOFRAMES:{Bt(e,t);break}default:}}function bb(e,t){t.chars=W,e._insertCharacters(t)}function Eb(e,t){e._insertCharacters(t),e.framesetOk=!1}function t0(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==T.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function wb(e,t){if(mu(t))t0(e),e._startTagOutsideForeignContent(t);else{let r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===T.MATHML?ma(t):i===T.SVG&&(gu(t),ga(t)),bs(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function Tb(e,t){if(t.tagID===a.P||t.tagID===a.BR){t0(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){let i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===T.HTML){e._endTagOutsideForeignContent(t);break}let s=e.treeAdapter.getTagName(i);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(r);break}}}var xb=new Set([b.AREA,b.BASE,b.BASEFONT,b.BGSOUND,b.BR,b.COL,b.EMBED,b.FRAME,b.HR,b.IMG,b.INPUT,b.KEYGEN,b.LINK,b.META,b.PARAM,b.SOURCE,b.TRACK,b.WBR]);function vb(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===T.HTML&&xb.has(t.treeAdapter.getTagName(e))}var _b={treeAdapter:jt,scriptingEnabled:!0};function Au(e,t){let r=S(S({},_b),t);return e0(e,r)}function Ab(e,t){let r="",i=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===b.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===T.HTML?t.treeAdapter.getTemplateContent(e):e,s=t.treeAdapter.getChildNodes(i);if(s)for(let n of s)r+=e0(n,t);return r}function e0(e,t){return t.treeAdapter.isElementNode(e)?yb(e,t):t.treeAdapter.isTextNode(e)?Nb(e,t):t.treeAdapter.isCommentNode(e)?Sb(e,t):t.treeAdapter.isDocumentTypeNode(e)?Ib(e,t):""}function yb(e,t){let r=t.treeAdapter.getTagName(e);return`<${r}${Cb(e,t)}>${vb(e,t)?"":`${Ab(e,t)}</${r}>`}`}function Cb(e,{treeAdapter:t}){let r="";for(let i of t.getAttrList(e)){if(r+=" ",!i.namespace)r+=i.name;else switch(i.namespace){case T.XML:{r+=`xml:${i.name}`;break}case T.XMLNS:{i.name!=="xmlns"&&(r+="xmlns:"),r+=i.name;break}case T.XLINK:{r+=`xlink:${i.name}`;break}default:r+=`${i.prefix}:${i.name}`}r+=`="${Or(i.value)}"`}return r}function Nb(e,t){let{treeAdapter:r}=t,i=r.getTextNodeContent(e),s=r.getParentNode(e),n=s&&r.isElementNode(s)&&r.getTagName(s);return n&&r.getNamespaceURI(s)===T.HTML&&fu(n,t.scriptingEnabled)?i:kr(i)}function Sb(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function Ib(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function r0(e,t){return $r.parse(e,t)}function i0(e,t,r){typeof e=="string"&&(r=t,t=e,e=null);let i=$r.getFragmentParser(e,r);return i.tokenizer.write(t,!0),i.getFragment()}function s0(e){return new Wt(e)}function n0(e){let t=e.includes('"')?"'":'"';return t+e+t}function Rb(e,t,r){let i="!DOCTYPE ";return e&&(i+=e),t?i+=` PUBLIC ${n0(t)}`:r&&(i+=" SYSTEM"),r&&(i+=` ${n0(r)}`),i}var rr={isCommentNode:ze,isElementNode:D,isTextNode:ft,createDocument(){let e=new Tt([]);return e["x-mode"]=fs.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new Tt([])},createElement(e,t,r){let i=Object.create(null),s=Object.create(null),n=Object.create(null);for(let u=0;u<r.length;u++){let c=r[u].name;i[c]=r[u].value,s[c]=r[u].namespace,n[c]=r[u].prefix}let o=new Ke(e,i,[]);return o.namespace=t,o["x-attribsNamespace"]=s,o["x-attribsPrefix"]=n,o},createCommentNode(e){return new We(e)},appendChild(e,t){let r=e.children[e.children.length-1];r&&(r.next=t,t.prev=r),e.children.push(t),t.parent=e},insertBefore(e,t,r){let i=e.children.indexOf(r),{prev:s}=r;s&&(s.next=t,t.prev=s),r.prev=t,t.next=r,e.children.splice(i,0,t),t.parent=e},setTemplateContent(e,t){rr.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,r,i){let s=Rb(t,r,i),n=e.children.find(o=>Pn(o)&&o.name==="!doctype");n?n.data=s!=null?s:null:(n=new je("!doctype",s),rr.appendChild(e,n)),n["x-name"]=t!=null?t:void 0,n["x-publicId"]=r!=null?r:void 0,n["x-systemId"]=i!=null?i:void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:r,next:i}=e;e.prev=null,e.next=null,r&&(r.next=i),i&&(i.prev=r),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let r=e.children[e.children.length-1];r&&ft(r)?r.data+=t:rr.appendChild(e,s0(t))},insertTextBefore(e,t,r){let i=e.children[e.children.indexOf(r)-1];i&&ft(i)?i.data+=t:rr.insertBefore(e,s0(t),r)},adoptAttributes(e,t){for(let r=0;r<t.length;r++){let i=t[r].name;typeof e.attribs[i]=="undefined"&&(e.attribs[i]=t[r].value,e["x-attribsNamespace"][i]=t[r].namespace,e["x-attribsPrefix"][i]=t[r].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Pn(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation=S(S({},e.sourceCodeLocation),t)}};function a0(e,t,r,i){let s={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:rr,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return r?r0(e,s):i0(i,e,s)}var Lb={treeAdapter:rr};function o0(e){let t="length"in e?e:[e];for(let i=0;i<t.length;i+=1){let s=t[i];Ht(s)&&Array.prototype.splice.call(t,i,1,...s.children)}let r="";for(let i=0;i<t.length;i+=1){let s=t[i];r+=Au(s,Lb)}return r}var I;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(I||(I={}));var A;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(A||(A={}));function ae(e){return e===I.Space||e===I.NewLine||e===I.Tab||e===I.FormFeed||e===I.CarriageReturn}function ya(e){return e===I.Slash||e===I.Gt||ae(e)}function u0(e){return e>=I.Zero&&e<=I.Nine}function Db(e){return e>=I.LowerA&&e<=I.LowerZ||e>=I.UpperA&&e<=I.UpperZ}function Ob(e){return e>=I.UpperA&&e<=I.UpperF||e>=I.LowerA&&e<=I.LowerF}var Ft;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Ft||(Ft={}));var gt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},Yr=class{constructor({xmlMode:t=!1,decodeEntities:r=!0},i){this.cbs=i,this.state=A.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=A.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=t,this.decodeEntities=r,this.entityTrie=t?qn:St}reset(){this.state=A.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=A.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(t){t===I.Lt||!this.decodeEntities&&this.fastForwardTo(I.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=A.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===I.Amp&&(this.state=A.BeforeEntity)}stateSpecialStartSequence(t){let r=this.sequenceIndex===this.currentSequence.length;if(!(r?ya(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=A.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===I.Gt||ae(t)){let r=this.index-this.currentSequence.length;if(this.sectionStart<r){let i=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=i}this.isSpecial=!1,this.sectionStart=r+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===gt.TitleEnd?this.decodeEntities&&t===I.Amp&&(this.state=A.BeforeEntity):this.fastForwardTo(I.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===I.Lt)}stateCDATASequence(t){t===gt.Cdata[this.sequenceIndex]?++this.sequenceIndex===gt.Cdata.length&&(this.state=A.InCommentLike,this.currentSequence=gt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=A.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===gt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=A.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!ya(t):Db(t)}startSpecial(t,r){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=r,this.state=A.SpecialStartSequence}stateBeforeTagName(t){if(t===I.ExclamationMark)this.state=A.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===I.Questionmark)this.state=A.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){let r=t|32;this.sectionStart=this.index,!this.xmlMode&&r===gt.TitleEnd[2]?this.startSpecial(gt.TitleEnd,3):this.state=!this.xmlMode&&r===gt.ScriptEnd[2]?A.BeforeSpecialS:A.InTagName}else t===I.Slash?this.state=A.BeforeClosingTagName:(this.state=A.Text,this.stateText(t))}stateInTagName(t){ya(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){ae(t)||(t===I.Gt?this.state=A.Text:(this.state=this.isTagStartChar(t)?A.InClosingTagName:A.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===I.Gt||ae(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=A.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===I.Gt||this.fastForwardTo(I.Gt))&&(this.state=A.Text,this.baseState=A.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===I.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=A.InSpecialTag,this.sequenceIndex=0):this.state=A.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===I.Slash?this.state=A.InSelfClosingTag:ae(t)||(this.state=A.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===I.Gt?(this.cbs.onselfclosingtag(this.index),this.state=A.Text,this.baseState=A.Text,this.sectionStart=this.index+1,this.isSpecial=!1):ae(t)||(this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===I.Eq||ya(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=A.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===I.Eq?this.state=A.BeforeAttributeValue:t===I.Slash||t===I.Gt?(this.cbs.onattribend(Ft.NoValue,this.index),this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t)):ae(t)||(this.cbs.onattribend(Ft.NoValue,this.index),this.state=A.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===I.DoubleQuote?(this.state=A.InAttributeValueDq,this.sectionStart=this.index+1):t===I.SingleQuote?(this.state=A.InAttributeValueSq,this.sectionStart=this.index+1):ae(t)||(this.sectionStart=this.index,this.state=A.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,r){t===r||!this.decodeEntities&&this.fastForwardTo(r)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r===I.DoubleQuote?Ft.Double:Ft.Single,this.index),this.state=A.BeforeAttributeName):this.decodeEntities&&t===I.Amp&&(this.baseState=this.state,this.state=A.BeforeEntity)}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,I.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,I.SingleQuote)}stateInAttributeValueNoQuotes(t){ae(t)||t===I.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Ft.Unquoted,this.index),this.state=A.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===I.Amp&&(this.baseState=this.state,this.state=A.BeforeEntity)}stateBeforeDeclaration(t){t===I.OpeningSquareBracket?(this.state=A.CDATASequence,this.sequenceIndex=0):this.state=t===I.Dash?A.BeforeComment:A.InDeclaration}stateInDeclaration(t){(t===I.Gt||this.fastForwardTo(I.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=A.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===I.Gt||this.fastForwardTo(I.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=A.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===I.Dash?(this.state=A.InCommentLike,this.currentSequence=gt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=A.InDeclaration}stateInSpecialComment(t){(t===I.Gt||this.fastForwardTo(I.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=A.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){let r=t|32;r===gt.ScriptEnd[3]?this.startSpecial(gt.ScriptEnd,4):r===gt.StyleEnd[3]?this.startSpecial(gt.StyleEnd,4):(this.state=A.InTagName,this.stateInTagName(t))}stateBeforeEntity(t){this.entityExcess=1,this.entityResult=0,t===I.Number?this.state=A.BeforeNumericEntity:t===I.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=A.InNamedEntity,this.stateInNamedEntity(t))}stateInNamedEntity(t){if(this.entityExcess+=1,this.trieIndex=Zi(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let r=this.trieCurrent&lt.VALUE_LENGTH;if(r){let i=(r>>14)-1;if(!this.allowLegacyEntity()&&t!==I.Semi)this.trieIndex+=i;else{let s=this.index-this.entityExcess+1;s>this.sectionStart&&this.emitPartial(this.sectionStart,s),this.entityResult=this.trieIndex,this.trieIndex+=i,this.entityExcess=0,this.sectionStart=this.index+1,i===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&lt.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~lt.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(t){(t|32)===I.LowerX?(this.entityExcess++,this.state=A.InHexEntity):(this.state=A.InNumericEntity,this.stateInNumericEntity(t))}emitNumericEntity(t){let r=this.index-this.entityExcess-1;r+2+ +(this.state===A.InHexEntity)!==this.index&&(r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.sectionStart=this.index+Number(t),this.emitCodePoint(Ji(this.entityResult))),this.state=this.baseState}stateInNumericEntity(t){t===I.Semi?this.emitNumericEntity(!0):u0(t)?(this.entityResult=this.entityResult*10+(t-I.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(t){t===I.Semi?this.emitNumericEntity(!0):u0(t)?(this.entityResult=this.entityResult*16+(t-I.Zero),this.entityExcess++):Ob(t)?(this.entityResult=this.entityResult*16+((t|32)-I.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===A.Text||this.baseState===A.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===A.Text||this.state===A.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===A.InAttributeValueDq||this.state===A.InAttributeValueSq||this.state===A.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case A.Text:{this.stateText(t);break}case A.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case A.InSpecialTag:{this.stateInSpecialTag(t);break}case A.CDATASequence:{this.stateCDATASequence(t);break}case A.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case A.InAttributeName:{this.stateInAttributeName(t);break}case A.InCommentLike:{this.stateInCommentLike(t);break}case A.InSpecialComment:{this.stateInSpecialComment(t);break}case A.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case A.InTagName:{this.stateInTagName(t);break}case A.InClosingTagName:{this.stateInClosingTagName(t);break}case A.BeforeTagName:{this.stateBeforeTagName(t);break}case A.AfterAttributeName:{this.stateAfterAttributeName(t);break}case A.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case A.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case A.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case A.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case A.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case A.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case A.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case A.InDeclaration:{this.stateInDeclaration(t);break}case A.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case A.BeforeComment:{this.stateBeforeComment(t);break}case A.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case A.InNamedEntity:{this.stateInNamedEntity(t);break}case A.BeforeEntity:{this.stateBeforeEntity(t);break}case A.InHexEntity:{this.stateInHexEntity(t);break}case A.InNumericEntity:{this.stateInNumericEntity(t);break}default:this.stateBeforeNumericEntity(t)}this.index++}this.cleanup()}finish(){this.state===A.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let t=this.buffer.length+this.offset;this.state===A.InCommentLike?this.currentSequence===gt.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===A.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===A.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===A.InTagName||this.state===A.BeforeAttributeName||this.state===A.BeforeAttributeValue||this.state===A.AfterAttributeName||this.state===A.InAttributeName||this.state===A.InAttributeValueSq||this.state===A.InAttributeValueDq||this.state===A.InAttributeValueNq||this.state===A.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}emitPartial(t,r){this.baseState!==A.Text&&this.baseState!==A.InSpecialTag?this.cbs.onattribdata(t,r):this.cbs.ontext(t,r)}emitCodePoint(t){this.baseState!==A.Text&&this.baseState!==A.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}};var Gr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),V=new Set(["p"]),c0=new Set(["thead","tbody"]),l0=new Set(["dd","dt"]),d0=new Set(["rt","rp"]),kb=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",V],["h1",V],["h2",V],["h3",V],["h4",V],["h5",V],["h6",V],["select",Gr],["input",Gr],["output",Gr],["button",Gr],["datalist",Gr],["textarea",Gr],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",l0],["dt",l0],["address",V],["article",V],["aside",V],["blockquote",V],["details",V],["div",V],["dl",V],["fieldset",V],["figcaption",V],["figure",V],["footer",V],["form",V],["header",V],["hr",V],["main",V],["nav",V],["ol",V],["pre",V],["section",V],["table",V],["ul",V],["rt",d0],["rp",d0],["tbody",c0],["tfoot",c0]]),Mb=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),h0=new Set(["math","svg"]),f0=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Pb=/\s|\//,Ns=class{constructor(t,r={}){var i,s,n,o,u;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t!=null?t:{},this.lowerCaseTagNames=(i=r.lowerCaseTags)!==null&&i!==void 0?i:!r.xmlMode,this.lowerCaseAttributeNames=(s=r.lowerCaseAttributeNames)!==null&&s!==void 0?s:!r.xmlMode,this.tokenizer=new((n=r.Tokenizer)!==null&&n!==void 0?n:Yr)(this.options,this),(u=(o=this.cbs).onparserinit)===null||u===void 0||u.call(o,this)}ontext(t,r){var i,s;let n=this.getSlice(t,r);this.endIndex=r-1,(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,n),this.startIndex=r}ontextentity(t){var r,i;let s=this.tokenizer.getSectionStart();this.endIndex=s-1,(i=(r=this.cbs).ontext)===null||i===void 0||i.call(r,Dr(t)),this.startIndex=s}isVoidElement(t){return!this.options.xmlMode&&Mb.has(t)}onopentagname(t,r){this.endIndex=r;let i=this.getSlice(t,r);this.lowerCaseTagNames&&(i=i.toLowerCase()),this.emitOpenTag(i)}emitOpenTag(t){var r,i,s,n;this.openTagStart=this.startIndex,this.tagname=t;let o=!this.options.xmlMode&&kb.get(t);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){let u=this.stack.pop();(i=(r=this.cbs).onclosetag)===null||i===void 0||i.call(r,u,!0)}this.isVoidElement(t)||(this.stack.push(t),h0.has(t)?this.foreignContext.push(!0):f0.has(t)&&this.foreignContext.push(!1)),(n=(s=this.cbs).onopentagname)===null||n===void 0||n.call(s,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var r,i;this.startIndex=this.openTagStart,this.attribs&&((i=(r=this.cbs).onopentag)===null||i===void 0||i.call(r,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,r){var i,s,n,o,u,c;this.endIndex=r;let d=this.getSlice(t,r);if(this.lowerCaseTagNames&&(d=d.toLowerCase()),(h0.has(d)||f0.has(d))&&this.foreignContext.pop(),this.isVoidElement(d))!this.options.xmlMode&&d==="br"&&((s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,"br"),(o=(n=this.cbs).onopentag)===null||o===void 0||o.call(n,"br",{},!0),(c=(u=this.cbs).onclosetag)===null||c===void 0||c.call(u,"br",!1));else{let m=this.stack.lastIndexOf(d);if(m!==-1)if(this.cbs.onclosetag){let g=this.stack.length-m;for(;g--;)this.cbs.onclosetag(this.stack.pop(),g!==0)}else this.stack.length=m;else!this.options.xmlMode&&d==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1}onselfclosingtag(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var r,i;let s=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===s&&((i=(r=this.cbs).onclosetag)===null||i===void 0||i.call(r,s,!t),this.stack.pop())}onattribname(t,r){this.startIndex=t;let i=this.getSlice(t,r);this.attribname=this.lowerCaseAttributeNames?i.toLowerCase():i}onattribdata(t,r){this.attribvalue+=this.getSlice(t,r)}onattribentity(t){this.attribvalue+=Dr(t)}onattribend(t,r){var i,s;this.endIndex=r,(s=(i=this.cbs).onattribute)===null||s===void 0||s.call(i,this.attribname,this.attribvalue,t===Ft.Double?'"':t===Ft.Single?"'":t===Ft.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){let r=t.search(Pb),i=r<0?t:t.substr(0,r);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i}ondeclaration(t,r){this.endIndex=r;let i=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(i);this.cbs.onprocessinginstruction(`!${s}`,`!${i}`)}this.startIndex=r+1}onprocessinginstruction(t,r){this.endIndex=r;let i=this.getSlice(t,r);if(this.cbs.onprocessinginstruction){let s=this.getInstructionName(i);this.cbs.onprocessinginstruction(`?${s}`,`?${i}`)}this.startIndex=r+1}oncomment(t,r,i){var s,n,o,u;this.endIndex=r,(n=(s=this.cbs).oncomment)===null||n===void 0||n.call(s,this.getSlice(t,r-i)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1}oncdata(t,r,i){var s,n,o,u,c,d,m,g,_,v;this.endIndex=r;let N=this.getSlice(t,r-i);this.options.xmlMode||this.options.recognizeCDATA?((n=(s=this.cbs).oncdatastart)===null||n===void 0||n.call(s),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,N),(d=(c=this.cbs).oncdataend)===null||d===void 0||d.call(c)):((g=(m=this.cbs).oncomment)===null||g===void 0||g.call(m,`[CDATA[${N}]]`),(v=(_=this.cbs).oncommentend)===null||v===void 0||v.call(_)),this.startIndex=r+1}onend(){var t,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let i=this.stack.length;i>0;this.cbs.onclosetag(this.stack[--i],!0));}(r=(t=this.cbs).onend)===null||r===void 0||r.call(t)}reset(){var t,r,i,s;(r=(t=this.cbs).onreset)===null||r===void 0||r.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(i=this.cbs).onparserinit)===null||s===void 0||s.call(i,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,r){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let i=this.buffers[0].slice(t-this.bufferOffset,r-this.bufferOffset);for(;r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),i+=this.buffers[0].slice(0,r-this.bufferOffset);return i}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var r,i;if(this.ended){(i=(r=this.cbs).onerror)===null||i===void 0||i.call(r,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var r,i;if(this.ended){(i=(r=this.cbs).onerror)===null||i===void 0||i.call(r,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};function p0(e,t){let r=new Lr(void 0,t);return new Ns(r,t).end(e),r.root}var qb=ld((e,t,r,i)=>t.xmlMode||t._useHtmlParser2?p0(e,t):a0(e,t,r,i)),$t=bd(qb,(e,t)=>t.xmlMode||t._useHtmlParser2?Bn(e,t):o0(e)),VI=$t([]),{contains:YI}=Te,{merge:GI}=Te,{parseHTML:XI}=Te,{root:WI}=Te;var Hb=`
2641
2380
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
2642
2381
  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
2643
2382
  <xsl:template match="*">
@@ -2653,23 +2392,34 @@ video {
2653
2392
  <xsl:apply-templates/>
2654
2393
  </xsl:element>
2655
2394
  </xsl:template>
2656
- </xsl:stylesheet>`,Au=e=>{let t=e,r=s=>{let n=new DOMParser().parseFromString(t,"text/xml"),o=new XSLTProcessor,u=new DOMParser().parseFromString(s,"text/xml");o.importStylesheet(u);let c=o.transformToFragment(n,document);t=new XMLSerializer().serializeToString(c)},i={mathml(){let s=Ft(t,{xmlMode:!0,xml:!0});return s("math").each((n,o)=>{o.tagName="math-ml"}).find("*").each((n,o)=>{o.tagName=`math-${o.tagName.substring(1)}`}),t=s.xml(),i},removeNamesSpaces(){return r(Pb),i},cDataToComment(){return t=t.replace(/<!\[CDATA\[/g,"<!--").replace(/\]\]>/g,"-->"),i},pciHooks(s){let n=["hook","module"],o=s.substring(0,s.lastIndexOf("/")),u=new DOMParser().parseFromString(t,"text/xml");for(let c of n)u.querySelectorAll("["+c+"]").forEach(p=>{let g=p.getAttribute(c);!g.startsWith("data:")&&!g.startsWith("http")&&(p.setAttribute("base-url",s),p.setAttribute("module",o+"/"+encodeURIComponent(g+(g.endsWith(".js")?"":".js"))))});return t=new XMLSerializer().serializeToString(u),i},assetsLocation(s,n=["src","href","data"]){let o=Ft(t,{xmlMode:!0});if(s!==""){let u=s.substring(0,s.lastIndexOf("/"));for(let c of n)o(`[${c}]`).each((d,p)=>{let g=o(p).attr(c);if(!g.startsWith("data:")&&!g.startsWith("http")){let _=u+"/"+encodeURIComponent(g);o(p).attr(c,_)}})}return t=o.xml(),i},customTypes(){let s=Ft(t,{xml:!0,xmlMode:!0});return s("*").each((n,o)=>{var c;let u=(c=s(o).attr("class"))==null?void 0:c.split(" ");u&&u.forEach(d=>{d.startsWith("type:")&&(o.name=`${o.name}-${d.slice(5)}`)})}),t=s.xml(),i},customDefinition(){let s=Ft(t,{xml:!0,xmlMode:!0});return s("*").each((n,o)=>{let u=s(o).attr("definition");u&&u.startsWith("type:")&&(o.name=`${o.name}-${u.slice(5)}`)}),t=s.xml(),i},suffix(s,n){let o=Ft(t,{xml:!0,xmlMode:!0});return o("*").each((u,c)=>{s.includes(c.name)&&(c.name=`${c.name}-${n}`)}),t=o.xml(),i},fn(s){return t=s(t),i},fnCh(s){let n=Ft(t,{xml:!0,xmlMode:!0});return s(n),t=n.xml(),i},elementNameAttributes(s){return s.forEach(n=>{t=Hb(t,n,n+` data-element="${n}" `)}),i},print(){return console.log(t),i},xml(){return t=qb(t),t}};return i},qb=e=>{let t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],r=e.split("/>"),i="";for(let s=0;s<r.length-1;s++){let n=r[s].split("<"),o=n[n.length-1].split(" ")[0];t.includes(o)?i+=r[s]+"/>":i+=r[s]+"></"+o+">"}return i+r[r.length-1]};function Hb(e,t,r){return e.replace(new RegExp(t,"g"),r)}var $t=class extends y{constructor(){super(...arguments);this.itemLocation="";this.disabled=!1;this._xml="";this.audienceContext={view:"candidate"};this.render=()=>E`${qi(this._xml)}<slot></slot>`}update(r){r.has("disabled")&&this.assessmentItem&&(this.assessmentItem.disabled=this.disabled),super.update(r)}set xml(r){this._xml=Au(r).customTypes().cDataToComment().customDefinition().assetsLocation(`${this.itemLocation}`).xml()}set css(r){var s;let i=new CSSStyleSheet;i.replaceSync(r),(s=this.shadowRoot)==null||s.adoptedStyleSheets.push(i)}get assessmentItem(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("qti-assessment-item")}connectedCallback(){super.connectedCallback(),this.css=il}};m([v({type:String,attribute:"item-location"})],$t.prototype,"itemLocation",2),m([v({type:Boolean,attribute:!1})],$t.prototype,"disabled",2),m([M()],$t.prototype,"_xml",2),m([ke({context:nn}),v({attribute:!1})],$t.prototype,"audienceContext",2),$t=m([D("qti-item")],$t);var er=class extends $t{connectedCallback(){super.connectedCallback();let r=new CustomEvent("register-item-ref",{bubbles:!0,composed:!0,detail:{identifier:this.identifier,href:this.href}});this.dispatchEvent(r)}};m([v({type:String})],er.prototype,"identifier",2),m([v({type:String})],er.prototype,"href",2),er=m([D("qti-assessment-item-ref")],er);var yu=class{},K="test";function Sa(){throw new Error("Cycle detected")}var Ub=Symbol.for("preact-signals");function Su(){if(Gr>1){Gr--;return}let e,t=!1;for(;Ns!==void 0;){let r=Ns;for(Ns=void 0,Cu++;r!==void 0;){let i=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&g0(r))try{r.c()}catch(s){t||(e=s,t=!0)}r=i}}if(Cu=0,Gr--,t)throw e}var J,Ns;var Gr=0,Cu=0,Ca=0;function p0(e){if(J===void 0)return;let t=e.n;if(t===void 0||t.t!==J)return t={i:0,S:e,p:J.s,n:void 0,t:J,e:void 0,x:void 0,r:t},J.s!==void 0&&(J.s.n=t),J.s=t,e.n=t,32&J.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=J.s,t.n=void 0,J.s.n=t,J.s=t),t}function st(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}st.prototype.brand=Ub;st.prototype.h=function(){return!0};st.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};st.prototype.U=function(e){if(this.t!==void 0){let t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};st.prototype.subscribe=function(e){let t=this;return Iu(function(){let r=t.value,i=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=i}})};st.prototype.valueOf=function(){return this.value};st.prototype.toString=function(){return this.value+""};st.prototype.toJSON=function(){return this.value};st.prototype.peek=function(){return this.v};Object.defineProperty(st.prototype,"value",{get(){let e=p0(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(J instanceof rr&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Cu>100&&Sa(),this.v=e,this.i++,Ca++,Gr++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Su()}}}});function m0(e){return new st(e)}function g0(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function b0(e){for(let t=e.s;t!==void 0;t=t.n){let r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function E0(e){let t,r=e.s;for(;r!==void 0;){let i=r.p;r.i===-1?(r.S.U(r),i!==void 0&&(i.n=r.n),r.n!==void 0&&(r.n.p=i)):t=r,r.S.n=r.r,r.r!==void 0&&(r.r=void 0),r=i}e.s=t}function rr(e){st.call(this,void 0),this.x=e,this.s=void 0,this.g=Ca-1,this.f=4}(rr.prototype=new st).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ca))return!0;if(this.g=Ca,this.f|=1,this.i>0&&!g0(this))return this.f&=-2,!0;let e=J;try{b0(this),J=this;let t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return J=e,E0(this),this.f&=-2,!0};rr.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}st.prototype.S.call(this,e)};rr.prototype.U=function(e){if(this.t!==void 0&&(st.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}};rr.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}};rr.prototype.peek=function(){if(this.h()||Sa(),16&this.f)throw this.v;return this.v};Object.defineProperty(rr.prototype,"value",{get(){1&this.f&&Sa();let e=p0(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function w0(e){let t=e.u;if(e.u=void 0,typeof t=="function"){Gr++;let r=J;J=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,Nu(e),i}finally{J=r,Su()}}}function Nu(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,w0(e)}function Bb(e){if(J!==this)throw new Error("Out-of-order effect");E0(this),J=e,this.f&=-2,8&this.f&&Nu(this),Su()}function Is(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Is.prototype.c=function(){let e=this.S();try{if(8&this.f||this.x===void 0)return;let t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Is.prototype.S=function(){1&this.f&&Sa(),this.f|=1,this.f&=-9,w0(this),b0(this),Gr++;let e=J;return J=this,Bb.bind(this,e)};Is.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ns,Ns=this)};Is.prototype.d=function(){this.f|=8,1&this.f||Nu(this)};function Iu(e){let t=new Is(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var Ru=Mt(class extends Er{render(e){var t;if(e!==this._$Oi){(t=this._$Oo)===null||t===void 0||t.call(this),this._$Oi=e;let r=!0;this._$Oo=e.subscribe(i=>{r===!1&&this.setValue(i)}),r=!1}return e.peek()}disconnected(){var e;(e=this._$Oo)===null||e===void 0||e.call(this)}reconnected(){var e;this._$Oo=(e=this._$Oi)===null||e===void 0?void 0:e.subscribe(t=>{this.setValue(t)})}});var Lu=e=>(t,...r)=>e(t,...r.map(i=>i instanceof st?Ru(i):i)),Fb=Lu(E),$b=Lu(Oe);var ir=class extends y{constructor(){super();this._initialValue={itemIndex:0,items:[]};this.signalContext=m0(this._initialValue);this.itemRefEls=new Map;this.restoreContext=r=>{var i;r||(r=this._initialValue),this.signalContext.value.itemIndex=r.itemIndex,(i=r.items)==null||i.forEach(s=>{let n=this.signalContext.value.items.find(o=>o.identifier===s.identifier);n?n.variables=s.variables:this.signalContext.value.items.push(s)})};this.itemConnected=r=>{let i=this.signalContext.value.items.find(s=>(s==null?void 0:s.identifier)===(r==null?void 0:r.identifier));i.variables.length===1?this.copyItemVariables(r.identifier):r.variables=[...i.variables]};this.addEventListener("register-item-ref",this.onItemRefRegistered),this.addEventListener("on-test-request-item",this.onTestRequestItem),this.addEventListener("qti-item-first-updated",r=>this.itemConnected(r.detail)),this.addEventListener("qti-interaction-changed",r=>this.copyItemVariables(r.detail.item)),this.addEventListener("qti-outcome-changed",r=>this.copyItemVariables(r.detail.item)),Iu(()=>this._context=this.signalContext.value)}set context(r){console.log("set context",r),this.signalContext.value=r}copyItemVariables(r){this.signalContext.value=U(N({},this.signalContext.value),{items:this.signalContext.value.items.map(i=>i.identifier==r?U(N({},i),{variables:this.getAssessmentItem(r).context.variables}):i)})}getAssessmentItem(r){return this.querySelector(`qti-assessment-item-ref[identifier="${r}"]`).assessmentItem}get currentAssessmentItem(){return this.querySelector(`qti-assessment-item-ref[identifier="${this.signalContext.value.items[this.signalContext.value.itemIndex].identifier}"]`).assessmentItem}onItemRefRegistered(r){this.itemRefEls.set(r.detail.identifier,r.target);let{href:i,identifier:s}=r.detail;this.signalContext.value.items=[...this.signalContext.value.items,{href:i,identifier:s,variables:[{identifier:"completionStatus",cardinality:"single",baseType:"string",value:"not_attempted",type:"outcome"}]}]}onTestRequestItem(r){r.stopImmediatePropagation(),r.detail!==this.signalContext.value.itemIndex&&(this.signalContext.value=U(N({},this.signalContext.value),{itemIndex:r.detail}))}firstUpdated(r){if(super.firstUpdated(r),this.signalContext.value.items.length===0){console.warn("No items found in the test, please add at least one item");return}this._emit("qti-assessment-first-updated",this)}updated(r){var i,s;if(r.has("_context")){let n=(i=r.get("_context"))==null?void 0:i.itemIndex;this.signalContext.value.items.length>0&&this.signalContext.value.itemIndex!==null&&n!==this.signalContext.value.itemIndex&&this._requestItem(this.signalContext.value.items[this.signalContext.value.itemIndex].identifier,(s=this.signalContext.value.items[n])==null?void 0:s.identifier)}}_requestItem(r,i){this.dispatchEvent(new CustomEvent("on-test-set-item",{bubbles:!0,composed:!0,detail:{old:i,new:r}}))}_emit(r,i=null){this.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:i}))}render(){return E`<slot></slot>`}};m([v({type:String})],ir.prototype,"identifier",2),m([ke({context:K}),v({attribute:!1})],ir.prototype,"_context",2),ir=m([D("qti-assessment-test")],ir);var sr=class extends y{constructor(){super(...arguments);this.loading=!1;this._navigationMode="linear"}render(){return E`
2395
+ </xsl:stylesheet>`,yu=e=>{let t=e,r=s=>{let n=new DOMParser().parseFromString(t,"text/xml"),o=new XSLTProcessor,u=new DOMParser().parseFromString(s,"text/xml");o.importStylesheet(u);let c=o.transformToFragment(n,document);t=new XMLSerializer().serializeToString(c)},i={mathml(){let s=$t(t,{xmlMode:!0,xml:!0});return s("math").each((n,o)=>{o.tagName="math-ml"}).find("*").each((n,o)=>{o.tagName=`math-${o.tagName.substring(1)}`}),t=s.xml(),i},removeNamesSpaces(){return r(Hb),i},cDataToComment(){return t=t.replace(/<!\[CDATA\[/g,"<!--").replace(/\]\]>/g,"-->"),i},pciHooks(s){let n=["hook","module"],o=s.substring(0,s.lastIndexOf("/")),u=new DOMParser().parseFromString(t,"text/xml");for(let c of n)u.querySelectorAll("["+c+"]").forEach(m=>{let g=m.getAttribute(c);!g.startsWith("data:")&&!g.startsWith("http")&&(m.setAttribute("base-url",s),m.setAttribute("module",o+"/"+encodeURIComponent(g+(g.endsWith(".js")?"":".js"))))});return t=new XMLSerializer().serializeToString(u),i},assetsLocation(s,n=["src","href","data"]){let o=$t(t,{xmlMode:!0});if(s!==""){let u=s.substring(0,s.lastIndexOf("/"));for(let c of n)o(`[${c}]`).each((d,m)=>{let g=o(m).attr(c);if(!g.startsWith("data:")&&!g.startsWith("http")){let _=u+"/"+encodeURIComponent(g);o(m).attr(c,_)}})}return t=o.xml(),i},customTypes(){let s=$t(t,{xml:!0,xmlMode:!0});return s("*").each((n,o)=>{var c;let u=(c=s(o).attr("class"))==null?void 0:c.split(" ");u&&u.forEach(d=>{d.startsWith("type:")&&(o.name=`${o.name}-${d.slice(5)}`)})}),t=s.xml(),i},customDefinition(){let s=$t(t,{xml:!0,xmlMode:!0});return s("*").each((n,o)=>{let u=s(o).attr("definition");u&&u.startsWith("type:")&&(o.name=`${o.name}-${u.slice(5)}`)}),t=s.xml(),i},suffix(s,n){let o=$t(t,{xml:!0,xmlMode:!0});return o("*").each((u,c)=>{s.includes(c.name)&&(c.name=`${c.name}-${n}`)}),t=o.xml(),i},fn(s){return t=s(t),i},fnCh(s){let n=$t(t,{xml:!0,xmlMode:!0});return s(n),t=n.xml(),i},elementNameAttributes(s){return s.forEach(n=>{t=Bb(t,n,n+` data-element="${n}" `)}),i},print(){return console.log(t),i},xml(){return t=Ub(t),t}};return i},Ub=e=>{let t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],r=e.split("/>"),i="";for(let s=0;s<r.length-1;s++){let n=r[s].split("<"),o=n[n.length-1].split(" ")[0];t.includes(o)?i+=r[s]+"/>":i+=r[s]+"></"+o+">"}return i+r[r.length-1]};function Bb(e,t,r){return e.replace(new RegExp(t,"g"),r)}var Dt=class extends y{constructor(){super();this.itemLocation="";this.disabled=!1;this._xml="";this.audienceContext={view:"candidate"};this.render=()=>E`${Be(this._xml)}<slot></slot>`;this.addEventListener("qti-item-first-updated",r=>{this.checkAudienceContext()})}update(r){r.has("disabled")&&this.assessmentItem&&(this.assessmentItem.disabled=this.disabled),r.has("audienceContext")&&this.checkAudienceContext(),super.update(r)}checkAudienceContext(){var r,i;(r=this.shadowRoot.querySelectorAll("[view]"))==null||r.forEach(s=>{s.getAttribute("view")===this.audienceContext.view?s.classList.add("show"):s.classList.remove("show")}),(i=this.assessmentItem)==null||i.showCorrectResponse(this.audienceContext.view==="scorer")}set xml(r){this._xml=yu(r).customTypes().cDataToComment().customDefinition().assetsLocation(`${this.itemLocation}`).xml()}set css(r){var s;let i=new CSSStyleSheet;i.replaceSync(r),(s=this.shadowRoot)==null||s.adoptedStyleSheets.push(i)}get assessmentItem(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("qti-assessment-item")}connectedCallback(){super.connectedCallback(),this.css=nl}};Dt.styles=k`
2396
+ [view],
2397
+ qti-outcome-declaration,
2398
+ qti-response-declaration {
2399
+ display: none;
2400
+ }
2401
+ [view].show {
2402
+ display: block;
2403
+ }
2404
+ `,p([x({type:String,attribute:"item-location"})],Dt.prototype,"itemLocation",2),p([x({type:Boolean,attribute:!1})],Dt.prototype,"disabled",2),p([M()],Dt.prototype,"_xml",2),p([x({attribute:!1})],Dt.prototype,"audienceContext",2),Dt=p([R("qti-item")],Dt);var ir=class extends Dt{connectedCallback(){super.connectedCallback();let r=new CustomEvent("register-item-ref",{bubbles:!0,composed:!0,detail:{identifier:this.identifier,href:this.href}});this.dispatchEvent(r)}};p([x({type:String})],ir.prototype,"identifier",2),p([x({type:String})],ir.prototype,"href",2),ir=p([R("qti-assessment-item-ref")],ir);var Cu=class{},X="test";function Na(){throw new Error("Cycle detected")}var Fb=Symbol.for("preact-signals");function Su(){if(Xr>1){Xr--;return}let e,t=!1;for(;Ss!==void 0;){let r=Ss;for(Ss=void 0,Nu++;r!==void 0;){let i=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&E0(r))try{r.c()}catch(s){t||(e=s,t=!0)}r=i}}if(Nu=0,Xr--,t)throw e}var J,Ss;var Xr=0,Nu=0,Ca=0;function g0(e){if(J===void 0)return;let t=e.n;if(t===void 0||t.t!==J)return t={i:0,S:e,p:J.s,n:void 0,t:J,e:void 0,x:void 0,r:t},J.s!==void 0&&(J.s.n=t),J.s=t,e.n=t,32&J.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=J.s,t.n=void 0,J.s.n=t,J.s=t),t}function st(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}st.prototype.brand=Fb;st.prototype.h=function(){return!0};st.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};st.prototype.U=function(e){if(this.t!==void 0){let t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};st.prototype.subscribe=function(e){let t=this;return Ru(function(){let r=t.value,i=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=i}})};st.prototype.valueOf=function(){return this.value};st.prototype.toString=function(){return this.value+""};st.prototype.toJSON=function(){return this.value};st.prototype.peek=function(){return this.v};Object.defineProperty(st.prototype,"value",{get(){let e=g0(this);return e!==void 0&&(e.i=this.i),this.v},set(e){if(J instanceof sr&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){Nu>100&&Na(),this.v=e,this.i++,Ca++,Xr++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Su()}}}});function b0(e){return new st(e)}function E0(e){for(let t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function w0(e){for(let t=e.s;t!==void 0;t=t.n){let r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function T0(e){let t,r=e.s;for(;r!==void 0;){let i=r.p;r.i===-1?(r.S.U(r),i!==void 0&&(i.n=r.n),r.n!==void 0&&(r.n.p=i)):t=r,r.S.n=r.r,r.r!==void 0&&(r.r=void 0),r=i}e.s=t}function sr(e){st.call(this,void 0),this.x=e,this.s=void 0,this.g=Ca-1,this.f=4}(sr.prototype=new st).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ca))return!0;if(this.g=Ca,this.f|=1,this.i>0&&!E0(this))return this.f&=-2,!0;let e=J;try{w0(this),J=this;let t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return J=e,T0(this),this.f&=-2,!0};sr.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}st.prototype.S.call(this,e)};sr.prototype.U=function(e){if(this.t!==void 0&&(st.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}};sr.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;e!==void 0;e=e.x)e.t.N()}};sr.prototype.peek=function(){if(this.h()||Na(),16&this.f)throw this.v;return this.v};Object.defineProperty(sr.prototype,"value",{get(){1&this.f&&Na();let e=g0(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function x0(e){let t=e.u;if(e.u=void 0,typeof t=="function"){Xr++;let r=J;J=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,Iu(e),i}finally{J=r,Su()}}}function Iu(e){for(let t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,x0(e)}function $b(e){if(J!==this)throw new Error("Out-of-order effect");T0(this),J=e,this.f&=-2,8&this.f&&Iu(this),Su()}function Is(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Is.prototype.c=function(){let e=this.S();try{if(8&this.f||this.x===void 0)return;let t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Is.prototype.S=function(){1&this.f&&Na(),this.f|=1,this.f&=-9,x0(this),w0(this),Xr++;let e=J;return J=this,$b.bind(this,e)};Is.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ss,Ss=this)};Is.prototype.d=function(){this.f|=8,1&this.f||Iu(this)};function Ru(e){let t=new Is(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var Lu=Pt(class extends wr{render(e){var t;if(e!==this._$Oi){(t=this._$Oo)===null||t===void 0||t.call(this),this._$Oi=e;let r=!0;this._$Oo=e.subscribe(i=>{r===!1&&this.setValue(i)}),r=!1}return e.peek()}disconnected(){var e;(e=this._$Oo)===null||e===void 0||e.call(this)}reconnected(){var e;this._$Oo=(e=this._$Oi)===null||e===void 0?void 0:e.subscribe(t=>{this.setValue(t)})}});var Du=e=>(t,...r)=>e(t,...r.map(i=>i instanceof st?Lu(i):i)),Vb=Du(E),Yb=Du(Pe);var oe=class extends y{constructor(){super();this.itemIndex=0;this._initialValue={itemIndex:0,audienceContext:"candidate",items:[]};this.signalContext=b0(this._initialValue);this.itemRefEls=new Map;this.restoreContext=r=>{var i;r||(r=this._initialValue),this.signalContext.value.itemIndex=r.itemIndex,(i=r.items)==null||i.forEach(s=>{let n=this.signalContext.value.items.find(o=>o.identifier===s.identifier);n?n.variables=s.variables:this.signalContext.value.items.push(s)})};this.itemConnected=r=>{let i=this.signalContext.value.items.find(s=>(s==null?void 0:s.identifier)===(r==null?void 0:r.identifier));i.variables.length===1?this.copyItemVariables(r.identifier):r.variables=[...i.variables]};this.addEventListener("register-item-ref",this.onItemRefRegistered),this.addEventListener("on-test-request-item",this.onTestRequestItem),this.addEventListener("qti-item-first-updated",r=>this.itemConnected(r.detail)),this.addEventListener("qti-interaction-changed",r=>this.copyItemVariables(r.detail.item)),this.addEventListener("qti-outcome-changed",r=>this.copyItemVariables(r.detail.item)),Ru(()=>this._context=this.signalContext.value)}set context(r){console.log("set context",r),this.signalContext.value=r}updated(r){var i,s;if(r.has("_context")){let n=(i=r.get("_context"))==null?void 0:i.itemIndex;this.signalContext.value.items.length>0&&this.signalContext.value.itemIndex!==null&&n!==this.signalContext.value.itemIndex&&this._requestItem(this.signalContext.value.items[this.signalContext.value.itemIndex].identifier,(s=this.signalContext.value.items[n])==null?void 0:s.identifier)}r.has("audienceContext")&&(this._context=U(S({},this._context),{audienceContext:this.audienceContext}),this.itemRefEls.forEach((n,o)=>n.audienceContext={view:this.audienceContext})),r.has("itemIndex")&&(this.signalContext.value=U(S({},this.signalContext.value),{itemIndex:this.itemIndex}))}copyItemVariables(r){this.signalContext.value=U(S({},this.signalContext.value),{items:this.signalContext.value.items.map(i=>i.identifier==r?U(S({},i),{variables:this.getAssessmentItem(r).context.variables}):i)})}getAssessmentItem(r){return this.querySelector(`qti-assessment-item-ref[identifier="${r}"]`).assessmentItem}get currentAssessmentItem(){return this.querySelector(`qti-assessment-item-ref[identifier="${this.signalContext.value.items[this.signalContext.value.itemIndex].identifier}"]`).assessmentItem}onItemRefRegistered(r){this.itemRefEls.set(r.detail.identifier,r.target);let{href:i,identifier:s}=r.detail;this.signalContext.value.items=[...this.signalContext.value.items,{href:i,identifier:s,variables:[{identifier:"completionStatus",cardinality:"single",baseType:"string",value:"not_attempted",type:"outcome"}]}]}onTestRequestItem(r){r.stopImmediatePropagation(),r.detail!==this.signalContext.value.itemIndex&&(this.signalContext.value=U(S({},this.signalContext.value),{itemIndex:r.detail}))}firstUpdated(r){if(super.firstUpdated(r),this.signalContext.value.items.length===0){console.warn("No items found in the test, please add at least one item");return}this._emit("qti-assessment-first-updated",this)}_requestItem(r,i){this.dispatchEvent(new CustomEvent("on-test-set-item",{bubbles:!0,composed:!0,detail:{old:i,new:r}}))}_emit(r,i=null){this.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0,detail:i}))}render(){return E`<slot></slot>`}};p([x({type:String,reflect:!0,attribute:"audience-context"})],oe.prototype,"audienceContext",2),p([x({type:Number,reflect:!0,attribute:"item-index"})],oe.prototype,"itemIndex",2),p([x({type:String})],oe.prototype,"identifier",2),p([Ti({context:X}),x({attribute:!1})],oe.prototype,"_context",2),oe=p([R("qti-assessment-test")],oe);var nr=class extends y{constructor(){super(...arguments);this.loading=!1;this._navigationMode="linear"}render(){return E`
2657
2405
  <slot name="qti-item"></slot>
2658
2406
  <slot> </slot>
2659
- `}};m([v({type:Boolean,reflect:!0})],sr.prototype,"loading",2),m([v({type:String,attribute:"navigation-mode"})],sr.prototype,"_navigationMode",2),sr=m([D("qti-test-part")],sr);var Rs=globalThis,Ia=Rs.ShadowRoot&&(Rs.ShadyCSS===void 0||Rs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x0=Symbol(),T0=new WeakMap,Na=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==x0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Ia&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=T0.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&T0.set(r,t))}return t}toString(){return this.cssText}},v0=e=>new Na(typeof e=="string"?e:e+"",void 0,x0);var Du=(e,t)=>{Ia?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let i=document.createElement("style"),s=Rs.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)})},Ra=Ia||Rs.CSSStyleSheet===void 0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return v0(r)})(e):e;var _0,Ou,Xr=globalThis;(_0=Xr.customElements)!==null&&_0!==void 0||(Xr.customElements=Gs);var A0=Xr.trustedTypes,Vb=A0?A0.emptyScript:"",y0=Xr.reactiveElementPolyfillSupport,Mu={toAttribute(e,t){switch(t){case Boolean:e=e?Vb:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(i){r=null}}return r}},S0=(e,t)=>t!==e&&(t==t||e==e),ku={attribute:!0,type:String,converter:Mu,reflect:!1,hasChanged:S0},Pu="finalized",C0,oe=class extends((C0=globalThis.HTMLElement)!=null?C0:Ys){constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,i)=>{let s=this._$Ep(i,r);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,r=ku){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,r);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,r,i){return{get(){return this[r]},set(s){let n=this[t];this[r]=s,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ku}static finalize(){if(this.hasOwnProperty(Pu))return!1;this[Pu]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let s of i)this.createProperty(s,r[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let s of i)r.unshift(Ra(s))}else t!==void 0&&r.push(Ra(t));return r}static _$Ep(t,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Du(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r,i=ku){var s;let n=this.constructor._$Ep(t,i);if(n!==void 0&&i.reflect===!0){let o=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Mu).toAttribute(r,i.type);this._$El=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$El=null}}_$AK(t,r){var i;let s=this.constructor,n=s._$Ev.get(t);if(n!==void 0&&this._$El!==n){let o=s.getPropertyOptions(n),u=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:Mu;this._$El=n,this[n]=u.fromAttribute(r,o.type),this._$El=null}}requestUpdate(t,r,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||S0)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,n)=>this[n]=s),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var n;return(n=s.hostUpdate)===null||n===void 0?void 0:n.call(s)}),this.update(i)):this._$Ek()}catch(s){throw r=!1,this._$Ek(),s}r&&this._$AE(i)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};oe[Pu]=!0,oe.elementProperties=new Map,oe.elementStyles=[],oe.shadowRootOptions={mode:"open"},y0==null||y0({ReactiveElement:oe}),((Ou=Xr.reactiveElementVersions)!==null&&Ou!==void 0?Ou:Xr.reactiveElementVersions=[]).push("1.6.3");var qu,Ds=globalThis,Wr=Ds.trustedTypes,N0=Wr?Wr.createPolicy("lit-html",{createHTML:e=>e}):void 0,La="$lit$",ue=`lit$${(Math.random()+"").slice(9)}$`,Uu="?"+ue,Yb=`<${Uu}>`,or=Ds.document===void 0?{createTreeWalker:()=>({})}:document,Os=()=>or.createComment(""),ks=e=>e===null||typeof e!="object"&&typeof e!="function",M0=Array.isArray,P0=e=>M0(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Hu=`[
2660
- \f\r]`,Ls=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I0=/-->/g,R0=/>/g,nr=RegExp(`>|${Hu}(?:([^\\s"'>=/]+)(${Hu}*=${Hu}*(?:[^
2661
- \f\r"'\`<>=]|("|')|))|$)`,"g"),L0=/'/g,D0=/"/g,q0=/^(?:script|style|textarea|title)$/i,H0=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),U0=H0(1),uR=H0(2),ce=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),O0=new WeakMap,ar=or.createTreeWalker(or,129,null,!1);function B0(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return N0!==void 0?N0.createHTML(t):t}var F0=(e,t)=>{let r=e.length-1,i=[],s,n=t===2?"<svg>":"",o=Ls;for(let u=0;u<r;u++){let c=e[u],d,p,g=-1,_=0;for(;_<c.length&&(o.lastIndex=_,p=o.exec(c),p!==null);)_=o.lastIndex,o===Ls?p[1]==="!--"?o=I0:p[1]!==void 0?o=R0:p[2]!==void 0?(q0.test(p[2])&&(s=RegExp("</"+p[2],"g")),o=nr):p[3]!==void 0&&(o=nr):o===nr?p[0]===">"?(o=s!=null?s:Ls,g=-1):p[1]===void 0?g=-2:(g=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?nr:p[3]==='"'?D0:L0):o===D0||o===L0?o=nr:o===I0||o===R0?o=Ls:(o=nr,s=void 0);let x=o===nr&&e[u+1].startsWith("/>")?" ":"";n+=o===Ls?c+Yb:g>=0?(i.push(d),c.slice(0,g)+La+c.slice(g)+ue+x):c+ue+(g===-2?(i.push(void 0),u):x)}return[B0(e,n+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},Ms=class e{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,u=t.length-1,c=this.parts,[d,p]=F0(t,r);if(this.el=e.createElement(d,i),ar.currentNode=this.el.content,r===2){let g=this.el.content,_=g.firstChild;_.remove(),g.append(..._.childNodes)}for(;(s=ar.nextNode())!==null&&c.length<u;){if(s.nodeType===1){if(s.hasAttributes()){let g=[];for(let _ of s.getAttributeNames())if(_.endsWith(La)||_.startsWith(ue)){let x=p[o++];if(g.push(_),x!==void 0){let S=s.getAttribute(x.toLowerCase()+La).split(ue),R=/([.?@])?(.*)/.exec(x);c.push({type:1,index:n,name:R[2],strings:S,ctor:R[1]==="."?Oa:R[1]==="?"?ka:R[1]==="@"?Ma:cr})}else c.push({type:6,index:n})}for(let _ of g)s.removeAttribute(_)}if(q0.test(s.tagName)){let g=s.textContent.split(ue),_=g.length-1;if(_>0){s.textContent=Wr?Wr.emptyScript:"";for(let x=0;x<_;x++)s.append(g[x],Os()),ar.nextNode(),c.push({type:2,index:++n});s.append(g[_],Os())}}}else if(s.nodeType===8)if(s.data===Uu)c.push({type:2,index:n});else{let g=-1;for(;(g=s.data.indexOf(ue,g+1))!==-1;)c.push({type:7,index:n}),g+=ue.length-1}n++}}static createElement(t,r){let i=or.createElement("template");return i.innerHTML=t,i}};function ur(e,t,r=e,i){var s,n,o,u;if(t===ce)return t;let c=i!==void 0?(s=r._$Co)===null||s===void 0?void 0:s[i]:r._$Cl,d=ks(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==d&&((n=c==null?void 0:c._$AO)===null||n===void 0||n.call(c,!1),d===void 0?c=void 0:(c=new d(e),c._$AT(e,r,i)),i!==void 0?((o=(u=r)._$Co)!==null&&o!==void 0?o:u._$Co=[])[i]=c:r._$Cl=c),c!==void 0&&(t=ur(e,c._$AS(e,t.values),c,i)),t}var Da=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var r;let{el:{content:i},parts:s}=this._$AD,n=((r=t==null?void 0:t.creationScope)!==null&&r!==void 0?r:or).importNode(i,!0);ar.currentNode=n;let o=ar.nextNode(),u=0,c=0,d=s[0];for(;d!==void 0;){if(u===d.index){let p;d.type===2?p=new jr(o,o.nextSibling,this,t):d.type===1?p=new d.ctor(o,d.name,d.strings,this,t):d.type===6&&(p=new Pa(o,this,t)),this._$AV.push(p),d=s[++c]}u!==(d==null?void 0:d.index)&&(o=ar.nextNode(),u++)}return ar.currentNode=or,n}v(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},jr=class e{constructor(t,r,i,s){var n;this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cp=(n=s==null?void 0:s.isConnected)===null||n===void 0||n}get _$AU(){var t,r;return(r=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ur(this,t,r),ks(t)?t===rt||t==null||t===""?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ce&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):P0(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==rt&&ks(this._$AH)?this._$AA.nextSibling.data=t:this.$(or.createTextNode(t)),this._$AH=t}g(t){var r;let{values:i,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Ms.createElement(B0(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===n)this._$AH.v(i);else{let o=new Da(n,this),u=o.u(this.options);o.v(i),this.$(u),this._$AH=o}}_$AC(t){let r=O0.get(t.strings);return r===void 0&&O0.set(t.strings,r=new Ms(t)),r}T(t){M0(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of t)s===r.length?r.push(i=new e(this.k(Os()),this.k(Os()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var r;this._$AM===void 0&&(this._$Cp=t,(r=this._$AP)===null||r===void 0||r.call(this,t))}},cr=class{constructor(t,r,i,s,n){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=rt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)t=ur(this,t,r,0),o=!ks(t)||t!==this._$AH&&t!==ce,o&&(this._$AH=t);else{let u=t,c,d;for(t=n[0],c=0;c<n.length-1;c++)d=ur(this,u[i+c],r,c),d===ce&&(d=this._$AH[c]),o||(o=!ks(d)||d!==this._$AH[c]),d===rt?t=rt:t!==rt&&(t+=(d!=null?d:"")+n[c+1]),this._$AH[c]=d}o&&!s&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Oa=class extends cr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}},Gb=Wr?Wr.emptyScript:"",ka=class extends cr{constructor(){super(...arguments),this.type=4}j(t){t&&t!==rt?this.element.setAttribute(this.name,Gb):this.element.removeAttribute(this.name)}},Ma=class extends cr{constructor(t,r,i,s,n){super(t,r,i,s,n),this.type=5}_$AI(t,r=this){var i;if((t=(i=ur(this,t,r,0))!==null&&i!==void 0?i:rt)===ce)return;let s=this._$AH,n=t===rt&&s!==rt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==rt&&(s===rt||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},Pa=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ur(this,t)}},$0={O:La,P:ue,A:Uu,C:1,M:F0,L:Da,R:P0,D:ur,I:jr,V:cr,H:ka,N:Ma,U:Oa,F:Pa},k0=Ds.litHtmlPolyfillSupport;k0==null||k0(Ms,jr),((qu=Ds.litHtmlVersions)!==null&&qu!==void 0?qu:Ds.litHtmlVersions=[]).push("2.8.0");var Ps=(e,t,r)=>{var i,s;let n=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:t,o=n._$litPart$;if(o===void 0){let u=(s=r==null?void 0:r.renderBefore)!==null&&s!==void 0?s:null;n._$litPart$=o=new jr(t.insertBefore(Os(),u),u,void 0,r!=null?r:{})}return o._$AI(e),o};var Bu,Fu;var Kr=class extends oe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let i=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=i.firstChild),i}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ps(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return ce}};Kr.finalized=!0,Kr._$litElement$=!0,(Bu=globalThis.litElementHydrateSupport)===null||Bu===void 0||Bu.call(globalThis,{LitElement:Kr});var V0=globalThis.litElementPolyfillSupport;V0==null||V0({LitElement:Kr});((Fu=globalThis.litElementVersions)!==null&&Fu!==void 0?Fu:globalThis.litElementVersions=[]).push("3.3.3");var qs,Y0=0;function $u(e){qs=e}function Vu(){qs=null,Y0=0}function G0(){return Y0++}var qa=Symbol("haunted.phase"),zr=Symbol("haunted.hook"),Yu=Symbol("haunted.update"),Gu=Symbol("haunted.commit"),zt=Symbol("haunted.effects"),Ae=Symbol("haunted.layoutEffects"),Hs="haunted.context";var Xb,Wb,jb,Us=class{constructor(t,r){P(this,"update");P(this,"host");P(this,"virtual");P(this,Xb);P(this,Wb);P(this,jb);this.update=t,this.host=r,this[zr]=new Map,this[zt]=[],this[Ae]=[]}run(t){$u(this);let r=t();return Vu(),r}_runEffects(t){let r=this[t];$u(this);for(let i of r)i.call(this);Vu()}runEffects(){this._runEffects(zt)}runLayoutEffects(){this._runEffects(Ae)}teardown(){this[zr].forEach(r=>{typeof r.teardown=="function"&&r.teardown()})}};Xb=zr,Wb=zt,jb=Ae;var Kb=Promise.resolve().then.bind(Promise.resolve());function W0(){let e=[],t;function r(){t=null;let i=e;e=[];for(var s=0,n=i.length;s<n;s++)i[s]()}return function(i){e.push(i),t==null&&(t=Kb(r))}}var zb=W0(),X0=W0(),Qb,lr=class{constructor(t,r){P(this,"renderer");P(this,"host");P(this,"state");P(this,Qb);P(this,"_updateQueued");this.renderer=t,this.host=r,this.state=new Us(this.update.bind(this),r),this[qa]=null,this._updateQueued=!1}update(){this._updateQueued||(zb(()=>{let t=this.handlePhase(Yu);X0(()=>{this.handlePhase(Gu,t),X0(()=>{this.handlePhase(zt)})}),this._updateQueued=!1}),this._updateQueued=!0)}handlePhase(t,r){switch(this[qa]=t,t){case Gu:this.commit(r),this.runEffects(Ae);return;case Yu:return this.render();case zt:return this.runEffects(zt)}}render(){return this.state.run(()=>this.renderer.call(this.host,this.host))}runEffects(t){this.state._runEffects(t)}teardown(){this.state.teardown()}};Qb=qa;var Jb=(e="")=>e.replace(/-+([a-z])?/g,(t,r)=>r?r.toUpperCase():"");function j0(e){class t extends lr{constructor(n,o,u){super(n,u||o);P(this,"frag");this.frag=o}commit(n){e(n,this.frag)}}function r(i,s,n){let o=(n||s||{}).baseElement||HTMLElement,{observedAttributes:u=[],useShadowDOM:c=!0,shadowRootInit:d={}}=n||s||{};class p extends o{constructor(){super();P(this,"_scheduler");c===!1?this._scheduler=new t(i,this):(this.attachShadow(N({mode:"open"},d)),this._scheduler=new t(i,this.shadowRoot,this))}static get observedAttributes(){return i.observedAttributes||u||[]}connectedCallback(){this._scheduler.update()}disconnectedCallback(){this._scheduler.teardown()}attributeChangedCallback(R,H,Y){if(H===Y)return;let bt=Y===""?!0:Y;Reflect.set(this,Jb(R),bt)}}function g(x){let S=x,R=!1;return Object.freeze({enumerable:!0,configurable:!0,get(){return S},set(H){R&&S===H||(R=!0,S=H,this._scheduler&&this._scheduler.update())}})}let _=new Proxy(o.prototype,{getPrototypeOf(x){return x},set(x,S,R,H){let Y;return S in x?(Y=Object.getOwnPropertyDescriptor(x,S),Y&&Y.set?(Y.set.call(H,R),!0):(Reflect.set(x,S,R,H),!0)):(typeof S=="symbol"||S[0]==="_"?Y={enumerable:!0,configurable:!0,writable:!0,value:R}:Y=g(R),Object.defineProperty(H,S,Y),Y.set&&Y.set.call(H,R),!0)}});return Object.setPrototypeOf(p.prototype,_),p}return r}var vt=class{constructor(t,r){P(this,"id");P(this,"state");this.id=t,this.state=r}};function Zb(e,...t){let r=G0(),i=qs[zr],s=i.get(r);return s||(s=new e(r,qs,...t),i.set(r,s)),s.update(...t)}function Vt(e){return Zb.bind(null,e)}function Ha(e){return Vt(class extends vt{constructor(r,i,s,n){super(r,i);P(this,"callback");P(this,"lastValues");P(this,"values");P(this,"_teardown");e(i,this)}update(r,i){this.callback=r,this.values=i}call(){(!this.values||this.hasChanged())&&this.run(),this.lastValues=this.values}run(){this.teardown(),this._teardown=this.callback.call(this.state)}teardown(){typeof this._teardown=="function"&&this._teardown()}hasChanged(){return!this.lastValues||this.values.some((r,i)=>this.lastValues[i]!==r)}})}function Xu(e,t){e[zt].push(t)}var Qr=Ha(Xu);var Wu=Vt(class extends vt{constructor(t,r,i){super(t,r);P(this,"Context");P(this,"value");P(this,"_ranEffect");P(this,"_unsubscribe");this._updater=this._updater.bind(this),this._ranEffect=!1,this._unsubscribe=null,Xu(r,this)}update(t){if(this.state.virtual)throw new Error("can't be used with virtual components");return this.Context!==t&&(this._subscribe(t),this.Context=t),this.value}call(){this._ranEffect||(this._ranEffect=!0,this._unsubscribe&&this._unsubscribe(),this._subscribe(this.Context),this.state.update())}_updater(t){this.value=t,this.state.update()}_subscribe(t){let r={Context:t,callback:this._updater};this.state.host.dispatchEvent(new CustomEvent(Hs,{detail:r,bubbles:!0,cancelable:!0,composed:!0}));let{unsubscribe:i=null,value:s}=r;this.value=i?s:t.defaultValue,this._unsubscribe=i}teardown(){this._unsubscribe&&this._unsubscribe()}});function K0(e){return t=>{let r={Provider:class extends HTMLElement{constructor(){super();P(this,"listeners");P(this,"_value");this.listeners=new Set,this.addEventListener(Hs,this)}disconnectedCallback(){this.removeEventListener(Hs,this)}handleEvent(s){let{detail:n}=s;n.Context===r&&(n.value=this.value,n.unsubscribe=this.unsubscribe.bind(this,n.callback),this.listeners.add(n.callback),s.stopPropagation())}unsubscribe(s){this.listeners.delete(s)}set value(s){this._value=s;for(let n of this.listeners)n(s)}get value(){return this._value}},Consumer:e(function({render:i}){let s=Wu(r);return i(s)}),defaultValue:t};return r}}var ju=Vt(class extends vt{constructor(t,r,i,s){super(t,r);P(this,"value");P(this,"values");this.value=i(),this.values=s}update(t,r){return this.hasChanged(r)&&(this.values=r,this.value=t()),this.value}hasChanged(t=[]){return t.some((r,i)=>this.values[i]!==r)}});function tE(e,t){e[Ae].push(t)}var z0=Ha(tE);var Jr=Vt(class extends vt{constructor(t,r,i){super(t,r);P(this,"args");this.updater=this.updater.bind(this),typeof i=="function"&&(i=i()),this.makeArgs(i)}update(){return this.args}updater(t){if(typeof t=="function"){let r=t,[i]=this.args;t=r(i)}this.makeArgs(t),this.state.update()}makeArgs(t){this.args=Object.freeze([t,this.updater])}});var bL=Promise.resolve();var eE=Vt(class extends vt{constructor(t,r,i,s,n){super(t,r);P(this,"reducer");P(this,"currentState");this.dispatch=this.dispatch.bind(this),this.currentState=n!==void 0?n(s):s}update(t){return this.reducer=t,[this.currentState,this.dispatch]}dispatch(t){this.currentState=this.reducer(this.currentState,t),this.state.update()}});function Ku({render:e}){let t=j0(e),r=K0(t);return{component:t,createContext:r}}var zu={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Qu=e=>(...t)=>({_$litDirective$:e,values:t}),Bs=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{I:jL}=$0;var Q0=e=>e.strings===void 0;var Fs=(e,t)=>{var r,i;let s=e._$AN;if(s===void 0)return!1;for(let n of s)(i=(r=n)._$AO)===null||i===void 0||i.call(r,t,!1),Fs(n,t);return!0},Ua=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while((r==null?void 0:r.size)===0)},J0=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),sE(t)}};function rE(e){this._$AN!==void 0?(Ua(this),this._$AM=e,J0(this)):this._$AM=e}function iE(e,t=!1,r=0){let i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(i))for(let n=r;n<i.length;n++)Fs(i[n],!1),Ua(i[n]);else i!=null&&(Fs(i,!1),Ua(i));else Fs(this,e)}var sE=e=>{var t,r,i,s;e.type==zu.CHILD&&((t=(i=e)._$AP)!==null&&t!==void 0||(i._$AP=iE),(r=(s=e)._$AQ)!==null&&r!==void 0||(s._$AQ=rE))},Ba=class extends Bs{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,i){super._$AT(t,r,i),J0(this),this.isConnected=t._$AU}_$AO(t,r=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)===null||i===void 0||i.call(this):(s=this.disconnected)===null||s===void 0||s.call(this)),r&&(Fs(this,t),Ua(this))}setValue(t){if(Q0(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var Z0=Array.prototype.includes,Ju=new WeakMap,th=new WeakMap,Zu=class extends lr{constructor(r,i,s){super(r,i);P(this,"args");P(this,"setValue");this.state.virtual=!0,this.setValue=s}render(){return this.state.run(()=>this.renderer.apply(this.host,this.args))}commit(r){this.setValue(r)}teardown(){super.teardown();let r=th.get(this);Ju.delete(r)}};function eh(){function e(t){class r extends Ba{constructor(n){super(n);P(this,"cont");this.cont=void 0}update(n,o){return this.cont=Ju.get(n),(!this.cont||this.cont.renderer!==t)&&(this.cont=new Zu(t,n,u=>{this.setValue(u)}),Ju.set(n,this.cont),th.set(this.cont,n),tc(this.cont,n)),this.cont.args=o,this.cont.update(),this.render(o)}render(n){return ce}}return Qu(r)}return e}function tc(e,t,r=t.startNode){let i=r.parentNode,s=new MutationObserver(n=>{for(let o of n)if(Z0.call(o.removedNodes,r)){s.disconnect(),r.parentNode instanceof ShadowRoot?tc(e,t):e.teardown();break}else if(Z0.call(o.addedNodes,r.nextSibling)){s.disconnect(),tc(e,t,r.nextSibling||void 0);break}});s.observe(i,{childList:!0})}var{component:ec,createContext:nE}=Ku({render:Ps}),rc=eh();var aE=async e=>{let r=await(await fetch(e)).text();return Ft(r,{xmlMode:!0,xml:{xmlMode:!0}})('resource[type="imsqti_test_xmlv3p0"]').first()},oE=async e=>{let r=await(await fetch(e)).text(),i=Ft(r,{xmlMode:!0,xml:{xmlMode:!0}}),s=[];return i("qti-assessment-item-ref").each((n,o)=>{let u=i(o).attr("identifier"),c=i(o).attr("href"),d=i(o).attr("category");s.push({identifier:u,href:c,category:d})}),s},$s=new AbortController;async function ic(e){let t=async i=>{try{return await(await fetch(i,{signal:r})).text()}catch(s){s.name==="AbortError"?console.log("Fetch aborted"):console.error(s)}return""};$s==null||$s.abort(),$s=new AbortController;let r=$s.signal;return await t(e)}var sc=async e=>{e.endsWith("/")||(e=e+"/");let t=await aE(e+"/imsmanifest.xml"),r=await oE(e+t.attr("href"));return{itemLocation:`${e}/${t.attr("href").substring(0,t.attr("href").lastIndexOf("/"))}/`,items:r,testIdentifier:t.attr("identifier")}};var rh=e=>{let[t,r]=Jr(null),i=wr();return Qr(()=>{console.log("QtiTestHaunted",e),r(e)},[t]),t?E`
2407
+ `}};p([x({type:Boolean,reflect:!0})],nr.prototype,"loading",2),p([x({type:String,attribute:"navigation-mode"})],nr.prototype,"_navigationMode",2),nr=p([R("qti-test-part")],nr);var Rs=globalThis,Ia=Rs.ShadowRoot&&(Rs.ShadyCSS===void 0||Rs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_0=Symbol(),v0=new WeakMap,Sa=class{constructor(t,r,i){if(this._$cssResult$=!0,i!==_0)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Ia&&t===void 0){let i=r!==void 0&&r.length===1;i&&(t=v0.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&v0.set(r,t))}return t}toString(){return this.cssText}},A0=e=>new Sa(typeof e=="string"?e:e+"",void 0,_0);var Ou=(e,t)=>{Ia?e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):t.forEach(r=>{let i=document.createElement("style"),s=Rs.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,e.appendChild(i)})},Ra=Ia||Rs.CSSStyleSheet===void 0?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let i of t.cssRules)r+=i.cssText;return A0(r)})(e):e;var y0,ku,Wr=globalThis;(y0=Wr.customElements)!==null&&y0!==void 0||(Wr.customElements=Xs);var C0=Wr.trustedTypes,Gb=C0?C0.emptyScript:"",N0=Wr.reactiveElementPolyfillSupport,Pu={toAttribute(e,t){switch(t){case Boolean:e=e?Gb:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(i){r=null}}return r}},I0=(e,t)=>t!==e&&(t==t||e==e),Mu={attribute:!0,type:String,converter:Pu,reflect:!1,hasChanged:I0},qu="finalized",S0,ue=class extends((S0=globalThis.HTMLElement)!=null?S0:Gs){constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((r,i)=>{let s=this._$Ep(i,r);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,r=Mu){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(t,r),!r.noAccessor&&!this.prototype.hasOwnProperty(t)){let i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,r);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,r,i){return{get(){return this[r]},set(s){let n=this[t];this[r]=s,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Mu}static finalize(){if(this.hasOwnProperty(qu))return!1;this[qu]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let s of i)this.createProperty(s,r[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let r=[];if(Array.isArray(t)){let i=new Set(t.flat(1/0).reverse());for(let s of i)r.unshift(Ra(s))}else t!==void 0&&r.push(Ra(t));return r}static _$Ep(t,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(r=>r(this))}addController(t){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var t;let r=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ou(r,this.constructor.elementStyles),r}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(t,r,i){this._$AK(t,i)}_$EO(t,r,i=Mu){var s;let n=this.constructor._$Ep(t,i);if(n!==void 0&&i.reflect===!0){let o=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Pu).toAttribute(r,i.type);this._$El=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$El=null}}_$AK(t,r){var i;let s=this.constructor,n=s._$Ev.get(t);if(n!==void 0&&this._$El!==n){let o=s.getPropertyOptions(n),u=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:Pu;this._$El=n,this[n]=u.fromAttribute(r,o.type),this._$El=null}}requestUpdate(t,r,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||I0)(this[t],r)?(this._$AL.has(t)||this._$AL.set(t,r),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,n)=>this[n]=s),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var n;return(n=s.hostUpdate)===null||n===void 0?void 0:n.call(s)}),this.update(i)):this._$Ek()}catch(s){throw r=!1,this._$Ek(),s}r&&this._$AE(i)}willUpdate(t){}_$AE(t){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ue[qu]=!0,ue.elementProperties=new Map,ue.elementStyles=[],ue.shadowRootOptions={mode:"open"},N0==null||N0({ReactiveElement:ue}),((ku=Wr.reactiveElementVersions)!==null&&ku!==void 0?ku:Wr.reactiveElementVersions=[]).push("1.6.3");var Hu,Ds=globalThis,jr=Ds.trustedTypes,R0=jr?jr.createPolicy("lit-html",{createHTML:e=>e}):void 0,La="$lit$",ce=`lit$${(Math.random()+"").slice(9)}$`,Bu="?"+ce,Xb=`<${Bu}>`,ur=Ds.document===void 0?{createTreeWalker:()=>({})}:document,Os=()=>ur.createComment(""),ks=e=>e===null||typeof e!="object"&&typeof e!="function",q0=Array.isArray,H0=e=>q0(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Uu=`[
2408
+ \f\r]`,Ls=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,L0=/-->/g,D0=/>/g,ar=RegExp(`>|${Uu}(?:([^\\s"'>=/]+)(${Uu}*=${Uu}*(?:[^
2409
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),O0=/'/g,k0=/"/g,U0=/^(?:script|style|textarea|title)$/i,B0=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),F0=B0(1),sR=B0(2),le=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),M0=new WeakMap,or=ur.createTreeWalker(ur,129,null,!1);function $0(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return R0!==void 0?R0.createHTML(t):t}var V0=(e,t)=>{let r=e.length-1,i=[],s,n=t===2?"<svg>":"",o=Ls;for(let u=0;u<r;u++){let c=e[u],d,m,g=-1,_=0;for(;_<c.length&&(o.lastIndex=_,m=o.exec(c),m!==null);)_=o.lastIndex,o===Ls?m[1]==="!--"?o=L0:m[1]!==void 0?o=D0:m[2]!==void 0?(U0.test(m[2])&&(s=RegExp("</"+m[2],"g")),o=ar):m[3]!==void 0&&(o=ar):o===ar?m[0]===">"?(o=s!=null?s:Ls,g=-1):m[1]===void 0?g=-2:(g=o.lastIndex-m[2].length,d=m[1],o=m[3]===void 0?ar:m[3]==='"'?k0:O0):o===k0||o===O0?o=ar:o===L0||o===D0?o=Ls:(o=ar,s=void 0);let v=o===ar&&e[u+1].startsWith("/>")?" ":"";n+=o===Ls?c+Xb:g>=0?(i.push(d),c.slice(0,g)+La+c.slice(g)+ce+v):c+ce+(g===-2?(i.push(void 0),u):v)}return[$0(e,n+(e[r]||"<?>")+(t===2?"</svg>":"")),i]},Ms=class e{constructor({strings:t,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,u=t.length-1,c=this.parts,[d,m]=V0(t,r);if(this.el=e.createElement(d,i),or.currentNode=this.el.content,r===2){let g=this.el.content,_=g.firstChild;_.remove(),g.append(..._.childNodes)}for(;(s=or.nextNode())!==null&&c.length<u;){if(s.nodeType===1){if(s.hasAttributes()){let g=[];for(let _ of s.getAttributeNames())if(_.endsWith(La)||_.startsWith(ce)){let v=m[o++];if(g.push(_),v!==void 0){let N=s.getAttribute(v.toLowerCase()+La).split(ce),L=/([.?@])?(.*)/.exec(v);c.push({type:1,index:n,name:L[2],strings:N,ctor:L[1]==="."?Oa:L[1]==="?"?ka:L[1]==="@"?Ma:lr})}else c.push({type:6,index:n})}for(let _ of g)s.removeAttribute(_)}if(U0.test(s.tagName)){let g=s.textContent.split(ce),_=g.length-1;if(_>0){s.textContent=jr?jr.emptyScript:"";for(let v=0;v<_;v++)s.append(g[v],Os()),or.nextNode(),c.push({type:2,index:++n});s.append(g[_],Os())}}}else if(s.nodeType===8)if(s.data===Bu)c.push({type:2,index:n});else{let g=-1;for(;(g=s.data.indexOf(ce,g+1))!==-1;)c.push({type:7,index:n}),g+=ce.length-1}n++}}static createElement(t,r){let i=ur.createElement("template");return i.innerHTML=t,i}};function cr(e,t,r=e,i){var s,n,o,u;if(t===le)return t;let c=i!==void 0?(s=r._$Co)===null||s===void 0?void 0:s[i]:r._$Cl,d=ks(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==d&&((n=c==null?void 0:c._$AO)===null||n===void 0||n.call(c,!1),d===void 0?c=void 0:(c=new d(e),c._$AT(e,r,i)),i!==void 0?((o=(u=r)._$Co)!==null&&o!==void 0?o:u._$Co=[])[i]=c:r._$Cl=c),c!==void 0&&(t=cr(e,c._$AS(e,t.values),c,i)),t}var Da=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var r;let{el:{content:i},parts:s}=this._$AD,n=((r=t==null?void 0:t.creationScope)!==null&&r!==void 0?r:ur).importNode(i,!0);or.currentNode=n;let o=or.nextNode(),u=0,c=0,d=s[0];for(;d!==void 0;){if(u===d.index){let m;d.type===2?m=new Kr(o,o.nextSibling,this,t):d.type===1?m=new d.ctor(o,d.name,d.strings,this,t):d.type===6&&(m=new Pa(o,this,t)),this._$AV.push(m),d=s[++c]}u!==(d==null?void 0:d.index)&&(o=or.nextNode(),u++)}return or.currentNode=ur,n}v(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Kr=class e{constructor(t,r,i,s){var n;this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=s,this._$Cp=(n=s==null?void 0:s.isConnected)===null||n===void 0||n}get _$AU(){var t,r;return(r=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=cr(this,t,r),ks(t)?t===rt||t==null||t===""?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==le&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):H0(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==rt&&ks(this._$AH)?this._$AA.nextSibling.data=t:this.$(ur.createTextNode(t)),this._$AH=t}g(t){var r;let{values:i,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Ms.createElement($0(s.h,s.h[0]),this.options)),s);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===n)this._$AH.v(i);else{let o=new Da(n,this),u=o.u(this.options);o.v(i),this.$(u),this._$AH=o}}_$AC(t){let r=M0.get(t.strings);return r===void 0&&M0.set(t.strings,r=new Ms(t)),r}T(t){q0(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of t)s===r.length?r.push(i=new e(this.k(Os()),this.k(Os()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(t=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){var r;this._$AM===void 0&&(this._$Cp=t,(r=this._$AP)===null||r===void 0||r.call(this,t))}},lr=class{constructor(t,r,i,s,n){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=rt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)t=cr(this,t,r,0),o=!ks(t)||t!==this._$AH&&t!==le,o&&(this._$AH=t);else{let u=t,c,d;for(t=n[0],c=0;c<n.length-1;c++)d=cr(this,u[i+c],r,c),d===le&&(d=this._$AH[c]),o||(o=!ks(d)||d!==this._$AH[c]),d===rt?t=rt:t!==rt&&(t+=(d!=null?d:"")+n[c+1]),this._$AH[c]=d}o&&!s&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Oa=class extends lr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}},Wb=jr?jr.emptyScript:"",ka=class extends lr{constructor(){super(...arguments),this.type=4}j(t){t&&t!==rt?this.element.setAttribute(this.name,Wb):this.element.removeAttribute(this.name)}},Ma=class extends lr{constructor(t,r,i,s,n){super(t,r,i,s,n),this.type=5}_$AI(t,r=this){var i;if((t=(i=cr(this,t,r,0))!==null&&i!==void 0?i:rt)===le)return;let s=this._$AH,n=t===rt&&s!==rt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==rt&&(s===rt||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},Pa=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){cr(this,t)}},Y0={O:La,P:ce,A:Bu,C:1,M:V0,L:Da,R:H0,D:cr,I:Kr,V:lr,H:ka,N:Ma,U:Oa,F:Pa},P0=Ds.litHtmlPolyfillSupport;P0==null||P0(Ms,Kr),((Hu=Ds.litHtmlVersions)!==null&&Hu!==void 0?Hu:Ds.litHtmlVersions=[]).push("2.8.0");var Ps=(e,t,r)=>{var i,s;let n=(i=r==null?void 0:r.renderBefore)!==null&&i!==void 0?i:t,o=n._$litPart$;if(o===void 0){let u=(s=r==null?void 0:r.renderBefore)!==null&&s!==void 0?s:null;n._$litPart$=o=new Kr(t.insertBefore(Os(),u),u,void 0,r!=null?r:{})}return o._$AI(e),o};var Fu,$u;var zr=class extends ue{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,r;let i=super.createRenderRoot();return(t=(r=this.renderOptions).renderBefore)!==null&&t!==void 0||(r.renderBefore=i.firstChild),i}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ps(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return le}};zr.finalized=!0,zr._$litElement$=!0,(Fu=globalThis.litElementHydrateSupport)===null||Fu===void 0||Fu.call(globalThis,{LitElement:zr});var G0=globalThis.litElementPolyfillSupport;G0==null||G0({LitElement:zr});(($u=globalThis.litElementVersions)!==null&&$u!==void 0?$u:globalThis.litElementVersions=[]).push("3.3.3");var qs,X0=0;function Vu(e){qs=e}function Yu(){qs=null,X0=0}function W0(){return X0++}var qa=Symbol("haunted.phase"),Qr=Symbol("haunted.hook"),Gu=Symbol("haunted.update"),Xu=Symbol("haunted.commit"),Kt=Symbol("haunted.effects"),Ne=Symbol("haunted.layoutEffects"),Hs="haunted.context";var jb,Kb,zb,Us=class{constructor(t,r){P(this,"update");P(this,"host");P(this,"virtual");P(this,jb);P(this,Kb);P(this,zb);this.update=t,this.host=r,this[Qr]=new Map,this[Kt]=[],this[Ne]=[]}run(t){Vu(this);let r=t();return Yu(),r}_runEffects(t){let r=this[t];Vu(this);for(let i of r)i.call(this);Yu()}runEffects(){this._runEffects(Kt)}runLayoutEffects(){this._runEffects(Ne)}teardown(){this[Qr].forEach(r=>{typeof r.teardown=="function"&&r.teardown()})}};jb=Qr,Kb=Kt,zb=Ne;var Qb=Promise.resolve().then.bind(Promise.resolve());function K0(){let e=[],t;function r(){t=null;let i=e;e=[];for(var s=0,n=i.length;s<n;s++)i[s]()}return function(i){e.push(i),t==null&&(t=Qb(r))}}var Jb=K0(),j0=K0(),Zb,dr=class{constructor(t,r){P(this,"renderer");P(this,"host");P(this,"state");P(this,Zb);P(this,"_updateQueued");this.renderer=t,this.host=r,this.state=new Us(this.update.bind(this),r),this[qa]=null,this._updateQueued=!1}update(){this._updateQueued||(Jb(()=>{let t=this.handlePhase(Gu);j0(()=>{this.handlePhase(Xu,t),j0(()=>{this.handlePhase(Kt)})}),this._updateQueued=!1}),this._updateQueued=!0)}handlePhase(t,r){switch(this[qa]=t,t){case Xu:this.commit(r),this.runEffects(Ne);return;case Gu:return this.render();case Kt:return this.runEffects(Kt)}}render(){return this.state.run(()=>this.renderer.call(this.host,this.host))}runEffects(t){this.state._runEffects(t)}teardown(){this.state.teardown()}};Zb=qa;var tE=(e="")=>e.replace(/-+([a-z])?/g,(t,r)=>r?r.toUpperCase():"");function z0(e){class t extends dr{constructor(n,o,u){super(n,u||o);P(this,"frag");this.frag=o}commit(n){e(n,this.frag)}}function r(i,s,n){let o=(n||s||{}).baseElement||HTMLElement,{observedAttributes:u=[],useShadowDOM:c=!0,shadowRootInit:d={}}=n||s||{};class m extends o{constructor(){super();P(this,"_scheduler");c===!1?this._scheduler=new t(i,this):(this.attachShadow(S({mode:"open"},d)),this._scheduler=new t(i,this.shadowRoot,this))}static get observedAttributes(){return i.observedAttributes||u||[]}connectedCallback(){this._scheduler.update()}disconnectedCallback(){this._scheduler.teardown()}attributeChangedCallback(L,H,Y){if(H===Y)return;let bt=Y===""?!0:Y;Reflect.set(this,tE(L),bt)}}function g(v){let N=v,L=!1;return Object.freeze({enumerable:!0,configurable:!0,get(){return N},set(H){L&&N===H||(L=!0,N=H,this._scheduler&&this._scheduler.update())}})}let _=new Proxy(o.prototype,{getPrototypeOf(v){return v},set(v,N,L,H){let Y;return N in v?(Y=Object.getOwnPropertyDescriptor(v,N),Y&&Y.set?(Y.set.call(H,L),!0):(Reflect.set(v,N,L,H),!0)):(typeof N=="symbol"||N[0]==="_"?Y={enumerable:!0,configurable:!0,writable:!0,value:L}:Y=g(L),Object.defineProperty(H,N,Y),Y.set&&Y.set.call(H,L),!0)}});return Object.setPrototypeOf(m.prototype,_),m}return r}var vt=class{constructor(t,r){P(this,"id");P(this,"state");this.id=t,this.state=r}};function eE(e,...t){let r=W0(),i=qs[Qr],s=i.get(r);return s||(s=new e(r,qs,...t),i.set(r,s)),s.update(...t)}function Vt(e){return eE.bind(null,e)}function Ha(e){return Vt(class extends vt{constructor(r,i,s,n){super(r,i);P(this,"callback");P(this,"lastValues");P(this,"values");P(this,"_teardown");e(i,this)}update(r,i){this.callback=r,this.values=i}call(){(!this.values||this.hasChanged())&&this.run(),this.lastValues=this.values}run(){this.teardown(),this._teardown=this.callback.call(this.state)}teardown(){typeof this._teardown=="function"&&this._teardown()}hasChanged(){return!this.lastValues||this.values.some((r,i)=>this.lastValues[i]!==r)}})}function Wu(e,t){e[Kt].push(t)}var Ua=Ha(Wu);var ju=Vt(class extends vt{constructor(t,r,i){super(t,r);P(this,"Context");P(this,"value");P(this,"_ranEffect");P(this,"_unsubscribe");this._updater=this._updater.bind(this),this._ranEffect=!1,this._unsubscribe=null,Wu(r,this)}update(t){if(this.state.virtual)throw new Error("can't be used with virtual components");return this.Context!==t&&(this._subscribe(t),this.Context=t),this.value}call(){this._ranEffect||(this._ranEffect=!0,this._unsubscribe&&this._unsubscribe(),this._subscribe(this.Context),this.state.update())}_updater(t){this.value=t,this.state.update()}_subscribe(t){let r={Context:t,callback:this._updater};this.state.host.dispatchEvent(new CustomEvent(Hs,{detail:r,bubbles:!0,cancelable:!0,composed:!0}));let{unsubscribe:i=null,value:s}=r;this.value=i?s:t.defaultValue,this._unsubscribe=i}teardown(){this._unsubscribe&&this._unsubscribe()}});function Q0(e){return t=>{let r={Provider:class extends HTMLElement{constructor(){super();P(this,"listeners");P(this,"_value");this.listeners=new Set,this.addEventListener(Hs,this)}disconnectedCallback(){this.removeEventListener(Hs,this)}handleEvent(s){let{detail:n}=s;n.Context===r&&(n.value=this.value,n.unsubscribe=this.unsubscribe.bind(this,n.callback),this.listeners.add(n.callback),s.stopPropagation())}unsubscribe(s){this.listeners.delete(s)}set value(s){this._value=s;for(let n of this.listeners)n(s)}get value(){return this._value}},Consumer:e(function({render:i}){let s=ju(r);return i(s)}),defaultValue:t};return r}}var Ku=Vt(class extends vt{constructor(t,r,i,s){super(t,r);P(this,"value");P(this,"values");this.value=i(),this.values=s}update(t,r){return this.hasChanged(r)&&(this.values=r,this.value=t()),this.value}hasChanged(t=[]){return t.some((r,i)=>this.values[i]!==r)}});function rE(e,t){e[Ne].push(t)}var J0=Ha(rE);var Ba=Vt(class extends vt{constructor(t,r,i){super(t,r);P(this,"args");this.updater=this.updater.bind(this),typeof i=="function"&&(i=i()),this.makeArgs(i)}update(){return this.args}updater(t){if(typeof t=="function"){let r=t,[i]=this.args;t=r(i)}this.makeArgs(t),this.state.update()}makeArgs(t){this.args=Object.freeze([t,this.updater])}});var fL=Promise.resolve();var iE=Vt(class extends vt{constructor(t,r,i,s,n){super(t,r);P(this,"reducer");P(this,"currentState");this.dispatch=this.dispatch.bind(this),this.currentState=n!==void 0?n(s):s}update(t){return this.reducer=t,[this.currentState,this.dispatch]}dispatch(t){this.currentState=this.reducer(this.currentState,t),this.state.update()}});function zu({render:e}){let t=z0(e),r=Q0(t);return{component:t,createContext:r}}var Qu={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ju=e=>(...t)=>({_$litDirective$:e,values:t}),Bs=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,i){this._$Ct=t,this._$AM=r,this._$Ci=i}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}};var{I:YL}=Y0;var Z0=e=>e.strings===void 0;var Fs=(e,t)=>{var r,i;let s=e._$AN;if(s===void 0)return!1;for(let n of s)(i=(r=n)._$AO)===null||i===void 0||i.call(r,t,!1),Fs(n,t);return!0},Fa=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while((r==null?void 0:r.size)===0)},th=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),aE(t)}};function sE(e){this._$AN!==void 0?(Fa(this),this._$AM=e,th(this)):this._$AM=e}function nE(e,t=!1,r=0){let i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(t)if(Array.isArray(i))for(let n=r;n<i.length;n++)Fs(i[n],!1),Fa(i[n]);else i!=null&&(Fs(i,!1),Fa(i));else Fs(this,e)}var aE=e=>{var t,r,i,s;e.type==Qu.CHILD&&((t=(i=e)._$AP)!==null&&t!==void 0||(i._$AP=nE),(r=(s=e)._$AQ)!==null&&r!==void 0||(s._$AQ=sE))},$a=class extends Bs{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,i){super._$AT(t,r,i),th(this),this.isConnected=t._$AU}_$AO(t,r=!0){var i,s;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)===null||i===void 0||i.call(this):(s=this.disconnected)===null||s===void 0||s.call(this)),r&&(Fs(this,t),Fa(this))}setValue(t){if(Z0(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var eh=Array.prototype.includes,Zu=new WeakMap,rh=new WeakMap,tc=class extends dr{constructor(r,i,s){super(r,i);P(this,"args");P(this,"setValue");this.state.virtual=!0,this.setValue=s}render(){return this.state.run(()=>this.renderer.apply(this.host,this.args))}commit(r){this.setValue(r)}teardown(){super.teardown();let r=rh.get(this);Zu.delete(r)}};function ih(){function e(t){class r extends $a{constructor(n){super(n);P(this,"cont");this.cont=void 0}update(n,o){return this.cont=Zu.get(n),(!this.cont||this.cont.renderer!==t)&&(this.cont=new tc(t,n,u=>{this.setValue(u)}),Zu.set(n,this.cont),rh.set(this.cont,n),ec(this.cont,n)),this.cont.args=o,this.cont.update(),this.render(o)}render(n){return le}}return Ju(r)}return e}function ec(e,t,r=t.startNode){let i=r.parentNode,s=new MutationObserver(n=>{for(let o of n)if(eh.call(o.removedNodes,r)){s.disconnect(),r.parentNode instanceof ShadowRoot?ec(e,t):e.teardown();break}else if(eh.call(o.addedNodes,r.nextSibling)){s.disconnect(),ec(e,t,r.nextSibling||void 0);break}});s.observe(i,{childList:!0})}var{component:rc,createContext:oE}=zu({render:Ps}),ic=ih();var uE=async e=>{let r=await(await fetch(e)).text();return $t(r,{xmlMode:!0,xml:{xmlMode:!0}})('resource[type="imsqti_test_xmlv3p0"]').first()},cE=async e=>{let r=await(await fetch(e)).text(),i=$t(r,{xmlMode:!0,xml:{xmlMode:!0}}),s=[];return i("qti-assessment-item-ref").each((n,o)=>{let u=i(o).attr("identifier"),c=i(o).attr("href"),d=i(o).attr("category");s.push({identifier:u,href:c,category:d})}),s},$s=new AbortController;async function sc(e){let t=async i=>{try{return await(await fetch(i,{signal:r})).text()}catch(s){s.name==="AbortError"?console.log("Fetch aborted"):console.error(s)}return""};$s==null||$s.abort(),$s=new AbortController;let r=$s.signal;return await t(e)}var nc=async e=>{e.endsWith("/")||(e=e+"/");let t=await uE(e+"/imsmanifest.xml"),r=await cE(e+t.attr("href"));return{itemLocation:`${e}/${t.attr("href").substring(0,t.attr("href").lastIndexOf("/"))}/`,items:r,testIdentifier:t.attr("identifier")}};var sh=(e,t,r)=>{let i=Tr();return e?E`
2662
2410
  <qti-assessment-test
2663
2411
  ${un(i)}
2664
- identifier="${t.testIdentifier}"
2665
- @on-test-set-item=${async({detail:s})=>{let n=i.value.itemRefEls.get(s.new),o=await ic(`${t.itemLocation}/${n.href}`);n.xml=o,n.scrollIntoView({block:"center",inline:"center",behavior:"instant"}),i.value.itemRefEls.forEach((u,c)=>u.identifier!==n.identifier&&(u.xml=""))}}
2666
- @qti-assessment-first-updated=${s=>{}}
2412
+ identifier="${e.testIdentifier}"
2413
+ @on-test-set-item=${async({detail:s})=>{var u;let n=i.value.itemRefEls.get(s.new),o=await sc(`${e.itemLocation}/${n.href}`);n.xml=o,(u=i.value)==null||u.itemRefEls.forEach((c,d)=>c.identifier!==n.identifier&&(c.xml=""))}}
2414
+ @qti-assessment-first-updated=${s=>{r&&(i.value.context=r)}}
2415
+ item-index=${t}
2667
2416
  >
2668
- <test-show-index></test-show-index>
2417
+ <test-show-index></test-show-index> : <test-item-id></test-item-id>
2418
+
2669
2419
  <qti-test-part>
2670
2420
  <qti-assessment-section>
2671
- ${t.items.map(s=>E`<qti-assessment-item-ref
2672
- item-location=${`${t.itemLocation}`}
2421
+ ${e.items.map(s=>E`<qti-assessment-item-ref
2422
+ item-location=${`${e.itemLocation}`}
2673
2423
  identifier="${s.identifier}"
2674
2424
  href="${s.href}"
2675
2425
  category="${yt(s.category)}"
@@ -2679,32 +2429,18 @@ video {
2679
2429
  </qti-test-part>
2680
2430
 
2681
2431
  <div class="nav">
2682
- <test-prev>
2683
- <svg class="arrow" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
2684
- <path
2685
- fill-rule="evenodd"
2686
- d="M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z"
2687
- clip-rule="evenodd"
2688
- />
2689
- </svg>
2690
- </test-prev>
2691
-
2432
+ <test-prev> &#9001; </test-prev>
2692
2433
  <test-paging-buttons></test-paging-buttons>
2693
-
2694
- <test-next>
2695
- <svg class="arrow" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
2696
- <path
2697
- fill-rule="evenodd"
2698
- d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"
2699
- clip-rule="evenodd"
2700
- />
2701
- </svg>
2702
- </test-next>
2434
+ <test-next> &#9002; </test-next>
2703
2435
  </div>
2704
2436
 
2705
2437
  <test-slider></test-slider>
2438
+
2439
+ <test-toggle-scoring></test-toggle-scoring>
2440
+
2441
+ <test-manual-scoring></test-manual-scoring>
2706
2442
  </qti-assessment-test>
2707
- `:""};var ih=`*, ::before, ::after {
2443
+ `:""};var nh=`*, ::before, ::after {
2708
2444
  --tw-border-spacing-x: 0;
2709
2445
  --tw-border-spacing-y: 0;
2710
2446
  --tw-translate-x: 0;
@@ -2852,10 +2588,10 @@ test-prev::part(button) {
2852
2588
  border-bottom-left-radius: 0.375rem;
2853
2589
  --tw-bg-opacity: 1;
2854
2590
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
2855
- padding-left: 0.5rem;
2856
- padding-right: 0.5rem;
2857
2591
  padding-top: 0.5rem;
2858
2592
  padding-bottom: 0.5rem;
2593
+ padding-left: 0.5rem;
2594
+ padding-right: 1rem;
2859
2595
  --tw-text-opacity: 1;
2860
2596
  color: rgb(156 163 175 / var(--tw-text-opacity));
2861
2597
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
@@ -2885,10 +2621,10 @@ test-next::part(button) {
2885
2621
  border-bottom-right-radius: 0.375rem;
2886
2622
  --tw-bg-opacity: 1;
2887
2623
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
2888
- padding-left: 0.5rem;
2889
- padding-right: 0.5rem;
2890
2624
  padding-top: 0.5rem;
2891
2625
  padding-bottom: 0.5rem;
2626
+ padding-left: 1rem;
2627
+ padding-right: 0.5rem;
2892
2628
  --tw-text-opacity: 1;
2893
2629
  color: rgb(156 163 175 / var(--tw-text-opacity));
2894
2630
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
@@ -2973,35 +2709,31 @@ test-paging-buttons > button[data-active-item='true']:focus-visible {
2973
2709
  outline-offset: 2px;
2974
2710
  outline-color: #4f46e5;
2975
2711
  }
2712
+ /* qti-test-part {
2713
+ qti-assessment-section {
2714
+ @apply flex aspect-video gap-8 overflow-x-hidden;
2715
+ qti-assessment-item-ref {
2716
+ @apply block h-full w-full max-w-none flex-shrink-0 bg-white p-8;
2717
+ }
2718
+ }
2719
+ } */
2976
2720
  qti-test-part qti-assessment-section {
2977
- display: flex;
2978
2721
  aspect-ratio: 16 / 9;
2979
- gap: 2rem;
2980
- overflow-x: hidden;
2981
- }
2982
- qti-test-part qti-assessment-section qti-assessment-item-ref {
2983
- display: block;
2984
- height: 100%;
2985
2722
  width: 100%;
2986
- max-width: none;
2987
- flex-shrink: 0;
2988
- --tw-bg-opacity: 1;
2989
- background-color: rgb(255 255 255 / var(--tw-bg-opacity));
2990
- padding: 2rem;
2991
2723
  }
2992
- `;function cE(e){let[t,r]=Jr();return Qr(()=>{var s;let i=new CSSStyleSheet;i.replaceSync(ih),(s=e.shadowRoot)==null||s.adoptedStyleSheets.push(i)},[]),Qr(()=>{(async s=>await sc(s))(e.packageUri).then(s=>{r(s)})},[e.packageUri]),E`${t?rc(rh)(t):""}`}var sh=ec(cE,{observedAttributes:["package-uri"]});customElements.define("qti-test",sh);var Zr=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){var n;let{items:r,itemIndex:i}=this._testContext,s=Math.min(i+1,r.length-1);return E`
2724
+ `;function dE(e){let[t,r]=Ba();return Ua(()=>{var s;let i=new CSSStyleSheet;i.replaceSync(nh),(s=e.shadowRoot)==null||s.adoptedStyleSheets.push(i)},[]),Ua(()=>{(async s=>await nc(s))(e.packageUri).then(s=>{r(s)})},[e.packageUri]),E`${t?ic(sh)(t):""}`}var ah=rc(dE,{observedAttributes:["package-uri"]});customElements.define("qti-test",ah);var Jr=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){var n;let{items:r,itemIndex:i}=this._testContext,s=Math.min(i+1,r.length-1);return E`
2993
2725
  <button part="button" @click=${o=>this._requestItem(s)} id="${(n=r[s])==null?void 0:n.identifier}">
2994
2726
  <slot></slot>
2995
2727
  </button>
2996
- `}};m([z({context:K,subscribe:!0}),M()],Zr.prototype,"_testContext",2),Zr=m([D("test-next")],Zr);var ti=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){var n;let{items:r,itemIndex:i}=this._testContext,s=Math.max(i-1,0);return E`
2728
+ `}};p([j({context:X,subscribe:!0}),M()],Jr.prototype,"_testContext",2),Jr=p([R("test-next")],Jr);var Zr=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){var n;let{items:r,itemIndex:i}=this._testContext,s=Math.max(i-1,0);return E`
2997
2729
  <button part="button" @click=${o=>this._requestItem(s)} id="${(n=r[s])==null?void 0:n.identifier}">
2998
2730
  <slot></slot>
2999
2731
  </button>
3000
- `}};m([z({context:K,subscribe:!0}),M()],ti.prototype,"_testContext",2),ti=m([D("test-prev")],ti);var ei=class extends y{render(){let{items:r,itemIndex:i}=this._testProvider;return E`
2732
+ `}};p([j({context:X,subscribe:!0}),M()],Zr.prototype,"_testContext",2),Zr=p([R("test-prev")],Zr);var ti=class extends y{render(){let{items:r,itemIndex:i}=this._testProvider;return E`
3001
2733
  <progress part="progress" id="file" max=${r.length-1} value=${i}>
3002
2734
  ${i/(r.length-1)}%
3003
2735
  </progress>
3004
- `}};m([z({context:K,subscribe:!0}),M()],ei.prototype,"_testProvider",2),ei=m([D("test-progress")],ei);var ri=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r,itemIndex:i}=this._testProvider;return E`
2736
+ `}};p([j({context:X,subscribe:!0}),M()],ti.prototype,"_testProvider",2),ti=p([R("test-progress")],ti);var ei=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r,itemIndex:i}=this._testProvider;return E`
3005
2737
  <input
3006
2738
  part="input"
3007
2739
  type="range"
@@ -3010,7 +2742,7 @@ qti-test-part qti-assessment-section qti-assessment-item-ref {
3010
2742
  max=${r.length-1}
3011
2743
  @input=${s=>this._requestItem(+s.target.value)}
3012
2744
  />
3013
- `}};m([z({context:K,subscribe:!0}),M()],ri.prototype,"_testProvider",2),ri=m([D("test-slider")],ri);var ii=class extends y{createRenderRoot(){return this}_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r,itemIndex:i}=this._testProvider;return E`
2745
+ `}};p([j({context:X,subscribe:!0}),M()],ei.prototype,"_testProvider",2),ei=p([R("test-slider")],ei);var ri=class extends y{createRenderRoot(){return this}_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r,itemIndex:i}=this._testProvider;return E`
3014
2746
  ${r.map((s,n)=>{var o;return E` <label>
3015
2747
  <input
3016
2748
  type="radio"
@@ -3024,25 +2756,49 @@ qti-test-part qti-assessment-section qti-assessment-item-ref {
3024
2756
  />
3025
2757
  ${n+1}
3026
2758
  </label>`})}
3027
- `}};m([z({context:K,subscribe:!0}),M()],ii.prototype,"_testProvider",2),ii=m([D("test-paging-radio")],ii);var dr=class extends y{constructor(){super(...arguments);this.maxDisplayedItems=5}createRenderRoot(){return this}_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r,itemIndex:i}=this._testProvider,s=Math.max(0,i-this.maxDisplayedItems),n=Math.min(r.length-1,i+this.maxDisplayedItems),o=r.slice(s,n+1);return E`
2759
+ `}};p([j({context:X,subscribe:!0}),M()],ri.prototype,"_testProvider",2),ri=p([R("test-paging-radio")],ri);var hr=class extends y{constructor(){super(...arguments);this.maxDisplayedItems=5}createRenderRoot(){return this}_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r,itemIndex:i}=this._testProvider,s=Math.max(0,i-this.maxDisplayedItems),n=Math.min(r.length-1,i+this.maxDisplayedItems),o=r.slice(s,n+1);return E`
3028
2760
  ${o.map((u,c)=>{var d;return E`<button
3029
2761
  part="button"
3030
- data-completion-status=${(d=u.variables.find(p=>p.identifier==="completionStatus"))==null?void 0:d.value}
2762
+ data-completion-status=${(d=u.variables.find(m=>m.identifier==="completionStatus"))==null?void 0:d.value}
3031
2763
  data-active-item=${s+c===i}
3032
- @click=${p=>this._requestItem(s+c)}
2764
+ @click=${m=>this._requestItem(s+c)}
3033
2765
  id="${u.identifier}"
3034
2766
  >
3035
2767
  ${s+c+1}
3036
2768
  </button>`})}
3037
- `}};m([z({context:K,subscribe:!0}),M()],dr.prototype,"_testProvider",2),m([v({type:Number})],dr.prototype,"maxDisplayedItems",2),dr=m([D("test-paging-buttons")],dr);var si=class extends y{render(){var n,o,u;let{items:r,itemIndex:i}=this._testProvider;if(i==null)return E``;let s=(u=(o=this.closest("qti-assessment-test"))==null?void 0:o.itemRefEls.get((n=r[i])==null?void 0:n.identifier))==null?void 0:u.assessmentItem;return E`
3038
- <button part="button" @click=${c=>s.showCorrectResponse()}>
2769
+ `}};p([j({context:X,subscribe:!0}),M()],hr.prototype,"_testProvider",2),p([x({type:Number})],hr.prototype,"maxDisplayedItems",2),hr=p([R("test-paging-buttons")],hr);var ii=class extends y{render(){var n,o,u;let{items:r,itemIndex:i}=this._testProvider;if(i==null)return E``;let s=(u=(o=this.closest("qti-assessment-test"))==null?void 0:o.itemRefEls.get((n=r[i])==null?void 0:n.identifier))==null?void 0:u.assessmentItem;return E`
2770
+ <button part="button" @click=${c=>s.showCorrectResponse(!0)}>
3039
2771
  <slot></slot>
3040
2772
  </button>
3041
- `}};m([z({context:K,subscribe:!0}),M()],si.prototype,"_testProvider",2),si=m([D("test-show-correct")],si);var ni=class extends y{constructor(){super(...arguments);this._printed=""}render(){return E`${this._printed}<slot @slotchange=${this.handleSlotChange}></slot>`}handleSlotChange(r){var s,n;let i=Array.from((s=this.childNodes)!=null?s:[]).find(o=>o.nodeType===Node.COMMENT_NODE);try{this.operatorFunction=new Function("context","item",(n=i.textContent)!=null?n:"")}catch(o){console.error("custom-operator contains invalid javascript code",o)}this._context=new Yt(this,K,o=>{this._printed=this.operatorFunction(o,this.closest("qti-assessment-item"))},!0)}};m([M()],ni.prototype,"_printed",2),ni=m([D("test-script")],ni);var ai=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r,itemIndex:i}=this._testContext,s=r[i-1];return E` ${i+1}/${r.length} `}};m([z({context:K,subscribe:!0}),M()],ai.prototype,"_testContext",2),ai=m([D("test-show-index")],ai);var oi=class extends y{render(){return E`
2773
+ `}};p([j({context:X,subscribe:!0}),M()],ii.prototype,"_testProvider",2),ii=p([R("test-show-correct")],ii);var si=class extends y{constructor(){super(...arguments);this._printed=""}render(){return E`${this._printed}<slot @slotchange=${this.handleSlotChange}></slot>`}handleSlotChange(r){var s,n;let i=Array.from((s=this.childNodes)!=null?s:[]).find(o=>o.nodeType===Node.COMMENT_NODE);try{this.operatorFunction=new Function("context","item",(n=i.textContent)!=null?n:"")}catch(o){console.error("custom-operator contains invalid javascript code",o)}this._context=new fe(this,X,o=>{this._printed=this.operatorFunction(o,this.closest("qti-assessment-item"))},!0)}};p([M()],si.prototype,"_printed",2),si=p([R("test-script")],si);var ni=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r,itemIndex:i}=this._testContext,s=r[i-1];return E` ${i+1}/${r.length} `}};p([j({context:X,subscribe:!0}),M()],ni.prototype,"_testContext",2),ni=p([R("test-show-index")],ni);var ai=class extends y{render(){return E`
3042
2774
  <pre>
3043
- ${JSON.stringify(U(N({},this._testProvider),{items:this._testProvider.items.map(r=>U(N({},r),{itemEl:null}))}),null,2)}</pre
2775
+ ${JSON.stringify(U(S({},this._testProvider),{items:this._testProvider.items.map(r=>U(S({},r),{itemEl:null}))}),null,2)}</pre
3044
2776
  >
3045
- `}};m([z({context:K,subscribe:!0}),M()],oi.prototype,"_testProvider",2),oi=m([D("test-print-variables")],oi);var ui=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r}=this._testContext,i=r.reduce((n,o)=>{let u=o.variables.find(c=>c.identifier==="SCORE");return n+(u?+u.value:0)},0),s=r.reduce((n,o)=>{let u=o.variables.find(c=>c.identifier==="MAXSCORE");return n+(u?+u.value:0)},0);return E` ${i}/${s}`}};m([z({context:K,subscribe:!0}),M()],ui.prototype,"_testContext",2),ui=m([D("test-print-score")],ui);0&&(module.exports={Events,Interaction,QtPrintedVariable,QtiAnd,QtiAssessmentItem,QtiAssessmentItemRef,QtiAssessmentTest,QtiAssociableHotspot,QtiAssociateInteraction,QtiBaseValue,QtiChoice,QtiChoiceElementSelected,QtiChoiceInteraction,QtiCompanionMaterialsInfo,QtiConditionExpression,QtiContains,QtiCorrect,QtiCustomOperator,QtiEndAttemptInteraction,QtiEqual,QtiEqualRounded,QtiExpression,QtiExtendedTextInteraction,QtiFeedbackBlock,QtiFeedbackInline,QtiGap,QtiGapImg,QtiGapMatchInteraction,QtiGapText,QtiGraphicAssociateInteraction,QtiGraphicGapMatchInteraction,QtiGraphicOrderInteraction,QtiGt,QtiGte,QtiHotspotChoice,QtiHotspotInteraction,QtiHottext,QtiHottextInteraction,QtiInlineChoice,QtiInlineChoiceInteraction,QtiInteractionChanged,QtiInteractionResponse,QtiIsNull,QtiItem,QtiLooseChoice,QtiLt,QtiLte,QtiMapResponse,QtiMapping,QtiMatch,QtiMatchInteraction,QtiMediaInteraction,QtiMember,QtiModalFeedback,QtiMultiple,QtiNot,QtiOr,QtiOrderInteraction,QtiOrdered,QtiOutcomeChanged,QtiOutcomeDeclaration,QtiPortableCustomInteraction,QtiPositionObjectStage,QtiProduct,QtiPrompt,QtiRegisterChoice,QtiRegisterHotspot,QtiRegisterInteraction,QtiRegisterVariable,QtiResponseCondition,QtiResponseDeclaration,QtiResponseElse,QtiResponseElseIf,QtiResponseIf,QtiResponseProcessing,QtiRule,QtiSPositionObjectInteraction,QtiSelectPointInteraction,QtiSetOutcomeValue,QtiSimpleAssociableChoice,QtiSimpleChoice,QtiSliderInteraction,QtiStringMatch,QtiStylesheet,QtiSum,QtiTest,QtiTestPart,QtiTextEntryInteraction,QtiVariable,TestContext,TestNext,TestPagingButtons,TestPagingRadio,TestPrev,TestPrintScore,TestPrintVariables,TestProgress,TestScript,TestShowCorrect,TestShowIndex,TestSlider,fetchManifestData,itemContext,qtiContentBody,qtiRubricBlock,qtiTransform,requestItem,testContext});
2777
+ `}};p([j({context:X,subscribe:!0}),M()],ai.prototype,"_testProvider",2),ai=p([R("test-print-variables")],ai);var oi=class extends y{_requestItem(r){this.dispatchEvent(new CustomEvent("on-test-request-item",{composed:!0,bubbles:!0,detail:r}))}render(){let{items:r}=this._testContext,i=r.reduce((n,o)=>{let u=o.variables.find(c=>c.identifier==="SCORE");return n+(u?+u.value:0)},0),s=r.reduce((n,o)=>{let u=o.variables.find(c=>c.identifier==="MAXSCORE");return n+(u?+u.value:0)},0);return E` ${i}/${s}`}};p([j({context:X,subscribe:!0}),M()],oi.prototype,"_testContext",2),oi=p([R("test-print-score")],oi);var zt=class extends y{constructor(){super(...arguments);this.disabled=!1;this.readonly=!1;this.value=0}textChanged(r){if(this.disabled||this.readonly)return;let i=r.target;this.value=Number(i.value),this.dispatchEvent(new CustomEvent("qti-set-outcome-value",{bubbles:!0,composed:!0,detail:{outcomeIdentifier:"SCORE",value:this.value.toString()}}))}render(){return E`
2778
+ <input
2779
+ part="input"
2780
+ type="number"
2781
+ spellcheck="false"
2782
+ autocomplete="off"
2783
+ @keyup=${this.textChanged}
2784
+ @change=${this.textChanged}
2785
+ placeholder="score"
2786
+ min=${this.min}
2787
+ max=${this.max}
2788
+ .value=${this.value.toString()}
2789
+ size="10"
2790
+ ?disabled=${this.disabled}
2791
+ ?readonly=${this.readonly}
2792
+ />
2793
+ `}};p([x({type:Boolean})],zt.prototype,"disabled",2),p([x({type:Boolean})],zt.prototype,"readonly",2),p([x({type:Number})],zt.prototype,"value",2),p([x({type:Number})],zt.prototype,"min",2),p([x({type:Number})],zt.prototype,"max",2),zt=p([R("test-manual-scoring")],zt);var Vs=class extends y{render(){let t=this.closest("qti-assessment-test");return E`
2794
+ <label>
2795
+ <input
2796
+ type="checkbox"
2797
+ @change=${r=>{let i=r.target;t.audienceContext=i.checked?"scorer":"candidate"}}
2798
+ />
2799
+ Toggle audience context
2800
+ </label>
2801
+ `}};Vs=p([R("test-toggle-scoring")],Vs);var ui=class extends y{render(){var s;let{items:r,itemIndex:i}=this._testContext;return E` ${(s=r[i])==null?void 0:s.identifier} `}};p([j({context:X,subscribe:!0}),M()],ui.prototype,"_testContext",2),ui=p([R("test-item-id")],ui);0&&(module.exports={Events,Interaction,QtPrintedVariable,QtiAnd,QtiAssessmentItem,QtiAssessmentItemRef,QtiAssessmentTest,QtiAssociableHotspot,QtiAssociateInteraction,QtiBaseValue,QtiChoice,QtiChoiceElementSelected,QtiChoiceInteraction,QtiCompanionMaterialsInfo,QtiConditionExpression,QtiContains,QtiCorrect,QtiCustomOperator,QtiEndAttemptInteraction,QtiEqual,QtiEqualRounded,QtiExpression,QtiExtendedTextInteraction,QtiFeedbackBlock,QtiFeedbackInline,QtiGap,QtiGapImg,QtiGapMatchInteraction,QtiGapText,QtiGraphicAssociateInteraction,QtiGraphicGapMatchInteraction,QtiGraphicOrderInteraction,QtiGt,QtiGte,QtiHotspotChoice,QtiHotspotInteraction,QtiHottext,QtiHottextInteraction,QtiInlineChoice,QtiInlineChoiceInteraction,QtiInteractionChanged,QtiInteractionResponse,QtiIsNull,QtiItem,QtiLooseChoice,QtiLt,QtiLte,QtiMapResponse,QtiMapping,QtiMatch,QtiMatchInteraction,QtiMediaInteraction,QtiMember,QtiModalFeedback,QtiMultiple,QtiNot,QtiOr,QtiOrderInteraction,QtiOrdered,QtiOutcomeChanged,QtiOutcomeDeclaration,QtiPortableCustomInteraction,QtiPositionObjectStage,QtiProduct,QtiPrompt,QtiRegisterChoice,QtiRegisterHotspot,QtiRegisterInteraction,QtiRegisterVariable,QtiResponseCondition,QtiResponseDeclaration,QtiResponseElse,QtiResponseElseIf,QtiResponseIf,QtiResponseProcessing,QtiRule,QtiSPositionObjectInteraction,QtiSelectPointInteraction,QtiSetOutcomeValue,QtiSimpleAssociableChoice,QtiSimpleChoice,QtiSliderInteraction,QtiStringMatch,QtiStylesheet,QtiSum,QtiTest,QtiTestPart,QtiTextEntryInteraction,QtiVariable,TestContext,TestItemId,TestManualScoring,TestNext,TestPagingButtons,TestPagingRadio,TestPrev,TestPrintScore,TestPrintVariables,TestProgress,TestScript,TestShowCorrect,TestShowIndex,TestSlider,TestToggleScoring,fetchManifestData,itemContext,qtiContentBody,qtiRubricBlock,qtiTransform,requestItem,testContext});
3046
2802
  /*! Bundled license information:
3047
2803
 
3048
2804
  @lit/reactive-element/node/decorators/custom-element.js:
@@ -3255,14 +3011,14 @@ lit-html/node/directives/ref.js:
3255
3011
  * SPDX-License-Identifier: BSD-3-Clause
3256
3012
  *)
3257
3013
 
3258
- lit-html/node/directives/repeat.js:
3014
+ lit-html/node/directives/unsafe-html.js:
3259
3015
  (**
3260
3016
  * @license
3261
3017
  * Copyright 2017 Google LLC
3262
3018
  * SPDX-License-Identifier: BSD-3-Clause
3263
3019
  *)
3264
3020
 
3265
- lit-html/node/directives/unsafe-html.js:
3021
+ lit-html/node/directives/repeat.js:
3266
3022
  (**
3267
3023
  * @license
3268
3024
  * Copyright 2017 Google LLC