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[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'
'})),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[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'
'})),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` - - + ${this.items?this.items.map((t=>e` + ${t.children.length>0?e` + - - `:e` - - `} - `)):""} -
- `}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` + + `} + `)):""} + + `}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` -
- - ${this.imageAlt} - -
+
+ + ${this.imageAlt} + +
`}renderHeaderSlot(){return e``}renderSideBar(){return e``}renderFooterContactInformation(){return e``}renderFooterSecondarySlot(){return e``}renderFooterPrimarySlot(){return e``}render(){return e`
- - - - + @site-modal-click="${this.siteModalClick}" + .part="${this.editMode?"edit-mode-active":""}" + ?disabled="${this.editMode}" + icon="icons:search" + title="Search site" + class="search-modal-btn" + button-label="Search" + part="search-btn" + position="left" + > + + + +
- - ${this.pageDescription} - + + ${this.pageDescription} +
@@ -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` -
- - ${this.imageAlt} - -
+
+ + ${this.imageAlt} + +
`}renderHeaderSlot(){return e``}renderSideBar(){return e``}renderFooterContactInformation(){return e``}renderFooterSecondarySlot(){return e``}renderFooterPrimarySlot(){return e``}render(){return e`
- - - - + @site-modal-click="${this.siteModalClick}" + .part="${this.editMode?"edit-mode-active":""}" + ?disabled="${this.editMode}" + icon="icons:search" + title="Search site" + class="search-modal-btn" + button-label="Search" + part="search-btn" + position="left" + > + + + +
- - ${this.pageDescription} - + + ${this.pageDescription} +
@@ -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 ',"\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 "])),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 \n \n \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 \n \n
    \n Disable features\n
    \n ','\n
    \n
    \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
    \n \n
    \n \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
    created
    \n \n
    \n
    \n
    updated
    \n \n
    \n
    \n
    pages
    \n
    ','
    \n
    \n
    \n
    URL
    \n ','\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 ',"\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 \n \n \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 \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(//gi,"<script>");if(i=i.replace(/<\/script>/gi,"</script>"),n.innerHTML=i,this.appendChild(n),I(n),this._remoteTitle=e.data.title,this.loading=!1,this.breakreference||z(this,"#content"),!this.hideReference&&this.itemManifest&&this.itemManifest.title&&e.data&&!this.breakreference){globalThis.HaxStore.instance.activeBodyIgnoreActive(!1);var a=new Date,o=a.getDate(),s=a.getMonth()+1,r=a.getFullYear();if(!this.nextElementSibling||this.nextElementSibling&&"CITATION-ELEMENT"!==this.nextElementSibling.tagName){var l=globalThis.document.createElement("citation-element");l.title="".concat(this.itemManifest.title," - ").concat(e.data.title),l.source="".concat(e.data.site).concat(e.data.slug),l.date="".concat(o,"/").concat(s,"/").concat(r),l.scope="sibling",l.license=this.itemManifest.license,l.creator=this.itemManifest.metadata.author.name,this.insertAdjacentElement("afterend",l)}else if(this.nextElementSibling&&"CITATION-ELEMENT"===this.nextElementSibling.tagName){var c=this.nextElementSibling;c.title="".concat(this.itemManifest.title," - ").concat(e.data.title),c.source="".concat(e.data.site).concat(e.data.slug),c.date="".concat(o,"/").concat(s,"/").concat(r),c.scope="sibling",c.license=this.itemManifest.license,c.creator=this.itemManifest.metadata.author.name}}}}},{key:"firstUpdated",value:function(e){if(v(t,"firstUpdated",this,3)([e]),this.children.length>0){var n=this.shadowRoot.querySelector("#content");P(n),z(this,"#content")}}},{key:"haxHooks",value:function(){return{progressiveEnhancement:"haxprogressiveEnhancement",setupActiveElementForm:"haxsetupActiveElementForm"}}},{key:"haxprogressiveEnhancement",value:function(e){if(this.shadowRoot&&this.shadowRoot.querySelector("#content"))return this.shadowRoot.querySelector("#content").innerHTML}},{key:"haxsetupActiveElementForm",value:(n=p(m().mark((function e(t){var n,i,a=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!globalThis.HAXCMS){e.next=15;break}if(0!==Object.keys(this.itemManifest).length&&!this.__refresh){e.next=11;break}if(this.__refresh=!1,!this.siteurl){e.next=10;break}return e.next=6,A.call("@haxcms/siteManifest",{site:this.siteurl});case 6:(n=e.sent).data&&(this.itemManifest=n.data),e.next=11;break;case 10:this.itemManifest=R.getManifest(!0);case 11:i=[{text:this.t.selectPage,value:null}],this.itemManifest.items.forEach((function(e){if(e.id!=a.itemId){for(var t=e,n="- ";t&&null!=t.parent;)t=a.itemManifest.items.find((function(e){return e.id==t.parent})),t&&(n="--"+n);i.push({text:n+e.title,value:e.id})}})),t.settings.configure.forEach((function(e,n){"uuid"===e.property?(t.settings.configure[n].disabled=!1,t.settings.configure[n].inputMethod="select",t.settings.configure[n].itemsList=i,a.breakreference&&(t.settings.configure[n].disabled=!0)):"siteurl"===e.property&&(t.settings.configure[n].disabled=!1,a.breakreference&&(t.settings.configure[n].disabled=!0))})),this.loading=!1;case 15:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}],[{key:"styles",get:function(){return[s(wt||(wt=r(["\n :host {\n display: block;\n }\n #slot {\n display: none;\n }\n :host(:not([hide-reference])) #content {\n border-left: 10px solid #eeeeee;\n margin-left: -10px;\n }\n :host([breakreference]) #slot {\n display: block;\n }\n :host([breakreference]) #content {\n display: none;\n border-left: unset;\n margin-left: unset;\n }\n :host([loading]) .loading {\n margin: 8px 0 0 -12px;\n font-size: 2px;\n width: 20px;\n height: 20px;\n --simple-icon-height: 20px;\n --simple-icon-width: 20px;\n position: absolute;\n }\n :host([player][loading]) .loading {\n margin: 8px 0px 0px -12px;\n font-size: 2px;\n height: 100%;\n --simple-icon-height: 100px;\n --simple-icon-width: 100px;\n width: 400px;\n display: flex;\n justify-content: center;\n position: relative;\n top: 25px;\n left: 25px;\n }\n\n :host([player][loading]) .loading simple-icon-lite {\n height: 100%;\n }\n "])))]}},{key:"tag",get:function(){return"site-remote-content"}},{key:"properties",get:function(){return i(i({},v(t,"properties",this)),{},{uuid:{type:String},player:{type:Boolean,reflect:!0},siteurl:{type:String},showTitle:{type:Boolean,attribute:"show-title"},_remoteTitle:{type:String},loading:{type:Boolean,reflect:!0},breakreference:{type:Boolean,reflect:!0},hideReference:{type:Boolean,reflect:!0,attribute:"hide-reference"}})}},{key:"haxProperties",get:function(){return{type:"grid",canScale:!1,canEditSource:!1,gizmo:{title:"Remote Content",description:"Reuse content from one site in another.",icon:"hax:remote",color:"grey",tags:["Resource","haxcms","content","remote","reference","url","resource"],handles:[],meta:{author:"HAXTheWeb core team"}},settings:{configure:[{property:"siteurl",title:"Site address",description:"Paste address to reference content from if not the current site",inputMethod:"textfield"},{property:"uuid",title:"Item",description:"Item to render for the link / title data",inputMethod:"textfield"},{property:"breakreference",title:"Break reference",description:"Checking this box copies the remote content for editing locally but removes the association. It will no longer get updates when the reference material updates.",inputMethod:"boolean"},{property:"showTitle",title:"Show title",description:"Toggle on to render the title of the resource being displayed",inputMethod:"boolean"}]},demoSchema:[{tag:"site-remote-content",properties:{showTitle:!0,_remoteTitle:"Select content"},content:"
    Select content to load
    "}],saveOptions:{unsetAttributes:["t","_remote-title"]}}}}]);var n}(O(N(c)));customElements.define(Zt.tag,Zt);var Qt,en=["audio","selfChecks","objectives","authorNotes","images","h5p","headings","dataTables","specialTags","links","placeholders","siteremotecontent","video"],tn=function(e){function t(){var e;return d(this,t),(e=u(this,t)).loading=!1,e.dark=!1,e.accentColor="cyan",e.results=[],e.params={},e.search=null,e._searchDebounce=null,e.__disposer=e.__disposer?e.__disposer:[],B(["haxcms"]),q((function(t){e.dark=F(R.darkMode),setTimeout((function(){e.requestUpdate()}),0),e.__disposer.push(t)})),e}return a(t,e),o(t,[{key:"disconnectedCallback",value:function(){for(var e in this.__disposer)this.__disposer[e].dispose();v(t,"disconnectedCallback",this,3)([])}},{key:"rebuildSearchResults",value:function(){var e=this;clearTimeout(this._searchDebounce),this._searchDebounce=setTimeout(p(m().mark((function t(){var n,a,o,s;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.shadowRoot||e.loading){t.next=11;break}return n=R.getManifest(!0),(a=globalThis.document.querySelector("base").href)||(a="/"),o=i({type:"site",site:{file:a+"site.json",id:n.id,title:n.title,author:n.author,description:n.description,license:n.license,metadata:n.metadata,items:n.items},link:a},e.params),e.loading=!0,t.next=8,A.call("@haxcms/views",o);case 8:(s=t.sent).data&&(e.results=b(s.data)),e.loading=!1;case 11:case"end":return t.stop()}}),t)}))),100)}},{key:"firstUpdated",value:function(e){v(t,"firstUpdated",this,1)&&v(t,"firstUpdated",this,3)([e]),this.rebuildSearchResults()}},{key:"render",value:function(){return l(Tt||(Tt=r([" ",""])),this.loading?l(Mt||(Mt=r(['
    \n ',"\n
    "])),this.loading?l(_t||(_t=r(['']))):""):l(Et||(Et=r([" ","\n ","\n ","\n ","\n ","\n "])),0!==this.results.length||this.loading?U:l(Lt||(Lt=r(["

    No results found

    "]))),"list"===this.params.display?this.listTemplate(this.dark,this.accentColor):U,"table"===this.params.display?this.tableTemplate(this.dark,this.accentColor):U,"card"===this.params.display?this.cardTemplate(this.dark,this.accentColor):U,"contentplayer"===this.params.display?this.contentplayerTemplate(this.dark,this.accentColor):U))}},{key:"contentplayerTemplate",value:function(){return l(Bt||(Bt=r([''])))}},{key:"listTemplate",value:function(){var e=this;return l(At||(At=r(['
      \n ',"\n
    "])),this.results.map((function(t){return l(Pt||(Pt=r(['
  • \n ',"\n
  • "])),"blocks"===e.params.displayOf?en.map((function(n){return t.media&&t.media[n]&&"string"==typeof t.media[n]&&e.params.blockFilter===n?T(t.media[n]):U})):l(It||(It=r(['
    \n ',"\n
    "])),"title"===e.params.displayOf?l(zt||(zt=r(['\n
    \n ',"\n
    \n ",""])),t.slug,t.title,e.calculateBreadcrumb(t).map((function(e){return l(Ot||(Ot=r([" "," "])),e.title)})),t.metadata.tags&&""!=t.metadata.tags?t.metadata.tags.split(",").map((function(e){return l(Nt||(Nt=r(['\n '])),e.trim(),e.trim(),t.accentColor)})):U):"full"===e.params.displayOf?T("

    ".concat(t.title,"

    ")+t.contents):l(Rt||(Rt=r([''])),t.id)))})))}},{key:"tableTemplate",value:function(e,t){return l(Ut||(Ut=r([' \n \n \n \n \n \n \n \n \n \n \n ',"\n
    IconTypeTitleTagsUpdatedCreatedStatus
    \n "])),this.results.map((function(n){return l(Ht||(Ht=r([" \n \n ","\n \n \n ",'\n \n \n ',"\n \n \n ",'\n \n \n \n \n \n \n \n \n ',"\n \n "])),n.metadata.pageType?l(Dt||(Dt=r([''])),e,t,n.metadata.pageType,H(n.metadata.pageType)):U,n.metadata.pageType?n.metadata.pageType:U,n.slug,n.title,n.metadata.tags&&""!=n.metadata.tags?n.metadata.tags.split(",").map((function(e){return l(jt||(jt=r(['\n '])),e.trim(),e.trim(),n.accentColor)})):U,n.metadata.created,n.metadata.updated,!1!==n.metadata.published?"published":"unpublished")})))}},{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("loading"===t&&n.dispatchEvent(new CustomEvent("loading-changed",{detail:{value:n.loading}})),"search"===t){var a=new URLSearchParams(n.search),o=Object.fromEntries(a);n.params=i(i({},n.params),o),"__ACTIVE__"===n.params.parent&&(n.params.parent=R.activeItem.id),n.rebuildSearchResults()}"results"===t&&e&&n.results&&"contentplayer"===n.params.display&&setTimeout((function(){n.renderPlayListTemplate()}),0)}))}},{key:"renderPlayListTemplate",value:function(){var e=this,t=globalThis.document.createElement("template");D(l(qt||(qt=r(["",""])),this.results.map((function(t){return l(Ft||(Ft=r([" ",""])),"blocks"===e.params.displayOf?en.map((function(n){return t.media&&t.media[n]&&"string"==typeof t.media[n]&&e.params.blockFilter===n?T(t.media[n]):U})):l(Xt||(Xt=r(['
    \n ',"\n
    "])),"title"===e.params.displayOf?l(Vt||(Vt=r(['\n
    \n ',"\n
    "])),t.slug,t.title,e.calculateBreadcrumb(t).map((function(e){return l(Wt||(Wt=r([" "," "])),e.title)}))):"full"===e.params.displayOf?T("

    ".concat(t.title,"

    ")+t.contents):l(Gt||(Gt=r([''])),t.id)))}))),t),this.shadowRoot.querySelector("#contentplayertemplate").appendChild(t)}},{key:"cardTemplate",value:function(){return l($t||($t=r(["",""])),this.results.map((function(e){return l(Yt||(Yt=r([' \n
    ','
    \n
    \n ','\n
    \n \n
    '])),e.title,e.metadata.tags&&""!=e.metadata.tags?e.metadata.tags.split(",").map((function(t){return l(Jt||(Jt=r(['\n '])),t.trim(),t.trim(),e.accentColor)})):U,e.slug)})))}},{key:"calculateBreadcrumb",value:function(e){for(var t=[],n=R.getManifest(!0),i=e;i&&null!=i.parent;)i=n.items.find((function(e){return e.id==i.parent})),i&&t.unshift({title:i.title});return t}}],[{key:"tag",get:function(){return"site-view"}},{key:"styles",get:function(){return[v(t,"styles",this),s(Kt||(Kt=r(["\n :host {\n display: block;\n font-size: 16px;\n }\n h3 {\n margin: 4px 0;\n padding: 0;\n }\n editable-table-display::part(tag-link),\n a {\n text-decoration: none;\n font-size: 16px;\n }\n [data-active] {\n background-color: var(--simple-colors-default-theme-accent-1);\n }\n simple-icon-button-lite {\n border-radius: 0;\n font-size: 16px;\n }\n :host([loading]) .loading {\n width: 100%;\n --simple-icon-height: 50px;\n --simple-icon-width: 50px;\n }\n /* list display */\n .list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .list-item {\n margin: 0;\n padding: 16px;\n border-bottom: 1px solid var(--simple-colors-default-theme-grey-3);\n }\n .list-item:hover {\n background-color: var(--simple-colors-default-theme-grey-2);\n }\n .list-link a {\n font-size: 32px;\n }\n .list-breadcrumb {\n font-size: 10px;\n }\n\n .overview {\n padding: 0;\n margin: 0;\n list-style: none;\n font-size: 12px;\n }\n\n /* editable table display */\n editable-table-display,\n editable-table-display::part(table),\n table,\n tr,\n th,\n td {\n font-size: 16px;\n }\n editable-table-display {\n --simple-icon-width: 50px;\n --simple-icon-height: 36px;\n }\n "])))]}},{key:"haxProperties",get:function(){return{canScale:!1,canEditSource:!1,gizmo:{title:"Site View",description:"A dynamic block that queries and displays certain information based on criteria",icon:"hax:view-gallery",color:"grey",tags:["Other","site","views","data","display","filter","view"],handles:[],meta:{author:"HAXTheWeb core team",owner:"The Pennsylvania State University"}},settings:{configure:[{property:"search",title:"View URL",description:"URL containing criteria for generating the view. You can obtain this from the Views page.",inputMethod:"textfield",required:!0}]},demoSchema:[{tag:"site-view",properties:{search:"?display=list&displayOf=title&parent=__ACTIVE__"},content:""}]}}},{key:"properties",get:function(){return i(i({},v(t,"properties",this)),{},{search:{type:String},results:{type:Array},loading:{type:Boolean,reflect:!0},params:{type:Object}})}}])}(j);customElements.define(tn.tag,tn);var nn,an=function(e){return function(e){function t(){var e;return d(this,t),(e=u(this,t)).__disposer=e.__disposer?e.__disposer:[],q((function(t){e.editMode=F(R.editMode),e.__disposer.push(t)})),q((function(t){e.darkMode=F(R.darkMode),e.dark=e.darkMode,e.__disposer.push(t)})),e}return a(t,e),o(t,null,[{key:"styles",get:function(){var e=[];return v(t,"styles",this)&&(e=v(t,"styles",this)),[e,s(Qt||(Qt=r(['\n [part="edit-mode-active"],\n [part*="edit-mode-active"] {\n pointer-events: var(\n --haxcms-theme-parts-edit-mode-active-pointer-events,\n none\n );\n opacity: var(--haxcms-theme-parts-edit-mode-active-opacity, 0.5);\n filter: var(\n --haxcms-theme-parts-edit-mode-active-filter,\n blur(1px)\n );\n }\n '])))]}},{key:"properties",get:function(){var e=v(t,"properties",this)||{};return i(i({},e),{},{editMode:{type:Boolean,attribute:"edit-mode",reflect:!0},darkMode:{type:Boolean,attribute:"dark-mode",reflect:!0}})}}])}(e)},on={url:new URL("./elements/haxcms-elements/lib/core/utils/HAXCMSButton.js",document.baseURI).href};new URL("../../../../app-hax/lib/assets/images/ButtonBGLM.svg",on.url).href,new URL("../../../../app-hax/lib/assets/images/ButtonBGDM.svg",on.url).href;var sn=function(e){function t(){var e;return d(this,t),(e=u(this,t)).icon=null,e.label="",e.voiceCommand="",e}return a(t,e),o(t,[{key:"HAXCMSFireButtonEvent",value:function(e,t,n){var i=new CustomEvent(e,{bubbles:!0,composed:!0,cancelable:!0,detail:{originalTarget:t,values:n}});this.dispatchEvent(i)}},{key:"HAXCMSButtonClick",value:function(e){}},{key:"renderButton",value:function(e,t){return l(nn||(nn=r(['\n \n \n ',"\n \n "])),this.editMode?"edit-mode-active":"",this.editMode?"-1":"",e,this.HAXCMSButtonClick,!this.darkMode,this.icon,this.accentColor,this.voiceCommand,t)}}],[{key:"properties",get:function(){return i(i({},v(t,"properties",this)),{},{icon:{type:String},label:{type:String},voiceCommand:{type:String}})}}])}(an(O(c))),rn=function(e){function t(){var e;return d(this,t),(e=u(this,t)).windowControllers=new AbortController,e.t=e.t||{},e.t.newPageAdded="New page added",e.t.newPage="Page",e.t.copy="Copy",e.t.newChildPage="Child",e.t.duplicatePage="Clone",e.icon=null,e.voiceCommand="add page",e.type="sibling",e.autoEdit=!1,e.showTextLabel=!1,e.iconPosition="left",e.actionId=null,e.alignHorizontal="left",e.addEventListener("click",e.HAXCMSButtonClick),e}return a(t,e),o(t,[{key:"firstUpdated",value:function(e){switch(v(t,"firstUpdated",this,3)([e]),this.type){case"sibling":this.icon||(this.icon="hax:add-page"),this.label||(this.label=this.t.newPage);break;case"child":this.icon||(this.icon="hax:add-child-page"),this.label||(this.label=this.t.newChildPage);break;case"duplicate":this.icon||(this.icon="hax:duplicate"),this.label||(this.label=this.t.duplicatePage)}}},{key:"render",value:function(){return this.buttonTemplate}},{key:"connectedCallback",value:function(){v(t,"connectedCallback",this,3)([]),globalThis.addEventListener("haxcms-create-node-success",this.HAXCMSButtonClickResponse.bind(this),{signal:this.windowControllers.signal})}},{key:"disconnectedCallback",value:function(){this.windowControllers.abort(),v(t,"disconnectedCallback",this,3)([])}},{key:"HAXCMSButtonClick",value:(n=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(R.playSound("click"),t=null,n=this.t.newPage,i=null,a={},!this.actionId){e.next=19;break}if("null"!=this.actionId&&null!=this.actionId){e.next=14;break}return e.t0=F,e.next=10,R.getLastChildItem(null);case 10:e.t1=e.sent,a=(0,e.t0)(e.t1),e.next=17;break;case 14:return e.next=16,R.findItemAsObject(this.actionId);case 16:a=e.sent;case 17:e.next=20;break;case 19:a=F(R.activeItem);case 20:if(!a){e.next=38;break}if("sibling"!==this.type){e.next=26;break}i=a.parent,t=parseInt(a.order)+1,e.next=38;break;case 26:if("child"!==this.type){e.next=37;break}return i=a.id,e.t2=F,e.next=31,R.getLastChildItem(a.id);case 31:e.t3=e.sent,o=(0,e.t2)(e.t3),t=0,o.order&&(t=parseInt(o.order)+1),e.next=38;break;case 37:"duplicate"===this.type&&(n=a.title+" "+this.t.copy,i=a.parent,t=parseInt(a.order)+1);case 38:""===n&&(n="New"),s={node:{title:n,location:""},order:t,parent:i},"duplicate"===this.type&&(s.node.duplicate=a.id),this.HAXCMSFireButtonEvent("haxcms-create-node",this,s);case 42:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"HAXCMSButtonClickResponse",value:function(e){this===e.detail.originalTarget&&this.autoEdit&&(te.haxTray.collapsed=!1,setTimeout((function(){R.editMode=!0}),250))}}],[{key:"tag",get:function(){return"haxcms-button-add"}},{key:"styles",get:function(){return[v(t,"styles",this)].concat(b(this.iconStyles),b(this.labelStyles),b(this.tooltipStyles),b(this.simpleButtonCoreStyles),b(this.simpleButtonLayoutStyles),b(this.simpleButtonThemeStyles))}},{key:"properties",get:function(){return i(i({},v(t,"properties",this)),{},{autoEdit:{type:Boolean,attribute:"auto-edit"},actionId:{type:String,attribute:"action-id"},type:{type:String}})}}]);var n}(X(sn));customElements.define(rn.tag,rn);var ln,cn,dn,un,hn,pn,mn,gn=function(e){function t(){var e;return d(this,t),e=u(this,t),q((function(){e.checked=F(R.darkMode)})),e}return a(t,e),o(t,[{key:"toggle",value:function(){this.checked=!this.checked}},{key:"updated",value:function(e){var n=this;v(t,"updated",this,1)&&v(t,"updated",this,3)([e]),e.forEach((function(e,t){"checked"===t&&void 0!==e&&requestAnimationFrame((function(){R.darkMode=n[t],R.playSound("click"),n[t]?R.toast("I'm ascared of the dark",2e3,{fire:!0}):R.toast("Sunny day it is",2e3,{hat:"random"})}))}))}}],[{key:"tag",get:function(){return"haxcms-darkmode-toggle"}}])}(V);customElements.define(gn.tag,gn);var vn,bn,fn=function(e){function t(){var e;return d(this,t),(e=u(this,t)).mood=null,e.seed="abc123",e.timestamp=Date.now()/1e3,e.reply=0,e.editMode=!1,e.canEdit=!1,e.readOnly=!0,e.haxUIElement=!0,e}return a(t,e),o(t,[{key:"testCanUpdate",value:function(e){this.seed===e?this.canEdit=!0:this.canEdit=!1}},{key:"deleteOp",value:function(){this.dispatchEvent(new CustomEvent("page-flag-comment-delete",{bubbles:!0,cancelable:!0,detail:this}))}},{key:"replyOp",value:function(){this.dispatchEvent(new CustomEvent("page-flag-comment-reply",{bubbles:!0,cancelable:!0,detail:this}))}},{key:"editOp",value:function(){this.dispatchEvent(new CustomEvent("page-flag-comment-edit",{bubbles:!0,cancelable:!0,detail:this}))}},{key:"render",value:function(){return l(ln||(ln=r(['\n
    \n ','\n
    \n
    \n \n
    \n
    \n
    ','
    \n
    \n \n
    \n
    \n
    \n
    \n \n \n
    \n \n
    \n "])),this.editMode?l(cn||(cn=r([''])),this.mood,this.emojiChanged):l(dn||(dn=r(['
    '])),this.mood),this.seed,this.editMode?"edit":"none",this.seed,this.timestamp,this.readOnly?"":l(un||(un=r(["\n ",'\n \n ',"\n "])),this.canEdit?l(hn||(hn=r([' '])),this.editMode?"save":"editor:mode-edit",this.editMode?"Edit":"Update",this.editOp):"",this.replyOp,this.canEdit?l(pn||(pn=r([''])),this.deleteOp):""))}},{key:"emojiChanged",value:function(e){this.mood=e.detail.value}},{key:"firstUpdated",value:function(e){v(t,"firstUpdated",this,3)([e]),this.shadowRoot.querySelector("simple-fields-field").value=this.innerHTML}},{key:"updated",value:function(e){var n=this;v(t,"updated",this,3)([e]),e.forEach((function(e,t){"editMode"==t&&void 0!==e&&(n[t]?(n.shadowRoot.querySelector("simple-fields-field").value=n.innerHTML,setTimeout((function(){n.shadowRoot.querySelector("simple-fields-field").focus(),n.shadowRoot.querySelector("simple-fields-field").select()}),0)):n.innerHTML=n.shadowRoot.querySelector("simple-fields-field").value)}))}}],[{key:"tag",get:function(){return"page-flag-comment"}},{key:"properties",get:function(){return{seed:{type:String},timestamp:{type:Number},mood:{type:String},editMode:{type:Boolean,reflect:!0,attribute:"edit-mode"},canEdit:{type:Boolean},reply:{type:Number,reflect:!0},readOnly:{type:Boolean}}}},{key:"styles",get:function(){return[,s(mn||(mn=r(['\n :host {\n display: block;\n }\n :host slot {\n display: block;\n }\n :host simple-emoji-picker,\n :host simple-fields-field {\n display: none;\n }\n :host([edit-mode]) simple-emoji-picker,\n :host([edit-mode]) simple-fields-field {\n display: block;\n }\n simple-emoji-picker {\n float: right;\n width: 40px;\n }\n .emoji {\n float: right;\n width: 40px;\n height: 40px;\n font-size: 32px;\n }\n :host([edit-mode]) slot {\n display: none;\n }\n :host([reply="1"]) .comment {\n margin-left: 16px;\n }\n :host([reply="2"]) .comment {\n margin-left: 32px;\n }\n .comment {\n background-color: #fff;\n border-radius: 5px;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);\n padding: 10px;\n margin-bottom: 10px;\n }\n simple-icon-button {\n --simple-icon-height: 16px;\n --simple-icon-width: 16px;\n margin: 0 6px;\n }\n .comment__header {\n display: flex;\n align-items: center;\n margin-bottom: 10px;\n }\n .comment__header__avatar {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n overflow: hidden;\n border: 2px solid black;\n margin-right: 8px;\n }\n .comment__header__info {\n display: flex;\n flex-direction: column;\n }\n .comment__header__info__name {\n font-weight: bold;\n font-size: 14px;\n }\n .comment__header__info__date {\n font-size: 12px;\n color: #999;\n }\n .comment__body {\n margin-bottom: 10px;\n }\n .comment__footer {\n display: flex;\n justify-content: flex-end;\n }\n .comment__footer__actions {\n display: flex;\n }\n .comment__footer__actions__button {\n background-color: transparent;\n border: none;\n color: #999;\n font-size: 12px;\n cursor: pointer;\n margin-left: 10px;\n }\n '])))]}}])}(c);customElements.define(fn.tag,fn);var yn={url:new URL("./elements/page-flag/page-flag.js",document.baseURI).href},xn=function(e){function t(){var e;return d(this,t),(e=u(this,t)).label="note",e.opened=!1,e.accentColor="cyan",e.show=!1,e._haxState=!1,e}return a(t,e),o(t,[{key:"toggleOpen",value:function(e){var t=this;this.opened=!this.opened,this.dark=this.opened,this.querySelectorAll("page-flag-comment").forEach((function(e){e.testCanUpdate(Mn.activeUser),e.readOnly=!t._haxState}))}},{key:"render",value:function(){return l(vn||(vn=r([' \n \n \n \n \n '])),this.toggleOpen,this.label,!this.opened,this.handleEdit,this.handleDelete,this.handleReply)}},{key:"handleEdit",value:function(e){e.detail.editMode=!e.detail.editMode}},{key:"handleDelete",value:function(e){e.detail.remove(),0===this.querySelectorAll("page-flag-comment").length&&this.remove()}},{key:"handleReply",value:function(e){var t=globalThis.document.createElement("page-flag-comment");t.seed=Mn.activeUser,t.timestamp=Date.now()/1e3,t.canEdit=!0,t.readOnly=!1,t.reply=e.detail.reply+1<2?e.detail.reply+1:2,e.detail.insertAdjacentElement("afterend",t),setTimeout((function(){t.editMode=!0}),0)}},{key:"haxeditModeChanged",value:function(e){this.show=e,this._haxState=e}},{key:"haxHooks",value:function(){return{editModeChanged:"haxeditModeChanged",inlineContextMenu:"haxinlineContextMenu"}}},{key:"haxinlineContextMenu",value:function(e){e.ceButtons=[{icon:"lrn:discuss",callback:"haxResolveThread",label:"Resolve thread"}]}},{key:"haxResolveThread",value:function(e){return this.remove(),!0}},{key:"firstUpdated",value:function(e){if(v(t,"firstUpdated",this,1)&&v(t,"firstUpdated",this,3)([e]),Mn.allFlags.push(this),Mn.activeUser?this.show=!0:this.remove(),this.shadowRoot.querySelector("absolute-position-behavior").target=this.shadowRoot.querySelector(".arrow"),!this.querySelector("page-flag-comment")){var n=globalThis.document.createElement("page-flag-comment");n.seed=Mn.activeUser,n.timestamp=Date.now()/1e3,n.canEdit=!0,n.readOnly=!1,this.appendChild(n),setTimeout((function(){n.editMode=!0}),100)}}}],[{key:"properties",get:function(){return i(i({},v(t,"properties",this)),{},{label:{type:String},opened:{type:Boolean,reflect:!0},show:{type:Boolean,reflect:!0}})}},{key:"styles",get:function(){var e=[];return v(t,"styles",this)&&(e=v(t,"styles",this)),[e,s(bn||(bn=r(['\n :host {\n display: none;\n float: right;\n z-index: var(--simple-modal-z-index, 1000);\n margin-right: -80px;\n position: relative;\n }\n :host([show]) {\n display: block;\n }\n .arrow {\n border: 3px solid var(--simple-colors-default-theme-accent-4, #97d4e8);\n border-radius: 4px;\n background: var(--simple-colors-default-theme-accent-1, #c8e7f1);\n color: var(--simple-colors-default-theme-accent-8, #2d7187);\n padding: 8px;\n text-align: center;\n max-width: 100px;\n font-size: 11px;\n font-weight: bold;\n position: relative;\n cursor: pointer;\n }\n\n .arrow::after,\n .arrow::before {\n border: solid transparent;\n content: " ";\n display: block;\n height: 0;\n position: absolute;\n pointer-events: none;\n width: 0;\n right: 100%;\n }\n .arrow::before {\n border-color: rgba(255, 255, 255, 0);\n border-right-color: var(\n --simple-colors-default-theme-accent-4,\n #97d4e8\n );\n top: 50%;\n margin-top: -14px;\n border-width: 14px;\n }\n .arrow::after {\n border-color: rgba(255, 255, 255, 0);\n border-right-color: var(\n --simple-colors-default-theme-accent-1,\n #c8e7f1\n );\n top: 50%;\n margin-top: -10px;\n border-width: 10px;\n }\n absolute-position-behavior {\n z-index: var(--simple-modal-z-index, 1000);\n min-width: 280px;\n }\n absolute-position-behavior div {\n color: black;\n background-color: white;\n font-size: 12px;\n width: 300px;\n margin-left: 160px;\n padding-top: 8px;\n }\n '])))]}},{key:"tag",get:function(){return"page-flag"}},{key:"haxProperties",get:function(){return new URL("./lib/".concat(this.tag,".haxProperties.json"),yn.url).href}}])}(j);customElements.define(xn.tag,xn);var kn=function(e){function t(){var e;return d(this,t),(e=u(this,t)).windowControllers=new AbortController,e.activeUser=null,e.allFlags=[],e}return a(t,e),o(t,[{key:"connectedCallback",value:function(){globalThis.addEventListener("haxcms-user-data-updated",this.userDataUpdated.bind(this),{signal:this.windowControllers.signal})}},{key:"disconnectedCallback",value:function(){this.windowControllers.abort()}},{key:"userDataUpdated",value:function(e){this.activeUser=e.detail.userName,this.allFlags.forEach((function(e){e.show=!0}))}}],[{key:"tag",get:function(){return"page-flag-manager"}}])}(W(HTMLElement));customElements.define(kn.tag,kn),globalThis.pageFlagManager=globalThis.pageFlagManager||{},globalThis.pageFlagManager.requestAvailability=function(){return globalThis.pageFlagManager.instance||(globalThis.pageFlagManager.instance=globalThis.document.createElement(kn.tag),globalThis.document.body.appendChild(globalThis.pageFlagManager.instance)),globalThis.pageFlagManager.instance};var wn,Sn,Cn,Tn,Mn=globalThis.pageFlagManager.requestAvailability(),_n={url:new URL("./elements/haxcms-elements/lib/core/haxcms-site-editor-ui.js",document.baseURI).href};new URL("../../../app-hax/lib/assets/images/ButtonBGLM.svg",_n.url).href,new URL("../../../app-hax/lib/assets/images/ButtonBGDM.svg",_n.url).href;var En=new URL("../../../app-hax/lib/assets/images/Logout.svg",_n.url).href,Ln=e("HAXCMSSiteEditorUI",function(e){function n(){var e,a;return d(this,n),(e=u(this,n)).__winEvents={"can-redo-changed":"_redoChanged","can-undo-changed":"_undoChanged","hax-drop-focus-event":"_expandSettingsPanel","jwt-logged-in":"_jwtLoggedIn","super-daemon-close":"sdCloseEvent"},e.rpgHat="none",e.darkMode=!1,e.__editText="Edit",e.userMenuOpen=!1,e.soundIcon="",e.__disposer=e.__disposer||[],e.t=e.t||{},Y.allowedCallback=function(){return!0},Y.keyHandlerCallback=function(){var t=e.shadowRoot.querySelector("#merlin");return R.playSound("click"),"super-daemon-modal"==t.getAttribute("data-event")?te.haxTray.collapsed=!1:(Y.mini=!0,Y.wand=!0,Y.activeNode=e.shadowRoot.querySelector("#merlin")),Y.runProgram("","*"),!0},Y.noResultsSlot=function(){return l(wn||(wn=r(['
    \n Expecting to see an option Merlin didn\'t provide?\n
    \n Make a suggestion to improve results'])),(function(e){te._haxStoreContribute("merlin","POP,enhancement",Y.commandContext+" "+Y.value)}))},Y.appendContext("CMS"),Y.defineOption({title:"Magic File Wand",icon:"hax:hax2022",priority:-1e4,tags:["Agent","help","merlin"],eventName:"super-daemon-run-program",path:"HAX/agent",value:{name:"Agent",machineName:"hax-agent",program:(a=p(m().mark((function t(n,i){var a,o,s,r,l,c,d,u;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=F(J.action),o=F(J.memory),s=F(J.data),r=[],"file-selected"!==i.operation){t.next=23;break}t.t0=i.type,t.next="md"===t.t0||"docx"===t.t0||"doc"===t.t0||"txt"===t.t0||"html"===t.t0||"htm"===t.t0?8:"png"===t.t0||"jpeg"===t.t0||"gif"===t.t0||"jpg"===t.t0?11:"mp4"===t.t0?13:"midi"===t.t0||"mid"===t.t0||"mp3"===t.t0?15:"pdf"===t.t0?17:18;break;case 8:return o.editMode||(r.push({title:"New Sibling Page from ".concat(i.type),icon:"hax:add-page",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"create-sibling"]},eventName:"super-daemon-element-method",path:"Page created next to current"}),r.push({title:"New Child Page from ".concat(i.type),icon:"hax:add-child-page",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"create-child"]},eventName:"super-daemon-element-method",path:"Page created under current"}),["docx","doc"].includes(i.type)&&r.push({title:"Create outline from ".concat(i.type),icon:"hax:site-map",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"create-branch"]},eventName:"super-daemon-element-method",path:"H1,H2 tags create menu pages"})),r.push({title:"Insert ".concat(i.type," contents in Page"),icon:"hax:html-code",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"insert-html"]},eventName:"super-daemon-element-method",path:"Content converted to HTML and inserted"}),t.abrupt("break",19);case 11:return r.push({title:"Insert ".concat(i.type," in page"),icon:"editor:insert-photo",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"insert-file","image"]},eventName:"super-daemon-element-method",path:"Image embedded in page"}),t.abrupt("break",19);case 13:return r.push({title:"Insert ".concat(i.type," in page"),icon:"av:play-circle-filled",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"insert-file","video"]},eventName:"super-daemon-element-method",path:"Video embedded in page"}),t.abrupt("break",19);case 15:return r.push({title:"Insert ".concat(i.type," in page"),icon:"av:volume-up",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"insert-file","audio"]},eventName:"super-daemon-element-method",path:"Audio embedded in page"}),t.abrupt("break",19);case 17:r.push({title:"Embed ".concat(i.type," in page"),icon:"hax:file-pdf",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"insert-file","pdf"]},eventName:"super-daemon-element-method",path:"PDF embedded in a frame element"});case 18:return t.abrupt("break",19);case 19:r.push({title:"Link to ".concat(i.type," file"),icon:"editor:insert-link",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"link","link"]},eventName:"super-daemon-element-method",path:"File uploaded and linked to"}),r.push({title:"Just Upload ".concat(i.type," file"),icon:"file-upload",tags:["agent"],value:{target:e,method:"processFileContentsBasedOnUserDesire",args:[i,"upload","upload-only"]},eventName:"super-daemon-element-method",path:"File uploaded for later use"}),t.next=36;break;case 23:if("drop"!==a.type||"drop"!==i.type){t.next=34;break}return l=s.file,t.next=27,l.text();case 27:c=t.sent,d=l.name.split("."),u="",d.length>1&&(u=d.pop()),Y.waveWand(["","/",{operation:"file-selected",contents:c,data:l,type:u},"hax-agent","Agent"],e.shadowRoot.querySelector("#merlin"),"coin2"),t.next=36;break;case 34:r=[{title:"Select file..",icon:"folder-open",tags:["agent"],value:{target:e,method:"selectFileToProcess",args:[]},eventName:"super-daemon-element-method",path:"Watch Merlin work his magic!"}],e.selectFileToProcess();case 36:return t.abrupt("return",r);case 37:case"end":return t.stop()}}),t)}))),function(e,t){return a.apply(this,arguments)})}}),te.ready&&(["site-remote-content","citation-element","page-flag","site-view","site-collection-list","collection-list","collection-item"].map((function(e){var t=globalThis.document.createElement(e);te.haxAutoloader.appendChild(t)})),te.primativeHooks.a||(te.primativeHooks.a={}),te.primativeHooks.a.setupActiveElementForm=function(t){var n=R.getManifestItems(!0),i=[{text:"-- ".concat(e.t.selectPage," --"),value:null}];n.forEach((function(t){if(t.id!=e.itemId){for(var a=t,o="- ";a&&null!=a.parent;)a=n.find((function(e){return e.id==a.parent})),a&&(o="--"+o);i.push({text:o+t.title,value:t.id})}}))}),e.t=i(i({},e.t),{},{selectPage:"Select page",backToSiteList:"Back to site list",mySites:"My sites",cancel:"Cancel",unsavedChangesWillBeLostIfSelectingOkAreYouSure:"Unsaved changes will be lost if selecting OK, are you sure?",editDetails:"Page details",add:"Add",editSettings:"Edit settings",source:"Source",viewSource:"View source",confirmHtmlSourceExit:"HTML Source changes will not be saved without pressing the `Update HTML` button, Save without HTML code editor changes?",findMedia:"Find media",undo:"Undo",redo:"Redo",media:"Media",outline:"Outline",blocks:"Blocks",addBlock:"Add block",addPage:"Add page",addChildPage:"Add child page",clonePage:"Clone page",delete:"Delete page",shareSite:"Share site",siteSettings:"Site settings",themeSettings:"Theme settings",seoSettings:"SEO settings",authorSettings:"Author settings",close:"Close",settings:"Settings",edit:"Edit",configureBlock:"Configure block",configure:"Configure",save:"Save",newJourney:"New Journey",accountInfo:"Account Info",outlineDesigner:"Outline designer",pageOutline:"Page outline",more:"More",siteActions:"Site actions",insights:"Insights dashboard (beta)",viewBuilder:"View builder (alpha)",merlin:"Merlin",summonMerlin:"Summon Merlin",logOut:"Log out",menu:"Menu",showMore:"More",contentImported:"Content imported!"}),e.backText="Site list",e.painting=!0,e.pageAllowed=!1,e.editMode=!1,e.__editIcon="hax:page-edit",e.icon="hax:site-settings",e.manifestEditMode=!1,e.backLink="../../",e.activeTagName="",e.activeNode=null,e.activeDrag=!1,e.activeType=null,globalThis.appSettings&&globalThis.appSettings.backLink&&(e.backLink=globalThis.appSettings.backLink),q((function(){var t=F(J.action),n=F(J.data);J.active&&J.memory.isLoggedIn&&null===Y.programName&&"drag"===t.type?(e.activeDrag=!0,e.activeType=n.value||n.architype):J.active&&J.memory.isLoggedIn&&null===Y.programName&&"dragleave"===t.type&&(e.activeDrag=!1,e.activeType=null)})),q((function(){var t=F(te.activeGizmo);t&&t.title&&(e.activeTagName=t.title)})),q((function(){e.activeNode=F(te.activeNode)})),q((function(){var e=F(R.badDevice);if(!1===e){var t=globalThis.document.createElement("link");t.setAttribute("href","https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap"),t.setAttribute("rel","stylesheet"),t.setAttribute("fetchpriority","low"),globalThis.document.head.appendChild(t)}else!0===e&&globalThis.document.body.classList.add("bad-device")})),q((function(){e.darkMode=F(R.darkMode),e.dark=e.darkMode,F(R.darkMode)?(Y.dark=!0,Y.toastInstance.darkMode=!0,te.globalPreferences.haxUiTheme="haxdark"):(te.globalPreferences.haxUiTheme="hax",Y.dark=!1,Y.toastInstance.darkMode=!1)})),q((function(){e.soundIcon=F(R.soundStatus)?new URL("../../../app-hax/lib/assets/images/FullVolume.svg",_n.url).href:new URL("../../../app-hax/lib/assets/images/Silence.svg",_n.url).href})),setTimeout((function(){t.import("./19ca9b9b.js"),t.import("./eec9358e.js")}),0),e}return a(n,e),o(n,[{key:"_expandSettingsPanel",value:function(e){this.shadowRoot.querySelector("#content-edit").click()}},{key:"selectFileToProcess",value:function(){var e=this;t.import("./72dcd9ad.js").then((function(e){return e.bd})).then(function(){var t=p(m().mark((function t(n){var i,a,o,s,r;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=globalThis.FileSystemBroker.requestAvailability(),t.next=3,i.getFileContents("*");case 3:a=t.sent,o=i.fileHandler,s=o.name.split("."),r="",s.length>1&&(r=s.pop()),Y.waveWand(["","/",{operation:"file-selected",contents:a,data:o,type:r},"hax-agent","Agent"],e.shadowRoot.querySelector("#merlin"),"coin2");case 9:case"end":return t.stop()}}),t)})));return function(e){return t.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",R.toast("Processing",5e3,{hat:"construction",speed:100,walking:!0,slot:e})}},{key:"processFileContentsBasedOnUserDesire",value:(b=p(m().mark((function e(n,i,a){var o,s,r,l,c,d=this;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:F(J.data).event,this.setProcessingVisual(),e.t0=i,e.next="upload"===e.t0||"link"===e.t0||"insert-file"===e.t0?6:"insert-html"===e.t0||"create-sibling"===e.t0||"create-child"===e.t0||"create-branch"===e.t0?8:47;break;case 6:return"upload"===i?this.dispatchEvent(new CustomEvent("hax-file-upload",{bubbles:!0,cancelable:!0,composed:!0,detail:{file:n.data,placeHolderElement:null,operationType:a}})):"link"===i?(!1===R.editMode&&(R.editMode=!0),setTimeout((function(){var e=te.activeHaxBody.haxInsert("p","",{});d.dispatchEvent(new CustomEvent("hax-file-upload",{bubbles:!0,cancelable:!0,composed:!0,detail:{file:n.data,placeHolderElement:e,operationType:a}}))}),300)):(!1===R.editMode&&(R.editMode=!0),setTimeout((function(){var e=te.activeHaxBody.haxInsert("p","",{});d.dispatchEvent(new CustomEvent("hax-file-upload",{bubbles:!0,cancelable:!0,composed:!0,detail:{file:n.data,placeHolderElement:e,operationType:a}}))}),300)),e.abrupt("break",47);case 8:o=null,s=new FormData,e.t1=n.type,e.next="docx"===e.t1||"doc"===e.t1?13:"md"===e.t1||"txt"===e.t1?17:"html"===e.t1||"htm"===e.t1?20:21;break;case 13:return s.append("upload",n.data),o="@core/docxToHtml","create-branch"===i&&(o="@haxcms/docxToSite",s.append("method","branch"),s.append("type","branch"),r=F(R.activeItem),s.append("parentId",r.parent)),e.abrupt("break",21);case 17:return o="@core/mdToHtml",s={md:n.contents},e.abrupt("break",21);case 20:return e.abrupt("break",21);case 21:if(l={},!o){e.next=45;break}if("insert-html"!==i){e.next=30;break}return e.next=26,A.call(o,s);case 26:200==(l=e.sent).status&&this.insertElementsFromContentBlob(l.data.contents||l.data),e.next=43;break;case 30:return e.next=32,A.call(o,s);case 32:if(200!=(l=e.sent).status){e.next=43;break}if(!["create-sibling","create-child"].includes(i)){e.next=38;break}this.createNewNode(i.replace("create-",""),n.data.name,l.data.contents||l.data),e.next=43;break;case 38:if(!l.data||""==l.data.contents){e.next=43;break}return(c={}).items=l.data.items,e.next=43,t.import("./ccf78e94.js").then(function(){var e=p(m().mark((function e(t){var n,i,a,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.jwt=F(R.jwt),c.site={name:F(R.manifest.metadata.site.name)},(n=globalThis.document.createElement("outline-designer")).items=l.data.items,n.eventData=c,n.storeTools=!0,(i=globalThis.document.createElement("button")).innerText="Confirm",i.classList.add("hax-modal-btn"),i.addEventListener("click",function(){var e=p(m().mark((function e(t){var i,a,o,s,r,l;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getData();case 2:i=e.sent,a=0,o=0,s=0,i.items.map((function(e){e.delete?a++:e.new?s++:e.modified&&o++})),(""==(r="".concat(s>0?"‣ ".concat(s," new pages will be created\n"):"").concat(o>0?"‣ ".concat(o," pages will be updated\n"):"").concat(a>0?"‣ ".concat(a," pages will be deleted\n"):""))||globalThis.confirm("Saving will commit the following actions:\n".concat(r,"\nAre you sure?")))&&(R.cmsSiteEditorAvailability().querySelector("#createajax").body=i,d.setProcessingVisual(),R.cmsSiteEditorAvailability().querySelector("#createajax").generateRequest(),l=new CustomEvent("simple-modal-hide",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}),globalThis.dispatchEvent(l));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(a=globalThis.document.createElement("button")).innerText="Cancel",a.classList.add("hax-modal-btn"),a.classList.add("cancel"),a.addEventListener("click",(function(e){var t=new CustomEvent("simple-modal-hide",{bubbles:!0,composed:!0,cancelable:!0,detail:{}});globalThis.dispatchEvent(t)})),(o=globalThis.document.createElement("div")).appendChild(i),o.appendChild(a),d.dispatchEvent(new CustomEvent("simple-modal-show",{bubbles:!0,cancelable:!0,composed:!0,detail:{title:"Confirm structure",elements:{content:n,buttons:o},modal:!0,styles:ee(ee(ee({"--simple-modal-titlebar-background":"transparent","--simple-modal-titlebar-color":"black","--simple-modal-width":"90vw","--simple-modal-min-width":"300px","--simple-modal-z-index":"100000000","--simple-modal-height":"90vh","--simple-modal-min-height":"400px","--simple-modal-titlebar-height":"64px"},"--simple-modal-titlebar-color","black"),"--simple-modal-titlebar-height","80px"),"--simple-modal-titlebar-background","orange")}}));case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 43:e.next=46;break;case 45:"insert-html"===i?this.insertElementsFromContentBlob(n.contents):"create-branch"!==i&&this.createNewNode(i.replace("create-",""),n.data.name,n.contents);case 46:return e.abrupt("break",47);case 47:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return b.apply(this,arguments)})},{key:"createNewNode",value:(g=p(m().mark((function e(t){var n,i,a,o,s,r,l,c=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:"New page",i=c.length>2&&void 0!==c[2]?c[2]:"

    ",a=null,o=null,!(s=F(R.activeItem))){e.next=23;break}if("sibling"!==t){e.next=11;break}o=s.parent,a=parseInt(s.order),e.next=23;break;case 11:if("child"!==t){e.next=22;break}return o=s.id,e.t0=F,e.next=16,R.getLastChildItem(s.id);case 16:e.t1=e.sent,r=(0,e.t0)(e.t1).order,a=0,(r||0===r)&&(a=r+1),e.next=23;break;case 22:o=null,a=0;case 23:""==n&&(n="New page"),l={node:{title:n,location:"",contents:i},order:a,parent:o},this.dispatchEvent(new CustomEvent("haxcms-create-node",{bubbles:!0,composed:!0,cancelable:!0,detail:{originalTarget:this,values:l}}));case 26:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"insertElementsFromContentBlob",value:function(e){var t=this,n=!1;!1===R.editMode?(R.editMode=!0,n=!0):this.activeNode.hasAttribute("slot")&&(a=this.activeNode.getAttribute("slot"));var i=globalThis.document.createElement("div");i.innerHTML=e;var a=!1;if(!n&&this.activeNode&&this.activeNode.parentNode)for(var o=i.children.length-1;o>0;o--)a&&i.children[o].setAttribute("slot",a),this.activeNode.parentNode.insertBefore(i.children[o],this.activeNode.nextSibling);else setTimeout((function(){for(var e=i.children.length-1;e>0;e--)te.activeHaxBody.appendChild(i.children[e]);setTimeout((function(){te.activeHaxBody.scrollHere(t.activeNode),setTimeout((function(){te.activeHaxBody.scrollHere(t.activeNode)}),500)}),1e3)}),300);te.toast(this.t.contentImported)}},{key:"insertUrl",value:(h=p(m().mark((function e(t,n){var i,a;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1===R.editMode&&(R.editMode=!0),!n){e.next=6;break}return e.next=4,A.call("@core/metadata",{q:t});case 4:(i=e.sent).data&&(i.data["og:title"]||i.data.title)&&(a={title:i.data["og:title"]||i.data.title,source:t},te.insertLogicFromValues(a,this));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"soundToggle",value:function(){var e=!F(R.soundStatus);R.soundStatus=e,$("app-hax-soundStatus",e),e?(R.toast("Can you hear me now? Good.",2e3,{hat:"random"}),R.playSound("click")):R.toast("Sound off.. hey.. HELLO!?!",2e3,{fire:!0})}},{key:"closeMenu",value:function(){this.userMenuOpen=!1}},{key:"toggleMenu",value:function(){this.userMenuOpen=!this.userMenuOpen,R.playSound("click")}},{key:"getIconPosition",value:function(e){return["xl","lg"].includes(e)?"left":"top"}},{key:"render",value:function(){return l(Sn||(Sn=r(['\n \n \n \n \n \n \n \n \n \n \n\n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n\n \n \n \n ','\n \n \n
    \n \n \n \n \n \n
    \n \x3c!-- --\x3e\n \n \n \n \n \n \n =200&&e<300},send:function(e){var t=this.xhr;if(t.readyState>0)return null;t.addEventListener("progress",function(e){this._setProgress({lengthComputable:e.lengthComputable,loaded:e.loaded,total:e.total}),this.fire("iron-request-progress-changed",{value:this.progress})}.bind(this)),t.addEventListener("error",function(t){this._setErrored(!0),this._updateStatus();var a=e.rejectWithRequest?{error:t,request:this}:t;this.rejectCompletes(a)}.bind(this)),t.addEventListener("timeout",function(t){this._setTimedOut(!0),this._updateStatus();var a=e.rejectWithRequest?{error:t,request:this}:t;this.rejectCompletes(a)}.bind(this)),t.addEventListener("abort",function(){this._setAborted(!0),this._updateStatus();var t=new Error("Request aborted."),a=e.rejectWithRequest?{error:t,request:this}:t;this.rejectCompletes(a)}.bind(this)),t.addEventListener("loadend",function(){if(this._updateStatus(),this._setResponse(this.parseResponse()),this.succeeded)this.resolveCompletes(this);else{var t=new Error("The request failed with status code: "+this.xhr.status),a=e.rejectWithRequest?{error:t,request:this}:t;this.rejectCompletes(a)}}.bind(this)),this.url=e.url;var a=!1!==e.async;t.open(e.method||"GET",e.url,a);var n={json:"application/json",text:"text/plain",html:"text/html",xml:"application/xml",arraybuffer:"application/octet-stream"}[e.handleAs],i=e.headers||Object.create(null),o=Object.create(null);for(var r in i)o[r.toLowerCase()]=i[r];if(i=o,n&&!i.accept&&(i.accept=n),Object.keys(i).forEach((function(e){/[A-Z]/.test(e)&&s._error("Headers must be lower case, got",e),t.setRequestHeader(e,i[e])}),this),a){t.timeout=e.timeout;var l=e.handleAs;!e.jsonPrefix&&l||(l="text"),t.responseType=t._responseType=l,e.jsonPrefix&&(t._jsonPrefix=e.jsonPrefix)}t.withCredentials=!!e.withCredentials;var d=this._encodeBodyObject(e.body,i["content-type"]);return t.send(d),this.completes},parseResponse:function(){var e=this.xhr,t=e.responseType||e._responseType,a=!this.xhr.responseType,s=e._jsonPrefix&&e._jsonPrefix.length||0;try{switch(t){case"json":if(a||void 0===e.response)try{return JSON.parse(e.responseText)}catch(t){return console.warn("Failed to parse JSON sent from "+e.responseURL),null}return e.response;case"xml":return e.responseXML;case"blob":case"document":case"arraybuffer":return e.response;default:if(s)try{return JSON.parse(e.responseText.substring(s))}catch(t){return console.warn("Failed to parse JSON sent from "+e.responseURL),null}return e.responseText}}catch(e){this.rejectCompletes(new Error("Could not parse response. "+e.message))}},abort:function(){this._setAborted(!0),this.xhr.abort()},_encodeBodyObject:function(e,t){if("string"==typeof e)return e;var a=e;switch(t){case"application/json":return JSON.stringify(a);case"application/x-www-form-urlencoded":return this._wwwFormUrlEncode(a)}return e},_wwwFormUrlEncode:function(e){if(!e)return"";var t=[];return Object.keys(e).forEach((function(a){t.push(this._wwwFormUrlEncodePiece(a)+"="+this._wwwFormUrlEncodePiece(e[a]))}),this),t.join("&")},_wwwFormUrlEncodePiece:function(e){return null!=e&&e.toString?encodeURIComponent(e.toString().replace(/\r?\n/g,"\r\n")).replace(/%20/g,"+"):""},_updateStatus:function(){this._setStatus(this.xhr.status),this._setStatusText(void 0===this.xhr.statusText?"":this.xhr.statusText)}}),a({is:"iron-ajax",hostAttributes:{hidden:!0},properties:{url:{type:String},params:{type:Object,value:function(){return{}}},method:{type:String,value:"GET"},headers:{type:Object,value:function(){return{}}},contentType:{type:String,value:null},body:{type:Object,value:null},sync:{type:Boolean,value:!1},handleAs:{type:String,value:"json"},withCredentials:{type:Boolean,value:!1},timeout:{type:Number,value:0},auto:{type:Boolean,value:!1},verbose:{type:Boolean,value:!1},lastRequest:{type:Object,notify:!0,readOnly:!0},lastProgress:{type:Object,notify:!0,readOnly:!0},loading:{type:Boolean,notify:!0,readOnly:!0},lastResponse:{type:Object,notify:!0,readOnly:!0},lastError:{type:Object,notify:!0,readOnly:!0},activeRequests:{type:Array,notify:!0,readOnly:!0,value:function(){return[]}},debounceDuration:{type:Number,value:0,notify:!0},jsonPrefix:{type:String,value:""},bubbles:{type:Boolean,value:!1},rejectWithRequest:{type:Boolean,value:!1},_boundHandleResponse:{type:Function,value:function(){return this._handleResponse.bind(this)}}},observers:["_requestOptionsChanged(url, method, params.*, headers, contentType, body, sync, handleAs, jsonPrefix, withCredentials, timeout, auto)"],created:function(){this._boundOnProgressChanged=this._onProgressChanged.bind(this)},get queryString(){var e,t,a=[];for(e in this.params)if(t=this.params[e],e=window.encodeURIComponent(e),Array.isArray(t))for(var s=0;s=0?"&":"?";return t+a+e}return t},get requestHeaders(){var e,t={},a=this.contentType;if(null==a&&"string"==typeof this.body&&(a="application/x-www-form-urlencoded"),a&&(t["content-type"]=a),"object"===n(this.headers))for(e in this.headers)t[e]=this.headers[e].toString();return t},_onProgressChanged:function(e){this._setLastProgress(e.detail.value)},toRequestOptions:function(){return{url:this.requestUrl||"",method:this.method,headers:this.requestHeaders,body:this.body,async:!this.sync,handleAs:this.handleAs,jsonPrefix:this.jsonPrefix,withCredentials:this.withCredentials,timeout:this.timeout,rejectWithRequest:this.rejectWithRequest}},generateRequest:function(){var e=document.createElement("iron-request"),t=this.toRequestOptions();return this.push("activeRequests",e),e.completes.then(this._boundHandleResponse).catch(this._handleError.bind(this,e)).then(this._discardRequest.bind(this,e)),this.fire("iron-ajax-presend",{request:e,options:t},{bubbles:this.bubbles,cancelable:!0}).defaultPrevented?(e.abort(),e.rejectCompletes(e),e):(this.lastRequest&&this.lastRequest.removeEventListener("iron-request-progress-changed",this._boundOnProgressChanged),e.addEventListener("iron-request-progress-changed",this._boundOnProgressChanged),e.send(t),this._setLastProgress(null),this._setLastRequest(e),this._setLoading(!0),this.fire("request",{request:e,options:t},{bubbles:this.bubbles,composed:!0}),this.fire("iron-ajax-request",{request:e,options:t},{bubbles:this.bubbles,composed:!0}),e)},_handleResponse:function(e){e===this.lastRequest&&(this._setLastResponse(e.response),this._setLastError(null),this._setLoading(!1)),this.fire("response",e,{bubbles:this.bubbles,composed:!0}),this.fire("iron-ajax-response",e,{bubbles:this.bubbles,composed:!0})},_handleError:function(e,t){this.verbose&&s._error(t),e===this.lastRequest&&(this._setLastError({request:e,error:t,status:e.xhr.status,statusText:e.xhr.statusText,response:e.xhr.response}),this._setLastResponse(null),this._setLoading(!1)),this.fire("iron-ajax-error",{request:e,error:t},{bubbles:this.bubbles,composed:!0}),this.fire("error",{request:e,error:t},{bubbles:this.bubbles,composed:!0})},_discardRequest:function(e){var t=this.activeRequests.indexOf(e);t>-1&&this.splice("activeRequests",t,1)},_requestOptionsChanged:function(){this.debounce("generate-request",(function(){null!=this.url&&this.auto&&this.generateRequest()}),this.debounceDuration)}});var S={url:new URL("./elements/haxcms-elements/lib/core/haxcms-site-editor.js",document.baseURI).href},C=e("HAXCMSSiteEditor",function(e){function a(){var e;return p(this,a),(e=m(this,a)).__disposer=[],e.method="POST",e.editMode=!1,globalThis.SimpleModal.requestAvailability(),b((function(t){e.editMode=g(d.editMode),e.editMode&&g(x.activeHaxBody)&&x.activeHaxBody.importContent(g(d.activeItemContent)),e.__disposer.push(t)})),b((function(t){e.manifest=g(d.manifest),e.__disposer.push(t)})),b((function(t){e.activeItem=g(d.activeItem);var a=g(d.location.baseUrl);if(a&&e.activeItem&&e.activeItem.location){var s=a.replace("/sites","").split("/");5===s.length?x.revisionHistoryLink="/".concat(s[2],"/gitlist/").concat(s[3],"/logpatch/master/").concat(e.activeItem.location):4===s.length?x.revisionHistoryLink="/".concat(s[1],"/gitlist/").concat(s[2],"/logpatch/master/").concat(e.activeItem.location):3===s.length&&(x.revisionHistoryLink="/gitlist/".concat(s[1],"/logpatch/master/").concat(e.activeItem.location))}e.__disposer.push(t)})),e}return i(a,e),o(a,[{key:"render",value:function(){return r(E||(E=l(['\n \n \n \n \n \n \n \n \n \n \n \n '])),{Authorization:"Bearer ${this.jwt}"},this.saveNodePath,this.method,this._handleNodeResponse,this.lastErrorChanged,{Authorization:"Bearer ${this.jwt}"},this.saveOutlinePath,this.method,this._handleOutlineResponse,this.lastErrorChanged,{Authorization:"Bearer ${this.jwt}"},this.saveManifestPath,this.method,this._handleManifestResponse,this.lastErrorChanged,{Authorization:"Bearer ${this.jwt}"},this.publishing,this.loadingChanged,this.publishSitePath,this.method,this._handlePublishResponse,this.lastErrorChanged,{Authorization:"Bearer ${this.jwt}"},this.revertSitePath,this.method,this._handleRevertResponse,this.lastErrorChanged,{Authorization:"Bearer ${this.jwt}"},this.syncSitePath,this.method,this._handleSyncResponse,this.lastErrorChanged,{Authorization:"Bearer ${this.jwt}"},this.createNodePath,this.method,this._handleCreateResponse,this.lastErrorChanged,this.__createNodeResponseChanged,{Authorization:"Bearer ${this.jwt}"},this.deleteNodePath,this.method,this._handleDeleteResponse,this.lastErrorChanged,this.__deleteNodeResponseChanged,{Authorization:"Bearer ${this.jwt}"},this.getUserDataPath,this.method,this._handleUserDataResponse,this.lastErrorChanged)}},{key:"__deleteNodeResponseChanged",value:function(e){e.detail.value&&e.detail.value.data&&e.detail.value.data.title&&(d.toast("Page deleted ".concat(e.detail.value.data.title,", selecting another page"),4e3),d.playSound("coin"))}},{key:"__createNodeResponseChanged",value:function(e){e.detail.value&&e.detail.value.data&&e.detail.value.data.slug&&(globalThis.history.pushState({},null,e.detail.value.data.slug),globalThis.dispatchEvent(new PopStateEvent("popstate")),d.toast("Created ".concat(e.detail.value.data.title,"!"),3e3,{hat:"random"}),d.playSound("coin"))}},{key:"_handleUserDataResponse",value:function(e){e.detail.response&&e.detail.response.data&&(d.userData=e.detail.response.data,this.dispatchEvent(new CustomEvent("haxcms-user-data-updated",{composed:!0,bubbles:!0,cancelable:!1,detail:e.detail.response.data})))}},{key:"lastErrorChanged",value:function(e){if(e.detail.value){console.error(e);var t=h(e)[0];switch(parseInt(e.detail.value.status)){case 405:case 401:this.dispatchEvent(new CustomEvent("jwt-login-logout",{composed:!0,bubbles:!0,cancelable:!1,detail:{redirect:!0}}));break;case 403:this.dispatchEvent(new CustomEvent("jwt-login-refresh-token",{composed:!0,bubbles:!0,cancelable:!1,detail:{element:{obj:this,callback:"refreshRequest",params:[t]}}}));break;default:d.toast(e.detail.value.status+" "+e.detail.value.statusText,5e3,{fire:!0}),d.playSound("error")}}}},{key:"refreshRequest",value:function(e,t){this.jwt=e,t.body.jwt=e,t.headers={Authorization:"Bearer ".concat(this.jwt)},setTimeout((function(){t.generateRequest()}),0)}},{key:"loadingChanged",value:function(e){this.loading=e.detail.value}},{key:"createRenderRoot",value:function(){return this}},{key:"firstUpdated",value:function(e){if(x.ready){this._storeReadyToGo({detail:!0})}globalThis.dispatchEvent(new CustomEvent("haxcms-site-editor-loaded",{bubbles:!0,composed:!0,cancelable:!1,detail:!0}));var t=globalThis.document.createElement("link");t.rel="stylesheet",t.href=new URL("../base.css",S.url).href,this.querySelector("#hax").shadowRoot.querySelector("style").parentNode.insertBefore(t,this.querySelector("#hax").shadowRoot.querySelector("style").nextSibling)}},{key:"updated",value:function(e){var t=this;e.forEach((function(e,a){"appStore"==a&&t.querySelector("#hax").setAttribute("app-store",JSON.stringify(t[a])),"publishing"==a?t._publishingChanged(t[a],e):"activeItem"==a?(t.dispatchEvent(new CustomEvent("manifest-changed",{detail:t[a]})),t._activeItemChanged(t[a],e)):"manifest"==a&&(t.dispatchEvent(new CustomEvent("manifest-changed",{detail:t[a]})),t._manifestChanged(t[a],e))}))}},{key:"_tokenRefreshFailed",value:function(e){this.dispatchEvent(new CustomEvent("jwt-login-logout",{composed:!0,bubbles:!0,cancelable:!1,detail:{redirect:!0}}))}},{key:"connectedCallback",value:function(){u(a,"connectedCallback",this,3)([]),this.windowControllers&&this.windowControllers.abort(),this.windowControllers=new AbortController,globalThis.addEventListener("jwt-login-refresh-error",this._tokenRefreshFailed.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("hax-store-ready",this._storeReadyToGo.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("json-outline-schema-active-item-changed",this._newActiveItem.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("json-outline-schema-active-body-changed",this._bodyChanged.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("haxcms-save-outline",this.saveOutline.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("haxcms-save-node",this.saveNode.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("haxcms-save-site-data",this.saveManifest.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("haxcms-load-site-dashboard",this.loadSiteDashboard.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("haxcms-load-user-data",this.loadUserData.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("haxcms-create-node",this.createNode.bind(this),{signal:this.windowControllers.signal}),globalThis.addEventListener("haxcms-delete-node",this.deleteNode.bind(this),{signal:this.windowControllers.signal})}},{key:"loadUserData",value:function(e){this.querySelector("#getuserdata").body={jwt:this.jwt},this.querySelector("#getuserdata").generateRequest()}},{key:"loadSiteDashboard",value:function(e){var t=this;globalThis.document.body.querySelector("haxcms-site-dashboard")&&(this.siteDashboard=globalThis.document.body.querySelector("haxcms-site-dashboard"),this.siteDashboard.headers={Authorization:"Bearer ".concat(this.jwt)},this.siteDashboard.jwt=this.jwt,this.siteDashboard.method=this.method,this.siteDashboard.body={jwt:this.jwt,token:this.getFormToken,site:{name:this.manifest.metadata.site.name}},this.siteDashboard.loadEndpoint=this.getSiteFieldsPath,setTimeout((function(){t.siteDashboard.generateRequest()}),0))}},{key:"_schemaFormValueChanged",value:function(e){}},{key:"createNode",value:(n=v(y().mark((function e(a){var s,n,i=this;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.detail.values){e.next=15;break}if((s=a.detail.values).jwt=this.jwt,s.site={name:this.manifest.metadata.site.name},this._originalTarget=a.detail.originalTarget,!s.docximport){e.next=10;break}return e.next=8,t.import("./0bb221d1.js").then(function(){var e=v(y().mark((function e(a){var n,o,r,l,h;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(["haxcms"]),n=globalThis.FileSystemBroker.requestAvailability(),e.next=4,n.loadFile("docx");case 4:return o=e.sent,(r=new FormData).append("method",s.docximport),l="course",i.manifest.metadata.build&&i.manifest.metadata.structure&&(l=i.manifest.metadata.structure),r.append("type",l),r.append("parentId",s.parent),r.append("upload",o),i.setProcessingVisual(),e.next=15,f.call("@haxcms/docxToSite",r);case 15:if(h=e.sent,d.toast("finished!",300),200!=h.status||!h.data||""==h.data.contents){e.next=21;break}return s.items=h.data.items,e.next=21,t.import("./ccf78e94.js").then(function(){var e=v(y().mark((function e(t){var a,n,o,r;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(a=globalThis.document.createElement("outline-designer")).items=h.data.items,a.eventData=s,a.storeTools=!0,(n=globalThis.document.createElement("button")).innerText="Confirm",n.classList.add("hax-modal-btn"),n.addEventListener("click",function(){var e=v(y().mark((function e(t){var s,n,o,r,l,d;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.getData();case 2:s=e.sent,n=0,o=0,r=0,s.items.map((function(e){e.delete?n++:e.new?r++:e.modified&&o++})),(""==(l="".concat(r>0?"‣ ".concat(r," new pages will be created\n"):"").concat(o>0?"‣ ".concat(o," pages will be updated\n"):"").concat(n>0?"‣ ".concat(n," pages will be deleted\n"):""))||globalThis.confirm("Saving will commit the following actions:\n".concat(l,"\nAre you sure?")))&&(i.querySelector("#createajax").body=s,i.setProcessingVisual(),i.querySelector("#createajax").generateRequest(),d=new CustomEvent("simple-modal-hide",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}),globalThis.dispatchEvent(d));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(o=globalThis.document.createElement("button")).innerText="Cancel",o.classList.add("hax-modal-btn"),o.classList.add("cancel"),o.addEventListener("click",(function(e){var t=new CustomEvent("simple-modal-hide",{bubbles:!0,composed:!0,cancelable:!0,detail:{}});globalThis.dispatchEvent(t)})),(r=globalThis.document.createElement("div")).appendChild(n),r.appendChild(o),i.dispatchEvent(new CustomEvent("simple-modal-show",{bubbles:!0,cancelable:!0,composed:!0,detail:{title:"Confirm structure",elements:{content:a,buttons:r},modal:!0,styles:j(j(j({"--simple-modal-titlebar-background":"transparent","--simple-modal-titlebar-color":"black","--simple-modal-width":"90vw","--simple-modal-min-width":"300px","--simple-modal-z-index":"100000000","--simple-modal-height":"90vh","--simple-modal-min-height":"400px","--simple-modal-titlebar-height":"64px"},"--simple-modal-titlebar-color","black"),"--simple-modal-titlebar-height","80px"),"--simple-modal-titlebar-background","orange")}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 21:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:e.next=15;break;case 10:this.querySelector("#createajax").body=s,this.setProcessingVisual(),this.querySelector("#createajax").generateRequest(),n=new CustomEvent("simple-modal-hide",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}),globalThis.dispatchEvent(n);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_handleCreateResponse",value:function(e){this.dispatchEvent(new CustomEvent("haxcms-trigger-update",{bubbles:!0,composed:!0,cancelable:!1,detail:!0})),this.dispatchEvent(new CustomEvent("haxcms-create-node-success",{bubbles:!0,composed:!0,cancelable:!1,detail:{value:!0,originalTarget:this._originalTarget}}))}},{key:"deleteNode",value:function(e){this.querySelector("#deleteajax").body={jwt:this.jwt,site:{name:this.manifest.metadata.site.name},node:{id:e.detail.item.id}},this.setProcessingVisual(),this.querySelector("#deleteajax").generateRequest();var t=new CustomEvent("simple-modal-hide",{bubbles:!0,composed:!0,cancelable:!0,detail:{}});globalThis.dispatchEvent(t)}},{key:"_handleDeleteResponse",value:function(e){var t=this;globalThis.history.replaceState({},null,d.fallbackItemSlug()),globalThis.dispatchEvent(new PopStateEvent("popstate")),setTimeout((function(){t.dispatchEvent(new CustomEvent("haxcms-trigger-update",{bubbles:!0,composed:!0,cancelable:!1,detail:!0}))}),100)}},{key:"_storeReadyToGo",value:function(e){e.detail&&(x.connectionRewrites.appendJwt="jwt")}},{key:"_publishingChanged",value:function(e,t){e?d.toast("Publishing...",0,{hat:"random"}):!e&&t&&d.toast("Publishing...",2e3,{hat:"random"})}},{key:"_manifestChanged",value:function(e){this.activeItem&&e.metadata&&(x.connectionRewrites.appendUploadEndPoint="siteName="+e.metadata.site.name+"&nodeId="+this.activeItem.id)}},{key:"_newActiveItem",value:function(e){this.activeItem=e.detail}},{key:"_activeItemChanged",value:function(e,t){e&&this.manifest&&(x.connectionRewrites.appendUploadEndPoint="siteName="+this.manifest.metadata.site.name+"&nodeId="+e.id)}},{key:"_handleNodeResponse",value:function(e){e.detail.value&&e.detail.value.data&&e.detail.value.data.slug&&this.activeItem.slug!==e.detail.value.data.slug&&(globalThis.history.replaceState({},null,e.detail.value.data.slug),globalThis.dispatchEvent(new PopStateEvent("popstate"))),d.toast("Page saved!",3e3,{hat:"random"}),d.playSound("coin"),this.dispatchEvent(new CustomEvent("haxcms-trigger-update",{bubbles:!0,composed:!0,cancelable:!1,detail:!0})),this.dispatchEvent(new CustomEvent("haxcms-trigger-update-node",{bubbles:!0,composed:!0,cancelable:!1,detail:!0}));var t=d.activeId;d.activeId=null,d.activeId=t}},{key:"_handleOutlineResponse",value:function(e){var t=this;d.toast("Outline saved!",3e3,{hat:"random"}),d.playSound("coin"),setTimeout((function(){t.dispatchEvent(new CustomEvent("haxcms-trigger-update",{bubbles:!0,composed:!0,cancelable:!1,detail:!0}))}),100)}},{key:"_handleManifestResponse",value:function(e){d.toast("Site details saved, reloading to reflect changes!",2e3),d.playSound("coin"),this.dispatchEvent(new CustomEvent("haxcms-trigger-update",{bubbles:!0,composed:!0,cancelable:!1,detail:!0})),setTimeout((function(){globalThis.location.reload()}),2e3)}},{key:"_handleRevertResponse",value:function(e){d.toast("Last save undone",2e3),d.playSound("error"),this.dispatchEvent(new CustomEvent("haxcms-trigger-update",{bubbles:!0,composed:!0,cancelable:!1,detail:!0}))}},{key:"_handleSyncResponse",value:function(e){d.toast("Site synced",2e3,{hat:"random"}),d.playSound("success"),this.dispatchEvent(new CustomEvent("haxcms-trigger-update",{bubbles:!0,composed:!0,cancelable:!1,detail:!0}))}},{key:"_handlePublishResponse",value:function(e){var t=e.detail.response,a=globalThis.document.createElement("span");a.innerHTML='\n \n \n ");var s=new CustomEvent("haxcms-toast-show",{bubbles:!0,composed:!0,cancelable:!0,detail:{text:t.response,duration:1e4,slot:a.cloneNode(!0)}});globalThis.dispatchEvent(s)}},{key:"saveNode",value:(s=v(y().mark((function e(t){var a;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.saveNodePath){e.next=15;break}return e.next=3,x.activeHaxBody.haxToContent();case 3:return a=e.sent,e.t0=this.jwt,e.t1={name:this.manifest.metadata.site.name},e.t2=this.activeItem.id,e.t3=a,e.next=10,x.htmlToHaxElements(a);case 10:e.t4=e.sent,e.t5={id:e.t2,body:e.t3,schema:e.t4},this.querySelector("#nodeupdateajax").body={jwt:e.t0,site:e.t1,node:e.t5},this.setProcessingVisual(),this.querySelector("#nodeupdateajax").generateRequest();case 15:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"saveNodeDetails",value:function(e){this.saveNodePath&&(this.querySelector("#nodeupdateajax").body={jwt:this.jwt,site:{name:this.manifest.metadata.site.name},node:{id:e.detail.id,details:e.detail}},this.setProcessingVisual(),this.querySelector("#nodeupdateajax").generateRequest())}},{key:"saveOutline",value:function(e){this.saveOutlinePath&&(this.querySelector("#outlineupdateajax").body={jwt:this.jwt,site:{name:this.manifest.metadata.site.name},items:e.detail},this.setProcessingVisual(),this.querySelector("#outlineupdateajax").generateRequest())}},{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",d.toast("Processing",5e3,{hat:"construction",slot:e})}},{key:"saveManifest",value:function(e){var t=e.detail;t.manifest.theme&&t.manifest.theme.regions&&(Object.keys(t.manifest.theme.regions).forEach((function(e,a){t.manifest.theme.regions[e]&&t.manifest.theme.regions[e].length>0&&(t.manifest.theme[e]=t.manifest.theme.regions[e].map((function(e){return e.node?e.node:null})))})),delete t.manifest.theme.regions),t.cssVariable&&(t.hexCode=globalThis.SimpleColorsSharedStyles.colors[t.cssVariable.replace("--simple-colors-default-theme-","").replace("-7","")][6]),t.jwt=this.jwt,t.site?t.site.name=this.manifest.metadata.site.name:t.site={name:this.manifest.metadata.site.name},this.saveManifestPath&&(this.querySelector("#manifestupdateajax").body=t,this.setProcessingVisual(),this.querySelector("#manifestupdateajax").generateRequest())}},{key:"_bodyChanged",value:function(e){x.activeHaxBody&&x.activeHaxBody.importContent(e.detail)}},{key:"publishSite",value:function(e){this.publishSitePath&&(this.querySelector("#publishajax").body={jwt:this.jwt,site:{name:this.manifest.metadata.site.name}},this.setProcessingVisual(),this.querySelector("#publishajax").generateRequest())}},{key:"syncSite",value:function(e){this.syncSitePath&&(this.querySelector("#syncajax").body={jwt:this.jwt,site:{name:d.manifest.metadata.site.name}},this.setProcessingVisual(),this.querySelector("#syncajax").generateRequest())}},{key:"revertCommit",value:function(e){this.revertSitePath&&(this.querySelector("#revertajax").body={jwt:this.jwt,site:{name:d.manifest.metadata.site.name}},this.setProcessingVisual(),this.querySelector("#revertajax").generateRequest())}}],[{key:"tag",get:function(){return"haxcms-site-editor"}},{key:"properties",get:function(){return{getUserDataPath:{type:String,attribute:"get-user-data-path"},method:{type:String},jwt:{type:String},saveNodePath:{type:String,attribute:"save-node-path"},createNodePath:{type:String,attribute:"create-node-path"},deleteNodePath:{type:String,attribute:"delete-node-path"},saveManifestPath:{type:String,attribute:"save-manifest-path"},publishSitePath:{type:String,attribute:"publish-site-path"},revertSitePath:{type:String,attribute:"revert-site-path"},appendTarget:{type:Object},appElement:{type:Object},syncSitePath:{type:String,attribute:"sync-site-path"},publishing:{type:Boolean},saveOutlinePath:{type:String,attribute:"save-outline-path"},appStore:{type:Object},editMode:{type:Boolean,reflect:!0,attribute:"edit-mode"},activeItem:{type:Object},manifest:{type:Object},getSiteFieldsPath:{type:String,attribute:"save-site-fields-path"},getFormToken:{type:String,attribute:"get-form-token"}}}}]);var s,n}(c));customElements.define(C.tag,C)}}})); diff --git a/storybook/4ef8a15c.js b/storybook/4ef8a15c.js deleted file mode 100644 index 7634b88ee..000000000 --- a/storybook/4ef8a15c.js +++ /dev/null @@ -1 +0,0 @@ -System.register(["./be7cca87.js","./6f58b968.js"],(function(e){"use strict";var t,n,i,o,a,s,r,d,l,c,p,h,u,m,g,f,v,b,k,y,x,w,A;return{setters:[function(e){t=e._,n=e.a,i=e.i,o=e.b,a=e.N,s=e.k,r=e.as,d=e.a7,l=e.a4,c=e.b6,p=e.f,h=e.g,u=e.b7,m=e.U,g=e.h,f=e.c,v=e.d,b=e.p,k=e.t,y=e.j,x=e.l,w=e.q},function(e){A=e.H}],execute:function(){var T,I,C,L,D,_,P,E,O,M,N,S,U,H={url:new URL("./elements/outline-designer/outline-designer.js",document.baseURI).href},R=e("OutlineDesigner",function(e){function m(){var e;return f(this,m),(e=v(this,m))._blurBlock=!1,e.fidelity="medium",e.haxGizmos=[],e.hideDelete=!1,e.activeItemForActions=null,e.storeTools=!1,e.hideContentOps=!1,e.items=[],e.appReady=!1,e.eventData={},e.activeId=null,e.activePreview=null,e.activePreviewIndex=-1,e.t={selectTarget:"Select target",importContentUnderThisPage:"Import content under this page",importThisContent:"Import this content",thisPage:"this page",newPage:"New page",copyOf:"Copy of"},e.registerLocalization({context:e,basePath:H.url,locales:["es"]}),b((function(){e.activeId=k(a.activeId)})),b((function(){e.appReady=k(a.appReady)})),b((function(){e.haxGizmos=k(A.gizmoList).filter((function(e){return!!(e&&e.meta&&e.meta.outlineDesigner)}))})),e.addEventListener("click",e.resetPopOver.bind(e)),e}return t(m,e),n(m,[{key:"resetPopOver",value:function(){this.activePreview&&(this.shadowRoot.querySelector("simple-popover").setAttribute("hidden","hidden"),this.activePreview=null,this.activePreviewIndex=-1)}},{key:"getSiteItems",value:function(){var e=[{text:this.t.selectTarget,value:null}];if(this.appReady&&this.items.length>0){var t=a.getManifestItems(!0);t.forEach((function(n){for(var i=n,o="- ";i&&null!=i.parent;)i=t.find((function(e){return e.id==i.parent})),i&&(o="--"+o);e.push({text:o+n.title,value:n.id})}))}return e}},{key:"render",value:function(){var e=this;return s(T||(T=o(['
    \n ','\n Add page\n Collapse all\n Expand all\n ','\n
    \n
      \n ','\n
    \n "])),this.storeTools?s(I||(I=o(['\n \n \n ',':\n \n