diff --git a/cdn/build/es6/node_modules/@haxtheweb/a11y-collapse/a11y-collapse.js b/cdn/build/es6/node_modules/@haxtheweb/a11y-collapse/a11y-collapse.js
index 5c020e0b3..a5710be9a 100644
--- a/cdn/build/es6/node_modules/@haxtheweb/a11y-collapse/a11y-collapse.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/a11y-collapse/a11y-collapse.js
@@ -62,7 +62,7 @@ import{html as e,css as a}from"../../lit/index.js";import{DDD as t}from"../d-d-d
overflow: hidden;
}
#expand {
- transform: rotate(var(--a11y-collapse-transform-deg,0deg));
+ transform: rotate(var(--a11y-collapse-transform-deg, 0deg));
transition: transform 0.75s ease;
}
#content {
@@ -90,7 +90,9 @@ import{html as e,css as a}from"../../lit/index.js";import{DDD as t}from"../d-d-d
}
@media screen {
#expand.rotated {
- transform: rotate(var(--a11y-collapse-transform-rotated-deg, -90deg));
+ transform: rotate(
+ var(--a11y-collapse-transform-rotated-deg, -90deg)
+ );
transition: transform 0.75s ease;
}
:host #content {
diff --git a/cdn/build/es6/node_modules/@haxtheweb/d-d-d/d-d-d.js b/cdn/build/es6/node_modules/@haxtheweb/d-d-d/d-d-d.js
index ab9520424..2a896824e 100644
--- a/cdn/build/es6/node_modules/@haxtheweb/d-d-d/d-d-d.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/d-d-d/d-d-d.js
@@ -2,7 +2,7 @@
* Copyright 2024
* @license Apache-2.0, see License.md for full details.
*/
-import{LitElement as e,css as t,html as a}from"../../lit/index.js";import{SimpleColorsSuper as r}from"../simple-colors/simple-colors.js";import{DDDReset as s,DDDAllStyles as d,DDDFonts as o,DDDPulseEffect as i,DDDAnimations as l,DDDDataAttributes as n,ApplicationAttributeData as p}from"./lib/DDDStyles.js";export function loadDDDFonts(){globalThis&&globalThis.document&&!globalThis.document.querySelector('[data-ddd="font"]')&&o.forEach((e=>{const t=globalThis.document.createElement("link");t.setAttribute("href",e),t.setAttribute("rel","stylesheet"),t.setAttribute("fetchpriority","low"),t.setAttribute("data-ddd","font"),globalThis.document.head.appendChild(t)}))}export function dddCSSFeatureDetection(){CSS.supports("initial-letter","1")||(console.warn("CSS feature: initial-letter not supported"),console.warn("Adding dropCap-noSupport class"),globalThis.document.body.classList.add("dropCap-noSupport"))}export const DDDPulseEffectSuper=function(e){return class extends e{constructor(){super(),this.dataPulse=null,this.__abortController=new AbortController}static get properties(){return{...super.properties,dataPulse:{type:String,reflect:!0,attribute:"data-pulse"}}}static get styles(){let e=[];return super.styles&&(e=super.styles),[e,i,l]}removePulseEffect(e){this.dataPulse=null}togglePulseEffect(e){e?(this.__abortController=new AbortController,this.addEventListener("mouseenter",this.removePulseEffect,{signal:this.__abortController.signal})):(this.removeEventListener("mouseenter",this.removePulseEffect),this.__abortController.abort())}updated(e){super.updated&&super.updated(e),e.has("dataPulse")&&(null!==this.dataPulse?this.togglePulseEffect(!0):this.togglePulseEffect(!1))}}};export const DDDSuper=function(e){return class extends e{constructor(){super(),this.sm=768,this.md=1080,this.isSafari=void 0!==globalThis.safari,globalThis.DDDSharedStyles.requestAvailability()}static get properties(){return{...super.properties,isSafari:{type:Boolean,reflect:!0,attribute:"is-safari"}}}static get styles(){let e=[];return super.styles&&(e=super.styles),[e,s]}}};class DDD extends(DDDSuper(r(e))){constructor(){super()}static get tag(){return"d-d-d"}}globalThis.customElements.define(DDD.tag,DDD);export{DDD};globalThis.DDDSharedStyles=globalThis.DDDSharedStyles||{},globalThis.DDDSharedStyles.requestAvailability=()=>{if(null==globalThis.DDDSharedStyles.instance&&globalThis.document&&globalThis.document.head){let e=d.map((e=>e.cssText?e.cssText:"")).join("");try{const t=new CSSStyleSheet;t.replaceSync(e),t.hax=!0,globalThis.document.adoptedStyleSheets=[...globalThis.document.adoptedStyleSheets,t],loadDDDFonts(),globalThis.document.onload=dddCSSFeatureDetection(),globalThis.DDDSharedStyles.instance=t}catch(t){const a=globalThis.document.createElement("style");a.innerHTML=e,globalThis.document.head.appendChild(a),loadDDDFonts(),globalThis.document.onload=dddCSSFeatureDetection(),globalThis.DDDSharedStyles.instance=a}}return globalThis.DDDSharedStyles.instance};export const DDDSharedStylesGlobal=globalThis.DDDSharedStyles.requestAvailability();export{o as DDDFonts};export class DDDSample extends(DDDSuper(e)){constructor(){super(),this.type=null,this.option=0}static get styles(){return[super.styles,...n,t`
+import{LitElement as e,css as t,html as a}from"../../lit/index.js";import{SimpleColorsSuper as r}from"../simple-colors/simple-colors.js";import{DDDReset as s,DDDAllStyles as d,DDDFonts as o,DDDPulseEffect as i,DDDAnimations as l,DDDDataAttributes as n,ApplicationAttributeData as p}from"./lib/DDDStyles.js";export function loadDDDFonts(){globalThis&&globalThis.document&&!globalThis.document.querySelector('[data-ddd="font"]')&&o.forEach((e=>{const t=globalThis.document.createElement("link");t.setAttribute("href",e),t.setAttribute("rel","stylesheet"),t.setAttribute("fetchpriority","low"),t.setAttribute("data-ddd","font"),globalThis.document.head.appendChild(t)}))}export function dddCSSFeatureDetection(){CSS.supports("initial-letter","1")||(console.warn("CSS feature: initial-letter not supported"),console.warn("Adding dropCap-noSupport class"),globalThis.document.body.classList.add("dropCap-noSupport"))}export const DDDPulseEffectSuper=function(e){return class extends e{constructor(){super(),this.dataPulse=null,this.__abortController=new AbortController}static get properties(){return{...super.properties,dataPulse:{type:String,reflect:!0,attribute:"data-pulse"}}}static get styles(){let e=[];return super.styles&&(e=super.styles),[e,i,l]}removePulseEffect(e){this.dataPulse=null}togglePulseEffect(e){e?(this.__abortController=new AbortController,this.addEventListener("mouseenter",this.removePulseEffect,{signal:this.__abortController.signal})):(this.removeEventListener("mouseenter",this.removePulseEffect),this.__abortController.abort())}updated(e){super.updated&&super.updated(e),e.has("dataPulse")&&(null!==this.dataPulse?this.togglePulseEffect(!0):this.togglePulseEffect(!1))}}};export const DDDSuper=function(e){return class extends e{constructor(){super(),this.isSafari=void 0!==globalThis.safari,globalThis.DDDSharedStyles.requestAvailability()}static get properties(){return{...super.properties,isSafari:{type:Boolean,reflect:!0,attribute:"is-safari"}}}static get styles(){let e=[];return super.styles&&(e=super.styles),[e,s]}}};class DDD extends(DDDSuper(r(e))){constructor(){super()}static get tag(){return"d-d-d"}}globalThis.customElements.define(DDD.tag,DDD);export{DDD};globalThis.DDDSharedStyles=globalThis.DDDSharedStyles||{},globalThis.DDDSharedStyles.requestAvailability=()=>{if(null==globalThis.DDDSharedStyles.instance&&globalThis.document&&globalThis.document.head){let e=d.map((e=>e.cssText?e.cssText:"")).join("");try{const t=new CSSStyleSheet;t.replaceSync(e),t.hax=!0,globalThis.document.adoptedStyleSheets=[...globalThis.document.adoptedStyleSheets,t],loadDDDFonts(),globalThis.document.onload=dddCSSFeatureDetection(),globalThis.DDDSharedStyles.instance=t}catch(t){const a=globalThis.document.createElement("style");a.innerHTML=e,globalThis.document.head.appendChild(a),loadDDDFonts(),globalThis.document.onload=dddCSSFeatureDetection(),globalThis.DDDSharedStyles.instance=a}}return globalThis.DDDSharedStyles.instance};export const DDDSharedStylesGlobal=globalThis.DDDSharedStyles.requestAvailability();export{o as DDDFonts};export class DDDSample extends(DDDSuper(e)){constructor(){super(),this.type=null,this.option=0}static get styles(){return[super.styles,...n,t`
:host {
display: flex;
min-height: var(--ddd-spacing-4);
diff --git a/cdn/build/es6/node_modules/@haxtheweb/hax-body/lib/hax-tray.js b/cdn/build/es6/node_modules/@haxtheweb/hax-body/lib/hax-tray.js
index d5316ab74..e990290cf 100755
--- a/cdn/build/es6/node_modules/@haxtheweb/hax-body/lib/hax-tray.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/hax-body/lib/hax-tray.js
@@ -160,9 +160,10 @@ import{html as t,css as e}from"../../../lit/index.js";import{winEventsElement as
pointer-events: all;
background-color: var(--hax-ui-background-color);
max-height: calc(100vh - 48px);
- width: var(--hax-tray-element-custom-width, calc(
- var(--hax-tray-width) - var(--hax-tray-menubar-min-width)
- ));
+ width: var(
+ --hax-tray-element-custom-width,
+ calc(var(--hax-tray-width) - var(--hax-tray-menubar-min-width))
+ );
max-width: 70vw;
min-width: 200px;
overflow-x: auto;
diff --git a/cdn/build/es6/node_modules/@haxtheweb/haxcms-elements/package.json b/cdn/build/es6/node_modules/@haxtheweb/haxcms-elements/package.json
index c25ffbbfa..902cee008 100755
--- a/cdn/build/es6/node_modules/@haxtheweb/haxcms-elements/package.json
+++ b/cdn/build/es6/node_modules/@haxtheweb/haxcms-elements/package.json
@@ -16,7 +16,7 @@
},
"sharedStyles": []
},
- "version": "9.0.27",
+ "version": "10.0.1",
"description": "HAX CMS series of elements to provide a full on CMS",
"repository": {
"type": "git",
@@ -42,64 +42,64 @@
"license": "Apache-2.0",
"dependencies": {
"@github/time-elements": "3.1.4",
- "@haxtheweb/anchor-behaviors": "^9.0.22",
- "@haxtheweb/app-hax": "^9.0.27",
- "@haxtheweb/beaker-broker": "^9.0.25",
- "@haxtheweb/chat-agent": "^9.0.27",
- "@haxtheweb/citation-element": "^9.0.27",
- "@haxtheweb/clean-one": "^9.0.27",
- "@haxtheweb/clean-two": "^9.0.27",
- "@haxtheweb/collection-list": "^9.0.27",
- "@haxtheweb/course-design": "^9.0.27",
- "@haxtheweb/dynamic-import-registry": "^9.0.22",
+ "@haxtheweb/anchor-behaviors": "^10.0.0",
+ "@haxtheweb/app-hax": "^10.0.1",
+ "@haxtheweb/beaker-broker": "^10.0.1",
+ "@haxtheweb/chat-agent": "^10.0.1",
+ "@haxtheweb/citation-element": "^10.0.1",
+ "@haxtheweb/clean-one": "^10.0.1",
+ "@haxtheweb/clean-two": "^10.0.1",
+ "@haxtheweb/collection-list": "^10.0.1",
+ "@haxtheweb/course-design": "^10.0.1",
+ "@haxtheweb/dynamic-import-registry": "^10.0.0",
"@haxtheweb/editable-outline": "^9.0.1",
- "@haxtheweb/editable-table": "^9.0.27",
- "@haxtheweb/full-width-image": "^9.0.25",
- "@haxtheweb/git-corner": "^9.0.22",
- "@haxtheweb/h-a-x": "^9.0.27",
- "@haxtheweb/hax-body": "^9.0.27",
- "@haxtheweb/hax-body-behaviors": "^9.0.25",
- "@haxtheweb/hax-logo": "^9.0.22",
- "@haxtheweb/haxor-slevin": "^9.0.27",
- "@haxtheweb/html-block": "^9.0.22",
- "@haxtheweb/json-outline-schema": "^9.0.27",
- "@haxtheweb/jwt-login": "^9.0.25",
- "@haxtheweb/learn-two-theme": "^9.0.27",
- "@haxtheweb/lesson-overview": "^9.0.27",
- "@haxtheweb/license-element": "^9.0.27",
+ "@haxtheweb/editable-table": "^10.0.1",
+ "@haxtheweb/full-width-image": "^10.0.1",
+ "@haxtheweb/git-corner": "^10.0.0",
+ "@haxtheweb/h-a-x": "^10.0.1",
+ "@haxtheweb/hax-body": "^10.0.1",
+ "@haxtheweb/hax-body-behaviors": "^10.0.1",
+ "@haxtheweb/hax-logo": "^10.0.0",
+ "@haxtheweb/haxor-slevin": "^10.0.1",
+ "@haxtheweb/html-block": "^10.0.0",
+ "@haxtheweb/json-outline-schema": "^10.0.1",
+ "@haxtheweb/jwt-login": "^10.0.1",
+ "@haxtheweb/learn-two-theme": "^10.0.1",
+ "@haxtheweb/lesson-overview": "^10.0.1",
+ "@haxtheweb/license-element": "^10.0.1",
"@haxtheweb/lrndesign-sidenote": "^9.0.1",
- "@haxtheweb/lunr-search": "^9.0.22",
- "@haxtheweb/map-menu": "^9.0.27",
- "@haxtheweb/md-block": "^9.0.27",
- "@haxtheweb/outline-designer": "^9.0.27",
- "@haxtheweb/outline-player": "^9.0.27",
- "@haxtheweb/page-contents-menu": "^9.0.27",
- "@haxtheweb/page-flag": "^9.0.27",
- "@haxtheweb/play-list": "^9.0.27",
- "@haxtheweb/portal-launcher": "^9.0.22",
- "@haxtheweb/product-card": "^9.0.27",
- "@haxtheweb/q-r": "^9.0.25",
- "@haxtheweb/replace-tag": "^9.0.22",
- "@haxtheweb/retro-card": "^9.0.27",
- "@haxtheweb/rpg-character": "^9.0.27",
- "@haxtheweb/runkit-embed": "^9.0.27",
- "@haxtheweb/schema-behaviors": "^9.0.25",
- "@haxtheweb/scroll-button": "^9.0.27",
- "@haxtheweb/simple-blog": "^9.0.27",
- "@haxtheweb/simple-colors": "^9.0.27",
- "@haxtheweb/simple-datetime": "^9.0.25",
- "@haxtheweb/simple-fields": "^9.0.27",
- "@haxtheweb/simple-icon": "^9.0.27",
- "@haxtheweb/simple-icon-picker": "^9.0.27",
- "@haxtheweb/simple-img": "^9.0.22",
- "@haxtheweb/simple-login": "^9.0.27",
- "@haxtheweb/simple-picker": "^9.0.27",
- "@haxtheweb/simple-progress": "^9.0.22",
- "@haxtheweb/simple-toast": "^9.0.27",
- "@haxtheweb/simple-tooltip": "^9.0.27",
- "@haxtheweb/super-daemon": "^9.0.27",
- "@haxtheweb/video-player": "^9.0.27",
- "@haxtheweb/wc-autoload": "^9.0.22",
+ "@haxtheweb/lunr-search": "^10.0.0",
+ "@haxtheweb/map-menu": "^10.0.1",
+ "@haxtheweb/md-block": "^10.0.1",
+ "@haxtheweb/outline-designer": "^10.0.1",
+ "@haxtheweb/outline-player": "^10.0.1",
+ "@haxtheweb/page-contents-menu": "^10.0.1",
+ "@haxtheweb/page-flag": "^10.0.1",
+ "@haxtheweb/play-list": "^10.0.1",
+ "@haxtheweb/portal-launcher": "^10.0.0",
+ "@haxtheweb/product-card": "^10.0.1",
+ "@haxtheweb/q-r": "^10.0.1",
+ "@haxtheweb/replace-tag": "^10.0.0",
+ "@haxtheweb/retro-card": "^10.0.1",
+ "@haxtheweb/rpg-character": "^10.0.1",
+ "@haxtheweb/runkit-embed": "^10.0.1",
+ "@haxtheweb/schema-behaviors": "^10.0.1",
+ "@haxtheweb/scroll-button": "^10.0.1",
+ "@haxtheweb/simple-blog": "^10.0.1",
+ "@haxtheweb/simple-colors": "^10.0.1",
+ "@haxtheweb/simple-datetime": "^10.0.1",
+ "@haxtheweb/simple-fields": "^10.0.1",
+ "@haxtheweb/simple-icon": "^10.0.1",
+ "@haxtheweb/simple-icon-picker": "^10.0.1",
+ "@haxtheweb/simple-img": "^10.0.0",
+ "@haxtheweb/simple-login": "^10.0.1",
+ "@haxtheweb/simple-picker": "^10.0.1",
+ "@haxtheweb/simple-progress": "^10.0.0",
+ "@haxtheweb/simple-toast": "^10.0.1",
+ "@haxtheweb/simple-tooltip": "^10.0.1",
+ "@haxtheweb/super-daemon": "^10.0.1",
+ "@haxtheweb/video-player": "^10.0.1",
+ "@haxtheweb/wc-autoload": "^10.0.0",
"@polymer/app-layout": "^3.0.2",
"@polymer/iron-ajax": "^3.0.1",
"@polymer/iron-list": "^3.0.2",
@@ -117,8 +117,8 @@
"wired-elements": "3.0.0-rc.6"
},
"devDependencies": {
- "@haxtheweb/deduping-fix": "^9.0.22",
- "@haxtheweb/storybook-utilities": "^9.0.27",
+ "@haxtheweb/deduping-fix": "^10.0.0",
+ "@haxtheweb/storybook-utilities": "^10.0.1",
"@open-wc/testing": "4.0.0",
"@polymer/iron-component-page": "github:PolymerElements/iron-component-page",
"@polymer/iron-demo-helpers": "3.1.0",
diff --git a/cdn/build/es6/node_modules/@haxtheweb/la-tex/lib/latex2html5.js b/cdn/build/es6/node_modules/@haxtheweb/la-tex/lib/latex2html5.js
index c82534d7a..1a164b7f0 100644
--- a/cdn/build/es6/node_modules/@haxtheweb/la-tex/lib/latex2html5.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/la-tex/lib/latex2html5.js
@@ -11,4 +11,4 @@
* @contributor David Ellis
* @license MIT
*/
-var a=t("url"),s=t("child_process").spawn,u=t("fs");n.XMLHttpRequest=function(){var n,c,f=this,h=t("http"),d=t("https"),p={},g=!1,v={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},b={},_={},w=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],M=["TRACE","TRACK","CONNECT"],E=!1,T=!1,S={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.withCredentials=!1;this.open=function(t,e,n,i,a){if(this.abort(),T=!1,!function(t){return t&&-1===M.indexOf(t)}(t))throw new Error("SecurityError: Request method not allowed");p={method:t,url:e.toString(),async:"boolean"!=typeof n||n,user:i||null,password:a||null},setState(this.OPENED)},this.setDisableHeaderCheck=function(t){g=t},this.setRequestHeader=function(t,e){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(function(t){return g||t&&-1===w.indexOf(t.toLowerCase())}(t)){if(E)throw new Error("INVALID_STATE_ERR: send flag is true");t=_[t.toLowerCase()]||t,_[t.toLowerCase()]=t,b[t]=b[t]?b[t]+", "+e:e}else console.warn('Refused to set unsafe header "'+t+'"')},this.getResponseHeader=function(t){return"string"==typeof t&&this.readyState>this.OPENED&&c&&c.headers&&c.headers[t.toLowerCase()]&&!T?c.headers[t.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState"+e[1]+"":t})).join("\n"),n=document.createElement("ul");return n.className="math",n.innerHTML=e,n}},{}],112:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=document.createElement("div");return e.id="latex-macros",e.style.display="none",e.className="verbatim",e.innerHTML=a.default,e};var a=i(t("latex2js-macros"))},{"@babel/runtime/helpers/interopRequireDefault":6,"latex2js-macros":119}],113:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=document.createElement("span");return e.className="math",e.innerHTML=t.lines.join("\n"),e}},{}],114:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=document.createElement("span");return e.className="math nicebox",e.innerHTML=t.lines.join("\n"),e}},{}],115:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireWildcard"),a=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=u.psgraph.getSize.call(t),n=("width: ".concat(e.width,"px; height: ").concat(e.height,"px;"),"".concat(e.width,"px")),i="".concat(e.height,"px"),a=document.createElement("div");a.className="pspicture",a.style.width=n,a.style.height=i;var f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("width",n),f.setAttribute("height",i);var h=c.select(f);t.$el=a,u.psgraph.pspicture.call(t,h),a.appendChild(f);var d=t.env,p=t.plot,g=d.sliders;g&&g.length&&g.forEach((function(t){var e=t.latex,n=t.scalar,i=t.variable,c=t.value,f=t.min,g=t.max,v=document.createElement("label"),b=document.createTextNode(e),_=document.createElement("input");_.setAttribute("min",f*n),_.setAttribute("max",g*n),_.setAttribute("type","range"),_.setAttribute("value",c),v.appendChild(b),v.appendChild(_),a.appendChild(v),_.addEventListener("input",(function(t){!function onChange(t){var e=t.target.value/n;d.variables[i]=e,h.selectAll(".psplot").remove(),Object.entries(p).forEach((function(t){var e=(0,s.default)(t,2),n=e[0],i=e[1];n.match(/psplot/)&&i.forEach((function(t){var e=t.fn.call(t.env,t.match);u.psgraph[n]&&e&&h&&u.psgraph[n].call(e,h)}))}))}(t)}))}));return a};var s=a(t("@babel/runtime/helpers/slicedToArray")),u=t("latex2js-pstricks"),c=i(t("d3"))},{"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/interopRequireWildcard":7,"@babel/runtime/helpers/slicedToArray":10,d3:73,"latex2js-pstricks":121}],116:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){return document.createElement("input")}},{}],117:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=document.createElement("pre");return e.className="verbatim",e.innerHTML=t.lines.join("\n"),e}},{}],118:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=render,Object.defineProperty(n,"pspicture",{enumerable:!0,get:function get(){return u.default}}),Object.defineProperty(n,"nicebox",{enumerable:!0,get:function get(){return c.default}}),Object.defineProperty(n,"enumerate",{enumerable:!0,get:function get(){return f.default}}),Object.defineProperty(n,"verbatim",{enumerable:!0,get:function get(){return h.default}}),Object.defineProperty(n,"math",{enumerable:!0,get:function get(){return d.default}}),Object.defineProperty(n,"macros",{enumerable:!0,get:function get(){return p.default}}),n.init=void 0;var a=i(t("latex2js")),s=t("latex2js-mathjax"),u=i(t("./components/pspicture")),c=i(t("./components/nicebox")),f=i(t("./components/enumerate")),h=i(t("./components/verbatim")),d=(i(t("./components/slider")),i(t("./components/math"))),p=i(t("./components/macros")),g={pspicture:u.default,nicebox:c.default,enumerate:f.default,verbatim:h.default,math:d.default,macros:p.default};function render(t,e){var n=function done(){var n=(new a.default).parse(t),i=document.createElement("div");i.className="latex-container",n&&n.forEach&&n.forEach((function(t){g.hasOwnProperty(t.type)&&i.appendChild(g[t.type](t))})),e(i)};if((0,s.getMathJax)())return n();(0,s.loadMathJax)(n)}n.init=function init(){(0,s.loadMathJax)(),document.querySelectorAll("la-tex:not([hydrated])").forEach((function(t){render(t.innerHTML,(function(e){t.shadowRoot.querySelector(".wrapper").innerHTML="",t.shadowRoot.querySelector(".wrapper").appendChild(e),t.hydrated=!0}))}))}},{"./components/enumerate":111,"./components/macros":112,"./components/math":113,"./components/nicebox":114,"./components/pspicture":115,"./components/slider":116,"./components/verbatim":117,"@babel/runtime/helpers/interopRequireDefault":6,latex2js:126,"latex2js-mathjax":120}],119:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("@babel/runtime/helpers/taggedTemplateLiteral"));function _templateObject_5931a730bf0611ef92fd81a3a9486a2b(){var t=(0,a.default)(["\n $$\n % create the definition symbol\n def\bydef{stackrel{Delta}{=}}\n %defcircconv{otimes}\n defcircconv{circledast}\n\n \newcommand{qed}{mbox{ } Box}\n\n\n \newcommand{infint}{int_{-infty}^{infty}}\n\n % z transform\n \newcommand{ztp}{ ~~ mathop{mathcal{Z}}limits_{longleftrightarrow} ~~ }\n \newcommand{iztp}{ ~~ mathop{mathcal{Z}^{-1}}limits_{longleftrightarrow} ~~ }\n % fourier transform pair\n \newcommand{\ftp}{ ~~ mathop{mathcal{F}}limits_{longleftrightarrow} ~~ }\n \newcommand{iftp}{ ~~ mathop{mathcal{F}^{-1}}limits_{longleftrightarrow} ~~ }\n % laplace transform\n \newcommand{ltp}{ ~~ mathop{mathcal{L}}limits_{longleftrightarrow} ~~ }\n \newcommand{iltp}{ ~~ mathop{mathcal{L}^{-1}}limits_{longleftrightarrow} ~~ }\n\n \newcommand{\ftrans}[1]{ mathcal{F} left{#1\right} }\n \newcommand{iftrans}[1]{ mathcal{F}^{-1} left{#1\right} }\n \newcommand{ztrans}[1]{ mathcal{Z} left{#1\right} }\n \newcommand{iztrans}[1]{ mathcal{Z}^{-1} left{#1\right} }\n \newcommand{ltrans}[1]{ mathcal{L} left{#1\right} }\n \newcommand{iltrans}[1]{ mathcal{L}^{-1} left{#1\right} }\n\n\n % coordinate vector relative to a basis (linear algebra)\n \newcommand{cvrb}[2]{left[ \vec{#1} \right]_{#2} }\n % change of coordinate matrix (linear algebra)\n \newcommand{cocm}[2]{ mathop{P}limits_{#2 leftarrow #1} }\n % Transformed vector set\n \newcommand{\tset}[3]{{#1lr{\vec{#2}_1}, #1lr{\vec{#2}_2}, dots, #1lr{\vec{#2}_{#3}}}}\n % sum transformed vector set\n \newcommand{\tsetcsum}[4]{{#1}_1#2(\vec{#3}_1) + {#1}_2#2(\vec{#3}_2) + cdots + {#1}_{#4}#2(\vec{#3}_{#4})}\n \newcommand{\tsetcsumall}[4]{#2lr{{#1}_1\vec{#3}_1 + {#1}_2\vec{#3}_2 + cdots + {#1}_{#4}\vec{#3}_{#4}}}\n \newcommand{cvecsum}[3]{{#1}_1\vec{#2}_1 + {#1}_2\vec{#2}_2 + cdots + {#1}_{#3}\vec{#2}_{#3}}\n\n\n % function def\n \newcommand{\fndef}[3]{#1:#2 \to #3}\n % vector set\n \newcommand{\vset}[2]{{\vec{#1}_1, \vec{#1}_2, dots, \vec{#1}_{#2}}}\n % absolute value\n \newcommand{abs}[1]{left| #1 \right|}\n % vector norm\n \newcommand{\norm}[1]{left|left| #1 \right|\right|}\n % trans\n \newcommand{\trans}{mapsto}\n % evaluate integral\n \newcommand{evalint}[3]{left. #1 \right|_{#2}^{#3}}\n % slist\n \newcommand{slist}[2]{{#1}_{1},{#1}_{2},dots,{#1}_{#2}}\n\n % vectors\n \newcommand{\vc}[1]{\textbf{#1}}\n\n % real\n \newcommand{Real}[1]{{Re mit{e}left{{#1}\right}}}\n % imaginary\n \newcommand{Imag}[1]{{Im mit{m}left{{#1}\right}}}\n\n \newcommand{mcal}[1]{mathcal{#1}}\n \newcommand{\bb}[1]{mathbb{#1}}\n \newcommand{N}{mathbb{N}}\n \newcommand{Z}{mathbb{Z}}\n \newcommand{Q}{mathbb{Q}}\n \newcommand{R}{mathbb{R}}\n \newcommand{C}{mathbb{C}}\n \newcommand{I}{mathbb{I}}\n \newcommand{Th}[1]{mathopmathrm{Th(#1)}}\n \newcommand{intersect}{cap}\n \newcommand{\\union}{cup}\n \newcommand{intersectop}{\bigcap}\n \newcommand{\\unionop}{\bigcup}\n \newcommand{setdiff}{\backslash}\n \newcommand{iso}{cong}\n \newcommand{aut}[1]{mathop{mathrm{Aut(#1)}}}\n \newcommand{inn}[1]{mathop{mathrm{Inn(#1)}}}\n \newcommand{Ann}[1]{mathop{mathrm{Ann(#1)}}}\n \newcommand{dom}[1]{mathop{mathrm{dom} #1}}\n \newcommand{cod}[1]{mathop{mathrm{cod} #1}}\n \newcommand{id}{mathrm{id}}\n \newcommand{st}{ | }\n \newcommand{mbf}[1]{mathbf{#1}}\n \newcommand{enclose}[1]{leftlangle #1\right\rangle}\n \newcommand{lr}[1]{left( #1\right)}\n \newcommand{lrsq}[1]{left[ #1\right]}\n \newcommand{op}{mathrm{op}}\n \newcommand{dotarr}{dot{\rightarrow}}\n %Category Names:\n \newcommand{Grp}{mathbf{Grp}}\n \newcommand{Ab}{mathbf{Ab}}\n \newcommand{Set}{mathbf{Set}}\n \newcommand{Matr}{mathbf{Matr}}\n \newcommand{IntDom}{mathbf{IntDom}}\n \newcommand{Field}{mathbf{Field}}\n \newcommand{Vect}{mathbf{Vect}}\n\n \newcommand{\thm}[1]{\begin{theorem} #1 end{theorem}}\n \newcommand{clm}[1]{\begin{claim} #1 end{claim}}\n \newcommand{cor}[1]{\begin{corollary} #1 end{corollary}}\n \newcommand{ex}[1]{\begin{example} #1 end{example}}\n \newcommand{prf}[1]{\begin{proof} #1 end{proof}}\n \newcommand{prbm}[1]{\begin{problem} #1 end{problem}}\n \newcommand{soln}[1]{\begin{solution} #1 end{solution}}\n \newcommand{\rmk}[1]{\begin{remark} #1 end{remark}}\n \newcommand{defn}[1]{\begin{definition} #1 end{definition}}\n\n \newcommand{ifff}{LeftRightArrow}\n\n \x3c!-- For the set of reals and integers --\x3e\n \newcommand{\rr}{R}\n \newcommand{\reals}{R}\n \newcommand{ii}{Z}\n \newcommand{cc}{C}\n \newcommand{\nn}{N}\n \newcommand{\nats}{N}\n\n \x3c!-- For terms being indexed.\n Puts them in standard font face and creates an index entry.\n arg: The term being defined.\n \newcommand{pointer}[1]{#1index{#1}} --\x3e\n\n \x3c!-- For bold terms to be index, but defined elsewhere\n Puts them in bold face and creates an index entry.\n arg: The term being defined. --\x3e\n \newcommand{strong}[1]{\textbf{#1}}\n\n \x3c!-- For set names.\n Puts them in italics. In math mode, yields decent spacing.\n arg: The name of the set. --\x3e\n \newcommand{set}[1]{\textit{#1}}\n\n $$\n "],["\n $$\n % create the definition symbol\n \\def\\bydef{\\stackrel{\\Delta}{=}}\n %\\def\\circconv{\\otimes}\n \\def\\circconv{\\circledast}\n\n \\newcommand{\\qed}{\\mbox{ } \\Box}\n\n\n \\newcommand{\\infint}{\\int_{-\\infty}^{\\infty}}\n\n % z transform\n \\newcommand{\\ztp}{ ~~ \\mathop{\\mathcal{Z}}\\limits_{\\longleftrightarrow} ~~ }\n \\newcommand{\\iztp}{ ~~ \\mathop{\\mathcal{Z}^{-1}}\\limits_{\\longleftrightarrow} ~~ }\n % fourier transform pair\n \\newcommand{\\ftp}{ ~~ \\mathop{\\mathcal{F}}\\limits_{\\longleftrightarrow} ~~ }\n \\newcommand{\\iftp}{ ~~ \\mathop{\\mathcal{F}^{-1}}\\limits_{\\longleftrightarrow} ~~ }\n % laplace transform\n \\newcommand{\\ltp}{ ~~ \\mathop{\\mathcal{L}}\\limits_{\\longleftrightarrow} ~~ }\n \\newcommand{\\iltp}{ ~~ \\mathop{\\mathcal{L}^{-1}}\\limits_{\\longleftrightarrow} ~~ }\n\n \\newcommand{\\ftrans}[1]{ \\mathcal{F} \\left\\{#1\\right\\} }\n \\newcommand{\\iftrans}[1]{ \\mathcal{F}^{-1} \\left\\{#1\\right\\} }\n \\newcommand{\\ztrans}[1]{ \\mathcal{Z} \\left\\{#1\\right\\} }\n \\newcommand{\\iztrans}[1]{ \\mathcal{Z}^{-1} \\left\\{#1\\right\\} }\n \\newcommand{\\ltrans}[1]{ \\mathcal{L} \\left\\{#1\\right\\} }\n \\newcommand{\\iltrans}[1]{ \\mathcal{L}^{-1} \\left\\{#1\\right\\} }\n\n\n % coordinate vector relative to a basis (linear algebra)\n \\newcommand{\\cvrb}[2]{\\left[ \\vec{#1} \\right]_{#2} }\n % change of coordinate matrix (linear algebra)\n \\newcommand{\\cocm}[2]{ \\mathop{P}\\limits_{#2 \\leftarrow #1} }\n % Transformed vector set\n \\newcommand{\\tset}[3]{\\{#1\\lr{\\vec{#2}_1}, #1\\lr{\\vec{#2}_2}, \\dots, #1\\lr{\\vec{#2}_{#3}}\\}}\n % sum transformed vector set\n \\newcommand{\\tsetcsum}[4]{{#1}_1#2(\\vec{#3}_1) + {#1}_2#2(\\vec{#3}_2) + \\cdots + {#1}_{#4}#2(\\vec{#3}_{#4})}\n \\newcommand{\\tsetcsumall}[4]{#2\\lr{{#1}_1\\vec{#3}_1 + {#1}_2\\vec{#3}_2 + \\cdots + {#1}_{#4}\\vec{#3}_{#4}}}\n \\newcommand{\\cvecsum}[3]{{#1}_1\\vec{#2}_1 + {#1}_2\\vec{#2}_2 + \\cdots + {#1}_{#3}\\vec{#2}_{#3}}\n\n\n % function def\n \\newcommand{\\fndef}[3]{#1:#2 \\to #3}\n % vector set\n \\newcommand{\\vset}[2]{\\{\\vec{#1}_1, \\vec{#1}_2, \\dots, \\vec{#1}_{#2}\\}}\n % absolute value\n \\newcommand{\\abs}[1]{\\left| #1 \\right|}\n % vector norm\n \\newcommand{\\norm}[1]{\\left|\\left| #1 \\right|\\right|}\n % trans\n \\newcommand{\\trans}{\\mapsto}\n % evaluate integral\n \\newcommand{\\evalint}[3]{\\left. #1 \\right|_{#2}^{#3}}\n % slist\n \\newcommand{\\slist}[2]{{#1}_{1},{#1}_{2},\\dots,{#1}_{#2}}\n\n % vectors\n \\newcommand{\\vc}[1]{\\textbf{#1}}\n\n % real\n \\newcommand{\\Real}[1]{{\\Re \\mit{e}\\left\\{{#1}\\right\\}}}\n % imaginary\n \\newcommand{\\Imag}[1]{{\\Im \\mit{m}\\left\\{{#1}\\right\\}}}\n\n \\newcommand{\\mcal}[1]{\\mathcal{#1}}\n \\newcommand{\\bb}[1]{\\mathbb{#1}}\n \\newcommand{\\N}{\\mathbb{N}}\n \\newcommand{\\Z}{\\mathbb{Z}}\n \\newcommand{\\Q}{\\mathbb{Q}}\n \\newcommand{\\R}{\\mathbb{R}}\n \\newcommand{\\C}{\\mathbb{C}}\n \\newcommand{\\I}{\\mathbb{I}}\n \\newcommand{\\Th}[1]{\\mathop\\mathrm{Th(#1)}}\n \\newcommand{\\intersect}{\\cap}\n \\newcommand{\\\\union}{\\cup}\n \\newcommand{\\intersectop}{\\bigcap}\n \\newcommand{\\\\unionop}{\\bigcup}\n \\newcommand{\\setdiff}{\\backslash}\n \\newcommand{\\iso}{\\cong}\n \\newcommand{\\aut}[1]{\\mathop{\\mathrm{Aut(#1)}}}\n \\newcommand{\\inn}[1]{\\mathop{\\mathrm{Inn(#1)}}}\n \\newcommand{\\Ann}[1]{\\mathop{\\mathrm{Ann(#1)}}}\n \\newcommand{\\dom}[1]{\\mathop{\\mathrm{dom} #1}}\n \\newcommand{\\cod}[1]{\\mathop{\\mathrm{cod} #1}}\n \\newcommand{\\id}{\\mathrm{id}}\n \\newcommand{\\st}{\\ |\\ }\n \\newcommand{\\mbf}[1]{\\mathbf{#1}}\n \\newcommand{\\enclose}[1]{\\left\\langle #1\\right\\rangle}\n \\newcommand{\\lr}[1]{\\left( #1\\right)}\n \\newcommand{\\lrsq}[1]{\\left[ #1\\right]}\n \\newcommand{\\op}{\\mathrm{op}}\n \\newcommand{\\dotarr}{\\dot{\\rightarrow}}\n %Category Names:\n \\newcommand{\\Grp}{\\mathbf{Grp}}\n \\newcommand{\\Ab}{\\mathbf{Ab}}\n \\newcommand{\\Set}{\\mathbf{Set}}\n \\newcommand{\\Matr}{\\mathbf{Matr}}\n \\newcommand{\\IntDom}{\\mathbf{IntDom}}\n \\newcommand{\\Field}{\\mathbf{Field}}\n \\newcommand{\\Vect}{\\mathbf{Vect}}\n\n \\newcommand{\\thm}[1]{\\begin{theorem} #1 \\end{theorem}}\n \\newcommand{\\clm}[1]{\\begin{claim} #1 \\end{claim}}\n \\newcommand{\\cor}[1]{\\begin{corollary} #1 \\end{corollary}}\n \\newcommand{\\ex}[1]{\\begin{example} #1 \\end{example}}\n \\newcommand{\\prf}[1]{\\begin{proof} #1 \\end{proof}}\n \\newcommand{\\prbm}[1]{\\begin{problem} #1 \\end{problem}}\n \\newcommand{\\soln}[1]{\\begin{solution} #1 \\end{solution}}\n \\newcommand{\\rmk}[1]{\\begin{remark} #1 \\end{remark}}\n \\newcommand{\\defn}[1]{\\begin{definition} #1 \\end{definition}}\n\n \\newcommand{\\ifff}{\\LeftRightArrow}\n\n \x3c!-- For the set of reals and integers --\x3e\n \\newcommand{\\rr}{\\R}\n \\newcommand{\\reals}{\\R}\n \\newcommand{\\ii}{\\Z}\n \\newcommand{\\cc}{\\C}\n \\newcommand{\\nn}{\\N}\n \\newcommand{\\nats}{\\N}\n\n \x3c!-- For terms being indexed.\n Puts them in standard font face and creates an index entry.\n arg: The term being defined.\n \\newcommand{\\pointer}[1]{#1\\index{#1}} --\x3e\n\n \x3c!-- For bold terms to be index, but defined elsewhere\n Puts them in bold face and creates an index entry.\n arg: The term being defined. --\x3e\n \\newcommand{\\strong}[1]{\\textbf{#1}}\n\n \x3c!-- For set names.\n Puts them in italics. In math mode, yields decent spacing.\n arg: The name of the set. --\x3e\n \\newcommand{\\set}[1]{\\textit{#1}}\n\n $$\n "]);return _templateObject_5931a730bf0611ef92fd81a3a9486a2b=function _templateObject_5931a730bf0611ef92fd81a3a9486a2b(){return t},t}var s=String.raw(_templateObject_5931a730bf0611ef92fd81a3a9486a2b());n.default=s},{"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/taggedTemplateLiteral":11}],120:[function(t,e,n){(function(e){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.loadMathJax=n.getMathJax=n.DEFAULT_OPTIONS=n.DEFAULT_SCRIPT=void 0;var a=i(t("load-script")),s=e.env.MATHJAX_CDN||"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js";n.DEFAULT_SCRIPT=s;var u={TeX:{extensions:["AMSmath.js","AMSsymbols.js"]},extensions:["tex2jax.js"],showProcessingMessages:!1,jax:["input/TeX","output/HTML-CSS"],messageStyle:"none",showMathMenu:!1,showMathMenuMSIE:!1,tex2jax:{processEnvironments:!0,inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],preview:"none",processEscapes:!0},"HTML-CSS":{linebreaks:{automatic:!0,width:"container"}}};n.DEFAULT_OPTIONS=u;n.getMathJax=function getMathJax(){return"undefined"==typeof MathJax?void 0:MathJax};n.loadMathJax=function loadMathJax(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,i=function onLoad(){MathJax.Hub.Config(n),t()};if(!e)return i();(0,a.default)(e,i)}}).call(this,t("_process"))},{"@babel/runtime/helpers/interopRequireDefault":6,_process:100,"load-script":99}],121:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"pstricks",{enumerable:!0,get:function get(){return a.default}}),Object.defineProperty(n,"psgraph",{enumerable:!0,get:function get(){return s.default}}),n.default=void 0;var a=i(t("./lib/pstricks")),s=i(t("./lib/psgraph")),u={pstricks:a.default,psgraph:s.default};n.default=u},{"./lib/psgraph":122,"./lib/pstricks":123,"@babel/runtime/helpers/interopRequireDefault":6}],122:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireWildcard"),a=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=a(t("@babel/runtime/helpers/slicedToArray")),u=t("latex2js-utils"),c=i(t("d3"));function arrow(t,e,n,i){var a=Math.PI/6,s=n-t,u=i-e,c=Math.sqrt(s*s+u*u),f=Math.cos(a),h=Math.sin(a),d=8/c,p=n-(s*f-u*h)*d,g=i-(u*f+s*h)*d,v=[];return v.push("M"),v.push(n),v.push(i),v.push("L"),v.push(p),v.push(g),p=n-(s*(f=Math.cos(-a))-u*(h=Math.sin(-a)))*d,g=i-(u*f+s*h)*d,v.push(p),v.push(g),v.push("Z"),v.join(" ")}var f={getSize:function getSize(){this.env.scale=1;var t=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-20;return t<=this.env.w*this.env.xunit&&(this.env.scale=t/this.env.w/this.env.xunit),{width:this.env.w*this.env.xunit,height:this.env.h*this.env.yunit}},psframe:function psframe(t){t.append("svg:line").attr("x1",this.x1).attr("y1",this.y1).attr("x2",this.x2).attr("y2",this.y1).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1),t.append("svg:line").attr("x1",this.x2).attr("y1",this.y1).attr("x2",this.x2).attr("y2",this.y2).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1),t.append("svg:line").attr("x1",this.x2).attr("y1",this.y2).attr("x2",this.x1).attr("y2",this.y2).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1),t.append("svg:line").attr("x1",this.x1).attr("y1",this.y2).attr("x2",this.x1).attr("y2",this.y1).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1)},pscircle:function pscircle(t){t.append("svg:circle").attr("cx",this.cx).attr("cy",this.cy).attr("r",this.r).style("stroke","black").style("fill","none").style("stroke-width",2).style("stroke-opacity",1)},psplot:function psplot(t){var e=[];e.push("M"),"solid"===this.fillstyle?(e.push(this.data[0]),e.push(u.Y.call(this.global,0))):(e.push(this.data[0]),e.push(this.data[1])),e.push("L"),this.data.forEach((function(t){e.push(t)})),"solid"===this.fillstyle&&(e.push(this.data[this.data.length-2]),e.push(u.Y.call(this.global,0)),e.push("Z")),t.append("svg:path").attr("d",e.join(" ")).attr("class","psplot").style("stroke-width",this.linewidth).style("stroke-opacity",1).style("fill","none"===this.fillstyle?"none":this.fillcolor).style("stroke",this.linecolor)},pspolygon:function pspolygon(t){var e=[];e.push("M"),e.push(this.data[0]),e.push(this.data[1]),e.push("L"),this.data.forEach((function(t){e.push(t)})),e.push("Z"),t.append("svg:path").attr("d",e.join(" ")).style("stroke-width",this.linewidth).style("stroke-opacity",1).style("fill","none"===this.fillstyle?"none":this.fillcolor).style("stroke","black")},psarc:function psarc(t){var e=[];e.push("M"),e.push(this.cx),e.push(this.cy),e.push("L"),e.push(this.A.x),e.push(this.A.y),e.push("A"),e.push(this.A.x),e.push(this.A.y),e.push(0),e.push(0),e.push(0),e.push(this.B.x),e.push(this.B.y),t.append("svg:path").attr("d",e.join(" ")).style("stroke-width",2).style("stroke-opacity",1).style("fill","blue").style("stroke","black")},psaxes:function psaxes(t){var e=[this.bottomLeft[0],this.topRight[0]],n=[this.bottomLeft[1],this.topRight[1]],i=this.origin;function line(e,n,i,a){t.append("svg:path").attr("d","M "+e+" "+n+" L "+i+" "+a).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1)}var a=function xticks(){for(var t=e[0];t<=e[1];t+=this.dx)line(t,i[1]-5,t,i[1]+5)},s=function yticks(){for(var t=n[0];t<=n[1];t+=this.dy)line(i[0]-5,t,i[0]+5,t)};line(e[0],i[1],e[1],i[1]),line(i[0],n[0],i[0],n[1]),this.ticks.match(/all/)?(a(),s()):this.ticks.match(/x/)?a():this.ticks.match(/y/)&&s(),this.arrows[0]&&(t.append("path").attr("d",arrow(e[1],i[1],e[0],i[1])).style("fill","black").style("stroke","black"),t.append("path").attr("d",arrow(i[0],n[1],i[0],n[0])).style("fill","black").style("stroke","black")),this.arrows[1]&&(t.append("path").attr("d",arrow(e[0],i[1],e[1],i[1])).style("fill","black").style("stroke","black"),t.append("path").attr("d",arrow(i[0],n[0],i[0],n[1])).style("fill","black").style("stroke","black"))},psline:function psline(t){var e=this.linewidth,n=this.linecolor;this.linestyle.match(/dotted/)?function dotted(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).style("stroke-width",e).style("stroke",n).style("stroke-dasharray","9,5").style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2):this.linestyle.match(/dashed/)?function dashed(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).style("stroke-width",e).style("stroke",n).style("stroke-dasharray","9,5").style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2):function solid(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).style("stroke-width",e).style("stroke",n).style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2),this.dots[0]&&t.append("svg:circle").attr("cx",this.x1).attr("cy",this.y1).attr("r",3).style("stroke",this.linecolor).style("fill",this.linecolor).style("stroke-width",1).style("stroke-opacity",1),this.dots[1]&&t.append("svg:circle").attr("cx",this.x2).attr("cy",this.y2).attr("r",3).style("stroke",this.linecolor).style("fill",this.linecolor).style("stroke-width",1).style("stroke-opacity",1);var i=this.x1,a=this.y1,s=this.x2,u=this.y2;this.arrows[0]&&t.append("path").attr("d",arrow(s,u,i,a)).style("fill",this.linecolor).style("stroke",this.linecolor),this.arrows[1]&&t.append("path").attr("d",arrow(i,a,s,u)).style("fill",this.linecolor).style("stroke",this.linecolor)},userline:function userline(t){var e=this.linewidth,n=this.linecolor;this.linestyle.match(/dotted/)?function dotted(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).attr("class","userline").style("stroke-width",e).style("stroke",n).style("stroke-dasharray","9,5").style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2):this.linestyle.match(/dashed/)?function dashed(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).attr("class","userline").style("stroke-width",e).style("stroke",n).style("stroke-dasharray","9,5").style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2):function solid(i,a,s,u){t.append("svg:path").attr("class","userline").attr("d","M "+i+" "+a+" L "+s+" "+u).style("stroke-width",e).style("stroke",n).style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2),this.dots[0]&&t.append("svg:circle").attr("cx",this.x1).attr("cy",this.y1).attr("r",3).attr("class","userline").style("stroke",this.linecolor).style("fill",this.linecolor).style("stroke-width",1).style("stroke-opacity",1),this.dots[1]&&t.append("svg:circle").attr("cx",this.x2).attr("cy",this.y2).attr("r",3).attr("class","userline").style("stroke",this.linecolor).style("fill",this.linecolor).style("stroke-width",1).style("stroke-opacity",1);var i=this.x1,a=this.y1,s=this.x2,u=this.y2;this.arrows[0]&&t.append("path").attr("d",arrow(s,u,i,a)).attr("class","userline").style("fill",this.linecolor).style("stroke",this.linecolor),this.arrows[1]&&t.append("path").attr("d",arrow(i,a,s,u)).attr("class","userline").style("fill",this.linecolor).style("stroke",this.linecolor)},rput:function rput(t){var e=document.createElement("div"),n=this.x,i=this.y;e.innerHTML=this.text,e.className="math",e.style.visibility="hidden",e.style.position="absolute",e.style.top="".concat(i,"px"),e.style.left="".concat(n,"px"),t.appendChild(e);MathJax.Hub.Queue(["Typeset",MathJax.Hub,e],[function done(){var t=e.getBoundingClientRect(),a=t.width/2,s=t.height/2;e.style.visibility="visible",e.style.top="".concat(i-s,"px"),e.style.left="".concat(n-a,"px")}])},pspicture:function pspicture(t){var e=this,n=this.env,i=this.$el;Object.keys(this.plot).forEach((function(i){var a=e.plot[i];i.match(/rput/)||f.hasOwnProperty(i)&&a.forEach((function(e){e.data.global=n,f[i].call(e.data,t)}))})),t.on("touchmove",(function(){c.event.preventDefault(),userEvent(c.touches(this)[0])}),!1),t.on("mousemove",(function(){userEvent(c.mouse(this))}),!1);var a=this.plot;function userEvent(e){t.selectAll(".userline").remove(),t.selectAll(".psplot").remove();var i={};Object.entries(a||{}).forEach((function(t){var n=(0,s.default)(t,2),a=n[0],u=n[1];a.match(/uservariable/)&&u.forEach((function(t){t.env.userx=e[0],t.env.usery=e[1];var n=t.fn.call(t.env,t.match);i[t.data.name]=n.value}))})),Object.entries(a||{}).forEach((function(a){var u=(0,s.default)(a,2),c=u[0],h=u[1];c.match(/psplot/)&&h.forEach((function(e){Object.entries(i||{}).forEach((function(t){var n=(0,s.default)(t,2),i=n[0],a=n[1];e.env.variables[i]=a}));var a=e.fn.call(e.env,e.match);a.global={},Object.assign(a.global,n),f[c].call(a,t)})),c.match(/userline/)&&h.forEach((function(i){var a=i.fn.call(i.env,i.match);i.env.x2=e[0],i.env.y2=e[1],i.data.x2=i.env.x2,i.data.y2=i.env.y2,i.data.xExp2?(i.data.x2=a.userx2(e),i.data.x1=a.userx(e)):i.data.xExp&&(i.data.x2=a.userx(e)),i.data.yExp2?(i.data.y2=a.usery2(e),i.data.y1=a.usery(e)):i.data.yExp&&(i.data.y2=a.usery(e)),a.global={},Object.assign(a.global,n),Object.assign(a,i.data),f[c].call(a,t)}))}))}this.plot.rput.forEach((function(t){f.rput.call(t.data,i)}))}},h=f;n.default=h},{"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/interopRequireWildcard":7,"@babel/runtime/helpers/slicedToArray":10,d3:73,"latex2js-utils":125}],123:[function(require,module,exports){var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Functions=exports.Expressions=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")),_latex2jsUtils=require("latex2js-utils"),_latex2jsSettings=_interopRequireDefault(require("latex2js-settings")),Expressions={pspicture:/\\begin\{pspicture\}\(\s*(.*),(.*)\s*\)\(\s*(.*),(.*)\s*\)/,psframe:/\\psframe\(\s*(.*),(.*)\s*\)\(\s*(.*),(.*)\s*\)/,psplot:/\\psplot(\[[^\]]*\])?\{([^\}]*)\}\{([^\}]*)\}\{([^\}]*)\}/,psarc:new RegExp("\\\\psarc"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.type+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle),pscircle:/\\pscircle.*\(\s*(.*),(.*)\s*\)\{(.*)\}/,pspolygon:new RegExp("\\\\pspolygon"+_latex2jsUtils.RE.options+"(.*)"),psaxes:new RegExp("\\\\psaxes"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.type+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.coordsOpt+_latex2jsUtils.RE.coordsOpt),slider:new RegExp("\\\\slider"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle),psline:new RegExp("\\\\psline"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.type+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.coordsOpt),userline:new RegExp("\\\\userline"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.type+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.squiggleOpt+_latex2jsUtils.RE.squiggleOpt+_latex2jsUtils.RE.squiggleOpt+_latex2jsUtils.RE.squiggleOpt),uservariable:new RegExp("\\\\uservariable"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.squiggle),rput:/\\rput\((.*),(.*)\)\{(.*)\}/,psset:/\\psset\{(.*)\}/};exports.Expressions=Expressions;var Functions={slider:function slider(t){var e={scalar:1,min:Number(t[2]),max:Number(t[3]),variable:t[4],latex:t[5],value:Number(t[6])};return this.variables=this.variables||{},this.variables[e.variable]=e.value,this.sliders=this.sliders||[],this.sliders.push(e),t[1]&&Object.assign(e,(0,_latex2jsUtils.parseOptions)(t[1])),e},pspicture:function pspicture(t){var e={x0:Number(t[1]),y0:Number(t[2]),x1:Number(t[3]),y1:Number(t[4])},n={w:e.x1-e.x0,h:e.y1-e.y0};return Object.assign(this,e,n),Object.assign(e,n)},psframe:function psframe(t){return{x1:_latex2jsUtils.X.call(this,t[1]),y1:_latex2jsUtils.Y.call(this,t[2]),x2:_latex2jsUtils.X.call(this,t[3]),y2:_latex2jsUtils.Y.call(this,t[4])}},pscircle:function pscircle(t){return{cx:_latex2jsUtils.X.call(this,t[1]),cy:_latex2jsUtils.Y.call(this,t[2]),r:this.xunit*t[3]}},psaxes:function psaxes(t){var e={dx:1*this.xunit,dy:1*this.yunit,arrows:[0,0],dots:[0,0],ticks:"all"};if(t[1]){var n=(0,_latex2jsUtils.parseOptions)(t[1]);n.Dx&&(e.dx=Number(n.Dx)*this.xunit),n.Dy&&(e.dy=Number(n.Dy)*this.yunit)}var i=(0,_latex2jsUtils.parseArrows)(t[2]);return e.arrows=i.arrows,e.dots=i.dots,t[5]&&!t[8]?(e.origin=[_latex2jsUtils.X.call(this,t[3]),_latex2jsUtils.Y.call(this,t[4])],e.bottomLeft=[_latex2jsUtils.X.call(this,t[3]),_latex2jsUtils.Y.call(this,t[4])],e.topRight=[_latex2jsUtils.X.call(this,t[6]),_latex2jsUtils.Y.call(this,t[7])]):t[5]||t[8]?(e.origin=[_latex2jsUtils.X.call(this,t[3]),_latex2jsUtils.Y.call(this,t[4])],e.bottomLeft=[_latex2jsUtils.X.call(this,t[6]),_latex2jsUtils.Y.call(this,t[7])],e.topRight=[_latex2jsUtils.X.call(this,t[9]),_latex2jsUtils.Y.call(this,t[10])]):(e.origin=[_latex2jsUtils.X.call(this,0),_latex2jsUtils.Y.call(this,0)],e.bottomLeft=[_latex2jsUtils.X.call(this,0),_latex2jsUtils.Y.call(this,0)],e.topRight=[_latex2jsUtils.X.call(this,t[3]),_latex2jsUtils.Y.call(this,t[6])]),e},psplot:function psplot(m){var startX=_latex2jsUtils.evaluate.call(this,m[2]),endX=_latex2jsUtils.evaluate.call(this,m[3]),data=[],x,expression="";for(Object.entries(this.variables||{}).forEach((function(t){var e=(0,_slicedToArray2.default)(t,2),n=e[0],i=e[1];expression+="var "+n+" = "+i+";"})),expression+="with (Math){"+m[4]+"}",x=startX;x<=endX;x+=.005)data.push(_latex2jsUtils.X.call(this,x)),data.push(_latex2jsUtils.Y.call(this,eval(expression)));var obj={linecolor:"black",linestyle:"solid",fillstyle:"none",fillcolor:"none",linewidth:2};return m[1]&&Object.assign(obj,(0,_latex2jsUtils.parseOptions)(m[1])),obj.data=data,obj},pspolygon:function pspolygon(t){var e=this,n=t[2];if(n){var i=new RegExp(_latex2jsUtils.RE.coords,"g"),a=n.match(i),s=new RegExp(_latex2jsUtils.RE.coords),u=[];a.forEach((function(t){var n=s.exec(t);u.push(_latex2jsUtils.X.call(e,n[1])),u.push(_latex2jsUtils.Y.call(e,n[2]))}));var c={linecolor:"black",linestyle:"solid",fillstyle:"none",fillcolor:"black",linewidth:2,data:u};return t[1]&&Object.assign(c,(0,_latex2jsUtils.parseOptions)(t[1])),c}},psarc:function psarc(t){var e=(0,_latex2jsUtils.parseArrows)(t[2]),n={linecolor:"black",linestyle:"solid",fillstyle:"solid",fillcolor:"black",linewidth:2,arrows:e.arrows,dots:e.dots,cx:_latex2jsUtils.X.call(this,0),cy:_latex2jsUtils.Y.call(this,0)};return t[1]&&Object.assign(n,(0,_latex2jsUtils.parseOptions)(t[1])),t[3]&&(n.cx=_latex2jsUtils.X.call(this,t[3])),t[4]&&(n.cy=_latex2jsUtils.Y.call(this,t[4])),n.r=Number(t[5])*this.xunit,n.angleA=Number(t[6])*Math.PI/180,n.angleB=Number(t[7])*Math.PI/180,n.A={x:_latex2jsUtils.X.call(this,Number(t[5])*Math.cos(n.angleA)),y:_latex2jsUtils.Y.call(this,Number(t[5])*Math.sin(n.angleA))},n.B={x:_latex2jsUtils.X.call(this,Number(t[5])*Math.cos(n.angleB)),y:_latex2jsUtils.Y.call(this,Number(t[5])*Math.sin(n.angleB))},n},psline:function psline(t){var e=t[1],n=t[2],i=(0,_latex2jsUtils.parseArrows)(n),a={linecolor:"black",linestyle:"solid",fillstyle:"solid",fillcolor:"black",linewidth:2,arrows:i.arrows,dots:i.dots};return t[5]?(a.x1=_latex2jsUtils.X.call(this,t[3]),a.y1=_latex2jsUtils.Y.call(this,t[4]),a.x2=_latex2jsUtils.X.call(this,t[6]),a.y2=_latex2jsUtils.Y.call(this,t[7])):(a.x1=_latex2jsUtils.X.call(this,0),a.y1=_latex2jsUtils.Y.call(this,0),a.x2=_latex2jsUtils.X.call(this,t[3]),a.y2=_latex2jsUtils.Y.call(this,t[4])),e&&Object.assign(a,(0,_latex2jsUtils.parseOptions)(e)),"string"==typeof a.linewidth&&(a.linewidth=2),a},uservariable:function uservariable(m){var options=m[1],coords=[];this.userx&&this.usery?(coords.push(Number(this.userx)),coords.push(Number(this.usery))):(coords.push(_latex2jsUtils.X.call(this,m[3])),coords.push(_latex2jsUtils.Y.call(this,m[4])));var nx1=_latex2jsUtils.Xinv.call(this,coords[0]),ny1=_latex2jsUtils.Yinv.call(this,coords[1]),expx1="var x = "+nx1+";",expy1="var y = "+ny1+";",obj={name:m[2],x:_latex2jsUtils.X.call(this,m[3]),y:_latex2jsUtils.Y.call(this,m[4]),func:m[5],value:eval(expx1+expy1+m[5])};return obj},userline:function userline(m){var _this2=this,options=m[1],lineType=m[2],l=(0,_latex2jsUtils.parseArrows)(lineType),arrows=l.arrows,dots=l.dots,xExp=m[7],yExp=m[8];xExp&&(xExp="with (Math){"+xExp.replace(/^\{/,"").replace(/\}$/,"")+"}"),yExp&&(yExp="with (Math){"+yExp.replace(/^\{/,"").replace(/\}$/,"")+"}");var xExp2=m[9],yExp2=m[10];xExp2&&(xExp2="with (Math){"+xExp2.replace(/^\{/,"").replace(/\}$/,"")+"}"),yExp2&&(yExp2="with (Math){"+yExp2.replace(/^\{/,"").replace(/\}$/,"")+"}");var expression="";Object.entries(this.variables||{}).forEach((function(t){var e=(0,_slicedToArray2.default)(t,2),n=e[0],i=e[1];expression+="var "+n+" = "+i+";"}));var obj={x1:_latex2jsUtils.X.call(this,m[3]),y1:_latex2jsUtils.Y.call(this,m[4]),x2:_latex2jsUtils.X.call(this,m[5]),y2:_latex2jsUtils.Y.call(this,m[6]),xExp,yExp,xExp2,yExp2,userx:function userx(coords){var nx1=_latex2jsUtils.Xinv.call(_this2,coords[0]),ny1=_latex2jsUtils.Yinv.call(_this2,coords[1]),expx1="var x = "+nx1+";",expy1="var y = "+ny1+";";return _latex2jsUtils.X.call(_this2,eval(expression+expy1+expx1+xExp))},usery:function usery(coords){var nx2=_latex2jsUtils.Xinv.call(_this2,coords[0]),ny2=_latex2jsUtils.Yinv.call(_this2,coords[1]),expx2="var x = "+nx2+";",expy2="var y = "+ny2+";";return _latex2jsUtils.Y.call(_this2,eval(expression+expy2+expx2+yExp))},userx2:function userx2(coords){var nx3=_latex2jsUtils.Xinv.call(_this2,coords[0]),ny3=_latex2jsUtils.Yinv.call(_this2,coords[1]),expx3="var x = "+nx3+";",expy3="var y = "+ny3+";";return _latex2jsUtils.X.call(_this2,eval(expression+expy3+expx3+xExp2))},usery2:function usery2(coords){var nx4=_latex2jsUtils.Xinv.call(_this2,coords[0]),ny4=_latex2jsUtils.Yinv.call(_this2,coords[1]),expx4="var x = "+nx4+";",expy4="var y = "+ny4+";";return _latex2jsUtils.Y.call(_this2,eval(expression+expy4+expx4+yExp2))},linecolor:"black",linestyle:"solid",fillstyle:"solid",fillcolor:"black",linewidth:2,arrows,dots};return options&&Object.assign(obj,(0,_latex2jsUtils.parseOptions)(options)),"string"==typeof obj.linewidth&&(obj.linewidth=2),obj},rput:function rput(t){return{x:_latex2jsUtils.X.call(this,t[1]),y:_latex2jsUtils.Y.call(this,t[2]),text:t[3]}},psset:function psset(t){var e=t[1].split(",").map((function(t){return t.split("=")})),n={};return e.forEach((function(t){var e=t[0],i=t[1];Object.keys(_latex2jsSettings.default.Expressions).forEach((function(t){var a=_latex2jsSettings.default.Expressions[t];e.match(a)&&_latex2jsSettings.default.Functions[t](n,i)}))})),n}};exports.Functions=Functions;var _default={Expressions,Functions};exports.default=_default},{"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/slicedToArray":10,"latex2js-settings":124,"latex2js-utils":125}],124:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Functions=n.Expressions=void 0;var i=t("latex2js-utils"),a={fillcolor:/^fillcolor$/,fillstyle:/^fillstyle$/,linecolor:/^linecolor$/,linestyle:/^linestyle$/,unit:/^unit/,runit:/^runit/,xunit:/^xunit/,yunit:/^yunit/};n.Expressions=a;var s={fillcolor:function fillcolor(t,e){t.fillcolor=e},fillstyle:function fillstyle(t,e){t.fillstyle=e},linecolor:function linecolor(t,e){t.linecolor=e},linestyle:function linestyle(t,e){t.linestyle=e},unit:function unit(t,e){e=(0,i.convertUnits)(e),t.unit=e,t.runit=e,t.xunit=e,t.yunit=e},runit:function runit(t,e){e=(0,i.convertUnits)(e),t.runit=e},xunit:function xunit(t,e){e=(0,i.convertUnits)(e),t.xunit=e},yunit:function yunit(t,e){e=(0,i.convertUnits)(e),t.yunit=e}};n.Functions=s;var u={Expressions:a,Functions:s};n.default=u},{"latex2js-utils":125}],125:[function(require,module,exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.Yinv=exports.Y=exports.Xinv=exports.X=exports.evaluate=exports.parseArrows=exports.parseOptions=exports.RE=exports.convertUnits=exports.matchrepl=exports.simplerepl=void 0;var simplerepl=function simplerepl(t,e){return function(n,i){return i.replace(t,e)}};exports.simplerepl=simplerepl;var matchrepl=function matchrepl(t,e){return function(n,i){return Array.isArray(n)&&n.forEach((function(n){var a=n.match(t);i=i.replace(a.input,e(a))})),i}};exports.matchrepl=matchrepl;var convertUnits=function convertUnits(t){var e=null;return(e=t.match(/([^c]+)\s*cm/))?50*Number(e[1]):(e=t.match(/([^i]+)\s*in/))?20*Number(e[1]):(e=t.match(/(.*)/))?50*Number(e[1]):Number(t)};exports.convertUnits=convertUnits;var RE={options:"(\\[[^\\]]*\\])?",type:"(\\{[^\\}]*\\})?",squiggle:"\\{([^\\}]*)\\}",squiggleOpt:"(\\{[^\\}]*\\})?",coordsOpt:"(\\(\\s*([^\\)]*),([^\\)]*)\\s*\\))?",coords:"\\(\\s*([^\\)]*),([^\\)]*)\\s*\\)"};exports.RE=RE;var parseOptions=function parseOptions(t){var e=t.replace(/[\]\[]/g,"").split(","),n={};return e.forEach((function(t){var e=t.split("=");2==e.length&&(n[e[0].trim()]=e[1].trim())})),n};exports.parseOptions=parseOptions;var parseArrows=function parseArrows(t){var e=[0,0],n=[0,0];if(t){var i=t.match(/\{([^\-]*)?\-([^\-]*)?\}/);i&&(i[1]&&(i[1].match(/\*/)?n[0]=1:i[1].match(/)&&(e[0]=1)),i[2]&&(i[2].match(/\*/)?n[1]=1:i[2].match(/>/)&&(e[1]=1)))}return{arrows:e,dots:n}};exports.parseArrows=parseArrows;var evaluate=function evaluate(exp){var _this=this,num=Number(exp);if(isNaN(num)){var expression="";return this.variables=this.variables||{},Object.keys(this.variables).map((function(t){var e=_this.variables[t];expression+="var "+t+" = "+e+";"})),expression+="with (Math){"+exp+"}",eval(expression)}return num};exports.evaluate=evaluate;var X=function X(t){return(this.w-(this.x1-Number(t)))*this.xunit};exports.X=X;var Xinv=function Xinv(t){return Number(t)/this.xunit-this.w+this.x1};exports.Xinv=Xinv;var Y=function Y(t){return(this.y1-Number(t))*this.yunit};exports.Y=Y;var Yinv=function Yinv(t){return this.y1-Number(t)/this.yunit};exports.Yinv=Yinv},{}],126:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("@babel/runtime/helpers/classCallCheck")),s=i(t("@babel/runtime/helpers/createClass")),u=i(t("./lib/text")),c=i(t("./lib/headers")),f=t("latex2js-pstricks"),h=i(t("./lib/environments")),d=i(t("./lib/ignore")),p=i(t("./lib/parser")),g=function(){function LaTeX2HTML5(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.default,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.pstricks,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};(0,a.default)(this,LaTeX2HTML5),this.Text=e,this.Headers=n,this.Environments=i,this.Ignore=s,this.PSTricks=p,this.Views=g,this.Delimiters={},i.forEach((function(e){t.addEnvironment(e)}))}return(0,s.default)(LaTeX2HTML5,[{key:"addEnvironment",value:function addEnvironment(t){var e={begin:new RegExp("\\\\begin\\{"+t+"\\}"),end:new RegExp("\\\\end\\{"+t+"\\}")};this.Delimiters[t]=e}},{key:"addView",value:function addView(t,e){this.addEnvironment(t)}},{key:"addText",value:function addText(t,e,n){this.Text.Expressions[t]=e,this.Text.Functions[t]=n}},{key:"addHeaders",value:function addHeaders(t,e,n){var i={},a=t+"begin",s=t+"end";i[a]=new RegExp("\\\\begin\\{"+t+"\\}"),i[s]=new RegExp("\\\\end\\{"+t+"\\}"),Object.assign(this.Headers.Expressions,i);var u={};u[a]=function(){return e||""},u[s]=function(){return n||""},Object.assign(this.Headers.Functions,u)}},{key:"getParser",value:function getParser(){return new p.default(this)}},{key:"parse",value:function parse(t){var e=new p.default(this).parse(t);return e.forEach((function(t){if(!t.hasOwnProperty("type"))throw new Error("no type!")})),e}}]),LaTeX2HTML5}();n.default=g},{"./lib/environments":127,"./lib/headers":128,"./lib/ignore":129,"./lib/parser":130,"./lib/text":131,"@babel/runtime/helpers/classCallCheck":3,"@babel/runtime/helpers/createClass":4,"@babel/runtime/helpers/interopRequireDefault":6,"latex2js-pstricks":121}],127:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=["pspicture","verbatim","enumerate","print","nicebox"]},{}],128:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Functions=n.Expressions=void 0;var i={bq:/\\begin\{quotation\}/,claim:/\\begin\{claim\}/,corollary:/\\begin\{corollary\}/,definition:/\\begin\{definition\}/,endclaim:/\\end\{claim\}/,endcorallary:/\\end\{corallary\}/,enddefinition:/\\end\{definition\}/,endexample:/\\end\{example\}/,endproblem:/\\end\{problem\}/,endsolution:/\\end\{solution\}/,endtheorem:/\\end\{theorem\}/,eq:/\\end\{quotation\}/,example:/\\begin\{example\}/,problem:/\\begin\{problem\}/,proof:/\\begin\{proof\}/,qed:/\\end\{proof\}/,solution:/\\begin\{solution\}/,theorem:/\\begin\{theorem\}/};n.Expressions=i;var a={bq:function bq(){return''},claim:function claim(){return"
Claim "},corollary:function corollary(){return"Corollary "},definition:function definition(){return"Definition "},endclaim:function endclaim(){return""},endcorollary:function endcorollary(){return""},enddefinition:function enddefinition(){return""},endexample:function endexample(){return""},endproblem:function endproblem(){return""},endsolution:function endsolution(){return""},endtheorem:function endtheorem(){return""},eq:function eq(){return"
"},example:function example(){return"Example "},problem:function problem(){return"Problem "},proof:function proof(){return"Proof "},qed:function qed(){return"$\\qed$"},solution:function solution(){return"Solution "},theorem:function theorem(){return"Theorem "}};n.Functions=a;var s={Expressions:i,Functions:a};n.default=s},{}],129:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=[/^\%/,/\\begin\{document\}/,/\\end\{document\}/,/\\begin\{interactive\}/,/\\end\{interactive\}/,/\\usepackage/,/\\documentclass/,/\\tableofcontents/,/\\author/,/\\date/,/\\maketitle/,/\\title/,/\\pagestyle/,/\\smallskip/,/\\medskip/,/\\bigskip/,/\\nobreak/,/\\begin\{center\}/,/\\end\{center\}/]},{}],130:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("@babel/runtime/helpers/slicedToArray")),s=i(t("@babel/runtime/helpers/defineProperty"));function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Parser(t){this.Ignore=t.Ignore,this.Delimiters=t.Delimiters,this.Text=t.Text,this.PSTricks=t.PSTricks,this.Headers=t.Headers,this.objects=[],this.environment=null,this.settings=this.PSTricks.Functions.psset.call(this,["","units=1cm,linecolor=black,linestyle=solid,fillstyle=none"])}Parser.prototype={parse:function parse(t){var e=this;if(!t)return{};var n=t.split("\n");return this.parseEnvText(n),this.parseEnv(n),this.objects.forEach((function(t){t.type.match(/pspicture/)&&(t.plot=e.parsePSTricks(t.lines,t.env))})),this.objects},newEnvironment:function newEnvironment(t){this.environment&&this.environment.lines.length&&(this.environment.settings=function _objectSpread(t){for(var e=1;e"))}))},parsePSExpression:function parsePSExpression(t,e,n,i,a){var s=t.match(e);return!!s&&(n[i].push({data:this.PSTricks.Functions[i].call(a,s),env:a,match:s,fn:this.PSTricks.Functions[i]}),!0)},parsePSVariables:function parsePSVariables(t,e,n,i,a){var s=t.match(e);if(s&&i.match(/uservariable/)){var u=this.PSTricks.Functions[i].call(a,s);a.variables=a.variables||{},a.variables[u.name]=u.value}},parsePSTricks:function parsePSTricks(t,e){var n=this,i={},s=Object.entries(this.PSTricks.Expressions);return s.forEach((function(t){var e=(0,a.default)(t,2),n=e[0];e[1];i[n]=[]})),t.forEach((function(t){s.forEach((function(s){var u=(0,a.default)(s,2),c=u[0],f=u[1];n.parsePSVariables(t,f,i,c,e),n.parsePSExpression(t,f,i,c,e)}))})),i},parseTextExpression:function parseTextExpression(t,e,n,i){var a=t.match(e);return a?this.Text.Functions[n].call(this,a,i):i},parseHeadersExpression:function parseHeadersExpression(t,e,n,i){return t.match(e)?this.Headers.Functions[n].call(this):i},parseText:function parseText(t){var e=this,n=t;return Object.entries(this.Text.Expressions).forEach((function(i){var s=(0,a.default)(i,2),u=s[0],c=s[1];n=e.parseTextExpression(t,c,u,n)})),Object.entries(this.Headers.Expressions).forEach((function(i){var s=(0,a.default)(i,2),u=s[0],c=s[1];n=e.parseHeadersExpression(t,c,u,n)})),n}};var u=Parser;n.default=u},{"@babel/runtime/helpers/defineProperty":5,"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/slicedToArray":10}],131:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Functions=n.Expressions=void 0;var i=t("latex2js-utils"),a={emph:/\\emph\{[^}]*\}/g,bf:/\{*\\bf [^}]*\}/g,rm:/\{*\\rm [^}]*\}/g,sl:/\{*\\sl [^}]*\}/g,it:/\{*\\it [^}]*\}/g,tt:/\{*\\tt [^}]*\}/g,mdash:/---/g,ndash:/--/g,openq:/``/g,closeq:/''/g,TeX:/\\TeX\\|\\TeX/g,LaTeX:/\\LaTeX\\|\\LaTeX/g,vspace:/\\vspace/g,cite:/\\cite\[\d+\]\{[^}]*\}/g,href:/\\href\{[^}]*\}\{[^}]*\}/g,img:/\\img\{[^}]*\}/g,set:/\\set\{[^}]*\}/g,youtube:/\\youtube\{[^}]*\}/g,euler:/Euler\^/g};n.Expressions=a;var s={cite:function cite(t,e){return t.forEach((function(t){var n=t.match(/\\cite\[(\d+)\]\{([^}]*)\}/),i=location.pathname.match(/\/books\/(\d+)\//),a=0;i&&(a=i[1]),e=e.replace(n.input,'[p'+n[1]+"] ")})),e},img:(0,i.matchrepl)(/\\img\{([^}]*)\}/,(function(t){return''})),youtube:(0,i.matchrepl)(/\\youtube\{([^}]*)\}/,(function(t){return'VIDEO
'})),href:(0,i.matchrepl)(/\\href\{([^}]*)\}\{([^}]*)\}/,(function(t){return''+t[2]+" "})),set:(0,i.matchrepl)(/\\set\{([^}]*)\}/,(function(t){return""+t[1]+" "})),euler:(0,i.simplerepl)(/Euler\^/,"exp"),emph:(0,i.matchrepl)(/\{([^}]*)\}/,(function(t){return""+t[1]+" "})),bf:(0,i.matchrepl)(/\{*\\bf ([^}]*)\}/,(function(t){return""+t[1]+" "})),rm:(0,i.matchrepl)(/\{*\\rm ([^}]*)\}/,(function(t){return''+t[1]+" "})),sl:(0,i.matchrepl)(/\{*\\sl ([^}]*)\}/,(function(t){return""+t[1]+" "})),it:(0,i.matchrepl)(/\{*\\it ([^}]*)\}/,(function(t){return""+t[1]+" "})),tt:(0,i.matchrepl)(/\{*\\tt ([^}]*)\}/,(function(t){return''+t[1]+" "})),ndash:(0,i.simplerepl)(/--/g,"–"),mdash:(0,i.simplerepl)(/---/g,"—"),openq:(0,i.simplerepl)(/``/g,"“"),closeq:(0,i.simplerepl)(/''/g,"”"),vspace:(0,i.simplerepl)(/\\vspace/g," "),TeX:(0,i.simplerepl)(/\\TeX\\|\\TeX/g,"$\\TeX$"),LaTeX:(0,i.simplerepl)(/\\LaTeX\\|\\LaTeX/g,"$\\LaTeX$")};n.Functions=s;var u={Expressions:a,Functions:s};n.default=u},{"latex2js-utils":125}]},{},[118])(118)}));
\ No newline at end of file
+var a=t("url"),s=t("child_process").spawn,u=t("fs");n.XMLHttpRequest=function(){var n,c,f=this,h=t("http"),d=t("https"),p={},g=!1,v={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},b={},_={},w=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],M=["TRACE","TRACK","CONNECT"],E=!1,T=!1,S={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.withCredentials=!1;this.open=function(t,e,n,i,a){if(this.abort(),T=!1,!function(t){return t&&-1===M.indexOf(t)}(t))throw new Error("SecurityError: Request method not allowed");p={method:t,url:e.toString(),async:"boolean"!=typeof n||n,user:i||null,password:a||null},setState(this.OPENED)},this.setDisableHeaderCheck=function(t){g=t},this.setRequestHeader=function(t,e){if(this.readyState!==this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(function(t){return g||t&&-1===w.indexOf(t.toLowerCase())}(t)){if(E)throw new Error("INVALID_STATE_ERR: send flag is true");t=_[t.toLowerCase()]||t,_[t.toLowerCase()]=t,b[t]=b[t]?b[t]+", "+e:e}else console.warn('Refused to set unsafe header "'+t+'"')},this.getResponseHeader=function(t){return"string"==typeof t&&this.readyState>this.OPENED&&c&&c.headers&&c.headers[t.toLowerCase()]&&!T?c.headers[t.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState"+e[1]+"":t})).join("\n"),n=document.createElement("ul");return n.className="math",n.innerHTML=e,n}},{}],112:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=document.createElement("div");return e.id="latex-macros",e.style.display="none",e.className="verbatim",e.innerHTML=a.default,e};var a=i(t("latex2js-macros"))},{"@babel/runtime/helpers/interopRequireDefault":6,"latex2js-macros":119}],113:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=document.createElement("span");return e.className="math",e.innerHTML=t.lines.join("\n"),e}},{}],114:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=document.createElement("span");return e.className="math nicebox",e.innerHTML=t.lines.join("\n"),e}},{}],115:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireWildcard"),a=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=u.psgraph.getSize.call(t),n=("width: ".concat(e.width,"px; height: ").concat(e.height,"px;"),"".concat(e.width,"px")),i="".concat(e.height,"px"),a=document.createElement("div");a.className="pspicture",a.style.width=n,a.style.height=i;var f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("width",n),f.setAttribute("height",i);var h=c.select(f);t.$el=a,u.psgraph.pspicture.call(t,h),a.appendChild(f);var d=t.env,p=t.plot,g=d.sliders;g&&g.length&&g.forEach((function(t){var e=t.latex,n=t.scalar,i=t.variable,c=t.value,f=t.min,g=t.max,v=document.createElement("label"),b=document.createTextNode(e),_=document.createElement("input");_.setAttribute("min",f*n),_.setAttribute("max",g*n),_.setAttribute("type","range"),_.setAttribute("value",c),v.appendChild(b),v.appendChild(_),a.appendChild(v),_.addEventListener("input",(function(t){!function onChange(t){var e=t.target.value/n;d.variables[i]=e,h.selectAll(".psplot").remove(),Object.entries(p).forEach((function(t){var e=(0,s.default)(t,2),n=e[0],i=e[1];n.match(/psplot/)&&i.forEach((function(t){var e=t.fn.call(t.env,t.match);u.psgraph[n]&&e&&h&&u.psgraph[n].call(e,h)}))}))}(t)}))}));return a};var s=a(t("@babel/runtime/helpers/slicedToArray")),u=t("latex2js-pstricks"),c=i(t("d3"))},{"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/interopRequireWildcard":7,"@babel/runtime/helpers/slicedToArray":10,d3:73,"latex2js-pstricks":121}],116:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){return document.createElement("input")}},{}],117:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function render(t){var e=document.createElement("pre");return e.className="verbatim",e.innerHTML=t.lines.join("\n"),e}},{}],118:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=render,Object.defineProperty(n,"pspicture",{enumerable:!0,get:function get(){return u.default}}),Object.defineProperty(n,"nicebox",{enumerable:!0,get:function get(){return c.default}}),Object.defineProperty(n,"enumerate",{enumerable:!0,get:function get(){return f.default}}),Object.defineProperty(n,"verbatim",{enumerable:!0,get:function get(){return h.default}}),Object.defineProperty(n,"math",{enumerable:!0,get:function get(){return d.default}}),Object.defineProperty(n,"macros",{enumerable:!0,get:function get(){return p.default}}),n.init=void 0;var a=i(t("latex2js")),s=t("latex2js-mathjax"),u=i(t("./components/pspicture")),c=i(t("./components/nicebox")),f=i(t("./components/enumerate")),h=i(t("./components/verbatim")),d=(i(t("./components/slider")),i(t("./components/math"))),p=i(t("./components/macros")),g={pspicture:u.default,nicebox:c.default,enumerate:f.default,verbatim:h.default,math:d.default,macros:p.default};function render(t,e){var n=function done(){var n=(new a.default).parse(t),i=document.createElement("div");i.className="latex-container",n&&n.forEach&&n.forEach((function(t){g.hasOwnProperty(t.type)&&i.appendChild(g[t.type](t))})),e(i)};if((0,s.getMathJax)())return n();(0,s.loadMathJax)(n)}n.init=function init(){(0,s.loadMathJax)(),document.querySelectorAll("la-tex:not([hydrated])").forEach((function(t){render(t.innerHTML,(function(e){t.shadowRoot.querySelector(".wrapper").innerHTML="",t.shadowRoot.querySelector(".wrapper").appendChild(e),t.hydrated=!0}))}))}},{"./components/enumerate":111,"./components/macros":112,"./components/math":113,"./components/nicebox":114,"./components/pspicture":115,"./components/slider":116,"./components/verbatim":117,"@babel/runtime/helpers/interopRequireDefault":6,latex2js:126,"latex2js-mathjax":120}],119:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("@babel/runtime/helpers/taggedTemplateLiteral"));function _templateObject_2bdb8750c14b11ef99814732f9c4dbb5(){var t=(0,a.default)(["\n $$\n % create the definition symbol\n def\bydef{stackrel{Delta}{=}}\n %defcircconv{otimes}\n defcircconv{circledast}\n\n \newcommand{qed}{mbox{ } Box}\n\n\n \newcommand{infint}{int_{-infty}^{infty}}\n\n % z transform\n \newcommand{ztp}{ ~~ mathop{mathcal{Z}}limits_{longleftrightarrow} ~~ }\n \newcommand{iztp}{ ~~ mathop{mathcal{Z}^{-1}}limits_{longleftrightarrow} ~~ }\n % fourier transform pair\n \newcommand{\ftp}{ ~~ mathop{mathcal{F}}limits_{longleftrightarrow} ~~ }\n \newcommand{iftp}{ ~~ mathop{mathcal{F}^{-1}}limits_{longleftrightarrow} ~~ }\n % laplace transform\n \newcommand{ltp}{ ~~ mathop{mathcal{L}}limits_{longleftrightarrow} ~~ }\n \newcommand{iltp}{ ~~ mathop{mathcal{L}^{-1}}limits_{longleftrightarrow} ~~ }\n\n \newcommand{\ftrans}[1]{ mathcal{F} left{#1\right} }\n \newcommand{iftrans}[1]{ mathcal{F}^{-1} left{#1\right} }\n \newcommand{ztrans}[1]{ mathcal{Z} left{#1\right} }\n \newcommand{iztrans}[1]{ mathcal{Z}^{-1} left{#1\right} }\n \newcommand{ltrans}[1]{ mathcal{L} left{#1\right} }\n \newcommand{iltrans}[1]{ mathcal{L}^{-1} left{#1\right} }\n\n\n % coordinate vector relative to a basis (linear algebra)\n \newcommand{cvrb}[2]{left[ \vec{#1} \right]_{#2} }\n % change of coordinate matrix (linear algebra)\n \newcommand{cocm}[2]{ mathop{P}limits_{#2 leftarrow #1} }\n % Transformed vector set\n \newcommand{\tset}[3]{{#1lr{\vec{#2}_1}, #1lr{\vec{#2}_2}, dots, #1lr{\vec{#2}_{#3}}}}\n % sum transformed vector set\n \newcommand{\tsetcsum}[4]{{#1}_1#2(\vec{#3}_1) + {#1}_2#2(\vec{#3}_2) + cdots + {#1}_{#4}#2(\vec{#3}_{#4})}\n \newcommand{\tsetcsumall}[4]{#2lr{{#1}_1\vec{#3}_1 + {#1}_2\vec{#3}_2 + cdots + {#1}_{#4}\vec{#3}_{#4}}}\n \newcommand{cvecsum}[3]{{#1}_1\vec{#2}_1 + {#1}_2\vec{#2}_2 + cdots + {#1}_{#3}\vec{#2}_{#3}}\n\n\n % function def\n \newcommand{\fndef}[3]{#1:#2 \to #3}\n % vector set\n \newcommand{\vset}[2]{{\vec{#1}_1, \vec{#1}_2, dots, \vec{#1}_{#2}}}\n % absolute value\n \newcommand{abs}[1]{left| #1 \right|}\n % vector norm\n \newcommand{\norm}[1]{left|left| #1 \right|\right|}\n % trans\n \newcommand{\trans}{mapsto}\n % evaluate integral\n \newcommand{evalint}[3]{left. #1 \right|_{#2}^{#3}}\n % slist\n \newcommand{slist}[2]{{#1}_{1},{#1}_{2},dots,{#1}_{#2}}\n\n % vectors\n \newcommand{\vc}[1]{\textbf{#1}}\n\n % real\n \newcommand{Real}[1]{{Re mit{e}left{{#1}\right}}}\n % imaginary\n \newcommand{Imag}[1]{{Im mit{m}left{{#1}\right}}}\n\n \newcommand{mcal}[1]{mathcal{#1}}\n \newcommand{\bb}[1]{mathbb{#1}}\n \newcommand{N}{mathbb{N}}\n \newcommand{Z}{mathbb{Z}}\n \newcommand{Q}{mathbb{Q}}\n \newcommand{R}{mathbb{R}}\n \newcommand{C}{mathbb{C}}\n \newcommand{I}{mathbb{I}}\n \newcommand{Th}[1]{mathopmathrm{Th(#1)}}\n \newcommand{intersect}{cap}\n \newcommand{\\union}{cup}\n \newcommand{intersectop}{\bigcap}\n \newcommand{\\unionop}{\bigcup}\n \newcommand{setdiff}{\backslash}\n \newcommand{iso}{cong}\n \newcommand{aut}[1]{mathop{mathrm{Aut(#1)}}}\n \newcommand{inn}[1]{mathop{mathrm{Inn(#1)}}}\n \newcommand{Ann}[1]{mathop{mathrm{Ann(#1)}}}\n \newcommand{dom}[1]{mathop{mathrm{dom} #1}}\n \newcommand{cod}[1]{mathop{mathrm{cod} #1}}\n \newcommand{id}{mathrm{id}}\n \newcommand{st}{ | }\n \newcommand{mbf}[1]{mathbf{#1}}\n \newcommand{enclose}[1]{leftlangle #1\right\rangle}\n \newcommand{lr}[1]{left( #1\right)}\n \newcommand{lrsq}[1]{left[ #1\right]}\n \newcommand{op}{mathrm{op}}\n \newcommand{dotarr}{dot{\rightarrow}}\n %Category Names:\n \newcommand{Grp}{mathbf{Grp}}\n \newcommand{Ab}{mathbf{Ab}}\n \newcommand{Set}{mathbf{Set}}\n \newcommand{Matr}{mathbf{Matr}}\n \newcommand{IntDom}{mathbf{IntDom}}\n \newcommand{Field}{mathbf{Field}}\n \newcommand{Vect}{mathbf{Vect}}\n\n \newcommand{\thm}[1]{\begin{theorem} #1 end{theorem}}\n \newcommand{clm}[1]{\begin{claim} #1 end{claim}}\n \newcommand{cor}[1]{\begin{corollary} #1 end{corollary}}\n \newcommand{ex}[1]{\begin{example} #1 end{example}}\n \newcommand{prf}[1]{\begin{proof} #1 end{proof}}\n \newcommand{prbm}[1]{\begin{problem} #1 end{problem}}\n \newcommand{soln}[1]{\begin{solution} #1 end{solution}}\n \newcommand{\rmk}[1]{\begin{remark} #1 end{remark}}\n \newcommand{defn}[1]{\begin{definition} #1 end{definition}}\n\n \newcommand{ifff}{LeftRightArrow}\n\n \x3c!-- For the set of reals and integers --\x3e\n \newcommand{\rr}{R}\n \newcommand{\reals}{R}\n \newcommand{ii}{Z}\n \newcommand{cc}{C}\n \newcommand{\nn}{N}\n \newcommand{\nats}{N}\n\n \x3c!-- For terms being indexed.\n Puts them in standard font face and creates an index entry.\n arg: The term being defined.\n \newcommand{pointer}[1]{#1index{#1}} --\x3e\n\n \x3c!-- For bold terms to be index, but defined elsewhere\n Puts them in bold face and creates an index entry.\n arg: The term being defined. --\x3e\n \newcommand{strong}[1]{\textbf{#1}}\n\n \x3c!-- For set names.\n Puts them in italics. In math mode, yields decent spacing.\n arg: The name of the set. --\x3e\n \newcommand{set}[1]{\textit{#1}}\n\n $$\n "],["\n $$\n % create the definition symbol\n \\def\\bydef{\\stackrel{\\Delta}{=}}\n %\\def\\circconv{\\otimes}\n \\def\\circconv{\\circledast}\n\n \\newcommand{\\qed}{\\mbox{ } \\Box}\n\n\n \\newcommand{\\infint}{\\int_{-\\infty}^{\\infty}}\n\n % z transform\n \\newcommand{\\ztp}{ ~~ \\mathop{\\mathcal{Z}}\\limits_{\\longleftrightarrow} ~~ }\n \\newcommand{\\iztp}{ ~~ \\mathop{\\mathcal{Z}^{-1}}\\limits_{\\longleftrightarrow} ~~ }\n % fourier transform pair\n \\newcommand{\\ftp}{ ~~ \\mathop{\\mathcal{F}}\\limits_{\\longleftrightarrow} ~~ }\n \\newcommand{\\iftp}{ ~~ \\mathop{\\mathcal{F}^{-1}}\\limits_{\\longleftrightarrow} ~~ }\n % laplace transform\n \\newcommand{\\ltp}{ ~~ \\mathop{\\mathcal{L}}\\limits_{\\longleftrightarrow} ~~ }\n \\newcommand{\\iltp}{ ~~ \\mathop{\\mathcal{L}^{-1}}\\limits_{\\longleftrightarrow} ~~ }\n\n \\newcommand{\\ftrans}[1]{ \\mathcal{F} \\left\\{#1\\right\\} }\n \\newcommand{\\iftrans}[1]{ \\mathcal{F}^{-1} \\left\\{#1\\right\\} }\n \\newcommand{\\ztrans}[1]{ \\mathcal{Z} \\left\\{#1\\right\\} }\n \\newcommand{\\iztrans}[1]{ \\mathcal{Z}^{-1} \\left\\{#1\\right\\} }\n \\newcommand{\\ltrans}[1]{ \\mathcal{L} \\left\\{#1\\right\\} }\n \\newcommand{\\iltrans}[1]{ \\mathcal{L}^{-1} \\left\\{#1\\right\\} }\n\n\n % coordinate vector relative to a basis (linear algebra)\n \\newcommand{\\cvrb}[2]{\\left[ \\vec{#1} \\right]_{#2} }\n % change of coordinate matrix (linear algebra)\n \\newcommand{\\cocm}[2]{ \\mathop{P}\\limits_{#2 \\leftarrow #1} }\n % Transformed vector set\n \\newcommand{\\tset}[3]{\\{#1\\lr{\\vec{#2}_1}, #1\\lr{\\vec{#2}_2}, \\dots, #1\\lr{\\vec{#2}_{#3}}\\}}\n % sum transformed vector set\n \\newcommand{\\tsetcsum}[4]{{#1}_1#2(\\vec{#3}_1) + {#1}_2#2(\\vec{#3}_2) + \\cdots + {#1}_{#4}#2(\\vec{#3}_{#4})}\n \\newcommand{\\tsetcsumall}[4]{#2\\lr{{#1}_1\\vec{#3}_1 + {#1}_2\\vec{#3}_2 + \\cdots + {#1}_{#4}\\vec{#3}_{#4}}}\n \\newcommand{\\cvecsum}[3]{{#1}_1\\vec{#2}_1 + {#1}_2\\vec{#2}_2 + \\cdots + {#1}_{#3}\\vec{#2}_{#3}}\n\n\n % function def\n \\newcommand{\\fndef}[3]{#1:#2 \\to #3}\n % vector set\n \\newcommand{\\vset}[2]{\\{\\vec{#1}_1, \\vec{#1}_2, \\dots, \\vec{#1}_{#2}\\}}\n % absolute value\n \\newcommand{\\abs}[1]{\\left| #1 \\right|}\n % vector norm\n \\newcommand{\\norm}[1]{\\left|\\left| #1 \\right|\\right|}\n % trans\n \\newcommand{\\trans}{\\mapsto}\n % evaluate integral\n \\newcommand{\\evalint}[3]{\\left. #1 \\right|_{#2}^{#3}}\n % slist\n \\newcommand{\\slist}[2]{{#1}_{1},{#1}_{2},\\dots,{#1}_{#2}}\n\n % vectors\n \\newcommand{\\vc}[1]{\\textbf{#1}}\n\n % real\n \\newcommand{\\Real}[1]{{\\Re \\mit{e}\\left\\{{#1}\\right\\}}}\n % imaginary\n \\newcommand{\\Imag}[1]{{\\Im \\mit{m}\\left\\{{#1}\\right\\}}}\n\n \\newcommand{\\mcal}[1]{\\mathcal{#1}}\n \\newcommand{\\bb}[1]{\\mathbb{#1}}\n \\newcommand{\\N}{\\mathbb{N}}\n \\newcommand{\\Z}{\\mathbb{Z}}\n \\newcommand{\\Q}{\\mathbb{Q}}\n \\newcommand{\\R}{\\mathbb{R}}\n \\newcommand{\\C}{\\mathbb{C}}\n \\newcommand{\\I}{\\mathbb{I}}\n \\newcommand{\\Th}[1]{\\mathop\\mathrm{Th(#1)}}\n \\newcommand{\\intersect}{\\cap}\n \\newcommand{\\\\union}{\\cup}\n \\newcommand{\\intersectop}{\\bigcap}\n \\newcommand{\\\\unionop}{\\bigcup}\n \\newcommand{\\setdiff}{\\backslash}\n \\newcommand{\\iso}{\\cong}\n \\newcommand{\\aut}[1]{\\mathop{\\mathrm{Aut(#1)}}}\n \\newcommand{\\inn}[1]{\\mathop{\\mathrm{Inn(#1)}}}\n \\newcommand{\\Ann}[1]{\\mathop{\\mathrm{Ann(#1)}}}\n \\newcommand{\\dom}[1]{\\mathop{\\mathrm{dom} #1}}\n \\newcommand{\\cod}[1]{\\mathop{\\mathrm{cod} #1}}\n \\newcommand{\\id}{\\mathrm{id}}\n \\newcommand{\\st}{\\ |\\ }\n \\newcommand{\\mbf}[1]{\\mathbf{#1}}\n \\newcommand{\\enclose}[1]{\\left\\langle #1\\right\\rangle}\n \\newcommand{\\lr}[1]{\\left( #1\\right)}\n \\newcommand{\\lrsq}[1]{\\left[ #1\\right]}\n \\newcommand{\\op}{\\mathrm{op}}\n \\newcommand{\\dotarr}{\\dot{\\rightarrow}}\n %Category Names:\n \\newcommand{\\Grp}{\\mathbf{Grp}}\n \\newcommand{\\Ab}{\\mathbf{Ab}}\n \\newcommand{\\Set}{\\mathbf{Set}}\n \\newcommand{\\Matr}{\\mathbf{Matr}}\n \\newcommand{\\IntDom}{\\mathbf{IntDom}}\n \\newcommand{\\Field}{\\mathbf{Field}}\n \\newcommand{\\Vect}{\\mathbf{Vect}}\n\n \\newcommand{\\thm}[1]{\\begin{theorem} #1 \\end{theorem}}\n \\newcommand{\\clm}[1]{\\begin{claim} #1 \\end{claim}}\n \\newcommand{\\cor}[1]{\\begin{corollary} #1 \\end{corollary}}\n \\newcommand{\\ex}[1]{\\begin{example} #1 \\end{example}}\n \\newcommand{\\prf}[1]{\\begin{proof} #1 \\end{proof}}\n \\newcommand{\\prbm}[1]{\\begin{problem} #1 \\end{problem}}\n \\newcommand{\\soln}[1]{\\begin{solution} #1 \\end{solution}}\n \\newcommand{\\rmk}[1]{\\begin{remark} #1 \\end{remark}}\n \\newcommand{\\defn}[1]{\\begin{definition} #1 \\end{definition}}\n\n \\newcommand{\\ifff}{\\LeftRightArrow}\n\n \x3c!-- For the set of reals and integers --\x3e\n \\newcommand{\\rr}{\\R}\n \\newcommand{\\reals}{\\R}\n \\newcommand{\\ii}{\\Z}\n \\newcommand{\\cc}{\\C}\n \\newcommand{\\nn}{\\N}\n \\newcommand{\\nats}{\\N}\n\n \x3c!-- For terms being indexed.\n Puts them in standard font face and creates an index entry.\n arg: The term being defined.\n \\newcommand{\\pointer}[1]{#1\\index{#1}} --\x3e\n\n \x3c!-- For bold terms to be index, but defined elsewhere\n Puts them in bold face and creates an index entry.\n arg: The term being defined. --\x3e\n \\newcommand{\\strong}[1]{\\textbf{#1}}\n\n \x3c!-- For set names.\n Puts them in italics. In math mode, yields decent spacing.\n arg: The name of the set. --\x3e\n \\newcommand{\\set}[1]{\\textit{#1}}\n\n $$\n "]);return _templateObject_2bdb8750c14b11ef99814732f9c4dbb5=function _templateObject_2bdb8750c14b11ef99814732f9c4dbb5(){return t},t}var s=String.raw(_templateObject_2bdb8750c14b11ef99814732f9c4dbb5());n.default=s},{"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/taggedTemplateLiteral":11}],120:[function(t,e,n){(function(e){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.loadMathJax=n.getMathJax=n.DEFAULT_OPTIONS=n.DEFAULT_SCRIPT=void 0;var a=i(t("load-script")),s=e.env.MATHJAX_CDN||"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js";n.DEFAULT_SCRIPT=s;var u={TeX:{extensions:["AMSmath.js","AMSsymbols.js"]},extensions:["tex2jax.js"],showProcessingMessages:!1,jax:["input/TeX","output/HTML-CSS"],messageStyle:"none",showMathMenu:!1,showMathMenuMSIE:!1,tex2jax:{processEnvironments:!0,inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],preview:"none",processEscapes:!0},"HTML-CSS":{linebreaks:{automatic:!0,width:"container"}}};n.DEFAULT_OPTIONS=u;n.getMathJax=function getMathJax(){return"undefined"==typeof MathJax?void 0:MathJax};n.loadMathJax=function loadMathJax(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,i=function onLoad(){MathJax.Hub.Config(n),t()};if(!e)return i();(0,a.default)(e,i)}}).call(this,t("_process"))},{"@babel/runtime/helpers/interopRequireDefault":6,_process:100,"load-script":99}],121:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"pstricks",{enumerable:!0,get:function get(){return a.default}}),Object.defineProperty(n,"psgraph",{enumerable:!0,get:function get(){return s.default}}),n.default=void 0;var a=i(t("./lib/pstricks")),s=i(t("./lib/psgraph")),u={pstricks:a.default,psgraph:s.default};n.default=u},{"./lib/psgraph":122,"./lib/pstricks":123,"@babel/runtime/helpers/interopRequireDefault":6}],122:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireWildcard"),a=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s=a(t("@babel/runtime/helpers/slicedToArray")),u=t("latex2js-utils"),c=i(t("d3"));function arrow(t,e,n,i){var a=Math.PI/6,s=n-t,u=i-e,c=Math.sqrt(s*s+u*u),f=Math.cos(a),h=Math.sin(a),d=8/c,p=n-(s*f-u*h)*d,g=i-(u*f+s*h)*d,v=[];return v.push("M"),v.push(n),v.push(i),v.push("L"),v.push(p),v.push(g),p=n-(s*(f=Math.cos(-a))-u*(h=Math.sin(-a)))*d,g=i-(u*f+s*h)*d,v.push(p),v.push(g),v.push("Z"),v.join(" ")}var f={getSize:function getSize(){this.env.scale=1;var t=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-20;return t<=this.env.w*this.env.xunit&&(this.env.scale=t/this.env.w/this.env.xunit),{width:this.env.w*this.env.xunit,height:this.env.h*this.env.yunit}},psframe:function psframe(t){t.append("svg:line").attr("x1",this.x1).attr("y1",this.y1).attr("x2",this.x2).attr("y2",this.y1).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1),t.append("svg:line").attr("x1",this.x2).attr("y1",this.y1).attr("x2",this.x2).attr("y2",this.y2).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1),t.append("svg:line").attr("x1",this.x2).attr("y1",this.y2).attr("x2",this.x1).attr("y2",this.y2).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1),t.append("svg:line").attr("x1",this.x1).attr("y1",this.y2).attr("x2",this.x1).attr("y2",this.y1).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1)},pscircle:function pscircle(t){t.append("svg:circle").attr("cx",this.cx).attr("cy",this.cy).attr("r",this.r).style("stroke","black").style("fill","none").style("stroke-width",2).style("stroke-opacity",1)},psplot:function psplot(t){var e=[];e.push("M"),"solid"===this.fillstyle?(e.push(this.data[0]),e.push(u.Y.call(this.global,0))):(e.push(this.data[0]),e.push(this.data[1])),e.push("L"),this.data.forEach((function(t){e.push(t)})),"solid"===this.fillstyle&&(e.push(this.data[this.data.length-2]),e.push(u.Y.call(this.global,0)),e.push("Z")),t.append("svg:path").attr("d",e.join(" ")).attr("class","psplot").style("stroke-width",this.linewidth).style("stroke-opacity",1).style("fill","none"===this.fillstyle?"none":this.fillcolor).style("stroke",this.linecolor)},pspolygon:function pspolygon(t){var e=[];e.push("M"),e.push(this.data[0]),e.push(this.data[1]),e.push("L"),this.data.forEach((function(t){e.push(t)})),e.push("Z"),t.append("svg:path").attr("d",e.join(" ")).style("stroke-width",this.linewidth).style("stroke-opacity",1).style("fill","none"===this.fillstyle?"none":this.fillcolor).style("stroke","black")},psarc:function psarc(t){var e=[];e.push("M"),e.push(this.cx),e.push(this.cy),e.push("L"),e.push(this.A.x),e.push(this.A.y),e.push("A"),e.push(this.A.x),e.push(this.A.y),e.push(0),e.push(0),e.push(0),e.push(this.B.x),e.push(this.B.y),t.append("svg:path").attr("d",e.join(" ")).style("stroke-width",2).style("stroke-opacity",1).style("fill","blue").style("stroke","black")},psaxes:function psaxes(t){var e=[this.bottomLeft[0],this.topRight[0]],n=[this.bottomLeft[1],this.topRight[1]],i=this.origin;function line(e,n,i,a){t.append("svg:path").attr("d","M "+e+" "+n+" L "+i+" "+a).style("stroke-width",2).style("stroke","rgb(0,0,0)").style("stroke-opacity",1)}var a=function xticks(){for(var t=e[0];t<=e[1];t+=this.dx)line(t,i[1]-5,t,i[1]+5)},s=function yticks(){for(var t=n[0];t<=n[1];t+=this.dy)line(i[0]-5,t,i[0]+5,t)};line(e[0],i[1],e[1],i[1]),line(i[0],n[0],i[0],n[1]),this.ticks.match(/all/)?(a(),s()):this.ticks.match(/x/)?a():this.ticks.match(/y/)&&s(),this.arrows[0]&&(t.append("path").attr("d",arrow(e[1],i[1],e[0],i[1])).style("fill","black").style("stroke","black"),t.append("path").attr("d",arrow(i[0],n[1],i[0],n[0])).style("fill","black").style("stroke","black")),this.arrows[1]&&(t.append("path").attr("d",arrow(e[0],i[1],e[1],i[1])).style("fill","black").style("stroke","black"),t.append("path").attr("d",arrow(i[0],n[0],i[0],n[1])).style("fill","black").style("stroke","black"))},psline:function psline(t){var e=this.linewidth,n=this.linecolor;this.linestyle.match(/dotted/)?function dotted(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).style("stroke-width",e).style("stroke",n).style("stroke-dasharray","9,5").style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2):this.linestyle.match(/dashed/)?function dashed(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).style("stroke-width",e).style("stroke",n).style("stroke-dasharray","9,5").style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2):function solid(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).style("stroke-width",e).style("stroke",n).style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2),this.dots[0]&&t.append("svg:circle").attr("cx",this.x1).attr("cy",this.y1).attr("r",3).style("stroke",this.linecolor).style("fill",this.linecolor).style("stroke-width",1).style("stroke-opacity",1),this.dots[1]&&t.append("svg:circle").attr("cx",this.x2).attr("cy",this.y2).attr("r",3).style("stroke",this.linecolor).style("fill",this.linecolor).style("stroke-width",1).style("stroke-opacity",1);var i=this.x1,a=this.y1,s=this.x2,u=this.y2;this.arrows[0]&&t.append("path").attr("d",arrow(s,u,i,a)).style("fill",this.linecolor).style("stroke",this.linecolor),this.arrows[1]&&t.append("path").attr("d",arrow(i,a,s,u)).style("fill",this.linecolor).style("stroke",this.linecolor)},userline:function userline(t){var e=this.linewidth,n=this.linecolor;this.linestyle.match(/dotted/)?function dotted(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).attr("class","userline").style("stroke-width",e).style("stroke",n).style("stroke-dasharray","9,5").style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2):this.linestyle.match(/dashed/)?function dashed(i,a,s,u){t.append("svg:path").attr("d","M "+i+" "+a+" L "+s+" "+u).attr("class","userline").style("stroke-width",e).style("stroke",n).style("stroke-dasharray","9,5").style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2):function solid(i,a,s,u){t.append("svg:path").attr("class","userline").attr("d","M "+i+" "+a+" L "+s+" "+u).style("stroke-width",e).style("stroke",n).style("stroke-opacity",1)}(this.x1,this.y1,this.x2,this.y2),this.dots[0]&&t.append("svg:circle").attr("cx",this.x1).attr("cy",this.y1).attr("r",3).attr("class","userline").style("stroke",this.linecolor).style("fill",this.linecolor).style("stroke-width",1).style("stroke-opacity",1),this.dots[1]&&t.append("svg:circle").attr("cx",this.x2).attr("cy",this.y2).attr("r",3).attr("class","userline").style("stroke",this.linecolor).style("fill",this.linecolor).style("stroke-width",1).style("stroke-opacity",1);var i=this.x1,a=this.y1,s=this.x2,u=this.y2;this.arrows[0]&&t.append("path").attr("d",arrow(s,u,i,a)).attr("class","userline").style("fill",this.linecolor).style("stroke",this.linecolor),this.arrows[1]&&t.append("path").attr("d",arrow(i,a,s,u)).attr("class","userline").style("fill",this.linecolor).style("stroke",this.linecolor)},rput:function rput(t){var e=document.createElement("div"),n=this.x,i=this.y;e.innerHTML=this.text,e.className="math",e.style.visibility="hidden",e.style.position="absolute",e.style.top="".concat(i,"px"),e.style.left="".concat(n,"px"),t.appendChild(e);MathJax.Hub.Queue(["Typeset",MathJax.Hub,e],[function done(){var t=e.getBoundingClientRect(),a=t.width/2,s=t.height/2;e.style.visibility="visible",e.style.top="".concat(i-s,"px"),e.style.left="".concat(n-a,"px")}])},pspicture:function pspicture(t){var e=this,n=this.env,i=this.$el;Object.keys(this.plot).forEach((function(i){var a=e.plot[i];i.match(/rput/)||f.hasOwnProperty(i)&&a.forEach((function(e){e.data.global=n,f[i].call(e.data,t)}))})),t.on("touchmove",(function(){c.event.preventDefault(),userEvent(c.touches(this)[0])}),!1),t.on("mousemove",(function(){userEvent(c.mouse(this))}),!1);var a=this.plot;function userEvent(e){t.selectAll(".userline").remove(),t.selectAll(".psplot").remove();var i={};Object.entries(a||{}).forEach((function(t){var n=(0,s.default)(t,2),a=n[0],u=n[1];a.match(/uservariable/)&&u.forEach((function(t){t.env.userx=e[0],t.env.usery=e[1];var n=t.fn.call(t.env,t.match);i[t.data.name]=n.value}))})),Object.entries(a||{}).forEach((function(a){var u=(0,s.default)(a,2),c=u[0],h=u[1];c.match(/psplot/)&&h.forEach((function(e){Object.entries(i||{}).forEach((function(t){var n=(0,s.default)(t,2),i=n[0],a=n[1];e.env.variables[i]=a}));var a=e.fn.call(e.env,e.match);a.global={},Object.assign(a.global,n),f[c].call(a,t)})),c.match(/userline/)&&h.forEach((function(i){var a=i.fn.call(i.env,i.match);i.env.x2=e[0],i.env.y2=e[1],i.data.x2=i.env.x2,i.data.y2=i.env.y2,i.data.xExp2?(i.data.x2=a.userx2(e),i.data.x1=a.userx(e)):i.data.xExp&&(i.data.x2=a.userx(e)),i.data.yExp2?(i.data.y2=a.usery2(e),i.data.y1=a.usery(e)):i.data.yExp&&(i.data.y2=a.usery(e)),a.global={},Object.assign(a.global,n),Object.assign(a,i.data),f[c].call(a,t)}))}))}this.plot.rput.forEach((function(t){f.rput.call(t.data,i)}))}},h=f;n.default=h},{"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/interopRequireWildcard":7,"@babel/runtime/helpers/slicedToArray":10,d3:73,"latex2js-utils":125}],123:[function(require,module,exports){var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Functions=exports.Expressions=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")),_latex2jsUtils=require("latex2js-utils"),_latex2jsSettings=_interopRequireDefault(require("latex2js-settings")),Expressions={pspicture:/\\begin\{pspicture\}\(\s*(.*),(.*)\s*\)\(\s*(.*),(.*)\s*\)/,psframe:/\\psframe\(\s*(.*),(.*)\s*\)\(\s*(.*),(.*)\s*\)/,psplot:/\\psplot(\[[^\]]*\])?\{([^\}]*)\}\{([^\}]*)\}\{([^\}]*)\}/,psarc:new RegExp("\\\\psarc"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.type+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle),pscircle:/\\pscircle.*\(\s*(.*),(.*)\s*\)\{(.*)\}/,pspolygon:new RegExp("\\\\pspolygon"+_latex2jsUtils.RE.options+"(.*)"),psaxes:new RegExp("\\\\psaxes"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.type+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.coordsOpt+_latex2jsUtils.RE.coordsOpt),slider:new RegExp("\\\\slider"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.squiggle),psline:new RegExp("\\\\psline"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.type+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.coordsOpt),userline:new RegExp("\\\\userline"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.type+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.squiggleOpt+_latex2jsUtils.RE.squiggleOpt+_latex2jsUtils.RE.squiggleOpt+_latex2jsUtils.RE.squiggleOpt),uservariable:new RegExp("\\\\uservariable"+_latex2jsUtils.RE.options+_latex2jsUtils.RE.squiggle+_latex2jsUtils.RE.coords+_latex2jsUtils.RE.squiggle),rput:/\\rput\((.*),(.*)\)\{(.*)\}/,psset:/\\psset\{(.*)\}/};exports.Expressions=Expressions;var Functions={slider:function slider(t){var e={scalar:1,min:Number(t[2]),max:Number(t[3]),variable:t[4],latex:t[5],value:Number(t[6])};return this.variables=this.variables||{},this.variables[e.variable]=e.value,this.sliders=this.sliders||[],this.sliders.push(e),t[1]&&Object.assign(e,(0,_latex2jsUtils.parseOptions)(t[1])),e},pspicture:function pspicture(t){var e={x0:Number(t[1]),y0:Number(t[2]),x1:Number(t[3]),y1:Number(t[4])},n={w:e.x1-e.x0,h:e.y1-e.y0};return Object.assign(this,e,n),Object.assign(e,n)},psframe:function psframe(t){return{x1:_latex2jsUtils.X.call(this,t[1]),y1:_latex2jsUtils.Y.call(this,t[2]),x2:_latex2jsUtils.X.call(this,t[3]),y2:_latex2jsUtils.Y.call(this,t[4])}},pscircle:function pscircle(t){return{cx:_latex2jsUtils.X.call(this,t[1]),cy:_latex2jsUtils.Y.call(this,t[2]),r:this.xunit*t[3]}},psaxes:function psaxes(t){var e={dx:1*this.xunit,dy:1*this.yunit,arrows:[0,0],dots:[0,0],ticks:"all"};if(t[1]){var n=(0,_latex2jsUtils.parseOptions)(t[1]);n.Dx&&(e.dx=Number(n.Dx)*this.xunit),n.Dy&&(e.dy=Number(n.Dy)*this.yunit)}var i=(0,_latex2jsUtils.parseArrows)(t[2]);return e.arrows=i.arrows,e.dots=i.dots,t[5]&&!t[8]?(e.origin=[_latex2jsUtils.X.call(this,t[3]),_latex2jsUtils.Y.call(this,t[4])],e.bottomLeft=[_latex2jsUtils.X.call(this,t[3]),_latex2jsUtils.Y.call(this,t[4])],e.topRight=[_latex2jsUtils.X.call(this,t[6]),_latex2jsUtils.Y.call(this,t[7])]):t[5]||t[8]?(e.origin=[_latex2jsUtils.X.call(this,t[3]),_latex2jsUtils.Y.call(this,t[4])],e.bottomLeft=[_latex2jsUtils.X.call(this,t[6]),_latex2jsUtils.Y.call(this,t[7])],e.topRight=[_latex2jsUtils.X.call(this,t[9]),_latex2jsUtils.Y.call(this,t[10])]):(e.origin=[_latex2jsUtils.X.call(this,0),_latex2jsUtils.Y.call(this,0)],e.bottomLeft=[_latex2jsUtils.X.call(this,0),_latex2jsUtils.Y.call(this,0)],e.topRight=[_latex2jsUtils.X.call(this,t[3]),_latex2jsUtils.Y.call(this,t[6])]),e},psplot:function psplot(m){var startX=_latex2jsUtils.evaluate.call(this,m[2]),endX=_latex2jsUtils.evaluate.call(this,m[3]),data=[],x,expression="";for(Object.entries(this.variables||{}).forEach((function(t){var e=(0,_slicedToArray2.default)(t,2),n=e[0],i=e[1];expression+="var "+n+" = "+i+";"})),expression+="with (Math){"+m[4]+"}",x=startX;x<=endX;x+=.005)data.push(_latex2jsUtils.X.call(this,x)),data.push(_latex2jsUtils.Y.call(this,eval(expression)));var obj={linecolor:"black",linestyle:"solid",fillstyle:"none",fillcolor:"none",linewidth:2};return m[1]&&Object.assign(obj,(0,_latex2jsUtils.parseOptions)(m[1])),obj.data=data,obj},pspolygon:function pspolygon(t){var e=this,n=t[2];if(n){var i=new RegExp(_latex2jsUtils.RE.coords,"g"),a=n.match(i),s=new RegExp(_latex2jsUtils.RE.coords),u=[];a.forEach((function(t){var n=s.exec(t);u.push(_latex2jsUtils.X.call(e,n[1])),u.push(_latex2jsUtils.Y.call(e,n[2]))}));var c={linecolor:"black",linestyle:"solid",fillstyle:"none",fillcolor:"black",linewidth:2,data:u};return t[1]&&Object.assign(c,(0,_latex2jsUtils.parseOptions)(t[1])),c}},psarc:function psarc(t){var e=(0,_latex2jsUtils.parseArrows)(t[2]),n={linecolor:"black",linestyle:"solid",fillstyle:"solid",fillcolor:"black",linewidth:2,arrows:e.arrows,dots:e.dots,cx:_latex2jsUtils.X.call(this,0),cy:_latex2jsUtils.Y.call(this,0)};return t[1]&&Object.assign(n,(0,_latex2jsUtils.parseOptions)(t[1])),t[3]&&(n.cx=_latex2jsUtils.X.call(this,t[3])),t[4]&&(n.cy=_latex2jsUtils.Y.call(this,t[4])),n.r=Number(t[5])*this.xunit,n.angleA=Number(t[6])*Math.PI/180,n.angleB=Number(t[7])*Math.PI/180,n.A={x:_latex2jsUtils.X.call(this,Number(t[5])*Math.cos(n.angleA)),y:_latex2jsUtils.Y.call(this,Number(t[5])*Math.sin(n.angleA))},n.B={x:_latex2jsUtils.X.call(this,Number(t[5])*Math.cos(n.angleB)),y:_latex2jsUtils.Y.call(this,Number(t[5])*Math.sin(n.angleB))},n},psline:function psline(t){var e=t[1],n=t[2],i=(0,_latex2jsUtils.parseArrows)(n),a={linecolor:"black",linestyle:"solid",fillstyle:"solid",fillcolor:"black",linewidth:2,arrows:i.arrows,dots:i.dots};return t[5]?(a.x1=_latex2jsUtils.X.call(this,t[3]),a.y1=_latex2jsUtils.Y.call(this,t[4]),a.x2=_latex2jsUtils.X.call(this,t[6]),a.y2=_latex2jsUtils.Y.call(this,t[7])):(a.x1=_latex2jsUtils.X.call(this,0),a.y1=_latex2jsUtils.Y.call(this,0),a.x2=_latex2jsUtils.X.call(this,t[3]),a.y2=_latex2jsUtils.Y.call(this,t[4])),e&&Object.assign(a,(0,_latex2jsUtils.parseOptions)(e)),"string"==typeof a.linewidth&&(a.linewidth=2),a},uservariable:function uservariable(m){var options=m[1],coords=[];this.userx&&this.usery?(coords.push(Number(this.userx)),coords.push(Number(this.usery))):(coords.push(_latex2jsUtils.X.call(this,m[3])),coords.push(_latex2jsUtils.Y.call(this,m[4])));var nx1=_latex2jsUtils.Xinv.call(this,coords[0]),ny1=_latex2jsUtils.Yinv.call(this,coords[1]),expx1="var x = "+nx1+";",expy1="var y = "+ny1+";",obj={name:m[2],x:_latex2jsUtils.X.call(this,m[3]),y:_latex2jsUtils.Y.call(this,m[4]),func:m[5],value:eval(expx1+expy1+m[5])};return obj},userline:function userline(m){var _this2=this,options=m[1],lineType=m[2],l=(0,_latex2jsUtils.parseArrows)(lineType),arrows=l.arrows,dots=l.dots,xExp=m[7],yExp=m[8];xExp&&(xExp="with (Math){"+xExp.replace(/^\{/,"").replace(/\}$/,"")+"}"),yExp&&(yExp="with (Math){"+yExp.replace(/^\{/,"").replace(/\}$/,"")+"}");var xExp2=m[9],yExp2=m[10];xExp2&&(xExp2="with (Math){"+xExp2.replace(/^\{/,"").replace(/\}$/,"")+"}"),yExp2&&(yExp2="with (Math){"+yExp2.replace(/^\{/,"").replace(/\}$/,"")+"}");var expression="";Object.entries(this.variables||{}).forEach((function(t){var e=(0,_slicedToArray2.default)(t,2),n=e[0],i=e[1];expression+="var "+n+" = "+i+";"}));var obj={x1:_latex2jsUtils.X.call(this,m[3]),y1:_latex2jsUtils.Y.call(this,m[4]),x2:_latex2jsUtils.X.call(this,m[5]),y2:_latex2jsUtils.Y.call(this,m[6]),xExp,yExp,xExp2,yExp2,userx:function userx(coords){var nx1=_latex2jsUtils.Xinv.call(_this2,coords[0]),ny1=_latex2jsUtils.Yinv.call(_this2,coords[1]),expx1="var x = "+nx1+";",expy1="var y = "+ny1+";";return _latex2jsUtils.X.call(_this2,eval(expression+expy1+expx1+xExp))},usery:function usery(coords){var nx2=_latex2jsUtils.Xinv.call(_this2,coords[0]),ny2=_latex2jsUtils.Yinv.call(_this2,coords[1]),expx2="var x = "+nx2+";",expy2="var y = "+ny2+";";return _latex2jsUtils.Y.call(_this2,eval(expression+expy2+expx2+yExp))},userx2:function userx2(coords){var nx3=_latex2jsUtils.Xinv.call(_this2,coords[0]),ny3=_latex2jsUtils.Yinv.call(_this2,coords[1]),expx3="var x = "+nx3+";",expy3="var y = "+ny3+";";return _latex2jsUtils.X.call(_this2,eval(expression+expy3+expx3+xExp2))},usery2:function usery2(coords){var nx4=_latex2jsUtils.Xinv.call(_this2,coords[0]),ny4=_latex2jsUtils.Yinv.call(_this2,coords[1]),expx4="var x = "+nx4+";",expy4="var y = "+ny4+";";return _latex2jsUtils.Y.call(_this2,eval(expression+expy4+expx4+yExp2))},linecolor:"black",linestyle:"solid",fillstyle:"solid",fillcolor:"black",linewidth:2,arrows,dots};return options&&Object.assign(obj,(0,_latex2jsUtils.parseOptions)(options)),"string"==typeof obj.linewidth&&(obj.linewidth=2),obj},rput:function rput(t){return{x:_latex2jsUtils.X.call(this,t[1]),y:_latex2jsUtils.Y.call(this,t[2]),text:t[3]}},psset:function psset(t){var e=t[1].split(",").map((function(t){return t.split("=")})),n={};return e.forEach((function(t){var e=t[0],i=t[1];Object.keys(_latex2jsSettings.default.Expressions).forEach((function(t){var a=_latex2jsSettings.default.Expressions[t];e.match(a)&&_latex2jsSettings.default.Functions[t](n,i)}))})),n}};exports.Functions=Functions;var _default={Expressions,Functions};exports.default=_default},{"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/slicedToArray":10,"latex2js-settings":124,"latex2js-utils":125}],124:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Functions=n.Expressions=void 0;var i=t("latex2js-utils"),a={fillcolor:/^fillcolor$/,fillstyle:/^fillstyle$/,linecolor:/^linecolor$/,linestyle:/^linestyle$/,unit:/^unit/,runit:/^runit/,xunit:/^xunit/,yunit:/^yunit/};n.Expressions=a;var s={fillcolor:function fillcolor(t,e){t.fillcolor=e},fillstyle:function fillstyle(t,e){t.fillstyle=e},linecolor:function linecolor(t,e){t.linecolor=e},linestyle:function linestyle(t,e){t.linestyle=e},unit:function unit(t,e){e=(0,i.convertUnits)(e),t.unit=e,t.runit=e,t.xunit=e,t.yunit=e},runit:function runit(t,e){e=(0,i.convertUnits)(e),t.runit=e},xunit:function xunit(t,e){e=(0,i.convertUnits)(e),t.xunit=e},yunit:function yunit(t,e){e=(0,i.convertUnits)(e),t.yunit=e}};n.Functions=s;var u={Expressions:a,Functions:s};n.default=u},{"latex2js-utils":125}],125:[function(require,module,exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.Yinv=exports.Y=exports.Xinv=exports.X=exports.evaluate=exports.parseArrows=exports.parseOptions=exports.RE=exports.convertUnits=exports.matchrepl=exports.simplerepl=void 0;var simplerepl=function simplerepl(t,e){return function(n,i){return i.replace(t,e)}};exports.simplerepl=simplerepl;var matchrepl=function matchrepl(t,e){return function(n,i){return Array.isArray(n)&&n.forEach((function(n){var a=n.match(t);i=i.replace(a.input,e(a))})),i}};exports.matchrepl=matchrepl;var convertUnits=function convertUnits(t){var e=null;return(e=t.match(/([^c]+)\s*cm/))?50*Number(e[1]):(e=t.match(/([^i]+)\s*in/))?20*Number(e[1]):(e=t.match(/(.*)/))?50*Number(e[1]):Number(t)};exports.convertUnits=convertUnits;var RE={options:"(\\[[^\\]]*\\])?",type:"(\\{[^\\}]*\\})?",squiggle:"\\{([^\\}]*)\\}",squiggleOpt:"(\\{[^\\}]*\\})?",coordsOpt:"(\\(\\s*([^\\)]*),([^\\)]*)\\s*\\))?",coords:"\\(\\s*([^\\)]*),([^\\)]*)\\s*\\)"};exports.RE=RE;var parseOptions=function parseOptions(t){var e=t.replace(/[\]\[]/g,"").split(","),n={};return e.forEach((function(t){var e=t.split("=");2==e.length&&(n[e[0].trim()]=e[1].trim())})),n};exports.parseOptions=parseOptions;var parseArrows=function parseArrows(t){var e=[0,0],n=[0,0];if(t){var i=t.match(/\{([^\-]*)?\-([^\-]*)?\}/);i&&(i[1]&&(i[1].match(/\*/)?n[0]=1:i[1].match(/)&&(e[0]=1)),i[2]&&(i[2].match(/\*/)?n[1]=1:i[2].match(/>/)&&(e[1]=1)))}return{arrows:e,dots:n}};exports.parseArrows=parseArrows;var evaluate=function evaluate(exp){var _this=this,num=Number(exp);if(isNaN(num)){var expression="";return this.variables=this.variables||{},Object.keys(this.variables).map((function(t){var e=_this.variables[t];expression+="var "+t+" = "+e+";"})),expression+="with (Math){"+exp+"}",eval(expression)}return num};exports.evaluate=evaluate;var X=function X(t){return(this.w-(this.x1-Number(t)))*this.xunit};exports.X=X;var Xinv=function Xinv(t){return Number(t)/this.xunit-this.w+this.x1};exports.Xinv=Xinv;var Y=function Y(t){return(this.y1-Number(t))*this.yunit};exports.Y=Y;var Yinv=function Yinv(t){return this.y1-Number(t)/this.yunit};exports.Yinv=Yinv},{}],126:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("@babel/runtime/helpers/classCallCheck")),s=i(t("@babel/runtime/helpers/createClass")),u=i(t("./lib/text")),c=i(t("./lib/headers")),f=t("latex2js-pstricks"),h=i(t("./lib/environments")),d=i(t("./lib/ignore")),p=i(t("./lib/parser")),g=function(){function LaTeX2HTML5(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.default,p=arguments.length>4&&void 0!==arguments[4]?arguments[4]:f.pstricks,g=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};(0,a.default)(this,LaTeX2HTML5),this.Text=e,this.Headers=n,this.Environments=i,this.Ignore=s,this.PSTricks=p,this.Views=g,this.Delimiters={},i.forEach((function(e){t.addEnvironment(e)}))}return(0,s.default)(LaTeX2HTML5,[{key:"addEnvironment",value:function addEnvironment(t){var e={begin:new RegExp("\\\\begin\\{"+t+"\\}"),end:new RegExp("\\\\end\\{"+t+"\\}")};this.Delimiters[t]=e}},{key:"addView",value:function addView(t,e){this.addEnvironment(t)}},{key:"addText",value:function addText(t,e,n){this.Text.Expressions[t]=e,this.Text.Functions[t]=n}},{key:"addHeaders",value:function addHeaders(t,e,n){var i={},a=t+"begin",s=t+"end";i[a]=new RegExp("\\\\begin\\{"+t+"\\}"),i[s]=new RegExp("\\\\end\\{"+t+"\\}"),Object.assign(this.Headers.Expressions,i);var u={};u[a]=function(){return e||""},u[s]=function(){return n||""},Object.assign(this.Headers.Functions,u)}},{key:"getParser",value:function getParser(){return new p.default(this)}},{key:"parse",value:function parse(t){var e=new p.default(this).parse(t);return e.forEach((function(t){if(!t.hasOwnProperty("type"))throw new Error("no type!")})),e}}]),LaTeX2HTML5}();n.default=g},{"./lib/environments":127,"./lib/headers":128,"./lib/ignore":129,"./lib/parser":130,"./lib/text":131,"@babel/runtime/helpers/classCallCheck":3,"@babel/runtime/helpers/createClass":4,"@babel/runtime/helpers/interopRequireDefault":6,"latex2js-pstricks":121}],127:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=["pspicture","verbatim","enumerate","print","nicebox"]},{}],128:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Functions=n.Expressions=void 0;var i={bq:/\\begin\{quotation\}/,claim:/\\begin\{claim\}/,corollary:/\\begin\{corollary\}/,definition:/\\begin\{definition\}/,endclaim:/\\end\{claim\}/,endcorallary:/\\end\{corallary\}/,enddefinition:/\\end\{definition\}/,endexample:/\\end\{example\}/,endproblem:/\\end\{problem\}/,endsolution:/\\end\{solution\}/,endtheorem:/\\end\{theorem\}/,eq:/\\end\{quotation\}/,example:/\\begin\{example\}/,problem:/\\begin\{problem\}/,proof:/\\begin\{proof\}/,qed:/\\end\{proof\}/,solution:/\\begin\{solution\}/,theorem:/\\begin\{theorem\}/};n.Expressions=i;var a={bq:function bq(){return''},claim:function claim(){return"
Claim "},corollary:function corollary(){return"Corollary "},definition:function definition(){return"Definition "},endclaim:function endclaim(){return""},endcorollary:function endcorollary(){return""},enddefinition:function enddefinition(){return""},endexample:function endexample(){return""},endproblem:function endproblem(){return""},endsolution:function endsolution(){return""},endtheorem:function endtheorem(){return""},eq:function eq(){return""},example:function example(){return"Example "},problem:function problem(){return"Problem "},proof:function proof(){return"Proof "},qed:function qed(){return"$\\qed$"},solution:function solution(){return"Solution "},theorem:function theorem(){return"Theorem "}};n.Functions=a;var s={Expressions:i,Functions:a};n.default=s},{}],129:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default=[/^\%/,/\\begin\{document\}/,/\\end\{document\}/,/\\begin\{interactive\}/,/\\end\{interactive\}/,/\\usepackage/,/\\documentclass/,/\\tableofcontents/,/\\author/,/\\date/,/\\maketitle/,/\\title/,/\\pagestyle/,/\\smallskip/,/\\medskip/,/\\bigskip/,/\\nobreak/,/\\begin\{center\}/,/\\end\{center\}/]},{}],130:[function(t,e,n){var i=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("@babel/runtime/helpers/slicedToArray")),s=i(t("@babel/runtime/helpers/defineProperty"));function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Parser(t){this.Ignore=t.Ignore,this.Delimiters=t.Delimiters,this.Text=t.Text,this.PSTricks=t.PSTricks,this.Headers=t.Headers,this.objects=[],this.environment=null,this.settings=this.PSTricks.Functions.psset.call(this,["","units=1cm,linecolor=black,linestyle=solid,fillstyle=none"])}Parser.prototype={parse:function parse(t){var e=this;if(!t)return{};var n=t.split("\n");return this.parseEnvText(n),this.parseEnv(n),this.objects.forEach((function(t){t.type.match(/pspicture/)&&(t.plot=e.parsePSTricks(t.lines,t.env))})),this.objects},newEnvironment:function newEnvironment(t){this.environment&&this.environment.lines.length&&(this.environment.settings=function _objectSpread(t){for(var e=1;e"))}))},parsePSExpression:function parsePSExpression(t,e,n,i,a){var s=t.match(e);return!!s&&(n[i].push({data:this.PSTricks.Functions[i].call(a,s),env:a,match:s,fn:this.PSTricks.Functions[i]}),!0)},parsePSVariables:function parsePSVariables(t,e,n,i,a){var s=t.match(e);if(s&&i.match(/uservariable/)){var u=this.PSTricks.Functions[i].call(a,s);a.variables=a.variables||{},a.variables[u.name]=u.value}},parsePSTricks:function parsePSTricks(t,e){var n=this,i={},s=Object.entries(this.PSTricks.Expressions);return s.forEach((function(t){var e=(0,a.default)(t,2),n=e[0];e[1];i[n]=[]})),t.forEach((function(t){s.forEach((function(s){var u=(0,a.default)(s,2),c=u[0],f=u[1];n.parsePSVariables(t,f,i,c,e),n.parsePSExpression(t,f,i,c,e)}))})),i},parseTextExpression:function parseTextExpression(t,e,n,i){var a=t.match(e);return a?this.Text.Functions[n].call(this,a,i):i},parseHeadersExpression:function parseHeadersExpression(t,e,n,i){return t.match(e)?this.Headers.Functions[n].call(this):i},parseText:function parseText(t){var e=this,n=t;return Object.entries(this.Text.Expressions).forEach((function(i){var s=(0,a.default)(i,2),u=s[0],c=s[1];n=e.parseTextExpression(t,c,u,n)})),Object.entries(this.Headers.Expressions).forEach((function(i){var s=(0,a.default)(i,2),u=s[0],c=s[1];n=e.parseHeadersExpression(t,c,u,n)})),n}};var u=Parser;n.default=u},{"@babel/runtime/helpers/defineProperty":5,"@babel/runtime/helpers/interopRequireDefault":6,"@babel/runtime/helpers/slicedToArray":10}],131:[function(t,e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Functions=n.Expressions=void 0;var i=t("latex2js-utils"),a={emph:/\\emph\{[^}]*\}/g,bf:/\{*\\bf [^}]*\}/g,rm:/\{*\\rm [^}]*\}/g,sl:/\{*\\sl [^}]*\}/g,it:/\{*\\it [^}]*\}/g,tt:/\{*\\tt [^}]*\}/g,mdash:/---/g,ndash:/--/g,openq:/``/g,closeq:/''/g,TeX:/\\TeX\\|\\TeX/g,LaTeX:/\\LaTeX\\|\\LaTeX/g,vspace:/\\vspace/g,cite:/\\cite\[\d+\]\{[^}]*\}/g,href:/\\href\{[^}]*\}\{[^}]*\}/g,img:/\\img\{[^}]*\}/g,set:/\\set\{[^}]*\}/g,youtube:/\\youtube\{[^}]*\}/g,euler:/Euler\^/g};n.Expressions=a;var s={cite:function cite(t,e){return t.forEach((function(t){var n=t.match(/\\cite\[(\d+)\]\{([^}]*)\}/),i=location.pathname.match(/\/books\/(\d+)\//),a=0;i&&(a=i[1]),e=e.replace(n.input,'[p'+n[1]+"] ")})),e},img:(0,i.matchrepl)(/\\img\{([^}]*)\}/,(function(t){return''})),youtube:(0,i.matchrepl)(/\\youtube\{([^}]*)\}/,(function(t){return'VIDEO
'})),href:(0,i.matchrepl)(/\\href\{([^}]*)\}\{([^}]*)\}/,(function(t){return''+t[2]+" "})),set:(0,i.matchrepl)(/\\set\{([^}]*)\}/,(function(t){return""+t[1]+" "})),euler:(0,i.simplerepl)(/Euler\^/,"exp"),emph:(0,i.matchrepl)(/\{([^}]*)\}/,(function(t){return""+t[1]+" "})),bf:(0,i.matchrepl)(/\{*\\bf ([^}]*)\}/,(function(t){return""+t[1]+" "})),rm:(0,i.matchrepl)(/\{*\\rm ([^}]*)\}/,(function(t){return''+t[1]+" "})),sl:(0,i.matchrepl)(/\{*\\sl ([^}]*)\}/,(function(t){return""+t[1]+" "})),it:(0,i.matchrepl)(/\{*\\it ([^}]*)\}/,(function(t){return""+t[1]+" "})),tt:(0,i.matchrepl)(/\{*\\tt ([^}]*)\}/,(function(t){return''+t[1]+" "})),ndash:(0,i.simplerepl)(/--/g,"–"),mdash:(0,i.simplerepl)(/---/g,"—"),openq:(0,i.simplerepl)(/``/g,"“"),closeq:(0,i.simplerepl)(/''/g,"”"),vspace:(0,i.simplerepl)(/\\vspace/g," "),TeX:(0,i.simplerepl)(/\\TeX\\|\\TeX/g,"$\\TeX$"),LaTeX:(0,i.simplerepl)(/\\LaTeX\\|\\LaTeX/g,"$\\LaTeX$")};n.Functions=s;var u={Expressions:a,Functions:s};n.default=u},{"latex2js-utils":125}]},{},[118])(118)}));
\ No newline at end of file
diff --git a/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-builder.js b/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-builder.js
index 900bdd225..23a118107 100644
--- a/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-builder.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-builder.js
@@ -3,51 +3,51 @@ import{LitElement as t,html as e,css as i}from"../../../lit/index.js";import"./m
display: block;
}
`]}constructor(){super(),this.editControls=!1,this.items=[],this.depthCount=1,this.maxDepth=5,this.isFlex=!1,this.isNested=!1,this.isHorizontal=!1}render(){if(this.depthCount<=this.maxDepth)return e`
-
- ${this.items?this.items.map((t=>e`
- ${t.children.length>0?e`
- 1&&this.isHorizontal}"
- ?is-flex="${this.isFlex}"
- ?is-nested="${this.depthCount>1}"
- ?is-horizontal="${this.isHorizontal}"
- ?published="${this.getPublishedStatus(t)}"
- ?hide-in-menu="${this.hideInMenuStatus(t)}"
- >
-
+ ${this.items?this.items.map((t=>e`
+ ${t.children.length>0?e`
+ 1&&this.isHorizontal}"
?is-flex="${this.isFlex}"
+ ?is-nested="${this.depthCount>1}"
?is-horizontal="${this.isHorizontal}"
- ?is-nested="${!0}"
- >
-
- `:e`
- 1}"
- itemtitle="${t.title}"
- id="${t.id}"
- url="${t.slug}"
- icon="${t.metadata&&t.metadata.icon?t.metadata.icon:""}"
- icon-label="${t.metadata&&t.metadata.pageType?t.metadata.pageType:""}"
- selected="${this.selected}"
- ?published="${this.getPublishedStatus(t)}"
- ?hide-in-menu="${this.hideInMenuStatus(t)}"
- ?locked="${t.metadata.locked}"
- status="${t.metadata.status}"
- >
- `}
- `)):""}
-
- `}hideInMenuStatus(t){return!(!t.metadata||1!=t.metadata.hideInMenu)}getPublishedStatus(t){return!t.metadata||0!=t.metadata.published&&"false"!==t.metadata.published}static get tag(){return"map-menu-builder"}static get properties(){return{items:{type:Array},selected:{type:String},editControls:{type:Boolean,attribute:"edit-controls"},maxDepth:{type:Number,attribute:"max-depth",reflect:!0},depthCount:{type:Number,attribute:"depth-count"},isFlex:{type:Boolean,attribute:"is-flex"},isHorizontal:{type:Boolean,attribute:"is-horizontal"}}}createRenderRoot(){return this}}customElements.define(MapMenuBuilder.tag,MapMenuBuilder);export{MapMenuBuilder};
\ No newline at end of file
+ ?published="${this.getPublishedStatus(t)}"
+ ?hide-in-menu="${this.hideInMenuStatus(t)}"
+ >
+
+
+ `:e`
+ 1}"
+ itemtitle="${t.title}"
+ id="${t.id}"
+ url="${t.slug}"
+ icon="${t.metadata&&t.metadata.icon?t.metadata.icon:""}"
+ icon-label="${t.metadata&&t.metadata.pageType?t.metadata.pageType:""}"
+ selected="${this.selected}"
+ ?published="${this.getPublishedStatus(t)}"
+ ?hide-in-menu="${this.hideInMenuStatus(t)}"
+ ?locked="${t.metadata.locked}"
+ status="${t.metadata.status}"
+ >
+ `}
+ `)):""}
+
+ `}hideInMenuStatus(t){return!(!t.metadata||1!=t.metadata.hideInMenu)}getPublishedStatus(t){return!t.metadata||0!=t.metadata.published&&"false"!==t.metadata.published}static get tag(){return"map-menu-builder"}static get properties(){return{items:{type:Array},selected:{type:String},editControls:{type:Boolean,attribute:"edit-controls"},maxDepth:{type:Number,attribute:"max-depth",reflect:!0},depthCount:{type:Number,attribute:"depth-count"},isFlex:{type:Boolean,attribute:"is-flex"},isHorizontal:{type:Boolean,attribute:"is-horizontal"}}}createRenderRoot(){return this}}customElements.define(MapMenuBuilder.tag,MapMenuBuilder);export{MapMenuBuilder};
\ No newline at end of file
diff --git a/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-header.js b/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-header.js
index 5b36c6a8b..95f4baa78 100644
--- a/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-header.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-header.js
@@ -28,9 +28,12 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
var(--map-menu-item-a-color, inherit)
);
font-weight: var(--map-menu-item-button-active-font-weight, bold);
- text-decoration: var(--map-menu-active-item-text-decoration, var(--map-menu-header-a-text-decoration-hover, none));
+ text-decoration: var(
+ --map-menu-active-item-text-decoration,
+ var(--map-menu-header-a-text-decoration-hover, none)
+ );
background-color: var(--map-menu-item-a-active-background-color);
- border-radius: var(--map-menu-item-border-radius, 4px);
+ border-radius: var(--map-menu-item-border-radius, 0px);
}
:host([hovered]) button,
a:hover button,
@@ -42,7 +45,7 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
);
text-decoration: var(--map-menu-header-a-text-decoration-hover, none);
background-color: var(--map-menu-item-a-active-background-color);
- border-radius: var(--map-menu-item-border-radius, 4px);
+ border-radius: var(--map-menu-item-border-radius, 0px);
}
#link {
@@ -126,7 +129,6 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
}
:host(:not([icon=""])) button {
padding-left: 0;
- padding: var(--map-menu-header-button-padding);
}
.ops {
position: absolute;
diff --git a/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-item.js b/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-item.js
index ce1124d45..d7d4d6b30 100644
--- a/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-item.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-item.js
@@ -38,20 +38,24 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
color: var(--map-menu-item-a-color, inherit);
text-decoration: var(--map-menu-item-a-text-decoration, none);
}
- :host([active]) button, :host([active]) a button {
+ :host([active]) button,
+ :host([active]) a button {
color: var(
--map-menu-item-a-active-color,
var(--map-menu-item-a-color, inherit)
);
font-weight: var(--map-menu-item-button-active-font-weight, bold);
- text-decoration: var(--map-menu-active-item-text-decoration, var(--map-menu-header-a-text-decoration-hover, none));
+ text-decoration: var(
+ --map-menu-active-item-text-decoration,
+ var(--map-menu-header-a-text-decoration-hover, none)
+ );
background-color: var(
--map-menu-item-a-active-background-color,
black
);
- border-radius: var(--map-menu-item-border-radius, 4px);
+ border-radius: var(--map-menu-item-border-radius, 0px);
}
-
+
a:hover button,
a:active button,
a:focus button {
@@ -64,7 +68,7 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
--map-menu-item-a-active-background-color,
black
);
- border-radius: var(--map-menu-item-border-radius, 4px);
+ border-radius: var(--map-menu-item-border-radius, 0px);
}
button {
cursor: pointer;
diff --git a/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-submenu.js b/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-submenu.js
index f165a8c60..bdf51c9f2 100644
--- a/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-submenu.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-submenu.js
@@ -24,7 +24,10 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"./m
--simple-tooltip-margin: 0 -36px 0 0;
}
:host([is-flex]) a11y-collapse {
- --a11y-collapse-transition-duration: var(--a11y-collapse-transition-duration, 0.15s);
+ --a11y-collapse-transition-duration: var(
+ --a11y-collapse-transition-duration,
+ 0.15s
+ );
}
:host([is-flex][is-nested]) a11y-collapse {
--a11y-collapse-transition-duration: 0s;
@@ -55,7 +58,7 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"./m
var(--map-menu-item-a-active-background-color, black);
}
- :host([is-nested]) a11y-collapse::before,
+ :host([is-nested]) a11y-collapse::before,
:host([is-nested]) #container ::slotted(map-menu-builder)::after {
border-bottom: 0;
}
@@ -83,10 +86,10 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"./m
color: var(--map-menu-item-icon-active-color, black);
background-color: var(--map-menu-container-background-color, white);
}
- :host([is-flex][is-nested]) a11y-collapse::part(icon){
+ :host([is-flex][is-nested]) a11y-collapse::part(icon) {
display: none;
}
- :host([is-flex][is-nested]) map-menu-header::part(icon){
+ :host([is-flex][is-nested]) map-menu-header::part(icon) {
display: none;
}
`]}constructor(){super(),this.editControls=!1,this.iconLabel=null,this.opened=!1,this.collapsable=!0,this.isFlex=!1,this.isNested=!1,this.isHorizontal=!1,this.expandChildren=!1,this.hovered=!1,this.active=!1,this.label="",this.status="",this.itemtitle="",this.locked=!1,this.published=!0,this.hideInMenu=!1,this.icon=null,this.__icon="",setTimeout((()=>{this.addEventListener("active-item",this.__activeChanged.bind(this)),this.addEventListener("toggle-header",this.__toggleHeader.bind(this)),this.addEventListener("link-clicked",this._headerClickHandler.bind(this)),this.addEventListener("map-menu-item-hidden-check",this._mapMenuItemHiddenCheckHandler.bind(this)),this.addEventListener("focusin",this.__active.bind(this)),this.addEventListener("focusout",this.__deactive.bind(this)),this.addEventListener("mouseover",this.__active.bind(this)),this.addEventListener("mouseleave",this.__deactive.bind(this))}),0)}__active(e){this.hovered=!0,"mouseover"==e.type&&this.isHorizontal&&!this.isNested&&0==this.opened&&(this.opened=!0)}__deactive(e){this.hovered=!1,"mouseleave"==e.type&&this.isHorizontal&&!this.isNested&&1==this.opened&&(this.opened=!1)}__alignCollapseState(e){e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation(),this.opened=e.detail.expanded,this.isHorizontal&&this.dispatchEvent(new CustomEvent("opened-changed",{bubbles:!0,cancelable:!0,composed:!0}))}render(){return t`
diff --git a/cdn/build/es6/node_modules/@haxtheweb/map-menu/map-menu.js b/cdn/build/es6/node_modules/@haxtheweb/map-menu/map-menu.js
index d24a9ee69..d086d3b2b 100644
--- a/cdn/build/es6/node_modules/@haxtheweb/map-menu/map-menu.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/map-menu/map-menu.js
@@ -17,10 +17,13 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
opacity: 1;
background-color: transparent;
}
- :host([is-flex]){
+ :host([is-flex]) {
--map-menu-after-width: 0px;
--map-menu-active-item-text-decoration: none;
- --a11y-collapse-transition-duration: var(--map-menu-flex-transition-duration, 0.15s);
+ --a11y-collapse-transition-duration: var(
+ --map-menu-flex-transition-duration,
+ 0.15s
+ );
z-index: 100;
}
@@ -72,8 +75,14 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
color: var(--map-menu-layer-1-font-color);
padding: var(--map-menu-layer-1-padding);
margin: var(--map-menu-layer-1-margin, 0 auto);
- --a11y-collapse-icon-position: var(--map-menu-layer-1-icon-position, static);
- --map-menu-text-transform: var(--map-menu-layer-1-text-transform, uppercase);
+ --a11y-collapse-icon-position: var(
+ --map-menu-layer-1-icon-position,
+ static
+ );
+ --map-menu-text-transform: var(
+ --map-menu-layer-1-text-transform,
+ uppercase
+ );
}
:host([is-flex][is-horizontal]) map-menu-builder map-menu-item,
@@ -82,13 +91,23 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
color: var(--map-menu-layer-1-font-color);
--map-menu-font-weight: var(--map-menu-layer-1-font-weight, 500);
- border-bottom: var(--map-menu-layer-1-bottom-border, 4px transparent solid);
+ border-bottom: var(
+ --map-menu-layer-1-bottom-border,
+ 4px transparent solid
+ );
}
:host([is-flex][is-horizontal]) map-menu-builder map-menu-submenu:hover,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-submenu:active,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-submenu:focus {
- border-bottom: var(--map-menu-layer-1-bottom-border-active, 4px transparent solid);
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-submenu:active,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-submenu:focus {
+ border-bottom: var(
+ --map-menu-layer-1-bottom-border-active,
+ 4px transparent solid
+ );
}
/* Layer 2 */
@@ -96,12 +115,12 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
position: static;
}
- :host([is-flex]) map-menu-builder map-menu-builder .wrapper{
+ :host([is-flex]) map-menu-builder map-menu-builder .wrapper {
padding: 0;
margin: 0 12px;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder {
+ :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder {
position: absolute;
left: 0;
width: 100%;
@@ -111,7 +130,10 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
background-color: var(--map-menu-layer-2-background-color, white);
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder .wrapper{
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ .wrapper {
background-color: transparent;
max-width: 100%;
display: grid;
@@ -140,12 +162,24 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
color: var(--map-menu-layer-2-font-color, #262626);
--map-menu-header-button-padding: 10px 20px;
--map-menu-header-title-margin: 0;
- --map-menu-item-a-active-color: var(--map-menu-layer-2-active-color, #262626);
- --map-menu-text-transform: var(--map-menu-layer-2-text-transform, uppercase);
+ --map-menu-item-a-active-color: var(
+ --map-menu-layer-2-active-color,
+ #262626
+ );
+ --map-menu-text-transform: var(
+ --map-menu-layer-2-text-transform,
+ uppercase
+ );
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-item,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-item,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu {
border: none;
margin: none;
display: flex;
@@ -153,28 +187,57 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
flex-wrap: nowrap;
color: var(--map-menu-layer-2-font-color, #001e44);
- --map-menu-item-a-active-color: var(--map-menu-layer-2-active-color, #262626);
- --map-menu-text-transform: var(--map-menu-layer-2-text-transform, uppercase);
+ --map-menu-item-a-active-color: var(
+ --map-menu-layer-2-active-color,
+ #262626
+ );
+ --map-menu-text-transform: var(
+ --map-menu-layer-2-text-transform,
+ uppercase
+ );
--map-menu-font-weight: var(--map-menu-layer-2-font-weight, 700);
}
-
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu {
+
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu {
order: 0;
grid-row-end: span 20;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-item:nth-child(n+10) {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-item:nth-child(n + 10) {
display: none;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu ~ map-menu-item {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu
+ ~ map-menu-item {
align-self: start;
order: 1;
grid-auto-flow: row;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu:hover,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu:active,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu:focus {
- border-bottom: var(--map-menu-layer-2-bottom-border-active, var(--map-menu-layer-1-bottom-border-active, none));
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:hover,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:active,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:focus {
+ border-bottom: var(
+ --map-menu-layer-2-bottom-border-active,
+ var(--map-menu-layer-1-bottom-border-active, none)
+ );
}
/* Layer 3 */
@@ -183,19 +246,30 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
background-color: transparent;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder {
position: relative;
margin: 0;
padding: 0;
}
- :host([is-flex]) map-menu-builder map-menu-builder map-menu-builder .wrapper {
+ :host([is-flex])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ .wrapper {
display: inline-flex;
flex-direction: column;
flex-wrap: wrap;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder .wrapper {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ .wrapper {
border-left: none;
margin: 0;
padding: 0;
@@ -214,24 +288,64 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
margin-left: calc(var(--map-menu-gap) + 2px);
}
- :host([is-flex]) map-menu-builder map-menu-builder map-menu-builder map-menu-item,
- :host([is-flex]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu {
+ :host([is-flex])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-item,
+ :host([is-flex])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu {
border: none;
--map-menu-header-button-padding: 10px 20px;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-item,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu {
- --map-menu-text-transform: var(--map-menu-layer-3-text-transform, none);
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-item,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu {
+ --map-menu-text-transform: var(
+ --map-menu-layer-3-text-transform,
+ none
+ );
--map-menu-font-weight: var(--map-menu-layer-3-font-weight, 400);
- --map-menu-header-a-text-decoration-hover: var(--map-menu-layer-3-text-decoration, none);
- --map-menu-item-a-active-background-color: var(--map-menu-layer-3-active-background-color,#f2f2f4)
+ --map-menu-header-a-text-decoration-hover: var(
+ --map-menu-layer-3-text-decoration,
+ none
+ );
+ --map-menu-item-a-active-background-color: var(
+ --map-menu-layer-3-active-background-color,
+ #f2f2f4
+ );
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu:hover,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu:active,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu:focus {
- border-bottom: var(--map-menu-layer-3-bottom-border-active, var(--map-menu-layer-2-bottom-border-active, none));
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:hover,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:active,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:focus {
+ border-bottom: var(
+ --map-menu-layer-3-bottom-border-active,
+ var(--map-menu-layer-2-bottom-border-active, none)
+ );
}
/* Layer 4 */
@@ -249,12 +363,14 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
var(--map-menu-item-a-active-background-color, black);
margin-left: calc(var(--map-menu-gap) + 2px);
}
- :host([is-flex]) map-menu-builder
+ :host([is-flex])
+ map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
map-menu-item,
- :host([is-flex]) map-menu-builder
+ :host([is-flex])
+ map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
@@ -280,13 +396,15 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
var(--map-menu-item-a-active-background-color, black);
margin-left: calc(var(--map-menu-gap) + 2px);
}
- :host([is-flex]) map-menu-builder
+ :host([is-flex])
+ map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
map-menu-item,
- :host([is-flex]) map-menu-builder
+ :host([is-flex])
+ map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
diff --git a/cdn/build/es6/node_modules/@haxtheweb/polaris-theme/lib/polaris-flex-theme.js b/cdn/build/es6/node_modules/@haxtheweb/polaris-theme/lib/polaris-flex-theme.js
index 9b6f4ca5a..3dcf6a2b4 100644
--- a/cdn/build/es6/node_modules/@haxtheweb/polaris-theme/lib/polaris-flex-theme.js
+++ b/cdn/build/es6/node_modules/@haxtheweb/polaris-theme/lib/polaris-flex-theme.js
@@ -43,10 +43,12 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
:host([edit-mode]) {
/* react to the screen shifting left to right on edit mode w/ tray direction */
- margin: var(--hax-tray-element-align-margin, 0 0 0 calc(
- var(--hax-tray-width) - var(--hax-tray-menubar-min-width)
- ));
- transition: margin .6s ease-in-out;
+ margin: var(
+ --hax-tray-element-align-margin,
+ 0 0 0
+ calc(var(--hax-tray-width) - var(--hax-tray-menubar-min-width))
+ );
+ transition: margin 0.6s ease-in-out;
}
:host([is-safari]) {
background-color: var(--ddd-accent-6);
@@ -60,9 +62,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
right: 0px;
bottom: 0px;
z-index: 10000;
- --scroll-button-background-color: var(
- --polaris-nav-bg-color
- );
+ --scroll-button-background-color: var(--polaris-nav-bg-color);
--simple-icon-width: 32px;
--simple-icon-height: 32px;
--simple-icon-button-border-radius: none;
@@ -104,11 +104,11 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
padding: 0 0 var(--ddd-spacing-12);
}
- article > *:not(polaris-media-banner){
+ article > *:not(polaris-media-banner) {
padding: 0 var(--polaris-standard-padding);
}
- site-breadcrumb{
+ site-breadcrumb {
padding: var(--ddd-spacing-12) 0 0;
}
@@ -136,19 +136,22 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
padding-bottom: var(--ddd-spacing-2);
}
- .header-links, .header-links p {
+ .header-links,
+ .header-links p {
display: inline-flex;
margin: 0;
align-items: center;
column-gap: var(--ddd-spacing-5);
}
- .header-links a, site-title {
+ .header-links a,
+ site-title {
color: var(--polaris-nav-color);
font-weight: var(--ddd-font-weight-regular);
}
- .header-links a:hover, site-title:hover {
+ .header-links a:hover,
+ site-title:hover {
text-decoration: underline;
}
@@ -193,8 +196,10 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
--map-menu-layer-1-margin: 0 var(--ddd-spacing-9) 0 0;
--map-menu-layer-1-font-color: var(--polaris-nav-color);
- --map-menu-layer-1-bottom-border-active: var(--ddd-border-size-lg) solid var(--ddd-theme-default-pughBlue);
- --map-menu-layer-2-horizontal-padding: 0 var(--polaris-standard-padding);
+ --map-menu-layer-1-bottom-border-active: var(--ddd-border-size-lg)
+ solid var(--ddd-theme-default-pughBlue);
+ --map-menu-layer-2-horizontal-padding: 0
+ var(--polaris-standard-padding);
--map-menu-layer-2-active-color: var(--ddd-theme-default-nittanyNavy);
--map-menu-layer-2-font-weight: var(--ddd-font-weight-medium);
--map-menu-layer-2-bottom-border-active: none;
@@ -223,7 +228,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
background-color: var(--ddd-theme-default-nittanyNavy);
color: white;
clear: both;
-
+
padding: var(--ddd-spacing-10) 0;
}
@@ -253,7 +258,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
row-gap: var(--ddd-spacing-2);
}
- .footer-secondary-slot ul li{
+ .footer-secondary-slot ul li {
font-size: 20px;
font-family: var(--ddd-font-navigation);
font-weight: var(--ddd-font-weight-medium);
@@ -325,19 +330,18 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 0;
}
- .footer-primary-slot p:first-of-type{
+ .footer-primary-slot p:first-of-type {
display: flex;
column-gap: var(--ddd-spacing-5);
}
/* Theme Responsive Section */
- :host([responsive-size="md"]){
+ :host([responsive-size="md"]) {
site-menu {
--map-menu-layer-1-margin: 0 var(--ddd-spacing-8) 0 0;
--map-menu-layer-2-horizontal-padding: 0 var(--polaris-md-padding);
--map-menu-item-button-padding: 10px 0 10px 20px;
-
}
.footer-secondary .wrap {
max-width: 920px;
@@ -345,7 +349,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
}
}
- :host([responsive-size="sm"]){
+ :host([responsive-size="sm"]) {
.header-links {
display: none;
}
@@ -361,26 +365,32 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 15px 0;
width: 156px;
}
- site-modal{
+ site-modal {
padding: 6px 0;
}
site-menu {
- --map-menu-item-icon-active-color: var(--ddd-theme-default-nittanyNavy);
- --site-menu-container-background-color: var(--ddd-theme-default-white);
+ --map-menu-item-icon-active-color: var(
+ --ddd-theme-default-nittanyNavy
+ );
+ --site-menu-container-background-color: var(
+ --ddd-theme-default-white
+ );
--map-menu-parent-background-color: var(--ddd-theme-default-white);
--a11y-collapse-icon-position: static;
--map-menu-width: 100%;
--map-menu-parent-padding: 40px 0px 128px;
- --map-menu-layer-1-margin: 0px 128px;
-
+ --map-menu-layer-1-margin: 0px 128px;
+
--map-menu-layer-1-font-color: var(--ddd-theme-default-nittanyNavy);
- --map-menu-item-a-active-color: var(--ddd-theme-default-nittanyNavy);
+ --map-menu-item-a-active-color: var(
+ --ddd-theme-default-nittanyNavy
+ );
--map-menu-layer-2-active-color: #262626;
--map-menu-layer-2-text-transform: none;
}
- #haxcmsmobilemenubutton{
+ #haxcmsmobilemenubutton {
display: inline;
}
@@ -398,7 +408,8 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 0 auto;
padding: 0;
}
- .footer-secondary-contact, .footer-secondary-media {
+ .footer-secondary-contact,
+ .footer-secondary-media {
padding: 0;
margin: 0 auto;
text-align: center;
@@ -409,10 +420,11 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
.footer-secondary-media {
max-width: 60%;
}
- .footer-secondary-media p, .footer-secondary-media li {
+ .footer-secondary-media p,
+ .footer-secondary-media li {
text-align: left;
}
- .footer-primary {
+ .footer-primary {
text-align: center;
justify-content: center;
}
@@ -425,10 +437,14 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
}
}
- :host([responsive-size="xs"]){
+ :host([responsive-size="xs"]) {
site-menu {
- --map-menu-item-icon-active-color: var(--ddd-theme-default-nittanyNavy);
- --site-menu-container-background-color: var(--ddd-theme-default-white);
+ --map-menu-item-icon-active-color: var(
+ --ddd-theme-default-nittanyNavy
+ );
+ --site-menu-container-background-color: var(
+ --ddd-theme-default-white
+ );
--map-menu-parent-background-color: var(--ddd-theme-default-white);
--a11y-collapse-icon-position: static;
@@ -437,7 +453,9 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
--map-menu-layer-1-margin: 0px var(--polaris-xs-padding);
--map-menu-layer-1-font-color: var(--ddd-theme-default-nittanyNavy);
- --map-menu-item-a-active-color: var(--ddd-theme-default-nittanyNavy);
+ --map-menu-item-a-active-color: var(
+ --ddd-theme-default-nittanyNavy
+ );
--map-menu-layer-2-active-color: #262626;
--map-menu-layer-2-text-transform: none;
}
@@ -459,7 +477,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 15px 0;
width: 146px;
}
- #haxcmsmobilemenubutton{
+ #haxcmsmobilemenubutton {
display: inline;
}
polaris-media-banner {
@@ -475,7 +493,8 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 0 auto;
padding: 0;
}
- .footer-secondary-contact, .footer-secondary-media {
+ .footer-secondary-contact,
+ .footer-secondary-media {
padding: 0;
margin: 0 auto;
text-align: center;
@@ -486,10 +505,11 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
.footer-secondary-media {
max-width: 75%;
}
- .footer-secondary-media p, .footer-secondary-media li {
+ .footer-secondary-media p,
+ .footer-secondary-media li {
text-align: left;
}
- .footer-primary{
+ .footer-primary {
text-align: center;
justify-content: center;
}
@@ -501,9 +521,9 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 0 auto;
}
}
- :host([responsive-size="sm"]:not([menu-open])),
- :host([responsive-size="xs"]:not([menu-open])){
- site-menu{
+ :host([responsive-size="sm"]:not([menu-open])),
+ :host([responsive-size="xs"]:not([menu-open])) {
+ site-menu {
display: none;
}
}
@@ -632,54 +652,51 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
display: inline-flex;
}
`]}firstUpdated(e){super.firstUpdated(e),this.HAXCMSThemeSettings.scrollTarget=this.shadowRoot.querySelector("#main"),globalThis.AbsolutePositionStateManager.requestAvailability().scrollTarget=this.HAXCMSThemeSettings.scrollTarget,this.shadowRoot.querySelector("scroll-button").target=this.shadowRoot.querySelector("#main")}renderBrandMark(){return e`
-
+
`}renderHeaderSlot(){return e``}renderSideBar(){return e``}renderFooterContactInformation(){return e``}renderFooterSecondarySlot(){return e``}renderFooterPrimarySlot(){return e``}render(){return e`
@@ -704,20 +721,19 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
+ `}hideInMenuStatus(t){return!(!t.metadata||1!=t.metadata.hideInMenu)}getPublishedStatus(t){return!t.metadata||0!=t.metadata.published&&"false"!==t.metadata.published}static get tag(){return"map-menu-builder"}static get properties(){return{items:{type:Array},selected:{type:String},editControls:{type:Boolean,attribute:"edit-controls"},maxDepth:{type:Number,attribute:"max-depth",reflect:!0},depthCount:{type:Number,attribute:"depth-count"},isFlex:{type:Boolean,attribute:"is-flex"},isHorizontal:{type:Boolean,attribute:"is-horizontal"}}}createRenderRoot(){return this}}customElements.define(MapMenuBuilder.tag,MapMenuBuilder);export{MapMenuBuilder};
\ No newline at end of file
diff --git a/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-header.js b/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-header.js
index 5b36c6a8b..95f4baa78 100644
--- a/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-header.js
+++ b/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-header.js
@@ -28,9 +28,12 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
var(--map-menu-item-a-color, inherit)
);
font-weight: var(--map-menu-item-button-active-font-weight, bold);
- text-decoration: var(--map-menu-active-item-text-decoration, var(--map-menu-header-a-text-decoration-hover, none));
+ text-decoration: var(
+ --map-menu-active-item-text-decoration,
+ var(--map-menu-header-a-text-decoration-hover, none)
+ );
background-color: var(--map-menu-item-a-active-background-color);
- border-radius: var(--map-menu-item-border-radius, 4px);
+ border-radius: var(--map-menu-item-border-radius, 0px);
}
:host([hovered]) button,
a:hover button,
@@ -42,7 +45,7 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
);
text-decoration: var(--map-menu-header-a-text-decoration-hover, none);
background-color: var(--map-menu-item-a-active-background-color);
- border-radius: var(--map-menu-item-border-radius, 4px);
+ border-radius: var(--map-menu-item-border-radius, 0px);
}
#link {
@@ -126,7 +129,6 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
}
:host(:not([icon=""])) button {
padding-left: 0;
- padding: var(--map-menu-header-button-padding);
}
.ops {
position: absolute;
diff --git a/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-item.js b/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-item.js
index ce1124d45..d7d4d6b30 100644
--- a/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-item.js
+++ b/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-item.js
@@ -38,20 +38,24 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
color: var(--map-menu-item-a-color, inherit);
text-decoration: var(--map-menu-item-a-text-decoration, none);
}
- :host([active]) button, :host([active]) a button {
+ :host([active]) button,
+ :host([active]) a button {
color: var(
--map-menu-item-a-active-color,
var(--map-menu-item-a-color, inherit)
);
font-weight: var(--map-menu-item-button-active-font-weight, bold);
- text-decoration: var(--map-menu-active-item-text-decoration, var(--map-menu-header-a-text-decoration-hover, none));
+ text-decoration: var(
+ --map-menu-active-item-text-decoration,
+ var(--map-menu-header-a-text-decoration-hover, none)
+ );
background-color: var(
--map-menu-item-a-active-background-color,
black
);
- border-radius: var(--map-menu-item-border-radius, 4px);
+ border-radius: var(--map-menu-item-border-radius, 0px);
}
-
+
a:hover button,
a:active button,
a:focus button {
@@ -64,7 +68,7 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"../
--map-menu-item-a-active-background-color,
black
);
- border-radius: var(--map-menu-item-border-radius, 4px);
+ border-radius: var(--map-menu-item-border-radius, 0px);
}
button {
cursor: pointer;
diff --git a/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-submenu.js b/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-submenu.js
index f165a8c60..bdf51c9f2 100644
--- a/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-submenu.js
+++ b/haxcms/build/es6/node_modules/@haxtheweb/map-menu/lib/map-menu-submenu.js
@@ -24,7 +24,10 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"./m
--simple-tooltip-margin: 0 -36px 0 0;
}
:host([is-flex]) a11y-collapse {
- --a11y-collapse-transition-duration: var(--a11y-collapse-transition-duration, 0.15s);
+ --a11y-collapse-transition-duration: var(
+ --a11y-collapse-transition-duration,
+ 0.15s
+ );
}
:host([is-flex][is-nested]) a11y-collapse {
--a11y-collapse-transition-duration: 0s;
@@ -55,7 +58,7 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"./m
var(--map-menu-item-a-active-background-color, black);
}
- :host([is-nested]) a11y-collapse::before,
+ :host([is-nested]) a11y-collapse::before,
:host([is-nested]) #container ::slotted(map-menu-builder)::after {
border-bottom: 0;
}
@@ -83,10 +86,10 @@ import{LitElement as e,html as t,css as i}from"../../../lit/index.js";import"./m
color: var(--map-menu-item-icon-active-color, black);
background-color: var(--map-menu-container-background-color, white);
}
- :host([is-flex][is-nested]) a11y-collapse::part(icon){
+ :host([is-flex][is-nested]) a11y-collapse::part(icon) {
display: none;
}
- :host([is-flex][is-nested]) map-menu-header::part(icon){
+ :host([is-flex][is-nested]) map-menu-header::part(icon) {
display: none;
}
`]}constructor(){super(),this.editControls=!1,this.iconLabel=null,this.opened=!1,this.collapsable=!0,this.isFlex=!1,this.isNested=!1,this.isHorizontal=!1,this.expandChildren=!1,this.hovered=!1,this.active=!1,this.label="",this.status="",this.itemtitle="",this.locked=!1,this.published=!0,this.hideInMenu=!1,this.icon=null,this.__icon="",setTimeout((()=>{this.addEventListener("active-item",this.__activeChanged.bind(this)),this.addEventListener("toggle-header",this.__toggleHeader.bind(this)),this.addEventListener("link-clicked",this._headerClickHandler.bind(this)),this.addEventListener("map-menu-item-hidden-check",this._mapMenuItemHiddenCheckHandler.bind(this)),this.addEventListener("focusin",this.__active.bind(this)),this.addEventListener("focusout",this.__deactive.bind(this)),this.addEventListener("mouseover",this.__active.bind(this)),this.addEventListener("mouseleave",this.__deactive.bind(this))}),0)}__active(e){this.hovered=!0,"mouseover"==e.type&&this.isHorizontal&&!this.isNested&&0==this.opened&&(this.opened=!0)}__deactive(e){this.hovered=!1,"mouseleave"==e.type&&this.isHorizontal&&!this.isNested&&1==this.opened&&(this.opened=!1)}__alignCollapseState(e){e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation(),this.opened=e.detail.expanded,this.isHorizontal&&this.dispatchEvent(new CustomEvent("opened-changed",{bubbles:!0,cancelable:!0,composed:!0}))}render(){return t`
diff --git a/haxcms/build/es6/node_modules/@haxtheweb/map-menu/map-menu.js b/haxcms/build/es6/node_modules/@haxtheweb/map-menu/map-menu.js
index d24a9ee69..d086d3b2b 100644
--- a/haxcms/build/es6/node_modules/@haxtheweb/map-menu/map-menu.js
+++ b/haxcms/build/es6/node_modules/@haxtheweb/map-menu/map-menu.js
@@ -17,10 +17,13 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
opacity: 1;
background-color: transparent;
}
- :host([is-flex]){
+ :host([is-flex]) {
--map-menu-after-width: 0px;
--map-menu-active-item-text-decoration: none;
- --a11y-collapse-transition-duration: var(--map-menu-flex-transition-duration, 0.15s);
+ --a11y-collapse-transition-duration: var(
+ --map-menu-flex-transition-duration,
+ 0.15s
+ );
z-index: 100;
}
@@ -72,8 +75,14 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
color: var(--map-menu-layer-1-font-color);
padding: var(--map-menu-layer-1-padding);
margin: var(--map-menu-layer-1-margin, 0 auto);
- --a11y-collapse-icon-position: var(--map-menu-layer-1-icon-position, static);
- --map-menu-text-transform: var(--map-menu-layer-1-text-transform, uppercase);
+ --a11y-collapse-icon-position: var(
+ --map-menu-layer-1-icon-position,
+ static
+ );
+ --map-menu-text-transform: var(
+ --map-menu-layer-1-text-transform,
+ uppercase
+ );
}
:host([is-flex][is-horizontal]) map-menu-builder map-menu-item,
@@ -82,13 +91,23 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
color: var(--map-menu-layer-1-font-color);
--map-menu-font-weight: var(--map-menu-layer-1-font-weight, 500);
- border-bottom: var(--map-menu-layer-1-bottom-border, 4px transparent solid);
+ border-bottom: var(
+ --map-menu-layer-1-bottom-border,
+ 4px transparent solid
+ );
}
:host([is-flex][is-horizontal]) map-menu-builder map-menu-submenu:hover,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-submenu:active,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-submenu:focus {
- border-bottom: var(--map-menu-layer-1-bottom-border-active, 4px transparent solid);
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-submenu:active,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-submenu:focus {
+ border-bottom: var(
+ --map-menu-layer-1-bottom-border-active,
+ 4px transparent solid
+ );
}
/* Layer 2 */
@@ -96,12 +115,12 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
position: static;
}
- :host([is-flex]) map-menu-builder map-menu-builder .wrapper{
+ :host([is-flex]) map-menu-builder map-menu-builder .wrapper {
padding: 0;
margin: 0 12px;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder {
+ :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder {
position: absolute;
left: 0;
width: 100%;
@@ -111,7 +130,10 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
background-color: var(--map-menu-layer-2-background-color, white);
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder .wrapper{
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ .wrapper {
background-color: transparent;
max-width: 100%;
display: grid;
@@ -140,12 +162,24 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
color: var(--map-menu-layer-2-font-color, #262626);
--map-menu-header-button-padding: 10px 20px;
--map-menu-header-title-margin: 0;
- --map-menu-item-a-active-color: var(--map-menu-layer-2-active-color, #262626);
- --map-menu-text-transform: var(--map-menu-layer-2-text-transform, uppercase);
+ --map-menu-item-a-active-color: var(
+ --map-menu-layer-2-active-color,
+ #262626
+ );
+ --map-menu-text-transform: var(
+ --map-menu-layer-2-text-transform,
+ uppercase
+ );
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-item,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-item,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu {
border: none;
margin: none;
display: flex;
@@ -153,28 +187,57 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
flex-wrap: nowrap;
color: var(--map-menu-layer-2-font-color, #001e44);
- --map-menu-item-a-active-color: var(--map-menu-layer-2-active-color, #262626);
- --map-menu-text-transform: var(--map-menu-layer-2-text-transform, uppercase);
+ --map-menu-item-a-active-color: var(
+ --map-menu-layer-2-active-color,
+ #262626
+ );
+ --map-menu-text-transform: var(
+ --map-menu-layer-2-text-transform,
+ uppercase
+ );
--map-menu-font-weight: var(--map-menu-layer-2-font-weight, 700);
}
-
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu {
+
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu {
order: 0;
grid-row-end: span 20;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-item:nth-child(n+10) {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-item:nth-child(n + 10) {
display: none;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu ~ map-menu-item {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu
+ ~ map-menu-item {
align-self: start;
order: 1;
grid-auto-flow: row;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu:hover,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu:active,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-submenu:focus {
- border-bottom: var(--map-menu-layer-2-bottom-border-active, var(--map-menu-layer-1-bottom-border-active, none));
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:hover,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:active,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:focus {
+ border-bottom: var(
+ --map-menu-layer-2-bottom-border-active,
+ var(--map-menu-layer-1-bottom-border-active, none)
+ );
}
/* Layer 3 */
@@ -183,19 +246,30 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
background-color: transparent;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder {
position: relative;
margin: 0;
padding: 0;
}
- :host([is-flex]) map-menu-builder map-menu-builder map-menu-builder .wrapper {
+ :host([is-flex])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ .wrapper {
display: inline-flex;
flex-direction: column;
flex-wrap: wrap;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder .wrapper {
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ .wrapper {
border-left: none;
margin: 0;
padding: 0;
@@ -214,24 +288,64 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
margin-left: calc(var(--map-menu-gap) + 2px);
}
- :host([is-flex]) map-menu-builder map-menu-builder map-menu-builder map-menu-item,
- :host([is-flex]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu {
+ :host([is-flex])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-item,
+ :host([is-flex])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu {
border: none;
--map-menu-header-button-padding: 10px 20px;
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-item,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu {
- --map-menu-text-transform: var(--map-menu-layer-3-text-transform, none);
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-item,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu {
+ --map-menu-text-transform: var(
+ --map-menu-layer-3-text-transform,
+ none
+ );
--map-menu-font-weight: var(--map-menu-layer-3-font-weight, 400);
- --map-menu-header-a-text-decoration-hover: var(--map-menu-layer-3-text-decoration, none);
- --map-menu-item-a-active-background-color: var(--map-menu-layer-3-active-background-color,#f2f2f4)
+ --map-menu-header-a-text-decoration-hover: var(
+ --map-menu-layer-3-text-decoration,
+ none
+ );
+ --map-menu-item-a-active-background-color: var(
+ --map-menu-layer-3-active-background-color,
+ #f2f2f4
+ );
}
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu:hover,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu:active,
- :host([is-flex][is-horizontal]) map-menu-builder map-menu-builder map-menu-builder map-menu-submenu:focus {
- border-bottom: var(--map-menu-layer-3-bottom-border-active, var(--map-menu-layer-2-bottom-border-active, none));
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:hover,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:active,
+ :host([is-flex][is-horizontal])
+ map-menu-builder
+ map-menu-builder
+ map-menu-builder
+ map-menu-submenu:focus {
+ border-bottom: var(
+ --map-menu-layer-3-bottom-border-active,
+ var(--map-menu-layer-2-bottom-border-active, none)
+ );
}
/* Layer 4 */
@@ -249,12 +363,14 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
var(--map-menu-item-a-active-background-color, black);
margin-left: calc(var(--map-menu-gap) + 2px);
}
- :host([is-flex]) map-menu-builder
+ :host([is-flex])
+ map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
map-menu-item,
- :host([is-flex]) map-menu-builder
+ :host([is-flex])
+ map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
@@ -280,13 +396,15 @@ import{LitElement as e,html as a,css as t}from"../../lit/index.js";import"./lib/
var(--map-menu-item-a-active-background-color, black);
margin-left: calc(var(--map-menu-gap) + 2px);
}
- :host([is-flex]) map-menu-builder
+ :host([is-flex])
+ map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
map-menu-item,
- :host([is-flex]) map-menu-builder
+ :host([is-flex])
+ map-menu-builder
map-menu-builder
map-menu-builder
map-menu-builder
diff --git a/haxcms/build/es6/node_modules/@haxtheweb/polaris-theme/lib/polaris-flex-theme.js b/haxcms/build/es6/node_modules/@haxtheweb/polaris-theme/lib/polaris-flex-theme.js
index 9b6f4ca5a..3dcf6a2b4 100644
--- a/haxcms/build/es6/node_modules/@haxtheweb/polaris-theme/lib/polaris-flex-theme.js
+++ b/haxcms/build/es6/node_modules/@haxtheweb/polaris-theme/lib/polaris-flex-theme.js
@@ -43,10 +43,12 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
:host([edit-mode]) {
/* react to the screen shifting left to right on edit mode w/ tray direction */
- margin: var(--hax-tray-element-align-margin, 0 0 0 calc(
- var(--hax-tray-width) - var(--hax-tray-menubar-min-width)
- ));
- transition: margin .6s ease-in-out;
+ margin: var(
+ --hax-tray-element-align-margin,
+ 0 0 0
+ calc(var(--hax-tray-width) - var(--hax-tray-menubar-min-width))
+ );
+ transition: margin 0.6s ease-in-out;
}
:host([is-safari]) {
background-color: var(--ddd-accent-6);
@@ -60,9 +62,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
right: 0px;
bottom: 0px;
z-index: 10000;
- --scroll-button-background-color: var(
- --polaris-nav-bg-color
- );
+ --scroll-button-background-color: var(--polaris-nav-bg-color);
--simple-icon-width: 32px;
--simple-icon-height: 32px;
--simple-icon-button-border-radius: none;
@@ -104,11 +104,11 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
padding: 0 0 var(--ddd-spacing-12);
}
- article > *:not(polaris-media-banner){
+ article > *:not(polaris-media-banner) {
padding: 0 var(--polaris-standard-padding);
}
- site-breadcrumb{
+ site-breadcrumb {
padding: var(--ddd-spacing-12) 0 0;
}
@@ -136,19 +136,22 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
padding-bottom: var(--ddd-spacing-2);
}
- .header-links, .header-links p {
+ .header-links,
+ .header-links p {
display: inline-flex;
margin: 0;
align-items: center;
column-gap: var(--ddd-spacing-5);
}
- .header-links a, site-title {
+ .header-links a,
+ site-title {
color: var(--polaris-nav-color);
font-weight: var(--ddd-font-weight-regular);
}
- .header-links a:hover, site-title:hover {
+ .header-links a:hover,
+ site-title:hover {
text-decoration: underline;
}
@@ -193,8 +196,10 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
--map-menu-layer-1-margin: 0 var(--ddd-spacing-9) 0 0;
--map-menu-layer-1-font-color: var(--polaris-nav-color);
- --map-menu-layer-1-bottom-border-active: var(--ddd-border-size-lg) solid var(--ddd-theme-default-pughBlue);
- --map-menu-layer-2-horizontal-padding: 0 var(--polaris-standard-padding);
+ --map-menu-layer-1-bottom-border-active: var(--ddd-border-size-lg)
+ solid var(--ddd-theme-default-pughBlue);
+ --map-menu-layer-2-horizontal-padding: 0
+ var(--polaris-standard-padding);
--map-menu-layer-2-active-color: var(--ddd-theme-default-nittanyNavy);
--map-menu-layer-2-font-weight: var(--ddd-font-weight-medium);
--map-menu-layer-2-bottom-border-active: none;
@@ -223,7 +228,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
background-color: var(--ddd-theme-default-nittanyNavy);
color: white;
clear: both;
-
+
padding: var(--ddd-spacing-10) 0;
}
@@ -253,7 +258,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
row-gap: var(--ddd-spacing-2);
}
- .footer-secondary-slot ul li{
+ .footer-secondary-slot ul li {
font-size: 20px;
font-family: var(--ddd-font-navigation);
font-weight: var(--ddd-font-weight-medium);
@@ -325,19 +330,18 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 0;
}
- .footer-primary-slot p:first-of-type{
+ .footer-primary-slot p:first-of-type {
display: flex;
column-gap: var(--ddd-spacing-5);
}
/* Theme Responsive Section */
- :host([responsive-size="md"]){
+ :host([responsive-size="md"]) {
site-menu {
--map-menu-layer-1-margin: 0 var(--ddd-spacing-8) 0 0;
--map-menu-layer-2-horizontal-padding: 0 var(--polaris-md-padding);
--map-menu-item-button-padding: 10px 0 10px 20px;
-
}
.footer-secondary .wrap {
max-width: 920px;
@@ -345,7 +349,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
}
}
- :host([responsive-size="sm"]){
+ :host([responsive-size="sm"]) {
.header-links {
display: none;
}
@@ -361,26 +365,32 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 15px 0;
width: 156px;
}
- site-modal{
+ site-modal {
padding: 6px 0;
}
site-menu {
- --map-menu-item-icon-active-color: var(--ddd-theme-default-nittanyNavy);
- --site-menu-container-background-color: var(--ddd-theme-default-white);
+ --map-menu-item-icon-active-color: var(
+ --ddd-theme-default-nittanyNavy
+ );
+ --site-menu-container-background-color: var(
+ --ddd-theme-default-white
+ );
--map-menu-parent-background-color: var(--ddd-theme-default-white);
--a11y-collapse-icon-position: static;
--map-menu-width: 100%;
--map-menu-parent-padding: 40px 0px 128px;
- --map-menu-layer-1-margin: 0px 128px;
-
+ --map-menu-layer-1-margin: 0px 128px;
+
--map-menu-layer-1-font-color: var(--ddd-theme-default-nittanyNavy);
- --map-menu-item-a-active-color: var(--ddd-theme-default-nittanyNavy);
+ --map-menu-item-a-active-color: var(
+ --ddd-theme-default-nittanyNavy
+ );
--map-menu-layer-2-active-color: #262626;
--map-menu-layer-2-text-transform: none;
}
- #haxcmsmobilemenubutton{
+ #haxcmsmobilemenubutton {
display: inline;
}
@@ -398,7 +408,8 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 0 auto;
padding: 0;
}
- .footer-secondary-contact, .footer-secondary-media {
+ .footer-secondary-contact,
+ .footer-secondary-media {
padding: 0;
margin: 0 auto;
text-align: center;
@@ -409,10 +420,11 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
.footer-secondary-media {
max-width: 60%;
}
- .footer-secondary-media p, .footer-secondary-media li {
+ .footer-secondary-media p,
+ .footer-secondary-media li {
text-align: left;
}
- .footer-primary {
+ .footer-primary {
text-align: center;
justify-content: center;
}
@@ -425,10 +437,14 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
}
}
- :host([responsive-size="xs"]){
+ :host([responsive-size="xs"]) {
site-menu {
- --map-menu-item-icon-active-color: var(--ddd-theme-default-nittanyNavy);
- --site-menu-container-background-color: var(--ddd-theme-default-white);
+ --map-menu-item-icon-active-color: var(
+ --ddd-theme-default-nittanyNavy
+ );
+ --site-menu-container-background-color: var(
+ --ddd-theme-default-white
+ );
--map-menu-parent-background-color: var(--ddd-theme-default-white);
--a11y-collapse-icon-position: static;
@@ -437,7 +453,9 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
--map-menu-layer-1-margin: 0px var(--polaris-xs-padding);
--map-menu-layer-1-font-color: var(--ddd-theme-default-nittanyNavy);
- --map-menu-item-a-active-color: var(--ddd-theme-default-nittanyNavy);
+ --map-menu-item-a-active-color: var(
+ --ddd-theme-default-nittanyNavy
+ );
--map-menu-layer-2-active-color: #262626;
--map-menu-layer-2-text-transform: none;
}
@@ -459,7 +477,7 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 15px 0;
width: 146px;
}
- #haxcmsmobilemenubutton{
+ #haxcmsmobilemenubutton {
display: inline;
}
polaris-media-banner {
@@ -475,7 +493,8 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 0 auto;
padding: 0;
}
- .footer-secondary-contact, .footer-secondary-media {
+ .footer-secondary-contact,
+ .footer-secondary-media {
padding: 0;
margin: 0 auto;
text-align: center;
@@ -486,10 +505,11 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
.footer-secondary-media {
max-width: 75%;
}
- .footer-secondary-media p, .footer-secondary-media li {
+ .footer-secondary-media p,
+ .footer-secondary-media li {
text-align: left;
}
- .footer-primary{
+ .footer-primary {
text-align: center;
justify-content: center;
}
@@ -501,9 +521,9 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
margin: 0 auto;
}
}
- :host([responsive-size="sm"]:not([menu-open])),
- :host([responsive-size="xs"]:not([menu-open])){
- site-menu{
+ :host([responsive-size="sm"]:not([menu-open])),
+ :host([responsive-size="xs"]:not([menu-open])) {
+ site-menu {
display: none;
}
}
@@ -632,54 +652,51 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
display: inline-flex;
}
`]}firstUpdated(e){super.firstUpdated(e),this.HAXCMSThemeSettings.scrollTarget=this.shadowRoot.querySelector("#main"),globalThis.AbsolutePositionStateManager.requestAvailability().scrollTarget=this.HAXCMSThemeSettings.scrollTarget,this.shadowRoot.querySelector("scroll-button").target=this.shadowRoot.querySelector("#main")}renderBrandMark(){return e`
-
+
`}renderHeaderSlot(){return e``}renderSideBar(){return e``}renderFooterContactInformation(){return e``}renderFooterSecondarySlot(){return e``}renderFooterPrimarySlot(){return e``}render(){return e`
@@ -704,20 +721,19 @@ import{html as e,css as a}from"../../../lit/index.js";import{HAXCMSLitElementThe
\n "])),this.details.created,this.details.updated,this.details.pages,this.details.url,function(e){var t="site";if(e){var n=e.split("sites/");n.length>1&&(t=n.pop().replace("/",""))}return t}(this.details.url),this.detailOps.map((function(t){return y(L||(L=x(['\n \n
\n ','
\n \n
'," ","\n "," \n
\n "])),e.siteId,t.op,t.name,t.icon,t.op,e.siteOperation,t.name.toLowerCase(),t.op,"gitList"!=t.op?"":"View",t.name,"gitList"!=t.op?"Site":"source")})))}}],[{key:"tag",get:function(){return"app-hax-site-details"}},{key:"properties",get:function(){return r(r({},v(n,"properties",this)),{},{details:{type:Object},siteId:{type:String,attribute:"site-id"}})}},{key:"styles",get:function(){return[v(n,"styles",this),g(T||(T=x(['\n :host {\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: 12px;\n align-items: stretch;\n background-color: var(--simple-colors-default-theme-grey-2);\n height: 208px;\n }\n\n .flex-container {\n flex: 1;\n background-color: var(--simple-colors-default-theme-grey-2);\n margin: 8px;\n display: flex;\n flex-direction: row;\n justify-content: space-around;\n align-items: center;\n }\n .info-group {\n height: 100%;\n max-width: 25%;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n padding: 0px;\n flex: 1;\n }\n simple-icon-button-lite:active,\n simple-icon-button-lite:hover,\n simple-icon-button-lite:focus {\n background-color: var(--simple-colors-default-theme-grey-4, #eeeeee);\n outline: 2px solid var(--simple-colors-default-theme-grey-12);\n outline-offset: 1px;\n }\n\n .info-headings {\n font-size: 12px;\n }\n .info-item {\n font-family: "Press Start 2P", sans-serif;\n display: block;\n text-overflow: ellipsis;\n overflow: hidden;\n color: var(--simple-colors-default-theme-grey-12);\n line-height: 12px;\n max-width: 100%;\n font-size: 12px;\n }\n .pre ::slotted(*) {\n padding: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 50%;\n display: inline-flex;\n }\n a {\n text-decoration: underline;\n }\n .info-date {\n color: var(--simple-colors-default-theme-grey-12);\n line-height: 12px;\n font-size: 12px;\n }\n\n .info-icon {\n --simple-icon-width: 49px;\n --simple-icon-height: 49px;\n --simple-icon-button-border-radius: 0px;\n --simple-icon-button-border: 0px;\n outline: 0;\n border: 2px solid var(--simple-colors-default-theme-grey-12);\n border-radius: 4px;\n padding: 4px;\n width: 80%;\n }\n .info-icon::part(button) {\n outline: none;\n }\n @media (max-width: 640px) {\n :host {\n height: 140px;\n }\n .btn-group button {\n padding: 4px;\n margin: 4px 0;\n }\n .flex-container > div {\n margin: 0px;\n }\n .info-headings {\n font-size: 8px;\n }\n .info-date {\n font-size: 8px;\n line-height: 10px;\n }\n .info-icon {\n --simple-icon-width: 30px;\n --simple-icon-height: 30px;\n padding: 2px;\n border-radius: none;\n }\n .info-item {\n font-size: 8px;\n }\n .flex-container {\n margin: 2px;\n }\n .pre ::slotted(*) {\n padding: 0px;\n margin-top: 8px;\n }\n .info-group {\n height: 24px;\n }\n }\n '])))]}}]);var a}(k);customElements.define(Z.tag,Z);var $=e("AppHaxSearchResults",function(e){function t(){var e;return d(this,t),(e=c(this,t)).searchItems=[],e.displayItems=[],e.searchTerm="",e.dark=!1,S((function(){e.searchTerm=C(w.searchTerm)})),S((function(){e.dark=C(w.darkMode)})),S((function(){var t=C(w.manifest);t&&t.items&&(e.searchItems=t.items,e.displayItems=f(e.searchItems))})),e}return i(t,e),o(t,[{key:"updated",value:function(e){var n=this;v(t,"updated",this,1)&&v(t,"updated",this,3)([e]),e.forEach((function(e,t){"searchTerm"===t&&(n.displayItems=n.searchItems.filter((function(e){return!!(e.title.toLowerCase().includes(n.searchTerm.toLowerCase())||e.description.toLowerCase().includes(n.searchTerm.toLowerCase())||e.author.toLowerCase().includes(n.searchTerm.toLowerCase())||e.slug.toLowerCase().includes(n.searchTerm.toLowerCase()))})))}))}},{key:"render",value:function(){var e=this;return y(V||(V=x(['\n \n "])),this.displayItems.length>0?this.displayItems.map((function(t){return y(W||(W=x([' \n \n ',' \n ',' \n \n \n ',"\n
\n \n \n "])),e.openedChanged,e.dark,A(t,"metadata.theme.variables.cssVariable","orange").replace("--simple-colors-default-theme-","").replace("-7",""),t.slug,A(t,"metadata.theme.variables.icon","link"),t.slug,t.title,t.author,e.getItemDetails(t),t.id,t.description)})):y(Y||(Y=x(['\n No results for\n ',".\n
"])),""!==this.searchTerm?y(J||(J=x(['"','" '])),this.searchTerm):"your account, try starting a new journey!"))}},{key:"getItemDetails",value:function(e){return{created:A(e,"metadata.site.created",new Date/1e3),updated:A(e,"metadata.site.updated",new Date/1e3),pages:A(e,"metadata.pageCount",0),url:e.slug}}},{key:"openedChanged",value:function(e){w.appEl.playSound("click"),e.detail.value?this.shadowRoot.querySelector("app-hax-site-details").removeAttribute("tabindex"):this.shadowRoot.querySelector("app-hax-site-details").setAttribute("tabindex","-1")}}],[{key:"tag",get:function(){return"app-hax-search-results"}},{key:"properties",get:function(){return r(r({},v(t,"properties",this)),{},{searchTerm:{type:String,reflect:!0},searchItems:{type:Array},displayItems:{type:Array}})}},{key:"styles",get:function(){return[v(t,"styles",this),g(Q||(Q=x(['\n :host {\n overflow: hidden;\n }\n ul,\n li {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n app-hax-site-bar {\n margin: 8px 0;\n }\n .description {\n max-height: 64px;\n overflow: hidden;\n max-width: 80%;\n text-overflow: ellipsis;\n word-break: break-all;\n }\n\n @media (max-width: 800px) {\n app-hax-site-bar {\n --main-banner-width: 60vw;\n }\n .description {\n max-height: 24px;\n font-size: 8px;\n font-family: sans-serif;\n }\n }\n @media (max-width: 640px) {\n app-hax-site-bar a {\n font-size: 14px;\n }\n app-hax-site-bar {\n --main-banner-width: 70vw;\n }\n }\n span[slot="band"] {\n height: 48px;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 8px;\n }\n :host([dark]) #noResult {\n color: var(--ddd-theme-default-coalyGray);\n }\n '])))]}}])}(k));customElements.define($.tag,$)}}}));
diff --git a/storybook/19ca9b9b.js b/storybook/19ca9b9b.js
new file mode 100644
index 000000000..af72abf83
--- /dev/null
+++ b/storybook/19ca9b9b.js
@@ -0,0 +1 @@
+System.register(["./72dcd9ad.js","./ccf78e94.js","./8fd01541.js"],(function(n){"use strict";var t,e,o,a,i,s,c,l,d,r,u,m,h,p,b,f,g;return{setters:[function(n){t=n._,e=n.a,o=n.i,a=n.b,i=n.x,s=n.f,c=n.m,l=n.o,d=n.t,r=n.N,u=n.aV,m=n.r,h=n.c,p=n.d,b=n.e,f=n.g,g=n.h},function(){},function(){}],execute:function(){var v,k,y=n("HAXCMSOutlineEditorDialog",function(n){function u(){var n;return h(this,u),(n=p(this,u)).__disposer=[],n.manifestItems=[],n.viewMode=!1,n.t=n.t||{},n.t=b(b({},n.t),{},{save:"Save",cancel:"cancel"}),n}return t(u,n),e(u,[{key:"render",value:function(){return i(v||(v=a(['\n \n \n \n ','\n \n \n ',"\n \n
\n "])),this.viewMode,this.manifestItems,this._saveTap,this.t.save,this._cancelTap,this.t.cancel)}},{key:"updated",value:function(n){var t=this;s(u,"updated",this,1)&&s(u,"updated",this,3)([n]),n.forEach((function(n,e){"opened"==e&&t.dispatchEvent(new CustomEvent("opened-changed",{detail:t[e]})),"manifestItems"==e&&(t._manifestItemsChanged(t[e],n),t.dispatchEvent(new CustomEvent("manifest-edit-mode-changed",{detail:t[e]})))}))}},{key:"_manifestItemsChanged",value:function(n){n&&(globalThis.JSONOutlineSchema.requestAvailability().items=n,this.manifestItemsStatic=JSON.stringify(n,null,2))}},{key:"connectedCallback",value:function(){var n=this;s(u,"connectedCallback",this,3)([]),c((function(t){n.manifestItems=l(d(r.manifest.items)),setTimeout((function(){n.shadowRoot&&n.shadowRoot.querySelector("#outline").__syncUIAndDataModel()}),500),n.__disposer.push(t)}))}},{key:"disconnectedCallback",value:function(){for(var n in this.__disposer)this.__disposer[n].dispose();s(u,"disconnectedCallback",this,3)([])}},{key:"_saveTap",value:(m=f(g().mark((function n(t){var e,o,a,i,s,c=this;return g().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r.playSound("click"),n.next=3,this.shadowRoot.querySelector("#outline").getData();case 3:e=n.sent,o=0,a=0,i=0,e.items.map((function(n){n.delete?o++:n.new?i++:n.modified&&a++})),(""==(s="".concat(i>0?"‣ ".concat(i," new pages will be created\n"):"").concat(a>0?"‣ ".concat(a," pages will be updated\n"):"").concat(o>0?"‣ ".concat(o," pages will be deleted\n"):""))||globalThis.confirm("Saving will commit the following actions:\n".concat(s,"\nAre you sure?")))&&(globalThis.dispatchEvent(new CustomEvent("haxcms-save-outline",{bubbles:!0,composed:!0,detail:e.items})),setTimeout((function(){c.dispatchEvent(new CustomEvent("simple-modal-hide",{bubbles:!0,composed:!0,cancelable:!1,detail:!1}))}),0));case 12:case"end":return n.stop()}}),n,this)}))),function(n){return m.apply(this,arguments)})},{key:"_cancelTap",value:function(n){r.playSound("error"),this.dispatchEvent(new CustomEvent("simple-modal-hide",{bubbles:!0,composed:!0,cancelable:!1,detail:!1}))}}],[{key:"styles",get:function(){return[o(k||(k=a(["\n :host {\n display: block;\n height: 70vh;\n overflow: auto;\n padding-bottom: 40px;\n padding-top: 16px;\n min-width: 70vw;\n font-family: var(--ddd-font-navigation);\n }\n .buttons {\n position: absolute;\n bottom: 0;\n z-index: 1000000;\n background-color: var(--simple-modal-titlebar-background, #000000);\n left: 0;\n right: 0px;\n padding-left: 8px;\n }\n .buttons button {\n color: black;\n background-color: white;\n }\n simple-icon {\n margin-right: 4px;\n }\n outline-designer:not(:defined) {\n display: none;\n }\n #toggle {\n float: right;\n text-transform: unset;\n }\n button.hax-modal-btn {\n font-size: 30px;\n padding: 8px;\n margin: 4px 8px;\n color: white;\n background-color: green;\n border: 4px solid black;\n border-radius: 8px;\n font-family: sans-serif;\n }\n button.hax-modal-btn.cancel {\n background-color: red;\n }\n button.hax-modal-btn:hover,\n button.hax-modal-btn:focus {\n outline: 2px solid black;\n cursor: pointer;\n background-color: darkgreen;\n }\n button.hax-modal-btn.cancel:hover,\n button.hax-modal-btn.cancel:focus {\n background-color: darkred;\n }\n "])))]}},{key:"tag",get:function(){return"haxcms-outline-editor-dialog"}},{key:"properties",get:function(){return{opened:{type:Boolean},manifestItems:{type:Array},manifestItemsStatic:{type:String,attribute:"manifest-items-static"},viewLabel:{type:String,attribute:"view-label"},viewMode:{type:Boolean,attribute:"view-mode"}}}}]);var m}(u(m)));customElements.define(y.tag,y)}}}));
diff --git a/storybook/e4a6759a.js b/storybook/1c6b14f0.js
similarity index 80%
rename from storybook/e4a6759a.js
rename to storybook/1c6b14f0.js
index 8cc3decb8..59768d882 100644
--- a/storybook/e4a6759a.js
+++ b/storybook/1c6b14f0.js
@@ -1 +1 @@
-System.register(["./be7cca87.js"],(function(t){"use strict";var e,n,i,s,r,o,l,d,a;return{setters:[function(t){e=t._,n=t.a,i=t.i,s=t.b,r=t.k,o=t.U,l=t.h,d=t.c,a=t.d}],execute:function(){var u,c,h,p,m,g,f,k,x,y=t("GradeBookStudentBlock",function(t){function o(){var t;return d(this,o),(t=a(this,o)).student={},t.t={profileImageFor:"Profile image for",userID:"User ID",preferredName:"Preferred name",emailAddress:"Email this student",notes:"Notes",interests:"Interests"},t.registerLocalization({context:t,namespace:"grade-book"}),t}return e(o,t),n(o,[{key:"render",value:function(){return r(u||(u=s(['\n \n \n ','\n
\n \n
'," \n
\n ","\n ","\n ","\n ","\n ","\n \n
\n \n "])),this.student.photo?r(c||(c=s(['\n \n '])),this.student.photo,this.t.photoOf,this.student.prefName):r(h||(h=s(['\n \n ']))),this.student.name,this.student.userId?r(p||(p=s(["",": "," "])),this.t.userID,this.student.userId):"",this.student.prefName?r(m||(m=s(["",": "," "])),this.t.preferredName,this.student.prefName):"",this.student.email?r(g||(g=s(['\n '," \n "])),this.student.email,this.t.emailAddress):"",this.student.notes?r(f||(f=s(["",": "," "])),this.t.notes,this.student.notes):"",this.student.interests?r(k||(k=s(["\n ",": ","\n "])),this.t.interests,this.student.interests.join(",")):"")}}],[{key:"properties",get:function(){return{student:{type:Object}}}},{key:"styles",get:function(){return i(x||(x=s(["\n :host {\n display: block;\n }\n img {\n max-width: 150px;\n height: 150px;\n border-radius: 50%;\n }\n grid-plate {\n --grid-plate-col-transition: none;\n --grid-plate-item-margin: 0px;\n --grid-plate-item-padding: 4px;\n }\n simple-icon-lite {\n --simple-icon-height: 150px;\n --simple-icon-width: 150px;\n }\n "])))}},{key:"tag",get:function(){return"grade-book-student-block"}}])}(o(l)));customElements.define(y.tag,y)}}}));
+System.register(["./72dcd9ad.js"],(function(t){"use strict";var e,n,i,s,r,o,d,l,a;return{setters:[function(t){e=t._,n=t.a,i=t.i,s=t.b,r=t.x,o=t.U,d=t.r,l=t.c,a=t.d}],execute:function(){var u,c,h,p,m,g,f,x,k,y=t("GradeBookStudentBlock",function(t){function o(){var t;return l(this,o),(t=a(this,o)).student={},t.t={profileImageFor:"Profile image for",userID:"User ID",preferredName:"Preferred name",emailAddress:"Email this student",notes:"Notes",interests:"Interests"},t.registerLocalization({context:t,namespace:"grade-book"}),t}return e(o,t),n(o,[{key:"render",value:function(){return r(u||(u=s(['\n \n \n ','\n
\n \n
'," \n
\n ","\n ","\n ","\n ","\n ","\n \n
\n \n "])),this.student.photo?r(c||(c=s(['\n \n '])),this.student.photo,this.t.photoOf,this.student.prefName):r(h||(h=s(['\n \n ']))),this.student.name,this.student.userId?r(p||(p=s(["",": "," "])),this.t.userID,this.student.userId):"",this.student.prefName?r(m||(m=s(["",": "," "])),this.t.preferredName,this.student.prefName):"",this.student.email?r(g||(g=s(['\n '," \n "])),this.student.email,this.t.emailAddress):"",this.student.notes?r(f||(f=s(["",": "," "])),this.t.notes,this.student.notes):"",this.student.interests?r(x||(x=s(["\n ",": ","\n "])),this.t.interests,this.student.interests.join(",")):"")}}],[{key:"properties",get:function(){return{student:{type:Object}}}},{key:"styles",get:function(){return i(k||(k=s(["\n :host {\n display: block;\n }\n img {\n max-width: 150px;\n height: 150px;\n border-radius: 50%;\n }\n grid-plate {\n --grid-plate-col-transition: none;\n --grid-plate-item-margin: 0px;\n --grid-plate-item-padding: 4px;\n }\n simple-icon-lite {\n --simple-icon-height: 150px;\n --simple-icon-width: 150px;\n }\n "])))}},{key:"tag",get:function(){return"grade-book-student-block"}}])}(o(d)));customElements.define(y.tag,y)}}}));
diff --git a/storybook/1cf8d2ad.js b/storybook/1cf8d2ad.js
deleted file mode 100644
index 8d7fed6dd..000000000
--- a/storybook/1cf8d2ad.js
+++ /dev/null
@@ -1 +0,0 @@
-System.register(["./be7cca87.js"],(function(n){"use strict";var t,e,r,a,i,s,c,d,o,g,l;return{setters:[function(n){t=n._,e=n.a,r=n.e,a=n.f,i=n.g,s=n.i,c=n.b,d=n.k,o=n.S,g=n.c,l=n.d}],execute:function(){var h,p,u={url:new URL("./elements/post-card/lib/PostCardPhoto.js",document.baseURI).href},m=new URL("./assets/postcard-tape.png",u.url).href,f=new URL("./assets/postcard-photo-shadow.png",u.url).href,w=n("PostCardPhoto",function(n){function o(){var n;return g(this,o),(n=l(this,o)).accentColor="grey",n.image=new URL(n.image,u.url).href,n.alt="",n}return t(o,n),e(o,[{key:"render",value:function(){return d(h||(h=c(['\n \n '])),f,this.image,this.alt,m)}}],[{key:"tag",get:function(){return"post-card-photo"}},{key:"properties",get:function(){return r(r({},a(i(o),"properties",this)),{},{image:{type:String},alt:{type:String,reflect:!0}})}},{key:"styles",get:function(){return[a(i(o),"styles",this),s(p||(p=c(["\n :host {\n --post-card-img-width: 340px;\n }\n\n div {\n display: inline-grid;\n grid-template-columns: 1;\n grid-template-rows: 1;\n align-items: center;\n }\n\n img {\n grid-column: 1;\n grid-row: 1;\n justify-self: center;\n }\n\n .cardShadow {\n width: calc(var(--post-card-img-width) * 1.05);\n height: calc(var(--post-card-img-width) * 0.78);\n z-index: 2;\n opacity: 0.5;\n transform: translate(1%, 1.5%) rotate(0.5deg);\n }\n\n .cardImage {\n width: var(--post-card-img-width);\n height: calc(var(--post-card-img-width) * 0.7);\n z-index: 2;\n transform: rotate(-3deg);\n border-radius: 5px 5px 0px 5px;\n }\n\n .cardTape {\n width: auto;\n height: calc(var(--post-card-img-width) * 0.8);\n z-index: 3;\n }\n "])))]}}])}(o));customElements.define(w.tag,w)}}}));
diff --git a/storybook/bf8ed523.js b/storybook/1ddecd71.js
similarity index 97%
rename from storybook/bf8ed523.js
rename to storybook/1ddecd71.js
index ec7b6c39f..193e0bbb2 100644
--- a/storybook/bf8ed523.js
+++ b/storybook/1ddecd71.js
@@ -1 +1 @@
-System.register(["./be7cca87.js"],(function(){"use strict";var t,e,n,r,a,i,u,o;return{setters:[function(s){t=s._,e=s.a,n=s.i,r=s.b,a=s.k,i=s.h,u=s.c,o=s.d}],execute:function(){var s,h;(function(){Date.shortMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Date.longMonths=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.shortDays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Date.longDays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var t={d:function(){var t=this.getDate();return(t<10?"0":"")+t},D:function(){return Date.shortDays[this.getDay()]},j:function(){return this.getDate()},l:function(){return Date.longDays[this.getDay()]},N:function(){var t=this.getDay();return 0===t?7:t},S:function(){var t=this.getDate();return t%10==1&&11!==t?"st":t%10==2&&12!==t?"nd":t%10==3&&13!==t?"rd":"th"},w:function(){return this.getDay()},z:function(){var t=new Date(this.getFullYear(),0,1);return Math.ceil((this-t)/864e5)},W:function(){var t=new Date(this.valueOf()),e=(this.getDay()+6)%7;t.setDate(t.getDate()-e+3);var n=t.valueOf();t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7);var r=1+Math.ceil((n-t)/6048e5);return r<10?"0"+r:r},F:function(){return Date.longMonths[this.getMonth()]},m:function(){var t=this.getMonth();return(t<9?"0":"")+(t+1)},M:function(){return Date.shortMonths[this.getMonth()]},n:function(){return this.getMonth()+1},t:function(){var t=this.getFullYear(),e=this.getMonth()+1;return 12===e&&(t=t++,e=0),new Date(t,e,0).getDate()},L:function(){var t=this.getFullYear();return t%400==0||t%100!=0&&t%4==0},o:function(){var t=new Date(this.valueOf());return t.setDate(t.getDate()-(this.getDay()+6)%7+3),t.getFullYear()},Y:function(){return this.getFullYear()},y:function(){return(""+this.getFullYear()).substr(2)},a:function(){return this.getHours()<12?"am":"pm"},A:function(){return this.getHours()<12?"AM":"PM"},B:function(){return Math.floor(1e3*((this.getUTCHours()+1)%24+this.getUTCMinutes()/60+this.getUTCSeconds()/3600)/24)},g:function(){return this.getHours()%12||12},G:function(){return this.getHours()},h:function(){var t=this.getHours();return((t%12||12)<10?"0":"")+(t%12||12)},H:function(){var t=this.getHours();return(t<10?"0":"")+t},i:function(){var t=this.getMinutes();return(t<10?"0":"")+t},s:function(){var t=this.getSeconds();return(t<10?"0":"")+t},v:function(){var t=this.getMilliseconds();return(t<10?"00":t<100?"0":"")+t},e:function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},I:function(){for(var t=null,e=0;e<12;++e){var n=new Date(this.getFullYear(),e,1).getTimezoneOffset();if(null===t)t=n;else{if(nt)break}}return this.getTimezoneOffset()===t|0},O:function(){var t=this.getTimezoneOffset();return(-t<0?"-":"+")+(Math.abs(t/60)<10?"0":"")+Math.floor(Math.abs(t/60))+(0===Math.abs(t%60)?"00":(Math.abs(t%60)<10?"0":"")+Math.abs(t%60))},P:function(){var t=this.getTimezoneOffset();return(-t<0?"-":"+")+(Math.abs(t/60)<10?"0":"")+Math.floor(Math.abs(t/60))+":"+(0===Math.abs(t%60)?"00":(Math.abs(t%60)<10?"0":"")+Math.abs(t%60))},T:function(){var t=this.toLocaleTimeString(navigator.language,{timeZoneName:"short"}).split(" ");return t[t.length-1]},Z:function(){return 60*-this.getTimezoneOffset()},c:function(){return this.format("Y-m-d\\TH:i:sP")},r:function(){return this.toString()},U:function(){return Math.floor(this.getTime()/1e3)}};Date.prototype.format=function(e){var n=this;return e.replace(/(\\?)(.)/g,(function(e,r,a){return""===r&&t[a]?t[a].call(n):a}))}}).call(void 0);var f=function(i){function f(){var t;return u(this,f),(t=o(this,f)).format="M jS, Y",t.unix=!1,t}return t(f,i),e(f,[{key:"render",value:function(){return a(s||(s=r([' '," "])),this.date,this.date)}},{key:"updated",value:function(t){var e=this;t.forEach((function(t,n){["timestamp","format","unix"].includes(n)&&(e.date=e.formatDate(e.timestamp,e.format,e.unix))}))}},{key:"formatDate",value:function(t,e,n){return n&&(t*=1e3),new Date(t).format(e)}}],[{key:"styles",get:function(){return[n(h||(h=r(["\n :host {\n display: block;\n }\n "])))]}},{key:"tag",get:function(){return"simple-datetime"}},{key:"properties",get:function(){return{timestamp:{type:Number},format:{type:String},date:{type:String},unix:{type:Boolean}}}}])}(i);customElements.define(f.tag,f)}}}));
+System.register(["./72dcd9ad.js"],(function(){"use strict";var t,e,n,r,a,i,u,o;return{setters:[function(s){t=s._,e=s.a,n=s.i,r=s.b,a=s.x,i=s.r,u=s.c,o=s.d}],execute:function(){var s,h;(function(){Date.shortMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Date.longMonths=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.shortDays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Date.longDays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var t={d:function(){var t=this.getDate();return(t<10?"0":"")+t},D:function(){return Date.shortDays[this.getDay()]},j:function(){return this.getDate()},l:function(){return Date.longDays[this.getDay()]},N:function(){var t=this.getDay();return 0===t?7:t},S:function(){var t=this.getDate();return t%10==1&&11!==t?"st":t%10==2&&12!==t?"nd":t%10==3&&13!==t?"rd":"th"},w:function(){return this.getDay()},z:function(){var t=new Date(this.getFullYear(),0,1);return Math.ceil((this-t)/864e5)},W:function(){var t=new Date(this.valueOf()),e=(this.getDay()+6)%7;t.setDate(t.getDate()-e+3);var n=t.valueOf();t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7);var r=1+Math.ceil((n-t)/6048e5);return r<10?"0"+r:r},F:function(){return Date.longMonths[this.getMonth()]},m:function(){var t=this.getMonth();return(t<9?"0":"")+(t+1)},M:function(){return Date.shortMonths[this.getMonth()]},n:function(){return this.getMonth()+1},t:function(){var t=this.getFullYear(),e=this.getMonth()+1;return 12===e&&(t=t++,e=0),new Date(t,e,0).getDate()},L:function(){var t=this.getFullYear();return t%400==0||t%100!=0&&t%4==0},o:function(){var t=new Date(this.valueOf());return t.setDate(t.getDate()-(this.getDay()+6)%7+3),t.getFullYear()},Y:function(){return this.getFullYear()},y:function(){return(""+this.getFullYear()).substr(2)},a:function(){return this.getHours()<12?"am":"pm"},A:function(){return this.getHours()<12?"AM":"PM"},B:function(){return Math.floor(1e3*((this.getUTCHours()+1)%24+this.getUTCMinutes()/60+this.getUTCSeconds()/3600)/24)},g:function(){return this.getHours()%12||12},G:function(){return this.getHours()},h:function(){var t=this.getHours();return((t%12||12)<10?"0":"")+(t%12||12)},H:function(){var t=this.getHours();return(t<10?"0":"")+t},i:function(){var t=this.getMinutes();return(t<10?"0":"")+t},s:function(){var t=this.getSeconds();return(t<10?"0":"")+t},v:function(){var t=this.getMilliseconds();return(t<10?"00":t<100?"0":"")+t},e:function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},I:function(){for(var t=null,e=0;e<12;++e){var n=new Date(this.getFullYear(),e,1).getTimezoneOffset();if(null===t)t=n;else{if(nt)break}}return this.getTimezoneOffset()===t|0},O:function(){var t=this.getTimezoneOffset();return(-t<0?"-":"+")+(Math.abs(t/60)<10?"0":"")+Math.floor(Math.abs(t/60))+(0===Math.abs(t%60)?"00":(Math.abs(t%60)<10?"0":"")+Math.abs(t%60))},P:function(){var t=this.getTimezoneOffset();return(-t<0?"-":"+")+(Math.abs(t/60)<10?"0":"")+Math.floor(Math.abs(t/60))+":"+(0===Math.abs(t%60)?"00":(Math.abs(t%60)<10?"0":"")+Math.abs(t%60))},T:function(){var t=this.toLocaleTimeString(navigator.language,{timeZoneName:"short"}).split(" ");return t[t.length-1]},Z:function(){return 60*-this.getTimezoneOffset()},c:function(){return this.format("Y-m-d\\TH:i:sP")},r:function(){return this.toString()},U:function(){return Math.floor(this.getTime()/1e3)}};Date.prototype.format=function(e){var n=this;return e.replace(/(\\?)(.)/g,(function(e,r,a){return""===r&&t[a]?t[a].call(n):a}))}}).call(void 0);var f=function(i){function f(){var t;return u(this,f),(t=o(this,f)).format="M jS, Y",t.unix=!1,t}return t(f,i),e(f,[{key:"render",value:function(){return a(s||(s=r([' '," "])),this.date,this.date)}},{key:"updated",value:function(t){var e=this;t.forEach((function(t,n){["timestamp","format","unix"].includes(n)&&(e.date=e.formatDate(e.timestamp,e.format,e.unix))}))}},{key:"formatDate",value:function(t,e,n){return n&&(t*=1e3),new Date(t).format(e)}}],[{key:"styles",get:function(){return[n(h||(h=r(["\n :host {\n display: block;\n }\n "])))]}},{key:"tag",get:function(){return"simple-datetime"}},{key:"properties",get:function(){return{timestamp:{type:Number},format:{type:String},date:{type:String},unix:{type:Boolean}}}}])}(i);customElements.define(f.tag,f)}}}));
diff --git a/storybook/36402382.js b/storybook/36402382.js
new file mode 100644
index 000000000..8b8dd863d
--- /dev/null
+++ b/storybook/36402382.js
@@ -0,0 +1 @@
+System.register(["./72dcd9ad.js"],(function(e,t){"use strict";var i,n,s,o,a,c,r,d,l;return{setters:[function(e){i=e._,n=e.a,s=e.f,o=e.N,a=e.k,c=e.c,r=e.d,d=e.g,l=e.h}],execute:function(){var u={url:new URL("./elements/haxcms-elements/lib/core/haxcms-editor-builder.js",document.baseURI).href},h=e("HAXCMSEditorBuilder",function(e){function a(){var e;return c(this,a),(e=r(this,a)).windowControllers=new AbortController,globalThis.HAXCMS.requestAvailability().storePieces.editorBuilder=e,e.applyContext(),globalThis.addEventListener("haxcms-site-editor-loaded",e.editorLoaded.bind(e),{signal:e.windowControllers.signal}),e}return i(a,e),n(a,[{key:"connectedCallback",value:function(){s(a,"connectedCallback",this,1)&&s(a,"connectedCallback",this,3)([]),this.dispatchEvent(new CustomEvent("haxcms-editor-builder-ready",{bubbles:!0,composed:!0,cancelable:!1,detail:this}))}},{key:"disconnectedCallback",value:function(){this.windowControllers.abort(),s(a,"disconnectedCallback",this,1)&&s(a,"disconnectedCallback",this,3)([])}},{key:"editorLoaded",value:function(e){var i=this;o.cmsSiteEditor.haxCmsSiteEditorUIElement||t.import("./4eb17075.js").then((function(){for(var e in o.cmsSiteEditor.haxCmsSiteEditorUIElement=globalThis.document.createElement("haxcms-site-editor-ui"),o.setupSlots)switch(e){case"haxcms-site-editor-ui-prefix-avatar":case"haxcms-site-editor-ui-prefix-buttons":case"haxcms-site-editor-ui-suffix-buttons":case"haxcms-site-editor-ui-main-menu":case"haxcms-site-editor-ui-topbar-character-button":for(var t in o.setupSlots[e])o.cmsSiteEditor.haxCmsSiteEditorUIElement.appendChild(o.setupSlots[e][t])}i.parentNode?i.parentNode.insertBefore(o.cmsSiteEditor.haxCmsSiteEditorUIElement,i):globalThis.document.body.appendChild(o.cmsSiteEditor.haxCmsSiteEditorUIElement),setTimeout((function(){o.cmsSiteEditor.haxCmsSiteEditorUIElement.painting=!1}),600)}))}},{key:"applyContext",value:(h=d(l().mark((function e(){var i,n,s,a=this,c=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=c.length>0&&void 0!==c[0]?c[0]:null,this.__appliedContext){e.next=11;break}if(this.__appliedContext=!0,null==i&&(i=globalThis.HAXCMS.requestAvailability().getApplicationContext()),!["php","nodejs","desktop"].includes(i)){e.next=9;break}return n=globalThis.document.createElement("script"),globalThis.appSettings&&globalThis.appSettings.connectionSettings?n.src=globalThis.appSettings.connectionSettings:n.src="../../system/api/connectionSettings",e.next=9,fetch(n.src).then((function(e){e.ok&&(a.__hasConnectionSettings=!0,globalThis.document.documentElement.appendChild(n))}));case 9:"demo"==i&&(this.__hasConnectionSettings=!0),!["published","11ty"].includes(i)&&this.__hasConnectionSettings&&(s=new URL("./haxcms-editor-builder.js",u.url).href+"/../",o.cmsSiteEditorBackend.tag="haxcms-backend-".concat(i),t.import("".concat(s,"backends/").concat(o.cmsSiteEditorBackend.tag,".js")).then((function(e){o.cmsSiteEditorBackend.instance||(o.cmsSiteEditorBackend.instance=globalThis.document.createElement(o.cmsSiteEditorBackend.tag),globalThis.document.body.appendChild(o.cmsSiteEditorBackend.instance))})));case 11:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})}],[{key:"tag",get:function(){return"haxcms-editor-builder"}}]);var h}(a(HTMLElement)));customElements.define(h.tag,h)}}}));
diff --git a/storybook/c9bb6866.js b/storybook/38290bdf.js
similarity index 96%
rename from storybook/c9bb6866.js
rename to storybook/38290bdf.js
index 44507cd39..275b96d4d 100644
--- a/storybook/c9bb6866.js
+++ b/storybook/38290bdf.js
@@ -1 +1 @@
-System.register(["./be7cca87.js"],(function(){"use strict";var t,i,s,e,o;return{setters:[function(n){t=n._,i=n.a,s=n.n,e=n.c,o=n.d}],execute:function(){!function(){var n=function(t,i){return Math.random()*(i-t)+t},h=[{front:"#52A7DD",back:"#2287BD"},{front:"#f07178",back:"#c04148"},{front:"#ffcb6b",back:"#cf9b3b"}];function a(t,i){var s,e,o,a,c;this.options=i,this.randomModifier=n(0,99),this.color=h[Math.floor(n(0,h.length))],this.dimensions={x:n(8,16),y:n(8,14)},this.position={x:n(t.width/2,t.width/2),y:n(t.height/2,t.height/2)},this.rotation=n(0,2*Math.PI),this.scale={x:1,y:1},this.velocity=(e=[6,11],o=n((s=[-9,9])[0],s[1]),a=e[1]-e[0]+1,(c=e[1]-Math.abs(n(0,a)+n(0,a)-a))>=e[1]-1&&(c+=Math.random()<.25?n(1,3):0),{x:o,y:-c})}function c(t,i){this.options=i,this.color=h[Math.floor(n(0,h.length))].back,this.radius=n(1,2),this.position={x:n(t.width/2,t.width/2),y:n(t.height/2,t.height/2)},this.velocity={x:n(-6,6),y:n(-8,-12)}}a.prototype.update=function(){this.velocity.x-=this.velocity.x*this.options.dragConfetti,this.velocity.y=Math.min(this.velocity.y+this.options.gravityConfetti,this.options.terminalVelocity),this.velocity.x+=Math.random()>.5?Math.random():-Math.random(),this.position.x+=this.velocity.x,this.position.y+=this.velocity.y,this.scale.y=Math.cos(.09*(this.position.y+this.randomModifier))},c.prototype.update=function(){this.velocity.x-=this.velocity.x*this.options.dragSequins,this.velocity.y=this.velocity.y+this.options.gravitySequins,this.position.x+=this.velocity.x,this.position.y+=this.velocity.y};var r=function(s){function n(){var t;return e(this,n),(t=o(this,n)).canvas=null,t.confetti=[],t.sequins=[],t.options={confettiCount:55,sequinCount:30,gravityConfetti:.25,gravitySequins:.35,dragConfetti:.025,dragSequins:.02,terminalVelocity:4},t}return t(n,s),i(n,[{key:"connectedCallback",value:function(){this.style="display: block; position: relative;",this.canvas=globalThis.document.createElement("canvas"),this.canvas.id="confetti-container-canvas-🎉",this.ctx=this.canvas.getContext("2d"),this.canvas.width=this.offsetWidth,this.canvas.height=this.offsetHeight,this.canvas.style="pointer-events: none; position: absolute; top:0; left: 0; width: 100%; height: 100%; z-index: 1000; image-rendering: crisp-edges;",this.prepend(this.canvas)}},{key:"attributeChangedCallback",value:function(t,i,s){var e=globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches;"popped"===t&&null===i&&!e?this.popConfetti():e&&this.removeAttribute("popped")}},{key:"popConfetti",value:function(){for(var t=0;t0?i.color.front:i.color.back,t.ctx.fillRect(-e/2,-o/2,e,o),t.ctx.setTransform(1,0,0,1,0,0)})),this.sequins.forEach((function(i,s){t.ctx.translate(i.position.x,i.position.y),i.update(),t.ctx.fillStyle=i.color,t.ctx.beginPath(),t.ctx.arc(0,0,i.radius,0,2*Math.PI),t.ctx.fill(),t.ctx.setTransform(1,0,0,1,0,0)})),this.confetti.forEach((function(i,s){i.position.y-25>=t.canvas.height&&t.confetti.splice(s,1)})),this.sequins.forEach((function(i,s){i.position.y-25>=t.canvas.height&&t.sequins.splice(s,1)})),this.sequins.length||this.confetti.length?globalThis.requestAnimationFrame(this.render.bind(this)):this.removeAttribute("popped")}}],[{key:"observedAttributes",get:function(){return["popped"]}}])}(s(HTMLElement));globalThis.customElements&&globalThis.customElements.define&&customElements.define("confetti-container",r)}()}}}));
+System.register(["./72dcd9ad.js"],(function(){"use strict";var t,i,s,e,o;return{setters:[function(n){t=n._,i=n.a,s=n.k,e=n.c,o=n.d}],execute:function(){!function(){var n=function(t,i){return Math.random()*(i-t)+t},h=[{front:"#52A7DD",back:"#2287BD"},{front:"#f07178",back:"#c04148"},{front:"#ffcb6b",back:"#cf9b3b"}];function a(t,i){var s,e,o,a,c;this.options=i,this.randomModifier=n(0,99),this.color=h[Math.floor(n(0,h.length))],this.dimensions={x:n(8,16),y:n(8,14)},this.position={x:n(t.width/2,t.width/2),y:n(t.height/2,t.height/2)},this.rotation=n(0,2*Math.PI),this.scale={x:1,y:1},this.velocity=(e=[6,11],o=n((s=[-9,9])[0],s[1]),a=e[1]-e[0]+1,(c=e[1]-Math.abs(n(0,a)+n(0,a)-a))>=e[1]-1&&(c+=Math.random()<.25?n(1,3):0),{x:o,y:-c})}function c(t,i){this.options=i,this.color=h[Math.floor(n(0,h.length))].back,this.radius=n(1,2),this.position={x:n(t.width/2,t.width/2),y:n(t.height/2,t.height/2)},this.velocity={x:n(-6,6),y:n(-8,-12)}}a.prototype.update=function(){this.velocity.x-=this.velocity.x*this.options.dragConfetti,this.velocity.y=Math.min(this.velocity.y+this.options.gravityConfetti,this.options.terminalVelocity),this.velocity.x+=Math.random()>.5?Math.random():-Math.random(),this.position.x+=this.velocity.x,this.position.y+=this.velocity.y,this.scale.y=Math.cos(.09*(this.position.y+this.randomModifier))},c.prototype.update=function(){this.velocity.x-=this.velocity.x*this.options.dragSequins,this.velocity.y=this.velocity.y+this.options.gravitySequins,this.position.x+=this.velocity.x,this.position.y+=this.velocity.y};var r=function(s){function n(){var t;return e(this,n),(t=o(this,n)).canvas=null,t.confetti=[],t.sequins=[],t.options={confettiCount:55,sequinCount:30,gravityConfetti:.25,gravitySequins:.35,dragConfetti:.025,dragSequins:.02,terminalVelocity:4},t}return t(n,s),i(n,[{key:"connectedCallback",value:function(){this.style="display: block; position: relative;",this.canvas=globalThis.document.createElement("canvas"),this.canvas.id="confetti-container-canvas-🎉",this.ctx=this.canvas.getContext("2d"),this.canvas.width=this.offsetWidth,this.canvas.height=this.offsetHeight,this.canvas.style="pointer-events: none; position: absolute; top:0; left: 0; width: 100%; height: 100%; z-index: 1000; image-rendering: crisp-edges;",this.prepend(this.canvas)}},{key:"attributeChangedCallback",value:function(t,i,s){var e=globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches;"popped"===t&&null===i&&!e?this.popConfetti():e&&this.removeAttribute("popped")}},{key:"popConfetti",value:function(){for(var t=0;t0?i.color.front:i.color.back,t.ctx.fillRect(-e/2,-o/2,e,o),t.ctx.setTransform(1,0,0,1,0,0)})),this.sequins.forEach((function(i,s){t.ctx.translate(i.position.x,i.position.y),i.update(),t.ctx.fillStyle=i.color,t.ctx.beginPath(),t.ctx.arc(0,0,i.radius,0,2*Math.PI),t.ctx.fill(),t.ctx.setTransform(1,0,0,1,0,0)})),this.confetti.forEach((function(i,s){i.position.y-25>=t.canvas.height&&t.confetti.splice(s,1)})),this.sequins.forEach((function(i,s){i.position.y-25>=t.canvas.height&&t.sequins.splice(s,1)})),this.sequins.length||this.confetti.length?globalThis.requestAnimationFrame(this.render.bind(this)):this.removeAttribute("popped")}}],[{key:"observedAttributes",get:function(){return["popped"]}}])}(s(HTMLElement));globalThis.customElements&&globalThis.customElements.define&&customElements.define("confetti-container",r)}()}}}));
diff --git a/storybook/399a2bed.js b/storybook/399a2bed.js
deleted file mode 100644
index d64e21d51..000000000
--- a/storybook/399a2bed.js
+++ /dev/null
@@ -1 +0,0 @@
-System.register(["./be7cca87.js"],(function(e){"use strict";var n,t,a,o,r,i,l,c,s,u,h,d,f;return{setters:[function(e){n=e._,t=e.a,a=e.i,o=e.b,r=e.e,i=e.f,l=e.g,c=e.k,s=e.K,u=e.aW,h=e.h,d=e.c,f=e.d}],execute:function(){var p,b,m,g=e("HAXCMSShareDialog",function(e){function u(){var e;return d(this,u),(e=f(this,u)).link=globalThis.location.href,e}return n(u,e),t(u,[{key:"render",value:function(){var e=this;return c(p||(p=o(['\n \n '])),this.calculateShareCode,["left-col","right-col","search","breadcrumb","print","rss","git-link","footer","qr-code"].map((function(n){return c(b||(b=o(['\n '," \n "])),n,n,e.calculateShareCode,n,n.replace("-"," "))})),this.link,this.calculateShareCode)}},{key:"calculateShareCode",value:function(){var e,n=new FormData(this.shadowRoot.querySelector("form")),t={},a=s(n.entries());try{for(a.s();!(e=a.n()).done;){var o=e.value;t[o[0]]?t[o[0]]+=",".concat(o[1]):t[o[0]]=o[1]}}catch(e){a.e(e)}finally{a.f()}this.link="".concat(globalThis.location.href.replace("iam.","".concat(t.access,"."))).concat(t["disable-features"]?"?disable-features=".concat(t["disable-features"]):"");var r='\n \n ');this.shadowRoot.querySelector("code-sample").innerHTML=r,this.shadowRoot.querySelector("code-sample")._updateContent()}},{key:"firstUpdated",value:function(e){i(l(u.prototype),"firstUpdated",this).call(this,e),this.calculateShareCode()}}],[{key:"styles",get:function(){return[a(m||(m=o(["\n :host {\n display: block;\n overflow: auto;\n }\n .buttons {\n position: absolute;\n bottom: 0;\n z-index: 1000000;\n background-color: var(--simple-modal-titlebar-background, #000000);\n color: var(--simple-modal-titlebar-color, #ffffff);\n left: 0;\n right: 0;\n }\n .buttons button {\n color: black;\n background-color: white;\n }\n simple-icon {\n margin-right: 4px;\n }\n "])))]}},{key:"tag",get:function(){return"haxcms-share-dialog"}},{key:"properties",get:function(){return r(r({},i(l(u),"properties",this)),{},{link:{type:String}})}}])}(u(h)));customElements.define(g.tag,g)}}}));
diff --git a/storybook/3ca512bf.js b/storybook/3ca512bf.js
new file mode 100644
index 000000000..fe52f1406
--- /dev/null
+++ b/storybook/3ca512bf.js
@@ -0,0 +1 @@
+System.register(["./72dcd9ad.js","./cf42b730.js"],(function(t){"use strict";var s,i,e,a,n,o,l,c,r;return{setters:[function(t){s=t._,i=t.a,e=t.f,a=t.c,n=t.d,o=t.m,l=t.t,c=t.N},function(t){r=t.R}],execute:function(){var h=t("HAXCMSToast",function(t){function r(){var t;return a(this,r),(t=n(this,r)).windowControllers=new AbortController,o((function(){t.userName=l(c.userData.userName)})),o((function(){t.darkMode=l(c.darkMode)})),t}return s(r,t),i(r,[{key:"connectedCallback",value:function(){e(r,"connectedCallback",this,3)([]),globalThis.addEventListener("haxcms-toast-hide",this.hideSimpleToast.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("haxcms-toast-show",this.showSimpleToast.bind(this),{signal:this.windowControllers.signal})}},{key:"hideSimpleToast",value:function(t){var s=this;this.alwaysvisible||(this.style.animation="forcedfadeout 0.6s .3s",this.awaitingMerlinInput=!1,setTimeout((function(){s.hide()}),0))}},{key:"disconnectedCallback",value:function(){this.windowControllers.abort(),e(r,"disconnectedCallback",this,3)([])}}],[{key:"tag",get:function(){return"haxcms-toast"}}])}(r));customElements.define(h.tag,h),globalThis.HAXCMSToast=globalThis.HAXCMSToast||{},globalThis.HAXCMSToast.requestAvailability=function(){return globalThis.HAXCMSToast.instance||(globalThis.HAXCMSToast.instance=globalThis.document.createElement(h.tag),globalThis.document.body.appendChild(globalThis.HAXCMSToast.instance)),globalThis.HAXCMSToast.instance};t("HAXCMSToastInstance",globalThis.HAXCMSToast.requestAvailability())}}}));
diff --git a/storybook/3d76aa9c.js b/storybook/3d76aa9c.js
deleted file mode 100644
index 1d757c970..000000000
--- a/storybook/3d76aa9c.js
+++ /dev/null
@@ -1 +0,0 @@
-System.register(["./be7cca87.js"],(function(t){"use strict";var n,e,a,s,r,o,i,h,l,c;return{setters:[function(t){n=t._,e=t.a,a=t.f,s=t.g,r=t.i,o=t.b,i=t.k,h=t.S,l=t.c,c=t.d}],execute:function(){var d,g,u,p,b,f=t("simpleColorsSwatchInfo",function(t){function h(){var t;return l(this,h),(t=c(this,h)).swatchId="grey_0",t.swatchName="grey-1",t}return n(h,t),e(h,[{key:"render",value:function(){var t=this;return i(d||(d=o(['\n \n \n CSS Variables and Classes for ','\n \n \n \n Variable Name \n Color \n With dark Attribute \n \n \n \n \n \n --simple-colors-default-theme-','\n \n default color \n inverted color \n \n \n --simple-colors-fixed-theme-',' \n default color \n fixed color \n \n \n
\n\n \n \n WCAG 2.0 AA Contrast with ','\n \n \n \n Color Name \n Regular Text \n Large Text* \n \n \n \n ',"\n \n
\n \n * Large text is defined as bold text at least 14pt or normal text at\n least 18pt \n
\n "])),this.swatchName,this.swatchName,this._getBg(this.swatchId),this._getInverseBg(this.swatchId),this.swatchName,this._getBg(this.swatchId),this._getBg(this.swatchId),this.swatchName,this._getOptions(this.colors).map((function(n){return i(g||(g=o(['\n \n '," \n \n ","\n \n \n ","\n \n \n "])),n,t._getAa(t.swatchId,n).map((function(e){return i(u||(u=o(['\n ',"-"," \n "])),t._getContrastBg(n,e),n,e)})),t._getAaLarge(t.swatchId,n).map((function(e){return i(p||(p=o(['\n ',"-"," \n "])),t._getContrastBg(n,e),n,e)})))})))}},{key:"_getAa",value:function(t,n){var e=t.split("_"),a=parseInt(e[1]);return this.getContrastingShades(!1,e[0],a,n)}},{key:"_getAaLarge",value:function(t,n){return this._getAa(t,n,!0)}},{key:"_getBg",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=this._getColors(t,n);return"background: "+e[0]+"; color: "+e[1]+";"}},{key:"_getInverseBg",value:function(t){return this._getBg(t,!0)}},{key:"_getOptions",value:function(t){return Object.keys(t)}},{key:"_getContrastBg",value:function(t,n){return this._getBg(t+"_"+(parseInt(n)-1))}},{key:"_getColors",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=t.split("_"),a=n?11-parseInt(e[1]):parseInt(e[1]);return[this.colors[e[0]][a],this.colors.grey[a>5?0:11]]}}],[{key:"styles",get:function(){return[a(s(h),"styles",this),r(b||(b=o(["\n :host {\n display: block;\n margin: 15px 0;\n }\n :host([hidden]) {\n display: none;\n }\n :host table {\n width: 100%;\n border: 1px solid black;\n border-radius: 3px;\n border-collapse: collapse;\n margin: 0 0 15px;\n }\n :host table caption {\n font-weight: bold;\n background-color: #222;\n color: white;\n }\n :host table th {\n background-color: #e0e0e0;\n }\n :host table caption,\n :host table th,\n :host table td {\n padding: 5px;\n border: 1px solid black;\n text-align: left;\n line-height: 160%;\n }\n :host table td span {\n padding: 5px;\n white-space: nowrap;\n margin: 5px 0;\n }\n "])))]}},{key:"properties",get:function(){return{swatchId:{attribute:"swatch-id",type:String,reflect:!0},swatchName:{attribute:"swatch-name",type:String,reflect:!0}}}},{key:"tag",get:function(){return"simple-colors-swatch-info"}}])}(h));customElements.define(f.tag,f)}}}));
diff --git a/storybook/45c8af3d.js b/storybook/45c8af3d.js
deleted file mode 100644
index 251fe7f9a..000000000
--- a/storybook/45c8af3d.js
+++ /dev/null
@@ -1 +0,0 @@
-System.register(["./be7cca87.js"],(function(e){"use strict";var n,t,i,a,o,s,r,d,l,h,c,u,p,g,m,v,f,w,y,b,x,k,I,S,M;return{setters:[function(e){n=e.aA,t=e.v,i=e.M,a=e.a,o=e.c,s=e.N,r=e.aE,d=e.aF,l=e.p,h=e.t,c=e._,u=e.f,p=e.g,g=e.i,m=e.b,v=e.e,f=e.k,w=e.aZ,y=e.d,b=e.j,x=e.l,k=e.q,I=e.bb,S=e.ba,M=e.h}],execute:function(){n({enforceActions:!1}),t(["haxcms"]),i.add({endpoint:"/api/apps/haxcms/aiChat",name:"@haxcms/aiChat",title:"AI Chat",description:"AI based chat agent that can answer questions about a site",params:{site:"location of the HAXcms site OR site.json data",type:"site for site.json or link for remote loading",question:"Question to ask of the AI",engine:"which engine to use as we test multiple",context:"context to query based on. Course typical"}});var C=function(){return a((function e(){var n=this;o(this,e),this.buttonIcon="hax:wizard-hat",this.buttonLabel="Merlin-AI",this.chatLog=[],this.context="phys211",this.currentSuggestions=[],this.darkMode=null,void 0!==s.darkMode?this.darkMode=s.darkMode:this.darkMode=!1,this.dataCollectionEnabled=!0,this.developerModeEnabled=!1,void 0!==s.editMode?this.editMode=s.editMode:this.editMode=!1,this.engine="alfred",this.isFullView=!1,this.isInterfaceHidden=!0,this.isLoading=null,this.merlinIndex=0,this.merlinTypeWriterSpeed=2,this.messageIndex=0,this.promptCharacterLimit,this.promptPlaceholder="Enter your prompt here...",this.userIndex=0,this.userTypeWriterSpeed=0,void 0!==s.userData.userName?this.userName=s.userData.userName:this.userName="guest",this.date=new Date,this.month=this.date.getMonth()+1,this.day=this.date.getDate(),r(this,{buttonIcon:d,chatLog:d,context:d,darkMode:d,dataCollectionEnabled:d,developerModeEnabled:d,editMode:d,engine:d,isFullView:d,isInterfaceHidden:d,isLoading:d,merlinIndex:d,messageIndex:d,userIndex:d}),l((function(){h(n.buttonIcon),h(n.chatLog),h(n.context);var e=h(s.darkMode);h(n.dataCollectionEnabled),h(n.developerModeEnabled);var t=h(s.editMode);h(n.engine),h(n.isFullView),h(n.isInterfaceHidden);var i=h(n.isLoading);h(n.merlinIndex),h(n.messageIndex),h(n.userIndex),n.buttonIcon=i?"hax:loading":"hax:wizard-hat",n.darkMode=!!e,n.editMode=!!t}))}),[{key:"startAI",value:function(){this.handleMessage("merlin","Hello! My name is Merlin. I am currently in beta, and may not yet be feature complete, so you may encounter some bugs. I can currently only answer questions related to physics. How can I assist you today?"),2===this.month&&12===this.day||6===this.month&&6===this.day||7===this.month&&27===this.day||8===this.month&&15===this.day||9===this.month&&19===this.day||10===this.month&&1===this.day||10===this.month&&5===this.day||12===this.month&&5===this.day||12===this.month&&18===this.day?this.currentSuggestions=[{suggestion:"Who are you?",type:"hax"},{suggestion:"What can you do for me?",type:"help"},{suggestion:"How do I use you?",type:"help"},{suggestion:"Why is my character wearing a hat?",type:"hax"}]:this.currentSuggestions=[{suggestion:"Who are you?",type:"hax"},{suggestion:"What can you do for me?",type:"help"},{suggestion:"How do I use you?",type:"help"}],document.querySelector("chat-agent").shadowRoot.querySelector("chat-interface").shadowRoot.querySelector("chat-message").shadowRoot.querySelectorAll("chat-suggestion").forEach((function(e){e.hasAttribute("disabled")&&e.removeAttribute("disabled"),e.hasAttribute("chosen-prompt")&&e.removeAttribute("chosen-prompt")}))}},{key:"handleMessage",value:function(e,n){var t;switch(this.devStatement('Writing message "'.concat(n,'" by ').concat(e," to chatLog."),"info"),this.messageIndex++,e){case"merlin":this.merlinIndex++,t=this.merlinIndex;break;case this.userName:this.userIndex++,t=this.userIndex}var i=new Date,a={messageID:this.messageIndex,author:e,message:n,authorMessageIndex:t,timestamp:i.toString().replace(/\s/g,"-")};this.chatLog.push(a),e===this.userName&&this.handleInteraction(n)}},{key:"handleInteraction",value:function(e){var n=this;switch(this.devStatement("Prompt sent to: ".concat(this.engine,". Prompt sent: ").concat(e),"info"),this.currentSuggestions=[],e){case"Who are you?":this.currentSuggestions=[{suggestion:"What can you do for me?",type:"help"},{suggestion:"How do I use you?",type:"help"}],this.handleMessage("merlin","I am Merlin. I was created for use within HAX websites as an assistant to help you with your questions. How may I help you today?");break;case"What can you do for me?":this.currentSuggestions=[{suggestion:"Who are you?",type:"hax"},{suggestion:"How do I use you?",type:"help"}],this.handleMessage("merlin","I can answer questions and chat with you about information relevant to the website you are navigating. How can I help you?");break;case"How do I use you?":this.currentSuggestions=[{suggestion:"Who are you?",type:"hax"},{suggestion:"What can you do for me?",type:"help"}],this.handleMessage("merlin","I support numerous functions. You can ask me questions, as well as download our chat log and reset our chat. You can start asking me questions by clicking on one of the suggested prompts, or by typing a prompt in the input box below and pressing the send button or pressing the enter key on your keyboard. Here are some of the keyboard controls you can utilize: \n 1. Tab Key - Navigates you through the numerous usable buttons. \n 2. Enter Key (in text area) - Will submit the prompt you wrote. \n 3. Enter key (When focusing on a button) - Will act in the same way as clicking the button. \n 4. Up & Down Arrow Keys (in text area) - will navigate you through previously sent prompts so you can send them again.");break;case"Why is my character wearing a hat?":this.currentSuggestions=[{suggestion:"Who are you?",type:"hax"},{suggestion:"What can you do for me?",type:"help"},{suggestion:"How do I use you?",type:"help"}],this.handleMessage("merlin","Your character is wearing a hat because today is either a special (hat related) holiday, or another special occassion!");break;case"Why can't you connect?":this.currentSuggestions=[{suggestion:"How do I fix this connection issue?",type:"network"}],this.handleMessage("merlin","I am either unable to connect to the internet, or a service I connect to is not available, meaning I cannot research how to respond to your prompt.");break;case"How do I fix this connection issue?":this.currentSuggestions=[{suggestion:"Why can't you connect?",type:"network"}],this.handleMessage("merlin","Please ensure you are connected to the internet. I cannot respond to (most of) your questions if you are not connected to the internet. If you are connected, it is likely one of my connected services is having an issue, I will try to fix that and be back to help you soon.");break;default:globalThis.document.querySelector("base")&&globalThis.document.querySelector("base").href;var t={site:{file:"https://haxtheweb.org/site.json"},type:"site",question:e,engine:this.engine,context:this.context};this.isLoading=!0,i.call("@haxcms/aiChat",t).then((function(e){200==e.status&&(n.answers=[e.data.answers],n.question=e.data.question,n.currentSuggestions=[]),n.isLoading=!1,n.handleMessage("merlin",e.data.answers)})).catch((function(e){n.isLoading=!1,n.currentSuggestions=[{suggestion:"Why can't you connect?",type:"network"},{suggestion:"How do I fix this connection issue?",type:"network"}],n.handleMessage("merlin","I'm sorry, I'm having trouble connecting right now. Please try again soon. If you'd like to learn more, please click on one of the suggested prompts."),console.error(e)}))}}},{key:"handleDownload",value:function(e){if(this.devStatement("Downloading chatlog as ".concat(e,"."),"info"),0!==this.chatLog.length){var n=JSON.stringify(this.chatLog,void 0,2),t=new Date,i="".concat(this.userName,"-chat-log-").concat(t.toString().replace(/\s/g,"-"),".").concat(e),a=document.createElement("a");a.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(n)),a.setAttribute("download",i),a.click(),a.remove()}}},{key:"devStatement",value:function(e,n){if(this.developerModeEnabled)switch(n){case"log":console.log("CHAT-AGENT-DEV-MODE: ".concat(e));break;case"info":console.info("CHAT-AGENT-DEV-MODE: ".concat(e));break;case"warn":console.warn("CHAT-AGENT-DEV-MODE: ".concat(e));break;case"error":console.error("CHAT-AGENT-DEV-MODE: ".concat(e));break;default:console.error("No devStatement type specified")}}}])}();globalThis.ChatAgentStore=globalThis.ChatAgentStore||{},globalThis.ChatAgentStore.requestAvailability=function(){return globalThis.ChatAgentStore.instance||(globalThis.ChatAgentStore.instance=document.createElement("chat-agent-store"),document.body.appendChild(globalThis.ChatAgentStore.instance)),globalThis.ChatAgentStore.instance};var A,E,L,q,T,D=new C,H={url:new URL("./elements/chat-agent/lib/chat-button.js",document.baseURI).href},P=function(e){function n(){var e;return o(this,n),(e=y(this,n)).buttonIcon=null,e.darkMode=null,e.isFullView=null,e.isInterfaceHidden=null,l((function(){e.buttonIcon=h(D.buttonIcon),e.darkMode=h(D.darkMode),e.isFullView=h(D.isFullView),e.isInterfaceHidden=h(D.isInterfaceHidden)})),e}return c(n,e),a(n,[{key:"render",value:function(){return f(A||(A=m(['\n \n "])),this.handleChatButton,this.keyPress,this.isInterfaceHidden?"Open Interface":"Close Interface",this.buttonIcon,D.buttonLabel)}},{key:"keyPress",value:function(e){"Enter"===e.key&&(e.preventDefault(),D.devStatement("Chat button pressed using Enter key.","log"),this.handleChatButton())}},{key:"handleChatButton",value:function(){D.devStatement("Chat button pressed.","log"),D.isInterfaceHidden=!this.isInterfaceHidden}}],[{key:"tag",get:function(){return"chat-button"}},{key:"styles",get:function(){return[u(p(n),"styles",this),g(E||(E=m(["\n /* https://oer.hax.psu.edu/bto108/sites/haxcellence/documentation/ddd */\n\n :host {\n display: block;\n z-index: 999998;\n }\n\n .chat-button-wrapper {\n align-items: center;\n background-color: var(--data-theme-primary, var(--ddd-primary-1));\n border-color: light-dark(\n var(--ddd-theme-default-coalyGray),\n var(--ddd-theme-default-white)\n );\n border-radius: var(--ddd-radius-lg);\n border-style: solid;\n border-width: 0.75px;\n box-shadow: 0 4px rgba(0, 3, 33, 0.4);\n cursor: pointer;\n display: flex;\n flex-direction: column;\n height: 96px;\n justify-content: center;\n width: 96px;\n }\n\n .chat-button-wrapper:hover,\n .chat-button-wrapper:focus-visible {\n box-shadow: 0 6px rgba(0, 3, 33, 0.4);\n transform: translateY(-2px);\n }\n\n /* TODO Figure out how to get this to work with enter key */\n .chat-button-wrapper:active {\n box-shadow: 0 1px rgba(0, 3, 33, 0.4);\n transform: translateY(3px);\n }\n\n :host([is-full-view]:not([is-interface-hidden])) .chat-button-wrapper {\n display: none;\n }\n\n .chat-button-wrapper:hover .label-wrapper,\n .chat-button-wrapper:focus-visible .label-wrapper {\n text-decoration: underline;\n }\n\n .icon-wrapper {\n align-items: center;\n background-color: var(--ddd-theme-default-white);\n border-radius: var(--ddd-radius-circle);\n display: flex;\n height: 56px;\n justify-content: center;\n margin-bottom: var(--ddd-spacing-1);\n width: 56px;\n }\n\n simple-icon-lite {\n --simple-icon-height: var(--ddd-icon-md);\n --simple-icon-width: var(--ddd-icon-md);\n color: var(--data-theme-primary, var(--ddd-primary-13));\n }\n\n .label-wrapper {\n background-color: var(--ddd-theme-default-white);\n border-radius: var(--ddd-radius-xs);\n color: var(--ddd-theme-default-coalyGray);\n font-size: var(--ddd-font-size-4xs);\n font-weight: var(--ddd-font-weight-medium);\n max-width: var(--ddd-spacing-19);\n overflow: hidden;\n padding: var(--ddd-spacing-1);\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n /* Prevent text highlighting in button */\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n\n :host([dark-mode]) .label-wrapper {\n background-color: var(--ddd-theme-default-coalyGray);\n color: var(--ddd-theme-default-white);\n }\n "])))]}},{key:"properties",get:function(){return v(v({},u(p(n),"properties",this)),{},{buttonIcon:{type:String,attribute:"button-icon"},darkMode:{type:Boolean,attribute:"dark-mode",reflect:!0},isFullView:{type:Boolean,attribute:"is-full-view",reflect:!0},isInterfaceHidden:{type:Boolean,attribute:"is-interface-hidden",reflect:!0}})}},{key:"haxProperties",get:function(){return new URL("./lib/".concat(this.tag,".haxProperties.json"),H.url).href}}])}(w);globalThis.customElements.define(P.tag,P);var R,V,B={url:new URL("./elements/chat-agent/lib/chat-control-bar.js",document.baseURI).href},j=function(e){function n(){var e;return o(this,n),(e=y(this,n)).dataCollectionEnabled=null,e.isFullView=null,e.isInterfaceHidden=null,l((function(){e.dataCollectionEnabled=h(D.dataCollectionEnabled),e.isFullView=h(D.isFullView),e.isInterfaceHidden=h(D.isInterfaceHidden)})),e}return c(n,e),a(n,[{key:"render",value:function(){return f(L||(L=m(['\n \x3c!-- https://open-apis.hax.cloud/?path=/story/media-icons--hax-iconset-story --\x3e\n\n \n
\n \n \n \n Download Chat Log \n\n \n \n \n Reset Chat \n\n \n \n Data Collection \n \n Toggle Data Collection \n\n \n \n \n Toggle Developer Mode \n
\n
\n \n \n \n '," \n\n ","\n
\n
\n "])),this.handleDownloadLogButton,this.isFullView?"right":"top",this.handleResetButton,this.isFullView?"right":"top",this.handleDataCollectionButton,this.isFullView?"right":"top",this.handleDevModeButton,this.isFullView?"right":"top",this.handleViewButton,this.isFullView?"Exit Full View":"Enter Full View",this.isFullView?"icons:fullscreen-exit":"icons:fullscreen",this.isFullView?"left":"top",this.isFullView?"Exit Full View":"Enter Full View",this.isFullView?f(q||(q=m(['\n \n \n \n Hide Interface \n '])),this.handleHideButton,this.isFullView?"left":"top"):"")}},{key:"handleDownloadLogButton",value:function(){D.devStatement("Download log button pressed.","log"),this.downloadChatLog()}},{key:"handleResetButton",value:function(){D.devStatement("Reset button pressed.","log"),confirm("Reset the chat?")&&(confirm("Download the chat log before you reset?")?(D.devStatement("Download chat log before reset confirmed.","info"),this.downloadChatLog()):D.devStatement("Download chat log before reset denied.","warning"),this.resetChat())}},{key:"handleDataCollectionButton",value:function(){D.dataCollectionEnabled=!D.dataCollectionEnabled,this.dataCollectionEnabled?alert("Your conversations will be used to train our AI models"):alert("Your conversations will not be used to train our AI models")}},{key:"handleDevModeButton",value:function(){D.developerModeEnabled=!D.developerModeEnabled}},{key:"handleViewButton",value:function(){D.devStatement("View switch button pressed.","log"),D.isFullView=!this.isFullView,this.requestUpdate(),D.devStatement("View switched to: "+(D.isFullView?"full":"standard"),"info")}},{key:"handleHideButton",value:function(){D.devStatement("Hide button pressed.","log"),this.isInterfaceHidden||(D.isInterfaceHidden=!0)}},{key:"downloadChatLog",value:function(){D.devStatement("Calling download function...","info"),D.handleDownload("txt")}},{key:"resetChat",value:function(){D.devStatement("Resetting chat...","info"),D.chatLog=[],D.merlinIndex=0,D.messageIndex=0,D.userIndex=0,D.startAI()}}],[{key:"tag",get:function(){return"chat-control-bar"}},{key:"styles",get:function(){return[u(p(n),"styles",this),g(T||(T=m(["\n /* https://oer.hax.psu.edu/bto108/sites/haxcellence/documentation/ddd */\n\n :host {\n container-type: inline-size;\n display: block;\n }\n\n .chat-control-bar-wrapper {\n align-items: center;\n display: flex;\n justify-content: space-between;\n padding: var(--ddd-spacing-2) var(--ddd-spacing-0);\n }\n\n button {\n background-color: #2b2a33;\n border-radius: var(--ddd-radius-sm);\n color: var(--ddd-theme-default-white);\n }\n\n button:hover,\n button:focus-visible {\n background-color: #52525e;\n }\n\n button > simple-icon-lite {\n --simple-icon-color: var(--ddd-theme-default-white);\n }\n\n simple-tooltip {\n --simple-tooltip-delay-in: 1000ms;\n }\n\n .data-collection-icon {\n --simple-icon-color: var(--ddd-theme-default-original87Pink);\n }\n\n .data-collection-label {\n font: var(--ddd-font-primary);\n font-size: 12px;\n }\n\n :host([data-collection-enabled]) .data-collection-icon {\n --simple-icon-color: var(--ddd-theme-default-futureLime);\n }\n\n /* Phones */\n @media only screen and (max-width: 425px),\n only screen and (max-height: 616px) {\n #view-button {\n display: none;\n }\n }\n\n @container (max-width: 330px) {\n .data-collection-label {\n display: none;\n }\n }\n "])))]}},{key:"properties",get:function(){return v(v({},u(p(n),"properties",this)),{},{dataCollectionEnabled:{type:Boolean,attribute:"data-collection-enabled",reflect:!0}})}},{key:"haxProperties",get:function(){return new URL("./lib/".concat(this.tag,".haxProperties.json"),B.url).href}}])}(w);globalThis.customElements.define(j.tag,j);var F,U,W={url:new URL("./elements/chat-agent/lib/chat-developer-panel.js",document.baseURI).href},N=function(e){function n(){var e;return o(this,n),(e=y(this,n)).chatLog=[],e.context=null,e.engine=null,e.isFullView=null,l((function(){e.chatLog=h(D.chatLog),e.context=h(D.context),e.engine=h(D.engine),e.isFullView=h(D.isFullView)})),e}return c(n,e),a(n,[{key:"render",value:function(){return f(R||(R=m(['\n \n
\n \x3c!-- Maybe convert buttons to simple-cta --\x3e\n
\n \n \n \n
\n \n console.table() user chat log \n
\n \n
Print User Chat Log as Table to Console \n\n
\n \n \n \n
\n \n console.table() merlin chat log \n
\n \n
Print Merlin Chat Log as Table to Console \n\n
\n \n \n \n
\n \n console.table() entire chat log \n
\n \n
Print Entire Chat Log as Table to Console \n\n
\n \n \n \n
\n \n Download chat log as .json \n
\n \n
Download Chat Log as .json \n
\n\n
\n \n Alfred (OpenAI) \n Robin (Anthropic) \n Catwoman (ChatGPT) \n \n\n \n Phys 211 \n HAX Docs \n Astro 130 \n Intro to Python \n Janet Law \n UDNI \n Cyber 440 \n ciscopdfs \n \n
\n
\n '])),this.handleConsoleTableButton,this.isFullView?"right":"top",this.handleConsoleTableButton,this.isFullView?"right":"top",this.handleConsoleTableButton,this.isFullView?"left":"top",this.handleDownloadAsJsonButton,this.isFullView?"left":"top",this.handleSwitchEngine,this.handleContextChange)}},{key:"firstUpdated",value:function(e){var t=this;u(p(n.prototype),"firstUpdated",this)&&u(p(n.prototype),"firstUpdated",this).call(this,e);var i=this.shadowRoot.querySelectorAll("#engine-selection option"),a=this.shadowRoot.querySelectorAll("#context-selection option");i.forEach((function(e){e.value===t.engine&&(e.selected=!0)})),a.forEach((function(e){e.value===D.context&&(e.selected=!0)}))}},{key:"handleConsoleTableButton",value:function(e){var n=e.currentTarget.id;switch(console.info("HAX-DEV-MODE: ".concat(n," button pressed.")),n){case"console-table-user":console.table(this.compileChatLog(D.userName));break;case"console-table-merlin":console.table(this.compileChatLog("merlin"));break;case"console-table-all":console.table(this.chatLog)}}},{key:"compileChatLog",value:function(e){D.devStatement('Compiling "'.concat(e,'" chat log...'),"info");var n=[];return this.chatLog.forEach((function(t){t.author===e&&n.push(t)})),n}},{key:"handleDownloadAsJsonButton",value:function(){D.devStatement("Calling download funtion...","info"),D.handleDownload("json")}},{key:"handleSwitchEngine",value:function(){D.engine=this.shadowRoot.querySelector("#engine-selection").value,D.devStatement("Engine switched to ".concat(D.engine),"info")}},{key:"handleContextChange",value:function(){D.context=this.shadowRoot.querySelector("#context-selection").value,D.devStatement("Context switched to ".concat(D.context),"info")}}],[{key:"tag",get:function(){return"chat-developer-panel"}},{key:"styles",get:function(){return[u(p(n),"styles",this),g(V||(V=m(["\n /* https://oer.hax.psu.edu/bto108/sites/haxcellence/documentation/ddd */\n\n :host {\n container-type: inline-size;\n display: block;\n }\n\n .chat-developer-panel-wrapper {\n background-color: var(--ddd-theme-default-keystoneYellow);\n border-radius: var(--ddd-radius-sm);\n display: flex;\n flex-direction: column;\n gap: var(--ddd-spacing-2);\n padding: var(--ddd-spacing-1) var(--ddd-spacing-1);\n }\n\n .console-table {\n align-items: center;\n display: flex;\n gap: var(--ddd-spacing-1);\n justify-content: space-between;\n }\n\n .switches {\n align-items: center;\n display: flex;\n justify-content: center;\n gap: var(--ddd-spacing-1);\n }\n\n button,\n select {\n align-items: center;\n background-color: #2b2a33;\n border-radius: var(--ddd-radius-sm);\n color: var(--ddd-theme-default-white);\n cursor: pointer;\n display: flex;\n gap: var(--ddd-spacing-1);\n justify-content: center;\n font: var(--ddd-font-primary);\n font-size: 12px;\n }\n\n label {\n background-color: var(--ddd-theme-default-coalyGray);\n color: var(--ddd-theme-default-white);\n font-size: 14px;\n padding: var(--ddd-spacing-2);\n }\n\n button:hover,\n button:focus-visible {\n background-color: #52525e;\n }\n\n button > simple-icon-lite {\n --simple-icon-color: var(--ddd-theme-default-white);\n }\n\n simple-tooltip {\n --simple-tooltip-delay-in: 1000ms;\n }\n\n @container (max-width: 500px) {\n .btn-txt {\n display: none;\n }\n }\n\n @container (max-width: 180px) {\n .console-table {\n flex-wrap: wrap;\n justify-content: center;\n }\n }\n\n @media only screen and (max-height: 575px) {\n :host {\n display: none;\n }\n }\n "])))]}},{key:"properties",get:function(){return v(v({},u(p(n),"properties",this)),{},{isFullView:{type:Boolean,attribute:"is-full-view",reflect:!0}})}},{key:"haxProperties",get:function(){return new URL("./lib/".concat(this.tag,".haxProperties.json"),W.url).href}}])}(w);globalThis.customElements.define(N.tag,N);var z,G,O,Y,X={url:new URL("./elements/chat-agent/lib/chat-input.js",document.baseURI).href},K=function(e){function n(){var e;return o(this,n),(e=y(this,n)).chatLog=[],e.darkMode=null,e.messageIndex=null,e.userIndex=null,e.previousMessagesIndex=null,e.userName=null,l((function(){e.chatLog=h(D.chatLog),e.darkMode=h(D.darkMode),e.messageIndex=h(D.messageIndex),e.userIndex=h(D.userIndex),e.previousMessagesIndex=h(e.messageIndex),e.userName=h(D.userName)})),e}return c(n,e),a(n,[{key:"render",value:function(){return f(F||(F=m(['\n \n '])),D.promptPlaceholder,this.handleKeyPress,this.handleDirectionButtons,this.handleDirectionButtons,this.handleSendButton)}},{key:"handleKeyPress",value:function(e){switch(e.key){case"Enter":e.preventDefault(),this.handleSendButton();break;case"ArrowUp":e.preventDefault(),this.displayPreviousMessages("up");break;case"ArrowDown":e.preventDefault(),this.displayPreviousMessages("down")}}},{key:"handleDirectionButtons",value:function(e){var n=e.currentTarget.id;switch(D.devStatement("".concat(n," button pressed."),"info"),n){case"input-up-btn":this.displayPreviousMessages("up");break;case"input-down-btn":this.displayPreviousMessages("down")}}},{key:"handleSendButton",value:function(){var e=this.shadowRoot.querySelector("#user-input").value;D.promptCharacterLimit>0&&e.length>D.promptCharacterLimit&&alert("Please shorten your prompt to no more than ".concat(D.promptCharacterLimit," characters.")),""!==e?(D.devStatement('Send function activated. "'.concat(e,'" sent to Merlin.'),"info"),D.handleMessage(D.userName,e),this.shadowRoot.querySelector("#user-input").value=""):D.devStatement("Send button activated. No prompt to send.","warn")}},{key:"displayPreviousMessages",value:function(e){var n=this.shadowRoot.querySelector("#user-input");switch(e){case"up":if(this.previousMessagesIndex>1){for(this.previousMessagesIndex--,D.devStatement("Arrow Up pressed. Previous message index = ".concat(this.previousMessagesIndex," and message index = ").concat(this.messageIndex),"info");this.chatLog[this.previousMessagesIndex].author!==this.userName&&this.previousMessagesIndex>=1;)if(this.previousMessagesIndex--,this.previousMessagesIndex<1){this.previousMessagesIndex++;break}n.value=this.chatLog[this.previousMessagesIndex].message}break;case"down":if(this.previousMessagesIndexthis.messageIndex){this.previousMessagesIndex=this.messageIndex;break}this.previousMessagesIndex>=this.messageIndex?n.value="":n.value=this.chatLog[this.previousMessagesIndex].message}else n.value="";D.devStatement("Arrow Down pressed. Previous message index = ".concat(this.previousMessagesIndex," and message index = ").concat(this.messageIndex),"info");break;default:D.devStatement("Unknown direction: ".concat(e,"."),"error")}}},{key:"firstUpdated",value:function(e){u(p(n.prototype),"firstUpdated",this)&&u(p(n.prototype),"firstUpdated",this).call(this,e),D.promptCharacterLimit>0&&this.shadowRoot.querySelector("#user-input").setAttribute("maxlength","".concat(D.promptCharacterLimit))}}],[{key:"tag",get:function(){return"chat-input"}},{key:"styles",get:function(){return[u(p(n),"styles",this),g(U||(U=m(["\n /* https://oer.hax.psu.edu/bto108/sites/haxcellence/documentation/ddd */\n\n :host {\n display: block;\n font-family: var(--ddd-font-primary);\n }\n\n .chat-input-wrapper {\n align-items: center;\n display: flex;\n gap: var(--ddd-spacing-3);\n justify-content: center;\n padding: var(--ddd-spacing-2) var(--ddd-spacing-3);\n border-radius: var(--ddd-radius-lg);\n }\n\n :host([dark-mode]) .chat-input-wrapper {\n background-color: var(--ddd-theme-default-coalyGray);\n color: var(--ddd-theme-default-white);\n }\n\n #user-input {\n background-color: var(--ddd-theme-default-white);\n border-radius: var(--ddd-radius-lg);\n color: var(--ddd-theme-default-coalyGray);\n padding: var(--ddd-spacing-2) var(--ddd-spacing-3);\n resize: none;\n scrollbar-width: none;\n width: 85%;\n }\n\n :host([dark-mode]) #user-input {\n background-color: var(--ddd-theme-default-coalyGray);\n color: var(--ddd-theme-default-white);\n }\n\n button {\n align-items: center;\n background-color: #2b2a33;\n border-radius: var(--ddd-radius-sm);\n color: var(--ddd-theme-default-white);\n cursor: pointer;\n display: flex;\n gap: var(--ddd-spacing-1);\n justify-content: center;\n }\n\n button:hover,\n button:focus-visible {\n background-color: #52525e;\n }\n\n .send-button {\n align-items: center;\n background-color: var(--data-theme-primary, var(--ddd-primary-1));\n border-radius: var(--ddd-radius-circle);\n box-shadow: 0 4px rgba(0, 3, 33, 0.2);\n cursor: pointer;\n display: flex;\n height: 52px;\n justify-content: center;\n width: 52px;\n }\n\n .send-button:hover,\n .send-button:focus-visible {\n box-shadow: 0 6px rgba(0, 3, 33, 0.2);\n transform: translateY(-2px);\n }\n\n .send-button:active {\n box-shadow: 0 1px rgba(0, 3, 33, 0.2);\n transform: translateY(3px);\n }\n\n simple-icon-lite {\n color: var(\n --lowContrast-override,\n var(--ddd-theme-bgContrast, white)\n );\n }\n\n simple-tooltip {\n --simple-tooltip-delay-in: 1000ms;\n }\n "])))]}},{key:"properties",get:function(){return v(v({},u(p(n),"properties",this)),{},{darkMode:{type:Boolean,attribute:"dark-mode",reflect:!0}})}},{key:"haxProperties",get:function(){return new URL("./lib/".concat(this.tag,".haxProperties.json"),X.url).href}}])}(w);globalThis.customElements.define(K.tag,K);var J,Q,_,Z,$,ee=function(e){function n(){var e;return o(this,n),(e=y(this,n)).chatLog=[],e.darkMode=!1,e.developerModeEnabled=null,e.isFullView=null,e.isInterfaceHidden=null,e.hasEditorUI=null,l((function(){e.chatLog=h(D.chatLog),e.darkMode=h(D.darkMode),e.developerModeEnabled=h(D.developerModeEnabled),e.isFullView=h(D.isFullView),e.isInterfaceHidden=h(D.isInterfaceHidden);var n=document.querySelector("#site");window.innerHeight>1e3?e.isFullView&&!e.isInterfaceHidden?n.style.width="65%":n.style.width="100%":e.isFullView&&!e.isInterfaceHidden?n.style.width="75%":n.style.width="100%",document.querySelector("haxcms-site-editor-ui")?e.hasEditorUI=!0:e.hasEditorUI=!1})),e}return c(n,e),a(n,[{key:"render",value:function(){return f(z||(z=m(['\n \n '])),D.developerModeEnabled?f(G||(G=m([" "]))):"",this.chatLog.map((function(e){return f(O||(O=m(['\n \n '])),e.message,e.author===D.userName,D.currentSuggestions.length>0)})),D.promptPlaceholder)}},{key:"updated",value:(t=b(x().mark((function e(t){var i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u(p(n.prototype),"updated",this)&&u(p(n.prototype),"updated",this).call(this,t),this.developerModeEnabled&&console.table(t),!t.has("chatLog")||t.has("darkMode")||t.has("developerModeEnabled")||t.has("hasEditorUI")||t.has("isInterfaceHidden")){e.next=6;break}return e.next=5,this.updateComplete;case 5:this.chatLog.length>1?(i=this.shadowRoot.querySelector(".chat-messages")).scrollTo(0,i.scrollHeight):SCROLLABLE_ELEMENT.scrollTop(0);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}],[{key:"tag",get:function(){return"chat-interface"}},{key:"styles",get:function(){return[u(p(n),"styles",this),g(Y||(Y=m(["\n /* https://oer.hax.psu.edu/bto108/sites/haxcellence/documentation/ddd */\n\n :host {\n display: block;\n width: 100%;\n z-index: 999999;\n }\n\n /* Chat Interface Wrapper */\n .chat-interface-wrapper {\n background-color: transparent;\n }\n\n :host([is-full-view]) .chat-interface-wrapper {\n background-color: var(--ddd-theme-default-potentialMidnight);\n height: 100vh;\n padding: var(--ddd-spacing-3);\n }\n\n :host([is-interface-hidden]) .chat-interface-wrapper {\n display: none;\n }\n\n /* Chat Wrapper */\n .chat-wrapper {\n background-color: var(--data-theme-primary, var(--ddd-primary-1));\n border-radius: var(--ddd-radius-sm);\n border-style: solid;\n box-shadow: var(--ddd-boxShadow-xl);\n padding: var(--ddd-spacing-0) var(--ddd-spacing-2)\n var(--ddd-spacing-2) var(--ddd-spacing-2);\n border-width: 0.75px;\n border-color: light-dark(\n var(--ddd-theme-default-coalyGray, #000),\n var(--ddd-theme-default-white, #fff)\n );\n }\n\n :host([is-full-view]) .chat-wrapper {\n height: 94%;\n margin: var(--ddd-spacing-6) var(--ddd-spacing-0) var(--ddd-spacing-6)\n var(--ddd-spacing-0);\n\n border-color: transparent;\n border-radius: var(--ddd-radius-sm);\n border-style: none;\n border-width: 0;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 87%;\n margin: var(--ddd-spacing-18) var(--ddd-spacing-0)\n var(--ddd-spacing-0) var(--ddd-spacing-0);\n }\n\n :host([developer-mode]),\n .chat-wrapper {\n padding-top: var(--ddd-spacing-1);\n }\n\n /* Main Wrapper */\n .main-wrapper {\n display: flex;\n flex-direction: column;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 100%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 88%;\n }\n\n /* Chat Container */\n .chat-container {\n background-color: var(--ddd-theme-default-white);\n border-radius: var(--ddd-radius-sm);\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n\n :host([dark-mode]) .chat-container {\n background-color: var(--ddd-theme-default-coalyGray);\n }\n\n :host([is-full-view]) .chat-container {\n height: 92%;\n }\n\n :host([is-full-view][developer-mode]) .chat-container {\n height: 90%;\n }\n\n /* Chat Messages */\n .chat-messages {\n max-height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n scrollbar-width: thin;\n }\n\n :host([is-full-view]) .chat-messages {\n height: 100%;\n max-height: 100%;\n }\n\n /* TODO test the media queries for quality assurance, and test without editor ui & without developer mode */\n /* This should cover a lot of horizontal monitors */\n @media only screen and (min-width: 1081px) {\n @media only screen and (min-height: 1201px) {\n :host([is-full-view]) .chat-wrapper {\n height: 98%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 95%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 105.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 101%;\n }\n }\n\n @media only screen and (max-height: 1200px) and (min-height: 1001px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 91.5%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 102%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 94%;\n }\n }\n\n @media only screen and (max-height: 1001px) and (min-height: 940px) {\n /* Modify more for even bigger screen sizes -_- */\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 91.5%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 102%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 96%;\n }\n }\n\n @media only screen and (max-height: 939px) and (min-height: 880px) {\n :host([is-full-view]) .chat-wrapper {\n height: 91%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 91%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 99%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 95%;\n }\n }\n\n @media only screen and (max-height: 879px) and (min-height: 780px) {\n :host([is-full-view]) .chat-wrapper {\n height: 90%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 90%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 97%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 93%;\n }\n }\n\n @media only screen and (max-height: 779px) and (min-height: 752px) {\n :host([is-full-view]) .chat-wrapper {\n height: 89%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 89%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 92%;\n }\n }\n\n @media only screen and (max-height: 751px) {\n :host([is-full-view]) .chat-wrapper {\n height: 88%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 88%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 95%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 91%;\n }\n }\n\n @media only screen and (max-height: 748px) {\n :host([is-full-view]) .chat-wrapper {\n height: 88%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 88%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 100%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 89%;\n }\n }\n }\n\n /* This should cover a lot of vertical monitors */\n @media only screen and (max-width: 1080px) {\n @media only screen and (min-height: 1720px) {\n :host([is-full-view]) .chat-wrapper {\n height: 98%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 95%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 105.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 103%;\n }\n }\n\n @media only screen and (max-height: 1719px) and (min-height: 1600px) {\n :host([is-full-view]) .chat-wrapper {\n height: 97.5%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 95%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 105%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 102.5%;\n }\n }\n\n @media only screen and (max-height: 1599px) and (min-height: 1500px) {\n :host([is-full-view]) .chat-wrapper {\n height: 97%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 95%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 104.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 102%;\n }\n }\n\n @media only screen and (max-height: 1499px) and (min-height: 1440px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96.5%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 95%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 103.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 101.5%;\n }\n }\n\n @media only screen and (max-height: 1439px) and (min-height: 1420px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 95%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 103%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 101%;\n }\n }\n\n @media only screen and (max-height: 1419px) and (min-height: 1400px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 94.5%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 102.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 100.5%;\n }\n }\n\n @media only screen and (max-height: 1399px) and (min-height: 1300px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 94%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 101.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 100%;\n }\n }\n\n @media only screen and (max-height: 1299px) and (min-height: 1220px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 93.5%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 101%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 99.5%;\n }\n }\n\n @media only screen and (max-height: 1219px) and (min-height: 1160px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 93%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 100.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 99%;\n }\n }\n\n @media only screen and (max-height: 1159px) and (min-height: 1100px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 92.5%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 100%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 98%;\n }\n }\n\n @media only screen and (max-height: 1099px) and (min-height: 1050px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 92%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 99.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 97%;\n }\n }\n\n @media only screen and (max-height: 1049px) and (min-height: 1000px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 92%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 99.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 94%;\n }\n }\n\n @media only screen and (max-height: 999px) and (min-height: 880px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 91.5%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 99%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 88%;\n }\n }\n\n @media only screen and (max-height: 879px) and (min-height: 800px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 91%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 98.5%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 87%;\n }\n }\n\n @media only screen and (max-height: 799px) and (min-height: 750px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 90.5%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 98%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 86%;\n }\n }\n }\n\n @media only screen and (max-height: 749px) and (min-height: 720px) {\n :host([is-full-view]) .chat-wrapper {\n height: 96%;\n }\n\n :host([is-full-view][has-editor-ui]) .chat-wrapper {\n height: 90%;\n }\n\n :host([is-full-view]) .main-wrapper {\n height: 98%;\n }\n\n :host([is-full-view][developer-mode]) .main-wrapper {\n height: 85%;\n }\n }\n "])))]}},{key:"properties",get:function(){return v(v({},u(p(n),"properties",this)),{},{chatLog:{type:Array},darkMode:{type:Boolean,attribute:"dark-mode",reflect:!0},developerModeEnabled:{type:Boolean,attribute:"developer-mode",reflect:!0},hasEditorUI:{type:Boolean,attribute:"has-editor-ui",reflect:!0},isFullView:{type:Boolean,attribute:"is-full-view",reflect:!0},isInterfaceHidden:{type:Boolean,attribute:"is-interface-hidden",reflect:!0}})}}]);var t}(w);globalThis.customElements.define(ee.tag,ee);var ne,te,ie={url:new URL("./elements/chat-agent/lib/chat-message.js",document.baseURI).href},ae=function(e){function n(){var e;return o(this,n),(e=y(this,n)).darkMode=null,e.editMode=null,e.hasSuggestedPrompts=!1,e.isSentPrompt=!1,e.message="",e.messageWasSuggestedPrompt=!1,e.suggestedPrompts=D.currentSuggestions,e.hat="none",l((function(){e.darkMode=h(D.darkMode),e.editMode=h(D.editMode)})),e}return c(n,e),a(n,[{key:"render",value:function(){return f(J||(J=m(['\n \n ',"\n
\n "])),this.isSentPrompt?this.renderSentMessage():this.renderReceivedMessage())}},{key:"renderReceivedMessage",value:function(){var e=this;return f(Q||(Q=m(['\n \n "])),this.message,D.merlinTypeWriterSpeed,this.suggestedPrompts.map((function(n){return f(_||(_=m(['\n \n "])),n.suggestion,n.type,e.disableSuggestions,e.disableSuggestions)})))}},{key:"renderSentMessage",value:function(){return f(Z||(Z=m(['\n \n '])),this.message,D.userName,this.hat)}},{key:"firstUpdated",value:function(){this.pickHat()}},{key:"pickHat",value:function(){2===D.month&&12===D.day?this.hat="party":6===D.month&&6===D.day?this.hat="cowboy":7===D.month&&27===D.day?this.hat="bunny":8===D.month&&15===D.day?this.hat="watermelon":9===D.month&&19===D.day?this.hat="pirate":10===D.month&&1===D.day?this.hat="coffee":10===D.month&&5===D.day?this.hat="education":12===D.month&&5===D.day?this.hat="ninja":12===D.month&&18===D.day?this.hat="knight":this.hat="none",this.editMode&&(this.hat="construction"),this.requestUpdate()}},{key:"disableSuggestions",value:function(e){var n=this.shadowRoot.querySelectorAll("chat-suggestion");if(D.devStatement("Disabling previous suggestions.","info"),n.forEach((function(e){e.hasAttribute("disabled")||e.setAttribute("disabled","")})),!e.currentTarget.hasAttribute("chosen-prompt")){var t=!1;n.forEach((function(e){e.hasAttribute("chosen-prompt")&&(t=!0)})),t||e.currentTarget.setAttribute("chosen-prompt","")}}}],[{key:"tag",get:function(){return"chat-message"}},{key:"styles",get:function(){return[u(p(n),"styles",this),g($||($=m(["\n /* https://oer.hax.psu.edu/bto108/sites/haxcellence/documentation/ddd */\n\n :host {\n container-type: inline-size;\n display: block;\n }\n\n .chat-message-wrapper {\n border-bottom-style: dashed;\n border-bottom: var(--ddd-border-md);\n padding: var(--ddd-spacing-2) var(--ddd-spacing-3);\n }\n\n .sent-chat-message,\n .message {\n align-items: center;\n display: flex;\n flex-direction: row;\n gap: var(--ddd-spacing-3);\n }\n\n .received-chat-message {\n display: flex;\n flex-direction: column;\n }\n\n .author-icon {\n align-items: center;\n background-color: var(--ddd-theme-default-white);\n border-radius: var(--ddd-radius-circle);\n border: var(--ddd-border-md);\n border-color: var(--ddd-theme-default-coalyGray);\n display: flex;\n height: var(--ddd-spacing-18);\n justify-content: center;\n width: var(--ddd-spacing-18);\n }\n\n :host([dark-mode]) .author-icon {\n border-color: var(--ddd-theme-default-slateGray);\n }\n\n .received-chat-message .author-icon {\n border-radius: var(--ddd-radius-xl);\n }\n\n simple-icon-lite {\n color: var(--data-theme-primary, var(--ddd-primary-13));\n --simple-icon-height: var(--ddd-icon-md);\n --simple-icon-width: var(--ddd-icon-md);\n }\n\n rpg-character {\n height: var(--ddd-spacing-12);\n margin-bottom: var(--ddd-spacing-3);\n width: var(--ddd-spacing-12);\n }\n\n .message-content {\n border-radius: var(--ddd-radius-sm);\n border: var(--ddd-border-md);\n border-color: var(--ddd-theme-default-coalyGray);\n color: var(--ddd-theme-default-coalyGray);\n font: var(--ddd-font-primary);\n font-size: var(--ddd-font-size-4xs);\n margin: var(--ddd-spacing-0);\n padding: var(--ddd-spacing-2);\n width: 80%;\n }\n\n :host([dark-mode]) .message-content {\n border-color: var(--ddd-theme-default-slateGray);\n color: var(--ddd-theme-default-white);\n background-color: var(--ddd-theme-default-coalyGray);\n }\n\n .suggested-prompts {\n display: flex;\n flex-direction: column;\n gap: var(--ddd-spacing-2);\n justify-content: center;\n padding-top: var(--ddd-spacing-3);\n }\n\n @container (max-width: 190px) {\n .author-icon {\n display: none;\n }\n\n .received-chat-message .message-content {\n background: rgba(73, 29, 112, 0.1);\n }\n\n .message {\n align-items: center;\n display: flex;\n justify-content: center;\n }\n }\n "])))]}},{key:"properties",get:function(){return v(v({},u(p(n),"properties",this)),{},{darkMode:{type:Boolean,attribute:"dark-mode",reflect:!0},hasSuggestedPrompts:{type:Boolean,attribute:"suggested-prompts"},isSentPrompt:{type:Boolean,attribute:"sent-prompt"},message:{type:String},messageWasSuggestedPrompt:{type:Boolean,attribute:"suggested-message"},suggestedPrompts:{type:Array}})}},{key:"haxProperties",get:function(){return new URL("./lib/".concat(this.tag,".haxProperties.json"),ie.url).href}}])}(w);globalThis.customElements.define(ae.tag,ae);var oe,se,re={url:new URL("./elements/chat-agent/lib/chat-suggestion.js",document.baseURI).href},de=function(e){function n(){var e;return o(this,n),(e=y(this,n)).chosenPrompt=!1,e.disabled=!1,e.promptType="",e.suggestion="",e.messageIndex=null,e.userIndex=null,l((function(){e.messageIndex=h(D.messageIndex),e.userIndex=h(D.userIndex)})),e}return c(n,e),a(n,[{key:"render",value:function(){return f(ne||(ne=m(['\n \n "])),this.handleSuggestion,this.handleSuggestion,this.suggestion,this.suggestion)}},{key:"handleSuggestion",value:function(){this.disabled?D.devStatement("Suggestion buttons disabled, ignoring request","warn"):(D.devStatement("Suggestion button pressed. Suggested prompt to send to Merlin: ".concat(this.suggestion),"info"),D.handleMessage(D.userName,this.suggestion))}},{key:"firstUpdated",value:function(e){u(p(n.prototype),"firstUpdated",this)&&u(p(n.prototype),"firstUpdated",this).call(this,e);var t=this.shadowRoot.querySelector("simple-icon-lite");switch(this.promptType){case"suggestion":t.setAttribute("icon","question-answer"),t.style.color="var(--data-theme-primary, var(--ddd-primary-13))";break;case"network":t.setAttribute("icon","device:signal-cellular-connected-no-internet-0-bar"),t.style.color="var(--ddd-theme-default-coalyGray)";break;case"help":t.setAttribute("icon","help-outline"),t.style.color="var(--ddd-theme-default-original87Pink)";break;case"hax":t.setAttribute("icon","hax:hax2022"),t.style.color="var(--data-theme-primary, var(--ddd-primary-13))";break;default:t.setAttribute("icon","lrn:info"),t.style.color="var(--ddd-theme-default-skyBlue)"}}},{key:"updated",value:function(e){u(p(n.prototype),"updated",this)&&u(p(n.prototype),"updated",this).call(this,e),this.disabled&&this.shadowRoot.querySelector(".chat-suggestion-wrapper").removeAttribute("tabindex")}}],[{key:"tag",get:function(){return"chat-suggestion"}},{key:"styles",get:function(){return[u(p(n),"styles",this),g(te||(te=m(["\n /* https://oer.hax.psu.edu/bto108/sites/haxcellence/documentation/ddd */\n\n :host {\n container-type: inline-size;\n display: block;\n }\n\n .chat-suggestion-wrapper {\n align-items: center;\n border: var(--ddd-border-sm);\n background-color: var(--ddd-theme-default-successLight);\n border-color: var(--ddd-theme-default-potentialMidnight);\n border-radius: var(--ddd-radius-xl);\n box-shadow: var(--ddd-boxShadow-xl);\n cursor: pointer;\n display: flex;\n flex-direction: row;\n justify-content: center;\n opacity: 1;\n }\n\n .suggestion-icon {\n align-items: center;\n border-right-style: solid;\n border-right: var(--ddd-border-md);\n display: flex;\n justify-content: center;\n width: 20%;\n }\n\n .circle-wrapper {\n background-color: white;\n border-radius: var(--ddd-radius-circle);\n padding: var(--ddd-spacing-2);\n margin: var(--ddd-spacing-1) var(--ddd-spacing-0);\n }\n\n simple-icon-lite {\n --simple-icon-height: var(--ddd-icon-xxs);\n --simple-icon-width: var(--ddd-icon-xxs);\n }\n\n .suggestion-text {\n align-items: center;\n display: flex;\n justify-content: center;\n width: 80%;\n\n /* Prevent text highlighting in button */\n -moz-user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n }\n\n :host([disabled]) .chat-suggestion-wrapper {\n background-color: var(--ddd-theme-default-discoveryCoral);\n cursor: default;\n opacity: 0.6;\n }\n\n :host([chosen-prompt]) .chat-suggestion-wrapper {\n background-color: var(--ddd-theme-default-futureLime);\n }\n\n .chat-suggestion-wrapper:hover,\n .chat-suggestion-wrapper:focus {\n background-color: var(--ddd-theme-default-futureLime);\n }\n\n .chat-suggestion-wrapper:hover p,\n .chat-suggestion-wrapper:focus p {\n text-decoration: underline;\n }\n\n :host([disabled]) p {\n text-decoration: none;\n }\n\n p {\n color: var(--ddd-theme-default-potentialMidnight);\n font-family: var(--ddd-font-primary);\n font-size: var(--ddd-font-size-4xs);\n text-align: center;\n width: 80%;\n margin: 0px;\n }\n\n @container (max-width: 216px) {\n .suggestion-icon {\n display: none;\n }\n }\n "])))]}},{key:"properties",get:function(){return v(v({},u(p(n),"properties",this)),{},{chosenPrompt:{type:Boolean,attribute:"chosen-prompt"},disabled:{type:Boolean},promptType:{type:String,attribute:"prompt-type"},suggestion:{type:String}})}},{key:"haxProperties",get:function(){return new URL("./lib/".concat(this.tag,".haxProperties.json"),re.url).href}}])}(w);globalThis.customElements.define(de.tag,de),n({enforceActions:!1}),t(["haxcms"]),i.add({endpoint:"/api/apps/haxcms/aiChat",name:"@haxcms/aiChat",title:"AI Chat",description:"AI based chat agent that can answer questions about a site",params:{site:"location of the HAXcms site OR site.json data",type:"site for site.json or link for remote loading",question:"Question to ask of the AI",engine:"which engine to use as we test multiple",context:"context to query based on. Course typical"}});var le,he=function(e){function n(){var e;return o(this,n),(e=y(this,n)).isFullView=null,e.isInterfaceHidden=null,l((function(){e.isFullView=h(D.isFullView),e.isInterfaceHidden=h(D.isInterfaceHidden)})),e}return c(n,e),a(n,[{key:"render",value:function(){return f(oe||(oe=m(['\n \n
\n \n
\n
\n \n '," \n \n
\n
\n "])),D.buttonLabel)}},{key:"firstUpdated",value:function(e){u(p(n.prototype),"firstUpdated",this)&&u(p(n.prototype),"firstUpdated",this).call(this,e),D.startAI()}}],[{key:"tag",get:function(){return"chat-agent"}},{key:"styles",get:function(){return[u(p(n),"styles",this),g(se||(se=m(["\n /* https://oer.hax.psu.edu/bto108/sites/haxcellence/documentation/ddd */\n\n :host {\n container-type: normal;\n display: block;\n }\n\n .chat-agent-wrapper {\n bottom: var(--ddd-spacing-2);\n display: flex;\n flex-direction: column;\n gap: var(--ddd-spacing-2);\n position: fixed;\n right: var(--ddd-spacing-2);\n width: 35%;\n }\n\n :host([is-full-view]) .chat-agent-wrapper {\n bottom: var(--ddd-spacing-0);\n gap: var(--ddd-spacing-0);\n right: var(--ddd-spacing-0);\n width: 25%;\n @media only screen and (min-height: 1000px) {\n width: 35%;\n }\n }\n\n :host([is-full-view]:host([is-interface-hidden])) .chat-agent-wrapper {\n bottom: var(--ddd-spacing-2);\n gap: var(--ddd-spacing-2);\n right: var(--ddd-spacing-2);\n }\n\n .agent-interface-wrapper {\n display: flex;\n justify-content: right;\n }\n\n .agent-button-wrapper {\n display: flex;\n justify-content: right;\n }\n\n @container (max-width: 600px) {\n .chat-agent-wrapper {\n width: 30%;\n }\n }\n\n @media only screen and (max-width: 425px) {\n .chat-agent-wrapper {\n width: 90%;\n }\n }\n "])))]}},{key:"properties",get:function(){return v(v({},u(p(n),"properties",this)),{},{isFullView:{type:Boolean,attribute:"is-full-view",reflect:!0},isInterfaceHidden:{type:Boolean,attribute:"is-interface-hidden",reflect:!0}})}}])}(w);customElements.define(he.tag,he),globalThis.ChatAgentStore=globalThis.ChatAgentStore||{},globalThis.ChatAgentStore.requestAvailability=function(){return globalThis.ChatAgentStore.instance||(globalThis.ChatAgentStore.instance=document.createElement("chat-agent"),document.body.appendChild(globalThis.ChatAgentStore.instance)),globalThis.ChatAgentStore.instance},globalThis.ChatAgentStore.requestAvailability(),t(["haxcms"]),i.add({endpoint:"/api/apps/haxcms/aiChat",name:"@haxcms/aiChat",title:"AI Chat",description:"AI based chat agent that can answer questions about a site",params:{site:"location of the HAXcms site OR site.json data",type:"site for site.json or link for remote loading",question:"Question to ask of the AI",engine:"which engine to use as we test multiple",context:"context to query based on. Course typical"}});var ce=e("SiteAiChat",function(e){function n(){var e;return o(this,n),(e=y(this,n)).opened=!1,e.question=null,e.answers=[],e.loading=!1,e.context=h(s.manifest.metadata.site.name),e.engine="alfred",e.dataPulse="1",e}return c(n,e),a(n,[{key:"askQuestion",value:function(e){e.preventDefault(),this.engine=e.target.getAttribute("name"),this.context=this.shadowRoot.querySelector("#context").value,this.question=this.shadowRoot.querySelector("#question").value,this.requestAIFeedback()}},{key:"updated",value:function(e){u(p(n.prototype),"updated",this)&&u(p(n.prototype),"updated",this).call(this,e),e.has("opened")&&(this.opened?this.shadowRoot.querySelector("dialog").showModal():this.shadowRoot.querySelector("dialog").close())}},{key:"requestAIFeedback",value:function(){var e=this,n=h(s.manifest),t="";globalThis.document.querySelector("base")&&(t=globalThis.document.querySelector("base").href);var a={site:{file:t+"site.json",metadata:n.metadata},type:"site",question:this.question,engine:this.engine,context:this.context};this.loading=!0,i.call("@haxcms/aiChat",a).then((function(n){200==n.status&&(e.answers=k(n.data.answers),e.question=n.data.question),e.loading=!1})).catch((function(n){e.loading=!1,console.error(n)}))}},{key:"closeChat",value:function(){this.opened=!1}},{key:"openChat",value:function(){var e=this;this.opened=!0,setTimeout((function(){e.shadowRoot.querySelector("#question").focus(),e.shadowRoot.querySelector("#question").select()}),300)}}],[{key:"tag",get:function(){return"site-ai-chat"}},{key:"styles",get:function(){return[u(p(n),"styles",this),g(le||(le=m(["\n :host {\n display: block;\n }\n "])))]}},{key:"properties",get:function(){return v(v({},u(p(n),"properties",this)),{},{engine:{type:String},question:{type:String},context:{type:String},answers:{type:Array},opened:{type:Boolean,reflect:!0},loading:{type:Boolean,reflect:!0}})}}])}(I(S(M))));globalThis.customElements.define(ce.tag,ce)}}}));
diff --git a/storybook/462cac9f.js b/storybook/462cac9f.js
new file mode 100644
index 000000000..fac16d69a
--- /dev/null
+++ b/storybook/462cac9f.js
@@ -0,0 +1 @@
+System.register(["./72dcd9ad.js"],(function(t){"use strict";var e,n,i,o,s,r,a,c,d,u,h,l,f,b,p,y;return{setters:[function(t){e=t.u,n=t._,i=t.a,o=t.B,s=t.i,r=t.b,a=t.x,c=t.f,d=t.v,u=t.w,h=t.W,l=t.y,f=t.z,b=t.A,p=t.c,y=t.d}],execute:function(){var v,g,w=function(t,n,i,o){var s,r=arguments.length,a=r<3?n:null===o?o=Object.getOwnPropertyDescriptor(n,i):o;if("object"===("undefined"==typeof Reflect?"undefined":e(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,i,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(r<3?s(a):r>3?s(n,i,a):s(n,i))||a);return r>3&&a&&Object.defineProperty(n,i,a),a},R=function(t,n){if("object"===("undefined"==typeof Reflect?"undefined":e(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)},m=t("WiredButton",function(t){function e(){var t;return p(this,e),(t=y(this,e)).elevation=1,t.disabled=!1,t.roAttached=!1,window.ResizeObserver&&(t.ro=new window.ResizeObserver((function(){t.svg&&t.wiredRender(!0)}))),t}return n(e,t),i(e,[{key:"render",value:function(){return a(v||(v=r(['\n \n \n \n \n
\n \n '])),this.disabled,this.wiredRender)}},{key:"focus",value:function(){this.button?this.button.focus():c(e,"focus",this,3)([])}},{key:"canvasSize",value:function(){if(this.button){var t=this.button.getBoundingClientRect(),e=Math.min(Math.max(1,this.elevation),5);return[t.width+2*(e-1),t.height+2*(e-1)]}return this.lastSize}},{key:"draw",value:function(t,e){var n=Math.min(Math.max(1,this.elevation),5),i={width:e[0]-2*(n-1),height:e[1]-2*(n-1)};d(t,0,0,i.width,i.height,this.seed);for(var o=1;o*{box-sizing:border-box}:host{--fade-in-transition-duration:150ms;--fade-out-transition-duration:800ms;--fade-out-transition-delay:300ms;--fill-color-transition-duration:150ms;--viewport-overflow-x:auto;--viewport-overflow-y:auto;--viewport-scroll-snap-type:none;--viewport-scroll-behavior:auto;--viewport-overscroll-behavior:auto;--viewport-z-index:0;--scrollbar-width:16px;--scrollbar-padding:2px;--scrollbar-fill-color:transparent;--scrollbar-fill-color-hover:transparent;--scrollbar-border-width:0;--scrollbar-border-style:none;--scrollbar-border-color:#999;--scrollbar-border-radius:0;--scrollbar-box-shadow:none;--scrollbar-z-index-hover:30;--vertical-scrollbar-padding:var(--scrollbar-padding);--vertical-scrollbar-background:none;--vertical-scrollbar-background-size:auto;--vertical-scrollbar-z-index:20;--horizontal-scrollbar-padding:var(--scrollbar-padding);--horizontal-scrollbar-background:none;--horizontal-scrollbar-background-size:auto;--horizontal-scrollbar-z-index:10;--scrollbar-track-fill-color:transparent;--scrollbar-track-fill-color-hover:transparent;--scrollbar-track-border-width:0;--scrollbar-track-border-style:none;--scrollbar-track-border-color:#999;--scrollbar-track-border-radius:0;--scrollbar-track-box-shadow:none;--vertical-scrollbar-track-background:none;--vertical-scrollbar-track-background-size:auto;--horizontal-scrollbar-track-background:none;--horizontal-scrollbar-track-background-size:auto;--scrollbar-thumb-fill-color:#ccc;--scrollbar-thumb-fill-color-hover:#aaa;--scrollbar-thumb-border-width:0;--scrollbar-thumb-border-style:none;--scrollbar-thumb-border-color:#999;--scrollbar-thumb-border-radius:var(--scrollbar-width);--scrollbar-thumb-box-shadow:none;--vertical-scrollbar-thumb-background:none;--vertical-scrollbar-thumb-background-size:auto;--horizontal-scrollbar-thumb-background:none;--horizontal-scrollbar-thumb-background-size:auto;--content-padding:0;position:relative;overflow:hidden;display:grid;grid-template:1fr/1fr}.viewport{z-index:var(--viewport-z-index);display:grid;overflow-x:var(--viewport-overflow-x);overflow-y:var(--viewport-overflow-y);scrollbar-width:none;outline:0;scroll-behavior:var(--viewport-scroll-behavior);overscroll-behavior:var(--viewport-overscroll-behavior);scroll-snap-type:var(--viewport-scroll-snap-type)}.viewport::-webkit-scrollbar{width:0;height:0}.content{padding:var(--content-padding)}.content.restrict-width{width:var(--viewport-width)}.content.restrict-height{height:var(--viewport-height)}.scrollbar{user-select:none;touch-action:none;position:absolute;border-width:var(--scrollbar-border-width);border-style:var(--scrollbar-border-style);border-color:var(--scrollbar-border-color);border-radius:var(--scrollbar-border-radius);box-shadow:var(--scrollbar-box-shadow);opacity:0;transition:opacity var(--fade-out-transition-duration) ease-in-out var(--fade-out-transition-delay),background-color var(--fill-color-transition-duration) ease-out}.vertical-scrollbar{z-index:var(--vertical-scrollbar-z-index);width:var(--scrollbar-width);right:0;top:0;bottom:0;padding:var(--vertical-scrollbar-padding);background:var(--vertical-scrollbar-background);background-color:var(--scrollbar-fill-color);background-size:var(--vertical-scrollbar-background-size)}.vertical-scrollbar.left-position{left:0;right:auto}.horizontal-scrollbar{z-index:var(--horizontal-scrollbar-z-index);height:var(--scrollbar-width);left:0;right:0;bottom:0;padding:var(--horizontal-scrollbar-padding);background:var(--horizontal-scrollbar-background);background-color:var(--scrollbar-fill-color);background-size:var(--horizontal-scrollbar-background-size)}.horizontal-scrollbar.top-position{top:0;bottom:auto}.scrollbar:hover,.scrollbar.scrolling-with-thumb,.viewport:hover~.scrollbar,.viewport:not(:focus):focus-within~.scrollbar,.viewport.touch~.scrollbar{opacity:1;transition:opacity var(--fade-in-transition-duration) ease-in-out 0s,background-color var(--fill-color-transition-duration) ease-out}.viewport.scrollbar-visible~.scrollbar{opacity:1;transition:none}.scrollbar:hover,.scrollbar.scrolling-with-thumb{z-index:var(--scrollbar-z-index-hover);background-color:var(--scrollbar-fill-color-hover)}.scrollbar.hidden{display:none}.scrollbar .scrollbar-track{height:100%;width:100%;border-width:var(--scrollbar-track-border-width);border-style:var(--scrollbar-track-border-style);border-color:var(--scrollbar-track-border-color);border-radius:var(--scrollbar-track-border-radius);box-shadow:var(--scrollbar-track-box-shadow);transition:background-color var(--fill-color-transition-duration) ease-out}.vertical-scrollbar .scrollbar-track{background:var(--vertical-scrollbar-track-background);background-color:var(--scrollbar-track-fill-color);background-size:var(--vertical-scrollbar-track-background-size)}.horizontal-scrollbar .scrollbar-track{background:var(--horizontal-scrollbar-track-background);background-color:var(--scrollbar-track-fill-color);background-size:var(--horizontal-scrollbar-track-background-size)}.scrollbar-track:hover,.scrollbar.scrolling-with-thumb .scrollbar-track{background-color:var(--scrollbar-track-fill-color-hover)}.scrollbar .scrollbar-thumb{height:100%;width:100%;border-width:var(--scrollbar-thumb-border-width);border-style:var(--scrollbar-thumb-border-style);border-color:var(--scrollbar-thumb-border-color);border-radius:var(--scrollbar-thumb-border-radius);transform:translate3d(0,0,0);box-shadow:var(--scrollbar-thumb-box-shadow);transition:background-color var(--fill-color-transition-duration) ease-out}.vertical-scrollbar .scrollbar-thumb{background:var(--vertical-scrollbar-thumb-background);background-color:var(--scrollbar-thumb-fill-color);background-size:var(--vertical-scrollbar-thumb-background-size)}.horizontal-scrollbar .scrollbar-thumb{background:var(--horizontal-scrollbar-thumb-background);background-color:var(--scrollbar-thumb-fill-color);background-size:var(--horizontal-scrollbar-thumb-background-size)}.scrollbar .scrollbar-thumb:hover,.scrollbar.scrolling-with-thumb .scrollbar-thumb{background-color:var(--scrollbar-thumb-fill-color-hover)}';var z,E,C,q=Symbol("vertical"),P=Symbol("horizontal"),U=[{key:q,name:"vertical",size:"height",o:"offsetHeight",l:"scrollHeight",position:"top",t:"scrollTop",i:"overflow-y",h:"clientY",v:"pageY"},{key:P,name:"horizontal",size:"width",o:"offsetWidth",l:"scrollWidth",position:"left",t:"scrollLeft",i:"overflow-x",h:"clientX",v:"pageX"}],F=function(e){function t(){var e;return i(this,t),(e=s(this,t)).u(),e.p(),e.g(),e}return n(t,e),o(t,[{key:"connectedCallback",value:function(){this.k(),this.m(),this.S()}},{key:"attributeChangedCallback",value:function(e,t,n){"scrollbar-visibility"===e?this.viewport.classList.toggle("scrollbar-visible","always"===n):"vertical-scrollbar-position"===e?this.elements[q].C.classList.toggle("left-position","left"===n):"horizontal-scrollbar-position"===e&&this.elements[P].C.classList.toggle("top-position","top"===n)}},{key:"u",value:function(){this.viewport,this.content,this.elements={},this.cache={},this.T={},this.$=null;for(var e=0,t=U;eMath.ceil(a.M)}}},{key:"m",value:function(){for(var e=0,t=U;e\n ',"\n \n "])),this.max,this.value,this.list&&this.showCount?h(E||(E=p([""," / ",""])),this.value,this.max):"")}},{key:"firstUpdated",value:function(e){l(t,"firstUpdated",this,1)&&l(t,"firstUpdated",this,3)([e]),this.loadingBar=this.shadowRoot.querySelector("progress")}},{key:"updated",value:function(e){var n=this;l(t,"updated",this,1)&&l(t,"updated",this,3)([e]),e.forEach((function(e,t){["value","max"].includes(t)&&n.shadowRoot&&n.dispatchEvent(new CustomEvent("".concat(t,"-changed"),{detail:{value:n[t]}})),"list"==t&&n[t]&&n[t].length>0&&n.max!==n.value&&(n.canLoad=!0)}))}},{key:"process",value:(a=b(m().mark((function e(){var t,n,o,a=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.list,!this.canLoad){e.next=8;break}return n=0,e.next=5,t.map(function(){var e=b(m().mark((function e(t){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t().then((function(e){n+=1,a.value=Math.round(n/a.list.length*100),a.loadingBar.textContent="Loading ".concat(a.value," of ").concat(a.max),resolve(e)})).catch((function(e){reject(e)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 5:return o=e.sent,e.next=8,Promise.allSettled(o).then((function(){a.loadingBar.textContent="Loading Finished",a.value=a.max,setTimeout((function(){a.dispatchEvent(new CustomEvent("promise-progress-finished",{detail:{value:!0}}))}),100)}));case 8:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})}],[{key:"tag",get:function(){return"promise-progress-lite"}},{key:"styles",get:function(){var e=[];return l(t,"styles",this)&&(e=l(t,"styles",this)),[e,c(C||(C=p(["\n :host {\n display: block;\n position: relative;\n }\n "])))]}},{key:"properties",get:function(){return u(u({},l(t,"properties",this)),{},{max:{type:Number},value:{type:Number,reflect:!0},list:{type:Array},showCount:{type:Boolean,attribute:"show-count"},canLoad:{type:Boolean}})}}]);var a}(d);customElements.define(j.tag,j);var I,M,N=function(e){function t(){return i(this,t),s(this,t)}return n(t,e),o(t,[{key:"render",value:function(){return h(B||(B=p(['\n \n ',"\n \n "])),this.max,this.value,this.list&&this.showCount?h(A||(A=p([""," / ",""])),this.value,this.max):"")}}],[{key:"tag",get:function(){return"promise-progress"}}])}(v(j));customElements.define(N.tag,N);var H,_,D,W,O={url:new URL("./elements/app-hax/lib/v1/app-hax-hat-progress.js",document.baseURI).href},V=function(e){function t(){var e;return i(this,t),(e=s(this,t)).promises=[],e.max=100,y((function(){e.promises=k(g.newSitePromiseList)})),y((function(){e.dark=k(g.darkMode)})),e}return n(t,e),o(t,[{key:"process",value:function(){this.shadowRoot.querySelector("#progress2").process()}},{key:"firstUpdated",value:function(e){var n=this;l(t,"firstUpdated",this,1)&&l(t,"firstUpdated",this,3)([e]),this.dispatchEvent(new CustomEvent("progress-ready",{detail:!0})),setTimeout((function(){n.shadowRoot.querySelector("#progress2").addEventListener("value-changed",(function(e){n.shadowRoot.querySelector("#value").textContent=e.detail.value})),n.shadowRoot.querySelector("#progress2").addEventListener("max-changed",(function(e){n.max=e.detail.value})),n.shadowRoot.querySelector("#progress2").addEventListener("promise-progress-finished",(function(e){if(e.detail.value){n.shadowRoot.querySelector(".game")&&n.shadowRoot.querySelector(".game").remove();var t=g.AppHaxAPI.lastResponse.createSite.data,o=globalThis.document.createElement("button");n.shadowRoot.querySelector("#value").textContent=n.max,o.textContent="Let's go!",o.classList.add("game"),o.addEventListener("pointerdown",(function(){g.appEl.playSound("click")})),o.addEventListener("click",(function(){g.appEl.reset(),setTimeout((function(){globalThis.location=t.slug.replace("index.html","")}),0)})),n.shadowRoot.querySelector("#progress2").parentNode.appendChild(o),g.toast("".concat(t.title?t.title:""," ready!"),1500,{hat:"random"}),g.setPageTitle("".concat(t.title?t.title:""," ready!")),setTimeout((function(){g.toast("redirecting in 3..",1e4,{hat:"random",walking:!0}),g.setPageTitle("Redirecting in 3.."),setTimeout((function(){g.toast("redirecting in 2..",1e4,{hat:"random",walking:!0}),g.setPageTitle("Redirecting in 2.."),setTimeout((function(){g.toast("redirecting in 1..",1e4,{hat:"random",walking:!0}),g.setPageTitle("Redirecting in 1.."),g.appEl.reset(),setTimeout((function(){g.setPageTitle("Enjoy!"),globalThis.location=t.slug.replace("index.html","")}),1e3)}),1e3)}),1e3)}),1800),n.dispatchEvent(new CustomEvent("promise-progress-finished",{composed:!0,bubbles:!0,cancelable:!0,detail:!0}))}}))}),0)}},{key:"render",value:function(){return h(I||(I=p(['\n \n \n 0 %
\n '])),new URL("../assets/images/HatBlank.svg",O.url).href,this.dark,this.promises)}}],[{key:"tag",get:function(){return"app-hax-hat-progress"}},{key:"properties",get:function(){return u(u({},l(t,"properties",this)),{},{promises:{type:Array}})}},{key:"styles",get:function(){return[l(t,"styles",this),c(M||(M=p(['\n :host {\n display: block;\n height: 400px;\n width: 400px;\n }\n img {\n width: 400px;\n height: 400px;\n pointer-events: none;\n }\n .progress {\n margin: -148px 0 0 10px;\n z-index: -1;\n }\n .progress::part(progress) {\n height: 100px;\n width: 338px;\n margin-top: -1px 0 0 -4px;\n }\n\n .progress::part(progress)::-moz-progress-bar {\n background-color: red;\n height: 50px;\n margin: 24px 0 0 0;\n border: none;\n }\n\n .count {\n color: var(--simple-colors-default-theme-grey-1, white);\n font-family: "Press Start 2P", sans-serif;\n width: 350px;\n text-align: center;\n position: relative;\n display: block;\n font-size: 30px;\n margin-top: -250px;\n margin-left: 30px;\n }\n .game {\n font-family: "Press Start 2P", sans-serif;\n font-size: 28px;\n font-weight: bold;\n text-align: center;\n width: 310px;\n background-color: var(--simple-colors-default-theme-red-7, red);\n color: var(--simple-colors-default-theme-grey-1, white);\n border: 0px;\n height: 54px;\n display: block;\n position: relative;\n margin: 138px 0px 0px 52px;\n padding: 0;\n box-sizing: border-box;\n }\n .game:focus,\n .game:hover {\n cursor: pointer;\n background-color: var(--simple-colors-default-theme-red-8);\n color: var(--simple-colors-default-theme-grey-2);\n }\n .game:active {\n cursor: progress;\n background-color: var(--simple-colors-default-theme-red-10);\n color: var(--simple-colors-default-theme-grey-5);\n }\n '])))]}}])}(f);customElements.define(V.tag,V);var $,G,X,Y,K,J,Q,Z,ee,te,ne,oe,ae,re={url:new URL("./elements/app-hax/lib/v1/app-hax-button.js",document.baseURI).href},ie=new URL("../assets/images/PostIt.svg",re.url).href,se=new URL("../assets/images/BetaPostIt.svg",re.url).href,le=function(e){function t(){var e;return i(this,t),(e=s(this,t)).icon="save",e.type=null,e.value=null,e.disabled=!1,e.elevation=2,e.active=!1,e.comingSoon=!1,e.prompt=null,e.callback=null,e.param=null,e.beta=!1,e.addEventListener("click",e._handleClick),e.addEventListener("click",e._handleClick),e.addEventListener("focus",e._handleFocus),e.addEventListener("blur",e._handleBlur),e.addEventListener("mouseover",e._handleFocus),e.addEventListener("mouseout",e._handleBlur),e}return n(t,e),o(t,[{key:"_handleFocus",value:function(){this.disabled||this.comingSoon||(this.active=!0,this.elevation="4")}},{key:"_handleBlur",value:function(){this.disabled||this.comingSoon||(this.active=!1,this.elevation="2")}},{key:"_handleClick",value:function(){this.disabled||this.comingSoon||this.shadowRoot.querySelector(".haxButton").blur()}},{key:"firstUpdated",value:function(e){var n=this;l(t,"firstUpdated",this,1)&&l(t,"firstUpdated",this,3)([e]),e.forEach((function(e,t){if("type"===t)switch(n.type){case"technology":n.icon="hardware:desktop-mac",n.value="technology";break;case"business":n.icon="maps:local-atm",n.value="business";break;case"art":n.icon="image:palette",n.value="art";break;case"6w":n.icon="hax:messages-6",n.value="6 Week";break;case"15w":n.icon="social:school",n.value="15 Week";break;case"training":n.icon="hax:bricks",n.value="Training";break;case"docx import":case"docx":n.icon="hax:file-docx",n.value="docx";break;case"evolution":n.icon="communication:business",n.value="evo";break;case"pressbooks":n.icon="hax:wordpress",n.value="pressbooks";break;case"gitbook":n.icon="mdi-social:github-circle",n.value="gitbook";break;case"elms:ln":n.icon="lrn:network",n.value="elmsln";break;case"haxcms":n.icon="hax:hax2022",n.value="haxcms";break;case"notion":n.icon="book",n.value="notion";break;case"html":n.icon="icons:code",n.value="HTML";break;case"Blog":n.icon="social:public",n.value="Blog";break;default:n.icon="image:photo-filter",n.value="own",n.type="Create Your Own"}}))}},{key:"render",value:function(){return h(H||(H=p(["\n \n \n ","\n ","\n \n "])),this.elevation,this.disabled||this.comingSoon,this.icon,this.type,this.comingSoon?h(_||(_=p([' '])),ie):"",this.beta?h(D||(D=p([' '])),se):"")}}],[{key:"tag",get:function(){return"app-hax-button"}},{key:"properties",get:function(){return{icon:{type:String},type:{type:String,reflect:!0},disabled:{type:Boolean,reflect:!0},elevation:{type:Number},active:{type:Boolean,reflect:!0},comingSoon:{type:Boolean,reflect:!0,attribute:"coming-soon"},beta:{type:Boolean,reflect:!0},prompt:{type:String},callback:{type:String},param:{type:String}}}},{key:"styles",get:function(){return[c(W||(W=p(['\n :host {\n display: block;\n --background-color: transparent;\n --background-color-active: white;\n font-family: "Press Start 2P", sans-serif;\n }\n :host([coming-soon]) .haxButton {\n pointer-events: none;\n background-color: var(--simple-colors-default-theme-grey-6);\n }\n :host([active]) .haxButton {\n color: var(\n --app-hax-background-color,\n var(--background-color-active)\n );\n background-color: var(--app-hax-accent-color, var(--accent-color));\n }\n :host([active]) simple-icon-lite {\n --simple-icon-color: var(\n --app-hax-background-color,\n var(--background-color-active)\n );\n }\n :host([active]) .type {\n background-color: var(--app-hax-accent-color, var(--accent-color));\n color: var(\n --app-hax-background-color,\n var(--background-color-active)\n );\n }\n\n #container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-around;\n width: 132px;\n height: 112px;\n }\n .coming-soon {\n display: block;\n height: 114px;\n width: 140px;\n z-index: 1;\n position: absolute;\n margin-top: -75px;\n }\n .beta {\n display: block;\n height: 100px;\n width: 120px;\n z-index: 1;\n position: absolute;\n top: 0;\n left: 0;\n margin-left: -50px;\n margin-top: -10px;\n }\n .haxButton {\n background-color: var(\n --app-hax-background-color,\n var(--background-color)\n );\n color: var(--app-hax-accent-color, var(--accent-color));\n display: inline-flex;\n }\n simple-icon-lite {\n --simple-icon-width: 60px;\n --simple-icon-height: 60px;\n --simple-icon-color: var(--app-hax-accent-color, var(--accent-color));\n }\n .type {\n font-size: 10px;\n color: var(--app-hax-accent-color, var(--accent-color));\n }\n @media (max-width: 800px) {\n #container {\n width: 100px;\n height: 75px;\n }\n\n .beta,\n .coming-soon {\n margin-top: -50px;\n height: 114px;\n width: 100px;\n }\n }\n '])))]}}])}(d);customElements.define(le.tag,le);var ce={url:new URL("./elements/app-hax/lib/v1/app-hax-steps.js",document.baseURI).href},pe=new URL("../assets/images/Home.svg",ce.url).href,ue=new URL("../assets/images/DisabledCircle.svg",ce.url).href,he=new URL("../assets/images/TransparentCircle.svg",ce.url).href,de=new URL("../assets/images/EnabledCircle.svg",ce.url).href,be={collection:["collections-theme","bootstrap-theme"],blog:["haxor-slevin"],course:["clean-one","clean-two","learn-two-theme"],website:["polaris-flex-theme"],training:["training-theme"],import:["clean-one","clean-two","learn-two-theme"]},me=e("AppHaxSteps",function(e){function a(){var e;return i(this,a),(e=s(this,a)).unlockComingSoon=!1,e.unlockTerrible=!1,e.windowControllers=new AbortController,e.nameTyped="",e.stepRoutes=[],e._progressReady=!1,e.step=null,e.loaded=!1,e.themeNames=[],e.appSettings={},y((function(){e.appSettings=k(g.appSettings);var t=k(g.site.structure);e.themeNames=Object.keys(e.appSettings.themes).filter((function(e){return t&&be[t]&&be[t].includes(e)}))})),y((function(){e.dark=k(g.darkMode)})),y((function(){S("app-hax-step",k(g.step))})),y((function(){S("app-hax-site",k(g.site)),e.step=g.stepTest(e.step)})),y((function(){k(g.createSiteSteps)&&k(g.location)&&(e.step=g.stepTest(e.step))})),y((function(){var t=k(g.routes);e.stepRoutes=t.filter((function(e){return e.step}))})),e}return n(a,e),o(a,[{key:"chooseStructure",value:function(e){if(!e.target.comingSoon){var t=e.target.value;g.site.structure=t,"course"===t&&(g.site.type="own",g.site.theme="clean-one"),"blog"===t&&(g.site.type="own",g.site.theme="haxor-slevin"),"collection"===t&&(g.site.type="own",g.site.theme="collections-theme"),"website"===t&&(g.site.type="own",g.site.theme="polaris-flex-theme"),"training"===t&&(g.site.type="own",g.site.theme="training-theme"),g.appEl.playSound("click2")}}},{key:"chooseType",value:function(e){if(!e.target.comingSoon){var t=e.target.type;g.site.type=t,g.appEl.playSound("click2")}}},{key:"docxImport",value:(z=b(m().mark((function e(n){var o,a=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.target.comingSoon||(o=n.target.type,t.import("./0bb221d1.js").then(function(){var e=b(m().mark((function e(t){var n,r,i,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(["haxcms"]),n=globalThis.FileSystemBroker.requestAvailability(),e.next=4,n.loadFile("docx");case 4:return r=e.sent,(i=new FormData).append("method","site"),i.append("type",k(g.site.structure)),i.append("upload",r),a.setProcessingVisual(),e.next=12,R.call("@haxcms/docxToSite",i);case 12:s=e.sent,g.toast("Processed!",300),200==s.status&&s.data&&""!=s.data.contents?(g.items=s.data.items,s.data.files&&(g.itemFiles=s.data.files),a.nameTyped=s.data.filename.replace(".docx","").replace("outline","").replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((function(){a.shadowRoot.querySelector("#sitename").value=a.nameTyped,a.shadowRoot.querySelector("#sitename").select()}),800),g.site.type=o,g.site.theme="clean-one",g.appEl.playSound("click2")):(g.appEl.playSound("error"),g.toast("File did not return valid HTML structure"));case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return z.apply(this,arguments)})},{key:"evoImport",value:(L=b(m().mark((function e(n){var o,a=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.target.comingSoon||(o=n.target.type,t.import("./72dcd9ad.js").then((function(e){return e.bd})).then(function(){var e=b(m().mark((function e(t){var n,r,i,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(["haxcms"]),n=globalThis.FileSystemBroker.requestAvailability(),e.next=4,n.loadFile("zip");case 4:return r=e.sent,(i=new FormData).append("method","site"),i.append("type",k(g.site.structure)),i.append("upload",r),a.setProcessingVisual(),e.next=12,R.call("@haxcms/evolutionToSite",i,null,null,"?jwt="+k(g.AppHaxAPI.jwt));case 12:s=e.sent,g.toast("Processed!",300),200==s.status&&s.data&&""!=s.data.contents?(g.items=s.data.items,a.nameTyped=s.data.filename.replace(".zip","").replace("outline","").replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((function(){a.shadowRoot.querySelector("#sitename").value=a.nameTyped,a.shadowRoot.querySelector("#sitename").select()}),800),g.site.type=o,g.site.theme="clean-one",g.appEl.playSound("click2")):(g.appEl.playSound("error"),g.toast("File did not return valid HTML structure"));case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return L.apply(this,arguments)})},{key:"gbImport",value:(f=b(m().mark((function e(t){var n,o,a,r=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.target.comingSoon){e.next=10;break}return n=t.target.type,o=globalThis.prompt("URL for the Gitbook repo"),T(["haxcms"]),this.setProcessingVisual(),e.next=7,R.call("@haxcms/gitbookToSite",{md:o});case 7:a=e.sent,g.toast("Processed!",300),200==a.status&&a.data&&""!=a.data.contents?(g.items=a.data.items,a.data.files&&(g.itemFiles=a.data.files),this.nameTyped=a.data.filename.replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((function(){r.shadowRoot.querySelector("#sitename").value=r.nameTyped,r.shadowRoot.querySelector("#sitename").select()}),800),g.site.type=n,g.site.theme="clean-one",g.appEl.playSound("click2")):(g.appEl.playSound("error"),g.toast("Repo did not return valid structure"));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"importFromURL",value:(v=b(m().mark((function e(t){var n,o,a,r,i,s,l,c,p=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.target,o=n.type,a=n.prompt,r=n.callback,i=n.param,t.target.comingSoon){e.next=12;break}return s=globalThis.prompt(a),T(["haxcms"]),this.setProcessingVisual(),(l={})[i]=s,e.next=9,R.call(r,l);case 9:c=e.sent,g.toast("Processed!",300),200==c.status&&c.data&&""!=c.data.contents?(g.items=c.data.items,c.data.files&&(g.itemFiles=c.data.files),this.nameTyped=c.data.filename.replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((function(){p.shadowRoot.querySelector("#sitename").value=p.nameTyped,p.shadowRoot.querySelector("#sitename").select()}),800),g.site.type=o,g.site.theme="clean-one",g.appEl.playSound("click2")):(g.appEl.playSound("error"),g.toast("Repo did not return valid structure"));case 12:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"notionImport",value:(d=b(m().mark((function e(t){var n,o,a,r=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.target.comingSoon){e.next=10;break}return n=t.target.type,o=globalThis.prompt("URL for the Github Notion repo"),T(["haxcms"]),this.setProcessingVisual(),e.next=7,R.call("@haxcms/notionToSite",{repoUrl:o});case 7:a=e.sent,g.toast("Processed!",300),200==a.status&&a.data&&""!=a.data.contents?(g.items=a.data.items,a.data.files&&(g.itemFiles=a.data.files),this.nameTyped=a.data.filename.replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((function(){r.shadowRoot.querySelector("#sitename").value=r.nameTyped,r.shadowRoot.querySelector("#sitename").select()}),800),g.site.type=n,g.site.theme="clean-one",g.appEl.playSound("click2")):(g.appEl.playSound("error"),g.toast("Repo did not return valid structure"));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"pressbooksImport",value:(r=b(m().mark((function e(n){var o,a=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.target.comingSoon||(o=n.target.type,t.import("./0bb221d1.js").then(function(){var e=b(m().mark((function e(t){var n,r,i,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(["haxcms"]),n=globalThis.FileSystemBroker.requestAvailability(),e.next=4,n.loadFile("html");case 4:return r=e.sent,(i=new FormData).append("method","site"),i.append("type",k(g.site.structure)),i.append("upload",r),a.setProcessingVisual(),e.next=12,R.call("@haxcms/pressbooksToSite",i);case 12:s=e.sent,g.toast("Processed!",300),200==s.status&&s.data&&""!=s.data.contents?(g.items=s.data.items,s.data.files&&(g.itemFiles=s.data.files),a.nameTyped=s.data.filename.replace(".html","").replace("outline","").replace(/\s/g,"").replace(/-/g,"").toLowerCase(),setTimeout((function(){a.shadowRoot.querySelector("#sitename").value=a.nameTyped,a.shadowRoot.querySelector("#sitename").select()}),800),g.site.type=o,g.site.theme="clean-one",g.appEl.playSound("click2")):(g.appEl.playSound("error"),g.toast("File did not return valid HTML structure"));case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"setProcessingVisual",value:function(){var e=globalThis.document.createElement("simple-icon-lite");e.icon="hax:loading",e.style.setProperty("--simple-icon-height","40px"),e.style.setProperty("--simple-icon-width","40px"),e.style.height="150px",e.style.marginLeft="8px",g.toast("Processing",6e4,{hat:"construction",slot:e})}},{key:"chooseTheme",value:function(e){if(!e.target.comingSoon){var t=e.target.value;g.site.theme=t,g.appEl.playSound("click2")}}},{key:"chooseName",value:function(){if(""!==this.nameTyped){var e=this.shadowRoot.querySelector("#sitename").value;g.site.name=e,g.appEl.playSound("click2")}}},{key:"progressReady",value:function(e){var t=this;e.detail&&(this._progressReady=!0,5===this.step&&setTimeout((function(){t.shadowRoot.querySelector("app-hax-hat-progress").process()}),300))}},{key:"updated",value:function(e){var t=this;l(a,"updated",this,1)&&l(a,"updated",this,3)([e]),e.forEach((function(e,n){if(4===t.step&&"step"===n&&t.shadowRoot&&(t.shadowRoot.querySelector("#sitename").value=k(g.site.name)),5===t.step&&"step"===n&&t.shadowRoot&&t._progressReady&&setTimeout((function(){t.shadowRoot.querySelector("app-hax-hat-progress").process()}),600),"step"===n&&(g.step=t.step),"unlockTerrible"===n&&t[n]){Object.keys(be).forEach((function(e){be[e]=[].concat(w(be[e]),["terrible-themes","terrible-productionz-themes","terrible-outlet-themes","terrible-best-themes","terrible-resume-themes"])}));var o=k(g.site.structure);t.themeNames=Object.keys(t.appSettings.themes).filter((function(e){return o&&be[o]&&be[o].includes(e)}))}}))}},{key:"connectedCallback",value:function(){l(a,"connectedCallback",this,3)([]),globalThis.addEventListener("resize",this.maintainScroll.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("popstate",this.popstateListener.bind(this),{signal:this.windowControllers.signal})}},{key:"disconnectedCallback",value:function(){this.windowControllers.abort(),l(a,"disconnectedCallback",this,3)([])}},{key:"popstateListener",value:function(e){var t=this;if("popstate"===e.type&&null===e.state)try{setTimeout((function(){var n=e.target.document.location.pathname.split("/").pop();if(n.includes("createSite")){var o=parseInt(n.replace("createSite-step-",""));og.stepTest(o)&&(g.toast("Please select an option"),t.step=g.stepTest(o),t.shadowRoot.querySelector("#link-step-"+t.step).click())}}),0)}catch(e){}}},{key:"maintainScroll",value:function(){var e=this;this.shadowRoot&&this.step&&(this.scrollToThing("#step-".concat(this.step),{behavior:"instant",block:"start",inline:"nearest"}),setTimeout((function(){e.scrollToThing("#step-".concat(e.step),{behavior:"instant",block:"start",inline:"nearest"})}),100))}},{key:"firstUpdated",value:function(e){var t=this;l(a,"firstUpdated",this,1)&&l(a,"firstUpdated",this,3)([e]),setTimeout((function(){null===t.step&&(t.step=1),t.scrollToThing("#step-".concat(t.step),{behavior:"instant",block:"start",inline:"nearest"})}),100),y((function(){if(k(g.createSiteSteps)&&k(g.appReady)){var e=k(g.location);e.route&&e.route.step&&e.route.name&&setTimeout((function(){t.scrollToThing("#".concat(e.route.name),{behavior:"smooth",block:"start",inline:"nearest"}),4===e.route.step&&4===g.stepTest(4)&&setTimeout((function(){t.shadowRoot.querySelector("#sitename").focus(),t.scrollToThing("#step-4",{behavior:"instant",block:"start",inline:"nearest"})}),800)}),300)}})),y((function(){if(t.shadowRoot&&k(g.createSiteSteps)&&k(g.appReady)){var e=k(g.activeItem);e&&e.name&&e.step&&!t.__overrideProgression&&t.shadowRoot.querySelector("#link-".concat(e.name)).click()}}))}},{key:"scrollToThing",value:function(e,t){var n=void 0!==globalThis.safari;this.shadowRoot.querySelector(".carousel-with-snapping-item.active-step")&&this.shadowRoot.querySelector(".carousel-with-snapping-item.active-step").classList.remove("active-step"),n?this.shadowRoot.querySelector(e).scrollIntoView():this.shadowRoot.querySelector(e).scrollIntoView(t),this.shadowRoot.querySelector(e).classList.add("active-step")}},{key:"progressFinished",value:function(e){e.detail&&(this.loaded=!0,g.appEl.playSound("success"),e.target.shadowRoot.querySelector(".game").focus(),this.scrollToThing("#step-".concat(this.step),{behavior:"instant",block:"start",inline:"nearest"}))}},{key:"typeKey",value:function(){this.nameTyped=this.shadowRoot.querySelector("#sitename").value}},{key:"keydown",value:function(e){[" ","/","\\","&","#","?","+","=","{","}","|","^","~","[","]","`",'"',"'"].includes(e.key)?(g.appEl.playSound("error"),g.toast('"'.concat(e.key,'" is not allowed. Use - or _')),e.preventDefault()):"Enter"===e.key?this.chooseName():["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"].includes(e.key)||g.appEl.playSound("click")}},{key:"stepLinkClick",value:function(e){var t=parseInt(e.target.getAttribute("data-step"),10);this.stept&&(this.nameTyped="",g.siteReady=!1,1===t?(g.site.structure=null,g.site.type=null,g.site.theme=null,g.site.name=null):2===t?(g.site.type=null,g.site.theme=null,g.site.name=null):3===t?(g.site.theme=null,g.site.name=null):4===t&&(g.site.name=null),this.step=t)}},{key:"renderTypes",value:function(e){var t=k(g.site.structure),n=h($||($=p([""])));switch(t){case"collection":n=h(G||(G=p([' \n \n \n '])),2!==e?"-1":"",this.chooseType,2!==e?"-1":"",this.chooseType,!this.unlockComingSoon,2!==e?"-1":"",this.chooseType,!this.unlockComingSoon,2!==e?"-1":"",this.chooseType,!this.unlockComingSoon);break;default:case"course":n=h(X||(X=p([' \n '])),2!==e?"-1":"",this.chooseType,2!==e?"-1":"",this.chooseType);break;case"website":n=h(Y||(Y=p([' '])),2!==e?"-1":"",this.chooseType);break;case"training":n=h(K||(K=p([' '])),2!==e?"-1":"",this.chooseType);break;case"blog":n=h(J||(J=p([' '])),2!==e?"-1":"",this.chooseType);break;case"import":n=h(Q||(Q=p([' \n \n \n \n \n \n \n '])),2!==e?"-1":"",this.docxImport,2!==e?"-1":"",this.importFromURL,2!==e?"-1":"",this.importFromURL,2!==e?"-1":"",this.evoImport,2!==e?"-1":"",this.importFromURL,2!==e?"-1":"",this.importFromURL,2!==e?"-1":"",this.importFromURL,2!==e?"-1":"",this.pressbooksImport)}return n}},{key:"render",value:function(){var e=this;return h(Z||(Z=p(['\n \n '])),k(g.isNewUser)?h(te||(te=p([""]))):h(ee||(ee=p(['\n \n \n \n Site list \n '])),pe,this.stepLinkClick),this.stepRoutes.map((function(t,n){return h(ne||(ne=p(['\n ',' \n Step ',": "," \n "])),e.step\n \n ',"
\n \n "])),e.appSettings.themes[t].name,t,e.chooseTheme,3!==e.step?"-1":"",e.appSettings.themes[t].thumbnail,e.appSettings.themes[t].name)})):"",this.typeKey,this.keydown,k(g.site.structure),4!==this.step?"-1":"",4!==this.step?"-1":"",this.chooseName,""===this.nameTyped,this.progressReady,this.progressFinished,5!==this.step?"-1":"")}}],[{key:"tag",get:function(){return"app-hax-steps"}},{key:"properties",get:function(){return u(u({},l(a,"properties",this)),{},{step:{type:Number,reflect:!0},stepRoutes:{type:Array},themeNames:{type:Array},unlockComingSoon:{type:Boolean,reflect:!0,attribute:"unlock-coming-soon"},unlockTerrible:{type:Boolean,reflect:!0,attribute:"unlock-terrible"},loaded:{type:Boolean,reflect:!0},appSettings:{type:Object},nameTyped:{type:String}})}},{key:"styles",get:function(){return[l(a,"styles",this),c(ae||(ae=p(['\n :host {\n display: block;\n }\n scrollable-component {\n --scrollbar-width: 0px;\n --scrollbar-height: 0px;\n --scrollbar-padding: 0;\n --viewport-overflow-x: hidden;\n overflow: hidden;\n }\n #grid-container {\n display: grid;\n grid-template-columns: 200px 200px 200px;\n background: transparent;\n }\n .carousel-with-snapping-track {\n display: grid;\n grid-auto-flow: column;\n grid-gap: 30px;\n }\n .carousel-with-snapping-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: normal;\n scroll-snap-align: center;\n scroll-snap-stop: always;\n scrollbar-gutter: stable;\n width: var(--viewport-width);\n font-size: 1.5rem;\n text-align: center;\n overflow-x: hidden;\n max-height: 60vh;\n padding-top: 1vh;\n }\n #step-links {\n padding: 0;\n margin: 0;\n }\n ul,\n li {\n list-style: none;\n }\n li {\n vertical-align: middle;\n display: inline-flex;\n margin: 5px;\n }\n li.step {\n border-radius: 50%;\n background-color: transparent;\n }\n li a {\n font-size: 12px;\n color: var(--simple-colors-default-theme-grey-12, white);\n text-decoration: none;\n padding: 5px;\n width: 20px;\n height: 20px;\n line-height: 20px;\n margin: 0;\n display: block;\n border: 0;\n border-radius: 50%;\n background-repeat: no-repeat;\n background-size: 30px 30px;\n background-color: var(--simple-colors-default-theme-grey-1, white);\n background-image: url("','");\n transition:\n 0.3s ease-in-out background,\n 0.3s ease-in-out color;\n transition-delay: 0.6s, 0.3s;\n }\n li a[disabled] {\n background-image: url("','");\n pointer-events: none;\n color: var(--simple-colors-default-theme-grey-7, grey);\n user-select: none;\n }\n li[disabled] {\n background-color: grey;\n }\n li.active-step a {\n background-color: orange;\n background-image: url("','");\n }\n app-hax-button {\n padding: 10px 0px 10px 0px;\n background: transparent;\n }\n #theme-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n }\n img {\n pointer-events: none;\n }\n #themeContainer {\n width: 70vw;\n height: 55vh;\n }\n .theme-button {\n background-color: transparent;\n color: var(--simple-colors-default-theme-grey-12, white);\n border: none;\n margin: 8px;\n padding: 8px;\n width: 245px;\n }\n\n .theme-button div {\n font-family: "Press Start 2P", sans-serif;\n font-size: 14px;\n margin-top: 12px;\n }\n .theme-button:focus,\n .theme-button:hover {\n outline: 4px solid var(--app-hax-accent-color, var(--accent-color));\n outline-offset: 4px;\n background-color: transparent;\n border: none;\n cursor: pointer;\n }\n #sitename {\n font-family: "Press Start 2P", sans-serif;\n font-size: 32px;\n padding: 8px;\n width: 40vw;\n }\n #homebtn {\n --simple-icon-height: 30px;\n --simple-icon-width: 30px;\n border-radius: 50%;\n cursor: pointer;\n background-color: var(--simple-colors-default-theme-grey-1, white);\n }\n .homelnk {\n background-image: none;\n display: flex;\n padding: 0;\n margin: 0;\n height: 30px;\n width: 30px;\n }\n app-hax-site-button {\n justify-content: center;\n --app-hax-site-button-width: 35vw;\n --app-hax-site-button-min-width: 240px;\n }\n app-hax-hat-progress {\n height: 400px;\n width: 400px;\n display: block;\n }\n\n @media (max-width: 800px) {\n .theme-button {\n width: unset;\n padding: 0;\n }\n .theme-button div {\n font-size: 12px;\n margin-top: 8px;\n }\n .theme-button img {\n height: 70px;\n }\n app-hax-site-button {\n width: 320px;\n max-width: 60vw;\n --app-hax-site-button-font-size: 2.5vw;\n }\n #sitename {\n width: 70vw;\n font-size: 20px;\n }\n #grid-container {\n grid-template-columns: 150px 150px 150px;\n }\n }\n @media (max-height: 600px) {\n .carousel-with-snapping-item {\n padding-top: 4px;\n max-height: 57vh;\n }\n #sitename {\n width: 40vw;\n font-size: 14px;\n }\n app-hax-hat-progress {\n transform: scale(0.5);\n margin-top: -18vh;\n }\n }\n @media (max-width: 500px) {\n app-hax-hat-progress {\n transform: scale(0.5);\n margin-top: -15vh;\n }\n }\n @media (max-height: 400px) {\n .carousel-with-snapping-item {\n padding-top: 4px;\n max-height: 40vh;\n }\n app-hax-hat-progress {\n transform: scale(0.3);\n }\n .carousel-with-snapping-item.active-step app-hax-hat-progress {\n position: fixed;\n top: 20%;\n left: 20%;\n }\n }\n '])),x(de),x(ue),x(he))]}}]);var r,d,v,f,L,z}(f));customElements.define(me.tag,me)}}}));
diff --git a/storybook/47ed0b8a.js b/storybook/47ed0b8a.js
deleted file mode 100644
index efeb0d55d..000000000
--- a/storybook/47ed0b8a.js
+++ /dev/null
@@ -1 +0,0 @@
-System.register(["./be7cca87.js","./dde47007.js"],(function(t){"use strict";var s,e,i,a,n,o,l,c,r,h;return{setters:[function(t){s=t._,e=t.a,i=t.f,a=t.g,n=t.c,o=t.d,l=t.p,c=t.t,r=t.N},function(t){h=t.R}],execute:function(){var d=t("HAXCMSToast",function(t){function h(){var t;return n(this,h),(t=o(this,h)).windowControllers=new AbortController,l((function(){t.userName=c(r.userData.userName)})),l((function(){t.darkMode=c(r.darkMode)})),t}return s(h,t),e(h,[{key:"connectedCallback",value:function(){i(a(h.prototype),"connectedCallback",this).call(this),globalThis.addEventListener("haxcms-toast-hide",this.hideSimpleToast.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("haxcms-toast-show",this.showSimpleToast.bind(this),{signal:this.windowControllers.signal})}},{key:"hideSimpleToast",value:function(t){var s=this;this.alwaysvisible||(this.style.animation="forcedfadeout 0.6s .3s",this.awaitingMerlinInput=!1,setTimeout((function(){s.hide()}),0))}},{key:"disconnectedCallback",value:function(){this.windowControllers.abort(),i(a(h.prototype),"disconnectedCallback",this).call(this)}}],[{key:"tag",get:function(){return"haxcms-toast"}}])}(h));customElements.define(d.tag,d),globalThis.HAXCMSToast=globalThis.HAXCMSToast||{},globalThis.HAXCMSToast.requestAvailability=function(){return globalThis.HAXCMSToast.instance||(globalThis.HAXCMSToast.instance=globalThis.document.createElement(d.tag),globalThis.document.body.appendChild(globalThis.HAXCMSToast.instance)),globalThis.HAXCMSToast.instance};t("HAXCMSToastInstance",globalThis.HAXCMSToast.requestAvailability())}}}));
diff --git a/storybook/4975a51c.js b/storybook/4975a51c.js
deleted file mode 100644
index 9a6abbbb7..000000000
--- a/storybook/4975a51c.js
+++ /dev/null
@@ -1 +0,0 @@
-System.register(["./be7cca87.js","./bf8ed523.js"],(function(e,t){"use strict";var n,i,o,a,s,r,l,d,c,p,h,u,m,f,v,g,b,x,y,k,w,C,A,S,O;return{setters:[function(e){n=e.E,i=e._,o=e.a,a=e.F,s=e.G,r=e.e,l=e.$,d=e.c,c=e.d,p=e.H,h=e.I,u=e.j,m=e.l,f=e.q,v=e.f,g=e.g,b=e.i,x=e.r,y=e.b,k=e.k,w=e.S,C=e.s,A=e.t,S=e.J,O=e.p},function(){}],execute:function(){var I,E,L,T,N,j=new WeakMap,F=0,P=new Map,z=new WeakSet,D=function(){return new Promise((function(e){return requestAnimationFrame(e)}))},R=function(e,t){var n=e-t;return 0===n?void 0:n},H=function(e,t){var n=e/t;return 1===n?void 0:n},_={left:function(e,t){var n=R(e,t);return{value:n,transform:null==n||isNaN(n)?void 0:"translateX(".concat(n,"px)")}},top:function(e,t){var n=R(e,t);return{value:n,transform:null==n||isNaN(n)?void 0:"translateY(".concat(n,"px)")}},width:function(e,t){var n;0===t&&(t=1,n={width:"1px"});var i=H(e,t);return{value:i,overrideFrom:n,transform:null==i||isNaN(i)?void 0:"scaleX(".concat(i,")")}},height:function(e,t){var n;0===t&&(t=1,n={height:"1px"});var i=H(e,t);return{value:i,overrideFrom:n,transform:null==i||isNaN(i)?void 0:"scaleY(".concat(i,")")}}},B={duration:333,easing:"ease-in-out"},M=["left","top","width","height","opacity","color","background"],U=new WeakMap,X=function(e){function t(e){var n;if(d(this,t),(n=c(this,t,[e])).t=!1,n.i=null,n.o=null,n.h=!0,n.shouldLog=!1,e.type===p.CHILD)throw Error("The `animate` directive must be used in attribute position.");return n.createFinished(),h(n)}return i(t,e),o(t,[{key:"createFinished",value:function(){var e,t=this;null!==(e=this.resolveFinished)&&void 0!==e&&e.call(this),this.finished=new Promise((function(e){t.l=e}))}},{key:"resolveFinished",value:(g=u(m().mark((function e(){var t;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null!==(t=this.l)&&void 0!==t&&t.call(this),this.l=void 0;case 1:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"render",value:function(e){return a}},{key:"getController",value:function(){return j.get(this.u)}},{key:"isDisabled",value:function(){var e;return this.options.disabled||(null===(e=this.getController())||void 0===e?void 0:e.disabled)}},{key:"update",value:function(e,t){var n,i=this,o=s(t,1)[0],a=void 0===this.u;return a&&(this.u=null===(n=e.options)||void 0===n?void 0:n.host,this.u.addController(this),this.u.updateComplete.then((function(e){return i.t=!0})),this.element=e.element,U.set(this.element,this)),this.optionsOrCallback=o,(a||"function"!=typeof o)&&this.p(o),this.render(o)}},{key:"p",value:function(e){var t,n,i;e=null!==(t=e)&&void 0!==t?t:{};var o=this.getController();void 0!==o&&((e=r(r({},o.defaultOptions),e)).keyframeOptions=r(r({},o.defaultOptions.keyframeOptions),e.keyframeOptions)),null!==(i=(n=e).properties)&&void 0!==i||(n.properties=M),this.options=e}},{key:"m",value:function(){var e={},t=this.element.getBoundingClientRect(),n=getComputedStyle(this.element);return this.options.properties.forEach((function(i){var o,a=null!==(o=t[i])&&void 0!==o?o:_[i]?void 0:n[i],s=Number(a);e[i]=isNaN(s)?a+"":s})),e}},{key:"v",value:function(){var e,t=!0;return this.options.guard&&(t=function(e,t){if(Array.isArray(e)){if(Array.isArray(t)&&t.length===e.length&&e.every((function(e,n){return e===t[n]})))return!1}else if(t===e)return!1;return!0}(e=this.options.guard(),this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&t&&this.element.isConnected,this.h&&(this._=Array.isArray(e)?Array.from(e):e),this.h}},{key:"hostUpdate",value:function(){var e;"function"==typeof this.optionsOrCallback&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=null!==(e=this.i)&&void 0!==e?e:this.element.parentNode,this.o=this.element.nextSibling)}},{key:"hostUpdated",value:(v=u(m().mark((function e(){var t,n,i,o,a,s,l,d,c,p,h;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.h&&this.element.isConnected&&(!this.options.skipInitial||this.isHostRendered)){e.next=2;break}return e.abrupt("return");case 2:return this.prepare(),e.next=5,D;case 5:n=this.O(),i=this.j(this.options.keyframeOptions,n),o=this.m(),void 0!==this.A?(a=this.N(this.A,o,n),s=a.from,l=a.to,this.log("measured",[this.A,o,s,l]),t=this.calculateKeyframes(s,l)):(d=P.get(this.options.inId))?(P.delete(this.options.inId),c=this.N(d,o,n),p=c.from,h=c.to,t=this.calculateKeyframes(p,h),t=this.options.in?[r(r({},this.options.in[0]),t[0])].concat(f(this.options.in.slice(1)),[t[1]]):t,F++,t.forEach((function(e){return e.zIndex=F}))):this.options.in&&(t=[].concat(f(this.options.in),[{}])),this.animate(t,i);case 8:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"resetStyles",value:function(){var e;void 0!==this.P&&(this.element.setAttribute("style",null!==(e=this.P)&&void 0!==e?e:""),this.P=void 0)}},{key:"commitStyles",value:function(){var e,t;this.P=this.element.getAttribute("style"),null!==(e=this.webAnimation)&&void 0!==e&&e.commitStyles(),null===(t=this.webAnimation)||void 0===t||t.cancel()}},{key:"reconnected",value:function(){}},{key:"disconnected",value:(l=u(m().mark((function e(){var t,n,i,o,a,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.h){e.next=2;break}return e.abrupt("return");case 2:if(void 0!==this.options.id&&P.set(this.options.id,this.A),void 0!==this.options.out){e.next=4;break}return e.abrupt("return");case 4:return this.prepare(),e.next=7,D();case 7:if(null===(t=this.i)||void 0===t||!t.isConnected){e.next=10;break}n=this.o&&this.o.parentNode===this.i?this.o:null,this.i.insertBefore(this.element,n),this.options.stabilizeOut&&(i=this.m(),this.log("stabilizing out"),o=this.A.left-i.left,a=this.A.top-i.top,!("static"===getComputedStyle(this.element).position)||0===o&&0===a||(this.element.style.position="relative"),0!==o&&(this.element.style.left=o+"px"),0!==a&&(this.element.style.top=a+"px"));case 10:return s=this.j(this.options.keyframeOptions),e.next=13,this.animate(this.options.out,s);case 13:this.element.remove();case 14:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"prepare",value:function(){this.createFinished()}},{key:"start",value:function(){var e,t;null===(e=(t=this.options).onStart)||void 0===e||e.call(t,this)}},{key:"didFinish",value:function(e){var t,n;e&&null!==(t=(n=this.options).onComplete)&&void 0!==t&&t.call(n,this),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}},{key:"O",value:function(){for(var e=[],t=this.element.parentNode;t;t=null===(n=t)||void 0===n?void 0:n.parentNode){var n,i=U.get(t);i&&!i.isDisabled()&&i&&e.push(i)}return e}},{key:"isHostRendered",get:function(){var e=this,t=z.has(this.u);return t||this.u.updateComplete.then((function(){z.add(e.u)})),t}},{key:"j",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.O(),n=r({},B);return t.forEach((function(e){return Object.assign(n,e.options.keyframeOptions)})),Object.assign(n,e),n}},{key:"N",value:function(e,t,n){e=r({},e),t=r({},t);var i=n.map((function(e){return e.animatingProperties})).filter((function(e){return void 0!==e})),o=1,a=1;return i.length>0&&(i.forEach((function(e){e.width&&(o/=e.width),e.height&&(a/=e.height)})),void 0!==e.left&&void 0!==t.left&&(e.left=o*e.left,t.left=o*t.left),void 0!==e.top&&void 0!==t.top&&(e.top=a*e.top,t.top=a*t.top)),{from:e,to:t}}},{key:"calculateKeyframes",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i={},o={},a=!1,s={};for(var r in t){var l=e[r],d=t[r];if(r in _){var c,p=_[r];if(void 0===l||void 0===d)continue;var h=p(l,d);void 0!==h.transform&&(s[r]=h.value,a=!0,i.transform="".concat(null!==(c=i.transform)&&void 0!==c?c:""," ").concat(h.transform),void 0!==h.overrideFrom&&Object.assign(i,h.overrideFrom))}else l!==d&&void 0!==l&&void 0!==d&&(a=!0,i[r]=l,o[r]=d)}return i.transformOrigin=o.transformOrigin=n?"center center":"top left",this.animatingProperties=s,a?[i,o]:void 0}},{key:"animate",value:(n=u(m().mark((function e(t){var n,i,o,a=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:this.options.keyframeOptions,this.start(),this.frames=t,i=!1,this.isAnimating()||this.isDisabled()||(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),void 0===t)){e.next=15;break}return this.log("animate",[t,n]),i=!0,this.webAnimation=this.element.animate(t,n),null==(o=this.getController())||o.add(this),e.prev=7,e.next=10,this.webAnimation.finished;case 10:e.next=14;break;case 12:e.prev=12,e.t0=e.catch(7);case 14:null==o||o.remove(this);case 15:return e.abrupt("return",(this.didFinish(i),i));case 16:case"end":return e.stop()}}),e,this,[[7,12]])}))),function(e){return n.apply(this,arguments)})},{key:"isAnimating",value:function(){var e,t;return"running"===(null===(e=this.webAnimation)||void 0===e?void 0:e.playState)||(null===(t=this.webAnimation)||void 0===t?void 0:t.pending)}},{key:"log",value:function(e,t){this.shouldLog&&!this.isDisabled()&&console.log(e,this.options.id,t)}}]);var n,l,v,g}(l),q=n(X),K={url:new URL("./elements/app-hax/lib/v1/app-hax-site-bar.js",document.baseURI).href},V=new URL("../assets/images/DropDownBorder.svg",K.url),W=function(e){function t(){var e;return d(this,t),(e=c(this,t)).icon="link",e.opened=!1,e.inprogress=!1,e.iconLink="/",e.textInfo={},e.siteId="",e}return i(t,e),o(t,[{key:"updated",value:function(e){var n=this;v(g(t.prototype),"updated",this)&&v(g(t.prototype),"updated",this).call(this,e),e.forEach((function(e,t){"opened"===t&&void 0!==e&&n.dispatchEvent(new CustomEvent("".concat(t,"-changed"),{detail:{value:n[t]}}))}))}},{key:"__clickButton",value:function(){this.opened=!this.opened}},{key:"render",value:function(){return k(I||(I=y(['\n \n \n \n
\n Access site \n More options \n '])),this.iconLink,this.icon,this.__clickButton,q())}}],[{key:"tag",get:function(){return"app-hax-site-bar"}},{key:"properties",get:function(){return r(r({},v(g(t),"properties",this)),{},{opened:{type:Boolean,reflect:!0},icon:{type:String},inprogress:{type:Boolean,reflect:!0},iconLink:{type:String,attribute:"icon-link"},textInfo:{type:Object},siteId:{type:String,reflect:!0,attribute:"site-id"}})}},{key:"styles",get:function(){return[v(g(t),"styles",this),b(E||(E=y(['\n :host {\n --main-banner-width: 513px;\n --main-banner-height: 60px;\n --band-banner-height: 208px;\n display: inline-block;\n background-color: var(--simple-colors-default-theme-accent-3);\n color: var(--simple-colors-default-theme-grey-12);\n border-color: var(--simple-colors-default-theme-accent-4);\n border-style: solid;\n border-width: 5px 10px 5px 10px;\n }\n\n #labels {\n display: block;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n #labels ::slotted(*) {\n font-family: "Press Start 2P", sans-serif;\n font-size: 25px;\n }\n #labels ::slotted(a) {\n color: var(--simple-colors-default-theme-accent-11);\n padding: 8px 0;\n display: block;\n }\n #labels ::slotted(a:focus),\n #labels ::slotted(a:hover) {\n color: var(--simple-colors-default-theme-accent-3);\n background-color: var(--simple-colors-default-theme-accent-11);\n }\n\n :host([opened]) {\n background-color: var(--simple-colors-default-theme-accent-3);\n }\n #mainCard {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n width: var(--main-banner-width);\n height: var(--main-banner-height);\n padding: 2px 4px;\n }\n\n #band-container {\n display: block;\n visibility: hidden;\n height: 1px;\n width: var(--main-banner-width);\n }\n\n :host([opened]) #band-container {\n height: var(--band-banner-height);\n visibility: visible;\n }\n a {\n flex: 1;\n }\n #labels {\n flex: 6;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n #icon {\n --simple-icon-width: 49px;\n --simple-icon-height: 49px;\n color: var(--simple-colors-default-theme-accent-11);\n }\n #icon:hover,\n #icon:focus,\n #icon:active {\n color: var(--simple-colors-default-theme-accent-3);\n background-color: var(--simple-colors-default-theme-accent-11);\n }\n #dots {\n --simple-icon-width: 49px;\n --simple-icon-height: 49px;\n color: var(--simple-colors-default-theme-grey-12);\n background-image: url(',");\n background-repeat: no-repeat;\n background-position: center;\n }\n @media (max-width: 640px) {\n :host {\n --main-banner-height: 40px;\n --band-banner-height: 140px;\n }\n #icon,\n #dots {\n --simple-icon-width: 30px;\n --simple-icon-height: 30px;\n }\n #mainCard {\n padding: 0;\n }\n }\n "])),x(V))]}}])}(w);customElements.define(W.tag,W);var G,Y,J,$,Q,Z=function(e){function n(){var e;return d(this,n),(e=c(this,n)).need="all need to succeed",e.details={},e.siteId="",e.detailOps=[{name:"Copy",op:"copySite",icon:"icons:content-copy"},{name:"Download",op:"downloadSite",icon:"file-download"},{name:"Archive",op:"archiveSite",icon:"icons:archive"}],globalThis.HAXCMSContext&&"php"===globalThis.HAXCMSContext&&e.detailOps.push({name:"Git",op:"gitList",icon:"hax:git"}),e}return i(n,e),o(n,[{key:"siteOperation",value:function(e){var n=this;C.appEl.playSound("click");var i=e.target;"DIV"===i.tagName&&(i=i.parentNode);var o=globalThis.document.createElement("div"),a=i.getAttribute("data-site-operation"),s=i.getAttribute("data-site-operation-name"),r=i.getAttribute("data-site");C.activeSiteOp=a,C.activeSiteId=r,t.import("./be7cca87.js").then((function(e){return e.bf})).then((function(){setTimeout((function(){var e=A(C.manifest.items.filter((function(e){return e.id===r})).pop());if(o.appendChild(globalThis.document.createTextNode("Are you sure you want to ".concat(a.replace("Site","")," ").concat(e.metadata.site.name,"?"))),"gitList"===a)"php"===globalThis.HAXCMSContext&&globalThis.open("gitlist/".concat(e.metadata.site.name),"_blank","noopener noreferrer");else{var t=globalThis.document.createElement("div"),l=globalThis.document.createElement("button");l.innerText="Confirm",l.classList.add("hax-modal-btn"),l.addEventListener("click",n.confirmOperation.bind(n)),t.appendChild(l);var d=globalThis.document.createElement("button");d.innerText="Cancel",d.classList.add("hax-modal-btn"),d.classList.add("cancel"),d.addEventListener("click",n.cancelOperation.bind(n)),t.appendChild(d),n.dispatchEvent(new CustomEvent("simple-modal-show",{bubbles:!0,cancelable:!0,composed:!0,detail:{title:"".concat(s," ").concat(e.metadata.site.name,"?"),elements:{content:o,buttons:t},invokedBy:i,styles:{"--simple-modal-titlebar-background":"orange","--simple-modal-titlebar-color":"black","--simple-modal-width":"30vw","--simple-modal-min-width":"300px","--simple-modal-z-index":"100000000","--simple-modal-height":"20vh","--simple-modal-min-height":"300px","--simple-modal-titlebar-height":"80px"}}}))}}),0)}))}},{key:"cancelOperation",value:function(){C.activeSiteOp="",C.activeSiteId=null,globalThis.dispatchEvent(new CustomEvent("simple-modal-hide")),C.appEl.playSound("error")}},{key:"confirmOperation",value:(a=u(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=A(C.activeSiteOp),n=A(C.activeSite),e.next=4,C.AppHaxAPI.makeCall(t,{site:{name:n.metadata.site.name,id:n.id}},!0,(function(){"downloadSite"===A(C.activeSiteOp)?globalThis.open(C.AppHaxAPI.lastResponse.downloadSite.data.link,"_blank"):C.refreshSiteListing()}));case 4:globalThis.dispatchEvent(new CustomEvent("simple-modal-hide")),C.appEl.playSound("success"),C.toast("".concat(n.metadata.site.name," ").concat(t.replace("Site","")," successful!"),3e3,{hat:"random"});case 7:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return k(L||(L=y(['\n
\n \n \n ',"\n
\n \n "])),this.details.created,this.details.updated,this.details.pages,this.details.url,function(e){var t="site";if(e){var n=e.split("sites/");n.length>1&&(t=n.pop().replace("/",""))}return t}(this.details.url),this.detailOps.map((function(t){return k(T||(T=y(['\n \n
\n ','
\n \n
'," ","\n "," \n
\n "])),e.siteId,t.op,t.name,t.icon,t.op,e.siteOperation,t.name.toLowerCase(),t.op,"gitList"!=t.op?"":"View",t.name,"gitList"!=t.op?"Site":"source")})))}}],[{key:"tag",get:function(){return"app-hax-site-details"}},{key:"properties",get:function(){return r(r({},v(g(n),"properties",this)),{},{details:{type:Object},siteId:{type:String,attribute:"site-id"}})}},{key:"styles",get:function(){return[v(g(n),"styles",this),b(N||(N=y(['\n :host {\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: 12px;\n align-items: stretch;\n background-color: var(--simple-colors-default-theme-grey-2);\n height: 208px;\n }\n\n .flex-container {\n flex: 1;\n background-color: var(--simple-colors-default-theme-grey-2);\n margin: 8px;\n display: flex;\n flex-direction: row;\n justify-content: space-around;\n align-items: center;\n }\n .info-group {\n height: 100%;\n max-width: 25%;\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n padding: 0px;\n flex: 1;\n }\n simple-icon-button-lite:active,\n simple-icon-button-lite:hover,\n simple-icon-button-lite:focus {\n background-color: var(--simple-colors-default-theme-grey-4, #eeeeee);\n outline: 2px solid var(--simple-colors-default-theme-grey-12);\n outline-offset: 1px;\n }\n\n .info-headings {\n font-size: 12px;\n }\n .info-item {\n font-family: "Press Start 2P", sans-serif;\n display: block;\n text-overflow: ellipsis;\n overflow: hidden;\n color: var(--simple-colors-default-theme-grey-12);\n line-height: 12px;\n max-width: 100%;\n font-size: 12px;\n }\n .pre ::slotted(*) {\n padding: 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 50%;\n display: inline-flex;\n }\n a {\n text-decoration: underline;\n }\n .info-date {\n color: var(--simple-colors-default-theme-grey-12);\n line-height: 12px;\n font-size: 12px;\n }\n\n .info-icon {\n --simple-icon-width: 49px;\n --simple-icon-height: 49px;\n --simple-icon-button-border-radius: 0px;\n --simple-icon-button-border: 0px;\n outline: 0;\n border: 2px solid var(--simple-colors-default-theme-grey-12);\n border-radius: 4px;\n padding: 4px;\n width: 80%;\n }\n .info-icon::part(button) {\n outline: none;\n }\n @media (max-width: 640px) {\n :host {\n height: 140px;\n }\n .btn-group button {\n padding: 4px;\n margin: 4px 0;\n }\n .flex-container > div {\n margin: 0px;\n }\n .info-headings {\n font-size: 8px;\n }\n .info-date {\n font-size: 8px;\n line-height: 10px;\n }\n .info-icon {\n --simple-icon-width: 30px;\n --simple-icon-height: 30px;\n padding: 2px;\n border-radius: none;\n }\n .info-item {\n font-size: 8px;\n }\n .flex-container {\n margin: 2px;\n }\n .pre ::slotted(*) {\n padding: 0px;\n margin-top: 8px;\n }\n .info-group {\n height: 24px;\n }\n }\n '])))]}}]);var a}(w);customElements.define(Z.tag,Z);var ee=e("AppHaxSearchResults",function(e){function t(){var e;return d(this,t),(e=c(this,t)).searchItems=[],e.displayItems=[],e.searchTerm="",e.dark=!1,O((function(){e.searchTerm=A(C.searchTerm)})),O((function(){e.dark=A(C.darkMode)})),O((function(){var t=A(C.manifest);t&&t.items&&(e.searchItems=t.items,e.displayItems=f(e.searchItems))})),e}return i(t,e),o(t,[{key:"updated",value:function(e){var n=this;v(g(t.prototype),"updated",this)&&v(g(t.prototype),"updated",this).call(this,e),e.forEach((function(e,t){"searchTerm"===t&&(n.displayItems=n.searchItems.filter((function(e){return!!(e.title.toLowerCase().includes(n.searchTerm.toLowerCase())||e.description.toLowerCase().includes(n.searchTerm.toLowerCase())||e.author.toLowerCase().includes(n.searchTerm.toLowerCase())||e.slug.toLowerCase().includes(n.searchTerm.toLowerCase()))})))}))}},{key:"render",value:function(){var e=this;return k(G||(G=y(['\n \n "])),this.displayItems.length>0?this.displayItems.map((function(t){return k(Y||(Y=y([' \n \n ',' \n ',' \n \n \n ',"\n
\n \n \n "])),e.openedChanged,e.dark,S(t,"metadata.theme.variables.cssVariable","orange").replace("--simple-colors-default-theme-","").replace("-7",""),t.slug,S(t,"metadata.theme.variables.icon","link"),t.slug,t.title,t.author,e.getItemDetails(t),t.id,t.description)})):k(J||(J=y(['\n No results for\n ',".\n
"])),""!==this.searchTerm?k($||($=y(['"','" '])),this.searchTerm):"your account, try starting a new journey!"))}},{key:"getItemDetails",value:function(e){return{created:S(e,"metadata.site.created",new Date/1e3),updated:S(e,"metadata.site.updated",new Date/1e3),pages:S(e,"metadata.pageCount",0),url:e.slug}}},{key:"openedChanged",value:function(e){C.appEl.playSound("click"),e.detail.value?this.shadowRoot.querySelector("app-hax-site-details").removeAttribute("tabindex"):this.shadowRoot.querySelector("app-hax-site-details").setAttribute("tabindex","-1")}}],[{key:"tag",get:function(){return"app-hax-search-results"}},{key:"properties",get:function(){return r(r({},v(g(t),"properties",this)),{},{searchTerm:{type:String,reflect:!0},searchItems:{type:Array},displayItems:{type:Array}})}},{key:"styles",get:function(){return[v(g(t),"styles",this),b(Q||(Q=y(['\n :host {\n overflow: hidden;\n }\n ul,\n li {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n app-hax-site-bar {\n margin: 8px 0;\n }\n .description {\n max-height: 64px;\n overflow: hidden;\n max-width: 80%;\n text-overflow: ellipsis;\n word-break: break-all;\n }\n\n @media (max-width: 800px) {\n app-hax-site-bar {\n --main-banner-width: 60vw;\n }\n .description {\n max-height: 24px;\n font-size: 8px;\n font-family: sans-serif;\n }\n }\n @media (max-width: 640px) {\n app-hax-site-bar a {\n font-size: 14px;\n }\n app-hax-site-bar {\n --main-banner-width: 70vw;\n }\n }\n span[slot="band"] {\n height: 48px;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 8px;\n }\n :host([dark]) #noResult {\n color: var(--simple-colors-default-theme-grey-12, black);\n }\n '])))]}}])}(w));customElements.define(ee.tag,ee)}}}));
diff --git a/storybook/4ab75f92.js b/storybook/4ab75f92.js
new file mode 100644
index 000000000..193c35314
--- /dev/null
+++ b/storybook/4ab75f92.js
@@ -0,0 +1 @@
+System.register(["./72dcd9ad.js"],(function(n){"use strict";var t,e,r,a,i,s,d,c,o,g;return{setters:[function(n){t=n._,e=n.a,r=n.e,a=n.f,i=n.i,s=n.b,d=n.x,c=n.S,o=n.c,g=n.d}],execute:function(){var l,h,p={url:new URL("./elements/post-card/lib/PostCardPhoto.js",document.baseURI).href},u=new URL("./assets/postcard-tape.png",p.url).href,m=new URL("./assets/postcard-photo-shadow.png",p.url).href,f=n("PostCardPhoto",function(n){function c(){var n;return o(this,c),(n=g(this,c)).accentColor="grey",n.image=new URL(n.image,p.url).href,n.alt="",n}return t(c,n),e(c,[{key:"render",value:function(){return d(l||(l=s(['\n \n '])),m,this.image,this.alt,u)}}],[{key:"tag",get:function(){return"post-card-photo"}},{key:"properties",get:function(){return r(r({},a(c,"properties",this)),{},{image:{type:String},alt:{type:String,reflect:!0}})}},{key:"styles",get:function(){return[a(c,"styles",this),i(h||(h=s(["\n :host {\n --post-card-img-width: 340px;\n }\n\n div {\n display: inline-grid;\n grid-template-columns: 1;\n grid-template-rows: 1;\n align-items: center;\n }\n\n img {\n grid-column: 1;\n grid-row: 1;\n justify-self: center;\n }\n\n .cardShadow {\n width: calc(var(--post-card-img-width) * 1.05);\n height: calc(var(--post-card-img-width) * 0.78);\n z-index: 2;\n opacity: 0.5;\n transform: translate(1%, 1.5%) rotate(0.5deg);\n }\n\n .cardImage {\n width: var(--post-card-img-width);\n height: calc(var(--post-card-img-width) * 0.7);\n z-index: 2;\n transform: rotate(-3deg);\n border-radius: 5px 5px 0px 5px;\n }\n\n .cardTape {\n width: auto;\n height: calc(var(--post-card-img-width) * 0.8);\n z-index: 3;\n }\n "])))]}}])}(c));customElements.define(f.tag,f)}}}));
diff --git a/storybook/4eb17075.js b/storybook/4eb17075.js
new file mode 100644
index 000000000..655643db6
--- /dev/null
+++ b/storybook/4eb17075.js
@@ -0,0 +1 @@
+System.register(["./72dcd9ad.js","./8fd01541.js","./f309c717.js","./c16b935a.js","./1ddecd71.js","./462cac9f.js"],(function(e,t){"use strict";var n,i,a,o,s,r,l,c,d,u,h,p,m,g,v,b,f,y,x,k,w,S,C,T,M,_,E,L,B,A,P,I,z,O,N,R,U,H,D,j,q,F,X,V,W,G,$,Y,J,K,Z,Q,ee,te;return{setters:[function(e){n=e.y,i=e.e,a=e._,o=e.a,s=e.i,r=e.b,l=e.x,c=e.r,d=e.c,u=e.d,h=e.K,p=e.g,m=e.h,g=e.F,v=e.f,b=e.o,f=e.aR,y=e.D,x=e.aS,k=e.aT,w=e.H,S=e.I,C=e.z,T=e.ar,M=e.a3,_=e.u,E=e.aN,L=e.a4,B=e.q,A=e.M,P=e.$,I=e.a8,z=e.aU,O=e.aV,N=e.aq,R=e.N,U=e.E,H=e.aW,D=e.a1,j=e.S,q=e.m,F=e.t,X=e.V,V=e.aX,W=e.k,G=e.n,$=e.p,Y=e.a2,J=e.aC,K=e.ap,Z=e.aO,Q=e.aY,ee=e.j},function(e){te=e.H},function(){},function(){},function(){},function(){}],execute:function(){function ne(e){return n(i(i({},e),{},{state:!0,attribute:!1}))}var ie,ae,oe,se={url:new URL("./elements/simple-fields/lib/simple-tags.js",document.baseURI).href},re=function(e){function t(){var e;return d(this,t),(e=u(this,t)).tags="",e.autoAccentColor=!1,e.accentColor=null,e}return a(t,e),o(t,[{key:"render",value:function(){var e=this;return l(ie||(ie=r([' \n ',"\n
"])),this.tags&&""!=this.tags&&this.tags.split?this.tags.split(",").map((function(t){return l(ae||(ae=r(['\n \n '])),e.autoAccentColor,t.trim(),e.accentColor)})):"")}}],[{key:"properties",get:function(){return{tags:{type:String},accentColor:{type:String,attribute:"accent-color"},autoAccentColor:{type:Boolean,attribute:"auto-accent-color"}}}},{key:"tag",get:function(){return"simple-tags"}},{key:"haxProperties",get:function(){return new URL("./".concat(this.tag,".haxProperties.json"),se.url).href}},{key:"styles",get:function(){return[s(oe||(oe=r(["\n :host {\n display: block;\n }\n .tag-container {\n display: flex;\n flex-wrap: wrap;\n overflow-x: hidden;\n justify-content: flex-start;\n }\n simple-tag {\n margin: 4px 8px 4px 0;\n }\n "])))]}}])}(c);customElements.define(re.tag,re);var le,ce,de=function(){return o((function e(t,n){var i=this;d(this,e),this.timerId=0,this.activeInteractions=0,this.paused=!1,this.stopped=!0,this.pause=function(){i.activeInteractions++||(i.paused=!0,i.host.requestUpdate())},this.resume=function(){--i.activeInteractions||(i.paused=!1,i.host.requestUpdate())},t.addController(this),this.host=t,this.tickCallback=n}),[{key:"hostConnected",value:function(){this.host.addEventListener("mouseenter",this.pause),this.host.addEventListener("mouseleave",this.resume),this.host.addEventListener("focusin",this.pause),this.host.addEventListener("focusout",this.resume),this.host.addEventListener("touchstart",this.pause,{passive:!0}),this.host.addEventListener("touchend",this.resume)}},{key:"hostDisconnected",value:function(){this.stop(),this.host.removeEventListener("mouseenter",this.pause),this.host.removeEventListener("mouseleave",this.resume),this.host.removeEventListener("focusin",this.pause),this.host.removeEventListener("focusout",this.resume),this.host.removeEventListener("touchstart",this.pause),this.host.removeEventListener("touchend",this.resume)}},{key:"start",value:function(e){var t=this;this.stop(),this.stopped=!1,this.timerId=window.setInterval((function(){t.paused||t.tickCallback()}),e)}},{key:"stop",value:function(){clearInterval(this.timerId),this.stopped=!0,this.host.requestUpdate()}}])}(),ue=s(le||(le=r(["\n :host {\n box-sizing: border-box;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n [hidden] {\n display: none !important;\n }\n"]))),he=s(ce||(ce=r(["\n ","\n\n :host {\n --slide-gap: var(--sl-spacing-medium, 1rem);\n --aspect-ratio: 16 / 9;\n --scroll-hint: 0px;\n\n display: flex;\n }\n\n .carousel {\n display: grid;\n grid-template-columns: min-content 1fr min-content;\n grid-template-rows: 1fr min-content;\n grid-template-areas:\n '. slides .'\n '. pagination .';\n gap: var(--sl-spacing-medium);\n align-items: center;\n min-height: 100%;\n min-width: 100%;\n position: relative;\n }\n\n .carousel__pagination {\n grid-area: pagination;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--sl-spacing-small);\n }\n\n .carousel__slides {\n grid-area: slides;\n\n display: grid;\n height: 100%;\n width: 100%;\n align-items: center;\n justify-items: center;\n overflow: auto;\n overscroll-behavior-x: contain;\n scrollbar-width: none;\n aspect-ratio: calc(var(--aspect-ratio) * var(--slides-per-page));\n border-radius: var(--sl-border-radius-small);\n\n --slide-size: calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));\n }\n\n @media (prefers-reduced-motion) {\n :where(.carousel__slides) {\n scroll-behavior: auto;\n }\n }\n\n .carousel__slides--horizontal {\n grid-auto-flow: column;\n grid-auto-columns: var(--slide-size);\n grid-auto-rows: 100%;\n column-gap: var(--slide-gap);\n scroll-snap-type: x mandatory;\n scroll-padding-inline: var(--scroll-hint);\n padding-inline: var(--scroll-hint);\n overflow-y: hidden;\n }\n\n .carousel__slides--vertical {\n grid-auto-flow: row;\n grid-auto-columns: 100%;\n grid-auto-rows: var(--slide-size);\n row-gap: var(--slide-gap);\n scroll-snap-type: y mandatory;\n scroll-padding-block: var(--scroll-hint);\n padding-block: var(--scroll-hint);\n overflow-x: hidden;\n }\n\n .carousel__slides--dragging,\n .carousel__slides--dropping {\n scroll-snap-type: unset;\n }\n\n :host([vertical]) ::slotted(sl-carousel-item) {\n height: 100%;\n }\n\n .carousel__slides::-webkit-scrollbar {\n display: none;\n }\n\n .carousel__navigation {\n grid-area: navigation;\n display: contents;\n font-size: var(--sl-font-size-x-large);\n }\n\n .carousel__navigation-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n border-radius: var(--sl-border-radius-small);\n font-size: inherit;\n color: var(--sl-color-neutral-600);\n padding: var(--sl-spacing-x-small);\n cursor: pointer;\n transition: var(--sl-transition-medium) color;\n appearance: none;\n }\n\n .carousel__navigation-button--disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n .carousel__navigation-button--disabled::part(base) {\n pointer-events: none;\n }\n\n .carousel__navigation-button--previous {\n grid-column: 1;\n grid-row: 1;\n }\n\n .carousel__navigation-button--next {\n grid-column: 3;\n grid-row: 1;\n }\n\n .carousel__pagination-item {\n display: block;\n cursor: pointer;\n background: none;\n border: 0;\n border-radius: var(--sl-border-radius-circle);\n width: var(--sl-spacing-small);\n height: var(--sl-spacing-small);\n background-color: var(--sl-color-neutral-300);\n padding: 0;\n margin: 0;\n }\n\n .carousel__pagination-item--active {\n background-color: var(--sl-color-neutral-700);\n transform: scale(1.2);\n }\n\n /* Focus styles */\n .carousel__slides:focus-visible,\n .carousel__navigation-button:focus-visible,\n .carousel__pagination-item:focus-visible {\n outline: var(--sl-focus-ring);\n outline-offset: var(--sl-focus-ring-offset);\n }\n"])),ue);function pe(e,t){return new Promise((function(n){e.addEventListener(t,(function i(a){a.target===e&&(e.removeEventListener(t,i),n())}))}))}var me=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,ve=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,ye=function(e,t,n){return t in e?me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},xe=function(e,t){for(var n in t||(t={}))be.call(t,n)&&ye(e,n,t[n]);if(ve){var i,a=h(ve(t));try{for(a.s();!(i=a.n()).done;){n=i.value;fe.call(t,n)&&ye(e,n,t[n])}}catch(e){a.e(e)}finally{a.f()}}return e},ke=function(e,t,n,i){for(var a,o=i>1?void 0:i?ge(t,n):t,s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i?a(t,n,o):a(o))||o);return i&&o&&me(t,n,o),o};function we(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}var Se,Ce,Te=Symbol(),Me=function(){return o((function e(t){var n=this;d(this,e),this.pointers=new Set,this.dragging=!1,this.scrolling=!1,this.mouseDragging=!1,this.handleScroll=function(){n.scrolling||(n.scrolling=!0,n.host.requestUpdate()),n.handleScrollEnd()},this.handlePointerDown=function(e){"touch"!==e.pointerType&&(n.pointers.add(e.pointerId),n.mouseDragging&&!n.dragging&&0===e.button&&(e.preventDefault(),n.host.scrollContainer.addEventListener("pointermove",n.handlePointerMove)))},this.handlePointerMove=function(e){var t=n.host.scrollContainer,i=!!e.movementX||!!e.movementY;!n.dragging&&i?(t.setPointerCapture(e.pointerId),n.handleDragStart()):t.hasPointerCapture(e.pointerId)&&n.handleDrag(e)},this.handlePointerUp=function(e){n.pointers.delete(e.pointerId),n.host.scrollContainer.releasePointerCapture(e.pointerId),0===n.pointers.size&&n.handleDragEnd()},this.handleTouchEnd=function(e){var t,i=h(e.changedTouches);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.pointers.delete(a.identifier)}}catch(e){i.e(e)}finally{i.f()}},this.handleTouchStart=function(e){var t,i=h(e.touches);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.pointers.add(a.identifier)}}catch(e){i.e(e)}finally{i.f()}},this.host=t,t.addController(this)}),[{key:"hostConnected",value:(t=p(m().mark((function e(){var t,n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.host,e.next=3,t.updateComplete;case 3:(n=t.scrollContainer).addEventListener("scroll",this.handleScroll,{passive:!0}),n.addEventListener("pointerdown",this.handlePointerDown),n.addEventListener("pointerup",this.handlePointerUp),n.addEventListener("pointercancel",this.handlePointerUp),n.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),n.addEventListener("touchend",this.handleTouchEnd);case 10:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"hostDisconnected",value:function(){var e=this.host.scrollContainer;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("pointerdown",this.handlePointerDown),e.removeEventListener("pointerup",this.handlePointerUp),e.removeEventListener("pointercancel",this.handlePointerUp),e.removeEventListener("touchstart",this.handleTouchStart),e.removeEventListener("touchend",this.handleTouchEnd)}},{key:"handleScrollEnd",value:function(){this.pointers.size?this.handleScrollEnd():(this.scrolling=!1,this.host.scrollContainer.dispatchEvent(new CustomEvent("scrollend",{bubbles:!1,cancelable:!1})),this.host.requestUpdate())}},{key:"handleDragStart",value:function(){var e=this.host;this.dragging=!0,e.scrollContainer.style.setProperty("scroll-snap-type","unset"),e.requestUpdate()}},{key:"handleDrag",value:function(e){this.host.scrollContainer.scrollBy({left:-e.movementX,top:-e.movementY})}},{key:"handleDragEnd",value:(e=p(m().mark((function e(){var t,n,i,a,o,s;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.host,(n=t.scrollContainer).removeEventListener("pointermove",this.handlePointerMove),this.dragging=!1,i=n.scrollLeft,a=n.scrollTop,n.style.removeProperty("scroll-snap-type"),o=n.scrollLeft,s=n.scrollTop,n.style.setProperty("scroll-snap-type","unset"),n.scrollTo({left:i,top:a,behavior:"auto"}),n.scrollTo({left:o,top:s,behavior:we()?"auto":"smooth"}),!this.scrolling){e.next=15;break}return e.next=15,pe(n,"scrollend");case 15:n.style.removeProperty("scroll-snap-type"),t.requestUpdate();case 17:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})}]);var e,t}();ke([(Se=100,function(e,t,n){var i=n.value;n.value=function(){for(var e=this,t=arguments.length,n=new Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=customElements.get(e);if(i){var s=" (unknown version)",r=s;"version"in t&&t.version&&(s=" v"+t.version),"version"in i&&i.version&&(r=" v"+i.version),s&&r&&s===r||console.warn("Attempted to register <".concat(e,">").concat(s,", but <").concat(e,">").concat(r," has already been registered."))}else customElements.define(e,function(e){function t(){return d(this,t),u(this,t,arguments)}return a(t,e),o(t)}(t),n)}}])}(c);Le.version="2.8.0",Le.dependencies={},ke([n()],Le.prototype,"dir",2),ke([n()],Le.prototype,"lang",2);var Be=function(e){function t(){return d(this,t),u(this,t,arguments)}return a(t,e),o(t,[{key:"connectedCallback",value:function(){v(t,"connectedCallback",this,3)([]),this.setAttribute("role","group")}},{key:"render",value:function(){return l(_e||(_e=r([" "])))}}],[{key:"isCarouselItem",value:function(e){return e instanceof Element&&"slide"===e.getAttribute("aria-roledescription")}}])}(Le);Be.styles=Ee;var Ae,Pe=new Set,Ie=new Map,ze="ltr",Oe="en",Ne="undefined"!=typeof MutationObserver&&"undefined"!=typeof document&&void 0!==document.documentElement;if(Ne){var Re=new MutationObserver(Ue);ze=document.documentElement.dir||"ltr",Oe=document.documentElement.lang||navigator.language,Re.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function Ue(){Ne&&(ze=document.documentElement.dir||"ltr",Oe=document.documentElement.lang||navigator.language),b(Pe.keys()).map((function(e){"function"==typeof e.requestUpdate&&e.requestUpdate()}))}var He,De=function(){return o((function e(t){d(this,e),this.host=t,this.host.addController(this)}),[{key:"hostConnected",value:function(){Pe.add(this.host)}},{key:"hostDisconnected",value:function(){Pe.delete(this.host)}},{key:"dir",value:function(){return"".concat(this.host.dir||ze).toLowerCase()}},{key:"lang",value:function(){return"".concat(this.host.lang||Oe).toLowerCase()}},{key:"getTranslationData",value:function(e){var t,n,i=new Intl.Locale(e.replace(/_/g,"-")),a=null==i?void 0:i.language.toLowerCase(),o=null!==(n=null===(t=null==i?void 0:i.region)||void 0===t?void 0:t.toLowerCase())&&void 0!==n?n:"";return{locale:i,language:a,region:o,primary:Ie.get("".concat(a,"-").concat(o)),secondary:Ie.get(a)}}},{key:"exists",value:function(e,t){var n,i=this.getTranslationData(null!==(n=t.lang)&&void 0!==n?n:this.lang()),a=i.primary,o=i.secondary;return t=Object.assign({includeFallback:!1},t),!!(a&&a[e]||o&&o[e]||t.includeFallback&&Ae&&Ae[e])}},{key:"term",value:function(e){var t,n=this.getTranslationData(this.lang()),i=n.primary,a=n.secondary;if(i&&i[e])t=i[e];else if(a&&a[e])t=a[e];else{if(!Ae||!Ae[e])return console.error("No translation found for: ".concat(String(e))),String(e);t=Ae[e]}if("function"==typeof t){for(var o=arguments.length,s=new Array(o>1?o-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"";if(!Fe){var t=b(document.getElementsByTagName("script")),n=t.find((function(e){return e.hasAttribute("data-shoelace")}));if(n)Xe(n.getAttribute("data-shoelace"));else{var i=t.find((function(e){return/shoelace(\.min)?\.js($|\?)/.test(e.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(e.src)})),a="";i&&(a=i.getAttribute("src")),Xe(a.split("/").slice(0,-1).join("/"))}}return Fe.replace(/\/$/,"")+(e?"/".concat(e.replace(/^\//,"")):"")}("assets/icons/".concat(e,".svg"))}},Ge={caret:'\n \n \n \n ',check:'\n \n \n \n \n \n \n \n \n \n \n ',"chevron-down":'\n \n \n \n ',"chevron-left":'\n \n \n \n ',"chevron-right":'\n \n \n \n ',copy:'\n \n \n \n ',eye:'\n \n \n \n \n ',"eye-slash":'\n \n \n \n \n \n ',eyedropper:'\n \n \n \n ',"grip-vertical":'\n \n \n \n ',indeterminate:'\n \n \n \n \n \n \n \n \n \n ',"person-fill":'\n \n \n \n ',"play-fill":'\n \n \n \n ',"pause-fill":'\n \n \n \n ',radio:'\n \n \n \n \n \n \n \n ',"star-fill":'\n \n \n \n ',"x-lg":'\n \n \n \n ',"x-circle-fill":'\n \n \n \n '},$e=[We,{name:"system",resolver:function(e){return e in Ge?"data:image/svg+xml,".concat(encodeURIComponent(Ge[e])):""}}],Ye=[];function Je(e){return $e.find((function(t){return t.name===e}))}function Ke(e,t){var n=xe({waitUntilFirstUpdate:!1},t);return function(t,i){var a=t.update,o=Array.isArray(e)?e:[e];t.update=function(e){var t=this;o.forEach((function(a){var o=a;if(e.has(o)){var s=e.get(o),r=t[o];s!==r&&(n.waitUntilFirstUpdate&&!t.hasUpdated||t[i](s,r))}})),a.call(this,e)}}}var Ze,Qe=Symbol(),et=Symbol(),tt=new Map,nt=function(e){function t(){var e;return d(this,t),(e=u(this,t,arguments)).initialRender=!1,e.svg=null,e.label="",e.library="default",e}return a(t,e),o(t,[{key:"resolveIcon",value:(i=p(m().mark((function e(t,n){var i,a,o,s,c,d;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==n?void 0:n.spriteSheet)){e.next=2;break}return e.abrupt("return",l(Ve||(Ve=r(['\n \n '])),t));case 2:return e.prev=2,e.next=5,fetch(t,{mode:"cors"});case 5:if((a=e.sent).ok){e.next=8;break}return e.abrupt("return",410===a.status?Qe:et);case 8:e.next=13;break;case 10:return e.prev=10,e.t0=e.catch(2),e.abrupt("return",et);case 13:return e.prev=13,o=document.createElement("div"),e.next=17,a.text();case 17:if(o.innerHTML=e.sent,s=o.firstElementChild,"svg"===(null==(i=null==s?void 0:s.tagName)?void 0:i.toLowerCase())){e.next=21;break}return e.abrupt("return",Qe);case 21:if(Ze||(Ze=new DOMParser),c=Ze.parseFromString(s.outerHTML,"text/html"),d=c.body.querySelector("svg")){e.next=26;break}return e.abrupt("return",Qe);case 26:return d.part.add("svg"),e.abrupt("return",document.adoptNode(d));case 30:return e.prev=30,e.t1=e.catch(13),e.abrupt("return",Qe);case 33:case"end":return e.stop()}}),e,null,[[2,10],[13,30]])}))),function(e,t){return i.apply(this,arguments)})},{key:"connectedCallback",value:function(){var e;v(t,"connectedCallback",this,3)([]),e=this,Ye.push(e)}},{key:"firstUpdated",value:function(){this.initialRender=!0,this.setIcon()}},{key:"disconnectedCallback",value:function(){var e;v(t,"disconnectedCallback",this,3)([]),e=this,Ye=Ye.filter((function(t){return t!==e}))}},{key:"getUrl",value:function(){var e=Je(this.library);return this.name&&e?e.resolver(this.name):this.src}},{key:"handleLabelChange",value:function(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}},{key:"setIcon",value:(n=p(m().mark((function e(){var t,n,i,a,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Je(this.library),i=this.getUrl()){e.next=5;break}return this.svg=null,e.abrupt("return");case 5:if((a=tt.get(i))||(a=this.resolveIcon(i,n),tt.set(i,a)),this.initialRender){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,a;case 11:if((o=e.sent)===et&&tt.delete(i),i===this.getUrl()){e.next=15;break}return e.abrupt("return");case 15:if(!f(o)){e.next=18;break}return this.svg=o,e.abrupt("return");case 18:e.t0=o,e.next=e.t0===et||e.t0===Qe?21:24;break;case 21:return this.svg=null,this.emit("sl-error"),e.abrupt("break",27);case 24:this.svg=o.cloneNode(!0),null==(t=null==n?void 0:n.mutator)||t.call(n,this.svg),this.emit("sl-load");case 27:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"render",value:function(){return this.svg}}]);var n,i}(Le);nt.styles=qe,ke([ne()],nt.prototype,"svg",2),ke([n({reflect:!0})],nt.prototype,"name",2),ke([n()],nt.prototype,"src",2),ke([n()],nt.prototype,"label",2),ke([n({reflect:!0})],nt.prototype,"library",2),ke([Ke("label")],nt.prototype,"handleLabelChange",1),ke([Ke(["name","src","library"])],nt.prototype,"setIcon",1);var it,at,ot,st,rt=y(function(e){function t(e){var n,i;if(d(this,t),i=u(this,t,[e]),e.type!==w.ATTRIBUTE||"class"!==e.name||(null===(n=e.strings)||void 0===n?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");return S(i)}return a(t,e),o(t,[{key:"render",value:function(e){return" "+Object.keys(e).filter((function(t){return e[t]})).join(" ")+" "}},{key:"update",value:function(e,t){var n=g(t,1)[0];if(void 0===this.st){for(var i in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((function(e){return""!==e})))),n){var a;n[i]&&(null===(a=this.nt)||void 0===a||!a.has(i))&&this.st.add(i)}return this.render(n)}var o,s=e.element.classList,r=h(this.st);try{for(r.s();!(o=r.n()).done;){var l=o.value;l in n||(s.remove(l),this.st.delete(l))}}catch(e){r.e(e)}finally{r.f()}for(var c in n){var d,u=!!n[c];u===this.st.has(c)||(null===(d=this.nt)||void 0===d?void 0:d.has(c))||(u?(s.add(c),this.st.add(c)):(s.remove(c),this.st.delete(c)))}return x}}])}(k)),lt=m().mark(ct);function ct(e,t){var n,i,a,o;return m().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(void 0===e){s.next=19;break}n=0,i=h(e),s.prev=3,i.s();case 5:if((a=i.n()).done){s.next=11;break}return o=a.value,s.next=9,t(o,n++);case 9:s.next=5;break;case 11:s.next=16;break;case 13:s.prev=13,s.t0=s.catch(3),i.e(s.t0);case 16:return s.prev=16,i.f(),s.finish(16);case 19:case"end":return s.stop()}}),lt,null,[[3,13,16,19]])}var dt=function(e){function t(){var e;return d(this,t),(e=u(this,t,arguments)).loop=!1,e.navigation=!1,e.pagination=!1,e.autoplay=!1,e.autoplayInterval=3e3,e.slidesPerPage=1,e.slidesPerMove=1,e.orientation="horizontal",e.mouseDragging=!1,e.activeSlide=0,e.autoplayController=new de(e,(function(){return e.next()})),e.scrollController=new Me(e),e.slides=e.getElementsByTagName("sl-carousel-item"),e.intersectionObserverEntries=new Map,e.localize=new je(e),e.handleSlotChange=function(t){t.some((function(e){return[].concat(b(e.addedNodes),b(e.removedNodes)).some((function(e){return Be.isCarouselItem(e)&&!e.hasAttribute("data-clone")}))}))&&e.initializeSlides(),e.requestUpdate()},e}return a(t,e),o(t,[{key:"connectedCallback",value:function(){var e=this;v(t,"connectedCallback",this,3)([]),this.setAttribute("role","region"),this.setAttribute("aria-label",this.localize.term("carousel"));var n=new IntersectionObserver((function(t){t.forEach((function(t){e.intersectionObserverEntries.set(t.target,t);var n=t.target;n.toggleAttribute("inert",!t.isIntersecting),n.classList.toggle("--in-view",t.isIntersecting),n.setAttribute("aria-hidden",t.isIntersecting?"false":"true")}))}),{root:this,threshold:.6});this.intersectionObserver=n,n.takeRecords().forEach((function(t){e.intersectionObserverEntries.set(t.target,t)}))}},{key:"disconnectedCallback",value:function(){v(t,"disconnectedCallback",this,3)([]),this.intersectionObserver.disconnect(),this.mutationObserver.disconnect()}},{key:"firstUpdated",value:function(){this.initializeSlides(),this.mutationObserver=new MutationObserver(this.handleSlotChange),this.mutationObserver.observe(this,{childList:!0,subtree:!1})}},{key:"getPageCount",value:function(){return Math.ceil(this.getSlides().length/this.slidesPerPage)}},{key:"getCurrentPage",value:function(){return Math.ceil(this.activeSlide/this.slidesPerPage)}},{key:"getSlides",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).excludeClones,t=void 0===e||e;return b(this.slides).filter((function(e){return!t||!e.hasAttribute("data-clone")}))}},{key:"handleKeyDown",value:function(e){var t=this;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)){var n=e.target,i="rtl"===this.localize.dir(),a=null!==n.closest('[part~="pagination-item"]'),o="ArrowDown"===e.key||!i&&"ArrowRight"===e.key||i&&"ArrowLeft"===e.key,s="ArrowUp"===e.key||!i&&"ArrowLeft"===e.key||i&&"ArrowRight"===e.key;e.preventDefault(),s&&this.previous(),o&&this.next(),"Home"===e.key&&this.goToSlide(0),"End"===e.key&&this.goToSlide(this.getSlides().length-1),a&&this.updateComplete.then((function(){var e,n=null==(e=t.shadowRoot)?void 0:e.querySelector('[part~="pagination-item--active"]');n&&n.focus()}))}}},{key:"handleScrollEnd",value:function(){var e=this.getSlides(),t=b(this.intersectionObserverEntries.values()).find((function(e){return e.isIntersecting}));if(this.loop&&(null==t?void 0:t.target.hasAttribute("data-clone"))){var n=Number(t.target.getAttribute("data-clone"));this.goToSlide(n,"auto")}else t&&(this.activeSlide=e.indexOf(t.target))}},{key:"initializeSlides",value:function(){var e=this,t=this.getSlides(),n=this.intersectionObserver;if(this.intersectionObserverEntries.clear(),this.getSlides({excludeClones:!1}).forEach((function(t,i){n.unobserve(t),t.classList.remove("--in-view"),t.classList.remove("--is-active"),t.setAttribute("aria-label",e.localize.term("slideNum",i+1)),t.hasAttribute("data-clone")&&t.remove()})),this.loop){var i=this.slidesPerPage,a=t.slice(-i),o=t.slice(0,i);a.reverse().forEach((function(n,i){var a=n.cloneNode(!0);a.setAttribute("data-clone",String(t.length-i-1)),e.prepend(a)})),o.forEach((function(t,n){var i=t.cloneNode(!0);i.setAttribute("data-clone",String(n)),e.append(i)}))}this.getSlides({excludeClones:!1}).forEach((function(e){n.observe(e)})),this.goToSlide(this.activeSlide,"auto")}},{key:"handelSlideChange",value:function(){var e=this,t=this.getSlides();t.forEach((function(t,n){t.classList.toggle("--is-active",n===e.activeSlide)})),this.hasUpdated&&this.emit("sl-slide-change",{detail:{index:this.activeSlide,slide:t[this.activeSlide]}})}},{key:"handleSlidesPerMoveChange",value:function(){var e=this.getSlides({excludeClones:!1}),t=this.slidesPerMove;e.forEach((function(e,n){Math.abs(n-t)%t==0?e.style.removeProperty("scroll-snap-align"):e.style.setProperty("scroll-snap-align","none")}))}},{key:"handleAutoplayChange",value:function(){this.autoplayController.stop(),this.autoplay&&this.autoplayController.start(this.autoplayInterval)}},{key:"handleMouseDraggingChange",value:function(){this.scrollController.mouseDragging=this.mouseDragging}},{key:"previous",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"smooth",t=this.activeSlide||this.activeSlide-this.slidesPerMove,n=!1;!n&&t>0;)t-=1,n=Math.abs(t-this.slidesPerMove)%this.slidesPerMove==0;this.goToSlide(t,e)}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"smooth";this.goToSlide(this.activeSlide+this.slidesPerMove,e)}},{key:"goToSlide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth",n=this.slidesPerPage,i=this.loop,a=this.scrollContainer,o=this.getSlides(),s=this.getSlides({excludeClones:!1}),r=(e+o.length)%o.length;this.activeSlide=r;var l,c,d,u,h=(l=e+(i?n:0),c=0,d=s.length-1,u=function(e){return Object.is(e,-0)?0:e},u(ld?d:l)),p=s[h],m=a.getBoundingClientRect(),g=p.getBoundingClientRect();a.scrollTo({left:g.left-m.left+a.scrollLeft,top:g.top-m.top+a.scrollTop,behavior:we()?"auto":t})}},{key:"render",value:function(){var e=this,t=this.scrollController,n=this.slidesPerPage,i=this.getPageCount(),a=this.getCurrentPage(),o=this.loop||a>0,s=this.loop||a\n \n \n
\n\n ","\n ","\n \n "])),rt({carousel__slides:!0,"carousel__slides--horizontal":"horizontal"===this.orientation,"carousel__slides--vertical":"vertical"===this.orientation}),this.slidesPerPage,t.scrolling?"true":"false",this.handleKeyDown,this.handleScrollEnd,this.navigation?l(at||(at=r(['\n \n \n \n \n \n \n\n \n \n \n \n \n
\n '])),rt({"carousel__navigation-button":!0,"carousel__navigation-button--previous":!0,"carousel__navigation-button--disabled":!o}),this.localize.term("previousSlide"),o?"false":"true",o?function(){return e.previous()}:null,c?"chevron-left":"chevron-right",rt({"carousel__navigation-button":!0,"carousel__navigation-button--next":!0,"carousel__navigation-button--disabled":!s}),this.localize.term("nextSlide"),s?"false":"true",s?function(){return e.next()}:null,c?"chevron-right":"chevron-left"):"",this.pagination?l(ot||(ot=r(['\n \n "])),ct(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return m().mark((function i(a){var o,s;return m().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=void 0===t?0:e,null!==(a=t)&&void 0!==a||(t=e),s=o;case 3:if(!(n>0?s\n \n \n ',"\n \n "])),this.navigation&&"horizontal"===this.orientation,this.pagination,this.loop,this.orientation,this.slideIndexChanged,this.aspectRatio,this.items.map((function(t,n){return l(mt||(mt=r(['\n \n ',"\n \n "])),e.renderHAXItem(t))}))):l(gt||(gt=r(['
']))))}},{key:"slideIndexChanged",value:function(e){this.slide=e.detail.index}},{key:"firstUpdated",value:function(e){v(t,"firstUpdated",this,1)&&v(t,"firstUpdated",this,3)([e]),this.mirrorLightDomToItems()}},{key:"updated",value:function(e){var n=this;v(t,"updated",this,1)&&v(t,"updated",this,3)([e]),e.forEach((function(e,t){"edit"===t&&n[t],"slide"==t&&n.shadowRoot&&"undefined"!==_(e)&&(n.dispatchEvent(new CustomEvent("".concat(t,"-changed"),{detail:{value:n[t]}})),n.shadowRoot.querySelector(".carousel")&&(n.shadowRoot.querySelector(".carousel").activeSlide,n[t]))}))}},{key:"haxHooks",value:function(){return{inlineContextMenu:"haxinlineContextMenu"}}},{key:"haxClickSlideIndex",value:function(e){return E(this.slide),!0}},{key:"haxinlineContextMenu",value:function(e){e.ceButtons=[{icon:"lrn:edit",callback:"haxToggleEdit",label:"Toggle edit mode"},{icon:"hax:anchor",callback:"haxClickSlideIndex",label:"Copy slide index"}]}},{key:"haxToggleEdit",value:function(e){return this.edit=!this.edit,!0}}],[{key:"haxProperties",get:function(){return new URL("./lib/".concat(this.tag,".haxProperties.json"),St.url).href}},{key:"properties",get:function(){return{items:{type:Array},loop:{type:Boolean,reflect:!0},edit:{type:Boolean,reflect:!0},navigation:{type:Boolean,reflect:!0},pagination:{type:Boolean,reflect:!0},aspectRatio:{type:String,reflect:!0,attribute:"aspect-ratio"},orientation:{type:String,reflect:!0},slide:{type:Number,reflect:!0}}}},{key:"styles",get:function(){var e=[];return v(t,"styles",this)&&(e=v(t,"styles",this)),[e,s(vt||(vt=r(['\n :host {\n display: block;\n }\n :host([orientation="vertical"]),\n :host([orientation="vertical"]) .carousel,\n :host([orientation="vertical"]) .carousel .item {\n max-height: 400px;\n }\n :host([orientation="vertical"]) .carousel .item video-player {\n max-height: 400px;\n width: 500px;\n }\n\n :host .carousel .item .play-list-item {\n width: 100%;\n min-height: 400px;\n }\n :host([orientation="vertical"]) .carousel::part(base) {\n grid-template-areas: "slides slides pagination";\n }\n :host([orientation="vertical"]) .carousel::part(pagination) {\n flex-direction: column;\n }\n :host([orientation="vertical"]) .carousel::part(navigation) {\n transform: rotate(90deg);\n display: flex;\n }\n sl-carousel-item {\n max-height: 400px;\n padding: 8px;\n overflow-y: auto;\n justify-content: unset;\n }\n simple-icon-button-lite {\n color: var(--play-list-icon-color, #999999);\n --simple-icon-width: 72px;\n --simple-icon-height: 72px;\n height: 72px;\n width: 72px;\n }\n\n /** edit mode, hax, etc */\n :host([edit]) .edit-wrapper {\n border: 2px dashed #999999;\n box-sizing: border-box;\n padding: 16px;\n background-color: #f5f5f5;\n }\n :host([edit]) .edit-wrapper::before {\n content: "Play list edit mode";\n display: block;\n font-size: 16px;\n }\n :host([edit]) .edit-wrapper ::slotted(*) {\n display: block;\n width: 100%;\n padding: 16px;\n }\n '])))]}},{key:"tag",get:function(){return"play-list"}}]);var n}(c);customElements.define(Ct.tag,Ct),B(["haxcms"]);var Tt,Mt,_t,Et,Lt,Bt,At,Pt,It,zt,Ot,Nt,Rt,Ut,Ht,Dt,jt,qt,Ft,Xt,Vt,Wt,Gt,$t,Yt,Jt,Kt,Zt=function(e){function t(){var e;d(this,t),(e=u(this,t)).HAXCMSI18NMixinBase="../../../",e.__disposer=[],e.player=!1,e.circularBlock=!1,e.itemManifest={},e.loading=!1,e.uuid=null,e.hideReference=!1,e.siteurl="",e.showTitle=!1,e.breakreference=!1,e._remoteTitle=null,e.t.selectPage="Select page";for(var n=e,i=0;n&&n.tagName;)(n=n.parentNode)&&n.tagName&&"SITE-REMOTE-CONTENT"===n.tagName&&++i>=3&&(e.circularBlock=!0);return e}return a(t,e),o(t,[{key:"render",value:function(){return l(ft||(ft=r(["\n ",'\n
\n '])),this.elementVisible?l(yt||(yt=r(['\n \n ',"\n
\n ",'\n
\n '])),this.loading?l(xt||(xt=r([' ']))):"",this.showTitle&&this._remoteTitle?l(kt||(kt=r([""," "])),this._remoteTitle):""):"")}},{key:"updated",value:function(e){var n=this;v(t,"updated",this,1)&&v(t,"updated",this,3)([e]),e.forEach((function(e,t){if(n.elementVisible){if(("uuid"===t||"elementVisible"===t)&&n[t]&&!n.breakreference&&!n.loading&&!n.circularBlock){n.loading=!0;var i=n.siteurl;""==i&&globalThis.HAXCMS&&globalThis.location&&(i="".concat(globalThis.location.origin).concat(globalThis.HAXCMS.instance.store.location.baseUrl)),A.call("@haxcms/pageCache",{site:i,type:"link",uuid:n.uuid,data:!0},n.renderContentResponse.bind(n))}if("siteurl"!==t||!globalThis.HaxStore||n.loading||n.circularBlock||(clearTimeout(n.__debounce),n.__debounce=setTimeout((function(){n.loading=!0,n.__refresh=!0,globalThis.HaxStore.instance.refreshActiveNodeForm()}),1500)),"breakreference"===t&&n[t])for(var a=n.shadowRoot.querySelector("#content"),o=a.firstElementChild;o;)n.appendChild(o),o=a.firstElementChild;else if("breakreference"===t&&!n[t]&&e&&!n.circularBlock){n.loading=!0,P(n);var s=n.siteurl;""==s&&globalThis.HAXCMS&&globalThis.location&&(s="".concat(globalThis.location.origin).concat(globalThis.HAXCMS.instance.store.location.baseUrl)),A.call("@haxcms/pageCache",{site:s,type:"link",uuid:n.uuid,data:!0},n.renderContentResponse.bind(n))}}}))}},{key:"renderContentResponse",value:function(e){if(e.data){globalThis.HaxStore&&!this.breakreference&&globalThis.HaxStore.instance.activeBodyIgnoreActive(!0);var t=this.shadowRoot.querySelector("#content");P(t);var n=globalThis.document.createElement("div"),i=e.data.content.replace(/