@skedulo/breeze-ui 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/lib/breeze-ui.cjs +221 -180
  2. package/lib/breeze-ui.js +9673 -9554
  3. package/package.json +1 -1
  4. package/types/animation/fade-in-out.d.ts +4 -3
  5. package/types/animation/fade-in-out.d.ts.map +1 -1
  6. package/types/components/avatar.d.ts +1 -1
  7. package/types/components/avatar.d.ts.map +1 -1
  8. package/types/components/badge.d.ts +6 -5
  9. package/types/components/badge.d.ts.map +1 -1
  10. package/types/components/buttons.d.ts +14 -12
  11. package/types/components/buttons.d.ts.map +1 -1
  12. package/types/components/combo-box.d.ts +4 -3
  13. package/types/components/combo-box.d.ts.map +1 -1
  14. package/types/components/confirmation-dialog.d.ts +2 -3
  15. package/types/components/confirmation-dialog.d.ts.map +1 -1
  16. package/types/components/form-elements/input-checkbox.d.ts +1 -1
  17. package/types/components/form-elements/input-checkbox.d.ts.map +1 -1
  18. package/types/components/form-elements/input-code.d.ts +1 -1
  19. package/types/components/form-elements/input-code.d.ts.map +1 -1
  20. package/types/components/form-elements/input-multiselect.d.ts +1 -1
  21. package/types/components/form-elements/input-multiselect.d.ts.map +1 -1
  22. package/types/components/form-elements/input-number.d.ts +1 -2
  23. package/types/components/form-elements/input-number.d.ts.map +1 -1
  24. package/types/components/form-elements/input-radio.d.ts +2 -2
  25. package/types/components/form-elements/input-radio.d.ts.map +1 -1
  26. package/types/components/form-elements/input-select-base.d.ts +1 -1
  27. package/types/components/form-elements/input-select-base.d.ts.map +1 -1
  28. package/types/components/form-elements/input-text.d.ts +1 -2
  29. package/types/components/form-elements/input-text.d.ts.map +1 -1
  30. package/types/components/form-elements/input-textarea.d.ts +1 -2
  31. package/types/components/form-elements/input-textarea.d.ts.map +1 -1
  32. package/types/components/heading.d.ts +5 -4
  33. package/types/components/heading.d.ts.map +1 -1
  34. package/types/components/icon/icon.d.ts +5 -4
  35. package/types/components/icon/icon.d.ts.map +1 -1
  36. package/types/components/illustration/illustration.d.ts +6 -5
  37. package/types/components/illustration/illustration.d.ts.map +1 -1
  38. package/types/components/legacy-scoped-components.d.ts +146 -6
  39. package/types/components/legacy-scoped-components.d.ts.map +1 -1
  40. package/types/components/links.d.ts +13 -11
  41. package/types/components/links.d.ts.map +1 -1
  42. package/types/components/loading.d.ts +4 -3
  43. package/types/components/loading.d.ts.map +1 -1
  44. package/types/components/lozenge.d.ts +67 -17
  45. package/types/components/lozenge.d.ts.map +1 -1
  46. package/types/components/lozenge.test.d.ts +2 -0
  47. package/types/components/lozenge.test.d.ts.map +1 -0
  48. package/types/components/modal/layout.d.ts +2 -3
  49. package/types/components/modal/layout.d.ts.map +1 -1
  50. package/types/components/modal/modal.d.ts +6 -5
  51. package/types/components/modal/modal.d.ts.map +1 -1
  52. package/types/components/navigation/side-navigation-item.d.ts +7 -6
  53. package/types/components/navigation/side-navigation-item.d.ts.map +1 -1
  54. package/types/components/pagination.d.ts +2 -2
  55. package/types/components/pagination.d.ts.map +1 -1
  56. package/types/components/popover.d.ts +3 -1
  57. package/types/components/popover.d.ts.map +1 -1
  58. package/types/components/tabs/index.d.ts +4 -3
  59. package/types/components/tabs/index.d.ts.map +1 -1
  60. package/types/components/tabs/panel.d.ts +5 -4
  61. package/types/components/tabs/panel.d.ts.map +1 -1
  62. package/types/components/tabs/tab-bar.d.ts +5 -4
  63. package/types/components/tabs/tab-bar.d.ts.map +1 -1
  64. package/types/components/tabs/tab.d.ts +6 -5
  65. package/types/components/tabs/tab.d.ts.map +1 -1
  66. package/types/components/tooltip.d.ts +2 -1
  67. package/types/components/tooltip.d.ts.map +1 -1
  68. package/types/layout/flex.d.ts +8 -6
  69. package/types/layout/flex.d.ts.map +1 -1
  70. package/types/layout/split-row.d.ts +14 -12
  71. package/types/layout/split-row.d.ts.map +1 -1
  72. package/types/styles/spacing.d.ts.map +1 -1
package/lib/breeze-ui.cjs CHANGED
@@ -1,40 +1,52 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function bg(r,n){for(var o=0;o<n.length;o++){const c=n[o];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in r)){const g=Object.getOwnPropertyDescriptor(c,f);g&&Object.defineProperty(r,f,g.get?g:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}/**
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function vg(r,n){for(var o=0;o<n.length;o++){const c=n[o];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in r)){const p=Object.getOwnPropertyDescriptor(c,f);p&&Object.defineProperty(r,f,p.get?p:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const p1=window,Ad=p1.ShadowRoot&&(p1.ShadyCSS===void 0||p1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ed=Symbol(),ip=new WeakMap;class Np{constructor(n,o,c){if(this._$cssResult$=!0,c!==Ed)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=o}get styleSheet(){let n=this.o;const o=this.t;if(Ad&&n===void 0){const c=o!==void 0&&o.length===1;c&&(n=ip.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),c&&ip.set(o,n))}return n}toString(){return this.cssText}}const $p=r=>new Np(typeof r=="string"?r:r+"",void 0,Ed),Se=(r,...n)=>{const o=r.length===1?r[0]:n.reduce((c,f,g)=>c+(b=>{if(b._$cssResult$===!0)return b.cssText;if(typeof b=="number")return b;throw Error("Value passed to 'css' function must be a 'css' function result: "+b+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(f)+r[g+1],r[0]);return new Np(o,r,Ed)},mg=(r,n)=>{Ad?r.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):n.forEach(o=>{const c=document.createElement("style"),f=p1.litNonce;f!==void 0&&c.setAttribute("nonce",f),c.textContent=o.cssText,r.appendChild(c)})},op=Ad?r=>r:r=>r instanceof CSSStyleSheet?(n=>{let o="";for(const c of n.cssRules)o+=c.cssText;return $p(o)})(r):r;/**
5
+ */const p1=window,Pd=p1.ShadowRoot&&(p1.ShadyCSS===void 0||p1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ad=Symbol(),ip=new WeakMap;class Rp{constructor(n,o,c){if(this._$cssResult$=!0,c!==Ad)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=o}get styleSheet(){let n=this.o;const o=this.t;if(Pd&&n===void 0){const c=o!==void 0&&o.length===1;c&&(n=ip.get(o)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),c&&ip.set(o,n))}return n}toString(){return this.cssText}}const Np=r=>new Rp(typeof r=="string"?r:r+"",void 0,Ad),Se=(r,...n)=>{const o=r.length===1?r[0]:n.reduce((c,f,p)=>c+(b=>{if(b._$cssResult$===!0)return b.cssText;if(typeof b=="number")return b;throw Error("Value passed to 'css' function must be a 'css' function result: "+b+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(f)+r[p+1],r[0]);return new Rp(o,r,Ad)},bg=(r,n)=>{Pd?r.adoptedStyleSheets=n.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):n.forEach(o=>{const c=document.createElement("style"),f=p1.litNonce;f!==void 0&&c.setAttribute("nonce",f),c.textContent=o.cssText,r.appendChild(c)})},op=Pd?r=>r:r=>r instanceof CSSStyleSheet?(n=>{let o="";for(const c of n.cssRules)o+=c.cssText;return Np(o)})(r):r;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var id;const y1=window,ap=y1.trustedTypes,yg=ap?ap.emptyScript:"",sp=y1.reactiveElementPolyfillSupport,bd={toAttribute(r,n){switch(n){case Boolean:r=r?yg:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,n){let o=r;switch(n){case Boolean:o=r!==null;break;case Number:o=r===null?null:Number(r);break;case Object:case Array:try{o=JSON.parse(r)}catch{o=null}}return o}},Hp=(r,n)=>n!==r&&(n==n||r==r),od={attribute:!0,type:String,converter:bd,reflect:!1,hasChanged:Hp};class Xl extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(n){var o;this.finalize(),((o=this.h)!==null&&o!==void 0?o:this.h=[]).push(n)}static get observedAttributes(){this.finalize();const n=[];return this.elementProperties.forEach((o,c)=>{const f=this._$Ep(c,o);f!==void 0&&(this._$Ev.set(f,c),n.push(f))}),n}static createProperty(n,o=od){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(n,o),!o.noAccessor&&!this.prototype.hasOwnProperty(n)){const c=typeof n=="symbol"?Symbol():"__"+n,f=this.getPropertyDescriptor(n,c,o);f!==void 0&&Object.defineProperty(this.prototype,n,f)}}static getPropertyDescriptor(n,o,c){return{get(){return this[o]},set(f){const g=this[n];this[o]=f,this.requestUpdate(n,g,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)||od}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const n=Object.getPrototypeOf(this);if(n.finalize(),n.h!==void 0&&(this.h=[...n.h]),this.elementProperties=new Map(n.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const o=this.properties,c=[...Object.getOwnPropertyNames(o),...Object.getOwnPropertySymbols(o)];for(const f of c)this.createProperty(f,o[f])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(n){const o=[];if(Array.isArray(n)){const c=new Set(n.flat(1/0).reverse());for(const f of c)o.unshift(op(f))}else n!==void 0&&o.push(op(n));return o}static _$Ep(n,o){const c=o.attribute;return c===!1?void 0:typeof c=="string"?c:typeof n=="string"?n.toLowerCase():void 0}u(){var n;this._$E_=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(n=this.constructor.h)===null||n===void 0||n.forEach(o=>o(this))}addController(n){var o,c;((o=this._$ES)!==null&&o!==void 0?o:this._$ES=[]).push(n),this.renderRoot!==void 0&&this.isConnected&&((c=n.hostConnected)===null||c===void 0||c.call(n))}removeController(n){var o;(o=this._$ES)===null||o===void 0||o.splice(this._$ES.indexOf(n)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((n,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])})}createRenderRoot(){var n;const o=(n=this.shadowRoot)!==null&&n!==void 0?n:this.attachShadow(this.constructor.shadowRootOptions);return mg(o,this.constructor.elementStyles),o}connectedCallback(){var n;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostConnected)===null||c===void 0?void 0:c.call(o)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostDisconnected)===null||c===void 0?void 0:c.call(o)})}attributeChangedCallback(n,o,c){this._$AK(n,c)}_$EO(n,o,c=od){var f;const g=this.constructor._$Ep(n,c);if(g!==void 0&&c.reflect===!0){const b=(((f=c.converter)===null||f===void 0?void 0:f.toAttribute)!==void 0?c.converter:bd).toAttribute(o,c.type);this._$El=n,b==null?this.removeAttribute(g):this.setAttribute(g,b),this._$El=null}}_$AK(n,o){var c;const f=this.constructor,g=f._$Ev.get(n);if(g!==void 0&&this._$El!==g){const b=f.getPropertyOptions(g),P=typeof b.converter=="function"?{fromAttribute:b.converter}:((c=b.converter)===null||c===void 0?void 0:c.fromAttribute)!==void 0?b.converter:bd;this._$El=g,this[g]=P.fromAttribute(o,b.type),this._$El=null}}requestUpdate(n,o,c){let f=!0;n!==void 0&&(((c=c||this.constructor.getPropertyOptions(n)).hasChanged||Hp)(this[n],o)?(this._$AL.has(n)||this._$AL.set(n,o),c.reflect===!0&&this._$El!==n&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(n,c))):f=!1),!this.isUpdatePending&&f&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(o){Promise.reject(o)}const n=this.scheduleUpdate();return n!=null&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((f,g)=>this[g]=f),this._$Ei=void 0);let o=!1;const c=this._$AL;try{o=this.shouldUpdate(c),o?(this.willUpdate(c),(n=this._$ES)===null||n===void 0||n.forEach(f=>{var g;return(g=f.hostUpdate)===null||g===void 0?void 0:g.call(f)}),this.update(c)):this._$Ek()}catch(f){throw o=!1,this._$Ek(),f}o&&this._$AE(c)}willUpdate(n){}_$AE(n){var o;(o=this._$ES)===null||o===void 0||o.forEach(c=>{var f;return(f=c.hostUpdated)===null||f===void 0?void 0:f.call(c)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(n){return!0}update(n){this._$EC!==void 0&&(this._$EC.forEach((o,c)=>this._$EO(c,this[c],o)),this._$EC=void 0),this._$Ek()}updated(n){}firstUpdated(n){}}Xl.finalized=!0,Xl.elementProperties=new Map,Xl.elementStyles=[],Xl.shadowRootOptions={mode:"open"},sp==null||sp({ReactiveElement:Xl}),((id=y1.reactiveElementVersions)!==null&&id!==void 0?id:y1.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var id;const y1=window,ap=y1.trustedTypes,mg=ap?ap.emptyScript:"",sp=y1.reactiveElementPolyfillSupport,vd={toAttribute(r,n){switch(n){case Boolean:r=r?mg:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,n){let o=r;switch(n){case Boolean:o=r!==null;break;case Number:o=r===null?null:Number(r);break;case Object:case Array:try{o=JSON.parse(r)}catch{o=null}}return o}},$p=(r,n)=>n!==r&&(n==n||r==r),od={attribute:!0,type:String,converter:vd,reflect:!1,hasChanged:$p};class Xl extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(n){var o;this.finalize(),((o=this.h)!==null&&o!==void 0?o:this.h=[]).push(n)}static get observedAttributes(){this.finalize();const n=[];return this.elementProperties.forEach((o,c)=>{const f=this._$Ep(c,o);f!==void 0&&(this._$Ev.set(f,c),n.push(f))}),n}static createProperty(n,o=od){if(o.state&&(o.attribute=!1),this.finalize(),this.elementProperties.set(n,o),!o.noAccessor&&!this.prototype.hasOwnProperty(n)){const c=typeof n=="symbol"?Symbol():"__"+n,f=this.getPropertyDescriptor(n,c,o);f!==void 0&&Object.defineProperty(this.prototype,n,f)}}static getPropertyDescriptor(n,o,c){return{get(){return this[o]},set(f){const p=this[n];this[o]=f,this.requestUpdate(n,p,c)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)||od}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const n=Object.getPrototypeOf(this);if(n.finalize(),n.h!==void 0&&(this.h=[...n.h]),this.elementProperties=new Map(n.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const o=this.properties,c=[...Object.getOwnPropertyNames(o),...Object.getOwnPropertySymbols(o)];for(const f of c)this.createProperty(f,o[f])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(n){const o=[];if(Array.isArray(n)){const c=new Set(n.flat(1/0).reverse());for(const f of c)o.unshift(op(f))}else n!==void 0&&o.push(op(n));return o}static _$Ep(n,o){const c=o.attribute;return c===!1?void 0:typeof c=="string"?c:typeof n=="string"?n.toLowerCase():void 0}u(){var n;this._$E_=new Promise(o=>this.enableUpdating=o),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(n=this.constructor.h)===null||n===void 0||n.forEach(o=>o(this))}addController(n){var o,c;((o=this._$ES)!==null&&o!==void 0?o:this._$ES=[]).push(n),this.renderRoot!==void 0&&this.isConnected&&((c=n.hostConnected)===null||c===void 0||c.call(n))}removeController(n){var o;(o=this._$ES)===null||o===void 0||o.splice(this._$ES.indexOf(n)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((n,o)=>{this.hasOwnProperty(o)&&(this._$Ei.set(o,this[o]),delete this[o])})}createRenderRoot(){var n;const o=(n=this.shadowRoot)!==null&&n!==void 0?n:this.attachShadow(this.constructor.shadowRootOptions);return bg(o,this.constructor.elementStyles),o}connectedCallback(){var n;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostConnected)===null||c===void 0?void 0:c.call(o)})}enableUpdating(n){}disconnectedCallback(){var n;(n=this._$ES)===null||n===void 0||n.forEach(o=>{var c;return(c=o.hostDisconnected)===null||c===void 0?void 0:c.call(o)})}attributeChangedCallback(n,o,c){this._$AK(n,c)}_$EO(n,o,c=od){var f;const p=this.constructor._$Ep(n,c);if(p!==void 0&&c.reflect===!0){const b=(((f=c.converter)===null||f===void 0?void 0:f.toAttribute)!==void 0?c.converter:vd).toAttribute(o,c.type);this._$El=n,b==null?this.removeAttribute(p):this.setAttribute(p,b),this._$El=null}}_$AK(n,o){var c;const f=this.constructor,p=f._$Ev.get(n);if(p!==void 0&&this._$El!==p){const b=f.getPropertyOptions(p),k=typeof b.converter=="function"?{fromAttribute:b.converter}:((c=b.converter)===null||c===void 0?void 0:c.fromAttribute)!==void 0?b.converter:vd;this._$El=p,this[p]=k.fromAttribute(o,b.type),this._$El=null}}requestUpdate(n,o,c){let f=!0;n!==void 0&&(((c=c||this.constructor.getPropertyOptions(n)).hasChanged||$p)(this[n],o)?(this._$AL.has(n)||this._$AL.set(n,o),c.reflect===!0&&this._$El!==n&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(n,c))):f=!1),!this.isUpdatePending&&f&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(o){Promise.reject(o)}const n=this.scheduleUpdate();return n!=null&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((f,p)=>this[p]=f),this._$Ei=void 0);let o=!1;const c=this._$AL;try{o=this.shouldUpdate(c),o?(this.willUpdate(c),(n=this._$ES)===null||n===void 0||n.forEach(f=>{var p;return(p=f.hostUpdate)===null||p===void 0?void 0:p.call(f)}),this.update(c)):this._$Ek()}catch(f){throw o=!1,this._$Ek(),f}o&&this._$AE(c)}willUpdate(n){}_$AE(n){var o;(o=this._$ES)===null||o===void 0||o.forEach(c=>{var f;return(f=c.hostUpdated)===null||f===void 0?void 0:f.call(c)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(n){return!0}update(n){this._$EC!==void 0&&(this._$EC.forEach((o,c)=>this._$EO(c,this[c],o)),this._$EC=void 0),this._$Ek()}updated(n){}firstUpdated(n){}}Xl.finalized=!0,Xl.elementProperties=new Map,Xl.elementStyles=[],Xl.shadowRootOptions={mode:"open"},sp==null||sp({ReactiveElement:Xl}),((id=y1.reactiveElementVersions)!==null&&id!==void 0?id:y1.reactiveElementVersions=[]).push("1.4.2");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var ad;const C1=window,ou=C1.trustedTypes,lp=ou?ou.createPolicy("lit-html",{createHTML:r=>r}):void 0,na=`lit$${(Math.random()+"").slice(9)}$`,Id="?"+na,Cg=`<${Id}>`,au=document,x0=(r="")=>au.createComment(r),L0=r=>r===null||typeof r!="object"&&typeof r!="function",Bp=Array.isArray,Fp=r=>Bp(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",f0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,up=/-->/g,cp=/>/g,$s=RegExp(`>|[
13
+ */var ad;const C1=window,ou=C1.trustedTypes,lp=ou?ou.createPolicy("lit-html",{createHTML:r=>r}):void 0,ia=`lit$${(Math.random()+"").slice(9)}$`,Ed="?"+ia,yg=`<${Ed}>`,au=document,x0=(r="")=>au.createComment(r),L0=r=>r===null||typeof r!="object"&&typeof r!="function",Hp=Array.isArray,Bp=r=>Hp(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",f0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,up=/-->/g,cp=/>/g,Hs=RegExp(`>|[
14
14
  \f\r](?:([^\\s"'>=/]+)([
15
15
  \f\r]*=[
16
16
  \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),fp=/'/g,dp=/"/g,Wp=/^(?:script|style|textarea|title)$/i,Up=r=>(n,...o)=>({_$litType$:r,strings:n,values:o}),ee=Up(1),G=Up(2),bo=Symbol.for("lit-noChange"),Cr=Symbol.for("lit-nothing"),hp=new WeakMap,tu=au.createTreeWalker(au,129,null,!1),Yp=(r,n)=>{const o=r.length-1,c=[];let f,g=n===2?"<svg>":"",b=f0;for(let S=0;S<o;S++){const k=r[S];let I,U,q=-1,X=0;for(;X<k.length&&(b.lastIndex=X,U=b.exec(k),U!==null);)X=b.lastIndex,b===f0?U[1]==="!--"?b=up:U[1]!==void 0?b=cp:U[2]!==void 0?(Wp.test(U[2])&&(f=RegExp("</"+U[2],"g")),b=$s):U[3]!==void 0&&(b=$s):b===$s?U[0]===">"?(b=f!=null?f:f0,q=-1):U[1]===void 0?q=-2:(q=b.lastIndex-U[2].length,I=U[1],b=U[3]===void 0?$s:U[3]==='"'?dp:fp):b===dp||b===fp?b=$s:b===up||b===cp?b=f0:(b=$s,f=void 0);const ce=b===$s&&r[S+1].startsWith("/>")?" ":"";g+=b===f0?k+Cg:q>=0?(c.push(I),k.slice(0,q)+"$lit$"+k.slice(q)+na+ce):k+na+(q===-2?(c.push(void 0),S):ce)}const P=g+(r[o]||"<?>")+(n===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[lp!==void 0?lp.createHTML(P):P,c]};class _0{constructor({strings:n,_$litType$:o},c){let f;this.parts=[];let g=0,b=0;const P=n.length-1,S=this.parts,[k,I]=Yp(n,o);if(this.el=_0.createElement(k,c),tu.currentNode=this.el.content,o===2){const U=this.el.content,q=U.firstChild;q.remove(),U.append(...q.childNodes)}for(;(f=tu.nextNode())!==null&&S.length<P;){if(f.nodeType===1){if(f.hasAttributes()){const U=[];for(const q of f.getAttributeNames())if(q.endsWith("$lit$")||q.startsWith(na)){const X=I[b++];if(U.push(q),X!==void 0){const ce=f.getAttribute(X.toLowerCase()+"$lit$").split(na),we=/([.?@])?(.*)/.exec(X);S.push({type:1,index:g,name:we[2],strings:ce,ctor:we[1]==="."?Vp:we[1]==="?"?Gp:we[1]==="@"?qp:P0})}else S.push({type:6,index:g})}for(const q of U)f.removeAttribute(q)}if(Wp.test(f.tagName)){const U=f.textContent.split(na),q=U.length-1;if(q>0){f.textContent=ou?ou.emptyScript:"";for(let X=0;X<q;X++)f.append(U[X],x0()),tu.nextNode(),S.push({type:2,index:++g});f.append(U[q],x0())}}}else if(f.nodeType===8)if(f.data===Id)S.push({type:2,index:g});else{let U=-1;for(;(U=f.data.indexOf(na,U+1))!==-1;)S.push({type:7,index:g}),U+=na.length-1}g++}}static createElement(n,o){const c=au.createElement("template");return c.innerHTML=n,c}}function Vs(r,n,o=r,c){var f,g,b,P;if(n===bo)return n;let S=c!==void 0?(f=o._$Co)===null||f===void 0?void 0:f[c]:o._$Cl;const k=L0(n)?void 0:n._$litDirective$;return(S==null?void 0:S.constructor)!==k&&((g=S==null?void 0:S._$AO)===null||g===void 0||g.call(S,!1),k===void 0?S=void 0:(S=new k(r),S._$AT(r,o,c)),c!==void 0?((b=(P=o)._$Co)!==null&&b!==void 0?b:P._$Co=[])[c]=S:o._$Cl=S),S!==void 0&&(n=Vs(r,S._$AS(r,n.values),S,c)),n}class Zp{constructor(n,o){this.u=[],this._$AN=void 0,this._$AD=n,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(n){var o;const{el:{content:c},parts:f}=this._$AD,g=((o=n==null?void 0:n.creationScope)!==null&&o!==void 0?o:au).importNode(c,!0);tu.currentNode=g;let b=tu.nextNode(),P=0,S=0,k=f[0];for(;k!==void 0;){if(P===k.index){let I;k.type===2?I=new fu(b,b.nextSibling,this,n):k.type===1?I=new k.ctor(b,k.name,k.strings,this,n):k.type===6&&(I=new jp(b,this,n)),this.u.push(I),k=f[++S]}P!==(k==null?void 0:k.index)&&(b=tu.nextNode(),P++)}return g}p(n){let o=0;for(const c of this.u)c!==void 0&&(c.strings!==void 0?(c._$AI(n,c,o),o+=c.strings.length-2):c._$AI(n[o])),o++}}class fu{constructor(n,o,c,f){var g;this.type=2,this._$AH=Cr,this._$AN=void 0,this._$AA=n,this._$AB=o,this._$AM=c,this.options=f,this._$Cm=(g=f==null?void 0:f.isConnected)===null||g===void 0||g}get _$AU(){var n,o;return(o=(n=this._$AM)===null||n===void 0?void 0:n._$AU)!==null&&o!==void 0?o:this._$Cm}get parentNode(){let n=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&n.nodeType===11&&(n=o.parentNode),n}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(n,o=this){n=Vs(this,n,o),L0(n)?n===Cr||n==null||n===""?(this._$AH!==Cr&&this._$AR(),this._$AH=Cr):n!==this._$AH&&n!==bo&&this.g(n):n._$litType$!==void 0?this.$(n):n.nodeType!==void 0?this.T(n):Fp(n)?this.k(n):this.g(n)}O(n,o=this._$AB){return this._$AA.parentNode.insertBefore(n,o)}T(n){this._$AH!==n&&(this._$AR(),this._$AH=this.O(n))}g(n){this._$AH!==Cr&&L0(this._$AH)?this._$AA.nextSibling.data=n:this.T(au.createTextNode(n)),this._$AH=n}$(n){var o;const{values:c,_$litType$:f}=n,g=typeof f=="number"?this._$AC(n):(f.el===void 0&&(f.el=_0.createElement(f.h,this.options)),f);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===g)this._$AH.p(c);else{const b=new Zp(g,this),P=b.v(this.options);b.p(c),this.T(P),this._$AH=b}}_$AC(n){let o=hp.get(n.strings);return o===void 0&&hp.set(n.strings,o=new _0(n)),o}k(n){Bp(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let c,f=0;for(const g of n)f===o.length?o.push(c=new fu(this.O(x0()),this.O(x0()),this,this.options)):c=o[f],c._$AI(g),f++;f<o.length&&(this._$AR(c&&c._$AB.nextSibling,f),o.length=f)}_$AR(n=this._$AA.nextSibling,o){var c;for((c=this._$AP)===null||c===void 0||c.call(this,!1,!0,o);n&&n!==this._$AB;){const f=n.nextSibling;n.remove(),n=f}}setConnected(n){var o;this._$AM===void 0&&(this._$Cm=n,(o=this._$AP)===null||o===void 0||o.call(this,n))}}class P0{constructor(n,o,c,f,g){this.type=1,this._$AH=Cr,this._$AN=void 0,this.element=n,this.name=o,this._$AM=f,this.options=g,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=Cr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,o=this,c,f){const g=this.strings;let b=!1;if(g===void 0)n=Vs(this,n,o,0),b=!L0(n)||n!==this._$AH&&n!==bo,b&&(this._$AH=n);else{const P=n;let S,k;for(n=g[0],S=0;S<g.length-1;S++)k=Vs(this,P[c+S],o,S),k===bo&&(k=this._$AH[S]),b||(b=!L0(k)||k!==this._$AH[S]),k===Cr?n=Cr:n!==Cr&&(n+=(k!=null?k:"")+g[S+1]),this._$AH[S]=k}b&&!f&&this.j(n)}j(n){n===Cr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n!=null?n:"")}}class Vp extends P0{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===Cr?void 0:n}}const wg=ou?ou.emptyScript:"";class Gp extends P0{constructor(){super(...arguments),this.type=4}j(n){n&&n!==Cr?this.element.setAttribute(this.name,wg):this.element.removeAttribute(this.name)}}class qp extends P0{constructor(n,o,c,f,g){super(n,o,c,f,g),this.type=5}_$AI(n,o=this){var c;if((n=(c=Vs(this,n,o,0))!==null&&c!==void 0?c:Cr)===bo)return;const f=this._$AH,g=n===Cr&&f!==Cr||n.capture!==f.capture||n.once!==f.once||n.passive!==f.passive,b=n!==Cr&&(f===Cr||g);g&&this.element.removeEventListener(this.name,this,f),b&&this.element.addEventListener(this.name,this,n),this._$AH=n}handleEvent(n){var o,c;typeof this._$AH=="function"?this._$AH.call((c=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&c!==void 0?c:this.element,n):this._$AH.handleEvent(n)}}class jp{constructor(n,o,c){this.element=n,this.type=6,this._$AN=void 0,this._$AM=o,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(n){Vs(this,n)}}const xg={P:"$lit$",A:na,M:Id,C:1,L:Yp,R:Zp,D:Fp,V:Vs,I:fu,H:P0,N:Gp,U:qp,B:Vp,F:jp},pp=C1.litHtmlPolyfillSupport;pp==null||pp(_0,fu),((ad=C1.litHtmlVersions)!==null&&ad!==void 0?ad:C1.litHtmlVersions=[]).push("2.4.0");const Kp=(r,n,o)=>{var c,f;const g=(c=o==null?void 0:o.renderBefore)!==null&&c!==void 0?c:n;let b=g._$litPart$;if(b===void 0){const P=(f=o==null?void 0:o.renderBefore)!==null&&f!==void 0?f:null;g._$litPart$=b=new fu(n.insertBefore(x0(),P),P,void 0,o!=null?o:{})}return b._$AI(r),b};/**
17
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),fp=/'/g,dp=/"/g,Fp=/^(?:script|style|textarea|title)$/i,Wp=r=>(n,...o)=>({_$litType$:r,strings:n,values:o}),ee=Wp(1),G=Wp(2),mo=Symbol.for("lit-noChange"),Cr=Symbol.for("lit-nothing"),hp=new WeakMap,tu=au.createTreeWalker(au,129,null,!1),Up=(r,n)=>{const o=r.length-1,c=[];let f,p=n===2?"<svg>":"",b=f0;for(let S=0;S<o;S++){const O=r[S];let I,U,q=-1,X=0;for(;X<O.length&&(b.lastIndex=X,U=b.exec(O),U!==null);)X=b.lastIndex,b===f0?U[1]==="!--"?b=up:U[1]!==void 0?b=cp:U[2]!==void 0?(Fp.test(U[2])&&(f=RegExp("</"+U[2],"g")),b=Hs):U[3]!==void 0&&(b=Hs):b===Hs?U[0]===">"?(b=f!=null?f:f0,q=-1):U[1]===void 0?q=-2:(q=b.lastIndex-U[2].length,I=U[1],b=U[3]===void 0?Hs:U[3]==='"'?dp:fp):b===dp||b===fp?b=Hs:b===up||b===cp?b=f0:(b=Hs,f=void 0);const ce=b===Hs&&r[S+1].startsWith("/>")?" ":"";p+=b===f0?O+yg:q>=0?(c.push(I),O.slice(0,q)+"$lit$"+O.slice(q)+ia+ce):O+ia+(q===-2?(c.push(void 0),S):ce)}const k=p+(r[o]||"<?>")+(n===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[lp!==void 0?lp.createHTML(k):k,c]};class _0{constructor({strings:n,_$litType$:o},c){let f;this.parts=[];let p=0,b=0;const k=n.length-1,S=this.parts,[O,I]=Up(n,o);if(this.el=_0.createElement(O,c),tu.currentNode=this.el.content,o===2){const U=this.el.content,q=U.firstChild;q.remove(),U.append(...q.childNodes)}for(;(f=tu.nextNode())!==null&&S.length<k;){if(f.nodeType===1){if(f.hasAttributes()){const U=[];for(const q of f.getAttributeNames())if(q.endsWith("$lit$")||q.startsWith(ia)){const X=I[b++];if(U.push(q),X!==void 0){const ce=f.getAttribute(X.toLowerCase()+"$lit$").split(ia),we=/([.?@])?(.*)/.exec(X);S.push({type:1,index:p,name:we[2],strings:ce,ctor:we[1]==="."?Zp:we[1]==="?"?Vp:we[1]==="@"?Gp:P0})}else S.push({type:6,index:p})}for(const q of U)f.removeAttribute(q)}if(Fp.test(f.tagName)){const U=f.textContent.split(ia),q=U.length-1;if(q>0){f.textContent=ou?ou.emptyScript:"";for(let X=0;X<q;X++)f.append(U[X],x0()),tu.nextNode(),S.push({type:2,index:++p});f.append(U[q],x0())}}}else if(f.nodeType===8)if(f.data===Ed)S.push({type:2,index:p});else{let U=-1;for(;(U=f.data.indexOf(ia,U+1))!==-1;)S.push({type:7,index:p}),U+=ia.length-1}p++}}static createElement(n,o){const c=au.createElement("template");return c.innerHTML=n,c}}function Gs(r,n,o=r,c){var f,p,b,k;if(n===mo)return n;let S=c!==void 0?(f=o._$Co)===null||f===void 0?void 0:f[c]:o._$Cl;const O=L0(n)?void 0:n._$litDirective$;return(S==null?void 0:S.constructor)!==O&&((p=S==null?void 0:S._$AO)===null||p===void 0||p.call(S,!1),O===void 0?S=void 0:(S=new O(r),S._$AT(r,o,c)),c!==void 0?((b=(k=o)._$Co)!==null&&b!==void 0?b:k._$Co=[])[c]=S:o._$Cl=S),S!==void 0&&(n=Gs(r,S._$AS(r,n.values),S,c)),n}class Yp{constructor(n,o){this.u=[],this._$AN=void 0,this._$AD=n,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(n){var o;const{el:{content:c},parts:f}=this._$AD,p=((o=n==null?void 0:n.creationScope)!==null&&o!==void 0?o:au).importNode(c,!0);tu.currentNode=p;let b=tu.nextNode(),k=0,S=0,O=f[0];for(;O!==void 0;){if(k===O.index){let I;O.type===2?I=new fu(b,b.nextSibling,this,n):O.type===1?I=new O.ctor(b,O.name,O.strings,this,n):O.type===6&&(I=new qp(b,this,n)),this.u.push(I),O=f[++S]}k!==(O==null?void 0:O.index)&&(b=tu.nextNode(),k++)}return p}p(n){let o=0;for(const c of this.u)c!==void 0&&(c.strings!==void 0?(c._$AI(n,c,o),o+=c.strings.length-2):c._$AI(n[o])),o++}}class fu{constructor(n,o,c,f){var p;this.type=2,this._$AH=Cr,this._$AN=void 0,this._$AA=n,this._$AB=o,this._$AM=c,this.options=f,this._$Cm=(p=f==null?void 0:f.isConnected)===null||p===void 0||p}get _$AU(){var n,o;return(o=(n=this._$AM)===null||n===void 0?void 0:n._$AU)!==null&&o!==void 0?o:this._$Cm}get parentNode(){let n=this._$AA.parentNode;const o=this._$AM;return o!==void 0&&n.nodeType===11&&(n=o.parentNode),n}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(n,o=this){n=Gs(this,n,o),L0(n)?n===Cr||n==null||n===""?(this._$AH!==Cr&&this._$AR(),this._$AH=Cr):n!==this._$AH&&n!==mo&&this.g(n):n._$litType$!==void 0?this.$(n):n.nodeType!==void 0?this.T(n):Bp(n)?this.k(n):this.g(n)}O(n,o=this._$AB){return this._$AA.parentNode.insertBefore(n,o)}T(n){this._$AH!==n&&(this._$AR(),this._$AH=this.O(n))}g(n){this._$AH!==Cr&&L0(this._$AH)?this._$AA.nextSibling.data=n:this.T(au.createTextNode(n)),this._$AH=n}$(n){var o;const{values:c,_$litType$:f}=n,p=typeof f=="number"?this._$AC(n):(f.el===void 0&&(f.el=_0.createElement(f.h,this.options)),f);if(((o=this._$AH)===null||o===void 0?void 0:o._$AD)===p)this._$AH.p(c);else{const b=new Yp(p,this),k=b.v(this.options);b.p(c),this.T(k),this._$AH=b}}_$AC(n){let o=hp.get(n.strings);return o===void 0&&hp.set(n.strings,o=new _0(n)),o}k(n){Hp(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let c,f=0;for(const p of n)f===o.length?o.push(c=new fu(this.O(x0()),this.O(x0()),this,this.options)):c=o[f],c._$AI(p),f++;f<o.length&&(this._$AR(c&&c._$AB.nextSibling,f),o.length=f)}_$AR(n=this._$AA.nextSibling,o){var c;for((c=this._$AP)===null||c===void 0||c.call(this,!1,!0,o);n&&n!==this._$AB;){const f=n.nextSibling;n.remove(),n=f}}setConnected(n){var o;this._$AM===void 0&&(this._$Cm=n,(o=this._$AP)===null||o===void 0||o.call(this,n))}}class P0{constructor(n,o,c,f,p){this.type=1,this._$AH=Cr,this._$AN=void 0,this.element=n,this.name=o,this._$AM=f,this.options=p,c.length>2||c[0]!==""||c[1]!==""?(this._$AH=Array(c.length-1).fill(new String),this.strings=c):this._$AH=Cr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(n,o=this,c,f){const p=this.strings;let b=!1;if(p===void 0)n=Gs(this,n,o,0),b=!L0(n)||n!==this._$AH&&n!==mo,b&&(this._$AH=n);else{const k=n;let S,O;for(n=p[0],S=0;S<p.length-1;S++)O=Gs(this,k[c+S],o,S),O===mo&&(O=this._$AH[S]),b||(b=!L0(O)||O!==this._$AH[S]),O===Cr?n=Cr:n!==Cr&&(n+=(O!=null?O:"")+p[S+1]),this._$AH[S]=O}b&&!f&&this.j(n)}j(n){n===Cr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n!=null?n:"")}}class Zp extends P0{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===Cr?void 0:n}}const Cg=ou?ou.emptyScript:"";class Vp extends P0{constructor(){super(...arguments),this.type=4}j(n){n&&n!==Cr?this.element.setAttribute(this.name,Cg):this.element.removeAttribute(this.name)}}class Gp extends P0{constructor(n,o,c,f,p){super(n,o,c,f,p),this.type=5}_$AI(n,o=this){var c;if((n=(c=Gs(this,n,o,0))!==null&&c!==void 0?c:Cr)===mo)return;const f=this._$AH,p=n===Cr&&f!==Cr||n.capture!==f.capture||n.once!==f.once||n.passive!==f.passive,b=n!==Cr&&(f===Cr||p);p&&this.element.removeEventListener(this.name,this,f),b&&this.element.addEventListener(this.name,this,n),this._$AH=n}handleEvent(n){var o,c;typeof this._$AH=="function"?this._$AH.call((c=(o=this.options)===null||o===void 0?void 0:o.host)!==null&&c!==void 0?c:this.element,n):this._$AH.handleEvent(n)}}class qp{constructor(n,o,c){this.element=n,this.type=6,this._$AN=void 0,this._$AM=o,this.options=c}get _$AU(){return this._$AM._$AU}_$AI(n){Gs(this,n)}}const wg={P:"$lit$",A:ia,M:Ed,C:1,L:Up,R:Yp,D:Bp,V:Gs,I:fu,H:P0,N:Vp,U:Gp,B:Zp,F:qp},pp=C1.litHtmlPolyfillSupport;pp==null||pp(_0,fu),((ad=C1.litHtmlVersions)!==null&&ad!==void 0?ad:C1.litHtmlVersions=[]).push("2.4.0");const jp=(r,n,o)=>{var c,f;const p=(c=o==null?void 0:o.renderBefore)!==null&&c!==void 0?c:n;let b=p._$litPart$;if(b===void 0){const k=(f=o==null?void 0:o.renderBefore)!==null&&f!==void 0?f:null;p._$litPart$=b=new fu(n.insertBefore(x0(),k),k,void 0,o!=null?o:{})}return b._$AI(r),b};/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var sd,ld;class Ue extends Xl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,o;const c=super.createRenderRoot();return(n=(o=this.renderOptions).renderBefore)!==null&&n!==void 0||(o.renderBefore=c.firstChild),c}update(n){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=Kp(o,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!1)}render(){return bo}}Ue.finalized=!0,Ue._$litElement$=!0,(sd=globalThis.litElementHydrateSupport)===null||sd===void 0||sd.call(globalThis,{LitElement:Ue});const gp=globalThis.litElementPolyfillSupport;gp==null||gp({LitElement:Ue});((ld=globalThis.litElementVersions)!==null&&ld!==void 0?ld:globalThis.litElementVersions=[]).push("3.2.2");/**
21
+ */var sd,ld;class Ue extends Xl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n,o;const c=super.createRenderRoot();return(n=(o=this.renderOptions).renderBefore)!==null&&n!==void 0||(o.renderBefore=c.firstChild),c}update(n){const o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=jp(o,this.renderRoot,this.renderOptions)}connectedCallback(){var n;super.connectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!0)}disconnectedCallback(){var n;super.disconnectedCallback(),(n=this._$Do)===null||n===void 0||n.setConnected(!1)}render(){return mo}}Ue.finalized=!0,Ue._$litElement$=!0,(sd=globalThis.litElementHydrateSupport)===null||sd===void 0||sd.call(globalThis,{LitElement:Ue});const gp=globalThis.litElementPolyfillSupport;gp==null||gp({LitElement:Ue});((ld=globalThis.litElementVersions)!==null&&ld!==void 0?ld:globalThis.litElementVersions=[]).push("3.2.2");/**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Q=r=>n=>typeof n=="function"?((o,c)=>(customElements.define(o,c),c))(r,n):((o,c)=>{const{kind:f,elements:g}=c;return{kind:f,elements:g,finisher(b){customElements.define(o,b)}}})(r,n);/**
25
+ */const Q=r=>n=>typeof n=="function"?((o,c)=>(customElements.define(o,c),c))(r,n):((o,c)=>{const{kind:f,elements:p}=c;return{kind:f,elements:p,finisher(b){customElements.define(o,b)}}})(r,n);/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */const Lg=(r,n)=>n.kind==="method"&&n.descriptor&&!("value"in n.descriptor)?{...n,finisher(o){o.createProperty(n.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){typeof n.initializer=="function"&&(this[n.key]=n.initializer.call(this))},finisher(o){o.createProperty(n.key,r)}};function F(r){return(n,o)=>o!==void 0?((c,f,g)=>{f.constructor.createProperty(g,c)})(r,n,o):Lg(r,n)}/**
29
+ */const xg=(r,n)=>n.kind==="method"&&n.descriptor&&!("value"in n.descriptor)?{...n,finisher(o){o.createProperty(n.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:n.key,initializer(){typeof n.initializer=="function"&&(this[n.key]=n.initializer.call(this))},finisher(o){o.createProperty(n.key,r)}};function F(r){return(n,o)=>o!==void 0?((c,f,p)=>{f.constructor.createProperty(p,c)})(r,n,o):xg(r,n)}/**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */function gt(r){return F({...r,state:!0})}/**
33
+ */function pt(r){return F({...r,state:!0})}/**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */const Id=({finisher:r,descriptor:n})=>(o,c)=>{var f;if(c===void 0){const p=(f=o.originalKey)!==null&&f!==void 0?f:o.key,b=n!=null?{kind:"method",placement:"prototype",key:p,descriptor:n(o.key)}:{...o,key:p};return r!=null&&(b.finisher=function(k){r(k,p)}),b}{const p=o.constructor;n!==void 0&&Object.defineProperty(o,c,n(c)),r==null||r(p,c)}};/**
38
+ * @license
39
+ * Copyright 2017 Google LLC
40
+ * SPDX-License-Identifier: BSD-3-Clause
41
+ */function Lg(r){return Id({descriptor:n=>({async get(){var o;return await this.updateComplete,(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(r)},enumerable:!0,configurable:!0})})}/**
34
42
  * @license
35
43
  * Copyright 2021 Google LLC
36
44
  * SPDX-License-Identifier: BSD-3-Clause
37
- */var ud;((ud=window.HTMLSlotElement)===null||ud===void 0?void 0:ud.prototype.assignedElements)!=null;const Ee=r=>`brz-${r.toLowerCase()}`;var _g=Object.defineProperty,zg=Object.getOwnPropertyDescriptor,Dd=(r,n,o,c)=>{for(var f=c>1?void 0:c?zg(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_g(n,o,f),f};const Xp=Ee("fade-in-out");exports.FadeInOut=class extends Ue{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(r){r.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?ee``:ee`<slot></slot>`}};exports.FadeInOut.styles=Se`
45
+ */var ud;const _g=((ud=window.HTMLSlotElement)===null||ud===void 0?void 0:ud.prototype.assignedElements)!=null?(r,n)=>r.assignedElements(n):(r,n)=>r.assignedNodes(n).filter(o=>o.nodeType===Node.ELEMENT_NODE);function zg(r){const{slot:n,selector:o}=r!=null?r:{};return Id({descriptor:c=>({get(){var f;const p="slot"+(n?`[name=${n}]`:":not([name])"),b=(f=this.renderRoot)===null||f===void 0?void 0:f.querySelector(p),k=b!=null?_g(b,r):[];return o?k.filter(S=>S.matches(o)):k},enumerable:!0,configurable:!0})})}/**
46
+ * @license
47
+ * Copyright 2017 Google LLC
48
+ * SPDX-License-Identifier: BSD-3-Clause
49
+ */function Sg(r,n,o){let c,f=r;return typeof r=="object"?(f=r.slot,c=r):c={flatten:n},o?zg({slot:f,flatten:n,selector:o}):Id({descriptor:p=>({get(){var b,k;const S="slot"+(f?`[name=${f}]`:":not([name])"),O=(b=this.renderRoot)===null||b===void 0?void 0:b.querySelector(S);return(k=O==null?void 0:O.assignedNodes(c))!==null&&k!==void 0?k:[]},enumerable:!0,configurable:!0})})}const Ee=r=>`brz-${r.toLowerCase()}`;var Mg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,Dd=(r,n,o,c)=>{for(var f=c>1?void 0:c?kg(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Mg(n,o,f),f};const Kp=Ee("fade-in-out");exports.FadeInOut=class extends Ue{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(r){r.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?ee``:ee`<slot></slot>`}};exports.FadeInOut.styles=Se`
38
50
  :host {
39
51
  opacity: 0;
40
52
  animation: fade-in 0.3s ease;
@@ -51,7 +63,7 @@
51
63
  opacity: 1;
52
64
  }
53
65
  }
54
- `;Dd([F({type:Boolean})],exports.FadeInOut.prototype,"shown",2);Dd([F({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Dd([Q(Xp)],exports.FadeInOut);/**
66
+ `;Dd([F({type:Boolean})],exports.FadeInOut.prototype,"shown",2);Dd([F({attribute:!1})],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Dd([Q(Kp)],exports.FadeInOut);/**
55
67
  * @license
56
68
  * Copyright 2017 Google LLC
57
69
  * SPDX-License-Identifier: BSD-3-Clause
@@ -59,15 +71,15 @@
59
71
  * @license
60
72
  * Copyright 2018 Google LLC
61
73
  * SPDX-License-Identifier: BSD-3-Clause
62
- */const ja=A1(class extends E1{constructor(r){var n;if(super(r),r.type!==P1.ATTRIBUTE||r.name!=="class"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(n=>r[n]).join(" ")+" "}update(r,[n]){var o,c;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(g=>g!=="")));for(const g in n)n[g]&&!(!((o=this.st)===null||o===void 0)&&o.has(g))&&this.nt.add(g);return this.render(n)}const f=r.element.classList;this.nt.forEach(g=>{g in n||(f.remove(g),this.nt.delete(g))});for(const g in n){const b=!!n[g];b===this.nt.has(g)||((c=this.st)===null||c===void 0?void 0:c.has(g))||(b?(f.add(g),this.nt.add(g)):(f.remove(g),this.nt.delete(g)))}return bo}});/**
74
+ */const Qa=A1(class extends E1{constructor(r){var n;if(super(r),r.type!==P1.ATTRIBUTE||r.name!=="class"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(n=>r[n]).join(" ")+" "}update(r,[n]){var o,c;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(p=>p!=="")));for(const p in n)n[p]&&!(!((o=this.st)===null||o===void 0)&&o.has(p))&&this.nt.add(p);return this.render(n)}const f=r.element.classList;this.nt.forEach(p=>{p in n||(f.remove(p),this.nt.delete(p))});for(const p in n){const b=!!n[p];b===this.nt.has(p)||((c=this.st)===null||c===void 0?void 0:c.has(p))||(b?(f.add(p),this.nt.add(p)):(f.remove(p),this.nt.delete(p)))}return mo}});/**
63
75
  * @license
64
76
  * Copyright 2018 Google LLC
65
77
  * SPDX-License-Identifier: BSD-3-Clause
66
- */const Vt=r=>r!=null?r:Cr;var In="top",bi="bottom",mi="right",Dn="left",I1="auto",A0=[In,bi,mi,Dn],su="start",z0="end",Sg="clippingParents",Qp="viewport",d0="popper",Mg="reference",vp=A0.reduce(function(r,n){return r.concat([n+"-"+su,n+"-"+z0])},[]),Jp=[].concat(A0,[I1]).reduce(function(r,n){return r.concat([n,n+"-"+su,n+"-"+z0])},[]),kg="beforeRead",Og="read",Tg="afterRead",Pg="beforeMain",Ag="main",Eg="afterMain",Ig="beforeWrite",Dg="write",Rg="afterWrite",md=[kg,Og,Tg,Pg,Ag,Eg,Ig,Dg,Rg];function mo(r){return r?(r.nodeName||"").toLowerCase():null}function yi(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var n=r.ownerDocument;return n&&n.defaultView||window}return r}function Gs(r){var n=yi(r).Element;return r instanceof n||r instanceof Element}function Jn(r){var n=yi(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function Rd(r){if(typeof ShadowRoot=="undefined")return!1;var n=yi(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function Ng(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var c=n.styles[o]||{},f=n.attributes[o]||{},g=n.elements[o];!Jn(g)||!mo(g)||(Object.assign(g.style,c),Object.keys(f).forEach(function(b){var P=f[b];P===!1?g.removeAttribute(b):g.setAttribute(b,P===!0?"":P)}))})}function $g(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(c){var f=n.elements[c],g=n.attributes[c]||{},b=Object.keys(n.styles.hasOwnProperty(c)?n.styles[c]:o[c]),P=b.reduce(function(S,k){return S[k]="",S},{});!Jn(f)||!mo(f)||(Object.assign(f.style,P),Object.keys(g).forEach(function(S){f.removeAttribute(S)}))})}}const Hg={name:"applyStyles",enabled:!0,phase:"write",fn:Ng,effect:$g,requires:["computeStyles"]};function Ni(r){return r.split("-")[0]}var Ys=Math.max,w1=Math.min,lu=Math.round;function yd(){var r=navigator.userAgentData;return r!=null&&r.brands?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function e2(){return!/^((?!chrome|android).)*safari/i.test(yd())}function uu(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var c=r.getBoundingClientRect(),f=1,g=1;n&&Jn(r)&&(f=r.offsetWidth>0&&lu(c.width)/r.offsetWidth||1,g=r.offsetHeight>0&&lu(c.height)/r.offsetHeight||1);var b=Gs(r)?yi(r):window,P=b.visualViewport,S=!e2()&&o,k=(c.left+(S&&P?P.offsetLeft:0))/f,I=(c.top+(S&&P?P.offsetTop:0))/g,U=c.width/f,q=c.height/g;return{width:U,height:q,top:I,right:k+U,bottom:I+q,left:k,x:k,y:I}}function Nd(r){var n=uu(r),o=r.offsetWidth,c=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-c)<=1&&(c=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:c}}function t2(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&Rd(o)){var c=n;do{if(c&&r.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function $i(r){return yi(r).getComputedStyle(r)}function Bg(r){return["table","td","th"].indexOf(mo(r))>=0}function Ka(r){return((Gs(r)?r.ownerDocument:r.document)||window.document).documentElement}function D1(r){return mo(r)==="html"?r:r.assignedSlot||r.parentNode||(Rd(r)?r.host:null)||Ka(r)}function bp(r){return!Jn(r)||$i(r).position==="fixed"?null:r.offsetParent}function Fg(r){var n=/firefox/i.test(yd()),o=/Trident/i.test(yd());if(o&&Jn(r)){var c=$i(r);if(c.position==="fixed")return null}var f=D1(r);for(Rd(f)&&(f=f.host);Jn(f)&&["html","body"].indexOf(mo(f))<0;){var g=$i(f);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||n&&g.willChange==="filter"||n&&g.filter&&g.filter!=="none")return f;f=f.parentNode}return null}function E0(r){for(var n=yi(r),o=bp(r);o&&Bg(o)&&$i(o).position==="static";)o=bp(o);return o&&(mo(o)==="html"||mo(o)==="body"&&$i(o).position==="static")?n:o||Fg(r)||n}function $d(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function b0(r,n,o){return Ys(r,w1(n,o))}function Wg(r,n,o){var c=b0(r,n,o);return c>o?o:c}function r2(){return{top:0,right:0,bottom:0,left:0}}function n2(r){return Object.assign({},r2(),r)}function i2(r,n){return n.reduce(function(o,c){return o[c]=r,o},{})}var Ug=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,n2(typeof n!="number"?n:i2(n,A0))};function Yg(r){var n,o=r.state,c=r.name,f=r.options,g=o.elements.arrow,b=o.modifiersData.popperOffsets,P=Ni(o.placement),S=$d(P),k=[Dn,mi].indexOf(P)>=0,I=k?"height":"width";if(!(!g||!b)){var U=Ug(f.padding,o),q=Nd(g),X=S==="y"?In:Dn,ce=S==="y"?bi:mi,we=o.rects.reference[I]+o.rects.reference[S]-b[S]-o.rects.popper[I],me=b[S]-o.rects.reference[S],Ae=E0(g),Ie=Ae?S==="y"?Ae.clientHeight||0:Ae.clientWidth||0:0,pe=we/2-me/2,he=U[X],Te=Ie-q[I]-U[ce],He=Ie/2-q[I]/2+pe,Ye=b0(he,He,Te),et=S;o.modifiersData[c]=(n={},n[et]=Ye,n.centerOffset=Ye-He,n)}}function Zg(r){var n=r.state,o=r.options,c=o.element,f=c===void 0?"[data-popper-arrow]":c;if(f!=null&&!(typeof f=="string"&&(f=n.elements.popper.querySelector(f),!f))){if({}.NODE_ENV!=="production"&&(Jn(f)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!t2(n.elements.popper,f)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}n.elements.arrow=f}}const Vg={name:"arrow",enabled:!0,phase:"main",fn:Yg,effect:Zg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cu(r){return r.split("-")[1]}var Gg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qg(r){var n=r.x,o=r.y,c=window,f=c.devicePixelRatio||1;return{x:lu(n*f)/f||0,y:lu(o*f)/f||0}}function mp(r){var n,o=r.popper,c=r.popperRect,f=r.placement,g=r.variation,b=r.offsets,P=r.position,S=r.gpuAcceleration,k=r.adaptive,I=r.roundOffsets,U=r.isFixed,q=b.x,X=q===void 0?0:q,ce=b.y,we=ce===void 0?0:ce,me=typeof I=="function"?I({x:X,y:we}):{x:X,y:we};X=me.x,we=me.y;var Ae=b.hasOwnProperty("x"),Ie=b.hasOwnProperty("y"),pe=Dn,he=In,Te=window;if(k){var He=E0(o),Ye="clientHeight",et="clientWidth";if(He===yi(o)&&(He=Ka(o),$i(He).position!=="static"&&P==="absolute"&&(Ye="scrollHeight",et="scrollWidth")),He=He,f===In||(f===Dn||f===mi)&&g===z0){he=bi;var nt=U&&He===Te&&Te.visualViewport?Te.visualViewport.height:He[Ye];we-=nt-c.height,we*=S?1:-1}if(f===Dn||(f===In||f===bi)&&g===z0){pe=mi;var ge=U&&He===Te&&Te.visualViewport?Te.visualViewport.width:He[et];X-=ge-c.width,X*=S?1:-1}}var ye=Object.assign({position:P},k&&Gg),it=I===!0?qg({x:X,y:we}):{x:X,y:we};if(X=it.x,we=it.y,S){var W;return Object.assign({},ye,(W={},W[he]=Ie?"0":"",W[pe]=Ae?"0":"",W.transform=(Te.devicePixelRatio||1)<=1?"translate("+X+"px, "+we+"px)":"translate3d("+X+"px, "+we+"px, 0)",W))}return Object.assign({},ye,(n={},n[he]=Ie?we+"px":"",n[pe]=Ae?X+"px":"",n.transform="",n))}function jg(r){var n=r.state,o=r.options,c=o.gpuAcceleration,f=c===void 0?!0:c,g=o.adaptive,b=g===void 0?!0:g,P=o.roundOffsets,S=P===void 0?!0:P;if({}.NODE_ENV!=="production"){var k=$i(n.elements.popper).transitionProperty||"";b&&["transform","top","right","bottom","left"].some(function(U){return k.indexOf(U)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
78
+ */const Vt=r=>r!=null?r:Cr;var In="top",bi="bottom",mi="right",Dn="left",I1="auto",A0=[In,bi,mi,Dn],su="start",z0="end",Og="clippingParents",Xp="viewport",d0="popper",Tg="reference",vp=A0.reduce(function(r,n){return r.concat([n+"-"+su,n+"-"+z0])},[]),Qp=[].concat(A0,[I1]).reduce(function(r,n){return r.concat([n,n+"-"+su,n+"-"+z0])},[]),Pg="beforeRead",Ag="read",Eg="afterRead",Ig="beforeMain",Dg="main",Rg="afterMain",Ng="beforeWrite",$g="write",Hg="afterWrite",bd=[Pg,Ag,Eg,Ig,Dg,Rg,Ng,$g,Hg];function yo(r){return r?(r.nodeName||"").toLowerCase():null}function yi(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var n=r.ownerDocument;return n&&n.defaultView||window}return r}function qs(r){var n=yi(r).Element;return r instanceof n||r instanceof Element}function Jn(r){var n=yi(r).HTMLElement;return r instanceof n||r instanceof HTMLElement}function Rd(r){if(typeof ShadowRoot=="undefined")return!1;var n=yi(r).ShadowRoot;return r instanceof n||r instanceof ShadowRoot}function Bg(r){var n=r.state;Object.keys(n.elements).forEach(function(o){var c=n.styles[o]||{},f=n.attributes[o]||{},p=n.elements[o];!Jn(p)||!yo(p)||(Object.assign(p.style,c),Object.keys(f).forEach(function(b){var k=f[b];k===!1?p.removeAttribute(b):p.setAttribute(b,k===!0?"":k)}))})}function Fg(r){var n=r.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(c){var f=n.elements[c],p=n.attributes[c]||{},b=Object.keys(n.styles.hasOwnProperty(c)?n.styles[c]:o[c]),k=b.reduce(function(S,O){return S[O]="",S},{});!Jn(f)||!yo(f)||(Object.assign(f.style,k),Object.keys(p).forEach(function(S){f.removeAttribute(S)}))})}}const Wg={name:"applyStyles",enabled:!0,phase:"write",fn:Bg,effect:Fg,requires:["computeStyles"]};function Ni(r){return r.split("-")[0]}var Zs=Math.max,w1=Math.min,lu=Math.round;function md(){var r=navigator.userAgentData;return r!=null&&r.brands?r.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function Jp(){return!/^((?!chrome|android).)*safari/i.test(md())}function uu(r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var c=r.getBoundingClientRect(),f=1,p=1;n&&Jn(r)&&(f=r.offsetWidth>0&&lu(c.width)/r.offsetWidth||1,p=r.offsetHeight>0&&lu(c.height)/r.offsetHeight||1);var b=qs(r)?yi(r):window,k=b.visualViewport,S=!Jp()&&o,O=(c.left+(S&&k?k.offsetLeft:0))/f,I=(c.top+(S&&k?k.offsetTop:0))/p,U=c.width/f,q=c.height/p;return{width:U,height:q,top:I,right:O+U,bottom:I+q,left:O,x:O,y:I}}function Nd(r){var n=uu(r),o=r.offsetWidth,c=r.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-c)<=1&&(c=n.height),{x:r.offsetLeft,y:r.offsetTop,width:o,height:c}}function e2(r,n){var o=n.getRootNode&&n.getRootNode();if(r.contains(n))return!0;if(o&&Rd(o)){var c=n;do{if(c&&r.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function $i(r){return yi(r).getComputedStyle(r)}function Ug(r){return["table","td","th"].indexOf(yo(r))>=0}function Ja(r){return((qs(r)?r.ownerDocument:r.document)||window.document).documentElement}function D1(r){return yo(r)==="html"?r:r.assignedSlot||r.parentNode||(Rd(r)?r.host:null)||Ja(r)}function bp(r){return!Jn(r)||$i(r).position==="fixed"?null:r.offsetParent}function Yg(r){var n=/firefox/i.test(md()),o=/Trident/i.test(md());if(o&&Jn(r)){var c=$i(r);if(c.position==="fixed")return null}var f=D1(r);for(Rd(f)&&(f=f.host);Jn(f)&&["html","body"].indexOf(yo(f))<0;){var p=$i(f);if(p.transform!=="none"||p.perspective!=="none"||p.contain==="paint"||["transform","perspective"].indexOf(p.willChange)!==-1||n&&p.willChange==="filter"||n&&p.filter&&p.filter!=="none")return f;f=f.parentNode}return null}function E0(r){for(var n=yi(r),o=bp(r);o&&Ug(o)&&$i(o).position==="static";)o=bp(o);return o&&(yo(o)==="html"||yo(o)==="body"&&$i(o).position==="static")?n:o||Yg(r)||n}function $d(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function b0(r,n,o){return Zs(r,w1(n,o))}function Zg(r,n,o){var c=b0(r,n,o);return c>o?o:c}function t2(){return{top:0,right:0,bottom:0,left:0}}function r2(r){return Object.assign({},t2(),r)}function n2(r,n){return n.reduce(function(o,c){return o[c]=r,o},{})}var Vg=function(n,o){return n=typeof n=="function"?n(Object.assign({},o.rects,{placement:o.placement})):n,r2(typeof n!="number"?n:n2(n,A0))};function Gg(r){var n,o=r.state,c=r.name,f=r.options,p=o.elements.arrow,b=o.modifiersData.popperOffsets,k=Ni(o.placement),S=$d(k),O=[Dn,mi].indexOf(k)>=0,I=O?"height":"width";if(!(!p||!b)){var U=Vg(f.padding,o),q=Nd(p),X=S==="y"?In:Dn,ce=S==="y"?bi:mi,we=o.rects.reference[I]+o.rects.reference[S]-b[S]-o.rects.popper[I],me=b[S]-o.rects.reference[S],Ae=E0(p),Ie=Ae?S==="y"?Ae.clientHeight||0:Ae.clientWidth||0:0,pe=we/2-me/2,he=U[X],Te=Ie-q[I]-U[ce],He=Ie/2-q[I]/2+pe,Ye=b0(he,He,Te),et=S;o.modifiersData[c]=(n={},n[et]=Ye,n.centerOffset=Ye-He,n)}}function qg(r){var n=r.state,o=r.options,c=o.element,f=c===void 0?"[data-popper-arrow]":c;if(f!=null&&!(typeof f=="string"&&(f=n.elements.popper.querySelector(f),!f))){if({}.NODE_ENV!=="production"&&(Jn(f)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!e2(n.elements.popper,f)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}n.elements.arrow=f}}const jg={name:"arrow",enabled:!0,phase:"main",fn:Gg,effect:qg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cu(r){return r.split("-")[1]}var Kg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xg(r){var n=r.x,o=r.y,c=window,f=c.devicePixelRatio||1;return{x:lu(n*f)/f||0,y:lu(o*f)/f||0}}function mp(r){var n,o=r.popper,c=r.popperRect,f=r.placement,p=r.variation,b=r.offsets,k=r.position,S=r.gpuAcceleration,O=r.adaptive,I=r.roundOffsets,U=r.isFixed,q=b.x,X=q===void 0?0:q,ce=b.y,we=ce===void 0?0:ce,me=typeof I=="function"?I({x:X,y:we}):{x:X,y:we};X=me.x,we=me.y;var Ae=b.hasOwnProperty("x"),Ie=b.hasOwnProperty("y"),pe=Dn,he=In,Te=window;if(O){var He=E0(o),Ye="clientHeight",et="clientWidth";if(He===yi(o)&&(He=Ja(o),$i(He).position!=="static"&&k==="absolute"&&(Ye="scrollHeight",et="scrollWidth")),He=He,f===In||(f===Dn||f===mi)&&p===z0){he=bi;var nt=U&&He===Te&&Te.visualViewport?Te.visualViewport.height:He[Ye];we-=nt-c.height,we*=S?1:-1}if(f===Dn||(f===In||f===bi)&&p===z0){pe=mi;var ge=U&&He===Te&&Te.visualViewport?Te.visualViewport.width:He[et];X-=ge-c.width,X*=S?1:-1}}var ye=Object.assign({position:k},O&&Kg),it=I===!0?Xg({x:X,y:we}):{x:X,y:we};if(X=it.x,we=it.y,S){var W;return Object.assign({},ye,(W={},W[he]=Ie?"0":"",W[pe]=Ae?"0":"",W.transform=(Te.devicePixelRatio||1)<=1?"translate("+X+"px, "+we+"px)":"translate3d("+X+"px, "+we+"px, 0)",W))}return Object.assign({},ye,(n={},n[he]=Ie?we+"px":"",n[pe]=Ae?X+"px":"",n.transform="",n))}function Qg(r){var n=r.state,o=r.options,c=o.gpuAcceleration,f=c===void 0?!0:c,p=o.adaptive,b=p===void 0?!0:p,k=o.roundOffsets,S=k===void 0?!0:k;if({}.NODE_ENV!=="production"){var O=$i(n.elements.popper).transitionProperty||"";b&&["transform","top","right","bottom","left"].some(function(U){return O.indexOf(U)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
67
79
 
68
80
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
69
81
 
70
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var I={placement:Ni(n.placement),variation:cu(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:f,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,mp(Object.assign({},I,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:b,roundOffsets:S})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,mp(Object.assign({},I,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:S})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const Kg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jg,data:{}};var f1={passive:!0};function Xg(r){var n=r.state,o=r.instance,c=r.options,f=c.scroll,g=f===void 0?!0:f,b=c.resize,P=b===void 0?!0:b,S=yi(n.elements.popper),k=[].concat(n.scrollParents.reference,n.scrollParents.popper);return g&&k.forEach(function(I){I.addEventListener("scroll",o.update,f1)}),P&&S.addEventListener("resize",o.update,f1),function(){g&&k.forEach(function(I){I.removeEventListener("scroll",o.update,f1)}),P&&S.removeEventListener("resize",o.update,f1)}}const Qg={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xg,data:{}};var Jg={left:"right",right:"left",bottom:"top",top:"bottom"};function g1(r){return r.replace(/left|right|bottom|top/g,function(n){return Jg[n]})}var ev={start:"end",end:"start"};function yp(r){return r.replace(/start|end/g,function(n){return ev[n]})}function Hd(r){var n=yi(r),o=n.pageXOffset,c=n.pageYOffset;return{scrollLeft:o,scrollTop:c}}function Bd(r){return uu(Ka(r)).left+Hd(r).scrollLeft}function tv(r,n){var o=yi(r),c=Ka(r),f=o.visualViewport,g=c.clientWidth,b=c.clientHeight,P=0,S=0;if(f){g=f.width,b=f.height;var k=e2();(k||!k&&n==="fixed")&&(P=f.offsetLeft,S=f.offsetTop)}return{width:g,height:b,x:P+Bd(r),y:S}}function rv(r){var n,o=Ka(r),c=Hd(r),f=(n=r.ownerDocument)==null?void 0:n.body,g=Ys(o.scrollWidth,o.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),b=Ys(o.scrollHeight,o.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),P=-c.scrollLeft+Bd(r),S=-c.scrollTop;return $i(f||o).direction==="rtl"&&(P+=Ys(o.clientWidth,f?f.clientWidth:0)-g),{width:g,height:b,x:P,y:S}}function Fd(r){var n=$i(r),o=n.overflow,c=n.overflowX,f=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+c)}function o2(r){return["html","body","#document"].indexOf(mo(r))>=0?r.ownerDocument.body:Jn(r)&&Fd(r)?r:o2(D1(r))}function m0(r,n){var o;n===void 0&&(n=[]);var c=o2(r),f=c===((o=r.ownerDocument)==null?void 0:o.body),g=yi(c),b=f?[g].concat(g.visualViewport||[],Fd(c)?c:[]):c,P=n.concat(b);return f?P:P.concat(m0(D1(b)))}function Cd(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function nv(r,n){var o=uu(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function Cp(r,n,o){return n===Qp?Cd(tv(r,o)):Gs(n)?nv(n,o):Cd(rv(Ka(r)))}function iv(r){var n=m0(D1(r)),o=["absolute","fixed"].indexOf($i(r).position)>=0,c=o&&Jn(r)?E0(r):r;return Gs(c)?n.filter(function(f){return Gs(f)&&t2(f,c)&&mo(f)!=="body"}):[]}function ov(r,n,o,c){var f=n==="clippingParents"?iv(r):[].concat(n),g=[].concat(f,[o]),b=g[0],P=g.reduce(function(S,k){var I=Cp(r,k,c);return S.top=Ys(I.top,S.top),S.right=w1(I.right,S.right),S.bottom=w1(I.bottom,S.bottom),S.left=Ys(I.left,S.left),S},Cp(r,b,c));return P.width=P.right-P.left,P.height=P.bottom-P.top,P.x=P.left,P.y=P.top,P}function a2(r){var n=r.reference,o=r.element,c=r.placement,f=c?Ni(c):null,g=c?cu(c):null,b=n.x+n.width/2-o.width/2,P=n.y+n.height/2-o.height/2,S;switch(f){case In:S={x:b,y:n.y-o.height};break;case bi:S={x:b,y:n.y+n.height};break;case mi:S={x:n.x+n.width,y:P};break;case Dn:S={x:n.x-o.width,y:P};break;default:S={x:n.x,y:n.y}}var k=f?$d(f):null;if(k!=null){var I=k==="y"?"height":"width";switch(g){case su:S[k]=S[k]-(n[I]/2-o[I]/2);break;case z0:S[k]=S[k]+(n[I]/2-o[I]/2);break}}return S}function S0(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=c===void 0?r.placement:c,g=o.strategy,b=g===void 0?r.strategy:g,P=o.boundary,S=P===void 0?Sg:P,k=o.rootBoundary,I=k===void 0?Qp:k,U=o.elementContext,q=U===void 0?d0:U,X=o.altBoundary,ce=X===void 0?!1:X,we=o.padding,me=we===void 0?0:we,Ae=n2(typeof me!="number"?me:i2(me,A0)),Ie=q===d0?Mg:d0,pe=r.rects.popper,he=r.elements[ce?Ie:q],Te=ov(Gs(he)?he:he.contextElement||Ka(r.elements.popper),S,I,b),He=uu(r.elements.reference),Ye=a2({reference:He,element:pe,strategy:"absolute",placement:f}),et=Cd(Object.assign({},pe,Ye)),nt=q===d0?et:He,ge={top:Te.top-nt.top+Ae.top,bottom:nt.bottom-Te.bottom+Ae.bottom,left:Te.left-nt.left+Ae.left,right:nt.right-Te.right+Ae.right},ye=r.modifiersData.offset;if(q===d0&&ye){var it=ye[f];Object.keys(ge).forEach(function(W){var E=[mi,bi].indexOf(W)>=0?1:-1,O=[In,bi].indexOf(W)>=0?"y":"x";ge[W]+=it[O]*E})}return ge}function av(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=o.boundary,g=o.rootBoundary,b=o.padding,P=o.flipVariations,S=o.allowedAutoPlacements,k=S===void 0?Jp:S,I=cu(c),U=I?P?vp:vp.filter(function(ce){return cu(ce)===I}):A0,q=U.filter(function(ce){return k.indexOf(ce)>=0});q.length===0&&(q=U,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var X=q.reduce(function(ce,we){return ce[we]=S0(r,{placement:we,boundary:f,rootBoundary:g,padding:b})[Ni(we)],ce},{});return Object.keys(X).sort(function(ce,we){return X[ce]-X[we]})}function sv(r){if(Ni(r)===I1)return[];var n=g1(r);return[yp(r),n,yp(n)]}function lv(r){var n=r.state,o=r.options,c=r.name;if(!n.modifiersData[c]._skip){for(var f=o.mainAxis,g=f===void 0?!0:f,b=o.altAxis,P=b===void 0?!0:b,S=o.fallbackPlacements,k=o.padding,I=o.boundary,U=o.rootBoundary,q=o.altBoundary,X=o.flipVariations,ce=X===void 0?!0:X,we=o.allowedAutoPlacements,me=n.options.placement,Ae=Ni(me),Ie=Ae===me,pe=S||(Ie||!ce?[g1(me)]:sv(me)),he=[me].concat(pe).reduce(function(Ft,ut){return Ft.concat(Ni(ut)===I1?av(n,{placement:ut,boundary:I,rootBoundary:U,padding:k,flipVariations:ce,allowedAutoPlacements:we}):ut)},[]),Te=n.rects.reference,He=n.rects.popper,Ye=new Map,et=!0,nt=he[0],ge=0;ge<he.length;ge++){var ye=he[ge],it=Ni(ye),W=cu(ye)===su,E=[In,bi].indexOf(it)>=0,O=E?"width":"height",ne=S0(n,{placement:ye,boundary:I,rootBoundary:U,altBoundary:q,padding:k}),ve=E?W?mi:Dn:W?bi:In;Te[O]>He[O]&&(ve=g1(ve));var ot=g1(ve),At=[];if(g&&At.push(ne[it]<=0),P&&At.push(ne[ve]<=0,ne[ot]<=0),At.every(function(Ft){return Ft})){nt=ye,et=!1;break}Ye.set(ye,At)}if(et)for(var sr=ce?3:1,Bt=function(ut){var _e=he.find(function(Fe){var Ze=Ye.get(Fe);if(Ze)return Ze.slice(0,ut).every(function(at){return at})});if(_e)return nt=_e,"break"},dn=sr;dn>0;dn--){var er=Bt(dn);if(er==="break")break}n.placement!==nt&&(n.modifiersData[c]._skip=!0,n.placement=nt,n.reset=!0)}}const uv={name:"flip",enabled:!0,phase:"main",fn:lv,requiresIfExists:["offset"],data:{_skip:!1}};function wp(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function xp(r){return[In,mi,bi,Dn].some(function(n){return r[n]>=0})}function cv(r){var n=r.state,o=r.name,c=n.rects.reference,f=n.rects.popper,g=n.modifiersData.preventOverflow,b=S0(n,{elementContext:"reference"}),P=S0(n,{altBoundary:!0}),S=wp(b,c),k=wp(P,f,g),I=xp(S),U=xp(k);n.modifiersData[o]={referenceClippingOffsets:S,popperEscapeOffsets:k,isReferenceHidden:I,hasPopperEscaped:U},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":U})}const fv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cv};function dv(r,n,o){var c=Ni(r),f=[Dn,In].indexOf(c)>=0?-1:1,g=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,b=g[0],P=g[1];return b=b||0,P=(P||0)*f,[Dn,mi].indexOf(c)>=0?{x:P,y:b}:{x:b,y:P}}function hv(r){var n=r.state,o=r.options,c=r.name,f=o.offset,g=f===void 0?[0,0]:f,b=Jp.reduce(function(I,U){return I[U]=dv(U,n.rects,g),I},{}),P=b[n.placement],S=P.x,k=P.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=S,n.modifiersData.popperOffsets.y+=k),n.modifiersData[c]=b}const pv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hv};function gv(r){var n=r.state,o=r.name;n.modifiersData[o]=a2({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const vv={name:"popperOffsets",enabled:!0,phase:"read",fn:gv,data:{}};function bv(r){return r==="x"?"y":"x"}function mv(r){var n=r.state,o=r.options,c=r.name,f=o.mainAxis,g=f===void 0?!0:f,b=o.altAxis,P=b===void 0?!1:b,S=o.boundary,k=o.rootBoundary,I=o.altBoundary,U=o.padding,q=o.tether,X=q===void 0?!0:q,ce=o.tetherOffset,we=ce===void 0?0:ce,me=S0(n,{boundary:S,rootBoundary:k,padding:U,altBoundary:I}),Ae=Ni(n.placement),Ie=cu(n.placement),pe=!Ie,he=$d(Ae),Te=bv(he),He=n.modifiersData.popperOffsets,Ye=n.rects.reference,et=n.rects.popper,nt=typeof we=="function"?we(Object.assign({},n.rects,{placement:n.placement})):we,ge=typeof nt=="number"?{mainAxis:nt,altAxis:nt}:Object.assign({mainAxis:0,altAxis:0},nt),ye=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,it={x:0,y:0};if(!!He){if(g){var W,E=he==="y"?In:Dn,O=he==="y"?bi:mi,ne=he==="y"?"height":"width",ve=He[he],ot=ve+me[E],At=ve-me[O],sr=X?-et[ne]/2:0,Bt=Ie===su?Ye[ne]:et[ne],dn=Ie===su?-et[ne]:-Ye[ne],er=n.elements.arrow,Ft=X&&er?Nd(er):{width:0,height:0},ut=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:r2(),_e=ut[E],Fe=ut[O],Ze=b0(0,Ye[ne],Ft[ne]),at=pe?Ye[ne]/2-sr-Ze-_e-ge.mainAxis:Bt-Ze-_e-ge.mainAxis,st=pe?-Ye[ne]/2+sr+Ze+Fe+ge.mainAxis:dn+Ze+Fe+ge.mainAxis,We=n.elements.arrow&&E0(n.elements.arrow),Gt=We?he==="y"?We.clientTop||0:We.clientLeft||0:0,qr=(W=ye==null?void 0:ye[he])!=null?W:0,lr=ve+at-qr-Gt,Xe=ve+st-qr,yt=b0(X?w1(ot,lr):ot,ve,X?Ys(At,Xe):At);He[he]=yt,it[he]=yt-ve}if(P){var kt,$r=he==="x"?In:Dn,tn=he==="x"?bi:mi,fr=He[Te],tt=Te==="y"?"height":"width",B=fr+me[$r],oe=fr-me[tn],V=[In,Dn].indexOf(Ae)!==-1,Qe=(kt=ye==null?void 0:ye[Te])!=null?kt:0,dr=V?B:fr-Ye[tt]-et[tt]-Qe+ge.altAxis,Mr=V?fr+Ye[tt]+et[tt]-Qe-ge.altAxis:oe,$n=X&&V?Wg(dr,fr,Mr):b0(X?dr:B,fr,X?Mr:oe);He[Te]=$n,it[Te]=$n-fr}n.modifiersData[c]=it}}const yv={name:"preventOverflow",enabled:!0,phase:"main",fn:mv,requiresIfExists:["offset"]};function Cv(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function wv(r){return r===yi(r)||!Jn(r)?Hd(r):Cv(r)}function xv(r){var n=r.getBoundingClientRect(),o=lu(n.width)/r.offsetWidth||1,c=lu(n.height)/r.offsetHeight||1;return o!==1||c!==1}function Lv(r,n,o){o===void 0&&(o=!1);var c=Jn(n),f=Jn(n)&&xv(n),g=Ka(n),b=uu(r,f,o),P={scrollLeft:0,scrollTop:0},S={x:0,y:0};return(c||!c&&!o)&&((mo(n)!=="body"||Fd(g))&&(P=wv(n)),Jn(n)?(S=uu(n,!0),S.x+=n.clientLeft,S.y+=n.clientTop):g&&(S.x=Bd(g))),{x:b.left+P.scrollLeft-S.x,y:b.top+P.scrollTop-S.y,width:b.width,height:b.height}}function _v(r){var n=new Map,o=new Set,c=[];r.forEach(function(g){n.set(g.name,g)});function f(g){o.add(g.name);var b=[].concat(g.requires||[],g.requiresIfExists||[]);b.forEach(function(P){if(!o.has(P)){var S=n.get(P);S&&f(S)}}),c.push(g)}return r.forEach(function(g){o.has(g.name)||f(g)}),c}function zv(r){var n=_v(r);return md.reduce(function(o,c){return o.concat(n.filter(function(f){return f.phase===c}))},[])}function Sv(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function Za(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),c=1;c<n;c++)o[c-1]=arguments[c];return[].concat(o).reduce(function(f,g){return f.replace(/%s/,g)},r)}var Hs='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Mv='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Lp=["name","enabled","phase","fn","effect","requires","options"];function kv(r){r.forEach(function(n){[].concat(Object.keys(n),Lp).filter(function(o,c,f){return f.indexOf(o)===c}).forEach(function(o){switch(o){case"name":typeof n.name!="string"&&console.error(Za(Hs,String(n.name),'"name"','"string"','"'+String(n.name)+'"'));break;case"enabled":typeof n.enabled!="boolean"&&console.error(Za(Hs,n.name,'"enabled"','"boolean"','"'+String(n.enabled)+'"'));break;case"phase":md.indexOf(n.phase)<0&&console.error(Za(Hs,n.name,'"phase"',"either "+md.join(", "),'"'+String(n.phase)+'"'));break;case"fn":typeof n.fn!="function"&&console.error(Za(Hs,n.name,'"fn"','"function"','"'+String(n.fn)+'"'));break;case"effect":n.effect!=null&&typeof n.effect!="function"&&console.error(Za(Hs,n.name,'"effect"','"function"','"'+String(n.fn)+'"'));break;case"requires":n.requires!=null&&!Array.isArray(n.requires)&&console.error(Za(Hs,n.name,'"requires"','"array"','"'+String(n.requires)+'"'));break;case"requiresIfExists":Array.isArray(n.requiresIfExists)||console.error(Za(Hs,n.name,'"requiresIfExists"','"array"','"'+String(n.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+n.name+'" modifier, valid properties are '+Lp.map(function(c){return'"'+c+'"'}).join(", ")+'; but "'+o+'" was provided.')}n.requires&&n.requires.forEach(function(c){r.find(function(f){return f.name===c})==null&&console.error(Za(Mv,String(n.name),c,c))})})})}function Ov(r,n){var o=new Set;return r.filter(function(c){var f=n(c);if(!o.has(f))return o.add(f),!0})}function Tv(r){var n=r.reduce(function(o,c){var f=o[c.name];return o[c.name]=f?Object.assign({},f,c,{options:Object.assign({},f.options,c.options),data:Object.assign({},f.data,c.data)}):c,o},{});return Object.keys(n).map(function(o){return n[o]})}var _p="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Pv="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",zp={placement:"bottom",modifiers:[],strategy:"absolute"};function Sp(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return!n.some(function(c){return!(c&&typeof c.getBoundingClientRect=="function")})}function Av(r){r===void 0&&(r={});var n=r,o=n.defaultModifiers,c=o===void 0?[]:o,f=n.defaultOptions,g=f===void 0?zp:f;return function(P,S,k){k===void 0&&(k=g);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},zp,g),modifiersData:{},elements:{reference:P,popper:S},attributes:{},styles:{}},U=[],q=!1,X={state:I,setOptions:function(Ae){var Ie=typeof Ae=="function"?Ae(I.options):Ae;we(),I.options=Object.assign({},g,I.options,Ie),I.scrollParents={reference:Gs(P)?m0(P):P.contextElement?m0(P.contextElement):[],popper:m0(S)};var pe=zv(Tv([].concat(c,I.options.modifiers)));if(I.orderedModifiers=pe.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var he=Ov([].concat(pe,I.options.modifiers),function(ye){var it=ye.name;return it});if(kv(he),Ni(I.options.placement)===I1){var Te=I.orderedModifiers.find(function(ye){var it=ye.name;return it==="flip"});Te||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var He=$i(S),Ye=He.marginTop,et=He.marginRight,nt=He.marginBottom,ge=He.marginLeft;[Ye,et,nt,ge].some(function(ye){return parseFloat(ye)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return ce(),X.update()},forceUpdate:function(){if(!q){var Ae=I.elements,Ie=Ae.reference,pe=Ae.popper;if(!Sp(Ie,pe)){({}).NODE_ENV!=="production"&&console.error(_p);return}I.rects={reference:Lv(Ie,E0(pe),I.options.strategy==="fixed"),popper:Nd(pe)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(ye){return I.modifiersData[ye.name]=Object.assign({},ye.data)});for(var he=0,Te=0;Te<I.orderedModifiers.length;Te++){if({}.NODE_ENV!=="production"&&(he+=1,he>100)){console.error(Pv);break}if(I.reset===!0){I.reset=!1,Te=-1;continue}var He=I.orderedModifiers[Te],Ye=He.fn,et=He.options,nt=et===void 0?{}:et,ge=He.name;typeof Ye=="function"&&(I=Ye({state:I,options:nt,name:ge,instance:X})||I)}}},update:Sv(function(){return new Promise(function(me){X.forceUpdate(),me(I)})}),destroy:function(){we(),q=!0}};if(!Sp(P,S))return{}.NODE_ENV!=="production"&&console.error(_p),X;X.setOptions(k).then(function(me){!q&&k.onFirstUpdate&&k.onFirstUpdate(me)});function ce(){I.orderedModifiers.forEach(function(me){var Ae=me.name,Ie=me.options,pe=Ie===void 0?{}:Ie,he=me.effect;if(typeof he=="function"){var Te=he({state:I,name:Ae,instance:X,options:pe}),He=function(){};U.push(Te||He)}})}function we(){U.forEach(function(me){return me()}),U=[]}return X}}var Ev=[Qg,vv,Kg,Hg,pv,uv,yv,Vg,fv],Iv=Av({defaultModifiers:Ev}),Dv=Object.defineProperty,Rv=Object.getOwnPropertyDescriptor,un=(r,n,o,c)=>{for(var f=c>1?void 0:c?Rv(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Dv(n,o,f),f};let Nv=0;const Wd=Ee("popover"),s2=Ee("pure-popover"),l2=["click","hover","focus"],[x1,wd,Ws]=l2,Ud=["dialog","tooltip","menu"],[$v]=Ud;class Hv extends CustomEvent{constructor(n){super(`${Wd}-${n}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Ue{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=$v,this.popoverId=`popover-${++Nv}`,this.delayTimeout=0}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.popperInstance)==null||r.destroy()}updatePosition(){var r;(r=this.popperInstance)==null||r.update()}async updated(r){super.updated(r),this.popperInstance=this.popperInstance||Iv(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){!this.popperInstance||await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return r==null?void 0:r.assignedElements({flatten:!0})[0]}get contentElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return r==null?void 0:r.assignedNodes({flatten:!0})[0]}get popoverElement(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector(".popover-container")}emit(r){this.dispatchEvent(new Hv(r))}async open(){this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen)}async close(){this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose)}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return ee`
82
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var I={placement:Ni(n.placement),variation:cu(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:f,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,mp(Object.assign({},I,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:b,roundOffsets:S})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,mp(Object.assign({},I,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:S})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const Jg={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qg,data:{}};var f1={passive:!0};function ev(r){var n=r.state,o=r.instance,c=r.options,f=c.scroll,p=f===void 0?!0:f,b=c.resize,k=b===void 0?!0:b,S=yi(n.elements.popper),O=[].concat(n.scrollParents.reference,n.scrollParents.popper);return p&&O.forEach(function(I){I.addEventListener("scroll",o.update,f1)}),k&&S.addEventListener("resize",o.update,f1),function(){p&&O.forEach(function(I){I.removeEventListener("scroll",o.update,f1)}),k&&S.removeEventListener("resize",o.update,f1)}}const tv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ev,data:{}};var rv={left:"right",right:"left",bottom:"top",top:"bottom"};function g1(r){return r.replace(/left|right|bottom|top/g,function(n){return rv[n]})}var nv={start:"end",end:"start"};function yp(r){return r.replace(/start|end/g,function(n){return nv[n]})}function Hd(r){var n=yi(r),o=n.pageXOffset,c=n.pageYOffset;return{scrollLeft:o,scrollTop:c}}function Bd(r){return uu(Ja(r)).left+Hd(r).scrollLeft}function iv(r,n){var o=yi(r),c=Ja(r),f=o.visualViewport,p=c.clientWidth,b=c.clientHeight,k=0,S=0;if(f){p=f.width,b=f.height;var O=Jp();(O||!O&&n==="fixed")&&(k=f.offsetLeft,S=f.offsetTop)}return{width:p,height:b,x:k+Bd(r),y:S}}function ov(r){var n,o=Ja(r),c=Hd(r),f=(n=r.ownerDocument)==null?void 0:n.body,p=Zs(o.scrollWidth,o.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),b=Zs(o.scrollHeight,o.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),k=-c.scrollLeft+Bd(r),S=-c.scrollTop;return $i(f||o).direction==="rtl"&&(k+=Zs(o.clientWidth,f?f.clientWidth:0)-p),{width:p,height:b,x:k,y:S}}function Fd(r){var n=$i(r),o=n.overflow,c=n.overflowX,f=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+f+c)}function i2(r){return["html","body","#document"].indexOf(yo(r))>=0?r.ownerDocument.body:Jn(r)&&Fd(r)?r:i2(D1(r))}function m0(r,n){var o;n===void 0&&(n=[]);var c=i2(r),f=c===((o=r.ownerDocument)==null?void 0:o.body),p=yi(c),b=f?[p].concat(p.visualViewport||[],Fd(c)?c:[]):c,k=n.concat(b);return f?k:k.concat(m0(D1(b)))}function yd(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function av(r,n){var o=uu(r,!1,n==="fixed");return o.top=o.top+r.clientTop,o.left=o.left+r.clientLeft,o.bottom=o.top+r.clientHeight,o.right=o.left+r.clientWidth,o.width=r.clientWidth,o.height=r.clientHeight,o.x=o.left,o.y=o.top,o}function Cp(r,n,o){return n===Xp?yd(iv(r,o)):qs(n)?av(n,o):yd(ov(Ja(r)))}function sv(r){var n=m0(D1(r)),o=["absolute","fixed"].indexOf($i(r).position)>=0,c=o&&Jn(r)?E0(r):r;return qs(c)?n.filter(function(f){return qs(f)&&e2(f,c)&&yo(f)!=="body"}):[]}function lv(r,n,o,c){var f=n==="clippingParents"?sv(r):[].concat(n),p=[].concat(f,[o]),b=p[0],k=p.reduce(function(S,O){var I=Cp(r,O,c);return S.top=Zs(I.top,S.top),S.right=w1(I.right,S.right),S.bottom=w1(I.bottom,S.bottom),S.left=Zs(I.left,S.left),S},Cp(r,b,c));return k.width=k.right-k.left,k.height=k.bottom-k.top,k.x=k.left,k.y=k.top,k}function o2(r){var n=r.reference,o=r.element,c=r.placement,f=c?Ni(c):null,p=c?cu(c):null,b=n.x+n.width/2-o.width/2,k=n.y+n.height/2-o.height/2,S;switch(f){case In:S={x:b,y:n.y-o.height};break;case bi:S={x:b,y:n.y+n.height};break;case mi:S={x:n.x+n.width,y:k};break;case Dn:S={x:n.x-o.width,y:k};break;default:S={x:n.x,y:n.y}}var O=f?$d(f):null;if(O!=null){var I=O==="y"?"height":"width";switch(p){case su:S[O]=S[O]-(n[I]/2-o[I]/2);break;case z0:S[O]=S[O]+(n[I]/2-o[I]/2);break}}return S}function S0(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=c===void 0?r.placement:c,p=o.strategy,b=p===void 0?r.strategy:p,k=o.boundary,S=k===void 0?Og:k,O=o.rootBoundary,I=O===void 0?Xp:O,U=o.elementContext,q=U===void 0?d0:U,X=o.altBoundary,ce=X===void 0?!1:X,we=o.padding,me=we===void 0?0:we,Ae=r2(typeof me!="number"?me:n2(me,A0)),Ie=q===d0?Tg:d0,pe=r.rects.popper,he=r.elements[ce?Ie:q],Te=lv(qs(he)?he:he.contextElement||Ja(r.elements.popper),S,I,b),He=uu(r.elements.reference),Ye=o2({reference:He,element:pe,strategy:"absolute",placement:f}),et=yd(Object.assign({},pe,Ye)),nt=q===d0?et:He,ge={top:Te.top-nt.top+Ae.top,bottom:nt.bottom-Te.bottom+Ae.bottom,left:Te.left-nt.left+Ae.left,right:nt.right-Te.right+Ae.right},ye=r.modifiersData.offset;if(q===d0&&ye){var it=ye[f];Object.keys(ge).forEach(function(W){var E=[mi,bi].indexOf(W)>=0?1:-1,T=[In,bi].indexOf(W)>=0?"y":"x";ge[W]+=it[T]*E})}return ge}function uv(r,n){n===void 0&&(n={});var o=n,c=o.placement,f=o.boundary,p=o.rootBoundary,b=o.padding,k=o.flipVariations,S=o.allowedAutoPlacements,O=S===void 0?Qp:S,I=cu(c),U=I?k?vp:vp.filter(function(ce){return cu(ce)===I}):A0,q=U.filter(function(ce){return O.indexOf(ce)>=0});q.length===0&&(q=U,{}.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var X=q.reduce(function(ce,we){return ce[we]=S0(r,{placement:we,boundary:f,rootBoundary:p,padding:b})[Ni(we)],ce},{});return Object.keys(X).sort(function(ce,we){return X[ce]-X[we]})}function cv(r){if(Ni(r)===I1)return[];var n=g1(r);return[yp(r),n,yp(n)]}function fv(r){var n=r.state,o=r.options,c=r.name;if(!n.modifiersData[c]._skip){for(var f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,k=b===void 0?!0:b,S=o.fallbackPlacements,O=o.padding,I=o.boundary,U=o.rootBoundary,q=o.altBoundary,X=o.flipVariations,ce=X===void 0?!0:X,we=o.allowedAutoPlacements,me=n.options.placement,Ae=Ni(me),Ie=Ae===me,pe=S||(Ie||!ce?[g1(me)]:cv(me)),he=[me].concat(pe).reduce(function(Ft,ut){return Ft.concat(Ni(ut)===I1?uv(n,{placement:ut,boundary:I,rootBoundary:U,padding:O,flipVariations:ce,allowedAutoPlacements:we}):ut)},[]),Te=n.rects.reference,He=n.rects.popper,Ye=new Map,et=!0,nt=he[0],ge=0;ge<he.length;ge++){var ye=he[ge],it=Ni(ye),W=cu(ye)===su,E=[In,bi].indexOf(it)>=0,T=E?"width":"height",ne=S0(n,{placement:ye,boundary:I,rootBoundary:U,altBoundary:q,padding:O}),ve=E?W?mi:Dn:W?bi:In;Te[T]>He[T]&&(ve=g1(ve));var ot=g1(ve),At=[];if(p&&At.push(ne[it]<=0),k&&At.push(ne[ve]<=0,ne[ot]<=0),At.every(function(Ft){return Ft})){nt=ye,et=!1;break}Ye.set(ye,At)}if(et)for(var sr=ce?3:1,Bt=function(ut){var _e=he.find(function(Fe){var Ze=Ye.get(Fe);if(Ze)return Ze.slice(0,ut).every(function(at){return at})});if(_e)return nt=_e,"break"},dn=sr;dn>0;dn--){var er=Bt(dn);if(er==="break")break}n.placement!==nt&&(n.modifiersData[c]._skip=!0,n.placement=nt,n.reset=!0)}}const dv={name:"flip",enabled:!0,phase:"main",fn:fv,requiresIfExists:["offset"],data:{_skip:!1}};function wp(r,n,o){return o===void 0&&(o={x:0,y:0}),{top:r.top-n.height-o.y,right:r.right-n.width+o.x,bottom:r.bottom-n.height+o.y,left:r.left-n.width-o.x}}function xp(r){return[In,mi,bi,Dn].some(function(n){return r[n]>=0})}function hv(r){var n=r.state,o=r.name,c=n.rects.reference,f=n.rects.popper,p=n.modifiersData.preventOverflow,b=S0(n,{elementContext:"reference"}),k=S0(n,{altBoundary:!0}),S=wp(b,c),O=wp(k,f,p),I=xp(S),U=xp(O);n.modifiersData[o]={referenceClippingOffsets:S,popperEscapeOffsets:O,isReferenceHidden:I,hasPopperEscaped:U},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":I,"data-popper-escaped":U})}const pv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hv};function gv(r,n,o){var c=Ni(r),f=[Dn,In].indexOf(c)>=0?-1:1,p=typeof o=="function"?o(Object.assign({},n,{placement:r})):o,b=p[0],k=p[1];return b=b||0,k=(k||0)*f,[Dn,mi].indexOf(c)>=0?{x:k,y:b}:{x:b,y:k}}function vv(r){var n=r.state,o=r.options,c=r.name,f=o.offset,p=f===void 0?[0,0]:f,b=Qp.reduce(function(I,U){return I[U]=gv(U,n.rects,p),I},{}),k=b[n.placement],S=k.x,O=k.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=S,n.modifiersData.popperOffsets.y+=O),n.modifiersData[c]=b}const bv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vv};function mv(r){var n=r.state,o=r.name;n.modifiersData[o]=o2({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}const yv={name:"popperOffsets",enabled:!0,phase:"read",fn:mv,data:{}};function Cv(r){return r==="x"?"y":"x"}function wv(r){var n=r.state,o=r.options,c=r.name,f=o.mainAxis,p=f===void 0?!0:f,b=o.altAxis,k=b===void 0?!1:b,S=o.boundary,O=o.rootBoundary,I=o.altBoundary,U=o.padding,q=o.tether,X=q===void 0?!0:q,ce=o.tetherOffset,we=ce===void 0?0:ce,me=S0(n,{boundary:S,rootBoundary:O,padding:U,altBoundary:I}),Ae=Ni(n.placement),Ie=cu(n.placement),pe=!Ie,he=$d(Ae),Te=Cv(he),He=n.modifiersData.popperOffsets,Ye=n.rects.reference,et=n.rects.popper,nt=typeof we=="function"?we(Object.assign({},n.rects,{placement:n.placement})):we,ge=typeof nt=="number"?{mainAxis:nt,altAxis:nt}:Object.assign({mainAxis:0,altAxis:0},nt),ye=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,it={x:0,y:0};if(!!He){if(p){var W,E=he==="y"?In:Dn,T=he==="y"?bi:mi,ne=he==="y"?"height":"width",ve=He[he],ot=ve+me[E],At=ve-me[T],sr=X?-et[ne]/2:0,Bt=Ie===su?Ye[ne]:et[ne],dn=Ie===su?-et[ne]:-Ye[ne],er=n.elements.arrow,Ft=X&&er?Nd(er):{width:0,height:0},ut=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:t2(),_e=ut[E],Fe=ut[T],Ze=b0(0,Ye[ne],Ft[ne]),at=pe?Ye[ne]/2-sr-Ze-_e-ge.mainAxis:Bt-Ze-_e-ge.mainAxis,st=pe?-Ye[ne]/2+sr+Ze+Fe+ge.mainAxis:dn+Ze+Fe+ge.mainAxis,We=n.elements.arrow&&E0(n.elements.arrow),Gt=We?he==="y"?We.clientTop||0:We.clientLeft||0:0,qr=(W=ye==null?void 0:ye[he])!=null?W:0,lr=ve+at-qr-Gt,Xe=ve+st-qr,yt=b0(X?w1(ot,lr):ot,ve,X?Zs(At,Xe):At);He[he]=yt,it[he]=yt-ve}if(k){var kt,$r=he==="x"?In:Dn,rn=he==="x"?bi:mi,fr=He[Te],tt=Te==="y"?"height":"width",B=fr+me[$r],oe=fr-me[rn],V=[In,Dn].indexOf(Ae)!==-1,Qe=(kt=ye==null?void 0:ye[Te])!=null?kt:0,dr=V?B:fr-Ye[tt]-et[tt]-Qe+ge.altAxis,Mr=V?fr+Ye[tt]+et[tt]-Qe-ge.altAxis:oe,$n=X&&V?Zg(dr,fr,Mr):b0(X?dr:B,fr,X?Mr:oe);He[Te]=$n,it[Te]=$n-fr}n.modifiersData[c]=it}}const xv={name:"preventOverflow",enabled:!0,phase:"main",fn:wv,requiresIfExists:["offset"]};function Lv(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function _v(r){return r===yi(r)||!Jn(r)?Hd(r):Lv(r)}function zv(r){var n=r.getBoundingClientRect(),o=lu(n.width)/r.offsetWidth||1,c=lu(n.height)/r.offsetHeight||1;return o!==1||c!==1}function Sv(r,n,o){o===void 0&&(o=!1);var c=Jn(n),f=Jn(n)&&zv(n),p=Ja(n),b=uu(r,f,o),k={scrollLeft:0,scrollTop:0},S={x:0,y:0};return(c||!c&&!o)&&((yo(n)!=="body"||Fd(p))&&(k=_v(n)),Jn(n)?(S=uu(n,!0),S.x+=n.clientLeft,S.y+=n.clientTop):p&&(S.x=Bd(p))),{x:b.left+k.scrollLeft-S.x,y:b.top+k.scrollTop-S.y,width:b.width,height:b.height}}function Mv(r){var n=new Map,o=new Set,c=[];r.forEach(function(p){n.set(p.name,p)});function f(p){o.add(p.name);var b=[].concat(p.requires||[],p.requiresIfExists||[]);b.forEach(function(k){if(!o.has(k)){var S=n.get(k);S&&f(S)}}),c.push(p)}return r.forEach(function(p){o.has(p.name)||f(p)}),c}function kv(r){var n=Mv(r);return bd.reduce(function(o,c){return o.concat(n.filter(function(f){return f.phase===c}))},[])}function Ov(r){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(r())})})),n}}function qa(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),c=1;c<n;c++)o[c-1]=arguments[c];return[].concat(o).reduce(function(f,p){return f.replace(/%s/,p)},r)}var Bs='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Tv='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Lp=["name","enabled","phase","fn","effect","requires","options"];function Pv(r){r.forEach(function(n){[].concat(Object.keys(n),Lp).filter(function(o,c,f){return f.indexOf(o)===c}).forEach(function(o){switch(o){case"name":typeof n.name!="string"&&console.error(qa(Bs,String(n.name),'"name"','"string"','"'+String(n.name)+'"'));break;case"enabled":typeof n.enabled!="boolean"&&console.error(qa(Bs,n.name,'"enabled"','"boolean"','"'+String(n.enabled)+'"'));break;case"phase":bd.indexOf(n.phase)<0&&console.error(qa(Bs,n.name,'"phase"',"either "+bd.join(", "),'"'+String(n.phase)+'"'));break;case"fn":typeof n.fn!="function"&&console.error(qa(Bs,n.name,'"fn"','"function"','"'+String(n.fn)+'"'));break;case"effect":n.effect!=null&&typeof n.effect!="function"&&console.error(qa(Bs,n.name,'"effect"','"function"','"'+String(n.fn)+'"'));break;case"requires":n.requires!=null&&!Array.isArray(n.requires)&&console.error(qa(Bs,n.name,'"requires"','"array"','"'+String(n.requires)+'"'));break;case"requiresIfExists":Array.isArray(n.requiresIfExists)||console.error(qa(Bs,n.name,'"requiresIfExists"','"array"','"'+String(n.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+n.name+'" modifier, valid properties are '+Lp.map(function(c){return'"'+c+'"'}).join(", ")+'; but "'+o+'" was provided.')}n.requires&&n.requires.forEach(function(c){r.find(function(f){return f.name===c})==null&&console.error(qa(Tv,String(n.name),c,c))})})})}function Av(r,n){var o=new Set;return r.filter(function(c){var f=n(c);if(!o.has(f))return o.add(f),!0})}function Ev(r){var n=r.reduce(function(o,c){var f=o[c.name];return o[c.name]=f?Object.assign({},f,c,{options:Object.assign({},f.options,c.options),data:Object.assign({},f.data,c.data)}):c,o},{});return Object.keys(n).map(function(o){return n[o]})}var _p="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Iv="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",zp={placement:"bottom",modifiers:[],strategy:"absolute"};function Sp(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return!n.some(function(c){return!(c&&typeof c.getBoundingClientRect=="function")})}function Dv(r){r===void 0&&(r={});var n=r,o=n.defaultModifiers,c=o===void 0?[]:o,f=n.defaultOptions,p=f===void 0?zp:f;return function(k,S,O){O===void 0&&(O=p);var I={placement:"bottom",orderedModifiers:[],options:Object.assign({},zp,p),modifiersData:{},elements:{reference:k,popper:S},attributes:{},styles:{}},U=[],q=!1,X={state:I,setOptions:function(Ae){var Ie=typeof Ae=="function"?Ae(I.options):Ae;we(),I.options=Object.assign({},p,I.options,Ie),I.scrollParents={reference:qs(k)?m0(k):k.contextElement?m0(k.contextElement):[],popper:m0(S)};var pe=kv(Ev([].concat(c,I.options.modifiers)));if(I.orderedModifiers=pe.filter(function(ye){return ye.enabled}),{}.NODE_ENV!=="production"){var he=Av([].concat(pe,I.options.modifiers),function(ye){var it=ye.name;return it});if(Pv(he),Ni(I.options.placement)===I1){var Te=I.orderedModifiers.find(function(ye){var it=ye.name;return it==="flip"});Te||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var He=$i(S),Ye=He.marginTop,et=He.marginRight,nt=He.marginBottom,ge=He.marginLeft;[Ye,et,nt,ge].some(function(ye){return parseFloat(ye)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return ce(),X.update()},forceUpdate:function(){if(!q){var Ae=I.elements,Ie=Ae.reference,pe=Ae.popper;if(!Sp(Ie,pe)){({}).NODE_ENV!=="production"&&console.error(_p);return}I.rects={reference:Sv(Ie,E0(pe),I.options.strategy==="fixed"),popper:Nd(pe)},I.reset=!1,I.placement=I.options.placement,I.orderedModifiers.forEach(function(ye){return I.modifiersData[ye.name]=Object.assign({},ye.data)});for(var he=0,Te=0;Te<I.orderedModifiers.length;Te++){if({}.NODE_ENV!=="production"&&(he+=1,he>100)){console.error(Iv);break}if(I.reset===!0){I.reset=!1,Te=-1;continue}var He=I.orderedModifiers[Te],Ye=He.fn,et=He.options,nt=et===void 0?{}:et,ge=He.name;typeof Ye=="function"&&(I=Ye({state:I,options:nt,name:ge,instance:X})||I)}}},update:Ov(function(){return new Promise(function(me){X.forceUpdate(),me(I)})}),destroy:function(){we(),q=!0}};if(!Sp(k,S))return{}.NODE_ENV!=="production"&&console.error(_p),X;X.setOptions(O).then(function(me){!q&&O.onFirstUpdate&&O.onFirstUpdate(me)});function ce(){I.orderedModifiers.forEach(function(me){var Ae=me.name,Ie=me.options,pe=Ie===void 0?{}:Ie,he=me.effect;if(typeof he=="function"){var Te=he({state:I,name:Ae,instance:X,options:pe}),He=function(){};U.push(Te||He)}})}function we(){U.forEach(function(me){return me()}),U=[]}return X}}var Rv=[tv,yv,Jg,Wg,bv,dv,xv,jg,pv],Nv=Dv({defaultModifiers:Rv}),$v=Object.defineProperty,Hv=Object.getOwnPropertyDescriptor,tn=(r,n,o,c)=>{for(var f=c>1?void 0:c?Hv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&$v(n,o,f),f};let Bv=0;const Wd=Ee("popover"),a2=Ee("pure-popover"),s2=["click","hover","focus"],[x1,Cd,Us]=s2,Ud=["dialog","tooltip","menu"],[Fv]=Ud;class Wv extends CustomEvent{constructor(n){super(`${Wd}-${n}`,{bubbles:!0,composed:!0})}}exports.PurePopover=class extends Ue{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=Fv,this.disabled=!1,this.popoverId=`popover-${++Bv}`,this.delayTimeout=0}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.popperInstance)==null||r.destroy()}updatePosition(){var r;(r=this.popperInstance)==null||r.update()}async updated(r){super.updated(r),this.popperInstance=this.popperInstance||Nv(this.referenceElement,this.popoverElement,this.popperOptions),await this.setPopperOptions()}get popperOptions(){return{placement:this.placement,strategy:this.isFixed?"fixed":"absolute",modifiers:[{name:"offset",options:{offset:[this.skidding,this.distance]}}]}}async setPopperOptions(){!this.popperInstance||await this.popperInstance.setOptions(this.popperOptions)}get referenceElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return r==null?void 0:r.assignedElements({flatten:!0})[0]}get contentElement(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return r==null?void 0:r.assignedNodes({flatten:!0})[0]}get popoverElement(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector(".popover-container")}emit(r){this.dispatchEvent(new Wv(r))}async open(){this.disabled||(this.emit("open"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!0,await this.updateComplete,this.emit("after-open")},this.delayOnOpen))}async close(){this.disabled||(this.emit("close"),clearTimeout(this.delayTimeout),this.delayTimeout=window.setTimeout(async()=>{this.isOpen=!1,await this.updateComplete,this.emit("after-close")},this.delayOnClose))}async toggleIsOpen(){this.isOpen?await this.close():await this.open()}render(){return ee`
71
83
  <slot></slot>
72
84
 
73
85
  <brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
@@ -86,15 +98,16 @@
86
98
  .popover-container {
87
99
  z-index: var(--brz-z-index-dialog);
88
100
  }
89
- `;un([F({type:Number})],exports.PurePopover.prototype,"distance",2);un([F({type:Number})],exports.PurePopover.prototype,"skidding",2);un([F({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);un([F({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);un([F({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);un([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);un([F({type:String})],exports.PurePopover.prototype,"placement",2);un([F({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);un([gt()],exports.PurePopover.prototype,"popoverId",2);un([gt()],exports.PurePopover.prototype,"popperInstance",2);un([gt()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=un([Q(s2)],exports.PurePopover);const L1=["blur","mouseenter","mouseleave","keydown",x1,Ws],[cd,Bv,Fv,Wv]=L1;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[x1]:this.handleClick,[Ws]:this.handleFocus,[cd]:this.handleBlur,[Bv]:this.handleMouseEnter,[Fv]:this.handleMouseLeave,[Wv]: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(){L1.forEach(r=>this.addEventListener(r,this.listenableEventHandlers[r],{capture:[Ws,cd].includes(r)})),document.addEventListener("click",this.handleOutsideClick)}teardownListeners(){L1.forEach(r=>this.removeEventListener(r,this.listenableEventHandlers[r],{capture:[Ws,cd].includes(r)})),document.removeEventListener("click",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(r){return this.triggers.includes(r)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(r){!this.isOpen||this.contains(r.target)||this.hasPointer||await this.close()}async handleClick(r){var n;if(!(this.isOpen&&((n=this.contentElement)==null?void 0:n.contains(r.target)))){if(!this.hasTrigger(x1))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(Ws)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Ws)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(wd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(wd)||this.hasFocus)&&await this.close()}async handleKeyDown(r){r.stopPropagation(),["Escape","Esc"].includes(r.key)&&await this.close()}};un([F({type:String})],exports.Popover.prototype,"trigger",2);un([gt()],exports.Popover.prototype,"hasFocus",2);un([gt()],exports.Popover.prototype,"hasPointer",2);exports.Popover=un([Q(Wd)],exports.Popover);var Uv=Object.defineProperty,Yv=Object.getOwnPropertyDescriptor,Xa=(r,n,o,c)=>{for(var f=c>1?void 0:c?Yv(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Uv(n,o,f),f};const u2=Ee("tooltip"),[,Zv]=Ud;exports.Tooltip=class extends Ue{constructor(){super(...arguments),this.delayOnClose=100,this.delayOnOpen=100,this.isFixed=!1,this.placement="top",this.trigger="hover focus",this.content="",this.theme="dark"}render(){return ee`
101
+ `;tn([F({type:Number})],exports.PurePopover.prototype,"distance",2);tn([F({type:Number})],exports.PurePopover.prototype,"skidding",2);tn([F({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);tn([F({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);tn([F({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);tn([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);tn([F({type:String})],exports.PurePopover.prototype,"placement",2);tn([F({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);tn([F({type:Boolean})],exports.PurePopover.prototype,"disabled",2);tn([pt()],exports.PurePopover.prototype,"popoverId",2);tn([pt()],exports.PurePopover.prototype,"popperInstance",2);tn([pt()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=tn([Q(a2)],exports.PurePopover);const L1=["blur","mouseenter","mouseleave","keydown",x1,Us],[cd,Uv,Yv,Zv]=L1;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[x1]:this.handleClick,[Us]:this.handleFocus,[cd]:this.handleBlur,[Uv]:this.handleMouseEnter,[Yv]:this.handleMouseLeave,[Zv]: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(){L1.forEach(r=>this.addEventListener(r,this.listenableEventHandlers[r],{capture:[Us,cd].includes(r)})),document.addEventListener("click",this.handleOutsideClick)}teardownListeners(){L1.forEach(r=>this.removeEventListener(r,this.listenableEventHandlers[r],{capture:[Us,cd].includes(r)})),document.removeEventListener("click",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(r){return this.triggers.includes(r)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(r){!this.isOpen||this.contains(r.target)||this.hasPointer||await this.close()}async handleClick(r){var n;if(!(this.isOpen&&((n=this.contentElement)==null?void 0:n.contains(r.target)))){if(!this.hasTrigger(x1))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){!this.hasTrigger(Us)||(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Us)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(Cd)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(Cd)||this.hasFocus)&&await this.close()}async handleKeyDown(r){r.stopPropagation(),["Escape","Esc"].includes(r.key)&&await this.close()}};tn([F({type:String})],exports.Popover.prototype,"trigger",2);tn([pt()],exports.Popover.prototype,"hasFocus",2);tn([pt()],exports.Popover.prototype,"hasPointer",2);exports.Popover=tn([Q(Wd)],exports.Popover);var Vv=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,ua=(r,n,o,c)=>{for(var f=c>1?void 0:c?Gv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Vv(n,o,f),f};const l2=Ee("tooltip"),[,qv]=Ud;exports.Tooltip=class extends Ue{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 ee`
90
102
  <brz-popover
91
- .popoverRole=${Zv}
103
+ .popoverRole=${qv}
92
104
  .distance=${8}
93
105
  .delayOnClose=${this.delayOnClose}
94
106
  .delayOnOpen=${this.delayOnOpen}
95
107
  .placement=${this.placement}
96
108
  .trigger=${this.trigger}
97
109
  ?is-fixed=${this.isFixed}
110
+ ?disabled=${this.disabled}
98
111
  >
99
112
  <slot></slot>
100
113
  <div slot="content">${this.content}</div>
@@ -119,7 +132,7 @@
119
132
  background-color: var(--brz-color-white);
120
133
  color: var(--brz-color-text);
121
134
  }
122
- `;Xa([F({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Xa([F({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Xa([F({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);Xa([F({type:String})],exports.Tooltip.prototype,"placement",2);Xa([F({type:String})],exports.Tooltip.prototype,"trigger",2);Xa([F({type:String})],exports.Tooltip.prototype,"content",2);Xa([F({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Xa([Q(u2)],exports.Tooltip);var Vv=Object.defineProperty,Gv=Object.getOwnPropertyDescriptor,Co=(r,n,o,c)=>{for(var f=c>1?void 0:c?Gv(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Vv(n,o,f),f};const c2=Ee("avatar"),f2=Ee("avatar-group");var xd=(r=>(r[r.tiny=0]="tiny",r[r.small=1]="small",r[r.medium=2]="medium",r[r.large=3]="large",r))(xd||{});exports.Avatar=class extends Ue{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:r}){const n=r==null?void 0:r.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=xd[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const r=xd[this.size],n=()=>{switch(r){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return ee`
135
+ `;ua([F({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);ua([F({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);ua([F({type:Boolean,attribute:"is-fixed"})],exports.Tooltip.prototype,"isFixed",2);ua([F({type:String})],exports.Tooltip.prototype,"placement",2);ua([F({type:String})],exports.Tooltip.prototype,"trigger",2);ua([F({type:Boolean})],exports.Tooltip.prototype,"disabled",2);ua([F({type:String})],exports.Tooltip.prototype,"content",2);ua([F({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=ua([Q(l2)],exports.Tooltip);var jv=Object.defineProperty,Kv=Object.getOwnPropertyDescriptor,wo=(r,n,o,c)=>{for(var f=c>1?void 0:c?Kv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&jv(n,o,f),f};const u2=Ee("avatar"),c2=Ee("avatar-group");var wd=(r=>(r[r.tiny=0]="tiny",r[r.small=1]="small",r[r.medium=2]="medium",r[r.large=3]="large",r))(wd||{});exports.Avatar=class extends Ue{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:r}){const n=r==null?void 0:r.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=wd[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(o=>o.charAt(0)).join("").toUpperCase()}get iconTemplate(){const r=wd[this.size],n=()=>{switch(r){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return ee`
123
136
  <span class="icon" aria-label=${this.label}>
124
137
  <brz-icon size=${n()} icon=${Vt(this.icon)}></brz-icon>
125
138
  </span>
@@ -129,7 +142,7 @@
129
142
  </span>
130
143
  `}get imageTemplate(){return ee`<img src=${Vt(this.imageSrc)} alt=${this.label} />`}get slotTemplate(){return ee`
131
144
  <div
132
- class=${ja({overflow:!0,hidden:!0})}
145
+ class=${Qa({overflow:!0,hidden:!0})}
133
146
  >
134
147
  <slot @slotchange=${this.handleSlotChange} />
135
148
  </div>
@@ -266,7 +279,7 @@
266
279
  :host .hidden {
267
280
  display: none;
268
281
  }
269
- `;Co([F({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);Co([F({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);Co([F({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);Co([F({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);Co([F({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);Co([F({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);Co([F({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);Co([gt()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=Co([Q(c2)],exports.Avatar);exports.AvatarGroup=class extends Ue{render(){return ee` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=Se`
282
+ `;wo([F({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);wo([F({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);wo([F({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);wo([F({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);wo([F({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);wo([F({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);wo([F({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);wo([pt()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=wo([Q(u2)],exports.Avatar);exports.AvatarGroup=class extends Ue{render(){return ee` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=Se`
270
283
  :host .container {
271
284
  align-items: center;
272
285
  display: inline-flex;
@@ -277,7 +290,7 @@
277
290
  ::slotted(sp-avatar:not(:first-child)) {
278
291
  margin-left: -0.6em;
279
292
  }
280
- `;exports.AvatarGroup=Co([Q(f2)],exports.AvatarGroup);var qv=Object.defineProperty,jv=Object.getOwnPropertyDescriptor,R1=(r,n,o,c)=>{for(var f=c>1?void 0:c?jv(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&qv(n,o,f),f};const d2=Ee("row"),h2=Ee("column");exports.Row=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top"}render(){return ee`<slot></slot>`}};exports.Row.styles=Se`
293
+ `;exports.AvatarGroup=wo([Q(c2)],exports.AvatarGroup);var Xv=Object.defineProperty,Qv=Object.getOwnPropertyDescriptor,R1=(r,n,o,c)=>{for(var f=c>1?void 0:c?Qv(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Xv(n,o,f),f};const f2=Ee("row"),d2=Ee("column");exports.Row=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top"}render(){return ee`<slot></slot>`}};exports.Row.styles=Se`
281
294
  :host {
282
295
  display: flex;
283
296
  flex-direction: row;
@@ -297,7 +310,7 @@
297
310
  :host([vertical-align='bottom']) {
298
311
  align-items: flex-end;
299
312
  }
300
- `;R1([F({type:String,attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=R1([Q(d2)],exports.Row);exports.Column=class extends Ue{constructor(){super(...arguments),this.align="left"}render(){return ee`<slot></slot>`}};exports.Column.styles=Se`
313
+ `;R1([F({type:String,attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=R1([Q(f2)],exports.Row);exports.Column=class extends Ue{constructor(){super(...arguments),this.align="left"}render(){return ee`<slot></slot>`}};exports.Column.styles=Se`
301
314
  :host {
302
315
  display: flex;
303
316
  flex-direction: column;
@@ -317,7 +330,7 @@
317
330
  :host([align='right']) {
318
331
  align-items: flex-end;
319
332
  }
320
- `;R1([F({type:String})],exports.Column.prototype,"align",2);exports.Column=R1([Q(h2)],exports.Column);var Kv=Object.defineProperty,Xv=Object.getOwnPropertyDescriptor,p2=(r,n,o,c)=>{for(var f=c>1?void 0:c?Xv(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Kv(n,o,f),f};const g2=Ee("loading-spinner");exports.LoadingSpinner=class extends Ue{constructor(){super(...arguments),this.size=24}render(){return ee`
333
+ `;R1([F({type:String})],exports.Column.prototype,"align",2);exports.Column=R1([Q(d2)],exports.Column);var Jv=Object.defineProperty,e9=Object.getOwnPropertyDescriptor,h2=(r,n,o,c)=>{for(var f=c>1?void 0:c?e9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Jv(n,o,f),f};const p2=Ee("loading-spinner");exports.LoadingSpinner=class extends Ue{constructor(){super(...arguments),this.size=24}render(){return ee`
321
334
  <div class="loading-spinner">
322
335
  <svg
323
336
  class="loading-spinner--circular"
@@ -372,12 +385,12 @@
372
385
  stroke-dashoffset: -124px;
373
386
  }
374
387
  }
375
- `;p2([F({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=p2([Q(g2)],exports.LoadingSpinner);var Qv=Object.defineProperty,Jv=Object.getOwnPropertyDescriptor,wo=(r,n,o,c)=>{for(var f=c>1?void 0:c?Jv(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Qv(n,o,f),f};const Yd=Ee("button"),v2=Ee("button-group");class e9 extends CustomEvent{constructor(n){super(`${Yd}-${n}`,{bubbles:!0,composed:!0})}}const t9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends Ue{constructor(){super(...arguments),this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1}emit(r){this.dispatchEvent(new e9(r))}render(){return ee`
388
+ `;h2([F({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=h2([Q(p2)],exports.LoadingSpinner);var t9=Object.defineProperty,r9=Object.getOwnPropertyDescriptor,xo=(r,n,o,c)=>{for(var f=c>1?void 0:c?r9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&t9(n,o,f),f};const Yd=Ee("button"),g2=Ee("button-group");class n9 extends CustomEvent{constructor(n){super(`${Yd}-${n}`,{bubbles:!0,composed:!0})}}const i9=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends Ue{constructor(){super(...arguments),this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1}emit(r){this.dispatchEvent(new n9(r))}render(){return ee`
376
389
  <button
377
390
  @click=${()=>{this.disabled||this.emit("click")}}
378
391
  type="button"
379
392
  ?disabled=${this.disabled}
380
- class=${ja({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})}
393
+ class=${Qa({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})}
381
394
  >
382
395
  <div class="contents">
383
396
  ${this.leadingIcon?ee`<brz-icon
@@ -570,7 +583,7 @@
570
583
  brz-icon {
571
584
  padding: var(--brz-spacing-px);
572
585
  }
573
- `;wo([F({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);wo([F({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);wo([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);wo([F({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);wo([F({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);wo([F({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);wo([F({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);exports.Button=wo([Q(Yd)],exports.Button);exports.ButtonGroup=class extends Ue{constructor(){super(...arguments),this.compact=!1}render(){return ee`<brz-row class=${ja({compact:this.compact})}
586
+ `;xo([F({type:String,reflect:!0,attribute:"button-type",noAccessor:!0})],exports.Button.prototype,"buttonType",2);xo([F({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);xo([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);xo([F({type:String,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);xo([F({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);xo([F({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);xo([F({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);exports.Button=xo([Q(Yd)],exports.Button);exports.ButtonGroup=class extends Ue{constructor(){super(...arguments),this.compact=!1}render(){return ee`<brz-row class=${Qa({compact:this.compact})}
574
587
  ><slot></slot
575
588
  ></brz-row>`}};exports.ButtonGroup.styles=Se`
576
589
  brz-row {
@@ -589,7 +602,7 @@
589
602
  --brz-button-r-radius: 0;
590
603
  --brz-border-r-width: 0;
591
604
  }
592
- `;wo([F({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=wo([Q(v2)],exports.ButtonGroup);var r9=Object.defineProperty,n9=Object.getOwnPropertyDescriptor,Zd=(r,n,o,c)=>{for(var f=c>1?void 0:c?n9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&r9(n,o,f),f};const b2=Ee("combo-box"),m2=Ee("combo-box-option");exports.ComboBox=class extends Ue{constructor(){super(...arguments),this.isOpen=!1,this.toggleMenu=r=>{this.isOpen=!this.isOpen,r.stopPropagation()},this.outsideClick=()=>{this.isOpen=!1}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.outsideClick)}disconnectedCallback(){document.removeEventListener("click",this.outsideClick),super.disconnectedCallback()}render(){return ee`
605
+ `;xo([F({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=xo([Q(g2)],exports.ButtonGroup);var o9=Object.defineProperty,a9=Object.getOwnPropertyDescriptor,Zd=(r,n,o,c)=>{for(var f=c>1?void 0:c?a9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&o9(n,o,f),f};const v2=Ee("combo-box"),b2=Ee("combo-box-option");exports.ComboBox=class extends Ue{constructor(){super(...arguments),this.isOpen=!1,this.toggleMenu=r=>{this.isOpen=!this.isOpen,r.stopPropagation()},this.outsideClick=()=>{this.isOpen=!1}}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.outsideClick)}disconnectedCallback(){document.removeEventListener("click",this.outsideClick),super.disconnectedCallback()}render(){return ee`
593
606
  <div class="container ${this.isOpen?"open":""}">
594
607
  <div @click="${this.toggleMenu}"><slot></slot></div>
595
608
  <div class="dropdown"><slot name="options"></slot></div>
@@ -617,7 +630,7 @@
617
630
  .container.open .dropdown {
618
631
  display: block;
619
632
  }
620
- `;Zd([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.ComboBox.prototype,"isOpen",2);exports.ComboBox=Zd([Q(b2)],exports.ComboBox);exports.ComboBoxOption=class extends Ue{render(){return ee` <div class="item"><slot></slot></div> `}};exports.ComboBoxOption.styles=Se`
633
+ `;Zd([F({type:Boolean,attribute:"is-open",reflect:!0})],exports.ComboBox.prototype,"isOpen",2);exports.ComboBox=Zd([Q(v2)],exports.ComboBox);exports.ComboBoxOption=class extends Ue{render(){return ee` <div class="item"><slot></slot></div> `}};exports.ComboBoxOption.styles=Se`
621
634
  .item {
622
635
  height: 20px;
623
636
  cursor: pointer;
@@ -632,11 +645,11 @@
632
645
  .item:hover {
633
646
  background-color: var(--brz-color-neutral-250);
634
647
  }
635
- `;exports.ComboBoxOption=Zd([Q(m2)],exports.ComboBoxOption);var i9=Object.defineProperty,o9=Object.getOwnPropertyDescriptor,I0=(r,n,o,c)=>{for(var f=c>1?void 0:c?o9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&i9(n,o,f),f};const y2=Ee("modal");class Vd extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Ue{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=r=>{if(r.key==="Escape")return this.handleClose(r)},this.handleClose=r=>{r instanceof MouseEvent&&this.noClose||r instanceof MouseEvent&&r.target!==this.overlay||(r.stopPropagation(),this.dispatchEvent(new Vd))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0)}get overlay(){return this.renderRoot.querySelector("#overlay")}handleTransitionEnd(r){r.target===this.overlay&&(this.shown=!1)}render(){return ee`
648
+ `;exports.ComboBoxOption=Zd([Q(b2)],exports.ComboBoxOption);var s9=Object.defineProperty,l9=Object.getOwnPropertyDescriptor,I0=(r,n,o,c)=>{for(var f=c>1?void 0:c?l9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&s9(n,o,f),f};const m2=Ee("modal");class Vd extends CustomEvent{constructor(){super("brz-modal-close",{bubbles:!0})}}exports.Modal=class extends Ue{constructor(){super(...arguments),this.size="small",this.open=!1,this.noClose=!1,this.shown=this.open,this.handleKeyUp=r=>{if(r.key==="Escape")return this.handleClose(r)},this.handleClose=r=>{r instanceof MouseEvent&&this.noClose||r instanceof MouseEvent&&r.target!==this.overlay||(r.stopPropagation(),this.dispatchEvent(new Vd))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0)}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0)}get overlay(){return this.renderRoot.querySelector("#overlay")}handleTransitionEnd(r){r.target===this.overlay&&(this.shown=!1)}render(){return ee`
636
649
  <brz-fade-in-out ?shown=${this.open}>
637
650
  <div
638
651
  id="overlay"
639
- class="${ja({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
652
+ class="${Qa({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
640
653
  @mousedown=${this.handleClose}
641
654
  @keyup=${()=>{}}
642
655
  @transitionend=${this.handleTransitionEnd}
@@ -706,7 +719,7 @@
706
719
  ::slotted(sp-modal-body:first-child) {
707
720
  padding-top: var(--brz-spacing-10);
708
721
  }
709
- `;I0([F({type:String})],exports.Modal.prototype,"size",2);I0([F({type:Boolean})],exports.Modal.prototype,"open",2);I0([F({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);I0([F({attribute:!1})],exports.Modal.prototype,"shown",2);exports.Modal=I0([Q(y2)],exports.Modal);function Ld(r,n){if(r){if(r instanceof n)return r;if(r instanceof ShadowRoot)return Ld(r.host,n);if("parentNode"in r)return Ld(r.parentElement||r.parentNode,n)}return null}var a9=Object.defineProperty,s9=Object.getOwnPropertyDescriptor,xo=(r,n,o,c)=>{for(var f=c>1?void 0:c?s9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&a9(n,o,f),f};const C2=Ee("split-row"),w2=Ee("action-bar");exports.SplitRow=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return ee`
722
+ `;I0([F({type:String})],exports.Modal.prototype,"size",2);I0([F({type:Boolean})],exports.Modal.prototype,"open",2);I0([F({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);I0([F({attribute:!1})],exports.Modal.prototype,"shown",2);exports.Modal=I0([Q(m2)],exports.Modal);function xd(r,n){if(r){if(r instanceof n)return r;if(r instanceof ShadowRoot)return xd(r.host,n);if("parentNode"in r)return xd(r.parentElement||r.parentNode,n)}return null}var u9=Object.defineProperty,c9=Object.getOwnPropertyDescriptor,Lo=(r,n,o,c)=>{for(var f=c>1?void 0:c?c9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&u9(n,o,f),f};const y2=Ee("split-row"),C2=Ee("action-bar");exports.SplitRow=class extends Ue{constructor(){super(...arguments),this.verticalAlign="top",this.leftExpand=!1,this.rightExpand=!1,this.noGap=!1,this.expandY=!1}render(){return ee`
710
723
  <brz-row vertical-align=${this.verticalAlign}>
711
724
  <div class="left">
712
725
  <slot name="left"></slot>
@@ -744,7 +757,7 @@
744
757
  :host([right-expand]) .right {
745
758
  flex: 1;
746
759
  }
747
- `;xo([F({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);xo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);xo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);xo([F({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);xo([F({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=xo([Q(C2)],exports.SplitRow);exports.ActionBar=class extends Ue{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return ee`
760
+ `;Lo([F({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);Lo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);Lo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);Lo([F({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);Lo([F({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=Lo([Q(y2)],exports.SplitRow);exports.ActionBar=class extends Ue{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return ee`
748
761
  <brz-split-row
749
762
  vertical-align="middle"
750
763
  ?left-expand=${this.leftExpand}
@@ -762,7 +775,7 @@
762
775
  :host([no-border]) brz-split-row {
763
776
  box-shadow: none;
764
777
  }
765
- `;xo([F({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);xo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);xo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=xo([Q(w2)],exports.ActionBar);const l9=r=>r.viewBox!==void 0,u9={arrowDown:{svg:G`
778
+ `;Lo([F({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);Lo([F({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);Lo([F({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=Lo([Q(C2)],exports.ActionBar);const f9=r=>r.viewBox!==void 0,d9={arrowDown:{svg:G`
766
779
  <title>Asset 36</title>
767
780
  <g data-name="Layer 2">
768
781
  <g data-name="Layer 1">
@@ -1036,7 +1049,7 @@
1036
1049
  C7,14.1,7,14.1,7,14.1z"/>
1037
1050
  <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
1038
1051
  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
1039
- 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:G`<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:G`<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)"/>`}},c9="0 0 18 18",x2=r=>l9(r)?r:{svg:r,viewBox:c9},Gd={actions:G`
1052
+ 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:G`<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:G`<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)"/>`}},h9="0 0 18 18",w2=r=>f9(r)?r:{svg:r,viewBox:h9},Gd={actions:G`
1040
1053
  <g stroke="none" stroke-width="1" fill-rule="evenodd">
1041
1054
  <g transform="translate(-0.002970, 0.000000)">
1042
1055
  <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>
@@ -1501,7 +1514,7 @@
1501
1514
  <circle class="st0" cx="9" cy="13" r="1"/>
1502
1515
  <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"/>
1503
1516
  </g>
1504
- <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:G`<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:G`<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"/>`,...u9},f9=Object.keys(Gd);var d9=Object.defineProperty,h9=Object.getOwnPropertyDescriptor,qd=(r,n,o,c)=>{for(var f=c>1?void 0:c?h9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&d9(n,o,f),f};const L2=Ee("icon");exports.Icon=class extends Ue{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:r,viewBox:n}=x2(Gd[this.icon]);return ee`<svg width=${this.size} height=${this.size} viewBox=${n}>
1517
+ <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:G`<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:G`<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"/>`,...d9},p9=Object.keys(Gd);var g9=Object.defineProperty,v9=Object.getOwnPropertyDescriptor,qd=(r,n,o,c)=>{for(var f=c>1?void 0:c?v9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&g9(n,o,f),f};const x2=Ee("icon");exports.Icon=class extends Ue{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:r,viewBox:n}=w2(Gd[this.icon]);return ee`<svg width=${this.size} height=${this.size} viewBox=${n}>
1505
1518
  ${r}
1506
1519
  </svg>`}};exports.Icon.styles=Se`
1507
1520
  :host {
@@ -1512,7 +1525,7 @@
1512
1525
  svg {
1513
1526
  fill: currentColor;
1514
1527
  }
1515
- `;qd([F({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);qd([F({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=qd([Q(L2)],exports.Icon);var p9=Object.defineProperty,g9=Object.getOwnPropertyDescriptor,N1=(r,n,o,c)=>{for(var f=c>1?void 0:c?g9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&p9(n,o,f),f};const _2=Ee("modal-header"),z2=Ee("modal-body"),S2=Ee("modal-footer");exports.ModalHeader=class extends Ue{get _noClose(){var r;return(r=Ld(this.parentElement,exports.Modal))==null?void 0:r.noClose}_handleClickClose(){this.dispatchEvent(new Vd)}render(){return ee`
1528
+ `;qd([F({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);qd([F({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=qd([Q(x2)],exports.Icon);var b9=Object.defineProperty,m9=Object.getOwnPropertyDescriptor,N1=(r,n,o,c)=>{for(var f=c>1?void 0:c?m9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&b9(n,o,f),f};const L2=Ee("modal-header"),_2=Ee("modal-body"),z2=Ee("modal-footer");exports.ModalHeader=class extends Ue{get _noClose(){var r;return(r=xd(this.parentElement,exports.Modal))==null?void 0:r.noClose}_handleClickClose(){this.dispatchEvent(new Vd)}render(){return ee`
1516
1529
  <brz-heading size="xl"><slot></slot></brz-heading>
1517
1530
  ${this._noClose?void 0:ee`<brz-icon
1518
1531
  id="close-button"
@@ -1532,7 +1545,7 @@
1532
1545
  cursor: pointer;
1533
1546
  color: var(--brz-color-neutral-750);
1534
1547
  }
1535
- `;exports.ModalHeader=N1([Q(_2)],exports.ModalHeader);exports.ModalBody=class extends Ue{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 ee`<slot></slot>`}};exports.ModalBody.styles=Se`
1548
+ `;exports.ModalHeader=N1([Q(L2)],exports.ModalHeader);exports.ModalBody=class extends Ue{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 ee`<slot></slot>`}};exports.ModalBody.styles=Se`
1536
1549
  :host {
1537
1550
  display: block;
1538
1551
  padding: var(--brz-spacing-2) var(--brz-spacing-6) var(--brz-spacing-5)
@@ -1543,7 +1556,7 @@
1543
1556
  :host([scrollable]) {
1544
1557
  border-bottom: 1px solid var(--brz-color-neutral-300);
1545
1558
  }
1546
- `;N1([F({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=N1([Q(z2)],exports.ModalBody);exports.ModalFooter=class extends Ue{render(){return ee`
1559
+ `;N1([F({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=N1([Q(_2)],exports.ModalBody);exports.ModalFooter=class extends Ue{render(){return ee`
1547
1560
  <brz-split-row vertical-align="middle">
1548
1561
  <slot slot="left" name="left"></slot>
1549
1562
  <slot slot="right" name="right"></slot>
@@ -1552,7 +1565,7 @@
1552
1565
  :host {
1553
1566
  padding: var(--brz-spacing-5) var(--brz-spacing-6);
1554
1567
  }
1555
- `;exports.ModalFooter=N1([Q(S2)],exports.ModalFooter);var v9=Object.defineProperty,b9=Object.getOwnPropertyDescriptor,M2=(r,n,o,c)=>{for(var f=c>1?void 0:c?b9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&v9(n,o,f),f};const k2=Ee("confirmation-dialog");class O2 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class T2 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ue{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new O2)}handleConfirm(){this.dispatchEvent(new T2)}render(){return ee`<brz-modal size="small" ?open=${this.open} noClose>
1568
+ `;exports.ModalFooter=N1([Q(z2)],exports.ModalFooter);var y9=Object.defineProperty,C9=Object.getOwnPropertyDescriptor,S2=(r,n,o,c)=>{for(var f=c>1?void 0:c?C9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&y9(n,o,f),f};const M2=Ee("confirmation-dialog");class k2 extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class O2 extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ue{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new k2)}handleConfirm(){this.dispatchEvent(new O2)}render(){return ee`<brz-modal size="small" ?open=${this.open} noClose>
1556
1569
  <brz-modal-body>
1557
1570
  <slot name="body"></slot>
1558
1571
  </brz-modal-body>
@@ -1566,7 +1579,7 @@
1566
1579
  </brz-button>
1567
1580
  </brz-button-group>
1568
1581
  </brz-modal-footer>
1569
- </brz-modal>`}};M2([F({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=M2([Q(k2)],exports.ConfirmationDialog);var m9=Object.defineProperty,y9=Object.getOwnPropertyDescriptor,qs=(r,n,o,c)=>{for(var f=c>1?void 0:c?y9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&m9(n,o,f),f};class Lo extends Ue{constructor(){super(...arguments),this.readonly=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(n){this.value=n.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(n){this.useProxy&&this.updateProxyInput()}}qs([F({type:Boolean,reflect:!0})],Lo.prototype,"readonly",2);qs([F({type:Boolean,reflect:!0})],Lo.prototype,"invalid",2);qs([F({type:String})],Lo.prototype,"name",2);qs([F({type:String})],Lo.prototype,"id",2);qs([F({type:String})],Lo.prototype,"value",2);qs([gt()],Lo.prototype,"proxyInput",2);qs([gt()],Lo.prototype,"useProxy",2);var C9=Object.defineProperty,w9=Object.getOwnPropertyDescriptor,du=(r,n,o,c)=>{for(var f=c>1?void 0:c?w9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&C9(n,o,f),f};const P2=Ee("input-checkbox"),Di={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Lo{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.checkboxState=Di.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(r){r.key===" "&&this.onInput()}onInput(){if(!(this.readonly||this.disabled)){switch(this.checkboxState){case Di.Checked:this.checked=!1;break;case Di.Empty:this.checked=!0;break;case Di.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 Di.Checked:return ee`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Di.Indeterminate:return ee`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Di.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?Di.Checked:this.indeterminate?Di.Indeterminate:Di.Empty,ee` <label>
1582
+ </brz-modal>`}};S2([F({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=S2([Q(M2)],exports.ConfirmationDialog);var w9=Object.defineProperty,x9=Object.getOwnPropertyDescriptor,js=(r,n,o,c)=>{for(var f=c>1?void 0:c?x9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&w9(n,o,f),f};class _o extends Ue{constructor(){super(...arguments),this.readonly=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(n){this.value=n.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(n){this.useProxy&&this.updateProxyInput()}}js([F({type:Boolean,reflect:!0})],_o.prototype,"readonly",2);js([F({type:Boolean,reflect:!0})],_o.prototype,"invalid",2);js([F({type:String})],_o.prototype,"name",2);js([F({type:String})],_o.prototype,"id",2);js([F({type:String})],_o.prototype,"value",2);js([pt()],_o.prototype,"proxyInput",2);js([pt()],_o.prototype,"useProxy",2);var L9=Object.defineProperty,_9=Object.getOwnPropertyDescriptor,du=(r,n,o,c)=>{for(var f=c>1?void 0:c?_9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&L9(n,o,f),f};const T2=Ee("input-checkbox"),Di={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends _o{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.checkboxState=Di.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(r){r.key===" "&&this.onInput()}onInput(){if(!(this.readonly||this.disabled)){switch(this.checkboxState){case Di.Checked:this.checked=!1;break;case Di.Empty:this.checked=!0;break;case Di.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 Di.Checked:return ee`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case Di.Indeterminate:return ee`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case Di.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?Di.Checked:this.indeterminate?Di.Indeterminate:Di.Empty,ee` <label>
1570
1583
  <div
1571
1584
  class="checkbox"
1572
1585
  tabindex=${this.disabled?"-1":"0"}
@@ -1634,16 +1647,16 @@
1634
1647
  position: absolute;
1635
1648
  left: 0;
1636
1649
  }
1637
- `];du([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);du([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);du([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);du([gt()],exports.InputCheckbox.prototype,"checkboxState",2);du([gt()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=du([Q(P2)],exports.InputCheckbox);var x9=Object.defineProperty,L9=Object.getOwnPropertyDescriptor,_9=(r,n,o,c)=>{for(var f=c>1?void 0:c?L9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&x9(n,o,f),f};const z9=Ee("input-guide");let _1=class extends Ue{render(){return ee` <slot></slot> `}};_1.styles=Se`
1650
+ `];du([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);du([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);du([F({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);du([pt()],exports.InputCheckbox.prototype,"checkboxState",2);du([pt()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=du([Q(T2)],exports.InputCheckbox);var z9=Object.defineProperty,S9=Object.getOwnPropertyDescriptor,M9=(r,n,o,c)=>{for(var f=c>1?void 0:c?S9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&z9(n,o,f),f};const k9=Ee("input-guide");let _1=class extends Ue{render(){return ee` <slot></slot> `}};_1.styles=Se`
1638
1651
  :host {
1639
1652
  font-size: var(--brz-font-size-xs);
1640
1653
  }
1641
- `;_1=_9([Q(z9)],_1);var S9=Object.defineProperty,M9=Object.getOwnPropertyDescriptor,k9=(r,n,o,c)=>{for(var f=c>1?void 0:c?M9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&S9(n,o,f),f};const A2=Ee("input-error");exports.InputError=class extends Ue{render(){return ee` <slot></slot> `}};exports.InputError.styles=Se`
1654
+ `;_1=M9([Q(k9)],_1);var O9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,P9=(r,n,o,c)=>{for(var f=c>1?void 0:c?T9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&O9(n,o,f),f};const P2=Ee("input-error");exports.InputError=class extends Ue{render(){return ee` <slot></slot> `}};exports.InputError.styles=Se`
1642
1655
  :host {
1643
1656
  font-size: var(--brz-font-size-sm);
1644
1657
  color: var(--brz-color-error);
1645
1658
  }
1646
- `;exports.InputError=k9([Q(A2)],exports.InputError);var O9=Object.defineProperty,T9=Object.getOwnPropertyDescriptor,Qa=(r,n,o,c)=>{for(var f=c>1?void 0:c?T9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&O9(n,o,f),f};const E2=Ee("labeled-input"),I2=Ee("input-label"),P9=Se`
1659
+ `;exports.InputError=P9([Q(P2)],exports.InputError);var A9=Object.defineProperty,E9=Object.getOwnPropertyDescriptor,es=(r,n,o,c)=>{for(var f=c>1?void 0:c?E9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&A9(n,o,f),f};const A2=Ee("labeled-input"),E2=Ee("input-label"),I9=Se`
1647
1660
  .size-x-small {
1648
1661
  width: 80px;
1649
1662
  }
@@ -1667,7 +1680,7 @@
1667
1680
  .size-full {
1668
1681
  width: 100%;
1669
1682
  }
1670
- `,A9=Se`
1683
+ `,D9=Se`
1671
1684
  .container {
1672
1685
  display: flex;
1673
1686
  }
@@ -1712,7 +1725,7 @@
1712
1725
  brz-split-row {
1713
1726
  text-align: right;
1714
1727
  }
1715
- `,E9=Se`
1728
+ `,R9=Se`
1716
1729
  .guide {
1717
1730
  display: flex;
1718
1731
  }
@@ -1721,7 +1734,7 @@
1721
1734
  margin-left: auto;
1722
1735
  white-space: nowrap;
1723
1736
  }
1724
- `;exports.LabeledInput=class extends Lo{constructor(){super(...arguments),this.required=!1,this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasPrompt=!1,this.hasError=!1}handleLabelChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="label"]');this.hasLabel=r.assignedNodes().length>0}handlePromptChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="prompt"]');this.hasPrompt=r.assignedNodes().length>0}handleErrorChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="error"]');this.hasError=r.assignedNodes().length>0}renderInput(){return ee`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}render(){const r=`size-${this.size}`;return ee`
1737
+ `;exports.LabeledInput=class extends _o{constructor(){super(...arguments),this.required=!1,this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasPrompt=!1,this.hasError=!1}handleLabelChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="label"]');this.hasLabel=r.assignedNodes().length>0}handlePromptChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="prompt"]');this.hasPrompt=r.assignedNodes().length>0}handleErrorChange(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector('slot[name="error"]');this.hasError=r.assignedNodes().length>0}renderInput(){return ee`<slot></slot>`}renderInputContainer(){return this.renderInput()}renderGuide(){return null}render(){const r=`size-${this.size}`;return ee`
1725
1738
  ${this.labelPosition==="side"?ee`<brz-split-row
1726
1739
  class=${r}
1727
1740
  style=${r==="size-full"?"":"margin-left: 180px"}
@@ -1731,7 +1744,7 @@
1731
1744
  <div class=${this.labelPosition==="top"?r:"container"}>
1732
1745
  <brz-split-row
1733
1746
  no-gap
1734
- class=${ja({"has-label":this.hasLabel,[r]:this.hasPrompt})}
1747
+ class=${Qa({"has-label":this.hasLabel,[r]:this.hasPrompt})}
1735
1748
  >
1736
1749
  <label slot="left" for=${this.id} class="field-label">
1737
1750
  <brz-input-label>
@@ -1746,7 +1759,7 @@
1746
1759
  ${this.renderInputContainer()}
1747
1760
 
1748
1761
  <div
1749
- class=${ja({guide:!0,"has-error":this.hasError})}
1762
+ class=${Qa({guide:!0,"has-error":this.hasError})}
1750
1763
  >
1751
1764
  <brz-input-error>
1752
1765
  <slot @slotchange=${this.handleErrorChange} name="error"></slot>
@@ -1756,14 +1769,14 @@
1756
1769
  </div>
1757
1770
  </div>
1758
1771
  </div>
1759
- `}};exports.LabeledInput.styles=[P9,A9,E9];Qa([F({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);Qa([F({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);Qa([F({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);Qa([gt()],exports.LabeledInput.prototype,"hasLabel",2);Qa([gt()],exports.LabeledInput.prototype,"hasPrompt",2);Qa([gt()],exports.LabeledInput.prototype,"hasError",2);exports.LabeledInput=Qa([Q(E2)],exports.LabeledInput);exports.InputLabel=class extends Ue{render(){return ee`<slot></slot>`}};exports.InputLabel.styles=Se`
1772
+ `}};exports.LabeledInput.styles=[I9,D9,R9];es([F({type:Boolean,attribute:"required",reflect:!0})],exports.LabeledInput.prototype,"required",2);es([F({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);es([F({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);es([pt()],exports.LabeledInput.prototype,"hasLabel",2);es([pt()],exports.LabeledInput.prototype,"hasPrompt",2);es([pt()],exports.LabeledInput.prototype,"hasError",2);exports.LabeledInput=es([Q(A2)],exports.LabeledInput);exports.InputLabel=class extends Ue{render(){return ee`<slot></slot>`}};exports.InputLabel.styles=Se`
1760
1773
  :host {
1761
1774
  display: inline-block;
1762
1775
  color: var(--brz-color-neutral-850);
1763
1776
  font-weight: var(--brz-font-weight-medium);
1764
1777
  line-height: var(--brz-line-height);
1765
1778
  }
1766
- `;exports.InputLabel=Qa([Q(I2)],exports.InputLabel);var I9=Object.defineProperty,D9=Object.getOwnPropertyDescriptor,jd=(r,n,o,c)=>{for(var f=c>1?void 0:c?D9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&I9(n,o,f),f};const R9=Se`
1779
+ `;exports.InputLabel=es([Q(E2)],exports.InputLabel);var N9=Object.defineProperty,$9=Object.getOwnPropertyDescriptor,jd=(r,n,o,c)=>{for(var f=c>1?void 0:c?$9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&N9(n,o,f),f};const H9=Se`
1767
1780
  :host {
1768
1781
  --input-text-color: var(--brz-color-neutral-850);
1769
1782
  --input-font: var(--brz-font-family);
@@ -1862,7 +1875,7 @@
1862
1875
  class="trailing"
1863
1876
  ></brz-icon>`:null}
1864
1877
  </div>
1865
- `}}Rn.styles=[...exports.LabeledInput.styles,R9];jd([F({type:String})],Rn.prototype,"placeholder",2);jd([F({type:String,reflect:!0,attribute:"leading-icon"})],Rn.prototype,"leadingIcon",2);jd([F({type:String,reflect:!0,attribute:"trailing-icon"})],Rn.prototype,"trailingIcon",2);var N9=Object.defineProperty,$9=Object.getOwnPropertyDescriptor,$1=(r,n,o,c)=>{for(var f=c>1?void 0:c?$9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&N9(n,o,f),f};const D2=Ee("input-text");exports.InputText=class extends Rn{constructor(){super(...arguments),this.size="medium"}renderInput(){return ee`
1878
+ `}}Rn.styles=[...exports.LabeledInput.styles,H9];jd([F({type:String})],Rn.prototype,"placeholder",2);jd([F({type:String,reflect:!0,attribute:"leading-icon"})],Rn.prototype,"leadingIcon",2);jd([F({type:String,reflect:!0,attribute:"trailing-icon"})],Rn.prototype,"trailingIcon",2);var B9=Object.defineProperty,F9=Object.getOwnPropertyDescriptor,$1=(r,n,o,c)=>{for(var f=c>1?void 0:c?F9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&B9(n,o,f),f};const I2=Ee("input-text");exports.InputText=class extends Rn{constructor(){super(...arguments),this.size="medium"}renderInput(){return ee`
1866
1879
  <input
1867
1880
  @input=${this.onInput}
1868
1881
  .value=${Vt(this.value)}
@@ -1877,7 +1890,7 @@
1877
1890
  input {
1878
1891
  height: 36px;
1879
1892
  }
1880
- `];$1([F({type:String})],exports.InputText.prototype,"value",2);$1([F({type:String,reflect:!0})],exports.InputText.prototype,"size",2);$1([F({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=$1([Q(D2)],exports.InputText);var H9=Object.defineProperty,B9=Object.getOwnPropertyDescriptor,H1=(r,n,o,c)=>{for(var f=c>1?void 0:c?B9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&H9(n,o,f),f};const R2=Ee("input-textarea");exports.InputTextarea=class extends Rn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var o;if(!this.maxlength)return null;const r=((o=this.value)==null?void 0:o.length)||0,n=ee`${r} of ${this.maxlength}`;return r>=this.maxlength?ee`<brz-input-error>${n}</brz-input-error>`:ee`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var r;return ee`
1893
+ `];$1([F({type:String})],exports.InputText.prototype,"value",2);$1([F({type:String,reflect:!0})],exports.InputText.prototype,"size",2);$1([F({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=$1([Q(I2)],exports.InputText);var W9=Object.defineProperty,U9=Object.getOwnPropertyDescriptor,H1=(r,n,o,c)=>{for(var f=c>1?void 0:c?U9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&W9(n,o,f),f};const D2=Ee("input-textarea");exports.InputTextarea=class extends Rn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var o;if(!this.maxlength)return null;const r=((o=this.value)==null?void 0:o.length)||0,n=ee`${r} of ${this.maxlength}`;return r>=this.maxlength?ee`<brz-input-error>${n}</brz-input-error>`:ee`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var r;return ee`
1881
1894
  <textarea
1882
1895
  @input=${this.onInput}
1883
1896
  .value=${(r=this.value)!=null?r:""}
@@ -1893,7 +1906,7 @@
1893
1906
  height: 100px;
1894
1907
  resize: none;
1895
1908
  }
1896
- `];H1([F({type:String})],exports.InputTextarea.prototype,"value",2);H1([F({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);H1([F({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=H1([Q(R2)],exports.InputTextarea);var F9=Object.defineProperty,W9=Object.getOwnPropertyDescriptor,D0=(r,n,o,c)=>{for(var f=c>1?void 0:c?W9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&F9(n,o,f),f};const N2=Ee("input-number"),U9=Se`
1909
+ `];H1([F({type:String})],exports.InputTextarea.prototype,"value",2);H1([F({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);H1([F({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=H1([Q(D2)],exports.InputTextarea);var Y9=Object.defineProperty,Z9=Object.getOwnPropertyDescriptor,D0=(r,n,o,c)=>{for(var f=c>1?void 0:c?Z9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Y9(n,o,f),f};const R2=Ee("input-number"),V9=Se`
1897
1910
  /* Chrome, Safari, Edge, Opera */
1898
1911
  input::-webkit-outer-spin-button,
1899
1912
  input::-webkit-inner-spin-button {
@@ -1905,7 +1918,7 @@
1905
1918
  input[type='number'] {
1906
1919
  -moz-appearance: textfield;
1907
1920
  }
1908
- `,$2=["e"],H2=r=>$2.includes(r.toLowerCase()),Y9=r=>!!$2.find(n=>r.toLowerCase().includes(n)),Z9=r=>{H2(r.key)&&r.preventDefault()},V9=r=>{var c;const{clipboardData:n}=r||window,o=(c=n==null?void 0:n.getData("text"))==null?void 0:c.toLowerCase();!o||(H2(o)||Y9(o))&&(r.stopPropagation(),r.preventDefault())};exports.InputNumber=class extends Rn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}getInput(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("input");return r==null||r.focus(),r}handleIncrease(){var n;const r=this.getInput();r==null||r.stepUp(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleDecrease(){var n;const r=this.getInput();r==null||r.stepDown(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleSteppedChange(r){this.value=r,this.dispatchChange()}get stepperLayout(){return this.hasNoStepper?null:ee`
1921
+ `,N2=["e"],$2=r=>N2.includes(r.toLowerCase()),G9=r=>!!N2.find(n=>r.toLowerCase().includes(n)),q9=r=>{$2(r.key)&&r.preventDefault()},j9=r=>{var c;const{clipboardData:n}=r||window,o=(c=n==null?void 0:n.getData("text"))==null?void 0:c.toLowerCase();!o||($2(o)||G9(o))&&(r.stopPropagation(),r.preventDefault())};exports.InputNumber=class extends Rn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step="1"}getInput(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("input");return r==null||r.focus(),r}handleIncrease(){var n;const r=this.getInput();r==null||r.stepUp(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleDecrease(){var n;const r=this.getInput();r==null||r.stepDown(),this.handleSteppedChange((n=r==null?void 0:r.value)!=null?n:"")}handleSteppedChange(r){this.value=r,this.dispatchChange()}get stepperLayout(){return this.hasNoStepper?null:ee`
1909
1922
  <div class="stepper-container">
1910
1923
  <button
1911
1924
  @click=${this.handleDecrease}
@@ -1929,8 +1942,8 @@
1929
1942
  `}renderInput(){return ee`<div class="container">
1930
1943
  ${this.stepperLayout}
1931
1944
  <input
1932
- @keydown=${Z9}
1933
- @paste=${V9}
1945
+ @keydown=${q9}
1946
+ @paste=${j9}
1934
1947
  @input=${this.onInput}
1935
1948
  @change=${this.onInput}
1936
1949
  .value=${this.value}
@@ -1943,7 +1956,7 @@
1943
1956
  min=${Vt(this.min)}
1944
1957
  max=${Vt(this.max)}
1945
1958
  />
1946
- </div>`}};exports.InputNumber.styles=[...Rn.styles,U9,Se`
1959
+ </div>`}};exports.InputNumber.styles=[...Rn.styles,V9,Se`
1947
1960
  :host(:not[has-no-stepper]) input {
1948
1961
  padding-right: var(--brz-spacing-20);
1949
1962
  }
@@ -1987,11 +2000,11 @@
1987
2000
  cursor: unset;
1988
2001
  background-color: var(--brz-color-neutral-250);
1989
2002
  }
1990
- `];D0([F({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);D0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);D0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);D0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);exports.InputNumber=D0([Q(N2)],exports.InputNumber);/**
2003
+ `];D0([F({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);D0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);D0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);D0([F({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);exports.InputNumber=D0([Q(R2)],exports.InputNumber);/**
1991
2004
  * @license
1992
2005
  * Copyright 2017 Google LLC
1993
2006
  * SPDX-License-Identifier: BSD-3-Clause
1994
- */class _d extends E1{constructor(n){if(super(n),this.it=Cr,n.type!==P1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===Cr||n==null)return this._t=void 0,this.it=n;if(n===bo)return n;if(typeof n!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(n===this.it)return this._t;this.it=n;const o=[n];return o.raw=o,this._t={_$litType$:this.constructor.resultType,strings:o,values:[]}}}_d.directiveName="unsafeHTML",_d.resultType=1;const G9=A1(_d);var q9=Object.defineProperty,j9=Object.getOwnPropertyDescriptor,js=(r,n,o,c)=>{for(var f=c>1?void 0:c?j9(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&q9(n,o,f),f};const B2=Ee("input-radio-group"),F2=Ee("input-radio-option");exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(r.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(r){const n=r.target;this.value=n.value,this.dispatchChange()}renderInput(){return ee`
2007
+ */class Ld extends E1{constructor(n){if(super(n),this.it=Cr,n.type!==P1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===Cr||n==null)return this._t=void 0,this.it=n;if(n===mo)return n;if(typeof n!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(n===this.it)return this._t;this.it=n;const o=[n];return o.raw=o,this._t={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Ld.directiveName="unsafeHTML",Ld.resultType=1;const K9=A1(Ld);var X9=Object.defineProperty,Q9=Object.getOwnPropertyDescriptor,Ks=(r,n,o,c)=>{for(var f=c>1?void 0:c?Q9(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&X9(n,o,f),f};const H2=Ee("input-radio-group"),B2=Ee("input-radio-option");exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(r.assignedElements()).filter(o=>o instanceof exports.InputRadioOption)}radioChange(r){const n=r.target;this.value=n.value,this.dispatchChange()}renderInput(){return ee`
1995
2008
  <slot
1996
2009
  id="options"
1997
2010
  style="display: none;"
@@ -2008,7 +2021,7 @@
2008
2021
  ?checked=${n}
2009
2022
  ?disabled=${r.disabled||this.readonly}
2010
2023
  />
2011
- <label for=${r.value}>${G9(r.innerHTML)}</label>
2024
+ <label for=${r.value}>${K9(r.innerHTML)}</label>
2012
2025
  </div>`})}
2013
2026
  </fieldset>
2014
2027
  `}};exports.InputRadio.styles=[...exports.LabeledInput.styles,Se`
@@ -2102,31 +2115,31 @@
2102
2115
  input[type='radio']:checked:disabled + label::after {
2103
2116
  background-color: var(--brz-color-neutral-450);
2104
2117
  }
2105
- `];js([F({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);js([F({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);js([gt()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=js([Q(B2)],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};js([F({type:String})],exports.InputRadioOption.prototype,"value",2);js([F({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=js([Q(F2)],exports.InputRadioOption);var Ql=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},fd={exports:{}},Mp;function Ja(){return Mp||(Mp=1,function(r,n){(function(o,c){r.exports=c()})(Ql,function(){var o=navigator.userAgent,c=navigator.platform,f=/gecko\/\d/i.test(o),g=/MSIE \d/.test(o),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),P=/Edge\/(\d+)/.exec(o),S=g||b||P,k=S&&(g?document.documentMode||6:+(P||b)[1]),I=!P&&/WebKit\//.test(o),U=I&&/Qt\/\d+\.\d+/.test(o),q=!P&&/Chrome\//.test(o),X=/Opera\//.test(o),ce=/Apple Computer/.test(navigator.vendor),we=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),me=/PhantomJS/.test(o),Ae=ce&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),Ie=/Android/.test(o),pe=Ae||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),he=Ae||/Mac/.test(c),Te=/\bCrOS\b/.test(o),He=/win/i.test(c),Ye=X&&o.match(/Version\/(\d*\.\d*)/);Ye&&(Ye=Number(Ye[1])),Ye&&Ye>=15&&(X=!1,I=!0);var et=he&&(U||X&&(Ye==null||Ye<12.11)),nt=f||S&&k>=9;function ge(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var s=e.className,a=ge(t).exec(s);if(a){var u=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(u?a[1]+u:"")}};function it(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function W(e,t){return it(e).appendChild(t)}function E(e,t,s,a){var u=document.createElement(e);if(s&&(u.className=s),a&&(u.style.cssText=a),typeof t=="string")u.appendChild(document.createTextNode(t));else if(t)for(var h=0;h<t.length;++h)u.appendChild(t[h]);return u}function O(e,t,s,a){var u=E(e,t,s,a);return u.setAttribute("role","presentation"),u}var ne;document.createRange?ne=function(e,t,s,a){var u=document.createRange();return u.setEnd(a||e,s),u.setStart(e,t),u}:ne=function(e,t,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",t),a};function ve(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ot(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function At(e,t){var s=e.className;ge(t).test(s)||(e.className+=(s?" ":"")+t)}function sr(e,t){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!ge(s[a]).test(t)&&(t+=" "+s[a]);return t}var Bt=function(e){e.select()};Ae?Bt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:S&&(Bt=function(e){try{e.select()}catch{}});function dn(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function er(e,t,s){t||(t={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!t.hasOwnProperty(a))&&(t[a]=e[a]);return t}function Ft(e,t,s,a,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=a||0,p=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return p+(t-h);p+=m-h,p+=s-p%s,h=m+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=dn(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,t){this.f=t;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function _e(e,t){for(var s=0;s<e.length;++s)if(e[s]==t)return s;return-1}var Fe=50,Ze={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},st={origin:"*mouse"},We={origin:"+move"};function Gt(e,t,s){for(var a=0,u=0;;){var h=e.indexOf(" ",a);h==-1&&(h=e.length);var p=h-a;if(h==e.length||u+p>=t)return a+Math.min(p,t-u);if(u+=h-a,u+=s-u%s,a=h+1,u>=t)return a}}var qr=[""];function lr(e){for(;qr.length<=e;)qr.push(Xe(qr)+" ");return qr[e]}function Xe(e){return e[e.length-1]}function yt(e,t){for(var s=[],a=0;a<e.length;a++)s[a]=t(e[a],a);return s}function kt(e,t,s){for(var a=0,u=s(t);a<e.length&&s(e[a])<=u;)a++;e.splice(a,0,t)}function $r(){}function tn(e,t){var s;return Object.create?s=Object.create(e):($r.prototype=e,s=new $r),t&&er(t,s),s}var fr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||fr.test(e))}function B(e,t){return t?t.source.indexOf("\\w")>-1&&tt(e)?!0:t.test(e):tt(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var V=/[\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 Qe(e){return e.charCodeAt(0)>=768&&V.test(e)}function dr(e,t,s){for(;(s<0?t>0:t<e.length)&&Qe(e.charAt(t));)t+=s;return t}function Mr(e,t,s){for(var a=t>s?-1:1;;){if(t==s)return t;var u=(t+s)/2,h=a<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:s;e(h)?s=h:t=h+a}}function $n(e,t,s,a){if(!e)return a(t,s,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var p=e[h];(p.from<s&&p.to>t||t==s&&p.to==t)&&(a(Math.max(p.from,t),Math.min(p.to,s),p.level==1?"rtl":"ltr",h),u=!0)}u||a(t,s,"ltr")}var jr=null;function Zt(e,t,s){var a;jr=null;for(var u=0;u<e.length;++u){var h=e[u];if(h.from<t&&h.to>t)return u;h.to==t&&(h.from!=h.to&&s=="before"?a=u:jr=u),h.from==t&&(h.from!=h.to&&s!="before"?a=u:jr=u)}return a!=null?a:jr}var xi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?t.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,p=/[Lb1n]/,m=/[1n]/;function y(C,z,M){this.level=C,this.from=z,this.to=M}return function(C,z){var M=z=="ltr"?"L":"R";if(C.length==0||z=="ltr"&&!a.test(C))return!1;for(var N=C.length,R=[],Z=0;Z<N;++Z)R.push(s(C.charCodeAt(Z)));for(var J=0,le=M;J<N;++J){var fe=R[J];fe=="m"?R[J]=le:le=fe}for(var Ce=0,de=M;Ce<N;++Ce){var xe=R[Ce];xe=="1"&&de=="r"?R[Ce]="n":h.test(xe)&&(de=xe,xe=="r"&&(R[Ce]="R"))}for(var Re=1,Pe=R[0];Re<N-1;++Re){var lt=R[Re];lt=="+"&&Pe=="1"&&R[Re+1]=="1"?R[Re]="1":lt==","&&Pe==R[Re+1]&&(Pe=="1"||Pe=="n")&&(R[Re]=Pe),Pe=lt}for(var Ot=0;Ot<N;++Ot){var ur=R[Ot];if(ur==",")R[Ot]="N";else if(ur=="%"){var Rt=void 0;for(Rt=Ot+1;Rt<N&&R[Rt]=="%";++Rt);for(var Ur=Ot&&R[Ot-1]=="!"||Rt<N&&R[Rt]=="1"?"1":"N",Yr=Ot;Yr<Rt;++Yr)R[Yr]=Ur;Ot=Rt-1}}for(var rr=0,Sr=M;rr<N;++rr){var gr=R[rr];Sr=="L"&&gr=="1"?R[rr]="L":h.test(gr)&&(Sr=gr)}for(var It=0;It<N;++It)if(u.test(R[It])){var Ht=void 0;for(Ht=It+1;Ht<N&&u.test(R[Ht]);++Ht);for(var Xt=(It?R[It-1]:M)=="L",Zr=(Ht<N?R[Ht]:M)=="L",Wa=Xt==Zr?Xt?"L":"R":M,go=It;go<Ht;++go)R[go]=Wa;It=Ht-1}for(var Rr=[],hi,vr=0;vr<N;)if(p.test(R[vr])){var u0=vr;for(++vr;vr<N&&p.test(R[vr]);++vr);Rr.push(new y(0,u0,vr))}else{var Ai=vr,jo=Rr.length,Ko=z=="rtl"?1:0;for(++vr;vr<N&&R[vr]!="L";++vr);for(var Vr=Ai;Vr<vr;)if(m.test(R[Vr])){Ai<Vr&&(Rr.splice(jo,0,new y(1,Ai,Vr)),jo+=Ko);var Ua=Vr;for(++Vr;Vr<vr&&m.test(R[Vr]);++Vr);Rr.splice(jo,0,new y(2,Ua,Vr)),jo+=Ko,Ai=Vr}else++Vr;Ai<vr&&Rr.splice(jo,0,new y(1,Ai,vr))}return z=="ltr"&&(Rr[0].level==1&&(hi=C.match(/^\s+/))&&(Rr[0].from=hi[0].length,Rr.unshift(new y(0,0,hi[0].length))),Xe(Rr).level==1&&(hi=C.match(/\s+$/))&&(Xe(Rr).to-=hi[0].length,Rr.push(new y(0,N-hi[0].length,N)))),z=="rtl"?Rr.reverse():Rr}}();function Hr(e,t){var s=e.order;return s==null&&(s=e.order=xi(e.text,t)),s}var Hn=[],$e=function(e,t,s){if(e.addEventListener)e.addEventListener(t,s,!1);else if(e.attachEvent)e.attachEvent("on"+t,s);else{var a=e._handlers||(e._handlers={});a[t]=(a[t]||Hn).concat(s)}};function Wi(e,t){return e._handlers&&e._handlers[t]||Hn}function kr(e,t,s){if(e.removeEventListener)e.removeEventListener(t,s,!1);else if(e.detachEvent)e.detachEvent("on"+t,s);else{var a=e._handlers,u=a&&a[t];if(u){var h=_e(u,s);h>-1&&(a[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ge(e,t){var s=Wi(e,t);if(!!s.length)for(var a=Array.prototype.slice.call(arguments,2),u=0;u<s.length;++u)s[u].apply(null,a)}function ir(e,t,s){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ge(e,s||t.type,e,t),hn(t)||t.codemirrorIgnore}function fa(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<t.length;++a)_e(s,t[a])==-1&&s.push(t[a])}function wr(e,t){return Wi(e,t).length>0}function Bn(e){e.prototype.on=function(t,s){$e(this,t,s)},e.prototype.off=function(t,s){kr(this,t,s)}}function xr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function da(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function hn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Mo(e){xr(e),da(e)}function Ui(e){return e.target||e.srcElement}function ts(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),he&&e.ctrlKey&&t==1&&(t=3),t}var rs=function(){if(S&&k<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),Kr;function Qs(e){if(Kr==null){var t=E("span","\u200B");W(e,E("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Kr=t.offsetWidth<=1&&t.offsetHeight>2&&!(S&&k<8))}var s=Kr?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var ko;function ni(e){if(ko!=null)return ko;var t=W(e,document.createTextNode("A\u062EA")),s=ne(t,0,1).getBoundingClientRect(),a=ne(t,1,2).getBoundingClientRect();return it(e),!s||s.left==s.right?!1:ko=a.right-s.right<3}var Oo=`
2118
+ `];Ks([F({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Ks([F({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Ks([pt()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Ks([Q(H2)],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};Ks([F({type:String})],exports.InputRadioOption.prototype,"value",2);Ks([F({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Ks([Q(B2)],exports.InputRadioOption);var Ql=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ca={exports:{}};(function(r,n){(function(o,c){r.exports=c()})(Ql,function(){var o=navigator.userAgent,c=navigator.platform,f=/gecko\/\d/i.test(o),p=/MSIE \d/.test(o),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(o),k=/Edge\/(\d+)/.exec(o),S=p||b||k,O=S&&(p?document.documentMode||6:+(k||b)[1]),I=!k&&/WebKit\//.test(o),U=I&&/Qt\/\d+\.\d+/.test(o),q=!k&&/Chrome\//.test(o),X=/Opera\//.test(o),ce=/Apple Computer/.test(navigator.vendor),we=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(o),me=/PhantomJS/.test(o),Ae=ce&&(/Mobile\/\w+/.test(o)||navigator.maxTouchPoints>2),Ie=/Android/.test(o),pe=Ae||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(o),he=Ae||/Mac/.test(c),Te=/\bCrOS\b/.test(o),He=/win/i.test(c),Ye=X&&o.match(/Version\/(\d*\.\d*)/);Ye&&(Ye=Number(Ye[1])),Ye&&Ye>=15&&(X=!1,I=!0);var et=he&&(U||X&&(Ye==null||Ye<12.11)),nt=f||S&&O>=9;function ge(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ye=function(e,t){var s=e.className,a=ge(t).exec(s);if(a){var u=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(u?a[1]+u:"")}};function it(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function W(e,t){return it(e).appendChild(t)}function E(e,t,s,a){var u=document.createElement(e);if(s&&(u.className=s),a&&(u.style.cssText=a),typeof t=="string")u.appendChild(document.createTextNode(t));else if(t)for(var h=0;h<t.length;++h)u.appendChild(t[h]);return u}function T(e,t,s,a){var u=E(e,t,s,a);return u.setAttribute("role","presentation"),u}var ne;document.createRange?ne=function(e,t,s,a){var u=document.createRange();return u.setEnd(a||e,s),u.setStart(e,t),u}:ne=function(e,t,s){var a=document.body.createTextRange();try{a.moveToElementText(e.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",s),a.moveStart("character",t),a};function ve(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function ot(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function At(e,t){var s=e.className;ge(t).test(s)||(e.className+=(s?" ":"")+t)}function sr(e,t){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!ge(s[a]).test(t)&&(t+=" "+s[a]);return t}var Bt=function(e){e.select()};Ae?Bt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:S&&(Bt=function(e){try{e.select()}catch{}});function dn(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function er(e,t,s){t||(t={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!t.hasOwnProperty(a))&&(t[a]=e[a]);return t}function Ft(e,t,s,a,u){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var h=a||0,g=u||0;;){var m=e.indexOf(" ",h);if(m<0||m>=t)return g+(t-h);g+=m-h,g+=s-g%s,h=m+1}}var ut=function(){this.id=null,this.f=null,this.time=0,this.handler=dn(this.onTimeout,this)};ut.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ut.prototype.set=function(e,t){this.f=t;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function _e(e,t){for(var s=0;s<e.length;++s)if(e[s]==t)return s;return-1}var Fe=50,Ze={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},st={origin:"*mouse"},We={origin:"+move"};function Gt(e,t,s){for(var a=0,u=0;;){var h=e.indexOf(" ",a);h==-1&&(h=e.length);var g=h-a;if(h==e.length||u+g>=t)return a+Math.min(g,t-u);if(u+=h-a,u+=s-u%s,a=h+1,u>=t)return a}}var qr=[""];function lr(e){for(;qr.length<=e;)qr.push(Xe(qr)+" ");return qr[e]}function Xe(e){return e[e.length-1]}function yt(e,t){for(var s=[],a=0;a<e.length;a++)s[a]=t(e[a],a);return s}function kt(e,t,s){for(var a=0,u=s(t);a<e.length&&s(e[a])<=u;)a++;e.splice(a,0,t)}function $r(){}function rn(e,t){var s;return Object.create?s=Object.create(e):($r.prototype=e,s=new $r),t&&er(t,s),s}var fr=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||fr.test(e))}function B(e,t){return t?t.source.indexOf("\\w")>-1&&tt(e)?!0:t.test(e):tt(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var V=/[\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 Qe(e){return e.charCodeAt(0)>=768&&V.test(e)}function dr(e,t,s){for(;(s<0?t>0:t<e.length)&&Qe(e.charAt(t));)t+=s;return t}function Mr(e,t,s){for(var a=t>s?-1:1;;){if(t==s)return t;var u=(t+s)/2,h=a<0?Math.ceil(u):Math.floor(u);if(h==t)return e(h)?t:s;e(h)?s=h:t=h+a}}function $n(e,t,s,a){if(!e)return a(t,s,"ltr",0);for(var u=!1,h=0;h<e.length;++h){var g=e[h];(g.from<s&&g.to>t||t==s&&g.to==t)&&(a(Math.max(g.from,t),Math.min(g.to,s),g.level==1?"rtl":"ltr",h),u=!0)}u||a(t,s,"ltr")}var jr=null;function Zt(e,t,s){var a;jr=null;for(var u=0;u<e.length;++u){var h=e[u];if(h.from<t&&h.to>t)return u;h.to==t&&(h.from!=h.to&&s=="before"?a=u:jr=u),h.from==t&&(h.from!=h.to&&s!="before"?a=u:jr=u)}return a!=null?a:jr}var xi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?t.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,h=/[LRr]/,g=/[Lb1n]/,m=/[1n]/;function y(C,z,M){this.level=C,this.from=z,this.to=M}return function(C,z){var M=z=="ltr"?"L":"R";if(C.length==0||z=="ltr"&&!a.test(C))return!1;for(var N=C.length,R=[],Z=0;Z<N;++Z)R.push(s(C.charCodeAt(Z)));for(var J=0,le=M;J<N;++J){var fe=R[J];fe=="m"?R[J]=le:le=fe}for(var Ce=0,de=M;Ce<N;++Ce){var xe=R[Ce];xe=="1"&&de=="r"?R[Ce]="n":h.test(xe)&&(de=xe,xe=="r"&&(R[Ce]="R"))}for(var Re=1,Pe=R[0];Re<N-1;++Re){var lt=R[Re];lt=="+"&&Pe=="1"&&R[Re+1]=="1"?R[Re]="1":lt==","&&Pe==R[Re+1]&&(Pe=="1"||Pe=="n")&&(R[Re]=Pe),Pe=lt}for(var Ot=0;Ot<N;++Ot){var ur=R[Ot];if(ur==",")R[Ot]="N";else if(ur=="%"){var Rt=void 0;for(Rt=Ot+1;Rt<N&&R[Rt]=="%";++Rt);for(var Ur=Ot&&R[Ot-1]=="!"||Rt<N&&R[Rt]=="1"?"1":"N",Yr=Ot;Yr<Rt;++Yr)R[Yr]=Ur;Ot=Rt-1}}for(var rr=0,Sr=M;rr<N;++rr){var gr=R[rr];Sr=="L"&&gr=="1"?R[rr]="L":h.test(gr)&&(Sr=gr)}for(var It=0;It<N;++It)if(u.test(R[It])){var Ht=void 0;for(Ht=It+1;Ht<N&&u.test(R[Ht]);++Ht);for(var Xt=(It?R[It-1]:M)=="L",Zr=(Ht<N?R[Ht]:M)=="L",Za=Xt==Zr?Xt?"L":"R":M,vo=It;vo<Ht;++vo)R[vo]=Za;It=Ht-1}for(var Rr=[],hi,vr=0;vr<N;)if(g.test(R[vr])){var u0=vr;for(++vr;vr<N&&g.test(R[vr]);++vr);Rr.push(new y(0,u0,vr))}else{var Ai=vr,Ko=Rr.length,Xo=z=="rtl"?1:0;for(++vr;vr<N&&R[vr]!="L";++vr);for(var Vr=Ai;Vr<vr;)if(m.test(R[Vr])){Ai<Vr&&(Rr.splice(Ko,0,new y(1,Ai,Vr)),Ko+=Xo);var Va=Vr;for(++Vr;Vr<vr&&m.test(R[Vr]);++Vr);Rr.splice(Ko,0,new y(2,Va,Vr)),Ko+=Xo,Ai=Vr}else++Vr;Ai<vr&&Rr.splice(Ko,0,new y(1,Ai,vr))}return z=="ltr"&&(Rr[0].level==1&&(hi=C.match(/^\s+/))&&(Rr[0].from=hi[0].length,Rr.unshift(new y(0,0,hi[0].length))),Xe(Rr).level==1&&(hi=C.match(/\s+$/))&&(Xe(Rr).to-=hi[0].length,Rr.push(new y(0,N-hi[0].length,N)))),z=="rtl"?Rr.reverse():Rr}}();function Hr(e,t){var s=e.order;return s==null&&(s=e.order=xi(e.text,t)),s}var Hn=[],$e=function(e,t,s){if(e.addEventListener)e.addEventListener(t,s,!1);else if(e.attachEvent)e.attachEvent("on"+t,s);else{var a=e._handlers||(e._handlers={});a[t]=(a[t]||Hn).concat(s)}};function Ui(e,t){return e._handlers&&e._handlers[t]||Hn}function kr(e,t,s){if(e.removeEventListener)e.removeEventListener(t,s,!1);else if(e.detachEvent)e.detachEvent("on"+t,s);else{var a=e._handlers,u=a&&a[t];if(u){var h=_e(u,s);h>-1&&(a[t]=u.slice(0,h).concat(u.slice(h+1)))}}}function Ge(e,t){var s=Ui(e,t);if(!!s.length)for(var a=Array.prototype.slice.call(arguments,2),u=0;u<s.length;++u)s[u].apply(null,a)}function ir(e,t,s){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ge(e,s||t.type,e,t),hn(t)||t.codemirrorIgnore}function pa(e){var t=e._handlers&&e._handlers.cursorActivity;if(!!t)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<t.length;++a)_e(s,t[a])==-1&&s.push(t[a])}function wr(e,t){return Ui(e,t).length>0}function Bn(e){e.prototype.on=function(t,s){$e(this,t,s)},e.prototype.off=function(t,s){kr(this,t,s)}}function xr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ga(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function hn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ko(e){xr(e),ga(e)}function Yi(e){return e.target||e.srcElement}function rs(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),he&&e.ctrlKey&&t==1&&(t=3),t}var ns=function(){if(S&&O<9)return!1;var e=E("div");return"draggable"in e||"dragDrop"in e}(),Kr;function Qs(e){if(Kr==null){var t=E("span","\u200B");W(e,E("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Kr=t.offsetWidth<=1&&t.offsetHeight>2&&!(S&&O<8))}var s=Kr?E("span","\u200B"):E("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var Oo;function ni(e){if(Oo!=null)return Oo;var t=W(e,document.createTextNode("A\u062EA")),s=ne(t,0,1).getBoundingClientRect(),a=ne(t,1,2).getBoundingClientRect();return it(e),!s||s.left==s.right?!1:Oo=a.right-s.right<3}var To=`
2106
2119
 
2107
2120
  b`.split(/\n/).length!=3?function(e){for(var t=0,s=[],a=e.length;t<=a;){var u=e.indexOf(`
2108
- `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),p=h.indexOf("\r");p!=-1?(s.push(h.slice(0,p)),t+=p+1):(s.push(h),t=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},Js=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},el=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ns=null;function Yi(e){if(ns!=null)return ns;var t=W(e,E("span","x")),s=t.getBoundingClientRect(),a=ne(t,0,1).getBoundingClientRect();return ns=Math.abs(s.left-a.left)>1}var Ln={},pn={};function tl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ln[e]=t}function Li(e,t){pn[e]=t}function To(e){if(typeof e=="string"&&pn.hasOwnProperty(e))e=pn[e];else if(e&&typeof e.name=="string"&&pn.hasOwnProperty(e.name)){var t=pn[e.name];typeof t=="string"&&(t={name:t}),e=tn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return To("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return To("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ha(e,t){t=To(t);var s=Ln[t.name];if(!s)return ha(e,"text/plain");var a=s(e,t);if(Fn.hasOwnProperty(t.name)){var u=Fn[t.name];for(var h in u)!u.hasOwnProperty(h)||(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=u[h])}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)a[p]=t.modeProps[p];return a}var Fn={};function Wn(e,t){var s=Fn.hasOwnProperty(e)?Fn[e]:Fn[e]={};er(t,s)}function gn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var s={};for(var a in t){var u=t[a];u instanceof Array&&(u=u.concat([])),s[a]=u}return s}function is(e,t){for(var s;e.innerMode&&(s=e.innerMode(t),!(!s||s.mode==e));)t=s.state,e=s.mode;return s||{mode:e,state:t}}function os(e,t,s){return e.startState?e.startState(t,s):!0}var Wt=function(e,t,s){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Wt.prototype.eol=function(){return this.pos>=this.string.length},Wt.prototype.sol=function(){return this.pos==this.lineStart},Wt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Wt.prototype.eat=function(e){var t=this.string.charAt(this.pos),s;if(typeof e=="string"?s=t==e:s=t&&(e.test?e.test(t):e(t)),s)return++this.pos,t},Wt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Wt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Wt.prototype.skipToEnd=function(){this.pos=this.string.length},Wt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Wt.prototype.backUp=function(e){this.pos-=e},Wt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ft(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.indentation=function(){return Ft(this.string,null,this.tabSize)-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.match=function(e,t,s){if(typeof e=="string"){var a=function(p){return s?p.toLowerCase():p},u=this.string.substr(this.pos,e.length);if(a(u)==a(e))return t!==!1&&(this.pos+=e.length),!0}else{var h=this.string.slice(this.pos).match(e);return h&&h.index>0?null:(h&&t!==!1&&(this.pos+=h[0].length),h)}},Wt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Wt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Wt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ke(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var u=s.children[a],h=u.chunkSize();if(t<h){s=u;break}t-=h}return s.lines[t]}function vn(e,t,s){var a=[],u=t.line;return e.iter(t.line,s.line+1,function(h){var p=h.text;u==s.line&&(p=p.slice(0,s.ch)),u==t.line&&(p=p.slice(t.ch)),a.push(p),++u}),a}function as(e,t,s){var a=[];return e.iter(t,s,function(u){a.push(u.text)}),a}function rn(e,t){var s=t-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function Lt(e){if(e.parent==null)return null;for(var t=e.parent,s=_e(t.lines,e),a=t.parent;a;t=a,a=a.parent)for(var u=0;a.children[u]!=t;++u)s+=a.children[u].chunkSize();return s+t.first}function Un(e,t){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var u=e.children[a],h=u.height;if(t<h){e=u;continue e}t-=h,s+=u.chunkSize()}return s}while(!e.lines);for(var p=0;p<e.lines.length;++p){var m=e.lines[p],y=m.height;if(t<y)break;t-=y}return s+p}function Zi(e,t){return t>=e.first&&t<e.first+e.size}function pa(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ie(e,t,s){if(s===void 0&&(s=null),!(this instanceof ie))return new ie(e,t,s);this.line=e,this.ch=t,this.sticky=s}function w(e,t){return e.line-t.line||e.ch-t.ch}function T(e,t){return e.sticky==t.sticky&&w(e,t)==0}function j(e){return ie(e.line,e.ch)}function ae(e,t){return w(e,t)<0?t:e}function qe(e,t){return w(e,t)<0?e:t}function vt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function be(e,t){if(t.line<e.first)return ie(e.first,0);var s=e.first+e.size-1;return t.line>s?ie(s,ke(e,s).text.length):Or(t,ke(e,t.line).text.length)}function Or(e,t){var s=e.ch;return s==null||s>t?ie(e.line,t):s<0?ie(e.line,0):e}function nn(e,t){for(var s=[],a=0;a<t.length;a++)s[a]=be(e,t[a]);return s}var _i=function(e,t){this.state=e,this.lookAhead=t},Yn=function(e,t,s,a){this.state=t,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Yn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Yn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(e,t,s){return t instanceof _i?new Yn(e,gn(e.mode,t.state),s,t.lookAhead):new Yn(e,gn(e.mode,t),s)},Yn.prototype.save=function(e){var t=e!==!1?gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _i(t,this.maxLookAhead):t};function Y0(e,t,s,a){var u=[e.state.modeGen],h={};mu(e,t.text,e.doc.mode,s,function(C,z){return u.push(C,z)},h,a);for(var p=s.state,m=function(C){s.baseTokens=u;var z=e.state.overlays[C],M=1,N=0;s.state=!0,mu(e,t.text,z.mode,s,function(R,Z){for(var J=M;N<R;){var le=u[M];le>R&&u.splice(M,1,R,u[M+1],le),M+=2,N=Math.min(R,le)}if(!!Z)if(z.opaque)u.splice(J,M-J,R,"overlay "+Z),M=J+2;else for(;J<M;J+=2){var fe=u[J+1];u[J+1]=(fe?fe+" ":"")+"overlay "+Z}},h),s.state=p,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function bu(e,t,s){if(!t.styles||t.styles[0]!=e.state.modeGen){var a=ga(e,Lt(t)),u=t.text.length>e.options.maxHighlightLength&&gn(e.doc.mode,a.state),h=Y0(e,t,a);u&&(a.state=u),t.stateAfter=a.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ga(e,t,s){var a=e.doc,u=e.display;if(!a.mode.startState)return new Yn(a,!0,t);var h=V0(e,t,s),p=h>a.first&&ke(a,h-1).stateAfter,m=p?Yn.fromSaved(a,p,h):new Yn(a,os(a.mode),h);return a.iter(h,t,function(y){ss(e,y.text,m);var C=m.line;y.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function ss(e,t,s,a){var u=e.doc.mode,h=new Wt(t,e.options.tabSize,s);for(h.start=h.pos=a||0,t==""&&Z0(u,s.state);!h.eol();)rl(u,h,s.state),h.start=h.pos}function Z0(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var s=is(e,t);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function rl(e,t,s,a){for(var u=0;u<10;u++){a&&(a[0]=is(e,s).mode);var h=e.token(t,s);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var nl=function(e,t,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=s};function il(e,t,s,a){var u=e.doc,h=u.mode,p;t=be(u,t);var m=ke(u,t.line),y=ga(e,t.line,s),C=new Wt(m.text,e.options.tabSize,y),z;for(a&&(z=[]);(a||C.pos<t.ch)&&!C.eol();)C.start=C.pos,p=rl(h,C,y.state),a&&z.push(new nl(C,p,gn(u.mode,y.state)));return a?z:new nl(C,p,y.state)}function Po(e,t){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";t[a]==null?t[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(t[a])||(t[a]+=" "+s[2])}return e}function mu(e,t,s,a,u,h,p){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,z=new Wt(t,e.options.tabSize,a),M,N=e.options.addModeClass&&[null];for(t==""&&Po(Z0(s,a.state),h);!z.eol();){if(z.pos>e.options.maxHighlightLength?(m=!1,p&&ss(e,t,a,z.pos),z.pos=t.length,M=null):M=Po(rl(s,z,a.state,N),h),N){var R=N[0].name;R&&(M="m-"+(M?R+" "+M:R))}if(!m||C!=M){for(;y<z.start;)y=Math.min(z.start,y+5e3),u(y,C);C=M}z.start=z.pos}for(;y<z.pos;){var Z=Math.min(z.pos,y+5e3);u(Z,C),y=Z}}function V0(e,t,s){for(var a,u,h=e.doc,p=s?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>p;--m){if(m<=h.first)return h.first;var y=ke(h,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof _i?C.lookAhead:0)<=h.modeFrontier))return m;var z=Ft(y.text,null,e.options.tabSize);(u==null||a>z)&&(u=m-1,a=z)}return u}function nf(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var s=e.first,a=t-1;a>s;a--){var u=ke(e,a).stateAfter;if(u&&(!(u instanceof _i)||a+u.lookAhead<t)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var yu=!1,ii=!1;function G0(){yu=!0}function q0(){ii=!0}function ol(e,t,s){this.marker=e,this.from=t,this.to=s}function ls(e,t){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==t)return a}}function of(e,t){for(var s,a=0;a<e.length;++a)e[a]!=t&&(s||(s=[])).push(e[a]);return s}function j0(e,t,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],a&&a.add(e.markedSpans)),t.marker.attachLine(e)}function af(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&p.type=="bookmark"&&(!s||!h.marker.insertLeft)){var y=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);(a||(a=[])).push(new ol(p,h.from,y?null:h.to))}}return a}function sf(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],p=h.marker,m=h.to==null||(p.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&p.type=="bookmark"&&(!s||h.marker.insertLeft)){var y=h.from==null||(p.inclusiveLeft?h.from<=t:h.from<t);(a||(a=[])).push(new ol(p,y?null:h.from-t,h.to==null?null:h.to-t))}}return a}function Cu(e,t){if(t.full)return null;var s=Zi(e,t.from.line)&&ke(e,t.from.line).markedSpans,a=Zi(e,t.to.line)&&ke(e,t.to.line).markedSpans;if(!s&&!a)return null;var u=t.from.ch,h=t.to.ch,p=w(t.from,t.to)==0,m=af(s,u,p),y=sf(a,h,p),C=t.text.length==1,z=Xe(t.text).length+(C?u:0);if(m)for(var M=0;M<m.length;++M){var N=m[M];if(N.to==null){var R=ls(y,N.marker);R?C&&(N.to=R.to==null?null:R.to+z):N.to=u}}if(y)for(var Z=0;Z<y.length;++Z){var J=y[Z];if(J.to!=null&&(J.to+=z),J.from==null){var le=ls(m,J.marker);le||(J.from=z,C&&(m||(m=[])).push(J))}else J.from+=z,C&&(m||(m=[])).push(J)}m&&(m=K0(m)),y&&y!=m&&(y=K0(y));var fe=[m];if(!C){var Ce=t.text.length-2,de;if(Ce>0&&m)for(var xe=0;xe<m.length;++xe)m[xe].to==null&&(de||(de=[])).push(new ol(m[xe].marker,null,null));for(var Re=0;Re<Ce;++Re)fe.push(de);fe.push(y)}return fe}function K0(e){for(var t=0;t<e.length;++t){var s=e[t];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function wu(e,t,s){var a=null;if(e.iter(t.line,s.line+1,function(R){if(R.markedSpans)for(var Z=0;Z<R.markedSpans.length;++Z){var J=R.markedSpans[Z].marker;J.readOnly&&(!a||_e(a,J)==-1)&&(a||(a=[])).push(J)}}),!a)return null;for(var u=[{from:t,to:s}],h=0;h<a.length;++h)for(var p=a[h],m=p.find(0),y=0;y<u.length;++y){var C=u[y];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var z=[y,1],M=w(C.from,m.from),N=w(C.to,m.to);(M<0||!p.inclusiveLeft&&!M)&&z.push({from:C.from,to:m.from}),(N>0||!p.inclusiveRight&&!N)&&z.push({from:m.to,to:C.to}),u.splice.apply(u,z),y+=z.length-3}}return u}function X0(e){var t=e.markedSpans;if(!!t){for(var s=0;s<t.length;++s)t[s].marker.detachLine(e);e.markedSpans=null}}function Q0(e,t){if(!!t){for(var s=0;s<t.length;++s)t[s].marker.attachLine(e);e.markedSpans=t}}function al(e){return e.inclusiveLeft?-1:0}function sl(e){return e.inclusiveRight?1:0}function xu(e,t){var s=e.lines.length-t.lines.length;if(s!=0)return s;var a=e.find(),u=t.find(),h=w(a.from,u.from)||al(e)-al(t);if(h)return-h;var p=w(a.to,u.to)||sl(e)-sl(t);return p||t.id-e.id}function Ut(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=void 0,h=0;h<s.length;++h)u=s[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!a||xu(a,u.marker)<0)&&(a=u.marker);return a}function $t(e){return Ut(e,!0)}function ll(e){return Ut(e,!1)}function lf(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=0;u<s.length;++u){var h=s[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!a||xu(a,h.marker)<0)&&(a=h.marker)}return a}function J0(e,t,s,a,u){var h=ke(e,t),p=ii&&h.markedSpans;if(p)for(var m=0;m<p.length;++m){var y=p[m];if(!!y.marker.collapsed){var C=y.marker.find(0),z=w(C.from,s)||al(y.marker)-al(u),M=w(C.to,a)||sl(y.marker)-sl(u);if(!(z>=0&&M<=0||z<=0&&M>=0)&&(z<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,s)>=0:w(C.to,s)>0)||z>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,a)<=0:w(C.from,a)<0)))return!0}}}function oi(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function uf(e){for(var t;t=ll(e);)e=t.find(1,!0).line;return e}function cf(e){for(var t,s;t=ll(e);)e=t.find(1,!0).line,(s||(s=[])).push(e);return s}function ul(e,t){var s=ke(e,t),a=oi(s);return s==a?t:Lt(a)}function ec(e,t){if(t>e.lastLine())return t;var s=ke(e,t),a;if(!qt(e,s))return t;for(;a=ll(s);)s=a.find(1,!0).line;return Lt(s)+1}function qt(e,t){var s=ii&&t.markedSpans;if(s){for(var a=void 0,u=0;u<s.length;++u)if(a=s[u],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&us(e,t,a))return!0}}}function us(e,t,s){if(s.to==null){var a=s.marker.find(1,!0);return us(e,a.line,ls(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==t.text.length)return!0;for(var u=void 0,h=0;h<t.markedSpans.length;++h)if(u=t.markedSpans[h],u.marker.collapsed&&!u.marker.widgetNode&&u.from==s.to&&(u.to==null||u.to!=s.from)&&(u.marker.inclusiveLeft||s.marker.inclusiveRight)&&us(e,t,u))return!0}function Xr(e){e=oi(e);for(var t=0,s=e.parent,a=0;a<s.lines.length;++a){var u=s.lines[a];if(u==e)break;t+=u.height}for(var h=s.parent;h;s=h,h=s.parent)for(var p=0;p<h.children.length;++p){var m=h.children[p];if(m==s)break;t+=m.height}return t}function cs(e){if(e.height==0)return 0;for(var t=e.text.length,s,a=e;s=$t(a);){var u=s.find(0,!0);a=u.from.line,t+=u.from.ch-u.to.ch}for(a=e;s=ll(a);){var h=s.find(0,!0);t-=a.text.length-h.from.ch,a=h.to.line,t+=a.text.length-h.to.ch}return t}function fs(e){var t=e.display,s=e.doc;t.maxLine=ke(s,s.first),t.maxLineLength=cs(t.maxLine),t.maxLineChanged=!0,s.iter(function(a){var u=cs(a);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=a)})}var Tr=function(e,t,s){this.text=e,Q0(this,t),this.height=s?s(this):1};Tr.prototype.lineNo=function(){return Lt(this)},Bn(Tr);function tc(e,t,s,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),X0(e),Q0(e,s);var u=a?a(e):1;u!=e.height&&rn(e,u)}function rc(e){e.parent=null,X0(e)}var nc={},ic={};function Lu(e,t){if(!e||/^\s*$/.test(e))return null;var s=t.addModeClass?ic:nc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function _u(e,t){var s=O("span",null,null,I?"padding-right: .1px":null),a={pre:O("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,p=void 0;a.pos=0,a.addToken=ff,ni(e.display.measure)&&(p=Hr(h,e.doc.direction))&&(a.addToken=df(a.addToken,p)),a.map=[];var m=t!=e.display.externalMeasured&&Lt(h);Vi(h,a,bu(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=sr(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=sr(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Qs(e.display.measure))),u==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Ge(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=sr(a.pre.className,a.textClass||"")),a}function bn(e){var t=E("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ff(e,t,s,a,u,h,p){if(!!t){var m=e.splitSpaces?_n(t,e.trailingSpace):t,y=e.cm.state.specialChars,C=!1,z;if(!y.test(t))e.col+=t.length,z=document.createTextNode(m),e.map.push(e.pos,e.pos+t.length,z),S&&k<9&&(C=!0),e.pos+=t.length;else{z=document.createDocumentFragment();for(var M=0;;){y.lastIndex=M;var N=y.exec(t),R=N?N.index-M:t.length-M;if(R){var Z=document.createTextNode(m.slice(M,M+R));S&&k<9?z.appendChild(E("span",[Z])):z.appendChild(Z),e.map.push(e.pos,e.pos+R,Z),e.col+=R,e.pos+=R}if(!N)break;M+=R+1;var J=void 0;if(N[0]==" "){var le=e.cm.options.tabSize,fe=le-e.col%le;J=z.appendChild(E("span",lr(fe),"cm-tab")),J.setAttribute("role","presentation"),J.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
2109
- `?(J=z.appendChild(E("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),J.setAttribute("cm-text",N[0]),e.col+=1):(J=e.cm.options.specialCharPlaceholder(N[0]),J.setAttribute("cm-text",N[0]),S&&k<9?z.appendChild(E("span",[J])):z.appendChild(J),e.col+=1);e.map.push(e.pos,e.pos+1,J),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,s||a||u||C||h||p){var Ce=s||"";a&&(Ce+=a),u&&(Ce+=u);var de=E("span",[z],Ce,h);if(p)for(var xe in p)p.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&de.setAttribute(xe,p[xe]);return e.content.appendChild(de)}e.content.appendChild(z)}}function _n(e,t){if(e.length>1&&!/ /.test(e))return e;for(var s=t,a="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&s&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),a+=h,s=h==" "}return a}function df(e,t){return function(s,a,u,h,p,m,y){u=u?u+" cm-force-border":"cm-force-border";for(var C=s.pos,z=C+a.length;;){for(var M=void 0,N=0;N<t.length&&(M=t[N],!(M.to>C&&M.from<=C));N++);if(M.to>=z)return e(s,a,u,h,p,m,y);e(s,a.slice(0,M.to-C),u,h,null,m,y),h=null,a=a.slice(M.to-C),C=M.to}}}function zu(e,t,s,a){var u=!a&&s.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!a&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function Vi(e,t,s){var a=e.markedSpans,u=e.text,h=0;if(!a){for(var p=1;p<s.length;p+=2)t.addToken(t,u.slice(h,h=s[p]),Lu(s[p+1],t.cm.options));return}for(var m=u.length,y=0,C=1,z="",M,N,R=0,Z,J,le,fe,Ce;;){if(R==y){Z=J=le=N="",Ce=null,fe=null,R=1/0;for(var de=[],xe=void 0,Re=0;Re<a.length;++Re){var Pe=a[Re],lt=Pe.marker;if(lt.type=="bookmark"&&Pe.from==y&&lt.widgetNode)de.push(lt);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||lt.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&R>Pe.to&&(R=Pe.to,J=""),lt.className&&(Z+=" "+lt.className),lt.css&&(N=(N?N+";":"")+lt.css),lt.startStyle&&Pe.from==y&&(le+=" "+lt.startStyle),lt.endStyle&&Pe.to==R&&(xe||(xe=[])).push(lt.endStyle,Pe.to),lt.title&&((Ce||(Ce={})).title=lt.title),lt.attributes)for(var Ot in lt.attributes)(Ce||(Ce={}))[Ot]=lt.attributes[Ot];lt.collapsed&&(!fe||xu(fe.marker,lt)<0)&&(fe=Pe)}else Pe.from>y&&R>Pe.from&&(R=Pe.from)}if(xe)for(var ur=0;ur<xe.length;ur+=2)xe[ur+1]==R&&(J+=" "+xe[ur]);if(!fe||fe.from==y)for(var Rt=0;Rt<de.length;++Rt)zu(t,0,de[Rt]);if(fe&&(fe.from||0)==y){if(zu(t,(fe.to==null?m+1:fe.to)-y,fe.marker,fe.from==null),fe.to==null)return;fe.to==y&&(fe=!1)}}if(y>=m)break;for(var Ur=Math.min(m,R);;){if(z){var Yr=y+z.length;if(!fe){var rr=Yr>Ur?z.slice(0,Ur-y):z;t.addToken(t,rr,M?M+Z:Z,le,y+rr.length==R?J:"",N,Ce)}if(Yr>=Ur){z=z.slice(Ur-y),y=Ur;break}y=Yr,le=""}z=u.slice(h,h=s[C++]),M=Lu(s[C++],t.cm.options)}}}function ds(e,t,s){this.line=t,this.rest=cf(t),this.size=this.rest?Lt(Xe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=qt(e,t)}function va(e,t,s){for(var a=[],u,h=t;h<s;h=u){var p=new ds(e.doc,ke(e.doc,h),h);u=h+p.size,a.push(p)}return a}var Et=null;function Gi(e){Et?Et.ops.push(e):e.ownsGroup=Et={ops:[e],delayedCallbacks:[]}}function Su(e){var t=e.delayedCallbacks,s=0;do{for(;s<t.length;s++)t[s].call(null);for(var a=0;a<e.ops.length;a++){var u=e.ops[a];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(s<t.length)}function hf(e,t){var s=e.ownsGroup;if(!!s)try{Su(s)}finally{Et=null,t(s)}}var Ao=null;function hr(e,t){var s=Wi(e,t);if(!!s.length){var a=Array.prototype.slice.call(arguments,2),u;Et?u=Et.delayedCallbacks:Ao?u=Ao:(u=Ao=[],setTimeout(pf,0));for(var h=function(m){u.push(function(){return s[m].apply(null,a)})},p=0;p<s.length;++p)h(p)}}function pf(){var e=Ao;Ao=null;for(var t=0;t<e.length;++t)e[t]()}function oc(e,t,s,a){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?gf(e,t):h=="gutter"?Mu(e,t,s,a):h=="class"?fl(e,t):h=="widget"&&ku(e,t,a)}t.changes=null}function ba(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),S&&k<8&&(e.node.style.zIndex=2)),e.node}function cl(e,t){var s=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),t.background)s?t.background.className=s:(t.background.parentNode.removeChild(t.background),t.background=null);else if(s){var a=ba(t);t.background=a.insertBefore(E("div",null,s),a.firstChild),e.display.input.setUneditable(t.background)}}function Eo(e,t){var s=e.display.externalMeasured;return s&&s.line==t.line?(e.display.externalMeasured=null,t.measure=s.measure,s.built):_u(e,t)}function gf(e,t){var s=t.text.className,a=Eo(e,t);t.text==t.node&&(t.node=a.pre),t.text.parentNode.replaceChild(a.pre,t.text),t.text=a.pre,a.bgClass!=t.bgClass||a.textClass!=t.textClass?(t.bgClass=a.bgClass,t.textClass=a.textClass,fl(e,t)):s&&(t.text.className=s)}function fl(e,t){cl(e,t),t.line.wrapClass?ba(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var s=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=s||""}function Mu(e,t,s,a){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var u=ba(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var p=ba(t),m=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),p.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(E("div",pa(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,z=h.hasOwnProperty(C)&&h[C];z&&m.appendChild(E("div",[z],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function ku(e,t,s){t.alignable&&(t.alignable=null);for(var a=ge("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,a.test(u.className)&&t.node.removeChild(u);Tu(e,t,s)}function Ou(e,t,s,a){var u=Eo(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),fl(e,t),Mu(e,t,s,a),Tu(e,t,a),t.node}function Tu(e,t,s){if(ac(e,t.line,t,s,!0),t.rest)for(var a=0;a<t.rest.length;a++)ac(e,t.rest[a],t,s,!1)}function ac(e,t,s,a,u){if(!!t.widgets)for(var h=ba(s),p=0,m=t.widgets;p<m.length;++p){var y=m[p],C=E("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Pu(y,C,s,a),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,s.gutter||s.text):h.appendChild(C),hr(y,"redraw")}}function Pu(e,t,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(t);var u=a.wrapperWidth;t.style.left=a.fixedPos+"px",e.coverGutter||(u-=a.gutterTotalWidth,t.style.paddingLeft=a.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-a.gutterTotalWidth+"px"))}function Io(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!ve(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+t.display.wrapper.clientWidth+"px;"),W(t.display.measure,E("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function zi(e,t){for(var s=Ui(t);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function hs(e){return e.lineSpace.offsetTop}function Qr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function dl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=W(e.measure,E("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function on(e){return Fe-e.display.nativeBarWidth}function qi(e){return e.display.scroller.clientWidth-on(e)-e.display.barWidth}function hl(e){return e.display.scroller.clientHeight-on(e)-e.display.barHeight}function vf(e,t,s){var a=e.options.lineWrapping,u=a&&qi(e);if(!t.measure.heights||a&&t.measure.width!=u){var h=t.measure.heights=[];if(a){t.measure.width=u;for(var p=t.text.firstChild.getClientRects(),m=0;m<p.length-1;m++){var y=p[m],C=p[m+1];Math.abs(y.bottom-C.bottom)>2&&h.push((y.bottom+C.top)/2-s.top)}}h.push(s.bottom-s.top)}}function sc(e,t,s){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==t)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var u=0;u<e.rest.length;u++)if(Lt(e.rest[u])>s)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function bf(e,t){t=oi(t);var s=Lt(t),a=e.display.externalMeasured=new ds(e.doc,t,s);a.lineN=s;var u=a.built=_u(e,a);return a.text=u.pre,W(e.display.lineMeasure,u.pre),a}function lc(e,t,s,a){return ai(e,Zn(e,t),s,a)}function Au(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[li(e,t)];var s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size)return s}function Zn(e,t){var s=Lt(t),a=Au(e,s);a&&!a.text?a=null:a&&a.changes&&(oc(e,a,s,an(e)),e.curOp.forceUpdate=!0),a||(a=bf(e,t));var u=sc(a,t,s);return{line:t,view:a,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function ai(e,t,s,a,u){t.before&&(s=-1);var h=s+(a||""),p;return t.cache.hasOwnProperty(h)?p=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(vf(e,t.view,t.rect),t.hasHeights=!0),p=ji(e,t,s,a),p.bogus||(t.cache[h]=p)),{left:p.left,right:p.right,top:u?p.rtop:p.top,bottom:u?p.rbottom:p.bottom}}var uc={left:0,right:0,top:0,bottom:0};function pl(e,t,s){for(var a,u,h,p,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],t<m?(u=0,h=1,p="left"):t<y?(u=t-m,h=u+1):(C==e.length-3||t==y&&e[C+3]>t)&&(h=y-m,u=h-1,t>=y&&(p="right")),u!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(p=s),s=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],p="left";if(s=="right"&&u==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],p="right";break}return{node:a,start:u,end:h,collapse:p,coverStart:m,coverEnd:y}}function cc(e,t){var s=uc;if(t=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var u=e.length-1;u>=0&&(s=e[u]).left==s.right;u--);return s}function ji(e,t,s,a){var u=pl(t.map,s,a),h=u.node,p=u.start,m=u.end,y=u.collapse,C;if(h.nodeType==3){for(var z=0;z<4;z++){for(;p&&Qe(t.line.text.charAt(u.coverStart+p));)--p;for(;u.coverStart+m<u.coverEnd&&Qe(t.line.text.charAt(u.coverStart+m));)++m;if(S&&k<9&&p==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=cc(ne(h,p,m).getClientRects(),a),C.left||C.right||p==0)break;m=p,p=p-1,y="right"}S&&k<11&&(C=gl(e.display.measure,C))}else{p>0&&(y=a="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[a=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(S&&k<9&&!p&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+ma(e.display),top:N.top,bottom:N.bottom}:C=uc}for(var R=C.top-t.rect.top,Z=C.bottom-t.rect.top,J=(R+Z)/2,le=t.view.measure.heights,fe=0;fe<le.length-1&&!(J<le[fe]);fe++);var Ce=fe?le[fe-1]:0,de=le[fe],xe={left:(y=="right"?C.right:C.left)-t.rect.left,right:(y=="left"?C.left:C.right)-t.rect.left,top:Ce,bottom:de};return!C.left&&!C.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=R,xe.rbottom=Z),xe}function gl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Yi(e))return t;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*s,right:t.right*s,top:t.top*a,bottom:t.bottom*a}}function fc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dc(e){e.display.externalMeasure=null,it(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fc(e.display.view[t])}function ps(e){dc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Do(){return q&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function zn(){return q&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function vl(e){var t=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(t+=Io(e.widgets[s]));return t}function bl(e,t,s,a,u){if(!u){var h=vl(t);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var p=Xr(t);if(a=="local"?p+=hs(e.display):p-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();p+=m.top+(a=="window"?0:zn());var y=m.left+(a=="window"?0:Do());s.left+=y,s.right+=y}return s.top+=p,s.bottom+=p,s}function hc(e,t,s){if(s=="div")return t;var a=t.left,u=t.top;if(s=="page")a-=Do(),u-=zn();else if(s=="local"||!s){var h=e.display.sizer.getBoundingClientRect();a+=h.left,u+=h.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:a-p.left,top:u-p.top}}function ml(e,t,s,a,u){return a||(a=ke(e.doc,t.line)),bl(e,a,lc(e,a,t.ch,u),s)}function Vn(e,t,s,a,u,h){a=a||ke(e.doc,t.line),u||(u=Zn(e,a));function p(Z,J){var le=ai(e,u,Z,J?"right":"left",h);return J?le.left=le.right:le.right=le.left,bl(e,a,le,s)}var m=Hr(a,e.doc.direction),y=t.ch,C=t.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return p(C=="before"?y-1:y,C=="before");function z(Z,J,le){var fe=m[J],Ce=fe.level==1;return p(le?Z-1:Z,Ce!=le)}var M=Zt(m,y,C),N=jr,R=z(y,M,C=="before");return N!=null&&(R.other=z(y,N,C!="before")),R}function pc(e,t){var s=0;t=be(e.doc,t),e.options.lineWrapping||(s=ma(e.display)*t.ch);var a=ke(e.doc,t.line),u=Xr(a)+hs(e.display);return{left:s,right:s,top:u,bottom:u+a.height}}function Ki(e,t,s,a,u){var h=ie(e,t,s);return h.xRel=u,a&&(h.outside=a),h}function $(e,t,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Ki(a.first,0,null,-1,-1);var u=Un(a,s),h=a.first+a.size-1;if(u>h)return Ki(a.first+a.size-1,ke(a,h).text.length,null,1,1);t<0&&(t=0);for(var p=ke(a,u);;){var m=Je(e,p,u,t,s),y=lf(p,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==u)return C;p=ke(a,u=C.line)}}function K(e,t,s,a){a-=vl(t);var u=t.text.length,h=Mr(function(p){return ai(e,s,p-1).bottom<=a},u,0);return u=Mr(function(p){return ai(e,s,p).top>a},h,u),{begin:h,end:u}}function Y(e,t,s,a){s||(s=Zn(e,t));var u=bl(e,t,ai(e,s,a),"line").top;return K(e,t,s,u)}function Me(e,t,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>t}function Je(e,t,s,a,u){u-=Xr(t);var h=Zn(e,t),p=vl(t),m=0,y=t.text.length,C=!0,z=Hr(t,e.doc.direction);if(z){var M=(e.options.lineWrapping?pr:Mt)(e,t,s,h,z,a,u);C=M.level!=1,m=C?M.from:M.to-1,y=C?M.to:M.from-1}var N=null,R=null,Z=Mr(function(Re){var Pe=ai(e,h,Re);return Pe.top+=p,Pe.bottom+=p,Me(Pe,a,u,!1)?(Pe.top<=u&&Pe.left<=a&&(N=Re,R=Pe),!0):!1},m,y),J,le,fe=!1;if(R){var Ce=a-R.left<R.right-a,de=Ce==C;Z=N+(de?0:1),le=de?"after":"before",J=Ce?R.left:R.right}else{!C&&(Z==y||Z==m)&&Z++,le=Z==0?"after":Z==t.text.length?"before":ai(e,h,Z-(C?1:0)).bottom+p<=u==C?"after":"before";var xe=Vn(e,ie(s,Z,le),"line",t,h);J=xe.left,fe=u<xe.top?-1:u>=xe.bottom?1:0}return Z=dr(t.text,Z,1),Ki(s,Z,le,fe,a-J)}function Mt(e,t,s,a,u,h,p){var m=Mr(function(M){var N=u[M],R=N.level!=1;return Me(Vn(e,ie(s,R?N.to:N.from,R?"before":"after"),"line",t,a),h,p,!0)},0,u.length-1),y=u[m];if(m>0){var C=y.level!=1,z=Vn(e,ie(s,C?y.from:y.to,C?"after":"before"),"line",t,a);Me(z,h,p,!0)&&z.top>p&&(y=u[m-1])}return y}function pr(e,t,s,a,u,h,p){var m=K(e,t,a,p),y=m.begin,C=m.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var z=null,M=null,N=0;N<u.length;N++){var R=u[N];if(!(R.from>=C||R.to<=y)){var Z=R.level!=1,J=ai(e,a,Z?Math.min(C,R.to)-1:Math.max(y,R.from)).right,le=J<h?h-J+1e9:J-h;(!z||M>le)&&(z=R,M=le)}}return z||(z=u[u.length-1]),z.from<y&&(z={from:y,to:z.to,level:z.level}),z.to>C&&(z={from:z.from,to:C,level:z.level}),z}var wt;function Xi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wt==null){wt=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wt.appendChild(document.createTextNode("x")),wt.appendChild(E("br"));wt.appendChild(document.createTextNode("x"))}W(e.measure,wt);var s=wt.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),it(e.measure),s||1}function ma(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),s=E("pre",[t],"CodeMirror-line-like");W(e.measure,s);var a=t.getBoundingClientRect(),u=(a.right-a.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function an(e){for(var t=e.display,s={},a={},u=t.gutters.clientLeft,h=t.gutters.firstChild,p=0;h;h=h.nextSibling,++p){var m=e.display.gutterSpecs[p].className;s[m]=h.offsetLeft+h.clientLeft+u,a[m]=h.clientWidth}return{fixedPos:ya(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function ya(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function gc(e){var t=Xi(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/ma(e.display)-3);return function(u){if(qt(e.doc,u))return 0;var h=0;if(u.widgets)for(var p=0;p<u.widgets.length;p++)u.widgets[p].height&&(h+=u.widgets[p].height);return s?h+(Math.ceil(u.text.length/a)||1)*t:h+t}}function Qi(e){var t=e.doc,s=gc(e);t.iter(function(a){var u=s(a);u!=a.height&&rn(a,u)})}function si(e,t,s,a){var u=e.display;if(!s&&Ui(t).getAttribute("cm-not-content")=="true")return null;var h,p,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,p=t.clientY-m.top}catch{return null}var y=$(e,h,p),C;if(a&&y.xRel>0&&(C=ke(e.doc,y.line).text).length==y.ch){var z=Ft(C,C.length,e.options.tabSize)-C.length;y=ie(y.line,Math.max(0,Math.round((h-dl(e.display).left)/ma(e.display))-z))}return y}function li(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(t-=s[a].size,t<0)return a}function rt(e,t,s,a){t==null&&(t=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var u=e.display;if(a&&s<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)ii&&ul(e.doc,t)<u.viewTo&&Si(e);else if(s<=u.viewFrom)ii&&ec(e.doc,s+a)>u.viewFrom?Si(e):(u.viewFrom+=a,u.viewTo+=a);else if(t<=u.viewFrom&&s>=u.viewTo)Si(e);else if(t<=u.viewFrom){var h=Ro(e,s,s+a,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=a):Si(e)}else if(s>=u.viewTo){var p=Ro(e,t,t,-1);p?(u.view=u.view.slice(0,p.index),u.viewTo=p.lineN):Si(e)}else{var m=Ro(e,t,t,-1),y=Ro(e,s,s+a,1);m&&y?(u.view=u.view.slice(0,m.index).concat(va(e,m.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=a):Si(e)}var C=u.externalMeasured;C&&(s<C.lineN?C.lineN+=a:t<C.lineN+C.size&&(u.externalMeasured=null))}function Ji(e,t,s){e.curOp.viewChanged=!0;var a=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(a.externalMeasured=null),!(t<a.viewFrom||t>=a.viewTo)){var h=a.view[li(e,t)];if(h.node!=null){var p=h.changes||(h.changes=[]);_e(p,s)==-1&&p.push(s)}}}function Si(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ro(e,t,s,a){var u=li(e,t),h,p=e.display.view;if(!ii||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var m=e.display.viewFrom,y=0;y<u;y++)m+=p[y].size;if(m!=t){if(a>0){if(u==p.length-1)return null;h=m+p[u].size-t,u++}else h=m-t;t+=h,s+=h}for(;ul(e.doc,s)!=s;){if(u==(a<0?0:p.length-1))return null;s+=a*p[u-(a<0?1:0)].size,u+=a}return{index:u,lineN:s}}function mf(e,t,s){var a=e.display,u=a.view;u.length==0||t>=a.viewTo||s<=a.viewFrom?(a.view=va(e,t,s),a.viewFrom=t):(a.viewFrom>t?a.view=va(e,t,a.viewFrom).concat(a.view):a.viewFrom<t&&(a.view=a.view.slice(li(e,t))),a.viewFrom=t,a.viewTo<s?a.view=a.view.concat(va(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,li(e,s)))),a.viewTo=s}function vc(e){for(var t=e.display.view,s=0,a=0;a<t.length;a++){var u=t[a];!u.hidden&&(!u.node||u.changes)&&++s}return s}function gs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function vs(e,t){t===void 0&&(t=!0);for(var s=e.doc,a={},u=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),p=0;p<s.sel.ranges.length;p++)if(!(!t&&p==s.sel.primIndex)){var m=s.sel.ranges[p];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&Mi(e,m.head,u),y||bc(e,m,h)}}return a}function Mi(e,t,s){var a=Vn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=s.appendChild(E("div","\xA0","CodeMirror-cursor"));if(u.style.left=a.left+"px",u.style.top=a.top+"px",u.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=ml(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var p=s.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));p.style.display="",p.style.left=a.other.left+"px",p.style.top=a.other.top+"px",p.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function No(e,t){return e.top-t.top||e.left-t.left}function bc(e,t,s){var a=e.display,u=e.doc,h=document.createDocumentFragment(),p=dl(e.display),m=p.left,y=Math.max(a.sizerWidth,qi(e)-a.sizer.offsetLeft)-p.right,C=u.direction=="ltr";function z(de,xe,Re,Pe){xe<0&&(xe=0),xe=Math.round(xe),Pe=Math.round(Pe),h.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+de+`px;
2121
+ `,t);u==-1&&(u=e.length);var h=e.slice(t,e.charAt(u-1)=="\r"?u-1:u),g=h.indexOf("\r");g!=-1?(s.push(h.slice(0,g)),t+=g+1):(s.push(h),t=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},Js=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},el=function(){var e=E("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),is=null;function Zi(e){if(is!=null)return is;var t=W(e,E("span","x")),s=t.getBoundingClientRect(),a=ne(t,0,1).getBoundingClientRect();return is=Math.abs(s.left-a.left)>1}var Ln={},pn={};function tl(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ln[e]=t}function Li(e,t){pn[e]=t}function Po(e){if(typeof e=="string"&&pn.hasOwnProperty(e))e=pn[e];else if(e&&typeof e.name=="string"&&pn.hasOwnProperty(e.name)){var t=pn[e.name];typeof t=="string"&&(t={name:t}),e=rn(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Po("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Po("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function va(e,t){t=Po(t);var s=Ln[t.name];if(!s)return va(e,"text/plain");var a=s(e,t);if(Fn.hasOwnProperty(t.name)){var u=Fn[t.name];for(var h in u)!u.hasOwnProperty(h)||(a.hasOwnProperty(h)&&(a["_"+h]=a[h]),a[h]=u[h])}if(a.name=t.name,t.helperType&&(a.helperType=t.helperType),t.modeProps)for(var g in t.modeProps)a[g]=t.modeProps[g];return a}var Fn={};function Wn(e,t){var s=Fn.hasOwnProperty(e)?Fn[e]:Fn[e]={};er(t,s)}function gn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var s={};for(var a in t){var u=t[a];u instanceof Array&&(u=u.concat([])),s[a]=u}return s}function os(e,t){for(var s;e.innerMode&&(s=e.innerMode(t),!(!s||s.mode==e));)t=s.state,e=s.mode;return s||{mode:e,state:t}}function as(e,t,s){return e.startState?e.startState(t,s):!0}var Wt=function(e,t,s){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Wt.prototype.eol=function(){return this.pos>=this.string.length},Wt.prototype.sol=function(){return this.pos==this.lineStart},Wt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Wt.prototype.eat=function(e){var t=this.string.charAt(this.pos),s;if(typeof e=="string"?s=t==e:s=t&&(e.test?e.test(t):e(t)),s)return++this.pos,t},Wt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Wt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Wt.prototype.skipToEnd=function(){this.pos=this.string.length},Wt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Wt.prototype.backUp=function(e){this.pos-=e},Wt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ft(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.indentation=function(){return Ft(this.string,null,this.tabSize)-(this.lineStart?Ft(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.match=function(e,t,s){if(typeof e=="string"){var a=function(g){return s?g.toLowerCase():g},u=this.string.substr(this.pos,e.length);if(a(u)==a(e))return t!==!1&&(this.pos+=e.length),!0}else{var h=this.string.slice(this.pos).match(e);return h&&h.index>0?null:(h&&t!==!1&&(this.pos+=h[0].length),h)}},Wt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Wt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Wt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ke(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var u=s.children[a],h=u.chunkSize();if(t<h){s=u;break}t-=h}return s.lines[t]}function vn(e,t,s){var a=[],u=t.line;return e.iter(t.line,s.line+1,function(h){var g=h.text;u==s.line&&(g=g.slice(0,s.ch)),u==t.line&&(g=g.slice(t.ch)),a.push(g),++u}),a}function ss(e,t,s){var a=[];return e.iter(t,s,function(u){a.push(u.text)}),a}function nn(e,t){var s=t-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function Lt(e){if(e.parent==null)return null;for(var t=e.parent,s=_e(t.lines,e),a=t.parent;a;t=a,a=a.parent)for(var u=0;a.children[u]!=t;++u)s+=a.children[u].chunkSize();return s+t.first}function Un(e,t){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var u=e.children[a],h=u.height;if(t<h){e=u;continue e}t-=h,s+=u.chunkSize()}return s}while(!e.lines);for(var g=0;g<e.lines.length;++g){var m=e.lines[g],y=m.height;if(t<y)break;t-=y}return s+g}function Vi(e,t){return t>=e.first&&t<e.first+e.size}function ba(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ie(e,t,s){if(s===void 0&&(s=null),!(this instanceof ie))return new ie(e,t,s);this.line=e,this.ch=t,this.sticky=s}function w(e,t){return e.line-t.line||e.ch-t.ch}function P(e,t){return e.sticky==t.sticky&&w(e,t)==0}function j(e){return ie(e.line,e.ch)}function ae(e,t){return w(e,t)<0?t:e}function qe(e,t){return w(e,t)<0?e:t}function vt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function be(e,t){if(t.line<e.first)return ie(e.first,0);var s=e.first+e.size-1;return t.line>s?ie(s,ke(e,s).text.length):Or(t,ke(e,t.line).text.length)}function Or(e,t){var s=e.ch;return s==null||s>t?ie(e.line,t):s<0?ie(e.line,0):e}function on(e,t){for(var s=[],a=0;a<t.length;a++)s[a]=be(e,t[a]);return s}var _i=function(e,t){this.state=e,this.lookAhead=t},Yn=function(e,t,s,a){this.state=t,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Yn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Yn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Yn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yn.fromSaved=function(e,t,s){return t instanceof _i?new Yn(e,gn(e.mode,t.state),s,t.lookAhead):new Yn(e,gn(e.mode,t),s)},Yn.prototype.save=function(e){var t=e!==!1?gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _i(t,this.maxLookAhead):t};function Y0(e,t,s,a){var u=[e.state.modeGen],h={};mu(e,t.text,e.doc.mode,s,function(C,z){return u.push(C,z)},h,a);for(var g=s.state,m=function(C){s.baseTokens=u;var z=e.state.overlays[C],M=1,N=0;s.state=!0,mu(e,t.text,z.mode,s,function(R,Z){for(var J=M;N<R;){var le=u[M];le>R&&u.splice(M,1,R,u[M+1],le),M+=2,N=Math.min(R,le)}if(!!Z)if(z.opaque)u.splice(J,M-J,R,"overlay "+Z),M=J+2;else for(;J<M;J+=2){var fe=u[J+1];u[J+1]=(fe?fe+" ":"")+"overlay "+Z}},h),s.state=g,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:u,classes:h.bgClass||h.textClass?h:null}}function bu(e,t,s){if(!t.styles||t.styles[0]!=e.state.modeGen){var a=ma(e,Lt(t)),u=t.text.length>e.options.maxHighlightLength&&gn(e.doc.mode,a.state),h=Y0(e,t,a);u&&(a.state=u),t.stateAfter=a.save(!u),t.styles=h.styles,h.classes?t.styleClasses=h.classes:t.styleClasses&&(t.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ma(e,t,s){var a=e.doc,u=e.display;if(!a.mode.startState)return new Yn(a,!0,t);var h=V0(e,t,s),g=h>a.first&&ke(a,h-1).stateAfter,m=g?Yn.fromSaved(a,g,h):new Yn(a,as(a.mode),h);return a.iter(h,t,function(y){ls(e,y.text,m);var C=m.line;y.stateAfter=C==t-1||C%5==0||C>=u.viewFrom&&C<u.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function ls(e,t,s,a){var u=e.doc.mode,h=new Wt(t,e.options.tabSize,s);for(h.start=h.pos=a||0,t==""&&Z0(u,s.state);!h.eol();)rl(u,h,s.state),h.start=h.pos}function Z0(e,t){if(e.blankLine)return e.blankLine(t);if(!!e.innerMode){var s=os(e,t);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function rl(e,t,s,a){for(var u=0;u<10;u++){a&&(a[0]=os(e,s).mode);var h=e.token(t,s);if(t.pos>t.start)return h}throw new Error("Mode "+e.name+" failed to advance stream.")}var nl=function(e,t,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=s};function il(e,t,s,a){var u=e.doc,h=u.mode,g;t=be(u,t);var m=ke(u,t.line),y=ma(e,t.line,s),C=new Wt(m.text,e.options.tabSize,y),z;for(a&&(z=[]);(a||C.pos<t.ch)&&!C.eol();)C.start=C.pos,g=rl(h,C,y.state),a&&z.push(new nl(C,g,gn(u.mode,y.state)));return a?z:new nl(C,g,y.state)}function Ao(e,t){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var a=s[1]?"bgClass":"textClass";t[a]==null?t[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(t[a])||(t[a]+=" "+s[2])}return e}function mu(e,t,s,a,u,h,g){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,z=new Wt(t,e.options.tabSize,a),M,N=e.options.addModeClass&&[null];for(t==""&&Ao(Z0(s,a.state),h);!z.eol();){if(z.pos>e.options.maxHighlightLength?(m=!1,g&&ls(e,t,a,z.pos),z.pos=t.length,M=null):M=Ao(rl(s,z,a.state,N),h),N){var R=N[0].name;R&&(M="m-"+(M?R+" "+M:R))}if(!m||C!=M){for(;y<z.start;)y=Math.min(z.start,y+5e3),u(y,C);C=M}z.start=z.pos}for(;y<z.pos;){var Z=Math.min(z.pos,y+5e3);u(Z,C),y=Z}}function V0(e,t,s){for(var a,u,h=e.doc,g=s?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>g;--m){if(m<=h.first)return h.first;var y=ke(h,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof _i?C.lookAhead:0)<=h.modeFrontier))return m;var z=Ft(y.text,null,e.options.tabSize);(u==null||a>z)&&(u=m-1,a=z)}return u}function nf(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var s=e.first,a=t-1;a>s;a--){var u=ke(e,a).stateAfter;if(u&&(!(u instanceof _i)||a+u.lookAhead<t)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var yu=!1,ii=!1;function G0(){yu=!0}function q0(){ii=!0}function ol(e,t,s){this.marker=e,this.from=t,this.to=s}function us(e,t){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==t)return a}}function of(e,t){for(var s,a=0;a<e.length;++a)e[a]!=t&&(s||(s=[])).push(e[a]);return s}function j0(e,t,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],a&&a.add(e.markedSpans)),t.marker.attachLine(e)}function af(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);if(m||h.from==t&&g.type=="bookmark"&&(!s||!h.marker.insertLeft)){var y=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);(a||(a=[])).push(new ol(g,h.from,y?null:h.to))}}return a}function sf(e,t,s){var a;if(e)for(var u=0;u<e.length;++u){var h=e[u],g=h.marker,m=h.to==null||(g.inclusiveRight?h.to>=t:h.to>t);if(m||h.from==t&&g.type=="bookmark"&&(!s||h.marker.insertLeft)){var y=h.from==null||(g.inclusiveLeft?h.from<=t:h.from<t);(a||(a=[])).push(new ol(g,y?null:h.from-t,h.to==null?null:h.to-t))}}return a}function Cu(e,t){if(t.full)return null;var s=Vi(e,t.from.line)&&ke(e,t.from.line).markedSpans,a=Vi(e,t.to.line)&&ke(e,t.to.line).markedSpans;if(!s&&!a)return null;var u=t.from.ch,h=t.to.ch,g=w(t.from,t.to)==0,m=af(s,u,g),y=sf(a,h,g),C=t.text.length==1,z=Xe(t.text).length+(C?u:0);if(m)for(var M=0;M<m.length;++M){var N=m[M];if(N.to==null){var R=us(y,N.marker);R?C&&(N.to=R.to==null?null:R.to+z):N.to=u}}if(y)for(var Z=0;Z<y.length;++Z){var J=y[Z];if(J.to!=null&&(J.to+=z),J.from==null){var le=us(m,J.marker);le||(J.from=z,C&&(m||(m=[])).push(J))}else J.from+=z,C&&(m||(m=[])).push(J)}m&&(m=K0(m)),y&&y!=m&&(y=K0(y));var fe=[m];if(!C){var Ce=t.text.length-2,de;if(Ce>0&&m)for(var xe=0;xe<m.length;++xe)m[xe].to==null&&(de||(de=[])).push(new ol(m[xe].marker,null,null));for(var Re=0;Re<Ce;++Re)fe.push(de);fe.push(y)}return fe}function K0(e){for(var t=0;t<e.length;++t){var s=e[t];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function wu(e,t,s){var a=null;if(e.iter(t.line,s.line+1,function(R){if(R.markedSpans)for(var Z=0;Z<R.markedSpans.length;++Z){var J=R.markedSpans[Z].marker;J.readOnly&&(!a||_e(a,J)==-1)&&(a||(a=[])).push(J)}}),!a)return null;for(var u=[{from:t,to:s}],h=0;h<a.length;++h)for(var g=a[h],m=g.find(0),y=0;y<u.length;++y){var C=u[y];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var z=[y,1],M=w(C.from,m.from),N=w(C.to,m.to);(M<0||!g.inclusiveLeft&&!M)&&z.push({from:C.from,to:m.from}),(N>0||!g.inclusiveRight&&!N)&&z.push({from:m.to,to:C.to}),u.splice.apply(u,z),y+=z.length-3}}return u}function X0(e){var t=e.markedSpans;if(!!t){for(var s=0;s<t.length;++s)t[s].marker.detachLine(e);e.markedSpans=null}}function Q0(e,t){if(!!t){for(var s=0;s<t.length;++s)t[s].marker.attachLine(e);e.markedSpans=t}}function al(e){return e.inclusiveLeft?-1:0}function sl(e){return e.inclusiveRight?1:0}function xu(e,t){var s=e.lines.length-t.lines.length;if(s!=0)return s;var a=e.find(),u=t.find(),h=w(a.from,u.from)||al(e)-al(t);if(h)return-h;var g=w(a.to,u.to)||sl(e)-sl(t);return g||t.id-e.id}function Ut(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=void 0,h=0;h<s.length;++h)u=s[h],u.marker.collapsed&&(t?u.from:u.to)==null&&(!a||xu(a,u.marker)<0)&&(a=u.marker);return a}function $t(e){return Ut(e,!0)}function ll(e){return Ut(e,!1)}function lf(e,t){var s=ii&&e.markedSpans,a;if(s)for(var u=0;u<s.length;++u){var h=s[u];h.marker.collapsed&&(h.from==null||h.from<t)&&(h.to==null||h.to>t)&&(!a||xu(a,h.marker)<0)&&(a=h.marker)}return a}function J0(e,t,s,a,u){var h=ke(e,t),g=ii&&h.markedSpans;if(g)for(var m=0;m<g.length;++m){var y=g[m];if(!!y.marker.collapsed){var C=y.marker.find(0),z=w(C.from,s)||al(y.marker)-al(u),M=w(C.to,a)||sl(y.marker)-sl(u);if(!(z>=0&&M<=0||z<=0&&M>=0)&&(z<=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.to,s)>=0:w(C.to,s)>0)||z>=0&&(y.marker.inclusiveRight&&u.inclusiveLeft?w(C.from,a)<=0:w(C.from,a)<0)))return!0}}}function oi(e){for(var t;t=$t(e);)e=t.find(-1,!0).line;return e}function uf(e){for(var t;t=ll(e);)e=t.find(1,!0).line;return e}function cf(e){for(var t,s;t=ll(e);)e=t.find(1,!0).line,(s||(s=[])).push(e);return s}function ul(e,t){var s=ke(e,t),a=oi(s);return s==a?t:Lt(a)}function ec(e,t){if(t>e.lastLine())return t;var s=ke(e,t),a;if(!qt(e,s))return t;for(;a=ll(s);)s=a.find(1,!0).line;return Lt(s)+1}function qt(e,t){var s=ii&&t.markedSpans;if(s){for(var a=void 0,u=0;u<s.length;++u)if(a=s[u],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&cs(e,t,a))return!0}}}function cs(e,t,s){if(s.to==null){var a=s.marker.find(1,!0);return cs(e,a.line,us(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==t.text.length)return!0;for(var u=void 0,h=0;h<t.markedSpans.length;++h)if(u=t.markedSpans[h],u.marker.collapsed&&!u.marker.widgetNode&&u.from==s.to&&(u.to==null||u.to!=s.from)&&(u.marker.inclusiveLeft||s.marker.inclusiveRight)&&cs(e,t,u))return!0}function Xr(e){e=oi(e);for(var t=0,s=e.parent,a=0;a<s.lines.length;++a){var u=s.lines[a];if(u==e)break;t+=u.height}for(var h=s.parent;h;s=h,h=s.parent)for(var g=0;g<h.children.length;++g){var m=h.children[g];if(m==s)break;t+=m.height}return t}function fs(e){if(e.height==0)return 0;for(var t=e.text.length,s,a=e;s=$t(a);){var u=s.find(0,!0);a=u.from.line,t+=u.from.ch-u.to.ch}for(a=e;s=ll(a);){var h=s.find(0,!0);t-=a.text.length-h.from.ch,a=h.to.line,t+=a.text.length-h.to.ch}return t}function ds(e){var t=e.display,s=e.doc;t.maxLine=ke(s,s.first),t.maxLineLength=fs(t.maxLine),t.maxLineChanged=!0,s.iter(function(a){var u=fs(a);u>t.maxLineLength&&(t.maxLineLength=u,t.maxLine=a)})}var Tr=function(e,t,s){this.text=e,Q0(this,t),this.height=s?s(this):1};Tr.prototype.lineNo=function(){return Lt(this)},Bn(Tr);function tc(e,t,s,a){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),X0(e),Q0(e,s);var u=a?a(e):1;u!=e.height&&nn(e,u)}function rc(e){e.parent=null,X0(e)}var nc={},ic={};function Lu(e,t){if(!e||/^\s*$/.test(e))return null;var s=t.addModeClass?ic:nc;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function _u(e,t){var s=T("span",null,null,I?"padding-right: .1px":null),a={pre:T("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var u=0;u<=(t.rest?t.rest.length:0);u++){var h=u?t.rest[u-1]:t.line,g=void 0;a.pos=0,a.addToken=ff,ni(e.display.measure)&&(g=Hr(h,e.doc.direction))&&(a.addToken=df(a.addToken,g)),a.map=[];var m=t!=e.display.externalMeasured&&Lt(h);Gi(h,a,bu(e,h,m)),h.styleClasses&&(h.styleClasses.bgClass&&(a.bgClass=sr(h.styleClasses.bgClass,a.bgClass||"")),h.styleClasses.textClass&&(a.textClass=sr(h.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Qs(e.display.measure))),u==0?(t.measure.map=a.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(a.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var y=a.content.lastChild;(/\bcm-tab\b/.test(y.className)||y.querySelector&&y.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return Ge(e,"renderLine",e,t.line,a.pre),a.pre.className&&(a.textClass=sr(a.pre.className,a.textClass||"")),a}function bn(e){var t=E("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ff(e,t,s,a,u,h,g){if(!!t){var m=e.splitSpaces?_n(t,e.trailingSpace):t,y=e.cm.state.specialChars,C=!1,z;if(!y.test(t))e.col+=t.length,z=document.createTextNode(m),e.map.push(e.pos,e.pos+t.length,z),S&&O<9&&(C=!0),e.pos+=t.length;else{z=document.createDocumentFragment();for(var M=0;;){y.lastIndex=M;var N=y.exec(t),R=N?N.index-M:t.length-M;if(R){var Z=document.createTextNode(m.slice(M,M+R));S&&O<9?z.appendChild(E("span",[Z])):z.appendChild(Z),e.map.push(e.pos,e.pos+R,Z),e.col+=R,e.pos+=R}if(!N)break;M+=R+1;var J=void 0;if(N[0]==" "){var le=e.cm.options.tabSize,fe=le-e.col%le;J=z.appendChild(E("span",lr(fe),"cm-tab")),J.setAttribute("role","presentation"),J.setAttribute("cm-text"," "),e.col+=fe}else N[0]=="\r"||N[0]==`
2122
+ `?(J=z.appendChild(E("span",N[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),J.setAttribute("cm-text",N[0]),e.col+=1):(J=e.cm.options.specialCharPlaceholder(N[0]),J.setAttribute("cm-text",N[0]),S&&O<9?z.appendChild(E("span",[J])):z.appendChild(J),e.col+=1);e.map.push(e.pos,e.pos+1,J),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,s||a||u||C||h||g){var Ce=s||"";a&&(Ce+=a),u&&(Ce+=u);var de=E("span",[z],Ce,h);if(g)for(var xe in g)g.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&de.setAttribute(xe,g[xe]);return e.content.appendChild(de)}e.content.appendChild(z)}}function _n(e,t){if(e.length>1&&!/ /.test(e))return e;for(var s=t,a="",u=0;u<e.length;u++){var h=e.charAt(u);h==" "&&s&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(h="\xA0"),a+=h,s=h==" "}return a}function df(e,t){return function(s,a,u,h,g,m,y){u=u?u+" cm-force-border":"cm-force-border";for(var C=s.pos,z=C+a.length;;){for(var M=void 0,N=0;N<t.length&&(M=t[N],!(M.to>C&&M.from<=C));N++);if(M.to>=z)return e(s,a,u,h,g,m,y);e(s,a.slice(0,M.to-C),u,h,null,m,y),h=null,a=a.slice(M.to-C),C=M.to}}}function zu(e,t,s,a){var u=!a&&s.widgetNode;u&&e.map.push(e.pos,e.pos+t,u),!a&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=t,e.trailingSpace=!1}function Gi(e,t,s){var a=e.markedSpans,u=e.text,h=0;if(!a){for(var g=1;g<s.length;g+=2)t.addToken(t,u.slice(h,h=s[g]),Lu(s[g+1],t.cm.options));return}for(var m=u.length,y=0,C=1,z="",M,N,R=0,Z,J,le,fe,Ce;;){if(R==y){Z=J=le=N="",Ce=null,fe=null,R=1/0;for(var de=[],xe=void 0,Re=0;Re<a.length;++Re){var Pe=a[Re],lt=Pe.marker;if(lt.type=="bookmark"&&Pe.from==y&&lt.widgetNode)de.push(lt);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||lt.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&R>Pe.to&&(R=Pe.to,J=""),lt.className&&(Z+=" "+lt.className),lt.css&&(N=(N?N+";":"")+lt.css),lt.startStyle&&Pe.from==y&&(le+=" "+lt.startStyle),lt.endStyle&&Pe.to==R&&(xe||(xe=[])).push(lt.endStyle,Pe.to),lt.title&&((Ce||(Ce={})).title=lt.title),lt.attributes)for(var Ot in lt.attributes)(Ce||(Ce={}))[Ot]=lt.attributes[Ot];lt.collapsed&&(!fe||xu(fe.marker,lt)<0)&&(fe=Pe)}else Pe.from>y&&R>Pe.from&&(R=Pe.from)}if(xe)for(var ur=0;ur<xe.length;ur+=2)xe[ur+1]==R&&(J+=" "+xe[ur]);if(!fe||fe.from==y)for(var Rt=0;Rt<de.length;++Rt)zu(t,0,de[Rt]);if(fe&&(fe.from||0)==y){if(zu(t,(fe.to==null?m+1:fe.to)-y,fe.marker,fe.from==null),fe.to==null)return;fe.to==y&&(fe=!1)}}if(y>=m)break;for(var Ur=Math.min(m,R);;){if(z){var Yr=y+z.length;if(!fe){var rr=Yr>Ur?z.slice(0,Ur-y):z;t.addToken(t,rr,M?M+Z:Z,le,y+rr.length==R?J:"",N,Ce)}if(Yr>=Ur){z=z.slice(Ur-y),y=Ur;break}y=Yr,le=""}z=u.slice(h,h=s[C++]),M=Lu(s[C++],t.cm.options)}}}function hs(e,t,s){this.line=t,this.rest=cf(t),this.size=this.rest?Lt(Xe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=qt(e,t)}function ya(e,t,s){for(var a=[],u,h=t;h<s;h=u){var g=new hs(e.doc,ke(e.doc,h),h);u=h+g.size,a.push(g)}return a}var Et=null;function qi(e){Et?Et.ops.push(e):e.ownsGroup=Et={ops:[e],delayedCallbacks:[]}}function Su(e){var t=e.delayedCallbacks,s=0;do{for(;s<t.length;s++)t[s].call(null);for(var a=0;a<e.ops.length;a++){var u=e.ops[a];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(s<t.length)}function hf(e,t){var s=e.ownsGroup;if(!!s)try{Su(s)}finally{Et=null,t(s)}}var Eo=null;function hr(e,t){var s=Ui(e,t);if(!!s.length){var a=Array.prototype.slice.call(arguments,2),u;Et?u=Et.delayedCallbacks:Eo?u=Eo:(u=Eo=[],setTimeout(pf,0));for(var h=function(m){u.push(function(){return s[m].apply(null,a)})},g=0;g<s.length;++g)h(g)}}function pf(){var e=Eo;Eo=null;for(var t=0;t<e.length;++t)e[t]()}function oc(e,t,s,a){for(var u=0;u<t.changes.length;u++){var h=t.changes[u];h=="text"?gf(e,t):h=="gutter"?Mu(e,t,s,a):h=="class"?fl(e,t):h=="widget"&&ku(e,t,a)}t.changes=null}function Ca(e){return e.node==e.text&&(e.node=E("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),S&&O<8&&(e.node.style.zIndex=2)),e.node}function cl(e,t){var s=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),t.background)s?t.background.className=s:(t.background.parentNode.removeChild(t.background),t.background=null);else if(s){var a=Ca(t);t.background=a.insertBefore(E("div",null,s),a.firstChild),e.display.input.setUneditable(t.background)}}function Io(e,t){var s=e.display.externalMeasured;return s&&s.line==t.line?(e.display.externalMeasured=null,t.measure=s.measure,s.built):_u(e,t)}function gf(e,t){var s=t.text.className,a=Io(e,t);t.text==t.node&&(t.node=a.pre),t.text.parentNode.replaceChild(a.pre,t.text),t.text=a.pre,a.bgClass!=t.bgClass||a.textClass!=t.textClass?(t.bgClass=a.bgClass,t.textClass=a.textClass,fl(e,t)):s&&(t.text.className=s)}function fl(e,t){cl(e,t),t.line.wrapClass?Ca(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var s=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=s||""}function Mu(e,t,s,a){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var u=Ca(t);t.gutterBackground=E("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),u.insertBefore(t.gutterBackground,t.text)}var h=t.line.gutterMarkers;if(e.options.lineNumbers||h){var g=Ca(t),m=t.gutter=E("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px");if(m.setAttribute("aria-hidden","true"),e.display.input.setUneditable(m),g.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!h||!h["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(E("div",ba(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),h)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,z=h.hasOwnProperty(C)&&h[C];z&&m.appendChild(E("div",[z],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function ku(e,t,s){t.alignable&&(t.alignable=null);for(var a=ge("CodeMirror-linewidget"),u=t.node.firstChild,h=void 0;u;u=h)h=u.nextSibling,a.test(u.className)&&t.node.removeChild(u);Tu(e,t,s)}function Ou(e,t,s,a){var u=Io(e,t);return t.text=t.node=u.pre,u.bgClass&&(t.bgClass=u.bgClass),u.textClass&&(t.textClass=u.textClass),fl(e,t),Mu(e,t,s,a),Tu(e,t,a),t.node}function Tu(e,t,s){if(ac(e,t.line,t,s,!0),t.rest)for(var a=0;a<t.rest.length;a++)ac(e,t.rest[a],t,s,!1)}function ac(e,t,s,a,u){if(!!t.widgets)for(var h=Ca(s),g=0,m=t.widgets;g<m.length;++g){var y=m[g],C=E("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Pu(y,C,s,a),e.display.input.setUneditable(C),u&&y.above?h.insertBefore(C,s.gutter||s.text):h.appendChild(C),hr(y,"redraw")}}function Pu(e,t,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(t);var u=a.wrapperWidth;t.style.left=a.fixedPos+"px",e.coverGutter||(u-=a.gutterTotalWidth,t.style.paddingLeft=a.gutterTotalWidth+"px"),t.style.width=u+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-a.gutterTotalWidth+"px"))}function Do(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!ve(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+t.display.wrapper.clientWidth+"px;"),W(t.display.measure,E("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function zi(e,t){for(var s=Yi(t);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function ps(e){return e.lineSpace.offsetTop}function Qr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function dl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=W(e.measure,E("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function an(e){return Fe-e.display.nativeBarWidth}function ji(e){return e.display.scroller.clientWidth-an(e)-e.display.barWidth}function hl(e){return e.display.scroller.clientHeight-an(e)-e.display.barHeight}function vf(e,t,s){var a=e.options.lineWrapping,u=a&&ji(e);if(!t.measure.heights||a&&t.measure.width!=u){var h=t.measure.heights=[];if(a){t.measure.width=u;for(var g=t.text.firstChild.getClientRects(),m=0;m<g.length-1;m++){var y=g[m],C=g[m+1];Math.abs(y.bottom-C.bottom)>2&&h.push((y.bottom+C.top)/2-s.top)}}h.push(s.bottom-s.top)}}function sc(e,t,s){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==t)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var u=0;u<e.rest.length;u++)if(Lt(e.rest[u])>s)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function bf(e,t){t=oi(t);var s=Lt(t),a=e.display.externalMeasured=new hs(e.doc,t,s);a.lineN=s;var u=a.built=_u(e,a);return a.text=u.pre,W(e.display.lineMeasure,u.pre),a}function lc(e,t,s,a){return ai(e,Zn(e,t),s,a)}function Au(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[li(e,t)];var s=e.display.externalMeasured;if(s&&t>=s.lineN&&t<s.lineN+s.size)return s}function Zn(e,t){var s=Lt(t),a=Au(e,s);a&&!a.text?a=null:a&&a.changes&&(oc(e,a,s,sn(e)),e.curOp.forceUpdate=!0),a||(a=bf(e,t));var u=sc(a,t,s);return{line:t,view:a,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function ai(e,t,s,a,u){t.before&&(s=-1);var h=s+(a||""),g;return t.cache.hasOwnProperty(h)?g=t.cache[h]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(vf(e,t.view,t.rect),t.hasHeights=!0),g=Ki(e,t,s,a),g.bogus||(t.cache[h]=g)),{left:g.left,right:g.right,top:u?g.rtop:g.top,bottom:u?g.rbottom:g.bottom}}var uc={left:0,right:0,top:0,bottom:0};function pl(e,t,s){for(var a,u,h,g,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],t<m?(u=0,h=1,g="left"):t<y?(u=t-m,h=u+1):(C==e.length-3||t==y&&e[C+3]>t)&&(h=y-m,u=h-1,t>=y&&(g="right")),u!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(g=s),s=="left"&&u==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],g="left";if(s=="right"&&u==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],g="right";break}return{node:a,start:u,end:h,collapse:g,coverStart:m,coverEnd:y}}function cc(e,t){var s=uc;if(t=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var u=e.length-1;u>=0&&(s=e[u]).left==s.right;u--);return s}function Ki(e,t,s,a){var u=pl(t.map,s,a),h=u.node,g=u.start,m=u.end,y=u.collapse,C;if(h.nodeType==3){for(var z=0;z<4;z++){for(;g&&Qe(t.line.text.charAt(u.coverStart+g));)--g;for(;u.coverStart+m<u.coverEnd&&Qe(t.line.text.charAt(u.coverStart+m));)++m;if(S&&O<9&&g==0&&m==u.coverEnd-u.coverStart?C=h.parentNode.getBoundingClientRect():C=cc(ne(h,g,m).getClientRects(),a),C.left||C.right||g==0)break;m=g,g=g-1,y="right"}S&&O<11&&(C=gl(e.display.measure,C))}else{g>0&&(y=a="right");var M;e.options.lineWrapping&&(M=h.getClientRects()).length>1?C=M[a=="right"?M.length-1:0]:C=h.getBoundingClientRect()}if(S&&O<9&&!g&&(!C||!C.left&&!C.right)){var N=h.parentNode.getClientRects()[0];N?C={left:N.left,right:N.left+wa(e.display),top:N.top,bottom:N.bottom}:C=uc}for(var R=C.top-t.rect.top,Z=C.bottom-t.rect.top,J=(R+Z)/2,le=t.view.measure.heights,fe=0;fe<le.length-1&&!(J<le[fe]);fe++);var Ce=fe?le[fe-1]:0,de=le[fe],xe={left:(y=="right"?C.right:C.left)-t.rect.left,right:(y=="left"?C.left:C.right)-t.rect.left,top:Ce,bottom:de};return!C.left&&!C.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=R,xe.rbottom=Z),xe}function gl(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zi(e))return t;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*s,right:t.right*s,top:t.top*a,bottom:t.bottom*a}}function fc(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dc(e){e.display.externalMeasure=null,it(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fc(e.display.view[t])}function gs(e){dc(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ro(){return q&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function zn(){return q&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function vl(e){var t=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(t+=Do(e.widgets[s]));return t}function bl(e,t,s,a,u){if(!u){var h=vl(t);s.top+=h,s.bottom+=h}if(a=="line")return s;a||(a="local");var g=Xr(t);if(a=="local"?g+=ps(e.display):g-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();g+=m.top+(a=="window"?0:zn());var y=m.left+(a=="window"?0:Ro());s.left+=y,s.right+=y}return s.top+=g,s.bottom+=g,s}function hc(e,t,s){if(s=="div")return t;var a=t.left,u=t.top;if(s=="page")a-=Ro(),u-=zn();else if(s=="local"||!s){var h=e.display.sizer.getBoundingClientRect();a+=h.left,u+=h.top}var g=e.display.lineSpace.getBoundingClientRect();return{left:a-g.left,top:u-g.top}}function ml(e,t,s,a,u){return a||(a=ke(e.doc,t.line)),bl(e,a,lc(e,a,t.ch,u),s)}function Vn(e,t,s,a,u,h){a=a||ke(e.doc,t.line),u||(u=Zn(e,a));function g(Z,J){var le=ai(e,u,Z,J?"right":"left",h);return J?le.left=le.right:le.right=le.left,bl(e,a,le,s)}var m=Hr(a,e.doc.direction),y=t.ch,C=t.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return g(C=="before"?y-1:y,C=="before");function z(Z,J,le){var fe=m[J],Ce=fe.level==1;return g(le?Z-1:Z,Ce!=le)}var M=Zt(m,y,C),N=jr,R=z(y,M,C=="before");return N!=null&&(R.other=z(y,N,C!="before")),R}function pc(e,t){var s=0;t=be(e.doc,t),e.options.lineWrapping||(s=wa(e.display)*t.ch);var a=ke(e.doc,t.line),u=Xr(a)+ps(e.display);return{left:s,right:s,top:u,bottom:u+a.height}}function Xi(e,t,s,a,u){var h=ie(e,t,s);return h.xRel=u,a&&(h.outside=a),h}function $(e,t,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Xi(a.first,0,null,-1,-1);var u=Un(a,s),h=a.first+a.size-1;if(u>h)return Xi(a.first+a.size-1,ke(a,h).text.length,null,1,1);t<0&&(t=0);for(var g=ke(a,u);;){var m=Je(e,g,u,t,s),y=lf(g,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==u)return C;g=ke(a,u=C.line)}}function K(e,t,s,a){a-=vl(t);var u=t.text.length,h=Mr(function(g){return ai(e,s,g-1).bottom<=a},u,0);return u=Mr(function(g){return ai(e,s,g).top>a},h,u),{begin:h,end:u}}function Y(e,t,s,a){s||(s=Zn(e,t));var u=bl(e,t,ai(e,s,a),"line").top;return K(e,t,s,u)}function Me(e,t,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>t}function Je(e,t,s,a,u){u-=Xr(t);var h=Zn(e,t),g=vl(t),m=0,y=t.text.length,C=!0,z=Hr(t,e.doc.direction);if(z){var M=(e.options.lineWrapping?pr:Mt)(e,t,s,h,z,a,u);C=M.level!=1,m=C?M.from:M.to-1,y=C?M.to:M.from-1}var N=null,R=null,Z=Mr(function(Re){var Pe=ai(e,h,Re);return Pe.top+=g,Pe.bottom+=g,Me(Pe,a,u,!1)?(Pe.top<=u&&Pe.left<=a&&(N=Re,R=Pe),!0):!1},m,y),J,le,fe=!1;if(R){var Ce=a-R.left<R.right-a,de=Ce==C;Z=N+(de?0:1),le=de?"after":"before",J=Ce?R.left:R.right}else{!C&&(Z==y||Z==m)&&Z++,le=Z==0?"after":Z==t.text.length?"before":ai(e,h,Z-(C?1:0)).bottom+g<=u==C?"after":"before";var xe=Vn(e,ie(s,Z,le),"line",t,h);J=xe.left,fe=u<xe.top?-1:u>=xe.bottom?1:0}return Z=dr(t.text,Z,1),Xi(s,Z,le,fe,a-J)}function Mt(e,t,s,a,u,h,g){var m=Mr(function(M){var N=u[M],R=N.level!=1;return Me(Vn(e,ie(s,R?N.to:N.from,R?"before":"after"),"line",t,a),h,g,!0)},0,u.length-1),y=u[m];if(m>0){var C=y.level!=1,z=Vn(e,ie(s,C?y.from:y.to,C?"after":"before"),"line",t,a);Me(z,h,g,!0)&&z.top>g&&(y=u[m-1])}return y}function pr(e,t,s,a,u,h,g){var m=K(e,t,a,g),y=m.begin,C=m.end;/\s/.test(t.text.charAt(C-1))&&C--;for(var z=null,M=null,N=0;N<u.length;N++){var R=u[N];if(!(R.from>=C||R.to<=y)){var Z=R.level!=1,J=ai(e,a,Z?Math.min(C,R.to)-1:Math.max(y,R.from)).right,le=J<h?h-J+1e9:J-h;(!z||M>le)&&(z=R,M=le)}}return z||(z=u[u.length-1]),z.from<y&&(z={from:y,to:z.to,level:z.level}),z.to>C&&(z={from:z.from,to:C,level:z.level}),z}var wt;function Qi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wt==null){wt=E("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wt.appendChild(document.createTextNode("x")),wt.appendChild(E("br"));wt.appendChild(document.createTextNode("x"))}W(e.measure,wt);var s=wt.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),it(e.measure),s||1}function wa(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=E("span","xxxxxxxxxx"),s=E("pre",[t],"CodeMirror-line-like");W(e.measure,s);var a=t.getBoundingClientRect(),u=(a.right-a.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function sn(e){for(var t=e.display,s={},a={},u=t.gutters.clientLeft,h=t.gutters.firstChild,g=0;h;h=h.nextSibling,++g){var m=e.display.gutterSpecs[g].className;s[m]=h.offsetLeft+h.clientLeft+u,a[m]=h.clientWidth}return{fixedPos:xa(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:t.wrapper.clientWidth}}function xa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function gc(e){var t=Qi(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/wa(e.display)-3);return function(u){if(qt(e.doc,u))return 0;var h=0;if(u.widgets)for(var g=0;g<u.widgets.length;g++)u.widgets[g].height&&(h+=u.widgets[g].height);return s?h+(Math.ceil(u.text.length/a)||1)*t:h+t}}function Ji(e){var t=e.doc,s=gc(e);t.iter(function(a){var u=s(a);u!=a.height&&nn(a,u)})}function si(e,t,s,a){var u=e.display;if(!s&&Yi(t).getAttribute("cm-not-content")=="true")return null;var h,g,m=u.lineSpace.getBoundingClientRect();try{h=t.clientX-m.left,g=t.clientY-m.top}catch{return null}var y=$(e,h,g),C;if(a&&y.xRel>0&&(C=ke(e.doc,y.line).text).length==y.ch){var z=Ft(C,C.length,e.options.tabSize)-C.length;y=ie(y.line,Math.max(0,Math.round((h-dl(e.display).left)/wa(e.display))-z))}return y}function li(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(t-=s[a].size,t<0)return a}function rt(e,t,s,a){t==null&&(t=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var u=e.display;if(a&&s<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>t)&&(u.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=u.viewTo)ii&&ul(e.doc,t)<u.viewTo&&Si(e);else if(s<=u.viewFrom)ii&&ec(e.doc,s+a)>u.viewFrom?Si(e):(u.viewFrom+=a,u.viewTo+=a);else if(t<=u.viewFrom&&s>=u.viewTo)Si(e);else if(t<=u.viewFrom){var h=No(e,s,s+a,1);h?(u.view=u.view.slice(h.index),u.viewFrom=h.lineN,u.viewTo+=a):Si(e)}else if(s>=u.viewTo){var g=No(e,t,t,-1);g?(u.view=u.view.slice(0,g.index),u.viewTo=g.lineN):Si(e)}else{var m=No(e,t,t,-1),y=No(e,s,s+a,1);m&&y?(u.view=u.view.slice(0,m.index).concat(ya(e,m.lineN,y.lineN)).concat(u.view.slice(y.index)),u.viewTo+=a):Si(e)}var C=u.externalMeasured;C&&(s<C.lineN?C.lineN+=a:t<C.lineN+C.size&&(u.externalMeasured=null))}function eo(e,t,s){e.curOp.viewChanged=!0;var a=e.display,u=e.display.externalMeasured;if(u&&t>=u.lineN&&t<u.lineN+u.size&&(a.externalMeasured=null),!(t<a.viewFrom||t>=a.viewTo)){var h=a.view[li(e,t)];if(h.node!=null){var g=h.changes||(h.changes=[]);_e(g,s)==-1&&g.push(s)}}}function Si(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function No(e,t,s,a){var u=li(e,t),h,g=e.display.view;if(!ii||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var m=e.display.viewFrom,y=0;y<u;y++)m+=g[y].size;if(m!=t){if(a>0){if(u==g.length-1)return null;h=m+g[u].size-t,u++}else h=m-t;t+=h,s+=h}for(;ul(e.doc,s)!=s;){if(u==(a<0?0:g.length-1))return null;s+=a*g[u-(a<0?1:0)].size,u+=a}return{index:u,lineN:s}}function mf(e,t,s){var a=e.display,u=a.view;u.length==0||t>=a.viewTo||s<=a.viewFrom?(a.view=ya(e,t,s),a.viewFrom=t):(a.viewFrom>t?a.view=ya(e,t,a.viewFrom).concat(a.view):a.viewFrom<t&&(a.view=a.view.slice(li(e,t))),a.viewFrom=t,a.viewTo<s?a.view=a.view.concat(ya(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,li(e,s)))),a.viewTo=s}function vc(e){for(var t=e.display.view,s=0,a=0;a<t.length;a++){var u=t[a];!u.hidden&&(!u.node||u.changes)&&++s}return s}function vs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function bs(e,t){t===void 0&&(t=!0);for(var s=e.doc,a={},u=a.cursors=document.createDocumentFragment(),h=a.selection=document.createDocumentFragment(),g=0;g<s.sel.ranges.length;g++)if(!(!t&&g==s.sel.primIndex)){var m=s.sel.ranges[g];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&Mi(e,m.head,u),y||bc(e,m,h)}}return a}function Mi(e,t,s){var a=Vn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),u=s.appendChild(E("div","\xA0","CodeMirror-cursor"));if(u.style.left=a.left+"px",u.style.top=a.top+"px",u.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var h=ml(e,t,"div",null,null);u.style.width=Math.max(0,h.right-h.left)+"px"}if(a.other){var g=s.appendChild(E("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));g.style.display="",g.style.left=a.other.left+"px",g.style.top=a.other.top+"px",g.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function $o(e,t){return e.top-t.top||e.left-t.left}function bc(e,t,s){var a=e.display,u=e.doc,h=document.createDocumentFragment(),g=dl(e.display),m=g.left,y=Math.max(a.sizerWidth,ji(e)-a.sizer.offsetLeft)-g.right,C=u.direction=="ltr";function z(de,xe,Re,Pe){xe<0&&(xe=0),xe=Math.round(xe),Pe=Math.round(Pe),h.appendChild(E("div",null,"CodeMirror-selected","position: absolute; left: "+de+`px;
2110
2123
  top: `+xe+"px; width: "+(Re==null?y-de:Re)+`px;
2111
- height: `+(Pe-xe)+"px"))}function M(de,xe,Re){var Pe=ke(u,de),lt=Pe.text.length,Ot,ur;function Rt(rr,Sr){return ml(e,ie(de,rr),"div",Pe,Sr)}function Ur(rr,Sr,gr){var It=Y(e,Pe,null,rr),Ht=Sr=="ltr"==(gr=="after")?"left":"right",Xt=gr=="after"?It.begin:It.end-(/\s/.test(Pe.text.charAt(It.end-1))?2:1);return Rt(Xt,Ht)[Ht]}var Yr=Hr(Pe,u.direction);return $n(Yr,xe||0,Re==null?lt:Re,function(rr,Sr,gr,It){var Ht=gr=="ltr",Xt=Rt(rr,Ht?"left":"right"),Zr=Rt(Sr-1,Ht?"right":"left"),Wa=xe==null&&rr==0,go=Re==null&&Sr==lt,Rr=It==0,hi=!Yr||It==Yr.length-1;if(Zr.top-Xt.top<=3){var vr=(C?Wa:go)&&Rr,u0=(C?go:Wa)&&hi,Ai=vr?m:(Ht?Xt:Zr).left,jo=u0?y:(Ht?Zr:Xt).right;z(Ai,Xt.top,jo-Ai,Xt.bottom)}else{var Ko,Vr,Ua,Gl;Ht?(Ko=C&&Wa&&Rr?m:Xt.left,Vr=C?y:Ur(rr,gr,"before"),Ua=C?m:Ur(Sr,gr,"after"),Gl=C&&go&&hi?y:Zr.right):(Ko=C?Ur(rr,gr,"before"):m,Vr=!C&&Wa&&Rr?y:Xt.right,Ua=!C&&go&&hi?m:Zr.left,Gl=C?Ur(Sr,gr,"after"):y),z(Ko,Xt.top,Vr-Ko,Xt.bottom),Xt.bottom<Zr.top&&z(m,Xt.bottom,null,Zr.top),z(Ua,Zr.top,Gl-Ua,Zr.bottom)}(!Ot||No(Xt,Ot)<0)&&(Ot=Xt),No(Zr,Ot)<0&&(Ot=Zr),(!ur||No(Xt,ur)<0)&&(ur=Xt),No(Zr,ur)<0&&(ur=Zr)}),{start:Ot,end:ur}}var N=t.from(),R=t.to();if(N.line==R.line)M(N.line,N.ch,R.ch);else{var Z=ke(u,N.line),J=ke(u,R.line),le=oi(Z)==oi(J),fe=M(N.line,N.ch,le?Z.text.length+1:null).end,Ce=M(R.line,le?0:null,R.ch).start;le&&(fe.top<Ce.top-2?(z(fe.right,fe.top,null,fe.bottom),z(m,Ce.top,Ce.left,Ce.bottom)):z(fe.right,fe.top,Ce.left-fe.right,fe.bottom)),fe.bottom<Ce.top&&z(m,fe.bottom,null,Ce.top)}s.appendChild(h)}function Ca(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var s=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||$o(e),t.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Eu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||wa(e))}function yl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&$o(e))},100)}function wa(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ge(e,"focus",e,t),e.state.focused=!0,At(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ca(e))}function $o(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ge(e,"blur",e,t),e.state.focused=!1,ye(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function eo(e){for(var t=e.display,s=t.lineDiv.offsetTop,a=0;a<t.view.length;a++){var u=t.view[a],h=e.options.lineWrapping,p=void 0,m=0;if(!u.hidden){if(S&&k<8){var y=u.node.offsetTop+u.node.offsetHeight;p=y-s,s=y}else{var C=u.node.getBoundingClientRect();p=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var z=u.line.height-p;if((z>.005||z<-.005)&&(rn(u.line,p),to(u.line),u.rest))for(var M=0;M<u.rest.length;M++)to(u.rest[M]);if(m>e.display.sizerWidth){var N=Math.ceil(m/ma(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function to(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var s=e.widgets[t],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Ho(e,t,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-hs(e));var u=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,h=Un(t,a),p=Un(t,u);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<h?(h=m,p=Un(t,Xr(ke(t,m))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=p&&(h=Un(t,Xr(ke(t,y))-e.wrapper.clientHeight),p=y)}return{from:h,to:Math.max(p,h+1)}}function yf(e,t){if(!ir(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),u=null;if(t.top+a.top<0?u=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!me){var h=E("div","\u200B",null,`position: absolute;
2112
- top: `+(t.top-s.viewOffset-hs(e.display))+`px;
2113
- height: `+(t.bottom-t.top+on(e)+s.barHeight)+`px;
2114
- left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(h),h.scrollIntoView(u),e.display.lineSpace.removeChild(h)}}}function Cf(e,t,s,a){a==null&&(a=0);var u;!e.options.lineWrapping&&t==s&&(s=t.sticky=="before"?ie(t.line,t.ch+1,"before"):t,t=t.ch?ie(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var p=!1,m=Vn(e,t),y=!s||s==t?m:Vn(e,s);u={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=xa(e,u),z=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(jt(e,C.scrollTop),Math.abs(e.doc.scrollTop-z)>1&&(p=!0)),C.scrollLeft!=null&&(Bo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(p=!0)),!p)break}return u}function wf(e,t){var s=xa(e,t);s.scrollTop!=null&&jt(e,s.scrollTop),s.scrollLeft!=null&&Bo(e,s.scrollLeft)}function xa(e,t){var s=e.display,a=Xi(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,h=hl(e),p={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Qr(s),y=t.top<a,C=t.bottom>m-a;if(t.top<u)p.scrollTop=y?0:t.top;else if(t.bottom>u+h){var z=Math.min(t.top,(C?m:t.bottom)-h);z!=u&&(p.scrollTop=z)}var M=e.options.fixedGutter?0:s.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-M,R=qi(e)-s.gutters.offsetWidth,Z=t.right-t.left>R;return Z&&(t.right=t.left+R),t.left<10?p.scrollLeft=0:t.left<N?p.scrollLeft=Math.max(0,t.left+M-(Z?0:10)):t.right>R+N-3&&(p.scrollLeft=t.right+(Z?0:10)-R),p}function La(e,t){t!=null&&(Cl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ro(e){Cl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function bs(e,t,s){(t!=null||s!=null)&&Cl(e),t!=null&&(e.curOp.scrollLeft=t),s!=null&&(e.curOp.scrollTop=s)}function mc(e,t){Cl(e),e.curOp.scrollToPos=t}function Cl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var s=pc(e,t.from),a=pc(e,t.to);yc(e,s,a,t.margin)}}function yc(e,t,s,a){var u=xa(e,{left:Math.min(t.left,s.left),top:Math.min(t.top,s.top)-a,right:Math.max(t.right,s.right),bottom:Math.max(t.bottom,s.bottom)+a});bs(e,u.scrollLeft,u.scrollTop)}function jt(e,t){Math.abs(e.doc.scrollTop-t)<2||(f||Du(e,{top:t}),Pr(e,t,!0),f&&Du(e),ci(e,100))}function Pr(e,t,s){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!s)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Bo(e,t,s,a){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)&&(e.doc.scrollLeft=t,Cc(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ms(e){var t=e.display,s=t.gutters.offsetWidth,a=Math.round(e.doc.height+Qr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+on(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:s}}var no=function(e,t,s){this.cm=s;var a=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=u.tabIndex=-1,e(a),e(u),$e(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),$e(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,S&&k<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};no.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var u=e.viewHeight-(t?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:t?a:0}},no.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},no.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},no.prototype.zeroWidthHack=function(){var e=he&&!we?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},no.prototype.enableZeroWidthBar=function(e,t,s){e.style.pointerEvents="auto";function a(){var u=e.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);h!=e?e.style.pointerEvents="none":t.set(1e3,a)}t.set(1e3,a)},no.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ys=function(){};ys.prototype.update=function(){return{bottom:0,right:0}},ys.prototype.setScrollLeft=function(){},ys.prototype.setScrollTop=function(){},ys.prototype.clear=function(){};function io(e,t){t||(t=ms(e));var s=e.display.barWidth,a=e.display.barHeight;_a(e,t);for(var u=0;u<4&&s!=e.display.barWidth||a!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&eo(e),_a(e,ms(e)),s=e.display.barWidth,a=e.display.barHeight}function _a(e,t){var s=e.display,a=s.scrollbars.update(t);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&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=t.gutterWidth+"px"):s.gutterFiller.style.display=""}var wl={native:no,null:ys};function Fo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),$e(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,s){s=="horizontal"?Bo(e,t):jt(e,t)},e),e.display.scrollbars.addClass&&At(e.display.wrapper,e.display.scrollbars.addClass)}var Cs=0;function Gn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++Cs,markArrays:null},Gi(e.curOp)}function ui(e){var t=e.curOp;t&&hf(t,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;za(s)})}function za(e){for(var t=e.ops,s=0;s<t.length;s++)xf(t[s]);for(var a=0;a<t.length;a++)Lf(t[a]);for(var u=0;u<t.length;u++)_f(t[u]);for(var h=0;h<t.length;h++)zf(t[h]);for(var p=0;p<t.length;p++)Sf(t[p])}function xf(e){var t=e.cm,s=t.display;bt(t),e.updateMaxLine&&fs(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Jr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Lf(e){e.updatedDisplay=e.mustUpdate&&Iu(e.cm,e.update)}function _f(e){var t=e.cm,s=t.display;e.updatedDisplay&&eo(t),e.barMeasure=ms(t),s.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=lc(t,s.maxLine,s.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+on(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-qi(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function zf(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Bo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var s=e.focus&&e.focus==ot();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=t.doc.height)&&io(t,e.barMeasure),e.updatedDisplay&&Nu(t,e.barMeasure),e.selectionChanged&&Ca(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),s&&Eu(e.cm)}function Sf(e){var t=e.cm,s=t.display,a=t.doc;if(e.updatedDisplay&&oo(t,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Pr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Bo(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=Cf(t,be(a,e.scrollToPos.from),be(a,e.scrollToPos.to),e.scrollToPos.margin);yf(t,u)}var h=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ge(h[m],"hide");if(p)for(var y=0;y<p.length;++y)p[y].lines.length&&Ge(p[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ar(e,t){if(e.curOp)return t();Gn(e);try{return t()}finally{ui(e)}}function Kt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Gn(e);try{return t.apply(e,arguments)}finally{ui(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Gn(this);try{return e.apply(this,arguments)}finally{ui(this)}}}function L(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Gn(t);try{return e.apply(this,arguments)}finally{ui(t)}}}function ci(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,dn(xl,e))}function xl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=ga(e,t.highlightFrontier),u=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(a.line>=e.display.viewFrom){var p=h.styles,m=h.text.length>e.options.maxHighlightLength?gn(t.mode,a.state):null,y=Y0(e,h,a,!0);m&&(a.state=m),h.styles=y.styles;var C=h.styleClasses,z=y.classes;z?h.styleClasses=z:C&&(h.styleClasses=null);for(var M=!p||p.length!=h.styles.length||C!=z&&(!C||!z||C.bgClass!=z.bgClass||C.textClass!=z.textClass),N=0;!M&&N<p.length;++N)M=p[N]!=h.styles[N];M&&u.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=e.options.maxHighlightLength&&ss(e,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ci(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),u.length&&Ar(e,function(){for(var h=0;h<u.length;h++)Ji(e,u[h],"text")})}}var Jr=function(e,t,s){var a=e.display;this.viewport=t,this.visible=Ho(a,e.doc,t),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=qi(e),this.force=s,this.dims=an(e),this.events=[]};Jr.prototype.signal=function(e,t){wr(e,t)&&this.events.push(arguments)},Jr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ge.apply(null,this.events[e])};function bt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=on(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=on(e)+"px",t.scrollbarsClipped=!0)}function Mf(e){if(e.hasFocus())return null;var t=ot();if(!t||!ve(e.display.lineDiv,t))return null;var s={activeElt:t};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ve(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function kf(e){if(!(!e||!e.activeElt||e.activeElt==ot())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ve(document.body,e.anchorNode)&&ve(document.body,e.focusNode))){var t=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),t.removeAllRanges(),t.addRange(s),t.extend(e.focusNode,e.focusOffset)}}function Iu(e,t){var s=e.display,a=e.doc;if(t.editorIsHidden)return Si(e),!1;if(!t.force&&t.visible.from>=s.viewFrom&&t.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&vc(e)==0)return!1;fi(e)&&(Si(e),t.dims=an(e));var u=a.first+a.size,h=Math.max(t.visible.from-e.options.viewportMargin,a.first),p=Math.min(u,t.visible.to+e.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>p&&s.viewTo-p<20&&(p=Math.min(u,s.viewTo)),ii&&(h=ul(e.doc,h),p=ec(e.doc,p));var m=h!=s.viewFrom||p!=s.viewTo||s.lastWrapHeight!=t.wrapperHeight||s.lastWrapWidth!=t.wrapperWidth;mf(e,h,p),s.viewOffset=Xr(ke(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=vc(e);if(!m&&y==0&&!t.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=Mf(e);return y>4&&(s.lineDiv.style.display="none"),Of(e,s.updateLineNumbers,t.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,kf(C),it(s.cursorDiv),it(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=t.wrapperHeight,s.lastWrapWidth=t.wrapperWidth,ci(e,400)),s.updateLineNumbers=null,!0}function oo(e,t){for(var s=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==qi(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Qr(e.display)-hl(e),s.top)}),t.visible=Ho(e.display,e.doc,s),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=Ho(e.display,e.doc,s));if(!Iu(e,t))break;eo(e);var u=ms(e);gs(e),io(e,u),Nu(e,u),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Du(e,t){var s=new Jr(e,t);if(Iu(e,s)){eo(e),oo(e,s);var a=ms(e);gs(e),io(e,a),Nu(e,a),s.finish()}}function Of(e,t,s){var a=e.display,u=e.options.lineNumbers,h=a.lineDiv,p=h.firstChild;function m(Z){var J=Z.nextSibling;return I&&he&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),J}for(var y=a.view,C=a.viewFrom,z=0;z<y.length;z++){var M=y[z];if(!M.hidden)if(!M.node||M.node.parentNode!=h){var N=Ou(e,M,C,s);h.insertBefore(N,p)}else{for(;p!=M.node;)p=m(p);var R=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(_e(M.changes,"gutter")>-1&&(R=!1),oc(e,M,C,s)),R&&(it(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(pa(e.options,C)))),p=M.node.nextSibling}C+=M.size}for(;p;)p=m(p)}function Ru(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",hr(e,"gutterChanged",e)}function Nu(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+on(e)+"px"}function Cc(e){var t=e.display,s=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var a=ya(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=a+"px",p=0;p<s.length;p++)if(!s[p].hidden){e.options.fixedGutter&&(s[p].gutter&&(s[p].gutter.style.left=h),s[p].gutterBackground&&(s[p].gutterBackground.style.left=h));var m=s[p].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=a+u+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,s=pa(e.options,t.first+t.size-1),a=e.display;if(s.length!=a.lineNumChars){var u=a.measure.appendChild(E("div",[E("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,p=u.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-p)+1,a.lineNumWidth=a.lineNumInnerWidth+p,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Ru(e.display),!0}return!1}function $u(e,t){for(var s=[],a=!1,u=0;u<e.length;u++){var h=e[u],p=null;if(typeof h!="string"&&(p=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)a=!0;else continue;s.push({className:h,style:p})}return t&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function wc(e){var t=e.gutters,s=e.gutterSpecs;it(t),e.lineGutter=null;for(var a=0;a<s.length;++a){var u=s[a],h=u.className,p=u.style,m=t.appendChild(E("div",null,"CodeMirror-gutter "+h));p&&(m.style.cssText=p),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=s.length?"":"none",Ru(e)}function ws(e){wc(e.display),rt(e),Cc(e)}function Tf(e,t,s,a){var u=this;this.input=s,u.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=O("div",null,"CodeMirror-code"),u.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=E("div",null,"CodeMirror-cursors"),u.measure=E("div",null,"CodeMirror-measure"),u.lineMeasure=E("div",null,"CodeMirror-measure"),u.lineSpace=O("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=O("div",[u.lineSpace],"CodeMirror-lines");u.mover=E("div",[h],null,"position: relative"),u.sizer=E("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=E("div",null,null,"position: absolute; height: "+Fe+"px; width: 1px;"),u.gutters=E("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=E("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=E("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),S&&k<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!I&&!(f&&pe)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=t.first,u.reportedViewFrom=u.reportedViewTo=t.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=$u(a.gutters,a.lineNumbers),wc(u),s.init(u)}var Ll=0,or=null;S?or=-.53:f?or=15:q?or=-.7:ce&&(or=-1/3);function xc(e){var t=e.wheelDeltaX,s=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:t,y:s}}function Pf(e){var t=xc(e);return t.x*=or,t.y*=or,t}function Lc(e,t){var s=xc(t),a=s.x,u=s.y,h=e.display,p=h.scroller,m=p.scrollWidth>p.clientWidth,y=p.scrollHeight>p.clientHeight;if(!!(a&&m||u&&y)){if(u&&he&&I){e:for(var C=t.target,z=h.view;C!=p;C=C.parentNode)for(var M=0;M<z.length;M++)if(z[M].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!f&&!X&&or!=null){u&&y&&jt(e,Math.max(0,p.scrollTop+u*or)),Bo(e,Math.max(0,p.scrollLeft+a*or)),(!u||u&&y)&&xr(t),h.wheelStartX=null;return}if(u&&or!=null){var N=u*or,R=e.doc.scrollTop,Z=R+h.wrapper.clientHeight;N<0?R=Math.max(0,R+N-50):Z=Math.min(e.doc.height,Z+N+50),Du(e,{top:R,bottom:Z})}Ll<20&&(h.wheelStartX==null?(h.wheelStartX=p.scrollLeft,h.wheelStartY=p.scrollTop,h.wheelDX=a,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var J=p.scrollLeft-h.wheelStartX,le=p.scrollTop-h.wheelStartY,fe=le&&h.wheelDY&&le/h.wheelDY||J&&h.wheelDX&&J/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(or=(or*Ll+fe)/(Ll+1),++Ll)}},200)):(h.wheelDX+=a,h.wheelDY+=u))}}var mn=function(e,t){this.ranges=e,this.primIndex=t};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var s=this.ranges[t],a=e.ranges[t];if(!T(s.anchor,a.anchor)||!T(s.head,a.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new _t(j(this.ranges[t].anchor),j(this.ranges[t].head));return new mn(e,this.primIndex)},mn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mn.prototype.contains=function(e,t){t||(t=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(w(t,a.from())>=0&&w(e,a.to())<=0)return s}return-1};var _t=function(e,t){this.anchor=e,this.head=t};_t.prototype.from=function(){return qe(this.anchor,this.head)},_t.prototype.to=function(){return ae(this.anchor,this.head)},_t.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ir(e,t,s){var a=e&&e.options.selectionsMayTouch,u=t[s];t.sort(function(N,R){return w(N.from(),R.from())}),s=_e(t,u);for(var h=1;h<t.length;h++){var p=t[h],m=t[h-1],y=w(m.to(),p.from());if(a&&!p.empty()?y>0:y>=0){var C=qe(m.from(),p.from()),z=ae(m.to(),p.to()),M=m.empty()?p.from()==p.head:m.from()==m.head;h<=s&&--s,t.splice(--h,2,new _t(M?z:C,M?C:z))}}return new mn(t,s)}function ao(e,t){return new mn([new _t(e,t||e)],0)}function so(e){return e.text?ie(e.from.line+e.text.length-1,Xe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Sn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return so(t);var s=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=so(t).ch-t.to.ch),ie(s,a)}function Hu(e,t){for(var s=[],a=0;a<e.sel.ranges.length;a++){var u=e.sel.ranges[a];s.push(new _t(Sn(u.anchor,t),Sn(u.head,t)))}return Ir(e.cm,s,e.sel.primIndex)}function _c(e,t,s){return e.line==t.line?ie(s.line,e.ch-t.ch+s.ch):ie(s.line+(e.line-t.line),e.ch)}function Af(e,t,s){for(var a=[],u=ie(e.first,0),h=u,p=0;p<t.length;p++){var m=t[p],y=_c(m.from,u,h),C=_c(so(m),u,h);if(u=m.to,h=C,s=="around"){var z=e.sel.ranges[p],M=w(z.head,z.anchor)<0;a[p]=new _t(M?C:y,M?y:C)}else a[p]=new _t(y,y)}return new mn(a,e.sel.primIndex)}function Bu(e){e.doc.mode=ha(e.options,e.doc.modeOption),xs(e)}function xs(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ci(e,100),e.state.modeGen++,e.curOp&&rt(e)}function Fu(e,t){return t.from.ch==0&&t.to.ch==0&&Xe(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _l(e,t,s,a){function u(Ce){return s?s[Ce]:null}function h(Ce,de,xe){tc(Ce,de,xe,a),hr(Ce,"change",Ce,t)}function p(Ce,de){for(var xe=[],Re=Ce;Re<de;++Re)xe.push(new Tr(C[Re],u(Re),a));return xe}var m=t.from,y=t.to,C=t.text,z=ke(e,m.line),M=ke(e,y.line),N=Xe(C),R=u(C.length-1),Z=y.line-m.line;if(t.full)e.insert(0,p(0,C.length)),e.remove(C.length,e.size-C.length);else if(Fu(e,t)){var J=p(0,C.length-1);h(M,M.text,R),Z&&e.remove(m.line,Z),J.length&&e.insert(m.line,J)}else if(z==M)if(C.length==1)h(z,z.text.slice(0,m.ch)+N+z.text.slice(y.ch),R);else{var le=p(1,C.length-1);le.push(new Tr(N+z.text.slice(y.ch),R,a)),h(z,z.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,le)}else if(C.length==1)h(z,z.text.slice(0,m.ch)+C[0]+M.text.slice(y.ch),u(0)),e.remove(m.line+1,Z);else{h(z,z.text.slice(0,m.ch)+C[0],u(0)),h(M,N+M.text.slice(y.ch),R);var fe=p(1,C.length-1);Z>1&&e.remove(m.line+1,Z-1),e.insert(m.line+1,fe)}hr(e,"change",e,t)}function lo(e,t,s){function a(u,h,p){if(u.linked)for(var m=0;m<u.linked.length;++m){var y=u.linked[m];if(y.doc!=h){var C=p&&y.sharedHist;s&&!C||(t(y.doc,C),a(y.doc,u,C))}}}a(e,null,!0)}function zc(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Qi(e),Bu(e),zl(e),e.options.direction=t.direction,e.options.lineWrapping||fs(e),e.options.mode=t.modeOption,rt(e)}function zl(e){(e.doc.direction=="rtl"?At:ye)(e.display.lineDiv,"CodeMirror-rtl")}function Ls(e){Ar(e,function(){zl(e),rt(e)})}function Wo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Wu(e,t){var s={from:j(t.from),to:so(t),text:vn(e,t.from,t.to)};return Sc(e,s,t.from.line,t.to.line+1),lo(e,function(a){return Sc(a,s,t.from.line,t.to.line+1)},!0),s}function Uu(e){for(;e.length;){var t=Xe(e);if(t.ranges)e.pop();else break}}function Ef(e,t){if(t)return Uu(e.done),Xe(e.done);if(e.done.length&&!Xe(e.done).ranges)return Xe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Xe(e.done)}function di(e,t,s,a){var u=e.history;u.undone.length=0;var h=+new Date,p,m;if((u.lastOp==a||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=Ef(u,u.lastOp==a)))m=Xe(p.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=so(t):p.changes.push(Wu(e,t));else{var y=Xe(u.done);for((!y||!y.ranges)&&en(e.sel,u.done),p={changes:[Wu(e,t)],generation:u.generation},u.done.push(p);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=a,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ge(e,"historyAdded")}function Yu(e,t,s,a){var u=t.charAt(0);return u=="*"||u=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Uo(e,t,s,a){var u=e.history,h=a&&a.origin;s==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||Yu(e,h,Xe(u.done),t))?u.done[u.done.length-1]=t:en(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=s,a&&a.clearRedo!==!1&&Uu(u.undone)}function en(e,t){var s=Xe(t);s&&s.ranges&&s.equals(e)||t.push(e)}function Sc(e,t,s,a){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(p){p.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=p.markedSpans),++h})}function Mc(e){if(!e)return null;for(var t,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?t||(t=e.slice(0,s)):t&&t.push(e[s]);return t?t.length?t:null:e}function kc(e,t){var s=t["spans_"+e.id];if(!s)return null;for(var a=[],u=0;u<t.text.length;++u)a.push(Mc(s[u]));return a}function Sa(e,t){var s=kc(e,t),a=Cu(e,t);if(!s)return a;if(!a)return s;for(var u=0;u<s.length;++u){var h=s[u],p=a[u];if(h&&p){e:for(var m=0;m<p.length;++m){for(var y=p[m],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else p&&(s[u]=p)}return s}function yn(e,t,s){for(var a=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){a.push(s?mn.prototype.deepCopy.call(h):h);continue}var p=h.changes,m=[];a.push({changes:m});for(var y=0;y<p.length;++y){var C=p[y],z=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),t)for(var M in C)(z=M.match(/^spans_(\d+)$/))&&_e(t,Number(z[1]))>-1&&(Xe(m)[M]=C[M],delete C[M])}}return a}function Sl(e,t,s,a){if(a){var u=e.anchor;if(s){var h=w(t,u)<0;h!=w(s,u)<0?(u=t,t=s):h!=w(t,s)<0&&(t=s)}return new _t(u,t)}else return new _t(s||t,t)}function Ml(e,t,s,a,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),Lr(e,new mn([Sl(e.sel.primary(),t,s,u)],0),a)}function _s(e,t,s){for(var a=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)a[h]=Sl(e.sel.ranges[h],t[h],null,u);var p=Ir(e.cm,a,e.sel.primIndex);Lr(e,p,s)}function Zu(e,t,s,a){var u=e.sel.ranges.slice(0);u[t]=s,Lr(e,Ir(e.cm,u,e.sel.primIndex),a)}function Vu(e,t,s,a){Lr(e,ao(t,s),a)}function Dr(e,t,s){var a={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new _t(be(e,u[h].anchor),be(e,u[h].head))},origin:s&&s.origin};return Ge(e,"beforeSelectionChange",e,a),e.cm&&Ge(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=t.ranges?Ir(e.cm,a.ranges,a.ranges.length-1):t}function kl(e,t,s){var a=e.history.done,u=Xe(a);u&&u.ranges?(a[a.length-1]=t,Cn(e,t,s)):Lr(e,t,s)}function Lr(e,t,s){Cn(e,t,s),Uo(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function Cn(e,t,s){(wr(e,"beforeSelectionChange")||e.cm&&wr(e.cm,"beforeSelectionChange"))&&(t=Dr(e,t,s));var a=s&&s.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Ol(e,uo(e,t,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ro(e.cm)}function Ol(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,fa(e.cm)),hr(e,"cursorActivity",e))}function zs(e){Ol(e,uo(e,e.sel,null,!1))}function uo(e,t,s,a){for(var u,h=0;h<t.ranges.length;h++){var p=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=_r(e,p.anchor,m&&m.anchor,s,a),C=_r(e,p.head,m&&m.head,s,a);(u||y!=p.anchor||C!=p.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new _t(y,C))}return u?Ir(e.cm,u,t.primIndex):t}function Yo(e,t,s,a,u){var h=ke(e,t.line);if(h.markedSpans)for(var p=0;p<h.markedSpans.length;++p){var m=h.markedSpans[p],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,z="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=t.ch:m.from<t.ch))&&(m.to==null||(z?m.to>=t.ch:m.to>t.ch))){if(u&&(Ge(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.markedSpans){--p;continue}else break;if(!y.atomic)continue;if(s){var M=y.find(a<0?1:-1),N=void 0;if((a<0?z:C)&&(M=Tl(e,M,-a,M&&M.line==t.line?h:null)),M&&M.line==t.line&&(N=w(M,s))&&(a<0?N<0:N>0))return Yo(e,M,t,a,u)}var R=y.find(a<0?-1:1);return(a<0?C:z)&&(R=Tl(e,R,a,R.line==t.line?h:null)),R?Yo(e,R,t,a,u):null}}return t}function _r(e,t,s,a,u){var h=a||1,p=Yo(e,t,s,h,u)||!u&&Yo(e,t,s,h,!0)||Yo(e,t,s,-h,u)||!u&&Yo(e,t,s,-h,!0);return p||(e.cantEdit=!0,ie(e.first,0))}function Tl(e,t,s,a){return s<0&&t.ch==0?t.line>e.first?be(e,ie(t.line-1)):null:s>0&&t.ch==(a||ke(e,t.line)).text.length?t.line<e.first+e.size-1?ie(t.line+1,0):null:new ie(t.line,t.ch+s)}function Oc(e){e.setSelection(ie(e.firstLine(),0),ie(e.lastLine()),at)}function Tc(e,t,s){var a={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(u,h,p,m){u&&(a.from=be(e,u)),h&&(a.to=be(e,h)),p&&(a.text=p),m!==void 0&&(a.origin=m)}),Ge(e,"beforeChange",e,a),e.cm&&Ge(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Ma(e,t,s){if(e.cm){if(!e.cm.curOp)return Kt(e.cm,Ma)(e,t,s);if(e.cm.state.suppressEdits)return}if(!((wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"))&&(t=Tc(e,t,!0),!t))){var a=yu&&!s&&wu(e,t.from,t.to);if(a)for(var u=a.length-1;u>=0;--u)Pl(e,{from:a[u].from,to:a[u].to,text:u?[""]:t.text,origin:t.origin});else Pl(e,t)}}function Pl(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var s=Hu(e,t);di(e,t,s,e.cm?e.cm.curOp.id:NaN),Oa(e,t,s,Cu(e,t));var a=[];lo(e,function(u,h){!h&&_e(a,u.history)==-1&&(Ac(u.history,t),a.push(u.history)),Oa(u,t,null,Cu(u,t))})}}function Al(e,t,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var u=e.history,h,p=e.sel,m=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(s?h.ranges&&!h.equals(e.sel):!h.ranges));C++);if(C!=m.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(h=m.pop(),h.ranges){if(en(h,y),s&&!h.equals(e.sel)){Lr(e,h,{clearRedo:!1});return}p=h}else if(a){m.push(h);return}else break;var z=[];en(p,y),y.push({changes:z,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"),N=function(J){var le=h.changes[J];if(le.origin=t,M&&!Tc(e,le,!1))return m.length=0,{};z.push(Wu(e,le));var fe=J?Hu(e,le):Xe(m);Oa(e,le,fe,Sa(e,le)),!J&&e.cm&&e.cm.scrollIntoView({from:le.from,to:so(le)});var Ce=[];lo(e,function(de,xe){!xe&&_e(Ce,de.history)==-1&&(Ac(de.history,le),Ce.push(de.history)),Oa(de,le,null,Sa(de,le))})},R=h.changes.length-1;R>=0;--R){var Z=N(R);if(Z)return Z.v}}}}function ka(e,t){if(t!=0&&(e.first+=t,e.sel=new mn(yt(e.sel.ranges,function(u){return new _t(ie(u.anchor.line+t,u.anchor.ch),ie(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){rt(e.cm,e.first,e.first-t,t);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)Ji(e.cm,a,"gutter")}}function Oa(e,t,s,a){if(e.cm&&!e.cm.curOp)return Kt(e.cm,Oa)(e,t,s,a);if(t.to.line<e.first){ka(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var u=t.text.length-1-(e.first-t.from.line);ka(e,u),t={from:ie(e.first,0),to:ie(t.to.line+u,t.to.ch),text:[Xe(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:ie(h,ke(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=vn(e,t.from,t.to),s||(s=Hu(e,t)),e.cm?If(e.cm,t,a):_l(e,t,a),Cn(e,s,at),e.cantEdit&&_r(e,ie(e.firstLine(),0))&&(e.cantEdit=!1)}}function If(e,t,s){var a=e.doc,u=e.display,h=t.from,p=t.to,m=!1,y=h.line;e.options.lineWrapping||(y=Lt(oi(ke(a,h.line))),a.iter(y,p.line+1,function(R){if(R==u.maxLine)return m=!0,!0})),a.sel.contains(t.from,t.to)>-1&&fa(e),_l(a,t,s,gc(e)),e.options.lineWrapping||(a.iter(y,h.line+t.text.length,function(R){var Z=cs(R);Z>u.maxLineLength&&(u.maxLine=R,u.maxLineLength=Z,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),nf(a,h.line),ci(e,400);var C=t.text.length-(p.line-h.line)-1;t.full?rt(e):h.line==p.line&&t.text.length==1&&!Fu(e.doc,t)?Ji(e,h.line,"text"):rt(e,h.line,p.line+1,C);var z=wr(e,"changes"),M=wr(e,"change");if(M||z){var N={from:h,to:p,text:t.text,removed:t.removed,origin:t.origin};M&&hr(e,"change",e,N),z&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function Ta(e,t,s,a,u){var h;a||(a=s),w(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof t=="string"&&(t=e.splitLines(t)),Ma(e,{from:s,to:a,text:t,origin:u})}function Pa(e,t,s,a){s<e.line?e.line+=a:t<e.line&&(e.line=t,e.ch=0)}function Pc(e,t,s,a){for(var u=0;u<e.length;++u){var h=e[u],p=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)Pa(h.ranges[m].anchor,t,s,a),Pa(h.ranges[m].head,t,s,a);continue}for(var y=0;y<h.changes.length;++y){var C=h.changes[y];if(s<C.from.line)C.from=ie(C.from.line+a,C.from.ch),C.to=ie(C.to.line+a,C.to.ch);else if(t<=C.to.line){p=!1;break}}p||(e.splice(0,u+1),u=0)}}function Ac(e,t){var s=t.from.line,a=t.to.line,u=t.text.length-(a-s)-1;Pc(e.done,s,a,u),Pc(e.undone,s,a,u)}function Zo(e,t,s,a){var u=t,h=t;return typeof t=="number"?h=ke(e,vt(e,t)):u=Lt(t),u==null?null:(a(h,u)&&e.cm&&Ji(e.cm,u,s),h)}function Aa(e){this.lines=e,this.parent=null;for(var t=0,s=0;s<e.length;++s)e[s].parent=this,t+=e[s].height;this.height=t}Aa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var s=e,a=e+t;s<a;++s){var u=this.lines[s];this.height-=u.height,rc(u),hr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var a=0;a<t.length;++a)t[a].parent=this},iterN:function(e,t,s){for(var a=e+t;e<a;++e)if(s(this.lines[e]))return!0}};function Ss(e){this.children=e;for(var t=0,s=0,a=0;a<e.length;++a){var u=e[a];t+=u.chunkSize(),s+=u.height,u.parent=this}this.size=t,this.height=s,this.parent=null}Ss.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var s=0;s<this.children.length;++s){var a=this.children[s],u=a.chunkSize();if(e<u){var h=Math.min(t,u-e),p=a.height;if(a.removeInner(e,h),this.height-=p-a.height,u==h&&(this.children.splice(s--,1),a.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Aa))){var m=[];this.collapse(m),this.children=[new Aa(m)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,s){this.size+=t.length,this.height+=s;for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,s),u.lines&&u.lines.length>50){for(var p=u.lines.length%25+25,m=p;m<u.lines.length;){var y=new Aa(u.lines.slice(m,m+=25));u.height-=y.height,this.children.splice(++a,0,y),y.parent=this}u.lines=u.lines.slice(0,p),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),s=new Ss(t);if(e.parent){e.size-=s.size,e.height-=s.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,s)}else{var a=new Ss(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,s){for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<h){var p=Math.min(t,h-e);if(u.iterN(e,p,s))return!0;if((t-=p)==0)break;e=0}else e-=h}}};var Ms=function(e,t,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=t};Ms.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,s=this.line,a=Lt(s);if(!(a==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(s.widgets=null);var h=Io(this);rn(s,Math.max(0,s.height-h)),e&&(Ar(e,function(){Ec(e,s,-h),Ji(e,a,"widget")}),hr(e,"lineWidgetCleared",e,this,a))}},Ms.prototype.changed=function(){var e=this,t=this.height,s=this.doc.cm,a=this.line;this.height=null;var u=Io(this)-t;!u||(qt(this.doc,a)||rn(a,a.height+u),s&&Ar(s,function(){s.curOp.forceUpdate=!0,Ec(s,a,u),hr(s,"lineWidgetChanged",s,e,Lt(a))}))},Bn(Ms);function Ec(e,t,s){Xr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&La(e,s)}function Ic(e,t,s,a){var u=new Ms(e,s,a),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),Zo(e,t,"widget",function(p){var m=p.widgets||(p.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=p,h&&!qt(e,p)){var y=Xr(p)<e.scrollTop;rn(p,p.height+Io(u)),y&&La(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&hr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:Lt(t)),u}var El=0,co=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++El};co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Gn(e),wr(this,"clear")){var s=this.find();s&&hr(this,"clear",s.from,s.to)}for(var a=null,u=null,h=0;h<this.lines.length;++h){var p=this.lines[h],m=ls(p.markedSpans,this);e&&!this.collapsed?Ji(e,Lt(p),"text"):e&&(m.to!=null&&(u=Lt(p)),m.from!=null&&(a=Lt(p))),p.markedSpans=of(p.markedSpans,m),m.from==null&&this.collapsed&&!qt(this.doc,p)&&e&&rn(p,Xi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=oi(this.lines[y]),z=cs(C);z>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=z,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&rt(e,a,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&zs(e.doc)),e&&hr(e,"markerCleared",e,this,a,u),t&&ui(e),this.parent&&this.parent.clear()}},co.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,u=0;u<this.lines.length;++u){var h=this.lines[u],p=ls(h.markedSpans,this);if(p.from!=null&&(s=ie(t?h:Lt(h),p.from),e==-1))return s;if(p.to!=null&&(a=ie(t?h:Lt(h),p.to),e==1))return a}return s&&{from:s,to:a}},co.prototype.changed=function(){var e=this,t=this.find(-1,!0),s=this,a=this.doc.cm;!t||!a||Ar(a,function(){var u=t.line,h=Lt(t.line),p=Au(a,h);if(p&&(fc(p),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!qt(s.doc,u)&&s.height!=null){var m=s.height;s.height=null;var y=Io(s)-m;y&&rn(u,u.height+y)}hr(a,"markerChanged",a,e)})},co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||_e(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},co.prototype.detachLine=function(e){if(this.lines.splice(_e(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Bn(co);function fo(e,t,s,a,u){if(a&&a.shared)return Dc(e,t,s,a,u);if(e.cm&&!e.cm.curOp)return Kt(e.cm,fo)(e,t,s,a,u);var h=new co(e,u),p=w(t,s);if(a&&er(a,h,!1),p>0||p==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=O("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(J0(e,t.line,t,s,h)||t.line!=s.line&&J0(e,s.line,t,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");q0()}h.addToHistory&&di(e,{from:t,to:s,origin:"markText"},e.sel,NaN);var m=t.line,y=e.cm,C;if(e.iter(m,s.line+1,function(M){y&&h.collapsed&&!y.options.lineWrapping&&oi(M)==y.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&rn(M,0),j0(M,new ol(h,m==t.line?t.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,s.line+1,function(M){qt(e,M)&&rn(M,0)}),h.clearOnEnter&&$e(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(G0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++El,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)rt(y,t.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var z=t.line;z<=s.line;z++)Ji(y,z,"text");h.atomic&&zs(y.doc),hr(y,"markerAdded",y,h)}return h}var Ea=function(e,t){this.markers=e,this.primary=t;for(var s=0;s<e.length;++s)e[s].parent=this};Ea.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();hr(this,"clear")}},Ea.prototype.find=function(e,t){return this.primary.find(e,t)},Bn(Ea);function Dc(e,t,s,a,u){a=er(a),a.shared=!1;var h=[fo(e,t,s,a,u)],p=h[0],m=a.widgetNode;return lo(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),h.push(fo(y,be(y,t),be(y,s),a,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;p=Xe(h)}),new Ea(h,p)}function Gu(e){return e.findMarks(ie(e.first,0),e.clipPos(ie(e.lastLine())),function(t){return t.parent})}function Il(e,t){for(var s=0;s<t.length;s++){var a=t[s],u=a.find(),h=e.clipPos(u.from),p=e.clipPos(u.to);if(w(h,p)){var m=fo(e,h,p,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function Df(e){for(var t=function(a){var u=e[a],h=[u.primary.doc];lo(u.primary.doc,function(y){return h.push(y)});for(var p=0;p<u.markers.length;p++){var m=u.markers[p];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(p--,1))}},s=0;s<e.length;s++)t(s)}var Rc=0,Br=function(e,t,s,a,u){if(!(this instanceof Br))return new Br(e,t,s,a,u);s==null&&(s=0),Ss.call(this,[new Aa([new Tr("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=ie(s,0);this.sel=ao(h),this.history=new Wo(null),this.id=++Rc,this.modeOption=t,this.lineSep=a,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_l(this,{from:h,to:h,text:e}),Lr(this,ao(h),at)};Br.prototype=tn(Ss.prototype,{constructor:Br,iter:function(e,t,s){s?this.iterN(e-this.first,t-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var s=0,a=0;a<t.length;++a)s+=t[a].height;this.insertInner(e-this.first,t,s)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=as(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:L(function(e){var t=ie(this.first,0),s=this.first+this.size-1;Ma(this,{from:t,to:ie(s,ke(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&bs(this.cm,0,0),Lr(this,ao(t),at)}),replaceRange:function(e,t,s,a){t=be(this,t),s=s?be(this,s):t,Ta(this,e,t,s,a)},getRange:function(e,t,s){var a=vn(this,be(this,e),be(this,t));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Zi(this,e))return ke(this,e)},getLineNumber:function(e){return Lt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ke(this,e)),oi(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return be(this,e)},getCursor:function(e){var t=this.sel.primary(),s;return e==null||e=="head"?s=t.head:e=="anchor"?s=t.anchor:e=="end"||e=="to"||e===!1?s=t.to():s=t.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:L(function(e,t,s){Vu(this,be(this,typeof e=="number"?ie(e,t||0):e),null,s)}),setSelection:L(function(e,t,s){Vu(this,be(this,e),be(this,t||e),s)}),extendSelection:L(function(e,t,s){Ml(this,be(this,e),t&&be(this,t),s)}),extendSelections:L(function(e,t){_s(this,nn(this,e),t)}),extendSelectionsBy:L(function(e,t){var s=yt(this.sel.ranges,e);_s(this,nn(this,s),t)}),setSelections:L(function(e,t,s){if(!!e.length){for(var a=[],u=0;u<e.length;u++)a[u]=new _t(be(this,e[u].anchor),be(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Lr(this,Ir(this.cm,a,t),s)}}),addSelection:L(function(e,t,s){var a=this.sel.ranges.slice(0);a.push(new _t(be(this,e),be(this,t||e))),Lr(this,Ir(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var t=this.sel.ranges,s,a=0;a<t.length;a++){var u=vn(this,t[a].from(),t[a].to());s=s?s.concat(u):u}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],s=this.sel.ranges,a=0;a<s.length;a++){var u=vn(this,s[a].from(),s[a].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[a]=u}return t},replaceSelection:function(e,t,s){for(var a=[],u=0;u<this.sel.ranges.length;u++)a[u]=e;this.replaceSelections(a,t,s||"+input")},replaceSelections:L(function(e,t,s){for(var a=[],u=this.sel,h=0;h<u.ranges.length;h++){var p=u.ranges[h];a[h]={from:p.from(),to:p.to(),text:this.splitLines(e[h]),origin:s}}for(var m=t&&t!="end"&&Af(this,a,t),y=a.length-1;y>=0;y--)Ma(this,a[y]);m?kl(this,m):this.cm&&ro(this.cm)}),undo:L(function(){Al(this,"undo")}),redo:L(function(){Al(this,"redo")}),undoSelection:L(function(){Al(this,"undo",!0)}),redoSelection:L(function(){Al(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++s;return{undo:t,redo:s}},clearHistory:function(){var e=this;this.history=new Wo(this.history),lo(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:yn(this.history.done),undone:yn(this.history.undone)}},setHistory:function(e){var t=this.history=new Wo(this.history);t.done=yn(e.done.slice(0),null,!0),t.undone=yn(e.undone.slice(0),null,!0)},setGutterMarker:L(function(e,t,s){return Zo(this,e,"gutter",function(a){var u=a.gutterMarkers||(a.gutterMarkers={});return u[t]=s,!s&&oe(u)&&(a.gutterMarkers=null),!0})}),clearGutter:L(function(e){var t=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Zo(t,s,"gutter",function(){return s.gutterMarkers[e]=null,oe(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Zi(this,e)||(t=e,e=ke(this,e),!e))return null}else if(t=Lt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:L(function(e,t,s){return Zo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!a[u])a[u]=s;else{if(ge(s).test(a[u]))return!1;a[u]+=" "+s}return!0})}),removeLineClass:L(function(e,t,s){return Zo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=a[u];if(h)if(s==null)a[u]=null;else{var p=h.match(ge(s));if(!p)return!1;var m=p.index+p[0].length;a[u]=h.slice(0,p.index)+(!p.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:L(function(e,t,s){return Ic(this,e,t,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,s){return fo(this,be(this,e),be(this,t),s,s&&s.type||"range")},setBookmark:function(e,t){var s={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=be(this,e),fo(this,e,e,s,"bookmark")},findMarksAt:function(e){e=be(this,e);var t=[],s=ke(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var u=s[a];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&t.push(u.marker.parent||u.marker)}return t},findMarks:function(e,t,s){e=be(this,e),t=be(this,t);var a=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var p=h.markedSpans;if(p)for(var m=0;m<p.length;m++){var y=p[m];!(y.to!=null&&u==e.line&&e.ch>=y.to||y.from==null&&u!=e.line||y.from!=null&&u==t.line&&y.from>=t.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++u}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var s=t.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var t,s=this.first,a=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+a;if(h>e)return t=e,!0;e-=h,++s}),be(this,ie(s,t))},indexFromPos:function(e){e=be(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){t+=a.text.length+s}),t},copy:function(e){var t=new Br(as(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,s=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Br(as(this,t,s),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Il(a,Gu(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var s=this.linked[t];if(s.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Df(Gu(this));break}}if(e.history==this.history){var a=[e.id];lo(e,function(u){return a.push(u.id)},!0),e.history=new Wo(null),e.history.done=yn(this.history.done,a),e.history.undone=yn(this.history.undone,a)}},iterLinkedDocs:function(e){lo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Oo(e)},lineSeparator:function(){return this.lineSep||`
2115
- `},setDirection:L(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Ls(this.cm))})}),Br.prototype.eachLine=Br.prototype.iter;var Nc=0;function $c(e){var t=this;if(ju(t),!(ir(t,e)||zi(t.display,e))){xr(e),S&&(Nc=+new Date);var s=si(t,e,!0),a=e.dataTransfer.files;if(!(!s||t.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var u=a.length,h=Array(u),p=0,m=function(){++p==u&&Kt(t,function(){s=be(t.doc,s);var R={from:s,to:s,text:t.doc.splitLines(h.filter(function(Z){return Z!=null}).join(t.doc.lineSeparator())),origin:"paste"};Ma(t.doc,R),kl(t.doc,ao(be(t.doc,s),be(t.doc,so(R))))})()},y=function(R,Z){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,R.type)==-1){m();return}var J=new FileReader;J.onerror=function(){return m()},J.onload=function(){var le=J.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(le)){m();return}h[Z]=le,m()},J.readAsText(R)},C=0;C<a.length;C++)y(a[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(s)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var z=e.dataTransfer.getData("Text");if(z){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),Cn(t.doc,ao(s,s)),M)for(var N=0;N<M.length;++N)Ta(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(z,"around","paste"),t.display.input.focus()}}catch{}}}}function Rf(e,t){if(S&&(!e.state.draggingText||+new Date-Nc<100)){Mo(t);return}if(!(ir(e,t)||zi(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ce)){var s=E("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",X&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),t.dataTransfer.setDragImage(s,0,0),X&&s.parentNode.removeChild(s)}}function qu(e,t){var s=si(e,t);if(!!s){var a=document.createDocumentFragment();Mi(e,s,a),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),W(e.display.dragCursor,a)}}function ju(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Dl(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<t.length;a++){var u=t[a].CodeMirror;u&&s.push(u)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)e(s[h])})}}var Hc=!1;function Ku(){Hc||(ft(),Hc=!0)}function ft(){var e;$e(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Dl(Nf)},100))}),$e(window,"blur",function(){return Dl($o)})}function Nf(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var ho={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"},ki=0;ki<10;ki++)ho[ki+48]=ho[ki+96]=String(ki);for(var ks=65;ks<=90;ks++)ho[ks]=String.fromCharCode(ks);for(var Os=1;Os<=12;Os++)ho[Os+111]=ho[Os+63235]="F"+Os;var Oi={};Oi.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"},Oi.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"},Oi.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"},Oi.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"]},Oi.default=he?Oi.macDefault:Oi.pcDefault;function Mn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var s,a,u,h,p=0;p<t.length-1;p++){var m=t[p];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))s=!0;else if(/^(c|ctrl|control)$/i.test(m))a=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function $f(e){var t={};for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete e[s];continue}for(var u=yt(s.split(" "),Mn),h=0;h<u.length;h++){var p=void 0,m=void 0;h==u.length-1?(m=u.join(" "),p=a):(m=u.slice(0,h+1).join(" "),p="...");var y=t[m];if(!y)t[m]=p;else if(y!=p)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in t)e[C]=t[C];return e}function Ti(e,t,s,a){t=Fr(t);var u=t.call?t.call(e,a):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&s(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Ti(e,t.fallthrough,s,a);for(var h=0;h<t.fallthrough.length;h++){var p=Ti(e,t.fallthrough[h],s,a);if(p)return p}}}function Rl(e){var t=typeof e=="string"?e:ho[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Xu(e,t,s){var a=e;return t.altKey&&a!="Alt"&&(e="Alt-"+e),(et?t.metaKey:t.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(et?t.ctrlKey:t.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&t.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function Qu(e,t){if(X&&e.keyCode==34&&e.char)return!1;var s=ho[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),Xu(s,e,t))}function Fr(e){return typeof e=="string"?Oi[e]:e}function wn(e,t){for(var s=e.doc.sel.ranges,a=[],u=0;u<s.length;u++){for(var h=t(s[u]);a.length&&w(h.from,Xe(a).to)<=0;){var p=a.pop();if(w(p.from,h.from)<0){h.from=p.from;break}}a.push(h)}Ar(e,function(){for(var m=a.length-1;m>=0;m--)Ta(e.doc,"",a[m].from,a[m].to,"+delete");ro(e)})}function Ts(e,t,s){var a=dr(e.text,t+s,s);return a<0||a>e.text.length?null:a}function Nl(e,t,s){var a=Ts(e,t.ch,s);return a==null?null:new ie(t.line,a,s<0?"after":"before")}function Ia(e,t,s,a,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=Hr(s,t.doc.direction);if(h){var p=u<0?Xe(h):h[0],m=u<0==(p.level==1),y=m?"after":"before",C;if(p.level>0||t.doc.direction=="rtl"){var z=Zn(t,s);C=u<0?s.text.length-1:0;var M=ai(t,z,C).top;C=Mr(function(N){return ai(t,z,N).top==M},u<0==(p.level==1)?p.from:p.to-1,C),y=="before"&&(C=Ts(s,C,1))}else C=u<0?p.to:p.from;return new ie(a,C,y)}}return new ie(a,u<0?s.text.length:0,u<0?"before":"after")}function Bc(e,t,s,a){var u=Hr(t,e.doc.direction);if(!u)return Nl(t,s,a);s.ch>=t.text.length?(s.ch=t.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=Zt(u,s.ch,s.sticky),p=u[h];if(e.doc.direction=="ltr"&&p.level%2==0&&(a>0?p.to>s.ch:p.from<s.ch))return Nl(t,s,a);var m=function(fe,Ce){return Ts(t,fe instanceof ie?fe.ch:fe,Ce)},y,C=function(fe){return e.options.lineWrapping?(y=y||Zn(e,t),Y(e,t,y,fe)):{begin:0,end:t.text.length}},z=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||p.level==1){var M=p.level==1==a<0,N=m(s,M?1:-1);if(N!=null&&(M?N<=p.to&&N<=z.end:N>=p.from&&N>=z.begin)){var R=M?"before":"after";return new ie(s.line,N,R)}}var Z=function(fe,Ce,de){for(var xe=function(Ot,ur){return ur?new ie(s.line,m(Ot,1),"before"):new ie(s.line,Ot,"after")};fe>=0&&fe<u.length;fe+=Ce){var Re=u[fe],Pe=Ce>0==(Re.level!=1),lt=Pe?de.begin:m(de.end,-1);if(Re.from<=lt&&lt<Re.to||(lt=Pe?Re.from:m(Re.to,-1),de.begin<=lt&&lt<de.end))return xe(lt,Pe)}},J=Z(h+a,a,z);if(J)return J;var le=a>0?z.end:m(z.begin,-1);return le!=null&&!(a>0&&le==t.text.length)&&(J=Z(a>0?0:u.length-1,a,C(le)),J)?J:null}var Vo={selectAll:Oc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),at)},killLine:function(e){return wn(e,function(t){if(t.empty()){var s=ke(e.doc,t.head.line).text.length;return t.head.ch==s&&t.head.line<e.lastLine()?{from:t.head,to:ie(t.head.line+1,0)}:{from:t.head,to:ie(t.head.line,s)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:be(e.doc,ie(t.to().line+1,0))}})},delLineLeft:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:t.from()}})},delWrappedLineRight:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:t.from(),to:a}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ie(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ie(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Ju(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return $l(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return e0(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},We)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},We)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?$l(e,t.head):a},We)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],s=e.listSelections(),a=e.options.tabSize,u=0;u<s.length;u++){var h=s[u].from(),p=Ft(e.getLine(h.line),h.ch,a);t.push(lr(a-p%a))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=[],a=0;a<t.length;a++)if(!!t[a].empty()){var u=t[a].head,h=ke(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new ie(u.line,u.ch-1)),u.ch>0)u=new ie(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),ie(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var p=ke(e.doc,u.line-1).text;p&&(u=new ie(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),ie(u.line-1,p.length-1),u,"+transpose"))}}s.push(new _t(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=t.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),t[s].anchor,t[s].head,"+input");t=e.listSelections();for(var a=0;a<t.length;a++)e.indentLine(t[a].from().line,null,!0);ro(e)})},openLine:function(e){return e.replaceSelection(`
2116
- `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ju(e,t){var s=ke(e.doc,t),a=oi(s);return a!=s&&(t=Lt(a)),Ia(!0,e,a,t,1)}function e0(e,t){var s=ke(e.doc,t),a=uf(s);return a!=s&&(t=Lt(a)),Ia(!0,e,s,t,-1)}function $l(e,t){var s=Ju(e,t.line),a=ke(e.doc,s.line),u=Hr(a,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),p=t.line==s.line&&t.ch<=h&&t.ch;return ie(s.line,p?0:h,s.sticky)}return s}function qn(e,t,s){if(typeof t=="string"&&(t=Vo[t],!t))return!1;e.display.input.ensurePolled();var a=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),u=t(e)!=Ze}finally{e.display.shift=a,e.state.suppressEdits=!1}return u}function Hf(e,t,s){for(var a=0;a<e.state.keyMaps.length;a++){var u=Ti(t,e.state.keyMaps[a],s,e);if(u)return u}return e.options.extraKeys&&Ti(t,e.options.extraKeys,s,e)||Ti(t,e.options.keyMap,s,e)}var po=new ut;function Da(e,t,s,a){var u=e.state.keySeq;if(u){if(Rl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:po.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),t0(e,u+" "+t,s,a))return!0}return t0(e,t,s,a)}function t0(e,t,s,a){var u=Hf(e,t,a);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&hr(e,"keyHandled",e,t,s),(u=="handled"||u=="multi")&&(xr(s),Ca(e)),!!u}function Hl(e,t){var s=Qu(t,!0);return s?t.shiftKey&&!e.state.keySeq?Da(e,"Shift-"+s,t,function(a){return qn(e,a,!0)})||Da(e,s,t,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return qn(e,a)}):Da(e,s,t,function(a){return qn(e,a)}):!1}function Bf(e,t,s){return Da(e,"'"+s+"'",t,function(a){return qn(e,a,!0)})}var r0=null;function Fc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=ot(),!ir(t,e))){S&&k<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;t.display.shift=s==16||e.shiftKey;var a=Hl(t,e);X&&(r0=a?s:null,!a&&s==88&&!el&&(he?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),f&&!he&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Wc(t)}}function Wc(e){var t=e.display.lineDiv;At(t,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(ye(t,"CodeMirror-crosshair"),kr(document,"keyup",s),kr(document,"mouseover",s))}$e(document,"keyup",s),$e(document,"mouseover",s)}function n0(e){e.keyCode==16&&(this.doc.sel.shift=!1),ir(this,e)}function Uc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(zi(t.display,e)||ir(t,e)||e.ctrlKey&&!e.altKey||he&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(X&&s==r0){r0=null,xr(e);return}if(!(X&&(!e.which||e.which<10)&&Hl(t,e))){var u=String.fromCharCode(a==null?s:a);u!="\b"&&(Bf(t,e,u)||t.display.input.onKeyPress(e))}}}var Yc=400,Bl=function(e,t,s){this.time=e,this.pos=t,this.button=s};Bl.prototype.compare=function(e,t,s){return this.time+Yc>e&&w(t,this.pos)==0&&s==this.button};var zr,sn;function Ff(e,t){var s=+new Date;return sn&&sn.compare(s,e,t)?(zr=sn=null,"triple"):zr&&zr.compare(s,e,t)?(sn=new Bl(s,e,t),zr=null,"double"):(zr=new Bl(s,e,t),sn=null,"single")}function Zc(e){var t=this,s=t.display;if(!(ir(t,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,zi(s,e)){I||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!i0(t,e)){var a=si(t,e),u=ts(e),h=a?Ff(a,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(a&&Fl(t,u,a,h,e))&&(u==1?a?Vc(t,a,h,e):Ui(e)==s.scroller&&xr(e):u==2?(a&&Ml(t.doc,a),setTimeout(function(){return s.input.focus()},20)):u==3&&(nt?t.display.input.onContextMenu(e):yl(t)))}}}function Fl(e,t,s,a,u){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,Da(e,Xu(h,u),u,function(p){if(typeof p=="string"&&(p=Vo[p]),!p)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=p(e,s)!=Ze}finally{e.state.suppressEdits=!1}return m})}function Ra(e,t,s){var a=e.getOption("configureMouse"),u=a?a(e,t,s):{};if(u.unit==null){var h=Te?s.shiftKey&&s.metaKey:s.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=he?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(he?s.altKey:s.ctrlKey)),u}function Vc(e,t,s,a){S?setTimeout(dn(Eu,e),0):e.curOp.focus=ot();var u=Ra(e,s,a),h=e.doc.sel,p;e.options.dragDrop&&rs&&!e.isReadOnly()&&s=="single"&&(p=h.contains(t))>-1&&(w((p=h.ranges[p]).from(),t)<0||t.xRel>0)&&(w(p.to(),t)>0||t.xRel<0)?Gc(e,a,t,u):jc(e,a,t,u)}function Gc(e,t,s,a){var u=e.display,h=!1,p=Kt(e,function(C){I&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:yl(e)),kr(u.wrapper.ownerDocument,"mouseup",p),kr(u.wrapper.ownerDocument,"mousemove",m),kr(u.scroller,"dragstart",y),kr(u.scroller,"drop",p),h||(xr(C),a.addNew||Ml(e.doc,s,null,null,a.extend),I&&!ce||S&&k==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),m=function(C){h=h||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},y=function(){return h=!0};I&&(u.scroller.draggable=!0),e.state.draggingText=p,p.copy=!a.moveOnDrag,$e(u.wrapper.ownerDocument,"mouseup",p),$e(u.wrapper.ownerDocument,"mousemove",m),$e(u.scroller,"dragstart",y),$e(u.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function qc(e,t,s){if(s=="char")return new _t(t,t);if(s=="word")return e.findWordAt(t);if(s=="line")return new _t(ie(t.line,0),be(e.doc,ie(t.line+1,0)));var a=s(e,t);return new _t(a.from,a.to)}function jc(e,t,s,a){S&&yl(e);var u=e.display,h=e.doc;xr(t);var p,m,y=h.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=h.sel.contains(s),m>-1?p=C[m]:p=new _t(s,s)):(p=h.sel.primary(),m=h.sel.primIndex),a.unit=="rectangle")a.addNew||(p=new _t(s,s)),s=si(e,t,!0,!0),m=-1;else{var z=qc(e,s,a.unit);a.extend?p=Sl(p,z.anchor,z.head,a.extend):p=z}a.addNew?m==-1?(m=C.length,Lr(h,Ir(e,C.concat([p]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(Lr(h,Ir(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):Zu(h,m,p,st):(m=0,Lr(h,new mn([p],0),st),y=h.sel);var M=s;function N(de){if(w(M,de)!=0)if(M=de,a.unit=="rectangle"){for(var xe=[],Re=e.options.tabSize,Pe=Ft(ke(h,s.line).text,s.ch,Re),lt=Ft(ke(h,de.line).text,de.ch,Re),Ot=Math.min(Pe,lt),ur=Math.max(Pe,lt),Rt=Math.min(s.line,de.line),Ur=Math.min(e.lastLine(),Math.max(s.line,de.line));Rt<=Ur;Rt++){var Yr=ke(h,Rt).text,rr=Gt(Yr,Ot,Re);Ot==ur?xe.push(new _t(ie(Rt,rr),ie(Rt,rr))):Yr.length>rr&&xe.push(new _t(ie(Rt,rr),ie(Rt,Gt(Yr,ur,Re))))}xe.length||xe.push(new _t(s,s)),Lr(h,Ir(e,y.ranges.slice(0,m).concat(xe),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(de)}else{var Sr=p,gr=qc(e,de,a.unit),It=Sr.anchor,Ht;w(gr.anchor,It)>0?(Ht=gr.head,It=qe(Sr.from(),gr.anchor)):(Ht=gr.anchor,It=ae(Sr.to(),gr.head));var Xt=y.ranges.slice(0);Xt[m]=Na(e,new _t(be(h,It),Ht)),Lr(h,Ir(e,Xt,m),st)}}var R=u.wrapper.getBoundingClientRect(),Z=0;function J(de){var xe=++Z,Re=si(e,de,!0,a.unit=="rectangle");if(!!Re)if(w(Re,M)!=0){e.curOp.focus=ot(),N(Re);var Pe=Ho(u,h);(Re.line>=Pe.to||Re.line<Pe.from)&&setTimeout(Kt(e,function(){Z==xe&&J(de)}),150)}else{var lt=de.clientY<R.top?-20:de.clientY>R.bottom?20:0;lt&&setTimeout(Kt(e,function(){Z==xe&&(u.scroller.scrollTop+=lt,J(de))}),50)}}function le(de){e.state.selectingText=!1,Z=1/0,de&&(xr(de),u.input.focus()),kr(u.wrapper.ownerDocument,"mousemove",fe),kr(u.wrapper.ownerDocument,"mouseup",Ce),h.history.lastSelOrigin=null}var fe=Kt(e,function(de){de.buttons===0||!ts(de)?le(de):J(de)}),Ce=Kt(e,le);e.state.selectingText=Ce,$e(u.wrapper.ownerDocument,"mousemove",fe),$e(u.wrapper.ownerDocument,"mouseup",Ce)}function Na(e,t){var s=t.anchor,a=t.head,u=ke(e.doc,s.line);if(w(s,a)==0&&s.sticky==a.sticky)return t;var h=Hr(u);if(!h)return t;var p=Zt(h,s.ch,s.sticky),m=h[p];if(m.from!=s.ch&&m.to!=s.ch)return t;var y=p+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==h.length)return t;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var z=Zt(h,a.ch,a.sticky),M=z-p||(a.ch-s.ch)*(m.level==1?-1:1);z==y-1||z==y?C=M<0:C=M>0}var N=h[y+(C?-1:0)],R=C==(N.level==1),Z=R?N.from:N.to,J=R?"after":"before";return s.ch==Z&&s.sticky==J?t:new _t(new ie(s.line,Z,J),a)}function $a(e,t,s,a){var u,h;if(t.touches)u=t.touches[0].clientX,h=t.touches[0].clientY;else try{u=t.clientX,h=t.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&xr(t);var p=e.display,m=p.lineDiv.getBoundingClientRect();if(h>m.bottom||!wr(e,s))return hn(t);h-=m.top-p.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=p.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=u){var z=Un(e.doc,h),M=e.display.gutterSpecs[y];return Ge(e,s,e,z,M.className,t),hn(t)}}}function i0(e,t){return $a(e,t,"gutterClick",!0)}function o0(e,t){zi(e.display,t)||Kc(e,t)||ir(e,t,"contextmenu")||nt||e.display.input.onContextMenu(t)}function Kc(e,t){return wr(e,"gutterContextMenu")?$a(e,t,"gutterContextMenu",!1):!1}function Ps(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ps(e)}var Go={toString:function(){return"CodeMirror.Init"}},As={},Ha={};function Wl(e){var t=e.optionHandlers;function s(a,u,h,p){e.defaults[a]=u,h&&(t[a]=p?function(m,y,C){C!=Go&&h(m,y,C)}:h)}e.defineOption=s,e.Init=Go,s("value","",function(a,u){return a.setValue(u)},!0),s("mode",null,function(a,u){a.doc.modeOption=u,Bu(a)},!0),s("indentUnit",2,Bu,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){xs(a),ps(a),rt(a)},!0),s("lineSeparator",null,function(a,u){if(a.doc.lineSep=u,!!u){var h=[],p=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var z=y.text.indexOf(u,C);if(z==-1)break;C=z+u.length,h.push(ie(p,z))}p++});for(var m=h.length-1;m>=0;m--)Ta(a.doc,u,h[m],ie(h[m].line,h[m].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,u,h){a.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=Go&&a.refresh()}),s("specialCharPlaceholder",bn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,u){return a.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(a,u){return a.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(a,u){return a.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!He),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Ps(a),ws(a)},!0),s("keyMap","default",function(a,u,h){var p=Fr(u),m=h!=Go&&Fr(h);m&&m.detach&&m.detach(a,p),p.attach&&p.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,Xc,!0),s("gutters",[],function(a,u){a.display.gutterSpecs=$u(u,a.options.lineNumbers),ws(a)},!0),s("fixedGutter",!0,function(a,u){a.display.gutters.style.left=u?ya(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return io(a)},!0),s("scrollbarStyle","native",function(a){Fo(a),io(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,u){a.display.gutterSpecs=$u(a.options.gutters,u),ws(a)},!0),s("firstLineNumber",1,ws,!0),s("lineNumberFormatter",function(a){return a},ws,!0),s("showCursorWhenSelecting",!1,gs,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,u){u=="nocursor"&&($o(a),a.display.input.blur()),a.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(a,u){u=u===""?null:u,a.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(a,u){u||a.display.input.reset()},!0),s("dragDrop",!0,Wf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,gs,!0),s("singleCursorHeightPerLine",!0,gs,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,xs,!0),s("addModeClass",!1,xs,!0),s("pollInterval",100),s("undoDepth",200,function(a,u){return a.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,xs,!0),s("moveInputWithCursor",!0,function(a,u){u||a.display.input.resetPosition()}),s("tabindex",null,function(a,u){return a.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(a,u){return a.doc.setDirection(u)},!0),s("phrases",null)}function Wf(e,t,s){var a=s&&s!=Go;if(!t!=!a){var u=e.display.dragFunctions,h=t?$e:kr;h(e.display.scroller,"dragstart",u.start),h(e.display.scroller,"dragenter",u.enter),h(e.display.scroller,"dragover",u.over),h(e.display.scroller,"dragleave",u.leave),h(e.display.scroller,"drop",u.drop)}}function Xc(e){e.options.lineWrapping?(At(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),fs(e)),Qi(e),rt(e),ps(e),setTimeout(function(){return io(e)},100)}function Dt(e,t){var s=this;if(!(this instanceof Dt))return new Dt(e,t);this.options=t=t?er(t):{},er(As,t,!1);var a=t.value;typeof a=="string"?a=new Br(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var u=new Dt.inputStyles[t.inputStyle](this),h=this.display=new Tf(e,a,u,t);h.wrapper.CodeMirror=this,Ps(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Fo(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 ut,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),S&&k<11&&setTimeout(function(){return s.display.input.reset(!0)},20),Qc(this),Ku(),Gn(this),this.curOp.forceUpdate=!0,zc(this,a),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&wa(s)},20):$o(this);for(var p in Ha)Ha.hasOwnProperty(p)&&Ha[p](this,t[p],Go);fi(this),t.finishInit&&t.finishInit(this);for(var m=0;m<Es.length;++m)Es[m](this);ui(this),I&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Dt.defaults=As,Dt.optionHandlers=Ha;function Qc(e){var t=e.display;$e(t.scroller,"mousedown",Kt(e,Zc)),S&&k<11?$e(t.scroller,"dblclick",Kt(e,function(y){if(!ir(e,y)){var C=si(e,y);if(!(!C||i0(e,y)||zi(e.display,y))){xr(y);var z=e.findWordAt(C);Ml(e.doc,z.anchor,z.head)}}})):$e(t.scroller,"dblclick",function(y){return ir(e,y)||xr(y)}),$e(t.scroller,"contextmenu",function(y){return o0(e,y)}),$e(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||o0(e,y)});var s,a={end:0};function u(){t.activeTouch&&(s=setTimeout(function(){return t.activeTouch=null},1e3),a=t.activeTouch,a.end=+new Date)}function h(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function p(y,C){if(C.left==null)return!0;var z=C.left-y.left,M=C.top-y.top;return z*z+M*M>20*20}$e(t.scroller,"touchstart",function(y){if(!ir(e,y)&&!h(y)&&!i0(e,y)){t.input.ensurePolled(),clearTimeout(s);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),$e(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),$e(t.scroller,"touchend",function(y){var C=t.activeTouch;if(C&&!zi(t,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var z=e.coordsChar(t.activeTouch,"page"),M;!C.prev||p(C,C.prev)?M=new _t(z,z):!C.prev.prev||p(C,C.prev.prev)?M=e.findWordAt(z):M=new _t(ie(z.line,0),be(e.doc,ie(z.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),xr(y)}u()}),$e(t.scroller,"touchcancel",u),$e(t.scroller,"scroll",function(){t.scroller.clientHeight&&(jt(e,t.scroller.scrollTop),Bo(e,t.scroller.scrollLeft,!0),Ge(e,"scroll",e))}),$e(t.scroller,"mousewheel",function(y){return Lc(e,y)}),$e(t.scroller,"DOMMouseScroll",function(y){return Lc(e,y)}),$e(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){ir(e,y)||Mo(y)},over:function(y){ir(e,y)||(qu(e,y),Mo(y))},start:function(y){return Rf(e,y)},drop:Kt(e,$c),leave:function(y){ir(e,y)||ju(e)}};var m=t.input.getField();$e(m,"keyup",function(y){return n0.call(e,y)}),$e(m,"keydown",Kt(e,Fc)),$e(m,"keypress",Kt(e,Uc)),$e(m,"focus",function(y){return wa(e,y)}),$e(m,"blur",function(y){return $o(e,y)})}var Es=[];Dt.defineInitHook=function(e){return Es.push(e)};function Is(e,t,s,a){var u=e.doc,h;s==null&&(s="add"),s=="smart"&&(u.mode.indent?h=ga(e,t).state:s="prev");var p=e.options.tabSize,m=ke(u,t),y=Ft(m.text,null,p);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],z;if(!a&&!/\S/.test(m.text))z=0,s="not";else if(s=="smart"&&(z=u.mode.indent(h,m.text.slice(C.length),m.text),z==Ze||z>150)){if(!a)return;s="prev"}s=="prev"?t>u.first?z=Ft(ke(u,t-1).text,null,p):z=0:s=="add"?z=y+e.options.indentUnit:s=="subtract"?z=y-e.options.indentUnit:typeof s=="number"&&(z=y+s),z=Math.max(0,z);var M="",N=0;if(e.options.indentWithTabs)for(var R=Math.floor(z/p);R;--R)N+=p,M+=" ";if(N<z&&(M+=lr(z-N)),M!=C)return Ta(u,M,ie(t,0),ie(t,C.length),"+input"),m.stateAfter=null,!0;for(var Z=0;Z<u.sel.ranges.length;Z++){var J=u.sel.ranges[Z];if(J.head.line==t&&J.head.ch<C.length){var le=ie(t,C.length);Zu(u,Z,new _t(le,le));break}}}var kn=null;function On(e){kn=e}function Ul(e,t,s,a,u){var h=e.doc;e.display.shift=!1,a||(a=h.sel);var p=+new Date-200,m=u=="paste"||e.state.pasteIncoming>p,y=Oo(t),C=null;if(m&&a.ranges.length>1)if(kn&&kn.text.join(`
2124
+ height: `+(Pe-xe)+"px"))}function M(de,xe,Re){var Pe=ke(u,de),lt=Pe.text.length,Ot,ur;function Rt(rr,Sr){return ml(e,ie(de,rr),"div",Pe,Sr)}function Ur(rr,Sr,gr){var It=Y(e,Pe,null,rr),Ht=Sr=="ltr"==(gr=="after")?"left":"right",Xt=gr=="after"?It.begin:It.end-(/\s/.test(Pe.text.charAt(It.end-1))?2:1);return Rt(Xt,Ht)[Ht]}var Yr=Hr(Pe,u.direction);return $n(Yr,xe||0,Re==null?lt:Re,function(rr,Sr,gr,It){var Ht=gr=="ltr",Xt=Rt(rr,Ht?"left":"right"),Zr=Rt(Sr-1,Ht?"right":"left"),Za=xe==null&&rr==0,vo=Re==null&&Sr==lt,Rr=It==0,hi=!Yr||It==Yr.length-1;if(Zr.top-Xt.top<=3){var vr=(C?Za:vo)&&Rr,u0=(C?vo:Za)&&hi,Ai=vr?m:(Ht?Xt:Zr).left,Ko=u0?y:(Ht?Zr:Xt).right;z(Ai,Xt.top,Ko-Ai,Xt.bottom)}else{var Xo,Vr,Va,Gl;Ht?(Xo=C&&Za&&Rr?m:Xt.left,Vr=C?y:Ur(rr,gr,"before"),Va=C?m:Ur(Sr,gr,"after"),Gl=C&&vo&&hi?y:Zr.right):(Xo=C?Ur(rr,gr,"before"):m,Vr=!C&&Za&&Rr?y:Xt.right,Va=!C&&vo&&hi?m:Zr.left,Gl=C?Ur(Sr,gr,"after"):y),z(Xo,Xt.top,Vr-Xo,Xt.bottom),Xt.bottom<Zr.top&&z(m,Xt.bottom,null,Zr.top),z(Va,Zr.top,Gl-Va,Zr.bottom)}(!Ot||$o(Xt,Ot)<0)&&(Ot=Xt),$o(Zr,Ot)<0&&(Ot=Zr),(!ur||$o(Xt,ur)<0)&&(ur=Xt),$o(Zr,ur)<0&&(ur=Zr)}),{start:Ot,end:ur}}var N=t.from(),R=t.to();if(N.line==R.line)M(N.line,N.ch,R.ch);else{var Z=ke(u,N.line),J=ke(u,R.line),le=oi(Z)==oi(J),fe=M(N.line,N.ch,le?Z.text.length+1:null).end,Ce=M(R.line,le?0:null,R.ch).start;le&&(fe.top<Ce.top-2?(z(fe.right,fe.top,null,fe.bottom),z(m,Ce.top,Ce.left,Ce.bottom)):z(fe.right,fe.top,Ce.left-fe.right,fe.bottom)),fe.bottom<Ce.top&&z(m,fe.bottom,null,Ce.top)}s.appendChild(h)}function La(e){if(!!e.state.focused){var t=e.display;clearInterval(t.blinker);var s=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Ho(e),t.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Eu(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||_a(e))}function yl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ho(e))},100)}function _a(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ge(e,"focus",e,t),e.state.focused=!0,At(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),La(e))}function Ho(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ge(e,"blur",e,t),e.state.focused=!1,ye(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function to(e){for(var t=e.display,s=t.lineDiv.offsetTop,a=0;a<t.view.length;a++){var u=t.view[a],h=e.options.lineWrapping,g=void 0,m=0;if(!u.hidden){if(S&&O<8){var y=u.node.offsetTop+u.node.offsetHeight;g=y-s,s=y}else{var C=u.node.getBoundingClientRect();g=C.bottom-C.top,!h&&u.text.firstChild&&(m=u.text.firstChild.getBoundingClientRect().right-C.left-1)}var z=u.line.height-g;if((z>.005||z<-.005)&&(nn(u.line,g),ro(u.line),u.rest))for(var M=0;M<u.rest.length;M++)ro(u.rest[M]);if(m>e.display.sizerWidth){var N=Math.ceil(m/wa(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function ro(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var s=e.widgets[t],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Bo(e,t,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-ps(e));var u=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,h=Un(t,a),g=Un(t,u);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<h?(h=m,g=Un(t,Xr(ke(t,m))+e.wrapper.clientHeight)):Math.min(y,t.lastLine())>=g&&(h=Un(t,Xr(ke(t,y))-e.wrapper.clientHeight),g=y)}return{from:h,to:Math.max(g,h+1)}}function yf(e,t){if(!ir(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),u=null;if(t.top+a.top<0?u=!0:t.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!me){var h=E("div","\u200B",null,`position: absolute;
2125
+ top: `+(t.top-s.viewOffset-ps(e.display))+`px;
2126
+ height: `+(t.bottom-t.top+an(e)+s.barHeight)+`px;
2127
+ left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(h),h.scrollIntoView(u),e.display.lineSpace.removeChild(h)}}}function Cf(e,t,s,a){a==null&&(a=0);var u;!e.options.lineWrapping&&t==s&&(s=t.sticky=="before"?ie(t.line,t.ch+1,"before"):t,t=t.ch?ie(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var h=0;h<5;h++){var g=!1,m=Vn(e,t),y=!s||s==t?m:Vn(e,s);u={left:Math.min(m.left,y.left),top:Math.min(m.top,y.top)-a,right:Math.max(m.left,y.left),bottom:Math.max(m.bottom,y.bottom)+a};var C=za(e,u),z=e.doc.scrollTop,M=e.doc.scrollLeft;if(C.scrollTop!=null&&(jt(e,C.scrollTop),Math.abs(e.doc.scrollTop-z)>1&&(g=!0)),C.scrollLeft!=null&&(Fo(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-M)>1&&(g=!0)),!g)break}return u}function wf(e,t){var s=za(e,t);s.scrollTop!=null&&jt(e,s.scrollTop),s.scrollLeft!=null&&Fo(e,s.scrollLeft)}function za(e,t){var s=e.display,a=Qi(e.display);t.top<0&&(t.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,h=hl(e),g={};t.bottom-t.top>h&&(t.bottom=t.top+h);var m=e.doc.height+Qr(s),y=t.top<a,C=t.bottom>m-a;if(t.top<u)g.scrollTop=y?0:t.top;else if(t.bottom>u+h){var z=Math.min(t.top,(C?m:t.bottom)-h);z!=u&&(g.scrollTop=z)}var M=e.options.fixedGutter?0:s.gutters.offsetWidth,N=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-M,R=ji(e)-s.gutters.offsetWidth,Z=t.right-t.left>R;return Z&&(t.right=t.left+R),t.left<10?g.scrollLeft=0:t.left<N?g.scrollLeft=Math.max(0,t.left+M-(Z?0:10)):t.right>R+N-3&&(g.scrollLeft=t.right+(Z?0:10)-R),g}function Sa(e,t){t!=null&&(Cl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function no(e){Cl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ms(e,t,s){(t!=null||s!=null)&&Cl(e),t!=null&&(e.curOp.scrollLeft=t),s!=null&&(e.curOp.scrollTop=s)}function mc(e,t){Cl(e),e.curOp.scrollToPos=t}function Cl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var s=pc(e,t.from),a=pc(e,t.to);yc(e,s,a,t.margin)}}function yc(e,t,s,a){var u=za(e,{left:Math.min(t.left,s.left),top:Math.min(t.top,s.top)-a,right:Math.max(t.right,s.right),bottom:Math.max(t.bottom,s.bottom)+a});ms(e,u.scrollLeft,u.scrollTop)}function jt(e,t){Math.abs(e.doc.scrollTop-t)<2||(f||Du(e,{top:t}),Pr(e,t,!0),f&&Du(e),ci(e,100))}function Pr(e,t,s){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!s)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fo(e,t,s,a){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!a)&&(e.doc.scrollLeft=t,Cc(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ys(e){var t=e.display,s=t.gutters.offsetWidth,a=Math.round(e.doc.height+Qr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+an(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:s}}var io=function(e,t,s){this.cm=s;var a=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=u.tabIndex=-1,e(a),e(u),$e(a,"scroll",function(){a.clientHeight&&t(a.scrollTop,"vertical")}),$e(u,"scroll",function(){u.clientWidth&&t(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,S&&O<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};io.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,a=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=t?a+"px":"0";var u=e.viewHeight-(t?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var h=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+h)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(a==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?a:0,bottom:t?a:0}},io.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},io.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},io.prototype.zeroWidthHack=function(){var e=he&&!we?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ut,this.disableVert=new ut},io.prototype.enableZeroWidthBar=function(e,t,s){e.style.pointerEvents="auto";function a(){var u=e.getBoundingClientRect(),h=s=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);h!=e?e.style.pointerEvents="none":t.set(1e3,a)}t.set(1e3,a)},io.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Cs=function(){};Cs.prototype.update=function(){return{bottom:0,right:0}},Cs.prototype.setScrollLeft=function(){},Cs.prototype.setScrollTop=function(){},Cs.prototype.clear=function(){};function oo(e,t){t||(t=ys(e));var s=e.display.barWidth,a=e.display.barHeight;Ma(e,t);for(var u=0;u<4&&s!=e.display.barWidth||a!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&to(e),Ma(e,ys(e)),s=e.display.barWidth,a=e.display.barHeight}function Ma(e,t){var s=e.display,a=s.scrollbars.update(t);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&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=t.gutterWidth+"px"):s.gutterFiller.style.display=""}var wl={native:io,null:Cs};function Wo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ye(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new wl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),$e(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,s){s=="horizontal"?Fo(e,t):jt(e,t)},e),e.display.scrollbars.addClass&&At(e.display.wrapper,e.display.scrollbars.addClass)}var ws=0;function Gn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++ws,markArrays:null},qi(e.curOp)}function ui(e){var t=e.curOp;t&&hf(t,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ka(s)})}function ka(e){for(var t=e.ops,s=0;s<t.length;s++)xf(t[s]);for(var a=0;a<t.length;a++)Lf(t[a]);for(var u=0;u<t.length;u++)_f(t[u]);for(var h=0;h<t.length;h++)zf(t[h]);for(var g=0;g<t.length;g++)Sf(t[g])}function xf(e){var t=e.cm,s=t.display;bt(t),e.updateMaxLine&&ds(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Jr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Lf(e){e.updatedDisplay=e.mustUpdate&&Iu(e.cm,e.update)}function _f(e){var t=e.cm,s=t.display;e.updatedDisplay&&to(t),e.barMeasure=ys(t),s.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=lc(t,s.maxLine,s.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+an(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-ji(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function zf(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Fo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var s=e.focus&&e.focus==ot();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=t.doc.height)&&oo(t,e.barMeasure),e.updatedDisplay&&Nu(t,e.barMeasure),e.selectionChanged&&La(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),s&&Eu(e.cm)}function Sf(e){var t=e.cm,s=t.display,a=t.doc;if(e.updatedDisplay&&ao(t,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Pr(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Fo(t,e.scrollLeft,!0,!0),e.scrollToPos){var u=Cf(t,be(a,e.scrollToPos.from),be(a,e.scrollToPos.to),e.scrollToPos.margin);yf(t,u)}var h=e.maybeHiddenMarkers,g=e.maybeUnhiddenMarkers;if(h)for(var m=0;m<h.length;++m)h[m].lines.length||Ge(h[m],"hide");if(g)for(var y=0;y<g.length;++y)g[y].lines.length&&Ge(g[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ar(e,t){if(e.curOp)return t();Gn(e);try{return t()}finally{ui(e)}}function Kt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Gn(e);try{return t.apply(e,arguments)}finally{ui(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Gn(this);try{return e.apply(this,arguments)}finally{ui(this)}}}function L(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Gn(t);try{return e.apply(this,arguments)}finally{ui(t)}}}function ci(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,dn(xl,e))}function xl(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=ma(e,t.highlightFrontier),u=[];t.iter(a.line,Math.min(t.first+t.size,e.display.viewTo+500),function(h){if(a.line>=e.display.viewFrom){var g=h.styles,m=h.text.length>e.options.maxHighlightLength?gn(t.mode,a.state):null,y=Y0(e,h,a,!0);m&&(a.state=m),h.styles=y.styles;var C=h.styleClasses,z=y.classes;z?h.styleClasses=z:C&&(h.styleClasses=null);for(var M=!g||g.length!=h.styles.length||C!=z&&(!C||!z||C.bgClass!=z.bgClass||C.textClass!=z.textClass),N=0;!M&&N<g.length;++N)M=g[N]!=h.styles[N];M&&u.push(a.line),h.stateAfter=a.save(),a.nextLine()}else h.text.length<=e.options.maxHighlightLength&&ls(e,h.text,a),h.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ci(e,e.options.workDelay),!0}),t.highlightFrontier=a.line,t.modeFrontier=Math.max(t.modeFrontier,a.line),u.length&&Ar(e,function(){for(var h=0;h<u.length;h++)eo(e,u[h],"text")})}}var Jr=function(e,t,s){var a=e.display;this.viewport=t,this.visible=Bo(a,e.doc,t),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=ji(e),this.force=s,this.dims=sn(e),this.events=[]};Jr.prototype.signal=function(e,t){wr(e,t)&&this.events.push(arguments)},Jr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ge.apply(null,this.events[e])};function bt(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=an(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=an(e)+"px",t.scrollbarsClipped=!0)}function Mf(e){if(e.hasFocus())return null;var t=ot();if(!t||!ve(e.display.lineDiv,t))return null;var s={activeElt:t};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ve(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function kf(e){if(!(!e||!e.activeElt||e.activeElt==ot())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ve(document.body,e.anchorNode)&&ve(document.body,e.focusNode))){var t=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),t.removeAllRanges(),t.addRange(s),t.extend(e.focusNode,e.focusOffset)}}function Iu(e,t){var s=e.display,a=e.doc;if(t.editorIsHidden)return Si(e),!1;if(!t.force&&t.visible.from>=s.viewFrom&&t.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&vc(e)==0)return!1;fi(e)&&(Si(e),t.dims=sn(e));var u=a.first+a.size,h=Math.max(t.visible.from-e.options.viewportMargin,a.first),g=Math.min(u,t.visible.to+e.options.viewportMargin);s.viewFrom<h&&h-s.viewFrom<20&&(h=Math.max(a.first,s.viewFrom)),s.viewTo>g&&s.viewTo-g<20&&(g=Math.min(u,s.viewTo)),ii&&(h=ul(e.doc,h),g=ec(e.doc,g));var m=h!=s.viewFrom||g!=s.viewTo||s.lastWrapHeight!=t.wrapperHeight||s.lastWrapWidth!=t.wrapperWidth;mf(e,h,g),s.viewOffset=Xr(ke(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=vc(e);if(!m&&y==0&&!t.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=Mf(e);return y>4&&(s.lineDiv.style.display="none"),Of(e,s.updateLineNumbers,t.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,kf(C),it(s.cursorDiv),it(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=t.wrapperHeight,s.lastWrapWidth=t.wrapperWidth,ci(e,400)),s.updateLineNumbers=null,!0}function ao(e,t){for(var s=t.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||t.oldDisplayWidth==ji(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Qr(e.display)-hl(e),s.top)}),t.visible=Bo(e.display,e.doc,s),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else a&&(t.visible=Bo(e.display,e.doc,s));if(!Iu(e,t))break;to(e);var u=ys(e);vs(e),oo(e,u),Nu(e,u),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Du(e,t){var s=new Jr(e,t);if(Iu(e,s)){to(e),ao(e,s);var a=ys(e);vs(e),oo(e,a),Nu(e,a),s.finish()}}function Of(e,t,s){var a=e.display,u=e.options.lineNumbers,h=a.lineDiv,g=h.firstChild;function m(Z){var J=Z.nextSibling;return I&&he&&e.display.currentWheelTarget==Z?Z.style.display="none":Z.parentNode.removeChild(Z),J}for(var y=a.view,C=a.viewFrom,z=0;z<y.length;z++){var M=y[z];if(!M.hidden)if(!M.node||M.node.parentNode!=h){var N=Ou(e,M,C,s);h.insertBefore(N,g)}else{for(;g!=M.node;)g=m(g);var R=u&&t!=null&&t<=C&&M.lineNumber;M.changes&&(_e(M.changes,"gutter")>-1&&(R=!1),oc(e,M,C,s)),R&&(it(M.lineNumber),M.lineNumber.appendChild(document.createTextNode(ba(e.options,C)))),g=M.node.nextSibling}C+=M.size}for(;g;)g=m(g)}function Ru(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",hr(e,"gutterChanged",e)}function Nu(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+an(e)+"px"}function Cc(e){var t=e.display,s=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var a=xa(t)-t.scroller.scrollLeft+e.doc.scrollLeft,u=t.gutters.offsetWidth,h=a+"px",g=0;g<s.length;g++)if(!s[g].hidden){e.options.fixedGutter&&(s[g].gutter&&(s[g].gutter.style.left=h),s[g].gutterBackground&&(s[g].gutterBackground.style.left=h));var m=s[g].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=h}e.options.fixedGutter&&(t.gutters.style.left=a+u+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,s=ba(e.options,t.first+t.size-1),a=e.display;if(s.length!=a.lineNumChars){var u=a.measure.appendChild(E("div",[E("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),h=u.firstChild.offsetWidth,g=u.offsetWidth-h;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(h,a.lineGutter.offsetWidth-g)+1,a.lineNumWidth=a.lineNumInnerWidth+g,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Ru(e.display),!0}return!1}function $u(e,t){for(var s=[],a=!1,u=0;u<e.length;u++){var h=e[u],g=null;if(typeof h!="string"&&(g=h.style,h=h.className),h=="CodeMirror-linenumbers")if(t)a=!0;else continue;s.push({className:h,style:g})}return t&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function wc(e){var t=e.gutters,s=e.gutterSpecs;it(t),e.lineGutter=null;for(var a=0;a<s.length;++a){var u=s[a],h=u.className,g=u.style,m=t.appendChild(E("div",null,"CodeMirror-gutter "+h));g&&(m.style.cssText=g),h=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=s.length?"":"none",Ru(e)}function xs(e){wc(e.display),rt(e),Cc(e)}function Tf(e,t,s,a){var u=this;this.input=s,u.scrollbarFiller=E("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=E("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=T("div",null,"CodeMirror-code"),u.selectionDiv=E("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=E("div",null,"CodeMirror-cursors"),u.measure=E("div",null,"CodeMirror-measure"),u.lineMeasure=E("div",null,"CodeMirror-measure"),u.lineSpace=T("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var h=T("div",[u.lineSpace],"CodeMirror-lines");u.mover=E("div",[h],null,"position: relative"),u.sizer=E("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=E("div",null,null,"position: absolute; height: "+Fe+"px; width: 1px;"),u.gutters=E("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=E("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=E("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),u.wrapper.setAttribute("translate","no"),S&&O<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!I&&!(f&&pe)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=t.first,u.reportedViewFrom=u.reportedViewTo=t.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=$u(a.gutters,a.lineNumbers),wc(u),s.init(u)}var Ll=0,or=null;S?or=-.53:f?or=15:q?or=-.7:ce&&(or=-1/3);function xc(e){var t=e.wheelDeltaX,s=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:t,y:s}}function Pf(e){var t=xc(e);return t.x*=or,t.y*=or,t}function Lc(e,t){var s=xc(t),a=s.x,u=s.y,h=e.display,g=h.scroller,m=g.scrollWidth>g.clientWidth,y=g.scrollHeight>g.clientHeight;if(!!(a&&m||u&&y)){if(u&&he&&I){e:for(var C=t.target,z=h.view;C!=g;C=C.parentNode)for(var M=0;M<z.length;M++)if(z[M].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!f&&!X&&or!=null){u&&y&&jt(e,Math.max(0,g.scrollTop+u*or)),Fo(e,Math.max(0,g.scrollLeft+a*or)),(!u||u&&y)&&xr(t),h.wheelStartX=null;return}if(u&&or!=null){var N=u*or,R=e.doc.scrollTop,Z=R+h.wrapper.clientHeight;N<0?R=Math.max(0,R+N-50):Z=Math.min(e.doc.height,Z+N+50),Du(e,{top:R,bottom:Z})}Ll<20&&(h.wheelStartX==null?(h.wheelStartX=g.scrollLeft,h.wheelStartY=g.scrollTop,h.wheelDX=a,h.wheelDY=u,setTimeout(function(){if(h.wheelStartX!=null){var J=g.scrollLeft-h.wheelStartX,le=g.scrollTop-h.wheelStartY,fe=le&&h.wheelDY&&le/h.wheelDY||J&&h.wheelDX&&J/h.wheelDX;h.wheelStartX=h.wheelStartY=null,fe&&(or=(or*Ll+fe)/(Ll+1),++Ll)}},200)):(h.wheelDX+=a,h.wheelDY+=u))}}var mn=function(e,t){this.ranges=e,this.primIndex=t};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var s=this.ranges[t],a=e.ranges[t];if(!P(s.anchor,a.anchor)||!P(s.head,a.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new _t(j(this.ranges[t].anchor),j(this.ranges[t].head));return new mn(e,this.primIndex)},mn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mn.prototype.contains=function(e,t){t||(t=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(w(t,a.from())>=0&&w(e,a.to())<=0)return s}return-1};var _t=function(e,t){this.anchor=e,this.head=t};_t.prototype.from=function(){return qe(this.anchor,this.head)},_t.prototype.to=function(){return ae(this.anchor,this.head)},_t.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ir(e,t,s){var a=e&&e.options.selectionsMayTouch,u=t[s];t.sort(function(N,R){return w(N.from(),R.from())}),s=_e(t,u);for(var h=1;h<t.length;h++){var g=t[h],m=t[h-1],y=w(m.to(),g.from());if(a&&!g.empty()?y>0:y>=0){var C=qe(m.from(),g.from()),z=ae(m.to(),g.to()),M=m.empty()?g.from()==g.head:m.from()==m.head;h<=s&&--s,t.splice(--h,2,new _t(M?z:C,M?C:z))}}return new mn(t,s)}function so(e,t){return new mn([new _t(e,t||e)],0)}function lo(e){return e.text?ie(e.from.line+e.text.length-1,Xe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Sn(e,t){if(w(e,t.from)<0)return e;if(w(e,t.to)<=0)return lo(t);var s=e.line+t.text.length-(t.to.line-t.from.line)-1,a=e.ch;return e.line==t.to.line&&(a+=lo(t).ch-t.to.ch),ie(s,a)}function Hu(e,t){for(var s=[],a=0;a<e.sel.ranges.length;a++){var u=e.sel.ranges[a];s.push(new _t(Sn(u.anchor,t),Sn(u.head,t)))}return Ir(e.cm,s,e.sel.primIndex)}function _c(e,t,s){return e.line==t.line?ie(s.line,e.ch-t.ch+s.ch):ie(s.line+(e.line-t.line),e.ch)}function Af(e,t,s){for(var a=[],u=ie(e.first,0),h=u,g=0;g<t.length;g++){var m=t[g],y=_c(m.from,u,h),C=_c(lo(m),u,h);if(u=m.to,h=C,s=="around"){var z=e.sel.ranges[g],M=w(z.head,z.anchor)<0;a[g]=new _t(M?C:y,M?y:C)}else a[g]=new _t(y,y)}return new mn(a,e.sel.primIndex)}function Bu(e){e.doc.mode=va(e.options,e.doc.modeOption),Ls(e)}function Ls(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ci(e,100),e.state.modeGen++,e.curOp&&rt(e)}function Fu(e,t){return t.from.ch==0&&t.to.ch==0&&Xe(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function _l(e,t,s,a){function u(Ce){return s?s[Ce]:null}function h(Ce,de,xe){tc(Ce,de,xe,a),hr(Ce,"change",Ce,t)}function g(Ce,de){for(var xe=[],Re=Ce;Re<de;++Re)xe.push(new Tr(C[Re],u(Re),a));return xe}var m=t.from,y=t.to,C=t.text,z=ke(e,m.line),M=ke(e,y.line),N=Xe(C),R=u(C.length-1),Z=y.line-m.line;if(t.full)e.insert(0,g(0,C.length)),e.remove(C.length,e.size-C.length);else if(Fu(e,t)){var J=g(0,C.length-1);h(M,M.text,R),Z&&e.remove(m.line,Z),J.length&&e.insert(m.line,J)}else if(z==M)if(C.length==1)h(z,z.text.slice(0,m.ch)+N+z.text.slice(y.ch),R);else{var le=g(1,C.length-1);le.push(new Tr(N+z.text.slice(y.ch),R,a)),h(z,z.text.slice(0,m.ch)+C[0],u(0)),e.insert(m.line+1,le)}else if(C.length==1)h(z,z.text.slice(0,m.ch)+C[0]+M.text.slice(y.ch),u(0)),e.remove(m.line+1,Z);else{h(z,z.text.slice(0,m.ch)+C[0],u(0)),h(M,N+M.text.slice(y.ch),R);var fe=g(1,C.length-1);Z>1&&e.remove(m.line+1,Z-1),e.insert(m.line+1,fe)}hr(e,"change",e,t)}function uo(e,t,s){function a(u,h,g){if(u.linked)for(var m=0;m<u.linked.length;++m){var y=u.linked[m];if(y.doc!=h){var C=g&&y.sharedHist;s&&!C||(t(y.doc,C),a(y.doc,u,C))}}}a(e,null,!0)}function zc(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Ji(e),Bu(e),zl(e),e.options.direction=t.direction,e.options.lineWrapping||ds(e),e.options.mode=t.modeOption,rt(e)}function zl(e){(e.doc.direction=="rtl"?At:ye)(e.display.lineDiv,"CodeMirror-rtl")}function _s(e){Ar(e,function(){zl(e),rt(e)})}function Uo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Wu(e,t){var s={from:j(t.from),to:lo(t),text:vn(e,t.from,t.to)};return Sc(e,s,t.from.line,t.to.line+1),uo(e,function(a){return Sc(a,s,t.from.line,t.to.line+1)},!0),s}function Uu(e){for(;e.length;){var t=Xe(e);if(t.ranges)e.pop();else break}}function Ef(e,t){if(t)return Uu(e.done),Xe(e.done);if(e.done.length&&!Xe(e.done).ranges)return Xe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Xe(e.done)}function di(e,t,s,a){var u=e.history;u.undone.length=0;var h=+new Date,g,m;if((u.lastOp==a||u.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&u.lastModTime>h-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(g=Ef(u,u.lastOp==a)))m=Xe(g.changes),w(t.from,t.to)==0&&w(t.from,m.to)==0?m.to=lo(t):g.changes.push(Wu(e,t));else{var y=Xe(u.done);for((!y||!y.ranges)&&en(e.sel,u.done),g={changes:[Wu(e,t)],generation:u.generation},u.done.push(g);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=h,u.lastOp=u.lastSelOp=a,u.lastOrigin=u.lastSelOrigin=t.origin,m||Ge(e,"historyAdded")}function Yu(e,t,s,a){var u=t.charAt(0);return u=="*"||u=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Yo(e,t,s,a){var u=e.history,h=a&&a.origin;s==u.lastSelOp||h&&u.lastSelOrigin==h&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==h||Yu(e,h,Xe(u.done),t))?u.done[u.done.length-1]=t:en(t,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=h,u.lastSelOp=s,a&&a.clearRedo!==!1&&Uu(u.undone)}function en(e,t){var s=Xe(t);s&&s.ranges&&s.equals(e)||t.push(e)}function Sc(e,t,s,a){var u=t["spans_"+e.id],h=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(g){g.markedSpans&&((u||(u=t["spans_"+e.id]={}))[h]=g.markedSpans),++h})}function Mc(e){if(!e)return null;for(var t,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?t||(t=e.slice(0,s)):t&&t.push(e[s]);return t?t.length?t:null:e}function kc(e,t){var s=t["spans_"+e.id];if(!s)return null;for(var a=[],u=0;u<t.text.length;++u)a.push(Mc(s[u]));return a}function Oa(e,t){var s=kc(e,t),a=Cu(e,t);if(!s)return a;if(!a)return s;for(var u=0;u<s.length;++u){var h=s[u],g=a[u];if(h&&g){e:for(var m=0;m<g.length;++m){for(var y=g[m],C=0;C<h.length;++C)if(h[C].marker==y.marker)continue e;h.push(y)}}else g&&(s[u]=g)}return s}function yn(e,t,s){for(var a=[],u=0;u<e.length;++u){var h=e[u];if(h.ranges){a.push(s?mn.prototype.deepCopy.call(h):h);continue}var g=h.changes,m=[];a.push({changes:m});for(var y=0;y<g.length;++y){var C=g[y],z=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),t)for(var M in C)(z=M.match(/^spans_(\d+)$/))&&_e(t,Number(z[1]))>-1&&(Xe(m)[M]=C[M],delete C[M])}}return a}function Sl(e,t,s,a){if(a){var u=e.anchor;if(s){var h=w(t,u)<0;h!=w(s,u)<0?(u=t,t=s):h!=w(t,s)<0&&(t=s)}return new _t(u,t)}else return new _t(s||t,t)}function Ml(e,t,s,a,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),Lr(e,new mn([Sl(e.sel.primary(),t,s,u)],0),a)}function zs(e,t,s){for(var a=[],u=e.cm&&(e.cm.display.shift||e.extend),h=0;h<e.sel.ranges.length;h++)a[h]=Sl(e.sel.ranges[h],t[h],null,u);var g=Ir(e.cm,a,e.sel.primIndex);Lr(e,g,s)}function Zu(e,t,s,a){var u=e.sel.ranges.slice(0);u[t]=s,Lr(e,Ir(e.cm,u,e.sel.primIndex),a)}function Vu(e,t,s,a){Lr(e,so(t,s),a)}function Dr(e,t,s){var a={ranges:t.ranges,update:function(u){this.ranges=[];for(var h=0;h<u.length;h++)this.ranges[h]=new _t(be(e,u[h].anchor),be(e,u[h].head))},origin:s&&s.origin};return Ge(e,"beforeSelectionChange",e,a),e.cm&&Ge(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=t.ranges?Ir(e.cm,a.ranges,a.ranges.length-1):t}function kl(e,t,s){var a=e.history.done,u=Xe(a);u&&u.ranges?(a[a.length-1]=t,Cn(e,t,s)):Lr(e,t,s)}function Lr(e,t,s){Cn(e,t,s),Yo(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function Cn(e,t,s){(wr(e,"beforeSelectionChange")||e.cm&&wr(e.cm,"beforeSelectionChange"))&&(t=Dr(e,t,s));var a=s&&s.bias||(w(t.primary().head,e.sel.primary().head)<0?-1:1);Ol(e,co(e,t,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&no(e.cm)}function Ol(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,pa(e.cm)),hr(e,"cursorActivity",e))}function Ss(e){Ol(e,co(e,e.sel,null,!1))}function co(e,t,s,a){for(var u,h=0;h<t.ranges.length;h++){var g=t.ranges[h],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[h],y=_r(e,g.anchor,m&&m.anchor,s,a),C=_r(e,g.head,m&&m.head,s,a);(u||y!=g.anchor||C!=g.head)&&(u||(u=t.ranges.slice(0,h)),u[h]=new _t(y,C))}return u?Ir(e.cm,u,t.primIndex):t}function Zo(e,t,s,a,u){var h=ke(e,t.line);if(h.markedSpans)for(var g=0;g<h.markedSpans.length;++g){var m=h.markedSpans[g],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,z="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=t.ch:m.from<t.ch))&&(m.to==null||(z?m.to>=t.ch:m.to>t.ch))){if(u&&(Ge(y,"beforeCursorEnter"),y.explicitlyCleared))if(h.markedSpans){--g;continue}else break;if(!y.atomic)continue;if(s){var M=y.find(a<0?1:-1),N=void 0;if((a<0?z:C)&&(M=Tl(e,M,-a,M&&M.line==t.line?h:null)),M&&M.line==t.line&&(N=w(M,s))&&(a<0?N<0:N>0))return Zo(e,M,t,a,u)}var R=y.find(a<0?-1:1);return(a<0?C:z)&&(R=Tl(e,R,a,R.line==t.line?h:null)),R?Zo(e,R,t,a,u):null}}return t}function _r(e,t,s,a,u){var h=a||1,g=Zo(e,t,s,h,u)||!u&&Zo(e,t,s,h,!0)||Zo(e,t,s,-h,u)||!u&&Zo(e,t,s,-h,!0);return g||(e.cantEdit=!0,ie(e.first,0))}function Tl(e,t,s,a){return s<0&&t.ch==0?t.line>e.first?be(e,ie(t.line-1)):null:s>0&&t.ch==(a||ke(e,t.line)).text.length?t.line<e.first+e.size-1?ie(t.line+1,0):null:new ie(t.line,t.ch+s)}function Oc(e){e.setSelection(ie(e.firstLine(),0),ie(e.lastLine()),at)}function Tc(e,t,s){var a={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(u,h,g,m){u&&(a.from=be(e,u)),h&&(a.to=be(e,h)),g&&(a.text=g),m!==void 0&&(a.origin=m)}),Ge(e,"beforeChange",e,a),e.cm&&Ge(e.cm,"beforeChange",e.cm,a),a.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:a.from,to:a.to,text:a.text,origin:a.origin}}function Ta(e,t,s){if(e.cm){if(!e.cm.curOp)return Kt(e.cm,Ta)(e,t,s);if(e.cm.state.suppressEdits)return}if(!((wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"))&&(t=Tc(e,t,!0),!t))){var a=yu&&!s&&wu(e,t.from,t.to);if(a)for(var u=a.length-1;u>=0;--u)Pl(e,{from:a[u].from,to:a[u].to,text:u?[""]:t.text,origin:t.origin});else Pl(e,t)}}function Pl(e,t){if(!(t.text.length==1&&t.text[0]==""&&w(t.from,t.to)==0)){var s=Hu(e,t);di(e,t,s,e.cm?e.cm.curOp.id:NaN),Aa(e,t,s,Cu(e,t));var a=[];uo(e,function(u,h){!h&&_e(a,u.history)==-1&&(Ac(u.history,t),a.push(u.history)),Aa(u,t,null,Cu(u,t))})}}function Al(e,t,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var u=e.history,h,g=e.sel,m=t=="undo"?u.done:u.undone,y=t=="undo"?u.undone:u.done,C=0;C<m.length&&(h=m[C],!(s?h.ranges&&!h.equals(e.sel):!h.ranges));C++);if(C!=m.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(h=m.pop(),h.ranges){if(en(h,y),s&&!h.equals(e.sel)){Lr(e,h,{clearRedo:!1});return}g=h}else if(a){m.push(h);return}else break;var z=[];en(g,y),y.push({changes:z,generation:u.generation}),u.generation=h.generation||++u.maxGeneration;for(var M=wr(e,"beforeChange")||e.cm&&wr(e.cm,"beforeChange"),N=function(J){var le=h.changes[J];if(le.origin=t,M&&!Tc(e,le,!1))return m.length=0,{};z.push(Wu(e,le));var fe=J?Hu(e,le):Xe(m);Aa(e,le,fe,Oa(e,le)),!J&&e.cm&&e.cm.scrollIntoView({from:le.from,to:lo(le)});var Ce=[];uo(e,function(de,xe){!xe&&_e(Ce,de.history)==-1&&(Ac(de.history,le),Ce.push(de.history)),Aa(de,le,null,Oa(de,le))})},R=h.changes.length-1;R>=0;--R){var Z=N(R);if(Z)return Z.v}}}}function Pa(e,t){if(t!=0&&(e.first+=t,e.sel=new mn(yt(e.sel.ranges,function(u){return new _t(ie(u.anchor.line+t,u.anchor.ch),ie(u.head.line+t,u.head.ch))}),e.sel.primIndex),e.cm)){rt(e.cm,e.first,e.first-t,t);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)eo(e.cm,a,"gutter")}}function Aa(e,t,s,a){if(e.cm&&!e.cm.curOp)return Kt(e.cm,Aa)(e,t,s,a);if(t.to.line<e.first){Pa(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var u=t.text.length-1-(e.first-t.from.line);Pa(e,u),t={from:ie(e.first,0),to:ie(t.to.line+u,t.to.ch),text:[Xe(t.text)],origin:t.origin}}var h=e.lastLine();t.to.line>h&&(t={from:t.from,to:ie(h,ke(e,h).text.length),text:[t.text[0]],origin:t.origin}),t.removed=vn(e,t.from,t.to),s||(s=Hu(e,t)),e.cm?If(e.cm,t,a):_l(e,t,a),Cn(e,s,at),e.cantEdit&&_r(e,ie(e.firstLine(),0))&&(e.cantEdit=!1)}}function If(e,t,s){var a=e.doc,u=e.display,h=t.from,g=t.to,m=!1,y=h.line;e.options.lineWrapping||(y=Lt(oi(ke(a,h.line))),a.iter(y,g.line+1,function(R){if(R==u.maxLine)return m=!0,!0})),a.sel.contains(t.from,t.to)>-1&&pa(e),_l(a,t,s,gc(e)),e.options.lineWrapping||(a.iter(y,h.line+t.text.length,function(R){var Z=fs(R);Z>u.maxLineLength&&(u.maxLine=R,u.maxLineLength=Z,u.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),nf(a,h.line),ci(e,400);var C=t.text.length-(g.line-h.line)-1;t.full?rt(e):h.line==g.line&&t.text.length==1&&!Fu(e.doc,t)?eo(e,h.line,"text"):rt(e,h.line,g.line+1,C);var z=wr(e,"changes"),M=wr(e,"change");if(M||z){var N={from:h,to:g,text:t.text,removed:t.removed,origin:t.origin};M&&hr(e,"change",e,N),z&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(N)}e.display.selForContextMenu=null}function Ea(e,t,s,a,u){var h;a||(a=s),w(a,s)<0&&(h=[a,s],s=h[0],a=h[1]),typeof t=="string"&&(t=e.splitLines(t)),Ta(e,{from:s,to:a,text:t,origin:u})}function Ia(e,t,s,a){s<e.line?e.line+=a:t<e.line&&(e.line=t,e.ch=0)}function Pc(e,t,s,a){for(var u=0;u<e.length;++u){var h=e[u],g=!0;if(h.ranges){h.copied||(h=e[u]=h.deepCopy(),h.copied=!0);for(var m=0;m<h.ranges.length;m++)Ia(h.ranges[m].anchor,t,s,a),Ia(h.ranges[m].head,t,s,a);continue}for(var y=0;y<h.changes.length;++y){var C=h.changes[y];if(s<C.from.line)C.from=ie(C.from.line+a,C.from.ch),C.to=ie(C.to.line+a,C.to.ch);else if(t<=C.to.line){g=!1;break}}g||(e.splice(0,u+1),u=0)}}function Ac(e,t){var s=t.from.line,a=t.to.line,u=t.text.length-(a-s)-1;Pc(e.done,s,a,u),Pc(e.undone,s,a,u)}function Vo(e,t,s,a){var u=t,h=t;return typeof t=="number"?h=ke(e,vt(e,t)):u=Lt(t),u==null?null:(a(h,u)&&e.cm&&eo(e.cm,u,s),h)}function Da(e){this.lines=e,this.parent=null;for(var t=0,s=0;s<e.length;++s)e[s].parent=this,t+=e[s].height;this.height=t}Da.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var s=e,a=e+t;s<a;++s){var u=this.lines[s];this.height-=u.height,rc(u),hr(u,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var a=0;a<t.length;++a)t[a].parent=this},iterN:function(e,t,s){for(var a=e+t;e<a;++e)if(s(this.lines[e]))return!0}};function Ms(e){this.children=e;for(var t=0,s=0,a=0;a<e.length;++a){var u=e[a];t+=u.chunkSize(),s+=u.height,u.parent=this}this.size=t,this.height=s,this.parent=null}Ms.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var s=0;s<this.children.length;++s){var a=this.children[s],u=a.chunkSize();if(e<u){var h=Math.min(t,u-e),g=a.height;if(a.removeInner(e,h),this.height-=g-a.height,u==h&&(this.children.splice(s--,1),a.parent=null),(t-=h)==0)break;e=0}else e-=u}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Da))){var m=[];this.collapse(m),this.children=[new Da(m)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,s){this.size+=t.length,this.height+=s;for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<=h){if(u.insertInner(e,t,s),u.lines&&u.lines.length>50){for(var g=u.lines.length%25+25,m=g;m<u.lines.length;){var y=new Da(u.lines.slice(m,m+=25));u.height-=y.height,this.children.splice(++a,0,y),y.parent=this}u.lines=u.lines.slice(0,g),this.maybeSpill()}break}e-=h}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),s=new Ms(t);if(e.parent){e.size-=s.size,e.height-=s.height;var u=_e(e.parent.children,e);e.parent.children.splice(u+1,0,s)}else{var a=new Ms(e.children);a.parent=e,e.children=[a,s],e=a}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,s){for(var a=0;a<this.children.length;++a){var u=this.children[a],h=u.chunkSize();if(e<h){var g=Math.min(t,h-e);if(u.iterN(e,g,s))return!0;if((t-=g)==0)break;e=0}else e-=h}}};var ks=function(e,t,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=t};ks.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,s=this.line,a=Lt(s);if(!(a==null||!t)){for(var u=0;u<t.length;++u)t[u]==this&&t.splice(u--,1);t.length||(s.widgets=null);var h=Do(this);nn(s,Math.max(0,s.height-h)),e&&(Ar(e,function(){Ec(e,s,-h),eo(e,a,"widget")}),hr(e,"lineWidgetCleared",e,this,a))}},ks.prototype.changed=function(){var e=this,t=this.height,s=this.doc.cm,a=this.line;this.height=null;var u=Do(this)-t;!u||(qt(this.doc,a)||nn(a,a.height+u),s&&Ar(s,function(){s.curOp.forceUpdate=!0,Ec(s,a,u),hr(s,"lineWidgetChanged",s,e,Lt(a))}))},Bn(ks);function Ec(e,t,s){Xr(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Sa(e,s)}function Ic(e,t,s,a){var u=new ks(e,s,a),h=e.cm;return h&&u.noHScroll&&(h.display.alignWidgets=!0),Vo(e,t,"widget",function(g){var m=g.widgets||(g.widgets=[]);if(u.insertAt==null?m.push(u):m.splice(Math.min(m.length,Math.max(0,u.insertAt)),0,u),u.line=g,h&&!qt(e,g)){var y=Xr(g)<e.scrollTop;nn(g,g.height+Do(u)),y&&Sa(h,u.height),h.curOp.forceUpdate=!0}return!0}),h&&hr(h,"lineWidgetAdded",h,u,typeof t=="number"?t:Lt(t)),u}var El=0,fo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++El};fo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Gn(e),wr(this,"clear")){var s=this.find();s&&hr(this,"clear",s.from,s.to)}for(var a=null,u=null,h=0;h<this.lines.length;++h){var g=this.lines[h],m=us(g.markedSpans,this);e&&!this.collapsed?eo(e,Lt(g),"text"):e&&(m.to!=null&&(u=Lt(g)),m.from!=null&&(a=Lt(g))),g.markedSpans=of(g.markedSpans,m),m.from==null&&this.collapsed&&!qt(this.doc,g)&&e&&nn(g,Qi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=oi(this.lines[y]),z=fs(C);z>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=z,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&rt(e,a,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ss(e.doc)),e&&hr(e,"markerCleared",e,this,a,u),t&&ui(e),this.parent&&this.parent.clear()}},fo.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,u=0;u<this.lines.length;++u){var h=this.lines[u],g=us(h.markedSpans,this);if(g.from!=null&&(s=ie(t?h:Lt(h),g.from),e==-1))return s;if(g.to!=null&&(a=ie(t?h:Lt(h),g.to),e==1))return a}return s&&{from:s,to:a}},fo.prototype.changed=function(){var e=this,t=this.find(-1,!0),s=this,a=this.doc.cm;!t||!a||Ar(a,function(){var u=t.line,h=Lt(t.line),g=Au(a,h);if(g&&(fc(g),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!qt(s.doc,u)&&s.height!=null){var m=s.height;s.height=null;var y=Do(s)-m;y&&nn(u,u.height+y)}hr(a,"markerChanged",a,e)})},fo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||_e(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},fo.prototype.detachLine=function(e){if(this.lines.splice(_e(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Bn(fo);function ho(e,t,s,a,u){if(a&&a.shared)return Dc(e,t,s,a,u);if(e.cm&&!e.cm.curOp)return Kt(e.cm,ho)(e,t,s,a,u);var h=new fo(e,u),g=w(t,s);if(a&&er(a,h,!1),g>0||g==0&&h.clearWhenEmpty!==!1)return h;if(h.replacedWith&&(h.collapsed=!0,h.widgetNode=T("span",[h.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||h.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(h.widgetNode.insertLeft=!0)),h.collapsed){if(J0(e,t.line,t,s,h)||t.line!=s.line&&J0(e,s.line,t,s,h))throw new Error("Inserting collapsed marker partially overlapping an existing one");q0()}h.addToHistory&&di(e,{from:t,to:s,origin:"markText"},e.sel,NaN);var m=t.line,y=e.cm,C;if(e.iter(m,s.line+1,function(M){y&&h.collapsed&&!y.options.lineWrapping&&oi(M)==y.display.maxLine&&(C=!0),h.collapsed&&m!=t.line&&nn(M,0),j0(M,new ol(h,m==t.line?t.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),h.collapsed&&e.iter(t.line,s.line+1,function(M){qt(e,M)&&nn(M,0)}),h.clearOnEnter&&$e(h,"beforeCursorEnter",function(){return h.clear()}),h.readOnly&&(G0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),h.collapsed&&(h.id=++El,h.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),h.collapsed)rt(y,t.line,s.line+1);else if(h.className||h.startStyle||h.endStyle||h.css||h.attributes||h.title)for(var z=t.line;z<=s.line;z++)eo(y,z,"text");h.atomic&&Ss(y.doc),hr(y,"markerAdded",y,h)}return h}var Ra=function(e,t){this.markers=e,this.primary=t;for(var s=0;s<e.length;++s)e[s].parent=this};Ra.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();hr(this,"clear")}},Ra.prototype.find=function(e,t){return this.primary.find(e,t)},Bn(Ra);function Dc(e,t,s,a,u){a=er(a),a.shared=!1;var h=[ho(e,t,s,a,u)],g=h[0],m=a.widgetNode;return uo(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),h.push(ho(y,be(y,t),be(y,s),a,u));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;g=Xe(h)}),new Ra(h,g)}function Gu(e){return e.findMarks(ie(e.first,0),e.clipPos(ie(e.lastLine())),function(t){return t.parent})}function Il(e,t){for(var s=0;s<t.length;s++){var a=t[s],u=a.find(),h=e.clipPos(u.from),g=e.clipPos(u.to);if(w(h,g)){var m=ho(e,h,g,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function Df(e){for(var t=function(a){var u=e[a],h=[u.primary.doc];uo(u.primary.doc,function(y){return h.push(y)});for(var g=0;g<u.markers.length;g++){var m=u.markers[g];_e(h,m.doc)==-1&&(m.parent=null,u.markers.splice(g--,1))}},s=0;s<e.length;s++)t(s)}var Rc=0,Br=function(e,t,s,a,u){if(!(this instanceof Br))return new Br(e,t,s,a,u);s==null&&(s=0),Ms.call(this,[new Da([new Tr("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var h=ie(s,0);this.sel=so(h),this.history=new Uo(null),this.id=++Rc,this.modeOption=t,this.lineSep=a,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),_l(this,{from:h,to:h,text:e}),Lr(this,so(h),at)};Br.prototype=rn(Ms.prototype,{constructor:Br,iter:function(e,t,s){s?this.iterN(e-this.first,t-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var s=0,a=0;a<t.length;++a)s+=t[a].height;this.insertInner(e-this.first,t,s)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ss(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:L(function(e){var t=ie(this.first,0),s=this.first+this.size-1;Ta(this,{from:t,to:ie(s,ke(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ms(this.cm,0,0),Lr(this,so(t),at)}),replaceRange:function(e,t,s,a){t=be(this,t),s=s?be(this,s):t,Ea(this,e,t,s,a)},getRange:function(e,t,s){var a=vn(this,be(this,e),be(this,t));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Vi(this,e))return ke(this,e)},getLineNumber:function(e){return Lt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ke(this,e)),oi(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return be(this,e)},getCursor:function(e){var t=this.sel.primary(),s;return e==null||e=="head"?s=t.head:e=="anchor"?s=t.anchor:e=="end"||e=="to"||e===!1?s=t.to():s=t.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:L(function(e,t,s){Vu(this,be(this,typeof e=="number"?ie(e,t||0):e),null,s)}),setSelection:L(function(e,t,s){Vu(this,be(this,e),be(this,t||e),s)}),extendSelection:L(function(e,t,s){Ml(this,be(this,e),t&&be(this,t),s)}),extendSelections:L(function(e,t){zs(this,on(this,e),t)}),extendSelectionsBy:L(function(e,t){var s=yt(this.sel.ranges,e);zs(this,on(this,s),t)}),setSelections:L(function(e,t,s){if(!!e.length){for(var a=[],u=0;u<e.length;u++)a[u]=new _t(be(this,e[u].anchor),be(this,e[u].head||e[u].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Lr(this,Ir(this.cm,a,t),s)}}),addSelection:L(function(e,t,s){var a=this.sel.ranges.slice(0);a.push(new _t(be(this,e),be(this,t||e))),Lr(this,Ir(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var t=this.sel.ranges,s,a=0;a<t.length;a++){var u=vn(this,t[a].from(),t[a].to());s=s?s.concat(u):u}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],s=this.sel.ranges,a=0;a<s.length;a++){var u=vn(this,s[a].from(),s[a].to());e!==!1&&(u=u.join(e||this.lineSeparator())),t[a]=u}return t},replaceSelection:function(e,t,s){for(var a=[],u=0;u<this.sel.ranges.length;u++)a[u]=e;this.replaceSelections(a,t,s||"+input")},replaceSelections:L(function(e,t,s){for(var a=[],u=this.sel,h=0;h<u.ranges.length;h++){var g=u.ranges[h];a[h]={from:g.from(),to:g.to(),text:this.splitLines(e[h]),origin:s}}for(var m=t&&t!="end"&&Af(this,a,t),y=a.length-1;y>=0;y--)Ta(this,a[y]);m?kl(this,m):this.cm&&no(this.cm)}),undo:L(function(){Al(this,"undo")}),redo:L(function(){Al(this,"redo")}),undoSelection:L(function(){Al(this,"undo",!0)}),redoSelection:L(function(){Al(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++t;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++s;return{undo:t,redo:s}},clearHistory:function(){var e=this;this.history=new Uo(this.history),uo(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:yn(this.history.done),undone:yn(this.history.undone)}},setHistory:function(e){var t=this.history=new Uo(this.history);t.done=yn(e.done.slice(0),null,!0),t.undone=yn(e.undone.slice(0),null,!0)},setGutterMarker:L(function(e,t,s){return Vo(this,e,"gutter",function(a){var u=a.gutterMarkers||(a.gutterMarkers={});return u[t]=s,!s&&oe(u)&&(a.gutterMarkers=null),!0})}),clearGutter:L(function(e){var t=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Vo(t,s,"gutter",function(){return s.gutterMarkers[e]=null,oe(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Vi(this,e)||(t=e,e=ke(this,e),!e))return null}else if(t=Lt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:L(function(e,t,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!a[u])a[u]=s;else{if(ge(s).test(a[u]))return!1;a[u]+=" "+s}return!0})}),removeLineClass:L(function(e,t,s){return Vo(this,e,t=="gutter"?"gutter":"class",function(a){var u=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",h=a[u];if(h)if(s==null)a[u]=null;else{var g=h.match(ge(s));if(!g)return!1;var m=g.index+g[0].length;a[u]=h.slice(0,g.index)+(!g.index||m==h.length?"":" ")+h.slice(m)||null}else return!1;return!0})}),addLineWidget:L(function(e,t,s){return Ic(this,e,t,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,s){return ho(this,be(this,e),be(this,t),s,s&&s.type||"range")},setBookmark:function(e,t){var s={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=be(this,e),ho(this,e,e,s,"bookmark")},findMarksAt:function(e){e=be(this,e);var t=[],s=ke(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var u=s[a];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&t.push(u.marker.parent||u.marker)}return t},findMarks:function(e,t,s){e=be(this,e),t=be(this,t);var a=[],u=e.line;return this.iter(e.line,t.line+1,function(h){var g=h.markedSpans;if(g)for(var m=0;m<g.length;m++){var y=g[m];!(y.to!=null&&u==e.line&&e.ch>=y.to||y.from==null&&u!=e.line||y.from!=null&&u==t.line&&y.from>=t.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++u}),a},getAllMarks:function(){var e=[];return this.iter(function(t){var s=t.markedSpans;if(s)for(var a=0;a<s.length;++a)s[a].from!=null&&e.push(s[a].marker)}),e},posFromIndex:function(e){var t,s=this.first,a=this.lineSeparator().length;return this.iter(function(u){var h=u.text.length+a;if(h>e)return t=e,!0;e-=h,++s}),be(this,ie(s,t))},indexFromPos:function(e){e=be(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(a){t+=a.text.length+s}),t},copy:function(e){var t=new Br(ss(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,s=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Br(ss(this,t,s),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(a.history=this.history),(this.linked||(this.linked=[])).push({doc:a,sharedHist:e.sharedHist}),a.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Il(a,Gu(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var s=this.linked[t];if(s.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Df(Gu(this));break}}if(e.history==this.history){var a=[e.id];uo(e,function(u){return a.push(u.id)},!0),e.history=new Uo(null),e.history.done=yn(this.history.done,a),e.history.undone=yn(this.history.undone,a)}},iterLinkedDocs:function(e){uo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):To(e)},lineSeparator:function(){return this.lineSep||`
2128
+ `},setDirection:L(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&_s(this.cm))})}),Br.prototype.eachLine=Br.prototype.iter;var Nc=0;function $c(e){var t=this;if(ju(t),!(ir(t,e)||zi(t.display,e))){xr(e),S&&(Nc=+new Date);var s=si(t,e,!0),a=e.dataTransfer.files;if(!(!s||t.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var u=a.length,h=Array(u),g=0,m=function(){++g==u&&Kt(t,function(){s=be(t.doc,s);var R={from:s,to:s,text:t.doc.splitLines(h.filter(function(Z){return Z!=null}).join(t.doc.lineSeparator())),origin:"paste"};Ta(t.doc,R),kl(t.doc,so(be(t.doc,s),be(t.doc,lo(R))))})()},y=function(R,Z){if(t.options.allowDropFileTypes&&_e(t.options.allowDropFileTypes,R.type)==-1){m();return}var J=new FileReader;J.onerror=function(){return m()},J.onload=function(){var le=J.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(le)){m();return}h[Z]=le,m()},J.readAsText(R)},C=0;C<a.length;C++)y(a[C],C);else{if(t.state.draggingText&&t.doc.sel.contains(s)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var z=e.dataTransfer.getData("Text");if(z){var M;if(t.state.draggingText&&!t.state.draggingText.copy&&(M=t.listSelections()),Cn(t.doc,so(s,s)),M)for(var N=0;N<M.length;++N)Ea(t.doc,"",M[N].anchor,M[N].head,"drag");t.replaceSelection(z,"around","paste"),t.display.input.focus()}}catch{}}}}function Rf(e,t){if(S&&(!e.state.draggingText||+new Date-Nc<100)){ko(t);return}if(!(ir(e,t)||zi(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ce)){var s=E("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",X&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),t.dataTransfer.setDragImage(s,0,0),X&&s.parentNode.removeChild(s)}}function qu(e,t){var s=si(e,t);if(!!s){var a=document.createDocumentFragment();Mi(e,s,a),e.display.dragCursor||(e.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),W(e.display.dragCursor,a)}}function ju(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Dl(e){if(!!document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<t.length;a++){var u=t[a].CodeMirror;u&&s.push(u)}s.length&&s[0].operation(function(){for(var h=0;h<s.length;h++)e(s[h])})}}var Hc=!1;function Ku(){Hc||(ft(),Hc=!0)}function ft(){var e;$e(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Dl(Nf)},100))}),$e(window,"blur",function(){return Dl(Ho)})}function Nf(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var po={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"},ki=0;ki<10;ki++)po[ki+48]=po[ki+96]=String(ki);for(var Os=65;Os<=90;Os++)po[Os]=String.fromCharCode(Os);for(var Ts=1;Ts<=12;Ts++)po[Ts+111]=po[Ts+63235]="F"+Ts;var Oi={};Oi.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"},Oi.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"},Oi.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"},Oi.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"]},Oi.default=he?Oi.macDefault:Oi.pcDefault;function Mn(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var s,a,u,h,g=0;g<t.length-1;g++){var m=t[g];if(/^(cmd|meta|m)$/i.test(m))h=!0;else if(/^a(lt)?$/i.test(m))s=!0;else if(/^(c|ctrl|control)$/i.test(m))a=!0;else if(/^s(hift)?$/i.test(m))u=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),h&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function $f(e){var t={};for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(a=="..."){delete e[s];continue}for(var u=yt(s.split(" "),Mn),h=0;h<u.length;h++){var g=void 0,m=void 0;h==u.length-1?(m=u.join(" "),g=a):(m=u.slice(0,h+1).join(" "),g="...");var y=t[m];if(!y)t[m]=g;else if(y!=g)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in t)e[C]=t[C];return e}function Ti(e,t,s,a){t=Fr(t);var u=t.call?t.call(e,a):t[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&s(u))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Ti(e,t.fallthrough,s,a);for(var h=0;h<t.fallthrough.length;h++){var g=Ti(e,t.fallthrough[h],s,a);if(g)return g}}}function Rl(e){var t=typeof e=="string"?e:po[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Xu(e,t,s){var a=e;return t.altKey&&a!="Alt"&&(e="Alt-"+e),(et?t.metaKey:t.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(et?t.ctrlKey:t.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&t.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function Qu(e,t){if(X&&e.keyCode==34&&e.char)return!1;var s=po[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),Xu(s,e,t))}function Fr(e){return typeof e=="string"?Oi[e]:e}function wn(e,t){for(var s=e.doc.sel.ranges,a=[],u=0;u<s.length;u++){for(var h=t(s[u]);a.length&&w(h.from,Xe(a).to)<=0;){var g=a.pop();if(w(g.from,h.from)<0){h.from=g.from;break}}a.push(h)}Ar(e,function(){for(var m=a.length-1;m>=0;m--)Ea(e.doc,"",a[m].from,a[m].to,"+delete");no(e)})}function Ps(e,t,s){var a=dr(e.text,t+s,s);return a<0||a>e.text.length?null:a}function Nl(e,t,s){var a=Ps(e,t.ch,s);return a==null?null:new ie(t.line,a,s<0?"after":"before")}function Na(e,t,s,a,u){if(e){t.doc.direction=="rtl"&&(u=-u);var h=Hr(s,t.doc.direction);if(h){var g=u<0?Xe(h):h[0],m=u<0==(g.level==1),y=m?"after":"before",C;if(g.level>0||t.doc.direction=="rtl"){var z=Zn(t,s);C=u<0?s.text.length-1:0;var M=ai(t,z,C).top;C=Mr(function(N){return ai(t,z,N).top==M},u<0==(g.level==1)?g.from:g.to-1,C),y=="before"&&(C=Ps(s,C,1))}else C=u<0?g.to:g.from;return new ie(a,C,y)}}return new ie(a,u<0?s.text.length:0,u<0?"before":"after")}function Bc(e,t,s,a){var u=Hr(t,e.doc.direction);if(!u)return Nl(t,s,a);s.ch>=t.text.length?(s.ch=t.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var h=Zt(u,s.ch,s.sticky),g=u[h];if(e.doc.direction=="ltr"&&g.level%2==0&&(a>0?g.to>s.ch:g.from<s.ch))return Nl(t,s,a);var m=function(fe,Ce){return Ps(t,fe instanceof ie?fe.ch:fe,Ce)},y,C=function(fe){return e.options.lineWrapping?(y=y||Zn(e,t),Y(e,t,y,fe)):{begin:0,end:t.text.length}},z=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||g.level==1){var M=g.level==1==a<0,N=m(s,M?1:-1);if(N!=null&&(M?N<=g.to&&N<=z.end:N>=g.from&&N>=z.begin)){var R=M?"before":"after";return new ie(s.line,N,R)}}var Z=function(fe,Ce,de){for(var xe=function(Ot,ur){return ur?new ie(s.line,m(Ot,1),"before"):new ie(s.line,Ot,"after")};fe>=0&&fe<u.length;fe+=Ce){var Re=u[fe],Pe=Ce>0==(Re.level!=1),lt=Pe?de.begin:m(de.end,-1);if(Re.from<=lt&&lt<Re.to||(lt=Pe?Re.from:m(Re.to,-1),de.begin<=lt&&lt<de.end))return xe(lt,Pe)}},J=Z(h+a,a,z);if(J)return J;var le=a>0?z.end:m(z.begin,-1);return le!=null&&!(a>0&&le==t.text.length)&&(J=Z(a>0?0:u.length-1,a,C(le)),J)?J:null}var Go={selectAll:Oc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),at)},killLine:function(e){return wn(e,function(t){if(t.empty()){var s=ke(e.doc,t.head.line).text.length;return t.head.ch==s&&t.head.line<e.lastLine()?{from:t.head,to:ie(t.head.line+1,0)}:{from:t.head,to:ie(t.head.line,s)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:be(e.doc,ie(t.to().line+1,0))}})},delLineLeft:function(e){return wn(e,function(t){return{from:ie(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:t.from()}})},delWrappedLineRight:function(e){return wn(e,function(t){var s=e.charCoords(t.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:t.from(),to:a}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ie(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ie(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Ju(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return $l(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return e0(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},We)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},We)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var s=e.cursorCoords(t.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?$l(e,t.head):a},We)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],s=e.listSelections(),a=e.options.tabSize,u=0;u<s.length;u++){var h=s[u].from(),g=Ft(e.getLine(h.line),h.ch,a);t.push(lr(a-g%a))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=[],a=0;a<t.length;a++)if(!!t[a].empty()){var u=t[a].head,h=ke(e.doc,u.line).text;if(h){if(u.ch==h.length&&(u=new ie(u.line,u.ch-1)),u.ch>0)u=new ie(u.line,u.ch+1),e.replaceRange(h.charAt(u.ch-1)+h.charAt(u.ch-2),ie(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var g=ke(e.doc,u.line-1).text;g&&(u=new ie(u.line,1),e.replaceRange(h.charAt(0)+e.doc.lineSeparator()+g.charAt(g.length-1),ie(u.line-1,g.length-1),u,"+transpose"))}}s.push(new _t(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var t=e.listSelections(),s=t.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),t[s].anchor,t[s].head,"+input");t=e.listSelections();for(var a=0;a<t.length;a++)e.indentLine(t[a].from().line,null,!0);no(e)})},openLine:function(e){return e.replaceSelection(`
2129
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ju(e,t){var s=ke(e.doc,t),a=oi(s);return a!=s&&(t=Lt(a)),Na(!0,e,a,t,1)}function e0(e,t){var s=ke(e.doc,t),a=uf(s);return a!=s&&(t=Lt(a)),Na(!0,e,s,t,-1)}function $l(e,t){var s=Ju(e,t.line),a=ke(e.doc,s.line),u=Hr(a,e.doc.direction);if(!u||u[0].level==0){var h=Math.max(s.ch,a.text.search(/\S/)),g=t.line==s.line&&t.ch<=h&&t.ch;return ie(s.line,g?0:h,s.sticky)}return s}function qn(e,t,s){if(typeof t=="string"&&(t=Go[t],!t))return!1;e.display.input.ensurePolled();var a=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),u=t(e)!=Ze}finally{e.display.shift=a,e.state.suppressEdits=!1}return u}function Hf(e,t,s){for(var a=0;a<e.state.keyMaps.length;a++){var u=Ti(t,e.state.keyMaps[a],s,e);if(u)return u}return e.options.extraKeys&&Ti(t,e.options.extraKeys,s,e)||Ti(t,e.options.keyMap,s,e)}var go=new ut;function $a(e,t,s,a){var u=e.state.keySeq;if(u){if(Rl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:go.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),t0(e,u+" "+t,s,a))return!0}return t0(e,t,s,a)}function t0(e,t,s,a){var u=Hf(e,t,a);return u=="multi"&&(e.state.keySeq=t),u=="handled"&&hr(e,"keyHandled",e,t,s),(u=="handled"||u=="multi")&&(xr(s),La(e)),!!u}function Hl(e,t){var s=Qu(t,!0);return s?t.shiftKey&&!e.state.keySeq?$a(e,"Shift-"+s,t,function(a){return qn(e,a,!0)})||$a(e,s,t,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return qn(e,a)}):$a(e,s,t,function(a){return qn(e,a)}):!1}function Bf(e,t,s){return $a(e,"'"+s+"'",t,function(a){return qn(e,a,!0)})}var r0=null;function Fc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=ot(),!ir(t,e))){S&&O<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;t.display.shift=s==16||e.shiftKey;var a=Hl(t,e);X&&(r0=a?s:null,!a&&s==88&&!el&&(he?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),f&&!he&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Wc(t)}}function Wc(e){var t=e.display.lineDiv;At(t,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(ye(t,"CodeMirror-crosshair"),kr(document,"keyup",s),kr(document,"mouseover",s))}$e(document,"keyup",s),$e(document,"mouseover",s)}function n0(e){e.keyCode==16&&(this.doc.sel.shift=!1),ir(this,e)}function Uc(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(zi(t.display,e)||ir(t,e)||e.ctrlKey&&!e.altKey||he&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(X&&s==r0){r0=null,xr(e);return}if(!(X&&(!e.which||e.which<10)&&Hl(t,e))){var u=String.fromCharCode(a==null?s:a);u!="\b"&&(Bf(t,e,u)||t.display.input.onKeyPress(e))}}}var Yc=400,Bl=function(e,t,s){this.time=e,this.pos=t,this.button=s};Bl.prototype.compare=function(e,t,s){return this.time+Yc>e&&w(t,this.pos)==0&&s==this.button};var zr,ln;function Ff(e,t){var s=+new Date;return ln&&ln.compare(s,e,t)?(zr=ln=null,"triple"):zr&&zr.compare(s,e,t)?(ln=new Bl(s,e,t),zr=null,"double"):(zr=new Bl(s,e,t),ln=null,"single")}function Zc(e){var t=this,s=t.display;if(!(ir(t,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,zi(s,e)){I||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!i0(t,e)){var a=si(t,e),u=rs(e),h=a?Ff(a,u):"single";window.focus(),u==1&&t.state.selectingText&&t.state.selectingText(e),!(a&&Fl(t,u,a,h,e))&&(u==1?a?Vc(t,a,h,e):Yi(e)==s.scroller&&xr(e):u==2?(a&&Ml(t.doc,a),setTimeout(function(){return s.input.focus()},20)):u==3&&(nt?t.display.input.onContextMenu(e):yl(t)))}}}function Fl(e,t,s,a,u){var h="Click";return a=="double"?h="Double"+h:a=="triple"&&(h="Triple"+h),h=(t==1?"Left":t==2?"Middle":"Right")+h,$a(e,Xu(h,u),u,function(g){if(typeof g=="string"&&(g=Go[g]),!g)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=g(e,s)!=Ze}finally{e.state.suppressEdits=!1}return m})}function Ha(e,t,s){var a=e.getOption("configureMouse"),u=a?a(e,t,s):{};if(u.unit==null){var h=Te?s.shiftKey&&s.metaKey:s.altKey;u.unit=h?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=he?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(he?s.altKey:s.ctrlKey)),u}function Vc(e,t,s,a){S?setTimeout(dn(Eu,e),0):e.curOp.focus=ot();var u=Ha(e,s,a),h=e.doc.sel,g;e.options.dragDrop&&ns&&!e.isReadOnly()&&s=="single"&&(g=h.contains(t))>-1&&(w((g=h.ranges[g]).from(),t)<0||t.xRel>0)&&(w(g.to(),t)>0||t.xRel<0)?Gc(e,a,t,u):jc(e,a,t,u)}function Gc(e,t,s,a){var u=e.display,h=!1,g=Kt(e,function(C){I&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:yl(e)),kr(u.wrapper.ownerDocument,"mouseup",g),kr(u.wrapper.ownerDocument,"mousemove",m),kr(u.scroller,"dragstart",y),kr(u.scroller,"drop",g),h||(xr(C),a.addNew||Ml(e.doc,s,null,null,a.extend),I&&!ce||S&&O==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),m=function(C){h=h||Math.abs(t.clientX-C.clientX)+Math.abs(t.clientY-C.clientY)>=10},y=function(){return h=!0};I&&(u.scroller.draggable=!0),e.state.draggingText=g,g.copy=!a.moveOnDrag,$e(u.wrapper.ownerDocument,"mouseup",g),$e(u.wrapper.ownerDocument,"mousemove",m),$e(u.scroller,"dragstart",y),$e(u.scroller,"drop",g),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function qc(e,t,s){if(s=="char")return new _t(t,t);if(s=="word")return e.findWordAt(t);if(s=="line")return new _t(ie(t.line,0),be(e.doc,ie(t.line+1,0)));var a=s(e,t);return new _t(a.from,a.to)}function jc(e,t,s,a){S&&yl(e);var u=e.display,h=e.doc;xr(t);var g,m,y=h.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=h.sel.contains(s),m>-1?g=C[m]:g=new _t(s,s)):(g=h.sel.primary(),m=h.sel.primIndex),a.unit=="rectangle")a.addNew||(g=new _t(s,s)),s=si(e,t,!0,!0),m=-1;else{var z=qc(e,s,a.unit);a.extend?g=Sl(g,z.anchor,z.head,a.extend):g=z}a.addNew?m==-1?(m=C.length,Lr(h,Ir(e,C.concat([g]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(Lr(h,Ir(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=h.sel):Zu(h,m,g,st):(m=0,Lr(h,new mn([g],0),st),y=h.sel);var M=s;function N(de){if(w(M,de)!=0)if(M=de,a.unit=="rectangle"){for(var xe=[],Re=e.options.tabSize,Pe=Ft(ke(h,s.line).text,s.ch,Re),lt=Ft(ke(h,de.line).text,de.ch,Re),Ot=Math.min(Pe,lt),ur=Math.max(Pe,lt),Rt=Math.min(s.line,de.line),Ur=Math.min(e.lastLine(),Math.max(s.line,de.line));Rt<=Ur;Rt++){var Yr=ke(h,Rt).text,rr=Gt(Yr,Ot,Re);Ot==ur?xe.push(new _t(ie(Rt,rr),ie(Rt,rr))):Yr.length>rr&&xe.push(new _t(ie(Rt,rr),ie(Rt,Gt(Yr,ur,Re))))}xe.length||xe.push(new _t(s,s)),Lr(h,Ir(e,y.ranges.slice(0,m).concat(xe),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(de)}else{var Sr=g,gr=qc(e,de,a.unit),It=Sr.anchor,Ht;w(gr.anchor,It)>0?(Ht=gr.head,It=qe(Sr.from(),gr.anchor)):(Ht=gr.anchor,It=ae(Sr.to(),gr.head));var Xt=y.ranges.slice(0);Xt[m]=Ba(e,new _t(be(h,It),Ht)),Lr(h,Ir(e,Xt,m),st)}}var R=u.wrapper.getBoundingClientRect(),Z=0;function J(de){var xe=++Z,Re=si(e,de,!0,a.unit=="rectangle");if(!!Re)if(w(Re,M)!=0){e.curOp.focus=ot(),N(Re);var Pe=Bo(u,h);(Re.line>=Pe.to||Re.line<Pe.from)&&setTimeout(Kt(e,function(){Z==xe&&J(de)}),150)}else{var lt=de.clientY<R.top?-20:de.clientY>R.bottom?20:0;lt&&setTimeout(Kt(e,function(){Z==xe&&(u.scroller.scrollTop+=lt,J(de))}),50)}}function le(de){e.state.selectingText=!1,Z=1/0,de&&(xr(de),u.input.focus()),kr(u.wrapper.ownerDocument,"mousemove",fe),kr(u.wrapper.ownerDocument,"mouseup",Ce),h.history.lastSelOrigin=null}var fe=Kt(e,function(de){de.buttons===0||!rs(de)?le(de):J(de)}),Ce=Kt(e,le);e.state.selectingText=Ce,$e(u.wrapper.ownerDocument,"mousemove",fe),$e(u.wrapper.ownerDocument,"mouseup",Ce)}function Ba(e,t){var s=t.anchor,a=t.head,u=ke(e.doc,s.line);if(w(s,a)==0&&s.sticky==a.sticky)return t;var h=Hr(u);if(!h)return t;var g=Zt(h,s.ch,s.sticky),m=h[g];if(m.from!=s.ch&&m.to!=s.ch)return t;var y=g+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==h.length)return t;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var z=Zt(h,a.ch,a.sticky),M=z-g||(a.ch-s.ch)*(m.level==1?-1:1);z==y-1||z==y?C=M<0:C=M>0}var N=h[y+(C?-1:0)],R=C==(N.level==1),Z=R?N.from:N.to,J=R?"after":"before";return s.ch==Z&&s.sticky==J?t:new _t(new ie(s.line,Z,J),a)}function Fa(e,t,s,a){var u,h;if(t.touches)u=t.touches[0].clientX,h=t.touches[0].clientY;else try{u=t.clientX,h=t.clientY}catch{return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&xr(t);var g=e.display,m=g.lineDiv.getBoundingClientRect();if(h>m.bottom||!wr(e,s))return hn(t);h-=m.top-g.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=g.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=u){var z=Un(e.doc,h),M=e.display.gutterSpecs[y];return Ge(e,s,e,z,M.className,t),hn(t)}}}function i0(e,t){return Fa(e,t,"gutterClick",!0)}function o0(e,t){zi(e.display,t)||Kc(e,t)||ir(e,t,"contextmenu")||nt||e.display.input.onContextMenu(t)}function Kc(e,t){return wr(e,"gutterContextMenu")?Fa(e,t,"gutterContextMenu",!1):!1}function As(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gs(e)}var qo={toString:function(){return"CodeMirror.Init"}},Es={},Wa={};function Wl(e){var t=e.optionHandlers;function s(a,u,h,g){e.defaults[a]=u,h&&(t[a]=g?function(m,y,C){C!=qo&&h(m,y,C)}:h)}e.defineOption=s,e.Init=qo,s("value","",function(a,u){return a.setValue(u)},!0),s("mode",null,function(a,u){a.doc.modeOption=u,Bu(a)},!0),s("indentUnit",2,Bu,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){Ls(a),gs(a),rt(a)},!0),s("lineSeparator",null,function(a,u){if(a.doc.lineSep=u,!!u){var h=[],g=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var z=y.text.indexOf(u,C);if(z==-1)break;C=z+u.length,h.push(ie(g,z))}g++});for(var m=h.length-1;m>=0;m--)Ea(a.doc,u,h[m],ie(h[m].line,h[m].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,u,h){a.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),h!=qo&&a.refresh()}),s("specialCharPlaceholder",bn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,u){return a.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(a,u){return a.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(a,u){return a.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!He),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){As(a),xs(a)},!0),s("keyMap","default",function(a,u,h){var g=Fr(u),m=h!=qo&&Fr(h);m&&m.detach&&m.detach(a,g),g.attach&&g.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,Xc,!0),s("gutters",[],function(a,u){a.display.gutterSpecs=$u(u,a.options.lineNumbers),xs(a)},!0),s("fixedGutter",!0,function(a,u){a.display.gutters.style.left=u?xa(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return oo(a)},!0),s("scrollbarStyle","native",function(a){Wo(a),oo(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,u){a.display.gutterSpecs=$u(a.options.gutters,u),xs(a)},!0),s("firstLineNumber",1,xs,!0),s("lineNumberFormatter",function(a){return a},xs,!0),s("showCursorWhenSelecting",!1,vs,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,u){u=="nocursor"&&(Ho(a),a.display.input.blur()),a.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(a,u){u=u===""?null:u,a.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(a,u){u||a.display.input.reset()},!0),s("dragDrop",!0,Wf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,vs,!0),s("singleCursorHeightPerLine",!0,vs,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Ls,!0),s("addModeClass",!1,Ls,!0),s("pollInterval",100),s("undoDepth",200,function(a,u){return a.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,Ls,!0),s("moveInputWithCursor",!0,function(a,u){u||a.display.input.resetPosition()}),s("tabindex",null,function(a,u){return a.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(a,u){return a.doc.setDirection(u)},!0),s("phrases",null)}function Wf(e,t,s){var a=s&&s!=qo;if(!t!=!a){var u=e.display.dragFunctions,h=t?$e:kr;h(e.display.scroller,"dragstart",u.start),h(e.display.scroller,"dragenter",u.enter),h(e.display.scroller,"dragover",u.over),h(e.display.scroller,"dragleave",u.leave),h(e.display.scroller,"drop",u.drop)}}function Xc(e){e.options.lineWrapping?(At(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ye(e.display.wrapper,"CodeMirror-wrap"),ds(e)),Ji(e),rt(e),gs(e),setTimeout(function(){return oo(e)},100)}function Dt(e,t){var s=this;if(!(this instanceof Dt))return new Dt(e,t);this.options=t=t?er(t):{},er(Es,t,!1);var a=t.value;typeof a=="string"?a=new Br(a,t.mode,null,t.lineSeparator,t.direction):t.mode&&(a.modeOption=t.mode),this.doc=a;var u=new Dt.inputStyles[t.inputStyle](this),h=this.display=new Tf(e,a,u,t);h.wrapper.CodeMirror=this,As(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wo(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 ut,keySeq:null,specialChars:null},t.autofocus&&!pe&&h.input.focus(),S&&O<11&&setTimeout(function(){return s.display.input.reset(!0)},20),Qc(this),Ku(),Gn(this),this.curOp.forceUpdate=!0,zc(this,a),t.autofocus&&!pe||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&_a(s)},20):Ho(this);for(var g in Wa)Wa.hasOwnProperty(g)&&Wa[g](this,t[g],qo);fi(this),t.finishInit&&t.finishInit(this);for(var m=0;m<Is.length;++m)Is[m](this);ui(this),I&&t.lineWrapping&&getComputedStyle(h.lineDiv).textRendering=="optimizelegibility"&&(h.lineDiv.style.textRendering="auto")}Dt.defaults=Es,Dt.optionHandlers=Wa;function Qc(e){var t=e.display;$e(t.scroller,"mousedown",Kt(e,Zc)),S&&O<11?$e(t.scroller,"dblclick",Kt(e,function(y){if(!ir(e,y)){var C=si(e,y);if(!(!C||i0(e,y)||zi(e.display,y))){xr(y);var z=e.findWordAt(C);Ml(e.doc,z.anchor,z.head)}}})):$e(t.scroller,"dblclick",function(y){return ir(e,y)||xr(y)}),$e(t.scroller,"contextmenu",function(y){return o0(e,y)}),$e(t.input.getField(),"contextmenu",function(y){t.scroller.contains(y.target)||o0(e,y)});var s,a={end:0};function u(){t.activeTouch&&(s=setTimeout(function(){return t.activeTouch=null},1e3),a=t.activeTouch,a.end=+new Date)}function h(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function g(y,C){if(C.left==null)return!0;var z=C.left-y.left,M=C.top-y.top;return z*z+M*M>20*20}$e(t.scroller,"touchstart",function(y){if(!ir(e,y)&&!h(y)&&!i0(e,y)){t.input.ensurePolled(),clearTimeout(s);var C=+new Date;t.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(t.activeTouch.left=y.touches[0].pageX,t.activeTouch.top=y.touches[0].pageY)}}),$e(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),$e(t.scroller,"touchend",function(y){var C=t.activeTouch;if(C&&!zi(t,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var z=e.coordsChar(t.activeTouch,"page"),M;!C.prev||g(C,C.prev)?M=new _t(z,z):!C.prev.prev||g(C,C.prev.prev)?M=e.findWordAt(z):M=new _t(ie(z.line,0),be(e.doc,ie(z.line+1,0))),e.setSelection(M.anchor,M.head),e.focus(),xr(y)}u()}),$e(t.scroller,"touchcancel",u),$e(t.scroller,"scroll",function(){t.scroller.clientHeight&&(jt(e,t.scroller.scrollTop),Fo(e,t.scroller.scrollLeft,!0),Ge(e,"scroll",e))}),$e(t.scroller,"mousewheel",function(y){return Lc(e,y)}),$e(t.scroller,"DOMMouseScroll",function(y){return Lc(e,y)}),$e(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(y){ir(e,y)||ko(y)},over:function(y){ir(e,y)||(qu(e,y),ko(y))},start:function(y){return Rf(e,y)},drop:Kt(e,$c),leave:function(y){ir(e,y)||ju(e)}};var m=t.input.getField();$e(m,"keyup",function(y){return n0.call(e,y)}),$e(m,"keydown",Kt(e,Fc)),$e(m,"keypress",Kt(e,Uc)),$e(m,"focus",function(y){return _a(e,y)}),$e(m,"blur",function(y){return Ho(e,y)})}var Is=[];Dt.defineInitHook=function(e){return Is.push(e)};function Ds(e,t,s,a){var u=e.doc,h;s==null&&(s="add"),s=="smart"&&(u.mode.indent?h=ma(e,t).state:s="prev");var g=e.options.tabSize,m=ke(u,t),y=Ft(m.text,null,g);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],z;if(!a&&!/\S/.test(m.text))z=0,s="not";else if(s=="smart"&&(z=u.mode.indent(h,m.text.slice(C.length),m.text),z==Ze||z>150)){if(!a)return;s="prev"}s=="prev"?t>u.first?z=Ft(ke(u,t-1).text,null,g):z=0:s=="add"?z=y+e.options.indentUnit:s=="subtract"?z=y-e.options.indentUnit:typeof s=="number"&&(z=y+s),z=Math.max(0,z);var M="",N=0;if(e.options.indentWithTabs)for(var R=Math.floor(z/g);R;--R)N+=g,M+=" ";if(N<z&&(M+=lr(z-N)),M!=C)return Ea(u,M,ie(t,0),ie(t,C.length),"+input"),m.stateAfter=null,!0;for(var Z=0;Z<u.sel.ranges.length;Z++){var J=u.sel.ranges[Z];if(J.head.line==t&&J.head.ch<C.length){var le=ie(t,C.length);Zu(u,Z,new _t(le,le));break}}}var kn=null;function On(e){kn=e}function Ul(e,t,s,a,u){var h=e.doc;e.display.shift=!1,a||(a=h.sel);var g=+new Date-200,m=u=="paste"||e.state.pasteIncoming>g,y=To(t),C=null;if(m&&a.ranges.length>1)if(kn&&kn.text.join(`
2117
2130
  `)==t){if(a.ranges.length%kn.text.length==0){C=[];for(var z=0;z<kn.text.length;z++)C.push(h.splitLines(kn.text[z]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=yt(y,function(fe){return[fe]}));for(var M=e.curOp.updateInput,N=a.ranges.length-1;N>=0;N--){var R=a.ranges[N],Z=R.from(),J=R.to();R.empty()&&(s&&s>0?Z=ie(Z.line,Z.ch-s):e.state.overwrite&&!m?J=ie(J.line,Math.min(ke(h,J.line).text.length,J.ch+Xe(y).length)):m&&kn&&kn.lineWise&&kn.text.join(`
2118
2131
  `)==y.join(`
2119
- `)&&(Z=J=ie(Z.line,0)));var le={from:Z,to:J,text:C?C[N%C.length]:y,origin:u||(m?"paste":e.state.cutIncoming>p?"cut":"+input")};Ma(e.doc,le),hr(e,"inputRead",e,le)}t&&!m&&Jc(e,t),ro(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function a0(e,t){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ar(t,function(){return Ul(t,s,0,null,"paste")}),!0}function Jc(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var u=s.ranges[a];if(!(u.head.ch>100||a&&s.ranges[a-1].head.line==u.head.line)){var h=e.getModeAt(u.head),p=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){p=Is(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(ke(e.doc,u.head.line).text.slice(0,u.head.ch))&&(p=Is(e,u.head.line,"smart"));p&&hr(e,"electricInput",e,u.head.line)}}}function s0(e){for(var t=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var u=e.doc.sel.ranges[a].head.line,h={anchor:ie(u,0),head:ie(u+1,0)};s.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:s}}function e1(e,t,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!t)}function t1(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),Ae&&(e.style.border="1px solid black"),e1(e),t}function Pi(e){var t=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,u){var h=this.options,p=h[a];h[a]==u&&a!="mode"||(h[a]=u,t.hasOwnProperty(a)&&Kt(this,t[a])(this,u,p),Ge(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,u){this.state.keyMaps[u?"push":"unshift"](Fr(a))},removeKeyMap:function(a){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==a||u[h].name==a)return u.splice(h,1),!0},addOverlay:Er(function(a,u){var h=a.token?a:e.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:h,modeSpec:a,opaque:u&&u.opaque,priority:u&&u.priority||0},function(p){return p.priority}),this.state.modeGen++,rt(this)}),removeOverlay:Er(function(a){for(var u=this.state.overlays,h=0;h<u.length;++h){var p=u[h].modeSpec;if(p==a||typeof a=="string"&&p.name==a){u.splice(h,1),this.state.modeGen++,rt(this);return}}}),indentLine:Er(function(a,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Zi(this.doc,a)&&Is(this,a,u,h)}),indentSelection:Er(function(a){for(var u=this.doc.sel.ranges,h=-1,p=0;p<u.length;p++){var m=u[p];if(m.empty())m.head.line>h&&(Is(this,m.head.line,a,!0),h=m.head.line,p==this.doc.sel.primIndex&&ro(this));else{var y=m.from(),C=m.to(),z=Math.max(h,y.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=z;M<h;++M)Is(this,M,a);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[p].from().ch>0&&Zu(this.doc,p,new _t(y,N[p].to()),at)}}}),getTokenAt:function(a,u){return il(this,a,u)},getLineTokens:function(a,u){return il(this,ie(a),u,!0)},getTokenTypeAt:function(a){a=be(this.doc,a);var u=bu(this,ke(this.doc,a.line)),h=0,p=(u.length-1)/2,m=a.ch,y;if(m==0)y=u[2];else for(;;){var C=h+p>>1;if((C?u[C*2-1]:0)>=m)p=C;else if(u[C*2+1]<m)h=C+1;else{y=u[C*2+2];break}}var z=y?y.indexOf("overlay "):-1;return z<0?y:z==0?null:y.slice(0,z-1)},getModeAt:function(a){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(a).state).mode:u},getHelper:function(a,u){return this.getHelpers(a,u)[0]},getHelpers:function(a,u){var h=[];if(!s.hasOwnProperty(u))return h;var p=s[u],m=this.getModeAt(a);if(typeof m[u]=="string")p[m[u]]&&h.push(p[m[u]]);else if(m[u])for(var y=0;y<m[u].length;y++){var C=p[m[u][y]];C&&h.push(C)}else m.helperType&&p[m.helperType]?h.push(p[m.helperType]):p[m.name]&&h.push(p[m.name]);for(var z=0;z<p._global.length;z++){var M=p._global[z];M.pred(m,this)&&_e(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(a,u){var h=this.doc;return a=vt(h,a==null?h.first+h.size-1:a),ga(this,a+1,u).state},cursorCoords:function(a,u){var h,p=this.doc.sel.primary();return a==null?h=p.head:typeof a=="object"?h=be(this.doc,a):h=a?p.from():p.to(),Vn(this,h,u||"page")},charCoords:function(a,u){return ml(this,be(this.doc,a),u||"page")},coordsChar:function(a,u){return a=hc(this,a,u||"page"),$(this,a.left,a.top)},lineAtHeight:function(a,u){return a=hc(this,{top:a,left:0},u||"page").top,Un(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,u,h){var p=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,p=!0),m=ke(this.doc,a)}else m=a;return bl(this,m,{top:0,left:0},u||"page",h||p).top+(p?this.doc.height-Xr(m):0)},defaultTextHeight:function(){return Xi(this.display)},defaultCharWidth:function(){return ma(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,u,h,p,m){var y=this.display;a=Vn(this,be(this.doc,a));var C=a.bottom,z=a.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),p=="over")C=a.top;else if(p=="above"||p=="near"){var M=Math.max(y.wrapper.clientHeight,this.doc.height),N=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(p=="above"||a.bottom+u.offsetHeight>M)&&a.top>u.offsetHeight?C=a.top-u.offsetHeight:a.bottom+u.offsetHeight<=M&&(C=a.bottom),z+u.offsetWidth>N&&(z=N-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",m=="right"?(z=y.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(m=="left"?z=0:m=="middle"&&(z=(y.sizer.clientWidth-u.offsetWidth)/2),u.style.left=z+"px"),h&&wf(this,{left:z,top:C,right:z+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Er(Fc),triggerOnKeyPress:Er(Uc),triggerOnKeyUp:n0,triggerOnMouseDown:Er(Zc),execCommand:function(a){if(Vo.hasOwnProperty(a))return Vo[a].call(null,this)},triggerElectric:Er(function(a){Jc(this,a)}),findPosH:function(a,u,h,p){var m=1;u<0&&(m=-1,u=-u);for(var y=be(this.doc,a),C=0;C<u&&(y=Ds(this.doc,y,m,h,p),!y.hitSide);++C);return y},moveH:Er(function(a,u){var h=this;this.extendSelectionsBy(function(p){return h.display.shift||h.doc.extend||p.empty()?Ds(h.doc,p.head,a,u,h.options.rtlMoveVisually):a<0?p.from():p.to()},We)}),deleteH:Er(function(a,u){var h=this.doc.sel,p=this.doc;h.somethingSelected()?p.replaceSelection("",null,"+delete"):wn(this,function(m){var y=Ds(p,m.head,a,u,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,u,h,p){var m=1,y=p;u<0&&(m=-1,u=-u);for(var C=be(this.doc,a),z=0;z<u;++z){var M=Vn(this,C,"div");if(y==null?y=M.left:M.left=y,C=Yl(this,M,m,h),C.hitSide)break}return C},moveV:Er(function(a,u){var h=this,p=this.doc,m=[],y=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(z){if(y)return a<0?z.from():z.to();var M=Vn(h,z.head,"div");z.goalColumn!=null&&(M.left=z.goalColumn),m.push(M.left);var N=Yl(h,M,a,u);return u=="page"&&z==p.sel.primary()&&La(h,ml(h,N,"div").top-M.top),N},We),m.length)for(var C=0;C<p.sel.ranges.length;C++)p.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var u=this.doc,h=ke(u,a.line).text,p=a.ch,m=a.ch;if(h){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==h.length)&&p?--p:++m;for(var C=h.charAt(p),z=B(C,y)?function(M){return B(M,y)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!B(M)};p>0&&z(h.charAt(p-1));)--p;for(;m<h.length&&z(h.charAt(m));)++m}return new _t(ie(a.line,p),ie(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?At(this.display.cursorDiv,"CodeMirror-overwrite"):ye(this.display.cursorDiv,"CodeMirror-overwrite"),Ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ot()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(a,u){bs(this,a,u)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-on(this)-this.display.barHeight,width:a.scrollWidth-on(this)-this.display.barWidth,clientHeight:hl(this),clientWidth:qi(this)}},scrollIntoView:Er(function(a,u){a==null?(a={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ie(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=u||0,a.from.line!=null?mc(this,a):yc(this,a.from,a.to,a.margin)}),setSize:Er(function(a,u){var h=this,p=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=p(a)),u!=null&&(this.display.wrapper.style.height=p(u)),this.options.lineWrapping&&dc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){Ji(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ge(this,"refresh",this)}),operation:function(a){return Ar(this,a)},startOperation:function(){return Gn(this)},endOperation:function(){return ui(this)},refresh:Er(function(){var a=this.display.cachedTextHeight;rt(this),this.curOp.forceUpdate=!0,ps(this),bs(this,this.doc.scrollLeft,this.doc.scrollTop),Ru(this.display),(a==null||Math.abs(a-Xi(this.display))>.5||this.options.lineWrapping)&&Qi(this),Ge(this,"refresh",this)}),swapDoc:Er(function(a){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),zc(this,a),ps(this),this.display.input.reset(),bs(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,hr(this,"swapDoc",this,u),u}),phrase:function(a){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,a)?u[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}},Bn(e),e.registerHelper=function(a,u,h){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][u]=h},e.registerGlobalHelper=function(a,u,h,p){e.registerHelper(a,u,p),s[a]._global.push({pred:h,val:p})}}function Ds(e,t,s,a,u){var h=t,p=s,m=ke(e,t.line),y=u&&e.direction=="rtl"?-s:s;function C(){var Ce=t.line+y;return Ce<e.first||Ce>=e.first+e.size?!1:(t=new ie(Ce,t.ch,t.sticky),m=ke(e,Ce))}function z(Ce){var de;if(a=="codepoint"){var xe=m.text.charCodeAt(t.ch+(s>0?0:-1));if(isNaN(xe))de=null;else{var Re=s>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;de=new ie(t.line,Math.max(0,Math.min(m.text.length,t.ch+s*(Re?2:1))),-s)}}else u?de=Bc(e.cm,m,t,s):de=Nl(m,t,s);if(de==null)if(!Ce&&C())t=Ia(u,e.cm,m,t.line,y);else return!1;else t=de;return!0}if(a=="char"||a=="codepoint")z();else if(a=="column")z(!0);else if(a=="word"||a=="group")for(var M=null,N=a=="group",R=e.cm&&e.cm.getHelper(t,"wordChars"),Z=!0;!(s<0&&!z(!Z));Z=!1){var J=m.text.charAt(t.ch)||`
2132
+ `)&&(Z=J=ie(Z.line,0)));var le={from:Z,to:J,text:C?C[N%C.length]:y,origin:u||(m?"paste":e.state.cutIncoming>g?"cut":"+input")};Ta(e.doc,le),hr(e,"inputRead",e,le)}t&&!m&&Jc(e,t),no(e),e.curOp.updateInput<2&&(e.curOp.updateInput=M),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function a0(e,t){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ar(t,function(){return Ul(t,s,0,null,"paste")}),!0}function Jc(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var u=s.ranges[a];if(!(u.head.ch>100||a&&s.ranges[a-1].head.line==u.head.line)){var h=e.getModeAt(u.head),g=!1;if(h.electricChars){for(var m=0;m<h.electricChars.length;m++)if(t.indexOf(h.electricChars.charAt(m))>-1){g=Ds(e,u.head.line,"smart");break}}else h.electricInput&&h.electricInput.test(ke(e.doc,u.head.line).text.slice(0,u.head.ch))&&(g=Ds(e,u.head.line,"smart"));g&&hr(e,"electricInput",e,u.head.line)}}}function s0(e){for(var t=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var u=e.doc.sel.ranges[a].head.line,h={anchor:ie(u,0),head:ie(u+1,0)};s.push(h),t.push(e.getRange(h.anchor,h.head))}return{text:t,ranges:s}}function e1(e,t,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!t)}function t1(){var e=E("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=E("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),Ae&&(e.style.border="1px solid black"),e1(e),t}function Pi(e){var t=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,u){var h=this.options,g=h[a];h[a]==u&&a!="mode"||(h[a]=u,t.hasOwnProperty(a)&&Kt(this,t[a])(this,u,g),Ge(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,u){this.state.keyMaps[u?"push":"unshift"](Fr(a))},removeKeyMap:function(a){for(var u=this.state.keyMaps,h=0;h<u.length;++h)if(u[h]==a||u[h].name==a)return u.splice(h,1),!0},addOverlay:Er(function(a,u){var h=a.token?a:e.getMode(this.options,a);if(h.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:h,modeSpec:a,opaque:u&&u.opaque,priority:u&&u.priority||0},function(g){return g.priority}),this.state.modeGen++,rt(this)}),removeOverlay:Er(function(a){for(var u=this.state.overlays,h=0;h<u.length;++h){var g=u[h].modeSpec;if(g==a||typeof a=="string"&&g.name==a){u.splice(h,1),this.state.modeGen++,rt(this);return}}}),indentLine:Er(function(a,u,h){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),Vi(this.doc,a)&&Ds(this,a,u,h)}),indentSelection:Er(function(a){for(var u=this.doc.sel.ranges,h=-1,g=0;g<u.length;g++){var m=u[g];if(m.empty())m.head.line>h&&(Ds(this,m.head.line,a,!0),h=m.head.line,g==this.doc.sel.primIndex&&no(this));else{var y=m.from(),C=m.to(),z=Math.max(h,y.line);h=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var M=z;M<h;++M)Ds(this,M,a);var N=this.doc.sel.ranges;y.ch==0&&u.length==N.length&&N[g].from().ch>0&&Zu(this.doc,g,new _t(y,N[g].to()),at)}}}),getTokenAt:function(a,u){return il(this,a,u)},getLineTokens:function(a,u){return il(this,ie(a),u,!0)},getTokenTypeAt:function(a){a=be(this.doc,a);var u=bu(this,ke(this.doc,a.line)),h=0,g=(u.length-1)/2,m=a.ch,y;if(m==0)y=u[2];else for(;;){var C=h+g>>1;if((C?u[C*2-1]:0)>=m)g=C;else if(u[C*2+1]<m)h=C+1;else{y=u[C*2+2];break}}var z=y?y.indexOf("overlay "):-1;return z<0?y:z==0?null:y.slice(0,z-1)},getModeAt:function(a){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(a).state).mode:u},getHelper:function(a,u){return this.getHelpers(a,u)[0]},getHelpers:function(a,u){var h=[];if(!s.hasOwnProperty(u))return h;var g=s[u],m=this.getModeAt(a);if(typeof m[u]=="string")g[m[u]]&&h.push(g[m[u]]);else if(m[u])for(var y=0;y<m[u].length;y++){var C=g[m[u][y]];C&&h.push(C)}else m.helperType&&g[m.helperType]?h.push(g[m.helperType]):g[m.name]&&h.push(g[m.name]);for(var z=0;z<g._global.length;z++){var M=g._global[z];M.pred(m,this)&&_e(h,M.val)==-1&&h.push(M.val)}return h},getStateAfter:function(a,u){var h=this.doc;return a=vt(h,a==null?h.first+h.size-1:a),ma(this,a+1,u).state},cursorCoords:function(a,u){var h,g=this.doc.sel.primary();return a==null?h=g.head:typeof a=="object"?h=be(this.doc,a):h=a?g.from():g.to(),Vn(this,h,u||"page")},charCoords:function(a,u){return ml(this,be(this.doc,a),u||"page")},coordsChar:function(a,u){return a=hc(this,a,u||"page"),$(this,a.left,a.top)},lineAtHeight:function(a,u){return a=hc(this,{top:a,left:0},u||"page").top,Un(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,u,h){var g=!1,m;if(typeof a=="number"){var y=this.doc.first+this.doc.size-1;a<this.doc.first?a=this.doc.first:a>y&&(a=y,g=!0),m=ke(this.doc,a)}else m=a;return bl(this,m,{top:0,left:0},u||"page",h||g).top+(g?this.doc.height-Xr(m):0)},defaultTextHeight:function(){return Qi(this.display)},defaultCharWidth:function(){return wa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,u,h,g,m){var y=this.display;a=Vn(this,be(this.doc,a));var C=a.bottom,z=a.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),y.sizer.appendChild(u),g=="over")C=a.top;else if(g=="above"||g=="near"){var M=Math.max(y.wrapper.clientHeight,this.doc.height),N=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(g=="above"||a.bottom+u.offsetHeight>M)&&a.top>u.offsetHeight?C=a.top-u.offsetHeight:a.bottom+u.offsetHeight<=M&&(C=a.bottom),z+u.offsetWidth>N&&(z=N-u.offsetWidth)}u.style.top=C+"px",u.style.left=u.style.right="",m=="right"?(z=y.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(m=="left"?z=0:m=="middle"&&(z=(y.sizer.clientWidth-u.offsetWidth)/2),u.style.left=z+"px"),h&&wf(this,{left:z,top:C,right:z+u.offsetWidth,bottom:C+u.offsetHeight})},triggerOnKeyDown:Er(Fc),triggerOnKeyPress:Er(Uc),triggerOnKeyUp:n0,triggerOnMouseDown:Er(Zc),execCommand:function(a){if(Go.hasOwnProperty(a))return Go[a].call(null,this)},triggerElectric:Er(function(a){Jc(this,a)}),findPosH:function(a,u,h,g){var m=1;u<0&&(m=-1,u=-u);for(var y=be(this.doc,a),C=0;C<u&&(y=Rs(this.doc,y,m,h,g),!y.hitSide);++C);return y},moveH:Er(function(a,u){var h=this;this.extendSelectionsBy(function(g){return h.display.shift||h.doc.extend||g.empty()?Rs(h.doc,g.head,a,u,h.options.rtlMoveVisually):a<0?g.from():g.to()},We)}),deleteH:Er(function(a,u){var h=this.doc.sel,g=this.doc;h.somethingSelected()?g.replaceSelection("",null,"+delete"):wn(this,function(m){var y=Rs(g,m.head,a,u,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,u,h,g){var m=1,y=g;u<0&&(m=-1,u=-u);for(var C=be(this.doc,a),z=0;z<u;++z){var M=Vn(this,C,"div");if(y==null?y=M.left:M.left=y,C=Yl(this,M,m,h),C.hitSide)break}return C},moveV:Er(function(a,u){var h=this,g=this.doc,m=[],y=!this.display.shift&&!g.extend&&g.sel.somethingSelected();if(g.extendSelectionsBy(function(z){if(y)return a<0?z.from():z.to();var M=Vn(h,z.head,"div");z.goalColumn!=null&&(M.left=z.goalColumn),m.push(M.left);var N=Yl(h,M,a,u);return u=="page"&&z==g.sel.primary()&&Sa(h,ml(h,N,"div").top-M.top),N},We),m.length)for(var C=0;C<g.sel.ranges.length;C++)g.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var u=this.doc,h=ke(u,a.line).text,g=a.ch,m=a.ch;if(h){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==h.length)&&g?--g:++m;for(var C=h.charAt(g),z=B(C,y)?function(M){return B(M,y)}:/\s/.test(C)?function(M){return/\s/.test(M)}:function(M){return!/\s/.test(M)&&!B(M)};g>0&&z(h.charAt(g-1));)--g;for(;m<h.length&&z(h.charAt(m));)++m}return new _t(ie(a.line,g),ie(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?At(this.display.cursorDiv,"CodeMirror-overwrite"):ye(this.display.cursorDiv,"CodeMirror-overwrite"),Ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ot()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(a,u){ms(this,a,u)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-an(this)-this.display.barHeight,width:a.scrollWidth-an(this)-this.display.barWidth,clientHeight:hl(this),clientWidth:ji(this)}},scrollIntoView:Er(function(a,u){a==null?(a={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ie(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=u||0,a.from.line!=null?mc(this,a):yc(this,a.from,a.to,a.margin)}),setSize:Er(function(a,u){var h=this,g=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=g(a)),u!=null&&(this.display.wrapper.style.height=g(u)),this.options.lineWrapping&&dc(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(y){if(y.widgets){for(var C=0;C<y.widgets.length;C++)if(y.widgets[C].noHScroll){eo(h,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Ge(this,"refresh",this)}),operation:function(a){return Ar(this,a)},startOperation:function(){return Gn(this)},endOperation:function(){return ui(this)},refresh:Er(function(){var a=this.display.cachedTextHeight;rt(this),this.curOp.forceUpdate=!0,gs(this),ms(this,this.doc.scrollLeft,this.doc.scrollTop),Ru(this.display),(a==null||Math.abs(a-Qi(this.display))>.5||this.options.lineWrapping)&&Ji(this),Ge(this,"refresh",this)}),swapDoc:Er(function(a){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),zc(this,a),gs(this),this.display.input.reset(),ms(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,hr(this,"swapDoc",this,u),u}),phrase:function(a){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,a)?u[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}},Bn(e),e.registerHelper=function(a,u,h){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][u]=h},e.registerGlobalHelper=function(a,u,h,g){e.registerHelper(a,u,g),s[a]._global.push({pred:h,val:g})}}function Rs(e,t,s,a,u){var h=t,g=s,m=ke(e,t.line),y=u&&e.direction=="rtl"?-s:s;function C(){var Ce=t.line+y;return Ce<e.first||Ce>=e.first+e.size?!1:(t=new ie(Ce,t.ch,t.sticky),m=ke(e,Ce))}function z(Ce){var de;if(a=="codepoint"){var xe=m.text.charCodeAt(t.ch+(s>0?0:-1));if(isNaN(xe))de=null;else{var Re=s>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;de=new ie(t.line,Math.max(0,Math.min(m.text.length,t.ch+s*(Re?2:1))),-s)}}else u?de=Bc(e.cm,m,t,s):de=Nl(m,t,s);if(de==null)if(!Ce&&C())t=Na(u,e.cm,m,t.line,y);else return!1;else t=de;return!0}if(a=="char"||a=="codepoint")z();else if(a=="column")z(!0);else if(a=="word"||a=="group")for(var M=null,N=a=="group",R=e.cm&&e.cm.getHelper(t,"wordChars"),Z=!0;!(s<0&&!z(!Z));Z=!1){var J=m.text.charAt(t.ch)||`
2120
2133
  `,le=B(J,R)?"w":N&&J==`
2121
- `?"n":!N||/\s/.test(J)?null:"p";if(N&&!Z&&!le&&(le="s"),M&&M!=le){s<0&&(s=1,z(),t.sticky="after");break}if(le&&(M=le),s>0&&!z(!Z))break}var fe=_r(e,t,h,p,!0);return T(h,fe)&&(fe.hitSide=!0),fe}function Yl(e,t,s,a){var u=e.doc,h=t.left,p;if(a=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Xi(e.display),3);p=(s>0?t.bottom:t.top)+s*y}else a=="line"&&(p=s>0?t.bottom+3:t.top-3);for(var C;C=$(e,h,p),!!C.outside;){if(s<0?p<=0:p>=u.height){C.hitSide=!0;break}p+=s*5}return C}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,s=this,a=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,e1(u,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(m){for(var y=m.target;y;y=y.parentNode){if(y==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}$e(u,"paste",function(m){!h(m)||ir(a,m)||a0(m,a)||k<=11&&setTimeout(Kt(a,function(){return t.updateFromDOM()}),20)}),$e(u,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),$e(u,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),$e(u,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),$e(u,"touchstart",function(){return s.forceCompositionEnd()}),$e(u,"input",function(){t.composing||t.readFromDOMSoon()});function p(m){if(!(!h(m)||ir(a,m))){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()}),m.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var y=s0(a);On({lineWise:!0,text:y.text}),m.type=="cut"&&a.operation(function(){a.setSelections(y.ranges,0,at),a.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=kn.text.join(`
2134
+ `?"n":!N||/\s/.test(J)?null:"p";if(N&&!Z&&!le&&(le="s"),M&&M!=le){s<0&&(s=1,z(),t.sticky="after");break}if(le&&(M=le),s>0&&!z(!Z))break}var fe=_r(e,t,h,g,!0);return P(h,fe)&&(fe.hitSide=!0),fe}function Yl(e,t,s,a){var u=e.doc,h=t.left,g;if(a=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),y=Math.max(m-.5*Qi(e.display),3);g=(s>0?t.bottom:t.top)+s*y}else a=="line"&&(g=s>0?t.bottom+3:t.top-3);for(var C;C=$(e,h,g),!!C.outside;){if(s<0?g<=0:g>=u.height){C.hitSide=!0;break}g+=s*5}return C}var zt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ut,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zt.prototype.init=function(e){var t=this,s=this,a=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,e1(u,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function h(m){for(var y=m.target;y;y=y.parentNode){if(y==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}$e(u,"paste",function(m){!h(m)||ir(a,m)||a0(m,a)||O<=11&&setTimeout(Kt(a,function(){return t.updateFromDOM()}),20)}),$e(u,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),$e(u,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),$e(u,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),$e(u,"touchstart",function(){return s.forceCompositionEnd()}),$e(u,"input",function(){t.composing||t.readFromDOMSoon()});function g(m){if(!(!h(m)||ir(a,m))){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()}),m.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var y=s0(a);On({lineWise:!0,text:y.text}),m.type=="cut"&&a.operation(function(){a.setSelections(y.ranges,0,at),a.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=kn.text.join(`
2122
2135
  `);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var z=t1(),M=z.firstChild;a.display.lineSpace.insertBefore(z,a.display.lineSpace.firstChild),M.value=kn.text.join(`
2123
- `);var N=ot();Bt(M),setTimeout(function(){a.display.lineSpace.removeChild(z),N.focus(),N==u&&s.showPrimarySelection()},50)}}$e(u,"copy",p),$e(u,"cut",p)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=vs(this.cm,!1);return e.focus=ot()==this.div,e},zt.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,s=t.doc.sel.primary(),a=s.from(),u=s.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=Fa(t,e.anchorNode,e.anchorOffset),p=Fa(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&p&&!p.bad&&w(qe(h,p),a)==0&&w(ae(h,p),u)==0)){var m=t.display.view,y=a.line>=t.display.viewFrom&&Rs(t,a)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&Rs(t,u);if(!C){var z=m[m.length-1].measure,M=z.maps?z.maps[z.maps.length-1]:z.map;C={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!y||!C){e.removeAllRanges();return}var N=e.rangeCount&&e.getRangeAt(0),R;try{R=ne(y.node,y.offset,C.offset,C.node)}catch{}R&&(!f&&t.state.focused?(e.collapse(y.node,y.offset),R.collapsed||(e.removeAllRanges(),e.addRange(R))):(e.removeAllRanges(),e.addRange(R)),N&&e.anchorNode==null?e.addRange(N):f&&this.startGracePeriod()),this.rememberSelection()}},zt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},zt.prototype.showMultipleSelections=function(e){W(this.cm.display.cursorDiv,e.cursors),W(this.cm.display.selectionDiv,e.selection)},zt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},zt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return ve(this.div,t)},zt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ot()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zt.prototype.blur=function(){this.div.blur()},zt.prototype.getField=function(){return this.div},zt.prototype.supportsTouch=function(){return!0},zt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ar(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},zt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},zt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Ie&&q&&this.cm.display.gutterSpecs.length&&Ba(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Fa(t,e.anchorNode,e.anchorOffset),a=Fa(t,e.focusNode,e.focusOffset);s&&a&&Ar(t,function(){Lr(t.doc,ao(s,a),at),(s.bad||a.bad)&&(t.curOp.selectionChanged=!0)})}}},zt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,s=e.doc.sel.primary(),a=s.from(),u=s.to();if(a.ch==0&&a.line>e.firstLine()&&(a=ie(a.line-1,ke(e.doc,a.line-1).length)),u.ch==ke(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=ie(u.line+1,0)),a.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,p,m;a.line==t.viewFrom||(h=li(e,a.line))==0?(p=Lt(t.view[0].line),m=t.view[0].node):(p=Lt(t.view[h].line),m=t.view[h-1].node.nextSibling);var y=li(e,u.line),C,z;if(y==t.view.length-1?(C=t.viewTo-1,z=t.lineDiv.lastChild):(C=Lt(t.view[y+1].line)-1,z=t.view[y+1].node.previousSibling),!m)return!1;for(var M=e.doc.splitLines(Zl(e,m,z,p,C)),N=vn(e.doc,ie(p,0),ie(C,ke(e.doc,C).text.length));M.length>1&&N.length>1;)if(Xe(M)==Xe(N))M.pop(),N.pop(),C--;else if(M[0]==N[0])M.shift(),N.shift(),p++;else break;for(var R=0,Z=0,J=M[0],le=N[0],fe=Math.min(J.length,le.length);R<fe&&J.charCodeAt(R)==le.charCodeAt(R);)++R;for(var Ce=Xe(M),de=Xe(N),xe=Math.min(Ce.length-(M.length==1?R:0),de.length-(N.length==1?R:0));Z<xe&&Ce.charCodeAt(Ce.length-Z-1)==de.charCodeAt(de.length-Z-1);)++Z;if(M.length==1&&N.length==1&&p==a.line)for(;R&&R>a.ch&&Ce.charCodeAt(Ce.length-Z-1)==de.charCodeAt(de.length-Z-1);)R--,Z++;M[M.length-1]=Ce.slice(0,Ce.length-Z).replace(/^\u200b+/,""),M[0]=M[0].slice(R).replace(/\u200b+$/,"");var Re=ie(p,R),Pe=ie(C,N.length?Xe(N).length-Z:0);if(M.length>1||M[0]||w(Re,Pe))return Ta(e.doc,M,Re,Pe,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return rt(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,Ul)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Rs(e,t){var s=Au(e,t.line);if(!s||s.hidden)return null;var a=ke(e.doc,t.line),u=sc(s,a,t.line),h=Hr(a,e.doc.direction),p="left";if(h){var m=Zt(h,t.ch);p=m%2?"right":"left"}var y=pl(u.map,t.ch,p);return y.offset=y.collapse=="right"?y.end:y.start,y}function Ba(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Be(e,t){return t&&(e.bad=!0),e}function Zl(e,t,s,a,u){var h="",p=!1,m=e.doc.lineSeparator(),y=!1;function C(R){return function(Z){return Z.id==R}}function z(){p&&(h+=m,y&&(h+=m),p=y=!1)}function M(R){R&&(z(),h+=R)}function N(R){if(R.nodeType==1){var Z=R.getAttribute("cm-text");if(Z){M(Z);return}var J=R.getAttribute("cm-marker"),le;if(J){var fe=e.findMarks(ie(a,0),ie(u+1,0),C(+J));fe.length&&(le=fe[0].find(0))&&M(vn(e.doc,le.from,le.to).join(m));return}if(R.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;Ce&&z();for(var de=0;de<R.childNodes.length;de++)N(R.childNodes[de]);/^(pre|p)$/i.test(R.nodeName)&&(y=!0),Ce&&(p=!0)}else R.nodeType==3&&M(R.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=s;)t=t.nextSibling,y=!1;return h}function Fa(e,t,s){var a;if(t==e.display.lineDiv){if(a=e.display.lineDiv.childNodes[s],!a)return Be(e.clipPos(ie(e.display.viewTo-1)),!0);t=null,s=0}else for(a=t;;a=a.parentNode){if(!a||a==e.display.lineDiv)return null;if(a.parentNode&&a.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==a)return qo(h,t,s)}}function qo(e,t,s){var a=e.text.firstChild,u=!1;if(!t||!ve(a,t))return Be(ie(Lt(e.line),0),!0);if(t==a&&(u=!0,t=a.childNodes[s],s=0,!t)){var h=e.rest?Xe(e.rest):e.line;return Be(ie(Lt(h),h.text.length),u)}var p=t.nodeType==3?t:null,m=t;for(!p&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(p=t.firstChild,s&&(s=p.nodeValue.length));m.parentNode!=a;)m=m.parentNode;var y=e.measure,C=y.maps;function z(le,fe,Ce){for(var de=-1;de<(C?C.length:0);de++)for(var xe=de<0?y.map:C[de],Re=0;Re<xe.length;Re+=3){var Pe=xe[Re+2];if(Pe==le||Pe==fe){var lt=Lt(de<0?e.line:e.rest[de]),Ot=xe[Re]+Ce;return(Ce<0||Pe!=le)&&(Ot=xe[Re+(Ce?1:0)]),ie(lt,Ot)}}}var M=z(p,m,s);if(M)return Be(M,u);for(var N=m.nextSibling,R=p?p.nodeValue.length-s:0;N;N=N.nextSibling){if(M=z(N,N.firstChild,0),M)return Be(ie(M.line,M.ch-R),u);R+=N.textContent.length}for(var Z=m.previousSibling,J=s;Z;Z=Z.previousSibling){if(M=z(Z,Z.firstChild,-1),M)return Be(ie(M.line,M.ch+J),u);J+=Z.textContent.length}}var tr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};tr.prototype.init=function(e){var t=this,s=this,a=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ae&&(u.style.width="0px"),$e(u,"input",function(){S&&k>=9&&t.hasSelection&&(t.hasSelection=null),s.poll()}),$e(u,"paste",function(p){ir(a,p)||a0(p,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(p){if(!ir(a,p)){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var m=s0(a);On({lineWise:!0,text:m.text}),p.type=="cut"?a.setSelections(m.ranges,null,at):(s.prevInput="",u.value=m.text.join(`
2124
- `),Bt(u))}else return;p.type=="cut"&&(a.state.cutIncoming=+new Date)}}$e(u,"cut",h),$e(u,"copy",h),$e(e.scroller,"paste",function(p){if(!(zi(e,p)||ir(a,p))){if(!u.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var m=new Event("paste");m.clipboardData=p.clipboardData,u.dispatchEvent(m)}}),$e(e.lineSpace,"selectstart",function(p){zi(e,p)||xr(p)}),$e(u,"compositionstart",function(){var p=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:p,range:a.markText(p,a.getCursor("to"),{className:"CodeMirror-composing"})}}),$e(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},tr.prototype.createField=function(e){this.wrapper=t1(),this.textarea=this.wrapper.firstChild},tr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},tr.prototype.prepareSelection=function(){var e=this.cm,t=e.display,s=e.doc,a=vs(e);if(e.options.moveInputWithCursor){var u=Vn(e,s.sel.primary().head,"div"),h=t.wrapper.getBoundingClientRect(),p=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+p.top-h.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+p.left-h.left))}return a},tr.prototype.showSelection=function(e){var t=this.cm,s=t.display;W(s.cursorDiv,e.cursors),W(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},tr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var s=t.getSelection();this.textarea.value=s,t.state.focused&&Bt(this.textarea),S&&k>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",S&&k>=9&&(this.hasSelection=null))}},tr.prototype.getField=function(){return this.textarea},tr.prototype.supportsTouch=function(){return!1},tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!pe||ot()!=this.textarea))try{this.textarea.focus()}catch{}},tr.prototype.blur=function(){this.textarea.blur()},tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tr.prototype.receivedFocus=function(){this.slowPoll()},tr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},tr.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function s(){var a=t.poll();!a&&!e?(e=!0,t.polling.set(60,s)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,s)},tr.prototype.poll=function(){var e=this,t=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!t.state.focused||Js(s)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var u=s.value;if(u==a&&!t.somethingSelected())return!1;if(S&&k>=9&&this.hasSelection===u||he&&/[\uf700-\uf7ff]/.test(u))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var h=u.charCodeAt(0);if(h==8203&&!a&&(a="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var p=0,m=Math.min(a.length,u.length);p<m&&a.charCodeAt(p)==u.charCodeAt(p);)++p;return Ar(t,function(){Ul(t,u.slice(p),a.length-p,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
2125
- `)>-1?s.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tr.prototype.onKeyPress=function(){S&&k>=9&&(this.hasSelection=null),this.fastPoll()},tr.prototype.onContextMenu=function(e){var t=this,s=t.cm,a=s.display,u=t.textarea;t.contextMenuPending&&t.contextMenuPending();var h=si(s,e),p=a.scroller.scrollTop;if(!h||X)return;var m=s.options.resetSelectionOnContextMenu;m&&s.doc.sel.contains(h)==-1&&Kt(s,Lr)(s.doc,ao(h),at);var y=u.style.cssText,C=t.wrapper.style.cssText,z=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
2136
+ `);var N=ot();Bt(M),setTimeout(function(){a.display.lineSpace.removeChild(z),N.focus(),N==u&&s.showPrimarySelection()},50)}}$e(u,"copy",g),$e(u,"cut",g)},zt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var e=bs(this.cm,!1);return e.focus=ot()==this.div,e},zt.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},zt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zt.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,s=t.doc.sel.primary(),a=s.from(),u=s.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||u.line<t.display.viewFrom){e.removeAllRanges();return}var h=Ya(t,e.anchorNode,e.anchorOffset),g=Ya(t,e.focusNode,e.focusOffset);if(!(h&&!h.bad&&g&&!g.bad&&w(qe(h,g),a)==0&&w(ae(h,g),u)==0)){var m=t.display.view,y=a.line>=t.display.viewFrom&&Ns(t,a)||{node:m[0].measure.map[2],offset:0},C=u.line<t.display.viewTo&&Ns(t,u);if(!C){var z=m[m.length-1].measure,M=z.maps?z.maps[z.maps.length-1]:z.map;C={node:M[M.length-1],offset:M[M.length-2]-M[M.length-3]}}if(!y||!C){e.removeAllRanges();return}var N=e.rangeCount&&e.getRangeAt(0),R;try{R=ne(y.node,y.offset,C.offset,C.node)}catch{}R&&(!f&&t.state.focused?(e.collapse(y.node,y.offset),R.collapsed||(e.removeAllRanges(),e.addRange(R))):(e.removeAllRanges(),e.addRange(R)),N&&e.anchorNode==null?e.addRange(N):f&&this.startGracePeriod()),this.rememberSelection()}},zt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},zt.prototype.showMultipleSelections=function(e){W(this.cm.display.cursorDiv,e.cursors),W(this.cm.display.selectionDiv,e.selection)},zt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},zt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return ve(this.div,t)},zt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ot()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zt.prototype.blur=function(){this.div.blur()},zt.prototype.getField=function(){return this.div},zt.prototype.supportsTouch=function(){return!0},zt.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ar(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},zt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},zt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Ie&&q&&this.cm.display.gutterSpecs.length&&Ua(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Ya(t,e.anchorNode,e.anchorOffset),a=Ya(t,e.focusNode,e.focusOffset);s&&a&&Ar(t,function(){Lr(t.doc,so(s,a),at),(s.bad||a.bad)&&(t.curOp.selectionChanged=!0)})}}},zt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,s=e.doc.sel.primary(),a=s.from(),u=s.to();if(a.ch==0&&a.line>e.firstLine()&&(a=ie(a.line-1,ke(e.doc,a.line-1).length)),u.ch==ke(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=ie(u.line+1,0)),a.line<t.viewFrom||u.line>t.viewTo-1)return!1;var h,g,m;a.line==t.viewFrom||(h=li(e,a.line))==0?(g=Lt(t.view[0].line),m=t.view[0].node):(g=Lt(t.view[h].line),m=t.view[h-1].node.nextSibling);var y=li(e,u.line),C,z;if(y==t.view.length-1?(C=t.viewTo-1,z=t.lineDiv.lastChild):(C=Lt(t.view[y+1].line)-1,z=t.view[y+1].node.previousSibling),!m)return!1;for(var M=e.doc.splitLines(Zl(e,m,z,g,C)),N=vn(e.doc,ie(g,0),ie(C,ke(e.doc,C).text.length));M.length>1&&N.length>1;)if(Xe(M)==Xe(N))M.pop(),N.pop(),C--;else if(M[0]==N[0])M.shift(),N.shift(),g++;else break;for(var R=0,Z=0,J=M[0],le=N[0],fe=Math.min(J.length,le.length);R<fe&&J.charCodeAt(R)==le.charCodeAt(R);)++R;for(var Ce=Xe(M),de=Xe(N),xe=Math.min(Ce.length-(M.length==1?R:0),de.length-(N.length==1?R:0));Z<xe&&Ce.charCodeAt(Ce.length-Z-1)==de.charCodeAt(de.length-Z-1);)++Z;if(M.length==1&&N.length==1&&g==a.line)for(;R&&R>a.ch&&Ce.charCodeAt(Ce.length-Z-1)==de.charCodeAt(de.length-Z-1);)R--,Z++;M[M.length-1]=Ce.slice(0,Ce.length-Z).replace(/^\u200b+/,""),M[0]=M[0].slice(R).replace(/\u200b+$/,"");var Re=ie(g,R),Pe=ie(C,N.length?Xe(N).length-Z:0);if(M.length>1||M[0]||w(Re,Pe))return Ea(e.doc,M,Re,Pe,"+input"),!0},zt.prototype.ensurePolled=function(){this.forceCompositionEnd()},zt.prototype.reset=function(){this.forceCompositionEnd()},zt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},zt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return rt(e.cm)})},zt.prototype.setUneditable=function(e){e.contentEditable="false"},zt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Kt(this.cm,Ul)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},zt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},zt.prototype.onContextMenu=function(){},zt.prototype.resetPosition=function(){},zt.prototype.needsContentAttribute=!0;function Ns(e,t){var s=Au(e,t.line);if(!s||s.hidden)return null;var a=ke(e.doc,t.line),u=sc(s,a,t.line),h=Hr(a,e.doc.direction),g="left";if(h){var m=Zt(h,t.ch);g=m%2?"right":"left"}var y=pl(u.map,t.ch,g);return y.offset=y.collapse=="right"?y.end:y.start,y}function Ua(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Be(e,t){return t&&(e.bad=!0),e}function Zl(e,t,s,a,u){var h="",g=!1,m=e.doc.lineSeparator(),y=!1;function C(R){return function(Z){return Z.id==R}}function z(){g&&(h+=m,y&&(h+=m),g=y=!1)}function M(R){R&&(z(),h+=R)}function N(R){if(R.nodeType==1){var Z=R.getAttribute("cm-text");if(Z){M(Z);return}var J=R.getAttribute("cm-marker"),le;if(J){var fe=e.findMarks(ie(a,0),ie(u+1,0),C(+J));fe.length&&(le=fe[0].find(0))&&M(vn(e.doc,le.from,le.to).join(m));return}if(R.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(R.nodeName);if(!/^br$/i.test(R.nodeName)&&R.textContent.length==0)return;Ce&&z();for(var de=0;de<R.childNodes.length;de++)N(R.childNodes[de]);/^(pre|p)$/i.test(R.nodeName)&&(y=!0),Ce&&(g=!0)}else R.nodeType==3&&M(R.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;N(t),t!=s;)t=t.nextSibling,y=!1;return h}function Ya(e,t,s){var a;if(t==e.display.lineDiv){if(a=e.display.lineDiv.childNodes[s],!a)return Be(e.clipPos(ie(e.display.viewTo-1)),!0);t=null,s=0}else for(a=t;;a=a.parentNode){if(!a||a==e.display.lineDiv)return null;if(a.parentNode&&a.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var h=e.display.view[u];if(h.node==a)return jo(h,t,s)}}function jo(e,t,s){var a=e.text.firstChild,u=!1;if(!t||!ve(a,t))return Be(ie(Lt(e.line),0),!0);if(t==a&&(u=!0,t=a.childNodes[s],s=0,!t)){var h=e.rest?Xe(e.rest):e.line;return Be(ie(Lt(h),h.text.length),u)}var g=t.nodeType==3?t:null,m=t;for(!g&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(g=t.firstChild,s&&(s=g.nodeValue.length));m.parentNode!=a;)m=m.parentNode;var y=e.measure,C=y.maps;function z(le,fe,Ce){for(var de=-1;de<(C?C.length:0);de++)for(var xe=de<0?y.map:C[de],Re=0;Re<xe.length;Re+=3){var Pe=xe[Re+2];if(Pe==le||Pe==fe){var lt=Lt(de<0?e.line:e.rest[de]),Ot=xe[Re]+Ce;return(Ce<0||Pe!=le)&&(Ot=xe[Re+(Ce?1:0)]),ie(lt,Ot)}}}var M=z(g,m,s);if(M)return Be(M,u);for(var N=m.nextSibling,R=g?g.nodeValue.length-s:0;N;N=N.nextSibling){if(M=z(N,N.firstChild,0),M)return Be(ie(M.line,M.ch-R),u);R+=N.textContent.length}for(var Z=m.previousSibling,J=s;Z;Z=Z.previousSibling){if(M=z(Z,Z.firstChild,-1),M)return Be(ie(M.line,M.ch+J),u);J+=Z.textContent.length}}var tr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ut,this.hasSelection=!1,this.composing=null};tr.prototype.init=function(e){var t=this,s=this,a=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ae&&(u.style.width="0px"),$e(u,"input",function(){S&&O>=9&&t.hasSelection&&(t.hasSelection=null),s.poll()}),$e(u,"paste",function(g){ir(a,g)||a0(g,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function h(g){if(!ir(a,g)){if(a.somethingSelected())On({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var m=s0(a);On({lineWise:!0,text:m.text}),g.type=="cut"?a.setSelections(m.ranges,null,at):(s.prevInput="",u.value=m.text.join(`
2137
+ `),Bt(u))}else return;g.type=="cut"&&(a.state.cutIncoming=+new Date)}}$e(u,"cut",h),$e(u,"copy",h),$e(e.scroller,"paste",function(g){if(!(zi(e,g)||ir(a,g))){if(!u.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var m=new Event("paste");m.clipboardData=g.clipboardData,u.dispatchEvent(m)}}),$e(e.lineSpace,"selectstart",function(g){zi(e,g)||xr(g)}),$e(u,"compositionstart",function(){var g=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:g,range:a.markText(g,a.getCursor("to"),{className:"CodeMirror-composing"})}}),$e(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},tr.prototype.createField=function(e){this.wrapper=t1(),this.textarea=this.wrapper.firstChild},tr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},tr.prototype.prepareSelection=function(){var e=this.cm,t=e.display,s=e.doc,a=bs(e);if(e.options.moveInputWithCursor){var u=Vn(e,s.sel.primary().head,"div"),h=t.wrapper.getBoundingClientRect(),g=t.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,u.top+g.top-h.top)),a.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,u.left+g.left-h.left))}return a},tr.prototype.showSelection=function(e){var t=this.cm,s=t.display;W(s.cursorDiv,e.cursors),W(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},tr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var s=t.getSelection();this.textarea.value=s,t.state.focused&&Bt(this.textarea),S&&O>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",S&&O>=9&&(this.hasSelection=null))}},tr.prototype.getField=function(){return this.textarea},tr.prototype.supportsTouch=function(){return!1},tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!pe||ot()!=this.textarea))try{this.textarea.focus()}catch{}},tr.prototype.blur=function(){this.textarea.blur()},tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tr.prototype.receivedFocus=function(){this.slowPoll()},tr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},tr.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function s(){var a=t.poll();!a&&!e?(e=!0,t.polling.set(60,s)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,s)},tr.prototype.poll=function(){var e=this,t=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!t.state.focused||Js(s)&&!a&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var u=s.value;if(u==a&&!t.somethingSelected())return!1;if(S&&O>=9&&this.hasSelection===u||he&&/[\uf700-\uf7ff]/.test(u))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var h=u.charCodeAt(0);if(h==8203&&!a&&(a="\u200B"),h==8666)return this.reset(),this.cm.execCommand("undo")}for(var g=0,m=Math.min(a.length,u.length);g<m&&a.charCodeAt(g)==u.charCodeAt(g);)++g;return Ar(t,function(){Ul(t,u.slice(g),a.length-g,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
2138
+ `)>-1?s.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tr.prototype.onKeyPress=function(){S&&O>=9&&(this.hasSelection=null),this.fastPoll()},tr.prototype.onContextMenu=function(e){var t=this,s=t.cm,a=s.display,u=t.textarea;t.contextMenuPending&&t.contextMenuPending();var h=si(s,e),g=a.scroller.scrollTop;if(!h||X)return;var m=s.options.resetSelectionOnContextMenu;m&&s.doc.sel.contains(h)==-1&&Kt(s,Lr)(s.doc,so(h),at);var y=u.style.cssText,C=t.wrapper.style.cssText,z=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
2126
2139
  top: `+(e.clientY-z.top-5)+"px; left: "+(e.clientX-z.left-5)+`px;
2127
2140
  z-index: 1000; background: `+(S?"rgba(255, 255, 255, .05)":"transparent")+`;
2128
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;I&&(M=window.scrollY),a.input.focus(),I&&window.scrollTo(null,M),a.input.reset(),s.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=R,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function N(){if(u.selectionStart!=null){var J=s.somethingSelected(),le="\u200B"+(J?u.value:"");u.value="\u21DA",u.value=le,t.prevInput=J?"":"\u200B",u.selectionStart=1,u.selectionEnd=le.length,a.selForContextMenu=s.doc.sel}}function R(){if(t.contextMenuPending==R&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,S&&k<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=p),u.selectionStart!=null)){(!S||S&&k<9)&&N();var J=0,le=function(){a.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Kt(s,Oc)(s):J++<10?a.detectingSelectAll=setTimeout(le,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(le,200)}}if(S&&k>=9&&N(),nt){Mo(e);var Z=function(){kr(window,"mouseup",Z),setTimeout(R,20)};$e(window,"mouseup",Z)}else setTimeout(R,50)},tr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},tr.prototype.setUneditable=function(){},tr.prototype.needsContentAttribute=!1;function l0(e,t){if(t=t?er(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var s=ot();t.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var u;if(e.form&&($e(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var p=h.submit=function(){a(),h.submit=u,h.submit(),h.submit=p}}catch{}}t.finishInit=function(y){y.save=a,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,a(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(kr(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return m}function r1(e){e.off=kr,e.on=$e,e.wheelEventPixels=Pf,e.Doc=Br,e.splitLines=Oo,e.countColumn=Ft,e.findColumn=Gt,e.isWordChar=tt,e.Pass=Ze,e.signal=Ge,e.Line=Tr,e.changeEnd=so,e.scrollbarModel=wl,e.Pos=ie,e.cmpPos=w,e.modes=Ln,e.mimeModes=pn,e.resolveMode=To,e.getMode=ha,e.modeExtensions=Fn,e.extendMode=Wn,e.copyState=gn,e.startState=os,e.innerMode=is,e.commands=Vo,e.keyMap=Oi,e.keyName=Qu,e.isModifierKey=Rl,e.lookupKey=Ti,e.normalizeKeyMap=$f,e.StringStream=Wt,e.SharedTextMarker=Ea,e.TextMarker=co,e.LineWidget=Ms,e.e_preventDefault=xr,e.e_stopPropagation=da,e.e_stop=Mo,e.addClass=At,e.contains=ve,e.rmClass=ye,e.keyNames=ho}Wl(Dt),Pi(Dt);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Vl in Br.prototype)Br.prototype.hasOwnProperty(Vl)&&_e(Wr,Vl)<0&&(Dt.prototype[Vl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Br.prototype[Vl]));return Bn(Br),Dt.inputStyles={textarea:tr,contenteditable:zt},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),tl.apply(this,arguments)},Dt.defineMIME=Li,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,t){Dt.prototype[e]=t},Dt.defineDocExtension=function(e,t){Br.prototype[e]=t},Dt.fromTextArea=l0,r1(Dt),Dt.version="5.62.3",Dt})}(fd)),fd.exports}var v0=Ja();const K9=`.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}
2129
- `,X9=Se`
2141
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;I&&(M=window.scrollY),a.input.focus(),I&&window.scrollTo(null,M),a.input.reset(),s.somethingSelected()||(u.value=t.prevInput=" "),t.contextMenuPending=R,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function N(){if(u.selectionStart!=null){var J=s.somethingSelected(),le="\u200B"+(J?u.value:"");u.value="\u21DA",u.value=le,t.prevInput=J?"":"\u200B",u.selectionStart=1,u.selectionEnd=le.length,a.selForContextMenu=s.doc.sel}}function R(){if(t.contextMenuPending==R&&(t.contextMenuPending=!1,t.wrapper.style.cssText=C,u.style.cssText=y,S&&O<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=g),u.selectionStart!=null)){(!S||S&&O<9)&&N();var J=0,le=function(){a.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&t.prevInput=="\u200B"?Kt(s,Oc)(s):J++<10?a.detectingSelectAll=setTimeout(le,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(le,200)}}if(S&&O>=9&&N(),nt){ko(e);var Z=function(){kr(window,"mouseup",Z),setTimeout(R,20)};$e(window,"mouseup",Z)}else setTimeout(R,50)},tr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},tr.prototype.setUneditable=function(){},tr.prototype.needsContentAttribute=!1;function l0(e,t){if(t=t?er(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var s=ot();t.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var u;if(e.form&&($e(e.form,"submit",a),!t.leaveSubmitMethodAlone)){var h=e.form;u=h.submit;try{var g=h.submit=function(){a(),h.submit=u,h.submit(),h.submit=g}}catch{}}t.finishInit=function(y){y.save=a,y.getTextArea=function(){return e},y.toTextArea=function(){y.toTextArea=isNaN,a(),e.parentNode.removeChild(y.getWrapperElement()),e.style.display="",e.form&&(kr(e.form,"submit",a),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},t);return m}function r1(e){e.off=kr,e.on=$e,e.wheelEventPixels=Pf,e.Doc=Br,e.splitLines=To,e.countColumn=Ft,e.findColumn=Gt,e.isWordChar=tt,e.Pass=Ze,e.signal=Ge,e.Line=Tr,e.changeEnd=lo,e.scrollbarModel=wl,e.Pos=ie,e.cmpPos=w,e.modes=Ln,e.mimeModes=pn,e.resolveMode=Po,e.getMode=va,e.modeExtensions=Fn,e.extendMode=Wn,e.copyState=gn,e.startState=as,e.innerMode=os,e.commands=Go,e.keyMap=Oi,e.keyName=Qu,e.isModifierKey=Rl,e.lookupKey=Ti,e.normalizeKeyMap=$f,e.StringStream=Wt,e.SharedTextMarker=Ra,e.TextMarker=fo,e.LineWidget=ks,e.e_preventDefault=xr,e.e_stopPropagation=ga,e.e_stop=ko,e.addClass=At,e.contains=ve,e.rmClass=ye,e.keyNames=po}Wl(Dt),Pi(Dt);var Wr="iter insert remove copy getEditor constructor".split(" ");for(var Vl in Br.prototype)Br.prototype.hasOwnProperty(Vl)&&_e(Wr,Vl)<0&&(Dt.prototype[Vl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Br.prototype[Vl]));return Bn(Br),Dt.inputStyles={textarea:tr,contenteditable:zt},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),tl.apply(this,arguments)},Dt.defineMIME=Li,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,t){Dt.prototype[e]=t},Dt.defineDocExtension=function(e,t){Br.prototype[e]=t},Dt.fromTextArea=l0,r1(Dt),Dt.version="5.62.3",Dt})})(ca);const v0=ca.exports,J9=`.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}
2142
+ `,e8=Se`
2130
2143
  .cm-s-skedulo .cm-header {
2131
2144
  color: blue;
2132
2145
  }
@@ -2204,12 +2217,12 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,s=[],a=e.length;t<=a;){var u=e.
2204
2217
  .cm-invalidchar {
2205
2218
  color: #f00;
2206
2219
  }
2207
- `;(function(r,n){(function(o){o(Ja())})(function(o){o.overlayMode=function(c,f,g){return{startState:function(){return{base:o.startState(c),overlay:o.startState(f),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(b){return{base:o.copyState(c,b.base),overlay:o.copyState(f,b.overlay),basePos:b.basePos,baseCur:null,overlayPos:b.overlayPos,overlayCur:null}},token:function(b,P){return(b!=P.streamSeen||Math.min(P.basePos,P.overlayPos)<b.start)&&(P.streamSeen=b,P.basePos=P.overlayPos=b.start),b.start==P.basePos&&(P.baseCur=c.token(b,P.base),P.basePos=b.pos),b.start==P.overlayPos&&(b.pos=b.start,P.overlayCur=f.token(b,P.overlay),P.overlayPos=b.pos),b.pos=Math.min(P.basePos,P.overlayPos),P.overlayCur==null?P.baseCur:P.baseCur!=null&&P.overlay.combineTokens||g&&P.overlay.combineTokens==null?P.baseCur+" "+P.overlayCur:P.overlayCur},indent:c.indent&&function(b,P,S){return c.indent(b.base,P,S)},electricChars:c.electricChars,innerMode:function(b){return{state:b.base,mode:c}},blankLine:function(b){var P,S;return c.blankLine&&(P=c.blankLine(b.base)),f.blankLine&&(S=f.blankLine(b.overlay)),S==null?P:g&&P!=null?P+" "+S:S}}}})})();(function(r,n){(function(o){o(Ja())})(function(o){o.defineMode("jinja2",function(){var c=["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"],f=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,b=["true","false"],P=/^(\d[+\-\*\/])?\d+(\.\d+)?/;c=new RegExp("(("+c.join(")|(")+"))\\b"),b=new RegExp("(("+b.join(")|(")+"))\\b");function S(k,I){var U=k.peek();if(I.incomment)return k.skipTo("#}")?(k.eatWhile(/\#|}/),I.incomment=!1):k.skipToEnd(),"comment";if(I.intag){if(I.operator){if(I.operator=!1,k.match(b))return"atom";if(k.match(P))return"number"}if(I.sign){if(I.sign=!1,k.match(b))return"atom";if(k.match(P))return"number"}if(I.instring)return U==I.instring&&(I.instring=!1),k.next(),"string";if(U=="'"||U=='"')return I.instring=U,k.next(),"string";if(k.match(I.intag+"}")||k.eat("-")&&k.match(I.intag+"}"))return I.intag=!1,"tag";if(k.match(f))return I.operator=!0,"operator";if(k.match(g))I.sign=!0;else if(k.eat(" ")||k.sol()){if(k.match(c))return"keyword";if(k.match(b))return"atom";if(k.match(P))return"number";k.sol()&&k.next()}else k.next();return"variable"}else if(k.eat("{")){if(k.eat("#"))return I.incomment=!0,k.skipTo("#}")?(k.eatWhile(/\#|}/),I.incomment=!1):k.skipToEnd(),"comment";if(U=k.eat(/\{|%/))return I.intag=U,U=="{"&&(I.intag="}"),k.eat("-"),"tag"}k.next()}return{startState:function(){return{tokenize:S}},token:function(k,I){return I.tokenize(k,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),o.defineMIME("text/jinja2","jinja2")})})();var Q9={exports:{}};(function(r,n){(function(o){o(Ja())})(function(o){var c={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},f={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};o.defineMode("xml",function(g,b){var P=g.indentUnit,S={},k=b.htmlMode?c:f;for(var I in k)S[I]=k[I];for(var I in b)S[I]=b[I];var U,q;function X(E,O){function ne(At){return O.tokenize=At,At(E,O)}var ve=E.next();if(ve=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ne(me("atom","]]>")):null:E.match("--")?ne(me("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ne(Ae(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),O.tokenize=me("meta","?>"),"meta"):(U=E.eat("/")?"closeTag":"openTag",O.tokenize=ce,"tag bracket");if(ve=="&"){var ot;return E.eat("#")?E.eat("x")?ot=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):ot=E.eatWhile(/[\d]/)&&E.eat(";"):ot=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),ot?"atom":"error"}else return E.eatWhile(/[^&<]/),null}X.isInText=!0;function ce(E,O){var ne=E.next();if(ne==">"||ne=="/"&&E.eat(">"))return O.tokenize=X,U=ne==">"?"endTag":"selfcloseTag","tag bracket";if(ne=="=")return U="equals",null;if(ne=="<"){O.tokenize=X,O.state=Te,O.tagName=O.tagStart=null;var ve=O.tokenize(E,O);return ve?ve+" tag error":"tag error"}else return/[\'\"]/.test(ne)?(O.tokenize=we(ne),O.stringStartCol=E.column(),O.tokenize(E,O)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function we(E){var O=function(ne,ve){for(;!ne.eol();)if(ne.next()==E){ve.tokenize=ce;break}return"string"};return O.isInAttribute=!0,O}function me(E,O){return function(ne,ve){for(;!ne.eol();){if(ne.match(O)){ve.tokenize=X;break}ne.next()}return E}}function Ae(E){return function(O,ne){for(var ve;(ve=O.next())!=null;){if(ve=="<")return ne.tokenize=Ae(E+1),ne.tokenize(O,ne);if(ve==">")if(E==1){ne.tokenize=X;break}else return ne.tokenize=Ae(E-1),ne.tokenize(O,ne)}return"meta"}}function Ie(E,O,ne){this.prev=E.context,this.tagName=O||"",this.indent=E.indented,this.startOfLine=ne,(S.doNotIndent.hasOwnProperty(O)||E.context&&E.context.noIndent)&&(this.noIndent=!0)}function pe(E){E.context&&(E.context=E.context.prev)}function he(E,O){for(var ne;;){if(!E.context||(ne=E.context.tagName,!S.contextGrabbers.hasOwnProperty(ne)||!S.contextGrabbers[ne].hasOwnProperty(O)))return;pe(E)}}function Te(E,O,ne){return E=="openTag"?(ne.tagStart=O.column(),He):E=="closeTag"?Ye:Te}function He(E,O,ne){return E=="word"?(ne.tagName=O.current(),q="tag",ge):S.allowMissingTagName&&E=="endTag"?(q="tag bracket",ge(E,O,ne)):(q="error",He)}function Ye(E,O,ne){if(E=="word"){var ve=O.current();return ne.context&&ne.context.tagName!=ve&&S.implicitlyClosed.hasOwnProperty(ne.context.tagName)&&pe(ne),ne.context&&ne.context.tagName==ve||S.matchClosing===!1?(q="tag",et):(q="tag error",nt)}else return S.allowMissingTagName&&E=="endTag"?(q="tag bracket",et(E,O,ne)):(q="error",nt)}function et(E,O,ne){return E!="endTag"?(q="error",et):(pe(ne),Te)}function nt(E,O,ne){return q="error",et(E,O,ne)}function ge(E,O,ne){if(E=="word")return q="attribute",ye;if(E=="endTag"||E=="selfcloseTag"){var ve=ne.tagName,ot=ne.tagStart;return ne.tagName=ne.tagStart=null,E=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(ve)?he(ne,ve):(he(ne,ve),ne.context=new Ie(ne,ve,ot==ne.indented)),Te}return q="error",ge}function ye(E,O,ne){return E=="equals"?it:(S.allowMissing||(q="error"),ge(E,O,ne))}function it(E,O,ne){return E=="string"?W:E=="word"&&S.allowUnquoted?(q="string",ge):(q="error",ge(E,O,ne))}function W(E,O,ne){return E=="string"?W:ge(E,O,ne)}return{startState:function(E){var O={tokenize:X,state:Te,indented:E||0,tagName:null,tagStart:null,context:null};return E!=null&&(O.baseIndent=E),O},token:function(E,O){if(!O.tagName&&E.sol()&&(O.indented=E.indentation()),E.eatSpace())return null;U=null;var ne=O.tokenize(E,O);return(ne||U)&&ne!="comment"&&(q=null,O.state=O.state(U||ne,E,O),q&&(ne=q=="error"?ne+" error":q)),ne},indent:function(E,O,ne){var ve=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+P;if(ve&&ve.noIndent)return o.Pass;if(E.tokenize!=ce&&E.tokenize!=X)return ne?ne.match(/^(\s*)/)[0].length:0;if(E.tagName)return S.multilineTagIndentPastTag!==!1?E.tagStart+E.tagName.length+2:E.tagStart+P*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/<!\[CDATA\[/.test(O))return 0;var ot=O&&/^<(\/)?([\w_:\.-]*)/.exec(O);if(ot&&ot[1])for(;ve;)if(ve.tagName==ot[2]){ve=ve.prev;break}else if(S.implicitlyClosed.hasOwnProperty(ve.tagName))ve=ve.prev;else break;else if(ot)for(;ve;){var At=S.contextGrabbers[ve.tagName];if(At&&At.hasOwnProperty(ot[2]))ve=ve.prev;else break}for(;ve&&ve.prev&&!ve.startOfLine;)ve=ve.prev;return ve?ve.indent+P:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(E){E.state==it&&(E.state=ge)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:E.type=="closeTag"}:null},xmlCurrentContext:function(E){for(var O=[],ne=E.context;ne;ne=ne.prev)O.push(ne.tagName);return O.reverse()}}}),o.defineMIME("text/xml","xml"),o.defineMIME("application/xml","xml"),o.mimeModes.hasOwnProperty("text/html")||o.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var J9={exports:{}};(function(r,n){(function(o){o(Ja())})(function(o){o.defineMode("javascript",function(c,f){var g=c.indentUnit,b=f.statementIndent,P=f.jsonld,S=f.json||P,k=f.trackScope!==!1,I=f.typescript,U=f.wordCharacters||/[\w$\xa1-\uffff]/,q=function(){function w(Or){return{type:Or,style:"keyword"}}var T=w("keyword a"),j=w("keyword b"),ae=w("keyword c"),qe=w("keyword d"),vt=w("operator"),be={type:"atom",style:"atom"};return{if:w("if"),while:T,with:T,else:j,do:j,try:j,finally:j,return:qe,break:qe,continue:qe,new:w("new"),delete:ae,void:ae,throw:ae,debugger:w("debugger"),var:w("var"),const:w("var"),let:w("var"),function:w("function"),catch:w("catch"),for:w("for"),switch:w("switch"),case:w("case"),default:w("default"),in:vt,typeof:vt,instanceof:vt,true:be,false:be,null:be,undefined:be,NaN:be,Infinity:be,this:w("this"),class:w("class"),super:w("atom"),yield:ae,export:w("export"),import:w("import"),extends:ae,await:ae}}(),X=/[+\-*&%=<>!?|~^@]/,ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function we(w){for(var T=!1,j,ae=!1;(j=w.next())!=null;){if(!T){if(j=="/"&&!ae)return;j=="["?ae=!0:ae&&j=="]"&&(ae=!1)}T=!T&&j=="\\"}}var me,Ae;function Ie(w,T,j){return me=w,Ae=j,T}function pe(w,T){var j=w.next();if(j=='"'||j=="'")return T.tokenize=he(j),T.tokenize(w,T);if(j=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(j=="."&&w.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(j))return Ie(j);if(j=="="&&w.eat(">"))return Ie("=>","operator");if(j=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(j))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(j=="/")return w.eat("*")?(T.tokenize=Te,Te(w,T)):w.eat("/")?(w.skipToEnd(),Ie("comment","comment")):ie(w,T,1)?(we(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(w.eat("="),Ie("operator","operator",w.current()));if(j=="`")return T.tokenize=He,He(w,T);if(j=="#"&&w.peek()=="!")return w.skipToEnd(),Ie("meta","meta");if(j=="#"&&w.eatWhile(U))return Ie("variable","property");if(j=="<"&&w.match("!--")||j=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ie("comment","comment");if(X.test(j))return(j!=">"||!T.lexical||T.lexical.type!=">")&&(w.eat("=")?(j=="!"||j=="=")&&w.eat("="):/[<>*+\-|&?]/.test(j)&&(w.eat(j),j==">"&&w.eat(j))),j=="?"&&w.eat(".")?Ie("."):Ie("operator","operator",w.current());if(U.test(j)){w.eatWhile(U);var ae=w.current();if(T.lastType!="."){if(q.propertyIsEnumerable(ae)){var qe=q[ae];return Ie(qe.type,qe.style,ae)}if(ae=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ae)}return Ie("variable","variable",ae)}}function he(w){return function(T,j){var ae=!1,qe;if(P&&T.peek()=="@"&&T.match(ce))return j.tokenize=pe,Ie("jsonld-keyword","meta");for(;(qe=T.next())!=null&&!(qe==w&&!ae);)ae=!ae&&qe=="\\";return ae||(j.tokenize=pe),Ie("string","string")}}function Te(w,T){for(var j=!1,ae;ae=w.next();){if(ae=="/"&&j){T.tokenize=pe;break}j=ae=="*"}return Ie("comment","comment")}function He(w,T){for(var j=!1,ae;(ae=w.next())!=null;){if(!j&&(ae=="`"||ae=="$"&&w.eat("{"))){T.tokenize=pe;break}j=!j&&ae=="\\"}return Ie("quasi","string-2",w.current())}var Ye="([{}])";function et(w,T){T.fatArrowAt&&(T.fatArrowAt=null);var j=w.string.indexOf("=>",w.start);if(!(j<0)){if(I){var ae=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,j));ae&&(j=ae.index)}for(var qe=0,vt=!1,be=j-1;be>=0;--be){var Or=w.string.charAt(be),nn=Ye.indexOf(Or);if(nn>=0&&nn<3){if(!qe){++be;break}if(--qe==0){Or=="("&&(vt=!0);break}}else if(nn>=3&&nn<6)++qe;else if(U.test(Or))vt=!0;else if(/["'\/`]/.test(Or))for(;;--be){if(be==0)return;var _i=w.string.charAt(be-1);if(_i==Or&&w.string.charAt(be-2)!="\\"){be--;break}}else if(vt&&!qe){++be;break}}vt&&!qe&&(T.fatArrowAt=be)}}var nt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ge(w,T,j,ae,qe,vt){this.indented=w,this.column=T,this.type=j,this.prev=qe,this.info=vt,ae!=null&&(this.align=ae)}function ye(w,T){if(!k)return!1;for(var j=w.localVars;j;j=j.next)if(j.name==T)return!0;for(var ae=w.context;ae;ae=ae.prev)for(var j=ae.vars;j;j=j.next)if(j.name==T)return!0}function it(w,T,j,ae,qe){var vt=w.cc;for(W.state=w,W.stream=qe,W.marked=null,W.cc=vt,W.style=T,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var be=vt.length?vt.pop():S?We:at;if(be(j,ae)){for(;vt.length&&vt[vt.length-1].lex;)vt.pop()();return W.marked?W.marked:j=="variable"&&ye(w,ae)?"variable-2":T}}}var W={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)W.cc.push(arguments[w])}function O(){return E.apply(null,arguments),!0}function ne(w,T){for(var j=T;j;j=j.next)if(j.name==w)return!0;return!1}function ve(w){var T=W.state;if(W.marked="def",!!k){if(T.context){if(T.lexical.info=="var"&&T.context&&T.context.block){var j=ot(w,T.context);if(j!=null){T.context=j;return}}else if(!ne(w,T.localVars)){T.localVars=new Bt(w,T.localVars);return}}f.globalVars&&!ne(w,T.globalVars)&&(T.globalVars=new Bt(w,T.globalVars))}}function ot(w,T){if(T)if(T.block){var j=ot(w,T.prev);return j?j==T.prev?T:new sr(j,T.vars,!0):null}else return ne(w,T.vars)?T:new sr(T.prev,new Bt(w,T.vars),!1);else return null}function At(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function sr(w,T,j){this.prev=w,this.vars=T,this.block=j}function Bt(w,T){this.name=w,this.next=T}var dn=new Bt("this",new Bt("arguments",null));function er(){W.state.context=new sr(W.state.context,W.state.localVars,!1),W.state.localVars=dn}function Ft(){W.state.context=new sr(W.state.context,W.state.localVars,!0),W.state.localVars=null}function ut(){W.state.localVars=W.state.context.vars,W.state.context=W.state.context.prev}ut.lex=!0;function _e(w,T){var j=function(){var ae=W.state,qe=ae.indented;if(ae.lexical.type=="stat")qe=ae.lexical.indented;else for(var vt=ae.lexical;vt&&vt.type==")"&&vt.align;vt=vt.prev)qe=vt.indented;ae.lexical=new ge(qe,W.stream.column(),w,null,ae.lexical,T)};return j.lex=!0,j}function Fe(){var w=W.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Fe.lex=!0;function Ze(w){function T(j){return j==w?O():w==";"||j=="}"||j==")"||j=="]"?E():O(T)}return T}function at(w,T){return w=="var"?O(_e("vardef",T),rs,Ze(";"),Fe):w=="keyword a"?O(_e("form"),qr,at,Fe):w=="keyword b"?O(_e("form"),at,Fe):w=="keyword d"?W.stream.match(/^\s*$/,!1)?O():O(_e("stat"),Xe,Ze(";"),Fe):w=="debugger"?O(Ze(";")):w=="{"?O(_e("}"),Ft,Hr,Fe,ut):w==";"?O():w=="if"?(W.state.lexical.info=="else"&&W.state.cc[W.state.cc.length-1]==Fe&&W.state.cc.pop()(),O(_e("form"),qr,at,Fe,Js)):w=="function"?O(Ln):w=="for"?O(_e("form"),Ft,el,at,ut,Fe):w=="class"||I&&T=="interface"?(W.marked="keyword",O(_e("form",w=="class"?w:T),ha,Fe)):w=="variable"?I&&T=="declare"?(W.marked="keyword",O(at)):I&&(T=="module"||T=="enum"||T=="type")&&W.stream.match(/^\s*\w/,!1)?(W.marked="keyword",T=="enum"?O(Un):T=="type"?O(tl,Ze("operator"),Ge,Ze(";")):O(_e("form"),Kr,Ze("{"),_e("}"),Hr,Fe,Fe)):I&&T=="namespace"?(W.marked="keyword",O(_e("form"),We,at,Fe)):I&&T=="abstract"?(W.marked="keyword",O(at)):O(_e("stat"),Qe):w=="switch"?O(_e("form"),qr,Ze("{"),_e("}","switch"),Ft,Hr,Fe,Fe,ut):w=="case"?O(We,Ze(":")):w=="default"?O(Ze(":")):w=="catch"?O(_e("form"),er,st,at,Fe,ut):w=="export"?O(_e("stat"),is,Fe):w=="import"?O(_e("stat"),Wt,Fe):w=="async"?O(at):T=="@"?O(We,at):E(_e("stat"),We,Ze(";"),Fe)}function st(w){if(w=="(")return O(Li,Ze(")"))}function We(w,T){return lr(w,T,!1)}function Gt(w,T){return lr(w,T,!0)}function qr(w){return w!="("?E():O(_e(")"),Xe,Ze(")"),Fe)}function lr(w,T,j){if(W.state.fatArrowAt==W.stream.start){var ae=j?tt:fr;if(w=="(")return O(er,_e(")"),Zt(Li,")"),Fe,Ze("=>"),ae,ut);if(w=="variable")return E(er,Kr,Ze("=>"),ae,ut)}var qe=j?kt:yt;return nt.hasOwnProperty(w)?O(qe):w=="function"?O(Ln,qe):w=="class"||I&&T=="interface"?(W.marked="keyword",O(_e("form"),To,Fe)):w=="keyword c"||w=="async"?O(j?Gt:We):w=="("?O(_e(")"),Xe,Ze(")"),Fe,qe):w=="operator"||w=="spread"?O(j?Gt:We):w=="["?O(_e("]"),Lt,Fe,qe):w=="{"?xi(Mr,"}",null,qe):w=="quasi"?E($r,qe):w=="new"?O(B(j)):O()}function Xe(w){return w.match(/[;\}\)\],]/)?E():E(We)}function yt(w,T){return w==","?O(Xe):kt(w,T,!1)}function kt(w,T,j){var ae=j==!1?yt:kt,qe=j==!1?We:Gt;if(w=="=>")return O(er,j?tt:fr,ut);if(w=="operator")return/\+\+|--/.test(T)||I&&T=="!"?O(ae):I&&T=="<"&&W.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(_e(">"),Zt(Ge,">"),Fe,ae):T=="?"?O(We,Ze(":"),qe):O(qe);if(w=="quasi")return E($r,ae);if(w!=";"){if(w=="(")return xi(Gt,")","call",ae);if(w==".")return O(dr,ae);if(w=="[")return O(_e("]"),Xe,Ze("]"),Fe,ae);if(I&&T=="as")return W.marked="keyword",O(Ge,ae);if(w=="regexp")return W.state.lastType=W.marked="operator",W.stream.backUp(W.stream.pos-W.stream.start-1),O(qe)}}function $r(w,T){return w!="quasi"?E():T.slice(T.length-2)!="${"?O($r):O(Xe,tn)}function tn(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,O($r)}function fr(w){return et(W.stream,W.state),E(w=="{"?at:We)}function tt(w){return et(W.stream,W.state),E(w=="{"?at:Gt)}function B(w){return function(T){return T=="."?O(w?V:oe):T=="variable"&&I?O(Mo,w?kt:yt):E(w?Gt:We)}}function oe(w,T){if(T=="target")return W.marked="keyword",O(yt)}function V(w,T){if(T=="target")return W.marked="keyword",O(kt)}function Qe(w){return w==":"?O(Fe,at):E(yt,Ze(";"),Fe)}function dr(w){if(w=="variable")return W.marked="property",O()}function Mr(w,T){if(w=="async")return W.marked="property",O(Mr);if(w=="variable"||W.style=="keyword"){if(W.marked="property",T=="get"||T=="set")return O($n);var j;return I&&W.state.fatArrowAt==W.stream.start&&(j=W.stream.match(/^\s*:\s*/,!1))&&(W.state.fatArrowAt=W.stream.pos+j[0].length),O(jr)}else{if(w=="number"||w=="string")return W.marked=P?"property":W.style+" property",O(jr);if(w=="jsonld-keyword")return O(jr);if(I&&At(T))return W.marked="keyword",O(Mr);if(w=="[")return O(We,Hn,Ze("]"),jr);if(w=="spread")return O(Gt,jr);if(T=="*")return W.marked="keyword",O(Mr);if(w==":")return E(jr)}}function $n(w){return w!="variable"?E(jr):(W.marked="property",O(Ln))}function jr(w){if(w==":")return O(Gt);if(w=="(")return E(Ln)}function Zt(w,T,j){function ae(qe,vt){if(j?j.indexOf(qe)>-1:qe==","){var be=W.state.lexical;return be.info=="call"&&(be.pos=(be.pos||0)+1),O(function(Or,nn){return Or==T||nn==T?E():E(w)},ae)}return qe==T||vt==T?O():j&&j.indexOf(";")>-1?E(w):O(Ze(T))}return function(qe,vt){return qe==T||vt==T?O():E(w,ae)}}function xi(w,T,j){for(var ae=3;ae<arguments.length;ae++)W.cc.push(arguments[ae]);return O(_e(T,j),Zt(w,T),Fe)}function Hr(w){return w=="}"?O():E(at,Hr)}function Hn(w,T){if(I){if(w==":")return O(Ge);if(T=="?")return O(Hn)}}function $e(w,T){if(I&&(w==":"||T=="in"))return O(Ge)}function Wi(w){if(I&&w==":")return W.stream.match(/^\s*\w+\s+is\b/,!1)?O(We,kr,Ge):O(Ge)}function kr(w,T){if(T=="is")return W.marked="keyword",O()}function Ge(w,T){if(T=="keyof"||T=="typeof"||T=="infer"||T=="readonly")return W.marked="keyword",O(T=="typeof"?Gt:Ge);if(w=="variable"||T=="void")return W.marked="type",O(hn);if(T=="|"||T=="&")return O(Ge);if(w=="string"||w=="number"||w=="atom")return O(hn);if(w=="[")return O(_e("]"),Zt(Ge,"]",","),Fe,hn);if(w=="{")return O(_e("}"),fa,Fe,hn);if(w=="(")return O(Zt(da,")"),ir,hn);if(w=="<")return O(Zt(Ge,">"),Ge);if(w=="quasi")return E(Bn,hn)}function ir(w){if(w=="=>")return O(Ge)}function fa(w){return w.match(/[\}\)\]]/)?O():w==","||w==";"?O(fa):E(wr,fa)}function wr(w,T){if(w=="variable"||W.style=="keyword")return W.marked="property",O(wr);if(T=="?"||w=="number"||w=="string")return O(wr);if(w==":")return O(Ge);if(w=="[")return O(Ze("variable"),$e,Ze("]"),wr);if(w=="(")return E(pn,wr);if(!w.match(/[;\}\)\],]/))return O()}function Bn(w,T){return w!="quasi"?E():T.slice(T.length-2)!="${"?O(Bn):O(Ge,xr)}function xr(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,O(Bn)}function da(w,T){return w=="variable"&&W.stream.match(/^\s*[?:]/,!1)||T=="?"?O(da):w==":"?O(Ge):w=="spread"?O(da):E(Ge)}function hn(w,T){if(T=="<")return O(_e(">"),Zt(Ge,">"),Fe,hn);if(T=="|"||w=="."||T=="&")return O(Ge);if(w=="[")return O(Ge,Ze("]"),hn);if(T=="extends"||T=="implements")return W.marked="keyword",O(Ge);if(T=="?")return O(Ge,Ze(":"),Ge)}function Mo(w,T){if(T=="<")return O(_e(">"),Zt(Ge,">"),Fe,hn)}function Ui(){return E(Ge,ts)}function ts(w,T){if(T=="=")return O(Ge)}function rs(w,T){return T=="enum"?(W.marked="keyword",O(Un)):E(Kr,Hn,ni,Oo)}function Kr(w,T){if(I&&At(T))return W.marked="keyword",O(Kr);if(w=="variable")return ve(T),O();if(w=="spread")return O(Kr);if(w=="[")return xi(ko,"]");if(w=="{")return xi(Qs,"}")}function Qs(w,T){return w=="variable"&&!W.stream.match(/^\s*:/,!1)?(ve(T),O(ni)):(w=="variable"&&(W.marked="property"),w=="spread"?O(Kr):w=="}"?E():w=="["?O(We,Ze("]"),Ze(":"),Qs):O(Ze(":"),Kr,ni))}function ko(){return E(Kr,ni)}function ni(w,T){if(T=="=")return O(Gt)}function Oo(w){if(w==",")return O(rs)}function Js(w,T){if(w=="keyword b"&&T=="else")return O(_e("form","else"),at,Fe)}function el(w,T){if(T=="await")return O(el);if(w=="(")return O(_e(")"),ns,Fe)}function ns(w){return w=="var"?O(rs,Yi):w=="variable"?O(Yi):E(Yi)}function Yi(w,T){return w==")"?O():w==";"?O(Yi):T=="in"||T=="of"?(W.marked="keyword",O(We,Yi)):E(We,Yi)}function Ln(w,T){if(T=="*")return W.marked="keyword",O(Ln);if(w=="variable")return ve(T),O(Ln);if(w=="(")return O(er,_e(")"),Zt(Li,")"),Fe,Wi,at,ut);if(I&&T=="<")return O(_e(">"),Zt(Ui,">"),Fe,Ln)}function pn(w,T){if(T=="*")return W.marked="keyword",O(pn);if(w=="variable")return ve(T),O(pn);if(w=="(")return O(er,_e(")"),Zt(Li,")"),Fe,Wi,ut);if(I&&T=="<")return O(_e(">"),Zt(Ui,">"),Fe,pn)}function tl(w,T){if(w=="keyword"||w=="variable")return W.marked="type",O(tl);if(T=="<")return O(_e(">"),Zt(Ui,">"),Fe)}function Li(w,T){return T=="@"&&O(We,Li),w=="spread"?O(Li):I&&At(T)?(W.marked="keyword",O(Li)):I&&w=="this"?O(Hn,ni):E(Kr,Hn,ni)}function To(w,T){return w=="variable"?ha(w,T):Fn(w,T)}function ha(w,T){if(w=="variable")return ve(T),O(Fn)}function Fn(w,T){if(T=="<")return O(_e(">"),Zt(Ui,">"),Fe,Fn);if(T=="extends"||T=="implements"||I&&w==",")return T=="implements"&&(W.marked="keyword"),O(I?Ge:We,Fn);if(w=="{")return O(_e("}"),Wn,Fe)}function Wn(w,T){if(w=="async"||w=="variable"&&(T=="static"||T=="get"||T=="set"||I&&At(T))&&W.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return W.marked="keyword",O(Wn);if(w=="variable"||W.style=="keyword")return W.marked="property",O(gn,Wn);if(w=="number"||w=="string")return O(gn,Wn);if(w=="[")return O(We,Hn,Ze("]"),gn,Wn);if(T=="*")return W.marked="keyword",O(Wn);if(I&&w=="(")return E(pn,Wn);if(w==";"||w==",")return O(Wn);if(w=="}")return O();if(T=="@")return O(We,Wn)}function gn(w,T){if(T=="!"||T=="?")return O(gn);if(w==":")return O(Ge,ni);if(T=="=")return O(Gt);var j=W.state.lexical.prev,ae=j&&j.info=="interface";return E(ae?pn:Ln)}function is(w,T){return T=="*"?(W.marked="keyword",O(rn,Ze(";"))):T=="default"?(W.marked="keyword",O(We,Ze(";"))):w=="{"?O(Zt(os,"}"),rn,Ze(";")):E(at)}function os(w,T){if(T=="as")return W.marked="keyword",O(Ze("variable"));if(w=="variable")return E(Gt,os)}function Wt(w){return w=="string"?O():w=="("?E(We):w=="."?E(yt):E(ke,vn,rn)}function ke(w,T){return w=="{"?xi(ke,"}"):(w=="variable"&&ve(T),T=="*"&&(W.marked="keyword"),O(as))}function vn(w){if(w==",")return O(ke,vn)}function as(w,T){if(T=="as")return W.marked="keyword",O(ke)}function rn(w,T){if(T=="from")return W.marked="keyword",O(We)}function Lt(w){return w=="]"?O():E(Zt(Gt,"]"))}function Un(){return E(_e("form"),Kr,Ze("{"),_e("}"),Zt(Zi,"}"),Fe,Fe)}function Zi(){return E(Kr,ni)}function pa(w,T){return w.lastType=="operator"||w.lastType==","||X.test(T.charAt(0))||/[,.]/.test(T.charAt(0))}function ie(w,T,j){return T.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(T.lastType)||T.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(j||0)))}return{startState:function(w){var T={tokenize:pe,lastType:"sof",cc:[],lexical:new ge((w||0)-g,0,"block",!1),localVars:f.localVars,context:f.localVars&&new sr(null,null,!1),indented:w||0};return f.globalVars&&typeof f.globalVars=="object"&&(T.globalVars=f.globalVars),T},token:function(w,T){if(w.sol()&&(T.lexical.hasOwnProperty("align")||(T.lexical.align=!1),T.indented=w.indentation(),et(w,T)),T.tokenize!=Te&&w.eatSpace())return null;var j=T.tokenize(w,T);return me=="comment"?j:(T.lastType=me=="operator"&&(Ae=="++"||Ae=="--")?"incdec":me,it(T,j,me,Ae,w))},indent:function(w,T){if(w.tokenize==Te||w.tokenize==He)return o.Pass;if(w.tokenize!=pe)return 0;var j=T&&T.charAt(0),ae=w.lexical,qe;if(!/^\s*else\b/.test(T))for(var vt=w.cc.length-1;vt>=0;--vt){var be=w.cc[vt];if(be==Fe)ae=ae.prev;else if(be!=Js&&be!=ut)break}for(;(ae.type=="stat"||ae.type=="form")&&(j=="}"||(qe=w.cc[w.cc.length-1])&&(qe==yt||qe==kt)&&!/^[,\.=+\-*:?[\(]/.test(T));)ae=ae.prev;b&&ae.type==")"&&ae.prev.type=="stat"&&(ae=ae.prev);var Or=ae.type,nn=j==Or;return Or=="vardef"?ae.indented+(w.lastType=="operator"||w.lastType==","?ae.info.length+1:0):Or=="form"&&j=="{"?ae.indented:Or=="form"?ae.indented+g:Or=="stat"?ae.indented+(pa(w,T)?b||g:0):ae.info=="switch"&&!nn&&f.doubleIndentSwitch!=!1?ae.indented+(/^(?:case|default)\b/.test(T)?g:2*g):ae.align?ae.column+(nn?0:1):ae.indented+(nn?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:S?null:"/*",blockCommentEnd:S?null:"*/",blockCommentContinue:S?null:" * ",lineComment:S?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:S?"json":"javascript",jsonldMode:P,jsonMode:S,expressionAllowed:ie,skipExpression:function(w){it(w,"atom","atom","true",new o.StringStream("",2,null))}}}),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var kp={exports:{}},Op;function e8(){return Op||(Op=1,function(r,n){(function(o){o(Ja())})(function(o){o.defineMode("css",function(ge,ye){var it=ye.inline;ye.propertyKeywords||(ye=o.resolveMode("text/css"));var W=ge.indentUnit,E=ye.tokenHooks,O=ye.documentTypes||{},ne=ye.mediaTypes||{},ve=ye.mediaFeatures||{},ot=ye.mediaValueKeywords||{},At=ye.propertyKeywords||{},sr=ye.nonStandardPropertyKeywords||{},Bt=ye.fontProperties||{},dn=ye.counterDescriptors||{},er=ye.colorKeywords||{},Ft=ye.valueKeywords||{},ut=ye.allowNested,_e=ye.lineComment,Fe=ye.supportsAtComponent===!0,Ze=ge.highlightNonStandardPropertyKeywords!==!1,at,st;function We(B,oe){return at=oe,B}function Gt(B,oe){var V=B.next();if(E[V]){var Qe=E[V](B,oe);if(Qe!==!1)return Qe}if(V=="@")return B.eatWhile(/[\w\\\-]/),We("def",B.current());if(V=="="||(V=="~"||V=="|")&&B.eat("="))return We(null,"compare");if(V=='"'||V=="'")return oe.tokenize=qr(V),oe.tokenize(B,oe);if(V=="#")return B.eatWhile(/[\w\\\-]/),We("atom","hash");if(V=="!")return B.match(/^\s*\w*/),We("keyword","important");if(/\d/.test(V)||V=="."&&B.eat(/\d/))return B.eatWhile(/[\w.%]/),We("number","unit");if(V==="-"){if(/[\d.]/.test(B.peek()))return B.eatWhile(/[\w.%]/),We("number","unit");if(B.match(/^-[\w\\\-]*/))return B.eatWhile(/[\w\\\-]/),B.match(/^\s*:/,!1)?We("variable-2","variable-definition"):We("variable-2","variable");if(B.match(/^\w+-/))return We("meta","meta")}else return/[,+>*\/]/.test(V)?We(null,"select-op"):V=="."&&B.match(/^-?[_a-z][_a-z0-9-]*/i)?We("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(V)?We(null,V):B.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(B.current())&&(oe.tokenize=lr),We("variable callee","variable")):/[\w\\\-]/.test(V)?(B.eatWhile(/[\w\\\-]/),We("property","word")):We(null,null)}function qr(B){return function(oe,V){for(var Qe=!1,dr;(dr=oe.next())!=null;){if(dr==B&&!Qe){B==")"&&oe.backUp(1);break}Qe=!Qe&&dr=="\\"}return(dr==B||!Qe&&B!=")")&&(V.tokenize=null),We("string","string")}}function lr(B,oe){return B.next(),B.match(/^\s*[\"\')]/,!1)?oe.tokenize=null:oe.tokenize=qr(")"),We(null,"(")}function Xe(B,oe,V){this.type=B,this.indent=oe,this.prev=V}function yt(B,oe,V,Qe){return B.context=new Xe(V,oe.indentation()+(Qe===!1?0:W),B.context),V}function kt(B){return B.context.prev&&(B.context=B.context.prev),B.context.type}function $r(B,oe,V){return tt[V.context.type](B,oe,V)}function tn(B,oe,V,Qe){for(var dr=Qe||1;dr>0;dr--)V.context=V.context.prev;return $r(B,oe,V)}function fr(B){var oe=B.current().toLowerCase();Ft.hasOwnProperty(oe)?st="atom":er.hasOwnProperty(oe)?st="keyword":st="variable"}var tt={};return tt.top=function(B,oe,V){if(B=="{")return yt(V,oe,"block");if(B=="}"&&V.context.prev)return kt(V);if(Fe&&/@component/i.test(B))return yt(V,oe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(B))return yt(V,oe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(B))return yt(V,oe,"atBlock");if(/^@(font-face|counter-style)/i.test(B))return V.stateArg=B,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(B))return"keyframes";if(B&&B.charAt(0)=="@")return yt(V,oe,"at");if(B=="hash")st="builtin";else if(B=="word")st="tag";else{if(B=="variable-definition")return"maybeprop";if(B=="interpolation")return yt(V,oe,"interpolation");if(B==":")return"pseudo";if(ut&&B=="(")return yt(V,oe,"parens")}return V.context.type},tt.block=function(B,oe,V){if(B=="word"){var Qe=oe.current().toLowerCase();return At.hasOwnProperty(Qe)?(st="property","maybeprop"):sr.hasOwnProperty(Qe)?(st=Ze?"string-2":"property","maybeprop"):ut?(st=oe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(st+=" error","maybeprop")}else return B=="meta"?"block":!ut&&(B=="hash"||B=="qualifier")?(st="error","block"):tt.top(B,oe,V)},tt.maybeprop=function(B,oe,V){return B==":"?yt(V,oe,"prop"):$r(B,oe,V)},tt.prop=function(B,oe,V){if(B==";")return kt(V);if(B=="{"&&ut)return yt(V,oe,"propBlock");if(B=="}"||B=="{")return tn(B,oe,V);if(B=="(")return yt(V,oe,"parens");if(B=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(oe.current()))st+=" error";else if(B=="word")fr(oe);else if(B=="interpolation")return yt(V,oe,"interpolation");return"prop"},tt.propBlock=function(B,oe,V){return B=="}"?kt(V):B=="word"?(st="property","maybeprop"):V.context.type},tt.parens=function(B,oe,V){return B=="{"||B=="}"?tn(B,oe,V):B==")"?kt(V):B=="("?yt(V,oe,"parens"):B=="interpolation"?yt(V,oe,"interpolation"):(B=="word"&&fr(oe),"parens")},tt.pseudo=function(B,oe,V){return B=="meta"?"pseudo":B=="word"?(st="variable-3",V.context.type):$r(B,oe,V)},tt.documentTypes=function(B,oe,V){return B=="word"&&O.hasOwnProperty(oe.current())?(st="tag",V.context.type):tt.atBlock(B,oe,V)},tt.atBlock=function(B,oe,V){if(B=="(")return yt(V,oe,"atBlock_parens");if(B=="}"||B==";")return tn(B,oe,V);if(B=="{")return kt(V)&&yt(V,oe,ut?"block":"top");if(B=="interpolation")return yt(V,oe,"interpolation");if(B=="word"){var Qe=oe.current().toLowerCase();Qe=="only"||Qe=="not"||Qe=="and"||Qe=="or"?st="keyword":ne.hasOwnProperty(Qe)?st="attribute":ve.hasOwnProperty(Qe)?st="property":ot.hasOwnProperty(Qe)?st="keyword":At.hasOwnProperty(Qe)?st="property":sr.hasOwnProperty(Qe)?st=Ze?"string-2":"property":Ft.hasOwnProperty(Qe)?st="atom":er.hasOwnProperty(Qe)?st="keyword":st="error"}return V.context.type},tt.atComponentBlock=function(B,oe,V){return B=="}"?tn(B,oe,V):B=="{"?kt(V)&&yt(V,oe,ut?"block":"top",!1):(B=="word"&&(st="error"),V.context.type)},tt.atBlock_parens=function(B,oe,V){return B==")"?kt(V):B=="{"||B=="}"?tn(B,oe,V,2):tt.atBlock(B,oe,V)},tt.restricted_atBlock_before=function(B,oe,V){return B=="{"?yt(V,oe,"restricted_atBlock"):B=="word"&&V.stateArg=="@counter-style"?(st="variable","restricted_atBlock_before"):$r(B,oe,V)},tt.restricted_atBlock=function(B,oe,V){return B=="}"?(V.stateArg=null,kt(V)):B=="word"?(V.stateArg=="@font-face"&&!Bt.hasOwnProperty(oe.current().toLowerCase())||V.stateArg=="@counter-style"&&!dn.hasOwnProperty(oe.current().toLowerCase())?st="error":st="property","maybeprop"):"restricted_atBlock"},tt.keyframes=function(B,oe,V){return B=="word"?(st="variable","keyframes"):B=="{"?yt(V,oe,"top"):$r(B,oe,V)},tt.at=function(B,oe,V){return B==";"?kt(V):B=="{"||B=="}"?tn(B,oe,V):(B=="word"?st="tag":B=="hash"&&(st="builtin"),"at")},tt.interpolation=function(B,oe,V){return B=="}"?kt(V):B=="{"||B==";"?tn(B,oe,V):(B=="word"?st="variable":B!="variable"&&B!="("&&B!=")"&&(st="error"),"interpolation")},{startState:function(B){return{tokenize:null,state:it?"block":"top",stateArg:null,context:new Xe(it?"block":"top",B||0,null)}},token:function(B,oe){if(!oe.tokenize&&B.eatSpace())return null;var V=(oe.tokenize||Gt)(B,oe);return V&&typeof V=="object"&&(at=V[1],V=V[0]),st=V,at!="comment"&&(oe.state=tt[oe.state](at,B,oe)),st},indent:function(B,oe){var V=B.context,Qe=oe&&oe.charAt(0),dr=V.indent;return V.type=="prop"&&(Qe=="}"||Qe==")")&&(V=V.prev),V.prev&&(Qe=="}"&&(V.type=="block"||V.type=="top"||V.type=="interpolation"||V.type=="restricted_atBlock")?(V=V.prev,dr=V.indent):(Qe==")"&&(V.type=="parens"||V.type=="atBlock_parens")||Qe=="{"&&(V.type=="at"||V.type=="atBlock"))&&(dr=Math.max(0,V.indent-W))),dr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function c(ge){for(var ye={},it=0;it<ge.length;++it)ye[ge[it].toLowerCase()]=!0;return ye}var f=["domain","regexp","url","url-prefix"],g=c(f),b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],P=c(b),S=["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"],k=c(S),I=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],U=c(I),q=["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"],X=c(q),ce=["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"],we=c(ce),me=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ae=c(me),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=c(Ie),he=["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"],Te=c(he),He=["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"],Ye=c(He),et=f.concat(b).concat(S).concat(I).concat(q).concat(ce).concat(he).concat(He);o.registerHelper("hintWords","css",et);function nt(ge,ye){for(var it=!1,W;(W=ge.next())!=null;){if(it&&W=="/"){ye.tokenize=null;break}it=W=="*"}return["comment","comment"]}o.defineMIME("text/css",{documentTypes:g,mediaTypes:P,mediaFeatures:k,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:we,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,tokenHooks:{"/":function(ge,ye){return ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):!1}},name:"css"}),o.defineMIME("text/x-scss",{mediaTypes:P,mediaFeatures:k,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:we,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ge,ye){return ge.eat("/")?(ge.skipToEnd(),["comment","comment"]):ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):["operator","operator"]},":":function(ge){return ge.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ge){return ge.match(/^[\w-]+/),ge.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ge){return ge.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),o.defineMIME("text/x-less",{mediaTypes:P,mediaFeatures:k,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:we,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ge,ye){return ge.eat("/")?(ge.skipToEnd(),["comment","comment"]):ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):["operator","operator"]},"@":function(ge){return ge.eat("{")?[null,"interpolation"]:ge.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ge.eatWhile(/[\w\\\-]/),ge.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),o.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:P,mediaFeatures:k,propertyKeywords:X,nonStandardPropertyKeywords:we,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,supportsAtComponent:!0,tokenHooks:{"/":function(ge,ye){return ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):!1}},name:"css",helperType:"gss"})})}()),kp.exports}(function(r,n){(function(o){o(Ja(),Q9.exports,J9.exports,e8())})(function(o){var c={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 f(U,q,X){var ce=U.current(),we=ce.search(q);return we>-1?U.backUp(ce.length-we):ce.match(/<\/?$/)&&(U.backUp(ce.length),U.match(q,!1)||U.match(ce)),X}var g={};function b(U){var q=g[U];return q||(g[U]=new RegExp("\\s+"+U+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function P(U,q){var X=U.match(b(q));return X?/^\s*(.*?)\s*$/.exec(X[2])[1]:""}function S(U,q){return new RegExp((q?"^":"")+"</s*"+U+"s*>","i")}function k(U,q){for(var X in U)for(var ce=q[X]||(q[X]=[]),we=U[X],me=we.length-1;me>=0;me--)ce.unshift(we[me])}function I(U,q){for(var X=0;X<U.length;X++){var ce=U[X];if(!ce[0]||ce[1].test(P(q,ce[0])))return ce[2]}}o.defineMode("htmlmixed",function(U,q){var X=o.getMode(U,{name:"xml",htmlMode:!0,multilineTagIndentFactor:q.multilineTagIndentFactor,multilineTagIndentPastTag:q.multilineTagIndentPastTag,allowMissingTagName:q.allowMissingTagName}),ce={},we=q&&q.tags,me=q&&q.scriptTypes;if(k(c,ce),we&&k(we,ce),me)for(var Ae=me.length-1;Ae>=0;Ae--)ce.script.unshift(["type",me[Ae].matches,me[Ae].mode]);function Ie(pe,he){var Te=X.token(pe,he.htmlState),He=/\btag\b/.test(Te),Ye;if(He&&!/[<>\s\/]/.test(pe.current())&&(Ye=he.htmlState.tagName&&he.htmlState.tagName.toLowerCase())&&ce.hasOwnProperty(Ye))he.inTag=Ye+" ";else if(he.inTag&&He&&/>$/.test(pe.current())){var et=/^([\S]+) (.*)/.exec(he.inTag);he.inTag=null;var nt=pe.current()==">"&&I(ce[et[1]],et[2]),ge=o.getMode(U,nt),ye=S(et[1],!0),it=S(et[1],!1);he.token=function(W,E){return W.match(ye,!1)?(E.token=Ie,E.localState=E.localMode=null,null):f(W,it,E.localMode.token(W,E.localState))},he.localMode=ge,he.localState=o.startState(ge,X.indent(he.htmlState,"",""))}else he.inTag&&(he.inTag+=pe.current(),pe.eol()&&(he.inTag+=" "));return Te}return{startState:function(){var pe=o.startState(X);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var he;return pe.localState&&(he=o.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:he,htmlState:o.copyState(X,pe.htmlState)}},token:function(pe,he){return he.token(pe,he)},indent:function(pe,he,Te){return!pe.localMode||/^\s*<\//.test(he)?X.indent(pe.htmlState,he,Te):pe.localMode.indent?pe.localMode.indent(pe.localState,he,Te):o.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||X}}}},"xml","javascript","css"),o.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(o){o(Ja())})(function(o){o.defineOption("placeholder","",function(k,I,U){var q=U&&U!=o.Init;if(I&&!q)k.on("blur",b),k.on("change",P),k.on("swapDoc",P),o.on(k.getInputField(),"compositionupdate",k.state.placeholderCompose=function(){g(k)}),P(k);else if(!I&&q){k.off("blur",b),k.off("change",P),k.off("swapDoc",P),o.off(k.getInputField(),"compositionupdate",k.state.placeholderCompose),c(k);var X=k.getWrapperElement();X.className=X.className.replace(" CodeMirror-empty","")}I&&!k.hasFocus()&&b(k)});function c(k){k.state.placeholder&&(k.state.placeholder.parentNode.removeChild(k.state.placeholder),k.state.placeholder=null)}function f(k){c(k);var I=k.state.placeholder=document.createElement("pre");I.style.cssText="height: 0; overflow: visible",I.style.direction=k.getOption("direction"),I.className="CodeMirror-placeholder CodeMirror-line-like";var U=k.getOption("placeholder");typeof U=="string"&&(U=document.createTextNode(U)),I.appendChild(U),k.display.lineSpace.insertBefore(I,k.display.lineSpace.firstChild)}function g(k){setTimeout(function(){var I=!1;if(k.lineCount()==1){var U=k.getInputField();I=U.nodeName=="TEXTAREA"?!k.getLine(0).length:!/[^\u200b]/.test(U.querySelector(".CodeMirror-line").textContent)}I?f(k):c(k)},20)}function b(k){S(k)&&f(k)}function P(k){var I=k.getWrapperElement(),U=S(k);I.className=I.className.replace(" CodeMirror-empty","")+(U?" CodeMirror-empty":""),U?f(k):c(k)}function S(k){return k.lineCount()===1&&k.getLine(0)===""}})})();var t8=Object.defineProperty,r8=Object.getOwnPropertyDescriptor,hu=(r,n,o,c)=>{for(var f=c>1?void 0:c?r8(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&t8(n,o,f),f};v0.defineMode("nunjucks",(r,n)=>v0.overlayMode(v0.getMode(r,n.backdrop||"text/html"),v0.getMode(r,"jinja2")));const W2=Ee("input-code"),n8={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks"};exports.InputCode=class extends Rn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(r){this.value=r.getValue(),this.dispatchChange()}updated(){var r,n;super.updated(),this.value!==this.editorValue&&(this.editorValue=this.value||""),this.readonly!==((r=this.editor)==null?void 0:r.isReadOnly())&&((n=this.editor)==null||n.setOption("readOnly",this.readonly)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()})}get editorValue(){var r;return((r=this.editor)==null?void 0:r.getDoc().getValue())||""}set editorValue(r){var n;(n=this.editor)==null||n.setValue(r)}firstUpdated(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");r&&(this.editor=v0.fromTextArea(r,{mode:n8[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:o=>{const c=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.editor)==null||r.off("change",this.changeHandler)}renderInput(){return ee`
2220
+ `;(function(r,n){(function(o){o(ca.exports)})(function(o){o.overlayMode=function(c,f,p){return{startState:function(){return{base:o.startState(c),overlay:o.startState(f),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(b){return{base:o.copyState(c,b.base),overlay:o.copyState(f,b.overlay),basePos:b.basePos,baseCur:null,overlayPos:b.overlayPos,overlayCur:null}},token:function(b,k){return(b!=k.streamSeen||Math.min(k.basePos,k.overlayPos)<b.start)&&(k.streamSeen=b,k.basePos=k.overlayPos=b.start),b.start==k.basePos&&(k.baseCur=c.token(b,k.base),k.basePos=b.pos),b.start==k.overlayPos&&(b.pos=b.start,k.overlayCur=f.token(b,k.overlay),k.overlayPos=b.pos),b.pos=Math.min(k.basePos,k.overlayPos),k.overlayCur==null?k.baseCur:k.baseCur!=null&&k.overlay.combineTokens||p&&k.overlay.combineTokens==null?k.baseCur+" "+k.overlayCur:k.overlayCur},indent:c.indent&&function(b,k,S){return c.indent(b.base,k,S)},electricChars:c.electricChars,innerMode:function(b){return{state:b.base,mode:c}},blankLine:function(b){var k,S;return c.blankLine&&(k=c.blankLine(b.base)),f.blankLine&&(S=f.blankLine(b.overlay)),S==null?k:p&&k!=null?k+" "+S:S}}}})})();(function(r,n){(function(o){o(ca.exports)})(function(o){o.defineMode("jinja2",function(){var c=["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"],f=/^[+\-*&%=<>!?|~^]/,p=/^[:\[\(\{]/,b=["true","false"],k=/^(\d[+\-\*\/])?\d+(\.\d+)?/;c=new RegExp("(("+c.join(")|(")+"))\\b"),b=new RegExp("(("+b.join(")|(")+"))\\b");function S(O,I){var U=O.peek();if(I.incomment)return O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(I.intag){if(I.operator){if(I.operator=!1,O.match(b))return"atom";if(O.match(k))return"number"}if(I.sign){if(I.sign=!1,O.match(b))return"atom";if(O.match(k))return"number"}if(I.instring)return U==I.instring&&(I.instring=!1),O.next(),"string";if(U=="'"||U=='"')return I.instring=U,O.next(),"string";if(O.match(I.intag+"}")||O.eat("-")&&O.match(I.intag+"}"))return I.intag=!1,"tag";if(O.match(f))return I.operator=!0,"operator";if(O.match(p))I.sign=!0;else if(O.eat(" ")||O.sol()){if(O.match(c))return"keyword";if(O.match(b))return"atom";if(O.match(k))return"number";O.sol()&&O.next()}else O.next();return"variable"}else if(O.eat("{")){if(O.eat("#"))return I.incomment=!0,O.skipTo("#}")?(O.eatWhile(/\#|}/),I.incomment=!1):O.skipToEnd(),"comment";if(U=O.eat(/\{|%/))return I.intag=U,U=="{"&&(I.intag="}"),O.eat("-"),"tag"}O.next()}return{startState:function(){return{tokenize:S}},token:function(O,I){return I.tokenize(O,I)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),o.defineMIME("text/jinja2","jinja2")})})();var t8={exports:{}};(function(r,n){(function(o){o(ca.exports)})(function(o){var c={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},f={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};o.defineMode("xml",function(p,b){var k=p.indentUnit,S={},O=b.htmlMode?c:f;for(var I in O)S[I]=O[I];for(var I in b)S[I]=b[I];var U,q;function X(E,T){function ne(At){return T.tokenize=At,At(E,T)}var ve=E.next();if(ve=="<")return E.eat("!")?E.eat("[")?E.match("CDATA[")?ne(me("atom","]]>")):null:E.match("--")?ne(me("comment","-->")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),ne(Ae(1))):null:E.eat("?")?(E.eatWhile(/[\w\._\-]/),T.tokenize=me("meta","?>"),"meta"):(U=E.eat("/")?"closeTag":"openTag",T.tokenize=ce,"tag bracket");if(ve=="&"){var ot;return E.eat("#")?E.eat("x")?ot=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):ot=E.eatWhile(/[\d]/)&&E.eat(";"):ot=E.eatWhile(/[\w\.\-:]/)&&E.eat(";"),ot?"atom":"error"}else return E.eatWhile(/[^&<]/),null}X.isInText=!0;function ce(E,T){var ne=E.next();if(ne==">"||ne=="/"&&E.eat(">"))return T.tokenize=X,U=ne==">"?"endTag":"selfcloseTag","tag bracket";if(ne=="=")return U="equals",null;if(ne=="<"){T.tokenize=X,T.state=Te,T.tagName=T.tagStart=null;var ve=T.tokenize(E,T);return ve?ve+" tag error":"tag error"}else return/[\'\"]/.test(ne)?(T.tokenize=we(ne),T.stringStartCol=E.column(),T.tokenize(E,T)):(E.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function we(E){var T=function(ne,ve){for(;!ne.eol();)if(ne.next()==E){ve.tokenize=ce;break}return"string"};return T.isInAttribute=!0,T}function me(E,T){return function(ne,ve){for(;!ne.eol();){if(ne.match(T)){ve.tokenize=X;break}ne.next()}return E}}function Ae(E){return function(T,ne){for(var ve;(ve=T.next())!=null;){if(ve=="<")return ne.tokenize=Ae(E+1),ne.tokenize(T,ne);if(ve==">")if(E==1){ne.tokenize=X;break}else return ne.tokenize=Ae(E-1),ne.tokenize(T,ne)}return"meta"}}function Ie(E,T,ne){this.prev=E.context,this.tagName=T||"",this.indent=E.indented,this.startOfLine=ne,(S.doNotIndent.hasOwnProperty(T)||E.context&&E.context.noIndent)&&(this.noIndent=!0)}function pe(E){E.context&&(E.context=E.context.prev)}function he(E,T){for(var ne;;){if(!E.context||(ne=E.context.tagName,!S.contextGrabbers.hasOwnProperty(ne)||!S.contextGrabbers[ne].hasOwnProperty(T)))return;pe(E)}}function Te(E,T,ne){return E=="openTag"?(ne.tagStart=T.column(),He):E=="closeTag"?Ye:Te}function He(E,T,ne){return E=="word"?(ne.tagName=T.current(),q="tag",ge):S.allowMissingTagName&&E=="endTag"?(q="tag bracket",ge(E,T,ne)):(q="error",He)}function Ye(E,T,ne){if(E=="word"){var ve=T.current();return ne.context&&ne.context.tagName!=ve&&S.implicitlyClosed.hasOwnProperty(ne.context.tagName)&&pe(ne),ne.context&&ne.context.tagName==ve||S.matchClosing===!1?(q="tag",et):(q="tag error",nt)}else return S.allowMissingTagName&&E=="endTag"?(q="tag bracket",et(E,T,ne)):(q="error",nt)}function et(E,T,ne){return E!="endTag"?(q="error",et):(pe(ne),Te)}function nt(E,T,ne){return q="error",et(E,T,ne)}function ge(E,T,ne){if(E=="word")return q="attribute",ye;if(E=="endTag"||E=="selfcloseTag"){var ve=ne.tagName,ot=ne.tagStart;return ne.tagName=ne.tagStart=null,E=="selfcloseTag"||S.autoSelfClosers.hasOwnProperty(ve)?he(ne,ve):(he(ne,ve),ne.context=new Ie(ne,ve,ot==ne.indented)),Te}return q="error",ge}function ye(E,T,ne){return E=="equals"?it:(S.allowMissing||(q="error"),ge(E,T,ne))}function it(E,T,ne){return E=="string"?W:E=="word"&&S.allowUnquoted?(q="string",ge):(q="error",ge(E,T,ne))}function W(E,T,ne){return E=="string"?W:ge(E,T,ne)}return{startState:function(E){var T={tokenize:X,state:Te,indented:E||0,tagName:null,tagStart:null,context:null};return E!=null&&(T.baseIndent=E),T},token:function(E,T){if(!T.tagName&&E.sol()&&(T.indented=E.indentation()),E.eatSpace())return null;U=null;var ne=T.tokenize(E,T);return(ne||U)&&ne!="comment"&&(q=null,T.state=T.state(U||ne,E,T),q&&(ne=q=="error"?ne+" error":q)),ne},indent:function(E,T,ne){var ve=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+k;if(ve&&ve.noIndent)return o.Pass;if(E.tokenize!=ce&&E.tokenize!=X)return ne?ne.match(/^(\s*)/)[0].length:0;if(E.tagName)return S.multilineTagIndentPastTag!==!1?E.tagStart+E.tagName.length+2:E.tagStart+k*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/<!\[CDATA\[/.test(T))return 0;var ot=T&&/^<(\/)?([\w_:\.-]*)/.exec(T);if(ot&&ot[1])for(;ve;)if(ve.tagName==ot[2]){ve=ve.prev;break}else if(S.implicitlyClosed.hasOwnProperty(ve.tagName))ve=ve.prev;else break;else if(ot)for(;ve;){var At=S.contextGrabbers[ve.tagName];if(At&&At.hasOwnProperty(ot[2]))ve=ve.prev;else break}for(;ve&&ve.prev&&!ve.startOfLine;)ve=ve.prev;return ve?ve.indent+k:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(E){E.state==it&&(E.state=ge)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:E.type=="closeTag"}:null},xmlCurrentContext:function(E){for(var T=[],ne=E.context;ne;ne=ne.prev)T.push(ne.tagName);return T.reverse()}}}),o.defineMIME("text/xml","xml"),o.defineMIME("application/xml","xml"),o.mimeModes.hasOwnProperty("text/html")||o.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var r8={exports:{}};(function(r,n){(function(o){o(ca.exports)})(function(o){o.defineMode("javascript",function(c,f){var p=c.indentUnit,b=f.statementIndent,k=f.jsonld,S=f.json||k,O=f.trackScope!==!1,I=f.typescript,U=f.wordCharacters||/[\w$\xa1-\uffff]/,q=function(){function w(Or){return{type:Or,style:"keyword"}}var P=w("keyword a"),j=w("keyword b"),ae=w("keyword c"),qe=w("keyword d"),vt=w("operator"),be={type:"atom",style:"atom"};return{if:w("if"),while:P,with:P,else:j,do:j,try:j,finally:j,return:qe,break:qe,continue:qe,new:w("new"),delete:ae,void:ae,throw:ae,debugger:w("debugger"),var:w("var"),const:w("var"),let:w("var"),function:w("function"),catch:w("catch"),for:w("for"),switch:w("switch"),case:w("case"),default:w("default"),in:vt,typeof:vt,instanceof:vt,true:be,false:be,null:be,undefined:be,NaN:be,Infinity:be,this:w("this"),class:w("class"),super:w("atom"),yield:ae,export:w("export"),import:w("import"),extends:ae,await:ae}}(),X=/[+\-*&%=<>!?|~^@]/,ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function we(w){for(var P=!1,j,ae=!1;(j=w.next())!=null;){if(!P){if(j=="/"&&!ae)return;j=="["?ae=!0:ae&&j=="]"&&(ae=!1)}P=!P&&j=="\\"}}var me,Ae;function Ie(w,P,j){return me=w,Ae=j,P}function pe(w,P){var j=w.next();if(j=='"'||j=="'")return P.tokenize=he(j),P.tokenize(w,P);if(j=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(j=="."&&w.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(j))return Ie(j);if(j=="="&&w.eat(">"))return Ie("=>","operator");if(j=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(j))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(j=="/")return w.eat("*")?(P.tokenize=Te,Te(w,P)):w.eat("/")?(w.skipToEnd(),Ie("comment","comment")):ie(w,P,1)?(we(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(w.eat("="),Ie("operator","operator",w.current()));if(j=="`")return P.tokenize=He,He(w,P);if(j=="#"&&w.peek()=="!")return w.skipToEnd(),Ie("meta","meta");if(j=="#"&&w.eatWhile(U))return Ie("variable","property");if(j=="<"&&w.match("!--")||j=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ie("comment","comment");if(X.test(j))return(j!=">"||!P.lexical||P.lexical.type!=">")&&(w.eat("=")?(j=="!"||j=="=")&&w.eat("="):/[<>*+\-|&?]/.test(j)&&(w.eat(j),j==">"&&w.eat(j))),j=="?"&&w.eat(".")?Ie("."):Ie("operator","operator",w.current());if(U.test(j)){w.eatWhile(U);var ae=w.current();if(P.lastType!="."){if(q.propertyIsEnumerable(ae)){var qe=q[ae];return Ie(qe.type,qe.style,ae)}if(ae=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ae)}return Ie("variable","variable",ae)}}function he(w){return function(P,j){var ae=!1,qe;if(k&&P.peek()=="@"&&P.match(ce))return j.tokenize=pe,Ie("jsonld-keyword","meta");for(;(qe=P.next())!=null&&!(qe==w&&!ae);)ae=!ae&&qe=="\\";return ae||(j.tokenize=pe),Ie("string","string")}}function Te(w,P){for(var j=!1,ae;ae=w.next();){if(ae=="/"&&j){P.tokenize=pe;break}j=ae=="*"}return Ie("comment","comment")}function He(w,P){for(var j=!1,ae;(ae=w.next())!=null;){if(!j&&(ae=="`"||ae=="$"&&w.eat("{"))){P.tokenize=pe;break}j=!j&&ae=="\\"}return Ie("quasi","string-2",w.current())}var Ye="([{}])";function et(w,P){P.fatArrowAt&&(P.fatArrowAt=null);var j=w.string.indexOf("=>",w.start);if(!(j<0)){if(I){var ae=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,j));ae&&(j=ae.index)}for(var qe=0,vt=!1,be=j-1;be>=0;--be){var Or=w.string.charAt(be),on=Ye.indexOf(Or);if(on>=0&&on<3){if(!qe){++be;break}if(--qe==0){Or=="("&&(vt=!0);break}}else if(on>=3&&on<6)++qe;else if(U.test(Or))vt=!0;else if(/["'\/`]/.test(Or))for(;;--be){if(be==0)return;var _i=w.string.charAt(be-1);if(_i==Or&&w.string.charAt(be-2)!="\\"){be--;break}}else if(vt&&!qe){++be;break}}vt&&!qe&&(P.fatArrowAt=be)}}var nt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ge(w,P,j,ae,qe,vt){this.indented=w,this.column=P,this.type=j,this.prev=qe,this.info=vt,ae!=null&&(this.align=ae)}function ye(w,P){if(!O)return!1;for(var j=w.localVars;j;j=j.next)if(j.name==P)return!0;for(var ae=w.context;ae;ae=ae.prev)for(var j=ae.vars;j;j=j.next)if(j.name==P)return!0}function it(w,P,j,ae,qe){var vt=w.cc;for(W.state=w,W.stream=qe,W.marked=null,W.cc=vt,W.style=P,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var be=vt.length?vt.pop():S?We:at;if(be(j,ae)){for(;vt.length&&vt[vt.length-1].lex;)vt.pop()();return W.marked?W.marked:j=="variable"&&ye(w,ae)?"variable-2":P}}}var W={state:null,column:null,marked:null,cc:null};function E(){for(var w=arguments.length-1;w>=0;w--)W.cc.push(arguments[w])}function T(){return E.apply(null,arguments),!0}function ne(w,P){for(var j=P;j;j=j.next)if(j.name==w)return!0;return!1}function ve(w){var P=W.state;if(W.marked="def",!!O){if(P.context){if(P.lexical.info=="var"&&P.context&&P.context.block){var j=ot(w,P.context);if(j!=null){P.context=j;return}}else if(!ne(w,P.localVars)){P.localVars=new Bt(w,P.localVars);return}}f.globalVars&&!ne(w,P.globalVars)&&(P.globalVars=new Bt(w,P.globalVars))}}function ot(w,P){if(P)if(P.block){var j=ot(w,P.prev);return j?j==P.prev?P:new sr(j,P.vars,!0):null}else return ne(w,P.vars)?P:new sr(P.prev,new Bt(w,P.vars),!1);else return null}function At(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function sr(w,P,j){this.prev=w,this.vars=P,this.block=j}function Bt(w,P){this.name=w,this.next=P}var dn=new Bt("this",new Bt("arguments",null));function er(){W.state.context=new sr(W.state.context,W.state.localVars,!1),W.state.localVars=dn}function Ft(){W.state.context=new sr(W.state.context,W.state.localVars,!0),W.state.localVars=null}function ut(){W.state.localVars=W.state.context.vars,W.state.context=W.state.context.prev}ut.lex=!0;function _e(w,P){var j=function(){var ae=W.state,qe=ae.indented;if(ae.lexical.type=="stat")qe=ae.lexical.indented;else for(var vt=ae.lexical;vt&&vt.type==")"&&vt.align;vt=vt.prev)qe=vt.indented;ae.lexical=new ge(qe,W.stream.column(),w,null,ae.lexical,P)};return j.lex=!0,j}function Fe(){var w=W.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Fe.lex=!0;function Ze(w){function P(j){return j==w?T():w==";"||j=="}"||j==")"||j=="]"?E():T(P)}return P}function at(w,P){return w=="var"?T(_e("vardef",P),ns,Ze(";"),Fe):w=="keyword a"?T(_e("form"),qr,at,Fe):w=="keyword b"?T(_e("form"),at,Fe):w=="keyword d"?W.stream.match(/^\s*$/,!1)?T():T(_e("stat"),Xe,Ze(";"),Fe):w=="debugger"?T(Ze(";")):w=="{"?T(_e("}"),Ft,Hr,Fe,ut):w==";"?T():w=="if"?(W.state.lexical.info=="else"&&W.state.cc[W.state.cc.length-1]==Fe&&W.state.cc.pop()(),T(_e("form"),qr,at,Fe,Js)):w=="function"?T(Ln):w=="for"?T(_e("form"),Ft,el,at,ut,Fe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form",w=="class"?w:P),va,Fe)):w=="variable"?I&&P=="declare"?(W.marked="keyword",T(at)):I&&(P=="module"||P=="enum"||P=="type")&&W.stream.match(/^\s*\w/,!1)?(W.marked="keyword",P=="enum"?T(Un):P=="type"?T(tl,Ze("operator"),Ge,Ze(";")):T(_e("form"),Kr,Ze("{"),_e("}"),Hr,Fe,Fe)):I&&P=="namespace"?(W.marked="keyword",T(_e("form"),We,at,Fe)):I&&P=="abstract"?(W.marked="keyword",T(at)):T(_e("stat"),Qe):w=="switch"?T(_e("form"),qr,Ze("{"),_e("}","switch"),Ft,Hr,Fe,Fe,ut):w=="case"?T(We,Ze(":")):w=="default"?T(Ze(":")):w=="catch"?T(_e("form"),er,st,at,Fe,ut):w=="export"?T(_e("stat"),os,Fe):w=="import"?T(_e("stat"),Wt,Fe):w=="async"?T(at):P=="@"?T(We,at):E(_e("stat"),We,Ze(";"),Fe)}function st(w){if(w=="(")return T(Li,Ze(")"))}function We(w,P){return lr(w,P,!1)}function Gt(w,P){return lr(w,P,!0)}function qr(w){return w!="("?E():T(_e(")"),Xe,Ze(")"),Fe)}function lr(w,P,j){if(W.state.fatArrowAt==W.stream.start){var ae=j?tt:fr;if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Ze("=>"),ae,ut);if(w=="variable")return E(er,Kr,Ze("=>"),ae,ut)}var qe=j?kt:yt;return nt.hasOwnProperty(w)?T(qe):w=="function"?T(Ln,qe):w=="class"||I&&P=="interface"?(W.marked="keyword",T(_e("form"),Po,Fe)):w=="keyword c"||w=="async"?T(j?Gt:We):w=="("?T(_e(")"),Xe,Ze(")"),Fe,qe):w=="operator"||w=="spread"?T(j?Gt:We):w=="["?T(_e("]"),Lt,Fe,qe):w=="{"?xi(Mr,"}",null,qe):w=="quasi"?E($r,qe):w=="new"?T(B(j)):T()}function Xe(w){return w.match(/[;\}\)\],]/)?E():E(We)}function yt(w,P){return w==","?T(Xe):kt(w,P,!1)}function kt(w,P,j){var ae=j==!1?yt:kt,qe=j==!1?We:Gt;if(w=="=>")return T(er,j?tt:fr,ut);if(w=="operator")return/\+\+|--/.test(P)||I&&P=="!"?T(ae):I&&P=="<"&&W.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(_e(">"),Zt(Ge,">"),Fe,ae):P=="?"?T(We,Ze(":"),qe):T(qe);if(w=="quasi")return E($r,ae);if(w!=";"){if(w=="(")return xi(Gt,")","call",ae);if(w==".")return T(dr,ae);if(w=="[")return T(_e("]"),Xe,Ze("]"),Fe,ae);if(I&&P=="as")return W.marked="keyword",T(Ge,ae);if(w=="regexp")return W.state.lastType=W.marked="operator",W.stream.backUp(W.stream.pos-W.stream.start-1),T(qe)}}function $r(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T($r):T(Xe,rn)}function rn(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T($r)}function fr(w){return et(W.stream,W.state),E(w=="{"?at:We)}function tt(w){return et(W.stream,W.state),E(w=="{"?at:Gt)}function B(w){return function(P){return P=="."?T(w?V:oe):P=="variable"&&I?T(ko,w?kt:yt):E(w?Gt:We)}}function oe(w,P){if(P=="target")return W.marked="keyword",T(yt)}function V(w,P){if(P=="target")return W.marked="keyword",T(kt)}function Qe(w){return w==":"?T(Fe,at):E(yt,Ze(";"),Fe)}function dr(w){if(w=="variable")return W.marked="property",T()}function Mr(w,P){if(w=="async")return W.marked="property",T(Mr);if(w=="variable"||W.style=="keyword"){if(W.marked="property",P=="get"||P=="set")return T($n);var j;return I&&W.state.fatArrowAt==W.stream.start&&(j=W.stream.match(/^\s*:\s*/,!1))&&(W.state.fatArrowAt=W.stream.pos+j[0].length),T(jr)}else{if(w=="number"||w=="string")return W.marked=k?"property":W.style+" property",T(jr);if(w=="jsonld-keyword")return T(jr);if(I&&At(P))return W.marked="keyword",T(Mr);if(w=="[")return T(We,Hn,Ze("]"),jr);if(w=="spread")return T(Gt,jr);if(P=="*")return W.marked="keyword",T(Mr);if(w==":")return E(jr)}}function $n(w){return w!="variable"?E(jr):(W.marked="property",T(Ln))}function jr(w){if(w==":")return T(Gt);if(w=="(")return E(Ln)}function Zt(w,P,j){function ae(qe,vt){if(j?j.indexOf(qe)>-1:qe==","){var be=W.state.lexical;return be.info=="call"&&(be.pos=(be.pos||0)+1),T(function(Or,on){return Or==P||on==P?E():E(w)},ae)}return qe==P||vt==P?T():j&&j.indexOf(";")>-1?E(w):T(Ze(P))}return function(qe,vt){return qe==P||vt==P?T():E(w,ae)}}function xi(w,P,j){for(var ae=3;ae<arguments.length;ae++)W.cc.push(arguments[ae]);return T(_e(P,j),Zt(w,P),Fe)}function Hr(w){return w=="}"?T():E(at,Hr)}function Hn(w,P){if(I){if(w==":")return T(Ge);if(P=="?")return T(Hn)}}function $e(w,P){if(I&&(w==":"||P=="in"))return T(Ge)}function Ui(w){if(I&&w==":")return W.stream.match(/^\s*\w+\s+is\b/,!1)?T(We,kr,Ge):T(Ge)}function kr(w,P){if(P=="is")return W.marked="keyword",T()}function Ge(w,P){if(P=="keyof"||P=="typeof"||P=="infer"||P=="readonly")return W.marked="keyword",T(P=="typeof"?Gt:Ge);if(w=="variable"||P=="void")return W.marked="type",T(hn);if(P=="|"||P=="&")return T(Ge);if(w=="string"||w=="number"||w=="atom")return T(hn);if(w=="[")return T(_e("]"),Zt(Ge,"]",","),Fe,hn);if(w=="{")return T(_e("}"),pa,Fe,hn);if(w=="(")return T(Zt(ga,")"),ir,hn);if(w=="<")return T(Zt(Ge,">"),Ge);if(w=="quasi")return E(Bn,hn)}function ir(w){if(w=="=>")return T(Ge)}function pa(w){return w.match(/[\}\)\]]/)?T():w==","||w==";"?T(pa):E(wr,pa)}function wr(w,P){if(w=="variable"||W.style=="keyword")return W.marked="property",T(wr);if(P=="?"||w=="number"||w=="string")return T(wr);if(w==":")return T(Ge);if(w=="[")return T(Ze("variable"),$e,Ze("]"),wr);if(w=="(")return E(pn,wr);if(!w.match(/[;\}\)\],]/))return T()}function Bn(w,P){return w!="quasi"?E():P.slice(P.length-2)!="${"?T(Bn):T(Ge,xr)}function xr(w){if(w=="}")return W.marked="string-2",W.state.tokenize=He,T(Bn)}function ga(w,P){return w=="variable"&&W.stream.match(/^\s*[?:]/,!1)||P=="?"?T(ga):w==":"?T(Ge):w=="spread"?T(ga):E(Ge)}function hn(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn);if(P=="|"||w=="."||P=="&")return T(Ge);if(w=="[")return T(Ge,Ze("]"),hn);if(P=="extends"||P=="implements")return W.marked="keyword",T(Ge);if(P=="?")return T(Ge,Ze(":"),Ge)}function ko(w,P){if(P=="<")return T(_e(">"),Zt(Ge,">"),Fe,hn)}function Yi(){return E(Ge,rs)}function rs(w,P){if(P=="=")return T(Ge)}function ns(w,P){return P=="enum"?(W.marked="keyword",T(Un)):E(Kr,Hn,ni,To)}function Kr(w,P){if(I&&At(P))return W.marked="keyword",T(Kr);if(w=="variable")return ve(P),T();if(w=="spread")return T(Kr);if(w=="[")return xi(Oo,"]");if(w=="{")return xi(Qs,"}")}function Qs(w,P){return w=="variable"&&!W.stream.match(/^\s*:/,!1)?(ve(P),T(ni)):(w=="variable"&&(W.marked="property"),w=="spread"?T(Kr):w=="}"?E():w=="["?T(We,Ze("]"),Ze(":"),Qs):T(Ze(":"),Kr,ni))}function Oo(){return E(Kr,ni)}function ni(w,P){if(P=="=")return T(Gt)}function To(w){if(w==",")return T(ns)}function Js(w,P){if(w=="keyword b"&&P=="else")return T(_e("form","else"),at,Fe)}function el(w,P){if(P=="await")return T(el);if(w=="(")return T(_e(")"),is,Fe)}function is(w){return w=="var"?T(ns,Zi):w=="variable"?T(Zi):E(Zi)}function Zi(w,P){return w==")"?T():w==";"?T(Zi):P=="in"||P=="of"?(W.marked="keyword",T(We,Zi)):E(We,Zi)}function Ln(w,P){if(P=="*")return W.marked="keyword",T(Ln);if(w=="variable")return ve(P),T(Ln);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Ui,at,ut);if(I&&P=="<")return T(_e(">"),Zt(Yi,">"),Fe,Ln)}function pn(w,P){if(P=="*")return W.marked="keyword",T(pn);if(w=="variable")return ve(P),T(pn);if(w=="(")return T(er,_e(")"),Zt(Li,")"),Fe,Ui,ut);if(I&&P=="<")return T(_e(">"),Zt(Yi,">"),Fe,pn)}function tl(w,P){if(w=="keyword"||w=="variable")return W.marked="type",T(tl);if(P=="<")return T(_e(">"),Zt(Yi,">"),Fe)}function Li(w,P){return P=="@"&&T(We,Li),w=="spread"?T(Li):I&&At(P)?(W.marked="keyword",T(Li)):I&&w=="this"?T(Hn,ni):E(Kr,Hn,ni)}function Po(w,P){return w=="variable"?va(w,P):Fn(w,P)}function va(w,P){if(w=="variable")return ve(P),T(Fn)}function Fn(w,P){if(P=="<")return T(_e(">"),Zt(Yi,">"),Fe,Fn);if(P=="extends"||P=="implements"||I&&w==",")return P=="implements"&&(W.marked="keyword"),T(I?Ge:We,Fn);if(w=="{")return T(_e("}"),Wn,Fe)}function Wn(w,P){if(w=="async"||w=="variable"&&(P=="static"||P=="get"||P=="set"||I&&At(P))&&W.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return W.marked="keyword",T(Wn);if(w=="variable"||W.style=="keyword")return W.marked="property",T(gn,Wn);if(w=="number"||w=="string")return T(gn,Wn);if(w=="[")return T(We,Hn,Ze("]"),gn,Wn);if(P=="*")return W.marked="keyword",T(Wn);if(I&&w=="(")return E(pn,Wn);if(w==";"||w==",")return T(Wn);if(w=="}")return T();if(P=="@")return T(We,Wn)}function gn(w,P){if(P=="!"||P=="?")return T(gn);if(w==":")return T(Ge,ni);if(P=="=")return T(Gt);var j=W.state.lexical.prev,ae=j&&j.info=="interface";return E(ae?pn:Ln)}function os(w,P){return P=="*"?(W.marked="keyword",T(nn,Ze(";"))):P=="default"?(W.marked="keyword",T(We,Ze(";"))):w=="{"?T(Zt(as,"}"),nn,Ze(";")):E(at)}function as(w,P){if(P=="as")return W.marked="keyword",T(Ze("variable"));if(w=="variable")return E(Gt,as)}function Wt(w){return w=="string"?T():w=="("?E(We):w=="."?E(yt):E(ke,vn,nn)}function ke(w,P){return w=="{"?xi(ke,"}"):(w=="variable"&&ve(P),P=="*"&&(W.marked="keyword"),T(ss))}function vn(w){if(w==",")return T(ke,vn)}function ss(w,P){if(P=="as")return W.marked="keyword",T(ke)}function nn(w,P){if(P=="from")return W.marked="keyword",T(We)}function Lt(w){return w=="]"?T():E(Zt(Gt,"]"))}function Un(){return E(_e("form"),Kr,Ze("{"),_e("}"),Zt(Vi,"}"),Fe,Fe)}function Vi(){return E(Kr,ni)}function ba(w,P){return w.lastType=="operator"||w.lastType==","||X.test(P.charAt(0))||/[,.]/.test(P.charAt(0))}function ie(w,P,j){return P.tokenize==pe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(P.lastType)||P.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(j||0)))}return{startState:function(w){var P={tokenize:pe,lastType:"sof",cc:[],lexical:new ge((w||0)-p,0,"block",!1),localVars:f.localVars,context:f.localVars&&new sr(null,null,!1),indented:w||0};return f.globalVars&&typeof f.globalVars=="object"&&(P.globalVars=f.globalVars),P},token:function(w,P){if(w.sol()&&(P.lexical.hasOwnProperty("align")||(P.lexical.align=!1),P.indented=w.indentation(),et(w,P)),P.tokenize!=Te&&w.eatSpace())return null;var j=P.tokenize(w,P);return me=="comment"?j:(P.lastType=me=="operator"&&(Ae=="++"||Ae=="--")?"incdec":me,it(P,j,me,Ae,w))},indent:function(w,P){if(w.tokenize==Te||w.tokenize==He)return o.Pass;if(w.tokenize!=pe)return 0;var j=P&&P.charAt(0),ae=w.lexical,qe;if(!/^\s*else\b/.test(P))for(var vt=w.cc.length-1;vt>=0;--vt){var be=w.cc[vt];if(be==Fe)ae=ae.prev;else if(be!=Js&&be!=ut)break}for(;(ae.type=="stat"||ae.type=="form")&&(j=="}"||(qe=w.cc[w.cc.length-1])&&(qe==yt||qe==kt)&&!/^[,\.=+\-*:?[\(]/.test(P));)ae=ae.prev;b&&ae.type==")"&&ae.prev.type=="stat"&&(ae=ae.prev);var Or=ae.type,on=j==Or;return Or=="vardef"?ae.indented+(w.lastType=="operator"||w.lastType==","?ae.info.length+1:0):Or=="form"&&j=="{"?ae.indented:Or=="form"?ae.indented+p:Or=="stat"?ae.indented+(ba(w,P)?b||p:0):ae.info=="switch"&&!on&&f.doubleIndentSwitch!=!1?ae.indented+(/^(?:case|default)\b/.test(P)?p:2*p):ae.align?ae.column+(on?0:1):ae.indented+(on?0:p)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:S?null:"/*",blockCommentEnd:S?null:"*/",blockCommentContinue:S?null:" * ",lineComment:S?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:S?"json":"javascript",jsonldMode:k,jsonMode:S,expressionAllowed:ie,skipExpression:function(w){it(w,"atom","atom","true",new o.StringStream("",2,null))}}}),o.registerHelper("wordChars","javascript",/[\w$]/),o.defineMIME("text/javascript","javascript"),o.defineMIME("text/ecmascript","javascript"),o.defineMIME("application/javascript","javascript"),o.defineMIME("application/x-javascript","javascript"),o.defineMIME("application/ecmascript","javascript"),o.defineMIME("application/json",{name:"javascript",json:!0}),o.defineMIME("application/x-json",{name:"javascript",json:!0}),o.defineMIME("application/manifest+json",{name:"javascript",json:!0}),o.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),o.defineMIME("text/typescript",{name:"javascript",typescript:!0}),o.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Mp={exports:{}},kp;function n8(){return kp||(kp=1,function(r,n){(function(o){o(ca.exports)})(function(o){o.defineMode("css",function(ge,ye){var it=ye.inline;ye.propertyKeywords||(ye=o.resolveMode("text/css"));var W=ge.indentUnit,E=ye.tokenHooks,T=ye.documentTypes||{},ne=ye.mediaTypes||{},ve=ye.mediaFeatures||{},ot=ye.mediaValueKeywords||{},At=ye.propertyKeywords||{},sr=ye.nonStandardPropertyKeywords||{},Bt=ye.fontProperties||{},dn=ye.counterDescriptors||{},er=ye.colorKeywords||{},Ft=ye.valueKeywords||{},ut=ye.allowNested,_e=ye.lineComment,Fe=ye.supportsAtComponent===!0,Ze=ge.highlightNonStandardPropertyKeywords!==!1,at,st;function We(B,oe){return at=oe,B}function Gt(B,oe){var V=B.next();if(E[V]){var Qe=E[V](B,oe);if(Qe!==!1)return Qe}if(V=="@")return B.eatWhile(/[\w\\\-]/),We("def",B.current());if(V=="="||(V=="~"||V=="|")&&B.eat("="))return We(null,"compare");if(V=='"'||V=="'")return oe.tokenize=qr(V),oe.tokenize(B,oe);if(V=="#")return B.eatWhile(/[\w\\\-]/),We("atom","hash");if(V=="!")return B.match(/^\s*\w*/),We("keyword","important");if(/\d/.test(V)||V=="."&&B.eat(/\d/))return B.eatWhile(/[\w.%]/),We("number","unit");if(V==="-"){if(/[\d.]/.test(B.peek()))return B.eatWhile(/[\w.%]/),We("number","unit");if(B.match(/^-[\w\\\-]*/))return B.eatWhile(/[\w\\\-]/),B.match(/^\s*:/,!1)?We("variable-2","variable-definition"):We("variable-2","variable");if(B.match(/^\w+-/))return We("meta","meta")}else return/[,+>*\/]/.test(V)?We(null,"select-op"):V=="."&&B.match(/^-?[_a-z][_a-z0-9-]*/i)?We("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(V)?We(null,V):B.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(B.current())&&(oe.tokenize=lr),We("variable callee","variable")):/[\w\\\-]/.test(V)?(B.eatWhile(/[\w\\\-]/),We("property","word")):We(null,null)}function qr(B){return function(oe,V){for(var Qe=!1,dr;(dr=oe.next())!=null;){if(dr==B&&!Qe){B==")"&&oe.backUp(1);break}Qe=!Qe&&dr=="\\"}return(dr==B||!Qe&&B!=")")&&(V.tokenize=null),We("string","string")}}function lr(B,oe){return B.next(),B.match(/^\s*[\"\')]/,!1)?oe.tokenize=null:oe.tokenize=qr(")"),We(null,"(")}function Xe(B,oe,V){this.type=B,this.indent=oe,this.prev=V}function yt(B,oe,V,Qe){return B.context=new Xe(V,oe.indentation()+(Qe===!1?0:W),B.context),V}function kt(B){return B.context.prev&&(B.context=B.context.prev),B.context.type}function $r(B,oe,V){return tt[V.context.type](B,oe,V)}function rn(B,oe,V,Qe){for(var dr=Qe||1;dr>0;dr--)V.context=V.context.prev;return $r(B,oe,V)}function fr(B){var oe=B.current().toLowerCase();Ft.hasOwnProperty(oe)?st="atom":er.hasOwnProperty(oe)?st="keyword":st="variable"}var tt={};return tt.top=function(B,oe,V){if(B=="{")return yt(V,oe,"block");if(B=="}"&&V.context.prev)return kt(V);if(Fe&&/@component/i.test(B))return yt(V,oe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(B))return yt(V,oe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(B))return yt(V,oe,"atBlock");if(/^@(font-face|counter-style)/i.test(B))return V.stateArg=B,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(B))return"keyframes";if(B&&B.charAt(0)=="@")return yt(V,oe,"at");if(B=="hash")st="builtin";else if(B=="word")st="tag";else{if(B=="variable-definition")return"maybeprop";if(B=="interpolation")return yt(V,oe,"interpolation");if(B==":")return"pseudo";if(ut&&B=="(")return yt(V,oe,"parens")}return V.context.type},tt.block=function(B,oe,V){if(B=="word"){var Qe=oe.current().toLowerCase();return At.hasOwnProperty(Qe)?(st="property","maybeprop"):sr.hasOwnProperty(Qe)?(st=Ze?"string-2":"property","maybeprop"):ut?(st=oe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(st+=" error","maybeprop")}else return B=="meta"?"block":!ut&&(B=="hash"||B=="qualifier")?(st="error","block"):tt.top(B,oe,V)},tt.maybeprop=function(B,oe,V){return B==":"?yt(V,oe,"prop"):$r(B,oe,V)},tt.prop=function(B,oe,V){if(B==";")return kt(V);if(B=="{"&&ut)return yt(V,oe,"propBlock");if(B=="}"||B=="{")return rn(B,oe,V);if(B=="(")return yt(V,oe,"parens");if(B=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(oe.current()))st+=" error";else if(B=="word")fr(oe);else if(B=="interpolation")return yt(V,oe,"interpolation");return"prop"},tt.propBlock=function(B,oe,V){return B=="}"?kt(V):B=="word"?(st="property","maybeprop"):V.context.type},tt.parens=function(B,oe,V){return B=="{"||B=="}"?rn(B,oe,V):B==")"?kt(V):B=="("?yt(V,oe,"parens"):B=="interpolation"?yt(V,oe,"interpolation"):(B=="word"&&fr(oe),"parens")},tt.pseudo=function(B,oe,V){return B=="meta"?"pseudo":B=="word"?(st="variable-3",V.context.type):$r(B,oe,V)},tt.documentTypes=function(B,oe,V){return B=="word"&&T.hasOwnProperty(oe.current())?(st="tag",V.context.type):tt.atBlock(B,oe,V)},tt.atBlock=function(B,oe,V){if(B=="(")return yt(V,oe,"atBlock_parens");if(B=="}"||B==";")return rn(B,oe,V);if(B=="{")return kt(V)&&yt(V,oe,ut?"block":"top");if(B=="interpolation")return yt(V,oe,"interpolation");if(B=="word"){var Qe=oe.current().toLowerCase();Qe=="only"||Qe=="not"||Qe=="and"||Qe=="or"?st="keyword":ne.hasOwnProperty(Qe)?st="attribute":ve.hasOwnProperty(Qe)?st="property":ot.hasOwnProperty(Qe)?st="keyword":At.hasOwnProperty(Qe)?st="property":sr.hasOwnProperty(Qe)?st=Ze?"string-2":"property":Ft.hasOwnProperty(Qe)?st="atom":er.hasOwnProperty(Qe)?st="keyword":st="error"}return V.context.type},tt.atComponentBlock=function(B,oe,V){return B=="}"?rn(B,oe,V):B=="{"?kt(V)&&yt(V,oe,ut?"block":"top",!1):(B=="word"&&(st="error"),V.context.type)},tt.atBlock_parens=function(B,oe,V){return B==")"?kt(V):B=="{"||B=="}"?rn(B,oe,V,2):tt.atBlock(B,oe,V)},tt.restricted_atBlock_before=function(B,oe,V){return B=="{"?yt(V,oe,"restricted_atBlock"):B=="word"&&V.stateArg=="@counter-style"?(st="variable","restricted_atBlock_before"):$r(B,oe,V)},tt.restricted_atBlock=function(B,oe,V){return B=="}"?(V.stateArg=null,kt(V)):B=="word"?(V.stateArg=="@font-face"&&!Bt.hasOwnProperty(oe.current().toLowerCase())||V.stateArg=="@counter-style"&&!dn.hasOwnProperty(oe.current().toLowerCase())?st="error":st="property","maybeprop"):"restricted_atBlock"},tt.keyframes=function(B,oe,V){return B=="word"?(st="variable","keyframes"):B=="{"?yt(V,oe,"top"):$r(B,oe,V)},tt.at=function(B,oe,V){return B==";"?kt(V):B=="{"||B=="}"?rn(B,oe,V):(B=="word"?st="tag":B=="hash"&&(st="builtin"),"at")},tt.interpolation=function(B,oe,V){return B=="}"?kt(V):B=="{"||B==";"?rn(B,oe,V):(B=="word"?st="variable":B!="variable"&&B!="("&&B!=")"&&(st="error"),"interpolation")},{startState:function(B){return{tokenize:null,state:it?"block":"top",stateArg:null,context:new Xe(it?"block":"top",B||0,null)}},token:function(B,oe){if(!oe.tokenize&&B.eatSpace())return null;var V=(oe.tokenize||Gt)(B,oe);return V&&typeof V=="object"&&(at=V[1],V=V[0]),st=V,at!="comment"&&(oe.state=tt[oe.state](at,B,oe)),st},indent:function(B,oe){var V=B.context,Qe=oe&&oe.charAt(0),dr=V.indent;return V.type=="prop"&&(Qe=="}"||Qe==")")&&(V=V.prev),V.prev&&(Qe=="}"&&(V.type=="block"||V.type=="top"||V.type=="interpolation"||V.type=="restricted_atBlock")?(V=V.prev,dr=V.indent):(Qe==")"&&(V.type=="parens"||V.type=="atBlock_parens")||Qe=="{"&&(V.type=="at"||V.type=="atBlock"))&&(dr=Math.max(0,V.indent-W))),dr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:_e,fold:"brace"}});function c(ge){for(var ye={},it=0;it<ge.length;++it)ye[ge[it].toLowerCase()]=!0;return ye}var f=["domain","regexp","url","url-prefix"],p=c(f),b=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],k=c(b),S=["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"],O=c(S),I=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],U=c(I),q=["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"],X=c(q),ce=["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"],we=c(ce),me=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ae=c(me),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],pe=c(Ie),he=["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"],Te=c(he),He=["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"],Ye=c(He),et=f.concat(b).concat(S).concat(I).concat(q).concat(ce).concat(he).concat(He);o.registerHelper("hintWords","css",et);function nt(ge,ye){for(var it=!1,W;(W=ge.next())!=null;){if(it&&W=="/"){ye.tokenize=null;break}it=W=="*"}return["comment","comment"]}o.defineMIME("text/css",{documentTypes:p,mediaTypes:k,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:we,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,tokenHooks:{"/":function(ge,ye){return ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):!1}},name:"css"}),o.defineMIME("text/x-scss",{mediaTypes:k,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:we,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ge,ye){return ge.eat("/")?(ge.skipToEnd(),["comment","comment"]):ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):["operator","operator"]},":":function(ge){return ge.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ge){return ge.match(/^[\w-]+/),ge.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ge){return ge.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),o.defineMIME("text/x-less",{mediaTypes:k,mediaFeatures:O,mediaValueKeywords:U,propertyKeywords:X,nonStandardPropertyKeywords:we,colorKeywords:Te,valueKeywords:Ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ge,ye){return ge.eat("/")?(ge.skipToEnd(),["comment","comment"]):ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):["operator","operator"]},"@":function(ge){return ge.eat("{")?[null,"interpolation"]:ge.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ge.eatWhile(/[\w\\\-]/),ge.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),o.defineMIME("text/x-gss",{documentTypes:p,mediaTypes:k,mediaFeatures:O,propertyKeywords:X,nonStandardPropertyKeywords:we,fontProperties:Ae,counterDescriptors:pe,colorKeywords:Te,valueKeywords:Ye,supportsAtComponent:!0,tokenHooks:{"/":function(ge,ye){return ge.eat("*")?(ye.tokenize=nt,nt(ge,ye)):!1}},name:"css",helperType:"gss"})})}()),Mp.exports}(function(r,n){(function(o){o(ca.exports,t8.exports,r8.exports,n8())})(function(o){var c={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 f(U,q,X){var ce=U.current(),we=ce.search(q);return we>-1?U.backUp(ce.length-we):ce.match(/<\/?$/)&&(U.backUp(ce.length),U.match(q,!1)||U.match(ce)),X}var p={};function b(U){var q=p[U];return q||(p[U]=new RegExp("\\s+"+U+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function k(U,q){var X=U.match(b(q));return X?/^\s*(.*?)\s*$/.exec(X[2])[1]:""}function S(U,q){return new RegExp((q?"^":"")+"</s*"+U+"s*>","i")}function O(U,q){for(var X in U)for(var ce=q[X]||(q[X]=[]),we=U[X],me=we.length-1;me>=0;me--)ce.unshift(we[me])}function I(U,q){for(var X=0;X<U.length;X++){var ce=U[X];if(!ce[0]||ce[1].test(k(q,ce[0])))return ce[2]}}o.defineMode("htmlmixed",function(U,q){var X=o.getMode(U,{name:"xml",htmlMode:!0,multilineTagIndentFactor:q.multilineTagIndentFactor,multilineTagIndentPastTag:q.multilineTagIndentPastTag,allowMissingTagName:q.allowMissingTagName}),ce={},we=q&&q.tags,me=q&&q.scriptTypes;if(O(c,ce),we&&O(we,ce),me)for(var Ae=me.length-1;Ae>=0;Ae--)ce.script.unshift(["type",me[Ae].matches,me[Ae].mode]);function Ie(pe,he){var Te=X.token(pe,he.htmlState),He=/\btag\b/.test(Te),Ye;if(He&&!/[<>\s\/]/.test(pe.current())&&(Ye=he.htmlState.tagName&&he.htmlState.tagName.toLowerCase())&&ce.hasOwnProperty(Ye))he.inTag=Ye+" ";else if(he.inTag&&He&&/>$/.test(pe.current())){var et=/^([\S]+) (.*)/.exec(he.inTag);he.inTag=null;var nt=pe.current()==">"&&I(ce[et[1]],et[2]),ge=o.getMode(U,nt),ye=S(et[1],!0),it=S(et[1],!1);he.token=function(W,E){return W.match(ye,!1)?(E.token=Ie,E.localState=E.localMode=null,null):f(W,it,E.localMode.token(W,E.localState))},he.localMode=ge,he.localState=o.startState(ge,X.indent(he.htmlState,"",""))}else he.inTag&&(he.inTag+=pe.current(),pe.eol()&&(he.inTag+=" "));return Te}return{startState:function(){var pe=o.startState(X);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:pe}},copyState:function(pe){var he;return pe.localState&&(he=o.copyState(pe.localMode,pe.localState)),{token:pe.token,inTag:pe.inTag,localMode:pe.localMode,localState:he,htmlState:o.copyState(X,pe.htmlState)}},token:function(pe,he){return he.token(pe,he)},indent:function(pe,he,Te){return!pe.localMode||/^\s*<\//.test(he)?X.indent(pe.htmlState,he,Te):pe.localMode.indent?pe.localMode.indent(pe.localState,he,Te):o.Pass},innerMode:function(pe){return{state:pe.localState||pe.htmlState,mode:pe.localMode||X}}}},"xml","javascript","css"),o.defineMIME("text/html","htmlmixed")})})();(function(r,n){(function(o){o(ca.exports)})(function(o){o.defineOption("placeholder","",function(O,I,U){var q=U&&U!=o.Init;if(I&&!q)O.on("blur",b),O.on("change",k),O.on("swapDoc",k),o.on(O.getInputField(),"compositionupdate",O.state.placeholderCompose=function(){p(O)}),k(O);else if(!I&&q){O.off("blur",b),O.off("change",k),O.off("swapDoc",k),o.off(O.getInputField(),"compositionupdate",O.state.placeholderCompose),c(O);var X=O.getWrapperElement();X.className=X.className.replace(" CodeMirror-empty","")}I&&!O.hasFocus()&&b(O)});function c(O){O.state.placeholder&&(O.state.placeholder.parentNode.removeChild(O.state.placeholder),O.state.placeholder=null)}function f(O){c(O);var I=O.state.placeholder=document.createElement("pre");I.style.cssText="height: 0; overflow: visible",I.style.direction=O.getOption("direction"),I.className="CodeMirror-placeholder CodeMirror-line-like";var U=O.getOption("placeholder");typeof U=="string"&&(U=document.createTextNode(U)),I.appendChild(U),O.display.lineSpace.insertBefore(I,O.display.lineSpace.firstChild)}function p(O){setTimeout(function(){var I=!1;if(O.lineCount()==1){var U=O.getInputField();I=U.nodeName=="TEXTAREA"?!O.getLine(0).length:!/[^\u200b]/.test(U.querySelector(".CodeMirror-line").textContent)}I?f(O):c(O)},20)}function b(O){S(O)&&f(O)}function k(O){var I=O.getWrapperElement(),U=S(O);I.className=I.className.replace(" CodeMirror-empty","")+(U?" CodeMirror-empty":""),U?f(O):c(O)}function S(O){return O.lineCount()===1&&O.getLine(0)===""}})})();var i8=Object.defineProperty,o8=Object.getOwnPropertyDescriptor,hu=(r,n,o,c)=>{for(var f=c>1?void 0:c?o8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&i8(n,o,f),f};v0.defineMode("nunjucks",(r,n)=>v0.overlayMode(v0.getMode(r,n.backdrop||"text/html"),v0.getMode(r,"jinja2")));const F2=Ee("input-code"),a8={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks"};exports.InputCode=class extends Rn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(r){this.value=r.getValue(),this.dispatchChange()}updated(){var r,n;super.updated(),this.value!==this.editorValue&&(this.editorValue=this.value||""),this.readonly!==((r=this.editor)==null?void 0:r.isReadOnly())&&((n=this.editor)==null||n.setOption("readOnly",this.readonly)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()})}get editorValue(){var r;return((r=this.editor)==null?void 0:r.getDoc().getValue())||""}set editorValue(r){var n;(n=this.editor)==null||n.setValue(r)}firstUpdated(){var n;const r=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");r&&(this.editor=v0.fromTextArea(r,{mode:a8[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:o=>{const c=Array((o.getOption("indentUnit")||0)+1).join(" ");o.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var o;return(o=this.editor)==null?void 0:o.refresh()}))}disconnectedCallback(){var r;super.disconnectedCallback(),(r=this.editor)==null||r.off("change",this.changeHandler)}renderInput(){return ee`
2208
2221
  <textarea class="editor" placeholder="${Vt(this.placeholder)}">
2209
2222
  ${this.value}</textarea
2210
2223
  >
2211
2224
  `}};exports.InputCode.styles=[...Rn.styles,Se`
2212
- ${$p(K9)}
2225
+ ${Np(J9)}
2213
2226
 
2214
2227
  :host([size="full"]) {
2215
2228
  width: 100%;
@@ -2259,16 +2272,16 @@ ${this.value}</textarea
2259
2272
  .CodeMirror pre.CodeMirror-placeholder {
2260
2273
  color: var(--brz-color-neutral-500);
2261
2274
  }
2262
- `,X9];hu([F()],exports.InputCode.prototype,"mode",2);hu([F({reflect:!0})],exports.InputCode.prototype,"size",2);hu([F({type:Number})],exports.InputCode.prototype,"height",2);hu([F({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);hu([gt()],exports.InputCode.prototype,"editor",2);exports.InputCode=hu([Q(W2)],exports.InputCode);var M0={exports:{}};/**
2275
+ `,e8];hu([F()],exports.InputCode.prototype,"mode",2);hu([F({reflect:!0})],exports.InputCode.prototype,"size",2);hu([F({type:Number})],exports.InputCode.prototype,"height",2);hu([F({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);hu([pt()],exports.InputCode.prototype,"editor",2);exports.InputCode=hu([Q(F2)],exports.InputCode);var M0={exports:{}};/**
2263
2276
  * @license
2264
2277
  * Lodash <https://lodash.com/>
2265
2278
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
2266
2279
  * Released under MIT license <https://lodash.com/license>
2267
2280
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2268
2281
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2269
- */(function(r,n){(function(){var o,c="4.17.21",f=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",P="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",k=500,I="__lodash_placeholder__",U=1,q=2,X=4,ce=1,we=2,me=1,Ae=2,Ie=4,pe=8,he=16,Te=32,He=64,Ye=128,et=256,nt=512,ge=30,ye="...",it=800,W=16,E=1,O=2,ne=3,ve=1/0,ot=9007199254740991,At=17976931348623157e292,sr=0/0,Bt=4294967295,dn=Bt-1,er=Bt>>>1,Ft=[["ary",Ye],["bind",me],["bindKey",Ae],["curry",pe],["curryRight",he],["flip",nt],["partial",Te],["partialRight",He],["rearg",et]],ut="[object Arguments]",_e="[object Array]",Fe="[object AsyncFunction]",Ze="[object Boolean]",at="[object Date]",st="[object DOMException]",We="[object Error]",Gt="[object Function]",qr="[object GeneratorFunction]",lr="[object Map]",Xe="[object Number]",yt="[object Null]",kt="[object Object]",$r="[object Promise]",tn="[object Proxy]",fr="[object RegExp]",tt="[object Set]",B="[object String]",oe="[object Symbol]",V="[object Undefined]",Qe="[object WeakMap]",dr="[object WeakSet]",Mr="[object ArrayBuffer]",$n="[object DataView]",jr="[object Float32Array]",Zt="[object Float64Array]",xi="[object Int8Array]",Hr="[object Int16Array]",Hn="[object Int32Array]",$e="[object Uint8Array]",Wi="[object Uint8ClampedArray]",kr="[object Uint16Array]",Ge="[object Uint32Array]",ir=/\b__p \+= '';/g,fa=/\b(__p \+=) '' \+/g,wr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,xr=/[&<>"']/g,da=RegExp(Bn.source),hn=RegExp(xr.source),Mo=/<%-([\s\S]+?)%>/g,Ui=/<%([\s\S]+?)%>/g,ts=/<%=([\s\S]+?)%>/g,rs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/,Qs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ko=/[\\^$.*+?()[\]{}|]/g,ni=RegExp(ko.source),Oo=/^\s+/,Js=/\s/,el=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ns=/\{\n\/\* \[wrapped with (.+)\] \*/,Yi=/,? & /,Ln=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,tl=/\\(\\)?/g,Li=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,To=/\w*$/,ha=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Wn=/^\[object .+?Constructor\]$/,gn=/^0o[0-7]+$/i,is=/^(?:0|[1-9]\d*)$/,os=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wt=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",as="\\u0300-\\u036f",rn="\\ufe20-\\ufe2f",Lt="\\u20d0-\\u20ff",Un=as+rn+Lt,Zi="\\u2700-\\u27bf",pa="a-z\\xdf-\\xf6\\xf8-\\xff",ie="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",T="\\u2000-\\u206f",j=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ae="A-Z\\xc0-\\xd6\\xd8-\\xde",qe="\\ufe0e\\ufe0f",vt=ie+w+T+j,be="['\u2019]",Or="["+vn+"]",nn="["+vt+"]",_i="["+Un+"]",Yn="\\d+",Y0="["+Zi+"]",bu="["+pa+"]",ga="[^"+vn+vt+Yn+Zi+pa+ae+"]",ss="\\ud83c[\\udffb-\\udfff]",Z0="(?:"+_i+"|"+ss+")",rl="[^"+vn+"]",nl="(?:\\ud83c[\\udde6-\\uddff]){2}",il="[\\ud800-\\udbff][\\udc00-\\udfff]",Po="["+ae+"]",mu="\\u200d",V0="(?:"+bu+"|"+ga+")",nf="(?:"+Po+"|"+ga+")",yu="(?:"+be+"(?:d|ll|m|re|s|t|ve))?",ii="(?:"+be+"(?:D|LL|M|RE|S|T|VE))?",G0=Z0+"?",q0="["+qe+"]?",ol="(?:"+mu+"(?:"+[rl,nl,il].join("|")+")"+q0+G0+")*",ls="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",of="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",j0=q0+G0+ol,af="(?:"+[Y0,nl,il].join("|")+")"+j0,sf="(?:"+[rl+_i+"?",_i,nl,il,Or].join("|")+")",Cu=RegExp(be,"g"),K0=RegExp(_i,"g"),wu=RegExp(ss+"(?="+ss+")|"+sf+j0,"g"),X0=RegExp([Po+"?"+bu+"+"+yu+"(?="+[nn,Po,"$"].join("|")+")",nf+"+"+ii+"(?="+[nn,Po+V0,"$"].join("|")+")",Po+"?"+V0+"+"+yu,Po+"+"+ii,of,ls,Yn,af].join("|"),"g"),Q0=RegExp("["+mu+vn+Un+qe+"]"),al=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xu=-1,Ut={};Ut[jr]=Ut[Zt]=Ut[xi]=Ut[Hr]=Ut[Hn]=Ut[$e]=Ut[Wi]=Ut[kr]=Ut[Ge]=!0,Ut[ut]=Ut[_e]=Ut[Mr]=Ut[Ze]=Ut[$n]=Ut[at]=Ut[We]=Ut[Gt]=Ut[lr]=Ut[Xe]=Ut[kt]=Ut[fr]=Ut[tt]=Ut[B]=Ut[Qe]=!1;var $t={};$t[ut]=$t[_e]=$t[Mr]=$t[$n]=$t[Ze]=$t[at]=$t[jr]=$t[Zt]=$t[xi]=$t[Hr]=$t[Hn]=$t[lr]=$t[Xe]=$t[kt]=$t[fr]=$t[tt]=$t[B]=$t[oe]=$t[$e]=$t[Wi]=$t[kr]=$t[Ge]=!0,$t[We]=$t[Gt]=$t[Qe]=!1;var ll={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},lf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},J0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},oi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uf=parseFloat,cf=parseInt,ul=typeof Ql=="object"&&Ql&&Ql.Object===Object&&Ql,ec=typeof self=="object"&&self&&self.Object===Object&&self,qt=ul||ec||Function("return this")(),us=n&&!n.nodeType&&n,Xr=us&&!0&&r&&!r.nodeType&&r,cs=Xr&&Xr.exports===us,fs=cs&&ul.process,Tr=function(){try{var $=Xr&&Xr.require&&Xr.require("util").types;return $||fs&&fs.binding&&fs.binding("util")}catch{}}(),tc=Tr&&Tr.isArrayBuffer,rc=Tr&&Tr.isDate,nc=Tr&&Tr.isMap,ic=Tr&&Tr.isRegExp,Lu=Tr&&Tr.isSet,_u=Tr&&Tr.isTypedArray;function bn($,K,Y){switch(Y.length){case 0:return $.call(K);case 1:return $.call(K,Y[0]);case 2:return $.call(K,Y[0],Y[1]);case 3:return $.call(K,Y[0],Y[1],Y[2])}return $.apply(K,Y)}function ff($,K,Y,Me){for(var Je=-1,Mt=$==null?0:$.length;++Je<Mt;){var pr=$[Je];K(Me,pr,Y(pr),$)}return Me}function _n($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me&&K($[Y],Y,$)!==!1;);return $}function df($,K){for(var Y=$==null?0:$.length;Y--&&K($[Y],Y,$)!==!1;);return $}function zu($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me;)if(!K($[Y],Y,$))return!1;return!0}function Vi($,K){for(var Y=-1,Me=$==null?0:$.length,Je=0,Mt=[];++Y<Me;){var pr=$[Y];K(pr,Y,$)&&(Mt[Je++]=pr)}return Mt}function ds($,K){var Y=$==null?0:$.length;return!!Y&&Eo($,K,0)>-1}function va($,K,Y){for(var Me=-1,Je=$==null?0:$.length;++Me<Je;)if(Y(K,$[Me]))return!0;return!1}function Et($,K){for(var Y=-1,Me=$==null?0:$.length,Je=Array(Me);++Y<Me;)Je[Y]=K($[Y],Y,$);return Je}function Gi($,K){for(var Y=-1,Me=K.length,Je=$.length;++Y<Me;)$[Je+Y]=K[Y];return $}function Su($,K,Y,Me){var Je=-1,Mt=$==null?0:$.length;for(Me&&Mt&&(Y=$[++Je]);++Je<Mt;)Y=K(Y,$[Je],Je,$);return Y}function hf($,K,Y,Me){var Je=$==null?0:$.length;for(Me&&Je&&(Y=$[--Je]);Je--;)Y=K(Y,$[Je],Je,$);return Y}function Ao($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me;)if(K($[Y],Y,$))return!0;return!1}var hr=ku("length");function pf($){return $.split("")}function oc($){return $.match(Ln)||[]}function ba($,K,Y){var Me;return Y($,function(Je,Mt,pr){if(K(Je,Mt,pr))return Me=Mt,!1}),Me}function cl($,K,Y,Me){for(var Je=$.length,Mt=Y+(Me?1:-1);Me?Mt--:++Mt<Je;)if(K($[Mt],Mt,$))return Mt;return-1}function Eo($,K,Y){return K===K?dc($,K,Y):cl($,fl,Y)}function gf($,K,Y,Me){for(var Je=Y-1,Mt=$.length;++Je<Mt;)if(Me($[Je],K))return Je;return-1}function fl($){return $!==$}function Mu($,K){var Y=$==null?0:$.length;return Y?Pu($,K)/Y:sr}function ku($){return function(K){return K==null?o:K[$]}}function Ou($){return function(K){return $==null?o:$[K]}}function Tu($,K,Y,Me,Je){return Je($,function(Mt,pr,wt){Y=Me?(Me=!1,Mt):K(Y,Mt,pr,wt)}),Y}function ac($,K){var Y=$.length;for($.sort(K);Y--;)$[Y]=$[Y].value;return $}function Pu($,K){for(var Y,Me=-1,Je=$.length;++Me<Je;){var Mt=K($[Me]);Mt!==o&&(Y=Y===o?Mt:Y+Mt)}return Y}function Io($,K){for(var Y=-1,Me=Array($);++Y<$;)Me[Y]=K(Y);return Me}function zi($,K){return Et(K,function(Y){return[Y,$[Y]]})}function hs($){return $&&$.slice(0,vl($)+1).replace(Oo,"")}function Qr($){return function(K){return $(K)}}function dl($,K){return Et(K,function(Y){return $[Y]})}function on($,K){return $.has(K)}function qi($,K){for(var Y=-1,Me=$.length;++Y<Me&&Eo(K,$[Y],0)>-1;);return Y}function hl($,K){for(var Y=$.length;Y--&&Eo(K,$[Y],0)>-1;);return Y}function vf($,K){for(var Y=$.length,Me=0;Y--;)$[Y]===K&&++Me;return Me}var sc=Ou(ll),bf=Ou(lf);function lc($){return"\\"+oi[$]}function Au($,K){return $==null?o:$[K]}function Zn($){return Q0.test($)}function ai($){return al.test($)}function uc($){for(var K,Y=[];!(K=$.next()).done;)Y.push(K.value);return Y}function pl($){var K=-1,Y=Array($.size);return $.forEach(function(Me,Je){Y[++K]=[Je,Me]}),Y}function cc($,K){return function(Y){return $(K(Y))}}function ji($,K){for(var Y=-1,Me=$.length,Je=0,Mt=[];++Y<Me;){var pr=$[Y];(pr===K||pr===I)&&($[Y]=I,Mt[Je++]=Y)}return Mt}function gl($){var K=-1,Y=Array($.size);return $.forEach(function(Me){Y[++K]=Me}),Y}function fc($){var K=-1,Y=Array($.size);return $.forEach(function(Me){Y[++K]=[Me,Me]}),Y}function dc($,K,Y){for(var Me=Y-1,Je=$.length;++Me<Je;)if($[Me]===K)return Me;return-1}function ps($,K,Y){for(var Me=Y+1;Me--;)if($[Me]===K)return Me;return Me}function Do($){return Zn($)?hc($):hr($)}function zn($){return Zn($)?ml($):pf($)}function vl($){for(var K=$.length;K--&&Js.test($.charAt(K)););return K}var bl=Ou(J0);function hc($){for(var K=wu.lastIndex=0;wu.test($);)++K;return K}function ml($){return $.match(wu)||[]}function Vn($){return $.match(X0)||[]}var pc=function $(K){K=K==null?qt:Ki.defaults(qt.Object(),K,Ki.pick(qt,sl));var Y=K.Array,Me=K.Date,Je=K.Error,Mt=K.Function,pr=K.Math,wt=K.Object,Xi=K.RegExp,ma=K.String,an=K.TypeError,ya=Y.prototype,gc=Mt.prototype,Qi=wt.prototype,si=K["__core-js_shared__"],li=gc.toString,rt=Qi.hasOwnProperty,Ji=0,Si=function(){var i=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Ro=Qi.toString,mf=li.call(wt),vc=qt._,gs=Xi("^"+li.call(rt).replace(ko,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vs=cs?K.Buffer:o,Mi=K.Symbol,No=K.Uint8Array,bc=vs?vs.allocUnsafe:o,Ca=cc(wt.getPrototypeOf,wt),Eu=wt.create,yl=Qi.propertyIsEnumerable,wa=ya.splice,$o=Mi?Mi.isConcatSpreadable:o,eo=Mi?Mi.iterator:o,to=Mi?Mi.toStringTag:o,Ho=function(){try{var i=qo(wt,"defineProperty");return i({},"",{}),i}catch{}}(),yf=K.clearTimeout!==qt.clearTimeout&&K.clearTimeout,Cf=Me&&Me.now!==qt.Date.now&&Me.now,wf=K.setTimeout!==qt.setTimeout&&K.setTimeout,xa=pr.ceil,La=pr.floor,ro=wt.getOwnPropertySymbols,bs=vs?vs.isBuffer:o,mc=K.isFinite,Cl=ya.join,yc=cc(wt.keys,wt),jt=pr.max,Pr=pr.min,Bo=Me.now,ms=K.parseInt,no=pr.random,ys=ya.reverse,io=qo(K,"DataView"),_a=qo(K,"Map"),wl=qo(K,"Promise"),Fo=qo(K,"Set"),Cs=qo(K,"WeakMap"),Gn=qo(wt,"create"),ui=Cs&&new Cs,za={},xf=Ht(io),Lf=Ht(_a),_f=Ht(wl),zf=Ht(Fo),Sf=Ht(Cs),Ar=Mi?Mi.prototype:o,Kt=Ar?Ar.valueOf:o,Er=Ar?Ar.toString:o;function L(i){if(cr(i)&&!ct(i)&&!(i instanceof bt)){if(i instanceof Jr)return i;if(rt.call(i,"__wrapped__"))return Zr(i)}return new Jr(i)}var ci=function(){function i(){}return function(l){if(!ar(l))return{};if(Eu)return Eu(l);i.prototype=l;var d=new i;return i.prototype=o,d}}();function xl(){}function Jr(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=o}L.templateSettings={escape:Mo,evaluate:Ui,interpolate:ts,variable:"",imports:{_:L}},L.prototype=xl.prototype,L.prototype.constructor=L,Jr.prototype=ci(xl.prototype),Jr.prototype.constructor=Jr;function bt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bt,this.__views__=[]}function Mf(){var i=new bt(this.__wrapped__);return i.__actions__=zr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=zr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=zr(this.__views__),i}function kf(){if(this.__filtered__){var i=new bt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Iu(){var i=this.__wrapped__.value(),l=this.__dir__,d=ct(i),v=l<0,x=d?i.length:0,_=Vl(0,x,this.__views__),A=_.start,D=_.end,H=D-A,te=v?D:A-1,re=this.__iteratees__,se=re.length,Le=0,Ne=Pr(H,this.__takeCount__);if(!d||!v&&x==H&&Ne==H)return Bc(i,this.__actions__);var je=[];e:for(;H--&&Le<Ne;){te+=l;for(var pt=-1,Ke=i[te];++pt<se;){var Ct=re[pt],xt=Ct.iteratee,Kn=Ct.type,xn=xt(Ke);if(Kn==O)Ke=xn;else if(!xn){if(Kn==E)continue e;break e}}je[Le++]=Ke}return je}bt.prototype=ci(xl.prototype),bt.prototype.constructor=bt;function oo(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Du(){this.__data__=Gn?Gn(null):{},this.size=0}function Of(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Ru(i){var l=this.__data__;if(Gn){var d=l[i];return d===S?o:d}return rt.call(l,i)?l[i]:o}function Nu(i){var l=this.__data__;return Gn?l[i]!==o:rt.call(l,i)}function Cc(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Gn&&l===o?S:l,this}oo.prototype.clear=Du,oo.prototype.delete=Of,oo.prototype.get=Ru,oo.prototype.has=Nu,oo.prototype.set=Cc;function fi(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function $u(){this.__data__=[],this.size=0}function wc(i){var l=this.__data__,d=Wo(l,i);if(d<0)return!1;var v=l.length-1;return d==v?l.pop():wa.call(l,d,1),--this.size,!0}function ws(i){var l=this.__data__,d=Wo(l,i);return d<0?o:l[d][1]}function Tf(i){return Wo(this.__data__,i)>-1}function Ll(i,l){var d=this.__data__,v=Wo(d,i);return v<0?(++this.size,d.push([i,l])):d[v][1]=l,this}fi.prototype.clear=$u,fi.prototype.delete=wc,fi.prototype.get=ws,fi.prototype.has=Tf,fi.prototype.set=Ll;function or(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function xc(){this.size=0,this.__data__={hash:new oo,map:new(_a||fi),string:new oo}}function Pf(i){var l=Zl(this,i).delete(i);return this.size-=l?1:0,l}function Lc(i){return Zl(this,i).get(i)}function mn(i){return Zl(this,i).has(i)}function _t(i,l){var d=Zl(this,i),v=d.size;return d.set(i,l),this.size+=d.size==v?0:1,this}or.prototype.clear=xc,or.prototype.delete=Pf,or.prototype.get=Lc,or.prototype.has=mn,or.prototype.set=_t;function Ir(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new or;++l<d;)this.add(i[l])}function ao(i){return this.__data__.set(i,S),this}function so(i){return this.__data__.has(i)}Ir.prototype.add=Ir.prototype.push=ao,Ir.prototype.has=so;function Sn(i){var l=this.__data__=new fi(i);this.size=l.size}function Hu(){this.__data__=new fi,this.size=0}function _c(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function Af(i){return this.__data__.get(i)}function Bu(i){return this.__data__.has(i)}function xs(i,l){var d=this.__data__;if(d instanceof fi){var v=d.__data__;if(!_a||v.length<f-1)return v.push([i,l]),this.size=++d.size,this;d=this.__data__=new or(v)}return d.set(i,l),this.size=d.size,this}Sn.prototype.clear=Hu,Sn.prototype.delete=_c,Sn.prototype.get=Af,Sn.prototype.has=Bu,Sn.prototype.set=xs;function Fu(i,l){var d=ct(i),v=!d&&Ns(i),x=!d&&!v&&Ya(i),_=!d&&!v&&!x&&ql(i),A=d||v||x||_,D=A?Io(i.length,ma):[],H=D.length;for(var te in i)(l||rt.call(i,te))&&!(A&&(te=="length"||x&&(te=="offset"||te=="parent")||_&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||m(te,H)))&&D.push(te);return D}function _l(i){var l=i.length;return l?i[Dl(0,l-1)]:o}function lo(i,l){return Sr(zr(i),Uo(l,0,i.length))}function zc(i){return Sr(zr(i))}function zl(i,l,d){(d!==o&&!Ei(i[l],d)||d===o&&!(l in i))&&di(i,l,d)}function Ls(i,l,d){var v=i[l];(!(rt.call(i,l)&&Ei(v,d))||d===o&&!(l in i))&&di(i,l,d)}function Wo(i,l){for(var d=i.length;d--;)if(Ei(i[d][0],l))return d;return-1}function Wu(i,l,d,v){return yn(i,function(x,_,A){l(v,x,d(x),A)}),v}function Uu(i,l){return i&&sn(l,Gr(l),i)}function Ef(i,l){return i&&sn(l,Pn(l),i)}function di(i,l,d){l=="__proto__"&&Ho?Ho(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function Yu(i,l){for(var d=-1,v=l.length,x=Y(v),_=i==null;++d<v;)x[d]=_?o:jf(i,l[d]);return x}function Uo(i,l,d){return i===i&&(d!==o&&(i=i<=d?i:d),l!==o&&(i=i>=l?i:l)),i}function en(i,l,d,v,x,_){var A,D=l&U,H=l&q,te=l&X;if(d&&(A=x?d(i,v,x,_):d(i)),A!==o)return A;if(!ar(i))return i;var re=ct(i);if(re){if(A=s(i),!D)return zr(i,A)}else{var se=Wr(i),Le=se==Gt||se==qr;if(Ya(i))return t0(i,D);if(se==kt||se==ut||Le&&!x){if(A=H||Le?{}:a(i),!D)return H?Zc(i,Ef(A,i)):Ff(i,Uu(A,i))}else{if(!$t[se])return x?i:{};A=u(i,se,D)}}_||(_=new Sn);var Ne=_.get(i);if(Ne)return Ne;_.set(i,A),Uh(i)?i.forEach(function(Ke){A.add(en(Ke,l,d,Ke,i,_))}):Fh(i)&&i.forEach(function(Ke,Ct){A.set(Ct,en(Ke,l,d,Ct,i,_))});var je=te?H?Yl:Ds:H?Pn:Gr,pt=re?o:je(i);return _n(pt||i,function(Ke,Ct){pt&&(Ct=Ke,Ke=i[Ct]),Ls(A,Ct,en(Ke,l,d,Ct,i,_))}),A}function Sc(i){var l=Gr(i);return function(d){return Mc(d,i,l)}}function Mc(i,l,d){var v=d.length;if(i==null)return!v;for(i=wt(i);v--;){var x=d[v],_=l[x],A=i[x];if(A===o&&!(x in i)||!_(A))return!1}return!0}function kc(i,l,d){if(typeof i!="function")throw new an(b);return Rt(function(){i.apply(o,d)},l)}function Sa(i,l,d,v){var x=-1,_=ds,A=!0,D=i.length,H=[],te=l.length;if(!D)return H;d&&(l=Et(l,Qr(d))),v?(_=va,A=!1):l.length>=f&&(_=on,A=!1,l=new Ir(l));e:for(;++x<D;){var re=i[x],se=d==null?re:d(re);if(re=v||re!==0?re:0,A&&se===se){for(var Le=te;Le--;)if(l[Le]===se)continue e;H.push(re)}else _(l,se,v)||H.push(re)}return H}var yn=Vc(Cn),Sl=Vc(Ol,!0);function Ml(i,l){var d=!0;return yn(i,function(v,x,_){return d=!!l(v,x,_),d}),d}function _s(i,l,d){for(var v=-1,x=i.length;++v<x;){var _=i[v],A=l(_);if(A!=null&&(D===o?A===A&&!jn(A):d(A,D)))var D=A,H=_}return H}function Zu(i,l,d,v){var x=i.length;for(d=dt(d),d<0&&(d=-d>x?0:x+d),v=v===o||v>x?x:dt(v),v<0&&(v+=x),v=d>v?0:Zh(v);d<v;)i[d++]=l;return i}function Vu(i,l){var d=[];return yn(i,function(v,x,_){l(v,x,_)&&d.push(v)}),d}function Dr(i,l,d,v,x){var _=-1,A=i.length;for(d||(d=p),x||(x=[]);++_<A;){var D=i[_];l>0&&d(D)?l>1?Dr(D,l-1,d,v,x):Gi(x,D):v||(x[x.length]=D)}return x}var kl=Gc(),Lr=Gc(!0);function Cn(i,l){return i&&kl(i,l,Gr)}function Ol(i,l){return i&&Lr(i,l,Gr)}function zs(i,l){return Vi(l,function(d){return Xo(i[d])})}function uo(i,l){l=qn(l,i);for(var d=0,v=l.length;i!=null&&d<v;)i=i[It(l[d++])];return d&&d==v?i:o}function Yo(i,l,d){var v=l(i);return ct(i)?v:Gi(v,d(i))}function _r(i){return i==null?i===o?V:yt:to&&to in wt(i)?tr(i):xe(i)}function Tl(i,l){return i>l}function Oc(i,l){return i!=null&&rt.call(i,l)}function Tc(i,l){return i!=null&&l in wt(i)}function Ma(i,l,d){return i>=Pr(l,d)&&i<jt(l,d)}function Pl(i,l,d){for(var v=d?va:ds,x=i[0].length,_=i.length,A=_,D=Y(_),H=1/0,te=[];A--;){var re=i[A];A&&l&&(re=Et(re,Qr(l))),H=Pr(re.length,H),D[A]=!d&&(l||x>=120&&re.length>=120)?new Ir(A&&re):o}re=i[0];var se=-1,Le=D[0];e:for(;++se<x&&te.length<H;){var Ne=re[se],je=l?l(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(Le?on(Le,je):v(te,je,d))){for(A=_;--A;){var pt=D[A];if(!(pt?on(pt,je):v(i[A],je,d)))continue e}Le&&Le.push(je),te.push(Ne)}}return te}function Al(i,l,d,v){return Cn(i,function(x,_,A){l(v,d(x),_,A)}),v}function ka(i,l,d){l=qn(l,i),i=Pe(i,l);var v=i==null?i:i[It(pi(l))];return v==null?o:bn(v,i,d)}function Oa(i){return cr(i)&&_r(i)==ut}function If(i){return cr(i)&&_r(i)==Mr}function Ta(i){return cr(i)&&_r(i)==at}function Pa(i,l,d,v,x){return i===l?!0:i==null||l==null||!cr(i)&&!cr(l)?i!==i&&l!==l:Pc(i,l,d,v,Pa,x)}function Pc(i,l,d,v,x,_){var A=ct(i),D=ct(l),H=A?_e:Wr(i),te=D?_e:Wr(l);H=H==ut?kt:H,te=te==ut?kt:te;var re=H==kt,se=te==kt,Le=H==te;if(Le&&Ya(i)){if(!Ya(l))return!1;A=!0,re=!1}if(Le&&!re)return _||(_=new Sn),A||ql(i)?s0(i,l,d,v,x,_):e1(i,l,H,d,v,x,_);if(!(d&ce)){var Ne=re&&rt.call(i,"__wrapped__"),je=se&&rt.call(l,"__wrapped__");if(Ne||je){var pt=Ne?i.value():i,Ke=je?l.value():l;return _||(_=new Sn),x(pt,Ke,d,v,_)}}return Le?(_||(_=new Sn),t1(i,l,d,v,x,_)):!1}function Ac(i){return cr(i)&&Wr(i)==lr}function Zo(i,l,d,v){var x=d.length,_=x,A=!v;if(i==null)return!_;for(i=wt(i);x--;){var D=d[x];if(A&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++x<_;){D=d[x];var H=D[0],te=i[H],re=D[1];if(A&&D[2]){if(te===o&&!(H in i))return!1}else{var se=new Sn;if(v)var Le=v(te,re,H,i,l,se);if(!(Le===o?Pa(re,te,ce|we,v,se):Le))return!1}}return!0}function Aa(i){if(!ar(i)||N(i))return!1;var l=Xo(i)?gs:Wn;return l.test(Ht(i))}function Ss(i){return cr(i)&&_r(i)==fr}function Ms(i){return cr(i)&&Wr(i)==tt}function Ec(i){return cr(i)&&l1(i.length)&&!!Ut[_r(i)]}function Ic(i){return typeof i=="function"?i:i==null?An:typeof i=="object"?ct(i)?Gu(i[0],i[1]):Dc(i):rp(i)}function El(i){if(!Z(i))return yc(i);var l=[];for(var d in wt(i))rt.call(i,d)&&d!="constructor"&&l.push(d);return l}function co(i){if(!ar(i))return de(i);var l=Z(i),d=[];for(var v in i)v=="constructor"&&(l||!rt.call(i,v))||d.push(v);return d}function fo(i,l){return i<l}function Ea(i,l){var d=-1,v=Tn(i)?Y(i.length):[];return yn(i,function(x,_,A){v[++d]=l(x,_,A)}),v}function Dc(i){var l=Fa(i);return l.length==1&&l[0][2]?le(l[0][0],l[0][1]):function(d){return d===i||Zo(d,i,l)}}function Gu(i,l){return C(i)&&J(l)?le(It(i),l):function(d){var v=jf(d,i);return v===o&&v===l?Kf(d,i):Pa(l,v,ce|we)}}function Il(i,l,d,v,x){i!==l&&kl(l,function(_,A){if(x||(x=new Sn),ar(_))Df(i,l,A,d,Il,v,x);else{var D=v?v(Ot(i,A),_,A+"",i,l,x):o;D===o&&(D=_),zl(i,A,D)}},Pn)}function Df(i,l,d,v,x,_,A){var D=Ot(i,d),H=Ot(l,d),te=A.get(H);if(te){zl(i,d,te);return}var re=_?_(D,H,d+"",i,l,A):o,se=re===o;if(se){var Le=ct(H),Ne=!Le&&Ya(H),je=!Le&&!Ne&&ql(H);re=H,Le||Ne||je?ct(D)?re=D:br(D)?re=zr(D):Ne?(se=!1,re=t0(H,!0)):je?(se=!1,re=Wc(H,!0)):re=[]:c0(H)||Ns(H)?(re=D,Ns(D)?re=Vh(D):(!ar(D)||Xo(D))&&(re=a(H))):se=!1}se&&(A.set(H,re),x(re,H,v,_,A),A.delete(H)),zl(i,d,re)}function Rc(i,l){var d=i.length;if(!!d)return l+=l<0?d:0,m(l,d)?i[l]:o}function Br(i,l,d){l.length?l=Et(l,function(_){return ct(_)?function(A){return uo(A,_.length===1?_[0]:_)}:_}):l=[An];var v=-1;l=Et(l,Qr(Be()));var x=Ea(i,function(_,A,D){var H=Et(l,function(te){return te(_)});return{criteria:H,index:++v,value:_}});return ac(x,function(_,A){return Uc(_,A,d)})}function Nc(i,l){return $c(i,l,function(d,v){return Kf(i,v)})}function $c(i,l,d){for(var v=-1,x=l.length,_={};++v<x;){var A=l[v],D=uo(i,A);d(D,A)&&ki(_,qn(A,i),D)}return _}function Rf(i){return function(l){return uo(l,i)}}function qu(i,l,d,v){var x=v?gf:Eo,_=-1,A=l.length,D=i;for(i===l&&(l=zr(l)),d&&(D=Et(i,Qr(d)));++_<A;)for(var H=0,te=l[_],re=d?d(te):te;(H=x(D,re,H,v))>-1;)D!==i&&wa.call(D,H,1),wa.call(i,H,1);return i}function ju(i,l){for(var d=i?l.length:0,v=d-1;d--;){var x=l[d];if(d==v||x!==_){var _=x;m(x)?wa.call(i,x,1):Ts(i,x)}}return i}function Dl(i,l){return i+La(no()*(l-i+1))}function Hc(i,l,d,v){for(var x=-1,_=jt(xa((l-i)/(d||1)),0),A=Y(_);_--;)A[v?_:++x]=i,i+=d;return A}function Ku(i,l){var d="";if(!i||l<1||l>ot)return d;do l%2&&(d+=i),l=La(l/2),l&&(i+=i);while(l);return d}function ft(i,l){return Ur(Re(i,l,An),i+"")}function Nf(i){return _l(jl(i))}function ho(i,l){var d=jl(i);return Sr(d,Uo(l,0,d.length))}function ki(i,l,d,v){if(!ar(i))return i;l=qn(l,i);for(var x=-1,_=l.length,A=_-1,D=i;D!=null&&++x<_;){var H=It(l[x]),te=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return i;if(x!=A){var re=D[H];te=v?v(re,H,D):o,te===o&&(te=ar(re)?re:m(l[x+1])?[]:{})}Ls(D,H,te),D=D[H]}return i}var ks=ui?function(i,l){return ui.set(i,l),i}:An,Os=Ho?function(i,l){return Ho(i,"toString",{configurable:!0,enumerable:!1,value:Qf(l),writable:!0})}:An;function Oi(i){return Sr(jl(i))}function Mn(i,l,d){var v=-1,x=i.length;l<0&&(l=-l>x?0:x+l),d=d>x?x:d,d<0&&(d+=x),x=l>d?0:d-l>>>0,l>>>=0;for(var _=Y(x);++v<x;)_[v]=i[v+l];return _}function $f(i,l){var d;return yn(i,function(v,x,_){return d=l(v,x,_),!d}),!!d}function Ti(i,l,d){var v=0,x=i==null?v:i.length;if(typeof l=="number"&&l===l&&x<=er){for(;v<x;){var _=v+x>>>1,A=i[_];A!==null&&!jn(A)&&(d?A<=l:A<l)?v=_+1:x=_}return x}return Rl(i,l,An,d)}function Rl(i,l,d,v){var x=0,_=i==null?0:i.length;if(_===0)return 0;l=d(l);for(var A=l!==l,D=l===null,H=jn(l),te=l===o;x<_;){var re=La((x+_)/2),se=d(i[re]),Le=se!==o,Ne=se===null,je=se===se,pt=jn(se);if(A)var Ke=v||je;else te?Ke=je&&(v||Le):D?Ke=je&&Le&&(v||!Ne):H?Ke=je&&Le&&!Ne&&(v||!pt):Ne||pt?Ke=!1:Ke=v?se<=l:se<l;Ke?x=re+1:_=re}return Pr(_,dn)}function Xu(i,l){for(var d=-1,v=i.length,x=0,_=[];++d<v;){var A=i[d],D=l?l(A):A;if(!d||!Ei(D,H)){var H=D;_[x++]=A===0?0:A}}return _}function Qu(i){return typeof i=="number"?i:jn(i)?sr:+i}function Fr(i){if(typeof i=="string")return i;if(ct(i))return Et(i,Fr)+"";if(jn(i))return Er?Er.call(i):"";var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function wn(i,l,d){var v=-1,x=ds,_=i.length,A=!0,D=[],H=D;if(d)A=!1,x=va;else if(_>=f){var te=l?null:Is(i);if(te)return gl(te);A=!1,x=on,H=new Ir}else H=l?[]:D;e:for(;++v<_;){var re=i[v],se=l?l(re):re;if(re=d||re!==0?re:0,A&&se===se){for(var Le=H.length;Le--;)if(H[Le]===se)continue e;l&&H.push(se),D.push(re)}else x(H,se,d)||(H!==D&&H.push(se),D.push(re))}return D}function Ts(i,l){return l=qn(l,i),i=Pe(i,l),i==null||delete i[It(pi(l))]}function Nl(i,l,d,v){return ki(i,l,d(uo(i,l)),v)}function Ia(i,l,d,v){for(var x=i.length,_=v?x:-1;(v?_--:++_<x)&&l(i[_],_,i););return d?Mn(i,v?0:_,v?_+1:x):Mn(i,v?_+1:0,v?x:_)}function Bc(i,l){var d=i;return d instanceof bt&&(d=d.value()),Su(l,function(v,x){return x.func.apply(x.thisArg,Gi([v],x.args))},d)}function Vo(i,l,d){var v=i.length;if(v<2)return v?wn(i[0]):[];for(var x=-1,_=Y(v);++x<v;)for(var A=i[x],D=-1;++D<v;)D!=x&&(_[x]=Sa(_[x]||A,i[D],l,d));return wn(Dr(_,1),l,d)}function Ju(i,l,d){for(var v=-1,x=i.length,_=l.length,A={};++v<x;){var D=v<_?l[v]:o;d(A,i[v],D)}return A}function e0(i){return br(i)?i:[]}function $l(i){return typeof i=="function"?i:An}function qn(i,l){return ct(i)?i:C(i,l)?[i]:gr(Nt(i))}var Hf=ft;function po(i,l,d){var v=i.length;return d=d===o?v:d,!l&&d>=v?i:Mn(i,l,d)}var Da=yf||function(i){return qt.clearTimeout(i)};function t0(i,l){if(l)return i.slice();var d=i.length,v=bc?bc(d):new i.constructor(d);return i.copy(v),v}function Hl(i){var l=new i.constructor(i.byteLength);return new No(l).set(new No(i)),l}function Bf(i,l){var d=l?Hl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function r0(i){var l=new i.constructor(i.source,To.exec(i));return l.lastIndex=i.lastIndex,l}function Fc(i){return Kt?wt(Kt.call(i)):{}}function Wc(i,l){var d=l?Hl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function n0(i,l){if(i!==l){var d=i!==o,v=i===null,x=i===i,_=jn(i),A=l!==o,D=l===null,H=l===l,te=jn(l);if(!D&&!te&&!_&&i>l||_&&A&&H&&!D&&!te||v&&A&&H||!d&&H||!x)return 1;if(!v&&!_&&!te&&i<l||te&&d&&x&&!v&&!_||D&&d&&x||!A&&x||!H)return-1}return 0}function Uc(i,l,d){for(var v=-1,x=i.criteria,_=l.criteria,A=x.length,D=d.length;++v<A;){var H=n0(x[v],_[v]);if(H){if(v>=D)return H;var te=d[v];return H*(te=="desc"?-1:1)}}return i.index-l.index}function Yc(i,l,d,v){for(var x=-1,_=i.length,A=d.length,D=-1,H=l.length,te=jt(_-A,0),re=Y(H+te),se=!v;++D<H;)re[D]=l[D];for(;++x<A;)(se||x<_)&&(re[d[x]]=i[x]);for(;te--;)re[D++]=i[x++];return re}function Bl(i,l,d,v){for(var x=-1,_=i.length,A=-1,D=d.length,H=-1,te=l.length,re=jt(_-D,0),se=Y(re+te),Le=!v;++x<re;)se[x]=i[x];for(var Ne=x;++H<te;)se[Ne+H]=l[H];for(;++A<D;)(Le||x<_)&&(se[Ne+d[A]]=i[x++]);return se}function zr(i,l){var d=-1,v=i.length;for(l||(l=Y(v));++d<v;)l[d]=i[d];return l}function sn(i,l,d,v){var x=!d;d||(d={});for(var _=-1,A=l.length;++_<A;){var D=l[_],H=v?v(d[D],i[D],D,d,i):o;H===o&&(H=i[D]),x?di(d,D,H):Ls(d,D,H)}return d}function Ff(i,l){return sn(i,l0(i),l)}function Zc(i,l){return sn(i,r1(i),l)}function Fl(i,l){return function(d,v){var x=ct(d)?ff:Wu,_=l?l():{};return x(d,i,Be(v,2),_)}}function Ra(i){return ft(function(l,d){var v=-1,x=d.length,_=x>1?d[x-1]:o,A=x>2?d[2]:o;for(_=i.length>3&&typeof _=="function"?(x--,_):o,A&&y(d[0],d[1],A)&&(_=x<3?o:_,x=1),l=wt(l);++v<x;){var D=d[v];D&&i(l,D,v,_)}return l})}function Vc(i,l){return function(d,v){if(d==null)return d;if(!Tn(d))return i(d,v);for(var x=d.length,_=l?x:-1,A=wt(d);(l?_--:++_<x)&&v(A[_],_,A)!==!1;);return d}}function Gc(i){return function(l,d,v){for(var x=-1,_=wt(l),A=v(l),D=A.length;D--;){var H=A[i?D:++x];if(d(_[H],H,_)===!1)break}return l}}function qc(i,l,d){var v=l&me,x=$a(i);function _(){var A=this&&this!==qt&&this instanceof _?x:i;return A.apply(v?d:this,arguments)}return _}function jc(i){return function(l){l=Nt(l);var d=Zn(l)?zn(l):o,v=d?d[0]:l.charAt(0),x=d?po(d,1).join(""):l.slice(1);return v[i]()+x}}function Na(i){return function(l){return Su(ep(Jh(l).replace(Cu,"")),i,"")}}function $a(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ci(i.prototype),v=i.apply(d,l);return ar(v)?v:d}}function i0(i,l,d){var v=$a(i);function x(){for(var _=arguments.length,A=Y(_),D=_,H=Ba(x);D--;)A[D]=arguments[D];var te=_<3&&A[0]!==H&&A[_-1]!==H?[]:ji(A,H);if(_-=te.length,_<d)return Qc(i,l,Ps,x.placeholder,o,A,te,o,o,d-_);var re=this&&this!==qt&&this instanceof x?v:i;return bn(re,this,A)}return x}function o0(i){return function(l,d,v){var x=wt(l);if(!Tn(l)){var _=Be(d,3);l=Gr(l),d=function(D){return _(x[D],D,x)}}var A=i(l,d,v);return A>-1?x[_?l[A]:A]:o}}function Kc(i){return Pi(function(l){var d=l.length,v=d,x=Jr.prototype.thru;for(i&&l.reverse();v--;){var _=l[v];if(typeof _!="function")throw new an(b);if(x&&!A&&Rs(_)=="wrapper")var A=new Jr([],!0)}for(v=A?v:d;++v<d;){_=l[v];var D=Rs(_),H=D=="wrapper"?zt(_):o;H&&M(H[0])&&H[1]==(Ye|pe|Te|et)&&!H[4].length&&H[9]==1?A=A[Rs(H[0])].apply(A,H[3]):A=_.length==1&&M(_)?A[D]():A.thru(_)}return function(){var te=arguments,re=te[0];if(A&&te.length==1&&ct(re))return A.plant(re).value();for(var se=0,Le=d?l[se].apply(this,te):re;++se<d;)Le=l[se].call(this,Le);return Le}})}function Ps(i,l,d,v,x,_,A,D,H,te){var re=l&Ye,se=l&me,Le=l&Ae,Ne=l&(pe|he),je=l&nt,pt=Le?o:$a(i);function Ke(){for(var Ct=arguments.length,xt=Y(Ct),Kn=Ct;Kn--;)xt[Kn]=arguments[Kn];if(Ne)var xn=Ba(Ke),Xn=vf(xt,xn);if(v&&(xt=Yc(xt,v,x,Ne)),_&&(xt=Bl(xt,_,A,Ne)),Ct-=Xn,Ne&&Ct<te){var mr=ji(xt,xn);return Qc(i,l,Ps,Ke.placeholder,d,xt,mr,D,H,te-Ct)}var Ii=se?d:this,Jo=Le?Ii[i]:i;return Ct=xt.length,D?xt=lt(xt,D):je&&Ct>1&&xt.reverse(),re&&H<Ct&&(xt.length=H),this&&this!==qt&&this instanceof Ke&&(Jo=pt||$a(Jo)),Jo.apply(Ii,xt)}return Ke}function Go(i,l){return function(d,v){return Al(d,i,l(v),{})}}function As(i,l){return function(d,v){var x;if(d===o&&v===o)return l;if(d!==o&&(x=d),v!==o){if(x===o)return v;typeof d=="string"||typeof v=="string"?(d=Fr(d),v=Fr(v)):(d=Qu(d),v=Qu(v)),x=i(d,v)}return x}}function Ha(i){return Pi(function(l){return l=Et(l,Qr(Be())),ft(function(d){var v=this;return i(l,function(x){return bn(x,v,d)})})})}function Wl(i,l){l=l===o?" ":Fr(l);var d=l.length;if(d<2)return d?Ku(l,i):l;var v=Ku(l,xa(i/Do(l)));return Zn(l)?po(zn(v),0,i).join(""):v.slice(0,i)}function Wf(i,l,d,v){var x=l&me,_=$a(i);function A(){for(var D=-1,H=arguments.length,te=-1,re=v.length,se=Y(re+H),Le=this&&this!==qt&&this instanceof A?_:i;++te<re;)se[te]=v[te];for(;H--;)se[te++]=arguments[++D];return bn(Le,x?d:this,se)}return A}function Xc(i){return function(l,d,v){return v&&typeof v!="number"&&y(l,d,v)&&(d=v=o),l=Qo(l),d===o?(d=l,l=0):d=Qo(d),v=v===o?l<d?1:-1:Qo(v),Hc(l,d,v,i)}}function Dt(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=gi(l),d=gi(d)),i(l,d)}}function Qc(i,l,d,v,x,_,A,D,H,te){var re=l&pe,se=re?A:o,Le=re?o:A,Ne=re?_:o,je=re?o:_;l|=re?Te:He,l&=~(re?He:Te),l&Ie||(l&=~(me|Ae));var pt=[i,l,x,Ne,se,je,Le,D,H,te],Ke=d.apply(o,pt);return M(i)&&ur(Ke,pt),Ke.placeholder=v,Yr(Ke,i,l)}function Es(i){var l=pr[i];return function(d,v){if(d=gi(d),v=v==null?0:Pr(dt(v),292),v&&mc(d)){var x=(Nt(d)+"e").split("e"),_=l(x[0]+"e"+(+x[1]+v));return x=(Nt(_)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return l(d)}}var Is=Fo&&1/gl(new Fo([,-0]))[1]==ve?function(i){return new Fo(i)}:td;function kn(i){return function(l){var d=Wr(l);return d==lr?pl(l):d==tt?fc(l):zi(l,i(l))}}function On(i,l,d,v,x,_,A,D){var H=l&Ae;if(!H&&typeof i!="function")throw new an(b);var te=v?v.length:0;if(te||(l&=~(Te|He),v=x=o),A=A===o?A:jt(dt(A),0),D=D===o?D:dt(D),te-=x?x.length:0,l&He){var re=v,se=x;v=x=o}var Le=H?o:zt(i),Ne=[i,l,d,v,x,re,se,_,A,D];if(Le&&Ce(Ne,Le),i=Ne[0],l=Ne[1],d=Ne[2],v=Ne[3],x=Ne[4],D=Ne[9]=Ne[9]===o?H?0:i.length:jt(Ne[9]-te,0),!D&&l&(pe|he)&&(l&=~(pe|he)),!l||l==me)var je=qc(i,l,d);else l==pe||l==he?je=i0(i,l,D):(l==Te||l==(me|Te))&&!x.length?je=Wf(i,l,d,v):je=Ps.apply(o,Ne);var pt=Le?ks:ur;return Yr(pt(je,Ne),i,l)}function Ul(i,l,d,v){return i===o||Ei(i,Qi[d])&&!rt.call(v,d)?l:i}function a0(i,l,d,v,x,_){return ar(i)&&ar(l)&&(_.set(l,i),Il(i,l,o,a0,_),_.delete(l)),i}function Jc(i){return c0(i)?o:i}function s0(i,l,d,v,x,_){var A=d&ce,D=i.length,H=l.length;if(D!=H&&!(A&&H>D))return!1;var te=_.get(i),re=_.get(l);if(te&&re)return te==l&&re==i;var se=-1,Le=!0,Ne=d&we?new Ir:o;for(_.set(i,l),_.set(l,i);++se<D;){var je=i[se],pt=l[se];if(v)var Ke=A?v(pt,je,se,l,i,_):v(je,pt,se,i,l,_);if(Ke!==o){if(Ke)continue;Le=!1;break}if(Ne){if(!Ao(l,function(Ct,xt){if(!on(Ne,xt)&&(je===Ct||x(je,Ct,d,v,_)))return Ne.push(xt)})){Le=!1;break}}else if(!(je===pt||x(je,pt,d,v,_))){Le=!1;break}}return _.delete(i),_.delete(l),Le}function e1(i,l,d,v,x,_,A){switch(d){case $n:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case Mr:return!(i.byteLength!=l.byteLength||!_(new No(i),new No(l)));case Ze:case at:case Xe:return Ei(+i,+l);case We:return i.name==l.name&&i.message==l.message;case fr:case B:return i==l+"";case lr:var D=pl;case tt:var H=v&ce;if(D||(D=gl),i.size!=l.size&&!H)return!1;var te=A.get(i);if(te)return te==l;v|=we,A.set(i,l);var re=s0(D(i),D(l),v,x,_,A);return A.delete(i),re;case oe:if(Kt)return Kt.call(i)==Kt.call(l)}return!1}function t1(i,l,d,v,x,_){var A=d&ce,D=Ds(i),H=D.length,te=Ds(l),re=te.length;if(H!=re&&!A)return!1;for(var se=H;se--;){var Le=D[se];if(!(A?Le in l:rt.call(l,Le)))return!1}var Ne=_.get(i),je=_.get(l);if(Ne&&je)return Ne==l&&je==i;var pt=!0;_.set(i,l),_.set(l,i);for(var Ke=A;++se<H;){Le=D[se];var Ct=i[Le],xt=l[Le];if(v)var Kn=A?v(xt,Ct,Le,l,i,_):v(Ct,xt,Le,i,l,_);if(!(Kn===o?Ct===xt||x(Ct,xt,d,v,_):Kn)){pt=!1;break}Ke||(Ke=Le=="constructor")}if(pt&&!Ke){var xn=i.constructor,Xn=l.constructor;xn!=Xn&&"constructor"in i&&"constructor"in l&&!(typeof xn=="function"&&xn instanceof xn&&typeof Xn=="function"&&Xn instanceof Xn)&&(pt=!1)}return _.delete(i),_.delete(l),pt}function Pi(i){return Ur(Re(i,o,Sh),i+"")}function Ds(i){return Yo(i,Gr,l0)}function Yl(i){return Yo(i,Pn,r1)}var zt=ui?function(i){return ui.get(i)}:td;function Rs(i){for(var l=i.name+"",d=za[l],v=rt.call(za,l)?d.length:0;v--;){var x=d[v],_=x.func;if(_==null||_==i)return x.name}return l}function Ba(i){var l=rt.call(L,"placeholder")?L:i;return l.placeholder}function Be(){var i=L.iteratee||Jf;return i=i===Jf?Ic:i,arguments.length?i(arguments[0],arguments[1]):i}function Zl(i,l){var d=i.__data__;return z(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Fa(i){for(var l=Gr(i),d=l.length;d--;){var v=l[d],x=i[v];l[d]=[v,x,J(x)]}return l}function qo(i,l){var d=Au(i,l);return Aa(d)?d:o}function tr(i){var l=rt.call(i,to),d=i[to];try{i[to]=o;var v=!0}catch{}var x=Ro.call(i);return v&&(l?i[to]=d:delete i[to]),x}var l0=ro?function(i){return i==null?[]:(i=wt(i),Vi(ro(i),function(l){return yl.call(i,l)}))}:rd,r1=ro?function(i){for(var l=[];i;)Gi(l,l0(i)),i=Ca(i);return l}:rd,Wr=_r;(io&&Wr(new io(new ArrayBuffer(1)))!=$n||_a&&Wr(new _a)!=lr||wl&&Wr(wl.resolve())!=$r||Fo&&Wr(new Fo)!=tt||Cs&&Wr(new Cs)!=Qe)&&(Wr=function(i){var l=_r(i),d=l==kt?i.constructor:o,v=d?Ht(d):"";if(v)switch(v){case xf:return $n;case Lf:return lr;case _f:return $r;case zf:return tt;case Sf:return Qe}return l});function Vl(i,l,d){for(var v=-1,x=d.length;++v<x;){var _=d[v],A=_.size;switch(_.type){case"drop":i+=A;break;case"dropRight":l-=A;break;case"take":l=Pr(l,i+A);break;case"takeRight":i=jt(i,l-A);break}}return{start:i,end:l}}function e(i){var l=i.match(ns);return l?l[1].split(Yi):[]}function t(i,l,d){l=qn(l,i);for(var v=-1,x=l.length,_=!1;++v<x;){var A=It(l[v]);if(!(_=i!=null&&d(i,A)))break;i=i[A]}return _||++v!=x?_:(x=i==null?0:i.length,!!x&&l1(x)&&m(A,x)&&(ct(i)||Ns(i)))}function s(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&rt.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function a(i){return typeof i.constructor=="function"&&!Z(i)?ci(Ca(i)):{}}function u(i,l,d){var v=i.constructor;switch(l){case Mr:return Hl(i);case Ze:case at:return new v(+i);case $n:return Bf(i,d);case jr:case Zt:case xi:case Hr:case Hn:case $e:case Wi:case kr:case Ge:return Wc(i,d);case lr:return new v;case Xe:case B:return new v(i);case fr:return r0(i);case tt:return new v;case oe:return Fc(i)}}function h(i,l){var d=l.length;if(!d)return i;var v=d-1;return l[v]=(d>1?"& ":"")+l[v],l=l.join(d>2?", ":" "),i.replace(el,`{
2282
+ */(function(r,n){(function(){var o,c="4.17.21",f=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",b="Expected a function",k="Invalid `variable` option passed into `_.template`",S="__lodash_hash_undefined__",O=500,I="__lodash_placeholder__",U=1,q=2,X=4,ce=1,we=2,me=1,Ae=2,Ie=4,pe=8,he=16,Te=32,He=64,Ye=128,et=256,nt=512,ge=30,ye="...",it=800,W=16,E=1,T=2,ne=3,ve=1/0,ot=9007199254740991,At=17976931348623157e292,sr=0/0,Bt=4294967295,dn=Bt-1,er=Bt>>>1,Ft=[["ary",Ye],["bind",me],["bindKey",Ae],["curry",pe],["curryRight",he],["flip",nt],["partial",Te],["partialRight",He],["rearg",et]],ut="[object Arguments]",_e="[object Array]",Fe="[object AsyncFunction]",Ze="[object Boolean]",at="[object Date]",st="[object DOMException]",We="[object Error]",Gt="[object Function]",qr="[object GeneratorFunction]",lr="[object Map]",Xe="[object Number]",yt="[object Null]",kt="[object Object]",$r="[object Promise]",rn="[object Proxy]",fr="[object RegExp]",tt="[object Set]",B="[object String]",oe="[object Symbol]",V="[object Undefined]",Qe="[object WeakMap]",dr="[object WeakSet]",Mr="[object ArrayBuffer]",$n="[object DataView]",jr="[object Float32Array]",Zt="[object Float64Array]",xi="[object Int8Array]",Hr="[object Int16Array]",Hn="[object Int32Array]",$e="[object Uint8Array]",Ui="[object Uint8ClampedArray]",kr="[object Uint16Array]",Ge="[object Uint32Array]",ir=/\b__p \+= '';/g,pa=/\b(__p \+=) '' \+/g,wr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bn=/&(?:amp|lt|gt|quot|#39);/g,xr=/[&<>"']/g,ga=RegExp(Bn.source),hn=RegExp(xr.source),ko=/<%-([\s\S]+?)%>/g,Yi=/<%([\s\S]+?)%>/g,rs=/<%=([\s\S]+?)%>/g,ns=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/,Qs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oo=/[\\^$.*+?()[\]{}|]/g,ni=RegExp(Oo.source),To=/^\s+/,Js=/\s/,el=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,is=/\{\n\/\* \[wrapped with (.+)\] \*/,Zi=/,? & /,Ln=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,tl=/\\(\\)?/g,Li=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Po=/\w*$/,va=/^[-+]0x[0-9a-f]+$/i,Fn=/^0b[01]+$/i,Wn=/^\[object .+?Constructor\]$/,gn=/^0o[0-7]+$/i,os=/^(?:0|[1-9]\d*)$/,as=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wt=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",ss="\\u0300-\\u036f",nn="\\ufe20-\\ufe2f",Lt="\\u20d0-\\u20ff",Un=ss+nn+Lt,Vi="\\u2700-\\u27bf",ba="a-z\\xdf-\\xf6\\xf8-\\xff",ie="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",P="\\u2000-\\u206f",j=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ae="A-Z\\xc0-\\xd6\\xd8-\\xde",qe="\\ufe0e\\ufe0f",vt=ie+w+P+j,be="['\u2019]",Or="["+vn+"]",on="["+vt+"]",_i="["+Un+"]",Yn="\\d+",Y0="["+Vi+"]",bu="["+ba+"]",ma="[^"+vn+vt+Yn+Vi+ba+ae+"]",ls="\\ud83c[\\udffb-\\udfff]",Z0="(?:"+_i+"|"+ls+")",rl="[^"+vn+"]",nl="(?:\\ud83c[\\udde6-\\uddff]){2}",il="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+ae+"]",mu="\\u200d",V0="(?:"+bu+"|"+ma+")",nf="(?:"+Ao+"|"+ma+")",yu="(?:"+be+"(?:d|ll|m|re|s|t|ve))?",ii="(?:"+be+"(?:D|LL|M|RE|S|T|VE))?",G0=Z0+"?",q0="["+qe+"]?",ol="(?:"+mu+"(?:"+[rl,nl,il].join("|")+")"+q0+G0+")*",us="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",of="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",j0=q0+G0+ol,af="(?:"+[Y0,nl,il].join("|")+")"+j0,sf="(?:"+[rl+_i+"?",_i,nl,il,Or].join("|")+")",Cu=RegExp(be,"g"),K0=RegExp(_i,"g"),wu=RegExp(ls+"(?="+ls+")|"+sf+j0,"g"),X0=RegExp([Ao+"?"+bu+"+"+yu+"(?="+[on,Ao,"$"].join("|")+")",nf+"+"+ii+"(?="+[on,Ao+V0,"$"].join("|")+")",Ao+"?"+V0+"+"+yu,Ao+"+"+ii,of,us,Yn,af].join("|"),"g"),Q0=RegExp("["+mu+vn+Un+qe+"]"),al=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xu=-1,Ut={};Ut[jr]=Ut[Zt]=Ut[xi]=Ut[Hr]=Ut[Hn]=Ut[$e]=Ut[Ui]=Ut[kr]=Ut[Ge]=!0,Ut[ut]=Ut[_e]=Ut[Mr]=Ut[Ze]=Ut[$n]=Ut[at]=Ut[We]=Ut[Gt]=Ut[lr]=Ut[Xe]=Ut[kt]=Ut[fr]=Ut[tt]=Ut[B]=Ut[Qe]=!1;var $t={};$t[ut]=$t[_e]=$t[Mr]=$t[$n]=$t[Ze]=$t[at]=$t[jr]=$t[Zt]=$t[xi]=$t[Hr]=$t[Hn]=$t[lr]=$t[Xe]=$t[kt]=$t[fr]=$t[tt]=$t[B]=$t[oe]=$t[$e]=$t[Ui]=$t[kr]=$t[Ge]=!0,$t[We]=$t[Gt]=$t[Qe]=!1;var ll={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},lf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},J0={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},oi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uf=parseFloat,cf=parseInt,ul=typeof Ql=="object"&&Ql&&Ql.Object===Object&&Ql,ec=typeof self=="object"&&self&&self.Object===Object&&self,qt=ul||ec||Function("return this")(),cs=n&&!n.nodeType&&n,Xr=cs&&!0&&r&&!r.nodeType&&r,fs=Xr&&Xr.exports===cs,ds=fs&&ul.process,Tr=function(){try{var $=Xr&&Xr.require&&Xr.require("util").types;return $||ds&&ds.binding&&ds.binding("util")}catch{}}(),tc=Tr&&Tr.isArrayBuffer,rc=Tr&&Tr.isDate,nc=Tr&&Tr.isMap,ic=Tr&&Tr.isRegExp,Lu=Tr&&Tr.isSet,_u=Tr&&Tr.isTypedArray;function bn($,K,Y){switch(Y.length){case 0:return $.call(K);case 1:return $.call(K,Y[0]);case 2:return $.call(K,Y[0],Y[1]);case 3:return $.call(K,Y[0],Y[1],Y[2])}return $.apply(K,Y)}function ff($,K,Y,Me){for(var Je=-1,Mt=$==null?0:$.length;++Je<Mt;){var pr=$[Je];K(Me,pr,Y(pr),$)}return Me}function _n($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me&&K($[Y],Y,$)!==!1;);return $}function df($,K){for(var Y=$==null?0:$.length;Y--&&K($[Y],Y,$)!==!1;);return $}function zu($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me;)if(!K($[Y],Y,$))return!1;return!0}function Gi($,K){for(var Y=-1,Me=$==null?0:$.length,Je=0,Mt=[];++Y<Me;){var pr=$[Y];K(pr,Y,$)&&(Mt[Je++]=pr)}return Mt}function hs($,K){var Y=$==null?0:$.length;return!!Y&&Io($,K,0)>-1}function ya($,K,Y){for(var Me=-1,Je=$==null?0:$.length;++Me<Je;)if(Y(K,$[Me]))return!0;return!1}function Et($,K){for(var Y=-1,Me=$==null?0:$.length,Je=Array(Me);++Y<Me;)Je[Y]=K($[Y],Y,$);return Je}function qi($,K){for(var Y=-1,Me=K.length,Je=$.length;++Y<Me;)$[Je+Y]=K[Y];return $}function Su($,K,Y,Me){var Je=-1,Mt=$==null?0:$.length;for(Me&&Mt&&(Y=$[++Je]);++Je<Mt;)Y=K(Y,$[Je],Je,$);return Y}function hf($,K,Y,Me){var Je=$==null?0:$.length;for(Me&&Je&&(Y=$[--Je]);Je--;)Y=K(Y,$[Je],Je,$);return Y}function Eo($,K){for(var Y=-1,Me=$==null?0:$.length;++Y<Me;)if(K($[Y],Y,$))return!0;return!1}var hr=ku("length");function pf($){return $.split("")}function oc($){return $.match(Ln)||[]}function Ca($,K,Y){var Me;return Y($,function(Je,Mt,pr){if(K(Je,Mt,pr))return Me=Mt,!1}),Me}function cl($,K,Y,Me){for(var Je=$.length,Mt=Y+(Me?1:-1);Me?Mt--:++Mt<Je;)if(K($[Mt],Mt,$))return Mt;return-1}function Io($,K,Y){return K===K?dc($,K,Y):cl($,fl,Y)}function gf($,K,Y,Me){for(var Je=Y-1,Mt=$.length;++Je<Mt;)if(Me($[Je],K))return Je;return-1}function fl($){return $!==$}function Mu($,K){var Y=$==null?0:$.length;return Y?Pu($,K)/Y:sr}function ku($){return function(K){return K==null?o:K[$]}}function Ou($){return function(K){return $==null?o:$[K]}}function Tu($,K,Y,Me,Je){return Je($,function(Mt,pr,wt){Y=Me?(Me=!1,Mt):K(Y,Mt,pr,wt)}),Y}function ac($,K){var Y=$.length;for($.sort(K);Y--;)$[Y]=$[Y].value;return $}function Pu($,K){for(var Y,Me=-1,Je=$.length;++Me<Je;){var Mt=K($[Me]);Mt!==o&&(Y=Y===o?Mt:Y+Mt)}return Y}function Do($,K){for(var Y=-1,Me=Array($);++Y<$;)Me[Y]=K(Y);return Me}function zi($,K){return Et(K,function(Y){return[Y,$[Y]]})}function ps($){return $&&$.slice(0,vl($)+1).replace(To,"")}function Qr($){return function(K){return $(K)}}function dl($,K){return Et(K,function(Y){return $[Y]})}function an($,K){return $.has(K)}function ji($,K){for(var Y=-1,Me=$.length;++Y<Me&&Io(K,$[Y],0)>-1;);return Y}function hl($,K){for(var Y=$.length;Y--&&Io(K,$[Y],0)>-1;);return Y}function vf($,K){for(var Y=$.length,Me=0;Y--;)$[Y]===K&&++Me;return Me}var sc=Ou(ll),bf=Ou(lf);function lc($){return"\\"+oi[$]}function Au($,K){return $==null?o:$[K]}function Zn($){return Q0.test($)}function ai($){return al.test($)}function uc($){for(var K,Y=[];!(K=$.next()).done;)Y.push(K.value);return Y}function pl($){var K=-1,Y=Array($.size);return $.forEach(function(Me,Je){Y[++K]=[Je,Me]}),Y}function cc($,K){return function(Y){return $(K(Y))}}function Ki($,K){for(var Y=-1,Me=$.length,Je=0,Mt=[];++Y<Me;){var pr=$[Y];(pr===K||pr===I)&&($[Y]=I,Mt[Je++]=Y)}return Mt}function gl($){var K=-1,Y=Array($.size);return $.forEach(function(Me){Y[++K]=Me}),Y}function fc($){var K=-1,Y=Array($.size);return $.forEach(function(Me){Y[++K]=[Me,Me]}),Y}function dc($,K,Y){for(var Me=Y-1,Je=$.length;++Me<Je;)if($[Me]===K)return Me;return-1}function gs($,K,Y){for(var Me=Y+1;Me--;)if($[Me]===K)return Me;return Me}function Ro($){return Zn($)?hc($):hr($)}function zn($){return Zn($)?ml($):pf($)}function vl($){for(var K=$.length;K--&&Js.test($.charAt(K)););return K}var bl=Ou(J0);function hc($){for(var K=wu.lastIndex=0;wu.test($);)++K;return K}function ml($){return $.match(wu)||[]}function Vn($){return $.match(X0)||[]}var pc=function $(K){K=K==null?qt:Xi.defaults(qt.Object(),K,Xi.pick(qt,sl));var Y=K.Array,Me=K.Date,Je=K.Error,Mt=K.Function,pr=K.Math,wt=K.Object,Qi=K.RegExp,wa=K.String,sn=K.TypeError,xa=Y.prototype,gc=Mt.prototype,Ji=wt.prototype,si=K["__core-js_shared__"],li=gc.toString,rt=Ji.hasOwnProperty,eo=0,Si=function(){var i=/[^.]+$/.exec(si&&si.keys&&si.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),No=Ji.toString,mf=li.call(wt),vc=qt._,vs=Qi("^"+li.call(rt).replace(Oo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bs=fs?K.Buffer:o,Mi=K.Symbol,$o=K.Uint8Array,bc=bs?bs.allocUnsafe:o,La=cc(wt.getPrototypeOf,wt),Eu=wt.create,yl=Ji.propertyIsEnumerable,_a=xa.splice,Ho=Mi?Mi.isConcatSpreadable:o,to=Mi?Mi.iterator:o,ro=Mi?Mi.toStringTag:o,Bo=function(){try{var i=jo(wt,"defineProperty");return i({},"",{}),i}catch{}}(),yf=K.clearTimeout!==qt.clearTimeout&&K.clearTimeout,Cf=Me&&Me.now!==qt.Date.now&&Me.now,wf=K.setTimeout!==qt.setTimeout&&K.setTimeout,za=pr.ceil,Sa=pr.floor,no=wt.getOwnPropertySymbols,ms=bs?bs.isBuffer:o,mc=K.isFinite,Cl=xa.join,yc=cc(wt.keys,wt),jt=pr.max,Pr=pr.min,Fo=Me.now,ys=K.parseInt,io=pr.random,Cs=xa.reverse,oo=jo(K,"DataView"),Ma=jo(K,"Map"),wl=jo(K,"Promise"),Wo=jo(K,"Set"),ws=jo(K,"WeakMap"),Gn=jo(wt,"create"),ui=ws&&new ws,ka={},xf=Ht(oo),Lf=Ht(Ma),_f=Ht(wl),zf=Ht(Wo),Sf=Ht(ws),Ar=Mi?Mi.prototype:o,Kt=Ar?Ar.valueOf:o,Er=Ar?Ar.toString:o;function L(i){if(cr(i)&&!ct(i)&&!(i instanceof bt)){if(i instanceof Jr)return i;if(rt.call(i,"__wrapped__"))return Zr(i)}return new Jr(i)}var ci=function(){function i(){}return function(l){if(!ar(l))return{};if(Eu)return Eu(l);i.prototype=l;var d=new i;return i.prototype=o,d}}();function xl(){}function Jr(i,l){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=o}L.templateSettings={escape:ko,evaluate:Yi,interpolate:rs,variable:"",imports:{_:L}},L.prototype=xl.prototype,L.prototype.constructor=L,Jr.prototype=ci(xl.prototype),Jr.prototype.constructor=Jr;function bt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Bt,this.__views__=[]}function Mf(){var i=new bt(this.__wrapped__);return i.__actions__=zr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=zr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=zr(this.__views__),i}function kf(){if(this.__filtered__){var i=new bt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Iu(){var i=this.__wrapped__.value(),l=this.__dir__,d=ct(i),v=l<0,x=d?i.length:0,_=Vl(0,x,this.__views__),A=_.start,D=_.end,H=D-A,te=v?D:A-1,re=this.__iteratees__,se=re.length,Le=0,Ne=Pr(H,this.__takeCount__);if(!d||!v&&x==H&&Ne==H)return Bc(i,this.__actions__);var je=[];e:for(;H--&&Le<Ne;){te+=l;for(var gt=-1,Ke=i[te];++gt<se;){var Ct=re[gt],xt=Ct.iteratee,Kn=Ct.type,xn=xt(Ke);if(Kn==T)Ke=xn;else if(!xn){if(Kn==E)continue e;break e}}je[Le++]=Ke}return je}bt.prototype=ci(xl.prototype),bt.prototype.constructor=bt;function ao(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function Du(){this.__data__=Gn?Gn(null):{},this.size=0}function Of(i){var l=this.has(i)&&delete this.__data__[i];return this.size-=l?1:0,l}function Ru(i){var l=this.__data__;if(Gn){var d=l[i];return d===S?o:d}return rt.call(l,i)?l[i]:o}function Nu(i){var l=this.__data__;return Gn?l[i]!==o:rt.call(l,i)}function Cc(i,l){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Gn&&l===o?S:l,this}ao.prototype.clear=Du,ao.prototype.delete=Of,ao.prototype.get=Ru,ao.prototype.has=Nu,ao.prototype.set=Cc;function fi(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function $u(){this.__data__=[],this.size=0}function wc(i){var l=this.__data__,d=Uo(l,i);if(d<0)return!1;var v=l.length-1;return d==v?l.pop():_a.call(l,d,1),--this.size,!0}function xs(i){var l=this.__data__,d=Uo(l,i);return d<0?o:l[d][1]}function Tf(i){return Uo(this.__data__,i)>-1}function Ll(i,l){var d=this.__data__,v=Uo(d,i);return v<0?(++this.size,d.push([i,l])):d[v][1]=l,this}fi.prototype.clear=$u,fi.prototype.delete=wc,fi.prototype.get=xs,fi.prototype.has=Tf,fi.prototype.set=Ll;function or(i){var l=-1,d=i==null?0:i.length;for(this.clear();++l<d;){var v=i[l];this.set(v[0],v[1])}}function xc(){this.size=0,this.__data__={hash:new ao,map:new(Ma||fi),string:new ao}}function Pf(i){var l=Zl(this,i).delete(i);return this.size-=l?1:0,l}function Lc(i){return Zl(this,i).get(i)}function mn(i){return Zl(this,i).has(i)}function _t(i,l){var d=Zl(this,i),v=d.size;return d.set(i,l),this.size+=d.size==v?0:1,this}or.prototype.clear=xc,or.prototype.delete=Pf,or.prototype.get=Lc,or.prototype.has=mn,or.prototype.set=_t;function Ir(i){var l=-1,d=i==null?0:i.length;for(this.__data__=new or;++l<d;)this.add(i[l])}function so(i){return this.__data__.set(i,S),this}function lo(i){return this.__data__.has(i)}Ir.prototype.add=Ir.prototype.push=so,Ir.prototype.has=lo;function Sn(i){var l=this.__data__=new fi(i);this.size=l.size}function Hu(){this.__data__=new fi,this.size=0}function _c(i){var l=this.__data__,d=l.delete(i);return this.size=l.size,d}function Af(i){return this.__data__.get(i)}function Bu(i){return this.__data__.has(i)}function Ls(i,l){var d=this.__data__;if(d instanceof fi){var v=d.__data__;if(!Ma||v.length<f-1)return v.push([i,l]),this.size=++d.size,this;d=this.__data__=new or(v)}return d.set(i,l),this.size=d.size,this}Sn.prototype.clear=Hu,Sn.prototype.delete=_c,Sn.prototype.get=Af,Sn.prototype.has=Bu,Sn.prototype.set=Ls;function Fu(i,l){var d=ct(i),v=!d&&$s(i),x=!d&&!v&&Ga(i),_=!d&&!v&&!x&&ql(i),A=d||v||x||_,D=A?Do(i.length,wa):[],H=D.length;for(var te in i)(l||rt.call(i,te))&&!(A&&(te=="length"||x&&(te=="offset"||te=="parent")||_&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||m(te,H)))&&D.push(te);return D}function _l(i){var l=i.length;return l?i[Dl(0,l-1)]:o}function uo(i,l){return Sr(zr(i),Yo(l,0,i.length))}function zc(i){return Sr(zr(i))}function zl(i,l,d){(d!==o&&!Ei(i[l],d)||d===o&&!(l in i))&&di(i,l,d)}function _s(i,l,d){var v=i[l];(!(rt.call(i,l)&&Ei(v,d))||d===o&&!(l in i))&&di(i,l,d)}function Uo(i,l){for(var d=i.length;d--;)if(Ei(i[d][0],l))return d;return-1}function Wu(i,l,d,v){return yn(i,function(x,_,A){l(v,x,d(x),A)}),v}function Uu(i,l){return i&&ln(l,Gr(l),i)}function Ef(i,l){return i&&ln(l,Pn(l),i)}function di(i,l,d){l=="__proto__"&&Bo?Bo(i,l,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[l]=d}function Yu(i,l){for(var d=-1,v=l.length,x=Y(v),_=i==null;++d<v;)x[d]=_?o:jf(i,l[d]);return x}function Yo(i,l,d){return i===i&&(d!==o&&(i=i<=d?i:d),l!==o&&(i=i>=l?i:l)),i}function en(i,l,d,v,x,_){var A,D=l&U,H=l&q,te=l&X;if(d&&(A=x?d(i,v,x,_):d(i)),A!==o)return A;if(!ar(i))return i;var re=ct(i);if(re){if(A=s(i),!D)return zr(i,A)}else{var se=Wr(i),Le=se==Gt||se==qr;if(Ga(i))return t0(i,D);if(se==kt||se==ut||Le&&!x){if(A=H||Le?{}:a(i),!D)return H?Zc(i,Ef(A,i)):Ff(i,Uu(A,i))}else{if(!$t[se])return x?i:{};A=u(i,se,D)}}_||(_=new Sn);var Ne=_.get(i);if(Ne)return Ne;_.set(i,A),Uh(i)?i.forEach(function(Ke){A.add(en(Ke,l,d,Ke,i,_))}):Fh(i)&&i.forEach(function(Ke,Ct){A.set(Ct,en(Ke,l,d,Ct,i,_))});var je=te?H?Yl:Rs:H?Pn:Gr,gt=re?o:je(i);return _n(gt||i,function(Ke,Ct){gt&&(Ct=Ke,Ke=i[Ct]),_s(A,Ct,en(Ke,l,d,Ct,i,_))}),A}function Sc(i){var l=Gr(i);return function(d){return Mc(d,i,l)}}function Mc(i,l,d){var v=d.length;if(i==null)return!v;for(i=wt(i);v--;){var x=d[v],_=l[x],A=i[x];if(A===o&&!(x in i)||!_(A))return!1}return!0}function kc(i,l,d){if(typeof i!="function")throw new sn(b);return Rt(function(){i.apply(o,d)},l)}function Oa(i,l,d,v){var x=-1,_=hs,A=!0,D=i.length,H=[],te=l.length;if(!D)return H;d&&(l=Et(l,Qr(d))),v?(_=ya,A=!1):l.length>=f&&(_=an,A=!1,l=new Ir(l));e:for(;++x<D;){var re=i[x],se=d==null?re:d(re);if(re=v||re!==0?re:0,A&&se===se){for(var Le=te;Le--;)if(l[Le]===se)continue e;H.push(re)}else _(l,se,v)||H.push(re)}return H}var yn=Vc(Cn),Sl=Vc(Ol,!0);function Ml(i,l){var d=!0;return yn(i,function(v,x,_){return d=!!l(v,x,_),d}),d}function zs(i,l,d){for(var v=-1,x=i.length;++v<x;){var _=i[v],A=l(_);if(A!=null&&(D===o?A===A&&!jn(A):d(A,D)))var D=A,H=_}return H}function Zu(i,l,d,v){var x=i.length;for(d=dt(d),d<0&&(d=-d>x?0:x+d),v=v===o||v>x?x:dt(v),v<0&&(v+=x),v=d>v?0:Zh(v);d<v;)i[d++]=l;return i}function Vu(i,l){var d=[];return yn(i,function(v,x,_){l(v,x,_)&&d.push(v)}),d}function Dr(i,l,d,v,x){var _=-1,A=i.length;for(d||(d=g),x||(x=[]);++_<A;){var D=i[_];l>0&&d(D)?l>1?Dr(D,l-1,d,v,x):qi(x,D):v||(x[x.length]=D)}return x}var kl=Gc(),Lr=Gc(!0);function Cn(i,l){return i&&kl(i,l,Gr)}function Ol(i,l){return i&&Lr(i,l,Gr)}function Ss(i,l){return Gi(l,function(d){return Qo(i[d])})}function co(i,l){l=qn(l,i);for(var d=0,v=l.length;i!=null&&d<v;)i=i[It(l[d++])];return d&&d==v?i:o}function Zo(i,l,d){var v=l(i);return ct(i)?v:qi(v,d(i))}function _r(i){return i==null?i===o?V:yt:ro&&ro in wt(i)?tr(i):xe(i)}function Tl(i,l){return i>l}function Oc(i,l){return i!=null&&rt.call(i,l)}function Tc(i,l){return i!=null&&l in wt(i)}function Ta(i,l,d){return i>=Pr(l,d)&&i<jt(l,d)}function Pl(i,l,d){for(var v=d?ya:hs,x=i[0].length,_=i.length,A=_,D=Y(_),H=1/0,te=[];A--;){var re=i[A];A&&l&&(re=Et(re,Qr(l))),H=Pr(re.length,H),D[A]=!d&&(l||x>=120&&re.length>=120)?new Ir(A&&re):o}re=i[0];var se=-1,Le=D[0];e:for(;++se<x&&te.length<H;){var Ne=re[se],je=l?l(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(Le?an(Le,je):v(te,je,d))){for(A=_;--A;){var gt=D[A];if(!(gt?an(gt,je):v(i[A],je,d)))continue e}Le&&Le.push(je),te.push(Ne)}}return te}function Al(i,l,d,v){return Cn(i,function(x,_,A){l(v,d(x),_,A)}),v}function Pa(i,l,d){l=qn(l,i),i=Pe(i,l);var v=i==null?i:i[It(pi(l))];return v==null?o:bn(v,i,d)}function Aa(i){return cr(i)&&_r(i)==ut}function If(i){return cr(i)&&_r(i)==Mr}function Ea(i){return cr(i)&&_r(i)==at}function Ia(i,l,d,v,x){return i===l?!0:i==null||l==null||!cr(i)&&!cr(l)?i!==i&&l!==l:Pc(i,l,d,v,Ia,x)}function Pc(i,l,d,v,x,_){var A=ct(i),D=ct(l),H=A?_e:Wr(i),te=D?_e:Wr(l);H=H==ut?kt:H,te=te==ut?kt:te;var re=H==kt,se=te==kt,Le=H==te;if(Le&&Ga(i)){if(!Ga(l))return!1;A=!0,re=!1}if(Le&&!re)return _||(_=new Sn),A||ql(i)?s0(i,l,d,v,x,_):e1(i,l,H,d,v,x,_);if(!(d&ce)){var Ne=re&&rt.call(i,"__wrapped__"),je=se&&rt.call(l,"__wrapped__");if(Ne||je){var gt=Ne?i.value():i,Ke=je?l.value():l;return _||(_=new Sn),x(gt,Ke,d,v,_)}}return Le?(_||(_=new Sn),t1(i,l,d,v,x,_)):!1}function Ac(i){return cr(i)&&Wr(i)==lr}function Vo(i,l,d,v){var x=d.length,_=x,A=!v;if(i==null)return!_;for(i=wt(i);x--;){var D=d[x];if(A&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++x<_;){D=d[x];var H=D[0],te=i[H],re=D[1];if(A&&D[2]){if(te===o&&!(H in i))return!1}else{var se=new Sn;if(v)var Le=v(te,re,H,i,l,se);if(!(Le===o?Ia(re,te,ce|we,v,se):Le))return!1}}return!0}function Da(i){if(!ar(i)||N(i))return!1;var l=Qo(i)?vs:Wn;return l.test(Ht(i))}function Ms(i){return cr(i)&&_r(i)==fr}function ks(i){return cr(i)&&Wr(i)==tt}function Ec(i){return cr(i)&&l1(i.length)&&!!Ut[_r(i)]}function Ic(i){return typeof i=="function"?i:i==null?An:typeof i=="object"?ct(i)?Gu(i[0],i[1]):Dc(i):rp(i)}function El(i){if(!Z(i))return yc(i);var l=[];for(var d in wt(i))rt.call(i,d)&&d!="constructor"&&l.push(d);return l}function fo(i){if(!ar(i))return de(i);var l=Z(i),d=[];for(var v in i)v=="constructor"&&(l||!rt.call(i,v))||d.push(v);return d}function ho(i,l){return i<l}function Ra(i,l){var d=-1,v=Tn(i)?Y(i.length):[];return yn(i,function(x,_,A){v[++d]=l(x,_,A)}),v}function Dc(i){var l=Ya(i);return l.length==1&&l[0][2]?le(l[0][0],l[0][1]):function(d){return d===i||Vo(d,i,l)}}function Gu(i,l){return C(i)&&J(l)?le(It(i),l):function(d){var v=jf(d,i);return v===o&&v===l?Kf(d,i):Ia(l,v,ce|we)}}function Il(i,l,d,v,x){i!==l&&kl(l,function(_,A){if(x||(x=new Sn),ar(_))Df(i,l,A,d,Il,v,x);else{var D=v?v(Ot(i,A),_,A+"",i,l,x):o;D===o&&(D=_),zl(i,A,D)}},Pn)}function Df(i,l,d,v,x,_,A){var D=Ot(i,d),H=Ot(l,d),te=A.get(H);if(te){zl(i,d,te);return}var re=_?_(D,H,d+"",i,l,A):o,se=re===o;if(se){var Le=ct(H),Ne=!Le&&Ga(H),je=!Le&&!Ne&&ql(H);re=H,Le||Ne||je?ct(D)?re=D:br(D)?re=zr(D):Ne?(se=!1,re=t0(H,!0)):je?(se=!1,re=Wc(H,!0)):re=[]:c0(H)||$s(H)?(re=D,$s(D)?re=Vh(D):(!ar(D)||Qo(D))&&(re=a(H))):se=!1}se&&(A.set(H,re),x(re,H,v,_,A),A.delete(H)),zl(i,d,re)}function Rc(i,l){var d=i.length;if(!!d)return l+=l<0?d:0,m(l,d)?i[l]:o}function Br(i,l,d){l.length?l=Et(l,function(_){return ct(_)?function(A){return co(A,_.length===1?_[0]:_)}:_}):l=[An];var v=-1;l=Et(l,Qr(Be()));var x=Ra(i,function(_,A,D){var H=Et(l,function(te){return te(_)});return{criteria:H,index:++v,value:_}});return ac(x,function(_,A){return Uc(_,A,d)})}function Nc(i,l){return $c(i,l,function(d,v){return Kf(i,v)})}function $c(i,l,d){for(var v=-1,x=l.length,_={};++v<x;){var A=l[v],D=co(i,A);d(D,A)&&ki(_,qn(A,i),D)}return _}function Rf(i){return function(l){return co(l,i)}}function qu(i,l,d,v){var x=v?gf:Io,_=-1,A=l.length,D=i;for(i===l&&(l=zr(l)),d&&(D=Et(i,Qr(d)));++_<A;)for(var H=0,te=l[_],re=d?d(te):te;(H=x(D,re,H,v))>-1;)D!==i&&_a.call(D,H,1),_a.call(i,H,1);return i}function ju(i,l){for(var d=i?l.length:0,v=d-1;d--;){var x=l[d];if(d==v||x!==_){var _=x;m(x)?_a.call(i,x,1):Ps(i,x)}}return i}function Dl(i,l){return i+Sa(io()*(l-i+1))}function Hc(i,l,d,v){for(var x=-1,_=jt(za((l-i)/(d||1)),0),A=Y(_);_--;)A[v?_:++x]=i,i+=d;return A}function Ku(i,l){var d="";if(!i||l<1||l>ot)return d;do l%2&&(d+=i),l=Sa(l/2),l&&(i+=i);while(l);return d}function ft(i,l){return Ur(Re(i,l,An),i+"")}function Nf(i){return _l(jl(i))}function po(i,l){var d=jl(i);return Sr(d,Yo(l,0,d.length))}function ki(i,l,d,v){if(!ar(i))return i;l=qn(l,i);for(var x=-1,_=l.length,A=_-1,D=i;D!=null&&++x<_;){var H=It(l[x]),te=d;if(H==="__proto__"||H==="constructor"||H==="prototype")return i;if(x!=A){var re=D[H];te=v?v(re,H,D):o,te===o&&(te=ar(re)?re:m(l[x+1])?[]:{})}_s(D,H,te),D=D[H]}return i}var Os=ui?function(i,l){return ui.set(i,l),i}:An,Ts=Bo?function(i,l){return Bo(i,"toString",{configurable:!0,enumerable:!1,value:Qf(l),writable:!0})}:An;function Oi(i){return Sr(jl(i))}function Mn(i,l,d){var v=-1,x=i.length;l<0&&(l=-l>x?0:x+l),d=d>x?x:d,d<0&&(d+=x),x=l>d?0:d-l>>>0,l>>>=0;for(var _=Y(x);++v<x;)_[v]=i[v+l];return _}function $f(i,l){var d;return yn(i,function(v,x,_){return d=l(v,x,_),!d}),!!d}function Ti(i,l,d){var v=0,x=i==null?v:i.length;if(typeof l=="number"&&l===l&&x<=er){for(;v<x;){var _=v+x>>>1,A=i[_];A!==null&&!jn(A)&&(d?A<=l:A<l)?v=_+1:x=_}return x}return Rl(i,l,An,d)}function Rl(i,l,d,v){var x=0,_=i==null?0:i.length;if(_===0)return 0;l=d(l);for(var A=l!==l,D=l===null,H=jn(l),te=l===o;x<_;){var re=Sa((x+_)/2),se=d(i[re]),Le=se!==o,Ne=se===null,je=se===se,gt=jn(se);if(A)var Ke=v||je;else te?Ke=je&&(v||Le):D?Ke=je&&Le&&(v||!Ne):H?Ke=je&&Le&&!Ne&&(v||!gt):Ne||gt?Ke=!1:Ke=v?se<=l:se<l;Ke?x=re+1:_=re}return Pr(_,dn)}function Xu(i,l){for(var d=-1,v=i.length,x=0,_=[];++d<v;){var A=i[d],D=l?l(A):A;if(!d||!Ei(D,H)){var H=D;_[x++]=A===0?0:A}}return _}function Qu(i){return typeof i=="number"?i:jn(i)?sr:+i}function Fr(i){if(typeof i=="string")return i;if(ct(i))return Et(i,Fr)+"";if(jn(i))return Er?Er.call(i):"";var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function wn(i,l,d){var v=-1,x=hs,_=i.length,A=!0,D=[],H=D;if(d)A=!1,x=ya;else if(_>=f){var te=l?null:Ds(i);if(te)return gl(te);A=!1,x=an,H=new Ir}else H=l?[]:D;e:for(;++v<_;){var re=i[v],se=l?l(re):re;if(re=d||re!==0?re:0,A&&se===se){for(var Le=H.length;Le--;)if(H[Le]===se)continue e;l&&H.push(se),D.push(re)}else x(H,se,d)||(H!==D&&H.push(se),D.push(re))}return D}function Ps(i,l){return l=qn(l,i),i=Pe(i,l),i==null||delete i[It(pi(l))]}function Nl(i,l,d,v){return ki(i,l,d(co(i,l)),v)}function Na(i,l,d,v){for(var x=i.length,_=v?x:-1;(v?_--:++_<x)&&l(i[_],_,i););return d?Mn(i,v?0:_,v?_+1:x):Mn(i,v?_+1:0,v?x:_)}function Bc(i,l){var d=i;return d instanceof bt&&(d=d.value()),Su(l,function(v,x){return x.func.apply(x.thisArg,qi([v],x.args))},d)}function Go(i,l,d){var v=i.length;if(v<2)return v?wn(i[0]):[];for(var x=-1,_=Y(v);++x<v;)for(var A=i[x],D=-1;++D<v;)D!=x&&(_[x]=Oa(_[x]||A,i[D],l,d));return wn(Dr(_,1),l,d)}function Ju(i,l,d){for(var v=-1,x=i.length,_=l.length,A={};++v<x;){var D=v<_?l[v]:o;d(A,i[v],D)}return A}function e0(i){return br(i)?i:[]}function $l(i){return typeof i=="function"?i:An}function qn(i,l){return ct(i)?i:C(i,l)?[i]:gr(Nt(i))}var Hf=ft;function go(i,l,d){var v=i.length;return d=d===o?v:d,!l&&d>=v?i:Mn(i,l,d)}var $a=yf||function(i){return qt.clearTimeout(i)};function t0(i,l){if(l)return i.slice();var d=i.length,v=bc?bc(d):new i.constructor(d);return i.copy(v),v}function Hl(i){var l=new i.constructor(i.byteLength);return new $o(l).set(new $o(i)),l}function Bf(i,l){var d=l?Hl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function r0(i){var l=new i.constructor(i.source,Po.exec(i));return l.lastIndex=i.lastIndex,l}function Fc(i){return Kt?wt(Kt.call(i)):{}}function Wc(i,l){var d=l?Hl(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function n0(i,l){if(i!==l){var d=i!==o,v=i===null,x=i===i,_=jn(i),A=l!==o,D=l===null,H=l===l,te=jn(l);if(!D&&!te&&!_&&i>l||_&&A&&H&&!D&&!te||v&&A&&H||!d&&H||!x)return 1;if(!v&&!_&&!te&&i<l||te&&d&&x&&!v&&!_||D&&d&&x||!A&&x||!H)return-1}return 0}function Uc(i,l,d){for(var v=-1,x=i.criteria,_=l.criteria,A=x.length,D=d.length;++v<A;){var H=n0(x[v],_[v]);if(H){if(v>=D)return H;var te=d[v];return H*(te=="desc"?-1:1)}}return i.index-l.index}function Yc(i,l,d,v){for(var x=-1,_=i.length,A=d.length,D=-1,H=l.length,te=jt(_-A,0),re=Y(H+te),se=!v;++D<H;)re[D]=l[D];for(;++x<A;)(se||x<_)&&(re[d[x]]=i[x]);for(;te--;)re[D++]=i[x++];return re}function Bl(i,l,d,v){for(var x=-1,_=i.length,A=-1,D=d.length,H=-1,te=l.length,re=jt(_-D,0),se=Y(re+te),Le=!v;++x<re;)se[x]=i[x];for(var Ne=x;++H<te;)se[Ne+H]=l[H];for(;++A<D;)(Le||x<_)&&(se[Ne+d[A]]=i[x++]);return se}function zr(i,l){var d=-1,v=i.length;for(l||(l=Y(v));++d<v;)l[d]=i[d];return l}function ln(i,l,d,v){var x=!d;d||(d={});for(var _=-1,A=l.length;++_<A;){var D=l[_],H=v?v(d[D],i[D],D,d,i):o;H===o&&(H=i[D]),x?di(d,D,H):_s(d,D,H)}return d}function Ff(i,l){return ln(i,l0(i),l)}function Zc(i,l){return ln(i,r1(i),l)}function Fl(i,l){return function(d,v){var x=ct(d)?ff:Wu,_=l?l():{};return x(d,i,Be(v,2),_)}}function Ha(i){return ft(function(l,d){var v=-1,x=d.length,_=x>1?d[x-1]:o,A=x>2?d[2]:o;for(_=i.length>3&&typeof _=="function"?(x--,_):o,A&&y(d[0],d[1],A)&&(_=x<3?o:_,x=1),l=wt(l);++v<x;){var D=d[v];D&&i(l,D,v,_)}return l})}function Vc(i,l){return function(d,v){if(d==null)return d;if(!Tn(d))return i(d,v);for(var x=d.length,_=l?x:-1,A=wt(d);(l?_--:++_<x)&&v(A[_],_,A)!==!1;);return d}}function Gc(i){return function(l,d,v){for(var x=-1,_=wt(l),A=v(l),D=A.length;D--;){var H=A[i?D:++x];if(d(_[H],H,_)===!1)break}return l}}function qc(i,l,d){var v=l&me,x=Fa(i);function _(){var A=this&&this!==qt&&this instanceof _?x:i;return A.apply(v?d:this,arguments)}return _}function jc(i){return function(l){l=Nt(l);var d=Zn(l)?zn(l):o,v=d?d[0]:l.charAt(0),x=d?go(d,1).join(""):l.slice(1);return v[i]()+x}}function Ba(i){return function(l){return Su(ep(Jh(l).replace(Cu,"")),i,"")}}function Fa(i){return function(){var l=arguments;switch(l.length){case 0:return new i;case 1:return new i(l[0]);case 2:return new i(l[0],l[1]);case 3:return new i(l[0],l[1],l[2]);case 4:return new i(l[0],l[1],l[2],l[3]);case 5:return new i(l[0],l[1],l[2],l[3],l[4]);case 6:return new i(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new i(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var d=ci(i.prototype),v=i.apply(d,l);return ar(v)?v:d}}function i0(i,l,d){var v=Fa(i);function x(){for(var _=arguments.length,A=Y(_),D=_,H=Ua(x);D--;)A[D]=arguments[D];var te=_<3&&A[0]!==H&&A[_-1]!==H?[]:Ki(A,H);if(_-=te.length,_<d)return Qc(i,l,As,x.placeholder,o,A,te,o,o,d-_);var re=this&&this!==qt&&this instanceof x?v:i;return bn(re,this,A)}return x}function o0(i){return function(l,d,v){var x=wt(l);if(!Tn(l)){var _=Be(d,3);l=Gr(l),d=function(D){return _(x[D],D,x)}}var A=i(l,d,v);return A>-1?x[_?l[A]:A]:o}}function Kc(i){return Pi(function(l){var d=l.length,v=d,x=Jr.prototype.thru;for(i&&l.reverse();v--;){var _=l[v];if(typeof _!="function")throw new sn(b);if(x&&!A&&Ns(_)=="wrapper")var A=new Jr([],!0)}for(v=A?v:d;++v<d;){_=l[v];var D=Ns(_),H=D=="wrapper"?zt(_):o;H&&M(H[0])&&H[1]==(Ye|pe|Te|et)&&!H[4].length&&H[9]==1?A=A[Ns(H[0])].apply(A,H[3]):A=_.length==1&&M(_)?A[D]():A.thru(_)}return function(){var te=arguments,re=te[0];if(A&&te.length==1&&ct(re))return A.plant(re).value();for(var se=0,Le=d?l[se].apply(this,te):re;++se<d;)Le=l[se].call(this,Le);return Le}})}function As(i,l,d,v,x,_,A,D,H,te){var re=l&Ye,se=l&me,Le=l&Ae,Ne=l&(pe|he),je=l&nt,gt=Le?o:Fa(i);function Ke(){for(var Ct=arguments.length,xt=Y(Ct),Kn=Ct;Kn--;)xt[Kn]=arguments[Kn];if(Ne)var xn=Ua(Ke),Xn=vf(xt,xn);if(v&&(xt=Yc(xt,v,x,Ne)),_&&(xt=Bl(xt,_,A,Ne)),Ct-=Xn,Ne&&Ct<te){var mr=Ki(xt,xn);return Qc(i,l,As,Ke.placeholder,d,xt,mr,D,H,te-Ct)}var Ii=se?d:this,ea=Le?Ii[i]:i;return Ct=xt.length,D?xt=lt(xt,D):je&&Ct>1&&xt.reverse(),re&&H<Ct&&(xt.length=H),this&&this!==qt&&this instanceof Ke&&(ea=gt||Fa(ea)),ea.apply(Ii,xt)}return Ke}function qo(i,l){return function(d,v){return Al(d,i,l(v),{})}}function Es(i,l){return function(d,v){var x;if(d===o&&v===o)return l;if(d!==o&&(x=d),v!==o){if(x===o)return v;typeof d=="string"||typeof v=="string"?(d=Fr(d),v=Fr(v)):(d=Qu(d),v=Qu(v)),x=i(d,v)}return x}}function Wa(i){return Pi(function(l){return l=Et(l,Qr(Be())),ft(function(d){var v=this;return i(l,function(x){return bn(x,v,d)})})})}function Wl(i,l){l=l===o?" ":Fr(l);var d=l.length;if(d<2)return d?Ku(l,i):l;var v=Ku(l,za(i/Ro(l)));return Zn(l)?go(zn(v),0,i).join(""):v.slice(0,i)}function Wf(i,l,d,v){var x=l&me,_=Fa(i);function A(){for(var D=-1,H=arguments.length,te=-1,re=v.length,se=Y(re+H),Le=this&&this!==qt&&this instanceof A?_:i;++te<re;)se[te]=v[te];for(;H--;)se[te++]=arguments[++D];return bn(Le,x?d:this,se)}return A}function Xc(i){return function(l,d,v){return v&&typeof v!="number"&&y(l,d,v)&&(d=v=o),l=Jo(l),d===o?(d=l,l=0):d=Jo(d),v=v===o?l<d?1:-1:Jo(v),Hc(l,d,v,i)}}function Dt(i){return function(l,d){return typeof l=="string"&&typeof d=="string"||(l=gi(l),d=gi(d)),i(l,d)}}function Qc(i,l,d,v,x,_,A,D,H,te){var re=l&pe,se=re?A:o,Le=re?o:A,Ne=re?_:o,je=re?o:_;l|=re?Te:He,l&=~(re?He:Te),l&Ie||(l&=~(me|Ae));var gt=[i,l,x,Ne,se,je,Le,D,H,te],Ke=d.apply(o,gt);return M(i)&&ur(Ke,gt),Ke.placeholder=v,Yr(Ke,i,l)}function Is(i){var l=pr[i];return function(d,v){if(d=gi(d),v=v==null?0:Pr(dt(v),292),v&&mc(d)){var x=(Nt(d)+"e").split("e"),_=l(x[0]+"e"+(+x[1]+v));return x=(Nt(_)+"e").split("e"),+(x[0]+"e"+(+x[1]-v))}return l(d)}}var Ds=Wo&&1/gl(new Wo([,-0]))[1]==ve?function(i){return new Wo(i)}:td;function kn(i){return function(l){var d=Wr(l);return d==lr?pl(l):d==tt?fc(l):zi(l,i(l))}}function On(i,l,d,v,x,_,A,D){var H=l&Ae;if(!H&&typeof i!="function")throw new sn(b);var te=v?v.length:0;if(te||(l&=~(Te|He),v=x=o),A=A===o?A:jt(dt(A),0),D=D===o?D:dt(D),te-=x?x.length:0,l&He){var re=v,se=x;v=x=o}var Le=H?o:zt(i),Ne=[i,l,d,v,x,re,se,_,A,D];if(Le&&Ce(Ne,Le),i=Ne[0],l=Ne[1],d=Ne[2],v=Ne[3],x=Ne[4],D=Ne[9]=Ne[9]===o?H?0:i.length:jt(Ne[9]-te,0),!D&&l&(pe|he)&&(l&=~(pe|he)),!l||l==me)var je=qc(i,l,d);else l==pe||l==he?je=i0(i,l,D):(l==Te||l==(me|Te))&&!x.length?je=Wf(i,l,d,v):je=As.apply(o,Ne);var gt=Le?Os:ur;return Yr(gt(je,Ne),i,l)}function Ul(i,l,d,v){return i===o||Ei(i,Ji[d])&&!rt.call(v,d)?l:i}function a0(i,l,d,v,x,_){return ar(i)&&ar(l)&&(_.set(l,i),Il(i,l,o,a0,_),_.delete(l)),i}function Jc(i){return c0(i)?o:i}function s0(i,l,d,v,x,_){var A=d&ce,D=i.length,H=l.length;if(D!=H&&!(A&&H>D))return!1;var te=_.get(i),re=_.get(l);if(te&&re)return te==l&&re==i;var se=-1,Le=!0,Ne=d&we?new Ir:o;for(_.set(i,l),_.set(l,i);++se<D;){var je=i[se],gt=l[se];if(v)var Ke=A?v(gt,je,se,l,i,_):v(je,gt,se,i,l,_);if(Ke!==o){if(Ke)continue;Le=!1;break}if(Ne){if(!Eo(l,function(Ct,xt){if(!an(Ne,xt)&&(je===Ct||x(je,Ct,d,v,_)))return Ne.push(xt)})){Le=!1;break}}else if(!(je===gt||x(je,gt,d,v,_))){Le=!1;break}}return _.delete(i),_.delete(l),Le}function e1(i,l,d,v,x,_,A){switch(d){case $n:if(i.byteLength!=l.byteLength||i.byteOffset!=l.byteOffset)return!1;i=i.buffer,l=l.buffer;case Mr:return!(i.byteLength!=l.byteLength||!_(new $o(i),new $o(l)));case Ze:case at:case Xe:return Ei(+i,+l);case We:return i.name==l.name&&i.message==l.message;case fr:case B:return i==l+"";case lr:var D=pl;case tt:var H=v&ce;if(D||(D=gl),i.size!=l.size&&!H)return!1;var te=A.get(i);if(te)return te==l;v|=we,A.set(i,l);var re=s0(D(i),D(l),v,x,_,A);return A.delete(i),re;case oe:if(Kt)return Kt.call(i)==Kt.call(l)}return!1}function t1(i,l,d,v,x,_){var A=d&ce,D=Rs(i),H=D.length,te=Rs(l),re=te.length;if(H!=re&&!A)return!1;for(var se=H;se--;){var Le=D[se];if(!(A?Le in l:rt.call(l,Le)))return!1}var Ne=_.get(i),je=_.get(l);if(Ne&&je)return Ne==l&&je==i;var gt=!0;_.set(i,l),_.set(l,i);for(var Ke=A;++se<H;){Le=D[se];var Ct=i[Le],xt=l[Le];if(v)var Kn=A?v(xt,Ct,Le,l,i,_):v(Ct,xt,Le,i,l,_);if(!(Kn===o?Ct===xt||x(Ct,xt,d,v,_):Kn)){gt=!1;break}Ke||(Ke=Le=="constructor")}if(gt&&!Ke){var xn=i.constructor,Xn=l.constructor;xn!=Xn&&"constructor"in i&&"constructor"in l&&!(typeof xn=="function"&&xn instanceof xn&&typeof Xn=="function"&&Xn instanceof Xn)&&(gt=!1)}return _.delete(i),_.delete(l),gt}function Pi(i){return Ur(Re(i,o,Sh),i+"")}function Rs(i){return Zo(i,Gr,l0)}function Yl(i){return Zo(i,Pn,r1)}var zt=ui?function(i){return ui.get(i)}:td;function Ns(i){for(var l=i.name+"",d=ka[l],v=rt.call(ka,l)?d.length:0;v--;){var x=d[v],_=x.func;if(_==null||_==i)return x.name}return l}function Ua(i){var l=rt.call(L,"placeholder")?L:i;return l.placeholder}function Be(){var i=L.iteratee||Jf;return i=i===Jf?Ic:i,arguments.length?i(arguments[0],arguments[1]):i}function Zl(i,l){var d=i.__data__;return z(l)?d[typeof l=="string"?"string":"hash"]:d.map}function Ya(i){for(var l=Gr(i),d=l.length;d--;){var v=l[d],x=i[v];l[d]=[v,x,J(x)]}return l}function jo(i,l){var d=Au(i,l);return Da(d)?d:o}function tr(i){var l=rt.call(i,ro),d=i[ro];try{i[ro]=o;var v=!0}catch{}var x=No.call(i);return v&&(l?i[ro]=d:delete i[ro]),x}var l0=no?function(i){return i==null?[]:(i=wt(i),Gi(no(i),function(l){return yl.call(i,l)}))}:rd,r1=no?function(i){for(var l=[];i;)qi(l,l0(i)),i=La(i);return l}:rd,Wr=_r;(oo&&Wr(new oo(new ArrayBuffer(1)))!=$n||Ma&&Wr(new Ma)!=lr||wl&&Wr(wl.resolve())!=$r||Wo&&Wr(new Wo)!=tt||ws&&Wr(new ws)!=Qe)&&(Wr=function(i){var l=_r(i),d=l==kt?i.constructor:o,v=d?Ht(d):"";if(v)switch(v){case xf:return $n;case Lf:return lr;case _f:return $r;case zf:return tt;case Sf:return Qe}return l});function Vl(i,l,d){for(var v=-1,x=d.length;++v<x;){var _=d[v],A=_.size;switch(_.type){case"drop":i+=A;break;case"dropRight":l-=A;break;case"take":l=Pr(l,i+A);break;case"takeRight":i=jt(i,l-A);break}}return{start:i,end:l}}function e(i){var l=i.match(is);return l?l[1].split(Zi):[]}function t(i,l,d){l=qn(l,i);for(var v=-1,x=l.length,_=!1;++v<x;){var A=It(l[v]);if(!(_=i!=null&&d(i,A)))break;i=i[A]}return _||++v!=x?_:(x=i==null?0:i.length,!!x&&l1(x)&&m(A,x)&&(ct(i)||$s(i)))}function s(i){var l=i.length,d=new i.constructor(l);return l&&typeof i[0]=="string"&&rt.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function a(i){return typeof i.constructor=="function"&&!Z(i)?ci(La(i)):{}}function u(i,l,d){var v=i.constructor;switch(l){case Mr:return Hl(i);case Ze:case at:return new v(+i);case $n:return Bf(i,d);case jr:case Zt:case xi:case Hr:case Hn:case $e:case Ui:case kr:case Ge:return Wc(i,d);case lr:return new v;case Xe:case B:return new v(i);case fr:return r0(i);case tt:return new v;case oe:return Fc(i)}}function h(i,l){var d=l.length;if(!d)return i;var v=d-1;return l[v]=(d>1?"& ":"")+l[v],l=l.join(d>2?", ":" "),i.replace(el,`{
2270
2283
  /* [wrapped with `+l+`] */
2271
- `)}function p(i){return ct(i)||Ns(i)||!!($o&&i&&i[$o])}function m(i,l){var d=typeof i;return l=l==null?ot:l,!!l&&(d=="number"||d!="symbol"&&is.test(i))&&i>-1&&i%1==0&&i<l}function y(i,l,d){if(!ar(d))return!1;var v=typeof l;return(v=="number"?Tn(d)&&m(l,d.length):v=="string"&&l in d)?Ei(d[l],i):!1}function C(i,l){if(ct(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||jn(i)?!0:Kr.test(i)||!rs.test(i)||l!=null&&i in wt(l)}function z(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function M(i){var l=Rs(i),d=L[l];if(typeof d!="function"||!(l in bt.prototype))return!1;if(i===d)return!0;var v=zt(d);return!!v&&i===v[0]}function N(i){return!!Si&&Si in i}var R=si?Xo:nd;function Z(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||Qi;return i===d}function J(i){return i===i&&!ar(i)}function le(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==o||i in wt(d))}}function fe(i){var l=a1(i,function(v){return d.size===k&&d.clear(),v}),d=l.cache;return l}function Ce(i,l){var d=i[1],v=l[1],x=d|v,_=x<(me|Ae|Ye),A=v==Ye&&d==pe||v==Ye&&d==et&&i[7].length<=l[8]||v==(Ye|et)&&l[7].length<=l[8]&&d==pe;if(!(_||A))return i;v&me&&(i[2]=l[2],x|=d&me?0:Ie);var D=l[3];if(D){var H=i[3];i[3]=H?Yc(H,D,l[4]):D,i[4]=H?ji(i[3],I):l[4]}return D=l[5],D&&(H=i[5],i[5]=H?Bl(H,D,l[6]):D,i[6]=H?ji(i[5],I):l[6]),D=l[7],D&&(i[7]=D),v&Ye&&(i[8]=i[8]==null?l[8]:Pr(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=x,i}function de(i){var l=[];if(i!=null)for(var d in wt(i))l.push(d);return l}function xe(i){return Ro.call(i)}function Re(i,l,d){return l=jt(l===o?i.length-1:l,0),function(){for(var v=arguments,x=-1,_=jt(v.length-l,0),A=Y(_);++x<_;)A[x]=v[l+x];x=-1;for(var D=Y(l+1);++x<l;)D[x]=v[x];return D[l]=d(A),bn(i,this,D)}}function Pe(i,l){return l.length<2?i:uo(i,Mn(l,0,-1))}function lt(i,l){for(var d=i.length,v=Pr(l.length,d),x=zr(i);v--;){var _=l[v];i[v]=m(_,d)?x[_]:o}return i}function Ot(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var ur=rr(ks),Rt=wf||function(i,l){return qt.setTimeout(i,l)},Ur=rr(Os);function Yr(i,l,d){var v=l+"";return Ur(i,h(v,Xt(e(v),d)))}function rr(i){var l=0,d=0;return function(){var v=Bo(),x=W-(v-d);if(d=v,x>0){if(++l>=it)return arguments[0]}else l=0;return i.apply(o,arguments)}}function Sr(i,l){var d=-1,v=i.length,x=v-1;for(l=l===o?v:l;++d<l;){var _=Dl(d,x),A=i[_];i[_]=i[d],i[d]=A}return i.length=l,i}var gr=fe(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Qs,function(d,v,x,_){l.push(x?_.replace(tl,"$1"):v||d)}),l});function It(i){if(typeof i=="string"||jn(i))return i;var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function Ht(i){if(i!=null){try{return li.call(i)}catch{}try{return i+""}catch{}}return""}function Xt(i,l){return _n(Ft,function(d){var v="_."+d[0];l&d[1]&&!ds(i,v)&&i.push(v)}),i.sort()}function Zr(i){if(i instanceof bt)return i.clone();var l=new Jr(i.__wrapped__,i.__chain__);return l.__actions__=zr(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function Wa(i,l,d){(d?y(i,l,d):l===o)?l=1:l=jt(dt(l),0);var v=i==null?0:i.length;if(!v||l<1)return[];for(var x=0,_=0,A=Y(xa(v/l));x<v;)A[_++]=Mn(i,x,x+=l);return A}function go(i){for(var l=-1,d=i==null?0:i.length,v=0,x=[];++l<d;){var _=i[l];_&&(x[v++]=_)}return x}function Rr(){var i=arguments.length;if(!i)return[];for(var l=Y(i-1),d=arguments[0],v=i;v--;)l[v-1]=arguments[v];return Gi(ct(d)?zr(d):[d],Dr(l,1))}var hi=ft(function(i,l){return br(i)?Sa(i,Dr(l,1,br,!0)):[]}),vr=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Sa(i,Dr(l,1,br,!0),Be(d,2)):[]}),u0=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Sa(i,Dr(l,1,br,!0),o,d):[]});function Ai(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),Mn(i,l<0?0:l,v)):[]}function jo(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,Mn(i,0,l<0?0:l)):[]}function Ko(i,l){return i&&i.length?Ia(i,Be(l,3),!0,!0):[]}function Vr(i,l){return i&&i.length?Ia(i,Be(l,3),!0):[]}function Ua(i,l,d,v){var x=i==null?0:i.length;return x?(d&&typeof d!="number"&&y(i,l,d)&&(d=0,v=x),Zu(i,l,d,v)):[]}function Gl(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),cl(i,Be(l,3),x)}function zh(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v-1;return d!==o&&(x=dt(d),x=d<0?jt(v+x,0):Pr(x,v-1)),cl(i,Be(l,3),x,!0)}function Sh(i){var l=i==null?0:i.length;return l?Dr(i,1):[]}function v5(i){var l=i==null?0:i.length;return l?Dr(i,ve):[]}function b5(i,l){var d=i==null?0:i.length;return d?(l=l===o?1:dt(l),Dr(i,l)):[]}function m5(i){for(var l=-1,d=i==null?0:i.length,v={};++l<d;){var x=i[l];v[x[0]]=x[1]}return v}function Mh(i){return i&&i.length?i[0]:o}function y5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),Eo(i,l,x)}function C5(i){var l=i==null?0:i.length;return l?Mn(i,0,-1):[]}var w5=ft(function(i){var l=Et(i,e0);return l.length&&l[0]===i[0]?Pl(l):[]}),x5=ft(function(i){var l=pi(i),d=Et(i,e0);return l===pi(d)?l=o:d.pop(),d.length&&d[0]===i[0]?Pl(d,Be(l,2)):[]}),L5=ft(function(i){var l=pi(i),d=Et(i,e0);return l=typeof l=="function"?l:o,l&&d.pop(),d.length&&d[0]===i[0]?Pl(d,o,l):[]});function _5(i,l){return i==null?"":Cl.call(i,l)}function pi(i){var l=i==null?0:i.length;return l?i[l-1]:o}function z5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v;return d!==o&&(x=dt(d),x=x<0?jt(v+x,0):Pr(x,v-1)),l===l?ps(i,l,x):cl(i,fl,x,!0)}function S5(i,l){return i&&i.length?Rc(i,dt(l)):o}var M5=ft(kh);function kh(i,l){return i&&i.length&&l&&l.length?qu(i,l):i}function k5(i,l,d){return i&&i.length&&l&&l.length?qu(i,l,Be(d,2)):i}function O5(i,l,d){return i&&i.length&&l&&l.length?qu(i,l,o,d):i}var T5=Pi(function(i,l){var d=i==null?0:i.length,v=Yu(i,l);return ju(i,Et(l,function(x){return m(x,d)?+x:x}).sort(n0)),v});function P5(i,l){var d=[];if(!(i&&i.length))return d;var v=-1,x=[],_=i.length;for(l=Be(l,3);++v<_;){var A=i[v];l(A,v,i)&&(d.push(A),x.push(v))}return ju(i,x),d}function Uf(i){return i==null?i:ys.call(i)}function A5(i,l,d){var v=i==null?0:i.length;return v?(d&&typeof d!="number"&&y(i,l,d)?(l=0,d=v):(l=l==null?0:dt(l),d=d===o?v:dt(d)),Mn(i,l,d)):[]}function E5(i,l){return Ti(i,l)}function I5(i,l,d){return Rl(i,l,Be(d,2))}function D5(i,l){var d=i==null?0:i.length;if(d){var v=Ti(i,l);if(v<d&&Ei(i[v],l))return v}return-1}function R5(i,l){return Ti(i,l,!0)}function N5(i,l,d){return Rl(i,l,Be(d,2),!0)}function $5(i,l){var d=i==null?0:i.length;if(d){var v=Ti(i,l,!0)-1;if(Ei(i[v],l))return v}return-1}function H5(i){return i&&i.length?Xu(i):[]}function B5(i,l){return i&&i.length?Xu(i,Be(l,2)):[]}function F5(i){var l=i==null?0:i.length;return l?Mn(i,1,l):[]}function W5(i,l,d){return i&&i.length?(l=d||l===o?1:dt(l),Mn(i,0,l<0?0:l)):[]}function U5(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,Mn(i,l<0?0:l,v)):[]}function Y5(i,l){return i&&i.length?Ia(i,Be(l,3),!1,!0):[]}function Z5(i,l){return i&&i.length?Ia(i,Be(l,3)):[]}var V5=ft(function(i){return wn(Dr(i,1,br,!0))}),G5=ft(function(i){var l=pi(i);return br(l)&&(l=o),wn(Dr(i,1,br,!0),Be(l,2))}),q5=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,wn(Dr(i,1,br,!0),o,l)});function j5(i){return i&&i.length?wn(i):[]}function K5(i,l){return i&&i.length?wn(i,Be(l,2)):[]}function X5(i,l){return l=typeof l=="function"?l:o,i&&i.length?wn(i,o,l):[]}function Yf(i){if(!(i&&i.length))return[];var l=0;return i=Vi(i,function(d){if(br(d))return l=jt(d.length,l),!0}),Io(l,function(d){return Et(i,ku(d))})}function Oh(i,l){if(!(i&&i.length))return[];var d=Yf(i);return l==null?d:Et(d,function(v){return bn(l,o,v)})}var Q5=ft(function(i,l){return br(i)?Sa(i,l):[]}),J5=ft(function(i){return Vo(Vi(i,br))}),e6=ft(function(i){var l=pi(i);return br(l)&&(l=o),Vo(Vi(i,br),Be(l,2))}),t6=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,Vo(Vi(i,br),o,l)}),r6=ft(Yf);function n6(i,l){return Ju(i||[],l||[],Ls)}function i6(i,l){return Ju(i||[],l||[],ki)}var o6=ft(function(i){var l=i.length,d=l>1?i[l-1]:o;return d=typeof d=="function"?(i.pop(),d):o,Oh(i,d)});function Th(i){var l=L(i);return l.__chain__=!0,l}function a6(i,l){return l(i),i}function n1(i,l){return l(i)}var s6=Pi(function(i){var l=i.length,d=l?i[0]:0,v=this.__wrapped__,x=function(_){return Yu(_,i)};return l>1||this.__actions__.length||!(v instanceof bt)||!m(d)?this.thru(x):(v=v.slice(d,+d+(l?1:0)),v.__actions__.push({func:n1,args:[x],thisArg:o}),new Jr(v,this.__chain__).thru(function(_){return l&&!_.length&&_.push(o),_}))});function l6(){return Th(this)}function u6(){return new Jr(this.value(),this.__chain__)}function c6(){this.__values__===o&&(this.__values__=Yh(this.value()));var i=this.__index__>=this.__values__.length,l=i?o:this.__values__[this.__index__++];return{done:i,value:l}}function f6(){return this}function d6(i){for(var l,d=this;d instanceof xl;){var v=Zr(d);v.__index__=0,v.__values__=o,l?x.__wrapped__=v:l=v;var x=v;d=d.__wrapped__}return x.__wrapped__=i,l}function h6(){var i=this.__wrapped__;if(i instanceof bt){var l=i;return this.__actions__.length&&(l=new bt(this)),l=l.reverse(),l.__actions__.push({func:n1,args:[Uf],thisArg:o}),new Jr(l,this.__chain__)}return this.thru(Uf)}function p6(){return Bc(this.__wrapped__,this.__actions__)}var g6=Fl(function(i,l,d){rt.call(i,d)?++i[d]:di(i,d,1)});function v6(i,l,d){var v=ct(i)?zu:Ml;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}function b6(i,l){var d=ct(i)?Vi:Vu;return d(i,Be(l,3))}var m6=o0(Gl),y6=o0(zh);function C6(i,l){return Dr(i1(i,l),1)}function w6(i,l){return Dr(i1(i,l),ve)}function x6(i,l,d){return d=d===o?1:dt(d),Dr(i1(i,l),d)}function Ph(i,l){var d=ct(i)?_n:yn;return d(i,Be(l,3))}function Ah(i,l){var d=ct(i)?df:Sl;return d(i,Be(l,3))}var L6=Fl(function(i,l,d){rt.call(i,d)?i[d].push(l):di(i,d,[l])});function _6(i,l,d,v){i=Tn(i)?i:jl(i),d=d&&!v?dt(d):0;var x=i.length;return d<0&&(d=jt(x+d,0)),u1(i)?d<=x&&i.indexOf(l,d)>-1:!!x&&Eo(i,l,d)>-1}var z6=ft(function(i,l,d){var v=-1,x=typeof l=="function",_=Tn(i)?Y(i.length):[];return yn(i,function(A){_[++v]=x?bn(l,A,d):ka(A,l,d)}),_}),S6=Fl(function(i,l,d){di(i,d,l)});function i1(i,l){var d=ct(i)?Et:Ea;return d(i,Be(l,3))}function M6(i,l,d,v){return i==null?[]:(ct(l)||(l=l==null?[]:[l]),d=v?o:d,ct(d)||(d=d==null?[]:[d]),Br(i,l,d))}var k6=Fl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function O6(i,l,d){var v=ct(i)?Su:Tu,x=arguments.length<3;return v(i,Be(l,4),d,x,yn)}function T6(i,l,d){var v=ct(i)?hf:Tu,x=arguments.length<3;return v(i,Be(l,4),d,x,Sl)}function P6(i,l){var d=ct(i)?Vi:Vu;return d(i,s1(Be(l,3)))}function A6(i){var l=ct(i)?_l:Nf;return l(i)}function E6(i,l,d){(d?y(i,l,d):l===o)?l=1:l=dt(l);var v=ct(i)?lo:ho;return v(i,l)}function I6(i){var l=ct(i)?zc:Oi;return l(i)}function D6(i){if(i==null)return 0;if(Tn(i))return u1(i)?Do(i):i.length;var l=Wr(i);return l==lr||l==tt?i.size:El(i).length}function R6(i,l,d){var v=ct(i)?Ao:$f;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}var N6=ft(function(i,l){if(i==null)return[];var d=l.length;return d>1&&y(i,l[0],l[1])?l=[]:d>2&&y(l[0],l[1],l[2])&&(l=[l[0]]),Br(i,Dr(l,1),[])}),o1=Cf||function(){return qt.Date.now()};function $6(i,l){if(typeof l!="function")throw new an(b);return i=dt(i),function(){if(--i<1)return l.apply(this,arguments)}}function Eh(i,l,d){return l=d?o:l,l=i&&l==null?i.length:l,On(i,Ye,o,o,o,o,l)}function Ih(i,l){var d;if(typeof l!="function")throw new an(b);return i=dt(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=o),d}}var Zf=ft(function(i,l,d){var v=me;if(d.length){var x=ji(d,Ba(Zf));v|=Te}return On(i,v,l,d,x)}),Dh=ft(function(i,l,d){var v=me|Ae;if(d.length){var x=ji(d,Ba(Dh));v|=Te}return On(l,v,i,d,x)});function Rh(i,l,d){l=d?o:l;var v=On(i,pe,o,o,o,o,o,l);return v.placeholder=Rh.placeholder,v}function Nh(i,l,d){l=d?o:l;var v=On(i,he,o,o,o,o,o,l);return v.placeholder=Nh.placeholder,v}function $h(i,l,d){var v,x,_,A,D,H,te=0,re=!1,se=!1,Le=!0;if(typeof i!="function")throw new an(b);l=gi(l)||0,ar(d)&&(re=!!d.leading,se="maxWait"in d,_=se?jt(gi(d.maxWait)||0,l):_,Le="trailing"in d?!!d.trailing:Le);function Ne(mr){var Ii=v,Jo=x;return v=x=o,te=mr,A=i.apply(Jo,Ii),A}function je(mr){return te=mr,D=Rt(Ct,l),re?Ne(mr):A}function pt(mr){var Ii=mr-H,Jo=mr-te,np=l-Ii;return se?Pr(np,_-Jo):np}function Ke(mr){var Ii=mr-H,Jo=mr-te;return H===o||Ii>=l||Ii<0||se&&Jo>=_}function Ct(){var mr=o1();if(Ke(mr))return xt(mr);D=Rt(Ct,pt(mr))}function xt(mr){return D=o,Le&&v?Ne(mr):(v=x=o,A)}function Kn(){D!==o&&Da(D),te=0,v=H=x=D=o}function xn(){return D===o?A:xt(o1())}function Xn(){var mr=o1(),Ii=Ke(mr);if(v=arguments,x=this,H=mr,Ii){if(D===o)return je(H);if(se)return Da(D),D=Rt(Ct,l),Ne(H)}return D===o&&(D=Rt(Ct,l)),A}return Xn.cancel=Kn,Xn.flush=xn,Xn}var H6=ft(function(i,l){return kc(i,1,l)}),B6=ft(function(i,l,d){return kc(i,gi(l)||0,d)});function F6(i){return On(i,nt)}function a1(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new an(b);var d=function(){var v=arguments,x=l?l.apply(this,v):v[0],_=d.cache;if(_.has(x))return _.get(x);var A=i.apply(this,v);return d.cache=_.set(x,A)||_,A};return d.cache=new(a1.Cache||or),d}a1.Cache=or;function s1(i){if(typeof i!="function")throw new an(b);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function W6(i){return Ih(2,i)}var U6=Hf(function(i,l){l=l.length==1&&ct(l[0])?Et(l[0],Qr(Be())):Et(Dr(l,1),Qr(Be()));var d=l.length;return ft(function(v){for(var x=-1,_=Pr(v.length,d);++x<_;)v[x]=l[x].call(this,v[x]);return bn(i,this,v)})}),Vf=ft(function(i,l){var d=ji(l,Ba(Vf));return On(i,Te,o,l,d)}),Hh=ft(function(i,l){var d=ji(l,Ba(Hh));return On(i,He,o,l,d)}),Y6=Pi(function(i,l){return On(i,et,o,o,o,l)});function Z6(i,l){if(typeof i!="function")throw new an(b);return l=l===o?l:dt(l),ft(i,l)}function V6(i,l){if(typeof i!="function")throw new an(b);return l=l==null?0:jt(dt(l),0),ft(function(d){var v=d[l],x=po(d,0,l);return v&&Gi(x,v),bn(i,this,x)})}function G6(i,l,d){var v=!0,x=!0;if(typeof i!="function")throw new an(b);return ar(d)&&(v="leading"in d?!!d.leading:v,x="trailing"in d?!!d.trailing:x),$h(i,l,{leading:v,maxWait:l,trailing:x})}function q6(i){return Eh(i,1)}function j6(i,l){return Vf($l(l),i)}function K6(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function X6(i){return en(i,X)}function Q6(i,l){return l=typeof l=="function"?l:o,en(i,X,l)}function J6(i){return en(i,U|X)}function e3(i,l){return l=typeof l=="function"?l:o,en(i,U|X,l)}function t3(i,l){return l==null||Mc(i,l,Gr(l))}function Ei(i,l){return i===l||i!==i&&l!==l}var r3=Dt(Tl),n3=Dt(function(i,l){return i>=l}),Ns=Oa(function(){return arguments}())?Oa:function(i){return cr(i)&&rt.call(i,"callee")&&!yl.call(i,"callee")},ct=Y.isArray,i3=tc?Qr(tc):If;function Tn(i){return i!=null&&l1(i.length)&&!Xo(i)}function br(i){return cr(i)&&Tn(i)}function o3(i){return i===!0||i===!1||cr(i)&&_r(i)==Ze}var Ya=bs||nd,a3=rc?Qr(rc):Ta;function s3(i){return cr(i)&&i.nodeType===1&&!c0(i)}function l3(i){if(i==null)return!0;if(Tn(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Ya(i)||ql(i)||Ns(i)))return!i.length;var l=Wr(i);if(l==lr||l==tt)return!i.size;if(Z(i))return!El(i).length;for(var d in i)if(rt.call(i,d))return!1;return!0}function u3(i,l){return Pa(i,l)}function c3(i,l,d){d=typeof d=="function"?d:o;var v=d?d(i,l):o;return v===o?Pa(i,l,o,d):!!v}function Gf(i){if(!cr(i))return!1;var l=_r(i);return l==We||l==st||typeof i.message=="string"&&typeof i.name=="string"&&!c0(i)}function f3(i){return typeof i=="number"&&mc(i)}function Xo(i){if(!ar(i))return!1;var l=_r(i);return l==Gt||l==qr||l==Fe||l==tn}function Bh(i){return typeof i=="number"&&i==dt(i)}function l1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ot}function ar(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function cr(i){return i!=null&&typeof i=="object"}var Fh=nc?Qr(nc):Ac;function d3(i,l){return i===l||Zo(i,l,Fa(l))}function h3(i,l,d){return d=typeof d=="function"?d:o,Zo(i,l,Fa(l),d)}function p3(i){return Wh(i)&&i!=+i}function g3(i){if(R(i))throw new Je(g);return Aa(i)}function v3(i){return i===null}function b3(i){return i==null}function Wh(i){return typeof i=="number"||cr(i)&&_r(i)==Xe}function c0(i){if(!cr(i)||_r(i)!=kt)return!1;var l=Ca(i);if(l===null)return!0;var d=rt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&li.call(d)==mf}var qf=ic?Qr(ic):Ss;function m3(i){return Bh(i)&&i>=-ot&&i<=ot}var Uh=Lu?Qr(Lu):Ms;function u1(i){return typeof i=="string"||!ct(i)&&cr(i)&&_r(i)==B}function jn(i){return typeof i=="symbol"||cr(i)&&_r(i)==oe}var ql=_u?Qr(_u):Ec;function y3(i){return i===o}function C3(i){return cr(i)&&Wr(i)==Qe}function w3(i){return cr(i)&&_r(i)==dr}var x3=Dt(fo),L3=Dt(function(i,l){return i<=l});function Yh(i){if(!i)return[];if(Tn(i))return u1(i)?zn(i):zr(i);if(eo&&i[eo])return uc(i[eo]());var l=Wr(i),d=l==lr?pl:l==tt?gl:jl;return d(i)}function Qo(i){if(!i)return i===0?i:0;if(i=gi(i),i===ve||i===-ve){var l=i<0?-1:1;return l*At}return i===i?i:0}function dt(i){var l=Qo(i),d=l%1;return l===l?d?l-d:l:0}function Zh(i){return i?Uo(dt(i),0,Bt):0}function gi(i){if(typeof i=="number")return i;if(jn(i))return sr;if(ar(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=ar(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=hs(i);var d=Fn.test(i);return d||gn.test(i)?cf(i.slice(2),d?2:8):ha.test(i)?sr:+i}function Vh(i){return sn(i,Pn(i))}function _3(i){return i?Uo(dt(i),-ot,ot):i===0?i:0}function Nt(i){return i==null?"":Fr(i)}var z3=Ra(function(i,l){if(Z(l)||Tn(l)){sn(l,Gr(l),i);return}for(var d in l)rt.call(l,d)&&Ls(i,d,l[d])}),Gh=Ra(function(i,l){sn(l,Pn(l),i)}),c1=Ra(function(i,l,d,v){sn(l,Pn(l),i,v)}),S3=Ra(function(i,l,d,v){sn(l,Gr(l),i,v)}),M3=Pi(Yu);function k3(i,l){var d=ci(i);return l==null?d:Uu(d,l)}var O3=ft(function(i,l){i=wt(i);var d=-1,v=l.length,x=v>2?l[2]:o;for(x&&y(l[0],l[1],x)&&(v=1);++d<v;)for(var _=l[d],A=Pn(_),D=-1,H=A.length;++D<H;){var te=A[D],re=i[te];(re===o||Ei(re,Qi[te])&&!rt.call(i,te))&&(i[te]=_[te])}return i}),T3=ft(function(i){return i.push(o,a0),bn(qh,o,i)});function P3(i,l){return ba(i,Be(l,3),Cn)}function A3(i,l){return ba(i,Be(l,3),Ol)}function E3(i,l){return i==null?i:kl(i,Be(l,3),Pn)}function I3(i,l){return i==null?i:Lr(i,Be(l,3),Pn)}function D3(i,l){return i&&Cn(i,Be(l,3))}function R3(i,l){return i&&Ol(i,Be(l,3))}function N3(i){return i==null?[]:zs(i,Gr(i))}function $3(i){return i==null?[]:zs(i,Pn(i))}function jf(i,l,d){var v=i==null?o:uo(i,l);return v===o?d:v}function H3(i,l){return i!=null&&t(i,l,Oc)}function Kf(i,l){return i!=null&&t(i,l,Tc)}var B3=Go(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=Ro.call(l)),i[l]=d},Qf(An)),F3=Go(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=Ro.call(l)),rt.call(i,l)?i[l].push(d):i[l]=[d]},Be),W3=ft(ka);function Gr(i){return Tn(i)?Fu(i):El(i)}function Pn(i){return Tn(i)?Fu(i,!0):co(i)}function U3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,_){di(d,l(v,x,_),v)}),d}function Y3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,_){di(d,x,l(v,x,_))}),d}var Z3=Ra(function(i,l,d){Il(i,l,d)}),qh=Ra(function(i,l,d,v){Il(i,l,d,v)}),V3=Pi(function(i,l){var d={};if(i==null)return d;var v=!1;l=Et(l,function(_){return _=qn(_,i),v||(v=_.length>1),_}),sn(i,Yl(i),d),v&&(d=en(d,U|q|X,Jc));for(var x=l.length;x--;)Ts(d,l[x]);return d});function G3(i,l){return jh(i,s1(Be(l)))}var q3=Pi(function(i,l){return i==null?{}:Nc(i,l)});function jh(i,l){if(i==null)return{};var d=Et(Yl(i),function(v){return[v]});return l=Be(l),$c(i,d,function(v,x){return l(v,x[0])})}function j3(i,l,d){l=qn(l,i);var v=-1,x=l.length;for(x||(x=1,i=o);++v<x;){var _=i==null?o:i[It(l[v])];_===o&&(v=x,_=d),i=Xo(_)?_.call(i):_}return i}function K3(i,l,d){return i==null?i:ki(i,l,d)}function X3(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:ki(i,l,d,v)}var Kh=kn(Gr),Xh=kn(Pn);function Q3(i,l,d){var v=ct(i),x=v||Ya(i)||ql(i);if(l=Be(l,4),d==null){var _=i&&i.constructor;x?d=v?new _:[]:ar(i)?d=Xo(_)?ci(Ca(i)):{}:d={}}return(x?_n:Cn)(i,function(A,D,H){return l(d,A,D,H)}),d}function J3(i,l){return i==null?!0:Ts(i,l)}function e7(i,l,d){return i==null?i:Nl(i,l,$l(d))}function t7(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:Nl(i,l,$l(d),v)}function jl(i){return i==null?[]:dl(i,Gr(i))}function r7(i){return i==null?[]:dl(i,Pn(i))}function n7(i,l,d){return d===o&&(d=l,l=o),d!==o&&(d=gi(d),d=d===d?d:0),l!==o&&(l=gi(l),l=l===l?l:0),Uo(gi(i),l,d)}function i7(i,l,d){return l=Qo(l),d===o?(d=l,l=0):d=Qo(d),i=gi(i),Ma(i,l,d)}function o7(i,l,d){if(d&&typeof d!="boolean"&&y(i,l,d)&&(l=d=o),d===o&&(typeof l=="boolean"?(d=l,l=o):typeof i=="boolean"&&(d=i,i=o)),i===o&&l===o?(i=0,l=1):(i=Qo(i),l===o?(l=i,i=0):l=Qo(l)),i>l){var v=i;i=l,l=v}if(d||i%1||l%1){var x=no();return Pr(i+x*(l-i+uf("1e-"+((x+"").length-1))),l)}return Dl(i,l)}var a7=Na(function(i,l,d){return l=l.toLowerCase(),i+(d?Qh(l):l)});function Qh(i){return Xf(Nt(i).toLowerCase())}function Jh(i){return i=Nt(i),i&&i.replace(os,sc).replace(K0,"")}function s7(i,l,d){i=Nt(i),l=Fr(l);var v=i.length;d=d===o?v:Uo(dt(d),0,v);var x=d;return d-=l.length,d>=0&&i.slice(d,x)==l}function l7(i){return i=Nt(i),i&&hn.test(i)?i.replace(xr,bf):i}function u7(i){return i=Nt(i),i&&ni.test(i)?i.replace(ko,"\\$&"):i}var c7=Na(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),f7=Na(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),d7=jc("toLowerCase");function h7(i,l,d){i=Nt(i),l=dt(l);var v=l?Do(i):0;if(!l||v>=l)return i;var x=(l-v)/2;return Wl(La(x),d)+i+Wl(xa(x),d)}function p7(i,l,d){i=Nt(i),l=dt(l);var v=l?Do(i):0;return l&&v<l?i+Wl(l-v,d):i}function g7(i,l,d){i=Nt(i),l=dt(l);var v=l?Do(i):0;return l&&v<l?Wl(l-v,d)+i:i}function v7(i,l,d){return d||l==null?l=0:l&&(l=+l),ms(Nt(i).replace(Oo,""),l||0)}function b7(i,l,d){return(d?y(i,l,d):l===o)?l=1:l=dt(l),Ku(Nt(i),l)}function m7(){var i=arguments,l=Nt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var y7=Na(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function C7(i,l,d){return d&&typeof d!="number"&&y(i,l,d)&&(l=d=o),d=d===o?Bt:d>>>0,d?(i=Nt(i),i&&(typeof l=="string"||l!=null&&!qf(l))&&(l=Fr(l),!l&&Zn(i))?po(zn(i),0,d):i.split(l,d)):[]}var w7=Na(function(i,l,d){return i+(d?" ":"")+Xf(l)});function x7(i,l,d){return i=Nt(i),d=d==null?0:Uo(dt(d),0,i.length),l=Fr(l),i.slice(d,d+l.length)==l}function L7(i,l,d){var v=L.templateSettings;d&&y(i,l,d)&&(l=o),i=Nt(i),l=c1({},l,v,Ul);var x=c1({},l.imports,v.imports,Ul),_=Gr(x),A=dl(x,_),D,H,te=0,re=l.interpolate||Wt,se="__p += '",Le=Xi((l.escape||Wt).source+"|"+re.source+"|"+(re===ts?Li:Wt).source+"|"+(l.evaluate||Wt).source+"|$","g"),Ne="//# sourceURL="+(rt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xu+"]")+`
2284
+ `)}function g(i){return ct(i)||$s(i)||!!(Ho&&i&&i[Ho])}function m(i,l){var d=typeof i;return l=l==null?ot:l,!!l&&(d=="number"||d!="symbol"&&os.test(i))&&i>-1&&i%1==0&&i<l}function y(i,l,d){if(!ar(d))return!1;var v=typeof l;return(v=="number"?Tn(d)&&m(l,d.length):v=="string"&&l in d)?Ei(d[l],i):!1}function C(i,l){if(ct(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||jn(i)?!0:Kr.test(i)||!ns.test(i)||l!=null&&i in wt(l)}function z(i){var l=typeof i;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?i!=="__proto__":i===null}function M(i){var l=Ns(i),d=L[l];if(typeof d!="function"||!(l in bt.prototype))return!1;if(i===d)return!0;var v=zt(d);return!!v&&i===v[0]}function N(i){return!!Si&&Si in i}var R=si?Qo:nd;function Z(i){var l=i&&i.constructor,d=typeof l=="function"&&l.prototype||Ji;return i===d}function J(i){return i===i&&!ar(i)}function le(i,l){return function(d){return d==null?!1:d[i]===l&&(l!==o||i in wt(d))}}function fe(i){var l=a1(i,function(v){return d.size===O&&d.clear(),v}),d=l.cache;return l}function Ce(i,l){var d=i[1],v=l[1],x=d|v,_=x<(me|Ae|Ye),A=v==Ye&&d==pe||v==Ye&&d==et&&i[7].length<=l[8]||v==(Ye|et)&&l[7].length<=l[8]&&d==pe;if(!(_||A))return i;v&me&&(i[2]=l[2],x|=d&me?0:Ie);var D=l[3];if(D){var H=i[3];i[3]=H?Yc(H,D,l[4]):D,i[4]=H?Ki(i[3],I):l[4]}return D=l[5],D&&(H=i[5],i[5]=H?Bl(H,D,l[6]):D,i[6]=H?Ki(i[5],I):l[6]),D=l[7],D&&(i[7]=D),v&Ye&&(i[8]=i[8]==null?l[8]:Pr(i[8],l[8])),i[9]==null&&(i[9]=l[9]),i[0]=l[0],i[1]=x,i}function de(i){var l=[];if(i!=null)for(var d in wt(i))l.push(d);return l}function xe(i){return No.call(i)}function Re(i,l,d){return l=jt(l===o?i.length-1:l,0),function(){for(var v=arguments,x=-1,_=jt(v.length-l,0),A=Y(_);++x<_;)A[x]=v[l+x];x=-1;for(var D=Y(l+1);++x<l;)D[x]=v[x];return D[l]=d(A),bn(i,this,D)}}function Pe(i,l){return l.length<2?i:co(i,Mn(l,0,-1))}function lt(i,l){for(var d=i.length,v=Pr(l.length,d),x=zr(i);v--;){var _=l[v];i[v]=m(_,d)?x[_]:o}return i}function Ot(i,l){if(!(l==="constructor"&&typeof i[l]=="function")&&l!="__proto__")return i[l]}var ur=rr(Os),Rt=wf||function(i,l){return qt.setTimeout(i,l)},Ur=rr(Ts);function Yr(i,l,d){var v=l+"";return Ur(i,h(v,Xt(e(v),d)))}function rr(i){var l=0,d=0;return function(){var v=Fo(),x=W-(v-d);if(d=v,x>0){if(++l>=it)return arguments[0]}else l=0;return i.apply(o,arguments)}}function Sr(i,l){var d=-1,v=i.length,x=v-1;for(l=l===o?v:l;++d<l;){var _=Dl(d,x),A=i[_];i[_]=i[d],i[d]=A}return i.length=l,i}var gr=fe(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(Qs,function(d,v,x,_){l.push(x?_.replace(tl,"$1"):v||d)}),l});function It(i){if(typeof i=="string"||jn(i))return i;var l=i+"";return l=="0"&&1/i==-ve?"-0":l}function Ht(i){if(i!=null){try{return li.call(i)}catch{}try{return i+""}catch{}}return""}function Xt(i,l){return _n(Ft,function(d){var v="_."+d[0];l&d[1]&&!hs(i,v)&&i.push(v)}),i.sort()}function Zr(i){if(i instanceof bt)return i.clone();var l=new Jr(i.__wrapped__,i.__chain__);return l.__actions__=zr(i.__actions__),l.__index__=i.__index__,l.__values__=i.__values__,l}function Za(i,l,d){(d?y(i,l,d):l===o)?l=1:l=jt(dt(l),0);var v=i==null?0:i.length;if(!v||l<1)return[];for(var x=0,_=0,A=Y(za(v/l));x<v;)A[_++]=Mn(i,x,x+=l);return A}function vo(i){for(var l=-1,d=i==null?0:i.length,v=0,x=[];++l<d;){var _=i[l];_&&(x[v++]=_)}return x}function Rr(){var i=arguments.length;if(!i)return[];for(var l=Y(i-1),d=arguments[0],v=i;v--;)l[v-1]=arguments[v];return qi(ct(d)?zr(d):[d],Dr(l,1))}var hi=ft(function(i,l){return br(i)?Oa(i,Dr(l,1,br,!0)):[]}),vr=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Oa(i,Dr(l,1,br,!0),Be(d,2)):[]}),u0=ft(function(i,l){var d=pi(l);return br(d)&&(d=o),br(i)?Oa(i,Dr(l,1,br,!0),o,d):[]});function Ai(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),Mn(i,l<0?0:l,v)):[]}function Ko(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,Mn(i,0,l<0?0:l)):[]}function Xo(i,l){return i&&i.length?Na(i,Be(l,3),!0,!0):[]}function Vr(i,l){return i&&i.length?Na(i,Be(l,3),!0):[]}function Va(i,l,d,v){var x=i==null?0:i.length;return x?(d&&typeof d!="number"&&y(i,l,d)&&(d=0,v=x),Zu(i,l,d,v)):[]}function Gl(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),cl(i,Be(l,3),x)}function zh(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v-1;return d!==o&&(x=dt(d),x=d<0?jt(v+x,0):Pr(x,v-1)),cl(i,Be(l,3),x,!0)}function Sh(i){var l=i==null?0:i.length;return l?Dr(i,1):[]}function g5(i){var l=i==null?0:i.length;return l?Dr(i,ve):[]}function v5(i,l){var d=i==null?0:i.length;return d?(l=l===o?1:dt(l),Dr(i,l)):[]}function b5(i){for(var l=-1,d=i==null?0:i.length,v={};++l<d;){var x=i[l];v[x[0]]=x[1]}return v}function Mh(i){return i&&i.length?i[0]:o}function m5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=d==null?0:dt(d);return x<0&&(x=jt(v+x,0)),Io(i,l,x)}function y5(i){var l=i==null?0:i.length;return l?Mn(i,0,-1):[]}var C5=ft(function(i){var l=Et(i,e0);return l.length&&l[0]===i[0]?Pl(l):[]}),w5=ft(function(i){var l=pi(i),d=Et(i,e0);return l===pi(d)?l=o:d.pop(),d.length&&d[0]===i[0]?Pl(d,Be(l,2)):[]}),x5=ft(function(i){var l=pi(i),d=Et(i,e0);return l=typeof l=="function"?l:o,l&&d.pop(),d.length&&d[0]===i[0]?Pl(d,o,l):[]});function L5(i,l){return i==null?"":Cl.call(i,l)}function pi(i){var l=i==null?0:i.length;return l?i[l-1]:o}function _5(i,l,d){var v=i==null?0:i.length;if(!v)return-1;var x=v;return d!==o&&(x=dt(d),x=x<0?jt(v+x,0):Pr(x,v-1)),l===l?gs(i,l,x):cl(i,fl,x,!0)}function z5(i,l){return i&&i.length?Rc(i,dt(l)):o}var S5=ft(kh);function kh(i,l){return i&&i.length&&l&&l.length?qu(i,l):i}function M5(i,l,d){return i&&i.length&&l&&l.length?qu(i,l,Be(d,2)):i}function k5(i,l,d){return i&&i.length&&l&&l.length?qu(i,l,o,d):i}var O5=Pi(function(i,l){var d=i==null?0:i.length,v=Yu(i,l);return ju(i,Et(l,function(x){return m(x,d)?+x:x}).sort(n0)),v});function T5(i,l){var d=[];if(!(i&&i.length))return d;var v=-1,x=[],_=i.length;for(l=Be(l,3);++v<_;){var A=i[v];l(A,v,i)&&(d.push(A),x.push(v))}return ju(i,x),d}function Uf(i){return i==null?i:Cs.call(i)}function P5(i,l,d){var v=i==null?0:i.length;return v?(d&&typeof d!="number"&&y(i,l,d)?(l=0,d=v):(l=l==null?0:dt(l),d=d===o?v:dt(d)),Mn(i,l,d)):[]}function A5(i,l){return Ti(i,l)}function E5(i,l,d){return Rl(i,l,Be(d,2))}function I5(i,l){var d=i==null?0:i.length;if(d){var v=Ti(i,l);if(v<d&&Ei(i[v],l))return v}return-1}function D5(i,l){return Ti(i,l,!0)}function R5(i,l,d){return Rl(i,l,Be(d,2),!0)}function N5(i,l){var d=i==null?0:i.length;if(d){var v=Ti(i,l,!0)-1;if(Ei(i[v],l))return v}return-1}function $5(i){return i&&i.length?Xu(i):[]}function H5(i,l){return i&&i.length?Xu(i,Be(l,2)):[]}function B5(i){var l=i==null?0:i.length;return l?Mn(i,1,l):[]}function F5(i,l,d){return i&&i.length?(l=d||l===o?1:dt(l),Mn(i,0,l<0?0:l)):[]}function W5(i,l,d){var v=i==null?0:i.length;return v?(l=d||l===o?1:dt(l),l=v-l,Mn(i,l<0?0:l,v)):[]}function U5(i,l){return i&&i.length?Na(i,Be(l,3),!1,!0):[]}function Y5(i,l){return i&&i.length?Na(i,Be(l,3)):[]}var Z5=ft(function(i){return wn(Dr(i,1,br,!0))}),V5=ft(function(i){var l=pi(i);return br(l)&&(l=o),wn(Dr(i,1,br,!0),Be(l,2))}),G5=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,wn(Dr(i,1,br,!0),o,l)});function q5(i){return i&&i.length?wn(i):[]}function j5(i,l){return i&&i.length?wn(i,Be(l,2)):[]}function K5(i,l){return l=typeof l=="function"?l:o,i&&i.length?wn(i,o,l):[]}function Yf(i){if(!(i&&i.length))return[];var l=0;return i=Gi(i,function(d){if(br(d))return l=jt(d.length,l),!0}),Do(l,function(d){return Et(i,ku(d))})}function Oh(i,l){if(!(i&&i.length))return[];var d=Yf(i);return l==null?d:Et(d,function(v){return bn(l,o,v)})}var X5=ft(function(i,l){return br(i)?Oa(i,l):[]}),Q5=ft(function(i){return Go(Gi(i,br))}),J5=ft(function(i){var l=pi(i);return br(l)&&(l=o),Go(Gi(i,br),Be(l,2))}),e6=ft(function(i){var l=pi(i);return l=typeof l=="function"?l:o,Go(Gi(i,br),o,l)}),t6=ft(Yf);function r6(i,l){return Ju(i||[],l||[],_s)}function n6(i,l){return Ju(i||[],l||[],ki)}var i6=ft(function(i){var l=i.length,d=l>1?i[l-1]:o;return d=typeof d=="function"?(i.pop(),d):o,Oh(i,d)});function Th(i){var l=L(i);return l.__chain__=!0,l}function o6(i,l){return l(i),i}function n1(i,l){return l(i)}var a6=Pi(function(i){var l=i.length,d=l?i[0]:0,v=this.__wrapped__,x=function(_){return Yu(_,i)};return l>1||this.__actions__.length||!(v instanceof bt)||!m(d)?this.thru(x):(v=v.slice(d,+d+(l?1:0)),v.__actions__.push({func:n1,args:[x],thisArg:o}),new Jr(v,this.__chain__).thru(function(_){return l&&!_.length&&_.push(o),_}))});function s6(){return Th(this)}function l6(){return new Jr(this.value(),this.__chain__)}function u6(){this.__values__===o&&(this.__values__=Yh(this.value()));var i=this.__index__>=this.__values__.length,l=i?o:this.__values__[this.__index__++];return{done:i,value:l}}function c6(){return this}function f6(i){for(var l,d=this;d instanceof xl;){var v=Zr(d);v.__index__=0,v.__values__=o,l?x.__wrapped__=v:l=v;var x=v;d=d.__wrapped__}return x.__wrapped__=i,l}function d6(){var i=this.__wrapped__;if(i instanceof bt){var l=i;return this.__actions__.length&&(l=new bt(this)),l=l.reverse(),l.__actions__.push({func:n1,args:[Uf],thisArg:o}),new Jr(l,this.__chain__)}return this.thru(Uf)}function h6(){return Bc(this.__wrapped__,this.__actions__)}var p6=Fl(function(i,l,d){rt.call(i,d)?++i[d]:di(i,d,1)});function g6(i,l,d){var v=ct(i)?zu:Ml;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}function v6(i,l){var d=ct(i)?Gi:Vu;return d(i,Be(l,3))}var b6=o0(Gl),m6=o0(zh);function y6(i,l){return Dr(i1(i,l),1)}function C6(i,l){return Dr(i1(i,l),ve)}function w6(i,l,d){return d=d===o?1:dt(d),Dr(i1(i,l),d)}function Ph(i,l){var d=ct(i)?_n:yn;return d(i,Be(l,3))}function Ah(i,l){var d=ct(i)?df:Sl;return d(i,Be(l,3))}var x6=Fl(function(i,l,d){rt.call(i,d)?i[d].push(l):di(i,d,[l])});function L6(i,l,d,v){i=Tn(i)?i:jl(i),d=d&&!v?dt(d):0;var x=i.length;return d<0&&(d=jt(x+d,0)),u1(i)?d<=x&&i.indexOf(l,d)>-1:!!x&&Io(i,l,d)>-1}var _6=ft(function(i,l,d){var v=-1,x=typeof l=="function",_=Tn(i)?Y(i.length):[];return yn(i,function(A){_[++v]=x?bn(l,A,d):Pa(A,l,d)}),_}),z6=Fl(function(i,l,d){di(i,d,l)});function i1(i,l){var d=ct(i)?Et:Ra;return d(i,Be(l,3))}function S6(i,l,d,v){return i==null?[]:(ct(l)||(l=l==null?[]:[l]),d=v?o:d,ct(d)||(d=d==null?[]:[d]),Br(i,l,d))}var M6=Fl(function(i,l,d){i[d?0:1].push(l)},function(){return[[],[]]});function k6(i,l,d){var v=ct(i)?Su:Tu,x=arguments.length<3;return v(i,Be(l,4),d,x,yn)}function O6(i,l,d){var v=ct(i)?hf:Tu,x=arguments.length<3;return v(i,Be(l,4),d,x,Sl)}function T6(i,l){var d=ct(i)?Gi:Vu;return d(i,s1(Be(l,3)))}function P6(i){var l=ct(i)?_l:Nf;return l(i)}function A6(i,l,d){(d?y(i,l,d):l===o)?l=1:l=dt(l);var v=ct(i)?uo:po;return v(i,l)}function E6(i){var l=ct(i)?zc:Oi;return l(i)}function I6(i){if(i==null)return 0;if(Tn(i))return u1(i)?Ro(i):i.length;var l=Wr(i);return l==lr||l==tt?i.size:El(i).length}function D6(i,l,d){var v=ct(i)?Eo:$f;return d&&y(i,l,d)&&(l=o),v(i,Be(l,3))}var R6=ft(function(i,l){if(i==null)return[];var d=l.length;return d>1&&y(i,l[0],l[1])?l=[]:d>2&&y(l[0],l[1],l[2])&&(l=[l[0]]),Br(i,Dr(l,1),[])}),o1=Cf||function(){return qt.Date.now()};function N6(i,l){if(typeof l!="function")throw new sn(b);return i=dt(i),function(){if(--i<1)return l.apply(this,arguments)}}function Eh(i,l,d){return l=d?o:l,l=i&&l==null?i.length:l,On(i,Ye,o,o,o,o,l)}function Ih(i,l){var d;if(typeof l!="function")throw new sn(b);return i=dt(i),function(){return--i>0&&(d=l.apply(this,arguments)),i<=1&&(l=o),d}}var Zf=ft(function(i,l,d){var v=me;if(d.length){var x=Ki(d,Ua(Zf));v|=Te}return On(i,v,l,d,x)}),Dh=ft(function(i,l,d){var v=me|Ae;if(d.length){var x=Ki(d,Ua(Dh));v|=Te}return On(l,v,i,d,x)});function Rh(i,l,d){l=d?o:l;var v=On(i,pe,o,o,o,o,o,l);return v.placeholder=Rh.placeholder,v}function Nh(i,l,d){l=d?o:l;var v=On(i,he,o,o,o,o,o,l);return v.placeholder=Nh.placeholder,v}function $h(i,l,d){var v,x,_,A,D,H,te=0,re=!1,se=!1,Le=!0;if(typeof i!="function")throw new sn(b);l=gi(l)||0,ar(d)&&(re=!!d.leading,se="maxWait"in d,_=se?jt(gi(d.maxWait)||0,l):_,Le="trailing"in d?!!d.trailing:Le);function Ne(mr){var Ii=v,ea=x;return v=x=o,te=mr,A=i.apply(ea,Ii),A}function je(mr){return te=mr,D=Rt(Ct,l),re?Ne(mr):A}function gt(mr){var Ii=mr-H,ea=mr-te,np=l-Ii;return se?Pr(np,_-ea):np}function Ke(mr){var Ii=mr-H,ea=mr-te;return H===o||Ii>=l||Ii<0||se&&ea>=_}function Ct(){var mr=o1();if(Ke(mr))return xt(mr);D=Rt(Ct,gt(mr))}function xt(mr){return D=o,Le&&v?Ne(mr):(v=x=o,A)}function Kn(){D!==o&&$a(D),te=0,v=H=x=D=o}function xn(){return D===o?A:xt(o1())}function Xn(){var mr=o1(),Ii=Ke(mr);if(v=arguments,x=this,H=mr,Ii){if(D===o)return je(H);if(se)return $a(D),D=Rt(Ct,l),Ne(H)}return D===o&&(D=Rt(Ct,l)),A}return Xn.cancel=Kn,Xn.flush=xn,Xn}var $6=ft(function(i,l){return kc(i,1,l)}),H6=ft(function(i,l,d){return kc(i,gi(l)||0,d)});function B6(i){return On(i,nt)}function a1(i,l){if(typeof i!="function"||l!=null&&typeof l!="function")throw new sn(b);var d=function(){var v=arguments,x=l?l.apply(this,v):v[0],_=d.cache;if(_.has(x))return _.get(x);var A=i.apply(this,v);return d.cache=_.set(x,A)||_,A};return d.cache=new(a1.Cache||or),d}a1.Cache=or;function s1(i){if(typeof i!="function")throw new sn(b);return function(){var l=arguments;switch(l.length){case 0:return!i.call(this);case 1:return!i.call(this,l[0]);case 2:return!i.call(this,l[0],l[1]);case 3:return!i.call(this,l[0],l[1],l[2])}return!i.apply(this,l)}}function F6(i){return Ih(2,i)}var W6=Hf(function(i,l){l=l.length==1&&ct(l[0])?Et(l[0],Qr(Be())):Et(Dr(l,1),Qr(Be()));var d=l.length;return ft(function(v){for(var x=-1,_=Pr(v.length,d);++x<_;)v[x]=l[x].call(this,v[x]);return bn(i,this,v)})}),Vf=ft(function(i,l){var d=Ki(l,Ua(Vf));return On(i,Te,o,l,d)}),Hh=ft(function(i,l){var d=Ki(l,Ua(Hh));return On(i,He,o,l,d)}),U6=Pi(function(i,l){return On(i,et,o,o,o,l)});function Y6(i,l){if(typeof i!="function")throw new sn(b);return l=l===o?l:dt(l),ft(i,l)}function Z6(i,l){if(typeof i!="function")throw new sn(b);return l=l==null?0:jt(dt(l),0),ft(function(d){var v=d[l],x=go(d,0,l);return v&&qi(x,v),bn(i,this,x)})}function V6(i,l,d){var v=!0,x=!0;if(typeof i!="function")throw new sn(b);return ar(d)&&(v="leading"in d?!!d.leading:v,x="trailing"in d?!!d.trailing:x),$h(i,l,{leading:v,maxWait:l,trailing:x})}function G6(i){return Eh(i,1)}function q6(i,l){return Vf($l(l),i)}function j6(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function K6(i){return en(i,X)}function X6(i,l){return l=typeof l=="function"?l:o,en(i,X,l)}function Q6(i){return en(i,U|X)}function J6(i,l){return l=typeof l=="function"?l:o,en(i,U|X,l)}function e3(i,l){return l==null||Mc(i,l,Gr(l))}function Ei(i,l){return i===l||i!==i&&l!==l}var t3=Dt(Tl),r3=Dt(function(i,l){return i>=l}),$s=Aa(function(){return arguments}())?Aa:function(i){return cr(i)&&rt.call(i,"callee")&&!yl.call(i,"callee")},ct=Y.isArray,n3=tc?Qr(tc):If;function Tn(i){return i!=null&&l1(i.length)&&!Qo(i)}function br(i){return cr(i)&&Tn(i)}function i3(i){return i===!0||i===!1||cr(i)&&_r(i)==Ze}var Ga=ms||nd,o3=rc?Qr(rc):Ea;function a3(i){return cr(i)&&i.nodeType===1&&!c0(i)}function s3(i){if(i==null)return!0;if(Tn(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Ga(i)||ql(i)||$s(i)))return!i.length;var l=Wr(i);if(l==lr||l==tt)return!i.size;if(Z(i))return!El(i).length;for(var d in i)if(rt.call(i,d))return!1;return!0}function l3(i,l){return Ia(i,l)}function u3(i,l,d){d=typeof d=="function"?d:o;var v=d?d(i,l):o;return v===o?Ia(i,l,o,d):!!v}function Gf(i){if(!cr(i))return!1;var l=_r(i);return l==We||l==st||typeof i.message=="string"&&typeof i.name=="string"&&!c0(i)}function c3(i){return typeof i=="number"&&mc(i)}function Qo(i){if(!ar(i))return!1;var l=_r(i);return l==Gt||l==qr||l==Fe||l==rn}function Bh(i){return typeof i=="number"&&i==dt(i)}function l1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ot}function ar(i){var l=typeof i;return i!=null&&(l=="object"||l=="function")}function cr(i){return i!=null&&typeof i=="object"}var Fh=nc?Qr(nc):Ac;function f3(i,l){return i===l||Vo(i,l,Ya(l))}function d3(i,l,d){return d=typeof d=="function"?d:o,Vo(i,l,Ya(l),d)}function h3(i){return Wh(i)&&i!=+i}function p3(i){if(R(i))throw new Je(p);return Da(i)}function g3(i){return i===null}function v3(i){return i==null}function Wh(i){return typeof i=="number"||cr(i)&&_r(i)==Xe}function c0(i){if(!cr(i)||_r(i)!=kt)return!1;var l=La(i);if(l===null)return!0;var d=rt.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&li.call(d)==mf}var qf=ic?Qr(ic):Ms;function b3(i){return Bh(i)&&i>=-ot&&i<=ot}var Uh=Lu?Qr(Lu):ks;function u1(i){return typeof i=="string"||!ct(i)&&cr(i)&&_r(i)==B}function jn(i){return typeof i=="symbol"||cr(i)&&_r(i)==oe}var ql=_u?Qr(_u):Ec;function m3(i){return i===o}function y3(i){return cr(i)&&Wr(i)==Qe}function C3(i){return cr(i)&&_r(i)==dr}var w3=Dt(ho),x3=Dt(function(i,l){return i<=l});function Yh(i){if(!i)return[];if(Tn(i))return u1(i)?zn(i):zr(i);if(to&&i[to])return uc(i[to]());var l=Wr(i),d=l==lr?pl:l==tt?gl:jl;return d(i)}function Jo(i){if(!i)return i===0?i:0;if(i=gi(i),i===ve||i===-ve){var l=i<0?-1:1;return l*At}return i===i?i:0}function dt(i){var l=Jo(i),d=l%1;return l===l?d?l-d:l:0}function Zh(i){return i?Yo(dt(i),0,Bt):0}function gi(i){if(typeof i=="number")return i;if(jn(i))return sr;if(ar(i)){var l=typeof i.valueOf=="function"?i.valueOf():i;i=ar(l)?l+"":l}if(typeof i!="string")return i===0?i:+i;i=ps(i);var d=Fn.test(i);return d||gn.test(i)?cf(i.slice(2),d?2:8):va.test(i)?sr:+i}function Vh(i){return ln(i,Pn(i))}function L3(i){return i?Yo(dt(i),-ot,ot):i===0?i:0}function Nt(i){return i==null?"":Fr(i)}var _3=Ha(function(i,l){if(Z(l)||Tn(l)){ln(l,Gr(l),i);return}for(var d in l)rt.call(l,d)&&_s(i,d,l[d])}),Gh=Ha(function(i,l){ln(l,Pn(l),i)}),c1=Ha(function(i,l,d,v){ln(l,Pn(l),i,v)}),z3=Ha(function(i,l,d,v){ln(l,Gr(l),i,v)}),S3=Pi(Yu);function M3(i,l){var d=ci(i);return l==null?d:Uu(d,l)}var k3=ft(function(i,l){i=wt(i);var d=-1,v=l.length,x=v>2?l[2]:o;for(x&&y(l[0],l[1],x)&&(v=1);++d<v;)for(var _=l[d],A=Pn(_),D=-1,H=A.length;++D<H;){var te=A[D],re=i[te];(re===o||Ei(re,Ji[te])&&!rt.call(i,te))&&(i[te]=_[te])}return i}),O3=ft(function(i){return i.push(o,a0),bn(qh,o,i)});function T3(i,l){return Ca(i,Be(l,3),Cn)}function P3(i,l){return Ca(i,Be(l,3),Ol)}function A3(i,l){return i==null?i:kl(i,Be(l,3),Pn)}function E3(i,l){return i==null?i:Lr(i,Be(l,3),Pn)}function I3(i,l){return i&&Cn(i,Be(l,3))}function D3(i,l){return i&&Ol(i,Be(l,3))}function R3(i){return i==null?[]:Ss(i,Gr(i))}function N3(i){return i==null?[]:Ss(i,Pn(i))}function jf(i,l,d){var v=i==null?o:co(i,l);return v===o?d:v}function $3(i,l){return i!=null&&t(i,l,Oc)}function Kf(i,l){return i!=null&&t(i,l,Tc)}var H3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),i[l]=d},Qf(An)),B3=qo(function(i,l,d){l!=null&&typeof l.toString!="function"&&(l=No.call(l)),rt.call(i,l)?i[l].push(d):i[l]=[d]},Be),F3=ft(Pa);function Gr(i){return Tn(i)?Fu(i):El(i)}function Pn(i){return Tn(i)?Fu(i,!0):fo(i)}function W3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,_){di(d,l(v,x,_),v)}),d}function U3(i,l){var d={};return l=Be(l,3),Cn(i,function(v,x,_){di(d,x,l(v,x,_))}),d}var Y3=Ha(function(i,l,d){Il(i,l,d)}),qh=Ha(function(i,l,d,v){Il(i,l,d,v)}),Z3=Pi(function(i,l){var d={};if(i==null)return d;var v=!1;l=Et(l,function(_){return _=qn(_,i),v||(v=_.length>1),_}),ln(i,Yl(i),d),v&&(d=en(d,U|q|X,Jc));for(var x=l.length;x--;)Ps(d,l[x]);return d});function V3(i,l){return jh(i,s1(Be(l)))}var G3=Pi(function(i,l){return i==null?{}:Nc(i,l)});function jh(i,l){if(i==null)return{};var d=Et(Yl(i),function(v){return[v]});return l=Be(l),$c(i,d,function(v,x){return l(v,x[0])})}function q3(i,l,d){l=qn(l,i);var v=-1,x=l.length;for(x||(x=1,i=o);++v<x;){var _=i==null?o:i[It(l[v])];_===o&&(v=x,_=d),i=Qo(_)?_.call(i):_}return i}function j3(i,l,d){return i==null?i:ki(i,l,d)}function K3(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:ki(i,l,d,v)}var Kh=kn(Gr),Xh=kn(Pn);function X3(i,l,d){var v=ct(i),x=v||Ga(i)||ql(i);if(l=Be(l,4),d==null){var _=i&&i.constructor;x?d=v?new _:[]:ar(i)?d=Qo(_)?ci(La(i)):{}:d={}}return(x?_n:Cn)(i,function(A,D,H){return l(d,A,D,H)}),d}function Q3(i,l){return i==null?!0:Ps(i,l)}function J3(i,l,d){return i==null?i:Nl(i,l,$l(d))}function e7(i,l,d,v){return v=typeof v=="function"?v:o,i==null?i:Nl(i,l,$l(d),v)}function jl(i){return i==null?[]:dl(i,Gr(i))}function t7(i){return i==null?[]:dl(i,Pn(i))}function r7(i,l,d){return d===o&&(d=l,l=o),d!==o&&(d=gi(d),d=d===d?d:0),l!==o&&(l=gi(l),l=l===l?l:0),Yo(gi(i),l,d)}function n7(i,l,d){return l=Jo(l),d===o?(d=l,l=0):d=Jo(d),i=gi(i),Ta(i,l,d)}function i7(i,l,d){if(d&&typeof d!="boolean"&&y(i,l,d)&&(l=d=o),d===o&&(typeof l=="boolean"?(d=l,l=o):typeof i=="boolean"&&(d=i,i=o)),i===o&&l===o?(i=0,l=1):(i=Jo(i),l===o?(l=i,i=0):l=Jo(l)),i>l){var v=i;i=l,l=v}if(d||i%1||l%1){var x=io();return Pr(i+x*(l-i+uf("1e-"+((x+"").length-1))),l)}return Dl(i,l)}var o7=Ba(function(i,l,d){return l=l.toLowerCase(),i+(d?Qh(l):l)});function Qh(i){return Xf(Nt(i).toLowerCase())}function Jh(i){return i=Nt(i),i&&i.replace(as,sc).replace(K0,"")}function a7(i,l,d){i=Nt(i),l=Fr(l);var v=i.length;d=d===o?v:Yo(dt(d),0,v);var x=d;return d-=l.length,d>=0&&i.slice(d,x)==l}function s7(i){return i=Nt(i),i&&hn.test(i)?i.replace(xr,bf):i}function l7(i){return i=Nt(i),i&&ni.test(i)?i.replace(Oo,"\\$&"):i}var u7=Ba(function(i,l,d){return i+(d?"-":"")+l.toLowerCase()}),c7=Ba(function(i,l,d){return i+(d?" ":"")+l.toLowerCase()}),f7=jc("toLowerCase");function d7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;if(!l||v>=l)return i;var x=(l-v)/2;return Wl(Sa(x),d)+i+Wl(za(x),d)}function h7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?i+Wl(l-v,d):i}function p7(i,l,d){i=Nt(i),l=dt(l);var v=l?Ro(i):0;return l&&v<l?Wl(l-v,d)+i:i}function g7(i,l,d){return d||l==null?l=0:l&&(l=+l),ys(Nt(i).replace(To,""),l||0)}function v7(i,l,d){return(d?y(i,l,d):l===o)?l=1:l=dt(l),Ku(Nt(i),l)}function b7(){var i=arguments,l=Nt(i[0]);return i.length<3?l:l.replace(i[1],i[2])}var m7=Ba(function(i,l,d){return i+(d?"_":"")+l.toLowerCase()});function y7(i,l,d){return d&&typeof d!="number"&&y(i,l,d)&&(l=d=o),d=d===o?Bt:d>>>0,d?(i=Nt(i),i&&(typeof l=="string"||l!=null&&!qf(l))&&(l=Fr(l),!l&&Zn(i))?go(zn(i),0,d):i.split(l,d)):[]}var C7=Ba(function(i,l,d){return i+(d?" ":"")+Xf(l)});function w7(i,l,d){return i=Nt(i),d=d==null?0:Yo(dt(d),0,i.length),l=Fr(l),i.slice(d,d+l.length)==l}function x7(i,l,d){var v=L.templateSettings;d&&y(i,l,d)&&(l=o),i=Nt(i),l=c1({},l,v,Ul);var x=c1({},l.imports,v.imports,Ul),_=Gr(x),A=dl(x,_),D,H,te=0,re=l.interpolate||Wt,se="__p += '",Le=Qi((l.escape||Wt).source+"|"+re.source+"|"+(re===rs?Li:Wt).source+"|"+(l.evaluate||Wt).source+"|$","g"),Ne="//# sourceURL="+(rt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xu+"]")+`
2272
2285
  `;i.replace(Le,function(Ke,Ct,xt,Kn,xn,Xn){return xt||(xt=Kn),se+=i.slice(te,Xn).replace(ke,lc),Ct&&(D=!0,se+=`' +
2273
2286
  __e(`+Ct+`) +
2274
2287
  '`),xn&&(H=!0,se+=`';
@@ -2279,39 +2292,39 @@ __p += '`),xt&&(se+=`' +
2279
2292
  `;var je=rt.call(l,"variable")&&l.variable;if(!je)se=`with (obj) {
2280
2293
  `+se+`
2281
2294
  }
2282
- `;else if(pn.test(je))throw new Je(P);se=(H?se.replace(ir,""):se).replace(fa,"$1").replace(wr,"$1;"),se="function("+(je||"obj")+`) {
2295
+ `;else if(pn.test(je))throw new Je(k);se=(H?se.replace(ir,""):se).replace(pa,"$1").replace(wr,"$1;"),se="function("+(je||"obj")+`) {
2283
2296
  `+(je?"":`obj || (obj = {});
2284
2297
  `)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
2285
2298
  function print() { __p += __j.call(arguments, '') }
2286
2299
  `:`;
2287
2300
  `)+se+`return __p
2288
- }`;var pt=tp(function(){return Mt(_,Ne+"return "+se).apply(o,A)});if(pt.source=se,Gf(pt))throw pt;return pt}function _7(i){return Nt(i).toLowerCase()}function z7(i){return Nt(i).toUpperCase()}function S7(i,l,d){if(i=Nt(i),i&&(d||l===o))return hs(i);if(!i||!(l=Fr(l)))return i;var v=zn(i),x=zn(l),_=qi(v,x),A=hl(v,x)+1;return po(v,_,A).join("")}function M7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.slice(0,vl(i)+1);if(!i||!(l=Fr(l)))return i;var v=zn(i),x=hl(v,zn(l))+1;return po(v,0,x).join("")}function k7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.replace(Oo,"");if(!i||!(l=Fr(l)))return i;var v=zn(i),x=qi(v,zn(l));return po(v,x).join("")}function O7(i,l){var d=ge,v=ye;if(ar(l)){var x="separator"in l?l.separator:x;d="length"in l?dt(l.length):d,v="omission"in l?Fr(l.omission):v}i=Nt(i);var _=i.length;if(Zn(i)){var A=zn(i);_=A.length}if(d>=_)return i;var D=d-Do(v);if(D<1)return v;var H=A?po(A,0,D).join(""):i.slice(0,D);if(x===o)return H+v;if(A&&(D+=H.length-D),qf(x)){if(i.slice(D).search(x)){var te,re=H;for(x.global||(x=Xi(x.source,Nt(To.exec(x))+"g")),x.lastIndex=0;te=x.exec(re);)var se=te.index;H=H.slice(0,se===o?D:se)}}else if(i.indexOf(Fr(x),D)!=D){var Le=H.lastIndexOf(x);Le>-1&&(H=H.slice(0,Le))}return H+v}function T7(i){return i=Nt(i),i&&da.test(i)?i.replace(Bn,bl):i}var P7=Na(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),Xf=jc("toUpperCase");function ep(i,l,d){return i=Nt(i),l=d?o:l,l===o?ai(i)?Vn(i):oc(i):i.match(l)||[]}var tp=ft(function(i,l){try{return bn(i,o,l)}catch(d){return Gf(d)?d:new Je(d)}}),A7=Pi(function(i,l){return _n(l,function(d){d=It(d),di(i,d,Zf(i[d],i))}),i});function E7(i){var l=i==null?0:i.length,d=Be();return i=l?Et(i,function(v){if(typeof v[1]!="function")throw new an(b);return[d(v[0]),v[1]]}):[],ft(function(v){for(var x=-1;++x<l;){var _=i[x];if(bn(_[0],this,v))return bn(_[1],this,v)}})}function I7(i){return Sc(en(i,U))}function Qf(i){return function(){return i}}function D7(i,l){return i==null||i!==i?l:i}var R7=Kc(),N7=Kc(!0);function An(i){return i}function Jf(i){return Ic(typeof i=="function"?i:en(i,U))}function $7(i){return Dc(en(i,U))}function H7(i,l){return Gu(i,en(l,U))}var B7=ft(function(i,l){return function(d){return ka(d,i,l)}}),F7=ft(function(i,l){return function(d){return ka(i,d,l)}});function ed(i,l,d){var v=Gr(l),x=zs(l,v);d==null&&!(ar(l)&&(x.length||!v.length))&&(d=l,l=i,i=this,x=zs(l,Gr(l)));var _=!(ar(d)&&"chain"in d)||!!d.chain,A=Xo(i);return _n(x,function(D){var H=l[D];i[D]=H,A&&(i.prototype[D]=function(){var te=this.__chain__;if(_||te){var re=i(this.__wrapped__),se=re.__actions__=zr(this.__actions__);return se.push({func:H,args:arguments,thisArg:i}),re.__chain__=te,re}return H.apply(i,Gi([this.value()],arguments))})}),i}function W7(){return qt._===this&&(qt._=vc),this}function td(){}function U7(i){return i=dt(i),ft(function(l){return Rc(l,i)})}var Y7=Ha(Et),Z7=Ha(zu),V7=Ha(Ao);function rp(i){return C(i)?ku(It(i)):Rf(i)}function G7(i){return function(l){return i==null?o:uo(i,l)}}var q7=Xc(),j7=Xc(!0);function rd(){return[]}function nd(){return!1}function K7(){return{}}function X7(){return""}function Q7(){return!0}function J7(i,l){if(i=dt(i),i<1||i>ot)return[];var d=Bt,v=Pr(i,Bt);l=Be(l),i-=Bt;for(var x=Io(v,l);++d<i;)l(d);return x}function eg(i){return ct(i)?Et(i,It):jn(i)?[i]:zr(gr(Nt(i)))}function tg(i){var l=++Ji;return Nt(i)+l}var rg=As(function(i,l){return i+l},0),ng=Es("ceil"),ig=As(function(i,l){return i/l},1),og=Es("floor");function ag(i){return i&&i.length?_s(i,An,Tl):o}function sg(i,l){return i&&i.length?_s(i,Be(l,2),Tl):o}function lg(i){return Mu(i,An)}function ug(i,l){return Mu(i,Be(l,2))}function cg(i){return i&&i.length?_s(i,An,fo):o}function fg(i,l){return i&&i.length?_s(i,Be(l,2),fo):o}var dg=As(function(i,l){return i*l},1),hg=Es("round"),pg=As(function(i,l){return i-l},0);function gg(i){return i&&i.length?Pu(i,An):0}function vg(i,l){return i&&i.length?Pu(i,Be(l,2)):0}return L.after=$6,L.ary=Eh,L.assign=z3,L.assignIn=Gh,L.assignInWith=c1,L.assignWith=S3,L.at=M3,L.before=Ih,L.bind=Zf,L.bindAll=A7,L.bindKey=Dh,L.castArray=K6,L.chain=Th,L.chunk=Wa,L.compact=go,L.concat=Rr,L.cond=E7,L.conforms=I7,L.constant=Qf,L.countBy=g6,L.create=k3,L.curry=Rh,L.curryRight=Nh,L.debounce=$h,L.defaults=O3,L.defaultsDeep=T3,L.defer=H6,L.delay=B6,L.difference=hi,L.differenceBy=vr,L.differenceWith=u0,L.drop=Ai,L.dropRight=jo,L.dropRightWhile=Ko,L.dropWhile=Vr,L.fill=Ua,L.filter=b6,L.flatMap=C6,L.flatMapDeep=w6,L.flatMapDepth=x6,L.flatten=Sh,L.flattenDeep=v5,L.flattenDepth=b5,L.flip=F6,L.flow=R7,L.flowRight=N7,L.fromPairs=m5,L.functions=N3,L.functionsIn=$3,L.groupBy=L6,L.initial=C5,L.intersection=w5,L.intersectionBy=x5,L.intersectionWith=L5,L.invert=B3,L.invertBy=F3,L.invokeMap=z6,L.iteratee=Jf,L.keyBy=S6,L.keys=Gr,L.keysIn=Pn,L.map=i1,L.mapKeys=U3,L.mapValues=Y3,L.matches=$7,L.matchesProperty=H7,L.memoize=a1,L.merge=Z3,L.mergeWith=qh,L.method=B7,L.methodOf=F7,L.mixin=ed,L.negate=s1,L.nthArg=U7,L.omit=V3,L.omitBy=G3,L.once=W6,L.orderBy=M6,L.over=Y7,L.overArgs=U6,L.overEvery=Z7,L.overSome=V7,L.partial=Vf,L.partialRight=Hh,L.partition=k6,L.pick=q3,L.pickBy=jh,L.property=rp,L.propertyOf=G7,L.pull=M5,L.pullAll=kh,L.pullAllBy=k5,L.pullAllWith=O5,L.pullAt=T5,L.range=q7,L.rangeRight=j7,L.rearg=Y6,L.reject=P6,L.remove=P5,L.rest=Z6,L.reverse=Uf,L.sampleSize=E6,L.set=K3,L.setWith=X3,L.shuffle=I6,L.slice=A5,L.sortBy=N6,L.sortedUniq=H5,L.sortedUniqBy=B5,L.split=C7,L.spread=V6,L.tail=F5,L.take=W5,L.takeRight=U5,L.takeRightWhile=Y5,L.takeWhile=Z5,L.tap=a6,L.throttle=G6,L.thru=n1,L.toArray=Yh,L.toPairs=Kh,L.toPairsIn=Xh,L.toPath=eg,L.toPlainObject=Vh,L.transform=Q3,L.unary=q6,L.union=V5,L.unionBy=G5,L.unionWith=q5,L.uniq=j5,L.uniqBy=K5,L.uniqWith=X5,L.unset=J3,L.unzip=Yf,L.unzipWith=Oh,L.update=e7,L.updateWith=t7,L.values=jl,L.valuesIn=r7,L.without=Q5,L.words=ep,L.wrap=j6,L.xor=J5,L.xorBy=e6,L.xorWith=t6,L.zip=r6,L.zipObject=n6,L.zipObjectDeep=i6,L.zipWith=o6,L.entries=Kh,L.entriesIn=Xh,L.extend=Gh,L.extendWith=c1,ed(L,L),L.add=rg,L.attempt=tp,L.camelCase=a7,L.capitalize=Qh,L.ceil=ng,L.clamp=n7,L.clone=X6,L.cloneDeep=J6,L.cloneDeepWith=e3,L.cloneWith=Q6,L.conformsTo=t3,L.deburr=Jh,L.defaultTo=D7,L.divide=ig,L.endsWith=s7,L.eq=Ei,L.escape=l7,L.escapeRegExp=u7,L.every=v6,L.find=m6,L.findIndex=Gl,L.findKey=P3,L.findLast=y6,L.findLastIndex=zh,L.findLastKey=A3,L.floor=og,L.forEach=Ph,L.forEachRight=Ah,L.forIn=E3,L.forInRight=I3,L.forOwn=D3,L.forOwnRight=R3,L.get=jf,L.gt=r3,L.gte=n3,L.has=H3,L.hasIn=Kf,L.head=Mh,L.identity=An,L.includes=_6,L.indexOf=y5,L.inRange=i7,L.invoke=W3,L.isArguments=Ns,L.isArray=ct,L.isArrayBuffer=i3,L.isArrayLike=Tn,L.isArrayLikeObject=br,L.isBoolean=o3,L.isBuffer=Ya,L.isDate=a3,L.isElement=s3,L.isEmpty=l3,L.isEqual=u3,L.isEqualWith=c3,L.isError=Gf,L.isFinite=f3,L.isFunction=Xo,L.isInteger=Bh,L.isLength=l1,L.isMap=Fh,L.isMatch=d3,L.isMatchWith=h3,L.isNaN=p3,L.isNative=g3,L.isNil=b3,L.isNull=v3,L.isNumber=Wh,L.isObject=ar,L.isObjectLike=cr,L.isPlainObject=c0,L.isRegExp=qf,L.isSafeInteger=m3,L.isSet=Uh,L.isString=u1,L.isSymbol=jn,L.isTypedArray=ql,L.isUndefined=y3,L.isWeakMap=C3,L.isWeakSet=w3,L.join=_5,L.kebabCase=c7,L.last=pi,L.lastIndexOf=z5,L.lowerCase=f7,L.lowerFirst=d7,L.lt=x3,L.lte=L3,L.max=ag,L.maxBy=sg,L.mean=lg,L.meanBy=ug,L.min=cg,L.minBy=fg,L.stubArray=rd,L.stubFalse=nd,L.stubObject=K7,L.stubString=X7,L.stubTrue=Q7,L.multiply=dg,L.nth=S5,L.noConflict=W7,L.noop=td,L.now=o1,L.pad=h7,L.padEnd=p7,L.padStart=g7,L.parseInt=v7,L.random=o7,L.reduce=O6,L.reduceRight=T6,L.repeat=b7,L.replace=m7,L.result=j3,L.round=hg,L.runInContext=$,L.sample=A6,L.size=D6,L.snakeCase=y7,L.some=R6,L.sortedIndex=E5,L.sortedIndexBy=I5,L.sortedIndexOf=D5,L.sortedLastIndex=R5,L.sortedLastIndexBy=N5,L.sortedLastIndexOf=$5,L.startCase=w7,L.startsWith=x7,L.subtract=pg,L.sum=gg,L.sumBy=vg,L.template=L7,L.times=J7,L.toFinite=Qo,L.toInteger=dt,L.toLength=Zh,L.toLower=_7,L.toNumber=gi,L.toSafeInteger=_3,L.toString=Nt,L.toUpper=z7,L.trim=S7,L.trimEnd=M7,L.trimStart=k7,L.truncate=O7,L.unescape=T7,L.uniqueId=tg,L.upperCase=P7,L.upperFirst=Xf,L.each=Ph,L.eachRight=Ah,L.first=Mh,ed(L,function(){var i={};return Cn(L,function(l,d){rt.call(L.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),L.VERSION=c,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){L[i].placeholder=L}),_n(["drop","take"],function(i,l){bt.prototype[i]=function(d){d=d===o?1:jt(dt(d),0);var v=this.__filtered__&&!l?new bt(this):this.clone();return v.__filtered__?v.__takeCount__=Pr(d,v.__takeCount__):v.__views__.push({size:Pr(d,Bt),type:i+(v.__dir__<0?"Right":"")}),v},bt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),_n(["filter","map","takeWhile"],function(i,l){var d=l+1,v=d==E||d==ne;bt.prototype[i]=function(x){var _=this.clone();return _.__iteratees__.push({iteratee:Be(x,3),type:d}),_.__filtered__=_.__filtered__||v,_}}),_n(["head","last"],function(i,l){var d="take"+(l?"Right":"");bt.prototype[i]=function(){return this[d](1).value()[0]}}),_n(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");bt.prototype[i]=function(){return this.__filtered__?new bt(this):this[d](1)}}),bt.prototype.compact=function(){return this.filter(An)},bt.prototype.find=function(i){return this.filter(i).head()},bt.prototype.findLast=function(i){return this.reverse().find(i)},bt.prototype.invokeMap=ft(function(i,l){return typeof i=="function"?new bt(this):this.map(function(d){return ka(d,i,l)})}),bt.prototype.reject=function(i){return this.filter(s1(Be(i)))},bt.prototype.slice=function(i,l){i=dt(i);var d=this;return d.__filtered__&&(i>0||l<0)?new bt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==o&&(l=dt(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},bt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},bt.prototype.toArray=function(){return this.take(Bt)},Cn(bt.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),x=L[v?"take"+(l=="last"?"Right":""):l],_=v||/^find/.test(l);!x||(L.prototype[l]=function(){var A=this.__wrapped__,D=v?[1]:arguments,H=A instanceof bt,te=D[0],re=H||ct(A),se=function(Ct){var xt=x.apply(L,Gi([Ct],D));return v&&Le?xt[0]:xt};re&&d&&typeof te=="function"&&te.length!=1&&(H=re=!1);var Le=this.__chain__,Ne=!!this.__actions__.length,je=_&&!Le,pt=H&&!Ne;if(!_&&re){A=pt?A:new bt(this);var Ke=i.apply(A,D);return Ke.__actions__.push({func:n1,args:[se],thisArg:o}),new Jr(Ke,Le)}return je&&pt?i.apply(this,D):(Ke=this.thru(se),je?v?Ke.value()[0]:Ke.value():Ke)})}),_n(["pop","push","shift","sort","splice","unshift"],function(i){var l=ya[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",v=/^(?:pop|shift)$/.test(i);L.prototype[i]=function(){var x=arguments;if(v&&!this.__chain__){var _=this.value();return l.apply(ct(_)?_:[],x)}return this[d](function(A){return l.apply(ct(A)?A:[],x)})}}),Cn(bt.prototype,function(i,l){var d=L[l];if(d){var v=d.name+"";rt.call(za,v)||(za[v]=[]),za[v].push({name:l,func:d})}}),za[Ps(o,Ae).name]=[{name:"wrapper",func:o}],bt.prototype.clone=Mf,bt.prototype.reverse=kf,bt.prototype.value=Iu,L.prototype.at=s6,L.prototype.chain=l6,L.prototype.commit=u6,L.prototype.next=c6,L.prototype.plant=d6,L.prototype.reverse=h6,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=p6,L.prototype.first=L.prototype.head,eo&&(L.prototype[eo]=f6),L},Ki=pc();Xr?((Xr.exports=Ki)._=Ki,us._=Ki):qt._=Ki}).call(Ql)})(M0,M0.exports);const i8=M0.exports,o8=bg({__proto__:null,default:i8},[M0.exports]);let a8=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((n,o)=>(o&=63,o<36?n+=o.toString(36):o<62?n+=(o-26).toString(36).toUpperCase():o>62?n+="-":n+="_",n),"");/**
2301
+ }`;var gt=tp(function(){return Mt(_,Ne+"return "+se).apply(o,A)});if(gt.source=se,Gf(gt))throw gt;return gt}function L7(i){return Nt(i).toLowerCase()}function _7(i){return Nt(i).toUpperCase()}function z7(i,l,d){if(i=Nt(i),i&&(d||l===o))return ps(i);if(!i||!(l=Fr(l)))return i;var v=zn(i),x=zn(l),_=ji(v,x),A=hl(v,x)+1;return go(v,_,A).join("")}function S7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.slice(0,vl(i)+1);if(!i||!(l=Fr(l)))return i;var v=zn(i),x=hl(v,zn(l))+1;return go(v,0,x).join("")}function M7(i,l,d){if(i=Nt(i),i&&(d||l===o))return i.replace(To,"");if(!i||!(l=Fr(l)))return i;var v=zn(i),x=ji(v,zn(l));return go(v,x).join("")}function k7(i,l){var d=ge,v=ye;if(ar(l)){var x="separator"in l?l.separator:x;d="length"in l?dt(l.length):d,v="omission"in l?Fr(l.omission):v}i=Nt(i);var _=i.length;if(Zn(i)){var A=zn(i);_=A.length}if(d>=_)return i;var D=d-Ro(v);if(D<1)return v;var H=A?go(A,0,D).join(""):i.slice(0,D);if(x===o)return H+v;if(A&&(D+=H.length-D),qf(x)){if(i.slice(D).search(x)){var te,re=H;for(x.global||(x=Qi(x.source,Nt(Po.exec(x))+"g")),x.lastIndex=0;te=x.exec(re);)var se=te.index;H=H.slice(0,se===o?D:se)}}else if(i.indexOf(Fr(x),D)!=D){var Le=H.lastIndexOf(x);Le>-1&&(H=H.slice(0,Le))}return H+v}function O7(i){return i=Nt(i),i&&ga.test(i)?i.replace(Bn,bl):i}var T7=Ba(function(i,l,d){return i+(d?" ":"")+l.toUpperCase()}),Xf=jc("toUpperCase");function ep(i,l,d){return i=Nt(i),l=d?o:l,l===o?ai(i)?Vn(i):oc(i):i.match(l)||[]}var tp=ft(function(i,l){try{return bn(i,o,l)}catch(d){return Gf(d)?d:new Je(d)}}),P7=Pi(function(i,l){return _n(l,function(d){d=It(d),di(i,d,Zf(i[d],i))}),i});function A7(i){var l=i==null?0:i.length,d=Be();return i=l?Et(i,function(v){if(typeof v[1]!="function")throw new sn(b);return[d(v[0]),v[1]]}):[],ft(function(v){for(var x=-1;++x<l;){var _=i[x];if(bn(_[0],this,v))return bn(_[1],this,v)}})}function E7(i){return Sc(en(i,U))}function Qf(i){return function(){return i}}function I7(i,l){return i==null||i!==i?l:i}var D7=Kc(),R7=Kc(!0);function An(i){return i}function Jf(i){return Ic(typeof i=="function"?i:en(i,U))}function N7(i){return Dc(en(i,U))}function $7(i,l){return Gu(i,en(l,U))}var H7=ft(function(i,l){return function(d){return Pa(d,i,l)}}),B7=ft(function(i,l){return function(d){return Pa(i,d,l)}});function ed(i,l,d){var v=Gr(l),x=Ss(l,v);d==null&&!(ar(l)&&(x.length||!v.length))&&(d=l,l=i,i=this,x=Ss(l,Gr(l)));var _=!(ar(d)&&"chain"in d)||!!d.chain,A=Qo(i);return _n(x,function(D){var H=l[D];i[D]=H,A&&(i.prototype[D]=function(){var te=this.__chain__;if(_||te){var re=i(this.__wrapped__),se=re.__actions__=zr(this.__actions__);return se.push({func:H,args:arguments,thisArg:i}),re.__chain__=te,re}return H.apply(i,qi([this.value()],arguments))})}),i}function F7(){return qt._===this&&(qt._=vc),this}function td(){}function W7(i){return i=dt(i),ft(function(l){return Rc(l,i)})}var U7=Wa(Et),Y7=Wa(zu),Z7=Wa(Eo);function rp(i){return C(i)?ku(It(i)):Rf(i)}function V7(i){return function(l){return i==null?o:co(i,l)}}var G7=Xc(),q7=Xc(!0);function rd(){return[]}function nd(){return!1}function j7(){return{}}function K7(){return""}function X7(){return!0}function Q7(i,l){if(i=dt(i),i<1||i>ot)return[];var d=Bt,v=Pr(i,Bt);l=Be(l),i-=Bt;for(var x=Do(v,l);++d<i;)l(d);return x}function J7(i){return ct(i)?Et(i,It):jn(i)?[i]:zr(gr(Nt(i)))}function eg(i){var l=++eo;return Nt(i)+l}var tg=Es(function(i,l){return i+l},0),rg=Is("ceil"),ng=Es(function(i,l){return i/l},1),ig=Is("floor");function og(i){return i&&i.length?zs(i,An,Tl):o}function ag(i,l){return i&&i.length?zs(i,Be(l,2),Tl):o}function sg(i){return Mu(i,An)}function lg(i,l){return Mu(i,Be(l,2))}function ug(i){return i&&i.length?zs(i,An,ho):o}function cg(i,l){return i&&i.length?zs(i,Be(l,2),ho):o}var fg=Es(function(i,l){return i*l},1),dg=Is("round"),hg=Es(function(i,l){return i-l},0);function pg(i){return i&&i.length?Pu(i,An):0}function gg(i,l){return i&&i.length?Pu(i,Be(l,2)):0}return L.after=N6,L.ary=Eh,L.assign=_3,L.assignIn=Gh,L.assignInWith=c1,L.assignWith=z3,L.at=S3,L.before=Ih,L.bind=Zf,L.bindAll=P7,L.bindKey=Dh,L.castArray=j6,L.chain=Th,L.chunk=Za,L.compact=vo,L.concat=Rr,L.cond=A7,L.conforms=E7,L.constant=Qf,L.countBy=p6,L.create=M3,L.curry=Rh,L.curryRight=Nh,L.debounce=$h,L.defaults=k3,L.defaultsDeep=O3,L.defer=$6,L.delay=H6,L.difference=hi,L.differenceBy=vr,L.differenceWith=u0,L.drop=Ai,L.dropRight=Ko,L.dropRightWhile=Xo,L.dropWhile=Vr,L.fill=Va,L.filter=v6,L.flatMap=y6,L.flatMapDeep=C6,L.flatMapDepth=w6,L.flatten=Sh,L.flattenDeep=g5,L.flattenDepth=v5,L.flip=B6,L.flow=D7,L.flowRight=R7,L.fromPairs=b5,L.functions=R3,L.functionsIn=N3,L.groupBy=x6,L.initial=y5,L.intersection=C5,L.intersectionBy=w5,L.intersectionWith=x5,L.invert=H3,L.invertBy=B3,L.invokeMap=_6,L.iteratee=Jf,L.keyBy=z6,L.keys=Gr,L.keysIn=Pn,L.map=i1,L.mapKeys=W3,L.mapValues=U3,L.matches=N7,L.matchesProperty=$7,L.memoize=a1,L.merge=Y3,L.mergeWith=qh,L.method=H7,L.methodOf=B7,L.mixin=ed,L.negate=s1,L.nthArg=W7,L.omit=Z3,L.omitBy=V3,L.once=F6,L.orderBy=S6,L.over=U7,L.overArgs=W6,L.overEvery=Y7,L.overSome=Z7,L.partial=Vf,L.partialRight=Hh,L.partition=M6,L.pick=G3,L.pickBy=jh,L.property=rp,L.propertyOf=V7,L.pull=S5,L.pullAll=kh,L.pullAllBy=M5,L.pullAllWith=k5,L.pullAt=O5,L.range=G7,L.rangeRight=q7,L.rearg=U6,L.reject=T6,L.remove=T5,L.rest=Y6,L.reverse=Uf,L.sampleSize=A6,L.set=j3,L.setWith=K3,L.shuffle=E6,L.slice=P5,L.sortBy=R6,L.sortedUniq=$5,L.sortedUniqBy=H5,L.split=y7,L.spread=Z6,L.tail=B5,L.take=F5,L.takeRight=W5,L.takeRightWhile=U5,L.takeWhile=Y5,L.tap=o6,L.throttle=V6,L.thru=n1,L.toArray=Yh,L.toPairs=Kh,L.toPairsIn=Xh,L.toPath=J7,L.toPlainObject=Vh,L.transform=X3,L.unary=G6,L.union=Z5,L.unionBy=V5,L.unionWith=G5,L.uniq=q5,L.uniqBy=j5,L.uniqWith=K5,L.unset=Q3,L.unzip=Yf,L.unzipWith=Oh,L.update=J3,L.updateWith=e7,L.values=jl,L.valuesIn=t7,L.without=X5,L.words=ep,L.wrap=q6,L.xor=Q5,L.xorBy=J5,L.xorWith=e6,L.zip=t6,L.zipObject=r6,L.zipObjectDeep=n6,L.zipWith=i6,L.entries=Kh,L.entriesIn=Xh,L.extend=Gh,L.extendWith=c1,ed(L,L),L.add=tg,L.attempt=tp,L.camelCase=o7,L.capitalize=Qh,L.ceil=rg,L.clamp=r7,L.clone=K6,L.cloneDeep=Q6,L.cloneDeepWith=J6,L.cloneWith=X6,L.conformsTo=e3,L.deburr=Jh,L.defaultTo=I7,L.divide=ng,L.endsWith=a7,L.eq=Ei,L.escape=s7,L.escapeRegExp=l7,L.every=g6,L.find=b6,L.findIndex=Gl,L.findKey=T3,L.findLast=m6,L.findLastIndex=zh,L.findLastKey=P3,L.floor=ig,L.forEach=Ph,L.forEachRight=Ah,L.forIn=A3,L.forInRight=E3,L.forOwn=I3,L.forOwnRight=D3,L.get=jf,L.gt=t3,L.gte=r3,L.has=$3,L.hasIn=Kf,L.head=Mh,L.identity=An,L.includes=L6,L.indexOf=m5,L.inRange=n7,L.invoke=F3,L.isArguments=$s,L.isArray=ct,L.isArrayBuffer=n3,L.isArrayLike=Tn,L.isArrayLikeObject=br,L.isBoolean=i3,L.isBuffer=Ga,L.isDate=o3,L.isElement=a3,L.isEmpty=s3,L.isEqual=l3,L.isEqualWith=u3,L.isError=Gf,L.isFinite=c3,L.isFunction=Qo,L.isInteger=Bh,L.isLength=l1,L.isMap=Fh,L.isMatch=f3,L.isMatchWith=d3,L.isNaN=h3,L.isNative=p3,L.isNil=v3,L.isNull=g3,L.isNumber=Wh,L.isObject=ar,L.isObjectLike=cr,L.isPlainObject=c0,L.isRegExp=qf,L.isSafeInteger=b3,L.isSet=Uh,L.isString=u1,L.isSymbol=jn,L.isTypedArray=ql,L.isUndefined=m3,L.isWeakMap=y3,L.isWeakSet=C3,L.join=L5,L.kebabCase=u7,L.last=pi,L.lastIndexOf=_5,L.lowerCase=c7,L.lowerFirst=f7,L.lt=w3,L.lte=x3,L.max=og,L.maxBy=ag,L.mean=sg,L.meanBy=lg,L.min=ug,L.minBy=cg,L.stubArray=rd,L.stubFalse=nd,L.stubObject=j7,L.stubString=K7,L.stubTrue=X7,L.multiply=fg,L.nth=z5,L.noConflict=F7,L.noop=td,L.now=o1,L.pad=d7,L.padEnd=h7,L.padStart=p7,L.parseInt=g7,L.random=i7,L.reduce=k6,L.reduceRight=O6,L.repeat=v7,L.replace=b7,L.result=q3,L.round=dg,L.runInContext=$,L.sample=P6,L.size=I6,L.snakeCase=m7,L.some=D6,L.sortedIndex=A5,L.sortedIndexBy=E5,L.sortedIndexOf=I5,L.sortedLastIndex=D5,L.sortedLastIndexBy=R5,L.sortedLastIndexOf=N5,L.startCase=C7,L.startsWith=w7,L.subtract=hg,L.sum=pg,L.sumBy=gg,L.template=x7,L.times=Q7,L.toFinite=Jo,L.toInteger=dt,L.toLength=Zh,L.toLower=L7,L.toNumber=gi,L.toSafeInteger=L3,L.toString=Nt,L.toUpper=_7,L.trim=z7,L.trimEnd=S7,L.trimStart=M7,L.truncate=k7,L.unescape=O7,L.uniqueId=eg,L.upperCase=T7,L.upperFirst=Xf,L.each=Ph,L.eachRight=Ah,L.first=Mh,ed(L,function(){var i={};return Cn(L,function(l,d){rt.call(L.prototype,d)||(i[d]=l)}),i}(),{chain:!1}),L.VERSION=c,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){L[i].placeholder=L}),_n(["drop","take"],function(i,l){bt.prototype[i]=function(d){d=d===o?1:jt(dt(d),0);var v=this.__filtered__&&!l?new bt(this):this.clone();return v.__filtered__?v.__takeCount__=Pr(d,v.__takeCount__):v.__views__.push({size:Pr(d,Bt),type:i+(v.__dir__<0?"Right":"")}),v},bt.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),_n(["filter","map","takeWhile"],function(i,l){var d=l+1,v=d==E||d==ne;bt.prototype[i]=function(x){var _=this.clone();return _.__iteratees__.push({iteratee:Be(x,3),type:d}),_.__filtered__=_.__filtered__||v,_}}),_n(["head","last"],function(i,l){var d="take"+(l?"Right":"");bt.prototype[i]=function(){return this[d](1).value()[0]}}),_n(["initial","tail"],function(i,l){var d="drop"+(l?"":"Right");bt.prototype[i]=function(){return this.__filtered__?new bt(this):this[d](1)}}),bt.prototype.compact=function(){return this.filter(An)},bt.prototype.find=function(i){return this.filter(i).head()},bt.prototype.findLast=function(i){return this.reverse().find(i)},bt.prototype.invokeMap=ft(function(i,l){return typeof i=="function"?new bt(this):this.map(function(d){return Pa(d,i,l)})}),bt.prototype.reject=function(i){return this.filter(s1(Be(i)))},bt.prototype.slice=function(i,l){i=dt(i);var d=this;return d.__filtered__&&(i>0||l<0)?new bt(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),l!==o&&(l=dt(l),d=l<0?d.dropRight(-l):d.take(l-i)),d)},bt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},bt.prototype.toArray=function(){return this.take(Bt)},Cn(bt.prototype,function(i,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),v=/^(?:head|last)$/.test(l),x=L[v?"take"+(l=="last"?"Right":""):l],_=v||/^find/.test(l);!x||(L.prototype[l]=function(){var A=this.__wrapped__,D=v?[1]:arguments,H=A instanceof bt,te=D[0],re=H||ct(A),se=function(Ct){var xt=x.apply(L,qi([Ct],D));return v&&Le?xt[0]:xt};re&&d&&typeof te=="function"&&te.length!=1&&(H=re=!1);var Le=this.__chain__,Ne=!!this.__actions__.length,je=_&&!Le,gt=H&&!Ne;if(!_&&re){A=gt?A:new bt(this);var Ke=i.apply(A,D);return Ke.__actions__.push({func:n1,args:[se],thisArg:o}),new Jr(Ke,Le)}return je&&gt?i.apply(this,D):(Ke=this.thru(se),je?v?Ke.value()[0]:Ke.value():Ke)})}),_n(["pop","push","shift","sort","splice","unshift"],function(i){var l=xa[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",v=/^(?:pop|shift)$/.test(i);L.prototype[i]=function(){var x=arguments;if(v&&!this.__chain__){var _=this.value();return l.apply(ct(_)?_:[],x)}return this[d](function(A){return l.apply(ct(A)?A:[],x)})}}),Cn(bt.prototype,function(i,l){var d=L[l];if(d){var v=d.name+"";rt.call(ka,v)||(ka[v]=[]),ka[v].push({name:l,func:d})}}),ka[As(o,Ae).name]=[{name:"wrapper",func:o}],bt.prototype.clone=Mf,bt.prototype.reverse=kf,bt.prototype.value=Iu,L.prototype.at=a6,L.prototype.chain=s6,L.prototype.commit=l6,L.prototype.next=u6,L.prototype.plant=f6,L.prototype.reverse=d6,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=h6,L.prototype.first=L.prototype.head,to&&(L.prototype[to]=c6),L},Xi=pc();Xr?((Xr.exports=Xi)._=Xi,cs._=Xi):qt._=Xi}).call(Ql)})(M0,M0.exports);const s8=M0.exports,l8=vg({__proto__:null,default:s8},[M0.exports]);let u8=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((n,o)=>(o&=63,o<36?n+=o.toString(36):o<62?n+=(o-26).toString(36).toUpperCase():o>62?n+="-":n+="_",n),"");/**
2289
2302
  * @license
2290
2303
  * Copyright 2020 Google LLC
2291
2304
  * SPDX-License-Identifier: BSD-3-Clause
2292
- */const{I:s8}=xg,Tp=()=>document.createComment(""),h0=(r,n,o)=>{var c;const f=r._$AA.parentNode,g=n===void 0?r._$AB:n._$AA;if(o===void 0){const b=f.insertBefore(Tp(),g),P=f.insertBefore(Tp(),g);o=new s8(b,P,r,r.options)}else{const b=o._$AB.nextSibling,P=o._$AM,S=P!==r;if(S){let k;(c=o._$AQ)===null||c===void 0||c.call(o,r),o._$AM=r,o._$AP!==void 0&&(k=r._$AU)!==P._$AU&&o._$AP(k)}if(b!==g||S){let k=o._$AA;for(;k!==b;){const I=k.nextSibling;f.insertBefore(k,g),k=I}}}return o},Bs=(r,n,o=r)=>(r._$AI(n,o),r),l8={},u8=(r,n=l8)=>r._$AH=n,c8=r=>r._$AH,dd=r=>{var n;(n=r._$AP)===null||n===void 0||n.call(r,!1,!0);let o=r._$AA;const c=r._$AB.nextSibling;for(;o!==c;){const f=o.nextSibling;o.remove(),o=f}};/**
2305
+ */const{I:c8}=wg,Op=()=>document.createComment(""),h0=(r,n,o)=>{var c;const f=r._$AA.parentNode,p=n===void 0?r._$AB:n._$AA;if(o===void 0){const b=f.insertBefore(Op(),p),k=f.insertBefore(Op(),p);o=new c8(b,k,r,r.options)}else{const b=o._$AB.nextSibling,k=o._$AM,S=k!==r;if(S){let O;(c=o._$AQ)===null||c===void 0||c.call(o,r),o._$AM=r,o._$AP!==void 0&&(O=r._$AU)!==k._$AU&&o._$AP(O)}if(b!==p||S){let O=o._$AA;for(;O!==b;){const I=O.nextSibling;f.insertBefore(O,p),O=I}}}return o},Fs=(r,n,o=r)=>(r._$AI(n,o),r),f8={},d8=(r,n=f8)=>r._$AH=n,h8=r=>r._$AH,fd=r=>{var n;(n=r._$AP)===null||n===void 0||n.call(r,!1,!0);let o=r._$AA;const c=r._$AB.nextSibling;for(;o!==c;){const f=o.nextSibling;o.remove(),o=f}};/**
2293
2306
  * @license
2294
2307
  * Copyright 2017 Google LLC
2295
2308
  * SPDX-License-Identifier: BSD-3-Clause
2296
- */const Pp=(r,n,o)=>{const c=new Map;for(let f=n;f<=o;f++)c.set(r[f],f);return c},f8=A1(class extends E1{constructor(r){if(super(r),r.type!==P1.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,n,o){let c;o===void 0?o=n:n!==void 0&&(c=n);const f=[],g=[];let b=0;for(const P of r)f[b]=c?c(P,b):b,g[b]=o(P,b),b++;return{values:g,keys:f}}render(r,n,o){return this.ht(r,n,o).values}update(r,[n,o,c]){var f;const g=c8(r),{values:b,keys:P}=this.ht(n,o,c);if(!Array.isArray(g))return this.ut=P,b;const S=(f=this.ut)!==null&&f!==void 0?f:this.ut=[],k=[];let I,U,q=0,X=g.length-1,ce=0,we=b.length-1;for(;q<=X&&ce<=we;)if(g[q]===null)q++;else if(g[X]===null)X--;else if(S[q]===P[ce])k[ce]=Bs(g[q],b[ce]),q++,ce++;else if(S[X]===P[we])k[we]=Bs(g[X],b[we]),X--,we--;else if(S[q]===P[we])k[we]=Bs(g[q],b[we]),h0(r,k[we+1],g[q]),q++,we--;else if(S[X]===P[ce])k[ce]=Bs(g[X],b[ce]),h0(r,g[q],g[X]),X--,ce++;else if(I===void 0&&(I=Pp(P,ce,we),U=Pp(S,q,X)),I.has(S[q]))if(I.has(S[X])){const me=U.get(P[ce]),Ae=me!==void 0?g[me]:null;if(Ae===null){const Ie=h0(r,g[q]);Bs(Ie,b[ce]),k[ce]=Ie}else k[ce]=Bs(Ae,b[ce]),h0(r,g[q],Ae),g[me]=null;ce++}else dd(g[X]),X--;else dd(g[q]),q++;for(;ce<=we;){const me=h0(r,k[we+1]);Bs(me,b[ce]),k[ce++]=me}for(;q<=X;){const me=g[q++];me!==null&&dd(me)}return this.ut=P,u8(r,k),bo}});/**
2309
+ */const Tp=(r,n,o)=>{const c=new Map;for(let f=n;f<=o;f++)c.set(r[f],f);return c},p8=A1(class extends E1{constructor(r){if(super(r),r.type!==P1.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,n,o){let c;o===void 0?o=n:n!==void 0&&(c=n);const f=[],p=[];let b=0;for(const k of r)f[b]=c?c(k,b):b,p[b]=o(k,b),b++;return{values:p,keys:f}}render(r,n,o){return this.ht(r,n,o).values}update(r,[n,o,c]){var f;const p=h8(r),{values:b,keys:k}=this.ht(n,o,c);if(!Array.isArray(p))return this.ut=k,b;const S=(f=this.ut)!==null&&f!==void 0?f:this.ut=[],O=[];let I,U,q=0,X=p.length-1,ce=0,we=b.length-1;for(;q<=X&&ce<=we;)if(p[q]===null)q++;else if(p[X]===null)X--;else if(S[q]===k[ce])O[ce]=Fs(p[q],b[ce]),q++,ce++;else if(S[X]===k[we])O[we]=Fs(p[X],b[we]),X--,we--;else if(S[q]===k[we])O[we]=Fs(p[q],b[we]),h0(r,O[we+1],p[q]),q++,we--;else if(S[X]===k[ce])O[ce]=Fs(p[X],b[ce]),h0(r,p[q],p[X]),X--,ce++;else if(I===void 0&&(I=Tp(k,ce,we),U=Tp(S,q,X)),I.has(S[q]))if(I.has(S[X])){const me=U.get(k[ce]),Ae=me!==void 0?p[me]:null;if(Ae===null){const Ie=h0(r,p[q]);Fs(Ie,b[ce]),O[ce]=Ie}else O[ce]=Fs(Ae,b[ce]),h0(r,p[q],Ae),p[me]=null;ce++}else fd(p[X]),X--;else fd(p[q]),q++;for(;ce<=we;){const me=h0(r,O[we+1]);Fs(me,b[ce]),O[ce++]=me}for(;q<=X;){const me=p[q++];me!==null&&fd(me)}return this.ut=k,d8(r,O),mo}});/**
2297
2310
  * @license
2298
2311
  * Copyright 2018 Google LLC
2299
2312
  * SPDX-License-Identifier: BSD-3-Clause
2300
- */const d8=A1(class extends E1{constructor(r){var n;if(super(r),r.type!==P1.ATTRIBUTE||r.name!=="style"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((n,o)=>{const c=r[o];return c==null?n:n+`${o=o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${c};`},"")}update(r,[n]){const{style:o}=r.element;if(this.vt===void 0){this.vt=new Set;for(const c in n)this.vt.add(c);return this.render(n)}this.vt.forEach(c=>{n[c]==null&&(this.vt.delete(c),c.includes("-")?o.removeProperty(c):o[c]="")});for(const c in n){const f=n[c];f!=null&&(this.vt.add(c),c.includes("-")?o.setProperty(c,f):o[c]=f)}return bo}});var h8=Object.defineProperty,p8=Object.getOwnPropertyDescriptor,ei=(r,n,o,c)=>{for(var f=c>1?void 0:c?p8(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&h8(n,o,f),f};const Kd=Ee("virtual-list");exports.VirtualList=class extends Ue{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(r,n)=>ee`
2313
+ */const g8=A1(class extends E1{constructor(r){var n;if(super(r),r.type!==P1.ATTRIBUTE||r.name!=="style"||((n=r.strings)===null||n===void 0?void 0:n.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((n,o)=>{const c=r[o];return c==null?n:n+`${o=o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${c};`},"")}update(r,[n]){const{style:o}=r.element;if(this.vt===void 0){this.vt=new Set;for(const c in n)this.vt.add(c);return this.render(n)}this.vt.forEach(c=>{n[c]==null&&(this.vt.delete(c),c.includes("-")?o.removeProperty(c):o[c]="")});for(const c in n){const f=n[c];f!=null&&(this.vt.add(c),c.includes("-")?o.setProperty(c,f):o[c]=f)}return mo}});var v8=Object.defineProperty,b8=Object.getOwnPropertyDescriptor,ei=(r,n,o,c)=>{for(var f=c>1?void 0:c?b8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&v8(n,o,f),f};const Kd=Ee("virtual-list");exports.VirtualList=class extends Ue{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(r,n)=>ee`
2301
2314
  <div
2302
2315
  class="default-render-item"
2303
2316
  style="min-height: ${this.itemMinHeight}px"
2304
2317
  >
2305
2318
  Item ${n}: ${JSON.stringify(r)}
2306
2319
  </div>
2307
- `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}async connectedCallback(){super.connectedCallback(),this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(r){super.updated(r),this.canSync(r)&&this.syncVisibleItems()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.max(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((r,n)=>r+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const r={};let n=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{r[c]?r[c]++:r[c]=1,r[c]>o&&(n=c,o=r[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(r){return["items","renderItem"].reduce((n,o)=>n||r.has(o),!1)}syncVisibleItems(){this.resetItems();for(let r=this.rollingStartIndex;r<=this.rollingEndIndex;r++){const n={position:"absolute",top:`${r*this.itemHeights[r]}px`,width:"100%"},o=this.renderItem(this.items[r],r);if(!this.itemIdentifier){const g=Kp(o,new DocumentFragment).parentNode.firstElementChild,b=g==null?void 0:g.tagName.toLowerCase(),P=g==null?void 0:g.className;this.itemIdentifier=`${b}${P?`.${P}`:""}`}const c=ee`
2308
- <div class="item-wrapper" style=${d8(n)}>
2320
+ `,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}async connectedCallback(){super.connectedCallback(),this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(r){super.updated(r),this.canSync(r)&&this.syncVisibleItems()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.max(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((r,n)=>r+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const r={};let n=0,o=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{r[c]?r[c]++:r[c]=1,r[c]>o&&(n=c,o=r[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(r){return["items","renderItem"].reduce((n,o)=>n||r.has(o),!1)}syncVisibleItems(){this.resetItems();for(let r=this.rollingStartIndex;r<=this.rollingEndIndex;r++){const n={position:"absolute",top:`${r*this.itemHeights[r]}px`,width:"100%"},o=this.renderItem(this.items[r],r);if(!this.itemIdentifier){const p=jp(o,new DocumentFragment).parentNode.firstElementChild,b=p==null?void 0:p.tagName.toLowerCase(),k=p==null?void 0:p.className;this.itemIdentifier=`${b}${k?`.${k}`:""}`}const c=ee`
2321
+ <div class="item-wrapper" style=${g8(n)}>
2309
2322
  ${o}
2310
2323
  </div>
2311
2324
  `;this.visibleItems.push({index:r,item:c})}this.updateItemHeights()}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:r},n)=>{var o,c;this.itemHeights[r]=((c=(o=this.visibleItemElements)==null?void 0:o[n])==null?void 0:c.getBoundingClientRect().height)||this.itemHeights[r]})}get visibleItemElements(){var r;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(r=this.shadowRoot)==null?void 0:r.querySelectorAll(this.itemIdentifier)}handleScroll(r){var n;this.currentScrollTop=(n=r.currentTarget)==null?void 0:n.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const r=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),n=Math.min(this.overscan,r);return r-n}get rollingEndIndex(){const r=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),n=Math.min(this.overscan,this.endIndex-r);return r+n}get containerHeight(){return this.getBoundingClientRect().height}render(){return ee`
2312
2325
  <div class="container" @scroll=${this.handleScroll}>
2313
2326
  <div class="list" style="height: ${this.innerHeight}px">
2314
- ${f8(this.visibleItems,({index:r})=>r,({item:r})=>r)}
2327
+ ${p8(this.visibleItems,({index:r})=>r,({item:r})=>r)}
2315
2328
  </div>
2316
2329
  </div>
2317
2330
  `}};exports.VirtualList.styles=[Se`
@@ -2328,7 +2341,7 @@ function print() { __p += __j.call(arguments, '') }
2328
2341
  .list {
2329
2342
  position: relative;
2330
2343
  }
2331
- `];ei([F({type:Array})],exports.VirtualList.prototype,"items",2);ei([F({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);ei([F({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);ei([F({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);ei([gt()],exports.VirtualList.prototype,"currentScrollTop",2);ei([gt()],exports.VirtualList.prototype,"endIndex",2);ei([gt()],exports.VirtualList.prototype,"innerHeight",2);ei([gt()],exports.VirtualList.prototype,"itemHeights",2);ei([gt()],exports.VirtualList.prototype,"itemIdentifier",2);ei([gt()],exports.VirtualList.prototype,"originalItemsCount",2);ei([gt()],exports.VirtualList.prototype,"currentItemsCount",2);ei([gt()],exports.VirtualList.prototype,"visibleItems",2);exports.VirtualList=ei([Q(Kd)],exports.VirtualList);var g8=Object.defineProperty,v8=Object.getOwnPropertyDescriptor,Nn=(r,n,o,c)=>{for(var f=c>1?void 0:c?v8(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&g8(n,o,f),f};const U2=Ee("menu"),y0=Ee("menu-item"),Xd="noResults";class ti extends Rn{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.selectedIndex=-1,this.innerOptions=[],this.options=[],this.keyBindings={Tab:this.handleTab.bind(this),Enter:this.handleEnterKey.bind(this),ArrowUp:this.handleUpDownKey.bind(this),ArrowDown:this.handleUpDownKey.bind(this)}}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(n=>({...n,id:`option-${a8()}`,toggleable:this.isMulti}))]:[]}firstUpdated(){this.setInnerOptions(),this.value&&this.updateComplete.then(()=>{this.handleValueChange()})}updated(n){n.has("value")&&this.handleValueChange(),super.updated()}handleUpDownKey(n){n.preventDefault();const{key:o}=n;this.openDropdown();const c=({before:g,after:b})=>(P,S)=>P.hidden?!1:g===void 0&&b===void 0||g!==void 0&&S<g||b!==void 0&&S>b;this.clearKeySelectedItem();const f=this.getItems();if(this.selectedIndex===-1){this.selectedIndex=0,f[this.selectedIndex].selected=!0;return}o==="ArrowUp"&&(this.selectedIndex=M0.exports.findLastIndex(f,c({before:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=f.length-1)),o==="ArrowDown"&&(this.selectedIndex=f.findIndex(c({after:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=0)),f[this.selectedIndex].selected=!0}handleEnterKey(){if(!this.isDropdownOpen()){this.openDropdown();return}const n=this.getItems()[this.selectedIndex];n&&n.value&&!n.disabled&&this.setValue(n.value),!(n&&n.disabled)&&this.closeDropdown()}handleTab(){this.isDropdownOpen()&&this.closeDropdown()}clearKeySelectedItem(){if(this.selectedIndex===-1)return;const n=this.getItems()[this.selectedIndex];if(!n){this.selectedIndex=-1;return}n.selected=!1}closeDropdown(){const n=this.getDropdown();n&&n.close()}getDropdown(){var n,o;return((n=this.renderRoot)==null?void 0:n.querySelector("brz-popover"))||((o=this.renderRoot)==null?void 0:o.querySelector("sp-popover"))}getItemLabel(n){var o,c;return n?n instanceof exports.MenuItem?(c=(o=n.textContent)==null?void 0:o.trim())!=null?c:"":n.label:""}get keyboardFocusedItem(){var n,o;return((n=this.optionElementsRenderRoot)==null?void 0:n.querySelector(`${y0}[selected]`))||((o=this.optionElementsRenderRoot)==null?void 0:o.querySelector("sp-menu-item[selected]"))}handleKeydown(n){if(this.readonly)return;const o=this.keyBindings[n.key];o&&o(n)}get defaultSlot(){var n,o;return(o=(n=this.renderRoot)==null?void 0:n.querySelector("slot:not([name])"))==null?void 0:o.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var n;return this.isDataDriven?(n=this.virtualListElement)==null?void 0:n.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Kd)}getOptionElement(n){return this.optionElements.find(o=>o.id===n)}get optionElements(){var o,c,f;const n=(o=this.optionElementsRenderRoot)!=null&&o.querySelectorAll(y0).length?(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll(y0):(f=this.optionElementsRenderRoot)==null?void 0:f.querySelectorAll("sp-menu-item");return Array.from(n!=null?n:[])}isDropdownOpen(){const n=this.getDropdown();return n==null?void 0:n.isOpen}openDropdown(){const n=this.getDropdown();n&&n.open()}setValue(n){this.value=n,this.handleValueChange(),this.dispatchChange()}renderInput(){return this.updateComplete.then(()=>{var n,o;(n=this.keyboardFocusedItem)==null||n.scrollIntoView({block:"center"}),(o=this.getDropdown())==null||o.updatePosition()}),this.readonly?this.renderReferenceElement():ee`
2344
+ `];ei([F({type:Array})],exports.VirtualList.prototype,"items",2);ei([F({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);ei([F({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);ei([F({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);ei([pt()],exports.VirtualList.prototype,"currentScrollTop",2);ei([pt()],exports.VirtualList.prototype,"endIndex",2);ei([pt()],exports.VirtualList.prototype,"innerHeight",2);ei([pt()],exports.VirtualList.prototype,"itemHeights",2);ei([pt()],exports.VirtualList.prototype,"itemIdentifier",2);ei([pt()],exports.VirtualList.prototype,"originalItemsCount",2);ei([pt()],exports.VirtualList.prototype,"currentItemsCount",2);ei([pt()],exports.VirtualList.prototype,"visibleItems",2);exports.VirtualList=ei([Q(Kd)],exports.VirtualList);var m8=Object.defineProperty,y8=Object.getOwnPropertyDescriptor,Nn=(r,n,o,c)=>{for(var f=c>1?void 0:c?y8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&m8(n,o,f),f};const W2=Ee("menu"),y0=Ee("menu-item"),Xd="noResults";class ti extends Rn{constructor(){super(...arguments),this.trailingIcon="chevronDown",this.selectedIndex=-1,this.innerOptions=[],this.options=[],this.keyBindings={Tab:this.handleTab.bind(this),Enter:this.handleEnterKey.bind(this),ArrowUp:this.handleUpDownKey.bind(this),ArrowDown:this.handleUpDownKey.bind(this)}}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(n=>({...n,id:`option-${u8()}`,toggleable:this.isMulti}))]:[]}firstUpdated(){this.setInnerOptions(),this.value&&this.updateComplete.then(()=>{this.handleValueChange()})}updated(n){n.has("value")&&this.handleValueChange(),super.updated()}handleUpDownKey(n){n.preventDefault();const{key:o}=n;this.openDropdown();const c=({before:p,after:b})=>(k,S)=>k.hidden?!1:p===void 0&&b===void 0||p!==void 0&&S<p||b!==void 0&&S>b;this.clearKeySelectedItem();const f=this.getItems();if(this.selectedIndex===-1){this.selectedIndex=0,f[this.selectedIndex].selected=!0;return}o==="ArrowUp"&&(this.selectedIndex=M0.exports.findLastIndex(f,c({before:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=f.length-1)),o==="ArrowDown"&&(this.selectedIndex=f.findIndex(c({after:this.selectedIndex})),this.selectedIndex===-1&&(this.selectedIndex=0)),f[this.selectedIndex].selected=!0}handleEnterKey(){if(!this.isDropdownOpen()){this.openDropdown();return}const n=this.getItems()[this.selectedIndex];n&&n.value&&!n.disabled&&this.setValue(n.value),!(n&&n.disabled)&&this.closeDropdown()}handleTab(){this.isDropdownOpen()&&this.closeDropdown()}clearKeySelectedItem(){if(this.selectedIndex===-1)return;const n=this.getItems()[this.selectedIndex];if(!n){this.selectedIndex=-1;return}n.selected=!1}closeDropdown(){const n=this.getDropdown();n&&n.close()}getDropdown(){var n,o;return((n=this.renderRoot)==null?void 0:n.querySelector("brz-popover"))||((o=this.renderRoot)==null?void 0:o.querySelector("sp-popover"))}getItemLabel(n){var o,c;return n?n instanceof exports.MenuItem?(c=(o=n.textContent)==null?void 0:o.trim())!=null?c:"":n.label:""}get keyboardFocusedItem(){var n,o;return((n=this.optionElementsRenderRoot)==null?void 0:n.querySelector(`${y0}[selected]`))||((o=this.optionElementsRenderRoot)==null?void 0:o.querySelector("sp-menu-item[selected]"))}handleKeydown(n){if(this.readonly)return;const o=this.keyBindings[n.key];o&&o(n)}get defaultSlot(){var n,o;return(o=(n=this.renderRoot)==null?void 0:n.querySelector("slot:not([name])"))==null?void 0:o.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var n;return this.isDataDriven?(n=this.virtualListElement)==null?void 0:n.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Kd)}getOptionElement(n){return this.optionElements.find(o=>o.id===n)}get optionElements(){var o,c,f;const n=(o=this.optionElementsRenderRoot)!=null&&o.querySelectorAll(y0).length?(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll(y0):(f=this.optionElementsRenderRoot)==null?void 0:f.querySelectorAll("sp-menu-item");return Array.from(n!=null?n:[])}isDropdownOpen(){const n=this.getDropdown();return n==null?void 0:n.isOpen}openDropdown(){const n=this.getDropdown();n&&n.open()}setValue(n){this.value=n,this.handleValueChange(),this.dispatchChange()}renderInput(){return this.updateComplete.then(()=>{var n,o;(n=this.keyboardFocusedItem)==null||n.scrollIntoView({block:"center"}),(o=this.getDropdown())==null||o.updatePosition()}),this.readonly?this.renderReferenceElement():ee`
2332
2345
  <brz-popover
2333
2346
  role="menu"
2334
2347
  trigger="click"
@@ -2352,13 +2365,13 @@ function print() { __p += __j.call(arguments, '') }
2352
2365
  >`}renderReferenceElement(){return ee``}renderDropdownContent(){return ee``}renderOptionsData(n=this.innerOptions){return n!=null&&n.length?ee`
2353
2366
  <brz-virtual-list
2354
2367
  .items=${n.filter(({hidden:o})=>!o)}
2355
- .renderItem=${({id:o,label:c,value:f,disabled:g,selected:b,toggleable:P,toggled:S})=>ee`
2368
+ .renderItem=${({id:o,label:c,value:f,disabled:p,selected:b,toggleable:k,toggled:S})=>ee`
2356
2369
  <brz-menu-item
2357
2370
  id=${o}
2358
2371
  value=${f}
2359
- ?disabled=${g}
2372
+ ?disabled=${p}
2360
2373
  ?selected=${b}
2361
- ?toggleable=${P}
2374
+ ?toggleable=${k}
2362
2375
  ?toggled=${S}
2363
2376
  >
2364
2377
  ${c}
@@ -2381,7 +2394,7 @@ function print() { __p += __j.call(arguments, '') }
2381
2394
  .wrapper {
2382
2395
  cursor: pointer;
2383
2396
  }
2384
- `];Nn([F({attribute:"can-search",type:Boolean,reflect:!0})],ti.prototype,"canSearch",2);Nn([F({type:String,reflect:!0,attribute:"trailing-icon"})],ti.prototype,"trailingIcon",2);Nn([gt()],ti.prototype,"selectedIndex",2);Nn([gt()],ti.prototype,"hasResults",2);Nn([gt()],ti.prototype,"query",2);Nn([gt()],ti.prototype,"innerOptions",2);Nn([F({type:Array})],ti.prototype,"options",2);exports.Menu=class extends Ue{render(){return ee` <slot></slot> `}};exports.Menu.styles=[Se`
2397
+ `];Nn([F({attribute:"can-search",type:Boolean,reflect:!0})],ti.prototype,"canSearch",2);Nn([F({type:String,reflect:!0,attribute:"trailing-icon"})],ti.prototype,"trailingIcon",2);Nn([pt()],ti.prototype,"selectedIndex",2);Nn([pt()],ti.prototype,"hasResults",2);Nn([pt()],ti.prototype,"query",2);Nn([pt()],ti.prototype,"innerOptions",2);Nn([F({type:Array})],ti.prototype,"options",2);exports.Menu=class extends Ue{render(){return ee` <slot></slot> `}};exports.Menu.styles=[Se`
2385
2398
  :host {
2386
2399
  --brz-list-max-height: 14rem;
2387
2400
  --brz-list-padding-y: var(--brz-spacing-1);
@@ -2401,7 +2414,7 @@ function print() { __p += __j.call(arguments, '') }
2401
2414
  overflow: hidden;
2402
2415
  overflow-y: auto;
2403
2416
  }
2404
- `];exports.Menu=Nn([Q(U2)],exports.Menu);exports.MenuItem=class extends Ue{constructor(){super(),this.disabled=!1,this.selected=!1,this.handleSelected=this.handleSelected.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleSelected)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleSelected)}handleSelected(r){this.disabled||(Y2(this,"brz-select",{detail:{item:this}}),this.toggleable&&r.stopPropagation())}get labelTemplate(){return ee` <div class="label"><slot></slot></div> `}render(){return ee`
2417
+ `];exports.Menu=Nn([Q(W2)],exports.Menu);exports.MenuItem=class extends Ue{constructor(){super(),this.disabled=!1,this.selected=!1,this.handleSelected=this.handleSelected.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleSelected)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleSelected)}handleSelected(r){this.disabled||(U2(this,"brz-select",{detail:{item:this}}),this.toggleable&&r.stopPropagation())}get labelTemplate(){return ee` <div class="label"><slot></slot></div> `}render(){return ee`
2405
2418
  <div class="wrapper">
2406
2419
  ${this.toggleable?ee`
2407
2420
  <brz-input-checkbox
@@ -2446,7 +2459,7 @@ function print() { __p += __j.call(arguments, '') }
2446
2459
  flex-basis: 100%;
2447
2460
  padding: var(--menu-item-padding-y) 0;
2448
2461
  }
2449
- `];Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Nn([F({type:String})],exports.MenuItem.prototype,"value",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggleable",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggled",2);exports.MenuItem=Nn([Q(y0)],exports.MenuItem);const Y2=(r,n,o)=>{const c=new CustomEvent(n,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},o));return r.dispatchEvent(c),c};var b8=Object.defineProperty,m8=Object.getOwnPropertyDescriptor,R0=(r,n,o,c)=>{for(var f=c>1?void 0:c?m8(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&b8(n,o,f),f};const Z2=Ee("input-select");exports.InputSelect=class extends ti{constructor(){super(...arguments),this.query="",this.hasResults=!1}handleChangeSearch(r){const n=r.target;this.query&&n.value===this.query||(this.isDropdownOpen()||this.openDropdown(),this.selectedIndex=0,this.query=n==null?void 0:n.value)}handleCloseDropdown(){window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.clearKeySelectedItem(),this.selectedIndex=-1},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(r){this.setValue(r.detail.item.value),this.closeDropdown()}get queryInput(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("input#selectSearch")}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}renderReferenceElement(){var r;return this.search(),this.canSearch?ee`<input
2462
+ `];Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Nn([F({type:String})],exports.MenuItem.prototype,"value",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggleable",2);Nn([F({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"toggled",2);exports.MenuItem=Nn([Q(y0)],exports.MenuItem);const U2=(r,n,o)=>{const c=new CustomEvent(n,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},o));return r.dispatchEvent(c),c};var C8=Object.defineProperty,w8=Object.getOwnPropertyDescriptor,R0=(r,n,o,c)=>{for(var f=c>1?void 0:c?w8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&C8(n,o,f),f};const Y2=Ee("input-select");exports.InputSelect=class extends ti{constructor(){super(...arguments),this.query="",this.hasResults=!1}handleChangeSearch(r){const n=r.target;this.query&&n.value===this.query||(this.isDropdownOpen()||this.openDropdown(),this.selectedIndex=0,this.query=n==null?void 0:n.value)}handleCloseDropdown(){window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.clearKeySelectedItem(),this.selectedIndex=-1},200)}handleValueChange(){this.updateComplete.then(()=>{this.syncValueLabel(this.value),this.resetSearch()})}handleSelect(r){this.setValue(r.detail.item.value),this.closeDropdown()}get queryInput(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("input#selectSearch")}setQueryInputValue(){!this.queryInput||(this.queryInput.value=this.query||this.valueLabel||"")}renderReferenceElement(){var r;return this.search(),this.canSearch?ee`<input
2450
2463
  id="selectSearch"
2451
2464
  type="text"
2452
2465
  placeholder=${Vt(this.placeholder)}
@@ -2514,40 +2527,55 @@ function print() { __p += __j.call(arguments, '') }
2514
2527
  .placeholder {
2515
2528
  color: var(--input-placeholder-font-color);
2516
2529
  }
2517
- `];R0([F({type:String})],exports.InputSelect.prototype,"value",2);R0([gt()],exports.InputSelect.prototype,"query",2);R0([gt()],exports.InputSelect.prototype,"valueLabel",2);R0([gt()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=R0([Q(Z2)],exports.InputSelect);var y8=Object.defineProperty,C8=Object.getOwnPropertyDescriptor,Ks=(r,n,o,c)=>{for(var f=c>1?void 0:c?C8(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&y8(n,o,f),f};const V2=Ee("lozenge");class G2 extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Ue{constructor(){super(...arguments),this.size="medium",this.theme="solid",this.color="neutral",this.canDelete=!1,this.disabled=!1}_handleDeleteClick(r){r.stopPropagation(),this.dispatchEvent(new G2)}render(){return ee`<span class="lozenge"
2518
- >${this.leadingIcon&&ee`<brz-icon
2519
- class="leading"
2520
- size="12"
2521
- icon="${this.leadingIcon}"
2522
- ></brz-icon>`}
2523
- <div class="message">
2524
- <slot></slot>
2525
- </div>
2526
-
2527
- ${this.canDelete?ee`<button
2528
- class="close"
2529
- ?disabled=${this.disabled}
2530
- @click=${this.disabled?null:this._handleDeleteClick}
2531
- >
2532
- <brz-icon size="8" icon="remove"></brz-icon>
2533
- </button>`:null}
2534
- </span>`}};exports.Lozenge.styles=Se`
2530
+ `];R0([F({type:String})],exports.InputSelect.prototype,"value",2);R0([pt()],exports.InputSelect.prototype,"query",2);R0([pt()],exports.InputSelect.prototype,"valueLabel",2);R0([pt()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=R0([Q(Y2)],exports.InputSelect);var x8=Object.defineProperty,L8=Object.getOwnPropertyDescriptor,Fi=(r,n,o,c)=>{for(var f=c>1?void 0:c?L8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&x8(n,o,f),f};const Z2=Ee("lozenge"),_8=["neutral","green","orange","red","cyan","purple","sapphire"],z8=["solid","subtle","border"],S8=["small","medium","large"];class V2 extends CustomEvent{constructor(){super("brz-lozenge-delete",{bubbles:!0})}}exports.Lozenge=class extends Ue{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(r){r.stopPropagation(),this.dispatchEvent(new V2)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var r;return this.updateComplete.then(()=>this.checkOverflow()),ee`
2531
+ <brz-tooltip
2532
+ content=${(r=this.defaultSlot[0])==null?void 0:r.textContent}
2533
+ ?disabled=${!this.isOverflowing}
2534
+ is-fixed
2535
+ >
2536
+ <div class="lozenge">
2537
+ ${this.leadingIcon&&ee`
2538
+ <brz-icon size=${this.iconSize} icon=${this.leadingIcon}></brz-icon>
2539
+ `}
2540
+
2541
+ <div class="message"><slot></slot></div>
2542
+
2543
+ ${this.canDelete?ee`
2544
+ <button
2545
+ class="close"
2546
+ ?disabled=${this.disabled}
2547
+ @click=${this.disabled?null:this._handleDeleteClick}
2548
+ >
2549
+ <brz-icon size="8" icon="remove"></brz-icon>
2550
+ </button>
2551
+ `:null}
2552
+ </div>
2553
+ </brz-tooltip>
2554
+ `}};exports.Lozenge.styles=Se`
2535
2555
  :host {
2536
- align-items: center;
2537
- box-sizing: border-box;
2556
+ --brz-lozenge-max-width: calc(3 * var(--brz-spacing-16));
2557
+
2538
2558
  display: inline-flex;
2539
- color: var(--brz-color-white);
2540
- font-size: var(--brz-font-size-sm);
2541
- line-height: var(--brz-line-height-sm);
2559
+ vertical-align: middle;
2542
2560
  }
2543
2561
 
2544
2562
  :host .lozenge {
2545
2563
  align-items: center;
2546
- box-sizing: border-box;
2547
- display: inline-flex;
2548
- padding-left: var(--brz-spacing-2);
2549
- padding-right: var(--brz-spacing-2);
2550
2564
  border-radius: var(--brz-border-radius-default);
2565
+ box-sizing: border-box;
2566
+ column-gap: var(--brz-spacing-1);
2567
+ display: flex;
2568
+ font-size: var(--brz-lozenge-font-size);
2569
+ font-weight: var(--brz-font-weight-medium);
2570
+ height: var(--brz-lozenge-height);
2571
+ line-height: var(--brz-lozenge-line-height);
2572
+ max-width: var(--brz-lozenge-max-width);
2573
+ padding: var(--brz-lozenge-padding-y) var(--brz-lozenge-padding-x);
2574
+ position: relative;
2575
+ }
2576
+
2577
+ :host([no-truncate]) {
2578
+ --brz-lozenge-max-width: auto;
2551
2579
  }
2552
2580
 
2553
2581
  :host([color='green']) .lozenge {
@@ -2622,24 +2650,35 @@ function print() { __p += __j.call(arguments, '') }
2622
2650
  color: var(--brz-color-neutral-0);
2623
2651
  }
2624
2652
 
2625
- :host([size='small']) .lozenge {
2626
- padding-top: var(--brz-spacing-1);
2627
- padding-bottom: var(--brz-spacing-1);
2653
+ :host([size='small']) {
2654
+ --brz-lozenge-font-size: var(--brz-font-size-sm);
2655
+ --brz-lozenge-height: var(--brz-spacing-6);
2656
+ --brz-lozenge-line-height: var(--brz-line-height-sm);
2657
+ --brz-lozenge-padding-x: var(--brz-spacing-2);
2658
+ --brz-lozenge-padding-y: var(--brz-spacing-1);
2628
2659
  }
2629
2660
 
2630
- :host([size='medium']) .lozenge {
2631
- /** TODO: the design uses spacing outside of the spacing tokens for this variant - speak to UX about standardising */
2632
- padding-top: 6px;
2633
- padding-bottom: 6px;
2661
+ :host([size='medium']) {
2662
+ --brz-lozenge-font-size: var(--brz-font-size-sm);
2663
+ --brz-lozenge-height: var(--brz-spacing-7);
2664
+ --brz-lozenge-line-height: var(--brz-line-height-sm);
2665
+ --brz-lozenge-padding-x: var(--brz-spacing-2);
2666
+ --brz-lozenge-padding-y: calc(var(--brz-spacing-3) / 2);
2634
2667
  }
2635
2668
 
2636
- :host([size='large']) .lozenge {
2637
- font-size: var(--brz-font-size);
2638
- padding: var(--brz-spacing-2) var(--brz-spacing-3);
2669
+ :host([size='large']) {
2670
+ --brz-lozenge-font-size: var(--brz-font-size);
2671
+ --brz-lozenge-height: var(--brz-spacing-8);
2672
+ --brz-lozenge-line-height: var(--brz-line-height-lg);
2673
+ --brz-lozenge-padding-x: var(--brz-spacing-3);
2674
+ --brz-lozenge-padding-y: calc(var(--brz-spacing-3) / 2);
2639
2675
  }
2640
2676
 
2641
2677
  .message {
2678
+ overflow: hidden;
2679
+ text-overflow: ellipsis;
2642
2680
  vertical-align: center;
2681
+ white-space: nowrap;
2643
2682
  }
2644
2683
 
2645
2684
  .leading {
@@ -2647,15 +2686,15 @@ function print() { __p += __j.call(arguments, '') }
2647
2686
  }
2648
2687
 
2649
2688
  .close {
2650
- display: inline-flex;
2651
- margin-left: var(--brz-spacing-2);
2652
2689
  background: none;
2653
- color: var(--brz-color-neutral-450);
2654
2690
  border: none;
2655
- padding: 0;
2656
- font: inherit;
2691
+ color: var(--brz-color-neutral-450);
2657
2692
  cursor: pointer;
2693
+ display: inline-flex;
2694
+ font: inherit;
2695
+ margin-left: calc(var(--brz-spacing-3) / 2);
2658
2696
  outline: inherit;
2697
+ padding: 0;
2659
2698
  }
2660
2699
 
2661
2700
  :host([disabled]) .lozenge {
@@ -2666,7 +2705,7 @@ function print() { __p += __j.call(arguments, '') }
2666
2705
  :host(:not([disabled])).close:hover {
2667
2706
  color: var(--brz-color-white);
2668
2707
  }
2669
- `;Ks([F({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Ks([F({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Ks([F({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Ks([F({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Ks([F({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Ks([F({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);exports.Lozenge=Ks([Q(V2)],exports.Lozenge);var w8=Object.defineProperty,x8=Object.getOwnPropertyDescriptor,N0=(r,n,o,c)=>{for(var f=c>1?void 0:c?x8(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&w8(n,o,f),f};const q2=Ee("input-multiselect"),ea="selectAll";exports.InputMultiselect=class extends ti{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}connectedCallback(){super.connectedCallback(),this.keyBindings.Backspace=r=>{var n;!((n=r.target)!=null&&n.value)&&!this.readonly&&this.removeLastValue()},this.keyBindings.Enter=()=>{if(!this.isDropdownOpen()){this.openDropdown();return}const r=this.getItems()[this.selectedIndex];if(r.id===ea){this.toggleAllSelected();return}r&&!r.disabled&&this.toggleSelection(r.value),r&&r.disabled}}firstUpdated(){super.firstUpdated(),this.isDataDriven&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:r,toggled:n}=[...this.getItems()].reduce((o,c)=>c.id===ea?o:{enabled:c.disabled?o.enabled:o.enabled+1,toggled:c.toggled?o.toggled+1:o.toggled},{enabled:0,toggled:0});return r===n}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){window.setTimeout(()=>{this.clearKeySelectedItem(),this.resetSearch(),this.selectedIndex=-1},200)}handleValueChange(){this.syncValueLabels()}handleSelect(r){if(r.detail.item.id===ea){this.toggleAllSelected();return}this.toggleSelection(r.detail.item.value)}toggleAllSelected(){const r=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==ea&&r.push(n.value)}),this.setValue(r)}toggleSelection(r){const n=this.value?[...this.value]:[],o=n.indexOf(r);o>-1&&n.splice(o,1),o===-1&&n.push(r),this.setValue(n)}applyToggleStatusToChildren(){this.getItems().forEach(r=>{r.toggleable=!0;const n=this.value&&this.value.includes(r.value);r.toggled=r.id===ea?this.allSelected:n})}onQueryChange({target:r}){this.isDropdownOpen()||this.openDropdown(),this.query=r==null?void 0:r.value}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?ee`<span class="truncation"
2708
+ `;Fi([F({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Fi([F({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Fi([F({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Fi([F({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Fi([F({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Fi([F({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Fi([F({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Fi([Sg()],exports.Lozenge.prototype,"defaultSlot",2);Fi([Lg(".message")],exports.Lozenge.prototype,"message",2);Fi([pt()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Fi([Q(Z2)],exports.Lozenge);var M8=Object.defineProperty,k8=Object.getOwnPropertyDescriptor,N0=(r,n,o,c)=>{for(var f=c>1?void 0:c?k8(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&M8(n,o,f),f};const G2=Ee("input-multiselect"),ta="selectAll";exports.InputMultiselect=class extends ti{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}connectedCallback(){super.connectedCallback(),this.keyBindings.Backspace=r=>{var n;!((n=r.target)!=null&&n.value)&&!this.readonly&&this.removeLastValue()},this.keyBindings.Enter=()=>{if(!this.isDropdownOpen()){this.openDropdown();return}const r=this.getItems()[this.selectedIndex];if(r.id===ta){this.toggleAllSelected();return}r&&!r.disabled&&this.toggleSelection(r.value),r&&r.disabled}}firstUpdated(){super.firstUpdated(),this.isDataDriven&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:r,toggled:n}=[...this.getItems()].reduce((o,c)=>c.id===ta?o:{enabled:c.disabled?o.enabled:o.enabled+1,toggled:c.toggled?o.toggled+1:o.toggled},{enabled:0,toggled:0});return r===n}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){window.setTimeout(()=>{this.clearKeySelectedItem(),this.resetSearch(),this.selectedIndex=-1},200)}handleValueChange(){this.syncValueLabels()}handleSelect(r){if(r.detail.item.id===ta){this.toggleAllSelected();return}this.toggleSelection(r.detail.item.value)}toggleAllSelected(){const r=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==ta&&r.push(n.value)}),this.setValue(r)}toggleSelection(r){const n=this.value?[...this.value]:[],o=n.indexOf(r);o>-1&&n.splice(o,1),o===-1&&n.push(r),this.setValue(n)}applyToggleStatusToChildren(){this.getItems().forEach(r=>{r.toggleable=!0;const n=this.value&&this.value.includes(r.value);r.toggled=r.id===ta?this.allSelected:n})}onQueryChange({target:r}){this.isDropdownOpen()||this.openDropdown(),this.query=r==null?void 0:r.value}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?ee`<span class="truncation"
2670
2709
  >+${this.value.length-this.truncateValuesAfter} more</span
2671
2710
  >`:null}renderReferenceElement(){return this.applyToggleStatusToChildren(),this.search(),ee` <div
2672
2711
  class="wrapper"
@@ -2689,7 +2728,7 @@ function print() { __p += __j.call(arguments, '') }
2689
2728
  placeholder="${Vt(this.placeholder)}"
2690
2729
  class="search-area"
2691
2730
  />`:null}
2692
- </div>`}get selectAllOption(){return{id:ea,value:ea,label:"Select all",toggleable:!0,toggled:this.allSelected}}get selectAllOptionElement(){const{id:r,value:n,label:o,toggleable:c,toggled:f}=this.selectAllOption;return ee`
2731
+ </div>`}get selectAllOption(){return{id:ta,value:ta,label:"Select all",toggleable:!0,toggled:this.allSelected}}get selectAllOptionElement(){const{id:r,value:n,label:o,toggleable:c,toggled:f}=this.selectAllOption;return ee`
2693
2732
  <brz-menu-item
2694
2733
  id=${r}
2695
2734
  ?toggleable=${c}
@@ -2701,7 +2740,7 @@ function print() { __p += __j.call(arguments, '') }
2701
2740
  `}renderDropdownContent(){return ee`
2702
2741
  ${this.hasQueryResults?null:this.renderNoResultsMessage()}
2703
2742
  ${this.isDataDriven?this.renderOptionsData():ee` ${this.selectAllOptionElement} <slot></slot> `}
2704
- `}removeLastValue(){var r;(r=this.value)==null||r.pop(),this.handleValueChange()}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{if(!r){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}getItems(){var n,o;const r=super.getItems();return this.isDataDriven?r:[((n=this.renderRoot)==null?void 0:n.querySelector(`brz-menu-item#${ea}`))||((o=this.renderRoot)==null?void 0:o.querySelector(`sp-menu-item#${ea}`))||{},...r]}syncValueLabels(){const r=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(n=>({label:this.getItemLabel(r.find(o=>o.value===n)),value:n})):[],this.render()}};exports.InputMultiselect.styles=[...ti.styles,Se`
2743
+ `}removeLastValue(){var r;(r=this.value)==null||r.pop(),this.handleValueChange()}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const r=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(o=>{if(!r){o.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(o);c&&(this.hasResults=!0),o.hidden=!c})}getItems(){var n,o;const r=super.getItems();return this.isDataDriven?r:[((n=this.renderRoot)==null?void 0:n.querySelector(`brz-menu-item#${ta}`))||((o=this.renderRoot)==null?void 0:o.querySelector(`sp-menu-item#${ta}`))||{},...r]}syncValueLabels(){const r=[...this.getItems()];this.valueLabels=this.value?this.value.slice(0,this.truncateValuesAfter).map(n=>({label:this.getItemLabel(r.find(o=>o.value===n)),value:n})):[],this.render()}};exports.InputMultiselect.styles=[...ti.styles,Se`
2705
2744
  .wrapper {
2706
2745
  position: relative;
2707
2746
  min-height: 36px;
@@ -2756,19 +2795,19 @@ function print() { __p += __j.call(arguments, '') }
2756
2795
  padding: var(--brz-spacing-1);
2757
2796
  color: var(--input-placeholder-font-color);
2758
2797
  }
2759
- `];N0([F({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);N0([F({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);N0([F({type:Array})],exports.InputMultiselect.prototype,"value",2);N0([gt()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=N0([Q(q2)],exports.InputMultiselect);//! moment.js
2798
+ `];N0([F({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);N0([F({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);N0([F({type:Array})],exports.InputMultiselect.prototype,"value",2);N0([pt()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=N0([Q(G2)],exports.InputMultiselect);//! moment.js
2760
2799
  //! version : 2.29.4
2761
2800
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
2762
2801
  //! license : MIT
2763
2802
  //! momentjs.com
2764
- var j2;function ze(){return j2.apply(null,arguments)}function L8(r){j2=r}function Hi(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function Zs(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Tt(r,n){return Object.prototype.hasOwnProperty.call(r,n)}function Qd(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var n;for(n in r)if(Tt(r,n))return!1;return!0}function En(r){return r===void 0}function sa(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function $0(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function K2(r,n){var o=[],c,f=r.length;for(c=0;c<f;++c)o.push(n(r[c],c));return o}function Va(r,n){for(var o in n)Tt(n,o)&&(r[o]=n[o]);return Tt(n,"toString")&&(r.toString=n.toString),Tt(n,"valueOf")&&(r.valueOf=n.valueOf),r}function _o(r,n,o,c){return C4(r,n,o,c,!0).utc()}function _8(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ht(r){return r._pf==null&&(r._pf=_8()),r._pf}var zd;Array.prototype.some?zd=Array.prototype.some:zd=function(r){var n=Object(this),o=n.length>>>0,c;for(c=0;c<o;c++)if(c in n&&r.call(this,n[c],c,n))return!0;return!1};function Jd(r){if(r._isValid==null){var n=ht(r),o=zd.call(n.parsedDateParts,function(f){return f!=null}),c=!isNaN(r._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&o);if(r._strict&&(c=c&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=c;else return c}return r._isValid}function B1(r){var n=_o(NaN);return r!=null?Va(ht(n),r):ht(n).userInvalidated=!0,n}var Ap=ze.momentProperties=[],hd=!1;function eh(r,n){var o,c,f,g=Ap.length;if(En(n._isAMomentObject)||(r._isAMomentObject=n._isAMomentObject),En(n._i)||(r._i=n._i),En(n._f)||(r._f=n._f),En(n._l)||(r._l=n._l),En(n._strict)||(r._strict=n._strict),En(n._tzm)||(r._tzm=n._tzm),En(n._isUTC)||(r._isUTC=n._isUTC),En(n._offset)||(r._offset=n._offset),En(n._pf)||(r._pf=ht(n)),En(n._locale)||(r._locale=n._locale),g>0)for(o=0;o<g;o++)c=Ap[o],f=n[c],En(f)||(r[c]=f);return r}function H0(r){eh(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),hd===!1&&(hd=!0,ze.updateOffset(this),hd=!1)}function Bi(r){return r instanceof H0||r!=null&&r._isAMomentObject!=null}function X2(r){ze.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function Ci(r,n){var o=!0;return Va(function(){if(ze.deprecationHandler!=null&&ze.deprecationHandler(null,r),o){var c=[],f,g,b,P=arguments.length;for(g=0;g<P;g++){if(f="",typeof arguments[g]=="object"){f+=`
2765
- [`+g+"] ";for(b in arguments[0])Tt(arguments[0],b)&&(f+=b+": "+arguments[0][b]+", ");f=f.slice(0,-2)}else f=arguments[g];c.push(f)}X2(r+`
2803
+ var q2;function ze(){return q2.apply(null,arguments)}function O8(r){q2=r}function Hi(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function Vs(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function Tt(r,n){return Object.prototype.hasOwnProperty.call(r,n)}function Qd(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var n;for(n in r)if(Tt(r,n))return!1;return!0}function En(r){return r===void 0}function la(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function $0(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function j2(r,n){var o=[],c,f=r.length;for(c=0;c<f;++c)o.push(n(r[c],c));return o}function ja(r,n){for(var o in n)Tt(n,o)&&(r[o]=n[o]);return Tt(n,"toString")&&(r.toString=n.toString),Tt(n,"valueOf")&&(r.valueOf=n.valueOf),r}function zo(r,n,o,c){return y4(r,n,o,c,!0).utc()}function T8(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function ht(r){return r._pf==null&&(r._pf=T8()),r._pf}var _d;Array.prototype.some?_d=Array.prototype.some:_d=function(r){var n=Object(this),o=n.length>>>0,c;for(c=0;c<o;c++)if(c in n&&r.call(this,n[c],c,n))return!0;return!1};function Jd(r){if(r._isValid==null){var n=ht(r),o=_d.call(n.parsedDateParts,function(f){return f!=null}),c=!isNaN(r._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&o);if(r._strict&&(c=c&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(r))r._isValid=c;else return c}return r._isValid}function B1(r){var n=zo(NaN);return r!=null?ja(ht(n),r):ht(n).userInvalidated=!0,n}var Pp=ze.momentProperties=[],dd=!1;function eh(r,n){var o,c,f,p=Pp.length;if(En(n._isAMomentObject)||(r._isAMomentObject=n._isAMomentObject),En(n._i)||(r._i=n._i),En(n._f)||(r._f=n._f),En(n._l)||(r._l=n._l),En(n._strict)||(r._strict=n._strict),En(n._tzm)||(r._tzm=n._tzm),En(n._isUTC)||(r._isUTC=n._isUTC),En(n._offset)||(r._offset=n._offset),En(n._pf)||(r._pf=ht(n)),En(n._locale)||(r._locale=n._locale),p>0)for(o=0;o<p;o++)c=Pp[o],f=n[c],En(f)||(r[c]=f);return r}function H0(r){eh(this,r),this._d=new Date(r._d!=null?r._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),dd===!1&&(dd=!0,ze.updateOffset(this),dd=!1)}function Bi(r){return r instanceof H0||r!=null&&r._isAMomentObject!=null}function K2(r){ze.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+r)}function Ci(r,n){var o=!0;return ja(function(){if(ze.deprecationHandler!=null&&ze.deprecationHandler(null,r),o){var c=[],f,p,b,k=arguments.length;for(p=0;p<k;p++){if(f="",typeof arguments[p]=="object"){f+=`
2804
+ [`+p+"] ";for(b in arguments[0])Tt(arguments[0],b)&&(f+=b+": "+arguments[0][b]+", ");f=f.slice(0,-2)}else f=arguments[p];c.push(f)}K2(r+`
2766
2805
  Arguments: `+Array.prototype.slice.call(c).join("")+`
2767
- `+new Error().stack),o=!1}return n.apply(this,arguments)},n)}var Ep={};function Q2(r,n){ze.deprecationHandler!=null&&ze.deprecationHandler(r,n),Ep[r]||(X2(n),Ep[r]=!0)}ze.suppressDeprecationWarnings=!1;ze.deprecationHandler=null;function zo(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function z8(r){var n,o;for(o in r)Tt(r,o)&&(n=r[o],zo(n)?this[o]=n:this["_"+o]=n);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Sd(r,n){var o=Va({},r),c;for(c in n)Tt(n,c)&&(Zs(r[c])&&Zs(n[c])?(o[c]={},Va(o[c],r[c]),Va(o[c],n[c])):n[c]!=null?o[c]=n[c]:delete o[c]);for(c in r)Tt(r,c)&&!Tt(n,c)&&Zs(r[c])&&(o[c]=Va({},o[c]));return o}function th(r){r!=null&&this.set(r)}var Md;Object.keys?Md=Object.keys:Md=function(r){var n,o=[];for(n in r)Tt(r,n)&&o.push(n);return o};var S8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M8(r,n,o){var c=this._calendar[r]||this._calendar.sameElse;return zo(c)?c.call(n,o):c}function yo(r,n,o){var c=""+Math.abs(r),f=n-c.length,g=r>=0;return(g?o?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+c}var rh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,d1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,pd={},ru={};function Ve(r,n,o,c){var f=c;typeof c=="string"&&(f=function(){return this[c]()}),r&&(ru[r]=f),n&&(ru[n[0]]=function(){return yo(f.apply(this,arguments),n[1],n[2])}),o&&(ru[o]=function(){return this.localeData().ordinal(f.apply(this,arguments),r)})}function k8(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function O8(r){var n=r.match(rh),o,c;for(o=0,c=n.length;o<c;o++)ru[n[o]]?n[o]=ru[n[o]]:n[o]=k8(n[o]);return function(f){var g="",b;for(b=0;b<c;b++)g+=zo(n[b])?n[b].call(f,r):n[b];return g}}function v1(r,n){return r.isValid()?(n=J2(n,r.localeData()),pd[n]=pd[n]||O8(n),pd[n](r)):r.localeData().invalidDate()}function J2(r,n){var o=5;function c(f){return n.longDateFormat(f)||f}for(d1.lastIndex=0;o>=0&&d1.test(r);)r=r.replace(d1,c),d1.lastIndex=0,o-=1;return r}var T8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function P8(r){var n=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return n||!o?n:(this._longDateFormat[r]=o.match(rh).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[r])}var A8="Invalid date";function E8(){return this._invalidDate}var I8="%d",D8=/\d{1,2}/;function R8(r){return this._ordinal.replace("%d",r)}var N8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $8(r,n,o,c){var f=this._relativeTime[o];return zo(f)?f(r,n,o,c):f.replace(/%d/i,r)}function H8(r,n){var o=this._relativeTime[r>0?"future":"past"];return zo(o)?o(n):o.replace(/%s/i,n)}var C0={};function cn(r,n){var o=r.toLowerCase();C0[o]=C0[o+"s"]=C0[n]=r}function wi(r){return typeof r=="string"?C0[r]||C0[r.toLowerCase()]:void 0}function nh(r){var n={},o,c;for(c in r)Tt(r,c)&&(o=wi(c),o&&(n[o]=r[c]));return n}var e4={};function fn(r,n){e4[r]=n}function B8(r){var n=[],o;for(o in r)Tt(r,o)&&n.push({unit:o,priority:e4[o]});return n.sort(function(c,f){return c.priority-f.priority}),n}function F1(r){return r%4===0&&r%100!==0||r%400===0}function vi(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function mt(r){var n=+r,o=0;return n!==0&&isFinite(n)&&(o=vi(n)),o}function pu(r,n){return function(o){return o!=null?(t4(this,r,o),ze.updateOffset(this,n),this):z1(this,r)}}function z1(r,n){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+n]():NaN}function t4(r,n,o){r.isValid()&&!isNaN(o)&&(n==="FullYear"&&F1(r.year())&&r.month()===1&&r.date()===29?(o=mt(o),r._d["set"+(r._isUTC?"UTC":"")+n](o,r.month(),G1(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+n](o))}function F8(r){return r=wi(r),zo(this[r])?this[r]():this}function W8(r,n){if(typeof r=="object"){r=nh(r);var o=B8(r),c,f=o.length;for(c=0;c<f;c++)this[o[c].unit](r[o[c].unit])}else if(r=wi(r),zo(this[r]))return this[r](n);return this}var r4=/\d/,ri=/\d\d/,n4=/\d{3}/,ih=/\d{4}/,W1=/[+-]?\d{6}/,Jt=/\d\d?/,i4=/\d\d\d\d?/,o4=/\d\d\d\d\d\d?/,U1=/\d{1,3}/,oh=/\d{1,4}/,Y1=/[+-]?\d{1,6}/,gu=/\d+/,Z1=/[+-]?\d+/,U8=/Z|[+-]\d\d:?\d\d/gi,V1=/Z|[+-]\d\d(?::?\d\d)?/gi,Y8=/[+-]?\d+(\.\d{1,3})?/,B0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,S1;S1={};function Oe(r,n,o){S1[r]=zo(n)?n:function(c,f){return c&&o?o:n}}function Z8(r,n){return Tt(S1,r)?S1[r](n._strict,n._locale):new RegExp(V8(r))}function V8(r){return Qn(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,o,c,f,g){return o||c||f||g}))}function Qn(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var kd={};function Yt(r,n){var o,c=n,f;for(typeof r=="string"&&(r=[r]),sa(n)&&(c=function(g,b){b[n]=mt(g)}),f=r.length,o=0;o<f;o++)kd[r[o]]=c}function F0(r,n){Yt(r,function(o,c,f,g){f._w=f._w||{},n(o,f._w,f,g)})}function G8(r,n,o){n!=null&&Tt(kd,r)&&kd[r](n,o._a,o,r)}var ln=0,ia=1,vo=2,Nr=3,Ri=4,oa=5,Us=6,q8=7,j8=8;function K8(r,n){return(r%n+n)%n}var yr;Array.prototype.indexOf?yr=Array.prototype.indexOf:yr=function(r){var n;for(n=0;n<this.length;++n)if(this[n]===r)return n;return-1};function G1(r,n){if(isNaN(r)||isNaN(n))return NaN;var o=K8(n,12);return r+=(n-o)/12,o===1?F1(r)?29:28:31-o%7%2}Ve("M",["MM",2],"Mo",function(){return this.month()+1});Ve("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});Ve("MMMM",0,0,function(r){return this.localeData().months(this,r)});cn("month","M");fn("month",8);Oe("M",Jt);Oe("MM",Jt,ri);Oe("MMM",function(r,n){return n.monthsShortRegex(r)});Oe("MMMM",function(r,n){return n.monthsRegex(r)});Yt(["M","MM"],function(r,n){n[ia]=mt(r)-1});Yt(["MMM","MMMM"],function(r,n,o,c){var f=o._locale.monthsParse(r,c,o._strict);f!=null?n[ia]=f:ht(o).invalidMonth=r});var X8="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),a4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),s4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Q8=B0,J8=B0;function eb(r,n){return r?Hi(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||s4).test(n)?"format":"standalone"][r.month()]:Hi(this._months)?this._months:this._months.standalone}function tb(r,n){return r?Hi(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[s4.test(n)?"format":"standalone"][r.month()]:Hi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function rb(r,n,o){var c,f,g,b=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)g=_o([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(g,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(g,"").toLocaleLowerCase();return o?n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null):(f=yr.call(this._longMonthsParse,b),f!==-1?f:null):n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:(f=yr.call(this._longMonthsParse,b),f!==-1?f:null)):(f=yr.call(this._longMonthsParse,b),f!==-1?f:(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null))}function nb(r,n,o){var c,f,g;if(this._monthsParseExact)return rb.call(this,r,n,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(f=_o([2e3,c]),o&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),!o&&!this._monthsParse[c]&&(g="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[c]=new RegExp(g.replace(".",""),"i")),o&&n==="MMMM"&&this._longMonthsParse[c].test(r))return c;if(o&&n==="MMM"&&this._shortMonthsParse[c].test(r))return c;if(!o&&this._monthsParse[c].test(r))return c}}function l4(r,n){var o;if(!r.isValid())return r;if(typeof n=="string"){if(/^\d+$/.test(n))n=mt(n);else if(n=r.localeData().monthsParse(n),!sa(n))return r}return o=Math.min(r.date(),G1(r.year(),n)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](n,o),r}function u4(r){return r!=null?(l4(this,r),ze.updateOffset(this,!0),this):z1(this,"Month")}function ib(){return G1(this.year(),this.month())}function ob(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||c4.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Tt(this,"_monthsShortRegex")||(this._monthsShortRegex=Q8),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function ab(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||c4.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Tt(this,"_monthsRegex")||(this._monthsRegex=J8),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function c4(){function r(b,P){return P.length-b.length}var n=[],o=[],c=[],f,g;for(f=0;f<12;f++)g=_o([2e3,f]),n.push(this.monthsShort(g,"")),o.push(this.months(g,"")),c.push(this.months(g,"")),c.push(this.monthsShort(g,""));for(n.sort(r),o.sort(r),c.sort(r),f=0;f<12;f++)n[f]=Qn(n[f]),o[f]=Qn(o[f]);for(f=0;f<24;f++)c[f]=Qn(c[f]);this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}Ve("Y",0,0,function(){var r=this.year();return r<=9999?yo(r,4):"+"+r});Ve(0,["YY",2],0,function(){return this.year()%100});Ve(0,["YYYY",4],0,"year");Ve(0,["YYYYY",5],0,"year");Ve(0,["YYYYYY",6,!0],0,"year");cn("year","y");fn("year",1);Oe("Y",Z1);Oe("YY",Jt,ri);Oe("YYYY",oh,ih);Oe("YYYYY",Y1,W1);Oe("YYYYYY",Y1,W1);Yt(["YYYYY","YYYYYY"],ln);Yt("YYYY",function(r,n){n[ln]=r.length===2?ze.parseTwoDigitYear(r):mt(r)});Yt("YY",function(r,n){n[ln]=ze.parseTwoDigitYear(r)});Yt("Y",function(r,n){n[ln]=parseInt(r,10)});function w0(r){return F1(r)?366:365}ze.parseTwoDigitYear=function(r){return mt(r)+(mt(r)>68?1900:2e3)};var f4=pu("FullYear",!0);function sb(){return F1(this.year())}function lb(r,n,o,c,f,g,b){var P;return r<100&&r>=0?(P=new Date(r+400,n,o,c,f,g,b),isFinite(P.getFullYear())&&P.setFullYear(r)):P=new Date(r,n,o,c,f,g,b),P}function k0(r){var n,o;return r<100&&r>=0?(o=Array.prototype.slice.call(arguments),o[0]=r+400,n=new Date(Date.UTC.apply(null,o)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(r)):n=new Date(Date.UTC.apply(null,arguments)),n}function M1(r,n,o){var c=7+n-o,f=(7+k0(r,0,c).getUTCDay()-n)%7;return-f+c-1}function d4(r,n,o,c,f){var g=(7+o-c)%7,b=M1(r,c,f),P=1+7*(n-1)+g+b,S,k;return P<=0?(S=r-1,k=w0(S)+P):P>w0(r)?(S=r+1,k=P-w0(r)):(S=r,k=P),{year:S,dayOfYear:k}}function O0(r,n,o){var c=M1(r.year(),n,o),f=Math.floor((r.dayOfYear()-c-1)/7)+1,g,b;return f<1?(b=r.year()-1,g=f+aa(b,n,o)):f>aa(r.year(),n,o)?(g=f-aa(r.year(),n,o),b=r.year()+1):(b=r.year(),g=f),{week:g,year:b}}function aa(r,n,o){var c=M1(r,n,o),f=M1(r+1,n,o);return(w0(r)-c+f)/7}Ve("w",["ww",2],"wo","week");Ve("W",["WW",2],"Wo","isoWeek");cn("week","w");cn("isoWeek","W");fn("week",5);fn("isoWeek",5);Oe("w",Jt);Oe("ww",Jt,ri);Oe("W",Jt);Oe("WW",Jt,ri);F0(["w","ww","W","WW"],function(r,n,o,c){n[c.substr(0,1)]=mt(r)});function ub(r){return O0(r,this._week.dow,this._week.doy).week}var cb={dow:0,doy:6};function fb(){return this._week.dow}function db(){return this._week.doy}function hb(r){var n=this.localeData().week(this);return r==null?n:this.add((r-n)*7,"d")}function pb(r){var n=O0(this,1,4).week;return r==null?n:this.add((r-n)*7,"d")}Ve("d",0,"do","day");Ve("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});Ve("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});Ve("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});Ve("e",0,0,"weekday");Ve("E",0,0,"isoWeekday");cn("day","d");cn("weekday","e");cn("isoWeekday","E");fn("day",11);fn("weekday",11);fn("isoWeekday",11);Oe("d",Jt);Oe("e",Jt);Oe("E",Jt);Oe("dd",function(r,n){return n.weekdaysMinRegex(r)});Oe("ddd",function(r,n){return n.weekdaysShortRegex(r)});Oe("dddd",function(r,n){return n.weekdaysRegex(r)});F0(["dd","ddd","dddd"],function(r,n,o,c){var f=o._locale.weekdaysParse(r,c,o._strict);f!=null?n.d=f:ht(o).invalidWeekday=r});F0(["d","e","E"],function(r,n,o,c){n[c]=mt(r)});function gb(r,n){return typeof r!="string"?r:isNaN(r)?(r=n.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function vb(r,n){return typeof r=="string"?n.weekdaysParse(r)%7||7:isNaN(r)?null:r}function ah(r,n){return r.slice(n,7).concat(r.slice(0,n))}var bb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),h4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),mb="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),yb=B0,Cb=B0,wb=B0;function xb(r,n){var o=Hi(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return r===!0?ah(o,this._week.dow):r?o[r.day()]:o}function Lb(r){return r===!0?ah(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function _b(r){return r===!0?ah(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function zb(r,n,o){var c,f,g,b=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)g=_o([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(g,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(g,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(g,"").toLocaleLowerCase();return o?n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1?f:null):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null):(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null):n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1||(f=yr.call(this._shortWeekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):(f=yr.call(this._minWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null))}function Sb(r,n,o){var c,f,g;if(this._weekdaysParseExact)return zb.call(this,r,n,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(f=_o([2e3,1]).day(c),o&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(f,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(f,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(f,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(g="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[c]=new RegExp(g.replace(".",""),"i")),o&&n==="dddd"&&this._fullWeekdaysParse[c].test(r))return c;if(o&&n==="ddd"&&this._shortWeekdaysParse[c].test(r))return c;if(o&&n==="dd"&&this._minWeekdaysParse[c].test(r))return c;if(!o&&this._weekdaysParse[c].test(r))return c}}function Mb(r){if(!this.isValid())return r!=null?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=gb(r,this.localeData()),this.add(r-n,"d")):n}function kb(r){if(!this.isValid())return r!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return r==null?n:this.add(r-n,"d")}function Ob(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var n=vb(r,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function Tb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Tt(this,"_weekdaysRegex")||(this._weekdaysRegex=yb),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Pb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Tt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cb),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ab(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Tt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=wb),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sh(){function r(I,U){return U.length-I.length}var n=[],o=[],c=[],f=[],g,b,P,S,k;for(g=0;g<7;g++)b=_o([2e3,1]).day(g),P=Qn(this.weekdaysMin(b,"")),S=Qn(this.weekdaysShort(b,"")),k=Qn(this.weekdays(b,"")),n.push(P),o.push(S),c.push(k),f.push(P),f.push(S),f.push(k);n.sort(r),o.sort(r),c.sort(r),f.sort(r),this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function lh(){return this.hours()%12||12}function Eb(){return this.hours()||24}Ve("H",["HH",2],0,"hour");Ve("h",["hh",2],0,lh);Ve("k",["kk",2],0,Eb);Ve("hmm",0,0,function(){return""+lh.apply(this)+yo(this.minutes(),2)});Ve("hmmss",0,0,function(){return""+lh.apply(this)+yo(this.minutes(),2)+yo(this.seconds(),2)});Ve("Hmm",0,0,function(){return""+this.hours()+yo(this.minutes(),2)});Ve("Hmmss",0,0,function(){return""+this.hours()+yo(this.minutes(),2)+yo(this.seconds(),2)});function p4(r,n){Ve(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}p4("a",!0);p4("A",!1);cn("hour","h");fn("hour",13);function g4(r,n){return n._meridiemParse}Oe("a",g4);Oe("A",g4);Oe("H",Jt);Oe("h",Jt);Oe("k",Jt);Oe("HH",Jt,ri);Oe("hh",Jt,ri);Oe("kk",Jt,ri);Oe("hmm",i4);Oe("hmmss",o4);Oe("Hmm",i4);Oe("Hmmss",o4);Yt(["H","HH"],Nr);Yt(["k","kk"],function(r,n,o){var c=mt(r);n[Nr]=c===24?0:c});Yt(["a","A"],function(r,n,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Yt(["h","hh"],function(r,n,o){n[Nr]=mt(r),ht(o).bigHour=!0});Yt("hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c)),ht(o).bigHour=!0});Yt("hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c,2)),n[oa]=mt(r.substr(f)),ht(o).bigHour=!0});Yt("Hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c))});Yt("Hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c,2)),n[oa]=mt(r.substr(f))});function Ib(r){return(r+"").toLowerCase().charAt(0)==="p"}var Db=/[ap]\.?m?\.?/i,Rb=pu("Hours",!0);function Nb(r,n,o){return r>11?o?"pm":"PM":o?"am":"AM"}var v4={calendar:S8,longDateFormat:T8,invalidDate:A8,ordinal:I8,dayOfMonthOrdinalParse:D8,relativeTime:N8,months:X8,monthsShort:a4,week:cb,weekdays:bb,weekdaysMin:mb,weekdaysShort:h4,meridiemParse:Db},nr={},p0={},T0;function $b(r,n){var o,c=Math.min(r.length,n.length);for(o=0;o<c;o+=1)if(r[o]!==n[o])return o;return c}function Ip(r){return r&&r.toLowerCase().replace("_","-")}function Hb(r){for(var n=0,o,c,f,g;n<r.length;){for(g=Ip(r[n]).split("-"),o=g.length,c=Ip(r[n+1]),c=c?c.split("-"):null;o>0;){if(f=q1(g.slice(0,o).join("-")),f)return f;if(c&&c.length>=o&&$b(g,c)>=o-1)break;o--}n++}return T0}function Bb(r){return r.match("^[^/\\\\]*$")!=null}function q1(r){var n=null,o;if(nr[r]===void 0&&typeof module!="undefined"&&module&&module.exports&&Bb(r))try{n=T0._abbr,o=require,o("./locale/"+r),qa(n)}catch{nr[r]=null}return nr[r]}function qa(r,n){var o;return r&&(En(n)?o=la(r):o=uh(r,n),o?T0=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),T0._abbr}function uh(r,n){if(n!==null){var o,c=v4;if(n.abbr=r,nr[r]!=null)Q2("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=nr[r]._config;else if(n.parentLocale!=null)if(nr[n.parentLocale]!=null)c=nr[n.parentLocale]._config;else if(o=q1(n.parentLocale),o!=null)c=o._config;else return p0[n.parentLocale]||(p0[n.parentLocale]=[]),p0[n.parentLocale].push({name:r,config:n}),null;return nr[r]=new th(Sd(c,n)),p0[r]&&p0[r].forEach(function(f){uh(f.name,f.config)}),qa(r),nr[r]}else return delete nr[r],null}function Fb(r,n){if(n!=null){var o,c,f=v4;nr[r]!=null&&nr[r].parentLocale!=null?nr[r].set(Sd(nr[r]._config,n)):(c=q1(r),c!=null&&(f=c._config),n=Sd(f,n),c==null&&(n.abbr=r),o=new th(n),o.parentLocale=nr[r],nr[r]=o),qa(r)}else nr[r]!=null&&(nr[r].parentLocale!=null?(nr[r]=nr[r].parentLocale,r===qa()&&qa(r)):nr[r]!=null&&delete nr[r]);return nr[r]}function la(r){var n;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return T0;if(!Hi(r)){if(n=q1(r),n)return n;r=[r]}return Hb(r)}function Wb(){return Md(nr)}function ch(r){var n,o=r._a;return o&&ht(r).overflow===-2&&(n=o[ia]<0||o[ia]>11?ia:o[vo]<1||o[vo]>G1(o[ln],o[ia])?vo:o[Nr]<0||o[Nr]>24||o[Nr]===24&&(o[Ri]!==0||o[oa]!==0||o[Us]!==0)?Nr:o[Ri]<0||o[Ri]>59?Ri:o[oa]<0||o[oa]>59?oa:o[Us]<0||o[Us]>999?Us:-1,ht(r)._overflowDayOfYear&&(n<ln||n>vo)&&(n=vo),ht(r)._overflowWeeks&&n===-1&&(n=q8),ht(r)._overflowWeekday&&n===-1&&(n=j8),ht(r).overflow=n),r}var Ub=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yb=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zb=/Z|[+-]\d\d(?::?\d\d)?/,h1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],gd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Vb=/^\/?Date\((-?\d+)/i,Gb=/^(?:(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{4}))$/,qb={UT:0,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 b4(r){var n,o,c=r._i,f=Ub.exec(c)||Yb.exec(c),g,b,P,S,k=h1.length,I=gd.length;if(f){for(ht(r).iso=!0,n=0,o=k;n<o;n++)if(h1[n][1].exec(f[1])){b=h1[n][0],g=h1[n][2]!==!1;break}if(b==null){r._isValid=!1;return}if(f[3]){for(n=0,o=I;n<o;n++)if(gd[n][1].exec(f[3])){P=(f[2]||" ")+gd[n][0];break}if(P==null){r._isValid=!1;return}}if(!g&&P!=null){r._isValid=!1;return}if(f[4])if(Zb.exec(f[4]))S="Z";else{r._isValid=!1;return}r._f=b+(P||"")+(S||""),dh(r)}else r._isValid=!1}function jb(r,n,o,c,f,g){var b=[Kb(r),a4.indexOf(n),parseInt(o,10),parseInt(c,10),parseInt(f,10)];return g&&b.push(parseInt(g,10)),b}function Kb(r){var n=parseInt(r,10);return n<=49?2e3+n:n<=999?1900+n:n}function Xb(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Qb(r,n,o){if(r){var c=h4.indexOf(r),f=new Date(n[0],n[1],n[2]).getDay();if(c!==f)return ht(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function Jb(r,n,o){if(r)return qb[r];if(n)return 0;var c=parseInt(o,10),f=c%100,g=(c-f)/100;return g*60+f}function m4(r){var n=Gb.exec(Xb(r._i)),o;if(n){if(o=jb(n[4],n[3],n[2],n[5],n[6],n[7]),!Qb(n[1],o,r))return;r._a=o,r._tzm=Jb(n[8],n[9],n[10]),r._d=k0.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),ht(r).rfc2822=!0}else r._isValid=!1}function em(r){var n=Vb.exec(r._i);if(n!==null){r._d=new Date(+n[1]);return}if(b4(r),r._isValid===!1)delete r._isValid;else return;if(m4(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:ze.createFromInputFallback(r)}ze.createFromInputFallback=Ci("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function Jl(r,n,o){return r!=null?r:n!=null?n:o}function tm(r){var n=new Date(ze.now());return r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function fh(r){var n,o,c=[],f,g,b;if(!r._d){for(f=tm(r),r._w&&r._a[vo]==null&&r._a[ia]==null&&rm(r),r._dayOfYear!=null&&(b=Jl(r._a[ln],f[ln]),(r._dayOfYear>w0(b)||r._dayOfYear===0)&&(ht(r)._overflowDayOfYear=!0),o=k0(b,0,r._dayOfYear),r._a[ia]=o.getUTCMonth(),r._a[vo]=o.getUTCDate()),n=0;n<3&&r._a[n]==null;++n)r._a[n]=c[n]=f[n];for(;n<7;n++)r._a[n]=c[n]=r._a[n]==null?n===2?1:0:r._a[n];r._a[Nr]===24&&r._a[Ri]===0&&r._a[oa]===0&&r._a[Us]===0&&(r._nextDay=!0,r._a[Nr]=0),r._d=(r._useUTC?k0:lb).apply(null,c),g=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Nr]=24),r._w&&typeof r._w.d!="undefined"&&r._w.d!==g&&(ht(r).weekdayMismatch=!0)}}function rm(r){var n,o,c,f,g,b,P,S,k;n=r._w,n.GG!=null||n.W!=null||n.E!=null?(g=1,b=4,o=Jl(n.GG,r._a[ln],O0(Qt(),1,4).year),c=Jl(n.W,1),f=Jl(n.E,1),(f<1||f>7)&&(S=!0)):(g=r._locale._week.dow,b=r._locale._week.doy,k=O0(Qt(),g,b),o=Jl(n.gg,r._a[ln],k.year),c=Jl(n.w,k.week),n.d!=null?(f=n.d,(f<0||f>6)&&(S=!0)):n.e!=null?(f=n.e+g,(n.e<0||n.e>6)&&(S=!0)):f=g),c<1||c>aa(o,g,b)?ht(r)._overflowWeeks=!0:S!=null?ht(r)._overflowWeekday=!0:(P=d4(o,c,f,g,b),r._a[ln]=P.year,r._dayOfYear=P.dayOfYear)}ze.ISO_8601=function(){};ze.RFC_2822=function(){};function dh(r){if(r._f===ze.ISO_8601){b4(r);return}if(r._f===ze.RFC_2822){m4(r);return}r._a=[],ht(r).empty=!0;var n=""+r._i,o,c,f,g,b,P=n.length,S=0,k,I;for(f=J2(r._f,r._locale).match(rh)||[],I=f.length,o=0;o<I;o++)g=f[o],c=(n.match(Z8(g,r))||[])[0],c&&(b=n.substr(0,n.indexOf(c)),b.length>0&&ht(r).unusedInput.push(b),n=n.slice(n.indexOf(c)+c.length),S+=c.length),ru[g]?(c?ht(r).empty=!1:ht(r).unusedTokens.push(g),G8(g,c,r)):r._strict&&!c&&ht(r).unusedTokens.push(g);ht(r).charsLeftOver=P-S,n.length>0&&ht(r).unusedInput.push(n),r._a[Nr]<=12&&ht(r).bigHour===!0&&r._a[Nr]>0&&(ht(r).bigHour=void 0),ht(r).parsedDateParts=r._a.slice(0),ht(r).meridiem=r._meridiem,r._a[Nr]=nm(r._locale,r._a[Nr],r._meridiem),k=ht(r).era,k!==null&&(r._a[ln]=r._locale.erasConvertYear(k,r._a[ln])),fh(r),ch(r)}function nm(r,n,o){var c;return o==null?n:r.meridiemHour!=null?r.meridiemHour(n,o):(r.isPM!=null&&(c=r.isPM(o),c&&n<12&&(n+=12),!c&&n===12&&(n=0)),n)}function im(r){var n,o,c,f,g,b,P=!1,S=r._f.length;if(S===0){ht(r).invalidFormat=!0,r._d=new Date(NaN);return}for(f=0;f<S;f++)g=0,b=!1,n=eh({},r),r._useUTC!=null&&(n._useUTC=r._useUTC),n._f=r._f[f],dh(n),Jd(n)&&(b=!0),g+=ht(n).charsLeftOver,g+=ht(n).unusedTokens.length*10,ht(n).score=g,P?g<c&&(c=g,o=n):(c==null||g<c||b)&&(c=g,o=n,b&&(P=!0));Va(r,o||n)}function om(r){if(!r._d){var n=nh(r._i),o=n.day===void 0?n.date:n.day;r._a=K2([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),fh(r)}}function am(r){var n=new H0(ch(y4(r)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function y4(r){var n=r._i,o=r._f;return r._locale=r._locale||la(r._l),n===null||o===void 0&&n===""?B1({nullInput:!0}):(typeof n=="string"&&(r._i=n=r._locale.preparse(n)),Bi(n)?new H0(ch(n)):($0(n)?r._d=n:Hi(o)?im(r):o?dh(r):sm(r),Jd(r)||(r._d=null),r))}function sm(r){var n=r._i;En(n)?r._d=new Date(ze.now()):$0(n)?r._d=new Date(n.valueOf()):typeof n=="string"?em(r):Hi(n)?(r._a=K2(n.slice(0),function(o){return parseInt(o,10)}),fh(r)):Zs(n)?om(r):sa(n)?r._d=new Date(n):ze.createFromInputFallback(r)}function C4(r,n,o,c,f){var g={};return(n===!0||n===!1)&&(c=n,n=void 0),(o===!0||o===!1)&&(c=o,o=void 0),(Zs(r)&&Qd(r)||Hi(r)&&r.length===0)&&(r=void 0),g._isAMomentObject=!0,g._useUTC=g._isUTC=f,g._l=o,g._i=r,g._f=n,g._strict=c,am(g)}function Qt(r,n,o,c){return C4(r,n,o,c,!1)}var lm=Ci("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:B1()}),um=Ci("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:B1()});function w4(r,n){var o,c;if(n.length===1&&Hi(n[0])&&(n=n[0]),!n.length)return Qt();for(o=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][r](o))&&(o=n[c]);return o}function cm(){var r=[].slice.call(arguments,0);return w4("isBefore",r)}function fm(){var r=[].slice.call(arguments,0);return w4("isAfter",r)}var dm=function(){return Date.now?Date.now():+new Date},g0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function hm(r){var n,o=!1,c,f=g0.length;for(n in r)if(Tt(r,n)&&!(yr.call(g0,n)!==-1&&(r[n]==null||!isNaN(r[n]))))return!1;for(c=0;c<f;++c)if(r[g0[c]]){if(o)return!1;parseFloat(r[g0[c]])!==mt(r[g0[c]])&&(o=!0)}return!0}function pm(){return this._isValid}function gm(){return Fi(NaN)}function j1(r){var n=nh(r),o=n.year||0,c=n.quarter||0,f=n.month||0,g=n.week||n.isoWeek||0,b=n.day||0,P=n.hour||0,S=n.minute||0,k=n.second||0,I=n.millisecond||0;this._isValid=hm(n),this._milliseconds=+I+k*1e3+S*6e4+P*1e3*60*60,this._days=+b+g*7,this._months=+f+c*3+o*12,this._data={},this._locale=la(),this._bubble()}function b1(r){return r instanceof j1}function Od(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function vm(r,n,o){var c=Math.min(r.length,n.length),f=Math.abs(r.length-n.length),g=0,b;for(b=0;b<c;b++)(o&&r[b]!==n[b]||!o&&mt(r[b])!==mt(n[b]))&&g++;return g+f}function x4(r,n){Ve(r,0,0,function(){var o=this.utcOffset(),c="+";return o<0&&(o=-o,c="-"),c+yo(~~(o/60),2)+n+yo(~~o%60,2)})}x4("Z",":");x4("ZZ","");Oe("Z",V1);Oe("ZZ",V1);Yt(["Z","ZZ"],function(r,n,o){o._useUTC=!0,o._tzm=hh(V1,r)});var bm=/([\+\-]|\d\d)/gi;function hh(r,n){var o=(n||"").match(r),c,f,g;return o===null?null:(c=o[o.length-1]||[],f=(c+"").match(bm)||["-",0,0],g=+(f[1]*60)+mt(f[2]),g===0?0:f[0]==="+"?g:-g)}function ph(r,n){var o,c;return n._isUTC?(o=n.clone(),c=(Bi(r)||$0(r)?r.valueOf():Qt(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+c),ze.updateOffset(o,!1),o):Qt(r).local()}function Td(r){return-Math.round(r._d.getTimezoneOffset())}ze.updateOffset=function(){};function mm(r,n,o){var c=this._offset||0,f;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=hh(V1,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&n&&(f=Td(this)),this._offset=r,this._isUTC=!0,f!=null&&this.add(f,"m"),c!==r&&(!n||this._changeInProgress?z4(this,Fi(r-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ze.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:Td(this)}function ym(r,n){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,n),this):-this.utcOffset()}function Cm(r){return this.utcOffset(0,r)}function wm(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(Td(this),"m")),this}function xm(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=hh(U8,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Lm(r){return this.isValid()?(r=r?Qt(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function _m(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zm(){if(!En(this._isDSTShifted))return this._isDSTShifted;var r={},n;return eh(r,this),r=y4(r),r._a?(n=r._isUTC?_o(r._a):Qt(r._a),this._isDSTShifted=this.isValid()&&vm(r._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sm(){return this.isValid()?!this._isUTC:!1}function Mm(){return this.isValid()?this._isUTC:!1}function L4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var km=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Om=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Fi(r,n){var o=r,c=null,f,g,b;return b1(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:sa(r)||!isNaN(+r)?(o={},n?o[n]=+r:o.milliseconds=+r):(c=km.exec(r))?(f=c[1]==="-"?-1:1,o={y:0,d:mt(c[vo])*f,h:mt(c[Nr])*f,m:mt(c[Ri])*f,s:mt(c[oa])*f,ms:mt(Od(c[Us]*1e3))*f}):(c=Om.exec(r))?(f=c[1]==="-"?-1:1,o={y:Fs(c[2],f),M:Fs(c[3],f),w:Fs(c[4],f),d:Fs(c[5],f),h:Fs(c[6],f),m:Fs(c[7],f),s:Fs(c[8],f)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(b=Tm(Qt(o.from),Qt(o.to)),o={},o.ms=b.milliseconds,o.M=b.months),g=new j1(o),b1(r)&&Tt(r,"_locale")&&(g._locale=r._locale),b1(r)&&Tt(r,"_isValid")&&(g._isValid=r._isValid),g}Fi.fn=j1.prototype;Fi.invalid=gm;function Fs(r,n){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*n}function Dp(r,n){var o={};return o.months=n.month()-r.month()+(n.year()-r.year())*12,r.clone().add(o.months,"M").isAfter(n)&&--o.months,o.milliseconds=+n-+r.clone().add(o.months,"M"),o}function Tm(r,n){var o;return r.isValid()&&n.isValid()?(n=ph(n,r),r.isBefore(n)?o=Dp(r,n):(o=Dp(n,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function _4(r,n){return function(o,c){var f,g;return c!==null&&!isNaN(+c)&&(Q2(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),g=o,o=c,c=g),f=Fi(o,c),z4(this,f,r),this}}function z4(r,n,o,c){var f=n._milliseconds,g=Od(n._days),b=Od(n._months);!r.isValid()||(c=c==null?!0:c,b&&l4(r,z1(r,"Month")+b*o),g&&t4(r,"Date",z1(r,"Date")+g*o),f&&r._d.setTime(r._d.valueOf()+f*o),c&&ze.updateOffset(r,g||b))}var Pm=_4(1,"add"),Am=_4(-1,"subtract");function S4(r){return typeof r=="string"||r instanceof String}function Em(r){return Bi(r)||$0(r)||S4(r)||sa(r)||Dm(r)||Im(r)||r===null||r===void 0}function Im(r){var n=Zs(r)&&!Qd(r),o=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],f,g,b=c.length;for(f=0;f<b;f+=1)g=c[f],o=o||Tt(r,g);return n&&o}function Dm(r){var n=Hi(r),o=!1;return n&&(o=r.filter(function(c){return!sa(c)&&S4(r)}).length===0),n&&o}function Rm(r){var n=Zs(r)&&!Qd(r),o=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,g;for(f=0;f<c.length;f+=1)g=c[f],o=o||Tt(r,g);return n&&o}function Nm(r,n){var o=r.diff(n,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function $m(r,n){arguments.length===1&&(arguments[0]?Em(arguments[0])?(r=arguments[0],n=void 0):Rm(arguments[0])&&(n=arguments[0],r=void 0):(r=void 0,n=void 0));var o=r||Qt(),c=ph(o,this).startOf("day"),f=ze.calendarFormat(this,c)||"sameElse",g=n&&(zo(n[f])?n[f].call(this,o):n[f]);return this.format(g||this.localeData().calendar(f,this,Qt(o)))}function Hm(){return new H0(this)}function Bm(r,n){var o=Bi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=wi(n)||"millisecond",n==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(n).valueOf()):!1}function Fm(r,n){var o=Bi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=wi(n)||"millisecond",n==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(n).valueOf()<o.valueOf()):!1}function Wm(r,n,o,c){var f=Bi(r)?r:Qt(r),g=Bi(n)?n:Qt(n);return this.isValid()&&f.isValid()&&g.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(f,o):!this.isBefore(f,o))&&(c[1]===")"?this.isBefore(g,o):!this.isAfter(g,o))):!1}function Um(r,n){var o=Bi(r)?r:Qt(r),c;return this.isValid()&&o.isValid()?(n=wi(n)||"millisecond",n==="millisecond"?this.valueOf()===o.valueOf():(c=o.valueOf(),this.clone().startOf(n).valueOf()<=c&&c<=this.clone().endOf(n).valueOf())):!1}function Ym(r,n){return this.isSame(r,n)||this.isAfter(r,n)}function Zm(r,n){return this.isSame(r,n)||this.isBefore(r,n)}function Vm(r,n,o){var c,f,g;if(!this.isValid())return NaN;if(c=ph(r,this),!c.isValid())return NaN;switch(f=(c.utcOffset()-this.utcOffset())*6e4,n=wi(n),n){case"year":g=m1(this,c)/12;break;case"month":g=m1(this,c);break;case"quarter":g=m1(this,c)/3;break;case"second":g=(this-c)/1e3;break;case"minute":g=(this-c)/6e4;break;case"hour":g=(this-c)/36e5;break;case"day":g=(this-c-f)/864e5;break;case"week":g=(this-c-f)/6048e5;break;default:g=this-c}return o?g:vi(g)}function m1(r,n){if(r.date()<n.date())return-m1(n,r);var o=(n.year()-r.year())*12+(n.month()-r.month()),c=r.clone().add(o,"months"),f,g;return n-c<0?(f=r.clone().add(o-1,"months"),g=(n-c)/(c-f)):(f=r.clone().add(o+1,"months"),g=(n-c)/(f-c)),-(o+g)||0}ze.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ze.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Gm(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function qm(r){if(!this.isValid())return null;var n=r!==!0,o=n?this.clone().utc():this;return o.year()<0||o.year()>9999?v1(o,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):zo(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",v1(o,"Z")):v1(o,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function jm(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",n="",o,c,f,g;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),o="["+r+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",f="-MM-DD[T]HH:mm:ss.SSS",g=n+'[")]',this.format(o+c+f+g)}function Km(r){r||(r=this.isUtc()?ze.defaultFormatUtc:ze.defaultFormat);var n=v1(this,r);return this.localeData().postformat(n)}function Xm(r,n){return this.isValid()&&(Bi(r)&&r.isValid()||Qt(r).isValid())?Fi({to:this,from:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Qm(r){return this.from(Qt(),r)}function Jm(r,n){return this.isValid()&&(Bi(r)&&r.isValid()||Qt(r).isValid())?Fi({from:this,to:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function ey(r){return this.to(Qt(),r)}function M4(r){var n;return r===void 0?this._locale._abbr:(n=la(r),n!=null&&(this._locale=n),this)}var k4=Ci("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function O4(){return this._locale}var k1=1e3,nu=60*k1,O1=60*nu,T4=(365*400+97)*24*O1;function iu(r,n){return(r%n+n)%n}function P4(r,n,o){return r<100&&r>=0?new Date(r+400,n,o)-T4:new Date(r,n,o).valueOf()}function A4(r,n,o){return r<100&&r>=0?Date.UTC(r+400,n,o)-T4:Date.UTC(r,n,o)}function ty(r){var n,o;if(r=wi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?A4:P4,r){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=iu(n+(this._isUTC?0:this.utcOffset()*nu),O1);break;case"minute":n=this._d.valueOf(),n-=iu(n,nu);break;case"second":n=this._d.valueOf(),n-=iu(n,k1);break}return this._d.setTime(n),ze.updateOffset(this,!0),this}function ry(r){var n,o;if(r=wi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?A4:P4,r){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=O1-iu(n+(this._isUTC?0:this.utcOffset()*nu),O1)-1;break;case"minute":n=this._d.valueOf(),n+=nu-iu(n,nu)-1;break;case"second":n=this._d.valueOf(),n+=k1-iu(n,k1)-1;break}return this._d.setTime(n),ze.updateOffset(this,!0),this}function ny(){return this._d.valueOf()-(this._offset||0)*6e4}function iy(){return Math.floor(this.valueOf()/1e3)}function oy(){return new Date(this.valueOf())}function ay(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function sy(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function ly(){return this.isValid()?this.toISOString():null}function uy(){return Jd(this)}function cy(){return Va({},ht(this))}function fy(){return ht(this).overflow}function dy(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ve("N",0,0,"eraAbbr");Ve("NN",0,0,"eraAbbr");Ve("NNN",0,0,"eraAbbr");Ve("NNNN",0,0,"eraName");Ve("NNNNN",0,0,"eraNarrow");Ve("y",["y",1],"yo","eraYear");Ve("y",["yy",2],0,"eraYear");Ve("y",["yyy",3],0,"eraYear");Ve("y",["yyyy",4],0,"eraYear");Oe("N",gh);Oe("NN",gh);Oe("NNN",gh);Oe("NNNN",Ly);Oe("NNNNN",_y);Yt(["N","NN","NNN","NNNN","NNNNN"],function(r,n,o,c){var f=o._locale.erasParse(r,c,o._strict);f?ht(o).era=f:ht(o).invalidEra=r});Oe("y",gu);Oe("yy",gu);Oe("yyy",gu);Oe("yyyy",gu);Oe("yo",zy);Yt(["y","yy","yyy","yyyy"],ln);Yt(["yo"],function(r,n,o,c){var f;o._locale._eraYearOrdinalRegex&&(f=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?n[ln]=o._locale.eraYearOrdinalParse(r,f):n[ln]=parseInt(r,10)});function hy(r,n){var o,c,f,g=this._eras||la("en")._eras;for(o=0,c=g.length;o<c;++o){switch(typeof g[o].since){case"string":f=ze(g[o].since).startOf("day"),g[o].since=f.valueOf();break}switch(typeof g[o].until){case"undefined":g[o].until=1/0;break;case"string":f=ze(g[o].until).startOf("day").valueOf(),g[o].until=f.valueOf();break}}return g}function py(r,n,o){var c,f,g=this.eras(),b,P,S;for(r=r.toUpperCase(),c=0,f=g.length;c<f;++c)if(b=g[c].name.toUpperCase(),P=g[c].abbr.toUpperCase(),S=g[c].narrow.toUpperCase(),o)switch(n){case"N":case"NN":case"NNN":if(P===r)return g[c];break;case"NNNN":if(b===r)return g[c];break;case"NNNNN":if(S===r)return g[c];break}else if([b,P,S].indexOf(r)>=0)return g[c]}function gy(r,n){var o=r.since<=r.until?1:-1;return n===void 0?ze(r.since).year():ze(r.since).year()+(n-r.offset)*o}function vy(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].name;return""}function by(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].narrow;return""}function my(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].abbr;return""}function yy(){var r,n,o,c,f=this.localeData().eras();for(r=0,n=f.length;r<n;++r)if(o=f[r].since<=f[r].until?1:-1,c=this.clone().startOf("day").valueOf(),f[r].since<=c&&c<=f[r].until||f[r].until<=c&&c<=f[r].since)return(this.year()-ze(f[r].since).year())*o+f[r].offset;return this.year()}function Cy(r){return Tt(this,"_erasNameRegex")||vh.call(this),r?this._erasNameRegex:this._erasRegex}function wy(r){return Tt(this,"_erasAbbrRegex")||vh.call(this),r?this._erasAbbrRegex:this._erasRegex}function xy(r){return Tt(this,"_erasNarrowRegex")||vh.call(this),r?this._erasNarrowRegex:this._erasRegex}function gh(r,n){return n.erasAbbrRegex(r)}function Ly(r,n){return n.erasNameRegex(r)}function _y(r,n){return n.erasNarrowRegex(r)}function zy(r,n){return n._eraYearOrdinalRegex||gu}function vh(){var r=[],n=[],o=[],c=[],f,g,b=this.eras();for(f=0,g=b.length;f<g;++f)n.push(Qn(b[f].name)),r.push(Qn(b[f].abbr)),o.push(Qn(b[f].narrow)),c.push(Qn(b[f].name)),c.push(Qn(b[f].abbr)),c.push(Qn(b[f].narrow));this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}Ve(0,["gg",2],0,function(){return this.weekYear()%100});Ve(0,["GG",2],0,function(){return this.isoWeekYear()%100});function K1(r,n){Ve(0,[r,r.length],0,n)}K1("gggg","weekYear");K1("ggggg","weekYear");K1("GGGG","isoWeekYear");K1("GGGGG","isoWeekYear");cn("weekYear","gg");cn("isoWeekYear","GG");fn("weekYear",1);fn("isoWeekYear",1);Oe("G",Z1);Oe("g",Z1);Oe("GG",Jt,ri);Oe("gg",Jt,ri);Oe("GGGG",oh,ih);Oe("gggg",oh,ih);Oe("GGGGG",Y1,W1);Oe("ggggg",Y1,W1);F0(["gggg","ggggg","GGGG","GGGGG"],function(r,n,o,c){n[c.substr(0,2)]=mt(r)});F0(["gg","GG"],function(r,n,o,c){n[c]=ze.parseTwoDigitYear(r)});function Sy(r){return E4.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function My(r){return E4.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function ky(){return aa(this.year(),1,4)}function Oy(){return aa(this.isoWeekYear(),1,4)}function Ty(){var r=this.localeData()._week;return aa(this.year(),r.dow,r.doy)}function Py(){var r=this.localeData()._week;return aa(this.weekYear(),r.dow,r.doy)}function E4(r,n,o,c,f){var g;return r==null?O0(this,c,f).year:(g=aa(r,c,f),n>g&&(n=g),Ay.call(this,r,n,o,c,f))}function Ay(r,n,o,c,f){var g=d4(r,n,o,c,f),b=k0(g.year,0,g.dayOfYear);return this.year(b.getUTCFullYear()),this.month(b.getUTCMonth()),this.date(b.getUTCDate()),this}Ve("Q",0,"Qo","quarter");cn("quarter","Q");fn("quarter",7);Oe("Q",r4);Yt("Q",function(r,n){n[ia]=(mt(r)-1)*3});function Ey(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Ve("D",["DD",2],"Do","date");cn("date","D");fn("date",9);Oe("D",Jt);Oe("DD",Jt,ri);Oe("Do",function(r,n){return r?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Yt(["D","DD"],vo);Yt("Do",function(r,n){n[vo]=mt(r.match(Jt)[0])});var I4=pu("Date",!0);Ve("DDD",["DDDD",3],"DDDo","dayOfYear");cn("dayOfYear","DDD");fn("dayOfYear",4);Oe("DDD",U1);Oe("DDDD",n4);Yt(["DDD","DDDD"],function(r,n,o){o._dayOfYear=mt(r)});function Iy(r){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?n:this.add(r-n,"d")}Ve("m",["mm",2],0,"minute");cn("minute","m");fn("minute",14);Oe("m",Jt);Oe("mm",Jt,ri);Yt(["m","mm"],Ri);var Dy=pu("Minutes",!1);Ve("s",["ss",2],0,"second");cn("second","s");fn("second",15);Oe("s",Jt);Oe("ss",Jt,ri);Yt(["s","ss"],oa);var Ry=pu("Seconds",!1);Ve("S",0,0,function(){return~~(this.millisecond()/100)});Ve(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Ve(0,["SSS",3],0,"millisecond");Ve(0,["SSSS",4],0,function(){return this.millisecond()*10});Ve(0,["SSSSS",5],0,function(){return this.millisecond()*100});Ve(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Ve(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Ve(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Ve(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});cn("millisecond","ms");fn("millisecond",16);Oe("S",U1,r4);Oe("SS",U1,ri);Oe("SSS",U1,n4);var Ga,D4;for(Ga="SSSS";Ga.length<=9;Ga+="S")Oe(Ga,gu);function Ny(r,n){n[Us]=mt(("0."+r)*1e3)}for(Ga="S";Ga.length<=9;Ga+="S")Yt(Ga,Ny);D4=pu("Milliseconds",!1);Ve("z",0,0,"zoneAbbr");Ve("zz",0,0,"zoneName");function $y(){return this._isUTC?"UTC":""}function Hy(){return this._isUTC?"Coordinated Universal Time":""}var ue=H0.prototype;ue.add=Pm;ue.calendar=$m;ue.clone=Hm;ue.diff=Vm;ue.endOf=ry;ue.format=Km;ue.from=Xm;ue.fromNow=Qm;ue.to=Jm;ue.toNow=ey;ue.get=F8;ue.invalidAt=fy;ue.isAfter=Bm;ue.isBefore=Fm;ue.isBetween=Wm;ue.isSame=Um;ue.isSameOrAfter=Ym;ue.isSameOrBefore=Zm;ue.isValid=uy;ue.lang=k4;ue.locale=M4;ue.localeData=O4;ue.max=um;ue.min=lm;ue.parsingFlags=cy;ue.set=W8;ue.startOf=ty;ue.subtract=Am;ue.toArray=ay;ue.toObject=sy;ue.toDate=oy;ue.toISOString=qm;ue.inspect=jm;typeof Symbol!="undefined"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ue.toJSON=ly;ue.toString=Gm;ue.unix=iy;ue.valueOf=ny;ue.creationData=dy;ue.eraName=vy;ue.eraNarrow=by;ue.eraAbbr=my;ue.eraYear=yy;ue.year=f4;ue.isLeapYear=sb;ue.weekYear=Sy;ue.isoWeekYear=My;ue.quarter=ue.quarters=Ey;ue.month=u4;ue.daysInMonth=ib;ue.week=ue.weeks=hb;ue.isoWeek=ue.isoWeeks=pb;ue.weeksInYear=Ty;ue.weeksInWeekYear=Py;ue.isoWeeksInYear=ky;ue.isoWeeksInISOWeekYear=Oy;ue.date=I4;ue.day=ue.days=Mb;ue.weekday=kb;ue.isoWeekday=Ob;ue.dayOfYear=Iy;ue.hour=ue.hours=Rb;ue.minute=ue.minutes=Dy;ue.second=ue.seconds=Ry;ue.millisecond=ue.milliseconds=D4;ue.utcOffset=mm;ue.utc=Cm;ue.local=wm;ue.parseZone=xm;ue.hasAlignedHourOffset=Lm;ue.isDST=_m;ue.isLocal=Sm;ue.isUtcOffset=Mm;ue.isUtc=L4;ue.isUTC=L4;ue.zoneAbbr=$y;ue.zoneName=Hy;ue.dates=Ci("dates accessor is deprecated. Use date instead.",I4);ue.months=Ci("months accessor is deprecated. Use month instead",u4);ue.years=Ci("years accessor is deprecated. Use year instead",f4);ue.zone=Ci("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ym);ue.isDSTShifted=Ci("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zm);function By(r){return Qt(r*1e3)}function Fy(){return Qt.apply(null,arguments).parseZone()}function R4(r){return r}var Pt=th.prototype;Pt.calendar=M8;Pt.longDateFormat=P8;Pt.invalidDate=E8;Pt.ordinal=R8;Pt.preparse=R4;Pt.postformat=R4;Pt.relativeTime=$8;Pt.pastFuture=H8;Pt.set=z8;Pt.eras=hy;Pt.erasParse=py;Pt.erasConvertYear=gy;Pt.erasAbbrRegex=wy;Pt.erasNameRegex=Cy;Pt.erasNarrowRegex=xy;Pt.months=eb;Pt.monthsShort=tb;Pt.monthsParse=nb;Pt.monthsRegex=ab;Pt.monthsShortRegex=ob;Pt.week=ub;Pt.firstDayOfYear=db;Pt.firstDayOfWeek=fb;Pt.weekdays=xb;Pt.weekdaysMin=_b;Pt.weekdaysShort=Lb;Pt.weekdaysParse=Sb;Pt.weekdaysRegex=Tb;Pt.weekdaysShortRegex=Pb;Pt.weekdaysMinRegex=Ab;Pt.isPM=Ib;Pt.meridiem=Nb;function T1(r,n,o,c){var f=la(),g=_o().set(c,n);return f[o](g,r)}function N4(r,n,o){if(sa(r)&&(n=r,r=void 0),r=r||"",n!=null)return T1(r,n,o,"month");var c,f=[];for(c=0;c<12;c++)f[c]=T1(r,c,o,"month");return f}function bh(r,n,o,c){typeof r=="boolean"?(sa(n)&&(o=n,n=void 0),n=n||""):(n=r,o=n,r=!1,sa(n)&&(o=n,n=void 0),n=n||"");var f=la(),g=r?f._week.dow:0,b,P=[];if(o!=null)return T1(n,(o+g)%7,c,"day");for(b=0;b<7;b++)P[b]=T1(n,(b+g)%7,c,"day");return P}function Wy(r,n){return N4(r,n,"months")}function Uy(r,n){return N4(r,n,"monthsShort")}function Yy(r,n,o){return bh(r,n,o,"weekdays")}function Zy(r,n,o){return bh(r,n,o,"weekdaysShort")}function Vy(r,n,o){return bh(r,n,o,"weekdaysMin")}qa("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var n=r%10,o=mt(r%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return r+o}});ze.lang=Ci("moment.lang is deprecated. Use moment.locale instead.",qa);ze.langData=Ci("moment.langData is deprecated. Use moment.localeData instead.",la);var ta=Math.abs;function Gy(){var r=this._data;return this._milliseconds=ta(this._milliseconds),this._days=ta(this._days),this._months=ta(this._months),r.milliseconds=ta(r.milliseconds),r.seconds=ta(r.seconds),r.minutes=ta(r.minutes),r.hours=ta(r.hours),r.months=ta(r.months),r.years=ta(r.years),this}function $4(r,n,o,c){var f=Fi(n,o);return r._milliseconds+=c*f._milliseconds,r._days+=c*f._days,r._months+=c*f._months,r._bubble()}function qy(r,n){return $4(this,r,n,1)}function jy(r,n){return $4(this,r,n,-1)}function Rp(r){return r<0?Math.floor(r):Math.ceil(r)}function Ky(){var r=this._milliseconds,n=this._days,o=this._months,c=this._data,f,g,b,P,S;return r>=0&&n>=0&&o>=0||r<=0&&n<=0&&o<=0||(r+=Rp(Pd(o)+n)*864e5,n=0,o=0),c.milliseconds=r%1e3,f=vi(r/1e3),c.seconds=f%60,g=vi(f/60),c.minutes=g%60,b=vi(g/60),c.hours=b%24,n+=vi(b/24),S=vi(H4(n)),o+=S,n-=Rp(Pd(S)),P=vi(o/12),o%=12,c.days=n,c.months=o,c.years=P,this}function H4(r){return r*4800/146097}function Pd(r){return r*146097/4800}function Xy(r){if(!this.isValid())return NaN;var n,o,c=this._milliseconds;if(r=wi(r),r==="month"||r==="quarter"||r==="year")switch(n=this._days+c/864e5,o=this._months+H4(n),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(n=this._days+Math.round(Pd(this._months)),r){case"week":return n/7+c/6048e5;case"day":return n+c/864e5;case"hour":return n*24+c/36e5;case"minute":return n*1440+c/6e4;case"second":return n*86400+c/1e3;case"millisecond":return Math.floor(n*864e5)+c;default:throw new Error("Unknown unit "+r)}}function Qy(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+mt(this._months/12)*31536e6:NaN}function ua(r){return function(){return this.as(r)}}var Jy=ua("ms"),eC=ua("s"),tC=ua("m"),rC=ua("h"),nC=ua("d"),iC=ua("w"),oC=ua("M"),aC=ua("Q"),sC=ua("y");function lC(){return Fi(this)}function uC(r){return r=wi(r),this.isValid()?this[r+"s"]():NaN}function Xs(r){return function(){return this.isValid()?this._data[r]:NaN}}var cC=Xs("milliseconds"),fC=Xs("seconds"),dC=Xs("minutes"),hC=Xs("hours"),pC=Xs("days"),gC=Xs("months"),vC=Xs("years");function bC(){return vi(this.days()/7)}var ra=Math.round,eu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function mC(r,n,o,c,f){return f.relativeTime(n||1,!!o,r,c)}function yC(r,n,o,c){var f=Fi(r).abs(),g=ra(f.as("s")),b=ra(f.as("m")),P=ra(f.as("h")),S=ra(f.as("d")),k=ra(f.as("M")),I=ra(f.as("w")),U=ra(f.as("y")),q=g<=o.ss&&["s",g]||g<o.s&&["ss",g]||b<=1&&["m"]||b<o.m&&["mm",b]||P<=1&&["h"]||P<o.h&&["hh",P]||S<=1&&["d"]||S<o.d&&["dd",S];return o.w!=null&&(q=q||I<=1&&["w"]||I<o.w&&["ww",I]),q=q||k<=1&&["M"]||k<o.M&&["MM",k]||U<=1&&["y"]||["yy",U],q[2]=n,q[3]=+r>0,q[4]=c,mC.apply(null,q)}function CC(r){return r===void 0?ra:typeof r=="function"?(ra=r,!0):!1}function wC(r,n){return eu[r]===void 0?!1:n===void 0?eu[r]:(eu[r]=n,r==="s"&&(eu.ss=n-1),!0)}function xC(r,n){if(!this.isValid())return this.localeData().invalidDate();var o=!1,c=eu,f,g;return typeof r=="object"&&(n=r,r=!1),typeof r=="boolean"&&(o=r),typeof n=="object"&&(c=Object.assign({},eu,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),f=this.localeData(),g=yC(this,!o,c,f),o&&(g=f.pastFuture(+this,g)),f.postformat(g)}var vd=Math.abs;function Kl(r){return(r>0)-(r<0)||+r}function X1(){if(!this.isValid())return this.localeData().invalidDate();var r=vd(this._milliseconds)/1e3,n=vd(this._days),o=vd(this._months),c,f,g,b,P=this.asSeconds(),S,k,I,U;return P?(c=vi(r/60),f=vi(c/60),r%=60,c%=60,g=vi(o/12),o%=12,b=r?r.toFixed(3).replace(/\.?0+$/,""):"",S=P<0?"-":"",k=Kl(this._months)!==Kl(P)?"-":"",I=Kl(this._days)!==Kl(P)?"-":"",U=Kl(this._milliseconds)!==Kl(P)?"-":"",S+"P"+(g?k+g+"Y":"")+(o?k+o+"M":"")+(n?I+n+"D":"")+(f||c||r?"T":"")+(f?U+f+"H":"")+(c?U+c+"M":"")+(r?U+b+"S":"")):"P0D"}var St=j1.prototype;St.isValid=pm;St.abs=Gy;St.add=qy;St.subtract=jy;St.as=Xy;St.asMilliseconds=Jy;St.asSeconds=eC;St.asMinutes=tC;St.asHours=rC;St.asDays=nC;St.asWeeks=iC;St.asMonths=oC;St.asQuarters=aC;St.asYears=sC;St.valueOf=Qy;St._bubble=Ky;St.clone=lC;St.get=uC;St.milliseconds=cC;St.seconds=fC;St.minutes=dC;St.hours=hC;St.days=pC;St.weeks=bC;St.months=gC;St.years=vC;St.humanize=xC;St.toISOString=X1;St.toString=X1;St.toJSON=X1;St.locale=M4;St.localeData=O4;St.toIsoString=Ci("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",X1);St.lang=k4;Ve("X",0,0,"unix");Ve("x",0,0,"valueOf");Oe("x",Z1);Oe("X",Y8);Yt("X",function(r,n,o){o._d=new Date(parseFloat(r)*1e3)});Yt("x",function(r,n,o){o._d=new Date(mt(r))});//! moment.js
2768
- ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.unix=By;ze.months=Wy;ze.isDate=$0;ze.locale=qa;ze.invalid=B1;ze.duration=Fi;ze.isMoment=Bi;ze.weekdays=Yy;ze.parseZone=Fy;ze.localeData=la;ze.isDuration=b1;ze.monthsShort=Uy;ze.weekdaysMin=Vy;ze.defineLocale=uh;ze.updateLocale=Fb;ze.locales=Wb;ze.weekdaysShort=Zy;ze.normalizeUnits=wi;ze.relativeTimeRounding=CC;ze.relativeTimeThreshold=wC;ze.calendarFormat=Nm;ze.prototype=ue;ze.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var LC=Object.defineProperty,_C=Object.getOwnPropertyDescriptor,es=(r,n,o,c)=>{for(var f=c>1?void 0:c?_C(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&LC(n,o,f),f};const B4=Ee("input-time"),F4="h:mma",W4=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,U4=/^(1[3-9]|2[0-3]).*/,Y4=/^(\d\d?)(am?|pm?)/,Z4=(r,n)=>({label:`${r}${n?` (${n})`:""}`,value:r}),zC=(r,n)=>{const c=Math.ceil(1440/r),f=ze().startOf("day");return Array(c).fill(null).map((g,b)=>{const S=(b>0?f.add(r,"minutes"):f).format(F4);return Z4(S,n)})},SC=(r,n)=>{const o=r.trim(),c=r.match(W4);if(!o||!c)return[];const[,f,g,b]=c,P=parseInt(f,10),S=P>12?`${P-12}`:`${P}`,k=`${g}${b||0}`,I=`${S}:${k}`;return["am","pm"].map(U=>Z4(`${I}${U}`,n))},MC=(r,{value:n})=>{const o=r.match(U4);if(!o||!n)return!1;const[,c]=o,f=`${parseInt(c,10)-12}`,g=r.substring(c.length).replace(":",""),b=`${f}:${g}`;return n.startsWith(b)&&n.endsWith("pm")},kC=(r,{value:n})=>{const o=r.match(Y4);if(!o)return!1;const[,c,f]=o;return!!(n!=null&&n.replace(":00","").startsWith(`${c}${f}`))},OC=(...r)=>kC(...r)||MC(...r);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=zC(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var r;this.valueLabel=(r=this.getItems().find(({value:n})=>n===this.value))==null?void 0:r.label,this.resetSearch()}isCustomQueryMatch(r){return this.query?OC(this.query,r):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=SC(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return ee`
2806
+ `+new Error().stack),o=!1}return n.apply(this,arguments)},n)}var Ap={};function X2(r,n){ze.deprecationHandler!=null&&ze.deprecationHandler(r,n),Ap[r]||(K2(n),Ap[r]=!0)}ze.suppressDeprecationWarnings=!1;ze.deprecationHandler=null;function So(r){return typeof Function!="undefined"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function P8(r){var n,o;for(o in r)Tt(r,o)&&(n=r[o],So(n)?this[o]=n:this["_"+o]=n);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function zd(r,n){var o=ja({},r),c;for(c in n)Tt(n,c)&&(Vs(r[c])&&Vs(n[c])?(o[c]={},ja(o[c],r[c]),ja(o[c],n[c])):n[c]!=null?o[c]=n[c]:delete o[c]);for(c in r)Tt(r,c)&&!Tt(n,c)&&Vs(r[c])&&(o[c]=ja({},o[c]));return o}function th(r){r!=null&&this.set(r)}var Sd;Object.keys?Sd=Object.keys:Sd=function(r){var n,o=[];for(n in r)Tt(r,n)&&o.push(n);return o};var A8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function E8(r,n,o){var c=this._calendar[r]||this._calendar.sameElse;return So(c)?c.call(n,o):c}function Co(r,n,o){var c=""+Math.abs(r),f=n-c.length,p=r>=0;return(p?o?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+c}var rh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,d1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hd={},ru={};function Ve(r,n,o,c){var f=c;typeof c=="string"&&(f=function(){return this[c]()}),r&&(ru[r]=f),n&&(ru[n[0]]=function(){return Co(f.apply(this,arguments),n[1],n[2])}),o&&(ru[o]=function(){return this.localeData().ordinal(f.apply(this,arguments),r)})}function I8(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function D8(r){var n=r.match(rh),o,c;for(o=0,c=n.length;o<c;o++)ru[n[o]]?n[o]=ru[n[o]]:n[o]=I8(n[o]);return function(f){var p="",b;for(b=0;b<c;b++)p+=So(n[b])?n[b].call(f,r):n[b];return p}}function v1(r,n){return r.isValid()?(n=Q2(n,r.localeData()),hd[n]=hd[n]||D8(n),hd[n](r)):r.localeData().invalidDate()}function Q2(r,n){var o=5;function c(f){return n.longDateFormat(f)||f}for(d1.lastIndex=0;o>=0&&d1.test(r);)r=r.replace(d1,c),d1.lastIndex=0,o-=1;return r}var R8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function N8(r){var n=this._longDateFormat[r],o=this._longDateFormat[r.toUpperCase()];return n||!o?n:(this._longDateFormat[r]=o.match(rh).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[r])}var $8="Invalid date";function H8(){return this._invalidDate}var B8="%d",F8=/\d{1,2}/;function W8(r){return this._ordinal.replace("%d",r)}var U8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Y8(r,n,o,c){var f=this._relativeTime[o];return So(f)?f(r,n,o,c):f.replace(/%d/i,r)}function Z8(r,n){var o=this._relativeTime[r>0?"future":"past"];return So(o)?o(n):o.replace(/%s/i,n)}var C0={};function cn(r,n){var o=r.toLowerCase();C0[o]=C0[o+"s"]=C0[n]=r}function wi(r){return typeof r=="string"?C0[r]||C0[r.toLowerCase()]:void 0}function nh(r){var n={},o,c;for(c in r)Tt(r,c)&&(o=wi(c),o&&(n[o]=r[c]));return n}var J2={};function fn(r,n){J2[r]=n}function V8(r){var n=[],o;for(o in r)Tt(r,o)&&n.push({unit:o,priority:J2[o]});return n.sort(function(c,f){return c.priority-f.priority}),n}function F1(r){return r%4===0&&r%100!==0||r%400===0}function vi(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function mt(r){var n=+r,o=0;return n!==0&&isFinite(n)&&(o=vi(n)),o}function pu(r,n){return function(o){return o!=null?(e4(this,r,o),ze.updateOffset(this,n),this):z1(this,r)}}function z1(r,n){return r.isValid()?r._d["get"+(r._isUTC?"UTC":"")+n]():NaN}function e4(r,n,o){r.isValid()&&!isNaN(o)&&(n==="FullYear"&&F1(r.year())&&r.month()===1&&r.date()===29?(o=mt(o),r._d["set"+(r._isUTC?"UTC":"")+n](o,r.month(),G1(o,r.month()))):r._d["set"+(r._isUTC?"UTC":"")+n](o))}function G8(r){return r=wi(r),So(this[r])?this[r]():this}function q8(r,n){if(typeof r=="object"){r=nh(r);var o=V8(r),c,f=o.length;for(c=0;c<f;c++)this[o[c].unit](r[o[c].unit])}else if(r=wi(r),So(this[r]))return this[r](n);return this}var t4=/\d/,ri=/\d\d/,r4=/\d{3}/,ih=/\d{4}/,W1=/[+-]?\d{6}/,Jt=/\d\d?/,n4=/\d\d\d\d?/,i4=/\d\d\d\d\d\d?/,U1=/\d{1,3}/,oh=/\d{1,4}/,Y1=/[+-]?\d{1,6}/,gu=/\d+/,Z1=/[+-]?\d+/,j8=/Z|[+-]\d\d:?\d\d/gi,V1=/Z|[+-]\d\d(?::?\d\d)?/gi,K8=/[+-]?\d+(\.\d{1,3})?/,B0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,S1;S1={};function Oe(r,n,o){S1[r]=So(n)?n:function(c,f){return c&&o?o:n}}function X8(r,n){return Tt(S1,r)?S1[r](n._strict,n._locale):new RegExp(Q8(r))}function Q8(r){return Qn(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,o,c,f,p){return o||c||f||p}))}function Qn(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Md={};function Yt(r,n){var o,c=n,f;for(typeof r=="string"&&(r=[r]),la(n)&&(c=function(p,b){b[n]=mt(p)}),f=r.length,o=0;o<f;o++)Md[r[o]]=c}function F0(r,n){Yt(r,function(o,c,f,p){f._w=f._w||{},n(o,f._w,f,p)})}function J8(r,n,o){n!=null&&Tt(Md,r)&&Md[r](n,o._a,o,r)}var un=0,oa=1,bo=2,Nr=3,Ri=4,aa=5,Ys=6,eb=7,tb=8;function rb(r,n){return(r%n+n)%n}var yr;Array.prototype.indexOf?yr=Array.prototype.indexOf:yr=function(r){var n;for(n=0;n<this.length;++n)if(this[n]===r)return n;return-1};function G1(r,n){if(isNaN(r)||isNaN(n))return NaN;var o=rb(n,12);return r+=(n-o)/12,o===1?F1(r)?29:28:31-o%7%2}Ve("M",["MM",2],"Mo",function(){return this.month()+1});Ve("MMM",0,0,function(r){return this.localeData().monthsShort(this,r)});Ve("MMMM",0,0,function(r){return this.localeData().months(this,r)});cn("month","M");fn("month",8);Oe("M",Jt);Oe("MM",Jt,ri);Oe("MMM",function(r,n){return n.monthsShortRegex(r)});Oe("MMMM",function(r,n){return n.monthsRegex(r)});Yt(["M","MM"],function(r,n){n[oa]=mt(r)-1});Yt(["MMM","MMMM"],function(r,n,o,c){var f=o._locale.monthsParse(r,c,o._strict);f!=null?n[oa]=f:ht(o).invalidMonth=r});var nb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),o4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),a4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ib=B0,ob=B0;function ab(r,n){return r?Hi(this._months)?this._months[r.month()]:this._months[(this._months.isFormat||a4).test(n)?"format":"standalone"][r.month()]:Hi(this._months)?this._months:this._months.standalone}function sb(r,n){return r?Hi(this._monthsShort)?this._monthsShort[r.month()]:this._monthsShort[a4.test(n)?"format":"standalone"][r.month()]:Hi(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lb(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)p=zo([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(p,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(p,"").toLocaleLowerCase();return o?n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null):(f=yr.call(this._longMonthsParse,b),f!==-1?f:null):n==="MMM"?(f=yr.call(this._shortMonthsParse,b),f!==-1?f:(f=yr.call(this._longMonthsParse,b),f!==-1?f:null)):(f=yr.call(this._longMonthsParse,b),f!==-1?f:(f=yr.call(this._shortMonthsParse,b),f!==-1?f:null))}function ub(r,n,o){var c,f,p;if(this._monthsParseExact)return lb.call(this,r,n,o);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(f=zo([2e3,c]),o&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),!o&&!this._monthsParse[c]&&(p="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="MMMM"&&this._longMonthsParse[c].test(r))return c;if(o&&n==="MMM"&&this._shortMonthsParse[c].test(r))return c;if(!o&&this._monthsParse[c].test(r))return c}}function s4(r,n){var o;if(!r.isValid())return r;if(typeof n=="string"){if(/^\d+$/.test(n))n=mt(n);else if(n=r.localeData().monthsParse(n),!la(n))return r}return o=Math.min(r.date(),G1(r.year(),n)),r._d["set"+(r._isUTC?"UTC":"")+"Month"](n,o),r}function l4(r){return r!=null?(s4(this,r),ze.updateOffset(this,!0),this):z1(this,"Month")}function cb(){return G1(this.year(),this.month())}function fb(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||u4.call(this),r?this._monthsShortStrictRegex:this._monthsShortRegex):(Tt(this,"_monthsShortRegex")||(this._monthsShortRegex=ib),this._monthsShortStrictRegex&&r?this._monthsShortStrictRegex:this._monthsShortRegex)}function db(r){return this._monthsParseExact?(Tt(this,"_monthsRegex")||u4.call(this),r?this._monthsStrictRegex:this._monthsRegex):(Tt(this,"_monthsRegex")||(this._monthsRegex=ob),this._monthsStrictRegex&&r?this._monthsStrictRegex:this._monthsRegex)}function u4(){function r(b,k){return k.length-b.length}var n=[],o=[],c=[],f,p;for(f=0;f<12;f++)p=zo([2e3,f]),n.push(this.monthsShort(p,"")),o.push(this.months(p,"")),c.push(this.months(p,"")),c.push(this.monthsShort(p,""));for(n.sort(r),o.sort(r),c.sort(r),f=0;f<12;f++)n[f]=Qn(n[f]),o[f]=Qn(o[f]);for(f=0;f<24;f++)c[f]=Qn(c[f]);this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}Ve("Y",0,0,function(){var r=this.year();return r<=9999?Co(r,4):"+"+r});Ve(0,["YY",2],0,function(){return this.year()%100});Ve(0,["YYYY",4],0,"year");Ve(0,["YYYYY",5],0,"year");Ve(0,["YYYYYY",6,!0],0,"year");cn("year","y");fn("year",1);Oe("Y",Z1);Oe("YY",Jt,ri);Oe("YYYY",oh,ih);Oe("YYYYY",Y1,W1);Oe("YYYYYY",Y1,W1);Yt(["YYYYY","YYYYYY"],un);Yt("YYYY",function(r,n){n[un]=r.length===2?ze.parseTwoDigitYear(r):mt(r)});Yt("YY",function(r,n){n[un]=ze.parseTwoDigitYear(r)});Yt("Y",function(r,n){n[un]=parseInt(r,10)});function w0(r){return F1(r)?366:365}ze.parseTwoDigitYear=function(r){return mt(r)+(mt(r)>68?1900:2e3)};var c4=pu("FullYear",!0);function hb(){return F1(this.year())}function pb(r,n,o,c,f,p,b){var k;return r<100&&r>=0?(k=new Date(r+400,n,o,c,f,p,b),isFinite(k.getFullYear())&&k.setFullYear(r)):k=new Date(r,n,o,c,f,p,b),k}function k0(r){var n,o;return r<100&&r>=0?(o=Array.prototype.slice.call(arguments),o[0]=r+400,n=new Date(Date.UTC.apply(null,o)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(r)):n=new Date(Date.UTC.apply(null,arguments)),n}function M1(r,n,o){var c=7+n-o,f=(7+k0(r,0,c).getUTCDay()-n)%7;return-f+c-1}function f4(r,n,o,c,f){var p=(7+o-c)%7,b=M1(r,c,f),k=1+7*(n-1)+p+b,S,O;return k<=0?(S=r-1,O=w0(S)+k):k>w0(r)?(S=r+1,O=k-w0(r)):(S=r,O=k),{year:S,dayOfYear:O}}function O0(r,n,o){var c=M1(r.year(),n,o),f=Math.floor((r.dayOfYear()-c-1)/7)+1,p,b;return f<1?(b=r.year()-1,p=f+sa(b,n,o)):f>sa(r.year(),n,o)?(p=f-sa(r.year(),n,o),b=r.year()+1):(b=r.year(),p=f),{week:p,year:b}}function sa(r,n,o){var c=M1(r,n,o),f=M1(r+1,n,o);return(w0(r)-c+f)/7}Ve("w",["ww",2],"wo","week");Ve("W",["WW",2],"Wo","isoWeek");cn("week","w");cn("isoWeek","W");fn("week",5);fn("isoWeek",5);Oe("w",Jt);Oe("ww",Jt,ri);Oe("W",Jt);Oe("WW",Jt,ri);F0(["w","ww","W","WW"],function(r,n,o,c){n[c.substr(0,1)]=mt(r)});function gb(r){return O0(r,this._week.dow,this._week.doy).week}var vb={dow:0,doy:6};function bb(){return this._week.dow}function mb(){return this._week.doy}function yb(r){var n=this.localeData().week(this);return r==null?n:this.add((r-n)*7,"d")}function Cb(r){var n=O0(this,1,4).week;return r==null?n:this.add((r-n)*7,"d")}Ve("d",0,"do","day");Ve("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});Ve("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});Ve("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});Ve("e",0,0,"weekday");Ve("E",0,0,"isoWeekday");cn("day","d");cn("weekday","e");cn("isoWeekday","E");fn("day",11);fn("weekday",11);fn("isoWeekday",11);Oe("d",Jt);Oe("e",Jt);Oe("E",Jt);Oe("dd",function(r,n){return n.weekdaysMinRegex(r)});Oe("ddd",function(r,n){return n.weekdaysShortRegex(r)});Oe("dddd",function(r,n){return n.weekdaysRegex(r)});F0(["dd","ddd","dddd"],function(r,n,o,c){var f=o._locale.weekdaysParse(r,c,o._strict);f!=null?n.d=f:ht(o).invalidWeekday=r});F0(["d","e","E"],function(r,n,o,c){n[c]=mt(r)});function wb(r,n){return typeof r!="string"?r:isNaN(r)?(r=n.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function xb(r,n){return typeof r=="string"?n.weekdaysParse(r)%7||7:isNaN(r)?null:r}function ah(r,n){return r.slice(n,7).concat(r.slice(0,n))}var Lb="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),d4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),_b="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),zb=B0,Sb=B0,Mb=B0;function kb(r,n){var o=Hi(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(n)?"format":"standalone"];return r===!0?ah(o,this._week.dow):r?o[r.day()]:o}function Ob(r){return r===!0?ah(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Tb(r){return r===!0?ah(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function Pb(r,n,o){var c,f,p,b=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)p=zo([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(p,"").toLocaleLowerCase();return o?n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1?f:null):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null):(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null):n==="dddd"?(f=yr.call(this._weekdaysParse,b),f!==-1||(f=yr.call(this._shortWeekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):n==="ddd"?(f=yr.call(this._shortWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._minWeekdaysParse,b),f!==-1?f:null)):(f=yr.call(this._minWeekdaysParse,b),f!==-1||(f=yr.call(this._weekdaysParse,b),f!==-1)?f:(f=yr.call(this._shortWeekdaysParse,b),f!==-1?f:null))}function Ab(r,n,o){var c,f,p;if(this._weekdaysParseExact)return Pb.call(this,r,n,o);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(f=zo([2e3,1]).day(c),o&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(f,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(f,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(f,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(p="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[c]=new RegExp(p.replace(".",""),"i")),o&&n==="dddd"&&this._fullWeekdaysParse[c].test(r))return c;if(o&&n==="ddd"&&this._shortWeekdaysParse[c].test(r))return c;if(o&&n==="dd"&&this._minWeekdaysParse[c].test(r))return c;if(!o&&this._weekdaysParse[c].test(r))return c}}function Eb(r){if(!this.isValid())return r!=null?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return r!=null?(r=wb(r,this.localeData()),this.add(r-n,"d")):n}function Ib(r){if(!this.isValid())return r!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return r==null?n:this.add(r-n,"d")}function Db(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var n=xb(r,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function Rb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(Tt(this,"_weekdaysRegex")||(this._weekdaysRegex=zb),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Nb(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Tt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sb),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $b(r){return this._weekdaysParseExact?(Tt(this,"_weekdaysRegex")||sh.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Tt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Mb),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sh(){function r(I,U){return U.length-I.length}var n=[],o=[],c=[],f=[],p,b,k,S,O;for(p=0;p<7;p++)b=zo([2e3,1]).day(p),k=Qn(this.weekdaysMin(b,"")),S=Qn(this.weekdaysShort(b,"")),O=Qn(this.weekdays(b,"")),n.push(k),o.push(S),c.push(O),f.push(k),f.push(S),f.push(O);n.sort(r),o.sort(r),c.sort(r),f.sort(r),this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i")}function lh(){return this.hours()%12||12}function Hb(){return this.hours()||24}Ve("H",["HH",2],0,"hour");Ve("h",["hh",2],0,lh);Ve("k",["kk",2],0,Hb);Ve("hmm",0,0,function(){return""+lh.apply(this)+Co(this.minutes(),2)});Ve("hmmss",0,0,function(){return""+lh.apply(this)+Co(this.minutes(),2)+Co(this.seconds(),2)});Ve("Hmm",0,0,function(){return""+this.hours()+Co(this.minutes(),2)});Ve("Hmmss",0,0,function(){return""+this.hours()+Co(this.minutes(),2)+Co(this.seconds(),2)});function h4(r,n){Ve(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}h4("a",!0);h4("A",!1);cn("hour","h");fn("hour",13);function p4(r,n){return n._meridiemParse}Oe("a",p4);Oe("A",p4);Oe("H",Jt);Oe("h",Jt);Oe("k",Jt);Oe("HH",Jt,ri);Oe("hh",Jt,ri);Oe("kk",Jt,ri);Oe("hmm",n4);Oe("hmmss",i4);Oe("Hmm",n4);Oe("Hmmss",i4);Yt(["H","HH"],Nr);Yt(["k","kk"],function(r,n,o){var c=mt(r);n[Nr]=c===24?0:c});Yt(["a","A"],function(r,n,o){o._isPm=o._locale.isPM(r),o._meridiem=r});Yt(["h","hh"],function(r,n,o){n[Nr]=mt(r),ht(o).bigHour=!0});Yt("hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c)),ht(o).bigHour=!0});Yt("hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f)),ht(o).bigHour=!0});Yt("Hmm",function(r,n,o){var c=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c))});Yt("Hmmss",function(r,n,o){var c=r.length-4,f=r.length-2;n[Nr]=mt(r.substr(0,c)),n[Ri]=mt(r.substr(c,2)),n[aa]=mt(r.substr(f))});function Bb(r){return(r+"").toLowerCase().charAt(0)==="p"}var Fb=/[ap]\.?m?\.?/i,Wb=pu("Hours",!0);function Ub(r,n,o){return r>11?o?"pm":"PM":o?"am":"AM"}var g4={calendar:A8,longDateFormat:R8,invalidDate:$8,ordinal:B8,dayOfMonthOrdinalParse:F8,relativeTime:U8,months:nb,monthsShort:o4,week:vb,weekdays:Lb,weekdaysMin:_b,weekdaysShort:d4,meridiemParse:Fb},nr={},p0={},T0;function Yb(r,n){var o,c=Math.min(r.length,n.length);for(o=0;o<c;o+=1)if(r[o]!==n[o])return o;return c}function Ep(r){return r&&r.toLowerCase().replace("_","-")}function Zb(r){for(var n=0,o,c,f,p;n<r.length;){for(p=Ep(r[n]).split("-"),o=p.length,c=Ep(r[n+1]),c=c?c.split("-"):null;o>0;){if(f=q1(p.slice(0,o).join("-")),f)return f;if(c&&c.length>=o&&Yb(p,c)>=o-1)break;o--}n++}return T0}function Vb(r){return r.match("^[^/\\\\]*$")!=null}function q1(r){var n=null,o;if(nr[r]===void 0&&typeof module!="undefined"&&module&&module.exports&&Vb(r))try{n=T0._abbr,o=require,o("./locale/"+r),Xa(n)}catch{nr[r]=null}return nr[r]}function Xa(r,n){var o;return r&&(En(n)?o=fa(r):o=uh(r,n),o?T0=o:typeof console!="undefined"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),T0._abbr}function uh(r,n){if(n!==null){var o,c=g4;if(n.abbr=r,nr[r]!=null)X2("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=nr[r]._config;else if(n.parentLocale!=null)if(nr[n.parentLocale]!=null)c=nr[n.parentLocale]._config;else if(o=q1(n.parentLocale),o!=null)c=o._config;else return p0[n.parentLocale]||(p0[n.parentLocale]=[]),p0[n.parentLocale].push({name:r,config:n}),null;return nr[r]=new th(zd(c,n)),p0[r]&&p0[r].forEach(function(f){uh(f.name,f.config)}),Xa(r),nr[r]}else return delete nr[r],null}function Gb(r,n){if(n!=null){var o,c,f=g4;nr[r]!=null&&nr[r].parentLocale!=null?nr[r].set(zd(nr[r]._config,n)):(c=q1(r),c!=null&&(f=c._config),n=zd(f,n),c==null&&(n.abbr=r),o=new th(n),o.parentLocale=nr[r],nr[r]=o),Xa(r)}else nr[r]!=null&&(nr[r].parentLocale!=null?(nr[r]=nr[r].parentLocale,r===Xa()&&Xa(r)):nr[r]!=null&&delete nr[r]);return nr[r]}function fa(r){var n;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return T0;if(!Hi(r)){if(n=q1(r),n)return n;r=[r]}return Zb(r)}function qb(){return Sd(nr)}function ch(r){var n,o=r._a;return o&&ht(r).overflow===-2&&(n=o[oa]<0||o[oa]>11?oa:o[bo]<1||o[bo]>G1(o[un],o[oa])?bo:o[Nr]<0||o[Nr]>24||o[Nr]===24&&(o[Ri]!==0||o[aa]!==0||o[Ys]!==0)?Nr:o[Ri]<0||o[Ri]>59?Ri:o[aa]<0||o[aa]>59?aa:o[Ys]<0||o[Ys]>999?Ys:-1,ht(r)._overflowDayOfYear&&(n<un||n>bo)&&(n=bo),ht(r)._overflowWeeks&&n===-1&&(n=eb),ht(r)._overflowWeekday&&n===-1&&(n=tb),ht(r).overflow=n),r}var jb=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Kb=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xb=/Z|[+-]\d\d(?::?\d\d)?/,h1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Qb=/^\/?Date\((-?\d+)/i,Jb=/^(?:(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{4}))$/,em={UT:0,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 v4(r){var n,o,c=r._i,f=jb.exec(c)||Kb.exec(c),p,b,k,S,O=h1.length,I=pd.length;if(f){for(ht(r).iso=!0,n=0,o=O;n<o;n++)if(h1[n][1].exec(f[1])){b=h1[n][0],p=h1[n][2]!==!1;break}if(b==null){r._isValid=!1;return}if(f[3]){for(n=0,o=I;n<o;n++)if(pd[n][1].exec(f[3])){k=(f[2]||" ")+pd[n][0];break}if(k==null){r._isValid=!1;return}}if(!p&&k!=null){r._isValid=!1;return}if(f[4])if(Xb.exec(f[4]))S="Z";else{r._isValid=!1;return}r._f=b+(k||"")+(S||""),dh(r)}else r._isValid=!1}function tm(r,n,o,c,f,p){var b=[rm(r),o4.indexOf(n),parseInt(o,10),parseInt(c,10),parseInt(f,10)];return p&&b.push(parseInt(p,10)),b}function rm(r){var n=parseInt(r,10);return n<=49?2e3+n:n<=999?1900+n:n}function nm(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function im(r,n,o){if(r){var c=d4.indexOf(r),f=new Date(n[0],n[1],n[2]).getDay();if(c!==f)return ht(o).weekdayMismatch=!0,o._isValid=!1,!1}return!0}function om(r,n,o){if(r)return em[r];if(n)return 0;var c=parseInt(o,10),f=c%100,p=(c-f)/100;return p*60+f}function b4(r){var n=Jb.exec(nm(r._i)),o;if(n){if(o=tm(n[4],n[3],n[2],n[5],n[6],n[7]),!im(n[1],o,r))return;r._a=o,r._tzm=om(n[8],n[9],n[10]),r._d=k0.apply(null,r._a),r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),ht(r).rfc2822=!0}else r._isValid=!1}function am(r){var n=Qb.exec(r._i);if(n!==null){r._d=new Date(+n[1]);return}if(v4(r),r._isValid===!1)delete r._isValid;else return;if(b4(r),r._isValid===!1)delete r._isValid;else return;r._strict?r._isValid=!1:ze.createFromInputFallback(r)}ze.createFromInputFallback=Ci("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(r){r._d=new Date(r._i+(r._useUTC?" UTC":""))});function Jl(r,n,o){return r!=null?r:n!=null?n:o}function sm(r){var n=new Date(ze.now());return r._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function fh(r){var n,o,c=[],f,p,b;if(!r._d){for(f=sm(r),r._w&&r._a[bo]==null&&r._a[oa]==null&&lm(r),r._dayOfYear!=null&&(b=Jl(r._a[un],f[un]),(r._dayOfYear>w0(b)||r._dayOfYear===0)&&(ht(r)._overflowDayOfYear=!0),o=k0(b,0,r._dayOfYear),r._a[oa]=o.getUTCMonth(),r._a[bo]=o.getUTCDate()),n=0;n<3&&r._a[n]==null;++n)r._a[n]=c[n]=f[n];for(;n<7;n++)r._a[n]=c[n]=r._a[n]==null?n===2?1:0:r._a[n];r._a[Nr]===24&&r._a[Ri]===0&&r._a[aa]===0&&r._a[Ys]===0&&(r._nextDay=!0,r._a[Nr]=0),r._d=(r._useUTC?k0:pb).apply(null,c),p=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Nr]=24),r._w&&typeof r._w.d!="undefined"&&r._w.d!==p&&(ht(r).weekdayMismatch=!0)}}function lm(r){var n,o,c,f,p,b,k,S,O;n=r._w,n.GG!=null||n.W!=null||n.E!=null?(p=1,b=4,o=Jl(n.GG,r._a[un],O0(Qt(),1,4).year),c=Jl(n.W,1),f=Jl(n.E,1),(f<1||f>7)&&(S=!0)):(p=r._locale._week.dow,b=r._locale._week.doy,O=O0(Qt(),p,b),o=Jl(n.gg,r._a[un],O.year),c=Jl(n.w,O.week),n.d!=null?(f=n.d,(f<0||f>6)&&(S=!0)):n.e!=null?(f=n.e+p,(n.e<0||n.e>6)&&(S=!0)):f=p),c<1||c>sa(o,p,b)?ht(r)._overflowWeeks=!0:S!=null?ht(r)._overflowWeekday=!0:(k=f4(o,c,f,p,b),r._a[un]=k.year,r._dayOfYear=k.dayOfYear)}ze.ISO_8601=function(){};ze.RFC_2822=function(){};function dh(r){if(r._f===ze.ISO_8601){v4(r);return}if(r._f===ze.RFC_2822){b4(r);return}r._a=[],ht(r).empty=!0;var n=""+r._i,o,c,f,p,b,k=n.length,S=0,O,I;for(f=Q2(r._f,r._locale).match(rh)||[],I=f.length,o=0;o<I;o++)p=f[o],c=(n.match(X8(p,r))||[])[0],c&&(b=n.substr(0,n.indexOf(c)),b.length>0&&ht(r).unusedInput.push(b),n=n.slice(n.indexOf(c)+c.length),S+=c.length),ru[p]?(c?ht(r).empty=!1:ht(r).unusedTokens.push(p),J8(p,c,r)):r._strict&&!c&&ht(r).unusedTokens.push(p);ht(r).charsLeftOver=k-S,n.length>0&&ht(r).unusedInput.push(n),r._a[Nr]<=12&&ht(r).bigHour===!0&&r._a[Nr]>0&&(ht(r).bigHour=void 0),ht(r).parsedDateParts=r._a.slice(0),ht(r).meridiem=r._meridiem,r._a[Nr]=um(r._locale,r._a[Nr],r._meridiem),O=ht(r).era,O!==null&&(r._a[un]=r._locale.erasConvertYear(O,r._a[un])),fh(r),ch(r)}function um(r,n,o){var c;return o==null?n:r.meridiemHour!=null?r.meridiemHour(n,o):(r.isPM!=null&&(c=r.isPM(o),c&&n<12&&(n+=12),!c&&n===12&&(n=0)),n)}function cm(r){var n,o,c,f,p,b,k=!1,S=r._f.length;if(S===0){ht(r).invalidFormat=!0,r._d=new Date(NaN);return}for(f=0;f<S;f++)p=0,b=!1,n=eh({},r),r._useUTC!=null&&(n._useUTC=r._useUTC),n._f=r._f[f],dh(n),Jd(n)&&(b=!0),p+=ht(n).charsLeftOver,p+=ht(n).unusedTokens.length*10,ht(n).score=p,k?p<c&&(c=p,o=n):(c==null||p<c||b)&&(c=p,o=n,b&&(k=!0));ja(r,o||n)}function fm(r){if(!r._d){var n=nh(r._i),o=n.day===void 0?n.date:n.day;r._a=j2([n.year,n.month,o,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),fh(r)}}function dm(r){var n=new H0(ch(m4(r)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function m4(r){var n=r._i,o=r._f;return r._locale=r._locale||fa(r._l),n===null||o===void 0&&n===""?B1({nullInput:!0}):(typeof n=="string"&&(r._i=n=r._locale.preparse(n)),Bi(n)?new H0(ch(n)):($0(n)?r._d=n:Hi(o)?cm(r):o?dh(r):hm(r),Jd(r)||(r._d=null),r))}function hm(r){var n=r._i;En(n)?r._d=new Date(ze.now()):$0(n)?r._d=new Date(n.valueOf()):typeof n=="string"?am(r):Hi(n)?(r._a=j2(n.slice(0),function(o){return parseInt(o,10)}),fh(r)):Vs(n)?fm(r):la(n)?r._d=new Date(n):ze.createFromInputFallback(r)}function y4(r,n,o,c,f){var p={};return(n===!0||n===!1)&&(c=n,n=void 0),(o===!0||o===!1)&&(c=o,o=void 0),(Vs(r)&&Qd(r)||Hi(r)&&r.length===0)&&(r=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=f,p._l=o,p._i=r,p._f=n,p._strict=c,dm(p)}function Qt(r,n,o,c){return y4(r,n,o,c,!1)}var pm=Ci("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r<this?this:r:B1()}),gm=Ci("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var r=Qt.apply(null,arguments);return this.isValid()&&r.isValid()?r>this?this:r:B1()});function C4(r,n){var o,c;if(n.length===1&&Hi(n[0])&&(n=n[0]),!n.length)return Qt();for(o=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][r](o))&&(o=n[c]);return o}function vm(){var r=[].slice.call(arguments,0);return C4("isBefore",r)}function bm(){var r=[].slice.call(arguments,0);return C4("isAfter",r)}var mm=function(){return Date.now?Date.now():+new Date},g0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ym(r){var n,o=!1,c,f=g0.length;for(n in r)if(Tt(r,n)&&!(yr.call(g0,n)!==-1&&(r[n]==null||!isNaN(r[n]))))return!1;for(c=0;c<f;++c)if(r[g0[c]]){if(o)return!1;parseFloat(r[g0[c]])!==mt(r[g0[c]])&&(o=!0)}return!0}function Cm(){return this._isValid}function wm(){return Wi(NaN)}function j1(r){var n=nh(r),o=n.year||0,c=n.quarter||0,f=n.month||0,p=n.week||n.isoWeek||0,b=n.day||0,k=n.hour||0,S=n.minute||0,O=n.second||0,I=n.millisecond||0;this._isValid=ym(n),this._milliseconds=+I+O*1e3+S*6e4+k*1e3*60*60,this._days=+b+p*7,this._months=+f+c*3+o*12,this._data={},this._locale=fa(),this._bubble()}function b1(r){return r instanceof j1}function kd(r){return r<0?Math.round(-1*r)*-1:Math.round(r)}function xm(r,n,o){var c=Math.min(r.length,n.length),f=Math.abs(r.length-n.length),p=0,b;for(b=0;b<c;b++)(o&&r[b]!==n[b]||!o&&mt(r[b])!==mt(n[b]))&&p++;return p+f}function w4(r,n){Ve(r,0,0,function(){var o=this.utcOffset(),c="+";return o<0&&(o=-o,c="-"),c+Co(~~(o/60),2)+n+Co(~~o%60,2)})}w4("Z",":");w4("ZZ","");Oe("Z",V1);Oe("ZZ",V1);Yt(["Z","ZZ"],function(r,n,o){o._useUTC=!0,o._tzm=hh(V1,r)});var Lm=/([\+\-]|\d\d)/gi;function hh(r,n){var o=(n||"").match(r),c,f,p;return o===null?null:(c=o[o.length-1]||[],f=(c+"").match(Lm)||["-",0,0],p=+(f[1]*60)+mt(f[2]),p===0?0:f[0]==="+"?p:-p)}function ph(r,n){var o,c;return n._isUTC?(o=n.clone(),c=(Bi(r)||$0(r)?r.valueOf():Qt(r).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+c),ze.updateOffset(o,!1),o):Qt(r).local()}function Od(r){return-Math.round(r._d.getTimezoneOffset())}ze.updateOffset=function(){};function _m(r,n,o){var c=this._offset||0,f;if(!this.isValid())return r!=null?this:NaN;if(r!=null){if(typeof r=="string"){if(r=hh(V1,r),r===null)return this}else Math.abs(r)<16&&!o&&(r=r*60);return!this._isUTC&&n&&(f=Od(this)),this._offset=r,this._isUTC=!0,f!=null&&this.add(f,"m"),c!==r&&(!n||this._changeInProgress?_4(this,Wi(r-c,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ze.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?c:Od(this)}function zm(r,n){return r!=null?(typeof r!="string"&&(r=-r),this.utcOffset(r,n),this):-this.utcOffset()}function Sm(r){return this.utcOffset(0,r)}function Mm(r){return this._isUTC&&(this.utcOffset(0,r),this._isUTC=!1,r&&this.subtract(Od(this),"m")),this}function km(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var r=hh(j8,this._i);r!=null?this.utcOffset(r):this.utcOffset(0,!0)}return this}function Om(r){return this.isValid()?(r=r?Qt(r).utcOffset():0,(this.utcOffset()-r)%60===0):!1}function Tm(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Pm(){if(!En(this._isDSTShifted))return this._isDSTShifted;var r={},n;return eh(r,this),r=m4(r),r._a?(n=r._isUTC?zo(r._a):Qt(r._a),this._isDSTShifted=this.isValid()&&xm(r._a,n.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Am(){return this.isValid()?!this._isUTC:!1}function Em(){return this.isValid()?this._isUTC:!1}function x4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Im=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dm=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wi(r,n){var o=r,c=null,f,p,b;return b1(r)?o={ms:r._milliseconds,d:r._days,M:r._months}:la(r)||!isNaN(+r)?(o={},n?o[n]=+r:o.milliseconds=+r):(c=Im.exec(r))?(f=c[1]==="-"?-1:1,o={y:0,d:mt(c[bo])*f,h:mt(c[Nr])*f,m:mt(c[Ri])*f,s:mt(c[aa])*f,ms:mt(kd(c[Ys]*1e3))*f}):(c=Dm.exec(r))?(f=c[1]==="-"?-1:1,o={y:Ws(c[2],f),M:Ws(c[3],f),w:Ws(c[4],f),d:Ws(c[5],f),h:Ws(c[6],f),m:Ws(c[7],f),s:Ws(c[8],f)}):o==null?o={}:typeof o=="object"&&("from"in o||"to"in o)&&(b=Rm(Qt(o.from),Qt(o.to)),o={},o.ms=b.milliseconds,o.M=b.months),p=new j1(o),b1(r)&&Tt(r,"_locale")&&(p._locale=r._locale),b1(r)&&Tt(r,"_isValid")&&(p._isValid=r._isValid),p}Wi.fn=j1.prototype;Wi.invalid=wm;function Ws(r,n){var o=r&&parseFloat(r.replace(",","."));return(isNaN(o)?0:o)*n}function Ip(r,n){var o={};return o.months=n.month()-r.month()+(n.year()-r.year())*12,r.clone().add(o.months,"M").isAfter(n)&&--o.months,o.milliseconds=+n-+r.clone().add(o.months,"M"),o}function Rm(r,n){var o;return r.isValid()&&n.isValid()?(n=ph(n,r),r.isBefore(n)?o=Ip(r,n):(o=Ip(n,r),o.milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0}}function L4(r,n){return function(o,c){var f,p;return c!==null&&!isNaN(+c)&&(X2(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=o,o=c,c=p),f=Wi(o,c),_4(this,f,r),this}}function _4(r,n,o,c){var f=n._milliseconds,p=kd(n._days),b=kd(n._months);!r.isValid()||(c=c==null?!0:c,b&&s4(r,z1(r,"Month")+b*o),p&&e4(r,"Date",z1(r,"Date")+p*o),f&&r._d.setTime(r._d.valueOf()+f*o),c&&ze.updateOffset(r,p||b))}var Nm=L4(1,"add"),$m=L4(-1,"subtract");function z4(r){return typeof r=="string"||r instanceof String}function Hm(r){return Bi(r)||$0(r)||z4(r)||la(r)||Fm(r)||Bm(r)||r===null||r===void 0}function Bm(r){var n=Vs(r)&&!Qd(r),o=!1,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],f,p,b=c.length;for(f=0;f<b;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function Fm(r){var n=Hi(r),o=!1;return n&&(o=r.filter(function(c){return!la(c)&&z4(r)}).length===0),n&&o}function Wm(r){var n=Vs(r)&&!Qd(r),o=!1,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,p;for(f=0;f<c.length;f+=1)p=c[f],o=o||Tt(r,p);return n&&o}function Um(r,n){var o=r.diff(n,"days",!0);return o<-6?"sameElse":o<-1?"lastWeek":o<0?"lastDay":o<1?"sameDay":o<2?"nextDay":o<7?"nextWeek":"sameElse"}function Ym(r,n){arguments.length===1&&(arguments[0]?Hm(arguments[0])?(r=arguments[0],n=void 0):Wm(arguments[0])&&(n=arguments[0],r=void 0):(r=void 0,n=void 0));var o=r||Qt(),c=ph(o,this).startOf("day"),f=ze.calendarFormat(this,c)||"sameElse",p=n&&(So(n[f])?n[f].call(this,o):n[f]);return this.format(p||this.localeData().calendar(f,this,Qt(o)))}function Zm(){return new H0(this)}function Vm(r,n){var o=Bi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=wi(n)||"millisecond",n==="millisecond"?this.valueOf()>o.valueOf():o.valueOf()<this.clone().startOf(n).valueOf()):!1}function Gm(r,n){var o=Bi(r)?r:Qt(r);return this.isValid()&&o.isValid()?(n=wi(n)||"millisecond",n==="millisecond"?this.valueOf()<o.valueOf():this.clone().endOf(n).valueOf()<o.valueOf()):!1}function qm(r,n,o,c){var f=Bi(r)?r:Qt(r),p=Bi(n)?n:Qt(n);return this.isValid()&&f.isValid()&&p.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(f,o):!this.isBefore(f,o))&&(c[1]===")"?this.isBefore(p,o):!this.isAfter(p,o))):!1}function jm(r,n){var o=Bi(r)?r:Qt(r),c;return this.isValid()&&o.isValid()?(n=wi(n)||"millisecond",n==="millisecond"?this.valueOf()===o.valueOf():(c=o.valueOf(),this.clone().startOf(n).valueOf()<=c&&c<=this.clone().endOf(n).valueOf())):!1}function Km(r,n){return this.isSame(r,n)||this.isAfter(r,n)}function Xm(r,n){return this.isSame(r,n)||this.isBefore(r,n)}function Qm(r,n,o){var c,f,p;if(!this.isValid())return NaN;if(c=ph(r,this),!c.isValid())return NaN;switch(f=(c.utcOffset()-this.utcOffset())*6e4,n=wi(n),n){case"year":p=m1(this,c)/12;break;case"month":p=m1(this,c);break;case"quarter":p=m1(this,c)/3;break;case"second":p=(this-c)/1e3;break;case"minute":p=(this-c)/6e4;break;case"hour":p=(this-c)/36e5;break;case"day":p=(this-c-f)/864e5;break;case"week":p=(this-c-f)/6048e5;break;default:p=this-c}return o?p:vi(p)}function m1(r,n){if(r.date()<n.date())return-m1(n,r);var o=(n.year()-r.year())*12+(n.month()-r.month()),c=r.clone().add(o,"months"),f,p;return n-c<0?(f=r.clone().add(o-1,"months"),p=(n-c)/(c-f)):(f=r.clone().add(o+1,"months"),p=(n-c)/(f-c)),-(o+p)||0}ze.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ze.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Jm(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ey(r){if(!this.isValid())return null;var n=r!==!0,o=n?this.clone().utc():this;return o.year()<0||o.year()>9999?v1(o,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):So(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",v1(o,"Z")):v1(o,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ty(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",n="",o,c,f,p;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),o="["+r+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",f="-MM-DD[T]HH:mm:ss.SSS",p=n+'[")]',this.format(o+c+f+p)}function ry(r){r||(r=this.isUtc()?ze.defaultFormatUtc:ze.defaultFormat);var n=v1(this,r);return this.localeData().postformat(n)}function ny(r,n){return this.isValid()&&(Bi(r)&&r.isValid()||Qt(r).isValid())?Wi({to:this,from:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function iy(r){return this.from(Qt(),r)}function oy(r,n){return this.isValid()&&(Bi(r)&&r.isValid()||Qt(r).isValid())?Wi({from:this,to:r}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function ay(r){return this.to(Qt(),r)}function S4(r){var n;return r===void 0?this._locale._abbr:(n=fa(r),n!=null&&(this._locale=n),this)}var M4=Ci("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function k4(){return this._locale}var k1=1e3,nu=60*k1,O1=60*nu,O4=(365*400+97)*24*O1;function iu(r,n){return(r%n+n)%n}function T4(r,n,o){return r<100&&r>=0?new Date(r+400,n,o)-O4:new Date(r,n,o).valueOf()}function P4(r,n,o){return r<100&&r>=0?Date.UTC(r+400,n,o)-O4:Date.UTC(r,n,o)}function sy(r){var n,o;if(r=wi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?P4:T4,r){case"year":n=o(this.year(),0,1);break;case"quarter":n=o(this.year(),this.month()-this.month()%3,1);break;case"month":n=o(this.year(),this.month(),1);break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=o(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=iu(n+(this._isUTC?0:this.utcOffset()*nu),O1);break;case"minute":n=this._d.valueOf(),n-=iu(n,nu);break;case"second":n=this._d.valueOf(),n-=iu(n,k1);break}return this._d.setTime(n),ze.updateOffset(this,!0),this}function ly(r){var n,o;if(r=wi(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(o=this._isUTC?P4:T4,r){case"year":n=o(this.year()+1,0,1)-1;break;case"quarter":n=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=o(this.year(),this.month()+1,1)-1;break;case"week":n=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=O1-iu(n+(this._isUTC?0:this.utcOffset()*nu),O1)-1;break;case"minute":n=this._d.valueOf(),n+=nu-iu(n,nu)-1;break;case"second":n=this._d.valueOf(),n+=k1-iu(n,k1)-1;break}return this._d.setTime(n),ze.updateOffset(this,!0),this}function uy(){return this._d.valueOf()-(this._offset||0)*6e4}function cy(){return Math.floor(this.valueOf()/1e3)}function fy(){return new Date(this.valueOf())}function dy(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function hy(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function py(){return this.isValid()?this.toISOString():null}function gy(){return Jd(this)}function vy(){return ja({},ht(this))}function by(){return ht(this).overflow}function my(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ve("N",0,0,"eraAbbr");Ve("NN",0,0,"eraAbbr");Ve("NNN",0,0,"eraAbbr");Ve("NNNN",0,0,"eraName");Ve("NNNNN",0,0,"eraNarrow");Ve("y",["y",1],"yo","eraYear");Ve("y",["yy",2],0,"eraYear");Ve("y",["yyy",3],0,"eraYear");Ve("y",["yyyy",4],0,"eraYear");Oe("N",gh);Oe("NN",gh);Oe("NNN",gh);Oe("NNNN",Oy);Oe("NNNNN",Ty);Yt(["N","NN","NNN","NNNN","NNNNN"],function(r,n,o,c){var f=o._locale.erasParse(r,c,o._strict);f?ht(o).era=f:ht(o).invalidEra=r});Oe("y",gu);Oe("yy",gu);Oe("yyy",gu);Oe("yyyy",gu);Oe("yo",Py);Yt(["y","yy","yyy","yyyy"],un);Yt(["yo"],function(r,n,o,c){var f;o._locale._eraYearOrdinalRegex&&(f=r.match(o._locale._eraYearOrdinalRegex)),o._locale.eraYearOrdinalParse?n[un]=o._locale.eraYearOrdinalParse(r,f):n[un]=parseInt(r,10)});function yy(r,n){var o,c,f,p=this._eras||fa("en")._eras;for(o=0,c=p.length;o<c;++o){switch(typeof p[o].since){case"string":f=ze(p[o].since).startOf("day"),p[o].since=f.valueOf();break}switch(typeof p[o].until){case"undefined":p[o].until=1/0;break;case"string":f=ze(p[o].until).startOf("day").valueOf(),p[o].until=f.valueOf();break}}return p}function Cy(r,n,o){var c,f,p=this.eras(),b,k,S;for(r=r.toUpperCase(),c=0,f=p.length;c<f;++c)if(b=p[c].name.toUpperCase(),k=p[c].abbr.toUpperCase(),S=p[c].narrow.toUpperCase(),o)switch(n){case"N":case"NN":case"NNN":if(k===r)return p[c];break;case"NNNN":if(b===r)return p[c];break;case"NNNNN":if(S===r)return p[c];break}else if([b,k,S].indexOf(r)>=0)return p[c]}function wy(r,n){var o=r.since<=r.until?1:-1;return n===void 0?ze(r.since).year():ze(r.since).year()+(n-r.offset)*o}function xy(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].name;return""}function Ly(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].narrow;return""}function _y(){var r,n,o,c=this.localeData().eras();for(r=0,n=c.length;r<n;++r)if(o=this.clone().startOf("day").valueOf(),c[r].since<=o&&o<=c[r].until||c[r].until<=o&&o<=c[r].since)return c[r].abbr;return""}function zy(){var r,n,o,c,f=this.localeData().eras();for(r=0,n=f.length;r<n;++r)if(o=f[r].since<=f[r].until?1:-1,c=this.clone().startOf("day").valueOf(),f[r].since<=c&&c<=f[r].until||f[r].until<=c&&c<=f[r].since)return(this.year()-ze(f[r].since).year())*o+f[r].offset;return this.year()}function Sy(r){return Tt(this,"_erasNameRegex")||vh.call(this),r?this._erasNameRegex:this._erasRegex}function My(r){return Tt(this,"_erasAbbrRegex")||vh.call(this),r?this._erasAbbrRegex:this._erasRegex}function ky(r){return Tt(this,"_erasNarrowRegex")||vh.call(this),r?this._erasNarrowRegex:this._erasRegex}function gh(r,n){return n.erasAbbrRegex(r)}function Oy(r,n){return n.erasNameRegex(r)}function Ty(r,n){return n.erasNarrowRegex(r)}function Py(r,n){return n._eraYearOrdinalRegex||gu}function vh(){var r=[],n=[],o=[],c=[],f,p,b=this.eras();for(f=0,p=b.length;f<p;++f)n.push(Qn(b[f].name)),r.push(Qn(b[f].abbr)),o.push(Qn(b[f].narrow)),c.push(Qn(b[f].name)),c.push(Qn(b[f].abbr)),c.push(Qn(b[f].narrow));this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}Ve(0,["gg",2],0,function(){return this.weekYear()%100});Ve(0,["GG",2],0,function(){return this.isoWeekYear()%100});function K1(r,n){Ve(0,[r,r.length],0,n)}K1("gggg","weekYear");K1("ggggg","weekYear");K1("GGGG","isoWeekYear");K1("GGGGG","isoWeekYear");cn("weekYear","gg");cn("isoWeekYear","GG");fn("weekYear",1);fn("isoWeekYear",1);Oe("G",Z1);Oe("g",Z1);Oe("GG",Jt,ri);Oe("gg",Jt,ri);Oe("GGGG",oh,ih);Oe("gggg",oh,ih);Oe("GGGGG",Y1,W1);Oe("ggggg",Y1,W1);F0(["gggg","ggggg","GGGG","GGGGG"],function(r,n,o,c){n[c.substr(0,2)]=mt(r)});F0(["gg","GG"],function(r,n,o,c){n[c]=ze.parseTwoDigitYear(r)});function Ay(r){return A4.call(this,r,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ey(r){return A4.call(this,r,this.isoWeek(),this.isoWeekday(),1,4)}function Iy(){return sa(this.year(),1,4)}function Dy(){return sa(this.isoWeekYear(),1,4)}function Ry(){var r=this.localeData()._week;return sa(this.year(),r.dow,r.doy)}function Ny(){var r=this.localeData()._week;return sa(this.weekYear(),r.dow,r.doy)}function A4(r,n,o,c,f){var p;return r==null?O0(this,c,f).year:(p=sa(r,c,f),n>p&&(n=p),$y.call(this,r,n,o,c,f))}function $y(r,n,o,c,f){var p=f4(r,n,o,c,f),b=k0(p.year,0,p.dayOfYear);return this.year(b.getUTCFullYear()),this.month(b.getUTCMonth()),this.date(b.getUTCDate()),this}Ve("Q",0,"Qo","quarter");cn("quarter","Q");fn("quarter",7);Oe("Q",t4);Yt("Q",function(r,n){n[oa]=(mt(r)-1)*3});function Hy(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}Ve("D",["DD",2],"Do","date");cn("date","D");fn("date",9);Oe("D",Jt);Oe("DD",Jt,ri);Oe("Do",function(r,n){return r?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient});Yt(["D","DD"],bo);Yt("Do",function(r,n){n[bo]=mt(r.match(Jt)[0])});var E4=pu("Date",!0);Ve("DDD",["DDDD",3],"DDDo","dayOfYear");cn("dayOfYear","DDD");fn("dayOfYear",4);Oe("DDD",U1);Oe("DDDD",r4);Yt(["DDD","DDDD"],function(r,n,o){o._dayOfYear=mt(r)});function By(r){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?n:this.add(r-n,"d")}Ve("m",["mm",2],0,"minute");cn("minute","m");fn("minute",14);Oe("m",Jt);Oe("mm",Jt,ri);Yt(["m","mm"],Ri);var Fy=pu("Minutes",!1);Ve("s",["ss",2],0,"second");cn("second","s");fn("second",15);Oe("s",Jt);Oe("ss",Jt,ri);Yt(["s","ss"],aa);var Wy=pu("Seconds",!1);Ve("S",0,0,function(){return~~(this.millisecond()/100)});Ve(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Ve(0,["SSS",3],0,"millisecond");Ve(0,["SSSS",4],0,function(){return this.millisecond()*10});Ve(0,["SSSSS",5],0,function(){return this.millisecond()*100});Ve(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Ve(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Ve(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Ve(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});cn("millisecond","ms");fn("millisecond",16);Oe("S",U1,t4);Oe("SS",U1,ri);Oe("SSS",U1,r4);var Ka,I4;for(Ka="SSSS";Ka.length<=9;Ka+="S")Oe(Ka,gu);function Uy(r,n){n[Ys]=mt(("0."+r)*1e3)}for(Ka="S";Ka.length<=9;Ka+="S")Yt(Ka,Uy);I4=pu("Milliseconds",!1);Ve("z",0,0,"zoneAbbr");Ve("zz",0,0,"zoneName");function Yy(){return this._isUTC?"UTC":""}function Zy(){return this._isUTC?"Coordinated Universal Time":""}var ue=H0.prototype;ue.add=Nm;ue.calendar=Ym;ue.clone=Zm;ue.diff=Qm;ue.endOf=ly;ue.format=ry;ue.from=ny;ue.fromNow=iy;ue.to=oy;ue.toNow=ay;ue.get=G8;ue.invalidAt=by;ue.isAfter=Vm;ue.isBefore=Gm;ue.isBetween=qm;ue.isSame=jm;ue.isSameOrAfter=Km;ue.isSameOrBefore=Xm;ue.isValid=gy;ue.lang=M4;ue.locale=S4;ue.localeData=k4;ue.max=gm;ue.min=pm;ue.parsingFlags=vy;ue.set=q8;ue.startOf=sy;ue.subtract=$m;ue.toArray=dy;ue.toObject=hy;ue.toDate=fy;ue.toISOString=ey;ue.inspect=ty;typeof Symbol!="undefined"&&Symbol.for!=null&&(ue[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ue.toJSON=py;ue.toString=Jm;ue.unix=cy;ue.valueOf=uy;ue.creationData=my;ue.eraName=xy;ue.eraNarrow=Ly;ue.eraAbbr=_y;ue.eraYear=zy;ue.year=c4;ue.isLeapYear=hb;ue.weekYear=Ay;ue.isoWeekYear=Ey;ue.quarter=ue.quarters=Hy;ue.month=l4;ue.daysInMonth=cb;ue.week=ue.weeks=yb;ue.isoWeek=ue.isoWeeks=Cb;ue.weeksInYear=Ry;ue.weeksInWeekYear=Ny;ue.isoWeeksInYear=Iy;ue.isoWeeksInISOWeekYear=Dy;ue.date=E4;ue.day=ue.days=Eb;ue.weekday=Ib;ue.isoWeekday=Db;ue.dayOfYear=By;ue.hour=ue.hours=Wb;ue.minute=ue.minutes=Fy;ue.second=ue.seconds=Wy;ue.millisecond=ue.milliseconds=I4;ue.utcOffset=_m;ue.utc=Sm;ue.local=Mm;ue.parseZone=km;ue.hasAlignedHourOffset=Om;ue.isDST=Tm;ue.isLocal=Am;ue.isUtcOffset=Em;ue.isUtc=x4;ue.isUTC=x4;ue.zoneAbbr=Yy;ue.zoneName=Zy;ue.dates=Ci("dates accessor is deprecated. Use date instead.",E4);ue.months=Ci("months accessor is deprecated. Use month instead",l4);ue.years=Ci("years accessor is deprecated. Use year instead",c4);ue.zone=Ci("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",zm);ue.isDSTShifted=Ci("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Pm);function Vy(r){return Qt(r*1e3)}function Gy(){return Qt.apply(null,arguments).parseZone()}function D4(r){return r}var Pt=th.prototype;Pt.calendar=E8;Pt.longDateFormat=N8;Pt.invalidDate=H8;Pt.ordinal=W8;Pt.preparse=D4;Pt.postformat=D4;Pt.relativeTime=Y8;Pt.pastFuture=Z8;Pt.set=P8;Pt.eras=yy;Pt.erasParse=Cy;Pt.erasConvertYear=wy;Pt.erasAbbrRegex=My;Pt.erasNameRegex=Sy;Pt.erasNarrowRegex=ky;Pt.months=ab;Pt.monthsShort=sb;Pt.monthsParse=ub;Pt.monthsRegex=db;Pt.monthsShortRegex=fb;Pt.week=gb;Pt.firstDayOfYear=mb;Pt.firstDayOfWeek=bb;Pt.weekdays=kb;Pt.weekdaysMin=Tb;Pt.weekdaysShort=Ob;Pt.weekdaysParse=Ab;Pt.weekdaysRegex=Rb;Pt.weekdaysShortRegex=Nb;Pt.weekdaysMinRegex=$b;Pt.isPM=Bb;Pt.meridiem=Ub;function T1(r,n,o,c){var f=fa(),p=zo().set(c,n);return f[o](p,r)}function R4(r,n,o){if(la(r)&&(n=r,r=void 0),r=r||"",n!=null)return T1(r,n,o,"month");var c,f=[];for(c=0;c<12;c++)f[c]=T1(r,c,o,"month");return f}function bh(r,n,o,c){typeof r=="boolean"?(la(n)&&(o=n,n=void 0),n=n||""):(n=r,o=n,r=!1,la(n)&&(o=n,n=void 0),n=n||"");var f=fa(),p=r?f._week.dow:0,b,k=[];if(o!=null)return T1(n,(o+p)%7,c,"day");for(b=0;b<7;b++)k[b]=T1(n,(b+p)%7,c,"day");return k}function qy(r,n){return R4(r,n,"months")}function jy(r,n){return R4(r,n,"monthsShort")}function Ky(r,n,o){return bh(r,n,o,"weekdays")}function Xy(r,n,o){return bh(r,n,o,"weekdaysShort")}function Qy(r,n,o){return bh(r,n,o,"weekdaysMin")}Xa("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var n=r%10,o=mt(r%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return r+o}});ze.lang=Ci("moment.lang is deprecated. Use moment.locale instead.",Xa);ze.langData=Ci("moment.langData is deprecated. Use moment.localeData instead.",fa);var ra=Math.abs;function Jy(){var r=this._data;return this._milliseconds=ra(this._milliseconds),this._days=ra(this._days),this._months=ra(this._months),r.milliseconds=ra(r.milliseconds),r.seconds=ra(r.seconds),r.minutes=ra(r.minutes),r.hours=ra(r.hours),r.months=ra(r.months),r.years=ra(r.years),this}function N4(r,n,o,c){var f=Wi(n,o);return r._milliseconds+=c*f._milliseconds,r._days+=c*f._days,r._months+=c*f._months,r._bubble()}function eC(r,n){return N4(this,r,n,1)}function tC(r,n){return N4(this,r,n,-1)}function Dp(r){return r<0?Math.floor(r):Math.ceil(r)}function rC(){var r=this._milliseconds,n=this._days,o=this._months,c=this._data,f,p,b,k,S;return r>=0&&n>=0&&o>=0||r<=0&&n<=0&&o<=0||(r+=Dp(Td(o)+n)*864e5,n=0,o=0),c.milliseconds=r%1e3,f=vi(r/1e3),c.seconds=f%60,p=vi(f/60),c.minutes=p%60,b=vi(p/60),c.hours=b%24,n+=vi(b/24),S=vi($4(n)),o+=S,n-=Dp(Td(S)),k=vi(o/12),o%=12,c.days=n,c.months=o,c.years=k,this}function $4(r){return r*4800/146097}function Td(r){return r*146097/4800}function nC(r){if(!this.isValid())return NaN;var n,o,c=this._milliseconds;if(r=wi(r),r==="month"||r==="quarter"||r==="year")switch(n=this._days+c/864e5,o=this._months+$4(n),r){case"month":return o;case"quarter":return o/3;case"year":return o/12}else switch(n=this._days+Math.round(Td(this._months)),r){case"week":return n/7+c/6048e5;case"day":return n+c/864e5;case"hour":return n*24+c/36e5;case"minute":return n*1440+c/6e4;case"second":return n*86400+c/1e3;case"millisecond":return Math.floor(n*864e5)+c;default:throw new Error("Unknown unit "+r)}}function iC(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+mt(this._months/12)*31536e6:NaN}function da(r){return function(){return this.as(r)}}var oC=da("ms"),aC=da("s"),sC=da("m"),lC=da("h"),uC=da("d"),cC=da("w"),fC=da("M"),dC=da("Q"),hC=da("y");function pC(){return Wi(this)}function gC(r){return r=wi(r),this.isValid()?this[r+"s"]():NaN}function Xs(r){return function(){return this.isValid()?this._data[r]:NaN}}var vC=Xs("milliseconds"),bC=Xs("seconds"),mC=Xs("minutes"),yC=Xs("hours"),CC=Xs("days"),wC=Xs("months"),xC=Xs("years");function LC(){return vi(this.days()/7)}var na=Math.round,eu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function _C(r,n,o,c,f){return f.relativeTime(n||1,!!o,r,c)}function zC(r,n,o,c){var f=Wi(r).abs(),p=na(f.as("s")),b=na(f.as("m")),k=na(f.as("h")),S=na(f.as("d")),O=na(f.as("M")),I=na(f.as("w")),U=na(f.as("y")),q=p<=o.ss&&["s",p]||p<o.s&&["ss",p]||b<=1&&["m"]||b<o.m&&["mm",b]||k<=1&&["h"]||k<o.h&&["hh",k]||S<=1&&["d"]||S<o.d&&["dd",S];return o.w!=null&&(q=q||I<=1&&["w"]||I<o.w&&["ww",I]),q=q||O<=1&&["M"]||O<o.M&&["MM",O]||U<=1&&["y"]||["yy",U],q[2]=n,q[3]=+r>0,q[4]=c,_C.apply(null,q)}function SC(r){return r===void 0?na:typeof r=="function"?(na=r,!0):!1}function MC(r,n){return eu[r]===void 0?!1:n===void 0?eu[r]:(eu[r]=n,r==="s"&&(eu.ss=n-1),!0)}function kC(r,n){if(!this.isValid())return this.localeData().invalidDate();var o=!1,c=eu,f,p;return typeof r=="object"&&(n=r,r=!1),typeof r=="boolean"&&(o=r),typeof n=="object"&&(c=Object.assign({},eu,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),f=this.localeData(),p=zC(this,!o,c,f),o&&(p=f.pastFuture(+this,p)),f.postformat(p)}var gd=Math.abs;function Kl(r){return(r>0)-(r<0)||+r}function X1(){if(!this.isValid())return this.localeData().invalidDate();var r=gd(this._milliseconds)/1e3,n=gd(this._days),o=gd(this._months),c,f,p,b,k=this.asSeconds(),S,O,I,U;return k?(c=vi(r/60),f=vi(c/60),r%=60,c%=60,p=vi(o/12),o%=12,b=r?r.toFixed(3).replace(/\.?0+$/,""):"",S=k<0?"-":"",O=Kl(this._months)!==Kl(k)?"-":"",I=Kl(this._days)!==Kl(k)?"-":"",U=Kl(this._milliseconds)!==Kl(k)?"-":"",S+"P"+(p?O+p+"Y":"")+(o?O+o+"M":"")+(n?I+n+"D":"")+(f||c||r?"T":"")+(f?U+f+"H":"")+(c?U+c+"M":"")+(r?U+b+"S":"")):"P0D"}var St=j1.prototype;St.isValid=Cm;St.abs=Jy;St.add=eC;St.subtract=tC;St.as=nC;St.asMilliseconds=oC;St.asSeconds=aC;St.asMinutes=sC;St.asHours=lC;St.asDays=uC;St.asWeeks=cC;St.asMonths=fC;St.asQuarters=dC;St.asYears=hC;St.valueOf=iC;St._bubble=rC;St.clone=pC;St.get=gC;St.milliseconds=vC;St.seconds=bC;St.minutes=mC;St.hours=yC;St.days=CC;St.weeks=LC;St.months=wC;St.years=xC;St.humanize=kC;St.toISOString=X1;St.toString=X1;St.toJSON=X1;St.locale=S4;St.localeData=k4;St.toIsoString=Ci("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",X1);St.lang=M4;Ve("X",0,0,"unix");Ve("x",0,0,"valueOf");Oe("x",Z1);Oe("X",K8);Yt("X",function(r,n,o){o._d=new Date(parseFloat(r)*1e3)});Yt("x",function(r,n,o){o._d=new Date(mt(r))});//! moment.js
2807
+ ze.version="2.29.4";O8(Qt);ze.fn=ue;ze.min=vm;ze.max=bm;ze.now=mm;ze.utc=zo;ze.unix=Vy;ze.months=qy;ze.isDate=$0;ze.locale=Xa;ze.invalid=B1;ze.duration=Wi;ze.isMoment=Bi;ze.weekdays=Ky;ze.parseZone=Gy;ze.localeData=fa;ze.isDuration=b1;ze.monthsShort=jy;ze.weekdaysMin=Qy;ze.defineLocale=uh;ze.updateLocale=Gb;ze.locales=qb;ze.weekdaysShort=Xy;ze.normalizeUnits=wi;ze.relativeTimeRounding=SC;ze.relativeTimeThreshold=MC;ze.calendarFormat=Um;ze.prototype=ue;ze.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var OC=Object.defineProperty,TC=Object.getOwnPropertyDescriptor,ts=(r,n,o,c)=>{for(var f=c>1?void 0:c?TC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&OC(n,o,f),f};const H4=Ee("input-time"),B4="h:mma",F4=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,W4=/^(1[3-9]|2[0-3]).*/,U4=/^(\d\d?)(am?|pm?)/,Y4=(r,n)=>({label:`${r}${n?` (${n})`:""}`,value:r}),PC=(r,n)=>{const c=Math.ceil(1440/r),f=ze().startOf("day");return Array(c).fill(null).map((p,b)=>{const S=(b>0?f.add(r,"minutes"):f).format(B4);return Y4(S,n)})},AC=(r,n)=>{const o=r.trim(),c=r.match(F4);if(!o||!c)return[];const[,f,p,b]=c,k=parseInt(f,10),S=k>12?`${k-12}`:`${k}`,O=`${p}${b||0}`,I=`${S}:${O}`;return["am","pm"].map(U=>Y4(`${I}${U}`,n))},EC=(r,{value:n})=>{const o=r.match(W4);if(!o||!n)return!1;const[,c]=o,f=`${parseInt(c,10)-12}`,p=r.substring(c.length).replace(":",""),b=`${f}:${p}`;return n.startsWith(b)&&n.endsWith("pm")},IC=(r,{value:n})=>{const o=r.match(U4);if(!o)return!1;const[,c,f]=o;return!!(n!=null&&n.replace(":00","").startsWith(`${c}${f}`))},DC=(...r)=>IC(...r)||EC(...r);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=PC(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var r;this.valueLabel=(r=this.getItems().find(({value:n})=>n===this.value))==null?void 0:r.label,this.resetSearch()}isCustomQueryMatch(r){return this.query?DC(this.query,r):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderNoResultsMessage();this.freeformOptions=AC(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderNoResultsMessage():null}renderDropdownContent(){return ee`
2769
2808
  ${this.handleNoResults()} ${this.renderOptionsData()}
2770
2809
  ${this.renderFreeformOptions()}
2771
- `}};es([F({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);es([F({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);es([F({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);es([F({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);es([F({type:String})],exports.InputTime.prototype,"placeholder",2);es([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);es([gt()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=es([Q(B4)],exports.InputTime);var TC=Object.defineProperty,PC=Object.getOwnPropertyDescriptor,mh=(r,n,o,c)=>{for(var f=c>1?void 0:c?PC(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&TC(n,o,f),f};const V4=Ee("heading");exports.Heading=class extends Ue{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 n;const r=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return ee`<h1 class=${r}><slot></slot></h1>`;case 2:return ee`<h2 class=${r}><slot></slot></h2>`;case 3:return ee`<h3 class=${r}><slot></slot></h3>`;case 4:return ee`<h4 class=${r}><slot></slot></h4>`;case 5:return ee`<h5 class=${r}><slot></slot></h5>`;case 6:return ee`<h6 class=${r}><slot></slot></h6>`}}};exports.Heading.styles=Se`
2810
+ `}};ts([F({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);ts([F({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);ts([F({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);ts([F({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);ts([F({type:String})],exports.InputTime.prototype,"placeholder",2);ts([F({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);ts([pt()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=ts([Q(H4)],exports.InputTime);var RC=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,mh=(r,n,o,c)=>{for(var f=c>1?void 0:c?NC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&RC(n,o,f),f};const Z4=Ee("heading");exports.Heading=class extends Ue{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 n;const r=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return ee`<h1 class=${r}><slot></slot></h1>`;case 2:return ee`<h2 class=${r}><slot></slot></h2>`;case 3:return ee`<h3 class=${r}><slot></slot></h3>`;case 4:return ee`<h4 class=${r}><slot></slot></h4>`;case 5:return ee`<h5 class=${r}><slot></slot></h5>`;case 6:return ee`<h6 class=${r}><slot></slot></h6>`}}};exports.Heading.styles=Se`
2772
2811
  h1,
2773
2812
  h2,
2774
2813
  h3,
@@ -2813,7 +2852,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
2813
2852
  :host {
2814
2853
  display: block;
2815
2854
  }
2816
- `;mh([F({type:String})],exports.Heading.prototype,"size",2);mh([F({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=mh([Q(V4)],exports.Heading);var AC=Object.defineProperty,EC=Object.getOwnPropertyDescriptor,ca=(r,n,o,c)=>{for(var f=c>1?void 0:c?EC(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&AC(n,o,f),f};const G4=Ee("link"),q4=Ee("link-button"),j4=Se`
2855
+ `;mh([F({type:String})],exports.Heading.prototype,"size",2);mh([F({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=mh([Q(Z4)],exports.Heading);var $C=Object.defineProperty,HC=Object.getOwnPropertyDescriptor,ha=(r,n,o,c)=>{for(var f=c>1?void 0:c?HC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&$C(n,o,f),f};const V4=Ee("link"),G4=Ee("link-button"),q4=Se`
2817
2856
  :host {
2818
2857
  display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
2819
2858
  align-items: center;
@@ -2839,12 +2878,12 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
2839
2878
  :host([link-type='secondary']:hover) {
2840
2879
  text-decoration: none;
2841
2880
  }
2842
- `,IC=Se`
2881
+ `,BC=Se`
2843
2882
  a {
2844
2883
  color: inherit;
2845
2884
  text-decoration: inherit;
2846
2885
  }
2847
- `,DC=Se`
2886
+ `,FC=Se`
2848
2887
  button {
2849
2888
  font-family: inherit;
2850
2889
  font-size: inherit;
@@ -2866,7 +2905,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
2866
2905
  <slot></slot>
2867
2906
  </a>
2868
2907
  ${this.isExternal?ee`<brz-icon icon="openLink" size="12"></brz-icon>`:""}
2869
- `}};exports.Link.styles=[IC,j4];ca([F({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);ca([F({type:String,reflect:!0})],exports.Link.prototype,"href",2);ca([F({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);ca([F({type:String,reflect:!0})],exports.Link.prototype,"target",2);ca([F({type:String,reflect:!0})],exports.Link.prototype,"rel",2);ca([F({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=ca([Q(G4)],exports.Link);exports.LinkButton=class extends Ue{constructor(){super(...arguments),this.linkType="primary"}render(){return ee` <button><slot></slot></button>`}};exports.LinkButton.styles=[DC,j4];ca([F({type:String,attribute:"link-type",reflect:!0})],exports.LinkButton.prototype,"linkType",2);exports.LinkButton=ca([Q(q4)],exports.LinkButton);var RC=Object.defineProperty,NC=Object.getOwnPropertyDescriptor,W0=(r,n,o,c)=>{for(var f=c>1?void 0:c?NC(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&RC(n,o,f),f};const K4=Ee("side-navigation-item"),$C=Se`
2908
+ `}};exports.Link.styles=[BC,q4];ha([F({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);ha([F({type:String,reflect:!0})],exports.Link.prototype,"href",2);ha([F({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);ha([F({type:String,reflect:!0})],exports.Link.prototype,"target",2);ha([F({type:String,reflect:!0})],exports.Link.prototype,"rel",2);ha([F({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=ha([Q(V4)],exports.Link);exports.LinkButton=class extends Ue{constructor(){super(...arguments),this.linkType="primary"}render(){return ee` <button><slot></slot></button>`}};exports.LinkButton.styles=[FC,q4];ha([F({type:String,attribute:"link-type",reflect:!0})],exports.LinkButton.prototype,"linkType",2);exports.LinkButton=ha([Q(G4)],exports.LinkButton);var WC=Object.defineProperty,UC=Object.getOwnPropertyDescriptor,W0=(r,n,o,c)=>{for(var f=c>1?void 0:c?UC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&WC(n,o,f),f};const j4=Ee("side-navigation-item"),YC=Se`
2870
2909
  :host li {
2871
2910
  list-style: none;
2872
2911
  padding: var(--brz-spacing-2) 0;
@@ -2902,7 +2941,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
2902
2941
  <slot></slot>
2903
2942
  </a>
2904
2943
  </li>
2905
- `}};exports.SideNavigationItem.styles=[$C];W0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);W0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);W0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);W0([F({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=W0([Q(K4)],exports.SideNavigationItem);var HC=Object.defineProperty,BC=Object.getOwnPropertyDescriptor,FC=(r,n,o,c)=>{for(var f=c>1?void 0:c?BC(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&HC(n,o,f),f};const X4=Ee("side-navigation"),WC=Se`
2944
+ `}};exports.SideNavigationItem.styles=[YC];W0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);W0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);W0([F({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);W0([F({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=W0([Q(j4)],exports.SideNavigationItem);var ZC=Object.defineProperty,VC=Object.getOwnPropertyDescriptor,GC=(r,n,o,c)=>{for(var f=c>1?void 0:c?VC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&ZC(n,o,f),f};const K4=Ee("side-navigation"),qC=Se`
2906
2945
  :host {
2907
2946
  display: block;
2908
2947
  height: 100%;
@@ -2916,7 +2955,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
2916
2955
  }
2917
2956
  `;exports.SideNavigation=class extends Ue{render(){return ee`<ul>
2918
2957
  <slot></slot>
2919
- </ul>`}};exports.SideNavigation.styles=[WC];exports.SideNavigation=FC([Q(X4)],exports.SideNavigation);var UC=Object.defineProperty,YC=Object.getOwnPropertyDescriptor,Q4=(r,n,o,c)=>{for(var f=c>1?void 0:c?YC(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&UC(n,o,f),f};const J4=Ee("record-row"),e5=Ee("record-row-label");exports.RecordRow=class extends Ue{render(){return ee`
2958
+ </ul>`}};exports.SideNavigation.styles=[qC];exports.SideNavigation=GC([Q(K4)],exports.SideNavigation);var jC=Object.defineProperty,KC=Object.getOwnPropertyDescriptor,X4=(r,n,o,c)=>{for(var f=c>1?void 0:c?KC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&jC(n,o,f),f};const Q4=Ee("record-row"),J4=Ee("record-row-label");exports.RecordRow=class extends Ue{render(){return ee`
2920
2959
  <div id="row">
2921
2960
  <brz-record-row-label><slot name="label"></slot></brz-record-row-label>
2922
2961
  <div id="value"><slot></slot></div>
@@ -2941,18 +2980,18 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
2941
2980
  /* Bit of a hack, but means lozenges nicely align with the label */
2942
2981
  margin-top: -2px;
2943
2982
  }
2944
- `;exports.RecordRow=Q4([Q(J4)],exports.RecordRow);exports.RecordRowLabel=class extends Ue{render(){return ee`<div id="label"><slot></slot></div>`}};exports.RecordRowLabel.styles=Se`
2983
+ `;exports.RecordRow=X4([Q(Q4)],exports.RecordRow);exports.RecordRowLabel=class extends Ue{render(){return ee`<div id="label"><slot></slot></div>`}};exports.RecordRowLabel.styles=Se`
2945
2984
  #label {
2946
2985
  width: 10rem;
2947
2986
  color: var(--brz-color-label-text);
2948
2987
  font-size: var(--brz-font-size);
2949
2988
  line-height: var(--brz-line-height);
2950
2989
  }
2951
- `;exports.RecordRowLabel=Q4([Q(e5)],exports.RecordRowLabel);var ZC=Object.defineProperty,VC=Object.getOwnPropertyDescriptor,yh=(r,n,o,c)=>{for(var f=c>1?void 0:c?VC(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&ZC(n,o,f),f};const t5=Ee("tab-panel");exports.TabPanel=class extends Ue{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return ee`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=Se`
2990
+ `;exports.RecordRowLabel=X4([Q(J4)],exports.RecordRowLabel);var XC=Object.defineProperty,QC=Object.getOwnPropertyDescriptor,yh=(r,n,o,c)=>{for(var f=c>1?void 0:c?QC(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&XC(n,o,f),f};const e5=Ee("tab-panel");exports.TabPanel=class extends Ue{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return ee`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=Se`
2952
2991
  :host(:not([shown])) #panel {
2953
2992
  display: none;
2954
2993
  }
2955
- `;yh([F({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);yh([F({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=yh([Q(t5)],exports.TabPanel);class Q1 extends CustomEvent{constructor(n){super("brz-tab-selected",{bubbles:!0,detail:{name:n}})}}class GC extends CustomEvent{constructor(n){super("brz-tab-deselected",{bubbles:!0,detail:{name:n}})}}var qC=Object.defineProperty,jC=Object.getOwnPropertyDescriptor,J1=(r,n,o,c)=>{for(var f=c>1?void 0:c?jC(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&qC(n,o,f),f};const r5=Ee("tab");exports.Tab=class extends Ue{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(r){const n=r.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new Q1(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new GC(this.name)),super.updated(r)}render(){return this.link?ee`<a href=${this.link} id="tab"><slot></slot></a>`:ee`<div
2994
+ `;yh([F({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);yh([F({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=yh([Q(e5)],exports.TabPanel);class Q1 extends CustomEvent{constructor(n){super("brz-tab-selected",{bubbles:!0,detail:{name:n}})}}class JC extends CustomEvent{constructor(n){super("brz-tab-deselected",{bubbles:!0,detail:{name:n}})}}var ew=Object.defineProperty,tw=Object.getOwnPropertyDescriptor,J1=(r,n,o,c)=>{for(var f=c>1?void 0:c?tw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&ew(n,o,f),f};const t5=Ee("tab");exports.Tab=class extends Ue{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(r){const n=r.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new Q1(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new JC(this.name)),super.updated(r)}render(){return this.link?ee`<a href=${this.link} id="tab"><slot></slot></a>`:ee`<div
2956
2995
  tabindex="0"
2957
2996
  role="tab"
2958
2997
  aria-selected=${this.selected}
@@ -2980,7 +3019,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
2980
3019
  #tab:hover {
2981
3020
  color: var(--brz-color-neutral-850);
2982
3021
  }
2983
- `;J1([F({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);J1([F({type:String,reflect:!0})],exports.Tab.prototype,"name",2);J1([F({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=J1([Q(r5)],exports.Tab);var KC=Object.defineProperty,XC=Object.getOwnPropertyDescriptor,ef=(r,n,o,c)=>{for(var f=c>1?void 0:c?XC(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&KC(n,o,f),f};const n5=Ee("tab-bar");exports.TabBar=class extends Ue{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,c,f;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!r){this.tabs=[];return}let n=Array.from(r.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(g=>g instanceof exports.Tab&&!!g.name),this.controlled||(this.selected||(this.selected=(f=(c=this.tabs.find(g=>g.selected))==null?void 0:c.name)!=null?f:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(r){if(r.target instanceof exports.Tab){const{name:n}=r.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new Q1(n)))}}updated(r){r.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(r=>{const n=r.name===this.selected;n!==r.selected&&(r.selected=n)})}render(){return ee`
3022
+ `;J1([F({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);J1([F({type:String,reflect:!0})],exports.Tab.prototype,"name",2);J1([F({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=J1([Q(t5)],exports.Tab);var rw=Object.defineProperty,nw=Object.getOwnPropertyDescriptor,ef=(r,n,o,c)=>{for(var f=c>1?void 0:c?nw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&rw(n,o,f),f};const r5=Ee("tab-bar");exports.TabBar=class extends Ue{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var o,c,f;const r=(o=this.shadowRoot)==null?void 0:o.querySelector("slot");if(!r){this.tabs=[];return}let n=Array.from(r.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(p=>p instanceof exports.Tab&&!!p.name),this.controlled||(this.selected||(this.selected=(f=(c=this.tabs.find(p=>p.selected))==null?void 0:c.name)!=null?f:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(r){if(r.target instanceof exports.Tab){const{name:n}=r.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new Q1(n)))}}updated(r){r.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(r=>{const n=r.name===this.selected;n!==r.selected&&(r.selected=n)})}render(){return ee`
2984
3023
  <brz-row id="tabbar" @click=${this.handleClick}>
2985
3024
  <slot @slotchange=${this.handleSlotChange}></slot>
2986
3025
  </brz-row>
@@ -3002,7 +3041,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3002
3041
  top: 0;
3003
3042
  z-index: 1;
3004
3043
  }
3005
- `;ef([F({type:Boolean})],exports.TabBar.prototype,"controlled",2);ef([F({type:String})],exports.TabBar.prototype,"selected",2);ef([gt()],exports.TabBar.prototype,"tabs",2);exports.TabBar=ef([Q(n5)],exports.TabBar);var QC=Object.defineProperty,JC=Object.getOwnPropertyDescriptor,Ch=(r,n,o,c)=>{for(var f=c>1?void 0:c?JC(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&QC(n,o,f),f};const i5=Ee("tabs");exports.Tabs=class extends Ue{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,o,c;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!r){for(const f of r.assignedElements())if(f instanceof exports.TabPanel)this.panels.push(f);else{const g=f.querySelectorAll("brz-tab-panel"),b=f.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(g.length?g:b))}this.selected||(this.selected=(c=(o=this.panels.find(f=>f.shown))==null?void 0:o.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(r=>{const n=r.name===this.selected;n!==r.shown&&(r.shown=n)})}handleTabSelected(r){this.selected=r.detail.name,this.updatePanelVisibility(),r.stopPropagation(),this.dispatchEvent(new Q1(this.selected))}render(){return ee`
3044
+ `;ef([F({type:Boolean})],exports.TabBar.prototype,"controlled",2);ef([F({type:String})],exports.TabBar.prototype,"selected",2);ef([pt()],exports.TabBar.prototype,"tabs",2);exports.TabBar=ef([Q(r5)],exports.TabBar);var iw=Object.defineProperty,ow=Object.getOwnPropertyDescriptor,Ch=(r,n,o,c)=>{for(var f=c>1?void 0:c?ow(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&iw(n,o,f),f};const n5=Ee("tabs");exports.Tabs=class extends Ue{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,o,c;const r=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!r){for(const f of r.assignedElements())if(f instanceof exports.TabPanel)this.panels.push(f);else{const p=f.querySelectorAll("brz-tab-panel"),b=f.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(p.length?p:b))}this.selected||(this.selected=(c=(o=this.panels.find(f=>f.shown))==null?void 0:o.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(r=>{const n=r.name===this.selected;n!==r.shown&&(r.shown=n)})}handleTabSelected(r){this.selected=r.detail.name,this.updatePanelVisibility(),r.stopPropagation(),this.dispatchEvent(new Q1(this.selected))}render(){return ee`
3006
3045
  <brz-tab-bar
3007
3046
  controlled
3008
3047
  selected=${this.selected}
@@ -3015,8 +3054,8 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3015
3054
  :host {
3016
3055
  background-color: var(--brz-color-white);
3017
3056
  }
3018
- `;Ch([F({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Ch([gt()],exports.Tabs.prototype,"panels",2);exports.Tabs=Ch([Q(i5)],exports.Tabs);var ew=Object.defineProperty,tw=Object.getOwnPropertyDescriptor,vu=(r,n,o,c)=>{for(var f=c>1?void 0:c?tw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&ew(n,o,f),f};const o5=Ee("badge");exports.Badge=class extends Ue{constructor(){super(...arguments),this.limit=0,this.content="",this.deafultCharacterLimit=5,this.deafultNumberLimit=99}connectedCallback(){super.connectedCallback(),!this.limit&&(typeof this.content=="number"||this.isNumeric(this.content)?this.limit=this.deafultNumberLimit:this.limit=this.deafultCharacterLimit)}isNumeric(r){return/^-?\d+$/.test(r)}generateContent(){return typeof this.content=="number"||this.isNumeric(this.content)?parseInt(this.content)>this.limit?`${this.limit}+`:this.content:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return ee`<span
3019
- class=${ja({"extra-wide":this.content.length>1})}
3057
+ `;Ch([F({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);Ch([pt()],exports.Tabs.prototype,"panels",2);exports.Tabs=Ch([Q(n5)],exports.Tabs);var aw=Object.defineProperty,sw=Object.getOwnPropertyDescriptor,vu=(r,n,o,c)=>{for(var f=c>1?void 0:c?sw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&aw(n,o,f),f};const i5=Ee("badge");exports.Badge=class extends Ue{constructor(){super(...arguments),this.limit=0,this.content="",this.deafultCharacterLimit=5,this.deafultNumberLimit=99}connectedCallback(){super.connectedCallback(),!this.limit&&(typeof this.content=="number"||this.isNumeric(this.content)?this.limit=this.deafultNumberLimit:this.limit=this.deafultCharacterLimit)}isNumeric(r){return/^-?\d+$/.test(r)}generateContent(){return typeof this.content=="number"||this.isNumeric(this.content)?parseInt(this.content)>this.limit?`${this.limit}+`:this.content:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return ee`<span
3058
+ class=${Qa({"extra-wide":this.content.length>1})}
3020
3059
  >${this.generateContent()}</span
3021
3060
  >`}};exports.Badge.styles=Se`
3022
3061
  :host {
@@ -3051,7 +3090,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3051
3090
  .extra-wide {
3052
3091
  padding: 0 6px;
3053
3092
  }
3054
- `;vu([F({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);vu([F({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);vu([F({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);vu([gt()],exports.Badge.prototype,"deafultCharacterLimit",2);vu([gt()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=vu([Q(o5)],exports.Badge);const{range:tf}=o8;function rw(r,n,o){return[1,null,...tf(r-n,r+n+1),null,o]}function nw(r,n){return[1,null,...tf(r-(n-3),r+1)]}function iw(r,n){return[...tf(1,n-1),null,r]}function ow(r,n,o){return r>1+1+n*2&&r<o-1-n*2}function aw(r,n=1,o=1){const c=5+o*2;if(r<=c)return tf(1,r+1);if(ow(n,o,r))return rw(n,o,r);if(n+(c-3)>=r)return nw(r,c);if(n<c)return iw(r,c)}var sw=Object.defineProperty,lw=Object.getOwnPropertyDescriptor,So=(r,n,o,c)=>{for(var f=c>1?void 0:c?lw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&sw(n,o,f),f};const wh=Ee("basic-pagination"),xh=Ee("pagination");class uw extends CustomEvent{constructor(n){super(`${wh}-${n}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ue{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(r){this.dispatchEvent(new uw(r))}handlePageChange(r){this.emit(`${r}-page`)}render(){return ee`
3093
+ `;vu([F({type:String,reflect:!0})],exports.Badge.prototype,"theme",2);vu([F({type:Number,reflect:!0})],exports.Badge.prototype,"limit",2);vu([F({type:String||Number,reflect:!0})],exports.Badge.prototype,"content",2);vu([pt()],exports.Badge.prototype,"deafultCharacterLimit",2);vu([pt()],exports.Badge.prototype,"deafultNumberLimit",2);exports.Badge=vu([Q(i5)],exports.Badge);const{range:tf}=l8;function lw(r,n,o){return[1,null,...tf(r-n,r+n+1),null,o]}function uw(r,n){return[1,null,...tf(r-(n-3),r+1)]}function cw(r,n){return[...tf(1,n-1),null,r]}function fw(r,n,o){return r>1+1+n*2&&r<o-1-n*2}function dw(r,n=1,o=1){const c=5+o*2;if(r<=c)return tf(1,r+1);if(fw(n,o,r))return lw(n,o,r);if(n+(c-3)>=r)return uw(r,c);if(n<c)return cw(r,c)}var hw=Object.defineProperty,pw=Object.getOwnPropertyDescriptor,Mo=(r,n,o,c)=>{for(var f=c>1?void 0:c?pw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&hw(n,o,f),f};const wh=Ee("basic-pagination"),xh=Ee("pagination");class gw extends CustomEvent{constructor(n){super(`${wh}-${n}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ue{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(r){this.dispatchEvent(new gw(r))}handlePageChange(r){this.emit(`${r}-page`)}render(){return ee`
3055
3094
  <brz-button-group role="navigation" aria-label="Pagination Navigation">
3056
3095
  <brz-button
3057
3096
  compact
@@ -3077,7 +3116,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3077
3116
  brz-button-group {
3078
3117
  --brz-spacing-2: var(--brz-spacing-1);
3079
3118
  }
3080
- `;So([F({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);So([F({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=So([Q(wh)],exports.BasicPagination);class cw extends CustomEvent{constructor(n,o){super(`${xh}-${n}`,{bubbles:!0,composed:!0,detail:{page:o}})}}exports.Pagination=class extends Ue{constructor(){super(...arguments),this.currentPageSiblings=1}emit(r,n){this.dispatchEvent(new cw(r,n))}onPageChange(r){this.emit("page-change",r)}isCurrentPage(r){return r===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 r;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=aw(this.totalPages,this.currentPage,this.currentPageSiblings),ee`
3119
+ `;Mo([F({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Mo([F({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Mo([Q(wh)],exports.BasicPagination);class vw extends CustomEvent{constructor(n,o){super(`${xh}-${n}`,{bubbles:!0,composed:!0,detail:{page:o}})}}exports.Pagination=class extends Ue{constructor(){super(...arguments),this.currentPageSiblings=1}emit(r,n){this.dispatchEvent(new vw(r,n))}onPageChange(r){this.emit("page-change",r)}isCurrentPage(r){return r===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 r;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=dw(this.totalPages,this.currentPage,this.currentPageSiblings),ee`
3081
3120
  <brz-row role="navigation" aria-label="Pagination Navigation">
3082
3121
  <button
3083
3122
  role="link"
@@ -3090,7 +3129,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3090
3129
  </div>
3091
3130
  </button>
3092
3131
  ${(r=this.pages)==null?void 0:r.map(n=>n?ee`<button
3093
- class=${ja({page:n,selected:this.isCurrentPage(n)})}
3132
+ class=${Qa({page:n,selected:this.isCurrentPage(n)})}
3094
3133
  role="link"
3095
3134
  aria-label=${`${this.isCurrentPage(n)?`Current Page, Page ${n}`:`Go to page ${n}`}`}
3096
3135
  aria-current=${`${this.isCurrentPage(n)}`}
@@ -3178,7 +3217,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3178
3217
  .page {
3179
3218
  padding: 0 var(--brz-spacing-2);
3180
3219
  }
3181
- `;So([F({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);So([F({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);So([F({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);So([gt()],exports.Pagination.prototype,"currentPageSiblings",2);So([gt()],exports.Pagination.prototype,"totalPages",2);So([gt()],exports.Pagination.prototype,"pages",2);exports.Pagination=So([Q(xh)],exports.Pagination);var fw=Object.defineProperty,dw=Object.getOwnPropertyDescriptor,U0=(r,n,o,c)=>{for(var f=c>1?void 0:c?dw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&fw(n,o,f),f};const hw=["info","success","warning","error"],a5=Ee("alert");class pw extends CustomEvent{constructor(n){super(n,{bubbles:!0,composed:!0})}}exports.Alert=class extends Ue{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 pw("brz-alert-cleared"))}render(){return this.cleared?null:ee`<div class="alert-container">
3220
+ `;Mo([F({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Mo([F({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Mo([F({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Mo([pt()],exports.Pagination.prototype,"currentPageSiblings",2);Mo([pt()],exports.Pagination.prototype,"totalPages",2);Mo([pt()],exports.Pagination.prototype,"pages",2);exports.Pagination=Mo([Q(xh)],exports.Pagination);var bw=Object.defineProperty,mw=Object.getOwnPropertyDescriptor,U0=(r,n,o,c)=>{for(var f=c>1?void 0:c?mw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&bw(n,o,f),f};const yw=["info","success","warning","error"],o5=Ee("alert");class Cw extends CustomEvent{constructor(n){super(n,{bubbles:!0,composed:!0})}}exports.Alert=class extends Ue{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 Cw("brz-alert-cleared"))}render(){return this.cleared?null:ee`<div class="alert-container">
3182
3221
  <brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
3183
3222
  <div role="alert">
3184
3223
  ${this.title?ee`<div><brz-heading>${this.title}</brz-heading></div>`:ee``}
@@ -3252,7 +3291,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3252
3291
  .clear-button brz-icon {
3253
3292
  vertical-align: middle;
3254
3293
  }
3255
- `;U0([F({type:String,reflect:!0})],exports.Alert.prototype,"type",2);U0([F({type:Boolean})],exports.Alert.prototype,"clearable",2);U0([F()],exports.Alert.prototype,"title",2);U0([gt()],exports.Alert.prototype,"cleared",2);exports.Alert=U0([Q(a5)],exports.Alert);const Lh={resources:G`
3294
+ `;U0([F({type:String,reflect:!0})],exports.Alert.prototype,"type",2);U0([F({type:Boolean})],exports.Alert.prototype,"clearable",2);U0([F()],exports.Alert.prototype,"title",2);U0([pt()],exports.Alert.prototype,"cleared",2);exports.Alert=U0([Q(o5)],exports.Alert);const Lh={resources:G`
3256
3295
  <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"/>
3257
3296
  <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"/>
3258
3297
  <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"/>
@@ -3346,7 +3385,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3346
3385
  <circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
3347
3386
  <circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
3348
3387
  <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"/>
3349
- <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"/>`},gw=Object.keys(Lh);var vw=Object.defineProperty,bw=Object.getOwnPropertyDescriptor,rf=(r,n,o,c)=>{for(var f=c>1?void 0:c?bw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&vw(n,o,f),f};const s5=Ee("illustration");exports.Illustration=class extends Ue{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const r=Lh[this.illustration],n=Math.floor(Math.random()*100),o=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!r){console.warn(`Can't find illustration ${this.illustration}`);return}return ee`<svg
3388
+ <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"/>`},ww=Object.keys(Lh);var xw=Object.defineProperty,Lw=Object.getOwnPropertyDescriptor,rf=(r,n,o,c)=>{for(var f=c>1?void 0:c?Lw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&xw(n,o,f),f};const a5=Ee("illustration");exports.Illustration=class extends Ue{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const r=Lh[this.illustration],n=Math.floor(Math.random()*100),o=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!r){console.warn(`Can't find illustration ${this.illustration}`);return}return ee`<svg
3350
3389
  aria-hidden=${!this.altTitle.length||!this.altDescription.length}
3351
3390
  role="img"
3352
3391
  aria-labelledby=${`${o} ${c}`}
@@ -3362,13 +3401,13 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3362
3401
  /* to get rid of extra height caused by white space */
3363
3402
  line-height: 0;
3364
3403
  }
3365
- `;rf([F({type:String})],exports.Illustration.prototype,"illustration",2);rf([F({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);rf([F({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=rf([Q(s5)],exports.Illustration);var mw=Object.defineProperty,yw=Object.getOwnPropertyDescriptor,Cw=(r,n,o,c)=>{for(var f=c>1?void 0:c?yw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&mw(n,o,f),f};const l5=Ee("header");exports.Header=class extends Ue{render(){return ee`<slot></slot>`}};exports.Header.styles=Se`
3404
+ `;rf([F({type:String})],exports.Illustration.prototype,"illustration",2);rf([F({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);rf([F({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=rf([Q(a5)],exports.Illustration);var _w=Object.defineProperty,zw=Object.getOwnPropertyDescriptor,Sw=(r,n,o,c)=>{for(var f=c>1?void 0:c?zw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_w(n,o,f),f};const s5=Ee("header");exports.Header=class extends Ue{render(){return ee`<slot></slot>`}};exports.Header.styles=Se`
3366
3405
  :host {
3367
3406
  display: block;
3368
3407
  padding: var(--brz-spacing-5);
3369
3408
  margin-bottom: var(--brz-spacing-4);
3370
3409
  }
3371
- `;exports.Header=Cw([Q(l5)],exports.Header);var ww=Object.defineProperty,xw=Object.getOwnPropertyDescriptor,Lw=(r,n,o,c)=>{for(var f=c>1?void 0:c?xw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&ww(n,o,f),f};const u5=Ee("header-footer-page");exports.HeaderFooterPage=class extends Ue{render(){return ee`
3410
+ `;exports.Header=Sw([Q(s5)],exports.Header);var Mw=Object.defineProperty,kw=Object.getOwnPropertyDescriptor,Ow=(r,n,o,c)=>{for(var f=c>1?void 0:c?kw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Mw(n,o,f),f};const l5=Ee("header-footer-page");exports.HeaderFooterPage=class extends Ue{render(){return ee`
3372
3411
  <div id="container">
3373
3412
  <div id="header"><slot name="header"></slot></div>
3374
3413
  <div id="body"><slot></slot></div>
@@ -3392,7 +3431,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3392
3431
  flex: 1 1;
3393
3432
  overflow-y: auto;
3394
3433
  }
3395
- `;exports.HeaderFooterPage=Lw([Q(u5)],exports.HeaderFooterPage);var _w=Object.defineProperty,zw=Object.getOwnPropertyDescriptor,Sw=(r,n,o,c)=>{for(var f=c>1?void 0:c?zw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&_w(n,o,f),f};const c5=Ee("responsive-columns");exports.ResponsiveColumns=class extends Ue{render(){return ee`<slot></slot>`}};exports.ResponsiveColumns.styles=Se`
3434
+ `;exports.HeaderFooterPage=Ow([Q(l5)],exports.HeaderFooterPage);var Tw=Object.defineProperty,Pw=Object.getOwnPropertyDescriptor,Aw=(r,n,o,c)=>{for(var f=c>1?void 0:c?Pw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Tw(n,o,f),f};const u5=Ee("responsive-columns");exports.ResponsiveColumns=class extends Ue{render(){return ee`<slot></slot>`}};exports.ResponsiveColumns.styles=Se`
3396
3435
  :host {
3397
3436
  display: flex;
3398
3437
  flex-direction: row;
@@ -3424,7 +3463,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3424
3463
  margin-bottom: var(--brz-padding, var(--brz-spacing-8));
3425
3464
  }
3426
3465
  }
3427
- `;exports.ResponsiveColumns=Sw([Q(c5)],exports.ResponsiveColumns);var Mw=Object.defineProperty,kw=Object.getOwnPropertyDescriptor,Ow=(r,n,o,c)=>{for(var f=c>1?void 0:c?kw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Mw(n,o,f),f};const f5=Ee("footer");exports.Footer=class extends Ue{render(){return ee`<div class="container">
3466
+ `;exports.ResponsiveColumns=Aw([Q(u5)],exports.ResponsiveColumns);var Ew=Object.defineProperty,Iw=Object.getOwnPropertyDescriptor,Dw=(r,n,o,c)=>{for(var f=c>1?void 0:c?Iw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Ew(n,o,f),f};const c5=Ee("footer");exports.Footer=class extends Ue{render(){return ee`<div class="container">
3428
3467
  <slot name="left"></slot>
3429
3468
  <slot name="middle"></slot>
3430
3469
  <slot name="right"></slot>
@@ -3435,7 +3474,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3435
3474
  justify-content: space-between;
3436
3475
  padding: var(--brz-spacing-3) var(--brz-spacing-4);
3437
3476
  }
3438
- `;exports.Footer=Ow([Q(f5)],exports.Footer);var Tw=Object.defineProperty,Pw=Object.getOwnPropertyDescriptor,d5=(r,n,o,c)=>{for(var f=c>1?void 0:c?Pw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Tw(n,o,f),f};const h5=Ee("page-header");exports.PageHeader=class extends Ue{render(){return ee`
3477
+ `;exports.Footer=Dw([Q(c5)],exports.Footer);var Rw=Object.defineProperty,Nw=Object.getOwnPropertyDescriptor,f5=(r,n,o,c)=>{for(var f=c>1?void 0:c?Nw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Rw(n,o,f),f};const d5=Ee("page-header");exports.PageHeader=class extends Ue{render(){return ee`
3439
3478
  <header>
3440
3479
  <slot name="decorator"></slot>
3441
3480
 
@@ -3484,14 +3523,14 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3484
3523
  line-height: var(--brz-line-height);
3485
3524
  margin-top: var(--brz-spacing-2);
3486
3525
  }
3487
- `;d5([F({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);exports.PageHeader=d5([Q(h5)],exports.PageHeader);const Aw=Se`
3526
+ `;f5([F({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);exports.PageHeader=f5([Q(d5)],exports.PageHeader);const $w=Se`
3488
3527
  :host {
3489
3528
  --brz-border-radius-default: 2px;
3490
3529
  --brz-border-radius-medium: 3px;
3491
3530
 
3492
3531
  --brz-border-divider: 1px solid var(--brz-color-neutral-400);
3493
3532
  }
3494
- `,Ew=Se`
3533
+ `,Hw=Se`
3495
3534
  :host {
3496
3535
  --brz-color-neutral-900: #1b263a;
3497
3536
  --brz-color-neutral-850: #223049;
@@ -3681,7 +3720,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3681
3720
 
3682
3721
  --brz-color-text-on-color: var(--brz-color-white);
3683
3722
  }
3684
- `,Iw=Se`
3723
+ `,Bw=Se`
3685
3724
  :host {
3686
3725
  --sp-border-radius-default: var(--brz-border-radius-default);
3687
3726
  --sp-border-radius-medium: var(--brz-border-radius-medium)
@@ -3946,14 +3985,14 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3946
3985
  --sp-z-index-dropdown: var(--brz-z-index-dropdown);
3947
3986
  --sp-z-index-tooltip: var(--brz-z-index-tooltip);
3948
3987
  }
3949
- `,Dw=Se`
3988
+ `,Fw=Se`
3950
3989
  :host {
3951
3990
  // TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
3952
3991
  --brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
3953
3992
  --brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
3954
3993
  --brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
3955
3994
  }
3956
- `,Rw=Se`
3995
+ `,Ww=Se`
3957
3996
  :host {
3958
3997
  --brz-spacing-px: 1px;
3959
3998
  --brz-spacing-0: 0;
@@ -3969,6 +4008,8 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3969
4008
  --brz-spacing-5: 1.25rem;
3970
4009
  /* 24px */
3971
4010
  --brz-spacing-6: 1.5rem;
4011
+ /* 28px */
4012
+ --brz-spacing-7: 1.75rem;
3972
4013
  /* 32px */
3973
4014
  --brz-spacing-8: 2rem;
3974
4015
  /* 40px */
@@ -3980,7 +4021,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
3980
4021
  /* 80px */
3981
4022
  --brz-spacing-20: 5rem;
3982
4023
  }
3983
- `,Nw=Se`
4024
+ `,Uw=Se`
3984
4025
  :host {
3985
4026
  --brz-font-family: Inter, sofiapro;
3986
4027
  --brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
@@ -4021,14 +4062,14 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
4021
4062
  --brz-color-text-light: var(--brz-color-neutral-700);
4022
4063
  --brz-color-text-placeholder: var(--brz-color-neutral-600);
4023
4064
  }
4024
- `,$w=Se`
4065
+ `,Yw=Se`
4025
4066
  :host {
4026
4067
  --brz-z-index-navigation: 1000;
4027
4068
  --brz-z-index-dialog: 1100;
4028
4069
  --brz-z-index-dropdown: 1200;
4029
4070
  --brz-z-index-tooltip: 1300;
4030
4071
  }
4031
- `;var Hw=Object.defineProperty,Bw=Object.getOwnPropertyDescriptor,Fw=(r,n,o,c)=>{for(var f=c>1?void 0:c?Bw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Hw(n,o,f),f};const p5=Ee("global-styles");exports.GlobalStyles=class extends Ue{render(){return ee`<slot></slot>`}};exports.GlobalStyles.styles=[Ew,Rw,Nw,Aw,Dw,$w,Iw,Se`
4072
+ `;var Zw=Object.defineProperty,Vw=Object.getOwnPropertyDescriptor,Gw=(r,n,o,c)=>{for(var f=c>1?void 0:c?Vw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Zw(n,o,f),f};const h5=Ee("global-styles");exports.GlobalStyles=class extends Ue{render(){return ee`<slot></slot>`}};exports.GlobalStyles.styles=[Hw,Ww,Uw,$w,Fw,Yw,Bw,Se`
4032
4073
  :host {
4033
4074
  /* --- Global styles --- */
4034
4075
  font-family: var(--brz-font-family), var(--brz-font-family-fallback);
@@ -4037,7 +4078,7 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
4037
4078
  font-weight: var(--brz-font-weight-normal);
4038
4079
  color: var(--brz-color-text);
4039
4080
  }
4040
- `];exports.GlobalStyles=Fw([Q(p5)],exports.GlobalStyles);var Ww=Object.defineProperty,Uw=Object.getOwnPropertyDescriptor,_h=(r,n,o,c)=>{for(var f=c>1?void 0:c?Uw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Ww(n,o,f),f};const g5=Ee("paper");exports.Paper=class extends Ue{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return ee` <div class="container"><slot></slot></div> `}};exports.Paper.styles=Se`
4081
+ `];exports.GlobalStyles=Gw([Q(h5)],exports.GlobalStyles);var qw=Object.defineProperty,jw=Object.getOwnPropertyDescriptor,_h=(r,n,o,c)=>{for(var f=c>1?void 0:c?jw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&qw(n,o,f),f};const p5=Ee("paper");exports.Paper=class extends Ue{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return ee` <div class="container"><slot></slot></div> `}};exports.Paper.styles=Se`
4041
4082
  :host {
4042
4083
  display: block;
4043
4084
  position: relative;
@@ -4061,4 +4102,4 @@ ze.version="2.29.4";L8(Qt);ze.fn=ue;ze.min=cm;ze.max=fm;ze.now=dm;ze.utc=_o;ze.u
4061
4102
  :host([has-border]) .container {
4062
4103
  border: 1px solid var(--brz-color-neutral-300);
4063
4104
  }
4064
- `;_h([F({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);_h([F({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=_h([Q(g5)],exports.Paper);var Yw=Object.defineProperty,Zw=Object.getOwnPropertyDescriptor,De=(r,n,o,c)=>{for(var f=c>1?void 0:c?Zw(n,o):n,g=r.length-1,b;g>=0;g--)(b=r[g])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Yw(n,o,f),f};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=De([Q("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=De([Q("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=De([Q("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=De([Q("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=De([Q("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=De([Q("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=De([Q("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=De([Q("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=De([Q("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=De([Q("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=De([Q("sp-heading")],exports.LegacyHeading);exports.LegacyCLink=class extends exports.Link{};exports.LegacyCLink=De([Q("sp-link")],exports.LegacyCLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=De([Q("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=De([Q("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=De([Q("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=De([Q("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=De([Q("sp-pagination")],exports.LegacyPagination);exports.LegacyBasicPopover=class extends exports.Popover{};exports.LegacyBasicPopover=De([Q("sp-popover")],exports.LegacyBasicPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=De([Q("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=De([Q("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=De([Q("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=De([Q("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=De([Q("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=De([Q("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=De([Q("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=De([Q("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=De([Q("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=De([Q("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=De([Q("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=De([Q("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=De([Q("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=De([Q("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=De([Q("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=De([Q("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=De([Q("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=De([Q("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=De([Q("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=De([Q("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=De([Q("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=De([Q("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=De([Q("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=De([Q("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=De([Q("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=De([Q("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=De([Q("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=De([Q("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=De([Q("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=De([Q("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends _1{};exports.LegacyInputGuide=De([Q("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=De([Q("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=De([Q("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=De([Q("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=De([Q("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=De([Q("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=De([Q("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=De([Q("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=De([Q("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=De([Q("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=De([Q("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=De([Q("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=De([Q("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=w2;exports.ALERT=a5;exports.AVATAR=c2;exports.AVATAR_GROUP=f2;exports.BADGE=o5;exports.BASIC_PAGINATION=wh;exports.BUTTON=Yd;exports.BUTTON_GROUP=v2;exports.COLUMN=h2;exports.COMBO_BOX=b2;exports.COMBO_BOX_OPTION=m2;exports.CONFIRMATION_DIALOG=k2;exports.ConfirmationDialogCancel=O2;exports.ConfirmationDialogConfirm=T2;exports.DeleteLozengeEvent=G2;exports.FADE_IN_OUT=Xp;exports.FOOTER=f5;exports.GLOBAL_STYLES=p5;exports.HEADER=l5;exports.HEADER_FOOTER_PAGE=u5;exports.HEADING=V4;exports.ICON=L2;exports.ILLUSTRATION=s5;exports.INPUT_CHECKBOX=P2;exports.INPUT_CODE=W2;exports.INPUT_ERROR=A2;exports.INPUT_LABEL=I2;exports.INPUT_MULTISELECT=q2;exports.INPUT_NUMBER=N2;exports.INPUT_RADIO_GROUP=B2;exports.INPUT_RADIO_OPTION=F2;exports.INPUT_SELECT=Z2;exports.INPUT_TEXT=D2;exports.INPUT_TEXTAREA=R2;exports.INPUT_TIME=B4;exports.InputBase=Lo;exports.InputSelectBase=ti;exports.LABELED_INPUT=E2;exports.LINK=G4;exports.LINK_BUTTON=q4;exports.LOADING_SPINNER=g2;exports.LOZENGE=V2;exports.MENU=U2;exports.MENU_ITEM=y0;exports.MODAL=y2;exports.MODAL_BODY=z2;exports.MODAL_FOOTER=S2;exports.MODAL_HEADER=_2;exports.ModalCloseEvent=Vd;exports.NO_RESULTS_ID=Xd;exports.PAGE_HEADER=h5;exports.PAGINATION=xh;exports.PAPER=g5;exports.POPOVER=Wd;exports.POPOVER_LISTENABLE_EVENT_TYPES=L1;exports.POPOVER_ROLES=Ud;exports.POPOVER_TRIGGERS=l2;exports.PURE_POPOVER=s2;exports.RECORD_ROW=J4;exports.RECORD_ROW_LABEL=e5;exports.RESPONSIVE_COLUMNS=c5;exports.ROW=d2;exports.SIDE_NAVIGATION=X4;exports.SIDE_NAVIGATION_ITEM=K4;exports.SPLIT_ROW=C2;exports.TAB=r5;exports.TABS=i5;exports.TAB_BAR=n5;exports.TAB_PANEL=t5;exports.TIME_FORMAT=F4;exports.TIME_REGEX_12H=Y4;exports.TIME_REGEX_24H=U4;exports.TIME_REGEX_LOOSE=W4;exports.TOOLTIP=u2;exports.TabSelectedEvent=Q1;exports.VIRTUAL_LIST=Kd;exports.alertTypes=hw;exports.buttonTypes=t9;exports.click=x1;exports.emit=Y2;exports.focus=Ws;exports.hover=wd;exports.iconNames=f9;exports.icons=Gd;exports.illustrationNames=gw;exports.illustrations=Lh;exports.transformIcon=x2;
4105
+ `;_h([F({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);_h([F({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=_h([Q(p5)],exports.Paper);var Kw=Object.defineProperty,Xw=Object.getOwnPropertyDescriptor,De=(r,n,o,c)=>{for(var f=c>1?void 0:c?Xw(n,o):n,p=r.length-1,b;p>=0;p--)(b=r[p])&&(f=(c?b(n,o,f):b(f))||f);return c&&f&&Kw(n,o,f),f};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=De([Q("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=De([Q("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=De([Q("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=De([Q("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=De([Q("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=De([Q("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=De([Q("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=De([Q("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=De([Q("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=De([Q("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=De([Q("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=De([Q("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=De([Q("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=De([Q("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=De([Q("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=De([Q("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=De([Q("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=De([Q("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=De([Q("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=De([Q("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=De([Q("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=De([Q("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=De([Q("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=De([Q("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=De([Q("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=De([Q("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=De([Q("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=De([Q("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=De([Q("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=De([Q("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=De([Q("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=De([Q("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=De([Q("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=De([Q("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=De([Q("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=De([Q("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=De([Q("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=De([Q("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=De([Q("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=De([Q("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=De([Q("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=De([Q("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=De([Q("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=De([Q("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=De([Q("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=De([Q("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=De([Q("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=De([Q("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends _1{};exports.LegacyInputGuide=De([Q("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=De([Q("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=De([Q("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=De([Q("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=De([Q("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=De([Q("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=De([Q("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=De([Q("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=De([Q("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=De([Q("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=De([Q("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=De([Q("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=De([Q("sp-labeled-input")],exports.LegacyLabeledInput);exports.ACTION_BAR=C2;exports.ALERT=o5;exports.AVATAR=u2;exports.AVATAR_GROUP=c2;exports.BADGE=i5;exports.BASIC_PAGINATION=wh;exports.BUTTON=Yd;exports.BUTTON_GROUP=g2;exports.COLUMN=d2;exports.COMBO_BOX=v2;exports.COMBO_BOX_OPTION=b2;exports.CONFIRMATION_DIALOG=M2;exports.ConfirmationDialogCancel=k2;exports.ConfirmationDialogConfirm=O2;exports.DeleteLozengeEvent=V2;exports.FADE_IN_OUT=Kp;exports.FOOTER=c5;exports.GLOBAL_STYLES=h5;exports.HEADER=s5;exports.HEADER_FOOTER_PAGE=l5;exports.HEADING=Z4;exports.ICON=x2;exports.ILLUSTRATION=a5;exports.INPUT_CHECKBOX=T2;exports.INPUT_CODE=F2;exports.INPUT_ERROR=P2;exports.INPUT_LABEL=E2;exports.INPUT_MULTISELECT=G2;exports.INPUT_NUMBER=R2;exports.INPUT_RADIO_GROUP=H2;exports.INPUT_RADIO_OPTION=B2;exports.INPUT_SELECT=Y2;exports.INPUT_TEXT=I2;exports.INPUT_TEXTAREA=D2;exports.INPUT_TIME=H4;exports.InputBase=_o;exports.InputSelectBase=ti;exports.LABELED_INPUT=A2;exports.LINK=V4;exports.LINK_BUTTON=G4;exports.LOADING_SPINNER=p2;exports.LOZENGE=Z2;exports.MENU=W2;exports.MENU_ITEM=y0;exports.MODAL=m2;exports.MODAL_BODY=_2;exports.MODAL_FOOTER=z2;exports.MODAL_HEADER=L2;exports.ModalCloseEvent=Vd;exports.NO_RESULTS_ID=Xd;exports.PAGE_HEADER=d5;exports.PAGINATION=xh;exports.PAPER=p5;exports.POPOVER=Wd;exports.POPOVER_LISTENABLE_EVENT_TYPES=L1;exports.POPOVER_ROLES=Ud;exports.POPOVER_TRIGGERS=s2;exports.PURE_POPOVER=a2;exports.RECORD_ROW=Q4;exports.RECORD_ROW_LABEL=J4;exports.RESPONSIVE_COLUMNS=u5;exports.ROW=f2;exports.SIDE_NAVIGATION=K4;exports.SIDE_NAVIGATION_ITEM=j4;exports.SPLIT_ROW=y2;exports.TAB=t5;exports.TABS=n5;exports.TAB_BAR=r5;exports.TAB_PANEL=e5;exports.TIME_FORMAT=B4;exports.TIME_REGEX_12H=U4;exports.TIME_REGEX_24H=W4;exports.TIME_REGEX_LOOSE=F4;exports.TOOLTIP=l2;exports.TabSelectedEvent=Q1;exports.VIRTUAL_LIST=Kd;exports.alertTypes=yw;exports.buttonTypes=i9;exports.click=x1;exports.emit=U2;exports.focus=Us;exports.hover=Cd;exports.iconNames=p9;exports.icons=Gd;exports.illustrationNames=ww;exports.illustrations=Lh;exports.lozengeColors=_8;exports.lozengeSizes=S8;exports.lozengeThemes=z8;exports.transformIcon=w2;