@hyperdreamer/pi-webui 1.28.2 → 1.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{CodeViewer-CvZh1_p3.js → CodeViewer-DB-huRz7.js} +1 -1
- package/dist/client/assets/{index-JKl8mOYS.js → index-Cv-pHUkZ.js} +313 -313
- package/dist/client/assets/{mathjaxEngine-o3JbXC7i.js → mathjaxEngine-CzEPFGjJ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/sessions/piSessionService.js +14 -4
- package/dist/server/sessions/piSessionService.js.map +1 -1
- package/dist/server/sessions/sessionNameGenerator.js +60 -14
- package/dist/server/sessions/sessionNameGenerator.js.map +1 -1
- package/dist/server/sessions/utilityModelResolver.js +3 -2
- package/dist/server/sessions/utilityModelResolver.js.map +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./index-JKl8mOYS.js";var n=e(((e,t,n)=>{var r=n&&n.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},o=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteElement=void 0,e.LiteElement=function(){function e(e,t,n){var s,c;t===void 0&&(t={}),n===void 0&&(n=[]),this.kind=e,this.attributes=r({},t),this.children=a([],i(n),!1);try{for(var l=o(this.children),u=l.next();!u.done;u=l.next()){var d=u.value;d.parent=this}}catch(e){s={error:e}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}this.styles=null}return e}()})),r=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0,e.AbstractDOMAdaptor=function(){function e(e){e===void 0&&(e=null),this.document=e}return e.prototype.node=function(e,t,n,i){var a,o;t===void 0&&(t={}),n===void 0&&(n=[]);var s=this.create(e,i);this.setAttributes(s,t);try{for(var c=r(n),l=c.next();!l.done;l=c.next()){var u=l.value;this.append(s,u)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}return s},e.prototype.setAttributes=function(e,t){var n,i,a,o,s,c;if(t.style&&typeof t.style!=`string`)try{for(var l=r(Object.keys(t.style)),u=l.next();!u.done;u=l.next()){var d=u.value;this.setStyle(e,d.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),t.style[d])}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}if(t.properties)try{for(var f=r(Object.keys(t.properties)),p=f.next();!p.done;p=f.next()){var d=p.value;e[d]=t.properties[d]}}catch(e){a={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var m=r(Object.keys(t)),h=m.next();!h.done;h=m.next()){var d=h.value;(d!==`style`||typeof t.style==`string`)&&d!==`properties`&&this.setAttribute(e,d,t[d])}}catch(e){s={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}},e.prototype.replace=function(e,t){return this.insert(e,t),this.remove(t),t},e.prototype.childNode=function(e,t){return this.childNodes(e)[t]},e.prototype.allClasses=function(e){var t=this.getAttribute(e,`class`);return t?t.replace(/ +/g,` `).replace(/^ /,``).replace(/ $/,``).split(/ /):[]},e}()})),i=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var o={}.constructor;function s(e){return typeof e==`object`&&!!e&&(e.constructor===o||e.constructor===c)}e.isObject=s,e.APPEND=`[+]`,e.REMOVE=`[-]`,e.OPTIONS={invalidOption:`warn`,optionError:function(t,n){if(e.OPTIONS.invalidOption===`fatal`)throw Error(t);console.warn(`MathJax: `+t)}};var c=function(){function e(){}return e}();e.Expandable=c;function l(e){return Object.assign(Object.create(c.prototype),e)}e.expandable=l;function u(e){return Array.isArray(e)?e:[e]}e.makeArray=u;function d(e){return e?Object.keys(e).concat(Object.getOwnPropertySymbols(e)):[]}e.keys=d;function f(e){var t,n,i={};try{for(var a=r(d(e)),o=a.next();!o.done;o=a.next()){var u=o.value,m=Object.getOwnPropertyDescriptor(e,u),h=m.value;Array.isArray(h)?m.value=p([],h,!1):s(h)&&(m.value=f(h)),m.enumerable&&(i[u]=m)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return Object.defineProperties(e.constructor===c?l({}):{},i)}e.copy=f;function p(t,n,o){var l,u;o===void 0&&(o=!0);var m=function(r){if(o&&t[r]===void 0&&t.constructor!==c)return typeof r==`symbol`&&(r=r.toString()),e.OPTIONS.optionError(`Invalid option "${r}" (no default value).`,r),`continue`;var l=n[r],u=t[r];if(s(l)&&u!==null&&(typeof u==`object`||typeof u==`function`)){var m=d(l);Array.isArray(u)&&(m.length===1&&(m[0]===e.APPEND||m[0]===e.REMOVE)&&Array.isArray(l[m[0]])||m.length===2&&m.sort().join(`,`)===e.APPEND+`,`+e.REMOVE&&Array.isArray(l[e.APPEND])&&Array.isArray(l[e.REMOVE]))?(l[e.REMOVE]&&(u=t[r]=u.filter(function(t){return l[e.REMOVE].indexOf(t)<0})),l[e.APPEND]&&(t[r]=a(a([],i(u),!1),i(l[e.APPEND]),!1))):p(u,l,o)}else Array.isArray(l)?(t[r]=[],p(t[r],l,!1)):s(l)?t[r]=f(l):t[r]=l};try{for(var h=r(d(n)),g=h.next();!g.done;g=h.next()){var _=g.value;m(_)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}return t}e.insert=p;function m(e){return[...arguments].slice(1).forEach(function(t){return p(e,t,!1)}),e}e.defaultOptions=m;function h(e){return[...arguments].slice(1).forEach(function(t){return p(e,t,!0)}),e}e.userOptions=h;function g(e){for(var t,n,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var o={};try{for(var s=r(i),c=s.next();!c.done;c=s.next()){var l=c.value;e.hasOwnProperty(l)&&(o[l]=e[l])}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o}e.selectOptions=g;function _(e,t){return g.apply(void 0,a([e],i(Object.keys(t)),!1))}e.selectOptionsFromKeys=_;function v(e){for(var t,n,i,a,o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];var c=[];try{for(var l=r(o),u=l.next();!u.done;u=l.next()){var d=u.value,f={},p={};try{for(var m=(i=void 0,r(Object.keys(e||{}))),h=m.next();!h.done;h=m.next()){var g=h.value;(d[g]===void 0?p:f)[g]=e[g]}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}c.push(f),e=p}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return c.unshift(e),c}e.separateOptions=v;function y(e,t,n){return n===void 0&&(n=null),t.hasOwnProperty(e)?t[e]:n}e.lookup=y})),a=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),a=n&&n.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeMixin=e.NodeMixinOptions=void 0;var o=i();e.NodeMixinOptions={badCSS:!0,badSizes:!0};function s(t,n){var i;return n===void 0&&(n={}),n=(0,o.userOptions)((0,o.defaultOptions)({},e.NodeMixinOptions),n),i=function(e){r(t,e);function t(){var t=[...arguments],n=e.call(this,t[0])||this,r=n.constructor;return n.options=(0,o.userOptions)((0,o.defaultOptions)({},r.OPTIONS),t[1]),n}return t.prototype.fontSize=function(t){return n.badCSS?this.options.fontSize:e.prototype.fontSize.call(this,t)},t.prototype.fontFamily=function(t){return n.badCSS?this.options.fontFamily:e.prototype.fontFamily.call(this,t)},t.prototype.nodeSize=function(r,i,a){if(i===void 0&&(i=1),a===void 0&&(a=null),!n.badSizes)return e.prototype.nodeSize.call(this,r,i,a);var o=this.textContent(r),s=Array.from(o.replace(t.cjkPattern,``)).length;return[(Array.from(o).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]},t.prototype.nodeBBox=function(t){return n.badSizes?{left:0,right:0,top:0,bottom:0}:e.prototype.nodeBBox.call(this,t)},t}(t),i.OPTIONS=a(a({},n.badCSS?{fontSize:16,fontFamily:`Times`}:{}),n.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),i.cjkPattern=new RegExp([`[`,`ᄀ-ᅟ`,`〈〉`,`⺀-〾`,`-㉇`,`㉐-䶿`,`一-꓆`,`ꥠ-ꥼ`,`가-힣`,`豈-`,`︐-︙`,`︰-﹫`,`!-⦆¢-₩`,`𛀀-𛀁`,`🈀-🉑`,`𠀀-`,`]`].join(``),`gu`),i}e.NodeMixin=s})),o=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void 0;var t=n();e.LiteDocument=function(){function e(){this.root=new t.LiteElement(`html`,{},[this.head=new t.LiteElement(`head`),this.body=new t.LiteElement(`body`)]),this.type=``}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#document`},enumerable:!1,configurable:!0}),e}()})),s=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.LiteComment=e.LiteText=void 0;var i=function(){function e(e){e===void 0&&(e=``),this.value=e}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#text`},enumerable:!1,configurable:!0}),e}();e.LiteText=i,e.LiteComment=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`#comment`},enumerable:!1,configurable:!0}),t}(i)})),c=e(((e,t,n)=>{var r=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteList=void 0,e.LiteList=function(){function e(e){this.nodes=[],this.nodes=i([],r(e),!1)}return e.prototype.append=function(e){this.nodes.push(e)},e.prototype[Symbol.iterator]=function(){var e=0;return{next:function(){return e===this.nodes.length?{value:null,done:!0}:{value:this.nodes[e++],done:!1}}}},e}()})),l=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfter=e.handleRetriesFor=void 0;function t(e){return new Promise(function t(n,r){try{n(e())}catch(e){e.retry&&e.retry instanceof Promise?e.retry.then(function(){return t(n,r)}).catch(function(e){return r(e)}):e.restart&&e.restart.isCallback?MathJax.Callback.After(function(){return t(n,r)},e.restart):r(e)}})}e.handleRetriesFor=t;function n(e){var t=Error(`MathJax retry`);throw t.retry=e,t}e.retryAfter=n})),u=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION=`3.2.2`})),d=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PrioritizedList=void 0,e.PrioritizedList=function(){function e(){this.items=[],this.items=[]}return e.prototype[Symbol.iterator]=function(){var e=0,t=this.items;return{next:function(){return{value:t[e++],done:e>t.length}}}},e.prototype.add=function(t,n){n===void 0&&(n=e.DEFAULTPRIORITY);var r=this.items.length;do r--;while(r>=0&&n<this.items[r].priority);return this.items.splice(r+1,0,{item:t,priority:n}),t},e.prototype.remove=function(e){var t=this.items.length;do t--;while(t>=0&&this.items[t].item!==e);t>=0&&this.items.splice(t,1)},e.DEFAULTPRIORITY=5,e}()})),f=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerList=void 0,e.HandlerList=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.register=function(e){return this.add(e,e.priority)},t.prototype.unregister=function(e){this.remove(e)},t.prototype.handlesDocument=function(e){var t,n;try{for(var r=i(this),a=r.next();!a.done;a=r.next()){var o=a.value.item;if(o.handlesDocument(e))return o}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}throw Error(`Can't find handler for document`)},t.prototype.document=function(e,t){return t===void 0&&(t=null),this.handlesDocument(e).create(e,t)},t}(d().PrioritizedList)})),p=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=void 0;var t=u(),n=f(),r=l();e.mathjax={version:t.VERSION,handlers:new n.HandlerList,document:function(t,n){return e.mathjax.handlers.document(t,n)},handleRetriesFor:r.handleRetriesFor,retryAfter:r.retryAfter,asyncLoad:null}})),m=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.asyncLoad=void 0;var t=p();function n(e){return t.mathjax.asyncLoad?new Promise(function(n,r){var i=t.mathjax.asyncLoad(e);i instanceof Promise?i.then(function(e){return n(e)}).catch(function(e){return r(e)}):n(i)}):Promise.reject(`Can't load '${e}': No asyncLoad method specified`)}e.asyncLoad=n})),h=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var t=l(),n=m();e.options={loadMissingEntities:!0},e.entities={ApplyFunction:``,Backslash:`∖`,Because:`∵`,Breve:`˘`,Cap:`⋒`,CenterDot:`·`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,Congruent:`≡`,ContourIntegral:`∮`,Coproduct:`∐`,Cross:`⨯`,Cup:`⋓`,CupCap:`≍`,Dagger:`‡`,Del:`∇`,Delta:`Δ`,Diamond:`⋄`,DifferentialD:`ⅆ`,DotEqual:`≐`,DoubleDot:`¨`,DoubleRightTee:`⊨`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownLeftVector:`↽`,DownRightVector:`⇁`,DownTee:`⊤`,Downarrow:`⇓`,Element:`∈`,EqualTilde:`≂`,Equilibrium:`⇌`,Exists:`∃`,ExponentialE:`ⅇ`,FilledVerySmallSquare:`▪`,ForAll:`∀`,Gamma:`Γ`,Gg:`⋙`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Hacek:`ˇ`,Hat:`^`,HumpDownHump:`≎`,HumpEqual:`≏`,Im:`ℑ`,ImaginaryI:`ⅈ`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:``,InvisibleTimes:``,Lambda:`Λ`,Larr:`↞`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDownVector:`⇃`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftTee:`⊣`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpVector:`↿`,LeftVector:`↼`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessSlantEqual:`⩽`,LessTilde:`≲`,Ll:`⋘`,Lleftarrow:`⇚`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lsh:`↰`,MinusPlus:`∓`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotPrecedes:`⊀`,NotPrecedesSlantEqual:`⋠`,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsSlantEqual:`⋡`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotVerticalBar:`∤`,Omega:`Ω`,OverBar:`‾`,OverBrace:`⏞`,PartialD:`∂`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Product:`∏`,Proportional:`∝`,Psi:`Ψ`,Rarr:`↠`,Re:`ℜ`,ReverseEquilibrium:`⇋`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDownVector:`⇂`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpVector:`↾`,RightVector:`⇀`,Rightarrow:`⇒`,Rrightarrow:`⇛`,Rsh:`↱`,Sigma:`Σ`,SmallCircle:`∘`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Star:`⋆`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,Therefore:`∴`,Theta:`Θ`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,UnderBar:`_`,UnderBrace:`⏟`,Union:`⋃`,UnionPlus:`⊎`,UpArrow:`↑`,UpDownArrow:`↕`,UpTee:`⊥`,Uparrow:`⇑`,Updownarrow:`⇕`,Upsilon:`Υ`,Vdash:`⊩`,Vee:`⋁`,VerticalBar:`∣`,VerticalTilde:`≀`,Vvdash:`⊪`,Wedge:`⋀`,Xi:`Ξ`,amp:`&`,acute:`´`,aleph:`ℵ`,alpha:`α`,amalg:`⨿`,and:`∧`,ang:`∠`,angmsd:`∡`,angsph:`∢`,ape:`≊`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,beta:`β`,beth:`ℶ`,between:`≬`,bigcirc:`◯`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,blacklozenge:`⧫`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,bowtie:`⋈`,boxdl:`┐`,boxdr:`┌`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxur:`└`,bsol:`\\`,bull:`•`,cap:`∩`,check:`✓`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,clubs:`♣`,colon:`:`,comp:`∁`,ctdot:`⋯`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cup:`∪`,curarr:`↷`,curlyvee:`⋎`,curlywedge:`⋏`,dagger:`†`,daleth:`ℸ`,ddarr:`⇊`,deg:`°`,delta:`δ`,digamma:`ϝ`,div:`÷`,divideontimes:`⋇`,dot:`˙`,doteqdot:`≑`,dotplus:`∔`,dotsquare:`⊡`,dtdot:`⋱`,ecir:`≖`,efDot:`≒`,egs:`⪖`,ell:`ℓ`,els:`⪕`,empty:`∅`,epsi:`ε`,epsiv:`ϵ`,erDot:`≓`,eta:`η`,eth:`ð`,flat:`♭`,fork:`⋔`,frown:`⌢`,gEl:`⪌`,gamma:`γ`,gap:`⪆`,gimel:`ℷ`,gnE:`≩`,gnap:`⪊`,gne:`⪈`,gnsim:`⋧`,gt:`>`,gtdot:`⋗`,harrw:`↭`,hbar:`ℏ`,hellip:`…`,hookleftarrow:`↩`,hookrightarrow:`↪`,imath:`ı`,infin:`∞`,intcal:`⊺`,iota:`ι`,jmath:`ȷ`,kappa:`κ`,kappav:`ϰ`,lEg:`⪋`,lambda:`λ`,lap:`⪅`,larrlp:`↫`,larrtl:`↢`,lbrace:`{`,lbrack:`[`,le:`≤`,leftleftarrows:`⇇`,leftthreetimes:`⋋`,lessdot:`⋖`,lmoust:`⎰`,lnE:`≨`,lnap:`⪉`,lne:`⪇`,lnsim:`⋦`,longmapsto:`⟼`,looparrowright:`↬`,lowast:`∗`,loz:`◊`,lt:`<`,ltimes:`⋉`,ltri:`◃`,macr:`¯`,malt:`✠`,mho:`℧`,mu:`μ`,multimap:`⊸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,natur:`♮`,nearr:`↗`,nharr:`↮`,nlarr:`↚`,not:`¬`,nrarr:`↛`,nu:`ν`,nvDash:`⊭`,nvdash:`⊬`,nwarr:`↖`,omega:`ω`,omicron:`ο`,or:`∨`,osol:`⊘`,period:`.`,phi:`φ`,phiv:`ϕ`,pi:`π`,piv:`ϖ`,prap:`⪷`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,prime:`′`,psi:`ψ`,quot:`"`,rarrtl:`↣`,rbrace:`}`,rbrack:`]`,rho:`ρ`,rhov:`ϱ`,rightrightarrows:`⇉`,rightthreetimes:`⋌`,ring:`˚`,rmoust:`⎱`,rtimes:`⋊`,rtri:`▹`,scap:`⪸`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,sdot:`⋅`,searr:`↘`,sect:`§`,sharp:`♯`,sigma:`σ`,sigmav:`ς`,simne:`≆`,smile:`⌣`,spades:`♠`,sub:`⊂`,subE:`⫅`,subnE:`⫋`,subne:`⊊`,supE:`⫆`,supnE:`⫌`,supne:`⊋`,swarr:`↙`,tau:`τ`,theta:`θ`,thetav:`ϑ`,tilde:`˜`,times:`×`,triangle:`▵`,triangleq:`≜`,upsi:`υ`,upuparrows:`⇈`,veebar:`⊻`,vellip:`⋮`,weierp:`℘`,xi:`ξ`,yen:`¥`,zeta:`ζ`,zigrarr:`⇝`,nbsp:`\xA0`,rsquo:`’`,lsquo:`‘`};var r={};function i(t,n){Object.assign(e.entities,t),r[n]=!0}e.add=i;function a(t){delete e.entities[t]}e.remove=a;function o(e){return e.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,s)}e.translate=o;function s(i,a){if(a.charAt(0)===`#`)return c(a.slice(1));if(e.entities[a])return e.entities[a];if(e.options.loadMissingEntities){var o=a.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:a.charAt(0).toLowerCase();r[o]||(r[o]=!0,(0,t.retryAfter)((0,n.asyncLoad)(`./util/entities/`+o+`.js`)))}return i}function c(e){var t=e.charAt(0)===`x`?parseInt(e.slice(1),16):parseInt(e);return String.fromCodePoint(t)}e.numeric=c})),g=e(((e,t,r)=>{var i=r&&r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),a=r&&r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),o=r&&r.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},c=r&&r.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},l=r&&r.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteParser=e.PATTERNS=void 0;var u=o(h()),d=n(),f=s(),p;(function(e){e.TAGNAME=`[a-z][^\\s\\n>]*`,e.ATTNAME=`[a-z][^\\s\\n>=]*`,e.VALUE=`(?:'[^']*'|"[^"]*"|[^\\s\\n]+)`,e.VALUESPLIT=`(?:'([^']*)'|"([^"]*)"|([^\\s\\n]+))`,e.SPACE=`(?:\\s|\\n)+`,e.OPTIONALSPACE=`(?:\\s|\\n)*`,e.ATTRIBUTE=e.ATTNAME+`(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUE+`)?`,e.ATTRIBUTESPLIT=`(`+e.ATTNAME+`)(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUESPLIT+`)?`,e.TAG=`(<(?:`+e.TAGNAME+`(?:`+e.SPACE+e.ATTRIBUTE+`)*`+e.OPTIONALSPACE+`/?|/`+e.TAGNAME+`|!--[^]*?--|![^]*?)(?:>|$))`,e.tag=new RegExp(e.TAG,`i`),e.attr=new RegExp(e.ATTRIBUTE,`i`),e.attrsplit=new RegExp(e.ATTRIBUTESPLIT,`i`)})(p=e.PATTERNS||={}),e.LiteParser=function(){function e(){}return e.prototype.parseFromString=function(e,t,n){t===void 0&&(t=`text/html`),n===void 0&&(n=null);for(var r=n.createDocument(),i=n.body(r),a=e.replace(/<\?.*?\?>/g,``).split(p.tag);a.length;){var o=a.shift(),s=a.shift();o&&this.addText(n,i,o),s&&s.charAt(s.length-1)===`>`&&(s.charAt(1)===`!`?this.addComment(n,i,s):i=s.charAt(1)===`/`?this.closeTag(n,i,s):this.openTag(n,i,s,a))}return this.checkDocument(n,r),r},e.prototype.addText=function(e,t,n){return n=u.translate(n),e.append(t,e.text(n))},e.prototype.addComment=function(e,t,n){return e.append(t,new f.LiteComment(n))},e.prototype.closeTag=function(e,t,n){for(var r=n.slice(2,n.length-1).toLowerCase();e.parent(t)&&e.kind(t)!==r;)t=e.parent(t);return e.parent(t)},e.prototype.openTag=function(e,t,n,r){var i=this.constructor.PCDATA,a=this.constructor.SELF_CLOSING,o=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),s=e.node(o),c=n.replace(/^<.*?[\s\n>]/,``).split(p.attrsplit);return(c.pop().match(/>$/)||c.length<5)&&(this.addAttributes(e,s,c),e.append(t,s),!a[o]&&!n.match(/\/>$/)&&(i[o]?this.handlePCDATA(e,s,o,r):t=s)),t},e.prototype.addAttributes=function(e,t,n){for(var r=this.constructor.CDATA_ATTR;n.length;){var i=c(n.splice(0,5),5),a=i[1],o=i[2],s=i[3],l=i[4],d=o||s||l||``;r[a]||(d=u.translate(d)),e.setAttribute(t,a,d)}},e.prototype.handlePCDATA=function(e,t,n,r){for(var i=[],a=`</`+n+`>`,o=``;r.length&&o!==a;)i.push(o),i.push(r.shift()),o=r.shift();e.append(t,e.text(i.join(``)))},e.prototype.checkDocument=function(e,t){var n,r,i,a,o=this.getOnlyChild(e,e.body(t));if(o){try{for(var s=l(e.childNodes(e.body(t))),c=s.next();!c.done;c=s.next()){var u=c.value;if(u===o)break;u instanceof f.LiteComment&&u.value.match(/^<!DOCTYPE/)&&(t.type=u.value)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}switch(e.kind(o)){case`html`:try{for(var d=l(o.children),p=d.next();!p.done;p=d.next()){var u=p.value;switch(e.kind(u)){case`head`:t.head=u;break;case`body`:t.body=u}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}t.root=o,e.remove(o),e.parent(t.body)!==o&&e.append(o,t.body),e.parent(t.head)!==o&&e.insert(t.head,t.body);break;case`head`:t.head=e.replace(o,t.head);break;case`body`:t.body=e.replace(o,t.body)}}},e.prototype.getOnlyChild=function(e,t){var n,r,i=null;try{for(var a=l(e.childNodes(t)),o=a.next();!o.done;o=a.next()){var s=o.value;if(s instanceof d.LiteElement){if(i)return null;i=s}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.serialize=function(e,t,n){var r=this;n===void 0&&(n=!1);var i=this.constructor.SELF_CLOSING,a=this.constructor.CDATA_ATTR,o=e.kind(t),s=e.allAttributes(t).map(function(e){return e.name+`="`+(a[e.name]?e.value:r.protectAttribute(e.value))+`"`}).join(` `),c=this.serializeInner(e,t,n);return`<`+o+(s?` `+s:``)+((!n||c)&&!i[o]?`>${c}</${o}>`:n?`/>`:`>`)},e.prototype.serializeInner=function(e,t,n){var r=this;return n===void 0&&(n=!1),this.constructor.PCDATA.hasOwnProperty(t.kind)?e.childNodes(t).map(function(t){return e.value(t)}).join(``):e.childNodes(t).map(function(t){var i=e.kind(t);return i===`#text`?r.protectHTML(e.value(t)):i===`#comment`?t.value:r.serialize(e,t,n)}).join(``)},e.prototype.protectAttribute=function(e){return typeof e!=`string`&&(e=String(e)),e.replace(/"/g,`"`)},e.prototype.protectHTML=function(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)},e.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},e.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},e.CDATA_ATTR={style:!0,datafld:!0,datasrc:!0,href:!0,src:!0,longdesc:!0,usemap:!0,cite:!0,datetime:!0,action:!0,axis:!0,profile:!0,content:!0,scheme:!0},e}()})),_=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteWindow=void 0;var t=n(),r=o(),i=c(),a=g();e.LiteWindow=function(){function e(){this.DOMParser=a.LiteParser,this.NodeList=i.LiteList,this.HTMLCollection=i.LiteList,this.HTMLElement=t.LiteElement,this.DocumentFragment=i.LiteList,this.Document=r.LiteDocument,this.document=new r.LiteDocument}return e}()})),v=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.Styles=void 0;var o=[`top`,`right`,`bottom`,`left`],s=[`width`,`style`,`color`];function c(e){for(var t=e.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),n=[];t.length>1;)t.shift(),n.push(t.shift());return n}function l(e){var t,n,i=c(this.styles[e]);i.length===0&&i.push(``),i.length===1&&i.push(i[0]),i.length===2&&i.push(i[0]),i.length===3&&i.push(i[1]);try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value;this.setStyle(this.childName(e,s),i.shift())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}function u(e){var t,n,i=b.connect[e].children,a=[];try{for(var o=r(i),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.styles[e+`-`+c];if(!l){delete this.styles[e];return}a.push(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}a[3]===a[1]&&(a.pop(),a[2]===a[0]&&(a.pop(),a[1]===a[0]&&a.pop())),this.styles[e]=a.join(` `)}function d(e){var t,n;try{for(var i=r(b.connect[e].children),a=i.next();!a.done;a=i.next()){var o=a.value;this.setStyle(this.childName(e,o),this.styles[e])}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}function f(e){var t,n,o=a([],i(b.connect[e].children),!1),s=this.styles[this.childName(e,o.shift())];try{for(var c=r(o),l=c.next();!l.done;l=c.next()){var u=l.value;if(this.styles[this.childName(e,u)]!==s){delete this.styles[e];return}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}this.styles[e]=s}var p={width:/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,style:/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/};function m(e){var t,n,i,a,o={width:``,style:``,color:``};try{for(var s=r(c(this.styles[e])),l=s.next();!l.done;l=s.next()){var u=l.value;u.match(p.width)&&o.width===``?o.width=u:u.match(p.style)&&o.style===``?o.style=u:o.color=u}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}try{for(var d=r(b.connect[e].children),f=d.next();!f.done;f=d.next()){var m=f.value;this.setStyle(this.childName(e,m),o[m])}}catch(e){i={error:e}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}function h(e){var t,n,i=[];try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.styles[this.childName(e,s)];c&&i.push(c)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}i.length?this.styles[e]=i.join(` `):delete this.styles[e]}var g={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:RegExp(`^(?:`+[`normal|none`,`inherit|initial|unset`,`common-ligatures|no-common-ligatures`,`discretionary-ligatures|no-discretionary-ligatures`,`historical-ligatures|no-historical-ligatures`,`contextual|no-contextual`,`(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)`,`small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps`,`lining-nums|oldstyle-nums|proportional-nums|tabular-nums`,`diagonal-fractions|stacked-fractions`,`ordinal|slashed-zero`,`jis78|jis83|jis90|jis04|simplified|traditional`,`full-width|proportional-width`,`ruby`].join(`|`)+`)$`),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:RegExp(`^(?:`+[`normal`,`(?:(?:ultra|extra|semi)-)?condensed`,`(?:(?:semi|extra|ulta)-)?expanded`,`inherit|initial|unset`].join(`|`)+`)$`),size:RegExp(`^(?:`+[`xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller`,`[d.]+%|[d.]+[a-z]+`,`inherit|initial|unset`].join(`|`)+`)(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$`)};function _(e){var t,n,a,o,s=c(this.styles[e]),l={style:``,variant:[],weight:``,stretch:``,size:``,family:``,"line-height":``};try{for(var u=r(s),d=u.next();!d.done;d=u.next()){var f=d.value;l.family=f;try{for(var p=(a=void 0,r(Object.keys(g))),m=p.next();!m.done;m=p.next()){var h=m.value;if((Array.isArray(l[h])||l[h]===``)&&f.match(g[h])){if(h===`size`){var _=i(f.split(/\//),2),y=_[0],b=_[1];l[h]=y,b&&(l[`line-height`]=b)}else l.size===``&&(Array.isArray(l[h])?l[h].push(f):l[h]=f)}}}catch(e){a={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}v(e,l),delete this.styles[e]}function v(e,t){var n,i;try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.childName(e,s);if(Array.isArray(t[s])){var l=t[s];l.length&&(this.styles[c]=l.join(` `))}else t[s]!==``&&(this.styles[c]=t[s])}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}function y(e){}var b=function(){function e(e){e===void 0&&(e=``),this.parse(e)}return Object.defineProperty(e.prototype,"cssText",{get:function(){var e,t,n=[];try{for(var i=r(Object.keys(this.styles)),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.parentName(o);this.styles[s]||n.push(o+`: `+this.styles[o]+`;`)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n.join(` `)},enumerable:!1,configurable:!0}),e.prototype.set=function(t,n){for(t=this.normalizeName(t),this.setStyle(t,n),e.connect[t]&&!e.connect[t].combine&&(this.combineChildren(t),delete this.styles[t]);t.match(/-/)&&(t=this.parentName(t),e.connect[t]);)e.connect[t].combine.call(this,t)},e.prototype.get=function(e){return e=this.normalizeName(e),this.styles.hasOwnProperty(e)?this.styles[e]:``},e.prototype.setStyle=function(t,n){this.styles[t]=n,e.connect[t]&&e.connect[t].children&&e.connect[t].split.call(this,t),n===``&&delete this.styles[t]},e.prototype.combineChildren=function(t){var n,i,a=this.parentName(t);try{for(var o=r(e.connect[t].children),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.childName(a,c);e.connect[l].combine.call(this,l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.parentName=function(e){var t=e.replace(/-[^-]*$/,``);return e===t?``:t},e.prototype.childName=function(t,n){return n.match(/-/)?n:(e.connect[t]&&!e.connect[t].combine&&(n+=t.replace(/.*-/,`-`),t=this.parentName(t)),t+`-`+n)},e.prototype.normalizeName=function(e){return e.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()})},e.prototype.parse=function(e){e===void 0&&(e=``);var t=this.constructor.pattern;this.styles={};for(var n=e.replace(t.comment,``).split(t.style);n.length>1;){var r=i(n.splice(0,3),3),a=r[0],o=r[1],s=r[2];if(a.match(/[^\s\n]/))return;this.set(o,s)}},e.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},e.connect={padding:{children:o,split:l,combine:u},border:{children:o,split:d,combine:f},"border-top":{children:s,split:m,combine:h},"border-right":{children:s,split:m,combine:h},"border-bottom":{children:s,split:m,combine:h},"border-left":{children:s,split:m,combine:h},"border-width":{children:o,split:l,combine:null},"border-style":{children:o,split:l,combine:null},"border-color":{children:o,split:l,combine:null},font:{children:[`style`,`variant`,`weight`,`stretch`,`line-height`,`size`,`family`],split:_,combine:y}},e}();e.Styles=b})),y=e(((e,t,i)=>{var c=i&&i.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),l=i&&i.__assign||function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)},u=i&&i.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},d=i&&i.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},f=i&&i.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.liteAdaptor=e.LiteAdaptor=e.LiteBase=void 0;var p=r(),m=a(),h=o(),y=n(),b=s(),x=_(),S=g(),C=v(),w=function(e){c(t,e);function t(){var t=e.call(this)||this;return t.parser=new S.LiteParser,t.window=new x.LiteWindow,t}return t.prototype.parse=function(e,t){return this.parser.parseFromString(e,t,this)},t.prototype.create=function(e,t){return t===void 0&&(t=null),new y.LiteElement(e)},t.prototype.text=function(e){return new b.LiteText(e)},t.prototype.comment=function(e){return new b.LiteComment(e)},t.prototype.createDocument=function(){return new h.LiteDocument},t.prototype.head=function(e){return e.head},t.prototype.body=function(e){return e.body},t.prototype.root=function(e){return e.root},t.prototype.doctype=function(e){return e.type},t.prototype.tags=function(e,t,n){n===void 0&&(n=null);var r=[],i=[];if(n)return i;for(var a=e;a;){var o=a.kind;o!==`#text`&&o!==`#comment`&&(a=a,o===t&&i.push(a),a.children.length&&(r=a.children.concat(r))),a=r.shift()}return i},t.prototype.elementById=function(e,t){for(var n=[],r=e;r;){if(r.kind!==`#text`&&r.kind!==`#comment`){if(r=r,r.attributes.id===t)return r;r.children.length&&(n=r.children.concat(n))}r=n.shift()}return null},t.prototype.elementsByClass=function(e,t){for(var n=[],r=[],i=e;i;)i.kind!==`#text`&&i.kind!==`#comment`&&(i=i,(i.attributes.class||``).trim().split(/ +/).includes(t)&&r.push(i),i.children.length&&(n=i.children.concat(n))),i=n.shift();return r},t.prototype.getElements=function(e,t){var n,r,i=[],a=this.body(t);try{for(var o=u(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(typeof c==`string`){if(c.charAt(0)===`#`){var l=this.elementById(a,c.slice(1));l&&i.push(l)}else c.charAt(0)===`.`?i=i.concat(this.elementsByClass(a,c.slice(1))):c.match(/^[-a-z][-a-z0-9]*$/i)&&(i=i.concat(this.tags(a,c)))}else Array.isArray(c)?i=i.concat(c):c instanceof this.window.NodeList||c instanceof this.window.HTMLCollection?i=i.concat(c.nodes):i.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},t.prototype.contains=function(e,t){for(;t&&t!==e;)t=this.parent(t);return!!t},t.prototype.parent=function(e){return e.parent},t.prototype.childIndex=function(e){return e.parent?e.parent.children.findIndex(function(t){return t===e}):-1},t.prototype.append=function(e,t){return t.parent&&this.remove(t),e.children.push(t),t.parent=e,t},t.prototype.insert=function(e,t){if(e.parent&&this.remove(e),t&&t.parent){var n=this.childIndex(t);t.parent.children.splice(n,0,e),e.parent=t.parent}},t.prototype.remove=function(e){var t=this.childIndex(e);return t>=0&&e.parent.children.splice(t,1),e.parent=null,e},t.prototype.replace=function(e,t){var n=this.childIndex(t);return n>=0&&(t.parent.children[n]=e,e.parent=t.parent,t.parent=null),t},t.prototype.clone=function(e){var t=this,n=new y.LiteElement(e.kind);return n.attributes=l({},e.attributes),n.children=e.children.map(function(e){if(e.kind===`#text`)return new b.LiteText(e.value);if(e.kind===`#comment`)return new b.LiteComment(e.value);var r=t.clone(e);return r.parent=n,r}),n},t.prototype.split=function(e,t){var n=new b.LiteText(e.value.slice(t));return e.value=e.value.slice(0,t),e.parent.children.splice(this.childIndex(e)+1,0,n),n.parent=e.parent,n},t.prototype.next=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)+1;return n>=0&&n<t.children.length?t.children[n]:null},t.prototype.previous=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)-1;return n>=0?t.children[n]:null},t.prototype.firstChild=function(e){return e.children[0]},t.prototype.lastChild=function(e){return e.children[e.children.length-1]},t.prototype.childNodes=function(e){return f([],d(e.children),!1)},t.prototype.childNode=function(e,t){return e.children[t]},t.prototype.kind=function(e){return e.kind},t.prototype.value=function(e){return e.kind===`#text`?e.value:e.kind===`#comment`?e.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,`$2`):``},t.prototype.textContent=function(e){var t=this;return e.children.reduce(function(e,n){return e+(n.kind===`#text`?n.value:n.kind===`#comment`?``:t.textContent(n))},``)},t.prototype.innerHTML=function(e){return this.parser.serializeInner(this,e)},t.prototype.outerHTML=function(e){return this.parser.serialize(this,e)},t.prototype.serializeXML=function(e){return this.parser.serialize(this,e,!0)},t.prototype.setAttribute=function(e,t,n,r){r===void 0&&(r=null),typeof n!=`string`&&(n=String(n)),r&&(t=r.replace(/.*\//,``)+`:`+t.replace(/^.*:/,``)),e.attributes[t]=n,t===`style`&&(e.styles=null)},t.prototype.getAttribute=function(e,t){return e.attributes[t]},t.prototype.removeAttribute=function(e,t){delete e.attributes[t]},t.prototype.hasAttribute=function(e,t){return e.attributes.hasOwnProperty(t)},t.prototype.allAttributes=function(e){var t,n,r=e.attributes,i=[];try{for(var a=u(Object.keys(r)),o=a.next();!o.done;o=a.next()){var s=o.value;i.push({name:s,value:r[s]})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},t.prototype.addClass=function(e,t){var n=(e.attributes.class||``).split(/ /);n.find(function(e){return e===t})||(n.push(t),e.attributes.class=n.join(` `))},t.prototype.removeClass=function(e,t){var n=(e.attributes.class||``).split(/ /),r=n.findIndex(function(e){return e===t});r>=0&&(n.splice(r,1),e.attributes.class=n.join(` `))},t.prototype.hasClass=function(e,t){return!!(e.attributes.class||``).split(/ /).find(function(e){return e===t})},t.prototype.setStyle=function(e,t,n){e.styles||=new C.Styles(this.getAttribute(e,`style`)),e.styles.set(t,n),e.attributes.style=e.styles.cssText},t.prototype.getStyle=function(e,t){if(!e.styles){var n=this.getAttribute(e,`style`);if(!n)return``;e.styles=new C.Styles(n)}return e.styles.get(t)},t.prototype.allStyles=function(e){return this.getAttribute(e,`style`)},t.prototype.insertRules=function(e,t){e.children=[this.text(t.join(`
|
|
1
|
+
import{r as e,t}from"./index-Cv-pHUkZ.js";var n=e(((e,t,n)=>{var r=n&&n.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},o=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteElement=void 0,e.LiteElement=function(){function e(e,t,n){var s,c;t===void 0&&(t={}),n===void 0&&(n=[]),this.kind=e,this.attributes=r({},t),this.children=a([],i(n),!1);try{for(var l=o(this.children),u=l.next();!u.done;u=l.next()){var d=u.value;d.parent=this}}catch(e){s={error:e}}finally{try{u&&!u.done&&(c=l.return)&&c.call(l)}finally{if(s)throw s.error}}this.styles=null}return e}()})),r=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0,e.AbstractDOMAdaptor=function(){function e(e){e===void 0&&(e=null),this.document=e}return e.prototype.node=function(e,t,n,i){var a,o;t===void 0&&(t={}),n===void 0&&(n=[]);var s=this.create(e,i);this.setAttributes(s,t);try{for(var c=r(n),l=c.next();!l.done;l=c.next()){var u=l.value;this.append(s,u)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}return s},e.prototype.setAttributes=function(e,t){var n,i,a,o,s,c;if(t.style&&typeof t.style!=`string`)try{for(var l=r(Object.keys(t.style)),u=l.next();!u.done;u=l.next()){var d=u.value;this.setStyle(e,d.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),t.style[d])}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}if(t.properties)try{for(var f=r(Object.keys(t.properties)),p=f.next();!p.done;p=f.next()){var d=p.value;e[d]=t.properties[d]}}catch(e){a={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var m=r(Object.keys(t)),h=m.next();!h.done;h=m.next()){var d=h.value;(d!==`style`||typeof t.style==`string`)&&d!==`properties`&&this.setAttribute(e,d,t[d])}}catch(e){s={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}},e.prototype.replace=function(e,t){return this.insert(e,t),this.remove(t),t},e.prototype.childNode=function(e,t){return this.childNodes(e)[t]},e.prototype.allClasses=function(e){var t=this.getAttribute(e,`class`);return t?t.replace(/ +/g,` `).replace(/^ /,``).replace(/ $/,``).split(/ /):[]},e}()})),i=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.lookup=e.separateOptions=e.selectOptionsFromKeys=e.selectOptions=e.userOptions=e.defaultOptions=e.insert=e.copy=e.keys=e.makeArray=e.expandable=e.Expandable=e.OPTIONS=e.REMOVE=e.APPEND=e.isObject=void 0;var o={}.constructor;function s(e){return typeof e==`object`&&!!e&&(e.constructor===o||e.constructor===c)}e.isObject=s,e.APPEND=`[+]`,e.REMOVE=`[-]`,e.OPTIONS={invalidOption:`warn`,optionError:function(t,n){if(e.OPTIONS.invalidOption===`fatal`)throw Error(t);console.warn(`MathJax: `+t)}};var c=function(){function e(){}return e}();e.Expandable=c;function l(e){return Object.assign(Object.create(c.prototype),e)}e.expandable=l;function u(e){return Array.isArray(e)?e:[e]}e.makeArray=u;function d(e){return e?Object.keys(e).concat(Object.getOwnPropertySymbols(e)):[]}e.keys=d;function f(e){var t,n,i={};try{for(var a=r(d(e)),o=a.next();!o.done;o=a.next()){var u=o.value,m=Object.getOwnPropertyDescriptor(e,u),h=m.value;Array.isArray(h)?m.value=p([],h,!1):s(h)&&(m.value=f(h)),m.enumerable&&(i[u]=m)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return Object.defineProperties(e.constructor===c?l({}):{},i)}e.copy=f;function p(t,n,o){var l,u;o===void 0&&(o=!0);var m=function(r){if(o&&t[r]===void 0&&t.constructor!==c)return typeof r==`symbol`&&(r=r.toString()),e.OPTIONS.optionError(`Invalid option "${r}" (no default value).`,r),`continue`;var l=n[r],u=t[r];if(s(l)&&u!==null&&(typeof u==`object`||typeof u==`function`)){var m=d(l);Array.isArray(u)&&(m.length===1&&(m[0]===e.APPEND||m[0]===e.REMOVE)&&Array.isArray(l[m[0]])||m.length===2&&m.sort().join(`,`)===e.APPEND+`,`+e.REMOVE&&Array.isArray(l[e.APPEND])&&Array.isArray(l[e.REMOVE]))?(l[e.REMOVE]&&(u=t[r]=u.filter(function(t){return l[e.REMOVE].indexOf(t)<0})),l[e.APPEND]&&(t[r]=a(a([],i(u),!1),i(l[e.APPEND]),!1))):p(u,l,o)}else Array.isArray(l)?(t[r]=[],p(t[r],l,!1)):s(l)?t[r]=f(l):t[r]=l};try{for(var h=r(d(n)),g=h.next();!g.done;g=h.next()){var _=g.value;m(_)}}catch(e){l={error:e}}finally{try{g&&!g.done&&(u=h.return)&&u.call(h)}finally{if(l)throw l.error}}return t}e.insert=p;function m(e){return[...arguments].slice(1).forEach(function(t){return p(e,t,!1)}),e}e.defaultOptions=m;function h(e){return[...arguments].slice(1).forEach(function(t){return p(e,t,!0)}),e}e.userOptions=h;function g(e){for(var t,n,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];var o={};try{for(var s=r(i),c=s.next();!c.done;c=s.next()){var l=c.value;e.hasOwnProperty(l)&&(o[l]=e[l])}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o}e.selectOptions=g;function _(e,t){return g.apply(void 0,a([e],i(Object.keys(t)),!1))}e.selectOptionsFromKeys=_;function v(e){for(var t,n,i,a,o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];var c=[];try{for(var l=r(o),u=l.next();!u.done;u=l.next()){var d=u.value,f={},p={};try{for(var m=(i=void 0,r(Object.keys(e||{}))),h=m.next();!h.done;h=m.next()){var g=h.value;(d[g]===void 0?p:f)[g]=e[g]}}catch(e){i={error:e}}finally{try{h&&!h.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}c.push(f),e=p}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return c.unshift(e),c}e.separateOptions=v;function y(e,t,n){return n===void 0&&(n=null),t.hasOwnProperty(e)?t[e]:n}e.lookup=y})),a=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),a=n&&n.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeMixin=e.NodeMixinOptions=void 0;var o=i();e.NodeMixinOptions={badCSS:!0,badSizes:!0};function s(t,n){var i;return n===void 0&&(n={}),n=(0,o.userOptions)((0,o.defaultOptions)({},e.NodeMixinOptions),n),i=function(e){r(t,e);function t(){var t=[...arguments],n=e.call(this,t[0])||this,r=n.constructor;return n.options=(0,o.userOptions)((0,o.defaultOptions)({},r.OPTIONS),t[1]),n}return t.prototype.fontSize=function(t){return n.badCSS?this.options.fontSize:e.prototype.fontSize.call(this,t)},t.prototype.fontFamily=function(t){return n.badCSS?this.options.fontFamily:e.prototype.fontFamily.call(this,t)},t.prototype.nodeSize=function(r,i,a){if(i===void 0&&(i=1),a===void 0&&(a=null),!n.badSizes)return e.prototype.nodeSize.call(this,r,i,a);var o=this.textContent(r),s=Array.from(o.replace(t.cjkPattern,``)).length;return[(Array.from(o).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]},t.prototype.nodeBBox=function(t){return n.badSizes?{left:0,right:0,top:0,bottom:0}:e.prototype.nodeBBox.call(this,t)},t}(t),i.OPTIONS=a(a({},n.badCSS?{fontSize:16,fontFamily:`Times`}:{}),n.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),i.cjkPattern=new RegExp([`[`,`ᄀ-ᅟ`,`〈〉`,`⺀-〾`,`-㉇`,`㉐-䶿`,`一-꓆`,`ꥠ-ꥼ`,`가-힣`,`豈-`,`︐-︙`,`︰-﹫`,`!-⦆¢-₩`,`𛀀-𛀁`,`🈀-🉑`,`𠀀-`,`]`].join(``),`gu`),i}e.NodeMixin=s})),o=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void 0;var t=n();e.LiteDocument=function(){function e(){this.root=new t.LiteElement(`html`,{},[this.head=new t.LiteElement(`head`),this.body=new t.LiteElement(`body`)]),this.type=``}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#document`},enumerable:!1,configurable:!0}),e}()})),s=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.LiteComment=e.LiteText=void 0;var i=function(){function e(e){e===void 0&&(e=``),this.value=e}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#text`},enumerable:!1,configurable:!0}),e}();e.LiteText=i,e.LiteComment=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"kind",{get:function(){return`#comment`},enumerable:!1,configurable:!0}),t}(i)})),c=e(((e,t,n)=>{var r=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},i=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteList=void 0,e.LiteList=function(){function e(e){this.nodes=[],this.nodes=i([],r(e),!1)}return e.prototype.append=function(e){this.nodes.push(e)},e.prototype[Symbol.iterator]=function(){var e=0;return{next:function(){return e===this.nodes.length?{value:null,done:!0}:{value:this.nodes[e++],done:!1}}}},e}()})),l=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfter=e.handleRetriesFor=void 0;function t(e){return new Promise(function t(n,r){try{n(e())}catch(e){e.retry&&e.retry instanceof Promise?e.retry.then(function(){return t(n,r)}).catch(function(e){return r(e)}):e.restart&&e.restart.isCallback?MathJax.Callback.After(function(){return t(n,r)},e.restart):r(e)}})}e.handleRetriesFor=t;function n(e){var t=Error(`MathJax retry`);throw t.retry=e,t}e.retryAfter=n})),u=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION=`3.2.2`})),d=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PrioritizedList=void 0,e.PrioritizedList=function(){function e(){this.items=[],this.items=[]}return e.prototype[Symbol.iterator]=function(){var e=0,t=this.items;return{next:function(){return{value:t[e++],done:e>t.length}}}},e.prototype.add=function(t,n){n===void 0&&(n=e.DEFAULTPRIORITY);var r=this.items.length;do r--;while(r>=0&&n<this.items[r].priority);return this.items.splice(r+1,0,{item:t,priority:n}),t},e.prototype.remove=function(e){var t=this.items.length;do t--;while(t>=0&&this.items[t].item!==e);t>=0&&this.items.splice(t,1)},e.DEFAULTPRIORITY=5,e}()})),f=e(((e,t,n)=>{var r=n&&n.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.HandlerList=void 0,e.HandlerList=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.register=function(e){return this.add(e,e.priority)},t.prototype.unregister=function(e){this.remove(e)},t.prototype.handlesDocument=function(e){var t,n;try{for(var r=i(this),a=r.next();!a.done;a=r.next()){var o=a.value.item;if(o.handlesDocument(e))return o}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}throw Error(`Can't find handler for document`)},t.prototype.document=function(e,t){return t===void 0&&(t=null),this.handlesDocument(e).create(e,t)},t}(d().PrioritizedList)})),p=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mathjax=void 0;var t=u(),n=f(),r=l();e.mathjax={version:t.VERSION,handlers:new n.HandlerList,document:function(t,n){return e.mathjax.handlers.document(t,n)},handleRetriesFor:r.handleRetriesFor,retryAfter:r.retryAfter,asyncLoad:null}})),m=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.asyncLoad=void 0;var t=p();function n(e){return t.mathjax.asyncLoad?new Promise(function(n,r){var i=t.mathjax.asyncLoad(e);i instanceof Promise?i.then(function(e){return n(e)}).catch(function(e){return r(e)}):n(i)}):Promise.reject(`Can't load '${e}': No asyncLoad method specified`)}e.asyncLoad=n})),h=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var t=l(),n=m();e.options={loadMissingEntities:!0},e.entities={ApplyFunction:``,Backslash:`∖`,Because:`∵`,Breve:`˘`,Cap:`⋒`,CenterDot:`·`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,Congruent:`≡`,ContourIntegral:`∮`,Coproduct:`∐`,Cross:`⨯`,Cup:`⋓`,CupCap:`≍`,Dagger:`‡`,Del:`∇`,Delta:`Δ`,Diamond:`⋄`,DifferentialD:`ⅆ`,DotEqual:`≐`,DoubleDot:`¨`,DoubleRightTee:`⊨`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownLeftVector:`↽`,DownRightVector:`⇁`,DownTee:`⊤`,Downarrow:`⇓`,Element:`∈`,EqualTilde:`≂`,Equilibrium:`⇌`,Exists:`∃`,ExponentialE:`ⅇ`,FilledVerySmallSquare:`▪`,ForAll:`∀`,Gamma:`Γ`,Gg:`⋙`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Hacek:`ˇ`,Hat:`^`,HumpDownHump:`≎`,HumpEqual:`≏`,Im:`ℑ`,ImaginaryI:`ⅈ`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:``,InvisibleTimes:``,Lambda:`Λ`,Larr:`↞`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDownVector:`⇃`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftTee:`⊣`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpVector:`↿`,LeftVector:`↼`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessSlantEqual:`⩽`,LessTilde:`≲`,Ll:`⋘`,Lleftarrow:`⇚`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lsh:`↰`,MinusPlus:`∓`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotPrecedes:`⊀`,NotPrecedesSlantEqual:`⋠`,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsSlantEqual:`⋡`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotVerticalBar:`∤`,Omega:`Ω`,OverBar:`‾`,OverBrace:`⏞`,PartialD:`∂`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Product:`∏`,Proportional:`∝`,Psi:`Ψ`,Rarr:`↠`,Re:`ℜ`,ReverseEquilibrium:`⇋`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDownVector:`⇂`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpVector:`↾`,RightVector:`⇀`,Rightarrow:`⇒`,Rrightarrow:`⇛`,Rsh:`↱`,Sigma:`Σ`,SmallCircle:`∘`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Star:`⋆`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,Therefore:`∴`,Theta:`Θ`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,UnderBar:`_`,UnderBrace:`⏟`,Union:`⋃`,UnionPlus:`⊎`,UpArrow:`↑`,UpDownArrow:`↕`,UpTee:`⊥`,Uparrow:`⇑`,Updownarrow:`⇕`,Upsilon:`Υ`,Vdash:`⊩`,Vee:`⋁`,VerticalBar:`∣`,VerticalTilde:`≀`,Vvdash:`⊪`,Wedge:`⋀`,Xi:`Ξ`,amp:`&`,acute:`´`,aleph:`ℵ`,alpha:`α`,amalg:`⨿`,and:`∧`,ang:`∠`,angmsd:`∡`,angsph:`∢`,ape:`≊`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,beta:`β`,beth:`ℶ`,between:`≬`,bigcirc:`◯`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,blacklozenge:`⧫`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,bowtie:`⋈`,boxdl:`┐`,boxdr:`┌`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxur:`└`,bsol:`\\`,bull:`•`,cap:`∩`,check:`✓`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,clubs:`♣`,colon:`:`,comp:`∁`,ctdot:`⋯`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cup:`∪`,curarr:`↷`,curlyvee:`⋎`,curlywedge:`⋏`,dagger:`†`,daleth:`ℸ`,ddarr:`⇊`,deg:`°`,delta:`δ`,digamma:`ϝ`,div:`÷`,divideontimes:`⋇`,dot:`˙`,doteqdot:`≑`,dotplus:`∔`,dotsquare:`⊡`,dtdot:`⋱`,ecir:`≖`,efDot:`≒`,egs:`⪖`,ell:`ℓ`,els:`⪕`,empty:`∅`,epsi:`ε`,epsiv:`ϵ`,erDot:`≓`,eta:`η`,eth:`ð`,flat:`♭`,fork:`⋔`,frown:`⌢`,gEl:`⪌`,gamma:`γ`,gap:`⪆`,gimel:`ℷ`,gnE:`≩`,gnap:`⪊`,gne:`⪈`,gnsim:`⋧`,gt:`>`,gtdot:`⋗`,harrw:`↭`,hbar:`ℏ`,hellip:`…`,hookleftarrow:`↩`,hookrightarrow:`↪`,imath:`ı`,infin:`∞`,intcal:`⊺`,iota:`ι`,jmath:`ȷ`,kappa:`κ`,kappav:`ϰ`,lEg:`⪋`,lambda:`λ`,lap:`⪅`,larrlp:`↫`,larrtl:`↢`,lbrace:`{`,lbrack:`[`,le:`≤`,leftleftarrows:`⇇`,leftthreetimes:`⋋`,lessdot:`⋖`,lmoust:`⎰`,lnE:`≨`,lnap:`⪉`,lne:`⪇`,lnsim:`⋦`,longmapsto:`⟼`,looparrowright:`↬`,lowast:`∗`,loz:`◊`,lt:`<`,ltimes:`⋉`,ltri:`◃`,macr:`¯`,malt:`✠`,mho:`℧`,mu:`μ`,multimap:`⊸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,natur:`♮`,nearr:`↗`,nharr:`↮`,nlarr:`↚`,not:`¬`,nrarr:`↛`,nu:`ν`,nvDash:`⊭`,nvdash:`⊬`,nwarr:`↖`,omega:`ω`,omicron:`ο`,or:`∨`,osol:`⊘`,period:`.`,phi:`φ`,phiv:`ϕ`,pi:`π`,piv:`ϖ`,prap:`⪷`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,prime:`′`,psi:`ψ`,quot:`"`,rarrtl:`↣`,rbrace:`}`,rbrack:`]`,rho:`ρ`,rhov:`ϱ`,rightrightarrows:`⇉`,rightthreetimes:`⋌`,ring:`˚`,rmoust:`⎱`,rtimes:`⋊`,rtri:`▹`,scap:`⪸`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,sdot:`⋅`,searr:`↘`,sect:`§`,sharp:`♯`,sigma:`σ`,sigmav:`ς`,simne:`≆`,smile:`⌣`,spades:`♠`,sub:`⊂`,subE:`⫅`,subnE:`⫋`,subne:`⊊`,supE:`⫆`,supnE:`⫌`,supne:`⊋`,swarr:`↙`,tau:`τ`,theta:`θ`,thetav:`ϑ`,tilde:`˜`,times:`×`,triangle:`▵`,triangleq:`≜`,upsi:`υ`,upuparrows:`⇈`,veebar:`⊻`,vellip:`⋮`,weierp:`℘`,xi:`ξ`,yen:`¥`,zeta:`ζ`,zigrarr:`⇝`,nbsp:`\xA0`,rsquo:`’`,lsquo:`‘`};var r={};function i(t,n){Object.assign(e.entities,t),r[n]=!0}e.add=i;function a(t){delete e.entities[t]}e.remove=a;function o(e){return e.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,s)}e.translate=o;function s(i,a){if(a.charAt(0)===`#`)return c(a.slice(1));if(e.entities[a])return e.entities[a];if(e.options.loadMissingEntities){var o=a.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:a.charAt(0).toLowerCase();r[o]||(r[o]=!0,(0,t.retryAfter)((0,n.asyncLoad)(`./util/entities/`+o+`.js`)))}return i}function c(e){var t=e.charAt(0)===`x`?parseInt(e.slice(1),16):parseInt(e);return String.fromCodePoint(t)}e.numeric=c})),g=e(((e,t,r)=>{var i=r&&r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),a=r&&r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),o=r&&r.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},c=r&&r.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},l=r&&r.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteParser=e.PATTERNS=void 0;var u=o(h()),d=n(),f=s(),p;(function(e){e.TAGNAME=`[a-z][^\\s\\n>]*`,e.ATTNAME=`[a-z][^\\s\\n>=]*`,e.VALUE=`(?:'[^']*'|"[^"]*"|[^\\s\\n]+)`,e.VALUESPLIT=`(?:'([^']*)'|"([^"]*)"|([^\\s\\n]+))`,e.SPACE=`(?:\\s|\\n)+`,e.OPTIONALSPACE=`(?:\\s|\\n)*`,e.ATTRIBUTE=e.ATTNAME+`(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUE+`)?`,e.ATTRIBUTESPLIT=`(`+e.ATTNAME+`)(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUESPLIT+`)?`,e.TAG=`(<(?:`+e.TAGNAME+`(?:`+e.SPACE+e.ATTRIBUTE+`)*`+e.OPTIONALSPACE+`/?|/`+e.TAGNAME+`|!--[^]*?--|![^]*?)(?:>|$))`,e.tag=new RegExp(e.TAG,`i`),e.attr=new RegExp(e.ATTRIBUTE,`i`),e.attrsplit=new RegExp(e.ATTRIBUTESPLIT,`i`)})(p=e.PATTERNS||={}),e.LiteParser=function(){function e(){}return e.prototype.parseFromString=function(e,t,n){t===void 0&&(t=`text/html`),n===void 0&&(n=null);for(var r=n.createDocument(),i=n.body(r),a=e.replace(/<\?.*?\?>/g,``).split(p.tag);a.length;){var o=a.shift(),s=a.shift();o&&this.addText(n,i,o),s&&s.charAt(s.length-1)===`>`&&(s.charAt(1)===`!`?this.addComment(n,i,s):i=s.charAt(1)===`/`?this.closeTag(n,i,s):this.openTag(n,i,s,a))}return this.checkDocument(n,r),r},e.prototype.addText=function(e,t,n){return n=u.translate(n),e.append(t,e.text(n))},e.prototype.addComment=function(e,t,n){return e.append(t,new f.LiteComment(n))},e.prototype.closeTag=function(e,t,n){for(var r=n.slice(2,n.length-1).toLowerCase();e.parent(t)&&e.kind(t)!==r;)t=e.parent(t);return e.parent(t)},e.prototype.openTag=function(e,t,n,r){var i=this.constructor.PCDATA,a=this.constructor.SELF_CLOSING,o=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),s=e.node(o),c=n.replace(/^<.*?[\s\n>]/,``).split(p.attrsplit);return(c.pop().match(/>$/)||c.length<5)&&(this.addAttributes(e,s,c),e.append(t,s),!a[o]&&!n.match(/\/>$/)&&(i[o]?this.handlePCDATA(e,s,o,r):t=s)),t},e.prototype.addAttributes=function(e,t,n){for(var r=this.constructor.CDATA_ATTR;n.length;){var i=c(n.splice(0,5),5),a=i[1],o=i[2],s=i[3],l=i[4],d=o||s||l||``;r[a]||(d=u.translate(d)),e.setAttribute(t,a,d)}},e.prototype.handlePCDATA=function(e,t,n,r){for(var i=[],a=`</`+n+`>`,o=``;r.length&&o!==a;)i.push(o),i.push(r.shift()),o=r.shift();e.append(t,e.text(i.join(``)))},e.prototype.checkDocument=function(e,t){var n,r,i,a,o=this.getOnlyChild(e,e.body(t));if(o){try{for(var s=l(e.childNodes(e.body(t))),c=s.next();!c.done;c=s.next()){var u=c.value;if(u===o)break;u instanceof f.LiteComment&&u.value.match(/^<!DOCTYPE/)&&(t.type=u.value)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}switch(e.kind(o)){case`html`:try{for(var d=l(o.children),p=d.next();!p.done;p=d.next()){var u=p.value;switch(e.kind(u)){case`head`:t.head=u;break;case`body`:t.body=u}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}t.root=o,e.remove(o),e.parent(t.body)!==o&&e.append(o,t.body),e.parent(t.head)!==o&&e.insert(t.head,t.body);break;case`head`:t.head=e.replace(o,t.head);break;case`body`:t.body=e.replace(o,t.body)}}},e.prototype.getOnlyChild=function(e,t){var n,r,i=null;try{for(var a=l(e.childNodes(t)),o=a.next();!o.done;o=a.next()){var s=o.value;if(s instanceof d.LiteElement){if(i)return null;i=s}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.serialize=function(e,t,n){var r=this;n===void 0&&(n=!1);var i=this.constructor.SELF_CLOSING,a=this.constructor.CDATA_ATTR,o=e.kind(t),s=e.allAttributes(t).map(function(e){return e.name+`="`+(a[e.name]?e.value:r.protectAttribute(e.value))+`"`}).join(` `),c=this.serializeInner(e,t,n);return`<`+o+(s?` `+s:``)+((!n||c)&&!i[o]?`>${c}</${o}>`:n?`/>`:`>`)},e.prototype.serializeInner=function(e,t,n){var r=this;return n===void 0&&(n=!1),this.constructor.PCDATA.hasOwnProperty(t.kind)?e.childNodes(t).map(function(t){return e.value(t)}).join(``):e.childNodes(t).map(function(t){var i=e.kind(t);return i===`#text`?r.protectHTML(e.value(t)):i===`#comment`?t.value:r.serialize(e,t,n)}).join(``)},e.prototype.protectAttribute=function(e){return typeof e!=`string`&&(e=String(e)),e.replace(/"/g,`"`)},e.prototype.protectHTML=function(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)},e.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},e.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},e.CDATA_ATTR={style:!0,datafld:!0,datasrc:!0,href:!0,src:!0,longdesc:!0,usemap:!0,cite:!0,datetime:!0,action:!0,axis:!0,profile:!0,content:!0,scheme:!0},e}()})),_=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteWindow=void 0;var t=n(),r=o(),i=c(),a=g();e.LiteWindow=function(){function e(){this.DOMParser=a.LiteParser,this.NodeList=i.LiteList,this.HTMLCollection=i.LiteList,this.HTMLElement=t.LiteElement,this.DocumentFragment=i.LiteList,this.Document=r.LiteDocument,this.document=new r.LiteDocument}return e}()})),v=e(((e,t,n)=>{var r=n&&n.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},i=n&&n.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a=n&&n.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.Styles=void 0;var o=[`top`,`right`,`bottom`,`left`],s=[`width`,`style`,`color`];function c(e){for(var t=e.split(/((?:'[^']*'|"[^"]*"|,[\s\n]|[^\s\n])*)/g),n=[];t.length>1;)t.shift(),n.push(t.shift());return n}function l(e){var t,n,i=c(this.styles[e]);i.length===0&&i.push(``),i.length===1&&i.push(i[0]),i.length===2&&i.push(i[0]),i.length===3&&i.push(i[1]);try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value;this.setStyle(this.childName(e,s),i.shift())}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}function u(e){var t,n,i=b.connect[e].children,a=[];try{for(var o=r(i),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.styles[e+`-`+c];if(!l){delete this.styles[e];return}a.push(l)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}a[3]===a[1]&&(a.pop(),a[2]===a[0]&&(a.pop(),a[1]===a[0]&&a.pop())),this.styles[e]=a.join(` `)}function d(e){var t,n;try{for(var i=r(b.connect[e].children),a=i.next();!a.done;a=i.next()){var o=a.value;this.setStyle(this.childName(e,o),this.styles[e])}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}function f(e){var t,n,o=a([],i(b.connect[e].children),!1),s=this.styles[this.childName(e,o.shift())];try{for(var c=r(o),l=c.next();!l.done;l=c.next()){var u=l.value;if(this.styles[this.childName(e,u)]!==s){delete this.styles[e];return}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}this.styles[e]=s}var p={width:/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,style:/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/};function m(e){var t,n,i,a,o={width:``,style:``,color:``};try{for(var s=r(c(this.styles[e])),l=s.next();!l.done;l=s.next()){var u=l.value;u.match(p.width)&&o.width===``?o.width=u:u.match(p.style)&&o.style===``?o.style=u:o.color=u}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}try{for(var d=r(b.connect[e].children),f=d.next();!f.done;f=d.next()){var m=f.value;this.setStyle(this.childName(e,m),o[m])}}catch(e){i={error:e}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}function h(e){var t,n,i=[];try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.styles[this.childName(e,s)];c&&i.push(c)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}i.length?this.styles[e]=i.join(` `):delete this.styles[e]}var g={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:RegExp(`^(?:`+[`normal|none`,`inherit|initial|unset`,`common-ligatures|no-common-ligatures`,`discretionary-ligatures|no-discretionary-ligatures`,`historical-ligatures|no-historical-ligatures`,`contextual|no-contextual`,`(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)`,`small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps`,`lining-nums|oldstyle-nums|proportional-nums|tabular-nums`,`diagonal-fractions|stacked-fractions`,`ordinal|slashed-zero`,`jis78|jis83|jis90|jis04|simplified|traditional`,`full-width|proportional-width`,`ruby`].join(`|`)+`)$`),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:RegExp(`^(?:`+[`normal`,`(?:(?:ultra|extra|semi)-)?condensed`,`(?:(?:semi|extra|ulta)-)?expanded`,`inherit|initial|unset`].join(`|`)+`)$`),size:RegExp(`^(?:`+[`xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller`,`[d.]+%|[d.]+[a-z]+`,`inherit|initial|unset`].join(`|`)+`)(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$`)};function _(e){var t,n,a,o,s=c(this.styles[e]),l={style:``,variant:[],weight:``,stretch:``,size:``,family:``,"line-height":``};try{for(var u=r(s),d=u.next();!d.done;d=u.next()){var f=d.value;l.family=f;try{for(var p=(a=void 0,r(Object.keys(g))),m=p.next();!m.done;m=p.next()){var h=m.value;if((Array.isArray(l[h])||l[h]===``)&&f.match(g[h])){if(h===`size`){var _=i(f.split(/\//),2),y=_[0],b=_[1];l[h]=y,b&&(l[`line-height`]=b)}else l.size===``&&(Array.isArray(l[h])?l[h].push(f):l[h]=f)}}}catch(e){a={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}v(e,l),delete this.styles[e]}function v(e,t){var n,i;try{for(var a=r(b.connect[e].children),o=a.next();!o.done;o=a.next()){var s=o.value,c=this.childName(e,s);if(Array.isArray(t[s])){var l=t[s];l.length&&(this.styles[c]=l.join(` `))}else t[s]!==``&&(this.styles[c]=t[s])}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}}function y(e){}var b=function(){function e(e){e===void 0&&(e=``),this.parse(e)}return Object.defineProperty(e.prototype,"cssText",{get:function(){var e,t,n=[];try{for(var i=r(Object.keys(this.styles)),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.parentName(o);this.styles[s]||n.push(o+`: `+this.styles[o]+`;`)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n.join(` `)},enumerable:!1,configurable:!0}),e.prototype.set=function(t,n){for(t=this.normalizeName(t),this.setStyle(t,n),e.connect[t]&&!e.connect[t].combine&&(this.combineChildren(t),delete this.styles[t]);t.match(/-/)&&(t=this.parentName(t),e.connect[t]);)e.connect[t].combine.call(this,t)},e.prototype.get=function(e){return e=this.normalizeName(e),this.styles.hasOwnProperty(e)?this.styles[e]:``},e.prototype.setStyle=function(t,n){this.styles[t]=n,e.connect[t]&&e.connect[t].children&&e.connect[t].split.call(this,t),n===``&&delete this.styles[t]},e.prototype.combineChildren=function(t){var n,i,a=this.parentName(t);try{for(var o=r(e.connect[t].children),s=o.next();!s.done;s=o.next()){var c=s.value,l=this.childName(a,c);e.connect[l].combine.call(this,l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.parentName=function(e){var t=e.replace(/-[^-]*$/,``);return e===t?``:t},e.prototype.childName=function(t,n){return n.match(/-/)?n:(e.connect[t]&&!e.connect[t].combine&&(n+=t.replace(/.*-/,`-`),t=this.parentName(t)),t+`-`+n)},e.prototype.normalizeName=function(e){return e.replace(/[A-Z]/g,function(e){return`-`+e.toLowerCase()})},e.prototype.parse=function(e){e===void 0&&(e=``);var t=this.constructor.pattern;this.styles={};for(var n=e.replace(t.comment,``).split(t.style);n.length>1;){var r=i(n.splice(0,3),3),a=r[0],o=r[1],s=r[2];if(a.match(/[^\s\n]/))return;this.set(o,s)}},e.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g},e.connect={padding:{children:o,split:l,combine:u},border:{children:o,split:d,combine:f},"border-top":{children:s,split:m,combine:h},"border-right":{children:s,split:m,combine:h},"border-bottom":{children:s,split:m,combine:h},"border-left":{children:s,split:m,combine:h},"border-width":{children:o,split:l,combine:null},"border-style":{children:o,split:l,combine:null},"border-color":{children:o,split:l,combine:null},font:{children:[`style`,`variant`,`weight`,`stretch`,`line-height`,`size`,`family`],split:_,combine:y}},e}();e.Styles=b})),y=e(((e,t,i)=>{var c=i&&i.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),l=i&&i.__assign||function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)},u=i&&i.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},d=i&&i.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},f=i&&i.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.liteAdaptor=e.LiteAdaptor=e.LiteBase=void 0;var p=r(),m=a(),h=o(),y=n(),b=s(),x=_(),S=g(),C=v(),w=function(e){c(t,e);function t(){var t=e.call(this)||this;return t.parser=new S.LiteParser,t.window=new x.LiteWindow,t}return t.prototype.parse=function(e,t){return this.parser.parseFromString(e,t,this)},t.prototype.create=function(e,t){return t===void 0&&(t=null),new y.LiteElement(e)},t.prototype.text=function(e){return new b.LiteText(e)},t.prototype.comment=function(e){return new b.LiteComment(e)},t.prototype.createDocument=function(){return new h.LiteDocument},t.prototype.head=function(e){return e.head},t.prototype.body=function(e){return e.body},t.prototype.root=function(e){return e.root},t.prototype.doctype=function(e){return e.type},t.prototype.tags=function(e,t,n){n===void 0&&(n=null);var r=[],i=[];if(n)return i;for(var a=e;a;){var o=a.kind;o!==`#text`&&o!==`#comment`&&(a=a,o===t&&i.push(a),a.children.length&&(r=a.children.concat(r))),a=r.shift()}return i},t.prototype.elementById=function(e,t){for(var n=[],r=e;r;){if(r.kind!==`#text`&&r.kind!==`#comment`){if(r=r,r.attributes.id===t)return r;r.children.length&&(n=r.children.concat(n))}r=n.shift()}return null},t.prototype.elementsByClass=function(e,t){for(var n=[],r=[],i=e;i;)i.kind!==`#text`&&i.kind!==`#comment`&&(i=i,(i.attributes.class||``).trim().split(/ +/).includes(t)&&r.push(i),i.children.length&&(n=i.children.concat(n))),i=n.shift();return r},t.prototype.getElements=function(e,t){var n,r,i=[],a=this.body(t);try{for(var o=u(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(typeof c==`string`){if(c.charAt(0)===`#`){var l=this.elementById(a,c.slice(1));l&&i.push(l)}else c.charAt(0)===`.`?i=i.concat(this.elementsByClass(a,c.slice(1))):c.match(/^[-a-z][-a-z0-9]*$/i)&&(i=i.concat(this.tags(a,c)))}else Array.isArray(c)?i=i.concat(c):c instanceof this.window.NodeList||c instanceof this.window.HTMLCollection?i=i.concat(c.nodes):i.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},t.prototype.contains=function(e,t){for(;t&&t!==e;)t=this.parent(t);return!!t},t.prototype.parent=function(e){return e.parent},t.prototype.childIndex=function(e){return e.parent?e.parent.children.findIndex(function(t){return t===e}):-1},t.prototype.append=function(e,t){return t.parent&&this.remove(t),e.children.push(t),t.parent=e,t},t.prototype.insert=function(e,t){if(e.parent&&this.remove(e),t&&t.parent){var n=this.childIndex(t);t.parent.children.splice(n,0,e),e.parent=t.parent}},t.prototype.remove=function(e){var t=this.childIndex(e);return t>=0&&e.parent.children.splice(t,1),e.parent=null,e},t.prototype.replace=function(e,t){var n=this.childIndex(t);return n>=0&&(t.parent.children[n]=e,e.parent=t.parent,t.parent=null),t},t.prototype.clone=function(e){var t=this,n=new y.LiteElement(e.kind);return n.attributes=l({},e.attributes),n.children=e.children.map(function(e){if(e.kind===`#text`)return new b.LiteText(e.value);if(e.kind===`#comment`)return new b.LiteComment(e.value);var r=t.clone(e);return r.parent=n,r}),n},t.prototype.split=function(e,t){var n=new b.LiteText(e.value.slice(t));return e.value=e.value.slice(0,t),e.parent.children.splice(this.childIndex(e)+1,0,n),n.parent=e.parent,n},t.prototype.next=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)+1;return n>=0&&n<t.children.length?t.children[n]:null},t.prototype.previous=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)-1;return n>=0?t.children[n]:null},t.prototype.firstChild=function(e){return e.children[0]},t.prototype.lastChild=function(e){return e.children[e.children.length-1]},t.prototype.childNodes=function(e){return f([],d(e.children),!1)},t.prototype.childNode=function(e,t){return e.children[t]},t.prototype.kind=function(e){return e.kind},t.prototype.value=function(e){return e.kind===`#text`?e.value:e.kind===`#comment`?e.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,`$2`):``},t.prototype.textContent=function(e){var t=this;return e.children.reduce(function(e,n){return e+(n.kind===`#text`?n.value:n.kind===`#comment`?``:t.textContent(n))},``)},t.prototype.innerHTML=function(e){return this.parser.serializeInner(this,e)},t.prototype.outerHTML=function(e){return this.parser.serialize(this,e)},t.prototype.serializeXML=function(e){return this.parser.serialize(this,e,!0)},t.prototype.setAttribute=function(e,t,n,r){r===void 0&&(r=null),typeof n!=`string`&&(n=String(n)),r&&(t=r.replace(/.*\//,``)+`:`+t.replace(/^.*:/,``)),e.attributes[t]=n,t===`style`&&(e.styles=null)},t.prototype.getAttribute=function(e,t){return e.attributes[t]},t.prototype.removeAttribute=function(e,t){delete e.attributes[t]},t.prototype.hasAttribute=function(e,t){return e.attributes.hasOwnProperty(t)},t.prototype.allAttributes=function(e){var t,n,r=e.attributes,i=[];try{for(var a=u(Object.keys(r)),o=a.next();!o.done;o=a.next()){var s=o.value;i.push({name:s,value:r[s]})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},t.prototype.addClass=function(e,t){var n=(e.attributes.class||``).split(/ /);n.find(function(e){return e===t})||(n.push(t),e.attributes.class=n.join(` `))},t.prototype.removeClass=function(e,t){var n=(e.attributes.class||``).split(/ /),r=n.findIndex(function(e){return e===t});r>=0&&(n.splice(r,1),e.attributes.class=n.join(` `))},t.prototype.hasClass=function(e,t){return!!(e.attributes.class||``).split(/ /).find(function(e){return e===t})},t.prototype.setStyle=function(e,t,n){e.styles||=new C.Styles(this.getAttribute(e,`style`)),e.styles.set(t,n),e.attributes.style=e.styles.cssText},t.prototype.getStyle=function(e,t){if(!e.styles){var n=this.getAttribute(e,`style`);if(!n)return``;e.styles=new C.Styles(n)}return e.styles.get(t)},t.prototype.allStyles=function(e){return this.getAttribute(e,`style`)},t.prototype.insertRules=function(e,t){e.children=[this.text(t.join(`
|
|
2
2
|
|
|
3
3
|
`)+`
|
|
4
4
|
|
package/dist/client/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<link rel="apple-touch-icon" href="./apple-touch-icon.png" />
|
|
10
10
|
<link rel="manifest" href="./manifest.webmanifest" />
|
|
11
11
|
<style>:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--pi-control-font-size:16px;--pi-control-font-family:system-ui, sans-serif;--pi-control-monospace-font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--pi-bg:#0d1117;--pi-surface:#161b22;--pi-surface-hover:#21262d;--pi-terminal-bg:#05070a;--pi-terminal-text:#e6edf3;--pi-border:#30363d;--pi-border-muted:#21262d;--pi-hierarchy-border:#5c6b80;--pi-text:#e6edf3;--pi-text-secondary:#c9d1d9;--pi-text-bright:#f0f6fc;--pi-muted:#8b949e;--pi-dim:#6e7681;--pi-accent:#58a6ff;--pi-accent-border:#2f81f7;--pi-selection-bg:#0d2847;--pi-success:#3fb950;--pi-success-border:#238636;--pi-success-bg:#0f1b12;--pi-success-surface:#0f2a16;--pi-success-ring:#3fb95055;--pi-warning:#d29922;--pi-warning-border:#6e5200;--pi-warning-surface:#1f1a10;--pi-danger:#ff7b72;--pi-purple:#d2a8ff;--pi-purple-border:#a371f7;--pi-purple-surface:#21132f;--pi-overlay:#0008;--pi-shadow-soft:#0006;--pi-shadow:#0008;--pi-shadow-strong:#000b;--pi-bg-overlay-soft:#0d1117dd;--pi-bg-overlay:#0d1117e6;--pi-success-bg-overlay:#0f1b12ee;--pi-terminal-selection:#264f78}html,body{background:var(--pi-bg);height:100%;color:var(--pi-text);margin:0;overflow:hidden}body{min-height:100dvh}</style>
|
|
12
|
-
<script type="module" crossorigin src="./assets/index-
|
|
12
|
+
<script type="module" crossorigin src="./assets/index-Cv-pHUkZ.js"></script>
|
|
13
13
|
<link rel="modulepreload" crossorigin href="./assets/decorate-85DywWfW.js">
|
|
14
14
|
<link rel="modulepreload" crossorigin href="./assets/vendor-editor-core-DHpQKRa6.js">
|
|
15
15
|
<link rel="modulepreload" crossorigin href="./assets/vendor-editor-languages-D-ZESBBF.js">
|
|
@@ -3234,16 +3234,26 @@ export class PiSessionService {
|
|
|
3234
3234
|
const model = session.model;
|
|
3235
3235
|
if (model === undefined)
|
|
3236
3236
|
return;
|
|
3237
|
-
void runWithUtilityModelFallback(this.utilityModelResolver, "lightweight", { model, thinkingLevel: "minimal" },
|
|
3237
|
+
void runWithUtilityModelFallback(this.utilityModelResolver, "lightweight", { model, thinkingLevel: "minimal" }, async (attempt) => {
|
|
3238
|
+
const result = await generateShortSessionName(session.agent.streamFunction, attempt.model, firstMessage);
|
|
3239
|
+
if (result.ok)
|
|
3240
|
+
return result;
|
|
3241
|
+
this.logger.info({
|
|
3242
|
+
provider: attempt.model.provider,
|
|
3243
|
+
modelId: attempt.model.id,
|
|
3244
|
+
reason: result.reason,
|
|
3245
|
+
}, "utility title model rejected");
|
|
3246
|
+
return undefined;
|
|
3247
|
+
}, (attempt, error) => {
|
|
3238
3248
|
this.logger.info({
|
|
3239
3249
|
provider: attempt.model.provider,
|
|
3240
3250
|
modelId: attempt.model.id,
|
|
3241
3251
|
thinkingLevel: attempt.thinkingLevel,
|
|
3242
3252
|
error: error instanceof Error ? error.message : String(error),
|
|
3243
3253
|
}, "utility title model failed");
|
|
3244
|
-
})
|
|
3245
|
-
.then((
|
|
3246
|
-
this.applyGeneratedSessionName(session,
|
|
3254
|
+
}, (attempt) => ({ ...attempt, thinkingLevel: "off" }))
|
|
3255
|
+
.then((result) => {
|
|
3256
|
+
this.applyGeneratedSessionName(session, result?.title ?? fallbackSessionName(firstMessage));
|
|
3247
3257
|
})
|
|
3248
3258
|
.catch((error) => {
|
|
3249
3259
|
this.logger.info({
|