@skedulo/breeze-ui 1.28.0 → 1.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,47 +2,47 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Rs=window,qc=Rs.ShadowRoot&&(Rs.ShadyCSS===void 0||Rs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hf=Symbol(),Bd=new WeakMap;let Q3=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Hf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(qc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Bd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Bd.set(i,e))}return e}toString(){return this.cssText}};const e7=n=>new Q3(typeof n=="string"?n:n+"",void 0,Hf),t7=(n,e)=>{qc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Rs.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Vd=qc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return e7(i)})(n):n;/**
5
+ */const Rs=window,qc=Rs.ShadowRoot&&(Rs.ShadyCSS===void 0||Rs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rf=Symbol(),Vd=new WeakMap;let i7=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Rf)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(qc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Vd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Vd.set(i,e))}return e}toString(){return this.cssText}};const n7=n=>new i7(typeof n=="string"?n:n+"",void 0,Rf),o7=(n,e)=>{qc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Rs.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Zd=qc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return n7(i)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var q1;const Zs=window,Zd=Zs.trustedTypes,r7=Zd?Zd.emptyScript:"",Wd=Zs.reactiveElementPolyfillSupport,xc={toAttribute(n,e){switch(e){case Boolean:n=n?r7:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Rf=(n,e)=>e!==n&&(e==e||n==n),K1={attribute:!0,type:String,converter:xc,reflect:!1,hasChanged:Rf},zc="finalized";let la=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=K1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||K1}static finalize(){if(this.hasOwnProperty(zc))return!1;this[zc]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Vd(l))}else e!==void 0&&i.push(Vd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return t7(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=K1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:xc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:xc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Rf)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};la[zc]=!0,la.elementProperties=new Map,la.elementStyles=[],la.shadowRootOptions={mode:"open"},Wd==null||Wd({ReactiveElement:la}),((q1=Zs.reactiveElementVersions)!==null&&q1!==void 0?q1:Zs.reactiveElementVersions=[]).push("1.6.2");/**
9
+ */var q1;const Zs=window,Wd=Zs.trustedTypes,a7=Wd?Wd.emptyScript:"",Ud=Zs.reactiveElementPolyfillSupport,xc={toAttribute(n,e){switch(e){case Boolean:n=n?a7:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Ff=(n,e)=>e!==n&&(e==e||n==n),K1={attribute:!0,type:String,converter:xc,reflect:!1,hasChanged:Ff},zc="finalized";let ca=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=K1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||K1}static finalize(){if(this.hasOwnProperty(zc))return!1;this[zc]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Zd(l))}else e!==void 0&&i.push(Zd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return o7(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=K1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:xc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:xc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Ff)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};ca[zc]=!0,ca.elementProperties=new Map,ca.elementStyles=[],ca.shadowRootOptions={mode:"open"},Ud==null||Ud({ReactiveElement:ca}),((q1=Zs.reactiveElementVersions)!==null&&q1!==void 0?q1:Zs.reactiveElementVersions=[]).push("1.6.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var Y1;const Ws=window,oo=Ws.trustedTypes,Ud=oo?oo.createPolicy("lit-html",{createHTML:n=>n}):void 0,Us="$lit$",ci=`lit$${(Math.random()+"").slice(9)}$`,Kc="?"+ci,i7=`<${Kc}>`,vn=document,js=()=>vn.createComment(""),za=n=>n===null||typeof n!="object"&&typeof n!="function",Ff=Array.isArray,Bf=n=>Ff(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",X1=`[
14
- \f\r]`,ca=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jd=/-->/g,Gd=/>/g,nn=RegExp(`>|${X1}(?:([^\\s"'>=/]+)(${X1}*=${X1}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),qd=/'/g,Kd=/"/g,Vf=/^(?:script|style|textarea|title)$/i,di=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),Yd=new WeakMap,fn=vn.createTreeWalker(vn,129,null,!1),Zf=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=ca;for(let b=0;b<i;b++){const m=n[b];let M,L,T=-1,$=0;for(;$<m.length&&(u.lastIndex=$,L=u.exec(m),L!==null);)$=u.lastIndex,u===ca?L[1]==="!--"?u=jd:L[1]!==void 0?u=Gd:L[2]!==void 0?(Vf.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=nn):L[3]!==void 0&&(u=nn):u===nn?L[0]===">"?(u=l!=null?l:ca,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?nn:L[3]==='"'?Kd:qd):u===Kd||u===qd?u=nn:u===jd||u===Gd?u=ca:(u=nn,l=void 0);const H=u===nn&&n[b+1].startsWith("/>")?" ":"";d+=u===ca?m+i7:T>=0?(o.push(M),m.slice(0,T)+Us+m.slice(T)+ci+H):m+ci+(T===-2?(o.push(void 0),b):H)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Ud!==void 0?Ud.createHTML(v):v,o]};let Lc=class Wf{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,b=this.parts,[m,M]=Zf(e,i);if(this.el=Wf.createElement(m,o),fn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=fn.nextNode())!==null&&b.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(Us)||T.startsWith(ci)){const $=M[u++];if(L.push(T),$!==void 0){const H=l.getAttribute($.toLowerCase()+Us).split(ci),Y=/([.?@])?(.*)/.exec($);b.push({type:1,index:d,name:Y[2],strings:H,ctor:Y[1]==="."?Gf:Y[1]==="?"?qf:Y[1]==="@"?Kf:Oa})}else b.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(Vf.test(l.tagName)){const L=l.textContent.split(ci),T=L.length-1;if(T>0){l.textContent=oo?oo.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],js()),fn.nextNode(),b.push({type:2,index:++d});l.append(L[T],js())}}}else if(l.nodeType===8)if(l.data===Kc)b.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(ci,L+1))!==-1;)b.push({type:7,index:d}),L+=ci.length-1}d++}}static createElement(e,i){const o=vn.createElement("template");return o.innerHTML=e,o}};function bn(n,e,i=n,o){var l,d,u,v;if(e===di)return e;let b=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const m=za(e)?void 0:e._$litDirective$;return(b==null?void 0:b.constructor)!==m&&((d=b==null?void 0:b._$AO)===null||d===void 0||d.call(b,!1),m===void 0?b=void 0:(b=new m(n),b._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=b:i._$Cl=b),b!==void 0&&(e=bn(n,b._$AS(n,e.values),b,o)),e}let Uf=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:vn).importNode(o,!0);fn.currentNode=d;let u=fn.nextNode(),v=0,b=0,m=l[0];for(;m!==void 0;){if(v===m.index){let M;m.type===2?M=new Yc(u,u.nextSibling,this,e):m.type===1?M=new m.ctor(u,m.name,m.strings,this,e):m.type===6&&(M=new Yf(u,this,e)),this._$AV.push(M),m=l[++b]}v!==(m==null?void 0:m.index)&&(u=fn.nextNode(),v++)}return fn.currentNode=vn,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}},Yc=class jf{constructor(e,i,o,l){var d;this.type=2,this._$AH=vt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=bn(this,e,i),za(e)?e===vt||e==null||e===""?(this._$AH!==vt&&this._$AR(),this._$AH=vt):e!==this._$AH&&e!==di&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Bf(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==vt&&za(this._$AH)?this._$AA.nextSibling.data=e:this.$(vn.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=Lc.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new Uf(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=Yd.get(e.strings);return i===void 0&&Yd.set(e.strings,i=new Lc(e)),i}T(e){Ff(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new jf(this.k(js()),this.k(js()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}},Oa=class{constructor(e,i,o,l,d){this.type=1,this._$AH=vt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=vt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=bn(this,e,i,0),u=!za(e)||e!==this._$AH&&e!==di,u&&(this._$AH=e);else{const v=e;let b,m;for(e=d[0],b=0;b<d.length-1;b++)m=bn(this,v[o+b],i,b),m===di&&(m=this._$AH[b]),u||(u=!za(m)||m!==this._$AH[b]),m===vt?e=vt:e!==vt&&(e+=(m!=null?m:"")+d[b+1]),this._$AH[b]=m}u&&!l&&this.j(e)}j(e){e===vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},Gf=class extends Oa{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===vt?void 0:e}};const n7=oo?oo.emptyScript:"";let qf=class extends Oa{constructor(){super(...arguments),this.type=4}j(e){e&&e!==vt?this.element.setAttribute(this.name,n7):this.element.removeAttribute(this.name)}},Kf=class extends Oa{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=bn(this,e,i,0))!==null&&o!==void 0?o:vt)===di)return;const l=this._$AH,d=e===vt&&l!==vt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==vt&&(l===vt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},Yf=class{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){bn(this,e)}};const o7={O:Us,P:ci,A:Kc,C:1,M:Zf,L:Uf,D:Bf,R:bn,I:Yc,V:Oa,H:qf,N:Kf,U:Gf,F:Yf},Xd=Ws.litHtmlPolyfillSupport;Xd==null||Xd(Lc,Yc),((Y1=Ws.litHtmlVersions)!==null&&Y1!==void 0?Y1:Ws.litHtmlVersions=[]).push("2.7.4");/**
13
+ */var Y1;const Ws=window,oo=Ws.trustedTypes,jd=oo?oo.createPolicy("lit-html",{createHTML:n=>n}):void 0,Us="$lit$",ci=`lit$${(Math.random()+"").slice(9)}$`,Kc="?"+ci,s7=`<${Kc}>`,vn=document,js=()=>vn.createComment(""),La=n=>n===null||typeof n!="object"&&typeof n!="function",Bf=Array.isArray,Vf=n=>Bf(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",X1=`[
14
+ \f\r]`,ua=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Gd=/-->/g,qd=/>/g,nn=RegExp(`>|${X1}(?:([^\\s"'>=/]+)(${X1}*=${X1}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Kd=/'/g,Yd=/"/g,Zf=/^(?:script|style|textarea|title)$/i,di=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),Xd=new WeakMap,fn=vn.createTreeWalker(vn,129,null,!1),Wf=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=ua;for(let b=0;b<i;b++){const m=n[b];let M,L,T=-1,E=0;for(;E<m.length&&(u.lastIndex=E,L=u.exec(m),L!==null);)E=u.lastIndex,u===ua?L[1]==="!--"?u=Gd:L[1]!==void 0?u=qd:L[2]!==void 0?(Zf.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=nn):L[3]!==void 0&&(u=nn):u===nn?L[0]===">"?(u=l!=null?l:ua,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?nn:L[3]==='"'?Yd:Kd):u===Yd||u===Kd?u=nn:u===Gd||u===qd?u=ua:(u=nn,l=void 0);const H=u===nn&&n[b+1].startsWith("/>")?" ":"";d+=u===ua?m+s7:T>=0?(o.push(M),m.slice(0,T)+Us+m.slice(T)+ci+H):m+ci+(T===-2?(o.push(void 0),b):H)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[jd!==void 0?jd.createHTML(v):v,o]};let Lc=class Uf{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,b=this.parts,[m,M]=Wf(e,i);if(this.el=Uf.createElement(m,o),fn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=fn.nextNode())!==null&&b.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(Us)||T.startsWith(ci)){const E=M[u++];if(L.push(T),E!==void 0){const H=l.getAttribute(E.toLowerCase()+Us).split(ci),Y=/([.?@])?(.*)/.exec(E);b.push({type:1,index:d,name:Y[2],strings:H,ctor:Y[1]==="."?qf:Y[1]==="?"?Kf:Y[1]==="@"?Yf:$a})}else b.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(Zf.test(l.tagName)){const L=l.textContent.split(ci),T=L.length-1;if(T>0){l.textContent=oo?oo.emptyScript:"";for(let E=0;E<T;E++)l.append(L[E],js()),fn.nextNode(),b.push({type:2,index:++d});l.append(L[T],js())}}}else if(l.nodeType===8)if(l.data===Kc)b.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(ci,L+1))!==-1;)b.push({type:7,index:d}),L+=ci.length-1}d++}}static createElement(e,i){const o=vn.createElement("template");return o.innerHTML=e,o}};function bn(n,e,i=n,o){var l,d,u,v;if(e===di)return e;let b=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const m=La(e)?void 0:e._$litDirective$;return(b==null?void 0:b.constructor)!==m&&((d=b==null?void 0:b._$AO)===null||d===void 0||d.call(b,!1),m===void 0?b=void 0:(b=new m(n),b._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=b:i._$Cl=b),b!==void 0&&(e=bn(n,b._$AS(n,e.values),b,o)),e}let jf=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:vn).importNode(o,!0);fn.currentNode=d;let u=fn.nextNode(),v=0,b=0,m=l[0];for(;m!==void 0;){if(v===m.index){let M;m.type===2?M=new Yc(u,u.nextSibling,this,e):m.type===1?M=new m.ctor(u,m.name,m.strings,this,e):m.type===6&&(M=new Xf(u,this,e)),this._$AV.push(M),m=l[++b]}v!==(m==null?void 0:m.index)&&(u=fn.nextNode(),v++)}return fn.currentNode=vn,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}},Yc=class Gf{constructor(e,i,o,l){var d;this.type=2,this._$AH=vt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=bn(this,e,i),La(e)?e===vt||e==null||e===""?(this._$AH!==vt&&this._$AR(),this._$AH=vt):e!==this._$AH&&e!==di&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Vf(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==vt&&La(this._$AH)?this._$AA.nextSibling.data=e:this.$(vn.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=Lc.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new jf(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=Xd.get(e.strings);return i===void 0&&Xd.set(e.strings,i=new Lc(e)),i}T(e){Bf(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new Gf(this.k(js()),this.k(js()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}},$a=class{constructor(e,i,o,l,d){this.type=1,this._$AH=vt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=vt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=bn(this,e,i,0),u=!La(e)||e!==this._$AH&&e!==di,u&&(this._$AH=e);else{const v=e;let b,m;for(e=d[0],b=0;b<d.length-1;b++)m=bn(this,v[o+b],i,b),m===di&&(m=this._$AH[b]),u||(u=!La(m)||m!==this._$AH[b]),m===vt?e=vt:e!==vt&&(e+=(m!=null?m:"")+d[b+1]),this._$AH[b]=m}u&&!l&&this.j(e)}j(e){e===vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},qf=class extends $a{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===vt?void 0:e}};const l7=oo?oo.emptyScript:"";let Kf=class extends $a{constructor(){super(...arguments),this.type=4}j(e){e&&e!==vt?this.element.setAttribute(this.name,l7):this.element.removeAttribute(this.name)}},Yf=class extends $a{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=bn(this,e,i,0))!==null&&o!==void 0?o:vt)===di)return;const l=this._$AH,d=e===vt&&l!==vt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==vt&&(l===vt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},Xf=class{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){bn(this,e)}};const c7={O:Us,P:ci,A:Kc,C:1,M:Wf,L:jf,D:Vf,R:bn,I:Yc,V:$a,H:Kf,N:Yf,U:qf,F:Xf},Jd=Ws.litHtmlPolyfillSupport;Jd==null||Jd(Lc,Yc),((Y1=Ws.litHtmlVersions)!==null&&Y1!==void 0?Y1:Ws.litHtmlVersions=[]).push("2.7.4");/**
16
16
  * @license
17
17
  * Copyright 2019 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */const Fs=window,Xc=Fs.ShadowRoot&&(Fs.ShadyCSS===void 0||Fs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jc=Symbol(),Jd=new WeakMap;let Xf=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Jc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Xc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Jd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Jd.set(i,e))}return e}toString(){return this.cssText}};const qr=n=>new Xf(typeof n=="string"?n:n+"",void 0,Jc),J=(n,...e)=>{const i=n.length===1?n[0]:e.reduce((o,l,d)=>o+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(l)+n[d+1],n[0]);return new Xf(i,n,Jc)},a7=(n,e)=>{Xc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Fs.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},Qd=Xc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return qr(i)})(n):n;/**
19
+ */const Fs=window,Xc=Fs.ShadowRoot&&(Fs.ShadyCSS===void 0||Fs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Jc=Symbol(),Qd=new WeakMap;let Jf=class{constructor(e,i,o){if(this._$cssResult$=!0,o!==Jc)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(Xc&&e===void 0){const o=i!==void 0&&i.length===1;o&&(e=Qd.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Qd.set(i,e))}return e}toString(){return this.cssText}};const qr=n=>new Jf(typeof n=="string"?n:n+"",void 0,Jc),X=(n,...e)=>{const i=n.length===1?n[0]:e.reduce((o,l,d)=>o+(u=>{if(u._$cssResult$===!0)return u.cssText;if(typeof u=="number")return u;throw Error("Value passed to 'css' function must be a 'css' function result: "+u+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(l)+n[d+1],n[0]);return new Jf(i,n,Jc)},u7=(n,e)=>{Xc?n.adoptedStyleSheets=e.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):e.forEach(i=>{const o=document.createElement("style"),l=Fs.litNonce;l!==void 0&&o.setAttribute("nonce",l),o.textContent=i.cssText,n.appendChild(o)})},eh=Xc?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const o of e.cssRules)i+=o.cssText;return qr(i)})(n):n;/**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */var J1;const Gs=window,eh=Gs.trustedTypes,s7=eh?eh.emptyScript:"",th=Gs.reactiveElementPolyfillSupport,Sc={toAttribute(n,e){switch(e){case Boolean:n=n?s7:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Jf=(n,e)=>e!==n&&(e==e||n==n),Q1={attribute:!0,type:String,converter:Sc,reflect:!1,hasChanged:Jf};let to=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=Q1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Q1}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(Qd(l))}else e!==void 0&&i.push(Qd(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return a7(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=Q1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:Sc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:Sc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Jf)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};to.finalized=!0,to.elementProperties=new Map,to.elementStyles=[],to.shadowRootOptions={mode:"open"},th==null||th({ReactiveElement:to}),((J1=Gs.reactiveElementVersions)!==null&&J1!==void 0?J1:Gs.reactiveElementVersions=[]).push("1.4.2");/**
23
+ */var J1;const Gs=window,th=Gs.trustedTypes,d7=th?th.emptyScript:"",rh=Gs.reactiveElementPolyfillSupport,Sc={toAttribute(n,e){switch(e){case Boolean:n=n?d7:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},Qf=(n,e)=>e!==n&&(e==e||n==n),Q1={attribute:!0,type:String,converter:Sc,reflect:!1,hasChanged:Qf};let to=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((i,o)=>{const l=this._$Ep(o,i);l!==void 0&&(this._$Ev.set(l,o),e.push(l))}),e}static createProperty(e,i=Q1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(e,i),!i.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,l=this.getPropertyDescriptor(e,o,i);l!==void 0&&Object.defineProperty(this.prototype,e,l)}}static getPropertyDescriptor(e,i,o){return{get(){return this[i]},set(l){const d=this[e];this[i]=l,this.requestUpdate(e,d,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Q1}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const i=this.properties,o=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(const l of o)this.createProperty(l,i[l])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const l of o)i.unshift(eh(l))}else e!==void 0&&i.push(eh(e));return i}static _$Ep(e,i){const o=i.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(i=>i(this))}addController(e){var i,o;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var e;const i=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return u7(i,this.constructor.elementStyles),i}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostConnected)===null||o===void 0?void 0:o.call(i)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var o;return(o=i.hostDisconnected)===null||o===void 0?void 0:o.call(i)})}attributeChangedCallback(e,i,o){this._$AK(e,o)}_$EO(e,i,o=Q1){var l;const d=this.constructor._$Ep(e,o);if(d!==void 0&&o.reflect===!0){const u=(((l=o.converter)===null||l===void 0?void 0:l.toAttribute)!==void 0?o.converter:Sc).toAttribute(i,o.type);this._$El=e,u==null?this.removeAttribute(d):this.setAttribute(d,u),this._$El=null}}_$AK(e,i){var o;const l=this.constructor,d=l._$Ev.get(e);if(d!==void 0&&this._$El!==d){const u=l.getPropertyOptions(d),v=typeof u.converter=="function"?{fromAttribute:u.converter}:((o=u.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?u.converter:Sc;this._$El=d,this[d]=v.fromAttribute(i,u.type),this._$El=null}}requestUpdate(e,i,o){let l=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Qf)(this[e],i)?(this._$AL.has(e)||this._$AL.set(e,i),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):l=!1),!this.isUpdatePending&&l&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((l,d)=>this[d]=l),this._$Ei=void 0);let i=!1;const o=this._$AL;try{i=this.shouldUpdate(o),i?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(l=>{var d;return(d=l.hostUpdate)===null||d===void 0?void 0:d.call(l)}),this.update(o)):this._$Ek()}catch(l){throw i=!1,this._$Ek(),l}i&&this._$AE(o)}willUpdate(e){}_$AE(e){var i;(i=this._$ES)===null||i===void 0||i.forEach(o=>{var l;return(l=o.hostUpdated)===null||l===void 0?void 0:l.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((i,o)=>this._$EO(o,this[o],i)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};to.finalized=!0,to.elementProperties=new Map,to.elementStyles=[],to.shadowRootOptions={mode:"open"},rh==null||rh({ReactiveElement:to}),((J1=Gs.reactiveElementVersions)!==null&&J1!==void 0?J1:Gs.reactiveElementVersions=[]).push("1.4.2");/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */var ec;const qs=window,ao=qs.trustedTypes,rh=ao?ao.createPolicy("lit-html",{createHTML:n=>n}):void 0,Mc="$lit$",Ai=`lit$${(Math.random()+"").slice(9)}$`,Qf="?"+Ai,l7=`<${Qf}>`,mn=document,La=()=>mn.createComment(""),Sa=n=>n===null||typeof n!="object"&&typeof n!="function",e2=Array.isArray,c7=n=>e2(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",tc=`[
28
- \f\r]`,ua=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ih=/-->/g,nh=/>/g,on=RegExp(`>|${tc}(?:([^\\s"'>=/]+)(${tc}*=${tc}*(?:[^
29
- \f\r"'\`<>=]|("|')|))|$)`,"g"),oh=/'/g,ah=/"/g,t2=/^(?:script|style|textarea|title)$/i,r2=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),N=r2(1),F=r2(2),so=Symbol.for("lit-noChange"),Mt=Symbol.for("lit-nothing"),sh=new WeakMap,pn=mn.createTreeWalker(mn,129,null,!1),u7=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=ua;for(let b=0;b<i;b++){const m=n[b];let M,L,T=-1,$=0;for(;$<m.length&&(u.lastIndex=$,L=u.exec(m),L!==null);)$=u.lastIndex,u===ua?L[1]==="!--"?u=ih:L[1]!==void 0?u=nh:L[2]!==void 0?(t2.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=on):L[3]!==void 0&&(u=on):u===on?L[0]===">"?(u=l!=null?l:ua,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?on:L[3]==='"'?ah:oh):u===ah||u===oh?u=on:u===ih||u===nh?u=ua:(u=on,l=void 0);const H=u===on&&n[b+1].startsWith("/>")?" ":"";d+=u===ua?m+l7:T>=0?(o.push(M),m.slice(0,T)+Mc+m.slice(T)+Ai+H):m+Ai+(T===-2?(o.push(void 0),b):H)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[rh!==void 0?rh.createHTML(v):v,o]};class Ma{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,b=this.parts,[m,M]=u7(e,i);if(this.el=Ma.createElement(m,o),pn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=pn.nextNode())!==null&&b.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(Mc)||T.startsWith(Ai)){const $=M[u++];if(L.push(T),$!==void 0){const H=l.getAttribute($.toLowerCase()+Mc).split(Ai),Y=/([.?@])?(.*)/.exec($);b.push({type:1,index:d,name:Y[2],strings:H,ctor:Y[1]==="."?h7:Y[1]==="?"?p7:Y[1]==="@"?g7:Cl})}else b.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(t2.test(l.tagName)){const L=l.textContent.split(Ai),T=L.length-1;if(T>0){l.textContent=ao?ao.emptyScript:"";for(let $=0;$<T;$++)l.append(L[$],La()),pn.nextNode(),b.push({type:2,index:++d});l.append(L[T],La())}}}else if(l.nodeType===8)if(l.data===Qf)b.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(Ai,L+1))!==-1;)b.push({type:7,index:d}),L+=Ai.length-1}d++}}static createElement(e,i){const o=mn.createElement("template");return o.innerHTML=e,o}}function lo(n,e,i=n,o){var l,d,u,v;if(e===so)return e;let b=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const m=Sa(e)?void 0:e._$litDirective$;return(b==null?void 0:b.constructor)!==m&&((d=b==null?void 0:b._$AO)===null||d===void 0||d.call(b,!1),m===void 0?b=void 0:(b=new m(n),b._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=b:i._$Cl=b),b!==void 0&&(e=lo(n,b._$AS(n,e.values),b,o)),e}class d7{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:mn).importNode(o,!0);pn.currentNode=d;let u=pn.nextNode(),v=0,b=0,m=l[0];for(;m!==void 0;){if(v===m.index){let M;m.type===2?M=new $a(u,u.nextSibling,this,e):m.type===1?M=new m.ctor(u,m.name,m.strings,this,e):m.type===6&&(M=new v7(u,this,e)),this._$AV.push(M),m=l[++b]}v!==(m==null?void 0:m.index)&&(u=pn.nextNode(),v++)}return pn.currentNode=mn,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}}class $a{constructor(e,i,o,l){var d;this.type=2,this._$AH=Mt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=lo(this,e,i),Sa(e)?e===Mt||e==null||e===""?(this._$AH!==Mt&&this._$AR(),this._$AH=Mt):e!==this._$AH&&e!==so&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):c7(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Mt&&Sa(this._$AH)?this._$AA.nextSibling.data=e:this.$(mn.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=Ma.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new d7(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=sh.get(e.strings);return i===void 0&&sh.set(e.strings,i=new Ma(e)),i}T(e){e2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new $a(this.k(La()),this.k(La()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}}class Cl{constructor(e,i,o,l,d){this.type=1,this._$AH=Mt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Mt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=lo(this,e,i,0),u=!Sa(e)||e!==this._$AH&&e!==so,u&&(this._$AH=e);else{const v=e;let b,m;for(e=d[0],b=0;b<d.length-1;b++)m=lo(this,v[o+b],i,b),m===so&&(m=this._$AH[b]),u||(u=!Sa(m)||m!==this._$AH[b]),m===Mt?e=Mt:e!==Mt&&(e+=(m!=null?m:"")+d[b+1]),this._$AH[b]=m}u&&!l&&this.j(e)}j(e){e===Mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class h7 extends Cl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Mt?void 0:e}}const f7=ao?ao.emptyScript:"";class p7 extends Cl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Mt?this.element.setAttribute(this.name,f7):this.element.removeAttribute(this.name)}}class g7 extends Cl{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=lo(this,e,i,0))!==null&&o!==void 0?o:Mt)===so)return;const l=this._$AH,d=e===Mt&&l!==Mt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==Mt&&(l===Mt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class v7{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){lo(this,e)}}const lh=qs.litHtmlPolyfillSupport;lh==null||lh(Ma,$a),((ec=qs.litHtmlVersions)!==null&&ec!==void 0?ec:qs.litHtmlVersions=[]).push("2.7.4");const i2=(n,e,i)=>{var o,l;const d=(o=i==null?void 0:i.renderBefore)!==null&&o!==void 0?o:e;let u=d._$litPart$;if(u===void 0){const v=(l=i==null?void 0:i.renderBefore)!==null&&l!==void 0?l:null;d._$litPart$=u=new $a(e.insertBefore(La(),v),v,void 0,i!=null?i:{})}return u._$AI(n),u};/**
27
+ */var ec;const qs=window,ao=qs.trustedTypes,ih=ao?ao.createPolicy("lit-html",{createHTML:n=>n}):void 0,Mc="$lit$",Ii=`lit$${(Math.random()+"").slice(9)}$`,e2="?"+Ii,h7=`<${e2}>`,mn=document,Sa=()=>mn.createComment(""),Ma=n=>n===null||typeof n!="object"&&typeof n!="function",t2=Array.isArray,f7=n=>t2(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",tc=`[
28
+ \f\r]`,da=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,nh=/-->/g,oh=/>/g,on=RegExp(`>|${tc}(?:([^\\s"'>=/]+)(${tc}*=${tc}*(?:[^
29
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ah=/'/g,sh=/"/g,r2=/^(?:script|style|textarea|title)$/i,i2=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),N=i2(1),F=i2(2),so=Symbol.for("lit-noChange"),Mt=Symbol.for("lit-nothing"),lh=new WeakMap,pn=mn.createTreeWalker(mn,129,null,!1),p7=(n,e)=>{const i=n.length-1,o=[];let l,d=e===2?"<svg>":"",u=da;for(let b=0;b<i;b++){const m=n[b];let M,L,T=-1,E=0;for(;E<m.length&&(u.lastIndex=E,L=u.exec(m),L!==null);)E=u.lastIndex,u===da?L[1]==="!--"?u=nh:L[1]!==void 0?u=oh:L[2]!==void 0?(r2.test(L[2])&&(l=RegExp("</"+L[2],"g")),u=on):L[3]!==void 0&&(u=on):u===on?L[0]===">"?(u=l!=null?l:da,T=-1):L[1]===void 0?T=-2:(T=u.lastIndex-L[2].length,M=L[1],u=L[3]===void 0?on:L[3]==='"'?sh:ah):u===sh||u===ah?u=on:u===nh||u===oh?u=da:(u=on,l=void 0);const H=u===on&&n[b+1].startsWith("/>")?" ":"";d+=u===da?m+h7:T>=0?(o.push(M),m.slice(0,T)+Mc+m.slice(T)+Ii+H):m+Ii+(T===-2?(o.push(void 0),b):H)}const v=d+(n[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ih!==void 0?ih.createHTML(v):v,o]};class Ta{constructor({strings:e,_$litType$:i},o){let l;this.parts=[];let d=0,u=0;const v=e.length-1,b=this.parts,[m,M]=p7(e,i);if(this.el=Ta.createElement(m,o),pn.currentNode=this.el.content,i===2){const L=this.el.content,T=L.firstChild;T.remove(),L.append(...T.childNodes)}for(;(l=pn.nextNode())!==null&&b.length<v;){if(l.nodeType===1){if(l.hasAttributes()){const L=[];for(const T of l.getAttributeNames())if(T.endsWith(Mc)||T.startsWith(Ii)){const E=M[u++];if(L.push(T),E!==void 0){const H=l.getAttribute(E.toLowerCase()+Mc).split(Ii),Y=/([.?@])?(.*)/.exec(E);b.push({type:1,index:d,name:Y[2],strings:H,ctor:Y[1]==="."?v7:Y[1]==="?"?m7:Y[1]==="@"?y7:Cl})}else b.push({type:6,index:d})}for(const T of L)l.removeAttribute(T)}if(r2.test(l.tagName)){const L=l.textContent.split(Ii),T=L.length-1;if(T>0){l.textContent=ao?ao.emptyScript:"";for(let E=0;E<T;E++)l.append(L[E],Sa()),pn.nextNode(),b.push({type:2,index:++d});l.append(L[T],Sa())}}}else if(l.nodeType===8)if(l.data===e2)b.push({type:2,index:d});else{let L=-1;for(;(L=l.data.indexOf(Ii,L+1))!==-1;)b.push({type:7,index:d}),L+=Ii.length-1}d++}}static createElement(e,i){const o=mn.createElement("template");return o.innerHTML=e,o}}function lo(n,e,i=n,o){var l,d,u,v;if(e===so)return e;let b=o!==void 0?(l=i._$Co)===null||l===void 0?void 0:l[o]:i._$Cl;const m=Ma(e)?void 0:e._$litDirective$;return(b==null?void 0:b.constructor)!==m&&((d=b==null?void 0:b._$AO)===null||d===void 0||d.call(b,!1),m===void 0?b=void 0:(b=new m(n),b._$AT(n,i,o)),o!==void 0?((u=(v=i)._$Co)!==null&&u!==void 0?u:v._$Co=[])[o]=b:i._$Cl=b),b!==void 0&&(e=lo(n,b._$AS(n,e.values),b,o)),e}class g7{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var i;const{el:{content:o},parts:l}=this._$AD,d=((i=e==null?void 0:e.creationScope)!==null&&i!==void 0?i:mn).importNode(o,!0);pn.currentNode=d;let u=pn.nextNode(),v=0,b=0,m=l[0];for(;m!==void 0;){if(v===m.index){let M;m.type===2?M=new Ea(u,u.nextSibling,this,e):m.type===1?M=new m.ctor(u,m.name,m.strings,this,e):m.type===6&&(M=new C7(u,this,e)),this._$AV.push(M),m=l[++b]}v!==(m==null?void 0:m.index)&&(u=pn.nextNode(),v++)}return pn.currentNode=mn,d}v(e){let i=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,i),i+=o.strings.length-2):o._$AI(e[i])),i++}}class Ea{constructor(e,i,o,l){var d;this.type=2,this._$AH=Mt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=o,this.options=l,this._$Cp=(d=l==null?void 0:l.isConnected)===null||d===void 0||d}get _$AU(){var e,i;return(i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=lo(this,e,i),Ma(e)?e===Mt||e==null||e===""?(this._$AH!==Mt&&this._$AR(),this._$AH=Mt):e!==this._$AH&&e!==so&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):f7(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==Mt&&Ma(this._$AH)?this._$AA.nextSibling.data=e:this.$(mn.createTextNode(e)),this._$AH=e}g(e){var i;const{values:o,_$litType$:l}=e,d=typeof l=="number"?this._$AC(e):(l.el===void 0&&(l.el=Ta.createElement(l.h,this.options)),l);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===d)this._$AH.v(o);else{const u=new g7(d,this),v=u.u(this.options);u.v(o),this.$(v),this._$AH=u}}_$AC(e){let i=lh.get(e.strings);return i===void 0&&lh.set(e.strings,i=new Ta(e)),i}T(e){t2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,l=0;for(const d of e)l===i.length?i.push(o=new Ea(this.k(Sa()),this.k(Sa()),this,this.options)):o=i[l],o._$AI(d),l++;l<i.length&&(this._$AR(o&&o._$AB.nextSibling,l),i.length=l)}_$AR(e=this._$AA.nextSibling,i){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,i);e&&e!==this._$AB;){const l=e.nextSibling;e.remove(),e=l}}setConnected(e){var i;this._$AM===void 0&&(this._$Cp=e,(i=this._$AP)===null||i===void 0||i.call(this,e))}}class Cl{constructor(e,i,o,l,d){this.type=1,this._$AH=Mt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=l,this.options=d,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Mt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,o,l){const d=this.strings;let u=!1;if(d===void 0)e=lo(this,e,i,0),u=!Ma(e)||e!==this._$AH&&e!==so,u&&(this._$AH=e);else{const v=e;let b,m;for(e=d[0],b=0;b<d.length-1;b++)m=lo(this,v[o+b],i,b),m===so&&(m=this._$AH[b]),u||(u=!Ma(m)||m!==this._$AH[b]),m===Mt?e=Mt:e!==Mt&&(e+=(m!=null?m:"")+d[b+1]),this._$AH[b]=m}u&&!l&&this.j(e)}j(e){e===Mt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class v7 extends Cl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Mt?void 0:e}}const b7=ao?ao.emptyScript:"";class m7 extends Cl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Mt?this.element.setAttribute(this.name,b7):this.element.removeAttribute(this.name)}}class y7 extends Cl{constructor(e,i,o,l,d){super(e,i,o,l,d),this.type=5}_$AI(e,i=this){var o;if((e=(o=lo(this,e,i,0))!==null&&o!==void 0?o:Mt)===so)return;const l=this._$AH,d=e===Mt&&l!==Mt||e.capture!==l.capture||e.once!==l.once||e.passive!==l.passive,u=e!==Mt&&(l===Mt||d);d&&this.element.removeEventListener(this.name,this,l),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var i,o;typeof this._$AH=="function"?this._$AH.call((o=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class C7{constructor(e,i,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){lo(this,e)}}const ch=qs.litHtmlPolyfillSupport;ch==null||ch(Ta,Ea),((ec=qs.litHtmlVersions)!==null&&ec!==void 0?ec:qs.litHtmlVersions=[]).push("2.7.4");const n2=(n,e,i)=>{var o,l;const d=(o=i==null?void 0:i.renderBefore)!==null&&o!==void 0?o:e;let u=d._$litPart$;if(u===void 0){const v=(l=i==null?void 0:i.renderBefore)!==null&&l!==void 0?l:null;d._$litPart$=u=new Ea(e.insertBefore(Sa(),v),v,void 0,i!=null?i:{})}return u._$AI(n),u};/**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */var rc,ic;let we=class extends to{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const o=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=o.firstChild),o}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=i2(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return so}};we.finalized=!0,we._$litElement$=!0,(rc=globalThis.litElementHydrateSupport)===null||rc===void 0||rc.call(globalThis,{LitElement:we});const ch=globalThis.litElementPolyfillSupport;ch==null||ch({LitElement:we});((ic=globalThis.litElementVersions)!==null&&ic!==void 0?ic:globalThis.litElementVersions=[]).push("3.3.2");/**
33
+ */var rc,ic;let Ce=class extends to{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const o=super.createRenderRoot();return(e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=o.firstChild),o}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=n2(i,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return so}};Ce.finalized=!0,Ce._$litElement$=!0,(rc=globalThis.litElementHydrateSupport)===null||rc===void 0||rc.call(globalThis,{LitElement:Ce});const uh=globalThis.litElementPolyfillSupport;uh==null||uh({LitElement:Ce});((ic=globalThis.litElementVersions)!==null&&ic!==void 0?ic:globalThis.litElementVersions=[]).push("3.3.2");/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */const Ea=n=>e=>typeof e=="function"?((i,o)=>(customElements.define(i,o),o))(n,e):((i,o)=>{const{kind:l,elements:d}=o;return{kind:l,elements:d,finisher(u){customElements.define(i,u)}}})(n,e);/**
37
+ */const _a=n=>e=>typeof e=="function"?((i,o)=>(customElements.define(i,o),o))(n,e):((i,o)=>{const{kind:l,elements:d}=o;return{kind:l,elements:d,finisher(u){customElements.define(i,u)}}})(n,e);/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const b7=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,n)}},m7=(n,e,i)=>{e.constructor.createProperty(i,n)};function E(n){return(e,i)=>i!==void 0?m7(n,e,i):b7(n,e)}/**
41
+ */const w7=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,n)}},x7=(n,e,i)=>{e.constructor.createProperty(i,n)};function $(n){return(e,i)=>i!==void 0?x7(n,e,i):w7(n,e)}/**
42
42
  * @license
43
43
  * Copyright 2017 Google LLC
44
44
  * SPDX-License-Identifier: BSD-3-Clause
45
- */function Ce(n){return E({...n,state:!0})}/**
45
+ */function we(n){return $({...n,state:!0})}/**
46
46
  * @license
47
47
  * Copyright 2017 Google LLC
48
48
  * SPDX-License-Identifier: BSD-3-Clause
@@ -50,19 +50,19 @@
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */function Ir(n,e){return wl({descriptor:i=>{const o={get(){var l,d;return(d=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(n))!==null&&d!==void 0?d:null},enumerable:!0,configurable:!0};if(e){const l=typeof i=="symbol"?Symbol():"__"+i;o.get=function(){var d,u;return this[l]===void 0&&(this[l]=(u=(d=this.renderRoot)===null||d===void 0?void 0:d.querySelector(n))!==null&&u!==void 0?u:null),this[l]}}return o}})}/**
53
+ */function Ar(n,e){return wl({descriptor:i=>{const o={get(){var l,d;return(d=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(n))!==null&&d!==void 0?d:null},enumerable:!0,configurable:!0};if(e){const l=typeof i=="symbol"?Symbol():"__"+i;o.get=function(){var d,u;return this[l]===void 0&&(this[l]=(u=(d=this.renderRoot)===null||d===void 0?void 0:d.querySelector(n))!==null&&u!==void 0?u:null),this[l]}}return o}})}/**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
- */function y7(n){return wl({descriptor:e=>({async get(){var i;return await this.updateComplete,(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(n)},enumerable:!0,configurable:!0})})}/**
57
+ */function z7(n){return wl({descriptor:e=>({async get(){var i;return await this.updateComplete,(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(n)},enumerable:!0,configurable:!0})})}/**
58
58
  * @license
59
59
  * Copyright 2021 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
- */var nc;const C7=((nc=window.HTMLSlotElement)===null||nc===void 0?void 0:nc.prototype.assignedElements)!=null?(n,e)=>n.assignedElements(e):(n,e)=>n.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function fi(n){const{slot:e,selector:i}=n!=null?n:{};return wl({descriptor:o=>({get(){var l;const d="slot"+(e?`[name=${e}]`:":not([name])"),u=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(d),v=u!=null?C7(u,n):[];return i?v.filter(b=>b.matches(i)):v},enumerable:!0,configurable:!0})})}/**
61
+ */var nc;const L7=((nc=window.HTMLSlotElement)===null||nc===void 0?void 0:nc.prototype.assignedElements)!=null?(n,e)=>n.assignedElements(e):(n,e)=>n.assignedNodes(e).filter(i=>i.nodeType===Node.ELEMENT_NODE);function fi(n){const{slot:e,selector:i}=n!=null?n:{};return wl({descriptor:o=>({get(){var l;const d="slot"+(e?`[name=${e}]`:":not([name])"),u=(l=this.renderRoot)===null||l===void 0?void 0:l.querySelector(d),v=u!=null?L7(u,n):[];return i?v.filter(b=>b.matches(i)):v},enumerable:!0,configurable:!0})})}/**
62
62
  * @license
63
63
  * Copyright 2017 Google LLC
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
- */function Qc(n,e,i){let o,l=n;return typeof n=="object"?(l=n.slot,o=n):o={flatten:e},i?fi({slot:l,flatten:e,selector:i}):wl({descriptor:d=>({get(){var u,v;const b="slot"+(l?`[name=${l}]`:":not([name])"),m=(u=this.renderRoot)===null||u===void 0?void 0:u.querySelector(b);return(v=m==null?void 0:m.assignedNodes(o))!==null&&v!==void 0?v:[]},enumerable:!0,configurable:!0})})}function Tc(n,e){if(n){if(n instanceof e)return n;if(n instanceof ShadowRoot)return Tc(n.host,e);if("parentNode"in n)return Tc(n.parentElement||n.parentNode,e)}return null}const ce=n=>`brz-${n.toLowerCase()}`,Z=n=>customElements.get(n)?(console.warn(`Breeze UI 💨 :: ${n} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...e)=>{}):Ea(n),kc=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var w7=Object.defineProperty,x7=Object.getOwnPropertyDescriptor,eu=(n,e,i,o)=>{for(var l=o>1?void 0:o?x7(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&w7(e,i,l),l};const n2=ce("fade-in-out");exports.FadeInOut=class extends we{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(e){e.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?N``:N`<slot></slot>`}};exports.FadeInOut.styles=J`
65
+ */function Qc(n,e,i){let o,l=n;return typeof n=="object"?(l=n.slot,o=n):o={flatten:e},i?fi({slot:l,flatten:e,selector:i}):wl({descriptor:d=>({get(){var u,v;const b="slot"+(l?`[name=${l}]`:":not([name])"),m=(u=this.renderRoot)===null||u===void 0?void 0:u.querySelector(b);return(v=m==null?void 0:m.assignedNodes(o))!==null&&v!==void 0?v:[]},enumerable:!0,configurable:!0})})}function Tc(n,e){if(n){if(n instanceof e)return n;if(n instanceof ShadowRoot)return Tc(n.host,e);if("parentNode"in n)return Tc(n.parentElement||n.parentNode,e)}return null}const le=n=>`brz-${n.toLowerCase()}`,Z=n=>customElements.get(n)?(console.warn(`Breeze UI 💨 :: ${n} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...e)=>{}):_a(n),kc=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)};var S7=Object.defineProperty,M7=Object.getOwnPropertyDescriptor,eu=(n,e,i,o)=>{for(var l=o>1?void 0:o?M7(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&S7(e,i,l),l};const o2=le("fade-in-out");exports.FadeInOut=class extends Ce{constructor(){super(...arguments),this.shown=!1,this.removed=!this.shown}connectedCallback(){super.connectedCallback(),this.addEventListener("transitionend",this._handleTransitionEnd)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("transitionend",this._handleTransitionEnd)}_handleTransitionEnd(e){e.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?N``:N`<slot></slot>`}};exports.FadeInOut.styles=X`
66
66
  :host {
67
67
  opacity: 0;
68
68
  animation: fade-in 0.3s ease;
@@ -79,7 +79,7 @@
79
79
  opacity: 1;
80
80
  }
81
81
  }
82
- `;eu([E({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);eu([Ce()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=eu([Z(n2)],exports.FadeInOut);/**
82
+ `;eu([$({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);eu([we()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=eu([Z(o2)],exports.FadeInOut);/**
83
83
  * @license
84
84
  * Copyright 2017 Google LLC
85
85
  * SPDX-License-Identifier: BSD-3-Clause
@@ -91,13 +91,13 @@
91
91
  * @license
92
92
  * Copyright 2018 Google LLC
93
93
  * SPDX-License-Identifier: BSD-3-Clause
94
- */const He=n=>n!=null?n:vt,yn=(n,e=J``)=>{const i=J`
94
+ */const He=n=>n!=null?n:vt,yn=(n,e=X``)=>{const i=X`
95
95
  outline: var(--brz-outline-color) var(--brz-outline-style)
96
96
  var(--brz-outline-width);
97
97
  outline-offset: var(--brz-outline-offset);
98
98
  transition: var(--brz-outline-transition);
99
99
  ${e};
100
- `;return J`
100
+ `;return X`
101
101
  :host ${qr(n)} {
102
102
  outline-color: transparent;
103
103
  }
@@ -111,7 +111,7 @@
111
111
  ${i};
112
112
  }
113
113
  }
114
- `},o2=J`
114
+ `},a2=X`
115
115
  background: none;
116
116
  border: 0;
117
117
  border-radius: var(--brz-border-radius-default);
@@ -121,9 +121,9 @@
121
121
  font: inherit;
122
122
  margin: 0;
123
123
  padding: 0;
124
- `,a2=(n,e=J``)=>J`
124
+ `,s2=(n,e=X``)=>X`
125
125
  :host ${qr(n)} {
126
- ${o2};
126
+ ${a2};
127
127
  ${e};
128
128
  }
129
129
 
@@ -132,7 +132,7 @@
132
132
  }
133
133
 
134
134
  ${yn(n)}
135
- `,z7=Math.min,L7=Math.max,S7={left:"right",right:"left",bottom:"top",top:"bottom"},M7={start:"end",end:"start"};function uh(n,e,i){return L7(n,z7(e,i))}function Sl(n,e){return typeof n=="function"?n(e):n}function Cn(n){return n.split("-")[0]}function Ml(n){return n.split("-")[1]}function s2(n){return n==="x"?"y":"x"}function l2(n){return n==="y"?"height":"width"}function co(n){return["top","bottom"].includes(Cn(n))?"y":"x"}function c2(n){return s2(co(n))}function T7(n,e,i){i===void 0&&(i=!1);const o=Ml(n),l=c2(n),d=l2(l);let u=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=Ks(u)),[u,Ks(u)]}function k7(n){const e=Ks(n);return[Oc(n),e,Oc(e)]}function Oc(n){return n.replace(/start|end/g,e=>M7[e])}function O7(n,e,i){const o=["left","right"],l=["right","left"],d=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return i?e?l:o:e?o:l;case"left":case"right":return e?d:u;default:return[]}}function $7(n,e,i,o){const l=Ml(n);let d=O7(Cn(n),i==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(Oc)))),d}function Ks(n){return n.replace(/left|right|bottom|top/g,e=>S7[e])}function E7(n){return{top:0,right:0,bottom:0,left:0,...n}}function _7(n){return typeof n!="number"?E7(n):{top:n,right:n,bottom:n,left:n}}function Ys(n){const{x:e,y:i,width:o,height:l}=n;return{width:o,height:l,top:i,left:e,right:e+o,bottom:i+l,x:e,y:i}}function dh(n,e,i){let{reference:o,floating:l}=n;const d=co(e),u=c2(e),v=l2(u),b=Cn(e),m=d==="y",M=o.x+o.width/2-l.width/2,L=o.y+o.height/2-l.height/2,T=o[v]/2-l[v]/2;let $;switch(b){case"top":$={x:M,y:o.y-l.height};break;case"bottom":$={x:M,y:o.y+o.height};break;case"right":$={x:o.x+o.width,y:L};break;case"left":$={x:o.x-l.width,y:L};break;default:$={x:o.x,y:o.y}}switch(Ml(e)){case"start":$[u]-=T*(i&&m?-1:1);break;case"end":$[u]+=T*(i&&m?-1:1);break}return $}const I7=async(n,e,i)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=i,v=d.filter(Boolean),b=await(u.isRTL==null?void 0:u.isRTL(e));let m=await u.getElementRects({reference:n,floating:e,strategy:l}),{x:M,y:L}=dh(m,o,b),T=o,$={},H=0;for(let Y=0;Y<v.length;Y++){const{name:oe,fn:_}=v[Y],{x:D,y:A,data:B,reset:K}=await _({x:M,y:L,initialPlacement:o,placement:T,strategy:l,middlewareData:$,rects:m,platform:u,elements:{reference:n,floating:e}});M=D!=null?D:M,L=A!=null?A:L,$={...$,[oe]:{...$[oe],...B}},K&&H<=50&&(H++,typeof K=="object"&&(K.placement&&(T=K.placement),K.rects&&(m=K.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:l}):K.rects),{x:M,y:L}=dh(m,T,b)),Y=-1)}return{x:M,y:L,placement:T,strategy:l,middlewareData:$}};async function u2(n,e){var i;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:b}=n,{boundary:m="clippingAncestors",rootBoundary:M="viewport",elementContext:L="floating",altBoundary:T=!1,padding:$=0}=Sl(e,n),H=_7($),oe=v[T?L==="floating"?"reference":"floating":L],_=Ys(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(oe)))==null||i?oe:oe.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:m,rootBoundary:M,strategy:b})),D=L==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,A=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),B=await(d.isElement==null?void 0:d.isElement(A))?await(d.getScale==null?void 0:d.getScale(A))||{x:1,y:1}:{x:1,y:1},K=Ys(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:D,offsetParent:A,strategy:b}):D);return{top:(_.top-K.top+H.top)/B.y,bottom:(K.bottom-_.bottom+H.bottom)/B.y,left:(_.left-K.left+H.left)/B.x,right:(K.right-_.right+H.right)/B.x}}const A7=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var i,o;const{placement:l,middlewareData:d,rects:u,initialPlacement:v,platform:b,elements:m}=e,{mainAxis:M=!0,crossAxis:L=!0,fallbackPlacements:T,fallbackStrategy:$="bestFit",fallbackAxisSideDirection:H="none",flipAlignment:Y=!0,...oe}=Sl(n,e);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const _=Cn(l),D=co(v),A=Cn(v)===v,B=await(b.isRTL==null?void 0:b.isRTL(m.floating)),K=T||(A||!Y?[Ks(v)]:k7(v)),ue=H!=="none";!T&&ue&&K.push(...$7(v,Y,H,B));const le=[v,...K],me=await u2(e,oe),Me=[];let ie=((o=d.flip)==null?void 0:o.overflows)||[];if(M&&Me.push(me[_]),L){const x=T7(l,u,B);Me.push(me[x[0]],me[x[1]])}if(ie=[...ie,{placement:l,overflows:Me}],!Me.every(x=>x<=0)){var X,V;const x=(((X=d.flip)==null?void 0:X.index)||0)+1,w=le[x];if(w)return{data:{index:x,overflows:ie},reset:{placement:w}};let U=(V=ie.filter(ne=>ne.overflows[0]<=0).sort((ne,ye)=>ne.overflows[1]-ye.overflows[1])[0])==null?void 0:V.placement;if(!U)switch($){case"bestFit":{var O;const ne=(O=ie.filter(ye=>{if(ue){const ke=co(ye.placement);return ke===D||ke==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter(ke=>ke>0).reduce((ke,Re)=>ke+Re,0)]).sort((ye,ke)=>ye[1]-ke[1])[0])==null?void 0:O[0];ne&&(U=ne);break}case"initialPlacement":U=v;break}if(l!==U)return{reset:{placement:U}}}return{}}}};async function P7(n,e){const{placement:i,platform:o,elements:l}=n,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=Cn(i),v=Ml(i),b=co(i)==="y",m=["left","top"].includes(u)?-1:1,M=d&&b?-1:1,L=Sl(e,n);let{mainAxis:T,crossAxis:$,alignmentAxis:H}=typeof L=="number"?{mainAxis:L,crossAxis:0,alignmentAxis:null}:{mainAxis:L.mainAxis||0,crossAxis:L.crossAxis||0,alignmentAxis:L.alignmentAxis};return v&&typeof H=="number"&&($=v==="end"?H*-1:H),b?{x:$*M,y:T*m}:{x:T*m,y:$*M}}const D7=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var i,o;const{x:l,y:d,placement:u,middlewareData:v}=e,b=await P7(e,n);return u===((i=v.offset)==null?void 0:i.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+b.x,y:d+b.y,data:{...b,placement:u}}}}},N7=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:i,y:o,placement:l}=e,{mainAxis:d=!0,crossAxis:u=!1,limiter:v={fn:oe=>{let{x:_,y:D}=oe;return{x:_,y:D}}},...b}=Sl(n,e),m={x:i,y:o},M=await u2(e,b),L=co(Cn(l)),T=s2(L);let $=m[T],H=m[L];if(d){const oe=T==="y"?"top":"left",_=T==="y"?"bottom":"right",D=$+M[oe],A=$-M[_];$=uh(D,$,A)}if(u){const oe=L==="y"?"top":"left",_=L==="y"?"bottom":"right",D=H+M[oe],A=H-M[_];H=uh(D,H,A)}const Y=v.fn({...e,[T]:$,[L]:H});return{...Y,data:{x:Y.x-i,y:Y.y-o,enabled:{[T]:d,[L]:u}}}}}},$c=Math.min,ro=Math.max,Xs=Math.round,Os=Math.floor,Kr=n=>({x:n,y:n});function Tl(){return typeof window!="undefined"}function fo(n){return d2(n)?(n.nodeName||"").toLowerCase():"#document"}function dr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Xr(n){var e;return(e=(d2(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function d2(n){return Tl()?n instanceof Node||n instanceof dr(n).Node:!1}function $r(n){return Tl()?n instanceof Element||n instanceof dr(n).Element:!1}function Yr(n){return Tl()?n instanceof HTMLElement||n instanceof dr(n).HTMLElement:!1}function hh(n){return!Tl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof dr(n).ShadowRoot}function _a(n){const{overflow:e,overflowX:i,overflowY:o,display:l}=Er(n);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(l)}function H7(n){return["table","td","th"].includes(fo(n))}function kl(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function tu(n){const e=ru(),i=$r(n)?Er(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(i.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(i.contain||"").includes(o))}function R7(n){let e=Ni(n);for(;Yr(e)&&!uo(e);){if(tu(e))return e;if(kl(e))return null;e=Ni(e)}return null}function ru(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(n){return["html","body","#document"].includes(fo(n))}function Er(n){return dr(n).getComputedStyle(n)}function Ol(n){return $r(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ni(n){if(fo(n)==="html")return n;const e=n.assignedSlot||n.parentNode||hh(n)&&n.host||Xr(n);return hh(e)?e.host:e}function h2(n){const e=Ni(n);return uo(e)?n.ownerDocument?n.ownerDocument.body:n.body:Yr(e)&&_a(e)?e:h2(e)}function Ta(n,e,i){var o;e===void 0&&(e=[]),i===void 0&&(i=!0);const l=h2(n),d=l===((o=n.ownerDocument)==null?void 0:o.body),u=dr(l);if(d){const v=Ec(u);return e.concat(u,u.visualViewport||[],_a(l)?l:[],v&&i?Ta(v):[])}return e.concat(l,Ta(l,[],i))}function Ec(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function f2(n){const e=Er(n);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Yr(n),d=l?n.offsetWidth:i,u=l?n.offsetHeight:o,v=Xs(i)!==d||Xs(o)!==u;return v&&(i=d,o=u),{width:i,height:o,$:v}}function iu(n){return $r(n)?n:n.contextElement}function io(n){const e=iu(n);if(!Yr(e))return Kr(1);const i=e.getBoundingClientRect(),{width:o,height:l,$:d}=f2(e);let u=(d?Xs(i.width):i.width)/o,v=(d?Xs(i.height):i.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const F7=Kr(0);function p2(n){const e=dr(n);return!ru()||!e.visualViewport?F7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function B7(n,e,i){return e===void 0&&(e=!1),!i||e&&i!==dr(n)?!1:e}function wn(n,e,i,o){e===void 0&&(e=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=iu(n);let u=Kr(1);e&&(o?$r(o)&&(u=io(o)):u=io(n));const v=B7(d,i,o)?p2(d):Kr(0);let b=(l.left+v.x)/u.x,m=(l.top+v.y)/u.y,M=l.width/u.x,L=l.height/u.y;if(d){const T=dr(d),$=o&&$r(o)?dr(o):o;let H=T,Y=Ec(H);for(;Y&&o&&$!==H;){const oe=io(Y),_=Y.getBoundingClientRect(),D=Er(Y),A=_.left+(Y.clientLeft+parseFloat(D.paddingLeft))*oe.x,B=_.top+(Y.clientTop+parseFloat(D.paddingTop))*oe.y;b*=oe.x,m*=oe.y,M*=oe.x,L*=oe.y,b+=A,m+=B,H=dr(Y),Y=Ec(H)}}return Ys({width:M,height:L,x:b,y:m})}function nu(n,e){const i=Ol(n).scrollLeft;return e?e.left+i:wn(Xr(n)).left+i}function g2(n,e,i){i===void 0&&(i=!1);const o=n.getBoundingClientRect(),l=o.left+e.scrollLeft-(i?0:nu(n,o)),d=o.top+e.scrollTop;return{x:l,y:d}}function V7(n){let{elements:e,rect:i,offsetParent:o,strategy:l}=n;const d=l==="fixed",u=Xr(o),v=e?kl(e.floating):!1;if(o===u||v&&d)return i;let b={scrollLeft:0,scrollTop:0},m=Kr(1);const M=Kr(0),L=Yr(o);if((L||!L&&!d)&&((fo(o)!=="body"||_a(u))&&(b=Ol(o)),Yr(o))){const $=wn(o);m=io(o),M.x=$.x+o.clientLeft,M.y=$.y+o.clientTop}const T=u&&!L&&!d?g2(u,b,!0):Kr(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-b.scrollLeft*m.x+M.x+T.x,y:i.y*m.y-b.scrollTop*m.y+M.y+T.y}}function Z7(n){return Array.from(n.getClientRects())}function W7(n){const e=Xr(n),i=Ol(n),o=n.ownerDocument.body,l=ro(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=ro(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-i.scrollLeft+nu(n);const v=-i.scrollTop;return Er(o).direction==="rtl"&&(u+=ro(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function U7(n,e){const i=dr(n),o=Xr(n),l=i.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,b=0;if(l){d=l.width,u=l.height;const m=ru();(!m||m&&e==="fixed")&&(v=l.offsetLeft,b=l.offsetTop)}return{width:d,height:u,x:v,y:b}}function j7(n,e){const i=wn(n,!0,e==="fixed"),o=i.top+n.clientTop,l=i.left+n.clientLeft,d=Yr(n)?io(n):Kr(1),u=n.clientWidth*d.x,v=n.clientHeight*d.y,b=l*d.x,m=o*d.y;return{width:u,height:v,x:b,y:m}}function fh(n,e,i){let o;if(e==="viewport")o=U7(n,i);else if(e==="document")o=W7(Xr(n));else if($r(e))o=j7(e,i);else{const l=p2(n);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Ys(o)}function v2(n,e){const i=Ni(n);return i===e||!$r(i)||uo(i)?!1:Er(i).position==="fixed"||v2(i,e)}function G7(n,e){const i=e.get(n);if(i)return i;let o=Ta(n,[],!1).filter(v=>$r(v)&&fo(v)!=="body"),l=null;const d=Er(n).position==="fixed";let u=d?Ni(n):n;for(;$r(u)&&!uo(u);){const v=Er(u),b=tu(u);!b&&v.position==="fixed"&&(l=null),(d?!b&&!l:!b&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||_a(u)&&!b&&v2(n,u))?o=o.filter(M=>M!==u):l=v,u=Ni(u)}return e.set(n,o),o}function q7(n){let{element:e,boundary:i,rootBoundary:o,strategy:l}=n;const u=[...i==="clippingAncestors"?kl(e)?[]:G7(e,this._c):[].concat(i),o],v=u[0],b=u.reduce((m,M)=>{const L=fh(e,M,l);return m.top=ro(L.top,m.top),m.right=$c(L.right,m.right),m.bottom=$c(L.bottom,m.bottom),m.left=ro(L.left,m.left),m},fh(e,v,l));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}}function K7(n){const{width:e,height:i}=f2(n);return{width:e,height:i}}function Y7(n,e,i){const o=Yr(e),l=Xr(e),d=i==="fixed",u=wn(n,!0,d,e);let v={scrollLeft:0,scrollTop:0};const b=Kr(0);if(o||!o&&!d)if((fo(e)!=="body"||_a(l))&&(v=Ol(e)),o){const T=wn(e,!0,d,e);b.x=T.x+e.clientLeft,b.y=T.y+e.clientTop}else l&&(b.x=nu(l));const m=l&&!o&&!d?g2(l,v):Kr(0),M=u.left+v.scrollLeft-b.x-m.x,L=u.top+v.scrollTop-b.y-m.y;return{x:M,y:L,width:u.width,height:u.height}}function oc(n){return Er(n).position==="static"}function ph(n,e){if(!Yr(n)||Er(n).position==="fixed")return null;if(e)return e(n);let i=n.offsetParent;return Xr(n)===i&&(i=i.ownerDocument.body),i}function b2(n,e){const i=dr(n);if(kl(n))return i;if(!Yr(n)){let l=Ni(n);for(;l&&!uo(l);){if($r(l)&&!oc(l))return l;l=Ni(l)}return i}let o=ph(n,e);for(;o&&H7(o)&&oc(o);)o=ph(o,e);return o&&uo(o)&&oc(o)&&!tu(o)?i:o||R7(n)||i}const X7=async function(n){const e=this.getOffsetParent||b2,i=this.getDimensions,o=await i(n.floating);return{reference:Y7(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function J7(n){return Er(n).direction==="rtl"}const Q7={convertOffsetParentRelativeRectToViewportRelativeRect:V7,getDocumentElement:Xr,getClippingRect:q7,getOffsetParent:b2,getElementRects:X7,getClientRects:Z7,getDimensions:K7,getScale:io,isElement:$r,isRTL:J7};function e9(n,e){let i=null,o;const l=Xr(n);function d(){var v;clearTimeout(o),(v=i)==null||v.disconnect(),i=null}function u(v,b){v===void 0&&(v=!1),b===void 0&&(b=1),d();const{left:m,top:M,width:L,height:T}=n.getBoundingClientRect();if(v||e(),!L||!T)return;const $=Os(M),H=Os(l.clientWidth-(m+L)),Y=Os(l.clientHeight-(M+T)),oe=Os(m),D={rootMargin:-$+"px "+-H+"px "+-Y+"px "+-oe+"px",threshold:ro(0,$c(1,b))||1};let A=!0;function B(K){const ue=K[0].intersectionRatio;if(ue!==b){if(!A)return u();ue?u(!1,ue):o=setTimeout(()=>{u(!1,1e-7)},1e3)}A=!1}try{i=new IntersectionObserver(B,{...D,root:l.ownerDocument})}catch{i=new IntersectionObserver(B,D)}i.observe(n)}return u(!0),d}function t9(n,e,i,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:b=!1}=o,m=iu(n),M=l||d?[...m?Ta(m):[],...Ta(e)]:[];M.forEach(_=>{l&&_.addEventListener("scroll",i,{passive:!0}),d&&_.addEventListener("resize",i)});const L=m&&v?e9(m,i):null;let T=-1,$=null;u&&($=new ResizeObserver(_=>{let[D]=_;D&&D.target===m&&$&&($.unobserve(e),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var A;(A=$)==null||A.observe(e)})),i()}),m&&!b&&$.observe(m),$.observe(e));let H,Y=b?wn(n):null;b&&oe();function oe(){const _=wn(n);Y&&(_.x!==Y.x||_.y!==Y.y||_.width!==Y.width||_.height!==Y.height)&&i(),Y=_,H=requestAnimationFrame(oe)}return i(),()=>{var _;M.forEach(D=>{l&&D.removeEventListener("scroll",i),d&&D.removeEventListener("resize",i)}),L==null||L(),(_=$)==null||_.disconnect(),$=null,b&&cancelAnimationFrame(H)}}const r9=D7,i9=N7,n9=A7,o9=(n,e,i)=>{const o=new Map,l={platform:Q7,...i},d={...l.platform,_c:o};return I7(n,e,{...l,platform:d})};var a9=Object.defineProperty,s9=Object.getOwnPropertyDescriptor,Ot=(n,e,i,o)=>{for(var l=o>1?void 0:o?s9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&a9(e,i,l),l};let l9=0;const ou=ce("popover"),m2=ce("pure-popover"),y2=["click","hover","focus"],[Js,_c,dn]=y2,au=["dialog","tooltip","menu"],[c9]=au;class C2 extends CustomEvent{constructor(e){super(`${ou}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends we{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=c9,this.disabled=!1,this.enablePositionTracking=!1,this.popoverId=`popover-${++l9}`,this.delayTimeout=0}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.cleanupFunction)==null||e.call(this)}updatePosition(){}async updated(e){super.updated(e),e.has("isOpen")&&this.isOpen&&!this.cleanupFunction&&this.createPopover()}get floatingUIOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",middleware:[r9({mainAxis:this.distance,crossAxis:this.skidding}),n9(),i9()]}}createPopover(){this.cleanupFunction||(this.cleanupFunction=t9(this.referenceElement,this.popoverElement,()=>{const e=this.floatingUIOptions;if(!this.isOpen){this.destroyPopover();return}o9(this.referenceElement,this.popoverElement,e).then(({x:i,y:o})=>{Object.assign(this.popoverElement.style,{left:`${i}px`,top:`${o}px`,position:e.strategy})})}))}destroyPopover(){var e;(e=this.cleanupFunction)==null||e.call(this),this.cleanupFunction=void 0}get referenceElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}get contentElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return e==null?void 0:e.assignedNodes({flatten:!0})[0]}get popoverElement(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector(".popover-container")}emit(e){this.dispatchEvent(new C2(e))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.createPopover(),this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,this.destroyPopover(),await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return this.enablePositionTracking||this.isOpen?N`
135
+ `,T7=Math.min,k7=Math.max,O7={left:"right",right:"left",bottom:"top",top:"bottom"},$7={start:"end",end:"start"};function dh(n,e,i){return k7(n,T7(e,i))}function Sl(n,e){return typeof n=="function"?n(e):n}function Cn(n){return n.split("-")[0]}function Ml(n){return n.split("-")[1]}function l2(n){return n==="x"?"y":"x"}function c2(n){return n==="y"?"height":"width"}function co(n){return["top","bottom"].includes(Cn(n))?"y":"x"}function u2(n){return l2(co(n))}function E7(n,e,i){i===void 0&&(i=!1);const o=Ml(n),l=u2(n),d=c2(l);let u=l==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(u=Ks(u)),[u,Ks(u)]}function _7(n){const e=Ks(n);return[Oc(n),e,Oc(e)]}function Oc(n){return n.replace(/start|end/g,e=>$7[e])}function A7(n,e,i){const o=["left","right"],l=["right","left"],d=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return i?e?l:o:e?o:l;case"left":case"right":return e?d:u;default:return[]}}function I7(n,e,i,o){const l=Ml(n);let d=A7(Cn(n),i==="start",o);return l&&(d=d.map(u=>u+"-"+l),e&&(d=d.concat(d.map(Oc)))),d}function Ks(n){return n.replace(/left|right|bottom|top/g,e=>O7[e])}function P7(n){return{top:0,right:0,bottom:0,left:0,...n}}function D7(n){return typeof n!="number"?P7(n):{top:n,right:n,bottom:n,left:n}}function Ys(n){const{x:e,y:i,width:o,height:l}=n;return{width:o,height:l,top:i,left:e,right:e+o,bottom:i+l,x:e,y:i}}function hh(n,e,i){let{reference:o,floating:l}=n;const d=co(e),u=u2(e),v=c2(u),b=Cn(e),m=d==="y",M=o.x+o.width/2-l.width/2,L=o.y+o.height/2-l.height/2,T=o[v]/2-l[v]/2;let E;switch(b){case"top":E={x:M,y:o.y-l.height};break;case"bottom":E={x:M,y:o.y+o.height};break;case"right":E={x:o.x+o.width,y:L};break;case"left":E={x:o.x-l.width,y:L};break;default:E={x:o.x,y:o.y}}switch(Ml(e)){case"start":E[u]-=T*(i&&m?-1:1);break;case"end":E[u]+=T*(i&&m?-1:1);break}return E}const N7=async(n,e,i)=>{const{placement:o="bottom",strategy:l="absolute",middleware:d=[],platform:u}=i,v=d.filter(Boolean),b=await(u.isRTL==null?void 0:u.isRTL(e));let m=await u.getElementRects({reference:n,floating:e,strategy:l}),{x:M,y:L}=hh(m,o,b),T=o,E={},H=0;for(let Y=0;Y<v.length;Y++){const{name:oe,fn:_}=v[Y],{x:D,y:I,data:B,reset:K}=await _({x:M,y:L,initialPlacement:o,placement:T,strategy:l,middlewareData:E,rects:m,platform:u,elements:{reference:n,floating:e}});M=D!=null?D:M,L=I!=null?I:L,E={...E,[oe]:{...E[oe],...B}},K&&H<=50&&(H++,typeof K=="object"&&(K.placement&&(T=K.placement),K.rects&&(m=K.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:l}):K.rects),{x:M,y:L}=hh(m,T,b)),Y=-1)}return{x:M,y:L,placement:T,strategy:l,middlewareData:E}};async function d2(n,e){var i;e===void 0&&(e={});const{x:o,y:l,platform:d,rects:u,elements:v,strategy:b}=n,{boundary:m="clippingAncestors",rootBoundary:M="viewport",elementContext:L="floating",altBoundary:T=!1,padding:E=0}=Sl(e,n),H=D7(E),oe=v[T?L==="floating"?"reference":"floating":L],_=Ys(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(oe)))==null||i?oe:oe.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(v.floating)),boundary:m,rootBoundary:M,strategy:b})),D=L==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,I=await(d.getOffsetParent==null?void 0:d.getOffsetParent(v.floating)),B=await(d.isElement==null?void 0:d.isElement(I))?await(d.getScale==null?void 0:d.getScale(I))||{x:1,y:1}:{x:1,y:1},K=Ys(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:v,rect:D,offsetParent:I,strategy:b}):D);return{top:(_.top-K.top+H.top)/B.y,bottom:(K.bottom-_.bottom+H.bottom)/B.y,left:(_.left-K.left+H.left)/B.x,right:(K.right-_.right+H.right)/B.x}}const H7=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var i,o;const{placement:l,middlewareData:d,rects:u,initialPlacement:v,platform:b,elements:m}=e,{mainAxis:M=!0,crossAxis:L=!0,fallbackPlacements:T,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:H="none",flipAlignment:Y=!0,...oe}=Sl(n,e);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const _=Cn(l),D=co(v),I=Cn(v)===v,B=await(b.isRTL==null?void 0:b.isRTL(m.floating)),K=T||(I||!Y?[Ks(v)]:_7(v)),ue=H!=="none";!T&&ue&&K.push(...I7(v,Y,H,B));const ce=[v,...K],me=await d2(e,oe),Me=[];let ie=((o=d.flip)==null?void 0:o.overflows)||[];if(M&&Me.push(me[_]),L){const x=E7(l,u,B);Me.push(me[x[0]],me[x[1]])}if(ie=[...ie,{placement:l,overflows:Me}],!Me.every(x=>x<=0)){var J,V;const x=(((J=d.flip)==null?void 0:J.index)||0)+1,w=ce[x];if(w)return{data:{index:x,overflows:ie},reset:{placement:w}};let U=(V=ie.filter(ne=>ne.overflows[0]<=0).sort((ne,ye)=>ne.overflows[1]-ye.overflows[1])[0])==null?void 0:V.placement;if(!U)switch(E){case"bestFit":{var O;const ne=(O=ie.filter(ye=>{if(ue){const ke=co(ye.placement);return ke===D||ke==="y"}return!0}).map(ye=>[ye.placement,ye.overflows.filter(ke=>ke>0).reduce((ke,Re)=>ke+Re,0)]).sort((ye,ke)=>ye[1]-ke[1])[0])==null?void 0:O[0];ne&&(U=ne);break}case"initialPlacement":U=v;break}if(l!==U)return{reset:{placement:U}}}return{}}}};async function R7(n,e){const{placement:i,platform:o,elements:l}=n,d=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=Cn(i),v=Ml(i),b=co(i)==="y",m=["left","top"].includes(u)?-1:1,M=d&&b?-1:1,L=Sl(e,n);let{mainAxis:T,crossAxis:E,alignmentAxis:H}=typeof L=="number"?{mainAxis:L,crossAxis:0,alignmentAxis:null}:{mainAxis:L.mainAxis||0,crossAxis:L.crossAxis||0,alignmentAxis:L.alignmentAxis};return v&&typeof H=="number"&&(E=v==="end"?H*-1:H),b?{x:E*M,y:T*m}:{x:T*m,y:E*M}}const F7=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var i,o;const{x:l,y:d,placement:u,middlewareData:v}=e,b=await R7(e,n);return u===((i=v.offset)==null?void 0:i.placement)&&(o=v.arrow)!=null&&o.alignmentOffset?{}:{x:l+b.x,y:d+b.y,data:{...b,placement:u}}}}},B7=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:i,y:o,placement:l}=e,{mainAxis:d=!0,crossAxis:u=!1,limiter:v={fn:oe=>{let{x:_,y:D}=oe;return{x:_,y:D}}},...b}=Sl(n,e),m={x:i,y:o},M=await d2(e,b),L=co(Cn(l)),T=l2(L);let E=m[T],H=m[L];if(d){const oe=T==="y"?"top":"left",_=T==="y"?"bottom":"right",D=E+M[oe],I=E-M[_];E=dh(D,E,I)}if(u){const oe=L==="y"?"top":"left",_=L==="y"?"bottom":"right",D=H+M[oe],I=H-M[_];H=dh(D,H,I)}const Y=v.fn({...e,[T]:E,[L]:H});return{...Y,data:{x:Y.x-i,y:Y.y-o,enabled:{[T]:d,[L]:u}}}}}},$c=Math.min,ro=Math.max,Xs=Math.round,Os=Math.floor,Kr=n=>({x:n,y:n});function Tl(){return typeof window!="undefined"}function fo(n){return h2(n)?(n.nodeName||"").toLowerCase():"#document"}function dr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Xr(n){var e;return(e=(h2(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function h2(n){return Tl()?n instanceof Node||n instanceof dr(n).Node:!1}function $r(n){return Tl()?n instanceof Element||n instanceof dr(n).Element:!1}function Yr(n){return Tl()?n instanceof HTMLElement||n instanceof dr(n).HTMLElement:!1}function fh(n){return!Tl()||typeof ShadowRoot=="undefined"?!1:n instanceof ShadowRoot||n instanceof dr(n).ShadowRoot}function Aa(n){const{overflow:e,overflowX:i,overflowY:o,display:l}=Er(n);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(l)}function V7(n){return["table","td","th"].includes(fo(n))}function kl(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function tu(n){const e=ru(),i=$r(n)?Er(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(i.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(i.contain||"").includes(o))}function Z7(n){let e=Ni(n);for(;Yr(e)&&!uo(e);){if(tu(e))return e;if(kl(e))return null;e=Ni(e)}return null}function ru(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(n){return["html","body","#document"].includes(fo(n))}function Er(n){return dr(n).getComputedStyle(n)}function Ol(n){return $r(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ni(n){if(fo(n)==="html")return n;const e=n.assignedSlot||n.parentNode||fh(n)&&n.host||Xr(n);return fh(e)?e.host:e}function f2(n){const e=Ni(n);return uo(e)?n.ownerDocument?n.ownerDocument.body:n.body:Yr(e)&&Aa(e)?e:f2(e)}function ka(n,e,i){var o;e===void 0&&(e=[]),i===void 0&&(i=!0);const l=f2(n),d=l===((o=n.ownerDocument)==null?void 0:o.body),u=dr(l);if(d){const v=Ec(u);return e.concat(u,u.visualViewport||[],Aa(l)?l:[],v&&i?ka(v):[])}return e.concat(l,ka(l,[],i))}function Ec(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function p2(n){const e=Er(n);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const l=Yr(n),d=l?n.offsetWidth:i,u=l?n.offsetHeight:o,v=Xs(i)!==d||Xs(o)!==u;return v&&(i=d,o=u),{width:i,height:o,$:v}}function iu(n){return $r(n)?n:n.contextElement}function io(n){const e=iu(n);if(!Yr(e))return Kr(1);const i=e.getBoundingClientRect(),{width:o,height:l,$:d}=p2(e);let u=(d?Xs(i.width):i.width)/o,v=(d?Xs(i.height):i.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!v||!Number.isFinite(v))&&(v=1),{x:u,y:v}}const W7=Kr(0);function g2(n){const e=dr(n);return!ru()||!e.visualViewport?W7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function U7(n,e,i){return e===void 0&&(e=!1),!i||e&&i!==dr(n)?!1:e}function wn(n,e,i,o){e===void 0&&(e=!1),i===void 0&&(i=!1);const l=n.getBoundingClientRect(),d=iu(n);let u=Kr(1);e&&(o?$r(o)&&(u=io(o)):u=io(n));const v=U7(d,i,o)?g2(d):Kr(0);let b=(l.left+v.x)/u.x,m=(l.top+v.y)/u.y,M=l.width/u.x,L=l.height/u.y;if(d){const T=dr(d),E=o&&$r(o)?dr(o):o;let H=T,Y=Ec(H);for(;Y&&o&&E!==H;){const oe=io(Y),_=Y.getBoundingClientRect(),D=Er(Y),I=_.left+(Y.clientLeft+parseFloat(D.paddingLeft))*oe.x,B=_.top+(Y.clientTop+parseFloat(D.paddingTop))*oe.y;b*=oe.x,m*=oe.y,M*=oe.x,L*=oe.y,b+=I,m+=B,H=dr(Y),Y=Ec(H)}}return Ys({width:M,height:L,x:b,y:m})}function nu(n,e){const i=Ol(n).scrollLeft;return e?e.left+i:wn(Xr(n)).left+i}function v2(n,e,i){i===void 0&&(i=!1);const o=n.getBoundingClientRect(),l=o.left+e.scrollLeft-(i?0:nu(n,o)),d=o.top+e.scrollTop;return{x:l,y:d}}function j7(n){let{elements:e,rect:i,offsetParent:o,strategy:l}=n;const d=l==="fixed",u=Xr(o),v=e?kl(e.floating):!1;if(o===u||v&&d)return i;let b={scrollLeft:0,scrollTop:0},m=Kr(1);const M=Kr(0),L=Yr(o);if((L||!L&&!d)&&((fo(o)!=="body"||Aa(u))&&(b=Ol(o)),Yr(o))){const E=wn(o);m=io(o),M.x=E.x+o.clientLeft,M.y=E.y+o.clientTop}const T=u&&!L&&!d?v2(u,b,!0):Kr(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-b.scrollLeft*m.x+M.x+T.x,y:i.y*m.y-b.scrollTop*m.y+M.y+T.y}}function G7(n){return Array.from(n.getClientRects())}function q7(n){const e=Xr(n),i=Ol(n),o=n.ownerDocument.body,l=ro(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),d=ro(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let u=-i.scrollLeft+nu(n);const v=-i.scrollTop;return Er(o).direction==="rtl"&&(u+=ro(e.clientWidth,o.clientWidth)-l),{width:l,height:d,x:u,y:v}}function K7(n,e){const i=dr(n),o=Xr(n),l=i.visualViewport;let d=o.clientWidth,u=o.clientHeight,v=0,b=0;if(l){d=l.width,u=l.height;const m=ru();(!m||m&&e==="fixed")&&(v=l.offsetLeft,b=l.offsetTop)}return{width:d,height:u,x:v,y:b}}function Y7(n,e){const i=wn(n,!0,e==="fixed"),o=i.top+n.clientTop,l=i.left+n.clientLeft,d=Yr(n)?io(n):Kr(1),u=n.clientWidth*d.x,v=n.clientHeight*d.y,b=l*d.x,m=o*d.y;return{width:u,height:v,x:b,y:m}}function ph(n,e,i){let o;if(e==="viewport")o=K7(n,i);else if(e==="document")o=q7(Xr(n));else if($r(e))o=Y7(e,i);else{const l=g2(n);o={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Ys(o)}function b2(n,e){const i=Ni(n);return i===e||!$r(i)||uo(i)?!1:Er(i).position==="fixed"||b2(i,e)}function X7(n,e){const i=e.get(n);if(i)return i;let o=ka(n,[],!1).filter(v=>$r(v)&&fo(v)!=="body"),l=null;const d=Er(n).position==="fixed";let u=d?Ni(n):n;for(;$r(u)&&!uo(u);){const v=Er(u),b=tu(u);!b&&v.position==="fixed"&&(l=null),(d?!b&&!l:!b&&v.position==="static"&&!!l&&["absolute","fixed"].includes(l.position)||Aa(u)&&!b&&b2(n,u))?o=o.filter(M=>M!==u):l=v,u=Ni(u)}return e.set(n,o),o}function J7(n){let{element:e,boundary:i,rootBoundary:o,strategy:l}=n;const u=[...i==="clippingAncestors"?kl(e)?[]:X7(e,this._c):[].concat(i),o],v=u[0],b=u.reduce((m,M)=>{const L=ph(e,M,l);return m.top=ro(L.top,m.top),m.right=$c(L.right,m.right),m.bottom=$c(L.bottom,m.bottom),m.left=ro(L.left,m.left),m},ph(e,v,l));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}}function Q7(n){const{width:e,height:i}=p2(n);return{width:e,height:i}}function e9(n,e,i){const o=Yr(e),l=Xr(e),d=i==="fixed",u=wn(n,!0,d,e);let v={scrollLeft:0,scrollTop:0};const b=Kr(0);if(o||!o&&!d)if((fo(e)!=="body"||Aa(l))&&(v=Ol(e)),o){const T=wn(e,!0,d,e);b.x=T.x+e.clientLeft,b.y=T.y+e.clientTop}else l&&(b.x=nu(l));const m=l&&!o&&!d?v2(l,v):Kr(0),M=u.left+v.scrollLeft-b.x-m.x,L=u.top+v.scrollTop-b.y-m.y;return{x:M,y:L,width:u.width,height:u.height}}function oc(n){return Er(n).position==="static"}function gh(n,e){if(!Yr(n)||Er(n).position==="fixed")return null;if(e)return e(n);let i=n.offsetParent;return Xr(n)===i&&(i=i.ownerDocument.body),i}function m2(n,e){const i=dr(n);if(kl(n))return i;if(!Yr(n)){let l=Ni(n);for(;l&&!uo(l);){if($r(l)&&!oc(l))return l;l=Ni(l)}return i}let o=gh(n,e);for(;o&&V7(o)&&oc(o);)o=gh(o,e);return o&&uo(o)&&oc(o)&&!tu(o)?i:o||Z7(n)||i}const t9=async function(n){const e=this.getOffsetParent||m2,i=this.getDimensions,o=await i(n.floating);return{reference:e9(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function r9(n){return Er(n).direction==="rtl"}const i9={convertOffsetParentRelativeRectToViewportRelativeRect:j7,getDocumentElement:Xr,getClippingRect:J7,getOffsetParent:m2,getElementRects:t9,getClientRects:G7,getDimensions:Q7,getScale:io,isElement:$r,isRTL:r9};function n9(n,e){let i=null,o;const l=Xr(n);function d(){var v;clearTimeout(o),(v=i)==null||v.disconnect(),i=null}function u(v,b){v===void 0&&(v=!1),b===void 0&&(b=1),d();const{left:m,top:M,width:L,height:T}=n.getBoundingClientRect();if(v||e(),!L||!T)return;const E=Os(M),H=Os(l.clientWidth-(m+L)),Y=Os(l.clientHeight-(M+T)),oe=Os(m),D={rootMargin:-E+"px "+-H+"px "+-Y+"px "+-oe+"px",threshold:ro(0,$c(1,b))||1};let I=!0;function B(K){const ue=K[0].intersectionRatio;if(ue!==b){if(!I)return u();ue?u(!1,ue):o=setTimeout(()=>{u(!1,1e-7)},1e3)}I=!1}try{i=new IntersectionObserver(B,{...D,root:l.ownerDocument})}catch{i=new IntersectionObserver(B,D)}i.observe(n)}return u(!0),d}function o9(n,e,i,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:v=typeof IntersectionObserver=="function",animationFrame:b=!1}=o,m=iu(n),M=l||d?[...m?ka(m):[],...ka(e)]:[];M.forEach(_=>{l&&_.addEventListener("scroll",i,{passive:!0}),d&&_.addEventListener("resize",i)});const L=m&&v?n9(m,i):null;let T=-1,E=null;u&&(E=new ResizeObserver(_=>{let[D]=_;D&&D.target===m&&E&&(E.unobserve(e),cancelAnimationFrame(T),T=requestAnimationFrame(()=>{var I;(I=E)==null||I.observe(e)})),i()}),m&&!b&&E.observe(m),E.observe(e));let H,Y=b?wn(n):null;b&&oe();function oe(){const _=wn(n);Y&&(_.x!==Y.x||_.y!==Y.y||_.width!==Y.width||_.height!==Y.height)&&i(),Y=_,H=requestAnimationFrame(oe)}return i(),()=>{var _;M.forEach(D=>{l&&D.removeEventListener("scroll",i),d&&D.removeEventListener("resize",i)}),L==null||L(),(_=E)==null||_.disconnect(),E=null,b&&cancelAnimationFrame(H)}}const a9=F7,s9=B7,l9=H7,c9=(n,e,i)=>{const o=new Map,l={platform:i9,...i},d={...l.platform,_c:o};return N7(n,e,{...l,platform:d})};var u9=Object.defineProperty,d9=Object.getOwnPropertyDescriptor,Ot=(n,e,i,o)=>{for(var l=o>1?void 0:o?d9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&u9(e,i,l),l};let h9=0;const ou=le("popover"),y2=le("pure-popover"),C2=["click","hover","focus"],[Js,_c,dn]=C2,au=["dialog","tooltip","menu"],[f9]=au;class w2 extends CustomEvent{constructor(e){super(`${ou}-${e}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Ce{constructor(){super(...arguments),this.distance=4,this.skidding=0,this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.isOpen=!1,this.placement="top",this.popoverRole=f9,this.disabled=!1,this.enablePositionTracking=!1,this.popoverId=`popover-${++h9}`,this.delayTimeout=0}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.cleanupFunction)==null||e.call(this)}updatePosition(){}async updated(e){super.updated(e),e.has("isOpen")&&this.isOpen&&!this.cleanupFunction&&this.createPopover()}get floatingUIOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",middleware:[a9({mainAxis:this.distance,crossAxis:this.skidding}),l9(),s9()]}}createPopover(){this.cleanupFunction||(this.cleanupFunction=o9(this.referenceElement,this.popoverElement,()=>{const e=this.floatingUIOptions;if(!this.isOpen){this.destroyPopover();return}c9(this.referenceElement,this.popoverElement,e).then(({x:i,y:o})=>{Object.assign(this.popoverElement.style,{left:`${i}px`,top:`${o}px`,position:e.strategy})})}))}destroyPopover(){var e;(e=this.cleanupFunction)==null||e.call(this),this.cleanupFunction=void 0}get referenceElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");return e==null?void 0:e.assignedElements({flatten:!0})[0]}get contentElement(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot[name=content]");return e==null?void 0:e.assignedNodes({flatten:!0})[0]}get popoverElement(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector(".popover-container")}emit(e){this.dispatchEvent(new w2(e))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.createPopover(),this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,this.destroyPopover(),await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return this.enablePositionTracking||this.isOpen?N`
136
136
  <slot></slot>
137
137
 
138
138
  <brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -142,7 +142,7 @@
142
142
  </div>
143
143
  </div>
144
144
  </brz-fade-in-out>
145
- `:N`<slot></slot>`}};exports.PurePopover.styles=J`
145
+ `:N`<slot></slot>`}};exports.PurePopover.styles=X`
146
146
  :host {
147
147
  display: contents;
148
148
  max-width: 100vw; // Probably need a more sensible max width
@@ -156,9 +156,9 @@
156
156
  position: absolute';
157
157
  width: max-content;
158
158
  }
159
- `;Ot([E({type:Number})],exports.PurePopover.prototype,"distance",2);Ot([E({type:Number})],exports.PurePopover.prototype,"skidding",2);Ot([E({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Ot([E({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Ot([E({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Ot([E({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Ot([E({type:String})],exports.PurePopover.prototype,"placement",2);Ot([E({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Ot([E({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Ot([E({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Ot([Ce()],exports.PurePopover.prototype,"popoverId",2);Ot([Ce()],exports.PurePopover.prototype,"cleanupFunction",2);Ot([Ce()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Ot([Z(m2)],exports.PurePopover);const Qs=["blur","mouseenter","mouseleave","keydown",Js,dn],[ac,u9,d9,h9]=Qs;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Js]:this.handleClick,[dn]:this.handleFocus,[ac]:this.handleBlur,[u9]:this.handleMouseEnter,[d9]:this.handleMouseLeave,[h9]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){Qs.forEach(e=>this.addEventListener(e,this.listenableEventHandlers[e],{capture:[dn,ac].includes(e)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Qs.forEach(e=>this.removeEventListener(e,this.listenableEventHandlers[e],{capture:[dn,ac].includes(e)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(e){return this.triggers.includes(e)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(e){!this.isOpen||this.contains(e.target)||this.hasPointer||await this.close()}async handleClick(e){var i;if(!(this.isOpen&&((i=this.contentElement)!=null&&i.contains(e.target)))){if(!this.hasTrigger(Js))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(dn)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(dn)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(_c)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(_c)||this.hasFocus)&&await this.close()}async handleKeyDown(e){e.stopPropagation(),["Escape","Esc"].includes(e.key)&&await this.close()}};Ot([E({type:String})],exports.Popover.prototype,"trigger",2);Ot([Ce()],exports.Popover.prototype,"hasFocus",2);Ot([Ce()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Ot([Z(ou)],exports.Popover);var f9=Object.defineProperty,p9=Object.getOwnPropertyDescriptor,pi=(n,e,i,o)=>{for(var l=o>1?void 0:o?p9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&f9(e,i,l),l};const w2=ce("tooltip"),[,g9]=au;var x2=(n=>(n[n.dark=0]="dark",n[n.light=1]="light",n))(x2||{});exports.Tooltip=class extends we{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return N`
159
+ `;Ot([$({type:Number})],exports.PurePopover.prototype,"distance",2);Ot([$({type:Number})],exports.PurePopover.prototype,"skidding",2);Ot([$({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Ot([$({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Ot([$({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Ot([$({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Ot([$({type:String})],exports.PurePopover.prototype,"placement",2);Ot([$({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Ot([$({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Ot([$({type:Boolean,attribute:"enable-position-tracking"})],exports.PurePopover.prototype,"enablePositionTracking",2);Ot([we()],exports.PurePopover.prototype,"popoverId",2);Ot([we()],exports.PurePopover.prototype,"cleanupFunction",2);Ot([we()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Ot([Z(y2)],exports.PurePopover);const Qs=["blur","mouseenter","mouseleave","keydown",Js,dn],[ac,p9,g9,v9]=Qs;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Js]:this.handleClick,[dn]:this.handleFocus,[ac]:this.handleBlur,[p9]:this.handleMouseEnter,[g9]:this.handleMouseLeave,[v9]:this.handleKeyDown},this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.handleBlur=this.handleBlur.bind(this),this.handleMouseEnter=this.handleMouseEnter.bind(this),this.handleMouseLeave=this.handleMouseLeave.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this)}async connectedCallback(){await super.connectedCallback(),await this.updateComplete,this.prepareListeners()}async disconnectedCallback(){super.disconnectedCallback(),this.teardownListeners()}prepareListeners(){Qs.forEach(e=>this.addEventListener(e,this.listenableEventHandlers[e],{capture:[dn,ac].includes(e)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Qs.forEach(e=>this.removeEventListener(e,this.listenableEventHandlers[e],{capture:[dn,ac].includes(e)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(e){return this.triggers.includes(e)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(e){!this.isOpen||this.contains(e.target)||this.hasPointer||await this.close()}async handleClick(e){var i;if(!(this.isOpen&&((i=this.contentElement)!=null&&i.contains(e.target)))){if(!this.hasTrigger(Js))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(dn)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(dn)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(_c)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(_c)||this.hasFocus)&&await this.close()}async handleKeyDown(e){e.stopPropagation(),["Escape","Esc"].includes(e.key)&&await this.close()}};Ot([$({type:String})],exports.Popover.prototype,"trigger",2);Ot([we()],exports.Popover.prototype,"hasFocus",2);Ot([we()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Ot([Z(ou)],exports.Popover);var b9=Object.defineProperty,m9=Object.getOwnPropertyDescriptor,pi=(n,e,i,o)=>{for(var l=o>1?void 0:o?m9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&b9(e,i,l),l};const x2=le("tooltip"),[,y9]=au;var z2=(n=>(n[n.dark=0]="dark",n[n.light=1]="light",n))(z2||{});exports.Tooltip=class extends Ce{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.disabled=!1,this.content="",this.theme="dark"}render(){return N`
160
160
  <brz-popover
161
- .popoverRole=${g9}
161
+ .popoverRole=${y9}
162
162
  .distance=${8}
163
163
  .delayOnClose=${this.delayOnClose}
164
164
  .delayOnOpen=${this.delayOnOpen}
@@ -170,7 +170,7 @@
170
170
  <slot></slot>
171
171
  <div slot="content">${this.content}</div>
172
172
  </brz-popover>
173
- `}};exports.Tooltip.styles=J`
173
+ `}};exports.Tooltip.styles=X`
174
174
  :host div[slot='content'] {
175
175
  border-radius: var(--brz-border-radius-default);
176
176
  box-shadow: var(--brz-box-shadow-menu);
@@ -191,7 +191,7 @@
191
191
  background-color: var(--brz-color-white);
192
192
  color: var(--brz-color-text);
193
193
  }
194
- `;pi([E({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);pi([E({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);pi([E({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);pi([E({type:String})],exports.Tooltip.prototype,"placement",2);pi([E({type:String})],exports.Tooltip.prototype,"trigger",2);pi([E({type:Boolean})],exports.Tooltip.prototype,"disabled",2);pi([E({type:String})],exports.Tooltip.prototype,"content",2);pi([E({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=pi([Z(w2)],exports.Tooltip);var v9=Object.defineProperty,b9=Object.getOwnPropertyDescriptor,mr=(n,e,i,o)=>{for(var l=o>1?void 0:o?b9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&v9(e,i,l),l};const z2=ce("avatar"),L2=ce("avatar-group");var el=(n=>(n[n.tiny=0]="tiny",n[n.small=1]="small",n[n.medium=2]="medium",n[n.large=3]="large",n))(el||{}),S2=(n=>(n[n.solid=0]="solid",n[n.subtle=1]="subtle",n[n.border=2]="border",n))(S2||{});exports.Avatar=class extends we{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:e}){const i=e==null?void 0:e.assignedElements({flatten:!0});this.slottedElementsCount=i.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const i=el[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const e=el[this.size],i=()=>{switch(e){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return N`
194
+ `;pi([$({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);pi([$({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);pi([$({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);pi([$({type:String})],exports.Tooltip.prototype,"placement",2);pi([$({type:String})],exports.Tooltip.prototype,"trigger",2);pi([$({type:Boolean})],exports.Tooltip.prototype,"disabled",2);pi([$({type:String})],exports.Tooltip.prototype,"content",2);pi([$({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=pi([Z(x2)],exports.Tooltip);var C9=Object.defineProperty,w9=Object.getOwnPropertyDescriptor,mr=(n,e,i,o)=>{for(var l=o>1?void 0:o?w9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&C9(e,i,l),l};const L2=le("avatar"),S2=le("avatar-group");var el=(n=>(n[n.tiny=0]="tiny",n[n.small=1]="small",n[n.medium=2]="medium",n[n.large=3]="large",n))(el||{}),M2=(n=>(n[n.solid=0]="solid",n[n.subtle=1]="subtle",n[n.border=2]="border",n))(M2||{});exports.Avatar=class extends Ce{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:e}){const i=e==null?void 0:e.assignedElements({flatten:!0});this.slottedElementsCount=i.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const i=el[this.size]<2?1:2;return this.label.split(" ").slice(0,i).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const e=el[this.size],i=()=>{switch(e){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return N`
195
195
  <span class="icon" aria-label=${this.label}>
196
196
  <brz-icon size=${i()} icon=${He(this.icon)}></brz-icon>
197
197
  </span>
@@ -229,7 +229,7 @@
229
229
  </div>
230
230
  </brz-tooltip>`}
231
231
  ${this.slotTemplate}
232
- `}};exports.Avatar.styles=J`
232
+ `}};exports.Avatar.styles=X`
233
233
  :host {
234
234
  --brz-avatar-background-color: var(--brz-color-neutral-700);
235
235
  --brz-avatar-border-radius: 50%;
@@ -265,7 +265,7 @@
265
265
  width: var(--brz-avatar-diameter);
266
266
  }
267
267
 
268
- ${yn(".container",J`
268
+ ${yn(".container",X`
269
269
  z-index: 1;
270
270
  `)}
271
271
 
@@ -368,7 +368,7 @@
368
368
  :host brz-link .container {
369
369
  cursor: pointer;
370
370
  }
371
- `;mr([E({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);mr([E({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);mr([E({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);mr([E({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);mr([E({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);mr([E({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);mr([E({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);mr([E({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);mr([E({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);mr([Ce()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=mr([Z(z2)],exports.Avatar);exports.AvatarGroup=class extends we{render(){return N` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=J`
371
+ `;mr([$({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);mr([$({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);mr([$({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);mr([$({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);mr([$({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);mr([$({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);mr([$({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);mr([$({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);mr([$({type:String,reflect:!0})],exports.Avatar.prototype,"hyperlink",2);mr([we()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=mr([Z(L2)],exports.Avatar);exports.AvatarGroup=class extends Ce{render(){return N` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=X`
372
372
  :host .container {
373
373
  align-items: center;
374
374
  display: inline-flex;
@@ -379,16 +379,16 @@
379
379
  ::slotted(sp-avatar:not(:first-child)) {
380
380
  margin-left: -0.6em;
381
381
  }
382
- `;exports.AvatarGroup=mr([Z(L2)],exports.AvatarGroup);const su=.25,Ia=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],m9=Ia.map(n=>J`
382
+ `;exports.AvatarGroup=mr([Z(S2)],exports.AvatarGroup);const su=.25,Ia=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],x9=Ia.map(n=>X`
383
383
  --brz-spacing-${n}: ${n*su}rem;
384
- `),M2=J`
384
+ `),T2=X`
385
385
  :host {
386
386
  --brz-spacing-px: 1px;
387
387
  --brz-spacing-half: ${.5*su}rem;
388
388
 
389
- ${qr(m9.join(""))};
389
+ ${qr(x9.join(""))};
390
390
  }
391
- `,y9=["m","p"],C9=["x","y"],w9=["t","r","b","l"],x9=y9.flatMap(n=>[n,...C9.map(e=>`${n}${e}`),...w9.map(e=>`${n}${e}`)]),z9=x9.reduce((n,e)=>({...n,[e]:{type:Number,reflect:!0}}),{}),L9=n=>J`
391
+ `,z9=["m","p"],L9=["x","y"],S9=["t","r","b","l"],M9=z9.flatMap(n=>[n,...L9.map(e=>`${n}${e}`),...S9.map(e=>`${n}${e}`)]),T9=M9.reduce((n,e)=>({...n,[e]:{type:Number,reflect:!0}}),{}),k9=n=>X`
392
392
  :host([m='${n}']),
393
393
  :host([my='${n}']),
394
394
  :host([mt='${n}']) {
@@ -436,7 +436,7 @@
436
436
  :host([pr='${n}']) {
437
437
  padding-right: var(--brz-spacing-${n});
438
438
  }
439
- `,S9=Ia.map(L9),M9=n=>{var i,o;class e extends n{}return e.styles=[(i=n.styles)!=null?i:[],...S9],e.properties={...(o=n.properties)!=null?o:{},...z9},e},po=M9(we),T9=n=>n.viewBox!==void 0,k9={arrowDown:{svg:F`
439
+ `,O9=Ia.map(k9),$9=n=>{var i,o;class e extends n{}return e.styles=[(i=n.styles)!=null?i:[],...O9],e.properties={...(o=n.properties)!=null?o:{},...T9},e},po=$9(Ce),E9=n=>n.viewBox!==void 0,_9={arrowDown:{svg:F`
440
440
  <title>Asset 36</title>
441
441
  <g data-name="Layer 2">
442
442
  <g data-name="Layer 1">
@@ -749,7 +749,7 @@
749
749
  C7,14.1,7,14.1,7,14.1z"/>
750
750
  <path d="M10,20c-1.5,0-3-0.3-4.4-1c-2.4-1.2-4.2-3.2-5.1-5.7C-1.2,8,1.5,2.3,6.7,0.5c5.2-1.8,10.9,1,12.7,6.2
751
751
  c1.8,5.2-1,10.9-6.2,12.7l0,0C12.2,19.8,11.1,20,10,20z M12.9,18.5L12.9,18.5L12.9,18.5z M10,2C9.1,2,8.3,2.1,7.4,2.4
752
- c-4.2,1.4-6.4,6-5,10.2c0.7,2,2.1,3.6,4.1,4.6c1.9,0.9,4.1,1.1,6.1,0.4c4.2-1.4,6.4-6,5-10.2C16.4,4.1,13.3,2,10,2z"/>`},upDown:{viewBox:"0 0 10 18",svg:F`<path d="M8.74818914,5.57757178 C9.10122662,5.22949983 9.09992902,4.66388436 8.74089535,4.30990056 L5.65231403,1.26476075 C5.29524829,0.912717214 4.71829829,0.910776954 4.35926462,1.26476075 L1.2706833,4.30990056 C0.913617563,4.6619441 0.908617118,5.22778933 1.26338951,5.57757178 L1.32624321,5.63954142 C1.67928069,5.98761337 2.24605009,5.99315182 2.61024678,5.63407763 L5.00578932,3.27222886 L7.40133187,5.63407763 C7.75742997,5.98516714 8.33056305,5.98932387 8.68533544,5.63954142 L8.74818914,5.57757178 Z M1.26338951,12.4302063 C0.910352023,12.7782783 0.911649623,13.3438938 1.2706833,13.6978776 L4.35926462,16.7430174 C4.71633035,17.0950609 5.29328035,17.0970012 5.65231403,16.7430174 L8.74089535,13.6978776 C9.09796108,13.345834 9.10296153,12.7799888 8.74818914,12.4302063 L8.68533544,12.3682367 C8.33229795,12.0201647 7.76552856,12.0146263 7.40133187,12.3737005 L5.00578932,14.7355492 L2.61024678,12.3737005 C2.25414867,12.022611 1.6810156,12.0184542 1.32624321,12.3682367 L1.26338951,12.4302063 Z"></path>`},warningFill:{viewBox:"0 0 19 17",svg:F`<path class="cls-1" d="M18.84,15.8,11.36,1.67a2.17,2.17,0,0,0-.84-.85A2,2,0,0,0,9.47.5a2.22,2.22,0,0,0-1.9,1.17L.09,15.8A1.21,1.21,0,0,0,1,17.5H17.89a.94.94,0,0,0,.53-.11A1.18,1.18,0,0,0,18.84,15.8Zm-9.35-.72a1,1,0,1,1,1-1A1,1,0,0,1,9.49,15.08Zm1-4a1,1,0,0,1-2,0v-5a1,1,0,1,1,2,0Z" transform="translate(0.01 -0.5)"/>`}},O9="0 0 18 18",T2=n=>T9(n)?n:{svg:n,viewBox:O9},lu={actions:F`
752
+ c-4.2,1.4-6.4,6-5,10.2c0.7,2,2.1,3.6,4.1,4.6c1.9,0.9,4.1,1.1,6.1,0.4c4.2-1.4,6.4-6,5-10.2C16.4,4.1,13.3,2,10,2z"/>`},upDown:{viewBox:"0 0 10 18",svg:F`<path d="M8.74818914,5.57757178 C9.10122662,5.22949983 9.09992902,4.66388436 8.74089535,4.30990056 L5.65231403,1.26476075 C5.29524829,0.912717214 4.71829829,0.910776954 4.35926462,1.26476075 L1.2706833,4.30990056 C0.913617563,4.6619441 0.908617118,5.22778933 1.26338951,5.57757178 L1.32624321,5.63954142 C1.67928069,5.98761337 2.24605009,5.99315182 2.61024678,5.63407763 L5.00578932,3.27222886 L7.40133187,5.63407763 C7.75742997,5.98516714 8.33056305,5.98932387 8.68533544,5.63954142 L8.74818914,5.57757178 Z M1.26338951,12.4302063 C0.910352023,12.7782783 0.911649623,13.3438938 1.2706833,13.6978776 L4.35926462,16.7430174 C4.71633035,17.0950609 5.29328035,17.0970012 5.65231403,16.7430174 L8.74089535,13.6978776 C9.09796108,13.345834 9.10296153,12.7799888 8.74818914,12.4302063 L8.68533544,12.3682367 C8.33229795,12.0201647 7.76552856,12.0146263 7.40133187,12.3737005 L5.00578932,14.7355492 L2.61024678,12.3737005 C2.25414867,12.022611 1.6810156,12.0184542 1.32624321,12.3682367 L1.26338951,12.4302063 Z"></path>`},warningFill:{viewBox:"0 0 19 17",svg:F`<path class="cls-1" d="M18.84,15.8,11.36,1.67a2.17,2.17,0,0,0-.84-.85A2,2,0,0,0,9.47.5a2.22,2.22,0,0,0-1.9,1.17L.09,15.8A1.21,1.21,0,0,0,1,17.5H17.89a.94.94,0,0,0,.53-.11A1.18,1.18,0,0,0,18.84,15.8Zm-9.35-.72a1,1,0,1,1,1-1A1,1,0,0,1,9.49,15.08Zm1-4a1,1,0,0,1-2,0v-5a1,1,0,1,1,2,0Z" transform="translate(0.01 -0.5)"/>`}},A9="0 0 18 18",k2=n=>E9(n)?n:{svg:n,viewBox:A9},lu={actions:F`
753
753
  <g stroke="none" stroke-width="1" fill-rule="evenodd">
754
754
  <g transform="translate(-0.002970, 0.000000)">
755
755
  <path d="M8,0.100006104 L8,0.0549287778 C3.50004954,0.552373066 0,4.36744635 0,9 C0,13.6325537 3.50004954,17.4476269 8,17.9450712 L8,17.8999939 C8.55228475,17.8999939 9,17.4522786 9,16.8999939 C9,16.3477091 8.55228475,15.8999939 8,15.8999939 C7.95488652,15.8999939 7.91047077,15.9029813 7.86693979,15.908769 C4.53975459,15.3672534 2,12.4802225 2,9 C2,5.51977755 4.53975459,2.63274657 7.86693979,2.09123103 C7.91047077,2.09701874 7.95488652,2.1000061 8,2.1000061 C8.55228475,2.1000061 9,1.65229085 9,1.1000061 C9,0.547721354 8.55228475,0.100006104 8,0.100006104 Z"></path>
@@ -1226,7 +1226,7 @@
1226
1226
  <circle class="st0" cx="9" cy="13" r="1"/>
1227
1227
  <path class="st0" d="M9,6.2c-0.6,0-1,0.4-1,1v3c0,0.6,0.4,1,1,1c0.6,0,1-0.4,1-1v-3C10,6.6,9.6,6.2,9,6.2z"/>
1228
1228
  </g>
1229
- <path d="M9,3.1l6.4,12H2.6L9,3.1 M9,1C8.3,1,7.6,1.4,7.2,2.1L0.1,15.4C0,15.6,0,15.8,0,15.9C0,16.5,0.5,17,1,17h16 c0.2,0,0.3,0,0.5-0.1c0.5-0.3,0.7-0.9,0.4-1.5L10.8,2.1c-0.2-0.3-0.4-0.6-0.8-0.8C9.7,1.1,9.3,1,9,1L9,1z"/>`,zoomIn:F`<path d="M10,8V4.8c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1V8L4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1H8v3.3c0,0.6,0.4,1,1,1 c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7V10h3.3c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H10z"/>`,zoomOut:F`<path d="M4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1h8.5c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H4.8z"/>`,...k9},$9=Object.keys(lu);var E9=Object.defineProperty,_9=Object.getOwnPropertyDescriptor,cu=(n,e,i,o)=>{for(var l=o>1?void 0:o?_9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&E9(e,i,l),l};const k2=ce("icon");exports.Icon=class extends we{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:e,viewBox:i}=T2(lu[this.icon]);return N`
1229
+ <path d="M9,3.1l6.4,12H2.6L9,3.1 M9,1C8.3,1,7.6,1.4,7.2,2.1L0.1,15.4C0,15.6,0,15.8,0,15.9C0,16.5,0.5,17,1,17h16 c0.2,0,0.3,0,0.5-0.1c0.5-0.3,0.7-0.9,0.4-1.5L10.8,2.1c-0.2-0.3-0.4-0.6-0.8-0.8C9.7,1.1,9.3,1,9,1L9,1z"/>`,zoomIn:F`<path d="M10,8V4.8c0-0.6-0.4-1-1-1c-0.6,0-1,0.4-1,1V8L4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1H8v3.3c0,0.6,0.4,1,1,1 c0.3,0,0.5-0.1,0.7-0.3c0.2-0.2,0.3-0.4,0.3-0.7V10h3.3c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H10z"/>`,zoomOut:F`<path d="M4.8,8c-0.6,0-1,0.4-1,1s0.4,1,1,1h8.5c0.3,0,0.6-0.1,0.7-0.3c0.1-0.1,0.3-0.4,0.3-0.7c0-0.6-0.4-1-1-1H4.8z"/>`,..._9},I9=Object.keys(lu);var P9=Object.defineProperty,D9=Object.getOwnPropertyDescriptor,cu=(n,e,i,o)=>{for(var l=o>1?void 0:o?D9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&P9(e,i,l),l};const O2=le("icon");exports.Icon=class extends Ce{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:e,viewBox:i}=k2(lu[this.icon]);return N`
1230
1230
  <svg
1231
1231
  role="presentation"
1232
1232
  width=${this.size}
@@ -1235,7 +1235,7 @@
1235
1235
  >
1236
1236
  ${e}
1237
1237
  </svg>
1238
- `}};exports.Icon.styles=J`
1238
+ `}};exports.Icon.styles=X`
1239
1239
  :host {
1240
1240
  /* to get rid of extra height caused by white space */
1241
1241
  line-height: 0;
@@ -1244,7 +1244,7 @@
1244
1244
  svg {
1245
1245
  fill: currentColor;
1246
1246
  }
1247
- `;cu([E({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);cu([E({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=cu([Z(k2)],exports.Icon);var I9=Object.defineProperty,A9=Object.getOwnPropertyDescriptor,gi=(n,e,i,o)=>{for(var l=o>1?void 0:o?A9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&I9(e,i,l),l};const O2=ce("link"),$2=ce("link-button"),P9=["a","button"],D9=J`
1247
+ `;cu([$({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);cu([$({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=cu([Z(O2)],exports.Icon);var N9=Object.defineProperty,H9=Object.getOwnPropertyDescriptor,gi=(n,e,i,o)=>{for(var l=o>1?void 0:o?H9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&N9(e,i,l),l};const $2=le("link"),E2=le("link-button"),R9=["a","button"],F9=X`
1248
1248
  :host {
1249
1249
  display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
1250
1250
  align-items: center;
@@ -1252,11 +1252,11 @@
1252
1252
  font-weight: var(--brz-font-weight-medium);
1253
1253
  }
1254
1254
 
1255
- ${yn("a",J`
1255
+ ${yn("a",X`
1256
1256
  border-radius: var(--brz-outline-border-radius);
1257
1257
  `)}
1258
1258
 
1259
- ${yn("button",J`
1259
+ ${yn("button",X`
1260
1260
  border-radius: var(--brz-outline-border-radius);
1261
1261
  `)}
1262
1262
 
@@ -1278,12 +1278,12 @@
1278
1278
  :host([link-type='secondary']:hover) {
1279
1279
  text-decoration: none;
1280
1280
  }
1281
- `,uu=J`
1281
+ `,uu=X`
1282
1282
  a {
1283
1283
  color: inherit;
1284
1284
  text-decoration: inherit;
1285
1285
  }
1286
- `,N9=J`
1286
+ `,B9=X`
1287
1287
  button {
1288
1288
  font-family: inherit;
1289
1289
  font-size: inherit;
@@ -1295,7 +1295,7 @@
1295
1295
  color: inherit;
1296
1296
  cursor: pointer;
1297
1297
  }
1298
- `,H9=["primary","secondary"];exports.Link=class extends we{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(e){this.virtual&&e.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?N`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return N`
1298
+ `,V9=["primary","secondary"];exports.Link=class extends Ce{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(e){this.virtual&&e.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?N`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return N`
1299
1299
  <a
1300
1300
  href=${He(this.href)}
1301
1301
  target=${He(this.target)}
@@ -1312,7 +1312,7 @@
1312
1312
  </button>
1313
1313
 
1314
1314
  ${this.externalIcon}
1315
- `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[uu,N9,D9];gi([E()],exports.Link.prototype,"element",2);gi([E({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);gi([E({type:String,reflect:!0})],exports.Link.prototype,"href",2);gi([E({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);gi([E({type:String,reflect:!0})],exports.Link.prototype,"target",2);gi([E({type:String,reflect:!0})],exports.Link.prototype,"rel",2);gi([E({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=gi([Z(O2)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=gi([Z($2)],exports.LinkButton);var R9=Object.defineProperty,F9=Object.getOwnPropertyDescriptor,$l=(n,e,i,o)=>{for(var l=o>1?void 0:o?F9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&R9(e,i,l),l};const E2=ce("row"),_2=ce("column");exports.Row=class extends we{render(){return N`<slot></slot>`}};exports.Row.styles=J`
1315
+ `}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[uu,B9,F9];gi([$()],exports.Link.prototype,"element",2);gi([$({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);gi([$({type:String,reflect:!0})],exports.Link.prototype,"href",2);gi([$({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);gi([$({type:String,reflect:!0})],exports.Link.prototype,"target",2);gi([$({type:String,reflect:!0})],exports.Link.prototype,"rel",2);gi([$({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=gi([Z($2)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=gi([Z(E2)],exports.LinkButton);var Z9=Object.defineProperty,W9=Object.getOwnPropertyDescriptor,$l=(n,e,i,o)=>{for(var l=o>1?void 0:o?W9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Z9(e,i,l),l};const _2=le("row"),A2=le("column");exports.Row=class extends Ce{render(){return N`<slot></slot>`}};exports.Row.styles=X`
1316
1316
  :host {
1317
1317
  display: flex;
1318
1318
  flex-direction: row;
@@ -1331,7 +1331,7 @@
1331
1331
  :host([vertical-align='bottom']) {
1332
1332
  align-items: flex-end;
1333
1333
  }
1334
- `;$l([E({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=$l([Z(E2)],exports.Row);exports.Column=class extends we{render(){return N`<slot></slot>`}};exports.Column.styles=J`
1334
+ `;$l([$({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=$l([Z(_2)],exports.Row);exports.Column=class extends Ce{render(){return N`<slot></slot>`}};exports.Column.styles=X`
1335
1335
  :host {
1336
1336
  display: flex;
1337
1337
  flex-direction: column;
@@ -1350,7 +1350,7 @@
1350
1350
  :host([align='right']) {
1351
1351
  align-items: flex-end;
1352
1352
  }
1353
- `;$l([E({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=$l([Z(_2)],exports.Column);var B9=Object.defineProperty,V9=Object.getOwnPropertyDescriptor,I2=(n,e,i,o)=>{for(var l=o>1?void 0:o?V9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&B9(e,i,l),l};const A2=ce("loading-spinner");exports.LoadingSpinner=class extends we{constructor(){super(...arguments),this.size=24}render(){return N`
1353
+ `;$l([$({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=$l([Z(A2)],exports.Column);var U9=Object.defineProperty,j9=Object.getOwnPropertyDescriptor,I2=(n,e,i,o)=>{for(var l=o>1?void 0:o?j9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&U9(e,i,l),l};const P2=le("loading-spinner");exports.LoadingSpinner=class extends Ce{constructor(){super(...arguments),this.size=24}render(){return N`
1354
1354
  <div class="loading-spinner">
1355
1355
  <svg
1356
1356
  class="loading-spinner--circular"
@@ -1370,7 +1370,7 @@
1370
1370
  />
1371
1371
  </svg>
1372
1372
  </div>
1373
- `}};exports.LoadingSpinner.styles=J`
1373
+ `}};exports.LoadingSpinner.styles=X`
1374
1374
  .loading-spinner {
1375
1375
  display: flex;
1376
1376
  justify-content: center;
@@ -1405,8 +1405,8 @@
1405
1405
  stroke-dashoffset: -124px;
1406
1406
  }
1407
1407
  }
1408
- `;I2([E({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=I2([Z(A2)],exports.LoadingSpinner);var Z9=Object.defineProperty,W9=Object.getOwnPropertyDescriptor,$t=(n,e,i,o)=>{for(var l=o>1?void 0:o?W9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Z9(e,i,l),l};const du=ce("button"),P2=ce("button-group");class D2 extends CustomEvent{constructor(e){super(`${du}-${e}`,{bubbles:!0,composed:!0})}}const U9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends po{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.tooltipText="",this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(i=>{var o;return!!((o=i.textContent)!=null&&o.replace(`
1409
- `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(e){this.buttonElement.focus(e)}emit(e){this.dispatchEvent(new D2(e))}get classes(){return Qt({button:!0,primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading,disabled:this.disabled})}handleClick(){this.disabled||this.emit("click")}get anchorTemplate(){return N`
1408
+ `;I2([$({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=I2([Z(P2)],exports.LoadingSpinner);var G9=Object.defineProperty,q9=Object.getOwnPropertyDescriptor,$t=(n,e,i,o)=>{for(var l=o>1?void 0:o?q9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&G9(e,i,l),l};const du=le("button"),D2=le("button-group");class N2 extends CustomEvent{constructor(e){super(`${du}-${e}`,{bubbles:!0,composed:!0})}}const K9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends po{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.tooltipText="",this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(i=>{var o;return!!((o=i.textContent)!=null&&o.replace(`
1409
+ `,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(e){this.buttonElement.focus(e)}emit(e){this.dispatchEvent(new N2(e))}get classes(){return Qt({button:!0,primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading,disabled:this.disabled})}handleClick(){this.disabled||this.emit("click")}get anchorTemplate(){return N`
1410
1410
  <a
1411
1411
  part="button"
1412
1412
  role="button"
@@ -1449,7 +1449,7 @@
1449
1449
  </div>
1450
1450
 
1451
1451
  ${this.loading?N`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
1452
- `}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return He(this.tooltipText)?this.buttonTemplateWithTooltip:this.buttonTemplate}}};var Pf;exports.Button.styles=[(Pf=po.styles)!=null?Pf:[],uu,J`
1452
+ `}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return He(this.tooltipText)?this.buttonTemplateWithTooltip:this.buttonTemplate}}};var Df;exports.Button.styles=[(Df=po.styles)!=null?Df:[],uu,X`
1453
1453
  :host {
1454
1454
  --brz-button-background-color: transparent;
1455
1455
  --brz-button-border-width: var(--brz-spacing-px);
@@ -1649,9 +1649,9 @@
1649
1649
  brz-tooltip {
1650
1650
  display: flex;
1651
1651
  }
1652
- `];$t([E()],exports.Button.prototype,"element",2);$t([E({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);$t([E({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);$t([E({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);$t([E({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);$t([E({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);$t([E({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);$t([E({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);$t([E()],exports.Button.prototype,"href",2);$t([E()],exports.Button.prototype,"target",2);$t([E()],exports.Button.prototype,"rel",2);$t([E({type:String,attribute:"tooltip-text"})],exports.Button.prototype,"tooltipText",2);$t([E({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);$t([Ir("button")],exports.Button.prototype,"buttonElement",2);$t([Qc()],exports.Button.prototype,"defaultSlot",2);exports.Button=$t([Z(du)],exports.Button);exports.ButtonGroup=class extends we{constructor(){super(...arguments),this.compact=!1}render(){return N`<brz-row class=${Qt({compact:this.compact})}
1652
+ `];$t([$()],exports.Button.prototype,"element",2);$t([$({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);$t([$({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);$t([$({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);$t([$({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);$t([$({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);$t([$({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);$t([$({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);$t([$()],exports.Button.prototype,"href",2);$t([$()],exports.Button.prototype,"target",2);$t([$()],exports.Button.prototype,"rel",2);$t([$({type:String,attribute:"tooltip-text"})],exports.Button.prototype,"tooltipText",2);$t([$({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);$t([Ar("button")],exports.Button.prototype,"buttonElement",2);$t([Qc()],exports.Button.prototype,"defaultSlot",2);exports.Button=$t([Z(du)],exports.Button);exports.ButtonGroup=class extends Ce{constructor(){super(...arguments),this.compact=!1}render(){return N`<brz-row class=${Qt({compact:this.compact})}
1653
1653
  ><slot></slot
1654
- ></brz-row>`}};exports.ButtonGroup.styles=J`
1654
+ ></brz-row>`}};exports.ButtonGroup.styles=X`
1655
1655
  brz-row {
1656
1656
  --brz-row-spacing: var(--brz-spacing-1);
1657
1657
  }
@@ -1668,7 +1668,7 @@
1668
1668
  --brz-button-r-radius: 0;
1669
1669
  --brz-border-r-width: 0;
1670
1670
  }
1671
- `;$t([E({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=$t([Z(P2)],exports.ButtonGroup);const j9=["small","medium","large"];var G9=Object.defineProperty,q9=Object.getOwnPropertyDescriptor,Jr=(n,e,i,o)=>{for(var l=o>1?void 0:o?q9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&G9(e,i,l),l};const N2=ce("dropdown-menu"),K9=[...j9,"fluid"];exports.DropdownMenu=class extends we{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(e){super.updated(e),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:e,offsetWidth:i}=this.referenceElement,o=window.getComputedStyle(this.referenceElement);this.fluidWidth=o.boxSizing==="border-box"&&o.width!==void 0?e:i}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){const e=document.activeElement;(e===this.menu||e&&this.menu.contains(e))&&requestAnimationFrame(()=>{try{this.referenceElement&&typeof this.referenceElement.focus=="function"&&this.referenceElement.focus()}catch{}}),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var e;(e=this.popover)==null||e.updatePosition()}render(){return N`
1671
+ `;$t([$({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=$t([Z(D2)],exports.ButtonGroup);const Y9=["small","medium","large"];var X9=Object.defineProperty,J9=Object.getOwnPropertyDescriptor,Jr=(n,e,i,o)=>{for(var l=o>1?void 0:o?J9(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&X9(e,i,l),l};const H2=le("dropdown-menu"),Q9=[...Y9,"fluid"];exports.DropdownMenu=class extends Ce{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(e){super.updated(e),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:e,offsetWidth:i}=this.referenceElement,o=window.getComputedStyle(this.referenceElement);this.fluidWidth=o.boxSizing==="border-box"&&o.width!==void 0?e:i}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){const e=document.activeElement;(e===this.menu||e&&this.menu.contains(e))&&requestAnimationFrame(()=>{try{this.referenceElement&&typeof this.referenceElement.focus=="function"&&this.referenceElement.focus()}catch{}}),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var e;(e=this.popover)==null||e.updatePosition()}render(){return N`
1672
1672
  <brz-popover
1673
1673
  trigger="click"
1674
1674
  placement="bottom-start"
@@ -1693,7 +1693,7 @@
1693
1693
  <slot name="options"></slot>
1694
1694
  </brz-menu>
1695
1695
  </brz-popover>
1696
- `}};exports.DropdownMenu.styles=J`
1696
+ `}};exports.DropdownMenu.styles=X`
1697
1697
  ${yn(":focus-within brz-menu:focus-visible")};
1698
1698
  brz-menu {
1699
1699
  overflow-y: auto;
@@ -1716,36 +1716,36 @@
1716
1716
  brz-menu::-webkit-scrollbar-track {
1717
1717
  background-clip: padding-box;
1718
1718
  }
1719
- `;Jr([E({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Jr([E({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Jr([E({type:Array})],exports.DropdownMenu.prototype,"selected",2);Jr([E()],exports.DropdownMenu.prototype,"size",2);Jr([Ce()],exports.DropdownMenu.prototype,"fluidWidth",2);Jr([Ce()],exports.DropdownMenu.prototype,"disabled",2);Jr([Ir("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Jr([Ir("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Jr([fi()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Jr([Z(N2)],exports.DropdownMenu);var ba=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function hu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Y9(n,e,i,o){for(var l=n.length,d=i+(o?1:-1);o?d--:++d<l;)if(e(n[d],d,n))return d;return-1}var X9=Y9;function J9(){this.__data__=[],this.size=0}var Q9=J9;function e8(n,e){return n===e||n!==n&&e!==e}var fu=e8,t8=fu;function r8(n,e){for(var i=n.length;i--;)if(t8(n[i][0],e))return i;return-1}var El=r8,i8=El,n8=Array.prototype,o8=n8.splice;function a8(n){var e=this.__data__,i=i8(e,n);if(i<0)return!1;var o=e.length-1;return i==o?e.pop():o8.call(e,i,1),--this.size,!0}var s8=a8,l8=El;function c8(n){var e=this.__data__,i=l8(e,n);return i<0?void 0:e[i][1]}var u8=c8,d8=El;function h8(n){return d8(this.__data__,n)>-1}var f8=h8,p8=El;function g8(n,e){var i=this.__data__,o=p8(i,n);return o<0?(++this.size,i.push([n,e])):i[o][1]=e,this}var v8=g8,b8=Q9,m8=s8,y8=u8,C8=f8,w8=v8;function go(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}go.prototype.clear=b8;go.prototype.delete=m8;go.prototype.get=y8;go.prototype.has=C8;go.prototype.set=w8;var _l=go,x8=_l;function z8(){this.__data__=new x8,this.size=0}var L8=z8;function S8(n){var e=this.__data__,i=e.delete(n);return this.size=e.size,i}var M8=S8;function T8(n){return this.__data__.get(n)}var k8=T8;function O8(n){return this.__data__.has(n)}var $8=O8,E8=typeof ba=="object"&&ba&&ba.Object===Object&&ba,H2=E8,_8=H2,I8=typeof self=="object"&&self&&self.Object===Object&&self,A8=_8||I8||Function("return this")(),vi=A8,P8=vi,D8=P8.Symbol,Il=D8,gh=Il,R2=Object.prototype,N8=R2.hasOwnProperty,H8=R2.toString,da=gh?gh.toStringTag:void 0;function R8(n){var e=N8.call(n,da),i=n[da];try{n[da]=void 0;var o=!0}catch{}var l=H8.call(n);return o&&(e?n[da]=i:delete n[da]),l}var F8=R8,B8=Object.prototype,V8=B8.toString;function Z8(n){return V8.call(n)}var W8=Z8,vh=Il,U8=F8,j8=W8,G8="[object Null]",q8="[object Undefined]",bh=vh?vh.toStringTag:void 0;function K8(n){return n==null?n===void 0?q8:G8:bh&&bh in Object(n)?U8(n):j8(n)}var Aa=K8;function Y8(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Pa=Y8,X8=Aa,J8=Pa,Q8="[object AsyncFunction]",eg="[object Function]",tg="[object GeneratorFunction]",rg="[object Proxy]";function ig(n){if(!J8(n))return!1;var e=X8(n);return e==eg||e==tg||e==Q8||e==rg}var F2=ig,ng=vi,og=ng["__core-js_shared__"],ag=og,sc=ag,mh=function(){var n=/[^.]+$/.exec(sc&&sc.keys&&sc.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function sg(n){return!!mh&&mh in n}var lg=sg,cg=Function.prototype,ug=cg.toString;function dg(n){if(n!=null){try{return ug.call(n)}catch{}try{return n+""}catch{}}return""}var B2=dg,hg=F2,fg=lg,pg=Pa,gg=B2,vg=/[\\^$.*+?()[\]{}|]/g,bg=/^\[object .+?Constructor\]$/,mg=Function.prototype,yg=Object.prototype,Cg=mg.toString,wg=yg.hasOwnProperty,xg=RegExp("^"+Cg.call(wg).replace(vg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zg(n){if(!pg(n)||fg(n))return!1;var e=hg(n)?xg:bg;return e.test(gg(n))}var Lg=zg;function Sg(n,e){return n==null?void 0:n[e]}var Mg=Sg,Tg=Lg,kg=Mg;function Og(n,e){var i=kg(n,e);return Tg(i)?i:void 0}var vo=Og,$g=vo,Eg=vi,_g=$g(Eg,"Map"),pu=_g,Ig=vo,Ag=Ig(Object,"create"),Al=Ag,yh=Al;function Pg(){this.__data__=yh?yh(null):{},this.size=0}var Dg=Pg;function Ng(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Hg=Ng,Rg=Al,Fg="__lodash_hash_undefined__",Bg=Object.prototype,Vg=Bg.hasOwnProperty;function Zg(n){var e=this.__data__;if(Rg){var i=e[n];return i===Fg?void 0:i}return Vg.call(e,n)?e[n]:void 0}var Wg=Zg,Ug=Al,jg=Object.prototype,Gg=jg.hasOwnProperty;function qg(n){var e=this.__data__;return Ug?e[n]!==void 0:Gg.call(e,n)}var Kg=qg,Yg=Al,Xg="__lodash_hash_undefined__";function Jg(n,e){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=Yg&&e===void 0?Xg:e,this}var Qg=Jg,ev=Dg,tv=Hg,rv=Wg,iv=Kg,nv=Qg;function bo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}bo.prototype.clear=ev;bo.prototype.delete=tv;bo.prototype.get=rv;bo.prototype.has=iv;bo.prototype.set=nv;var ov=bo,Ch=ov,av=_l,sv=pu;function lv(){this.size=0,this.__data__={hash:new Ch,map:new(sv||av),string:new Ch}}var cv=lv;function uv(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var dv=uv,hv=dv;function fv(n,e){var i=n.__data__;return hv(e)?i[typeof e=="string"?"string":"hash"]:i.map}var Pl=fv,pv=Pl;function gv(n){var e=pv(this,n).delete(n);return this.size-=e?1:0,e}var vv=gv,bv=Pl;function mv(n){return bv(this,n).get(n)}var yv=mv,Cv=Pl;function wv(n){return Cv(this,n).has(n)}var xv=wv,zv=Pl;function Lv(n,e){var i=zv(this,n),o=i.size;return i.set(n,e),this.size+=i.size==o?0:1,this}var Sv=Lv,Mv=cv,Tv=vv,kv=yv,Ov=xv,$v=Sv;function mo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}mo.prototype.clear=Mv;mo.prototype.delete=Tv;mo.prototype.get=kv;mo.prototype.has=Ov;mo.prototype.set=$v;var gu=mo,Ev=_l,_v=pu,Iv=gu,Av=200;function Pv(n,e){var i=this.__data__;if(i instanceof Ev){var o=i.__data__;if(!_v||o.length<Av-1)return o.push([n,e]),this.size=++i.size,this;i=this.__data__=new Iv(o)}return i.set(n,e),this.size=i.size,this}var Dv=Pv,Nv=_l,Hv=L8,Rv=M8,Fv=k8,Bv=$8,Vv=Dv;function yo(n){var e=this.__data__=new Nv(n);this.size=e.size}yo.prototype.clear=Hv;yo.prototype.delete=Rv;yo.prototype.get=Fv;yo.prototype.has=Bv;yo.prototype.set=Vv;var V2=yo,Zv="__lodash_hash_undefined__";function Wv(n){return this.__data__.set(n,Zv),this}var Uv=Wv;function jv(n){return this.__data__.has(n)}var Gv=jv,qv=gu,Kv=Uv,Yv=Gv;function tl(n){var e=-1,i=n==null?0:n.length;for(this.__data__=new qv;++e<i;)this.add(n[e])}tl.prototype.add=tl.prototype.push=Kv;tl.prototype.has=Yv;var Xv=tl;function Jv(n,e){for(var i=-1,o=n==null?0:n.length;++i<o;)if(e(n[i],i,n))return!0;return!1}var Qv=Jv;function eb(n,e){return n.has(e)}var tb=eb,rb=Xv,ib=Qv,nb=tb,ob=1,ab=2;function sb(n,e,i,o,l,d){var u=i&ob,v=n.length,b=e.length;if(v!=b&&!(u&&b>v))return!1;var m=d.get(n),M=d.get(e);if(m&&M)return m==e&&M==n;var L=-1,T=!0,$=i&ab?new rb:void 0;for(d.set(n,e),d.set(e,n);++L<v;){var H=n[L],Y=e[L];if(o)var oe=u?o(Y,H,L,e,n,d):o(H,Y,L,n,e,d);if(oe!==void 0){if(oe)continue;T=!1;break}if($){if(!ib(e,function(_,D){if(!nb($,D)&&(H===_||l(H,_,i,o,d)))return $.push(D)})){T=!1;break}}else if(!(H===Y||l(H,Y,i,o,d))){T=!1;break}}return d.delete(n),d.delete(e),T}var Z2=sb,lb=vi,cb=lb.Uint8Array,ub=cb;function db(n){var e=-1,i=Array(n.size);return n.forEach(function(o,l){i[++e]=[l,o]}),i}var hb=db;function fb(n){var e=-1,i=Array(n.size);return n.forEach(function(o){i[++e]=o}),i}var pb=fb,wh=Il,xh=ub,gb=fu,vb=Z2,bb=hb,mb=pb,yb=1,Cb=2,wb="[object Boolean]",xb="[object Date]",zb="[object Error]",Lb="[object Map]",Sb="[object Number]",Mb="[object RegExp]",Tb="[object Set]",kb="[object String]",Ob="[object Symbol]",$b="[object ArrayBuffer]",Eb="[object DataView]",zh=wh?wh.prototype:void 0,lc=zh?zh.valueOf:void 0;function _b(n,e,i,o,l,d,u){switch(i){case Eb:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case $b:return!(n.byteLength!=e.byteLength||!d(new xh(n),new xh(e)));case wb:case xb:case Sb:return gb(+n,+e);case zb:return n.name==e.name&&n.message==e.message;case Mb:case kb:return n==e+"";case Lb:var v=bb;case Tb:var b=o&yb;if(v||(v=mb),n.size!=e.size&&!b)return!1;var m=u.get(n);if(m)return m==e;o|=Cb,u.set(n,e);var M=vb(v(n),v(e),o,l,d,u);return u.delete(n),M;case Ob:if(lc)return lc.call(n)==lc.call(e)}return!1}var Ib=_b;function Ab(n,e){for(var i=-1,o=e.length,l=n.length;++i<o;)n[l+i]=e[i];return n}var Pb=Ab,Db=Array.isArray,Hi=Db,Nb=Pb,Hb=Hi;function Rb(n,e,i){var o=e(n);return Hb(n)?o:Nb(o,i(n))}var Fb=Rb;function Bb(n,e){for(var i=-1,o=n==null?0:n.length,l=0,d=[];++i<o;){var u=n[i];e(u,i,n)&&(d[l++]=u)}return d}var Vb=Bb;function Zb(){return[]}var Wb=Zb,Ub=Vb,jb=Wb,Gb=Object.prototype,qb=Gb.propertyIsEnumerable,Lh=Object.getOwnPropertySymbols,Kb=Lh?function(n){return n==null?[]:(n=Object(n),Ub(Lh(n),function(e){return qb.call(n,e)}))}:jb,Yb=Kb;function Xb(n,e){for(var i=-1,o=Array(n);++i<n;)o[i]=e(i);return o}var Jb=Xb;function Qb(n){return n!=null&&typeof n=="object"}var Da=Qb,em=Aa,tm=Da,rm="[object Arguments]";function im(n){return tm(n)&&em(n)==rm}var nm=im,Sh=nm,om=Da,W2=Object.prototype,am=W2.hasOwnProperty,sm=W2.propertyIsEnumerable,lm=Sh(function(){return arguments}())?Sh:function(n){return om(n)&&am.call(n,"callee")&&!sm.call(n,"callee")},U2=lm,rl={exports:{}};function cm(){return!1}var um=cm;rl.exports;(function(n,e){var i=vi,o=um,l=e&&!e.nodeType&&e,d=l&&!0&&n&&!n.nodeType&&n,u=d&&d.exports===l,v=u?i.Buffer:void 0,b=v?v.isBuffer:void 0,m=b||o;n.exports=m})(rl,rl.exports);var j2=rl.exports,dm=9007199254740991,hm=/^(?:0|[1-9]\d*)$/;function fm(n,e){var i=typeof n;return e=e==null?dm:e,!!e&&(i=="number"||i!="symbol"&&hm.test(n))&&n>-1&&n%1==0&&n<e}var vu=fm,pm=9007199254740991;function gm(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=pm}var bu=gm,vm=Aa,bm=bu,mm=Da,ym="[object Arguments]",Cm="[object Array]",wm="[object Boolean]",xm="[object Date]",zm="[object Error]",Lm="[object Function]",Sm="[object Map]",Mm="[object Number]",Tm="[object Object]",km="[object RegExp]",Om="[object Set]",$m="[object String]",Em="[object WeakMap]",_m="[object ArrayBuffer]",Im="[object DataView]",Am="[object Float32Array]",Pm="[object Float64Array]",Dm="[object Int8Array]",Nm="[object Int16Array]",Hm="[object Int32Array]",Rm="[object Uint8Array]",Fm="[object Uint8ClampedArray]",Bm="[object Uint16Array]",Vm="[object Uint32Array]",rt={};rt[Am]=rt[Pm]=rt[Dm]=rt[Nm]=rt[Hm]=rt[Rm]=rt[Fm]=rt[Bm]=rt[Vm]=!0;rt[ym]=rt[Cm]=rt[_m]=rt[wm]=rt[Im]=rt[xm]=rt[zm]=rt[Lm]=rt[Sm]=rt[Mm]=rt[Tm]=rt[km]=rt[Om]=rt[$m]=rt[Em]=!1;function Zm(n){return mm(n)&&bm(n.length)&&!!rt[vm(n)]}var Wm=Zm;function Um(n){return function(e){return n(e)}}var jm=Um,il={exports:{}};il.exports;(function(n,e){var i=H2,o=e&&!e.nodeType&&e,l=o&&!0&&n&&!n.nodeType&&n,d=l&&l.exports===o,u=d&&i.process,v=function(){try{var b=l&&l.require&&l.require("util").types;return b||u&&u.binding&&u.binding("util")}catch{}}();n.exports=v})(il,il.exports);var Gm=il.exports,qm=Wm,Km=jm,Mh=Gm,Th=Mh&&Mh.isTypedArray,Ym=Th?Km(Th):qm,G2=Ym,Xm=Jb,Jm=U2,Qm=Hi,ey=j2,ty=vu,ry=G2,iy=Object.prototype,ny=iy.hasOwnProperty;function oy(n,e){var i=Qm(n),o=!i&&Jm(n),l=!i&&!o&&ey(n),d=!i&&!o&&!l&&ry(n),u=i||o||l||d,v=u?Xm(n.length,String):[],b=v.length;for(var m in n)(e||ny.call(n,m))&&!(u&&(m=="length"||l&&(m=="offset"||m=="parent")||d&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||ty(m,b)))&&v.push(m);return v}var ay=oy,sy=Object.prototype;function ly(n){var e=n&&n.constructor,i=typeof e=="function"&&e.prototype||sy;return n===i}var cy=ly;function uy(n,e){return function(i){return n(e(i))}}var dy=uy,hy=dy,fy=hy(Object.keys,Object),py=fy,gy=cy,vy=py,by=Object.prototype,my=by.hasOwnProperty;function yy(n){if(!gy(n))return vy(n);var e=[];for(var i in Object(n))my.call(n,i)&&i!="constructor"&&e.push(i);return e}var Cy=yy,wy=F2,xy=bu;function zy(n){return n!=null&&xy(n.length)&&!wy(n)}var q2=zy,Ly=ay,Sy=Cy,My=q2;function Ty(n){return My(n)?Ly(n):Sy(n)}var K2=Ty,ky=Fb,Oy=Yb,$y=K2;function Ey(n){return ky(n,$y,Oy)}var _y=Ey,kh=_y,Iy=1,Ay=Object.prototype,Py=Ay.hasOwnProperty;function Dy(n,e,i,o,l,d){var u=i&Iy,v=kh(n),b=v.length,m=kh(e),M=m.length;if(b!=M&&!u)return!1;for(var L=b;L--;){var T=v[L];if(!(u?T in e:Py.call(e,T)))return!1}var $=d.get(n),H=d.get(e);if($&&H)return $==e&&H==n;var Y=!0;d.set(n,e),d.set(e,n);for(var oe=u;++L<b;){T=v[L];var _=n[T],D=e[T];if(o)var A=u?o(D,_,T,e,n,d):o(_,D,T,n,e,d);if(!(A===void 0?_===D||l(_,D,i,o,d):A)){Y=!1;break}oe||(oe=T=="constructor")}if(Y&&!oe){var B=n.constructor,K=e.constructor;B!=K&&"constructor"in n&&"constructor"in e&&!(typeof B=="function"&&B instanceof B&&typeof K=="function"&&K instanceof K)&&(Y=!1)}return d.delete(n),d.delete(e),Y}var Ny=Dy,Hy=vo,Ry=vi,Fy=Hy(Ry,"DataView"),By=Fy,Vy=vo,Zy=vi,Wy=Vy(Zy,"Promise"),Uy=Wy,jy=vo,Gy=vi,qy=jy(Gy,"Set"),Ky=qy,Yy=vo,Xy=vi,Jy=Yy(Xy,"WeakMap"),Qy=Jy,Ic=By,Ac=pu,Pc=Uy,Dc=Ky,Nc=Qy,Y2=Aa,Co=B2,Oh="[object Map]",eC="[object Object]",$h="[object Promise]",Eh="[object Set]",_h="[object WeakMap]",Ih="[object DataView]",tC=Co(Ic),rC=Co(Ac),iC=Co(Pc),nC=Co(Dc),oC=Co(Nc),cn=Y2;(Ic&&cn(new Ic(new ArrayBuffer(1)))!=Ih||Ac&&cn(new Ac)!=Oh||Pc&&cn(Pc.resolve())!=$h||Dc&&cn(new Dc)!=Eh||Nc&&cn(new Nc)!=_h)&&(cn=function(n){var e=Y2(n),i=e==eC?n.constructor:void 0,o=i?Co(i):"";if(o)switch(o){case tC:return Ih;case rC:return Oh;case iC:return $h;case nC:return Eh;case oC:return _h}return e});var aC=cn,cc=V2,sC=Z2,lC=Ib,cC=Ny,Ah=aC,Ph=Hi,Dh=j2,uC=G2,dC=1,Nh="[object Arguments]",Hh="[object Array]",$s="[object Object]",hC=Object.prototype,Rh=hC.hasOwnProperty;function fC(n,e,i,o,l,d){var u=Ph(n),v=Ph(e),b=u?Hh:Ah(n),m=v?Hh:Ah(e);b=b==Nh?$s:b,m=m==Nh?$s:m;var M=b==$s,L=m==$s,T=b==m;if(T&&Dh(n)){if(!Dh(e))return!1;u=!0,M=!1}if(T&&!M)return d||(d=new cc),u||uC(n)?sC(n,e,i,o,l,d):lC(n,e,b,i,o,l,d);if(!(i&dC)){var $=M&&Rh.call(n,"__wrapped__"),H=L&&Rh.call(e,"__wrapped__");if($||H){var Y=$?n.value():n,oe=H?e.value():e;return d||(d=new cc),l(Y,oe,i,o,d)}}return T?(d||(d=new cc),cC(n,e,i,o,l,d)):!1}var pC=fC,gC=pC,Fh=Da;function X2(n,e,i,o,l){return n===e?!0:n==null||e==null||!Fh(n)&&!Fh(e)?n!==n&&e!==e:gC(n,e,i,o,X2,l)}var J2=X2,vC=V2,bC=J2,mC=1,yC=2;function CC(n,e,i,o){var l=i.length,d=l,u=!o;if(n==null)return!d;for(n=Object(n);l--;){var v=i[l];if(u&&v[2]?v[1]!==n[v[0]]:!(v[0]in n))return!1}for(;++l<d;){v=i[l];var b=v[0],m=n[b],M=v[1];if(u&&v[2]){if(m===void 0&&!(b in n))return!1}else{var L=new vC;if(o)var T=o(m,M,b,n,e,L);if(!(T===void 0?bC(M,m,mC|yC,o,L):T))return!1}}return!0}var wC=CC,xC=Pa;function zC(n){return n===n&&!xC(n)}var Q2=zC,LC=Q2,SC=K2;function MC(n){for(var e=SC(n),i=e.length;i--;){var o=e[i],l=n[o];e[i]=[o,l,LC(l)]}return e}var TC=MC;function kC(n,e){return function(i){return i==null?!1:i[n]===e&&(e!==void 0||n in Object(i))}}var ep=kC,OC=wC,$C=TC,EC=ep;function _C(n){var e=$C(n);return e.length==1&&e[0][2]?EC(e[0][0],e[0][1]):function(i){return i===n||OC(i,n,e)}}var IC=_C,AC=Aa,PC=Da,DC="[object Symbol]";function NC(n){return typeof n=="symbol"||PC(n)&&AC(n)==DC}var Dl=NC,HC=Hi,RC=Dl,FC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,BC=/^\w*$/;function VC(n,e){if(HC(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||RC(n)?!0:BC.test(n)||!FC.test(n)||e!=null&&n in Object(e)}var mu=VC,tp=gu,ZC="Expected a function";function yu(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(ZC);var i=function(){var o=arguments,l=e?e.apply(this,o):o[0],d=i.cache;if(d.has(l))return d.get(l);var u=n.apply(this,o);return i.cache=d.set(l,u)||d,u};return i.cache=new(yu.Cache||tp),i}yu.Cache=tp;var WC=yu,UC=WC,jC=500;function GC(n){var e=UC(n,function(o){return i.size===jC&&i.clear(),o}),i=e.cache;return e}var qC=GC,KC=qC,YC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XC=/\\(\\)?/g,JC=KC(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(YC,function(i,o,l,d){e.push(l?d.replace(XC,"$1"):o||i)}),e}),QC=JC;function ew(n,e){for(var i=-1,o=n==null?0:n.length,l=Array(o);++i<o;)l[i]=e(n[i],i,n);return l}var tw=ew,Bh=Il,rw=tw,iw=Hi,nw=Dl,ow=1/0,Vh=Bh?Bh.prototype:void 0,Zh=Vh?Vh.toString:void 0;function rp(n){if(typeof n=="string")return n;if(iw(n))return rw(n,rp)+"";if(nw(n))return Zh?Zh.call(n):"";var e=n+"";return e=="0"&&1/n==-ow?"-0":e}var aw=rp,sw=aw;function lw(n){return n==null?"":sw(n)}var cw=lw,uw=Hi,dw=mu,hw=QC,fw=cw;function pw(n,e){return uw(n)?n:dw(n,e)?[n]:hw(fw(n))}var ip=pw,gw=Dl,vw=1/0;function bw(n){if(typeof n=="string"||gw(n))return n;var e=n+"";return e=="0"&&1/n==-vw?"-0":e}var Nl=bw,mw=ip,yw=Nl;function Cw(n,e){e=mw(e,n);for(var i=0,o=e.length;n!=null&&i<o;)n=n[yw(e[i++])];return i&&i==o?n:void 0}var np=Cw,ww=np;function xw(n,e,i){var o=n==null?void 0:ww(n,e);return o===void 0?i:o}var zw=xw;function Lw(n,e){return n!=null&&e in Object(n)}var Sw=Lw,Mw=ip,Tw=U2,kw=Hi,Ow=vu,$w=bu,Ew=Nl;function _w(n,e,i){e=Mw(e,n);for(var o=-1,l=e.length,d=!1;++o<l;){var u=Ew(e[o]);if(!(d=n!=null&&i(n,u)))break;n=n[u]}return d||++o!=l?d:(l=n==null?0:n.length,!!l&&$w(l)&&Ow(u,l)&&(kw(n)||Tw(n)))}var Iw=_w,Aw=Sw,Pw=Iw;function Dw(n,e){return n!=null&&Pw(n,e,Aw)}var Nw=Dw,Hw=J2,Rw=zw,Fw=Nw,Bw=mu,Vw=Q2,Zw=ep,Ww=Nl,Uw=1,jw=2;function Gw(n,e){return Bw(n)&&Vw(e)?Zw(Ww(n),e):function(i){var o=Rw(i,n);return o===void 0&&o===e?Fw(i,n):Hw(e,o,Uw|jw)}}var qw=Gw;function Kw(n){return n}var Yw=Kw;function Xw(n){return function(e){return e==null?void 0:e[n]}}var Jw=Xw,Qw=np;function ex(n){return function(e){return Qw(e,n)}}var tx=ex,rx=Jw,ix=tx,nx=mu,ox=Nl;function ax(n){return nx(n)?rx(ox(n)):ix(n)}var sx=ax,lx=IC,cx=qw,ux=Yw,dx=Hi,hx=sx;function fx(n){return typeof n=="function"?n:n==null?ux:typeof n=="object"?dx(n)?cx(n[0],n[1]):lx(n):hx(n)}var px=fx,gx=/\s/;function vx(n){for(var e=n.length;e--&&gx.test(n.charAt(e)););return e}var bx=vx,mx=bx,yx=/^\s+/;function Cx(n){return n&&n.slice(0,mx(n)+1).replace(yx,"")}var wx=Cx,xx=wx,Wh=Pa,zx=Dl,Uh=0/0,Lx=/^[-+]0x[0-9a-f]+$/i,Sx=/^0b[01]+$/i,Mx=/^0o[0-7]+$/i,Tx=parseInt;function kx(n){if(typeof n=="number")return n;if(zx(n))return Uh;if(Wh(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Wh(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=xx(n);var i=Sx.test(n);return i||Mx.test(n)?Tx(n.slice(2),i?2:8):Lx.test(n)?Uh:+n}var Ox=kx,$x=Ox,jh=1/0,Ex=17976931348623157e292;function _x(n){if(!n)return n===0?n:0;if(n=$x(n),n===jh||n===-jh){var e=n<0?-1:1;return e*Ex}return n===n?n:0}var op=_x,Ix=op;function Ax(n){var e=Ix(n),i=e%1;return e===e?i?e-i:e:0}var Px=Ax,Dx=X9,Nx=px,Hx=Px,Rx=Math.max,Fx=Math.min;function Bx(n,e,i){var o=n==null?0:n.length;if(!o)return-1;var l=o-1;return i!==void 0&&(l=Hx(i),l=i<0?Rx(o+l,0):Fx(l,o-1)),Dx(n,Nx(e),l,!0)}var Vx=Bx;const Zx=hu(Vx);/**
1719
+ `;Jr([$({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);Jr([$({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);Jr([$({type:Array})],exports.DropdownMenu.prototype,"selected",2);Jr([$()],exports.DropdownMenu.prototype,"size",2);Jr([we()],exports.DropdownMenu.prototype,"fluidWidth",2);Jr([we()],exports.DropdownMenu.prototype,"disabled",2);Jr([Ar("brz-menu")],exports.DropdownMenu.prototype,"menu",2);Jr([Ar("brz-popover")],exports.DropdownMenu.prototype,"popover",2);Jr([fi()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=Jr([Z(H2)],exports.DropdownMenu);var ma=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function hu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function e8(n,e,i,o){for(var l=n.length,d=i+(o?1:-1);o?d--:++d<l;)if(e(n[d],d,n))return d;return-1}var t8=e8;function r8(){this.__data__=[],this.size=0}var i8=r8;function n8(n,e){return n===e||n!==n&&e!==e}var fu=n8,o8=fu;function a8(n,e){for(var i=n.length;i--;)if(o8(n[i][0],e))return i;return-1}var El=a8,s8=El,l8=Array.prototype,c8=l8.splice;function u8(n){var e=this.__data__,i=s8(e,n);if(i<0)return!1;var o=e.length-1;return i==o?e.pop():c8.call(e,i,1),--this.size,!0}var d8=u8,h8=El;function f8(n){var e=this.__data__,i=h8(e,n);return i<0?void 0:e[i][1]}var p8=f8,g8=El;function v8(n){return g8(this.__data__,n)>-1}var b8=v8,m8=El;function y8(n,e){var i=this.__data__,o=m8(i,n);return o<0?(++this.size,i.push([n,e])):i[o][1]=e,this}var C8=y8,w8=i8,x8=d8,z8=p8,L8=b8,S8=C8;function go(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}go.prototype.clear=w8;go.prototype.delete=x8;go.prototype.get=z8;go.prototype.has=L8;go.prototype.set=S8;var _l=go,M8=_l;function T8(){this.__data__=new M8,this.size=0}var k8=T8;function O8(n){var e=this.__data__,i=e.delete(n);return this.size=e.size,i}var $8=O8;function E8(n){return this.__data__.get(n)}var _8=E8;function A8(n){return this.__data__.has(n)}var I8=A8,P8=typeof ma=="object"&&ma&&ma.Object===Object&&ma,R2=P8,D8=R2,N8=typeof self=="object"&&self&&self.Object===Object&&self,H8=D8||N8||Function("return this")(),vi=H8,R8=vi,F8=R8.Symbol,Al=F8,vh=Al,F2=Object.prototype,B8=F2.hasOwnProperty,V8=F2.toString,ha=vh?vh.toStringTag:void 0;function Z8(n){var e=B8.call(n,ha),i=n[ha];try{n[ha]=void 0;var o=!0}catch{}var l=V8.call(n);return o&&(e?n[ha]=i:delete n[ha]),l}var W8=Z8,U8=Object.prototype,j8=U8.toString;function G8(n){return j8.call(n)}var q8=G8,bh=Al,K8=W8,Y8=q8,X8="[object Null]",J8="[object Undefined]",mh=bh?bh.toStringTag:void 0;function Q8(n){return n==null?n===void 0?J8:X8:mh&&mh in Object(n)?K8(n):Y8(n)}var Pa=Q8;function eg(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var Da=eg,tg=Pa,rg=Da,ig="[object AsyncFunction]",ng="[object Function]",og="[object GeneratorFunction]",ag="[object Proxy]";function sg(n){if(!rg(n))return!1;var e=tg(n);return e==ng||e==og||e==ig||e==ag}var B2=sg,lg=vi,cg=lg["__core-js_shared__"],ug=cg,sc=ug,yh=function(){var n=/[^.]+$/.exec(sc&&sc.keys&&sc.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function dg(n){return!!yh&&yh in n}var hg=dg,fg=Function.prototype,pg=fg.toString;function gg(n){if(n!=null){try{return pg.call(n)}catch{}try{return n+""}catch{}}return""}var V2=gg,vg=B2,bg=hg,mg=Da,yg=V2,Cg=/[\\^$.*+?()[\]{}|]/g,wg=/^\[object .+?Constructor\]$/,xg=Function.prototype,zg=Object.prototype,Lg=xg.toString,Sg=zg.hasOwnProperty,Mg=RegExp("^"+Lg.call(Sg).replace(Cg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tg(n){if(!mg(n)||bg(n))return!1;var e=vg(n)?Mg:wg;return e.test(yg(n))}var kg=Tg;function Og(n,e){return n==null?void 0:n[e]}var $g=Og,Eg=kg,_g=$g;function Ag(n,e){var i=_g(n,e);return Eg(i)?i:void 0}var vo=Ag,Ig=vo,Pg=vi,Dg=Ig(Pg,"Map"),pu=Dg,Ng=vo,Hg=Ng(Object,"create"),Il=Hg,Ch=Il;function Rg(){this.__data__=Ch?Ch(null):{},this.size=0}var Fg=Rg;function Bg(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var Vg=Bg,Zg=Il,Wg="__lodash_hash_undefined__",Ug=Object.prototype,jg=Ug.hasOwnProperty;function Gg(n){var e=this.__data__;if(Zg){var i=e[n];return i===Wg?void 0:i}return jg.call(e,n)?e[n]:void 0}var qg=Gg,Kg=Il,Yg=Object.prototype,Xg=Yg.hasOwnProperty;function Jg(n){var e=this.__data__;return Kg?e[n]!==void 0:Xg.call(e,n)}var Qg=Jg,ev=Il,tv="__lodash_hash_undefined__";function rv(n,e){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=ev&&e===void 0?tv:e,this}var iv=rv,nv=Fg,ov=Vg,av=qg,sv=Qg,lv=iv;function bo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}bo.prototype.clear=nv;bo.prototype.delete=ov;bo.prototype.get=av;bo.prototype.has=sv;bo.prototype.set=lv;var cv=bo,wh=cv,uv=_l,dv=pu;function hv(){this.size=0,this.__data__={hash:new wh,map:new(dv||uv),string:new wh}}var fv=hv;function pv(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}var gv=pv,vv=gv;function bv(n,e){var i=n.__data__;return vv(e)?i[typeof e=="string"?"string":"hash"]:i.map}var Pl=bv,mv=Pl;function yv(n){var e=mv(this,n).delete(n);return this.size-=e?1:0,e}var Cv=yv,wv=Pl;function xv(n){return wv(this,n).get(n)}var zv=xv,Lv=Pl;function Sv(n){return Lv(this,n).has(n)}var Mv=Sv,Tv=Pl;function kv(n,e){var i=Tv(this,n),o=i.size;return i.set(n,e),this.size+=i.size==o?0:1,this}var Ov=kv,$v=fv,Ev=Cv,_v=zv,Av=Mv,Iv=Ov;function mo(n){var e=-1,i=n==null?0:n.length;for(this.clear();++e<i;){var o=n[e];this.set(o[0],o[1])}}mo.prototype.clear=$v;mo.prototype.delete=Ev;mo.prototype.get=_v;mo.prototype.has=Av;mo.prototype.set=Iv;var gu=mo,Pv=_l,Dv=pu,Nv=gu,Hv=200;function Rv(n,e){var i=this.__data__;if(i instanceof Pv){var o=i.__data__;if(!Dv||o.length<Hv-1)return o.push([n,e]),this.size=++i.size,this;i=this.__data__=new Nv(o)}return i.set(n,e),this.size=i.size,this}var Fv=Rv,Bv=_l,Vv=k8,Zv=$8,Wv=_8,Uv=I8,jv=Fv;function yo(n){var e=this.__data__=new Bv(n);this.size=e.size}yo.prototype.clear=Vv;yo.prototype.delete=Zv;yo.prototype.get=Wv;yo.prototype.has=Uv;yo.prototype.set=jv;var Z2=yo,Gv="__lodash_hash_undefined__";function qv(n){return this.__data__.set(n,Gv),this}var Kv=qv;function Yv(n){return this.__data__.has(n)}var Xv=Yv,Jv=gu,Qv=Kv,eb=Xv;function tl(n){var e=-1,i=n==null?0:n.length;for(this.__data__=new Jv;++e<i;)this.add(n[e])}tl.prototype.add=tl.prototype.push=Qv;tl.prototype.has=eb;var tb=tl;function rb(n,e){for(var i=-1,o=n==null?0:n.length;++i<o;)if(e(n[i],i,n))return!0;return!1}var ib=rb;function nb(n,e){return n.has(e)}var ob=nb,ab=tb,sb=ib,lb=ob,cb=1,ub=2;function db(n,e,i,o,l,d){var u=i&cb,v=n.length,b=e.length;if(v!=b&&!(u&&b>v))return!1;var m=d.get(n),M=d.get(e);if(m&&M)return m==e&&M==n;var L=-1,T=!0,E=i&ub?new ab:void 0;for(d.set(n,e),d.set(e,n);++L<v;){var H=n[L],Y=e[L];if(o)var oe=u?o(Y,H,L,e,n,d):o(H,Y,L,n,e,d);if(oe!==void 0){if(oe)continue;T=!1;break}if(E){if(!sb(e,function(_,D){if(!lb(E,D)&&(H===_||l(H,_,i,o,d)))return E.push(D)})){T=!1;break}}else if(!(H===Y||l(H,Y,i,o,d))){T=!1;break}}return d.delete(n),d.delete(e),T}var W2=db,hb=vi,fb=hb.Uint8Array,pb=fb;function gb(n){var e=-1,i=Array(n.size);return n.forEach(function(o,l){i[++e]=[l,o]}),i}var vb=gb;function bb(n){var e=-1,i=Array(n.size);return n.forEach(function(o){i[++e]=o}),i}var mb=bb,xh=Al,zh=pb,yb=fu,Cb=W2,wb=vb,xb=mb,zb=1,Lb=2,Sb="[object Boolean]",Mb="[object Date]",Tb="[object Error]",kb="[object Map]",Ob="[object Number]",$b="[object RegExp]",Eb="[object Set]",_b="[object String]",Ab="[object Symbol]",Ib="[object ArrayBuffer]",Pb="[object DataView]",Lh=xh?xh.prototype:void 0,lc=Lh?Lh.valueOf:void 0;function Db(n,e,i,o,l,d,u){switch(i){case Pb:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case Ib:return!(n.byteLength!=e.byteLength||!d(new zh(n),new zh(e)));case Sb:case Mb:case Ob:return yb(+n,+e);case Tb:return n.name==e.name&&n.message==e.message;case $b:case _b:return n==e+"";case kb:var v=wb;case Eb:var b=o&zb;if(v||(v=xb),n.size!=e.size&&!b)return!1;var m=u.get(n);if(m)return m==e;o|=Lb,u.set(n,e);var M=Cb(v(n),v(e),o,l,d,u);return u.delete(n),M;case Ab:if(lc)return lc.call(n)==lc.call(e)}return!1}var Nb=Db;function Hb(n,e){for(var i=-1,o=e.length,l=n.length;++i<o;)n[l+i]=e[i];return n}var Rb=Hb,Fb=Array.isArray,Hi=Fb,Bb=Rb,Vb=Hi;function Zb(n,e,i){var o=e(n);return Vb(n)?o:Bb(o,i(n))}var Wb=Zb;function Ub(n,e){for(var i=-1,o=n==null?0:n.length,l=0,d=[];++i<o;){var u=n[i];e(u,i,n)&&(d[l++]=u)}return d}var jb=Ub;function Gb(){return[]}var qb=Gb,Kb=jb,Yb=qb,Xb=Object.prototype,Jb=Xb.propertyIsEnumerable,Sh=Object.getOwnPropertySymbols,Qb=Sh?function(n){return n==null?[]:(n=Object(n),Kb(Sh(n),function(e){return Jb.call(n,e)}))}:Yb,em=Qb;function tm(n,e){for(var i=-1,o=Array(n);++i<n;)o[i]=e(i);return o}var rm=tm;function im(n){return n!=null&&typeof n=="object"}var Na=im,nm=Pa,om=Na,am="[object Arguments]";function sm(n){return om(n)&&nm(n)==am}var lm=sm,Mh=lm,cm=Na,U2=Object.prototype,um=U2.hasOwnProperty,dm=U2.propertyIsEnumerable,hm=Mh(function(){return arguments}())?Mh:function(n){return cm(n)&&um.call(n,"callee")&&!dm.call(n,"callee")},j2=hm,rl={exports:{}};function fm(){return!1}var pm=fm;rl.exports;(function(n,e){var i=vi,o=pm,l=e&&!e.nodeType&&e,d=l&&!0&&n&&!n.nodeType&&n,u=d&&d.exports===l,v=u?i.Buffer:void 0,b=v?v.isBuffer:void 0,m=b||o;n.exports=m})(rl,rl.exports);var G2=rl.exports,gm=9007199254740991,vm=/^(?:0|[1-9]\d*)$/;function bm(n,e){var i=typeof n;return e=e==null?gm:e,!!e&&(i=="number"||i!="symbol"&&vm.test(n))&&n>-1&&n%1==0&&n<e}var vu=bm,mm=9007199254740991;function ym(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=mm}var bu=ym,Cm=Pa,wm=bu,xm=Na,zm="[object Arguments]",Lm="[object Array]",Sm="[object Boolean]",Mm="[object Date]",Tm="[object Error]",km="[object Function]",Om="[object Map]",$m="[object Number]",Em="[object Object]",_m="[object RegExp]",Am="[object Set]",Im="[object String]",Pm="[object WeakMap]",Dm="[object ArrayBuffer]",Nm="[object DataView]",Hm="[object Float32Array]",Rm="[object Float64Array]",Fm="[object Int8Array]",Bm="[object Int16Array]",Vm="[object Int32Array]",Zm="[object Uint8Array]",Wm="[object Uint8ClampedArray]",Um="[object Uint16Array]",jm="[object Uint32Array]",rt={};rt[Hm]=rt[Rm]=rt[Fm]=rt[Bm]=rt[Vm]=rt[Zm]=rt[Wm]=rt[Um]=rt[jm]=!0;rt[zm]=rt[Lm]=rt[Dm]=rt[Sm]=rt[Nm]=rt[Mm]=rt[Tm]=rt[km]=rt[Om]=rt[$m]=rt[Em]=rt[_m]=rt[Am]=rt[Im]=rt[Pm]=!1;function Gm(n){return xm(n)&&wm(n.length)&&!!rt[Cm(n)]}var qm=Gm;function Km(n){return function(e){return n(e)}}var Ym=Km,il={exports:{}};il.exports;(function(n,e){var i=R2,o=e&&!e.nodeType&&e,l=o&&!0&&n&&!n.nodeType&&n,d=l&&l.exports===o,u=d&&i.process,v=function(){try{var b=l&&l.require&&l.require("util").types;return b||u&&u.binding&&u.binding("util")}catch{}}();n.exports=v})(il,il.exports);var Xm=il.exports,Jm=qm,Qm=Ym,Th=Xm,kh=Th&&Th.isTypedArray,ey=kh?Qm(kh):Jm,q2=ey,ty=rm,ry=j2,iy=Hi,ny=G2,oy=vu,ay=q2,sy=Object.prototype,ly=sy.hasOwnProperty;function cy(n,e){var i=iy(n),o=!i&&ry(n),l=!i&&!o&&ny(n),d=!i&&!o&&!l&&ay(n),u=i||o||l||d,v=u?ty(n.length,String):[],b=v.length;for(var m in n)(e||ly.call(n,m))&&!(u&&(m=="length"||l&&(m=="offset"||m=="parent")||d&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||oy(m,b)))&&v.push(m);return v}var uy=cy,dy=Object.prototype;function hy(n){var e=n&&n.constructor,i=typeof e=="function"&&e.prototype||dy;return n===i}var fy=hy;function py(n,e){return function(i){return n(e(i))}}var gy=py,vy=gy,by=vy(Object.keys,Object),my=by,yy=fy,Cy=my,wy=Object.prototype,xy=wy.hasOwnProperty;function zy(n){if(!yy(n))return Cy(n);var e=[];for(var i in Object(n))xy.call(n,i)&&i!="constructor"&&e.push(i);return e}var Ly=zy,Sy=B2,My=bu;function Ty(n){return n!=null&&My(n.length)&&!Sy(n)}var K2=Ty,ky=uy,Oy=Ly,$y=K2;function Ey(n){return $y(n)?ky(n):Oy(n)}var Y2=Ey,_y=Wb,Ay=em,Iy=Y2;function Py(n){return _y(n,Iy,Ay)}var Dy=Py,Oh=Dy,Ny=1,Hy=Object.prototype,Ry=Hy.hasOwnProperty;function Fy(n,e,i,o,l,d){var u=i&Ny,v=Oh(n),b=v.length,m=Oh(e),M=m.length;if(b!=M&&!u)return!1;for(var L=b;L--;){var T=v[L];if(!(u?T in e:Ry.call(e,T)))return!1}var E=d.get(n),H=d.get(e);if(E&&H)return E==e&&H==n;var Y=!0;d.set(n,e),d.set(e,n);for(var oe=u;++L<b;){T=v[L];var _=n[T],D=e[T];if(o)var I=u?o(D,_,T,e,n,d):o(_,D,T,n,e,d);if(!(I===void 0?_===D||l(_,D,i,o,d):I)){Y=!1;break}oe||(oe=T=="constructor")}if(Y&&!oe){var B=n.constructor,K=e.constructor;B!=K&&"constructor"in n&&"constructor"in e&&!(typeof B=="function"&&B instanceof B&&typeof K=="function"&&K instanceof K)&&(Y=!1)}return d.delete(n),d.delete(e),Y}var By=Fy,Vy=vo,Zy=vi,Wy=Vy(Zy,"DataView"),Uy=Wy,jy=vo,Gy=vi,qy=jy(Gy,"Promise"),Ky=qy,Yy=vo,Xy=vi,Jy=Yy(Xy,"Set"),Qy=Jy,eC=vo,tC=vi,rC=eC(tC,"WeakMap"),iC=rC,Ac=Uy,Ic=pu,Pc=Ky,Dc=Qy,Nc=iC,X2=Pa,Co=V2,$h="[object Map]",nC="[object Object]",Eh="[object Promise]",_h="[object Set]",Ah="[object WeakMap]",Ih="[object DataView]",oC=Co(Ac),aC=Co(Ic),sC=Co(Pc),lC=Co(Dc),cC=Co(Nc),cn=X2;(Ac&&cn(new Ac(new ArrayBuffer(1)))!=Ih||Ic&&cn(new Ic)!=$h||Pc&&cn(Pc.resolve())!=Eh||Dc&&cn(new Dc)!=_h||Nc&&cn(new Nc)!=Ah)&&(cn=function(n){var e=X2(n),i=e==nC?n.constructor:void 0,o=i?Co(i):"";if(o)switch(o){case oC:return Ih;case aC:return $h;case sC:return Eh;case lC:return _h;case cC:return Ah}return e});var uC=cn,cc=Z2,dC=W2,hC=Nb,fC=By,Ph=uC,Dh=Hi,Nh=G2,pC=q2,gC=1,Hh="[object Arguments]",Rh="[object Array]",$s="[object Object]",vC=Object.prototype,Fh=vC.hasOwnProperty;function bC(n,e,i,o,l,d){var u=Dh(n),v=Dh(e),b=u?Rh:Ph(n),m=v?Rh:Ph(e);b=b==Hh?$s:b,m=m==Hh?$s:m;var M=b==$s,L=m==$s,T=b==m;if(T&&Nh(n)){if(!Nh(e))return!1;u=!0,M=!1}if(T&&!M)return d||(d=new cc),u||pC(n)?dC(n,e,i,o,l,d):hC(n,e,b,i,o,l,d);if(!(i&gC)){var E=M&&Fh.call(n,"__wrapped__"),H=L&&Fh.call(e,"__wrapped__");if(E||H){var Y=E?n.value():n,oe=H?e.value():e;return d||(d=new cc),l(Y,oe,i,o,d)}}return T?(d||(d=new cc),fC(n,e,i,o,l,d)):!1}var mC=bC,yC=mC,Bh=Na;function J2(n,e,i,o,l){return n===e?!0:n==null||e==null||!Bh(n)&&!Bh(e)?n!==n&&e!==e:yC(n,e,i,o,J2,l)}var Q2=J2,CC=Z2,wC=Q2,xC=1,zC=2;function LC(n,e,i,o){var l=i.length,d=l,u=!o;if(n==null)return!d;for(n=Object(n);l--;){var v=i[l];if(u&&v[2]?v[1]!==n[v[0]]:!(v[0]in n))return!1}for(;++l<d;){v=i[l];var b=v[0],m=n[b],M=v[1];if(u&&v[2]){if(m===void 0&&!(b in n))return!1}else{var L=new CC;if(o)var T=o(m,M,b,n,e,L);if(!(T===void 0?wC(M,m,xC|zC,o,L):T))return!1}}return!0}var SC=LC,MC=Da;function TC(n){return n===n&&!MC(n)}var ep=TC,kC=ep,OC=Y2;function $C(n){for(var e=OC(n),i=e.length;i--;){var o=e[i],l=n[o];e[i]=[o,l,kC(l)]}return e}var EC=$C;function _C(n,e){return function(i){return i==null?!1:i[n]===e&&(e!==void 0||n in Object(i))}}var tp=_C,AC=SC,IC=EC,PC=tp;function DC(n){var e=IC(n);return e.length==1&&e[0][2]?PC(e[0][0],e[0][1]):function(i){return i===n||AC(i,n,e)}}var NC=DC,HC=Pa,RC=Na,FC="[object Symbol]";function BC(n){return typeof n=="symbol"||RC(n)&&HC(n)==FC}var Dl=BC,VC=Hi,ZC=Dl,WC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UC=/^\w*$/;function jC(n,e){if(VC(n))return!1;var i=typeof n;return i=="number"||i=="symbol"||i=="boolean"||n==null||ZC(n)?!0:UC.test(n)||!WC.test(n)||e!=null&&n in Object(e)}var mu=jC,rp=gu,GC="Expected a function";function yu(n,e){if(typeof n!="function"||e!=null&&typeof e!="function")throw new TypeError(GC);var i=function(){var o=arguments,l=e?e.apply(this,o):o[0],d=i.cache;if(d.has(l))return d.get(l);var u=n.apply(this,o);return i.cache=d.set(l,u)||d,u};return i.cache=new(yu.Cache||rp),i}yu.Cache=rp;var qC=yu,KC=qC,YC=500;function XC(n){var e=KC(n,function(o){return i.size===YC&&i.clear(),o}),i=e.cache;return e}var JC=XC,QC=JC,ew=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tw=/\\(\\)?/g,rw=QC(function(n){var e=[];return n.charCodeAt(0)===46&&e.push(""),n.replace(ew,function(i,o,l,d){e.push(l?d.replace(tw,"$1"):o||i)}),e}),iw=rw;function nw(n,e){for(var i=-1,o=n==null?0:n.length,l=Array(o);++i<o;)l[i]=e(n[i],i,n);return l}var ow=nw,Vh=Al,aw=ow,sw=Hi,lw=Dl,cw=1/0,Zh=Vh?Vh.prototype:void 0,Wh=Zh?Zh.toString:void 0;function ip(n){if(typeof n=="string")return n;if(sw(n))return aw(n,ip)+"";if(lw(n))return Wh?Wh.call(n):"";var e=n+"";return e=="0"&&1/n==-cw?"-0":e}var uw=ip,dw=uw;function hw(n){return n==null?"":dw(n)}var fw=hw,pw=Hi,gw=mu,vw=iw,bw=fw;function mw(n,e){return pw(n)?n:gw(n,e)?[n]:vw(bw(n))}var np=mw,yw=Dl,Cw=1/0;function ww(n){if(typeof n=="string"||yw(n))return n;var e=n+"";return e=="0"&&1/n==-Cw?"-0":e}var Nl=ww,xw=np,zw=Nl;function Lw(n,e){e=xw(e,n);for(var i=0,o=e.length;n!=null&&i<o;)n=n[zw(e[i++])];return i&&i==o?n:void 0}var op=Lw,Sw=op;function Mw(n,e,i){var o=n==null?void 0:Sw(n,e);return o===void 0?i:o}var Tw=Mw;function kw(n,e){return n!=null&&e in Object(n)}var Ow=kw,$w=np,Ew=j2,_w=Hi,Aw=vu,Iw=bu,Pw=Nl;function Dw(n,e,i){e=$w(e,n);for(var o=-1,l=e.length,d=!1;++o<l;){var u=Pw(e[o]);if(!(d=n!=null&&i(n,u)))break;n=n[u]}return d||++o!=l?d:(l=n==null?0:n.length,!!l&&Iw(l)&&Aw(u,l)&&(_w(n)||Ew(n)))}var Nw=Dw,Hw=Ow,Rw=Nw;function Fw(n,e){return n!=null&&Rw(n,e,Hw)}var Bw=Fw,Vw=Q2,Zw=Tw,Ww=Bw,Uw=mu,jw=ep,Gw=tp,qw=Nl,Kw=1,Yw=2;function Xw(n,e){return Uw(n)&&jw(e)?Gw(qw(n),e):function(i){var o=Zw(i,n);return o===void 0&&o===e?Ww(i,n):Vw(e,o,Kw|Yw)}}var Jw=Xw;function Qw(n){return n}var ex=Qw;function tx(n){return function(e){return e==null?void 0:e[n]}}var rx=tx,ix=op;function nx(n){return function(e){return ix(e,n)}}var ox=nx,ax=rx,sx=ox,lx=mu,cx=Nl;function ux(n){return lx(n)?ax(cx(n)):sx(n)}var dx=ux,hx=NC,fx=Jw,px=ex,gx=Hi,vx=dx;function bx(n){return typeof n=="function"?n:n==null?px:typeof n=="object"?gx(n)?fx(n[0],n[1]):hx(n):vx(n)}var mx=bx,yx=/\s/;function Cx(n){for(var e=n.length;e--&&yx.test(n.charAt(e)););return e}var wx=Cx,xx=wx,zx=/^\s+/;function Lx(n){return n&&n.slice(0,xx(n)+1).replace(zx,"")}var Sx=Lx,Mx=Sx,Uh=Da,Tx=Dl,jh=0/0,kx=/^[-+]0x[0-9a-f]+$/i,Ox=/^0b[01]+$/i,$x=/^0o[0-7]+$/i,Ex=parseInt;function _x(n){if(typeof n=="number")return n;if(Tx(n))return jh;if(Uh(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=Uh(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Mx(n);var i=Ox.test(n);return i||$x.test(n)?Ex(n.slice(2),i?2:8):kx.test(n)?jh:+n}var Ax=_x,Ix=Ax,Gh=1/0,Px=17976931348623157e292;function Dx(n){if(!n)return n===0?n:0;if(n=Ix(n),n===Gh||n===-Gh){var e=n<0?-1:1;return e*Px}return n===n?n:0}var ap=Dx,Nx=ap;function Hx(n){var e=Nx(n),i=e%1;return e===e?i?e-i:e:0}var Rx=Hx,Fx=t8,Bx=mx,Vx=Rx,Zx=Math.max,Wx=Math.min;function Ux(n,e,i){var o=n==null?0:n.length;if(!o)return-1;var l=o-1;return i!==void 0&&(l=Vx(i),l=i<0?Zx(o+l,0):Wx(l,o-1)),Fx(n,Bx(e),l,!0)}var jx=Ux;const Gx=hu(jx);/**
1720
1720
  * @license
1721
1721
  * Copyright 2020 Google LLC
1722
1722
  * SPDX-License-Identifier: BSD-3-Clause
1723
- */const{I:Wx}=o7,Gh=()=>document.createComment(""),ha=(n,e,i)=>{var o;const l=n._$AA.parentNode,d=e===void 0?n._$AB:e._$AA;if(i===void 0){const u=l.insertBefore(Gh(),d),v=l.insertBefore(Gh(),d);i=new Wx(u,v,n,n.options)}else{const u=i._$AB.nextSibling,v=i._$AM,b=v!==n;if(b){let m;(o=i._$AQ)===null||o===void 0||o.call(i,n),i._$AM=n,i._$AP!==void 0&&(m=n._$AU)!==v._$AU&&i._$AP(m)}if(u!==d||b){let m=i._$AA;for(;m!==u;){const M=m.nextSibling;l.insertBefore(m,d),m=M}}}return i},an=(n,e,i=n)=>(n._$AI(e,i),n),Ux={},jx=(n,e=Ux)=>n._$AH=e,Gx=n=>n._$AH,uc=n=>{var e;(e=n._$AP)===null||e===void 0||e.call(n,!1,!0);let i=n._$AA;const o=n._$AB.nextSibling;for(;i!==o;){const l=i.nextSibling;i.remove(),i=l}};/**
1723
+ */const{I:qx}=c7,qh=()=>document.createComment(""),fa=(n,e,i)=>{var o;const l=n._$AA.parentNode,d=e===void 0?n._$AB:e._$AA;if(i===void 0){const u=l.insertBefore(qh(),d),v=l.insertBefore(qh(),d);i=new qx(u,v,n,n.options)}else{const u=i._$AB.nextSibling,v=i._$AM,b=v!==n;if(b){let m;(o=i._$AQ)===null||o===void 0||o.call(i,n),i._$AM=n,i._$AP!==void 0&&(m=n._$AU)!==v._$AU&&i._$AP(m)}if(u!==d||b){let m=i._$AA;for(;m!==u;){const M=m.nextSibling;l.insertBefore(m,d),m=M}}}return i},an=(n,e,i=n)=>(n._$AI(e,i),n),Kx={},Yx=(n,e=Kx)=>n._$AH=e,Xx=n=>n._$AH,uc=n=>{var e;(e=n._$AP)===null||e===void 0||e.call(n,!1,!0);let i=n._$AA;const o=n._$AB.nextSibling;for(;i!==o;){const l=i.nextSibling;i.remove(),i=l}};/**
1724
1724
  * @license
1725
1725
  * Copyright 2017 Google LLC
1726
1726
  * SPDX-License-Identifier: BSD-3-Clause
1727
- */const qh=(n,e,i)=>{const o=new Map;for(let l=e;l<=i;l++)o.set(n[l],l);return o},qx=zl(class extends Ll{constructor(n){if(super(n),n.type!==xl.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,e,i){let o;i===void 0?i=e:e!==void 0&&(o=e);const l=[],d=[];let u=0;for(const v of n)l[u]=o?o(v,u):u,d[u]=i(v,u),u++;return{values:d,keys:l}}render(n,e,i){return this.dt(n,e,i).values}update(n,[e,i,o]){var l;const d=Gx(n),{values:u,keys:v}=this.dt(e,i,o);if(!Array.isArray(d))return this.ht=v,u;const b=(l=this.ht)!==null&&l!==void 0?l:this.ht=[],m=[];let M,L,T=0,$=d.length-1,H=0,Y=u.length-1;for(;T<=$&&H<=Y;)if(d[T]===null)T++;else if(d[$]===null)$--;else if(b[T]===v[H])m[H]=an(d[T],u[H]),T++,H++;else if(b[$]===v[Y])m[Y]=an(d[$],u[Y]),$--,Y--;else if(b[T]===v[Y])m[Y]=an(d[T],u[Y]),ha(n,m[Y+1],d[T]),T++,Y--;else if(b[$]===v[H])m[H]=an(d[$],u[H]),ha(n,d[T],d[$]),$--,H++;else if(M===void 0&&(M=qh(v,H,Y),L=qh(b,T,$)),M.has(b[T]))if(M.has(b[$])){const oe=L.get(v[H]),_=oe!==void 0?d[oe]:null;if(_===null){const D=ha(n,d[T]);an(D,u[H]),m[H]=D}else m[H]=an(_,u[H]),ha(n,d[T],_),d[oe]=null;H++}else uc(d[$]),$--;else uc(d[T]),T++;for(;H<=Y;){const oe=ha(n,m[Y+1]);an(oe,u[H]),m[H++]=oe}for(;T<=$;){const oe=d[T++];oe!==null&&uc(oe)}return this.ht=v,jx(n,m),di}});/**
1727
+ */const Kh=(n,e,i)=>{const o=new Map;for(let l=e;l<=i;l++)o.set(n[l],l);return o},Jx=zl(class extends Ll{constructor(n){if(super(n),n.type!==xl.CHILD)throw Error("repeat() can only be used in text expressions")}dt(n,e,i){let o;i===void 0?i=e:e!==void 0&&(o=e);const l=[],d=[];let u=0;for(const v of n)l[u]=o?o(v,u):u,d[u]=i(v,u),u++;return{values:d,keys:l}}render(n,e,i){return this.dt(n,e,i).values}update(n,[e,i,o]){var l;const d=Xx(n),{values:u,keys:v}=this.dt(e,i,o);if(!Array.isArray(d))return this.ht=v,u;const b=(l=this.ht)!==null&&l!==void 0?l:this.ht=[],m=[];let M,L,T=0,E=d.length-1,H=0,Y=u.length-1;for(;T<=E&&H<=Y;)if(d[T]===null)T++;else if(d[E]===null)E--;else if(b[T]===v[H])m[H]=an(d[T],u[H]),T++,H++;else if(b[E]===v[Y])m[Y]=an(d[E],u[Y]),E--,Y--;else if(b[T]===v[Y])m[Y]=an(d[T],u[Y]),fa(n,m[Y+1],d[T]),T++,Y--;else if(b[E]===v[H])m[H]=an(d[E],u[H]),fa(n,d[T],d[E]),E--,H++;else if(M===void 0&&(M=Kh(v,H,Y),L=Kh(b,T,E)),M.has(b[T]))if(M.has(b[E])){const oe=L.get(v[H]),_=oe!==void 0?d[oe]:null;if(_===null){const D=fa(n,d[T]);an(D,u[H]),m[H]=D}else m[H]=an(_,u[H]),fa(n,d[T],_),d[oe]=null;H++}else uc(d[E]),E--;else uc(d[T]),T++;for(;H<=Y;){const oe=fa(n,m[Y+1]);an(oe,u[H]),m[H++]=oe}for(;T<=E;){const oe=d[T++];oe!==null&&uc(oe)}return this.ht=v,Yx(n,m),di}});/**
1728
1728
  * @license
1729
1729
  * Copyright 2018 Google LLC
1730
1730
  * SPDX-License-Identifier: BSD-3-Clause
1731
- */const ap="important",Kx=" !"+ap,Yx=zl(class extends Ll{constructor(n){var e;if(super(n),n.type!==xl.ATTRIBUTE||n.name!=="style"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,i)=>{const o=n[i];return o==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(n,[e]){const{style:i}=n.element;if(this.ut===void 0){this.ut=new Set;for(const o in e)this.ut.add(o);return this.render(e)}this.ut.forEach(o=>{e[o]==null&&(this.ut.delete(o),o.includes("-")?i.removeProperty(o):i[o]="")});for(const o in e){const l=e[o];if(l!=null){this.ut.add(o);const d=typeof l=="string"&&l.endsWith(Kx);o.includes("-")||d?i.setProperty(o,d?l.slice(0,-11):l,d?ap:""):i[o]=l}}return di}});var Xx=Object.defineProperty,Jx=Object.getOwnPropertyDescriptor,er=(n,e,i,o)=>{for(var l=o>1?void 0:o?Jx(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Xx(e,i,l),l};const Cu=ce("virtual-list");exports.VirtualList=class extends we{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(e,i)=>N`
1731
+ */const sp="important",Qx=" !"+sp,ez=zl(class extends Ll{constructor(n){var e;if(super(n),n.type!==xl.ATTRIBUTE||n.name!=="style"||((e=n.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,i)=>{const o=n[i];return o==null?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(n,[e]){const{style:i}=n.element;if(this.ut===void 0){this.ut=new Set;for(const o in e)this.ut.add(o);return this.render(e)}this.ut.forEach(o=>{e[o]==null&&(this.ut.delete(o),o.includes("-")?i.removeProperty(o):i[o]="")});for(const o in e){const l=e[o];if(l!=null){this.ut.add(o);const d=typeof l=="string"&&l.endsWith(Qx);o.includes("-")||d?i.setProperty(o,d?l.slice(0,-11):l,d?sp:""):i[o]=l}}return di}});var tz=Object.defineProperty,rz=Object.getOwnPropertyDescriptor,er=(n,e,i,o)=>{for(var l=o>1?void 0:o?rz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tz(e,i,l),l};const Cu=le("virtual-list");exports.VirtualList=class extends Ce{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(e,i)=>N`
1732
1732
  <div
1733
1733
  class="default-render-item"
1734
1734
  style="min-height: ${this.itemMinHeight}px"
1735
1735
  >
1736
1736
  Item ${i}: ${JSON.stringify(e)}
1737
1737
  </div>
1738
- `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(e){super.updated(e),this.canSync(e)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((e,i)=>e+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const e={};let i=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(l=>{e[l]?e[l]++:e[l]=1,e[l]>o&&(i=l,o=e[l])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(e){return["items","renderItem"].reduce((i,o)=>i||e.has(o),!1)}sumOfHeightsToIndex(e){return this.itemHeights.slice(0,e).reduce((i,o)=>(i+=o,i),0)}syncVisibleItems(){this.resetItems();for(let e=this.rollingStartIndex;e<=this.rollingEndIndex;e++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(e)}px`,width:"100%"},o=this.renderItem(this.items[e],e);if(!this.itemIdentifier){const u=i2(o,new DocumentFragment).parentNode.firstElementChild,v=u==null?void 0:u.tagName.toLowerCase(),b=u==null?void 0:u.className;this.itemIdentifier=`${v}${b?`.${b}`:""}`}const l=N`
1739
- <div class="item-wrapper" style=${Yx(i)}>
1738
+ `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(e){super.updated(e),this.canSync(e)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((e,i)=>e+i,0)/this.originalItemsCount}get slicedItemHeightMode(){const e={};let i=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(l=>{e[l]?e[l]++:e[l]=1,e[l]>o&&(i=l,o=e[l])}),i}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(e){return["items","renderItem"].reduce((i,o)=>i||e.has(o),!1)}sumOfHeightsToIndex(e){return this.itemHeights.slice(0,e).reduce((i,o)=>(i+=o,i),0)}syncVisibleItems(){this.resetItems();for(let e=this.rollingStartIndex;e<=this.rollingEndIndex;e++){const i={position:"absolute",top:`${this.sumOfHeightsToIndex(e)}px`,width:"100%"},o=this.renderItem(this.items[e],e);if(!this.itemIdentifier){const u=n2(o,new DocumentFragment).parentNode.firstElementChild,v=u==null?void 0:u.tagName.toLowerCase(),b=u==null?void 0:u.className;this.itemIdentifier=`${v}${b?`.${b}`:""}`}const l=N`
1739
+ <div class="item-wrapper" style=${ez(i)}>
1740
1740
  ${o}
1741
1741
  </div>
1742
- `;this.visibleItems.push({index:e,item:l})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const e=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new sp({detail:{itemElements:e}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:e},i)=>{var o,l;this.itemHeights[e]=((l=(o=this.visibleItemElements)==null?void 0:o[i])==null?void 0:l.getBoundingClientRect().height)||this.itemHeights[e]})}get visibleItemElements(){var e;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(e=this.shadowRoot)==null?void 0:e.querySelectorAll(this.itemIdentifier)}handleScroll(e){var i;this.currentScrollTop=(i=e.currentTarget)==null?void 0:i.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const e=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),i=Math.min(this.overscan,e);return e-i}get rollingEndIndex(){const e=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),i=Math.min(this.overscan,this.endIndex-e);return e+i}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),N`
1742
+ `;this.visibleItems.push({index:e,item:l})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const e=[...this.list.children].map(i=>i.firstElementChild);this.dispatchEvent(new lp({detail:{itemElements:e}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:e},i)=>{var o,l;this.itemHeights[e]=((l=(o=this.visibleItemElements)==null?void 0:o[i])==null?void 0:l.getBoundingClientRect().height)||this.itemHeights[e]})}get visibleItemElements(){var e;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(e=this.shadowRoot)==null?void 0:e.querySelectorAll(this.itemIdentifier)}handleScroll(e){var i;this.currentScrollTop=(i=e.currentTarget)==null?void 0:i.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const e=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),i=Math.min(this.overscan,e);return e-i}get rollingEndIndex(){const e=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),i=Math.min(this.overscan,this.endIndex-e);return e+i}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),N`
1743
1743
  <div class="container" @scroll=${this.handleScroll}>
1744
1744
  <div class="list" style="height: ${this.innerHeight}px">
1745
- ${qx(this.visibleItems,({index:e})=>e,({item:e})=>e)}
1745
+ ${Jx(this.visibleItems,({index:e})=>e,({item:e})=>e)}
1746
1746
  </div>
1747
1747
  </div>
1748
- `}};exports.VirtualList.styles=[J`
1748
+ `}};exports.VirtualList.styles=[X`
1749
1749
  :host {
1750
1750
  width: 100%;
1751
1751
  }
@@ -1759,7 +1759,7 @@
1759
1759
  .list {
1760
1760
  position: relative;
1761
1761
  }
1762
- `];er([E({type:Array})],exports.VirtualList.prototype,"items",2);er([E({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);er([E({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);er([E({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);er([Ce()],exports.VirtualList.prototype,"currentScrollTop",2);er([Ce()],exports.VirtualList.prototype,"endIndex",2);er([Ce()],exports.VirtualList.prototype,"innerHeight",2);er([Ce()],exports.VirtualList.prototype,"itemHeights",2);er([Ce()],exports.VirtualList.prototype,"itemIdentifier",2);er([Ce()],exports.VirtualList.prototype,"originalItemsCount",2);er([Ce()],exports.VirtualList.prototype,"currentItemsCount",2);er([Ce()],exports.VirtualList.prototype,"visibleItems",2);er([Ir(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=er([Z(Cu)],exports.VirtualList);class sp extends CustomEvent{constructor(e={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...e})}}const lp=ce("record-field"),cp=ce("record-field-label"),Qx=["x-small","small","medium","large","x-large","auto","full"],ez=["side","top"],tz=["x-small","small","medium","large","x-large"],rz=J`
1762
+ `];er([$({type:Array})],exports.VirtualList.prototype,"items",2);er([$({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);er([$({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);er([$({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);er([we()],exports.VirtualList.prototype,"currentScrollTop",2);er([we()],exports.VirtualList.prototype,"endIndex",2);er([we()],exports.VirtualList.prototype,"innerHeight",2);er([we()],exports.VirtualList.prototype,"itemHeights",2);er([we()],exports.VirtualList.prototype,"itemIdentifier",2);er([we()],exports.VirtualList.prototype,"originalItemsCount",2);er([we()],exports.VirtualList.prototype,"currentItemsCount",2);er([we()],exports.VirtualList.prototype,"visibleItems",2);er([Ar(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=er([Z(Cu)],exports.VirtualList);class lp extends CustomEvent{constructor(e={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...e})}}const cp=le("record-field"),up=le("record-field-label"),iz=["x-small","small","medium","large","x-large","auto","full"],nz=["side","top"],oz=["x-small","small","medium","large","x-large"],az=X`
1763
1763
  .size-x-small {
1764
1764
  width: 80px;
1765
1765
  }
@@ -1783,7 +1783,7 @@
1783
1783
  .size-full {
1784
1784
  width: 100%;
1785
1785
  }
1786
- `,iz=J`
1786
+ `,sz=X`
1787
1787
  :host {
1788
1788
  display: block;
1789
1789
  }
@@ -1857,7 +1857,7 @@
1857
1857
  :host([label-position='side']) .value.size-auto {
1858
1858
  flex-grow: 1;
1859
1859
  }
1860
- `,nz=J`
1860
+ `,lz=X`
1861
1861
  :host {
1862
1862
  display: inline-flex;
1863
1863
  color: var(--brz-color-neutral-850);
@@ -1865,7 +1865,7 @@
1865
1865
  line-height: var(--brz-line-height);
1866
1866
  gap: var(--brz-spacing-1);
1867
1867
  }
1868
- `;var oz=Object.defineProperty,az=Object.getOwnPropertyDescriptor,Qr=(n,e,i,o)=>{for(var l=o>1?void 0:o?az(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&oz(e,i,l),l};exports.RecordField=class extends we{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(e){super.updated(e),e.has("labelPosition")&&this.setLabelState(),e.has("labelSize")&&this.setLabelState(),e.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelSizeClass(){return this.labelSize?`size-${this.labelSize}`:""}get labelRightRowTemplate(){return N`
1868
+ `;var cz=Object.defineProperty,uz=Object.getOwnPropertyDescriptor,Qr=(n,e,i,o)=>{for(var l=o>1?void 0:o?uz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cz(e,i,l),l};exports.RecordField=class extends Ce{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(e){super.updated(e),e.has("labelPosition")&&this.setLabelState(),e.has("labelSize")&&this.setLabelState(),e.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelSizeClass(){return this.labelSize?`size-${this.labelSize}`:""}get labelRightRowTemplate(){return N`
1869
1869
  <brz-split-row
1870
1870
  class=${Qt({[this.labelSizeClass]:!!this.labelSizeClass,label:!0,"label-right-row":!0,hidden:!this.hasLabelRight})}
1871
1871
  >
@@ -1888,16 +1888,16 @@
1888
1888
  ${this.valueTemplate}
1889
1889
  </div>
1890
1890
  </div>
1891
- `}};exports.RecordField.styles=[iz,rz];Qr([E({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);Qr([E({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);Qr([E({type:String,attribute:"label-size",reflect:!0})],exports.RecordField.prototype,"labelSize",2);Qr([Ce()],exports.RecordField.prototype,"hasLabel",2);Qr([Ce()],exports.RecordField.prototype,"hasLabelRight",2);Qr([Ce()],exports.RecordField.prototype,"isValueMultiline",2);Qr([Ir(".value")],exports.RecordField.prototype,"value",2);Qr([fi({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);Qr([fi({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=Qr([Z(lp)],exports.RecordField);var sz=Object.defineProperty,lz=Object.getOwnPropertyDescriptor,wu=(n,e,i,o)=>{for(var l=o>1?void 0:o?lz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sz(e,i,l),l};exports.RecordFieldLabel=class extends we{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(e){super.updated(e),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return N` <slot></slot> `}};exports.RecordFieldLabel.styles=[nz];wu([Ce()],exports.RecordFieldLabel.prototype,"hasContent",2);wu([fi()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=wu([Z(cp)],exports.RecordFieldLabel);var cz=Object.defineProperty,uz=Object.getOwnPropertyDescriptor,Ri=(n,e,i,o)=>{for(var l=o>1?void 0:o?uz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cz(e,i,l),l};class tr extends we{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(e){this.value=e.target.value,this.dispatchChange()}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:this.value}}))}createProxyInput(){this.proxyInput=this.ownerDocument.createElement("input"),this.proxyInput.type="hidden",this.appendChild(this.proxyInput)}updateProxyInput(){typeof this.value=="string"&&this.proxyInput&&(this.proxyInput.name=this.name,this.proxyInput.value=this.value||"")}updated(e){super.updated(e),this.useProxy&&this.updateProxyInput()}}tr.shadowRootOptions={mode:"open",delegatesFocus:!0};Ri([E({type:Boolean,reflect:!0})],tr.prototype,"disabled",2);Ri([E({type:Boolean,reflect:!0})],tr.prototype,"required",2);Ri([E({type:Boolean,reflect:!0})],tr.prototype,"invalid",2);Ri([E({type:String})],tr.prototype,"name",2);Ri([E({type:String})],tr.prototype,"id",2);Ri([E({type:String})],tr.prototype,"value",2);Ri([Ce()],tr.prototype,"proxyInput",2);Ri([Ce()],tr.prototype,"useProxy",2);var dz=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,fz=(n,e,i,o)=>{for(var l=o>1?void 0:o?hz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dz(e,i,l),l};const pz=ce("input-guide");let nl=class extends we{render(){return N` <slot></slot> `}};nl.styles=J`
1891
+ `}};exports.RecordField.styles=[sz,az];Qr([$({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);Qr([$({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);Qr([$({type:String,attribute:"label-size",reflect:!0})],exports.RecordField.prototype,"labelSize",2);Qr([we()],exports.RecordField.prototype,"hasLabel",2);Qr([we()],exports.RecordField.prototype,"hasLabelRight",2);Qr([we()],exports.RecordField.prototype,"isValueMultiline",2);Qr([Ar(".value")],exports.RecordField.prototype,"value",2);Qr([fi({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);Qr([fi({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=Qr([Z(cp)],exports.RecordField);var dz=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,wu=(n,e,i,o)=>{for(var l=o>1?void 0:o?hz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dz(e,i,l),l};exports.RecordFieldLabel=class extends Ce{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(e){super.updated(e),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return N` <slot></slot> `}};exports.RecordFieldLabel.styles=[lz];wu([we()],exports.RecordFieldLabel.prototype,"hasContent",2);wu([fi()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=wu([Z(up)],exports.RecordFieldLabel);var fz=Object.defineProperty,pz=Object.getOwnPropertyDescriptor,Ri=(n,e,i,o)=>{for(var l=o>1?void 0:o?pz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fz(e,i,l),l};class tr extends Ce{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(e){this.value=e.target.value,this.dispatchChange()}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:this.value}}))}createProxyInput(){this.proxyInput=this.ownerDocument.createElement("input"),this.proxyInput.type="hidden",this.appendChild(this.proxyInput)}updateProxyInput(){typeof this.value=="string"&&this.proxyInput&&(this.proxyInput.name=this.name,this.proxyInput.value=this.value||"")}updated(e){super.updated(e),this.useProxy&&this.updateProxyInput()}}tr.shadowRootOptions={mode:"open",delegatesFocus:!0};Ri([$({type:Boolean,reflect:!0})],tr.prototype,"disabled",2);Ri([$({type:Boolean,reflect:!0})],tr.prototype,"required",2);Ri([$({type:Boolean,reflect:!0})],tr.prototype,"invalid",2);Ri([$({type:String})],tr.prototype,"name",2);Ri([$({type:String})],tr.prototype,"id",2);Ri([$({type:String})],tr.prototype,"value",2);Ri([we()],tr.prototype,"proxyInput",2);Ri([we()],tr.prototype,"useProxy",2);var gz=Object.defineProperty,vz=Object.getOwnPropertyDescriptor,bz=(n,e,i,o)=>{for(var l=o>1?void 0:o?vz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gz(e,i,l),l};const mz=le("input-guide");let nl=class extends Ce{render(){return N` <slot></slot> `}};nl.styles=X`
1892
1892
  :host {
1893
1893
  font-size: var(--brz-font-size-xs);
1894
1894
  }
1895
- `;nl=fz([Z(pz)],nl);var gz=Object.defineProperty,vz=Object.getOwnPropertyDescriptor,bz=(n,e,i,o)=>{for(var l=o>1?void 0:o?vz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gz(e,i,l),l};const up=ce("input-error");exports.InputError=class extends we{render(){return N` <slot></slot> `}};exports.InputError.styles=J`
1895
+ `;nl=bz([Z(mz)],nl);var yz=Object.defineProperty,Cz=Object.getOwnPropertyDescriptor,wz=(n,e,i,o)=>{for(var l=o>1?void 0:o?Cz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&yz(e,i,l),l};const dp=le("input-error");exports.InputError=class extends Ce{render(){return N` <slot></slot> `}};exports.InputError.styles=X`
1896
1896
  :host {
1897
1897
  font-size: var(--brz-font-size);
1898
1898
  color: var(--brz-color-error);
1899
1899
  }
1900
- `;exports.InputError=bz([Z(up)],exports.InputError);var mz=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,Ar=(n,e,i,o)=>{for(var l=o>1?void 0:o?yz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mz(e,i,l),l};const dp=ce("labeled-input"),hp=ce("input-label"),Cz=J`
1900
+ `;exports.InputError=wz([Z(dp)],exports.InputError);var xz=Object.defineProperty,zz=Object.getOwnPropertyDescriptor,Ir=(n,e,i,o)=>{for(var l=o>1?void 0:o?zz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xz(e,i,l),l};const hp=le("labeled-input"),fp=le("input-label"),Lz=X`
1901
1901
  .guide {
1902
1902
  display: flex;
1903
1903
  }
@@ -1944,7 +1944,7 @@
1944
1944
  </div>
1945
1945
  </div>
1946
1946
  </brz-record-field>
1947
- `}};exports.LabeledInput.styles=[J`
1947
+ `}};exports.LabeledInput.styles=[X`
1948
1948
  :host {
1949
1949
  display: block;
1950
1950
  }
@@ -1960,7 +1960,7 @@
1960
1960
  :host([optional]:not([required])) .label-flag {
1961
1961
  color: var(--brz-color-text-placeholder);
1962
1962
  }
1963
- `,Cz];Ar([E({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Ar([E({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Ar([E({type:String,attribute:"label-size",reflect:!0})],exports.LabeledInput.prototype,"labelSize",2);Ar([E({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);Ar([Ce()],exports.LabeledInput.prototype,"hasPrompt",2);Ar([Ce()],exports.LabeledInput.prototype,"hasError",2);Ar([Ce()],exports.LabeledInput.prototype,"hasLabel",2);Ar([fi({slot:"label"})],exports.LabeledInput.prototype,"label",2);Ar([fi({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=Ar([Z(dp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=Ar([Z(hp)],exports.InputLabel);var wz=Object.defineProperty,xz=Object.getOwnPropertyDescriptor,Hl=(n,e,i,o)=>{for(var l=o>1?void 0:o?xz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wz(e,i,l),l};const zz=J`
1963
+ `,Lz];Ir([$({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Ir([$({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Ir([$({type:String,attribute:"label-size",reflect:!0})],exports.LabeledInput.prototype,"labelSize",2);Ir([$({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);Ir([we()],exports.LabeledInput.prototype,"hasPrompt",2);Ir([we()],exports.LabeledInput.prototype,"hasError",2);Ir([we()],exports.LabeledInput.prototype,"hasLabel",2);Ir([fi({slot:"label"})],exports.LabeledInput.prototype,"label",2);Ir([fi({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=Ir([Z(hp)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=Ir([Z(fp)],exports.InputLabel);var Sz=Object.defineProperty,Mz=Object.getOwnPropertyDescriptor,Hl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Mz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Sz(e,i,l),l};const Tz=X`
1964
1964
  :host {
1965
1965
  --input-text-color: var(--brz-color-neutral-850);
1966
1966
  --input-font: var(--brz-font-family);
@@ -2065,7 +2065,7 @@
2065
2065
  class="trailing"
2066
2066
  ></brz-icon>`:null}
2067
2067
  </div>
2068
- `}}rr.styles=[...exports.LabeledInput.styles,zz];Hl([E({type:Boolean,reflect:!0})],rr.prototype,"readonly",2);Hl([E({type:String,reflect:!0})],rr.prototype,"placeholder",2);Hl([E({type:String,reflect:!0,attribute:"leading-icon"})],rr.prototype,"leadingIcon",2);Hl([E({type:String,reflect:!0,attribute:"trailing-icon"})],rr.prototype,"trailingIcon",2);var Lz=Object.defineProperty,Sz=Object.getOwnPropertyDescriptor,fr=(n,e,i,o)=>{for(var l=o>1?void 0:o?Sz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Lz(e,i,l),l};const ka="searchMessage",Kh="";class bt extends rr{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.autocomplete="off",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(e=>({...e,id:`option-${kc()}`}))]:[]}updated(e){super.updated(e),e.has("options")&&this.setInnerOptions(),e.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(e){var i,o;return!e||(e==null?void 0:e.value)===""?"":e instanceof exports.MenuItem?(o=(i=e.textContent)==null?void 0:i.trim())!=null?o:"":e.label}handleKeyDown(e){["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),this.dropdown.open())}handleKeyUp(e){e.key===" "&&this.canSearch&&(e.preventDefault(),this.dropdown.open())}get defaultSlot(){var e,i;return(i=(e=this.renderRoot)==null?void 0:e.querySelector("slot:not([name])"))==null?void 0:i.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var e;return this.isDataDriven?(e=this.virtualListElement)==null?void 0:e.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Cu)}get optionElements(){var i,o,l;const e=(i=this.optionElementsRenderRoot)!=null&&i.querySelectorAll(ol).length?(o=this.optionElementsRenderRoot)==null?void 0:o.querySelectorAll(ol):(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll("sp-menu-item");return Array.from(e!=null?e:[])}setValue(e){this.value=e,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(e){this.isMenuOpen&&e.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var e;(e=this.dropdown)==null||e.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():N`
2068
+ `}}rr.styles=[...exports.LabeledInput.styles,Tz];Hl([$({type:Boolean,reflect:!0})],rr.prototype,"readonly",2);Hl([$({type:String,reflect:!0})],rr.prototype,"placeholder",2);Hl([$({type:String,reflect:!0,attribute:"leading-icon"})],rr.prototype,"leadingIcon",2);Hl([$({type:String,reflect:!0,attribute:"trailing-icon"})],rr.prototype,"trailingIcon",2);var kz=Object.defineProperty,Oz=Object.getOwnPropertyDescriptor,fr=(n,e,i,o)=>{for(var l=o>1?void 0:o?Oz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kz(e,i,l),l};const Oa="searchMessage",Yh="";class bt extends rr{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.autocomplete="off",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(e=>({...e,id:`option-${kc()}`}))]:[]}updated(e){super.updated(e),e.has("options")&&this.setInnerOptions(),e.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(e){var i,o;return!e||(e==null?void 0:e.value)===""?"":e instanceof exports.MenuItem?(o=(i=e.textContent)==null?void 0:i.trim())!=null?o:"":e.label}handleKeyDown(e){["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),this.dropdown.open())}handleKeyUp(e){e.key===" "&&this.canSearch&&(e.preventDefault(),this.dropdown.open())}get defaultSlot(){var e,i;return(i=(e=this.renderRoot)==null?void 0:e.querySelector("slot:not([name])"))==null?void 0:i.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var e;return this.isDataDriven?(e=this.virtualListElement)==null?void 0:e.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Cu)}get optionElements(){var i,o,l;const e=(i=this.optionElementsRenderRoot)!=null&&i.querySelectorAll(ol).length?(o=this.optionElementsRenderRoot)==null?void 0:o.querySelectorAll(ol):(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll("sp-menu-item");return Array.from(e!=null?e:[])}setValue(e){this.value=e,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(e){this.isMenuOpen&&e.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var e;(e=this.dropdown)==null||e.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():N`
2069
2069
  <brz-dropdown-menu
2070
2070
  @brz-menu-select=${this.handleSelect}
2071
2071
  @brz-menu-item-select=${this.handleItemSelect}
@@ -2078,7 +2078,7 @@
2078
2078
  ${this.renderReferenceElement()} ${this.renderDropdownContent()}
2079
2079
  </brz-dropdown-menu>
2080
2080
  `}renderSearchMessage(){return N`
2081
- <brz-menu-item slot="options" id=${ka} disabled>
2081
+ <brz-menu-item slot="options" id=${Oa} disabled>
2082
2082
  ${this.searchMessage}
2083
2083
  </brz-menu-item>
2084
2084
  `}renderReferenceElement(){return N``}renderDropdownContent(){return N``}renderOptionsData(e=this.innerOptions){return e!=null&&e.length?N`
@@ -2096,7 +2096,7 @@
2096
2096
  </brz-menu-item>
2097
2097
  `}
2098
2098
  ></brz-virtual-list>
2099
- `:null}isQueryMatch(e){return this.query?this.getItemLabel(e).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(e):!1}isCustomQueryMatch(e){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(e){}handleItemSelect(e){}handleValueChange(){}handleQueryInput(e){const i=e.target;this.query=i==null?void 0:i.value,this.dispatchEvent(new xu({detail:{query:this.query}})),this.hasClearableOption()&&i.value===Kh&&this.setValue("")}hasClearableOption(){let e=!1;return this.getItems().forEach(i=>{i.value===Kh&&(e=!0)}),e}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var e;return!!((e=this.options)!=null&&e.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}bt.styles=[...rr.styles,J`
2099
+ `:null}isQueryMatch(e){return this.query?this.getItemLabel(e).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(e):!1}isCustomQueryMatch(e){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(e){}handleItemSelect(e){}handleValueChange(){}handleQueryInput(e){const i=e.target;this.query=i==null?void 0:i.value,this.dispatchEvent(new xu({detail:{query:this.query}})),this.hasClearableOption()&&i.value===Yh&&this.setValue("")}hasClearableOption(){let e=!1;return this.getItems().forEach(i=>{i.value===Yh&&(e=!0)}),e}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var e;return!!((e=this.options)!=null&&e.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}bt.styles=[...rr.styles,X`
2100
2100
  :host {
2101
2101
  /** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
2102
2102
  --dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
@@ -2141,7 +2141,7 @@
2141
2141
  }
2142
2142
 
2143
2143
  button.wrapper {
2144
- ${o2};
2144
+ ${a2};
2145
2145
  align-items: center;
2146
2146
  background-color: var(--brz-color-white);
2147
2147
  border: var(--input-border);
@@ -2179,7 +2179,7 @@
2179
2179
  border-color: var(--input-focus-border-color);
2180
2180
  outline: none;
2181
2181
  }
2182
- `];fr([E({type:Boolean})],bt.prototype,"controlled",2);fr([E({attribute:"can-search",type:Boolean,reflect:!0})],bt.prototype,"canSearch",2);fr([E({type:Boolean,reflect:!0})],bt.prototype,"loading",2);fr([E({type:String,reflect:!0,attribute:"trailing-icon"})],bt.prototype,"trailingIcon",2);fr([E({type:Array})],bt.prototype,"options",2);fr([E({attribute:"search-message"})],bt.prototype,"searchMessage",2);fr([E({type:String,reflect:!0})],bt.prototype,"autocomplete",2);fr([Ce()],bt.prototype,"isMenuOpen",2);fr([Ce()],bt.prototype,"hasResults",2);fr([Ce()],bt.prototype,"query",2);fr([Ce()],bt.prototype,"innerOptions",2);fr([Ir("brz-dropdown-menu")],bt.prototype,"dropdown",2);fr([Ir("#selectSearch")],bt.prototype,"queryInput",2);class xu extends CustomEvent{constructor(e={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...e})}}var Mz=Object.defineProperty,Tz=Object.getOwnPropertyDescriptor,zn=(n,e,i,o)=>{for(var l=o>1?void 0:o?Tz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Mz(e,i,l),l};const ol=ce("menu-item");exports.MenuItem=class extends we{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new fp({detail:{item:this}}))}handleClick(e){e.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&e.stopPropagation()}handleKeyDown(){}get labelTemplate(){return N` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?N`
2182
+ `];fr([$({type:Boolean})],bt.prototype,"controlled",2);fr([$({attribute:"can-search",type:Boolean,reflect:!0})],bt.prototype,"canSearch",2);fr([$({type:Boolean,reflect:!0})],bt.prototype,"loading",2);fr([$({type:String,reflect:!0,attribute:"trailing-icon"})],bt.prototype,"trailingIcon",2);fr([$({type:Array})],bt.prototype,"options",2);fr([$({attribute:"search-message"})],bt.prototype,"searchMessage",2);fr([$({type:String,reflect:!0})],bt.prototype,"autocomplete",2);fr([we()],bt.prototype,"isMenuOpen",2);fr([we()],bt.prototype,"hasResults",2);fr([we()],bt.prototype,"query",2);fr([we()],bt.prototype,"innerOptions",2);fr([Ar("brz-dropdown-menu")],bt.prototype,"dropdown",2);fr([Ar("#selectSearch")],bt.prototype,"queryInput",2);class xu extends CustomEvent{constructor(e={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...e})}}var $z=Object.defineProperty,Ez=Object.getOwnPropertyDescriptor,zn=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ez(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&$z(e,i,l),l};const ol=le("menu-item");exports.MenuItem=class extends Ce{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new pp({detail:{item:this}}))}handleClick(e){e.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&e.stopPropagation()}handleKeyDown(){}get labelTemplate(){return N` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?N`
2183
2183
  <brz-input-checkbox
2184
2184
  ?disabled=${this.disabled}
2185
2185
  ?checked=${this.selected}
@@ -2200,7 +2200,7 @@
2200
2200
  >
2201
2201
  ${this.itemTemplate}
2202
2202
  </li>
2203
- `}};exports.MenuItem.styles=J`
2203
+ `}};exports.MenuItem.styles=X`
2204
2204
  :host {
2205
2205
  --menu-item-min-height: var(--brz-spacing-8);
2206
2206
  --menu-item-padding-y: calc(1.5 * var(--brz-spacing-1));
@@ -2256,7 +2256,7 @@
2256
2256
  padding-left: var(--menu-item-label-gutter);
2257
2257
  position: relative;
2258
2258
  }
2259
- `;zn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);zn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);zn([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);zn([E({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);zn([E({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);zn([E({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=zn([Z(ol)],exports.MenuItem);class fp extends CustomEvent{constructor(e={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...e})}}var kz=Object.defineProperty,Oz=Object.getOwnPropertyDescriptor,bi=(n,e,i,o)=>{for(var l=o>1?void 0:o?Oz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kz(e,i,l),l};const pp=ce("menu"),kr="selectAll";exports.Menu=class extends we{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(e){var i;super.updated(e),e.has("highlightedIndex")&&((i=this.highlightedItem)==null||i.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(e){e.preventDefault();const{key:i}=e,o=({before:d,after:u})=>(v,b)=>v.hidden?!1:d===void 0&&u===void 0||d!==void 0&&b<d||u!==void 0&&b>u;this.clearHighlightedItem();const l=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,l[this.highlightedIndex].highlighted=!0;return}i==="ArrowUp"&&(this.highlightedIndex=Zx(l,o({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=l.length-1)),i==="ArrowDown"&&(this.highlightedIndex=l.findIndex(o({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),l[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(e){if(e.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(e=>e.selected)}getActiveMenuItem(e){return e?e.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(e){if(!this.selectable)return this.bypassSelectedState();if(e.value===void 0)throw new Error("No value found for MenuItem");if(!e.disabled){if(this.multiselect)e.toggle();else{const[i]=this.selectedItems;i==null||i.deselect(),e.select()}this.updateSelected(e.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(e){const i=this.selected.some(l=>e===l);if(this.multiselect&&i){this.selected=this.selected.filter(l=>e!==l);return}i||(this.selected=this.multiselect?[...this.selected,e]:[e])}handleMenuItemSelect(e){e.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(e))}emitSelection(){this.dispatchEvent(new vp({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(e){var i,o;(o=(i=this.keyBindings)[e.key])==null||o.call(i,e)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new gp),this.reset()}handleTabKey(e){e.preventDefault(),this.emitBlur()}applyPropsToChildren(e){$z(e)&&e.forEach(i=>{var o;i.selectable=this.selectable&&i.id!==ka,i.toggleable=this.multiselect&&i.id!==ka,i.id!==kr&&(i.selected=i.value!==void 0?(o=this.selected)==null?void 0:o.includes(i.value):!1)})}handleSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.slottedElements=i,this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:e}}){this.applyPropsToChildren(e),this.virtualListMenuItems=e}render(){var o;const e=this.getMenuItems(),i=e&&(e==null?void 0:e.length)>0||this.slottedElements&&((o=this.slottedElements)==null?void 0:o.length)>0?"menu-container":"";return N`
2259
+ `;zn([$({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);zn([$({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);zn([$({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);zn([$({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);zn([$({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);zn([$({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=zn([Z(ol)],exports.MenuItem);class pp extends CustomEvent{constructor(e={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...e})}}var _z=Object.defineProperty,Az=Object.getOwnPropertyDescriptor,bi=(n,e,i,o)=>{for(var l=o>1?void 0:o?Az(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&_z(e,i,l),l};const gp=le("menu"),kr="selectAll";exports.Menu=class extends Ce{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(e){var i;super.updated(e),e.has("highlightedIndex")&&((i=this.highlightedItem)==null||i.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(e){e.preventDefault();const{key:i}=e,o=({before:d,after:u})=>(v,b)=>v.hidden?!1:d===void 0&&u===void 0||d!==void 0&&b<d||u!==void 0&&b>u;this.clearHighlightedItem();const l=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,l[this.highlightedIndex].highlighted=!0;return}i==="ArrowUp"&&(this.highlightedIndex=Gx(l,o({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=l.length-1)),i==="ArrowDown"&&(this.highlightedIndex=l.findIndex(o({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),l[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(e){if(e.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(e=>e.selected)}getActiveMenuItem(e){return e?e.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(e){if(!this.selectable)return this.bypassSelectedState();if(e.value===void 0)throw new Error("No value found for MenuItem");if(!e.disabled){if(this.multiselect)e.toggle();else{const[i]=this.selectedItems;i==null||i.deselect(),e.select()}this.updateSelected(e.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(e){const i=this.selected.some(l=>e===l);if(this.multiselect&&i){this.selected=this.selected.filter(l=>e!==l);return}i||(this.selected=this.multiselect?[...this.selected,e]:[e])}handleMenuItemSelect(e){e.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(e))}emitSelection(){this.dispatchEvent(new bp({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(e){var i,o;(o=(i=this.keyBindings)[e.key])==null||o.call(i,e)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new vp),this.reset()}handleTabKey(e){e.preventDefault(),this.emitBlur()}applyPropsToChildren(e){Iz(e)&&e.forEach(i=>{var o;i.selectable=this.selectable&&i.id!==Oa,i.toggleable=this.multiselect&&i.id!==Oa,i.id!==kr&&(i.selected=i.value!==void 0?(o=this.selected)==null?void 0:o.includes(i.value):!1)})}handleSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.slottedElements=i,this.applyPropsToChildren(i)}handleVirtualListUpdate({detail:{itemElements:e}}){this.applyPropsToChildren(e),this.virtualListMenuItems=e}render(){var o;const e=this.getMenuItems(),i=e&&(e==null?void 0:e.length)>0||this.slottedElements&&((o=this.slottedElements)==null?void 0:o.length)>0?"menu-container":"";return N`
2260
2260
  <div class=${i}>
2261
2261
  <ul
2262
2262
  class="menu"
@@ -2268,7 +2268,7 @@
2268
2268
  <slot @slotchange=${this.handleSlotChange}></slot>
2269
2269
  </ul>
2270
2270
  </div>
2271
- `}};exports.Menu.styles=J`
2271
+ `}};exports.Menu.styles=X`
2272
2272
  :host .menu-container {
2273
2273
  --brz-list-max-height: 14rem;
2274
2274
  --brz-menu-padding-y: var(--brz-spacing-1);
@@ -2304,13 +2304,13 @@
2304
2304
  width: var(--brz-menu-width, 10rem);
2305
2305
  padding: 0;
2306
2306
  }
2307
- `;bi([E({type:Boolean})],exports.Menu.prototype,"multiselect",2);bi([E({type:Boolean})],exports.Menu.prototype,"selectable",2);bi([E({type:Array})],exports.Menu.prototype,"selected",2);bi([E({reflect:!0})],exports.Menu.prototype,"size",2);bi([Ce()],exports.Menu.prototype,"highlightedIndex",2);bi([Ce()],exports.Menu.prototype,"virtualListMenuItems",2);bi([Ce()],exports.Menu.prototype,"slottedElements",2);bi([fi({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=bi([Z(pp)],exports.Menu);const $z=n=>n[0]instanceof exports.MenuItem;class gp extends CustomEvent{constructor(e={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...e})}}class vp extends CustomEvent{constructor(e={}){super("brz-menu-select",{bubbles:!0,composed:!0,...e})}}var Ez=Object.defineProperty,_z=Object.getOwnPropertyDescriptor,bp=(n,e,i,o)=>{for(var l=o>1?void 0:o?_z(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Ez(e,i,l),l};const mp=ce("combo-box"),yp=ce("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=bp([Z(mp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=bp([Z(yp)],exports.ComboBoxOption);/*!
2307
+ `;bi([$({type:Boolean})],exports.Menu.prototype,"multiselect",2);bi([$({type:Boolean})],exports.Menu.prototype,"selectable",2);bi([$({type:Array})],exports.Menu.prototype,"selected",2);bi([$({reflect:!0})],exports.Menu.prototype,"size",2);bi([we()],exports.Menu.prototype,"highlightedIndex",2);bi([we()],exports.Menu.prototype,"virtualListMenuItems",2);bi([we()],exports.Menu.prototype,"slottedElements",2);bi([fi({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=bi([Z(gp)],exports.Menu);const Iz=n=>n[0]instanceof exports.MenuItem;class vp extends CustomEvent{constructor(e={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...e})}}class bp extends CustomEvent{constructor(e={}){super("brz-menu-select",{bubbles:!0,composed:!0,...e})}}var Pz=Object.defineProperty,Dz=Object.getOwnPropertyDescriptor,mp=(n,e,i,o)=>{for(var l=o>1?void 0:o?Dz(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Pz(e,i,l),l};const yp=le("combo-box"),Cp=le("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=mp([Z(yp)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=mp([Z(Cp)],exports.ComboBoxOption);/*!
2308
2308
  * tabbable 6.2.0
2309
2309
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
2310
- */var Cp=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],al=Cp.join(","),wp=typeof Element=="undefined",xn=wp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,sl=!wp&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},ll=function n(e,i){var o;i===void 0&&(i=!0);var l=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),d=l===""||l==="true",u=d||i&&e&&n(e.parentNode);return u},Iz=function(e){var i,o=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"contenteditable");return o===""||o==="true"},xp=function(e,i,o){if(ll(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(al));return i&&xn.call(e,al)&&l.unshift(e),l=l.filter(o),l},zp=function n(e,i,o){for(var l=[],d=Array.from(e);d.length;){var u=d.shift();if(!ll(u,!1))if(u.tagName==="SLOT"){var v=u.assignedElements(),b=v.length?v:u.children,m=n(b,!0,o);o.flatten?l.push.apply(l,m):l.push({scopeParent:u,candidates:m})}else{var M=xn.call(u,al);M&&o.filter(u)&&(i||!e.includes(u))&&l.push(u);var L=u.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(u),T=!ll(L,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(u));if(L&&T){var $=n(L===!0?u.children:L.children,!0,o);o.flatten?l.push.apply(l,$):l.push({scopeParent:u,candidates:$})}else d.unshift.apply(d,u.children)}}return l},Lp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},hn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Iz(e))&&!Lp(e)?0:e.tabIndex},Az=function(e,i){var o=hn(e);return o<0&&i&&!Lp(e)?0:o},Pz=function(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex},Sp=function(e){return e.tagName==="INPUT"},Dz=function(e){return Sp(e)&&e.type==="hidden"},Nz=function(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return i},Hz=function(e,i){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===i)return e[o]},Rz=function(e){if(!e.name)return!0;var i=e.form||sl(e),o=function(v){return i.querySelectorAll('input[type="radio"][name="'+v+'"]')},l;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(e.name));else try{l=o(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var d=Hz(l,e.form);return!d||d===e},Fz=function(e){return Sp(e)&&e.type==="radio"},Bz=function(e){return Fz(e)&&!Rz(e)},Vz=function(e){var i,o=e&&sl(e),l=(i=o)===null||i===void 0?void 0:i.host,d=!1;if(o&&o!==e){var u,v,b;for(d=!!((u=l)!==null&&u!==void 0&&(v=u.ownerDocument)!==null&&v!==void 0&&v.contains(l)||e!=null&&(b=e.ownerDocument)!==null&&b!==void 0&&b.contains(e));!d&&l;){var m,M,L;o=sl(l),l=(m=o)===null||m===void 0?void 0:m.host,d=!!((M=l)!==null&&M!==void 0&&(L=M.ownerDocument)!==null&&L!==void 0&&L.contains(l))}}return d},Yh=function(e){var i=e.getBoundingClientRect(),o=i.width,l=i.height;return o===0&&l===0},Zz=function(e,i){var o=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var d=xn.call(e,"details>summary:first-of-type"),u=d?e.parentElement:e;if(xn.call(u,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var v=e;e;){var b=e.parentElement,m=sl(e);if(b&&!b.shadowRoot&&l(b)===!0)return Yh(e);e.assignedSlot?e=e.assignedSlot:!b&&m!==e.ownerDocument?e=m.host:e=b}e=v}if(Vz(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Yh(e);return!1},Wz=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var i=e.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var o=0;o<i.children.length;o++){var l=i.children.item(o);if(l.tagName==="LEGEND")return xn.call(i,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}i=i.parentElement}return!1},cl=function(e,i){return!(i.disabled||ll(i)||Dz(i)||Zz(i,e)||Nz(i)||Wz(i))},Hc=function(e,i){return!(Bz(i)||hn(i)<0||!cl(e,i))},Uz=function(e){var i=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(i)||i>=0)},jz=function n(e){var i=[],o=[];return e.forEach(function(l,d){var u=!!l.scopeParent,v=u?l.scopeParent:l,b=Az(v,u),m=u?n(l.candidates):v;b===0?u?i.push.apply(i,m):i.push(v):o.push({documentOrder:d,tabIndex:b,item:l,isScope:u,content:m})}),o.sort(Pz).reduce(function(l,d){return d.isScope?l.push.apply(l,d.content):l.push(d.content),l},[]).concat(i)},Gz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=zp([e],i.includeContainer,{filter:Hc.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:Uz}):o=xp(e,i.includeContainer,Hc.bind(null,i)),jz(o)},qz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=zp([e],i.includeContainer,{filter:cl.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):o=xp(e,i.includeContainer,cl.bind(null,i)),o},Jn=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return xn.call(e,al)===!1?!1:Hc(i,e)},Kz=Cp.concat("iframe").join(","),dc=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return xn.call(e,Kz)===!1?!1:cl(i,e)};/*!
2310
+ */var wp=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],al=wp.join(","),xp=typeof Element=="undefined",xn=xp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,sl=!xp&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},ll=function n(e,i){var o;i===void 0&&(i=!0);var l=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),d=l===""||l==="true",u=d||i&&e&&n(e.parentNode);return u},Nz=function(e){var i,o=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"contenteditable");return o===""||o==="true"},zp=function(e,i,o){if(ll(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(al));return i&&xn.call(e,al)&&l.unshift(e),l=l.filter(o),l},Lp=function n(e,i,o){for(var l=[],d=Array.from(e);d.length;){var u=d.shift();if(!ll(u,!1))if(u.tagName==="SLOT"){var v=u.assignedElements(),b=v.length?v:u.children,m=n(b,!0,o);o.flatten?l.push.apply(l,m):l.push({scopeParent:u,candidates:m})}else{var M=xn.call(u,al);M&&o.filter(u)&&(i||!e.includes(u))&&l.push(u);var L=u.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(u),T=!ll(L,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(u));if(L&&T){var E=n(L===!0?u.children:L.children,!0,o);o.flatten?l.push.apply(l,E):l.push({scopeParent:u,candidates:E})}else d.unshift.apply(d,u.children)}}return l},Sp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},hn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Nz(e))&&!Sp(e)?0:e.tabIndex},Hz=function(e,i){var o=hn(e);return o<0&&i&&!Sp(e)?0:o},Rz=function(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex},Mp=function(e){return e.tagName==="INPUT"},Fz=function(e){return Mp(e)&&e.type==="hidden"},Bz=function(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return i},Vz=function(e,i){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===i)return e[o]},Zz=function(e){if(!e.name)return!0;var i=e.form||sl(e),o=function(v){return i.querySelectorAll('input[type="radio"][name="'+v+'"]')},l;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")l=o(window.CSS.escape(e.name));else try{l=o(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var d=Vz(l,e.form);return!d||d===e},Wz=function(e){return Mp(e)&&e.type==="radio"},Uz=function(e){return Wz(e)&&!Zz(e)},jz=function(e){var i,o=e&&sl(e),l=(i=o)===null||i===void 0?void 0:i.host,d=!1;if(o&&o!==e){var u,v,b;for(d=!!((u=l)!==null&&u!==void 0&&(v=u.ownerDocument)!==null&&v!==void 0&&v.contains(l)||e!=null&&(b=e.ownerDocument)!==null&&b!==void 0&&b.contains(e));!d&&l;){var m,M,L;o=sl(l),l=(m=o)===null||m===void 0?void 0:m.host,d=!!((M=l)!==null&&M!==void 0&&(L=M.ownerDocument)!==null&&L!==void 0&&L.contains(l))}}return d},Xh=function(e){var i=e.getBoundingClientRect(),o=i.width,l=i.height;return o===0&&l===0},Gz=function(e,i){var o=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var d=xn.call(e,"details>summary:first-of-type"),u=d?e.parentElement:e;if(xn.call(u,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="legacy-full"){if(typeof l=="function"){for(var v=e;e;){var b=e.parentElement,m=sl(e);if(b&&!b.shadowRoot&&l(b)===!0)return Xh(e);e.assignedSlot?e=e.assignedSlot:!b&&m!==e.ownerDocument?e=m.host:e=b}e=v}if(jz(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return Xh(e);return!1},qz=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var i=e.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var o=0;o<i.children.length;o++){var l=i.children.item(o);if(l.tagName==="LEGEND")return xn.call(i,"fieldset[disabled] *")?!0:!l.contains(e)}return!0}i=i.parentElement}return!1},cl=function(e,i){return!(i.disabled||ll(i)||Fz(i)||Gz(i,e)||Bz(i)||qz(i))},Hc=function(e,i){return!(Uz(i)||hn(i)<0||!cl(e,i))},Kz=function(e){var i=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(i)||i>=0)},Yz=function n(e){var i=[],o=[];return e.forEach(function(l,d){var u=!!l.scopeParent,v=u?l.scopeParent:l,b=Hz(v,u),m=u?n(l.candidates):v;b===0?u?i.push.apply(i,m):i.push(v):o.push({documentOrder:d,tabIndex:b,item:l,isScope:u,content:m})}),o.sort(Rz).reduce(function(l,d){return d.isScope?l.push.apply(l,d.content):l.push(d.content),l},[]).concat(i)},Xz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=Lp([e],i.includeContainer,{filter:Hc.bind(null,i),flatten:!1,getShadowRoot:i.getShadowRoot,shadowRootFilter:Kz}):o=zp(e,i.includeContainer,Hc.bind(null,i)),Yz(o)},Jz=function(e,i){i=i||{};var o;return i.getShadowRoot?o=Lp([e],i.includeContainer,{filter:cl.bind(null,i),flatten:!0,getShadowRoot:i.getShadowRoot}):o=zp(e,i.includeContainer,cl.bind(null,i)),o},Jn=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return xn.call(e,al)===!1?!1:Hc(i,e)},Qz=wp.concat("iframe").join(","),dc=function(e,i){if(i=i||{},!e)throw new Error("No node provided");return xn.call(e,Qz)===!1?!1:cl(i,e)};/*!
2311
2311
  * focus-trap 7.5.4
2312
2312
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
2313
- */function Xh(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,o)}return i}function Jh(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Xh(Object(i),!0).forEach(function(o){Yz(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Xh(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function Yz(n,e,i){return e=Jz(e),e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function Xz(n,e){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Jz(n){var e=Xz(n,"string");return typeof e=="symbol"?e:String(e)}var Qh={activateTrap:function(e,i){if(e.length>0){var o=e[e.length-1];o!==i&&o.pause()}var l=e.indexOf(i);l===-1||e.splice(l,1),e.push(i)},deactivateTrap:function(e,i){var o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},Qz=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},eL=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Ca=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},tL=function(e){return Ca(e)&&!e.shiftKey},rL=function(e){return Ca(e)&&e.shiftKey},ef=function(e){return setTimeout(e,0)},tf=function(e,i){var o=-1;return e.every(function(l,d){return i(l)?(o=d,!1):!0}),o},fa=function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,o):e},Es=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},iL=[],nL=function(e,i){var o=(i==null?void 0:i.document)||document,l=(i==null?void 0:i.trapStack)||iL,d=Jh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:tL,isKeyBackward:rL},i),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,b=function(V,O,x){return V&&V[O]!==void 0?V[O]:d[x||O]},m=function(V,O){var x=typeof(O==null?void 0:O.composedPath)=="function"?O.composedPath():void 0;return u.containerGroups.findIndex(function(w){var U=w.container,ne=w.tabbableNodes;return U.contains(V)||(x==null?void 0:x.includes(U))||ne.find(function(ye){return ye===V})})},M=function(V){var O=d[V];if(typeof O=="function"){for(var x=arguments.length,w=new Array(x>1?x-1:0),U=1;U<x;U++)w[U-1]=arguments[U];O=O.apply(void 0,w)}if(O===!0&&(O=void 0),!O){if(O===void 0||O===!1)return O;throw new Error("`".concat(V,"` was specified but was not a node, or did not return a node"))}var ne=O;if(typeof O=="string"&&(ne=o.querySelector(O),!ne))throw new Error("`".concat(V,"` as selector refers to no known node"));return ne},L=function(){var V=M("initialFocus");if(V===!1)return!1;if(V===void 0||!dc(V,d.tabbableOptions))if(m(o.activeElement)>=0)V=o.activeElement;else{var O=u.tabbableGroups[0],x=O&&O.firstTabbableNode;V=x||M("fallbackFocus")}if(!V)throw new Error("Your focus-trap needs to have at least one focusable element");return V},T=function(){if(u.containerGroups=u.containers.map(function(V){var O=Gz(V,d.tabbableOptions),x=qz(V,d.tabbableOptions),w=O.length>0?O[0]:void 0,U=O.length>0?O[O.length-1]:void 0,ne=x.find(function(Re){return Jn(Re)}),ye=x.slice().reverse().find(function(Re){return Jn(Re)}),ke=!!O.find(function(Re){return hn(Re)>0});return{container:V,tabbableNodes:O,focusableNodes:x,posTabIndexesFound:ke,firstTabbableNode:w,lastTabbableNode:U,firstDomTabbableNode:ne,lastDomTabbableNode:ye,nextTabbableNode:function(ot){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ye=O.indexOf(ot);return Ye<0?Et?x.slice(x.indexOf(ot)+1).find(function(Xe){return Jn(Xe)}):x.slice(0,x.indexOf(ot)).reverse().find(function(Xe){return Jn(Xe)}):O[Ye+(Et?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(V){return V.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!M("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(V){return V.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},$=function X(V){var O=V.activeElement;if(O)return O.shadowRoot&&O.shadowRoot.activeElement!==null?X(O.shadowRoot):O},H=function X(V){if(V!==!1&&V!==$(document)){if(!V||!V.focus){X(L());return}V.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=V,Qz(V)&&V.select()}},Y=function(V){var O=M("setReturnFocus",V);return O||(O===!1?!1:V)},oe=function(V){var O=V.target,x=V.event,w=V.isBackward,U=w===void 0?!1:w;O=O||Es(x),T();var ne=null;if(u.tabbableGroups.length>0){var ye=m(O,x),ke=ye>=0?u.containerGroups[ye]:void 0;if(ye<0)U?ne=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:ne=u.tabbableGroups[0].firstTabbableNode;else if(U){var Re=tf(u.tabbableGroups,function(ge){var ve=ge.firstTabbableNode;return O===ve});if(Re<0&&(ke.container===O||dc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O,!1))&&(Re=ye),Re>=0){var ot=Re===0?u.tabbableGroups.length-1:Re-1,Et=u.tabbableGroups[ot];ne=hn(O)>=0?Et.lastTabbableNode:Et.lastDomTabbableNode}else Ca(x)||(ne=ke.nextTabbableNode(O,!1))}else{var Ye=tf(u.tabbableGroups,function(ge){var ve=ge.lastTabbableNode;return O===ve});if(Ye<0&&(ke.container===O||dc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O))&&(Ye=ye),Ye>=0){var Xe=Ye===u.tabbableGroups.length-1?0:Ye+1,Be=u.tabbableGroups[Xe];ne=hn(O)>=0?Be.firstTabbableNode:Be.firstDomTabbableNode}else Ca(x)||(ne=ke.nextTabbableNode(O))}}else ne=M("fallbackFocus");return ne},_=function(V){var O=Es(V);if(!(m(O,V)>=0)){if(fa(d.clickOutsideDeactivates,V)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}fa(d.allowOutsideClick,V)||V.preventDefault()}},D=function(V){var O=Es(V),x=m(O,V)>=0;if(x||O instanceof Document)x&&(u.mostRecentlyFocusedNode=O);else{V.stopImmediatePropagation();var w,U=!0;if(u.mostRecentlyFocusedNode)if(hn(u.mostRecentlyFocusedNode)>0){var ne=m(u.mostRecentlyFocusedNode),ye=u.containerGroups[ne].tabbableNodes;if(ye.length>0){var ke=ye.findIndex(function(Re){return Re===u.mostRecentlyFocusedNode});ke>=0&&(d.isKeyForward(u.recentNavEvent)?ke+1<ye.length&&(w=ye[ke+1],U=!1):ke-1>=0&&(w=ye[ke-1],U=!1))}}else u.containerGroups.some(function(Re){return Re.tabbableNodes.some(function(ot){return hn(ot)>0})})||(U=!1);else U=!1;U&&(w=oe({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),H(w||u.mostRecentlyFocusedNode||L())}u.recentNavEvent=void 0},A=function(V){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=V;var x=oe({event:V,isBackward:O});x&&(Ca(V)&&V.preventDefault(),H(x))},B=function(V){if(eL(V)&&fa(d.escapeDeactivates,V)!==!1){V.preventDefault(),v.deactivate();return}(d.isKeyForward(V)||d.isKeyBackward(V))&&A(V,d.isKeyBackward(V))},K=function(V){var O=Es(V);m(O,V)>=0||fa(d.clickOutsideDeactivates,V)||fa(d.allowOutsideClick,V)||(V.preventDefault(),V.stopImmediatePropagation())},ue=function(){if(u.active)return Qh.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?ef(function(){H(L())}):H(L()),o.addEventListener("focusin",D,!0),o.addEventListener("mousedown",_,{capture:!0,passive:!1}),o.addEventListener("touchstart",_,{capture:!0,passive:!1}),o.addEventListener("click",K,{capture:!0,passive:!1}),o.addEventListener("keydown",B,{capture:!0,passive:!1}),v},le=function(){if(u.active)return o.removeEventListener("focusin",D,!0),o.removeEventListener("mousedown",_,!0),o.removeEventListener("touchstart",_,!0),o.removeEventListener("click",K,!0),o.removeEventListener("keydown",B,!0),v},me=function(V){var O=V.some(function(x){var w=Array.from(x.removedNodes);return w.some(function(U){return U===u.mostRecentlyFocusedNode})});O&&H(L())},Me=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(me):void 0,ie=function(){Me&&(Me.disconnect(),u.active&&!u.paused&&u.containers.map(function(V){Me.observe(V,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(V){if(u.active)return this;var O=b(V,"onActivate"),x=b(V,"onPostActivate"),w=b(V,"checkCanFocusTrap");w||T(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,O==null||O();var U=function(){w&&T(),ue(),ie(),x==null||x()};return w?(w(u.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(V){if(!u.active)return this;var O=Jh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},V);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,le(),u.active=!1,u.paused=!1,ie(),Qh.deactivateTrap(l,v);var x=b(O,"onDeactivate"),w=b(O,"onPostDeactivate"),U=b(O,"checkCanReturnFocus"),ne=b(O,"returnFocus","returnFocusOnDeactivate");x==null||x();var ye=function(){ef(function(){ne&&H(Y(u.nodeFocusedBeforeActivation)),w==null||w()})};return ne&&U?(U(Y(u.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(V){if(u.paused||!u.active)return this;var O=b(V,"onPause"),x=b(V,"onPostPause");return u.paused=!0,O==null||O(),le(),ie(),x==null||x(),this},unpause:function(V){if(!u.paused||!u.active)return this;var O=b(V,"onUnpause"),x=b(V,"onPostUnpause");return u.paused=!1,O==null||O(),T(),ue(),ie(),x==null||x(),this},updateContainerElements:function(V){var O=[].concat(V).filter(Boolean);return u.containers=O.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&T(),ie(),this}},v.updateContainerElements(e),v},oL=Object.defineProperty,aL=Object.getOwnPropertyDescriptor,Ln=(n,e,i,o)=>{for(var l=o>1?void 0:o?aL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&oL(e,i,l),l};const Mp=ce("modal"),sL=["small","medium","large","x-large","full-page"];class zu extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends we{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=e=>{if(e.key==="Escape")return this.handleClose(e)},this.handleClose=e=>{!this.open||e instanceof MouseEvent&&this.noClose||e instanceof MouseEvent&&e.target!==this.overlay||(e.stopPropagation(),this.dispatchEvent(new zu))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=nL(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(e){super.updated(e),this.updateComplete.then(()=>{this.focusTrap&&e.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(e=this.focusTrap)==null||e.deactivate()}handleTransitionEnd(e){e.target===this.overlay&&(this.open=!1)}render(){return N`
2313
+ */function Jh(n,e){var i=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),i.push.apply(i,o)}return i}function Qh(n){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?Jh(Object(i),!0).forEach(function(o){eL(n,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Jh(Object(i)).forEach(function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(i,o))})}return n}function eL(n,e,i){return e=rL(e),e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n}function tL(n,e){if(typeof n!="object"||n===null)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function rL(n){var e=tL(n,"string");return typeof e=="symbol"?e:String(e)}var ef={activateTrap:function(e,i){if(e.length>0){var o=e[e.length-1];o!==i&&o.pause()}var l=e.indexOf(i);l===-1||e.splice(l,1),e.push(i)},deactivateTrap:function(e,i){var o=e.indexOf(i);o!==-1&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},iL=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},nL=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},wa=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},oL=function(e){return wa(e)&&!e.shiftKey},aL=function(e){return wa(e)&&e.shiftKey},tf=function(e){return setTimeout(e,0)},rf=function(e,i){var o=-1;return e.every(function(l,d){return i(l)?(o=d,!1):!0}),o},pa=function(e){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];return typeof e=="function"?e.apply(void 0,o):e},Es=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},sL=[],lL=function(e,i){var o=(i==null?void 0:i.document)||document,l=(i==null?void 0:i.trapStack)||sL,d=Qh({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:oL,isKeyBackward:aL},i),u={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,b=function(V,O,x){return V&&V[O]!==void 0?V[O]:d[x||O]},m=function(V,O){var x=typeof(O==null?void 0:O.composedPath)=="function"?O.composedPath():void 0;return u.containerGroups.findIndex(function(w){var U=w.container,ne=w.tabbableNodes;return U.contains(V)||(x==null?void 0:x.includes(U))||ne.find(function(ye){return ye===V})})},M=function(V){var O=d[V];if(typeof O=="function"){for(var x=arguments.length,w=new Array(x>1?x-1:0),U=1;U<x;U++)w[U-1]=arguments[U];O=O.apply(void 0,w)}if(O===!0&&(O=void 0),!O){if(O===void 0||O===!1)return O;throw new Error("`".concat(V,"` was specified but was not a node, or did not return a node"))}var ne=O;if(typeof O=="string"&&(ne=o.querySelector(O),!ne))throw new Error("`".concat(V,"` as selector refers to no known node"));return ne},L=function(){var V=M("initialFocus");if(V===!1)return!1;if(V===void 0||!dc(V,d.tabbableOptions))if(m(o.activeElement)>=0)V=o.activeElement;else{var O=u.tabbableGroups[0],x=O&&O.firstTabbableNode;V=x||M("fallbackFocus")}if(!V)throw new Error("Your focus-trap needs to have at least one focusable element");return V},T=function(){if(u.containerGroups=u.containers.map(function(V){var O=Xz(V,d.tabbableOptions),x=Jz(V,d.tabbableOptions),w=O.length>0?O[0]:void 0,U=O.length>0?O[O.length-1]:void 0,ne=x.find(function(Re){return Jn(Re)}),ye=x.slice().reverse().find(function(Re){return Jn(Re)}),ke=!!O.find(function(Re){return hn(Re)>0});return{container:V,tabbableNodes:O,focusableNodes:x,posTabIndexesFound:ke,firstTabbableNode:w,lastTabbableNode:U,firstDomTabbableNode:ne,lastDomTabbableNode:ye,nextTabbableNode:function(ot){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ye=O.indexOf(ot);return Ye<0?Et?x.slice(x.indexOf(ot)+1).find(function(Xe){return Jn(Xe)}):x.slice(0,x.indexOf(ot)).reverse().find(function(Xe){return Jn(Xe)}):O[Ye+(Et?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(V){return V.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!M("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(V){return V.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function J(V){var O=V.activeElement;if(O)return O.shadowRoot&&O.shadowRoot.activeElement!==null?J(O.shadowRoot):O},H=function J(V){if(V!==!1&&V!==E(document)){if(!V||!V.focus){J(L());return}V.focus({preventScroll:!!d.preventScroll}),u.mostRecentlyFocusedNode=V,iL(V)&&V.select()}},Y=function(V){var O=M("setReturnFocus",V);return O||(O===!1?!1:V)},oe=function(V){var O=V.target,x=V.event,w=V.isBackward,U=w===void 0?!1:w;O=O||Es(x),T();var ne=null;if(u.tabbableGroups.length>0){var ye=m(O,x),ke=ye>=0?u.containerGroups[ye]:void 0;if(ye<0)U?ne=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:ne=u.tabbableGroups[0].firstTabbableNode;else if(U){var Re=rf(u.tabbableGroups,function(ge){var ve=ge.firstTabbableNode;return O===ve});if(Re<0&&(ke.container===O||dc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O,!1))&&(Re=ye),Re>=0){var ot=Re===0?u.tabbableGroups.length-1:Re-1,Et=u.tabbableGroups[ot];ne=hn(O)>=0?Et.lastTabbableNode:Et.lastDomTabbableNode}else wa(x)||(ne=ke.nextTabbableNode(O,!1))}else{var Ye=rf(u.tabbableGroups,function(ge){var ve=ge.lastTabbableNode;return O===ve});if(Ye<0&&(ke.container===O||dc(O,d.tabbableOptions)&&!Jn(O,d.tabbableOptions)&&!ke.nextTabbableNode(O))&&(Ye=ye),Ye>=0){var Xe=Ye===u.tabbableGroups.length-1?0:Ye+1,Be=u.tabbableGroups[Xe];ne=hn(O)>=0?Be.firstTabbableNode:Be.firstDomTabbableNode}else wa(x)||(ne=ke.nextTabbableNode(O))}}else ne=M("fallbackFocus");return ne},_=function(V){var O=Es(V);if(!(m(O,V)>=0)){if(pa(d.clickOutsideDeactivates,V)){v.deactivate({returnFocus:d.returnFocusOnDeactivate});return}pa(d.allowOutsideClick,V)||V.preventDefault()}},D=function(V){var O=Es(V),x=m(O,V)>=0;if(x||O instanceof Document)x&&(u.mostRecentlyFocusedNode=O);else{V.stopImmediatePropagation();var w,U=!0;if(u.mostRecentlyFocusedNode)if(hn(u.mostRecentlyFocusedNode)>0){var ne=m(u.mostRecentlyFocusedNode),ye=u.containerGroups[ne].tabbableNodes;if(ye.length>0){var ke=ye.findIndex(function(Re){return Re===u.mostRecentlyFocusedNode});ke>=0&&(d.isKeyForward(u.recentNavEvent)?ke+1<ye.length&&(w=ye[ke+1],U=!1):ke-1>=0&&(w=ye[ke-1],U=!1))}}else u.containerGroups.some(function(Re){return Re.tabbableNodes.some(function(ot){return hn(ot)>0})})||(U=!1);else U=!1;U&&(w=oe({target:u.mostRecentlyFocusedNode,isBackward:d.isKeyBackward(u.recentNavEvent)})),H(w||u.mostRecentlyFocusedNode||L())}u.recentNavEvent=void 0},I=function(V){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=V;var x=oe({event:V,isBackward:O});x&&(wa(V)&&V.preventDefault(),H(x))},B=function(V){if(nL(V)&&pa(d.escapeDeactivates,V)!==!1){V.preventDefault(),v.deactivate();return}(d.isKeyForward(V)||d.isKeyBackward(V))&&I(V,d.isKeyBackward(V))},K=function(V){var O=Es(V);m(O,V)>=0||pa(d.clickOutsideDeactivates,V)||pa(d.allowOutsideClick,V)||(V.preventDefault(),V.stopImmediatePropagation())},ue=function(){if(u.active)return ef.activateTrap(l,v),u.delayInitialFocusTimer=d.delayInitialFocus?tf(function(){H(L())}):H(L()),o.addEventListener("focusin",D,!0),o.addEventListener("mousedown",_,{capture:!0,passive:!1}),o.addEventListener("touchstart",_,{capture:!0,passive:!1}),o.addEventListener("click",K,{capture:!0,passive:!1}),o.addEventListener("keydown",B,{capture:!0,passive:!1}),v},ce=function(){if(u.active)return o.removeEventListener("focusin",D,!0),o.removeEventListener("mousedown",_,!0),o.removeEventListener("touchstart",_,!0),o.removeEventListener("click",K,!0),o.removeEventListener("keydown",B,!0),v},me=function(V){var O=V.some(function(x){var w=Array.from(x.removedNodes);return w.some(function(U){return U===u.mostRecentlyFocusedNode})});O&&H(L())},Me=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(me):void 0,ie=function(){Me&&(Me.disconnect(),u.active&&!u.paused&&u.containers.map(function(V){Me.observe(V,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(V){if(u.active)return this;var O=b(V,"onActivate"),x=b(V,"onPostActivate"),w=b(V,"checkCanFocusTrap");w||T(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o.activeElement,O==null||O();var U=function(){w&&T(),ue(),ie(),x==null||x()};return w?(w(u.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(V){if(!u.active)return this;var O=Qh({onDeactivate:d.onDeactivate,onPostDeactivate:d.onPostDeactivate,checkCanReturnFocus:d.checkCanReturnFocus},V);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,ce(),u.active=!1,u.paused=!1,ie(),ef.deactivateTrap(l,v);var x=b(O,"onDeactivate"),w=b(O,"onPostDeactivate"),U=b(O,"checkCanReturnFocus"),ne=b(O,"returnFocus","returnFocusOnDeactivate");x==null||x();var ye=function(){tf(function(){ne&&H(Y(u.nodeFocusedBeforeActivation)),w==null||w()})};return ne&&U?(U(Y(u.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(V){if(u.paused||!u.active)return this;var O=b(V,"onPause"),x=b(V,"onPostPause");return u.paused=!0,O==null||O(),ce(),ie(),x==null||x(),this},unpause:function(V){if(!u.paused||!u.active)return this;var O=b(V,"onUnpause"),x=b(V,"onPostUnpause");return u.paused=!1,O==null||O(),T(),ue(),ie(),x==null||x(),this},updateContainerElements:function(V){var O=[].concat(V).filter(Boolean);return u.containers=O.map(function(x){return typeof x=="string"?o.querySelector(x):x}),u.active&&T(),ie(),this}},v.updateContainerElements(e),v},cL=Object.defineProperty,uL=Object.getOwnPropertyDescriptor,Ln=(n,e,i,o)=>{for(var l=o>1?void 0:o?uL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cL(e,i,l),l};const Tp=le("modal"),dL=["small","medium","large","x-large","full-page"];class zu extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Ce{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.handleKeyUp=e=>{if(e.key==="Escape")return this.handleClose(e)},this.handleClose=e=>{!this.open||e instanceof MouseEvent&&this.noClose||e instanceof MouseEvent&&e.target!==this.overlay||(e.stopPropagation(),this.dispatchEvent(new zu))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=lL(this.modal,{tabbableOptions:{getShadowRoot:!0},fallbackFocus:this.modal,allowOutsideClick:!0,checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(e){super.updated(e),this.updateComplete.then(()=>{this.focusTrap&&e.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var e;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(e=this.focusTrap)==null||e.deactivate()}handleTransitionEnd(e){e.target===this.overlay&&(this.open=!1)}render(){return N`
2314
2314
  <brz-fade-in-out ?shown=${this.open}>
2315
2315
  <div
2316
2316
  id="overlay"
@@ -2324,7 +2324,7 @@
2324
2324
  </div>
2325
2325
  </div>
2326
2326
  </brz-fade-in-out>
2327
- `}};exports.Modal.styles=J`
2327
+ `}};exports.Modal.styles=X`
2328
2328
  :host {
2329
2329
  position: relative;
2330
2330
  z-index: var(--brz-z-index-dialog);
@@ -2412,7 +2412,7 @@
2412
2412
  ::slotted(sp-modal-body:first-child) {
2413
2413
  padding-top: var(--brz-spacing-10);
2414
2414
  }
2415
- `;Ln([E({type:String})],exports.Modal.prototype,"size",2);Ln([E({type:Boolean})],exports.Modal.prototype,"open",2);Ln([E({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Ln([Ce()],exports.Modal.prototype,"focusTrap",2);Ln([Ir("#overlay")],exports.Modal.prototype,"overlay",2);Ln([Ir(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=Ln([Z(Mp)],exports.Modal);var lL=Object.defineProperty,cL=Object.getOwnPropertyDescriptor,ei=(n,e,i,o)=>{for(var l=o>1?void 0:o?cL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lL(e,i,l),l};const Tp=ce("split-row"),kp=ce("action-bar");exports.SplitRow=class extends we{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return N`
2415
+ `;Ln([$({type:String})],exports.Modal.prototype,"size",2);Ln([$({type:Boolean})],exports.Modal.prototype,"open",2);Ln([$({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Ln([we()],exports.Modal.prototype,"focusTrap",2);Ln([Ar("#overlay")],exports.Modal.prototype,"overlay",2);Ln([Ar(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=Ln([Z(Tp)],exports.Modal);var hL=Object.defineProperty,fL=Object.getOwnPropertyDescriptor,ei=(n,e,i,o)=>{for(var l=o>1?void 0:o?fL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hL(e,i,l),l};const kp=le("split-row"),Op=le("action-bar");exports.SplitRow=class extends Ce{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return N`
2416
2416
  <brz-row vertical-align=${this.verticalAlign}>
2417
2417
  <div class="left">
2418
2418
  <slot name="left"></slot>
@@ -2421,7 +2421,7 @@
2421
2421
  <slot name="right"></slot>
2422
2422
  </div>
2423
2423
  </brz-row>
2424
- `}};exports.SplitRow.styles=J`
2424
+ `}};exports.SplitRow.styles=X`
2425
2425
  :host {
2426
2426
  display: flex;
2427
2427
  align-items: center;
@@ -2451,7 +2451,7 @@
2451
2451
  :host([right-expand]) .right {
2452
2452
  flex: 1;
2453
2453
  }
2454
- `;ei([E({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);ei([E({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);ei([E({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);ei([E({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);ei([E({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=ei([Z(Tp)],exports.SplitRow);exports.ActionBar=class extends we{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return N`
2454
+ `;ei([$({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);ei([$({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);ei([$({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);ei([$({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);ei([$({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=ei([Z(kp)],exports.SplitRow);exports.ActionBar=class extends Ce{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return N`
2455
2455
  <brz-split-row
2456
2456
  vertical-align="middle"
2457
2457
  ?left-expand=${this.leftExpand}
@@ -2460,7 +2460,7 @@
2460
2460
  <slot slot="left" name="left"></slot>
2461
2461
  <slot slot="right" name="right"></slot>
2462
2462
  </brz-split-row>
2463
- `}};exports.ActionBar.styles=J`
2463
+ `}};exports.ActionBar.styles=X`
2464
2464
  brz-split-row {
2465
2465
  padding: var(--brz-spacing-2) var(--brz-spacing-5);
2466
2466
  box-shadow: inset 0 -1px 0 var(--brz-color-neutral-300);
@@ -2470,7 +2470,7 @@
2470
2470
  :host([no-border]) brz-split-row {
2471
2471
  box-shadow: none;
2472
2472
  }
2473
- `;ei([E({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);ei([E({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);ei([E({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=ei([Z(kp)],exports.ActionBar);var uL=Object.defineProperty,dL=Object.getOwnPropertyDescriptor,Rl=(n,e,i,o)=>{for(var l=o>1?void 0:o?dL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uL(e,i,l),l};const Op=ce("modal-header"),$p=ce("modal-body"),Ep=ce("modal-footer");exports.ModalHeader=class extends we{get _noClose(){var e;return(e=Tc(this.parentElement,exports.Modal))==null?void 0:e.noClose}_handleClickClose(){this.dispatchEvent(new zu)}render(){return N`
2473
+ `;ei([$({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);ei([$({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);ei([$({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=ei([Z(Op)],exports.ActionBar);var pL=Object.defineProperty,gL=Object.getOwnPropertyDescriptor,Rl=(n,e,i,o)=>{for(var l=o>1?void 0:o?gL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pL(e,i,l),l};const $p=le("modal-header"),Ep=le("modal-body"),_p=le("modal-footer");exports.ModalHeader=class extends Ce{get _noClose(){var e;return(e=Tc(this.parentElement,exports.Modal))==null?void 0:e.noClose}_handleClickClose(){this.dispatchEvent(new zu)}render(){return N`
2474
2474
  <brz-heading size="xl"><slot></slot></brz-heading>
2475
2475
  ${this._noClose?void 0:N`
2476
2476
  <brz-button
@@ -2482,7 +2482,7 @@
2482
2482
  compact
2483
2483
  ></brz-button>
2484
2484
  `}
2485
- `}};exports.ModalHeader.styles=J`
2485
+ `}};exports.ModalHeader.styles=X`
2486
2486
  :host {
2487
2487
  padding: var(--brz-spacing-3) var(--brz-spacing-6);
2488
2488
  display: flex;
@@ -2499,7 +2499,7 @@
2499
2499
  brz-button.close {
2500
2500
  margin-right: calc(0px - var(--brz-spacing-2));
2501
2501
  }
2502
- `;exports.ModalHeader=Rl([Z(Op)],exports.ModalHeader);exports.ModalBody=class extends we{constructor(){super(...arguments),this.scrollable=!1,this._resizeObserver=new ResizeObserver(()=>{this.scrollable=this.scrollHeight>this.clientHeight})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}render(){return N`<slot></slot>`}};exports.ModalBody.styles=J`
2502
+ `;exports.ModalHeader=Rl([Z($p)],exports.ModalHeader);exports.ModalBody=class extends Ce{constructor(){super(...arguments),this.scrollable=!1,this._resizeObserver=new ResizeObserver(()=>{this.scrollable=this.scrollHeight>this.clientHeight})}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.unobserve(this)}render(){return N`<slot></slot>`}};exports.ModalBody.styles=X`
2503
2503
  :host {
2504
2504
  display: block;
2505
2505
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
@@ -2509,17 +2509,17 @@
2509
2509
  :host([scrollable]) {
2510
2510
  border-bottom: 1px solid var(--brz-color-neutral-300);
2511
2511
  }
2512
- `;Rl([E({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=Rl([Z($p)],exports.ModalBody);exports.ModalFooter=class extends we{render(){return N`
2512
+ `;Rl([$({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=Rl([Z(Ep)],exports.ModalBody);exports.ModalFooter=class extends Ce{render(){return N`
2513
2513
  <brz-split-row vertical-align="middle">
2514
2514
  <slot slot="left" name="left"></slot>
2515
2515
  <slot slot="right" name="right"></slot>
2516
2516
  </brz-split-row>
2517
- `}};exports.ModalFooter.styles=J`
2517
+ `}};exports.ModalFooter.styles=X`
2518
2518
  :host {
2519
2519
  display: block;
2520
2520
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
2521
2521
  }
2522
- `;exports.ModalFooter=Rl([Z(Ep)],exports.ModalFooter);var hL=Object.defineProperty,fL=Object.getOwnPropertyDescriptor,_p=(n,e,i,o)=>{for(var l=o>1?void 0:o?fL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hL(e,i,l),l};const Ip=ce("confirmation-dialog");class Ap extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class Pp extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends we{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Ap)}handleConfirm(){this.dispatchEvent(new Pp)}render(){return N`<brz-modal size="small" ?open=${this.open} noClose>
2522
+ `;exports.ModalFooter=Rl([Z(_p)],exports.ModalFooter);var vL=Object.defineProperty,bL=Object.getOwnPropertyDescriptor,Ap=(n,e,i,o)=>{for(var l=o>1?void 0:o?bL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vL(e,i,l),l};const Ip=le("confirmation-dialog");class Pp extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class Dp extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ce{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Pp)}handleConfirm(){this.dispatchEvent(new Dp)}render(){return N`<brz-modal size="small" ?open=${this.open} noClose>
2523
2523
  <brz-modal-body>
2524
2524
  <slot name="body"></slot>
2525
2525
  </brz-modal-body>
@@ -2533,12 +2533,12 @@
2533
2533
  </brz-button>
2534
2534
  </brz-button-group>
2535
2535
  </brz-modal-footer>
2536
- </brz-modal>`}};_p([E({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=_p([Z(Ip)],exports.ConfirmationDialog);var pL=Object.defineProperty,gL=Object.getOwnPropertyDescriptor,Lu=(n,e,i,o)=>{for(var l=o>1?void 0:o?gL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pL(e,i,l),l};const Dp=ce("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.tooltipText=""}updated(e){if(super.updated(e),e.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;e.has("trailingIcon")&&e.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return N`
2536
+ </brz-modal>`}};Ap([$({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=Ap([Z(Ip)],exports.ConfirmationDialog);var mL=Object.defineProperty,yL=Object.getOwnPropertyDescriptor,Lu=(n,e,i,o)=>{for(var l=o>1?void 0:o?yL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mL(e,i,l),l};const Np=le("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.tooltipText=""}updated(e){if(super.updated(e),e.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;e.has("trailingIcon")&&e.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return N`
2537
2537
  <brz-dropdown-menu .size=${this.menuSize}>
2538
2538
  ${super.render()}
2539
2539
  <slot name="options" slot="options"></slot>
2540
2540
  </brz-dropdown-menu>
2541
- `}};Lu([E({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);Lu([E({type:String,attribute:"tooltip-text"})],exports.DropdownButton.prototype,"tooltipText",2);exports.DropdownButton=Lu([Z(Dp)],exports.DropdownButton);var vL=Object.defineProperty,bL=Object.getOwnPropertyDescriptor,Fi=(n,e,i,o)=>{for(var l=o>1?void 0:o?bL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vL(e,i,l),l};const Np=ce("input-checkbox"),Sr={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=Sr.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case Sr.Checked:this.checked=!1;break;case Sr.Empty:this.checked=!0;break;case Sr.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case Sr.Checked:return N`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Sr.Indeterminate:return N`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Sr.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?Sr.Checked:this.indeterminate?Sr.Indeterminate:Sr.Empty;const e=N`
2541
+ `}};Lu([$({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);Lu([$({type:String,attribute:"tooltip-text"})],exports.DropdownButton.prototype,"tooltipText",2);exports.DropdownButton=Lu([Z(Np)],exports.DropdownButton);var CL=Object.defineProperty,wL=Object.getOwnPropertyDescriptor,Fi=(n,e,i,o)=>{for(var l=o>1?void 0:o?wL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&CL(e,i,l),l};const Hp=le("input-checkbox"),Sr={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.indeterminate=!1,this.checkboxState=Sr.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case Sr.Checked:this.checked=!1;break;case Sr.Empty:this.checked=!0;break;case Sr.Indeterminate:this.checked=!0,this.indeterminate=!1,this.inputElement&&(this.inputElement.indeterminate=!1);break}this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked,indeterminate:this.indeterminate}}))}}getIcon(){switch(this.checkboxState){case Sr.Checked:return N`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Sr.Indeterminate:return N`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Sr.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){this.checkboxState=this.checked?Sr.Checked:this.indeterminate?Sr.Indeterminate:Sr.Empty;const e=N`
2542
2542
  <div class="checkbox-left">
2543
2543
  <div
2544
2544
  class="checkbox"
@@ -2564,7 +2564,7 @@
2564
2564
  <label>
2565
2565
  ${this.leftLabel?N`${i}${e}`:N`${e}${i}`}
2566
2566
  </label>
2567
- `}};exports.InputCheckbox.styles=[J`
2567
+ `}};exports.InputCheckbox.styles=[X`
2568
2568
  :host {
2569
2569
  --brz-checkbox-size: var(--brz-spacing-4);
2570
2570
  --input-invalid-color: var(--brz-color-error);
@@ -2644,7 +2644,7 @@
2644
2644
  position: absolute;
2645
2645
  left: 0;
2646
2646
  }
2647
- `];Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Fi([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Fi([E()],exports.InputCheckbox.prototype,"value",2);Fi([E({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Fi([Ce()],exports.InputCheckbox.prototype,"checkboxState",2);Fi([Ce()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Fi([Z(Np)],exports.InputCheckbox);var mL=Object.defineProperty,yL=Object.getOwnPropertyDescriptor,Na=(n,e,i,o)=>{for(var l=o>1?void 0:o?yL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mL(e,i,l),l};const Hp=ce("input-text");exports.InputText=class extends rr{constructor(){super(...arguments),this.size="medium",this.autocomplete="on"}renderInput(){return N`
2647
+ `];Fi([$({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Fi([$({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Fi([$({type:Boolean,reflect:!0,attribute:"left-label"})],exports.InputCheckbox.prototype,"leftLabel",2);Fi([$()],exports.InputCheckbox.prototype,"value",2);Fi([$({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Fi([we()],exports.InputCheckbox.prototype,"checkboxState",2);Fi([we()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Fi([Z(Hp)],exports.InputCheckbox);var xL=Object.defineProperty,zL=Object.getOwnPropertyDescriptor,Ha=(n,e,i,o)=>{for(var l=o>1?void 0:o?zL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xL(e,i,l),l};const Rp=le("input-text");exports.InputText=class extends rr{constructor(){super(...arguments),this.size="medium",this.autocomplete="on"}renderInput(){return N`
2648
2648
  <input
2649
2649
  @input=${this.onInput}
2650
2650
  autocomplete=${this.autocomplete}
@@ -2658,11 +2658,11 @@
2658
2658
  ?disabled=${this.disabled}
2659
2659
  ?readonly=${this.readonly}
2660
2660
  />
2661
- `}};exports.InputText.styles=[...rr.styles,J`
2661
+ `}};exports.InputText.styles=[...rr.styles,X`
2662
2662
  input {
2663
2663
  height: 36px;
2664
2664
  }
2665
- `];Na([E({type:String})],exports.InputText.prototype,"value",2);Na([E({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Na([E({type:String,reflect:!0})],exports.InputText.prototype,"autocomplete",2);Na([E({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Na([Z(Hp)],exports.InputText);var CL=Object.defineProperty,wL=Object.getOwnPropertyDescriptor,Ha=(n,e,i,o)=>{for(var l=o>1?void 0:o?wL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&CL(e,i,l),l};const Rp=ce("input-textarea");exports.InputTextarea=class extends rr{constructor(){super(...arguments),this.size="x-large",this.autocomplete="off"}renderGuide(){var o;if(!this.maxlength)return null;const e=((o=this.value)==null?void 0:o.length)||0,i=N`${e} of ${this.maxlength}`;return e>=this.maxlength?N`<brz-input-error>${i}</brz-input-error>`:N`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var e;return N`
2665
+ `];Ha([$({type:String})],exports.InputText.prototype,"value",2);Ha([$({type:String,reflect:!0})],exports.InputText.prototype,"size",2);Ha([$({type:String,reflect:!0})],exports.InputText.prototype,"autocomplete",2);Ha([$({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=Ha([Z(Rp)],exports.InputText);var LL=Object.defineProperty,SL=Object.getOwnPropertyDescriptor,Ra=(n,e,i,o)=>{for(var l=o>1?void 0:o?SL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&LL(e,i,l),l};const Fp=le("input-textarea");exports.InputTextarea=class extends rr{constructor(){super(...arguments),this.size="x-large",this.autocomplete="off"}renderGuide(){var o;if(!this.maxlength)return null;const e=((o=this.value)==null?void 0:o.length)||0,i=N`${e} of ${this.maxlength}`;return e>=this.maxlength?N`<brz-input-error>${i}</brz-input-error>`:N`<brz-input-guide>${i}</brz-input-guide>`}renderInput(){var e;return N`
2666
2666
  <textarea
2667
2667
  @input=${this.onInput}
2668
2668
  autocomplete=${this.autocomplete}
@@ -2674,12 +2674,12 @@
2674
2674
  ?disabled=${this.disabled}
2675
2675
  ?readonly=${this.readonly}
2676
2676
  />
2677
- `}};exports.InputTextarea.styles=[...rr.styles,J`
2677
+ `}};exports.InputTextarea.styles=[...rr.styles,X`
2678
2678
  textarea {
2679
2679
  height: 100px;
2680
2680
  resize: none;
2681
2681
  }
2682
- `];Ha([E({type:String})],exports.InputTextarea.prototype,"value",2);Ha([E({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Ha([E({type:String,reflect:!0})],exports.InputTextarea.prototype,"autocomplete",2);Ha([E({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Ha([Z(Rp)],exports.InputTextarea);var xL=Object.defineProperty,zL=Object.getOwnPropertyDescriptor,mi=(n,e,i,o)=>{for(var l=o>1?void 0:o?zL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xL(e,i,l),l};const Fp=ce("input-number"),LL=J`
2682
+ `];Ra([$({type:String})],exports.InputTextarea.prototype,"value",2);Ra([$({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);Ra([$({type:String,reflect:!0})],exports.InputTextarea.prototype,"autocomplete",2);Ra([$({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=Ra([Z(Fp)],exports.InputTextarea);var ML=Object.defineProperty,TL=Object.getOwnPropertyDescriptor,mi=(n,e,i,o)=>{for(var l=o>1?void 0:o?TL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ML(e,i,l),l};const Bp=le("input-number"),kL=X`
2683
2683
  /* Chrome, Safari, Edge, Opera */
2684
2684
  input::-webkit-outer-spin-button,
2685
2685
  input::-webkit-inner-spin-button {
@@ -2691,7 +2691,7 @@
2691
2691
  input[type='number'] {
2692
2692
  -moz-appearance: textfield;
2693
2693
  }
2694
- `,Bp=["e","+"],Rc=(n,e,i=!1)=>{const o=i?"-?":"",l=e?"([0-9]{0,"+e+"})":"([0-9]+)?",d=n===0?"":"(.([0-9]{0,"+n+"}))?";return new RegExp("^"+o+l+d+"$")},Vp=n=>Bp.includes(n.toLowerCase()),SL=n=>!!Bp.find(e=>n.toLowerCase().includes(e)),ML=n=>{var i,o;Vp(n.key)&&n.preventDefault();const e=n.target;((i=e==null?void 0:e.value)==null?void 0:i.length)===0&&n.key==="-"&&(e.value=""),((o=e==null?void 0:e.value)==null?void 0:o.length)>0&&n.key==="-"&&n.preventDefault()},TL=(n,e)=>{var u;const i=Rc(e,void 0,!0),{clipboardData:o}=n,l=(u=o==null?void 0:o.getData("text"))==null?void 0:u.toLowerCase();if(!l)return;const d=n.target;(!(d!=null&&d.value)||!i.test(d.value+l)&&i.test(l))&&(d.value=""),(Vp(l)||SL(l)||!i.test(l))&&(n.stopPropagation(),n.preventDefault())};exports.InputNumber=class extends rr{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var e;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleDecrease(){var e;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleSteppedChange(e){this.value=e,this.dispatchChange()}onInput(e){var o;const i=typeof e.target.value=="string"?parseFloat(e.target.value):e.target.value;if(e.target.value===""||e.target.value==="-"){super.onInput({target:{value:i}});return}if(this.allowValueUpdate(i)){const l=this.decimalPlaces?parseFloat(Number(i).toFixed(this.decimalPlaces)):i;super.onInput({target:{value:l}})}else e.target.value=(o=this.value)!=null?o:"0"}allowValueUpdate(e){const i=this.max?parseInt(this.max.toString()).toString().length:void 0,o=this.min?parseInt(this.min.toString()).toString().length:void 0,l=e<0,d=l?!0:Rc(this.decimalPlaces,i).test(e.toString()),u=l?Rc(this.decimalPlaces,o,!0).test(e.toString()):!0,v=this.min?e>=this.min:!0,b=this.max?e<=this.max:!0;return!!(d&&u&&v&&b)}handleKeyDown(e){ML(e)}handlePaste(e){TL(e,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:N`
2694
+ `,Vp=["e","+"],Rc=(n,e,i=!1)=>{const o=i?"-?":"",l=e?"([0-9]{0,"+e+"})":"([0-9]+)?",d=n===0?"":"(.([0-9]{0,"+n+"}))?";return new RegExp("^"+o+l+d+"$")},Zp=n=>Vp.includes(n.toLowerCase()),OL=n=>!!Vp.find(e=>n.toLowerCase().includes(e)),$L=n=>{var i,o;Zp(n.key)&&n.preventDefault();const e=n.target;((i=e==null?void 0:e.value)==null?void 0:i.length)===0&&n.key==="-"&&(e.value=""),((o=e==null?void 0:e.value)==null?void 0:o.length)>0&&n.key==="-"&&n.preventDefault()},EL=(n,e)=>{var u;const i=Rc(e,void 0,!0),{clipboardData:o}=n,l=(u=o==null?void 0:o.getData("text"))==null?void 0:u.toLowerCase();if(!l)return;const d=n.target;(!(d!=null&&d.value)||!i.test(d.value+l)&&i.test(l))&&(d.value=""),(Zp(l)||OL(l)||!i.test(l))&&(n.stopPropagation(),n.preventDefault())};exports.InputNumber=class extends rr{constructor(){super(...arguments),this.hasNoStepper=!1,this.decimalPlaces=0,this.step=1}handleIncrease(){var e;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleDecrease(){var e;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((e=parseFloat(this.inputElement.value))!=null?e:0)}handleSteppedChange(e){this.value=e,this.dispatchChange()}onInput(e){var o;const i=typeof e.target.value=="string"?parseFloat(e.target.value):e.target.value;if(e.target.value===""||e.target.value==="-"){super.onInput({target:{value:i}});return}if(this.allowValueUpdate(i)){const l=this.decimalPlaces?parseFloat(Number(i).toFixed(this.decimalPlaces)):i;super.onInput({target:{value:l}})}else e.target.value=(o=this.value)!=null?o:"0"}allowValueUpdate(e){const i=this.max?parseInt(this.max.toString()).toString().length:void 0,o=this.min?parseInt(this.min.toString()).toString().length:void 0,l=e<0,d=l?!0:Rc(this.decimalPlaces,i).test(e.toString()),u=l?Rc(this.decimalPlaces,o,!0).test(e.toString()):!0,v=this.min?e>=this.min:!0,b=this.max?e<=this.max:!0;return!!(d&&u&&v&&b)}handleKeyDown(e){$L(e)}handlePaste(e){EL(e,this.decimalPlaces)}get stepperLayout(){return this.hasNoStepper?null:N`
2695
2695
  <div class="stepper-container">
2696
2696
  <button
2697
2697
  @click=${this.handleDecrease}
@@ -2737,7 +2737,7 @@
2737
2737
  max=${He(this.max)}
2738
2738
  decimal-places=${He(this.decimalPlaces)}
2739
2739
  />
2740
- </div>`}};exports.InputNumber.styles=[...rr.styles,LL,J`
2740
+ </div>`}};exports.InputNumber.styles=[...rr.styles,kL,X`
2741
2741
  input {
2742
2742
  white-space: nowrap;
2743
2743
  overflow: hidden;
@@ -2807,11 +2807,11 @@
2807
2807
  background-color: var(--input-readonly-background-color);
2808
2808
  border-color: var(--input-readonly-border-color);
2809
2809
  }
2810
- `];mi([E({type:Number})],exports.InputNumber.prototype,"value",2);mi([E({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);mi([E({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);mi([E({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);mi([E({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);mi([Ir('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=mi([Z(Fp)],exports.InputNumber);/**
2810
+ `];mi([$({type:Number})],exports.InputNumber.prototype,"value",2);mi([$({type:String,reflect:!0,attribute:"units"})],exports.InputNumber.prototype,"units",2);mi([$({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);mi([$({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);mi([$({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);mi([$({type:Number,reflect:!0,attribute:"decimal-places"})],exports.InputNumber.prototype,"decimalPlaces",2);mi([$({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);mi([Ar('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=mi([Z(Bp)],exports.InputNumber);/**
2811
2811
  * @license
2812
2812
  * Copyright 2017 Google LLC
2813
2813
  * SPDX-License-Identifier: BSD-3-Clause
2814
- */class Fc extends Ll{constructor(e){if(super(e),this.et=vt,e.type!==xl.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===vt||e==null)return this.ft=void 0,this.et=e;if(e===di)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const i=[e];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Fc.directiveName="unsafeHTML",Fc.resultType=1;const kL=zl(Fc);var OL=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,Sn=(n,e,i,o)=>{for(var l=o>1?void 0:o?$L(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&OL(e,i,l),l};const Zp=ce("input-radio-group"),Wp=ce("input-radio-option"),EL=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("#options");return Array.from(e.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(e){const i=e.target;this.value=i.value,this.dispatchChange()}renderInput(){return N`
2814
+ */class Fc extends Ll{constructor(e){if(super(e),this.et=vt,e.type!==xl.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===vt||e==null)return this.ft=void 0,this.et=e;if(e===di)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const i=[e];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Fc.directiveName="unsafeHTML",Fc.resultType=1;const _L=zl(Fc);var AL=Object.defineProperty,IL=Object.getOwnPropertyDescriptor,Sn=(n,e,i,o)=>{for(var l=o>1?void 0:o?IL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&AL(e,i,l),l};const Wp=le("input-radio-group"),Up=le("input-radio-option"),PL=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("#options");return Array.from(e.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(e){const i=e.target;this.value=i.value,this.dispatchChange()}renderInput(){return N`
2815
2815
  <slot
2816
2816
  id="options"
2817
2817
  style="display: none;"
@@ -2830,11 +2830,11 @@
2830
2830
  ?checked=${i}
2831
2831
  ?disabled=${e.disabled||this.disabled}
2832
2832
  />
2833
- <label for=${e.value}>${kL(e.innerHTML)}</label>
2833
+ <label for=${e.value}>${_L(e.innerHTML)}</label>
2834
2834
  </div>
2835
2835
  `})}
2836
2836
  </fieldset>
2837
- `}};exports.InputRadio.styles=[...exports.LabeledInput.styles,J`
2837
+ `}};exports.InputRadio.styles=[...exports.LabeledInput.styles,X`
2838
2838
  :host {
2839
2839
  --brz-input-radio-button-size: var(--brz-spacing-4);
2840
2840
  --brz-input-radio-gutter: var(--brz-input-radio-button-size);
@@ -2986,31 +2986,31 @@
2986
2986
  input[type='radio'][aria-invalid='true'] + label {
2987
2987
  color: var(--brz-input-radio-invalid-color);
2988
2988
  }
2989
- `];Sn([E({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Sn([E({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Sn([Ce()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Sn([Z(Zp)],exports.InputRadio);exports.InputRadioOption=class extends we{render(){}};Sn([E({type:String})],exports.InputRadioOption.prototype,"value",2);Sn([E({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Sn([Z(Wp)],exports.InputRadioOption);var Up={exports:{}};(function(n,e){(function(i,o){n.exports=o()})(ba,function(){var i=navigator.userAgent,o=navigator.platform,l=/gecko\/\d/i.test(i),d=/MSIE \d/.test(i),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),v=/Edge\/(\d+)/.exec(i),b=d||u||v,m=b&&(d?document.documentMode||6:+(v||u)[1]),M=!v&&/WebKit\//.test(i),L=M&&/Qt\/\d+\.\d+/.test(i),T=!v&&/Chrome\//.test(i),$=/Opera\//.test(i),H=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),oe=/PhantomJS/.test(i),_=H&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),D=/Android/.test(i),A=_||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),B=_||/Mac/.test(o),K=/\bCrOS\b/.test(i),ue=/win/i.test(o),le=$&&i.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&($=!1,M=!0);var me=B&&(L||$&&(le==null||le<12.11)),Me=l||b&&m>=9;function ie(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var X=function(t,r){var s=t.className,a=ie(r).exec(s);if(a){var c=s.slice(a.index+a[0].length);t.className=s.slice(0,a.index)+(c?a[1]+c:"")}};function V(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function O(t,r){return V(t).appendChild(r)}function x(t,r,s,a){var c=document.createElement(t);if(s&&(c.className=s),a&&(c.style.cssText=a),typeof r=="string")c.appendChild(document.createTextNode(r));else if(r)for(var h=0;h<r.length;++h)c.appendChild(r[h]);return c}function w(t,r,s,a){var c=x(t,r,s,a);return c.setAttribute("role","presentation"),c}var U;document.createRange?U=function(t,r,s,a){var c=document.createRange();return c.setEnd(a||t,s),c.setStart(t,r),c}:U=function(t,r,s){var a=document.body.createTextRange();try{a.moveToElementText(t.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function ne(t,r){if(r.nodeType==3&&(r=r.parentNode),t.contains)return t.contains(r);do if(r.nodeType==11&&(r=r.host),r==t)return!0;while(r=r.parentNode)}function ye(){var t;try{t=document.activeElement}catch{t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function ke(t,r){var s=t.className;ie(r).test(s)||(t.className+=(s?" ":"")+r)}function Re(t,r){for(var s=t.split(" "),a=0;a<s.length;a++)s[a]&&!ie(s[a]).test(r)&&(r+=" "+s[a]);return r}var ot=function(t){t.select()};_?ot=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:b&&(ot=function(t){try{t.select()}catch{}});function Et(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Ye(t,r,s){r||(r={});for(var a in t)t.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=t[a]);return r}function Xe(t,r,s,a,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=a||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=s-f%s,h=p+1}}var Be=function(){this.id=null,this.f=null,this.time=0,this.handler=Et(this.onTimeout,this)};Be.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Be.prototype.set=function(t,r){this.f=r;var s=+new Date+t;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=s)};function ge(t,r){for(var s=0;s<t.length;++s)if(t[s]==r)return s;return-1}var ve=50,Ie={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},Ae={origin:"*mouse"},Te={origin:"+move"};function ht(t,r,s){for(var a=0,c=0;;){var h=t.indexOf(" ",a);h==-1&&(h=t.length);var f=h-a;if(h==t.length||c+f>=r)return a+Math.min(f,r-c);if(c+=h-a,c+=s-c%s,a=h+1,c>=r)return a}}var qt=[""];function ir(t){for(;qt.length<=t;)qt.push(_e(qt)+" ");return qt[t]}function _e(t){return t[t.length-1]}function Ve(t,r){for(var s=[],a=0;a<t.length;a++)s[a]=r(t[a],a);return s}function ct(t,r,s){for(var a=0,c=s(r);a<t.length&&s(t[a])<=c;)a++;t.splice(a,0,r)}function Qe(){}function et(t,r){var s;return Object.create?s=Object.create(t):(Qe.prototype=t,s=new Qe),r&&Ye(r,s),s}var Nr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Nr.test(t))}function R(t,r){return r?r.source.indexOf("\\w")>-1&&Ue(t)?!0:r.test(t):Ue(t)}function re(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var j=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ne(t){return t.charCodeAt(0)>=768&&j.test(t)}function Dt(t,r,s){for(;(s<0?r>0:r<t.length)&&Ne(t.charAt(r));)r+=s;return r}function Hr(t,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var c=(r+s)/2,h=a<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:s;t(h)?s=h:r=h+a}}function r1(t,r,s,a){if(!t)return a(r,s,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<s&&f.to>r||r==s&&f.to==r)&&(a(Math.max(f.from,r),Math.min(f.to,s),f.level==1?"rtl":"ltr",h),c=!0)}c||a(r,s,"ltr")}var nr=null;function at(t,r,s){var a;nr=null;for(var c=0;c<t.length;++c){var h=t[c];if(h.from<r&&h.to>r)return c;h.to==r&&(h.from!=h.to&&s=="before"?a=c:nr=c),h.from==r&&(h.from!=h.to&&s!="before"?a=c:nr=c)}return a!=null?a:nr}var Wi=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(y){return y<=247?t.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?r.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(y,z,S){this.level=y,this.from=z,this.to=S}return function(y,z){var S=z=="ltr"?"L":"R";if(y.length==0||z=="ltr"&&!a.test(y))return!1;for(var P=y.length,I=[],W=0;W<P;++W)I.push(s(y.charCodeAt(W)));for(var q=0,te=S;q<P;++q){var ae=I[q];ae=="m"?I[q]=te:te=ae}for(var he=0,se=S;he<P;++he){var pe=I[he];pe=="1"&&se=="r"?I[he]="n":h.test(pe)&&(se=pe,pe=="r"&&(I[he]="R"))}for(var Le=1,ze=I[0];Le<P-1;++Le){var Pe=I[Le];Pe=="+"&&ze=="1"&&I[Le+1]=="1"?I[Le]="1":Pe==","&&ze==I[Le+1]&&(ze=="1"||ze=="n")&&(I[Le]=ze),ze=Pe}for(var Je=0;Je<P;++Je){var Lt=I[Je];if(Lt==",")I[Je]="N";else if(Lt=="%"){var nt=void 0;for(nt=Je+1;nt<P&&I[nt]=="%";++nt);for(var Jt=Je&&I[Je-1]=="!"||nt<P&&I[nt]=="1"?"1":"N",Wt=Je;Wt<nt;++Wt)I[Wt]=Jt;Je=nt-1}}for(var pt=0,Ut=S;pt<P;++pt){var kt=I[pt];Ut=="L"&&kt=="1"?I[pt]="L":h.test(kt)&&(Ut=kt)}for(var mt=0;mt<P;++mt)if(c.test(I[mt])){var gt=void 0;for(gt=mt+1;gt<P&&c.test(I[gt]);++gt);for(var lt=(mt?I[mt-1]:S)=="L",jt=(gt<P?I[gt]:S)=="L",Yn=lt==jt?lt?"L":"R":S,$i=mt;$i<gt;++$i)I[$i]=Yn;mt=gt-1}for(var Pt=[],Gr,St=0;St<P;)if(f.test(I[St])){var j1=St;for(++St;St<P&&f.test(I[St]);++St);Pt.push(new g(0,j1,St))}else{var li=St,tn=Pt.length,rn=z=="rtl"?1:0;for(++St;St<P&&I[St]!="L";++St);for(var Ht=li;Ht<St;)if(p.test(I[Ht])){li<Ht&&(Pt.splice(tn,0,new g(1,li,Ht)),tn+=rn);var Xn=Ht;for(++Ht;Ht<St&&p.test(I[Ht]);++Ht);Pt.splice(tn,0,new g(2,Xn,Ht)),tn+=rn,li=Ht}else++Ht;li<St&&Pt.splice(tn,0,new g(1,li,St))}return z=="ltr"&&(Pt[0].level==1&&(Gr=y.match(/^\s+/))&&(Pt[0].from=Gr[0].length,Pt.unshift(new g(0,0,Gr[0].length))),_e(Pt).level==1&&(Gr=y.match(/\s+$/))&&(_e(Pt).to-=Gr[0].length,Pt.push(new g(0,P-Gr[0].length,P)))),z=="rtl"?Pt.reverse():Pt}}();function Kt(t,r){var s=t.order;return s==null&&(s=t.order=Wi(t.text,r)),s}var ri=[],Se=function(t,r,s){if(t.addEventListener)t.addEventListener(r,s,!1);else if(t.attachEvent)t.attachEvent("on"+r,s);else{var a=t._handlers||(t._handlers={});a[r]=(a[r]||ri).concat(s)}};function Tn(t,r){return t._handlers&&t._handlers[r]||ri}function Ft(t,r,s){if(t.removeEventListener)t.removeEventListener(r,s,!1);else if(t.detachEvent)t.detachEvent("on"+r,s);else{var a=t._handlers,c=a&&a[r];if(c){var h=ge(c,s);h>-1&&(a[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function Oe(t,r){var s=Tn(t,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),c=0;c<s.length;++c)s[c].apply(null,a)}function ft(t,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),Oe(t,s||r.type,t,r),or(r)||r.codemirrorIgnore}function kn(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var s=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)ge(s,r[a])==-1&&s.push(r[a])}function Tt(t,r){return Tn(t,r).length>0}function Rr(t){t.prototype.on=function(r,s){Se(this,r,s)},t.prototype.off=function(r,s){Ft(this,r,s)}}function _t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function On(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function or(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ui(t){_t(t),On(t)}function Ci(t){return t.target||t.srcElement}function Ka(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),B&&t.ctrlKey&&r==1&&(r=3),r}var To=function(){if(b&&m<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Bt;function Ya(t){if(Bt==null){var r=x("span","​");O(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Bt=r.offsetWidth<=1&&r.offsetHeight>2&&!(b&&m<8))}var s=Bt?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var ko;function Fr(t){if(ko!=null)return ko;var r=O(t,document.createTextNode("AخA")),s=U(r,0,1).getBoundingClientRect(),a=U(r,1,2).getBoundingClientRect();return V(t),!s||s.left==s.right?!1:ko=a.right-s.right<3}var Oo=`
2989
+ `];Sn([$({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Sn([$({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Sn([we()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Sn([Z(Wp)],exports.InputRadio);exports.InputRadioOption=class extends Ce{render(){}};Sn([$({type:String})],exports.InputRadioOption.prototype,"value",2);Sn([$({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Sn([Z(Up)],exports.InputRadioOption);var jp={exports:{}};(function(n,e){(function(i,o){n.exports=o()})(ma,function(){var i=navigator.userAgent,o=navigator.platform,l=/gecko\/\d/i.test(i),d=/MSIE \d/.test(i),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),v=/Edge\/(\d+)/.exec(i),b=d||u||v,m=b&&(d?document.documentMode||6:+(v||u)[1]),M=!v&&/WebKit\//.test(i),L=M&&/Qt\/\d+\.\d+/.test(i),T=!v&&/Chrome\//.test(i),E=/Opera\//.test(i),H=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),oe=/PhantomJS/.test(i),_=H&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),D=/Android/.test(i),I=_||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),B=_||/Mac/.test(o),K=/\bCrOS\b/.test(i),ue=/win/i.test(o),ce=E&&i.match(/Version\/(\d*\.\d*)/);ce&&(ce=Number(ce[1])),ce&&ce>=15&&(E=!1,M=!0);var me=B&&(L||E&&(ce==null||ce<12.11)),Me=l||b&&m>=9;function ie(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var J=function(t,r){var s=t.className,a=ie(r).exec(s);if(a){var c=s.slice(a.index+a[0].length);t.className=s.slice(0,a.index)+(c?a[1]+c:"")}};function V(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function O(t,r){return V(t).appendChild(r)}function x(t,r,s,a){var c=document.createElement(t);if(s&&(c.className=s),a&&(c.style.cssText=a),typeof r=="string")c.appendChild(document.createTextNode(r));else if(r)for(var h=0;h<r.length;++h)c.appendChild(r[h]);return c}function w(t,r,s,a){var c=x(t,r,s,a);return c.setAttribute("role","presentation"),c}var U;document.createRange?U=function(t,r,s,a){var c=document.createRange();return c.setEnd(a||t,s),c.setStart(t,r),c}:U=function(t,r,s){var a=document.body.createTextRange();try{a.moveToElementText(t.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",r),a};function ne(t,r){if(r.nodeType==3&&(r=r.parentNode),t.contains)return t.contains(r);do if(r.nodeType==11&&(r=r.host),r==t)return!0;while(r=r.parentNode)}function ye(){var t;try{t=document.activeElement}catch{t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function ke(t,r){var s=t.className;ie(r).test(s)||(t.className+=(s?" ":"")+r)}function Re(t,r){for(var s=t.split(" "),a=0;a<s.length;a++)s[a]&&!ie(s[a]).test(r)&&(r+=" "+s[a]);return r}var ot=function(t){t.select()};_?ot=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:b&&(ot=function(t){try{t.select()}catch{}});function Et(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function Ye(t,r,s){r||(r={});for(var a in t)t.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=t[a]);return r}function Xe(t,r,s,a,c){r==null&&(r=t.search(/[^\s\u00a0]/),r==-1&&(r=t.length));for(var h=a||0,f=c||0;;){var p=t.indexOf(" ",h);if(p<0||p>=r)return f+(r-h);f+=p-h,f+=s-f%s,h=p+1}}var Be=function(){this.id=null,this.f=null,this.time=0,this.handler=Et(this.onTimeout,this)};Be.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Be.prototype.set=function(t,r){this.f=r;var s=+new Date+t;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=s)};function ge(t,r){for(var s=0;s<t.length;++s)if(t[s]==r)return s;return-1}var ve=50,Ae={toString:function(){return"CodeMirror.Pass"}},De={scroll:!1},Ie={origin:"*mouse"},Te={origin:"+move"};function ht(t,r,s){for(var a=0,c=0;;){var h=t.indexOf(" ",a);h==-1&&(h=t.length);var f=h-a;if(h==t.length||c+f>=r)return a+Math.min(f,r-c);if(c+=h-a,c+=s-c%s,a=h+1,c>=r)return a}}var qt=[""];function ir(t){for(;qt.length<=t;)qt.push(_e(qt)+" ");return qt[t]}function _e(t){return t[t.length-1]}function Ve(t,r){for(var s=[],a=0;a<t.length;a++)s[a]=r(t[a],a);return s}function ct(t,r,s){for(var a=0,c=s(r);a<t.length&&s(t[a])<=c;)a++;t.splice(a,0,r)}function Qe(){}function et(t,r){var s;return Object.create?s=Object.create(t):(Qe.prototype=t,s=new Qe),r&&Ye(r,s),s}var Nr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ue(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Nr.test(t))}function R(t,r){return r?r.source.indexOf("\\w")>-1&&Ue(t)?!0:r.test(t):Ue(t)}function re(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var j=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ne(t){return t.charCodeAt(0)>=768&&j.test(t)}function Dt(t,r,s){for(;(s<0?r>0:r<t.length)&&Ne(t.charAt(r));)r+=s;return r}function Hr(t,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var c=(r+s)/2,h=a<0?Math.ceil(c):Math.floor(c);if(h==r)return t(h)?r:s;t(h)?s=h:r=h+a}}function r1(t,r,s,a){if(!t)return a(r,s,"ltr",0);for(var c=!1,h=0;h<t.length;++h){var f=t[h];(f.from<s&&f.to>r||r==s&&f.to==r)&&(a(Math.max(f.from,r),Math.min(f.to,s),f.level==1?"rtl":"ltr",h),c=!0)}c||a(r,s,"ltr")}var nr=null;function at(t,r,s){var a;nr=null;for(var c=0;c<t.length;++c){var h=t[c];if(h.from<r&&h.to>r)return c;h.to==r&&(h.from!=h.to&&s=="before"?a=c:nr=c),h.from==r&&(h.from!=h.to&&s!="before"?a=c:nr=c)}return a!=null?a:nr}var Wi=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(y){return y<=247?t.charAt(y):1424<=y&&y<=1524?"R":1536<=y&&y<=1785?r.charAt(y-1536):1774<=y&&y<=2220?"r":8192<=y&&y<=8203?"w":y==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,h=/[LRr]/,f=/[Lb1n]/,p=/[1n]/;function g(y,z,S){this.level=y,this.from=z,this.to=S}return function(y,z){var S=z=="ltr"?"L":"R";if(y.length==0||z=="ltr"&&!a.test(y))return!1;for(var P=y.length,A=[],W=0;W<P;++W)A.push(s(y.charCodeAt(W)));for(var q=0,te=S;q<P;++q){var ae=A[q];ae=="m"?A[q]=te:te=ae}for(var he=0,se=S;he<P;++he){var pe=A[he];pe=="1"&&se=="r"?A[he]="n":h.test(pe)&&(se=pe,pe=="r"&&(A[he]="R"))}for(var Le=1,ze=A[0];Le<P-1;++Le){var Pe=A[Le];Pe=="+"&&ze=="1"&&A[Le+1]=="1"?A[Le]="1":Pe==","&&ze==A[Le+1]&&(ze=="1"||ze=="n")&&(A[Le]=ze),ze=Pe}for(var Je=0;Je<P;++Je){var Lt=A[Je];if(Lt==",")A[Je]="N";else if(Lt=="%"){var nt=void 0;for(nt=Je+1;nt<P&&A[nt]=="%";++nt);for(var Jt=Je&&A[Je-1]=="!"||nt<P&&A[nt]=="1"?"1":"N",Wt=Je;Wt<nt;++Wt)A[Wt]=Jt;Je=nt-1}}for(var pt=0,Ut=S;pt<P;++pt){var kt=A[pt];Ut=="L"&&kt=="1"?A[pt]="L":h.test(kt)&&(Ut=kt)}for(var mt=0;mt<P;++mt)if(c.test(A[mt])){var gt=void 0;for(gt=mt+1;gt<P&&c.test(A[gt]);++gt);for(var lt=(mt?A[mt-1]:S)=="L",jt=(gt<P?A[gt]:S)=="L",Yn=lt==jt?lt?"L":"R":S,$i=mt;$i<gt;++$i)A[$i]=Yn;mt=gt-1}for(var Pt=[],Gr,St=0;St<P;)if(f.test(A[St])){var j1=St;for(++St;St<P&&f.test(A[St]);++St);Pt.push(new g(0,j1,St))}else{var li=St,tn=Pt.length,rn=z=="rtl"?1:0;for(++St;St<P&&A[St]!="L";++St);for(var Ht=li;Ht<St;)if(p.test(A[Ht])){li<Ht&&(Pt.splice(tn,0,new g(1,li,Ht)),tn+=rn);var Xn=Ht;for(++Ht;Ht<St&&p.test(A[Ht]);++Ht);Pt.splice(tn,0,new g(2,Xn,Ht)),tn+=rn,li=Ht}else++Ht;li<St&&Pt.splice(tn,0,new g(1,li,St))}return z=="ltr"&&(Pt[0].level==1&&(Gr=y.match(/^\s+/))&&(Pt[0].from=Gr[0].length,Pt.unshift(new g(0,0,Gr[0].length))),_e(Pt).level==1&&(Gr=y.match(/\s+$/))&&(_e(Pt).to-=Gr[0].length,Pt.push(new g(0,P-Gr[0].length,P)))),z=="rtl"?Pt.reverse():Pt}}();function Kt(t,r){var s=t.order;return s==null&&(s=t.order=Wi(t.text,r)),s}var ri=[],Se=function(t,r,s){if(t.addEventListener)t.addEventListener(r,s,!1);else if(t.attachEvent)t.attachEvent("on"+r,s);else{var a=t._handlers||(t._handlers={});a[r]=(a[r]||ri).concat(s)}};function Tn(t,r){return t._handlers&&t._handlers[r]||ri}function Ft(t,r,s){if(t.removeEventListener)t.removeEventListener(r,s,!1);else if(t.detachEvent)t.detachEvent("on"+r,s);else{var a=t._handlers,c=a&&a[r];if(c){var h=ge(c,s);h>-1&&(a[r]=c.slice(0,h).concat(c.slice(h+1)))}}}function Oe(t,r){var s=Tn(t,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),c=0;c<s.length;++c)s[c].apply(null,a)}function ft(t,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),Oe(t,s||r.type,t,r),or(r)||r.codemirrorIgnore}function kn(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var s=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)ge(s,r[a])==-1&&s.push(r[a])}function Tt(t,r){return Tn(t,r).length>0}function Rr(t){t.prototype.on=function(r,s){Se(this,r,s)},t.prototype.off=function(r,s){Ft(this,r,s)}}function _t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function On(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function or(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Ui(t){_t(t),On(t)}function Ci(t){return t.target||t.srcElement}function Ka(t){var r=t.which;return r==null&&(t.button&1?r=1:t.button&2?r=3:t.button&4&&(r=2)),B&&t.ctrlKey&&r==1&&(r=3),r}var ko=function(){if(b&&m<9)return!1;var t=x("div");return"draggable"in t||"dragDrop"in t}(),Bt;function Ya(t){if(Bt==null){var r=x("span","​");O(t,x("span",[r,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Bt=r.offsetWidth<=1&&r.offsetHeight>2&&!(b&&m<8))}var s=Bt?x("span","​"):x("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var Oo;function Fr(t){if(Oo!=null)return Oo;var r=O(t,document.createTextNode("AخA")),s=U(r,0,1).getBoundingClientRect(),a=U(r,1,2).getBoundingClientRect();return V(t),!s||s.left==s.right?!1:Oo=a.right-s.right<3}var $o=`
2990
2990
 
2991
2991
  b`.split(/\n/).length!=3?function(t){for(var r=0,s=[],a=t.length;r<=a;){var c=t.indexOf(`
2992
- `,r);c==-1&&(c=t.length);var h=t.slice(r,t.charAt(c-1)=="\r"?c-1:c),f=h.indexOf("\r");f!=-1?(s.push(h.slice(0,f)),r+=f+1):(s.push(h),r=c+1)}return s}:function(t){return t.split(/\r\n?|\n/)},Xa=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var r;try{r=t.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=t?!1:r.compareEndPoints("StartToEnd",r)!=0},Ja=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),$o=null;function wi(t){if($o!=null)return $o;var r=O(t,x("span","x")),s=r.getBoundingClientRect(),a=U(r,0,1).getBoundingClientRect();return $o=Math.abs(s.left-a.left)>1}var pr={},ar={};function Qa(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),pr[t]=r}function ii(t,r){ar[t]=r}function $n(t){if(typeof t=="string"&&ar.hasOwnProperty(t))t=ar[t];else if(t&&typeof t.name=="string"&&ar.hasOwnProperty(t.name)){var r=ar[t.name];typeof r=="string"&&(r={name:r}),t=et(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $n("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $n("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function En(t,r){r=$n(r);var s=pr[r.name];if(!s)return En(t,"text/plain");var a=s(t,r);if(Cr.hasOwnProperty(r.name)){var c=Cr[r.name];for(var h in c)c.hasOwnProperty(h)&&(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=c[h])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)a[f]=r.modeProps[f];return a}var Cr={};function wr(t,r){var s=Cr.hasOwnProperty(t)?Cr[t]:Cr[t]={};Ye(r,s)}function sr(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var s={};for(var a in r){var c=r[a];c instanceof Array&&(c=c.concat([])),s[a]=c}return s}function Eo(t,r){for(var s;t.innerMode&&(s=t.innerMode(r),!(!s||s.mode==t));)r=s.state,t=s.mode;return s||{mode:t,state:r}}function _o(t,r,s){return t.startState?t.startState(r,s):!0}var st=function(t,r,s){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};st.prototype.eol=function(){return this.pos>=this.string.length},st.prototype.sol=function(){return this.pos==this.lineStart},st.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},st.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},st.prototype.eat=function(t){var r=this.string.charAt(this.pos),s;if(typeof t=="string"?s=r==t:s=r&&(t.test?t.test(r):t(r)),s)return++this.pos,r},st.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},st.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},st.prototype.skipToEnd=function(){this.pos=this.string.length},st.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},st.prototype.backUp=function(t){this.pos-=t},st.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},st.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},st.prototype.match=function(t,r,s){if(typeof t=="string"){var a=function(f){return s?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(a(c)==a(t))return r!==!1&&(this.pos+=t.length),!0}else{var h=this.string.slice(this.pos).match(t);return h&&h.index>0?null:(h&&r!==!1&&(this.pos+=h[0].length),h)}},st.prototype.current=function(){return this.string.slice(this.start,this.pos)},st.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},st.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},st.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function be(t,r){if(r-=t.first,r<0||r>=t.size)throw new Error("There is no line "+(r+t.first)+" in the document.");for(var s=t;!s.lines;)for(var a=0;;++a){var c=s.children[a],h=c.chunkSize();if(r<h){s=c;break}r-=h}return s.lines[r]}function Br(t,r,s){var a=[],c=r.line;return t.iter(r.line,s.line+1,function(h){var f=h.text;c==s.line&&(f=f.slice(0,s.ch)),c==r.line&&(f=f.slice(r.ch)),a.push(f),++c}),a}function Io(t,r,s){var a=[];return t.iter(r,s,function(c){a.push(c.text)}),a}function Yt(t,r){var s=r-t.height;if(s)for(var a=t;a;a=a.parent)a.height+=s}function je(t){if(t.parent==null)return null;for(var r=t.parent,s=ge(r.lines,t),a=r.parent;a;r=a,a=a.parent)for(var c=0;a.children[c]!=r;++c)s+=a.children[c].chunkSize();return s+r.first}function Vr(t,r){var s=t.first;e:do{for(var a=0;a<t.children.length;++a){var c=t.children[a],h=c.height;if(r<h){t=c;continue e}r-=h,s+=c.chunkSize()}return s}while(!t.lines);for(var f=0;f<t.lines.length;++f){var p=t.lines[f],g=p.height;if(r<g)break;r-=g}return s+f}function ji(t,r){return r>=t.first&&r<t.first+t.size}function Ao(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function Q(t,r,s){if(s===void 0&&(s=null),!(this instanceof Q))return new Q(t,r,s);this.line=t,this.ch=r,this.sticky=s}function C(t,r){return t.line-r.line||t.ch-r.ch}function k(t,r){return t.sticky==r.sticky&&C(t,r)==0}function G(t){return Q(t.line,t.ch)}function ee(t,r){return C(t,r)<0?r:t}function $e(t,r){return C(t,r)<0?t:r}function Fe(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function de(t,r){if(r.line<t.first)return Q(t.first,0);var s=t.first+t.size-1;return r.line>s?Q(s,be(t,s).text.length):It(r,be(t,r.line).text.length)}function It(t,r){var s=t.ch;return s==null||s>r?Q(t.line,r):s<0?Q(t.line,0):t}function lr(t,r){for(var s=[],a=0;a<r.length;a++)s[a]=de(t,r[a]);return s}var _n=function(t,r){this.state=t,this.lookAhead=r},Zr=function(t,r,s,a){this.state=r,this.doc=t,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Zr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Zr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Zr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zr.fromSaved=function(t,r,s){return r instanceof _n?new Zr(t,sr(t.mode,r.state),s,r.lookAhead):new Zr(t,sr(t.mode,r),s)},Zr.prototype.save=function(t){var r=t!==!1?sr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _n(r,this.maxLookAhead):r};function Vu(t,r,s,a){var c=[t.state.modeGen],h={};qu(t,r.text,t.doc.mode,s,function(y,z){return c.push(y,z)},h,a);for(var f=s.state,p=function(y){s.baseTokens=c;var z=t.state.overlays[y],S=1,P=0;s.state=!0,qu(t,r.text,z.mode,s,function(I,W){for(var q=S;P<I;){var te=c[S];te>I&&c.splice(S,1,I,c[S+1],te),S+=2,P=Math.min(I,te)}if(W)if(z.opaque)c.splice(q,S-q,I,"overlay "+W),S=q+2;else for(;q<S;q+=2){var ae=c[q+1];c[q+1]=(ae?ae+" ":"")+"overlay "+W}},h),s.state=f,s.baseTokens=null,s.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function Zu(t,r,s){if(!r.styles||r.styles[0]!=t.state.modeGen){var a=Po(t,je(r)),c=r.text.length>t.options.maxHighlightLength&&sr(t.doc.mode,a.state),h=Vu(t,r,a);c&&(a.state=c),r.stateAfter=a.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),s===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function Po(t,r,s){var a=t.doc,c=t.display;if(!a.mode.startState)return new Zr(a,!0,r);var h=t4(t,r,s),f=h>a.first&&be(a,h-1).stateAfter,p=f?Zr.fromSaved(a,f,h):new Zr(a,_o(a.mode),h);return a.iter(h,r,function(g){i1(t,g.text,p);var y=p.line;g.stateAfter=y==r-1||y%5==0||y>=c.viewFrom&&y<c.viewTo?p.save():null,p.nextLine()}),s&&(a.modeFrontier=p.line),p}function i1(t,r,s,a){var c=t.doc.mode,h=new st(r,t.options.tabSize,s);for(h.start=h.pos=a||0,r==""&&Wu(c,s.state);!h.eol();)n1(c,h,s.state),h.start=h.pos}function Wu(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var s=Eo(t,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function n1(t,r,s,a){for(var c=0;c<10;c++){a&&(a[0]=Eo(t,s).mode);var h=t.token(r,s);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var Uu=function(t,r,s){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=s};function ju(t,r,s,a){var c=t.doc,h=c.mode,f;r=de(c,r);var p=be(c,r.line),g=Po(t,r.line,s),y=new st(p.text,t.options.tabSize,g),z;for(a&&(z=[]);(a||y.pos<r.ch)&&!y.eol();)y.start=y.pos,f=n1(h,y,g.state),a&&z.push(new Uu(y,f,sr(c.mode,g.state)));return a?z:new Uu(y,f,g.state)}function Gu(t,r){if(t)for(;;){var s=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;t=t.slice(0,s.index)+t.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return t}function qu(t,r,s,a,c,h,f){var p=s.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,y=null,z=new st(r,t.options.tabSize,a),S,P=t.options.addModeClass&&[null];for(r==""&&Gu(Wu(s,a.state),h);!z.eol();){if(z.pos>t.options.maxHighlightLength?(p=!1,f&&i1(t,r,a,z.pos),z.pos=r.length,S=null):S=Gu(n1(s,z,a.state,P),h),P){var I=P[0].name;I&&(S="m-"+(S?I+" "+S:I))}if(!p||y!=S){for(;g<z.start;)g=Math.min(z.start,g+5e3),c(g,y);y=S}z.start=z.pos}for(;g<z.pos;){var W=Math.min(z.pos,g+5e3);c(W,y),g=W}}function t4(t,r,s){for(var a,c,h=t.doc,f=s?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=be(h,p-1),y=g.stateAfter;if(y&&(!s||p+(y instanceof _n?y.lookAhead:0)<=h.modeFrontier))return p;var z=Xe(g.text,null,t.options.tabSize);(c==null||a>z)&&(c=p-1,a=z)}return c}function r4(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var s=t.first,a=r-1;a>s;a--){var c=be(t,a).stateAfter;if(c&&(!(c instanceof _n)||a+c.lookAhead<r)){s=a+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,s)}}var Ku=!1,ni=!1;function i4(){Ku=!0}function n4(){ni=!0}function es(t,r,s){this.marker=t,this.from=r,this.to=s}function Do(t,r){if(t)for(var s=0;s<t.length;++s){var a=t[s];if(a.marker==r)return a}}function o4(t,r){for(var s,a=0;a<t.length;++a)t[a]!=r&&(s||(s=[])).push(t[a]);return s}function a4(t,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],a&&a.add(t.markedSpans)),r.marker.attachLine(t)}function s4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);if(p||h.from==r&&f.type=="bookmark"&&(!s||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(a||(a=[])).push(new es(f,h.from,g?null:h.to))}}return a}function l4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);if(p||h.from==r&&f.type=="bookmark"&&(!s||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(a||(a=[])).push(new es(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return a}function o1(t,r){if(r.full)return null;var s=ji(t,r.from.line)&&be(t,r.from.line).markedSpans,a=ji(t,r.to.line)&&be(t,r.to.line).markedSpans;if(!s&&!a)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=s4(s,c,f),g=l4(a,h,f),y=r.text.length==1,z=_e(r.text).length+(y?c:0);if(p)for(var S=0;S<p.length;++S){var P=p[S];if(P.to==null){var I=Do(g,P.marker);I?y&&(P.to=I.to==null?null:I.to+z):P.to=c}}if(g)for(var W=0;W<g.length;++W){var q=g[W];if(q.to!=null&&(q.to+=z),q.from==null){var te=Do(p,q.marker);te||(q.from=z,y&&(p||(p=[])).push(q))}else q.from+=z,y&&(p||(p=[])).push(q)}p&&(p=Yu(p)),g&&g!=p&&(g=Yu(g));var ae=[p];if(!y){var he=r.text.length-2,se;if(he>0&&p)for(var pe=0;pe<p.length;++pe)p[pe].to==null&&(se||(se=[])).push(new es(p[pe].marker,null,null));for(var Le=0;Le<he;++Le)ae.push(se);ae.push(g)}return ae}function Yu(t){for(var r=0;r<t.length;++r){var s=t[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function c4(t,r,s){var a=null;if(t.iter(r.line,s.line+1,function(I){if(I.markedSpans)for(var W=0;W<I.markedSpans.length;++W){var q=I.markedSpans[W].marker;q.readOnly&&(!a||ge(a,q)==-1)&&(a||(a=[])).push(q)}}),!a)return null;for(var c=[{from:r,to:s}],h=0;h<a.length;++h)for(var f=a[h],p=f.find(0),g=0;g<c.length;++g){var y=c[g];if(!(C(y.to,p.from)<0||C(y.from,p.to)>0)){var z=[g,1],S=C(y.from,p.from),P=C(y.to,p.to);(S<0||!f.inclusiveLeft&&!S)&&z.push({from:y.from,to:p.from}),(P>0||!f.inclusiveRight&&!P)&&z.push({from:p.to,to:y.to}),c.splice.apply(c,z),g+=z.length-3}}return c}function Xu(t){var r=t.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(t);t.markedSpans=null}}function Ju(t,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(t);t.markedSpans=r}}function ts(t){return t.inclusiveLeft?-1:0}function rs(t){return t.inclusiveRight?1:0}function a1(t,r){var s=t.lines.length-r.lines.length;if(s!=0)return s;var a=t.find(),c=r.find(),h=C(a.from,c.from)||ts(t)-ts(r);if(h)return-h;var f=C(a.to,c.to)||rs(t)-rs(r);return f||r.id-t.id}function Qu(t,r){var s=ni&&t.markedSpans,a;if(s)for(var c=void 0,h=0;h<s.length;++h)c=s[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!a||a1(a,c.marker)<0)&&(a=c.marker);return a}function e0(t){return Qu(t,!0)}function is(t){return Qu(t,!1)}function u4(t,r){var s=ni&&t.markedSpans,a;if(s)for(var c=0;c<s.length;++c){var h=s[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!a||a1(a,h.marker)<0)&&(a=h.marker)}return a}function t0(t,r,s,a,c){var h=be(t,r),f=ni&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var y=g.marker.find(0),z=C(y.from,s)||ts(g.marker)-ts(c),S=C(y.to,a)||rs(g.marker)-rs(c);if(!(z>=0&&S<=0||z<=0&&S>=0)&&(z<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(y.to,s)>=0:C(y.to,s)>0)||z>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(y.from,a)<=0:C(y.from,a)<0)))return!0}}}function Wr(t){for(var r;r=e0(t);)t=r.find(-1,!0).line;return t}function d4(t){for(var r;r=is(t);)t=r.find(1,!0).line;return t}function h4(t){for(var r,s;r=is(t);)t=r.find(1,!0).line,(s||(s=[])).push(t);return s}function s1(t,r){var s=be(t,r),a=Wr(s);return s==a?r:je(a)}function r0(t,r){if(r>t.lastLine())return r;var s=be(t,r),a;if(!xi(t,s))return r;for(;a=is(s);)s=a.find(1,!0).line;return je(s)+1}function xi(t,r){var s=ni&&r.markedSpans;if(s){for(var a=void 0,c=0;c<s.length;++c)if(a=s[c],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&l1(t,r,a))return!0}}}function l1(t,r,s){if(s.to==null){var a=s.marker.find(1,!0);return l1(t,a.line,Do(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var c=void 0,h=0;h<r.markedSpans.length;++h)if(c=r.markedSpans[h],c.marker.collapsed&&!c.marker.widgetNode&&c.from==s.to&&(c.to==null||c.to!=s.from)&&(c.marker.inclusiveLeft||s.marker.inclusiveRight)&&l1(t,r,c))return!0}function oi(t){t=Wr(t);for(var r=0,s=t.parent,a=0;a<s.lines.length;++a){var c=s.lines[a];if(c==t)break;r+=c.height}for(var h=s.parent;h;s=h,h=s.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==s)break;r+=p.height}return r}function ns(t){if(t.height==0)return 0;for(var r=t.text.length,s,a=t;s=e0(a);){var c=s.find(0,!0);a=c.from.line,r+=c.from.ch-c.to.ch}for(a=t;s=is(a);){var h=s.find(0,!0);r-=a.text.length-h.from.ch,a=h.to.line,r+=a.text.length-h.to.ch}return r}function c1(t){var r=t.display,s=t.doc;r.maxLine=be(s,s.first),r.maxLineLength=ns(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var c=ns(a);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=a)})}var In=function(t,r,s){this.text=t,Ju(this,r),this.height=s?s(this):1};In.prototype.lineNo=function(){return je(this)},Rr(In);function f4(t,r,s,a){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Xu(t),Ju(t,s);var c=a?a(t):1;c!=t.height&&Yt(t,c)}function p4(t){t.parent=null,Xu(t)}var g4={},v4={};function i0(t,r){if(!t||/^\s*$/.test(t))return null;var s=r.addModeClass?v4:g4;return s[t]||(s[t]=t.replace(/\S+/g,"cm-$&"))}function n0(t,r){var s=w("span",null,null,M?"padding-right: .1px":null),a={pre:w("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};r.measure={};for(var c=0;c<=(r.rest?r.rest.length:0);c++){var h=c?r.rest[c-1]:r.line,f=void 0;a.pos=0,a.addToken=m4,Fr(t.display.measure)&&(f=Kt(h,t.doc.direction))&&(a.addToken=C4(a.addToken,f)),a.map=[];var p=r!=t.display.externalMeasured&&je(h);w4(h,a,Zu(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=Re(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=Re(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Ya(t.display.measure))),c==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(M){var g=a.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Oe(t,"renderLine",t,r.line,a.pre),a.pre.className&&(a.textClass=Re(a.pre.className,a.textClass||"")),a}function b4(t){var r=x("span","•","cm-invalidchar");return r.title="\\u"+t.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function m4(t,r,s,a,c,h,f){if(r){var p=t.splitSpaces?y4(r,t.trailingSpace):r,g=t.cm.state.specialChars,y=!1,z;if(!g.test(r))t.col+=r.length,z=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,z),b&&m<9&&(y=!0),t.pos+=r.length;else{z=document.createDocumentFragment();for(var S=0;;){g.lastIndex=S;var P=g.exec(r),I=P?P.index-S:r.length-S;if(I){var W=document.createTextNode(p.slice(S,S+I));b&&m<9?z.appendChild(x("span",[W])):z.appendChild(W),t.map.push(t.pos,t.pos+I,W),t.col+=I,t.pos+=I}if(!P)break;S+=I+1;var q=void 0;if(P[0]==" "){var te=t.cm.options.tabSize,ae=te-t.col%te;q=z.appendChild(x("span",ir(ae),"cm-tab")),q.setAttribute("role","presentation"),q.setAttribute("cm-text"," "),t.col+=ae}else P[0]=="\r"||P[0]==`
2993
- `?(q=z.appendChild(x("span",P[0]=="\r"?"␍":"␤","cm-invalidchar")),q.setAttribute("cm-text",P[0]),t.col+=1):(q=t.cm.options.specialCharPlaceholder(P[0]),q.setAttribute("cm-text",P[0]),b&&m<9?z.appendChild(x("span",[q])):z.appendChild(q),t.col+=1);t.map.push(t.pos,t.pos+1,q),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,s||a||c||y||h||f){var he=s||"";a&&(he+=a),c&&(he+=c);var se=x("span",[z],he,h);if(f)for(var pe in f)f.hasOwnProperty(pe)&&pe!="style"&&pe!="class"&&se.setAttribute(pe,f[pe]);return t.content.appendChild(se)}t.content.appendChild(z)}}function y4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var s=r,a="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&s&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),a+=h,s=h==" "}return a}function C4(t,r){return function(s,a,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var y=s.pos,z=y+a.length;;){for(var S=void 0,P=0;P<r.length&&(S=r[P],!(S.to>y&&S.from<=y));P++);if(S.to>=z)return t(s,a,c,h,f,p,g);t(s,a.slice(0,S.to-y),c,h,null,p,g),h=null,a=a.slice(S.to-y),y=S.to}}}function o0(t,r,s,a){var c=!a&&s.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!a&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",s.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function w4(t,r,s){var a=t.markedSpans,c=t.text,h=0;if(!a){for(var f=1;f<s.length;f+=2)r.addToken(r,c.slice(h,h=s[f]),i0(s[f+1],r.cm.options));return}for(var p=c.length,g=0,y=1,z="",S,P,I=0,W,q,te,ae,he;;){if(I==g){W=q=te=P="",he=null,ae=null,I=1/0;for(var se=[],pe=void 0,Le=0;Le<a.length;++Le){var ze=a[Le],Pe=ze.marker;if(Pe.type=="bookmark"&&ze.from==g&&Pe.widgetNode)se.push(Pe);else if(ze.from<=g&&(ze.to==null||ze.to>g||Pe.collapsed&&ze.to==g&&ze.from==g)){if(ze.to!=null&&ze.to!=g&&I>ze.to&&(I=ze.to,q=""),Pe.className&&(W+=" "+Pe.className),Pe.css&&(P=(P?P+";":"")+Pe.css),Pe.startStyle&&ze.from==g&&(te+=" "+Pe.startStyle),Pe.endStyle&&ze.to==I&&(pe||(pe=[])).push(Pe.endStyle,ze.to),Pe.title&&((he||(he={})).title=Pe.title),Pe.attributes)for(var Je in Pe.attributes)(he||(he={}))[Je]=Pe.attributes[Je];Pe.collapsed&&(!ae||a1(ae.marker,Pe)<0)&&(ae=ze)}else ze.from>g&&I>ze.from&&(I=ze.from)}if(pe)for(var Lt=0;Lt<pe.length;Lt+=2)pe[Lt+1]==I&&(q+=" "+pe[Lt]);if(!ae||ae.from==g)for(var nt=0;nt<se.length;++nt)o0(r,0,se[nt]);if(ae&&(ae.from||0)==g){if(o0(r,(ae.to==null?p+1:ae.to)-g,ae.marker,ae.from==null),ae.to==null)return;ae.to==g&&(ae=!1)}}if(g>=p)break;for(var Jt=Math.min(p,I);;){if(z){var Wt=g+z.length;if(!ae){var pt=Wt>Jt?z.slice(0,Jt-g):z;r.addToken(r,pt,S?S+W:W,te,g+pt.length==I?q:"",P,he)}if(Wt>=Jt){z=z.slice(Jt-g),g=Jt;break}g=Wt,te=""}z=c.slice(h,h=s[y++]),S=i0(s[y++],r.cm.options)}}}function a0(t,r,s){this.line=r,this.rest=h4(r),this.size=this.rest?je(_e(this.rest))-s+1:1,this.node=this.text=null,this.hidden=xi(t,r)}function os(t,r,s){for(var a=[],c,h=r;h<s;h=c){var f=new a0(t.doc,be(t.doc,h),h);c=h+f.size,a.push(f)}return a}var An=null;function x4(t){An?An.ops.push(t):t.ownsGroup=An={ops:[t],delayedCallbacks:[]}}function z4(t){var r=t.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<t.ops.length;a++){var c=t.ops[a];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(s<r.length)}function L4(t,r){var s=t.ownsGroup;if(s)try{z4(s)}finally{An=null,r(s)}}var No=null;function wt(t,r){var s=Tn(t,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),c;An?c=An.delayedCallbacks:No?c=No:(c=No=[],setTimeout(S4,0));for(var h=function(p){c.push(function(){return s[p].apply(null,a)})},f=0;f<s.length;++f)h(f)}}function S4(){var t=No;No=null;for(var r=0;r<t.length;++r)t[r]()}function s0(t,r,s,a){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?T4(t,r):h=="gutter"?c0(t,r,s,a):h=="class"?u1(t,r):h=="widget"&&k4(t,r,a)}r.changes=null}function Ho(t){return t.node==t.text&&(t.node=x("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),b&&m<8&&(t.node.style.zIndex=2)),t.node}function M4(t,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=Ho(r);r.background=a.insertBefore(x("div",null,s),a.firstChild),t.display.input.setUneditable(r.background)}}function l0(t,r){var s=t.display.externalMeasured;return s&&s.line==r.line?(t.display.externalMeasured=null,r.measure=s.measure,s.built):n0(t,r)}function T4(t,r){var s=r.text.className,a=l0(t,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,u1(t,r)):s&&(r.text.className=s)}function u1(t,r){M4(t,r),r.line.wrapClass?Ho(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function c0(t,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var c=Ho(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),t.display.input.setUneditable(r.gutterBackground),c.insertBefore(r.gutterBackground,r.text)}var h=r.line.gutterMarkers;if(t.options.lineNumbers||h){var f=Ho(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(p.setAttribute("aria-hidden","true"),t.display.input.setUneditable(p),f.insertBefore(p,r.text),r.line.gutterClass&&(p.className+=" "+r.line.gutterClass),t.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(r.lineNumber=p.appendChild(x("div",Ao(t.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var y=t.display.gutterSpecs[g].className,z=h.hasOwnProperty(y)&&h[y];z&&p.appendChild(x("div",[z],"CodeMirror-gutter-elt","left: "+a.gutterLeft[y]+"px; width: "+a.gutterWidth[y]+"px"))}}}function k4(t,r,s){r.alignable&&(r.alignable=null);for(var a=ie("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,a.test(c.className)&&r.node.removeChild(c);u0(t,r,s)}function O4(t,r,s,a){var c=l0(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),u1(t,r),c0(t,r,s,a),u0(t,r,a),r.node}function u0(t,r,s){if(d0(t,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)d0(t,r.rest[a],r,s,!1)}function d0(t,r,s,a,c){if(r.widgets)for(var h=Ho(s),f=0,p=r.widgets;f<p.length;++f){var g=p[f],y=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||y.setAttribute("cm-ignore-events","true"),$4(g,y,s,a),t.display.input.setUneditable(y),c&&g.above?h.insertBefore(y,s.gutter||s.text):h.appendChild(y),wt(g,"redraw")}}function $4(t,r,s,a){if(t.noHScroll){(s.alignable||(s.alignable=[])).push(r);var c=a.wrapperWidth;r.style.left=a.fixedPos+"px",t.coverGutter||(c-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function Ro(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!ne(document.body,t.node)){var s="position: relative;";t.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),O(r.display.measure,x("div",[t.node],null,s))}return t.height=t.node.parentNode.offsetHeight}function ai(t,r){for(var s=Ci(r);s!=t.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==t.sizer&&s!=t.mover)return!0}function as(t){return t.lineSpace.offsetTop}function d1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function h0(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=O(t.measure,x("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(t.cachedPaddingH=a),a}function Ur(t){return ve-t.display.nativeBarWidth}function Gi(t){return t.display.scroller.clientWidth-Ur(t)-t.display.barWidth}function h1(t){return t.display.scroller.clientHeight-Ur(t)-t.display.barHeight}function E4(t,r,s){var a=t.options.lineWrapping,c=a&&Gi(t);if(!r.measure.heights||a&&r.measure.width!=c){var h=r.measure.heights=[];if(a){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],y=f[p+1];Math.abs(g.bottom-y.bottom)>2&&h.push((g.bottom+y.top)/2-s.top)}}h.push(s.bottom-s.top)}}function f0(t,r,s){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var a=0;a<t.rest.length;a++)if(t.rest[a]==r)return{map:t.measure.maps[a],cache:t.measure.caches[a]};for(var c=0;c<t.rest.length;c++)if(je(t.rest[c])>s)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function _4(t,r){r=Wr(r);var s=je(r),a=t.display.externalMeasured=new a0(t.doc,r,s);a.lineN=s;var c=a.built=n0(t,a);return a.text=c.pre,O(t.display.lineMeasure,c.pre),a}function p0(t,r,s,a){return jr(t,Pn(t,r),s,a)}function f1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[Yi(t,r)];var s=t.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Pn(t,r){var s=je(r),a=f1(t,s);a&&!a.text?a=null:a&&a.changes&&(s0(t,a,s,m1(t)),t.curOp.forceUpdate=!0),a||(a=_4(t,r));var c=f0(a,r,s);return{line:r,view:a,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function jr(t,r,s,a,c){r.before&&(s=-1);var h=s+(a||""),f;return r.cache.hasOwnProperty(h)?f=r.cache[h]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(E4(t,r.view,r.rect),r.hasHeights=!0),f=A4(t,r,s,a),f.bogus||(r.cache[h]=f)),{left:f.left,right:f.right,top:c?f.rtop:f.top,bottom:c?f.rbottom:f.bottom}}var g0={left:0,right:0,top:0,bottom:0};function v0(t,r,s){for(var a,c,h,f,p,g,y=0;y<t.length;y+=3)if(p=t[y],g=t[y+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(y==t.length-3||r==g&&t[y+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(a=t[y+2],p==g&&s==(a.insertLeft?"left":"right")&&(f=s),s=="left"&&c==0)for(;y&&t[y-2]==t[y-3]&&t[y-1].insertLeft;)a=t[(y-=3)+2],f="left";if(s=="right"&&c==g-p)for(;y<t.length-3&&t[y+3]==t[y+4]&&!t[y+5].insertLeft;)a=t[(y+=3)+2],f="right";break}return{node:a,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function I4(t,r){var s=g0;if(r=="left")for(var a=0;a<t.length&&(s=t[a]).left==s.right;a++);else for(var c=t.length-1;c>=0&&(s=t[c]).left==s.right;c--);return s}function A4(t,r,s,a){var c=v0(r.map,s,a),h=c.node,f=c.start,p=c.end,g=c.collapse,y;if(h.nodeType==3){for(var z=0;z<4;z++){for(;f&&Ne(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&Ne(r.line.text.charAt(c.coverStart+p));)++p;if(b&&m<9&&f==0&&p==c.coverEnd-c.coverStart?y=h.parentNode.getBoundingClientRect():y=I4(U(h,f,p).getClientRects(),a),y.left||y.right||f==0)break;p=f,f=f-1,g="right"}b&&m<11&&(y=P4(t.display.measure,y))}else{f>0&&(g=a="right");var S;t.options.lineWrapping&&(S=h.getClientRects()).length>1?y=S[a=="right"?S.length-1:0]:y=h.getBoundingClientRect()}if(b&&m<9&&!f&&(!y||!y.left&&!y.right)){var P=h.parentNode.getClientRects()[0];P?y={left:P.left,right:P.left+Nn(t.display),top:P.top,bottom:P.bottom}:y=g0}for(var I=y.top-r.rect.top,W=y.bottom-r.rect.top,q=(I+W)/2,te=r.view.measure.heights,ae=0;ae<te.length-1&&!(q<te[ae]);ae++);var he=ae?te[ae-1]:0,se=te[ae],pe={left:(g=="right"?y.right:y.left)-r.rect.left,right:(g=="left"?y.left:y.right)-r.rect.left,top:he,bottom:se};return!y.left&&!y.right&&(pe.bogus=!0),t.options.singleCursorHeightPerLine||(pe.rtop=I,pe.rbottom=W),pe}function P4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wi(t))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function b0(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var r=0;r<t.rest.length;r++)t.measure.caches[r]={}}function m0(t){t.display.externalMeasure=null,V(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)b0(t.display.view[r])}function Fo(t){m0(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function y0(){return T&&D?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function C0(){return T&&D?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function p1(t){var r=0;if(t.widgets)for(var s=0;s<t.widgets.length;++s)t.widgets[s].above&&(r+=Ro(t.widgets[s]));return r}function ss(t,r,s,a,c){if(!c){var h=p1(r);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var f=oi(r);if(a=="local"?f+=as(t.display):f-=t.display.viewOffset,a=="page"||a=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(a=="window"?0:C0());var g=p.left+(a=="window"?0:y0());s.left+=g,s.right+=g}return s.top+=f,s.bottom+=f,s}function w0(t,r,s){if(s=="div")return r;var a=r.left,c=r.top;if(s=="page")a-=y0(),c-=C0();else if(s=="local"||!s){var h=t.display.sizer.getBoundingClientRect();a+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:a-f.left,top:c-f.top}}function ls(t,r,s,a,c){return a||(a=be(t.doc,r.line)),ss(t,a,p0(t,a,r.ch,c),s)}function xr(t,r,s,a,c,h){a=a||be(t.doc,r.line),c||(c=Pn(t,a));function f(W,q){var te=jr(t,c,W,q?"right":"left",h);return q?te.left=te.right:te.right=te.left,ss(t,a,te,s)}var p=Kt(a,t.doc.direction),g=r.ch,y=r.sticky;if(g>=a.text.length?(g=a.text.length,y="before"):g<=0&&(g=0,y="after"),!p)return f(y=="before"?g-1:g,y=="before");function z(W,q,te){var ae=p[q],he=ae.level==1;return f(te?W-1:W,he!=te)}var S=at(p,g,y),P=nr,I=z(g,S,y=="before");return P!=null&&(I.other=z(g,P,y!="before")),I}function x0(t,r){var s=0;r=de(t.doc,r),t.options.lineWrapping||(s=Nn(t.display)*r.ch);var a=be(t.doc,r.line),c=oi(a)+as(t.display);return{left:s,right:s,top:c,bottom:c+a.height}}function g1(t,r,s,a,c){var h=Q(t,r,s);return h.xRel=c,a&&(h.outside=a),h}function v1(t,r,s){var a=t.doc;if(s+=t.display.viewOffset,s<0)return g1(a.first,0,null,-1,-1);var c=Vr(a,s),h=a.first+a.size-1;if(c>h)return g1(a.first+a.size-1,be(a,h).text.length,null,1,1);r<0&&(r=0);for(var f=be(a,c);;){var p=D4(t,f,c,r,s),g=u4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var y=g.find(1);if(y.line==c)return y;f=be(a,c=y.line)}}function z0(t,r,s,a){a-=p1(r);var c=r.text.length,h=Hr(function(f){return jr(t,s,f-1).bottom<=a},c,0);return c=Hr(function(f){return jr(t,s,f).top>a},h,c),{begin:h,end:c}}function L0(t,r,s,a){s||(s=Pn(t,r));var c=ss(t,r,jr(t,s,a),"line").top;return z0(t,r,s,c)}function b1(t,r,s,a){return t.bottom<=s?!1:t.top>s?!0:(a?t.left:t.right)>r}function D4(t,r,s,a,c){c-=oi(r);var h=Pn(t,r),f=p1(r),p=0,g=r.text.length,y=!0,z=Kt(r,t.doc.direction);if(z){var S=(t.options.lineWrapping?H4:N4)(t,r,s,h,z,a,c);y=S.level!=1,p=y?S.from:S.to-1,g=y?S.to:S.from-1}var P=null,I=null,W=Hr(function(Le){var ze=jr(t,h,Le);return ze.top+=f,ze.bottom+=f,b1(ze,a,c,!1)?(ze.top<=c&&ze.left<=a&&(P=Le,I=ze),!0):!1},p,g),q,te,ae=!1;if(I){var he=a-I.left<I.right-a,se=he==y;W=P+(se?0:1),te=se?"after":"before",q=he?I.left:I.right}else{!y&&(W==g||W==p)&&W++,te=W==0?"after":W==r.text.length?"before":jr(t,h,W-(y?1:0)).bottom+f<=c==y?"after":"before";var pe=xr(t,Q(s,W,te),"line",r,h);q=pe.left,ae=c<pe.top?-1:c>=pe.bottom?1:0}return W=Dt(r.text,W,1),g1(s,W,te,ae,a-q)}function N4(t,r,s,a,c,h,f){var p=Hr(function(S){var P=c[S],I=P.level!=1;return b1(xr(t,Q(s,I?P.to:P.from,I?"before":"after"),"line",r,a),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var y=g.level!=1,z=xr(t,Q(s,y?g.from:g.to,y?"after":"before"),"line",r,a);b1(z,h,f,!0)&&z.top>f&&(g=c[p-1])}return g}function H4(t,r,s,a,c,h,f){var p=z0(t,r,a,f),g=p.begin,y=p.end;/\s/.test(r.text.charAt(y-1))&&y--;for(var z=null,S=null,P=0;P<c.length;P++){var I=c[P];if(!(I.from>=y||I.to<=g)){var W=I.level!=1,q=jr(t,a,W?Math.min(y,I.to)-1:Math.max(g,I.from)).right,te=q<h?h-q+1e9:q-h;(!z||S>te)&&(z=I,S=te)}}return z||(z=c[c.length-1]),z.from<g&&(z={from:g,to:z.to,level:z.level}),z.to>y&&(z={from:z.from,to:y,level:z.level}),z}var qi;function Dn(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(qi==null){qi=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)qi.appendChild(document.createTextNode("x")),qi.appendChild(x("br"));qi.appendChild(document.createTextNode("x"))}O(t.measure,qi);var s=qi.offsetHeight/50;return s>3&&(t.cachedTextHeight=s),V(t.measure),s||1}function Nn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),s=x("pre",[r],"CodeMirror-line-like");O(t.measure,s);var a=r.getBoundingClientRect(),c=(a.right-a.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function m1(t){for(var r=t.display,s={},a={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;s[p]=h.offsetLeft+h.clientLeft+c,a[p]=h.clientWidth}return{fixedPos:y1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function y1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function S0(t){var r=Dn(t.display),s=t.options.lineWrapping,a=s&&Math.max(5,t.display.scroller.clientWidth/Nn(t.display)-3);return function(c){if(xi(t.doc,c))return 0;var h=0;if(c.widgets)for(var f=0;f<c.widgets.length;f++)c.widgets[f].height&&(h+=c.widgets[f].height);return s?h+(Math.ceil(c.text.length/a)||1)*r:h+r}}function C1(t){var r=t.doc,s=S0(t);r.iter(function(a){var c=s(a);c!=a.height&&Yt(a,c)})}function Ki(t,r,s,a){var c=t.display;if(!s&&Ci(r).getAttribute("cm-not-content")=="true")return null;var h,f,p=c.lineSpace.getBoundingClientRect();try{h=r.clientX-p.left,f=r.clientY-p.top}catch{return null}var g=v1(t,h,f),y;if(a&&g.xRel>0&&(y=be(t.doc,g.line).text).length==g.ch){var z=Xe(y,y.length,t.options.tabSize)-y.length;g=Q(g.line,Math.max(0,Math.round((h-h0(t.display).left)/Nn(t.display))-z))}return g}function Yi(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var s=t.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function Vt(t,r,s,a){r==null&&(r=t.doc.first),s==null&&(s=t.doc.first+t.doc.size),a||(a=0);var c=t.display;if(a&&s<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)ni&&s1(t.doc,r)<c.viewTo&&Li(t);else if(s<=c.viewFrom)ni&&r0(t.doc,s+a)>c.viewFrom?Li(t):(c.viewFrom+=a,c.viewTo+=a);else if(r<=c.viewFrom&&s>=c.viewTo)Li(t);else if(r<=c.viewFrom){var h=cs(t,s,s+a,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=a):Li(t)}else if(s>=c.viewTo){var f=cs(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):Li(t)}else{var p=cs(t,r,r,-1),g=cs(t,s,s+a,1);p&&g?(c.view=c.view.slice(0,p.index).concat(os(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=a):Li(t)}var y=c.externalMeasured;y&&(s<y.lineN?y.lineN+=a:r<y.lineN+y.size&&(c.externalMeasured=null))}function zi(t,r,s){t.curOp.viewChanged=!0;var a=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var h=a.view[Yi(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);ge(f,s)==-1&&f.push(s)}}}function Li(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function cs(t,r,s,a){var c=Yi(t,r),h,f=t.display.view;if(!ni||s==t.doc.first+t.doc.size)return{index:c,lineN:s};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(a>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,s+=h}for(;s1(t.doc,s)!=s;){if(c==(a<0?0:f.length-1))return null;s+=a*f[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:s}}function R4(t,r,s){var a=t.display,c=a.view;c.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=os(t,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=os(t,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(Yi(t,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(os(t,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,Yi(t,s)))),a.viewTo=s}function M0(t){for(var r=t.display.view,s=0,a=0;a<r.length;a++){var c=r[a];!c.hidden&&(!c.node||c.changes)&&++s}return s}function Bo(t){t.display.input.showSelection(t.display.input.prepareSelection())}function T0(t,r){r===void 0&&(r=!0);for(var s=t.doc,a={},c=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),f=0;f<s.sel.ranges.length;f++)if(!(!r&&f==s.sel.primIndex)){var p=s.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&k0(t,p.head,c),g||F4(t,p,h)}}return a}function k0(t,r,s){var a=xr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=s.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=a.left+"px",c.style.top=a.top+"px",c.style.height=Math.max(0,a.bottom-a.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=ls(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var f=s.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=a.other.left+"px",f.style.top=a.other.top+"px",f.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function us(t,r){return t.top-r.top||t.left-r.left}function F4(t,r,s){var a=t.display,c=t.doc,h=document.createDocumentFragment(),f=h0(t.display),p=f.left,g=Math.max(a.sizerWidth,Gi(t)-a.sizer.offsetLeft)-f.right,y=c.direction=="ltr";function z(se,pe,Le,ze){pe<0&&(pe=0),pe=Math.round(pe),ze=Math.round(ze),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+se+`px;
2992
+ `,r);c==-1&&(c=t.length);var h=t.slice(r,t.charAt(c-1)=="\r"?c-1:c),f=h.indexOf("\r");f!=-1?(s.push(h.slice(0,f)),r+=f+1):(s.push(h),r=c+1)}return s}:function(t){return t.split(/\r\n?|\n/)},Xa=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var r;try{r=t.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=t?!1:r.compareEndPoints("StartToEnd",r)!=0},Ja=function(){var t=x("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),Eo=null;function wi(t){if(Eo!=null)return Eo;var r=O(t,x("span","x")),s=r.getBoundingClientRect(),a=U(r,0,1).getBoundingClientRect();return Eo=Math.abs(s.left-a.left)>1}var pr={},ar={};function Qa(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),pr[t]=r}function ii(t,r){ar[t]=r}function $n(t){if(typeof t=="string"&&ar.hasOwnProperty(t))t=ar[t];else if(t&&typeof t.name=="string"&&ar.hasOwnProperty(t.name)){var r=ar[t.name];typeof r=="string"&&(r={name:r}),t=et(r,t),t.name=r.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return $n("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return $n("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function En(t,r){r=$n(r);var s=pr[r.name];if(!s)return En(t,"text/plain");var a=s(t,r);if(Cr.hasOwnProperty(r.name)){var c=Cr[r.name];for(var h in c)c.hasOwnProperty(h)&&(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=c[h])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var f in r.modeProps)a[f]=r.modeProps[f];return a}var Cr={};function wr(t,r){var s=Cr.hasOwnProperty(t)?Cr[t]:Cr[t]={};Ye(r,s)}function sr(t,r){if(r===!0)return r;if(t.copyState)return t.copyState(r);var s={};for(var a in r){var c=r[a];c instanceof Array&&(c=c.concat([])),s[a]=c}return s}function _o(t,r){for(var s;t.innerMode&&(s=t.innerMode(r),!(!s||s.mode==t));)r=s.state,t=s.mode;return s||{mode:t,state:r}}function Ao(t,r,s){return t.startState?t.startState(r,s):!0}var st=function(t,r,s){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};st.prototype.eol=function(){return this.pos>=this.string.length},st.prototype.sol=function(){return this.pos==this.lineStart},st.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},st.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},st.prototype.eat=function(t){var r=this.string.charAt(this.pos),s;if(typeof t=="string"?s=r==t:s=r&&(t.test?t.test(r):t(r)),s)return++this.pos,r},st.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},st.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},st.prototype.skipToEnd=function(){this.pos=this.string.length},st.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},st.prototype.backUp=function(t){this.pos-=t},st.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},st.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},st.prototype.match=function(t,r,s){if(typeof t=="string"){var a=function(f){return s?f.toLowerCase():f},c=this.string.substr(this.pos,t.length);if(a(c)==a(t))return r!==!1&&(this.pos+=t.length),!0}else{var h=this.string.slice(this.pos).match(t);return h&&h.index>0?null:(h&&r!==!1&&(this.pos+=h[0].length),h)}},st.prototype.current=function(){return this.string.slice(this.start,this.pos)},st.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},st.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},st.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function be(t,r){if(r-=t.first,r<0||r>=t.size)throw new Error("There is no line "+(r+t.first)+" in the document.");for(var s=t;!s.lines;)for(var a=0;;++a){var c=s.children[a],h=c.chunkSize();if(r<h){s=c;break}r-=h}return s.lines[r]}function Br(t,r,s){var a=[],c=r.line;return t.iter(r.line,s.line+1,function(h){var f=h.text;c==s.line&&(f=f.slice(0,s.ch)),c==r.line&&(f=f.slice(r.ch)),a.push(f),++c}),a}function Io(t,r,s){var a=[];return t.iter(r,s,function(c){a.push(c.text)}),a}function Yt(t,r){var s=r-t.height;if(s)for(var a=t;a;a=a.parent)a.height+=s}function je(t){if(t.parent==null)return null;for(var r=t.parent,s=ge(r.lines,t),a=r.parent;a;r=a,a=a.parent)for(var c=0;a.children[c]!=r;++c)s+=a.children[c].chunkSize();return s+r.first}function Vr(t,r){var s=t.first;e:do{for(var a=0;a<t.children.length;++a){var c=t.children[a],h=c.height;if(r<h){t=c;continue e}r-=h,s+=c.chunkSize()}return s}while(!t.lines);for(var f=0;f<t.lines.length;++f){var p=t.lines[f],g=p.height;if(r<g)break;r-=g}return s+f}function ji(t,r){return r>=t.first&&r<t.first+t.size}function Po(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function Q(t,r,s){if(s===void 0&&(s=null),!(this instanceof Q))return new Q(t,r,s);this.line=t,this.ch=r,this.sticky=s}function C(t,r){return t.line-r.line||t.ch-r.ch}function k(t,r){return t.sticky==r.sticky&&C(t,r)==0}function G(t){return Q(t.line,t.ch)}function ee(t,r){return C(t,r)<0?r:t}function $e(t,r){return C(t,r)<0?t:r}function Fe(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function de(t,r){if(r.line<t.first)return Q(t.first,0);var s=t.first+t.size-1;return r.line>s?Q(s,be(t,s).text.length):At(r,be(t,r.line).text.length)}function At(t,r){var s=t.ch;return s==null||s>r?Q(t.line,r):s<0?Q(t.line,0):t}function lr(t,r){for(var s=[],a=0;a<r.length;a++)s[a]=de(t,r[a]);return s}var _n=function(t,r){this.state=t,this.lookAhead=r},Zr=function(t,r,s,a){this.state=r,this.doc=t,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Zr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return r!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},Zr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Zr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Zr.fromSaved=function(t,r,s){return r instanceof _n?new Zr(t,sr(t.mode,r.state),s,r.lookAhead):new Zr(t,sr(t.mode,r),s)},Zr.prototype.save=function(t){var r=t!==!1?sr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _n(r,this.maxLookAhead):r};function Zu(t,r,s,a){var c=[t.state.modeGen],h={};Ku(t,r.text,t.doc.mode,s,function(y,z){return c.push(y,z)},h,a);for(var f=s.state,p=function(y){s.baseTokens=c;var z=t.state.overlays[y],S=1,P=0;s.state=!0,Ku(t,r.text,z.mode,s,function(A,W){for(var q=S;P<A;){var te=c[S];te>A&&c.splice(S,1,A,c[S+1],te),S+=2,P=Math.min(A,te)}if(W)if(z.opaque)c.splice(q,S-q,A,"overlay "+W),S=q+2;else for(;q<S;q+=2){var ae=c[q+1];c[q+1]=(ae?ae+" ":"")+"overlay "+W}},h),s.state=f,s.baseTokens=null,s.baseTokenPos=1},g=0;g<t.state.overlays.length;++g)p(g);return{styles:c,classes:h.bgClass||h.textClass?h:null}}function Wu(t,r,s){if(!r.styles||r.styles[0]!=t.state.modeGen){var a=Do(t,je(r)),c=r.text.length>t.options.maxHighlightLength&&sr(t.doc.mode,a.state),h=Zu(t,r,a);c&&(a.state=c),r.stateAfter=a.save(!c),r.styles=h.styles,h.classes?r.styleClasses=h.classes:r.styleClasses&&(r.styleClasses=null),s===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function Do(t,r,s){var a=t.doc,c=t.display;if(!a.mode.startState)return new Zr(a,!0,r);var h=o4(t,r,s),f=h>a.first&&be(a,h-1).stateAfter,p=f?Zr.fromSaved(a,f,h):new Zr(a,Ao(a.mode),h);return a.iter(h,r,function(g){i1(t,g.text,p);var y=p.line;g.stateAfter=y==r-1||y%5==0||y>=c.viewFrom&&y<c.viewTo?p.save():null,p.nextLine()}),s&&(a.modeFrontier=p.line),p}function i1(t,r,s,a){var c=t.doc.mode,h=new st(r,t.options.tabSize,s);for(h.start=h.pos=a||0,r==""&&Uu(c,s.state);!h.eol();)n1(c,h,s.state),h.start=h.pos}function Uu(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var s=_o(t,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function n1(t,r,s,a){for(var c=0;c<10;c++){a&&(a[0]=_o(t,s).mode);var h=t.token(r,s);if(r.pos>r.start)return h}throw new Error("Mode "+t.name+" failed to advance stream.")}var ju=function(t,r,s){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=s};function Gu(t,r,s,a){var c=t.doc,h=c.mode,f;r=de(c,r);var p=be(c,r.line),g=Do(t,r.line,s),y=new st(p.text,t.options.tabSize,g),z;for(a&&(z=[]);(a||y.pos<r.ch)&&!y.eol();)y.start=y.pos,f=n1(h,y,g.state),a&&z.push(new ju(y,f,sr(c.mode,g.state)));return a?z:new ju(y,f,g.state)}function qu(t,r){if(t)for(;;){var s=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;t=t.slice(0,s.index)+t.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return t}function Ku(t,r,s,a,c,h,f){var p=s.flattenSpans;p==null&&(p=t.options.flattenSpans);var g=0,y=null,z=new st(r,t.options.tabSize,a),S,P=t.options.addModeClass&&[null];for(r==""&&qu(Uu(s,a.state),h);!z.eol();){if(z.pos>t.options.maxHighlightLength?(p=!1,f&&i1(t,r,a,z.pos),z.pos=r.length,S=null):S=qu(n1(s,z,a.state,P),h),P){var A=P[0].name;A&&(S="m-"+(S?A+" "+S:A))}if(!p||y!=S){for(;g<z.start;)g=Math.min(z.start,g+5e3),c(g,y);y=S}z.start=z.pos}for(;g<z.pos;){var W=Math.min(z.pos,g+5e3);c(W,y),g=W}}function o4(t,r,s){for(var a,c,h=t.doc,f=s?-1:r-(t.doc.mode.innerMode?1e3:100),p=r;p>f;--p){if(p<=h.first)return h.first;var g=be(h,p-1),y=g.stateAfter;if(y&&(!s||p+(y instanceof _n?y.lookAhead:0)<=h.modeFrontier))return p;var z=Xe(g.text,null,t.options.tabSize);(c==null||a>z)&&(c=p-1,a=z)}return c}function a4(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var s=t.first,a=r-1;a>s;a--){var c=be(t,a).stateAfter;if(c&&(!(c instanceof _n)||a+c.lookAhead<r)){s=a+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,s)}}var Yu=!1,ni=!1;function s4(){Yu=!0}function l4(){ni=!0}function es(t,r,s){this.marker=t,this.from=r,this.to=s}function No(t,r){if(t)for(var s=0;s<t.length;++s){var a=t[s];if(a.marker==r)return a}}function c4(t,r){for(var s,a=0;a<t.length;++a)t[a]!=r&&(s||(s=[])).push(t[a]);return s}function u4(t,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(t.markedSpans)?t.markedSpans.push(r):(t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],a&&a.add(t.markedSpans)),r.marker.attachLine(t)}function d4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);if(p||h.from==r&&f.type=="bookmark"&&(!s||!h.marker.insertLeft)){var g=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);(a||(a=[])).push(new es(f,h.from,g?null:h.to))}}return a}function h4(t,r,s){var a;if(t)for(var c=0;c<t.length;++c){var h=t[c],f=h.marker,p=h.to==null||(f.inclusiveRight?h.to>=r:h.to>r);if(p||h.from==r&&f.type=="bookmark"&&(!s||h.marker.insertLeft)){var g=h.from==null||(f.inclusiveLeft?h.from<=r:h.from<r);(a||(a=[])).push(new es(f,g?null:h.from-r,h.to==null?null:h.to-r))}}return a}function o1(t,r){if(r.full)return null;var s=ji(t,r.from.line)&&be(t,r.from.line).markedSpans,a=ji(t,r.to.line)&&be(t,r.to.line).markedSpans;if(!s&&!a)return null;var c=r.from.ch,h=r.to.ch,f=C(r.from,r.to)==0,p=d4(s,c,f),g=h4(a,h,f),y=r.text.length==1,z=_e(r.text).length+(y?c:0);if(p)for(var S=0;S<p.length;++S){var P=p[S];if(P.to==null){var A=No(g,P.marker);A?y&&(P.to=A.to==null?null:A.to+z):P.to=c}}if(g)for(var W=0;W<g.length;++W){var q=g[W];if(q.to!=null&&(q.to+=z),q.from==null){var te=No(p,q.marker);te||(q.from=z,y&&(p||(p=[])).push(q))}else q.from+=z,y&&(p||(p=[])).push(q)}p&&(p=Xu(p)),g&&g!=p&&(g=Xu(g));var ae=[p];if(!y){var he=r.text.length-2,se;if(he>0&&p)for(var pe=0;pe<p.length;++pe)p[pe].to==null&&(se||(se=[])).push(new es(p[pe].marker,null,null));for(var Le=0;Le<he;++Le)ae.push(se);ae.push(g)}return ae}function Xu(t){for(var r=0;r<t.length;++r){var s=t[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&t.splice(r--,1)}return t.length?t:null}function f4(t,r,s){var a=null;if(t.iter(r.line,s.line+1,function(A){if(A.markedSpans)for(var W=0;W<A.markedSpans.length;++W){var q=A.markedSpans[W].marker;q.readOnly&&(!a||ge(a,q)==-1)&&(a||(a=[])).push(q)}}),!a)return null;for(var c=[{from:r,to:s}],h=0;h<a.length;++h)for(var f=a[h],p=f.find(0),g=0;g<c.length;++g){var y=c[g];if(!(C(y.to,p.from)<0||C(y.from,p.to)>0)){var z=[g,1],S=C(y.from,p.from),P=C(y.to,p.to);(S<0||!f.inclusiveLeft&&!S)&&z.push({from:y.from,to:p.from}),(P>0||!f.inclusiveRight&&!P)&&z.push({from:p.to,to:y.to}),c.splice.apply(c,z),g+=z.length-3}}return c}function Ju(t){var r=t.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(t);t.markedSpans=null}}function Qu(t,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(t);t.markedSpans=r}}function ts(t){return t.inclusiveLeft?-1:0}function rs(t){return t.inclusiveRight?1:0}function a1(t,r){var s=t.lines.length-r.lines.length;if(s!=0)return s;var a=t.find(),c=r.find(),h=C(a.from,c.from)||ts(t)-ts(r);if(h)return-h;var f=C(a.to,c.to)||rs(t)-rs(r);return f||r.id-t.id}function e0(t,r){var s=ni&&t.markedSpans,a;if(s)for(var c=void 0,h=0;h<s.length;++h)c=s[h],c.marker.collapsed&&(r?c.from:c.to)==null&&(!a||a1(a,c.marker)<0)&&(a=c.marker);return a}function t0(t){return e0(t,!0)}function is(t){return e0(t,!1)}function p4(t,r){var s=ni&&t.markedSpans,a;if(s)for(var c=0;c<s.length;++c){var h=s[c];h.marker.collapsed&&(h.from==null||h.from<r)&&(h.to==null||h.to>r)&&(!a||a1(a,h.marker)<0)&&(a=h.marker)}return a}function r0(t,r,s,a,c){var h=be(t,r),f=ni&&h.markedSpans;if(f)for(var p=0;p<f.length;++p){var g=f[p];if(g.marker.collapsed){var y=g.marker.find(0),z=C(y.from,s)||ts(g.marker)-ts(c),S=C(y.to,a)||rs(g.marker)-rs(c);if(!(z>=0&&S<=0||z<=0&&S>=0)&&(z<=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(y.to,s)>=0:C(y.to,s)>0)||z>=0&&(g.marker.inclusiveRight&&c.inclusiveLeft?C(y.from,a)<=0:C(y.from,a)<0)))return!0}}}function Wr(t){for(var r;r=t0(t);)t=r.find(-1,!0).line;return t}function g4(t){for(var r;r=is(t);)t=r.find(1,!0).line;return t}function v4(t){for(var r,s;r=is(t);)t=r.find(1,!0).line,(s||(s=[])).push(t);return s}function s1(t,r){var s=be(t,r),a=Wr(s);return s==a?r:je(a)}function i0(t,r){if(r>t.lastLine())return r;var s=be(t,r),a;if(!xi(t,s))return r;for(;a=is(s);)s=a.find(1,!0).line;return je(s)+1}function xi(t,r){var s=ni&&r.markedSpans;if(s){for(var a=void 0,c=0;c<s.length;++c)if(a=s[c],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&l1(t,r,a))return!0}}}function l1(t,r,s){if(s.to==null){var a=s.marker.find(1,!0);return l1(t,a.line,No(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var c=void 0,h=0;h<r.markedSpans.length;++h)if(c=r.markedSpans[h],c.marker.collapsed&&!c.marker.widgetNode&&c.from==s.to&&(c.to==null||c.to!=s.from)&&(c.marker.inclusiveLeft||s.marker.inclusiveRight)&&l1(t,r,c))return!0}function oi(t){t=Wr(t);for(var r=0,s=t.parent,a=0;a<s.lines.length;++a){var c=s.lines[a];if(c==t)break;r+=c.height}for(var h=s.parent;h;s=h,h=s.parent)for(var f=0;f<h.children.length;++f){var p=h.children[f];if(p==s)break;r+=p.height}return r}function ns(t){if(t.height==0)return 0;for(var r=t.text.length,s,a=t;s=t0(a);){var c=s.find(0,!0);a=c.from.line,r+=c.from.ch-c.to.ch}for(a=t;s=is(a);){var h=s.find(0,!0);r-=a.text.length-h.from.ch,a=h.to.line,r+=a.text.length-h.to.ch}return r}function c1(t){var r=t.display,s=t.doc;r.maxLine=be(s,s.first),r.maxLineLength=ns(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var c=ns(a);c>r.maxLineLength&&(r.maxLineLength=c,r.maxLine=a)})}var An=function(t,r,s){this.text=t,Qu(this,r),this.height=s?s(this):1};An.prototype.lineNo=function(){return je(this)},Rr(An);function b4(t,r,s,a){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Ju(t),Qu(t,s);var c=a?a(t):1;c!=t.height&&Yt(t,c)}function m4(t){t.parent=null,Ju(t)}var y4={},C4={};function n0(t,r){if(!t||/^\s*$/.test(t))return null;var s=r.addModeClass?C4:y4;return s[t]||(s[t]=t.replace(/\S+/g,"cm-$&"))}function o0(t,r){var s=w("span",null,null,M?"padding-right: .1px":null),a={pre:w("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};r.measure={};for(var c=0;c<=(r.rest?r.rest.length:0);c++){var h=c?r.rest[c-1]:r.line,f=void 0;a.pos=0,a.addToken=x4,Fr(t.display.measure)&&(f=Kt(h,t.doc.direction))&&(a.addToken=L4(a.addToken,f)),a.map=[];var p=r!=t.display.externalMeasured&&je(h);S4(h,a,Wu(t,h,p)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=Re(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=Re(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Ya(t.display.measure))),c==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(M){var g=a.content.lastChild;(/\bcm-tab\b/.test(g.className)||g.querySelector&&g.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Oe(t,"renderLine",t,r.line,a.pre),a.pre.className&&(a.textClass=Re(a.pre.className,a.textClass||"")),a}function w4(t){var r=x("span","•","cm-invalidchar");return r.title="\\u"+t.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function x4(t,r,s,a,c,h,f){if(r){var p=t.splitSpaces?z4(r,t.trailingSpace):r,g=t.cm.state.specialChars,y=!1,z;if(!g.test(r))t.col+=r.length,z=document.createTextNode(p),t.map.push(t.pos,t.pos+r.length,z),b&&m<9&&(y=!0),t.pos+=r.length;else{z=document.createDocumentFragment();for(var S=0;;){g.lastIndex=S;var P=g.exec(r),A=P?P.index-S:r.length-S;if(A){var W=document.createTextNode(p.slice(S,S+A));b&&m<9?z.appendChild(x("span",[W])):z.appendChild(W),t.map.push(t.pos,t.pos+A,W),t.col+=A,t.pos+=A}if(!P)break;S+=A+1;var q=void 0;if(P[0]==" "){var te=t.cm.options.tabSize,ae=te-t.col%te;q=z.appendChild(x("span",ir(ae),"cm-tab")),q.setAttribute("role","presentation"),q.setAttribute("cm-text"," "),t.col+=ae}else P[0]=="\r"||P[0]==`
2993
+ `?(q=z.appendChild(x("span",P[0]=="\r"?"␍":"␤","cm-invalidchar")),q.setAttribute("cm-text",P[0]),t.col+=1):(q=t.cm.options.specialCharPlaceholder(P[0]),q.setAttribute("cm-text",P[0]),b&&m<9?z.appendChild(x("span",[q])):z.appendChild(q),t.col+=1);t.map.push(t.pos,t.pos+1,q),t.pos++}}if(t.trailingSpace=p.charCodeAt(r.length-1)==32,s||a||c||y||h||f){var he=s||"";a&&(he+=a),c&&(he+=c);var se=x("span",[z],he,h);if(f)for(var pe in f)f.hasOwnProperty(pe)&&pe!="style"&&pe!="class"&&se.setAttribute(pe,f[pe]);return t.content.appendChild(se)}t.content.appendChild(z)}}function z4(t,r){if(t.length>1&&!/ /.test(t))return t;for(var s=r,a="",c=0;c<t.length;c++){var h=t.charAt(c);h==" "&&s&&(c==t.length-1||t.charCodeAt(c+1)==32)&&(h=" "),a+=h,s=h==" "}return a}function L4(t,r){return function(s,a,c,h,f,p,g){c=c?c+" cm-force-border":"cm-force-border";for(var y=s.pos,z=y+a.length;;){for(var S=void 0,P=0;P<r.length&&(S=r[P],!(S.to>y&&S.from<=y));P++);if(S.to>=z)return t(s,a,c,h,f,p,g);t(s,a.slice(0,S.to-y),c,h,null,p,g),h=null,a=a.slice(S.to-y),y=S.to}}}function a0(t,r,s,a){var c=!a&&s.widgetNode;c&&t.map.push(t.pos,t.pos+r,c),!a&&t.cm.display.input.needsContentAttribute&&(c||(c=t.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",s.id)),c&&(t.cm.display.input.setUneditable(c),t.content.appendChild(c)),t.pos+=r,t.trailingSpace=!1}function S4(t,r,s){var a=t.markedSpans,c=t.text,h=0;if(!a){for(var f=1;f<s.length;f+=2)r.addToken(r,c.slice(h,h=s[f]),n0(s[f+1],r.cm.options));return}for(var p=c.length,g=0,y=1,z="",S,P,A=0,W,q,te,ae,he;;){if(A==g){W=q=te=P="",he=null,ae=null,A=1/0;for(var se=[],pe=void 0,Le=0;Le<a.length;++Le){var ze=a[Le],Pe=ze.marker;if(Pe.type=="bookmark"&&ze.from==g&&Pe.widgetNode)se.push(Pe);else if(ze.from<=g&&(ze.to==null||ze.to>g||Pe.collapsed&&ze.to==g&&ze.from==g)){if(ze.to!=null&&ze.to!=g&&A>ze.to&&(A=ze.to,q=""),Pe.className&&(W+=" "+Pe.className),Pe.css&&(P=(P?P+";":"")+Pe.css),Pe.startStyle&&ze.from==g&&(te+=" "+Pe.startStyle),Pe.endStyle&&ze.to==A&&(pe||(pe=[])).push(Pe.endStyle,ze.to),Pe.title&&((he||(he={})).title=Pe.title),Pe.attributes)for(var Je in Pe.attributes)(he||(he={}))[Je]=Pe.attributes[Je];Pe.collapsed&&(!ae||a1(ae.marker,Pe)<0)&&(ae=ze)}else ze.from>g&&A>ze.from&&(A=ze.from)}if(pe)for(var Lt=0;Lt<pe.length;Lt+=2)pe[Lt+1]==A&&(q+=" "+pe[Lt]);if(!ae||ae.from==g)for(var nt=0;nt<se.length;++nt)a0(r,0,se[nt]);if(ae&&(ae.from||0)==g){if(a0(r,(ae.to==null?p+1:ae.to)-g,ae.marker,ae.from==null),ae.to==null)return;ae.to==g&&(ae=!1)}}if(g>=p)break;for(var Jt=Math.min(p,A);;){if(z){var Wt=g+z.length;if(!ae){var pt=Wt>Jt?z.slice(0,Jt-g):z;r.addToken(r,pt,S?S+W:W,te,g+pt.length==A?q:"",P,he)}if(Wt>=Jt){z=z.slice(Jt-g),g=Jt;break}g=Wt,te=""}z=c.slice(h,h=s[y++]),S=n0(s[y++],r.cm.options)}}}function s0(t,r,s){this.line=r,this.rest=v4(r),this.size=this.rest?je(_e(this.rest))-s+1:1,this.node=this.text=null,this.hidden=xi(t,r)}function os(t,r,s){for(var a=[],c,h=r;h<s;h=c){var f=new s0(t.doc,be(t.doc,h),h);c=h+f.size,a.push(f)}return a}var In=null;function M4(t){In?In.ops.push(t):t.ownsGroup=In={ops:[t],delayedCallbacks:[]}}function T4(t){var r=t.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<t.ops.length;a++){var c=t.ops[a];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(s<r.length)}function k4(t,r){var s=t.ownsGroup;if(s)try{T4(s)}finally{In=null,r(s)}}var Ho=null;function wt(t,r){var s=Tn(t,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),c;In?c=In.delayedCallbacks:Ho?c=Ho:(c=Ho=[],setTimeout(O4,0));for(var h=function(p){c.push(function(){return s[p].apply(null,a)})},f=0;f<s.length;++f)h(f)}}function O4(){var t=Ho;Ho=null;for(var r=0;r<t.length;++r)t[r]()}function l0(t,r,s,a){for(var c=0;c<r.changes.length;c++){var h=r.changes[c];h=="text"?E4(t,r):h=="gutter"?u0(t,r,s,a):h=="class"?u1(t,r):h=="widget"&&_4(t,r,a)}r.changes=null}function Ro(t){return t.node==t.text&&(t.node=x("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),b&&m<8&&(t.node.style.zIndex=2)),t.node}function $4(t,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=Ro(r);r.background=a.insertBefore(x("div",null,s),a.firstChild),t.display.input.setUneditable(r.background)}}function c0(t,r){var s=t.display.externalMeasured;return s&&s.line==r.line?(t.display.externalMeasured=null,r.measure=s.measure,s.built):o0(t,r)}function E4(t,r){var s=r.text.className,a=c0(t,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,u1(t,r)):s&&(r.text.className=s)}function u1(t,r){$4(t,r),r.line.wrapClass?Ro(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function u0(t,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var c=Ro(r);r.gutterBackground=x("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),t.display.input.setUneditable(r.gutterBackground),c.insertBefore(r.gutterBackground,r.text)}var h=r.line.gutterMarkers;if(t.options.lineNumbers||h){var f=Ro(r),p=r.gutter=x("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(p.setAttribute("aria-hidden","true"),t.display.input.setUneditable(p),f.insertBefore(p,r.text),r.line.gutterClass&&(p.className+=" "+r.line.gutterClass),t.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(r.lineNumber=p.appendChild(x("div",Po(t.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),h)for(var g=0;g<t.display.gutterSpecs.length;++g){var y=t.display.gutterSpecs[g].className,z=h.hasOwnProperty(y)&&h[y];z&&p.appendChild(x("div",[z],"CodeMirror-gutter-elt","left: "+a.gutterLeft[y]+"px; width: "+a.gutterWidth[y]+"px"))}}}function _4(t,r,s){r.alignable&&(r.alignable=null);for(var a=ie("CodeMirror-linewidget"),c=r.node.firstChild,h=void 0;c;c=h)h=c.nextSibling,a.test(c.className)&&r.node.removeChild(c);d0(t,r,s)}function A4(t,r,s,a){var c=c0(t,r);return r.text=r.node=c.pre,c.bgClass&&(r.bgClass=c.bgClass),c.textClass&&(r.textClass=c.textClass),u1(t,r),u0(t,r,s,a),d0(t,r,a),r.node}function d0(t,r,s){if(h0(t,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)h0(t,r.rest[a],r,s,!1)}function h0(t,r,s,a,c){if(r.widgets)for(var h=Ro(s),f=0,p=r.widgets;f<p.length;++f){var g=p[f],y=x("div",[g.node],"CodeMirror-linewidget"+(g.className?" "+g.className:""));g.handleMouseEvents||y.setAttribute("cm-ignore-events","true"),I4(g,y,s,a),t.display.input.setUneditable(y),c&&g.above?h.insertBefore(y,s.gutter||s.text):h.appendChild(y),wt(g,"redraw")}}function I4(t,r,s,a){if(t.noHScroll){(s.alignable||(s.alignable=[])).push(r);var c=a.wrapperWidth;r.style.left=a.fixedPos+"px",t.coverGutter||(c-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=c+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function Fo(t){if(t.height!=null)return t.height;var r=t.doc.cm;if(!r)return 0;if(!ne(document.body,t.node)){var s="position: relative;";t.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),O(r.display.measure,x("div",[t.node],null,s))}return t.height=t.node.parentNode.offsetHeight}function ai(t,r){for(var s=Ci(r);s!=t.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==t.sizer&&s!=t.mover)return!0}function as(t){return t.lineSpace.offsetTop}function d1(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function f0(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=O(t.measure,x("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(t.cachedPaddingH=a),a}function Ur(t){return ve-t.display.nativeBarWidth}function Gi(t){return t.display.scroller.clientWidth-Ur(t)-t.display.barWidth}function h1(t){return t.display.scroller.clientHeight-Ur(t)-t.display.barHeight}function P4(t,r,s){var a=t.options.lineWrapping,c=a&&Gi(t);if(!r.measure.heights||a&&r.measure.width!=c){var h=r.measure.heights=[];if(a){r.measure.width=c;for(var f=r.text.firstChild.getClientRects(),p=0;p<f.length-1;p++){var g=f[p],y=f[p+1];Math.abs(g.bottom-y.bottom)>2&&h.push((g.bottom+y.top)/2-s.top)}}h.push(s.bottom-s.top)}}function p0(t,r,s){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var a=0;a<t.rest.length;a++)if(t.rest[a]==r)return{map:t.measure.maps[a],cache:t.measure.caches[a]};for(var c=0;c<t.rest.length;c++)if(je(t.rest[c])>s)return{map:t.measure.maps[c],cache:t.measure.caches[c],before:!0}}function D4(t,r){r=Wr(r);var s=je(r),a=t.display.externalMeasured=new s0(t.doc,r,s);a.lineN=s;var c=a.built=o0(t,a);return a.text=c.pre,O(t.display.lineMeasure,c.pre),a}function g0(t,r,s,a){return jr(t,Pn(t,r),s,a)}function f1(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[Yi(t,r)];var s=t.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Pn(t,r){var s=je(r),a=f1(t,s);a&&!a.text?a=null:a&&a.changes&&(l0(t,a,s,m1(t)),t.curOp.forceUpdate=!0),a||(a=D4(t,r));var c=p0(a,r,s);return{line:r,view:a,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function jr(t,r,s,a,c){r.before&&(s=-1);var h=s+(a||""),f;return r.cache.hasOwnProperty(h)?f=r.cache[h]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(P4(t,r.view,r.rect),r.hasHeights=!0),f=H4(t,r,s,a),f.bogus||(r.cache[h]=f)),{left:f.left,right:f.right,top:c?f.rtop:f.top,bottom:c?f.rbottom:f.bottom}}var v0={left:0,right:0,top:0,bottom:0};function b0(t,r,s){for(var a,c,h,f,p,g,y=0;y<t.length;y+=3)if(p=t[y],g=t[y+1],r<p?(c=0,h=1,f="left"):r<g?(c=r-p,h=c+1):(y==t.length-3||r==g&&t[y+3]>r)&&(h=g-p,c=h-1,r>=g&&(f="right")),c!=null){if(a=t[y+2],p==g&&s==(a.insertLeft?"left":"right")&&(f=s),s=="left"&&c==0)for(;y&&t[y-2]==t[y-3]&&t[y-1].insertLeft;)a=t[(y-=3)+2],f="left";if(s=="right"&&c==g-p)for(;y<t.length-3&&t[y+3]==t[y+4]&&!t[y+5].insertLeft;)a=t[(y+=3)+2],f="right";break}return{node:a,start:c,end:h,collapse:f,coverStart:p,coverEnd:g}}function N4(t,r){var s=v0;if(r=="left")for(var a=0;a<t.length&&(s=t[a]).left==s.right;a++);else for(var c=t.length-1;c>=0&&(s=t[c]).left==s.right;c--);return s}function H4(t,r,s,a){var c=b0(r.map,s,a),h=c.node,f=c.start,p=c.end,g=c.collapse,y;if(h.nodeType==3){for(var z=0;z<4;z++){for(;f&&Ne(r.line.text.charAt(c.coverStart+f));)--f;for(;c.coverStart+p<c.coverEnd&&Ne(r.line.text.charAt(c.coverStart+p));)++p;if(b&&m<9&&f==0&&p==c.coverEnd-c.coverStart?y=h.parentNode.getBoundingClientRect():y=N4(U(h,f,p).getClientRects(),a),y.left||y.right||f==0)break;p=f,f=f-1,g="right"}b&&m<11&&(y=R4(t.display.measure,y))}else{f>0&&(g=a="right");var S;t.options.lineWrapping&&(S=h.getClientRects()).length>1?y=S[a=="right"?S.length-1:0]:y=h.getBoundingClientRect()}if(b&&m<9&&!f&&(!y||!y.left&&!y.right)){var P=h.parentNode.getClientRects()[0];P?y={left:P.left,right:P.left+Nn(t.display),top:P.top,bottom:P.bottom}:y=v0}for(var A=y.top-r.rect.top,W=y.bottom-r.rect.top,q=(A+W)/2,te=r.view.measure.heights,ae=0;ae<te.length-1&&!(q<te[ae]);ae++);var he=ae?te[ae-1]:0,se=te[ae],pe={left:(g=="right"?y.right:y.left)-r.rect.left,right:(g=="left"?y.left:y.right)-r.rect.left,top:he,bottom:se};return!y.left&&!y.right&&(pe.bogus=!0),t.options.singleCursorHeightPerLine||(pe.rtop=A,pe.rbottom=W),pe}function R4(t,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wi(t))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function m0(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var r=0;r<t.rest.length;r++)t.measure.caches[r]={}}function y0(t){t.display.externalMeasure=null,V(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)m0(t.display.view[r])}function Bo(t){y0(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function C0(){return T&&D?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function w0(){return T&&D?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function p1(t){var r=0;if(t.widgets)for(var s=0;s<t.widgets.length;++s)t.widgets[s].above&&(r+=Fo(t.widgets[s]));return r}function ss(t,r,s,a,c){if(!c){var h=p1(r);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var f=oi(r);if(a=="local"?f+=as(t.display):f-=t.display.viewOffset,a=="page"||a=="window"){var p=t.display.lineSpace.getBoundingClientRect();f+=p.top+(a=="window"?0:w0());var g=p.left+(a=="window"?0:C0());s.left+=g,s.right+=g}return s.top+=f,s.bottom+=f,s}function x0(t,r,s){if(s=="div")return r;var a=r.left,c=r.top;if(s=="page")a-=C0(),c-=w0();else if(s=="local"||!s){var h=t.display.sizer.getBoundingClientRect();a+=h.left,c+=h.top}var f=t.display.lineSpace.getBoundingClientRect();return{left:a-f.left,top:c-f.top}}function ls(t,r,s,a,c){return a||(a=be(t.doc,r.line)),ss(t,a,g0(t,a,r.ch,c),s)}function xr(t,r,s,a,c,h){a=a||be(t.doc,r.line),c||(c=Pn(t,a));function f(W,q){var te=jr(t,c,W,q?"right":"left",h);return q?te.left=te.right:te.right=te.left,ss(t,a,te,s)}var p=Kt(a,t.doc.direction),g=r.ch,y=r.sticky;if(g>=a.text.length?(g=a.text.length,y="before"):g<=0&&(g=0,y="after"),!p)return f(y=="before"?g-1:g,y=="before");function z(W,q,te){var ae=p[q],he=ae.level==1;return f(te?W-1:W,he!=te)}var S=at(p,g,y),P=nr,A=z(g,S,y=="before");return P!=null&&(A.other=z(g,P,y!="before")),A}function z0(t,r){var s=0;r=de(t.doc,r),t.options.lineWrapping||(s=Nn(t.display)*r.ch);var a=be(t.doc,r.line),c=oi(a)+as(t.display);return{left:s,right:s,top:c,bottom:c+a.height}}function g1(t,r,s,a,c){var h=Q(t,r,s);return h.xRel=c,a&&(h.outside=a),h}function v1(t,r,s){var a=t.doc;if(s+=t.display.viewOffset,s<0)return g1(a.first,0,null,-1,-1);var c=Vr(a,s),h=a.first+a.size-1;if(c>h)return g1(a.first+a.size-1,be(a,h).text.length,null,1,1);r<0&&(r=0);for(var f=be(a,c);;){var p=F4(t,f,c,r,s),g=p4(f,p.ch+(p.xRel>0||p.outside>0?1:0));if(!g)return p;var y=g.find(1);if(y.line==c)return y;f=be(a,c=y.line)}}function L0(t,r,s,a){a-=p1(r);var c=r.text.length,h=Hr(function(f){return jr(t,s,f-1).bottom<=a},c,0);return c=Hr(function(f){return jr(t,s,f).top>a},h,c),{begin:h,end:c}}function S0(t,r,s,a){s||(s=Pn(t,r));var c=ss(t,r,jr(t,s,a),"line").top;return L0(t,r,s,c)}function b1(t,r,s,a){return t.bottom<=s?!1:t.top>s?!0:(a?t.left:t.right)>r}function F4(t,r,s,a,c){c-=oi(r);var h=Pn(t,r),f=p1(r),p=0,g=r.text.length,y=!0,z=Kt(r,t.doc.direction);if(z){var S=(t.options.lineWrapping?V4:B4)(t,r,s,h,z,a,c);y=S.level!=1,p=y?S.from:S.to-1,g=y?S.to:S.from-1}var P=null,A=null,W=Hr(function(Le){var ze=jr(t,h,Le);return ze.top+=f,ze.bottom+=f,b1(ze,a,c,!1)?(ze.top<=c&&ze.left<=a&&(P=Le,A=ze),!0):!1},p,g),q,te,ae=!1;if(A){var he=a-A.left<A.right-a,se=he==y;W=P+(se?0:1),te=se?"after":"before",q=he?A.left:A.right}else{!y&&(W==g||W==p)&&W++,te=W==0?"after":W==r.text.length?"before":jr(t,h,W-(y?1:0)).bottom+f<=c==y?"after":"before";var pe=xr(t,Q(s,W,te),"line",r,h);q=pe.left,ae=c<pe.top?-1:c>=pe.bottom?1:0}return W=Dt(r.text,W,1),g1(s,W,te,ae,a-q)}function B4(t,r,s,a,c,h,f){var p=Hr(function(S){var P=c[S],A=P.level!=1;return b1(xr(t,Q(s,A?P.to:P.from,A?"before":"after"),"line",r,a),h,f,!0)},0,c.length-1),g=c[p];if(p>0){var y=g.level!=1,z=xr(t,Q(s,y?g.from:g.to,y?"after":"before"),"line",r,a);b1(z,h,f,!0)&&z.top>f&&(g=c[p-1])}return g}function V4(t,r,s,a,c,h,f){var p=L0(t,r,a,f),g=p.begin,y=p.end;/\s/.test(r.text.charAt(y-1))&&y--;for(var z=null,S=null,P=0;P<c.length;P++){var A=c[P];if(!(A.from>=y||A.to<=g)){var W=A.level!=1,q=jr(t,a,W?Math.min(y,A.to)-1:Math.max(g,A.from)).right,te=q<h?h-q+1e9:q-h;(!z||S>te)&&(z=A,S=te)}}return z||(z=c[c.length-1]),z.from<g&&(z={from:g,to:z.to,level:z.level}),z.to>y&&(z={from:z.from,to:y,level:z.level}),z}var qi;function Dn(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(qi==null){qi=x("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)qi.appendChild(document.createTextNode("x")),qi.appendChild(x("br"));qi.appendChild(document.createTextNode("x"))}O(t.measure,qi);var s=qi.offsetHeight/50;return s>3&&(t.cachedTextHeight=s),V(t.measure),s||1}function Nn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var r=x("span","xxxxxxxxxx"),s=x("pre",[r],"CodeMirror-line-like");O(t.measure,s);var a=r.getBoundingClientRect(),c=(a.right-a.left)/10;return c>2&&(t.cachedCharWidth=c),c||10}function m1(t){for(var r=t.display,s={},a={},c=r.gutters.clientLeft,h=r.gutters.firstChild,f=0;h;h=h.nextSibling,++f){var p=t.display.gutterSpecs[f].className;s[p]=h.offsetLeft+h.clientLeft+c,a[p]=h.clientWidth}return{fixedPos:y1(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function y1(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function M0(t){var r=Dn(t.display),s=t.options.lineWrapping,a=s&&Math.max(5,t.display.scroller.clientWidth/Nn(t.display)-3);return function(c){if(xi(t.doc,c))return 0;var h=0;if(c.widgets)for(var f=0;f<c.widgets.length;f++)c.widgets[f].height&&(h+=c.widgets[f].height);return s?h+(Math.ceil(c.text.length/a)||1)*r:h+r}}function C1(t){var r=t.doc,s=M0(t);r.iter(function(a){var c=s(a);c!=a.height&&Yt(a,c)})}function Ki(t,r,s,a){var c=t.display;if(!s&&Ci(r).getAttribute("cm-not-content")=="true")return null;var h,f,p=c.lineSpace.getBoundingClientRect();try{h=r.clientX-p.left,f=r.clientY-p.top}catch{return null}var g=v1(t,h,f),y;if(a&&g.xRel>0&&(y=be(t.doc,g.line).text).length==g.ch){var z=Xe(y,y.length,t.options.tabSize)-y.length;g=Q(g.line,Math.max(0,Math.round((h-f0(t.display).left)/Nn(t.display))-z))}return g}function Yi(t,r){if(r>=t.display.viewTo||(r-=t.display.viewFrom,r<0))return null;for(var s=t.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function Vt(t,r,s,a){r==null&&(r=t.doc.first),s==null&&(s=t.doc.first+t.doc.size),a||(a=0);var c=t.display;if(a&&s<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>r)&&(c.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=c.viewTo)ni&&s1(t.doc,r)<c.viewTo&&Li(t);else if(s<=c.viewFrom)ni&&i0(t.doc,s+a)>c.viewFrom?Li(t):(c.viewFrom+=a,c.viewTo+=a);else if(r<=c.viewFrom&&s>=c.viewTo)Li(t);else if(r<=c.viewFrom){var h=cs(t,s,s+a,1);h?(c.view=c.view.slice(h.index),c.viewFrom=h.lineN,c.viewTo+=a):Li(t)}else if(s>=c.viewTo){var f=cs(t,r,r,-1);f?(c.view=c.view.slice(0,f.index),c.viewTo=f.lineN):Li(t)}else{var p=cs(t,r,r,-1),g=cs(t,s,s+a,1);p&&g?(c.view=c.view.slice(0,p.index).concat(os(t,p.lineN,g.lineN)).concat(c.view.slice(g.index)),c.viewTo+=a):Li(t)}var y=c.externalMeasured;y&&(s<y.lineN?y.lineN+=a:r<y.lineN+y.size&&(c.externalMeasured=null))}function zi(t,r,s){t.curOp.viewChanged=!0;var a=t.display,c=t.display.externalMeasured;if(c&&r>=c.lineN&&r<c.lineN+c.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var h=a.view[Yi(t,r)];if(h.node!=null){var f=h.changes||(h.changes=[]);ge(f,s)==-1&&f.push(s)}}}function Li(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function cs(t,r,s,a){var c=Yi(t,r),h,f=t.display.view;if(!ni||s==t.doc.first+t.doc.size)return{index:c,lineN:s};for(var p=t.display.viewFrom,g=0;g<c;g++)p+=f[g].size;if(p!=r){if(a>0){if(c==f.length-1)return null;h=p+f[c].size-r,c++}else h=p-r;r+=h,s+=h}for(;s1(t.doc,s)!=s;){if(c==(a<0?0:f.length-1))return null;s+=a*f[c-(a<0?1:0)].size,c+=a}return{index:c,lineN:s}}function Z4(t,r,s){var a=t.display,c=a.view;c.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=os(t,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=os(t,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(Yi(t,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(os(t,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,Yi(t,s)))),a.viewTo=s}function T0(t){for(var r=t.display.view,s=0,a=0;a<r.length;a++){var c=r[a];!c.hidden&&(!c.node||c.changes)&&++s}return s}function Vo(t){t.display.input.showSelection(t.display.input.prepareSelection())}function k0(t,r){r===void 0&&(r=!0);for(var s=t.doc,a={},c=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),f=0;f<s.sel.ranges.length;f++)if(!(!r&&f==s.sel.primIndex)){var p=s.sel.ranges[f];if(!(p.from().line>=t.display.viewTo||p.to().line<t.display.viewFrom)){var g=p.empty();(g||t.options.showCursorWhenSelecting)&&O0(t,p.head,c),g||W4(t,p,h)}}return a}function O0(t,r,s){var a=xr(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),c=s.appendChild(x("div"," ","CodeMirror-cursor"));if(c.style.left=a.left+"px",c.style.top=a.top+"px",c.style.height=Math.max(0,a.bottom-a.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var h=ls(t,r,"div",null,null);c.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var f=s.appendChild(x("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));f.style.display="",f.style.left=a.other.left+"px",f.style.top=a.other.top+"px",f.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function us(t,r){return t.top-r.top||t.left-r.left}function W4(t,r,s){var a=t.display,c=t.doc,h=document.createDocumentFragment(),f=f0(t.display),p=f.left,g=Math.max(a.sizerWidth,Gi(t)-a.sizer.offsetLeft)-f.right,y=c.direction=="ltr";function z(se,pe,Le,ze){pe<0&&(pe=0),pe=Math.round(pe),ze=Math.round(ze),h.appendChild(x("div",null,"CodeMirror-selected","position: absolute; left: "+se+`px;
2994
2994
  top: `+pe+"px; width: "+(Le==null?g-se:Le)+`px;
2995
- height: `+(ze-pe)+"px"))}function S(se,pe,Le){var ze=be(c,se),Pe=ze.text.length,Je,Lt;function nt(pt,Ut){return ls(t,Q(se,pt),"div",ze,Ut)}function Jt(pt,Ut,kt){var mt=L0(t,ze,null,pt),gt=Ut=="ltr"==(kt=="after")?"left":"right",lt=kt=="after"?mt.begin:mt.end-(/\s/.test(ze.text.charAt(mt.end-1))?2:1);return nt(lt,gt)[gt]}var Wt=Kt(ze,c.direction);return r1(Wt,pe||0,Le==null?Pe:Le,function(pt,Ut,kt,mt){var gt=kt=="ltr",lt=nt(pt,gt?"left":"right"),jt=nt(Ut-1,gt?"right":"left"),Yn=pe==null&&pt==0,$i=Le==null&&Ut==Pe,Pt=mt==0,Gr=!Wt||mt==Wt.length-1;if(jt.top-lt.top<=3){var St=(y?Yn:$i)&&Pt,j1=(y?$i:Yn)&&Gr,li=St?p:(gt?lt:jt).left,tn=j1?g:(gt?jt:lt).right;z(li,lt.top,tn-li,lt.bottom)}else{var rn,Ht,Xn,G1;gt?(rn=y&&Yn&&Pt?p:lt.left,Ht=y?g:Jt(pt,kt,"before"),Xn=y?p:Jt(Ut,kt,"after"),G1=y&&$i&&Gr?g:jt.right):(rn=y?Jt(pt,kt,"before"):p,Ht=!y&&Yn&&Pt?g:lt.right,Xn=!y&&$i&&Gr?p:jt.left,G1=y?Jt(Ut,kt,"after"):g),z(rn,lt.top,Ht-rn,lt.bottom),lt.bottom<jt.top&&z(p,lt.bottom,null,jt.top),z(Xn,jt.top,G1-Xn,jt.bottom)}(!Je||us(lt,Je)<0)&&(Je=lt),us(jt,Je)<0&&(Je=jt),(!Lt||us(lt,Lt)<0)&&(Lt=lt),us(jt,Lt)<0&&(Lt=jt)}),{start:Je,end:Lt}}var P=r.from(),I=r.to();if(P.line==I.line)S(P.line,P.ch,I.ch);else{var W=be(c,P.line),q=be(c,I.line),te=Wr(W)==Wr(q),ae=S(P.line,P.ch,te?W.text.length+1:null).end,he=S(I.line,te?0:null,I.ch).start;te&&(ae.top<he.top-2?(z(ae.right,ae.top,null,ae.bottom),z(p,he.top,he.left,he.bottom)):z(ae.right,ae.top,he.left-ae.right,ae.bottom)),ae.bottom<he.top&&z(p,ae.bottom,null,he.top)}s.appendChild(h)}function w1(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval(function(){t.hasFocus()||Hn(t),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function O0(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||z1(t))}function x1(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Hn(t))},100)}function z1(t,r){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Oe(t,"focus",t,r),t.state.focused=!0,ke(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),M&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),w1(t))}function Hn(t,r){t.state.delayingBlurEvent||(t.state.focused&&(Oe(t,"blur",t,r),t.state.focused=!1,X(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function ds(t){for(var r=t.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var c=r.view[a],h=t.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(b&&m<8){var g=c.node.offsetTop+c.node.offsetHeight;f=g-s,s=g}else{var y=c.node.getBoundingClientRect();f=y.bottom-y.top,!h&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-y.left-1)}var z=c.line.height-f;if((z>.005||z<-.005)&&(Yt(c.line,f),$0(c.line),c.rest))for(var S=0;S<c.rest.length;S++)$0(c.rest[S]);if(p>t.display.sizerWidth){var P=Math.ceil(p/Nn(t.display));P>t.display.maxLineLength&&(t.display.maxLineLength=P,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}}function $0(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var s=t.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function hs(t,r,s){var a=s&&s.top!=null?Math.max(0,s.top):t.scroller.scrollTop;a=Math.floor(a-as(t));var c=s&&s.bottom!=null?s.bottom:a+t.wrapper.clientHeight,h=Vr(r,a),f=Vr(r,c);if(s&&s.ensure){var p=s.ensure.from.line,g=s.ensure.to.line;p<h?(h=p,f=Vr(r,oi(be(r,p))+t.wrapper.clientHeight)):Math.min(g,r.lastLine())>=f&&(h=Vr(r,oi(be(r,g))-t.wrapper.clientHeight),f=g)}return{from:h,to:Math.max(f,h+1)}}function B4(t,r){if(!ft(t,"scrollCursorIntoView")){var s=t.display,a=s.sizer.getBoundingClientRect(),c=null;if(r.top+a.top<0?c=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!oe){var h=x("div","​",null,`position: absolute;
2995
+ height: `+(ze-pe)+"px"))}function S(se,pe,Le){var ze=be(c,se),Pe=ze.text.length,Je,Lt;function nt(pt,Ut){return ls(t,Q(se,pt),"div",ze,Ut)}function Jt(pt,Ut,kt){var mt=S0(t,ze,null,pt),gt=Ut=="ltr"==(kt=="after")?"left":"right",lt=kt=="after"?mt.begin:mt.end-(/\s/.test(ze.text.charAt(mt.end-1))?2:1);return nt(lt,gt)[gt]}var Wt=Kt(ze,c.direction);return r1(Wt,pe||0,Le==null?Pe:Le,function(pt,Ut,kt,mt){var gt=kt=="ltr",lt=nt(pt,gt?"left":"right"),jt=nt(Ut-1,gt?"right":"left"),Yn=pe==null&&pt==0,$i=Le==null&&Ut==Pe,Pt=mt==0,Gr=!Wt||mt==Wt.length-1;if(jt.top-lt.top<=3){var St=(y?Yn:$i)&&Pt,j1=(y?$i:Yn)&&Gr,li=St?p:(gt?lt:jt).left,tn=j1?g:(gt?jt:lt).right;z(li,lt.top,tn-li,lt.bottom)}else{var rn,Ht,Xn,G1;gt?(rn=y&&Yn&&Pt?p:lt.left,Ht=y?g:Jt(pt,kt,"before"),Xn=y?p:Jt(Ut,kt,"after"),G1=y&&$i&&Gr?g:jt.right):(rn=y?Jt(pt,kt,"before"):p,Ht=!y&&Yn&&Pt?g:lt.right,Xn=!y&&$i&&Gr?p:jt.left,G1=y?Jt(Ut,kt,"after"):g),z(rn,lt.top,Ht-rn,lt.bottom),lt.bottom<jt.top&&z(p,lt.bottom,null,jt.top),z(Xn,jt.top,G1-Xn,jt.bottom)}(!Je||us(lt,Je)<0)&&(Je=lt),us(jt,Je)<0&&(Je=jt),(!Lt||us(lt,Lt)<0)&&(Lt=lt),us(jt,Lt)<0&&(Lt=jt)}),{start:Je,end:Lt}}var P=r.from(),A=r.to();if(P.line==A.line)S(P.line,P.ch,A.ch);else{var W=be(c,P.line),q=be(c,A.line),te=Wr(W)==Wr(q),ae=S(P.line,P.ch,te?W.text.length+1:null).end,he=S(A.line,te?0:null,A.ch).start;te&&(ae.top<he.top-2?(z(ae.right,ae.top,null,ae.bottom),z(p,he.top,he.left,he.bottom)):z(ae.right,ae.top,he.left-ae.right,ae.bottom)),ae.bottom<he.top&&z(p,ae.bottom,null,he.top)}s.appendChild(h)}function w1(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval(function(){t.hasFocus()||Hn(t),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function $0(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||z1(t))}function x1(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Hn(t))},100)}function z1(t,r){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Oe(t,"focus",t,r),t.state.focused=!0,ke(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),M&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),w1(t))}function Hn(t,r){t.state.delayingBlurEvent||(t.state.focused&&(Oe(t,"blur",t,r),t.state.focused=!1,J(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function ds(t){for(var r=t.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var c=r.view[a],h=t.options.lineWrapping,f=void 0,p=0;if(!c.hidden){if(b&&m<8){var g=c.node.offsetTop+c.node.offsetHeight;f=g-s,s=g}else{var y=c.node.getBoundingClientRect();f=y.bottom-y.top,!h&&c.text.firstChild&&(p=c.text.firstChild.getBoundingClientRect().right-y.left-1)}var z=c.line.height-f;if((z>.005||z<-.005)&&(Yt(c.line,f),E0(c.line),c.rest))for(var S=0;S<c.rest.length;S++)E0(c.rest[S]);if(p>t.display.sizerWidth){var P=Math.ceil(p/Nn(t.display));P>t.display.maxLineLength&&(t.display.maxLineLength=P,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}}function E0(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var s=t.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function hs(t,r,s){var a=s&&s.top!=null?Math.max(0,s.top):t.scroller.scrollTop;a=Math.floor(a-as(t));var c=s&&s.bottom!=null?s.bottom:a+t.wrapper.clientHeight,h=Vr(r,a),f=Vr(r,c);if(s&&s.ensure){var p=s.ensure.from.line,g=s.ensure.to.line;p<h?(h=p,f=Vr(r,oi(be(r,p))+t.wrapper.clientHeight)):Math.min(g,r.lastLine())>=f&&(h=Vr(r,oi(be(r,g))-t.wrapper.clientHeight),f=g)}return{from:h,to:Math.max(f,h+1)}}function U4(t,r){if(!ft(t,"scrollCursorIntoView")){var s=t.display,a=s.sizer.getBoundingClientRect(),c=null;if(r.top+a.top<0?c=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!oe){var h=x("div","​",null,`position: absolute;
2996
2996
  top: `+(r.top-s.viewOffset-as(t.display))+`px;
2997
2997
  height: `+(r.bottom-r.top+Ur(t)+s.barHeight)+`px;
2998
- left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(h),h.scrollIntoView(c),t.display.lineSpace.removeChild(h)}}}function V4(t,r,s,a){a==null&&(a=0);var c;!t.options.lineWrapping&&r==s&&(s=r.sticky=="before"?Q(r.line,r.ch+1,"before"):r,r=r.ch?Q(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=xr(t,r),g=!s||s==r?p:xr(t,s);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-a,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+a};var y=L1(t,c),z=t.doc.scrollTop,S=t.doc.scrollLeft;if(y.scrollTop!=null&&(Zo(t,y.scrollTop),Math.abs(t.doc.scrollTop-z)>1&&(f=!0)),y.scrollLeft!=null&&(Xi(t,y.scrollLeft),Math.abs(t.doc.scrollLeft-S)>1&&(f=!0)),!f)break}return c}function Z4(t,r){var s=L1(t,r);s.scrollTop!=null&&Zo(t,s.scrollTop),s.scrollLeft!=null&&Xi(t,s.scrollLeft)}function L1(t,r){var s=t.display,a=Dn(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:s.scroller.scrollTop,h=h1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+d1(s),g=r.top<a,y=r.bottom>p-a;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var z=Math.min(r.top,(y?p:r.bottom)-h);z!=c&&(f.scrollTop=z)}var S=t.options.fixedGutter?0:s.gutters.offsetWidth,P=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:s.scroller.scrollLeft-S,I=Gi(t)-s.gutters.offsetWidth,W=r.right-r.left>I;return W&&(r.right=r.left+I),r.left<10?f.scrollLeft=0:r.left<P?f.scrollLeft=Math.max(0,r.left+S-(W?0:10)):r.right>I+P-3&&(f.scrollLeft=r.right+(W?0:10)-I),f}function S1(t,r){r!=null&&(fs(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Rn(t){fs(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Vo(t,r,s){(r!=null||s!=null)&&fs(t),r!=null&&(t.curOp.scrollLeft=r),s!=null&&(t.curOp.scrollTop=s)}function W4(t,r){fs(t),t.curOp.scrollToPos=r}function fs(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var s=x0(t,r.from),a=x0(t,r.to);E0(t,s,a,r.margin)}}function E0(t,r,s,a){var c=L1(t,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});Vo(t,c.scrollLeft,c.scrollTop)}function Zo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||T1(t,{top:r}),_0(t,r,!0),l&&T1(t),jo(t,100))}function _0(t,r,s){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!s)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Xi(t,r,s,a){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((s?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!a)&&(t.doc.scrollLeft=r,N0(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Wo(t){var r=t.display,s=r.gutters.offsetWidth,a=Math.round(t.doc.height+d1(t.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:t.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+Ur(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Ji=function(t,r,s){this.cm=s;var a=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=c.tabIndex=-1,t(a),t(c),Se(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Se(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ji.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,s=t.scrollHeight>t.clientHeight+1,a=t.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var c=t.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},Ji.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ji.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ji.prototype.zeroWidthHack=function(){var t=B&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Be,this.disableVert=new Be},Ji.prototype.enableZeroWidthBar=function(t,r,s){t.style.pointerEvents="auto";function a(){var c=t.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);h!=t?t.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},Ji.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Uo=function(){};Uo.prototype.update=function(){return{bottom:0,right:0}},Uo.prototype.setScrollLeft=function(){},Uo.prototype.setScrollTop=function(){},Uo.prototype.clear=function(){};function Fn(t,r){r||(r=Wo(t));var s=t.display.barWidth,a=t.display.barHeight;I0(t,r);for(var c=0;c<4&&s!=t.display.barWidth||a!=t.display.barHeight;c++)s!=t.display.barWidth&&t.options.lineWrapping&&ds(t),I0(t,Wo(t)),s=t.display.barWidth,a=t.display.barHeight}function I0(t,r){var s=t.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var A0={native:Ji,null:Uo};function P0(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&X(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new A0[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Se(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Xi(t,r):Zo(t,r)},t),t.display.scrollbars.addClass&&ke(t.display.wrapper,t.display.scrollbars.addClass)}var U4=0;function Qi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++U4,markArrays:null},x4(t.curOp)}function en(t){var r=t.curOp;r&&L4(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;j4(s)})}function j4(t){for(var r=t.ops,s=0;s<r.length;s++)G4(r[s]);for(var a=0;a<r.length;a++)q4(r[a]);for(var c=0;c<r.length;c++)K4(r[c]);for(var h=0;h<r.length;h++)Y4(r[h]);for(var f=0;f<r.length;f++)X4(r[f])}function G4(t){var r=t.cm,s=r.display;Q4(r),t.updateMaxLine&&c1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<s.viewFrom||t.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new ps(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function q4(t){t.updatedDisplay=t.mustUpdate&&M1(t.cm,t.update)}function K4(t){var r=t.cm,s=r.display;t.updatedDisplay&&ds(r),t.barMeasure=Wo(r),s.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=p0(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+t.adjustWidthTo+Ur(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+t.adjustWidthTo-Gi(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=s.input.prepareSelection())}function Y4(t){var r=t.cm;t.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<r.doc.scrollLeft&&Xi(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=t.focus&&t.focus==ye();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,s),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Fn(r,t.barMeasure),t.updatedDisplay&&O1(r,t.barMeasure),t.selectionChanged&&w1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),s&&O0(t.cm)}function X4(t){var r=t.cm,s=r.display,a=r.doc;if(t.updatedDisplay&&D0(r,t.update),s.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),t.scrollTop!=null&&_0(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Xi(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=V4(r,de(a,t.scrollToPos.from),de(a,t.scrollToPos.to),t.scrollToPos.margin);B4(r,c)}var h=t.maybeHiddenMarkers,f=t.maybeUnhiddenMarkers;if(h)for(var p=0;p<h.length;++p)h[p].lines.length||Oe(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&Oe(f[g],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&Oe(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function Xt(t,r){if(t.curOp)return r();Qi(t);try{return r()}finally{en(t)}}function xt(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Qi(t);try{return r.apply(t,arguments)}finally{en(t)}}}function Nt(t){return function(){if(this.curOp)return t.apply(this,arguments);Qi(this);try{return t.apply(this,arguments)}finally{en(this)}}}function zt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Qi(r);try{return t.apply(this,arguments)}finally{en(r)}}}function jo(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Et(J4,t))}function J4(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var s=+new Date+t.options.workTime,a=Po(t,r.highlightFrontier),c=[];r.iter(a.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(a.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?sr(r.mode,a.state):null,g=Vu(t,h,a,!0);p&&(a.state=p),h.styles=g.styles;var y=h.styleClasses,z=g.classes;z?h.styleClasses=z:y&&(h.styleClasses=null);for(var S=!f||f.length!=h.styles.length||y!=z&&(!y||!z||y.bgClass!=z.bgClass||y.textClass!=z.textClass),P=0;!S&&P<f.length;++P)S=f[P]!=h.styles[P];S&&c.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=t.options.maxHighlightLength&&i1(t,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return jo(t,t.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),c.length&&Xt(t,function(){for(var h=0;h<c.length;h++)zi(t,c[h],"text")})}}var ps=function(t,r,s){var a=t.display;this.viewport=r,this.visible=hs(a,t.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Gi(t),this.force=s,this.dims=m1(t),this.events=[]};ps.prototype.signal=function(t,r){Tt(t,r)&&this.events.push(arguments)},ps.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Oe.apply(null,this.events[t])};function Q4(t){var r=t.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Ur(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Ur(t)+"px",r.scrollbarsClipped=!0)}function e3(t){if(t.hasFocus())return null;var r=ye();if(!r||!ne(t.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ne(t.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function t3(t){if(!(!t||!t.activeElt||t.activeElt==ye())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ne(document.body,t.anchorNode)&&ne(document.body,t.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(t.anchorNode,t.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(t.focusNode,t.focusOffset)}}function M1(t,r){var s=t.display,a=t.doc;if(r.editorIsHidden)return Li(t),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&M0(t)==0)return!1;H0(t)&&(Li(t),r.dims=m1(t));var c=a.first+a.size,h=Math.max(r.visible.from-t.options.viewportMargin,a.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>f&&s.viewTo-f<20&&(f=Math.min(c,s.viewTo)),ni&&(h=s1(t.doc,h),f=r0(t.doc,f));var p=h!=s.viewFrom||f!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;R4(t,h,f),s.viewOffset=oi(be(t.doc,s.viewFrom)),t.display.mover.style.top=s.viewOffset+"px";var g=M0(t);if(!p&&g==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var y=e3(t);return g>4&&(s.lineDiv.style.display="none"),r3(t,s.updateLineNumbers,r.dims),g>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,t3(y),V(s.cursorDiv),V(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,p&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,jo(t,400)),s.updateLineNumbers=null,!0}function D0(t,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!t.options.lineWrapping||r.oldDisplayWidth==Gi(t)){if(s&&s.top!=null&&(s={top:Math.min(t.doc.height+d1(t.display)-h1(t),s.top)}),r.visible=hs(t.display,t.doc,s),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else a&&(r.visible=hs(t.display,t.doc,s));if(!M1(t,r))break;ds(t);var c=Wo(t);Bo(t),Fn(t,c),O1(t,c),r.force=!1}r.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(r.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function T1(t,r){var s=new ps(t,r);if(M1(t,s)){ds(t),D0(t,s);var a=Wo(t);Bo(t),Fn(t,a),O1(t,a),s.finish()}}function r3(t,r,s){var a=t.display,c=t.options.lineNumbers,h=a.lineDiv,f=h.firstChild;function p(W){var q=W.nextSibling;return M&&B&&t.display.currentWheelTarget==W?W.style.display="none":W.parentNode.removeChild(W),q}for(var g=a.view,y=a.viewFrom,z=0;z<g.length;z++){var S=g[z];if(!S.hidden)if(!S.node||S.node.parentNode!=h){var P=O4(t,S,y,s);h.insertBefore(P,f)}else{for(;f!=S.node;)f=p(f);var I=c&&r!=null&&r<=y&&S.lineNumber;S.changes&&(ge(S.changes,"gutter")>-1&&(I=!1),s0(t,S,y,s)),I&&(V(S.lineNumber),S.lineNumber.appendChild(document.createTextNode(Ao(t.options,y)))),f=S.node.nextSibling}y+=S.size}for(;f;)f=p(f)}function k1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",wt(t,"gutterChanged",t)}function O1(t,r){t.display.sizer.style.minHeight=r.docHeight+"px",t.display.heightForcer.style.top=r.docHeight+"px",t.display.gutters.style.height=r.docHeight+t.display.barHeight+Ur(t)+"px"}function N0(t){var r=t.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var a=y1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=a+"px",f=0;f<s.length;f++)if(!s[f].hidden){t.options.fixedGutter&&(s[f].gutter&&(s[f].gutter.style.left=h),s[f].gutterBackground&&(s[f].gutterBackground.style.left=h));var p=s[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=a+c+"px")}}function H0(t){if(!t.options.lineNumbers)return!1;var r=t.doc,s=Ao(t.options,r.first+r.size-1),a=t.display;if(s.length!=a.lineNumChars){var c=a.measure.appendChild(x("div",[x("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-f)+1,a.lineNumWidth=a.lineNumInnerWidth+f,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",k1(t.display),!0}return!1}function $1(t,r){for(var s=[],a=!1,c=0;c<t.length;c++){var h=t[c],f=null;if(typeof h!="string"&&(f=h.style,h=h.className),h=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:h,style:f})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function R0(t){var r=t.gutters,s=t.gutterSpecs;V(r),t.lineGutter=null;for(var a=0;a<s.length;++a){var c=s[a],h=c.className,f=c.style,p=r.appendChild(x("div",null,"CodeMirror-gutter "+h));f&&(p.style.cssText=f),h=="CodeMirror-linenumbers"&&(t.lineGutter=p,p.style.width=(t.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",k1(t)}function Go(t){R0(t.display),Vt(t),N0(t)}function i3(t,r,s,a){var c=this;this.input=s,c.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=w("div",null,"CodeMirror-code"),c.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=x("div",null,"CodeMirror-cursors"),c.measure=x("div",null,"CodeMirror-measure"),c.lineMeasure=x("div",null,"CodeMirror-measure"),c.lineSpace=w("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=w("div",[c.lineSpace],"CodeMirror-lines");c.mover=x("div",[h],null,"position: relative"),c.sizer=x("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=x("div",null,null,"position: absolute; height: "+ve+"px; width: 1px;"),c.gutters=x("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=x("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=x("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),b&&m<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!M&&!(l&&A)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=r.first,c.reportedViewFrom=c.reportedViewTo=r.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=$1(a.gutters,a.lineNumbers),R0(c),s.init(c)}var gs=0,cr=null;b?cr=-.53:l?cr=15:T?cr=-.7:H&&(cr=-1/3);function F0(t){var r=t.wheelDeltaX,s=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),s==null&&t.detail&&t.axis==t.VERTICAL_AXIS?s=t.detail:s==null&&(s=t.wheelDelta),{x:r,y:s}}function n3(t){var r=F0(t);return r.x*=cr,r.y*=cr,r}function B0(t,r){var s=F0(r),a=s.x,c=s.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(a&&p||c&&g){if(c&&B&&M){e:for(var y=r.target,z=h.view;y!=f;y=y.parentNode)for(var S=0;S<z.length;S++)if(z[S].node==y){t.display.currentWheelTarget=y;break e}}if(a&&!l&&!$&&cr!=null){c&&g&&Zo(t,Math.max(0,f.scrollTop+c*cr)),Xi(t,Math.max(0,f.scrollLeft+a*cr)),(!c||c&&g)&&_t(r),h.wheelStartX=null;return}if(c&&cr!=null){var P=c*cr,I=t.doc.scrollTop,W=I+h.wrapper.clientHeight;P<0?I=Math.max(0,I+P-50):W=Math.min(t.doc.height,W+P+50),T1(t,{top:I,bottom:W})}gs<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=a,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var q=f.scrollLeft-h.wheelStartX,te=f.scrollTop-h.wheelStartY,ae=te&&h.wheelDY&&te/h.wheelDY||q&&h.wheelDX&&q/h.wheelDX;h.wheelStartX=h.wheelStartY=null,ae&&(cr=(cr*gs+ae)/(gs+1),++gs)}},200)):(h.wheelDX+=a,h.wheelDY+=c))}}var ur=function(t,r){this.ranges=t,this.primIndex=r};ur.prototype.primary=function(){return this.ranges[this.primIndex]},ur.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=t.ranges[r];if(!k(s.anchor,a.anchor)||!k(s.head,a.head))return!1}return!0},ur.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Ge(G(this.ranges[r].anchor),G(this.ranges[r].head));return new ur(t,this.primIndex)},ur.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ur.prototype.contains=function(t,r){r||(r=t);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(C(r,a.from())>=0&&C(t,a.to())<=0)return s}return-1};var Ge=function(t,r){this.anchor=t,this.head=r};Ge.prototype.from=function(){return $e(this.anchor,this.head)},Ge.prototype.to=function(){return ee(this.anchor,this.head)},Ge.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zr(t,r,s){var a=t&&t.options.selectionsMayTouch,c=r[s];r.sort(function(P,I){return C(P.from(),I.from())}),s=ge(r,c);for(var h=1;h<r.length;h++){var f=r[h],p=r[h-1],g=C(p.to(),f.from());if(a&&!f.empty()?g>0:g>=0){var y=$e(p.from(),f.from()),z=ee(p.to(),f.to()),S=p.empty()?f.from()==f.head:p.from()==p.head;h<=s&&--s,r.splice(--h,2,new Ge(S?z:y,S?y:z))}}return new ur(r,s)}function Si(t,r){return new ur([new Ge(t,r||t)],0)}function Mi(t){return t.text?Q(t.from.line+t.text.length-1,_e(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function V0(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Mi(r);var s=t.line+r.text.length-(r.to.line-r.from.line)-1,a=t.ch;return t.line==r.to.line&&(a+=Mi(r).ch-r.to.ch),Q(s,a)}function E1(t,r){for(var s=[],a=0;a<t.sel.ranges.length;a++){var c=t.sel.ranges[a];s.push(new Ge(V0(c.anchor,r),V0(c.head,r)))}return zr(t.cm,s,t.sel.primIndex)}function Z0(t,r,s){return t.line==r.line?Q(s.line,t.ch-r.ch+s.ch):Q(s.line+(t.line-r.line),t.ch)}function o3(t,r,s){for(var a=[],c=Q(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=Z0(p.from,c,h),y=Z0(Mi(p),c,h);if(c=p.to,h=y,s=="around"){var z=t.sel.ranges[f],S=C(z.head,z.anchor)<0;a[f]=new Ge(S?y:g,S?g:y)}else a[f]=new Ge(g,g)}return new ur(a,t.sel.primIndex)}function _1(t){t.doc.mode=En(t.options,t.doc.modeOption),qo(t)}function qo(t){t.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,jo(t,100),t.state.modeGen++,t.curOp&&Vt(t)}function W0(t,r){return r.from.ch==0&&r.to.ch==0&&_e(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function I1(t,r,s,a){function c(he){return s?s[he]:null}function h(he,se,pe){f4(he,se,pe,a),wt(he,"change",he,r)}function f(he,se){for(var pe=[],Le=he;Le<se;++Le)pe.push(new In(y[Le],c(Le),a));return pe}var p=r.from,g=r.to,y=r.text,z=be(t,p.line),S=be(t,g.line),P=_e(y),I=c(y.length-1),W=g.line-p.line;if(r.full)t.insert(0,f(0,y.length)),t.remove(y.length,t.size-y.length);else if(W0(t,r)){var q=f(0,y.length-1);h(S,S.text,I),W&&t.remove(p.line,W),q.length&&t.insert(p.line,q)}else if(z==S)if(y.length==1)h(z,z.text.slice(0,p.ch)+P+z.text.slice(g.ch),I);else{var te=f(1,y.length-1);te.push(new In(P+z.text.slice(g.ch),I,a)),h(z,z.text.slice(0,p.ch)+y[0],c(0)),t.insert(p.line+1,te)}else if(y.length==1)h(z,z.text.slice(0,p.ch)+y[0]+S.text.slice(g.ch),c(0)),t.remove(p.line+1,W);else{h(z,z.text.slice(0,p.ch)+y[0],c(0)),h(S,P+S.text.slice(g.ch),I);var ae=f(1,y.length-1);W>1&&t.remove(p.line+1,W-1),t.insert(p.line+1,ae)}wt(t,"change",t,r)}function Ti(t,r,s){function a(c,h,f){if(c.linked)for(var p=0;p<c.linked.length;++p){var g=c.linked[p];if(g.doc!=h){var y=f&&g.sharedHist;s&&!y||(r(g.doc,y),a(g.doc,c,y))}}}a(t,null,!0)}function U0(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,C1(t),_1(t),j0(t),t.options.direction=r.direction,t.options.lineWrapping||c1(t),t.options.mode=r.modeOption,Vt(t)}function j0(t){(t.doc.direction=="rtl"?ke:X)(t.display.lineDiv,"CodeMirror-rtl")}function a3(t){Xt(t,function(){j0(t),Vt(t)})}function vs(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function A1(t,r){var s={from:G(r.from),to:Mi(r),text:Br(t,r.from,r.to)};return K0(t,s,r.from.line,r.to.line+1),Ti(t,function(a){return K0(a,s,r.from.line,r.to.line+1)},!0),s}function G0(t){for(;t.length;){var r=_e(t);if(r.ranges)t.pop();else break}}function s3(t,r){if(r)return G0(t.done),_e(t.done);if(t.done.length&&!_e(t.done).ranges)return _e(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),_e(t.done)}function q0(t,r,s,a){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==a||c.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&c.lastModTime>h-(t.cm?t.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(f=s3(c,c.lastOp==a)))p=_e(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Mi(r):f.changes.push(A1(t,r));else{var g=_e(c.done);for((!g||!g.ranges)&&bs(t.sel,c.done),f={changes:[A1(t,r)],generation:c.generation},c.done.push(f);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(s),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=a,c.lastOrigin=c.lastSelOrigin=r.origin,p||Oe(t,"historyAdded")}function l3(t,r,s,a){var c=r.charAt(0);return c=="*"||c=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function c3(t,r,s,a){var c=t.history,h=a&&a.origin;s==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||l3(t,h,_e(c.done),r))?c.done[c.done.length-1]=r:bs(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=s,a&&a.clearRedo!==!1&&G0(c.undone)}function bs(t,r){var s=_e(r);s&&s.ranges&&s.equals(t)||r.push(t)}function K0(t,r,s,a){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,s),Math.min(t.first+t.size,a),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function u3(t){if(!t)return null;for(var r,s=0;s<t.length;++s)t[s].marker.explicitlyCleared?r||(r=t.slice(0,s)):r&&r.push(t[s]);return r?r.length?r:null:t}function d3(t,r){var s=r["spans_"+t.id];if(!s)return null;for(var a=[],c=0;c<r.text.length;++c)a.push(u3(s[c]));return a}function Y0(t,r){var s=d3(t,r),a=o1(t,r);if(!s)return a;if(!a)return s;for(var c=0;c<s.length;++c){var h=s[c],f=a[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],y=0;y<h.length;++y)if(h[y].marker==g.marker)continue e;h.push(g)}else f&&(s[c]=f)}return s}function Bn(t,r,s){for(var a=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){a.push(s?ur.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];a.push({changes:p});for(var g=0;g<f.length;++g){var y=f[g],z=void 0;if(p.push({from:y.from,to:y.to,text:y.text}),r)for(var S in y)(z=S.match(/^spans_(\d+)$/))&&ge(r,Number(z[1]))>-1&&(_e(p)[S]=y[S],delete y[S])}}return a}function P1(t,r,s,a){if(a){var c=t.anchor;if(s){var h=C(r,c)<0;h!=C(s,c)<0?(c=r,r=s):h!=C(r,s)<0&&(r=s)}return new Ge(c,r)}else return new Ge(s||r,r)}function ms(t,r,s,a,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),At(t,new ur([P1(t.sel.primary(),r,s,c)],0),a)}function X0(t,r,s){for(var a=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)a[h]=P1(t.sel.ranges[h],r[h],null,c);var f=zr(t.cm,a,t.sel.primIndex);At(t,f,s)}function D1(t,r,s,a){var c=t.sel.ranges.slice(0);c[r]=s,At(t,zr(t.cm,c,t.sel.primIndex),a)}function J0(t,r,s,a){At(t,Si(r,s),a)}function h3(t,r,s){var a={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Ge(de(t,c[h].anchor),de(t,c[h].head))},origin:s&&s.origin};return Oe(t,"beforeSelectionChange",t,a),t.cm&&Oe(t.cm,"beforeSelectionChange",t.cm,a),a.ranges!=r.ranges?zr(t.cm,a.ranges,a.ranges.length-1):r}function Q0(t,r,s){var a=t.history.done,c=_e(a);c&&c.ranges?(a[a.length-1]=r,ys(t,r,s)):At(t,r,s)}function At(t,r,s){ys(t,r,s),c3(t,t.sel,t.cm?t.cm.curOp.id:NaN,s)}function ys(t,r,s){(Tt(t,"beforeSelectionChange")||t.cm&&Tt(t.cm,"beforeSelectionChange"))&&(r=h3(t,r,s));var a=s&&s.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);ed(t,rd(t,r,a,!0)),!(s&&s.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Rn(t.cm)}function ed(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,kn(t.cm)),wt(t,"cursorActivity",t))}function td(t){ed(t,rd(t,t.sel,null,!1))}function rd(t,r,s,a){for(var c,h=0;h<r.ranges.length;h++){var f=r.ranges[h],p=r.ranges.length==t.sel.ranges.length&&t.sel.ranges[h],g=Cs(t,f.anchor,p&&p.anchor,s,a),y=Cs(t,f.head,p&&p.head,s,a);(c||g!=f.anchor||y!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Ge(g,y))}return c?zr(t.cm,c,r.primIndex):r}function Vn(t,r,s,a,c){var h=be(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,y="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,z="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(y?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(z?p.to>=r.ch:p.to>r.ch))){if(c&&(Oe(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(s){var S=g.find(a<0?1:-1),P=void 0;if((a<0?z:y)&&(S=id(t,S,-a,S&&S.line==r.line?h:null)),S&&S.line==r.line&&(P=C(S,s))&&(a<0?P<0:P>0))return Vn(t,S,r,a,c)}var I=g.find(a<0?-1:1);return(a<0?y:z)&&(I=id(t,I,a,I.line==r.line?h:null)),I?Vn(t,I,r,a,c):null}}return r}function Cs(t,r,s,a,c){var h=a||1,f=Vn(t,r,s,h,c)||!c&&Vn(t,r,s,h,!0)||Vn(t,r,s,-h,c)||!c&&Vn(t,r,s,-h,!0);return f||(t.cantEdit=!0,Q(t.first,0))}function id(t,r,s,a){return s<0&&r.ch==0?r.line>t.first?de(t,Q(r.line-1)):null:s>0&&r.ch==(a||be(t,r.line)).text.length?r.line<t.first+t.size-1?Q(r.line+1,0):null:new Q(r.line,r.ch+s)}function nd(t){t.setSelection(Q(t.firstLine(),0),Q(t.lastLine()),De)}function od(t,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(c,h,f,p){c&&(a.from=de(t,c)),h&&(a.to=de(t,h)),f&&(a.text=f),p!==void 0&&(a.origin=p)}),Oe(t,"beforeChange",t,a),t.cm&&Oe(t.cm,"beforeChange",t.cm,a),a.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Zn(t,r,s){if(t.cm){if(!t.cm.curOp)return xt(t.cm,Zn)(t,r,s);if(t.cm.state.suppressEdits)return}if(!((Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"))&&(r=od(t,r,!0),!r))){var a=Ku&&!s&&c4(t,r.from,r.to);if(a)for(var c=a.length-1;c>=0;--c)ad(t,{from:a[c].from,to:a[c].to,text:c?[""]:r.text,origin:r.origin});else ad(t,r)}}function ad(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var s=E1(t,r);q0(t,r,s,t.cm?t.cm.curOp.id:NaN),Ko(t,r,s,o1(t,r));var a=[];Ti(t,function(c,h){!h&&ge(a,c.history)==-1&&(ud(c.history,r),a.push(c.history)),Ko(c,r,null,o1(c,r))})}}function ws(t,r,s){var a=t.cm&&t.cm.state.suppressEdits;if(!(a&&!s)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,y=0;y<p.length&&(h=p[y],!(s?h.ranges&&!h.equals(t.sel):!h.ranges));y++);if(y!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(bs(h,g),s&&!h.equals(t.sel)){At(t,h,{clearRedo:!1});return}f=h}else if(a){p.push(h);return}else break;var z=[];bs(f,g),g.push({changes:z,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var S=Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"),P=function(q){var te=h.changes[q];if(te.origin=r,S&&!od(t,te,!1))return p.length=0,{};z.push(A1(t,te));var ae=q?E1(t,te):_e(p);Ko(t,te,ae,Y0(t,te)),!q&&t.cm&&t.cm.scrollIntoView({from:te.from,to:Mi(te)});var he=[];Ti(t,function(se,pe){!pe&&ge(he,se.history)==-1&&(ud(se.history,te),he.push(se.history)),Ko(se,te,null,Y0(se,te))})},I=h.changes.length-1;I>=0;--I){var W=P(I);if(W)return W.v}}}}function sd(t,r){if(r!=0&&(t.first+=r,t.sel=new ur(Ve(t.sel.ranges,function(c){return new Ge(Q(c.anchor.line+r,c.anchor.ch),Q(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Vt(t.cm,t.first,t.first-r,r);for(var s=t.cm.display,a=s.viewFrom;a<s.viewTo;a++)zi(t.cm,a,"gutter")}}function Ko(t,r,s,a){if(t.cm&&!t.cm.curOp)return xt(t.cm,Ko)(t,r,s,a);if(r.to.line<t.first){sd(t,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>t.lastLine())){if(r.from.line<t.first){var c=r.text.length-1-(t.first-r.from.line);sd(t,c),r={from:Q(t.first,0),to:Q(r.to.line+c,r.to.ch),text:[_e(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:Q(h,be(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Br(t,r.from,r.to),s||(s=E1(t,r)),t.cm?f3(t.cm,r,a):I1(t,r,a),ys(t,s,De),t.cantEdit&&Cs(t,Q(t.firstLine(),0))&&(t.cantEdit=!1)}}function f3(t,r,s){var a=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=je(Wr(be(a,h.line))),a.iter(g,f.line+1,function(I){if(I==c.maxLine)return p=!0,!0})),a.sel.contains(r.from,r.to)>-1&&kn(t),I1(a,r,s,S0(t)),t.options.lineWrapping||(a.iter(g,h.line+r.text.length,function(I){var W=ns(I);W>c.maxLineLength&&(c.maxLine=I,c.maxLineLength=W,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),r4(a,h.line),jo(t,400);var y=r.text.length-(f.line-h.line)-1;r.full?Vt(t):h.line==f.line&&r.text.length==1&&!W0(t.doc,r)?zi(t,h.line,"text"):Vt(t,h.line,f.line+1,y);var z=Tt(t,"changes"),S=Tt(t,"change");if(S||z){var P={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};S&&wt(t,"change",t,P),z&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(P)}t.display.selForContextMenu=null}function Wn(t,r,s,a,c){var h;a||(a=s),C(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Zn(t,{from:s,to:a,text:r,origin:c})}function ld(t,r,s,a){s<t.line?t.line+=a:r<t.line&&(t.line=r,t.ch=0)}function cd(t,r,s,a){for(var c=0;c<t.length;++c){var h=t[c],f=!0;if(h.ranges){h.copied||(h=t[c]=h.deepCopy(),h.copied=!0);for(var p=0;p<h.ranges.length;p++)ld(h.ranges[p].anchor,r,s,a),ld(h.ranges[p].head,r,s,a);continue}for(var g=0;g<h.changes.length;++g){var y=h.changes[g];if(s<y.from.line)y.from=Q(y.from.line+a,y.from.ch),y.to=Q(y.to.line+a,y.to.ch);else if(r<=y.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function ud(t,r){var s=r.from.line,a=r.to.line,c=r.text.length-(a-s)-1;cd(t.done,s,a,c),cd(t.undone,s,a,c)}function Yo(t,r,s,a){var c=r,h=r;return typeof r=="number"?h=be(t,Fe(t,r)):c=je(r),c==null?null:(a(h,c)&&t.cm&&zi(t.cm,c,s),h)}function Xo(t){this.lines=t,this.parent=null;for(var r=0,s=0;s<t.length;++s)t[s].parent=this,r+=t[s].height;this.height=r}Xo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var s=t,a=t+r;s<a;++s){var c=this.lines[s];this.height-=c.height,p4(c),wt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,s){this.height+=s,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(t,r,s){for(var a=t+r;t<a;++t)if(s(this.lines[t]))return!0}};function Jo(t){this.children=t;for(var r=0,s=0,a=0;a<t.length;++a){var c=t[a];r+=c.chunkSize(),s+=c.height,c.parent=this}this.size=r,this.height=s,this.parent=null}Jo.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],c=a.chunkSize();if(t<c){var h=Math.min(r,c-t),f=a.height;if(a.removeInner(t,h),this.height-=f-a.height,c==h&&(this.children.splice(s--,1),a.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Xo))){var p=[];this.collapse(p),this.children=[new Xo(p)],this.children[0].parent=this}},collapse:function(t){for(var r=0;r<this.children.length;++r)this.children[r].collapse(t)},insertInner:function(t,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,s),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new Xo(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++a,0,g),g.parent=this}c.lines=c.lines.slice(0,f),this.maybeSpill()}break}t-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var r=t.children.splice(t.children.length-5,5),s=new Jo(r);if(t.parent){t.size-=s.size,t.height-=s.height;var c=ge(t.parent.children,t);t.parent.children.splice(c+1,0,s)}else{var a=new Jo(t.children);a.parent=t,t.children=[a,s],t=a}s.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,s){for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,s))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var Qo=function(t,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=t,this.node=r};Qo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,s=this.line,a=je(s);if(!(a==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(s.widgets=null);var h=Ro(this);Yt(s,Math.max(0,s.height-h)),t&&(Xt(t,function(){dd(t,s,-h),zi(t,a,"widget")}),wt(t,"lineWidgetCleared",t,this,a))}},Qo.prototype.changed=function(){var t=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var c=Ro(this)-r;c&&(xi(this.doc,a)||Yt(a,a.height+c),s&&Xt(s,function(){s.curOp.forceUpdate=!0,dd(s,a,c),wt(s,"lineWidgetChanged",s,t,je(a))}))},Rr(Qo);function dd(t,r,s){oi(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&S1(t,s)}function p3(t,r,s,a){var c=new Qo(t,s,a),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),Yo(t,r,"widget",function(f){var p=f.widgets||(f.widgets=[]);if(c.insertAt==null?p.push(c):p.splice(Math.min(p.length,Math.max(0,c.insertAt)),0,c),c.line=f,h&&!xi(t,f)){var g=oi(f)<t.scrollTop;Yt(f,f.height+Ro(c)),g&&S1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&wt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:je(r)),c}var hd=0,ki=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++hd};ki.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Qi(t),Tt(this,"clear")){var s=this.find();s&&wt(this,"clear",s.from,s.to)}for(var a=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=Do(f.markedSpans,this);t&&!this.collapsed?zi(t,je(f),"text"):t&&(p.to!=null&&(c=je(f)),p.from!=null&&(a=je(f))),f.markedSpans=o4(f.markedSpans,p),p.from==null&&this.collapsed&&!xi(this.doc,f)&&t&&Yt(f,Dn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var y=Wr(this.lines[g]),z=ns(y);z>t.display.maxLineLength&&(t.display.maxLine=y,t.display.maxLineLength=z,t.display.maxLineChanged=!0)}a!=null&&t&&this.collapsed&&Vt(t,a,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&td(t.doc)),t&&wt(t,"markerCleared",t,this,a,c),r&&en(t),this.parent&&this.parent.clear()}},ki.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var s,a,c=0;c<this.lines.length;++c){var h=this.lines[c],f=Do(h.markedSpans,this);if(f.from!=null&&(s=Q(r?h:je(h),f.from),t==-1))return s;if(f.to!=null&&(a=Q(r?h:je(h),f.to),t==1))return a}return s&&{from:s,to:a}},ki.prototype.changed=function(){var t=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||Xt(a,function(){var c=r.line,h=je(r.line),f=f1(a,h);if(f&&(b0(f),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!xi(s.doc,c)&&s.height!=null){var p=s.height;s.height=null;var g=Ro(s)-p;g&&Yt(c,c.height+g)}wt(a,"markerChanged",a,t)})},ki.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ge(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ki.prototype.detachLine=function(t){if(this.lines.splice(ge(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Rr(ki);function Un(t,r,s,a,c){if(a&&a.shared)return g3(t,r,s,a,c);if(t.cm&&!t.cm.curOp)return xt(t.cm,Un)(t,r,s,a,c);var h=new ki(t,c),f=C(r,s);if(a&&Ye(a,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=w("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(t0(t,r.line,r,s,h)||r.line!=s.line&&t0(t,s.line,r,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");n4()}h.addToHistory&&q0(t,{from:r,to:s,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,y;if(t.iter(p,s.line+1,function(S){g&&h.collapsed&&!g.options.lineWrapping&&Wr(S)==g.display.maxLine&&(y=!0),h.collapsed&&p!=r.line&&Yt(S,0),a4(S,new es(h,p==r.line?r.ch:null,p==s.line?s.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,s.line+1,function(S){xi(t,S)&&Yt(S,0)}),h.clearOnEnter&&Se(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(i4(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++hd,h.atomic=!0),g){if(y&&(g.curOp.updateMaxLine=!0),h.collapsed)Vt(g,r.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var z=r.line;z<=s.line;z++)zi(g,z,"text");h.atomic&&td(g.doc),wt(g,"markerAdded",g,h)}return h}var ea=function(t,r){this.markers=t,this.primary=r;for(var s=0;s<t.length;++s)t[s].parent=this};ea.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();wt(this,"clear")}},ea.prototype.find=function(t,r){return this.primary.find(t,r)},Rr(ea);function g3(t,r,s,a,c){a=Ye(a),a.shared=!1;var h=[Un(t,r,s,a,c)],f=h[0],p=a.widgetNode;return Ti(t,function(g){p&&(a.widgetNode=p.cloneNode(!0)),h.push(Un(g,de(g,r),de(g,s),a,c));for(var y=0;y<g.linked.length;++y)if(g.linked[y].isParent)return;f=_e(h)}),new ea(h,f)}function fd(t){return t.findMarks(Q(t.first,0),t.clipPos(Q(t.lastLine())),function(r){return r.parent})}function v3(t,r){for(var s=0;s<r.length;s++){var a=r[s],c=a.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Un(t,h,f,a.primary,a.primary.type);a.markers.push(p),p.parent=a}}}function b3(t){for(var r=function(a){var c=t[a],h=[c.primary.doc];Ti(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];ge(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},s=0;s<t.length;s++)r(s)}var m3=0,Zt=function(t,r,s,a,c){if(!(this instanceof Zt))return new Zt(t,r,s,a,c);s==null&&(s=0),Jo.call(this,[new Xo([new In("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=Q(s,0);this.sel=Si(h),this.history=new vs(null),this.id=++m3,this.modeOption=r,this.lineSep=a,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),I1(this,{from:h,to:h,text:t}),At(this,Si(h),De)};Zt.prototype=et(Jo.prototype,{constructor:Zt,iter:function(t,r,s){s?this.iterN(t-this.first,r-t,s):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(t-this.first,r,s)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=Io(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:zt(function(t){var r=Q(this.first,0),s=this.first+this.size-1;Zn(this,{from:r,to:Q(s,be(this,s).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Vo(this.cm,0,0),At(this,Si(r),De)}),replaceRange:function(t,r,s,a){r=de(this,r),s=s?de(this,s):r,Wn(this,t,r,s,a)},getRange:function(t,r,s){var a=Br(this,de(this,t),de(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(ji(this,t))return be(this,t)},getLineNumber:function(t){return je(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=be(this,t)),Wr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return de(this,t)},getCursor:function(t){var r=this.sel.primary(),s;return t==null||t=="head"?s=r.head:t=="anchor"?s=r.anchor:t=="end"||t=="to"||t===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zt(function(t,r,s){J0(this,de(this,typeof t=="number"?Q(t,r||0):t),null,s)}),setSelection:zt(function(t,r,s){J0(this,de(this,t),de(this,r||t),s)}),extendSelection:zt(function(t,r,s){ms(this,de(this,t),r&&de(this,r),s)}),extendSelections:zt(function(t,r){X0(this,lr(this,t),r)}),extendSelectionsBy:zt(function(t,r){var s=Ve(this.sel.ranges,t);X0(this,lr(this,s),r)}),setSelections:zt(function(t,r,s){if(t.length){for(var a=[],c=0;c<t.length;c++)a[c]=new Ge(de(this,t[c].anchor),de(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),At(this,zr(this.cm,a,r),s)}}),addSelection:zt(function(t,r,s){var a=this.sel.ranges.slice(0);a.push(new Ge(de(this,t),de(this,r||t))),At(this,zr(this.cm,a,a.length-1),s)}),getSelection:function(t){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var c=Br(this,r[a].from(),r[a].to());s=s?s.concat(c):c}return t===!1?s:s.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var c=Br(this,s[a].from(),s[a].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[a]=c}return r},replaceSelection:function(t,r,s){for(var a=[],c=0;c<this.sel.ranges.length;c++)a[c]=t;this.replaceSelections(a,r,s||"+input")},replaceSelections:zt(function(t,r,s){for(var a=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];a[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:s}}for(var p=r&&r!="end"&&o3(this,a,r),g=a.length-1;g>=0;g--)Zn(this,a[g]);p?Q0(this,p):this.cm&&Rn(this.cm)}),undo:zt(function(){ws(this,"undo")}),redo:zt(function(){ws(this,"redo")}),undoSelection:zt(function(){ws(this,"undo",!0)}),redoSelection:zt(function(){ws(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,s=0,a=0;a<t.done.length;a++)t.done[a].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var t=this;this.history=new vs(this.history),Ti(this,function(r){return r.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Bn(this.history.done),undone:Bn(this.history.undone)}},setHistory:function(t){var r=this.history=new vs(this.history);r.done=Bn(t.done.slice(0),null,!0),r.undone=Bn(t.undone.slice(0),null,!0)},setGutterMarker:zt(function(t,r,s){return Yo(this,t,"gutter",function(a){var c=a.gutterMarkers||(a.gutterMarkers={});return c[r]=s,!s&&re(c)&&(a.gutterMarkers=null),!0})}),clearGutter:zt(function(t){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[t]&&Yo(r,s,"gutter",function(){return s.gutterMarkers[t]=null,re(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!ji(this,t)||(r=t,t=be(this,t),!t))return null}else if(r=je(t),r==null)return null;return{line:r,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:zt(function(t,r,s){return Yo(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[c])a[c]=s;else{if(ie(s).test(a[c]))return!1;a[c]+=" "+s}return!0})}),removeLineClass:zt(function(t,r,s){return Yo(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=a[c];if(h)if(s==null)a[c]=null;else{var f=h.match(ie(s));if(!f)return!1;var p=f.index+f[0].length;a[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:zt(function(t,r,s){return p3(this,t,r,s)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,s){return Un(this,de(this,t),de(this,r),s,s&&s.type||"range")},setBookmark:function(t,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=de(this,t),Un(this,t,t,s,"bookmark")},findMarksAt:function(t){t=de(this,t);var r=[],s=be(this,t.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var c=s[a];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&r.push(c.marker.parent||c.marker)}return r},findMarks:function(t,r,s){t=de(this,t),r=de(this,r);var a=[],c=t.line;return this.iter(t.line,r.line+1,function(h){var f=h.markedSpans;if(f)for(var p=0;p<f.length;p++){var g=f[p];!(g.to!=null&&c==t.line&&t.ch>=g.to||g.from==null&&c!=t.line||g.from!=null&&c==r.line&&g.from>=r.ch)&&(!s||s(g.marker))&&a.push(g.marker.parent||g.marker)}++c}),a},getAllMarks:function(){var t=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&t.push(s[a].marker)}),t},posFromIndex:function(t){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+a;if(h>t)return r=t,!0;t-=h,++s}),de(this,Q(s,r))},indexFromPos:function(t){t=de(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,t.line,function(a){r+=a.text.length+s}),r},copy:function(t){var r=new Zt(Io(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,t&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(t){t||(t={});var r=this.first,s=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<s&&(s=t.to);var a=new Zt(Io(this,r,s),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:t.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],v3(a,fd(this)),a},unlinkDoc:function(t){if(t instanceof tt&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),b3(fd(this));break}}if(t.history==this.history){var a=[t.id];Ti(t,function(c){return a.push(c.id)},!0),t.history=new vs(null),t.history.done=Bn(this.history.done,a),t.history.undone=Bn(this.history.undone,a)}},iterLinkedDocs:function(t){Ti(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Oo(t)},lineSeparator:function(){return this.lineSep||`
2999
- `},setDirection:zt(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(r){return r.order=null}),this.cm&&a3(this.cm))})}),Zt.prototype.eachLine=Zt.prototype.iter;var pd=0;function y3(t){var r=this;if(gd(r),!(ft(r,t)||ai(r.display,t))){_t(t),b&&(pd=+new Date);var s=Ki(r,t,!0),a=t.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var c=a.length,h=Array(c),f=0,p=function(){++f==c&&xt(r,function(){s=de(r.doc,s);var I={from:s,to:s,text:r.doc.splitLines(h.filter(function(W){return W!=null}).join(r.doc.lineSeparator())),origin:"paste"};Zn(r.doc,I),Q0(r.doc,Si(de(r.doc,s),de(r.doc,Mi(I))))})()},g=function(I,W){if(r.options.allowDropFileTypes&&ge(r.options.allowDropFileTypes,I.type)==-1){p();return}var q=new FileReader;q.onerror=function(){return p()},q.onload=function(){var te=q.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(te)){p();return}h[W]=te,p()},q.readAsText(I)},y=0;y<a.length;y++)g(a[y],y);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var z=t.dataTransfer.getData("Text");if(z){var S;if(r.state.draggingText&&!r.state.draggingText.copy&&(S=r.listSelections()),ys(r.doc,Si(s,s)),S)for(var P=0;P<S.length;++P)Wn(r.doc,"",S[P].anchor,S[P].head,"drag");r.replaceSelection(z,"around","paste"),r.display.input.focus()}}catch{}}}}function C3(t,r){if(b&&(!t.state.draggingText||+new Date-pd<100)){Ui(r);return}if(!(ft(t,r)||ai(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!H)){var s=x("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(s.width=s.height=1,t.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),$&&s.parentNode.removeChild(s)}}function w3(t,r){var s=Ki(t,r);if(s){var a=document.createDocumentFragment();k0(t,s,a),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),O(t.display.dragCursor,a)}}function gd(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function vd(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var c=r[a].CodeMirror;c&&s.push(c)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)t(s[h])})}}var bd=!1;function x3(){bd||(z3(),bd=!0)}function z3(){var t;Se(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,vd(L3)},100))}),Se(window,"blur",function(){return vd(Hn)})}function L3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var Oi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ta=0;ta<10;ta++)Oi[ta+48]=Oi[ta+96]=String(ta);for(var xs=65;xs<=90;xs++)Oi[xs]=String.fromCharCode(xs);for(var ra=1;ra<=12;ra++)Oi[ra+111]=Oi[ra+63235]="F"+ra;var si={};si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},si.default=B?si.macDefault:si.pcDefault;function S3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var s,a,c,h,f=0;f<r.length-1;f++){var p=r[f];if(/^(cmd|meta|m)$/i.test(p))h=!0;else if(/^a(lt)?$/i.test(p))s=!0;else if(/^(c|ctrl|control)$/i.test(p))a=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return s&&(t="Alt-"+t),a&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function M3(t){var r={};for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete t[s];continue}for(var c=Ve(s.split(" "),S3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=a):(p=c.slice(0,h+1).join(" "),f="...");var g=r[p];if(!g)r[p]=f;else if(g!=f)throw new Error("Inconsistent bindings for "+p)}delete t[s]}for(var y in r)t[y]=r[y];return t}function jn(t,r,s,a){r=zs(r);var c=r.call?r.call(t,a):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&s(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return jn(t,r.fallthrough,s,a);for(var h=0;h<r.fallthrough.length;h++){var f=jn(t,r.fallthrough[h],s,a);if(f)return f}}}function md(t){var r=typeof t=="string"?t:Oi[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function yd(t,r,s){var a=t;return r.altKey&&a!="Alt"&&(t="Alt-"+t),(me?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(t="Ctrl-"+t),(me?r.ctrlKey:r.metaKey)&&a!="Mod"&&(t="Cmd-"+t),!s&&r.shiftKey&&a!="Shift"&&(t="Shift-"+t),t}function Cd(t,r){if($&&t.keyCode==34&&t.char)return!1;var s=Oi[t.keyCode];return s==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(s=t.code),yd(s,t,r))}function zs(t){return typeof t=="string"?si[t]:t}function Gn(t,r){for(var s=t.doc.sel.ranges,a=[],c=0;c<s.length;c++){for(var h=r(s[c]);a.length&&C(h.from,_e(a).to)<=0;){var f=a.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}a.push(h)}Xt(t,function(){for(var p=a.length-1;p>=0;p--)Wn(t.doc,"",a[p].from,a[p].to,"+delete");Rn(t)})}function N1(t,r,s){var a=Dt(t.text,r+s,s);return a<0||a>t.text.length?null:a}function H1(t,r,s){var a=N1(t,r.ch,s);return a==null?null:new Q(r.line,a,s<0?"after":"before")}function R1(t,r,s,a,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=Kt(s,r.doc.direction);if(h){var f=c<0?_e(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",y;if(f.level>0||r.doc.direction=="rtl"){var z=Pn(r,s);y=c<0?s.text.length-1:0;var S=jr(r,z,y).top;y=Hr(function(P){return jr(r,z,P).top==S},c<0==(f.level==1)?f.from:f.to-1,y),g=="before"&&(y=N1(s,y,1))}else y=c<0?f.to:f.from;return new Q(a,y,g)}}return new Q(a,c<0?s.text.length:0,c<0?"before":"after")}function T3(t,r,s,a){var c=Kt(r,t.doc.direction);if(!c)return H1(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=at(c,s.ch,s.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(a>0?f.to>s.ch:f.from<s.ch))return H1(r,s,a);var p=function(ae,he){return N1(r,ae instanceof Q?ae.ch:ae,he)},g,y=function(ae){return t.options.lineWrapping?(g=g||Pn(t,r),L0(t,r,g,ae)):{begin:0,end:r.text.length}},z=y(s.sticky=="before"?p(s,-1):s.ch);if(t.doc.direction=="rtl"||f.level==1){var S=f.level==1==a<0,P=p(s,S?1:-1);if(P!=null&&(S?P<=f.to&&P<=z.end:P>=f.from&&P>=z.begin)){var I=S?"before":"after";return new Q(s.line,P,I)}}var W=function(ae,he,se){for(var pe=function(Je,Lt){return Lt?new Q(s.line,p(Je,1),"before"):new Q(s.line,Je,"after")};ae>=0&&ae<c.length;ae+=he){var Le=c[ae],ze=he>0==(Le.level!=1),Pe=ze?se.begin:p(se.end,-1);if(Le.from<=Pe&&Pe<Le.to||(Pe=ze?Le.from:p(Le.to,-1),se.begin<=Pe&&Pe<se.end))return pe(Pe,ze)}},q=W(h+a,a,z);if(q)return q;var te=a>0?z.end:p(z.begin,-1);return te!=null&&!(a>0&&te==r.text.length)&&(q=W(a>0?0:c.length-1,a,y(te)),q)?q:null}var ia={selectAll:nd,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),De)},killLine:function(t){return Gn(t,function(r){if(r.empty()){var s=be(t.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<t.lastLine()?{from:r.head,to:Q(r.head.line+1,0)}:{from:r.head,to:Q(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Gn(t,function(r){return{from:Q(r.from().line,0),to:de(t.doc,Q(r.to().line+1,0))}})},delLineLeft:function(t){return Gn(t,function(r){return{from:Q(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Gn(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(t){return Gn(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(Q(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(Q(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return wd(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return xd(t,r.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(r){return k3(t,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div")},Te)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:s},"div")},Te)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return a.ch<t.getLine(a.line).search(/\S/)?xd(t,r.head):a},Te)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var r=[],s=t.listSelections(),a=t.options.tabSize,c=0;c<s.length;c++){var h=s[c].from(),f=Xe(t.getLine(h.line),h.ch,a);r.push(ir(a-f%a))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Xt(t,function(){for(var r=t.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var c=r[a].head,h=be(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new Q(c.line,c.ch-1)),c.ch>0)c=new Q(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),Q(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=be(t.doc,c.line-1).text;f&&(c=new Q(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),Q(c.line-1,f.length-1),c,"+transpose"))}}s.push(new Ge(c,c))}t.setSelections(s)})},newlineAndIndent:function(t){return Xt(t,function(){for(var r=t.listSelections(),s=r.length-1;s>=0;s--)t.replaceRange(t.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=t.listSelections();for(var a=0;a<r.length;a++)t.indentLine(r[a].from().line,null,!0);Rn(t)})},openLine:function(t){return t.replaceSelection(`
3000
- `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function wd(t,r){var s=be(t.doc,r),a=Wr(s);return a!=s&&(r=je(a)),R1(!0,t,a,r,1)}function k3(t,r){var s=be(t.doc,r),a=d4(s);return a!=s&&(r=je(a)),R1(!0,t,s,r,-1)}function xd(t,r){var s=wd(t,r.line),a=be(t.doc,s.line),c=Kt(a,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),f=r.line==s.line&&r.ch<=h&&r.ch;return Q(s.line,f?0:h,s.sticky)}return s}function Ls(t,r,s){if(typeof r=="string"&&(r=ia[r],!r))return!1;t.display.input.ensurePolled();var a=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),s&&(t.display.shift=!1),c=r(t)!=Ie}finally{t.display.shift=a,t.state.suppressEdits=!1}return c}function O3(t,r,s){for(var a=0;a<t.state.keyMaps.length;a++){var c=jn(r,t.state.keyMaps[a],s,t);if(c)return c}return t.options.extraKeys&&jn(r,t.options.extraKeys,s,t)||jn(r,t.options.keyMap,s,t)}var $3=new Be;function na(t,r,s,a){var c=t.state.keySeq;if(c){if(md(r))return"handled";if(/\'$/.test(r)?t.state.keySeq=null:$3.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),zd(t,c+" "+r,s,a))return!0}return zd(t,r,s,a)}function zd(t,r,s,a){var c=O3(t,r,a);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&wt(t,"keyHandled",t,r,s),(c=="handled"||c=="multi")&&(_t(s),w1(t)),!!c}function Ld(t,r){var s=Cd(r,!0);return s?r.shiftKey&&!t.state.keySeq?na(t,"Shift-"+s,r,function(a){return Ls(t,a,!0)})||na(t,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Ls(t,a)}):na(t,s,r,function(a){return Ls(t,a)}):!1}function E3(t,r,s){return na(t,"'"+s+"'",r,function(a){return Ls(t,a,!0)})}var F1=null;function Sd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=ye(),!ft(r,t))){b&&m<11&&t.keyCode==27&&(t.returnValue=!1);var s=t.keyCode;r.display.shift=s==16||t.shiftKey;var a=Ld(r,t);$&&(F1=a?s:null,!a&&s==88&&!Ja&&(B?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!B&&!a&&s==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&_3(r)}}function _3(t){var r=t.display.lineDiv;ke(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(X(r,"CodeMirror-crosshair"),Ft(document,"keyup",s),Ft(document,"mouseover",s))}Se(document,"keyup",s),Se(document,"mouseover",s)}function Md(t){t.keyCode==16&&(this.doc.sel.shift=!1),ft(this,t)}function Td(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(ai(r.display,t)||ft(r,t)||t.ctrlKey&&!t.altKey||B&&t.metaKey)){var s=t.keyCode,a=t.charCode;if($&&s==F1){F1=null,_t(t);return}if(!($&&(!t.which||t.which<10)&&Ld(r,t))){var c=String.fromCharCode(a==null?s:a);c!="\b"&&(E3(r,t,c)||r.display.input.onKeyPress(t))}}}var I3=400,B1=function(t,r,s){this.time=t,this.pos=r,this.button=s};B1.prototype.compare=function(t,r,s){return this.time+I3>t&&C(r,this.pos)==0&&s==this.button};var oa,aa;function A3(t,r){var s=+new Date;return aa&&aa.compare(s,t,r)?(oa=aa=null,"triple"):oa&&oa.compare(s,t,r)?(aa=new B1(s,t,r),oa=null,"double"):(oa=new B1(s,t,r),aa=null,"single")}function kd(t){var r=this,s=r.display;if(!(ft(r,t)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=t.shiftKey,ai(s,t)){M||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!V1(r,t)){var a=Ki(r,t),c=Ka(t),h=a?A3(a,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(a&&P3(r,c,a,h,t))&&(c==1?a?N3(r,a,h,t):Ci(t)==s.scroller&&_t(t):c==2?(a&&ms(r.doc,a),setTimeout(function(){return s.input.focus()},20)):c==3&&(Me?r.display.input.onContextMenu(t):x1(r)))}}}function P3(t,r,s,a,c){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,na(t,yd(h,c),c,function(f){if(typeof f=="string"&&(f=ia[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,s)!=Ie}finally{t.state.suppressEdits=!1}return p})}function D3(t,r,s){var a=t.getOption("configureMouse"),c=a?a(t,r,s):{};if(c.unit==null){var h=K?s.shiftKey&&s.metaKey:s.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||s.shiftKey),c.addNew==null&&(c.addNew=B?s.metaKey:s.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?s.altKey:s.ctrlKey)),c}function N3(t,r,s,a){b?setTimeout(Et(O0,t),0):t.curOp.focus=ye();var c=D3(t,s,a),h=t.doc.sel,f;t.options.dragDrop&&To&&!t.isReadOnly()&&s=="single"&&(f=h.contains(r))>-1&&(C((f=h.ranges[f]).from(),r)<0||r.xRel>0)&&(C(f.to(),r)>0||r.xRel<0)?H3(t,a,r,c):R3(t,a,r,c)}function H3(t,r,s,a){var c=t.display,h=!1,f=xt(t,function(y){M&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:x1(t)),Ft(c.wrapper.ownerDocument,"mouseup",f),Ft(c.wrapper.ownerDocument,"mousemove",p),Ft(c.scroller,"dragstart",g),Ft(c.scroller,"drop",f),h||(_t(y),a.addNew||ms(t.doc,s,null,null,a.extend),M&&!H||b&&m==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(y){h=h||Math.abs(r.clientX-y.clientX)+Math.abs(r.clientY-y.clientY)>=10},g=function(){return h=!0};M&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!a.moveOnDrag,Se(c.wrapper.ownerDocument,"mouseup",f),Se(c.wrapper.ownerDocument,"mousemove",p),Se(c.scroller,"dragstart",g),Se(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function Od(t,r,s){if(s=="char")return new Ge(r,r);if(s=="word")return t.findWordAt(r);if(s=="line")return new Ge(Q(r.line,0),de(t.doc,Q(r.line+1,0)));var a=s(t,r);return new Ge(a.from,a.to)}function R3(t,r,s,a){b&&x1(t);var c=t.display,h=t.doc;_t(r);var f,p,g=h.sel,y=g.ranges;if(a.addNew&&!a.extend?(p=h.sel.contains(s),p>-1?f=y[p]:f=new Ge(s,s)):(f=h.sel.primary(),p=h.sel.primIndex),a.unit=="rectangle")a.addNew||(f=new Ge(s,s)),s=Ki(t,r,!0,!0),p=-1;else{var z=Od(t,s,a.unit);a.extend?f=P1(f,z.anchor,z.head,a.extend):f=z}a.addNew?p==-1?(p=y.length,At(h,zr(t,y.concat([f]),p),{scroll:!1,origin:"*mouse"})):y.length>1&&y[p].empty()&&a.unit=="char"&&!a.extend?(At(h,zr(t,y.slice(0,p).concat(y.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):D1(h,p,f,Ae):(p=0,At(h,new ur([f],0),Ae),g=h.sel);var S=s;function P(se){if(C(S,se)!=0)if(S=se,a.unit=="rectangle"){for(var pe=[],Le=t.options.tabSize,ze=Xe(be(h,s.line).text,s.ch,Le),Pe=Xe(be(h,se.line).text,se.ch,Le),Je=Math.min(ze,Pe),Lt=Math.max(ze,Pe),nt=Math.min(s.line,se.line),Jt=Math.min(t.lastLine(),Math.max(s.line,se.line));nt<=Jt;nt++){var Wt=be(h,nt).text,pt=ht(Wt,Je,Le);Je==Lt?pe.push(new Ge(Q(nt,pt),Q(nt,pt))):Wt.length>pt&&pe.push(new Ge(Q(nt,pt),Q(nt,ht(Wt,Lt,Le))))}pe.length||pe.push(new Ge(s,s)),At(h,zr(t,g.ranges.slice(0,p).concat(pe),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(se)}else{var Ut=f,kt=Od(t,se,a.unit),mt=Ut.anchor,gt;C(kt.anchor,mt)>0?(gt=kt.head,mt=$e(Ut.from(),kt.anchor)):(gt=kt.anchor,mt=ee(Ut.to(),kt.head));var lt=g.ranges.slice(0);lt[p]=F3(t,new Ge(de(h,mt),gt)),At(h,zr(t,lt,p),Ae)}}var I=c.wrapper.getBoundingClientRect(),W=0;function q(se){var pe=++W,Le=Ki(t,se,!0,a.unit=="rectangle");if(Le)if(C(Le,S)!=0){t.curOp.focus=ye(),P(Le);var ze=hs(c,h);(Le.line>=ze.to||Le.line<ze.from)&&setTimeout(xt(t,function(){W==pe&&q(se)}),150)}else{var Pe=se.clientY<I.top?-20:se.clientY>I.bottom?20:0;Pe&&setTimeout(xt(t,function(){W==pe&&(c.scroller.scrollTop+=Pe,q(se))}),50)}}function te(se){t.state.selectingText=!1,W=1/0,se&&(_t(se),c.input.focus()),Ft(c.wrapper.ownerDocument,"mousemove",ae),Ft(c.wrapper.ownerDocument,"mouseup",he),h.history.lastSelOrigin=null}var ae=xt(t,function(se){se.buttons===0||!Ka(se)?te(se):q(se)}),he=xt(t,te);t.state.selectingText=he,Se(c.wrapper.ownerDocument,"mousemove",ae),Se(c.wrapper.ownerDocument,"mouseup",he)}function F3(t,r){var s=r.anchor,a=r.head,c=be(t.doc,s.line);if(C(s,a)==0&&s.sticky==a.sticky)return r;var h=Kt(c);if(!h)return r;var f=at(h,s.ch,s.sticky),p=h[f];if(p.from!=s.ch&&p.to!=s.ch)return r;var g=f+(p.from==s.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var y;if(a.line!=s.line)y=(a.line-s.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var z=at(h,a.ch,a.sticky),S=z-f||(a.ch-s.ch)*(p.level==1?-1:1);z==g-1||z==g?y=S<0:y=S>0}var P=h[g+(y?-1:0)],I=y==(P.level==1),W=I?P.from:P.to,q=I?"after":"before";return s.ch==W&&s.sticky==q?r:new Ge(new Q(s.line,W,q),a)}function $d(t,r,s,a){var c,h;if(r.touches)c=r.touches[0].clientX,h=r.touches[0].clientY;else try{c=r.clientX,h=r.clientY}catch{return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;a&&_t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!Tt(t,s))return or(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var y=f.gutters.childNodes[g];if(y&&y.getBoundingClientRect().right>=c){var z=Vr(t.doc,h),S=t.display.gutterSpecs[g];return Oe(t,s,t,z,S.className,r),or(r)}}}function V1(t,r){return $d(t,r,"gutterClick",!0)}function Ed(t,r){ai(t.display,r)||B3(t,r)||ft(t,r,"contextmenu")||Me||t.display.input.onContextMenu(r)}function B3(t,r){return Tt(t,"gutterContextMenu")?$d(t,r,"gutterContextMenu",!1):!1}function _d(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Fo(t)}var qn={toString:function(){return"CodeMirror.Init"}},Id={},Ss={};function V3(t){var r=t.optionHandlers;function s(a,c,h,f){t.defaults[a]=c,h&&(r[a]=f?function(p,g,y){y!=qn&&h(p,g,y)}:h)}t.defineOption=s,t.Init=qn,s("value","",function(a,c){return a.setValue(c)},!0),s("mode",null,function(a,c){a.doc.modeOption=c,_1(a)},!0),s("indentUnit",2,_1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){qo(a),Fo(a),Vt(a)},!0),s("lineSeparator",null,function(a,c){if(a.doc.lineSep=c,!!c){var h=[],f=a.doc.first;a.doc.iter(function(g){for(var y=0;;){var z=g.text.indexOf(c,y);if(z==-1)break;y=z+c.length,h.push(Q(f,z))}f++});for(var p=h.length-1;p>=0;p--)Wn(a.doc,c,h[p],Q(h[p].line,h[p].ch+c.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,c,h){a.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=qn&&a.refresh()}),s("specialCharPlaceholder",b4,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,c){return a.getInputField().spellcheck=c},!0),s("autocorrect",!1,function(a,c){return a.getInputField().autocorrect=c},!0),s("autocapitalize",!1,function(a,c){return a.getInputField().autocapitalize=c},!0),s("rtlMoveVisually",!ue),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){_d(a),Go(a)},!0),s("keyMap","default",function(a,c,h){var f=zs(c),p=h!=qn&&zs(h);p&&p.detach&&p.detach(a,f),f.attach&&f.attach(a,p||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,W3,!0),s("gutters",[],function(a,c){a.display.gutterSpecs=$1(c,a.options.lineNumbers),Go(a)},!0),s("fixedGutter",!0,function(a,c){a.display.gutters.style.left=c?y1(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return Fn(a)},!0),s("scrollbarStyle","native",function(a){P0(a),Fn(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,c){a.display.gutterSpecs=$1(a.options.gutters,c),Go(a)},!0),s("firstLineNumber",1,Go,!0),s("lineNumberFormatter",function(a){return a},Go,!0),s("showCursorWhenSelecting",!1,Bo,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,c){c=="nocursor"&&(Hn(a),a.display.input.blur()),a.display.input.readOnlyChanged(c)}),s("screenReaderLabel",null,function(a,c){c=c===""?null:c,a.display.input.screenReaderLabelChanged(c)}),s("disableInput",!1,function(a,c){c||a.display.input.reset()},!0),s("dragDrop",!0,Z3),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Bo,!0),s("singleCursorHeightPerLine",!0,Bo,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,qo,!0),s("addModeClass",!1,qo,!0),s("pollInterval",100),s("undoDepth",200,function(a,c){return a.doc.history.undoDepth=c}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,qo,!0),s("moveInputWithCursor",!0,function(a,c){c||a.display.input.resetPosition()}),s("tabindex",null,function(a,c){return a.display.input.getField().tabIndex=c||""}),s("autofocus",null),s("direction","ltr",function(a,c){return a.doc.setDirection(c)},!0),s("phrases",null)}function Z3(t,r,s){var a=s&&s!=qn;if(!r!=!a){var c=t.display.dragFunctions,h=r?Se:Ft;h(t.display.scroller,"dragstart",c.start),h(t.display.scroller,"dragenter",c.enter),h(t.display.scroller,"dragover",c.over),h(t.display.scroller,"dragleave",c.leave),h(t.display.scroller,"drop",c.drop)}}function W3(t){t.options.lineWrapping?(ke(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(X(t.display.wrapper,"CodeMirror-wrap"),c1(t)),C1(t),Vt(t),Fo(t),setTimeout(function(){return Fn(t)},100)}function tt(t,r){var s=this;if(!(this instanceof tt))return new tt(t,r);this.options=r=r?Ye(r):{},Ye(Id,r,!1);var a=r.value;typeof a=="string"?a=new Zt(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var c=new tt.inputStyles[r.inputStyle](this),h=this.display=new i3(t,a,c,r);h.wrapper.CodeMirror=this,_d(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),P0(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Be,keySeq:null,specialChars:null},r.autofocus&&!A&&h.input.focus(),b&&m<11&&setTimeout(function(){return s.display.input.reset(!0)},20),U3(this),x3(),Qi(this),this.curOp.forceUpdate=!0,U0(this,a),r.autofocus&&!A||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&z1(s)},20):Hn(this);for(var f in Ss)Ss.hasOwnProperty(f)&&Ss[f](this,r[f],qn);H0(this),r.finishInit&&r.finishInit(this);for(var p=0;p<Z1.length;++p)Z1[p](this);en(this),M&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}tt.defaults=Id,tt.optionHandlers=Ss;function U3(t){var r=t.display;Se(r.scroller,"mousedown",xt(t,kd)),b&&m<11?Se(r.scroller,"dblclick",xt(t,function(g){if(!ft(t,g)){var y=Ki(t,g);if(!(!y||V1(t,g)||ai(t.display,g))){_t(g);var z=t.findWordAt(y);ms(t.doc,z.anchor,z.head)}}})):Se(r.scroller,"dblclick",function(g){return ft(t,g)||_t(g)}),Se(r.scroller,"contextmenu",function(g){return Ed(t,g)}),Se(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||Ed(t,g)});var s,a={end:0};function c(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var y=g.touches[0];return y.radiusX<=1&&y.radiusY<=1}function f(g,y){if(y.left==null)return!0;var z=y.left-g.left,S=y.top-g.top;return z*z+S*S>20*20}Se(r.scroller,"touchstart",function(g){if(!ft(t,g)&&!h(g)&&!V1(t,g)){r.input.ensurePolled(),clearTimeout(s);var y=+new Date;r.activeTouch={start:y,moved:!1,prev:y-a.end<=300?a:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Se(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Se(r.scroller,"touchend",function(g){var y=r.activeTouch;if(y&&!ai(r,g)&&y.left!=null&&!y.moved&&new Date-y.start<300){var z=t.coordsChar(r.activeTouch,"page"),S;!y.prev||f(y,y.prev)?S=new Ge(z,z):!y.prev.prev||f(y,y.prev.prev)?S=t.findWordAt(z):S=new Ge(Q(z.line,0),de(t.doc,Q(z.line+1,0))),t.setSelection(S.anchor,S.head),t.focus(),_t(g)}c()}),Se(r.scroller,"touchcancel",c),Se(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Zo(t,r.scroller.scrollTop),Xi(t,r.scroller.scrollLeft,!0),Oe(t,"scroll",t))}),Se(r.scroller,"mousewheel",function(g){return B0(t,g)}),Se(r.scroller,"DOMMouseScroll",function(g){return B0(t,g)}),Se(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ft(t,g)||Ui(g)},over:function(g){ft(t,g)||(w3(t,g),Ui(g))},start:function(g){return C3(t,g)},drop:xt(t,y3),leave:function(g){ft(t,g)||gd(t)}};var p=r.input.getField();Se(p,"keyup",function(g){return Md.call(t,g)}),Se(p,"keydown",xt(t,Sd)),Se(p,"keypress",xt(t,Td)),Se(p,"focus",function(g){return z1(t,g)}),Se(p,"blur",function(g){return Hn(t,g)})}var Z1=[];tt.defineInitHook=function(t){return Z1.push(t)};function sa(t,r,s,a){var c=t.doc,h;s==null&&(s="add"),s=="smart"&&(c.mode.indent?h=Po(t,r).state:s="prev");var f=t.options.tabSize,p=be(c,r),g=Xe(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var y=p.text.match(/^\s*/)[0],z;if(!a&&!/\S/.test(p.text))z=0,s="not";else if(s=="smart"&&(z=c.mode.indent(h,p.text.slice(y.length),p.text),z==Ie||z>150)){if(!a)return;s="prev"}s=="prev"?r>c.first?z=Xe(be(c,r-1).text,null,f):z=0:s=="add"?z=g+t.options.indentUnit:s=="subtract"?z=g-t.options.indentUnit:typeof s=="number"&&(z=g+s),z=Math.max(0,z);var S="",P=0;if(t.options.indentWithTabs)for(var I=Math.floor(z/f);I;--I)P+=f,S+=" ";if(P<z&&(S+=ir(z-P)),S!=y)return Wn(c,S,Q(r,0),Q(r,y.length),"+input"),p.stateAfter=null,!0;for(var W=0;W<c.sel.ranges.length;W++){var q=c.sel.ranges[W];if(q.head.line==r&&q.head.ch<y.length){var te=Q(r,y.length);D1(c,W,new Ge(te,te));break}}}var Lr=null;function Ms(t){Lr=t}function W1(t,r,s,a,c){var h=t.doc;t.display.shift=!1,a||(a=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=Oo(r),y=null;if(p&&a.ranges.length>1)if(Lr&&Lr.text.join(`
3001
- `)==r){if(a.ranges.length%Lr.text.length==0){y=[];for(var z=0;z<Lr.text.length;z++)y.push(h.splitLines(Lr.text[z]))}}else g.length==a.ranges.length&&t.options.pasteLinesPerSelection&&(y=Ve(g,function(ae){return[ae]}));for(var S=t.curOp.updateInput,P=a.ranges.length-1;P>=0;P--){var I=a.ranges[P],W=I.from(),q=I.to();I.empty()&&(s&&s>0?W=Q(W.line,W.ch-s):t.state.overwrite&&!p?q=Q(q.line,Math.min(be(h,q.line).text.length,q.ch+_e(g).length)):p&&Lr&&Lr.lineWise&&Lr.text.join(`
2998
+ left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(h),h.scrollIntoView(c),t.display.lineSpace.removeChild(h)}}}function j4(t,r,s,a){a==null&&(a=0);var c;!t.options.lineWrapping&&r==s&&(s=r.sticky=="before"?Q(r.line,r.ch+1,"before"):r,r=r.ch?Q(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var h=0;h<5;h++){var f=!1,p=xr(t,r),g=!s||s==r?p:xr(t,s);c={left:Math.min(p.left,g.left),top:Math.min(p.top,g.top)-a,right:Math.max(p.left,g.left),bottom:Math.max(p.bottom,g.bottom)+a};var y=L1(t,c),z=t.doc.scrollTop,S=t.doc.scrollLeft;if(y.scrollTop!=null&&(Wo(t,y.scrollTop),Math.abs(t.doc.scrollTop-z)>1&&(f=!0)),y.scrollLeft!=null&&(Xi(t,y.scrollLeft),Math.abs(t.doc.scrollLeft-S)>1&&(f=!0)),!f)break}return c}function G4(t,r){var s=L1(t,r);s.scrollTop!=null&&Wo(t,s.scrollTop),s.scrollLeft!=null&&Xi(t,s.scrollLeft)}function L1(t,r){var s=t.display,a=Dn(t.display);r.top<0&&(r.top=0);var c=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:s.scroller.scrollTop,h=h1(t),f={};r.bottom-r.top>h&&(r.bottom=r.top+h);var p=t.doc.height+d1(s),g=r.top<a,y=r.bottom>p-a;if(r.top<c)f.scrollTop=g?0:r.top;else if(r.bottom>c+h){var z=Math.min(r.top,(y?p:r.bottom)-h);z!=c&&(f.scrollTop=z)}var S=t.options.fixedGutter?0:s.gutters.offsetWidth,P=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:s.scroller.scrollLeft-S,A=Gi(t)-s.gutters.offsetWidth,W=r.right-r.left>A;return W&&(r.right=r.left+A),r.left<10?f.scrollLeft=0:r.left<P?f.scrollLeft=Math.max(0,r.left+S-(W?0:10)):r.right>A+P-3&&(f.scrollLeft=r.right+(W?0:10)-A),f}function S1(t,r){r!=null&&(fs(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Rn(t){fs(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function Zo(t,r,s){(r!=null||s!=null)&&fs(t),r!=null&&(t.curOp.scrollLeft=r),s!=null&&(t.curOp.scrollTop=s)}function q4(t,r){fs(t),t.curOp.scrollToPos=r}function fs(t){var r=t.curOp.scrollToPos;if(r){t.curOp.scrollToPos=null;var s=z0(t,r.from),a=z0(t,r.to);_0(t,s,a,r.margin)}}function _0(t,r,s,a){var c=L1(t,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});Zo(t,c.scrollLeft,c.scrollTop)}function Wo(t,r){Math.abs(t.doc.scrollTop-r)<2||(l||T1(t,{top:r}),A0(t,r,!0),l&&T1(t),Go(t,100))}function A0(t,r,s){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),!(t.display.scroller.scrollTop==r&&!s)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function Xi(t,r,s,a){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((s?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!a)&&(t.doc.scrollLeft=r,H0(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Uo(t){var r=t.display,s=r.gutters.offsetWidth,a=Math.round(t.doc.height+d1(t.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:t.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+Ur(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Ji=function(t,r,s){this.cm=s;var a=this.vert=x("div",[x("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=x("div",[x("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=c.tabIndex=-1,t(a),t(c),Se(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),Se(c,"scroll",function(){c.clientWidth&&r(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ji.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,s=t.scrollHeight>t.clientHeight+1,a=t.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?a+"px":"0";var c=t.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+c)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=t.barLeft+"px";var h=t.viewWidth-t.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:r?a:0}},Ji.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ji.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ji.prototype.zeroWidthHack=function(){var t=B&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Be,this.disableVert=new Be},Ji.prototype.enableZeroWidthBar=function(t,r,s){t.style.pointerEvents="auto";function a(){var c=t.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);h!=t?t.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},Ji.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var jo=function(){};jo.prototype.update=function(){return{bottom:0,right:0}},jo.prototype.setScrollLeft=function(){},jo.prototype.setScrollTop=function(){},jo.prototype.clear=function(){};function Fn(t,r){r||(r=Uo(t));var s=t.display.barWidth,a=t.display.barHeight;I0(t,r);for(var c=0;c<4&&s!=t.display.barWidth||a!=t.display.barHeight;c++)s!=t.display.barWidth&&t.options.lineWrapping&&ds(t),I0(t,Uo(t)),s=t.display.barWidth,a=t.display.barHeight}function I0(t,r){var s=t.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var P0={native:Ji,null:jo};function D0(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&J(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new P0[t.options.scrollbarStyle](function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),Se(r,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Xi(t,r):Wo(t,r)},t),t.display.scrollbars.addClass&&ke(t.display.wrapper,t.display.scrollbars.addClass)}var K4=0;function Qi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++K4,markArrays:null},M4(t.curOp)}function en(t){var r=t.curOp;r&&k4(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;Y4(s)})}function Y4(t){for(var r=t.ops,s=0;s<r.length;s++)X4(r[s]);for(var a=0;a<r.length;a++)J4(r[a]);for(var c=0;c<r.length;c++)Q4(r[c]);for(var h=0;h<r.length;h++)e3(r[h]);for(var f=0;f<r.length;f++)t3(r[f])}function X4(t){var r=t.cm,s=r.display;i3(r),t.updateMaxLine&&c1(r),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<s.viewFrom||t.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new ps(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function J4(t){t.updatedDisplay=t.mustUpdate&&M1(t.cm,t.update)}function Q4(t){var r=t.cm,s=r.display;t.updatedDisplay&&ds(r),t.barMeasure=Uo(r),s.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=g0(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+t.adjustWidthTo+Ur(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+t.adjustWidthTo-Gi(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=s.input.prepareSelection())}function e3(t){var r=t.cm;t.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<r.doc.scrollLeft&&Xi(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=t.focus&&t.focus==ye();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,s),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Fn(r,t.barMeasure),t.updatedDisplay&&O1(r,t.barMeasure),t.selectionChanged&&w1(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),s&&$0(t.cm)}function t3(t){var r=t.cm,s=r.display,a=r.doc;if(t.updatedDisplay&&N0(r,t.update),s.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),t.scrollTop!=null&&A0(r,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&Xi(r,t.scrollLeft,!0,!0),t.scrollToPos){var c=j4(r,de(a,t.scrollToPos.from),de(a,t.scrollToPos.to),t.scrollToPos.margin);U4(r,c)}var h=t.maybeHiddenMarkers,f=t.maybeUnhiddenMarkers;if(h)for(var p=0;p<h.length;++p)h[p].lines.length||Oe(h[p],"hide");if(f)for(var g=0;g<f.length;++g)f[g].lines.length&&Oe(f[g],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&Oe(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function Xt(t,r){if(t.curOp)return r();Qi(t);try{return r()}finally{en(t)}}function xt(t,r){return function(){if(t.curOp)return r.apply(t,arguments);Qi(t);try{return r.apply(t,arguments)}finally{en(t)}}}function Nt(t){return function(){if(this.curOp)return t.apply(this,arguments);Qi(this);try{return t.apply(this,arguments)}finally{en(this)}}}function zt(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);Qi(r);try{return t.apply(this,arguments)}finally{en(r)}}}function Go(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,Et(r3,t))}function r3(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var s=+new Date+t.options.workTime,a=Do(t,r.highlightFrontier),c=[];r.iter(a.line,Math.min(r.first+r.size,t.display.viewTo+500),function(h){if(a.line>=t.display.viewFrom){var f=h.styles,p=h.text.length>t.options.maxHighlightLength?sr(r.mode,a.state):null,g=Zu(t,h,a,!0);p&&(a.state=p),h.styles=g.styles;var y=h.styleClasses,z=g.classes;z?h.styleClasses=z:y&&(h.styleClasses=null);for(var S=!f||f.length!=h.styles.length||y!=z&&(!y||!z||y.bgClass!=z.bgClass||y.textClass!=z.textClass),P=0;!S&&P<f.length;++P)S=f[P]!=h.styles[P];S&&c.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=t.options.maxHighlightLength&&i1(t,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return Go(t,t.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),c.length&&Xt(t,function(){for(var h=0;h<c.length;h++)zi(t,c[h],"text")})}}var ps=function(t,r,s){var a=t.display;this.viewport=r,this.visible=hs(a,t.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=Gi(t),this.force=s,this.dims=m1(t),this.events=[]};ps.prototype.signal=function(t,r){Tt(t,r)&&this.events.push(arguments)},ps.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Oe.apply(null,this.events[t])};function i3(t){var r=t.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Ur(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Ur(t)+"px",r.scrollbarsClipped=!0)}function n3(t){if(t.hasFocus())return null;var r=ye();if(!r||!ne(t.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ne(t.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function o3(t){if(!(!t||!t.activeElt||t.activeElt==ye())&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ne(document.body,t.anchorNode)&&ne(document.body,t.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(t.anchorNode,t.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(t.focusNode,t.focusOffset)}}function M1(t,r){var s=t.display,a=t.doc;if(r.editorIsHidden)return Li(t),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&T0(t)==0)return!1;R0(t)&&(Li(t),r.dims=m1(t));var c=a.first+a.size,h=Math.max(r.visible.from-t.options.viewportMargin,a.first),f=Math.min(c,r.visible.to+t.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>f&&s.viewTo-f<20&&(f=Math.min(c,s.viewTo)),ni&&(h=s1(t.doc,h),f=i0(t.doc,f));var p=h!=s.viewFrom||f!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;Z4(t,h,f),s.viewOffset=oi(be(t.doc,s.viewFrom)),t.display.mover.style.top=s.viewOffset+"px";var g=T0(t);if(!p&&g==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var y=n3(t);return g>4&&(s.lineDiv.style.display="none"),a3(t,s.updateLineNumbers,r.dims),g>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,o3(y),V(s.cursorDiv),V(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,p&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Go(t,400)),s.updateLineNumbers=null,!0}function N0(t,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!t.options.lineWrapping||r.oldDisplayWidth==Gi(t)){if(s&&s.top!=null&&(s={top:Math.min(t.doc.height+d1(t.display)-h1(t),s.top)}),r.visible=hs(t.display,t.doc,s),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break}else a&&(r.visible=hs(t.display,t.doc,s));if(!M1(t,r))break;ds(t);var c=Uo(t);Vo(t),Fn(t,c),O1(t,c),r.force=!1}r.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(r.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function T1(t,r){var s=new ps(t,r);if(M1(t,s)){ds(t),N0(t,s);var a=Uo(t);Vo(t),Fn(t,a),O1(t,a),s.finish()}}function a3(t,r,s){var a=t.display,c=t.options.lineNumbers,h=a.lineDiv,f=h.firstChild;function p(W){var q=W.nextSibling;return M&&B&&t.display.currentWheelTarget==W?W.style.display="none":W.parentNode.removeChild(W),q}for(var g=a.view,y=a.viewFrom,z=0;z<g.length;z++){var S=g[z];if(!S.hidden)if(!S.node||S.node.parentNode!=h){var P=A4(t,S,y,s);h.insertBefore(P,f)}else{for(;f!=S.node;)f=p(f);var A=c&&r!=null&&r<=y&&S.lineNumber;S.changes&&(ge(S.changes,"gutter")>-1&&(A=!1),l0(t,S,y,s)),A&&(V(S.lineNumber),S.lineNumber.appendChild(document.createTextNode(Po(t.options,y)))),f=S.node.nextSibling}y+=S.size}for(;f;)f=p(f)}function k1(t){var r=t.gutters.offsetWidth;t.sizer.style.marginLeft=r+"px",wt(t,"gutterChanged",t)}function O1(t,r){t.display.sizer.style.minHeight=r.docHeight+"px",t.display.heightForcer.style.top=r.docHeight+"px",t.display.gutters.style.height=r.docHeight+t.display.barHeight+Ur(t)+"px"}function H0(t){var r=t.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!t.options.fixedGutter))){for(var a=y1(r)-r.scroller.scrollLeft+t.doc.scrollLeft,c=r.gutters.offsetWidth,h=a+"px",f=0;f<s.length;f++)if(!s[f].hidden){t.options.fixedGutter&&(s[f].gutter&&(s[f].gutter.style.left=h),s[f].gutterBackground&&(s[f].gutterBackground.style.left=h));var p=s[f].alignable;if(p)for(var g=0;g<p.length;g++)p[g].style.left=h}t.options.fixedGutter&&(r.gutters.style.left=a+c+"px")}}function R0(t){if(!t.options.lineNumbers)return!1;var r=t.doc,s=Po(t.options,r.first+r.size-1),a=t.display;if(s.length!=a.lineNumChars){var c=a.measure.appendChild(x("div",[x("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=c.firstChild.offsetWidth,f=c.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-f)+1,a.lineNumWidth=a.lineNumInnerWidth+f,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",k1(t.display),!0}return!1}function $1(t,r){for(var s=[],a=!1,c=0;c<t.length;c++){var h=t[c],f=null;if(typeof h!="string"&&(f=h.style,h=h.className),h=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:h,style:f})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function F0(t){var r=t.gutters,s=t.gutterSpecs;V(r),t.lineGutter=null;for(var a=0;a<s.length;++a){var c=s[a],h=c.className,f=c.style,p=r.appendChild(x("div",null,"CodeMirror-gutter "+h));f&&(p.style.cssText=f),h=="CodeMirror-linenumbers"&&(t.lineGutter=p,p.style.width=(t.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",k1(t)}function qo(t){F0(t.display),Vt(t),H0(t)}function s3(t,r,s,a){var c=this;this.input=s,c.scrollbarFiller=x("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=x("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=w("div",null,"CodeMirror-code"),c.selectionDiv=x("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=x("div",null,"CodeMirror-cursors"),c.measure=x("div",null,"CodeMirror-measure"),c.lineMeasure=x("div",null,"CodeMirror-measure"),c.lineSpace=w("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var h=w("div",[c.lineSpace],"CodeMirror-lines");c.mover=x("div",[h],null,"position: relative"),c.sizer=x("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=x("div",null,null,"position: absolute; height: "+ve+"px; width: 1px;"),c.gutters=x("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=x("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=x("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),b&&m<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!M&&!(l&&I)&&(c.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(c.wrapper):t(c.wrapper)),c.viewFrom=c.viewTo=r.first,c.reportedViewFrom=c.reportedViewTo=r.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=$1(a.gutters,a.lineNumbers),F0(c),s.init(c)}var gs=0,cr=null;b?cr=-.53:l?cr=15:T?cr=-.7:H&&(cr=-1/3);function B0(t){var r=t.wheelDeltaX,s=t.wheelDeltaY;return r==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),s==null&&t.detail&&t.axis==t.VERTICAL_AXIS?s=t.detail:s==null&&(s=t.wheelDelta),{x:r,y:s}}function l3(t){var r=B0(t);return r.x*=cr,r.y*=cr,r}function V0(t,r){var s=B0(r),a=s.x,c=s.y,h=t.display,f=h.scroller,p=f.scrollWidth>f.clientWidth,g=f.scrollHeight>f.clientHeight;if(a&&p||c&&g){if(c&&B&&M){e:for(var y=r.target,z=h.view;y!=f;y=y.parentNode)for(var S=0;S<z.length;S++)if(z[S].node==y){t.display.currentWheelTarget=y;break e}}if(a&&!l&&!E&&cr!=null){c&&g&&Wo(t,Math.max(0,f.scrollTop+c*cr)),Xi(t,Math.max(0,f.scrollLeft+a*cr)),(!c||c&&g)&&_t(r),h.wheelStartX=null;return}if(c&&cr!=null){var P=c*cr,A=t.doc.scrollTop,W=A+h.wrapper.clientHeight;P<0?A=Math.max(0,A+P-50):W=Math.min(t.doc.height,W+P+50),T1(t,{top:A,bottom:W})}gs<20&&(h.wheelStartX==null?(h.wheelStartX=f.scrollLeft,h.wheelStartY=f.scrollTop,h.wheelDX=a,h.wheelDY=c,setTimeout(function(){if(h.wheelStartX!=null){var q=f.scrollLeft-h.wheelStartX,te=f.scrollTop-h.wheelStartY,ae=te&&h.wheelDY&&te/h.wheelDY||q&&h.wheelDX&&q/h.wheelDX;h.wheelStartX=h.wheelStartY=null,ae&&(cr=(cr*gs+ae)/(gs+1),++gs)}},200)):(h.wheelDX+=a,h.wheelDY+=c))}}var ur=function(t,r){this.ranges=t,this.primIndex=r};ur.prototype.primary=function(){return this.ranges[this.primIndex]},ur.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=t.ranges[r];if(!k(s.anchor,a.anchor)||!k(s.head,a.head))return!1}return!0},ur.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Ge(G(this.ranges[r].anchor),G(this.ranges[r].head));return new ur(t,this.primIndex)},ur.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},ur.prototype.contains=function(t,r){r||(r=t);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(C(r,a.from())>=0&&C(t,a.to())<=0)return s}return-1};var Ge=function(t,r){this.anchor=t,this.head=r};Ge.prototype.from=function(){return $e(this.anchor,this.head)},Ge.prototype.to=function(){return ee(this.anchor,this.head)},Ge.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zr(t,r,s){var a=t&&t.options.selectionsMayTouch,c=r[s];r.sort(function(P,A){return C(P.from(),A.from())}),s=ge(r,c);for(var h=1;h<r.length;h++){var f=r[h],p=r[h-1],g=C(p.to(),f.from());if(a&&!f.empty()?g>0:g>=0){var y=$e(p.from(),f.from()),z=ee(p.to(),f.to()),S=p.empty()?f.from()==f.head:p.from()==p.head;h<=s&&--s,r.splice(--h,2,new Ge(S?z:y,S?y:z))}}return new ur(r,s)}function Si(t,r){return new ur([new Ge(t,r||t)],0)}function Mi(t){return t.text?Q(t.from.line+t.text.length-1,_e(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Z0(t,r){if(C(t,r.from)<0)return t;if(C(t,r.to)<=0)return Mi(r);var s=t.line+r.text.length-(r.to.line-r.from.line)-1,a=t.ch;return t.line==r.to.line&&(a+=Mi(r).ch-r.to.ch),Q(s,a)}function E1(t,r){for(var s=[],a=0;a<t.sel.ranges.length;a++){var c=t.sel.ranges[a];s.push(new Ge(Z0(c.anchor,r),Z0(c.head,r)))}return zr(t.cm,s,t.sel.primIndex)}function W0(t,r,s){return t.line==r.line?Q(s.line,t.ch-r.ch+s.ch):Q(s.line+(t.line-r.line),t.ch)}function c3(t,r,s){for(var a=[],c=Q(t.first,0),h=c,f=0;f<r.length;f++){var p=r[f],g=W0(p.from,c,h),y=W0(Mi(p),c,h);if(c=p.to,h=y,s=="around"){var z=t.sel.ranges[f],S=C(z.head,z.anchor)<0;a[f]=new Ge(S?y:g,S?g:y)}else a[f]=new Ge(g,g)}return new ur(a,t.sel.primIndex)}function _1(t){t.doc.mode=En(t.options,t.doc.modeOption),Ko(t)}function Ko(t){t.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Go(t,100),t.state.modeGen++,t.curOp&&Vt(t)}function U0(t,r){return r.from.ch==0&&r.to.ch==0&&_e(r.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function A1(t,r,s,a){function c(he){return s?s[he]:null}function h(he,se,pe){b4(he,se,pe,a),wt(he,"change",he,r)}function f(he,se){for(var pe=[],Le=he;Le<se;++Le)pe.push(new An(y[Le],c(Le),a));return pe}var p=r.from,g=r.to,y=r.text,z=be(t,p.line),S=be(t,g.line),P=_e(y),A=c(y.length-1),W=g.line-p.line;if(r.full)t.insert(0,f(0,y.length)),t.remove(y.length,t.size-y.length);else if(U0(t,r)){var q=f(0,y.length-1);h(S,S.text,A),W&&t.remove(p.line,W),q.length&&t.insert(p.line,q)}else if(z==S)if(y.length==1)h(z,z.text.slice(0,p.ch)+P+z.text.slice(g.ch),A);else{var te=f(1,y.length-1);te.push(new An(P+z.text.slice(g.ch),A,a)),h(z,z.text.slice(0,p.ch)+y[0],c(0)),t.insert(p.line+1,te)}else if(y.length==1)h(z,z.text.slice(0,p.ch)+y[0]+S.text.slice(g.ch),c(0)),t.remove(p.line+1,W);else{h(z,z.text.slice(0,p.ch)+y[0],c(0)),h(S,P+S.text.slice(g.ch),A);var ae=f(1,y.length-1);W>1&&t.remove(p.line+1,W-1),t.insert(p.line+1,ae)}wt(t,"change",t,r)}function Ti(t,r,s){function a(c,h,f){if(c.linked)for(var p=0;p<c.linked.length;++p){var g=c.linked[p];if(g.doc!=h){var y=f&&g.sharedHist;s&&!y||(r(g.doc,y),a(g.doc,c,y))}}}a(t,null,!0)}function j0(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,C1(t),_1(t),G0(t),t.options.direction=r.direction,t.options.lineWrapping||c1(t),t.options.mode=r.modeOption,Vt(t)}function G0(t){(t.doc.direction=="rtl"?ke:J)(t.display.lineDiv,"CodeMirror-rtl")}function u3(t){Xt(t,function(){G0(t),Vt(t)})}function vs(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function I1(t,r){var s={from:G(r.from),to:Mi(r),text:Br(t,r.from,r.to)};return Y0(t,s,r.from.line,r.to.line+1),Ti(t,function(a){return Y0(a,s,r.from.line,r.to.line+1)},!0),s}function q0(t){for(;t.length;){var r=_e(t);if(r.ranges)t.pop();else break}}function d3(t,r){if(r)return q0(t.done),_e(t.done);if(t.done.length&&!_e(t.done).ranges)return _e(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),_e(t.done)}function K0(t,r,s,a){var c=t.history;c.undone.length=0;var h=+new Date,f,p;if((c.lastOp==a||c.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&c.lastModTime>h-(t.cm?t.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(f=d3(c,c.lastOp==a)))p=_e(f.changes),C(r.from,r.to)==0&&C(r.from,p.to)==0?p.to=Mi(r):f.changes.push(I1(t,r));else{var g=_e(c.done);for((!g||!g.ranges)&&bs(t.sel,c.done),f={changes:[I1(t,r)],generation:c.generation},c.done.push(f);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(s),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=h,c.lastOp=c.lastSelOp=a,c.lastOrigin=c.lastSelOrigin=r.origin,p||Oe(t,"historyAdded")}function h3(t,r,s,a){var c=r.charAt(0);return c=="*"||c=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function f3(t,r,s,a){var c=t.history,h=a&&a.origin;s==c.lastSelOp||h&&c.lastSelOrigin==h&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==h||h3(t,h,_e(c.done),r))?c.done[c.done.length-1]=r:bs(r,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=h,c.lastSelOp=s,a&&a.clearRedo!==!1&&q0(c.undone)}function bs(t,r){var s=_e(r);s&&s.ranges&&s.equals(t)||r.push(t)}function Y0(t,r,s,a){var c=r["spans_"+t.id],h=0;t.iter(Math.max(t.first,s),Math.min(t.first+t.size,a),function(f){f.markedSpans&&((c||(c=r["spans_"+t.id]={}))[h]=f.markedSpans),++h})}function p3(t){if(!t)return null;for(var r,s=0;s<t.length;++s)t[s].marker.explicitlyCleared?r||(r=t.slice(0,s)):r&&r.push(t[s]);return r?r.length?r:null:t}function g3(t,r){var s=r["spans_"+t.id];if(!s)return null;for(var a=[],c=0;c<r.text.length;++c)a.push(p3(s[c]));return a}function X0(t,r){var s=g3(t,r),a=o1(t,r);if(!s)return a;if(!a)return s;for(var c=0;c<s.length;++c){var h=s[c],f=a[c];if(h&&f)e:for(var p=0;p<f.length;++p){for(var g=f[p],y=0;y<h.length;++y)if(h[y].marker==g.marker)continue e;h.push(g)}else f&&(s[c]=f)}return s}function Bn(t,r,s){for(var a=[],c=0;c<t.length;++c){var h=t[c];if(h.ranges){a.push(s?ur.prototype.deepCopy.call(h):h);continue}var f=h.changes,p=[];a.push({changes:p});for(var g=0;g<f.length;++g){var y=f[g],z=void 0;if(p.push({from:y.from,to:y.to,text:y.text}),r)for(var S in y)(z=S.match(/^spans_(\d+)$/))&&ge(r,Number(z[1]))>-1&&(_e(p)[S]=y[S],delete y[S])}}return a}function P1(t,r,s,a){if(a){var c=t.anchor;if(s){var h=C(r,c)<0;h!=C(s,c)<0?(c=r,r=s):h!=C(r,s)<0&&(r=s)}return new Ge(c,r)}else return new Ge(s||r,r)}function ms(t,r,s,a,c){c==null&&(c=t.cm&&(t.cm.display.shift||t.extend)),It(t,new ur([P1(t.sel.primary(),r,s,c)],0),a)}function J0(t,r,s){for(var a=[],c=t.cm&&(t.cm.display.shift||t.extend),h=0;h<t.sel.ranges.length;h++)a[h]=P1(t.sel.ranges[h],r[h],null,c);var f=zr(t.cm,a,t.sel.primIndex);It(t,f,s)}function D1(t,r,s,a){var c=t.sel.ranges.slice(0);c[r]=s,It(t,zr(t.cm,c,t.sel.primIndex),a)}function Q0(t,r,s,a){It(t,Si(r,s),a)}function v3(t,r,s){var a={ranges:r.ranges,update:function(c){this.ranges=[];for(var h=0;h<c.length;h++)this.ranges[h]=new Ge(de(t,c[h].anchor),de(t,c[h].head))},origin:s&&s.origin};return Oe(t,"beforeSelectionChange",t,a),t.cm&&Oe(t.cm,"beforeSelectionChange",t.cm,a),a.ranges!=r.ranges?zr(t.cm,a.ranges,a.ranges.length-1):r}function ed(t,r,s){var a=t.history.done,c=_e(a);c&&c.ranges?(a[a.length-1]=r,ys(t,r,s)):It(t,r,s)}function It(t,r,s){ys(t,r,s),f3(t,t.sel,t.cm?t.cm.curOp.id:NaN,s)}function ys(t,r,s){(Tt(t,"beforeSelectionChange")||t.cm&&Tt(t.cm,"beforeSelectionChange"))&&(r=v3(t,r,s));var a=s&&s.bias||(C(r.primary().head,t.sel.primary().head)<0?-1:1);td(t,id(t,r,a,!0)),!(s&&s.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Rn(t.cm)}function td(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,kn(t.cm)),wt(t,"cursorActivity",t))}function rd(t){td(t,id(t,t.sel,null,!1))}function id(t,r,s,a){for(var c,h=0;h<r.ranges.length;h++){var f=r.ranges[h],p=r.ranges.length==t.sel.ranges.length&&t.sel.ranges[h],g=Cs(t,f.anchor,p&&p.anchor,s,a),y=Cs(t,f.head,p&&p.head,s,a);(c||g!=f.anchor||y!=f.head)&&(c||(c=r.ranges.slice(0,h)),c[h]=new Ge(g,y))}return c?zr(t.cm,c,r.primIndex):r}function Vn(t,r,s,a,c){var h=be(t,r.line);if(h.markedSpans)for(var f=0;f<h.markedSpans.length;++f){var p=h.markedSpans[f],g=p.marker,y="selectLeft"in g?!g.selectLeft:g.inclusiveLeft,z="selectRight"in g?!g.selectRight:g.inclusiveRight;if((p.from==null||(y?p.from<=r.ch:p.from<r.ch))&&(p.to==null||(z?p.to>=r.ch:p.to>r.ch))){if(c&&(Oe(g,"beforeCursorEnter"),g.explicitlyCleared))if(h.markedSpans){--f;continue}else break;if(!g.atomic)continue;if(s){var S=g.find(a<0?1:-1),P=void 0;if((a<0?z:y)&&(S=nd(t,S,-a,S&&S.line==r.line?h:null)),S&&S.line==r.line&&(P=C(S,s))&&(a<0?P<0:P>0))return Vn(t,S,r,a,c)}var A=g.find(a<0?-1:1);return(a<0?y:z)&&(A=nd(t,A,a,A.line==r.line?h:null)),A?Vn(t,A,r,a,c):null}}return r}function Cs(t,r,s,a,c){var h=a||1,f=Vn(t,r,s,h,c)||!c&&Vn(t,r,s,h,!0)||Vn(t,r,s,-h,c)||!c&&Vn(t,r,s,-h,!0);return f||(t.cantEdit=!0,Q(t.first,0))}function nd(t,r,s,a){return s<0&&r.ch==0?r.line>t.first?de(t,Q(r.line-1)):null:s>0&&r.ch==(a||be(t,r.line)).text.length?r.line<t.first+t.size-1?Q(r.line+1,0):null:new Q(r.line,r.ch+s)}function od(t){t.setSelection(Q(t.firstLine(),0),Q(t.lastLine()),De)}function ad(t,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(c,h,f,p){c&&(a.from=de(t,c)),h&&(a.to=de(t,h)),f&&(a.text=f),p!==void 0&&(a.origin=p)}),Oe(t,"beforeChange",t,a),t.cm&&Oe(t.cm,"beforeChange",t.cm,a),a.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Zn(t,r,s){if(t.cm){if(!t.cm.curOp)return xt(t.cm,Zn)(t,r,s);if(t.cm.state.suppressEdits)return}if(!((Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"))&&(r=ad(t,r,!0),!r))){var a=Yu&&!s&&f4(t,r.from,r.to);if(a)for(var c=a.length-1;c>=0;--c)sd(t,{from:a[c].from,to:a[c].to,text:c?[""]:r.text,origin:r.origin});else sd(t,r)}}function sd(t,r){if(!(r.text.length==1&&r.text[0]==""&&C(r.from,r.to)==0)){var s=E1(t,r);K0(t,r,s,t.cm?t.cm.curOp.id:NaN),Yo(t,r,s,o1(t,r));var a=[];Ti(t,function(c,h){!h&&ge(a,c.history)==-1&&(dd(c.history,r),a.push(c.history)),Yo(c,r,null,o1(c,r))})}}function ws(t,r,s){var a=t.cm&&t.cm.state.suppressEdits;if(!(a&&!s)){for(var c=t.history,h,f=t.sel,p=r=="undo"?c.done:c.undone,g=r=="undo"?c.undone:c.done,y=0;y<p.length&&(h=p[y],!(s?h.ranges&&!h.equals(t.sel):!h.ranges));y++);if(y!=p.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(h=p.pop(),h.ranges){if(bs(h,g),s&&!h.equals(t.sel)){It(t,h,{clearRedo:!1});return}f=h}else if(a){p.push(h);return}else break;var z=[];bs(f,g),g.push({changes:z,generation:c.generation}),c.generation=h.generation||++c.maxGeneration;for(var S=Tt(t,"beforeChange")||t.cm&&Tt(t.cm,"beforeChange"),P=function(q){var te=h.changes[q];if(te.origin=r,S&&!ad(t,te,!1))return p.length=0,{};z.push(I1(t,te));var ae=q?E1(t,te):_e(p);Yo(t,te,ae,X0(t,te)),!q&&t.cm&&t.cm.scrollIntoView({from:te.from,to:Mi(te)});var he=[];Ti(t,function(se,pe){!pe&&ge(he,se.history)==-1&&(dd(se.history,te),he.push(se.history)),Yo(se,te,null,X0(se,te))})},A=h.changes.length-1;A>=0;--A){var W=P(A);if(W)return W.v}}}}function ld(t,r){if(r!=0&&(t.first+=r,t.sel=new ur(Ve(t.sel.ranges,function(c){return new Ge(Q(c.anchor.line+r,c.anchor.ch),Q(c.head.line+r,c.head.ch))}),t.sel.primIndex),t.cm)){Vt(t.cm,t.first,t.first-r,r);for(var s=t.cm.display,a=s.viewFrom;a<s.viewTo;a++)zi(t.cm,a,"gutter")}}function Yo(t,r,s,a){if(t.cm&&!t.cm.curOp)return xt(t.cm,Yo)(t,r,s,a);if(r.to.line<t.first){ld(t,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>t.lastLine())){if(r.from.line<t.first){var c=r.text.length-1-(t.first-r.from.line);ld(t,c),r={from:Q(t.first,0),to:Q(r.to.line+c,r.to.ch),text:[_e(r.text)],origin:r.origin}}var h=t.lastLine();r.to.line>h&&(r={from:r.from,to:Q(h,be(t,h).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Br(t,r.from,r.to),s||(s=E1(t,r)),t.cm?b3(t.cm,r,a):A1(t,r,a),ys(t,s,De),t.cantEdit&&Cs(t,Q(t.firstLine(),0))&&(t.cantEdit=!1)}}function b3(t,r,s){var a=t.doc,c=t.display,h=r.from,f=r.to,p=!1,g=h.line;t.options.lineWrapping||(g=je(Wr(be(a,h.line))),a.iter(g,f.line+1,function(A){if(A==c.maxLine)return p=!0,!0})),a.sel.contains(r.from,r.to)>-1&&kn(t),A1(a,r,s,M0(t)),t.options.lineWrapping||(a.iter(g,h.line+r.text.length,function(A){var W=ns(A);W>c.maxLineLength&&(c.maxLine=A,c.maxLineLength=W,c.maxLineChanged=!0,p=!1)}),p&&(t.curOp.updateMaxLine=!0)),a4(a,h.line),Go(t,400);var y=r.text.length-(f.line-h.line)-1;r.full?Vt(t):h.line==f.line&&r.text.length==1&&!U0(t.doc,r)?zi(t,h.line,"text"):Vt(t,h.line,f.line+1,y);var z=Tt(t,"changes"),S=Tt(t,"change");if(S||z){var P={from:h,to:f,text:r.text,removed:r.removed,origin:r.origin};S&&wt(t,"change",t,P),z&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(P)}t.display.selForContextMenu=null}function Wn(t,r,s,a,c){var h;a||(a=s),C(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof r=="string"&&(r=t.splitLines(r)),Zn(t,{from:s,to:a,text:r,origin:c})}function cd(t,r,s,a){s<t.line?t.line+=a:r<t.line&&(t.line=r,t.ch=0)}function ud(t,r,s,a){for(var c=0;c<t.length;++c){var h=t[c],f=!0;if(h.ranges){h.copied||(h=t[c]=h.deepCopy(),h.copied=!0);for(var p=0;p<h.ranges.length;p++)cd(h.ranges[p].anchor,r,s,a),cd(h.ranges[p].head,r,s,a);continue}for(var g=0;g<h.changes.length;++g){var y=h.changes[g];if(s<y.from.line)y.from=Q(y.from.line+a,y.from.ch),y.to=Q(y.to.line+a,y.to.ch);else if(r<=y.to.line){f=!1;break}}f||(t.splice(0,c+1),c=0)}}function dd(t,r){var s=r.from.line,a=r.to.line,c=r.text.length-(a-s)-1;ud(t.done,s,a,c),ud(t.undone,s,a,c)}function Xo(t,r,s,a){var c=r,h=r;return typeof r=="number"?h=be(t,Fe(t,r)):c=je(r),c==null?null:(a(h,c)&&t.cm&&zi(t.cm,c,s),h)}function Jo(t){this.lines=t,this.parent=null;for(var r=0,s=0;s<t.length;++s)t[s].parent=this,r+=t[s].height;this.height=r}Jo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var s=t,a=t+r;s<a;++s){var c=this.lines[s];this.height-=c.height,m4(c),wt(c,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,s){this.height+=s,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(t,r,s){for(var a=t+r;t<a;++t)if(s(this.lines[t]))return!0}};function Qo(t){this.children=t;for(var r=0,s=0,a=0;a<t.length;++a){var c=t[a];r+=c.chunkSize(),s+=c.height,c.parent=this}this.size=r,this.height=s,this.parent=null}Qo.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],c=a.chunkSize();if(t<c){var h=Math.min(r,c-t),f=a.height;if(a.removeInner(t,h),this.height-=f-a.height,c==h&&(this.children.splice(s--,1),a.parent=null),(r-=h)==0)break;t=0}else t-=c}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof Jo))){var p=[];this.collapse(p),this.children=[new Jo(p)],this.children[0].parent=this}},collapse:function(t){for(var r=0;r<this.children.length;++r)this.children[r].collapse(t)},insertInner:function(t,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<=h){if(c.insertInner(t,r,s),c.lines&&c.lines.length>50){for(var f=c.lines.length%25+25,p=f;p<c.lines.length;){var g=new Jo(c.lines.slice(p,p+=25));c.height-=g.height,this.children.splice(++a,0,g),g.parent=this}c.lines=c.lines.slice(0,f),this.maybeSpill()}break}t-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var r=t.children.splice(t.children.length-5,5),s=new Qo(r);if(t.parent){t.size-=s.size,t.height-=s.height;var c=ge(t.parent.children,t);t.parent.children.splice(c+1,0,s)}else{var a=new Qo(t.children);a.parent=t,t.children=[a,s],t=a}s.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,s){for(var a=0;a<this.children.length;++a){var c=this.children[a],h=c.chunkSize();if(t<h){var f=Math.min(r,h-t);if(c.iterN(t,f,s))return!0;if((r-=f)==0)break;t=0}else t-=h}}};var ea=function(t,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=t,this.node=r};ea.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,s=this.line,a=je(s);if(!(a==null||!r)){for(var c=0;c<r.length;++c)r[c]==this&&r.splice(c--,1);r.length||(s.widgets=null);var h=Fo(this);Yt(s,Math.max(0,s.height-h)),t&&(Xt(t,function(){hd(t,s,-h),zi(t,a,"widget")}),wt(t,"lineWidgetCleared",t,this,a))}},ea.prototype.changed=function(){var t=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var c=Fo(this)-r;c&&(xi(this.doc,a)||Yt(a,a.height+c),s&&Xt(s,function(){s.curOp.forceUpdate=!0,hd(s,a,c),wt(s,"lineWidgetChanged",s,t,je(a))}))},Rr(ea);function hd(t,r,s){oi(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&S1(t,s)}function m3(t,r,s,a){var c=new ea(t,s,a),h=t.cm;return h&&c.noHScroll&&(h.display.alignWidgets=!0),Xo(t,r,"widget",function(f){var p=f.widgets||(f.widgets=[]);if(c.insertAt==null?p.push(c):p.splice(Math.min(p.length,Math.max(0,c.insertAt)),0,c),c.line=f,h&&!xi(t,f)){var g=oi(f)<t.scrollTop;Yt(f,f.height+Fo(c)),g&&S1(h,c.height),h.curOp.forceUpdate=!0}return!0}),h&&wt(h,"lineWidgetAdded",h,c,typeof r=="number"?r:je(r)),c}var fd=0,ki=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++fd};ki.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&Qi(t),Tt(this,"clear")){var s=this.find();s&&wt(this,"clear",s.from,s.to)}for(var a=null,c=null,h=0;h<this.lines.length;++h){var f=this.lines[h],p=No(f.markedSpans,this);t&&!this.collapsed?zi(t,je(f),"text"):t&&(p.to!=null&&(c=je(f)),p.from!=null&&(a=je(f))),f.markedSpans=c4(f.markedSpans,p),p.from==null&&this.collapsed&&!xi(this.doc,f)&&t&&Yt(f,Dn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var g=0;g<this.lines.length;++g){var y=Wr(this.lines[g]),z=ns(y);z>t.display.maxLineLength&&(t.display.maxLine=y,t.display.maxLineLength=z,t.display.maxLineChanged=!0)}a!=null&&t&&this.collapsed&&Vt(t,a,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&rd(t.doc)),t&&wt(t,"markerCleared",t,this,a,c),r&&en(t),this.parent&&this.parent.clear()}},ki.prototype.find=function(t,r){t==null&&this.type=="bookmark"&&(t=1);for(var s,a,c=0;c<this.lines.length;++c){var h=this.lines[c],f=No(h.markedSpans,this);if(f.from!=null&&(s=Q(r?h:je(h),f.from),t==-1))return s;if(f.to!=null&&(a=Q(r?h:je(h),f.to),t==1))return a}return s&&{from:s,to:a}},ki.prototype.changed=function(){var t=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||Xt(a,function(){var c=r.line,h=je(r.line),f=f1(a,h);if(f&&(m0(f),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!xi(s.doc,c)&&s.height!=null){var p=s.height;s.height=null;var g=Fo(s)-p;g&&Yt(c,c.height+g)}wt(a,"markerChanged",a,t)})},ki.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ge(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ki.prototype.detachLine=function(t){if(this.lines.splice(ge(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Rr(ki);function Un(t,r,s,a,c){if(a&&a.shared)return y3(t,r,s,a,c);if(t.cm&&!t.cm.curOp)return xt(t.cm,Un)(t,r,s,a,c);var h=new ki(t,c),f=C(r,s);if(a&&Ye(a,h,!1),f>0||f==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=w("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(r0(t,r.line,r,s,h)||r.line!=s.line&&r0(t,s.line,r,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");l4()}h.addToHistory&&K0(t,{from:r,to:s,origin:"markText"},t.sel,NaN);var p=r.line,g=t.cm,y;if(t.iter(p,s.line+1,function(S){g&&h.collapsed&&!g.options.lineWrapping&&Wr(S)==g.display.maxLine&&(y=!0),h.collapsed&&p!=r.line&&Yt(S,0),u4(S,new es(h,p==r.line?r.ch:null,p==s.line?s.ch:null),t.cm&&t.cm.curOp),++p}),h.collapsed&&t.iter(r.line,s.line+1,function(S){xi(t,S)&&Yt(S,0)}),h.clearOnEnter&&Se(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(s4(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),h.collapsed&&(h.id=++fd,h.atomic=!0),g){if(y&&(g.curOp.updateMaxLine=!0),h.collapsed)Vt(g,r.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var z=r.line;z<=s.line;z++)zi(g,z,"text");h.atomic&&rd(g.doc),wt(g,"markerAdded",g,h)}return h}var ta=function(t,r){this.markers=t,this.primary=r;for(var s=0;s<t.length;++s)t[s].parent=this};ta.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();wt(this,"clear")}},ta.prototype.find=function(t,r){return this.primary.find(t,r)},Rr(ta);function y3(t,r,s,a,c){a=Ye(a),a.shared=!1;var h=[Un(t,r,s,a,c)],f=h[0],p=a.widgetNode;return Ti(t,function(g){p&&(a.widgetNode=p.cloneNode(!0)),h.push(Un(g,de(g,r),de(g,s),a,c));for(var y=0;y<g.linked.length;++y)if(g.linked[y].isParent)return;f=_e(h)}),new ta(h,f)}function pd(t){return t.findMarks(Q(t.first,0),t.clipPos(Q(t.lastLine())),function(r){return r.parent})}function C3(t,r){for(var s=0;s<r.length;s++){var a=r[s],c=a.find(),h=t.clipPos(c.from),f=t.clipPos(c.to);if(C(h,f)){var p=Un(t,h,f,a.primary,a.primary.type);a.markers.push(p),p.parent=a}}}function w3(t){for(var r=function(a){var c=t[a],h=[c.primary.doc];Ti(c.primary.doc,function(g){return h.push(g)});for(var f=0;f<c.markers.length;f++){var p=c.markers[f];ge(h,p.doc)==-1&&(p.parent=null,c.markers.splice(f--,1))}},s=0;s<t.length;s++)r(s)}var x3=0,Zt=function(t,r,s,a,c){if(!(this instanceof Zt))return new Zt(t,r,s,a,c);s==null&&(s=0),Qo.call(this,[new Jo([new An("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=Q(s,0);this.sel=Si(h),this.history=new vs(null),this.id=++x3,this.modeOption=r,this.lineSep=a,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),A1(this,{from:h,to:h,text:t}),It(this,Si(h),De)};Zt.prototype=et(Qo.prototype,{constructor:Zt,iter:function(t,r,s){s?this.iterN(t-this.first,r-t,s):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(t-this.first,r,s)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=Io(this,this.first,this.first+this.size);return t===!1?r:r.join(t||this.lineSeparator())},setValue:zt(function(t){var r=Q(this.first,0),s=this.first+this.size-1;Zn(this,{from:r,to:Q(s,be(this,s).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Zo(this.cm,0,0),It(this,Si(r),De)}),replaceRange:function(t,r,s,a){r=de(this,r),s=s?de(this,s):r,Wn(this,t,r,s,a)},getRange:function(t,r,s){var a=Br(this,de(this,t),de(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(ji(this,t))return be(this,t)},getLineNumber:function(t){return je(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=be(this,t)),Wr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return de(this,t)},getCursor:function(t){var r=this.sel.primary(),s;return t==null||t=="head"?s=r.head:t=="anchor"?s=r.anchor:t=="end"||t=="to"||t===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:zt(function(t,r,s){Q0(this,de(this,typeof t=="number"?Q(t,r||0):t),null,s)}),setSelection:zt(function(t,r,s){Q0(this,de(this,t),de(this,r||t),s)}),extendSelection:zt(function(t,r,s){ms(this,de(this,t),r&&de(this,r),s)}),extendSelections:zt(function(t,r){J0(this,lr(this,t),r)}),extendSelectionsBy:zt(function(t,r){var s=Ve(this.sel.ranges,t);J0(this,lr(this,s),r)}),setSelections:zt(function(t,r,s){if(t.length){for(var a=[],c=0;c<t.length;c++)a[c]=new Ge(de(this,t[c].anchor),de(this,t[c].head||t[c].anchor));r==null&&(r=Math.min(t.length-1,this.sel.primIndex)),It(this,zr(this.cm,a,r),s)}}),addSelection:zt(function(t,r,s){var a=this.sel.ranges.slice(0);a.push(new Ge(de(this,t),de(this,r||t))),It(this,zr(this.cm,a,a.length-1),s)}),getSelection:function(t){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var c=Br(this,r[a].from(),r[a].to());s=s?s.concat(c):c}return t===!1?s:s.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var c=Br(this,s[a].from(),s[a].to());t!==!1&&(c=c.join(t||this.lineSeparator())),r[a]=c}return r},replaceSelection:function(t,r,s){for(var a=[],c=0;c<this.sel.ranges.length;c++)a[c]=t;this.replaceSelections(a,r,s||"+input")},replaceSelections:zt(function(t,r,s){for(var a=[],c=this.sel,h=0;h<c.ranges.length;h++){var f=c.ranges[h];a[h]={from:f.from(),to:f.to(),text:this.splitLines(t[h]),origin:s}}for(var p=r&&r!="end"&&c3(this,a,r),g=a.length-1;g>=0;g--)Zn(this,a[g]);p?ed(this,p):this.cm&&Rn(this.cm)}),undo:zt(function(){ws(this,"undo")}),redo:zt(function(){ws(this,"redo")}),undoSelection:zt(function(){ws(this,"undo",!0)}),redoSelection:zt(function(){ws(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,s=0,a=0;a<t.done.length;a++)t.done[a].ranges||++r;for(var c=0;c<t.undone.length;c++)t.undone[c].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var t=this;this.history=new vs(this.history),Ti(this,function(r){return r.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Bn(this.history.done),undone:Bn(this.history.undone)}},setHistory:function(t){var r=this.history=new vs(this.history);r.done=Bn(t.done.slice(0),null,!0),r.undone=Bn(t.undone.slice(0),null,!0)},setGutterMarker:zt(function(t,r,s){return Xo(this,t,"gutter",function(a){var c=a.gutterMarkers||(a.gutterMarkers={});return c[r]=s,!s&&re(c)&&(a.gutterMarkers=null),!0})}),clearGutter:zt(function(t){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[t]&&Xo(r,s,"gutter",function(){return s.gutterMarkers[t]=null,re(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(t){var r;if(typeof t=="number"){if(!ji(this,t)||(r=t,t=be(this,t),!t))return null}else if(r=je(t),r==null)return null;return{line:r,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:zt(function(t,r,s){return Xo(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[c])a[c]=s;else{if(ie(s).test(a[c]))return!1;a[c]+=" "+s}return!0})}),removeLineClass:zt(function(t,r,s){return Xo(this,t,r=="gutter"?"gutter":"class",function(a){var c=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",h=a[c];if(h)if(s==null)a[c]=null;else{var f=h.match(ie(s));if(!f)return!1;var p=f.index+f[0].length;a[c]=h.slice(0,f.index)+(!f.index||p==h.length?"":" ")+h.slice(p)||null}else return!1;return!0})}),addLineWidget:zt(function(t,r,s){return m3(this,t,r,s)}),removeLineWidget:function(t){t.clear()},markText:function(t,r,s){return Un(this,de(this,t),de(this,r),s,s&&s.type||"range")},setBookmark:function(t,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return t=de(this,t),Un(this,t,t,s,"bookmark")},findMarksAt:function(t){t=de(this,t);var r=[],s=be(this,t.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var c=s[a];(c.from==null||c.from<=t.ch)&&(c.to==null||c.to>=t.ch)&&r.push(c.marker.parent||c.marker)}return r},findMarks:function(t,r,s){t=de(this,t),r=de(this,r);var a=[],c=t.line;return this.iter(t.line,r.line+1,function(h){var f=h.markedSpans;if(f)for(var p=0;p<f.length;p++){var g=f[p];!(g.to!=null&&c==t.line&&t.ch>=g.to||g.from==null&&c!=t.line||g.from!=null&&c==r.line&&g.from>=r.ch)&&(!s||s(g.marker))&&a.push(g.marker.parent||g.marker)}++c}),a},getAllMarks:function(){var t=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&t.push(s[a].marker)}),t},posFromIndex:function(t){var r,s=this.first,a=this.lineSeparator().length;return this.iter(function(c){var h=c.text.length+a;if(h>t)return r=t,!0;t-=h,++s}),de(this,Q(s,r))},indexFromPos:function(t){t=de(this,t);var r=t.ch;if(t.line<this.first||t.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,t.line,function(a){r+=a.text.length+s}),r},copy:function(t){var r=new Zt(Io(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,t&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(t){t||(t={});var r=this.first,s=this.first+this.size;t.from!=null&&t.from>r&&(r=t.from),t.to!=null&&t.to<s&&(s=t.to);var a=new Zt(Io(this,r,s),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:t.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],C3(a,pd(this)),a},unlinkDoc:function(t){if(t instanceof tt&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==t){this.linked.splice(r,1),t.unlinkDoc(this),w3(pd(this));break}}if(t.history==this.history){var a=[t.id];Ti(t,function(c){return a.push(c.id)},!0),t.history=new vs(null),t.history.done=Bn(this.history.done,a),t.history.undone=Bn(this.history.undone,a)}},iterLinkedDocs:function(t){Ti(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):$o(t)},lineSeparator:function(){return this.lineSep||`
2999
+ `},setDirection:zt(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(r){return r.order=null}),this.cm&&u3(this.cm))})}),Zt.prototype.eachLine=Zt.prototype.iter;var gd=0;function z3(t){var r=this;if(vd(r),!(ft(r,t)||ai(r.display,t))){_t(t),b&&(gd=+new Date);var s=Ki(r,t,!0),a=t.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var c=a.length,h=Array(c),f=0,p=function(){++f==c&&xt(r,function(){s=de(r.doc,s);var A={from:s,to:s,text:r.doc.splitLines(h.filter(function(W){return W!=null}).join(r.doc.lineSeparator())),origin:"paste"};Zn(r.doc,A),ed(r.doc,Si(de(r.doc,s),de(r.doc,Mi(A))))})()},g=function(A,W){if(r.options.allowDropFileTypes&&ge(r.options.allowDropFileTypes,A.type)==-1){p();return}var q=new FileReader;q.onerror=function(){return p()},q.onload=function(){var te=q.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(te)){p();return}h[W]=te,p()},q.readAsText(A)},y=0;y<a.length;y++)g(a[y],y);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(t),setTimeout(function(){return r.display.input.focus()},20);return}try{var z=t.dataTransfer.getData("Text");if(z){var S;if(r.state.draggingText&&!r.state.draggingText.copy&&(S=r.listSelections()),ys(r.doc,Si(s,s)),S)for(var P=0;P<S.length;++P)Wn(r.doc,"",S[P].anchor,S[P].head,"drag");r.replaceSelection(z,"around","paste"),r.display.input.focus()}}catch{}}}}function L3(t,r){if(b&&(!t.state.draggingText||+new Date-gd<100)){Ui(r);return}if(!(ft(t,r)||ai(t.display,r))&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!H)){var s=x("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(s.width=s.height=1,t.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),E&&s.parentNode.removeChild(s)}}function S3(t,r){var s=Ki(t,r);if(s){var a=document.createDocumentFragment();O0(t,s,a),t.display.dragCursor||(t.display.dragCursor=x("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),O(t.display.dragCursor,a)}}function vd(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function bd(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var c=r[a].CodeMirror;c&&s.push(c)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)t(s[h])})}}var md=!1;function M3(){md||(T3(),md=!0)}function T3(){var t;Se(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,bd(k3)},100))}),Se(window,"blur",function(){return bd(Hn)})}function k3(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var Oi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ra=0;ra<10;ra++)Oi[ra+48]=Oi[ra+96]=String(ra);for(var xs=65;xs<=90;xs++)Oi[xs]=String.fromCharCode(xs);for(var ia=1;ia<=12;ia++)Oi[ia+111]=Oi[ia+63235]="F"+ia;var si={};si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},si.default=B?si.macDefault:si.pcDefault;function O3(t){var r=t.split(/-(?!$)/);t=r[r.length-1];for(var s,a,c,h,f=0;f<r.length-1;f++){var p=r[f];if(/^(cmd|meta|m)$/i.test(p))h=!0;else if(/^a(lt)?$/i.test(p))s=!0;else if(/^(c|ctrl|control)$/i.test(p))a=!0;else if(/^s(hift)?$/i.test(p))c=!0;else throw new Error("Unrecognized modifier name: "+p)}return s&&(t="Alt-"+t),a&&(t="Ctrl-"+t),h&&(t="Cmd-"+t),c&&(t="Shift-"+t),t}function $3(t){var r={};for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete t[s];continue}for(var c=Ve(s.split(" "),O3),h=0;h<c.length;h++){var f=void 0,p=void 0;h==c.length-1?(p=c.join(" "),f=a):(p=c.slice(0,h+1).join(" "),f="...");var g=r[p];if(!g)r[p]=f;else if(g!=f)throw new Error("Inconsistent bindings for "+p)}delete t[s]}for(var y in r)t[y]=r[y];return t}function jn(t,r,s,a){r=zs(r);var c=r.call?r.call(t,a):r[t];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&s(c))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return jn(t,r.fallthrough,s,a);for(var h=0;h<r.fallthrough.length;h++){var f=jn(t,r.fallthrough[h],s,a);if(f)return f}}}function yd(t){var r=typeof t=="string"?t:Oi[t.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function Cd(t,r,s){var a=t;return r.altKey&&a!="Alt"&&(t="Alt-"+t),(me?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(t="Ctrl-"+t),(me?r.ctrlKey:r.metaKey)&&a!="Mod"&&(t="Cmd-"+t),!s&&r.shiftKey&&a!="Shift"&&(t="Shift-"+t),t}function wd(t,r){if(E&&t.keyCode==34&&t.char)return!1;var s=Oi[t.keyCode];return s==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(s=t.code),Cd(s,t,r))}function zs(t){return typeof t=="string"?si[t]:t}function Gn(t,r){for(var s=t.doc.sel.ranges,a=[],c=0;c<s.length;c++){for(var h=r(s[c]);a.length&&C(h.from,_e(a).to)<=0;){var f=a.pop();if(C(f.from,h.from)<0){h.from=f.from;break}}a.push(h)}Xt(t,function(){for(var p=a.length-1;p>=0;p--)Wn(t.doc,"",a[p].from,a[p].to,"+delete");Rn(t)})}function N1(t,r,s){var a=Dt(t.text,r+s,s);return a<0||a>t.text.length?null:a}function H1(t,r,s){var a=N1(t,r.ch,s);return a==null?null:new Q(r.line,a,s<0?"after":"before")}function R1(t,r,s,a,c){if(t){r.doc.direction=="rtl"&&(c=-c);var h=Kt(s,r.doc.direction);if(h){var f=c<0?_e(h):h[0],p=c<0==(f.level==1),g=p?"after":"before",y;if(f.level>0||r.doc.direction=="rtl"){var z=Pn(r,s);y=c<0?s.text.length-1:0;var S=jr(r,z,y).top;y=Hr(function(P){return jr(r,z,P).top==S},c<0==(f.level==1)?f.from:f.to-1,y),g=="before"&&(y=N1(s,y,1))}else y=c<0?f.to:f.from;return new Q(a,y,g)}}return new Q(a,c<0?s.text.length:0,c<0?"before":"after")}function E3(t,r,s,a){var c=Kt(r,t.doc.direction);if(!c)return H1(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=at(c,s.ch,s.sticky),f=c[h];if(t.doc.direction=="ltr"&&f.level%2==0&&(a>0?f.to>s.ch:f.from<s.ch))return H1(r,s,a);var p=function(ae,he){return N1(r,ae instanceof Q?ae.ch:ae,he)},g,y=function(ae){return t.options.lineWrapping?(g=g||Pn(t,r),S0(t,r,g,ae)):{begin:0,end:r.text.length}},z=y(s.sticky=="before"?p(s,-1):s.ch);if(t.doc.direction=="rtl"||f.level==1){var S=f.level==1==a<0,P=p(s,S?1:-1);if(P!=null&&(S?P<=f.to&&P<=z.end:P>=f.from&&P>=z.begin)){var A=S?"before":"after";return new Q(s.line,P,A)}}var W=function(ae,he,se){for(var pe=function(Je,Lt){return Lt?new Q(s.line,p(Je,1),"before"):new Q(s.line,Je,"after")};ae>=0&&ae<c.length;ae+=he){var Le=c[ae],ze=he>0==(Le.level!=1),Pe=ze?se.begin:p(se.end,-1);if(Le.from<=Pe&&Pe<Le.to||(Pe=ze?Le.from:p(Le.to,-1),se.begin<=Pe&&Pe<se.end))return pe(Pe,ze)}},q=W(h+a,a,z);if(q)return q;var te=a>0?z.end:p(z.begin,-1);return te!=null&&!(a>0&&te==r.text.length)&&(q=W(a>0?0:c.length-1,a,y(te)),q)?q:null}var na={selectAll:od,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),De)},killLine:function(t){return Gn(t,function(r){if(r.empty()){var s=be(t.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<t.lastLine()?{from:r.head,to:Q(r.head.line+1,0)}:{from:r.head,to:Q(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(t){return Gn(t,function(r){return{from:Q(r.from().line,0),to:de(t.doc,Q(r.to().line+1,0))}})},delLineLeft:function(t){return Gn(t,function(r){return{from:Q(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(t){return Gn(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(t){return Gn(t,function(r){var s=t.charCoords(r.head,"div").top+5,a=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:a}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(Q(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(Q(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(r){return xd(t,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(r){return zd(t,r.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(r){return _3(t,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:s},"div")},Te)},goLineLeft:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:s},"div")},Te)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(r){var s=t.cursorCoords(r.head,"div").top+5,a=t.coordsChar({left:0,top:s},"div");return a.ch<t.getLine(a.line).search(/\S/)?zd(t,r.head):a},Te)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var r=[],s=t.listSelections(),a=t.options.tabSize,c=0;c<s.length;c++){var h=s[c].from(),f=Xe(t.getLine(h.line),h.ch,a);r.push(ir(a-f%a))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Xt(t,function(){for(var r=t.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var c=r[a].head,h=be(t.doc,c.line).text;if(h){if(c.ch==h.length&&(c=new Q(c.line,c.ch-1)),c.ch>0)c=new Q(c.line,c.ch+1),t.replaceRange(h.charAt(c.ch-1)+h.charAt(c.ch-2),Q(c.line,c.ch-2),c,"+transpose");else if(c.line>t.doc.first){var f=be(t.doc,c.line-1).text;f&&(c=new Q(c.line,1),t.replaceRange(h.charAt(0)+t.doc.lineSeparator()+f.charAt(f.length-1),Q(c.line-1,f.length-1),c,"+transpose"))}}s.push(new Ge(c,c))}t.setSelections(s)})},newlineAndIndent:function(t){return Xt(t,function(){for(var r=t.listSelections(),s=r.length-1;s>=0;s--)t.replaceRange(t.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=t.listSelections();for(var a=0;a<r.length;a++)t.indentLine(r[a].from().line,null,!0);Rn(t)})},openLine:function(t){return t.replaceSelection(`
3000
+ `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function xd(t,r){var s=be(t.doc,r),a=Wr(s);return a!=s&&(r=je(a)),R1(!0,t,a,r,1)}function _3(t,r){var s=be(t.doc,r),a=g4(s);return a!=s&&(r=je(a)),R1(!0,t,s,r,-1)}function zd(t,r){var s=xd(t,r.line),a=be(t.doc,s.line),c=Kt(a,t.doc.direction);if(!c||c[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),f=r.line==s.line&&r.ch<=h&&r.ch;return Q(s.line,f?0:h,s.sticky)}return s}function Ls(t,r,s){if(typeof r=="string"&&(r=na[r],!r))return!1;t.display.input.ensurePolled();var a=t.display.shift,c=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),s&&(t.display.shift=!1),c=r(t)!=Ae}finally{t.display.shift=a,t.state.suppressEdits=!1}return c}function A3(t,r,s){for(var a=0;a<t.state.keyMaps.length;a++){var c=jn(r,t.state.keyMaps[a],s,t);if(c)return c}return t.options.extraKeys&&jn(r,t.options.extraKeys,s,t)||jn(r,t.options.keyMap,s,t)}var I3=new Be;function oa(t,r,s,a){var c=t.state.keySeq;if(c){if(yd(r))return"handled";if(/\'$/.test(r)?t.state.keySeq=null:I3.set(50,function(){t.state.keySeq==c&&(t.state.keySeq=null,t.display.input.reset())}),Ld(t,c+" "+r,s,a))return!0}return Ld(t,r,s,a)}function Ld(t,r,s,a){var c=A3(t,r,a);return c=="multi"&&(t.state.keySeq=r),c=="handled"&&wt(t,"keyHandled",t,r,s),(c=="handled"||c=="multi")&&(_t(s),w1(t)),!!c}function Sd(t,r){var s=wd(r,!0);return s?r.shiftKey&&!t.state.keySeq?oa(t,"Shift-"+s,r,function(a){return Ls(t,a,!0)})||oa(t,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Ls(t,a)}):oa(t,s,r,function(a){return Ls(t,a)}):!1}function P3(t,r,s){return oa(t,"'"+s+"'",r,function(a){return Ls(t,a,!0)})}var F1=null;function Md(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&(r.curOp.focus=ye(),!ft(r,t))){b&&m<11&&t.keyCode==27&&(t.returnValue=!1);var s=t.keyCode;r.display.shift=s==16||t.shiftKey;var a=Sd(r,t);E&&(F1=a?s:null,!a&&s==88&&!Ja&&(B?t.metaKey:t.ctrlKey)&&r.replaceSelection("",null,"cut")),l&&!B&&!a&&s==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&D3(r)}}function D3(t){var r=t.display.lineDiv;ke(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(J(r,"CodeMirror-crosshair"),Ft(document,"keyup",s),Ft(document,"mouseover",s))}Se(document,"keyup",s),Se(document,"mouseover",s)}function Td(t){t.keyCode==16&&(this.doc.sel.shift=!1),ft(this,t)}function kd(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField())&&!(ai(r.display,t)||ft(r,t)||t.ctrlKey&&!t.altKey||B&&t.metaKey)){var s=t.keyCode,a=t.charCode;if(E&&s==F1){F1=null,_t(t);return}if(!(E&&(!t.which||t.which<10)&&Sd(r,t))){var c=String.fromCharCode(a==null?s:a);c!="\b"&&(P3(r,t,c)||r.display.input.onKeyPress(t))}}}var N3=400,B1=function(t,r,s){this.time=t,this.pos=r,this.button=s};B1.prototype.compare=function(t,r,s){return this.time+N3>t&&C(r,this.pos)==0&&s==this.button};var aa,sa;function H3(t,r){var s=+new Date;return sa&&sa.compare(s,t,r)?(aa=sa=null,"triple"):aa&&aa.compare(s,t,r)?(sa=new B1(s,t,r),aa=null,"double"):(aa=new B1(s,t,r),sa=null,"single")}function Od(t){var r=this,s=r.display;if(!(ft(r,t)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=t.shiftKey,ai(s,t)){M||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!V1(r,t)){var a=Ki(r,t),c=Ka(t),h=a?H3(a,c):"single";window.focus(),c==1&&r.state.selectingText&&r.state.selectingText(t),!(a&&R3(r,c,a,h,t))&&(c==1?a?B3(r,a,h,t):Ci(t)==s.scroller&&_t(t):c==2?(a&&ms(r.doc,a),setTimeout(function(){return s.input.focus()},20)):c==3&&(Me?r.display.input.onContextMenu(t):x1(r)))}}}function R3(t,r,s,a,c){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(r==1?"Left":r==2?"Middle":"Right")+h,oa(t,Cd(h,c),c,function(f){if(typeof f=="string"&&(f=na[f]),!f)return!1;var p=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),p=f(t,s)!=Ae}finally{t.state.suppressEdits=!1}return p})}function F3(t,r,s){var a=t.getOption("configureMouse"),c=a?a(t,r,s):{};if(c.unit==null){var h=K?s.shiftKey&&s.metaKey:s.altKey;c.unit=h?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(c.extend==null||t.doc.extend)&&(c.extend=t.doc.extend||s.shiftKey),c.addNew==null&&(c.addNew=B?s.metaKey:s.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(B?s.altKey:s.ctrlKey)),c}function B3(t,r,s,a){b?setTimeout(Et($0,t),0):t.curOp.focus=ye();var c=F3(t,s,a),h=t.doc.sel,f;t.options.dragDrop&&ko&&!t.isReadOnly()&&s=="single"&&(f=h.contains(r))>-1&&(C((f=h.ranges[f]).from(),r)<0||r.xRel>0)&&(C(f.to(),r)>0||r.xRel<0)?V3(t,a,r,c):Z3(t,a,r,c)}function V3(t,r,s,a){var c=t.display,h=!1,f=xt(t,function(y){M&&(c.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:x1(t)),Ft(c.wrapper.ownerDocument,"mouseup",f),Ft(c.wrapper.ownerDocument,"mousemove",p),Ft(c.scroller,"dragstart",g),Ft(c.scroller,"drop",f),h||(_t(y),a.addNew||ms(t.doc,s,null,null,a.extend),M&&!H||b&&m==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),p=function(y){h=h||Math.abs(r.clientX-y.clientX)+Math.abs(r.clientY-y.clientY)>=10},g=function(){return h=!0};M&&(c.scroller.draggable=!0),t.state.draggingText=f,f.copy=!a.moveOnDrag,Se(c.wrapper.ownerDocument,"mouseup",f),Se(c.wrapper.ownerDocument,"mousemove",p),Se(c.scroller,"dragstart",g),Se(c.scroller,"drop",f),t.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function $d(t,r,s){if(s=="char")return new Ge(r,r);if(s=="word")return t.findWordAt(r);if(s=="line")return new Ge(Q(r.line,0),de(t.doc,Q(r.line+1,0)));var a=s(t,r);return new Ge(a.from,a.to)}function Z3(t,r,s,a){b&&x1(t);var c=t.display,h=t.doc;_t(r);var f,p,g=h.sel,y=g.ranges;if(a.addNew&&!a.extend?(p=h.sel.contains(s),p>-1?f=y[p]:f=new Ge(s,s)):(f=h.sel.primary(),p=h.sel.primIndex),a.unit=="rectangle")a.addNew||(f=new Ge(s,s)),s=Ki(t,r,!0,!0),p=-1;else{var z=$d(t,s,a.unit);a.extend?f=P1(f,z.anchor,z.head,a.extend):f=z}a.addNew?p==-1?(p=y.length,It(h,zr(t,y.concat([f]),p),{scroll:!1,origin:"*mouse"})):y.length>1&&y[p].empty()&&a.unit=="char"&&!a.extend?(It(h,zr(t,y.slice(0,p).concat(y.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=h.sel):D1(h,p,f,Ie):(p=0,It(h,new ur([f],0),Ie),g=h.sel);var S=s;function P(se){if(C(S,se)!=0)if(S=se,a.unit=="rectangle"){for(var pe=[],Le=t.options.tabSize,ze=Xe(be(h,s.line).text,s.ch,Le),Pe=Xe(be(h,se.line).text,se.ch,Le),Je=Math.min(ze,Pe),Lt=Math.max(ze,Pe),nt=Math.min(s.line,se.line),Jt=Math.min(t.lastLine(),Math.max(s.line,se.line));nt<=Jt;nt++){var Wt=be(h,nt).text,pt=ht(Wt,Je,Le);Je==Lt?pe.push(new Ge(Q(nt,pt),Q(nt,pt))):Wt.length>pt&&pe.push(new Ge(Q(nt,pt),Q(nt,ht(Wt,Lt,Le))))}pe.length||pe.push(new Ge(s,s)),It(h,zr(t,g.ranges.slice(0,p).concat(pe),p),{origin:"*mouse",scroll:!1}),t.scrollIntoView(se)}else{var Ut=f,kt=$d(t,se,a.unit),mt=Ut.anchor,gt;C(kt.anchor,mt)>0?(gt=kt.head,mt=$e(Ut.from(),kt.anchor)):(gt=kt.anchor,mt=ee(Ut.to(),kt.head));var lt=g.ranges.slice(0);lt[p]=W3(t,new Ge(de(h,mt),gt)),It(h,zr(t,lt,p),Ie)}}var A=c.wrapper.getBoundingClientRect(),W=0;function q(se){var pe=++W,Le=Ki(t,se,!0,a.unit=="rectangle");if(Le)if(C(Le,S)!=0){t.curOp.focus=ye(),P(Le);var ze=hs(c,h);(Le.line>=ze.to||Le.line<ze.from)&&setTimeout(xt(t,function(){W==pe&&q(se)}),150)}else{var Pe=se.clientY<A.top?-20:se.clientY>A.bottom?20:0;Pe&&setTimeout(xt(t,function(){W==pe&&(c.scroller.scrollTop+=Pe,q(se))}),50)}}function te(se){t.state.selectingText=!1,W=1/0,se&&(_t(se),c.input.focus()),Ft(c.wrapper.ownerDocument,"mousemove",ae),Ft(c.wrapper.ownerDocument,"mouseup",he),h.history.lastSelOrigin=null}var ae=xt(t,function(se){se.buttons===0||!Ka(se)?te(se):q(se)}),he=xt(t,te);t.state.selectingText=he,Se(c.wrapper.ownerDocument,"mousemove",ae),Se(c.wrapper.ownerDocument,"mouseup",he)}function W3(t,r){var s=r.anchor,a=r.head,c=be(t.doc,s.line);if(C(s,a)==0&&s.sticky==a.sticky)return r;var h=Kt(c);if(!h)return r;var f=at(h,s.ch,s.sticky),p=h[f];if(p.from!=s.ch&&p.to!=s.ch)return r;var g=f+(p.from==s.ch==(p.level!=1)?0:1);if(g==0||g==h.length)return r;var y;if(a.line!=s.line)y=(a.line-s.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var z=at(h,a.ch,a.sticky),S=z-f||(a.ch-s.ch)*(p.level==1?-1:1);z==g-1||z==g?y=S<0:y=S>0}var P=h[g+(y?-1:0)],A=y==(P.level==1),W=A?P.from:P.to,q=A?"after":"before";return s.ch==W&&s.sticky==q?r:new Ge(new Q(s.line,W,q),a)}function Ed(t,r,s,a){var c,h;if(r.touches)c=r.touches[0].clientX,h=r.touches[0].clientY;else try{c=r.clientX,h=r.clientY}catch{return!1}if(c>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;a&&_t(r);var f=t.display,p=f.lineDiv.getBoundingClientRect();if(h>p.bottom||!Tt(t,s))return or(r);h-=p.top-f.viewOffset;for(var g=0;g<t.display.gutterSpecs.length;++g){var y=f.gutters.childNodes[g];if(y&&y.getBoundingClientRect().right>=c){var z=Vr(t.doc,h),S=t.display.gutterSpecs[g];return Oe(t,s,t,z,S.className,r),or(r)}}}function V1(t,r){return Ed(t,r,"gutterClick",!0)}function _d(t,r){ai(t.display,r)||U3(t,r)||ft(t,r,"contextmenu")||Me||t.display.input.onContextMenu(r)}function U3(t,r){return Tt(t,"gutterContextMenu")?Ed(t,r,"gutterContextMenu",!1):!1}function Ad(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bo(t)}var qn={toString:function(){return"CodeMirror.Init"}},Id={},Ss={};function j3(t){var r=t.optionHandlers;function s(a,c,h,f){t.defaults[a]=c,h&&(r[a]=f?function(p,g,y){y!=qn&&h(p,g,y)}:h)}t.defineOption=s,t.Init=qn,s("value","",function(a,c){return a.setValue(c)},!0),s("mode",null,function(a,c){a.doc.modeOption=c,_1(a)},!0),s("indentUnit",2,_1,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Ko(a),Bo(a),Vt(a)},!0),s("lineSeparator",null,function(a,c){if(a.doc.lineSep=c,!!c){var h=[],f=a.doc.first;a.doc.iter(function(g){for(var y=0;;){var z=g.text.indexOf(c,y);if(z==-1)break;y=z+c.length,h.push(Q(f,z))}f++});for(var p=h.length-1;p>=0;p--)Wn(a.doc,c,h[p],Q(h[p].line,h[p].ch+c.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,c,h){a.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),h!=qn&&a.refresh()}),s("specialCharPlaceholder",w4,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",I?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,c){return a.getInputField().spellcheck=c},!0),s("autocorrect",!1,function(a,c){return a.getInputField().autocorrect=c},!0),s("autocapitalize",!1,function(a,c){return a.getInputField().autocapitalize=c},!0),s("rtlMoveVisually",!ue),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Ad(a),qo(a)},!0),s("keyMap","default",function(a,c,h){var f=zs(c),p=h!=qn&&zs(h);p&&p.detach&&p.detach(a,f),f.attach&&f.attach(a,p||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,q3,!0),s("gutters",[],function(a,c){a.display.gutterSpecs=$1(c,a.options.lineNumbers),qo(a)},!0),s("fixedGutter",!0,function(a,c){a.display.gutters.style.left=c?y1(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return Fn(a)},!0),s("scrollbarStyle","native",function(a){D0(a),Fn(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,c){a.display.gutterSpecs=$1(a.options.gutters,c),qo(a)},!0),s("firstLineNumber",1,qo,!0),s("lineNumberFormatter",function(a){return a},qo,!0),s("showCursorWhenSelecting",!1,Vo,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,c){c=="nocursor"&&(Hn(a),a.display.input.blur()),a.display.input.readOnlyChanged(c)}),s("screenReaderLabel",null,function(a,c){c=c===""?null:c,a.display.input.screenReaderLabelChanged(c)}),s("disableInput",!1,function(a,c){c||a.display.input.reset()},!0),s("dragDrop",!0,G3),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Vo,!0),s("singleCursorHeightPerLine",!0,Vo,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Ko,!0),s("addModeClass",!1,Ko,!0),s("pollInterval",100),s("undoDepth",200,function(a,c){return a.doc.history.undoDepth=c}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Ko,!0),s("moveInputWithCursor",!0,function(a,c){c||a.display.input.resetPosition()}),s("tabindex",null,function(a,c){return a.display.input.getField().tabIndex=c||""}),s("autofocus",null),s("direction","ltr",function(a,c){return a.doc.setDirection(c)},!0),s("phrases",null)}function G3(t,r,s){var a=s&&s!=qn;if(!r!=!a){var c=t.display.dragFunctions,h=r?Se:Ft;h(t.display.scroller,"dragstart",c.start),h(t.display.scroller,"dragenter",c.enter),h(t.display.scroller,"dragover",c.over),h(t.display.scroller,"dragleave",c.leave),h(t.display.scroller,"drop",c.drop)}}function q3(t){t.options.lineWrapping?(ke(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(J(t.display.wrapper,"CodeMirror-wrap"),c1(t)),C1(t),Vt(t),Bo(t),setTimeout(function(){return Fn(t)},100)}function tt(t,r){var s=this;if(!(this instanceof tt))return new tt(t,r);this.options=r=r?Ye(r):{},Ye(Id,r,!1);var a=r.value;typeof a=="string"?a=new Zt(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var c=new tt.inputStyles[r.inputStyle](this),h=this.display=new s3(t,a,c,r);h.wrapper.CodeMirror=this,Ad(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),D0(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Be,keySeq:null,specialChars:null},r.autofocus&&!I&&h.input.focus(),b&&m<11&&setTimeout(function(){return s.display.input.reset(!0)},20),K3(this),M3(),Qi(this),this.curOp.forceUpdate=!0,j0(this,a),r.autofocus&&!I||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&z1(s)},20):Hn(this);for(var f in Ss)Ss.hasOwnProperty(f)&&Ss[f](this,r[f],qn);R0(this),r.finishInit&&r.finishInit(this);for(var p=0;p<Z1.length;++p)Z1[p](this);en(this),M&&r.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}tt.defaults=Id,tt.optionHandlers=Ss;function K3(t){var r=t.display;Se(r.scroller,"mousedown",xt(t,Od)),b&&m<11?Se(r.scroller,"dblclick",xt(t,function(g){if(!ft(t,g)){var y=Ki(t,g);if(!(!y||V1(t,g)||ai(t.display,g))){_t(g);var z=t.findWordAt(y);ms(t.doc,z.anchor,z.head)}}})):Se(r.scroller,"dblclick",function(g){return ft(t,g)||_t(g)}),Se(r.scroller,"contextmenu",function(g){return _d(t,g)}),Se(r.input.getField(),"contextmenu",function(g){r.scroller.contains(g.target)||_d(t,g)});var s,a={end:0};function c(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function h(g){if(g.touches.length!=1)return!1;var y=g.touches[0];return y.radiusX<=1&&y.radiusY<=1}function f(g,y){if(y.left==null)return!0;var z=y.left-g.left,S=y.top-g.top;return z*z+S*S>20*20}Se(r.scroller,"touchstart",function(g){if(!ft(t,g)&&!h(g)&&!V1(t,g)){r.input.ensurePolled(),clearTimeout(s);var y=+new Date;r.activeTouch={start:y,moved:!1,prev:y-a.end<=300?a:null},g.touches.length==1&&(r.activeTouch.left=g.touches[0].pageX,r.activeTouch.top=g.touches[0].pageY)}}),Se(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Se(r.scroller,"touchend",function(g){var y=r.activeTouch;if(y&&!ai(r,g)&&y.left!=null&&!y.moved&&new Date-y.start<300){var z=t.coordsChar(r.activeTouch,"page"),S;!y.prev||f(y,y.prev)?S=new Ge(z,z):!y.prev.prev||f(y,y.prev.prev)?S=t.findWordAt(z):S=new Ge(Q(z.line,0),de(t.doc,Q(z.line+1,0))),t.setSelection(S.anchor,S.head),t.focus(),_t(g)}c()}),Se(r.scroller,"touchcancel",c),Se(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Wo(t,r.scroller.scrollTop),Xi(t,r.scroller.scrollLeft,!0),Oe(t,"scroll",t))}),Se(r.scroller,"mousewheel",function(g){return V0(t,g)}),Se(r.scroller,"DOMMouseScroll",function(g){return V0(t,g)}),Se(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(g){ft(t,g)||Ui(g)},over:function(g){ft(t,g)||(S3(t,g),Ui(g))},start:function(g){return L3(t,g)},drop:xt(t,z3),leave:function(g){ft(t,g)||vd(t)}};var p=r.input.getField();Se(p,"keyup",function(g){return Td.call(t,g)}),Se(p,"keydown",xt(t,Md)),Se(p,"keypress",xt(t,kd)),Se(p,"focus",function(g){return z1(t,g)}),Se(p,"blur",function(g){return Hn(t,g)})}var Z1=[];tt.defineInitHook=function(t){return Z1.push(t)};function la(t,r,s,a){var c=t.doc,h;s==null&&(s="add"),s=="smart"&&(c.mode.indent?h=Do(t,r).state:s="prev");var f=t.options.tabSize,p=be(c,r),g=Xe(p.text,null,f);p.stateAfter&&(p.stateAfter=null);var y=p.text.match(/^\s*/)[0],z;if(!a&&!/\S/.test(p.text))z=0,s="not";else if(s=="smart"&&(z=c.mode.indent(h,p.text.slice(y.length),p.text),z==Ae||z>150)){if(!a)return;s="prev"}s=="prev"?r>c.first?z=Xe(be(c,r-1).text,null,f):z=0:s=="add"?z=g+t.options.indentUnit:s=="subtract"?z=g-t.options.indentUnit:typeof s=="number"&&(z=g+s),z=Math.max(0,z);var S="",P=0;if(t.options.indentWithTabs)for(var A=Math.floor(z/f);A;--A)P+=f,S+=" ";if(P<z&&(S+=ir(z-P)),S!=y)return Wn(c,S,Q(r,0),Q(r,y.length),"+input"),p.stateAfter=null,!0;for(var W=0;W<c.sel.ranges.length;W++){var q=c.sel.ranges[W];if(q.head.line==r&&q.head.ch<y.length){var te=Q(r,y.length);D1(c,W,new Ge(te,te));break}}}var Lr=null;function Ms(t){Lr=t}function W1(t,r,s,a,c){var h=t.doc;t.display.shift=!1,a||(a=h.sel);var f=+new Date-200,p=c=="paste"||t.state.pasteIncoming>f,g=$o(r),y=null;if(p&&a.ranges.length>1)if(Lr&&Lr.text.join(`
3001
+ `)==r){if(a.ranges.length%Lr.text.length==0){y=[];for(var z=0;z<Lr.text.length;z++)y.push(h.splitLines(Lr.text[z]))}}else g.length==a.ranges.length&&t.options.pasteLinesPerSelection&&(y=Ve(g,function(ae){return[ae]}));for(var S=t.curOp.updateInput,P=a.ranges.length-1;P>=0;P--){var A=a.ranges[P],W=A.from(),q=A.to();A.empty()&&(s&&s>0?W=Q(W.line,W.ch-s):t.state.overwrite&&!p?q=Q(q.line,Math.min(be(h,q.line).text.length,q.ch+_e(g).length)):p&&Lr&&Lr.lineWise&&Lr.text.join(`
3002
3002
  `)==g.join(`
3003
- `)&&(W=q=Q(W.line,0)));var te={from:W,to:q,text:y?y[P%y.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Zn(t.doc,te),wt(t,"inputRead",t,te)}r&&!p&&Pd(t,r),Rn(t),t.curOp.updateInput<2&&(t.curOp.updateInput=S),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ad(t,r){var s=t.clipboardData&&t.clipboardData.getData("Text");if(s)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Xt(r,function(){return W1(r,s,0,null,"paste")}),!0}function Pd(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var s=t.doc.sel,a=s.ranges.length-1;a>=0;a--){var c=s.ranges[a];if(!(c.head.ch>100||a&&s.ranges[a-1].head.line==c.head.line)){var h=t.getModeAt(c.head),f=!1;if(h.electricChars){for(var p=0;p<h.electricChars.length;p++)if(r.indexOf(h.electricChars.charAt(p))>-1){f=sa(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(be(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=sa(t,c.head.line,"smart"));f&&wt(t,"electricInput",t,c.head.line)}}}function Dd(t){for(var r=[],s=[],a=0;a<t.doc.sel.ranges.length;a++){var c=t.doc.sel.ranges[a].head.line,h={anchor:Q(c,0),head:Q(c+1,0)};s.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:s}}function Nd(t,r,s,a){t.setAttribute("autocorrect",s?"":"off"),t.setAttribute("autocapitalize",a?"":"off"),t.setAttribute("spellcheck",!!r)}function Hd(){var t=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=x("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?t.style.width="1000px":t.setAttribute("wrap","off"),_&&(t.style.border="1px solid black"),Nd(t),r}function j3(t){var r=t.optionHandlers,s=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,c){var h=this.options,f=h[a];h[a]==c&&a!="mode"||(h[a]=c,r.hasOwnProperty(a)&&xt(this,r[a])(this,c,f),Oe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,c){this.state.keyMaps[c?"push":"unshift"](zs(a))},removeKeyMap:function(a){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==a||c[h].name==a)return c.splice(h,1),!0},addOverlay:Nt(function(a,c){var h=a.token?a:t.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");ct(this.state.overlays,{mode:h,modeSpec:a,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Vt(this)}),removeOverlay:Nt(function(a){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==a||typeof a=="string"&&f.name==a){c.splice(h,1),this.state.modeGen++,Vt(this);return}}}),indentLine:Nt(function(a,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),ji(this.doc,a)&&sa(this,a,c,h)}),indentSelection:Nt(function(a){for(var c=this.doc.sel.ranges,h=-1,f=0;f<c.length;f++){var p=c[f];if(p.empty())p.head.line>h&&(sa(this,p.head.line,a,!0),h=p.head.line,f==this.doc.sel.primIndex&&Rn(this));else{var g=p.from(),y=p.to(),z=Math.max(h,g.line);h=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(var S=z;S<h;++S)sa(this,S,a);var P=this.doc.sel.ranges;g.ch==0&&c.length==P.length&&P[f].from().ch>0&&D1(this.doc,f,new Ge(g,P[f].to()),De)}}}),getTokenAt:function(a,c){return ju(this,a,c)},getLineTokens:function(a,c){return ju(this,Q(a),c,!0)},getTokenTypeAt:function(a){a=de(this.doc,a);var c=Zu(this,be(this.doc,a.line)),h=0,f=(c.length-1)/2,p=a.ch,g;if(p==0)g=c[2];else for(;;){var y=h+f>>1;if((y?c[y*2-1]:0)>=p)f=y;else if(c[y*2+1]<p)h=y+1;else{g=c[y*2+2];break}}var z=g?g.indexOf("overlay "):-1;return z<0?g:z==0?null:g.slice(0,z-1)},getModeAt:function(a){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(a).state).mode:c},getHelper:function(a,c){return this.getHelpers(a,c)[0]},getHelpers:function(a,c){var h=[];if(!s.hasOwnProperty(c))return h;var f=s[c],p=this.getModeAt(a);if(typeof p[c]=="string")f[p[c]]&&h.push(f[p[c]]);else if(p[c])for(var g=0;g<p[c].length;g++){var y=f[p[c][g]];y&&h.push(y)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var z=0;z<f._global.length;z++){var S=f._global[z];S.pred(p,this)&&ge(h,S.val)==-1&&h.push(S.val)}return h},getStateAfter:function(a,c){var h=this.doc;return a=Fe(h,a==null?h.first+h.size-1:a),Po(this,a+1,c).state},cursorCoords:function(a,c){var h,f=this.doc.sel.primary();return a==null?h=f.head:typeof a=="object"?h=de(this.doc,a):h=a?f.from():f.to(),xr(this,h,c||"page")},charCoords:function(a,c){return ls(this,de(this.doc,a),c||"page")},coordsChar:function(a,c){return a=w0(this,a,c||"page"),v1(this,a.left,a.top)},lineAtHeight:function(a,c){return a=w0(this,{top:a,left:0},c||"page").top,Vr(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,c,h){var f=!1,p;if(typeof a=="number"){var g=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>g&&(a=g,f=!0),p=be(this.doc,a)}else p=a;return ss(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-oi(p):0)},defaultTextHeight:function(){return Dn(this.display)},defaultCharWidth:function(){return Nn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,c,h,f,p){var g=this.display;a=xr(this,de(this.doc,a));var y=a.bottom,z=a.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")y=a.top;else if(f=="above"||f=="near"){var S=Math.max(g.wrapper.clientHeight,this.doc.height),P=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||a.bottom+c.offsetHeight>S)&&a.top>c.offsetHeight?y=a.top-c.offsetHeight:a.bottom+c.offsetHeight<=S&&(y=a.bottom),z+c.offsetWidth>P&&(z=P-c.offsetWidth)}c.style.top=y+"px",c.style.left=c.style.right="",p=="right"?(z=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?z=0:p=="middle"&&(z=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=z+"px"),h&&Z4(this,{left:z,top:y,right:z+c.offsetWidth,bottom:y+c.offsetHeight})},triggerOnKeyDown:Nt(Sd),triggerOnKeyPress:Nt(Td),triggerOnKeyUp:Md,triggerOnMouseDown:Nt(kd),execCommand:function(a){if(ia.hasOwnProperty(a))return ia[a].call(null,this)},triggerElectric:Nt(function(a){Pd(this,a)}),findPosH:function(a,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=de(this.doc,a),y=0;y<c&&(g=U1(this.doc,g,p,h,f),!g.hitSide);++y);return g},moveH:Nt(function(a,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?U1(h.doc,f.head,a,c,h.options.rtlMoveVisually):a<0?f.from():f.to()},Te)}),deleteH:Nt(function(a,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Gn(this,function(p){var g=U1(f,p.head,a,c,!1);return a<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(a,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var y=de(this.doc,a),z=0;z<c;++z){var S=xr(this,y,"div");if(g==null?g=S.left:S.left=g,y=Rd(this,S,p,h),y.hitSide)break}return y},moveV:Nt(function(a,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(z){if(g)return a<0?z.from():z.to();var S=xr(h,z.head,"div");z.goalColumn!=null&&(S.left=z.goalColumn),p.push(S.left);var P=Rd(h,S,a,c);return c=="page"&&z==f.sel.primary()&&S1(h,ls(h,P,"div").top-S.top),P},Te),p.length)for(var y=0;y<f.sel.ranges.length;y++)f.sel.ranges[y].goalColumn=p[y]}),findWordAt:function(a){var c=this.doc,h=be(c,a.line).text,f=a.ch,p=a.ch;if(h){var g=this.getHelper(a,"wordChars");(a.sticky=="before"||p==h.length)&&f?--f:++p;for(var y=h.charAt(f),z=R(y,g)?function(S){return R(S,g)}:/\s/.test(y)?function(S){return/\s/.test(S)}:function(S){return!/\s/.test(S)&&!R(S)};f>0&&z(h.charAt(f-1));)--f;for(;p<h.length&&z(h.charAt(p));)++p}return new Ge(Q(a.line,f),Q(a.line,p))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ke(this.display.cursorDiv,"CodeMirror-overwrite"):X(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Nt(function(a,c){Vo(this,a,c)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Ur(this)-this.display.barHeight,width:a.scrollWidth-Ur(this)-this.display.barWidth,clientHeight:h1(this),clientWidth:Gi(this)}},scrollIntoView:Nt(function(a,c){a==null?(a={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof a=="number"?a={from:Q(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=c||0,a.from.line!=null?W4(this,a):E0(this,a.from,a.to,a.margin)}),setSize:Nt(function(a,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};a!=null&&(this.display.wrapper.style.width=f(a)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&m0(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var y=0;y<g.widgets.length;y++)if(g.widgets[y].noHScroll){zi(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(a){return Xt(this,a)},startOperation:function(){return Qi(this)},endOperation:function(){return en(this)},refresh:Nt(function(){var a=this.display.cachedTextHeight;Vt(this),this.curOp.forceUpdate=!0,Fo(this),Vo(this,this.doc.scrollLeft,this.doc.scrollTop),k1(this.display),(a==null||Math.abs(a-Dn(this.display))>.5||this.options.lineWrapping)&&C1(this),Oe(this,"refresh",this)}),swapDoc:Nt(function(a){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),U0(this,a),Fo(this),this.display.input.reset(),Vo(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,wt(this,"swapDoc",this,c),c}),phrase:function(a){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,a)?c[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Rr(t),t.registerHelper=function(a,c,h){s.hasOwnProperty(a)||(s[a]=t[a]={_global:[]}),s[a][c]=h},t.registerGlobalHelper=function(a,c,h,f){t.registerHelper(a,c,f),s[a]._global.push({pred:h,val:f})}}function U1(t,r,s,a,c){var h=r,f=s,p=be(t,r.line),g=c&&t.direction=="rtl"?-s:s;function y(){var he=r.line+g;return he<t.first||he>=t.first+t.size?!1:(r=new Q(he,r.ch,r.sticky),p=be(t,he))}function z(he){var se;if(a=="codepoint"){var pe=p.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(pe))se=null;else{var Le=s>0?pe>=55296&&pe<56320:pe>=56320&&pe<57343;se=new Q(r.line,Math.max(0,Math.min(p.text.length,r.ch+s*(Le?2:1))),-s)}}else c?se=T3(t.cm,p,r,s):se=H1(p,r,s);if(se==null)if(!he&&y())r=R1(c,t.cm,p,r.line,g);else return!1;else r=se;return!0}if(a=="char"||a=="codepoint")z();else if(a=="column")z(!0);else if(a=="word"||a=="group")for(var S=null,P=a=="group",I=t.cm&&t.cm.getHelper(r,"wordChars"),W=!0;!(s<0&&!z(!W));W=!1){var q=p.text.charAt(r.ch)||`
3004
- `,te=R(q,I)?"w":P&&q==`
3005
- `?"n":!P||/\s/.test(q)?null:"p";if(P&&!W&&!te&&(te="s"),S&&S!=te){s<0&&(s=1,z(),r.sticky="after");break}if(te&&(S=te),s>0&&!z(!W))break}var ae=Cs(t,r,h,f,!0);return k(h,ae)&&(ae.hitSide=!0),ae}function Rd(t,r,s,a){var c=t.doc,h=r.left,f;if(a=="page"){var p=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(p-.5*Dn(t.display),3);f=(s>0?r.bottom:r.top)+s*g}else a=="line"&&(f=s>0?r.bottom+3:r.top-3);for(var y;y=v1(t,h,f),!!y.outside;){if(s<0?f<=0:f>=c.height){y.hitSide=!0;break}f+=s*5}return y}var Ke=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ke.prototype.init=function(t){var r=this,s=this,a=s.cm,c=s.div=t.lineDiv;c.contentEditable=!0,Nd(c,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(p){for(var g=p.target;g;g=g.parentNode){if(g==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(g.className))break}return!1}Se(c,"paste",function(p){!h(p)||ft(a,p)||Ad(p,a)||m<=11&&setTimeout(xt(a,function(){return r.updateFromDOM()}),20)}),Se(c,"compositionstart",function(p){r.composing={data:p.data,done:!1}}),Se(c,"compositionupdate",function(p){r.composing||(r.composing={data:p.data,done:!1})}),Se(c,"compositionend",function(p){r.composing&&(p.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Se(c,"touchstart",function(){return s.forceCompositionEnd()}),Se(c,"input",function(){r.composing||r.readFromDOMSoon()});function f(p){if(!(!h(p)||ft(a,p))){if(a.somethingSelected())Ms({lineWise:!1,text:a.getSelections()}),p.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var g=Dd(a);Ms({lineWise:!0,text:g.text}),p.type=="cut"&&a.operation(function(){a.setSelections(g.ranges,0,De),a.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var y=Lr.text.join(`
3006
- `);if(p.clipboardData.setData("Text",y),p.clipboardData.getData("Text")==y){p.preventDefault();return}}var z=Hd(),S=z.firstChild;a.display.lineSpace.insertBefore(z,a.display.lineSpace.firstChild),S.value=Lr.text.join(`
3007
- `);var P=ye();ot(S),setTimeout(function(){a.display.lineSpace.removeChild(z),P.focus(),P==c&&s.showPrimarySelection()},50)}}Se(c,"copy",f),Se(c,"cut",f)},Ke.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Ke.prototype.prepareSelection=function(){var t=T0(this.cm,!1);return t.focus=ye()==this.div,t},Ke.prototype.showSelection=function(t,r){!t||!this.cm.display.view.length||((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ke.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ke.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),c=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||c.line<r.display.viewFrom){t.removeAllRanges();return}var h=Ts(r,t.anchorNode,t.anchorOffset),f=Ts(r,t.focusNode,t.focusOffset);if(!(h&&!h.bad&&f&&!f.bad&&C($e(h,f),a)==0&&C(ee(h,f),c)==0)){var p=r.display.view,g=a.line>=r.display.viewFrom&&Fd(r,a)||{node:p[0].measure.map[2],offset:0},y=c.line<r.display.viewTo&&Fd(r,c);if(!y){var z=p[p.length-1].measure,S=z.maps?z.maps[z.maps.length-1]:z.map;y={node:S[S.length-1],offset:S[S.length-2]-S[S.length-3]}}if(!g||!y){t.removeAllRanges();return}var P=t.rangeCount&&t.getRangeAt(0),I;try{I=U(g.node,g.offset,y.offset,y.node)}catch{}I&&(!l&&r.state.focused?(t.collapse(g.node,g.offset),I.collapsed||(t.removeAllRanges(),t.addRange(I))):(t.removeAllRanges(),t.addRange(I)),P&&t.anchorNode==null?t.addRange(P):l&&this.startGracePeriod()),this.rememberSelection()}},Ke.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},Ke.prototype.showMultipleSelections=function(t){O(this.cm.display.cursorDiv,t.cursors),O(this.cm.display.selectionDiv,t.selection)},Ke.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ke.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return ne(this.div,r)},Ke.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ke.prototype.blur=function(){this.div.blur()},Ke.prototype.getField=function(){return this.div},Ke.prototype.supportsTouch=function(){return!0},Ke.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Xt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Ke.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ke.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),r=this.cm;if(D&&T&&this.cm.display.gutterSpecs.length&&G3(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ts(r,t.anchorNode,t.anchorOffset),a=Ts(r,t.focusNode,t.focusOffset);s&&a&&Xt(r,function(){At(r.doc,Si(s,a),De),(s.bad||a.bad)&&(r.curOp.selectionChanged=!0)})}}},Ke.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,r=t.display,s=t.doc.sel.primary(),a=s.from(),c=s.to();if(a.ch==0&&a.line>t.firstLine()&&(a=Q(a.line-1,be(t.doc,a.line-1).length)),c.ch==be(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=Q(c.line+1,0)),a.line<r.viewFrom||c.line>r.viewTo-1)return!1;var h,f,p;a.line==r.viewFrom||(h=Yi(t,a.line))==0?(f=je(r.view[0].line),p=r.view[0].node):(f=je(r.view[h].line),p=r.view[h-1].node.nextSibling);var g=Yi(t,c.line),y,z;if(g==r.view.length-1?(y=r.viewTo-1,z=r.lineDiv.lastChild):(y=je(r.view[g+1].line)-1,z=r.view[g+1].node.previousSibling),!p)return!1;for(var S=t.doc.splitLines(q3(t,p,z,f,y)),P=Br(t.doc,Q(f,0),Q(y,be(t.doc,y).text.length));S.length>1&&P.length>1;)if(_e(S)==_e(P))S.pop(),P.pop(),y--;else if(S[0]==P[0])S.shift(),P.shift(),f++;else break;for(var I=0,W=0,q=S[0],te=P[0],ae=Math.min(q.length,te.length);I<ae&&q.charCodeAt(I)==te.charCodeAt(I);)++I;for(var he=_e(S),se=_e(P),pe=Math.min(he.length-(S.length==1?I:0),se.length-(P.length==1?I:0));W<pe&&he.charCodeAt(he.length-W-1)==se.charCodeAt(se.length-W-1);)++W;if(S.length==1&&P.length==1&&f==a.line)for(;I&&I>a.ch&&he.charCodeAt(he.length-W-1)==se.charCodeAt(se.length-W-1);)I--,W++;S[S.length-1]=he.slice(0,he.length-W).replace(/^\u200b+/,""),S[0]=S[0].slice(I).replace(/\u200b+$/,"");var Le=Q(f,I),ze=Q(y,P.length?_e(P).length-W:0);if(S.length>1||S[0]||C(Le,ze))return Wn(t.doc,S,Le,ze,"+input"),!0},Ke.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ke.prototype.reset=function(){this.forceCompositionEnd()},Ke.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ke.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},Ke.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&Xt(this.cm,function(){return Vt(t.cm)})},Ke.prototype.setUneditable=function(t){t.contentEditable="false"},Ke.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||xt(this.cm,W1)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},Ke.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Ke.prototype.onContextMenu=function(){},Ke.prototype.resetPosition=function(){},Ke.prototype.needsContentAttribute=!0;function Fd(t,r){var s=f1(t,r.line);if(!s||s.hidden)return null;var a=be(t.doc,r.line),c=f0(s,a,r.line),h=Kt(a,t.doc.direction),f="left";if(h){var p=at(h,r.ch);f=p%2?"right":"left"}var g=v0(c.map,r.ch,f);return g.offset=g.collapse=="right"?g.end:g.start,g}function G3(t){for(var r=t;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function Kn(t,r){return r&&(t.bad=!0),t}function q3(t,r,s,a,c){var h="",f=!1,p=t.doc.lineSeparator(),g=!1;function y(I){return function(W){return W.id==I}}function z(){f&&(h+=p,g&&(h+=p),f=g=!1)}function S(I){I&&(z(),h+=I)}function P(I){if(I.nodeType==1){var W=I.getAttribute("cm-text");if(W){S(W);return}var q=I.getAttribute("cm-marker"),te;if(q){var ae=t.findMarks(Q(a,0),Q(c+1,0),y(+q));ae.length&&(te=ae[0].find(0))&&S(Br(t.doc,te.from,te.to).join(p));return}if(I.getAttribute("contenteditable")=="false")return;var he=/^(pre|div|p|li|table|br)$/i.test(I.nodeName);if(!/^br$/i.test(I.nodeName)&&I.textContent.length==0)return;he&&z();for(var se=0;se<I.childNodes.length;se++)P(I.childNodes[se]);/^(pre|p)$/i.test(I.nodeName)&&(g=!0),he&&(f=!0)}else I.nodeType==3&&S(I.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;P(r),r!=s;)r=r.nextSibling,g=!1;return h}function Ts(t,r,s){var a;if(r==t.display.lineDiv){if(a=t.display.lineDiv.childNodes[s],!a)return Kn(t.clipPos(Q(t.display.viewTo-1)),!0);r=null,s=0}else for(a=r;;a=a.parentNode){if(!a||a==t.display.lineDiv)return null;if(a.parentNode&&a.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var h=t.display.view[c];if(h.node==a)return K3(h,r,s)}}function K3(t,r,s){var a=t.text.firstChild,c=!1;if(!r||!ne(a,r))return Kn(Q(je(t.line),0),!0);if(r==a&&(c=!0,r=a.childNodes[s],s=0,!r)){var h=t.rest?_e(t.rest):t.line;return Kn(Q(je(h),h.text.length),c)}var f=r.nodeType==3?r:null,p=r;for(!f&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(f=r.firstChild,s&&(s=f.nodeValue.length));p.parentNode!=a;)p=p.parentNode;var g=t.measure,y=g.maps;function z(te,ae,he){for(var se=-1;se<(y?y.length:0);se++)for(var pe=se<0?g.map:y[se],Le=0;Le<pe.length;Le+=3){var ze=pe[Le+2];if(ze==te||ze==ae){var Pe=je(se<0?t.line:t.rest[se]),Je=pe[Le]+he;return(he<0||ze!=te)&&(Je=pe[Le+(he?1:0)]),Q(Pe,Je)}}}var S=z(f,p,s);if(S)return Kn(S,c);for(var P=p.nextSibling,I=f?f.nodeValue.length-s:0;P;P=P.nextSibling){if(S=z(P,P.firstChild,0),S)return Kn(Q(S.line,S.ch-I),c);I+=P.textContent.length}for(var W=p.previousSibling,q=s;W;W=W.previousSibling){if(S=z(W,W.firstChild,-1),S)return Kn(Q(S.line,S.ch+q),c);q+=W.textContent.length}}var ut=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Be,this.hasSelection=!1,this.composing=null};ut.prototype.init=function(t){var r=this,s=this,a=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),_&&(c.style.width="0px"),Se(c,"input",function(){b&&m>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),Se(c,"paste",function(f){ft(a,f)||Ad(f,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(f){if(!ft(a,f)){if(a.somethingSelected())Ms({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var p=Dd(a);Ms({lineWise:!0,text:p.text}),f.type=="cut"?a.setSelections(p.ranges,null,De):(s.prevInput="",c.value=p.text.join(`
3008
- `),ot(c))}else return;f.type=="cut"&&(a.state.cutIncoming=+new Date)}}Se(c,"cut",h),Se(c,"copy",h),Se(t.scroller,"paste",function(f){if(!(ai(t,f)||ft(a,f))){if(!c.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Se(t.lineSpace,"selectstart",function(f){ai(t,f)||_t(f)}),Se(c,"compositionstart",function(){var f=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:f,range:a.markText(f,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Se(c,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},ut.prototype.createField=function(t){this.wrapper=Hd(),this.textarea=this.wrapper.firstChild},ut.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ut.prototype.prepareSelection=function(){var t=this.cm,r=t.display,s=t.doc,a=T0(t);if(t.options.moveInputWithCursor){var c=xr(t,s.sel.primary().head,"div"),h=r.wrapper.getBoundingClientRect(),f=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,c.top+f.top-h.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,c.left+f.left-h.left))}return a},ut.prototype.showSelection=function(t){var r=this.cm,s=r.display;O(s.cursorDiv,t.cursors),O(s.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ut.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&ot(this.textarea),b&&m>=9&&(this.hasSelection=s)}else t||(this.prevInput=this.textarea.value="",b&&m>=9&&(this.hasSelection=null))}},ut.prototype.getField=function(){return this.textarea},ut.prototype.supportsTouch=function(){return!1},ut.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||ye()!=this.textarea))try{this.textarea.focus()}catch{}},ut.prototype.blur=function(){this.textarea.blur()},ut.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ut.prototype.receivedFocus=function(){this.slowPoll()},ut.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},ut.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!t?(t=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},ut.prototype.poll=function(){var t=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||Xa(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var c=s.value;if(c==a&&!r.somethingSelected())return!1;if(b&&m>=9&&this.hasSelection===c||B&&/[\uf700-\uf7ff]/.test(c))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var h=c.charCodeAt(0);if(h==8203&&!a&&(a="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,p=Math.min(a.length,c.length);f<p&&a.charCodeAt(f)==c.charCodeAt(f);)++f;return Xt(r,function(){W1(r,c.slice(f),a.length-f,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
3009
- `)>-1?s.value=t.prevInput="":t.prevInput=c,t.composing&&(t.composing.range.clear(),t.composing.range=r.markText(t.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ut.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ut.prototype.onKeyPress=function(){b&&m>=9&&(this.hasSelection=null),this.fastPoll()},ut.prototype.onContextMenu=function(t){var r=this,s=r.cm,a=s.display,c=r.textarea;r.contextMenuPending&&r.contextMenuPending();var h=Ki(s,t),f=a.scroller.scrollTop;if(!h||$)return;var p=s.options.resetSelectionOnContextMenu;p&&s.doc.sel.contains(h)==-1&&xt(s,At)(s.doc,Si(h),De);var g=c.style.cssText,y=r.wrapper.style.cssText,z=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
3003
+ `)&&(W=q=Q(W.line,0)));var te={from:W,to:q,text:y?y[P%y.length]:g,origin:c||(p?"paste":t.state.cutIncoming>f?"cut":"+input")};Zn(t.doc,te),wt(t,"inputRead",t,te)}r&&!p&&Dd(t,r),Rn(t),t.curOp.updateInput<2&&(t.curOp.updateInput=S),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Pd(t,r){var s=t.clipboardData&&t.clipboardData.getData("Text");if(s)return t.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Xt(r,function(){return W1(r,s,0,null,"paste")}),!0}function Dd(t,r){if(!(!t.options.electricChars||!t.options.smartIndent))for(var s=t.doc.sel,a=s.ranges.length-1;a>=0;a--){var c=s.ranges[a];if(!(c.head.ch>100||a&&s.ranges[a-1].head.line==c.head.line)){var h=t.getModeAt(c.head),f=!1;if(h.electricChars){for(var p=0;p<h.electricChars.length;p++)if(r.indexOf(h.electricChars.charAt(p))>-1){f=la(t,c.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(be(t.doc,c.head.line).text.slice(0,c.head.ch))&&(f=la(t,c.head.line,"smart"));f&&wt(t,"electricInput",t,c.head.line)}}}function Nd(t){for(var r=[],s=[],a=0;a<t.doc.sel.ranges.length;a++){var c=t.doc.sel.ranges[a].head.line,h={anchor:Q(c,0),head:Q(c+1,0)};s.push(h),r.push(t.getRange(h.anchor,h.head))}return{text:r,ranges:s}}function Hd(t,r,s,a){t.setAttribute("autocorrect",s?"":"off"),t.setAttribute("autocapitalize",a?"":"off"),t.setAttribute("spellcheck",!!r)}function Rd(){var t=x("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=x("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?t.style.width="1000px":t.setAttribute("wrap","off"),_&&(t.style.border="1px solid black"),Hd(t),r}function Y3(t){var r=t.optionHandlers,s=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,c){var h=this.options,f=h[a];h[a]==c&&a!="mode"||(h[a]=c,r.hasOwnProperty(a)&&xt(this,r[a])(this,c,f),Oe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,c){this.state.keyMaps[c?"push":"unshift"](zs(a))},removeKeyMap:function(a){for(var c=this.state.keyMaps,h=0;h<c.length;++h)if(c[h]==a||c[h].name==a)return c.splice(h,1),!0},addOverlay:Nt(function(a,c){var h=a.token?a:t.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");ct(this.state.overlays,{mode:h,modeSpec:a,opaque:c&&c.opaque,priority:c&&c.priority||0},function(f){return f.priority}),this.state.modeGen++,Vt(this)}),removeOverlay:Nt(function(a){for(var c=this.state.overlays,h=0;h<c.length;++h){var f=c[h].modeSpec;if(f==a||typeof a=="string"&&f.name==a){c.splice(h,1),this.state.modeGen++,Vt(this);return}}}),indentLine:Nt(function(a,c,h){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),ji(this.doc,a)&&la(this,a,c,h)}),indentSelection:Nt(function(a){for(var c=this.doc.sel.ranges,h=-1,f=0;f<c.length;f++){var p=c[f];if(p.empty())p.head.line>h&&(la(this,p.head.line,a,!0),h=p.head.line,f==this.doc.sel.primIndex&&Rn(this));else{var g=p.from(),y=p.to(),z=Math.max(h,g.line);h=Math.min(this.lastLine(),y.line-(y.ch?0:1))+1;for(var S=z;S<h;++S)la(this,S,a);var P=this.doc.sel.ranges;g.ch==0&&c.length==P.length&&P[f].from().ch>0&&D1(this.doc,f,new Ge(g,P[f].to()),De)}}}),getTokenAt:function(a,c){return Gu(this,a,c)},getLineTokens:function(a,c){return Gu(this,Q(a),c,!0)},getTokenTypeAt:function(a){a=de(this.doc,a);var c=Wu(this,be(this.doc,a.line)),h=0,f=(c.length-1)/2,p=a.ch,g;if(p==0)g=c[2];else for(;;){var y=h+f>>1;if((y?c[y*2-1]:0)>=p)f=y;else if(c[y*2+1]<p)h=y+1;else{g=c[y*2+2];break}}var z=g?g.indexOf("overlay "):-1;return z<0?g:z==0?null:g.slice(0,z-1)},getModeAt:function(a){var c=this.doc.mode;return c.innerMode?t.innerMode(c,this.getTokenAt(a).state).mode:c},getHelper:function(a,c){return this.getHelpers(a,c)[0]},getHelpers:function(a,c){var h=[];if(!s.hasOwnProperty(c))return h;var f=s[c],p=this.getModeAt(a);if(typeof p[c]=="string")f[p[c]]&&h.push(f[p[c]]);else if(p[c])for(var g=0;g<p[c].length;g++){var y=f[p[c][g]];y&&h.push(y)}else p.helperType&&f[p.helperType]?h.push(f[p.helperType]):f[p.name]&&h.push(f[p.name]);for(var z=0;z<f._global.length;z++){var S=f._global[z];S.pred(p,this)&&ge(h,S.val)==-1&&h.push(S.val)}return h},getStateAfter:function(a,c){var h=this.doc;return a=Fe(h,a==null?h.first+h.size-1:a),Do(this,a+1,c).state},cursorCoords:function(a,c){var h,f=this.doc.sel.primary();return a==null?h=f.head:typeof a=="object"?h=de(this.doc,a):h=a?f.from():f.to(),xr(this,h,c||"page")},charCoords:function(a,c){return ls(this,de(this.doc,a),c||"page")},coordsChar:function(a,c){return a=x0(this,a,c||"page"),v1(this,a.left,a.top)},lineAtHeight:function(a,c){return a=x0(this,{top:a,left:0},c||"page").top,Vr(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,c,h){var f=!1,p;if(typeof a=="number"){var g=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>g&&(a=g,f=!0),p=be(this.doc,a)}else p=a;return ss(this,p,{top:0,left:0},c||"page",h||f).top+(f?this.doc.height-oi(p):0)},defaultTextHeight:function(){return Dn(this.display)},defaultCharWidth:function(){return Nn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,c,h,f,p){var g=this.display;a=xr(this,de(this.doc,a));var y=a.bottom,z=a.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),g.sizer.appendChild(c),f=="over")y=a.top;else if(f=="above"||f=="near"){var S=Math.max(g.wrapper.clientHeight,this.doc.height),P=Math.max(g.sizer.clientWidth,g.lineSpace.clientWidth);(f=="above"||a.bottom+c.offsetHeight>S)&&a.top>c.offsetHeight?y=a.top-c.offsetHeight:a.bottom+c.offsetHeight<=S&&(y=a.bottom),z+c.offsetWidth>P&&(z=P-c.offsetWidth)}c.style.top=y+"px",c.style.left=c.style.right="",p=="right"?(z=g.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(p=="left"?z=0:p=="middle"&&(z=(g.sizer.clientWidth-c.offsetWidth)/2),c.style.left=z+"px"),h&&G4(this,{left:z,top:y,right:z+c.offsetWidth,bottom:y+c.offsetHeight})},triggerOnKeyDown:Nt(Md),triggerOnKeyPress:Nt(kd),triggerOnKeyUp:Td,triggerOnMouseDown:Nt(Od),execCommand:function(a){if(na.hasOwnProperty(a))return na[a].call(null,this)},triggerElectric:Nt(function(a){Dd(this,a)}),findPosH:function(a,c,h,f){var p=1;c<0&&(p=-1,c=-c);for(var g=de(this.doc,a),y=0;y<c&&(g=U1(this.doc,g,p,h,f),!g.hitSide);++y);return g},moveH:Nt(function(a,c){var h=this;this.extendSelectionsBy(function(f){return h.display.shift||h.doc.extend||f.empty()?U1(h.doc,f.head,a,c,h.options.rtlMoveVisually):a<0?f.from():f.to()},Te)}),deleteH:Nt(function(a,c){var h=this.doc.sel,f=this.doc;h.somethingSelected()?f.replaceSelection("",null,"+delete"):Gn(this,function(p){var g=U1(f,p.head,a,c,!1);return a<0?{from:g,to:p.head}:{from:p.head,to:g}})}),findPosV:function(a,c,h,f){var p=1,g=f;c<0&&(p=-1,c=-c);for(var y=de(this.doc,a),z=0;z<c;++z){var S=xr(this,y,"div");if(g==null?g=S.left:S.left=g,y=Fd(this,S,p,h),y.hitSide)break}return y},moveV:Nt(function(a,c){var h=this,f=this.doc,p=[],g=!this.display.shift&&!f.extend&&f.sel.somethingSelected();if(f.extendSelectionsBy(function(z){if(g)return a<0?z.from():z.to();var S=xr(h,z.head,"div");z.goalColumn!=null&&(S.left=z.goalColumn),p.push(S.left);var P=Fd(h,S,a,c);return c=="page"&&z==f.sel.primary()&&S1(h,ls(h,P,"div").top-S.top),P},Te),p.length)for(var y=0;y<f.sel.ranges.length;y++)f.sel.ranges[y].goalColumn=p[y]}),findWordAt:function(a){var c=this.doc,h=be(c,a.line).text,f=a.ch,p=a.ch;if(h){var g=this.getHelper(a,"wordChars");(a.sticky=="before"||p==h.length)&&f?--f:++p;for(var y=h.charAt(f),z=R(y,g)?function(S){return R(S,g)}:/\s/.test(y)?function(S){return/\s/.test(S)}:function(S){return!/\s/.test(S)&&!R(S)};f>0&&z(h.charAt(f-1));)--f;for(;p<h.length&&z(h.charAt(p));)++p}return new Ge(Q(a.line,f),Q(a.line,p))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ke(this.display.cursorDiv,"CodeMirror-overwrite"):J(this.display.cursorDiv,"CodeMirror-overwrite"),Oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ye()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Nt(function(a,c){Zo(this,a,c)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-Ur(this)-this.display.barHeight,width:a.scrollWidth-Ur(this)-this.display.barWidth,clientHeight:h1(this),clientWidth:Gi(this)}},scrollIntoView:Nt(function(a,c){a==null?(a={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof a=="number"?a={from:Q(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=c||0,a.from.line!=null?q4(this,a):_0(this,a.from,a.to,a.margin)}),setSize:Nt(function(a,c){var h=this,f=function(g){return typeof g=="number"||/^\d+$/.test(String(g))?g+"px":g};a!=null&&(this.display.wrapper.style.width=f(a)),c!=null&&(this.display.wrapper.style.height=f(c)),this.options.lineWrapping&&y0(this);var p=this.display.viewFrom;this.doc.iter(p,this.display.viewTo,function(g){if(g.widgets){for(var y=0;y<g.widgets.length;y++)if(g.widgets[y].noHScroll){zi(h,p,"widget");break}}++p}),this.curOp.forceUpdate=!0,Oe(this,"refresh",this)}),operation:function(a){return Xt(this,a)},startOperation:function(){return Qi(this)},endOperation:function(){return en(this)},refresh:Nt(function(){var a=this.display.cachedTextHeight;Vt(this),this.curOp.forceUpdate=!0,Bo(this),Zo(this,this.doc.scrollLeft,this.doc.scrollTop),k1(this.display),(a==null||Math.abs(a-Dn(this.display))>.5||this.options.lineWrapping)&&C1(this),Oe(this,"refresh",this)}),swapDoc:Nt(function(a){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),j0(this,a),Bo(this),this.display.input.reset(),Zo(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,wt(this,"swapDoc",this,c),c}),phrase:function(a){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,a)?c[a]:a},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Rr(t),t.registerHelper=function(a,c,h){s.hasOwnProperty(a)||(s[a]=t[a]={_global:[]}),s[a][c]=h},t.registerGlobalHelper=function(a,c,h,f){t.registerHelper(a,c,f),s[a]._global.push({pred:h,val:f})}}function U1(t,r,s,a,c){var h=r,f=s,p=be(t,r.line),g=c&&t.direction=="rtl"?-s:s;function y(){var he=r.line+g;return he<t.first||he>=t.first+t.size?!1:(r=new Q(he,r.ch,r.sticky),p=be(t,he))}function z(he){var se;if(a=="codepoint"){var pe=p.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(pe))se=null;else{var Le=s>0?pe>=55296&&pe<56320:pe>=56320&&pe<57343;se=new Q(r.line,Math.max(0,Math.min(p.text.length,r.ch+s*(Le?2:1))),-s)}}else c?se=E3(t.cm,p,r,s):se=H1(p,r,s);if(se==null)if(!he&&y())r=R1(c,t.cm,p,r.line,g);else return!1;else r=se;return!0}if(a=="char"||a=="codepoint")z();else if(a=="column")z(!0);else if(a=="word"||a=="group")for(var S=null,P=a=="group",A=t.cm&&t.cm.getHelper(r,"wordChars"),W=!0;!(s<0&&!z(!W));W=!1){var q=p.text.charAt(r.ch)||`
3004
+ `,te=R(q,A)?"w":P&&q==`
3005
+ `?"n":!P||/\s/.test(q)?null:"p";if(P&&!W&&!te&&(te="s"),S&&S!=te){s<0&&(s=1,z(),r.sticky="after");break}if(te&&(S=te),s>0&&!z(!W))break}var ae=Cs(t,r,h,f,!0);return k(h,ae)&&(ae.hitSide=!0),ae}function Fd(t,r,s,a){var c=t.doc,h=r.left,f;if(a=="page"){var p=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),g=Math.max(p-.5*Dn(t.display),3);f=(s>0?r.bottom:r.top)+s*g}else a=="line"&&(f=s>0?r.bottom+3:r.top-3);for(var y;y=v1(t,h,f),!!y.outside;){if(s<0?f<=0:f>=c.height){y.hitSide=!0;break}f+=s*5}return y}var Ke=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ke.prototype.init=function(t){var r=this,s=this,a=s.cm,c=s.div=t.lineDiv;c.contentEditable=!0,Hd(c,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(p){for(var g=p.target;g;g=g.parentNode){if(g==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(g.className))break}return!1}Se(c,"paste",function(p){!h(p)||ft(a,p)||Pd(p,a)||m<=11&&setTimeout(xt(a,function(){return r.updateFromDOM()}),20)}),Se(c,"compositionstart",function(p){r.composing={data:p.data,done:!1}}),Se(c,"compositionupdate",function(p){r.composing||(r.composing={data:p.data,done:!1})}),Se(c,"compositionend",function(p){r.composing&&(p.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Se(c,"touchstart",function(){return s.forceCompositionEnd()}),Se(c,"input",function(){r.composing||r.readFromDOMSoon()});function f(p){if(!(!h(p)||ft(a,p))){if(a.somethingSelected())Ms({lineWise:!1,text:a.getSelections()}),p.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var g=Nd(a);Ms({lineWise:!0,text:g.text}),p.type=="cut"&&a.operation(function(){a.setSelections(g.ranges,0,De),a.replaceSelection("",null,"cut")})}else return;if(p.clipboardData){p.clipboardData.clearData();var y=Lr.text.join(`
3006
+ `);if(p.clipboardData.setData("Text",y),p.clipboardData.getData("Text")==y){p.preventDefault();return}}var z=Rd(),S=z.firstChild;a.display.lineSpace.insertBefore(z,a.display.lineSpace.firstChild),S.value=Lr.text.join(`
3007
+ `);var P=ye();ot(S),setTimeout(function(){a.display.lineSpace.removeChild(z),P.focus(),P==c&&s.showPrimarySelection()},50)}}Se(c,"copy",f),Se(c,"cut",f)},Ke.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Ke.prototype.prepareSelection=function(){var t=k0(this.cm,!1);return t.focus=ye()==this.div,t},Ke.prototype.showSelection=function(t,r){!t||!this.cm.display.view.length||((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ke.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ke.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),c=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||c.line<r.display.viewFrom){t.removeAllRanges();return}var h=Ts(r,t.anchorNode,t.anchorOffset),f=Ts(r,t.focusNode,t.focusOffset);if(!(h&&!h.bad&&f&&!f.bad&&C($e(h,f),a)==0&&C(ee(h,f),c)==0)){var p=r.display.view,g=a.line>=r.display.viewFrom&&Bd(r,a)||{node:p[0].measure.map[2],offset:0},y=c.line<r.display.viewTo&&Bd(r,c);if(!y){var z=p[p.length-1].measure,S=z.maps?z.maps[z.maps.length-1]:z.map;y={node:S[S.length-1],offset:S[S.length-2]-S[S.length-3]}}if(!g||!y){t.removeAllRanges();return}var P=t.rangeCount&&t.getRangeAt(0),A;try{A=U(g.node,g.offset,y.offset,y.node)}catch{}A&&(!l&&r.state.focused?(t.collapse(g.node,g.offset),A.collapsed||(t.removeAllRanges(),t.addRange(A))):(t.removeAllRanges(),t.addRange(A)),P&&t.anchorNode==null?t.addRange(P):l&&this.startGracePeriod()),this.rememberSelection()}},Ke.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},Ke.prototype.showMultipleSelections=function(t){O(this.cm.display.cursorDiv,t.cursors),O(this.cm.display.selectionDiv,t.selection)},Ke.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ke.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return ne(this.div,r)},Ke.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ye()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ke.prototype.blur=function(){this.div.blur()},Ke.prototype.getField=function(){return this.div},Ke.prototype.supportsTouch=function(){return!0},Ke.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Xt(this.cm,function(){return t.cm.curOp.selectionChanged=!0});function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Ke.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ke.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),r=this.cm;if(D&&T&&this.cm.display.gutterSpecs.length&&X3(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ts(r,t.anchorNode,t.anchorOffset),a=Ts(r,t.focusNode,t.focusOffset);s&&a&&Xt(r,function(){It(r.doc,Si(s,a),De),(s.bad||a.bad)&&(r.curOp.selectionChanged=!0)})}}},Ke.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,r=t.display,s=t.doc.sel.primary(),a=s.from(),c=s.to();if(a.ch==0&&a.line>t.firstLine()&&(a=Q(a.line-1,be(t.doc,a.line-1).length)),c.ch==be(t.doc,c.line).text.length&&c.line<t.lastLine()&&(c=Q(c.line+1,0)),a.line<r.viewFrom||c.line>r.viewTo-1)return!1;var h,f,p;a.line==r.viewFrom||(h=Yi(t,a.line))==0?(f=je(r.view[0].line),p=r.view[0].node):(f=je(r.view[h].line),p=r.view[h-1].node.nextSibling);var g=Yi(t,c.line),y,z;if(g==r.view.length-1?(y=r.viewTo-1,z=r.lineDiv.lastChild):(y=je(r.view[g+1].line)-1,z=r.view[g+1].node.previousSibling),!p)return!1;for(var S=t.doc.splitLines(J3(t,p,z,f,y)),P=Br(t.doc,Q(f,0),Q(y,be(t.doc,y).text.length));S.length>1&&P.length>1;)if(_e(S)==_e(P))S.pop(),P.pop(),y--;else if(S[0]==P[0])S.shift(),P.shift(),f++;else break;for(var A=0,W=0,q=S[0],te=P[0],ae=Math.min(q.length,te.length);A<ae&&q.charCodeAt(A)==te.charCodeAt(A);)++A;for(var he=_e(S),se=_e(P),pe=Math.min(he.length-(S.length==1?A:0),se.length-(P.length==1?A:0));W<pe&&he.charCodeAt(he.length-W-1)==se.charCodeAt(se.length-W-1);)++W;if(S.length==1&&P.length==1&&f==a.line)for(;A&&A>a.ch&&he.charCodeAt(he.length-W-1)==se.charCodeAt(se.length-W-1);)A--,W++;S[S.length-1]=he.slice(0,he.length-W).replace(/^\u200b+/,""),S[0]=S[0].slice(A).replace(/\u200b+$/,"");var Le=Q(f,A),ze=Q(y,P.length?_e(P).length-W:0);if(S.length>1||S[0]||C(Le,ze))return Wn(t.doc,S,Le,ze,"+input"),!0},Ke.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ke.prototype.reset=function(){this.forceCompositionEnd()},Ke.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ke.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},Ke.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&Xt(this.cm,function(){return Vt(t.cm)})},Ke.prototype.setUneditable=function(t){t.contentEditable="false"},Ke.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||xt(this.cm,W1)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},Ke.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},Ke.prototype.onContextMenu=function(){},Ke.prototype.resetPosition=function(){},Ke.prototype.needsContentAttribute=!0;function Bd(t,r){var s=f1(t,r.line);if(!s||s.hidden)return null;var a=be(t.doc,r.line),c=p0(s,a,r.line),h=Kt(a,t.doc.direction),f="left";if(h){var p=at(h,r.ch);f=p%2?"right":"left"}var g=b0(c.map,r.ch,f);return g.offset=g.collapse=="right"?g.end:g.start,g}function X3(t){for(var r=t;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function Kn(t,r){return r&&(t.bad=!0),t}function J3(t,r,s,a,c){var h="",f=!1,p=t.doc.lineSeparator(),g=!1;function y(A){return function(W){return W.id==A}}function z(){f&&(h+=p,g&&(h+=p),f=g=!1)}function S(A){A&&(z(),h+=A)}function P(A){if(A.nodeType==1){var W=A.getAttribute("cm-text");if(W){S(W);return}var q=A.getAttribute("cm-marker"),te;if(q){var ae=t.findMarks(Q(a,0),Q(c+1,0),y(+q));ae.length&&(te=ae[0].find(0))&&S(Br(t.doc,te.from,te.to).join(p));return}if(A.getAttribute("contenteditable")=="false")return;var he=/^(pre|div|p|li|table|br)$/i.test(A.nodeName);if(!/^br$/i.test(A.nodeName)&&A.textContent.length==0)return;he&&z();for(var se=0;se<A.childNodes.length;se++)P(A.childNodes[se]);/^(pre|p)$/i.test(A.nodeName)&&(g=!0),he&&(f=!0)}else A.nodeType==3&&S(A.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;P(r),r!=s;)r=r.nextSibling,g=!1;return h}function Ts(t,r,s){var a;if(r==t.display.lineDiv){if(a=t.display.lineDiv.childNodes[s],!a)return Kn(t.clipPos(Q(t.display.viewTo-1)),!0);r=null,s=0}else for(a=r;;a=a.parentNode){if(!a||a==t.display.lineDiv)return null;if(a.parentNode&&a.parentNode==t.display.lineDiv)break}for(var c=0;c<t.display.view.length;c++){var h=t.display.view[c];if(h.node==a)return Q3(h,r,s)}}function Q3(t,r,s){var a=t.text.firstChild,c=!1;if(!r||!ne(a,r))return Kn(Q(je(t.line),0),!0);if(r==a&&(c=!0,r=a.childNodes[s],s=0,!r)){var h=t.rest?_e(t.rest):t.line;return Kn(Q(je(h),h.text.length),c)}var f=r.nodeType==3?r:null,p=r;for(!f&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(f=r.firstChild,s&&(s=f.nodeValue.length));p.parentNode!=a;)p=p.parentNode;var g=t.measure,y=g.maps;function z(te,ae,he){for(var se=-1;se<(y?y.length:0);se++)for(var pe=se<0?g.map:y[se],Le=0;Le<pe.length;Le+=3){var ze=pe[Le+2];if(ze==te||ze==ae){var Pe=je(se<0?t.line:t.rest[se]),Je=pe[Le]+he;return(he<0||ze!=te)&&(Je=pe[Le+(he?1:0)]),Q(Pe,Je)}}}var S=z(f,p,s);if(S)return Kn(S,c);for(var P=p.nextSibling,A=f?f.nodeValue.length-s:0;P;P=P.nextSibling){if(S=z(P,P.firstChild,0),S)return Kn(Q(S.line,S.ch-A),c);A+=P.textContent.length}for(var W=p.previousSibling,q=s;W;W=W.previousSibling){if(S=z(W,W.firstChild,-1),S)return Kn(Q(S.line,S.ch+q),c);q+=W.textContent.length}}var ut=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Be,this.hasSelection=!1,this.composing=null};ut.prototype.init=function(t){var r=this,s=this,a=this.cm;this.createField(t);var c=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),_&&(c.style.width="0px"),Se(c,"input",function(){b&&m>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),Se(c,"paste",function(f){ft(a,f)||Pd(f,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(f){if(!ft(a,f)){if(a.somethingSelected())Ms({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var p=Nd(a);Ms({lineWise:!0,text:p.text}),f.type=="cut"?a.setSelections(p.ranges,null,De):(s.prevInput="",c.value=p.text.join(`
3008
+ `),ot(c))}else return;f.type=="cut"&&(a.state.cutIncoming=+new Date)}}Se(c,"cut",h),Se(c,"copy",h),Se(t.scroller,"paste",function(f){if(!(ai(t,f)||ft(a,f))){if(!c.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var p=new Event("paste");p.clipboardData=f.clipboardData,c.dispatchEvent(p)}}),Se(t.lineSpace,"selectstart",function(f){ai(t,f)||_t(f)}),Se(c,"compositionstart",function(){var f=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:f,range:a.markText(f,a.getCursor("to"),{className:"CodeMirror-composing"})}}),Se(c,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},ut.prototype.createField=function(t){this.wrapper=Rd(),this.textarea=this.wrapper.firstChild},ut.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},ut.prototype.prepareSelection=function(){var t=this.cm,r=t.display,s=t.doc,a=k0(t);if(t.options.moveInputWithCursor){var c=xr(t,s.sel.primary().head,"div"),h=r.wrapper.getBoundingClientRect(),f=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,c.top+f.top-h.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,c.left+f.left-h.left))}return a},ut.prototype.showSelection=function(t){var r=this.cm,s=r.display;O(s.cursorDiv,t.cursors),O(s.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},ut.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&ot(this.textarea),b&&m>=9&&(this.hasSelection=s)}else t||(this.prevInput=this.textarea.value="",b&&m>=9&&(this.hasSelection=null))}},ut.prototype.getField=function(){return this.textarea},ut.prototype.supportsTouch=function(){return!1},ut.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!I||ye()!=this.textarea))try{this.textarea.focus()}catch{}},ut.prototype.blur=function(){this.textarea.blur()},ut.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ut.prototype.receivedFocus=function(){this.slowPoll()},ut.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},ut.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!t?(t=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},ut.prototype.poll=function(){var t=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||Xa(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var c=s.value;if(c==a&&!r.somethingSelected())return!1;if(b&&m>=9&&this.hasSelection===c||B&&/[\uf700-\uf7ff]/.test(c))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var h=c.charCodeAt(0);if(h==8203&&!a&&(a="​"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var f=0,p=Math.min(a.length,c.length);f<p&&a.charCodeAt(f)==c.charCodeAt(f);)++f;return Xt(r,function(){W1(r,c.slice(f),a.length-f,null,t.composing?"*compose":null),c.length>1e3||c.indexOf(`
3009
+ `)>-1?s.value=t.prevInput="":t.prevInput=c,t.composing&&(t.composing.range.clear(),t.composing.range=r.markText(t.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ut.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ut.prototype.onKeyPress=function(){b&&m>=9&&(this.hasSelection=null),this.fastPoll()},ut.prototype.onContextMenu=function(t){var r=this,s=r.cm,a=s.display,c=r.textarea;r.contextMenuPending&&r.contextMenuPending();var h=Ki(s,t),f=a.scroller.scrollTop;if(!h||E)return;var p=s.options.resetSelectionOnContextMenu;p&&s.doc.sel.contains(h)==-1&&xt(s,It)(s.doc,Si(h),De);var g=c.style.cssText,y=r.wrapper.style.cssText,z=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
3010
3010
  top: `+(t.clientY-z.top-5)+"px; left: "+(t.clientX-z.left-5)+`px;
3011
3011
  z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
3012
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var S;M&&(S=window.scrollY),a.input.focus(),M&&window.scrollTo(null,S),a.input.reset(),s.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=I,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function P(){if(c.selectionStart!=null){var q=s.somethingSelected(),te="​"+(q?c.value:"");c.value="⇚",c.value=te,r.prevInput=q?"":"​",c.selectionStart=1,c.selectionEnd=te.length,a.selForContextMenu=s.doc.sel}}function I(){if(r.contextMenuPending==I&&(r.contextMenuPending=!1,r.wrapper.style.cssText=y,c.style.cssText=g,b&&m<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=f),c.selectionStart!=null)){(!b||b&&m<9)&&P();var q=0,te=function(){a.selForContextMenu==s.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&r.prevInput=="​"?xt(s,nd)(s):q++<10?a.detectingSelectAll=setTimeout(te,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(te,200)}}if(b&&m>=9&&P(),Me){Ui(t);var W=function(){Ft(window,"mouseup",W),setTimeout(I,20)};Se(window,"mouseup",W)}else setTimeout(I,50)},ut.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},ut.prototype.setUneditable=function(){},ut.prototype.needsContentAttribute=!1;function Y3(t,r){if(r=r?Ye(r):{},r.value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),r.autofocus==null){var s=ye();r.autofocus=s==t||t.getAttribute("autofocus")!=null&&s==document.body}function a(){t.value=p.getValue()}var c;if(t.form&&(Se(t.form,"submit",a),!r.leaveSubmitMethodAlone)){var h=t.form;c=h.submit;try{var f=h.submit=function(){a(),h.submit=c,h.submit(),h.submit=f}}catch{}}r.finishInit=function(g){g.save=a,g.getTextArea=function(){return t},g.toTextArea=function(){g.toTextArea=isNaN,a(),t.parentNode.removeChild(g.getWrapperElement()),t.style.display="",t.form&&(Ft(t.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var p=tt(function(g){return t.parentNode.insertBefore(g,t.nextSibling)},r);return p}function X3(t){t.off=Ft,t.on=Se,t.wheelEventPixels=n3,t.Doc=Zt,t.splitLines=Oo,t.countColumn=Xe,t.findColumn=ht,t.isWordChar=Ue,t.Pass=Ie,t.signal=Oe,t.Line=In,t.changeEnd=Mi,t.scrollbarModel=A0,t.Pos=Q,t.cmpPos=C,t.modes=pr,t.mimeModes=ar,t.resolveMode=$n,t.getMode=En,t.modeExtensions=Cr,t.extendMode=wr,t.copyState=sr,t.startState=_o,t.innerMode=Eo,t.commands=ia,t.keyMap=si,t.keyName=Cd,t.isModifierKey=md,t.lookupKey=jn,t.normalizeKeyMap=M3,t.StringStream=st,t.SharedTextMarker=ea,t.TextMarker=ki,t.LineWidget=Qo,t.e_preventDefault=_t,t.e_stopPropagation=On,t.e_stop=Ui,t.addClass=ke,t.contains=ne,t.rmClass=X,t.keyNames=Oi}V3(tt),j3(tt);var J3="iter insert remove copy getEditor constructor".split(" ");for(var ks in Zt.prototype)Zt.prototype.hasOwnProperty(ks)&&ge(J3,ks)<0&&(tt.prototype[ks]=function(t){return function(){return t.apply(this.doc,arguments)}}(Zt.prototype[ks]));return Rr(Zt),tt.inputStyles={textarea:ut,contenteditable:Ke},tt.defineMode=function(t){!tt.defaults.mode&&t!="null"&&(tt.defaults.mode=t),Qa.apply(this,arguments)},tt.defineMIME=ii,tt.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),tt.defineMIME("text/plain","null"),tt.defineExtension=function(t,r){tt.prototype[t]=r},tt.defineDocExtension=function(t,r){Zt.prototype[t]=r},tt.fromTextArea=Y3,X3(tt),tt.version="5.62.3",tt})})(Up);var Pr=Up.exports;const Di=hu(Pr),jp=`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
3013
- `,_L=J`
3012
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var S;M&&(S=window.scrollY),a.input.focus(),M&&window.scrollTo(null,S),a.input.reset(),s.somethingSelected()||(c.value=r.prevInput=" "),r.contextMenuPending=A,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function P(){if(c.selectionStart!=null){var q=s.somethingSelected(),te="​"+(q?c.value:"");c.value="⇚",c.value=te,r.prevInput=q?"":"​",c.selectionStart=1,c.selectionEnd=te.length,a.selForContextMenu=s.doc.sel}}function A(){if(r.contextMenuPending==A&&(r.contextMenuPending=!1,r.wrapper.style.cssText=y,c.style.cssText=g,b&&m<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=f),c.selectionStart!=null)){(!b||b&&m<9)&&P();var q=0,te=function(){a.selForContextMenu==s.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&r.prevInput=="​"?xt(s,od)(s):q++<10?a.detectingSelectAll=setTimeout(te,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(te,200)}}if(b&&m>=9&&P(),Me){Ui(t);var W=function(){Ft(window,"mouseup",W),setTimeout(A,20)};Se(window,"mouseup",W)}else setTimeout(A,50)},ut.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},ut.prototype.setUneditable=function(){},ut.prototype.needsContentAttribute=!1;function e7(t,r){if(r=r?Ye(r):{},r.value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),r.autofocus==null){var s=ye();r.autofocus=s==t||t.getAttribute("autofocus")!=null&&s==document.body}function a(){t.value=p.getValue()}var c;if(t.form&&(Se(t.form,"submit",a),!r.leaveSubmitMethodAlone)){var h=t.form;c=h.submit;try{var f=h.submit=function(){a(),h.submit=c,h.submit(),h.submit=f}}catch{}}r.finishInit=function(g){g.save=a,g.getTextArea=function(){return t},g.toTextArea=function(){g.toTextArea=isNaN,a(),t.parentNode.removeChild(g.getWrapperElement()),t.style.display="",t.form&&(Ft(t.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=c))}},t.style.display="none";var p=tt(function(g){return t.parentNode.insertBefore(g,t.nextSibling)},r);return p}function t7(t){t.off=Ft,t.on=Se,t.wheelEventPixels=l3,t.Doc=Zt,t.splitLines=$o,t.countColumn=Xe,t.findColumn=ht,t.isWordChar=Ue,t.Pass=Ae,t.signal=Oe,t.Line=An,t.changeEnd=Mi,t.scrollbarModel=P0,t.Pos=Q,t.cmpPos=C,t.modes=pr,t.mimeModes=ar,t.resolveMode=$n,t.getMode=En,t.modeExtensions=Cr,t.extendMode=wr,t.copyState=sr,t.startState=Ao,t.innerMode=_o,t.commands=na,t.keyMap=si,t.keyName=wd,t.isModifierKey=yd,t.lookupKey=jn,t.normalizeKeyMap=$3,t.StringStream=st,t.SharedTextMarker=ta,t.TextMarker=ki,t.LineWidget=ea,t.e_preventDefault=_t,t.e_stopPropagation=On,t.e_stop=Ui,t.addClass=ke,t.contains=ne,t.rmClass=J,t.keyNames=Oi}j3(tt),Y3(tt);var r7="iter insert remove copy getEditor constructor".split(" ");for(var ks in Zt.prototype)Zt.prototype.hasOwnProperty(ks)&&ge(r7,ks)<0&&(tt.prototype[ks]=function(t){return function(){return t.apply(this.doc,arguments)}}(Zt.prototype[ks]));return Rr(Zt),tt.inputStyles={textarea:ut,contenteditable:Ke},tt.defineMode=function(t){!tt.defaults.mode&&t!="null"&&(tt.defaults.mode=t),Qa.apply(this,arguments)},tt.defineMIME=ii,tt.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),tt.defineMIME("text/plain","null"),tt.defineExtension=function(t,r){tt.prototype[t]=r},tt.defineDocExtension=function(t,r){Zt.prototype[t]=r},tt.fromTextArea=e7,t7(tt),tt.version="5.62.3",tt})})(jp);var Pr=jp.exports;const Di=hu(Pr),Gp=`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:#14ff1480;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
3013
+ `,DL=X`
3014
3014
  .cm-s-skedulo .cm-header {
3015
3015
  color: blue;
3016
3016
  }
@@ -3090,12 +3090,12 @@ b`.split(/\n/).length!=3?function(t){for(var r=0,s=[],a=t.length;r<=a;){var c=t.
3090
3090
  .cm-invalidchar {
3091
3091
  color: #f00;
3092
3092
  }
3093
- `;(function(n,e){(function(i){i(Pr)})(function(i){i.overlayMode=function(o,l,d){return{startState:function(){return{base:i.startState(o),overlay:i.startState(l),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(u){return{base:i.copyState(o,u.base),overlay:i.copyState(l,u.overlay),basePos:u.basePos,baseCur:null,overlayPos:u.overlayPos,overlayCur:null}},token:function(u,v){return(u!=v.streamSeen||Math.min(v.basePos,v.overlayPos)<u.start)&&(v.streamSeen=u,v.basePos=v.overlayPos=u.start),u.start==v.basePos&&(v.baseCur=o.token(u,v.base),v.basePos=u.pos),u.start==v.overlayPos&&(u.pos=u.start,v.overlayCur=l.token(u,v.overlay),v.overlayPos=u.pos),u.pos=Math.min(v.basePos,v.overlayPos),v.overlayCur==null?v.baseCur:v.baseCur!=null&&v.overlay.combineTokens||d&&v.overlay.combineTokens==null?v.baseCur+" "+v.overlayCur:v.overlayCur},indent:o.indent&&function(u,v,b){return o.indent(u.base,v,b)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,b;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(b=l.blankLine(u.overlay)),b==null?v:d&&v!=null?v+" "+b:b}}}})})();(function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],l=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,u=["true","false"],v=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),u=new RegExp("(("+u.join(")|(")+"))\\b");function b(m,M){var L=m.peek();if(M.incomment)return m.skipTo("#}")?(m.eatWhile(/\#|}/),M.incomment=!1):m.skipToEnd(),"comment";if(M.intag){if(M.operator){if(M.operator=!1,m.match(u))return"atom";if(m.match(v))return"number"}if(M.sign){if(M.sign=!1,m.match(u))return"atom";if(m.match(v))return"number"}if(M.instring)return L==M.instring&&(M.instring=!1),m.next(),"string";if(L=="'"||L=='"')return M.instring=L,m.next(),"string";if(m.match(M.intag+"}")||m.eat("-")&&m.match(M.intag+"}"))return M.intag=!1,"tag";if(m.match(l))return M.operator=!0,"operator";if(m.match(d))M.sign=!0;else if(m.eat(" ")||m.sol()){if(m.match(o))return"keyword";if(m.match(u))return"atom";if(m.match(v))return"number";m.sol()&&m.next()}else m.next();return"variable"}else if(m.eat("{")){if(m.eat("#"))return M.incomment=!0,m.skipTo("#}")?(m.eatWhile(/\#|}/),M.incomment=!1):m.skipToEnd(),"comment";if(L=m.eat(/\{|%/))return M.intag=L,L=="{"&&(M.intag="}"),m.eat("-"),"tag"}m.next()}return{startState:function(){return{tokenize:b}},token:function(m,M){return M.tokenize(m,M)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),i.defineMIME("text/jinja2","jinja2")})})();var IL={exports:{}};(function(n,e){(function(i){i(Pr)})(function(i){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},l={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(d,u){var v=d.indentUnit,b={},m=u.htmlMode?o:l;for(var M in m)b[M]=m[M];for(var M in u)b[M]=u[M];var L,T;function $(x,w){function U(ke){return w.tokenize=ke,ke(x,w)}var ne=x.next();if(ne=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?U(oe("atom","]]>")):null:x.match("--")?U(oe("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),U(_(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),w.tokenize=oe("meta","?>"),"meta"):(L=x.eat("/")?"closeTag":"openTag",w.tokenize=H,"tag bracket");if(ne=="&"){var ye;return x.eat("#")?x.eat("x")?ye=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):ye=x.eatWhile(/[\d]/)&&x.eat(";"):ye=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),ye?"atom":"error"}else return x.eatWhile(/[^&<]/),null}$.isInText=!0;function H(x,w){var U=x.next();if(U==">"||U=="/"&&x.eat(">"))return w.tokenize=$,L=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return L="equals",null;if(U=="<"){w.tokenize=$,w.state=K,w.tagName=w.tagStart=null;var ne=w.tokenize(x,w);return ne?ne+" tag error":"tag error"}else return/[\'\"]/.test(U)?(w.tokenize=Y(U),w.stringStartCol=x.column(),w.tokenize(x,w)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Y(x){var w=function(U,ne){for(;!U.eol();)if(U.next()==x){ne.tokenize=H;break}return"string"};return w.isInAttribute=!0,w}function oe(x,w){return function(U,ne){for(;!U.eol();){if(U.match(w)){ne.tokenize=$;break}U.next()}return x}}function _(x){return function(w,U){for(var ne;(ne=w.next())!=null;){if(ne=="<")return U.tokenize=_(x+1),U.tokenize(w,U);if(ne==">")if(x==1){U.tokenize=$;break}else return U.tokenize=_(x-1),U.tokenize(w,U)}return"meta"}}function D(x,w,U){this.prev=x.context,this.tagName=w||"",this.indent=x.indented,this.startOfLine=U,(b.doNotIndent.hasOwnProperty(w)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function A(x){x.context&&(x.context=x.context.prev)}function B(x,w){for(var U;;){if(!x.context||(U=x.context.tagName,!b.contextGrabbers.hasOwnProperty(U)||!b.contextGrabbers[U].hasOwnProperty(w)))return;A(x)}}function K(x,w,U){return x=="openTag"?(U.tagStart=w.column(),ue):x=="closeTag"?le:K}function ue(x,w,U){return x=="word"?(U.tagName=w.current(),T="tag",ie):b.allowMissingTagName&&x=="endTag"?(T="tag bracket",ie(x,w,U)):(T="error",ue)}function le(x,w,U){if(x=="word"){var ne=w.current();return U.context&&U.context.tagName!=ne&&b.implicitlyClosed.hasOwnProperty(U.context.tagName)&&A(U),U.context&&U.context.tagName==ne||b.matchClosing===!1?(T="tag",me):(T="tag error",Me)}else return b.allowMissingTagName&&x=="endTag"?(T="tag bracket",me(x,w,U)):(T="error",Me)}function me(x,w,U){return x!="endTag"?(T="error",me):(A(U),K)}function Me(x,w,U){return T="error",me(x,w,U)}function ie(x,w,U){if(x=="word")return T="attribute",X;if(x=="endTag"||x=="selfcloseTag"){var ne=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,x=="selfcloseTag"||b.autoSelfClosers.hasOwnProperty(ne)?B(U,ne):(B(U,ne),U.context=new D(U,ne,ye==U.indented)),K}return T="error",ie}function X(x,w,U){return x=="equals"?V:(b.allowMissing||(T="error"),ie(x,w,U))}function V(x,w,U){return x=="string"?O:x=="word"&&b.allowUnquoted?(T="string",ie):(T="error",ie(x,w,U))}function O(x,w,U){return x=="string"?O:ie(x,w,U)}return{startState:function(x){var w={tokenize:$,state:K,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(w.baseIndent=x),w},token:function(x,w){if(!w.tagName&&x.sol()&&(w.indented=x.indentation()),x.eatSpace())return null;L=null;var U=w.tokenize(x,w);return(U||L)&&U!="comment"&&(T=null,w.state=w.state(L||U,x,w),T&&(U=T=="error"?U+" error":T)),U},indent:function(x,w,U){var ne=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(ne&&ne.noIndent)return i.Pass;if(x.tokenize!=H&&x.tokenize!=$)return U?U.match(/^(\s*)/)[0].length:0;if(x.tagName)return b.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(b.multilineTagIndentFactor||1);if(b.alignCDATA&&/<!\[CDATA\[/.test(w))return 0;var ye=w&&/^<(\/)?([\w_:\.-]*)/.exec(w);if(ye&&ye[1])for(;ne;)if(ne.tagName==ye[2]){ne=ne.prev;break}else if(b.implicitlyClosed.hasOwnProperty(ne.tagName))ne=ne.prev;else break;else if(ye)for(;ne;){var ke=b.contextGrabbers[ne.tagName];if(ke&&ke.hasOwnProperty(ye[2]))ne=ne.prev;else break}for(;ne&&ne.prev&&!ne.startOfLine;)ne=ne.prev;return ne?ne.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:b.htmlMode?"html":"xml",helperType:b.htmlMode?"html":"xml",skipAttribute:function(x){x.state==V&&(x.state=ie)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var w=[],U=x.context;U;U=U.prev)w.push(U.tagName);return w.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var AL=IL.exports,PL={exports:{}};(function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,b=l.json||v,m=l.trackScope!==!1,M=l.typescript,L=l.wordCharacters||/[\w$\xa1-\uffff]/,T=function(){function C(It){return{type:It,style:"keyword"}}var k=C("keyword a"),G=C("keyword b"),ee=C("keyword c"),$e=C("keyword d"),Fe=C("operator"),de={type:"atom",style:"atom"};return{if:C("if"),while:k,with:k,else:G,do:G,try:G,finally:G,return:$e,break:$e,continue:$e,new:C("new"),delete:ee,void:ee,throw:ee,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Fe,typeof:Fe,instanceof:Fe,true:de,false:de,null:de,undefined:de,NaN:de,Infinity:de,this:C("this"),class:C("class"),super:C("atom"),yield:ee,export:C("export"),import:C("import"),extends:ee,await:ee}}(),$=/[+\-*&%=<>!?|~^@]/,H=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Y(C){for(var k=!1,G,ee=!1;(G=C.next())!=null;){if(!k){if(G=="/"&&!ee)return;G=="["?ee=!0:ee&&G=="]"&&(ee=!1)}k=!k&&G=="\\"}}var oe,_;function D(C,k,G){return oe=C,_=G,k}function A(C,k){var G=C.next();if(G=='"'||G=="'")return k.tokenize=B(G),k.tokenize(C,k);if(G=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return D("number","number");if(G=="."&&C.match(".."))return D("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(G))return D(G);if(G=="="&&C.eat(">"))return D("=>","operator");if(G=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return D("number","number");if(/\d/.test(G))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),D("number","number");if(G=="/")return C.eat("*")?(k.tokenize=K,K(C,k)):C.eat("/")?(C.skipToEnd(),D("comment","comment")):Q(C,k,1)?(Y(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),D("regexp","string-2")):(C.eat("="),D("operator","operator",C.current()));if(G=="`")return k.tokenize=ue,ue(C,k);if(G=="#"&&C.peek()=="!")return C.skipToEnd(),D("meta","meta");if(G=="#"&&C.eatWhile(L))return D("variable","property");if(G=="<"&&C.match("!--")||G=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),D("comment","comment");if($.test(G))return(G!=">"||!k.lexical||k.lexical.type!=">")&&(C.eat("=")?(G=="!"||G=="=")&&C.eat("="):/[<>*+\-|&?]/.test(G)&&(C.eat(G),G==">"&&C.eat(G))),G=="?"&&C.eat(".")?D("."):D("operator","operator",C.current());if(L.test(G)){C.eatWhile(L);var ee=C.current();if(k.lastType!="."){if(T.propertyIsEnumerable(ee)){var $e=T[ee];return D($e.type,$e.style,ee)}if(ee=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return D("async","keyword",ee)}return D("variable","variable",ee)}}function B(C){return function(k,G){var ee=!1,$e;if(v&&k.peek()=="@"&&k.match(H))return G.tokenize=A,D("jsonld-keyword","meta");for(;($e=k.next())!=null&&!($e==C&&!ee);)ee=!ee&&$e=="\\";return ee||(G.tokenize=A),D("string","string")}}function K(C,k){for(var G=!1,ee;ee=C.next();){if(ee=="/"&&G){k.tokenize=A;break}G=ee=="*"}return D("comment","comment")}function ue(C,k){for(var G=!1,ee;(ee=C.next())!=null;){if(!G&&(ee=="`"||ee=="$"&&C.eat("{"))){k.tokenize=A;break}G=!G&&ee=="\\"}return D("quasi","string-2",C.current())}var le="([{}])";function me(C,k){k.fatArrowAt&&(k.fatArrowAt=null);var G=C.string.indexOf("=>",C.start);if(!(G<0)){if(M){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,G));ee&&(G=ee.index)}for(var $e=0,Fe=!1,de=G-1;de>=0;--de){var It=C.string.charAt(de),lr=le.indexOf(It);if(lr>=0&&lr<3){if(!$e){++de;break}if(--$e==0){It=="("&&(Fe=!0);break}}else if(lr>=3&&lr<6)++$e;else if(L.test(It))Fe=!0;else if(/["'\/`]/.test(It))for(;;--de){if(de==0)return;var _n=C.string.charAt(de-1);if(_n==It&&C.string.charAt(de-2)!="\\"){de--;break}}else if(Fe&&!$e){++de;break}}Fe&&!$e&&(k.fatArrowAt=de)}}var Me={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(C,k,G,ee,$e,Fe){this.indented=C,this.column=k,this.type=G,this.prev=$e,this.info=Fe,ee!=null&&(this.align=ee)}function X(C,k){if(!m)return!1;for(var G=C.localVars;G;G=G.next)if(G.name==k)return!0;for(var ee=C.context;ee;ee=ee.prev)for(var G=ee.vars;G;G=G.next)if(G.name==k)return!0}function V(C,k,G,ee,$e){var Fe=C.cc;for(O.state=C,O.stream=$e,O.marked=null,O.cc=Fe,O.style=k,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var de=Fe.length?Fe.pop():b?Te:De;if(de(G,ee)){for(;Fe.length&&Fe[Fe.length-1].lex;)Fe.pop()();return O.marked?O.marked:G=="variable"&&X(C,ee)?"variable-2":k}}}var O={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)O.cc.push(arguments[C])}function w(){return x.apply(null,arguments),!0}function U(C,k){for(var G=k;G;G=G.next)if(G.name==C)return!0;return!1}function ne(C){var k=O.state;if(O.marked="def",!!m){if(k.context){if(k.lexical.info=="var"&&k.context&&k.context.block){var G=ye(C,k.context);if(G!=null){k.context=G;return}}else if(!U(C,k.localVars)){k.localVars=new ot(C,k.localVars);return}}l.globalVars&&!U(C,k.globalVars)&&(k.globalVars=new ot(C,k.globalVars))}}function ye(C,k){if(k)if(k.block){var G=ye(C,k.prev);return G?G==k.prev?k:new Re(G,k.vars,!0):null}else return U(C,k.vars)?k:new Re(k.prev,new ot(C,k.vars),!1);else return null}function ke(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Re(C,k,G){this.prev=C,this.vars=k,this.block=G}function ot(C,k){this.name=C,this.next=k}var Et=new ot("this",new ot("arguments",null));function Ye(){O.state.context=new Re(O.state.context,O.state.localVars,!1),O.state.localVars=Et}function Xe(){O.state.context=new Re(O.state.context,O.state.localVars,!0),O.state.localVars=null}function Be(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Be.lex=!0;function ge(C,k){var G=function(){var ee=O.state,$e=ee.indented;if(ee.lexical.type=="stat")$e=ee.lexical.indented;else for(var Fe=ee.lexical;Fe&&Fe.type==")"&&Fe.align;Fe=Fe.prev)$e=Fe.indented;ee.lexical=new ie($e,O.stream.column(),C,null,ee.lexical,k)};return G.lex=!0,G}function ve(){var C=O.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}ve.lex=!0;function Ie(C){function k(G){return G==C?w():C==";"||G=="}"||G==")"||G=="]"?x():w(k)}return k}function De(C,k){return C=="var"?w(ge("vardef",k),To,Ie(";"),ve):C=="keyword a"?w(ge("form"),qt,De,ve):C=="keyword b"?w(ge("form"),De,ve):C=="keyword d"?O.stream.match(/^\s*$/,!1)?w():w(ge("stat"),_e,Ie(";"),ve):C=="debugger"?w(Ie(";")):C=="{"?w(ge("}"),Xe,Kt,ve,Be):C==";"?w():C=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==ve&&O.state.cc.pop()(),w(ge("form"),qt,De,ve,Xa)):C=="function"?w(pr):C=="for"?w(ge("form"),Xe,Ja,De,Be,ve):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form",C=="class"?C:k),En,ve)):C=="variable"?M&&k=="declare"?(O.marked="keyword",w(De)):M&&(k=="module"||k=="enum"||k=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",k=="enum"?w(Vr):k=="type"?w(Qa,Ie("operator"),Oe,Ie(";")):w(ge("form"),Bt,Ie("{"),ge("}"),Kt,ve,ve)):M&&k=="namespace"?(O.marked="keyword",w(ge("form"),Te,De,ve)):M&&k=="abstract"?(O.marked="keyword",w(De)):w(ge("stat"),Ne):C=="switch"?w(ge("form"),qt,Ie("{"),ge("}","switch"),Xe,Kt,ve,ve,Be):C=="case"?w(Te,Ie(":")):C=="default"?w(Ie(":")):C=="catch"?w(ge("form"),Ye,Ae,De,ve,Be):C=="export"?w(ge("stat"),Eo,ve):C=="import"?w(ge("stat"),st,ve):C=="async"?w(De):k=="@"?w(Te,De):x(ge("stat"),Te,Ie(";"),ve)}function Ae(C){if(C=="(")return w(ii,Ie(")"))}function Te(C,k){return ir(C,k,!1)}function ht(C,k){return ir(C,k,!0)}function qt(C){return C!="("?x():w(ge(")"),_e,Ie(")"),ve)}function ir(C,k,G){if(O.state.fatArrowAt==O.stream.start){var ee=G?Ue:Nr;if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Ie("=>"),ee,Be);if(C=="variable")return x(Ye,Bt,Ie("=>"),ee,Be)}var $e=G?ct:Ve;return Me.hasOwnProperty(C)?w($e):C=="function"?w(pr,$e):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form"),$n,ve)):C=="keyword c"||C=="async"?w(G?ht:Te):C=="("?w(ge(")"),_e,Ie(")"),ve,$e):C=="operator"||C=="spread"?w(G?ht:Te):C=="["?w(ge("]"),je,ve,$e):C=="{"?Wi(Hr,"}",null,$e):C=="quasi"?x(Qe,$e):C=="new"?w(R(G)):w()}function _e(C){return C.match(/[;\}\)\],]/)?x():x(Te)}function Ve(C,k){return C==","?w(_e):ct(C,k,!1)}function ct(C,k,G){var ee=G==!1?Ve:ct,$e=G==!1?Te:ht;if(C=="=>")return w(Ye,G?Ue:Nr,Be);if(C=="operator")return/\+\+|--/.test(k)||M&&k=="!"?w(ee):M&&k=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?w(ge(">"),at(Oe,">"),ve,ee):k=="?"?w(Te,Ie(":"),$e):w($e);if(C=="quasi")return x(Qe,ee);if(C!=";"){if(C=="(")return Wi(ht,")","call",ee);if(C==".")return w(Dt,ee);if(C=="[")return w(ge("]"),_e,Ie("]"),ve,ee);if(M&&k=="as")return O.marked="keyword",w(Oe,ee);if(C=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),w($e)}}function Qe(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Qe):w(_e,et)}function et(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Qe)}function Nr(C){return me(O.stream,O.state),x(C=="{"?De:Te)}function Ue(C){return me(O.stream,O.state),x(C=="{"?De:ht)}function R(C){return function(k){return k=="."?w(C?j:re):k=="variable"&&M?w(Ui,C?ct:Ve):x(C?ht:Te)}}function re(C,k){if(k=="target")return O.marked="keyword",w(Ve)}function j(C,k){if(k=="target")return O.marked="keyword",w(ct)}function Ne(C){return C==":"?w(ve,De):x(Ve,Ie(";"),ve)}function Dt(C){if(C=="variable")return O.marked="property",w()}function Hr(C,k){if(C=="async")return O.marked="property",w(Hr);if(C=="variable"||O.style=="keyword"){if(O.marked="property",k=="get"||k=="set")return w(r1);var G;return M&&O.state.fatArrowAt==O.stream.start&&(G=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+G[0].length),w(nr)}else{if(C=="number"||C=="string")return O.marked=v?"property":O.style+" property",w(nr);if(C=="jsonld-keyword")return w(nr);if(M&&ke(k))return O.marked="keyword",w(Hr);if(C=="[")return w(Te,ri,Ie("]"),nr);if(C=="spread")return w(ht,nr);if(k=="*")return O.marked="keyword",w(Hr);if(C==":")return x(nr)}}function r1(C){return C!="variable"?x(nr):(O.marked="property",w(pr))}function nr(C){if(C==":")return w(ht);if(C=="(")return x(pr)}function at(C,k,G){function ee($e,Fe){if(G?G.indexOf($e)>-1:$e==","){var de=O.state.lexical;return de.info=="call"&&(de.pos=(de.pos||0)+1),w(function(It,lr){return It==k||lr==k?x():x(C)},ee)}return $e==k||Fe==k?w():G&&G.indexOf(";")>-1?x(C):w(Ie(k))}return function($e,Fe){return $e==k||Fe==k?w():x(C,ee)}}function Wi(C,k,G){for(var ee=3;ee<arguments.length;ee++)O.cc.push(arguments[ee]);return w(ge(k,G),at(C,k),ve)}function Kt(C){return C=="}"?w():x(De,Kt)}function ri(C,k){if(M){if(C==":")return w(Oe);if(k=="?")return w(ri)}}function Se(C,k){if(M&&(C==":"||k=="in"))return w(Oe)}function Tn(C){if(M&&C==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?w(Te,Ft,Oe):w(Oe)}function Ft(C,k){if(k=="is")return O.marked="keyword",w()}function Oe(C,k){if(k=="keyof"||k=="typeof"||k=="infer"||k=="readonly")return O.marked="keyword",w(k=="typeof"?ht:Oe);if(C=="variable"||k=="void")return O.marked="type",w(or);if(k=="|"||k=="&")return w(Oe);if(C=="string"||C=="number"||C=="atom")return w(or);if(C=="[")return w(ge("]"),at(Oe,"]",","),ve,or);if(C=="{")return w(ge("}"),kn,ve,or);if(C=="(")return w(at(On,")"),ft,or);if(C=="<")return w(at(Oe,">"),Oe);if(C=="quasi")return x(Rr,or)}function ft(C){if(C=="=>")return w(Oe)}function kn(C){return C.match(/[\}\)\]]/)?w():C==","||C==";"?w(kn):x(Tt,kn)}function Tt(C,k){if(C=="variable"||O.style=="keyword")return O.marked="property",w(Tt);if(k=="?"||C=="number"||C=="string")return w(Tt);if(C==":")return w(Oe);if(C=="[")return w(Ie("variable"),Se,Ie("]"),Tt);if(C=="(")return x(ar,Tt);if(!C.match(/[;\}\)\],]/))return w()}function Rr(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Rr):w(Oe,_t)}function _t(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Rr)}function On(C,k){return C=="variable"&&O.stream.match(/^\s*[?:]/,!1)||k=="?"?w(On):C==":"?w(Oe):C=="spread"?w(On):x(Oe)}function or(C,k){if(k=="<")return w(ge(">"),at(Oe,">"),ve,or);if(k=="|"||C=="."||k=="&")return w(Oe);if(C=="[")return w(Oe,Ie("]"),or);if(k=="extends"||k=="implements")return O.marked="keyword",w(Oe);if(k=="?")return w(Oe,Ie(":"),Oe)}function Ui(C,k){if(k=="<")return w(ge(">"),at(Oe,">"),ve,or)}function Ci(){return x(Oe,Ka)}function Ka(C,k){if(k=="=")return w(Oe)}function To(C,k){return k=="enum"?(O.marked="keyword",w(Vr)):x(Bt,ri,Fr,Oo)}function Bt(C,k){if(M&&ke(k))return O.marked="keyword",w(Bt);if(C=="variable")return ne(k),w();if(C=="spread")return w(Bt);if(C=="[")return Wi(ko,"]");if(C=="{")return Wi(Ya,"}")}function Ya(C,k){return C=="variable"&&!O.stream.match(/^\s*:/,!1)?(ne(k),w(Fr)):(C=="variable"&&(O.marked="property"),C=="spread"?w(Bt):C=="}"?x():C=="["?w(Te,Ie("]"),Ie(":"),Ya):w(Ie(":"),Bt,Fr))}function ko(){return x(Bt,Fr)}function Fr(C,k){if(k=="=")return w(ht)}function Oo(C){if(C==",")return w(To)}function Xa(C,k){if(C=="keyword b"&&k=="else")return w(ge("form","else"),De,ve)}function Ja(C,k){if(k=="await")return w(Ja);if(C=="(")return w(ge(")"),$o,ve)}function $o(C){return C=="var"?w(To,wi):C=="variable"?w(wi):x(wi)}function wi(C,k){return C==")"?w():C==";"?w(wi):k=="in"||k=="of"?(O.marked="keyword",w(Te,wi)):x(Te,wi)}function pr(C,k){if(k=="*")return O.marked="keyword",w(pr);if(C=="variable")return ne(k),w(pr);if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Tn,De,Be);if(M&&k=="<")return w(ge(">"),at(Ci,">"),ve,pr)}function ar(C,k){if(k=="*")return O.marked="keyword",w(ar);if(C=="variable")return ne(k),w(ar);if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Tn,Be);if(M&&k=="<")return w(ge(">"),at(Ci,">"),ve,ar)}function Qa(C,k){if(C=="keyword"||C=="variable")return O.marked="type",w(Qa);if(k=="<")return w(ge(">"),at(Ci,">"),ve)}function ii(C,k){return k=="@"&&w(Te,ii),C=="spread"?w(ii):M&&ke(k)?(O.marked="keyword",w(ii)):M&&C=="this"?w(ri,Fr):x(Bt,ri,Fr)}function $n(C,k){return C=="variable"?En(C,k):Cr(C,k)}function En(C,k){if(C=="variable")return ne(k),w(Cr)}function Cr(C,k){if(k=="<")return w(ge(">"),at(Ci,">"),ve,Cr);if(k=="extends"||k=="implements"||M&&C==",")return k=="implements"&&(O.marked="keyword"),w(M?Oe:Te,Cr);if(C=="{")return w(ge("}"),wr,ve)}function wr(C,k){if(C=="async"||C=="variable"&&(k=="static"||k=="get"||k=="set"||M&&ke(k))&&O.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return O.marked="keyword",w(wr);if(C=="variable"||O.style=="keyword")return O.marked="property",w(sr,wr);if(C=="number"||C=="string")return w(sr,wr);if(C=="[")return w(Te,ri,Ie("]"),sr,wr);if(k=="*")return O.marked="keyword",w(wr);if(M&&C=="(")return x(ar,wr);if(C==";"||C==",")return w(wr);if(C=="}")return w();if(k=="@")return w(Te,wr)}function sr(C,k){if(k=="!"||k=="?")return w(sr);if(C==":")return w(Oe,Fr);if(k=="=")return w(ht);var G=O.state.lexical.prev,ee=G&&G.info=="interface";return x(ee?ar:pr)}function Eo(C,k){return k=="*"?(O.marked="keyword",w(Yt,Ie(";"))):k=="default"?(O.marked="keyword",w(Te,Ie(";"))):C=="{"?w(at(_o,"}"),Yt,Ie(";")):x(De)}function _o(C,k){if(k=="as")return O.marked="keyword",w(Ie("variable"));if(C=="variable")return x(ht,_o)}function st(C){return C=="string"?w():C=="("?x(Te):C=="."?x(Ve):x(be,Br,Yt)}function be(C,k){return C=="{"?Wi(be,"}"):(C=="variable"&&ne(k),k=="*"&&(O.marked="keyword"),w(Io))}function Br(C){if(C==",")return w(be,Br)}function Io(C,k){if(k=="as")return O.marked="keyword",w(be)}function Yt(C,k){if(k=="from")return O.marked="keyword",w(Te)}function je(C){return C=="]"?w():x(at(ht,"]"))}function Vr(){return x(ge("form"),Bt,Ie("{"),ge("}"),at(ji,"}"),ve,ve)}function ji(){return x(Bt,Fr)}function Ao(C,k){return C.lastType=="operator"||C.lastType==","||$.test(k.charAt(0))||/[,.]/.test(k.charAt(0))}function Q(C,k,G){return k.tokenize==A&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(k.lastType)||k.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(G||0)))}return{startState:function(C){var k={tokenize:A,lastType:"sof",cc:[],lexical:new ie((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Re(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(k.globalVars=l.globalVars),k},token:function(C,k){if(C.sol()&&(k.lexical.hasOwnProperty("align")||(k.lexical.align=!1),k.indented=C.indentation(),me(C,k)),k.tokenize!=K&&C.eatSpace())return null;var G=k.tokenize(C,k);return oe=="comment"?G:(k.lastType=oe=="operator"&&(_=="++"||_=="--")?"incdec":oe,V(k,G,oe,_,C))},indent:function(C,k){if(C.tokenize==K||C.tokenize==ue)return i.Pass;if(C.tokenize!=A)return 0;var G=k&&k.charAt(0),ee=C.lexical,$e;if(!/^\s*else\b/.test(k))for(var Fe=C.cc.length-1;Fe>=0;--Fe){var de=C.cc[Fe];if(de==ve)ee=ee.prev;else if(de!=Xa&&de!=Be)break}for(;(ee.type=="stat"||ee.type=="form")&&(G=="}"||($e=C.cc[C.cc.length-1])&&($e==Ve||$e==ct)&&!/^[,\.=+\-*:?[\(]/.test(k));)ee=ee.prev;u&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var It=ee.type,lr=G==It;return It=="vardef"?ee.indented+(C.lastType=="operator"||C.lastType==","?ee.info.length+1:0):It=="form"&&G=="{"?ee.indented:It=="form"?ee.indented+d:It=="stat"?ee.indented+(Ao(C,k)?u||d:0):ee.info=="switch"&&!lr&&l.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(k)?d:2*d):ee.align?ee.column+(lr?0:1):ee.indented+(lr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:b?null:"/*",blockCommentEnd:b?null:"*/",blockCommentContinue:b?null:" * ",lineComment:b?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:b?"json":"javascript",jsonldMode:v,jsonMode:b,expressionAllowed:Q,skipExpression:function(C){V(C,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var DL=PL.exports,rf={exports:{}},nf;function NL(){return nf||(nf=1,function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("css",function(ie,X){var V=X.inline;X.propertyKeywords||(X=i.resolveMode("text/css"));var O=ie.indentUnit,x=X.tokenHooks,w=X.documentTypes||{},U=X.mediaTypes||{},ne=X.mediaFeatures||{},ye=X.mediaValueKeywords||{},ke=X.propertyKeywords||{},Re=X.nonStandardPropertyKeywords||{},ot=X.fontProperties||{},Et=X.counterDescriptors||{},Ye=X.colorKeywords||{},Xe=X.valueKeywords||{},Be=X.allowNested,ge=X.lineComment,ve=X.supportsAtComponent===!0,Ie=ie.highlightNonStandardPropertyKeywords!==!1,De,Ae;function Te(R,re){return De=re,R}function ht(R,re){var j=R.next();if(x[j]){var Ne=x[j](R,re);if(Ne!==!1)return Ne}if(j=="@")return R.eatWhile(/[\w\\\-]/),Te("def",R.current());if(j=="="||(j=="~"||j=="|")&&R.eat("="))return Te(null,"compare");if(j=='"'||j=="'")return re.tokenize=qt(j),re.tokenize(R,re);if(j=="#")return R.eatWhile(/[\w\\\-]/),Te("atom","hash");if(j=="!")return R.match(/^\s*\w*/),Te("keyword","important");if(/\d/.test(j)||j=="."&&R.eat(/\d/))return R.eatWhile(/[\w.%]/),Te("number","unit");if(j==="-"){if(/[\d.]/.test(R.peek()))return R.eatWhile(/[\w.%]/),Te("number","unit");if(R.match(/^-[\w\\\-]*/))return R.eatWhile(/[\w\\\-]/),R.match(/^\s*:/,!1)?Te("variable-2","variable-definition"):Te("variable-2","variable");if(R.match(/^\w+-/))return Te("meta","meta")}else return/[,+>*\/]/.test(j)?Te(null,"select-op"):j=="."&&R.match(/^-?[_a-z][_a-z0-9-]*/i)?Te("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(j)?Te(null,j):R.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(R.current())&&(re.tokenize=ir),Te("variable callee","variable")):/[\w\\\-]/.test(j)?(R.eatWhile(/[\w\\\-]/),Te("property","word")):Te(null,null)}function qt(R){return function(re,j){for(var Ne=!1,Dt;(Dt=re.next())!=null;){if(Dt==R&&!Ne){R==")"&&re.backUp(1);break}Ne=!Ne&&Dt=="\\"}return(Dt==R||!Ne&&R!=")")&&(j.tokenize=null),Te("string","string")}}function ir(R,re){return R.next(),R.match(/^\s*[\"\')]/,!1)?re.tokenize=null:re.tokenize=qt(")"),Te(null,"(")}function _e(R,re,j){this.type=R,this.indent=re,this.prev=j}function Ve(R,re,j,Ne){return R.context=new _e(j,re.indentation()+(Ne===!1?0:O),R.context),j}function ct(R){return R.context.prev&&(R.context=R.context.prev),R.context.type}function Qe(R,re,j){return Ue[j.context.type](R,re,j)}function et(R,re,j,Ne){for(var Dt=Ne||1;Dt>0;Dt--)j.context=j.context.prev;return Qe(R,re,j)}function Nr(R){var re=R.current().toLowerCase();Xe.hasOwnProperty(re)?Ae="atom":Ye.hasOwnProperty(re)?Ae="keyword":Ae="variable"}var Ue={};return Ue.top=function(R,re,j){if(R=="{")return Ve(j,re,"block");if(R=="}"&&j.context.prev)return ct(j);if(ve&&/@component/i.test(R))return Ve(j,re,"atComponentBlock");if(/^@(-moz-)?document$/i.test(R))return Ve(j,re,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(R))return Ve(j,re,"atBlock");if(/^@(font-face|counter-style)/i.test(R))return j.stateArg=R,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(R))return"keyframes";if(R&&R.charAt(0)=="@")return Ve(j,re,"at");if(R=="hash")Ae="builtin";else if(R=="word")Ae="tag";else{if(R=="variable-definition")return"maybeprop";if(R=="interpolation")return Ve(j,re,"interpolation");if(R==":")return"pseudo";if(Be&&R=="(")return Ve(j,re,"parens")}return j.context.type},Ue.block=function(R,re,j){if(R=="word"){var Ne=re.current().toLowerCase();return ke.hasOwnProperty(Ne)?(Ae="property","maybeprop"):Re.hasOwnProperty(Ne)?(Ae=Ie?"string-2":"property","maybeprop"):Be?(Ae=re.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ae+=" error","maybeprop")}else return R=="meta"?"block":!Be&&(R=="hash"||R=="qualifier")?(Ae="error","block"):Ue.top(R,re,j)},Ue.maybeprop=function(R,re,j){return R==":"?Ve(j,re,"prop"):Qe(R,re,j)},Ue.prop=function(R,re,j){if(R==";")return ct(j);if(R=="{"&&Be)return Ve(j,re,"propBlock");if(R=="}"||R=="{")return et(R,re,j);if(R=="(")return Ve(j,re,"parens");if(R=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(re.current()))Ae+=" error";else if(R=="word")Nr(re);else if(R=="interpolation")return Ve(j,re,"interpolation");return"prop"},Ue.propBlock=function(R,re,j){return R=="}"?ct(j):R=="word"?(Ae="property","maybeprop"):j.context.type},Ue.parens=function(R,re,j){return R=="{"||R=="}"?et(R,re,j):R==")"?ct(j):R=="("?Ve(j,re,"parens"):R=="interpolation"?Ve(j,re,"interpolation"):(R=="word"&&Nr(re),"parens")},Ue.pseudo=function(R,re,j){return R=="meta"?"pseudo":R=="word"?(Ae="variable-3",j.context.type):Qe(R,re,j)},Ue.documentTypes=function(R,re,j){return R=="word"&&w.hasOwnProperty(re.current())?(Ae="tag",j.context.type):Ue.atBlock(R,re,j)},Ue.atBlock=function(R,re,j){if(R=="(")return Ve(j,re,"atBlock_parens");if(R=="}"||R==";")return et(R,re,j);if(R=="{")return ct(j)&&Ve(j,re,Be?"block":"top");if(R=="interpolation")return Ve(j,re,"interpolation");if(R=="word"){var Ne=re.current().toLowerCase();Ne=="only"||Ne=="not"||Ne=="and"||Ne=="or"?Ae="keyword":U.hasOwnProperty(Ne)?Ae="attribute":ne.hasOwnProperty(Ne)?Ae="property":ye.hasOwnProperty(Ne)?Ae="keyword":ke.hasOwnProperty(Ne)?Ae="property":Re.hasOwnProperty(Ne)?Ae=Ie?"string-2":"property":Xe.hasOwnProperty(Ne)?Ae="atom":Ye.hasOwnProperty(Ne)?Ae="keyword":Ae="error"}return j.context.type},Ue.atComponentBlock=function(R,re,j){return R=="}"?et(R,re,j):R=="{"?ct(j)&&Ve(j,re,Be?"block":"top",!1):(R=="word"&&(Ae="error"),j.context.type)},Ue.atBlock_parens=function(R,re,j){return R==")"?ct(j):R=="{"||R=="}"?et(R,re,j,2):Ue.atBlock(R,re,j)},Ue.restricted_atBlock_before=function(R,re,j){return R=="{"?Ve(j,re,"restricted_atBlock"):R=="word"&&j.stateArg=="@counter-style"?(Ae="variable","restricted_atBlock_before"):Qe(R,re,j)},Ue.restricted_atBlock=function(R,re,j){return R=="}"?(j.stateArg=null,ct(j)):R=="word"?(j.stateArg=="@font-face"&&!ot.hasOwnProperty(re.current().toLowerCase())||j.stateArg=="@counter-style"&&!Et.hasOwnProperty(re.current().toLowerCase())?Ae="error":Ae="property","maybeprop"):"restricted_atBlock"},Ue.keyframes=function(R,re,j){return R=="word"?(Ae="variable","keyframes"):R=="{"?Ve(j,re,"top"):Qe(R,re,j)},Ue.at=function(R,re,j){return R==";"?ct(j):R=="{"||R=="}"?et(R,re,j):(R=="word"?Ae="tag":R=="hash"&&(Ae="builtin"),"at")},Ue.interpolation=function(R,re,j){return R=="}"?ct(j):R=="{"||R==";"?et(R,re,j):(R=="word"?Ae="variable":R!="variable"&&R!="("&&R!=")"&&(Ae="error"),"interpolation")},{startState:function(R){return{tokenize:null,state:V?"block":"top",stateArg:null,context:new _e(V?"block":"top",R||0,null)}},token:function(R,re){if(!re.tokenize&&R.eatSpace())return null;var j=(re.tokenize||ht)(R,re);return j&&typeof j=="object"&&(De=j[1],j=j[0]),Ae=j,De!="comment"&&(re.state=Ue[re.state](De,R,re)),Ae},indent:function(R,re){var j=R.context,Ne=re&&re.charAt(0),Dt=j.indent;return j.type=="prop"&&(Ne=="}"||Ne==")")&&(j=j.prev),j.prev&&(Ne=="}"&&(j.type=="block"||j.type=="top"||j.type=="interpolation"||j.type=="restricted_atBlock")?(j=j.prev,Dt=j.indent):(Ne==")"&&(j.type=="parens"||j.type=="atBlock_parens")||Ne=="{"&&(j.type=="at"||j.type=="atBlock"))&&(Dt=Math.max(0,j.indent-O))),Dt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ge,fold:"brace"}});function o(ie){for(var X={},V=0;V<ie.length;++V)X[ie[V].toLowerCase()]=!0;return X}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),b=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],m=o(b),M=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],L=o(M),T=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],$=o(T),H=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],Y=o(H),oe=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=o(oe),D=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],A=o(D),B=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],K=o(B),ue=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],le=o(ue),me=l.concat(u).concat(b).concat(M).concat(T).concat(H).concat(B).concat(ue);i.registerHelper("hintWords","css",me);function Me(ie,X){for(var V=!1,O;(O=ie.next())!=null;){if(V&&O=="/"){X.tokenize=null;break}V=O=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:m,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,tokenHooks:{"/":function(ie,X){return ie.eat("*")?(X.tokenize=Me,Me(ie,X)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,X){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(X.tokenize=Me,Me(ie,X)):["operator","operator"]},":":function(ie){return ie.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ie){return ie.match(/^[\w-]+/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ie){return ie.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:L,propertyKeywords:$,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:le,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,X){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(X.tokenize=Me,Me(ie,X)):["operator","operator"]},"@":function(ie){return ie.eat("{")?[null,"interpolation"]:ie.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ie.eatWhile(/[\w\\\-]/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:v,mediaFeatures:m,propertyKeywords:$,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:A,colorKeywords:K,valueKeywords:le,supportsAtComponent:!0,tokenHooks:{"/":function(ie,X){return ie.eat("*")?(X.tokenize=Me,Me(ie,X)):!1}},name:"css",helperType:"gss"})})}()),rf.exports}(function(n,e){(function(i){i(Pr,AL,DL,NL())})(function(i){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function l(L,T,$){var H=L.current(),Y=H.search(T);return Y>-1?L.backUp(H.length-Y):H.match(/<\/?$/)&&(L.backUp(H.length),L.match(T,!1)||L.match(H)),$}var d={};function u(L){var T=d[L];return T||(d[L]=new RegExp("\\s+"+L+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(L,T){var $=L.match(u(T));return $?/^\s*(.*?)\s*$/.exec($[2])[1]:""}function b(L,T){return new RegExp((T?"^":"")+"</s*"+L+"s*>","i")}function m(L,T){for(var $ in L)for(var H=T[$]||(T[$]=[]),Y=L[$],oe=Y.length-1;oe>=0;oe--)H.unshift(Y[oe])}function M(L,T){for(var $=0;$<L.length;$++){var H=L[$];if(!H[0]||H[1].test(v(T,H[0])))return H[2]}}i.defineMode("htmlmixed",function(L,T){var $=i.getMode(L,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),H={},Y=T&&T.tags,oe=T&&T.scriptTypes;if(m(o,H),Y&&m(Y,H),oe)for(var _=oe.length-1;_>=0;_--)H.script.unshift(["type",oe[_].matches,oe[_].mode]);function D(A,B){var K=$.token(A,B.htmlState),ue=/\btag\b/.test(K),le;if(ue&&!/[<>\s\/]/.test(A.current())&&(le=B.htmlState.tagName&&B.htmlState.tagName.toLowerCase())&&H.hasOwnProperty(le))B.inTag=le+" ";else if(B.inTag&&ue&&/>$/.test(A.current())){var me=/^([\S]+) (.*)/.exec(B.inTag);B.inTag=null;var Me=A.current()==">"&&M(H[me[1]],me[2]),ie=i.getMode(L,Me),X=b(me[1],!0),V=b(me[1],!1);B.token=function(O,x){return O.match(X,!1)?(x.token=D,x.localState=x.localMode=null,null):l(O,V,x.localMode.token(O,x.localState))},B.localMode=ie,B.localState=i.startState(ie,$.indent(B.htmlState,"",""))}else B.inTag&&(B.inTag+=A.current(),A.eol()&&(B.inTag+=" "));return K}return{startState:function(){var A=i.startState($);return{token:D,inTag:null,localMode:null,localState:null,htmlState:A}},copyState:function(A){var B;return A.localState&&(B=i.copyState(A.localMode,A.localState)),{token:A.token,inTag:A.inTag,localMode:A.localMode,localState:B,htmlState:i.copyState($,A.htmlState)}},token:function(A,B){return B.token(A,B)},indent:function(A,B,K){return!A.localMode||/^\s*<\//.test(B)?$.indent(A.htmlState,B,K):A.localMode.indent?A.localMode.indent(A.localState,B,K):i.Pass},innerMode:function(A){return{state:A.localState||A.htmlState,mode:A.localMode||$}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})})();(function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(L){return parseFloat(L).toString()===L}function v(L){return function(T,$){for(var H=!1,Y;(Y=T.next())!=null&&!(Y==L&&!H);)H=!H&&Y=="\\";return H||($.tokenize=M),"string"}}function b(L){return function(T,$){var H="operator";return L=="+"?H+=" positive":L=="-"?H+=" negative":L=="|"?T.eat(/\|/):L=="&"?T.eat(/\&/):L=="^"&&(H+=" boost"),$.tokenize=M,H}}function m(L){return function(T,$){for(var H=L;(L=T.peek())&&L.match(o)!=null;)H+=T.next();return $.tokenize=M,d.test(H)?"operator":u(H)?"number":T.peek()==":"?"field":"string"}}function M(L,T){var $=L.next();return $=='"'?T.tokenize=v($):l.test($)?T.tokenize=b($):o.test($)&&(T.tokenize=m($)),T.tokenize!=M?T.tokenize(L,T):null}return{startState:function(){return{tokenize:M}},token:function(L,T){return L.eatSpace()?null:T.tokenize(L,T)}}}),i.defineMIME("text/x-solr","solr")})})();(function(n,e){(function(i){i(Pr)})(function(i){i.defineOption("placeholder","",function(m,M,L){var T=L&&L!=i.Init;if(M&&!T)m.on("blur",u),m.on("change",v),m.on("swapDoc",v),i.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){d(m)}),v(m);else if(!M&&T){m.off("blur",u),m.off("change",v),m.off("swapDoc",v),i.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),o(m);var $=m.getWrapperElement();$.className=$.className.replace(" CodeMirror-empty","")}M&&!m.hasFocus()&&u(m)});function o(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function l(m){o(m);var M=m.state.placeholder=document.createElement("pre");M.style.cssText="height: 0; overflow: visible",M.style.direction=m.getOption("direction"),M.className="CodeMirror-placeholder CodeMirror-line-like";var L=m.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),M.appendChild(L),m.display.lineSpace.insertBefore(M,m.display.lineSpace.firstChild)}function d(m){setTimeout(function(){var M=!1;if(m.lineCount()==1){var L=m.getInputField();M=L.nodeName=="TEXTAREA"?!m.getLine(0).length:!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)}M?l(m):o(m)},20)}function u(m){b(m)&&l(m)}function v(m){var M=m.getWrapperElement(),L=b(m);M.className=M.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?l(m):o(m)}function b(m){return m.lineCount()===1&&m.getLine(0)===""}})})();(function(n,e){(function(i){i(Pr)})(function(i){var o="CodeMirror-hint",l="CodeMirror-hint-active";i.showHint=function(_,D,A){if(!D)return _.showHint(A);A&&A.async&&(D.async=!0);var B={hint:D};if(A)for(var K in A)B[K]=A[K];return _.showHint(B)},i.defineExtension("showHint",function(_){_=b(this,this.getCursor("start"),_);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!_.hint.supportsSelection)return;for(var A=0;A<D.length;A++)if(D[A].head.line!=D[A].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new d(this,_);B.options.hint&&(i.signal(this,"startCompletion",this),B.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(_,D){if(this.cm=_,this.options=D,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var A=this;_.on("cursorActivity",this.activityFunc=function(){A.cursorActivity()})}}var u=window.requestAnimationFrame||function(_){return setTimeout(_,1e3/60)},v=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(_,D){var A=_.list[D],B=this;this.cm.operation(function(){A.hint?A.hint(B.cm,_,A):B.cm.replaceRange(m(A),A.from||_.from,A.to||_.to,"complete"),i.signal(_,"pick",A),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(v(this.debounce),this.debounce=0);var _=this.startPos;this.data&&(_=this.data.from);var D=this.cm.getCursor(),A=this.cm.getLine(D.line);if(D.line!=this.startPos.line||A.length-D.ch!=this.startLen-this.startPos.ch||D.ch<_.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(A.charAt(D.ch-1)))this.close();else{var B=this;this.debounce=u(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(_){if(this.tick!=null){var D=this,A=++this.tick;H(this.options.hint,this.cm,this.options,function(B){D.tick==A&&D.finishUpdate(B,_)})}},finishUpdate:function(_,D){this.data&&i.signal(this.data,"update");var A=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=_,_&&_.list.length&&(A&&_.list.length==1?this.pick(_,0):(this.widget=new T(this,_),i.signal(_,"shown")))}};function b(_,D,A){var B=_.options.hintOptions,K={};for(var ue in oe)K[ue]=oe[ue];if(B)for(var ue in B)B[ue]!==void 0&&(K[ue]=B[ue]);if(A)for(var ue in A)A[ue]!==void 0&&(K[ue]=A[ue]);return K.hint.resolve&&(K.hint=K.hint.resolve(_,D)),K}function m(_){return typeof _=="string"?_:_.text}function M(_,D){var A={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},B=/Mac/.test(navigator.platform);B&&(A["Ctrl-P"]=function(){D.moveFocus(-1)},A["Ctrl-N"]=function(){D.moveFocus(1)});var K=_.options.customKeys,ue=K?{}:A;function le(ie,X){var V;typeof X!="string"?V=function(O){return X(O,D)}:A.hasOwnProperty(X)?V=A[X]:V=X,ue[ie]=V}if(K)for(var me in K)K.hasOwnProperty(me)&&le(me,K[me]);var Me=_.options.extraKeys;if(Me)for(var me in Me)Me.hasOwnProperty(me)&&le(me,Me[me]);return ue}function L(_,D){for(;D&&D!=_;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==_)return D;D=D.parentNode}}function T(_,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=_,this.data=D,this.picked=!1;var A=this,B=_.cm,K=B.getInputField().ownerDocument,ue=K.defaultView||K.parentWindow,le=this.hints=K.createElement("ul");le.setAttribute("role","listbox"),le.setAttribute("aria-expanded","true"),le.id=this.id;var me=_.cm.options.theme;le.className="CodeMirror-hints "+me,this.selectedHint=D.selectedHint||0;for(var Me=D.list,ie=0;ie<Me.length;++ie){var X=le.appendChild(K.createElement("li")),V=Me[ie],O=o+(ie!=this.selectedHint?"":" "+l);V.className!=null&&(O=V.className+" "+O),X.className=O,ie==this.selectedHint&&X.setAttribute("aria-selected","true"),X.id=this.id+"-"+ie,X.setAttribute("role","option"),V.render?V.render(X,D,V):X.appendChild(K.createTextNode(V.displayText||m(V))),X.hintId=ie}var x=_.options.container||K.body,w=B.cursorCoords(_.options.alignWithWord?D.from:null),U=w.left,ne=w.bottom,ye=!0,ke=0,Re=0;if(x!==K.body){var ot=["absolute","relative","fixed"].indexOf(ue.getComputedStyle(x).position)!==-1,Et=ot?x:x.offsetParent,Ye=Et.getBoundingClientRect(),Xe=K.body.getBoundingClientRect();ke=Ye.left-Xe.left-Et.scrollLeft,Re=Ye.top-Xe.top-Et.scrollTop}le.style.left=U-ke+"px",le.style.top=ne-Re+"px";var Be=ue.innerWidth||Math.max(K.body.offsetWidth,K.documentElement.offsetWidth),ge=ue.innerHeight||Math.max(K.body.offsetHeight,K.documentElement.offsetHeight);x.appendChild(le),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ve=_.options.moveOnOverlap?le.getBoundingClientRect():new DOMRect,Ie=_.options.paddingForScrollbar?le.scrollHeight>le.clientHeight+1:!1,De;setTimeout(function(){De=B.getScrollInfo()});var Ae=ve.bottom-ge;if(Ae>0){var Te=ve.bottom-ve.top,ht=w.top-(w.bottom-ve.top);if(ht-Te>0)le.style.top=(ne=w.top-Te-Re)+"px",ye=!1;else if(Te>ge){le.style.height=ge-5+"px",le.style.top=(ne=w.bottom-ve.top-Re)+"px";var qt=B.getCursor();D.from.ch!=qt.ch&&(w=B.cursorCoords(qt),le.style.left=(U=w.left-ke)+"px",ve=le.getBoundingClientRect())}}var ir=ve.right-Be;if(Ie&&(ir+=B.display.nativeBarWidth),ir>0&&(ve.right-ve.left>Be&&(le.style.width=Be-5+"px",ir-=ve.right-ve.left-Be),le.style.left=(U=w.left-ir-ke)+"px"),Ie)for(var _e=le.firstChild;_e;_e=_e.nextSibling)_e.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=M(_,{moveFocus:function(Qe,et){A.changeActive(A.selectedHint+Qe,et)},setFocus:function(Qe){A.changeActive(Qe)},menuSize:function(){return A.screenAmount()},length:Me.length,close:function(){_.close()},pick:function(){A.pick()},data:D})),_.options.closeOnUnfocus){var Ve;B.on("blur",this.onBlur=function(){Ve=setTimeout(function(){_.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(Ve)})}B.on("scroll",this.onScroll=function(){var Qe=B.getScrollInfo(),et=B.getWrapperElement().getBoundingClientRect();De||(De=B.getScrollInfo());var Nr=ne+De.top-Qe.top,Ue=Nr-(ue.pageYOffset||(K.documentElement||K.body).scrollTop);if(ye||(Ue+=le.offsetHeight),Ue<=et.top||Ue>=et.bottom)return _.close();le.style.top=Nr+"px",le.style.left=U+De.left-Qe.left+"px"}),i.on(le,"dblclick",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),A.pick())}),i.on(le,"click",function(Qe){var et=L(le,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(A.changeActive(et.hintId),_.options.completeOnSingleClick&&A.pick())}),i.on(le,"mousedown",function(){setTimeout(function(){B.focus()},20)});var ct=this.getSelectedHintRange();return(ct.from!==0||ct.to!==0)&&this.scrollToActive(),i.signal(D,"select",Me[this.selectedHint],le.childNodes[this.selectedHint]),!0}T.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var _=this.completion.cm.getInputField();_.removeAttribute("aria-activedescendant"),_.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var _=this;this.keyMap={Enter:function(){_.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(_,D){if(_>=this.data.list.length?_=D?this.data.list.length-1:0:_<0&&(_=D?0:this.data.list.length-1),this.selectedHint!=_){var A=this.hints.childNodes[this.selectedHint];A&&(A.className=A.className.replace(" "+l,""),A.removeAttribute("aria-selected")),A=this.hints.childNodes[this.selectedHint=_],A.className+=" "+l,A.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",A.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],A)}},scrollToActive:function(){var _=this.getSelectedHintRange(),D=this.hints.childNodes[_.from],A=this.hints.childNodes[_.to],B=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-B.offsetTop:A.offsetTop+A.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=A.offsetTop+A.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var _=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-_),to:Math.min(this.data.list.length-1,this.selectedHint+_)}}};function $(_,D){if(!_.somethingSelected())return D;for(var A=[],B=0;B<D.length;B++)D[B].supportsSelection&&A.push(D[B]);return A}function H(_,D,A,B){if(_.async)_(D,B,A);else{var K=_(D,A);K&&K.then?K.then(B):B(K)}}function Y(_,D){var A=_.getHelpers(D,"hint"),B;if(A.length){var K=function(ue,le,me){var Me=$(ue,A);function ie(X){if(X==Me.length)return le(null);H(Me[X],ue,me,function(V){V&&V.list.length>0?le(V):ie(X+1)})}ie(0)};return K.async=!0,K.supportsSelection=!0,K}else return(B=_.getHelper(_.getCursor(),"hintWords"))?function(ue){return i.hint.fromList(ue,{words:B})}:i.hint.anyword?function(ue,le){return i.hint.anyword(ue,le)}:function(){}}i.registerHelper("hint","auto",{resolve:Y}),i.registerHelper("hint","fromList",function(_,D){var A=_.getCursor(),B=_.getTokenAt(A),K,ue=i.Pos(A.line,B.start),le=A;B.start<A.ch&&/\w/.test(B.string.charAt(A.ch-B.start-1))?K=B.string.substr(0,A.ch-B.start):(K="",ue=A);for(var me=[],Me=0;Me<D.words.length;Me++){var ie=D.words[Me];ie.slice(0,K.length)==K&&me.push(ie)}if(me.length)return{list:me,from:ue,to:le}}),i.commands.autocomplete=i.showHint;var oe={hint:i.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};i.defineOption("hintOptions",null)})})();(function(n,e){(function(i){i(Pr)})(function(i){var o=i.Pos;function l(_,D){for(var A=0,B=_.length;A<B;++A)D(_[A])}function d(_,D){if(!Array.prototype.indexOf){for(var A=_.length;A--;)if(_[A]===D)return!0;return!1}return _.indexOf(D)!=-1}function u(_,D,A,B){var K=_.getCursor(),ue=A(_,K);if(!/\b(?:string|comment)\b/.test(ue.type)){var le=i.innerMode(_.getMode(),ue.state);if(le.mode.helperType!=="json"){ue.state=le.state,/^[\w$_]*$/.test(ue.string)?ue.end>K.ch&&(ue.end=K.ch,ue.string=ue.string.slice(0,K.ch-ue.start)):ue={start:K.ch,end:K.ch,string:"",state:ue.state,type:ue.string=="."?"property":null};for(var me=ue;me.type=="property";){if(me=A(_,o(K.line,me.start)),me.string!=".")return;if(me=A(_,o(K.line,me.start)),!Me)var Me=[];Me.push(me)}return{list:oe(ue,Me,D,B),from:o(K.line,ue.start),to:o(K.line,ue.end)}}}}function v(_,D){return u(_,$,function(A,B){return A.getTokenAt(B)},D)}i.registerHelper("hint","javascript",v);function b(_,D){var A=_.getTokenAt(D);return D.ch==A.start+1&&A.string.charAt(0)=="."?(A.end=A.start,A.string=".",A.type="property"):/^\.[\w$_]*$/.test(A.string)&&(A.type="property",A.start++,A.string=A.string.replace(/\./,"")),A}function m(_,D){return u(_,H,b,D)}i.registerHelper("hint","coffeescript",m);var M="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),L="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),T="prototype apply call bind".split(" "),$="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),H="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function Y(_,D){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var A in _)D(A);else for(var B=_;B;B=Object.getPrototypeOf(B))Object.getOwnPropertyNames(B).forEach(D)}function oe(_,D,A,B){var K=[],ue=_.string,le=B&&B.globalScope||window;function me(w){w.lastIndexOf(ue,0)==0&&!d(K,w)&&K.push(w)}function Me(w){typeof w=="string"?l(M,me):w instanceof Array?l(L,me):w instanceof Function&&l(T,me),Y(w,me)}if(D&&D.length){var ie=D.pop(),X;for(ie.type&&ie.type.indexOf("variable")===0?(B&&B.additionalContext&&(X=B.additionalContext[ie.string]),(!B||B.useGlobalScope!==!1)&&(X=X||le[ie.string])):ie.type=="string"?X="":ie.type=="atom"?X=1:ie.type=="function"&&(le.jQuery!=null&&(ie.string=="$"||ie.string=="jQuery")&&typeof le.jQuery=="function"?X=le.jQuery():le._!=null&&ie.string=="_"&&typeof le._=="function"&&(X=le._()));X!=null&&D.length;)X=X[D.pop().string];X!=null&&Me(X)}else{for(var V=_.state.localVars;V;V=V.next)me(V.name);for(var O=_.state.context;O;O=O.prev)for(var V=O.vars;V;V=V.next)me(V.name);for(var V=_.state.globalVars;V;V=V.next)me(V.name);if(B&&B.additionalContext!=null)for(var x in B.additionalContext)me(x);(!B||B.useGlobalScope!==!1)&&Me(le),l(A,me)}return K}})})();var HL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,Bi=(n,e,i,o)=>{for(var l=o>1?void 0:o?RL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&HL(e,i,l),l};Di.defineMode("nunjucks",(n,e)=>Di.overlayMode(Di.getMode(n,e.backdrop||"text/html"),Di.getMode(n,"jinja2")));const Gp=ce("input-code"),FL=["json","nunjucks","javascript","solr"],of={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends rr{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1,this.autocompleteList=[],this.singleLine=!1,this.boundHandleEditorMouseDown=this.handleEditorMouseDown.bind(this),this.changeHandler=e=>{this.value=e.getValue(),this.dispatchChange()}}atSignHint(e,i){const o=e.getCursor(),l=e.getLine(o.line),d=e.getTokenAt(o),u=i.fromAtTrigger||!1,v=i.fromGeneralTyping||!1;let b,m="";if(u){let T=-1;for(let $=o.ch-1;$>=0;$--)if(l.charAt($)==="@"){T=$;break}if(T===-1&&d.string.startsWith("@")&&d.start<o.ch&&(T=d.start),T!==-1)b=Di.Pos(o.line,T),m=l.substring(T+1,o.ch);else return null}else if(v){let T=o.ch;for(;T>0&&l.charAt(T-1).match(exports.InputCode.AUTOCOMPLETE_REGEX);)T--;if(m=l.substring(T,o.ch),b=Di.Pos(o.line,T),m.length===0||m==="."&&(T===0||!l.charAt(T-1).match(/\w/)))return null}else return null;const L=(i.words||this.autocompleteList||[]).filter(T=>T.toLowerCase().startsWith(m.toLowerCase())).map(T=>({text:T,displayText:T}));return L.length>0?{list:L,from:b,to:Di.Pos(o.line,o.ch)}:null}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){this.editor&&this.editor.getValue()!==e&&this.editor.setValue(e)}updated(e){super.updated(e);const i=this.disabled||this.readonly;if(this.value!==this.editorValue&&(this.editorValue=this.value||""),this.editor&&i!==this.editor.isReadOnly()&&this.editor.setOption("readOnly",this.disabled?"nocursor":this.readonly),e.get("mode")&&this.editor&&(this.editor.setOption("mode",of[this.mode]),this.editor.refresh()),e.has("autocompleteList")&&this.editor){const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};this.editor.setOption("hintOptions",o)}this.editor&&(e.has("height")||e.has("hideLineNumbers"))&&(this.updateEditorSize(),this.editor.refresh()),e.has("singleLine")&&this.editor&&(this.editor.setOption("lineNumbers",!this.hideLineNumbers&&!this.singleLine),this.updateEditorSize(),this.editor.refresh())}updateEditorSize(){if(this.editor){const e=this.singleLine?"36px":`${24*this.height}px`;this.editor.setSize(null,e)}}handleEditorMouseDown(){this.editor&&!this.editor.hasFocus()&&this.editor.focus()}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");if(e&&this.shadowRoot){this.editor=Di.fromTextArea(e,{mode:of[this.mode],lineNumbers:!this.hideLineNumbers&&!this.singleLine,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.value!==void 0&&(this.editorValue=this.value);const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1};this.editor.setOption("hintOptions",o),this.updateEditorSize(),this.editor.on("change",this.changeHandler),this.editor.getWrapperElement().addEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.on("beforeChange",(u,v)=>{this.singleLine&&v.text.some(b=>/\n/.test(b))&&v.cancel()});const d={Tab:u=>{const v=Array((u.getOption("indentUnit")||0)+1).join(" ");u.replaceSelection(v)}};this.singleLine&&(d.Enter=()=>{}),this.editor.setOption("extraKeys",d),this.editor.on("inputRead",(u,v)=>{if(u.state.completionActive)return;const b=v.text&&v.text[0],m=u.getCursor(),M=u.getLine(m.line);let L=!1;const T={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};if(b==="@")T.fromAtTrigger=!0,L=!0;else if(b&&b.match(exports.InputCode.AUTOCOMPLETE_REGEX)&&this.autocompleteList.length>0){if(b==="."&&(m.ch<=1||!M.charAt(m.ch-2).match(/\w/)))return;let $=m.ch;for(;$>0&&M.charAt($-1).match(exports.InputCode.AUTOCOMPLETE_REGEX);)$--;const H=M.substring($,m.ch);if(H&&H.length>=1){if(H==="."&&($===0||!M.charAt($-1).match(/\w/)))return;this.autocompleteList.some(oe=>oe.toLowerCase().startsWith(H.toLowerCase()))&&(T.fromGeneralTyping=!0,L=!0)}}if(L){u.setOption("hintOptions",T);const $=T.fromAtTrigger?50:0;setTimeout(()=>{u.hasFocus()&&u.execCommand("autocomplete")},$)}}),setTimeout(()=>{var u;return(u=this.editor)==null?void 0:u.refresh()},0)}}disconnectedCallback(){if(super.disconnectedCallback(),this.editor){const e=this.editor.getWrapperElement();e.removeEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.off("change",this.changeHandler),e&&e.remove&&e.remove(),this.editor=void 0}}renderInput(){return N`
3093
+ `;(function(n,e){(function(i){i(Pr)})(function(i){i.overlayMode=function(o,l,d){return{startState:function(){return{base:i.startState(o),overlay:i.startState(l),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(u){return{base:i.copyState(o,u.base),overlay:i.copyState(l,u.overlay),basePos:u.basePos,baseCur:null,overlayPos:u.overlayPos,overlayCur:null}},token:function(u,v){return(u!=v.streamSeen||Math.min(v.basePos,v.overlayPos)<u.start)&&(v.streamSeen=u,v.basePos=v.overlayPos=u.start),u.start==v.basePos&&(v.baseCur=o.token(u,v.base),v.basePos=u.pos),u.start==v.overlayPos&&(u.pos=u.start,v.overlayCur=l.token(u,v.overlay),v.overlayPos=u.pos),u.pos=Math.min(v.basePos,v.overlayPos),v.overlayCur==null?v.baseCur:v.baseCur!=null&&v.overlay.combineTokens||d&&v.overlay.combineTokens==null?v.baseCur+" "+v.overlayCur:v.overlayCur},indent:o.indent&&function(u,v,b){return o.indent(u.base,v,b)},electricChars:o.electricChars,innerMode:function(u){return{state:u.base,mode:o}},blankLine:function(u){var v,b;return o.blankLine&&(v=o.blankLine(u.base)),l.blankLine&&(b=l.blankLine(u.overlay)),b==null?v:d&&v!=null?v+" "+b:b}}}})})();(function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("jinja2",function(){var o=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],l=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,u=["true","false"],v=/^(\d[+\-\*\/])?\d+(\.\d+)?/;o=new RegExp("(("+o.join(")|(")+"))\\b"),u=new RegExp("(("+u.join(")|(")+"))\\b");function b(m,M){var L=m.peek();if(M.incomment)return m.skipTo("#}")?(m.eatWhile(/\#|}/),M.incomment=!1):m.skipToEnd(),"comment";if(M.intag){if(M.operator){if(M.operator=!1,m.match(u))return"atom";if(m.match(v))return"number"}if(M.sign){if(M.sign=!1,m.match(u))return"atom";if(m.match(v))return"number"}if(M.instring)return L==M.instring&&(M.instring=!1),m.next(),"string";if(L=="'"||L=='"')return M.instring=L,m.next(),"string";if(m.match(M.intag+"}")||m.eat("-")&&m.match(M.intag+"}"))return M.intag=!1,"tag";if(m.match(l))return M.operator=!0,"operator";if(m.match(d))M.sign=!0;else if(m.eat(" ")||m.sol()){if(m.match(o))return"keyword";if(m.match(u))return"atom";if(m.match(v))return"number";m.sol()&&m.next()}else m.next();return"variable"}else if(m.eat("{")){if(m.eat("#"))return M.incomment=!0,m.skipTo("#}")?(m.eatWhile(/\#|}/),M.incomment=!1):m.skipToEnd(),"comment";if(L=m.eat(/\{|%/))return M.intag=L,L=="{"&&(M.intag="}"),m.eat("-"),"tag"}m.next()}return{startState:function(){return{tokenize:b}},token:function(m,M){return M.tokenize(m,M)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),i.defineMIME("text/jinja2","jinja2")})})();var NL={exports:{}};(function(n,e){(function(i){i(Pr)})(function(i){var o={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},l={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(d,u){var v=d.indentUnit,b={},m=u.htmlMode?o:l;for(var M in m)b[M]=m[M];for(var M in u)b[M]=u[M];var L,T;function E(x,w){function U(ke){return w.tokenize=ke,ke(x,w)}var ne=x.next();if(ne=="<")return x.eat("!")?x.eat("[")?x.match("CDATA[")?U(oe("atom","]]>")):null:x.match("--")?U(oe("comment","-->")):x.match("DOCTYPE",!0,!0)?(x.eatWhile(/[\w\._\-]/),U(_(1))):null:x.eat("?")?(x.eatWhile(/[\w\._\-]/),w.tokenize=oe("meta","?>"),"meta"):(L=x.eat("/")?"closeTag":"openTag",w.tokenize=H,"tag bracket");if(ne=="&"){var ye;return x.eat("#")?x.eat("x")?ye=x.eatWhile(/[a-fA-F\d]/)&&x.eat(";"):ye=x.eatWhile(/[\d]/)&&x.eat(";"):ye=x.eatWhile(/[\w\.\-:]/)&&x.eat(";"),ye?"atom":"error"}else return x.eatWhile(/[^&<]/),null}E.isInText=!0;function H(x,w){var U=x.next();if(U==">"||U=="/"&&x.eat(">"))return w.tokenize=E,L=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return L="equals",null;if(U=="<"){w.tokenize=E,w.state=K,w.tagName=w.tagStart=null;var ne=w.tokenize(x,w);return ne?ne+" tag error":"tag error"}else return/[\'\"]/.test(U)?(w.tokenize=Y(U),w.stringStartCol=x.column(),w.tokenize(x,w)):(x.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Y(x){var w=function(U,ne){for(;!U.eol();)if(U.next()==x){ne.tokenize=H;break}return"string"};return w.isInAttribute=!0,w}function oe(x,w){return function(U,ne){for(;!U.eol();){if(U.match(w)){ne.tokenize=E;break}U.next()}return x}}function _(x){return function(w,U){for(var ne;(ne=w.next())!=null;){if(ne=="<")return U.tokenize=_(x+1),U.tokenize(w,U);if(ne==">")if(x==1){U.tokenize=E;break}else return U.tokenize=_(x-1),U.tokenize(w,U)}return"meta"}}function D(x,w,U){this.prev=x.context,this.tagName=w||"",this.indent=x.indented,this.startOfLine=U,(b.doNotIndent.hasOwnProperty(w)||x.context&&x.context.noIndent)&&(this.noIndent=!0)}function I(x){x.context&&(x.context=x.context.prev)}function B(x,w){for(var U;;){if(!x.context||(U=x.context.tagName,!b.contextGrabbers.hasOwnProperty(U)||!b.contextGrabbers[U].hasOwnProperty(w)))return;I(x)}}function K(x,w,U){return x=="openTag"?(U.tagStart=w.column(),ue):x=="closeTag"?ce:K}function ue(x,w,U){return x=="word"?(U.tagName=w.current(),T="tag",ie):b.allowMissingTagName&&x=="endTag"?(T="tag bracket",ie(x,w,U)):(T="error",ue)}function ce(x,w,U){if(x=="word"){var ne=w.current();return U.context&&U.context.tagName!=ne&&b.implicitlyClosed.hasOwnProperty(U.context.tagName)&&I(U),U.context&&U.context.tagName==ne||b.matchClosing===!1?(T="tag",me):(T="tag error",Me)}else return b.allowMissingTagName&&x=="endTag"?(T="tag bracket",me(x,w,U)):(T="error",Me)}function me(x,w,U){return x!="endTag"?(T="error",me):(I(U),K)}function Me(x,w,U){return T="error",me(x,w,U)}function ie(x,w,U){if(x=="word")return T="attribute",J;if(x=="endTag"||x=="selfcloseTag"){var ne=U.tagName,ye=U.tagStart;return U.tagName=U.tagStart=null,x=="selfcloseTag"||b.autoSelfClosers.hasOwnProperty(ne)?B(U,ne):(B(U,ne),U.context=new D(U,ne,ye==U.indented)),K}return T="error",ie}function J(x,w,U){return x=="equals"?V:(b.allowMissing||(T="error"),ie(x,w,U))}function V(x,w,U){return x=="string"?O:x=="word"&&b.allowUnquoted?(T="string",ie):(T="error",ie(x,w,U))}function O(x,w,U){return x=="string"?O:ie(x,w,U)}return{startState:function(x){var w={tokenize:E,state:K,indented:x||0,tagName:null,tagStart:null,context:null};return x!=null&&(w.baseIndent=x),w},token:function(x,w){if(!w.tagName&&x.sol()&&(w.indented=x.indentation()),x.eatSpace())return null;L=null;var U=w.tokenize(x,w);return(U||L)&&U!="comment"&&(T=null,w.state=w.state(L||U,x,w),T&&(U=T=="error"?U+" error":T)),U},indent:function(x,w,U){var ne=x.context;if(x.tokenize.isInAttribute)return x.tagStart==x.indented?x.stringStartCol+1:x.indented+v;if(ne&&ne.noIndent)return i.Pass;if(x.tokenize!=H&&x.tokenize!=E)return U?U.match(/^(\s*)/)[0].length:0;if(x.tagName)return b.multilineTagIndentPastTag!==!1?x.tagStart+x.tagName.length+2:x.tagStart+v*(b.multilineTagIndentFactor||1);if(b.alignCDATA&&/<!\[CDATA\[/.test(w))return 0;var ye=w&&/^<(\/)?([\w_:\.-]*)/.exec(w);if(ye&&ye[1])for(;ne;)if(ne.tagName==ye[2]){ne=ne.prev;break}else if(b.implicitlyClosed.hasOwnProperty(ne.tagName))ne=ne.prev;else break;else if(ye)for(;ne;){var ke=b.contextGrabbers[ne.tagName];if(ke&&ke.hasOwnProperty(ye[2]))ne=ne.prev;else break}for(;ne&&ne.prev&&!ne.startOfLine;)ne=ne.prev;return ne?ne.indent+v:x.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:b.htmlMode?"html":"xml",helperType:b.htmlMode?"html":"xml",skipAttribute:function(x){x.state==V&&(x.state=ie)},xmlCurrentTag:function(x){return x.tagName?{name:x.tagName,close:x.type=="closeTag"}:null},xmlCurrentContext:function(x){for(var w=[],U=x.context;U;U=U.prev)w.push(U.tagName);return w.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var HL=NL.exports,RL={exports:{}};(function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("javascript",function(o,l){var d=o.indentUnit,u=l.statementIndent,v=l.jsonld,b=l.json||v,m=l.trackScope!==!1,M=l.typescript,L=l.wordCharacters||/[\w$\xa1-\uffff]/,T=function(){function C(At){return{type:At,style:"keyword"}}var k=C("keyword a"),G=C("keyword b"),ee=C("keyword c"),$e=C("keyword d"),Fe=C("operator"),de={type:"atom",style:"atom"};return{if:C("if"),while:k,with:k,else:G,do:G,try:G,finally:G,return:$e,break:$e,continue:$e,new:C("new"),delete:ee,void:ee,throw:ee,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Fe,typeof:Fe,instanceof:Fe,true:de,false:de,null:de,undefined:de,NaN:de,Infinity:de,this:C("this"),class:C("class"),super:C("atom"),yield:ee,export:C("export"),import:C("import"),extends:ee,await:ee}}(),E=/[+\-*&%=<>!?|~^@]/,H=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Y(C){for(var k=!1,G,ee=!1;(G=C.next())!=null;){if(!k){if(G=="/"&&!ee)return;G=="["?ee=!0:ee&&G=="]"&&(ee=!1)}k=!k&&G=="\\"}}var oe,_;function D(C,k,G){return oe=C,_=G,k}function I(C,k){var G=C.next();if(G=='"'||G=="'")return k.tokenize=B(G),k.tokenize(C,k);if(G=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return D("number","number");if(G=="."&&C.match(".."))return D("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(G))return D(G);if(G=="="&&C.eat(">"))return D("=>","operator");if(G=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return D("number","number");if(/\d/.test(G))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),D("number","number");if(G=="/")return C.eat("*")?(k.tokenize=K,K(C,k)):C.eat("/")?(C.skipToEnd(),D("comment","comment")):Q(C,k,1)?(Y(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),D("regexp","string-2")):(C.eat("="),D("operator","operator",C.current()));if(G=="`")return k.tokenize=ue,ue(C,k);if(G=="#"&&C.peek()=="!")return C.skipToEnd(),D("meta","meta");if(G=="#"&&C.eatWhile(L))return D("variable","property");if(G=="<"&&C.match("!--")||G=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),D("comment","comment");if(E.test(G))return(G!=">"||!k.lexical||k.lexical.type!=">")&&(C.eat("=")?(G=="!"||G=="=")&&C.eat("="):/[<>*+\-|&?]/.test(G)&&(C.eat(G),G==">"&&C.eat(G))),G=="?"&&C.eat(".")?D("."):D("operator","operator",C.current());if(L.test(G)){C.eatWhile(L);var ee=C.current();if(k.lastType!="."){if(T.propertyIsEnumerable(ee)){var $e=T[ee];return D($e.type,$e.style,ee)}if(ee=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return D("async","keyword",ee)}return D("variable","variable",ee)}}function B(C){return function(k,G){var ee=!1,$e;if(v&&k.peek()=="@"&&k.match(H))return G.tokenize=I,D("jsonld-keyword","meta");for(;($e=k.next())!=null&&!($e==C&&!ee);)ee=!ee&&$e=="\\";return ee||(G.tokenize=I),D("string","string")}}function K(C,k){for(var G=!1,ee;ee=C.next();){if(ee=="/"&&G){k.tokenize=I;break}G=ee=="*"}return D("comment","comment")}function ue(C,k){for(var G=!1,ee;(ee=C.next())!=null;){if(!G&&(ee=="`"||ee=="$"&&C.eat("{"))){k.tokenize=I;break}G=!G&&ee=="\\"}return D("quasi","string-2",C.current())}var ce="([{}])";function me(C,k){k.fatArrowAt&&(k.fatArrowAt=null);var G=C.string.indexOf("=>",C.start);if(!(G<0)){if(M){var ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,G));ee&&(G=ee.index)}for(var $e=0,Fe=!1,de=G-1;de>=0;--de){var At=C.string.charAt(de),lr=ce.indexOf(At);if(lr>=0&&lr<3){if(!$e){++de;break}if(--$e==0){At=="("&&(Fe=!0);break}}else if(lr>=3&&lr<6)++$e;else if(L.test(At))Fe=!0;else if(/["'\/`]/.test(At))for(;;--de){if(de==0)return;var _n=C.string.charAt(de-1);if(_n==At&&C.string.charAt(de-2)!="\\"){de--;break}}else if(Fe&&!$e){++de;break}}Fe&&!$e&&(k.fatArrowAt=de)}}var Me={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(C,k,G,ee,$e,Fe){this.indented=C,this.column=k,this.type=G,this.prev=$e,this.info=Fe,ee!=null&&(this.align=ee)}function J(C,k){if(!m)return!1;for(var G=C.localVars;G;G=G.next)if(G.name==k)return!0;for(var ee=C.context;ee;ee=ee.prev)for(var G=ee.vars;G;G=G.next)if(G.name==k)return!0}function V(C,k,G,ee,$e){var Fe=C.cc;for(O.state=C,O.stream=$e,O.marked=null,O.cc=Fe,O.style=k,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var de=Fe.length?Fe.pop():b?Te:De;if(de(G,ee)){for(;Fe.length&&Fe[Fe.length-1].lex;)Fe.pop()();return O.marked?O.marked:G=="variable"&&J(C,ee)?"variable-2":k}}}var O={state:null,column:null,marked:null,cc:null};function x(){for(var C=arguments.length-1;C>=0;C--)O.cc.push(arguments[C])}function w(){return x.apply(null,arguments),!0}function U(C,k){for(var G=k;G;G=G.next)if(G.name==C)return!0;return!1}function ne(C){var k=O.state;if(O.marked="def",!!m){if(k.context){if(k.lexical.info=="var"&&k.context&&k.context.block){var G=ye(C,k.context);if(G!=null){k.context=G;return}}else if(!U(C,k.localVars)){k.localVars=new ot(C,k.localVars);return}}l.globalVars&&!U(C,k.globalVars)&&(k.globalVars=new ot(C,k.globalVars))}}function ye(C,k){if(k)if(k.block){var G=ye(C,k.prev);return G?G==k.prev?k:new Re(G,k.vars,!0):null}else return U(C,k.vars)?k:new Re(k.prev,new ot(C,k.vars),!1);else return null}function ke(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function Re(C,k,G){this.prev=C,this.vars=k,this.block=G}function ot(C,k){this.name=C,this.next=k}var Et=new ot("this",new ot("arguments",null));function Ye(){O.state.context=new Re(O.state.context,O.state.localVars,!1),O.state.localVars=Et}function Xe(){O.state.context=new Re(O.state.context,O.state.localVars,!0),O.state.localVars=null}function Be(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Be.lex=!0;function ge(C,k){var G=function(){var ee=O.state,$e=ee.indented;if(ee.lexical.type=="stat")$e=ee.lexical.indented;else for(var Fe=ee.lexical;Fe&&Fe.type==")"&&Fe.align;Fe=Fe.prev)$e=Fe.indented;ee.lexical=new ie($e,O.stream.column(),C,null,ee.lexical,k)};return G.lex=!0,G}function ve(){var C=O.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}ve.lex=!0;function Ae(C){function k(G){return G==C?w():C==";"||G=="}"||G==")"||G=="]"?x():w(k)}return k}function De(C,k){return C=="var"?w(ge("vardef",k),ko,Ae(";"),ve):C=="keyword a"?w(ge("form"),qt,De,ve):C=="keyword b"?w(ge("form"),De,ve):C=="keyword d"?O.stream.match(/^\s*$/,!1)?w():w(ge("stat"),_e,Ae(";"),ve):C=="debugger"?w(Ae(";")):C=="{"?w(ge("}"),Xe,Kt,ve,Be):C==";"?w():C=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==ve&&O.state.cc.pop()(),w(ge("form"),qt,De,ve,Xa)):C=="function"?w(pr):C=="for"?w(ge("form"),Xe,Ja,De,Be,ve):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form",C=="class"?C:k),En,ve)):C=="variable"?M&&k=="declare"?(O.marked="keyword",w(De)):M&&(k=="module"||k=="enum"||k=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",k=="enum"?w(Vr):k=="type"?w(Qa,Ae("operator"),Oe,Ae(";")):w(ge("form"),Bt,Ae("{"),ge("}"),Kt,ve,ve)):M&&k=="namespace"?(O.marked="keyword",w(ge("form"),Te,De,ve)):M&&k=="abstract"?(O.marked="keyword",w(De)):w(ge("stat"),Ne):C=="switch"?w(ge("form"),qt,Ae("{"),ge("}","switch"),Xe,Kt,ve,ve,Be):C=="case"?w(Te,Ae(":")):C=="default"?w(Ae(":")):C=="catch"?w(ge("form"),Ye,Ie,De,ve,Be):C=="export"?w(ge("stat"),_o,ve):C=="import"?w(ge("stat"),st,ve):C=="async"?w(De):k=="@"?w(Te,De):x(ge("stat"),Te,Ae(";"),ve)}function Ie(C){if(C=="(")return w(ii,Ae(")"))}function Te(C,k){return ir(C,k,!1)}function ht(C,k){return ir(C,k,!0)}function qt(C){return C!="("?x():w(ge(")"),_e,Ae(")"),ve)}function ir(C,k,G){if(O.state.fatArrowAt==O.stream.start){var ee=G?Ue:Nr;if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Ae("=>"),ee,Be);if(C=="variable")return x(Ye,Bt,Ae("=>"),ee,Be)}var $e=G?ct:Ve;return Me.hasOwnProperty(C)?w($e):C=="function"?w(pr,$e):C=="class"||M&&k=="interface"?(O.marked="keyword",w(ge("form"),$n,ve)):C=="keyword c"||C=="async"?w(G?ht:Te):C=="("?w(ge(")"),_e,Ae(")"),ve,$e):C=="operator"||C=="spread"?w(G?ht:Te):C=="["?w(ge("]"),je,ve,$e):C=="{"?Wi(Hr,"}",null,$e):C=="quasi"?x(Qe,$e):C=="new"?w(R(G)):w()}function _e(C){return C.match(/[;\}\)\],]/)?x():x(Te)}function Ve(C,k){return C==","?w(_e):ct(C,k,!1)}function ct(C,k,G){var ee=G==!1?Ve:ct,$e=G==!1?Te:ht;if(C=="=>")return w(Ye,G?Ue:Nr,Be);if(C=="operator")return/\+\+|--/.test(k)||M&&k=="!"?w(ee):M&&k=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?w(ge(">"),at(Oe,">"),ve,ee):k=="?"?w(Te,Ae(":"),$e):w($e);if(C=="quasi")return x(Qe,ee);if(C!=";"){if(C=="(")return Wi(ht,")","call",ee);if(C==".")return w(Dt,ee);if(C=="[")return w(ge("]"),_e,Ae("]"),ve,ee);if(M&&k=="as")return O.marked="keyword",w(Oe,ee);if(C=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),w($e)}}function Qe(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Qe):w(_e,et)}function et(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Qe)}function Nr(C){return me(O.stream,O.state),x(C=="{"?De:Te)}function Ue(C){return me(O.stream,O.state),x(C=="{"?De:ht)}function R(C){return function(k){return k=="."?w(C?j:re):k=="variable"&&M?w(Ui,C?ct:Ve):x(C?ht:Te)}}function re(C,k){if(k=="target")return O.marked="keyword",w(Ve)}function j(C,k){if(k=="target")return O.marked="keyword",w(ct)}function Ne(C){return C==":"?w(ve,De):x(Ve,Ae(";"),ve)}function Dt(C){if(C=="variable")return O.marked="property",w()}function Hr(C,k){if(C=="async")return O.marked="property",w(Hr);if(C=="variable"||O.style=="keyword"){if(O.marked="property",k=="get"||k=="set")return w(r1);var G;return M&&O.state.fatArrowAt==O.stream.start&&(G=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+G[0].length),w(nr)}else{if(C=="number"||C=="string")return O.marked=v?"property":O.style+" property",w(nr);if(C=="jsonld-keyword")return w(nr);if(M&&ke(k))return O.marked="keyword",w(Hr);if(C=="[")return w(Te,ri,Ae("]"),nr);if(C=="spread")return w(ht,nr);if(k=="*")return O.marked="keyword",w(Hr);if(C==":")return x(nr)}}function r1(C){return C!="variable"?x(nr):(O.marked="property",w(pr))}function nr(C){if(C==":")return w(ht);if(C=="(")return x(pr)}function at(C,k,G){function ee($e,Fe){if(G?G.indexOf($e)>-1:$e==","){var de=O.state.lexical;return de.info=="call"&&(de.pos=(de.pos||0)+1),w(function(At,lr){return At==k||lr==k?x():x(C)},ee)}return $e==k||Fe==k?w():G&&G.indexOf(";")>-1?x(C):w(Ae(k))}return function($e,Fe){return $e==k||Fe==k?w():x(C,ee)}}function Wi(C,k,G){for(var ee=3;ee<arguments.length;ee++)O.cc.push(arguments[ee]);return w(ge(k,G),at(C,k),ve)}function Kt(C){return C=="}"?w():x(De,Kt)}function ri(C,k){if(M){if(C==":")return w(Oe);if(k=="?")return w(ri)}}function Se(C,k){if(M&&(C==":"||k=="in"))return w(Oe)}function Tn(C){if(M&&C==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?w(Te,Ft,Oe):w(Oe)}function Ft(C,k){if(k=="is")return O.marked="keyword",w()}function Oe(C,k){if(k=="keyof"||k=="typeof"||k=="infer"||k=="readonly")return O.marked="keyword",w(k=="typeof"?ht:Oe);if(C=="variable"||k=="void")return O.marked="type",w(or);if(k=="|"||k=="&")return w(Oe);if(C=="string"||C=="number"||C=="atom")return w(or);if(C=="[")return w(ge("]"),at(Oe,"]",","),ve,or);if(C=="{")return w(ge("}"),kn,ve,or);if(C=="(")return w(at(On,")"),ft,or);if(C=="<")return w(at(Oe,">"),Oe);if(C=="quasi")return x(Rr,or)}function ft(C){if(C=="=>")return w(Oe)}function kn(C){return C.match(/[\}\)\]]/)?w():C==","||C==";"?w(kn):x(Tt,kn)}function Tt(C,k){if(C=="variable"||O.style=="keyword")return O.marked="property",w(Tt);if(k=="?"||C=="number"||C=="string")return w(Tt);if(C==":")return w(Oe);if(C=="[")return w(Ae("variable"),Se,Ae("]"),Tt);if(C=="(")return x(ar,Tt);if(!C.match(/[;\}\)\],]/))return w()}function Rr(C,k){return C!="quasi"?x():k.slice(k.length-2)!="${"?w(Rr):w(Oe,_t)}function _t(C){if(C=="}")return O.marked="string-2",O.state.tokenize=ue,w(Rr)}function On(C,k){return C=="variable"&&O.stream.match(/^\s*[?:]/,!1)||k=="?"?w(On):C==":"?w(Oe):C=="spread"?w(On):x(Oe)}function or(C,k){if(k=="<")return w(ge(">"),at(Oe,">"),ve,or);if(k=="|"||C=="."||k=="&")return w(Oe);if(C=="[")return w(Oe,Ae("]"),or);if(k=="extends"||k=="implements")return O.marked="keyword",w(Oe);if(k=="?")return w(Oe,Ae(":"),Oe)}function Ui(C,k){if(k=="<")return w(ge(">"),at(Oe,">"),ve,or)}function Ci(){return x(Oe,Ka)}function Ka(C,k){if(k=="=")return w(Oe)}function ko(C,k){return k=="enum"?(O.marked="keyword",w(Vr)):x(Bt,ri,Fr,$o)}function Bt(C,k){if(M&&ke(k))return O.marked="keyword",w(Bt);if(C=="variable")return ne(k),w();if(C=="spread")return w(Bt);if(C=="[")return Wi(Oo,"]");if(C=="{")return Wi(Ya,"}")}function Ya(C,k){return C=="variable"&&!O.stream.match(/^\s*:/,!1)?(ne(k),w(Fr)):(C=="variable"&&(O.marked="property"),C=="spread"?w(Bt):C=="}"?x():C=="["?w(Te,Ae("]"),Ae(":"),Ya):w(Ae(":"),Bt,Fr))}function Oo(){return x(Bt,Fr)}function Fr(C,k){if(k=="=")return w(ht)}function $o(C){if(C==",")return w(ko)}function Xa(C,k){if(C=="keyword b"&&k=="else")return w(ge("form","else"),De,ve)}function Ja(C,k){if(k=="await")return w(Ja);if(C=="(")return w(ge(")"),Eo,ve)}function Eo(C){return C=="var"?w(ko,wi):C=="variable"?w(wi):x(wi)}function wi(C,k){return C==")"?w():C==";"?w(wi):k=="in"||k=="of"?(O.marked="keyword",w(Te,wi)):x(Te,wi)}function pr(C,k){if(k=="*")return O.marked="keyword",w(pr);if(C=="variable")return ne(k),w(pr);if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Tn,De,Be);if(M&&k=="<")return w(ge(">"),at(Ci,">"),ve,pr)}function ar(C,k){if(k=="*")return O.marked="keyword",w(ar);if(C=="variable")return ne(k),w(ar);if(C=="(")return w(Ye,ge(")"),at(ii,")"),ve,Tn,Be);if(M&&k=="<")return w(ge(">"),at(Ci,">"),ve,ar)}function Qa(C,k){if(C=="keyword"||C=="variable")return O.marked="type",w(Qa);if(k=="<")return w(ge(">"),at(Ci,">"),ve)}function ii(C,k){return k=="@"&&w(Te,ii),C=="spread"?w(ii):M&&ke(k)?(O.marked="keyword",w(ii)):M&&C=="this"?w(ri,Fr):x(Bt,ri,Fr)}function $n(C,k){return C=="variable"?En(C,k):Cr(C,k)}function En(C,k){if(C=="variable")return ne(k),w(Cr)}function Cr(C,k){if(k=="<")return w(ge(">"),at(Ci,">"),ve,Cr);if(k=="extends"||k=="implements"||M&&C==",")return k=="implements"&&(O.marked="keyword"),w(M?Oe:Te,Cr);if(C=="{")return w(ge("}"),wr,ve)}function wr(C,k){if(C=="async"||C=="variable"&&(k=="static"||k=="get"||k=="set"||M&&ke(k))&&O.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return O.marked="keyword",w(wr);if(C=="variable"||O.style=="keyword")return O.marked="property",w(sr,wr);if(C=="number"||C=="string")return w(sr,wr);if(C=="[")return w(Te,ri,Ae("]"),sr,wr);if(k=="*")return O.marked="keyword",w(wr);if(M&&C=="(")return x(ar,wr);if(C==";"||C==",")return w(wr);if(C=="}")return w();if(k=="@")return w(Te,wr)}function sr(C,k){if(k=="!"||k=="?")return w(sr);if(C==":")return w(Oe,Fr);if(k=="=")return w(ht);var G=O.state.lexical.prev,ee=G&&G.info=="interface";return x(ee?ar:pr)}function _o(C,k){return k=="*"?(O.marked="keyword",w(Yt,Ae(";"))):k=="default"?(O.marked="keyword",w(Te,Ae(";"))):C=="{"?w(at(Ao,"}"),Yt,Ae(";")):x(De)}function Ao(C,k){if(k=="as")return O.marked="keyword",w(Ae("variable"));if(C=="variable")return x(ht,Ao)}function st(C){return C=="string"?w():C=="("?x(Te):C=="."?x(Ve):x(be,Br,Yt)}function be(C,k){return C=="{"?Wi(be,"}"):(C=="variable"&&ne(k),k=="*"&&(O.marked="keyword"),w(Io))}function Br(C){if(C==",")return w(be,Br)}function Io(C,k){if(k=="as")return O.marked="keyword",w(be)}function Yt(C,k){if(k=="from")return O.marked="keyword",w(Te)}function je(C){return C=="]"?w():x(at(ht,"]"))}function Vr(){return x(ge("form"),Bt,Ae("{"),ge("}"),at(ji,"}"),ve,ve)}function ji(){return x(Bt,Fr)}function Po(C,k){return C.lastType=="operator"||C.lastType==","||E.test(k.charAt(0))||/[,.]/.test(k.charAt(0))}function Q(C,k,G){return k.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(k.lastType)||k.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(G||0)))}return{startState:function(C){var k={tokenize:I,lastType:"sof",cc:[],lexical:new ie((C||0)-d,0,"block",!1),localVars:l.localVars,context:l.localVars&&new Re(null,null,!1),indented:C||0};return l.globalVars&&typeof l.globalVars=="object"&&(k.globalVars=l.globalVars),k},token:function(C,k){if(C.sol()&&(k.lexical.hasOwnProperty("align")||(k.lexical.align=!1),k.indented=C.indentation(),me(C,k)),k.tokenize!=K&&C.eatSpace())return null;var G=k.tokenize(C,k);return oe=="comment"?G:(k.lastType=oe=="operator"&&(_=="++"||_=="--")?"incdec":oe,V(k,G,oe,_,C))},indent:function(C,k){if(C.tokenize==K||C.tokenize==ue)return i.Pass;if(C.tokenize!=I)return 0;var G=k&&k.charAt(0),ee=C.lexical,$e;if(!/^\s*else\b/.test(k))for(var Fe=C.cc.length-1;Fe>=0;--Fe){var de=C.cc[Fe];if(de==ve)ee=ee.prev;else if(de!=Xa&&de!=Be)break}for(;(ee.type=="stat"||ee.type=="form")&&(G=="}"||($e=C.cc[C.cc.length-1])&&($e==Ve||$e==ct)&&!/^[,\.=+\-*:?[\(]/.test(k));)ee=ee.prev;u&&ee.type==")"&&ee.prev.type=="stat"&&(ee=ee.prev);var At=ee.type,lr=G==At;return At=="vardef"?ee.indented+(C.lastType=="operator"||C.lastType==","?ee.info.length+1:0):At=="form"&&G=="{"?ee.indented:At=="form"?ee.indented+d:At=="stat"?ee.indented+(Po(C,k)?u||d:0):ee.info=="switch"&&!lr&&l.doubleIndentSwitch!=!1?ee.indented+(/^(?:case|default)\b/.test(k)?d:2*d):ee.align?ee.column+(lr?0:1):ee.indented+(lr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:b?null:"/*",blockCommentEnd:b?null:"*/",blockCommentContinue:b?null:" * ",lineComment:b?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:b?"json":"javascript",jsonldMode:v,jsonMode:b,expressionAllowed:Q,skipExpression:function(C){V(C,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var FL=RL.exports,nf={exports:{}},of;function BL(){return of||(of=1,function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("css",function(ie,J){var V=J.inline;J.propertyKeywords||(J=i.resolveMode("text/css"));var O=ie.indentUnit,x=J.tokenHooks,w=J.documentTypes||{},U=J.mediaTypes||{},ne=J.mediaFeatures||{},ye=J.mediaValueKeywords||{},ke=J.propertyKeywords||{},Re=J.nonStandardPropertyKeywords||{},ot=J.fontProperties||{},Et=J.counterDescriptors||{},Ye=J.colorKeywords||{},Xe=J.valueKeywords||{},Be=J.allowNested,ge=J.lineComment,ve=J.supportsAtComponent===!0,Ae=ie.highlightNonStandardPropertyKeywords!==!1,De,Ie;function Te(R,re){return De=re,R}function ht(R,re){var j=R.next();if(x[j]){var Ne=x[j](R,re);if(Ne!==!1)return Ne}if(j=="@")return R.eatWhile(/[\w\\\-]/),Te("def",R.current());if(j=="="||(j=="~"||j=="|")&&R.eat("="))return Te(null,"compare");if(j=='"'||j=="'")return re.tokenize=qt(j),re.tokenize(R,re);if(j=="#")return R.eatWhile(/[\w\\\-]/),Te("atom","hash");if(j=="!")return R.match(/^\s*\w*/),Te("keyword","important");if(/\d/.test(j)||j=="."&&R.eat(/\d/))return R.eatWhile(/[\w.%]/),Te("number","unit");if(j==="-"){if(/[\d.]/.test(R.peek()))return R.eatWhile(/[\w.%]/),Te("number","unit");if(R.match(/^-[\w\\\-]*/))return R.eatWhile(/[\w\\\-]/),R.match(/^\s*:/,!1)?Te("variable-2","variable-definition"):Te("variable-2","variable");if(R.match(/^\w+-/))return Te("meta","meta")}else return/[,+>*\/]/.test(j)?Te(null,"select-op"):j=="."&&R.match(/^-?[_a-z][_a-z0-9-]*/i)?Te("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(j)?Te(null,j):R.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(R.current())&&(re.tokenize=ir),Te("variable callee","variable")):/[\w\\\-]/.test(j)?(R.eatWhile(/[\w\\\-]/),Te("property","word")):Te(null,null)}function qt(R){return function(re,j){for(var Ne=!1,Dt;(Dt=re.next())!=null;){if(Dt==R&&!Ne){R==")"&&re.backUp(1);break}Ne=!Ne&&Dt=="\\"}return(Dt==R||!Ne&&R!=")")&&(j.tokenize=null),Te("string","string")}}function ir(R,re){return R.next(),R.match(/^\s*[\"\')]/,!1)?re.tokenize=null:re.tokenize=qt(")"),Te(null,"(")}function _e(R,re,j){this.type=R,this.indent=re,this.prev=j}function Ve(R,re,j,Ne){return R.context=new _e(j,re.indentation()+(Ne===!1?0:O),R.context),j}function ct(R){return R.context.prev&&(R.context=R.context.prev),R.context.type}function Qe(R,re,j){return Ue[j.context.type](R,re,j)}function et(R,re,j,Ne){for(var Dt=Ne||1;Dt>0;Dt--)j.context=j.context.prev;return Qe(R,re,j)}function Nr(R){var re=R.current().toLowerCase();Xe.hasOwnProperty(re)?Ie="atom":Ye.hasOwnProperty(re)?Ie="keyword":Ie="variable"}var Ue={};return Ue.top=function(R,re,j){if(R=="{")return Ve(j,re,"block");if(R=="}"&&j.context.prev)return ct(j);if(ve&&/@component/i.test(R))return Ve(j,re,"atComponentBlock");if(/^@(-moz-)?document$/i.test(R))return Ve(j,re,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(R))return Ve(j,re,"atBlock");if(/^@(font-face|counter-style)/i.test(R))return j.stateArg=R,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(R))return"keyframes";if(R&&R.charAt(0)=="@")return Ve(j,re,"at");if(R=="hash")Ie="builtin";else if(R=="word")Ie="tag";else{if(R=="variable-definition")return"maybeprop";if(R=="interpolation")return Ve(j,re,"interpolation");if(R==":")return"pseudo";if(Be&&R=="(")return Ve(j,re,"parens")}return j.context.type},Ue.block=function(R,re,j){if(R=="word"){var Ne=re.current().toLowerCase();return ke.hasOwnProperty(Ne)?(Ie="property","maybeprop"):Re.hasOwnProperty(Ne)?(Ie=Ae?"string-2":"property","maybeprop"):Be?(Ie=re.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Ie+=" error","maybeprop")}else return R=="meta"?"block":!Be&&(R=="hash"||R=="qualifier")?(Ie="error","block"):Ue.top(R,re,j)},Ue.maybeprop=function(R,re,j){return R==":"?Ve(j,re,"prop"):Qe(R,re,j)},Ue.prop=function(R,re,j){if(R==";")return ct(j);if(R=="{"&&Be)return Ve(j,re,"propBlock");if(R=="}"||R=="{")return et(R,re,j);if(R=="(")return Ve(j,re,"parens");if(R=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(re.current()))Ie+=" error";else if(R=="word")Nr(re);else if(R=="interpolation")return Ve(j,re,"interpolation");return"prop"},Ue.propBlock=function(R,re,j){return R=="}"?ct(j):R=="word"?(Ie="property","maybeprop"):j.context.type},Ue.parens=function(R,re,j){return R=="{"||R=="}"?et(R,re,j):R==")"?ct(j):R=="("?Ve(j,re,"parens"):R=="interpolation"?Ve(j,re,"interpolation"):(R=="word"&&Nr(re),"parens")},Ue.pseudo=function(R,re,j){return R=="meta"?"pseudo":R=="word"?(Ie="variable-3",j.context.type):Qe(R,re,j)},Ue.documentTypes=function(R,re,j){return R=="word"&&w.hasOwnProperty(re.current())?(Ie="tag",j.context.type):Ue.atBlock(R,re,j)},Ue.atBlock=function(R,re,j){if(R=="(")return Ve(j,re,"atBlock_parens");if(R=="}"||R==";")return et(R,re,j);if(R=="{")return ct(j)&&Ve(j,re,Be?"block":"top");if(R=="interpolation")return Ve(j,re,"interpolation");if(R=="word"){var Ne=re.current().toLowerCase();Ne=="only"||Ne=="not"||Ne=="and"||Ne=="or"?Ie="keyword":U.hasOwnProperty(Ne)?Ie="attribute":ne.hasOwnProperty(Ne)?Ie="property":ye.hasOwnProperty(Ne)?Ie="keyword":ke.hasOwnProperty(Ne)?Ie="property":Re.hasOwnProperty(Ne)?Ie=Ae?"string-2":"property":Xe.hasOwnProperty(Ne)?Ie="atom":Ye.hasOwnProperty(Ne)?Ie="keyword":Ie="error"}return j.context.type},Ue.atComponentBlock=function(R,re,j){return R=="}"?et(R,re,j):R=="{"?ct(j)&&Ve(j,re,Be?"block":"top",!1):(R=="word"&&(Ie="error"),j.context.type)},Ue.atBlock_parens=function(R,re,j){return R==")"?ct(j):R=="{"||R=="}"?et(R,re,j,2):Ue.atBlock(R,re,j)},Ue.restricted_atBlock_before=function(R,re,j){return R=="{"?Ve(j,re,"restricted_atBlock"):R=="word"&&j.stateArg=="@counter-style"?(Ie="variable","restricted_atBlock_before"):Qe(R,re,j)},Ue.restricted_atBlock=function(R,re,j){return R=="}"?(j.stateArg=null,ct(j)):R=="word"?(j.stateArg=="@font-face"&&!ot.hasOwnProperty(re.current().toLowerCase())||j.stateArg=="@counter-style"&&!Et.hasOwnProperty(re.current().toLowerCase())?Ie="error":Ie="property","maybeprop"):"restricted_atBlock"},Ue.keyframes=function(R,re,j){return R=="word"?(Ie="variable","keyframes"):R=="{"?Ve(j,re,"top"):Qe(R,re,j)},Ue.at=function(R,re,j){return R==";"?ct(j):R=="{"||R=="}"?et(R,re,j):(R=="word"?Ie="tag":R=="hash"&&(Ie="builtin"),"at")},Ue.interpolation=function(R,re,j){return R=="}"?ct(j):R=="{"||R==";"?et(R,re,j):(R=="word"?Ie="variable":R!="variable"&&R!="("&&R!=")"&&(Ie="error"),"interpolation")},{startState:function(R){return{tokenize:null,state:V?"block":"top",stateArg:null,context:new _e(V?"block":"top",R||0,null)}},token:function(R,re){if(!re.tokenize&&R.eatSpace())return null;var j=(re.tokenize||ht)(R,re);return j&&typeof j=="object"&&(De=j[1],j=j[0]),Ie=j,De!="comment"&&(re.state=Ue[re.state](De,R,re)),Ie},indent:function(R,re){var j=R.context,Ne=re&&re.charAt(0),Dt=j.indent;return j.type=="prop"&&(Ne=="}"||Ne==")")&&(j=j.prev),j.prev&&(Ne=="}"&&(j.type=="block"||j.type=="top"||j.type=="interpolation"||j.type=="restricted_atBlock")?(j=j.prev,Dt=j.indent):(Ne==")"&&(j.type=="parens"||j.type=="atBlock_parens")||Ne=="{"&&(j.type=="at"||j.type=="atBlock"))&&(Dt=Math.max(0,j.indent-O))),Dt},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ge,fold:"brace"}});function o(ie){for(var J={},V=0;V<ie.length;++V)J[ie[V].toLowerCase()]=!0;return J}var l=["domain","regexp","url","url-prefix"],d=o(l),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],v=o(u),b=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],m=o(b),M=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],L=o(M),T=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],E=o(T),H=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],Y=o(H),oe=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=o(oe),D=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=o(D),B=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],K=o(B),ue=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],ce=o(ue),me=l.concat(u).concat(b).concat(M).concat(T).concat(H).concat(B).concat(ue);i.registerHelper("hintWords","css",me);function Me(ie,J){for(var V=!1,O;(O=ie.next())!=null;){if(V&&O=="/"){J.tokenize=null;break}V=O=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:d,mediaTypes:v,mediaFeatures:m,mediaValueKeywords:L,propertyKeywords:E,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:I,colorKeywords:K,valueKeywords:ce,tokenHooks:{"/":function(ie,J){return ie.eat("*")?(J.tokenize=Me,Me(ie,J)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:L,propertyKeywords:E,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:ce,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,J){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(J.tokenize=Me,Me(ie,J)):["operator","operator"]},":":function(ie){return ie.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ie){return ie.match(/^[\w-]+/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ie){return ie.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:v,mediaFeatures:m,mediaValueKeywords:L,propertyKeywords:E,nonStandardPropertyKeywords:Y,colorKeywords:K,valueKeywords:ce,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ie,J){return ie.eat("/")?(ie.skipToEnd(),["comment","comment"]):ie.eat("*")?(J.tokenize=Me,Me(ie,J)):["operator","operator"]},"@":function(ie){return ie.eat("{")?[null,"interpolation"]:ie.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ie.eatWhile(/[\w\\\-]/),ie.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:v,mediaFeatures:m,propertyKeywords:E,nonStandardPropertyKeywords:Y,fontProperties:_,counterDescriptors:I,colorKeywords:K,valueKeywords:ce,supportsAtComponent:!0,tokenHooks:{"/":function(ie,J){return ie.eat("*")?(J.tokenize=Me,Me(ie,J)):!1}},name:"css",helperType:"gss"})})}()),nf.exports}(function(n,e){(function(i){i(Pr,HL,FL,BL())})(function(i){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function l(L,T,E){var H=L.current(),Y=H.search(T);return Y>-1?L.backUp(H.length-Y):H.match(/<\/?$/)&&(L.backUp(H.length),L.match(T,!1)||L.match(H)),E}var d={};function u(L){var T=d[L];return T||(d[L]=new RegExp("\\s+"+L+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function v(L,T){var E=L.match(u(T));return E?/^\s*(.*?)\s*$/.exec(E[2])[1]:""}function b(L,T){return new RegExp((T?"^":"")+"</s*"+L+"s*>","i")}function m(L,T){for(var E in L)for(var H=T[E]||(T[E]=[]),Y=L[E],oe=Y.length-1;oe>=0;oe--)H.unshift(Y[oe])}function M(L,T){for(var E=0;E<L.length;E++){var H=L[E];if(!H[0]||H[1].test(v(T,H[0])))return H[2]}}i.defineMode("htmlmixed",function(L,T){var E=i.getMode(L,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),H={},Y=T&&T.tags,oe=T&&T.scriptTypes;if(m(o,H),Y&&m(Y,H),oe)for(var _=oe.length-1;_>=0;_--)H.script.unshift(["type",oe[_].matches,oe[_].mode]);function D(I,B){var K=E.token(I,B.htmlState),ue=/\btag\b/.test(K),ce;if(ue&&!/[<>\s\/]/.test(I.current())&&(ce=B.htmlState.tagName&&B.htmlState.tagName.toLowerCase())&&H.hasOwnProperty(ce))B.inTag=ce+" ";else if(B.inTag&&ue&&/>$/.test(I.current())){var me=/^([\S]+) (.*)/.exec(B.inTag);B.inTag=null;var Me=I.current()==">"&&M(H[me[1]],me[2]),ie=i.getMode(L,Me),J=b(me[1],!0),V=b(me[1],!1);B.token=function(O,x){return O.match(J,!1)?(x.token=D,x.localState=x.localMode=null,null):l(O,V,x.localMode.token(O,x.localState))},B.localMode=ie,B.localState=i.startState(ie,E.indent(B.htmlState,"",""))}else B.inTag&&(B.inTag+=I.current(),I.eol()&&(B.inTag+=" "));return K}return{startState:function(){var I=i.startState(E);return{token:D,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var B;return I.localState&&(B=i.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:B,htmlState:i.copyState(E,I.htmlState)}},token:function(I,B){return B.token(I,B)},indent:function(I,B,K){return!I.localMode||/^\s*<\//.test(B)?E.indent(I.htmlState,B,K):I.localMode.indent?I.localMode.indent(I.localState,B,K):i.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||E}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})})();(function(n,e){(function(i){i(Pr)})(function(i){i.defineMode("solr",function(){var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,l=/[\|\!\+\-\*\?\~\^\&]/,d=/^(OR|AND|NOT|TO)$/i;function u(L){return parseFloat(L).toString()===L}function v(L){return function(T,E){for(var H=!1,Y;(Y=T.next())!=null&&!(Y==L&&!H);)H=!H&&Y=="\\";return H||(E.tokenize=M),"string"}}function b(L){return function(T,E){var H="operator";return L=="+"?H+=" positive":L=="-"?H+=" negative":L=="|"?T.eat(/\|/):L=="&"?T.eat(/\&/):L=="^"&&(H+=" boost"),E.tokenize=M,H}}function m(L){return function(T,E){for(var H=L;(L=T.peek())&&L.match(o)!=null;)H+=T.next();return E.tokenize=M,d.test(H)?"operator":u(H)?"number":T.peek()==":"?"field":"string"}}function M(L,T){var E=L.next();return E=='"'?T.tokenize=v(E):l.test(E)?T.tokenize=b(E):o.test(E)&&(T.tokenize=m(E)),T.tokenize!=M?T.tokenize(L,T):null}return{startState:function(){return{tokenize:M}},token:function(L,T){return L.eatSpace()?null:T.tokenize(L,T)}}}),i.defineMIME("text/x-solr","solr")})})();(function(n,e){(function(i){i(Pr)})(function(i){i.defineOption("placeholder","",function(m,M,L){var T=L&&L!=i.Init;if(M&&!T)m.on("blur",u),m.on("change",v),m.on("swapDoc",v),i.on(m.getInputField(),"compositionupdate",m.state.placeholderCompose=function(){d(m)}),v(m);else if(!M&&T){m.off("blur",u),m.off("change",v),m.off("swapDoc",v),i.off(m.getInputField(),"compositionupdate",m.state.placeholderCompose),o(m);var E=m.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}M&&!m.hasFocus()&&u(m)});function o(m){m.state.placeholder&&(m.state.placeholder.parentNode.removeChild(m.state.placeholder),m.state.placeholder=null)}function l(m){o(m);var M=m.state.placeholder=document.createElement("pre");M.style.cssText="height: 0; overflow: visible",M.style.direction=m.getOption("direction"),M.className="CodeMirror-placeholder CodeMirror-line-like";var L=m.getOption("placeholder");typeof L=="string"&&(L=document.createTextNode(L)),M.appendChild(L),m.display.lineSpace.insertBefore(M,m.display.lineSpace.firstChild)}function d(m){setTimeout(function(){var M=!1;if(m.lineCount()==1){var L=m.getInputField();M=L.nodeName=="TEXTAREA"?!m.getLine(0).length:!/[^\u200b]/.test(L.querySelector(".CodeMirror-line").textContent)}M?l(m):o(m)},20)}function u(m){b(m)&&l(m)}function v(m){var M=m.getWrapperElement(),L=b(m);M.className=M.className.replace(" CodeMirror-empty","")+(L?" CodeMirror-empty":""),L?l(m):o(m)}function b(m){return m.lineCount()===1&&m.getLine(0)===""}})})();(function(n,e){(function(i){i(Pr)})(function(i){var o="CodeMirror-hint",l="CodeMirror-hint-active";i.showHint=function(_,D,I){if(!D)return _.showHint(I);I&&I.async&&(D.async=!0);var B={hint:D};if(I)for(var K in I)B[K]=I[K];return _.showHint(B)},i.defineExtension("showHint",function(_){_=b(this,this.getCursor("start"),_);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!_.hint.supportsSelection)return;for(var I=0;I<D.length;I++)if(D[I].head.line!=D[I].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var B=this.state.completionActive=new d(this,_);B.options.hint&&(i.signal(this,"startCompletion",this),B.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(_,D){if(this.cm=_,this.options=D,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var I=this;_.on("cursorActivity",this.activityFunc=function(){I.cursorActivity()})}}var u=window.requestAnimationFrame||function(_){return setTimeout(_,1e3/60)},v=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(_,D){var I=_.list[D],B=this;this.cm.operation(function(){I.hint?I.hint(B.cm,_,I):B.cm.replaceRange(m(I),I.from||_.from,I.to||_.to,"complete"),i.signal(_,"pick",I),B.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(v(this.debounce),this.debounce=0);var _=this.startPos;this.data&&(_=this.data.from);var D=this.cm.getCursor(),I=this.cm.getLine(D.line);if(D.line!=this.startPos.line||I.length-D.ch!=this.startLen-this.startPos.ch||D.ch<_.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(I.charAt(D.ch-1)))this.close();else{var B=this;this.debounce=u(function(){B.update()}),this.widget&&this.widget.disable()}},update:function(_){if(this.tick!=null){var D=this,I=++this.tick;H(this.options.hint,this.cm,this.options,function(B){D.tick==I&&D.finishUpdate(B,_)})}},finishUpdate:function(_,D){this.data&&i.signal(this.data,"update");var I=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=_,_&&_.list.length&&(I&&_.list.length==1?this.pick(_,0):(this.widget=new T(this,_),i.signal(_,"shown")))}};function b(_,D,I){var B=_.options.hintOptions,K={};for(var ue in oe)K[ue]=oe[ue];if(B)for(var ue in B)B[ue]!==void 0&&(K[ue]=B[ue]);if(I)for(var ue in I)I[ue]!==void 0&&(K[ue]=I[ue]);return K.hint.resolve&&(K.hint=K.hint.resolve(_,D)),K}function m(_){return typeof _=="string"?_:_.text}function M(_,D){var I={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},B=/Mac/.test(navigator.platform);B&&(I["Ctrl-P"]=function(){D.moveFocus(-1)},I["Ctrl-N"]=function(){D.moveFocus(1)});var K=_.options.customKeys,ue=K?{}:I;function ce(ie,J){var V;typeof J!="string"?V=function(O){return J(O,D)}:I.hasOwnProperty(J)?V=I[J]:V=J,ue[ie]=V}if(K)for(var me in K)K.hasOwnProperty(me)&&ce(me,K[me]);var Me=_.options.extraKeys;if(Me)for(var me in Me)Me.hasOwnProperty(me)&&ce(me,Me[me]);return ue}function L(_,D){for(;D&&D!=_;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==_)return D;D=D.parentNode}}function T(_,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=_,this.data=D,this.picked=!1;var I=this,B=_.cm,K=B.getInputField().ownerDocument,ue=K.defaultView||K.parentWindow,ce=this.hints=K.createElement("ul");ce.setAttribute("role","listbox"),ce.setAttribute("aria-expanded","true"),ce.id=this.id;var me=_.cm.options.theme;ce.className="CodeMirror-hints "+me,this.selectedHint=D.selectedHint||0;for(var Me=D.list,ie=0;ie<Me.length;++ie){var J=ce.appendChild(K.createElement("li")),V=Me[ie],O=o+(ie!=this.selectedHint?"":" "+l);V.className!=null&&(O=V.className+" "+O),J.className=O,ie==this.selectedHint&&J.setAttribute("aria-selected","true"),J.id=this.id+"-"+ie,J.setAttribute("role","option"),V.render?V.render(J,D,V):J.appendChild(K.createTextNode(V.displayText||m(V))),J.hintId=ie}var x=_.options.container||K.body,w=B.cursorCoords(_.options.alignWithWord?D.from:null),U=w.left,ne=w.bottom,ye=!0,ke=0,Re=0;if(x!==K.body){var ot=["absolute","relative","fixed"].indexOf(ue.getComputedStyle(x).position)!==-1,Et=ot?x:x.offsetParent,Ye=Et.getBoundingClientRect(),Xe=K.body.getBoundingClientRect();ke=Ye.left-Xe.left-Et.scrollLeft,Re=Ye.top-Xe.top-Et.scrollTop}ce.style.left=U-ke+"px",ce.style.top=ne-Re+"px";var Be=ue.innerWidth||Math.max(K.body.offsetWidth,K.documentElement.offsetWidth),ge=ue.innerHeight||Math.max(K.body.offsetHeight,K.documentElement.offsetHeight);x.appendChild(ce),B.getInputField().setAttribute("aria-autocomplete","list"),B.getInputField().setAttribute("aria-owns",this.id),B.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ve=_.options.moveOnOverlap?ce.getBoundingClientRect():new DOMRect,Ae=_.options.paddingForScrollbar?ce.scrollHeight>ce.clientHeight+1:!1,De;setTimeout(function(){De=B.getScrollInfo()});var Ie=ve.bottom-ge;if(Ie>0){var Te=ve.bottom-ve.top,ht=w.top-(w.bottom-ve.top);if(ht-Te>0)ce.style.top=(ne=w.top-Te-Re)+"px",ye=!1;else if(Te>ge){ce.style.height=ge-5+"px",ce.style.top=(ne=w.bottom-ve.top-Re)+"px";var qt=B.getCursor();D.from.ch!=qt.ch&&(w=B.cursorCoords(qt),ce.style.left=(U=w.left-ke)+"px",ve=ce.getBoundingClientRect())}}var ir=ve.right-Be;if(Ae&&(ir+=B.display.nativeBarWidth),ir>0&&(ve.right-ve.left>Be&&(ce.style.width=Be-5+"px",ir-=ve.right-ve.left-Be),ce.style.left=(U=w.left-ir-ke)+"px"),Ae)for(var _e=ce.firstChild;_e;_e=_e.nextSibling)_e.style.paddingRight=B.display.nativeBarWidth+"px";if(B.addKeyMap(this.keyMap=M(_,{moveFocus:function(Qe,et){I.changeActive(I.selectedHint+Qe,et)},setFocus:function(Qe){I.changeActive(Qe)},menuSize:function(){return I.screenAmount()},length:Me.length,close:function(){_.close()},pick:function(){I.pick()},data:D})),_.options.closeOnUnfocus){var Ve;B.on("blur",this.onBlur=function(){Ve=setTimeout(function(){_.close()},100)}),B.on("focus",this.onFocus=function(){clearTimeout(Ve)})}B.on("scroll",this.onScroll=function(){var Qe=B.getScrollInfo(),et=B.getWrapperElement().getBoundingClientRect();De||(De=B.getScrollInfo());var Nr=ne+De.top-Qe.top,Ue=Nr-(ue.pageYOffset||(K.documentElement||K.body).scrollTop);if(ye||(Ue+=ce.offsetHeight),Ue<=et.top||Ue>=et.bottom)return _.close();ce.style.top=Nr+"px",ce.style.left=U+De.left-Qe.left+"px"}),i.on(ce,"dblclick",function(Qe){var et=L(ce,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(I.changeActive(et.hintId),I.pick())}),i.on(ce,"click",function(Qe){var et=L(ce,Qe.target||Qe.srcElement);et&&et.hintId!=null&&(I.changeActive(et.hintId),_.options.completeOnSingleClick&&I.pick())}),i.on(ce,"mousedown",function(){setTimeout(function(){B.focus()},20)});var ct=this.getSelectedHintRange();return(ct.from!==0||ct.to!==0)&&this.scrollToActive(),i.signal(D,"select",Me[this.selectedHint],ce.childNodes[this.selectedHint]),!0}T.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var _=this.completion.cm.getInputField();_.removeAttribute("aria-activedescendant"),_.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var _=this;this.keyMap={Enter:function(){_.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(_,D){if(_>=this.data.list.length?_=D?this.data.list.length-1:0:_<0&&(_=D?0:this.data.list.length-1),this.selectedHint!=_){var I=this.hints.childNodes[this.selectedHint];I&&(I.className=I.className.replace(" "+l,""),I.removeAttribute("aria-selected")),I=this.hints.childNodes[this.selectedHint=_],I.className+=" "+l,I.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",I.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],I)}},scrollToActive:function(){var _=this.getSelectedHintRange(),D=this.hints.childNodes[_.from],I=this.hints.childNodes[_.to],B=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-B.offsetTop:I.offsetTop+I.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=I.offsetTop+I.offsetHeight-this.hints.clientHeight+B.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var _=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-_),to:Math.min(this.data.list.length-1,this.selectedHint+_)}}};function E(_,D){if(!_.somethingSelected())return D;for(var I=[],B=0;B<D.length;B++)D[B].supportsSelection&&I.push(D[B]);return I}function H(_,D,I,B){if(_.async)_(D,B,I);else{var K=_(D,I);K&&K.then?K.then(B):B(K)}}function Y(_,D){var I=_.getHelpers(D,"hint"),B;if(I.length){var K=function(ue,ce,me){var Me=E(ue,I);function ie(J){if(J==Me.length)return ce(null);H(Me[J],ue,me,function(V){V&&V.list.length>0?ce(V):ie(J+1)})}ie(0)};return K.async=!0,K.supportsSelection=!0,K}else return(B=_.getHelper(_.getCursor(),"hintWords"))?function(ue){return i.hint.fromList(ue,{words:B})}:i.hint.anyword?function(ue,ce){return i.hint.anyword(ue,ce)}:function(){}}i.registerHelper("hint","auto",{resolve:Y}),i.registerHelper("hint","fromList",function(_,D){var I=_.getCursor(),B=_.getTokenAt(I),K,ue=i.Pos(I.line,B.start),ce=I;B.start<I.ch&&/\w/.test(B.string.charAt(I.ch-B.start-1))?K=B.string.substr(0,I.ch-B.start):(K="",ue=I);for(var me=[],Me=0;Me<D.words.length;Me++){var ie=D.words[Me];ie.slice(0,K.length)==K&&me.push(ie)}if(me.length)return{list:me,from:ue,to:ce}}),i.commands.autocomplete=i.showHint;var oe={hint:i.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};i.defineOption("hintOptions",null)})})();(function(n,e){(function(i){i(Pr)})(function(i){var o=i.Pos;function l(_,D){for(var I=0,B=_.length;I<B;++I)D(_[I])}function d(_,D){if(!Array.prototype.indexOf){for(var I=_.length;I--;)if(_[I]===D)return!0;return!1}return _.indexOf(D)!=-1}function u(_,D,I,B){var K=_.getCursor(),ue=I(_,K);if(!/\b(?:string|comment)\b/.test(ue.type)){var ce=i.innerMode(_.getMode(),ue.state);if(ce.mode.helperType!=="json"){ue.state=ce.state,/^[\w$_]*$/.test(ue.string)?ue.end>K.ch&&(ue.end=K.ch,ue.string=ue.string.slice(0,K.ch-ue.start)):ue={start:K.ch,end:K.ch,string:"",state:ue.state,type:ue.string=="."?"property":null};for(var me=ue;me.type=="property";){if(me=I(_,o(K.line,me.start)),me.string!=".")return;if(me=I(_,o(K.line,me.start)),!Me)var Me=[];Me.push(me)}return{list:oe(ue,Me,D,B),from:o(K.line,ue.start),to:o(K.line,ue.end)}}}}function v(_,D){return u(_,E,function(I,B){return I.getTokenAt(B)},D)}i.registerHelper("hint","javascript",v);function b(_,D){var I=_.getTokenAt(D);return D.ch==I.start+1&&I.string.charAt(0)=="."?(I.end=I.start,I.string=".",I.type="property"):/^\.[\w$_]*$/.test(I.string)&&(I.type="property",I.start++,I.string=I.string.replace(/\./,"")),I}function m(_,D){return u(_,H,b,D)}i.registerHelper("hint","coffeescript",m);var M="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),L="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),T="prototype apply call bind".split(" "),E="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),H="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function Y(_,D){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var I in _)D(I);else for(var B=_;B;B=Object.getPrototypeOf(B))Object.getOwnPropertyNames(B).forEach(D)}function oe(_,D,I,B){var K=[],ue=_.string,ce=B&&B.globalScope||window;function me(w){w.lastIndexOf(ue,0)==0&&!d(K,w)&&K.push(w)}function Me(w){typeof w=="string"?l(M,me):w instanceof Array?l(L,me):w instanceof Function&&l(T,me),Y(w,me)}if(D&&D.length){var ie=D.pop(),J;for(ie.type&&ie.type.indexOf("variable")===0?(B&&B.additionalContext&&(J=B.additionalContext[ie.string]),(!B||B.useGlobalScope!==!1)&&(J=J||ce[ie.string])):ie.type=="string"?J="":ie.type=="atom"?J=1:ie.type=="function"&&(ce.jQuery!=null&&(ie.string=="$"||ie.string=="jQuery")&&typeof ce.jQuery=="function"?J=ce.jQuery():ce._!=null&&ie.string=="_"&&typeof ce._=="function"&&(J=ce._()));J!=null&&D.length;)J=J[D.pop().string];J!=null&&Me(J)}else{for(var V=_.state.localVars;V;V=V.next)me(V.name);for(var O=_.state.context;O;O=O.prev)for(var V=O.vars;V;V=V.next)me(V.name);for(var V=_.state.globalVars;V;V=V.next)me(V.name);if(B&&B.additionalContext!=null)for(var x in B.additionalContext)me(x);(!B||B.useGlobalScope!==!1)&&Me(ce),l(I,me)}return K}})})();var VL=Object.defineProperty,ZL=Object.getOwnPropertyDescriptor,Bi=(n,e,i,o)=>{for(var l=o>1?void 0:o?ZL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&VL(e,i,l),l};Di.defineMode("nunjucks",(n,e)=>Di.overlayMode(Di.getMode(n,e.backdrop||"text/html"),Di.getMode(n,"jinja2")));const qp=le("input-code"),WL=["json","nunjucks","javascript","solr"],af={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends rr{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1,this.autocompleteList=[],this.singleLine=!1,this.boundHandleEditorMouseDown=this.handleEditorMouseDown.bind(this),this.changeHandler=e=>{this.value=e.getValue(),this.dispatchChange()}}atSignHint(e,i){const o=e.getCursor(),l=e.getLine(o.line),d=e.getTokenAt(o),u=i.fromAtTrigger||!1,v=i.fromGeneralTyping||!1;let b,m="";if(u){let T=-1;for(let E=o.ch-1;E>=0;E--)if(l.charAt(E)==="@"){T=E;break}if(T===-1&&d.string.startsWith("@")&&d.start<o.ch&&(T=d.start),T!==-1)b=Di.Pos(o.line,T),m=l.substring(T+1,o.ch);else return null}else if(v){let T=o.ch;for(;T>0&&l.charAt(T-1).match(exports.InputCode.AUTOCOMPLETE_REGEX);)T--;if(m=l.substring(T,o.ch),b=Di.Pos(o.line,T),m.length===0||m==="."&&(T===0||!l.charAt(T-1).match(/\w/)))return null}else return null;const L=(i.words||this.autocompleteList||[]).filter(T=>T.toLowerCase().startsWith(m.toLowerCase())).map(T=>({text:T,displayText:T}));return L.length>0?{list:L,from:b,to:Di.Pos(o.line,o.ch)}:null}get editorValue(){var e;return((e=this.editor)==null?void 0:e.getDoc().getValue())||""}set editorValue(e){this.editor&&this.editor.getValue()!==e&&this.editor.setValue(e)}updated(e){super.updated(e);const i=this.disabled||this.readonly;if(this.value!==this.editorValue&&(this.editorValue=this.value||""),this.editor&&i!==this.editor.isReadOnly()&&this.editor.setOption("readOnly",this.disabled?"nocursor":this.readonly),e.get("mode")&&this.editor&&(this.editor.setOption("mode",af[this.mode]),this.editor.refresh()),e.has("autocompleteList")&&this.editor){const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};this.editor.setOption("hintOptions",o)}this.editor&&(e.has("height")||e.has("hideLineNumbers"))&&(this.updateEditorSize(),this.editor.refresh()),e.has("singleLine")&&this.editor&&(this.editor.setOption("lineNumbers",!this.hideLineNumbers&&!this.singleLine),this.updateEditorSize(),this.editor.refresh())}updateEditorSize(){if(this.editor){const e=this.singleLine?"36px":`${24*this.height}px`;this.editor.setSize(null,e)}}handleEditorMouseDown(){this.editor&&!this.editor.hasFocus()&&this.editor.focus()}firstUpdated(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector(".editor");if(e&&this.shadowRoot){this.editor=Di.fromTextArea(e,{mode:af[this.mode],lineNumbers:!this.hideLineNumbers&&!this.singleLine,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.value!==void 0&&(this.editorValue=this.value);const o={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1};this.editor.setOption("hintOptions",o),this.updateEditorSize(),this.editor.on("change",this.changeHandler),this.editor.getWrapperElement().addEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.on("beforeChange",(u,v)=>{this.singleLine&&v.text.some(b=>/\n/.test(b))&&v.cancel()});const d={Tab:u=>{const v=Array((u.getOption("indentUnit")||0)+1).join(" ");u.replaceSelection(v)}};this.singleLine&&(d.Enter=()=>{}),this.editor.setOption("extraKeys",d),this.editor.on("inputRead",(u,v)=>{if(u.state.completionActive)return;const b=v.text&&v.text[0],m=u.getCursor(),M=u.getLine(m.line);let L=!1;const T={hint:this.atSignHint.bind(this),words:this.autocompleteList,container:document.body,completeSingle:!1,fromAtTrigger:!1,fromGeneralTyping:!1};if(b==="@")T.fromAtTrigger=!0,L=!0;else if(b&&b.match(exports.InputCode.AUTOCOMPLETE_REGEX)&&this.autocompleteList.length>0){if(b==="."&&(m.ch<=1||!M.charAt(m.ch-2).match(/\w/)))return;let E=m.ch;for(;E>0&&M.charAt(E-1).match(exports.InputCode.AUTOCOMPLETE_REGEX);)E--;const H=M.substring(E,m.ch);if(H&&H.length>=1){if(H==="."&&(E===0||!M.charAt(E-1).match(/\w/)))return;this.autocompleteList.some(oe=>oe.toLowerCase().startsWith(H.toLowerCase()))&&(T.fromGeneralTyping=!0,L=!0)}}if(L){u.setOption("hintOptions",T);const E=T.fromAtTrigger?50:0;setTimeout(()=>{u.hasFocus()&&u.execCommand("autocomplete")},E)}}),setTimeout(()=>{var u;return(u=this.editor)==null?void 0:u.refresh()},0)}}disconnectedCallback(){if(super.disconnectedCallback(),this.editor){const e=this.editor.getWrapperElement();e.removeEventListener("mousedown",this.boundHandleEditorMouseDown),this.editor.off("change",this.changeHandler),e&&e.remove&&e.remove(),this.editor=void 0}}renderInput(){return N`
3094
3094
  <textarea class="editor" placeholder="${He(this.placeholder)}">
3095
3095
  ${this.value}</textarea
3096
3096
  >
3097
- `}};exports.InputCode.styles=[J`
3098
- ${qr(jp)}
3097
+ `}};exports.InputCode.styles=[X`
3098
+ ${qr(Gp)}
3099
3099
 
3100
3100
  :host {
3101
3101
  display: block;
@@ -3167,7 +3167,7 @@ ${this.value}</textarea
3167
3167
  color: var(--brz-color-text-placeholder);
3168
3168
  letter-spacing: 0;
3169
3169
  }
3170
- `,_L];exports.InputCode.AUTOCOMPLETE_REGEX=/[\w$.]/;Bi([E()],exports.InputCode.prototype,"mode",2);Bi([E({reflect:!0})],exports.InputCode.prototype,"size",2);Bi([E({type:Number})],exports.InputCode.prototype,"height",2);Bi([E({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Bi([E({type:Array,attribute:"autocomplete-list"})],exports.InputCode.prototype,"autocompleteList",2);Bi([E({type:Boolean,attribute:"single-line",reflect:!0})],exports.InputCode.prototype,"singleLine",2);Bi([Ce()],exports.InputCode.prototype,"editor",2);exports.InputCode=Bi([Z(Gp)],exports.InputCode);var BL=Object.defineProperty,VL=Object.getOwnPropertyDescriptor,Ra=(n,e,i,o)=>{for(var l=o>1?void 0:o?VL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&BL(e,i,l),l};const qp=ce("input-select");exports.InputSelect=class extends bt{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}updated(e){var i,o;if((i=super.updated)==null||i.call(this,e),e.has("valueLabel")&&this.canSearch){const l=this.renderRoot.querySelector("#selectSearch");l&&(l.value=(o=this.valueLabel)!=null?o:"")}}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch(),this.setQueryInputValue()}handleSelect(e){this.setValue(e.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(e=>{e.selected=this.value===e.value})}renderReferenceElement(){var e;return this.applySelectedStatusToChildren(),this.controlled||this.search(),N`
3170
+ `,DL];exports.InputCode.AUTOCOMPLETE_REGEX=/[\w$.]/;Bi([$()],exports.InputCode.prototype,"mode",2);Bi([$({reflect:!0})],exports.InputCode.prototype,"size",2);Bi([$({type:Number})],exports.InputCode.prototype,"height",2);Bi([$({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);Bi([$({type:Array,attribute:"autocomplete-list"})],exports.InputCode.prototype,"autocompleteList",2);Bi([$({type:Boolean,attribute:"single-line",reflect:!0})],exports.InputCode.prototype,"singleLine",2);Bi([we()],exports.InputCode.prototype,"editor",2);exports.InputCode=Bi([Z(qp)],exports.InputCode);var UL=Object.defineProperty,jL=Object.getOwnPropertyDescriptor,Fa=(n,e,i,o)=>{for(var l=o>1?void 0:o?jL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&UL(e,i,l),l};const Kp=le("input-select");exports.InputSelect=class extends bt{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}updated(e){var i,o;if((i=super.updated)==null||i.call(this,e),e.has("valueLabel")&&this.canSearch){const l=this.renderRoot.querySelector("#selectSearch");l&&(l.value=(o=this.valueLabel)!=null?o:"")}}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch(),this.setQueryInputValue()}handleSelect(e){this.setValue(e.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(e=>{e.selected=this.value===e.value})}renderReferenceElement(){var e;return this.applySelectedStatusToChildren(),this.controlled||this.search(),N`
3171
3171
  <button
3172
3172
  type="button"
3173
3173
  class="wrapper"
@@ -3205,7 +3205,7 @@ ${this.value}</textarea
3205
3205
  `}renderDropdownContent(){return N`
3206
3206
  ${!this.controlled&&!this.hasQueryResults?this.renderSearchMessage():null}
3207
3207
  ${this.isDataDriven?this.renderOptionsData():N` <slot slot="options"></slot> `}
3208
- `}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{var d;if("id"in o&&o.id===ka)return;if(!e||e===((d=this.valueLabel)==null?void 0:d.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${kc()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(e=>({...e,id:`option-${kc()}`}))]:[]}disconnectedCallback(){var e;(e=this.selectedOptionObserver)==null||e.disconnect(),super.disconnectedCallback()}findItem(e){var i;return((i=this.getItems())==null?void 0:i[0])instanceof exports.MenuItem?this.optionElements.find(o=>o.value===e):this.innerOptions.find(o=>o.value===e)}syncValueLabel(e){var o;(o=this.selectedOptionObserver)==null||o.disconnect();const i=this.findItem(e);this.valueLabel=this.getItemLabel(i),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&i instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(i),this.resetSearch()}),this.selectedOptionObserver.observe(i,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...bt.styles,J`
3208
+ `}resetSearch(){this.query=""}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{var d;if("id"in o&&o.id===Oa)return;if(!e||e===((d=this.valueLabel)==null?void 0:d.toLowerCase())){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${kc()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(e=>({...e,id:`option-${kc()}`}))]:[]}disconnectedCallback(){var e;(e=this.selectedOptionObserver)==null||e.disconnect(),super.disconnectedCallback()}findItem(e){var i;return((i=this.getItems())==null?void 0:i[0])instanceof exports.MenuItem?this.optionElements.find(o=>o.value===e):this.innerOptions.find(o=>o.value===e)}syncValueLabel(e){var o;(o=this.selectedOptionObserver)==null||o.disconnect();const i=this.findItem(e);this.valueLabel=this.getItemLabel(i),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&i instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(i),this.resetSearch()}),this.selectedOptionObserver.observe(i,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...bt.styles,X`
3209
3209
  input {
3210
3210
  text-overflow: ellipsis;
3211
3211
  }
@@ -3236,7 +3236,7 @@ ${this.value}</textarea
3236
3236
  .placeholder {
3237
3237
  color: var(--input-placeholder-font-color);
3238
3238
  }
3239
- `];Ra([E({type:String})],exports.InputSelect.prototype,"value",2);Ra([Ce()],exports.InputSelect.prototype,"query",2);Ra([Ce()],exports.InputSelect.prototype,"valueLabel",2);Ra([Ce()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Ra([Z(qp)],exports.InputSelect);var ZL=Object.defineProperty,WL=Object.getOwnPropertyDescriptor,Dr=(n,e,i,o)=>{for(var l=o>1?void 0:o?WL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ZL(e,i,l),l};const Kp=ce("lozenge"),UL=["neutral","green","orange","red","cyan","purple","sapphire"],jL=["solid","subtle","border"],GL=["small","medium","large"];class Yp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends we{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(e){e.stopPropagation(),this.dispatchEvent(new Yp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var e;return this.updateComplete.then(()=>this.checkOverflow()),N`
3239
+ `];Fa([$({type:String})],exports.InputSelect.prototype,"value",2);Fa([we()],exports.InputSelect.prototype,"query",2);Fa([we()],exports.InputSelect.prototype,"valueLabel",2);Fa([we()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Fa([Z(Kp)],exports.InputSelect);var GL=Object.defineProperty,qL=Object.getOwnPropertyDescriptor,Dr=(n,e,i,o)=>{for(var l=o>1?void 0:o?qL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&GL(e,i,l),l};const Yp=le("lozenge"),KL=["neutral","green","orange","red","cyan","purple","sapphire"],YL=["solid","subtle","border"],XL=["small","medium","large"];class Xp extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Ce{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1,this.noTruncate=!1,this.isOverflowing=!1}async checkOverflow(){this.isOverflowing=(await this.message).scrollWidth>(await this.message).clientWidth}_handleDeleteClick(e){e.stopPropagation(),this.dispatchEvent(new Xp)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var e;return this.updateComplete.then(()=>this.checkOverflow()),N`
3240
3240
  <brz-tooltip
3241
3241
  content=${(e=this.defaultSlot[0])==null?void 0:e.textContent}
3242
3242
  ?disabled=${!this.isOverflowing}
@@ -3262,7 +3262,7 @@ ${this.value}</textarea
3262
3262
  `:null}
3263
3263
  </div>
3264
3264
  </brz-tooltip>
3265
- `}};exports.Lozenge.styles=J`
3265
+ `}};exports.Lozenge.styles=X`
3266
3266
  :host {
3267
3267
  --brz-lozenge-max-width: calc(3 * var(--brz-spacing-16));
3268
3268
  --brz-lozenge-color-primary: var(--brz-color-neutral-750);
@@ -3388,7 +3388,7 @@ ${this.value}</textarea
3388
3388
  margin-right: var(--brz-spacing-2);
3389
3389
  }
3390
3390
 
3391
- ${a2(".close",J`
3391
+ ${s2(".close",X`
3392
3392
  margin-right: calc(0px - var(--brz-spacing-1));
3393
3393
  `)}
3394
3394
 
@@ -3406,7 +3406,7 @@ ${this.value}</textarea
3406
3406
  color: var(--brz-color-neutral-550);
3407
3407
  cursor: unset;
3408
3408
  }
3409
- `;Dr([E({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Dr([E({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Dr([E({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Dr([E({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Dr([E({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Dr([E({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Dr([E({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Dr([Qc()],exports.Lozenge.prototype,"defaultSlot",2);Dr([y7(".message")],exports.Lozenge.prototype,"message",2);Dr([Ce()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Dr([Z(Kp)],exports.Lozenge);var qL=Object.defineProperty,KL=Object.getOwnPropertyDescriptor,Fa=(n,e,i,o)=>{for(var l=o>1?void 0:o?KL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&qL(e,i,l),l};const Xp=ce("input-multiselect");exports.InputMultiselect=class extends bt{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(e){super.updated(e),this.dropdown&&(this.dropdown.multiselect=!0),(e.has("value")||e.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(i=>i.id===kr)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:e,toggled:i}=[...this.getItems()].reduce((o,l)=>l.id===kr?o:{enabled:l.disabled?o.enabled:o.enabled+1,toggled:l.selected?o.toggled+1:o.toggled},{enabled:0,toggled:0});return e===i}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new xu({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(e){this.setValue(e.detail.selected)}handleItemSelect({detail:{item:e}}){e.id===kr&&this.toggleAllSelected()}toggleAllSelected(){const e=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==kr&&e.push(i.value)}),this.setValue(e),this.handleValueChange()}toggleSelection(e){const i=this.value?[...this.value]:[],o=i.indexOf(e);o>-1&&i.splice(o,1),o===-1&&i.push(e),this.setValue(i)}syncSelected(){this.getItems().forEach(e=>{const i=this.value&&this.value.includes(e.value);e.selected=e.id===kr?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?N`<span class="truncation"
3409
+ `;Dr([$({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Dr([$({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Dr([$({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Dr([$({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Dr([$({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Dr([$({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Dr([$({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Dr([Qc()],exports.Lozenge.prototype,"defaultSlot",2);Dr([z7(".message")],exports.Lozenge.prototype,"message",2);Dr([we()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Dr([Z(Yp)],exports.Lozenge);var JL=Object.defineProperty,QL=Object.getOwnPropertyDescriptor,wo=(n,e,i,o)=>{for(var l=o>1?void 0:o?QL(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&JL(e,i,l),l};const Jp=le("input-multiselect");exports.InputMultiselect=class extends bt{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.hideSelectAll=!1,this.value=[],this.valueLabels=[]}updated(e){super.updated(e),this.dropdown&&(this.dropdown.multiselect=!0),(e.has("value")||e.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.hideSelectAll&&!this.innerOptions.find(i=>i.id===kr)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:e,toggled:i}=[...this.getItems()].reduce((o,l)=>l.id===kr?o:{enabled:l.disabled?o.enabled:o.enabled+1,toggled:l.selected?o.toggled+1:o.toggled},{enabled:0,toggled:0});return e===i}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new xu({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(e){this.setValue(e.detail.selected)}handleItemSelect({detail:{item:e}}){e.id===kr&&this.toggleAllSelected()}toggleAllSelected(){const e=[];this.allSelected||this.getItems().forEach(i=>{!i.disabled&&i.id!==kr&&e.push(i.value)}),this.setValue(e),this.handleValueChange()}toggleSelection(e){const i=this.value?[...this.value]:[],o=i.indexOf(e);o>-1&&i.splice(o,1),o===-1&&i.push(e),this.setValue(i)}syncSelected(){this.getItems().forEach(e=>{const i=this.value&&this.value.includes(e.value);e.selected=e.id===kr?this.allSelected:i})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?N`<span class="truncation"
3410
3410
  >+${this.value.length-this.truncateValuesAfter} more</span
3411
3411
  >`:null}handleKeyDown(e){super.handleKeyDown(e),e.key==="Backspace"&&(!this.queryInput||this.queryInput.value==="")&&!this.isReadonlyOrDisabled&&this.removeLastValue()}renderReferenceElement(){return this.syncSelected(),this.controlled||this.search(),this.updateComplete.then(()=>{this.renderSelectedItems()}),N`
3412
3412
  <button
@@ -3461,10 +3461,10 @@ ${this.value}</textarea
3461
3461
  `}renderDropdownContent(){return N`
3462
3462
  ${!this.controlled&&!this.hasQueryResults?this.renderSearchMessage():null}
3463
3463
  ${this.isDataDriven?this.renderOptionsData():N`
3464
- ${this.controlled?"":this.selectAllOptionElement}
3464
+ ${!this.controlled&&!this.hideSelectAll?this.selectAllOptionElement:""}
3465
3465
  <slot slot="options"></slot>
3466
3466
  `}
3467
- `}renderSelectedItems(){return N`<slot name="selected-items" class="selected-options"></slot>`}removeLastValue(){var e;(e=this.value)==null||e.pop(),this.handleValueChange()}resetSearch(){this.query=""}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||"")}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{if(!e){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}getItems(){var i,o;const e=super.getItems();return this.isDataDriven?e:[((i=this.renderRoot)==null?void 0:i.querySelector(`brz-menu-item#${kr}`))||((o=this.renderRoot)==null?void 0:o.querySelector(`sp-menu-item#${kr}`))||{},...e]}syncValueLabels(){const e=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(i=>({label:this.getItemLabel(e.find(o=>o.value===i)),value:i})):[],this.render()}};exports.InputMultiselect.styles=[...bt.styles,J`
3467
+ `}renderSelectedItems(){return N`<slot name="selected-items" class="selected-options"></slot>`}removeLastValue(){var e;(e=this.value)==null||e.pop(),this.handleValueChange()}resetSearch(){this.query=""}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||"")}search(){var i;this.hasResults=!1;const e=(i=this.query)==null?void 0:i.toLowerCase();this.getItems().forEach(o=>{if(!e){o.hidden=!1,this.hasResults=!0;return}const l=this.isQueryMatch(o);l&&(this.hasResults=!0),o.hidden=!l})}getItems(){var i,o;const e=super.getItems();return this.isDataDriven||this.hideSelectAll?e:[((i=this.renderRoot)==null?void 0:i.querySelector(`brz-menu-item#${kr}`))||((o=this.renderRoot)==null?void 0:o.querySelector(`sp-menu-item#${kr}`))||{},...e]}syncValueLabels(){const e=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(i=>({label:this.getItemLabel(e.find(o=>o.value===i)),value:i})):[],this.render()}};exports.InputMultiselect.styles=[...bt.styles,X`
3468
3468
  :host {
3469
3469
  --brz-input-multiselect-padding-y: calc(
3470
3470
  (var(--brz-spacing-3) / 2) - var(--input-border-width)
@@ -3518,10 +3518,10 @@ ${this.value}</textarea
3518
3518
  brz-icon[icon='chevronDown'] {
3519
3519
  color: var(--brz-color-neutral-750);
3520
3520
  }
3521
- `];Fa([E({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Fa([E({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Fa([E({type:Array})],exports.InputMultiselect.prototype,"value",2);Fa([Ce()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Fa([Z(Xp)],exports.InputMultiselect);class Mn extends Error{}class YL extends Mn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class XL extends Mn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class JL extends Mn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ma extends Mn{}class Jp extends Mn{constructor(e){super(`Invalid unit ${e}`)}}class vr extends Mn{}class Ei extends Mn{constructor(){super("Zone is an abstract class")}}const fe="numeric",_r="short",hr="long",ul={year:fe,month:fe,day:fe},Qp={year:fe,month:_r,day:fe},QL={year:fe,month:_r,day:fe,weekday:_r},e5={year:fe,month:hr,day:fe},t5={year:fe,month:hr,day:fe,weekday:hr},r5={hour:fe,minute:fe},i5={hour:fe,minute:fe,second:fe},n5={hour:fe,minute:fe,second:fe,timeZoneName:_r},o5={hour:fe,minute:fe,second:fe,timeZoneName:hr},a5={hour:fe,minute:fe,hourCycle:"h23"},s5={hour:fe,minute:fe,second:fe,hourCycle:"h23"},l5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:_r},c5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:hr},u5={year:fe,month:fe,day:fe,hour:fe,minute:fe},d5={year:fe,month:fe,day:fe,hour:fe,minute:fe,second:fe},h5={year:fe,month:_r,day:fe,hour:fe,minute:fe},f5={year:fe,month:_r,day:fe,hour:fe,minute:fe,second:fe},eS={year:fe,month:_r,day:fe,weekday:_r,hour:fe,minute:fe},p5={year:fe,month:hr,day:fe,hour:fe,minute:fe,timeZoneName:_r},g5={year:fe,month:hr,day:fe,hour:fe,minute:fe,second:fe,timeZoneName:_r},v5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,timeZoneName:hr},b5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,second:fe,timeZoneName:hr};class Ba{get type(){throw new Ei}get name(){throw new Ei}get ianaName(){return this.name}get isUniversal(){throw new Ei}offsetName(e,i){throw new Ei}formatOffset(e,i){throw new Ei}offset(e){throw new Ei}equals(e){throw new Ei}get isValid(){throw new Ei}}let hc=null;class Fl extends Ba{static get instance(){return hc===null&&(hc=new Fl),hc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return y5(e,i,o)}formatOffset(e,i){return xa(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Bs={};function tS(n){return Bs[n]||(Bs[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Bs[n]}const rS={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function iS(n,e){const i=n.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,l,d,u,v,b,m,M]=o;return[u,l,d,v,b,m,M]}function nS(n,e){const i=n.formatToParts(e),o=[];for(let l=0;l<i.length;l++){const{type:d,value:u}=i[l],v=rS[d];d==="era"?o[v]=u:Ze(v)||(o[v]=parseInt(u,10))}return o}let _s={};class hi extends Ba{static create(e){return _s[e]||(_s[e]=new hi(e)),_s[e]}static resetCache(){_s={},Bs={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=hi.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return y5(e,i,o,this.name)}formatOffset(e,i){return xa(this.offset(e),i)}offset(e){const i=new Date(e);if(isNaN(i))return NaN;const o=tS(this.name);let[l,d,u,v,b,m,M]=o.formatToParts?nS(o,i):iS(o,i);v==="BC"&&(l=-Math.abs(l)+1);const T=Vl({year:l,month:d,day:u,hour:b===24?0:b,minute:m,second:M,millisecond:0});let $=+i;const H=$%1e3;return $-=H>=0?H:1e3+H,(T-$)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let af={};function oS(n,e={}){const i=JSON.stringify([n,e]);let o=af[i];return o||(o=new Intl.ListFormat(n,e),af[i]=o),o}let Bc={};function Vc(n,e={}){const i=JSON.stringify([n,e]);let o=Bc[i];return o||(o=new Intl.DateTimeFormat(n,e),Bc[i]=o),o}let Zc={};function aS(n,e={}){const i=JSON.stringify([n,e]);let o=Zc[i];return o||(o=new Intl.NumberFormat(n,e),Zc[i]=o),o}let Wc={};function sS(n,e={}){const{base:i,...o}=e,l=JSON.stringify([n,o]);let d=Wc[l];return d||(d=new Intl.RelativeTimeFormat(n,e),Wc[l]=d),d}let ya=null;function lS(){return ya||(ya=new Intl.DateTimeFormat().resolvedOptions().locale,ya)}function cS(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const i=n.indexOf("-u-");if(i===-1)return[n];{let o,l;try{o=Vc(n).resolvedOptions(),l=n}catch{const b=n.substring(0,i);o=Vc(b).resolvedOptions(),l=b}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function uS(n,e,i){return(i||e)&&(n.includes("-u-")||(n+="-u"),i&&(n+=`-ca-${i}`),e&&(n+=`-nu-${e}`)),n}function dS(n){const e=[];for(let i=1;i<=12;i++){const o=Ee.utc(2009,i,1);e.push(n(o))}return e}function hS(n){const e=[];for(let i=1;i<=7;i++){const o=Ee.utc(2016,11,13+i);e.push(n(o))}return e}function Is(n,e,i,o){const l=n.listingMode();return l==="error"?null:l==="en"?i(e):o(e)}function fS(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class pS{constructor(e,i,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:l,floor:d,...u}=o;if(!i||Object.keys(u).length>0){const v={useGrouping:!1,...o};o.padTo>0&&(v.minimumIntegerDigits=o.padTo),this.inf=aS(e,v)}}format(e){if(this.inf){const i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{const i=this.floor?Math.floor(e):Mu(e,3);return Ct(i,this.padTo)}}}class gS{constructor(e,i,o){this.opts=o,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),v=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&hi.create(v).valid?(l=v,this.dt=e):(l="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,l=e.zone.name):(l="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Vc(i,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:o}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class vS{constructor(e,i,o){this.opts={style:"long",...o},!i&&m5()&&(this.rtf=sS(e,o))}format(e,i){return this.rtf?this.rtf.format(e,i):IS(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}}class it{static fromOpts(e){return it.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,i,o,l=!1){const d=e||yt.defaultLocale,u=d||(l?"en-US":lS()),v=i||yt.defaultNumberingSystem,b=o||yt.defaultOutputCalendar;return new it(u,v,b,d)}static resetCache(){ya=null,Bc={},Zc={},Wc={}}static fromObject({locale:e,numberingSystem:i,outputCalendar:o}={}){return it.create(e,i,o)}constructor(e,i,o,l){const[d,u,v]=cS(e);this.locale=d,this.numberingSystem=i||u||null,this.outputCalendar=o||v||null,this.intl=uS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=fS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:it.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return Is(this,e,x5,()=>{const o=i?{month:e,day:"numeric"}:{month:e},l=i?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=dS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,i=!1){return Is(this,e,S5,()=>{const o=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=i?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=hS(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return Is(this,void 0,()=>M5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Is(this,e,T5,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ee.utc(-40,1,1),Ee.utc(2017,1,1)].map(o=>this.extract(o,i,"era"))),this.eraCache[e]})}extract(e,i,o){const l=this.dtFormatter(e,i),d=l.formatToParts(),u=d.find(v=>v.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new pS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new gS(e,this.intl,i)}relFormatter(e={}){return new vS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return oS(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let fc=null;class Gt extends Ba{static get utcInstance(){return fc===null&&(fc=new Gt(0)),fc}static instance(e){return e===0?Gt.utcInstance:new Gt(e)}static parseSpecifier(e){if(e){const i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new Gt(Zl(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${xa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${xa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return xa(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class bS extends Ba{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Pi(n,e){if(Ze(n)||n===null)return e;if(n instanceof Ba)return n;if(mS(n)){const i=n.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Fl.instance:i==="utc"||i==="gmt"?Gt.utcInstance:Gt.parseSpecifier(i)||hi.create(n)}else return gn(n)?Gt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new bS(n)}let sf=()=>Date.now(),lf="system",cf=null,uf=null,df=null,hf=60,ff;class yt{static get now(){return sf}static set now(e){sf=e}static set defaultZone(e){lf=e}static get defaultZone(){return Pi(lf,Fl.instance)}static get defaultLocale(){return cf}static set defaultLocale(e){cf=e}static get defaultNumberingSystem(){return uf}static set defaultNumberingSystem(e){uf=e}static get defaultOutputCalendar(){return df}static set defaultOutputCalendar(e){df=e}static get twoDigitCutoffYear(){return hf}static set twoDigitCutoffYear(e){hf=e%100}static get throwOnInvalid(){return ff}static set throwOnInvalid(e){ff=e}static resetCaches(){it.resetCache(),hi.resetCache()}}function Ze(n){return typeof n=="undefined"}function gn(n){return typeof n=="number"}function Bl(n){return typeof n=="number"&&n%1===0}function mS(n){return typeof n=="string"}function yS(n){return Object.prototype.toString.call(n)==="[object Date]"}function m5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function CS(n){return Array.isArray(n)?n:[n]}function pf(n,e,i){if(n.length!==0)return n.reduce((o,l)=>{const d=[e(l),l];return o&&i(o[0],d[0])===o[0]?o:d},null)[1]}function wS(n,e){return e.reduce((i,o)=>(i[o]=n[o],i),{})}function ho(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function ui(n,e,i){return Bl(n)&&n>=e&&n<=i}function xS(n,e){return n-e*Math.floor(n/e)}function Ct(n,e=2){const i=n<0;let o;return i?o="-"+(""+-n).padStart(e,"0"):o=(""+n).padStart(e,"0"),o}function Ii(n){if(!(Ze(n)||n===null||n===""))return parseInt(n,10)}function sn(n){if(!(Ze(n)||n===null||n===""))return parseFloat(n)}function Su(n){if(!(Ze(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function Mu(n,e,i=!1){const o=10**e;return(i?Math.trunc:Math.round)(n*o)/o}function Va(n){return n%4===0&&(n%100!==0||n%400===0)}function wa(n){return Va(n)?366:365}function dl(n,e){const i=xS(e-1,12)+1,o=n+(e-i)/12;return i===2?Va(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Vl(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function hl(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,i=n-1,o=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return e===4||o===3?53:52}function Uc(n){return n>99?n:n>yt.twoDigitCutoffYear?1900+n:2e3+n}function y5(n,e,i,o=null){const l=new Date(n),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(d.timeZone=o);const u={timeZoneName:e,...d},v=new Intl.DateTimeFormat(i,u).formatToParts(l).find(b=>b.type.toLowerCase()==="timezonename");return v?v.value:null}function Zl(n,e){let i=parseInt(n,10);Number.isNaN(i)&&(i=0);const o=parseInt(e,10)||0,l=i<0||Object.is(i,-0)?-o:o;return i*60+l}function C5(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new vr(`Invalid unit value ${n}`);return e}function fl(n,e){const i={};for(const o in n)if(ho(n,o)){const l=n[o];if(l==null)continue;i[e(o)]=C5(l)}return i}function xa(n,e){const i=Math.trunc(Math.abs(n/60)),o=Math.trunc(Math.abs(n%60)),l=n>=0?"+":"-";switch(e){case"short":return`${l}${Ct(i,2)}:${Ct(o,2)}`;case"narrow":return`${l}${i}${o>0?`:${o}`:""}`;case"techie":return`${l}${Ct(i,2)}${Ct(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Wl(n){return wS(n,["hour","minute","second","millisecond"])}const zS=["January","February","March","April","May","June","July","August","September","October","November","December"],w5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],LS=["J","F","M","A","M","J","J","A","S","O","N","D"];function x5(n){switch(n){case"narrow":return[...LS];case"short":return[...w5];case"long":return[...zS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const z5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],L5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],SS=["M","T","W","T","F","S","S"];function S5(n){switch(n){case"narrow":return[...SS];case"short":return[...L5];case"long":return[...z5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const M5=["AM","PM"],MS=["Before Christ","Anno Domini"],TS=["BC","AD"],kS=["B","A"];function T5(n){switch(n){case"narrow":return[...kS];case"short":return[...TS];case"long":return[...MS];default:return null}}function OS(n){return M5[n.hour<12?0:1]}function $S(n,e){return S5(e)[n.weekday-1]}function ES(n,e){return x5(e)[n.month-1]}function _S(n,e){return T5(e)[n.year<0?0:1]}function IS(n,e,i="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(n)===-1;if(i==="auto"&&d){const L=n==="days";switch(e){case 1:return L?"tomorrow":`next ${l[n][0]}`;case-1:return L?"yesterday":`last ${l[n][0]}`;case 0:return L?"today":`this ${l[n][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),b=v===1,m=l[n],M=o?b?m[1]:m[2]||m[1]:b?l[n][0]:n;return u?`${v} ${M} ago`:`in ${v} ${M}`}function gf(n,e){let i="";for(const o of n)o.literal?i+=o.val:i+=e(o.val);return i}const AS={D:ul,DD:Qp,DDD:e5,DDDD:t5,t:r5,tt:i5,ttt:n5,tttt:o5,T:a5,TT:s5,TTT:l5,TTTT:c5,f:u5,ff:h5,fff:p5,ffff:v5,F:d5,FF:f5,FFF:g5,FFFF:b5};class Rt{static create(e,i={}){return new Rt(e,i)}static parseFormat(e){let i=null,o="",l=!1;const d=[];for(let u=0;u<e.length;u++){const v=e.charAt(u);v==="'"?(o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),i=null,o="",l=!l):l||v===i?o+=v:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=v,i=v)}return o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(e){return AS[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0){if(this.opts.forceSimple)return Ct(e,i);const o={...this.opts};return i>0&&(o.padTo=i),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,i){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=($,H)=>this.loc.extract(e,$,H),u=$=>e.isOffsetFixed&&e.offset===0&&$.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,$.format):"",v=()=>o?OS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),b=($,H)=>o?ES(e,$):d(H?{month:$}:{month:$,day:"numeric"},"month"),m=($,H)=>o?$S(e,$):d(H?{weekday:$}:{weekday:$,month:"long",day:"numeric"},"weekday"),M=$=>{const H=Rt.macroTokenToFormatOpts($);return H?this.formatWithSystemDefault(e,H):$},L=$=>o?_S(e,$):d({era:$},"era"),T=$=>{switch($){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return v();case"d":return l?d({day:"numeric"},"day"):this.num(e.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return m("short",!0);case"cccc":return m("long",!0);case"ccccc":return m("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return m("short",!1);case"EEEE":return m("long",!1);case"EEEEE":return m("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return b("short",!0);case"LLLL":return b("long",!0);case"LLLLL":return b("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(e.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return b("short",!1);case"MMMM":return b("long",!1);case"MMMMM":return b("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(e.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return L("short");case"GG":return L("long");case"GGGGG":return L("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return M($)}};return gf(Rt.parseFormat(i),T)}formatDurationFromString(e,i){const o=b=>{switch(b[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=b=>m=>{const M=o(m);return M?this.num(b.get(M),m.length):m},d=Rt.parseFormat(i),u=d.reduce((b,{literal:m,val:M})=>m?b:b.concat(M),[]),v=e.shiftTo(...u.map(o).filter(b=>b));return gf(d,l(v))}}class Or{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const k5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function wo(...n){const e=n.reduce((i,o)=>i+o.source,"");return RegExp(`^${e}$`)}function xo(...n){return e=>n.reduce(([i,o,l],d)=>{const[u,v,b]=d(e,l);return[{...i,...u},v||o,b]},[{},null,1]).slice(0,2)}function zo(n,...e){if(n==null)return[null,null];for(const[i,o]of e){const l=i.exec(n);if(l)return o(l)}return[null,null]}function O5(...n){return(e,i)=>{const o={};let l;for(l=0;l<n.length;l++)o[n[l]]=Ii(e[i+l]);return[o,null,i+l]}}const $5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,PS=`(?:${$5.source}?(?:\\[(${k5.source})\\])?)?`,Tu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,E5=RegExp(`${Tu.source}${PS}`),ku=RegExp(`(?:T${E5.source})?`),DS=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,NS=/(\d{4})-?W(\d\d)(?:-?(\d))?/,HS=/(\d{4})-?(\d{3})/,RS=O5("weekYear","weekNumber","weekDay"),FS=O5("year","ordinal"),BS=/(\d{4})-(\d\d)-(\d\d)/,_5=RegExp(`${Tu.source} ?(?:${$5.source}|(${k5.source}))?`),VS=RegExp(`(?: ${_5.source})?`);function no(n,e,i){const o=n[e];return Ze(o)?i:Ii(o)}function ZS(n,e){return[{year:no(n,e),month:no(n,e+1,1),day:no(n,e+2,1)},null,e+3]}function Lo(n,e){return[{hours:no(n,e,0),minutes:no(n,e+1,0),seconds:no(n,e+2,0),milliseconds:Su(n[e+3])},null,e+4]}function Za(n,e){const i=!n[e]&&!n[e+1],o=Zl(n[e+1],n[e+2]),l=i?null:Gt.instance(o);return[{},l,e+3]}function Wa(n,e){const i=n[e]?hi.create(n[e]):null;return[{},i,e+1]}const WS=RegExp(`^T?${Tu.source}$`),US=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function jS(n){const[e,i,o,l,d,u,v,b,m]=n,M=e[0]==="-",L=b&&b[0]==="-",T=($,H=!1)=>$!==void 0&&(H||$&&M)?-$:$;return[{years:T(sn(i)),months:T(sn(o)),weeks:T(sn(l)),days:T(sn(d)),hours:T(sn(u)),minutes:T(sn(v)),seconds:T(sn(b),b==="-0"),milliseconds:T(Su(m),L)}]}const GS={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ou(n,e,i,o,l,d,u){const v={year:e.length===2?Uc(Ii(e)):Ii(e),month:w5.indexOf(i)+1,day:Ii(o),hour:Ii(l),minute:Ii(d)};return u&&(v.second=Ii(u)),n&&(v.weekday=n.length>3?z5.indexOf(n)+1:L5.indexOf(n)+1),v}const qS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function KS(n){const[,e,i,o,l,d,u,v,b,m,M,L]=n,T=Ou(e,l,o,i,d,u,v);let $;return b?$=GS[b]:m?$=0:$=Zl(M,L),[T,new Gt($)]}function YS(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const XS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,JS=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,QS=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function vf(n){const[,e,i,o,l,d,u,v]=n;return[Ou(e,l,o,i,d,u,v),Gt.utcInstance]}function eM(n){const[,e,i,o,l,d,u,v]=n;return[Ou(e,v,i,o,l,d,u),Gt.utcInstance]}const tM=wo(DS,ku),rM=wo(NS,ku),iM=wo(HS,ku),nM=wo(E5),I5=xo(ZS,Lo,Za,Wa),oM=xo(RS,Lo,Za,Wa),aM=xo(FS,Lo,Za,Wa),sM=xo(Lo,Za,Wa);function lM(n){return zo(n,[tM,I5],[rM,oM],[iM,aM],[nM,sM])}function cM(n){return zo(YS(n),[qS,KS])}function uM(n){return zo(n,[XS,vf],[JS,vf],[QS,eM])}function dM(n){return zo(n,[US,jS])}const hM=xo(Lo);function fM(n){return zo(n,[WS,hM])}const pM=wo(BS,VS),gM=wo(_5),vM=xo(Lo,Za,Wa);function bM(n){return zo(n,[pM,I5],[gM,vM])}const mM="Invalid Duration",A5={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},yM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...A5},gr=146097/400,Qn=146097/4800,CM={years:{quarters:4,months:12,weeks:gr/7,days:gr,hours:gr*24,minutes:gr*24*60,seconds:gr*24*60*60,milliseconds:gr*24*60*60*1e3},quarters:{months:3,weeks:gr/28,days:gr/4,hours:gr*24/4,minutes:gr*24*60/4,seconds:gr*24*60*60/4,milliseconds:gr*24*60*60*1e3/4},months:{weeks:Qn/7,days:Qn,hours:Qn*24,minutes:Qn*24*60,seconds:Qn*24*60*60,milliseconds:Qn*24*60*60*1e3},...A5},un=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],P5=un.slice(0).reverse();function _i(n,e,i=!1){const o={values:i?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new We(o)}function bf(n){return Math.trunc(n*1e3)/1e3}function D5(n,e,i,o,l){const d=n[l][i],u=e[i]/d,v=Math.floor(u);o[l]=bf(o[l]+v),e[i]=bf(e[i]-v*d)}function wM(n,e){P5.reduce((i,o)=>Ze(e[o])?i:(i&&D5(n,e,i,e,o),o),null)}function xM(n){const e={};for(const[i,o]of Object.entries(n))o!==0&&(e[i]=o);return e}class We{constructor(e){const i=e.conversionAccuracy==="longterm"||!1;let o=i?CM:yM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||it.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,i){return We.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new vr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new We({values:fl(e,We.normalizeUnit),loc:it.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(gn(e))return We.fromMillis(e);if(We.isDuration(e))return e;if(typeof e=="object")return We.fromObject(e);throw new vr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){const[o]=dM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){const[o]=fM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the Duration is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new JL(o);return new We({invalid:o})}static normalizeUnit(e){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new Jp(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){const o={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Rt.create(this.loc,o).formatDurationFromString(this,e):mM}toHuman(e={}){const i=un.map(o=>{const l=this.values[o];return Ze(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(l)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Mu(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ee.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var i,o;let e=(i=this.values.milliseconds)!=null?i:0;for(let l of P5.slice(1))(o=this.values)!=null&&o[l]&&(e+=this.values[l]*this.matrix[l].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e),o={};for(const l of un)(ho(i.values,l)||ho(this.values,l))&&(o[l]=i.get(l)+this.get(l));return _i(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;const i={};for(const o of Object.keys(this.values))i[o]=C5(e(this.values[o],o));return _i(this,{values:i},!0)}get(e){return this[We.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const i={...this.values,...fl(e,We.normalizeUnit)};return _i(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:o,matrix:l}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:l,conversionAccuracy:o};return _i(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(wM(this.matrix,e),_i(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=xM(this.normalize().shiftToAll().toObject());return _i(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>We.normalizeUnit(u));const i={},o={},l=this.toObject();let d;for(const u of un)if(e.indexOf(u)>=0){d=u;let v=0;for(const m in o)v+=this.matrix[m][u]*o[m],o[m]=0;gn(l[u])&&(v+=l[u]);const b=Math.trunc(v);i[u]=b,o[u]=(v*1e3-b*1e3)/1e3;for(const m in l)un.indexOf(m)>un.indexOf(u)&&D5(this.matrix,l,m,i,u)}else gn(l[u])&&(o[u]=l[u]);for(const u in o)o[u]!==0&&(i[d]+=u===d?o[u]:o[u]/this.matrix[d][u]);return _i(this,{values:i},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return _i(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of un)if(!i(this.values[o],e.values[o]))return!1;return!0}}const eo="Invalid Interval";function zM(n,e){return!n||!n.isValid?dt.invalid("missing or invalid start"):!e||!e.isValid?dt.invalid("missing or invalid end"):e<n?dt.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class dt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the Interval is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new XL(o);return new dt({invalid:o})}static fromDateTimes(e,i){const o=ga(e),l=ga(i),d=zM(o,l);return d==null?new dt({start:o,end:l}):d}static after(e,i){const o=We.fromDurationLike(i),l=ga(e);return dt.fromDateTimes(l,l.plus(o))}static before(e,i){const o=We.fromDurationLike(i),l=ga(e);return dt.fromDateTimes(l.minus(o),l)}static fromISO(e,i){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Ee.fromISO(o,i),u=d.isValid}catch{u=!1}let v,b;try{v=Ee.fromISO(l,i),b=v.isValid}catch{b=!1}if(u&&b)return dt.fromDateTimes(d,v);if(u){const m=We.fromISO(l,i);if(m.isValid)return dt.after(d,m)}else if(b){const m=We.fromISO(o,i);if(m.isValid)return dt.before(v,m)}}return dt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const i=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(i,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?dt.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];const i=e.map(ga).filter(u=>this.contains(u)).sort(),o=[];let{s:l}=this,d=0;for(;l<this.e;){const u=i[d]||this.e,v=+u>+this.e?this.e:u;o.push(dt.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const i=We.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:o}=this,l=1,d;const u=[];for(;o<this.e;){const v=this.start.plus(i.mapUnits(b=>b*l));d=+v>+this.e?this.e:v,u.push(dt.fromDateTimes(o,d)),o=d,l+=1}return u}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const i=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return i>=o?null:dt.fromDateTimes(i,o)}union(e){if(!this.isValid)return this;const i=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return dt.fromDateTimes(i,o)}static merge(e){const[i,o]=e.sort((l,d)=>l.s-d.s).reduce(([l,d],u)=>d?d.overlaps(u)||d.abutsStart(u)?[l,d.union(u)]:[l.concat([d]),u]:[l,u],[[],null]);return o&&i.push(o),i}static xor(e){let i=null,o=0;const l=[],d=e.map(b=>[{time:b.s,type:"s"},{time:b.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((b,m)=>b.time-m.time);for(const b of v)o+=b.type==="s"?1:-1,o===1?i=b.time:(i&&+i!=+b.time&&l.push(dt.fromDateTimes(i,b.time)),i=null);return dt.merge(l)}difference(...e){return dt.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:eo}toLocaleString(e=ul,i={}){return this.isValid?Rt.create(this.s.loc.clone(i),e).formatInterval(this):eo}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:eo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:eo}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:eo}toFormat(e,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:eo}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):We.invalid(this.invalidReason)}mapEndpoints(e){return dt.fromDateTimes(e(this.s),e(this.e))}}class As{static hasDST(e=yt.defaultZone){const i=Ee.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return hi.isValidZone(e)}static normalizeZone(e){return Pi(e,yt.defaultZone)}static months(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return it.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return it.create(i,null,"gregory").eras(e)}static features(){return{relative:m5()}}}function mf(n,e){const i=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=i(e)-i(n);return Math.floor(We.fromMillis(o).as("days"))}function LM(n,e,i){const o=[["years",(b,m)=>m.year-b.year],["quarters",(b,m)=>m.quarter-b.quarter+(m.year-b.year)*4],["months",(b,m)=>m.month-b.month+(m.year-b.year)*12],["weeks",(b,m)=>{const M=mf(b,m);return(M-M%7)/7}],["days",mf]],l={},d=n;let u,v;for(const[b,m]of o)i.indexOf(b)>=0&&(u=b,l[b]=m(n,e),v=d.plus(l),v>e?(l[b]--,n=d.plus(l),n>e&&(v=n,l[b]--,n=d.plus(l))):n=v);return[n,l,v,u]}function SM(n,e,i,o){let[l,d,u,v]=LM(n,e,i);const b=e-l,m=i.filter(L=>["hours","minutes","seconds","milliseconds"].indexOf(L)>=0);m.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+b/(u-l)));const M=We.fromObject(d,o);return m.length>0?We.fromMillis(b,o).shiftTo(...m).plus(M):M}const $u={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},yf={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},MM=$u.hanidec.replace(/[\[|\]]/g,"").split("");function TM(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let i=0;i<n.length;i++){const o=n.charCodeAt(i);if(n[i].search($u.hanidec)!==-1)e+=MM.indexOf(n[i]);else for(const l in yf){const[d,u]=yf[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Mr({numberingSystem:n},e=""){return new RegExp(`${$u[n||"latn"]}${e}`)}const kM="missing Intl.DateTimeFormat.formatToParts support";function qe(n,e=i=>i){return{regex:n,deser:([i])=>e(TM(i))}}const OM=String.fromCharCode(160),N5=`[ ${OM}]`,H5=new RegExp(N5,"g");function $M(n){return n.replace(/\./g,"\\.?").replace(H5,N5)}function Cf(n){return n.replace(/\./g,"").replace(H5," ").toLowerCase()}function Tr(n,e){return n===null?null:{regex:RegExp(n.map($M).join("|")),deser:([i])=>n.findIndex(o=>Cf(i)===Cf(o))+e}}function wf(n,e){return{regex:n,deser:([,i,o])=>Zl(i,o),groups:e}}function Ps(n){return{regex:n,deser:([e])=>e}}function EM(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function _M(n,e){const i=Mr(e),o=Mr(e,"{2}"),l=Mr(e,"{3}"),d=Mr(e,"{4}"),u=Mr(e,"{6}"),v=Mr(e,"{1,2}"),b=Mr(e,"{1,3}"),m=Mr(e,"{1,6}"),M=Mr(e,"{1,9}"),L=Mr(e,"{2,4}"),T=Mr(e,"{4,6}"),$=oe=>({regex:RegExp(EM(oe.val)),deser:([_])=>_,literal:!0}),Y=(oe=>{if(n.literal)return $(oe);switch(oe.val){case"G":return Tr(e.eras("short"),0);case"GG":return Tr(e.eras("long"),0);case"y":return qe(m);case"yy":return qe(L,Uc);case"yyyy":return qe(d);case"yyyyy":return qe(T);case"yyyyyy":return qe(u);case"M":return qe(v);case"MM":return qe(o);case"MMM":return Tr(e.months("short",!0),1);case"MMMM":return Tr(e.months("long",!0),1);case"L":return qe(v);case"LL":return qe(o);case"LLL":return Tr(e.months("short",!1),1);case"LLLL":return Tr(e.months("long",!1),1);case"d":return qe(v);case"dd":return qe(o);case"o":return qe(b);case"ooo":return qe(l);case"HH":return qe(o);case"H":return qe(v);case"hh":return qe(o);case"h":return qe(v);case"mm":return qe(o);case"m":return qe(v);case"q":return qe(v);case"qq":return qe(o);case"s":return qe(v);case"ss":return qe(o);case"S":return qe(b);case"SSS":return qe(l);case"u":return Ps(M);case"uu":return Ps(v);case"uuu":return qe(i);case"a":return Tr(e.meridiems(),0);case"kkkk":return qe(d);case"kk":return qe(L,Uc);case"W":return qe(v);case"WW":return qe(o);case"E":case"c":return qe(i);case"EEE":return Tr(e.weekdays("short",!1),1);case"EEEE":return Tr(e.weekdays("long",!1),1);case"ccc":return Tr(e.weekdays("short",!0),1);case"cccc":return Tr(e.weekdays("long",!0),1);case"Z":case"ZZ":return wf(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return wf(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return Ps(/[a-z_+-/]{1,256}?/i);case" ":return Ps(/[^\S\n\r]/);default:return $(oe)}})(n)||{invalidReason:kM};return Y.token=n,Y}const IM={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function AM(n,e,i){const{type:o,value:l}=n;if(o==="literal"){const b=/^\s+$/.test(l);return{literal:!b,val:b?" ":l}}const d=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=i.hour12?"hour12":"hour24");let v=IM[u];if(typeof v=="object"&&(v=v[d]),v)return{literal:!1,val:v}}function PM(n){return[`^${n.map(i=>i.regex).reduce((i,o)=>`${i}(${o.source})`,"")}$`,n]}function DM(n,e,i){const o=n.match(e);if(o){const l={};let d=1;for(const u in i)if(ho(i,u)){const v=i[u],b=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+b))),d+=b}return[o,l]}else return[o,{}]}function NM(n){const e=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let i=null,o;return Ze(n.z)||(i=hi.create(n.z)),Ze(n.Z)||(i||(i=new Gt(n.Z)),o=n.Z),Ze(n.q)||(n.M=(n.q-1)*3+1),Ze(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),Ze(n.u)||(n.S=Su(n.u)),[Object.keys(n).reduce((d,u)=>{const v=e(u);return v&&(d[v]=n[u]),d},{}),i,o]}let pc=null;function HM(){return pc||(pc=Ee.fromMillis(1555555555555)),pc}function RM(n,e){if(n.literal)return n;const i=Rt.macroTokenToFormatOpts(n.val),o=B5(i,e);return o==null||o.includes(void 0)?n:o}function R5(n,e){return Array.prototype.concat(...n.map(i=>RM(i,e)))}function F5(n,e,i){const o=R5(Rt.parseFormat(i),n),l=o.map(u=>_M(u,n)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=PM(l),b=RegExp(u,"i"),[m,M]=DM(e,b,v),[L,T,$]=M?NM(M):[null,null,void 0];if(ho(M,"a")&&ho(M,"H"))throw new ma("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:b,rawMatches:m,matches:M,result:L,zone:T,specificOffset:$}}}function FM(n,e,i){const{result:o,zone:l,specificOffset:d,invalidReason:u}=F5(n,e,i);return[o,l,d,u]}function B5(n,e){if(!n)return null;const o=Rt.create(e,n).dtFormatter(HM()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>AM(u,n,d))}const V5=[0,31,59,90,120,151,181,212,243,273,304,334],Z5=[0,31,60,91,121,152,182,213,244,274,305,335];function br(n,e){return new Or("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function W5(n,e,i){const o=new Date(Date.UTC(n,e-1,i));n<100&&n>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function U5(n,e,i){return i+(Va(n)?Z5:V5)[e-1]}function j5(n,e){const i=Va(n)?Z5:V5,o=i.findIndex(d=>d<e),l=e-i[o];return{month:o+1,day:l}}function jc(n){const{year:e,month:i,day:o}=n,l=U5(e,i,o),d=W5(e,i,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=hl(v)):u>hl(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Wl(n)}}function xf(n){const{weekYear:e,weekNumber:i,weekday:o}=n,l=W5(e,1,4),d=wa(e);let u=i*7+o-l-3,v;u<1?(v=e-1,u+=wa(v)):u>d?(v=e+1,u-=wa(e)):v=e;const{month:b,day:m}=j5(v,u);return{year:v,month:b,day:m,...Wl(n)}}function gc(n){const{year:e,month:i,day:o}=n,l=U5(e,i,o);return{year:e,ordinal:l,...Wl(n)}}function zf(n){const{year:e,ordinal:i}=n,{month:o,day:l}=j5(e,i);return{year:e,month:o,day:l,...Wl(n)}}function BM(n){const e=Bl(n.weekYear),i=ui(n.weekNumber,1,hl(n.weekYear)),o=ui(n.weekday,1,7);return e?i?o?!1:br("weekday",n.weekday):br("week",n.week):br("weekYear",n.weekYear)}function VM(n){const e=Bl(n.year),i=ui(n.ordinal,1,wa(n.year));return e?i?!1:br("ordinal",n.ordinal):br("year",n.year)}function G5(n){const e=Bl(n.year),i=ui(n.month,1,12),o=ui(n.day,1,dl(n.year,n.month));return e?i?o?!1:br("day",n.day):br("month",n.month):br("year",n.year)}function q5(n){const{hour:e,minute:i,second:o,millisecond:l}=n,d=ui(e,0,23)||e===24&&i===0&&o===0&&l===0,u=ui(i,0,59),v=ui(o,0,59),b=ui(l,0,999);return d?u?v?b?!1:br("millisecond",l):br("second",o):br("minute",i):br("hour",e)}const vc="Invalid DateTime",Lf=864e13;function Ds(n){return new Or("unsupported zone",`the zone "${n.name}" is not supported`)}function bc(n){return n.weekData===null&&(n.weekData=jc(n.c)),n.weekData}function ln(n,e){const i={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Ee({...i,...e,old:i})}function K5(n,e,i){let o=n-e*60*1e3;const l=i.offset(o);if(e===l)return[o,e];o-=(l-e)*60*1e3;const d=i.offset(o);return l===d?[o,l]:[n-Math.min(l,d)*60*1e3,Math.max(l,d)]}function Ns(n,e){n+=e*60*1e3;const i=new Date(n);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Vs(n,e,i){return K5(Vl(n),e,i)}function Sf(n,e){const i=n.o,o=n.c.year+Math.trunc(e.years),l=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...n.c,year:o,month:l,day:Math.min(n.c.day,dl(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=We.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),v=Vl(d);let[b,m]=K5(v,i,n.zone);return u!==0&&(b+=u,m=n.zone.offset(b)),{ts:b,o:m}}function pa(n,e,i,o,l,d){const{setZone:u,zone:v}=i;if(n&&Object.keys(n).length!==0||e){const b=e||v,m=Ee.fromObject(n,{...i,zone:b,specificOffset:d});return u?m:m.setZone(v)}else return Ee.invalid(new Or("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Hs(n,e,i=!0){return n.isValid?Rt.create(it.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(n,e):null}function mc(n,e){const i=n.c.year>9999||n.c.year<0;let o="";return i&&n.c.year>=0&&(o+="+"),o+=Ct(n.c.year,i?6:4),e?(o+="-",o+=Ct(n.c.month),o+="-",o+=Ct(n.c.day)):(o+=Ct(n.c.month),o+=Ct(n.c.day)),o}function Mf(n,e,i,o,l,d){let u=Ct(n.c.hour);return e?(u+=":",u+=Ct(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=":")):u+=Ct(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=Ct(n.c.second),(n.c.millisecond!==0||!o)&&(u+=".",u+=Ct(n.c.millisecond,3))),l&&(n.isOffsetFixed&&n.offset===0&&!d?u+="Z":n.o<0?(u+="-",u+=Ct(Math.trunc(-n.o/60)),u+=":",u+=Ct(Math.trunc(-n.o%60))):(u+="+",u+=Ct(Math.trunc(n.o/60)),u+=":",u+=Ct(Math.trunc(n.o%60)))),d&&(u+="["+n.zone.ianaName+"]"),u}const Y5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ZM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},WM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},X5=["year","month","day","hour","minute","second","millisecond"],UM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],jM=["year","ordinal","hour","minute","second","millisecond"];function Tf(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new Jp(n);return e}function kf(n,e){const i=Pi(e.zone,yt.defaultZone),o=it.fromObject(e),l=yt.now();let d,u;if(Ze(n.year))d=l;else{for(const m of X5)Ze(n[m])&&(n[m]=Y5[m]);const v=G5(n)||q5(n);if(v)return Ee.invalid(v);const b=i.offset(l);[d,u]=Vs(n,b,i)}return new Ee({ts:d,zone:i,loc:o,o:u})}function Of(n,e,i){const o=Ze(i.round)?!0:i.round,l=(u,v)=>(u=Mu(u,o||i.calendary?0:2,!0),e.loc.clone(i).relFormatter(i).format(u,v)),d=u=>i.calendary?e.hasSame(n,u)?0:e.startOf(u).diff(n.startOf(u),u).get(u):e.diff(n,u).get(u);if(i.unit)return l(d(i.unit),i.unit);for(const u of i.units){const v=d(u);if(Math.abs(v)>=1)return l(v,u)}return l(n>e?-0:0,i.units[i.units.length-1])}function $f(n){let e={},i;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],i=Array.from(n).slice(0,n.length-1)):i=Array.from(n),[e,i]}class Ee{constructor(e){const i=e.zone||yt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Or("invalid input"):null)||(i.isValid?null:Ds(i));this.ts=Ze(e.ts)?yt.now():e.ts;let l=null,d=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[l,d]=[e.old.c,e.old.o];else{const v=i.offset(this.ts);l=Ns(this.ts,v),o=Number.isNaN(l.year)?new Or("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=i,this.loc=e.loc||it.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Ee({})}static local(){const[e,i]=$f(arguments),[o,l,d,u,v,b,m]=i;return kf({year:o,month:l,day:d,hour:u,minute:v,second:b,millisecond:m},e)}static utc(){const[e,i]=$f(arguments),[o,l,d,u,v,b,m]=i;return e.zone=Gt.utcInstance,kf({year:o,month:l,day:d,hour:u,minute:v,second:b,millisecond:m},e)}static fromJSDate(e,i={}){const o=yS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Ee.invalid("invalid input");const l=Pi(i.zone,yt.defaultZone);return l.isValid?new Ee({ts:o,zone:l,loc:it.fromObject(i)}):Ee.invalid(Ds(l))}static fromMillis(e,i={}){if(gn(e))return e<-Lf||e>Lf?Ee.invalid("Timestamp out of range"):new Ee({ts:e,zone:Pi(i.zone,yt.defaultZone),loc:it.fromObject(i)});throw new vr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(gn(e))return new Ee({ts:e*1e3,zone:Pi(i.zone,yt.defaultZone),loc:it.fromObject(i)});throw new vr("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};const o=Pi(i.zone,yt.defaultZone);if(!o.isValid)return Ee.invalid(Ds(o));const l=yt.now(),d=Ze(i.specificOffset)?o.offset(l):i.specificOffset,u=fl(e,Tf),v=!Ze(u.ordinal),b=!Ze(u.year),m=!Ze(u.month)||!Ze(u.day),M=b||m,L=u.weekYear||u.weekNumber,T=it.fromObject(i);if((M||v)&&L)throw new ma("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&v)throw new ma("Can't mix ordinal dates with month/day");const $=L||u.weekday&&!M;let H,Y,oe=Ns(l,d);$?(H=UM,Y=ZM,oe=jc(oe)):v?(H=jM,Y=WM,oe=gc(oe)):(H=X5,Y=Y5);let _=!1;for(const me of H){const Me=u[me];Ze(Me)?_?u[me]=Y[me]:u[me]=oe[me]:_=!0}const D=$?BM(u):v?VM(u):G5(u),A=D||q5(u);if(A)return Ee.invalid(A);const B=$?xf(u):v?zf(u):u,[K,ue]=Vs(B,d,o),le=new Ee({ts:K,zone:o,o:ue,loc:T});return u.weekday&&M&&e.weekday!==le.weekday?Ee.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${le.toISO()}`):le}static fromISO(e,i={}){const[o,l]=lM(e);return pa(o,l,i,"ISO 8601",e)}static fromRFC2822(e,i={}){const[o,l]=cM(e);return pa(o,l,i,"RFC 2822",e)}static fromHTTP(e,i={}){const[o,l]=uM(e);return pa(o,l,i,"HTTP",i)}static fromFormat(e,i,o={}){if(Ze(e)||Ze(i))throw new vr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,b,m,M]=FM(u,e,i);return M?Ee.invalid(M):pa(v,b,o,`format ${i}`,e,m)}static fromString(e,i,o={}){return Ee.fromFormat(e,i,o)}static fromSQL(e,i={}){const[o,l]=bM(e);return pa(o,l,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the DateTime is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new YL(o);return new Ee({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){const o=B5(e,it.fromObject(i));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,i={}){return R5(Rt.parseFormat(e),it.fromObject(i)).map(l=>l.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?bc(this).weekYear:NaN}get weekNumber(){return this.isValid?bc(this).weekNumber:NaN}get weekday(){return this.isValid?bc(this).weekday:NaN}get ordinal(){return this.isValid?gc(this.c).ordinal:NaN}get monthShort(){return this.isValid?As.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?As.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?As.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?As.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,i=6e4,o=Vl(this.c),l=this.zone.offset(o-e),d=this.zone.offset(o+e),u=this.zone.offset(o-l*i),v=this.zone.offset(o-d*i);if(u===v)return[this];const b=o-u*i,m=o-v*i,M=Ns(b,u),L=Ns(m,v);return M.hour===L.hour&&M.minute===L.minute&&M.second===L.second&&M.millisecond===L.millisecond?[ln(this,{ts:b}),ln(this,{ts:m})]:[this]}get isInLeapYear(){return Va(this.year)}get daysInMonth(){return dl(this.year,this.month)}get daysInYear(){return this.isValid?wa(this.year):NaN}get weeksInWeekYear(){return this.isValid?hl(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:i,numberingSystem:o,calendar:l}=Rt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:o,outputCalendar:l}}toUTC(e=0,i={}){return this.setZone(Gt.instance(e),i)}toLocal(){return this.setZone(yt.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:o=!1}={}){if(e=Pi(e,yt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(i||o){const d=e.offset(this.ts),u=this.toObject();[l]=Vs(u,d,e)}return ln(this,{ts:l,zone:e})}else return Ee.invalid(Ds(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:o});return ln(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const i=fl(e,Tf),o=!Ze(i.weekYear)||!Ze(i.weekNumber)||!Ze(i.weekday),l=!Ze(i.ordinal),d=!Ze(i.year),u=!Ze(i.month)||!Ze(i.day),v=d||u,b=i.weekYear||i.weekNumber;if((v||l)&&b)throw new ma("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new ma("Can't mix ordinal dates with month/day");let m;o?m=xf({...jc(this.c),...i}):Ze(i.ordinal)?(m={...this.toObject(),...i},Ze(i.day)&&(m.day=Math.min(dl(m.year,m.month),m.day))):m=zf({...gc(this.c),...i});const[M,L]=Vs(m,this.o,this.zone);return ln(this,{ts:M,o:L})}plus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e);return ln(this,Sf(this,i))}minus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e).negate();return ln(this,Sf(this,i))}startOf(e){if(!this.isValid)return this;const i={},o=We.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks"&&(i.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);i.month=(l-1)*3+1}return this.set(i)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,i={}){return this.isValid?Rt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):vc}toLocaleString(e=ul,i={}){return this.isValid?Rt.create(this.loc.clone(i),e).formatDateTime(this):vc}toLocaleParts(e={}){return this.isValid?Rt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:o=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const u=e==="extended";let v=mc(this,u);return v+="T",v+=Mf(this,u,i,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?mc(this,e==="extended"):null}toISOWeekDate(){return Hs(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:o=!0,includePrefix:l=!1,extendedZone:d=!1,format:u="extended"}={}){return this.isValid?(l?"T":"")+Mf(this,u==="extended",i,e,o,d):null}toRFC2822(){return Hs(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Hs(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?mc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(i||e)&&(o&&(l+=" "),i?l+="z":e&&(l+="ZZ")),Hs(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():vc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",o={}){if(!this.isValid||!e.isValid)return We.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=CS(i).map(We.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,b=u?e:this,m=SM(v,b,d,l);return u?m.negate():m}diffNow(e="milliseconds",i={}){return this.diff(Ee.now(),e,i)}until(e){return this.isValid?dt.fromDateTimes(this,e):this}hasSame(e,i){if(!this.isValid)return!1;const o=e.valueOf(),l=this.setZone(e.zone,{keepLocalTime:!0});return l.startOf(i)<=o&&o<=l.endOf(i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const i=e.base||Ee.fromObject({},{zone:this.zone}),o=e.padding?this<i?-e.padding:e.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(l=e.unit,d=void 0),Of(i,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?Of(e.base||Ee.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ee.isDateTime))throw new vr("min requires all arguments be DateTimes");return pf(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(Ee.isDateTime))throw new vr("max requires all arguments be DateTimes");return pf(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return F5(u,e,i)}static fromStringExplain(e,i,o={}){return Ee.fromFormatExplain(e,i,o)}static get DATE_SHORT(){return ul}static get DATE_MED(){return Qp}static get DATE_MED_WITH_WEEKDAY(){return QL}static get DATE_FULL(){return e5}static get DATE_HUGE(){return t5}static get TIME_SIMPLE(){return r5}static get TIME_WITH_SECONDS(){return i5}static get TIME_WITH_SHORT_OFFSET(){return n5}static get TIME_WITH_LONG_OFFSET(){return o5}static get TIME_24_SIMPLE(){return a5}static get TIME_24_WITH_SECONDS(){return s5}static get TIME_24_WITH_SHORT_OFFSET(){return l5}static get TIME_24_WITH_LONG_OFFSET(){return c5}static get DATETIME_SHORT(){return u5}static get DATETIME_SHORT_WITH_SECONDS(){return d5}static get DATETIME_MED(){return h5}static get DATETIME_MED_WITH_SECONDS(){return f5}static get DATETIME_MED_WITH_WEEKDAY(){return eS}static get DATETIME_FULL(){return p5}static get DATETIME_FULL_WITH_SECONDS(){return g5}static get DATETIME_HUGE(){return v5}static get DATETIME_HUGE_WITH_SECONDS(){return b5}}function ga(n){if(Ee.isDateTime(n))return n;if(n&&n.valueOf&&gn(n.valueOf()))return Ee.fromJSDate(n);if(n&&typeof n=="object")return Ee.fromObject(n);throw new vr(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const GM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},qM=n=>Ee.local().setZone(n).isValid,Gc=n=>n.hour<12,Ef=n=>!Gc(n),J5=(n,e)=>Gc(n)&&Gc(e)||Ef(n)&&Ef(e),yc=(n,e)=>{var l;const i=e&&qM(e)?e:"utc",o=(l=GM[i.split("/")[0]])!=null?l:"en-us";return n.setZone(i).setLocale(o)},KM=(n,e,i)=>{let o=Ee.fromISO(n),l=Ee.fromISO(e);i&&(o=o.setZone(i),l=l.setZone(i));const d=o.hour===0&&o.minute===0&&o.second===0,u=24*60*60*1e3,v=l.diff(o,"milliseconds").milliseconds===u;return d&&v},pl=n=>YM(Q5(n)),YM=n=>n.replace(/Sept/,"Sep"),Q5=n=>n.replace(/(AM|PM)/,e=>e.toLowerCase()),gl=n=>n.minute===0?"h":"h:mm",vl=(n,e)=>n.year!==e.year?" yyyy":"";var XM=Object.defineProperty,JM=Object.getOwnPropertyDescriptor,Vi=(n,e,i,o)=>{for(var l=o>1?void 0:o?JM(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&XM(e,i,l),l};const e6=ce("input-time"),t6="h:mma",r6=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,i6=/^(1[3-9]|2[0-3]).*/,n6=/^(\d\d?)(am?|pm?)/,QM=["UTC","AEST"],o6=(n,e)=>({label:`${n}${e?` (${e})`:""}`,value:n}),_f=(n,e)=>{const o=Math.ceil(1440/n),l=Ee.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:n*u}),b=Q5(v.toFormat(t6));return o6(b,e)})},eT=(n,e)=>{const i=n.trim(),o=n.match(r6);if(!i||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),b=v>12?`${v-12}`:`${v}`,m=`${d}${u||0}`,M=`${b}:${m}`;return["am","pm"].map(L=>o6(`${M}${L}`,e))},tT=(n,{value:e})=>{const i=n.match(i6);if(!i||!e)return!1;const[,o]=i,l=`${parseInt(o,10)-12}`,d=n.substring(o.length).replace(":",""),u=`${l}:${d}`;return e.startsWith(u)&&e.endsWith("pm")},rT=(n,{value:e})=>{const i=n.match(n6);if(!i)return!1;const[,o,l]=i;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},iT=(...n)=>rT(...n)||tT(...n);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=_f(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=_f(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var e;this.valueLabel=this.value&&this.value!==this.placeholder?(e=this.getItems().find(({value:i})=>i===this.value))==null?void 0:e.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(e){return this.query?iT(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=eT(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return N`
3521
+ `];wo([$({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);wo([$({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);wo([$({attribute:"hide-select-all",type:Boolean})],exports.InputMultiselect.prototype,"hideSelectAll",2);wo([$({type:Array})],exports.InputMultiselect.prototype,"value",2);wo([we()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=wo([Z(Jp)],exports.InputMultiselect);class Mn extends Error{}class eS extends Mn{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class tS extends Mn{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class rS extends Mn{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class ya extends Mn{}class Qp extends Mn{constructor(e){super(`Invalid unit ${e}`)}}class vr extends Mn{}class Ei extends Mn{constructor(){super("Zone is an abstract class")}}const fe="numeric",_r="short",hr="long",ul={year:fe,month:fe,day:fe},e5={year:fe,month:_r,day:fe},iS={year:fe,month:_r,day:fe,weekday:_r},t5={year:fe,month:hr,day:fe},r5={year:fe,month:hr,day:fe,weekday:hr},i5={hour:fe,minute:fe},n5={hour:fe,minute:fe,second:fe},o5={hour:fe,minute:fe,second:fe,timeZoneName:_r},a5={hour:fe,minute:fe,second:fe,timeZoneName:hr},s5={hour:fe,minute:fe,hourCycle:"h23"},l5={hour:fe,minute:fe,second:fe,hourCycle:"h23"},c5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:_r},u5={hour:fe,minute:fe,second:fe,hourCycle:"h23",timeZoneName:hr},d5={year:fe,month:fe,day:fe,hour:fe,minute:fe},h5={year:fe,month:fe,day:fe,hour:fe,minute:fe,second:fe},f5={year:fe,month:_r,day:fe,hour:fe,minute:fe},p5={year:fe,month:_r,day:fe,hour:fe,minute:fe,second:fe},nS={year:fe,month:_r,day:fe,weekday:_r,hour:fe,minute:fe},g5={year:fe,month:hr,day:fe,hour:fe,minute:fe,timeZoneName:_r},v5={year:fe,month:hr,day:fe,hour:fe,minute:fe,second:fe,timeZoneName:_r},b5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,timeZoneName:hr},m5={year:fe,month:hr,day:fe,weekday:hr,hour:fe,minute:fe,second:fe,timeZoneName:hr};class Ba{get type(){throw new Ei}get name(){throw new Ei}get ianaName(){return this.name}get isUniversal(){throw new Ei}offsetName(e,i){throw new Ei}formatOffset(e,i){throw new Ei}offset(e){throw new Ei}equals(e){throw new Ei}get isValid(){throw new Ei}}let hc=null;class Fl extends Ba{static get instance(){return hc===null&&(hc=new Fl),hc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return C5(e,i,o)}formatOffset(e,i){return za(this.offset(e),i)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let Bs={};function oS(n){return Bs[n]||(Bs[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Bs[n]}const aS={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function sS(n,e){const i=n.format(e).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,l,d,u,v,b,m,M]=o;return[u,l,d,v,b,m,M]}function lS(n,e){const i=n.formatToParts(e),o=[];for(let l=0;l<i.length;l++){const{type:d,value:u}=i[l],v=aS[d];d==="era"?o[v]=u:Ze(v)||(o[v]=parseInt(u,10))}return o}let _s={};class hi extends Ba{static create(e){return _s[e]||(_s[e]=new hi(e)),_s[e]}static resetCache(){_s={},Bs={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=hi.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:i,locale:o}){return C5(e,i,o,this.name)}formatOffset(e,i){return za(this.offset(e),i)}offset(e){const i=new Date(e);if(isNaN(i))return NaN;const o=oS(this.name);let[l,d,u,v,b,m,M]=o.formatToParts?lS(o,i):sS(o,i);v==="BC"&&(l=-Math.abs(l)+1);const T=Vl({year:l,month:d,day:u,hour:b===24?0:b,minute:m,second:M,millisecond:0});let E=+i;const H=E%1e3;return E-=H>=0?H:1e3+H,(T-E)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let sf={};function cS(n,e={}){const i=JSON.stringify([n,e]);let o=sf[i];return o||(o=new Intl.ListFormat(n,e),sf[i]=o),o}let Bc={};function Vc(n,e={}){const i=JSON.stringify([n,e]);let o=Bc[i];return o||(o=new Intl.DateTimeFormat(n,e),Bc[i]=o),o}let Zc={};function uS(n,e={}){const i=JSON.stringify([n,e]);let o=Zc[i];return o||(o=new Intl.NumberFormat(n,e),Zc[i]=o),o}let Wc={};function dS(n,e={}){const{base:i,...o}=e,l=JSON.stringify([n,o]);let d=Wc[l];return d||(d=new Intl.RelativeTimeFormat(n,e),Wc[l]=d),d}let Ca=null;function hS(){return Ca||(Ca=new Intl.DateTimeFormat().resolvedOptions().locale,Ca)}function fS(n){const e=n.indexOf("-x-");e!==-1&&(n=n.substring(0,e));const i=n.indexOf("-u-");if(i===-1)return[n];{let o,l;try{o=Vc(n).resolvedOptions(),l=n}catch{const b=n.substring(0,i);o=Vc(b).resolvedOptions(),l=b}const{numberingSystem:d,calendar:u}=o;return[l,d,u]}}function pS(n,e,i){return(i||e)&&(n.includes("-u-")||(n+="-u"),i&&(n+=`-ca-${i}`),e&&(n+=`-nu-${e}`)),n}function gS(n){const e=[];for(let i=1;i<=12;i++){const o=Ee.utc(2009,i,1);e.push(n(o))}return e}function vS(n){const e=[];for(let i=1;i<=7;i++){const o=Ee.utc(2016,11,13+i);e.push(n(o))}return e}function As(n,e,i,o){const l=n.listingMode();return l==="error"?null:l==="en"?i(e):o(e)}function bS(n){return n.numberingSystem&&n.numberingSystem!=="latn"?!1:n.numberingSystem==="latn"||!n.locale||n.locale.startsWith("en")||new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem==="latn"}class mS{constructor(e,i,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const{padTo:l,floor:d,...u}=o;if(!i||Object.keys(u).length>0){const v={useGrouping:!1,...o};o.padTo>0&&(v.minimumIntegerDigits=o.padTo),this.inf=uS(e,v)}}format(e){if(this.inf){const i=this.floor?Math.floor(e):e;return this.inf.format(i)}else{const i=this.floor?Math.floor(e):Mu(e,3);return Ct(i,this.padTo)}}}class yS{constructor(e,i,o){this.opts=o,this.originalZone=void 0;let l;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const u=-1*(e.offset/60),v=u>=0?`Etc/GMT+${u}`:`Etc/GMT${u}`;e.offset!==0&&hi.create(v).valid?(l=v,this.dt=e):(l="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,l=e.zone.name):(l="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const d={...this.opts};d.timeZone=d.timeZone||l,this.dtf=Vc(i,d)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(i=>{if(i.type==="timeZoneName"){const o=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:o}}else return i}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class CS{constructor(e,i,o){this.opts={style:"long",...o},!i&&y5()&&(this.rtf=dS(e,o))}format(e,i){return this.rtf?this.rtf.format(e,i):NS(i,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,i){return this.rtf?this.rtf.formatToParts(e,i):[]}}class it{static fromOpts(e){return it.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,i,o,l=!1){const d=e||yt.defaultLocale,u=d||(l?"en-US":hS()),v=i||yt.defaultNumberingSystem,b=o||yt.defaultOutputCalendar;return new it(u,v,b,d)}static resetCache(){Ca=null,Bc={},Zc={},Wc={}}static fromObject({locale:e,numberingSystem:i,outputCalendar:o}={}){return it.create(e,i,o)}constructor(e,i,o,l){const[d,u,v]=fS(e);this.locale=d,this.numberingSystem=i||u||null,this.outputCalendar=o||v||null,this.intl=pS(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=l,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=bS(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),i=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&i?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:it.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,i=!1){return As(this,e,z5,()=>{const o=i?{month:e,day:"numeric"}:{month:e},l=i?"format":"standalone";return this.monthsCache[l][e]||(this.monthsCache[l][e]=gS(d=>this.extract(d,o,"month"))),this.monthsCache[l][e]})}weekdays(e,i=!1){return As(this,e,M5,()=>{const o=i?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},l=i?"format":"standalone";return this.weekdaysCache[l][e]||(this.weekdaysCache[l][e]=vS(d=>this.extract(d,o,"weekday"))),this.weekdaysCache[l][e]})}meridiems(){return As(this,void 0,()=>T5,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(i=>this.extract(i,e,"dayperiod"))}return this.meridiemCache})}eras(e){return As(this,e,k5,()=>{const i={era:e};return this.eraCache[e]||(this.eraCache[e]=[Ee.utc(-40,1,1),Ee.utc(2017,1,1)].map(o=>this.extract(o,i,"era"))),this.eraCache[e]})}extract(e,i,o){const l=this.dtFormatter(e,i),d=l.formatToParts(),u=d.find(v=>v.type.toLowerCase()===o);return u?u.value:null}numberFormatter(e={}){return new mS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,i={}){return new yS(e,this.intl,i)}relFormatter(e={}){return new CS(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cS(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let fc=null;class Gt extends Ba{static get utcInstance(){return fc===null&&(fc=new Gt(0)),fc}static instance(e){return e===0?Gt.utcInstance:new Gt(e)}static parseSpecifier(e){if(e){const i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new Gt(Zl(i[1],i[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${za(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${za(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,i){return za(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class wS extends Ba{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Pi(n,e){if(Ze(n)||n===null)return e;if(n instanceof Ba)return n;if(xS(n)){const i=n.toLowerCase();return i==="default"?e:i==="local"||i==="system"?Fl.instance:i==="utc"||i==="gmt"?Gt.utcInstance:Gt.parseSpecifier(i)||hi.create(n)}else return gn(n)?Gt.instance(n):typeof n=="object"&&"offset"in n&&typeof n.offset=="function"?n:new wS(n)}let lf=()=>Date.now(),cf="system",uf=null,df=null,hf=null,ff=60,pf;class yt{static get now(){return lf}static set now(e){lf=e}static set defaultZone(e){cf=e}static get defaultZone(){return Pi(cf,Fl.instance)}static get defaultLocale(){return uf}static set defaultLocale(e){uf=e}static get defaultNumberingSystem(){return df}static set defaultNumberingSystem(e){df=e}static get defaultOutputCalendar(){return hf}static set defaultOutputCalendar(e){hf=e}static get twoDigitCutoffYear(){return ff}static set twoDigitCutoffYear(e){ff=e%100}static get throwOnInvalid(){return pf}static set throwOnInvalid(e){pf=e}static resetCaches(){it.resetCache(),hi.resetCache()}}function Ze(n){return typeof n=="undefined"}function gn(n){return typeof n=="number"}function Bl(n){return typeof n=="number"&&n%1===0}function xS(n){return typeof n=="string"}function zS(n){return Object.prototype.toString.call(n)==="[object Date]"}function y5(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function LS(n){return Array.isArray(n)?n:[n]}function gf(n,e,i){if(n.length!==0)return n.reduce((o,l)=>{const d=[e(l),l];return o&&i(o[0],d[0])===o[0]?o:d},null)[1]}function SS(n,e){return e.reduce((i,o)=>(i[o]=n[o],i),{})}function ho(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function ui(n,e,i){return Bl(n)&&n>=e&&n<=i}function MS(n,e){return n-e*Math.floor(n/e)}function Ct(n,e=2){const i=n<0;let o;return i?o="-"+(""+-n).padStart(e,"0"):o=(""+n).padStart(e,"0"),o}function Ai(n){if(!(Ze(n)||n===null||n===""))return parseInt(n,10)}function sn(n){if(!(Ze(n)||n===null||n===""))return parseFloat(n)}function Su(n){if(!(Ze(n)||n===null||n==="")){const e=parseFloat("0."+n)*1e3;return Math.floor(e)}}function Mu(n,e,i=!1){const o=10**e;return(i?Math.trunc:Math.round)(n*o)/o}function Va(n){return n%4===0&&(n%100!==0||n%400===0)}function xa(n){return Va(n)?366:365}function dl(n,e){const i=MS(e-1,12)+1,o=n+(e-i)/12;return i===2?Va(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Vl(n){let e=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(e=new Date(e),e.setUTCFullYear(n.year,n.month-1,n.day)),+e}function hl(n){const e=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,i=n-1,o=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return e===4||o===3?53:52}function Uc(n){return n>99?n:n>yt.twoDigitCutoffYear?1900+n:2e3+n}function C5(n,e,i,o=null){const l=new Date(n),d={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(d.timeZone=o);const u={timeZoneName:e,...d},v=new Intl.DateTimeFormat(i,u).formatToParts(l).find(b=>b.type.toLowerCase()==="timezonename");return v?v.value:null}function Zl(n,e){let i=parseInt(n,10);Number.isNaN(i)&&(i=0);const o=parseInt(e,10)||0,l=i<0||Object.is(i,-0)?-o:o;return i*60+l}function w5(n){const e=Number(n);if(typeof n=="boolean"||n===""||Number.isNaN(e))throw new vr(`Invalid unit value ${n}`);return e}function fl(n,e){const i={};for(const o in n)if(ho(n,o)){const l=n[o];if(l==null)continue;i[e(o)]=w5(l)}return i}function za(n,e){const i=Math.trunc(Math.abs(n/60)),o=Math.trunc(Math.abs(n%60)),l=n>=0?"+":"-";switch(e){case"short":return`${l}${Ct(i,2)}:${Ct(o,2)}`;case"narrow":return`${l}${i}${o>0?`:${o}`:""}`;case"techie":return`${l}${Ct(i,2)}${Ct(o,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Wl(n){return SS(n,["hour","minute","second","millisecond"])}const TS=["January","February","March","April","May","June","July","August","September","October","November","December"],x5=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],kS=["J","F","M","A","M","J","J","A","S","O","N","D"];function z5(n){switch(n){case"narrow":return[...kS];case"short":return[...x5];case"long":return[...TS];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const L5=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],S5=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],OS=["M","T","W","T","F","S","S"];function M5(n){switch(n){case"narrow":return[...OS];case"short":return[...S5];case"long":return[...L5];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const T5=["AM","PM"],$S=["Before Christ","Anno Domini"],ES=["BC","AD"],_S=["B","A"];function k5(n){switch(n){case"narrow":return[..._S];case"short":return[...ES];case"long":return[...$S];default:return null}}function AS(n){return T5[n.hour<12?0:1]}function IS(n,e){return M5(e)[n.weekday-1]}function PS(n,e){return z5(e)[n.month-1]}function DS(n,e){return k5(e)[n.year<0?0:1]}function NS(n,e,i="always",o=!1){const l={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},d=["hours","minutes","seconds"].indexOf(n)===-1;if(i==="auto"&&d){const L=n==="days";switch(e){case 1:return L?"tomorrow":`next ${l[n][0]}`;case-1:return L?"yesterday":`last ${l[n][0]}`;case 0:return L?"today":`this ${l[n][0]}`}}const u=Object.is(e,-0)||e<0,v=Math.abs(e),b=v===1,m=l[n],M=o?b?m[1]:m[2]||m[1]:b?l[n][0]:n;return u?`${v} ${M} ago`:`in ${v} ${M}`}function vf(n,e){let i="";for(const o of n)o.literal?i+=o.val:i+=e(o.val);return i}const HS={D:ul,DD:e5,DDD:t5,DDDD:r5,t:i5,tt:n5,ttt:o5,tttt:a5,T:s5,TT:l5,TTT:c5,TTTT:u5,f:d5,ff:f5,fff:g5,ffff:b5,F:h5,FF:p5,FFF:v5,FFFF:m5};class Rt{static create(e,i={}){return new Rt(e,i)}static parseFormat(e){let i=null,o="",l=!1;const d=[];for(let u=0;u<e.length;u++){const v=e.charAt(u);v==="'"?(o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),i=null,o="",l=!l):l||v===i?o+=v:(o.length>0&&d.push({literal:/^\s+$/.test(o),val:o}),o=v,i=v)}return o.length>0&&d.push({literal:l||/^\s+$/.test(o),val:o}),d}static macroTokenToFormatOpts(e){return HS[e]}constructor(e,i){this.opts=i,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,i){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...i}).format()}dtFormatter(e,i={}){return this.loc.dtFormatter(e,{...this.opts,...i})}formatDateTime(e,i){return this.dtFormatter(e,i).format()}formatDateTimeParts(e,i){return this.dtFormatter(e,i).formatToParts()}formatInterval(e,i){return this.dtFormatter(e.start,i).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,i){return this.dtFormatter(e,i).resolvedOptions()}num(e,i=0){if(this.opts.forceSimple)return Ct(e,i);const o={...this.opts};return i>0&&(o.padTo=i),this.loc.numberFormatter(o).format(e)}formatDateTimeFromString(e,i){const o=this.loc.listingMode()==="en",l=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",d=(E,H)=>this.loc.extract(e,E,H),u=E=>e.isOffsetFixed&&e.offset===0&&E.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,E.format):"",v=()=>o?AS(e):d({hour:"numeric",hourCycle:"h12"},"dayperiod"),b=(E,H)=>o?PS(e,E):d(H?{month:E}:{month:E,day:"numeric"},"month"),m=(E,H)=>o?IS(e,E):d(H?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),M=E=>{const H=Rt.macroTokenToFormatOpts(E);return H?this.formatWithSystemDefault(e,H):E},L=E=>o?DS(e,E):d({era:E},"era"),T=E=>{switch(E){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return u({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return u({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return u({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return v();case"d":return l?d({day:"numeric"},"day"):this.num(e.day);case"dd":return l?d({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return m("short",!0);case"cccc":return m("long",!0);case"ccccc":return m("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return m("short",!1);case"EEEE":return m("long",!1);case"EEEEE":return m("narrow",!1);case"L":return l?d({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return l?d({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return b("short",!0);case"LLLL":return b("long",!0);case"LLLLL":return b("narrow",!0);case"M":return l?d({month:"numeric"},"month"):this.num(e.month);case"MM":return l?d({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return b("short",!1);case"MMMM":return b("long",!1);case"MMMMM":return b("narrow",!1);case"y":return l?d({year:"numeric"},"year"):this.num(e.year);case"yy":return l?d({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return l?d({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return l?d({year:"numeric"},"year"):this.num(e.year,6);case"G":return L("short");case"GG":return L("long");case"GGGGG":return L("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return M(E)}};return vf(Rt.parseFormat(i),T)}formatDurationFromString(e,i){const o=b=>{switch(b[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},l=b=>m=>{const M=o(m);return M?this.num(b.get(M),m.length):m},d=Rt.parseFormat(i),u=d.reduce((b,{literal:m,val:M})=>m?b:b.concat(M),[]),v=e.shiftTo(...u.map(o).filter(b=>b));return vf(d,l(v))}}class Or{constructor(e,i){this.reason=e,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const O5=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function xo(...n){const e=n.reduce((i,o)=>i+o.source,"");return RegExp(`^${e}$`)}function zo(...n){return e=>n.reduce(([i,o,l],d)=>{const[u,v,b]=d(e,l);return[{...i,...u},v||o,b]},[{},null,1]).slice(0,2)}function Lo(n,...e){if(n==null)return[null,null];for(const[i,o]of e){const l=i.exec(n);if(l)return o(l)}return[null,null]}function $5(...n){return(e,i)=>{const o={};let l;for(l=0;l<n.length;l++)o[n[l]]=Ai(e[i+l]);return[o,null,i+l]}}const E5=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,RS=`(?:${E5.source}?(?:\\[(${O5.source})\\])?)?`,Tu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_5=RegExp(`${Tu.source}${RS}`),ku=RegExp(`(?:T${_5.source})?`),FS=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,BS=/(\d{4})-?W(\d\d)(?:-?(\d))?/,VS=/(\d{4})-?(\d{3})/,ZS=$5("weekYear","weekNumber","weekDay"),WS=$5("year","ordinal"),US=/(\d{4})-(\d\d)-(\d\d)/,A5=RegExp(`${Tu.source} ?(?:${E5.source}|(${O5.source}))?`),jS=RegExp(`(?: ${A5.source})?`);function no(n,e,i){const o=n[e];return Ze(o)?i:Ai(o)}function GS(n,e){return[{year:no(n,e),month:no(n,e+1,1),day:no(n,e+2,1)},null,e+3]}function So(n,e){return[{hours:no(n,e,0),minutes:no(n,e+1,0),seconds:no(n,e+2,0),milliseconds:Su(n[e+3])},null,e+4]}function Za(n,e){const i=!n[e]&&!n[e+1],o=Zl(n[e+1],n[e+2]),l=i?null:Gt.instance(o);return[{},l,e+3]}function Wa(n,e){const i=n[e]?hi.create(n[e]):null;return[{},i,e+1]}const qS=RegExp(`^T?${Tu.source}$`),KS=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function YS(n){const[e,i,o,l,d,u,v,b,m]=n,M=e[0]==="-",L=b&&b[0]==="-",T=(E,H=!1)=>E!==void 0&&(H||E&&M)?-E:E;return[{years:T(sn(i)),months:T(sn(o)),weeks:T(sn(l)),days:T(sn(d)),hours:T(sn(u)),minutes:T(sn(v)),seconds:T(sn(b),b==="-0"),milliseconds:T(Su(m),L)}]}const XS={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ou(n,e,i,o,l,d,u){const v={year:e.length===2?Uc(Ai(e)):Ai(e),month:x5.indexOf(i)+1,day:Ai(o),hour:Ai(l),minute:Ai(d)};return u&&(v.second=Ai(u)),n&&(v.weekday=n.length>3?L5.indexOf(n)+1:S5.indexOf(n)+1),v}const JS=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function QS(n){const[,e,i,o,l,d,u,v,b,m,M,L]=n,T=Ou(e,l,o,i,d,u,v);let E;return b?E=XS[b]:m?E=0:E=Zl(M,L),[T,new Gt(E)]}function eM(n){return n.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const tM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rM=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,iM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function bf(n){const[,e,i,o,l,d,u,v]=n;return[Ou(e,l,o,i,d,u,v),Gt.utcInstance]}function nM(n){const[,e,i,o,l,d,u,v]=n;return[Ou(e,v,i,o,l,d,u),Gt.utcInstance]}const oM=xo(FS,ku),aM=xo(BS,ku),sM=xo(VS,ku),lM=xo(_5),I5=zo(GS,So,Za,Wa),cM=zo(ZS,So,Za,Wa),uM=zo(WS,So,Za,Wa),dM=zo(So,Za,Wa);function hM(n){return Lo(n,[oM,I5],[aM,cM],[sM,uM],[lM,dM])}function fM(n){return Lo(eM(n),[JS,QS])}function pM(n){return Lo(n,[tM,bf],[rM,bf],[iM,nM])}function gM(n){return Lo(n,[KS,YS])}const vM=zo(So);function bM(n){return Lo(n,[qS,vM])}const mM=xo(US,jS),yM=xo(A5),CM=zo(So,Za,Wa);function wM(n){return Lo(n,[mM,I5],[yM,CM])}const xM="Invalid Duration",P5={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},zM={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...P5},gr=146097/400,Qn=146097/4800,LM={years:{quarters:4,months:12,weeks:gr/7,days:gr,hours:gr*24,minutes:gr*24*60,seconds:gr*24*60*60,milliseconds:gr*24*60*60*1e3},quarters:{months:3,weeks:gr/28,days:gr/4,hours:gr*24/4,minutes:gr*24*60/4,seconds:gr*24*60*60/4,milliseconds:gr*24*60*60*1e3/4},months:{weeks:Qn/7,days:Qn,hours:Qn*24,minutes:Qn*24*60,seconds:Qn*24*60*60,milliseconds:Qn*24*60*60*1e3},...P5},un=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],D5=un.slice(0).reverse();function _i(n,e,i=!1){const o={values:i?e.values:{...n.values,...e.values||{}},loc:n.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||n.conversionAccuracy,matrix:e.matrix||n.matrix};return new We(o)}function mf(n){return Math.trunc(n*1e3)/1e3}function N5(n,e,i,o,l){const d=n[l][i],u=e[i]/d,v=Math.floor(u);o[l]=mf(o[l]+v),e[i]=mf(e[i]-v*d)}function SM(n,e){D5.reduce((i,o)=>Ze(e[o])?i:(i&&N5(n,e,i,e,o),o),null)}function MM(n){const e={};for(const[i,o]of Object.entries(n))o!==0&&(e[i]=o);return e}class We{constructor(e){const i=e.conversionAccuracy==="longterm"||!1;let o=i?LM:zM;e.matrix&&(o=e.matrix),this.values=e.values,this.loc=e.loc||it.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=o,this.isLuxonDuration=!0}static fromMillis(e,i){return We.fromObject({milliseconds:e},i)}static fromObject(e,i={}){if(e==null||typeof e!="object")throw new vr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new We({values:fl(e,We.normalizeUnit),loc:it.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(e){if(gn(e))return We.fromMillis(e);if(We.isDuration(e))return e;if(typeof e=="object")return We.fromObject(e);throw new vr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,i){const[o]=gM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,i){const[o]=bM(e);return o?We.fromObject(o,i):We.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the Duration is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new rS(o);return new We({invalid:o})}static normalizeUnit(e){const i={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!i)throw new Qp(e);return i}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,i={}){const o={...i,floor:i.round!==!1&&i.floor!==!1};return this.isValid?Rt.create(this.loc,o).formatDurationFromString(this,e):xM}toHuman(e={}){const i=un.map(o=>{const l=this.values[o];return Ze(l)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:o.slice(0,-1)}).format(l)}).filter(o=>o);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=Mu(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Ee.fromMillis(i,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var i,o;let e=(i=this.values.milliseconds)!=null?i:0;for(let l of D5.slice(1))(o=this.values)!=null&&o[l]&&(e+=this.values[l]*this.matrix[l].milliseconds);return e}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e),o={};for(const l of un)(ho(i.values,l)||ho(this.values,l))&&(o[l]=i.get(l)+this.get(l));return _i(this,{values:o},!0)}minus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e);return this.plus(i.negate())}mapUnits(e){if(!this.isValid)return this;const i={};for(const o of Object.keys(this.values))i[o]=w5(e(this.values[o],o));return _i(this,{values:i},!0)}get(e){return this[We.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const i={...this.values,...fl(e,We.normalizeUnit)};return _i(this,{values:i})}reconfigure({locale:e,numberingSystem:i,conversionAccuracy:o,matrix:l}={}){const u={loc:this.loc.clone({locale:e,numberingSystem:i}),matrix:l,conversionAccuracy:o};return _i(this,u)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return this.valueOf()>=0?(SM(this.matrix,e),_i(this,{values:e},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const e=MM(this.normalize().shiftToAll().toObject());return _i(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(u=>We.normalizeUnit(u));const i={},o={},l=this.toObject();let d;for(const u of un)if(e.indexOf(u)>=0){d=u;let v=0;for(const m in o)v+=this.matrix[m][u]*o[m],o[m]=0;gn(l[u])&&(v+=l[u]);const b=Math.trunc(v);i[u]=b,o[u]=(v*1e3-b*1e3)/1e3;for(const m in l)un.indexOf(m)>un.indexOf(u)&&N5(this.matrix,l,m,i,u)}else gn(l[u])&&(o[u]=l[u]);for(const u in o)o[u]!==0&&(i[d]+=u===d?o[u]:o[u]/this.matrix[d][u]);return _i(this,{values:i},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=this.values[i]===0?0:-this.values[i];return _i(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function i(o,l){return o===void 0||o===0?l===void 0||l===0:o===l}for(const o of un)if(!i(this.values[o],e.values[o]))return!1;return!0}}const eo="Invalid Interval";function TM(n,e){return!n||!n.isValid?dt.invalid("missing or invalid start"):!e||!e.isValid?dt.invalid("missing or invalid end"):e<n?dt.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${e.toISO()}`):null}class dt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the Interval is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new tS(o);return new dt({invalid:o})}static fromDateTimes(e,i){const o=va(e),l=va(i),d=TM(o,l);return d==null?new dt({start:o,end:l}):d}static after(e,i){const o=We.fromDurationLike(i),l=va(e);return dt.fromDateTimes(l,l.plus(o))}static before(e,i){const o=We.fromDurationLike(i),l=va(e);return dt.fromDateTimes(l.minus(o),l)}static fromISO(e,i){const[o,l]=(e||"").split("/",2);if(o&&l){let d,u;try{d=Ee.fromISO(o,i),u=d.isValid}catch{u=!1}let v,b;try{v=Ee.fromISO(l,i),b=v.isValid}catch{b=!1}if(u&&b)return dt.fromDateTimes(d,v);if(u){const m=We.fromISO(l,i);if(m.isValid)return dt.after(d,m)}else if(b){const m=We.fromISO(o,i);if(m.isValid)return dt.before(v,m)}}return dt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds"){if(!this.isValid)return NaN;const i=this.start.startOf(e),o=this.end.startOf(e);return Math.floor(o.diff(i,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:i}={}){return this.isValid?dt.fromDateTimes(e||this.s,i||this.e):this}splitAt(...e){if(!this.isValid)return[];const i=e.map(va).filter(u=>this.contains(u)).sort(),o=[];let{s:l}=this,d=0;for(;l<this.e;){const u=i[d]||this.e,v=+u>+this.e?this.e:u;o.push(dt.fromDateTimes(l,v)),l=v,d+=1}return o}splitBy(e){const i=We.fromDurationLike(e);if(!this.isValid||!i.isValid||i.as("milliseconds")===0)return[];let{s:o}=this,l=1,d;const u=[];for(;o<this.e;){const v=this.start.plus(i.mapUnits(b=>b*l));d=+v>+this.e?this.e:v,u.push(dt.fromDateTimes(o,d)),o=d,l+=1}return u}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const i=this.s>e.s?this.s:e.s,o=this.e<e.e?this.e:e.e;return i>=o?null:dt.fromDateTimes(i,o)}union(e){if(!this.isValid)return this;const i=this.s<e.s?this.s:e.s,o=this.e>e.e?this.e:e.e;return dt.fromDateTimes(i,o)}static merge(e){const[i,o]=e.sort((l,d)=>l.s-d.s).reduce(([l,d],u)=>d?d.overlaps(u)||d.abutsStart(u)?[l,d.union(u)]:[l.concat([d]),u]:[l,u],[[],null]);return o&&i.push(o),i}static xor(e){let i=null,o=0;const l=[],d=e.map(b=>[{time:b.s,type:"s"},{time:b.e,type:"e"}]),u=Array.prototype.concat(...d),v=u.sort((b,m)=>b.time-m.time);for(const b of v)o+=b.type==="s"?1:-1,o===1?i=b.time:(i&&+i!=+b.time&&l.push(dt.fromDateTimes(i,b.time)),i=null);return dt.merge(l)}difference(...e){return dt.xor([this].concat(e)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:eo}toLocaleString(e=ul,i={}){return this.isValid?Rt.create(this.s.loc.clone(i),e).formatInterval(this):eo}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:eo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:eo}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:eo}toFormat(e,{separator:i=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${i}${this.e.toFormat(e)}`:eo}toDuration(e,i){return this.isValid?this.e.diff(this.s,e,i):We.invalid(this.invalidReason)}mapEndpoints(e){return dt.fromDateTimes(e(this.s),e(this.e))}}class Is{static hasDST(e=yt.defaultZone){const i=Ee.now().setZone(e).set({month:12});return!e.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(e){return hi.isValidZone(e)}static normalizeZone(e){return Pi(e,yt.defaultZone)}static months(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e)}static monthsFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null,outputCalendar:d="gregory"}={}){return(l||it.create(i,o,d)).months(e,!0)}static weekdays(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:i=null,numberingSystem:o=null,locObj:l=null}={}){return(l||it.create(i,o,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return it.create(e).meridiems()}static eras(e="short",{locale:i=null}={}){return it.create(i,null,"gregory").eras(e)}static features(){return{relative:y5()}}}function yf(n,e){const i=l=>l.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=i(e)-i(n);return Math.floor(We.fromMillis(o).as("days"))}function kM(n,e,i){const o=[["years",(b,m)=>m.year-b.year],["quarters",(b,m)=>m.quarter-b.quarter+(m.year-b.year)*4],["months",(b,m)=>m.month-b.month+(m.year-b.year)*12],["weeks",(b,m)=>{const M=yf(b,m);return(M-M%7)/7}],["days",yf]],l={},d=n;let u,v;for(const[b,m]of o)i.indexOf(b)>=0&&(u=b,l[b]=m(n,e),v=d.plus(l),v>e?(l[b]--,n=d.plus(l),n>e&&(v=n,l[b]--,n=d.plus(l))):n=v);return[n,l,v,u]}function OM(n,e,i,o){let[l,d,u,v]=kM(n,e,i);const b=e-l,m=i.filter(L=>["hours","minutes","seconds","milliseconds"].indexOf(L)>=0);m.length===0&&(u<e&&(u=l.plus({[v]:1})),u!==l&&(d[v]=(d[v]||0)+b/(u-l)));const M=We.fromObject(d,o);return m.length>0?We.fromMillis(b,o).shiftTo(...m).plus(M):M}const $u={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Cf={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},$M=$u.hanidec.replace(/[\[|\]]/g,"").split("");function EM(n){let e=parseInt(n,10);if(isNaN(e)){e="";for(let i=0;i<n.length;i++){const o=n.charCodeAt(i);if(n[i].search($u.hanidec)!==-1)e+=$M.indexOf(n[i]);else for(const l in Cf){const[d,u]=Cf[l];o>=d&&o<=u&&(e+=o-d)}}return parseInt(e,10)}else return e}function Mr({numberingSystem:n},e=""){return new RegExp(`${$u[n||"latn"]}${e}`)}const _M="missing Intl.DateTimeFormat.formatToParts support";function qe(n,e=i=>i){return{regex:n,deser:([i])=>e(EM(i))}}const AM=String.fromCharCode(160),H5=`[ ${AM}]`,R5=new RegExp(H5,"g");function IM(n){return n.replace(/\./g,"\\.?").replace(R5,H5)}function wf(n){return n.replace(/\./g,"").replace(R5," ").toLowerCase()}function Tr(n,e){return n===null?null:{regex:RegExp(n.map(IM).join("|")),deser:([i])=>n.findIndex(o=>wf(i)===wf(o))+e}}function xf(n,e){return{regex:n,deser:([,i,o])=>Zl(i,o),groups:e}}function Ps(n){return{regex:n,deser:([e])=>e}}function PM(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function DM(n,e){const i=Mr(e),o=Mr(e,"{2}"),l=Mr(e,"{3}"),d=Mr(e,"{4}"),u=Mr(e,"{6}"),v=Mr(e,"{1,2}"),b=Mr(e,"{1,3}"),m=Mr(e,"{1,6}"),M=Mr(e,"{1,9}"),L=Mr(e,"{2,4}"),T=Mr(e,"{4,6}"),E=oe=>({regex:RegExp(PM(oe.val)),deser:([_])=>_,literal:!0}),Y=(oe=>{if(n.literal)return E(oe);switch(oe.val){case"G":return Tr(e.eras("short"),0);case"GG":return Tr(e.eras("long"),0);case"y":return qe(m);case"yy":return qe(L,Uc);case"yyyy":return qe(d);case"yyyyy":return qe(T);case"yyyyyy":return qe(u);case"M":return qe(v);case"MM":return qe(o);case"MMM":return Tr(e.months("short",!0),1);case"MMMM":return Tr(e.months("long",!0),1);case"L":return qe(v);case"LL":return qe(o);case"LLL":return Tr(e.months("short",!1),1);case"LLLL":return Tr(e.months("long",!1),1);case"d":return qe(v);case"dd":return qe(o);case"o":return qe(b);case"ooo":return qe(l);case"HH":return qe(o);case"H":return qe(v);case"hh":return qe(o);case"h":return qe(v);case"mm":return qe(o);case"m":return qe(v);case"q":return qe(v);case"qq":return qe(o);case"s":return qe(v);case"ss":return qe(o);case"S":return qe(b);case"SSS":return qe(l);case"u":return Ps(M);case"uu":return Ps(v);case"uuu":return qe(i);case"a":return Tr(e.meridiems(),0);case"kkkk":return qe(d);case"kk":return qe(L,Uc);case"W":return qe(v);case"WW":return qe(o);case"E":case"c":return qe(i);case"EEE":return Tr(e.weekdays("short",!1),1);case"EEEE":return Tr(e.weekdays("long",!1),1);case"ccc":return Tr(e.weekdays("short",!0),1);case"cccc":return Tr(e.weekdays("long",!0),1);case"Z":case"ZZ":return xf(new RegExp(`([+-]${v.source})(?::(${o.source}))?`),2);case"ZZZ":return xf(new RegExp(`([+-]${v.source})(${o.source})?`),2);case"z":return Ps(/[a-z_+-/]{1,256}?/i);case" ":return Ps(/[^\S\n\r]/);default:return E(oe)}})(n)||{invalidReason:_M};return Y.token=n,Y}const NM={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function HM(n,e,i){const{type:o,value:l}=n;if(o==="literal"){const b=/^\s+$/.test(l);return{literal:!b,val:b?" ":l}}const d=e[o];let u=o;o==="hour"&&(e.hour12!=null?u=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?u="hour12":u="hour24":u=i.hour12?"hour12":"hour24");let v=NM[u];if(typeof v=="object"&&(v=v[d]),v)return{literal:!1,val:v}}function RM(n){return[`^${n.map(i=>i.regex).reduce((i,o)=>`${i}(${o.source})`,"")}$`,n]}function FM(n,e,i){const o=n.match(e);if(o){const l={};let d=1;for(const u in i)if(ho(i,u)){const v=i[u],b=v.groups?v.groups+1:1;!v.literal&&v.token&&(l[v.token.val[0]]=v.deser(o.slice(d,d+b))),d+=b}return[o,l]}else return[o,{}]}function BM(n){const e=d=>{switch(d){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let i=null,o;return Ze(n.z)||(i=hi.create(n.z)),Ze(n.Z)||(i||(i=new Gt(n.Z)),o=n.Z),Ze(n.q)||(n.M=(n.q-1)*3+1),Ze(n.h)||(n.h<12&&n.a===1?n.h+=12:n.h===12&&n.a===0&&(n.h=0)),n.G===0&&n.y&&(n.y=-n.y),Ze(n.u)||(n.S=Su(n.u)),[Object.keys(n).reduce((d,u)=>{const v=e(u);return v&&(d[v]=n[u]),d},{}),i,o]}let pc=null;function VM(){return pc||(pc=Ee.fromMillis(1555555555555)),pc}function ZM(n,e){if(n.literal)return n;const i=Rt.macroTokenToFormatOpts(n.val),o=V5(i,e);return o==null||o.includes(void 0)?n:o}function F5(n,e){return Array.prototype.concat(...n.map(i=>ZM(i,e)))}function B5(n,e,i){const o=F5(Rt.parseFormat(i),n),l=o.map(u=>DM(u,n)),d=l.find(u=>u.invalidReason);if(d)return{input:e,tokens:o,invalidReason:d.invalidReason};{const[u,v]=RM(l),b=RegExp(u,"i"),[m,M]=FM(e,b,v),[L,T,E]=M?BM(M):[null,null,void 0];if(ho(M,"a")&&ho(M,"H"))throw new ya("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:o,regex:b,rawMatches:m,matches:M,result:L,zone:T,specificOffset:E}}}function WM(n,e,i){const{result:o,zone:l,specificOffset:d,invalidReason:u}=B5(n,e,i);return[o,l,d,u]}function V5(n,e){if(!n)return null;const o=Rt.create(e,n).dtFormatter(VM()),l=o.formatToParts(),d=o.resolvedOptions();return l.map(u=>HM(u,n,d))}const Z5=[0,31,59,90,120,151,181,212,243,273,304,334],W5=[0,31,60,91,121,152,182,213,244,274,305,335];function br(n,e){return new Or("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${n}, which is invalid`)}function U5(n,e,i){const o=new Date(Date.UTC(n,e-1,i));n<100&&n>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const l=o.getUTCDay();return l===0?7:l}function j5(n,e,i){return i+(Va(n)?W5:Z5)[e-1]}function G5(n,e){const i=Va(n)?W5:Z5,o=i.findIndex(d=>d<e),l=e-i[o];return{month:o+1,day:l}}function jc(n){const{year:e,month:i,day:o}=n,l=j5(e,i,o),d=U5(e,i,o);let u=Math.floor((l-d+10)/7),v;return u<1?(v=e-1,u=hl(v)):u>hl(e)?(v=e+1,u=1):v=e,{weekYear:v,weekNumber:u,weekday:d,...Wl(n)}}function zf(n){const{weekYear:e,weekNumber:i,weekday:o}=n,l=U5(e,1,4),d=xa(e);let u=i*7+o-l-3,v;u<1?(v=e-1,u+=xa(v)):u>d?(v=e+1,u-=xa(e)):v=e;const{month:b,day:m}=G5(v,u);return{year:v,month:b,day:m,...Wl(n)}}function gc(n){const{year:e,month:i,day:o}=n,l=j5(e,i,o);return{year:e,ordinal:l,...Wl(n)}}function Lf(n){const{year:e,ordinal:i}=n,{month:o,day:l}=G5(e,i);return{year:e,month:o,day:l,...Wl(n)}}function UM(n){const e=Bl(n.weekYear),i=ui(n.weekNumber,1,hl(n.weekYear)),o=ui(n.weekday,1,7);return e?i?o?!1:br("weekday",n.weekday):br("week",n.week):br("weekYear",n.weekYear)}function jM(n){const e=Bl(n.year),i=ui(n.ordinal,1,xa(n.year));return e?i?!1:br("ordinal",n.ordinal):br("year",n.year)}function q5(n){const e=Bl(n.year),i=ui(n.month,1,12),o=ui(n.day,1,dl(n.year,n.month));return e?i?o?!1:br("day",n.day):br("month",n.month):br("year",n.year)}function K5(n){const{hour:e,minute:i,second:o,millisecond:l}=n,d=ui(e,0,23)||e===24&&i===0&&o===0&&l===0,u=ui(i,0,59),v=ui(o,0,59),b=ui(l,0,999);return d?u?v?b?!1:br("millisecond",l):br("second",o):br("minute",i):br("hour",e)}const vc="Invalid DateTime",Sf=864e13;function Ds(n){return new Or("unsupported zone",`the zone "${n.name}" is not supported`)}function bc(n){return n.weekData===null&&(n.weekData=jc(n.c)),n.weekData}function ln(n,e){const i={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new Ee({...i,...e,old:i})}function Y5(n,e,i){let o=n-e*60*1e3;const l=i.offset(o);if(e===l)return[o,e];o-=(l-e)*60*1e3;const d=i.offset(o);return l===d?[o,l]:[n-Math.min(l,d)*60*1e3,Math.max(l,d)]}function Ns(n,e){n+=e*60*1e3;const i=new Date(n);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Vs(n,e,i){return Y5(Vl(n),e,i)}function Mf(n,e){const i=n.o,o=n.c.year+Math.trunc(e.years),l=n.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,d={...n.c,year:o,month:l,day:Math.min(n.c.day,dl(o,l))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},u=We.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),v=Vl(d);let[b,m]=Y5(v,i,n.zone);return u!==0&&(b+=u,m=n.zone.offset(b)),{ts:b,o:m}}function ga(n,e,i,o,l,d){const{setZone:u,zone:v}=i;if(n&&Object.keys(n).length!==0||e){const b=e||v,m=Ee.fromObject(n,{...i,zone:b,specificOffset:d});return u?m:m.setZone(v)}else return Ee.invalid(new Or("unparsable",`the input "${l}" can't be parsed as ${o}`))}function Hs(n,e,i=!0){return n.isValid?Rt.create(it.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(n,e):null}function mc(n,e){const i=n.c.year>9999||n.c.year<0;let o="";return i&&n.c.year>=0&&(o+="+"),o+=Ct(n.c.year,i?6:4),e?(o+="-",o+=Ct(n.c.month),o+="-",o+=Ct(n.c.day)):(o+=Ct(n.c.month),o+=Ct(n.c.day)),o}function Tf(n,e,i,o,l,d){let u=Ct(n.c.hour);return e?(u+=":",u+=Ct(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=":")):u+=Ct(n.c.minute),(n.c.millisecond!==0||n.c.second!==0||!i)&&(u+=Ct(n.c.second),(n.c.millisecond!==0||!o)&&(u+=".",u+=Ct(n.c.millisecond,3))),l&&(n.isOffsetFixed&&n.offset===0&&!d?u+="Z":n.o<0?(u+="-",u+=Ct(Math.trunc(-n.o/60)),u+=":",u+=Ct(Math.trunc(-n.o%60))):(u+="+",u+=Ct(Math.trunc(n.o/60)),u+=":",u+=Ct(Math.trunc(n.o%60)))),d&&(u+="["+n.zone.ianaName+"]"),u}const X5={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},GM={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},qM={ordinal:1,hour:0,minute:0,second:0,millisecond:0},J5=["year","month","day","hour","minute","second","millisecond"],KM=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],YM=["year","ordinal","hour","minute","second","millisecond"];function kf(n){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!e)throw new Qp(n);return e}function Of(n,e){const i=Pi(e.zone,yt.defaultZone),o=it.fromObject(e),l=yt.now();let d,u;if(Ze(n.year))d=l;else{for(const m of J5)Ze(n[m])&&(n[m]=X5[m]);const v=q5(n)||K5(n);if(v)return Ee.invalid(v);const b=i.offset(l);[d,u]=Vs(n,b,i)}return new Ee({ts:d,zone:i,loc:o,o:u})}function $f(n,e,i){const o=Ze(i.round)?!0:i.round,l=(u,v)=>(u=Mu(u,o||i.calendary?0:2,!0),e.loc.clone(i).relFormatter(i).format(u,v)),d=u=>i.calendary?e.hasSame(n,u)?0:e.startOf(u).diff(n.startOf(u),u).get(u):e.diff(n,u).get(u);if(i.unit)return l(d(i.unit),i.unit);for(const u of i.units){const v=d(u);if(Math.abs(v)>=1)return l(v,u)}return l(n>e?-0:0,i.units[i.units.length-1])}function Ef(n){let e={},i;return n.length>0&&typeof n[n.length-1]=="object"?(e=n[n.length-1],i=Array.from(n).slice(0,n.length-1)):i=Array.from(n),[e,i]}class Ee{constructor(e){const i=e.zone||yt.defaultZone;let o=e.invalid||(Number.isNaN(e.ts)?new Or("invalid input"):null)||(i.isValid?null:Ds(i));this.ts=Ze(e.ts)?yt.now():e.ts;let l=null,d=null;if(!o)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(i))[l,d]=[e.old.c,e.old.o];else{const v=i.offset(this.ts);l=Ns(this.ts,v),o=Number.isNaN(l.year)?new Or("invalid input"):null,l=o?null:l,d=o?null:v}this._zone=i,this.loc=e.loc||it.create(),this.invalid=o,this.weekData=null,this.c=l,this.o=d,this.isLuxonDateTime=!0}static now(){return new Ee({})}static local(){const[e,i]=Ef(arguments),[o,l,d,u,v,b,m]=i;return Of({year:o,month:l,day:d,hour:u,minute:v,second:b,millisecond:m},e)}static utc(){const[e,i]=Ef(arguments),[o,l,d,u,v,b,m]=i;return e.zone=Gt.utcInstance,Of({year:o,month:l,day:d,hour:u,minute:v,second:b,millisecond:m},e)}static fromJSDate(e,i={}){const o=zS(e)?e.valueOf():NaN;if(Number.isNaN(o))return Ee.invalid("invalid input");const l=Pi(i.zone,yt.defaultZone);return l.isValid?new Ee({ts:o,zone:l,loc:it.fromObject(i)}):Ee.invalid(Ds(l))}static fromMillis(e,i={}){if(gn(e))return e<-Sf||e>Sf?Ee.invalid("Timestamp out of range"):new Ee({ts:e,zone:Pi(i.zone,yt.defaultZone),loc:it.fromObject(i)});throw new vr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,i={}){if(gn(e))return new Ee({ts:e*1e3,zone:Pi(i.zone,yt.defaultZone),loc:it.fromObject(i)});throw new vr("fromSeconds requires a numerical input")}static fromObject(e,i={}){e=e||{};const o=Pi(i.zone,yt.defaultZone);if(!o.isValid)return Ee.invalid(Ds(o));const l=yt.now(),d=Ze(i.specificOffset)?o.offset(l):i.specificOffset,u=fl(e,kf),v=!Ze(u.ordinal),b=!Ze(u.year),m=!Ze(u.month)||!Ze(u.day),M=b||m,L=u.weekYear||u.weekNumber,T=it.fromObject(i);if((M||v)&&L)throw new ya("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(m&&v)throw new ya("Can't mix ordinal dates with month/day");const E=L||u.weekday&&!M;let H,Y,oe=Ns(l,d);E?(H=KM,Y=GM,oe=jc(oe)):v?(H=YM,Y=qM,oe=gc(oe)):(H=J5,Y=X5);let _=!1;for(const me of H){const Me=u[me];Ze(Me)?_?u[me]=Y[me]:u[me]=oe[me]:_=!0}const D=E?UM(u):v?jM(u):q5(u),I=D||K5(u);if(I)return Ee.invalid(I);const B=E?zf(u):v?Lf(u):u,[K,ue]=Vs(B,d,o),ce=new Ee({ts:K,zone:o,o:ue,loc:T});return u.weekday&&M&&e.weekday!==ce.weekday?Ee.invalid("mismatched weekday",`you can't specify both a weekday of ${u.weekday} and a date of ${ce.toISO()}`):ce}static fromISO(e,i={}){const[o,l]=hM(e);return ga(o,l,i,"ISO 8601",e)}static fromRFC2822(e,i={}){const[o,l]=fM(e);return ga(o,l,i,"RFC 2822",e)}static fromHTTP(e,i={}){const[o,l]=pM(e);return ga(o,l,i,"HTTP",i)}static fromFormat(e,i,o={}){if(Ze(e)||Ze(i))throw new vr("fromFormat requires an input string and a format");const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0}),[v,b,m,M]=WM(u,e,i);return M?Ee.invalid(M):ga(v,b,o,`format ${i}`,e,m)}static fromString(e,i,o={}){return Ee.fromFormat(e,i,o)}static fromSQL(e,i={}){const[o,l]=wM(e);return ga(o,l,i,"SQL",e)}static invalid(e,i=null){if(!e)throw new vr("need to specify a reason the DateTime is invalid");const o=e instanceof Or?e:new Or(e,i);if(yt.throwOnInvalid)throw new eS(o);return new Ee({invalid:o})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,i={}){const o=V5(e,it.fromObject(i));return o?o.map(l=>l?l.val:null).join(""):null}static expandFormat(e,i={}){return F5(Rt.parseFormat(e),it.fromObject(i)).map(l=>l.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?bc(this).weekYear:NaN}get weekNumber(){return this.isValid?bc(this).weekNumber:NaN}get weekday(){return this.isValid?bc(this).weekday:NaN}get ordinal(){return this.isValid?gc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Is.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Is.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Is.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Is.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,i=6e4,o=Vl(this.c),l=this.zone.offset(o-e),d=this.zone.offset(o+e),u=this.zone.offset(o-l*i),v=this.zone.offset(o-d*i);if(u===v)return[this];const b=o-u*i,m=o-v*i,M=Ns(b,u),L=Ns(m,v);return M.hour===L.hour&&M.minute===L.minute&&M.second===L.second&&M.millisecond===L.millisecond?[ln(this,{ts:b}),ln(this,{ts:m})]:[this]}get isInLeapYear(){return Va(this.year)}get daysInMonth(){return dl(this.year,this.month)}get daysInYear(){return this.isValid?xa(this.year):NaN}get weeksInWeekYear(){return this.isValid?hl(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:i,numberingSystem:o,calendar:l}=Rt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:i,numberingSystem:o,outputCalendar:l}}toUTC(e=0,i={}){return this.setZone(Gt.instance(e),i)}toLocal(){return this.setZone(yt.defaultZone)}setZone(e,{keepLocalTime:i=!1,keepCalendarTime:o=!1}={}){if(e=Pi(e,yt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let l=this.ts;if(i||o){const d=e.offset(this.ts),u=this.toObject();[l]=Vs(u,d,e)}return ln(this,{ts:l,zone:e})}else return Ee.invalid(Ds(e))}reconfigure({locale:e,numberingSystem:i,outputCalendar:o}={}){const l=this.loc.clone({locale:e,numberingSystem:i,outputCalendar:o});return ln(this,{loc:l})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const i=fl(e,kf),o=!Ze(i.weekYear)||!Ze(i.weekNumber)||!Ze(i.weekday),l=!Ze(i.ordinal),d=!Ze(i.year),u=!Ze(i.month)||!Ze(i.day),v=d||u,b=i.weekYear||i.weekNumber;if((v||l)&&b)throw new ya("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&l)throw new ya("Can't mix ordinal dates with month/day");let m;o?m=zf({...jc(this.c),...i}):Ze(i.ordinal)?(m={...this.toObject(),...i},Ze(i.day)&&(m.day=Math.min(dl(m.year,m.month),m.day))):m=Lf({...gc(this.c),...i});const[M,L]=Vs(m,this.o,this.zone);return ln(this,{ts:M,o:L})}plus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e);return ln(this,Mf(this,i))}minus(e){if(!this.isValid)return this;const i=We.fromDurationLike(e).negate();return ln(this,Mf(this,i))}startOf(e){if(!this.isValid)return this;const i={},o=We.normalizeUnit(e);switch(o){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(o==="weeks"&&(i.weekday=1),o==="quarters"){const l=Math.ceil(this.month/3);i.month=(l-1)*3+1}return this.set(i)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,i={}){return this.isValid?Rt.create(this.loc.redefaultToEN(i)).formatDateTimeFromString(this,e):vc}toLocaleString(e=ul,i={}){return this.isValid?Rt.create(this.loc.clone(i),e).formatDateTime(this):vc}toLocaleParts(e={}){return this.isValid?Rt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:i=!1,suppressMilliseconds:o=!1,includeOffset:l=!0,extendedZone:d=!1}={}){if(!this.isValid)return null;const u=e==="extended";let v=mc(this,u);return v+="T",v+=Tf(this,u,i,o,l,d),v}toISODate({format:e="extended"}={}){return this.isValid?mc(this,e==="extended"):null}toISOWeekDate(){return Hs(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:i=!1,includeOffset:o=!0,includePrefix:l=!1,extendedZone:d=!1,format:u="extended"}={}){return this.isValid?(l?"T":"")+Tf(this,u==="extended",i,e,o,d):null}toRFC2822(){return Hs(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Hs(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?mc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:i=!1,includeOffsetSpace:o=!0}={}){let l="HH:mm:ss.SSS";return(i||e)&&(o&&(l+=" "),i?l+="z":e&&(l+="ZZ")),Hs(this,l,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():vc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const i={...this.c};return e.includeConfig&&(i.outputCalendar=this.outputCalendar,i.numberingSystem=this.loc.numberingSystem,i.locale=this.loc.locale),i}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,i="milliseconds",o={}){if(!this.isValid||!e.isValid)return We.invalid("created by diffing an invalid DateTime");const l={locale:this.locale,numberingSystem:this.numberingSystem,...o},d=LS(i).map(We.normalizeUnit),u=e.valueOf()>this.valueOf(),v=u?this:e,b=u?e:this,m=OM(v,b,d,l);return u?m.negate():m}diffNow(e="milliseconds",i={}){return this.diff(Ee.now(),e,i)}until(e){return this.isValid?dt.fromDateTimes(this,e):this}hasSame(e,i){if(!this.isValid)return!1;const o=e.valueOf(),l=this.setZone(e.zone,{keepLocalTime:!0});return l.startOf(i)<=o&&o<=l.endOf(i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const i=e.base||Ee.fromObject({},{zone:this.zone}),o=e.padding?this<i?-e.padding:e.padding:0;let l=["years","months","days","hours","minutes","seconds"],d=e.unit;return Array.isArray(e.unit)&&(l=e.unit,d=void 0),$f(i,this.plus(o),{...e,numeric:"always",units:l,unit:d})}toRelativeCalendar(e={}){return this.isValid?$f(e.base||Ee.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(Ee.isDateTime))throw new vr("min requires all arguments be DateTimes");return gf(e,i=>i.valueOf(),Math.min)}static max(...e){if(!e.every(Ee.isDateTime))throw new vr("max requires all arguments be DateTimes");return gf(e,i=>i.valueOf(),Math.max)}static fromFormatExplain(e,i,o={}){const{locale:l=null,numberingSystem:d=null}=o,u=it.fromOpts({locale:l,numberingSystem:d,defaultToEN:!0});return B5(u,e,i)}static fromStringExplain(e,i,o={}){return Ee.fromFormatExplain(e,i,o)}static get DATE_SHORT(){return ul}static get DATE_MED(){return e5}static get DATE_MED_WITH_WEEKDAY(){return iS}static get DATE_FULL(){return t5}static get DATE_HUGE(){return r5}static get TIME_SIMPLE(){return i5}static get TIME_WITH_SECONDS(){return n5}static get TIME_WITH_SHORT_OFFSET(){return o5}static get TIME_WITH_LONG_OFFSET(){return a5}static get TIME_24_SIMPLE(){return s5}static get TIME_24_WITH_SECONDS(){return l5}static get TIME_24_WITH_SHORT_OFFSET(){return c5}static get TIME_24_WITH_LONG_OFFSET(){return u5}static get DATETIME_SHORT(){return d5}static get DATETIME_SHORT_WITH_SECONDS(){return h5}static get DATETIME_MED(){return f5}static get DATETIME_MED_WITH_SECONDS(){return p5}static get DATETIME_MED_WITH_WEEKDAY(){return nS}static get DATETIME_FULL(){return g5}static get DATETIME_FULL_WITH_SECONDS(){return v5}static get DATETIME_HUGE(){return b5}static get DATETIME_HUGE_WITH_SECONDS(){return m5}}function va(n){if(Ee.isDateTime(n))return n;if(n&&n.valueOf&&gn(n.valueOf()))return Ee.fromJSDate(n);if(n&&typeof n=="object")return Ee.fromObject(n);throw new vr(`Unknown datetime argument: ${n}, of type ${typeof n}`)}const XM={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},JM=n=>Ee.local().setZone(n).isValid,Gc=n=>n.hour<12,_f=n=>!Gc(n),Q5=(n,e)=>Gc(n)&&Gc(e)||_f(n)&&_f(e),yc=(n,e)=>{var l;const i=e&&JM(e)?e:"utc",o=(l=XM[i.split("/")[0]])!=null?l:"en-us";return n.setZone(i).setLocale(o)},QM=(n,e,i)=>{let o=Ee.fromISO(n),l=Ee.fromISO(e);i&&(o=o.setZone(i),l=l.setZone(i));const d=o.hour===0&&o.minute===0&&o.second===0,u=24*60*60*1e3,v=l.diff(o,"milliseconds").milliseconds===u;return d&&v},pl=n=>eT(e6(n)),eT=n=>n.replace(/Sept/,"Sep"),e6=n=>n.replace(/(AM|PM)/,e=>e.toLowerCase()),gl=n=>n.minute===0?"h":"h:mm",vl=(n,e)=>n.year!==e.year?" yyyy":"";var tT=Object.defineProperty,rT=Object.getOwnPropertyDescriptor,Vi=(n,e,i,o)=>{for(var l=o>1?void 0:o?rT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&tT(e,i,l),l};const t6=le("input-time"),r6="h:mma",i6=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,n6=/^(1[3-9]|2[0-3]).*/,o6=/^(\d\d?)(am?|pm?)/,iT=["UTC","AEST"],a6=(n,e)=>({label:`${n}${e?` (${e})`:""}`,value:n}),Af=(n,e)=>{const o=Math.ceil(1440/n),l=Ee.local().startOf("day");return Array(o).fill(null).map((d,u)=>{const v=l.plus({minutes:n*u}),b=e6(v.toFormat(r6));return a6(b,e)})},nT=(n,e)=>{const i=n.trim(),o=n.match(i6);if(!i||!o)return[];const[,l,d,u]=o,v=parseInt(l,10),b=v>12?`${v-12}`:`${v}`,m=`${d}${u||0}`,M=`${b}:${m}`;return["am","pm"].map(L=>a6(`${M}${L}`,e))},oT=(n,{value:e})=>{const i=n.match(n6);if(!i||!e)return!1;const[,o]=i,l=`${parseInt(o,10)-12}`,d=n.substring(o.length).replace(":",""),u=`${l}:${d}`;return e.startsWith(u)&&e.endsWith("pm")},aT=(n,{value:e})=>{const i=n.match(o6);if(!i)return!1;const[,o,l]=i;return!!(e!=null&&e.replace(":00","").startsWith(`${o}${l}`))},sT=(...n)=>aT(...n)||oT(...n);exports.InputTime=class extends exports.InputSelect{constructor(){super(...arguments),this.canSearch=!0,this.increment=15,this.isFreeform=!1,this.placeholder="Select time",this.trailingIcon="time",this.freeformOptions=[]}connectedCallback(){super.connectedCallback(),this.options=Af(this.increment,this.suffix)}updated(e){super.updated(e),e.has("increment")&&(this.options=Af(this.increment,this.suffix))}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var e;this.valueLabel=this.value&&this.value!==this.placeholder?(e=this.getItems().find(({value:i})=>i===this.value))==null?void 0:e.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(e){return this.query?sT(this.query,e):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=nT(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return N`
3522
3522
  ${this.handleNoResults()} ${this.renderOptionsData()}
3523
3523
  ${this.renderFreeformOptions()}
3524
- `}};Vi([E({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Vi([E({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Vi([E({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Vi([E({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Vi([E({type:String})],exports.InputTime.prototype,"placeholder",2);Vi([E({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Vi([Ce()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Vi([Z(e6)],exports.InputTime);var nT=Object.defineProperty,oT=Object.getOwnPropertyDescriptor,yi=(n,e,i,o)=>{for(var l=o>1?void 0:o?oT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&nT(e,i,l),l};const a6=ce("toggle-switch"),va={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=va.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===va.Checked?this.checked=!1:this.checked=!0,this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked}})))}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}render(){this.toggleState=this.checked?va.Checked:va.Empty;const e=N`<span>${this.label}</span>`,i=N`<div class="switch">
3524
+ `}};Vi([$({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);Vi([$({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);Vi([$({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);Vi([$({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);Vi([$({type:String})],exports.InputTime.prototype,"placeholder",2);Vi([$({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);Vi([we()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=Vi([Z(t6)],exports.InputTime);var lT=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,yi=(n,e,i,o)=>{for(var l=o>1?void 0:o?cT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&lT(e,i,l),l};const s6=le("toggle-switch"),ba={Checked:"Checked",Empty:"Empty"};exports.ToggleSwitch=class extends tr{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.leftLabel=!1,this.value="on",this.switchOffLabel="",this.switchOnLabel="",this.toggleState=ba.Empty,this.label=""}onInput(){this.disabled||(this.toggleState===ba.Checked?this.checked=!1:this.checked=!0,this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{checked:this.checked}})))}handleKeyPress(e){e.preventDefault(),e.key===" "&&this.onInput()}render(){this.toggleState=this.checked?ba.Checked:ba.Empty;const e=N`<span>${this.label}</span>`,i=N`<div class="switch">
3525
3525
  <div class="toggle"></div>
3526
3526
  <div class="switch-on">${this.switchOnLabel}</div>
3527
3527
  <div class="switch-off">${this.switchOffLabel}</div>
@@ -3533,7 +3533,7 @@ ${this.value}</textarea
3533
3533
  @change=${this.onInput}
3534
3534
  .value=${this.value}
3535
3535
  type="checkbox"
3536
- ?checked=${this.toggleState===va.Checked}
3536
+ ?checked=${this.toggleState===ba.Checked}
3537
3537
  aria-invalid=${He(this.invalid?this.invalid:void 0)}
3538
3538
  id=${this.id}
3539
3539
  ?disabled=${this.disabled}
@@ -3541,7 +3541,7 @@ ${this.value}</textarea
3541
3541
  <label for=${this.label} class="label">
3542
3542
  ${this.leftLabel?N`${e}${o}${i}`:N`${o}${i}${e}`}
3543
3543
  </label>
3544
- `}};exports.ToggleSwitch.styles=[J`
3544
+ `}};exports.ToggleSwitch.styles=[X`
3545
3545
  :host {
3546
3546
  --brz-checkbox-size: var(--brz-spacing-4);
3547
3547
  --input-invalid-color: var(--brz-color-error);
@@ -3682,7 +3682,7 @@ ${this.value}</textarea
3682
3682
  background: var(--brz-color-neutral-200);
3683
3683
  }
3684
3684
  }
3685
- `];yi([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);yi([E({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);yi([E({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);yi([E()],exports.ToggleSwitch.prototype,"value",2);yi([E({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);yi([E({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);yi([Ce()],exports.ToggleSwitch.prototype,"toggleState",2);yi([E({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=yi([Z(a6)],exports.ToggleSwitch);var aT=Object.defineProperty,sT=Object.getOwnPropertyDescriptor,Eu=(n,e,i,o)=>{for(var l=o>1?void 0:o?sT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&aT(e,i,l),l};const s6=ce("heading");exports.Heading=class extends we{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var i;const e=`size-${(i=this.size)!=null?i:"base"}`;switch(this.getLevel()){case 1:return N`<h1 class=${e}><slot></slot></h1>`;case 2:return N`<h2 class=${e}><slot></slot></h2>`;case 3:return N`<h3 class=${e}><slot></slot></h3>`;case 4:return N`<h4 class=${e}><slot></slot></h4>`;case 5:return N`<h5 class=${e}><slot></slot></h5>`;case 6:return N`<h6 class=${e}><slot></slot></h6>`}}};exports.Heading.styles=J`
3685
+ `];yi([$({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"checked",2);yi([$({type:Boolean,reflect:!0})],exports.ToggleSwitch.prototype,"disabled",2);yi([$({type:Boolean,reflect:!0,attribute:"left-label"})],exports.ToggleSwitch.prototype,"leftLabel",2);yi([$()],exports.ToggleSwitch.prototype,"value",2);yi([$({type:String})],exports.ToggleSwitch.prototype,"switchOffLabel",2);yi([$({type:String})],exports.ToggleSwitch.prototype,"switchOnLabel",2);yi([we()],exports.ToggleSwitch.prototype,"toggleState",2);yi([$({type:String,reflect:!0})],exports.ToggleSwitch.prototype,"label",2);exports.ToggleSwitch=yi([Z(s6)],exports.ToggleSwitch);var uT=Object.defineProperty,dT=Object.getOwnPropertyDescriptor,Eu=(n,e,i,o)=>{for(var l=o>1?void 0:o?dT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uT(e,i,l),l};const l6=le("heading");exports.Heading=class extends Ce{constructor(){super(...arguments),this.size="base"}getLevel(){if(this.level)return this.level;switch(this.size){case"3xl":return 1;case"2xl":case"xl":case"lg":return 2;case"sm":return 4;default:return 3}}render(){var i;const e=`size-${(i=this.size)!=null?i:"base"}`;switch(this.getLevel()){case 1:return N`<h1 class=${e}><slot></slot></h1>`;case 2:return N`<h2 class=${e}><slot></slot></h2>`;case 3:return N`<h3 class=${e}><slot></slot></h3>`;case 4:return N`<h4 class=${e}><slot></slot></h4>`;case 5:return N`<h5 class=${e}><slot></slot></h5>`;case 6:return N`<h6 class=${e}><slot></slot></h6>`}}};exports.Heading.styles=X`
3686
3686
  h1,
3687
3687
  h2,
3688
3688
  h3,
@@ -3727,7 +3727,7 @@ ${this.value}</textarea
3727
3727
  :host {
3728
3728
  display: block;
3729
3729
  }
3730
- `;Eu([E({type:String})],exports.Heading.prototype,"size",2);Eu([E({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=Eu([Z(s6)],exports.Heading);const l6=ce("inline-edit-field"),_u=ce("inline-edit-group"),c6=ce("inline-edit-controls"),u6=["edit","saving","error"],lT=["read","saved",...u6];class d6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...e})}}class h6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...e})}}class f6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...e})}}class p6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...e})}}class g6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...e})}}const cT=J`
3730
+ `;Eu([$({type:String})],exports.Heading.prototype,"size",2);Eu([$({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=Eu([Z(l6)],exports.Heading);const c6=le("inline-edit-field"),_u=le("inline-edit-group"),u6=le("inline-edit-controls"),d6=["edit","saving","error"],hT=["read","saved",...d6];class h6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...e})}}class f6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...e})}}class p6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...e})}}class g6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...e})}}class v6 extends CustomEvent{constructor(e={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...e})}}const fT=X`
3731
3731
  :host {
3732
3732
  display: block;
3733
3733
  }
@@ -3821,7 +3821,7 @@ ${this.value}</textarea
3821
3821
 
3822
3822
  margin-top: var(--brz-inline-edit-controls-spacing);
3823
3823
  }
3824
- `,uT=J`
3824
+ `,pT=X`
3825
3825
  .inline-edit-group {
3826
3826
  display: inline-flex;
3827
3827
  flex-direction: column;
@@ -3832,7 +3832,7 @@ ${this.value}</textarea
3832
3832
  brz-inline-edit-controls {
3833
3833
  margin-top: var(--brz-inline-edit-controls-spacing);
3834
3834
  }
3835
- `,dT=J`
3835
+ `,gT=X`
3836
3836
  :host {
3837
3837
  --brz-inline-edit-controls-spacing: var(--brz-spacing-4);
3838
3838
 
@@ -3840,7 +3840,7 @@ ${this.value}</textarea
3840
3840
  flex-direction: column;
3841
3841
  row-gap: var(--brz-inline-edit-controls-spacing);
3842
3842
  }
3843
- `;var hT=Object.defineProperty,fT=Object.getOwnPropertyDescriptor,v6=(n,e,i,o)=>{for(var l=o>1?void 0:o?fT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hT(e,i,l),l};exports.InlineEditControls=class extends we{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new d6)}handleSaveClick(){this.dispatchEvent(new h6)}render(){return N`
3843
+ `;var vT=Object.defineProperty,bT=Object.getOwnPropertyDescriptor,b6=(n,e,i,o)=>{for(var l=o>1?void 0:o?bT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vT(e,i,l),l};exports.InlineEditControls=class extends Ce{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new h6)}handleSaveClick(){this.dispatchEvent(new f6)}render(){return N`
3844
3844
  <brz-split-row>
3845
3845
  <brz-button-group slot="right">
3846
3846
  ${["edit","error"].includes(this.mode)?N`
@@ -3865,7 +3865,7 @@ ${this.value}</textarea
3865
3865
  </brz-split-row>
3866
3866
 
3867
3867
  ${this.mode==="error"?N` <slot name="error"></slot> `:null}
3868
- `}};exports.InlineEditControls.styles=[dT];v6([E()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=v6([Z(c6)],exports.InlineEditControls);var pT=Object.defineProperty,gT=Object.getOwnPropertyDescriptor,Iu=(n,e,i,o)=>{for(var l=o>1?void 0:o?gT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pT(e,i,l),l};class Ua extends we{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(e){switch(e){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(e){throw this.setMode("error"),e}}handleCancelClick(){this.setMode("read")}}Iu([E({type:Boolean,reflect:!0})],Ua.prototype,"locked",2);Iu([E({type:Function,attribute:!1})],Ua.prototype,"save",2);Iu([Ce()],Ua.prototype,"mode",2);var vT=Object.defineProperty,bT=Object.getOwnPropertyDescriptor,Au=(n,e,i,o)=>{for(var l=o>1?void 0:o?bT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vT(e,i,l),l};exports.InlineEditGroup=class extends Ua{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var e;await((e=this.save)==null?void 0:e.call(this))}registerField(e){this.fields.push(e)}updated(e){super.updated(e),this.locked&&this.fields.forEach(i=>i.locked=!0),this.controller&&this.fields.forEach(i=>{i.controlled=!0,i.setMode(this.mode)}),e.has("mode")&&this.dispatchEvent(new g6({detail:{currentMode:this.mode,previousMode:e.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return N`
3868
+ `}};exports.InlineEditControls.styles=[gT];b6([$()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=b6([Z(u6)],exports.InlineEditControls);var mT=Object.defineProperty,yT=Object.getOwnPropertyDescriptor,Au=(n,e,i,o)=>{for(var l=o>1?void 0:o?yT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mT(e,i,l),l};class Ua extends Ce{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(e){switch(e){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(e){throw this.setMode("error"),e}}handleCancelClick(){this.setMode("read")}}Au([$({type:Boolean,reflect:!0})],Ua.prototype,"locked",2);Au([$({type:Function,attribute:!1})],Ua.prototype,"save",2);Au([we()],Ua.prototype,"mode",2);var CT=Object.defineProperty,wT=Object.getOwnPropertyDescriptor,Iu=(n,e,i,o)=>{for(var l=o>1?void 0:o?wT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&CT(e,i,l),l};exports.InlineEditGroup=class extends Ua{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var e;await((e=this.save)==null?void 0:e.call(this))}registerField(e){this.fields.push(e)}updated(e){super.updated(e),this.locked&&this.fields.forEach(i=>i.locked=!0),this.controller&&this.fields.forEach(i=>{i.controlled=!0,i.setMode(this.mode)}),e.has("mode")&&this.dispatchEvent(new v6({detail:{currentMode:this.mode,previousMode:e.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return N`
3869
3869
  <slot
3870
3870
  @brz-inline-edit-field-broadcast=${this.handleInlineEditFieldViewModeClick}
3871
3871
  >
@@ -3885,7 +3885,7 @@ ${this.value}</textarea
3885
3885
  </slot>
3886
3886
  `:null}
3887
3887
  </dl>
3888
- `}};exports.InlineEditGroup.styles=[uT];Au([E({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);Au([Ce()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=Au([Z(_u)],exports.InlineEditGroup);var mT=Object.defineProperty,yT=Object.getOwnPropertyDescriptor,yr=(n,e,i,o)=>{for(var l=o>1?void 0:o?yT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mT(e,i,l),l};const CT=n=>n instanceof bt&&!!n.options.length;exports.InlineEditField=class extends Ua{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.placeholder="None",this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var e;super.connectedCallback(),(e=this.group)==null||e.registerField(this)}updated(e){super.updated(e),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",e.has("mode")&&this.dispatchEvent(new p6({detail:{element:this,currentMode:this.mode,previousMode:e.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,CT(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof bt||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const e=this.slottedInputLabel;if(!e){this.label=this.generateFieldLabelSlot();return}this.label=e}setOptionsFromChildren(e){const i=[...e.children];this.options=i.filter(o=>!!o.value).map(o=>{var l;return{value:o.value,label:((l=o.textContent)==null?void 0:l.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const e=[...this.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the default slot.");if(!(e instanceof exports.LabeledInput)&&!(e instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return e}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const e=[...this.fieldElement.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the RecordField default slot.");if(!(e instanceof tr))throw new Error("Expected a Breeze Input in the RecordField default slot.");return e}return this.fieldElement}generateFieldLabelSlot(){var e,i;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const o=document.createElement("brz-record-field-label");o.slot="label";const l=document.createElement("span");return l.textContent=((i=(e=this.inputElement.firstChild)==null?void 0:e.textContent)==null?void 0:i.trim())||"",o.appendChild(l),this.fieldElement.appendChild(o),o}}get friendlyValue(){var e;if(this.options.length){if(Array.isArray(this.value)){const o=this.value.map(d=>{var u;return(u=this.options.find(({value:v})=>v===d))==null?void 0:u.label}).filter(d=>!!d);return(o.length===this.value.length?o:this.value).map(d=>this.getSelectValueTemplate(d))}const i=(e=this.options.find(({value:o})=>o===this.value))==null?void 0:e.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(i||this.value):i||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value==null||this.value===""?this.placeholder:this.value}getSelectValueTemplate(e){return N`
3888
+ `}};exports.InlineEditGroup.styles=[pT];Iu([$({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);Iu([we()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=Iu([Z(_u)],exports.InlineEditGroup);var xT=Object.defineProperty,zT=Object.getOwnPropertyDescriptor,yr=(n,e,i,o)=>{for(var l=o>1?void 0:o?zT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xT(e,i,l),l};const LT=n=>n instanceof bt&&!!n.options.length;exports.InlineEditField=class extends Ua{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.placeholder="None",this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var e;super.connectedCallback(),(e=this.group)==null||e.registerField(this)}updated(e){super.updated(e),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",e.has("mode")&&this.dispatchEvent(new g6({detail:{element:this,currentMode:this.mode,previousMode:e.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,LT(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof bt||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const e=this.slottedInputLabel;if(!e){this.label=this.generateFieldLabelSlot();return}this.label=e}setOptionsFromChildren(e){const i=[...e.children];this.options=i.filter(o=>!!o.value).map(o=>{var l;return{value:o.value,label:((l=o.textContent)==null?void 0:l.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const e=[...this.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the default slot.");if(!(e instanceof exports.LabeledInput)&&!(e instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return e}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const e=[...this.fieldElement.children].find(i=>i.slot==="");if(!e)throw new Error("No element has been assigned to the RecordField default slot.");if(!(e instanceof tr))throw new Error("Expected a Breeze Input in the RecordField default slot.");return e}return this.fieldElement}generateFieldLabelSlot(){var e,i;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const o=document.createElement("brz-record-field-label");o.slot="label";const l=document.createElement("span");return l.textContent=((i=(e=this.inputElement.firstChild)==null?void 0:e.textContent)==null?void 0:i.trim())||"",o.appendChild(l),this.fieldElement.appendChild(o),o}}get friendlyValue(){var e;if(this.options.length){if(Array.isArray(this.value)){const o=this.value.map(d=>{var u;return(u=this.options.find(({value:v})=>v===d))==null?void 0:u.label}).filter(d=>!!d);return(o.length===this.value.length?o:this.value).map(d=>this.getSelectValueTemplate(d))}const i=(e=this.options.find(({value:o})=>o===this.value))==null?void 0:e.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(i||this.value):i||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value==null||this.value===""?this.placeholder:this.value}getSelectValueTemplate(e){return N`
3889
3889
  <brz-lozenge theme="subtle" color="sapphire" size="small">
3890
3890
  ${e}
3891
3891
  </brz-lozenge>
@@ -3946,7 +3946,7 @@ ${this.value}</textarea
3946
3946
  </slot>
3947
3947
  `}
3948
3948
  </div>
3949
- `}get group(){return this.closest(_u)}emitBroadcastEvent(){this.dispatchEvent(new f6({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[cT];yr([E({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);yr([E({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);yr([E({type:String,attribute:"placeholder",reflect:!0})],exports.InlineEditField.prototype,"placeholder",2);yr([Ce()],exports.InlineEditField.prototype,"labelPosition",2);yr([Ce()],exports.InlineEditField.prototype,"size",2);yr([Ce()],exports.InlineEditField.prototype,"value",2);yr([Ce()],exports.InlineEditField.prototype,"options",2);yr([Ce()],exports.InlineEditField.prototype,"label",2);yr([Ce()],exports.InlineEditField.prototype,"hasLabel",2);yr([Ce()],exports.InlineEditField.prototype,"isValueOverflowing",2);yr([Ir(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=yr([Z(l6)],exports.InlineEditField);var wT=Object.defineProperty,xT=Object.getOwnPropertyDescriptor,ja=(n,e,i,o)=>{for(var l=o>1?void 0:o?xT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&wT(e,i,l),l};const b6=ce("side-navigation-item"),zT=J`
3949
+ `}get group(){return this.closest(_u)}emitBroadcastEvent(){this.dispatchEvent(new p6({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[fT];yr([$({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);yr([$({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);yr([$({type:String,attribute:"placeholder",reflect:!0})],exports.InlineEditField.prototype,"placeholder",2);yr([we()],exports.InlineEditField.prototype,"labelPosition",2);yr([we()],exports.InlineEditField.prototype,"size",2);yr([we()],exports.InlineEditField.prototype,"value",2);yr([we()],exports.InlineEditField.prototype,"options",2);yr([we()],exports.InlineEditField.prototype,"label",2);yr([we()],exports.InlineEditField.prototype,"hasLabel",2);yr([we()],exports.InlineEditField.prototype,"isValueOverflowing",2);yr([Ar(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=yr([Z(c6)],exports.InlineEditField);var ST=Object.defineProperty,MT=Object.getOwnPropertyDescriptor,ja=(n,e,i,o)=>{for(var l=o>1?void 0:o?MT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ST(e,i,l),l};const m6=le("side-navigation-item"),TT=X`
3950
3950
  :host li {
3951
3951
  list-style: none;
3952
3952
  padding: var(--brz-spacing-2) 0;
@@ -3972,7 +3972,7 @@ ${this.value}</textarea
3972
3972
  color: var(--brz-color-primary-600);
3973
3973
  border-color: var(--brz-color-primary-600);
3974
3974
  }
3975
- `;exports.SideNavigationItem=class extends we{render(){return N`
3975
+ `;exports.SideNavigationItem=class extends Ce{render(){return N`
3976
3976
  <li>
3977
3977
  <a
3978
3978
  href="${He(this.href)}"
@@ -3982,7 +3982,7 @@ ${this.value}</textarea
3982
3982
  <slot></slot>
3983
3983
  </a>
3984
3984
  </li>
3985
- `}};exports.SideNavigationItem.styles=[zT];ja([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);ja([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);ja([E({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);ja([E({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=ja([Z(b6)],exports.SideNavigationItem);var LT=Object.defineProperty,ST=Object.getOwnPropertyDescriptor,MT=(n,e,i,o)=>{for(var l=o>1?void 0:o?ST(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&LT(e,i,l),l};const m6=ce("side-navigation"),TT=J`
3985
+ `}};exports.SideNavigationItem.styles=[TT];ja([$({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);ja([$({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);ja([$({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);ja([$({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=ja([Z(m6)],exports.SideNavigationItem);var kT=Object.defineProperty,OT=Object.getOwnPropertyDescriptor,$T=(n,e,i,o)=>{for(var l=o>1?void 0:o?OT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kT(e,i,l),l};const y6=le("side-navigation"),ET=X`
3986
3986
  :host {
3987
3987
  display: block;
3988
3988
  height: 100%;
@@ -3994,24 +3994,24 @@ ${this.value}</textarea
3994
3994
  margin: 0;
3995
3995
  padding: var(--brz-spacing-2) var(--brz-spacing-6);
3996
3996
  }
3997
- `;exports.SideNavigation=class extends we{render(){return N`<ul>
3997
+ `;exports.SideNavigation=class extends Ce{render(){return N`<ul>
3998
3998
  <slot></slot>
3999
- </ul>`}};exports.SideNavigation.styles=[TT];exports.SideNavigation=MT([Z(m6)],exports.SideNavigation);var kT=Object.defineProperty,OT=Object.getOwnPropertyDescriptor,y6=(n,e,i,o)=>{for(var l=o>1?void 0:o?OT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kT(e,i,l),l};const C6=ce("record-row"),w6=ce("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,J`
3999
+ </ul>`}};exports.SideNavigation.styles=[ET];exports.SideNavigation=$T([Z(y6)],exports.SideNavigation);var _T=Object.defineProperty,AT=Object.getOwnPropertyDescriptor,C6=(n,e,i,o)=>{for(var l=o>1?void 0:o?AT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&_T(e,i,l),l};const w6=le("record-row"),x6=le("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,X`
4000
4000
  :host(:nth-of-type(n + 2)) {
4001
4001
  margin-top: var(--brz-spacing-4);
4002
4002
  }
4003
- `];exports.RecordRow=y6([Z(C6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=y6([Z(w6)],exports.RecordRowLabel);var $T=Object.defineProperty,ET=Object.getOwnPropertyDescriptor,Pu=(n,e,i,o)=>{for(var l=o>1?void 0:o?ET(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&$T(e,i,l),l};const x6=ce("tab-panel");exports.TabPanel=class extends we{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return N`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=J`
4003
+ `];exports.RecordRow=C6([Z(w6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=C6([Z(x6)],exports.RecordRowLabel);var IT=Object.defineProperty,PT=Object.getOwnPropertyDescriptor,Pu=(n,e,i,o)=>{for(var l=o>1?void 0:o?PT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&IT(e,i,l),l};const z6=le("tab-panel");exports.TabPanel=class extends Ce{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return N`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=X`
4004
4004
  :host(:not([shown])) #panel {
4005
4005
  display: none;
4006
4006
  }
4007
- `;Pu([E({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);Pu([E({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=Pu([Z(x6)],exports.TabPanel);class Ul extends CustomEvent{constructor(e){super("brz-tab-selected",{bubbles:!0,detail:{name:e}})}}class z6 extends CustomEvent{constructor(e){super("brz-tab-deselected",{bubbles:!0,detail:{name:e}})}}var _T=Object.defineProperty,IT=Object.getOwnPropertyDescriptor,jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?IT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&_T(e,i,l),l};const L6=ce("tab");exports.Tab=class extends we{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(e){const i=e.get("selected");i===!1&&this.selected===!0?this.dispatchEvent(new Ul(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new z6(this.name)),super.updated(e)}render(){return this.link?N`<a href=${this.link} id="tab"><slot></slot></a>`:N`<div
4007
+ `;Pu([$({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);Pu([$({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=Pu([Z(z6)],exports.TabPanel);class Ul extends CustomEvent{constructor(e){super("brz-tab-selected",{bubbles:!0,detail:{name:e}})}}class L6 extends CustomEvent{constructor(e){super("brz-tab-deselected",{bubbles:!0,detail:{name:e}})}}var DT=Object.defineProperty,NT=Object.getOwnPropertyDescriptor,jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?NT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&DT(e,i,l),l};const S6=le("tab");exports.Tab=class extends Ce{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(e){const i=e.get("selected");i===!1&&this.selected===!0?this.dispatchEvent(new Ul(this.name)):i===!0&&this.selected===!1&&this.dispatchEvent(new L6(this.name)),super.updated(e)}render(){return this.link?N`<a href=${this.link} id="tab"><slot></slot></a>`:N`<div
4008
4008
  tabindex="0"
4009
4009
  role="tab"
4010
4010
  aria-selected=${this.selected}
4011
4011
  id="tab"
4012
4012
  >
4013
4013
  <slot></slot>
4014
- </div>`}};exports.Tab.styles=J`
4014
+ </div>`}};exports.Tab.styles=X`
4015
4015
  #tab {
4016
4016
  display: block;
4017
4017
  font-size: 1rem;
@@ -4032,11 +4032,11 @@ ${this.value}</textarea
4032
4032
  #tab:hover {
4033
4033
  color: var(--brz-color-neutral-850);
4034
4034
  }
4035
- `;jl([E({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);jl([E({type:String,reflect:!0})],exports.Tab.prototype,"name",2);jl([E({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=jl([Z(L6)],exports.Tab);var AT=Object.defineProperty,PT=Object.getOwnPropertyDescriptor,Gl=(n,e,i,o)=>{for(var l=o>1?void 0:o?PT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&AT(e,i,l),l};const S6=ce("tab-bar");exports.TabBar=class extends we{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,l,d;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this.tabs=[];return}let i=Array.from(e.assignedElements());for(;i[0]instanceof HTMLSlotElement;)i=Array.from(i[0].assignedElements());this.tabs=i.filter(u=>u instanceof exports.Tab&&!!u.name),this.controlled||(this.selected||(this.selected=(d=(l=this.tabs.find(u=>u.selected))==null?void 0:l.name)!=null?d:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(e){if(e.target instanceof exports.Tab){const{name:i}=e.target;i&&(this.controlled||(this.selected=i),this.dispatchEvent(new Ul(i)))}}updated(e){e.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(e=>{const i=e.name===this.selected;i!==e.selected&&(e.selected=i)})}render(){return N`
4035
+ `;jl([$({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);jl([$({type:String,reflect:!0})],exports.Tab.prototype,"name",2);jl([$({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=jl([Z(S6)],exports.Tab);var HT=Object.defineProperty,RT=Object.getOwnPropertyDescriptor,Gl=(n,e,i,o)=>{for(var l=o>1?void 0:o?RT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&HT(e,i,l),l};const M6=le("tab-bar");exports.TabBar=class extends Ce{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,l,d;const e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!e){this.tabs=[];return}let i=Array.from(e.assignedElements());for(;i[0]instanceof HTMLSlotElement;)i=Array.from(i[0].assignedElements());this.tabs=i.filter(u=>u instanceof exports.Tab&&!!u.name),this.controlled||(this.selected||(this.selected=(d=(l=this.tabs.find(u=>u.selected))==null?void 0:l.name)!=null?d:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(e){if(e.target instanceof exports.Tab){const{name:i}=e.target;i&&(this.controlled||(this.selected=i),this.dispatchEvent(new Ul(i)))}}updated(e){e.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(e=>{const i=e.name===this.selected;i!==e.selected&&(e.selected=i)})}render(){return N`
4036
4036
  <brz-row id="tabbar" @click=${this.handleClick}>
4037
4037
  <slot @slotchange=${this.handleSlotChange}></slot>
4038
4038
  </brz-row>
4039
- `}};exports.TabBar.styles=J`
4039
+ `}};exports.TabBar.styles=X`
4040
4040
  #tabbar {
4041
4041
  display: flex;
4042
4042
  flex-direction: row;
@@ -4054,7 +4054,7 @@ ${this.value}</textarea
4054
4054
  top: 0;
4055
4055
  z-index: 1;
4056
4056
  }
4057
- `;Gl([E({type:Boolean})],exports.TabBar.prototype,"controlled",2);Gl([E({type:String})],exports.TabBar.prototype,"selected",2);Gl([Ce()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Gl([Z(S6)],exports.TabBar);var DT=Object.defineProperty,NT=Object.getOwnPropertyDescriptor,Du=(n,e,i,o)=>{for(var l=o>1?void 0:o?NT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&DT(e,i,l),l};const M6=ce("tabs");exports.Tabs=class extends we{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var i,o,l;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot:not([name])");if(this.panels=[],!!e){for(const d of e.assignedElements())if(d instanceof exports.TabPanel)this.panels.push(d);else{const u=d.querySelectorAll("brz-tab-panel"),v=d.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(u.length?u:v))}this.selected||(this.selected=(l=(o=this.panels.find(d=>d.shown))==null?void 0:o.name)!=null?l:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(e=>{const i=e.name===this.selected;i!==e.shown&&(e.shown=i)})}handleTabSelected(e){this.selected=e.detail.name,this.updatePanelVisibility(),e.stopPropagation(),this.dispatchEvent(new Ul(this.selected))}render(){return N`
4057
+ `;Gl([$({type:Boolean})],exports.TabBar.prototype,"controlled",2);Gl([$({type:String})],exports.TabBar.prototype,"selected",2);Gl([we()],exports.TabBar.prototype,"tabs",2);exports.TabBar=Gl([Z(M6)],exports.TabBar);var FT=Object.defineProperty,BT=Object.getOwnPropertyDescriptor,Du=(n,e,i,o)=>{for(var l=o>1?void 0:o?BT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&FT(e,i,l),l};const T6=le("tabs");exports.Tabs=class extends Ce{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var i,o,l;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot:not([name])");if(this.panels=[],!!e){for(const d of e.assignedElements())if(d instanceof exports.TabPanel)this.panels.push(d);else{const u=d.querySelectorAll("brz-tab-panel"),v=d.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(u.length?u:v))}this.selected||(this.selected=(l=(o=this.panels.find(d=>d.shown))==null?void 0:o.name)!=null?l:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(e=>{const i=e.name===this.selected;i!==e.shown&&(e.shown=i)})}handleTabSelected(e){this.selected=e.detail.name,this.updatePanelVisibility(),e.stopPropagation(),this.dispatchEvent(new Ul(this.selected))}render(){return N`
4058
4058
  <brz-tab-bar
4059
4059
  controlled
4060
4060
  selected=${this.selected}
@@ -4063,11 +4063,11 @@ ${this.value}</textarea
4063
4063
  <slot name="tabs"></slot>
4064
4064
  </brz-tab-bar>
4065
4065
  <slot @slotchange=${this.handleSlotChange}></slot>
4066
- `}};exports.Tabs.styles=J`
4066
+ `}};exports.Tabs.styles=X`
4067
4067
  :host {
4068
4068
  background-color: var(--brz-color-white);
4069
4069
  }
4070
- `;Du([E({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Du([Ce()],exports.Tabs.prototype,"panels",2);exports.Tabs=Du([Z(M6)],exports.Tabs);var HT=Object.defineProperty,RT=Object.getOwnPropertyDescriptor,ql=(n,e,i,o)=>{for(var l=o>1?void 0:o?RT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&HT(e,i,l),l};const T6=ce("badge");var k6=(n=>(n[n.subtle=0]="subtle",n[n.primary=1]="primary",n[n.important=2]="important",n))(k6||{});const FT=n=>!n||typeof n!="string"?!1:/^-?\d+$/.test(n),O6=5,$6=99;exports.Badge=class extends we{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?$6:O6)}updated(e){super.updated(e),e.has("content")&&(this.content=FT(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return N` <span>${this.generateContent()}</span> `}};exports.Badge.styles=J`
4070
+ `;Du([$({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Du([we()],exports.Tabs.prototype,"panels",2);exports.Tabs=Du([Z(T6)],exports.Tabs);var VT=Object.defineProperty,ZT=Object.getOwnPropertyDescriptor,ql=(n,e,i,o)=>{for(var l=o>1?void 0:o?ZT(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&VT(e,i,l),l};const k6=le("badge");var O6=(n=>(n[n.subtle=0]="subtle",n[n.primary=1]="primary",n[n.important=2]="important",n))(O6||{});const WT=n=>!n||typeof n!="string"?!1:/^-?\d+$/.test(n),$6=5,E6=99;exports.Badge=class extends Ce{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?E6:$6)}updated(e){super.updated(e),e.has("content")&&(this.content=WT(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return N` <span>${this.generateContent()}</span> `}};exports.Badge.styles=X`
4071
4071
  :host {
4072
4072
  --brz-badge-background-color: var(--brz-color-neutral-250);
4073
4073
  --brz-badge-color: var(--brz-color-neutral-750);
@@ -4099,7 +4099,7 @@ ${this.value}</textarea
4099
4099
  --brz-badge-background-color: var(--brz-color-red-600);
4100
4100
  --brz-badge-color: var(--brz-color-white);
4101
4101
  }
4102
- `;ql([E({reflect:!0})],exports.Badge.prototype,"theme",2);ql([E({type:Number})],exports.Badge.prototype,"limit",2);ql([E({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=ql([Z(T6)],exports.Badge);var BT=Math.ceil,VT=Math.max;function ZT(n,e,i,o){for(var l=-1,d=VT(BT((e-n)/(i||1)),0),u=Array(d);d--;)u[o?d:++l]=n,n+=i;return u}var WT=ZT,UT=fu,jT=q2,GT=vu,qT=Pa;function KT(n,e,i){if(!qT(i))return!1;var o=typeof e;return(o=="number"?jT(i)&&GT(e,i.length):o=="string"&&e in i)?UT(i[e],n):!1}var YT=KT,XT=WT,JT=YT,Cc=op;function QT(n){return function(e,i,o){return o&&typeof o!="number"&&JT(e,i,o)&&(i=o=void 0),e=Cc(e),i===void 0?(i=e,e=0):i=Cc(i),o=o===void 0?e<i?1:-1:Cc(o),XT(e,i,o,n)}}var ek=QT,tk=ek,rk=tk(),ik=rk;const Kl=hu(ik);function nk(n,e,i){return[1,null,...Kl(n-e,n+e+1),null,i]}function ok(n,e){return[1,null,...Kl(n-(e-3),n+1)]}function ak(n,e){return[...Kl(1,e-1),null,n]}function sk(n,e,i){return n>1+1+e*2&&n<i-1-e*2}function lk(n,e=1,i=1){const o=5+i*2;if(n<=o)return Kl(1,n+1);if(sk(e,i,n))return nk(e,i,n);if(e+(o-3)>=n)return ok(n,o);if(e<o)return ak(n,o)}var ck=Object.defineProperty,uk=Object.getOwnPropertyDescriptor,ti=(n,e,i,o)=>{for(var l=o>1?void 0:o?uk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&ck(e,i,l),l};const Nu=ce("basic-pagination"),Hu=ce("pagination");class E6 extends CustomEvent{constructor(e){super(`${Nu}-${e}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends we{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(e){this.dispatchEvent(new E6(e))}handlePageChange(e){this.emit(`${e}-page`)}render(){return N`
4102
+ `;ql([$({reflect:!0})],exports.Badge.prototype,"theme",2);ql([$({type:Number})],exports.Badge.prototype,"limit",2);ql([$({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=ql([Z(k6)],exports.Badge);var UT=Math.ceil,jT=Math.max;function GT(n,e,i,o){for(var l=-1,d=jT(UT((e-n)/(i||1)),0),u=Array(d);d--;)u[o?d:++l]=n,n+=i;return u}var qT=GT,KT=fu,YT=K2,XT=vu,JT=Da;function QT(n,e,i){if(!JT(i))return!1;var o=typeof e;return(o=="number"?YT(i)&&XT(e,i.length):o=="string"&&e in i)?KT(i[e],n):!1}var ek=QT,tk=qT,rk=ek,Cc=ap;function ik(n){return function(e,i,o){return o&&typeof o!="number"&&rk(e,i,o)&&(i=o=void 0),e=Cc(e),i===void 0?(i=e,e=0):i=Cc(i),o=o===void 0?e<i?1:-1:Cc(o),tk(e,i,o,n)}}var nk=ik,ok=nk,ak=ok(),sk=ak;const Kl=hu(sk);function lk(n,e,i){return[1,null,...Kl(n-e,n+e+1),null,i]}function ck(n,e){return[1,null,...Kl(n-(e-3),n+1)]}function uk(n,e){return[...Kl(1,e-1),null,n]}function dk(n,e,i){return n>1+1+e*2&&n<i-1-e*2}function hk(n,e=1,i=1){const o=5+i*2;if(n<=o)return Kl(1,n+1);if(dk(e,i,n))return lk(e,i,n);if(e+(o-3)>=n)return ck(n,o);if(e<o)return uk(n,o)}var fk=Object.defineProperty,pk=Object.getOwnPropertyDescriptor,ti=(n,e,i,o)=>{for(var l=o>1?void 0:o?pk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fk(e,i,l),l};const Nu=le("basic-pagination"),Hu=le("pagination");class _6 extends CustomEvent{constructor(e){super(`${Nu}-${e}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ce{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(e){this.dispatchEvent(new _6(e))}handlePageChange(e){this.emit(`${e}-page`)}render(){return N`
4103
4103
  <brz-button-group role="navigation" aria-label="Pagination Navigation">
4104
4104
  <brz-button
4105
4105
  compact
@@ -4121,11 +4121,11 @@ ${this.value}</textarea
4121
4121
  leading-icon="chevronRight"
4122
4122
  ></brz-button>
4123
4123
  </brz-button-group>
4124
- `}};exports.BasicPagination.styles=J`
4124
+ `}};exports.BasicPagination.styles=X`
4125
4125
  brz-button-group {
4126
4126
  --brz-spacing-2: var(--brz-spacing-1);
4127
4127
  }
4128
- `;ti([E({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);ti([E({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=ti([Z(Nu)],exports.BasicPagination);class _6 extends CustomEvent{constructor(e,i){super(`${Hu}-${e}`,{bubbles:!0,composed:!0,detail:{page:i}})}}exports.Pagination=class extends we{constructor(){super(...arguments),this.currentPageSiblings=1}emit(e,i){this.dispatchEvent(new _6(e,i))}onPageChange(e){this.emit("page-change",e)}isCurrentPage(e){return e===this.currentPage}hasNextPage(){return this.currentPage<this.totalPages}onNextPage(){this.emit("page-change",this.currentPage+1)}hasPreviousPage(){return this.currentPage>1}onPreviousPage(){this.emit("page-change",this.currentPage-1)}render(){var e;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=lk(this.totalPages,this.currentPage,this.currentPageSiblings),N`
4128
+ `;ti([$({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);ti([$({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=ti([Z(Nu)],exports.BasicPagination);class A6 extends CustomEvent{constructor(e,i){super(`${Hu}-${e}`,{bubbles:!0,composed:!0,detail:{page:i}})}}exports.Pagination=class extends Ce{constructor(){super(...arguments),this.currentPageSiblings=1}emit(e,i){this.dispatchEvent(new A6(e,i))}onPageChange(e){this.emit("page-change",e)}isCurrentPage(e){return e===this.currentPage}hasNextPage(){return this.currentPage<this.totalPages}onNextPage(){this.emit("page-change",this.currentPage+1)}hasPreviousPage(){return this.currentPage>1}onPreviousPage(){this.emit("page-change",this.currentPage-1)}render(){var e;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=hk(this.totalPages,this.currentPage,this.currentPageSiblings),N`
4129
4129
  <brz-row role="navigation" aria-label="Pagination Navigation">
4130
4130
  <button
4131
4131
  role="link"
@@ -4161,7 +4161,7 @@ ${this.value}</textarea
4161
4161
  </div>
4162
4162
  </button>
4163
4163
  </brz-row>
4164
- `}};exports.Pagination.styles=J`
4164
+ `}};exports.Pagination.styles=X`
4165
4165
  brz-row {
4166
4166
  --brz-row-spacing: 0;
4167
4167
  }
@@ -4226,7 +4226,7 @@ ${this.value}</textarea
4226
4226
  .page {
4227
4227
  padding: 0 var(--brz-spacing-2);
4228
4228
  }
4229
- `;ti([E({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);ti([E({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);ti([E({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);ti([Ce()],exports.Pagination.prototype,"currentPageSiblings",2);ti([Ce()],exports.Pagination.prototype,"totalPages",2);ti([Ce()],exports.Pagination.prototype,"pages",2);exports.Pagination=ti([Z(Hu)],exports.Pagination);var dk=Object.defineProperty,hk=Object.getOwnPropertyDescriptor,Ga=(n,e,i,o)=>{for(var l=o>1?void 0:o?hk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&dk(e,i,l),l};const fk=["info","success","warning","error"],I6=ce("alert");class A6 extends CustomEvent{constructor(e){super(e,{bubbles:!0,composed:!0})}}exports.Alert=class extends we{constructor(){super(...arguments),this.type="info",this.clearable=!1,this.title="",this.cleared=!1}getIcon(){switch(this.type){case"success":return"tickFill";case"warning":case"error":return"exclamationFill";default:return"infoFill"}}clear(){this.cleared=!0,this.dispatchEvent(new A6("brz-alert-cleared"))}render(){return this.cleared?null:N`<div class="alert-container">
4229
+ `;ti([$({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);ti([$({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);ti([$({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);ti([we()],exports.Pagination.prototype,"currentPageSiblings",2);ti([we()],exports.Pagination.prototype,"totalPages",2);ti([we()],exports.Pagination.prototype,"pages",2);exports.Pagination=ti([Z(Hu)],exports.Pagination);var gk=Object.defineProperty,vk=Object.getOwnPropertyDescriptor,Ga=(n,e,i,o)=>{for(var l=o>1?void 0:o?vk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gk(e,i,l),l};const bk=["info","success","warning","error"],I6=le("alert");class P6 extends CustomEvent{constructor(e){super(e,{bubbles:!0,composed:!0})}}exports.Alert=class extends Ce{constructor(){super(...arguments),this.type="info",this.clearable=!1,this.title="",this.cleared=!1}getIcon(){switch(this.type){case"success":return"tickFill";case"warning":case"error":return"exclamationFill";default:return"infoFill"}}clear(){this.cleared=!0,this.dispatchEvent(new P6("brz-alert-cleared"))}render(){return this.cleared?null:N`<div class="alert-container">
4230
4230
  <brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
4231
4231
  <div role="alert">
4232
4232
  ${this.title?N`<div><brz-heading>${this.title}</brz-heading></div>`:N``}
@@ -4246,7 +4246,7 @@ ${this.value}</textarea
4246
4246
  ></brz-icon>
4247
4247
  </button>
4248
4248
  `:""}
4249
- </div>`}};exports.Alert.styles=J`
4249
+ </div>`}};exports.Alert.styles=X`
4250
4250
  :host {
4251
4251
  --brz-alert-border-width: var(--brz-spacing-px);
4252
4252
  }
@@ -4302,7 +4302,7 @@ ${this.value}</textarea
4302
4302
  padding-top: 1px;
4303
4303
  }
4304
4304
 
4305
- ${a2(".clear-button",J`
4305
+ ${s2(".clear-button",X`
4306
4306
  align-self: start;
4307
4307
  margin-left: auto;
4308
4308
  margin-right: calc(0px - var(--brz-spacing-1));
@@ -4311,9 +4311,9 @@ ${this.value}</textarea
4311
4311
  .clear-button brz-icon {
4312
4312
  vertical-align: middle;
4313
4313
  }
4314
- `;Ga([E({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Ga([E({type:Boolean})],exports.Alert.prototype,"clearable",2);Ga([E()],exports.Alert.prototype,"title",2);Ga([Ce()],exports.Alert.prototype,"cleared",2);exports.Alert=Ga([Z(I6)],exports.Alert);var pk=Object.defineProperty,gk=Object.getOwnPropertyDescriptor,So=(n,e,i,o)=>{for(var l=o>1?void 0:o?gk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pk(e,i,l),l};const P6=ce("skeleton");var D6=(n=>(n[n.text=0]="text",n[n.circle=1]="circle",n))(D6||{});exports.Skeleton=class extends we{constructor(){super(...arguments),this.variant="text",this.ariaLabel="Loading..."}connectedCallback(){super.connectedCallback(),this.setAttribute("role","status"),this.setAttribute("aria-busy","true"),this.setAttribute("aria-live","polite")}updated(){this.width&&this.style.setProperty("--brz-skeleton-width",this.width),this.height&&this.style.setProperty("--brz-skeleton-height",this.height),this.borderRadius&&this.style.setProperty("--brz-skeleton-border-radius",this.borderRadius)}render(){return N`
4314
+ `;Ga([$({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Ga([$({type:Boolean})],exports.Alert.prototype,"clearable",2);Ga([$()],exports.Alert.prototype,"title",2);Ga([we()],exports.Alert.prototype,"cleared",2);exports.Alert=Ga([Z(I6)],exports.Alert);var mk=Object.defineProperty,yk=Object.getOwnPropertyDescriptor,Mo=(n,e,i,o)=>{for(var l=o>1?void 0:o?yk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mk(e,i,l),l};const D6=le("skeleton");var N6=(n=>(n[n.text=0]="text",n[n.circle=1]="circle",n))(N6||{});exports.Skeleton=class extends Ce{constructor(){super(...arguments),this.variant="text",this.ariaLabel="Loading..."}connectedCallback(){super.connectedCallback(),this.setAttribute("role","status"),this.setAttribute("aria-busy","true"),this.setAttribute("aria-live","polite")}updated(){this.width&&this.style.setProperty("--brz-skeleton-width",this.width),this.height&&this.style.setProperty("--brz-skeleton-height",this.height),this.borderRadius&&this.style.setProperty("--brz-skeleton-border-radius",this.borderRadius)}render(){return N`
4315
4315
  <span class="sr-only" aria-hidden="false">${this.ariaLabel}</span>
4316
- `}};exports.Skeleton.styles=J`
4316
+ `}};exports.Skeleton.styles=X`
4317
4317
  :host {
4318
4318
  --brz-skeleton-background-color: var(--brz-color-neutral-250);
4319
4319
  --brz-skeleton-animation-color: var(--brz-color-neutral-350);
@@ -4377,7 +4377,67 @@ ${this.value}</textarea
4377
4377
  white-space: nowrap;
4378
4378
  border-width: 0;
4379
4379
  }
4380
- `;So([E({reflect:!0})],exports.Skeleton.prototype,"variant",2);So([E({type:String})],exports.Skeleton.prototype,"width",2);So([E({type:String})],exports.Skeleton.prototype,"height",2);So([E({type:String,attribute:"border-radius"})],exports.Skeleton.prototype,"borderRadius",2);So([E({type:String,attribute:"aria-label"})],exports.Skeleton.prototype,"ariaLabel",2);exports.Skeleton=So([Z(P6)],exports.Skeleton);const Ru={resources:F`
4380
+ `;Mo([$({reflect:!0})],exports.Skeleton.prototype,"variant",2);Mo([$({type:String})],exports.Skeleton.prototype,"width",2);Mo([$({type:String})],exports.Skeleton.prototype,"height",2);Mo([$({type:String,attribute:"border-radius"})],exports.Skeleton.prototype,"borderRadius",2);Mo([$({type:String,attribute:"aria-label"})],exports.Skeleton.prototype,"ariaLabel",2);exports.Skeleton=Mo([Z(D6)],exports.Skeleton);var Ck=Object.defineProperty,wk=Object.getOwnPropertyDescriptor,Ru=(n,e,i,o)=>{for(var l=o>1?void 0:o?wk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Ck(e,i,l),l};const H6=le("divider");var R6=(n=>(n[n.horizontal=0]="horizontal",n[n.vertical=1]="vertical",n))(R6||{}),F6=(n=>(n[n.none=0]="none",n[n.small=1]="small",n[n.medium=2]="medium",n[n.large=3]="large",n))(F6||{});exports.Divider=class extends Ce{constructor(){super(...arguments),this.orientation="horizontal",this.spacing="medium"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator"),this.setAttribute("aria-orientation",this.orientation)}updated(e){super.updated(e),e.has("orientation")&&this.setAttribute("aria-orientation",this.orientation)}render(){return N``}};exports.Divider.styles=X`
4381
+ :host {
4382
+ --brz-divider-color: var(--brz-color-neutral-350);
4383
+ --brz-divider-spacing: var(--brz-spacing-4);
4384
+ --brz-divider-thickness: 1px;
4385
+
4386
+ display: block;
4387
+ box-sizing: border-box;
4388
+ }
4389
+
4390
+ /* Horizontal orientation (default) */
4391
+ :host([orientation='horizontal']) {
4392
+ width: 100%;
4393
+ border-top: var(--brz-divider-thickness) solid var(--brz-divider-color);
4394
+ margin: var(--brz-divider-spacing) 0;
4395
+ }
4396
+
4397
+ /* Vertical orientation */
4398
+ :host([orientation='vertical']) {
4399
+ height: 100%;
4400
+ min-height: 1rem;
4401
+ border-left: var(--brz-divider-thickness) solid var(--brz-divider-color);
4402
+ margin: 0 var(--brz-divider-spacing);
4403
+ display: inline-block;
4404
+ vertical-align: middle;
4405
+ }
4406
+
4407
+ /* Spacing variants - horizontal */
4408
+ :host([orientation='horizontal'][spacing='none']) {
4409
+ margin: 0;
4410
+ }
4411
+
4412
+ :host([orientation='horizontal'][spacing='small']) {
4413
+ margin: var(--brz-spacing-2) 0;
4414
+ }
4415
+
4416
+ :host([orientation='horizontal'][spacing='medium']) {
4417
+ margin: var(--brz-spacing-4) 0;
4418
+ }
4419
+
4420
+ :host([orientation='horizontal'][spacing='large']) {
4421
+ margin: var(--brz-spacing-6) 0;
4422
+ }
4423
+
4424
+ /* Spacing variants - vertical */
4425
+ :host([orientation='vertical'][spacing='none']) {
4426
+ margin: 0;
4427
+ }
4428
+
4429
+ :host([orientation='vertical'][spacing='small']) {
4430
+ margin: 0 var(--brz-spacing-2);
4431
+ }
4432
+
4433
+ :host([orientation='vertical'][spacing='medium']) {
4434
+ margin: 0 var(--brz-spacing-4);
4435
+ }
4436
+
4437
+ :host([orientation='vertical'][spacing='large']) {
4438
+ margin: 0 var(--brz-spacing-6);
4439
+ }
4440
+ `;Ru([$({reflect:!0})],exports.Divider.prototype,"orientation",2);Ru([$({reflect:!0})],exports.Divider.prototype,"spacing",2);exports.Divider=Ru([Z(H6)],exports.Divider);const Fu={resources:F`
4381
4441
  <path fill-rule="evenodd" clip-rule="evenodd" d="M72.162 23C65.9749 23 60.9331 26.3858 60.9331 35.8357C60.9331 45.2714 65.9608 48.6715 72.162 48.6715C78.3519 48.6715 83.3909 45.2885 83.3909 35.8357C83.3909 26.4029 78.366 23 72.162 23" fill="#ECEEF3"/>
4382
4442
  <path d="M56.4495 56.9434C59.5234 55.7568 64.9414 54.1338 72.1812 54.1338C78.7417 54.1338 84.8193 55.6855 88.0841 56.9434C93.6087 59.077 96.3373 63.076 97.3676 67.212C97.9234 69.4654 97.0055 71.887 95.3408 72.6629C93.7195 73.4199 86.7451 73.8798 78.6699 74.0381C76.8525 68.8754 72.9778 64.0852 65.9467 61.3874C63.1121 60.3023 58.7997 59.0638 53.7502 58.2549C54.565 57.7649 55.4627 57.3244 56.4495 56.9434Z" fill="#ECEEF3"/>
4383
4443
  <path fill-rule="evenodd" clip-rule="evenodd" d="M40.1294 59.3822C29.7418 59.3822 21.9683 61.6959 17.5579 63.3874C9.61917 66.4329 5.70017 72.1418 4.23407 78.0459C3.43657 81.25 4.74559 84.6941 7.11794 85.8082C10.0139 87.1663 25.0495 87.8454 40.1093 87.8454C55.2496 87.8454 70.4222 87.1582 73.3584 85.796C75.7469 84.69 77.0639 81.2378 76.2664 78.0256C74.7883 72.1296 70.8733 66.4289 62.9466 63.3874C58.2624 61.5942 49.5423 59.3822 40.1294 59.3822" fill="#CACFD9"/>
@@ -4471,7 +4531,7 @@ ${this.value}</textarea
4471
4531
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
4472
4532
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
4473
4533
  <path d="M22.1426 62.8572C23.3212 62.8572 24.2855 63.8215 24.2855 65V73.5715C24.2855 74.75 23.3212 75.7143 22.1426 75.7143C20.964 75.7143 19.9998 74.75 19.9998 73.5715V65C19.9998 63.8215 20.964 62.8572 22.1426 62.8572Z" fill="white"/>
4474
- <path d="M24.2855 82.1429C24.2855 83.3264 23.3261 84.2857 22.1426 84.2857V84.2857C20.9591 84.2857 19.9998 83.3264 19.9998 82.1429V82.1429C19.9998 80.9594 20.9591 80 22.1426 80V80C23.3261 80 24.2855 80.9594 24.2855 82.1429V82.1429Z" fill="white"/>`},vk=Object.keys(Ru);var bk=Object.defineProperty,mk=Object.getOwnPropertyDescriptor,Yl=(n,e,i,o)=>{for(var l=o>1?void 0:o?mk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&bk(e,i,l),l};const N6=ce("illustration");exports.Illustration=class extends we{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const e=Ru[this.illustration],i=Math.floor(Math.random()*100),o=`${this.illustration}Title${i}`,l=`${this.illustration}Desc${i}`;if(!e){console.warn(`Can't find illustration ${this.illustration}`);return}return N`<svg
4534
+ <path d="M24.2855 82.1429C24.2855 83.3264 23.3261 84.2857 22.1426 84.2857V84.2857C20.9591 84.2857 19.9998 83.3264 19.9998 82.1429V82.1429C19.9998 80.9594 20.9591 80 22.1426 80V80C23.3261 80 24.2855 80.9594 24.2855 82.1429V82.1429Z" fill="white"/>`},xk=Object.keys(Fu);var zk=Object.defineProperty,Lk=Object.getOwnPropertyDescriptor,Yl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Lk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&zk(e,i,l),l};const B6=le("illustration");exports.Illustration=class extends Ce{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const e=Fu[this.illustration],i=Math.floor(Math.random()*100),o=`${this.illustration}Title${i}`,l=`${this.illustration}Desc${i}`;if(!e){console.warn(`Can't find illustration ${this.illustration}`);return}return N`<svg
4475
4535
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
4476
4536
  role="img"
4477
4537
  aria-labelledby=${`${o} ${l}`}
@@ -4482,24 +4542,24 @@ ${this.value}</textarea
4482
4542
  <title id=${o}>${this.altTitle}</title>
4483
4543
  <desc id=${l}>${this.altDescription}</desc>
4484
4544
  ${e}
4485
- </svg>`}};exports.Illustration.styles=J`
4545
+ </svg>`}};exports.Illustration.styles=X`
4486
4546
  :host {
4487
4547
  /* to get rid of extra height caused by white space */
4488
4548
  line-height: 0;
4489
4549
  }
4490
- `;Yl([E({type:String})],exports.Illustration.prototype,"illustration",2);Yl([E({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);Yl([E({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=Yl([Z(N6)],exports.Illustration);var yk=Object.defineProperty,Ck=Object.getOwnPropertyDescriptor,wk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ck(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&yk(e,i,l),l};const H6=ce("header");exports.Header=class extends we{render(){return N`<slot></slot>`}};exports.Header.styles=J`
4550
+ `;Yl([$({type:String})],exports.Illustration.prototype,"illustration",2);Yl([$({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);Yl([$({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=Yl([Z(B6)],exports.Illustration);var Sk=Object.defineProperty,Mk=Object.getOwnPropertyDescriptor,Tk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Mk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Sk(e,i,l),l};const V6=le("header");exports.Header=class extends Ce{render(){return N`<slot></slot>`}};exports.Header.styles=X`
4491
4551
  :host {
4492
4552
  display: block;
4493
4553
  padding: var(--brz-spacing-5);
4494
4554
  margin-bottom: var(--brz-spacing-4);
4495
4555
  }
4496
- `;exports.Header=wk([Z(H6)],exports.Header);var xk=Object.defineProperty,zk=Object.getOwnPropertyDescriptor,Lk=(n,e,i,o)=>{for(var l=o>1?void 0:o?zk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xk(e,i,l),l};const R6=ce("header-footer-page");exports.HeaderFooterPage=class extends we{render(){return N`
4556
+ `;exports.Header=Tk([Z(V6)],exports.Header);var kk=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,$k=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ok(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kk(e,i,l),l};const Z6=le("header-footer-page");exports.HeaderFooterPage=class extends Ce{render(){return N`
4497
4557
  <div id="container">
4498
4558
  <div id="header"><slot name="header"></slot></div>
4499
4559
  <div id="body"><slot></slot></div>
4500
4560
  <div id="footer"><slot name="footer"></slot></div>
4501
4561
  </div>
4502
- `}};exports.HeaderFooterPage.styles=J`
4562
+ `}};exports.HeaderFooterPage.styles=X`
4503
4563
  :host {
4504
4564
  width: 100%;
4505
4565
  height: 100%;
@@ -4517,7 +4577,7 @@ ${this.value}</textarea
4517
4577
  flex: 1 1;
4518
4578
  overflow-y: auto;
4519
4579
  }
4520
- `;exports.HeaderFooterPage=Lk([Z(R6)],exports.HeaderFooterPage);var Sk=Object.defineProperty,Mk=Object.getOwnPropertyDescriptor,Tk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Mk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Sk(e,i,l),l};const F6=ce("responsive-columns");exports.ResponsiveColumns=class extends we{render(){return N`<slot></slot>`}};exports.ResponsiveColumns.styles=J`
4580
+ `;exports.HeaderFooterPage=$k([Z(Z6)],exports.HeaderFooterPage);var Ek=Object.defineProperty,_k=Object.getOwnPropertyDescriptor,Ak=(n,e,i,o)=>{for(var l=o>1?void 0:o?_k(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Ek(e,i,l),l};const W6=le("responsive-columns");exports.ResponsiveColumns=class extends Ce{render(){return N`<slot></slot>`}};exports.ResponsiveColumns.styles=X`
4521
4581
  :host {
4522
4582
  display: flex;
4523
4583
  flex-direction: row;
@@ -4549,18 +4609,18 @@ ${this.value}</textarea
4549
4609
  margin-bottom: var(--brz-padding, var(--brz-spacing-8));
4550
4610
  }
4551
4611
  }
4552
- `;exports.ResponsiveColumns=Tk([Z(F6)],exports.ResponsiveColumns);var kk=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,$k=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ok(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kk(e,i,l),l};const B6=ce("footer");exports.Footer=class extends we{render(){return N`<div class="container">
4612
+ `;exports.ResponsiveColumns=Ak([Z(W6)],exports.ResponsiveColumns);var Ik=Object.defineProperty,Pk=Object.getOwnPropertyDescriptor,Dk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Pk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Ik(e,i,l),l};const U6=le("footer");exports.Footer=class extends Ce{render(){return N`<div class="container">
4553
4613
  <slot name="left"></slot>
4554
4614
  <slot name="middle"></slot>
4555
4615
  <slot name="right"></slot>
4556
- </div> `}};exports.Footer.styles=J`
4616
+ </div> `}};exports.Footer.styles=X`
4557
4617
  .container {
4558
4618
  border-top: 1px solid var(--brz-color-neutral-400);
4559
4619
  display: flex;
4560
4620
  justify-content: space-between;
4561
4621
  padding: var(--brz-spacing-3) var(--brz-spacing-4);
4562
4622
  }
4563
- `;exports.Footer=$k([Z(B6)],exports.Footer);var Ek=Object.defineProperty,_k=Object.getOwnPropertyDescriptor,Xl=(n,e,i,o)=>{for(var l=o>1?void 0:o?_k(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Ek(e,i,l),l};const V6=ce("page-header");exports.PageHeader=class extends we{constructor(){super(...arguments),this.hasTitle=!1}updated(e){var i;super.updated(e),this.hasTitle=!!((i=this.slottedTitle)!=null&&i.length||this.pageTitle)}render(){return N`
4623
+ `;exports.Footer=Dk([Z(U6)],exports.Footer);var Nk=Object.defineProperty,Hk=Object.getOwnPropertyDescriptor,Xl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Hk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Nk(e,i,l),l};const j6=le("page-header");exports.PageHeader=class extends Ce{constructor(){super(...arguments),this.hasTitle=!1}updated(e){var i;super.updated(e),this.hasTitle=!!((i=this.slottedTitle)!=null&&i.length||this.pageTitle)}render(){return N`
4564
4624
  <header>
4565
4625
  <slot name="decorator"></slot>
4566
4626
 
@@ -4583,7 +4643,7 @@ ${this.value}</textarea
4583
4643
 
4584
4644
  <slot name="actions"></slot>
4585
4645
  </header>
4586
- `}};exports.PageHeader.styles=J`
4646
+ `}};exports.PageHeader.styles=X`
4587
4647
  :host {
4588
4648
  display: flex;
4589
4649
  }
@@ -4620,7 +4680,7 @@ ${this.value}</textarea
4620
4680
  brz-heading.hidden {
4621
4681
  display: none;
4622
4682
  }
4623
- `;Xl([E({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Xl([Ce()],exports.PageHeader.prototype,"hasTitle",2);Xl([Qc({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Xl([Z(V6)],exports.PageHeader);var Ik=Object.defineProperty,Ak=Object.getOwnPropertyDescriptor,Jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Ak(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Ik(e,i,l),l};const Z6=ce("grid"),Pk=Ia.map(n=>J`
4683
+ `;Xl([$({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);Xl([we()],exports.PageHeader.prototype,"hasTitle",2);Xl([Qc({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=Xl([Z(j6)],exports.PageHeader);var Rk=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,Jl=(n,e,i,o)=>{for(var l=o>1?void 0:o?Fk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Rk(e,i,l),l};const G6=le("grid"),Bk=Ia.map(n=>X`
4624
4684
  :host([spacing='${n}']),
4625
4685
  :host([col-spacing='${n}']) {
4626
4686
  --brz-grid-column-gap: var(--brz-spacing-${n});
@@ -4629,7 +4689,7 @@ ${this.value}</textarea
4629
4689
  :host([row-spacing='${n}']) {
4630
4690
  --brz-grid-row-gap: var(--brz-spacing-${n});
4631
4691
  }
4632
- `);exports.Grid=class extends po{render(){return N`<slot></slot>`}};var Df;exports.Grid.styles=[(Df=po.styles)!=null?Df:[],J`
4692
+ `);exports.Grid=class extends po{render(){return N`<slot></slot>`}};var Nf;exports.Grid.styles=[(Nf=po.styles)!=null?Nf:[],X`
4633
4693
  :host {
4634
4694
  --brz-grid-columns: 12;
4635
4695
  --brz-grid-column-gap: var(--brz-spacing-5);
@@ -4642,34 +4702,34 @@ ${this.value}</textarea
4642
4702
  column-gap: var(--brz-grid-column-gap);
4643
4703
  row-gap: var(--brz-grid-row-gap);
4644
4704
  }
4645
- `,...Pk];Jl([E({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);Jl([E({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);Jl([E({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=Jl([Z(Z6)],exports.Grid);const bl={lg:960,md:640},Dk=J`
4705
+ `,...Bk];Jl([$({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);Jl([$({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);Jl([$({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=Jl([Z(G6)],exports.Grid);const bl={lg:960,md:640},Vk=X`
4646
4706
  --brz-breakpoint-lg: ${bl.lg}px;
4647
4707
  --brz-breakpoint-md: ${bl.md}px;
4648
- `,wc=n=>(e,...i)=>J`
4708
+ `,wc=n=>(e,...i)=>X`
4649
4709
  @media (max-width: ${bl[n]}px) {
4650
- ${J(e,...i)}
4710
+ ${X(e,...i)}
4651
4711
  }
4652
- `,If=n=>(e,...i)=>J`
4712
+ `,If=n=>(e,...i)=>X`
4653
4713
  @media (min-width: ${bl[n]}px) {
4654
- ${J(e,...i)}
4714
+ ${X(e,...i)}
4655
4715
  }
4656
- `,ml={breakpointUp:If,breakpointDown:wc,sm:wc("md"),md:wc("lg"),lg:If("lg")};var Nk=Object.defineProperty,Hk=Object.getOwnPropertyDescriptor,Ql=(n,e,i,o)=>{for(var l=o>1?void 0:o?Hk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Nk(e,i,l),l};const W6=ce("grid-item"),e1=[1,2,3,4,5,6,7,8,9,10,11,12],Rk=e1.map(n=>J`
4716
+ `,ml={breakpointUp:If,breakpointDown:wc,sm:wc("md"),md:wc("lg"),lg:If("lg")};var Zk=Object.defineProperty,Wk=Object.getOwnPropertyDescriptor,Ql=(n,e,i,o)=>{for(var l=o>1?void 0:o?Wk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Zk(e,i,l),l};const q6=le("grid-item"),e1=[1,2,3,4,5,6,7,8,9,10,11,12],Uk=e1.map(n=>X`
4657
4717
  :host([cols='${n}']) {
4658
4718
  grid-column: auto / span ${n};
4659
4719
  }
4660
- `),Fk=e1.map(n=>J`
4720
+ `),jk=e1.map(n=>X`
4661
4721
  ${ml.md`
4662
4722
  :host([md-cols='${n}']) {
4663
4723
  grid-column: auto / span ${n};
4664
4724
  }
4665
4725
  `}
4666
- `),Bk=e1.map(n=>J`
4726
+ `),Gk=e1.map(n=>X`
4667
4727
  ${ml.sm`
4668
4728
  :host([sm-cols='${n}']) {
4669
4729
  grid-column: auto / span ${n};
4670
4730
  }
4671
4731
  `}
4672
- `),Vk=J`
4732
+ `),qk=X`
4673
4733
  ${ml.md`
4674
4734
  :host([cols='9']:not([md-cols])),
4675
4735
  :host([cols='8']:not([md-cols])),
@@ -4685,11 +4745,11 @@ ${this.value}</textarea
4685
4745
  grid-column: auto / span 12;
4686
4746
  }
4687
4747
  `}
4688
- `;exports.GridItem=class extends we{render(){return N`<slot></slot>`}};exports.GridItem.styles=[J`
4748
+ `;exports.GridItem=class extends Ce{render(){return N`<slot></slot>`}};exports.GridItem.styles=[X`
4689
4749
  :host {
4690
4750
  grid-column: auto / span 12;
4691
4751
  }
4692
- `,Rk,Vk,Fk,Bk];Ql([E({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Ql([E({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Ql([E({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Ql([Z(W6)],exports.GridItem);const Zk=J`
4752
+ `,Uk,qk,jk,Gk];Ql([$({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);Ql([$({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);Ql([$({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=Ql([Z(q6)],exports.GridItem);const Kk=X`
4693
4753
  :host {
4694
4754
  --brz-border-radius-default: 2px;
4695
4755
  --brz-border-radius-medium: 3px;
@@ -4697,12 +4757,12 @@ ${this.value}</textarea
4697
4757
 
4698
4758
  --brz-border-divider: 1px solid var(--brz-color-neutral-400);
4699
4759
  }
4700
- `,Wk=`.CodeMirror-hints{position:absolute;z-index:2000;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px #0003;border:1px solid silver;border-radius:3px;background:white;font-family:monospace;font-size:14px;font-weight:400;line-height:20px;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:4px;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint:hover,li.CodeMirror-hint-active{background:#eceef3;color:#000}.CodeMirror-hints::-webkit-scrollbar{width:11px}.CodeMirror-hints::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:50px;border:2px solid white}.CodeMirror-hints::-webkit-scrollbar-track{background-clip:padding-box}
4701
- `;J`
4702
- ${qr(jp)}
4703
- `;const Af=J`
4704
- ${qr(Wk)}
4705
- `,Uk=J`
4760
+ `,Yk=`.CodeMirror-hints{position:absolute;z-index:2000;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px #0003;border:1px solid silver;border-radius:3px;background:white;font-family:monospace;font-size:14px;font-weight:400;line-height:20px;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:4px;white-space:pre;color:#000;cursor:pointer}.CodeMirror-hint:hover,li.CodeMirror-hint-active{background:#eceef3;color:#000}.CodeMirror-hints::-webkit-scrollbar{width:11px}.CodeMirror-hints::-webkit-scrollbar-thumb{background-color:#00000080;border-radius:50px;border:2px solid white}.CodeMirror-hints::-webkit-scrollbar-track{background-clip:padding-box}
4761
+ `;X`
4762
+ ${qr(Gp)}
4763
+ `;const Pf=X`
4764
+ ${qr(Yk)}
4765
+ `,Xk=X`
4706
4766
  :host {
4707
4767
  --brz-color-neutral-900: #1b263a;
4708
4768
  --brz-color-neutral-850: #223049;
@@ -4895,7 +4955,7 @@ ${this.value}</textarea
4895
4955
 
4896
4956
  --brz-color-text-on-color: var(--brz-color-white);
4897
4957
  }
4898
- `,jk=J`
4958
+ `,Jk=X`
4899
4959
  :host {
4900
4960
  --sp-border-radius-default: var(--brz-border-radius-default);
4901
4961
  --sp-border-radius-medium: var(--brz-border-radius-medium)
@@ -5160,14 +5220,14 @@ ${this.value}</textarea
5160
5220
  --sp-z-index-dropdown: var(--brz-z-index-dropdown);
5161
5221
  --sp-z-index-tooltip: var(--brz-z-index-tooltip);
5162
5222
  }
5163
- `,Gk=J`
5223
+ `,Qk=X`
5164
5224
  :host {
5165
5225
  // TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
5166
5226
  --brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
5167
5227
  --brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
5168
5228
  --brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
5169
5229
  }
5170
- `,qk=J`
5230
+ `,eO=X`
5171
5231
  :host {
5172
5232
  --brz-font-family-brand: Inter, sofiapro;
5173
5233
  --brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
@@ -5211,14 +5271,14 @@ ${this.value}</textarea
5211
5271
  --brz-text-block-max-width: 44rem;
5212
5272
  --brz-list-block-max-width: 40rem;
5213
5273
  }
5214
- `,Kk=J`
5274
+ `,tO=X`
5215
5275
  :host {
5216
5276
  --brz-z-index-navigation: 1000;
5217
5277
  --brz-z-index-dialog: 1100;
5218
5278
  --brz-z-index-dropdown: 1200;
5219
5279
  --brz-z-index-tooltip: 1300;
5220
5280
  }
5221
- `;var Yk=Object.defineProperty,Xk=Object.getOwnPropertyDescriptor,Jk=(n,e,i,o)=>{for(var l=o>1?void 0:o?Xk(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&Yk(e,i,l),l};const U6=ce("global-styles");exports.GlobalStyles=class extends we{connectedCallback(){super.connectedCallback(),this.injectGlobalStyles()}injectGlobalStyles(){const e=[];Af&&e.push(Af),e.forEach((i,o)=>{const l=i.toString(),d=`brz-injected-global-style-${o}`;if(!document.head.querySelector(`#${d}`)){const u=document.createElement("style");u.id=d,u.textContent=l,document.head.appendChild(u)}})}render(){return N`<slot></slot>`}};exports.GlobalStyles.styles=[Uk,M2,qk,Zk,Gk,Kk,Dk,jk,J`
5281
+ `;var rO=Object.defineProperty,iO=Object.getOwnPropertyDescriptor,nO=(n,e,i,o)=>{for(var l=o>1?void 0:o?iO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&rO(e,i,l),l};const K6=le("global-styles");exports.GlobalStyles=class extends Ce{connectedCallback(){super.connectedCallback(),this.injectGlobalStyles()}injectGlobalStyles(){const e=[];Pf&&e.push(Pf),e.forEach((i,o)=>{const l=i.toString(),d=`brz-injected-global-style-${o}`;if(!document.head.querySelector(`#${d}`)){const u=document.createElement("style");u.id=d,u.textContent=l,document.head.appendChild(u)}})}render(){return N`<slot></slot>`}};exports.GlobalStyles.styles=[Xk,T2,eO,Kk,Qk,tO,Vk,Jk,X`
5222
5282
  :host {
5223
5283
  --brz-outline-color: var(--brz-color-primary-600);
5224
5284
  --brz-outline-style: solid;
@@ -5236,7 +5296,7 @@ ${this.value}</textarea
5236
5296
  font-weight: var(--brz-font-weight-normal);
5237
5297
  color: var(--brz-color-text);
5238
5298
  }
5239
- `];exports.GlobalStyles=Jk([Z(U6)],exports.GlobalStyles);const j6=ce("card"),G6=ce("card-header"),q6=ce("card-footer"),K6=ce("card-section-header"),Qk=J`
5299
+ `];exports.GlobalStyles=nO([Z(K6)],exports.GlobalStyles);const Y6=le("card"),X6=le("card-header"),J6=le("card-footer"),Q6=le("card-section-header"),oO=X`
5240
5300
  :host {
5241
5301
  --brz-card-background-color: var(--brz-color-white);
5242
5302
  --brz-card-color: var(--brz-color-text);
@@ -5274,7 +5334,7 @@ ${this.value}</textarea
5274
5334
 
5275
5335
  padding-bottom: calc(2 * var(--brz-card-body-balancer));
5276
5336
  }
5277
- `,eO=n=>J`
5337
+ `,aO=n=>X`
5278
5338
  :host([padding='${n}']) {
5279
5339
  --brz-card-padding: var(--brz-spacing-${n});
5280
5340
  }
@@ -5282,7 +5342,7 @@ ${this.value}</textarea
5282
5342
  :host([body-padding='${n}']) {
5283
5343
  --brz-card-body-padding: var(--brz-spacing-${n});
5284
5344
  }
5285
- `,tO=Ia.map(eO),rO=J`
5345
+ `,sO=Ia.map(aO),lO=X`
5286
5346
  :host {
5287
5347
  --brz-card-header-color: var(--brz-card-color, var(--brz-color-text));
5288
5348
  --brz-card-header-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -5330,7 +5390,7 @@ ${this.value}</textarea
5330
5390
  align-self: flex-start;
5331
5391
  flex-shrink: 0;
5332
5392
  }
5333
- `,iO=J`
5393
+ `,cO=X`
5334
5394
  :host {
5335
5395
  --brz-card-footer-color: var(--brz-card-color, var(--brz-color-text));
5336
5396
  --brz-card-footer-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
@@ -5358,7 +5418,7 @@ ${this.value}</textarea
5358
5418
  align-self: flex-start;
5359
5419
  flex-shrink: 0;
5360
5420
  }
5361
- `;var nO=Object.defineProperty,oO=Object.getOwnPropertyDescriptor,aO=(n,e,i,o)=>{for(var l=o>1?void 0:o?oO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&nO(e,i,l),l};exports.CardHeader=class extends we{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return N`
5421
+ `;var uO=Object.defineProperty,dO=Object.getOwnPropertyDescriptor,hO=(n,e,i,o)=>{for(var l=o>1?void 0:o?dO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&uO(e,i,l),l};exports.CardHeader=class extends Ce{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return N`
5362
5422
  <div class="title">
5363
5423
  <slot></slot>
5364
5424
  </div>
@@ -5366,9 +5426,9 @@ ${this.value}</textarea
5366
5426
  <div class="aside">
5367
5427
  <slot name="aside"></slot>
5368
5428
  </div>
5369
- `}render(){return N` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[rO];exports.CardHeader=aO([Ea(G6)],exports.CardHeader);var sO=Object.defineProperty,lO=Object.getOwnPropertyDescriptor,Y6=(n,e,i,o)=>{for(var l=o>1?void 0:o?lO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&sO(e,i,l),l};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return N`
5429
+ `}render(){return N` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[lO];exports.CardHeader=hO([_a(X6)],exports.CardHeader);var fO=Object.defineProperty,pO=Object.getOwnPropertyDescriptor,e4=(n,e,i,o)=>{for(var l=o>1?void 0:o?pO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&fO(e,i,l),l};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return N`
5370
5430
  <div class="card-section-header">${this.contentTemplate}</div>
5371
- `}};Y6([E({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=Y6([Ea(K6)],exports.CardSectionHeader);var cO=Object.defineProperty,uO=Object.getOwnPropertyDescriptor,dO=(n,e,i,o)=>{for(var l=o>1?void 0:o?uO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&cO(e,i,l),l};exports.CardFooter=class extends we{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return N`
5431
+ `}};e4([$({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=e4([_a(Q6)],exports.CardSectionHeader);var gO=Object.defineProperty,vO=Object.getOwnPropertyDescriptor,bO=(n,e,i,o)=>{for(var l=o>1?void 0:o?vO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&gO(e,i,l),l};exports.CardFooter=class extends Ce{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return N`
5372
5432
  <footer class="card-footer">
5373
5433
  <div>
5374
5434
  <slot></slot>
@@ -5378,7 +5438,7 @@ ${this.value}</textarea
5378
5438
  <slot name="aside"></slot>
5379
5439
  </div>
5380
5440
  </footer>
5381
- `}};exports.CardFooter.styles=[iO];exports.CardFooter=dO([Ea(q6)],exports.CardFooter);var hO=Object.defineProperty,fO=Object.getOwnPropertyDescriptor,qa=(n,e,i,o)=>{for(var l=o>1?void 0:o?fO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&hO(e,i,l),l};exports.Card=class extends po{constructor(){super(...arguments),this.hasHeader=!1}updated(e){super.updated(e),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return N`
5441
+ `}};exports.CardFooter.styles=[cO];exports.CardFooter=bO([_a(J6)],exports.CardFooter);var mO=Object.defineProperty,yO=Object.getOwnPropertyDescriptor,qa=(n,e,i,o)=>{for(var l=o>1?void 0:o?yO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mO(e,i,l),l};exports.Card=class extends po{constructor(){super(...arguments),this.hasHeader=!1}updated(e){super.updated(e),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return N`
5382
5442
  <article class="card" part="card">
5383
5443
  <slot name="header"></slot>
5384
5444
 
@@ -5390,7 +5450,7 @@ ${this.value}</textarea
5390
5450
 
5391
5451
  <slot name="footer"></slot>
5392
5452
  </article>
5393
- `}};var Nf;exports.Card.styles=[(Nf=po.styles)!=null?Nf:[],Qk,tO];qa([E({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);qa([E({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);qa([Ce()],exports.Card.prototype,"hasHeader",2);qa([fi({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=qa([Ea(j6)],exports.Card);var pO=Object.defineProperty,gO=Object.getOwnPropertyDescriptor,Fu=(n,e,i,o)=>{for(var l=o>1?void 0:o?gO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&pO(e,i,l),l};const X6=ce("paper");exports.Paper=class extends we{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return N` <div class="container"><slot></slot></div> `}};exports.Paper.styles=J`
5453
+ `}};var Hf;exports.Card.styles=[(Hf=po.styles)!=null?Hf:[],oO,sO];qa([$({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);qa([$({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);qa([we()],exports.Card.prototype,"hasHeader",2);qa([fi({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=qa([_a(Y6)],exports.Card);var CO=Object.defineProperty,wO=Object.getOwnPropertyDescriptor,Bu=(n,e,i,o)=>{for(var l=o>1?void 0:o?wO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&CO(e,i,l),l};const t4=le("paper");exports.Paper=class extends Ce{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return N` <div class="container"><slot></slot></div> `}};exports.Paper.styles=X`
5394
5454
  :host {
5395
5455
  display: block;
5396
5456
  position: relative;
@@ -5414,4 +5474,4 @@ ${this.value}</textarea
5414
5474
  :host([has-border]) .container {
5415
5475
  border: 1px solid var(--brz-color-neutral-300);
5416
5476
  }
5417
- `;Fu([E({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);Fu([E({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=Fu([Z(X6)],exports.Paper);var vO=Object.defineProperty,bO=Object.getOwnPropertyDescriptor,xe=(n,e,i,o)=>{for(var l=o>1?void 0:o?bO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&vO(e,i,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=xe([Z("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=xe([Z("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=xe([Z("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=xe([Z("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=xe([Z("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=xe([Z("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=xe([Z("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=xe([Z("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=xe([Z("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=xe([Z("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=xe([Z("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=xe([Z("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=xe([Z("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=xe([Z("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=xe([Z("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=xe([Z("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=xe([Z("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=xe([Z("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=xe([Z("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=xe([Z("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=xe([Z("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=xe([Z("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=xe([Z("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=xe([Z("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=xe([Z("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=xe([Z("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=xe([Z("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=xe([Z("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=xe([Z("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=xe([Z("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=xe([Z("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=xe([Z("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=xe([Z("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=xe([Z("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=xe([Z("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=xe([Z("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=xe([Z("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=xe([Z("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=xe([Z("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=xe([Z("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=xe([Z("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=xe([Z("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=xe([Z("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=xe([Z("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=xe([Z("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=xe([Z("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=xe([Z("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=xe([Z("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends nl{};exports.LegacyInputGuide=xe([Z("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=xe([Z("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=xe([Z("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=xe([Z("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=xe([Z("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=xe([Z("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=xe([Z("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=xe([Z("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=xe([Z("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=xe([Z("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=xe([Z("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=xe([Z("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=xe([Z("sp-labeled-input")],exports.LegacyLabeledInput);const J6=ce("date-range");var mO=Object.defineProperty,yO=Object.getOwnPropertyDescriptor,t1=(n,e,i,o)=>{for(var l=o>1?void 0:o?yO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&mO(e,i,l),l};exports.DateRange=class extends we{constructor(){super(...arguments),this.dateFormat="MonthDayYear"}formatDateRange(){if(!this.start||!this.end)return"No date range set";const e=Ee.fromISO(this.start),i=Ee.fromISO(this.end);if(!e.isValid||!i.isValid)return"Invalid date range";const o=this.dateFormat==="MonthDayYear",l=e.month===i.month&&e.year===i.year,d=e.year===i.year;if(e.hasSame(i,"day"))return pl(e.toFormat(o?"MMM d, yyyy":"d MMM yyyy"));let u,v;o?l?(u="MMM d",v="d, yyyy"):d?(u="MMM d",v="MMM d, yyyy"):(u="MMM d, yyyy",v="MMM d, yyyy"):l?(u="d",v="d MMM yyyy"):d?(u="d MMM",v="d MMM yyyy"):(u="d MMM yyyy",v="d MMM yyyy");const b=`${e.toFormat(u)} - ${i.toFormat(v)}`;return pl(b)}render(){return N`<span>${this.formatDateRange()}</span>`}};t1([E({type:String})],exports.DateRange.prototype,"start",2);t1([E({type:String})],exports.DateRange.prototype,"end",2);t1([E({attribute:"date-format",type:String})],exports.DateRange.prototype,"dateFormat",2);exports.DateRange=t1([Z(J6)],exports.DateRange);const Q6=ce("date-time-range"),yl="a",CO="ccc d LLL",wO="ccc LLL d",Bu="ZZZZ";var xO=Object.defineProperty,zO=Object.getOwnPropertyDescriptor,Mo=(n,e,i,o)=>{for(var l=o>1?void 0:o?zO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xO(e,i,l),l};class Zi extends we{constructor(){super(...arguments),this.hideTimezone=!1,this.timeOnly=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";if(KM(this.start,this.end,this.timezone))return this.hideTimezone||!this.timezone?"All day":`All day (${yc(Ee.fromISO(this.start),this.timezone).toFormat(Bu)})`;const e=yc(Ee.fromISO(this.start),this.timezone),i=yc(Ee.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?CO:wO,{start:l,end:d}=this.getStartAndEndDateTimeTokens(e,i,o),u=(m,M)=>{const{dateFormat:L,year:T,minutes:$,ampm:H,timezone:Y=""}=M,_=`${L?`${L}${T}, `:""}${$}${H}${Y}`;return m.toFormat(_)},v=pl(u(e,l)),b=pl(u(i,d));return`${v} - ${b}`}render(){return N`<span>${this.generateContent()}</span>`}}Mo([E({type:String})],Zi.prototype,"start",2);Mo([E({type:String})],Zi.prototype,"end",2);Mo([E({type:String})],Zi.prototype,"timezone",2);Mo([E({attribute:"hide-timezone",type:Boolean})],Zi.prototype,"hideTimezone",2);Mo([E({attribute:"time-only",type:Boolean})],Zi.prototype,"timeOnly",2);Mo([E({attribute:"date-format",type:String})],Zi.prototype,"dateFormat",2);var LO=Object.defineProperty,SO=Object.getOwnPropertyDescriptor,MO=(n,e,i,o)=>{for(var l=o>1?void 0:o?SO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&LO(e,i,l),l};exports.DateTimeRange=class extends Zi{getStartAndEndDateTimeTokens(e,i,o){const l={minutes:gl(e),year:vl(e,i),dateFormat:o,ampm:e.hasSame(i,"day")&&J5(e,i)?"":yl},d={minutes:gl(i),year:vl(i,e),dateFormat:e.hasSame(i,"day")?"":o,ampm:yl,timezone:this.hideTimezone?"":` (${Bu})`};return{start:l,end:d}}};exports.DateTimeRange=MO([Z(Q6)],exports.DateTimeRange);const e4=ce("time-range");var TO=Object.defineProperty,kO=Object.getOwnPropertyDescriptor,OO=(n,e,i,o)=>{for(var l=o>1?void 0:o?kO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&TO(e,i,l),l};exports.TimeRange=class extends Zi{getStartAndEndDateTimeTokens(e,i,o){const l=e.hasSame(i,"day"),d=this.timeOnly?!1:!l,u=this.timeOnly||!l||!J5(e,i),v={minutes:gl(e),year:d?vl(e,i):"",dateFormat:d?o:"",ampm:u?yl:""},b={minutes:gl(i),year:d?vl(i,e):"",dateFormat:d?o:"",ampm:yl,timezone:this.hideTimezone?"":` (${Bu})`};return{start:v,end:b}}};exports.TimeRange=OO([Z(e4)],exports.TimeRange);exports.ACTION_BAR=kp;exports.ALERT=I6;exports.AVATAR=z2;exports.AVATAR_GROUP=L2;exports.AlertEvent=A6;exports.AvatarSize=el;exports.AvatarTheme=S2;exports.BADGE=T6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=O6;exports.BADGE_NUMBER_LIMIT_DEFAULT=$6;exports.BASIC_PAGINATION=Nu;exports.BUTTON=du;exports.BUTTON_GROUP=P2;exports.BadgeTheme=k6;exports.BasicPaginationEvent=E6;exports.ButtonEvent=D2;exports.CARD=j6;exports.CARD_FOOTER=q6;exports.CARD_HEADER=G6;exports.CARD_SECTION_HEADER=K6;exports.COLUMN=_2;exports.COMBO_BOX=mp;exports.COMBO_BOX_OPTION=yp;exports.CONFIRMATION_DIALOG=Ip;exports.ConfirmationDialogCancel=Ap;exports.ConfirmationDialogConfirm=Pp;exports.DATE_RANGE=J6;exports.DATE_TIME_RANGE=Q6;exports.DROPDOWN_BUTTON=Dp;exports.DROPDOWN_MENU=N2;exports.DeleteLozengeEvent=Yp;exports.FADE_IN_OUT=n2;exports.FOOTER=B6;exports.GLOBAL_STYLES=U6;exports.GRID=Z6;exports.GRID_ITEM=W6;exports.HEADER=H6;exports.HEADER_FOOTER_PAGE=R6;exports.HEADING=s6;exports.ICON=k2;exports.ILLUSTRATION=N6;exports.INLINE_EDIT_CONTROLS=c6;exports.INLINE_EDIT_FIELD=l6;exports.INLINE_EDIT_GROUP=_u;exports.INPUT_CHECKBOX=Np;exports.INPUT_CODE=Gp;exports.INPUT_ERROR=up;exports.INPUT_LABEL=hp;exports.INPUT_MULTISELECT=Xp;exports.INPUT_NUMBER=Fp;exports.INPUT_RADIO_GROUP=Zp;exports.INPUT_RADIO_OPTION=Wp;exports.INPUT_SELECT=qp;exports.INPUT_TEXT=Hp;exports.INPUT_TEXTAREA=Rp;exports.INPUT_TIME=e6;exports.InlineEditControlsCancelEvent=d6;exports.InlineEditControlsSaveEvent=h6;exports.InlineEditFieldBroadcastEvent=f6;exports.InlineEditFieldModeChangeEvent=p6;exports.InlineEditGroupModeChangeEvent=g6;exports.InputBase=tr;exports.InputSelectBase=bt;exports.InputSelectQueryChangeEvent=xu;exports.LABELED_INPUT=dp;exports.LINK=O2;exports.LINK_BUTTON=$2;exports.LOADING_SPINNER=A2;exports.LOZENGE=Kp;exports.MENU=pp;exports.MENU_ITEM=ol;exports.MODAL=Mp;exports.MODAL_BODY=$p;exports.MODAL_FOOTER=Ep;exports.MODAL_HEADER=Op;exports.MenuBlurEvent=gp;exports.MenuItemSelectEvent=fp;exports.MenuSelectEvent=vp;exports.ModalCloseEvent=zu;exports.PAGE_HEADER=V6;exports.PAGINATION=Hu;exports.PAPER=X6;exports.POPOVER=ou;exports.POPOVER_LISTENABLE_EVENT_TYPES=Qs;exports.POPOVER_ROLES=au;exports.POPOVER_TRIGGERS=y2;exports.PURE_POPOVER=m2;exports.PaginationEvent=_6;exports.PopoverEvent=C2;exports.RECORD_FIELD=lp;exports.RECORD_FIELD_LABEL=cp;exports.RECORD_ROW=C6;exports.RECORD_ROW_LABEL=w6;exports.RESPONSIVE_COLUMNS=F6;exports.ROW=E2;exports.SEARCH_MESSAGE_ID=ka;exports.SELECT_ALL_ID=kr;exports.SIDE_NAVIGATION=m6;exports.SIDE_NAVIGATION_ITEM=b6;exports.SKELETON=P6;exports.SPACING_BASE=su;exports.SPLIT_ROW=Tp;exports.SkeletonVariant=D6;exports.TAB=L6;exports.TABS=M6;exports.TAB_BAR=S6;exports.TAB_PANEL=x6;exports.TIME_FORMAT=t6;exports.TIME_RANGE=e4;exports.TIME_REGEX_12H=n6;exports.TIME_REGEX_24H=i6;exports.TIME_REGEX_LOOSE=r6;exports.TOGGLE_SWITCH=a6;exports.TOOLTIP=w2;exports.TabDeselectedEvent=z6;exports.TabSelectedEvent=Ul;exports.TooltipTheme=x2;exports.VIRTUAL_LIST=Cu;exports.VirtualListUpdateEvent=sp;exports.alertTypes=fk;exports.buttonTypes=U9;exports.click=Js;exports.columnSpans=e1;exports.dropdownMenuSizes=K9;exports.focus=dn;exports.hover=_c;exports.iconNames=$9;exports.icons=lu;exports.illustrationNames=vk;exports.illustrations=Ru;exports.inlineEditControlsModes=u6;exports.inlineEditModes=lT;exports.inputSizes=Qx;exports.labelPositions=ez;exports.labelSizes=tz;exports.linkButtonElementTypes=P9;exports.linkTypes=H9;exports.lozengeColors=UL;exports.lozengeSizes=GL;exports.lozengeThemes=jL;exports.modalSizes=sL;exports.radioLayouts=EL;exports.resetLinkStyle=uu;exports.spacing=M2;exports.spacingLevels=Ia;exports.syntaxes=FL;exports.timeSuffixes=QM;exports.transformIcon=T2;
5477
+ `;Bu([$({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);Bu([$({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=Bu([Z(t4)],exports.Paper);var xO=Object.defineProperty,zO=Object.getOwnPropertyDescriptor,xe=(n,e,i,o)=>{for(var l=o>1?void 0:o?zO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&xO(e,i,l),l};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=xe([Z("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=xe([Z("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=xe([Z("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=xe([Z("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=xe([Z("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=xe([Z("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=xe([Z("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=xe([Z("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=xe([Z("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=xe([Z("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=xe([Z("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=xe([Z("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=xe([Z("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=xe([Z("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=xe([Z("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=xe([Z("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=xe([Z("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=xe([Z("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=xe([Z("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=xe([Z("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=xe([Z("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=xe([Z("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=xe([Z("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=xe([Z("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=xe([Z("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=xe([Z("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=xe([Z("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=xe([Z("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=xe([Z("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=xe([Z("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=xe([Z("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=xe([Z("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=xe([Z("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=xe([Z("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=xe([Z("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=xe([Z("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=xe([Z("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=xe([Z("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=xe([Z("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=xe([Z("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=xe([Z("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=xe([Z("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=xe([Z("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=xe([Z("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=xe([Z("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=xe([Z("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=xe([Z("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=xe([Z("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends nl{};exports.LegacyInputGuide=xe([Z("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=xe([Z("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=xe([Z("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=xe([Z("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=xe([Z("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=xe([Z("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=xe([Z("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=xe([Z("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=xe([Z("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=xe([Z("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=xe([Z("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=xe([Z("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=xe([Z("sp-labeled-input")],exports.LegacyLabeledInput);const r4=le("date-range");var LO=Object.defineProperty,SO=Object.getOwnPropertyDescriptor,t1=(n,e,i,o)=>{for(var l=o>1?void 0:o?SO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&LO(e,i,l),l};exports.DateRange=class extends Ce{constructor(){super(...arguments),this.dateFormat="MonthDayYear"}formatDateRange(){if(!this.start||!this.end)return"No date range set";const e=Ee.fromISO(this.start),i=Ee.fromISO(this.end);if(!e.isValid||!i.isValid)return"Invalid date range";const o=this.dateFormat==="MonthDayYear",l=e.month===i.month&&e.year===i.year,d=e.year===i.year;if(e.hasSame(i,"day"))return pl(e.toFormat(o?"MMM d, yyyy":"d MMM yyyy"));let u,v;o?l?(u="MMM d",v="d, yyyy"):d?(u="MMM d",v="MMM d, yyyy"):(u="MMM d, yyyy",v="MMM d, yyyy"):l?(u="d",v="d MMM yyyy"):d?(u="d MMM",v="d MMM yyyy"):(u="d MMM yyyy",v="d MMM yyyy");const b=`${e.toFormat(u)} - ${i.toFormat(v)}`;return pl(b)}render(){return N`<span>${this.formatDateRange()}</span>`}};t1([$({type:String})],exports.DateRange.prototype,"start",2);t1([$({type:String})],exports.DateRange.prototype,"end",2);t1([$({attribute:"date-format",type:String})],exports.DateRange.prototype,"dateFormat",2);exports.DateRange=t1([Z(r4)],exports.DateRange);const i4=le("date-time-range"),yl="a",MO="ccc d LLL",TO="ccc LLL d",Vu="ZZZZ";var kO=Object.defineProperty,OO=Object.getOwnPropertyDescriptor,To=(n,e,i,o)=>{for(var l=o>1?void 0:o?OO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&kO(e,i,l),l};class Zi extends Ce{constructor(){super(...arguments),this.hideTimezone=!1,this.timeOnly=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";if(QM(this.start,this.end,this.timezone))return this.hideTimezone||!this.timezone?"All day":`All day (${yc(Ee.fromISO(this.start),this.timezone).toFormat(Vu)})`;const e=yc(Ee.fromISO(this.start),this.timezone),i=yc(Ee.fromISO(this.end),this.timezone),o=this.dateFormat==="DayMonthYear"?MO:TO,{start:l,end:d}=this.getStartAndEndDateTimeTokens(e,i,o),u=(m,M)=>{const{dateFormat:L,year:T,minutes:E,ampm:H,timezone:Y=""}=M,_=`${L?`${L}${T}, `:""}${E}${H}${Y}`;return m.toFormat(_)},v=pl(u(e,l)),b=pl(u(i,d));return`${v} - ${b}`}render(){return N`<span>${this.generateContent()}</span>`}}To([$({type:String})],Zi.prototype,"start",2);To([$({type:String})],Zi.prototype,"end",2);To([$({type:String})],Zi.prototype,"timezone",2);To([$({attribute:"hide-timezone",type:Boolean})],Zi.prototype,"hideTimezone",2);To([$({attribute:"time-only",type:Boolean})],Zi.prototype,"timeOnly",2);To([$({attribute:"date-format",type:String})],Zi.prototype,"dateFormat",2);var $O=Object.defineProperty,EO=Object.getOwnPropertyDescriptor,_O=(n,e,i,o)=>{for(var l=o>1?void 0:o?EO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&$O(e,i,l),l};exports.DateTimeRange=class extends Zi{getStartAndEndDateTimeTokens(e,i,o){const l={minutes:gl(e),year:vl(e,i),dateFormat:o,ampm:e.hasSame(i,"day")&&Q5(e,i)?"":yl},d={minutes:gl(i),year:vl(i,e),dateFormat:e.hasSame(i,"day")?"":o,ampm:yl,timezone:this.hideTimezone?"":` (${Vu})`};return{start:l,end:d}}};exports.DateTimeRange=_O([Z(i4)],exports.DateTimeRange);const n4=le("time-range");var AO=Object.defineProperty,IO=Object.getOwnPropertyDescriptor,PO=(n,e,i,o)=>{for(var l=o>1?void 0:o?IO(e,i):e,d=n.length-1,u;d>=0;d--)(u=n[d])&&(l=(o?u(e,i,l):u(l))||l);return o&&l&&AO(e,i,l),l};exports.TimeRange=class extends Zi{getStartAndEndDateTimeTokens(e,i,o){const l=e.hasSame(i,"day"),d=this.timeOnly?!1:!l,u=this.timeOnly||!l||!Q5(e,i),v={minutes:gl(e),year:d?vl(e,i):"",dateFormat:d?o:"",ampm:u?yl:""},b={minutes:gl(i),year:d?vl(i,e):"",dateFormat:d?o:"",ampm:yl,timezone:this.hideTimezone?"":` (${Vu})`};return{start:v,end:b}}};exports.TimeRange=PO([Z(n4)],exports.TimeRange);exports.ACTION_BAR=Op;exports.ALERT=I6;exports.AVATAR=L2;exports.AVATAR_GROUP=S2;exports.AlertEvent=P6;exports.AvatarSize=el;exports.AvatarTheme=M2;exports.BADGE=k6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=$6;exports.BADGE_NUMBER_LIMIT_DEFAULT=E6;exports.BASIC_PAGINATION=Nu;exports.BUTTON=du;exports.BUTTON_GROUP=D2;exports.BadgeTheme=O6;exports.BasicPaginationEvent=_6;exports.ButtonEvent=N2;exports.CARD=Y6;exports.CARD_FOOTER=J6;exports.CARD_HEADER=X6;exports.CARD_SECTION_HEADER=Q6;exports.COLUMN=A2;exports.COMBO_BOX=yp;exports.COMBO_BOX_OPTION=Cp;exports.CONFIRMATION_DIALOG=Ip;exports.ConfirmationDialogCancel=Pp;exports.ConfirmationDialogConfirm=Dp;exports.DATE_RANGE=r4;exports.DATE_TIME_RANGE=i4;exports.DIVIDER=H6;exports.DROPDOWN_BUTTON=Np;exports.DROPDOWN_MENU=H2;exports.DeleteLozengeEvent=Xp;exports.DividerOrientation=R6;exports.DividerSpacing=F6;exports.FADE_IN_OUT=o2;exports.FOOTER=U6;exports.GLOBAL_STYLES=K6;exports.GRID=G6;exports.GRID_ITEM=q6;exports.HEADER=V6;exports.HEADER_FOOTER_PAGE=Z6;exports.HEADING=l6;exports.ICON=O2;exports.ILLUSTRATION=B6;exports.INLINE_EDIT_CONTROLS=u6;exports.INLINE_EDIT_FIELD=c6;exports.INLINE_EDIT_GROUP=_u;exports.INPUT_CHECKBOX=Hp;exports.INPUT_CODE=qp;exports.INPUT_ERROR=dp;exports.INPUT_LABEL=fp;exports.INPUT_MULTISELECT=Jp;exports.INPUT_NUMBER=Bp;exports.INPUT_RADIO_GROUP=Wp;exports.INPUT_RADIO_OPTION=Up;exports.INPUT_SELECT=Kp;exports.INPUT_TEXT=Rp;exports.INPUT_TEXTAREA=Fp;exports.INPUT_TIME=t6;exports.InlineEditControlsCancelEvent=h6;exports.InlineEditControlsSaveEvent=f6;exports.InlineEditFieldBroadcastEvent=p6;exports.InlineEditFieldModeChangeEvent=g6;exports.InlineEditGroupModeChangeEvent=v6;exports.InputBase=tr;exports.InputSelectBase=bt;exports.InputSelectQueryChangeEvent=xu;exports.LABELED_INPUT=hp;exports.LINK=$2;exports.LINK_BUTTON=E2;exports.LOADING_SPINNER=P2;exports.LOZENGE=Yp;exports.MENU=gp;exports.MENU_ITEM=ol;exports.MODAL=Tp;exports.MODAL_BODY=Ep;exports.MODAL_FOOTER=_p;exports.MODAL_HEADER=$p;exports.MenuBlurEvent=vp;exports.MenuItemSelectEvent=pp;exports.MenuSelectEvent=bp;exports.ModalCloseEvent=zu;exports.PAGE_HEADER=j6;exports.PAGINATION=Hu;exports.PAPER=t4;exports.POPOVER=ou;exports.POPOVER_LISTENABLE_EVENT_TYPES=Qs;exports.POPOVER_ROLES=au;exports.POPOVER_TRIGGERS=C2;exports.PURE_POPOVER=y2;exports.PaginationEvent=A6;exports.PopoverEvent=w2;exports.RECORD_FIELD=cp;exports.RECORD_FIELD_LABEL=up;exports.RECORD_ROW=w6;exports.RECORD_ROW_LABEL=x6;exports.RESPONSIVE_COLUMNS=W6;exports.ROW=_2;exports.SEARCH_MESSAGE_ID=Oa;exports.SELECT_ALL_ID=kr;exports.SIDE_NAVIGATION=y6;exports.SIDE_NAVIGATION_ITEM=m6;exports.SKELETON=D6;exports.SPACING_BASE=su;exports.SPLIT_ROW=kp;exports.SkeletonVariant=N6;exports.TAB=S6;exports.TABS=T6;exports.TAB_BAR=M6;exports.TAB_PANEL=z6;exports.TIME_FORMAT=r6;exports.TIME_RANGE=n4;exports.TIME_REGEX_12H=o6;exports.TIME_REGEX_24H=n6;exports.TIME_REGEX_LOOSE=i6;exports.TOGGLE_SWITCH=s6;exports.TOOLTIP=x2;exports.TabDeselectedEvent=L6;exports.TabSelectedEvent=Ul;exports.TooltipTheme=z2;exports.VIRTUAL_LIST=Cu;exports.VirtualListUpdateEvent=lp;exports.alertTypes=bk;exports.buttonTypes=K9;exports.click=Js;exports.columnSpans=e1;exports.dropdownMenuSizes=Q9;exports.focus=dn;exports.hover=_c;exports.iconNames=I9;exports.icons=lu;exports.illustrationNames=xk;exports.illustrations=Fu;exports.inlineEditControlsModes=d6;exports.inlineEditModes=hT;exports.inputSizes=iz;exports.labelPositions=nz;exports.labelSizes=oz;exports.linkButtonElementTypes=R9;exports.linkTypes=V9;exports.lozengeColors=KL;exports.lozengeSizes=XL;exports.lozengeThemes=YL;exports.modalSizes=dL;exports.radioLayouts=PL;exports.resetLinkStyle=uu;exports.spacing=T2;exports.spacingLevels=Ia;exports.syntaxes=WL;exports.timeSuffixes=iT;exports.transformIcon=k2;