@skedulo/breeze-ui 1.8.0 → 1.8.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.
- package/dist/custom-elements.json +15 -23
- package/dist/lib/cjs/breeze-ui.js +216 -215
- package/dist/lib/es/breeze-ui.js +9198 -9191
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/components/modal/layout.d.ts +4 -1
- package/dist/types/components/modal/layout.d.ts.map +1 -1
- package/dist/types/components/modal/modal.d.ts +10 -3
- package/dist/types/components/modal/modal.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u9(o,t){for(var n=0;n<t.length;n++){const l=t[n];if(typeof l!="string"&&!Array.isArray(l)){for(const c in l)if(c!=="default"&&!(c in o)){const g=Object.getOwnPropertyDescriptor(l,c);g&&Object.defineProperty(o,c,g.get?g:{enumerable:!0,get:()=>l[c]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const
|
|
5
|
+
*/const Ed=window,zh=Ed.ShadowRoot&&(Ed.ShadyCSS===void 0||Ed.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bg=Symbol(),Up=new WeakMap;let c9=class{constructor(t,n,l){if(this._$cssResult$=!0,l!==bg)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(zh&&t===void 0){const l=n!==void 0&&n.length===1;l&&(t=Up.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),l&&Up.set(n,t))}return t}toString(){return this.cssText}};const d9=o=>new c9(typeof o=="string"?o:o+"",void 0,bg),f9=(o,t)=>{zh?o.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet):t.forEach(n=>{const l=document.createElement("style"),c=Ed.litNonce;c!==void 0&&l.setAttribute("nonce",c),l.textContent=n.cssText,o.appendChild(l)})},Vp=zh?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let n="";for(const l of t.cssRules)n+=l.cssText;return d9(n)})(o):o;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var Af;const Dd=window,
|
|
9
|
+
*/var Af;const Dd=window,Zp=Dd.trustedTypes,h9=Zp?Zp.emptyScript:"",Gp=Dd.reactiveElementPolyfillSupport,rh={toAttribute(o,t){switch(t){case Boolean:o=o?h9:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let n=o;switch(t){case Boolean:n=o!==null;break;case Number:n=o===null?null:Number(o);break;case Object:case Array:try{n=JSON.parse(o)}catch{n=null}}return n}},mg=(o,t)=>t!==o&&(t==t||o==o),$f={attribute:!0,type:String,converter:rh,reflect:!1,hasChanged:mg},nh="finalized";let vc=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var n;this.finalize(),((n=this.h)!==null&&n!==void 0?n:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((n,l)=>{const c=this._$Ep(l,n);c!==void 0&&(this._$Ev.set(c,l),t.push(c))}),t}static createProperty(t,n=$f){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(t,n),!n.noAccessor&&!this.prototype.hasOwnProperty(t)){const l=typeof t=="symbol"?Symbol():"__"+t,c=this.getPropertyDescriptor(t,l,n);c!==void 0&&Object.defineProperty(this.prototype,t,c)}}static getPropertyDescriptor(t,n,l){return{get(){return this[n]},set(c){const g=this[t];this[n]=c,this.requestUpdate(t,g,l)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$f}static finalize(){if(this.hasOwnProperty(nh))return!1;this[nh]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const n=this.properties,l=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const c of l)this.createProperty(c,n[c])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const l=new Set(t.flat(1/0).reverse());for(const c of l)n.unshift(Vp(c))}else t!==void 0&&n.push(Vp(t));return n}static _$Ep(t,n){const l=n.attribute;return l===!1?void 0:typeof l=="string"?l:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(n=>n(this))}addController(t){var n,l;((n=this._$ES)!==null&&n!==void 0?n:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((l=t.hostConnected)===null||l===void 0||l.call(t))}removeController(t){var n;(n=this._$ES)===null||n===void 0||n.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,n)=>{this.hasOwnProperty(n)&&(this._$Ei.set(n,this[n]),delete this[n])})}createRenderRoot(){var t;const n=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return f9(n,this.constructor.elementStyles),n}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var l;return(l=n.hostConnected)===null||l===void 0?void 0:l.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var l;return(l=n.hostDisconnected)===null||l===void 0?void 0:l.call(n)})}attributeChangedCallback(t,n,l){this._$AK(t,l)}_$EO(t,n,l=$f){var c;const g=this.constructor._$Ep(t,l);if(g!==void 0&&l.reflect===!0){const h=(((c=l.converter)===null||c===void 0?void 0:c.toAttribute)!==void 0?l.converter:rh).toAttribute(n,l.type);this._$El=t,h==null?this.removeAttribute(g):this.setAttribute(g,h),this._$El=null}}_$AK(t,n){var l;const c=this.constructor,g=c._$Ev.get(t);if(g!==void 0&&this._$El!==g){const h=c.getPropertyOptions(g),x=typeof h.converter=="function"?{fromAttribute:h.converter}:((l=h.converter)===null||l===void 0?void 0:l.fromAttribute)!==void 0?h.converter:rh;this._$El=g,this[g]=x.fromAttribute(n,h.type),this._$El=null}}requestUpdate(t,n,l){let c=!0;t!==void 0&&(((l=l||this.constructor.getPropertyOptions(t)).hasChanged||mg)(this[t],n)?(this._$AL.has(t)||this._$AL.set(t,n),l.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,l))):c=!1),!this.isUpdatePending&&c&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((c,g)=>this[g]=c),this._$Ei=void 0);let n=!1;const l=this._$AL;try{n=this.shouldUpdate(l),n?(this.willUpdate(l),(t=this._$ES)===null||t===void 0||t.forEach(c=>{var g;return(g=c.hostUpdate)===null||g===void 0?void 0:g.call(c)}),this.update(l)):this._$Ek()}catch(c){throw n=!1,this._$Ek(),c}n&&this._$AE(l)}willUpdate(t){}_$AE(t){var n;(n=this._$ES)===null||n===void 0||n.forEach(l=>{var c;return(c=l.hostUpdated)===null||c===void 0?void 0:c.call(l)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((n,l)=>this._$EO(l,this[l],n)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};vc[nh]=!0,vc.elementProperties=new Map,vc.elementStyles=[],vc.shadowRootOptions={mode:"open"},Gp==null||Gp({ReactiveElement:vc}),((Af=Dd.reactiveElementVersions)!==null&&Af!==void 0?Af:Dd.reactiveElementVersions=[]).push("1.6.2");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var Pf;const Nd=window,
|
|
14
|
-
\f\r]`,bc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/var Pf;const Nd=window,au=Nd.trustedTypes,qp=au?au.createPolicy("lit-html",{createHTML:o=>o}):void 0,Rd="$lit$",jo=`lit$${(Math.random()+"").slice(9)}$`,Lh="?"+jo,p9=`<${Lh}>`,Vs=document,Fd=()=>Vs.createComment(""),Ic=o=>o===null||typeof o!="object"&&typeof o!="function",yg=Array.isArray,Cg=o=>yg(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Df=`[
|
|
14
|
+
\f\r]`,bc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jp=/-->/g,Kp=/>/g,Es=RegExp(`>|${Df}(?:([^\\s"'>=/]+)(${Df}*=${Df}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yp=/'/g,Xp=/"/g,wg=/^(?:script|style|textarea|title)$/i,Yo=Symbol.for("lit-noChange"),pr=Symbol.for("lit-nothing"),Jp=new WeakMap,Hs=Vs.createTreeWalker(Vs,129,null,!1),xg=(o,t)=>{const n=o.length-1,l=[];let c,g=t===2?"<svg>":"",h=bc;for(let z=0;z<n;z++){const S=o[z];let E,D,B=-1,R=0;for(;R<S.length&&(h.lastIndex=R,D=h.exec(S),D!==null);)R=h.lastIndex,h===bc?D[1]==="!--"?h=jp:D[1]!==void 0?h=Kp:D[2]!==void 0?(wg.test(D[2])&&(c=RegExp("</"+D[2],"g")),h=Es):D[3]!==void 0&&(h=Es):h===Es?D[0]===">"?(h=c!=null?c:bc,B=-1):D[1]===void 0?B=-2:(B=h.lastIndex-D[2].length,E=D[1],h=D[3]===void 0?Es:D[3]==='"'?Xp:Yp):h===Xp||h===Yp?h=Es:h===jp||h===Kp?h=bc:(h=Es,c=void 0);const J=h===Es&&o[z+1].startsWith("/>")?" ":"";g+=h===bc?S+p9:B>=0?(l.push(E),S.slice(0,B)+Rd+S.slice(B)+jo+J):S+jo+(B===-2?(l.push(void 0),z):J)}const x=g+(o[n]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return[qp!==void 0?qp.createHTML(x):x,l]};let ih=class zg{constructor({strings:t,_$litType$:n},l){let c;this.parts=[];let g=0,h=0;const x=t.length-1,z=this.parts,[S,E]=xg(t,n);if(this.el=zg.createElement(S,l),Hs.currentNode=this.el.content,n===2){const D=this.el.content,B=D.firstChild;B.remove(),D.append(...B.childNodes)}for(;(c=Hs.nextNode())!==null&&z.length<x;){if(c.nodeType===1){if(c.hasAttributes()){const D=[];for(const B of c.getAttributeNames())if(B.endsWith(Rd)||B.startsWith(jo)){const R=E[h++];if(D.push(B),R!==void 0){const J=c.getAttribute(R.toLowerCase()+Rd).split(jo),pe=/([.?@])?(.*)/.exec(R);z.push({type:1,index:g,name:pe[2],strings:J,ctor:pe[1]==="."?_g:pe[1]==="?"?Mg:pe[1]==="@"?Tg:Fc})}else z.push({type:6,index:g})}for(const B of D)c.removeAttribute(B)}if(wg.test(c.tagName)){const D=c.textContent.split(jo),B=D.length-1;if(B>0){c.textContent=au?au.emptyScript:"";for(let R=0;R<B;R++)c.append(D[R],Fd()),Hs.nextNode(),z.push({type:2,index:++g});c.append(D[B],Fd())}}}else if(c.nodeType===8)if(c.data===Lh)z.push({type:2,index:g});else{let D=-1;for(;(D=c.data.indexOf(jo,D+1))!==-1;)z.push({type:7,index:g}),D+=jo.length-1}g++}}static createElement(t,n){const l=Vs.createElement("template");return l.innerHTML=t,l}};function Zs(o,t,n=o,l){var c,g,h,x;if(t===Yo)return t;let z=l!==void 0?(c=n._$Co)===null||c===void 0?void 0:c[l]:n._$Cl;const S=Ic(t)?void 0:t._$litDirective$;return(z==null?void 0:z.constructor)!==S&&((g=z==null?void 0:z._$AO)===null||g===void 0||g.call(z,!1),S===void 0?z=void 0:(z=new S(o),z._$AT(o,n,l)),l!==void 0?((h=(x=n)._$Co)!==null&&h!==void 0?h:x._$Co=[])[l]=z:n._$Cl=z),z!==void 0&&(t=Zs(o,z._$AS(o,t.values),z,l)),t}let Lg=class{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var n;const{el:{content:l},parts:c}=this._$AD,g=((n=t==null?void 0:t.creationScope)!==null&&n!==void 0?n:Vs).importNode(l,!0);Hs.currentNode=g;let h=Hs.nextNode(),x=0,z=0,S=c[0];for(;S!==void 0;){if(x===S.index){let E;S.type===2?E=new Sh(h,h.nextSibling,this,t):S.type===1?E=new S.ctor(h,S.name,S.strings,this,t):S.type===6&&(E=new Og(h,this,t)),this._$AV.push(E),S=c[++z]}x!==(S==null?void 0:S.index)&&(h=Hs.nextNode(),x++)}return Hs.currentNode=Vs,g}v(t){let n=0;for(const l of this._$AV)l!==void 0&&(l.strings!==void 0?(l._$AI(t,l,n),n+=l.strings.length-2):l._$AI(t[n])),n++}},Sh=class Sg{constructor(t,n,l,c){var g;this.type=2,this._$AH=pr,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=l,this.options=c,this._$Cp=(g=c==null?void 0:c.isConnected)===null||g===void 0||g}get _$AU(){var t,n;return(n=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&n!==void 0?n:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=Zs(this,t,n),Ic(t)?t===pr||t==null||t===""?(this._$AH!==pr&&this._$AR(),this._$AH=pr):t!==this._$AH&&t!==Yo&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Cg(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==pr&&Ic(this._$AH)?this._$AA.nextSibling.data=t:this.$(Vs.createTextNode(t)),this._$AH=t}g(t){var n;const{values:l,_$litType$:c}=t,g=typeof c=="number"?this._$AC(t):(c.el===void 0&&(c.el=ih.createElement(c.h,this.options)),c);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===g)this._$AH.v(l);else{const h=new Lg(g,this),x=h.u(this.options);h.v(l),this.$(x),this._$AH=h}}_$AC(t){let n=Jp.get(t.strings);return n===void 0&&Jp.set(t.strings,n=new ih(t)),n}T(t){yg(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let l,c=0;for(const g of t)c===n.length?n.push(l=new Sg(this.k(Fd()),this.k(Fd()),this,this.options)):l=n[c],l._$AI(g),c++;c<n.length&&(this._$AR(l&&l._$AB.nextSibling,c),n.length=c)}_$AR(t=this._$AA.nextSibling,n){var l;for((l=this._$AP)===null||l===void 0||l.call(this,!1,!0,n);t&&t!==this._$AB;){const c=t.nextSibling;t.remove(),t=c}}setConnected(t){var n;this._$AM===void 0&&(this._$Cp=t,(n=this._$AP)===null||n===void 0||n.call(this,t))}},Fc=class{constructor(t,n,l,c,g){this.type=1,this._$AH=pr,this._$AN=void 0,this.element=t,this.name=n,this._$AM=c,this.options=g,l.length>2||l[0]!==""||l[1]!==""?(this._$AH=Array(l.length-1).fill(new String),this.strings=l):this._$AH=pr}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,n=this,l,c){const g=this.strings;let h=!1;if(g===void 0)t=Zs(this,t,n,0),h=!Ic(t)||t!==this._$AH&&t!==Yo,h&&(this._$AH=t);else{const x=t;let z,S;for(t=g[0],z=0;z<g.length-1;z++)S=Zs(this,x[l+z],n,z),S===Yo&&(S=this._$AH[z]),h||(h=!Ic(S)||S!==this._$AH[z]),S===pr?t=pr:t!==pr&&(t+=(S!=null?S:"")+g[z+1]),this._$AH[z]=S}h&&!c&&this.j(t)}j(t){t===pr?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},_g=class extends Fc{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===pr?void 0:t}};const g9=au?au.emptyScript:"";let Mg=class extends Fc{constructor(){super(...arguments),this.type=4}j(t){t&&t!==pr?this.element.setAttribute(this.name,g9):this.element.removeAttribute(this.name)}},Tg=class extends Fc{constructor(t,n,l,c,g){super(t,n,l,c,g),this.type=5}_$AI(t,n=this){var l;if((t=(l=Zs(this,t,n,0))!==null&&l!==void 0?l:pr)===Yo)return;const c=this._$AH,g=t===pr&&c!==pr||t.capture!==c.capture||t.once!==c.once||t.passive!==c.passive,h=t!==pr&&(c===pr||g);g&&this.element.removeEventListener(this.name,this,c),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n,l;typeof this._$AH=="function"?this._$AH.call((l=(n=this.options)===null||n===void 0?void 0:n.host)!==null&&l!==void 0?l:this.element,t):this._$AH.handleEvent(t)}},Og=class{constructor(t,n,l){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=l}get _$AU(){return this._$AM._$AU}_$AI(t){Zs(this,t)}};const v9={O:Rd,P:jo,A:Lh,C:1,M:xg,L:Lg,D:Cg,R:Zs,I:Sh,V:Fc,H:Mg,N:Tg,U:_g,F:Og},Qp=Nd.litHtmlPolyfillSupport;Qp==null||Qp(ih,Sh),((Pf=Nd.litHtmlVersions)!==null&&Pf!==void 0?Pf:Nd.litHtmlVersions=[]).push("2.7.4");/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2019 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const Id=window,
|
|
19
|
+
*/const Id=window,_h=Id.ShadowRoot&&(Id.ShadyCSS===void 0||Id.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mh=Symbol(),e2=new WeakMap;let kg=class{constructor(t,n,l){if(this._$cssResult$=!0,l!==Mh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(_h&&t===void 0){const l=n!==void 0&&n.length===1;l&&(t=e2.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),l&&e2.set(n,t))}return t}toString(){return this.cssText}};const Ua=o=>new kg(typeof o=="string"?o:o+"",void 0,Mh),fe=(o,...t)=>{const n=o.length===1?o[0]:t.reduce((l,c,g)=>l+(h=>{if(h._$cssResult$===!0)return h.cssText;if(typeof h=="number")return h;throw Error("Value passed to 'css' function must be a 'css' function result: "+h+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(c)+o[g+1],o[0]);return new kg(n,o,Mh)},b9=(o,t)=>{_h?o.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet):t.forEach(n=>{const l=document.createElement("style"),c=Id.litNonce;c!==void 0&&l.setAttribute("nonce",c),l.textContent=n.cssText,o.appendChild(l)})},t2=_h?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let n="";for(const l of t.cssRules)n+=l.cssText;return Ua(n)})(o):o;/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/var Nf;const Hd=window,
|
|
23
|
+
*/var Nf;const Hd=window,r2=Hd.trustedTypes,m9=r2?r2.emptyScript:"",n2=Hd.reactiveElementPolyfillSupport,oh={toAttribute(o,t){switch(t){case Boolean:o=o?m9:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let n=o;switch(t){case Boolean:n=o!==null;break;case Number:n=o===null?null:Number(o);break;case Object:case Array:try{n=JSON.parse(o)}catch{n=null}}return n}},Eg=(o,t)=>t!==o&&(t==t||o==o),Rf={attribute:!0,type:String,converter:oh,reflect:!1,hasChanged:Eg};let nu=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var n;this.finalize(),((n=this.h)!==null&&n!==void 0?n:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((n,l)=>{const c=this._$Ep(l,n);c!==void 0&&(this._$Ev.set(c,l),t.push(c))}),t}static createProperty(t,n=Rf){if(n.state&&(n.attribute=!1),this.finalize(),this.elementProperties.set(t,n),!n.noAccessor&&!this.prototype.hasOwnProperty(t)){const l=typeof t=="symbol"?Symbol():"__"+t,c=this.getPropertyDescriptor(t,l,n);c!==void 0&&Object.defineProperty(this.prototype,t,c)}}static getPropertyDescriptor(t,n,l){return{get(){return this[n]},set(c){const g=this[t];this[n]=c,this.requestUpdate(t,g,l)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Rf}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const n=this.properties,l=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const c of l)this.createProperty(c,n[c])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const l=new Set(t.flat(1/0).reverse());for(const c of l)n.unshift(t2(c))}else t!==void 0&&n.push(t2(t));return n}static _$Ep(t,n){const l=n.attribute;return l===!1?void 0:typeof l=="string"?l:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(n=>n(this))}addController(t){var n,l;((n=this._$ES)!==null&&n!==void 0?n:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((l=t.hostConnected)===null||l===void 0||l.call(t))}removeController(t){var n;(n=this._$ES)===null||n===void 0||n.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,n)=>{this.hasOwnProperty(n)&&(this._$Ei.set(n,this[n]),delete this[n])})}createRenderRoot(){var t;const n=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return b9(n,this.constructor.elementStyles),n}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var l;return(l=n.hostConnected)===null||l===void 0?void 0:l.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var l;return(l=n.hostDisconnected)===null||l===void 0?void 0:l.call(n)})}attributeChangedCallback(t,n,l){this._$AK(t,l)}_$EO(t,n,l=Rf){var c;const g=this.constructor._$Ep(t,l);if(g!==void 0&&l.reflect===!0){const h=(((c=l.converter)===null||c===void 0?void 0:c.toAttribute)!==void 0?l.converter:oh).toAttribute(n,l.type);this._$El=t,h==null?this.removeAttribute(g):this.setAttribute(g,h),this._$El=null}}_$AK(t,n){var l;const c=this.constructor,g=c._$Ev.get(t);if(g!==void 0&&this._$El!==g){const h=c.getPropertyOptions(g),x=typeof h.converter=="function"?{fromAttribute:h.converter}:((l=h.converter)===null||l===void 0?void 0:l.fromAttribute)!==void 0?h.converter:oh;this._$El=g,this[g]=x.fromAttribute(n,h.type),this._$El=null}}requestUpdate(t,n,l){let c=!0;t!==void 0&&(((l=l||this.constructor.getPropertyOptions(t)).hasChanged||Eg)(this[t],n)?(this._$AL.has(t)||this._$AL.set(t,n),l.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,l))):c=!1),!this.isUpdatePending&&c&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((c,g)=>this[g]=c),this._$Ei=void 0);let n=!1;const l=this._$AL;try{n=this.shouldUpdate(l),n?(this.willUpdate(l),(t=this._$ES)===null||t===void 0||t.forEach(c=>{var g;return(g=c.hostUpdate)===null||g===void 0?void 0:g.call(c)}),this.update(l)):this._$Ek()}catch(c){throw n=!1,this._$Ek(),c}n&&this._$AE(l)}willUpdate(t){}_$AE(t){var n;(n=this._$ES)===null||n===void 0||n.forEach(l=>{var c;return(c=l.hostUpdated)===null||c===void 0?void 0:c.call(l)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((n,l)=>this._$EO(l,this[l],n)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};nu.finalized=!0,nu.elementProperties=new Map,nu.elementStyles=[],nu.shadowRootOptions={mode:"open"},n2==null||n2({ReactiveElement:nu}),((Nf=Hd.reactiveElementVersions)!==null&&Nf!==void 0?Nf:Hd.reactiveElementVersions=[]).push("1.4.2");/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/var Ff;const Bd=window,
|
|
28
|
-
\f\r]`,mc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
29
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
27
|
+
*/var Ff;const Bd=window,su=Bd.trustedTypes,i2=su?su.createPolicy("lit-html",{createHTML:o=>o}):void 0,ah="$lit$",Ba=`lit$${(Math.random()+"").slice(9)}$`,Ig="?"+Ba,y9=`<${Ig}>`,Gs=document,Ac=()=>Gs.createComment(""),$c=o=>o===null||typeof o!="object"&&typeof o!="function",Ag=Array.isArray,C9=o=>Ag(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Hf=`[
|
|
28
|
+
\f\r]`,mc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,o2=/-->/g,a2=/>/g,Is=RegExp(`>|${Hf}(?:([^\\s"'>=/]+)(${Hf}*=${Hf}*(?:[^
|
|
29
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),s2=/'/g,l2=/"/g,$g=/^(?:script|style|textarea|title)$/i,Pg=o=>(t,...n)=>({_$litType$:o,strings:t,values:n}),q=Pg(1),X=Pg(2),lu=Symbol.for("lit-noChange"),$r=Symbol.for("lit-nothing"),u2=new WeakMap,Bs=Gs.createTreeWalker(Gs,129,null,!1),w9=(o,t)=>{const n=o.length-1,l=[];let c,g=t===2?"<svg>":"",h=mc;for(let z=0;z<n;z++){const S=o[z];let E,D,B=-1,R=0;for(;R<S.length&&(h.lastIndex=R,D=h.exec(S),D!==null);)R=h.lastIndex,h===mc?D[1]==="!--"?h=o2:D[1]!==void 0?h=a2:D[2]!==void 0?($g.test(D[2])&&(c=RegExp("</"+D[2],"g")),h=Is):D[3]!==void 0&&(h=Is):h===Is?D[0]===">"?(h=c!=null?c:mc,B=-1):D[1]===void 0?B=-2:(B=h.lastIndex-D[2].length,E=D[1],h=D[3]===void 0?Is:D[3]==='"'?l2:s2):h===l2||h===s2?h=Is:h===o2||h===a2?h=mc:(h=Is,c=void 0);const J=h===Is&&o[z+1].startsWith("/>")?" ":"";g+=h===mc?S+y9:B>=0?(l.push(E),S.slice(0,B)+ah+S.slice(B)+Ba+J):S+Ba+(B===-2?(l.push(void 0),z):J)}const x=g+(o[n]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return[i2!==void 0?i2.createHTML(x):x,l]};class Pc{constructor({strings:t,_$litType$:n},l){let c;this.parts=[];let g=0,h=0;const x=t.length-1,z=this.parts,[S,E]=w9(t,n);if(this.el=Pc.createElement(S,l),Bs.currentNode=this.el.content,n===2){const D=this.el.content,B=D.firstChild;B.remove(),D.append(...B.childNodes)}for(;(c=Bs.nextNode())!==null&&z.length<x;){if(c.nodeType===1){if(c.hasAttributes()){const D=[];for(const B of c.getAttributeNames())if(B.endsWith(ah)||B.startsWith(Ba)){const R=E[h++];if(D.push(B),R!==void 0){const J=c.getAttribute(R.toLowerCase()+ah).split(Ba),pe=/([.?@])?(.*)/.exec(R);z.push({type:1,index:g,name:pe[2],strings:J,ctor:pe[1]==="."?z9:pe[1]==="?"?S9:pe[1]==="@"?_9:o1})}else z.push({type:6,index:g})}for(const B of D)c.removeAttribute(B)}if($g.test(c.tagName)){const D=c.textContent.split(Ba),B=D.length-1;if(B>0){c.textContent=su?su.emptyScript:"";for(let R=0;R<B;R++)c.append(D[R],Ac()),Bs.nextNode(),z.push({type:2,index:++g});c.append(D[B],Ac())}}}else if(c.nodeType===8)if(c.data===Ig)z.push({type:2,index:g});else{let D=-1;for(;(D=c.data.indexOf(Ba,D+1))!==-1;)z.push({type:7,index:g}),D+=Ba.length-1}g++}}static createElement(t,n){const l=Gs.createElement("template");return l.innerHTML=t,l}}function uu(o,t,n=o,l){var c,g,h,x;if(t===lu)return t;let z=l!==void 0?(c=n._$Co)===null||c===void 0?void 0:c[l]:n._$Cl;const S=$c(t)?void 0:t._$litDirective$;return(z==null?void 0:z.constructor)!==S&&((g=z==null?void 0:z._$AO)===null||g===void 0||g.call(z,!1),S===void 0?z=void 0:(z=new S(o),z._$AT(o,n,l)),l!==void 0?((h=(x=n)._$Co)!==null&&h!==void 0?h:x._$Co=[])[l]=z:n._$Cl=z),z!==void 0&&(t=uu(o,z._$AS(o,t.values),z,l)),t}class x9{constructor(t,n){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=n}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var n;const{el:{content:l},parts:c}=this._$AD,g=((n=t==null?void 0:t.creationScope)!==null&&n!==void 0?n:Gs).importNode(l,!0);Bs.currentNode=g;let h=Bs.nextNode(),x=0,z=0,S=c[0];for(;S!==void 0;){if(x===S.index){let E;S.type===2?E=new Hc(h,h.nextSibling,this,t):S.type===1?E=new S.ctor(h,S.name,S.strings,this,t):S.type===6&&(E=new M9(h,this,t)),this._$AV.push(E),S=c[++z]}x!==(S==null?void 0:S.index)&&(h=Bs.nextNode(),x++)}return Bs.currentNode=Gs,g}v(t){let n=0;for(const l of this._$AV)l!==void 0&&(l.strings!==void 0?(l._$AI(t,l,n),n+=l.strings.length-2):l._$AI(t[n])),n++}}class Hc{constructor(t,n,l,c){var g;this.type=2,this._$AH=$r,this._$AN=void 0,this._$AA=t,this._$AB=n,this._$AM=l,this.options=c,this._$Cp=(g=c==null?void 0:c.isConnected)===null||g===void 0||g}get _$AU(){var t,n;return(n=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&n!==void 0?n:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const n=this._$AM;return n!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=n.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,n=this){t=uu(this,t,n),$c(t)?t===$r||t==null||t===""?(this._$AH!==$r&&this._$AR(),this._$AH=$r):t!==this._$AH&&t!==lu&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):C9(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==$r&&$c(this._$AH)?this._$AA.nextSibling.data=t:this.$(Gs.createTextNode(t)),this._$AH=t}g(t){var n;const{values:l,_$litType$:c}=t,g=typeof c=="number"?this._$AC(t):(c.el===void 0&&(c.el=Pc.createElement(c.h,this.options)),c);if(((n=this._$AH)===null||n===void 0?void 0:n._$AD)===g)this._$AH.v(l);else{const h=new x9(g,this),x=h.u(this.options);h.v(l),this.$(x),this._$AH=h}}_$AC(t){let n=u2.get(t.strings);return n===void 0&&u2.set(t.strings,n=new Pc(t)),n}T(t){Ag(this._$AH)||(this._$AH=[],this._$AR());const n=this._$AH;let l,c=0;for(const g of t)c===n.length?n.push(l=new Hc(this.k(Ac()),this.k(Ac()),this,this.options)):l=n[c],l._$AI(g),c++;c<n.length&&(this._$AR(l&&l._$AB.nextSibling,c),n.length=c)}_$AR(t=this._$AA.nextSibling,n){var l;for((l=this._$AP)===null||l===void 0||l.call(this,!1,!0,n);t&&t!==this._$AB;){const c=t.nextSibling;t.remove(),t=c}}setConnected(t){var n;this._$AM===void 0&&(this._$Cp=t,(n=this._$AP)===null||n===void 0||n.call(this,t))}}class o1{constructor(t,n,l,c,g){this.type=1,this._$AH=$r,this._$AN=void 0,this.element=t,this.name=n,this._$AM=c,this.options=g,l.length>2||l[0]!==""||l[1]!==""?(this._$AH=Array(l.length-1).fill(new String),this.strings=l):this._$AH=$r}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,n=this,l,c){const g=this.strings;let h=!1;if(g===void 0)t=uu(this,t,n,0),h=!$c(t)||t!==this._$AH&&t!==lu,h&&(this._$AH=t);else{const x=t;let z,S;for(t=g[0],z=0;z<g.length-1;z++)S=uu(this,x[l+z],n,z),S===lu&&(S=this._$AH[z]),h||(h=!$c(S)||S!==this._$AH[z]),S===$r?t=$r:t!==$r&&(t+=(S!=null?S:"")+g[z+1]),this._$AH[z]=S}h&&!c&&this.j(t)}j(t){t===$r?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class z9 extends o1{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$r?void 0:t}}const L9=su?su.emptyScript:"";class S9 extends o1{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$r?this.element.setAttribute(this.name,L9):this.element.removeAttribute(this.name)}}class _9 extends o1{constructor(t,n,l,c,g){super(t,n,l,c,g),this.type=5}_$AI(t,n=this){var l;if((t=(l=uu(this,t,n,0))!==null&&l!==void 0?l:$r)===lu)return;const c=this._$AH,g=t===$r&&c!==$r||t.capture!==c.capture||t.once!==c.once||t.passive!==c.passive,h=t!==$r&&(c===$r||g);g&&this.element.removeEventListener(this.name,this,c),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var n,l;typeof this._$AH=="function"?this._$AH.call((l=(n=this.options)===null||n===void 0?void 0:n.host)!==null&&l!==void 0?l:this.element,t):this._$AH.handleEvent(t)}}class M9{constructor(t,n,l){this.element=t,this.type=6,this._$AN=void 0,this._$AM=n,this.options=l}get _$AU(){return this._$AM._$AU}_$AI(t){uu(this,t)}}const c2=Bd.litHtmlPolyfillSupport;c2==null||c2(Pc,Hc),((Ff=Bd.litHtmlVersions)!==null&&Ff!==void 0?Ff:Bd.litHtmlVersions=[]).push("2.7.4");const Dg=(o,t,n)=>{var l,c;const g=(l=n==null?void 0:n.renderBefore)!==null&&l!==void 0?l:t;let h=g._$litPart$;if(h===void 0){const x=(c=n==null?void 0:n.renderBefore)!==null&&c!==void 0?c:null;g._$litPart$=h=new Hc(t.insertBefore(Ac(),x),x,void 0,n!=null?n:{})}return h._$AI(o),h};/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
32
32
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
33
|
-
*/var Bf,Wf;let Ue=class extends
|
|
33
|
+
*/var Bf,Wf;let Ue=class extends nu{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,n;const l=super.createRenderRoot();return(t=(n=this.renderOptions).renderBefore)!==null&&t!==void 0||(n.renderBefore=l.firstChild),l}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Dg(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return lu}};Ue.finalized=!0,Ue._$litElement$=!0,(Bf=globalThis.litElementHydrateSupport)===null||Bf===void 0||Bf.call(globalThis,{LitElement:Ue});const d2=globalThis.litElementPolyfillSupport;d2==null||d2({LitElement:Ue});((Wf=globalThis.litElementVersions)!==null&&Wf!==void 0?Wf:globalThis.litElementVersions=[]).push("3.3.2");/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/const
|
|
41
|
+
*/const T9=(o,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(n){n.createProperty(t.key,o)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(n){n.createProperty(t.key,o)}},O9=(o,t,n)=>{t.constructor.createProperty(n,o)};function H(o){return(t,n)=>n!==void 0?O9(o,t,n):T9(o,t)}/**
|
|
42
42
|
* @license
|
|
43
43
|
* Copyright 2017 Google LLC
|
|
44
44
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -50,19 +50,19 @@
|
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/function
|
|
53
|
+
*/function Ri(o,t){return a1({descriptor:n=>{const l={get(){var c,g;return(g=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(o))!==null&&g!==void 0?g:null},enumerable:!0,configurable:!0};if(t){const c=typeof n=="symbol"?Symbol():"__"+n;l.get=function(){var g,h;return this[c]===void 0&&(this[c]=(h=(g=this.renderRoot)===null||g===void 0?void 0:g.querySelector(o))!==null&&h!==void 0?h:null),this[c]}}return l}})}/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/function
|
|
57
|
+
*/function k9(o){return a1({descriptor:t=>({async get(){var n;return await this.updateComplete,(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(o)},enumerable:!0,configurable:!0})})}/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2021 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/var Uf;const
|
|
61
|
+
*/var Uf;const E9=((Uf=window.HTMLSlotElement)===null||Uf===void 0?void 0:Uf.prototype.assignedElements)!=null?(o,t)=>o.assignedElements(t):(o,t)=>o.assignedNodes(t).filter(n=>n.nodeType===Node.ELEMENT_NODE);function Jo(o){const{slot:t,selector:n}=o!=null?o:{};return a1({descriptor:l=>({get(){var c;const g="slot"+(t?`[name=${t}]`:":not([name])"),h=(c=this.renderRoot)===null||c===void 0?void 0:c.querySelector(g),x=h!=null?E9(h,o):[];return n?x.filter(z=>z.matches(n)):x},enumerable:!0,configurable:!0})})}/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2017 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/function
|
|
65
|
+
*/function Th(o,t,n){let l,c=o;return typeof o=="object"?(c=o.slot,l=o):l={flatten:t},n?Jo({slot:c,flatten:t,selector:n}):a1({descriptor:g=>({get(){var h,x;const z="slot"+(c?`[name=${c}]`:":not([name])"),S=(h=this.renderRoot)===null||h===void 0?void 0:h.querySelector(z);return(x=S==null?void 0:S.assignedNodes(l))!==null&&x!==void 0?x:[]},enumerable:!0,configurable:!0})})}function sh(o,t){if(o){if(o instanceof t)return o;if(o instanceof ShadowRoot)return sh(o.host,t);if("parentNode"in o)return sh(o.parentElement||o.parentNode,t)}return null}const Le=o=>`brz-${o.toLowerCase()}`,ee=o=>customElements.get(o)?(console.warn(`Breeze UI 💨 :: ${o} is already defined! Element registration has been blocked to prevent a crash. Check for duplicate imports of breeze-ui.`),(...t)=>{}):Bc(o);var I9=Object.defineProperty,A9=Object.getOwnPropertyDescriptor,Oh=(o,t,n,l)=>{for(var c=l>1?void 0:l?A9(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&I9(t,n,c),c};const Ng=Le("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(t){t.target===this&&(this.removed=!this.shown)}render(){return this.removed&&!this.shown?q``:q`<slot></slot>`}};exports.FadeInOut.styles=fe`
|
|
66
66
|
:host {
|
|
67
67
|
opacity: 0;
|
|
68
68
|
animation: fade-in 0.3s ease;
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
opacity: 1;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
`;
|
|
82
|
+
`;Oh([H({type:Boolean,reflect:!0})],exports.FadeInOut.prototype,"shown",2);Oh([Be()],exports.FadeInOut.prototype,"removed",2);exports.FadeInOut=Oh([ee(Ng)],exports.FadeInOut);/**
|
|
83
83
|
* @license
|
|
84
84
|
* Copyright 2017 Google LLC
|
|
85
85
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -87,11 +87,11 @@
|
|
|
87
87
|
* @license
|
|
88
88
|
* Copyright 2018 Google LLC
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
|
-
*/const
|
|
90
|
+
*/const kn=l1(class extends u1{constructor(o){var t;if(super(o),o.type!==s1.ATTRIBUTE||o.name!=="class"||((t=o.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var n,l;if(this.it===void 0){this.it=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(g=>g!=="")));for(const g in t)t[g]&&!(!((n=this.nt)===null||n===void 0)&&n.has(g))&&this.it.add(g);return this.render(t)}const c=o.element.classList;this.it.forEach(g=>{g in t||(c.remove(g),this.it.delete(g))});for(const g in t){const h=!!t[g];h===this.it.has(g)||!((l=this.nt)===null||l===void 0)&&l.has(g)||(h?(c.add(g),this.it.add(g)):(c.remove(g),this.it.delete(g)))}return Yo}});/**
|
|
91
91
|
* @license
|
|
92
92
|
* Copyright 2018 Google LLC
|
|
93
93
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
|
-
*/const
|
|
94
|
+
*/const kt=o=>o!=null?o:pr,qs=(o,t=fe``)=>{const n=fe`
|
|
95
95
|
outline: var(--brz-outline-color) var(--brz-outline-style)
|
|
96
96
|
var(--brz-outline-width);
|
|
97
97
|
outline-offset: var(--brz-outline-offset);
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
${n};
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
`}
|
|
114
|
+
`},Rg=fe`
|
|
115
115
|
background: none;
|
|
116
116
|
border: 0;
|
|
117
117
|
border-radius: var(--brz-border-radius-default);
|
|
@@ -121,9 +121,9 @@
|
|
|
121
121
|
font: inherit;
|
|
122
122
|
margin: 0;
|
|
123
123
|
padding: 0;
|
|
124
|
-
`,
|
|
124
|
+
`,Fg=(o,t=fe``)=>fe`
|
|
125
125
|
:host ${Ua(o)} {
|
|
126
|
-
${
|
|
126
|
+
${Rg};
|
|
127
127
|
${t};
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -132,11 +132,11 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
${qs(o)}
|
|
135
|
-
`;var
|
|
135
|
+
`;var En="top",hi="bottom",pi="right",In="left",c1="auto",Wc=[En,hi,pi,In],cu="start",Dc="end",$9="clippingParents",Hg="viewport",yc="popper",P9="reference",f2=Wc.reduce(function(o,t){return o.concat([t+"-"+cu,t+"-"+Dc])},[]),Bg=[].concat(Wc,[c1]).reduce(function(o,t){return o.concat([t,t+"-"+cu,t+"-"+Dc])},[]),D9="beforeRead",N9="read",R9="afterRead",F9="beforeMain",H9="main",B9="afterMain",W9="beforeWrite",U9="write",V9="afterWrite",lh=[D9,N9,R9,F9,H9,B9,W9,U9,V9];function vo(o){return o?(o.nodeName||"").toLowerCase():null}function gi(o){if(o==null)return window;if(o.toString()!=="[object Window]"){var t=o.ownerDocument;return t&&t.defaultView||window}return o}function js(o){var t=gi(o).Element;return o instanceof t||o instanceof Element}function jn(o){var t=gi(o).HTMLElement;return o instanceof t||o instanceof HTMLElement}function kh(o){if(typeof ShadowRoot=="undefined")return!1;var t=gi(o).ShadowRoot;return o instanceof t||o instanceof ShadowRoot}function Z9(o){var t=o.state;Object.keys(t.elements).forEach(function(n){var l=t.styles[n]||{},c=t.attributes[n]||{},g=t.elements[n];!jn(g)||!vo(g)||(Object.assign(g.style,l),Object.keys(c).forEach(function(h){var x=c[h];x===!1?g.removeAttribute(h):g.setAttribute(h,x===!0?"":x)}))})}function G9(o){var t=o.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(l){var c=t.elements[l],g=t.attributes[l]||{},h=Object.keys(t.styles.hasOwnProperty(l)?t.styles[l]:n[l]),x=h.reduce(function(z,S){return z[S]="",z},{});!jn(c)||!vo(c)||(Object.assign(c.style,x),Object.keys(g).forEach(function(z){c.removeAttribute(z)}))})}}const q9={name:"applyStyles",enabled:!0,phase:"write",fn:Z9,effect:G9,requires:["computeStyles"]};function Pi(o){return o.split("-")[0]}var Ws=Math.max,Wd=Math.min,du=Math.round;function uh(){var o=navigator.userAgentData;return o!=null&&o.brands?o.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Wg(){return!/^((?!chrome|android).)*safari/i.test(uh())}function fu(o,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var l=o.getBoundingClientRect(),c=1,g=1;t&&jn(o)&&(c=o.offsetWidth>0&&du(l.width)/o.offsetWidth||1,g=o.offsetHeight>0&&du(l.height)/o.offsetHeight||1);var h=js(o)?gi(o):window,x=h.visualViewport,z=!Wg()&&n,S=(l.left+(z&&x?x.offsetLeft:0))/c,E=(l.top+(z&&x?x.offsetTop:0))/g,D=l.width/c,B=l.height/g;return{width:D,height:B,top:E,right:S+D,bottom:E+B,left:S,x:S,y:E}}function Eh(o){var t=fu(o),n=o.offsetWidth,l=o.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-l)<=1&&(l=t.height),{x:o.offsetLeft,y:o.offsetTop,width:n,height:l}}function Ug(o,t){var n=t.getRootNode&&t.getRootNode();if(o.contains(t))return!0;if(n&&kh(n)){var l=t;do{if(l&&o.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Di(o){return gi(o).getComputedStyle(o)}function j9(o){return["table","td","th"].indexOf(vo(o))>=0}function Va(o){return((js(o)?o.ownerDocument:o.document)||window.document).documentElement}function d1(o){return vo(o)==="html"?o:o.assignedSlot||o.parentNode||(kh(o)?o.host:null)||Va(o)}function h2(o){return!jn(o)||Di(o).position==="fixed"?null:o.offsetParent}function K9(o){var t=/firefox/i.test(uh()),n=/Trident/i.test(uh());if(n&&jn(o)){var l=Di(o);if(l.position==="fixed")return null}var c=d1(o);for(kh(c)&&(c=c.host);jn(c)&&["html","body"].indexOf(vo(c))<0;){var g=Di(c);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||t&&g.willChange==="filter"||t&&g.filter&&g.filter!=="none")return c;c=c.parentNode}return null}function Uc(o){for(var t=gi(o),n=h2(o);n&&j9(n)&&Di(n).position==="static";)n=h2(n);return n&&(vo(n)==="html"||vo(n)==="body"&&Di(n).position==="static")?t:n||K9(o)||t}function Ih(o){return["top","bottom"].indexOf(o)>=0?"x":"y"}function Mc(o,t,n){return Ws(o,Wd(t,n))}function Y9(o,t,n){var l=Mc(o,t,n);return l>n?n:l}function Vg(){return{top:0,right:0,bottom:0,left:0}}function Zg(o){return Object.assign({},Vg(),o)}function Gg(o,t){return t.reduce(function(n,l){return n[l]=o,n},{})}var X9=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Zg(typeof t!="number"?t:Gg(t,Wc))};function J9(o){var t,n=o.state,l=o.name,c=o.options,g=n.elements.arrow,h=n.modifiersData.popperOffsets,x=Pi(n.placement),z=Ih(x),S=[In,pi].indexOf(x)>=0,E=S?"height":"width";if(!(!g||!h)){var D=X9(c.padding,n),B=Eh(g),R=z==="y"?En:In,J=z==="y"?hi:pi,pe=n.rects.reference[E]+n.rects.reference[z]-h[z]-n.rects.popper[E],ge=h[z]-n.rects.reference[z],Te=Uc(g),Ie=Te?z==="y"?Te.clientHeight||0:Te.clientWidth||0:0,be=pe/2-ge/2,ve=D[R],Oe=Ie-B[E]-D[J],$e=Ie/2-B[E]/2+be,De=Mc(ve,$e,Oe),je=z;n.modifiersData[l]=(t={},t[je]=De,t.centerOffset=De-$e,t)}}function Q9(o){var t=o.state,n=o.options,l=n.element,c=l===void 0?"[data-popper-arrow]":l;if(c!=null&&!(typeof c=="string"&&(c=t.elements.popper.querySelector(c),!c))){if({}.NODE_ENV!=="production"&&(jn(c)||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(" "))),!Ug(t.elements.popper,c)){({}).NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=c}}const em={name:"arrow",enabled:!0,phase:"main",fn:J9,effect:Q9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hu(o){return o.split("-")[1]}var tm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rm(o){var t=o.x,n=o.y,l=window,c=l.devicePixelRatio||1;return{x:du(t*c)/c||0,y:du(n*c)/c||0}}function p2(o){var t,n=o.popper,l=o.popperRect,c=o.placement,g=o.variation,h=o.offsets,x=o.position,z=o.gpuAcceleration,S=o.adaptive,E=o.roundOffsets,D=o.isFixed,B=h.x,R=B===void 0?0:B,J=h.y,pe=J===void 0?0:J,ge=typeof E=="function"?E({x:R,y:pe}):{x:R,y:pe};R=ge.x,pe=ge.y;var Te=h.hasOwnProperty("x"),Ie=h.hasOwnProperty("y"),be=In,ve=En,Oe=window;if(S){var $e=Uc(n),De="clientHeight",je="clientWidth";if($e===gi(n)&&($e=Va(n),Di($e).position!=="static"&&x==="absolute"&&(De="scrollHeight",je="scrollWidth")),$e=$e,c===En||(c===In||c===pi)&&g===Dc){ve=hi;var Ye=D&&$e===Oe&&Oe.visualViewport?Oe.visualViewport.height:$e[De];pe-=Ye-l.height,pe*=z?1:-1}if(c===In||(c===En||c===hi)&&g===Dc){be=pi;var Ce=D&&$e===Oe&&Oe.visualViewport?Oe.visualViewport.width:$e[je];R-=Ce-l.width,R*=z?1:-1}}var le=Object.assign({position:x},S&&tm),Q=E===!0?rm({x:R,y:pe}):{x:R,y:pe};if(R=Q.x,pe=Q.y,z){var $;return Object.assign({},le,($={},$[ve]=Ie?"0":"",$[be]=Te?"0":"",$.transform=(Oe.devicePixelRatio||1)<=1?"translate("+R+"px, "+pe+"px)":"translate3d("+R+"px, "+pe+"px, 0)",$))}return Object.assign({},le,(t={},t[ve]=Ie?pe+"px":"",t[be]=Te?R+"px":"",t.transform="",t))}function nm(o){var t=o.state,n=o.options,l=n.gpuAcceleration,c=l===void 0?!0:l,g=n.adaptive,h=g===void 0?!0:g,x=n.roundOffsets,z=x===void 0?!0:x;if({}.NODE_ENV!=="production"){var S=Di(t.elements.popper).transitionProperty||"";h&&["transform","top","right","bottom","left"].some(function(D){return S.indexOf(D)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
136
136
|
|
|
137
137
|
`,'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.",`
|
|
138
138
|
|
|
139
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var k={placement:Pi(t.placement),variation:fu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,h2(Object.assign({},k,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:z})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,h2(Object.assign({},k,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:z})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const em={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Q9,data:{}};var xd={passive:!0};function tm(o){var t=o.state,n=o.instance,l=o.options,c=l.scroll,g=c===void 0?!0:c,h=l.resize,x=h===void 0?!0:h,z=gi(t.elements.popper),S=[].concat(t.scrollParents.reference,t.scrollParents.popper);return g&&S.forEach(function(k){k.addEventListener("scroll",n.update,xd)}),x&&z.addEventListener("resize",n.update,xd),function(){g&&S.forEach(function(k){k.removeEventListener("scroll",n.update,xd)}),x&&z.removeEventListener("resize",n.update,xd)}}const rm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tm,data:{}};var nm={left:"right",right:"left",bottom:"top",top:"bottom"};function Ad(o){return o.replace(/left|right|bottom|top/g,function(t){return nm[t]})}var im={start:"end",end:"start"};function p2(o){return o.replace(/start|end/g,function(t){return im[t]})}function Ih(o){var t=gi(o),n=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:n,scrollTop:l}}function Ah(o){return du(Va(o)).left+Ih(o).scrollLeft}function om(o,t){var n=gi(o),l=Va(o),c=n.visualViewport,g=l.clientWidth,h=l.clientHeight,x=0,z=0;if(c){g=c.width,h=c.height;var S=Rg();(S||!S&&t==="fixed")&&(x=c.offsetLeft,z=c.offsetTop)}return{width:g,height:h,x:x+Ah(o),y:z}}function am(o){var t,n=Va(o),l=Ih(o),c=(t=o.ownerDocument)==null?void 0:t.body,g=Ws(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=Ws(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),x=-l.scrollLeft+Ah(o),z=-l.scrollTop;return Di(c||n).direction==="rtl"&&(x+=Ws(n.clientWidth,c?c.clientWidth:0)-g),{width:g,height:h,x,y:z}}function $h(o){var t=Di(o),n=t.overflow,l=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+l)}function Ug(o){return["html","body","#document"].indexOf(go(o))>=0?o.ownerDocument.body:jn(o)&&$h(o)?o:Ug(d1(o))}function Tc(o,t){var n;t===void 0&&(t=[]);var l=Ug(o),c=l===((n=o.ownerDocument)==null?void 0:n.body),g=gi(l),h=c?[g].concat(g.visualViewport||[],$h(l)?l:[]):l,x=t.concat(h);return c?x:x.concat(Tc(d1(h)))}function uh(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function sm(o,t){var n=du(o,!1,t==="fixed");return n.top=n.top+o.clientTop,n.left=n.left+o.clientLeft,n.bottom=n.top+o.clientHeight,n.right=n.left+o.clientWidth,n.width=o.clientWidth,n.height=o.clientHeight,n.x=n.left,n.y=n.top,n}function g2(o,t,n){return t===Dg?uh(om(o,n)):js(t)?sm(t,n):uh(am(Va(o)))}function lm(o){var t=Tc(d1(o)),n=["absolute","fixed"].indexOf(Di(o).position)>=0,l=n&&jn(o)?Uc(o):o;return js(l)?t.filter(function(c){return js(c)&&Fg(c,l)&&go(c)!=="body"}):[]}function um(o,t,n,l){var c=t==="clippingParents"?lm(o):[].concat(t),g=[].concat(c,[n]),h=g[0],x=g.reduce(function(z,S){var k=g2(o,S,l);return z.top=Ws(k.top,z.top),z.right=Wd(k.right,z.right),z.bottom=Wd(k.bottom,z.bottom),z.left=Ws(k.left,z.left),z},g2(o,h,l));return x.width=x.right-x.left,x.height=x.bottom-x.top,x.x=x.left,x.y=x.top,x}function Vg(o){var t=o.reference,n=o.element,l=o.placement,c=l?Pi(l):null,g=l?fu(l):null,h=t.x+t.width/2-n.width/2,x=t.y+t.height/2-n.height/2,z;switch(c){case kn:z={x:h,y:t.y-n.height};break;case hi:z={x:h,y:t.y+t.height};break;case pi:z={x:t.x+t.width,y:x};break;case In:z={x:t.x-n.width,y:x};break;default:z={x:t.x,y:t.y}}var S=c?kh(c):null;if(S!=null){var k=S==="y"?"height":"width";switch(g){case uu:z[S]=z[S]-(t[k]/2-n[k]/2);break;case Dc:z[S]=z[S]+(t[k]/2-n[k]/2);break}}return z}function Nc(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=l===void 0?o.placement:l,g=n.strategy,h=g===void 0?o.strategy:g,x=n.boundary,z=x===void 0?E9:x,S=n.rootBoundary,k=S===void 0?Dg:S,D=n.elementContext,B=D===void 0?yc:D,R=n.altBoundary,J=R===void 0?!1:R,pe=n.padding,ge=pe===void 0?0:pe,Te=Bg(typeof ge!="number"?ge:Wg(ge,Wc)),Ie=B===yc?k9:yc,be=o.rects.popper,ve=o.elements[J?Ie:B],Oe=um(js(ve)?ve:ve.contextElement||Va(o.elements.popper),z,k,h),$e=du(o.elements.reference),De=Vg({reference:$e,element:be,strategy:"absolute",placement:c}),je=uh(Object.assign({},be,De)),Ye=B===yc?je:$e,Ce={top:Oe.top-Ye.top+Te.top,bottom:Ye.bottom-Oe.bottom+Te.bottom,left:Oe.left-Ye.left+Te.left,right:Ye.right-Oe.right+Te.right},le=o.modifiersData.offset;if(B===yc&&le){var Q=le[c];Object.keys(Ce).forEach(function($){var O=[pi,hi].indexOf($)>=0?1:-1,E=[kn,hi].indexOf($)>=0?"y":"x";Ce[$]+=Q[E]*O})}return Ce}function cm(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=n.boundary,g=n.rootBoundary,h=n.padding,x=n.flipVariations,z=n.allowedAutoPlacements,S=z===void 0?Ng:z,k=fu(l),D=k?x?d2:d2.filter(function(J){return fu(J)===k}):Wc,B=D.filter(function(J){return S.indexOf(J)>=0});B.length===0&&(B=D,{}.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 R=B.reduce(function(J,pe){return J[pe]=Nc(o,{placement:pe,boundary:c,rootBoundary:g,padding:h})[Pi(pe)],J},{});return Object.keys(R).sort(function(J,pe){return R[J]-R[pe]})}function dm(o){if(Pi(o)===c1)return[];var t=Ad(o);return[p2(o),t,p2(t)]}function fm(o){var t=o.state,n=o.options,l=o.name;if(!t.modifiersData[l]._skip){for(var c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,x=h===void 0?!0:h,z=n.fallbackPlacements,S=n.padding,k=n.boundary,D=n.rootBoundary,B=n.altBoundary,R=n.flipVariations,J=R===void 0?!0:R,pe=n.allowedAutoPlacements,ge=t.options.placement,Te=Pi(ge),Ie=Te===ge,be=z||(Ie||!J?[Ad(ge)]:dm(ge)),ve=[ge].concat(be).reduce(function(xt,rt){return xt.concat(Pi(rt)===c1?cm(t,{placement:rt,boundary:k,rootBoundary:D,padding:S,flipVariations:J,allowedAutoPlacements:pe}):rt)},[]),Oe=t.rects.reference,$e=t.rects.popper,De=new Map,je=!0,Ye=ve[0],Ce=0;Ce<ve.length;Ce++){var le=ve[Ce],Q=Pi(le),$=fu(le)===uu,O=[kn,hi].indexOf(Q)>=0,E=O?"width":"height",Y=Nc(t,{placement:le,boundary:k,rootBoundary:D,altBoundary:B,padding:S}),ue=O?$?pi:In:$?hi:kn;Oe[E]>$e[E]&&(ue=Ad(ue));var Ae=Ad(ue),et=[];if(g&&et.push(Y[Q]<=0),x&&et.push(Y[ue]<=0,Y[Ae]<=0),et.every(function(xt){return xt})){Ye=le,je=!1;break}De.set(le,et)}if(je)for(var pt=J?3:1,yt=function(rt){var ze=ve.find(function(Ne){var Ge=De.get(Ne);if(Ge)return Ge.slice(0,rt).every(function(st){return st})});if(ze)return Ye=ze,"break"},or=pt;or>0;or--){var Mt=yt(or);if(Mt==="break")break}t.placement!==Ye&&(t.modifiersData[l]._skip=!0,t.placement=Ye,t.reset=!0)}}const hm={name:"flip",enabled:!0,phase:"main",fn:fm,requiresIfExists:["offset"],data:{_skip:!1}};function v2(o,t,n){return n===void 0&&(n={x:0,y:0}),{top:o.top-t.height-n.y,right:o.right-t.width+n.x,bottom:o.bottom-t.height+n.y,left:o.left-t.width-n.x}}function b2(o){return[kn,pi,hi,In].some(function(t){return o[t]>=0})}function pm(o){var t=o.state,n=o.name,l=t.rects.reference,c=t.rects.popper,g=t.modifiersData.preventOverflow,h=Nc(t,{elementContext:"reference"}),x=Nc(t,{altBoundary:!0}),z=v2(h,l),S=v2(x,c,g),k=b2(z),D=b2(S);t.modifiersData[n]={referenceClippingOffsets:z,popperEscapeOffsets:S,isReferenceHidden:k,hasPopperEscaped:D},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":k,"data-popper-escaped":D})}const gm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pm};function vm(o,t,n){var l=Pi(o),c=[In,kn].indexOf(l)>=0?-1:1,g=typeof n=="function"?n(Object.assign({},t,{placement:o})):n,h=g[0],x=g[1];return h=h||0,x=(x||0)*c,[In,pi].indexOf(l)>=0?{x,y:h}:{x:h,y:x}}function bm(o){var t=o.state,n=o.options,l=o.name,c=n.offset,g=c===void 0?[0,0]:c,h=Ng.reduce(function(k,D){return k[D]=vm(D,t.rects,g),k},{}),x=h[t.placement],z=x.x,S=x.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=z,t.modifiersData.popperOffsets.y+=S),t.modifiersData[l]=h}const mm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bm};function ym(o){var t=o.state,n=o.name;t.modifiersData[n]=Vg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Cm={name:"popperOffsets",enabled:!0,phase:"read",fn:ym,data:{}};function wm(o){return o==="x"?"y":"x"}function xm(o){var t=o.state,n=o.options,l=o.name,c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,x=h===void 0?!1:h,z=n.boundary,S=n.rootBoundary,k=n.altBoundary,D=n.padding,B=n.tether,R=B===void 0?!0:B,J=n.tetherOffset,pe=J===void 0?0:J,ge=Nc(t,{boundary:z,rootBoundary:S,padding:D,altBoundary:k}),Te=Pi(t.placement),Ie=fu(t.placement),be=!Ie,ve=kh(Te),Oe=wm(ve),$e=t.modifiersData.popperOffsets,De=t.rects.reference,je=t.rects.popper,Ye=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,Ce=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),le=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if($e){if(g){var $,O=ve==="y"?kn:In,E=ve==="y"?hi:pi,Y=ve==="y"?"height":"width",ue=$e[ve],Ae=ue+ge[O],et=ue-ge[E],pt=R?-je[Y]/2:0,yt=Ie===uu?De[Y]:je[Y],or=Ie===uu?-je[Y]:-De[Y],Mt=t.elements.arrow,xt=R&&Mt?Eh(Mt):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Hg(),ze=rt[O],Ne=rt[E],Ge=Mc(0,De[Y],xt[Y]),st=be?De[Y]/2-pt-Ge-ze-Ce.mainAxis:yt-Ge-ze-Ce.mainAxis,lt=be?-De[Y]/2+pt+Ge+Ne+Ce.mainAxis:or+Ge+Ne+Ce.mainAxis,Ze=t.elements.arrow&&Uc(t.elements.arrow),Vt=Ze?ve==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,Zr=($=le==null?void 0:le[ve])!=null?$:0,tr=ue+st-Zr-Vt,Qe=ue+lt-Zr,bt=Mc(R?Wd(Ae,tr):Ae,ue,R?Ws(et,Qe):et);$e[ve]=bt,Q[ve]=bt-ue}if(x){var kt,Pr=ve==="x"?kn:In,en=ve==="x"?hi:pi,ar=$e[Oe],it=Oe==="y"?"height":"width",Z=ar+ge[Pr],se=ar-ge[en],K=[kn,In].indexOf(Te)!==-1,tt=(kt=le==null?void 0:le[Oe])!=null?kt:0,sr=K?Z:ar-De[it]-je[it]-tt+Ce.altAxis,Lr=K?ar+De[it]+je[it]-tt-Ce.altAxis:se,$n=R&&K?G9(sr,ar,Lr):Mc(R?sr:Z,ar,R?Lr:se);$e[Oe]=$n,Q[Oe]=$n-ar}t.modifiersData[l]=Q}}const zm={name:"preventOverflow",enabled:!0,phase:"main",fn:xm,requiresIfExists:["offset"]};function Lm(o){return{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}}function Sm(o){return o===gi(o)||!jn(o)?Ih(o):Lm(o)}function _m(o){var t=o.getBoundingClientRect(),n=cu(t.width)/o.offsetWidth||1,l=cu(t.height)/o.offsetHeight||1;return n!==1||l!==1}function Mm(o,t,n){n===void 0&&(n=!1);var l=jn(t),c=jn(t)&&_m(t),g=Va(t),h=du(o,c,n),x={scrollLeft:0,scrollTop:0},z={x:0,y:0};return(l||!l&&!n)&&((go(t)!=="body"||$h(g))&&(x=Sm(t)),jn(t)?(z=du(t,!0),z.x+=t.clientLeft,z.y+=t.clientTop):g&&(z.x=Ah(g))),{x:h.left+x.scrollLeft-z.x,y:h.top+x.scrollTop-z.y,width:h.width,height:h.height}}function Tm(o){var t=new Map,n=new Set,l=[];o.forEach(function(g){t.set(g.name,g)});function c(g){n.add(g.name);var h=[].concat(g.requires||[],g.requiresIfExists||[]);h.forEach(function(x){if(!n.has(x)){var z=t.get(x);z&&c(z)}}),l.push(g)}return o.forEach(function(g){n.has(g.name)||c(g)}),l}function Om(o){var t=Tm(o);return sh.reduce(function(n,l){return n.concat(t.filter(function(c){return c.phase===l}))},[])}function Em(o){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(o())})})),t}}function Na(o){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return[].concat(n).reduce(function(c,g){return c.replace(/%s/,g)},o)}var As='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',km='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',m2=["name","enabled","phase","fn","effect","requires","options"];function Im(o){o.forEach(function(t){[].concat(Object.keys(t),m2).filter(function(n,l,c){return c.indexOf(n)===l}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Na(As,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Na(As,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":sh.indexOf(t.phase)<0&&console.error(Na(As,t.name,'"phase"',"either "+sh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Na(As,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Na(As,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Na(As,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Na(As,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+m2.map(function(l){return'"'+l+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(l){o.find(function(c){return c.name===l})==null&&console.error(Na(km,String(t.name),l,l))})})})}function Am(o,t){var n=new Set;return o.filter(function(l){var c=t(l);if(!n.has(c))return n.add(c),!0})}function $m(o){var t=o.reduce(function(n,l){var c=n[l.name];return n[l.name]=c?Object.assign({},c,l,{options:Object.assign({},c.options,l.options),data:Object.assign({},c.data,l.data)}):l,n},{});return Object.keys(t).map(function(n){return t[n]})}var y2="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Pm="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",C2={placement:"bottom",modifiers:[],strategy:"absolute"};function w2(){for(var o=arguments.length,t=new Array(o),n=0;n<o;n++)t[n]=arguments[n];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Dm(o){o===void 0&&(o={});var t=o,n=t.defaultModifiers,l=n===void 0?[]:n,c=t.defaultOptions,g=c===void 0?C2:c;return function(x,z,S){S===void 0&&(S=g);var k={placement:"bottom",orderedModifiers:[],options:Object.assign({},C2,g),modifiersData:{},elements:{reference:x,popper:z},attributes:{},styles:{}},D=[],B=!1,R={state:k,setOptions:function(Te){var Ie=typeof Te=="function"?Te(k.options):Te;pe(),k.options=Object.assign({},g,k.options,Ie),k.scrollParents={reference:js(x)?Tc(x):x.contextElement?Tc(x.contextElement):[],popper:Tc(z)};var be=Om($m([].concat(l,k.options.modifiers)));if(k.orderedModifiers=be.filter(function(le){return le.enabled}),{}.NODE_ENV!=="production"){var ve=Am([].concat(be,k.options.modifiers),function(le){var Q=le.name;return Q});if(Im(ve),Pi(k.options.placement)===c1){var Oe=k.orderedModifiers.find(function(le){var Q=le.name;return Q==="flip"});Oe||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=Di(z),De=$e.marginTop,je=$e.marginRight,Ye=$e.marginBottom,Ce=$e.marginLeft;[De,je,Ye,Ce].some(function(le){return parseFloat(le)})&&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 J(),R.update()},forceUpdate:function(){if(!B){var Te=k.elements,Ie=Te.reference,be=Te.popper;if(!w2(Ie,be)){({}).NODE_ENV!=="production"&&console.error(y2);return}k.rects={reference:Mm(Ie,Uc(be),k.options.strategy==="fixed"),popper:Eh(be)},k.reset=!1,k.placement=k.options.placement,k.orderedModifiers.forEach(function(le){return k.modifiersData[le.name]=Object.assign({},le.data)});for(var ve=0,Oe=0;Oe<k.orderedModifiers.length;Oe++){if({}.NODE_ENV!=="production"&&(ve+=1,ve>100)){console.error(Pm);break}if(k.reset===!0){k.reset=!1,Oe=-1;continue}var $e=k.orderedModifiers[Oe],De=$e.fn,je=$e.options,Ye=je===void 0?{}:je,Ce=$e.name;typeof De=="function"&&(k=De({state:k,options:Ye,name:Ce,instance:R})||k)}}},update:Em(function(){return new Promise(function(ge){R.forceUpdate(),ge(k)})}),destroy:function(){pe(),B=!0}};if(!w2(x,z))return{}.NODE_ENV!=="production"&&console.error(y2),R;R.setOptions(S).then(function(ge){!B&&S.onFirstUpdate&&S.onFirstUpdate(ge)});function J(){k.orderedModifiers.forEach(function(ge){var Te=ge.name,Ie=ge.options,be=Ie===void 0?{}:Ie,ve=ge.effect;if(typeof ve=="function"){var Oe=ve({state:k,name:Te,instance:R,options:be}),$e=function(){};D.push(Oe||$e)}})}function pe(){D.forEach(function(ge){return ge()}),D=[]}return R}}var Nm=[rm,Cm,em,U9,mm,hm,zm,Y9,gm],Rm=Dm({defaultModifiers:Nm}),Fm=Object.defineProperty,Hm=Object.getOwnPropertyDescriptor,Jr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Hm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Fm(t,n,c),c};let Bm=0;const Ph=Le("popover"),Zg=Le("pure-popover"),Gg=["click","hover","focus"],[Ud,ch,Rs]=Gg,Dh=["dialog","tooltip","menu"],[Wm]=Dh;class qg extends CustomEvent{constructor(t){super(`${Ph}-${t}`,{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=Wm,this.disabled=!1,this.popoverId=`popover-${++Bm}`,this.delayTimeout=0}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.popperInstance)==null||t.destroy()}updatePosition(){var t;(t=this.popperInstance)==null||t.update()}async updated(t){super.updated(t),this.popperInstance=this.popperInstance||Rm(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 t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return t==null?void 0:t.assignedElements({flatten:!0})[0]}get contentElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return t==null?void 0:t.assignedNodes({flatten:!0})[0]}get popoverElement(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector(".popover-container")}emit(t){this.dispatchEvent(new qg(t))}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 q`
|
|
139
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var E={placement:Pi(t.placement),variation:hu(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:c,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,p2(Object.assign({},E,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:z})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p2(Object.assign({},E,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:z})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const im={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nm,data:{}};var xd={passive:!0};function om(o){var t=o.state,n=o.instance,l=o.options,c=l.scroll,g=c===void 0?!0:c,h=l.resize,x=h===void 0?!0:h,z=gi(t.elements.popper),S=[].concat(t.scrollParents.reference,t.scrollParents.popper);return g&&S.forEach(function(E){E.addEventListener("scroll",n.update,xd)}),x&&z.addEventListener("resize",n.update,xd),function(){g&&S.forEach(function(E){E.removeEventListener("scroll",n.update,xd)}),x&&z.removeEventListener("resize",n.update,xd)}}const am={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:om,data:{}};var sm={left:"right",right:"left",bottom:"top",top:"bottom"};function Ad(o){return o.replace(/left|right|bottom|top/g,function(t){return sm[t]})}var lm={start:"end",end:"start"};function g2(o){return o.replace(/start|end/g,function(t){return lm[t]})}function Ah(o){var t=gi(o),n=t.pageXOffset,l=t.pageYOffset;return{scrollLeft:n,scrollTop:l}}function $h(o){return fu(Va(o)).left+Ah(o).scrollLeft}function um(o,t){var n=gi(o),l=Va(o),c=n.visualViewport,g=l.clientWidth,h=l.clientHeight,x=0,z=0;if(c){g=c.width,h=c.height;var S=Wg();(S||!S&&t==="fixed")&&(x=c.offsetLeft,z=c.offsetTop)}return{width:g,height:h,x:x+$h(o),y:z}}function cm(o){var t,n=Va(o),l=Ah(o),c=(t=o.ownerDocument)==null?void 0:t.body,g=Ws(n.scrollWidth,n.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=Ws(n.scrollHeight,n.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),x=-l.scrollLeft+$h(o),z=-l.scrollTop;return Di(c||n).direction==="rtl"&&(x+=Ws(n.clientWidth,c?c.clientWidth:0)-g),{width:g,height:h,x,y:z}}function Ph(o){var t=Di(o),n=t.overflow,l=t.overflowX,c=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+c+l)}function qg(o){return["html","body","#document"].indexOf(vo(o))>=0?o.ownerDocument.body:jn(o)&&Ph(o)?o:qg(d1(o))}function Tc(o,t){var n;t===void 0&&(t=[]);var l=qg(o),c=l===((n=o.ownerDocument)==null?void 0:n.body),g=gi(l),h=c?[g].concat(g.visualViewport||[],Ph(l)?l:[]):l,x=t.concat(h);return c?x:x.concat(Tc(d1(h)))}function ch(o){return Object.assign({},o,{left:o.x,top:o.y,right:o.x+o.width,bottom:o.y+o.height})}function dm(o,t){var n=fu(o,!1,t==="fixed");return n.top=n.top+o.clientTop,n.left=n.left+o.clientLeft,n.bottom=n.top+o.clientHeight,n.right=n.left+o.clientWidth,n.width=o.clientWidth,n.height=o.clientHeight,n.x=n.left,n.y=n.top,n}function v2(o,t,n){return t===Hg?ch(um(o,n)):js(t)?dm(t,n):ch(cm(Va(o)))}function fm(o){var t=Tc(d1(o)),n=["absolute","fixed"].indexOf(Di(o).position)>=0,l=n&&jn(o)?Uc(o):o;return js(l)?t.filter(function(c){return js(c)&&Ug(c,l)&&vo(c)!=="body"}):[]}function hm(o,t,n,l){var c=t==="clippingParents"?fm(o):[].concat(t),g=[].concat(c,[n]),h=g[0],x=g.reduce(function(z,S){var E=v2(o,S,l);return z.top=Ws(E.top,z.top),z.right=Wd(E.right,z.right),z.bottom=Wd(E.bottom,z.bottom),z.left=Ws(E.left,z.left),z},v2(o,h,l));return x.width=x.right-x.left,x.height=x.bottom-x.top,x.x=x.left,x.y=x.top,x}function jg(o){var t=o.reference,n=o.element,l=o.placement,c=l?Pi(l):null,g=l?hu(l):null,h=t.x+t.width/2-n.width/2,x=t.y+t.height/2-n.height/2,z;switch(c){case En:z={x:h,y:t.y-n.height};break;case hi:z={x:h,y:t.y+t.height};break;case pi:z={x:t.x+t.width,y:x};break;case In:z={x:t.x-n.width,y:x};break;default:z={x:t.x,y:t.y}}var S=c?Ih(c):null;if(S!=null){var E=S==="y"?"height":"width";switch(g){case cu:z[S]=z[S]-(t[E]/2-n[E]/2);break;case Dc:z[S]=z[S]+(t[E]/2-n[E]/2);break}}return z}function Nc(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=l===void 0?o.placement:l,g=n.strategy,h=g===void 0?o.strategy:g,x=n.boundary,z=x===void 0?$9:x,S=n.rootBoundary,E=S===void 0?Hg:S,D=n.elementContext,B=D===void 0?yc:D,R=n.altBoundary,J=R===void 0?!1:R,pe=n.padding,ge=pe===void 0?0:pe,Te=Zg(typeof ge!="number"?ge:Gg(ge,Wc)),Ie=B===yc?P9:yc,be=o.rects.popper,ve=o.elements[J?Ie:B],Oe=hm(js(ve)?ve:ve.contextElement||Va(o.elements.popper),z,E,h),$e=fu(o.elements.reference),De=jg({reference:$e,element:be,strategy:"absolute",placement:c}),je=ch(Object.assign({},be,De)),Ye=B===yc?je:$e,Ce={top:Oe.top-Ye.top+Te.top,bottom:Ye.bottom-Oe.bottom+Te.bottom,left:Oe.left-Ye.left+Te.left,right:Ye.right-Oe.right+Te.right},le=o.modifiersData.offset;if(B===yc&&le){var Q=le[c];Object.keys(Ce).forEach(function($){var O=[pi,hi].indexOf($)>=0?1:-1,k=[En,hi].indexOf($)>=0?"y":"x";Ce[$]+=Q[k]*O})}return Ce}function pm(o,t){t===void 0&&(t={});var n=t,l=n.placement,c=n.boundary,g=n.rootBoundary,h=n.padding,x=n.flipVariations,z=n.allowedAutoPlacements,S=z===void 0?Bg:z,E=hu(l),D=E?x?f2:f2.filter(function(J){return hu(J)===E}):Wc,B=D.filter(function(J){return S.indexOf(J)>=0});B.length===0&&(B=D,{}.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 R=B.reduce(function(J,pe){return J[pe]=Nc(o,{placement:pe,boundary:c,rootBoundary:g,padding:h})[Pi(pe)],J},{});return Object.keys(R).sort(function(J,pe){return R[J]-R[pe]})}function gm(o){if(Pi(o)===c1)return[];var t=Ad(o);return[g2(o),t,g2(t)]}function vm(o){var t=o.state,n=o.options,l=o.name;if(!t.modifiersData[l]._skip){for(var c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,x=h===void 0?!0:h,z=n.fallbackPlacements,S=n.padding,E=n.boundary,D=n.rootBoundary,B=n.altBoundary,R=n.flipVariations,J=R===void 0?!0:R,pe=n.allowedAutoPlacements,ge=t.options.placement,Te=Pi(ge),Ie=Te===ge,be=z||(Ie||!J?[Ad(ge)]:gm(ge)),ve=[ge].concat(be).reduce(function(xt,rt){return xt.concat(Pi(rt)===c1?pm(t,{placement:rt,boundary:E,rootBoundary:D,padding:S,flipVariations:J,allowedAutoPlacements:pe}):rt)},[]),Oe=t.rects.reference,$e=t.rects.popper,De=new Map,je=!0,Ye=ve[0],Ce=0;Ce<ve.length;Ce++){var le=ve[Ce],Q=Pi(le),$=hu(le)===cu,O=[En,hi].indexOf(Q)>=0,k=O?"width":"height",Y=Nc(t,{placement:le,boundary:E,rootBoundary:D,altBoundary:B,padding:S}),ue=O?$?pi:In:$?hi:En;Oe[k]>$e[k]&&(ue=Ad(ue));var Ae=Ad(ue),et=[];if(g&&et.push(Y[Q]<=0),x&&et.push(Y[ue]<=0,Y[Ae]<=0),et.every(function(xt){return xt})){Ye=le,je=!1;break}De.set(le,et)}if(je)for(var pt=J?3:1,yt=function(rt){var ze=ve.find(function(Ne){var Ge=De.get(Ne);if(Ge)return Ge.slice(0,rt).every(function(st){return st})});if(ze)return Ye=ze,"break"},or=pt;or>0;or--){var Mt=yt(or);if(Mt==="break")break}t.placement!==Ye&&(t.modifiersData[l]._skip=!0,t.placement=Ye,t.reset=!0)}}const bm={name:"flip",enabled:!0,phase:"main",fn:vm,requiresIfExists:["offset"],data:{_skip:!1}};function b2(o,t,n){return n===void 0&&(n={x:0,y:0}),{top:o.top-t.height-n.y,right:o.right-t.width+n.x,bottom:o.bottom-t.height+n.y,left:o.left-t.width-n.x}}function m2(o){return[En,pi,hi,In].some(function(t){return o[t]>=0})}function mm(o){var t=o.state,n=o.name,l=t.rects.reference,c=t.rects.popper,g=t.modifiersData.preventOverflow,h=Nc(t,{elementContext:"reference"}),x=Nc(t,{altBoundary:!0}),z=b2(h,l),S=b2(x,c,g),E=m2(z),D=m2(S);t.modifiersData[n]={referenceClippingOffsets:z,popperEscapeOffsets:S,isReferenceHidden:E,hasPopperEscaped:D},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":E,"data-popper-escaped":D})}const ym={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mm};function Cm(o,t,n){var l=Pi(o),c=[In,En].indexOf(l)>=0?-1:1,g=typeof n=="function"?n(Object.assign({},t,{placement:o})):n,h=g[0],x=g[1];return h=h||0,x=(x||0)*c,[In,pi].indexOf(l)>=0?{x,y:h}:{x:h,y:x}}function wm(o){var t=o.state,n=o.options,l=o.name,c=n.offset,g=c===void 0?[0,0]:c,h=Bg.reduce(function(E,D){return E[D]=Cm(D,t.rects,g),E},{}),x=h[t.placement],z=x.x,S=x.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=z,t.modifiersData.popperOffsets.y+=S),t.modifiersData[l]=h}const xm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wm};function zm(o){var t=o.state,n=o.name;t.modifiersData[n]=jg({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Lm={name:"popperOffsets",enabled:!0,phase:"read",fn:zm,data:{}};function Sm(o){return o==="x"?"y":"x"}function _m(o){var t=o.state,n=o.options,l=o.name,c=n.mainAxis,g=c===void 0?!0:c,h=n.altAxis,x=h===void 0?!1:h,z=n.boundary,S=n.rootBoundary,E=n.altBoundary,D=n.padding,B=n.tether,R=B===void 0?!0:B,J=n.tetherOffset,pe=J===void 0?0:J,ge=Nc(t,{boundary:z,rootBoundary:S,padding:D,altBoundary:E}),Te=Pi(t.placement),Ie=hu(t.placement),be=!Ie,ve=Ih(Te),Oe=Sm(ve),$e=t.modifiersData.popperOffsets,De=t.rects.reference,je=t.rects.popper,Ye=typeof pe=="function"?pe(Object.assign({},t.rects,{placement:t.placement})):pe,Ce=typeof Ye=="number"?{mainAxis:Ye,altAxis:Ye}:Object.assign({mainAxis:0,altAxis:0},Ye),le=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if($e){if(g){var $,O=ve==="y"?En:In,k=ve==="y"?hi:pi,Y=ve==="y"?"height":"width",ue=$e[ve],Ae=ue+ge[O],et=ue-ge[k],pt=R?-je[Y]/2:0,yt=Ie===cu?De[Y]:je[Y],or=Ie===cu?-je[Y]:-De[Y],Mt=t.elements.arrow,xt=R&&Mt?Eh(Mt):{width:0,height:0},rt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vg(),ze=rt[O],Ne=rt[k],Ge=Mc(0,De[Y],xt[Y]),st=be?De[Y]/2-pt-Ge-ze-Ce.mainAxis:yt-Ge-ze-Ce.mainAxis,lt=be?-De[Y]/2+pt+Ge+Ne+Ce.mainAxis:or+Ge+Ne+Ce.mainAxis,Ze=t.elements.arrow&&Uc(t.elements.arrow),Vt=Ze?ve==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,Zr=($=le==null?void 0:le[ve])!=null?$:0,tr=ue+st-Zr-Vt,Qe=ue+lt-Zr,bt=Mc(R?Wd(Ae,tr):Ae,ue,R?Ws(et,Qe):et);$e[ve]=bt,Q[ve]=bt-ue}if(x){var Et,Pr=ve==="x"?En:In,en=ve==="x"?hi:pi,ar=$e[Oe],it=Oe==="y"?"height":"width",Z=ar+ge[Pr],se=ar-ge[en],K=[En,In].indexOf(Te)!==-1,tt=(Et=le==null?void 0:le[Oe])!=null?Et:0,sr=K?Z:ar-De[it]-je[it]-tt+Ce.altAxis,Lr=K?ar+De[it]+je[it]-tt-Ce.altAxis:se,$n=R&&K?Y9(sr,ar,Lr):Mc(R?sr:Z,ar,R?Lr:se);$e[Oe]=$n,Q[Oe]=$n-ar}t.modifiersData[l]=Q}}const Mm={name:"preventOverflow",enabled:!0,phase:"main",fn:_m,requiresIfExists:["offset"]};function Tm(o){return{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}}function Om(o){return o===gi(o)||!jn(o)?Ah(o):Tm(o)}function km(o){var t=o.getBoundingClientRect(),n=du(t.width)/o.offsetWidth||1,l=du(t.height)/o.offsetHeight||1;return n!==1||l!==1}function Em(o,t,n){n===void 0&&(n=!1);var l=jn(t),c=jn(t)&&km(t),g=Va(t),h=fu(o,c,n),x={scrollLeft:0,scrollTop:0},z={x:0,y:0};return(l||!l&&!n)&&((vo(t)!=="body"||Ph(g))&&(x=Om(t)),jn(t)?(z=fu(t,!0),z.x+=t.clientLeft,z.y+=t.clientTop):g&&(z.x=$h(g))),{x:h.left+x.scrollLeft-z.x,y:h.top+x.scrollTop-z.y,width:h.width,height:h.height}}function Im(o){var t=new Map,n=new Set,l=[];o.forEach(function(g){t.set(g.name,g)});function c(g){n.add(g.name);var h=[].concat(g.requires||[],g.requiresIfExists||[]);h.forEach(function(x){if(!n.has(x)){var z=t.get(x);z&&c(z)}}),l.push(g)}return o.forEach(function(g){n.has(g.name)||c(g)}),l}function Am(o){var t=Im(o);return lh.reduce(function(n,l){return n.concat(t.filter(function(c){return c.phase===l}))},[])}function $m(o){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(o())})})),t}}function Na(o){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return[].concat(n).reduce(function(c,g){return c.replace(/%s/,g)},o)}var As='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Pm='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',y2=["name","enabled","phase","fn","effect","requires","options"];function Dm(o){o.forEach(function(t){[].concat(Object.keys(t),y2).filter(function(n,l,c){return c.indexOf(n)===l}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(Na(As,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(Na(As,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":lh.indexOf(t.phase)<0&&console.error(Na(As,t.name,'"phase"',"either "+lh.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(Na(As,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(Na(As,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(Na(As,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Na(As,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+y2.map(function(l){return'"'+l+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(l){o.find(function(c){return c.name===l})==null&&console.error(Na(Pm,String(t.name),l,l))})})})}function Nm(o,t){var n=new Set;return o.filter(function(l){var c=t(l);if(!n.has(c))return n.add(c),!0})}function Rm(o){var t=o.reduce(function(n,l){var c=n[l.name];return n[l.name]=c?Object.assign({},c,l,{options:Object.assign({},c.options,l.options),data:Object.assign({},c.data,l.data)}):l,n},{});return Object.keys(t).map(function(n){return t[n]})}var C2="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Fm="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",w2={placement:"bottom",modifiers:[],strategy:"absolute"};function x2(){for(var o=arguments.length,t=new Array(o),n=0;n<o;n++)t[n]=arguments[n];return!t.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function Hm(o){o===void 0&&(o={});var t=o,n=t.defaultModifiers,l=n===void 0?[]:n,c=t.defaultOptions,g=c===void 0?w2:c;return function(x,z,S){S===void 0&&(S=g);var E={placement:"bottom",orderedModifiers:[],options:Object.assign({},w2,g),modifiersData:{},elements:{reference:x,popper:z},attributes:{},styles:{}},D=[],B=!1,R={state:E,setOptions:function(Te){var Ie=typeof Te=="function"?Te(E.options):Te;pe(),E.options=Object.assign({},g,E.options,Ie),E.scrollParents={reference:js(x)?Tc(x):x.contextElement?Tc(x.contextElement):[],popper:Tc(z)};var be=Am(Rm([].concat(l,E.options.modifiers)));if(E.orderedModifiers=be.filter(function(le){return le.enabled}),{}.NODE_ENV!=="production"){var ve=Nm([].concat(be,E.options.modifiers),function(le){var Q=le.name;return Q});if(Dm(ve),Pi(E.options.placement)===c1){var Oe=E.orderedModifiers.find(function(le){var Q=le.name;return Q==="flip"});Oe||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var $e=Di(z),De=$e.marginTop,je=$e.marginRight,Ye=$e.marginBottom,Ce=$e.marginLeft;[De,je,Ye,Ce].some(function(le){return parseFloat(le)})&&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 J(),R.update()},forceUpdate:function(){if(!B){var Te=E.elements,Ie=Te.reference,be=Te.popper;if(!x2(Ie,be)){({}).NODE_ENV!=="production"&&console.error(C2);return}E.rects={reference:Em(Ie,Uc(be),E.options.strategy==="fixed"),popper:Eh(be)},E.reset=!1,E.placement=E.options.placement,E.orderedModifiers.forEach(function(le){return E.modifiersData[le.name]=Object.assign({},le.data)});for(var ve=0,Oe=0;Oe<E.orderedModifiers.length;Oe++){if({}.NODE_ENV!=="production"&&(ve+=1,ve>100)){console.error(Fm);break}if(E.reset===!0){E.reset=!1,Oe=-1;continue}var $e=E.orderedModifiers[Oe],De=$e.fn,je=$e.options,Ye=je===void 0?{}:je,Ce=$e.name;typeof De=="function"&&(E=De({state:E,options:Ye,name:Ce,instance:R})||E)}}},update:$m(function(){return new Promise(function(ge){R.forceUpdate(),ge(E)})}),destroy:function(){pe(),B=!0}};if(!x2(x,z))return{}.NODE_ENV!=="production"&&console.error(C2),R;R.setOptions(S).then(function(ge){!B&&S.onFirstUpdate&&S.onFirstUpdate(ge)});function J(){E.orderedModifiers.forEach(function(ge){var Te=ge.name,Ie=ge.options,be=Ie===void 0?{}:Ie,ve=ge.effect;if(typeof ve=="function"){var Oe=ve({state:E,name:Te,instance:R,options:be}),$e=function(){};D.push(Oe||$e)}})}function pe(){D.forEach(function(ge){return ge()}),D=[]}return R}}var Bm=[am,Lm,im,q9,xm,bm,Mm,em,ym],Wm=Hm({defaultModifiers:Bm}),Um=Object.defineProperty,Vm=Object.getOwnPropertyDescriptor,Jr=(o,t,n,l)=>{for(var c=l>1?void 0:l?Vm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Um(t,n,c),c};let Zm=0;const Dh=Le("popover"),Kg=Le("pure-popover"),Yg=["click","hover","focus"],[Ud,dh,Rs]=Yg,Nh=["dialog","tooltip","menu"],[Gm]=Nh;class Xg extends CustomEvent{constructor(t){super(`${Dh}-${t}`,{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=Gm,this.disabled=!1,this.popoverId=`popover-${++Zm}`,this.delayTimeout=0}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.popperInstance)==null||t.destroy()}updatePosition(){var t;(t=this.popperInstance)==null||t.update()}async updated(t){super.updated(t),this.popperInstance=this.popperInstance||Wm(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 t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot");return t==null?void 0:t.assignedElements({flatten:!0})[0]}get contentElement(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot[name=content]");return t==null?void 0:t.assignedNodes({flatten:!0})[0]}get popoverElement(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector(".popover-container")}emit(t){this.dispatchEvent(new Xg(t))}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 q`
|
|
140
140
|
<slot></slot>
|
|
141
141
|
|
|
142
142
|
<brz-fade-in-out ?shown=${this.isOpen} class="popover-container">
|
|
@@ -155,9 +155,9 @@
|
|
|
155
155
|
.popover-container {
|
|
156
156
|
z-index: var(--brz-z-index-dialog);
|
|
157
157
|
}
|
|
158
|
-
`;Jr([H({type:Number})],exports.PurePopover.prototype,"distance",2);Jr([H({type:Number})],exports.PurePopover.prototype,"skidding",2);Jr([H({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Jr([H({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Jr([H({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Jr([H({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Jr([H({type:String})],exports.PurePopover.prototype,"placement",2);Jr([H({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Jr([H({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Jr([Be()],exports.PurePopover.prototype,"popoverId",2);Jr([Be()],exports.PurePopover.prototype,"popperInstance",2);Jr([Be()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Jr([ee(
|
|
158
|
+
`;Jr([H({type:Number})],exports.PurePopover.prototype,"distance",2);Jr([H({type:Number})],exports.PurePopover.prototype,"skidding",2);Jr([H({type:Number,attribute:"delay-on-close"})],exports.PurePopover.prototype,"delayOnClose",2);Jr([H({type:Number,attribute:"delay-on-open"})],exports.PurePopover.prototype,"delayOnOpen",2);Jr([H({type:Boolean,attribute:"is-fixed"})],exports.PurePopover.prototype,"isFixed",2);Jr([H({type:Boolean,attribute:"is-open",reflect:!0})],exports.PurePopover.prototype,"isOpen",2);Jr([H({type:String})],exports.PurePopover.prototype,"placement",2);Jr([H({type:String,attribute:"popover-role"})],exports.PurePopover.prototype,"popoverRole",2);Jr([H({type:Boolean})],exports.PurePopover.prototype,"disabled",2);Jr([Be()],exports.PurePopover.prototype,"popoverId",2);Jr([Be()],exports.PurePopover.prototype,"popperInstance",2);Jr([Be()],exports.PurePopover.prototype,"delayTimeout",2);exports.PurePopover=Jr([ee(Kg)],exports.PurePopover);const Vd=["blur","mouseenter","mouseleave","keydown",Ud,Rs],[Vf,qm,jm,Km]=Vd;exports.Popover=class extends exports.PurePopover{constructor(){super(),this.trigger="hover focus",this.hasFocus=!1,this.hasPointer=!1,this.listenableEventHandlers={[Ud]:this.handleClick,[Rs]:this.handleFocus,[Vf]:this.handleBlur,[qm]:this.handleMouseEnter,[jm]:this.handleMouseLeave,[Km]: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(){Vd.forEach(t=>this.addEventListener(t,this.listenableEventHandlers[t],{capture:[Rs,Vf].includes(t)})),document.addEventListener("mousedown",this.handleOutsideClick)}teardownListeners(){Vd.forEach(t=>this.removeEventListener(t,this.listenableEventHandlers[t],{capture:[Rs,Vf].includes(t)})),document.removeEventListener("mousedown",this.handleOutsideClick)}get triggers(){return typeof this.trigger=="string"?this.trigger.split(" "):this.trigger}hasTrigger(t){return this.triggers.includes(t)}setFocus(){this.hasFocus=!0}removeFocus(){this.hasFocus=!1}setPointer(){this.hasPointer=!0}removePointer(){this.hasPointer=!1}async handleOutsideClick(t){!this.isOpen||this.contains(t.target)||this.hasPointer||await this.close()}async handleClick(t){var n;if(!(this.isOpen&&((n=this.contentElement)!=null&&n.contains(t.target)))){if(!this.hasTrigger(Ud))return this.removeFocus();await this.toggleIsOpen()}}async handleFocus(){this.hasTrigger(Rs)&&(this.setFocus(),await this.open())}async handleBlur(){!this.hasTrigger(Rs)||this.hasPointer||(this.removeFocus(),await this.close())}async handleMouseEnter(){this.setPointer(),!(!this.hasTrigger(dh)||this.hasFocus)&&await this.open()}async handleMouseLeave(){this.removePointer(),!(!this.hasTrigger(dh)||this.hasFocus)&&await this.close()}async handleKeyDown(t){t.stopPropagation(),["Escape","Esc"].includes(t.key)&&await this.close()}};Jr([H({type:String})],exports.Popover.prototype,"trigger",2);Jr([Be()],exports.Popover.prototype,"hasFocus",2);Jr([Be()],exports.Popover.prototype,"hasPointer",2);exports.Popover=Jr([ee(Dh)],exports.Popover);var Ym=Object.defineProperty,Xm=Object.getOwnPropertyDescriptor,Qo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Xm(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Ym(t,n,c),c};const Jg=Le("tooltip"),[,Jm]=Nh;var Qg=(o=>(o[o.dark=0]="dark",o[o.light=1]="light",o))(Qg||{});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 q`
|
|
159
159
|
<brz-popover
|
|
160
|
-
.popoverRole=${
|
|
160
|
+
.popoverRole=${Jm}
|
|
161
161
|
.distance=${8}
|
|
162
162
|
.delayOnClose=${this.delayOnClose}
|
|
163
163
|
.delayOnOpen=${this.delayOnOpen}
|
|
@@ -189,21 +189,21 @@
|
|
|
189
189
|
background-color: var(--brz-color-white);
|
|
190
190
|
color: var(--brz-color-text);
|
|
191
191
|
}
|
|
192
|
-
`;Qo([H({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Qo([H({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Qo([H({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);Qo([H({type:String})],exports.Tooltip.prototype,"placement",2);Qo([H({type:String})],exports.Tooltip.prototype,"trigger",2);Qo([H({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Qo([H({type:String})],exports.Tooltip.prototype,"content",2);Qo([H({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Qo([ee(
|
|
192
|
+
`;Qo([H({type:Number,attribute:"delay-on-close"})],exports.Tooltip.prototype,"delayOnClose",2);Qo([H({type:Number,attribute:"delay-on-open"})],exports.Tooltip.prototype,"delayOnOpen",2);Qo([H({type:Boolean,attribute:"is-fixed",reflect:!0})],exports.Tooltip.prototype,"isFixed",2);Qo([H({type:String})],exports.Tooltip.prototype,"placement",2);Qo([H({type:String})],exports.Tooltip.prototype,"trigger",2);Qo([H({type:Boolean})],exports.Tooltip.prototype,"disabled",2);Qo([H({type:String})],exports.Tooltip.prototype,"content",2);Qo([H({type:String,reflect:!0})],exports.Tooltip.prototype,"theme",2);exports.Tooltip=Qo([ee(Jg)],exports.Tooltip);var Qm=Object.defineProperty,e8=Object.getOwnPropertyDescriptor,Fi=(o,t,n,l)=>{for(var c=l>1?void 0:l?e8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Qm(t,n,c),c};const ev=Le("avatar"),tv=Le("avatar-group");var Zd=(o=>(o[o.tiny=0]="tiny",o[o.small=1]="small",o[o.medium=2]="medium",o[o.large=3]="large",o))(Zd||{}),rv=(o=>(o[o.solid=0]="solid",o[o.subtle=1]="subtle",o[o.border=2]="border",o))(rv||{});exports.Avatar=class extends Ue{constructor(){super(...arguments),this.hasOuterBorder=!1,this.isPlaceholderHidden=!1,this.label="",this.noTooltip=!1,this.size="medium",this.theme="solid",this.slottedElementsCount=0}handleSlotChange({target:t}){const n=t==null?void 0:t.assignedElements({flatten:!0});this.slottedElementsCount=n.length}get abbreviatedLabel(){if(!this.label||this.isPlaceholderHidden)return"";const n=Zd[this.size]<2?1:2;return this.label.split(" ").slice(0,n).map(l=>l.charAt(0)).join("").toUpperCase()}get iconTemplate(){const t=Zd[this.size],n=()=>{switch(t){case 3:return 20;case 2:case 1:return 10;case 0:return 6.5}};return q`
|
|
193
193
|
<span class="icon" aria-label=${this.label}>
|
|
194
|
-
<brz-icon size=${n()} icon=${
|
|
194
|
+
<brz-icon size=${n()} icon=${kt(this.icon)}></brz-icon>
|
|
195
195
|
</span>
|
|
196
196
|
`}get textTemplate(){return q`
|
|
197
197
|
<span aria-label=${this.label}>
|
|
198
198
|
${this.slottedElementsCount?`+${this.slottedElementsCount}`:this.abbreviatedLabel}
|
|
199
199
|
</span>
|
|
200
200
|
`}get imageTemplate(){return q`<img
|
|
201
|
-
src=${
|
|
201
|
+
src=${kt(this.imageSrc)}
|
|
202
202
|
alt=${this.label}
|
|
203
203
|
@error=${()=>{console.warn(`An invalid URL or missing resource was provided for the avatar of "${this.label}": ${this.imageSrc}`),this.removeAttribute("image-src")}}
|
|
204
204
|
/>`}get slotTemplate(){return q`
|
|
205
205
|
<div
|
|
206
|
-
class=${
|
|
206
|
+
class=${kn({overflow:!0,hidden:!0})}
|
|
207
207
|
>
|
|
208
208
|
<slot @slotchange=${this.handleSlotChange} />
|
|
209
209
|
</div>
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
:host .hidden {
|
|
350
350
|
display: none;
|
|
351
351
|
}
|
|
352
|
-
`;
|
|
352
|
+
`;Fi([H({type:Boolean,attribute:"has-outer-border",reflect:!0})],exports.Avatar.prototype,"hasOuterBorder",2);Fi([H({type:String,attribute:"icon",reflect:!0})],exports.Avatar.prototype,"icon",2);Fi([H({type:String,attribute:"image-src",reflect:!0})],exports.Avatar.prototype,"imageSrc",2);Fi([H({type:Boolean,attribute:"is-placeholder-hidden",reflect:!0})],exports.Avatar.prototype,"isPlaceholderHidden",2);Fi([H({type:String,attribute:"label",reflect:!0})],exports.Avatar.prototype,"label",2);Fi([H({type:Boolean,attribute:"no-tooltip"})],exports.Avatar.prototype,"noTooltip",2);Fi([H({type:String,attribute:"size",reflect:!0})],exports.Avatar.prototype,"size",2);Fi([H({type:String,attribute:"theme",reflect:!0})],exports.Avatar.prototype,"theme",2);Fi([Be()],exports.Avatar.prototype,"slottedElementsCount",2);exports.Avatar=Fi([ee(ev)],exports.Avatar);exports.AvatarGroup=class extends Ue{render(){return q` <div class="container"><slot></slot></div> `}};exports.AvatarGroup.styles=fe`
|
|
353
353
|
:host .container {
|
|
354
354
|
align-items: center;
|
|
355
355
|
display: inline-flex;
|
|
@@ -360,16 +360,16 @@
|
|
|
360
360
|
::slotted(sp-avatar:not(:first-child)) {
|
|
361
361
|
margin-left: -0.6em;
|
|
362
362
|
}
|
|
363
|
-
`;exports.AvatarGroup=
|
|
364
|
-
--brz-spacing-${o}: ${o*
|
|
365
|
-
`),
|
|
363
|
+
`;exports.AvatarGroup=Fi([ee(tv)],exports.AvatarGroup);const Rh=.25,Vc=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],t8=Vc.map(o=>fe`
|
|
364
|
+
--brz-spacing-${o}: ${o*Rh}rem;
|
|
365
|
+
`),nv=fe`
|
|
366
366
|
:host {
|
|
367
367
|
--brz-spacing-px: 1px;
|
|
368
|
-
--brz-spacing-half: ${.5*
|
|
368
|
+
--brz-spacing-half: ${.5*Rh}rem;
|
|
369
369
|
|
|
370
|
-
${Ua(
|
|
370
|
+
${Ua(t8.join(""))};
|
|
371
371
|
}
|
|
372
|
-
`,
|
|
372
|
+
`,r8=["m","p"],n8=["x","y"],i8=["t","r","b","l"],o8=r8.flatMap(o=>[o,...n8.map(t=>`${o}${t}`),...i8.map(t=>`${o}${t}`)]),a8=o8.reduce((o,t)=>({...o,[t]:{type:Number,reflect:!0}}),{}),s8=o=>fe`
|
|
373
373
|
:host([m='${o}']),
|
|
374
374
|
:host([my='${o}']),
|
|
375
375
|
:host([mt='${o}']) {
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
:host([pr='${o}']) {
|
|
418
418
|
padding-right: var(--brz-spacing-${o});
|
|
419
419
|
}
|
|
420
|
-
`,
|
|
420
|
+
`,l8=Vc.map(s8),u8=o=>{var n,l;class t extends o{}return t.styles=[(n=o.styles)!=null?n:[],...l8],t.properties={...(l=o.properties)!=null?l:{},...a8},t},gu=u8(Ue),c8=o=>o.viewBox!==void 0,d8={arrowDown:{svg:X`
|
|
421
421
|
<title>Asset 36</title>
|
|
422
422
|
<g data-name="Layer 2">
|
|
423
423
|
<g data-name="Layer 1">
|
|
@@ -691,7 +691,7 @@
|
|
|
691
691
|
C7,14.1,7,14.1,7,14.1z"/>
|
|
692
692
|
<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
|
|
693
693
|
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
|
|
694
|
-
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:X`<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:X`<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)"/>`}},
|
|
694
|
+
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:X`<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:X`<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)"/>`}},f8="0 0 18 18",iv=o=>c8(o)?o:{svg:o,viewBox:f8},Fh={actions:X`
|
|
695
695
|
<g stroke="none" stroke-width="1" fill-rule="evenodd">
|
|
696
696
|
<g transform="translate(-0.002970, 0.000000)">
|
|
697
697
|
<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>
|
|
@@ -1156,7 +1156,7 @@
|
|
|
1156
1156
|
<circle class="st0" cx="9" cy="13" r="1"/>
|
|
1157
1157
|
<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"/>
|
|
1158
1158
|
</g>
|
|
1159
|
-
<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:X`<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:X`<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"/>`,...
|
|
1159
|
+
<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:X`<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:X`<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"/>`,...d8},h8=Object.keys(Fh);var p8=Object.defineProperty,g8=Object.getOwnPropertyDescriptor,Hh=(o,t,n,l)=>{for(var c=l>1?void 0:l?g8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&p8(t,n,c),c};const ov=Le("icon");exports.Icon=class extends Ue{constructor(){super(...arguments),this.size=18,this.icon="close"}render(){const{svg:t,viewBox:n}=iv(Fh[this.icon]);return q`
|
|
1160
1160
|
<svg
|
|
1161
1161
|
role="presentation"
|
|
1162
1162
|
width=${this.size}
|
|
@@ -1174,7 +1174,7 @@
|
|
|
1174
1174
|
svg {
|
|
1175
1175
|
fill: currentColor;
|
|
1176
1176
|
}
|
|
1177
|
-
`;
|
|
1177
|
+
`;Hh([H({type:Number,reflect:!0})],exports.Icon.prototype,"size",2);Hh([H({type:String})],exports.Icon.prototype,"icon",2);exports.Icon=Hh([ee(ov)],exports.Icon);var v8=Object.defineProperty,b8=Object.getOwnPropertyDescriptor,ea=(o,t,n,l)=>{for(var c=l>1?void 0:l?b8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&v8(t,n,c),c};const av=Le("link"),sv=Le("link-button"),m8=["a","button"],y8=fe`
|
|
1178
1178
|
:host {
|
|
1179
1179
|
display: inline-flex; /* Avoids the custom element wrapper "padding" the link in some cases */
|
|
1180
1180
|
align-items: center;
|
|
@@ -1208,12 +1208,12 @@
|
|
|
1208
1208
|
:host([link-type='secondary']:hover) {
|
|
1209
1209
|
text-decoration: none;
|
|
1210
1210
|
}
|
|
1211
|
-
`,
|
|
1211
|
+
`,Bh=fe`
|
|
1212
1212
|
a {
|
|
1213
1213
|
color: inherit;
|
|
1214
1214
|
text-decoration: inherit;
|
|
1215
1215
|
}
|
|
1216
|
-
`,
|
|
1216
|
+
`,C8=fe`
|
|
1217
1217
|
button {
|
|
1218
1218
|
font-family: inherit;
|
|
1219
1219
|
font-size: inherit;
|
|
@@ -1225,11 +1225,11 @@
|
|
|
1225
1225
|
color: inherit;
|
|
1226
1226
|
cursor: pointer;
|
|
1227
1227
|
}
|
|
1228
|
-
`,
|
|
1228
|
+
`,w8=["primary","secondary"];exports.Link=class extends Ue{constructor(){super(...arguments),this.element="a",this.virtual=!1,this.linkType="primary",this.isExternal=!1}handleClick(t){this.virtual&&t.preventDefault()}connectedCallback(){super.connectedCallback(),this.isExternal&&(this.target="_blank")}get externalIcon(){return this.isExternal?q`<brz-icon icon="openLink" size="12"></brz-icon>`:null}get anchorTemplate(){return q`
|
|
1229
1229
|
<a
|
|
1230
|
-
href=${
|
|
1231
|
-
target=${
|
|
1232
|
-
rel=${
|
|
1230
|
+
href=${kt(this.href)}
|
|
1231
|
+
target=${kt(this.target)}
|
|
1232
|
+
rel=${kt(this.rel)}
|
|
1233
1233
|
@click=${this.handleClick}
|
|
1234
1234
|
>
|
|
1235
1235
|
<slot></slot>
|
|
@@ -1242,7 +1242,7 @@
|
|
|
1242
1242
|
</button>
|
|
1243
1243
|
|
|
1244
1244
|
${this.externalIcon}
|
|
1245
|
-
`}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[
|
|
1245
|
+
`}render(){switch(this.element){case"button":return this.buttonTemplate;case"a":default:return this.anchorTemplate}}};exports.Link.styles=[Bh,C8,y8];ea([H()],exports.Link.prototype,"element",2);ea([H({type:Boolean,reflect:!0})],exports.Link.prototype,"virtual",2);ea([H({type:String,reflect:!0})],exports.Link.prototype,"href",2);ea([H({type:String,attribute:"link-type",reflect:!0})],exports.Link.prototype,"linkType",2);ea([H({type:String,reflect:!0})],exports.Link.prototype,"target",2);ea([H({type:String,reflect:!0})],exports.Link.prototype,"rel",2);ea([H({type:Boolean,attribute:"is-external",reflect:!0})],exports.Link.prototype,"isExternal",2);exports.Link=ea([ee(av)],exports.Link);exports.LinkButton=class extends exports.Link{connectedCallback(){super.connectedCallback(),this.element="button"}};exports.LinkButton=ea([ee(sv)],exports.LinkButton);var x8=Object.defineProperty,z8=Object.getOwnPropertyDescriptor,f1=(o,t,n,l)=>{for(var c=l>1?void 0:l?z8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&x8(t,n,c),c};const lv=Le("row"),uv=Le("column");exports.Row=class extends Ue{render(){return q`<slot></slot>`}};exports.Row.styles=fe`
|
|
1246
1246
|
:host {
|
|
1247
1247
|
display: flex;
|
|
1248
1248
|
flex-direction: row;
|
|
@@ -1261,7 +1261,7 @@
|
|
|
1261
1261
|
:host([vertical-align='bottom']) {
|
|
1262
1262
|
align-items: flex-end;
|
|
1263
1263
|
}
|
|
1264
|
-
`;f1([H({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=f1([ee(
|
|
1264
|
+
`;f1([H({attribute:"vertical-align",reflect:!0})],exports.Row.prototype,"verticalAlign",2);exports.Row=f1([ee(lv)],exports.Row);exports.Column=class extends Ue{render(){return q`<slot></slot>`}};exports.Column.styles=fe`
|
|
1265
1265
|
:host {
|
|
1266
1266
|
display: flex;
|
|
1267
1267
|
flex-direction: column;
|
|
@@ -1280,7 +1280,7 @@
|
|
|
1280
1280
|
:host([align='right']) {
|
|
1281
1281
|
align-items: flex-end;
|
|
1282
1282
|
}
|
|
1283
|
-
`;f1([H({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=f1([ee(
|
|
1283
|
+
`;f1([H({reflect:!0})],exports.Column.prototype,"align",2);exports.Column=f1([ee(uv)],exports.Column);var L8=Object.defineProperty,S8=Object.getOwnPropertyDescriptor,cv=(o,t,n,l)=>{for(var c=l>1?void 0:l?S8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&L8(t,n,c),c};const dv=Le("loading-spinner");exports.LoadingSpinner=class extends Ue{constructor(){super(...arguments),this.size=24}render(){return q`
|
|
1284
1284
|
<div class="loading-spinner">
|
|
1285
1285
|
<svg
|
|
1286
1286
|
class="loading-spinner--circular"
|
|
@@ -1335,14 +1335,14 @@
|
|
|
1335
1335
|
stroke-dashoffset: -124px;
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
|
-
`;
|
|
1339
|
-
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(t){this.buttonElement.focus(t)}emit(t){this.dispatchEvent(new
|
|
1338
|
+
`;cv([H({type:Number})],exports.LoadingSpinner.prototype,"size",2);exports.LoadingSpinner=cv([ee(dv)],exports.LoadingSpinner);var _8=Object.defineProperty,M8=Object.getOwnPropertyDescriptor,Qr=(o,t,n,l)=>{for(var c=l>1?void 0:l?M8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&_8(t,n,c),c};const Wh=Le("button"),fv=Le("button-group");class hv extends CustomEvent{constructor(t){super(`${Wh}-${t}`,{bubbles:!0,composed:!0})}}const T8=["primary","secondary","transparent","transparent-primary"];exports.Button=class extends gu{constructor(){super(...arguments),this.element="button",this.buttonType="primary",this.iconSize=18,this.loading=!1,this.compact=!1,this.disabled=!1,this.iconOnly=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.defaultSlot.some(n=>{var l;return!!((l=n.textContent)!=null&&l.replace(`
|
|
1339
|
+
`,"").trim())})||(this.iconOnly=!!(this.leadingIcon||this.trailingIcon))})}focus(t){this.buttonElement.focus(t)}emit(t){this.dispatchEvent(new hv(t))}get classes(){return kn({button:!0,primary:this.buttonType==="primary"&&!this.disabled,secondary:this.buttonType==="secondary"&&!this.disabled,transparent:this.buttonType==="transparent"||this.buttonType==="transparent-primary",transparentPrimary:this.buttonType==="transparent-primary",compact:this.compact,loading:this.loading,disabled:this.disabled})}handleClick(){this.disabled||this.emit("click")}get anchorTemplate(){return q`
|
|
1340
1340
|
<a
|
|
1341
1341
|
part="button"
|
|
1342
1342
|
role="button"
|
|
1343
|
-
href=${
|
|
1344
|
-
target=${
|
|
1345
|
-
rel=${
|
|
1343
|
+
href=${kt(this.href)}
|
|
1344
|
+
target=${kt(this.target)}
|
|
1345
|
+
rel=${kt(this.rel)}
|
|
1346
1346
|
@click=${this.handleClick}
|
|
1347
1347
|
tabindex=${this.disabled?-1:0}
|
|
1348
1348
|
?aria-disabled=${this.disabled}
|
|
@@ -1365,20 +1365,20 @@
|
|
|
1365
1365
|
${this.leadingIcon?q`<brz-icon
|
|
1366
1366
|
part="icon-left"
|
|
1367
1367
|
class="pre-icon"
|
|
1368
|
-
size=${
|
|
1368
|
+
size=${kt(this.iconSize)}
|
|
1369
1369
|
icon="${this.leadingIcon}"
|
|
1370
1370
|
></brz-icon>`:null}
|
|
1371
1371
|
<slot></slot>
|
|
1372
1372
|
${this.trailingIcon?q`<brz-icon
|
|
1373
1373
|
part="icon-right"
|
|
1374
1374
|
class="post-icon"
|
|
1375
|
-
size=${
|
|
1375
|
+
size=${kt(this.iconSize)}
|
|
1376
1376
|
icon="${this.trailingIcon}"
|
|
1377
1377
|
></brz-icon>`:null}
|
|
1378
1378
|
</div>
|
|
1379
1379
|
|
|
1380
1380
|
${this.loading?q`<brz-loading-spinner size="18"></brz-loading-spinner>`:null}
|
|
1381
|
-
`}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return this.buttonTemplate}}};var
|
|
1381
|
+
`}render(){switch(this.element){case"a":return this.anchorTemplate;case"button":default:return this.buttonTemplate}}};var pg;exports.Button.styles=[(pg=gu.styles)!=null?pg:[],Bh,fe`
|
|
1382
1382
|
:host {
|
|
1383
1383
|
--brz-button-background-color: transparent;
|
|
1384
1384
|
--brz-button-border-width: var(--brz-spacing-px);
|
|
@@ -1574,7 +1574,7 @@
|
|
|
1574
1574
|
color: var(--brz-button-icon-color);
|
|
1575
1575
|
padding: var(--brz-spacing-px);
|
|
1576
1576
|
}
|
|
1577
|
-
`];Qr([H()],exports.Button.prototype,"element",2);Qr([H({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);Qr([H({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Qr([H({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Qr([H({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Qr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Qr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Qr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Qr([H()],exports.Button.prototype,"href",2);Qr([H()],exports.Button.prototype,"target",2);Qr([H()],exports.Button.prototype,"rel",2);Qr([H({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Qr([
|
|
1577
|
+
`];Qr([H()],exports.Button.prototype,"element",2);Qr([H({attribute:"button-type",reflect:!0})],exports.Button.prototype,"buttonType",2);Qr([H({type:String,reflect:!0,attribute:"leading-icon"})],exports.Button.prototype,"leadingIcon",2);Qr([H({type:String,reflect:!0,attribute:"trailing-icon"})],exports.Button.prototype,"trailingIcon",2);Qr([H({type:Number,attribute:"icon-size"})],exports.Button.prototype,"iconSize",2);Qr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"loading",2);Qr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"compact",2);Qr([H({type:Boolean,reflect:!0})],exports.Button.prototype,"disabled",2);Qr([H()],exports.Button.prototype,"href",2);Qr([H()],exports.Button.prototype,"target",2);Qr([H()],exports.Button.prototype,"rel",2);Qr([H({type:Boolean,attribute:"icon-only",reflect:!0})],exports.Button.prototype,"iconOnly",2);Qr([Ri("button")],exports.Button.prototype,"buttonElement",2);Qr([Th()],exports.Button.prototype,"defaultSlot",2);exports.Button=Qr([ee(Wh)],exports.Button);exports.ButtonGroup=class extends Ue{constructor(){super(...arguments),this.compact=!1}render(){return q`<brz-row class=${kn({compact:this.compact})}
|
|
1578
1578
|
><slot></slot
|
|
1579
1579
|
></brz-row>`}};exports.ButtonGroup.styles=fe`
|
|
1580
1580
|
brz-row {
|
|
@@ -1593,7 +1593,7 @@
|
|
|
1593
1593
|
--brz-button-r-radius: 0;
|
|
1594
1594
|
--brz-border-r-width: 0;
|
|
1595
1595
|
}
|
|
1596
|
-
`;Qr([H({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Qr([ee(
|
|
1596
|
+
`;Qr([H({type:Boolean})],exports.ButtonGroup.prototype,"compact",2);exports.ButtonGroup=Qr([ee(fv)],exports.ButtonGroup);const O8=["small","medium","large"];var k8=Object.defineProperty,E8=Object.getOwnPropertyDescriptor,bo=(o,t,n,l)=>{for(var c=l>1?void 0:l?E8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&k8(t,n,c),c};const pv=Le("dropdown-menu"),I8=[...O8,"fluid"];exports.DropdownMenu=class extends Ue{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.disabled=!1}updated(t){super.updated(t),this.size==="fluid"&&this.applyFluidWidth()}applyFluidWidth(){const{clientWidth:t,offsetWidth:n}=this.referenceElement,l=window.getComputedStyle(this.referenceElement);this.fluidWidth=l.boxSizing==="border-box"&&l.width!==void 0?t:n}handleOpen(){this.size==="fluid"&&this.fluidWidth===0&&this.applyFluidWidth(),this.menu.focus()}handleClose(){this.referenceElement.focus(),this.menu.reset()}handleSelect(){this.multiselect||this.handleClose()}handleBlur(){this.close()}handleSlotChange(){this.disabled=this.referenceElement.hasAttribute("disabled")}get referenceElement(){return this.slottedElements[0]}open(){this.popover.open()}close(){this.popover.close()}updatePosition(){var t;(t=this.popover)==null||t.updatePosition()}render(){return q`
|
|
1597
1597
|
<brz-popover
|
|
1598
1598
|
trigger="click"
|
|
1599
1599
|
placement="bottom-start"
|
|
@@ -1619,17 +1619,17 @@
|
|
|
1619
1619
|
</brz-popover>
|
|
1620
1620
|
`}};exports.DropdownMenu.styles=fe`
|
|
1621
1621
|
${qs(":focus-within brz-menu:focus-visible")};
|
|
1622
|
-
`;bo([H({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);bo([H({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);bo([H({type:Array})],exports.DropdownMenu.prototype,"selected",2);bo([H()],exports.DropdownMenu.prototype,"size",2);bo([Be()],exports.DropdownMenu.prototype,"fluidWidth",2);bo([Be()],exports.DropdownMenu.prototype,"disabled",2);bo([
|
|
1622
|
+
`;bo([H({type:Boolean})],exports.DropdownMenu.prototype,"multiselect",2);bo([H({type:Boolean})],exports.DropdownMenu.prototype,"selectable",2);bo([H({type:Array})],exports.DropdownMenu.prototype,"selected",2);bo([H()],exports.DropdownMenu.prototype,"size",2);bo([Be()],exports.DropdownMenu.prototype,"fluidWidth",2);bo([Be()],exports.DropdownMenu.prototype,"disabled",2);bo([Ri("brz-menu")],exports.DropdownMenu.prototype,"menu",2);bo([Ri("brz-popover")],exports.DropdownMenu.prototype,"popover",2);bo([Jo()],exports.DropdownMenu.prototype,"slottedElements",2);exports.DropdownMenu=bo([ee(pv)],exports.DropdownMenu);var iu=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function gv(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Gd={exports:{}};/**
|
|
1623
1623
|
* @license
|
|
1624
1624
|
* Lodash <https://lodash.com/>
|
|
1625
1625
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1626
1626
|
* Released under MIT license <https://lodash.com/license>
|
|
1627
1627
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1628
1628
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1629
|
-
*/Gd.exports;(function(o,t){(function(){var n,l="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",x="Invalid `variable` option passed into `_.template`",z="__lodash_hash_undefined__",S=500,k="__lodash_placeholder__",D=1,B=2,R=4,J=1,pe=2,ge=1,Te=2,Ie=4,be=8,ve=16,Oe=32,$e=64,De=128,je=256,Ye=512,Ce=30,le="...",Q=800,$=16,O=1,E=2,Y=3,ue=1/0,Ae=9007199254740991,et=17976931348623157e292,pt=0/0,yt=4294967295,or=yt-1,Mt=yt>>>1,xt=[["ary",De],["bind",ge],["bindKey",Te],["curry",be],["curryRight",ve],["flip",Ye],["partial",Oe],["partialRight",$e],["rearg",je]],rt="[object Arguments]",ze="[object Array]",Ne="[object AsyncFunction]",Ge="[object Boolean]",st="[object Date]",lt="[object DOMException]",Ze="[object Error]",Vt="[object Function]",Zr="[object GeneratorFunction]",tr="[object Map]",Qe="[object Number]",bt="[object Null]",kt="[object Object]",Pr="[object Promise]",en="[object Proxy]",ar="[object RegExp]",it="[object Set]",Z="[object String]",se="[object Symbol]",K="[object Undefined]",tt="[object WeakMap]",sr="[object WeakSet]",Lr="[object ArrayBuffer]",$n="[object DataView]",Gr="[object Float32Array]",Ut="[object Float64Array]",bi="[object Int8Array]",Dr="[object Int16Array]",Pn="[object Int32Array]",We="[object Uint8Array]",Bi="[object Uint8ClampedArray]",Sr="[object Uint16Array]",qe="[object Uint32Array]",Jt=/\b__p \+= '';/g,na=/\b(__p \+=) '' \+/g,gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dn=/&(?:amp|lt|gt|quot|#39);/g,vr=/[&<>"']/g,ia=RegExp(Dn.source),ln=RegExp(vr.source),wo=/<%-([\s\S]+?)%>/g,Wi=/<%([\s\S]+?)%>/g,ja=/<%=([\s\S]+?)%>/g,Ka=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/[\\^$.*+?()[\]{}|]/g,Xn=RegExp(xo.source),zo=/^\s+/,rl=/\s/,nl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ya=/\{\n\/\* \[wrapped with (.+)\] \*/,Ui=/,? & /,Cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,un=/[()=,{}\[\]\/\s]/,il=/\\(\\)?/g,mi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lo=/\w*$/,oa=/^[-+]0x[0-9a-f]+$/i,Nn=/^0b[01]+$/i,Rn=/^\[object .+?Constructor\]$/,cn=/^0o[0-7]+$/i,Xa=/^(?:0|[1-9]\d*)$/,Ja=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,dn="\\ud800-\\udfff",Qa="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",zt="\\u20d0-\\u20ff",Fn=Qa+tn+zt,Vi="\\u2700-\\u27bf",aa="a-z\\xdf-\\xf6\\xf8-\\xff",ae="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",A="\\u2000-\\u206f",te=" \\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",ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ke="\\ufe0e\\ufe0f",gt=ae+w+A+te,we="['’]",_r="["+dn+"]",rn="["+gt+"]",yi="["+Fn+"]",Hn="\\d+",t0="["+Vi+"]",xu="["+aa+"]",sa="[^"+dn+gt+Hn+Vi+aa+ce+"]",es="\\ud83c[\\udffb-\\udfff]",r0="(?:"+yi+"|"+es+")",ol="[^"+dn+"]",al="(?:\\ud83c[\\udde6-\\uddff]){2}",sl="[\\ud800-\\udbff][\\udc00-\\udfff]",So="["+ce+"]",zu="\\u200d",n0="(?:"+xu+"|"+sa+")",I1="(?:"+So+"|"+sa+")",Lu="(?:"+we+"(?:d|ll|m|re|s|t|ve))?",Jn="(?:"+we+"(?:D|LL|M|RE|S|T|VE))?",i0=r0+"?",o0="["+Ke+"]?",ll="(?:"+zu+"(?:"+[ol,al,sl].join("|")+")"+o0+i0+")*",ts="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",A1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",a0=o0+i0+ll,$1="(?:"+[t0,al,sl].join("|")+")"+a0,P1="(?:"+[ol+yi+"?",yi,al,sl,_r].join("|")+")",Su=RegExp(we,"g"),s0=RegExp(yi,"g"),_u=RegExp(es+"(?="+es+")|"+P1+a0,"g"),l0=RegExp([So+"?"+xu+"+"+Lu+"(?="+[rn,So,"$"].join("|")+")",I1+"+"+Jn+"(?="+[rn,So+n0,"$"].join("|")+")",So+"?"+n0+"+"+Lu,So+"+"+Jn,A1,ts,Hn,$1].join("|"),"g"),u0=RegExp("["+zu+dn+Fn+Ke+"]"),ul=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cl=["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"],Mu=-1,Wt={};Wt[Gr]=Wt[Ut]=Wt[bi]=Wt[Dr]=Wt[Pn]=Wt[We]=Wt[Bi]=Wt[Sr]=Wt[qe]=!0,Wt[rt]=Wt[ze]=Wt[Lr]=Wt[Ge]=Wt[$n]=Wt[st]=Wt[Ze]=Wt[Vt]=Wt[tr]=Wt[Qe]=Wt[kt]=Wt[ar]=Wt[it]=Wt[Z]=Wt[tt]=!1;var Ft={};Ft[rt]=Ft[ze]=Ft[Lr]=Ft[$n]=Ft[Ge]=Ft[st]=Ft[Gr]=Ft[Ut]=Ft[bi]=Ft[Dr]=Ft[Pn]=Ft[tr]=Ft[Qe]=Ft[kt]=Ft[ar]=Ft[it]=Ft[Z]=Ft[se]=Ft[We]=Ft[Bi]=Ft[Sr]=Ft[qe]=!0,Ft[Ze]=Ft[Vt]=Ft[tt]=!1;var dl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},D1={"&":"&","<":"<",">":">",'"':""","'":"'"},c0={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},N1=parseFloat,R1=parseInt,fl=typeof nu=="object"&&nu&&nu.Object===Object&&nu,d0=typeof self=="object"&&self&&self.Object===Object&&self,Zt=fl||d0||Function("return this")(),rs=t&&!t.nodeType&&t,jr=rs&&!0&&o&&!o.nodeType&&o,ns=jr&&jr.exports===rs,is=ns&&fl.process,Mr=function(){try{var U=jr&&jr.require&&jr.require("util").types;return U||is&&is.binding&&is.binding("util")}catch{}}(),f0=Mr&&Mr.isArrayBuffer,h0=Mr&&Mr.isDate,p0=Mr&&Mr.isMap,g0=Mr&&Mr.isRegExp,Tu=Mr&&Mr.isSet,Ou=Mr&&Mr.isTypedArray;function fn(U,re,G){switch(G.length){case 0:return U.call(re);case 1:return U.call(re,G[0]);case 2:return U.call(re,G[0],G[1]);case 3:return U.call(re,G[0],G[1],G[2])}return U.apply(re,G)}function F1(U,re,G,Ee){for(var nt=-1,Tt=U==null?0:U.length;++nt<Tt;){var ur=U[nt];re(Ee,ur,G(ur),U)}return Ee}function wn(U,re){for(var G=-1,Ee=U==null?0:U.length;++G<Ee&&re(U[G],G,U)!==!1;);return U}function H1(U,re){for(var G=U==null?0:U.length;G--&&re(U[G],G,U)!==!1;);return U}function Eu(U,re){for(var G=-1,Ee=U==null?0:U.length;++G<Ee;)if(!re(U[G],G,U))return!1;return!0}function Zi(U,re){for(var G=-1,Ee=U==null?0:U.length,nt=0,Tt=[];++G<Ee;){var ur=U[G];re(ur,G,U)&&(Tt[nt++]=ur)}return Tt}function os(U,re){var G=U==null?0:U.length;return!!G&&Mo(U,re,0)>-1}function la(U,re,G){for(var Ee=-1,nt=U==null?0:U.length;++Ee<nt;)if(G(re,U[Ee]))return!0;return!1}function At(U,re){for(var G=-1,Ee=U==null?0:U.length,nt=Array(Ee);++G<Ee;)nt[G]=re(U[G],G,U);return nt}function Gi(U,re){for(var G=-1,Ee=re.length,nt=U.length;++G<Ee;)U[nt+G]=re[G];return U}function ku(U,re,G,Ee){var nt=-1,Tt=U==null?0:U.length;for(Ee&&Tt&&(G=U[++nt]);++nt<Tt;)G=re(G,U[nt],nt,U);return G}function B1(U,re,G,Ee){var nt=U==null?0:U.length;for(Ee&&nt&&(G=U[--nt]);nt--;)G=re(G,U[nt],nt,U);return G}function _o(U,re){for(var G=-1,Ee=U==null?0:U.length;++G<Ee;)if(re(U[G],G,U))return!0;return!1}var lr=Au("length");function W1(U){return U.split("")}function v0(U){return U.match(Cn)||[]}function ua(U,re,G){var Ee;return G(U,function(nt,Tt,ur){if(re(nt,Tt,ur))return Ee=Tt,!1}),Ee}function hl(U,re,G,Ee){for(var nt=U.length,Tt=G+(Ee?1:-1);Ee?Tt--:++Tt<nt;)if(re(U[Tt],Tt,U))return Tt;return-1}function Mo(U,re,G){return re===re?z0(U,re,G):hl(U,pl,G)}function U1(U,re,G,Ee){for(var nt=G-1,Tt=U.length;++nt<Tt;)if(Ee(U[nt],re))return nt;return-1}function pl(U){return U!==U}function Iu(U,re){var G=U==null?0:U.length;return G?Du(U,re)/G:pt}function Au(U){return function(re){return re==null?n:re[U]}}function $u(U){return function(re){return U==null?n:U[re]}}function Pu(U,re,G,Ee,nt){return nt(U,function(Tt,ur,Ct){G=Ee?(Ee=!1,Tt):re(G,Tt,ur,Ct)}),G}function b0(U,re){var G=U.length;for(U.sort(re);G--;)U[G]=U[G].value;return U}function Du(U,re){for(var G,Ee=-1,nt=U.length;++Ee<nt;){var Tt=re(U[Ee]);Tt!==n&&(G=G===n?Tt:G+Tt)}return G}function To(U,re){for(var G=-1,Ee=Array(U);++G<U;)Ee[G]=re(G);return Ee}function Ci(U,re){return At(re,function(G){return[G,U[G]]})}function as(U){return U&&U.slice(0,yl(U)+1).replace(zo,"")}function Kr(U){return function(re){return U(re)}}function gl(U,re){return At(re,function(G){return U[G]})}function nn(U,re){return U.has(re)}function qi(U,re){for(var G=-1,Ee=U.length;++G<Ee&&Mo(re,U[G],0)>-1;);return G}function vl(U,re){for(var G=U.length;G--&&Mo(re,U[G],0)>-1;);return G}function V1(U,re){for(var G=U.length,Ee=0;G--;)U[G]===re&&++Ee;return Ee}var m0=$u(dl),Z1=$u(D1);function y0(U){return"\\"+Qn[U]}function Nu(U,re){return U==null?n:U[re]}function Bn(U){return u0.test(U)}function ei(U){return ul.test(U)}function C0(U){for(var re,G=[];!(re=U.next()).done;)G.push(re.value);return G}function bl(U){var re=-1,G=Array(U.size);return U.forEach(function(Ee,nt){G[++re]=[nt,Ee]}),G}function w0(U,re){return function(G){return U(re(G))}}function ji(U,re){for(var G=-1,Ee=U.length,nt=0,Tt=[];++G<Ee;){var ur=U[G];(ur===re||ur===k)&&(U[G]=k,Tt[nt++]=G)}return Tt}function ml(U){var re=-1,G=Array(U.size);return U.forEach(function(Ee){G[++re]=Ee}),G}function x0(U){var re=-1,G=Array(U.size);return U.forEach(function(Ee){G[++re]=[Ee,Ee]}),G}function z0(U,re,G){for(var Ee=G-1,nt=U.length;++Ee<nt;)if(U[Ee]===re)return Ee;return-1}function ss(U,re,G){for(var Ee=G+1;Ee--;)if(U[Ee]===re)return Ee;return Ee}function Oo(U){return Bn(U)?L0(U):lr(U)}function xn(U){return Bn(U)?wl(U):W1(U)}function yl(U){for(var re=U.length;re--&&rl.test(U.charAt(re)););return re}var Cl=$u(c0);function L0(U){for(var re=_u.lastIndex=0;_u.test(U);)++re;return re}function wl(U){return U.match(_u)||[]}function Wn(U){return U.match(l0)||[]}var S0=function U(re){re=re==null?Zt:Ki.defaults(Zt.Object(),re,Ki.pick(Zt,cl));var G=re.Array,Ee=re.Date,nt=re.Error,Tt=re.Function,ur=re.Math,Ct=re.Object,Yi=re.RegExp,ca=re.String,on=re.TypeError,da=G.prototype,_0=Tt.prototype,Xi=Ct.prototype,ti=re["__core-js_shared__"],ri=_0.toString,ot=Xi.hasOwnProperty,Ji=0,wi=function(){var i=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Eo=Xi.toString,G1=ri.call(Ct),M0=Zt._,ls=Yi("^"+ri.call(ot).replace(xo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),us=ns?re.Buffer:n,xi=re.Symbol,ko=re.Uint8Array,T0=us?us.allocUnsafe:n,fa=w0(Ct.getPrototypeOf,Ct),Ru=Ct.create,xl=Xi.propertyIsEnumerable,ha=da.splice,Io=xi?xi.isConcatSpreadable:n,Qi=xi?xi.iterator:n,eo=xi?xi.toStringTag:n,Ao=function(){try{var i=Wo(Ct,"defineProperty");return i({},"",{}),i}catch{}}(),q1=re.clearTimeout!==Zt.clearTimeout&&re.clearTimeout,j1=Ee&&Ee.now!==Zt.Date.now&&Ee.now,K1=re.setTimeout!==Zt.setTimeout&&re.setTimeout,pa=ur.ceil,ga=ur.floor,to=Ct.getOwnPropertySymbols,cs=us?us.isBuffer:n,O0=re.isFinite,zl=da.join,E0=w0(Ct.keys,Ct),Gt=ur.max,Tr=ur.min,$o=Ee.now,ds=re.parseInt,ro=ur.random,fs=da.reverse,no=Wo(re,"DataView"),va=Wo(re,"Map"),Ll=Wo(re,"Promise"),Po=Wo(re,"Set"),hs=Wo(re,"WeakMap"),Un=Wo(Ct,"create"),ni=hs&&new hs,ba={},Y1=Ht(no),X1=Ht(va),J1=Ht(Ll),Q1=Ht(Po),ef=Ht(hs),Or=xi?xi.prototype:n,qt=Or?Or.valueOf:n,Er=Or?Or.toString:n;function _(i){if(nr(i)&&!ct(i)&&!(i instanceof vt)){if(i instanceof Yr)return i;if(ot.call(i,"__wrapped__"))return Wr(i)}return new Yr(i)}var ii=function(){function i(){}return function(u){if(!er(u))return{};if(Ru)return Ru(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function Sl(){}function Yr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}_.templateSettings={escape:wo,evaluate:Wi,interpolate:ja,variable:"",imports:{_}},_.prototype=Sl.prototype,_.prototype.constructor=_,Yr.prototype=ii(Sl.prototype),Yr.prototype.constructor=Yr;function vt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=yt,this.__views__=[]}function tf(){var i=new vt(this.__wrapped__);return i.__actions__=yr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=yr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=yr(this.__views__),i}function rf(){if(this.__filtered__){var i=new vt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Fu(){var i=this.__wrapped__.value(),u=this.__dir__,f=ct(i),b=u<0,L=f?i.length:0,M=Kl(0,L,this.__views__),P=M.start,N=M.end,V=N-P,ie=b?N:P-1,oe=this.__iteratees__,de=oe.length,_e=0,He=Tr(V,this.__takeCount__);if(!f||!b&&L==V&&He==V)return X0(i,this.__actions__);var Xe=[];e:for(;V--&&_e<He;){ie+=u;for(var ht=-1,Je=i[ie];++ht<de;){var mt=oe[ht],wt=mt.iteratee,Gn=mt.type,bn=wt(Je);if(Gn==E)Je=bn;else if(!bn){if(Gn==O)continue e;break e}}Xe[_e++]=Je}return Xe}vt.prototype=ii(Sl.prototype),vt.prototype.constructor=vt;function io(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Hu(){this.__data__=Un?Un(null):{},this.size=0}function nf(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function Bu(i){var u=this.__data__;if(Un){var f=u[i];return f===z?n:f}return ot.call(u,i)?u[i]:n}function Wu(i){var u=this.__data__;return Un?u[i]!==n:ot.call(u,i)}function k0(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Un&&u===n?z:u,this}io.prototype.clear=Hu,io.prototype.delete=nf,io.prototype.get=Bu,io.prototype.has=Wu,io.prototype.set=k0;function oi(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Uu(){this.__data__=[],this.size=0}function I0(i){var u=this.__data__,f=Do(u,i);if(f<0)return!1;var b=u.length-1;return f==b?u.pop():ha.call(u,f,1),--this.size,!0}function ps(i){var u=this.__data__,f=Do(u,i);return f<0?n:u[f][1]}function of(i){return Do(this.__data__,i)>-1}function _l(i,u){var f=this.__data__,b=Do(f,i);return b<0?(++this.size,f.push([i,u])):f[b][1]=u,this}oi.prototype.clear=Uu,oi.prototype.delete=I0,oi.prototype.get=ps,oi.prototype.has=of,oi.prototype.set=_l;function Qt(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function A0(){this.size=0,this.__data__={hash:new io,map:new(va||oi),string:new io}}function af(i){var u=jl(this,i).delete(i);return this.size-=u?1:0,u}function $0(i){return jl(this,i).get(i)}function hn(i){return jl(this,i).has(i)}function Lt(i,u){var f=jl(this,i),b=f.size;return f.set(i,u),this.size+=f.size==b?0:1,this}Qt.prototype.clear=A0,Qt.prototype.delete=af,Qt.prototype.get=$0,Qt.prototype.has=hn,Qt.prototype.set=Lt;function kr(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new Qt;++u<f;)this.add(i[u])}function oo(i){return this.__data__.set(i,z),this}function ao(i){return this.__data__.has(i)}kr.prototype.add=kr.prototype.push=oo,kr.prototype.has=ao;function zn(i){var u=this.__data__=new oi(i);this.size=u.size}function Vu(){this.__data__=new oi,this.size=0}function P0(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function sf(i){return this.__data__.get(i)}function Zu(i){return this.__data__.has(i)}function gs(i,u){var f=this.__data__;if(f instanceof oi){var b=f.__data__;if(!va||b.length<c-1)return b.push([i,u]),this.size=++f.size,this;f=this.__data__=new Qt(b)}return f.set(i,u),this.size=f.size,this}zn.prototype.clear=Vu,zn.prototype.delete=P0,zn.prototype.get=sf,zn.prototype.has=Zu,zn.prototype.set=gs;function Gu(i,u){var f=ct(i),b=!f&&Es(i),L=!f&&!b&&Da(i),M=!f&&!b&&!L&&Xl(i),P=f||b||L||M,N=P?To(i.length,ca):[],V=N.length;for(var ie in i)(u||ot.call(i,ie))&&!(P&&(ie=="length"||L&&(ie=="offset"||ie=="parent")||M&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||m(ie,V)))&&N.push(ie);return N}function Ml(i){var u=i.length;return u?i[Rl(0,u-1)]:n}function so(i,u){return Cr(yr(i),No(u,0,i.length))}function D0(i){return Cr(yr(i))}function Tl(i,u,f){(f!==n&&!Ti(i[u],f)||f===n&&!(u in i))&&ai(i,u,f)}function vs(i,u,f){var b=i[u];(!(ot.call(i,u)&&Ti(b,f))||f===n&&!(u in i))&&ai(i,u,f)}function Do(i,u){for(var f=i.length;f--;)if(Ti(i[f][0],u))return f;return-1}function qu(i,u,f,b){return pn(i,function(L,M,P){u(b,L,f(L),P)}),b}function ju(i,u){return i&&an(u,Vr(u),i)}function lf(i,u){return i&&an(u,Tn(u),i)}function ai(i,u,f){u=="__proto__"&&Ao?Ao(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function Ku(i,u){for(var f=-1,b=u.length,L=G(b),M=i==null;++f<b;)L[f]=M?n:Lf(i,u[f]);return L}function No(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Xr(i,u,f,b,L,M){var P,N=u&D,V=u&B,ie=u&R;if(f&&(P=L?f(i,b,L,M):f(i)),P!==n)return P;if(!er(i))return i;var oe=ct(i);if(oe){if(P=s(i),!N)return yr(i,P)}else{var de=Fr(i),_e=de==Vt||de==Zr;if(Da(i))return ac(i,N);if(de==kt||de==rt||_e&&!L){if(P=V||_e?{}:a(i),!N)return V?rd(i,lf(P,i)):vf(i,ju(P,i))}else{if(!Ft[de])return L?i:{};P=d(i,de,N)}}M||(M=new zn);var He=M.get(i);if(He)return He;M.set(i,P),Mp(i)?i.forEach(function(Je){P.add(Xr(Je,u,f,Je,i,M))}):Sp(i)&&i.forEach(function(Je,mt){P.set(mt,Xr(Je,u,f,mt,i,M))});var Xe=ie?V?ql:Ts:V?Tn:Vr,ht=oe?n:Xe(i);return wn(ht||i,function(Je,mt){ht&&(mt=Je,Je=i[mt]),vs(P,mt,Xr(Je,u,f,mt,i,M))}),P}function N0(i){var u=Vr(i);return function(f){return R0(f,i,u)}}function R0(i,u,f){var b=f.length;if(i==null)return!b;for(i=Ct(i);b--;){var L=f[b],M=u[L],P=i[L];if(P===n&&!(L in i)||!M(P))return!1}return!0}function F0(i,u,f){if(typeof i!="function")throw new on(h);return Nt(function(){i.apply(n,f)},u)}function ma(i,u,f,b){var L=-1,M=os,P=!0,N=i.length,V=[],ie=u.length;if(!N)return V;f&&(u=At(u,Kr(f))),b?(M=la,P=!1):u.length>=c&&(M=nn,P=!1,u=new kr(u));e:for(;++L<N;){var oe=i[L],de=f==null?oe:f(oe);if(oe=b||oe!==0?oe:0,P&&de===de){for(var _e=ie;_e--;)if(u[_e]===de)continue e;V.push(oe)}else M(u,de,b)||V.push(oe)}return V}var pn=nd(gn),Ol=nd(Il,!0);function El(i,u){var f=!0;return pn(i,function(b,L,M){return f=!!u(b,L,M),f}),f}function bs(i,u,f){for(var b=-1,L=i.length;++b<L;){var M=i[b],P=u(M);if(P!=null&&(N===n?P===P&&!Zn(P):f(P,N)))var N=P,V=M}return V}function Yu(i,u,f,b){var L=i.length;for(f=ft(f),f<0&&(f=-f>L?0:L+f),b=b===n||b>L?L:ft(b),b<0&&(b+=L),b=f>b?0:Op(b);f<b;)i[f++]=u;return i}function Xu(i,u){var f=[];return pn(i,function(b,L,M){u(b,L,M)&&f.push(b)}),f}function Ir(i,u,f,b,L){var M=-1,P=i.length;for(f||(f=v),L||(L=[]);++M<P;){var N=i[M];u>0&&f(N)?u>1?Ir(N,u-1,f,b,L):Gi(L,N):b||(L[L.length]=N)}return L}var kl=id(),br=id(!0);function gn(i,u){return i&&kl(i,u,Vr)}function Il(i,u){return i&&br(i,u,Vr)}function ms(i,u){return Zi(u,function(f){return Zo(i[f])})}function lo(i,u){u=Vn(u,i);for(var f=0,b=u.length;i!=null&&f<b;)i=i[$t(u[f++])];return f&&f==b?i:n}function Ro(i,u,f){var b=u(i);return ct(i)?b:Gi(b,f(i))}function mr(i){return i==null?i===n?K:bt:eo&&eo in Ct(i)?Yt(i):Se(i)}function Al(i,u){return i>u}function H0(i,u){return i!=null&&ot.call(i,u)}function B0(i,u){return i!=null&&u in Ct(i)}function ya(i,u,f){return i>=Tr(u,f)&&i<Gt(u,f)}function $l(i,u,f){for(var b=f?la:os,L=i[0].length,M=i.length,P=M,N=G(M),V=1/0,ie=[];P--;){var oe=i[P];P&&u&&(oe=At(oe,Kr(u))),V=Tr(oe.length,V),N[P]=!f&&(u||L>=120&&oe.length>=120)?new kr(P&&oe):n}oe=i[0];var de=-1,_e=N[0];e:for(;++de<L&&ie.length<V;){var He=oe[de],Xe=u?u(He):He;if(He=f||He!==0?He:0,!(_e?nn(_e,Xe):b(ie,Xe,f))){for(P=M;--P;){var ht=N[P];if(!(ht?nn(ht,Xe):b(i[P],Xe,f)))continue e}_e&&_e.push(Xe),ie.push(He)}}return ie}function Pl(i,u,f,b){return gn(i,function(L,M,P){u(b,f(L),M,P)}),b}function Ca(i,u,f){u=Vn(u,i),i=Pe(i,u);var b=i==null?i:i[$t(li(u))];return b==null?n:fn(b,i,f)}function wa(i){return nr(i)&&mr(i)==rt}function uf(i){return nr(i)&&mr(i)==Lr}function xa(i){return nr(i)&&mr(i)==st}function za(i,u,f,b,L){return i===u?!0:i==null||u==null||!nr(i)&&!nr(u)?i!==i&&u!==u:W0(i,u,f,b,za,L)}function W0(i,u,f,b,L,M){var P=ct(i),N=ct(u),V=P?ze:Fr(i),ie=N?ze:Fr(u);V=V==rt?kt:V,ie=ie==rt?kt:ie;var oe=V==kt,de=ie==kt,_e=V==ie;if(_e&&Da(i)){if(!Da(u))return!1;P=!0,oe=!1}if(_e&&!oe)return M||(M=new zn),P||Xl(i)?fc(i,u,f,b,L,M):dd(i,u,V,f,b,L,M);if(!(f&J)){var He=oe&&ot.call(i,"__wrapped__"),Xe=de&&ot.call(u,"__wrapped__");if(He||Xe){var ht=He?i.value():i,Je=Xe?u.value():u;return M||(M=new zn),L(ht,Je,f,b,M)}}return _e?(M||(M=new zn),fd(i,u,f,b,L,M)):!1}function U0(i){return nr(i)&&Fr(i)==tr}function Fo(i,u,f,b){var L=f.length,M=L,P=!b;if(i==null)return!M;for(i=Ct(i);L--;){var N=f[L];if(P&&N[2]?N[1]!==i[N[0]]:!(N[0]in i))return!1}for(;++L<M;){N=f[L];var V=N[0],ie=i[V],oe=N[1];if(P&&N[2]){if(ie===n&&!(V in i))return!1}else{var de=new zn;if(b)var _e=b(ie,oe,V,i,u,de);if(!(_e===n?za(oe,ie,J|pe,b,de):_e))return!1}}return!0}function La(i){if(!er(i)||W(i))return!1;var u=Zo(i)?ls:Rn;return u.test(Ht(i))}function ys(i){return nr(i)&&mr(i)==ar}function Cs(i){return nr(i)&&Fr(i)==it}function V0(i){return nr(i)&&yd(i.length)&&!!Wt[mr(i)]}function Z0(i){return typeof i=="function"?i:i==null?On:typeof i=="object"?ct(i)?Ju(i[0],i[1]):G0(i):Hp(i)}function Dl(i){if(!j(i))return E0(i);var u=[];for(var f in Ct(i))ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function uo(i){if(!er(i))return ye(i);var u=j(i),f=[];for(var b in i)b=="constructor"&&(u||!ot.call(i,b))||f.push(b);return f}function co(i,u){return i<u}function Sa(i,u){var f=-1,b=Mn(i)?G(i.length):[];return pn(i,function(L,M,P){b[++f]=u(L,M,P)}),b}function G0(i){var u=Aa(i);return u.length==1&&u[0][2]?he(u[0][0],u[0][1]):function(f){return f===i||Fo(f,i,u)}}function Ju(i,u){return C(i)&&ne(u)?he($t(i),u):function(f){var b=Lf(f,i);return b===n&&b===u?Sf(f,i):za(u,b,J|pe)}}function Nl(i,u,f,b,L){i!==u&&kl(u,function(M,P){if(L||(L=new zn),er(M))cf(i,u,P,f,Nl,b,L);else{var N=b?b(It(i,P),M,P+"",i,u,L):n;N===n&&(N=M),Tl(i,P,N)}},Tn)}function cf(i,u,f,b,L,M,P){var N=It(i,f),V=It(u,f),ie=P.get(V);if(ie){Tl(i,f,ie);return}var oe=M?M(N,V,f+"",i,u,P):n,de=oe===n;if(de){var _e=ct(V),He=!_e&&Da(V),Xe=!_e&&!He&&Xl(V);oe=V,_e||He||Xe?ct(N)?oe=N:fr(N)?oe=yr(N):He?(de=!1,oe=ac(V,!0)):Xe?(de=!1,oe=Q0(V,!0)):oe=[]:gc(V)||Es(V)?(oe=N,Es(N)?oe=Ep(N):(!er(N)||Zo(N))&&(oe=a(V))):de=!1}de&&(P.set(V,oe),L(oe,V,b,M,P),P.delete(V)),Tl(i,f,oe)}function q0(i,u){var f=i.length;if(f)return u+=u<0?f:0,m(u,f)?i[u]:n}function Nr(i,u,f){u.length?u=At(u,function(M){return ct(M)?function(P){return lo(P,M.length===1?M[0]:M)}:M}):u=[On];var b=-1;u=At(u,Kr(Ve()));var L=Sa(i,function(M,P,N){var V=At(u,function(ie){return ie(M)});return{criteria:V,index:++b,value:M}});return b0(L,function(M,P){return ed(M,P,f)})}function j0(i,u){return K0(i,u,function(f,b){return Sf(i,b)})}function K0(i,u,f){for(var b=-1,L=u.length,M={};++b<L;){var P=u[b],N=lo(i,P);f(N,P)&&zi(M,Vn(P,i),N)}return M}function df(i){return function(u){return lo(u,i)}}function Qu(i,u,f,b){var L=b?U1:Mo,M=-1,P=u.length,N=i;for(i===u&&(u=yr(u)),f&&(N=At(i,Kr(f)));++M<P;)for(var V=0,ie=u[M],oe=f?f(ie):ie;(V=L(N,oe,V,b))>-1;)N!==i&&ha.call(N,V,1),ha.call(i,V,1);return i}function ec(i,u){for(var f=i?u.length:0,b=f-1;f--;){var L=u[f];if(f==b||L!==M){var M=L;m(L)?ha.call(i,L,1):zs(i,L)}}return i}function Rl(i,u){return i+ga(ro()*(u-i+1))}function Y0(i,u,f,b){for(var L=-1,M=Gt(pa((u-i)/(f||1)),0),P=G(M);M--;)P[b?M:++L]=i,i+=f;return P}function tc(i,u){var f="";if(!i||u<1||u>Ae)return f;do u%2&&(f+=i),u=ga(u/2),u&&(i+=i);while(u);return f}function dt(i,u){return Hr(Fe(i,u,On),i+"")}function ff(i){return Ml(Jl(i))}function fo(i,u){var f=Jl(i);return Cr(f,No(u,0,f.length))}function zi(i,u,f,b){if(!er(i))return i;u=Vn(u,i);for(var L=-1,M=u.length,P=M-1,N=i;N!=null&&++L<M;){var V=$t(u[L]),ie=f;if(V==="__proto__"||V==="constructor"||V==="prototype")return i;if(L!=P){var oe=N[V];ie=b?b(oe,V,N):n,ie===n&&(ie=er(oe)?oe:m(u[L+1])?[]:{})}vs(N,V,ie),N=N[V]}return i}var ws=ni?function(i,u){return ni.set(i,u),i}:On,xs=Ao?function(i,u){return Ao(i,"toString",{configurable:!0,enumerable:!1,value:Mf(u),writable:!0})}:On;function Li(i){return Cr(Jl(i))}function Ln(i,u,f){var b=-1,L=i.length;u<0&&(u=-u>L?0:L+u),f=f>L?L:f,f<0&&(f+=L),L=u>f?0:f-u>>>0,u>>>=0;for(var M=G(L);++b<L;)M[b]=i[b+u];return M}function hf(i,u){var f;return pn(i,function(b,L,M){return f=u(b,L,M),!f}),!!f}function Si(i,u,f){var b=0,L=i==null?b:i.length;if(typeof u=="number"&&u===u&&L<=Mt){for(;b<L;){var M=b+L>>>1,P=i[M];P!==null&&!Zn(P)&&(f?P<=u:P<u)?b=M+1:L=M}return L}return Fl(i,u,On,f)}function Fl(i,u,f,b){var L=0,M=i==null?0:i.length;if(M===0)return 0;u=f(u);for(var P=u!==u,N=u===null,V=Zn(u),ie=u===n;L<M;){var oe=ga((L+M)/2),de=f(i[oe]),_e=de!==n,He=de===null,Xe=de===de,ht=Zn(de);if(P)var Je=b||Xe;else ie?Je=Xe&&(b||_e):N?Je=Xe&&_e&&(b||!He):V?Je=Xe&&_e&&!He&&(b||!ht):He||ht?Je=!1:Je=b?de<=u:de<u;Je?L=oe+1:M=oe}return Tr(M,or)}function rc(i,u){for(var f=-1,b=i.length,L=0,M=[];++f<b;){var P=i[f],N=u?u(P):P;if(!f||!Ti(N,V)){var V=N;M[L++]=P===0?0:P}}return M}function nc(i){return typeof i=="number"?i:Zn(i)?pt:+i}function Rr(i){if(typeof i=="string")return i;if(ct(i))return At(i,Rr)+"";if(Zn(i))return Er?Er.call(i):"";var u=i+"";return u=="0"&&1/i==-ue?"-0":u}function vn(i,u,f){var b=-1,L=os,M=i.length,P=!0,N=[],V=N;if(f)P=!1,L=la;else if(M>=c){var ie=u?null:Ms(i);if(ie)return ml(ie);P=!1,L=nn,V=new kr}else V=u?[]:N;e:for(;++b<M;){var oe=i[b],de=u?u(oe):oe;if(oe=f||oe!==0?oe:0,P&&de===de){for(var _e=V.length;_e--;)if(V[_e]===de)continue e;u&&V.push(de),N.push(oe)}else L(V,de,f)||(V!==N&&V.push(de),N.push(oe))}return N}function zs(i,u){return u=Vn(u,i),i=Pe(i,u),i==null||delete i[$t(li(u))]}function Hl(i,u,f,b){return zi(i,u,f(lo(i,u)),b)}function _a(i,u,f,b){for(var L=i.length,M=b?L:-1;(b?M--:++M<L)&&u(i[M],M,i););return f?Ln(i,b?0:M,b?M+1:L):Ln(i,b?M+1:0,b?L:M)}function X0(i,u){var f=i;return f instanceof vt&&(f=f.value()),ku(u,function(b,L){return L.func.apply(L.thisArg,Gi([b],L.args))},f)}function Ho(i,u,f){var b=i.length;if(b<2)return b?vn(i[0]):[];for(var L=-1,M=G(b);++L<b;)for(var P=i[L],N=-1;++N<b;)N!=L&&(M[L]=ma(M[L]||P,i[N],u,f));return vn(Ir(M,1),u,f)}function ic(i,u,f){for(var b=-1,L=i.length,M=u.length,P={};++b<L;){var N=b<M?u[b]:n;f(P,i[b],N)}return P}function oc(i){return fr(i)?i:[]}function Bl(i){return typeof i=="function"?i:On}function Vn(i,u){return ct(i)?i:C(i,u)?[i]:cr(Rt(i))}var pf=dt;function ho(i,u,f){var b=i.length;return f=f===n?b:f,!u&&f>=b?i:Ln(i,u,f)}var Ma=q1||function(i){return Zt.clearTimeout(i)};function ac(i,u){if(u)return i.slice();var f=i.length,b=T0?T0(f):new i.constructor(f);return i.copy(b),b}function Wl(i){var u=new i.constructor(i.byteLength);return new ko(u).set(new ko(i)),u}function gf(i,u){var f=u?Wl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function sc(i){var u=new i.constructor(i.source,Lo.exec(i));return u.lastIndex=i.lastIndex,u}function J0(i){return qt?Ct(qt.call(i)):{}}function Q0(i,u){var f=u?Wl(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function lc(i,u){if(i!==u){var f=i!==n,b=i===null,L=i===i,M=Zn(i),P=u!==n,N=u===null,V=u===u,ie=Zn(u);if(!N&&!ie&&!M&&i>u||M&&P&&V&&!N&&!ie||b&&P&&V||!f&&V||!L)return 1;if(!b&&!M&&!ie&&i<u||ie&&f&&L&&!b&&!M||N&&f&&L||!P&&L||!V)return-1}return 0}function ed(i,u,f){for(var b=-1,L=i.criteria,M=u.criteria,P=L.length,N=f.length;++b<P;){var V=lc(L[b],M[b]);if(V){if(b>=N)return V;var ie=f[b];return V*(ie=="desc"?-1:1)}}return i.index-u.index}function td(i,u,f,b){for(var L=-1,M=i.length,P=f.length,N=-1,V=u.length,ie=Gt(M-P,0),oe=G(V+ie),de=!b;++N<V;)oe[N]=u[N];for(;++L<P;)(de||L<M)&&(oe[f[L]]=i[L]);for(;ie--;)oe[N++]=i[L++];return oe}function Ul(i,u,f,b){for(var L=-1,M=i.length,P=-1,N=f.length,V=-1,ie=u.length,oe=Gt(M-N,0),de=G(oe+ie),_e=!b;++L<oe;)de[L]=i[L];for(var He=L;++V<ie;)de[He+V]=u[V];for(;++P<N;)(_e||L<M)&&(de[He+f[P]]=i[L++]);return de}function yr(i,u){var f=-1,b=i.length;for(u||(u=G(b));++f<b;)u[f]=i[f];return u}function an(i,u,f,b){var L=!f;f||(f={});for(var M=-1,P=u.length;++M<P;){var N=u[M],V=b?b(f[N],i[N],N,f,i):n;V===n&&(V=i[N]),L?ai(f,N,V):vs(f,N,V)}return f}function vf(i,u){return an(i,hc(i),u)}function rd(i,u){return an(i,hd(i),u)}function Vl(i,u){return function(f,b){var L=ct(f)?F1:qu,M=u?u():{};return L(f,i,Ve(b,2),M)}}function Ta(i){return dt(function(u,f){var b=-1,L=f.length,M=L>1?f[L-1]:n,P=L>2?f[2]:n;for(M=i.length>3&&typeof M=="function"?(L--,M):n,P&&y(f[0],f[1],P)&&(M=L<3?n:M,L=1),u=Ct(u);++b<L;){var N=f[b];N&&i(u,N,b,M)}return u})}function nd(i,u){return function(f,b){if(f==null)return f;if(!Mn(f))return i(f,b);for(var L=f.length,M=u?L:-1,P=Ct(f);(u?M--:++M<L)&&b(P[M],M,P)!==!1;);return f}}function id(i){return function(u,f,b){for(var L=-1,M=Ct(u),P=b(u),N=P.length;N--;){var V=P[i?N:++L];if(f(M[V],V,M)===!1)break}return u}}function od(i,u,f){var b=u&ge,L=Ea(i);function M(){var P=this&&this!==Zt&&this instanceof M?L:i;return P.apply(b?f:this,arguments)}return M}function ad(i){return function(u){u=Rt(u);var f=Bn(u)?xn(u):n,b=f?f[0]:u.charAt(0),L=f?ho(f,1).join(""):u.slice(1);return b[i]()+L}}function Oa(i){return function(u){return ku(Rp(Np(u).replace(Su,"")),i,"")}}function Ea(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ii(i.prototype),b=i.apply(f,u);return er(b)?b:f}}function uc(i,u,f){var b=Ea(i);function L(){for(var M=arguments.length,P=G(M),N=M,V=Ia(L);N--;)P[N]=arguments[N];var ie=M<3&&P[0]!==V&&P[M-1]!==V?[]:ji(P,V);if(M-=ie.length,M<f)return ud(i,u,Ls,L.placeholder,n,P,ie,n,n,f-M);var oe=this&&this!==Zt&&this instanceof L?b:i;return fn(oe,this,P)}return L}function cc(i){return function(u,f,b){var L=Ct(u);if(!Mn(u)){var M=Ve(f,3);u=Vr(u),f=function(N){return M(L[N],N,L)}}var P=i(u,f,b);return P>-1?L[M?u[P]:P]:n}}function sd(i){return _i(function(u){var f=u.length,b=f,L=Yr.prototype.thru;for(i&&u.reverse();b--;){var M=u[b];if(typeof M!="function")throw new on(h);if(L&&!P&&Os(M)=="wrapper")var P=new Yr([],!0)}for(b=P?b:f;++b<f;){M=u[b];var N=Os(M),V=N=="wrapper"?St(M):n;V&&I(V[0])&&V[1]==(De|be|Oe|je)&&!V[4].length&&V[9]==1?P=P[Os(V[0])].apply(P,V[3]):P=M.length==1&&I(M)?P[N]():P.thru(M)}return function(){var ie=arguments,oe=ie[0];if(P&&ie.length==1&&ct(oe))return P.plant(oe).value();for(var de=0,_e=f?u[de].apply(this,ie):oe;++de<f;)_e=u[de].call(this,_e);return _e}})}function Ls(i,u,f,b,L,M,P,N,V,ie){var oe=u&De,de=u&ge,_e=u&Te,He=u&(be|ve),Xe=u&Ye,ht=_e?n:Ea(i);function Je(){for(var mt=arguments.length,wt=G(mt),Gn=mt;Gn--;)wt[Gn]=arguments[Gn];if(He)var bn=Ia(Je),qn=V1(wt,bn);if(b&&(wt=td(wt,b,L,He)),M&&(wt=Ul(wt,M,P,He)),mt-=qn,He&&mt<ie){var hr=ji(wt,bn);return ud(i,u,Ls,Je.placeholder,f,wt,hr,N,V,ie-mt)}var Oi=de?f:this,qo=_e?Oi[i]:i;return mt=wt.length,N?wt=ut(wt,N):Xe&&mt>1&&wt.reverse(),oe&&V<mt&&(wt.length=V),this&&this!==Zt&&this instanceof Je&&(qo=ht||Ea(qo)),qo.apply(Oi,wt)}return Je}function Bo(i,u){return function(f,b){return Pl(f,i,u(b),{})}}function Ss(i,u){return function(f,b){var L;if(f===n&&b===n)return u;if(f!==n&&(L=f),b!==n){if(L===n)return b;typeof f=="string"||typeof b=="string"?(f=Rr(f),b=Rr(b)):(f=nc(f),b=nc(b)),L=i(f,b)}return L}}function ka(i){return _i(function(u){return u=At(u,Kr(Ve())),dt(function(f){var b=this;return i(u,function(L){return fn(L,b,f)})})})}function Zl(i,u){u=u===n?" ":Rr(u);var f=u.length;if(f<2)return f?tc(u,i):u;var b=tc(u,pa(i/Oo(u)));return Bn(u)?ho(xn(b),0,i).join(""):b.slice(0,i)}function bf(i,u,f,b){var L=u&ge,M=Ea(i);function P(){for(var N=-1,V=arguments.length,ie=-1,oe=b.length,de=G(oe+V),_e=this&&this!==Zt&&this instanceof P?M:i;++ie<oe;)de[ie]=b[ie];for(;V--;)de[ie++]=arguments[++N];return fn(_e,L?f:this,de)}return P}function ld(i){return function(u,f,b){return b&&typeof b!="number"&&y(u,f,b)&&(f=b=n),u=Go(u),f===n?(f=u,u=0):f=Go(f),b=b===n?u<f?1:-1:Go(b),Y0(u,f,b,i)}}function Dt(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=ui(u),f=ui(f)),i(u,f)}}function ud(i,u,f,b,L,M,P,N,V,ie){var oe=u&be,de=oe?P:n,_e=oe?n:P,He=oe?M:n,Xe=oe?n:M;u|=oe?Oe:$e,u&=~(oe?$e:Oe),u&Ie||(u&=~(ge|Te));var ht=[i,u,L,He,de,Xe,_e,N,V,ie],Je=f.apply(n,ht);return I(i)&&rr(Je,ht),Je.placeholder=b,Br(Je,i,u)}function _s(i){var u=ur[i];return function(f,b){if(f=ui(f),b=b==null?0:Tr(ft(b),292),b&&O0(f)){var L=(Rt(f)+"e").split("e"),M=u(L[0]+"e"+(+L[1]+b));return L=(Rt(M)+"e").split("e"),+(L[0]+"e"+(+L[1]-b))}return u(f)}}var Ms=Po&&1/ml(new Po([,-0]))[1]==ue?function(i){return new Po(i)}:Ef;function Sn(i){return function(u){var f=Fr(u);return f==tr?bl(u):f==it?x0(u):Ci(u,i(u))}}function _n(i,u,f,b,L,M,P,N){var V=u&Te;if(!V&&typeof i!="function")throw new on(h);var ie=b?b.length:0;if(ie||(u&=~(Oe|$e),b=L=n),P=P===n?P:Gt(ft(P),0),N=N===n?N:ft(N),ie-=L?L.length:0,u&$e){var oe=b,de=L;b=L=n}var _e=V?n:St(i),He=[i,u,f,b,L,oe,de,M,P,N];if(_e&&xe(He,_e),i=He[0],u=He[1],f=He[2],b=He[3],L=He[4],N=He[9]=He[9]===n?V?0:i.length:Gt(He[9]-ie,0),!N&&u&(be|ve)&&(u&=~(be|ve)),!u||u==ge)var Xe=od(i,u,f);else u==be||u==ve?Xe=uc(i,u,N):(u==Oe||u==(ge|Oe))&&!L.length?Xe=bf(i,u,f,b):Xe=Ls.apply(n,He);var ht=_e?ws:rr;return Br(ht(Xe,He),i,u)}function Gl(i,u,f,b){return i===n||Ti(i,Xi[f])&&!ot.call(b,f)?u:i}function dc(i,u,f,b,L,M){return er(i)&&er(u)&&(M.set(u,i),Nl(i,u,n,dc,M),M.delete(u)),i}function cd(i){return gc(i)?n:i}function fc(i,u,f,b,L,M){var P=f&J,N=i.length,V=u.length;if(N!=V&&!(P&&V>N))return!1;var ie=M.get(i),oe=M.get(u);if(ie&&oe)return ie==u&&oe==i;var de=-1,_e=!0,He=f&pe?new kr:n;for(M.set(i,u),M.set(u,i);++de<N;){var Xe=i[de],ht=u[de];if(b)var Je=P?b(ht,Xe,de,u,i,M):b(Xe,ht,de,i,u,M);if(Je!==n){if(Je)continue;_e=!1;break}if(He){if(!_o(u,function(mt,wt){if(!nn(He,wt)&&(Xe===mt||L(Xe,mt,f,b,M)))return He.push(wt)})){_e=!1;break}}else if(!(Xe===ht||L(Xe,ht,f,b,M))){_e=!1;break}}return M.delete(i),M.delete(u),_e}function dd(i,u,f,b,L,M,P){switch(f){case $n:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Lr:return!(i.byteLength!=u.byteLength||!M(new ko(i),new ko(u)));case Ge:case st:case Qe:return Ti(+i,+u);case Ze:return i.name==u.name&&i.message==u.message;case ar:case Z:return i==u+"";case tr:var N=bl;case it:var V=b&J;if(N||(N=ml),i.size!=u.size&&!V)return!1;var ie=P.get(i);if(ie)return ie==u;b|=pe,P.set(i,u);var oe=fc(N(i),N(u),b,L,M,P);return P.delete(i),oe;case se:if(qt)return qt.call(i)==qt.call(u)}return!1}function fd(i,u,f,b,L,M){var P=f&J,N=Ts(i),V=N.length,ie=Ts(u),oe=ie.length;if(V!=oe&&!P)return!1;for(var de=V;de--;){var _e=N[de];if(!(P?_e in u:ot.call(u,_e)))return!1}var He=M.get(i),Xe=M.get(u);if(He&&Xe)return He==u&&Xe==i;var ht=!0;M.set(i,u),M.set(u,i);for(var Je=P;++de<V;){_e=N[de];var mt=i[_e],wt=u[_e];if(b)var Gn=P?b(wt,mt,_e,u,i,M):b(mt,wt,_e,i,u,M);if(!(Gn===n?mt===wt||L(mt,wt,f,b,M):Gn)){ht=!1;break}Je||(Je=_e=="constructor")}if(ht&&!Je){var bn=i.constructor,qn=u.constructor;bn!=qn&&"constructor"in i&&"constructor"in u&&!(typeof bn=="function"&&bn instanceof bn&&typeof qn=="function"&&qn instanceof qn)&&(ht=!1)}return M.delete(i),M.delete(u),ht}function _i(i){return Hr(Fe(i,n,cp),i+"")}function Ts(i){return Ro(i,Vr,hc)}function ql(i){return Ro(i,Tn,hd)}var St=ni?function(i){return ni.get(i)}:Ef;function Os(i){for(var u=i.name+"",f=ba[u],b=ot.call(ba,u)?f.length:0;b--;){var L=f[b],M=L.func;if(M==null||M==i)return L.name}return u}function Ia(i){var u=ot.call(_,"placeholder")?_:i;return u.placeholder}function Ve(){var i=_.iteratee||Tf;return i=i===Tf?Z0:i,arguments.length?i(arguments[0],arguments[1]):i}function jl(i,u){var f=i.__data__;return T(u)?f[typeof u=="string"?"string":"hash"]:f.map}function Aa(i){for(var u=Vr(i),f=u.length;f--;){var b=u[f],L=i[b];u[f]=[b,L,ne(L)]}return u}function Wo(i,u){var f=Nu(i,u);return La(f)?f:n}function Yt(i){var u=ot.call(i,eo),f=i[eo];try{i[eo]=n;var b=!0}catch{}var L=Eo.call(i);return b&&(u?i[eo]=f:delete i[eo]),L}var hc=to?function(i){return i==null?[]:(i=Ct(i),Zi(to(i),function(u){return xl.call(i,u)}))}:kf,hd=to?function(i){for(var u=[];i;)Gi(u,hc(i)),i=fa(i);return u}:kf,Fr=mr;(no&&Fr(new no(new ArrayBuffer(1)))!=$n||va&&Fr(new va)!=tr||Ll&&Fr(Ll.resolve())!=Pr||Po&&Fr(new Po)!=it||hs&&Fr(new hs)!=tt)&&(Fr=function(i){var u=mr(i),f=u==kt?i.constructor:n,b=f?Ht(f):"";if(b)switch(b){case Y1:return $n;case X1:return tr;case J1:return Pr;case Q1:return it;case ef:return tt}return u});function Kl(i,u,f){for(var b=-1,L=f.length;++b<L;){var M=f[b],P=M.size;switch(M.type){case"drop":i+=P;break;case"dropRight":u-=P;break;case"take":u=Tr(u,i+P);break;case"takeRight":i=Gt(i,u-P);break}}return{start:i,end:u}}function e(i){var u=i.match(Ya);return u?u[1].split(Ui):[]}function r(i,u,f){u=Vn(u,i);for(var b=-1,L=u.length,M=!1;++b<L;){var P=$t(u[b]);if(!(M=i!=null&&f(i,P)))break;i=i[P]}return M||++b!=L?M:(L=i==null?0:i.length,!!L&&yd(L)&&m(P,L)&&(ct(i)||Es(i)))}function s(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function a(i){return typeof i.constructor=="function"&&!j(i)?ii(fa(i)):{}}function d(i,u,f){var b=i.constructor;switch(u){case Lr:return Wl(i);case Ge:case st:return new b(+i);case $n:return gf(i,f);case Gr:case Ut:case bi:case Dr:case Pn:case We:case Bi:case Sr:case qe:return Q0(i,f);case tr:return new b;case Qe:case Z:return new b(i);case ar:return sc(i);case it:return new b;case se:return J0(i)}}function p(i,u){var f=u.length;if(!f)return i;var b=f-1;return u[b]=(f>1?"& ":"")+u[b],u=u.join(f>2?", ":" "),i.replace(nl,`{
|
|
1629
|
+
*/Gd.exports;(function(o,t){(function(){var n,l="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",x="Invalid `variable` option passed into `_.template`",z="__lodash_hash_undefined__",S=500,E="__lodash_placeholder__",D=1,B=2,R=4,J=1,pe=2,ge=1,Te=2,Ie=4,be=8,ve=16,Oe=32,$e=64,De=128,je=256,Ye=512,Ce=30,le="...",Q=800,$=16,O=1,k=2,Y=3,ue=1/0,Ae=9007199254740991,et=17976931348623157e292,pt=0/0,yt=4294967295,or=yt-1,Mt=yt>>>1,xt=[["ary",De],["bind",ge],["bindKey",Te],["curry",be],["curryRight",ve],["flip",Ye],["partial",Oe],["partialRight",$e],["rearg",je]],rt="[object Arguments]",ze="[object Array]",Ne="[object AsyncFunction]",Ge="[object Boolean]",st="[object Date]",lt="[object DOMException]",Ze="[object Error]",Vt="[object Function]",Zr="[object GeneratorFunction]",tr="[object Map]",Qe="[object Number]",bt="[object Null]",Et="[object Object]",Pr="[object Promise]",en="[object Proxy]",ar="[object RegExp]",it="[object Set]",Z="[object String]",se="[object Symbol]",K="[object Undefined]",tt="[object WeakMap]",sr="[object WeakSet]",Lr="[object ArrayBuffer]",$n="[object DataView]",Gr="[object Float32Array]",Ut="[object Float64Array]",bi="[object Int8Array]",Dr="[object Int16Array]",Pn="[object Int32Array]",We="[object Uint8Array]",Wi="[object Uint8ClampedArray]",Sr="[object Uint16Array]",qe="[object Uint32Array]",Jt=/\b__p \+= '';/g,na=/\b(__p \+=) '' \+/g,gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dn=/&(?:amp|lt|gt|quot|#39);/g,vr=/[&<>"']/g,ia=RegExp(Dn.source),ln=RegExp(vr.source),wo=/<%-([\s\S]+?)%>/g,Ui=/<%([\s\S]+?)%>/g,ja=/<%=([\s\S]+?)%>/g,Ka=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qr=/^\w*$/,rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/[\\^$.*+?()[\]{}|]/g,Xn=RegExp(xo.source),zo=/^\s+/,nl=/\s/,il=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ya=/\{\n\/\* \[wrapped with (.+)\] \*/,Vi=/,? & /,Cn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,un=/[()=,{}\[\]\/\s]/,ol=/\\(\\)?/g,mi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lo=/\w*$/,oa=/^[-+]0x[0-9a-f]+$/i,Nn=/^0b[01]+$/i,Rn=/^\[object .+?Constructor\]$/,cn=/^0o[0-7]+$/i,Xa=/^(?:0|[1-9]\d*)$/,Ja=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bt=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,dn="\\ud800-\\udfff",Qa="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",zt="\\u20d0-\\u20ff",Fn=Qa+tn+zt,Zi="\\u2700-\\u27bf",aa="a-z\\xdf-\\xf6\\xf8-\\xff",ae="\\xac\\xb1\\xd7\\xf7",w="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",A="\\u2000-\\u206f",te=" \\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",ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ke="\\ufe0e\\ufe0f",gt=ae+w+A+te,we="['’]",_r="["+dn+"]",rn="["+gt+"]",yi="["+Fn+"]",Hn="\\d+",t0="["+Zi+"]",xu="["+aa+"]",sa="[^"+dn+gt+Hn+Zi+aa+ce+"]",es="\\ud83c[\\udffb-\\udfff]",r0="(?:"+yi+"|"+es+")",al="[^"+dn+"]",sl="(?:\\ud83c[\\udde6-\\uddff]){2}",ll="[\\ud800-\\udbff][\\udc00-\\udfff]",So="["+ce+"]",zu="\\u200d",n0="(?:"+xu+"|"+sa+")",I1="(?:"+So+"|"+sa+")",Lu="(?:"+we+"(?:d|ll|m|re|s|t|ve))?",Jn="(?:"+we+"(?:D|LL|M|RE|S|T|VE))?",i0=r0+"?",o0="["+Ke+"]?",ul="(?:"+zu+"(?:"+[al,sl,ll].join("|")+")"+o0+i0+")*",ts="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",A1="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",a0=o0+i0+ul,$1="(?:"+[t0,sl,ll].join("|")+")"+a0,P1="(?:"+[al+yi+"?",yi,sl,ll,_r].join("|")+")",Su=RegExp(we,"g"),s0=RegExp(yi,"g"),_u=RegExp(es+"(?="+es+")|"+P1+a0,"g"),l0=RegExp([So+"?"+xu+"+"+Lu+"(?="+[rn,So,"$"].join("|")+")",I1+"+"+Jn+"(?="+[rn,So+n0,"$"].join("|")+")",So+"?"+n0+"+"+Lu,So+"+"+Jn,A1,ts,Hn,$1].join("|"),"g"),u0=RegExp("["+zu+dn+Fn+Ke+"]"),cl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dl=["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"],Mu=-1,Wt={};Wt[Gr]=Wt[Ut]=Wt[bi]=Wt[Dr]=Wt[Pn]=Wt[We]=Wt[Wi]=Wt[Sr]=Wt[qe]=!0,Wt[rt]=Wt[ze]=Wt[Lr]=Wt[Ge]=Wt[$n]=Wt[st]=Wt[Ze]=Wt[Vt]=Wt[tr]=Wt[Qe]=Wt[Et]=Wt[ar]=Wt[it]=Wt[Z]=Wt[tt]=!1;var Ft={};Ft[rt]=Ft[ze]=Ft[Lr]=Ft[$n]=Ft[Ge]=Ft[st]=Ft[Gr]=Ft[Ut]=Ft[bi]=Ft[Dr]=Ft[Pn]=Ft[tr]=Ft[Qe]=Ft[Et]=Ft[ar]=Ft[it]=Ft[Z]=Ft[se]=Ft[We]=Ft[Wi]=Ft[Sr]=Ft[qe]=!0,Ft[Ze]=Ft[Vt]=Ft[tt]=!1;var fl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},D1={"&":"&","<":"<",">":">",'"':""","'":"'"},c0={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},N1=parseFloat,R1=parseInt,hl=typeof iu=="object"&&iu&&iu.Object===Object&&iu,d0=typeof self=="object"&&self&&self.Object===Object&&self,Zt=hl||d0||Function("return this")(),rs=t&&!t.nodeType&&t,jr=rs&&!0&&o&&!o.nodeType&&o,ns=jr&&jr.exports===rs,is=ns&&hl.process,Mr=function(){try{var U=jr&&jr.require&&jr.require("util").types;return U||is&&is.binding&&is.binding("util")}catch{}}(),f0=Mr&&Mr.isArrayBuffer,h0=Mr&&Mr.isDate,p0=Mr&&Mr.isMap,g0=Mr&&Mr.isRegExp,Tu=Mr&&Mr.isSet,Ou=Mr&&Mr.isTypedArray;function fn(U,re,G){switch(G.length){case 0:return U.call(re);case 1:return U.call(re,G[0]);case 2:return U.call(re,G[0],G[1]);case 3:return U.call(re,G[0],G[1],G[2])}return U.apply(re,G)}function F1(U,re,G,ke){for(var nt=-1,Tt=U==null?0:U.length;++nt<Tt;){var ur=U[nt];re(ke,ur,G(ur),U)}return ke}function wn(U,re){for(var G=-1,ke=U==null?0:U.length;++G<ke&&re(U[G],G,U)!==!1;);return U}function H1(U,re){for(var G=U==null?0:U.length;G--&&re(U[G],G,U)!==!1;);return U}function ku(U,re){for(var G=-1,ke=U==null?0:U.length;++G<ke;)if(!re(U[G],G,U))return!1;return!0}function Gi(U,re){for(var G=-1,ke=U==null?0:U.length,nt=0,Tt=[];++G<ke;){var ur=U[G];re(ur,G,U)&&(Tt[nt++]=ur)}return Tt}function os(U,re){var G=U==null?0:U.length;return!!G&&Mo(U,re,0)>-1}function la(U,re,G){for(var ke=-1,nt=U==null?0:U.length;++ke<nt;)if(G(re,U[ke]))return!0;return!1}function At(U,re){for(var G=-1,ke=U==null?0:U.length,nt=Array(ke);++G<ke;)nt[G]=re(U[G],G,U);return nt}function qi(U,re){for(var G=-1,ke=re.length,nt=U.length;++G<ke;)U[nt+G]=re[G];return U}function Eu(U,re,G,ke){var nt=-1,Tt=U==null?0:U.length;for(ke&&Tt&&(G=U[++nt]);++nt<Tt;)G=re(G,U[nt],nt,U);return G}function B1(U,re,G,ke){var nt=U==null?0:U.length;for(ke&&nt&&(G=U[--nt]);nt--;)G=re(G,U[nt],nt,U);return G}function _o(U,re){for(var G=-1,ke=U==null?0:U.length;++G<ke;)if(re(U[G],G,U))return!0;return!1}var lr=Au("length");function W1(U){return U.split("")}function v0(U){return U.match(Cn)||[]}function ua(U,re,G){var ke;return G(U,function(nt,Tt,ur){if(re(nt,Tt,ur))return ke=Tt,!1}),ke}function pl(U,re,G,ke){for(var nt=U.length,Tt=G+(ke?1:-1);ke?Tt--:++Tt<nt;)if(re(U[Tt],Tt,U))return Tt;return-1}function Mo(U,re,G){return re===re?z0(U,re,G):pl(U,gl,G)}function U1(U,re,G,ke){for(var nt=G-1,Tt=U.length;++nt<Tt;)if(ke(U[nt],re))return nt;return-1}function gl(U){return U!==U}function Iu(U,re){var G=U==null?0:U.length;return G?Du(U,re)/G:pt}function Au(U){return function(re){return re==null?n:re[U]}}function $u(U){return function(re){return U==null?n:U[re]}}function Pu(U,re,G,ke,nt){return nt(U,function(Tt,ur,Ct){G=ke?(ke=!1,Tt):re(G,Tt,ur,Ct)}),G}function b0(U,re){var G=U.length;for(U.sort(re);G--;)U[G]=U[G].value;return U}function Du(U,re){for(var G,ke=-1,nt=U.length;++ke<nt;){var Tt=re(U[ke]);Tt!==n&&(G=G===n?Tt:G+Tt)}return G}function To(U,re){for(var G=-1,ke=Array(U);++G<U;)ke[G]=re(G);return ke}function Ci(U,re){return At(re,function(G){return[G,U[G]]})}function as(U){return U&&U.slice(0,Cl(U)+1).replace(zo,"")}function Kr(U){return function(re){return U(re)}}function vl(U,re){return At(re,function(G){return U[G]})}function nn(U,re){return U.has(re)}function ji(U,re){for(var G=-1,ke=U.length;++G<ke&&Mo(re,U[G],0)>-1;);return G}function bl(U,re){for(var G=U.length;G--&&Mo(re,U[G],0)>-1;);return G}function V1(U,re){for(var G=U.length,ke=0;G--;)U[G]===re&&++ke;return ke}var m0=$u(fl),Z1=$u(D1);function y0(U){return"\\"+Qn[U]}function Nu(U,re){return U==null?n:U[re]}function Bn(U){return u0.test(U)}function ei(U){return cl.test(U)}function C0(U){for(var re,G=[];!(re=U.next()).done;)G.push(re.value);return G}function ml(U){var re=-1,G=Array(U.size);return U.forEach(function(ke,nt){G[++re]=[nt,ke]}),G}function w0(U,re){return function(G){return U(re(G))}}function Ki(U,re){for(var G=-1,ke=U.length,nt=0,Tt=[];++G<ke;){var ur=U[G];(ur===re||ur===E)&&(U[G]=E,Tt[nt++]=G)}return Tt}function yl(U){var re=-1,G=Array(U.size);return U.forEach(function(ke){G[++re]=ke}),G}function x0(U){var re=-1,G=Array(U.size);return U.forEach(function(ke){G[++re]=[ke,ke]}),G}function z0(U,re,G){for(var ke=G-1,nt=U.length;++ke<nt;)if(U[ke]===re)return ke;return-1}function ss(U,re,G){for(var ke=G+1;ke--;)if(U[ke]===re)return ke;return ke}function Oo(U){return Bn(U)?L0(U):lr(U)}function xn(U){return Bn(U)?xl(U):W1(U)}function Cl(U){for(var re=U.length;re--&&nl.test(U.charAt(re)););return re}var wl=$u(c0);function L0(U){for(var re=_u.lastIndex=0;_u.test(U);)++re;return re}function xl(U){return U.match(_u)||[]}function Wn(U){return U.match(l0)||[]}var S0=function U(re){re=re==null?Zt:Yi.defaults(Zt.Object(),re,Yi.pick(Zt,dl));var G=re.Array,ke=re.Date,nt=re.Error,Tt=re.Function,ur=re.Math,Ct=re.Object,Xi=re.RegExp,ca=re.String,on=re.TypeError,da=G.prototype,_0=Tt.prototype,Ji=Ct.prototype,ti=re["__core-js_shared__"],ri=_0.toString,ot=Ji.hasOwnProperty,Qi=0,wi=function(){var i=/[^.]+$/.exec(ti&&ti.keys&&ti.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),ko=Ji.toString,G1=ri.call(Ct),M0=Zt._,ls=Xi("^"+ri.call(ot).replace(xo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),us=ns?re.Buffer:n,xi=re.Symbol,Eo=re.Uint8Array,T0=us?us.allocUnsafe:n,fa=w0(Ct.getPrototypeOf,Ct),Ru=Ct.create,zl=Ji.propertyIsEnumerable,ha=da.splice,Io=xi?xi.isConcatSpreadable:n,eo=xi?xi.iterator:n,to=xi?xi.toStringTag:n,Ao=function(){try{var i=Wo(Ct,"defineProperty");return i({},"",{}),i}catch{}}(),q1=re.clearTimeout!==Zt.clearTimeout&&re.clearTimeout,j1=ke&&ke.now!==Zt.Date.now&&ke.now,K1=re.setTimeout!==Zt.setTimeout&&re.setTimeout,pa=ur.ceil,ga=ur.floor,ro=Ct.getOwnPropertySymbols,cs=us?us.isBuffer:n,O0=re.isFinite,Ll=da.join,k0=w0(Ct.keys,Ct),Gt=ur.max,Tr=ur.min,$o=ke.now,ds=re.parseInt,no=ur.random,fs=da.reverse,io=Wo(re,"DataView"),va=Wo(re,"Map"),Sl=Wo(re,"Promise"),Po=Wo(re,"Set"),hs=Wo(re,"WeakMap"),Un=Wo(Ct,"create"),ni=hs&&new hs,ba={},Y1=Ht(io),X1=Ht(va),J1=Ht(Sl),Q1=Ht(Po),ef=Ht(hs),Or=xi?xi.prototype:n,qt=Or?Or.valueOf:n,kr=Or?Or.toString:n;function _(i){if(nr(i)&&!ct(i)&&!(i instanceof vt)){if(i instanceof Yr)return i;if(ot.call(i,"__wrapped__"))return Wr(i)}return new Yr(i)}var ii=function(){function i(){}return function(u){if(!er(u))return{};if(Ru)return Ru(u);i.prototype=u;var f=new i;return i.prototype=n,f}}();function _l(){}function Yr(i,u){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}_.templateSettings={escape:wo,evaluate:Ui,interpolate:ja,variable:"",imports:{_}},_.prototype=_l.prototype,_.prototype.constructor=_,Yr.prototype=ii(_l.prototype),Yr.prototype.constructor=Yr;function vt(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=yt,this.__views__=[]}function tf(){var i=new vt(this.__wrapped__);return i.__actions__=yr(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=yr(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=yr(this.__views__),i}function rf(){if(this.__filtered__){var i=new vt(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function Fu(){var i=this.__wrapped__.value(),u=this.__dir__,f=ct(i),b=u<0,L=f?i.length:0,M=Yl(0,L,this.__views__),P=M.start,N=M.end,V=N-P,ie=b?N:P-1,oe=this.__iteratees__,de=oe.length,_e=0,He=Tr(V,this.__takeCount__);if(!f||!b&&L==V&&He==V)return X0(i,this.__actions__);var Xe=[];e:for(;V--&&_e<He;){ie+=u;for(var ht=-1,Je=i[ie];++ht<de;){var mt=oe[ht],wt=mt.iteratee,Gn=mt.type,bn=wt(Je);if(Gn==k)Je=bn;else if(!bn){if(Gn==O)continue e;break e}}Xe[_e++]=Je}return Xe}vt.prototype=ii(_l.prototype),vt.prototype.constructor=vt;function oo(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Hu(){this.__data__=Un?Un(null):{},this.size=0}function nf(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function Bu(i){var u=this.__data__;if(Un){var f=u[i];return f===z?n:f}return ot.call(u,i)?u[i]:n}function Wu(i){var u=this.__data__;return Un?u[i]!==n:ot.call(u,i)}function E0(i,u){var f=this.__data__;return this.size+=this.has(i)?0:1,f[i]=Un&&u===n?z:u,this}oo.prototype.clear=Hu,oo.prototype.delete=nf,oo.prototype.get=Bu,oo.prototype.has=Wu,oo.prototype.set=E0;function oi(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function Uu(){this.__data__=[],this.size=0}function I0(i){var u=this.__data__,f=Do(u,i);if(f<0)return!1;var b=u.length-1;return f==b?u.pop():ha.call(u,f,1),--this.size,!0}function ps(i){var u=this.__data__,f=Do(u,i);return f<0?n:u[f][1]}function of(i){return Do(this.__data__,i)>-1}function Ml(i,u){var f=this.__data__,b=Do(f,i);return b<0?(++this.size,f.push([i,u])):f[b][1]=u,this}oi.prototype.clear=Uu,oi.prototype.delete=I0,oi.prototype.get=ps,oi.prototype.has=of,oi.prototype.set=Ml;function Qt(i){var u=-1,f=i==null?0:i.length;for(this.clear();++u<f;){var b=i[u];this.set(b[0],b[1])}}function A0(){this.size=0,this.__data__={hash:new oo,map:new(va||oi),string:new oo}}function af(i){var u=Kl(this,i).delete(i);return this.size-=u?1:0,u}function $0(i){return Kl(this,i).get(i)}function hn(i){return Kl(this,i).has(i)}function Lt(i,u){var f=Kl(this,i),b=f.size;return f.set(i,u),this.size+=f.size==b?0:1,this}Qt.prototype.clear=A0,Qt.prototype.delete=af,Qt.prototype.get=$0,Qt.prototype.has=hn,Qt.prototype.set=Lt;function Er(i){var u=-1,f=i==null?0:i.length;for(this.__data__=new Qt;++u<f;)this.add(i[u])}function ao(i){return this.__data__.set(i,z),this}function so(i){return this.__data__.has(i)}Er.prototype.add=Er.prototype.push=ao,Er.prototype.has=so;function zn(i){var u=this.__data__=new oi(i);this.size=u.size}function Vu(){this.__data__=new oi,this.size=0}function P0(i){var u=this.__data__,f=u.delete(i);return this.size=u.size,f}function sf(i){return this.__data__.get(i)}function Zu(i){return this.__data__.has(i)}function gs(i,u){var f=this.__data__;if(f instanceof oi){var b=f.__data__;if(!va||b.length<c-1)return b.push([i,u]),this.size=++f.size,this;f=this.__data__=new Qt(b)}return f.set(i,u),this.size=f.size,this}zn.prototype.clear=Vu,zn.prototype.delete=P0,zn.prototype.get=sf,zn.prototype.has=Zu,zn.prototype.set=gs;function Gu(i,u){var f=ct(i),b=!f&&ks(i),L=!f&&!b&&Da(i),M=!f&&!b&&!L&&Jl(i),P=f||b||L||M,N=P?To(i.length,ca):[],V=N.length;for(var ie in i)(u||ot.call(i,ie))&&!(P&&(ie=="length"||L&&(ie=="offset"||ie=="parent")||M&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||m(ie,V)))&&N.push(ie);return N}function Tl(i){var u=i.length;return u?i[Fl(0,u-1)]:n}function lo(i,u){return Cr(yr(i),No(u,0,i.length))}function D0(i){return Cr(yr(i))}function Ol(i,u,f){(f!==n&&!Ti(i[u],f)||f===n&&!(u in i))&&ai(i,u,f)}function vs(i,u,f){var b=i[u];(!(ot.call(i,u)&&Ti(b,f))||f===n&&!(u in i))&&ai(i,u,f)}function Do(i,u){for(var f=i.length;f--;)if(Ti(i[f][0],u))return f;return-1}function qu(i,u,f,b){return pn(i,function(L,M,P){u(b,L,f(L),P)}),b}function ju(i,u){return i&&an(u,Vr(u),i)}function lf(i,u){return i&&an(u,Tn(u),i)}function ai(i,u,f){u=="__proto__"&&Ao?Ao(i,u,{configurable:!0,enumerable:!0,value:f,writable:!0}):i[u]=f}function Ku(i,u){for(var f=-1,b=u.length,L=G(b),M=i==null;++f<b;)L[f]=M?n:Lf(i,u[f]);return L}function No(i,u,f){return i===i&&(f!==n&&(i=i<=f?i:f),u!==n&&(i=i>=u?i:u)),i}function Xr(i,u,f,b,L,M){var P,N=u&D,V=u&B,ie=u&R;if(f&&(P=L?f(i,b,L,M):f(i)),P!==n)return P;if(!er(i))return i;var oe=ct(i);if(oe){if(P=s(i),!N)return yr(i,P)}else{var de=Fr(i),_e=de==Vt||de==Zr;if(Da(i))return ac(i,N);if(de==Et||de==rt||_e&&!L){if(P=V||_e?{}:a(i),!N)return V?rd(i,lf(P,i)):vf(i,ju(P,i))}else{if(!Ft[de])return L?i:{};P=d(i,de,N)}}M||(M=new zn);var He=M.get(i);if(He)return He;M.set(i,P),Tp(i)?i.forEach(function(Je){P.add(Xr(Je,u,f,Je,i,M))}):_p(i)&&i.forEach(function(Je,mt){P.set(mt,Xr(Je,u,f,mt,i,M))});var Xe=ie?V?jl:Ts:V?Tn:Vr,ht=oe?n:Xe(i);return wn(ht||i,function(Je,mt){ht&&(mt=Je,Je=i[mt]),vs(P,mt,Xr(Je,u,f,mt,i,M))}),P}function N0(i){var u=Vr(i);return function(f){return R0(f,i,u)}}function R0(i,u,f){var b=f.length;if(i==null)return!b;for(i=Ct(i);b--;){var L=f[b],M=u[L],P=i[L];if(P===n&&!(L in i)||!M(P))return!1}return!0}function F0(i,u,f){if(typeof i!="function")throw new on(h);return Nt(function(){i.apply(n,f)},u)}function ma(i,u,f,b){var L=-1,M=os,P=!0,N=i.length,V=[],ie=u.length;if(!N)return V;f&&(u=At(u,Kr(f))),b?(M=la,P=!1):u.length>=c&&(M=nn,P=!1,u=new Er(u));e:for(;++L<N;){var oe=i[L],de=f==null?oe:f(oe);if(oe=b||oe!==0?oe:0,P&&de===de){for(var _e=ie;_e--;)if(u[_e]===de)continue e;V.push(oe)}else M(u,de,b)||V.push(oe)}return V}var pn=nd(gn),kl=nd(Al,!0);function El(i,u){var f=!0;return pn(i,function(b,L,M){return f=!!u(b,L,M),f}),f}function bs(i,u,f){for(var b=-1,L=i.length;++b<L;){var M=i[b],P=u(M);if(P!=null&&(N===n?P===P&&!Zn(P):f(P,N)))var N=P,V=M}return V}function Yu(i,u,f,b){var L=i.length;for(f=ft(f),f<0&&(f=-f>L?0:L+f),b=b===n||b>L?L:ft(b),b<0&&(b+=L),b=f>b?0:kp(b);f<b;)i[f++]=u;return i}function Xu(i,u){var f=[];return pn(i,function(b,L,M){u(b,L,M)&&f.push(b)}),f}function Ir(i,u,f,b,L){var M=-1,P=i.length;for(f||(f=v),L||(L=[]);++M<P;){var N=i[M];u>0&&f(N)?u>1?Ir(N,u-1,f,b,L):qi(L,N):b||(L[L.length]=N)}return L}var Il=id(),br=id(!0);function gn(i,u){return i&&Il(i,u,Vr)}function Al(i,u){return i&&br(i,u,Vr)}function ms(i,u){return Gi(u,function(f){return Zo(i[f])})}function uo(i,u){u=Vn(u,i);for(var f=0,b=u.length;i!=null&&f<b;)i=i[$t(u[f++])];return f&&f==b?i:n}function Ro(i,u,f){var b=u(i);return ct(i)?b:qi(b,f(i))}function mr(i){return i==null?i===n?K:bt:to&&to in Ct(i)?Yt(i):Se(i)}function $l(i,u){return i>u}function H0(i,u){return i!=null&&ot.call(i,u)}function B0(i,u){return i!=null&&u in Ct(i)}function ya(i,u,f){return i>=Tr(u,f)&&i<Gt(u,f)}function Pl(i,u,f){for(var b=f?la:os,L=i[0].length,M=i.length,P=M,N=G(M),V=1/0,ie=[];P--;){var oe=i[P];P&&u&&(oe=At(oe,Kr(u))),V=Tr(oe.length,V),N[P]=!f&&(u||L>=120&&oe.length>=120)?new Er(P&&oe):n}oe=i[0];var de=-1,_e=N[0];e:for(;++de<L&&ie.length<V;){var He=oe[de],Xe=u?u(He):He;if(He=f||He!==0?He:0,!(_e?nn(_e,Xe):b(ie,Xe,f))){for(P=M;--P;){var ht=N[P];if(!(ht?nn(ht,Xe):b(i[P],Xe,f)))continue e}_e&&_e.push(Xe),ie.push(He)}}return ie}function Dl(i,u,f,b){return gn(i,function(L,M,P){u(b,f(L),M,P)}),b}function Ca(i,u,f){u=Vn(u,i),i=Pe(i,u);var b=i==null?i:i[$t(li(u))];return b==null?n:fn(b,i,f)}function wa(i){return nr(i)&&mr(i)==rt}function uf(i){return nr(i)&&mr(i)==Lr}function xa(i){return nr(i)&&mr(i)==st}function za(i,u,f,b,L){return i===u?!0:i==null||u==null||!nr(i)&&!nr(u)?i!==i&&u!==u:W0(i,u,f,b,za,L)}function W0(i,u,f,b,L,M){var P=ct(i),N=ct(u),V=P?ze:Fr(i),ie=N?ze:Fr(u);V=V==rt?Et:V,ie=ie==rt?Et:ie;var oe=V==Et,de=ie==Et,_e=V==ie;if(_e&&Da(i)){if(!Da(u))return!1;P=!0,oe=!1}if(_e&&!oe)return M||(M=new zn),P||Jl(i)?fc(i,u,f,b,L,M):dd(i,u,V,f,b,L,M);if(!(f&J)){var He=oe&&ot.call(i,"__wrapped__"),Xe=de&&ot.call(u,"__wrapped__");if(He||Xe){var ht=He?i.value():i,Je=Xe?u.value():u;return M||(M=new zn),L(ht,Je,f,b,M)}}return _e?(M||(M=new zn),fd(i,u,f,b,L,M)):!1}function U0(i){return nr(i)&&Fr(i)==tr}function Fo(i,u,f,b){var L=f.length,M=L,P=!b;if(i==null)return!M;for(i=Ct(i);L--;){var N=f[L];if(P&&N[2]?N[1]!==i[N[0]]:!(N[0]in i))return!1}for(;++L<M;){N=f[L];var V=N[0],ie=i[V],oe=N[1];if(P&&N[2]){if(ie===n&&!(V in i))return!1}else{var de=new zn;if(b)var _e=b(ie,oe,V,i,u,de);if(!(_e===n?za(oe,ie,J|pe,b,de):_e))return!1}}return!0}function La(i){if(!er(i)||W(i))return!1;var u=Zo(i)?ls:Rn;return u.test(Ht(i))}function ys(i){return nr(i)&&mr(i)==ar}function Cs(i){return nr(i)&&Fr(i)==it}function V0(i){return nr(i)&&yd(i.length)&&!!Wt[mr(i)]}function Z0(i){return typeof i=="function"?i:i==null?On:typeof i=="object"?ct(i)?Ju(i[0],i[1]):G0(i):Bp(i)}function Nl(i){if(!j(i))return k0(i);var u=[];for(var f in Ct(i))ot.call(i,f)&&f!="constructor"&&u.push(f);return u}function co(i){if(!er(i))return ye(i);var u=j(i),f=[];for(var b in i)b=="constructor"&&(u||!ot.call(i,b))||f.push(b);return f}function fo(i,u){return i<u}function Sa(i,u){var f=-1,b=Mn(i)?G(i.length):[];return pn(i,function(L,M,P){b[++f]=u(L,M,P)}),b}function G0(i){var u=Aa(i);return u.length==1&&u[0][2]?he(u[0][0],u[0][1]):function(f){return f===i||Fo(f,i,u)}}function Ju(i,u){return C(i)&&ne(u)?he($t(i),u):function(f){var b=Lf(f,i);return b===n&&b===u?Sf(f,i):za(u,b,J|pe)}}function Rl(i,u,f,b,L){i!==u&&Il(u,function(M,P){if(L||(L=new zn),er(M))cf(i,u,P,f,Rl,b,L);else{var N=b?b(It(i,P),M,P+"",i,u,L):n;N===n&&(N=M),Ol(i,P,N)}},Tn)}function cf(i,u,f,b,L,M,P){var N=It(i,f),V=It(u,f),ie=P.get(V);if(ie){Ol(i,f,ie);return}var oe=M?M(N,V,f+"",i,u,P):n,de=oe===n;if(de){var _e=ct(V),He=!_e&&Da(V),Xe=!_e&&!He&&Jl(V);oe=V,_e||He||Xe?ct(N)?oe=N:fr(N)?oe=yr(N):He?(de=!1,oe=ac(V,!0)):Xe?(de=!1,oe=Q0(V,!0)):oe=[]:gc(V)||ks(V)?(oe=N,ks(N)?oe=Ep(N):(!er(N)||Zo(N))&&(oe=a(V))):de=!1}de&&(P.set(V,oe),L(oe,V,b,M,P),P.delete(V)),Ol(i,f,oe)}function q0(i,u){var f=i.length;if(f)return u+=u<0?f:0,m(u,f)?i[u]:n}function Nr(i,u,f){u.length?u=At(u,function(M){return ct(M)?function(P){return uo(P,M.length===1?M[0]:M)}:M}):u=[On];var b=-1;u=At(u,Kr(Ve()));var L=Sa(i,function(M,P,N){var V=At(u,function(ie){return ie(M)});return{criteria:V,index:++b,value:M}});return b0(L,function(M,P){return ed(M,P,f)})}function j0(i,u){return K0(i,u,function(f,b){return Sf(i,b)})}function K0(i,u,f){for(var b=-1,L=u.length,M={};++b<L;){var P=u[b],N=uo(i,P);f(N,P)&&zi(M,Vn(P,i),N)}return M}function df(i){return function(u){return uo(u,i)}}function Qu(i,u,f,b){var L=b?U1:Mo,M=-1,P=u.length,N=i;for(i===u&&(u=yr(u)),f&&(N=At(i,Kr(f)));++M<P;)for(var V=0,ie=u[M],oe=f?f(ie):ie;(V=L(N,oe,V,b))>-1;)N!==i&&ha.call(N,V,1),ha.call(i,V,1);return i}function ec(i,u){for(var f=i?u.length:0,b=f-1;f--;){var L=u[f];if(f==b||L!==M){var M=L;m(L)?ha.call(i,L,1):zs(i,L)}}return i}function Fl(i,u){return i+ga(no()*(u-i+1))}function Y0(i,u,f,b){for(var L=-1,M=Gt(pa((u-i)/(f||1)),0),P=G(M);M--;)P[b?M:++L]=i,i+=f;return P}function tc(i,u){var f="";if(!i||u<1||u>Ae)return f;do u%2&&(f+=i),u=ga(u/2),u&&(i+=i);while(u);return f}function dt(i,u){return Hr(Fe(i,u,On),i+"")}function ff(i){return Tl(Ql(i))}function ho(i,u){var f=Ql(i);return Cr(f,No(u,0,f.length))}function zi(i,u,f,b){if(!er(i))return i;u=Vn(u,i);for(var L=-1,M=u.length,P=M-1,N=i;N!=null&&++L<M;){var V=$t(u[L]),ie=f;if(V==="__proto__"||V==="constructor"||V==="prototype")return i;if(L!=P){var oe=N[V];ie=b?b(oe,V,N):n,ie===n&&(ie=er(oe)?oe:m(u[L+1])?[]:{})}vs(N,V,ie),N=N[V]}return i}var ws=ni?function(i,u){return ni.set(i,u),i}:On,xs=Ao?function(i,u){return Ao(i,"toString",{configurable:!0,enumerable:!1,value:Mf(u),writable:!0})}:On;function Li(i){return Cr(Ql(i))}function Ln(i,u,f){var b=-1,L=i.length;u<0&&(u=-u>L?0:L+u),f=f>L?L:f,f<0&&(f+=L),L=u>f?0:f-u>>>0,u>>>=0;for(var M=G(L);++b<L;)M[b]=i[b+u];return M}function hf(i,u){var f;return pn(i,function(b,L,M){return f=u(b,L,M),!f}),!!f}function Si(i,u,f){var b=0,L=i==null?b:i.length;if(typeof u=="number"&&u===u&&L<=Mt){for(;b<L;){var M=b+L>>>1,P=i[M];P!==null&&!Zn(P)&&(f?P<=u:P<u)?b=M+1:L=M}return L}return Hl(i,u,On,f)}function Hl(i,u,f,b){var L=0,M=i==null?0:i.length;if(M===0)return 0;u=f(u);for(var P=u!==u,N=u===null,V=Zn(u),ie=u===n;L<M;){var oe=ga((L+M)/2),de=f(i[oe]),_e=de!==n,He=de===null,Xe=de===de,ht=Zn(de);if(P)var Je=b||Xe;else ie?Je=Xe&&(b||_e):N?Je=Xe&&_e&&(b||!He):V?Je=Xe&&_e&&!He&&(b||!ht):He||ht?Je=!1:Je=b?de<=u:de<u;Je?L=oe+1:M=oe}return Tr(M,or)}function rc(i,u){for(var f=-1,b=i.length,L=0,M=[];++f<b;){var P=i[f],N=u?u(P):P;if(!f||!Ti(N,V)){var V=N;M[L++]=P===0?0:P}}return M}function nc(i){return typeof i=="number"?i:Zn(i)?pt:+i}function Rr(i){if(typeof i=="string")return i;if(ct(i))return At(i,Rr)+"";if(Zn(i))return kr?kr.call(i):"";var u=i+"";return u=="0"&&1/i==-ue?"-0":u}function vn(i,u,f){var b=-1,L=os,M=i.length,P=!0,N=[],V=N;if(f)P=!1,L=la;else if(M>=c){var ie=u?null:Ms(i);if(ie)return yl(ie);P=!1,L=nn,V=new Er}else V=u?[]:N;e:for(;++b<M;){var oe=i[b],de=u?u(oe):oe;if(oe=f||oe!==0?oe:0,P&&de===de){for(var _e=V.length;_e--;)if(V[_e]===de)continue e;u&&V.push(de),N.push(oe)}else L(V,de,f)||(V!==N&&V.push(de),N.push(oe))}return N}function zs(i,u){return u=Vn(u,i),i=Pe(i,u),i==null||delete i[$t(li(u))]}function Bl(i,u,f,b){return zi(i,u,f(uo(i,u)),b)}function _a(i,u,f,b){for(var L=i.length,M=b?L:-1;(b?M--:++M<L)&&u(i[M],M,i););return f?Ln(i,b?0:M,b?M+1:L):Ln(i,b?M+1:0,b?L:M)}function X0(i,u){var f=i;return f instanceof vt&&(f=f.value()),Eu(u,function(b,L){return L.func.apply(L.thisArg,qi([b],L.args))},f)}function Ho(i,u,f){var b=i.length;if(b<2)return b?vn(i[0]):[];for(var L=-1,M=G(b);++L<b;)for(var P=i[L],N=-1;++N<b;)N!=L&&(M[L]=ma(M[L]||P,i[N],u,f));return vn(Ir(M,1),u,f)}function ic(i,u,f){for(var b=-1,L=i.length,M=u.length,P={};++b<L;){var N=b<M?u[b]:n;f(P,i[b],N)}return P}function oc(i){return fr(i)?i:[]}function Wl(i){return typeof i=="function"?i:On}function Vn(i,u){return ct(i)?i:C(i,u)?[i]:cr(Rt(i))}var pf=dt;function po(i,u,f){var b=i.length;return f=f===n?b:f,!u&&f>=b?i:Ln(i,u,f)}var Ma=q1||function(i){return Zt.clearTimeout(i)};function ac(i,u){if(u)return i.slice();var f=i.length,b=T0?T0(f):new i.constructor(f);return i.copy(b),b}function Ul(i){var u=new i.constructor(i.byteLength);return new Eo(u).set(new Eo(i)),u}function gf(i,u){var f=u?Ul(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.byteLength)}function sc(i){var u=new i.constructor(i.source,Lo.exec(i));return u.lastIndex=i.lastIndex,u}function J0(i){return qt?Ct(qt.call(i)):{}}function Q0(i,u){var f=u?Ul(i.buffer):i.buffer;return new i.constructor(f,i.byteOffset,i.length)}function lc(i,u){if(i!==u){var f=i!==n,b=i===null,L=i===i,M=Zn(i),P=u!==n,N=u===null,V=u===u,ie=Zn(u);if(!N&&!ie&&!M&&i>u||M&&P&&V&&!N&&!ie||b&&P&&V||!f&&V||!L)return 1;if(!b&&!M&&!ie&&i<u||ie&&f&&L&&!b&&!M||N&&f&&L||!P&&L||!V)return-1}return 0}function ed(i,u,f){for(var b=-1,L=i.criteria,M=u.criteria,P=L.length,N=f.length;++b<P;){var V=lc(L[b],M[b]);if(V){if(b>=N)return V;var ie=f[b];return V*(ie=="desc"?-1:1)}}return i.index-u.index}function td(i,u,f,b){for(var L=-1,M=i.length,P=f.length,N=-1,V=u.length,ie=Gt(M-P,0),oe=G(V+ie),de=!b;++N<V;)oe[N]=u[N];for(;++L<P;)(de||L<M)&&(oe[f[L]]=i[L]);for(;ie--;)oe[N++]=i[L++];return oe}function Vl(i,u,f,b){for(var L=-1,M=i.length,P=-1,N=f.length,V=-1,ie=u.length,oe=Gt(M-N,0),de=G(oe+ie),_e=!b;++L<oe;)de[L]=i[L];for(var He=L;++V<ie;)de[He+V]=u[V];for(;++P<N;)(_e||L<M)&&(de[He+f[P]]=i[L++]);return de}function yr(i,u){var f=-1,b=i.length;for(u||(u=G(b));++f<b;)u[f]=i[f];return u}function an(i,u,f,b){var L=!f;f||(f={});for(var M=-1,P=u.length;++M<P;){var N=u[M],V=b?b(f[N],i[N],N,f,i):n;V===n&&(V=i[N]),L?ai(f,N,V):vs(f,N,V)}return f}function vf(i,u){return an(i,hc(i),u)}function rd(i,u){return an(i,hd(i),u)}function Zl(i,u){return function(f,b){var L=ct(f)?F1:qu,M=u?u():{};return L(f,i,Ve(b,2),M)}}function Ta(i){return dt(function(u,f){var b=-1,L=f.length,M=L>1?f[L-1]:n,P=L>2?f[2]:n;for(M=i.length>3&&typeof M=="function"?(L--,M):n,P&&y(f[0],f[1],P)&&(M=L<3?n:M,L=1),u=Ct(u);++b<L;){var N=f[b];N&&i(u,N,b,M)}return u})}function nd(i,u){return function(f,b){if(f==null)return f;if(!Mn(f))return i(f,b);for(var L=f.length,M=u?L:-1,P=Ct(f);(u?M--:++M<L)&&b(P[M],M,P)!==!1;);return f}}function id(i){return function(u,f,b){for(var L=-1,M=Ct(u),P=b(u),N=P.length;N--;){var V=P[i?N:++L];if(f(M[V],V,M)===!1)break}return u}}function od(i,u,f){var b=u&ge,L=ka(i);function M(){var P=this&&this!==Zt&&this instanceof M?L:i;return P.apply(b?f:this,arguments)}return M}function ad(i){return function(u){u=Rt(u);var f=Bn(u)?xn(u):n,b=f?f[0]:u.charAt(0),L=f?po(f,1).join(""):u.slice(1);return b[i]()+L}}function Oa(i){return function(u){return Eu(Fp(Rp(u).replace(Su,"")),i,"")}}function ka(i){return function(){var u=arguments;switch(u.length){case 0:return new i;case 1:return new i(u[0]);case 2:return new i(u[0],u[1]);case 3:return new i(u[0],u[1],u[2]);case 4:return new i(u[0],u[1],u[2],u[3]);case 5:return new i(u[0],u[1],u[2],u[3],u[4]);case 6:return new i(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new i(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var f=ii(i.prototype),b=i.apply(f,u);return er(b)?b:f}}function uc(i,u,f){var b=ka(i);function L(){for(var M=arguments.length,P=G(M),N=M,V=Ia(L);N--;)P[N]=arguments[N];var ie=M<3&&P[0]!==V&&P[M-1]!==V?[]:Ki(P,V);if(M-=ie.length,M<f)return ud(i,u,Ls,L.placeholder,n,P,ie,n,n,f-M);var oe=this&&this!==Zt&&this instanceof L?b:i;return fn(oe,this,P)}return L}function cc(i){return function(u,f,b){var L=Ct(u);if(!Mn(u)){var M=Ve(f,3);u=Vr(u),f=function(N){return M(L[N],N,L)}}var P=i(u,f,b);return P>-1?L[M?u[P]:P]:n}}function sd(i){return _i(function(u){var f=u.length,b=f,L=Yr.prototype.thru;for(i&&u.reverse();b--;){var M=u[b];if(typeof M!="function")throw new on(h);if(L&&!P&&Os(M)=="wrapper")var P=new Yr([],!0)}for(b=P?b:f;++b<f;){M=u[b];var N=Os(M),V=N=="wrapper"?St(M):n;V&&I(V[0])&&V[1]==(De|be|Oe|je)&&!V[4].length&&V[9]==1?P=P[Os(V[0])].apply(P,V[3]):P=M.length==1&&I(M)?P[N]():P.thru(M)}return function(){var ie=arguments,oe=ie[0];if(P&&ie.length==1&&ct(oe))return P.plant(oe).value();for(var de=0,_e=f?u[de].apply(this,ie):oe;++de<f;)_e=u[de].call(this,_e);return _e}})}function Ls(i,u,f,b,L,M,P,N,V,ie){var oe=u&De,de=u&ge,_e=u&Te,He=u&(be|ve),Xe=u&Ye,ht=_e?n:ka(i);function Je(){for(var mt=arguments.length,wt=G(mt),Gn=mt;Gn--;)wt[Gn]=arguments[Gn];if(He)var bn=Ia(Je),qn=V1(wt,bn);if(b&&(wt=td(wt,b,L,He)),M&&(wt=Vl(wt,M,P,He)),mt-=qn,He&&mt<ie){var hr=Ki(wt,bn);return ud(i,u,Ls,Je.placeholder,f,wt,hr,N,V,ie-mt)}var Oi=de?f:this,qo=_e?Oi[i]:i;return mt=wt.length,N?wt=ut(wt,N):Xe&&mt>1&&wt.reverse(),oe&&V<mt&&(wt.length=V),this&&this!==Zt&&this instanceof Je&&(qo=ht||ka(qo)),qo.apply(Oi,wt)}return Je}function Bo(i,u){return function(f,b){return Dl(f,i,u(b),{})}}function Ss(i,u){return function(f,b){var L;if(f===n&&b===n)return u;if(f!==n&&(L=f),b!==n){if(L===n)return b;typeof f=="string"||typeof b=="string"?(f=Rr(f),b=Rr(b)):(f=nc(f),b=nc(b)),L=i(f,b)}return L}}function Ea(i){return _i(function(u){return u=At(u,Kr(Ve())),dt(function(f){var b=this;return i(u,function(L){return fn(L,b,f)})})})}function Gl(i,u){u=u===n?" ":Rr(u);var f=u.length;if(f<2)return f?tc(u,i):u;var b=tc(u,pa(i/Oo(u)));return Bn(u)?po(xn(b),0,i).join(""):b.slice(0,i)}function bf(i,u,f,b){var L=u&ge,M=ka(i);function P(){for(var N=-1,V=arguments.length,ie=-1,oe=b.length,de=G(oe+V),_e=this&&this!==Zt&&this instanceof P?M:i;++ie<oe;)de[ie]=b[ie];for(;V--;)de[ie++]=arguments[++N];return fn(_e,L?f:this,de)}return P}function ld(i){return function(u,f,b){return b&&typeof b!="number"&&y(u,f,b)&&(f=b=n),u=Go(u),f===n?(f=u,u=0):f=Go(f),b=b===n?u<f?1:-1:Go(b),Y0(u,f,b,i)}}function Dt(i){return function(u,f){return typeof u=="string"&&typeof f=="string"||(u=ui(u),f=ui(f)),i(u,f)}}function ud(i,u,f,b,L,M,P,N,V,ie){var oe=u&be,de=oe?P:n,_e=oe?n:P,He=oe?M:n,Xe=oe?n:M;u|=oe?Oe:$e,u&=~(oe?$e:Oe),u&Ie||(u&=~(ge|Te));var ht=[i,u,L,He,de,Xe,_e,N,V,ie],Je=f.apply(n,ht);return I(i)&&rr(Je,ht),Je.placeholder=b,Br(Je,i,u)}function _s(i){var u=ur[i];return function(f,b){if(f=ui(f),b=b==null?0:Tr(ft(b),292),b&&O0(f)){var L=(Rt(f)+"e").split("e"),M=u(L[0]+"e"+(+L[1]+b));return L=(Rt(M)+"e").split("e"),+(L[0]+"e"+(+L[1]-b))}return u(f)}}var Ms=Po&&1/yl(new Po([,-0]))[1]==ue?function(i){return new Po(i)}:kf;function Sn(i){return function(u){var f=Fr(u);return f==tr?ml(u):f==it?x0(u):Ci(u,i(u))}}function _n(i,u,f,b,L,M,P,N){var V=u&Te;if(!V&&typeof i!="function")throw new on(h);var ie=b?b.length:0;if(ie||(u&=~(Oe|$e),b=L=n),P=P===n?P:Gt(ft(P),0),N=N===n?N:ft(N),ie-=L?L.length:0,u&$e){var oe=b,de=L;b=L=n}var _e=V?n:St(i),He=[i,u,f,b,L,oe,de,M,P,N];if(_e&&xe(He,_e),i=He[0],u=He[1],f=He[2],b=He[3],L=He[4],N=He[9]=He[9]===n?V?0:i.length:Gt(He[9]-ie,0),!N&&u&(be|ve)&&(u&=~(be|ve)),!u||u==ge)var Xe=od(i,u,f);else u==be||u==ve?Xe=uc(i,u,N):(u==Oe||u==(ge|Oe))&&!L.length?Xe=bf(i,u,f,b):Xe=Ls.apply(n,He);var ht=_e?ws:rr;return Br(ht(Xe,He),i,u)}function ql(i,u,f,b){return i===n||Ti(i,Ji[f])&&!ot.call(b,f)?u:i}function dc(i,u,f,b,L,M){return er(i)&&er(u)&&(M.set(u,i),Rl(i,u,n,dc,M),M.delete(u)),i}function cd(i){return gc(i)?n:i}function fc(i,u,f,b,L,M){var P=f&J,N=i.length,V=u.length;if(N!=V&&!(P&&V>N))return!1;var ie=M.get(i),oe=M.get(u);if(ie&&oe)return ie==u&&oe==i;var de=-1,_e=!0,He=f&pe?new Er:n;for(M.set(i,u),M.set(u,i);++de<N;){var Xe=i[de],ht=u[de];if(b)var Je=P?b(ht,Xe,de,u,i,M):b(Xe,ht,de,i,u,M);if(Je!==n){if(Je)continue;_e=!1;break}if(He){if(!_o(u,function(mt,wt){if(!nn(He,wt)&&(Xe===mt||L(Xe,mt,f,b,M)))return He.push(wt)})){_e=!1;break}}else if(!(Xe===ht||L(Xe,ht,f,b,M))){_e=!1;break}}return M.delete(i),M.delete(u),_e}function dd(i,u,f,b,L,M,P){switch(f){case $n:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Lr:return!(i.byteLength!=u.byteLength||!M(new Eo(i),new Eo(u)));case Ge:case st:case Qe:return Ti(+i,+u);case Ze:return i.name==u.name&&i.message==u.message;case ar:case Z:return i==u+"";case tr:var N=ml;case it:var V=b&J;if(N||(N=yl),i.size!=u.size&&!V)return!1;var ie=P.get(i);if(ie)return ie==u;b|=pe,P.set(i,u);var oe=fc(N(i),N(u),b,L,M,P);return P.delete(i),oe;case se:if(qt)return qt.call(i)==qt.call(u)}return!1}function fd(i,u,f,b,L,M){var P=f&J,N=Ts(i),V=N.length,ie=Ts(u),oe=ie.length;if(V!=oe&&!P)return!1;for(var de=V;de--;){var _e=N[de];if(!(P?_e in u:ot.call(u,_e)))return!1}var He=M.get(i),Xe=M.get(u);if(He&&Xe)return He==u&&Xe==i;var ht=!0;M.set(i,u),M.set(u,i);for(var Je=P;++de<V;){_e=N[de];var mt=i[_e],wt=u[_e];if(b)var Gn=P?b(wt,mt,_e,u,i,M):b(mt,wt,_e,i,u,M);if(!(Gn===n?mt===wt||L(mt,wt,f,b,M):Gn)){ht=!1;break}Je||(Je=_e=="constructor")}if(ht&&!Je){var bn=i.constructor,qn=u.constructor;bn!=qn&&"constructor"in i&&"constructor"in u&&!(typeof bn=="function"&&bn instanceof bn&&typeof qn=="function"&&qn instanceof qn)&&(ht=!1)}return M.delete(i),M.delete(u),ht}function _i(i){return Hr(Fe(i,n,dp),i+"")}function Ts(i){return Ro(i,Vr,hc)}function jl(i){return Ro(i,Tn,hd)}var St=ni?function(i){return ni.get(i)}:kf;function Os(i){for(var u=i.name+"",f=ba[u],b=ot.call(ba,u)?f.length:0;b--;){var L=f[b],M=L.func;if(M==null||M==i)return L.name}return u}function Ia(i){var u=ot.call(_,"placeholder")?_:i;return u.placeholder}function Ve(){var i=_.iteratee||Tf;return i=i===Tf?Z0:i,arguments.length?i(arguments[0],arguments[1]):i}function Kl(i,u){var f=i.__data__;return T(u)?f[typeof u=="string"?"string":"hash"]:f.map}function Aa(i){for(var u=Vr(i),f=u.length;f--;){var b=u[f],L=i[b];u[f]=[b,L,ne(L)]}return u}function Wo(i,u){var f=Nu(i,u);return La(f)?f:n}function Yt(i){var u=ot.call(i,to),f=i[to];try{i[to]=n;var b=!0}catch{}var L=ko.call(i);return b&&(u?i[to]=f:delete i[to]),L}var hc=ro?function(i){return i==null?[]:(i=Ct(i),Gi(ro(i),function(u){return zl.call(i,u)}))}:Ef,hd=ro?function(i){for(var u=[];i;)qi(u,hc(i)),i=fa(i);return u}:Ef,Fr=mr;(io&&Fr(new io(new ArrayBuffer(1)))!=$n||va&&Fr(new va)!=tr||Sl&&Fr(Sl.resolve())!=Pr||Po&&Fr(new Po)!=it||hs&&Fr(new hs)!=tt)&&(Fr=function(i){var u=mr(i),f=u==Et?i.constructor:n,b=f?Ht(f):"";if(b)switch(b){case Y1:return $n;case X1:return tr;case J1:return Pr;case Q1:return it;case ef:return tt}return u});function Yl(i,u,f){for(var b=-1,L=f.length;++b<L;){var M=f[b],P=M.size;switch(M.type){case"drop":i+=P;break;case"dropRight":u-=P;break;case"take":u=Tr(u,i+P);break;case"takeRight":i=Gt(i,u-P);break}}return{start:i,end:u}}function e(i){var u=i.match(Ya);return u?u[1].split(Vi):[]}function r(i,u,f){u=Vn(u,i);for(var b=-1,L=u.length,M=!1;++b<L;){var P=$t(u[b]);if(!(M=i!=null&&f(i,P)))break;i=i[P]}return M||++b!=L?M:(L=i==null?0:i.length,!!L&&yd(L)&&m(P,L)&&(ct(i)||ks(i)))}function s(i){var u=i.length,f=new i.constructor(u);return u&&typeof i[0]=="string"&&ot.call(i,"index")&&(f.index=i.index,f.input=i.input),f}function a(i){return typeof i.constructor=="function"&&!j(i)?ii(fa(i)):{}}function d(i,u,f){var b=i.constructor;switch(u){case Lr:return Ul(i);case Ge:case st:return new b(+i);case $n:return gf(i,f);case Gr:case Ut:case bi:case Dr:case Pn:case We:case Wi:case Sr:case qe:return Q0(i,f);case tr:return new b;case Qe:case Z:return new b(i);case ar:return sc(i);case it:return new b;case se:return J0(i)}}function p(i,u){var f=u.length;if(!f)return i;var b=f-1;return u[b]=(f>1?"& ":"")+u[b],u=u.join(f>2?", ":" "),i.replace(il,`{
|
|
1630
1630
|
/* [wrapped with `+u+`] */
|
|
1631
|
-
`)}function v(i){return ct(i)||Es(i)||!!(Io&&i&&i[Io])}function m(i,u){var f=typeof i;return u=u==null?Ae:u,!!u&&(f=="number"||f!="symbol"&&Xa.test(i))&&i>-1&&i%1==0&&i<u}function y(i,u,f){if(!er(f))return!1;var b=typeof u;return(b=="number"?Mn(f)&&m(u,f.length):b=="string"&&u in f)?Ti(f[u],i):!1}function C(i,u){if(ct(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Zn(i)?!0:qr.test(i)||!Ka.test(i)||u!=null&&i in Ct(u)}function T(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function I(i){var u=Os(i),f=_[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(i===f)return!0;var b=St(f);return!!b&&i===b[0]}function W(i){return!!wi&&wi in i}var F=ti?Zo:If;function j(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||Xi;return i===f}function ne(i){return i===i&&!er(i)}function he(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in Ct(f))}}function me(i){var u=bd(i,function(b){return f.size===S&&f.clear(),b}),f=u.cache;return u}function xe(i,u){var f=i[1],b=u[1],L=f|b,M=L<(ge|Te|De),P=b==De&&f==be||b==De&&f==je&&i[7].length<=u[8]||b==(De|je)&&u[7].length<=u[8]&&f==be;if(!(M||P))return i;b&ge&&(i[2]=u[2],L|=f&ge?0:Ie);var N=u[3];if(N){var V=i[3];i[3]=V?td(V,N,u[4]):N,i[4]=V?ji(i[3],k):u[4]}return N=u[5],N&&(V=i[5],i[5]=V?Ul(V,N,u[6]):N,i[6]=V?ji(i[5],k):u[6]),N=u[7],N&&(i[7]=N),b&De&&(i[8]=i[8]==null?u[8]:Tr(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=L,i}function ye(i){var u=[];if(i!=null)for(var f in Ct(i))u.push(f);return u}function Se(i){return Eo.call(i)}function Fe(i,u,f){return u=Gt(u===n?i.length-1:u,0),function(){for(var b=arguments,L=-1,M=Gt(b.length-u,0),P=G(M);++L<M;)P[L]=b[u+L];L=-1;for(var N=G(u+1);++L<u;)N[L]=b[L];return N[u]=f(P),fn(i,this,N)}}function Pe(i,u){return u.length<2?i:lo(i,Ln(u,0,-1))}function ut(i,u){for(var f=i.length,b=Tr(u.length,f),L=yr(i);b--;){var M=u[b];i[b]=m(M,f)?L[M]:n}return i}function It(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var rr=Xt(ws),Nt=K1||function(i,u){return Zt.setTimeout(i,u)},Hr=Xt(xs);function Br(i,u,f){var b=u+"";return Hr(i,p(b,jt(e(b),f)))}function Xt(i){var u=0,f=0;return function(){var b=$o(),L=$-(b-f);if(f=b,L>0){if(++u>=Q)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Cr(i,u){var f=-1,b=i.length,L=b-1;for(u=u===n?b:u;++f<u;){var M=Rl(f,L),P=i[M];i[M]=i[f],i[f]=P}return i.length=u,i}var cr=me(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(tl,function(f,b,L,M){u.push(L?M.replace(il,"$1"):b||f)}),u});function $t(i){if(typeof i=="string"||Zn(i))return i;var u=i+"";return u=="0"&&1/i==-ue?"-0":u}function Ht(i){if(i!=null){try{return ri.call(i)}catch{}try{return i+""}catch{}}return""}function jt(i,u){return wn(xt,function(f){var b="_."+f[0];u&f[1]&&!os(i,b)&&i.push(b)}),i.sort()}function Wr(i){if(i instanceof vt)return i.clone();var u=new Yr(i.__wrapped__,i.__chain__);return u.__actions__=yr(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function $a(i,u,f){(f?y(i,u,f):u===n)?u=1:u=Gt(ft(u),0);var b=i==null?0:i.length;if(!b||u<1)return[];for(var L=0,M=0,P=G(pa(b/u));L<b;)P[M++]=Ln(i,L,L+=u);return P}function po(i){for(var u=-1,f=i==null?0:i.length,b=0,L=[];++u<f;){var M=i[u];M&&(L[b++]=M)}return L}function Ar(){var i=arguments.length;if(!i)return[];for(var u=G(i-1),f=arguments[0],b=i;b--;)u[b-1]=arguments[b];return Gi(ct(f)?yr(f):[f],Ir(u,1))}var si=dt(function(i,u){return fr(i)?ma(i,Ir(u,1,fr,!0)):[]}),dr=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?ma(i,Ir(u,1,fr,!0),Ve(f,2)):[]}),pc=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?ma(i,Ir(u,1,fr,!0),n,f):[]});function Mi(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),Ln(i,u<0?0:u,b)):[]}function Uo(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,0,u<0?0:u)):[]}function Vo(i,u){return i&&i.length?_a(i,Ve(u,3),!0,!0):[]}function Ur(i,u){return i&&i.length?_a(i,Ve(u,3),!0):[]}function Pa(i,u,f,b){var L=i==null?0:i.length;return L?(f&&typeof f!="number"&&y(i,u,f)&&(f=0,b=L),Yu(i,u,f,b)):[]}function Yl(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),hl(i,Ve(u,3),L)}function up(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b-1;return f!==n&&(L=ft(f),L=f<0?Gt(b+L,0):Tr(L,b-1)),hl(i,Ve(u,3),L,!0)}function cp(i){var u=i==null?0:i.length;return u?Ir(i,1):[]}function i5(i){var u=i==null?0:i.length;return u?Ir(i,ue):[]}function o5(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ft(u),Ir(i,u)):[]}function a5(i){for(var u=-1,f=i==null?0:i.length,b={};++u<f;){var L=i[u];b[L[0]]=L[1]}return b}function dp(i){return i&&i.length?i[0]:n}function s5(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),Mo(i,u,L)}function l5(i){var u=i==null?0:i.length;return u?Ln(i,0,-1):[]}var u5=dt(function(i){var u=At(i,oc);return u.length&&u[0]===i[0]?$l(u):[]}),c5=dt(function(i){var u=li(i),f=At(i,oc);return u===li(f)?u=n:f.pop(),f.length&&f[0]===i[0]?$l(f,Ve(u,2)):[]}),d5=dt(function(i){var u=li(i),f=At(i,oc);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?$l(f,n,u):[]});function f5(i,u){return i==null?"":zl.call(i,u)}function li(i){var u=i==null?0:i.length;return u?i[u-1]:n}function h5(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b;return f!==n&&(L=ft(f),L=L<0?Gt(b+L,0):Tr(L,b-1)),u===u?ss(i,u,L):hl(i,pl,L,!0)}function p5(i,u){return i&&i.length?q0(i,ft(u)):n}var g5=dt(fp);function fp(i,u){return i&&i.length&&u&&u.length?Qu(i,u):i}function v5(i,u,f){return i&&i.length&&u&&u.length?Qu(i,u,Ve(f,2)):i}function b5(i,u,f){return i&&i.length&&u&&u.length?Qu(i,u,n,f):i}var m5=_i(function(i,u){var f=i==null?0:i.length,b=Ku(i,u);return ec(i,At(u,function(L){return m(L,f)?+L:L}).sort(lc)),b});function y5(i,u){var f=[];if(!(i&&i.length))return f;var b=-1,L=[],M=i.length;for(u=Ve(u,3);++b<M;){var P=i[b];u(P,b,i)&&(f.push(P),L.push(b))}return ec(i,L),f}function mf(i){return i==null?i:fs.call(i)}function C5(i,u,f){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&y(i,u,f)?(u=0,f=b):(u=u==null?0:ft(u),f=f===n?b:ft(f)),Ln(i,u,f)):[]}function w5(i,u){return Si(i,u)}function x5(i,u,f){return Fl(i,u,Ve(f,2))}function z5(i,u){var f=i==null?0:i.length;if(f){var b=Si(i,u);if(b<f&&Ti(i[b],u))return b}return-1}function L5(i,u){return Si(i,u,!0)}function S5(i,u,f){return Fl(i,u,Ve(f,2),!0)}function _5(i,u){var f=i==null?0:i.length;if(f){var b=Si(i,u,!0)-1;if(Ti(i[b],u))return b}return-1}function M5(i){return i&&i.length?rc(i):[]}function T5(i,u){return i&&i.length?rc(i,Ve(u,2)):[]}function O5(i){var u=i==null?0:i.length;return u?Ln(i,1,u):[]}function E5(i,u,f){return i&&i.length?(u=f||u===n?1:ft(u),Ln(i,0,u<0?0:u)):[]}function k5(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,u<0?0:u,b)):[]}function I5(i,u){return i&&i.length?_a(i,Ve(u,3),!1,!0):[]}function A5(i,u){return i&&i.length?_a(i,Ve(u,3)):[]}var $5=dt(function(i){return vn(Ir(i,1,fr,!0))}),P5=dt(function(i){var u=li(i);return fr(u)&&(u=n),vn(Ir(i,1,fr,!0),Ve(u,2))}),D5=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,vn(Ir(i,1,fr,!0),n,u)});function N5(i){return i&&i.length?vn(i):[]}function R5(i,u){return i&&i.length?vn(i,Ve(u,2)):[]}function F5(i,u){return u=typeof u=="function"?u:n,i&&i.length?vn(i,n,u):[]}function yf(i){if(!(i&&i.length))return[];var u=0;return i=Zi(i,function(f){if(fr(f))return u=Gt(f.length,u),!0}),To(u,function(f){return At(i,Au(f))})}function hp(i,u){if(!(i&&i.length))return[];var f=yf(i);return u==null?f:At(f,function(b){return fn(u,n,b)})}var H5=dt(function(i,u){return fr(i)?ma(i,u):[]}),B5=dt(function(i){return Ho(Zi(i,fr))}),W5=dt(function(i){var u=li(i);return fr(u)&&(u=n),Ho(Zi(i,fr),Ve(u,2))}),U5=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,Ho(Zi(i,fr),n,u)}),V5=dt(yf);function Z5(i,u){return ic(i||[],u||[],vs)}function G5(i,u){return ic(i||[],u||[],zi)}var q5=dt(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,hp(i,f)});function pp(i){var u=_(i);return u.__chain__=!0,u}function j5(i,u){return u(i),i}function pd(i,u){return u(i)}var K5=_i(function(i){var u=i.length,f=u?i[0]:0,b=this.__wrapped__,L=function(M){return Ku(M,i)};return u>1||this.__actions__.length||!(b instanceof vt)||!m(f)?this.thru(L):(b=b.slice(f,+f+(u?1:0)),b.__actions__.push({func:pd,args:[L],thisArg:n}),new Yr(b,this.__chain__).thru(function(M){return u&&!M.length&&M.push(n),M}))});function Y5(){return pp(this)}function X5(){return new Yr(this.value(),this.__chain__)}function J5(){this.__values__===n&&(this.__values__=Tp(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function Q5(){return this}function e3(i){for(var u,f=this;f instanceof Sl;){var b=Wr(f);b.__index__=0,b.__values__=n,u?L.__wrapped__=b:u=b;var L=b;f=f.__wrapped__}return L.__wrapped__=i,u}function t3(){var i=this.__wrapped__;if(i instanceof vt){var u=i;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:pd,args:[mf],thisArg:n}),new Yr(u,this.__chain__)}return this.thru(mf)}function r3(){return X0(this.__wrapped__,this.__actions__)}var n3=Vl(function(i,u,f){ot.call(i,f)?++i[f]:ai(i,f,1)});function i3(i,u,f){var b=ct(i)?Eu:El;return f&&y(i,u,f)&&(u=n),b(i,Ve(u,3))}function o3(i,u){var f=ct(i)?Zi:Xu;return f(i,Ve(u,3))}var a3=cc(Yl),s3=cc(up);function l3(i,u){return Ir(gd(i,u),1)}function u3(i,u){return Ir(gd(i,u),ue)}function c3(i,u,f){return f=f===n?1:ft(f),Ir(gd(i,u),f)}function gp(i,u){var f=ct(i)?wn:pn;return f(i,Ve(u,3))}function vp(i,u){var f=ct(i)?H1:Ol;return f(i,Ve(u,3))}var d3=Vl(function(i,u,f){ot.call(i,f)?i[f].push(u):ai(i,f,[u])});function f3(i,u,f,b){i=Mn(i)?i:Jl(i),f=f&&!b?ft(f):0;var L=i.length;return f<0&&(f=Gt(L+f,0)),Cd(i)?f<=L&&i.indexOf(u,f)>-1:!!L&&Mo(i,u,f)>-1}var h3=dt(function(i,u,f){var b=-1,L=typeof u=="function",M=Mn(i)?G(i.length):[];return pn(i,function(P){M[++b]=L?fn(u,P,f):Ca(P,u,f)}),M}),p3=Vl(function(i,u,f){ai(i,f,u)});function gd(i,u){var f=ct(i)?At:Sa;return f(i,Ve(u,3))}function g3(i,u,f,b){return i==null?[]:(ct(u)||(u=u==null?[]:[u]),f=b?n:f,ct(f)||(f=f==null?[]:[f]),Nr(i,u,f))}var v3=Vl(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function b3(i,u,f){var b=ct(i)?ku:Pu,L=arguments.length<3;return b(i,Ve(u,4),f,L,pn)}function m3(i,u,f){var b=ct(i)?B1:Pu,L=arguments.length<3;return b(i,Ve(u,4),f,L,Ol)}function y3(i,u){var f=ct(i)?Zi:Xu;return f(i,md(Ve(u,3)))}function C3(i){var u=ct(i)?Ml:ff;return u(i)}function w3(i,u,f){(f?y(i,u,f):u===n)?u=1:u=ft(u);var b=ct(i)?so:fo;return b(i,u)}function x3(i){var u=ct(i)?D0:Li;return u(i)}function z3(i){if(i==null)return 0;if(Mn(i))return Cd(i)?Oo(i):i.length;var u=Fr(i);return u==tr||u==it?i.size:Dl(i).length}function L3(i,u,f){var b=ct(i)?_o:hf;return f&&y(i,u,f)&&(u=n),b(i,Ve(u,3))}var S3=dt(function(i,u){if(i==null)return[];var f=u.length;return f>1&&y(i,u[0],u[1])?u=[]:f>2&&y(u[0],u[1],u[2])&&(u=[u[0]]),Nr(i,Ir(u,1),[])}),vd=j1||function(){return Zt.Date.now()};function _3(i,u){if(typeof u!="function")throw new on(h);return i=ft(i),function(){if(--i<1)return u.apply(this,arguments)}}function bp(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,_n(i,De,n,n,n,n,u)}function mp(i,u){var f;if(typeof u!="function")throw new on(h);return i=ft(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var Cf=dt(function(i,u,f){var b=ge;if(f.length){var L=ji(f,Ia(Cf));b|=Oe}return _n(i,b,u,f,L)}),yp=dt(function(i,u,f){var b=ge|Te;if(f.length){var L=ji(f,Ia(yp));b|=Oe}return _n(u,b,i,f,L)});function Cp(i,u,f){u=f?n:u;var b=_n(i,be,n,n,n,n,n,u);return b.placeholder=Cp.placeholder,b}function wp(i,u,f){u=f?n:u;var b=_n(i,ve,n,n,n,n,n,u);return b.placeholder=wp.placeholder,b}function xp(i,u,f){var b,L,M,P,N,V,ie=0,oe=!1,de=!1,_e=!0;if(typeof i!="function")throw new on(h);u=ui(u)||0,er(f)&&(oe=!!f.leading,de="maxWait"in f,M=de?Gt(ui(f.maxWait)||0,u):M,_e="trailing"in f?!!f.trailing:_e);function He(hr){var Oi=b,qo=L;return b=L=n,ie=hr,P=i.apply(qo,Oi),P}function Xe(hr){return ie=hr,N=Nt(mt,u),oe?He(hr):P}function ht(hr){var Oi=hr-V,qo=hr-ie,Bp=u-Oi;return de?Tr(Bp,M-qo):Bp}function Je(hr){var Oi=hr-V,qo=hr-ie;return V===n||Oi>=u||Oi<0||de&&qo>=M}function mt(){var hr=vd();if(Je(hr))return wt(hr);N=Nt(mt,ht(hr))}function wt(hr){return N=n,_e&&b?He(hr):(b=L=n,P)}function Gn(){N!==n&&Ma(N),ie=0,b=V=L=N=n}function bn(){return N===n?P:wt(vd())}function qn(){var hr=vd(),Oi=Je(hr);if(b=arguments,L=this,V=hr,Oi){if(N===n)return Xe(V);if(de)return Ma(N),N=Nt(mt,u),He(V)}return N===n&&(N=Nt(mt,u)),P}return qn.cancel=Gn,qn.flush=bn,qn}var M3=dt(function(i,u){return F0(i,1,u)}),T3=dt(function(i,u,f){return F0(i,ui(u)||0,f)});function O3(i){return _n(i,Ye)}function bd(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new on(h);var f=function(){var b=arguments,L=u?u.apply(this,b):b[0],M=f.cache;if(M.has(L))return M.get(L);var P=i.apply(this,b);return f.cache=M.set(L,P)||M,P};return f.cache=new(bd.Cache||Qt),f}bd.Cache=Qt;function md(i){if(typeof i!="function")throw new on(h);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function E3(i){return mp(2,i)}var k3=pf(function(i,u){u=u.length==1&&ct(u[0])?At(u[0],Kr(Ve())):At(Ir(u,1),Kr(Ve()));var f=u.length;return dt(function(b){for(var L=-1,M=Tr(b.length,f);++L<M;)b[L]=u[L].call(this,b[L]);return fn(i,this,b)})}),wf=dt(function(i,u){var f=ji(u,Ia(wf));return _n(i,Oe,n,u,f)}),zp=dt(function(i,u){var f=ji(u,Ia(zp));return _n(i,$e,n,u,f)}),I3=_i(function(i,u){return _n(i,je,n,n,n,u)});function A3(i,u){if(typeof i!="function")throw new on(h);return u=u===n?u:ft(u),dt(i,u)}function $3(i,u){if(typeof i!="function")throw new on(h);return u=u==null?0:Gt(ft(u),0),dt(function(f){var b=f[u],L=ho(f,0,u);return b&&Gi(L,b),fn(i,this,L)})}function P3(i,u,f){var b=!0,L=!0;if(typeof i!="function")throw new on(h);return er(f)&&(b="leading"in f?!!f.leading:b,L="trailing"in f?!!f.trailing:L),xp(i,u,{leading:b,maxWait:u,trailing:L})}function D3(i){return bp(i,1)}function N3(i,u){return wf(Bl(u),i)}function R3(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function F3(i){return Xr(i,R)}function H3(i,u){return u=typeof u=="function"?u:n,Xr(i,R,u)}function B3(i){return Xr(i,D|R)}function W3(i,u){return u=typeof u=="function"?u:n,Xr(i,D|R,u)}function U3(i,u){return u==null||R0(i,u,Vr(u))}function Ti(i,u){return i===u||i!==i&&u!==u}var V3=Dt(Al),Z3=Dt(function(i,u){return i>=u}),Es=wa(function(){return arguments}())?wa:function(i){return nr(i)&&ot.call(i,"callee")&&!xl.call(i,"callee")},ct=G.isArray,G3=f0?Kr(f0):uf;function Mn(i){return i!=null&&yd(i.length)&&!Zo(i)}function fr(i){return nr(i)&&Mn(i)}function q3(i){return i===!0||i===!1||nr(i)&&mr(i)==Ge}var Da=cs||If,j3=h0?Kr(h0):xa;function K3(i){return nr(i)&&i.nodeType===1&&!gc(i)}function Y3(i){if(i==null)return!0;if(Mn(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Da(i)||Xl(i)||Es(i)))return!i.length;var u=Fr(i);if(u==tr||u==it)return!i.size;if(j(i))return!Dl(i).length;for(var f in i)if(ot.call(i,f))return!1;return!0}function X3(i,u){return za(i,u)}function J3(i,u,f){f=typeof f=="function"?f:n;var b=f?f(i,u):n;return b===n?za(i,u,n,f):!!b}function xf(i){if(!nr(i))return!1;var u=mr(i);return u==Ze||u==lt||typeof i.message=="string"&&typeof i.name=="string"&&!gc(i)}function Q3(i){return typeof i=="number"&&O0(i)}function Zo(i){if(!er(i))return!1;var u=mr(i);return u==Vt||u==Zr||u==Ne||u==en}function Lp(i){return typeof i=="number"&&i==ft(i)}function yd(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Ae}function er(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function nr(i){return i!=null&&typeof i=="object"}var Sp=p0?Kr(p0):U0;function e7(i,u){return i===u||Fo(i,u,Aa(u))}function t7(i,u,f){return f=typeof f=="function"?f:n,Fo(i,u,Aa(u),f)}function r7(i){return _p(i)&&i!=+i}function n7(i){if(F(i))throw new nt(g);return La(i)}function i7(i){return i===null}function o7(i){return i==null}function _p(i){return typeof i=="number"||nr(i)&&mr(i)==Qe}function gc(i){if(!nr(i)||mr(i)!=kt)return!1;var u=fa(i);if(u===null)return!0;var f=ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ri.call(f)==G1}var zf=g0?Kr(g0):ys;function a7(i){return Lp(i)&&i>=-Ae&&i<=Ae}var Mp=Tu?Kr(Tu):Cs;function Cd(i){return typeof i=="string"||!ct(i)&&nr(i)&&mr(i)==Z}function Zn(i){return typeof i=="symbol"||nr(i)&&mr(i)==se}var Xl=Ou?Kr(Ou):V0;function s7(i){return i===n}function l7(i){return nr(i)&&Fr(i)==tt}function u7(i){return nr(i)&&mr(i)==sr}var c7=Dt(co),d7=Dt(function(i,u){return i<=u});function Tp(i){if(!i)return[];if(Mn(i))return Cd(i)?xn(i):yr(i);if(Qi&&i[Qi])return C0(i[Qi]());var u=Fr(i),f=u==tr?bl:u==it?ml:Jl;return f(i)}function Go(i){if(!i)return i===0?i:0;if(i=ui(i),i===ue||i===-ue){var u=i<0?-1:1;return u*et}return i===i?i:0}function ft(i){var u=Go(i),f=u%1;return u===u?f?u-f:u:0}function Op(i){return i?No(ft(i),0,yt):0}function ui(i){if(typeof i=="number")return i;if(Zn(i))return pt;if(er(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=er(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=as(i);var f=Nn.test(i);return f||cn.test(i)?R1(i.slice(2),f?2:8):oa.test(i)?pt:+i}function Ep(i){return an(i,Tn(i))}function f7(i){return i?No(ft(i),-Ae,Ae):i===0?i:0}function Rt(i){return i==null?"":Rr(i)}var h7=Ta(function(i,u){if(j(u)||Mn(u)){an(u,Vr(u),i);return}for(var f in u)ot.call(u,f)&&vs(i,f,u[f])}),kp=Ta(function(i,u){an(u,Tn(u),i)}),wd=Ta(function(i,u,f,b){an(u,Tn(u),i,b)}),p7=Ta(function(i,u,f,b){an(u,Vr(u),i,b)}),g7=_i(Ku);function v7(i,u){var f=ii(i);return u==null?f:ju(f,u)}var b7=dt(function(i,u){i=Ct(i);var f=-1,b=u.length,L=b>2?u[2]:n;for(L&&y(u[0],u[1],L)&&(b=1);++f<b;)for(var M=u[f],P=Tn(M),N=-1,V=P.length;++N<V;){var ie=P[N],oe=i[ie];(oe===n||Ti(oe,Xi[ie])&&!ot.call(i,ie))&&(i[ie]=M[ie])}return i}),m7=dt(function(i){return i.push(n,dc),fn(Ip,n,i)});function y7(i,u){return ua(i,Ve(u,3),gn)}function C7(i,u){return ua(i,Ve(u,3),Il)}function w7(i,u){return i==null?i:kl(i,Ve(u,3),Tn)}function x7(i,u){return i==null?i:br(i,Ve(u,3),Tn)}function z7(i,u){return i&&gn(i,Ve(u,3))}function L7(i,u){return i&&Il(i,Ve(u,3))}function S7(i){return i==null?[]:ms(i,Vr(i))}function _7(i){return i==null?[]:ms(i,Tn(i))}function Lf(i,u,f){var b=i==null?n:lo(i,u);return b===n?f:b}function M7(i,u){return i!=null&&r(i,u,H0)}function Sf(i,u){return i!=null&&r(i,u,B0)}var T7=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=Eo.call(u)),i[u]=f},Mf(On)),O7=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=Eo.call(u)),ot.call(i,u)?i[u].push(f):i[u]=[f]},Ve),E7=dt(Ca);function Vr(i){return Mn(i)?Gu(i):Dl(i)}function Tn(i){return Mn(i)?Gu(i,!0):uo(i)}function k7(i,u){var f={};return u=Ve(u,3),gn(i,function(b,L,M){ai(f,u(b,L,M),b)}),f}function I7(i,u){var f={};return u=Ve(u,3),gn(i,function(b,L,M){ai(f,L,u(b,L,M))}),f}var A7=Ta(function(i,u,f){Nl(i,u,f)}),Ip=Ta(function(i,u,f,b){Nl(i,u,f,b)}),$7=_i(function(i,u){var f={};if(i==null)return f;var b=!1;u=At(u,function(M){return M=Vn(M,i),b||(b=M.length>1),M}),an(i,ql(i),f),b&&(f=Xr(f,D|B|R,cd));for(var L=u.length;L--;)zs(f,u[L]);return f});function P7(i,u){return Ap(i,md(Ve(u)))}var D7=_i(function(i,u){return i==null?{}:j0(i,u)});function Ap(i,u){if(i==null)return{};var f=At(ql(i),function(b){return[b]});return u=Ve(u),K0(i,f,function(b,L){return u(b,L[0])})}function N7(i,u,f){u=Vn(u,i);var b=-1,L=u.length;for(L||(L=1,i=n);++b<L;){var M=i==null?n:i[$t(u[b])];M===n&&(b=L,M=f),i=Zo(M)?M.call(i):M}return i}function R7(i,u,f){return i==null?i:zi(i,u,f)}function F7(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:zi(i,u,f,b)}var $p=Sn(Vr),Pp=Sn(Tn);function H7(i,u,f){var b=ct(i),L=b||Da(i)||Xl(i);if(u=Ve(u,4),f==null){var M=i&&i.constructor;L?f=b?new M:[]:er(i)?f=Zo(M)?ii(fa(i)):{}:f={}}return(L?wn:gn)(i,function(P,N,V){return u(f,P,N,V)}),f}function B7(i,u){return i==null?!0:zs(i,u)}function W7(i,u,f){return i==null?i:Hl(i,u,Bl(f))}function U7(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:Hl(i,u,Bl(f),b)}function Jl(i){return i==null?[]:gl(i,Vr(i))}function V7(i){return i==null?[]:gl(i,Tn(i))}function Z7(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=ui(f),f=f===f?f:0),u!==n&&(u=ui(u),u=u===u?u:0),No(ui(i),u,f)}function G7(i,u,f){return u=Go(u),f===n?(f=u,u=0):f=Go(f),i=ui(i),ya(i,u,f)}function q7(i,u,f){if(f&&typeof f!="boolean"&&y(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Go(i),u===n?(u=i,i=0):u=Go(u)),i>u){var b=i;i=u,u=b}if(f||i%1||u%1){var L=ro();return Tr(i+L*(u-i+N1("1e-"+((L+"").length-1))),u)}return Rl(i,u)}var j7=Oa(function(i,u,f){return u=u.toLowerCase(),i+(f?Dp(u):u)});function Dp(i){return _f(Rt(i).toLowerCase())}function Np(i){return i=Rt(i),i&&i.replace(Ja,m0).replace(s0,"")}function K7(i,u,f){i=Rt(i),u=Rr(u);var b=i.length;f=f===n?b:No(ft(f),0,b);var L=f;return f-=u.length,f>=0&&i.slice(f,L)==u}function Y7(i){return i=Rt(i),i&&ln.test(i)?i.replace(vr,Z1):i}function X7(i){return i=Rt(i),i&&Xn.test(i)?i.replace(xo,"\\$&"):i}var J7=Oa(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),Q7=Oa(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),eb=ad("toLowerCase");function tb(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;if(!u||b>=u)return i;var L=(u-b)/2;return Zl(ga(L),f)+i+Zl(pa(L),f)}function rb(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;return u&&b<u?i+Zl(u-b,f):i}function nb(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;return u&&b<u?Zl(u-b,f)+i:i}function ib(i,u,f){return f||u==null?u=0:u&&(u=+u),ds(Rt(i).replace(zo,""),u||0)}function ob(i,u,f){return(f?y(i,u,f):u===n)?u=1:u=ft(u),tc(Rt(i),u)}function ab(){var i=arguments,u=Rt(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var sb=Oa(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function lb(i,u,f){return f&&typeof f!="number"&&y(i,u,f)&&(u=f=n),f=f===n?yt:f>>>0,f?(i=Rt(i),i&&(typeof u=="string"||u!=null&&!zf(u))&&(u=Rr(u),!u&&Bn(i))?ho(xn(i),0,f):i.split(u,f)):[]}var ub=Oa(function(i,u,f){return i+(f?" ":"")+_f(u)});function cb(i,u,f){return i=Rt(i),f=f==null?0:No(ft(f),0,i.length),u=Rr(u),i.slice(f,f+u.length)==u}function db(i,u,f){var b=_.templateSettings;f&&y(i,u,f)&&(u=n),i=Rt(i),u=wd({},u,b,Gl);var L=wd({},u.imports,b.imports,Gl),M=Vr(L),P=gl(L,M),N,V,ie=0,oe=u.interpolate||Bt,de="__p += '",_e=Yi((u.escape||Bt).source+"|"+oe.source+"|"+(oe===ja?mi:Bt).source+"|"+(u.evaluate||Bt).source+"|$","g"),He="//# sourceURL="+(ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mu+"]")+`
|
|
1632
|
-
`;i.replace(_e,function(Je,mt,wt,Gn,bn,qn){return wt||(wt=Gn),de+=i.slice(ie,qn).replace(
|
|
1631
|
+
`)}function v(i){return ct(i)||ks(i)||!!(Io&&i&&i[Io])}function m(i,u){var f=typeof i;return u=u==null?Ae:u,!!u&&(f=="number"||f!="symbol"&&Xa.test(i))&&i>-1&&i%1==0&&i<u}function y(i,u,f){if(!er(f))return!1;var b=typeof u;return(b=="number"?Mn(f)&&m(u,f.length):b=="string"&&u in f)?Ti(f[u],i):!1}function C(i,u){if(ct(i))return!1;var f=typeof i;return f=="number"||f=="symbol"||f=="boolean"||i==null||Zn(i)?!0:qr.test(i)||!Ka.test(i)||u!=null&&i in Ct(u)}function T(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function I(i){var u=Os(i),f=_[u];if(typeof f!="function"||!(u in vt.prototype))return!1;if(i===f)return!0;var b=St(f);return!!b&&i===b[0]}function W(i){return!!wi&&wi in i}var F=ti?Zo:If;function j(i){var u=i&&i.constructor,f=typeof u=="function"&&u.prototype||Ji;return i===f}function ne(i){return i===i&&!er(i)}function he(i,u){return function(f){return f==null?!1:f[i]===u&&(u!==n||i in Ct(f))}}function me(i){var u=bd(i,function(b){return f.size===S&&f.clear(),b}),f=u.cache;return u}function xe(i,u){var f=i[1],b=u[1],L=f|b,M=L<(ge|Te|De),P=b==De&&f==be||b==De&&f==je&&i[7].length<=u[8]||b==(De|je)&&u[7].length<=u[8]&&f==be;if(!(M||P))return i;b&ge&&(i[2]=u[2],L|=f&ge?0:Ie);var N=u[3];if(N){var V=i[3];i[3]=V?td(V,N,u[4]):N,i[4]=V?Ki(i[3],E):u[4]}return N=u[5],N&&(V=i[5],i[5]=V?Vl(V,N,u[6]):N,i[6]=V?Ki(i[5],E):u[6]),N=u[7],N&&(i[7]=N),b&De&&(i[8]=i[8]==null?u[8]:Tr(i[8],u[8])),i[9]==null&&(i[9]=u[9]),i[0]=u[0],i[1]=L,i}function ye(i){var u=[];if(i!=null)for(var f in Ct(i))u.push(f);return u}function Se(i){return ko.call(i)}function Fe(i,u,f){return u=Gt(u===n?i.length-1:u,0),function(){for(var b=arguments,L=-1,M=Gt(b.length-u,0),P=G(M);++L<M;)P[L]=b[u+L];L=-1;for(var N=G(u+1);++L<u;)N[L]=b[L];return N[u]=f(P),fn(i,this,N)}}function Pe(i,u){return u.length<2?i:uo(i,Ln(u,0,-1))}function ut(i,u){for(var f=i.length,b=Tr(u.length,f),L=yr(i);b--;){var M=u[b];i[b]=m(M,f)?L[M]:n}return i}function It(i,u){if(!(u==="constructor"&&typeof i[u]=="function")&&u!="__proto__")return i[u]}var rr=Xt(ws),Nt=K1||function(i,u){return Zt.setTimeout(i,u)},Hr=Xt(xs);function Br(i,u,f){var b=u+"";return Hr(i,p(b,jt(e(b),f)))}function Xt(i){var u=0,f=0;return function(){var b=$o(),L=$-(b-f);if(f=b,L>0){if(++u>=Q)return arguments[0]}else u=0;return i.apply(n,arguments)}}function Cr(i,u){var f=-1,b=i.length,L=b-1;for(u=u===n?b:u;++f<u;){var M=Fl(f,L),P=i[M];i[M]=i[f],i[f]=P}return i.length=u,i}var cr=me(function(i){var u=[];return i.charCodeAt(0)===46&&u.push(""),i.replace(rl,function(f,b,L,M){u.push(L?M.replace(ol,"$1"):b||f)}),u});function $t(i){if(typeof i=="string"||Zn(i))return i;var u=i+"";return u=="0"&&1/i==-ue?"-0":u}function Ht(i){if(i!=null){try{return ri.call(i)}catch{}try{return i+""}catch{}}return""}function jt(i,u){return wn(xt,function(f){var b="_."+f[0];u&f[1]&&!os(i,b)&&i.push(b)}),i.sort()}function Wr(i){if(i instanceof vt)return i.clone();var u=new Yr(i.__wrapped__,i.__chain__);return u.__actions__=yr(i.__actions__),u.__index__=i.__index__,u.__values__=i.__values__,u}function $a(i,u,f){(f?y(i,u,f):u===n)?u=1:u=Gt(ft(u),0);var b=i==null?0:i.length;if(!b||u<1)return[];for(var L=0,M=0,P=G(pa(b/u));L<b;)P[M++]=Ln(i,L,L+=u);return P}function go(i){for(var u=-1,f=i==null?0:i.length,b=0,L=[];++u<f;){var M=i[u];M&&(L[b++]=M)}return L}function Ar(){var i=arguments.length;if(!i)return[];for(var u=G(i-1),f=arguments[0],b=i;b--;)u[b-1]=arguments[b];return qi(ct(f)?yr(f):[f],Ir(u,1))}var si=dt(function(i,u){return fr(i)?ma(i,Ir(u,1,fr,!0)):[]}),dr=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?ma(i,Ir(u,1,fr,!0),Ve(f,2)):[]}),pc=dt(function(i,u){var f=li(u);return fr(f)&&(f=n),fr(i)?ma(i,Ir(u,1,fr,!0),n,f):[]});function Mi(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),Ln(i,u<0?0:u,b)):[]}function Uo(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,0,u<0?0:u)):[]}function Vo(i,u){return i&&i.length?_a(i,Ve(u,3),!0,!0):[]}function Ur(i,u){return i&&i.length?_a(i,Ve(u,3),!0):[]}function Pa(i,u,f,b){var L=i==null?0:i.length;return L?(f&&typeof f!="number"&&y(i,u,f)&&(f=0,b=L),Yu(i,u,f,b)):[]}function Xl(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),pl(i,Ve(u,3),L)}function cp(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b-1;return f!==n&&(L=ft(f),L=f<0?Gt(b+L,0):Tr(L,b-1)),pl(i,Ve(u,3),L,!0)}function dp(i){var u=i==null?0:i.length;return u?Ir(i,1):[]}function l5(i){var u=i==null?0:i.length;return u?Ir(i,ue):[]}function u5(i,u){var f=i==null?0:i.length;return f?(u=u===n?1:ft(u),Ir(i,u)):[]}function c5(i){for(var u=-1,f=i==null?0:i.length,b={};++u<f;){var L=i[u];b[L[0]]=L[1]}return b}function fp(i){return i&&i.length?i[0]:n}function d5(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=f==null?0:ft(f);return L<0&&(L=Gt(b+L,0)),Mo(i,u,L)}function f5(i){var u=i==null?0:i.length;return u?Ln(i,0,-1):[]}var h5=dt(function(i){var u=At(i,oc);return u.length&&u[0]===i[0]?Pl(u):[]}),p5=dt(function(i){var u=li(i),f=At(i,oc);return u===li(f)?u=n:f.pop(),f.length&&f[0]===i[0]?Pl(f,Ve(u,2)):[]}),g5=dt(function(i){var u=li(i),f=At(i,oc);return u=typeof u=="function"?u:n,u&&f.pop(),f.length&&f[0]===i[0]?Pl(f,n,u):[]});function v5(i,u){return i==null?"":Ll.call(i,u)}function li(i){var u=i==null?0:i.length;return u?i[u-1]:n}function b5(i,u,f){var b=i==null?0:i.length;if(!b)return-1;var L=b;return f!==n&&(L=ft(f),L=L<0?Gt(b+L,0):Tr(L,b-1)),u===u?ss(i,u,L):pl(i,gl,L,!0)}function m5(i,u){return i&&i.length?q0(i,ft(u)):n}var y5=dt(hp);function hp(i,u){return i&&i.length&&u&&u.length?Qu(i,u):i}function C5(i,u,f){return i&&i.length&&u&&u.length?Qu(i,u,Ve(f,2)):i}function w5(i,u,f){return i&&i.length&&u&&u.length?Qu(i,u,n,f):i}var x5=_i(function(i,u){var f=i==null?0:i.length,b=Ku(i,u);return ec(i,At(u,function(L){return m(L,f)?+L:L}).sort(lc)),b});function z5(i,u){var f=[];if(!(i&&i.length))return f;var b=-1,L=[],M=i.length;for(u=Ve(u,3);++b<M;){var P=i[b];u(P,b,i)&&(f.push(P),L.push(b))}return ec(i,L),f}function mf(i){return i==null?i:fs.call(i)}function L5(i,u,f){var b=i==null?0:i.length;return b?(f&&typeof f!="number"&&y(i,u,f)?(u=0,f=b):(u=u==null?0:ft(u),f=f===n?b:ft(f)),Ln(i,u,f)):[]}function S5(i,u){return Si(i,u)}function _5(i,u,f){return Hl(i,u,Ve(f,2))}function M5(i,u){var f=i==null?0:i.length;if(f){var b=Si(i,u);if(b<f&&Ti(i[b],u))return b}return-1}function T5(i,u){return Si(i,u,!0)}function O5(i,u,f){return Hl(i,u,Ve(f,2),!0)}function k5(i,u){var f=i==null?0:i.length;if(f){var b=Si(i,u,!0)-1;if(Ti(i[b],u))return b}return-1}function E5(i){return i&&i.length?rc(i):[]}function I5(i,u){return i&&i.length?rc(i,Ve(u,2)):[]}function A5(i){var u=i==null?0:i.length;return u?Ln(i,1,u):[]}function $5(i,u,f){return i&&i.length?(u=f||u===n?1:ft(u),Ln(i,0,u<0?0:u)):[]}function P5(i,u,f){var b=i==null?0:i.length;return b?(u=f||u===n?1:ft(u),u=b-u,Ln(i,u<0?0:u,b)):[]}function D5(i,u){return i&&i.length?_a(i,Ve(u,3),!1,!0):[]}function N5(i,u){return i&&i.length?_a(i,Ve(u,3)):[]}var R5=dt(function(i){return vn(Ir(i,1,fr,!0))}),F5=dt(function(i){var u=li(i);return fr(u)&&(u=n),vn(Ir(i,1,fr,!0),Ve(u,2))}),H5=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,vn(Ir(i,1,fr,!0),n,u)});function B5(i){return i&&i.length?vn(i):[]}function W5(i,u){return i&&i.length?vn(i,Ve(u,2)):[]}function U5(i,u){return u=typeof u=="function"?u:n,i&&i.length?vn(i,n,u):[]}function yf(i){if(!(i&&i.length))return[];var u=0;return i=Gi(i,function(f){if(fr(f))return u=Gt(f.length,u),!0}),To(u,function(f){return At(i,Au(f))})}function pp(i,u){if(!(i&&i.length))return[];var f=yf(i);return u==null?f:At(f,function(b){return fn(u,n,b)})}var V5=dt(function(i,u){return fr(i)?ma(i,u):[]}),Z5=dt(function(i){return Ho(Gi(i,fr))}),G5=dt(function(i){var u=li(i);return fr(u)&&(u=n),Ho(Gi(i,fr),Ve(u,2))}),q5=dt(function(i){var u=li(i);return u=typeof u=="function"?u:n,Ho(Gi(i,fr),n,u)}),j5=dt(yf);function K5(i,u){return ic(i||[],u||[],vs)}function Y5(i,u){return ic(i||[],u||[],zi)}var X5=dt(function(i){var u=i.length,f=u>1?i[u-1]:n;return f=typeof f=="function"?(i.pop(),f):n,pp(i,f)});function gp(i){var u=_(i);return u.__chain__=!0,u}function J5(i,u){return u(i),i}function pd(i,u){return u(i)}var Q5=_i(function(i){var u=i.length,f=u?i[0]:0,b=this.__wrapped__,L=function(M){return Ku(M,i)};return u>1||this.__actions__.length||!(b instanceof vt)||!m(f)?this.thru(L):(b=b.slice(f,+f+(u?1:0)),b.__actions__.push({func:pd,args:[L],thisArg:n}),new Yr(b,this.__chain__).thru(function(M){return u&&!M.length&&M.push(n),M}))});function e3(){return gp(this)}function t3(){return new Yr(this.value(),this.__chain__)}function r3(){this.__values__===n&&(this.__values__=Op(this.value()));var i=this.__index__>=this.__values__.length,u=i?n:this.__values__[this.__index__++];return{done:i,value:u}}function n3(){return this}function i3(i){for(var u,f=this;f instanceof _l;){var b=Wr(f);b.__index__=0,b.__values__=n,u?L.__wrapped__=b:u=b;var L=b;f=f.__wrapped__}return L.__wrapped__=i,u}function o3(){var i=this.__wrapped__;if(i instanceof vt){var u=i;return this.__actions__.length&&(u=new vt(this)),u=u.reverse(),u.__actions__.push({func:pd,args:[mf],thisArg:n}),new Yr(u,this.__chain__)}return this.thru(mf)}function a3(){return X0(this.__wrapped__,this.__actions__)}var s3=Zl(function(i,u,f){ot.call(i,f)?++i[f]:ai(i,f,1)});function l3(i,u,f){var b=ct(i)?ku:El;return f&&y(i,u,f)&&(u=n),b(i,Ve(u,3))}function u3(i,u){var f=ct(i)?Gi:Xu;return f(i,Ve(u,3))}var c3=cc(Xl),d3=cc(cp);function f3(i,u){return Ir(gd(i,u),1)}function h3(i,u){return Ir(gd(i,u),ue)}function p3(i,u,f){return f=f===n?1:ft(f),Ir(gd(i,u),f)}function vp(i,u){var f=ct(i)?wn:pn;return f(i,Ve(u,3))}function bp(i,u){var f=ct(i)?H1:kl;return f(i,Ve(u,3))}var g3=Zl(function(i,u,f){ot.call(i,f)?i[f].push(u):ai(i,f,[u])});function v3(i,u,f,b){i=Mn(i)?i:Ql(i),f=f&&!b?ft(f):0;var L=i.length;return f<0&&(f=Gt(L+f,0)),Cd(i)?f<=L&&i.indexOf(u,f)>-1:!!L&&Mo(i,u,f)>-1}var b3=dt(function(i,u,f){var b=-1,L=typeof u=="function",M=Mn(i)?G(i.length):[];return pn(i,function(P){M[++b]=L?fn(u,P,f):Ca(P,u,f)}),M}),m3=Zl(function(i,u,f){ai(i,f,u)});function gd(i,u){var f=ct(i)?At:Sa;return f(i,Ve(u,3))}function y3(i,u,f,b){return i==null?[]:(ct(u)||(u=u==null?[]:[u]),f=b?n:f,ct(f)||(f=f==null?[]:[f]),Nr(i,u,f))}var C3=Zl(function(i,u,f){i[f?0:1].push(u)},function(){return[[],[]]});function w3(i,u,f){var b=ct(i)?Eu:Pu,L=arguments.length<3;return b(i,Ve(u,4),f,L,pn)}function x3(i,u,f){var b=ct(i)?B1:Pu,L=arguments.length<3;return b(i,Ve(u,4),f,L,kl)}function z3(i,u){var f=ct(i)?Gi:Xu;return f(i,md(Ve(u,3)))}function L3(i){var u=ct(i)?Tl:ff;return u(i)}function S3(i,u,f){(f?y(i,u,f):u===n)?u=1:u=ft(u);var b=ct(i)?lo:ho;return b(i,u)}function _3(i){var u=ct(i)?D0:Li;return u(i)}function M3(i){if(i==null)return 0;if(Mn(i))return Cd(i)?Oo(i):i.length;var u=Fr(i);return u==tr||u==it?i.size:Nl(i).length}function T3(i,u,f){var b=ct(i)?_o:hf;return f&&y(i,u,f)&&(u=n),b(i,Ve(u,3))}var O3=dt(function(i,u){if(i==null)return[];var f=u.length;return f>1&&y(i,u[0],u[1])?u=[]:f>2&&y(u[0],u[1],u[2])&&(u=[u[0]]),Nr(i,Ir(u,1),[])}),vd=j1||function(){return Zt.Date.now()};function k3(i,u){if(typeof u!="function")throw new on(h);return i=ft(i),function(){if(--i<1)return u.apply(this,arguments)}}function mp(i,u,f){return u=f?n:u,u=i&&u==null?i.length:u,_n(i,De,n,n,n,n,u)}function yp(i,u){var f;if(typeof u!="function")throw new on(h);return i=ft(i),function(){return--i>0&&(f=u.apply(this,arguments)),i<=1&&(u=n),f}}var Cf=dt(function(i,u,f){var b=ge;if(f.length){var L=Ki(f,Ia(Cf));b|=Oe}return _n(i,b,u,f,L)}),Cp=dt(function(i,u,f){var b=ge|Te;if(f.length){var L=Ki(f,Ia(Cp));b|=Oe}return _n(u,b,i,f,L)});function wp(i,u,f){u=f?n:u;var b=_n(i,be,n,n,n,n,n,u);return b.placeholder=wp.placeholder,b}function xp(i,u,f){u=f?n:u;var b=_n(i,ve,n,n,n,n,n,u);return b.placeholder=xp.placeholder,b}function zp(i,u,f){var b,L,M,P,N,V,ie=0,oe=!1,de=!1,_e=!0;if(typeof i!="function")throw new on(h);u=ui(u)||0,er(f)&&(oe=!!f.leading,de="maxWait"in f,M=de?Gt(ui(f.maxWait)||0,u):M,_e="trailing"in f?!!f.trailing:_e);function He(hr){var Oi=b,qo=L;return b=L=n,ie=hr,P=i.apply(qo,Oi),P}function Xe(hr){return ie=hr,N=Nt(mt,u),oe?He(hr):P}function ht(hr){var Oi=hr-V,qo=hr-ie,Wp=u-Oi;return de?Tr(Wp,M-qo):Wp}function Je(hr){var Oi=hr-V,qo=hr-ie;return V===n||Oi>=u||Oi<0||de&&qo>=M}function mt(){var hr=vd();if(Je(hr))return wt(hr);N=Nt(mt,ht(hr))}function wt(hr){return N=n,_e&&b?He(hr):(b=L=n,P)}function Gn(){N!==n&&Ma(N),ie=0,b=V=L=N=n}function bn(){return N===n?P:wt(vd())}function qn(){var hr=vd(),Oi=Je(hr);if(b=arguments,L=this,V=hr,Oi){if(N===n)return Xe(V);if(de)return Ma(N),N=Nt(mt,u),He(V)}return N===n&&(N=Nt(mt,u)),P}return qn.cancel=Gn,qn.flush=bn,qn}var E3=dt(function(i,u){return F0(i,1,u)}),I3=dt(function(i,u,f){return F0(i,ui(u)||0,f)});function A3(i){return _n(i,Ye)}function bd(i,u){if(typeof i!="function"||u!=null&&typeof u!="function")throw new on(h);var f=function(){var b=arguments,L=u?u.apply(this,b):b[0],M=f.cache;if(M.has(L))return M.get(L);var P=i.apply(this,b);return f.cache=M.set(L,P)||M,P};return f.cache=new(bd.Cache||Qt),f}bd.Cache=Qt;function md(i){if(typeof i!="function")throw new on(h);return function(){var u=arguments;switch(u.length){case 0:return!i.call(this);case 1:return!i.call(this,u[0]);case 2:return!i.call(this,u[0],u[1]);case 3:return!i.call(this,u[0],u[1],u[2])}return!i.apply(this,u)}}function $3(i){return yp(2,i)}var P3=pf(function(i,u){u=u.length==1&&ct(u[0])?At(u[0],Kr(Ve())):At(Ir(u,1),Kr(Ve()));var f=u.length;return dt(function(b){for(var L=-1,M=Tr(b.length,f);++L<M;)b[L]=u[L].call(this,b[L]);return fn(i,this,b)})}),wf=dt(function(i,u){var f=Ki(u,Ia(wf));return _n(i,Oe,n,u,f)}),Lp=dt(function(i,u){var f=Ki(u,Ia(Lp));return _n(i,$e,n,u,f)}),D3=_i(function(i,u){return _n(i,je,n,n,n,u)});function N3(i,u){if(typeof i!="function")throw new on(h);return u=u===n?u:ft(u),dt(i,u)}function R3(i,u){if(typeof i!="function")throw new on(h);return u=u==null?0:Gt(ft(u),0),dt(function(f){var b=f[u],L=po(f,0,u);return b&&qi(L,b),fn(i,this,L)})}function F3(i,u,f){var b=!0,L=!0;if(typeof i!="function")throw new on(h);return er(f)&&(b="leading"in f?!!f.leading:b,L="trailing"in f?!!f.trailing:L),zp(i,u,{leading:b,maxWait:u,trailing:L})}function H3(i){return mp(i,1)}function B3(i,u){return wf(Wl(u),i)}function W3(){if(!arguments.length)return[];var i=arguments[0];return ct(i)?i:[i]}function U3(i){return Xr(i,R)}function V3(i,u){return u=typeof u=="function"?u:n,Xr(i,R,u)}function Z3(i){return Xr(i,D|R)}function G3(i,u){return u=typeof u=="function"?u:n,Xr(i,D|R,u)}function q3(i,u){return u==null||R0(i,u,Vr(u))}function Ti(i,u){return i===u||i!==i&&u!==u}var j3=Dt($l),K3=Dt(function(i,u){return i>=u}),ks=wa(function(){return arguments}())?wa:function(i){return nr(i)&&ot.call(i,"callee")&&!zl.call(i,"callee")},ct=G.isArray,Y3=f0?Kr(f0):uf;function Mn(i){return i!=null&&yd(i.length)&&!Zo(i)}function fr(i){return nr(i)&&Mn(i)}function X3(i){return i===!0||i===!1||nr(i)&&mr(i)==Ge}var Da=cs||If,J3=h0?Kr(h0):xa;function Q3(i){return nr(i)&&i.nodeType===1&&!gc(i)}function e7(i){if(i==null)return!0;if(Mn(i)&&(ct(i)||typeof i=="string"||typeof i.splice=="function"||Da(i)||Jl(i)||ks(i)))return!i.length;var u=Fr(i);if(u==tr||u==it)return!i.size;if(j(i))return!Nl(i).length;for(var f in i)if(ot.call(i,f))return!1;return!0}function t7(i,u){return za(i,u)}function r7(i,u,f){f=typeof f=="function"?f:n;var b=f?f(i,u):n;return b===n?za(i,u,n,f):!!b}function xf(i){if(!nr(i))return!1;var u=mr(i);return u==Ze||u==lt||typeof i.message=="string"&&typeof i.name=="string"&&!gc(i)}function n7(i){return typeof i=="number"&&O0(i)}function Zo(i){if(!er(i))return!1;var u=mr(i);return u==Vt||u==Zr||u==Ne||u==en}function Sp(i){return typeof i=="number"&&i==ft(i)}function yd(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Ae}function er(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function nr(i){return i!=null&&typeof i=="object"}var _p=p0?Kr(p0):U0;function i7(i,u){return i===u||Fo(i,u,Aa(u))}function o7(i,u,f){return f=typeof f=="function"?f:n,Fo(i,u,Aa(u),f)}function a7(i){return Mp(i)&&i!=+i}function s7(i){if(F(i))throw new nt(g);return La(i)}function l7(i){return i===null}function u7(i){return i==null}function Mp(i){return typeof i=="number"||nr(i)&&mr(i)==Qe}function gc(i){if(!nr(i)||mr(i)!=Et)return!1;var u=fa(i);if(u===null)return!0;var f=ot.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&ri.call(f)==G1}var zf=g0?Kr(g0):ys;function c7(i){return Sp(i)&&i>=-Ae&&i<=Ae}var Tp=Tu?Kr(Tu):Cs;function Cd(i){return typeof i=="string"||!ct(i)&&nr(i)&&mr(i)==Z}function Zn(i){return typeof i=="symbol"||nr(i)&&mr(i)==se}var Jl=Ou?Kr(Ou):V0;function d7(i){return i===n}function f7(i){return nr(i)&&Fr(i)==tt}function h7(i){return nr(i)&&mr(i)==sr}var p7=Dt(fo),g7=Dt(function(i,u){return i<=u});function Op(i){if(!i)return[];if(Mn(i))return Cd(i)?xn(i):yr(i);if(eo&&i[eo])return C0(i[eo]());var u=Fr(i),f=u==tr?ml:u==it?yl:Ql;return f(i)}function Go(i){if(!i)return i===0?i:0;if(i=ui(i),i===ue||i===-ue){var u=i<0?-1:1;return u*et}return i===i?i:0}function ft(i){var u=Go(i),f=u%1;return u===u?f?u-f:u:0}function kp(i){return i?No(ft(i),0,yt):0}function ui(i){if(typeof i=="number")return i;if(Zn(i))return pt;if(er(i)){var u=typeof i.valueOf=="function"?i.valueOf():i;i=er(u)?u+"":u}if(typeof i!="string")return i===0?i:+i;i=as(i);var f=Nn.test(i);return f||cn.test(i)?R1(i.slice(2),f?2:8):oa.test(i)?pt:+i}function Ep(i){return an(i,Tn(i))}function v7(i){return i?No(ft(i),-Ae,Ae):i===0?i:0}function Rt(i){return i==null?"":Rr(i)}var b7=Ta(function(i,u){if(j(u)||Mn(u)){an(u,Vr(u),i);return}for(var f in u)ot.call(u,f)&&vs(i,f,u[f])}),Ip=Ta(function(i,u){an(u,Tn(u),i)}),wd=Ta(function(i,u,f,b){an(u,Tn(u),i,b)}),m7=Ta(function(i,u,f,b){an(u,Vr(u),i,b)}),y7=_i(Ku);function C7(i,u){var f=ii(i);return u==null?f:ju(f,u)}var w7=dt(function(i,u){i=Ct(i);var f=-1,b=u.length,L=b>2?u[2]:n;for(L&&y(u[0],u[1],L)&&(b=1);++f<b;)for(var M=u[f],P=Tn(M),N=-1,V=P.length;++N<V;){var ie=P[N],oe=i[ie];(oe===n||Ti(oe,Ji[ie])&&!ot.call(i,ie))&&(i[ie]=M[ie])}return i}),x7=dt(function(i){return i.push(n,dc),fn(Ap,n,i)});function z7(i,u){return ua(i,Ve(u,3),gn)}function L7(i,u){return ua(i,Ve(u,3),Al)}function S7(i,u){return i==null?i:Il(i,Ve(u,3),Tn)}function _7(i,u){return i==null?i:br(i,Ve(u,3),Tn)}function M7(i,u){return i&&gn(i,Ve(u,3))}function T7(i,u){return i&&Al(i,Ve(u,3))}function O7(i){return i==null?[]:ms(i,Vr(i))}function k7(i){return i==null?[]:ms(i,Tn(i))}function Lf(i,u,f){var b=i==null?n:uo(i,u);return b===n?f:b}function E7(i,u){return i!=null&&r(i,u,H0)}function Sf(i,u){return i!=null&&r(i,u,B0)}var I7=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ko.call(u)),i[u]=f},Mf(On)),A7=Bo(function(i,u,f){u!=null&&typeof u.toString!="function"&&(u=ko.call(u)),ot.call(i,u)?i[u].push(f):i[u]=[f]},Ve),$7=dt(Ca);function Vr(i){return Mn(i)?Gu(i):Nl(i)}function Tn(i){return Mn(i)?Gu(i,!0):co(i)}function P7(i,u){var f={};return u=Ve(u,3),gn(i,function(b,L,M){ai(f,u(b,L,M),b)}),f}function D7(i,u){var f={};return u=Ve(u,3),gn(i,function(b,L,M){ai(f,L,u(b,L,M))}),f}var N7=Ta(function(i,u,f){Rl(i,u,f)}),Ap=Ta(function(i,u,f,b){Rl(i,u,f,b)}),R7=_i(function(i,u){var f={};if(i==null)return f;var b=!1;u=At(u,function(M){return M=Vn(M,i),b||(b=M.length>1),M}),an(i,jl(i),f),b&&(f=Xr(f,D|B|R,cd));for(var L=u.length;L--;)zs(f,u[L]);return f});function F7(i,u){return $p(i,md(Ve(u)))}var H7=_i(function(i,u){return i==null?{}:j0(i,u)});function $p(i,u){if(i==null)return{};var f=At(jl(i),function(b){return[b]});return u=Ve(u),K0(i,f,function(b,L){return u(b,L[0])})}function B7(i,u,f){u=Vn(u,i);var b=-1,L=u.length;for(L||(L=1,i=n);++b<L;){var M=i==null?n:i[$t(u[b])];M===n&&(b=L,M=f),i=Zo(M)?M.call(i):M}return i}function W7(i,u,f){return i==null?i:zi(i,u,f)}function U7(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:zi(i,u,f,b)}var Pp=Sn(Vr),Dp=Sn(Tn);function V7(i,u,f){var b=ct(i),L=b||Da(i)||Jl(i);if(u=Ve(u,4),f==null){var M=i&&i.constructor;L?f=b?new M:[]:er(i)?f=Zo(M)?ii(fa(i)):{}:f={}}return(L?wn:gn)(i,function(P,N,V){return u(f,P,N,V)}),f}function Z7(i,u){return i==null?!0:zs(i,u)}function G7(i,u,f){return i==null?i:Bl(i,u,Wl(f))}function q7(i,u,f,b){return b=typeof b=="function"?b:n,i==null?i:Bl(i,u,Wl(f),b)}function Ql(i){return i==null?[]:vl(i,Vr(i))}function j7(i){return i==null?[]:vl(i,Tn(i))}function K7(i,u,f){return f===n&&(f=u,u=n),f!==n&&(f=ui(f),f=f===f?f:0),u!==n&&(u=ui(u),u=u===u?u:0),No(ui(i),u,f)}function Y7(i,u,f){return u=Go(u),f===n?(f=u,u=0):f=Go(f),i=ui(i),ya(i,u,f)}function X7(i,u,f){if(f&&typeof f!="boolean"&&y(i,u,f)&&(u=f=n),f===n&&(typeof u=="boolean"?(f=u,u=n):typeof i=="boolean"&&(f=i,i=n)),i===n&&u===n?(i=0,u=1):(i=Go(i),u===n?(u=i,i=0):u=Go(u)),i>u){var b=i;i=u,u=b}if(f||i%1||u%1){var L=no();return Tr(i+L*(u-i+N1("1e-"+((L+"").length-1))),u)}return Fl(i,u)}var J7=Oa(function(i,u,f){return u=u.toLowerCase(),i+(f?Np(u):u)});function Np(i){return _f(Rt(i).toLowerCase())}function Rp(i){return i=Rt(i),i&&i.replace(Ja,m0).replace(s0,"")}function Q7(i,u,f){i=Rt(i),u=Rr(u);var b=i.length;f=f===n?b:No(ft(f),0,b);var L=f;return f-=u.length,f>=0&&i.slice(f,L)==u}function eb(i){return i=Rt(i),i&&ln.test(i)?i.replace(vr,Z1):i}function tb(i){return i=Rt(i),i&&Xn.test(i)?i.replace(xo,"\\$&"):i}var rb=Oa(function(i,u,f){return i+(f?"-":"")+u.toLowerCase()}),nb=Oa(function(i,u,f){return i+(f?" ":"")+u.toLowerCase()}),ib=ad("toLowerCase");function ob(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;if(!u||b>=u)return i;var L=(u-b)/2;return Gl(ga(L),f)+i+Gl(pa(L),f)}function ab(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;return u&&b<u?i+Gl(u-b,f):i}function sb(i,u,f){i=Rt(i),u=ft(u);var b=u?Oo(i):0;return u&&b<u?Gl(u-b,f)+i:i}function lb(i,u,f){return f||u==null?u=0:u&&(u=+u),ds(Rt(i).replace(zo,""),u||0)}function ub(i,u,f){return(f?y(i,u,f):u===n)?u=1:u=ft(u),tc(Rt(i),u)}function cb(){var i=arguments,u=Rt(i[0]);return i.length<3?u:u.replace(i[1],i[2])}var db=Oa(function(i,u,f){return i+(f?"_":"")+u.toLowerCase()});function fb(i,u,f){return f&&typeof f!="number"&&y(i,u,f)&&(u=f=n),f=f===n?yt:f>>>0,f?(i=Rt(i),i&&(typeof u=="string"||u!=null&&!zf(u))&&(u=Rr(u),!u&&Bn(i))?po(xn(i),0,f):i.split(u,f)):[]}var hb=Oa(function(i,u,f){return i+(f?" ":"")+_f(u)});function pb(i,u,f){return i=Rt(i),f=f==null?0:No(ft(f),0,i.length),u=Rr(u),i.slice(f,f+u.length)==u}function gb(i,u,f){var b=_.templateSettings;f&&y(i,u,f)&&(u=n),i=Rt(i),u=wd({},u,b,ql);var L=wd({},u.imports,b.imports,ql),M=Vr(L),P=vl(L,M),N,V,ie=0,oe=u.interpolate||Bt,de="__p += '",_e=Xi((u.escape||Bt).source+"|"+oe.source+"|"+(oe===ja?mi:Bt).source+"|"+(u.evaluate||Bt).source+"|$","g"),He="//# sourceURL="+(ot.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Mu+"]")+`
|
|
1632
|
+
`;i.replace(_e,function(Je,mt,wt,Gn,bn,qn){return wt||(wt=Gn),de+=i.slice(ie,qn).replace(Ee,y0),mt&&(N=!0,de+=`' +
|
|
1633
1633
|
__e(`+mt+`) +
|
|
1634
1634
|
'`),bn&&(V=!0,de+=`';
|
|
1635
1635
|
`+bn+`;
|
|
@@ -1645,33 +1645,33 @@ __p += '`),wt&&(de+=`' +
|
|
|
1645
1645
|
function print() { __p += __j.call(arguments, '') }
|
|
1646
1646
|
`:`;
|
|
1647
1647
|
`)+de+`return __p
|
|
1648
|
-
}`;var ht=Fp(function(){return Tt(M,He+"return "+de).apply(n,P)});if(ht.source=de,xf(ht))throw ht;return ht}function fb(i){return Rt(i).toLowerCase()}function hb(i){return Rt(i).toUpperCase()}function pb(i,u,f){if(i=Rt(i),i&&(f||u===n))return as(i);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=xn(u),M=qi(b,L),P=vl(b,L)+1;return ho(b,M,P).join("")}function gb(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.slice(0,yl(i)+1);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=vl(b,xn(u))+1;return ho(b,0,L).join("")}function vb(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.replace(zo,"");if(!i||!(u=Rr(u)))return i;var b=xn(i),L=qi(b,xn(u));return ho(b,L).join("")}function bb(i,u){var f=Ce,b=le;if(er(u)){var L="separator"in u?u.separator:L;f="length"in u?ft(u.length):f,b="omission"in u?Rr(u.omission):b}i=Rt(i);var M=i.length;if(Bn(i)){var P=xn(i);M=P.length}if(f>=M)return i;var N=f-Oo(b);if(N<1)return b;var V=P?ho(P,0,N).join(""):i.slice(0,N);if(L===n)return V+b;if(P&&(N+=V.length-N),zf(L)){if(i.slice(N).search(L)){var ie,oe=V;for(L.global||(L=Yi(L.source,Rt(Lo.exec(L))+"g")),L.lastIndex=0;ie=L.exec(oe);)var de=ie.index;V=V.slice(0,de===n?N:de)}}else if(i.indexOf(Rr(L),N)!=N){var _e=V.lastIndexOf(L);_e>-1&&(V=V.slice(0,_e))}return V+b}function mb(i){return i=Rt(i),i&&ia.test(i)?i.replace(Dn,Cl):i}var yb=Oa(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),_f=ad("toUpperCase");function Rp(i,u,f){return i=Rt(i),u=f?n:u,u===n?ei(i)?Wn(i):v0(i):i.match(u)||[]}var Fp=dt(function(i,u){try{return fn(i,n,u)}catch(f){return xf(f)?f:new nt(f)}}),Cb=_i(function(i,u){return wn(u,function(f){f=$t(f),ai(i,f,Cf(i[f],i))}),i});function wb(i){var u=i==null?0:i.length,f=Ve();return i=u?At(i,function(b){if(typeof b[1]!="function")throw new on(h);return[f(b[0]),b[1]]}):[],dt(function(b){for(var L=-1;++L<u;){var M=i[L];if(fn(M[0],this,b))return fn(M[1],this,b)}})}function xb(i){return N0(Xr(i,D))}function Mf(i){return function(){return i}}function zb(i,u){return i==null||i!==i?u:i}var Lb=sd(),Sb=sd(!0);function On(i){return i}function Tf(i){return Z0(typeof i=="function"?i:Xr(i,D))}function _b(i){return G0(Xr(i,D))}function Mb(i,u){return Ju(i,Xr(u,D))}var Tb=dt(function(i,u){return function(f){return Ca(f,i,u)}}),Ob=dt(function(i,u){return function(f){return Ca(i,f,u)}});function Of(i,u,f){var b=Vr(u),L=ms(u,b);f==null&&!(er(u)&&(L.length||!b.length))&&(f=u,u=i,i=this,L=ms(u,Vr(u)));var M=!(er(f)&&"chain"in f)||!!f.chain,P=Zo(i);return wn(L,function(N){var V=u[N];i[N]=V,P&&(i.prototype[N]=function(){var ie=this.__chain__;if(M||ie){var oe=i(this.__wrapped__),de=oe.__actions__=yr(this.__actions__);return de.push({func:V,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return V.apply(i,Gi([this.value()],arguments))})}),i}function Eb(){return Zt._===this&&(Zt._=M0),this}function Ef(){}function kb(i){return i=ft(i),dt(function(u){return q0(u,i)})}var Ib=ka(At),Ab=ka(Eu),$b=ka(_o);function Hp(i){return C(i)?Au($t(i)):df(i)}function Pb(i){return function(u){return i==null?n:lo(i,u)}}var Db=ld(),Nb=ld(!0);function kf(){return[]}function If(){return!1}function Rb(){return{}}function Fb(){return""}function Hb(){return!0}function Bb(i,u){if(i=ft(i),i<1||i>Ae)return[];var f=yt,b=Tr(i,yt);u=Ve(u),i-=yt;for(var L=To(b,u);++f<i;)u(f);return L}function Wb(i){return ct(i)?At(i,$t):Zn(i)?[i]:yr(cr(Rt(i)))}function Ub(i){var u=++Ji;return Rt(i)+u}var Vb=Ss(function(i,u){return i+u},0),Zb=_s("ceil"),Gb=Ss(function(i,u){return i/u},1),qb=_s("floor");function jb(i){return i&&i.length?bs(i,On,Al):n}function Kb(i,u){return i&&i.length?bs(i,Ve(u,2),Al):n}function Yb(i){return Iu(i,On)}function Xb(i,u){return Iu(i,Ve(u,2))}function Jb(i){return i&&i.length?bs(i,On,co):n}function Qb(i,u){return i&&i.length?bs(i,Ve(u,2),co):n}var e9=Ss(function(i,u){return i*u},1),t9=_s("round"),r9=Ss(function(i,u){return i-u},0);function n9(i){return i&&i.length?Du(i,On):0}function i9(i,u){return i&&i.length?Du(i,Ve(u,2)):0}return _.after=_3,_.ary=bp,_.assign=h7,_.assignIn=kp,_.assignInWith=wd,_.assignWith=p7,_.at=g7,_.before=mp,_.bind=Cf,_.bindAll=Cb,_.bindKey=yp,_.castArray=R3,_.chain=pp,_.chunk=$a,_.compact=po,_.concat=Ar,_.cond=wb,_.conforms=xb,_.constant=Mf,_.countBy=n3,_.create=v7,_.curry=Cp,_.curryRight=wp,_.debounce=xp,_.defaults=b7,_.defaultsDeep=m7,_.defer=M3,_.delay=T3,_.difference=si,_.differenceBy=dr,_.differenceWith=pc,_.drop=Mi,_.dropRight=Uo,_.dropRightWhile=Vo,_.dropWhile=Ur,_.fill=Pa,_.filter=o3,_.flatMap=l3,_.flatMapDeep=u3,_.flatMapDepth=c3,_.flatten=cp,_.flattenDeep=i5,_.flattenDepth=o5,_.flip=O3,_.flow=Lb,_.flowRight=Sb,_.fromPairs=a5,_.functions=S7,_.functionsIn=_7,_.groupBy=d3,_.initial=l5,_.intersection=u5,_.intersectionBy=c5,_.intersectionWith=d5,_.invert=T7,_.invertBy=O7,_.invokeMap=h3,_.iteratee=Tf,_.keyBy=p3,_.keys=Vr,_.keysIn=Tn,_.map=gd,_.mapKeys=k7,_.mapValues=I7,_.matches=_b,_.matchesProperty=Mb,_.memoize=bd,_.merge=A7,_.mergeWith=Ip,_.method=Tb,_.methodOf=Ob,_.mixin=Of,_.negate=md,_.nthArg=kb,_.omit=$7,_.omitBy=P7,_.once=E3,_.orderBy=g3,_.over=Ib,_.overArgs=k3,_.overEvery=Ab,_.overSome=$b,_.partial=wf,_.partialRight=zp,_.partition=v3,_.pick=D7,_.pickBy=Ap,_.property=Hp,_.propertyOf=Pb,_.pull=g5,_.pullAll=fp,_.pullAllBy=v5,_.pullAllWith=b5,_.pullAt=m5,_.range=Db,_.rangeRight=Nb,_.rearg=I3,_.reject=y3,_.remove=y5,_.rest=A3,_.reverse=mf,_.sampleSize=w3,_.set=R7,_.setWith=F7,_.shuffle=x3,_.slice=C5,_.sortBy=S3,_.sortedUniq=M5,_.sortedUniqBy=T5,_.split=lb,_.spread=$3,_.tail=O5,_.take=E5,_.takeRight=k5,_.takeRightWhile=I5,_.takeWhile=A5,_.tap=j5,_.throttle=P3,_.thru=pd,_.toArray=Tp,_.toPairs=$p,_.toPairsIn=Pp,_.toPath=Wb,_.toPlainObject=Ep,_.transform=H7,_.unary=D3,_.union=$5,_.unionBy=P5,_.unionWith=D5,_.uniq=N5,_.uniqBy=R5,_.uniqWith=F5,_.unset=B7,_.unzip=yf,_.unzipWith=hp,_.update=W7,_.updateWith=U7,_.values=Jl,_.valuesIn=V7,_.without=H5,_.words=Rp,_.wrap=N3,_.xor=B5,_.xorBy=W5,_.xorWith=U5,_.zip=V5,_.zipObject=Z5,_.zipObjectDeep=G5,_.zipWith=q5,_.entries=$p,_.entriesIn=Pp,_.extend=kp,_.extendWith=wd,Of(_,_),_.add=Vb,_.attempt=Fp,_.camelCase=j7,_.capitalize=Dp,_.ceil=Zb,_.clamp=Z7,_.clone=F3,_.cloneDeep=B3,_.cloneDeepWith=W3,_.cloneWith=H3,_.conformsTo=U3,_.deburr=Np,_.defaultTo=zb,_.divide=Gb,_.endsWith=K7,_.eq=Ti,_.escape=Y7,_.escapeRegExp=X7,_.every=i3,_.find=a3,_.findIndex=Yl,_.findKey=y7,_.findLast=s3,_.findLastIndex=up,_.findLastKey=C7,_.floor=qb,_.forEach=gp,_.forEachRight=vp,_.forIn=w7,_.forInRight=x7,_.forOwn=z7,_.forOwnRight=L7,_.get=Lf,_.gt=V3,_.gte=Z3,_.has=M7,_.hasIn=Sf,_.head=dp,_.identity=On,_.includes=f3,_.indexOf=s5,_.inRange=G7,_.invoke=E7,_.isArguments=Es,_.isArray=ct,_.isArrayBuffer=G3,_.isArrayLike=Mn,_.isArrayLikeObject=fr,_.isBoolean=q3,_.isBuffer=Da,_.isDate=j3,_.isElement=K3,_.isEmpty=Y3,_.isEqual=X3,_.isEqualWith=J3,_.isError=xf,_.isFinite=Q3,_.isFunction=Zo,_.isInteger=Lp,_.isLength=yd,_.isMap=Sp,_.isMatch=e7,_.isMatchWith=t7,_.isNaN=r7,_.isNative=n7,_.isNil=o7,_.isNull=i7,_.isNumber=_p,_.isObject=er,_.isObjectLike=nr,_.isPlainObject=gc,_.isRegExp=zf,_.isSafeInteger=a7,_.isSet=Mp,_.isString=Cd,_.isSymbol=Zn,_.isTypedArray=Xl,_.isUndefined=s7,_.isWeakMap=l7,_.isWeakSet=u7,_.join=f5,_.kebabCase=J7,_.last=li,_.lastIndexOf=h5,_.lowerCase=Q7,_.lowerFirst=eb,_.lt=c7,_.lte=d7,_.max=jb,_.maxBy=Kb,_.mean=Yb,_.meanBy=Xb,_.min=Jb,_.minBy=Qb,_.stubArray=kf,_.stubFalse=If,_.stubObject=Rb,_.stubString=Fb,_.stubTrue=Hb,_.multiply=e9,_.nth=p5,_.noConflict=Eb,_.noop=Ef,_.now=vd,_.pad=tb,_.padEnd=rb,_.padStart=nb,_.parseInt=ib,_.random=q7,_.reduce=b3,_.reduceRight=m3,_.repeat=ob,_.replace=ab,_.result=N7,_.round=t9,_.runInContext=U,_.sample=C3,_.size=z3,_.snakeCase=sb,_.some=L3,_.sortedIndex=w5,_.sortedIndexBy=x5,_.sortedIndexOf=z5,_.sortedLastIndex=L5,_.sortedLastIndexBy=S5,_.sortedLastIndexOf=_5,_.startCase=ub,_.startsWith=cb,_.subtract=r9,_.sum=n9,_.sumBy=i9,_.template=db,_.times=Bb,_.toFinite=Go,_.toInteger=ft,_.toLength=Op,_.toLower=fb,_.toNumber=ui,_.toSafeInteger=f7,_.toString=Rt,_.toUpper=hb,_.trim=pb,_.trimEnd=gb,_.trimStart=vb,_.truncate=bb,_.unescape=mb,_.uniqueId=Ub,_.upperCase=yb,_.upperFirst=_f,_.each=gp,_.eachRight=vp,_.first=dp,Of(_,function(){var i={};return gn(_,function(u,f){ot.call(_.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),_.VERSION=l,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){_[i].placeholder=_}),wn(["drop","take"],function(i,u){vt.prototype[i]=function(f){f=f===n?1:Gt(ft(f),0);var b=this.__filtered__&&!u?new vt(this):this.clone();return b.__filtered__?b.__takeCount__=Tr(f,b.__takeCount__):b.__views__.push({size:Tr(f,yt),type:i+(b.__dir__<0?"Right":"")}),b},vt.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),wn(["filter","map","takeWhile"],function(i,u){var f=u+1,b=f==O||f==Y;vt.prototype[i]=function(L){var M=this.clone();return M.__iteratees__.push({iteratee:Ve(L,3),type:f}),M.__filtered__=M.__filtered__||b,M}}),wn(["head","last"],function(i,u){var f="take"+(u?"Right":"");vt.prototype[i]=function(){return this[f](1).value()[0]}}),wn(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(On)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=dt(function(i,u){return typeof i=="function"?new vt(this):this.map(function(f){return Ca(f,i,u)})}),vt.prototype.reject=function(i){return this.filter(md(Ve(i)))},vt.prototype.slice=function(i,u){i=ft(i);var f=this;return f.__filtered__&&(i>0||u<0)?new vt(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ft(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(yt)},gn(vt.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),L=_[b?"take"+(u=="last"?"Right":""):u],M=b||/^find/.test(u);L&&(_.prototype[u]=function(){var P=this.__wrapped__,N=b?[1]:arguments,V=P instanceof vt,ie=N[0],oe=V||ct(P),de=function(mt){var wt=L.apply(_,Gi([mt],N));return b&&_e?wt[0]:wt};oe&&f&&typeof ie=="function"&&ie.length!=1&&(V=oe=!1);var _e=this.__chain__,He=!!this.__actions__.length,Xe=M&&!_e,ht=V&&!He;if(!M&&oe){P=ht?P:new vt(this);var Je=i.apply(P,N);return Je.__actions__.push({func:pd,args:[de],thisArg:n}),new Yr(Je,_e)}return Xe&&ht?i.apply(this,N):(Je=this.thru(de),Xe?b?Je.value()[0]:Je.value():Je)})}),wn(["pop","push","shift","sort","splice","unshift"],function(i){var u=da[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",b=/^(?:pop|shift)$/.test(i);_.prototype[i]=function(){var L=arguments;if(b&&!this.__chain__){var M=this.value();return u.apply(ct(M)?M:[],L)}return this[f](function(P){return u.apply(ct(P)?P:[],L)})}}),gn(vt.prototype,function(i,u){var f=_[u];if(f){var b=f.name+"";ot.call(ba,b)||(ba[b]=[]),ba[b].push({name:u,func:f})}}),ba[Ls(n,Te).name]=[{name:"wrapper",func:n}],vt.prototype.clone=tf,vt.prototype.reverse=rf,vt.prototype.value=Fu,_.prototype.at=K5,_.prototype.chain=Y5,_.prototype.commit=X5,_.prototype.next=J5,_.prototype.plant=e3,_.prototype.reverse=t3,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=r3,_.prototype.first=_.prototype.head,Qi&&(_.prototype[Qi]=Q5),_},Ki=S0();jr?((jr.exports=Ki)._=Ki,rs._=Ki):Zt._=Ki}).call(nu)})(Gd,Gd.exports);var Wh=Gd.exports;const O8=dv(Wh),E8=o9({__proto__:null,default:O8},[Wh]);let dh=(o=21)=>crypto.getRandomValues(new Uint8Array(o)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");/**
|
|
1648
|
+
}`;var ht=Hp(function(){return Tt(M,He+"return "+de).apply(n,P)});if(ht.source=de,xf(ht))throw ht;return ht}function vb(i){return Rt(i).toLowerCase()}function bb(i){return Rt(i).toUpperCase()}function mb(i,u,f){if(i=Rt(i),i&&(f||u===n))return as(i);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=xn(u),M=ji(b,L),P=bl(b,L)+1;return po(b,M,P).join("")}function yb(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.slice(0,Cl(i)+1);if(!i||!(u=Rr(u)))return i;var b=xn(i),L=bl(b,xn(u))+1;return po(b,0,L).join("")}function Cb(i,u,f){if(i=Rt(i),i&&(f||u===n))return i.replace(zo,"");if(!i||!(u=Rr(u)))return i;var b=xn(i),L=ji(b,xn(u));return po(b,L).join("")}function wb(i,u){var f=Ce,b=le;if(er(u)){var L="separator"in u?u.separator:L;f="length"in u?ft(u.length):f,b="omission"in u?Rr(u.omission):b}i=Rt(i);var M=i.length;if(Bn(i)){var P=xn(i);M=P.length}if(f>=M)return i;var N=f-Oo(b);if(N<1)return b;var V=P?po(P,0,N).join(""):i.slice(0,N);if(L===n)return V+b;if(P&&(N+=V.length-N),zf(L)){if(i.slice(N).search(L)){var ie,oe=V;for(L.global||(L=Xi(L.source,Rt(Lo.exec(L))+"g")),L.lastIndex=0;ie=L.exec(oe);)var de=ie.index;V=V.slice(0,de===n?N:de)}}else if(i.indexOf(Rr(L),N)!=N){var _e=V.lastIndexOf(L);_e>-1&&(V=V.slice(0,_e))}return V+b}function xb(i){return i=Rt(i),i&&ia.test(i)?i.replace(Dn,wl):i}var zb=Oa(function(i,u,f){return i+(f?" ":"")+u.toUpperCase()}),_f=ad("toUpperCase");function Fp(i,u,f){return i=Rt(i),u=f?n:u,u===n?ei(i)?Wn(i):v0(i):i.match(u)||[]}var Hp=dt(function(i,u){try{return fn(i,n,u)}catch(f){return xf(f)?f:new nt(f)}}),Lb=_i(function(i,u){return wn(u,function(f){f=$t(f),ai(i,f,Cf(i[f],i))}),i});function Sb(i){var u=i==null?0:i.length,f=Ve();return i=u?At(i,function(b){if(typeof b[1]!="function")throw new on(h);return[f(b[0]),b[1]]}):[],dt(function(b){for(var L=-1;++L<u;){var M=i[L];if(fn(M[0],this,b))return fn(M[1],this,b)}})}function _b(i){return N0(Xr(i,D))}function Mf(i){return function(){return i}}function Mb(i,u){return i==null||i!==i?u:i}var Tb=sd(),Ob=sd(!0);function On(i){return i}function Tf(i){return Z0(typeof i=="function"?i:Xr(i,D))}function kb(i){return G0(Xr(i,D))}function Eb(i,u){return Ju(i,Xr(u,D))}var Ib=dt(function(i,u){return function(f){return Ca(f,i,u)}}),Ab=dt(function(i,u){return function(f){return Ca(i,f,u)}});function Of(i,u,f){var b=Vr(u),L=ms(u,b);f==null&&!(er(u)&&(L.length||!b.length))&&(f=u,u=i,i=this,L=ms(u,Vr(u)));var M=!(er(f)&&"chain"in f)||!!f.chain,P=Zo(i);return wn(L,function(N){var V=u[N];i[N]=V,P&&(i.prototype[N]=function(){var ie=this.__chain__;if(M||ie){var oe=i(this.__wrapped__),de=oe.__actions__=yr(this.__actions__);return de.push({func:V,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return V.apply(i,qi([this.value()],arguments))})}),i}function $b(){return Zt._===this&&(Zt._=M0),this}function kf(){}function Pb(i){return i=ft(i),dt(function(u){return q0(u,i)})}var Db=Ea(At),Nb=Ea(ku),Rb=Ea(_o);function Bp(i){return C(i)?Au($t(i)):df(i)}function Fb(i){return function(u){return i==null?n:uo(i,u)}}var Hb=ld(),Bb=ld(!0);function Ef(){return[]}function If(){return!1}function Wb(){return{}}function Ub(){return""}function Vb(){return!0}function Zb(i,u){if(i=ft(i),i<1||i>Ae)return[];var f=yt,b=Tr(i,yt);u=Ve(u),i-=yt;for(var L=To(b,u);++f<i;)u(f);return L}function Gb(i){return ct(i)?At(i,$t):Zn(i)?[i]:yr(cr(Rt(i)))}function qb(i){var u=++Qi;return Rt(i)+u}var jb=Ss(function(i,u){return i+u},0),Kb=_s("ceil"),Yb=Ss(function(i,u){return i/u},1),Xb=_s("floor");function Jb(i){return i&&i.length?bs(i,On,$l):n}function Qb(i,u){return i&&i.length?bs(i,Ve(u,2),$l):n}function e9(i){return Iu(i,On)}function t9(i,u){return Iu(i,Ve(u,2))}function r9(i){return i&&i.length?bs(i,On,fo):n}function n9(i,u){return i&&i.length?bs(i,Ve(u,2),fo):n}var i9=Ss(function(i,u){return i*u},1),o9=_s("round"),a9=Ss(function(i,u){return i-u},0);function s9(i){return i&&i.length?Du(i,On):0}function l9(i,u){return i&&i.length?Du(i,Ve(u,2)):0}return _.after=k3,_.ary=mp,_.assign=b7,_.assignIn=Ip,_.assignInWith=wd,_.assignWith=m7,_.at=y7,_.before=yp,_.bind=Cf,_.bindAll=Lb,_.bindKey=Cp,_.castArray=W3,_.chain=gp,_.chunk=$a,_.compact=go,_.concat=Ar,_.cond=Sb,_.conforms=_b,_.constant=Mf,_.countBy=s3,_.create=C7,_.curry=wp,_.curryRight=xp,_.debounce=zp,_.defaults=w7,_.defaultsDeep=x7,_.defer=E3,_.delay=I3,_.difference=si,_.differenceBy=dr,_.differenceWith=pc,_.drop=Mi,_.dropRight=Uo,_.dropRightWhile=Vo,_.dropWhile=Ur,_.fill=Pa,_.filter=u3,_.flatMap=f3,_.flatMapDeep=h3,_.flatMapDepth=p3,_.flatten=dp,_.flattenDeep=l5,_.flattenDepth=u5,_.flip=A3,_.flow=Tb,_.flowRight=Ob,_.fromPairs=c5,_.functions=O7,_.functionsIn=k7,_.groupBy=g3,_.initial=f5,_.intersection=h5,_.intersectionBy=p5,_.intersectionWith=g5,_.invert=I7,_.invertBy=A7,_.invokeMap=b3,_.iteratee=Tf,_.keyBy=m3,_.keys=Vr,_.keysIn=Tn,_.map=gd,_.mapKeys=P7,_.mapValues=D7,_.matches=kb,_.matchesProperty=Eb,_.memoize=bd,_.merge=N7,_.mergeWith=Ap,_.method=Ib,_.methodOf=Ab,_.mixin=Of,_.negate=md,_.nthArg=Pb,_.omit=R7,_.omitBy=F7,_.once=$3,_.orderBy=y3,_.over=Db,_.overArgs=P3,_.overEvery=Nb,_.overSome=Rb,_.partial=wf,_.partialRight=Lp,_.partition=C3,_.pick=H7,_.pickBy=$p,_.property=Bp,_.propertyOf=Fb,_.pull=y5,_.pullAll=hp,_.pullAllBy=C5,_.pullAllWith=w5,_.pullAt=x5,_.range=Hb,_.rangeRight=Bb,_.rearg=D3,_.reject=z3,_.remove=z5,_.rest=N3,_.reverse=mf,_.sampleSize=S3,_.set=W7,_.setWith=U7,_.shuffle=_3,_.slice=L5,_.sortBy=O3,_.sortedUniq=E5,_.sortedUniqBy=I5,_.split=fb,_.spread=R3,_.tail=A5,_.take=$5,_.takeRight=P5,_.takeRightWhile=D5,_.takeWhile=N5,_.tap=J5,_.throttle=F3,_.thru=pd,_.toArray=Op,_.toPairs=Pp,_.toPairsIn=Dp,_.toPath=Gb,_.toPlainObject=Ep,_.transform=V7,_.unary=H3,_.union=R5,_.unionBy=F5,_.unionWith=H5,_.uniq=B5,_.uniqBy=W5,_.uniqWith=U5,_.unset=Z7,_.unzip=yf,_.unzipWith=pp,_.update=G7,_.updateWith=q7,_.values=Ql,_.valuesIn=j7,_.without=V5,_.words=Fp,_.wrap=B3,_.xor=Z5,_.xorBy=G5,_.xorWith=q5,_.zip=j5,_.zipObject=K5,_.zipObjectDeep=Y5,_.zipWith=X5,_.entries=Pp,_.entriesIn=Dp,_.extend=Ip,_.extendWith=wd,Of(_,_),_.add=jb,_.attempt=Hp,_.camelCase=J7,_.capitalize=Np,_.ceil=Kb,_.clamp=K7,_.clone=U3,_.cloneDeep=Z3,_.cloneDeepWith=G3,_.cloneWith=V3,_.conformsTo=q3,_.deburr=Rp,_.defaultTo=Mb,_.divide=Yb,_.endsWith=Q7,_.eq=Ti,_.escape=eb,_.escapeRegExp=tb,_.every=l3,_.find=c3,_.findIndex=Xl,_.findKey=z7,_.findLast=d3,_.findLastIndex=cp,_.findLastKey=L7,_.floor=Xb,_.forEach=vp,_.forEachRight=bp,_.forIn=S7,_.forInRight=_7,_.forOwn=M7,_.forOwnRight=T7,_.get=Lf,_.gt=j3,_.gte=K3,_.has=E7,_.hasIn=Sf,_.head=fp,_.identity=On,_.includes=v3,_.indexOf=d5,_.inRange=Y7,_.invoke=$7,_.isArguments=ks,_.isArray=ct,_.isArrayBuffer=Y3,_.isArrayLike=Mn,_.isArrayLikeObject=fr,_.isBoolean=X3,_.isBuffer=Da,_.isDate=J3,_.isElement=Q3,_.isEmpty=e7,_.isEqual=t7,_.isEqualWith=r7,_.isError=xf,_.isFinite=n7,_.isFunction=Zo,_.isInteger=Sp,_.isLength=yd,_.isMap=_p,_.isMatch=i7,_.isMatchWith=o7,_.isNaN=a7,_.isNative=s7,_.isNil=u7,_.isNull=l7,_.isNumber=Mp,_.isObject=er,_.isObjectLike=nr,_.isPlainObject=gc,_.isRegExp=zf,_.isSafeInteger=c7,_.isSet=Tp,_.isString=Cd,_.isSymbol=Zn,_.isTypedArray=Jl,_.isUndefined=d7,_.isWeakMap=f7,_.isWeakSet=h7,_.join=v5,_.kebabCase=rb,_.last=li,_.lastIndexOf=b5,_.lowerCase=nb,_.lowerFirst=ib,_.lt=p7,_.lte=g7,_.max=Jb,_.maxBy=Qb,_.mean=e9,_.meanBy=t9,_.min=r9,_.minBy=n9,_.stubArray=Ef,_.stubFalse=If,_.stubObject=Wb,_.stubString=Ub,_.stubTrue=Vb,_.multiply=i9,_.nth=m5,_.noConflict=$b,_.noop=kf,_.now=vd,_.pad=ob,_.padEnd=ab,_.padStart=sb,_.parseInt=lb,_.random=X7,_.reduce=w3,_.reduceRight=x3,_.repeat=ub,_.replace=cb,_.result=B7,_.round=o9,_.runInContext=U,_.sample=L3,_.size=M3,_.snakeCase=db,_.some=T3,_.sortedIndex=S5,_.sortedIndexBy=_5,_.sortedIndexOf=M5,_.sortedLastIndex=T5,_.sortedLastIndexBy=O5,_.sortedLastIndexOf=k5,_.startCase=hb,_.startsWith=pb,_.subtract=a9,_.sum=s9,_.sumBy=l9,_.template=gb,_.times=Zb,_.toFinite=Go,_.toInteger=ft,_.toLength=kp,_.toLower=vb,_.toNumber=ui,_.toSafeInteger=v7,_.toString=Rt,_.toUpper=bb,_.trim=mb,_.trimEnd=yb,_.trimStart=Cb,_.truncate=wb,_.unescape=xb,_.uniqueId=qb,_.upperCase=zb,_.upperFirst=_f,_.each=vp,_.eachRight=bp,_.first=fp,Of(_,function(){var i={};return gn(_,function(u,f){ot.call(_.prototype,f)||(i[f]=u)}),i}(),{chain:!1}),_.VERSION=l,wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){_[i].placeholder=_}),wn(["drop","take"],function(i,u){vt.prototype[i]=function(f){f=f===n?1:Gt(ft(f),0);var b=this.__filtered__&&!u?new vt(this):this.clone();return b.__filtered__?b.__takeCount__=Tr(f,b.__takeCount__):b.__views__.push({size:Tr(f,yt),type:i+(b.__dir__<0?"Right":"")}),b},vt.prototype[i+"Right"]=function(f){return this.reverse()[i](f).reverse()}}),wn(["filter","map","takeWhile"],function(i,u){var f=u+1,b=f==O||f==Y;vt.prototype[i]=function(L){var M=this.clone();return M.__iteratees__.push({iteratee:Ve(L,3),type:f}),M.__filtered__=M.__filtered__||b,M}}),wn(["head","last"],function(i,u){var f="take"+(u?"Right":"");vt.prototype[i]=function(){return this[f](1).value()[0]}}),wn(["initial","tail"],function(i,u){var f="drop"+(u?"":"Right");vt.prototype[i]=function(){return this.__filtered__?new vt(this):this[f](1)}}),vt.prototype.compact=function(){return this.filter(On)},vt.prototype.find=function(i){return this.filter(i).head()},vt.prototype.findLast=function(i){return this.reverse().find(i)},vt.prototype.invokeMap=dt(function(i,u){return typeof i=="function"?new vt(this):this.map(function(f){return Ca(f,i,u)})}),vt.prototype.reject=function(i){return this.filter(md(Ve(i)))},vt.prototype.slice=function(i,u){i=ft(i);var f=this;return f.__filtered__&&(i>0||u<0)?new vt(f):(i<0?f=f.takeRight(-i):i&&(f=f.drop(i)),u!==n&&(u=ft(u),f=u<0?f.dropRight(-u):f.take(u-i)),f)},vt.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},vt.prototype.toArray=function(){return this.take(yt)},gn(vt.prototype,function(i,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),b=/^(?:head|last)$/.test(u),L=_[b?"take"+(u=="last"?"Right":""):u],M=b||/^find/.test(u);L&&(_.prototype[u]=function(){var P=this.__wrapped__,N=b?[1]:arguments,V=P instanceof vt,ie=N[0],oe=V||ct(P),de=function(mt){var wt=L.apply(_,qi([mt],N));return b&&_e?wt[0]:wt};oe&&f&&typeof ie=="function"&&ie.length!=1&&(V=oe=!1);var _e=this.__chain__,He=!!this.__actions__.length,Xe=M&&!_e,ht=V&&!He;if(!M&&oe){P=ht?P:new vt(this);var Je=i.apply(P,N);return Je.__actions__.push({func:pd,args:[de],thisArg:n}),new Yr(Je,_e)}return Xe&&ht?i.apply(this,N):(Je=this.thru(de),Xe?b?Je.value()[0]:Je.value():Je)})}),wn(["pop","push","shift","sort","splice","unshift"],function(i){var u=da[i],f=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",b=/^(?:pop|shift)$/.test(i);_.prototype[i]=function(){var L=arguments;if(b&&!this.__chain__){var M=this.value();return u.apply(ct(M)?M:[],L)}return this[f](function(P){return u.apply(ct(P)?P:[],L)})}}),gn(vt.prototype,function(i,u){var f=_[u];if(f){var b=f.name+"";ot.call(ba,b)||(ba[b]=[]),ba[b].push({name:u,func:f})}}),ba[Ls(n,Te).name]=[{name:"wrapper",func:n}],vt.prototype.clone=tf,vt.prototype.reverse=rf,vt.prototype.value=Fu,_.prototype.at=Q5,_.prototype.chain=e3,_.prototype.commit=t3,_.prototype.next=r3,_.prototype.plant=i3,_.prototype.reverse=o3,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=a3,_.prototype.first=_.prototype.head,eo&&(_.prototype[eo]=n3),_},Yi=S0();jr?((jr.exports=Yi)._=Yi,rs._=Yi):Zt._=Yi}).call(iu)})(Gd,Gd.exports);var Uh=Gd.exports;const A8=gv(Uh),$8=u9({__proto__:null,default:A8},[Uh]);let fh=(o=21)=>crypto.getRandomValues(new Uint8Array(o)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");/**
|
|
1649
1649
|
* @license
|
|
1650
1650
|
* Copyright 2020 Google LLC
|
|
1651
1651
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1652
|
-
*/const{I:
|
|
1652
|
+
*/const{I:P8}=v9,z2=()=>document.createComment(""),Cc=(o,t,n)=>{var l;const c=o._$AA.parentNode,g=t===void 0?o._$AB:t._$AA;if(n===void 0){const h=c.insertBefore(z2(),g),x=c.insertBefore(z2(),g);n=new P8(h,x,o,o.options)}else{const h=n._$AB.nextSibling,x=n._$AM,z=x!==o;if(z){let S;(l=n._$AQ)===null||l===void 0||l.call(n,o),n._$AM=o,n._$AP!==void 0&&(S=o._$AU)!==x._$AU&&n._$AP(S)}if(h!==g||z){let S=n._$AA;for(;S!==h;){const E=S.nextSibling;c.insertBefore(S,g),S=E}}}return n},$s=(o,t,n=o)=>(o._$AI(t,n),o),D8={},N8=(o,t=D8)=>o._$AH=t,R8=o=>o._$AH,Zf=o=>{var t;(t=o._$AP)===null||t===void 0||t.call(o,!1,!0);let n=o._$AA;const l=o._$AB.nextSibling;for(;n!==l;){const c=n.nextSibling;n.remove(),n=c}};/**
|
|
1653
1653
|
* @license
|
|
1654
1654
|
* Copyright 2017 Google LLC
|
|
1655
1655
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1656
|
-
*/const
|
|
1656
|
+
*/const L2=(o,t,n)=>{const l=new Map;for(let c=t;c<=n;c++)l.set(o[c],c);return l},F8=l1(class extends u1{constructor(o){if(super(o),o.type!==s1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,t,n){let l;n===void 0?n=t:t!==void 0&&(l=t);const c=[],g=[];let h=0;for(const x of o)c[h]=l?l(x,h):h,g[h]=n(x,h),h++;return{values:g,keys:c}}render(o,t,n){return this.dt(o,t,n).values}update(o,[t,n,l]){var c;const g=R8(o),{values:h,keys:x}=this.dt(t,n,l);if(!Array.isArray(g))return this.ht=x,h;const z=(c=this.ht)!==null&&c!==void 0?c:this.ht=[],S=[];let E,D,B=0,R=g.length-1,J=0,pe=h.length-1;for(;B<=R&&J<=pe;)if(g[B]===null)B++;else if(g[R]===null)R--;else if(z[B]===x[J])S[J]=$s(g[B],h[J]),B++,J++;else if(z[R]===x[pe])S[pe]=$s(g[R],h[pe]),R--,pe--;else if(z[B]===x[pe])S[pe]=$s(g[B],h[pe]),Cc(o,S[pe+1],g[B]),B++,pe--;else if(z[R]===x[J])S[J]=$s(g[R],h[J]),Cc(o,g[B],g[R]),R--,J++;else if(E===void 0&&(E=L2(x,J,pe),D=L2(z,B,R)),E.has(z[B]))if(E.has(z[R])){const ge=D.get(x[J]),Te=ge!==void 0?g[ge]:null;if(Te===null){const Ie=Cc(o,g[B]);$s(Ie,h[J]),S[J]=Ie}else S[J]=$s(Te,h[J]),Cc(o,g[B],Te),g[ge]=null;J++}else Zf(g[R]),R--;else Zf(g[B]),B++;for(;J<=pe;){const ge=Cc(o,S[pe+1]);$s(ge,h[J]),S[J++]=ge}for(;B<=R;){const ge=g[B++];ge!==null&&Zf(ge)}return this.ht=x,N8(o,S),Yo}});/**
|
|
1657
1657
|
* @license
|
|
1658
1658
|
* Copyright 2018 Google LLC
|
|
1659
1659
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1660
|
-
*/const
|
|
1660
|
+
*/const vv="important",H8=" !"+vv,B8=l1(class extends u1{constructor(o){var t;if(super(o),o.type!==s1.ATTRIBUTE||o.name!=="style"||((t=o.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,n)=>{const l=o[n];return l==null?t:t+`${n=n.includes("-")?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${l};`},"")}update(o,[t]){const{style:n}=o.element;if(this.ut===void 0){this.ut=new Set;for(const l in t)this.ut.add(l);return this.render(t)}this.ut.forEach(l=>{t[l]==null&&(this.ut.delete(l),l.includes("-")?n.removeProperty(l):n[l]="")});for(const l in t){const c=t[l];if(c!=null){this.ut.add(l);const g=typeof c=="string"&&c.endsWith(H8);l.includes("-")||g?n.setProperty(l,g?c.slice(0,-11):c,g?vv:""):n[l]=c}}return Yo}});var W8=Object.defineProperty,U8=Object.getOwnPropertyDescriptor,An=(o,t,n,l)=>{for(var c=l>1?void 0:l?U8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&W8(t,n,c),c};const Vh=Le("virtual-list");exports.VirtualList=class extends Ue{constructor(){super(...arguments),this.items=[],this.itemMinHeight=32,this.overscan=50,this.renderItem=(t,n)=>q`
|
|
1661
1661
|
<div
|
|
1662
1662
|
class="default-render-item"
|
|
1663
1663
|
style="min-height: ${this.itemMinHeight}px"
|
|
1664
1664
|
>
|
|
1665
1665
|
Item ${n}: ${JSON.stringify(t)}
|
|
1666
1666
|
</div>
|
|
1667
|
-
`,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(t){super.updated(t),this.canSync(t)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((t,n)=>t+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const t={};let n=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{t[c]?t[c]++:t[c]=1,t[c]>l&&(n=c,l=t[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(t){return["items","renderItem"].reduce((n,l)=>n||t.has(l),!1)}sumOfHeightsToIndex(t){return this.itemHeights.slice(0,t).reduce((n,l)=>(n+=l,n),0)}syncVisibleItems(){this.resetItems();for(let t=this.rollingStartIndex;t<=this.rollingEndIndex;t++){const n={position:"absolute",top:`${this.sumOfHeightsToIndex(t)}px`,width:"100%"},l=this.renderItem(this.items[t],t);if(!this.itemIdentifier){const h=
|
|
1668
|
-
<div class="item-wrapper" style=${
|
|
1667
|
+
`,this.currentScrollTop=0,this.endIndex=0,this.innerHeight=0,this.itemHeights=[],this.itemIdentifier="",this.originalItemsCount=0,this.currentItemsCount=0,this.visibleItems=[]}connectedCallback(){super.connectedCallback(),this.sync()}async sync(){this.originalItemsCount=this.items.length,this.itemHeights=Array(this.originalItemsCount).fill(this.itemMinHeight),await this.updateComplete,this.syncVisibleItems()}updated(t){super.updated(t),this.canSync(t)&&this.sync()}get estimatedInnerHeight(){return this.estimatedItemMinHeight*this.currentItemsCount}get estimatedItemMinHeight(){return Math.min(this.itemHeightMean,this.slicedItemHeightMode,this.itemMinHeight)}get itemHeightMean(){return this.itemHeights.reduce((t,n)=>t+n,0)/this.originalItemsCount}get slicedItemHeightMode(){const t={};let n=0,l=0;return this.itemHeights.slice(0,this.overscan).forEach(c=>{t[c]?t[c]++:t[c]=1,t[c]>l&&(n=c,l=t[c])}),n}resetItems(){this.visibleItems=[],this.currentItemsCount=this.items.length,this.endIndex=this.currentItemsCount-1,this.innerHeight=this.estimatedInnerHeight}canSync(t){return["items","renderItem"].reduce((n,l)=>n||t.has(l),!1)}sumOfHeightsToIndex(t){return this.itemHeights.slice(0,t).reduce((n,l)=>(n+=l,n),0)}syncVisibleItems(){this.resetItems();for(let t=this.rollingStartIndex;t<=this.rollingEndIndex;t++){const n={position:"absolute",top:`${this.sumOfHeightsToIndex(t)}px`,width:"100%"},l=this.renderItem(this.items[t],t);if(!this.itemIdentifier){const h=Dg(l,new DocumentFragment).parentNode.firstElementChild,x=h==null?void 0:h.tagName.toLowerCase(),z=h==null?void 0:h.className;this.itemIdentifier=`${x}${z?`.${z}`:""}`}const c=q`
|
|
1668
|
+
<div class="item-wrapper" style=${B8(n)}>
|
|
1669
1669
|
${l}
|
|
1670
1670
|
</div>
|
|
1671
|
-
`;this.visibleItems.push({index:t,item:c})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const t=[...this.list.children].map(n=>n.firstElementChild);this.dispatchEvent(new
|
|
1671
|
+
`;this.visibleItems.push({index:t,item:c})}this.updateItemHeights(),this.emitUpdate()}async emitUpdate(){await this.updateComplete;const t=[...this.list.children].map(n=>n.firstElementChild);this.dispatchEvent(new bv({detail:{itemElements:t}}))}async updateItemHeights(){await this.updateComplete,this.visibleItems.forEach(({index:t},n)=>{var l,c;this.itemHeights[t]=((c=(l=this.visibleItemElements)==null?void 0:l[n])==null?void 0:c.getBoundingClientRect().height)||this.itemHeights[t]})}get visibleItemElements(){var t;if(!this.itemIdentifier)throw new Error("Each list item should be wrapped in a single layout element. Check your renderItem template.");return(t=this.shadowRoot)==null?void 0:t.querySelectorAll(this.itemIdentifier)}handleScroll(t){var n;this.currentScrollTop=(n=t.currentTarget)==null?void 0:n.scrollTop,this.syncVisibleItems()}get rollingStartIndex(){const t=Math.floor(this.currentScrollTop/this.estimatedItemMinHeight),n=Math.min(this.overscan,t);return t-n}get rollingEndIndex(){const t=Math.min(this.endIndex,Math.floor((this.currentScrollTop+this.containerHeight)/this.estimatedItemMinHeight)),n=Math.min(this.overscan,this.endIndex-t);return t+n}get containerHeight(){return this.getBoundingClientRect().height}render(){return this.updateItemHeights(),q`
|
|
1672
1672
|
<div class="container" @scroll=${this.handleScroll}>
|
|
1673
1673
|
<div class="list" style="height: ${this.innerHeight}px">
|
|
1674
|
-
${
|
|
1674
|
+
${F8(this.visibleItems,({index:t})=>t,({item:t})=>t)}
|
|
1675
1675
|
</div>
|
|
1676
1676
|
</div>
|
|
1677
1677
|
`}};exports.VirtualList.styles=[fe`
|
|
@@ -1688,7 +1688,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1688
1688
|
.list {
|
|
1689
1689
|
position: relative;
|
|
1690
1690
|
}
|
|
1691
|
-
`];An([H({type:Array})],exports.VirtualList.prototype,"items",2);An([H({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);An([H({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);An([H({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);An([Be()],exports.VirtualList.prototype,"currentScrollTop",2);An([Be()],exports.VirtualList.prototype,"endIndex",2);An([Be()],exports.VirtualList.prototype,"innerHeight",2);An([Be()],exports.VirtualList.prototype,"itemHeights",2);An([Be()],exports.VirtualList.prototype,"itemIdentifier",2);An([Be()],exports.VirtualList.prototype,"originalItemsCount",2);An([Be()],exports.VirtualList.prototype,"currentItemsCount",2);An([Be()],exports.VirtualList.prototype,"visibleItems",2);An([
|
|
1691
|
+
`];An([H({type:Array})],exports.VirtualList.prototype,"items",2);An([H({attribute:"item-min-height",type:Number})],exports.VirtualList.prototype,"itemMinHeight",2);An([H({type:Number,attribute:"overscan"})],exports.VirtualList.prototype,"overscan",2);An([H({attribute:!1})],exports.VirtualList.prototype,"renderItem",2);An([Be()],exports.VirtualList.prototype,"currentScrollTop",2);An([Be()],exports.VirtualList.prototype,"endIndex",2);An([Be()],exports.VirtualList.prototype,"innerHeight",2);An([Be()],exports.VirtualList.prototype,"itemHeights",2);An([Be()],exports.VirtualList.prototype,"itemIdentifier",2);An([Be()],exports.VirtualList.prototype,"originalItemsCount",2);An([Be()],exports.VirtualList.prototype,"currentItemsCount",2);An([Be()],exports.VirtualList.prototype,"visibleItems",2);An([Ri(".list")],exports.VirtualList.prototype,"list",2);exports.VirtualList=An([ee(Vh)],exports.VirtualList);class bv extends CustomEvent{constructor(t={}){super("brz-virtual-list-update",{bubbles:!0,composed:!0,...t})}}const mv=Le("record-field"),yv=Le("record-field-label"),V8=["x-small","small","medium","large","x-large","auto","full"],Z8=["side","top"],G8=fe`
|
|
1692
1692
|
.size-x-small {
|
|
1693
1693
|
width: 80px;
|
|
1694
1694
|
}
|
|
@@ -1712,7 +1712,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1712
1712
|
.size-full {
|
|
1713
1713
|
width: 100%;
|
|
1714
1714
|
}
|
|
1715
|
-
`,
|
|
1715
|
+
`,q8=fe`
|
|
1716
1716
|
:host {
|
|
1717
1717
|
display: block;
|
|
1718
1718
|
}
|
|
@@ -1786,7 +1786,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1786
1786
|
:host([label-position='side']) .value.size-auto {
|
|
1787
1787
|
flex-grow: 1;
|
|
1788
1788
|
}
|
|
1789
|
-
`,
|
|
1789
|
+
`,j8=fe`
|
|
1790
1790
|
:host {
|
|
1791
1791
|
display: inline-flex;
|
|
1792
1792
|
color: var(--brz-color-neutral-850);
|
|
@@ -1794,9 +1794,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1794
1794
|
line-height: var(--brz-line-height);
|
|
1795
1795
|
gap: var(--brz-spacing-1);
|
|
1796
1796
|
}
|
|
1797
|
-
`;var
|
|
1797
|
+
`;var K8=Object.defineProperty,Y8=Object.getOwnPropertyDescriptor,ta=(o,t,n,l)=>{for(var c=l>1?void 0:l?Y8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&K8(t,n,c),c};exports.RecordField=class extends Ue{constructor(){super(...arguments),this.labelPosition="top",this.size="medium",this.hasLabel=!1,this.hasLabelRight=!1,this.isValueMultiline=!1}updated(t){super.updated(t),t.has("labelPosition")&&this.setLabelState(),t.has("size")&&this.checkIfMultiline()}async setLabelState(){await this.updateComplete,this.hasLabel=!!this.slottedLabel.length&&!this.slottedLabel[0].hidden,this.hasLabelRight=!!this.slottedLabelRight.length&&!this.slottedLabelRight[0].hidden}checkIfMultiline(){this.isValueMultiline=this.value.clientHeight>=2*20&&this.value.clientHeight%20===0}get sizeClass(){return`size-${this.size}`}get labelRightRowTemplate(){return q`
|
|
1798
1798
|
<brz-split-row
|
|
1799
|
-
class=${
|
|
1799
|
+
class=${kn({[this.sizeClass]:!0,label:!0,"label-right-row":!0,hidden:!this.hasLabelRight})}
|
|
1800
1800
|
>
|
|
1801
1801
|
${this.labelRightTemplate}
|
|
1802
1802
|
</brz-split-row>
|
|
@@ -1805,28 +1805,28 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1805
1805
|
|
|
1806
1806
|
<div class=${this.labelPosition==="top"?this.sizeClass:"container"}>
|
|
1807
1807
|
<brz-split-row
|
|
1808
|
-
class=${
|
|
1808
|
+
class=${kn({label:!0,hidden:this.labelPosition==="top"&&!this.hasLabel&&!this.hasLabelRight,[this.sizeClass]:this.labelPosition==="top"&&this.hasLabelRight})}
|
|
1809
1809
|
>
|
|
1810
1810
|
<slot name="label" slot="left"></slot>
|
|
1811
1811
|
${this.labelPosition==="top"?this.labelRightTemplate:null}
|
|
1812
1812
|
</brz-split-row>
|
|
1813
1813
|
|
|
1814
1814
|
<div
|
|
1815
|
-
class=${
|
|
1815
|
+
class=${kn({value:!0,multiline:this.isValueMultiline,[this.sizeClass]:!0})}
|
|
1816
1816
|
>
|
|
1817
1817
|
${this.valueTemplate}
|
|
1818
1818
|
</div>
|
|
1819
1819
|
</div>
|
|
1820
|
-
`}};exports.RecordField.styles=[
|
|
1820
|
+
`}};exports.RecordField.styles=[q8,G8];ta([H({type:String,attribute:"label-position",reflect:!0})],exports.RecordField.prototype,"labelPosition",2);ta([H({type:String,reflect:!0})],exports.RecordField.prototype,"size",2);ta([Be()],exports.RecordField.prototype,"hasLabel",2);ta([Be()],exports.RecordField.prototype,"hasLabelRight",2);ta([Be()],exports.RecordField.prototype,"isValueMultiline",2);ta([Ri(".value")],exports.RecordField.prototype,"value",2);ta([Jo({slot:"label"})],exports.RecordField.prototype,"slottedLabel",2);ta([Jo({slot:"label-right"})],exports.RecordField.prototype,"slottedLabelRight",2);exports.RecordField=ta([ee(mv)],exports.RecordField);var X8=Object.defineProperty,J8=Object.getOwnPropertyDescriptor,Zh=(o,t,n,l)=>{for(var c=l>1?void 0:l?J8(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&X8(t,n,c),c};exports.RecordFieldLabel=class extends Ue{constructor(){super(...arguments),this.hasContent=!1}connectedCallback(){super.connectedCallback(),this.slot="label"}updated(t){super.updated(t),this.setState()}async setState(){await this.updateComplete,this.hasContent=!!this.defaultSlot.length,this.hidden=this.hidden||!this.hasContent}render(){return q` <slot></slot> `}};exports.RecordFieldLabel.styles=[j8];Zh([Be()],exports.RecordFieldLabel.prototype,"hasContent",2);Zh([Jo()],exports.RecordFieldLabel.prototype,"defaultSlot",2);exports.RecordFieldLabel=Zh([ee(yv)],exports.RecordFieldLabel);var Q8=Object.defineProperty,ey=Object.getOwnPropertyDescriptor,Za=(o,t,n,l)=>{for(var c=l>1?void 0:l?ey(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Q8(t,n,c),c};class Yn extends Ue{constructor(){super(...arguments),this.disabled=!1,this.required=!1,this.invalid=!1,this.name="",this.id="input",this.useProxy=!1}connectedCallback(){super.connectedCallback(),this.useProxy&&this.createProxyInput()}onInput(t){this.value=t.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(t){super.updated(t),this.useProxy&&this.updateProxyInput()}}Yn.shadowRootOptions={mode:"open",delegatesFocus:!0};Za([H({type:Boolean,reflect:!0})],Yn.prototype,"disabled",2);Za([H({type:Boolean,reflect:!0})],Yn.prototype,"required",2);Za([H({type:Boolean,reflect:!0})],Yn.prototype,"invalid",2);Za([H({type:String})],Yn.prototype,"name",2);Za([H({type:String})],Yn.prototype,"id",2);Za([H({type:String})],Yn.prototype,"value",2);Za([Be()],Yn.prototype,"proxyInput",2);Za([Be()],Yn.prototype,"useProxy",2);var ty=Object.defineProperty,ry=Object.getOwnPropertyDescriptor,ny=(o,t,n,l)=>{for(var c=l>1?void 0:l?ry(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ty(t,n,c),c};const iy=Le("input-guide");let qd=class extends Ue{render(){return q` <slot></slot> `}};qd.styles=fe`
|
|
1821
1821
|
:host {
|
|
1822
1822
|
font-size: var(--brz-font-size-xs);
|
|
1823
1823
|
}
|
|
1824
|
-
`;qd=
|
|
1824
|
+
`;qd=ny([ee(iy)],qd);var oy=Object.defineProperty,ay=Object.getOwnPropertyDescriptor,sy=(o,t,n,l)=>{for(var c=l>1?void 0:l?ay(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&oy(t,n,c),c};const Cv=Le("input-error");exports.InputError=class extends Ue{render(){return q` <slot></slot> `}};exports.InputError.styles=fe`
|
|
1825
1825
|
:host {
|
|
1826
1826
|
font-size: var(--brz-font-size);
|
|
1827
1827
|
color: var(--brz-color-error);
|
|
1828
1828
|
}
|
|
1829
|
-
`;exports.InputError=
|
|
1829
|
+
`;exports.InputError=sy([ee(Cv)],exports.InputError);var ly=Object.defineProperty,uy=Object.getOwnPropertyDescriptor,mo=(o,t,n,l)=>{for(var c=l>1?void 0:l?uy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&ly(t,n,c),c};const wv=Le("labeled-input"),xv=Le("input-label"),cy=fe`
|
|
1830
1830
|
.guide {
|
|
1831
1831
|
display: flex;
|
|
1832
1832
|
}
|
|
@@ -1859,7 +1859,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1859
1859
|
${this.renderInputContainer()}
|
|
1860
1860
|
|
|
1861
1861
|
<div
|
|
1862
|
-
class=${
|
|
1862
|
+
class=${kn({guide:!0,"has-error":this.hasError})}
|
|
1863
1863
|
>
|
|
1864
1864
|
<brz-input-error>
|
|
1865
1865
|
<slot @slotchange=${this.handleErrorChange} name="error"></slot>
|
|
@@ -1885,7 +1885,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1885
1885
|
:host([optional]:not([required])) .label-flag {
|
|
1886
1886
|
color: var(--brz-color-text-placeholder);
|
|
1887
1887
|
}
|
|
1888
|
-
`,
|
|
1888
|
+
`,cy];mo([H({type:String,attribute:"label-position",reflect:!0})],exports.LabeledInput.prototype,"labelPosition",2);mo([H({type:String,reflect:!0})],exports.LabeledInput.prototype,"size",2);mo([H({type:Boolean,reflect:!0})],exports.LabeledInput.prototype,"optional",2);mo([Be()],exports.LabeledInput.prototype,"hasPrompt",2);mo([Be()],exports.LabeledInput.prototype,"hasError",2);mo([Be()],exports.LabeledInput.prototype,"hasLabel",2);mo([Jo({slot:"label"})],exports.LabeledInput.prototype,"label",2);mo([Jo({slot:"prompt"})],exports.LabeledInput.prototype,"prompt",2);exports.LabeledInput=mo([ee(wv)],exports.LabeledInput);exports.InputLabel=class extends exports.RecordFieldLabel{};exports.InputLabel=mo([ee(xv)],exports.InputLabel);var dy=Object.defineProperty,fy=Object.getOwnPropertyDescriptor,h1=(o,t,n,l)=>{for(var c=l>1?void 0:l?fy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&dy(t,n,c),c};const hy=fe`
|
|
1889
1889
|
:host {
|
|
1890
1890
|
--input-text-color: var(--brz-color-neutral-850);
|
|
1891
1891
|
--input-font: var(--brz-font-family);
|
|
@@ -1989,7 +1989,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1989
1989
|
class="trailing"
|
|
1990
1990
|
></brz-icon>`:null}
|
|
1991
1991
|
</div>
|
|
1992
|
-
`}}yn.styles=[...exports.LabeledInput.styles,
|
|
1992
|
+
`}}yn.styles=[...exports.LabeledInput.styles,hy];h1([H({type:Boolean,reflect:!0})],yn.prototype,"readonly",2);h1([H({type:String,reflect:!0})],yn.prototype,"placeholder",2);h1([H({type:String,reflect:!0,attribute:"leading-icon"})],yn.prototype,"leadingIcon",2);h1([H({type:String,reflect:!0,attribute:"trailing-icon"})],yn.prototype,"trailingIcon",2);var py=Object.defineProperty,gy=Object.getOwnPropertyDescriptor,vi=(o,t,n,l)=>{for(var c=l>1?void 0:l?gy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&py(t,n,c),c};const Rc="searchMessage";class zr extends yn{constructor(){super(...arguments),this.controlled=!1,this.canSearch=!1,this.loading=!1,this.trailingIcon="chevronDown",this.options=[],this.searchMessage="No results found",this.isMenuOpen=!1,this.innerOptions=[]}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.options.map(t=>({...t,id:`option-${fh()}`}))]:[]}updated(t){super.updated(t),t.has("options")&&this.setInnerOptions(),t.has("value")&&this.updateComplete.then(()=>{this.handleValueChange()})}getItemLabel(t){var n,l;return t?t instanceof exports.MenuItem?(l=(n=t.textContent)==null?void 0:n.trim())!=null?l:"":t.label:""}handleKeyDown(t){["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),this.dropdown.open())}handleKeyUp(t){t.key===" "&&this.canSearch&&(t.preventDefault(),this.dropdown.open())}get defaultSlot(){var t,n;return(n=(t=this.renderRoot)==null?void 0:t.querySelector("slot:not([name])"))==null?void 0:n.assignedSlot}getItems(){return this.isDataDriven?this.innerOptions:this.optionElements}get optionElementsRenderRoot(){var t;return this.isDataDriven?(t=this.virtualListElement)==null?void 0:t.renderRoot:this}get virtualListElement(){return this.renderRoot.querySelector(Vh)}get optionElements(){var n,l,c;const t=(n=this.optionElementsRenderRoot)!=null&&n.querySelectorAll(jd).length?(l=this.optionElementsRenderRoot)==null?void 0:l.querySelectorAll(jd):(c=this.optionElementsRenderRoot)==null?void 0:c.querySelectorAll("sp-menu-item");return Array.from(t!=null?t:[])}setValue(t){this.value=t,this.handleValueChange(),this.dispatchChange()}handleSearchInputClick(t){this.isMenuOpen&&t.stopPropagation()}renderInput(){return this.updateComplete.then(()=>{var t;(t=this.dropdown)==null||t.updatePosition()}),this.isReadonlyOrDisabled?this.renderReferenceElement():q`
|
|
1993
1993
|
<brz-dropdown-menu
|
|
1994
1994
|
@brz-menu-select=${this.handleSelect}
|
|
1995
1995
|
@brz-menu-item-select=${this.handleItemSelect}
|
|
@@ -2020,7 +2020,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2020
2020
|
</brz-menu-item>
|
|
2021
2021
|
`}
|
|
2022
2022
|
></brz-virtual-list>
|
|
2023
|
-
`:null}isQueryMatch(t){return this.query?this.getItemLabel(t).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(t):!1}isCustomQueryMatch(t){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(t){}handleItemSelect(t){}handleValueChange(){}handleQueryInput(t){const n=t.target;this.query=n==null?void 0:n.value,this.dispatchEvent(new
|
|
2023
|
+
`:null}isQueryMatch(t){return this.query?this.getItemLabel(t).toLowerCase().includes(this.query.toLowerCase())||this.isCustomQueryMatch(t):!1}isCustomQueryMatch(t){return!1}handleOpenDropdown(){this.isMenuOpen=!0,this.canSearch&&this.queryInput.focus()}handleCloseDropdown(){this.isMenuOpen=!1}handleSelect(t){}handleItemSelect(t){}handleValueChange(){}handleQueryInput(t){const n=t.target;this.query=n==null?void 0:n.value,this.dispatchEvent(new Gh({detail:{query:this.query}}))}get hasQueryResults(){return!!(!this.query||this.hasResults)}get isDataDriven(){var t;return!!((t=this.options)!=null&&t.length)}get isMulti(){return Array.isArray(this.value)}get isReadonlyOrDisabled(){return this.disabled||this.readonly}}zr.styles=[...yn.styles,fe`
|
|
2024
2024
|
:host {
|
|
2025
2025
|
/** 18px for icon, 10px for icon inset, spacing-2 for standard input padding **/
|
|
2026
2026
|
--dropdown-decorator-offset: calc(18px + 10px + var(--input-padding));
|
|
@@ -2065,7 +2065,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2065
2065
|
}
|
|
2066
2066
|
|
|
2067
2067
|
button.wrapper {
|
|
2068
|
-
${
|
|
2068
|
+
${Rg};
|
|
2069
2069
|
align-items: center;
|
|
2070
2070
|
background-color: var(--brz-color-white);
|
|
2071
2071
|
border: var(--input-border);
|
|
@@ -2103,7 +2103,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2103
2103
|
border-color: var(--input-focus-border-color);
|
|
2104
2104
|
outline: none;
|
|
2105
2105
|
}
|
|
2106
|
-
`];vi([H({type:Boolean})],zr.prototype,"controlled",2);vi([H({attribute:"can-search",type:Boolean,reflect:!0})],zr.prototype,"canSearch",2);vi([H({type:Boolean,reflect:!0})],zr.prototype,"loading",2);vi([H({type:String,reflect:!0,attribute:"trailing-icon"})],zr.prototype,"trailingIcon",2);vi([H({type:Array})],zr.prototype,"options",2);vi([H({attribute:"search-message"})],zr.prototype,"searchMessage",2);vi([Be()],zr.prototype,"isMenuOpen",2);vi([Be()],zr.prototype,"hasResults",2);vi([Be()],zr.prototype,"query",2);vi([Be()],zr.prototype,"innerOptions",2);vi([
|
|
2106
|
+
`];vi([H({type:Boolean})],zr.prototype,"controlled",2);vi([H({attribute:"can-search",type:Boolean,reflect:!0})],zr.prototype,"canSearch",2);vi([H({type:Boolean,reflect:!0})],zr.prototype,"loading",2);vi([H({type:String,reflect:!0,attribute:"trailing-icon"})],zr.prototype,"trailingIcon",2);vi([H({type:Array})],zr.prototype,"options",2);vi([H({attribute:"search-message"})],zr.prototype,"searchMessage",2);vi([Be()],zr.prototype,"isMenuOpen",2);vi([Be()],zr.prototype,"hasResults",2);vi([Be()],zr.prototype,"query",2);vi([Be()],zr.prototype,"innerOptions",2);vi([Ri("brz-dropdown-menu")],zr.prototype,"dropdown",2);vi([Ri("#selectSearch")],zr.prototype,"queryInput",2);class Gh extends CustomEvent{constructor(t={}){super("brz-input-select-query-change",{bubbles:!0,composed:!0,...t})}}var vy=Object.defineProperty,by=Object.getOwnPropertyDescriptor,Ys=(o,t,n,l)=>{for(var c=l>1?void 0:l?by(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&vy(t,n,c),c};const jd=Le("menu-item");exports.MenuItem=class extends Ue{constructor(){super(...arguments),this.disabled=!1,this.highlighted=!1,this.selectable=!1,this.selected=!1}deselect(){this.disabled||(this.selected=!1)}select(){this.disabled||(this.selected=!0)}toggle(){this.disabled||(this.selected=!this.selected)}emitSelect(){this.disabled||this.dispatchEvent(new zv({detail:{item:this}}))}handleClick(t){t.preventDefault(),this.emitSelect(),(this.disabled||this.toggleable)&&t.stopPropagation()}handleKeyDown(){}get labelTemplate(){return q` <div class="label"><slot></slot></div> `}get itemTemplate(){return this.toggleable?q`
|
|
2107
2107
|
<brz-input-checkbox
|
|
2108
2108
|
?disabled=${this.disabled}
|
|
2109
2109
|
?checked=${this.selected}
|
|
@@ -2180,7 +2180,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2180
2180
|
padding-left: var(--menu-item-label-gutter);
|
|
2181
2181
|
position: relative;
|
|
2182
2182
|
}
|
|
2183
|
-
`;Ys([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Ys([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Ys([H({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Ys([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Ys([H({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Ys([H({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Ys([ee(jd)],exports.MenuItem);class
|
|
2183
|
+
`;Ys([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"disabled",2);Ys([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"highlighted",2);Ys([H({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"selectable",2);Ys([H({type:Boolean,reflect:!0})],exports.MenuItem.prototype,"selected",2);Ys([H({type:Boolean,attribute:!1})],exports.MenuItem.prototype,"toggleable",2);Ys([H({type:String})],exports.MenuItem.prototype,"value",2);exports.MenuItem=Ys([ee(jd)],exports.MenuItem);class zv extends CustomEvent{constructor(t={}){super("brz-menu-item-select",{bubbles:!0,composed:!0,...t})}}var my=Object.defineProperty,yy=Object.getOwnPropertyDescriptor,Ga=(o,t,n,l)=>{for(var c=l>1?void 0:l?yy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&my(t,n,c),c};const Lv=Le("menu"),Ai="selectAll";exports.Menu=class extends Ue{constructor(){super(...arguments),this.multiselect=!1,this.selectable=!1,this.selected=[],this.highlightedIndex=-1,this.keyBindings={ArrowDown:this.handleUpOrDownKey.bind(this),ArrowUp:this.handleUpOrDownKey.bind(this),Enter:this.handleEnterOrSpaceKey.bind(this)," ":this.handleEnterOrSpaceKey.bind(this),Tab:this.handleTabKey.bind(this)}}connectedCallback(){super.connectedCallback(),this.tabIndex=0,this.addEventListener("keydown",this.handleKeyDown)}updated(t){var n;super.updated(t),t.has("highlightedIndex")&&((n=this.highlightedItem)==null||n.scrollIntoView({block:"center"}))}getMenuItems(){return this.virtualListMenuItems||this.menuItems}handleUpOrDownKey(t){t.preventDefault();const{key:n}=t,l=({before:g,after:h})=>(x,z)=>x.hidden?!1:g===void 0&&h===void 0||g!==void 0&&z<g||h!==void 0&&z>h;this.clearHighlightedItem();const c=this.getMenuItems();if(this.highlightedIndex===-1){this.highlightedIndex=0,c[this.highlightedIndex].highlighted=!0;return}n==="ArrowUp"&&(this.highlightedIndex=Uh.findLastIndex(c,l({before:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=c.length-1)),n==="ArrowDown"&&(this.highlightedIndex=c.findIndex(l({after:this.highlightedIndex})),this.highlightedIndex===-1&&(this.highlightedIndex=0)),c[this.highlightedIndex].highlighted=!0}handleEnterOrSpaceKey(t){if(t.preventDefault(),this.highlightedIndex===-1)return this.emitBlur();this.getActiveMenuItem().emitSelect()}get selectedItems(){return this.getMenuItems().filter(t=>t.selected)}getActiveMenuItem(t){return t?t.detail.item:this.highlightedItem}bypassSelectedState(){if(!this.multiselect)return this.emitBlur()}handleSelectItem(t){if(!this.selectable)return this.bypassSelectedState();if(t.value===void 0)throw new Error("No value found for MenuItem");if(!t.disabled){if(this.multiselect)t.toggle();else{const[n]=this.selectedItems;n==null||n.deselect(),t.select()}this.updateSelected(t.value),this.emitSelection(),this.multiselect||this.emitBlur()}}updateSelected(t){const n=this.selected.some(c=>t===c);if(this.multiselect&&n){this.selected=this.selected.filter(c=>t!==c);return}n||(this.selected=this.multiselect?[...this.selected,t]:[t])}handleMenuItemSelect(t){t.preventDefault(),this.handleSelectItem(this.getActiveMenuItem(t))}emitSelection(){this.dispatchEvent(new _v({detail:{selected:this.selected}}))}get highlightedItem(){return this.getMenuItems()[this.highlightedIndex]}clearHighlightedItem(){this.highlightedIndex!==-1&&(this.highlightedItem.highlighted=!1)}handleKeyDown(t){var n,l;(l=(n=this.keyBindings)[t.key])==null||l.call(n,t)}resetHighlightedIndex(){this.highlightedIndex=-1}resetScrollPosition(){this.scrollTop=0}reset(){this.clearHighlightedItem(),this.resetHighlightedIndex(),this.resetScrollPosition()}emitBlur(){this.dispatchEvent(new Sv),this.reset()}handleTabKey(t){t.preventDefault(),this.emitBlur()}applyPropsToChildren(t){Cy(t)&&t.forEach(n=>{var l;n.selectable=this.selectable&&n.id!==Rc,n.toggleable=this.multiselect&&n.id!==Rc,n.id!==Ai&&(n.selected=n.value!==void 0?(l=this.selected)==null?void 0:l.includes(n.value):!1)})}handleSlotChange(t){const n=t.target.assignedElements({flatten:!0});this.applyPropsToChildren(n)}handleVirtualListUpdate({detail:{itemElements:t}}){this.applyPropsToChildren(t),this.virtualListMenuItems=t}render(){return q`
|
|
2184
2184
|
<ul
|
|
2185
2185
|
class="menu"
|
|
2186
2186
|
role="menu"
|
|
@@ -2226,17 +2226,17 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2226
2226
|
width: var(--brz-menu-width, 10rem);
|
|
2227
2227
|
padding: 0;
|
|
2228
2228
|
}
|
|
2229
|
-
`;Ga([H({type:Boolean})],exports.Menu.prototype,"multiselect",2);Ga([H({type:Boolean})],exports.Menu.prototype,"selectable",2);Ga([H({type:Array})],exports.Menu.prototype,"selected",2);Ga([H({reflect:!0})],exports.Menu.prototype,"size",2);Ga([Be()],exports.Menu.prototype,"highlightedIndex",2);Ga([Be()],exports.Menu.prototype,"virtualListMenuItems",2);Ga([Jo({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=Ga([ee(
|
|
2229
|
+
`;Ga([H({type:Boolean})],exports.Menu.prototype,"multiselect",2);Ga([H({type:Boolean})],exports.Menu.prototype,"selectable",2);Ga([H({type:Array})],exports.Menu.prototype,"selected",2);Ga([H({reflect:!0})],exports.Menu.prototype,"size",2);Ga([Be()],exports.Menu.prototype,"highlightedIndex",2);Ga([Be()],exports.Menu.prototype,"virtualListMenuItems",2);Ga([Jo({flatten:!0})],exports.Menu.prototype,"menuItems",2);exports.Menu=Ga([ee(Lv)],exports.Menu);const Cy=o=>o[0]instanceof exports.MenuItem;class Sv extends CustomEvent{constructor(t={}){super("brz-menu-blur",{bubbles:!0,composed:!0,...t})}}class _v extends CustomEvent{constructor(t={}){super("brz-menu-select",{bubbles:!0,composed:!0,...t})}}var wy=Object.defineProperty,xy=Object.getOwnPropertyDescriptor,Mv=(o,t,n,l)=>{for(var c=l>1?void 0:l?xy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&wy(t,n,c),c};const Tv=Le("combo-box"),Ov=Le("combo-box-option");exports.ComboBox=class extends exports.DropdownMenu{};exports.ComboBox=Mv([ee(Tv)],exports.ComboBox);exports.ComboBoxOption=class extends exports.MenuItem{};exports.ComboBoxOption=Mv([ee(Ov)],exports.ComboBoxOption);/*!
|
|
2230
2230
|
* tabbable 6.2.0
|
|
2231
2231
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
2232
|
-
*/var
|
|
2232
|
+
*/var kv=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Kd=kv.join(","),Ev=typeof Element=="undefined",Ks=Ev?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yd=!Ev&&Element.prototype.getRootNode?function(o){var t;return o==null||(t=o.getRootNode)===null||t===void 0?void 0:t.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Xd=function o(t,n){var l;n===void 0&&(n=!0);var c=t==null||(l=t.getAttribute)===null||l===void 0?void 0:l.call(t,"inert"),g=c===""||c==="true",h=g||n&&t&&o(t.parentNode);return h},zy=function(t){var n,l=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return l===""||l==="true"},Iv=function(t,n,l){if(Xd(t))return[];var c=Array.prototype.slice.apply(t.querySelectorAll(Kd));return n&&Ks.call(t,Kd)&&c.unshift(t),c=c.filter(l),c},Av=function o(t,n,l){for(var c=[],g=Array.from(t);g.length;){var h=g.shift();if(!Xd(h,!1))if(h.tagName==="SLOT"){var x=h.assignedElements(),z=x.length?x:h.children,S=o(z,!0,l);l.flatten?c.push.apply(c,S):c.push({scopeParent:h,candidates:S})}else{var E=Ks.call(h,Kd);E&&l.filter(h)&&(n||!t.includes(h))&&c.push(h);var D=h.shadowRoot||typeof l.getShadowRoot=="function"&&l.getShadowRoot(h),B=!Xd(D,!1)&&(!l.shadowRootFilter||l.shadowRootFilter(h));if(D&&B){var R=o(D===!0?h.children:D.children,!0,l);l.flatten?c.push.apply(c,R):c.push({scopeParent:h,candidates:R})}else g.unshift.apply(g,h.children)}}return c},$v=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Fs=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||zy(t))&&!$v(t)?0:t.tabIndex},Ly=function(t,n){var l=Fs(t);return l<0&&n&&!$v(t)?0:l},Sy=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Pv=function(t){return t.tagName==="INPUT"},_y=function(t){return Pv(t)&&t.type==="hidden"},My=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(l){return l.tagName==="SUMMARY"});return n},Ty=function(t,n){for(var l=0;l<t.length;l++)if(t[l].checked&&t[l].form===n)return t[l]},Oy=function(t){if(!t.name)return!0;var n=t.form||Yd(t),l=function(x){return n.querySelectorAll('input[type="radio"][name="'+x+'"]')},c;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")c=l(window.CSS.escape(t.name));else try{c=l(t.name)}catch(h){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",h.message),!1}var g=Ty(c,t.form);return!g||g===t},ky=function(t){return Pv(t)&&t.type==="radio"},Ey=function(t){return ky(t)&&!Oy(t)},Iy=function(t){var n,l=t&&Yd(t),c=(n=l)===null||n===void 0?void 0:n.host,g=!1;if(l&&l!==t){var h,x,z;for(g=!!((h=c)!==null&&h!==void 0&&(x=h.ownerDocument)!==null&&x!==void 0&&x.contains(c)||t!=null&&(z=t.ownerDocument)!==null&&z!==void 0&&z.contains(t));!g&&c;){var S,E,D;l=Yd(c),c=(S=l)===null||S===void 0?void 0:S.host,g=!!((E=c)!==null&&E!==void 0&&(D=E.ownerDocument)!==null&&D!==void 0&&D.contains(c))}}return g},S2=function(t){var n=t.getBoundingClientRect(),l=n.width,c=n.height;return l===0&&c===0},Ay=function(t,n){var l=n.displayCheck,c=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var g=Ks.call(t,"details>summary:first-of-type"),h=g?t.parentElement:t;if(Ks.call(h,"details:not([open]) *"))return!0;if(!l||l==="full"||l==="legacy-full"){if(typeof c=="function"){for(var x=t;t;){var z=t.parentElement,S=Yd(t);if(z&&!z.shadowRoot&&c(z)===!0)return S2(t);t.assignedSlot?t=t.assignedSlot:!z&&S!==t.ownerDocument?t=S.host:t=z}t=x}if(Iy(t))return!t.getClientRects().length;if(l!=="legacy-full")return!0}else if(l==="non-zero-area")return S2(t);return!1},$y=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var l=0;l<n.children.length;l++){var c=n.children.item(l);if(c.tagName==="LEGEND")return Ks.call(n,"fieldset[disabled] *")?!0:!c.contains(t)}return!0}n=n.parentElement}return!1},Jd=function(t,n){return!(n.disabled||Xd(n)||_y(n)||Ay(n,t)||My(n)||$y(n))},hh=function(t,n){return!(Ey(n)||Fs(n)<0||!Jd(t,n))},Py=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Dy=function o(t){var n=[],l=[];return t.forEach(function(c,g){var h=!!c.scopeParent,x=h?c.scopeParent:c,z=Ly(x,h),S=h?o(c.candidates):x;z===0?h?n.push.apply(n,S):n.push(x):l.push({documentOrder:g,tabIndex:z,item:c,isScope:h,content:S})}),l.sort(Sy).reduce(function(c,g){return g.isScope?c.push.apply(c,g.content):c.push(g.content),c},[]).concat(n)},Ny=function(t,n){n=n||{};var l;return n.getShadowRoot?l=Av([t],n.includeContainer,{filter:hh.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Py}):l=Iv(t,n.includeContainer,hh.bind(null,n)),Dy(l)},Ry=function(t,n){n=n||{};var l;return n.getShadowRoot?l=Av([t],n.includeContainer,{filter:Jd.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):l=Iv(t,n.includeContainer,Jd.bind(null,n)),l},eu=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ks.call(t,Kd)===!1?!1:hh(n,t)},Fy=kv.concat("iframe").join(","),Gf=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ks.call(t,Fy)===!1?!1:Jd(n,t)};/*!
|
|
2233
2233
|
* focus-trap 7.5.4
|
|
2234
2234
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2235
|
-
*/function S2(o,t){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),n.push.apply(n,l)}return n}function _2(o){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S2(Object(n),!0).forEach(function(l){Dy(o,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):S2(Object(n)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(n,l))})}return o}function Dy(o,t,n){return t=Ry(t),t in o?Object.defineProperty(o,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[t]=n,o}function Ny(o,t){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var l=n.call(o,t||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function Ry(o){var t=Ny(o,"string");return typeof t=="symbol"?t:String(t)}var M2={activateTrap:function(t,n){if(t.length>0){var l=t[t.length-1];l!==n&&l.pause()}var c=t.indexOf(n);c===-1||t.splice(c,1),t.push(n)},deactivateTrap:function(t,n){var l=t.indexOf(n);l!==-1&&t.splice(l,1),t.length>0&&t[t.length-1].unpause()}},Fy=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Hy=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Oc=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},By=function(t){return Oc(t)&&!t.shiftKey},Wy=function(t){return Oc(t)&&t.shiftKey},T2=function(t){return setTimeout(t,0)},O2=function(t,n){var l=-1;return t.every(function(c,g){return n(c)?(l=g,!1):!0}),l},wc=function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c<n;c++)l[c-1]=arguments[c];return typeof t=="function"?t.apply(void 0,l):t},zd=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Uy=[],Vy=function(t,n){var l=(n==null?void 0:n.document)||document,c=(n==null?void 0:n.trapStack)||Uy,g=_2({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:By,isKeyBackward:Wy},n),h={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},x,z=function(Q,$,O){return Q&&Q[$]!==void 0?Q[$]:g[O||$]},S=function(Q,$){var O=typeof($==null?void 0:$.composedPath)=="function"?$.composedPath():void 0;return h.containerGroups.findIndex(function(E){var Y=E.container,ue=E.tabbableNodes;return Y.contains(Q)||(O==null?void 0:O.includes(Y))||ue.find(function(Ae){return Ae===Q})})},k=function(Q){var $=g[Q];if(typeof $=="function"){for(var O=arguments.length,E=new Array(O>1?O-1:0),Y=1;Y<O;Y++)E[Y-1]=arguments[Y];$=$.apply(void 0,E)}if($===!0&&($=void 0),!$){if($===void 0||$===!1)return $;throw new Error("`".concat(Q,"` was specified but was not a node, or did not return a node"))}var ue=$;if(typeof $=="string"&&(ue=l.querySelector($),!ue))throw new Error("`".concat(Q,"` as selector refers to no known node"));return ue},D=function(){var Q=k("initialFocus");if(Q===!1)return!1;if(Q===void 0||!Gf(Q,g.tabbableOptions))if(S(l.activeElement)>=0)Q=l.activeElement;else{var $=h.tabbableGroups[0],O=$&&$.firstTabbableNode;Q=O||k("fallbackFocus")}if(!Q)throw new Error("Your focus-trap needs to have at least one focusable element");return Q},B=function(){if(h.containerGroups=h.containers.map(function(Q){var $=Ay(Q,g.tabbableOptions),O=$y(Q,g.tabbableOptions),E=$.length>0?$[0]:void 0,Y=$.length>0?$[$.length-1]:void 0,ue=O.find(function(pt){return Ql(pt)}),Ae=O.slice().reverse().find(function(pt){return Ql(pt)}),et=!!$.find(function(pt){return Fs(pt)>0});return{container:Q,tabbableNodes:$,focusableNodes:O,posTabIndexesFound:et,firstTabbableNode:E,lastTabbableNode:Y,firstDomTabbableNode:ue,lastDomTabbableNode:Ae,nextTabbableNode:function(yt){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Mt=$.indexOf(yt);return Mt<0?or?O.slice(O.indexOf(yt)+1).find(function(xt){return Ql(xt)}):O.slice(0,O.indexOf(yt)).reverse().find(function(xt){return Ql(xt)}):$[Mt+(or?1:-1)]}}}),h.tabbableGroups=h.containerGroups.filter(function(Q){return Q.tabbableNodes.length>0}),h.tabbableGroups.length<=0&&!k("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(h.containerGroups.find(function(Q){return Q.posTabIndexesFound})&&h.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},R=function le(Q){var $=Q.activeElement;if($)return $.shadowRoot&&$.shadowRoot.activeElement!==null?le($.shadowRoot):$},J=function le(Q){if(Q!==!1&&Q!==R(document)){if(!Q||!Q.focus){le(D());return}Q.focus({preventScroll:!!g.preventScroll}),h.mostRecentlyFocusedNode=Q,Fy(Q)&&Q.select()}},pe=function(Q){var $=k("setReturnFocus",Q);return $||($===!1?!1:Q)},ge=function(Q){var $=Q.target,O=Q.event,E=Q.isBackward,Y=E===void 0?!1:E;$=$||zd(O),B();var ue=null;if(h.tabbableGroups.length>0){var Ae=S($,O),et=Ae>=0?h.containerGroups[Ae]:void 0;if(Ae<0)Y?ue=h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:ue=h.tabbableGroups[0].firstTabbableNode;else if(Y){var pt=O2(h.tabbableGroups,function(ze){var Ne=ze.firstTabbableNode;return $===Ne});if(pt<0&&(et.container===$||Gf($,g.tabbableOptions)&&!Ql($,g.tabbableOptions)&&!et.nextTabbableNode($,!1))&&(pt=Ae),pt>=0){var yt=pt===0?h.tabbableGroups.length-1:pt-1,or=h.tabbableGroups[yt];ue=Fs($)>=0?or.lastTabbableNode:or.lastDomTabbableNode}else Oc(O)||(ue=et.nextTabbableNode($,!1))}else{var Mt=O2(h.tabbableGroups,function(ze){var Ne=ze.lastTabbableNode;return $===Ne});if(Mt<0&&(et.container===$||Gf($,g.tabbableOptions)&&!Ql($,g.tabbableOptions)&&!et.nextTabbableNode($))&&(Mt=Ae),Mt>=0){var xt=Mt===h.tabbableGroups.length-1?0:Mt+1,rt=h.tabbableGroups[xt];ue=Fs($)>=0?rt.firstTabbableNode:rt.firstDomTabbableNode}else Oc(O)||(ue=et.nextTabbableNode($))}}else ue=k("fallbackFocus");return ue},Te=function(Q){var $=zd(Q);if(!(S($,Q)>=0)){if(wc(g.clickOutsideDeactivates,Q)){x.deactivate({returnFocus:g.returnFocusOnDeactivate});return}wc(g.allowOutsideClick,Q)||Q.preventDefault()}},Ie=function(Q){var $=zd(Q),O=S($,Q)>=0;if(O||$ instanceof Document)O&&(h.mostRecentlyFocusedNode=$);else{Q.stopImmediatePropagation();var E,Y=!0;if(h.mostRecentlyFocusedNode)if(Fs(h.mostRecentlyFocusedNode)>0){var ue=S(h.mostRecentlyFocusedNode),Ae=h.containerGroups[ue].tabbableNodes;if(Ae.length>0){var et=Ae.findIndex(function(pt){return pt===h.mostRecentlyFocusedNode});et>=0&&(g.isKeyForward(h.recentNavEvent)?et+1<Ae.length&&(E=Ae[et+1],Y=!1):et-1>=0&&(E=Ae[et-1],Y=!1))}}else h.containerGroups.some(function(pt){return pt.tabbableNodes.some(function(yt){return Fs(yt)>0})})||(Y=!1);else Y=!1;Y&&(E=ge({target:h.mostRecentlyFocusedNode,isBackward:g.isKeyBackward(h.recentNavEvent)})),J(E||h.mostRecentlyFocusedNode||D())}h.recentNavEvent=void 0},be=function(Q){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h.recentNavEvent=Q;var O=ge({event:Q,isBackward:$});O&&(Oc(Q)&&Q.preventDefault(),J(O))},ve=function(Q){if(Hy(Q)&&wc(g.escapeDeactivates,Q)!==!1){Q.preventDefault(),x.deactivate();return}(g.isKeyForward(Q)||g.isKeyBackward(Q))&&be(Q,g.isKeyBackward(Q))},Oe=function(Q){var $=zd(Q);S($,Q)>=0||wc(g.clickOutsideDeactivates,Q)||wc(g.allowOutsideClick,Q)||(Q.preventDefault(),Q.stopImmediatePropagation())},$e=function(){if(h.active)return M2.activateTrap(c,x),h.delayInitialFocusTimer=g.delayInitialFocus?T2(function(){J(D())}):J(D()),l.addEventListener("focusin",Ie,!0),l.addEventListener("mousedown",Te,{capture:!0,passive:!1}),l.addEventListener("touchstart",Te,{capture:!0,passive:!1}),l.addEventListener("click",Oe,{capture:!0,passive:!1}),l.addEventListener("keydown",ve,{capture:!0,passive:!1}),x},De=function(){if(h.active)return l.removeEventListener("focusin",Ie,!0),l.removeEventListener("mousedown",Te,!0),l.removeEventListener("touchstart",Te,!0),l.removeEventListener("click",Oe,!0),l.removeEventListener("keydown",ve,!0),x},je=function(Q){var $=Q.some(function(O){var E=Array.from(O.removedNodes);return E.some(function(Y){return Y===h.mostRecentlyFocusedNode})});$&&J(D())},Ye=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(je):void 0,Ce=function(){Ye&&(Ye.disconnect(),h.active&&!h.paused&&h.containers.map(function(Q){Ye.observe(Q,{subtree:!0,childList:!0})}))};return x={get active(){return h.active},get paused(){return h.paused},activate:function(Q){if(h.active)return this;var $=z(Q,"onActivate"),O=z(Q,"onPostActivate"),E=z(Q,"checkCanFocusTrap");E||B(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=l.activeElement,$==null||$();var Y=function(){E&&B(),$e(),Ce(),O==null||O()};return E?(E(h.containers.concat()).then(Y,Y),this):(Y(),this)},deactivate:function(Q){if(!h.active)return this;var $=_2({onDeactivate:g.onDeactivate,onPostDeactivate:g.onPostDeactivate,checkCanReturnFocus:g.checkCanReturnFocus},Q);clearTimeout(h.delayInitialFocusTimer),h.delayInitialFocusTimer=void 0,De(),h.active=!1,h.paused=!1,Ce(),M2.deactivateTrap(c,x);var O=z($,"onDeactivate"),E=z($,"onPostDeactivate"),Y=z($,"checkCanReturnFocus"),ue=z($,"returnFocus","returnFocusOnDeactivate");O==null||O();var Ae=function(){T2(function(){ue&&J(pe(h.nodeFocusedBeforeActivation)),E==null||E()})};return ue&&Y?(Y(pe(h.nodeFocusedBeforeActivation)).then(Ae,Ae),this):(Ae(),this)},pause:function(Q){if(h.paused||!h.active)return this;var $=z(Q,"onPause"),O=z(Q,"onPostPause");return h.paused=!0,$==null||$(),De(),Ce(),O==null||O(),this},unpause:function(Q){if(!h.paused||!h.active)return this;var $=z(Q,"onUnpause"),O=z(Q,"onPostUnpause");return h.paused=!1,$==null||$(),B(),$e(),Ce(),O==null||O(),this},updateContainerElements:function(Q){var $=[].concat(Q).filter(Boolean);return h.containers=$.map(function(O){return typeof O=="string"?l.querySelector(O):O}),h.active&&B(),Ce(),this}},x.updateContainerElements(t),x},Zy=Object.defineProperty,Gy=Object.getOwnPropertyDescriptor,gu=(o,t,n,l)=>{for(var c=l>1?void 0:l?Gy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Zy(t,n,c),c};const Iv=Le("modal"),qy=["small","medium","large","x-large"];class Gh 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.handleKeyUp=t=>{if(t.key==="Escape")return this.handleClose(t)},this.handleClose=t=>{t instanceof MouseEvent&&this.noClose||t instanceof MouseEvent&&t.target!==this.overlay||(t.stopPropagation(),this.dispatchEvent(new Gh))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.trap=Vy(this.overlay,{onActivate:()=>this.overlay.classList.add("is-active"),onDeactivate:()=>this.overlay.classList.remove("is-active"),tabbableOptions:{getShadowRoot:!0},checkCanFocusTrap:async()=>{this.open}})})}updated(t){super.updated(t),this.updateComplete.then(()=>{this.trap&&t.has("open")&&(this.open?this.trap.activate():this.trap.deactivate())})}disconnectedCallback(){var t;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(t=this.trap)==null||t.deactivate()}handleTransitionEnd(t){t.target===this.overlay&&(this.open=!1)}render(){return q`
|
|
2235
|
+
*/function _2(o,t){var n=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);t&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),n.push.apply(n,l)}return n}function M2(o){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_2(Object(n),!0).forEach(function(l){Hy(o,l,n[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(n)):_2(Object(n)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(n,l))})}return o}function Hy(o,t,n){return t=Wy(t),t in o?Object.defineProperty(o,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[t]=n,o}function By(o,t){if(typeof o!="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var l=n.call(o,t||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(o)}function Wy(o){var t=By(o,"string");return typeof t=="symbol"?t:String(t)}var T2={activateTrap:function(t,n){if(t.length>0){var l=t[t.length-1];l!==n&&l.pause()}var c=t.indexOf(n);c===-1||t.splice(c,1),t.push(n)},deactivateTrap:function(t,n){var l=t.indexOf(n);l!==-1&&t.splice(l,1),t.length>0&&t[t.length-1].unpause()}},Uy=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Vy=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Oc=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},Zy=function(t){return Oc(t)&&!t.shiftKey},Gy=function(t){return Oc(t)&&t.shiftKey},O2=function(t){return setTimeout(t,0)},k2=function(t,n){var l=-1;return t.every(function(c,g){return n(c)?(l=g,!1):!0}),l},wc=function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c<n;c++)l[c-1]=arguments[c];return typeof t=="function"?t.apply(void 0,l):t},zd=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},qy=[],jy=function(t,n){var l=(n==null?void 0:n.document)||document,c=(n==null?void 0:n.trapStack)||qy,g=M2({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Zy,isKeyBackward:Gy},n),h={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},x,z=function(Q,$,O){return Q&&Q[$]!==void 0?Q[$]:g[O||$]},S=function(Q,$){var O=typeof($==null?void 0:$.composedPath)=="function"?$.composedPath():void 0;return h.containerGroups.findIndex(function(k){var Y=k.container,ue=k.tabbableNodes;return Y.contains(Q)||(O==null?void 0:O.includes(Y))||ue.find(function(Ae){return Ae===Q})})},E=function(Q){var $=g[Q];if(typeof $=="function"){for(var O=arguments.length,k=new Array(O>1?O-1:0),Y=1;Y<O;Y++)k[Y-1]=arguments[Y];$=$.apply(void 0,k)}if($===!0&&($=void 0),!$){if($===void 0||$===!1)return $;throw new Error("`".concat(Q,"` was specified but was not a node, or did not return a node"))}var ue=$;if(typeof $=="string"&&(ue=l.querySelector($),!ue))throw new Error("`".concat(Q,"` as selector refers to no known node"));return ue},D=function(){var Q=E("initialFocus");if(Q===!1)return!1;if(Q===void 0||!Gf(Q,g.tabbableOptions))if(S(l.activeElement)>=0)Q=l.activeElement;else{var $=h.tabbableGroups[0],O=$&&$.firstTabbableNode;Q=O||E("fallbackFocus")}if(!Q)throw new Error("Your focus-trap needs to have at least one focusable element");return Q},B=function(){if(h.containerGroups=h.containers.map(function(Q){var $=Ny(Q,g.tabbableOptions),O=Ry(Q,g.tabbableOptions),k=$.length>0?$[0]:void 0,Y=$.length>0?$[$.length-1]:void 0,ue=O.find(function(pt){return eu(pt)}),Ae=O.slice().reverse().find(function(pt){return eu(pt)}),et=!!$.find(function(pt){return Fs(pt)>0});return{container:Q,tabbableNodes:$,focusableNodes:O,posTabIndexesFound:et,firstTabbableNode:k,lastTabbableNode:Y,firstDomTabbableNode:ue,lastDomTabbableNode:Ae,nextTabbableNode:function(yt){var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Mt=$.indexOf(yt);return Mt<0?or?O.slice(O.indexOf(yt)+1).find(function(xt){return eu(xt)}):O.slice(0,O.indexOf(yt)).reverse().find(function(xt){return eu(xt)}):$[Mt+(or?1:-1)]}}}),h.tabbableGroups=h.containerGroups.filter(function(Q){return Q.tabbableNodes.length>0}),h.tabbableGroups.length<=0&&!E("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(h.containerGroups.find(function(Q){return Q.posTabIndexesFound})&&h.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},R=function le(Q){var $=Q.activeElement;if($)return $.shadowRoot&&$.shadowRoot.activeElement!==null?le($.shadowRoot):$},J=function le(Q){if(Q!==!1&&Q!==R(document)){if(!Q||!Q.focus){le(D());return}Q.focus({preventScroll:!!g.preventScroll}),h.mostRecentlyFocusedNode=Q,Uy(Q)&&Q.select()}},pe=function(Q){var $=E("setReturnFocus",Q);return $||($===!1?!1:Q)},ge=function(Q){var $=Q.target,O=Q.event,k=Q.isBackward,Y=k===void 0?!1:k;$=$||zd(O),B();var ue=null;if(h.tabbableGroups.length>0){var Ae=S($,O),et=Ae>=0?h.containerGroups[Ae]:void 0;if(Ae<0)Y?ue=h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:ue=h.tabbableGroups[0].firstTabbableNode;else if(Y){var pt=k2(h.tabbableGroups,function(ze){var Ne=ze.firstTabbableNode;return $===Ne});if(pt<0&&(et.container===$||Gf($,g.tabbableOptions)&&!eu($,g.tabbableOptions)&&!et.nextTabbableNode($,!1))&&(pt=Ae),pt>=0){var yt=pt===0?h.tabbableGroups.length-1:pt-1,or=h.tabbableGroups[yt];ue=Fs($)>=0?or.lastTabbableNode:or.lastDomTabbableNode}else Oc(O)||(ue=et.nextTabbableNode($,!1))}else{var Mt=k2(h.tabbableGroups,function(ze){var Ne=ze.lastTabbableNode;return $===Ne});if(Mt<0&&(et.container===$||Gf($,g.tabbableOptions)&&!eu($,g.tabbableOptions)&&!et.nextTabbableNode($))&&(Mt=Ae),Mt>=0){var xt=Mt===h.tabbableGroups.length-1?0:Mt+1,rt=h.tabbableGroups[xt];ue=Fs($)>=0?rt.firstTabbableNode:rt.firstDomTabbableNode}else Oc(O)||(ue=et.nextTabbableNode($))}}else ue=E("fallbackFocus");return ue},Te=function(Q){var $=zd(Q);if(!(S($,Q)>=0)){if(wc(g.clickOutsideDeactivates,Q)){x.deactivate({returnFocus:g.returnFocusOnDeactivate});return}wc(g.allowOutsideClick,Q)||Q.preventDefault()}},Ie=function(Q){var $=zd(Q),O=S($,Q)>=0;if(O||$ instanceof Document)O&&(h.mostRecentlyFocusedNode=$);else{Q.stopImmediatePropagation();var k,Y=!0;if(h.mostRecentlyFocusedNode)if(Fs(h.mostRecentlyFocusedNode)>0){var ue=S(h.mostRecentlyFocusedNode),Ae=h.containerGroups[ue].tabbableNodes;if(Ae.length>0){var et=Ae.findIndex(function(pt){return pt===h.mostRecentlyFocusedNode});et>=0&&(g.isKeyForward(h.recentNavEvent)?et+1<Ae.length&&(k=Ae[et+1],Y=!1):et-1>=0&&(k=Ae[et-1],Y=!1))}}else h.containerGroups.some(function(pt){return pt.tabbableNodes.some(function(yt){return Fs(yt)>0})})||(Y=!1);else Y=!1;Y&&(k=ge({target:h.mostRecentlyFocusedNode,isBackward:g.isKeyBackward(h.recentNavEvent)})),J(k||h.mostRecentlyFocusedNode||D())}h.recentNavEvent=void 0},be=function(Q){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h.recentNavEvent=Q;var O=ge({event:Q,isBackward:$});O&&(Oc(Q)&&Q.preventDefault(),J(O))},ve=function(Q){if(Vy(Q)&&wc(g.escapeDeactivates,Q)!==!1){Q.preventDefault(),x.deactivate();return}(g.isKeyForward(Q)||g.isKeyBackward(Q))&&be(Q,g.isKeyBackward(Q))},Oe=function(Q){var $=zd(Q);S($,Q)>=0||wc(g.clickOutsideDeactivates,Q)||wc(g.allowOutsideClick,Q)||(Q.preventDefault(),Q.stopImmediatePropagation())},$e=function(){if(h.active)return T2.activateTrap(c,x),h.delayInitialFocusTimer=g.delayInitialFocus?O2(function(){J(D())}):J(D()),l.addEventListener("focusin",Ie,!0),l.addEventListener("mousedown",Te,{capture:!0,passive:!1}),l.addEventListener("touchstart",Te,{capture:!0,passive:!1}),l.addEventListener("click",Oe,{capture:!0,passive:!1}),l.addEventListener("keydown",ve,{capture:!0,passive:!1}),x},De=function(){if(h.active)return l.removeEventListener("focusin",Ie,!0),l.removeEventListener("mousedown",Te,!0),l.removeEventListener("touchstart",Te,!0),l.removeEventListener("click",Oe,!0),l.removeEventListener("keydown",ve,!0),x},je=function(Q){var $=Q.some(function(O){var k=Array.from(O.removedNodes);return k.some(function(Y){return Y===h.mostRecentlyFocusedNode})});$&&J(D())},Ye=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(je):void 0,Ce=function(){Ye&&(Ye.disconnect(),h.active&&!h.paused&&h.containers.map(function(Q){Ye.observe(Q,{subtree:!0,childList:!0})}))};return x={get active(){return h.active},get paused(){return h.paused},activate:function(Q){if(h.active)return this;var $=z(Q,"onActivate"),O=z(Q,"onPostActivate"),k=z(Q,"checkCanFocusTrap");k||B(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=l.activeElement,$==null||$();var Y=function(){k&&B(),$e(),Ce(),O==null||O()};return k?(k(h.containers.concat()).then(Y,Y),this):(Y(),this)},deactivate:function(Q){if(!h.active)return this;var $=M2({onDeactivate:g.onDeactivate,onPostDeactivate:g.onPostDeactivate,checkCanReturnFocus:g.checkCanReturnFocus},Q);clearTimeout(h.delayInitialFocusTimer),h.delayInitialFocusTimer=void 0,De(),h.active=!1,h.paused=!1,Ce(),T2.deactivateTrap(c,x);var O=z($,"onDeactivate"),k=z($,"onPostDeactivate"),Y=z($,"checkCanReturnFocus"),ue=z($,"returnFocus","returnFocusOnDeactivate");O==null||O();var Ae=function(){O2(function(){ue&&J(pe(h.nodeFocusedBeforeActivation)),k==null||k()})};return ue&&Y?(Y(pe(h.nodeFocusedBeforeActivation)).then(Ae,Ae),this):(Ae(),this)},pause:function(Q){if(h.paused||!h.active)return this;var $=z(Q,"onPause"),O=z(Q,"onPostPause");return h.paused=!0,$==null||$(),De(),Ce(),O==null||O(),this},unpause:function(Q){if(!h.paused||!h.active)return this;var $=z(Q,"onUnpause"),O=z(Q,"onPostUnpause");return h.paused=!1,$==null||$(),B(),$e(),Ce(),O==null||O(),this},updateContainerElements:function(Q){var $=[].concat(Q).filter(Boolean);return h.containers=$.map(function(O){return typeof O=="string"?l.querySelector(O):O}),h.active&&B(),Ce(),this}},x.updateContainerElements(t),x},Ky=Object.defineProperty,Yy=Object.getOwnPropertyDescriptor,Xs=(o,t,n,l)=>{for(var c=l>1?void 0:l?Yy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Ky(t,n,c),c};const Dv=Le("modal"),Xy=["small","medium","large","x-large"];class qh 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.handleKeyUp=t=>{if(t.key==="Escape")return this.handleClose(t)},this.handleClose=t=>{!this.open||t instanceof MouseEvent&&this.noClose||t instanceof MouseEvent&&t.target!==this.overlay||(t.stopPropagation(),this.dispatchEvent(new qh))}}connectedCallback(){super.connectedCallback(),window.addEventListener("keyup",this.handleKeyUp,!0),this.updateComplete.then(()=>{this.focusTrap=jy(this.modal,{tabbableOptions:{getShadowRoot:!0},checkCanFocusTrap:async()=>{await this.updateComplete,this.open}})})}updated(t){super.updated(t),this.updateComplete.then(()=>{this.focusTrap&&t.has("open")&&(this.open?this.focusTrap.activate():this.focusTrap.deactivate())})}disconnectedCallback(){var t;super.disconnectedCallback(),window.removeEventListener("keyup",this.handleKeyUp,!0),(t=this.focusTrap)==null||t.deactivate()}handleTransitionEnd(t){t.target===this.overlay&&(this.open=!1)}render(){return q`
|
|
2236
2236
|
<brz-fade-in-out ?shown=${this.open}>
|
|
2237
2237
|
<div
|
|
2238
2238
|
id="overlay"
|
|
2239
|
-
class="${
|
|
2239
|
+
class="${kn({overlay:!0,medium:this.size==="medium",large:this.size==="large","x-large":this.size==="x-large"})}"
|
|
2240
2240
|
@mousedown=${this.handleClose}
|
|
2241
2241
|
@keyup=${()=>{}}
|
|
2242
2242
|
@transitionend=${this.handleTransitionEnd}
|
|
@@ -2309,7 +2309,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2309
2309
|
::slotted(sp-modal-body:first-child) {
|
|
2310
2310
|
padding-top: var(--brz-spacing-10);
|
|
2311
2311
|
}
|
|
2312
|
-
`;
|
|
2312
|
+
`;Xs([H({type:String})],exports.Modal.prototype,"size",2);Xs([H({type:Boolean})],exports.Modal.prototype,"open",2);Xs([H({type:Boolean,attribute:"no-close"})],exports.Modal.prototype,"noClose",2);Xs([Be()],exports.Modal.prototype,"focusTrap",2);Xs([Ri("#overlay")],exports.Modal.prototype,"overlay",2);Xs([Ri(".modal")],exports.Modal.prototype,"modal",2);exports.Modal=Xs([ee(Dv)],exports.Modal);var Jy=Object.defineProperty,Qy=Object.getOwnPropertyDescriptor,yo=(o,t,n,l)=>{for(var c=l>1?void 0:l?Qy(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Jy(t,n,c),c};const Nv=Le("split-row"),Rv=Le("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 q`
|
|
2313
2313
|
<brz-row vertical-align=${this.verticalAlign}>
|
|
2314
2314
|
<div class="left">
|
|
2315
2315
|
<slot name="left"></slot>
|
|
@@ -2348,7 +2348,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2348
2348
|
:host([right-expand]) .right {
|
|
2349
2349
|
flex: 1;
|
|
2350
2350
|
}
|
|
2351
|
-
`;yo([H({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);yo([H({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);yo([H({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);yo([H({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);yo([H({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=yo([ee(
|
|
2351
|
+
`;yo([H({type:String,attribute:"vertical-align",reflect:!0})],exports.SplitRow.prototype,"verticalAlign",2);yo([H({type:Boolean,attribute:"left-expand",reflect:!0})],exports.SplitRow.prototype,"leftExpand",2);yo([H({type:Boolean,attribute:"right-expand",reflect:!0})],exports.SplitRow.prototype,"rightExpand",2);yo([H({type:Boolean,attribute:"no-gap",reflect:!0})],exports.SplitRow.prototype,"noGap",2);yo([H({type:Boolean,attribute:"expand-y"})],exports.SplitRow.prototype,"expandY",2);exports.SplitRow=yo([ee(Nv)],exports.SplitRow);exports.ActionBar=class extends Ue{constructor(){super(...arguments),this.noBorder=!1,this.leftExpand=!1,this.rightExpand=!1}render(){return q`
|
|
2352
2352
|
<brz-split-row
|
|
2353
2353
|
vertical-align="middle"
|
|
2354
2354
|
?left-expand=${this.leftExpand}
|
|
@@ -2367,7 +2367,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2367
2367
|
:host([no-border]) brz-split-row {
|
|
2368
2368
|
box-shadow: none;
|
|
2369
2369
|
}
|
|
2370
|
-
`;yo([H({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);yo([H({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);yo([H({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=yo([ee(
|
|
2370
|
+
`;yo([H({type:Boolean,attribute:"no-border",reflect:!0})],exports.ActionBar.prototype,"noBorder",2);yo([H({type:Boolean,attribute:"left-expand",reflect:!0})],exports.ActionBar.prototype,"leftExpand",2);yo([H({type:Boolean,attribute:"right-expand",reflect:!0})],exports.ActionBar.prototype,"rightExpand",2);exports.ActionBar=yo([ee(Rv)],exports.ActionBar);var eC=Object.defineProperty,tC=Object.getOwnPropertyDescriptor,p1=(o,t,n,l)=>{for(var c=l>1?void 0:l?tC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&eC(t,n,c),c};const Fv=Le("modal-header"),Hv=Le("modal-body"),Bv=Le("modal-footer");exports.ModalHeader=class extends Ue{get _noClose(){var t;return(t=sh(this.parentElement,exports.Modal))==null?void 0:t.noClose}_handleClickClose(){this.dispatchEvent(new qh)}render(){return q`
|
|
2371
2371
|
<brz-heading size="xl"><slot></slot></brz-heading>
|
|
2372
2372
|
${this._noClose?void 0:q`
|
|
2373
2373
|
<brz-button
|
|
@@ -2396,7 +2396,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2396
2396
|
brz-button.close {
|
|
2397
2397
|
margin-right: calc(0px - var(--brz-spacing-2));
|
|
2398
2398
|
}
|
|
2399
|
-
`;exports.ModalHeader=p1([ee(
|
|
2399
|
+
`;exports.ModalHeader=p1([ee(Fv)],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 q`<slot></slot>`}};exports.ModalBody.styles=fe`
|
|
2400
2400
|
:host {
|
|
2401
2401
|
display: block;
|
|
2402
2402
|
padding: var(--brz-spacing-5) var(--brz-spacing-6);
|
|
@@ -2406,16 +2406,17 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2406
2406
|
:host([scrollable]) {
|
|
2407
2407
|
border-bottom: 1px solid var(--brz-color-neutral-300);
|
|
2408
2408
|
}
|
|
2409
|
-
`;p1([H({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=p1([ee(
|
|
2409
|
+
`;p1([H({type:Boolean,reflect:!0})],exports.ModalBody.prototype,"scrollable",2);exports.ModalBody=p1([ee(Hv)],exports.ModalBody);exports.ModalFooter=class extends Ue{render(){return q`
|
|
2410
2410
|
<brz-split-row vertical-align="middle">
|
|
2411
2411
|
<slot slot="left" name="left"></slot>
|
|
2412
2412
|
<slot slot="right" name="right"></slot>
|
|
2413
2413
|
</brz-split-row>
|
|
2414
2414
|
`}};exports.ModalFooter.styles=fe`
|
|
2415
2415
|
:host {
|
|
2416
|
+
display: block;
|
|
2416
2417
|
padding: var(--brz-spacing-5) var(--brz-spacing-6);
|
|
2417
2418
|
}
|
|
2418
|
-
`;exports.ModalFooter=p1([ee(
|
|
2419
|
+
`;exports.ModalFooter=p1([ee(Bv)],exports.ModalFooter);var rC=Object.defineProperty,nC=Object.getOwnPropertyDescriptor,Wv=(o,t,n,l)=>{for(var c=l>1?void 0:l?nC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&rC(t,n,c),c};const Uv=Le("confirmation-dialog");class Vv extends CustomEvent{constructor(){super("brz-dialog-cancel",{bubbles:!0})}}class Zv extends CustomEvent{constructor(){super("brz-dialog-confirm",{bubbles:!0})}}exports.ConfirmationDialog=class extends Ue{constructor(){super(...arguments),this.open=!1}handleCancel(){this.dispatchEvent(new Vv)}handleConfirm(){this.dispatchEvent(new Zv)}render(){return q`<brz-modal size="small" ?open=${this.open} noClose>
|
|
2419
2420
|
<brz-modal-body>
|
|
2420
2421
|
<slot name="body"></slot>
|
|
2421
2422
|
</brz-modal-body>
|
|
@@ -2429,12 +2430,12 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2429
2430
|
</brz-button>
|
|
2430
2431
|
</brz-button-group>
|
|
2431
2432
|
</brz-modal-footer>
|
|
2432
|
-
</brz-modal>`}};
|
|
2433
|
+
</brz-modal>`}};Wv([H({type:Boolean})],exports.ConfirmationDialog.prototype,"open",2);exports.ConfirmationDialog=Wv([ee(Uv)],exports.ConfirmationDialog);var iC=Object.defineProperty,oC=Object.getOwnPropertyDescriptor,Gv=(o,t,n,l)=>{for(var c=l>1?void 0:l?oC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&iC(t,n,c),c};const qv=Le("dropdown-button");exports.DropdownButton=class extends exports.Button{constructor(){super(...arguments),this.trailingIcon="chevronDown"}updated(t){if(super.updated(t),t.has("iconOnly")&&this.iconOnly&&this.leadingIcon)return this.trailingIcon=void 0;t.has("trailingIcon")&&t.get("trailingIcon")!=="chevronDown"&&(this.trailingIcon="chevronDown")}render(){return q`
|
|
2433
2434
|
<brz-dropdown-menu .size=${this.menuSize}>
|
|
2434
2435
|
${super.render()}
|
|
2435
2436
|
<slot name="options" slot="options"></slot>
|
|
2436
2437
|
</brz-dropdown-menu>
|
|
2437
|
-
`}};
|
|
2438
|
+
`}};Gv([H({attribute:"menu-size"})],exports.DropdownButton.prototype,"menuSize",2);exports.DropdownButton=Gv([ee(qv)],exports.DropdownButton);var aC=Object.defineProperty,sC=Object.getOwnPropertyDescriptor,Js=(o,t,n,l)=>{for(var c=l>1?void 0:l?sC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&aC(t,n,c),c};const jv=Le("input-checkbox"),ki={Checked:"Checked",Indeterminate:"Indeterminate",Empty:"Empty"};exports.InputCheckbox=class extends Yn{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.value="on",this.indeterminate=!1,this.checkboxState=ki.Empty,this.inputElement=null}updateProxyInput(){super.updateProxyInput(),this.proxyInput&&(this.checked?(this.proxyInput.setAttribute("checked",""),this.proxyInput.value=this.value||""):this.proxyInput.value="")}handleKeyPress(t){t.preventDefault(),t.key===" "&&this.onInput()}onInput(){if(!this.disabled){switch(this.checkboxState){case ki.Checked:this.checked=!1;break;case ki.Empty:this.checked=!0;break;case ki.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 ki.Checked:return q`<brz-icon icon="checkBoxTick" size="16"></brz-icon>`;case ki.Indeterminate:return q`<brz-icon icon="zoomOut" size="16"></brz-icon>`;case ki.Empty:default:return}}firstUpdated(){this.inputElement=this.renderRoot.querySelector("input"),this.indeterminate&&this.inputElement&&(this.inputElement.indeterminate=!0)}render(){return this.checkboxState=this.checked?ki.Checked:this.indeterminate?ki.Indeterminate:ki.Empty,q`
|
|
2438
2439
|
<label>
|
|
2439
2440
|
<div class="checkbox-left">
|
|
2440
2441
|
<div
|
|
@@ -2450,8 +2451,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2450
2451
|
@change=${this.onInput}
|
|
2451
2452
|
.value=${this.value}
|
|
2452
2453
|
type="checkbox"
|
|
2453
|
-
?checked=${this.checkboxState===
|
|
2454
|
-
aria-invalid=${
|
|
2454
|
+
?checked=${this.checkboxState===ki.Checked}
|
|
2455
|
+
aria-invalid=${kt(this.invalid?this.invalid:void 0)}
|
|
2455
2456
|
id=${this.id}
|
|
2456
2457
|
?disabled=${this.disabled}
|
|
2457
2458
|
/>
|
|
@@ -2538,15 +2539,15 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2538
2539
|
position: absolute;
|
|
2539
2540
|
left: 0;
|
|
2540
2541
|
}
|
|
2541
|
-
`];
|
|
2542
|
+
`];Js([H({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"checked",2);Js([H({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"disabled",2);Js([H()],exports.InputCheckbox.prototype,"value",2);Js([H({type:Boolean,reflect:!0})],exports.InputCheckbox.prototype,"indeterminate",2);Js([Be()],exports.InputCheckbox.prototype,"checkboxState",2);Js([Be()],exports.InputCheckbox.prototype,"inputElement",2);exports.InputCheckbox=Js([ee(jv)],exports.InputCheckbox);var lC=Object.defineProperty,uC=Object.getOwnPropertyDescriptor,g1=(o,t,n,l)=>{for(var c=l>1?void 0:l?uC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&lC(t,n,c),c};const Kv=Le("input-text");exports.InputText=class extends yn{constructor(){super(...arguments),this.size="medium"}renderInput(){return q`
|
|
2542
2543
|
<input
|
|
2543
2544
|
@input=${this.onInput}
|
|
2544
|
-
.value=${
|
|
2545
|
+
.value=${kt(this.value)}
|
|
2545
2546
|
id=${this.id}
|
|
2546
2547
|
type="text"
|
|
2547
|
-
placeholder=${
|
|
2548
|
-
aria-invalid=${
|
|
2549
|
-
maxlength=${
|
|
2548
|
+
placeholder=${kt(this.placeholder)}
|
|
2549
|
+
aria-invalid=${kt(this.invalid?this.invalid:void 0)}
|
|
2550
|
+
maxlength=${kt(this.maxlength)}
|
|
2550
2551
|
?disabled=${this.disabled}
|
|
2551
2552
|
?readonly=${this.readonly}
|
|
2552
2553
|
/>
|
|
@@ -2554,14 +2555,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2554
2555
|
input {
|
|
2555
2556
|
height: 36px;
|
|
2556
2557
|
}
|
|
2557
|
-
`];g1([H({type:String})],exports.InputText.prototype,"value",2);g1([H({type:String,reflect:!0})],exports.InputText.prototype,"size",2);g1([H({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=g1([ee(
|
|
2558
|
+
`];g1([H({type:String})],exports.InputText.prototype,"value",2);g1([H({type:String,reflect:!0})],exports.InputText.prototype,"size",2);g1([H({type:Number,reflect:!0})],exports.InputText.prototype,"maxlength",2);exports.InputText=g1([ee(Kv)],exports.InputText);var cC=Object.defineProperty,dC=Object.getOwnPropertyDescriptor,v1=(o,t,n,l)=>{for(var c=l>1?void 0:l?dC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&cC(t,n,c),c};const Yv=Le("input-textarea");exports.InputTextarea=class extends yn{constructor(){super(...arguments),this.size="x-large"}renderGuide(){var l;if(!this.maxlength)return null;const t=((l=this.value)==null?void 0:l.length)||0,n=q`${t} of ${this.maxlength}`;return t>=this.maxlength?q`<brz-input-error>${n}</brz-input-error>`:q`<brz-input-guide>${n}</brz-input-guide>`}renderInput(){var t;return q`
|
|
2558
2559
|
<textarea
|
|
2559
2560
|
@input=${this.onInput}
|
|
2560
2561
|
.value=${(t=this.value)!=null?t:""}
|
|
2561
2562
|
id=${this.id}
|
|
2562
|
-
placeholder=${
|
|
2563
|
-
aria-invalid=${
|
|
2564
|
-
maxlength=${
|
|
2563
|
+
placeholder=${kt(this.placeholder)}
|
|
2564
|
+
aria-invalid=${kt(this.invalid?this.invalid:void 0)}
|
|
2565
|
+
maxlength=${kt(this.maxlength)}
|
|
2565
2566
|
?disabled=${this.disabled}
|
|
2566
2567
|
?readonly=${this.readonly}
|
|
2567
2568
|
/>
|
|
@@ -2570,7 +2571,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2570
2571
|
height: 100px;
|
|
2571
2572
|
resize: none;
|
|
2572
2573
|
}
|
|
2573
|
-
`];v1([H({type:String})],exports.InputTextarea.prototype,"value",2);v1([H({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);v1([H({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=v1([ee(
|
|
2574
|
+
`];v1([H({type:String})],exports.InputTextarea.prototype,"value",2);v1([H({type:String,reflect:!0})],exports.InputTextarea.prototype,"size",2);v1([H({type:Number,reflect:!0,attribute:"maxlength"})],exports.InputTextarea.prototype,"maxlength",2);exports.InputTextarea=v1([ee(Yv)],exports.InputTextarea);var fC=Object.defineProperty,hC=Object.getOwnPropertyDescriptor,Qs=(o,t,n,l)=>{for(var c=l>1?void 0:l?hC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&fC(t,n,c),c};const Xv=Le("input-number"),pC=fe`
|
|
2574
2575
|
/* Chrome, Safari, Edge, Opera */
|
|
2575
2576
|
input::-webkit-outer-spin-button,
|
|
2576
2577
|
input::-webkit-inner-spin-button {
|
|
@@ -2582,7 +2583,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2582
2583
|
input[type='number'] {
|
|
2583
2584
|
-moz-appearance: textfield;
|
|
2584
2585
|
}
|
|
2585
|
-
`,
|
|
2586
|
+
`,Jv=["e","+"],Qv=o=>Jv.includes(o.toLowerCase()),gC=o=>!!Jv.find(t=>o.toLowerCase().includes(t)),vC=o=>{var n,l;Qv(o.key)&&o.preventDefault();const t=o.target;((n=t==null?void 0:t.value)==null?void 0:n.length)===0&&o.key==="-"&&(t.value=""),((l=t==null?void 0:t.value)==null?void 0:l.length)>0&&o.key==="-"&&o.preventDefault()},bC=o=>{var g;const t=/^-?\d+\.?\d*$/,{clipboardData:n}=o,l=(g=n==null?void 0:n.getData("text"))==null?void 0:g.toLowerCase();if(!l)return;const c=o.target;(!(c!=null&&c.value)||!t.test(c.value+l)&&t.test(l))&&(c.value=""),(Qv(l)||gC(l)||!t.test(l))&&(o.stopPropagation(),o.preventDefault())};exports.InputNumber=class extends yn{constructor(){super(...arguments),this.hasNoStepper=!1,this.step=1}handleIncrease(){var t;this.inputElement.focus(),this.inputElement.stepUp(),this.handleSteppedChange((t=parseFloat(this.inputElement.value))!=null?t:0)}handleDecrease(){var t;this.inputElement.focus(),this.inputElement.stepDown(),this.handleSteppedChange((t=parseFloat(this.inputElement.value))!=null?t:0)}handleSteppedChange(t){this.value=t,this.dispatchChange()}onInput(t){const n=typeof t.target.value=="string"?parseFloat(t.target.value):t.target.value;super.onInput({target:{value:n}})}handleKeyDown(t){vC(t)}handlePaste(t){bC(t)}get stepperLayout(){return this.hasNoStepper?null:q`
|
|
2586
2587
|
<div class="stepper-container">
|
|
2587
2588
|
<button
|
|
2588
2589
|
@click=${this.handleDecrease}
|
|
@@ -2609,18 +2610,18 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2609
2610
|
@keydown=${this.handleKeyDown}
|
|
2610
2611
|
@paste=${this.handlePaste}
|
|
2611
2612
|
@input=${this.onInput}
|
|
2612
|
-
.value=${
|
|
2613
|
+
.value=${kt(this.value)}
|
|
2613
2614
|
.step=${this.step}
|
|
2614
2615
|
type="number"
|
|
2615
2616
|
?disabled=${this.disabled}
|
|
2616
2617
|
?readonly=${this.readonly}
|
|
2617
|
-
placeholder=${
|
|
2618
|
-
aria-invalid=${
|
|
2618
|
+
placeholder=${kt(this.placeholder)}
|
|
2619
|
+
aria-invalid=${kt(this.invalid?this.invalid:void 0)}
|
|
2619
2620
|
id=${this.id}
|
|
2620
|
-
min=${
|
|
2621
|
-
max=${
|
|
2621
|
+
min=${kt(this.min)}
|
|
2622
|
+
max=${kt(this.max)}
|
|
2622
2623
|
/>
|
|
2623
|
-
</div>`}};exports.InputNumber.styles=[...yn.styles,
|
|
2624
|
+
</div>`}};exports.InputNumber.styles=[...yn.styles,pC,fe`
|
|
2624
2625
|
:host(:not[has-no-stepper]) input {
|
|
2625
2626
|
padding-right: var(--brz-spacing-20);
|
|
2626
2627
|
}
|
|
@@ -2664,11 +2665,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2664
2665
|
cursor: unset;
|
|
2665
2666
|
background-color: var(--brz-color-neutral-250);
|
|
2666
2667
|
}
|
|
2667
|
-
`];
|
|
2668
|
+
`];Qs([H({type:Number})],exports.InputNumber.prototype,"value",2);Qs([H({type:Boolean,reflect:!0,attribute:"has-no-stepper"})],exports.InputNumber.prototype,"hasNoStepper",2);Qs([H({type:Number,reflect:!0})],exports.InputNumber.prototype,"min",2);Qs([H({type:Number,reflect:!0})],exports.InputNumber.prototype,"max",2);Qs([H({type:Number,reflect:!0})],exports.InputNumber.prototype,"step",2);Qs([Ri('input[type="number"]')],exports.InputNumber.prototype,"inputElement",2);exports.InputNumber=Qs([ee(Xv)],exports.InputNumber);/**
|
|
2668
2669
|
* @license
|
|
2669
2670
|
* Copyright 2017 Google LLC
|
|
2670
2671
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2671
|
-
*/class
|
|
2672
|
+
*/class ph extends u1{constructor(t){if(super(t),this.et=pr,t.type!==s1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===pr||t==null)return this.ft=void 0,this.et=t;if(t===Yo)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const n=[t];return n.raw=n,this.ft={_$litType$:this.constructor.resultType,strings:n,values:[]}}}ph.directiveName="unsafeHTML",ph.resultType=1;const mC=l1(ph);var yC=Object.defineProperty,CC=Object.getOwnPropertyDescriptor,el=(o,t,n,l)=>{for(var c=l>1?void 0:l?CC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&yC(t,n,c),c};const e4=Le("input-radio-group"),t4=Le("input-radio-option"),wC=["horizontal","vertical"];exports.InputRadio=class extends exports.LabeledInput{constructor(){super(...arguments),this.layout="vertical",this.size="auto",this._radioElements=[]}handleSlotChange(){this._radioElements=this._findRadioOptions()}_findRadioOptions(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("#options");return Array.from(t.assignedElements()).filter(l=>l instanceof exports.InputRadioOption)}radioChange(t){const n=t.target;this.value=n.value,this.dispatchChange()}renderInput(){return q`
|
|
2672
2673
|
<slot
|
|
2673
2674
|
id="options"
|
|
2674
2675
|
style="display: none;"
|
|
@@ -2683,11 +2684,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2683
2684
|
type="radio"
|
|
2684
2685
|
name=${this.name}
|
|
2685
2686
|
value=${t.value}
|
|
2686
|
-
aria-invalid=${
|
|
2687
|
+
aria-invalid=${kt(this.invalid?this.invalid:void 0)}
|
|
2687
2688
|
?checked=${n}
|
|
2688
2689
|
?disabled=${t.disabled||this.disabled}
|
|
2689
2690
|
/>
|
|
2690
|
-
<label for=${t.value}>${
|
|
2691
|
+
<label for=${t.value}>${mC(t.innerHTML)}</label>
|
|
2691
2692
|
</div>
|
|
2692
2693
|
`})}
|
|
2693
2694
|
</fieldset>
|
|
@@ -2843,31 +2844,31 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
2843
2844
|
input[type='radio'][aria-invalid='true'] + label {
|
|
2844
2845
|
color: var(--brz-input-radio-invalid-color);
|
|
2845
2846
|
}
|
|
2846
|
-
`];Qs([H({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);Qs([H({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);Qs([Be()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=Qs([ee(Yv)],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};Qs([H({type:String})],exports.InputRadioOption.prototype,"value",2);Qs([H({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=Qs([ee(Xv)],exports.InputRadioOption);var Jv={exports:{}};(function(o,t){(function(n,l){o.exports=l()})(nu,function(){var n=navigator.userAgent,l=navigator.platform,c=/gecko\/\d/i.test(n),g=/MSIE \d/.test(n),h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),x=/Edge\/(\d+)/.exec(n),z=g||h||x,S=z&&(g?document.documentMode||6:+(x||h)[1]),k=!x&&/WebKit\//.test(n),D=k&&/Qt\/\d+\.\d+/.test(n),B=!x&&/Chrome\//.test(n),R=/Opera\//.test(n),J=/Apple Computer/.test(navigator.vendor),pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),ge=/PhantomJS/.test(n),Te=J&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),Ie=/Android/.test(n),be=Te||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),ve=Te||/Mac/.test(l),Oe=/\bCrOS\b/.test(n),$e=/win/i.test(l),De=R&&n.match(/Version\/(\d*\.\d*)/);De&&(De=Number(De[1])),De&&De>=15&&(R=!1,k=!0);var je=ve&&(D||R&&(De==null||De<12.11)),Ye=c||z&&S>=9;function Ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var le=function(e,r){var s=e.className,a=Ce(r).exec(s);if(a){var d=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(d?a[1]+d:"")}};function Q(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function $(e,r){return Q(e).appendChild(r)}function O(e,r,s,a){var d=document.createElement(e);if(s&&(d.className=s),a&&(d.style.cssText=a),typeof r=="string")d.appendChild(document.createTextNode(r));else if(r)for(var p=0;p<r.length;++p)d.appendChild(r[p]);return d}function E(e,r,s,a){var d=O(e,r,s,a);return d.setAttribute("role","presentation"),d}var Y;document.createRange?Y=function(e,r,s,a){var d=document.createRange();return d.setEnd(a||e,s),d.setStart(e,r),d}:Y=function(e,r,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",r),a};function ue(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function Ae(){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 et(e,r){var s=e.className;Ce(r).test(s)||(e.className+=(s?" ":"")+r)}function pt(e,r){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!Ce(s[a]).test(r)&&(r+=" "+s[a]);return r}var yt=function(e){e.select()};Te?yt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:z&&(yt=function(e){try{e.select()}catch{}});function or(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function Mt(e,r,s){r||(r={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=e[a]);return r}function xt(e,r,s,a,d){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var p=a||0,v=d||0;;){var m=e.indexOf(" ",p);if(m<0||m>=r)return v+(r-p);v+=m-p,v+=s-v%s,p=m+1}}var rt=function(){this.id=null,this.f=null,this.time=0,this.handler=or(this.onTimeout,this)};rt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},rt.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function ze(e,r){for(var s=0;s<e.length;++s)if(e[s]==r)return s;return-1}var Ne=50,Ge={toString:function(){return"CodeMirror.Pass"}},st={scroll:!1},lt={origin:"*mouse"},Ze={origin:"+move"};function Vt(e,r,s){for(var a=0,d=0;;){var p=e.indexOf(" ",a);p==-1&&(p=e.length);var v=p-a;if(p==e.length||d+v>=r)return a+Math.min(v,r-d);if(d+=p-a,d+=s-d%s,a=p+1,d>=r)return a}}var Zr=[""];function tr(e){for(;Zr.length<=e;)Zr.push(Qe(Zr)+" ");return Zr[e]}function Qe(e){return e[e.length-1]}function bt(e,r){for(var s=[],a=0;a<e.length;a++)s[a]=r(e[a],a);return s}function kt(e,r,s){for(var a=0,d=s(r);a<e.length&&s(e[a])<=d;)a++;e.splice(a,0,r)}function Pr(){}function en(e,r){var s;return Object.create?s=Object.create(e):(Pr.prototype=e,s=new Pr),r&&Mt(r,s),s}var ar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function it(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ar.test(e))}function Z(e,r){return r?r.source.indexOf("\\w")>-1&&it(e)?!0:r.test(e):it(e)}function se(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var K=/[\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 tt(e){return e.charCodeAt(0)>=768&&K.test(e)}function sr(e,r,s){for(;(s<0?r>0:r<e.length)&&tt(e.charAt(r));)r+=s;return r}function Lr(e,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var d=(r+s)/2,p=a<0?Math.ceil(d):Math.floor(d);if(p==r)return e(p)?r:s;e(p)?s=p:r=p+a}}function $n(e,r,s,a){if(!e)return a(r,s,"ltr",0);for(var d=!1,p=0;p<e.length;++p){var v=e[p];(v.from<s&&v.to>r||r==s&&v.to==r)&&(a(Math.max(v.from,r),Math.min(v.to,s),v.level==1?"rtl":"ltr",p),d=!0)}d||a(r,s,"ltr")}var Gr=null;function Ut(e,r,s){var a;Gr=null;for(var d=0;d<e.length;++d){var p=e[d];if(p.from<r&&p.to>r)return d;p.to==r&&(p.from!=p.to&&s=="before"?a=d:Gr=d),p.from==r&&(p.from!=p.to&&s!="before"?a=d:Gr=d)}return a!=null?a:Gr}var bi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?r.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]/,d=/[stwN]/,p=/[LRr]/,v=/[Lb1n]/,m=/[1n]/;function y(C,T,I){this.level=C,this.from=T,this.to=I}return function(C,T){var I=T=="ltr"?"L":"R";if(C.length==0||T=="ltr"&&!a.test(C))return!1;for(var W=C.length,F=[],j=0;j<W;++j)F.push(s(C.charCodeAt(j)));for(var ne=0,he=I;ne<W;++ne){var me=F[ne];me=="m"?F[ne]=he:he=me}for(var xe=0,ye=I;xe<W;++xe){var Se=F[xe];Se=="1"&&ye=="r"?F[xe]="n":p.test(Se)&&(ye=Se,Se=="r"&&(F[xe]="R"))}for(var Fe=1,Pe=F[0];Fe<W-1;++Fe){var ut=F[Fe];ut=="+"&&Pe=="1"&&F[Fe+1]=="1"?F[Fe]="1":ut==","&&Pe==F[Fe+1]&&(Pe=="1"||Pe=="n")&&(F[Fe]=Pe),Pe=ut}for(var It=0;It<W;++It){var rr=F[It];if(rr==",")F[It]="N";else if(rr=="%"){var Nt=void 0;for(Nt=It+1;Nt<W&&F[Nt]=="%";++Nt);for(var Hr=It&&F[It-1]=="!"||Nt<W&&F[Nt]=="1"?"1":"N",Br=It;Br<Nt;++Br)F[Br]=Hr;It=Nt-1}}for(var Xt=0,Cr=I;Xt<W;++Xt){var cr=F[Xt];Cr=="L"&&cr=="1"?F[Xt]="L":p.test(cr)&&(Cr=cr)}for(var $t=0;$t<W;++$t)if(d.test(F[$t])){var Ht=void 0;for(Ht=$t+1;Ht<W&&d.test(F[Ht]);++Ht);for(var jt=($t?F[$t-1]:I)=="L",Wr=(Ht<W?F[Ht]:I)=="L",$a=jt==Wr?jt?"L":"R":I,po=$t;po<Ht;++po)F[po]=$a;$t=Ht-1}for(var Ar=[],si,dr=0;dr<W;)if(v.test(F[dr])){var pc=dr;for(++dr;dr<W&&v.test(F[dr]);++dr);Ar.push(new y(0,pc,dr))}else{var Mi=dr,Uo=Ar.length,Vo=T=="rtl"?1:0;for(++dr;dr<W&&F[dr]!="L";++dr);for(var Ur=Mi;Ur<dr;)if(m.test(F[Ur])){Mi<Ur&&(Ar.splice(Uo,0,new y(1,Mi,Ur)),Uo+=Vo);var Pa=Ur;for(++Ur;Ur<dr&&m.test(F[Ur]);++Ur);Ar.splice(Uo,0,new y(2,Pa,Ur)),Uo+=Vo,Mi=Ur}else++Ur;Mi<dr&&Ar.splice(Uo,0,new y(1,Mi,dr))}return T=="ltr"&&(Ar[0].level==1&&(si=C.match(/^\s+/))&&(Ar[0].from=si[0].length,Ar.unshift(new y(0,0,si[0].length))),Qe(Ar).level==1&&(si=C.match(/\s+$/))&&(Qe(Ar).to-=si[0].length,Ar.push(new y(0,W-si[0].length,W)))),T=="rtl"?Ar.reverse():Ar}}();function Dr(e,r){var s=e.order;return s==null&&(s=e.order=bi(e.text,r)),s}var Pn=[],We=function(e,r,s){if(e.addEventListener)e.addEventListener(r,s,!1);else if(e.attachEvent)e.attachEvent("on"+r,s);else{var a=e._handlers||(e._handlers={});a[r]=(a[r]||Pn).concat(s)}};function Bi(e,r){return e._handlers&&e._handlers[r]||Pn}function Sr(e,r,s){if(e.removeEventListener)e.removeEventListener(r,s,!1);else if(e.detachEvent)e.detachEvent("on"+r,s);else{var a=e._handlers,d=a&&a[r];if(d){var p=ze(d,s);p>-1&&(a[r]=d.slice(0,p).concat(d.slice(p+1)))}}}function qe(e,r){var s=Bi(e,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<s.length;++d)s[d].apply(null,a)}function Jt(e,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),qe(e,s||r.type,e,r),ln(r)||r.codemirrorIgnore}function na(e){var r=e._handlers&&e._handlers.cursorActivity;if(r)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)ze(s,r[a])==-1&&s.push(r[a])}function gr(e,r){return Bi(e,r).length>0}function Dn(e){e.prototype.on=function(r,s){We(this,r,s)},e.prototype.off=function(r,s){Sr(this,r,s)}}function vr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ia(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ln(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function wo(e){vr(e),ia(e)}function Wi(e){return e.target||e.srcElement}function ja(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),ve&&e.ctrlKey&&r==1&&(r=3),r}var Ka=function(){if(z&&S<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}(),qr;function tl(e){if(qr==null){var r=O("span","");$(e,O("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(qr=r.offsetWidth<=1&&r.offsetHeight>2&&!(z&&S<8))}var s=qr?O("span",""):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var xo;function Xn(e){if(xo!=null)return xo;var r=$(e,document.createTextNode("AخA")),s=Y(r,0,1).getBoundingClientRect(),a=Y(r,1,2).getBoundingClientRect();return Q(e),!s||s.left==s.right?!1:xo=a.right-s.right<3}var zo=`
|
|
2847
|
+
`];el([H({type:String,reflect:!0})],exports.InputRadio.prototype,"layout",2);el([H({type:String,reflect:!0})],exports.InputRadio.prototype,"size",2);el([Be()],exports.InputRadio.prototype,"_radioElements",2);exports.InputRadio=el([ee(e4)],exports.InputRadio);exports.InputRadioOption=class extends Ue{render(){}};el([H({type:String})],exports.InputRadioOption.prototype,"value",2);el([H({type:Boolean})],exports.InputRadioOption.prototype,"disabled",2);exports.InputRadioOption=el([ee(t4)],exports.InputRadioOption);var qf={exports:{}},E2;function ra(){return E2||(E2=1,function(o,t){(function(n,l){o.exports=l()})(iu,function(){var n=navigator.userAgent,l=navigator.platform,c=/gecko\/\d/i.test(n),g=/MSIE \d/.test(n),h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),x=/Edge\/(\d+)/.exec(n),z=g||h||x,S=z&&(g?document.documentMode||6:+(x||h)[1]),E=!x&&/WebKit\//.test(n),D=E&&/Qt\/\d+\.\d+/.test(n),B=!x&&/Chrome\//.test(n),R=/Opera\//.test(n),J=/Apple Computer/.test(navigator.vendor),pe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),ge=/PhantomJS/.test(n),Te=J&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),Ie=/Android/.test(n),be=Te||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),ve=Te||/Mac/.test(l),Oe=/\bCrOS\b/.test(n),$e=/win/i.test(l),De=R&&n.match(/Version\/(\d*\.\d*)/);De&&(De=Number(De[1])),De&&De>=15&&(R=!1,E=!0);var je=ve&&(D||R&&(De==null||De<12.11)),Ye=c||z&&S>=9;function Ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var le=function(e,r){var s=e.className,a=Ce(r).exec(s);if(a){var d=s.slice(a.index+a[0].length);e.className=s.slice(0,a.index)+(d?a[1]+d:"")}};function Q(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function $(e,r){return Q(e).appendChild(r)}function O(e,r,s,a){var d=document.createElement(e);if(s&&(d.className=s),a&&(d.style.cssText=a),typeof r=="string")d.appendChild(document.createTextNode(r));else if(r)for(var p=0;p<r.length;++p)d.appendChild(r[p]);return d}function k(e,r,s,a){var d=O(e,r,s,a);return d.setAttribute("role","presentation"),d}var Y;document.createRange?Y=function(e,r,s,a){var d=document.createRange();return d.setEnd(a||e,s),d.setStart(e,r),d}:Y=function(e,r,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",r),a};function ue(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function Ae(){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 et(e,r){var s=e.className;Ce(r).test(s)||(e.className+=(s?" ":"")+r)}function pt(e,r){for(var s=e.split(" "),a=0;a<s.length;a++)s[a]&&!Ce(s[a]).test(r)&&(r+=" "+s[a]);return r}var yt=function(e){e.select()};Te?yt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:z&&(yt=function(e){try{e.select()}catch{}});function or(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function Mt(e,r,s){r||(r={});for(var a in e)e.hasOwnProperty(a)&&(s!==!1||!r.hasOwnProperty(a))&&(r[a]=e[a]);return r}function xt(e,r,s,a,d){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var p=a||0,v=d||0;;){var m=e.indexOf(" ",p);if(m<0||m>=r)return v+(r-p);v+=m-p,v+=s-v%s,p=m+1}}var rt=function(){this.id=null,this.f=null,this.time=0,this.handler=or(this.onTimeout,this)};rt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},rt.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function ze(e,r){for(var s=0;s<e.length;++s)if(e[s]==r)return s;return-1}var Ne=50,Ge={toString:function(){return"CodeMirror.Pass"}},st={scroll:!1},lt={origin:"*mouse"},Ze={origin:"+move"};function Vt(e,r,s){for(var a=0,d=0;;){var p=e.indexOf(" ",a);p==-1&&(p=e.length);var v=p-a;if(p==e.length||d+v>=r)return a+Math.min(v,r-d);if(d+=p-a,d+=s-d%s,a=p+1,d>=r)return a}}var Zr=[""];function tr(e){for(;Zr.length<=e;)Zr.push(Qe(Zr)+" ");return Zr[e]}function Qe(e){return e[e.length-1]}function bt(e,r){for(var s=[],a=0;a<e.length;a++)s[a]=r(e[a],a);return s}function Et(e,r,s){for(var a=0,d=s(r);a<e.length&&s(e[a])<=d;)a++;e.splice(a,0,r)}function Pr(){}function en(e,r){var s;return Object.create?s=Object.create(e):(Pr.prototype=e,s=new Pr),r&&Mt(r,s),s}var ar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function it(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ar.test(e))}function Z(e,r){return r?r.source.indexOf("\\w")>-1&&it(e)?!0:r.test(e):it(e)}function se(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var K=/[\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 tt(e){return e.charCodeAt(0)>=768&&K.test(e)}function sr(e,r,s){for(;(s<0?r>0:r<e.length)&&tt(e.charAt(r));)r+=s;return r}function Lr(e,r,s){for(var a=r>s?-1:1;;){if(r==s)return r;var d=(r+s)/2,p=a<0?Math.ceil(d):Math.floor(d);if(p==r)return e(p)?r:s;e(p)?s=p:r=p+a}}function $n(e,r,s,a){if(!e)return a(r,s,"ltr",0);for(var d=!1,p=0;p<e.length;++p){var v=e[p];(v.from<s&&v.to>r||r==s&&v.to==r)&&(a(Math.max(v.from,r),Math.min(v.to,s),v.level==1?"rtl":"ltr",p),d=!0)}d||a(r,s,"ltr")}var Gr=null;function Ut(e,r,s){var a;Gr=null;for(var d=0;d<e.length;++d){var p=e[d];if(p.from<r&&p.to>r)return d;p.to==r&&(p.from!=p.to&&s=="before"?a=d:Gr=d),p.from==r&&(p.from!=p.to&&s!="before"?a=d:Gr=d)}return a!=null?a:Gr}var bi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(C){return C<=247?e.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?r.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]/,d=/[stwN]/,p=/[LRr]/,v=/[Lb1n]/,m=/[1n]/;function y(C,T,I){this.level=C,this.from=T,this.to=I}return function(C,T){var I=T=="ltr"?"L":"R";if(C.length==0||T=="ltr"&&!a.test(C))return!1;for(var W=C.length,F=[],j=0;j<W;++j)F.push(s(C.charCodeAt(j)));for(var ne=0,he=I;ne<W;++ne){var me=F[ne];me=="m"?F[ne]=he:he=me}for(var xe=0,ye=I;xe<W;++xe){var Se=F[xe];Se=="1"&&ye=="r"?F[xe]="n":p.test(Se)&&(ye=Se,Se=="r"&&(F[xe]="R"))}for(var Fe=1,Pe=F[0];Fe<W-1;++Fe){var ut=F[Fe];ut=="+"&&Pe=="1"&&F[Fe+1]=="1"?F[Fe]="1":ut==","&&Pe==F[Fe+1]&&(Pe=="1"||Pe=="n")&&(F[Fe]=Pe),Pe=ut}for(var It=0;It<W;++It){var rr=F[It];if(rr==",")F[It]="N";else if(rr=="%"){var Nt=void 0;for(Nt=It+1;Nt<W&&F[Nt]=="%";++Nt);for(var Hr=It&&F[It-1]=="!"||Nt<W&&F[Nt]=="1"?"1":"N",Br=It;Br<Nt;++Br)F[Br]=Hr;It=Nt-1}}for(var Xt=0,Cr=I;Xt<W;++Xt){var cr=F[Xt];Cr=="L"&&cr=="1"?F[Xt]="L":p.test(cr)&&(Cr=cr)}for(var $t=0;$t<W;++$t)if(d.test(F[$t])){var Ht=void 0;for(Ht=$t+1;Ht<W&&d.test(F[Ht]);++Ht);for(var jt=($t?F[$t-1]:I)=="L",Wr=(Ht<W?F[Ht]:I)=="L",$a=jt==Wr?jt?"L":"R":I,go=$t;go<Ht;++go)F[go]=$a;$t=Ht-1}for(var Ar=[],si,dr=0;dr<W;)if(v.test(F[dr])){var pc=dr;for(++dr;dr<W&&v.test(F[dr]);++dr);Ar.push(new y(0,pc,dr))}else{var Mi=dr,Uo=Ar.length,Vo=T=="rtl"?1:0;for(++dr;dr<W&&F[dr]!="L";++dr);for(var Ur=Mi;Ur<dr;)if(m.test(F[Ur])){Mi<Ur&&(Ar.splice(Uo,0,new y(1,Mi,Ur)),Uo+=Vo);var Pa=Ur;for(++Ur;Ur<dr&&m.test(F[Ur]);++Ur);Ar.splice(Uo,0,new y(2,Pa,Ur)),Uo+=Vo,Mi=Ur}else++Ur;Mi<dr&&Ar.splice(Uo,0,new y(1,Mi,dr))}return T=="ltr"&&(Ar[0].level==1&&(si=C.match(/^\s+/))&&(Ar[0].from=si[0].length,Ar.unshift(new y(0,0,si[0].length))),Qe(Ar).level==1&&(si=C.match(/\s+$/))&&(Qe(Ar).to-=si[0].length,Ar.push(new y(0,W-si[0].length,W)))),T=="rtl"?Ar.reverse():Ar}}();function Dr(e,r){var s=e.order;return s==null&&(s=e.order=bi(e.text,r)),s}var Pn=[],We=function(e,r,s){if(e.addEventListener)e.addEventListener(r,s,!1);else if(e.attachEvent)e.attachEvent("on"+r,s);else{var a=e._handlers||(e._handlers={});a[r]=(a[r]||Pn).concat(s)}};function Wi(e,r){return e._handlers&&e._handlers[r]||Pn}function Sr(e,r,s){if(e.removeEventListener)e.removeEventListener(r,s,!1);else if(e.detachEvent)e.detachEvent("on"+r,s);else{var a=e._handlers,d=a&&a[r];if(d){var p=ze(d,s);p>-1&&(a[r]=d.slice(0,p).concat(d.slice(p+1)))}}}function qe(e,r){var s=Wi(e,r);if(s.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<s.length;++d)s[d].apply(null,a)}function Jt(e,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),qe(e,s||r.type,e,r),ln(r)||r.codemirrorIgnore}function na(e){var r=e._handlers&&e._handlers.cursorActivity;if(r)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),a=0;a<r.length;++a)ze(s,r[a])==-1&&s.push(r[a])}function gr(e,r){return Wi(e,r).length>0}function Dn(e){e.prototype.on=function(r,s){We(this,r,s)},e.prototype.off=function(r,s){Sr(this,r,s)}}function vr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ia(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function ln(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function wo(e){vr(e),ia(e)}function Ui(e){return e.target||e.srcElement}function ja(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),ve&&e.ctrlKey&&r==1&&(r=3),r}var Ka=function(){if(z&&S<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}(),qr;function rl(e){if(qr==null){var r=O("span","");$(e,O("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(qr=r.offsetWidth<=1&&r.offsetHeight>2&&!(z&&S<8))}var s=qr?O("span",""):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var xo;function Xn(e){if(xo!=null)return xo;var r=$(e,document.createTextNode("AخA")),s=Y(r,0,1).getBoundingClientRect(),a=Y(r,1,2).getBoundingClientRect();return Q(e),!s||s.left==s.right?!1:xo=a.right-s.right<3}var zo=`
|
|
2847
2848
|
|
|
2848
2849
|
b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],a=e.length;r<=a;){var d=e.indexOf(`
|
|
2849
|
-
`,r);d==-1&&(d=e.length);var p=e.slice(r,e.charAt(d-1)=="\r"?d-1:d),v=p.indexOf("\r");v!=-1?(s.push(p.slice(0,v)),r+=v+1):(s.push(p),r=d+1)}return s}:function(e){return e.split(/\r\n?|\n/)},rl=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},nl=function(){var e=O("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ya=null;function Ui(e){if(Ya!=null)return Ya;var r=$(e,O("span","x")),s=r.getBoundingClientRect(),a=Y(r,0,1).getBoundingClientRect();return Ya=Math.abs(s.left-a.left)>1}var Cn={},un={};function il(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Cn[e]=r}function mi(e,r){un[e]=r}function Lo(e){if(typeof e=="string"&&un.hasOwnProperty(e))e=un[e];else if(e&&typeof e.name=="string"&&un.hasOwnProperty(e.name)){var r=un[e.name];typeof r=="string"&&(r={name:r}),e=en(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Lo("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Lo("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function oa(e,r){r=Lo(r);var s=Cn[r.name];if(!s)return oa(e,"text/plain");var a=s(e,r);if(Nn.hasOwnProperty(r.name)){var d=Nn[r.name];for(var p in d)d.hasOwnProperty(p)&&(a.hasOwnProperty(p)&&(a["_"+p]=a[p]),a[p]=d[p])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var v in r.modeProps)a[v]=r.modeProps[v];return a}var Nn={};function Rn(e,r){var s=Nn.hasOwnProperty(e)?Nn[e]:Nn[e]={};Mt(r,s)}function cn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var a in r){var d=r[a];d instanceof Array&&(d=d.concat([])),s[a]=d}return s}function Xa(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function Ja(e,r,s){return e.startState?e.startState(r,s):!0}var Bt=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(e){var r=this.string.charAt(this.pos),s;if(typeof e=="string"?s=r==e:s=r&&(e.test?e.test(r):e(r)),s)return++this.pos,r},Bt.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},Bt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Bt.prototype.backUp=function(e){this.pos-=e},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return xt(this.string,null,this.tabSize)-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(e,r,s){if(typeof e=="string"){var a=function(v){return s?v.toLowerCase():v},d=this.string.substr(this.pos,e.length);if(a(d)==a(e))return r!==!1&&(this.pos+=e.length),!0}else{var p=this.string.slice(this.pos).match(e);return p&&p.index>0?null:(p&&r!==!1&&(this.pos+=p[0].length),p)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Bt.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Bt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ke(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var d=s.children[a],p=d.chunkSize();if(r<p){s=d;break}r-=p}return s.lines[r]}function dn(e,r,s){var a=[],d=r.line;return e.iter(r.line,s.line+1,function(p){var v=p.text;d==s.line&&(v=v.slice(0,s.ch)),d==r.line&&(v=v.slice(r.ch)),a.push(v),++d}),a}function Qa(e,r,s){var a=[];return e.iter(r,s,function(d){a.push(d.text)}),a}function tn(e,r){var s=r-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function zt(e){if(e.parent==null)return null;for(var r=e.parent,s=ze(r.lines,e),a=r.parent;a;r=a,a=a.parent)for(var d=0;a.children[d]!=r;++d)s+=a.children[d].chunkSize();return s+r.first}function Fn(e,r){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var d=e.children[a],p=d.height;if(r<p){e=d;continue e}r-=p,s+=d.chunkSize()}return s}while(!e.lines);for(var v=0;v<e.lines.length;++v){var m=e.lines[v],y=m.height;if(r<y)break;r-=y}return s+v}function Vi(e,r){return r>=e.first&&r<e.first+e.size}function aa(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function ae(e,r,s){if(s===void 0&&(s=null),!(this instanceof ae))return new ae(e,r,s);this.line=e,this.ch=r,this.sticky=s}function w(e,r){return e.line-r.line||e.ch-r.ch}function A(e,r){return e.sticky==r.sticky&&w(e,r)==0}function te(e){return ae(e.line,e.ch)}function ce(e,r){return w(e,r)<0?r:e}function Ke(e,r){return w(e,r)<0?e:r}function gt(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function we(e,r){if(r.line<e.first)return ae(e.first,0);var s=e.first+e.size-1;return r.line>s?ae(s,ke(e,s).text.length):_r(r,ke(e,r.line).text.length)}function _r(e,r){var s=e.ch;return s==null||s>r?ae(e.line,r):s<0?ae(e.line,0):e}function rn(e,r){for(var s=[],a=0;a<r.length;a++)s[a]=we(e,r[a]);return s}var yi=function(e,r){this.state=e,this.lookAhead=r},Hn=function(e,r,s,a){this.state=r,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Hn.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Hn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Hn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Hn.fromSaved=function(e,r,s){return r instanceof yi?new Hn(e,cn(e.mode,r.state),s,r.lookAhead):new Hn(e,cn(e.mode,r),s)},Hn.prototype.save=function(e){var r=e!==!1?cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yi(r,this.maxLookAhead):r};function t0(e,r,s,a){var d=[e.state.modeGen],p={};zu(e,r.text,e.doc.mode,s,function(C,T){return d.push(C,T)},p,a);for(var v=s.state,m=function(C){s.baseTokens=d;var T=e.state.overlays[C],I=1,W=0;s.state=!0,zu(e,r.text,T.mode,s,function(F,j){for(var ne=I;W<F;){var he=d[I];he>F&&d.splice(I,1,F,d[I+1],he),I+=2,W=Math.min(F,he)}if(j)if(T.opaque)d.splice(ne,I-ne,F,"overlay "+j),I=ne+2;else for(;ne<I;ne+=2){var me=d[ne+1];d[ne+1]=(me?me+" ":"")+"overlay "+j}},p),s.state=v,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:d,classes:p.bgClass||p.textClass?p:null}}function xu(e,r,s){if(!r.styles||r.styles[0]!=e.state.modeGen){var a=sa(e,zt(r)),d=r.text.length>e.options.maxHighlightLength&&cn(e.doc.mode,a.state),p=t0(e,r,a);d&&(a.state=d),r.stateAfter=a.save(!d),r.styles=p.styles,p.classes?r.styleClasses=p.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function sa(e,r,s){var a=e.doc,d=e.display;if(!a.mode.startState)return new Hn(a,!0,r);var p=n0(e,r,s),v=p>a.first&&ke(a,p-1).stateAfter,m=v?Hn.fromSaved(a,v,p):new Hn(a,Ja(a.mode),p);return a.iter(p,r,function(y){es(e,y.text,m);var C=m.line;y.stateAfter=C==r-1||C%5==0||C>=d.viewFrom&&C<d.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function es(e,r,s,a){var d=e.doc.mode,p=new Bt(r,e.options.tabSize,s);for(p.start=p.pos=a||0,r==""&&r0(d,s.state);!p.eol();)ol(d,p,s.state),p.start=p.pos}function r0(e,r){if(e.blankLine)return e.blankLine(r);if(e.innerMode){var s=Xa(e,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function ol(e,r,s,a){for(var d=0;d<10;d++){a&&(a[0]=Xa(e,s).mode);var p=e.token(r,s);if(r.pos>r.start)return p}throw new Error("Mode "+e.name+" failed to advance stream.")}var al=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function sl(e,r,s,a){var d=e.doc,p=d.mode,v;r=we(d,r);var m=ke(d,r.line),y=sa(e,r.line,s),C=new Bt(m.text,e.options.tabSize,y),T;for(a&&(T=[]);(a||C.pos<r.ch)&&!C.eol();)C.start=C.pos,v=ol(p,C,y.state),a&&T.push(new al(C,v,cn(d.mode,y.state)));return a?T:new al(C,v,y.state)}function So(e,r){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";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return e}function zu(e,r,s,a,d,p,v){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,T=new Bt(r,e.options.tabSize,a),I,W=e.options.addModeClass&&[null];for(r==""&&So(r0(s,a.state),p);!T.eol();){if(T.pos>e.options.maxHighlightLength?(m=!1,v&&es(e,r,a,T.pos),T.pos=r.length,I=null):I=So(ol(s,T,a.state,W),p),W){var F=W[0].name;F&&(I="m-"+(I?F+" "+I:F))}if(!m||C!=I){for(;y<T.start;)y=Math.min(T.start,y+5e3),d(y,C);C=I}T.start=T.pos}for(;y<T.pos;){var j=Math.min(T.pos,y+5e3);d(j,C),y=j}}function n0(e,r,s){for(var a,d,p=e.doc,v=s?-1:r-(e.doc.mode.innerMode?1e3:100),m=r;m>v;--m){if(m<=p.first)return p.first;var y=ke(p,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof yi?C.lookAhead:0)<=p.modeFrontier))return m;var T=xt(y.text,null,e.options.tabSize);(d==null||a>T)&&(d=m-1,a=T)}return d}function I1(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var s=e.first,a=r-1;a>s;a--){var d=ke(e,a).stateAfter;if(d&&(!(d instanceof yi)||a+d.lookAhead<r)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var Lu=!1,Jn=!1;function i0(){Lu=!0}function o0(){Jn=!0}function ll(e,r,s){this.marker=e,this.from=r,this.to=s}function ts(e,r){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==r)return a}}function A1(e,r){for(var s,a=0;a<e.length;++a)e[a]!=r&&(s||(s=[])).push(e[a]);return s}function a0(e,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],a&&a.add(e.markedSpans)),r.marker.attachLine(e)}function $1(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);if(m||p.from==r&&v.type=="bookmark"&&(!s||!p.marker.insertLeft)){var y=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);(a||(a=[])).push(new ll(v,p.from,y?null:p.to))}}return a}function P1(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);if(m||p.from==r&&v.type=="bookmark"&&(!s||p.marker.insertLeft)){var y=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);(a||(a=[])).push(new ll(v,y?null:p.from-r,p.to==null?null:p.to-r))}}return a}function Su(e,r){if(r.full)return null;var s=Vi(e,r.from.line)&&ke(e,r.from.line).markedSpans,a=Vi(e,r.to.line)&&ke(e,r.to.line).markedSpans;if(!s&&!a)return null;var d=r.from.ch,p=r.to.ch,v=w(r.from,r.to)==0,m=$1(s,d,v),y=P1(a,p,v),C=r.text.length==1,T=Qe(r.text).length+(C?d:0);if(m)for(var I=0;I<m.length;++I){var W=m[I];if(W.to==null){var F=ts(y,W.marker);F?C&&(W.to=F.to==null?null:F.to+T):W.to=d}}if(y)for(var j=0;j<y.length;++j){var ne=y[j];if(ne.to!=null&&(ne.to+=T),ne.from==null){var he=ts(m,ne.marker);he||(ne.from=T,C&&(m||(m=[])).push(ne))}else ne.from+=T,C&&(m||(m=[])).push(ne)}m&&(m=s0(m)),y&&y!=m&&(y=s0(y));var me=[m];if(!C){var xe=r.text.length-2,ye;if(xe>0&&m)for(var Se=0;Se<m.length;++Se)m[Se].to==null&&(ye||(ye=[])).push(new ll(m[Se].marker,null,null));for(var Fe=0;Fe<xe;++Fe)me.push(ye);me.push(y)}return me}function s0(e){for(var r=0;r<e.length;++r){var s=e[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function _u(e,r,s){var a=null;if(e.iter(r.line,s.line+1,function(F){if(F.markedSpans)for(var j=0;j<F.markedSpans.length;++j){var ne=F.markedSpans[j].marker;ne.readOnly&&(!a||ze(a,ne)==-1)&&(a||(a=[])).push(ne)}}),!a)return null;for(var d=[{from:r,to:s}],p=0;p<a.length;++p)for(var v=a[p],m=v.find(0),y=0;y<d.length;++y){var C=d[y];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var T=[y,1],I=w(C.from,m.from),W=w(C.to,m.to);(I<0||!v.inclusiveLeft&&!I)&&T.push({from:C.from,to:m.from}),(W>0||!v.inclusiveRight&&!W)&&T.push({from:m.to,to:C.to}),d.splice.apply(d,T),y+=T.length-3}}return d}function l0(e){var r=e.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(e);e.markedSpans=null}}function u0(e,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(e);e.markedSpans=r}}function ul(e){return e.inclusiveLeft?-1:0}function cl(e){return e.inclusiveRight?1:0}function Mu(e,r){var s=e.lines.length-r.lines.length;if(s!=0)return s;var a=e.find(),d=r.find(),p=w(a.from,d.from)||ul(e)-ul(r);if(p)return-p;var v=w(a.to,d.to)||cl(e)-cl(r);return v||r.id-e.id}function Wt(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=void 0,p=0;p<s.length;++p)d=s[p],d.marker.collapsed&&(r?d.from:d.to)==null&&(!a||Mu(a,d.marker)<0)&&(a=d.marker);return a}function Ft(e){return Wt(e,!0)}function dl(e){return Wt(e,!1)}function D1(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=0;d<s.length;++d){var p=s[d];p.marker.collapsed&&(p.from==null||p.from<r)&&(p.to==null||p.to>r)&&(!a||Mu(a,p.marker)<0)&&(a=p.marker)}return a}function c0(e,r,s,a,d){var p=ke(e,r),v=Jn&&p.markedSpans;if(v)for(var m=0;m<v.length;++m){var y=v[m];if(y.marker.collapsed){var C=y.marker.find(0),T=w(C.from,s)||ul(y.marker)-ul(d),I=w(C.to,a)||cl(y.marker)-cl(d);if(!(T>=0&&I<=0||T<=0&&I>=0)&&(T<=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?w(C.to,s)>=0:w(C.to,s)>0)||T>=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?w(C.from,a)<=0:w(C.from,a)<0)))return!0}}}function Qn(e){for(var r;r=Ft(e);)e=r.find(-1,!0).line;return e}function N1(e){for(var r;r=dl(e);)e=r.find(1,!0).line;return e}function R1(e){for(var r,s;r=dl(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function fl(e,r){var s=ke(e,r),a=Qn(s);return s==a?r:zt(a)}function d0(e,r){if(r>e.lastLine())return r;var s=ke(e,r),a;if(!Zt(e,s))return r;for(;a=dl(s);)s=a.find(1,!0).line;return zt(s)+1}function Zt(e,r){var s=Jn&&r.markedSpans;if(s){for(var a=void 0,d=0;d<s.length;++d)if(a=s[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&rs(e,r,a))return!0}}}function rs(e,r,s){if(s.to==null){var a=s.marker.find(1,!0);return rs(e,a.line,ts(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var d=void 0,p=0;p<r.markedSpans.length;++p)if(d=r.markedSpans[p],d.marker.collapsed&&!d.marker.widgetNode&&d.from==s.to&&(d.to==null||d.to!=s.from)&&(d.marker.inclusiveLeft||s.marker.inclusiveRight)&&rs(e,r,d))return!0}function jr(e){e=Qn(e);for(var r=0,s=e.parent,a=0;a<s.lines.length;++a){var d=s.lines[a];if(d==e)break;r+=d.height}for(var p=s.parent;p;s=p,p=s.parent)for(var v=0;v<p.children.length;++v){var m=p.children[v];if(m==s)break;r+=m.height}return r}function ns(e){if(e.height==0)return 0;for(var r=e.text.length,s,a=e;s=Ft(a);){var d=s.find(0,!0);a=d.from.line,r+=d.from.ch-d.to.ch}for(a=e;s=dl(a);){var p=s.find(0,!0);r-=a.text.length-p.from.ch,a=p.to.line,r+=a.text.length-p.to.ch}return r}function is(e){var r=e.display,s=e.doc;r.maxLine=ke(s,s.first),r.maxLineLength=ns(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var d=ns(a);d>r.maxLineLength&&(r.maxLineLength=d,r.maxLine=a)})}var Mr=function(e,r,s){this.text=e,u0(this,r),this.height=s?s(this):1};Mr.prototype.lineNo=function(){return zt(this)},Dn(Mr);function f0(e,r,s,a){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),l0(e),u0(e,s);var d=a?a(e):1;d!=e.height&&tn(e,d)}function h0(e){e.parent=null,l0(e)}var p0={},g0={};function Tu(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?g0:p0;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function Ou(e,r){var s=E("span",null,null,k?"padding-right: .1px":null),a={pre:E("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var d=0;d<=(r.rest?r.rest.length:0);d++){var p=d?r.rest[d-1]:r.line,v=void 0;a.pos=0,a.addToken=F1,Xn(e.display.measure)&&(v=Dr(p,e.doc.direction))&&(a.addToken=H1(a.addToken,v)),a.map=[];var m=r!=e.display.externalMeasured&&zt(p);Zi(p,a,xu(e,p,m)),p.styleClasses&&(p.styleClasses.bgClass&&(a.bgClass=pt(p.styleClasses.bgClass,a.bgClass||"")),p.styleClasses.textClass&&(a.textClass=pt(p.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(tl(e.display.measure))),d==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(k){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 qe(e,"renderLine",e,r.line,a.pre),a.pre.className&&(a.textClass=pt(a.pre.className,a.textClass||"")),a}function fn(e){var r=O("span","•","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function F1(e,r,s,a,d,p,v){if(r){var m=e.splitSpaces?wn(r,e.trailingSpace):r,y=e.cm.state.specialChars,C=!1,T;if(!y.test(r))e.col+=r.length,T=document.createTextNode(m),e.map.push(e.pos,e.pos+r.length,T),z&&S<9&&(C=!0),e.pos+=r.length;else{T=document.createDocumentFragment();for(var I=0;;){y.lastIndex=I;var W=y.exec(r),F=W?W.index-I:r.length-I;if(F){var j=document.createTextNode(m.slice(I,I+F));z&&S<9?T.appendChild(O("span",[j])):T.appendChild(j),e.map.push(e.pos,e.pos+F,j),e.col+=F,e.pos+=F}if(!W)break;I+=F+1;var ne=void 0;if(W[0]==" "){var he=e.cm.options.tabSize,me=he-e.col%he;ne=T.appendChild(O("span",tr(me),"cm-tab")),ne.setAttribute("role","presentation"),ne.setAttribute("cm-text"," "),e.col+=me}else W[0]=="\r"||W[0]==`
|
|
2850
|
-
`?(ne=T.appendChild(O("span",W[0]=="\r"?"␍":"","cm-invalidchar")),ne.setAttribute("cm-text",W[0]),e.col+=1):(ne=e.cm.options.specialCharPlaceholder(W[0]),ne.setAttribute("cm-text",W[0]),z&&S<9?T.appendChild(O("span",[ne])):T.appendChild(ne),e.col+=1);e.map.push(e.pos,e.pos+1,ne),e.pos++}}if(e.trailingSpace=m.charCodeAt(r.length-1)==32,s||a||d||C||p||v){var xe=s||"";a&&(xe+=a),d&&(xe+=d);var ye=O("span",[T],xe,p);if(v)for(var Se in v)v.hasOwnProperty(Se)&&Se!="style"&&Se!="class"&&ye.setAttribute(Se,v[Se]);return e.content.appendChild(ye)}e.content.appendChild(T)}}function wn(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,a="",d=0;d<e.length;d++){var p=e.charAt(d);p==" "&&s&&(d==e.length-1||e.charCodeAt(d+1)==32)&&(p=" "),a+=p,s=p==" "}return a}function H1(e,r){return function(s,a,d,p,v,m,y){d=d?d+" cm-force-border":"cm-force-border";for(var C=s.pos,T=C+a.length;;){for(var I=void 0,W=0;W<r.length&&(I=r[W],!(I.to>C&&I.from<=C));W++);if(I.to>=T)return e(s,a,d,p,v,m,y);e(s,a.slice(0,I.to-C),d,p,null,m,y),p=null,a=a.slice(I.to-C),C=I.to}}}function Eu(e,r,s,a){var d=!a&&s.widgetNode;d&&e.map.push(e.pos,e.pos+r,d),!a&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",s.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=r,e.trailingSpace=!1}function Zi(e,r,s){var a=e.markedSpans,d=e.text,p=0;if(!a){for(var v=1;v<s.length;v+=2)r.addToken(r,d.slice(p,p=s[v]),Tu(s[v+1],r.cm.options));return}for(var m=d.length,y=0,C=1,T="",I,W,F=0,j,ne,he,me,xe;;){if(F==y){j=ne=he=W="",xe=null,me=null,F=1/0;for(var ye=[],Se=void 0,Fe=0;Fe<a.length;++Fe){var Pe=a[Fe],ut=Pe.marker;if(ut.type=="bookmark"&&Pe.from==y&&ut.widgetNode)ye.push(ut);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||ut.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&F>Pe.to&&(F=Pe.to,ne=""),ut.className&&(j+=" "+ut.className),ut.css&&(W=(W?W+";":"")+ut.css),ut.startStyle&&Pe.from==y&&(he+=" "+ut.startStyle),ut.endStyle&&Pe.to==F&&(Se||(Se=[])).push(ut.endStyle,Pe.to),ut.title&&((xe||(xe={})).title=ut.title),ut.attributes)for(var It in ut.attributes)(xe||(xe={}))[It]=ut.attributes[It];ut.collapsed&&(!me||Mu(me.marker,ut)<0)&&(me=Pe)}else Pe.from>y&&F>Pe.from&&(F=Pe.from)}if(Se)for(var rr=0;rr<Se.length;rr+=2)Se[rr+1]==F&&(ne+=" "+Se[rr]);if(!me||me.from==y)for(var Nt=0;Nt<ye.length;++Nt)Eu(r,0,ye[Nt]);if(me&&(me.from||0)==y){if(Eu(r,(me.to==null?m+1:me.to)-y,me.marker,me.from==null),me.to==null)return;me.to==y&&(me=!1)}}if(y>=m)break;for(var Hr=Math.min(m,F);;){if(T){var Br=y+T.length;if(!me){var Xt=Br>Hr?T.slice(0,Hr-y):T;r.addToken(r,Xt,I?I+j:j,he,y+Xt.length==F?ne:"",W,xe)}if(Br>=Hr){T=T.slice(Hr-y),y=Hr;break}y=Br,he=""}T=d.slice(p,p=s[C++]),I=Tu(s[C++],r.cm.options)}}}function os(e,r,s){this.line=r,this.rest=R1(r),this.size=this.rest?zt(Qe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Zt(e,r)}function la(e,r,s){for(var a=[],d,p=r;p<s;p=d){var v=new os(e.doc,ke(e.doc,p),p);d=p+v.size,a.push(v)}return a}var At=null;function Gi(e){At?At.ops.push(e):e.ownsGroup=At={ops:[e],delayedCallbacks:[]}}function ku(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<e.ops.length;a++){var d=e.ops[a];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(s<r.length)}function B1(e,r){var s=e.ownsGroup;if(s)try{ku(s)}finally{At=null,r(s)}}var _o=null;function lr(e,r){var s=Bi(e,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),d;At?d=At.delayedCallbacks:_o?d=_o:(d=_o=[],setTimeout(W1,0));for(var p=function(m){d.push(function(){return s[m].apply(null,a)})},v=0;v<s.length;++v)p(v)}}function W1(){var e=_o;_o=null;for(var r=0;r<e.length;++r)e[r]()}function v0(e,r,s,a){for(var d=0;d<r.changes.length;d++){var p=r.changes[d];p=="text"?U1(e,r):p=="gutter"?Iu(e,r,s,a):p=="class"?pl(e,r):p=="widget"&&Au(e,r,a)}r.changes=null}function ua(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),z&&S<8&&(e.node.style.zIndex=2)),e.node}function hl(e,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=ua(r);r.background=a.insertBefore(O("div",null,s),a.firstChild),e.display.input.setUneditable(r.background)}}function Mo(e,r){var s=e.display.externalMeasured;return s&&s.line==r.line?(e.display.externalMeasured=null,r.measure=s.measure,s.built):Ou(e,r)}function U1(e,r){var s=r.text.className,a=Mo(e,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,pl(e,r)):s&&(r.text.className=s)}function pl(e,r){hl(e,r),r.line.wrapClass?ua(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function Iu(e,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var d=ua(r);r.gutterBackground=O("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),d.insertBefore(r.gutterBackground,r.text)}var p=r.line.gutterMarkers;if(e.options.lineNumbers||p){var v=ua(r),m=r.gutter=O("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),v.insertBefore(m,r.text),r.line.gutterClass&&(m.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(r.lineNumber=m.appendChild(O("div",aa(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),p)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,T=p.hasOwnProperty(C)&&p[C];T&&m.appendChild(O("div",[T],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function Au(e,r,s){r.alignable&&(r.alignable=null);for(var a=Ce("CodeMirror-linewidget"),d=r.node.firstChild,p=void 0;d;d=p)p=d.nextSibling,a.test(d.className)&&r.node.removeChild(d);Pu(e,r,s)}function $u(e,r,s,a){var d=Mo(e,r);return r.text=r.node=d.pre,d.bgClass&&(r.bgClass=d.bgClass),d.textClass&&(r.textClass=d.textClass),pl(e,r),Iu(e,r,s,a),Pu(e,r,a),r.node}function Pu(e,r,s){if(b0(e,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)b0(e,r.rest[a],r,s,!1)}function b0(e,r,s,a,d){if(r.widgets)for(var p=ua(s),v=0,m=r.widgets;v<m.length;++v){var y=m[v],C=O("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Du(y,C,s,a),e.display.input.setUneditable(C),d&&y.above?p.insertBefore(C,s.gutter||s.text):p.appendChild(C),lr(y,"redraw")}}function Du(e,r,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(r);var d=a.wrapperWidth;r.style.left=a.fixedPos+"px",e.coverGutter||(d-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=d+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function To(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!ue(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),$(r.display.measure,O("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function Ci(e,r){for(var s=Wi(r);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 as(e){return e.lineSpace.offsetTop}function Kr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function gl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=$(e.measure,O("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function nn(e){return Ne-e.display.nativeBarWidth}function qi(e){return e.display.scroller.clientWidth-nn(e)-e.display.barWidth}function vl(e){return e.display.scroller.clientHeight-nn(e)-e.display.barHeight}function V1(e,r,s){var a=e.options.lineWrapping,d=a&&qi(e);if(!r.measure.heights||a&&r.measure.width!=d){var p=r.measure.heights=[];if(a){r.measure.width=d;for(var v=r.text.firstChild.getClientRects(),m=0;m<v.length-1;m++){var y=v[m],C=v[m+1];Math.abs(y.bottom-C.bottom)>2&&p.push((y.bottom+C.top)/2-s.top)}}p.push(s.bottom-s.top)}}function m0(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==r)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var d=0;d<e.rest.length;d++)if(zt(e.rest[d])>s)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Z1(e,r){r=Qn(r);var s=zt(r),a=e.display.externalMeasured=new os(e.doc,r,s);a.lineN=s;var d=a.built=Ou(e,a);return a.text=d.pre,$(e.display.lineMeasure,d.pre),a}function y0(e,r,s,a){return ei(e,Bn(e,r),s,a)}function Nu(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[ri(e,r)];var s=e.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Bn(e,r){var s=zt(r),a=Nu(e,s);a&&!a.text?a=null:a&&a.changes&&(v0(e,a,s,on(e)),e.curOp.forceUpdate=!0),a||(a=Z1(e,r));var d=m0(a,r,s);return{line:r,view:a,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function ei(e,r,s,a,d){r.before&&(s=-1);var p=s+(a||""),v;return r.cache.hasOwnProperty(p)?v=r.cache[p]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(V1(e,r.view,r.rect),r.hasHeights=!0),v=ji(e,r,s,a),v.bogus||(r.cache[p]=v)),{left:v.left,right:v.right,top:d?v.rtop:v.top,bottom:d?v.rbottom:v.bottom}}var C0={left:0,right:0,top:0,bottom:0};function bl(e,r,s){for(var a,d,p,v,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],r<m?(d=0,p=1,v="left"):r<y?(d=r-m,p=d+1):(C==e.length-3||r==y&&e[C+3]>r)&&(p=y-m,d=p-1,r>=y&&(v="right")),d!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(v=s),s=="left"&&d==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],v="left";if(s=="right"&&d==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],v="right";break}return{node:a,start:d,end:p,collapse:v,coverStart:m,coverEnd:y}}function w0(e,r){var s=C0;if(r=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var d=e.length-1;d>=0&&(s=e[d]).left==s.right;d--);return s}function ji(e,r,s,a){var d=bl(r.map,s,a),p=d.node,v=d.start,m=d.end,y=d.collapse,C;if(p.nodeType==3){for(var T=0;T<4;T++){for(;v&&tt(r.line.text.charAt(d.coverStart+v));)--v;for(;d.coverStart+m<d.coverEnd&&tt(r.line.text.charAt(d.coverStart+m));)++m;if(z&&S<9&&v==0&&m==d.coverEnd-d.coverStart?C=p.parentNode.getBoundingClientRect():C=w0(Y(p,v,m).getClientRects(),a),C.left||C.right||v==0)break;m=v,v=v-1,y="right"}z&&S<11&&(C=ml(e.display.measure,C))}else{v>0&&(y=a="right");var I;e.options.lineWrapping&&(I=p.getClientRects()).length>1?C=I[a=="right"?I.length-1:0]:C=p.getBoundingClientRect()}if(z&&S<9&&!v&&(!C||!C.left&&!C.right)){var W=p.parentNode.getClientRects()[0];W?C={left:W.left,right:W.left+ca(e.display),top:W.top,bottom:W.bottom}:C=C0}for(var F=C.top-r.rect.top,j=C.bottom-r.rect.top,ne=(F+j)/2,he=r.view.measure.heights,me=0;me<he.length-1&&!(ne<he[me]);me++);var xe=me?he[me-1]:0,ye=he[me],Se={left:(y=="right"?C.right:C.left)-r.rect.left,right:(y=="left"?C.left:C.right)-r.rect.left,top:xe,bottom:ye};return!C.left&&!C.right&&(Se.bogus=!0),e.options.singleCursorHeightPerLine||(Se.rtop=F,Se.rbottom=j),Se}function ml(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ui(e))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function x0(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function z0(e){e.display.externalMeasure=null,Q(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)x0(e.display.view[r])}function ss(e){z0(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Oo(){return B&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function xn(){return B&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function yl(e){var r=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(r+=To(e.widgets[s]));return r}function Cl(e,r,s,a,d){if(!d){var p=yl(r);s.top+=p,s.bottom+=p}if(a=="line")return s;a||(a="local");var v=jr(r);if(a=="local"?v+=as(e.display):v-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();v+=m.top+(a=="window"?0:xn());var y=m.left+(a=="window"?0:Oo());s.left+=y,s.right+=y}return s.top+=v,s.bottom+=v,s}function L0(e,r,s){if(s=="div")return r;var a=r.left,d=r.top;if(s=="page")a-=Oo(),d-=xn();else if(s=="local"||!s){var p=e.display.sizer.getBoundingClientRect();a+=p.left,d+=p.top}var v=e.display.lineSpace.getBoundingClientRect();return{left:a-v.left,top:d-v.top}}function wl(e,r,s,a,d){return a||(a=ke(e.doc,r.line)),Cl(e,a,y0(e,a,r.ch,d),s)}function Wn(e,r,s,a,d,p){a=a||ke(e.doc,r.line),d||(d=Bn(e,a));function v(j,ne){var he=ei(e,d,j,ne?"right":"left",p);return ne?he.left=he.right:he.right=he.left,Cl(e,a,he,s)}var m=Dr(a,e.doc.direction),y=r.ch,C=r.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return v(C=="before"?y-1:y,C=="before");function T(j,ne,he){var me=m[ne],xe=me.level==1;return v(he?j-1:j,xe!=he)}var I=Ut(m,y,C),W=Gr,F=T(y,I,C=="before");return W!=null&&(F.other=T(y,W,C!="before")),F}function S0(e,r){var s=0;r=we(e.doc,r),e.options.lineWrapping||(s=ca(e.display)*r.ch);var a=ke(e.doc,r.line),d=jr(a)+as(e.display);return{left:s,right:s,top:d,bottom:d+a.height}}function Ki(e,r,s,a,d){var p=ae(e,r,s);return p.xRel=d,a&&(p.outside=a),p}function U(e,r,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Ki(a.first,0,null,-1,-1);var d=Fn(a,s),p=a.first+a.size-1;if(d>p)return Ki(a.first+a.size-1,ke(a,p).text.length,null,1,1);r<0&&(r=0);for(var v=ke(a,d);;){var m=nt(e,v,d,r,s),y=D1(v,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==d)return C;v=ke(a,d=C.line)}}function re(e,r,s,a){a-=yl(r);var d=r.text.length,p=Lr(function(v){return ei(e,s,v-1).bottom<=a},d,0);return d=Lr(function(v){return ei(e,s,v).top>a},p,d),{begin:p,end:d}}function G(e,r,s,a){s||(s=Bn(e,r));var d=Cl(e,r,ei(e,s,a),"line").top;return re(e,r,s,d)}function Ee(e,r,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>r}function nt(e,r,s,a,d){d-=jr(r);var p=Bn(e,r),v=yl(r),m=0,y=r.text.length,C=!0,T=Dr(r,e.doc.direction);if(T){var I=(e.options.lineWrapping?ur:Tt)(e,r,s,p,T,a,d);C=I.level!=1,m=C?I.from:I.to-1,y=C?I.to:I.from-1}var W=null,F=null,j=Lr(function(Fe){var Pe=ei(e,p,Fe);return Pe.top+=v,Pe.bottom+=v,Ee(Pe,a,d,!1)?(Pe.top<=d&&Pe.left<=a&&(W=Fe,F=Pe),!0):!1},m,y),ne,he,me=!1;if(F){var xe=a-F.left<F.right-a,ye=xe==C;j=W+(ye?0:1),he=ye?"after":"before",ne=xe?F.left:F.right}else{!C&&(j==y||j==m)&&j++,he=j==0?"after":j==r.text.length?"before":ei(e,p,j-(C?1:0)).bottom+v<=d==C?"after":"before";var Se=Wn(e,ae(s,j,he),"line",r,p);ne=Se.left,me=d<Se.top?-1:d>=Se.bottom?1:0}return j=sr(r.text,j,1),Ki(s,j,he,me,a-ne)}function Tt(e,r,s,a,d,p,v){var m=Lr(function(I){var W=d[I],F=W.level!=1;return Ee(Wn(e,ae(s,F?W.to:W.from,F?"before":"after"),"line",r,a),p,v,!0)},0,d.length-1),y=d[m];if(m>0){var C=y.level!=1,T=Wn(e,ae(s,C?y.from:y.to,C?"after":"before"),"line",r,a);Ee(T,p,v,!0)&&T.top>v&&(y=d[m-1])}return y}function ur(e,r,s,a,d,p,v){var m=re(e,r,a,v),y=m.begin,C=m.end;/\s/.test(r.text.charAt(C-1))&&C--;for(var T=null,I=null,W=0;W<d.length;W++){var F=d[W];if(!(F.from>=C||F.to<=y)){var j=F.level!=1,ne=ei(e,a,j?Math.min(C,F.to)-1:Math.max(y,F.from)).right,he=ne<p?p-ne+1e9:ne-p;(!T||I>he)&&(T=F,I=he)}}return T||(T=d[d.length-1]),T.from<y&&(T={from:y,to:T.to,level:T.level}),T.to>C&&(T={from:T.from,to:C,level:T.level}),T}var Ct;function Yi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ct==null){Ct=O("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ct.appendChild(document.createTextNode("x")),Ct.appendChild(O("br"));Ct.appendChild(document.createTextNode("x"))}$(e.measure,Ct);var s=Ct.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),Q(e.measure),s||1}function ca(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=O("span","xxxxxxxxxx"),s=O("pre",[r],"CodeMirror-line-like");$(e.measure,s);var a=r.getBoundingClientRect(),d=(a.right-a.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function on(e){for(var r=e.display,s={},a={},d=r.gutters.clientLeft,p=r.gutters.firstChild,v=0;p;p=p.nextSibling,++v){var m=e.display.gutterSpecs[v].className;s[m]=p.offsetLeft+p.clientLeft+d,a[m]=p.clientWidth}return{fixedPos:da(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function da(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _0(e){var r=Yi(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/ca(e.display)-3);return function(d){if(Zt(e.doc,d))return 0;var p=0;if(d.widgets)for(var v=0;v<d.widgets.length;v++)d.widgets[v].height&&(p+=d.widgets[v].height);return s?p+(Math.ceil(d.text.length/a)||1)*r:p+r}}function Xi(e){var r=e.doc,s=_0(e);r.iter(function(a){var d=s(a);d!=a.height&&tn(a,d)})}function ti(e,r,s,a){var d=e.display;if(!s&&Wi(r).getAttribute("cm-not-content")=="true")return null;var p,v,m=d.lineSpace.getBoundingClientRect();try{p=r.clientX-m.left,v=r.clientY-m.top}catch{return null}var y=U(e,p,v),C;if(a&&y.xRel>0&&(C=ke(e.doc,y.line).text).length==y.ch){var T=xt(C,C.length,e.options.tabSize)-C.length;y=ae(y.line,Math.max(0,Math.round((p-gl(e.display).left)/ca(e.display))-T))}return y}function ri(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function ot(e,r,s,a){r==null&&(r=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var d=e.display;if(a&&s<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>r)&&(d.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=d.viewTo)Jn&&fl(e.doc,r)<d.viewTo&&wi(e);else if(s<=d.viewFrom)Jn&&d0(e.doc,s+a)>d.viewFrom?wi(e):(d.viewFrom+=a,d.viewTo+=a);else if(r<=d.viewFrom&&s>=d.viewTo)wi(e);else if(r<=d.viewFrom){var p=Eo(e,s,s+a,1);p?(d.view=d.view.slice(p.index),d.viewFrom=p.lineN,d.viewTo+=a):wi(e)}else if(s>=d.viewTo){var v=Eo(e,r,r,-1);v?(d.view=d.view.slice(0,v.index),d.viewTo=v.lineN):wi(e)}else{var m=Eo(e,r,r,-1),y=Eo(e,s,s+a,1);m&&y?(d.view=d.view.slice(0,m.index).concat(la(e,m.lineN,y.lineN)).concat(d.view.slice(y.index)),d.viewTo+=a):wi(e)}var C=d.externalMeasured;C&&(s<C.lineN?C.lineN+=a:r<C.lineN+C.size&&(d.externalMeasured=null))}function Ji(e,r,s){e.curOp.viewChanged=!0;var a=e.display,d=e.display.externalMeasured;if(d&&r>=d.lineN&&r<d.lineN+d.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var p=a.view[ri(e,r)];if(p.node!=null){var v=p.changes||(p.changes=[]);ze(v,s)==-1&&v.push(s)}}}function wi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Eo(e,r,s,a){var d=ri(e,r),p,v=e.display.view;if(!Jn||s==e.doc.first+e.doc.size)return{index:d,lineN:s};for(var m=e.display.viewFrom,y=0;y<d;y++)m+=v[y].size;if(m!=r){if(a>0){if(d==v.length-1)return null;p=m+v[d].size-r,d++}else p=m-r;r+=p,s+=p}for(;fl(e.doc,s)!=s;){if(d==(a<0?0:v.length-1))return null;s+=a*v[d-(a<0?1:0)].size,d+=a}return{index:d,lineN:s}}function G1(e,r,s){var a=e.display,d=a.view;d.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=la(e,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=la(e,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(ri(e,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(la(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,ri(e,s)))),a.viewTo=s}function M0(e){for(var r=e.display.view,s=0,a=0;a<r.length;a++){var d=r[a];!d.hidden&&(!d.node||d.changes)&&++s}return s}function ls(e){e.display.input.showSelection(e.display.input.prepareSelection())}function us(e,r){r===void 0&&(r=!0);for(var s=e.doc,a={},d=a.cursors=document.createDocumentFragment(),p=a.selection=document.createDocumentFragment(),v=0;v<s.sel.ranges.length;v++)if(!(!r&&v==s.sel.primIndex)){var m=s.sel.ranges[v];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&xi(e,m.head,d),y||T0(e,m,p)}}return a}function xi(e,r,s){var a=Wn(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),d=s.appendChild(O("div"," ","CodeMirror-cursor"));if(d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var p=wl(e,r,"div",null,null);d.style.width=Math.max(0,p.right-p.left)+"px"}if(a.other){var v=s.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));v.style.display="",v.style.left=a.other.left+"px",v.style.top=a.other.top+"px",v.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function ko(e,r){return e.top-r.top||e.left-r.left}function T0(e,r,s){var a=e.display,d=e.doc,p=document.createDocumentFragment(),v=gl(e.display),m=v.left,y=Math.max(a.sizerWidth,qi(e)-a.sizer.offsetLeft)-v.right,C=d.direction=="ltr";function T(ye,Se,Fe,Pe){Se<0&&(Se=0),Se=Math.round(Se),Pe=Math.round(Pe),p.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+ye+`px;
|
|
2850
|
+
`,r);d==-1&&(d=e.length);var p=e.slice(r,e.charAt(d-1)=="\r"?d-1:d),v=p.indexOf("\r");v!=-1?(s.push(p.slice(0,v)),r+=v+1):(s.push(p),r=d+1)}return s}:function(e){return e.split(/\r\n?|\n/)},nl=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch{}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},il=function(){var e=O("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ya=null;function Vi(e){if(Ya!=null)return Ya;var r=$(e,O("span","x")),s=r.getBoundingClientRect(),a=Y(r,0,1).getBoundingClientRect();return Ya=Math.abs(s.left-a.left)>1}var Cn={},un={};function ol(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Cn[e]=r}function mi(e,r){un[e]=r}function Lo(e){if(typeof e=="string"&&un.hasOwnProperty(e))e=un[e];else if(e&&typeof e.name=="string"&&un.hasOwnProperty(e.name)){var r=un[e.name];typeof r=="string"&&(r={name:r}),e=en(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Lo("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Lo("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function oa(e,r){r=Lo(r);var s=Cn[r.name];if(!s)return oa(e,"text/plain");var a=s(e,r);if(Nn.hasOwnProperty(r.name)){var d=Nn[r.name];for(var p in d)d.hasOwnProperty(p)&&(a.hasOwnProperty(p)&&(a["_"+p]=a[p]),a[p]=d[p])}if(a.name=r.name,r.helperType&&(a.helperType=r.helperType),r.modeProps)for(var v in r.modeProps)a[v]=r.modeProps[v];return a}var Nn={};function Rn(e,r){var s=Nn.hasOwnProperty(e)?Nn[e]:Nn[e]={};Mt(r,s)}function cn(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var a in r){var d=r[a];d instanceof Array&&(d=d.concat([])),s[a]=d}return s}function Xa(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function Ja(e,r,s){return e.startState?e.startState(r,s):!0}var Bt=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(e){var r=this.string.charAt(this.pos),s;if(typeof e=="string"?s=r==e:s=r&&(e.test?e.test(r):e(r)),s)return++this.pos,r},Bt.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},Bt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},Bt.prototype.backUp=function(e){this.pos-=e},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=xt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return xt(this.string,null,this.tabSize)-(this.lineStart?xt(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(e,r,s){if(typeof e=="string"){var a=function(v){return s?v.toLowerCase():v},d=this.string.substr(this.pos,e.length);if(a(d)==a(e))return r!==!1&&(this.pos+=e.length),!0}else{var p=this.string.slice(this.pos).match(e);return p&&p.index>0?null:(p&&r!==!1&&(this.pos+=p[0].length),p)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},Bt.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},Bt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ee(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var a=0;;++a){var d=s.children[a],p=d.chunkSize();if(r<p){s=d;break}r-=p}return s.lines[r]}function dn(e,r,s){var a=[],d=r.line;return e.iter(r.line,s.line+1,function(p){var v=p.text;d==s.line&&(v=v.slice(0,s.ch)),d==r.line&&(v=v.slice(r.ch)),a.push(v),++d}),a}function Qa(e,r,s){var a=[];return e.iter(r,s,function(d){a.push(d.text)}),a}function tn(e,r){var s=r-e.height;if(s)for(var a=e;a;a=a.parent)a.height+=s}function zt(e){if(e.parent==null)return null;for(var r=e.parent,s=ze(r.lines,e),a=r.parent;a;r=a,a=a.parent)for(var d=0;a.children[d]!=r;++d)s+=a.children[d].chunkSize();return s+r.first}function Fn(e,r){var s=e.first;e:do{for(var a=0;a<e.children.length;++a){var d=e.children[a],p=d.height;if(r<p){e=d;continue e}r-=p,s+=d.chunkSize()}return s}while(!e.lines);for(var v=0;v<e.lines.length;++v){var m=e.lines[v],y=m.height;if(r<y)break;r-=y}return s+v}function Zi(e,r){return r>=e.first&&r<e.first+e.size}function aa(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function ae(e,r,s){if(s===void 0&&(s=null),!(this instanceof ae))return new ae(e,r,s);this.line=e,this.ch=r,this.sticky=s}function w(e,r){return e.line-r.line||e.ch-r.ch}function A(e,r){return e.sticky==r.sticky&&w(e,r)==0}function te(e){return ae(e.line,e.ch)}function ce(e,r){return w(e,r)<0?r:e}function Ke(e,r){return w(e,r)<0?e:r}function gt(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function we(e,r){if(r.line<e.first)return ae(e.first,0);var s=e.first+e.size-1;return r.line>s?ae(s,Ee(e,s).text.length):_r(r,Ee(e,r.line).text.length)}function _r(e,r){var s=e.ch;return s==null||s>r?ae(e.line,r):s<0?ae(e.line,0):e}function rn(e,r){for(var s=[],a=0;a<r.length;a++)s[a]=we(e,r[a]);return s}var yi=function(e,r){this.state=e,this.lookAhead=r},Hn=function(e,r,s,a){this.state=r,this.doc=e,this.line=s,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Hn.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Hn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Hn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Hn.fromSaved=function(e,r,s){return r instanceof yi?new Hn(e,cn(e.mode,r.state),s,r.lookAhead):new Hn(e,cn(e.mode,r),s)},Hn.prototype.save=function(e){var r=e!==!1?cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yi(r,this.maxLookAhead):r};function t0(e,r,s,a){var d=[e.state.modeGen],p={};zu(e,r.text,e.doc.mode,s,function(C,T){return d.push(C,T)},p,a);for(var v=s.state,m=function(C){s.baseTokens=d;var T=e.state.overlays[C],I=1,W=0;s.state=!0,zu(e,r.text,T.mode,s,function(F,j){for(var ne=I;W<F;){var he=d[I];he>F&&d.splice(I,1,F,d[I+1],he),I+=2,W=Math.min(F,he)}if(j)if(T.opaque)d.splice(ne,I-ne,F,"overlay "+j),I=ne+2;else for(;ne<I;ne+=2){var me=d[ne+1];d[ne+1]=(me?me+" ":"")+"overlay "+j}},p),s.state=v,s.baseTokens=null,s.baseTokenPos=1},y=0;y<e.state.overlays.length;++y)m(y);return{styles:d,classes:p.bgClass||p.textClass?p:null}}function xu(e,r,s){if(!r.styles||r.styles[0]!=e.state.modeGen){var a=sa(e,zt(r)),d=r.text.length>e.options.maxHighlightLength&&cn(e.doc.mode,a.state),p=t0(e,r,a);d&&(a.state=d),r.stateAfter=a.save(!d),r.styles=p.styles,p.classes?r.styleClasses=p.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function sa(e,r,s){var a=e.doc,d=e.display;if(!a.mode.startState)return new Hn(a,!0,r);var p=n0(e,r,s),v=p>a.first&&Ee(a,p-1).stateAfter,m=v?Hn.fromSaved(a,v,p):new Hn(a,Ja(a.mode),p);return a.iter(p,r,function(y){es(e,y.text,m);var C=m.line;y.stateAfter=C==r-1||C%5==0||C>=d.viewFrom&&C<d.viewTo?m.save():null,m.nextLine()}),s&&(a.modeFrontier=m.line),m}function es(e,r,s,a){var d=e.doc.mode,p=new Bt(r,e.options.tabSize,s);for(p.start=p.pos=a||0,r==""&&r0(d,s.state);!p.eol();)al(d,p,s.state),p.start=p.pos}function r0(e,r){if(e.blankLine)return e.blankLine(r);if(e.innerMode){var s=Xa(e,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function al(e,r,s,a){for(var d=0;d<10;d++){a&&(a[0]=Xa(e,s).mode);var p=e.token(r,s);if(r.pos>r.start)return p}throw new Error("Mode "+e.name+" failed to advance stream.")}var sl=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function ll(e,r,s,a){var d=e.doc,p=d.mode,v;r=we(d,r);var m=Ee(d,r.line),y=sa(e,r.line,s),C=new Bt(m.text,e.options.tabSize,y),T;for(a&&(T=[]);(a||C.pos<r.ch)&&!C.eol();)C.start=C.pos,v=al(p,C,y.state),a&&T.push(new sl(C,v,cn(d.mode,y.state)));return a?T:new sl(C,v,y.state)}function So(e,r){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";r[a]==null?r[a]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[a])||(r[a]+=" "+s[2])}return e}function zu(e,r,s,a,d,p,v){var m=s.flattenSpans;m==null&&(m=e.options.flattenSpans);var y=0,C=null,T=new Bt(r,e.options.tabSize,a),I,W=e.options.addModeClass&&[null];for(r==""&&So(r0(s,a.state),p);!T.eol();){if(T.pos>e.options.maxHighlightLength?(m=!1,v&&es(e,r,a,T.pos),T.pos=r.length,I=null):I=So(al(s,T,a.state,W),p),W){var F=W[0].name;F&&(I="m-"+(I?F+" "+I:F))}if(!m||C!=I){for(;y<T.start;)y=Math.min(T.start,y+5e3),d(y,C);C=I}T.start=T.pos}for(;y<T.pos;){var j=Math.min(T.pos,y+5e3);d(j,C),y=j}}function n0(e,r,s){for(var a,d,p=e.doc,v=s?-1:r-(e.doc.mode.innerMode?1e3:100),m=r;m>v;--m){if(m<=p.first)return p.first;var y=Ee(p,m-1),C=y.stateAfter;if(C&&(!s||m+(C instanceof yi?C.lookAhead:0)<=p.modeFrontier))return m;var T=xt(y.text,null,e.options.tabSize);(d==null||a>T)&&(d=m-1,a=T)}return d}function I1(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var s=e.first,a=r-1;a>s;a--){var d=Ee(e,a).stateAfter;if(d&&(!(d instanceof yi)||a+d.lookAhead<r)){s=a+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var Lu=!1,Jn=!1;function i0(){Lu=!0}function o0(){Jn=!0}function ul(e,r,s){this.marker=e,this.from=r,this.to=s}function ts(e,r){if(e)for(var s=0;s<e.length;++s){var a=e[s];if(a.marker==r)return a}}function A1(e,r){for(var s,a=0;a<e.length;++a)e[a]!=r&&(s||(s=[])).push(e[a]);return s}function a0(e,r,s){var a=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));a&&a.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],a&&a.add(e.markedSpans)),r.marker.attachLine(e)}function $1(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);if(m||p.from==r&&v.type=="bookmark"&&(!s||!p.marker.insertLeft)){var y=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);(a||(a=[])).push(new ul(v,p.from,y?null:p.to))}}return a}function P1(e,r,s){var a;if(e)for(var d=0;d<e.length;++d){var p=e[d],v=p.marker,m=p.to==null||(v.inclusiveRight?p.to>=r:p.to>r);if(m||p.from==r&&v.type=="bookmark"&&(!s||p.marker.insertLeft)){var y=p.from==null||(v.inclusiveLeft?p.from<=r:p.from<r);(a||(a=[])).push(new ul(v,y?null:p.from-r,p.to==null?null:p.to-r))}}return a}function Su(e,r){if(r.full)return null;var s=Zi(e,r.from.line)&&Ee(e,r.from.line).markedSpans,a=Zi(e,r.to.line)&&Ee(e,r.to.line).markedSpans;if(!s&&!a)return null;var d=r.from.ch,p=r.to.ch,v=w(r.from,r.to)==0,m=$1(s,d,v),y=P1(a,p,v),C=r.text.length==1,T=Qe(r.text).length+(C?d:0);if(m)for(var I=0;I<m.length;++I){var W=m[I];if(W.to==null){var F=ts(y,W.marker);F?C&&(W.to=F.to==null?null:F.to+T):W.to=d}}if(y)for(var j=0;j<y.length;++j){var ne=y[j];if(ne.to!=null&&(ne.to+=T),ne.from==null){var he=ts(m,ne.marker);he||(ne.from=T,C&&(m||(m=[])).push(ne))}else ne.from+=T,C&&(m||(m=[])).push(ne)}m&&(m=s0(m)),y&&y!=m&&(y=s0(y));var me=[m];if(!C){var xe=r.text.length-2,ye;if(xe>0&&m)for(var Se=0;Se<m.length;++Se)m[Se].to==null&&(ye||(ye=[])).push(new ul(m[Se].marker,null,null));for(var Fe=0;Fe<xe;++Fe)me.push(ye);me.push(y)}return me}function s0(e){for(var r=0;r<e.length;++r){var s=e[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function _u(e,r,s){var a=null;if(e.iter(r.line,s.line+1,function(F){if(F.markedSpans)for(var j=0;j<F.markedSpans.length;++j){var ne=F.markedSpans[j].marker;ne.readOnly&&(!a||ze(a,ne)==-1)&&(a||(a=[])).push(ne)}}),!a)return null;for(var d=[{from:r,to:s}],p=0;p<a.length;++p)for(var v=a[p],m=v.find(0),y=0;y<d.length;++y){var C=d[y];if(!(w(C.to,m.from)<0||w(C.from,m.to)>0)){var T=[y,1],I=w(C.from,m.from),W=w(C.to,m.to);(I<0||!v.inclusiveLeft&&!I)&&T.push({from:C.from,to:m.from}),(W>0||!v.inclusiveRight&&!W)&&T.push({from:m.to,to:C.to}),d.splice.apply(d,T),y+=T.length-3}}return d}function l0(e){var r=e.markedSpans;if(r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(e);e.markedSpans=null}}function u0(e,r){if(r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(e);e.markedSpans=r}}function cl(e){return e.inclusiveLeft?-1:0}function dl(e){return e.inclusiveRight?1:0}function Mu(e,r){var s=e.lines.length-r.lines.length;if(s!=0)return s;var a=e.find(),d=r.find(),p=w(a.from,d.from)||cl(e)-cl(r);if(p)return-p;var v=w(a.to,d.to)||dl(e)-dl(r);return v||r.id-e.id}function Wt(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=void 0,p=0;p<s.length;++p)d=s[p],d.marker.collapsed&&(r?d.from:d.to)==null&&(!a||Mu(a,d.marker)<0)&&(a=d.marker);return a}function Ft(e){return Wt(e,!0)}function fl(e){return Wt(e,!1)}function D1(e,r){var s=Jn&&e.markedSpans,a;if(s)for(var d=0;d<s.length;++d){var p=s[d];p.marker.collapsed&&(p.from==null||p.from<r)&&(p.to==null||p.to>r)&&(!a||Mu(a,p.marker)<0)&&(a=p.marker)}return a}function c0(e,r,s,a,d){var p=Ee(e,r),v=Jn&&p.markedSpans;if(v)for(var m=0;m<v.length;++m){var y=v[m];if(y.marker.collapsed){var C=y.marker.find(0),T=w(C.from,s)||cl(y.marker)-cl(d),I=w(C.to,a)||dl(y.marker)-dl(d);if(!(T>=0&&I<=0||T<=0&&I>=0)&&(T<=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?w(C.to,s)>=0:w(C.to,s)>0)||T>=0&&(y.marker.inclusiveRight&&d.inclusiveLeft?w(C.from,a)<=0:w(C.from,a)<0)))return!0}}}function Qn(e){for(var r;r=Ft(e);)e=r.find(-1,!0).line;return e}function N1(e){for(var r;r=fl(e);)e=r.find(1,!0).line;return e}function R1(e){for(var r,s;r=fl(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function hl(e,r){var s=Ee(e,r),a=Qn(s);return s==a?r:zt(a)}function d0(e,r){if(r>e.lastLine())return r;var s=Ee(e,r),a;if(!Zt(e,s))return r;for(;a=fl(s);)s=a.find(1,!0).line;return zt(s)+1}function Zt(e,r){var s=Jn&&r.markedSpans;if(s){for(var a=void 0,d=0;d<s.length;++d)if(a=s[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&rs(e,r,a))return!0}}}function rs(e,r,s){if(s.to==null){var a=s.marker.find(1,!0);return rs(e,a.line,ts(a.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var d=void 0,p=0;p<r.markedSpans.length;++p)if(d=r.markedSpans[p],d.marker.collapsed&&!d.marker.widgetNode&&d.from==s.to&&(d.to==null||d.to!=s.from)&&(d.marker.inclusiveLeft||s.marker.inclusiveRight)&&rs(e,r,d))return!0}function jr(e){e=Qn(e);for(var r=0,s=e.parent,a=0;a<s.lines.length;++a){var d=s.lines[a];if(d==e)break;r+=d.height}for(var p=s.parent;p;s=p,p=s.parent)for(var v=0;v<p.children.length;++v){var m=p.children[v];if(m==s)break;r+=m.height}return r}function ns(e){if(e.height==0)return 0;for(var r=e.text.length,s,a=e;s=Ft(a);){var d=s.find(0,!0);a=d.from.line,r+=d.from.ch-d.to.ch}for(a=e;s=fl(a);){var p=s.find(0,!0);r-=a.text.length-p.from.ch,a=p.to.line,r+=a.text.length-p.to.ch}return r}function is(e){var r=e.display,s=e.doc;r.maxLine=Ee(s,s.first),r.maxLineLength=ns(r.maxLine),r.maxLineChanged=!0,s.iter(function(a){var d=ns(a);d>r.maxLineLength&&(r.maxLineLength=d,r.maxLine=a)})}var Mr=function(e,r,s){this.text=e,u0(this,r),this.height=s?s(this):1};Mr.prototype.lineNo=function(){return zt(this)},Dn(Mr);function f0(e,r,s,a){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),l0(e),u0(e,s);var d=a?a(e):1;d!=e.height&&tn(e,d)}function h0(e){e.parent=null,l0(e)}var p0={},g0={};function Tu(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?g0:p0;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function Ou(e,r){var s=k("span",null,null,E?"padding-right: .1px":null),a={pre:k("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var d=0;d<=(r.rest?r.rest.length:0);d++){var p=d?r.rest[d-1]:r.line,v=void 0;a.pos=0,a.addToken=F1,Xn(e.display.measure)&&(v=Dr(p,e.doc.direction))&&(a.addToken=H1(a.addToken,v)),a.map=[];var m=r!=e.display.externalMeasured&&zt(p);Gi(p,a,xu(e,p,m)),p.styleClasses&&(p.styleClasses.bgClass&&(a.bgClass=pt(p.styleClasses.bgClass,a.bgClass||"")),p.styleClasses.textClass&&(a.textClass=pt(p.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(rl(e.display.measure))),d==0?(r.measure.map=a.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(a.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(E){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 qe(e,"renderLine",e,r.line,a.pre),a.pre.className&&(a.textClass=pt(a.pre.className,a.textClass||"")),a}function fn(e){var r=O("span","•","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function F1(e,r,s,a,d,p,v){if(r){var m=e.splitSpaces?wn(r,e.trailingSpace):r,y=e.cm.state.specialChars,C=!1,T;if(!y.test(r))e.col+=r.length,T=document.createTextNode(m),e.map.push(e.pos,e.pos+r.length,T),z&&S<9&&(C=!0),e.pos+=r.length;else{T=document.createDocumentFragment();for(var I=0;;){y.lastIndex=I;var W=y.exec(r),F=W?W.index-I:r.length-I;if(F){var j=document.createTextNode(m.slice(I,I+F));z&&S<9?T.appendChild(O("span",[j])):T.appendChild(j),e.map.push(e.pos,e.pos+F,j),e.col+=F,e.pos+=F}if(!W)break;I+=F+1;var ne=void 0;if(W[0]==" "){var he=e.cm.options.tabSize,me=he-e.col%he;ne=T.appendChild(O("span",tr(me),"cm-tab")),ne.setAttribute("role","presentation"),ne.setAttribute("cm-text"," "),e.col+=me}else W[0]=="\r"||W[0]==`
|
|
2851
|
+
`?(ne=T.appendChild(O("span",W[0]=="\r"?"␍":"","cm-invalidchar")),ne.setAttribute("cm-text",W[0]),e.col+=1):(ne=e.cm.options.specialCharPlaceholder(W[0]),ne.setAttribute("cm-text",W[0]),z&&S<9?T.appendChild(O("span",[ne])):T.appendChild(ne),e.col+=1);e.map.push(e.pos,e.pos+1,ne),e.pos++}}if(e.trailingSpace=m.charCodeAt(r.length-1)==32,s||a||d||C||p||v){var xe=s||"";a&&(xe+=a),d&&(xe+=d);var ye=O("span",[T],xe,p);if(v)for(var Se in v)v.hasOwnProperty(Se)&&Se!="style"&&Se!="class"&&ye.setAttribute(Se,v[Se]);return e.content.appendChild(ye)}e.content.appendChild(T)}}function wn(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,a="",d=0;d<e.length;d++){var p=e.charAt(d);p==" "&&s&&(d==e.length-1||e.charCodeAt(d+1)==32)&&(p=" "),a+=p,s=p==" "}return a}function H1(e,r){return function(s,a,d,p,v,m,y){d=d?d+" cm-force-border":"cm-force-border";for(var C=s.pos,T=C+a.length;;){for(var I=void 0,W=0;W<r.length&&(I=r[W],!(I.to>C&&I.from<=C));W++);if(I.to>=T)return e(s,a,d,p,v,m,y);e(s,a.slice(0,I.to-C),d,p,null,m,y),p=null,a=a.slice(I.to-C),C=I.to}}}function ku(e,r,s,a){var d=!a&&s.widgetNode;d&&e.map.push(e.pos,e.pos+r,d),!a&&e.cm.display.input.needsContentAttribute&&(d||(d=e.content.appendChild(document.createElement("span"))),d.setAttribute("cm-marker",s.id)),d&&(e.cm.display.input.setUneditable(d),e.content.appendChild(d)),e.pos+=r,e.trailingSpace=!1}function Gi(e,r,s){var a=e.markedSpans,d=e.text,p=0;if(!a){for(var v=1;v<s.length;v+=2)r.addToken(r,d.slice(p,p=s[v]),Tu(s[v+1],r.cm.options));return}for(var m=d.length,y=0,C=1,T="",I,W,F=0,j,ne,he,me,xe;;){if(F==y){j=ne=he=W="",xe=null,me=null,F=1/0;for(var ye=[],Se=void 0,Fe=0;Fe<a.length;++Fe){var Pe=a[Fe],ut=Pe.marker;if(ut.type=="bookmark"&&Pe.from==y&&ut.widgetNode)ye.push(ut);else if(Pe.from<=y&&(Pe.to==null||Pe.to>y||ut.collapsed&&Pe.to==y&&Pe.from==y)){if(Pe.to!=null&&Pe.to!=y&&F>Pe.to&&(F=Pe.to,ne=""),ut.className&&(j+=" "+ut.className),ut.css&&(W=(W?W+";":"")+ut.css),ut.startStyle&&Pe.from==y&&(he+=" "+ut.startStyle),ut.endStyle&&Pe.to==F&&(Se||(Se=[])).push(ut.endStyle,Pe.to),ut.title&&((xe||(xe={})).title=ut.title),ut.attributes)for(var It in ut.attributes)(xe||(xe={}))[It]=ut.attributes[It];ut.collapsed&&(!me||Mu(me.marker,ut)<0)&&(me=Pe)}else Pe.from>y&&F>Pe.from&&(F=Pe.from)}if(Se)for(var rr=0;rr<Se.length;rr+=2)Se[rr+1]==F&&(ne+=" "+Se[rr]);if(!me||me.from==y)for(var Nt=0;Nt<ye.length;++Nt)ku(r,0,ye[Nt]);if(me&&(me.from||0)==y){if(ku(r,(me.to==null?m+1:me.to)-y,me.marker,me.from==null),me.to==null)return;me.to==y&&(me=!1)}}if(y>=m)break;for(var Hr=Math.min(m,F);;){if(T){var Br=y+T.length;if(!me){var Xt=Br>Hr?T.slice(0,Hr-y):T;r.addToken(r,Xt,I?I+j:j,he,y+Xt.length==F?ne:"",W,xe)}if(Br>=Hr){T=T.slice(Hr-y),y=Hr;break}y=Br,he=""}T=d.slice(p,p=s[C++]),I=Tu(s[C++],r.cm.options)}}}function os(e,r,s){this.line=r,this.rest=R1(r),this.size=this.rest?zt(Qe(this.rest))-s+1:1,this.node=this.text=null,this.hidden=Zt(e,r)}function la(e,r,s){for(var a=[],d,p=r;p<s;p=d){var v=new os(e.doc,Ee(e.doc,p),p);d=p+v.size,a.push(v)}return a}var At=null;function qi(e){At?At.ops.push(e):e.ownsGroup=At={ops:[e],delayedCallbacks:[]}}function Eu(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var a=0;a<e.ops.length;a++){var d=e.ops[a];if(d.cursorActivityHandlers)for(;d.cursorActivityCalled<d.cursorActivityHandlers.length;)d.cursorActivityHandlers[d.cursorActivityCalled++].call(null,d.cm)}}while(s<r.length)}function B1(e,r){var s=e.ownsGroup;if(s)try{Eu(s)}finally{At=null,r(s)}}var _o=null;function lr(e,r){var s=Wi(e,r);if(s.length){var a=Array.prototype.slice.call(arguments,2),d;At?d=At.delayedCallbacks:_o?d=_o:(d=_o=[],setTimeout(W1,0));for(var p=function(m){d.push(function(){return s[m].apply(null,a)})},v=0;v<s.length;++v)p(v)}}function W1(){var e=_o;_o=null;for(var r=0;r<e.length;++r)e[r]()}function v0(e,r,s,a){for(var d=0;d<r.changes.length;d++){var p=r.changes[d];p=="text"?U1(e,r):p=="gutter"?Iu(e,r,s,a):p=="class"?gl(e,r):p=="widget"&&Au(e,r,a)}r.changes=null}function ua(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),z&&S<8&&(e.node.style.zIndex=2)),e.node}function pl(e,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var a=ua(r);r.background=a.insertBefore(O("div",null,s),a.firstChild),e.display.input.setUneditable(r.background)}}function Mo(e,r){var s=e.display.externalMeasured;return s&&s.line==r.line?(e.display.externalMeasured=null,r.measure=s.measure,s.built):Ou(e,r)}function U1(e,r){var s=r.text.className,a=Mo(e,r);r.text==r.node&&(r.node=a.pre),r.text.parentNode.replaceChild(a.pre,r.text),r.text=a.pre,a.bgClass!=r.bgClass||a.textClass!=r.textClass?(r.bgClass=a.bgClass,r.textClass=a.textClass,gl(e,r)):s&&(r.text.className=s)}function gl(e,r){pl(e,r),r.line.wrapClass?ua(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function Iu(e,r,s,a){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var d=ua(r);r.gutterBackground=O("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?a.fixedPos:-a.gutterTotalWidth)+"px; width: "+a.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),d.insertBefore(r.gutterBackground,r.text)}var p=r.line.gutterMarkers;if(e.options.lineNumbers||p){var v=ua(r),m=r.gutter=O("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),v.insertBefore(m,r.text),r.line.gutterClass&&(m.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!p||!p["CodeMirror-linenumbers"])&&(r.lineNumber=m.appendChild(O("div",aa(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+a.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),p)for(var y=0;y<e.display.gutterSpecs.length;++y){var C=e.display.gutterSpecs[y].className,T=p.hasOwnProperty(C)&&p[C];T&&m.appendChild(O("div",[T],"CodeMirror-gutter-elt","left: "+a.gutterLeft[C]+"px; width: "+a.gutterWidth[C]+"px"))}}}function Au(e,r,s){r.alignable&&(r.alignable=null);for(var a=Ce("CodeMirror-linewidget"),d=r.node.firstChild,p=void 0;d;d=p)p=d.nextSibling,a.test(d.className)&&r.node.removeChild(d);Pu(e,r,s)}function $u(e,r,s,a){var d=Mo(e,r);return r.text=r.node=d.pre,d.bgClass&&(r.bgClass=d.bgClass),d.textClass&&(r.textClass=d.textClass),gl(e,r),Iu(e,r,s,a),Pu(e,r,a),r.node}function Pu(e,r,s){if(b0(e,r.line,r,s,!0),r.rest)for(var a=0;a<r.rest.length;a++)b0(e,r.rest[a],r,s,!1)}function b0(e,r,s,a,d){if(r.widgets)for(var p=ua(s),v=0,m=r.widgets;v<m.length;++v){var y=m[v],C=O("div",[y.node],"CodeMirror-linewidget"+(y.className?" "+y.className:""));y.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Du(y,C,s,a),e.display.input.setUneditable(C),d&&y.above?p.insertBefore(C,s.gutter||s.text):p.appendChild(C),lr(y,"redraw")}}function Du(e,r,s,a){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(r);var d=a.wrapperWidth;r.style.left=a.fixedPos+"px",e.coverGutter||(d-=a.gutterTotalWidth,r.style.paddingLeft=a.gutterTotalWidth+"px"),r.style.width=d+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-a.gutterTotalWidth+"px"))}function To(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!ue(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),$(r.display.measure,O("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function Ci(e,r){for(var s=Ui(r);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 as(e){return e.lineSpace.offsetTop}function Kr(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function vl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=$(e.measure,O("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,a={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(a.left)&&!isNaN(a.right)&&(e.cachedPaddingH=a),a}function nn(e){return Ne-e.display.nativeBarWidth}function ji(e){return e.display.scroller.clientWidth-nn(e)-e.display.barWidth}function bl(e){return e.display.scroller.clientHeight-nn(e)-e.display.barHeight}function V1(e,r,s){var a=e.options.lineWrapping,d=a&&ji(e);if(!r.measure.heights||a&&r.measure.width!=d){var p=r.measure.heights=[];if(a){r.measure.width=d;for(var v=r.text.firstChild.getClientRects(),m=0;m<v.length-1;m++){var y=v[m],C=v[m+1];Math.abs(y.bottom-C.bottom)>2&&p.push((y.bottom+C.top)/2-s.top)}}p.push(s.bottom-s.top)}}function m0(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var a=0;a<e.rest.length;a++)if(e.rest[a]==r)return{map:e.measure.maps[a],cache:e.measure.caches[a]};for(var d=0;d<e.rest.length;d++)if(zt(e.rest[d])>s)return{map:e.measure.maps[d],cache:e.measure.caches[d],before:!0}}function Z1(e,r){r=Qn(r);var s=zt(r),a=e.display.externalMeasured=new os(e.doc,r,s);a.lineN=s;var d=a.built=Ou(e,a);return a.text=d.pre,$(e.display.lineMeasure,d.pre),a}function y0(e,r,s,a){return ei(e,Bn(e,r),s,a)}function Nu(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[ri(e,r)];var s=e.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Bn(e,r){var s=zt(r),a=Nu(e,s);a&&!a.text?a=null:a&&a.changes&&(v0(e,a,s,on(e)),e.curOp.forceUpdate=!0),a||(a=Z1(e,r));var d=m0(a,r,s);return{line:r,view:a,rect:null,map:d.map,cache:d.cache,before:d.before,hasHeights:!1}}function ei(e,r,s,a,d){r.before&&(s=-1);var p=s+(a||""),v;return r.cache.hasOwnProperty(p)?v=r.cache[p]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(V1(e,r.view,r.rect),r.hasHeights=!0),v=Ki(e,r,s,a),v.bogus||(r.cache[p]=v)),{left:v.left,right:v.right,top:d?v.rtop:v.top,bottom:d?v.rbottom:v.bottom}}var C0={left:0,right:0,top:0,bottom:0};function ml(e,r,s){for(var a,d,p,v,m,y,C=0;C<e.length;C+=3)if(m=e[C],y=e[C+1],r<m?(d=0,p=1,v="left"):r<y?(d=r-m,p=d+1):(C==e.length-3||r==y&&e[C+3]>r)&&(p=y-m,d=p-1,r>=y&&(v="right")),d!=null){if(a=e[C+2],m==y&&s==(a.insertLeft?"left":"right")&&(v=s),s=="left"&&d==0)for(;C&&e[C-2]==e[C-3]&&e[C-1].insertLeft;)a=e[(C-=3)+2],v="left";if(s=="right"&&d==y-m)for(;C<e.length-3&&e[C+3]==e[C+4]&&!e[C+5].insertLeft;)a=e[(C+=3)+2],v="right";break}return{node:a,start:d,end:p,collapse:v,coverStart:m,coverEnd:y}}function w0(e,r){var s=C0;if(r=="left")for(var a=0;a<e.length&&(s=e[a]).left==s.right;a++);else for(var d=e.length-1;d>=0&&(s=e[d]).left==s.right;d--);return s}function Ki(e,r,s,a){var d=ml(r.map,s,a),p=d.node,v=d.start,m=d.end,y=d.collapse,C;if(p.nodeType==3){for(var T=0;T<4;T++){for(;v&&tt(r.line.text.charAt(d.coverStart+v));)--v;for(;d.coverStart+m<d.coverEnd&&tt(r.line.text.charAt(d.coverStart+m));)++m;if(z&&S<9&&v==0&&m==d.coverEnd-d.coverStart?C=p.parentNode.getBoundingClientRect():C=w0(Y(p,v,m).getClientRects(),a),C.left||C.right||v==0)break;m=v,v=v-1,y="right"}z&&S<11&&(C=yl(e.display.measure,C))}else{v>0&&(y=a="right");var I;e.options.lineWrapping&&(I=p.getClientRects()).length>1?C=I[a=="right"?I.length-1:0]:C=p.getBoundingClientRect()}if(z&&S<9&&!v&&(!C||!C.left&&!C.right)){var W=p.parentNode.getClientRects()[0];W?C={left:W.left,right:W.left+ca(e.display),top:W.top,bottom:W.bottom}:C=C0}for(var F=C.top-r.rect.top,j=C.bottom-r.rect.top,ne=(F+j)/2,he=r.view.measure.heights,me=0;me<he.length-1&&!(ne<he[me]);me++);var xe=me?he[me-1]:0,ye=he[me],Se={left:(y=="right"?C.right:C.left)-r.rect.left,right:(y=="left"?C.left:C.right)-r.rect.left,top:xe,bottom:ye};return!C.left&&!C.right&&(Se.bogus=!0),e.options.singleCursorHeightPerLine||(Se.rtop=F,Se.rbottom=j),Se}function yl(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vi(e))return r;var s=screen.logicalXDPI/screen.deviceXDPI,a=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*a,bottom:r.bottom*a}}function x0(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function z0(e){e.display.externalMeasure=null,Q(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)x0(e.display.view[r])}function ss(e){z0(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Oo(){return B&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function xn(){return B&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Cl(e){var r=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(r+=To(e.widgets[s]));return r}function wl(e,r,s,a,d){if(!d){var p=Cl(r);s.top+=p,s.bottom+=p}if(a=="line")return s;a||(a="local");var v=jr(r);if(a=="local"?v+=as(e.display):v-=e.display.viewOffset,a=="page"||a=="window"){var m=e.display.lineSpace.getBoundingClientRect();v+=m.top+(a=="window"?0:xn());var y=m.left+(a=="window"?0:Oo());s.left+=y,s.right+=y}return s.top+=v,s.bottom+=v,s}function L0(e,r,s){if(s=="div")return r;var a=r.left,d=r.top;if(s=="page")a-=Oo(),d-=xn();else if(s=="local"||!s){var p=e.display.sizer.getBoundingClientRect();a+=p.left,d+=p.top}var v=e.display.lineSpace.getBoundingClientRect();return{left:a-v.left,top:d-v.top}}function xl(e,r,s,a,d){return a||(a=Ee(e.doc,r.line)),wl(e,a,y0(e,a,r.ch,d),s)}function Wn(e,r,s,a,d,p){a=a||Ee(e.doc,r.line),d||(d=Bn(e,a));function v(j,ne){var he=ei(e,d,j,ne?"right":"left",p);return ne?he.left=he.right:he.right=he.left,wl(e,a,he,s)}var m=Dr(a,e.doc.direction),y=r.ch,C=r.sticky;if(y>=a.text.length?(y=a.text.length,C="before"):y<=0&&(y=0,C="after"),!m)return v(C=="before"?y-1:y,C=="before");function T(j,ne,he){var me=m[ne],xe=me.level==1;return v(he?j-1:j,xe!=he)}var I=Ut(m,y,C),W=Gr,F=T(y,I,C=="before");return W!=null&&(F.other=T(y,W,C!="before")),F}function S0(e,r){var s=0;r=we(e.doc,r),e.options.lineWrapping||(s=ca(e.display)*r.ch);var a=Ee(e.doc,r.line),d=jr(a)+as(e.display);return{left:s,right:s,top:d,bottom:d+a.height}}function Yi(e,r,s,a,d){var p=ae(e,r,s);return p.xRel=d,a&&(p.outside=a),p}function U(e,r,s){var a=e.doc;if(s+=e.display.viewOffset,s<0)return Yi(a.first,0,null,-1,-1);var d=Fn(a,s),p=a.first+a.size-1;if(d>p)return Yi(a.first+a.size-1,Ee(a,p).text.length,null,1,1);r<0&&(r=0);for(var v=Ee(a,d);;){var m=nt(e,v,d,r,s),y=D1(v,m.ch+(m.xRel>0||m.outside>0?1:0));if(!y)return m;var C=y.find(1);if(C.line==d)return C;v=Ee(a,d=C.line)}}function re(e,r,s,a){a-=Cl(r);var d=r.text.length,p=Lr(function(v){return ei(e,s,v-1).bottom<=a},d,0);return d=Lr(function(v){return ei(e,s,v).top>a},p,d),{begin:p,end:d}}function G(e,r,s,a){s||(s=Bn(e,r));var d=wl(e,r,ei(e,s,a),"line").top;return re(e,r,s,d)}function ke(e,r,s,a){return e.bottom<=s?!1:e.top>s?!0:(a?e.left:e.right)>r}function nt(e,r,s,a,d){d-=jr(r);var p=Bn(e,r),v=Cl(r),m=0,y=r.text.length,C=!0,T=Dr(r,e.doc.direction);if(T){var I=(e.options.lineWrapping?ur:Tt)(e,r,s,p,T,a,d);C=I.level!=1,m=C?I.from:I.to-1,y=C?I.to:I.from-1}var W=null,F=null,j=Lr(function(Fe){var Pe=ei(e,p,Fe);return Pe.top+=v,Pe.bottom+=v,ke(Pe,a,d,!1)?(Pe.top<=d&&Pe.left<=a&&(W=Fe,F=Pe),!0):!1},m,y),ne,he,me=!1;if(F){var xe=a-F.left<F.right-a,ye=xe==C;j=W+(ye?0:1),he=ye?"after":"before",ne=xe?F.left:F.right}else{!C&&(j==y||j==m)&&j++,he=j==0?"after":j==r.text.length?"before":ei(e,p,j-(C?1:0)).bottom+v<=d==C?"after":"before";var Se=Wn(e,ae(s,j,he),"line",r,p);ne=Se.left,me=d<Se.top?-1:d>=Se.bottom?1:0}return j=sr(r.text,j,1),Yi(s,j,he,me,a-ne)}function Tt(e,r,s,a,d,p,v){var m=Lr(function(I){var W=d[I],F=W.level!=1;return ke(Wn(e,ae(s,F?W.to:W.from,F?"before":"after"),"line",r,a),p,v,!0)},0,d.length-1),y=d[m];if(m>0){var C=y.level!=1,T=Wn(e,ae(s,C?y.from:y.to,C?"after":"before"),"line",r,a);ke(T,p,v,!0)&&T.top>v&&(y=d[m-1])}return y}function ur(e,r,s,a,d,p,v){var m=re(e,r,a,v),y=m.begin,C=m.end;/\s/.test(r.text.charAt(C-1))&&C--;for(var T=null,I=null,W=0;W<d.length;W++){var F=d[W];if(!(F.from>=C||F.to<=y)){var j=F.level!=1,ne=ei(e,a,j?Math.min(C,F.to)-1:Math.max(y,F.from)).right,he=ne<p?p-ne+1e9:ne-p;(!T||I>he)&&(T=F,I=he)}}return T||(T=d[d.length-1]),T.from<y&&(T={from:y,to:T.to,level:T.level}),T.to>C&&(T={from:T.from,to:C,level:T.level}),T}var Ct;function Xi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ct==null){Ct=O("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ct.appendChild(document.createTextNode("x")),Ct.appendChild(O("br"));Ct.appendChild(document.createTextNode("x"))}$(e.measure,Ct);var s=Ct.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),Q(e.measure),s||1}function ca(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=O("span","xxxxxxxxxx"),s=O("pre",[r],"CodeMirror-line-like");$(e.measure,s);var a=r.getBoundingClientRect(),d=(a.right-a.left)/10;return d>2&&(e.cachedCharWidth=d),d||10}function on(e){for(var r=e.display,s={},a={},d=r.gutters.clientLeft,p=r.gutters.firstChild,v=0;p;p=p.nextSibling,++v){var m=e.display.gutterSpecs[v].className;s[m]=p.offsetLeft+p.clientLeft+d,a[m]=p.clientWidth}return{fixedPos:da(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:a,wrapperWidth:r.wrapper.clientWidth}}function da(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _0(e){var r=Xi(e.display),s=e.options.lineWrapping,a=s&&Math.max(5,e.display.scroller.clientWidth/ca(e.display)-3);return function(d){if(Zt(e.doc,d))return 0;var p=0;if(d.widgets)for(var v=0;v<d.widgets.length;v++)d.widgets[v].height&&(p+=d.widgets[v].height);return s?p+(Math.ceil(d.text.length/a)||1)*r:p+r}}function Ji(e){var r=e.doc,s=_0(e);r.iter(function(a){var d=s(a);d!=a.height&&tn(a,d)})}function ti(e,r,s,a){var d=e.display;if(!s&&Ui(r).getAttribute("cm-not-content")=="true")return null;var p,v,m=d.lineSpace.getBoundingClientRect();try{p=r.clientX-m.left,v=r.clientY-m.top}catch{return null}var y=U(e,p,v),C;if(a&&y.xRel>0&&(C=Ee(e.doc,y.line).text).length==y.ch){var T=xt(C,C.length,e.options.tabSize)-C.length;y=ae(y.line,Math.max(0,Math.round((p-vl(e.display).left)/ca(e.display))-T))}return y}function ri(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,a=0;a<s.length;a++)if(r-=s[a].size,r<0)return a}function ot(e,r,s,a){r==null&&(r=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),a||(a=0);var d=e.display;if(a&&s<d.viewTo&&(d.updateLineNumbers==null||d.updateLineNumbers>r)&&(d.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=d.viewTo)Jn&&hl(e.doc,r)<d.viewTo&&wi(e);else if(s<=d.viewFrom)Jn&&d0(e.doc,s+a)>d.viewFrom?wi(e):(d.viewFrom+=a,d.viewTo+=a);else if(r<=d.viewFrom&&s>=d.viewTo)wi(e);else if(r<=d.viewFrom){var p=ko(e,s,s+a,1);p?(d.view=d.view.slice(p.index),d.viewFrom=p.lineN,d.viewTo+=a):wi(e)}else if(s>=d.viewTo){var v=ko(e,r,r,-1);v?(d.view=d.view.slice(0,v.index),d.viewTo=v.lineN):wi(e)}else{var m=ko(e,r,r,-1),y=ko(e,s,s+a,1);m&&y?(d.view=d.view.slice(0,m.index).concat(la(e,m.lineN,y.lineN)).concat(d.view.slice(y.index)),d.viewTo+=a):wi(e)}var C=d.externalMeasured;C&&(s<C.lineN?C.lineN+=a:r<C.lineN+C.size&&(d.externalMeasured=null))}function Qi(e,r,s){e.curOp.viewChanged=!0;var a=e.display,d=e.display.externalMeasured;if(d&&r>=d.lineN&&r<d.lineN+d.size&&(a.externalMeasured=null),!(r<a.viewFrom||r>=a.viewTo)){var p=a.view[ri(e,r)];if(p.node!=null){var v=p.changes||(p.changes=[]);ze(v,s)==-1&&v.push(s)}}}function wi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ko(e,r,s,a){var d=ri(e,r),p,v=e.display.view;if(!Jn||s==e.doc.first+e.doc.size)return{index:d,lineN:s};for(var m=e.display.viewFrom,y=0;y<d;y++)m+=v[y].size;if(m!=r){if(a>0){if(d==v.length-1)return null;p=m+v[d].size-r,d++}else p=m-r;r+=p,s+=p}for(;hl(e.doc,s)!=s;){if(d==(a<0?0:v.length-1))return null;s+=a*v[d-(a<0?1:0)].size,d+=a}return{index:d,lineN:s}}function G1(e,r,s){var a=e.display,d=a.view;d.length==0||r>=a.viewTo||s<=a.viewFrom?(a.view=la(e,r,s),a.viewFrom=r):(a.viewFrom>r?a.view=la(e,r,a.viewFrom).concat(a.view):a.viewFrom<r&&(a.view=a.view.slice(ri(e,r))),a.viewFrom=r,a.viewTo<s?a.view=a.view.concat(la(e,a.viewTo,s)):a.viewTo>s&&(a.view=a.view.slice(0,ri(e,s)))),a.viewTo=s}function M0(e){for(var r=e.display.view,s=0,a=0;a<r.length;a++){var d=r[a];!d.hidden&&(!d.node||d.changes)&&++s}return s}function ls(e){e.display.input.showSelection(e.display.input.prepareSelection())}function us(e,r){r===void 0&&(r=!0);for(var s=e.doc,a={},d=a.cursors=document.createDocumentFragment(),p=a.selection=document.createDocumentFragment(),v=0;v<s.sel.ranges.length;v++)if(!(!r&&v==s.sel.primIndex)){var m=s.sel.ranges[v];if(!(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)){var y=m.empty();(y||e.options.showCursorWhenSelecting)&&xi(e,m.head,d),y||T0(e,m,p)}}return a}function xi(e,r,s){var a=Wn(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),d=s.appendChild(O("div"," ","CodeMirror-cursor"));if(d.style.left=a.left+"px",d.style.top=a.top+"px",d.style.height=Math.max(0,a.bottom-a.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var p=xl(e,r,"div",null,null);d.style.width=Math.max(0,p.right-p.left)+"px"}if(a.other){var v=s.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));v.style.display="",v.style.left=a.other.left+"px",v.style.top=a.other.top+"px",v.style.height=(a.other.bottom-a.other.top)*.85+"px"}}function Eo(e,r){return e.top-r.top||e.left-r.left}function T0(e,r,s){var a=e.display,d=e.doc,p=document.createDocumentFragment(),v=vl(e.display),m=v.left,y=Math.max(a.sizerWidth,ji(e)-a.sizer.offsetLeft)-v.right,C=d.direction=="ltr";function T(ye,Se,Fe,Pe){Se<0&&(Se=0),Se=Math.round(Se),Pe=Math.round(Pe),p.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+ye+`px;
|
|
2851
2852
|
top: `+Se+"px; width: "+(Fe==null?y-ye:Fe)+`px;
|
|
2852
|
-
height: `+(Pe-Se)+"px"))}function I(ye,Se,Fe){var Pe=
|
|
2853
|
+
height: `+(Pe-Se)+"px"))}function I(ye,Se,Fe){var Pe=Ee(d,ye),ut=Pe.text.length,It,rr;function Nt(Xt,Cr){return xl(e,ae(ye,Xt),"div",Pe,Cr)}function Hr(Xt,Cr,cr){var $t=G(e,Pe,null,Xt),Ht=Cr=="ltr"==(cr=="after")?"left":"right",jt=cr=="after"?$t.begin:$t.end-(/\s/.test(Pe.text.charAt($t.end-1))?2:1);return Nt(jt,Ht)[Ht]}var Br=Dr(Pe,d.direction);return $n(Br,Se||0,Fe==null?ut:Fe,function(Xt,Cr,cr,$t){var Ht=cr=="ltr",jt=Nt(Xt,Ht?"left":"right"),Wr=Nt(Cr-1,Ht?"right":"left"),$a=Se==null&&Xt==0,go=Fe==null&&Cr==ut,Ar=$t==0,si=!Br||$t==Br.length-1;if(Wr.top-jt.top<=3){var dr=(C?$a:go)&&Ar,pc=(C?go:$a)&&si,Mi=dr?m:(Ht?jt:Wr).left,Uo=pc?y:(Ht?Wr:jt).right;T(Mi,jt.top,Uo-Mi,jt.bottom)}else{var Vo,Ur,Pa,Xl;Ht?(Vo=C&&$a&&Ar?m:jt.left,Ur=C?y:Hr(Xt,cr,"before"),Pa=C?m:Hr(Cr,cr,"after"),Xl=C&&go&&si?y:Wr.right):(Vo=C?Hr(Xt,cr,"before"):m,Ur=!C&&$a&&Ar?y:jt.right,Pa=!C&&go&&si?m:Wr.left,Xl=C?Hr(Cr,cr,"after"):y),T(Vo,jt.top,Ur-Vo,jt.bottom),jt.bottom<Wr.top&&T(m,jt.bottom,null,Wr.top),T(Pa,Wr.top,Xl-Pa,Wr.bottom)}(!It||Eo(jt,It)<0)&&(It=jt),Eo(Wr,It)<0&&(It=Wr),(!rr||Eo(jt,rr)<0)&&(rr=jt),Eo(Wr,rr)<0&&(rr=Wr)}),{start:It,end:rr}}var W=r.from(),F=r.to();if(W.line==F.line)I(W.line,W.ch,F.ch);else{var j=Ee(d,W.line),ne=Ee(d,F.line),he=Qn(j)==Qn(ne),me=I(W.line,W.ch,he?j.text.length+1:null).end,xe=I(F.line,he?0:null,F.ch).start;he&&(me.top<xe.top-2?(T(me.right,me.top,null,me.bottom),T(m,xe.top,xe.left,xe.bottom)):T(me.right,me.top,xe.left-me.right,me.bottom)),me.bottom<xe.top&&T(m,me.bottom,null,xe.top)}s.appendChild(p)}function fa(e){if(e.state.focused){var r=e.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||Io(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Ru(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ha(e))}function zl(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Io(e))},100)}function ha(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(qe(e,"focus",e,r),e.state.focused=!0,et(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),E&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),fa(e))}function Io(e,r){e.state.delayingBlurEvent||(e.state.focused&&(qe(e,"blur",e,r),e.state.focused=!1,le(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function eo(e){for(var r=e.display,s=r.lineDiv.offsetTop,a=0;a<r.view.length;a++){var d=r.view[a],p=e.options.lineWrapping,v=void 0,m=0;if(!d.hidden){if(z&&S<8){var y=d.node.offsetTop+d.node.offsetHeight;v=y-s,s=y}else{var C=d.node.getBoundingClientRect();v=C.bottom-C.top,!p&&d.text.firstChild&&(m=d.text.firstChild.getBoundingClientRect().right-C.left-1)}var T=d.line.height-v;if((T>.005||T<-.005)&&(tn(d.line,v),to(d.line),d.rest))for(var I=0;I<d.rest.length;I++)to(d.rest[I]);if(m>e.display.sizerWidth){var W=Math.ceil(m/ca(e.display));W>e.display.maxLineLength&&(e.display.maxLineLength=W,e.display.maxLine=d.line,e.display.maxLineChanged=!0)}}}}function to(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var s=e.widgets[r],a=s.node.parentNode;a&&(s.height=a.offsetHeight)}}function Ao(e,r,s){var a=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;a=Math.floor(a-as(e));var d=s&&s.bottom!=null?s.bottom:a+e.wrapper.clientHeight,p=Fn(r,a),v=Fn(r,d);if(s&&s.ensure){var m=s.ensure.from.line,y=s.ensure.to.line;m<p?(p=m,v=Fn(r,jr(Ee(r,m))+e.wrapper.clientHeight)):Math.min(y,r.lastLine())>=v&&(p=Fn(r,jr(Ee(r,y))-e.wrapper.clientHeight),v=y)}return{from:p,to:Math.max(v,p+1)}}function q1(e,r){if(!Jt(e,"scrollCursorIntoView")){var s=e.display,a=s.sizer.getBoundingClientRect(),d=null;if(r.top+a.top<0?d=!0:r.bottom+a.top>(window.innerHeight||document.documentElement.clientHeight)&&(d=!1),d!=null&&!ge){var p=O("div","",null,`position: absolute;
|
|
2853
2854
|
top: `+(r.top-s.viewOffset-as(e.display))+`px;
|
|
2854
2855
|
height: `+(r.bottom-r.top+nn(e)+s.barHeight)+`px;
|
|
2855
|
-
left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(d),e.display.lineSpace.removeChild(p)}}}function j1(e,r,s,a){a==null&&(a=0);var d;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?ae(r.line,r.ch+1,"before"):r,r=r.ch?ae(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var p=0;p<5;p++){var v=!1,m=Wn(e,r),y=!s||s==r?m:Wn(e,s);d={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=pa(e,d),T=e.doc.scrollTop,I=e.doc.scrollLeft;if(C.scrollTop!=null&&(Gt(e,C.scrollTop),Math.abs(e.doc.scrollTop-T)>1&&(v=!0)),C.scrollLeft!=null&&($o(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-I)>1&&(v=!0)),!v)break}return d}function K1(e,r){var s=pa(e,r);s.scrollTop!=null&&Gt(e,s.scrollTop),s.scrollLeft!=null&&$o(e,s.scrollLeft)}function pa(e,r){var s=e.display,a=Yi(e.display);r.top<0&&(r.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,p=vl(e),v={};r.bottom-r.top>p&&(r.bottom=r.top+p);var m=e.doc.height+Kr(s),y=r.top<a,C=r.bottom>m-a;if(r.top<d)v.scrollTop=y?0:r.top;else if(r.bottom>d+p){var T=Math.min(r.top,(C?m:r.bottom)-p);T!=d&&(v.scrollTop=T)}var I=e.options.fixedGutter?0:s.gutters.offsetWidth,W=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-I,F=qi(e)-s.gutters.offsetWidth,j=r.right-r.left>F;return j&&(r.right=r.left+F),r.left<10?v.scrollLeft=0:r.left<W?v.scrollLeft=Math.max(0,r.left+I-(j?0:10)):r.right>F+W-3&&(v.scrollLeft=r.right+(j?0:10)-F),v}function ga(e,r){r!=null&&(zl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function to(e){zl(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function cs(e,r,s){(r!=null||s!=null)&&zl(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function O0(e,r){zl(e),e.curOp.scrollToPos=r}function zl(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=S0(e,r.from),a=S0(e,r.to);E0(e,s,a,r.margin)}}function E0(e,r,s,a){var d=pa(e,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});cs(e,d.scrollLeft,d.scrollTop)}function Gt(e,r){Math.abs(e.doc.scrollTop-r)<2||(c||Hu(e,{top:r}),Tr(e,r,!0),c&&Hu(e),ii(e,100))}function Tr(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function $o(e,r,s,a){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!a)&&(e.doc.scrollLeft=r,k0(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function ds(e){var r=e.display,s=r.gutters.offsetWidth,a=Math.round(e.doc.height+Kr(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+nn(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var ro=function(e,r,s){this.cm=s;var a=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=d.tabIndex=-1,e(a),e(d),We(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),We(d,"scroll",function(){d.clientWidth&&r(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,z&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ro.prototype.update=function(e){var r=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=r?a+"px":"0";var d=e.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var p=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+p)+"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:r?a:0}},ro.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ro.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ro.prototype.zeroWidthHack=function(){var e=ve&&!pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new rt,this.disableVert=new rt},ro.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function a(){var d=e.getBoundingClientRect(),p=s=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);p!=e?e.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},ro.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var fs=function(){};fs.prototype.update=function(){return{bottom:0,right:0}},fs.prototype.setScrollLeft=function(){},fs.prototype.setScrollTop=function(){},fs.prototype.clear=function(){};function no(e,r){r||(r=ds(e));var s=e.display.barWidth,a=e.display.barHeight;va(e,r);for(var d=0;d<4&&s!=e.display.barWidth||a!=e.display.barHeight;d++)s!=e.display.barWidth&&e.options.lineWrapping&&Qi(e),va(e,ds(e)),s=e.display.barWidth,a=e.display.barHeight}function va(e,r){var s=e.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Ll={native:ro,null:fs};function Po(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&le(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ll[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),We(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?$o(e,r):Gt(e,r)},e),e.display.scrollbars.addClass&&et(e.display.wrapper,e.display.scrollbars.addClass)}var hs=0;function Un(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:++hs,markArrays:null},Gi(e.curOp)}function ni(e){var r=e.curOp;r&&B1(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ba(s)})}function ba(e){for(var r=e.ops,s=0;s<r.length;s++)Y1(r[s]);for(var a=0;a<r.length;a++)X1(r[a]);for(var d=0;d<r.length;d++)J1(r[d]);for(var p=0;p<r.length;p++)Q1(r[p]);for(var v=0;v<r.length;v++)ef(r[v])}function Y1(e){var r=e.cm,s=r.display;vt(r),e.updateMaxLine&&is(r),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&&r.options.lineWrapping,e.update=e.mustUpdate&&new Yr(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function X1(e){e.updatedDisplay=e.mustUpdate&&Fu(e.cm,e.update)}function J1(e){var r=e.cm,s=r.display;e.updatedDisplay&&Qi(r),e.barMeasure=ds(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=y0(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+nn(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-qi(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function Q1(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&$o(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=e.focus&&e.focus==Ae();e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=r.doc.height)&&no(r,e.barMeasure),e.updatedDisplay&&Wu(r,e.barMeasure),e.selectionChanged&&fa(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),s&&Ru(e.cm)}function ef(e){var r=e.cm,s=r.display,a=r.doc;if(e.updatedDisplay&&io(r,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Tr(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&$o(r,e.scrollLeft,!0,!0),e.scrollToPos){var d=j1(r,we(a,e.scrollToPos.from),we(a,e.scrollToPos.to),e.scrollToPos.margin);q1(r,d)}var p=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(p)for(var m=0;m<p.length;++m)p[m].lines.length||qe(p[m],"hide");if(v)for(var y=0;y<v.length;++y)v[y].lines.length&&qe(v[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&qe(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function Or(e,r){if(e.curOp)return r();Un(e);try{return r()}finally{ni(e)}}function qt(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Un(e);try{return r.apply(e,arguments)}finally{ni(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Un(this);try{return e.apply(this,arguments)}finally{ni(this)}}}function _(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Un(r);try{return e.apply(this,arguments)}finally{ni(r)}}}function ii(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,or(Sl,e))}function Sl(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=sa(e,r.highlightFrontier),d=[];r.iter(a.line,Math.min(r.first+r.size,e.display.viewTo+500),function(p){if(a.line>=e.display.viewFrom){var v=p.styles,m=p.text.length>e.options.maxHighlightLength?cn(r.mode,a.state):null,y=t0(e,p,a,!0);m&&(a.state=m),p.styles=y.styles;var C=p.styleClasses,T=y.classes;T?p.styleClasses=T:C&&(p.styleClasses=null);for(var I=!v||v.length!=p.styles.length||C!=T&&(!C||!T||C.bgClass!=T.bgClass||C.textClass!=T.textClass),W=0;!I&&W<v.length;++W)I=v[W]!=p.styles[W];I&&d.push(a.line),p.stateAfter=a.save(),a.nextLine()}else p.text.length<=e.options.maxHighlightLength&&es(e,p.text,a),p.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ii(e,e.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),d.length&&Or(e,function(){for(var p=0;p<d.length;p++)Ji(e,d[p],"text")})}}var Yr=function(e,r,s){var a=e.display;this.viewport=r,this.visible=Ao(a,e.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=qi(e),this.force=s,this.dims=on(e),this.events=[]};Yr.prototype.signal=function(e,r){gr(e,r)&&this.events.push(arguments)},Yr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)qe.apply(null,this.events[e])};function vt(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=nn(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=nn(e)+"px",r.scrollbarsClipped=!0)}function tf(e){if(e.hasFocus())return null;var r=Ae();if(!r||!ue(e.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ue(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function rf(e){if(!(!e||!e.activeElt||e.activeElt==Ae())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ue(document.body,e.anchorNode)&&ue(document.body,e.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(e.focusNode,e.focusOffset)}}function Fu(e,r){var s=e.display,a=e.doc;if(r.editorIsHidden)return wi(e),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&M0(e)==0)return!1;oi(e)&&(wi(e),r.dims=on(e));var d=a.first+a.size,p=Math.max(r.visible.from-e.options.viewportMargin,a.first),v=Math.min(d,r.visible.to+e.options.viewportMargin);s.viewFrom<p&&p-s.viewFrom<20&&(p=Math.max(a.first,s.viewFrom)),s.viewTo>v&&s.viewTo-v<20&&(v=Math.min(d,s.viewTo)),Jn&&(p=fl(e.doc,p),v=d0(e.doc,v));var m=p!=s.viewFrom||v!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;G1(e,p,v),s.viewOffset=jr(ke(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=M0(e);if(!m&&y==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=tf(e);return y>4&&(s.lineDiv.style.display="none"),nf(e,s.updateLineNumbers,r.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,rf(C),Q(s.cursorDiv),Q(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,ii(e,400)),s.updateLineNumbers=null,!0}function io(e,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||r.oldDisplayWidth==qi(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Kr(e.display)-vl(e),s.top)}),r.visible=Ao(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else a&&(r.visible=Ao(e.display,e.doc,s));if(!Fu(e,r))break;Qi(e);var d=ds(e);ls(e),no(e,d),Wu(e,d),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Hu(e,r){var s=new Yr(e,r);if(Fu(e,s)){Qi(e),io(e,s);var a=ds(e);ls(e),no(e,a),Wu(e,a),s.finish()}}function nf(e,r,s){var a=e.display,d=e.options.lineNumbers,p=a.lineDiv,v=p.firstChild;function m(j){var ne=j.nextSibling;return k&&ve&&e.display.currentWheelTarget==j?j.style.display="none":j.parentNode.removeChild(j),ne}for(var y=a.view,C=a.viewFrom,T=0;T<y.length;T++){var I=y[T];if(!I.hidden)if(!I.node||I.node.parentNode!=p){var W=$u(e,I,C,s);p.insertBefore(W,v)}else{for(;v!=I.node;)v=m(v);var F=d&&r!=null&&r<=C&&I.lineNumber;I.changes&&(ze(I.changes,"gutter")>-1&&(F=!1),v0(e,I,C,s)),F&&(Q(I.lineNumber),I.lineNumber.appendChild(document.createTextNode(aa(e.options,C)))),v=I.node.nextSibling}C+=I.size}for(;v;)v=m(v)}function Bu(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",lr(e,"gutterChanged",e)}function Wu(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+nn(e)+"px"}function k0(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var a=da(r)-r.scroller.scrollLeft+e.doc.scrollLeft,d=r.gutters.offsetWidth,p=a+"px",v=0;v<s.length;v++)if(!s[v].hidden){e.options.fixedGutter&&(s[v].gutter&&(s[v].gutter.style.left=p),s[v].gutterBackground&&(s[v].gutterBackground.style.left=p));var m=s[v].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=p}e.options.fixedGutter&&(r.gutters.style.left=a+d+"px")}}function oi(e){if(!e.options.lineNumbers)return!1;var r=e.doc,s=aa(e.options,r.first+r.size-1),a=e.display;if(s.length!=a.lineNumChars){var d=a.measure.appendChild(O("div",[O("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=d.firstChild.offsetWidth,v=d.offsetWidth-p;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(p,a.lineGutter.offsetWidth-v)+1,a.lineNumWidth=a.lineNumInnerWidth+v,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Bu(e.display),!0}return!1}function Uu(e,r){for(var s=[],a=!1,d=0;d<e.length;d++){var p=e[d],v=null;if(typeof p!="string"&&(v=p.style,p=p.className),p=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:p,style:v})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function I0(e){var r=e.gutters,s=e.gutterSpecs;Q(r),e.lineGutter=null;for(var a=0;a<s.length;++a){var d=s[a],p=d.className,v=d.style,m=r.appendChild(O("div",null,"CodeMirror-gutter "+p));v&&(m.style.cssText=v),p=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",Bu(e)}function ps(e){I0(e.display),ot(e),k0(e)}function of(e,r,s,a){var d=this;this.input=s,d.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=E("div",null,"CodeMirror-code"),d.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=O("div",null,"CodeMirror-cursors"),d.measure=O("div",null,"CodeMirror-measure"),d.lineMeasure=O("div",null,"CodeMirror-measure"),d.lineSpace=E("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var p=E("div",[d.lineSpace],"CodeMirror-lines");d.mover=O("div",[p],null,"position: relative"),d.sizer=O("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=O("div",null,null,"position: absolute; height: "+Ne+"px; width: 1px;"),d.gutters=O("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=O("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=O("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),d.wrapper.setAttribute("translate","no"),z&&S<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!k&&!(c&&be)&&(d.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(d.wrapper):e(d.wrapper)),d.viewFrom=d.viewTo=r.first,d.reportedViewFrom=d.reportedViewTo=r.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=Uu(a.gutters,a.lineNumbers),I0(d),s.init(d)}var _l=0,Qt=null;z?Qt=-.53:c?Qt=15:B?Qt=-.7:J&&(Qt=-1/3);function A0(e){var r=e.wheelDeltaX,s=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:r,y:s}}function af(e){var r=A0(e);return r.x*=Qt,r.y*=Qt,r}function $0(e,r){var s=A0(r),a=s.x,d=s.y,p=e.display,v=p.scroller,m=v.scrollWidth>v.clientWidth,y=v.scrollHeight>v.clientHeight;if(a&&m||d&&y){if(d&&ve&&k){e:for(var C=r.target,T=p.view;C!=v;C=C.parentNode)for(var I=0;I<T.length;I++)if(T[I].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!c&&!R&&Qt!=null){d&&y&&Gt(e,Math.max(0,v.scrollTop+d*Qt)),$o(e,Math.max(0,v.scrollLeft+a*Qt)),(!d||d&&y)&&vr(r),p.wheelStartX=null;return}if(d&&Qt!=null){var W=d*Qt,F=e.doc.scrollTop,j=F+p.wrapper.clientHeight;W<0?F=Math.max(0,F+W-50):j=Math.min(e.doc.height,j+W+50),Hu(e,{top:F,bottom:j})}_l<20&&(p.wheelStartX==null?(p.wheelStartX=v.scrollLeft,p.wheelStartY=v.scrollTop,p.wheelDX=a,p.wheelDY=d,setTimeout(function(){if(p.wheelStartX!=null){var ne=v.scrollLeft-p.wheelStartX,he=v.scrollTop-p.wheelStartY,me=he&&p.wheelDY&&he/p.wheelDY||ne&&p.wheelDX&&ne/p.wheelDX;p.wheelStartX=p.wheelStartY=null,me&&(Qt=(Qt*_l+me)/(_l+1),++_l)}},200)):(p.wheelDX+=a,p.wheelDY+=d))}}var hn=function(e,r){this.ranges=e,this.primIndex=r};hn.prototype.primary=function(){return this.ranges[this.primIndex]},hn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=e.ranges[r];if(!A(s.anchor,a.anchor)||!A(s.head,a.head))return!1}return!0},hn.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new Lt(te(this.ranges[r].anchor),te(this.ranges[r].head));return new hn(e,this.primIndex)},hn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},hn.prototype.contains=function(e,r){r||(r=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(w(r,a.from())>=0&&w(e,a.to())<=0)return s}return-1};var Lt=function(e,r){this.anchor=e,this.head=r};Lt.prototype.from=function(){return Ke(this.anchor,this.head)},Lt.prototype.to=function(){return ce(this.anchor,this.head)},Lt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function kr(e,r,s){var a=e&&e.options.selectionsMayTouch,d=r[s];r.sort(function(W,F){return w(W.from(),F.from())}),s=ze(r,d);for(var p=1;p<r.length;p++){var v=r[p],m=r[p-1],y=w(m.to(),v.from());if(a&&!v.empty()?y>0:y>=0){var C=Ke(m.from(),v.from()),T=ce(m.to(),v.to()),I=m.empty()?v.from()==v.head:m.from()==m.head;p<=s&&--s,r.splice(--p,2,new Lt(I?T:C,I?C:T))}}return new hn(r,s)}function oo(e,r){return new hn([new Lt(e,r||e)],0)}function ao(e){return e.text?ae(e.from.line+e.text.length-1,Qe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function zn(e,r){if(w(e,r.from)<0)return e;if(w(e,r.to)<=0)return ao(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,a=e.ch;return e.line==r.to.line&&(a+=ao(r).ch-r.to.ch),ae(s,a)}function Vu(e,r){for(var s=[],a=0;a<e.sel.ranges.length;a++){var d=e.sel.ranges[a];s.push(new Lt(zn(d.anchor,r),zn(d.head,r)))}return kr(e.cm,s,e.sel.primIndex)}function P0(e,r,s){return e.line==r.line?ae(s.line,e.ch-r.ch+s.ch):ae(s.line+(e.line-r.line),e.ch)}function sf(e,r,s){for(var a=[],d=ae(e.first,0),p=d,v=0;v<r.length;v++){var m=r[v],y=P0(m.from,d,p),C=P0(ao(m),d,p);if(d=m.to,p=C,s=="around"){var T=e.sel.ranges[v],I=w(T.head,T.anchor)<0;a[v]=new Lt(I?C:y,I?y:C)}else a[v]=new Lt(y,y)}return new hn(a,e.sel.primIndex)}function Zu(e){e.doc.mode=oa(e.options,e.doc.modeOption),gs(e)}function gs(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ii(e,100),e.state.modeGen++,e.curOp&&ot(e)}function Gu(e,r){return r.from.ch==0&&r.to.ch==0&&Qe(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ml(e,r,s,a){function d(xe){return s?s[xe]:null}function p(xe,ye,Se){f0(xe,ye,Se,a),lr(xe,"change",xe,r)}function v(xe,ye){for(var Se=[],Fe=xe;Fe<ye;++Fe)Se.push(new Mr(C[Fe],d(Fe),a));return Se}var m=r.from,y=r.to,C=r.text,T=ke(e,m.line),I=ke(e,y.line),W=Qe(C),F=d(C.length-1),j=y.line-m.line;if(r.full)e.insert(0,v(0,C.length)),e.remove(C.length,e.size-C.length);else if(Gu(e,r)){var ne=v(0,C.length-1);p(I,I.text,F),j&&e.remove(m.line,j),ne.length&&e.insert(m.line,ne)}else if(T==I)if(C.length==1)p(T,T.text.slice(0,m.ch)+W+T.text.slice(y.ch),F);else{var he=v(1,C.length-1);he.push(new Mr(W+T.text.slice(y.ch),F,a)),p(T,T.text.slice(0,m.ch)+C[0],d(0)),e.insert(m.line+1,he)}else if(C.length==1)p(T,T.text.slice(0,m.ch)+C[0]+I.text.slice(y.ch),d(0)),e.remove(m.line+1,j);else{p(T,T.text.slice(0,m.ch)+C[0],d(0)),p(I,W+I.text.slice(y.ch),F);var me=v(1,C.length-1);j>1&&e.remove(m.line+1,j-1),e.insert(m.line+1,me)}lr(e,"change",e,r)}function so(e,r,s){function a(d,p,v){if(d.linked)for(var m=0;m<d.linked.length;++m){var y=d.linked[m];if(y.doc!=p){var C=v&&y.sharedHist;s&&!C||(r(y.doc,C),a(y.doc,d,C))}}}a(e,null,!0)}function D0(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,Xi(e),Zu(e),Tl(e),e.options.direction=r.direction,e.options.lineWrapping||is(e),e.options.mode=r.modeOption,ot(e)}function Tl(e){(e.doc.direction=="rtl"?et:le)(e.display.lineDiv,"CodeMirror-rtl")}function vs(e){Or(e,function(){Tl(e),ot(e)})}function Do(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 qu(e,r){var s={from:te(r.from),to:ao(r),text:dn(e,r.from,r.to)};return N0(e,s,r.from.line,r.to.line+1),so(e,function(a){return N0(a,s,r.from.line,r.to.line+1)},!0),s}function ju(e){for(;e.length;){var r=Qe(e);if(r.ranges)e.pop();else break}}function lf(e,r){if(r)return ju(e.done),Qe(e.done);if(e.done.length&&!Qe(e.done).ranges)return Qe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Qe(e.done)}function ai(e,r,s,a){var d=e.history;d.undone.length=0;var p=+new Date,v,m;if((d.lastOp==a||d.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&d.lastModTime>p-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(v=lf(d,d.lastOp==a)))m=Qe(v.changes),w(r.from,r.to)==0&&w(r.from,m.to)==0?m.to=ao(r):v.changes.push(qu(e,r));else{var y=Qe(d.done);for((!y||!y.ranges)&&Xr(e.sel,d.done),v={changes:[qu(e,r)],generation:d.generation},d.done.push(v);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(s),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=p,d.lastOp=d.lastSelOp=a,d.lastOrigin=d.lastSelOrigin=r.origin,m||qe(e,"historyAdded")}function Ku(e,r,s,a){var d=r.charAt(0);return d=="*"||d=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function No(e,r,s,a){var d=e.history,p=a&&a.origin;s==d.lastSelOp||p&&d.lastSelOrigin==p&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==p||Ku(e,p,Qe(d.done),r))?d.done[d.done.length-1]=r:Xr(r,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=p,d.lastSelOp=s,a&&a.clearRedo!==!1&&ju(d.undone)}function Xr(e,r){var s=Qe(r);s&&s.ranges&&s.equals(e)||r.push(e)}function N0(e,r,s,a){var d=r["spans_"+e.id],p=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(v){v.markedSpans&&((d||(d=r["spans_"+e.id]={}))[p]=v.markedSpans),++p})}function R0(e){if(!e)return null;for(var r,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?r||(r=e.slice(0,s)):r&&r.push(e[s]);return r?r.length?r:null:e}function F0(e,r){var s=r["spans_"+e.id];if(!s)return null;for(var a=[],d=0;d<r.text.length;++d)a.push(R0(s[d]));return a}function ma(e,r){var s=F0(e,r),a=Su(e,r);if(!s)return a;if(!a)return s;for(var d=0;d<s.length;++d){var p=s[d],v=a[d];if(p&&v)e:for(var m=0;m<v.length;++m){for(var y=v[m],C=0;C<p.length;++C)if(p[C].marker==y.marker)continue e;p.push(y)}else v&&(s[d]=v)}return s}function pn(e,r,s){for(var a=[],d=0;d<e.length;++d){var p=e[d];if(p.ranges){a.push(s?hn.prototype.deepCopy.call(p):p);continue}var v=p.changes,m=[];a.push({changes:m});for(var y=0;y<v.length;++y){var C=v[y],T=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),r)for(var I in C)(T=I.match(/^spans_(\d+)$/))&&ze(r,Number(T[1]))>-1&&(Qe(m)[I]=C[I],delete C[I])}}return a}function Ol(e,r,s,a){if(a){var d=e.anchor;if(s){var p=w(r,d)<0;p!=w(s,d)<0?(d=r,r=s):p!=w(r,s)<0&&(r=s)}return new Lt(d,r)}else return new Lt(s||r,r)}function El(e,r,s,a,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),br(e,new hn([Ol(e.sel.primary(),r,s,d)],0),a)}function bs(e,r,s){for(var a=[],d=e.cm&&(e.cm.display.shift||e.extend),p=0;p<e.sel.ranges.length;p++)a[p]=Ol(e.sel.ranges[p],r[p],null,d);var v=kr(e.cm,a,e.sel.primIndex);br(e,v,s)}function Yu(e,r,s,a){var d=e.sel.ranges.slice(0);d[r]=s,br(e,kr(e.cm,d,e.sel.primIndex),a)}function Xu(e,r,s,a){br(e,oo(r,s),a)}function Ir(e,r,s){var a={ranges:r.ranges,update:function(d){this.ranges=[];for(var p=0;p<d.length;p++)this.ranges[p]=new Lt(we(e,d[p].anchor),we(e,d[p].head))},origin:s&&s.origin};return qe(e,"beforeSelectionChange",e,a),e.cm&&qe(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=r.ranges?kr(e.cm,a.ranges,a.ranges.length-1):r}function kl(e,r,s){var a=e.history.done,d=Qe(a);d&&d.ranges?(a[a.length-1]=r,gn(e,r,s)):br(e,r,s)}function br(e,r,s){gn(e,r,s),No(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function gn(e,r,s){(gr(e,"beforeSelectionChange")||e.cm&&gr(e.cm,"beforeSelectionChange"))&&(r=Ir(e,r,s));var a=s&&s.bias||(w(r.primary().head,e.sel.primary().head)<0?-1:1);Il(e,lo(e,r,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&to(e.cm)}function Il(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,na(e.cm)),lr(e,"cursorActivity",e))}function ms(e){Il(e,lo(e,e.sel,null,!1))}function lo(e,r,s,a){for(var d,p=0;p<r.ranges.length;p++){var v=r.ranges[p],m=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[p],y=mr(e,v.anchor,m&&m.anchor,s,a),C=mr(e,v.head,m&&m.head,s,a);(d||y!=v.anchor||C!=v.head)&&(d||(d=r.ranges.slice(0,p)),d[p]=new Lt(y,C))}return d?kr(e.cm,d,r.primIndex):r}function Ro(e,r,s,a,d){var p=ke(e,r.line);if(p.markedSpans)for(var v=0;v<p.markedSpans.length;++v){var m=p.markedSpans[v],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,T="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=r.ch:m.from<r.ch))&&(m.to==null||(T?m.to>=r.ch:m.to>r.ch))){if(d&&(qe(y,"beforeCursorEnter"),y.explicitlyCleared))if(p.markedSpans){--v;continue}else break;if(!y.atomic)continue;if(s){var I=y.find(a<0?1:-1),W=void 0;if((a<0?T:C)&&(I=Al(e,I,-a,I&&I.line==r.line?p:null)),I&&I.line==r.line&&(W=w(I,s))&&(a<0?W<0:W>0))return Ro(e,I,r,a,d)}var F=y.find(a<0?-1:1);return(a<0?C:T)&&(F=Al(e,F,a,F.line==r.line?p:null)),F?Ro(e,F,r,a,d):null}}return r}function mr(e,r,s,a,d){var p=a||1,v=Ro(e,r,s,p,d)||!d&&Ro(e,r,s,p,!0)||Ro(e,r,s,-p,d)||!d&&Ro(e,r,s,-p,!0);return v||(e.cantEdit=!0,ae(e.first,0))}function Al(e,r,s,a){return s<0&&r.ch==0?r.line>e.first?we(e,ae(r.line-1)):null:s>0&&r.ch==(a||ke(e,r.line)).text.length?r.line<e.first+e.size-1?ae(r.line+1,0):null:new ae(r.line,r.ch+s)}function H0(e){e.setSelection(ae(e.firstLine(),0),ae(e.lastLine()),st)}function B0(e,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(d,p,v,m){d&&(a.from=we(e,d)),p&&(a.to=we(e,p)),v&&(a.text=v),m!==void 0&&(a.origin=m)}),qe(e,"beforeChange",e,a),e.cm&&qe(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 ya(e,r,s){if(e.cm){if(!e.cm.curOp)return qt(e.cm,ya)(e,r,s);if(e.cm.state.suppressEdits)return}if(!((gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"))&&(r=B0(e,r,!0),!r))){var a=Lu&&!s&&_u(e,r.from,r.to);if(a)for(var d=a.length-1;d>=0;--d)$l(e,{from:a[d].from,to:a[d].to,text:d?[""]:r.text,origin:r.origin});else $l(e,r)}}function $l(e,r){if(!(r.text.length==1&&r.text[0]==""&&w(r.from,r.to)==0)){var s=Vu(e,r);ai(e,r,s,e.cm?e.cm.curOp.id:NaN),wa(e,r,s,Su(e,r));var a=[];so(e,function(d,p){!p&&ze(a,d.history)==-1&&(U0(d.history,r),a.push(d.history)),wa(d,r,null,Su(d,r))})}}function Pl(e,r,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var d=e.history,p,v=e.sel,m=r=="undo"?d.done:d.undone,y=r=="undo"?d.undone:d.done,C=0;C<m.length&&(p=m[C],!(s?p.ranges&&!p.equals(e.sel):!p.ranges));C++);if(C!=m.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(p=m.pop(),p.ranges){if(Xr(p,y),s&&!p.equals(e.sel)){br(e,p,{clearRedo:!1});return}v=p}else if(a){m.push(p);return}else break;var T=[];Xr(v,y),y.push({changes:T,generation:d.generation}),d.generation=p.generation||++d.maxGeneration;for(var I=gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"),W=function(ne){var he=p.changes[ne];if(he.origin=r,I&&!B0(e,he,!1))return m.length=0,{};T.push(qu(e,he));var me=ne?Vu(e,he):Qe(m);wa(e,he,me,ma(e,he)),!ne&&e.cm&&e.cm.scrollIntoView({from:he.from,to:ao(he)});var xe=[];so(e,function(ye,Se){!Se&&ze(xe,ye.history)==-1&&(U0(ye.history,he),xe.push(ye.history)),wa(ye,he,null,ma(ye,he))})},F=p.changes.length-1;F>=0;--F){var j=W(F);if(j)return j.v}}}}function Ca(e,r){if(r!=0&&(e.first+=r,e.sel=new hn(bt(e.sel.ranges,function(d){return new Lt(ae(d.anchor.line+r,d.anchor.ch),ae(d.head.line+r,d.head.ch))}),e.sel.primIndex),e.cm)){ot(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)Ji(e.cm,a,"gutter")}}function wa(e,r,s,a){if(e.cm&&!e.cm.curOp)return qt(e.cm,wa)(e,r,s,a);if(r.to.line<e.first){Ca(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var d=r.text.length-1-(e.first-r.from.line);Ca(e,d),r={from:ae(e.first,0),to:ae(r.to.line+d,r.to.ch),text:[Qe(r.text)],origin:r.origin}}var p=e.lastLine();r.to.line>p&&(r={from:r.from,to:ae(p,ke(e,p).text.length),text:[r.text[0]],origin:r.origin}),r.removed=dn(e,r.from,r.to),s||(s=Vu(e,r)),e.cm?uf(e.cm,r,a):Ml(e,r,a),gn(e,s,st),e.cantEdit&&mr(e,ae(e.firstLine(),0))&&(e.cantEdit=!1)}}function uf(e,r,s){var a=e.doc,d=e.display,p=r.from,v=r.to,m=!1,y=p.line;e.options.lineWrapping||(y=zt(Qn(ke(a,p.line))),a.iter(y,v.line+1,function(F){if(F==d.maxLine)return m=!0,!0})),a.sel.contains(r.from,r.to)>-1&&na(e),Ml(a,r,s,_0(e)),e.options.lineWrapping||(a.iter(y,p.line+r.text.length,function(F){var j=ns(F);j>d.maxLineLength&&(d.maxLine=F,d.maxLineLength=j,d.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),I1(a,p.line),ii(e,400);var C=r.text.length-(v.line-p.line)-1;r.full?ot(e):p.line==v.line&&r.text.length==1&&!Gu(e.doc,r)?Ji(e,p.line,"text"):ot(e,p.line,v.line+1,C);var T=gr(e,"changes"),I=gr(e,"change");if(I||T){var W={from:p,to:v,text:r.text,removed:r.removed,origin:r.origin};I&&lr(e,"change",e,W),T&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(W)}e.display.selForContextMenu=null}function xa(e,r,s,a,d){var p;a||(a=s),w(a,s)<0&&(p=[a,s],s=p[0],a=p[1]),typeof r=="string"&&(r=e.splitLines(r)),ya(e,{from:s,to:a,text:r,origin:d})}function za(e,r,s,a){s<e.line?e.line+=a:r<e.line&&(e.line=r,e.ch=0)}function W0(e,r,s,a){for(var d=0;d<e.length;++d){var p=e[d],v=!0;if(p.ranges){p.copied||(p=e[d]=p.deepCopy(),p.copied=!0);for(var m=0;m<p.ranges.length;m++)za(p.ranges[m].anchor,r,s,a),za(p.ranges[m].head,r,s,a);continue}for(var y=0;y<p.changes.length;++y){var C=p.changes[y];if(s<C.from.line)C.from=ae(C.from.line+a,C.from.ch),C.to=ae(C.to.line+a,C.to.ch);else if(r<=C.to.line){v=!1;break}}v||(e.splice(0,d+1),d=0)}}function U0(e,r){var s=r.from.line,a=r.to.line,d=r.text.length-(a-s)-1;W0(e.done,s,a,d),W0(e.undone,s,a,d)}function Fo(e,r,s,a){var d=r,p=r;return typeof r=="number"?p=ke(e,gt(e,r)):d=zt(r),d==null?null:(a(p,d)&&e.cm&&Ji(e.cm,d,s),p)}function La(e){this.lines=e,this.parent=null;for(var r=0,s=0;s<e.length;++s)e[s].parent=this,r+=e[s].height;this.height=r}La.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var s=e,a=e+r;s<a;++s){var d=this.lines[s];this.height-=d.height,h0(d),lr(d,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(e,r,s){for(var a=e+r;e<a;++e)if(s(this.lines[e]))return!0}};function ys(e){this.children=e;for(var r=0,s=0,a=0;a<e.length;++a){var d=e[a];r+=d.chunkSize(),s+=d.height,d.parent=this}this.size=r,this.height=s,this.parent=null}ys.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],d=a.chunkSize();if(e<d){var p=Math.min(r,d-e),v=a.height;if(a.removeInner(e,p),this.height-=v-a.height,d==p&&(this.children.splice(s--,1),a.parent=null),(r-=p)==0)break;e=0}else e-=d}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof La))){var m=[];this.collapse(m),this.children=[new La(m)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<=p){if(d.insertInner(e,r,s),d.lines&&d.lines.length>50){for(var v=d.lines.length%25+25,m=v;m<d.lines.length;){var y=new La(d.lines.slice(m,m+=25));d.height-=y.height,this.children.splice(++a,0,y),y.parent=this}d.lines=d.lines.slice(0,v),this.maybeSpill()}break}e-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),s=new ys(r);if(e.parent){e.size-=s.size,e.height-=s.height;var d=ze(e.parent.children,e);e.parent.children.splice(d+1,0,s)}else{var a=new ys(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,r,s){for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<p){var v=Math.min(r,p-e);if(d.iterN(e,v,s))return!0;if((r-=v)==0)break;e=0}else e-=p}}};var Cs=function(e,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=r};Cs.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,s=this.line,a=zt(s);if(!(a==null||!r)){for(var d=0;d<r.length;++d)r[d]==this&&r.splice(d--,1);r.length||(s.widgets=null);var p=To(this);tn(s,Math.max(0,s.height-p)),e&&(Or(e,function(){V0(e,s,-p),Ji(e,a,"widget")}),lr(e,"lineWidgetCleared",e,this,a))}},Cs.prototype.changed=function(){var e=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var d=To(this)-r;d&&(Zt(this.doc,a)||tn(a,a.height+d),s&&Or(s,function(){s.curOp.forceUpdate=!0,V0(s,a,d),lr(s,"lineWidgetChanged",s,e,zt(a))}))},Dn(Cs);function V0(e,r,s){jr(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ga(e,s)}function Z0(e,r,s,a){var d=new Cs(e,s,a),p=e.cm;return p&&d.noHScroll&&(p.display.alignWidgets=!0),Fo(e,r,"widget",function(v){var m=v.widgets||(v.widgets=[]);if(d.insertAt==null?m.push(d):m.splice(Math.min(m.length,Math.max(0,d.insertAt)),0,d),d.line=v,p&&!Zt(e,v)){var y=jr(v)<e.scrollTop;tn(v,v.height+To(d)),y&&ga(p,d.height),p.curOp.forceUpdate=!0}return!0}),p&&lr(p,"lineWidgetAdded",p,d,typeof r=="number"?r:zt(r)),d}var Dl=0,uo=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++Dl};uo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&Un(e),gr(this,"clear")){var s=this.find();s&&lr(this,"clear",s.from,s.to)}for(var a=null,d=null,p=0;p<this.lines.length;++p){var v=this.lines[p],m=ts(v.markedSpans,this);e&&!this.collapsed?Ji(e,zt(v),"text"):e&&(m.to!=null&&(d=zt(v)),m.from!=null&&(a=zt(v))),v.markedSpans=A1(v.markedSpans,m),m.from==null&&this.collapsed&&!Zt(this.doc,v)&&e&&tn(v,Yi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Qn(this.lines[y]),T=ns(C);T>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=T,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&ot(e,a,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ms(e.doc)),e&&lr(e,"markerCleared",e,this,a,d),r&&ni(e),this.parent&&this.parent.clear()}},uo.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,d=0;d<this.lines.length;++d){var p=this.lines[d],v=ts(p.markedSpans,this);if(v.from!=null&&(s=ae(r?p:zt(p),v.from),e==-1))return s;if(v.to!=null&&(a=ae(r?p:zt(p),v.to),e==1))return a}return s&&{from:s,to:a}},uo.prototype.changed=function(){var e=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||Or(a,function(){var d=r.line,p=zt(r.line),v=Nu(a,p);if(v&&(x0(v),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Zt(s.doc,d)&&s.height!=null){var m=s.height;s.height=null;var y=To(s)-m;y&&tn(d,d.height+y)}lr(a,"markerChanged",a,e)})},uo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ze(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},uo.prototype.detachLine=function(e){if(this.lines.splice(ze(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Dn(uo);function co(e,r,s,a,d){if(a&&a.shared)return G0(e,r,s,a,d);if(e.cm&&!e.cm.curOp)return qt(e.cm,co)(e,r,s,a,d);var p=new uo(e,d),v=w(r,s);if(a&&Mt(a,p,!1),v>0||v==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=E("span",[p.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(c0(e,r.line,r,s,p)||r.line!=s.line&&c0(e,s.line,r,s,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");o0()}p.addToHistory&&ai(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var m=r.line,y=e.cm,C;if(e.iter(m,s.line+1,function(I){y&&p.collapsed&&!y.options.lineWrapping&&Qn(I)==y.display.maxLine&&(C=!0),p.collapsed&&m!=r.line&&tn(I,0),a0(I,new ll(p,m==r.line?r.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),p.collapsed&&e.iter(r.line,s.line+1,function(I){Zt(e,I)&&tn(I,0)}),p.clearOnEnter&&We(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(i0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),p.collapsed&&(p.id=++Dl,p.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),p.collapsed)ot(y,r.line,s.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var T=r.line;T<=s.line;T++)Ji(y,T,"text");p.atomic&&ms(y.doc),lr(y,"markerAdded",y,p)}return p}var Sa=function(e,r){this.markers=e,this.primary=r;for(var s=0;s<e.length;++s)e[s].parent=this};Sa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();lr(this,"clear")}},Sa.prototype.find=function(e,r){return this.primary.find(e,r)},Dn(Sa);function G0(e,r,s,a,d){a=Mt(a),a.shared=!1;var p=[co(e,r,s,a,d)],v=p[0],m=a.widgetNode;return so(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),p.push(co(y,we(y,r),we(y,s),a,d));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;v=Qe(p)}),new Sa(p,v)}function Ju(e){return e.findMarks(ae(e.first,0),e.clipPos(ae(e.lastLine())),function(r){return r.parent})}function Nl(e,r){for(var s=0;s<r.length;s++){var a=r[s],d=a.find(),p=e.clipPos(d.from),v=e.clipPos(d.to);if(w(p,v)){var m=co(e,p,v,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function cf(e){for(var r=function(a){var d=e[a],p=[d.primary.doc];so(d.primary.doc,function(y){return p.push(y)});for(var v=0;v<d.markers.length;v++){var m=d.markers[v];ze(p,m.doc)==-1&&(m.parent=null,d.markers.splice(v--,1))}},s=0;s<e.length;s++)r(s)}var q0=0,Nr=function(e,r,s,a,d){if(!(this instanceof Nr))return new Nr(e,r,s,a,d);s==null&&(s=0),ys.call(this,[new La([new Mr("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var p=ae(s,0);this.sel=oo(p),this.history=new Do(null),this.id=++q0,this.modeOption=r,this.lineSep=a,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Ml(this,{from:p,to:p,text:e}),br(this,oo(p),st)};Nr.prototype=en(ys.prototype,{constructor:Nr,iter:function(e,r,s){s?this.iterN(e-this.first,r-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(e-this.first,r,s)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=Qa(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:_(function(e){var r=ae(this.first,0),s=this.first+this.size-1;ya(this,{from:r,to:ae(s,ke(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&cs(this.cm,0,0),br(this,oo(r),st)}),replaceRange:function(e,r,s,a){r=we(this,r),s=s?we(this,s):r,xa(this,e,r,s,a)},getRange:function(e,r,s){var a=dn(this,we(this,e),we(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(Vi(this,e))return ke(this,e)},getLineNumber:function(e){return zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ke(this,e)),Qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return we(this,e)},getCursor:function(e){var r=this.sel.primary(),s;return e==null||e=="head"?s=r.head:e=="anchor"?s=r.anchor:e=="end"||e=="to"||e===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:_(function(e,r,s){Xu(this,we(this,typeof e=="number"?ae(e,r||0):e),null,s)}),setSelection:_(function(e,r,s){Xu(this,we(this,e),we(this,r||e),s)}),extendSelection:_(function(e,r,s){El(this,we(this,e),r&&we(this,r),s)}),extendSelections:_(function(e,r){bs(this,rn(this,e),r)}),extendSelectionsBy:_(function(e,r){var s=bt(this.sel.ranges,e);bs(this,rn(this,s),r)}),setSelections:_(function(e,r,s){if(e.length){for(var a=[],d=0;d<e.length;d++)a[d]=new Lt(we(this,e[d].anchor),we(this,e[d].head||e[d].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),br(this,kr(this.cm,a,r),s)}}),addSelection:_(function(e,r,s){var a=this.sel.ranges.slice(0);a.push(new Lt(we(this,e),we(this,r||e))),br(this,kr(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var d=dn(this,r[a].from(),r[a].to());s=s?s.concat(d):d}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var d=dn(this,s[a].from(),s[a].to());e!==!1&&(d=d.join(e||this.lineSeparator())),r[a]=d}return r},replaceSelection:function(e,r,s){for(var a=[],d=0;d<this.sel.ranges.length;d++)a[d]=e;this.replaceSelections(a,r,s||"+input")},replaceSelections:_(function(e,r,s){for(var a=[],d=this.sel,p=0;p<d.ranges.length;p++){var v=d.ranges[p];a[p]={from:v.from(),to:v.to(),text:this.splitLines(e[p]),origin:s}}for(var m=r&&r!="end"&&sf(this,a,r),y=a.length-1;y>=0;y--)ya(this,a[y]);m?kl(this,m):this.cm&&to(this.cm)}),undo:_(function(){Pl(this,"undo")}),redo:_(function(){Pl(this,"redo")}),undoSelection:_(function(){Pl(this,"undo",!0)}),redoSelection:_(function(){Pl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++r;for(var d=0;d<e.undone.length;d++)e.undone[d].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var e=this;this.history=new Do(this.history),so(this,function(r){return r.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:pn(this.history.done),undone:pn(this.history.undone)}},setHistory:function(e){var r=this.history=new Do(this.history);r.done=pn(e.done.slice(0),null,!0),r.undone=pn(e.undone.slice(0),null,!0)},setGutterMarker:_(function(e,r,s){return Fo(this,e,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[r]=s,!s&&se(d)&&(a.gutterMarkers=null),!0})}),clearGutter:_(function(e){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Fo(r,s,"gutter",function(){return s.gutterMarkers[e]=null,se(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!Vi(this,e)||(r=e,e=ke(this,e),!e))return null}else if(r=zt(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:_(function(e,r,s){return Fo(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[d])a[d]=s;else{if(Ce(s).test(a[d]))return!1;a[d]+=" "+s}return!0})}),removeLineClass:_(function(e,r,s){return Fo(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",p=a[d];if(p)if(s==null)a[d]=null;else{var v=p.match(Ce(s));if(!v)return!1;var m=v.index+v[0].length;a[d]=p.slice(0,v.index)+(!v.index||m==p.length?"":" ")+p.slice(m)||null}else return!1;return!0})}),addLineWidget:_(function(e,r,s){return Z0(this,e,r,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,s){return co(this,we(this,e),we(this,r),s,s&&s.type||"range")},setBookmark:function(e,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=we(this,e),co(this,e,e,s,"bookmark")},findMarksAt:function(e){e=we(this,e);var r=[],s=ke(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var d=s[a];(d.from==null||d.from<=e.ch)&&(d.to==null||d.to>=e.ch)&&r.push(d.marker.parent||d.marker)}return r},findMarks:function(e,r,s){e=we(this,e),r=we(this,r);var a=[],d=e.line;return this.iter(e.line,r.line+1,function(p){var v=p.markedSpans;if(v)for(var m=0;m<v.length;m++){var y=v[m];!(y.to!=null&&d==e.line&&e.ch>=y.to||y.from==null&&d!=e.line||y.from!=null&&d==r.line&&y.from>=r.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++d}),a},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.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 r,s=this.first,a=this.lineSeparator().length;return this.iter(function(d){var p=d.text.length+a;if(p>e)return r=e,!0;e-=p,++s}),we(this,ae(s,r))},indexFromPos:function(e){e=we(this,e);var r=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){r+=a.text.length+s}),r},copy:function(e){var r=new Nr(Qa(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,s=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Nr(Qa(this,r,s),e.mode||this.modeOption,r,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}],Nl(a,Ju(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),cf(Ju(this));break}}if(e.history==this.history){var a=[e.id];so(e,function(d){return a.push(d.id)},!0),e.history=new Do(null),e.history.done=pn(this.history.done,a),e.history.undone=pn(this.history.undone,a)}},iterLinkedDocs:function(e){so(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):zo(e)},lineSeparator:function(){return this.lineSep||`
|
|
2856
|
-
`},setDirection:_(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&vs(this.cm))})}),Nr.prototype.eachLine=Nr.prototype.iter;var j0=0;function K0(e){var r=this;if(ec(r),!(Jt(r,e)||Ci(r.display,e))){vr(e),z&&(j0=+new Date);var s=ti(r,e,!0),a=e.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var d=a.length,p=Array(d),v=0,m=function(){++v==d&&qt(r,function(){s=we(r.doc,s);var F={from:s,to:s,text:r.doc.splitLines(p.filter(function(j){return j!=null}).join(r.doc.lineSeparator())),origin:"paste"};ya(r.doc,F),kl(r.doc,oo(we(r.doc,s),we(r.doc,ao(F))))})()},y=function(F,j){if(r.options.allowDropFileTypes&&ze(r.options.allowDropFileTypes,F.type)==-1){m();return}var ne=new FileReader;ne.onerror=function(){return m()},ne.onload=function(){var he=ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){m();return}p[j]=he,m()},ne.readAsText(F)},C=0;C<a.length;C++)y(a[C],C);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var T=e.dataTransfer.getData("Text");if(T){var I;if(r.state.draggingText&&!r.state.draggingText.copy&&(I=r.listSelections()),gn(r.doc,oo(s,s)),I)for(var W=0;W<I.length;++W)xa(r.doc,"",I[W].anchor,I[W].head,"drag");r.replaceSelection(T,"around","paste"),r.display.input.focus()}}catch{}}}}function df(e,r){if(z&&(!e.state.draggingText||+new Date-j0<100)){wo(r);return}if(!(Jt(e,r)||Ci(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!J)){var s=O("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",R&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),R&&s.parentNode.removeChild(s)}}function Qu(e,r){var s=ti(e,r);if(s){var a=document.createDocumentFragment();xi(e,s,a),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),$(e.display.dragCursor,a)}}function ec(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Rl(e){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var d=r[a].CodeMirror;d&&s.push(d)}s.length&&s[0].operation(function(){for(var p=0;p<s.length;p++)e(s[p])})}}var Y0=!1;function tc(){Y0||(dt(),Y0=!0)}function dt(){var e;We(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Rl(ff)},100))}),We(window,"blur",function(){return Rl(Io)})}function ff(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var fo={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"},zi=0;zi<10;zi++)fo[zi+48]=fo[zi+96]=String(zi);for(var ws=65;ws<=90;ws++)fo[ws]=String.fromCharCode(ws);for(var xs=1;xs<=12;xs++)fo[xs+111]=fo[xs+63235]="F"+xs;var Li={};Li.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"},Li.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"},Li.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"},Li.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"]},Li.default=ve?Li.macDefault:Li.pcDefault;function Ln(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var s,a,d,p,v=0;v<r.length-1;v++){var m=r[v];if(/^(cmd|meta|m)$/i.test(m))p=!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))d=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),p&&(e="Cmd-"+e),d&&(e="Shift-"+e),e}function hf(e){var r={};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 d=bt(s.split(" "),Ln),p=0;p<d.length;p++){var v=void 0,m=void 0;p==d.length-1?(m=d.join(" "),v=a):(m=d.slice(0,p+1).join(" "),v="...");var y=r[m];if(!y)r[m]=v;else if(y!=v)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in r)e[C]=r[C];return e}function Si(e,r,s,a){r=Rr(r);var d=r.call?r.call(e,a):r[e];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&s(d))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Si(e,r.fallthrough,s,a);for(var p=0;p<r.fallthrough.length;p++){var v=Si(e,r.fallthrough[p],s,a);if(v)return v}}}function Fl(e){var r=typeof e=="string"?e:fo[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function rc(e,r,s){var a=e;return r.altKey&&a!="Alt"&&(e="Alt-"+e),(je?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(je?r.ctrlKey:r.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&r.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function nc(e,r){if(R&&e.keyCode==34&&e.char)return!1;var s=fo[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),rc(s,e,r))}function Rr(e){return typeof e=="string"?Li[e]:e}function vn(e,r){for(var s=e.doc.sel.ranges,a=[],d=0;d<s.length;d++){for(var p=r(s[d]);a.length&&w(p.from,Qe(a).to)<=0;){var v=a.pop();if(w(v.from,p.from)<0){p.from=v.from;break}}a.push(p)}Or(e,function(){for(var m=a.length-1;m>=0;m--)xa(e.doc,"",a[m].from,a[m].to,"+delete");to(e)})}function zs(e,r,s){var a=sr(e.text,r+s,s);return a<0||a>e.text.length?null:a}function Hl(e,r,s){var a=zs(e,r.ch,s);return a==null?null:new ae(r.line,a,s<0?"after":"before")}function _a(e,r,s,a,d){if(e){r.doc.direction=="rtl"&&(d=-d);var p=Dr(s,r.doc.direction);if(p){var v=d<0?Qe(p):p[0],m=d<0==(v.level==1),y=m?"after":"before",C;if(v.level>0||r.doc.direction=="rtl"){var T=Bn(r,s);C=d<0?s.text.length-1:0;var I=ei(r,T,C).top;C=Lr(function(W){return ei(r,T,W).top==I},d<0==(v.level==1)?v.from:v.to-1,C),y=="before"&&(C=zs(s,C,1))}else C=d<0?v.to:v.from;return new ae(a,C,y)}}return new ae(a,d<0?s.text.length:0,d<0?"before":"after")}function X0(e,r,s,a){var d=Dr(r,e.doc.direction);if(!d)return Hl(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var p=Ut(d,s.ch,s.sticky),v=d[p];if(e.doc.direction=="ltr"&&v.level%2==0&&(a>0?v.to>s.ch:v.from<s.ch))return Hl(r,s,a);var m=function(me,xe){return zs(r,me instanceof ae?me.ch:me,xe)},y,C=function(me){return e.options.lineWrapping?(y=y||Bn(e,r),G(e,r,y,me)):{begin:0,end:r.text.length}},T=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||v.level==1){var I=v.level==1==a<0,W=m(s,I?1:-1);if(W!=null&&(I?W<=v.to&&W<=T.end:W>=v.from&&W>=T.begin)){var F=I?"before":"after";return new ae(s.line,W,F)}}var j=function(me,xe,ye){for(var Se=function(It,rr){return rr?new ae(s.line,m(It,1),"before"):new ae(s.line,It,"after")};me>=0&&me<d.length;me+=xe){var Fe=d[me],Pe=xe>0==(Fe.level!=1),ut=Pe?ye.begin:m(ye.end,-1);if(Fe.from<=ut&&ut<Fe.to||(ut=Pe?Fe.from:m(Fe.to,-1),ye.begin<=ut&&ut<ye.end))return Se(ut,Pe)}},ne=j(p+a,a,T);if(ne)return ne;var he=a>0?T.end:m(T.begin,-1);return he!=null&&!(a>0&&he==r.text.length)&&(ne=j(a>0?0:d.length-1,a,C(he)),ne)?ne:null}var Ho={selectAll:H0,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),st)},killLine:function(e){return vn(e,function(r){if(r.empty()){var s=ke(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<e.lastLine()?{from:r.head,to:ae(r.head.line+1,0)}:{from:r.head,to:ae(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:we(e.doc,ae(r.to().line+1,0))}})},delLineLeft:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.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(ae(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ae(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return ic(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return Bl(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return oc(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},Ze)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},Ze)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?Bl(e,r.head):a},Ze)},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 r=[],s=e.listSelections(),a=e.options.tabSize,d=0;d<s.length;d++){var p=s[d].from(),v=xt(e.getLine(p.line),p.ch,a);r.push(tr(a-v%a))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Or(e,function(){for(var r=e.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var d=r[a].head,p=ke(e.doc,d.line).text;if(p){if(d.ch==p.length&&(d=new ae(d.line,d.ch-1)),d.ch>0)d=new ae(d.line,d.ch+1),e.replaceRange(p.charAt(d.ch-1)+p.charAt(d.ch-2),ae(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var v=ke(e.doc,d.line-1).text;v&&(d=new ae(d.line,1),e.replaceRange(p.charAt(0)+e.doc.lineSeparator()+v.charAt(v.length-1),ae(d.line-1,v.length-1),d,"+transpose"))}}s.push(new Lt(d,d))}e.setSelections(s)})},newlineAndIndent:function(e){return Or(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var a=0;a<r.length;a++)e.indentLine(r[a].from().line,null,!0);to(e)})},openLine:function(e){return e.replaceSelection(`
|
|
2857
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ic(e,r){var s=ke(e.doc,r),a=Qn(s);return a!=s&&(r=zt(a)),_a(!0,e,a,r,1)}function oc(e,r){var s=ke(e.doc,r),a=N1(s);return a!=s&&(r=zt(a)),_a(!0,e,s,r,-1)}function Bl(e,r){var s=ic(e,r.line),a=ke(e.doc,s.line),d=Dr(a,e.doc.direction);if(!d||d[0].level==0){var p=Math.max(s.ch,a.text.search(/\S/)),v=r.line==s.line&&r.ch<=p&&r.ch;return ae(s.line,v?0:p,s.sticky)}return s}function Vn(e,r,s){if(typeof r=="string"&&(r=Ho[r],!r))return!1;e.display.input.ensurePolled();var a=e.display.shift,d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),d=r(e)!=Ge}finally{e.display.shift=a,e.state.suppressEdits=!1}return d}function pf(e,r,s){for(var a=0;a<e.state.keyMaps.length;a++){var d=Si(r,e.state.keyMaps[a],s,e);if(d)return d}return e.options.extraKeys&&Si(r,e.options.extraKeys,s,e)||Si(r,e.options.keyMap,s,e)}var ho=new rt;function Ma(e,r,s,a){var d=e.state.keySeq;if(d){if(Fl(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:ho.set(50,function(){e.state.keySeq==d&&(e.state.keySeq=null,e.display.input.reset())}),ac(e,d+" "+r,s,a))return!0}return ac(e,r,s,a)}function ac(e,r,s,a){var d=pf(e,r,a);return d=="multi"&&(e.state.keySeq=r),d=="handled"&&lr(e,"keyHandled",e,r,s),(d=="handled"||d=="multi")&&(vr(s),fa(e)),!!d}function Wl(e,r){var s=nc(r,!0);return s?r.shiftKey&&!e.state.keySeq?Ma(e,"Shift-"+s,r,function(a){return Vn(e,a,!0)})||Ma(e,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Vn(e,a)}):Ma(e,s,r,function(a){return Vn(e,a)}):!1}function gf(e,r,s){return Ma(e,"'"+s+"'",r,function(a){return Vn(e,a,!0)})}var sc=null;function J0(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=Ae(),!Jt(r,e))){z&&S<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var a=Wl(r,e);R&&(sc=a?s:null,!a&&s==88&&!nl&&(ve?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),c&&!ve&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Q0(r)}}function Q0(e){var r=e.display.lineDiv;et(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(le(r,"CodeMirror-crosshair"),Sr(document,"keyup",s),Sr(document,"mouseover",s))}We(document,"keyup",s),We(document,"mouseover",s)}function lc(e){e.keyCode==16&&(this.doc.sel.shift=!1),Jt(this,e)}function ed(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(Ci(r.display,e)||Jt(r,e)||e.ctrlKey&&!e.altKey||ve&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(R&&s==sc){sc=null,vr(e);return}if(!(R&&(!e.which||e.which<10)&&Wl(r,e))){var d=String.fromCharCode(a==null?s:a);d!="\b"&&(gf(r,e,d)||r.display.input.onKeyPress(e))}}}var td=400,Ul=function(e,r,s){this.time=e,this.pos=r,this.button=s};Ul.prototype.compare=function(e,r,s){return this.time+td>e&&w(r,this.pos)==0&&s==this.button};var yr,an;function vf(e,r){var s=+new Date;return an&&an.compare(s,e,r)?(yr=an=null,"triple"):yr&&yr.compare(s,e,r)?(an=new Ul(s,e,r),yr=null,"double"):(yr=new Ul(s,e,r),an=null,"single")}function rd(e){var r=this,s=r.display;if(!(Jt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,Ci(s,e)){k||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!uc(r,e)){var a=ti(r,e),d=ja(e),p=a?vf(a,d):"single";window.focus(),d==1&&r.state.selectingText&&r.state.selectingText(e),!(a&&Vl(r,d,a,p,e))&&(d==1?a?nd(r,a,p,e):Wi(e)==s.scroller&&vr(e):d==2?(a&&El(r.doc,a),setTimeout(function(){return s.input.focus()},20)):d==3&&(Ye?r.display.input.onContextMenu(e):xl(r)))}}}function Vl(e,r,s,a,d){var p="Click";return a=="double"?p="Double"+p:a=="triple"&&(p="Triple"+p),p=(r==1?"Left":r==2?"Middle":"Right")+p,Ma(e,rc(p,d),d,function(v){if(typeof v=="string"&&(v=Ho[v]),!v)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=v(e,s)!=Ge}finally{e.state.suppressEdits=!1}return m})}function Ta(e,r,s){var a=e.getOption("configureMouse"),d=a?a(e,r,s):{};if(d.unit==null){var p=Oe?s.shiftKey&&s.metaKey:s.altKey;d.unit=p?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||s.shiftKey),d.addNew==null&&(d.addNew=ve?s.metaKey:s.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(ve?s.altKey:s.ctrlKey)),d}function nd(e,r,s,a){z?setTimeout(or(Ru,e),0):e.curOp.focus=Ae();var d=Ta(e,s,a),p=e.doc.sel,v;e.options.dragDrop&&Ka&&!e.isReadOnly()&&s=="single"&&(v=p.contains(r))>-1&&(w((v=p.ranges[v]).from(),r)<0||r.xRel>0)&&(w(v.to(),r)>0||r.xRel<0)?id(e,a,r,d):ad(e,a,r,d)}function id(e,r,s,a){var d=e.display,p=!1,v=qt(e,function(C){k&&(d.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:xl(e)),Sr(d.wrapper.ownerDocument,"mouseup",v),Sr(d.wrapper.ownerDocument,"mousemove",m),Sr(d.scroller,"dragstart",y),Sr(d.scroller,"drop",v),p||(vr(C),a.addNew||El(e.doc,s,null,null,a.extend),k&&!J||z&&S==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),m=function(C){p=p||Math.abs(r.clientX-C.clientX)+Math.abs(r.clientY-C.clientY)>=10},y=function(){return p=!0};k&&(d.scroller.draggable=!0),e.state.draggingText=v,v.copy=!a.moveOnDrag,We(d.wrapper.ownerDocument,"mouseup",v),We(d.wrapper.ownerDocument,"mousemove",m),We(d.scroller,"dragstart",y),We(d.scroller,"drop",v),e.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function od(e,r,s){if(s=="char")return new Lt(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new Lt(ae(r.line,0),we(e.doc,ae(r.line+1,0)));var a=s(e,r);return new Lt(a.from,a.to)}function ad(e,r,s,a){z&&xl(e);var d=e.display,p=e.doc;vr(r);var v,m,y=p.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=p.sel.contains(s),m>-1?v=C[m]:v=new Lt(s,s)):(v=p.sel.primary(),m=p.sel.primIndex),a.unit=="rectangle")a.addNew||(v=new Lt(s,s)),s=ti(e,r,!0,!0),m=-1;else{var T=od(e,s,a.unit);a.extend?v=Ol(v,T.anchor,T.head,a.extend):v=T}a.addNew?m==-1?(m=C.length,br(p,kr(e,C.concat([v]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(br(p,kr(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=p.sel):Yu(p,m,v,lt):(m=0,br(p,new hn([v],0),lt),y=p.sel);var I=s;function W(ye){if(w(I,ye)!=0)if(I=ye,a.unit=="rectangle"){for(var Se=[],Fe=e.options.tabSize,Pe=xt(ke(p,s.line).text,s.ch,Fe),ut=xt(ke(p,ye.line).text,ye.ch,Fe),It=Math.min(Pe,ut),rr=Math.max(Pe,ut),Nt=Math.min(s.line,ye.line),Hr=Math.min(e.lastLine(),Math.max(s.line,ye.line));Nt<=Hr;Nt++){var Br=ke(p,Nt).text,Xt=Vt(Br,It,Fe);It==rr?Se.push(new Lt(ae(Nt,Xt),ae(Nt,Xt))):Br.length>Xt&&Se.push(new Lt(ae(Nt,Xt),ae(Nt,Vt(Br,rr,Fe))))}Se.length||Se.push(new Lt(s,s)),br(p,kr(e,y.ranges.slice(0,m).concat(Se),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ye)}else{var Cr=v,cr=od(e,ye,a.unit),$t=Cr.anchor,Ht;w(cr.anchor,$t)>0?(Ht=cr.head,$t=Ke(Cr.from(),cr.anchor)):(Ht=cr.anchor,$t=ce(Cr.to(),cr.head));var jt=y.ranges.slice(0);jt[m]=Oa(e,new Lt(we(p,$t),Ht)),br(p,kr(e,jt,m),lt)}}var F=d.wrapper.getBoundingClientRect(),j=0;function ne(ye){var Se=++j,Fe=ti(e,ye,!0,a.unit=="rectangle");if(Fe)if(w(Fe,I)!=0){e.curOp.focus=Ae(),W(Fe);var Pe=Ao(d,p);(Fe.line>=Pe.to||Fe.line<Pe.from)&&setTimeout(qt(e,function(){j==Se&&ne(ye)}),150)}else{var ut=ye.clientY<F.top?-20:ye.clientY>F.bottom?20:0;ut&&setTimeout(qt(e,function(){j==Se&&(d.scroller.scrollTop+=ut,ne(ye))}),50)}}function he(ye){e.state.selectingText=!1,j=1/0,ye&&(vr(ye),d.input.focus()),Sr(d.wrapper.ownerDocument,"mousemove",me),Sr(d.wrapper.ownerDocument,"mouseup",xe),p.history.lastSelOrigin=null}var me=qt(e,function(ye){ye.buttons===0||!ja(ye)?he(ye):ne(ye)}),xe=qt(e,he);e.state.selectingText=xe,We(d.wrapper.ownerDocument,"mousemove",me),We(d.wrapper.ownerDocument,"mouseup",xe)}function Oa(e,r){var s=r.anchor,a=r.head,d=ke(e.doc,s.line);if(w(s,a)==0&&s.sticky==a.sticky)return r;var p=Dr(d);if(!p)return r;var v=Ut(p,s.ch,s.sticky),m=p[v];if(m.from!=s.ch&&m.to!=s.ch)return r;var y=v+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==p.length)return r;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var T=Ut(p,a.ch,a.sticky),I=T-v||(a.ch-s.ch)*(m.level==1?-1:1);T==y-1||T==y?C=I<0:C=I>0}var W=p[y+(C?-1:0)],F=C==(W.level==1),j=F?W.from:W.to,ne=F?"after":"before";return s.ch==j&&s.sticky==ne?r:new Lt(new ae(s.line,j,ne),a)}function Ea(e,r,s,a){var d,p;if(r.touches)d=r.touches[0].clientX,p=r.touches[0].clientY;else try{d=r.clientX,p=r.clientY}catch{return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&vr(r);var v=e.display,m=v.lineDiv.getBoundingClientRect();if(p>m.bottom||!gr(e,s))return ln(r);p-=m.top-v.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=v.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=d){var T=Fn(e.doc,p),I=e.display.gutterSpecs[y];return qe(e,s,e,T,I.className,r),ln(r)}}}function uc(e,r){return Ea(e,r,"gutterClick",!0)}function cc(e,r){Ci(e.display,r)||sd(e,r)||Jt(e,r,"contextmenu")||Ye||e.display.input.onContextMenu(r)}function sd(e,r){return gr(e,"gutterContextMenu")?Ea(e,r,"gutterContextMenu",!1):!1}function Ls(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ss(e)}var Bo={toString:function(){return"CodeMirror.Init"}},Ss={},ka={};function Zl(e){var r=e.optionHandlers;function s(a,d,p,v){e.defaults[a]=d,p&&(r[a]=v?function(m,y,C){C!=Bo&&p(m,y,C)}:p)}e.defineOption=s,e.Init=Bo,s("value","",function(a,d){return a.setValue(d)},!0),s("mode",null,function(a,d){a.doc.modeOption=d,Zu(a)},!0),s("indentUnit",2,Zu,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){gs(a),ss(a),ot(a)},!0),s("lineSeparator",null,function(a,d){if(a.doc.lineSep=d,!!d){var p=[],v=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var T=y.text.indexOf(d,C);if(T==-1)break;C=T+d.length,p.push(ae(v,T))}v++});for(var m=p.length-1;m>=0;m--)xa(a.doc,d,p[m],ae(p[m].line,p[m].ch+d.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,d,p){a.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),p!=Bo&&a.refresh()}),s("specialCharPlaceholder",fn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,d){return a.getInputField().spellcheck=d},!0),s("autocorrect",!1,function(a,d){return a.getInputField().autocorrect=d},!0),s("autocapitalize",!1,function(a,d){return a.getInputField().autocapitalize=d},!0),s("rtlMoveVisually",!$e),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Ls(a),ps(a)},!0),s("keyMap","default",function(a,d,p){var v=Rr(d),m=p!=Bo&&Rr(p);m&&m.detach&&m.detach(a,v),v.attach&&v.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,ld,!0),s("gutters",[],function(a,d){a.display.gutterSpecs=Uu(d,a.options.lineNumbers),ps(a)},!0),s("fixedGutter",!0,function(a,d){a.display.gutters.style.left=d?da(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return no(a)},!0),s("scrollbarStyle","native",function(a){Po(a),no(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,d){a.display.gutterSpecs=Uu(a.options.gutters,d),ps(a)},!0),s("firstLineNumber",1,ps,!0),s("lineNumberFormatter",function(a){return a},ps,!0),s("showCursorWhenSelecting",!1,ls,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,d){d=="nocursor"&&(Io(a),a.display.input.blur()),a.display.input.readOnlyChanged(d)}),s("screenReaderLabel",null,function(a,d){d=d===""?null:d,a.display.input.screenReaderLabelChanged(d)}),s("disableInput",!1,function(a,d){d||a.display.input.reset()},!0),s("dragDrop",!0,bf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,ls,!0),s("singleCursorHeightPerLine",!0,ls,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,gs,!0),s("addModeClass",!1,gs,!0),s("pollInterval",100),s("undoDepth",200,function(a,d){return a.doc.history.undoDepth=d}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,gs,!0),s("moveInputWithCursor",!0,function(a,d){d||a.display.input.resetPosition()}),s("tabindex",null,function(a,d){return a.display.input.getField().tabIndex=d||""}),s("autofocus",null),s("direction","ltr",function(a,d){return a.doc.setDirection(d)},!0),s("phrases",null)}function bf(e,r,s){var a=s&&s!=Bo;if(!r!=!a){var d=e.display.dragFunctions,p=r?We:Sr;p(e.display.scroller,"dragstart",d.start),p(e.display.scroller,"dragenter",d.enter),p(e.display.scroller,"dragover",d.over),p(e.display.scroller,"dragleave",d.leave),p(e.display.scroller,"drop",d.drop)}}function ld(e){e.options.lineWrapping?(et(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(le(e.display.wrapper,"CodeMirror-wrap"),is(e)),Xi(e),ot(e),ss(e),setTimeout(function(){return no(e)},100)}function Dt(e,r){var s=this;if(!(this instanceof Dt))return new Dt(e,r);this.options=r=r?Mt(r):{},Mt(Ss,r,!1);var a=r.value;typeof a=="string"?a=new Nr(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var d=new Dt.inputStyles[r.inputStyle](this),p=this.display=new of(e,a,d,r);p.wrapper.CodeMirror=this,Ls(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Po(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 rt,keySeq:null,specialChars:null},r.autofocus&&!be&&p.input.focus(),z&&S<11&&setTimeout(function(){return s.display.input.reset(!0)},20),ud(this),tc(),Un(this),this.curOp.forceUpdate=!0,D0(this,a),r.autofocus&&!be||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&ha(s)},20):Io(this);for(var v in ka)ka.hasOwnProperty(v)&&ka[v](this,r[v],Bo);oi(this),r.finishInit&&r.finishInit(this);for(var m=0;m<_s.length;++m)_s[m](this);ni(this),k&&r.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}Dt.defaults=Ss,Dt.optionHandlers=ka;function ud(e){var r=e.display;We(r.scroller,"mousedown",qt(e,rd)),z&&S<11?We(r.scroller,"dblclick",qt(e,function(y){if(!Jt(e,y)){var C=ti(e,y);if(!(!C||uc(e,y)||Ci(e.display,y))){vr(y);var T=e.findWordAt(C);El(e.doc,T.anchor,T.head)}}})):We(r.scroller,"dblclick",function(y){return Jt(e,y)||vr(y)}),We(r.scroller,"contextmenu",function(y){return cc(e,y)}),We(r.input.getField(),"contextmenu",function(y){r.scroller.contains(y.target)||cc(e,y)});var s,a={end:0};function d(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function p(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function v(y,C){if(C.left==null)return!0;var T=C.left-y.left,I=C.top-y.top;return T*T+I*I>20*20}We(r.scroller,"touchstart",function(y){if(!Jt(e,y)&&!p(y)&&!uc(e,y)){r.input.ensurePolled(),clearTimeout(s);var C=+new Date;r.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(r.activeTouch.left=y.touches[0].pageX,r.activeTouch.top=y.touches[0].pageY)}}),We(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),We(r.scroller,"touchend",function(y){var C=r.activeTouch;if(C&&!Ci(r,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var T=e.coordsChar(r.activeTouch,"page"),I;!C.prev||v(C,C.prev)?I=new Lt(T,T):!C.prev.prev||v(C,C.prev.prev)?I=e.findWordAt(T):I=new Lt(ae(T.line,0),we(e.doc,ae(T.line+1,0))),e.setSelection(I.anchor,I.head),e.focus(),vr(y)}d()}),We(r.scroller,"touchcancel",d),We(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Gt(e,r.scroller.scrollTop),$o(e,r.scroller.scrollLeft,!0),qe(e,"scroll",e))}),We(r.scroller,"mousewheel",function(y){return $0(e,y)}),We(r.scroller,"DOMMouseScroll",function(y){return $0(e,y)}),We(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(y){Jt(e,y)||wo(y)},over:function(y){Jt(e,y)||(Qu(e,y),wo(y))},start:function(y){return df(e,y)},drop:qt(e,K0),leave:function(y){Jt(e,y)||ec(e)}};var m=r.input.getField();We(m,"keyup",function(y){return lc.call(e,y)}),We(m,"keydown",qt(e,J0)),We(m,"keypress",qt(e,ed)),We(m,"focus",function(y){return ha(e,y)}),We(m,"blur",function(y){return Io(e,y)})}var _s=[];Dt.defineInitHook=function(e){return _s.push(e)};function Ms(e,r,s,a){var d=e.doc,p;s==null&&(s="add"),s=="smart"&&(d.mode.indent?p=sa(e,r).state:s="prev");var v=e.options.tabSize,m=ke(d,r),y=xt(m.text,null,v);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],T;if(!a&&!/\S/.test(m.text))T=0,s="not";else if(s=="smart"&&(T=d.mode.indent(p,m.text.slice(C.length),m.text),T==Ge||T>150)){if(!a)return;s="prev"}s=="prev"?r>d.first?T=xt(ke(d,r-1).text,null,v):T=0:s=="add"?T=y+e.options.indentUnit:s=="subtract"?T=y-e.options.indentUnit:typeof s=="number"&&(T=y+s),T=Math.max(0,T);var I="",W=0;if(e.options.indentWithTabs)for(var F=Math.floor(T/v);F;--F)W+=v,I+=" ";if(W<T&&(I+=tr(T-W)),I!=C)return xa(d,I,ae(r,0),ae(r,C.length),"+input"),m.stateAfter=null,!0;for(var j=0;j<d.sel.ranges.length;j++){var ne=d.sel.ranges[j];if(ne.head.line==r&&ne.head.ch<C.length){var he=ae(r,C.length);Yu(d,j,new Lt(he,he));break}}}var Sn=null;function _n(e){Sn=e}function Gl(e,r,s,a,d){var p=e.doc;e.display.shift=!1,a||(a=p.sel);var v=+new Date-200,m=d=="paste"||e.state.pasteIncoming>v,y=zo(r),C=null;if(m&&a.ranges.length>1)if(Sn&&Sn.text.join(`
|
|
2858
|
-
`)==r){if(a.ranges.length%Sn.text.length==0){C=[];for(var T=0;T<Sn.text.length;T++)C.push(p.splitLines(Sn.text[T]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=bt(y,function(me){return[me]}));for(var I=e.curOp.updateInput,W=a.ranges.length-1;W>=0;W--){var F=a.ranges[W],j=F.from(),ne=F.to();F.empty()&&(s&&s>0?j=ae(j.line,j.ch-s):e.state.overwrite&&!m?ne=ae(ne.line,Math.min(
|
|
2856
|
+
left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(d),e.display.lineSpace.removeChild(p)}}}function j1(e,r,s,a){a==null&&(a=0);var d;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?ae(r.line,r.ch+1,"before"):r,r=r.ch?ae(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var p=0;p<5;p++){var v=!1,m=Wn(e,r),y=!s||s==r?m:Wn(e,s);d={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=pa(e,d),T=e.doc.scrollTop,I=e.doc.scrollLeft;if(C.scrollTop!=null&&(Gt(e,C.scrollTop),Math.abs(e.doc.scrollTop-T)>1&&(v=!0)),C.scrollLeft!=null&&($o(e,C.scrollLeft),Math.abs(e.doc.scrollLeft-I)>1&&(v=!0)),!v)break}return d}function K1(e,r){var s=pa(e,r);s.scrollTop!=null&&Gt(e,s.scrollTop),s.scrollLeft!=null&&$o(e,s.scrollLeft)}function pa(e,r){var s=e.display,a=Xi(e.display);r.top<0&&(r.top=0);var d=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,p=bl(e),v={};r.bottom-r.top>p&&(r.bottom=r.top+p);var m=e.doc.height+Kr(s),y=r.top<a,C=r.bottom>m-a;if(r.top<d)v.scrollTop=y?0:r.top;else if(r.bottom>d+p){var T=Math.min(r.top,(C?m:r.bottom)-p);T!=d&&(v.scrollTop=T)}var I=e.options.fixedGutter?0:s.gutters.offsetWidth,W=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-I,F=ji(e)-s.gutters.offsetWidth,j=r.right-r.left>F;return j&&(r.right=r.left+F),r.left<10?v.scrollLeft=0:r.left<W?v.scrollLeft=Math.max(0,r.left+I-(j?0:10)):r.right>F+W-3&&(v.scrollLeft=r.right+(j?0:10)-F),v}function ga(e,r){r!=null&&(Ll(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function ro(e){Ll(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function cs(e,r,s){(r!=null||s!=null)&&Ll(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function O0(e,r){Ll(e),e.curOp.scrollToPos=r}function Ll(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=S0(e,r.from),a=S0(e,r.to);k0(e,s,a,r.margin)}}function k0(e,r,s,a){var d=pa(e,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-a,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+a});cs(e,d.scrollLeft,d.scrollTop)}function Gt(e,r){Math.abs(e.doc.scrollTop-r)<2||(c||Hu(e,{top:r}),Tr(e,r,!0),c&&Hu(e),ii(e,100))}function Tr(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function $o(e,r,s,a){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!a)&&(e.doc.scrollLeft=r,E0(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function ds(e){var r=e.display,s=r.gutters.offsetWidth,a=Math.round(e.doc.height+Kr(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:a,scrollHeight:a+nn(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var no=function(e,r,s){this.cm=s;var a=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),d=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");a.tabIndex=d.tabIndex=-1,e(a),e(d),We(a,"scroll",function(){a.clientHeight&&r(a.scrollTop,"vertical")}),We(d,"scroll",function(){d.clientWidth&&r(d.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,z&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};no.prototype.update=function(e){var r=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=r?a+"px":"0";var d=e.viewHeight-(r?a:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+d)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?a+"px":"0",this.horiz.style.left=e.barLeft+"px";var p=e.viewWidth-e.barLeft-(s?a:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+p)+"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:r?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=ve&&!pe?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new rt,this.disableVert=new rt},no.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function a(){var d=e.getBoundingClientRect(),p=s=="vert"?document.elementFromPoint(d.right-1,(d.top+d.bottom)/2):document.elementFromPoint((d.right+d.left)/2,d.bottom-1);p!=e?e.style.pointerEvents="none":r.set(1e3,a)}r.set(1e3,a)},no.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var fs=function(){};fs.prototype.update=function(){return{bottom:0,right:0}},fs.prototype.setScrollLeft=function(){},fs.prototype.setScrollTop=function(){},fs.prototype.clear=function(){};function io(e,r){r||(r=ds(e));var s=e.display.barWidth,a=e.display.barHeight;va(e,r);for(var d=0;d<4&&s!=e.display.barWidth||a!=e.display.barHeight;d++)s!=e.display.barWidth&&e.options.lineWrapping&&eo(e),va(e,ds(e)),s=e.display.barWidth,a=e.display.barHeight}function va(e,r){var s=e.display,a=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=a.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=a.bottom)+"px",s.heightForcer.style.borderBottom=a.bottom+"px solid transparent",a.right&&a.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=a.bottom+"px",s.scrollbarFiller.style.width=a.right+"px"):s.scrollbarFiller.style.display="",a.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=a.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Sl={native:no,null:fs};function Po(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&le(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Sl[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),We(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?$o(e,r):Gt(e,r)},e),e.display.scrollbars.addClass&&et(e.display.wrapper,e.display.scrollbars.addClass)}var hs=0;function Un(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:++hs,markArrays:null},qi(e.curOp)}function ni(e){var r=e.curOp;r&&B1(r,function(s){for(var a=0;a<s.ops.length;a++)s.ops[a].cm.curOp=null;ba(s)})}function ba(e){for(var r=e.ops,s=0;s<r.length;s++)Y1(r[s]);for(var a=0;a<r.length;a++)X1(r[a]);for(var d=0;d<r.length;d++)J1(r[d]);for(var p=0;p<r.length;p++)Q1(r[p]);for(var v=0;v<r.length;v++)ef(r[v])}function Y1(e){var r=e.cm,s=r.display;vt(r),e.updateMaxLine&&is(r),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&&r.options.lineWrapping,e.update=e.mustUpdate&&new Yr(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function X1(e){e.updatedDisplay=e.mustUpdate&&Fu(e.cm,e.update)}function J1(e){var r=e.cm,s=r.display;e.updatedDisplay&&eo(r),e.barMeasure=ds(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=y0(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+nn(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-ji(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function Q1(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&$o(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=e.focus&&e.focus==Ae();e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=r.doc.height)&&io(r,e.barMeasure),e.updatedDisplay&&Wu(r,e.barMeasure),e.selectionChanged&&fa(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),s&&Ru(e.cm)}function ef(e){var r=e.cm,s=r.display,a=r.doc;if(e.updatedDisplay&&oo(r,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Tr(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&$o(r,e.scrollLeft,!0,!0),e.scrollToPos){var d=j1(r,we(a,e.scrollToPos.from),we(a,e.scrollToPos.to),e.scrollToPos.margin);q1(r,d)}var p=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(p)for(var m=0;m<p.length;++m)p[m].lines.length||qe(p[m],"hide");if(v)for(var y=0;y<v.length;++y)v[y].lines.length&&qe(v[y],"unhide");s.wrapper.offsetHeight&&(a.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&qe(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function Or(e,r){if(e.curOp)return r();Un(e);try{return r()}finally{ni(e)}}function qt(e,r){return function(){if(e.curOp)return r.apply(e,arguments);Un(e);try{return r.apply(e,arguments)}finally{ni(e)}}}function kr(e){return function(){if(this.curOp)return e.apply(this,arguments);Un(this);try{return e.apply(this,arguments)}finally{ni(this)}}}function _(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);Un(r);try{return e.apply(this,arguments)}finally{ni(r)}}}function ii(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,or(_l,e))}function _l(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,a=sa(e,r.highlightFrontier),d=[];r.iter(a.line,Math.min(r.first+r.size,e.display.viewTo+500),function(p){if(a.line>=e.display.viewFrom){var v=p.styles,m=p.text.length>e.options.maxHighlightLength?cn(r.mode,a.state):null,y=t0(e,p,a,!0);m&&(a.state=m),p.styles=y.styles;var C=p.styleClasses,T=y.classes;T?p.styleClasses=T:C&&(p.styleClasses=null);for(var I=!v||v.length!=p.styles.length||C!=T&&(!C||!T||C.bgClass!=T.bgClass||C.textClass!=T.textClass),W=0;!I&&W<v.length;++W)I=v[W]!=p.styles[W];I&&d.push(a.line),p.stateAfter=a.save(),a.nextLine()}else p.text.length<=e.options.maxHighlightLength&&es(e,p.text,a),p.stateAfter=a.line%5==0?a.save():null,a.nextLine();if(+new Date>s)return ii(e,e.options.workDelay),!0}),r.highlightFrontier=a.line,r.modeFrontier=Math.max(r.modeFrontier,a.line),d.length&&Or(e,function(){for(var p=0;p<d.length;p++)Qi(e,d[p],"text")})}}var Yr=function(e,r,s){var a=e.display;this.viewport=r,this.visible=Ao(a,e.doc,r),this.editorIsHidden=!a.wrapper.offsetWidth,this.wrapperHeight=a.wrapper.clientHeight,this.wrapperWidth=a.wrapper.clientWidth,this.oldDisplayWidth=ji(e),this.force=s,this.dims=on(e),this.events=[]};Yr.prototype.signal=function(e,r){gr(e,r)&&this.events.push(arguments)},Yr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)qe.apply(null,this.events[e])};function vt(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=nn(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=nn(e)+"px",r.scrollbarsClipped=!0)}function tf(e){if(e.hasFocus())return null;var r=Ae();if(!r||!ue(e.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var a=window.getSelection();a.anchorNode&&a.extend&&ue(e.display.lineDiv,a.anchorNode)&&(s.anchorNode=a.anchorNode,s.anchorOffset=a.anchorOffset,s.focusNode=a.focusNode,s.focusOffset=a.focusOffset)}return s}function rf(e){if(!(!e||!e.activeElt||e.activeElt==Ae())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ue(document.body,e.anchorNode)&&ue(document.body,e.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(e.focusNode,e.focusOffset)}}function Fu(e,r){var s=e.display,a=e.doc;if(r.editorIsHidden)return wi(e),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&M0(e)==0)return!1;oi(e)&&(wi(e),r.dims=on(e));var d=a.first+a.size,p=Math.max(r.visible.from-e.options.viewportMargin,a.first),v=Math.min(d,r.visible.to+e.options.viewportMargin);s.viewFrom<p&&p-s.viewFrom<20&&(p=Math.max(a.first,s.viewFrom)),s.viewTo>v&&s.viewTo-v<20&&(v=Math.min(d,s.viewTo)),Jn&&(p=hl(e.doc,p),v=d0(e.doc,v));var m=p!=s.viewFrom||v!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;G1(e,p,v),s.viewOffset=jr(Ee(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var y=M0(e);if(!m&&y==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var C=tf(e);return y>4&&(s.lineDiv.style.display="none"),nf(e,s.updateLineNumbers,r.dims),y>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,rf(C),Q(s.cursorDiv),Q(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,m&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,ii(e,400)),s.updateLineNumbers=null,!0}function oo(e,r){for(var s=r.viewport,a=!0;;a=!1){if(!a||!e.options.lineWrapping||r.oldDisplayWidth==ji(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Kr(e.display)-bl(e),s.top)}),r.visible=Ao(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else a&&(r.visible=Ao(e.display,e.doc,s));if(!Fu(e,r))break;eo(e);var d=ds(e);ls(e),io(e,d),Wu(e,d),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Hu(e,r){var s=new Yr(e,r);if(Fu(e,s)){eo(e),oo(e,s);var a=ds(e);ls(e),io(e,a),Wu(e,a),s.finish()}}function nf(e,r,s){var a=e.display,d=e.options.lineNumbers,p=a.lineDiv,v=p.firstChild;function m(j){var ne=j.nextSibling;return E&&ve&&e.display.currentWheelTarget==j?j.style.display="none":j.parentNode.removeChild(j),ne}for(var y=a.view,C=a.viewFrom,T=0;T<y.length;T++){var I=y[T];if(!I.hidden)if(!I.node||I.node.parentNode!=p){var W=$u(e,I,C,s);p.insertBefore(W,v)}else{for(;v!=I.node;)v=m(v);var F=d&&r!=null&&r<=C&&I.lineNumber;I.changes&&(ze(I.changes,"gutter")>-1&&(F=!1),v0(e,I,C,s)),F&&(Q(I.lineNumber),I.lineNumber.appendChild(document.createTextNode(aa(e.options,C)))),v=I.node.nextSibling}C+=I.size}for(;v;)v=m(v)}function Bu(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",lr(e,"gutterChanged",e)}function Wu(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+nn(e)+"px"}function E0(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var a=da(r)-r.scroller.scrollLeft+e.doc.scrollLeft,d=r.gutters.offsetWidth,p=a+"px",v=0;v<s.length;v++)if(!s[v].hidden){e.options.fixedGutter&&(s[v].gutter&&(s[v].gutter.style.left=p),s[v].gutterBackground&&(s[v].gutterBackground.style.left=p));var m=s[v].alignable;if(m)for(var y=0;y<m.length;y++)m[y].style.left=p}e.options.fixedGutter&&(r.gutters.style.left=a+d+"px")}}function oi(e){if(!e.options.lineNumbers)return!1;var r=e.doc,s=aa(e.options,r.first+r.size-1),a=e.display;if(s.length!=a.lineNumChars){var d=a.measure.appendChild(O("div",[O("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),p=d.firstChild.offsetWidth,v=d.offsetWidth-p;return a.lineGutter.style.width="",a.lineNumInnerWidth=Math.max(p,a.lineGutter.offsetWidth-v)+1,a.lineNumWidth=a.lineNumInnerWidth+v,a.lineNumChars=a.lineNumInnerWidth?s.length:-1,a.lineGutter.style.width=a.lineNumWidth+"px",Bu(e.display),!0}return!1}function Uu(e,r){for(var s=[],a=!1,d=0;d<e.length;d++){var p=e[d],v=null;if(typeof p!="string"&&(v=p.style,p=p.className),p=="CodeMirror-linenumbers")if(r)a=!0;else continue;s.push({className:p,style:v})}return r&&!a&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function I0(e){var r=e.gutters,s=e.gutterSpecs;Q(r),e.lineGutter=null;for(var a=0;a<s.length;++a){var d=s[a],p=d.className,v=d.style,m=r.appendChild(O("div",null,"CodeMirror-gutter "+p));v&&(m.style.cssText=v),p=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",Bu(e)}function ps(e){I0(e.display),ot(e),E0(e)}function of(e,r,s,a){var d=this;this.input=s,d.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),d.scrollbarFiller.setAttribute("cm-not-content","true"),d.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),d.gutterFiller.setAttribute("cm-not-content","true"),d.lineDiv=k("div",null,"CodeMirror-code"),d.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),d.cursorDiv=O("div",null,"CodeMirror-cursors"),d.measure=O("div",null,"CodeMirror-measure"),d.lineMeasure=O("div",null,"CodeMirror-measure"),d.lineSpace=k("div",[d.measure,d.lineMeasure,d.selectionDiv,d.cursorDiv,d.lineDiv],null,"position: relative; outline: none");var p=k("div",[d.lineSpace],"CodeMirror-lines");d.mover=O("div",[p],null,"position: relative"),d.sizer=O("div",[d.mover],"CodeMirror-sizer"),d.sizerWidth=null,d.heightForcer=O("div",null,null,"position: absolute; height: "+Ne+"px; width: 1px;"),d.gutters=O("div",null,"CodeMirror-gutters"),d.lineGutter=null,d.scroller=O("div",[d.sizer,d.heightForcer,d.gutters],"CodeMirror-scroll"),d.scroller.setAttribute("tabIndex","-1"),d.wrapper=O("div",[d.scrollbarFiller,d.gutterFiller,d.scroller],"CodeMirror"),d.wrapper.setAttribute("translate","no"),z&&S<8&&(d.gutters.style.zIndex=-1,d.scroller.style.paddingRight=0),!E&&!(c&&be)&&(d.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(d.wrapper):e(d.wrapper)),d.viewFrom=d.viewTo=r.first,d.reportedViewFrom=d.reportedViewTo=r.first,d.view=[],d.renderedView=null,d.externalMeasured=null,d.viewOffset=0,d.lastWrapHeight=d.lastWrapWidth=0,d.updateLineNumbers=null,d.nativeBarWidth=d.barHeight=d.barWidth=0,d.scrollbarsClipped=!1,d.lineNumWidth=d.lineNumInnerWidth=d.lineNumChars=null,d.alignWidgets=!1,d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.maxLine=null,d.maxLineLength=0,d.maxLineChanged=!1,d.wheelDX=d.wheelDY=d.wheelStartX=d.wheelStartY=null,d.shift=!1,d.selForContextMenu=null,d.activeTouch=null,d.gutterSpecs=Uu(a.gutters,a.lineNumbers),I0(d),s.init(d)}var Ml=0,Qt=null;z?Qt=-.53:c?Qt=15:B?Qt=-.7:J&&(Qt=-1/3);function A0(e){var r=e.wheelDeltaX,s=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:r,y:s}}function af(e){var r=A0(e);return r.x*=Qt,r.y*=Qt,r}function $0(e,r){var s=A0(r),a=s.x,d=s.y,p=e.display,v=p.scroller,m=v.scrollWidth>v.clientWidth,y=v.scrollHeight>v.clientHeight;if(a&&m||d&&y){if(d&&ve&&E){e:for(var C=r.target,T=p.view;C!=v;C=C.parentNode)for(var I=0;I<T.length;I++)if(T[I].node==C){e.display.currentWheelTarget=C;break e}}if(a&&!c&&!R&&Qt!=null){d&&y&&Gt(e,Math.max(0,v.scrollTop+d*Qt)),$o(e,Math.max(0,v.scrollLeft+a*Qt)),(!d||d&&y)&&vr(r),p.wheelStartX=null;return}if(d&&Qt!=null){var W=d*Qt,F=e.doc.scrollTop,j=F+p.wrapper.clientHeight;W<0?F=Math.max(0,F+W-50):j=Math.min(e.doc.height,j+W+50),Hu(e,{top:F,bottom:j})}Ml<20&&(p.wheelStartX==null?(p.wheelStartX=v.scrollLeft,p.wheelStartY=v.scrollTop,p.wheelDX=a,p.wheelDY=d,setTimeout(function(){if(p.wheelStartX!=null){var ne=v.scrollLeft-p.wheelStartX,he=v.scrollTop-p.wheelStartY,me=he&&p.wheelDY&&he/p.wheelDY||ne&&p.wheelDX&&ne/p.wheelDX;p.wheelStartX=p.wheelStartY=null,me&&(Qt=(Qt*Ml+me)/(Ml+1),++Ml)}},200)):(p.wheelDX+=a,p.wheelDY+=d))}}var hn=function(e,r){this.ranges=e,this.primIndex=r};hn.prototype.primary=function(){return this.ranges[this.primIndex]},hn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],a=e.ranges[r];if(!A(s.anchor,a.anchor)||!A(s.head,a.head))return!1}return!0},hn.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new Lt(te(this.ranges[r].anchor),te(this.ranges[r].head));return new hn(e,this.primIndex)},hn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},hn.prototype.contains=function(e,r){r||(r=e);for(var s=0;s<this.ranges.length;s++){var a=this.ranges[s];if(w(r,a.from())>=0&&w(e,a.to())<=0)return s}return-1};var Lt=function(e,r){this.anchor=e,this.head=r};Lt.prototype.from=function(){return Ke(this.anchor,this.head)},Lt.prototype.to=function(){return ce(this.anchor,this.head)},Lt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Er(e,r,s){var a=e&&e.options.selectionsMayTouch,d=r[s];r.sort(function(W,F){return w(W.from(),F.from())}),s=ze(r,d);for(var p=1;p<r.length;p++){var v=r[p],m=r[p-1],y=w(m.to(),v.from());if(a&&!v.empty()?y>0:y>=0){var C=Ke(m.from(),v.from()),T=ce(m.to(),v.to()),I=m.empty()?v.from()==v.head:m.from()==m.head;p<=s&&--s,r.splice(--p,2,new Lt(I?T:C,I?C:T))}}return new hn(r,s)}function ao(e,r){return new hn([new Lt(e,r||e)],0)}function so(e){return e.text?ae(e.from.line+e.text.length-1,Qe(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function zn(e,r){if(w(e,r.from)<0)return e;if(w(e,r.to)<=0)return so(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,a=e.ch;return e.line==r.to.line&&(a+=so(r).ch-r.to.ch),ae(s,a)}function Vu(e,r){for(var s=[],a=0;a<e.sel.ranges.length;a++){var d=e.sel.ranges[a];s.push(new Lt(zn(d.anchor,r),zn(d.head,r)))}return Er(e.cm,s,e.sel.primIndex)}function P0(e,r,s){return e.line==r.line?ae(s.line,e.ch-r.ch+s.ch):ae(s.line+(e.line-r.line),e.ch)}function sf(e,r,s){for(var a=[],d=ae(e.first,0),p=d,v=0;v<r.length;v++){var m=r[v],y=P0(m.from,d,p),C=P0(so(m),d,p);if(d=m.to,p=C,s=="around"){var T=e.sel.ranges[v],I=w(T.head,T.anchor)<0;a[v]=new Lt(I?C:y,I?y:C)}else a[v]=new Lt(y,y)}return new hn(a,e.sel.primIndex)}function Zu(e){e.doc.mode=oa(e.options,e.doc.modeOption),gs(e)}function gs(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ii(e,100),e.state.modeGen++,e.curOp&&ot(e)}function Gu(e,r){return r.from.ch==0&&r.to.ch==0&&Qe(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Tl(e,r,s,a){function d(xe){return s?s[xe]:null}function p(xe,ye,Se){f0(xe,ye,Se,a),lr(xe,"change",xe,r)}function v(xe,ye){for(var Se=[],Fe=xe;Fe<ye;++Fe)Se.push(new Mr(C[Fe],d(Fe),a));return Se}var m=r.from,y=r.to,C=r.text,T=Ee(e,m.line),I=Ee(e,y.line),W=Qe(C),F=d(C.length-1),j=y.line-m.line;if(r.full)e.insert(0,v(0,C.length)),e.remove(C.length,e.size-C.length);else if(Gu(e,r)){var ne=v(0,C.length-1);p(I,I.text,F),j&&e.remove(m.line,j),ne.length&&e.insert(m.line,ne)}else if(T==I)if(C.length==1)p(T,T.text.slice(0,m.ch)+W+T.text.slice(y.ch),F);else{var he=v(1,C.length-1);he.push(new Mr(W+T.text.slice(y.ch),F,a)),p(T,T.text.slice(0,m.ch)+C[0],d(0)),e.insert(m.line+1,he)}else if(C.length==1)p(T,T.text.slice(0,m.ch)+C[0]+I.text.slice(y.ch),d(0)),e.remove(m.line+1,j);else{p(T,T.text.slice(0,m.ch)+C[0],d(0)),p(I,W+I.text.slice(y.ch),F);var me=v(1,C.length-1);j>1&&e.remove(m.line+1,j-1),e.insert(m.line+1,me)}lr(e,"change",e,r)}function lo(e,r,s){function a(d,p,v){if(d.linked)for(var m=0;m<d.linked.length;++m){var y=d.linked[m];if(y.doc!=p){var C=v&&y.sharedHist;s&&!C||(r(y.doc,C),a(y.doc,d,C))}}}a(e,null,!0)}function D0(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,Ji(e),Zu(e),Ol(e),e.options.direction=r.direction,e.options.lineWrapping||is(e),e.options.mode=r.modeOption,ot(e)}function Ol(e){(e.doc.direction=="rtl"?et:le)(e.display.lineDiv,"CodeMirror-rtl")}function vs(e){Or(e,function(){Ol(e),ot(e)})}function Do(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 qu(e,r){var s={from:te(r.from),to:so(r),text:dn(e,r.from,r.to)};return N0(e,s,r.from.line,r.to.line+1),lo(e,function(a){return N0(a,s,r.from.line,r.to.line+1)},!0),s}function ju(e){for(;e.length;){var r=Qe(e);if(r.ranges)e.pop();else break}}function lf(e,r){if(r)return ju(e.done),Qe(e.done);if(e.done.length&&!Qe(e.done).ranges)return Qe(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Qe(e.done)}function ai(e,r,s,a){var d=e.history;d.undone.length=0;var p=+new Date,v,m;if((d.lastOp==a||d.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&d.lastModTime>p-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(v=lf(d,d.lastOp==a)))m=Qe(v.changes),w(r.from,r.to)==0&&w(r.from,m.to)==0?m.to=so(r):v.changes.push(qu(e,r));else{var y=Qe(d.done);for((!y||!y.ranges)&&Xr(e.sel,d.done),v={changes:[qu(e,r)],generation:d.generation},d.done.push(v);d.done.length>d.undoDepth;)d.done.shift(),d.done[0].ranges||d.done.shift()}d.done.push(s),d.generation=++d.maxGeneration,d.lastModTime=d.lastSelTime=p,d.lastOp=d.lastSelOp=a,d.lastOrigin=d.lastSelOrigin=r.origin,m||qe(e,"historyAdded")}function Ku(e,r,s,a){var d=r.charAt(0);return d=="*"||d=="+"&&s.ranges.length==a.ranges.length&&s.somethingSelected()==a.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function No(e,r,s,a){var d=e.history,p=a&&a.origin;s==d.lastSelOp||p&&d.lastSelOrigin==p&&(d.lastModTime==d.lastSelTime&&d.lastOrigin==p||Ku(e,p,Qe(d.done),r))?d.done[d.done.length-1]=r:Xr(r,d.done),d.lastSelTime=+new Date,d.lastSelOrigin=p,d.lastSelOp=s,a&&a.clearRedo!==!1&&ju(d.undone)}function Xr(e,r){var s=Qe(r);s&&s.ranges&&s.equals(e)||r.push(e)}function N0(e,r,s,a){var d=r["spans_"+e.id],p=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,a),function(v){v.markedSpans&&((d||(d=r["spans_"+e.id]={}))[p]=v.markedSpans),++p})}function R0(e){if(!e)return null;for(var r,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?r||(r=e.slice(0,s)):r&&r.push(e[s]);return r?r.length?r:null:e}function F0(e,r){var s=r["spans_"+e.id];if(!s)return null;for(var a=[],d=0;d<r.text.length;++d)a.push(R0(s[d]));return a}function ma(e,r){var s=F0(e,r),a=Su(e,r);if(!s)return a;if(!a)return s;for(var d=0;d<s.length;++d){var p=s[d],v=a[d];if(p&&v)e:for(var m=0;m<v.length;++m){for(var y=v[m],C=0;C<p.length;++C)if(p[C].marker==y.marker)continue e;p.push(y)}else v&&(s[d]=v)}return s}function pn(e,r,s){for(var a=[],d=0;d<e.length;++d){var p=e[d];if(p.ranges){a.push(s?hn.prototype.deepCopy.call(p):p);continue}var v=p.changes,m=[];a.push({changes:m});for(var y=0;y<v.length;++y){var C=v[y],T=void 0;if(m.push({from:C.from,to:C.to,text:C.text}),r)for(var I in C)(T=I.match(/^spans_(\d+)$/))&&ze(r,Number(T[1]))>-1&&(Qe(m)[I]=C[I],delete C[I])}}return a}function kl(e,r,s,a){if(a){var d=e.anchor;if(s){var p=w(r,d)<0;p!=w(s,d)<0?(d=r,r=s):p!=w(r,s)<0&&(r=s)}return new Lt(d,r)}else return new Lt(s||r,r)}function El(e,r,s,a,d){d==null&&(d=e.cm&&(e.cm.display.shift||e.extend)),br(e,new hn([kl(e.sel.primary(),r,s,d)],0),a)}function bs(e,r,s){for(var a=[],d=e.cm&&(e.cm.display.shift||e.extend),p=0;p<e.sel.ranges.length;p++)a[p]=kl(e.sel.ranges[p],r[p],null,d);var v=Er(e.cm,a,e.sel.primIndex);br(e,v,s)}function Yu(e,r,s,a){var d=e.sel.ranges.slice(0);d[r]=s,br(e,Er(e.cm,d,e.sel.primIndex),a)}function Xu(e,r,s,a){br(e,ao(r,s),a)}function Ir(e,r,s){var a={ranges:r.ranges,update:function(d){this.ranges=[];for(var p=0;p<d.length;p++)this.ranges[p]=new Lt(we(e,d[p].anchor),we(e,d[p].head))},origin:s&&s.origin};return qe(e,"beforeSelectionChange",e,a),e.cm&&qe(e.cm,"beforeSelectionChange",e.cm,a),a.ranges!=r.ranges?Er(e.cm,a.ranges,a.ranges.length-1):r}function Il(e,r,s){var a=e.history.done,d=Qe(a);d&&d.ranges?(a[a.length-1]=r,gn(e,r,s)):br(e,r,s)}function br(e,r,s){gn(e,r,s),No(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function gn(e,r,s){(gr(e,"beforeSelectionChange")||e.cm&&gr(e.cm,"beforeSelectionChange"))&&(r=Ir(e,r,s));var a=s&&s.bias||(w(r.primary().head,e.sel.primary().head)<0?-1:1);Al(e,uo(e,r,a,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ro(e.cm)}function Al(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,na(e.cm)),lr(e,"cursorActivity",e))}function ms(e){Al(e,uo(e,e.sel,null,!1))}function uo(e,r,s,a){for(var d,p=0;p<r.ranges.length;p++){var v=r.ranges[p],m=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[p],y=mr(e,v.anchor,m&&m.anchor,s,a),C=mr(e,v.head,m&&m.head,s,a);(d||y!=v.anchor||C!=v.head)&&(d||(d=r.ranges.slice(0,p)),d[p]=new Lt(y,C))}return d?Er(e.cm,d,r.primIndex):r}function Ro(e,r,s,a,d){var p=Ee(e,r.line);if(p.markedSpans)for(var v=0;v<p.markedSpans.length;++v){var m=p.markedSpans[v],y=m.marker,C="selectLeft"in y?!y.selectLeft:y.inclusiveLeft,T="selectRight"in y?!y.selectRight:y.inclusiveRight;if((m.from==null||(C?m.from<=r.ch:m.from<r.ch))&&(m.to==null||(T?m.to>=r.ch:m.to>r.ch))){if(d&&(qe(y,"beforeCursorEnter"),y.explicitlyCleared))if(p.markedSpans){--v;continue}else break;if(!y.atomic)continue;if(s){var I=y.find(a<0?1:-1),W=void 0;if((a<0?T:C)&&(I=$l(e,I,-a,I&&I.line==r.line?p:null)),I&&I.line==r.line&&(W=w(I,s))&&(a<0?W<0:W>0))return Ro(e,I,r,a,d)}var F=y.find(a<0?-1:1);return(a<0?C:T)&&(F=$l(e,F,a,F.line==r.line?p:null)),F?Ro(e,F,r,a,d):null}}return r}function mr(e,r,s,a,d){var p=a||1,v=Ro(e,r,s,p,d)||!d&&Ro(e,r,s,p,!0)||Ro(e,r,s,-p,d)||!d&&Ro(e,r,s,-p,!0);return v||(e.cantEdit=!0,ae(e.first,0))}function $l(e,r,s,a){return s<0&&r.ch==0?r.line>e.first?we(e,ae(r.line-1)):null:s>0&&r.ch==(a||Ee(e,r.line)).text.length?r.line<e.first+e.size-1?ae(r.line+1,0):null:new ae(r.line,r.ch+s)}function H0(e){e.setSelection(ae(e.firstLine(),0),ae(e.lastLine()),st)}function B0(e,r,s){var a={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return a.canceled=!0}};return s&&(a.update=function(d,p,v,m){d&&(a.from=we(e,d)),p&&(a.to=we(e,p)),v&&(a.text=v),m!==void 0&&(a.origin=m)}),qe(e,"beforeChange",e,a),e.cm&&qe(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 ya(e,r,s){if(e.cm){if(!e.cm.curOp)return qt(e.cm,ya)(e,r,s);if(e.cm.state.suppressEdits)return}if(!((gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"))&&(r=B0(e,r,!0),!r))){var a=Lu&&!s&&_u(e,r.from,r.to);if(a)for(var d=a.length-1;d>=0;--d)Pl(e,{from:a[d].from,to:a[d].to,text:d?[""]:r.text,origin:r.origin});else Pl(e,r)}}function Pl(e,r){if(!(r.text.length==1&&r.text[0]==""&&w(r.from,r.to)==0)){var s=Vu(e,r);ai(e,r,s,e.cm?e.cm.curOp.id:NaN),wa(e,r,s,Su(e,r));var a=[];lo(e,function(d,p){!p&&ze(a,d.history)==-1&&(U0(d.history,r),a.push(d.history)),wa(d,r,null,Su(d,r))})}}function Dl(e,r,s){var a=e.cm&&e.cm.state.suppressEdits;if(!(a&&!s)){for(var d=e.history,p,v=e.sel,m=r=="undo"?d.done:d.undone,y=r=="undo"?d.undone:d.done,C=0;C<m.length&&(p=m[C],!(s?p.ranges&&!p.equals(e.sel):!p.ranges));C++);if(C!=m.length){for(d.lastOrigin=d.lastSelOrigin=null;;)if(p=m.pop(),p.ranges){if(Xr(p,y),s&&!p.equals(e.sel)){br(e,p,{clearRedo:!1});return}v=p}else if(a){m.push(p);return}else break;var T=[];Xr(v,y),y.push({changes:T,generation:d.generation}),d.generation=p.generation||++d.maxGeneration;for(var I=gr(e,"beforeChange")||e.cm&&gr(e.cm,"beforeChange"),W=function(ne){var he=p.changes[ne];if(he.origin=r,I&&!B0(e,he,!1))return m.length=0,{};T.push(qu(e,he));var me=ne?Vu(e,he):Qe(m);wa(e,he,me,ma(e,he)),!ne&&e.cm&&e.cm.scrollIntoView({from:he.from,to:so(he)});var xe=[];lo(e,function(ye,Se){!Se&&ze(xe,ye.history)==-1&&(U0(ye.history,he),xe.push(ye.history)),wa(ye,he,null,ma(ye,he))})},F=p.changes.length-1;F>=0;--F){var j=W(F);if(j)return j.v}}}}function Ca(e,r){if(r!=0&&(e.first+=r,e.sel=new hn(bt(e.sel.ranges,function(d){return new Lt(ae(d.anchor.line+r,d.anchor.ch),ae(d.head.line+r,d.head.ch))}),e.sel.primIndex),e.cm)){ot(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,a=s.viewFrom;a<s.viewTo;a++)Qi(e.cm,a,"gutter")}}function wa(e,r,s,a){if(e.cm&&!e.cm.curOp)return qt(e.cm,wa)(e,r,s,a);if(r.to.line<e.first){Ca(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var d=r.text.length-1-(e.first-r.from.line);Ca(e,d),r={from:ae(e.first,0),to:ae(r.to.line+d,r.to.ch),text:[Qe(r.text)],origin:r.origin}}var p=e.lastLine();r.to.line>p&&(r={from:r.from,to:ae(p,Ee(e,p).text.length),text:[r.text[0]],origin:r.origin}),r.removed=dn(e,r.from,r.to),s||(s=Vu(e,r)),e.cm?uf(e.cm,r,a):Tl(e,r,a),gn(e,s,st),e.cantEdit&&mr(e,ae(e.firstLine(),0))&&(e.cantEdit=!1)}}function uf(e,r,s){var a=e.doc,d=e.display,p=r.from,v=r.to,m=!1,y=p.line;e.options.lineWrapping||(y=zt(Qn(Ee(a,p.line))),a.iter(y,v.line+1,function(F){if(F==d.maxLine)return m=!0,!0})),a.sel.contains(r.from,r.to)>-1&&na(e),Tl(a,r,s,_0(e)),e.options.lineWrapping||(a.iter(y,p.line+r.text.length,function(F){var j=ns(F);j>d.maxLineLength&&(d.maxLine=F,d.maxLineLength=j,d.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),I1(a,p.line),ii(e,400);var C=r.text.length-(v.line-p.line)-1;r.full?ot(e):p.line==v.line&&r.text.length==1&&!Gu(e.doc,r)?Qi(e,p.line,"text"):ot(e,p.line,v.line+1,C);var T=gr(e,"changes"),I=gr(e,"change");if(I||T){var W={from:p,to:v,text:r.text,removed:r.removed,origin:r.origin};I&&lr(e,"change",e,W),T&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(W)}e.display.selForContextMenu=null}function xa(e,r,s,a,d){var p;a||(a=s),w(a,s)<0&&(p=[a,s],s=p[0],a=p[1]),typeof r=="string"&&(r=e.splitLines(r)),ya(e,{from:s,to:a,text:r,origin:d})}function za(e,r,s,a){s<e.line?e.line+=a:r<e.line&&(e.line=r,e.ch=0)}function W0(e,r,s,a){for(var d=0;d<e.length;++d){var p=e[d],v=!0;if(p.ranges){p.copied||(p=e[d]=p.deepCopy(),p.copied=!0);for(var m=0;m<p.ranges.length;m++)za(p.ranges[m].anchor,r,s,a),za(p.ranges[m].head,r,s,a);continue}for(var y=0;y<p.changes.length;++y){var C=p.changes[y];if(s<C.from.line)C.from=ae(C.from.line+a,C.from.ch),C.to=ae(C.to.line+a,C.to.ch);else if(r<=C.to.line){v=!1;break}}v||(e.splice(0,d+1),d=0)}}function U0(e,r){var s=r.from.line,a=r.to.line,d=r.text.length-(a-s)-1;W0(e.done,s,a,d),W0(e.undone,s,a,d)}function Fo(e,r,s,a){var d=r,p=r;return typeof r=="number"?p=Ee(e,gt(e,r)):d=zt(r),d==null?null:(a(p,d)&&e.cm&&Qi(e.cm,d,s),p)}function La(e){this.lines=e,this.parent=null;for(var r=0,s=0;s<e.length;++s)e[s].parent=this,r+=e[s].height;this.height=r}La.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var s=e,a=e+r;s<a;++s){var d=this.lines[s];this.height-=d.height,h0(d),lr(d,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var a=0;a<r.length;++a)r[a].parent=this},iterN:function(e,r,s){for(var a=e+r;e<a;++e)if(s(this.lines[e]))return!0}};function ys(e){this.children=e;for(var r=0,s=0,a=0;a<e.length;++a){var d=e[a];r+=d.chunkSize(),s+=d.height,d.parent=this}this.size=r,this.height=s,this.parent=null}ys.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var s=0;s<this.children.length;++s){var a=this.children[s],d=a.chunkSize();if(e<d){var p=Math.min(r,d-e),v=a.height;if(a.removeInner(e,p),this.height-=v-a.height,d==p&&(this.children.splice(s--,1),a.parent=null),(r-=p)==0)break;e=0}else e-=d}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof La))){var m=[];this.collapse(m),this.children=[new La(m)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,s){this.size+=r.length,this.height+=s;for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<=p){if(d.insertInner(e,r,s),d.lines&&d.lines.length>50){for(var v=d.lines.length%25+25,m=v;m<d.lines.length;){var y=new La(d.lines.slice(m,m+=25));d.height-=y.height,this.children.splice(++a,0,y),y.parent=this}d.lines=d.lines.slice(0,v),this.maybeSpill()}break}e-=p}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),s=new ys(r);if(e.parent){e.size-=s.size,e.height-=s.height;var d=ze(e.parent.children,e);e.parent.children.splice(d+1,0,s)}else{var a=new ys(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,r,s){for(var a=0;a<this.children.length;++a){var d=this.children[a],p=d.chunkSize();if(e<p){var v=Math.min(r,p-e);if(d.iterN(e,v,s))return!0;if((r-=v)==0)break;e=0}else e-=p}}};var Cs=function(e,r,s){if(s)for(var a in s)s.hasOwnProperty(a)&&(this[a]=s[a]);this.doc=e,this.node=r};Cs.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,s=this.line,a=zt(s);if(!(a==null||!r)){for(var d=0;d<r.length;++d)r[d]==this&&r.splice(d--,1);r.length||(s.widgets=null);var p=To(this);tn(s,Math.max(0,s.height-p)),e&&(Or(e,function(){V0(e,s,-p),Qi(e,a,"widget")}),lr(e,"lineWidgetCleared",e,this,a))}},Cs.prototype.changed=function(){var e=this,r=this.height,s=this.doc.cm,a=this.line;this.height=null;var d=To(this)-r;d&&(Zt(this.doc,a)||tn(a,a.height+d),s&&Or(s,function(){s.curOp.forceUpdate=!0,V0(s,a,d),lr(s,"lineWidgetChanged",s,e,zt(a))}))},Dn(Cs);function V0(e,r,s){jr(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ga(e,s)}function Z0(e,r,s,a){var d=new Cs(e,s,a),p=e.cm;return p&&d.noHScroll&&(p.display.alignWidgets=!0),Fo(e,r,"widget",function(v){var m=v.widgets||(v.widgets=[]);if(d.insertAt==null?m.push(d):m.splice(Math.min(m.length,Math.max(0,d.insertAt)),0,d),d.line=v,p&&!Zt(e,v)){var y=jr(v)<e.scrollTop;tn(v,v.height+To(d)),y&&ga(p,d.height),p.curOp.forceUpdate=!0}return!0}),p&&lr(p,"lineWidgetAdded",p,d,typeof r=="number"?r:zt(r)),d}var Nl=0,co=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++Nl};co.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&Un(e),gr(this,"clear")){var s=this.find();s&&lr(this,"clear",s.from,s.to)}for(var a=null,d=null,p=0;p<this.lines.length;++p){var v=this.lines[p],m=ts(v.markedSpans,this);e&&!this.collapsed?Qi(e,zt(v),"text"):e&&(m.to!=null&&(d=zt(v)),m.from!=null&&(a=zt(v))),v.markedSpans=A1(v.markedSpans,m),m.from==null&&this.collapsed&&!Zt(this.doc,v)&&e&&tn(v,Xi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var y=0;y<this.lines.length;++y){var C=Qn(this.lines[y]),T=ns(C);T>e.display.maxLineLength&&(e.display.maxLine=C,e.display.maxLineLength=T,e.display.maxLineChanged=!0)}a!=null&&e&&this.collapsed&&ot(e,a,d+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ms(e.doc)),e&&lr(e,"markerCleared",e,this,a,d),r&&ni(e),this.parent&&this.parent.clear()}},co.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,a,d=0;d<this.lines.length;++d){var p=this.lines[d],v=ts(p.markedSpans,this);if(v.from!=null&&(s=ae(r?p:zt(p),v.from),e==-1))return s;if(v.to!=null&&(a=ae(r?p:zt(p),v.to),e==1))return a}return s&&{from:s,to:a}},co.prototype.changed=function(){var e=this,r=this.find(-1,!0),s=this,a=this.doc.cm;!r||!a||Or(a,function(){var d=r.line,p=zt(r.line),v=Nu(a,p);if(v&&(x0(v),a.curOp.selectionChanged=a.curOp.forceUpdate=!0),a.curOp.updateMaxLine=!0,!Zt(s.doc,d)&&s.height!=null){var m=s.height;s.height=null;var y=To(s)-m;y&&tn(d,d.height+y)}lr(a,"markerChanged",a,e)})},co.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ze(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},co.prototype.detachLine=function(e){if(this.lines.splice(ze(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Dn(co);function fo(e,r,s,a,d){if(a&&a.shared)return G0(e,r,s,a,d);if(e.cm&&!e.cm.curOp)return qt(e.cm,fo)(e,r,s,a,d);var p=new co(e,d),v=w(r,s);if(a&&Mt(a,p,!1),v>0||v==0&&p.clearWhenEmpty!==!1)return p;if(p.replacedWith&&(p.collapsed=!0,p.widgetNode=k("span",[p.replacedWith],"CodeMirror-widget"),a.handleMouseEvents||p.widgetNode.setAttribute("cm-ignore-events","true"),a.insertLeft&&(p.widgetNode.insertLeft=!0)),p.collapsed){if(c0(e,r.line,r,s,p)||r.line!=s.line&&c0(e,s.line,r,s,p))throw new Error("Inserting collapsed marker partially overlapping an existing one");o0()}p.addToHistory&&ai(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var m=r.line,y=e.cm,C;if(e.iter(m,s.line+1,function(I){y&&p.collapsed&&!y.options.lineWrapping&&Qn(I)==y.display.maxLine&&(C=!0),p.collapsed&&m!=r.line&&tn(I,0),a0(I,new ul(p,m==r.line?r.ch:null,m==s.line?s.ch:null),e.cm&&e.cm.curOp),++m}),p.collapsed&&e.iter(r.line,s.line+1,function(I){Zt(e,I)&&tn(I,0)}),p.clearOnEnter&&We(p,"beforeCursorEnter",function(){return p.clear()}),p.readOnly&&(i0(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),p.collapsed&&(p.id=++Nl,p.atomic=!0),y){if(C&&(y.curOp.updateMaxLine=!0),p.collapsed)ot(y,r.line,s.line+1);else if(p.className||p.startStyle||p.endStyle||p.css||p.attributes||p.title)for(var T=r.line;T<=s.line;T++)Qi(y,T,"text");p.atomic&&ms(y.doc),lr(y,"markerAdded",y,p)}return p}var Sa=function(e,r){this.markers=e,this.primary=r;for(var s=0;s<e.length;++s)e[s].parent=this};Sa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();lr(this,"clear")}},Sa.prototype.find=function(e,r){return this.primary.find(e,r)},Dn(Sa);function G0(e,r,s,a,d){a=Mt(a),a.shared=!1;var p=[fo(e,r,s,a,d)],v=p[0],m=a.widgetNode;return lo(e,function(y){m&&(a.widgetNode=m.cloneNode(!0)),p.push(fo(y,we(y,r),we(y,s),a,d));for(var C=0;C<y.linked.length;++C)if(y.linked[C].isParent)return;v=Qe(p)}),new Sa(p,v)}function Ju(e){return e.findMarks(ae(e.first,0),e.clipPos(ae(e.lastLine())),function(r){return r.parent})}function Rl(e,r){for(var s=0;s<r.length;s++){var a=r[s],d=a.find(),p=e.clipPos(d.from),v=e.clipPos(d.to);if(w(p,v)){var m=fo(e,p,v,a.primary,a.primary.type);a.markers.push(m),m.parent=a}}}function cf(e){for(var r=function(a){var d=e[a],p=[d.primary.doc];lo(d.primary.doc,function(y){return p.push(y)});for(var v=0;v<d.markers.length;v++){var m=d.markers[v];ze(p,m.doc)==-1&&(m.parent=null,d.markers.splice(v--,1))}},s=0;s<e.length;s++)r(s)}var q0=0,Nr=function(e,r,s,a,d){if(!(this instanceof Nr))return new Nr(e,r,s,a,d);s==null&&(s=0),ys.call(this,[new La([new Mr("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var p=ae(s,0);this.sel=ao(p),this.history=new Do(null),this.id=++q0,this.modeOption=r,this.lineSep=a,this.direction=d=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Tl(this,{from:p,to:p,text:e}),br(this,ao(p),st)};Nr.prototype=en(ys.prototype,{constructor:Nr,iter:function(e,r,s){s?this.iterN(e-this.first,r-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var s=0,a=0;a<r.length;++a)s+=r[a].height;this.insertInner(e-this.first,r,s)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=Qa(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:_(function(e){var r=ae(this.first,0),s=this.first+this.size-1;ya(this,{from:r,to:ae(s,Ee(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&cs(this.cm,0,0),br(this,ao(r),st)}),replaceRange:function(e,r,s,a){r=we(this,r),s=s?we(this,s):r,xa(this,e,r,s,a)},getRange:function(e,r,s){var a=dn(this,we(this,e),we(this,r));return s===!1?a:s===""?a.join(""):a.join(s||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(Zi(this,e))return Ee(this,e)},getLineNumber:function(e){return zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ee(this,e)),Qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return we(this,e)},getCursor:function(e){var r=this.sel.primary(),s;return e==null||e=="head"?s=r.head:e=="anchor"?s=r.anchor:e=="end"||e=="to"||e===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:_(function(e,r,s){Xu(this,we(this,typeof e=="number"?ae(e,r||0):e),null,s)}),setSelection:_(function(e,r,s){Xu(this,we(this,e),we(this,r||e),s)}),extendSelection:_(function(e,r,s){El(this,we(this,e),r&&we(this,r),s)}),extendSelections:_(function(e,r){bs(this,rn(this,e),r)}),extendSelectionsBy:_(function(e,r){var s=bt(this.sel.ranges,e);bs(this,rn(this,s),r)}),setSelections:_(function(e,r,s){if(e.length){for(var a=[],d=0;d<e.length;d++)a[d]=new Lt(we(this,e[d].anchor),we(this,e[d].head||e[d].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),br(this,Er(this.cm,a,r),s)}}),addSelection:_(function(e,r,s){var a=this.sel.ranges.slice(0);a.push(new Lt(we(this,e),we(this,r||e))),br(this,Er(this.cm,a,a.length-1),s)}),getSelection:function(e){for(var r=this.sel.ranges,s,a=0;a<r.length;a++){var d=dn(this,r[a].from(),r[a].to());s=s?s.concat(d):d}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],s=this.sel.ranges,a=0;a<s.length;a++){var d=dn(this,s[a].from(),s[a].to());e!==!1&&(d=d.join(e||this.lineSeparator())),r[a]=d}return r},replaceSelection:function(e,r,s){for(var a=[],d=0;d<this.sel.ranges.length;d++)a[d]=e;this.replaceSelections(a,r,s||"+input")},replaceSelections:_(function(e,r,s){for(var a=[],d=this.sel,p=0;p<d.ranges.length;p++){var v=d.ranges[p];a[p]={from:v.from(),to:v.to(),text:this.splitLines(e[p]),origin:s}}for(var m=r&&r!="end"&&sf(this,a,r),y=a.length-1;y>=0;y--)ya(this,a[y]);m?Il(this,m):this.cm&&ro(this.cm)}),undo:_(function(){Dl(this,"undo")}),redo:_(function(){Dl(this,"redo")}),undoSelection:_(function(){Dl(this,"undo",!0)}),redoSelection:_(function(){Dl(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,a=0;a<e.done.length;a++)e.done[a].ranges||++r;for(var d=0;d<e.undone.length;d++)e.undone[d].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var e=this;this.history=new Do(this.history),lo(this,function(r){return r.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:pn(this.history.done),undone:pn(this.history.undone)}},setHistory:function(e){var r=this.history=new Do(this.history);r.done=pn(e.done.slice(0),null,!0),r.undone=pn(e.undone.slice(0),null,!0)},setGutterMarker:_(function(e,r,s){return Fo(this,e,"gutter",function(a){var d=a.gutterMarkers||(a.gutterMarkers={});return d[r]=s,!s&&se(d)&&(a.gutterMarkers=null),!0})}),clearGutter:_(function(e){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&Fo(r,s,"gutter",function(){return s.gutterMarkers[e]=null,se(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!Zi(this,e)||(r=e,e=Ee(this,e),!e))return null}else if(r=zt(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:_(function(e,r,s){return Fo(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!a[d])a[d]=s;else{if(Ce(s).test(a[d]))return!1;a[d]+=" "+s}return!0})}),removeLineClass:_(function(e,r,s){return Fo(this,e,r=="gutter"?"gutter":"class",function(a){var d=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",p=a[d];if(p)if(s==null)a[d]=null;else{var v=p.match(Ce(s));if(!v)return!1;var m=v.index+v[0].length;a[d]=p.slice(0,v.index)+(!v.index||m==p.length?"":" ")+p.slice(m)||null}else return!1;return!0})}),addLineWidget:_(function(e,r,s){return Z0(this,e,r,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,s){return fo(this,we(this,e),we(this,r),s,s&&s.type||"range")},setBookmark:function(e,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=we(this,e),fo(this,e,e,s,"bookmark")},findMarksAt:function(e){e=we(this,e);var r=[],s=Ee(this,e.line).markedSpans;if(s)for(var a=0;a<s.length;++a){var d=s[a];(d.from==null||d.from<=e.ch)&&(d.to==null||d.to>=e.ch)&&r.push(d.marker.parent||d.marker)}return r},findMarks:function(e,r,s){e=we(this,e),r=we(this,r);var a=[],d=e.line;return this.iter(e.line,r.line+1,function(p){var v=p.markedSpans;if(v)for(var m=0;m<v.length;m++){var y=v[m];!(y.to!=null&&d==e.line&&e.ch>=y.to||y.from==null&&d!=e.line||y.from!=null&&d==r.line&&y.from>=r.ch)&&(!s||s(y.marker))&&a.push(y.marker.parent||y.marker)}++d}),a},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.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 r,s=this.first,a=this.lineSeparator().length;return this.iter(function(d){var p=d.text.length+a;if(p>e)return r=e,!0;e-=p,++s}),we(this,ae(s,r))},indexFromPos:function(e){e=we(this,e);var r=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){r+=a.text.length+s}),r},copy:function(e){var r=new Nr(Qa(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,s=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<s&&(s=e.to);var a=new Nr(Qa(this,r,s),e.mode||this.modeOption,r,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}],Rl(a,Ju(this)),a},unlinkDoc:function(e){if(e instanceof Dt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),cf(Ju(this));break}}if(e.history==this.history){var a=[e.id];lo(e,function(d){return a.push(d.id)},!0),e.history=new Do(null),e.history.done=pn(this.history.done,a),e.history.undone=pn(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):zo(e)},lineSeparator:function(){return this.lineSep||`
|
|
2857
|
+
`},setDirection:_(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&vs(this.cm))})}),Nr.prototype.eachLine=Nr.prototype.iter;var j0=0;function K0(e){var r=this;if(ec(r),!(Jt(r,e)||Ci(r.display,e))){vr(e),z&&(j0=+new Date);var s=ti(r,e,!0),a=e.dataTransfer.files;if(!(!s||r.isReadOnly()))if(a&&a.length&&window.FileReader&&window.File)for(var d=a.length,p=Array(d),v=0,m=function(){++v==d&&qt(r,function(){s=we(r.doc,s);var F={from:s,to:s,text:r.doc.splitLines(p.filter(function(j){return j!=null}).join(r.doc.lineSeparator())),origin:"paste"};ya(r.doc,F),Il(r.doc,ao(we(r.doc,s),we(r.doc,so(F))))})()},y=function(F,j){if(r.options.allowDropFileTypes&&ze(r.options.allowDropFileTypes,F.type)==-1){m();return}var ne=new FileReader;ne.onerror=function(){return m()},ne.onload=function(){var he=ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){m();return}p[j]=he,m()},ne.readAsText(F)},C=0;C<a.length;C++)y(a[C],C);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var T=e.dataTransfer.getData("Text");if(T){var I;if(r.state.draggingText&&!r.state.draggingText.copy&&(I=r.listSelections()),gn(r.doc,ao(s,s)),I)for(var W=0;W<I.length;++W)xa(r.doc,"",I[W].anchor,I[W].head,"drag");r.replaceSelection(T,"around","paste"),r.display.input.focus()}}catch{}}}}function df(e,r){if(z&&(!e.state.draggingText||+new Date-j0<100)){wo(r);return}if(!(Jt(e,r)||Ci(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!J)){var s=O("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",R&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),R&&s.parentNode.removeChild(s)}}function Qu(e,r){var s=ti(e,r);if(s){var a=document.createDocumentFragment();xi(e,s,a),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),$(e.display.dragCursor,a)}}function ec(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Fl(e){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],a=0;a<r.length;a++){var d=r[a].CodeMirror;d&&s.push(d)}s.length&&s[0].operation(function(){for(var p=0;p<s.length;p++)e(s[p])})}}var Y0=!1;function tc(){Y0||(dt(),Y0=!0)}function dt(){var e;We(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Fl(ff)},100))}),We(window,"blur",function(){return Fl(Io)})}function ff(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.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"},zi=0;zi<10;zi++)ho[zi+48]=ho[zi+96]=String(zi);for(var ws=65;ws<=90;ws++)ho[ws]=String.fromCharCode(ws);for(var xs=1;xs<=12;xs++)ho[xs+111]=ho[xs+63235]="F"+xs;var Li={};Li.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"},Li.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"},Li.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"},Li.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"]},Li.default=ve?Li.macDefault:Li.pcDefault;function Ln(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var s,a,d,p,v=0;v<r.length-1;v++){var m=r[v];if(/^(cmd|meta|m)$/i.test(m))p=!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))d=!0;else throw new Error("Unrecognized modifier name: "+m)}return s&&(e="Alt-"+e),a&&(e="Ctrl-"+e),p&&(e="Cmd-"+e),d&&(e="Shift-"+e),e}function hf(e){var r={};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 d=bt(s.split(" "),Ln),p=0;p<d.length;p++){var v=void 0,m=void 0;p==d.length-1?(m=d.join(" "),v=a):(m=d.slice(0,p+1).join(" "),v="...");var y=r[m];if(!y)r[m]=v;else if(y!=v)throw new Error("Inconsistent bindings for "+m)}delete e[s]}for(var C in r)e[C]=r[C];return e}function Si(e,r,s,a){r=Rr(r);var d=r.call?r.call(e,a):r[e];if(d===!1)return"nothing";if(d==="...")return"multi";if(d!=null&&s(d))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return Si(e,r.fallthrough,s,a);for(var p=0;p<r.fallthrough.length;p++){var v=Si(e,r.fallthrough[p],s,a);if(v)return v}}}function Hl(e){var r=typeof e=="string"?e:ho[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function rc(e,r,s){var a=e;return r.altKey&&a!="Alt"&&(e="Alt-"+e),(je?r.metaKey:r.ctrlKey)&&a!="Ctrl"&&(e="Ctrl-"+e),(je?r.ctrlKey:r.metaKey)&&a!="Mod"&&(e="Cmd-"+e),!s&&r.shiftKey&&a!="Shift"&&(e="Shift-"+e),e}function nc(e,r){if(R&&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),rc(s,e,r))}function Rr(e){return typeof e=="string"?Li[e]:e}function vn(e,r){for(var s=e.doc.sel.ranges,a=[],d=0;d<s.length;d++){for(var p=r(s[d]);a.length&&w(p.from,Qe(a).to)<=0;){var v=a.pop();if(w(v.from,p.from)<0){p.from=v.from;break}}a.push(p)}Or(e,function(){for(var m=a.length-1;m>=0;m--)xa(e.doc,"",a[m].from,a[m].to,"+delete");ro(e)})}function zs(e,r,s){var a=sr(e.text,r+s,s);return a<0||a>e.text.length?null:a}function Bl(e,r,s){var a=zs(e,r.ch,s);return a==null?null:new ae(r.line,a,s<0?"after":"before")}function _a(e,r,s,a,d){if(e){r.doc.direction=="rtl"&&(d=-d);var p=Dr(s,r.doc.direction);if(p){var v=d<0?Qe(p):p[0],m=d<0==(v.level==1),y=m?"after":"before",C;if(v.level>0||r.doc.direction=="rtl"){var T=Bn(r,s);C=d<0?s.text.length-1:0;var I=ei(r,T,C).top;C=Lr(function(W){return ei(r,T,W).top==I},d<0==(v.level==1)?v.from:v.to-1,C),y=="before"&&(C=zs(s,C,1))}else C=d<0?v.to:v.from;return new ae(a,C,y)}}return new ae(a,d<0?s.text.length:0,d<0?"before":"after")}function X0(e,r,s,a){var d=Dr(r,e.doc.direction);if(!d)return Bl(r,s,a);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var p=Ut(d,s.ch,s.sticky),v=d[p];if(e.doc.direction=="ltr"&&v.level%2==0&&(a>0?v.to>s.ch:v.from<s.ch))return Bl(r,s,a);var m=function(me,xe){return zs(r,me instanceof ae?me.ch:me,xe)},y,C=function(me){return e.options.lineWrapping?(y=y||Bn(e,r),G(e,r,y,me)):{begin:0,end:r.text.length}},T=C(s.sticky=="before"?m(s,-1):s.ch);if(e.doc.direction=="rtl"||v.level==1){var I=v.level==1==a<0,W=m(s,I?1:-1);if(W!=null&&(I?W<=v.to&&W<=T.end:W>=v.from&&W>=T.begin)){var F=I?"before":"after";return new ae(s.line,W,F)}}var j=function(me,xe,ye){for(var Se=function(It,rr){return rr?new ae(s.line,m(It,1),"before"):new ae(s.line,It,"after")};me>=0&&me<d.length;me+=xe){var Fe=d[me],Pe=xe>0==(Fe.level!=1),ut=Pe?ye.begin:m(ye.end,-1);if(Fe.from<=ut&&ut<Fe.to||(ut=Pe?Fe.from:m(Fe.to,-1),ye.begin<=ut&&ut<ye.end))return Se(ut,Pe)}},ne=j(p+a,a,T);if(ne)return ne;var he=a>0?T.end:m(T.begin,-1);return he!=null&&!(a>0&&he==r.text.length)&&(ne=j(a>0?0:d.length-1,a,C(he)),ne)?ne:null}var Ho={selectAll:H0,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),st)},killLine:function(e){return vn(e,function(r){if(r.empty()){var s=Ee(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<e.lastLine()?{from:r.head,to:ae(r.head.line+1,0)}:{from:r.head,to:ae(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:we(e.doc,ae(r.to().line+1,0))}})},delLineLeft:function(e){return vn(e,function(r){return{from:ae(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return{from:a,to:r.from()}})},delWrappedLineRight:function(e){return vn(e,function(r){var s=e.charCoords(r.head,"div").top+5,a=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.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(ae(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ae(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return ic(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return Wl(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return oc(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},Ze)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},Ze)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5,a=e.coordsChar({left:0,top:s},"div");return a.ch<e.getLine(a.line).search(/\S/)?Wl(e,r.head):a},Ze)},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 r=[],s=e.listSelections(),a=e.options.tabSize,d=0;d<s.length;d++){var p=s[d].from(),v=xt(e.getLine(p.line),p.ch,a);r.push(tr(a-v%a))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Or(e,function(){for(var r=e.listSelections(),s=[],a=0;a<r.length;a++)if(r[a].empty()){var d=r[a].head,p=Ee(e.doc,d.line).text;if(p){if(d.ch==p.length&&(d=new ae(d.line,d.ch-1)),d.ch>0)d=new ae(d.line,d.ch+1),e.replaceRange(p.charAt(d.ch-1)+p.charAt(d.ch-2),ae(d.line,d.ch-2),d,"+transpose");else if(d.line>e.doc.first){var v=Ee(e.doc,d.line-1).text;v&&(d=new ae(d.line,1),e.replaceRange(p.charAt(0)+e.doc.lineSeparator()+v.charAt(v.length-1),ae(d.line-1,v.length-1),d,"+transpose"))}}s.push(new Lt(d,d))}e.setSelections(s)})},newlineAndIndent:function(e){return Or(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var a=0;a<r.length;a++)e.indentLine(r[a].from().line,null,!0);ro(e)})},openLine:function(e){return e.replaceSelection(`
|
|
2858
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ic(e,r){var s=Ee(e.doc,r),a=Qn(s);return a!=s&&(r=zt(a)),_a(!0,e,a,r,1)}function oc(e,r){var s=Ee(e.doc,r),a=N1(s);return a!=s&&(r=zt(a)),_a(!0,e,s,r,-1)}function Wl(e,r){var s=ic(e,r.line),a=Ee(e.doc,s.line),d=Dr(a,e.doc.direction);if(!d||d[0].level==0){var p=Math.max(s.ch,a.text.search(/\S/)),v=r.line==s.line&&r.ch<=p&&r.ch;return ae(s.line,v?0:p,s.sticky)}return s}function Vn(e,r,s){if(typeof r=="string"&&(r=Ho[r],!r))return!1;e.display.input.ensurePolled();var a=e.display.shift,d=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),d=r(e)!=Ge}finally{e.display.shift=a,e.state.suppressEdits=!1}return d}function pf(e,r,s){for(var a=0;a<e.state.keyMaps.length;a++){var d=Si(r,e.state.keyMaps[a],s,e);if(d)return d}return e.options.extraKeys&&Si(r,e.options.extraKeys,s,e)||Si(r,e.options.keyMap,s,e)}var po=new rt;function Ma(e,r,s,a){var d=e.state.keySeq;if(d){if(Hl(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:po.set(50,function(){e.state.keySeq==d&&(e.state.keySeq=null,e.display.input.reset())}),ac(e,d+" "+r,s,a))return!0}return ac(e,r,s,a)}function ac(e,r,s,a){var d=pf(e,r,a);return d=="multi"&&(e.state.keySeq=r),d=="handled"&&lr(e,"keyHandled",e,r,s),(d=="handled"||d=="multi")&&(vr(s),fa(e)),!!d}function Ul(e,r){var s=nc(r,!0);return s?r.shiftKey&&!e.state.keySeq?Ma(e,"Shift-"+s,r,function(a){return Vn(e,a,!0)})||Ma(e,s,r,function(a){if(typeof a=="string"?/^go[A-Z]/.test(a):a.motion)return Vn(e,a)}):Ma(e,s,r,function(a){return Vn(e,a)}):!1}function gf(e,r,s){return Ma(e,"'"+s+"'",r,function(a){return Vn(e,a,!0)})}var sc=null;function J0(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=Ae(),!Jt(r,e))){z&&S<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var a=Ul(r,e);R&&(sc=a?s:null,!a&&s==88&&!il&&(ve?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),c&&!ve&&!a&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Q0(r)}}function Q0(e){var r=e.display.lineDiv;et(r,"CodeMirror-crosshair");function s(a){(a.keyCode==18||!a.altKey)&&(le(r,"CodeMirror-crosshair"),Sr(document,"keyup",s),Sr(document,"mouseover",s))}We(document,"keyup",s),We(document,"mouseover",s)}function lc(e){e.keyCode==16&&(this.doc.sel.shift=!1),Jt(this,e)}function ed(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(Ci(r.display,e)||Jt(r,e)||e.ctrlKey&&!e.altKey||ve&&e.metaKey)){var s=e.keyCode,a=e.charCode;if(R&&s==sc){sc=null,vr(e);return}if(!(R&&(!e.which||e.which<10)&&Ul(r,e))){var d=String.fromCharCode(a==null?s:a);d!="\b"&&(gf(r,e,d)||r.display.input.onKeyPress(e))}}}var td=400,Vl=function(e,r,s){this.time=e,this.pos=r,this.button=s};Vl.prototype.compare=function(e,r,s){return this.time+td>e&&w(r,this.pos)==0&&s==this.button};var yr,an;function vf(e,r){var s=+new Date;return an&&an.compare(s,e,r)?(yr=an=null,"triple"):yr&&yr.compare(s,e,r)?(an=new Vl(s,e,r),yr=null,"double"):(yr=new Vl(s,e,r),an=null,"single")}function rd(e){var r=this,s=r.display;if(!(Jt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,Ci(s,e)){E||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!uc(r,e)){var a=ti(r,e),d=ja(e),p=a?vf(a,d):"single";window.focus(),d==1&&r.state.selectingText&&r.state.selectingText(e),!(a&&Zl(r,d,a,p,e))&&(d==1?a?nd(r,a,p,e):Ui(e)==s.scroller&&vr(e):d==2?(a&&El(r.doc,a),setTimeout(function(){return s.input.focus()},20)):d==3&&(Ye?r.display.input.onContextMenu(e):zl(r)))}}}function Zl(e,r,s,a,d){var p="Click";return a=="double"?p="Double"+p:a=="triple"&&(p="Triple"+p),p=(r==1?"Left":r==2?"Middle":"Right")+p,Ma(e,rc(p,d),d,function(v){if(typeof v=="string"&&(v=Ho[v]),!v)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=v(e,s)!=Ge}finally{e.state.suppressEdits=!1}return m})}function Ta(e,r,s){var a=e.getOption("configureMouse"),d=a?a(e,r,s):{};if(d.unit==null){var p=Oe?s.shiftKey&&s.metaKey:s.altKey;d.unit=p?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(d.extend==null||e.doc.extend)&&(d.extend=e.doc.extend||s.shiftKey),d.addNew==null&&(d.addNew=ve?s.metaKey:s.ctrlKey),d.moveOnDrag==null&&(d.moveOnDrag=!(ve?s.altKey:s.ctrlKey)),d}function nd(e,r,s,a){z?setTimeout(or(Ru,e),0):e.curOp.focus=Ae();var d=Ta(e,s,a),p=e.doc.sel,v;e.options.dragDrop&&Ka&&!e.isReadOnly()&&s=="single"&&(v=p.contains(r))>-1&&(w((v=p.ranges[v]).from(),r)<0||r.xRel>0)&&(w(v.to(),r)>0||r.xRel<0)?id(e,a,r,d):ad(e,a,r,d)}function id(e,r,s,a){var d=e.display,p=!1,v=qt(e,function(C){E&&(d.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:zl(e)),Sr(d.wrapper.ownerDocument,"mouseup",v),Sr(d.wrapper.ownerDocument,"mousemove",m),Sr(d.scroller,"dragstart",y),Sr(d.scroller,"drop",v),p||(vr(C),a.addNew||El(e.doc,s,null,null,a.extend),E&&!J||z&&S==9?setTimeout(function(){d.wrapper.ownerDocument.body.focus({preventScroll:!0}),d.input.focus()},20):d.input.focus())}),m=function(C){p=p||Math.abs(r.clientX-C.clientX)+Math.abs(r.clientY-C.clientY)>=10},y=function(){return p=!0};E&&(d.scroller.draggable=!0),e.state.draggingText=v,v.copy=!a.moveOnDrag,We(d.wrapper.ownerDocument,"mouseup",v),We(d.wrapper.ownerDocument,"mousemove",m),We(d.scroller,"dragstart",y),We(d.scroller,"drop",v),e.state.delayingBlurEvent=!0,setTimeout(function(){return d.input.focus()},20),d.scroller.dragDrop&&d.scroller.dragDrop()}function od(e,r,s){if(s=="char")return new Lt(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new Lt(ae(r.line,0),we(e.doc,ae(r.line+1,0)));var a=s(e,r);return new Lt(a.from,a.to)}function ad(e,r,s,a){z&&zl(e);var d=e.display,p=e.doc;vr(r);var v,m,y=p.sel,C=y.ranges;if(a.addNew&&!a.extend?(m=p.sel.contains(s),m>-1?v=C[m]:v=new Lt(s,s)):(v=p.sel.primary(),m=p.sel.primIndex),a.unit=="rectangle")a.addNew||(v=new Lt(s,s)),s=ti(e,r,!0,!0),m=-1;else{var T=od(e,s,a.unit);a.extend?v=kl(v,T.anchor,T.head,a.extend):v=T}a.addNew?m==-1?(m=C.length,br(p,Er(e,C.concat([v]),m),{scroll:!1,origin:"*mouse"})):C.length>1&&C[m].empty()&&a.unit=="char"&&!a.extend?(br(p,Er(e,C.slice(0,m).concat(C.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),y=p.sel):Yu(p,m,v,lt):(m=0,br(p,new hn([v],0),lt),y=p.sel);var I=s;function W(ye){if(w(I,ye)!=0)if(I=ye,a.unit=="rectangle"){for(var Se=[],Fe=e.options.tabSize,Pe=xt(Ee(p,s.line).text,s.ch,Fe),ut=xt(Ee(p,ye.line).text,ye.ch,Fe),It=Math.min(Pe,ut),rr=Math.max(Pe,ut),Nt=Math.min(s.line,ye.line),Hr=Math.min(e.lastLine(),Math.max(s.line,ye.line));Nt<=Hr;Nt++){var Br=Ee(p,Nt).text,Xt=Vt(Br,It,Fe);It==rr?Se.push(new Lt(ae(Nt,Xt),ae(Nt,Xt))):Br.length>Xt&&Se.push(new Lt(ae(Nt,Xt),ae(Nt,Vt(Br,rr,Fe))))}Se.length||Se.push(new Lt(s,s)),br(p,Er(e,y.ranges.slice(0,m).concat(Se),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ye)}else{var Cr=v,cr=od(e,ye,a.unit),$t=Cr.anchor,Ht;w(cr.anchor,$t)>0?(Ht=cr.head,$t=Ke(Cr.from(),cr.anchor)):(Ht=cr.anchor,$t=ce(Cr.to(),cr.head));var jt=y.ranges.slice(0);jt[m]=Oa(e,new Lt(we(p,$t),Ht)),br(p,Er(e,jt,m),lt)}}var F=d.wrapper.getBoundingClientRect(),j=0;function ne(ye){var Se=++j,Fe=ti(e,ye,!0,a.unit=="rectangle");if(Fe)if(w(Fe,I)!=0){e.curOp.focus=Ae(),W(Fe);var Pe=Ao(d,p);(Fe.line>=Pe.to||Fe.line<Pe.from)&&setTimeout(qt(e,function(){j==Se&&ne(ye)}),150)}else{var ut=ye.clientY<F.top?-20:ye.clientY>F.bottom?20:0;ut&&setTimeout(qt(e,function(){j==Se&&(d.scroller.scrollTop+=ut,ne(ye))}),50)}}function he(ye){e.state.selectingText=!1,j=1/0,ye&&(vr(ye),d.input.focus()),Sr(d.wrapper.ownerDocument,"mousemove",me),Sr(d.wrapper.ownerDocument,"mouseup",xe),p.history.lastSelOrigin=null}var me=qt(e,function(ye){ye.buttons===0||!ja(ye)?he(ye):ne(ye)}),xe=qt(e,he);e.state.selectingText=xe,We(d.wrapper.ownerDocument,"mousemove",me),We(d.wrapper.ownerDocument,"mouseup",xe)}function Oa(e,r){var s=r.anchor,a=r.head,d=Ee(e.doc,s.line);if(w(s,a)==0&&s.sticky==a.sticky)return r;var p=Dr(d);if(!p)return r;var v=Ut(p,s.ch,s.sticky),m=p[v];if(m.from!=s.ch&&m.to!=s.ch)return r;var y=v+(m.from==s.ch==(m.level!=1)?0:1);if(y==0||y==p.length)return r;var C;if(a.line!=s.line)C=(a.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var T=Ut(p,a.ch,a.sticky),I=T-v||(a.ch-s.ch)*(m.level==1?-1:1);T==y-1||T==y?C=I<0:C=I>0}var W=p[y+(C?-1:0)],F=C==(W.level==1),j=F?W.from:W.to,ne=F?"after":"before";return s.ch==j&&s.sticky==ne?r:new Lt(new ae(s.line,j,ne),a)}function ka(e,r,s,a){var d,p;if(r.touches)d=r.touches[0].clientX,p=r.touches[0].clientY;else try{d=r.clientX,p=r.clientY}catch{return!1}if(d>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;a&&vr(r);var v=e.display,m=v.lineDiv.getBoundingClientRect();if(p>m.bottom||!gr(e,s))return ln(r);p-=m.top-v.viewOffset;for(var y=0;y<e.display.gutterSpecs.length;++y){var C=v.gutters.childNodes[y];if(C&&C.getBoundingClientRect().right>=d){var T=Fn(e.doc,p),I=e.display.gutterSpecs[y];return qe(e,s,e,T,I.className,r),ln(r)}}}function uc(e,r){return ka(e,r,"gutterClick",!0)}function cc(e,r){Ci(e.display,r)||sd(e,r)||Jt(e,r,"contextmenu")||Ye||e.display.input.onContextMenu(r)}function sd(e,r){return gr(e,"gutterContextMenu")?ka(e,r,"gutterContextMenu",!1):!1}function Ls(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ss(e)}var Bo={toString:function(){return"CodeMirror.Init"}},Ss={},Ea={};function Gl(e){var r=e.optionHandlers;function s(a,d,p,v){e.defaults[a]=d,p&&(r[a]=v?function(m,y,C){C!=Bo&&p(m,y,C)}:p)}e.defineOption=s,e.Init=Bo,s("value","",function(a,d){return a.setValue(d)},!0),s("mode",null,function(a,d){a.doc.modeOption=d,Zu(a)},!0),s("indentUnit",2,Zu,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(a){gs(a),ss(a),ot(a)},!0),s("lineSeparator",null,function(a,d){if(a.doc.lineSep=d,!!d){var p=[],v=a.doc.first;a.doc.iter(function(y){for(var C=0;;){var T=y.text.indexOf(d,C);if(T==-1)break;C=T+d.length,p.push(ae(v,T))}v++});for(var m=p.length-1;m>=0;m--)xa(a.doc,d,p[m],ae(p[m].line,p[m].ch+d.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(a,d,p){a.state.specialChars=new RegExp(d.source+(d.test(" ")?"":"| "),"g"),p!=Bo&&a.refresh()}),s("specialCharPlaceholder",fn,function(a){return a.refresh()},!0),s("electricChars",!0),s("inputStyle",be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(a,d){return a.getInputField().spellcheck=d},!0),s("autocorrect",!1,function(a,d){return a.getInputField().autocorrect=d},!0),s("autocapitalize",!1,function(a,d){return a.getInputField().autocapitalize=d},!0),s("rtlMoveVisually",!$e),s("wholeLineUpdateBefore",!0),s("theme","default",function(a){Ls(a),ps(a)},!0),s("keyMap","default",function(a,d,p){var v=Rr(d),m=p!=Bo&&Rr(p);m&&m.detach&&m.detach(a,v),v.attach&&v.attach(a,m||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,ld,!0),s("gutters",[],function(a,d){a.display.gutterSpecs=Uu(d,a.options.lineNumbers),ps(a)},!0),s("fixedGutter",!0,function(a,d){a.display.gutters.style.left=d?da(a.display)+"px":"0",a.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(a){return io(a)},!0),s("scrollbarStyle","native",function(a){Po(a),io(a),a.display.scrollbars.setScrollTop(a.doc.scrollTop),a.display.scrollbars.setScrollLeft(a.doc.scrollLeft)},!0),s("lineNumbers",!1,function(a,d){a.display.gutterSpecs=Uu(a.options.gutters,d),ps(a)},!0),s("firstLineNumber",1,ps,!0),s("lineNumberFormatter",function(a){return a},ps,!0),s("showCursorWhenSelecting",!1,ls,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(a,d){d=="nocursor"&&(Io(a),a.display.input.blur()),a.display.input.readOnlyChanged(d)}),s("screenReaderLabel",null,function(a,d){d=d===""?null:d,a.display.input.screenReaderLabelChanged(d)}),s("disableInput",!1,function(a,d){d||a.display.input.reset()},!0),s("dragDrop",!0,bf),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,ls,!0),s("singleCursorHeightPerLine",!0,ls,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,gs,!0),s("addModeClass",!1,gs,!0),s("pollInterval",100),s("undoDepth",200,function(a,d){return a.doc.history.undoDepth=d}),s("historyEventDelay",1250),s("viewportMargin",10,function(a){return a.refresh()},!0),s("maxHighlightLength",1e4,gs,!0),s("moveInputWithCursor",!0,function(a,d){d||a.display.input.resetPosition()}),s("tabindex",null,function(a,d){return a.display.input.getField().tabIndex=d||""}),s("autofocus",null),s("direction","ltr",function(a,d){return a.doc.setDirection(d)},!0),s("phrases",null)}function bf(e,r,s){var a=s&&s!=Bo;if(!r!=!a){var d=e.display.dragFunctions,p=r?We:Sr;p(e.display.scroller,"dragstart",d.start),p(e.display.scroller,"dragenter",d.enter),p(e.display.scroller,"dragover",d.over),p(e.display.scroller,"dragleave",d.leave),p(e.display.scroller,"drop",d.drop)}}function ld(e){e.options.lineWrapping?(et(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(le(e.display.wrapper,"CodeMirror-wrap"),is(e)),Ji(e),ot(e),ss(e),setTimeout(function(){return io(e)},100)}function Dt(e,r){var s=this;if(!(this instanceof Dt))return new Dt(e,r);this.options=r=r?Mt(r):{},Mt(Ss,r,!1);var a=r.value;typeof a=="string"?a=new Nr(a,r.mode,null,r.lineSeparator,r.direction):r.mode&&(a.modeOption=r.mode),this.doc=a;var d=new Dt.inputStyles[r.inputStyle](this),p=this.display=new of(e,a,d,r);p.wrapper.CodeMirror=this,Ls(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Po(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 rt,keySeq:null,specialChars:null},r.autofocus&&!be&&p.input.focus(),z&&S<11&&setTimeout(function(){return s.display.input.reset(!0)},20),ud(this),tc(),Un(this),this.curOp.forceUpdate=!0,D0(this,a),r.autofocus&&!be||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&ha(s)},20):Io(this);for(var v in Ea)Ea.hasOwnProperty(v)&&Ea[v](this,r[v],Bo);oi(this),r.finishInit&&r.finishInit(this);for(var m=0;m<_s.length;++m)_s[m](this);ni(this),E&&r.lineWrapping&&getComputedStyle(p.lineDiv).textRendering=="optimizelegibility"&&(p.lineDiv.style.textRendering="auto")}Dt.defaults=Ss,Dt.optionHandlers=Ea;function ud(e){var r=e.display;We(r.scroller,"mousedown",qt(e,rd)),z&&S<11?We(r.scroller,"dblclick",qt(e,function(y){if(!Jt(e,y)){var C=ti(e,y);if(!(!C||uc(e,y)||Ci(e.display,y))){vr(y);var T=e.findWordAt(C);El(e.doc,T.anchor,T.head)}}})):We(r.scroller,"dblclick",function(y){return Jt(e,y)||vr(y)}),We(r.scroller,"contextmenu",function(y){return cc(e,y)}),We(r.input.getField(),"contextmenu",function(y){r.scroller.contains(y.target)||cc(e,y)});var s,a={end:0};function d(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function p(y){if(y.touches.length!=1)return!1;var C=y.touches[0];return C.radiusX<=1&&C.radiusY<=1}function v(y,C){if(C.left==null)return!0;var T=C.left-y.left,I=C.top-y.top;return T*T+I*I>20*20}We(r.scroller,"touchstart",function(y){if(!Jt(e,y)&&!p(y)&&!uc(e,y)){r.input.ensurePolled(),clearTimeout(s);var C=+new Date;r.activeTouch={start:C,moved:!1,prev:C-a.end<=300?a:null},y.touches.length==1&&(r.activeTouch.left=y.touches[0].pageX,r.activeTouch.top=y.touches[0].pageY)}}),We(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),We(r.scroller,"touchend",function(y){var C=r.activeTouch;if(C&&!Ci(r,y)&&C.left!=null&&!C.moved&&new Date-C.start<300){var T=e.coordsChar(r.activeTouch,"page"),I;!C.prev||v(C,C.prev)?I=new Lt(T,T):!C.prev.prev||v(C,C.prev.prev)?I=e.findWordAt(T):I=new Lt(ae(T.line,0),we(e.doc,ae(T.line+1,0))),e.setSelection(I.anchor,I.head),e.focus(),vr(y)}d()}),We(r.scroller,"touchcancel",d),We(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Gt(e,r.scroller.scrollTop),$o(e,r.scroller.scrollLeft,!0),qe(e,"scroll",e))}),We(r.scroller,"mousewheel",function(y){return $0(e,y)}),We(r.scroller,"DOMMouseScroll",function(y){return $0(e,y)}),We(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(y){Jt(e,y)||wo(y)},over:function(y){Jt(e,y)||(Qu(e,y),wo(y))},start:function(y){return df(e,y)},drop:qt(e,K0),leave:function(y){Jt(e,y)||ec(e)}};var m=r.input.getField();We(m,"keyup",function(y){return lc.call(e,y)}),We(m,"keydown",qt(e,J0)),We(m,"keypress",qt(e,ed)),We(m,"focus",function(y){return ha(e,y)}),We(m,"blur",function(y){return Io(e,y)})}var _s=[];Dt.defineInitHook=function(e){return _s.push(e)};function Ms(e,r,s,a){var d=e.doc,p;s==null&&(s="add"),s=="smart"&&(d.mode.indent?p=sa(e,r).state:s="prev");var v=e.options.tabSize,m=Ee(d,r),y=xt(m.text,null,v);m.stateAfter&&(m.stateAfter=null);var C=m.text.match(/^\s*/)[0],T;if(!a&&!/\S/.test(m.text))T=0,s="not";else if(s=="smart"&&(T=d.mode.indent(p,m.text.slice(C.length),m.text),T==Ge||T>150)){if(!a)return;s="prev"}s=="prev"?r>d.first?T=xt(Ee(d,r-1).text,null,v):T=0:s=="add"?T=y+e.options.indentUnit:s=="subtract"?T=y-e.options.indentUnit:typeof s=="number"&&(T=y+s),T=Math.max(0,T);var I="",W=0;if(e.options.indentWithTabs)for(var F=Math.floor(T/v);F;--F)W+=v,I+=" ";if(W<T&&(I+=tr(T-W)),I!=C)return xa(d,I,ae(r,0),ae(r,C.length),"+input"),m.stateAfter=null,!0;for(var j=0;j<d.sel.ranges.length;j++){var ne=d.sel.ranges[j];if(ne.head.line==r&&ne.head.ch<C.length){var he=ae(r,C.length);Yu(d,j,new Lt(he,he));break}}}var Sn=null;function _n(e){Sn=e}function ql(e,r,s,a,d){var p=e.doc;e.display.shift=!1,a||(a=p.sel);var v=+new Date-200,m=d=="paste"||e.state.pasteIncoming>v,y=zo(r),C=null;if(m&&a.ranges.length>1)if(Sn&&Sn.text.join(`
|
|
2859
|
+
`)==r){if(a.ranges.length%Sn.text.length==0){C=[];for(var T=0;T<Sn.text.length;T++)C.push(p.splitLines(Sn.text[T]))}}else y.length==a.ranges.length&&e.options.pasteLinesPerSelection&&(C=bt(y,function(me){return[me]}));for(var I=e.curOp.updateInput,W=a.ranges.length-1;W>=0;W--){var F=a.ranges[W],j=F.from(),ne=F.to();F.empty()&&(s&&s>0?j=ae(j.line,j.ch-s):e.state.overwrite&&!m?ne=ae(ne.line,Math.min(Ee(p,ne.line).text.length,ne.ch+Qe(y).length)):m&&Sn&&Sn.lineWise&&Sn.text.join(`
|
|
2859
2860
|
`)==y.join(`
|
|
2860
|
-
`)&&(j=ne=ae(j.line,0)));var he={from:j,to:ne,text:C?C[W%C.length]:y,origin:d||(m?"paste":e.state.cutIncoming>v?"cut":"+input")};ya(e.doc,he),lr(e,"inputRead",e,he)}r&&!m&&cd(e,r),to(e),e.curOp.updateInput<2&&(e.curOp.updateInput=I),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function dc(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Or(r,function(){return Gl(r,s,0,null,"paste")}),!0}function cd(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var d=s.ranges[a];if(!(d.head.ch>100||a&&s.ranges[a-1].head.line==d.head.line)){var p=e.getModeAt(d.head),v=!1;if(p.electricChars){for(var m=0;m<p.electricChars.length;m++)if(r.indexOf(p.electricChars.charAt(m))>-1){v=Ms(e,d.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(ke(e.doc,d.head.line).text.slice(0,d.head.ch))&&(v=Ms(e,d.head.line,"smart"));v&&lr(e,"electricInput",e,d.head.line)}}}function fc(e){for(var r=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var d=e.doc.sel.ranges[a].head.line,p={anchor:ae(d,0),head:ae(d+1,0)};s.push(p),r.push(e.getRange(p.anchor,p.head))}return{text:r,ranges:s}}function dd(e,r,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!r)}function fd(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return k?e.style.width="1000px":e.setAttribute("wrap","off"),Te&&(e.style.border="1px solid black"),dd(e),r}function _i(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,d){var p=this.options,v=p[a];p[a]==d&&a!="mode"||(p[a]=d,r.hasOwnProperty(a)&&qt(this,r[a])(this,d,v),qe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,d){this.state.keyMaps[d?"push":"unshift"](Rr(a))},removeKeyMap:function(a){for(var d=this.state.keyMaps,p=0;p<d.length;++p)if(d[p]==a||d[p].name==a)return d.splice(p,1),!0},addOverlay:Er(function(a,d){var p=a.token?a:e.getMode(this.options,a);if(p.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:p,modeSpec:a,opaque:d&&d.opaque,priority:d&&d.priority||0},function(v){return v.priority}),this.state.modeGen++,ot(this)}),removeOverlay:Er(function(a){for(var d=this.state.overlays,p=0;p<d.length;++p){var v=d[p].modeSpec;if(v==a||typeof a=="string"&&v.name==a){d.splice(p,1),this.state.modeGen++,ot(this);return}}}),indentLine:Er(function(a,d,p){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),Vi(this.doc,a)&&Ms(this,a,d,p)}),indentSelection:Er(function(a){for(var d=this.doc.sel.ranges,p=-1,v=0;v<d.length;v++){var m=d[v];if(m.empty())m.head.line>p&&(Ms(this,m.head.line,a,!0),p=m.head.line,v==this.doc.sel.primIndex&&to(this));else{var y=m.from(),C=m.to(),T=Math.max(p,y.line);p=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var I=T;I<p;++I)Ms(this,I,a);var W=this.doc.sel.ranges;y.ch==0&&d.length==W.length&&W[v].from().ch>0&&Yu(this.doc,v,new Lt(y,W[v].to()),st)}}}),getTokenAt:function(a,d){return sl(this,a,d)},getLineTokens:function(a,d){return sl(this,ae(a),d,!0)},getTokenTypeAt:function(a){a=we(this.doc,a);var d=xu(this,ke(this.doc,a.line)),p=0,v=(d.length-1)/2,m=a.ch,y;if(m==0)y=d[2];else for(;;){var C=p+v>>1;if((C?d[C*2-1]:0)>=m)v=C;else if(d[C*2+1]<m)p=C+1;else{y=d[C*2+2];break}}var T=y?y.indexOf("overlay "):-1;return T<0?y:T==0?null:y.slice(0,T-1)},getModeAt:function(a){var d=this.doc.mode;return d.innerMode?e.innerMode(d,this.getTokenAt(a).state).mode:d},getHelper:function(a,d){return this.getHelpers(a,d)[0]},getHelpers:function(a,d){var p=[];if(!s.hasOwnProperty(d))return p;var v=s[d],m=this.getModeAt(a);if(typeof m[d]=="string")v[m[d]]&&p.push(v[m[d]]);else if(m[d])for(var y=0;y<m[d].length;y++){var C=v[m[d][y]];C&&p.push(C)}else m.helperType&&v[m.helperType]?p.push(v[m.helperType]):v[m.name]&&p.push(v[m.name]);for(var T=0;T<v._global.length;T++){var I=v._global[T];I.pred(m,this)&&ze(p,I.val)==-1&&p.push(I.val)}return p},getStateAfter:function(a,d){var p=this.doc;return a=gt(p,a==null?p.first+p.size-1:a),sa(this,a+1,d).state},cursorCoords:function(a,d){var p,v=this.doc.sel.primary();return a==null?p=v.head:typeof a=="object"?p=we(this.doc,a):p=a?v.from():v.to(),Wn(this,p,d||"page")},charCoords:function(a,d){return wl(this,we(this.doc,a),d||"page")},coordsChar:function(a,d){return a=L0(this,a,d||"page"),U(this,a.left,a.top)},lineAtHeight:function(a,d){return a=L0(this,{top:a,left:0},d||"page").top,Fn(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,d,p){var v=!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,v=!0),m=ke(this.doc,a)}else m=a;return Cl(this,m,{top:0,left:0},d||"page",p||v).top+(v?this.doc.height-jr(m):0)},defaultTextHeight:function(){return Yi(this.display)},defaultCharWidth:function(){return ca(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,d,p,v,m){var y=this.display;a=Wn(this,we(this.doc,a));var C=a.bottom,T=a.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),y.sizer.appendChild(d),v=="over")C=a.top;else if(v=="above"||v=="near"){var I=Math.max(y.wrapper.clientHeight,this.doc.height),W=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(v=="above"||a.bottom+d.offsetHeight>I)&&a.top>d.offsetHeight?C=a.top-d.offsetHeight:a.bottom+d.offsetHeight<=I&&(C=a.bottom),T+d.offsetWidth>W&&(T=W-d.offsetWidth)}d.style.top=C+"px",d.style.left=d.style.right="",m=="right"?(T=y.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(m=="left"?T=0:m=="middle"&&(T=(y.sizer.clientWidth-d.offsetWidth)/2),d.style.left=T+"px"),p&&K1(this,{left:T,top:C,right:T+d.offsetWidth,bottom:C+d.offsetHeight})},triggerOnKeyDown:Er(J0),triggerOnKeyPress:Er(ed),triggerOnKeyUp:lc,triggerOnMouseDown:Er(rd),execCommand:function(a){if(Ho.hasOwnProperty(a))return Ho[a].call(null,this)},triggerElectric:Er(function(a){cd(this,a)}),findPosH:function(a,d,p,v){var m=1;d<0&&(m=-1,d=-d);for(var y=we(this.doc,a),C=0;C<d&&(y=Ts(this.doc,y,m,p,v),!y.hitSide);++C);return y},moveH:Er(function(a,d){var p=this;this.extendSelectionsBy(function(v){return p.display.shift||p.doc.extend||v.empty()?Ts(p.doc,v.head,a,d,p.options.rtlMoveVisually):a<0?v.from():v.to()},Ze)}),deleteH:Er(function(a,d){var p=this.doc.sel,v=this.doc;p.somethingSelected()?v.replaceSelection("",null,"+delete"):vn(this,function(m){var y=Ts(v,m.head,a,d,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,d,p,v){var m=1,y=v;d<0&&(m=-1,d=-d);for(var C=we(this.doc,a),T=0;T<d;++T){var I=Wn(this,C,"div");if(y==null?y=I.left:I.left=y,C=ql(this,I,m,p),C.hitSide)break}return C},moveV:Er(function(a,d){var p=this,v=this.doc,m=[],y=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(T){if(y)return a<0?T.from():T.to();var I=Wn(p,T.head,"div");T.goalColumn!=null&&(I.left=T.goalColumn),m.push(I.left);var W=ql(p,I,a,d);return d=="page"&&T==v.sel.primary()&&ga(p,wl(p,W,"div").top-I.top),W},Ze),m.length)for(var C=0;C<v.sel.ranges.length;C++)v.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var d=this.doc,p=ke(d,a.line).text,v=a.ch,m=a.ch;if(p){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==p.length)&&v?--v:++m;for(var C=p.charAt(v),T=Z(C,y)?function(I){return Z(I,y)}:/\s/.test(C)?function(I){return/\s/.test(I)}:function(I){return!/\s/.test(I)&&!Z(I)};v>0&&T(p.charAt(v-1));)--v;for(;m<p.length&&T(p.charAt(m));)++m}return new Lt(ae(a.line,v),ae(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?et(this.display.cursorDiv,"CodeMirror-overwrite"):le(this.display.cursorDiv,"CodeMirror-overwrite"),qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(a,d){cs(this,a,d)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-nn(this)-this.display.barHeight,width:a.scrollWidth-nn(this)-this.display.barWidth,clientHeight:vl(this),clientWidth:qi(this)}},scrollIntoView:Er(function(a,d){a==null?(a={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ae(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=d||0,a.from.line!=null?O0(this,a):E0(this,a.from,a.to,a.margin)}),setSize:Er(function(a,d){var p=this,v=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=v(a)),d!=null&&(this.display.wrapper.style.height=v(d)),this.options.lineWrapping&&z0(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(p,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,qe(this,"refresh",this)}),operation:function(a){return Or(this,a)},startOperation:function(){return Un(this)},endOperation:function(){return ni(this)},refresh:Er(function(){var a=this.display.cachedTextHeight;ot(this),this.curOp.forceUpdate=!0,ss(this),cs(this,this.doc.scrollLeft,this.doc.scrollTop),Bu(this.display),(a==null||Math.abs(a-Yi(this.display))>.5||this.options.lineWrapping)&&Xi(this),qe(this,"refresh",this)}),swapDoc:Er(function(a){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),D0(this,a),ss(this),this.display.input.reset(),cs(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,lr(this,"swapDoc",this,d),d}),phrase:function(a){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,a)?d[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}},Dn(e),e.registerHelper=function(a,d,p){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][d]=p},e.registerGlobalHelper=function(a,d,p,v){e.registerHelper(a,d,v),s[a]._global.push({pred:p,val:v})}}function Ts(e,r,s,a,d){var p=r,v=s,m=ke(e,r.line),y=d&&e.direction=="rtl"?-s:s;function C(){var xe=r.line+y;return xe<e.first||xe>=e.first+e.size?!1:(r=new ae(xe,r.ch,r.sticky),m=ke(e,xe))}function T(xe){var ye;if(a=="codepoint"){var Se=m.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(Se))ye=null;else{var Fe=s>0?Se>=55296&&Se<56320:Se>=56320&&Se<57343;ye=new ae(r.line,Math.max(0,Math.min(m.text.length,r.ch+s*(Fe?2:1))),-s)}}else d?ye=X0(e.cm,m,r,s):ye=Hl(m,r,s);if(ye==null)if(!xe&&C())r=_a(d,e.cm,m,r.line,y);else return!1;else r=ye;return!0}if(a=="char"||a=="codepoint")T();else if(a=="column")T(!0);else if(a=="word"||a=="group")for(var I=null,W=a=="group",F=e.cm&&e.cm.getHelper(r,"wordChars"),j=!0;!(s<0&&!T(!j));j=!1){var ne=m.text.charAt(r.ch)||`
|
|
2861
|
+
`)&&(j=ne=ae(j.line,0)));var he={from:j,to:ne,text:C?C[W%C.length]:y,origin:d||(m?"paste":e.state.cutIncoming>v?"cut":"+input")};ya(e.doc,he),lr(e,"inputRead",e,he)}r&&!m&&cd(e,r),ro(e),e.curOp.updateInput<2&&(e.curOp.updateInput=I),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function dc(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Or(r,function(){return ql(r,s,0,null,"paste")}),!0}function cd(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,a=s.ranges.length-1;a>=0;a--){var d=s.ranges[a];if(!(d.head.ch>100||a&&s.ranges[a-1].head.line==d.head.line)){var p=e.getModeAt(d.head),v=!1;if(p.electricChars){for(var m=0;m<p.electricChars.length;m++)if(r.indexOf(p.electricChars.charAt(m))>-1){v=Ms(e,d.head.line,"smart");break}}else p.electricInput&&p.electricInput.test(Ee(e.doc,d.head.line).text.slice(0,d.head.ch))&&(v=Ms(e,d.head.line,"smart"));v&&lr(e,"electricInput",e,d.head.line)}}}function fc(e){for(var r=[],s=[],a=0;a<e.doc.sel.ranges.length;a++){var d=e.doc.sel.ranges[a].head.line,p={anchor:ae(d,0),head:ae(d+1,0)};s.push(p),r.push(e.getRange(p.anchor,p.head))}return{text:r,ranges:s}}function dd(e,r,s,a){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",a?"":"off"),e.setAttribute("spellcheck",!!r)}function fd(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?e.style.width="1000px":e.setAttribute("wrap","off"),Te&&(e.style.border="1px solid black"),dd(e),r}function _i(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(a,d){var p=this.options,v=p[a];p[a]==d&&a!="mode"||(p[a]=d,r.hasOwnProperty(a)&&qt(this,r[a])(this,d,v),qe(this,"optionChange",this,a))},getOption:function(a){return this.options[a]},getDoc:function(){return this.doc},addKeyMap:function(a,d){this.state.keyMaps[d?"push":"unshift"](Rr(a))},removeKeyMap:function(a){for(var d=this.state.keyMaps,p=0;p<d.length;++p)if(d[p]==a||d[p].name==a)return d.splice(p,1),!0},addOverlay:kr(function(a,d){var p=a.token?a:e.getMode(this.options,a);if(p.startState)throw new Error("Overlays may not be stateful.");Et(this.state.overlays,{mode:p,modeSpec:a,opaque:d&&d.opaque,priority:d&&d.priority||0},function(v){return v.priority}),this.state.modeGen++,ot(this)}),removeOverlay:kr(function(a){for(var d=this.state.overlays,p=0;p<d.length;++p){var v=d[p].modeSpec;if(v==a||typeof a=="string"&&v.name==a){d.splice(p,1),this.state.modeGen++,ot(this);return}}}),indentLine:kr(function(a,d,p){typeof d!="string"&&typeof d!="number"&&(d==null?d=this.options.smartIndent?"smart":"prev":d=d?"add":"subtract"),Zi(this.doc,a)&&Ms(this,a,d,p)}),indentSelection:kr(function(a){for(var d=this.doc.sel.ranges,p=-1,v=0;v<d.length;v++){var m=d[v];if(m.empty())m.head.line>p&&(Ms(this,m.head.line,a,!0),p=m.head.line,v==this.doc.sel.primIndex&&ro(this));else{var y=m.from(),C=m.to(),T=Math.max(p,y.line);p=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var I=T;I<p;++I)Ms(this,I,a);var W=this.doc.sel.ranges;y.ch==0&&d.length==W.length&&W[v].from().ch>0&&Yu(this.doc,v,new Lt(y,W[v].to()),st)}}}),getTokenAt:function(a,d){return ll(this,a,d)},getLineTokens:function(a,d){return ll(this,ae(a),d,!0)},getTokenTypeAt:function(a){a=we(this.doc,a);var d=xu(this,Ee(this.doc,a.line)),p=0,v=(d.length-1)/2,m=a.ch,y;if(m==0)y=d[2];else for(;;){var C=p+v>>1;if((C?d[C*2-1]:0)>=m)v=C;else if(d[C*2+1]<m)p=C+1;else{y=d[C*2+2];break}}var T=y?y.indexOf("overlay "):-1;return T<0?y:T==0?null:y.slice(0,T-1)},getModeAt:function(a){var d=this.doc.mode;return d.innerMode?e.innerMode(d,this.getTokenAt(a).state).mode:d},getHelper:function(a,d){return this.getHelpers(a,d)[0]},getHelpers:function(a,d){var p=[];if(!s.hasOwnProperty(d))return p;var v=s[d],m=this.getModeAt(a);if(typeof m[d]=="string")v[m[d]]&&p.push(v[m[d]]);else if(m[d])for(var y=0;y<m[d].length;y++){var C=v[m[d][y]];C&&p.push(C)}else m.helperType&&v[m.helperType]?p.push(v[m.helperType]):v[m.name]&&p.push(v[m.name]);for(var T=0;T<v._global.length;T++){var I=v._global[T];I.pred(m,this)&&ze(p,I.val)==-1&&p.push(I.val)}return p},getStateAfter:function(a,d){var p=this.doc;return a=gt(p,a==null?p.first+p.size-1:a),sa(this,a+1,d).state},cursorCoords:function(a,d){var p,v=this.doc.sel.primary();return a==null?p=v.head:typeof a=="object"?p=we(this.doc,a):p=a?v.from():v.to(),Wn(this,p,d||"page")},charCoords:function(a,d){return xl(this,we(this.doc,a),d||"page")},coordsChar:function(a,d){return a=L0(this,a,d||"page"),U(this,a.left,a.top)},lineAtHeight:function(a,d){return a=L0(this,{top:a,left:0},d||"page").top,Fn(this.doc,a+this.display.viewOffset)},heightAtLine:function(a,d,p){var v=!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,v=!0),m=Ee(this.doc,a)}else m=a;return wl(this,m,{top:0,left:0},d||"page",p||v).top+(v?this.doc.height-jr(m):0)},defaultTextHeight:function(){return Xi(this.display)},defaultCharWidth:function(){return ca(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(a,d,p,v,m){var y=this.display;a=Wn(this,we(this.doc,a));var C=a.bottom,T=a.left;if(d.style.position="absolute",d.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(d),y.sizer.appendChild(d),v=="over")C=a.top;else if(v=="above"||v=="near"){var I=Math.max(y.wrapper.clientHeight,this.doc.height),W=Math.max(y.sizer.clientWidth,y.lineSpace.clientWidth);(v=="above"||a.bottom+d.offsetHeight>I)&&a.top>d.offsetHeight?C=a.top-d.offsetHeight:a.bottom+d.offsetHeight<=I&&(C=a.bottom),T+d.offsetWidth>W&&(T=W-d.offsetWidth)}d.style.top=C+"px",d.style.left=d.style.right="",m=="right"?(T=y.sizer.clientWidth-d.offsetWidth,d.style.right="0px"):(m=="left"?T=0:m=="middle"&&(T=(y.sizer.clientWidth-d.offsetWidth)/2),d.style.left=T+"px"),p&&K1(this,{left:T,top:C,right:T+d.offsetWidth,bottom:C+d.offsetHeight})},triggerOnKeyDown:kr(J0),triggerOnKeyPress:kr(ed),triggerOnKeyUp:lc,triggerOnMouseDown:kr(rd),execCommand:function(a){if(Ho.hasOwnProperty(a))return Ho[a].call(null,this)},triggerElectric:kr(function(a){cd(this,a)}),findPosH:function(a,d,p,v){var m=1;d<0&&(m=-1,d=-d);for(var y=we(this.doc,a),C=0;C<d&&(y=Ts(this.doc,y,m,p,v),!y.hitSide);++C);return y},moveH:kr(function(a,d){var p=this;this.extendSelectionsBy(function(v){return p.display.shift||p.doc.extend||v.empty()?Ts(p.doc,v.head,a,d,p.options.rtlMoveVisually):a<0?v.from():v.to()},Ze)}),deleteH:kr(function(a,d){var p=this.doc.sel,v=this.doc;p.somethingSelected()?v.replaceSelection("",null,"+delete"):vn(this,function(m){var y=Ts(v,m.head,a,d,!1);return a<0?{from:y,to:m.head}:{from:m.head,to:y}})}),findPosV:function(a,d,p,v){var m=1,y=v;d<0&&(m=-1,d=-d);for(var C=we(this.doc,a),T=0;T<d;++T){var I=Wn(this,C,"div");if(y==null?y=I.left:I.left=y,C=jl(this,I,m,p),C.hitSide)break}return C},moveV:kr(function(a,d){var p=this,v=this.doc,m=[],y=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(T){if(y)return a<0?T.from():T.to();var I=Wn(p,T.head,"div");T.goalColumn!=null&&(I.left=T.goalColumn),m.push(I.left);var W=jl(p,I,a,d);return d=="page"&&T==v.sel.primary()&&ga(p,xl(p,W,"div").top-I.top),W},Ze),m.length)for(var C=0;C<v.sel.ranges.length;C++)v.sel.ranges[C].goalColumn=m[C]}),findWordAt:function(a){var d=this.doc,p=Ee(d,a.line).text,v=a.ch,m=a.ch;if(p){var y=this.getHelper(a,"wordChars");(a.sticky=="before"||m==p.length)&&v?--v:++m;for(var C=p.charAt(v),T=Z(C,y)?function(I){return Z(I,y)}:/\s/.test(C)?function(I){return/\s/.test(I)}:function(I){return!/\s/.test(I)&&!Z(I)};v>0&&T(p.charAt(v-1));)--v;for(;m<p.length&&T(p.charAt(m));)++m}return new Lt(ae(a.line,v),ae(a.line,m))},toggleOverwrite:function(a){a!=null&&a==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?et(this.display.cursorDiv,"CodeMirror-overwrite"):le(this.display.cursorDiv,"CodeMirror-overwrite"),qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:kr(function(a,d){cs(this,a,d)}),getScrollInfo:function(){var a=this.display.scroller;return{left:a.scrollLeft,top:a.scrollTop,height:a.scrollHeight-nn(this)-this.display.barHeight,width:a.scrollWidth-nn(this)-this.display.barWidth,clientHeight:bl(this),clientWidth:ji(this)}},scrollIntoView:kr(function(a,d){a==null?(a={from:this.doc.sel.primary().head,to:null},d==null&&(d=this.options.cursorScrollMargin)):typeof a=="number"?a={from:ae(a,0),to:null}:a.from==null&&(a={from:a,to:null}),a.to||(a.to=a.from),a.margin=d||0,a.from.line!=null?O0(this,a):k0(this,a.from,a.to,a.margin)}),setSize:kr(function(a,d){var p=this,v=function(y){return typeof y=="number"||/^\d+$/.test(String(y))?y+"px":y};a!=null&&(this.display.wrapper.style.width=v(a)),d!=null&&(this.display.wrapper.style.height=v(d)),this.options.lineWrapping&&z0(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){Qi(p,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,qe(this,"refresh",this)}),operation:function(a){return Or(this,a)},startOperation:function(){return Un(this)},endOperation:function(){return ni(this)},refresh:kr(function(){var a=this.display.cachedTextHeight;ot(this),this.curOp.forceUpdate=!0,ss(this),cs(this,this.doc.scrollLeft,this.doc.scrollTop),Bu(this.display),(a==null||Math.abs(a-Xi(this.display))>.5||this.options.lineWrapping)&&Ji(this),qe(this,"refresh",this)}),swapDoc:kr(function(a){var d=this.doc;return d.cm=null,this.state.selectingText&&this.state.selectingText(),D0(this,a),ss(this),this.display.input.reset(),cs(this,a.scrollLeft,a.scrollTop),this.curOp.forceScroll=!0,lr(this,"swapDoc",this,d),d}),phrase:function(a){var d=this.options.phrases;return d&&Object.prototype.hasOwnProperty.call(d,a)?d[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}},Dn(e),e.registerHelper=function(a,d,p){s.hasOwnProperty(a)||(s[a]=e[a]={_global:[]}),s[a][d]=p},e.registerGlobalHelper=function(a,d,p,v){e.registerHelper(a,d,v),s[a]._global.push({pred:p,val:v})}}function Ts(e,r,s,a,d){var p=r,v=s,m=Ee(e,r.line),y=d&&e.direction=="rtl"?-s:s;function C(){var xe=r.line+y;return xe<e.first||xe>=e.first+e.size?!1:(r=new ae(xe,r.ch,r.sticky),m=Ee(e,xe))}function T(xe){var ye;if(a=="codepoint"){var Se=m.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(Se))ye=null;else{var Fe=s>0?Se>=55296&&Se<56320:Se>=56320&&Se<57343;ye=new ae(r.line,Math.max(0,Math.min(m.text.length,r.ch+s*(Fe?2:1))),-s)}}else d?ye=X0(e.cm,m,r,s):ye=Bl(m,r,s);if(ye==null)if(!xe&&C())r=_a(d,e.cm,m,r.line,y);else return!1;else r=ye;return!0}if(a=="char"||a=="codepoint")T();else if(a=="column")T(!0);else if(a=="word"||a=="group")for(var I=null,W=a=="group",F=e.cm&&e.cm.getHelper(r,"wordChars"),j=!0;!(s<0&&!T(!j));j=!1){var ne=m.text.charAt(r.ch)||`
|
|
2861
2862
|
`,he=Z(ne,F)?"w":W&&ne==`
|
|
2862
|
-
`?"n":!W||/\s/.test(ne)?null:"p";if(W&&!j&&!he&&(he="s"),I&&I!=he){s<0&&(s=1,T(),r.sticky="after");break}if(he&&(I=he),s>0&&!T(!j))break}var me=mr(e,r,p,v,!0);return A(p,me)&&(me.hitSide=!0),me}function
|
|
2863
|
+
`?"n":!W||/\s/.test(ne)?null:"p";if(W&&!j&&!he&&(he="s"),I&&I!=he){s<0&&(s=1,T(),r.sticky="after");break}if(he&&(I=he),s>0&&!T(!j))break}var me=mr(e,r,p,v,!0);return A(p,me)&&(me.hitSide=!0),me}function jl(e,r,s,a){var d=e.doc,p=r.left,v;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);v=(s>0?r.bottom:r.top)+s*y}else a=="line"&&(v=s>0?r.bottom+3:r.top-3);for(var C;C=U(e,p,v),!!C.outside;){if(s<0?v<=0:v>=d.height){C.hitSide=!0;break}v+=s*5}return C}var St=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new rt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};St.prototype.init=function(e){var r=this,s=this,a=s.cm,d=s.div=e.lineDiv;d.contentEditable=!0,dd(d,a.options.spellcheck,a.options.autocorrect,a.options.autocapitalize);function p(m){for(var y=m.target;y;y=y.parentNode){if(y==d)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(y.className))break}return!1}We(d,"paste",function(m){!p(m)||Jt(a,m)||dc(m,a)||S<=11&&setTimeout(qt(a,function(){return r.updateFromDOM()}),20)}),We(d,"compositionstart",function(m){r.composing={data:m.data,done:!1}}),We(d,"compositionupdate",function(m){r.composing||(r.composing={data:m.data,done:!1})}),We(d,"compositionend",function(m){r.composing&&(m.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),We(d,"touchstart",function(){return s.forceCompositionEnd()}),We(d,"input",function(){r.composing||r.readFromDOMSoon()});function v(m){if(!(!p(m)||Jt(a,m))){if(a.somethingSelected())_n({lineWise:!1,text:a.getSelections()}),m.type=="cut"&&a.replaceSelection("",null,"cut");else if(a.options.lineWiseCopyCut){var y=fc(a);_n({lineWise:!0,text:y.text}),m.type=="cut"&&a.operation(function(){a.setSelections(y.ranges,0,st),a.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var C=Sn.text.join(`
|
|
2863
2864
|
`);if(m.clipboardData.setData("Text",C),m.clipboardData.getData("Text")==C){m.preventDefault();return}}var T=fd(),I=T.firstChild;a.display.lineSpace.insertBefore(T,a.display.lineSpace.firstChild),I.value=Sn.text.join(`
|
|
2864
|
-
`);var W=Ae();yt(I),setTimeout(function(){a.display.lineSpace.removeChild(T),W.focus(),W==d&&s.showPrimarySelection()},50)}}We(d,"copy",v),We(d,"cut",v)},St.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},St.prototype.prepareSelection=function(){var e=us(this.cm,!1);return e.focus=Ae()==this.div,e},St.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},St.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},St.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),d=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||d.line<r.display.viewFrom){e.removeAllRanges();return}var p=Aa(r,e.anchorNode,e.anchorOffset),v=Aa(r,e.focusNode,e.focusOffset);if(!(p&&!p.bad&&v&&!v.bad&&w(Ke(p,v),a)==0&&w(ce(p,v),d)==0)){var m=r.display.view,y=a.line>=r.display.viewFrom&&Os(r,a)||{node:m[0].measure.map[2],offset:0},C=d.line<r.display.viewTo&&Os(r,d);if(!C){var T=m[m.length-1].measure,I=T.maps?T.maps[T.maps.length-1]:T.map;C={node:I[I.length-1],offset:I[I.length-2]-I[I.length-3]}}if(!y||!C){e.removeAllRanges();return}var W=e.rangeCount&&e.getRangeAt(0),F;try{F=Y(y.node,y.offset,C.offset,C.node)}catch{}F&&(!c&&r.state.focused?(e.collapse(y.node,y.offset),F.collapsed||(e.removeAllRanges(),e.addRange(F))):(e.removeAllRanges(),e.addRange(F)),W&&e.anchorNode==null?e.addRange(W):c&&this.startGracePeriod()),this.rememberSelection()}},St.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)},St.prototype.showMultipleSelections=function(e){$(this.cm.display.cursorDiv,e.cursors),$(this.cm.display.selectionDiv,e.selection)},St.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},St.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return ue(this.div,r)},St.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ae()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},St.prototype.blur=function(){this.div.blur()},St.prototype.getField=function(){return this.div},St.prototype.supportsTouch=function(){return!0},St.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Or(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function r(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},St.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},St.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),r=this.cm;if(Ie&&B&&this.cm.display.gutterSpecs.length&&Ia(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Aa(r,e.anchorNode,e.anchorOffset),a=Aa(r,e.focusNode,e.focusOffset);s&&a&&Or(r,function(){br(r.doc,
|
|
2865
|
-
`),yt(d))}else return;v.type=="cut"&&(a.state.cutIncoming=+new Date)}}We(d,"cut",p),We(d,"copy",p),We(e.scroller,"paste",function(v){if(!(Ci(e,v)||Jt(a,v))){if(!d.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var m=new Event("paste");m.clipboardData=v.clipboardData,d.dispatchEvent(m)}}),We(e.lineSpace,"selectstart",function(v){Ci(e,v)||vr(v)}),We(d,"compositionstart",function(){var v=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:v,range:a.markText(v,a.getCursor("to"),{className:"CodeMirror-composing"})}}),We(d,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},Yt.prototype.createField=function(e){this.wrapper=fd(),this.textarea=this.wrapper.firstChild},Yt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Yt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,a=us(e);if(e.options.moveInputWithCursor){var d=Wn(e,s.sel.primary().head,"div"),p=r.wrapper.getBoundingClientRect(),v=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,d.top+v.top-p.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,d.left+v.left-p.left))}return a},Yt.prototype.showSelection=function(e){var r=this.cm,s=r.display;$(s.cursorDiv,e.cursors),$(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Yt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&yt(this.textarea),z&&S>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",z&&S>=9&&(this.hasSelection=null))}},Yt.prototype.getField=function(){return this.textarea},Yt.prototype.supportsTouch=function(){return!1},Yt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!be||Ae()!=this.textarea))try{this.textarea.focus()}catch{}},Yt.prototype.blur=function(){this.textarea.blur()},Yt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Yt.prototype.receivedFocus=function(){this.slowPoll()},Yt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Yt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!e?(e=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},Yt.prototype.poll=function(){var e=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||
|
|
2866
|
-
`)>-1?s.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Yt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Yt.prototype.onKeyPress=function(){z&&S>=9&&(this.hasSelection=null),this.fastPoll()},Yt.prototype.onContextMenu=function(e){var r=this,s=r.cm,a=s.display,d=r.textarea;r.contextMenuPending&&r.contextMenuPending();var p=ti(s,e),v=a.scroller.scrollTop;if(!p||R)return;var m=s.options.resetSelectionOnContextMenu;m&&s.doc.sel.contains(p)==-1&&qt(s,br)(s.doc,
|
|
2865
|
+
`);var W=Ae();yt(I),setTimeout(function(){a.display.lineSpace.removeChild(T),W.focus(),W==d&&s.showPrimarySelection()},50)}}We(d,"copy",v),We(d,"cut",v)},St.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},St.prototype.prepareSelection=function(){var e=us(this.cm,!1);return e.focus=Ae()==this.div,e},St.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},St.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},St.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),a=s.from(),d=s.to();if(r.display.viewTo==r.display.viewFrom||a.line>=r.display.viewTo||d.line<r.display.viewFrom){e.removeAllRanges();return}var p=Aa(r,e.anchorNode,e.anchorOffset),v=Aa(r,e.focusNode,e.focusOffset);if(!(p&&!p.bad&&v&&!v.bad&&w(Ke(p,v),a)==0&&w(ce(p,v),d)==0)){var m=r.display.view,y=a.line>=r.display.viewFrom&&Os(r,a)||{node:m[0].measure.map[2],offset:0},C=d.line<r.display.viewTo&&Os(r,d);if(!C){var T=m[m.length-1].measure,I=T.maps?T.maps[T.maps.length-1]:T.map;C={node:I[I.length-1],offset:I[I.length-2]-I[I.length-3]}}if(!y||!C){e.removeAllRanges();return}var W=e.rangeCount&&e.getRangeAt(0),F;try{F=Y(y.node,y.offset,C.offset,C.node)}catch{}F&&(!c&&r.state.focused?(e.collapse(y.node,y.offset),F.collapsed||(e.removeAllRanges(),e.addRange(F))):(e.removeAllRanges(),e.addRange(F)),W&&e.anchorNode==null?e.addRange(W):c&&this.startGracePeriod()),this.rememberSelection()}},St.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)},St.prototype.showMultipleSelections=function(e){$(this.cm.display.cursorDiv,e.cursors),$(this.cm.display.selectionDiv,e.selection)},St.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},St.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return ue(this.div,r)},St.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ae()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},St.prototype.blur=function(){this.div.blur()},St.prototype.getField=function(){return this.div},St.prototype.supportsTouch=function(){return!0},St.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Or(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function r(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},St.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},St.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),r=this.cm;if(Ie&&B&&this.cm.display.gutterSpecs.length&&Ia(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Aa(r,e.anchorNode,e.anchorOffset),a=Aa(r,e.focusNode,e.focusOffset);s&&a&&Or(r,function(){br(r.doc,ao(s,a),st),(s.bad||a.bad)&&(r.curOp.selectionChanged=!0)})}}},St.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,s=e.doc.sel.primary(),a=s.from(),d=s.to();if(a.ch==0&&a.line>e.firstLine()&&(a=ae(a.line-1,Ee(e.doc,a.line-1).length)),d.ch==Ee(e.doc,d.line).text.length&&d.line<e.lastLine()&&(d=ae(d.line+1,0)),a.line<r.viewFrom||d.line>r.viewTo-1)return!1;var p,v,m;a.line==r.viewFrom||(p=ri(e,a.line))==0?(v=zt(r.view[0].line),m=r.view[0].node):(v=zt(r.view[p].line),m=r.view[p-1].node.nextSibling);var y=ri(e,d.line),C,T;if(y==r.view.length-1?(C=r.viewTo-1,T=r.lineDiv.lastChild):(C=zt(r.view[y+1].line)-1,T=r.view[y+1].node.previousSibling),!m)return!1;for(var I=e.doc.splitLines(Kl(e,m,T,v,C)),W=dn(e.doc,ae(v,0),ae(C,Ee(e.doc,C).text.length));I.length>1&&W.length>1;)if(Qe(I)==Qe(W))I.pop(),W.pop(),C--;else if(I[0]==W[0])I.shift(),W.shift(),v++;else break;for(var F=0,j=0,ne=I[0],he=W[0],me=Math.min(ne.length,he.length);F<me&&ne.charCodeAt(F)==he.charCodeAt(F);)++F;for(var xe=Qe(I),ye=Qe(W),Se=Math.min(xe.length-(I.length==1?F:0),ye.length-(W.length==1?F:0));j<Se&&xe.charCodeAt(xe.length-j-1)==ye.charCodeAt(ye.length-j-1);)++j;if(I.length==1&&W.length==1&&v==a.line)for(;F&&F>a.ch&&xe.charCodeAt(xe.length-j-1)==ye.charCodeAt(ye.length-j-1);)F--,j++;I[I.length-1]=xe.slice(0,xe.length-j).replace(/^\u200b+/,""),I[0]=I[0].slice(F).replace(/\u200b+$/,"");var Fe=ae(v,F),Pe=ae(C,W.length?Qe(W).length-j:0);if(I.length>1||I[0]||w(Fe,Pe))return xa(e.doc,I,Fe,Pe,"+input"),!0},St.prototype.ensurePolled=function(){this.forceCompositionEnd()},St.prototype.reset=function(){this.forceCompositionEnd()},St.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},St.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))},St.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Or(this.cm,function(){return ot(e.cm)})},St.prototype.setUneditable=function(e){e.contentEditable="false"},St.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||qt(this.cm,ql)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},St.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},St.prototype.onContextMenu=function(){},St.prototype.resetPosition=function(){},St.prototype.needsContentAttribute=!0;function Os(e,r){var s=Nu(e,r.line);if(!s||s.hidden)return null;var a=Ee(e.doc,r.line),d=m0(s,a,r.line),p=Dr(a,e.doc.direction),v="left";if(p){var m=Ut(p,r.ch);v=m%2?"right":"left"}var y=ml(d.map,r.ch,v);return y.offset=y.collapse=="right"?y.end:y.start,y}function Ia(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function Ve(e,r){return r&&(e.bad=!0),e}function Kl(e,r,s,a,d){var p="",v=!1,m=e.doc.lineSeparator(),y=!1;function C(F){return function(j){return j.id==F}}function T(){v&&(p+=m,y&&(p+=m),v=y=!1)}function I(F){F&&(T(),p+=F)}function W(F){if(F.nodeType==1){var j=F.getAttribute("cm-text");if(j){I(j);return}var ne=F.getAttribute("cm-marker"),he;if(ne){var me=e.findMarks(ae(a,0),ae(d+1,0),C(+ne));me.length&&(he=me[0].find(0))&&I(dn(e.doc,he.from,he.to).join(m));return}if(F.getAttribute("contenteditable")=="false")return;var xe=/^(pre|div|p|li|table|br)$/i.test(F.nodeName);if(!/^br$/i.test(F.nodeName)&&F.textContent.length==0)return;xe&&T();for(var ye=0;ye<F.childNodes.length;ye++)W(F.childNodes[ye]);/^(pre|p)$/i.test(F.nodeName)&&(y=!0),xe&&(v=!0)}else F.nodeType==3&&I(F.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;W(r),r!=s;)r=r.nextSibling,y=!1;return p}function Aa(e,r,s){var a;if(r==e.display.lineDiv){if(a=e.display.lineDiv.childNodes[s],!a)return Ve(e.clipPos(ae(e.display.viewTo-1)),!0);r=null,s=0}else for(a=r;;a=a.parentNode){if(!a||a==e.display.lineDiv)return null;if(a.parentNode&&a.parentNode==e.display.lineDiv)break}for(var d=0;d<e.display.view.length;d++){var p=e.display.view[d];if(p.node==a)return Wo(p,r,s)}}function Wo(e,r,s){var a=e.text.firstChild,d=!1;if(!r||!ue(a,r))return Ve(ae(zt(e.line),0),!0);if(r==a&&(d=!0,r=a.childNodes[s],s=0,!r)){var p=e.rest?Qe(e.rest):e.line;return Ve(ae(zt(p),p.text.length),d)}var v=r.nodeType==3?r:null,m=r;for(!v&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(v=r.firstChild,s&&(s=v.nodeValue.length));m.parentNode!=a;)m=m.parentNode;var y=e.measure,C=y.maps;function T(he,me,xe){for(var ye=-1;ye<(C?C.length:0);ye++)for(var Se=ye<0?y.map:C[ye],Fe=0;Fe<Se.length;Fe+=3){var Pe=Se[Fe+2];if(Pe==he||Pe==me){var ut=zt(ye<0?e.line:e.rest[ye]),It=Se[Fe]+xe;return(xe<0||Pe!=he)&&(It=Se[Fe+(xe?1:0)]),ae(ut,It)}}}var I=T(v,m,s);if(I)return Ve(I,d);for(var W=m.nextSibling,F=v?v.nodeValue.length-s:0;W;W=W.nextSibling){if(I=T(W,W.firstChild,0),I)return Ve(ae(I.line,I.ch-F),d);F+=W.textContent.length}for(var j=m.previousSibling,ne=s;j;j=j.previousSibling){if(I=T(j,j.firstChild,-1),I)return Ve(ae(I.line,I.ch+ne),d);ne+=j.textContent.length}}var Yt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new rt,this.hasSelection=!1,this.composing=null};Yt.prototype.init=function(e){var r=this,s=this,a=this.cm;this.createField(e);var d=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Te&&(d.style.width="0px"),We(d,"input",function(){z&&S>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),We(d,"paste",function(v){Jt(a,v)||dc(v,a)||(a.state.pasteIncoming=+new Date,s.fastPoll())});function p(v){if(!Jt(a,v)){if(a.somethingSelected())_n({lineWise:!1,text:a.getSelections()});else if(a.options.lineWiseCopyCut){var m=fc(a);_n({lineWise:!0,text:m.text}),v.type=="cut"?a.setSelections(m.ranges,null,st):(s.prevInput="",d.value=m.text.join(`
|
|
2866
|
+
`),yt(d))}else return;v.type=="cut"&&(a.state.cutIncoming=+new Date)}}We(d,"cut",p),We(d,"copy",p),We(e.scroller,"paste",function(v){if(!(Ci(e,v)||Jt(a,v))){if(!d.dispatchEvent){a.state.pasteIncoming=+new Date,s.focus();return}var m=new Event("paste");m.clipboardData=v.clipboardData,d.dispatchEvent(m)}}),We(e.lineSpace,"selectstart",function(v){Ci(e,v)||vr(v)}),We(d,"compositionstart",function(){var v=a.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:v,range:a.markText(v,a.getCursor("to"),{className:"CodeMirror-composing"})}}),We(d,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},Yt.prototype.createField=function(e){this.wrapper=fd(),this.textarea=this.wrapper.firstChild},Yt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Yt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,a=us(e);if(e.options.moveInputWithCursor){var d=Wn(e,s.sel.primary().head,"div"),p=r.wrapper.getBoundingClientRect(),v=r.lineDiv.getBoundingClientRect();a.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,d.top+v.top-p.top)),a.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,d.left+v.left-p.left))}return a},Yt.prototype.showSelection=function(e){var r=this.cm,s=r.display;$(s.cursorDiv,e.cursors),$(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Yt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&yt(this.textarea),z&&S>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",z&&S>=9&&(this.hasSelection=null))}},Yt.prototype.getField=function(){return this.textarea},Yt.prototype.supportsTouch=function(){return!1},Yt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!be||Ae()!=this.textarea))try{this.textarea.focus()}catch{}},Yt.prototype.blur=function(){this.textarea.blur()},Yt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Yt.prototype.receivedFocus=function(){this.slowPoll()},Yt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Yt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function s(){var a=r.poll();!a&&!e?(e=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},Yt.prototype.poll=function(){var e=this,r=this.cm,s=this.textarea,a=this.prevInput;if(this.contextMenuPending||!r.state.focused||nl(s)&&!a&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var d=s.value;if(d==a&&!r.somethingSelected())return!1;if(z&&S>=9&&this.hasSelection===d||ve&&/[\uf700-\uf7ff]/.test(d))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var p=d.charCodeAt(0);if(p==8203&&!a&&(a=""),p==8666)return this.reset(),this.cm.execCommand("undo")}for(var v=0,m=Math.min(a.length,d.length);v<m&&a.charCodeAt(v)==d.charCodeAt(v);)++v;return Or(r,function(){ql(r,d.slice(v),a.length-v,null,e.composing?"*compose":null),d.length>1e3||d.indexOf(`
|
|
2867
|
+
`)>-1?s.value=e.prevInput="":e.prevInput=d,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Yt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Yt.prototype.onKeyPress=function(){z&&S>=9&&(this.hasSelection=null),this.fastPoll()},Yt.prototype.onContextMenu=function(e){var r=this,s=r.cm,a=s.display,d=r.textarea;r.contextMenuPending&&r.contextMenuPending();var p=ti(s,e),v=a.scroller.scrollTop;if(!p||R)return;var m=s.options.resetSelectionOnContextMenu;m&&s.doc.sel.contains(p)==-1&&qt(s,br)(s.doc,ao(p),st);var y=d.style.cssText,C=r.wrapper.style.cssText,T=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
2867
2868
|
top: `+(e.clientY-T.top-5)+"px; left: "+(e.clientX-T.left-5)+`px;
|
|
2868
2869
|
z-index: 1000; background: `+(z?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
2869
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var I;
|
|
2870
|
-
`,
|
|
2870
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var I;E&&(I=window.scrollY),a.input.focus(),E&&window.scrollTo(null,I),a.input.reset(),s.somethingSelected()||(d.value=r.prevInput=" "),r.contextMenuPending=F,a.selForContextMenu=s.doc.sel,clearTimeout(a.detectingSelectAll);function W(){if(d.selectionStart!=null){var ne=s.somethingSelected(),he=""+(ne?d.value:"");d.value="⇚",d.value=he,r.prevInput=ne?"":"",d.selectionStart=1,d.selectionEnd=he.length,a.selForContextMenu=s.doc.sel}}function F(){if(r.contextMenuPending==F&&(r.contextMenuPending=!1,r.wrapper.style.cssText=C,d.style.cssText=y,z&&S<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=v),d.selectionStart!=null)){(!z||z&&S<9)&&W();var ne=0,he=function(){a.selForContextMenu==s.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&r.prevInput==""?qt(s,H0)(s):ne++<10?a.detectingSelectAll=setTimeout(he,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(he,200)}}if(z&&S>=9&&W(),Ye){wo(e);var j=function(){Sr(window,"mouseup",j),setTimeout(F,20)};We(window,"mouseup",j)}else setTimeout(F,50)},Yt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Yt.prototype.setUneditable=function(){},Yt.prototype.needsContentAttribute=!1;function hc(e,r){if(r=r?Mt(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var s=Ae();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function a(){e.value=m.getValue()}var d;if(e.form&&(We(e.form,"submit",a),!r.leaveSubmitMethodAlone)){var p=e.form;d=p.submit;try{var v=p.submit=function(){a(),p.submit=d,p.submit(),p.submit=v}}catch{}}r.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&&(Sr(e.form,"submit",a),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=d))}},e.style.display="none";var m=Dt(function(y){return e.parentNode.insertBefore(y,e.nextSibling)},r);return m}function hd(e){e.off=Sr,e.on=We,e.wheelEventPixels=af,e.Doc=Nr,e.splitLines=zo,e.countColumn=xt,e.findColumn=Vt,e.isWordChar=it,e.Pass=Ge,e.signal=qe,e.Line=Mr,e.changeEnd=so,e.scrollbarModel=Sl,e.Pos=ae,e.cmpPos=w,e.modes=Cn,e.mimeModes=un,e.resolveMode=Lo,e.getMode=oa,e.modeExtensions=Nn,e.extendMode=Rn,e.copyState=cn,e.startState=Ja,e.innerMode=Xa,e.commands=Ho,e.keyMap=Li,e.keyName=nc,e.isModifierKey=Hl,e.lookupKey=Si,e.normalizeKeyMap=hf,e.StringStream=Bt,e.SharedTextMarker=Sa,e.TextMarker=co,e.LineWidget=Cs,e.e_preventDefault=vr,e.e_stopPropagation=ia,e.e_stop=wo,e.addClass=et,e.contains=ue,e.rmClass=le,e.keyNames=ho}Gl(Dt),_i(Dt);var Fr="iter insert remove copy getEditor constructor".split(" ");for(var Yl in Nr.prototype)Nr.prototype.hasOwnProperty(Yl)&&ze(Fr,Yl)<0&&(Dt.prototype[Yl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Nr.prototype[Yl]));return Dn(Nr),Dt.inputStyles={textarea:Yt,contenteditable:St},Dt.defineMode=function(e){!Dt.defaults.mode&&e!="null"&&(Dt.defaults.mode=e),ol.apply(this,arguments)},Dt.defineMIME=mi,Dt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Dt.defineMIME("text/plain","null"),Dt.defineExtension=function(e,r){Dt.prototype[e]=r},Dt.defineDocExtension=function(e,r){Nr.prototype[e]=r},Dt.fromTextArea=hc,hd(Dt),Dt.version="5.62.3",Dt})}(qf)),qf.exports}var xC=ra();const Lc=gv(xC),zC=`.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}
|
|
2871
|
+
`,LC=fe`
|
|
2871
2872
|
.cm-s-skedulo .cm-header {
|
|
2872
2873
|
color: blue;
|
|
2873
2874
|
}
|
|
@@ -2947,12 +2948,12 @@ b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],a=e.length;r<=a;){var d=e.
|
|
|
2947
2948
|
.cm-invalidchar {
|
|
2948
2949
|
color: #f00;
|
|
2949
2950
|
}
|
|
2950
|
-
`;(function(o,t){(function(n){n(ra)})(function(n){n.overlayMode=function(l,c,g){return{startState:function(){return{base:n.startState(l),overlay:n.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(h){return{base:n.copyState(l,h.base),overlay:n.copyState(c,h.overlay),basePos:h.basePos,baseCur:null,overlayPos:h.overlayPos,overlayCur:null}},token:function(h,x){return(h!=x.streamSeen||Math.min(x.basePos,x.overlayPos)<h.start)&&(x.streamSeen=h,x.basePos=x.overlayPos=h.start),h.start==x.basePos&&(x.baseCur=l.token(h,x.base),x.basePos=h.pos),h.start==x.overlayPos&&(h.pos=h.start,x.overlayCur=c.token(h,x.overlay),x.overlayPos=h.pos),h.pos=Math.min(x.basePos,x.overlayPos),x.overlayCur==null?x.baseCur:x.baseCur!=null&&x.overlay.combineTokens||g&&x.overlay.combineTokens==null?x.baseCur+" "+x.overlayCur:x.overlayCur},indent:l.indent&&function(h,x,z){return l.indent(h.base,x,z)},electricChars:l.electricChars,innerMode:function(h){return{state:h.base,mode:l}},blankLine:function(h){var x,z;return l.blankLine&&(x=l.blankLine(h.base)),c.blankLine&&(z=c.blankLine(h.overlay)),z==null?x:g&&x!=null?x+" "+z:z}}}})})();(function(o,t){(function(n){n(ra)})(function(n){n.defineMode("jinja2",function(){var l=["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"],c=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,h=["true","false"],x=/^(\d[+\-\*\/])?\d+(\.\d+)?/;l=new RegExp("(("+l.join(")|(")+"))\\b"),h=new RegExp("(("+h.join(")|(")+"))\\b");function z(S,k){var D=S.peek();if(k.incomment)return S.skipTo("#}")?(S.eatWhile(/\#|}/),k.incomment=!1):S.skipToEnd(),"comment";if(k.intag){if(k.operator){if(k.operator=!1,S.match(h))return"atom";if(S.match(x))return"number"}if(k.sign){if(k.sign=!1,S.match(h))return"atom";if(S.match(x))return"number"}if(k.instring)return D==k.instring&&(k.instring=!1),S.next(),"string";if(D=="'"||D=='"')return k.instring=D,S.next(),"string";if(S.match(k.intag+"}")||S.eat("-")&&S.match(k.intag+"}"))return k.intag=!1,"tag";if(S.match(c))return k.operator=!0,"operator";if(S.match(g))k.sign=!0;else if(S.eat(" ")||S.sol()){if(S.match(l))return"keyword";if(S.match(h))return"atom";if(S.match(x))return"number";S.sol()&&S.next()}else S.next();return"variable"}else if(S.eat("{")){if(S.eat("#"))return k.incomment=!0,S.skipTo("#}")?(S.eatWhile(/\#|}/),k.incomment=!1):S.skipToEnd(),"comment";if(D=S.eat(/\{|%/))return k.intag=D,D=="{"&&(k.intag="}"),S.eat("-"),"tag"}S.next()}return{startState:function(){return{tokenize:z}},token:function(S,k){return k.tokenize(S,k)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),n.defineMIME("text/jinja2","jinja2")})})();var CC={exports:{}};(function(o,t){(function(n){n(ra)})(function(n){var l={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},c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(g,h){var x=g.indentUnit,z={},S=h.htmlMode?l:c;for(var k in S)z[k]=S[k];for(var k in h)z[k]=h[k];var D,B;function R(O,E){function Y(et){return E.tokenize=et,et(O,E)}var ue=O.next();if(ue=="<")return O.eat("!")?O.eat("[")?O.match("CDATA[")?Y(ge("atom","]]>")):null:O.match("--")?Y(ge("comment","-->")):O.match("DOCTYPE",!0,!0)?(O.eatWhile(/[\w\._\-]/),Y(Te(1))):null:O.eat("?")?(O.eatWhile(/[\w\._\-]/),E.tokenize=ge("meta","?>"),"meta"):(D=O.eat("/")?"closeTag":"openTag",E.tokenize=J,"tag bracket");if(ue=="&"){var Ae;return O.eat("#")?O.eat("x")?Ae=O.eatWhile(/[a-fA-F\d]/)&&O.eat(";"):Ae=O.eatWhile(/[\d]/)&&O.eat(";"):Ae=O.eatWhile(/[\w\.\-:]/)&&O.eat(";"),Ae?"atom":"error"}else return O.eatWhile(/[^&<]/),null}R.isInText=!0;function J(O,E){var Y=O.next();if(Y==">"||Y=="/"&&O.eat(">"))return E.tokenize=R,D=Y==">"?"endTag":"selfcloseTag","tag bracket";if(Y=="=")return D="equals",null;if(Y=="<"){E.tokenize=R,E.state=Oe,E.tagName=E.tagStart=null;var ue=E.tokenize(O,E);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(Y)?(E.tokenize=pe(Y),E.stringStartCol=O.column(),E.tokenize(O,E)):(O.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function pe(O){var E=function(Y,ue){for(;!Y.eol();)if(Y.next()==O){ue.tokenize=J;break}return"string"};return E.isInAttribute=!0,E}function ge(O,E){return function(Y,ue){for(;!Y.eol();){if(Y.match(E)){ue.tokenize=R;break}Y.next()}return O}}function Te(O){return function(E,Y){for(var ue;(ue=E.next())!=null;){if(ue=="<")return Y.tokenize=Te(O+1),Y.tokenize(E,Y);if(ue==">")if(O==1){Y.tokenize=R;break}else return Y.tokenize=Te(O-1),Y.tokenize(E,Y)}return"meta"}}function Ie(O,E,Y){this.prev=O.context,this.tagName=E||"",this.indent=O.indented,this.startOfLine=Y,(z.doNotIndent.hasOwnProperty(E)||O.context&&O.context.noIndent)&&(this.noIndent=!0)}function be(O){O.context&&(O.context=O.context.prev)}function ve(O,E){for(var Y;;){if(!O.context||(Y=O.context.tagName,!z.contextGrabbers.hasOwnProperty(Y)||!z.contextGrabbers[Y].hasOwnProperty(E)))return;be(O)}}function Oe(O,E,Y){return O=="openTag"?(Y.tagStart=E.column(),$e):O=="closeTag"?De:Oe}function $e(O,E,Y){return O=="word"?(Y.tagName=E.current(),B="tag",Ce):z.allowMissingTagName&&O=="endTag"?(B="tag bracket",Ce(O,E,Y)):(B="error",$e)}function De(O,E,Y){if(O=="word"){var ue=E.current();return Y.context&&Y.context.tagName!=ue&&z.implicitlyClosed.hasOwnProperty(Y.context.tagName)&&be(Y),Y.context&&Y.context.tagName==ue||z.matchClosing===!1?(B="tag",je):(B="tag error",Ye)}else return z.allowMissingTagName&&O=="endTag"?(B="tag bracket",je(O,E,Y)):(B="error",Ye)}function je(O,E,Y){return O!="endTag"?(B="error",je):(be(Y),Oe)}function Ye(O,E,Y){return B="error",je(O,E,Y)}function Ce(O,E,Y){if(O=="word")return B="attribute",le;if(O=="endTag"||O=="selfcloseTag"){var ue=Y.tagName,Ae=Y.tagStart;return Y.tagName=Y.tagStart=null,O=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(ue)?ve(Y,ue):(ve(Y,ue),Y.context=new Ie(Y,ue,Ae==Y.indented)),Oe}return B="error",Ce}function le(O,E,Y){return O=="equals"?Q:(z.allowMissing||(B="error"),Ce(O,E,Y))}function Q(O,E,Y){return O=="string"?$:O=="word"&&z.allowUnquoted?(B="string",Ce):(B="error",Ce(O,E,Y))}function $(O,E,Y){return O=="string"?$:Ce(O,E,Y)}return{startState:function(O){var E={tokenize:R,state:Oe,indented:O||0,tagName:null,tagStart:null,context:null};return O!=null&&(E.baseIndent=O),E},token:function(O,E){if(!E.tagName&&O.sol()&&(E.indented=O.indentation()),O.eatSpace())return null;D=null;var Y=E.tokenize(O,E);return(Y||D)&&Y!="comment"&&(B=null,E.state=E.state(D||Y,O,E),B&&(Y=B=="error"?Y+" error":B)),Y},indent:function(O,E,Y){var ue=O.context;if(O.tokenize.isInAttribute)return O.tagStart==O.indented?O.stringStartCol+1:O.indented+x;if(ue&&ue.noIndent)return n.Pass;if(O.tokenize!=J&&O.tokenize!=R)return Y?Y.match(/^(\s*)/)[0].length:0;if(O.tagName)return z.multilineTagIndentPastTag!==!1?O.tagStart+O.tagName.length+2:O.tagStart+x*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(E))return 0;var Ae=E&&/^<(\/)?([\w_:\.-]*)/.exec(E);if(Ae&&Ae[1])for(;ue;)if(ue.tagName==Ae[2]){ue=ue.prev;break}else if(z.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(Ae)for(;ue;){var et=z.contextGrabbers[ue.tagName];if(et&&et.hasOwnProperty(Ae[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+x:O.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(O){O.state==Q&&(O.state=Ce)},xmlCurrentTag:function(O){return O.tagName?{name:O.tagName,close:O.type=="closeTag"}:null},xmlCurrentContext:function(O){for(var E=[],Y=O.context;Y;Y=Y.prev)E.push(Y.tagName);return E.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var wC=CC.exports,xC={exports:{}};(function(o,t){(function(n){n(ra)})(function(n){n.defineMode("javascript",function(l,c){var g=l.indentUnit,h=c.statementIndent,x=c.jsonld,z=c.json||x,S=c.trackScope!==!1,k=c.typescript,D=c.wordCharacters||/[\w$\xa1-\uffff]/,B=function(){function w(_r){return{type:_r,style:"keyword"}}var A=w("keyword a"),te=w("keyword b"),ce=w("keyword c"),Ke=w("keyword d"),gt=w("operator"),we={type:"atom",style:"atom"};return{if:w("if"),while:A,with:A,else:te,do:te,try:te,finally:te,return:Ke,break:Ke,continue:Ke,new:w("new"),delete:ce,void:ce,throw:ce,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:gt,typeof:gt,instanceof:gt,true:we,false:we,null:we,undefined:we,NaN:we,Infinity:we,this:w("this"),class:w("class"),super:w("atom"),yield:ce,export:w("export"),import:w("import"),extends:ce,await:ce}}(),R=/[+\-*&%=<>!?|~^@]/,J=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function pe(w){for(var A=!1,te,ce=!1;(te=w.next())!=null;){if(!A){if(te=="/"&&!ce)return;te=="["?ce=!0:ce&&te=="]"&&(ce=!1)}A=!A&&te=="\\"}}var ge,Te;function Ie(w,A,te){return ge=w,Te=te,A}function be(w,A){var te=w.next();if(te=='"'||te=="'")return A.tokenize=ve(te),A.tokenize(w,A);if(te=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(te=="."&&w.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(te))return Ie(te);if(te=="="&&w.eat(">"))return Ie("=>","operator");if(te=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(te))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(te=="/")return w.eat("*")?(A.tokenize=Oe,Oe(w,A)):w.eat("/")?(w.skipToEnd(),Ie("comment","comment")):ae(w,A,1)?(pe(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(w.eat("="),Ie("operator","operator",w.current()));if(te=="`")return A.tokenize=$e,$e(w,A);if(te=="#"&&w.peek()=="!")return w.skipToEnd(),Ie("meta","meta");if(te=="#"&&w.eatWhile(D))return Ie("variable","property");if(te=="<"&&w.match("!--")||te=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ie("comment","comment");if(R.test(te))return(te!=">"||!A.lexical||A.lexical.type!=">")&&(w.eat("=")?(te=="!"||te=="=")&&w.eat("="):/[<>*+\-|&?]/.test(te)&&(w.eat(te),te==">"&&w.eat(te))),te=="?"&&w.eat(".")?Ie("."):Ie("operator","operator",w.current());if(D.test(te)){w.eatWhile(D);var ce=w.current();if(A.lastType!="."){if(B.propertyIsEnumerable(ce)){var Ke=B[ce];return Ie(Ke.type,Ke.style,ce)}if(ce=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ce)}return Ie("variable","variable",ce)}}function ve(w){return function(A,te){var ce=!1,Ke;if(x&&A.peek()=="@"&&A.match(J))return te.tokenize=be,Ie("jsonld-keyword","meta");for(;(Ke=A.next())!=null&&!(Ke==w&&!ce);)ce=!ce&&Ke=="\\";return ce||(te.tokenize=be),Ie("string","string")}}function Oe(w,A){for(var te=!1,ce;ce=w.next();){if(ce=="/"&&te){A.tokenize=be;break}te=ce=="*"}return Ie("comment","comment")}function $e(w,A){for(var te=!1,ce;(ce=w.next())!=null;){if(!te&&(ce=="`"||ce=="$"&&w.eat("{"))){A.tokenize=be;break}te=!te&&ce=="\\"}return Ie("quasi","string-2",w.current())}var De="([{}])";function je(w,A){A.fatArrowAt&&(A.fatArrowAt=null);var te=w.string.indexOf("=>",w.start);if(!(te<0)){if(k){var ce=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,te));ce&&(te=ce.index)}for(var Ke=0,gt=!1,we=te-1;we>=0;--we){var _r=w.string.charAt(we),rn=De.indexOf(_r);if(rn>=0&&rn<3){if(!Ke){++we;break}if(--Ke==0){_r=="("&&(gt=!0);break}}else if(rn>=3&&rn<6)++Ke;else if(D.test(_r))gt=!0;else if(/["'\/`]/.test(_r))for(;;--we){if(we==0)return;var yi=w.string.charAt(we-1);if(yi==_r&&w.string.charAt(we-2)!="\\"){we--;break}}else if(gt&&!Ke){++we;break}}gt&&!Ke&&(A.fatArrowAt=we)}}var Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Ce(w,A,te,ce,Ke,gt){this.indented=w,this.column=A,this.type=te,this.prev=Ke,this.info=gt,ce!=null&&(this.align=ce)}function le(w,A){if(!S)return!1;for(var te=w.localVars;te;te=te.next)if(te.name==A)return!0;for(var ce=w.context;ce;ce=ce.prev)for(var te=ce.vars;te;te=te.next)if(te.name==A)return!0}function Q(w,A,te,ce,Ke){var gt=w.cc;for($.state=w,$.stream=Ke,$.marked=null,$.cc=gt,$.style=A,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var we=gt.length?gt.pop():z?Ze:st;if(we(te,ce)){for(;gt.length&>[gt.length-1].lex;)gt.pop()();return $.marked?$.marked:te=="variable"&&le(w,ce)?"variable-2":A}}}var $={state:null,column:null,marked:null,cc:null};function O(){for(var w=arguments.length-1;w>=0;w--)$.cc.push(arguments[w])}function E(){return O.apply(null,arguments),!0}function Y(w,A){for(var te=A;te;te=te.next)if(te.name==w)return!0;return!1}function ue(w){var A=$.state;if($.marked="def",!!S){if(A.context){if(A.lexical.info=="var"&&A.context&&A.context.block){var te=Ae(w,A.context);if(te!=null){A.context=te;return}}else if(!Y(w,A.localVars)){A.localVars=new yt(w,A.localVars);return}}c.globalVars&&!Y(w,A.globalVars)&&(A.globalVars=new yt(w,A.globalVars))}}function Ae(w,A){if(A)if(A.block){var te=Ae(w,A.prev);return te?te==A.prev?A:new pt(te,A.vars,!0):null}else return Y(w,A.vars)?A:new pt(A.prev,new yt(w,A.vars),!1);else return null}function et(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function pt(w,A,te){this.prev=w,this.vars=A,this.block=te}function yt(w,A){this.name=w,this.next=A}var or=new yt("this",new yt("arguments",null));function Mt(){$.state.context=new pt($.state.context,$.state.localVars,!1),$.state.localVars=or}function xt(){$.state.context=new pt($.state.context,$.state.localVars,!0),$.state.localVars=null}function rt(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}rt.lex=!0;function ze(w,A){var te=function(){var ce=$.state,Ke=ce.indented;if(ce.lexical.type=="stat")Ke=ce.lexical.indented;else for(var gt=ce.lexical;gt&>.type==")"&>.align;gt=gt.prev)Ke=gt.indented;ce.lexical=new Ce(Ke,$.stream.column(),w,null,ce.lexical,A)};return te.lex=!0,te}function Ne(){var w=$.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Ne.lex=!0;function Ge(w){function A(te){return te==w?E():w==";"||te=="}"||te==")"||te=="]"?O():E(A)}return A}function st(w,A){return w=="var"?E(ze("vardef",A),Ka,Ge(";"),Ne):w=="keyword a"?E(ze("form"),Zr,st,Ne):w=="keyword b"?E(ze("form"),st,Ne):w=="keyword d"?$.stream.match(/^\s*$/,!1)?E():E(ze("stat"),Qe,Ge(";"),Ne):w=="debugger"?E(Ge(";")):w=="{"?E(ze("}"),xt,Dr,Ne,rt):w==";"?E():w=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Ne&&$.state.cc.pop()(),E(ze("form"),Zr,st,Ne,rl)):w=="function"?E(Cn):w=="for"?E(ze("form"),xt,nl,st,rt,Ne):w=="class"||k&&A=="interface"?($.marked="keyword",E(ze("form",w=="class"?w:A),oa,Ne)):w=="variable"?k&&A=="declare"?($.marked="keyword",E(st)):k&&(A=="module"||A=="enum"||A=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",A=="enum"?E(Fn):A=="type"?E(il,Ge("operator"),qe,Ge(";")):E(ze("form"),qr,Ge("{"),ze("}"),Dr,Ne,Ne)):k&&A=="namespace"?($.marked="keyword",E(ze("form"),Ze,st,Ne)):k&&A=="abstract"?($.marked="keyword",E(st)):E(ze("stat"),tt):w=="switch"?E(ze("form"),Zr,Ge("{"),ze("}","switch"),xt,Dr,Ne,Ne,rt):w=="case"?E(Ze,Ge(":")):w=="default"?E(Ge(":")):w=="catch"?E(ze("form"),Mt,lt,st,Ne,rt):w=="export"?E(ze("stat"),Xa,Ne):w=="import"?E(ze("stat"),Bt,Ne):w=="async"?E(st):A=="@"?E(Ze,st):O(ze("stat"),Ze,Ge(";"),Ne)}function lt(w){if(w=="(")return E(mi,Ge(")"))}function Ze(w,A){return tr(w,A,!1)}function Vt(w,A){return tr(w,A,!0)}function Zr(w){return w!="("?O():E(ze(")"),Qe,Ge(")"),Ne)}function tr(w,A,te){if($.state.fatArrowAt==$.stream.start){var ce=te?it:ar;if(w=="(")return E(Mt,ze(")"),Ut(mi,")"),Ne,Ge("=>"),ce,rt);if(w=="variable")return O(Mt,qr,Ge("=>"),ce,rt)}var Ke=te?kt:bt;return Ye.hasOwnProperty(w)?E(Ke):w=="function"?E(Cn,Ke):w=="class"||k&&A=="interface"?($.marked="keyword",E(ze("form"),Lo,Ne)):w=="keyword c"||w=="async"?E(te?Vt:Ze):w=="("?E(ze(")"),Qe,Ge(")"),Ne,Ke):w=="operator"||w=="spread"?E(te?Vt:Ze):w=="["?E(ze("]"),zt,Ne,Ke):w=="{"?bi(Lr,"}",null,Ke):w=="quasi"?O(Pr,Ke):w=="new"?E(Z(te)):E()}function Qe(w){return w.match(/[;\}\)\],]/)?O():O(Ze)}function bt(w,A){return w==","?E(Qe):kt(w,A,!1)}function kt(w,A,te){var ce=te==!1?bt:kt,Ke=te==!1?Ze:Vt;if(w=="=>")return E(Mt,te?it:ar,rt);if(w=="operator")return/\+\+|--/.test(A)||k&&A=="!"?E(ce):k&&A=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?E(ze(">"),Ut(qe,">"),Ne,ce):A=="?"?E(Ze,Ge(":"),Ke):E(Ke);if(w=="quasi")return O(Pr,ce);if(w!=";"){if(w=="(")return bi(Vt,")","call",ce);if(w==".")return E(sr,ce);if(w=="[")return E(ze("]"),Qe,Ge("]"),Ne,ce);if(k&&A=="as")return $.marked="keyword",E(qe,ce);if(w=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),E(Ke)}}function Pr(w,A){return w!="quasi"?O():A.slice(A.length-2)!="${"?E(Pr):E(Qe,en)}function en(w){if(w=="}")return $.marked="string-2",$.state.tokenize=$e,E(Pr)}function ar(w){return je($.stream,$.state),O(w=="{"?st:Ze)}function it(w){return je($.stream,$.state),O(w=="{"?st:Vt)}function Z(w){return function(A){return A=="."?E(w?K:se):A=="variable"&&k?E(wo,w?kt:bt):O(w?Vt:Ze)}}function se(w,A){if(A=="target")return $.marked="keyword",E(bt)}function K(w,A){if(A=="target")return $.marked="keyword",E(kt)}function tt(w){return w==":"?E(Ne,st):O(bt,Ge(";"),Ne)}function sr(w){if(w=="variable")return $.marked="property",E()}function Lr(w,A){if(w=="async")return $.marked="property",E(Lr);if(w=="variable"||$.style=="keyword"){if($.marked="property",A=="get"||A=="set")return E($n);var te;return k&&$.state.fatArrowAt==$.stream.start&&(te=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+te[0].length),E(Gr)}else{if(w=="number"||w=="string")return $.marked=x?"property":$.style+" property",E(Gr);if(w=="jsonld-keyword")return E(Gr);if(k&&et(A))return $.marked="keyword",E(Lr);if(w=="[")return E(Ze,Pn,Ge("]"),Gr);if(w=="spread")return E(Vt,Gr);if(A=="*")return $.marked="keyword",E(Lr);if(w==":")return O(Gr)}}function $n(w){return w!="variable"?O(Gr):($.marked="property",E(Cn))}function Gr(w){if(w==":")return E(Vt);if(w=="(")return O(Cn)}function Ut(w,A,te){function ce(Ke,gt){if(te?te.indexOf(Ke)>-1:Ke==","){var we=$.state.lexical;return we.info=="call"&&(we.pos=(we.pos||0)+1),E(function(_r,rn){return _r==A||rn==A?O():O(w)},ce)}return Ke==A||gt==A?E():te&&te.indexOf(";")>-1?O(w):E(Ge(A))}return function(Ke,gt){return Ke==A||gt==A?E():O(w,ce)}}function bi(w,A,te){for(var ce=3;ce<arguments.length;ce++)$.cc.push(arguments[ce]);return E(ze(A,te),Ut(w,A),Ne)}function Dr(w){return w=="}"?E():O(st,Dr)}function Pn(w,A){if(k){if(w==":")return E(qe);if(A=="?")return E(Pn)}}function We(w,A){if(k&&(w==":"||A=="in"))return E(qe)}function Bi(w){if(k&&w==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?E(Ze,Sr,qe):E(qe)}function Sr(w,A){if(A=="is")return $.marked="keyword",E()}function qe(w,A){if(A=="keyof"||A=="typeof"||A=="infer"||A=="readonly")return $.marked="keyword",E(A=="typeof"?Vt:qe);if(w=="variable"||A=="void")return $.marked="type",E(ln);if(A=="|"||A=="&")return E(qe);if(w=="string"||w=="number"||w=="atom")return E(ln);if(w=="[")return E(ze("]"),Ut(qe,"]",","),Ne,ln);if(w=="{")return E(ze("}"),na,Ne,ln);if(w=="(")return E(Ut(ia,")"),Jt,ln);if(w=="<")return E(Ut(qe,">"),qe);if(w=="quasi")return O(Dn,ln)}function Jt(w){if(w=="=>")return E(qe)}function na(w){return w.match(/[\}\)\]]/)?E():w==","||w==";"?E(na):O(gr,na)}function gr(w,A){if(w=="variable"||$.style=="keyword")return $.marked="property",E(gr);if(A=="?"||w=="number"||w=="string")return E(gr);if(w==":")return E(qe);if(w=="[")return E(Ge("variable"),We,Ge("]"),gr);if(w=="(")return O(un,gr);if(!w.match(/[;\}\)\],]/))return E()}function Dn(w,A){return w!="quasi"?O():A.slice(A.length-2)!="${"?E(Dn):E(qe,vr)}function vr(w){if(w=="}")return $.marked="string-2",$.state.tokenize=$e,E(Dn)}function ia(w,A){return w=="variable"&&$.stream.match(/^\s*[?:]/,!1)||A=="?"?E(ia):w==":"?E(qe):w=="spread"?E(ia):O(qe)}function ln(w,A){if(A=="<")return E(ze(">"),Ut(qe,">"),Ne,ln);if(A=="|"||w=="."||A=="&")return E(qe);if(w=="[")return E(qe,Ge("]"),ln);if(A=="extends"||A=="implements")return $.marked="keyword",E(qe);if(A=="?")return E(qe,Ge(":"),qe)}function wo(w,A){if(A=="<")return E(ze(">"),Ut(qe,">"),Ne,ln)}function Wi(){return O(qe,ja)}function ja(w,A){if(A=="=")return E(qe)}function Ka(w,A){return A=="enum"?($.marked="keyword",E(Fn)):O(qr,Pn,Xn,zo)}function qr(w,A){if(k&&et(A))return $.marked="keyword",E(qr);if(w=="variable")return ue(A),E();if(w=="spread")return E(qr);if(w=="[")return bi(xo,"]");if(w=="{")return bi(tl,"}")}function tl(w,A){return w=="variable"&&!$.stream.match(/^\s*:/,!1)?(ue(A),E(Xn)):(w=="variable"&&($.marked="property"),w=="spread"?E(qr):w=="}"?O():w=="["?E(Ze,Ge("]"),Ge(":"),tl):E(Ge(":"),qr,Xn))}function xo(){return O(qr,Xn)}function Xn(w,A){if(A=="=")return E(Vt)}function zo(w){if(w==",")return E(Ka)}function rl(w,A){if(w=="keyword b"&&A=="else")return E(ze("form","else"),st,Ne)}function nl(w,A){if(A=="await")return E(nl);if(w=="(")return E(ze(")"),Ya,Ne)}function Ya(w){return w=="var"?E(Ka,Ui):w=="variable"?E(Ui):O(Ui)}function Ui(w,A){return w==")"?E():w==";"?E(Ui):A=="in"||A=="of"?($.marked="keyword",E(Ze,Ui)):O(Ze,Ui)}function Cn(w,A){if(A=="*")return $.marked="keyword",E(Cn);if(w=="variable")return ue(A),E(Cn);if(w=="(")return E(Mt,ze(")"),Ut(mi,")"),Ne,Bi,st,rt);if(k&&A=="<")return E(ze(">"),Ut(Wi,">"),Ne,Cn)}function un(w,A){if(A=="*")return $.marked="keyword",E(un);if(w=="variable")return ue(A),E(un);if(w=="(")return E(Mt,ze(")"),Ut(mi,")"),Ne,Bi,rt);if(k&&A=="<")return E(ze(">"),Ut(Wi,">"),Ne,un)}function il(w,A){if(w=="keyword"||w=="variable")return $.marked="type",E(il);if(A=="<")return E(ze(">"),Ut(Wi,">"),Ne)}function mi(w,A){return A=="@"&&E(Ze,mi),w=="spread"?E(mi):k&&et(A)?($.marked="keyword",E(mi)):k&&w=="this"?E(Pn,Xn):O(qr,Pn,Xn)}function Lo(w,A){return w=="variable"?oa(w,A):Nn(w,A)}function oa(w,A){if(w=="variable")return ue(A),E(Nn)}function Nn(w,A){if(A=="<")return E(ze(">"),Ut(Wi,">"),Ne,Nn);if(A=="extends"||A=="implements"||k&&w==",")return A=="implements"&&($.marked="keyword"),E(k?qe:Ze,Nn);if(w=="{")return E(ze("}"),Rn,Ne)}function Rn(w,A){if(w=="async"||w=="variable"&&(A=="static"||A=="get"||A=="set"||k&&et(A))&&$.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return $.marked="keyword",E(Rn);if(w=="variable"||$.style=="keyword")return $.marked="property",E(cn,Rn);if(w=="number"||w=="string")return E(cn,Rn);if(w=="[")return E(Ze,Pn,Ge("]"),cn,Rn);if(A=="*")return $.marked="keyword",E(Rn);if(k&&w=="(")return O(un,Rn);if(w==";"||w==",")return E(Rn);if(w=="}")return E();if(A=="@")return E(Ze,Rn)}function cn(w,A){if(A=="!"||A=="?")return E(cn);if(w==":")return E(qe,Xn);if(A=="=")return E(Vt);var te=$.state.lexical.prev,ce=te&&te.info=="interface";return O(ce?un:Cn)}function Xa(w,A){return A=="*"?($.marked="keyword",E(tn,Ge(";"))):A=="default"?($.marked="keyword",E(Ze,Ge(";"))):w=="{"?E(Ut(Ja,"}"),tn,Ge(";")):O(st)}function Ja(w,A){if(A=="as")return $.marked="keyword",E(Ge("variable"));if(w=="variable")return O(Vt,Ja)}function Bt(w){return w=="string"?E():w=="("?O(Ze):w=="."?O(bt):O(ke,dn,tn)}function ke(w,A){return w=="{"?bi(ke,"}"):(w=="variable"&&ue(A),A=="*"&&($.marked="keyword"),E(Qa))}function dn(w){if(w==",")return E(ke,dn)}function Qa(w,A){if(A=="as")return $.marked="keyword",E(ke)}function tn(w,A){if(A=="from")return $.marked="keyword",E(Ze)}function zt(w){return w=="]"?E():O(Ut(Vt,"]"))}function Fn(){return O(ze("form"),qr,Ge("{"),ze("}"),Ut(Vi,"}"),Ne,Ne)}function Vi(){return O(qr,Xn)}function aa(w,A){return w.lastType=="operator"||w.lastType==","||R.test(A.charAt(0))||/[,.]/.test(A.charAt(0))}function ae(w,A,te){return A.tokenize==be&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(A.lastType)||A.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(te||0)))}return{startState:function(w){var A={tokenize:be,lastType:"sof",cc:[],lexical:new Ce((w||0)-g,0,"block",!1),localVars:c.localVars,context:c.localVars&&new pt(null,null,!1),indented:w||0};return c.globalVars&&typeof c.globalVars=="object"&&(A.globalVars=c.globalVars),A},token:function(w,A){if(w.sol()&&(A.lexical.hasOwnProperty("align")||(A.lexical.align=!1),A.indented=w.indentation(),je(w,A)),A.tokenize!=Oe&&w.eatSpace())return null;var te=A.tokenize(w,A);return ge=="comment"?te:(A.lastType=ge=="operator"&&(Te=="++"||Te=="--")?"incdec":ge,Q(A,te,ge,Te,w))},indent:function(w,A){if(w.tokenize==Oe||w.tokenize==$e)return n.Pass;if(w.tokenize!=be)return 0;var te=A&&A.charAt(0),ce=w.lexical,Ke;if(!/^\s*else\b/.test(A))for(var gt=w.cc.length-1;gt>=0;--gt){var we=w.cc[gt];if(we==Ne)ce=ce.prev;else if(we!=rl&&we!=rt)break}for(;(ce.type=="stat"||ce.type=="form")&&(te=="}"||(Ke=w.cc[w.cc.length-1])&&(Ke==bt||Ke==kt)&&!/^[,\.=+\-*:?[\(]/.test(A));)ce=ce.prev;h&&ce.type==")"&&ce.prev.type=="stat"&&(ce=ce.prev);var _r=ce.type,rn=te==_r;return _r=="vardef"?ce.indented+(w.lastType=="operator"||w.lastType==","?ce.info.length+1:0):_r=="form"&&te=="{"?ce.indented:_r=="form"?ce.indented+g:_r=="stat"?ce.indented+(aa(w,A)?h||g:0):ce.info=="switch"&&!rn&&c.doubleIndentSwitch!=!1?ce.indented+(/^(?:case|default)\b/.test(A)?g:2*g):ce.align?ce.column+(rn?0:1):ce.indented+(rn?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",blockCommentContinue:z?null:" * ",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:x,jsonMode:z,expressionAllowed:ae,skipExpression:function(w){Q(w,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var zC=xC.exports,E2={exports:{}},k2;function LC(){return k2||(k2=1,function(o,t){(function(n){n(ra)})(function(n){n.defineMode("css",function(Ce,le){var Q=le.inline;le.propertyKeywords||(le=n.resolveMode("text/css"));var $=Ce.indentUnit,O=le.tokenHooks,E=le.documentTypes||{},Y=le.mediaTypes||{},ue=le.mediaFeatures||{},Ae=le.mediaValueKeywords||{},et=le.propertyKeywords||{},pt=le.nonStandardPropertyKeywords||{},yt=le.fontProperties||{},or=le.counterDescriptors||{},Mt=le.colorKeywords||{},xt=le.valueKeywords||{},rt=le.allowNested,ze=le.lineComment,Ne=le.supportsAtComponent===!0,Ge=Ce.highlightNonStandardPropertyKeywords!==!1,st,lt;function Ze(Z,se){return st=se,Z}function Vt(Z,se){var K=Z.next();if(O[K]){var tt=O[K](Z,se);if(tt!==!1)return tt}if(K=="@")return Z.eatWhile(/[\w\\\-]/),Ze("def",Z.current());if(K=="="||(K=="~"||K=="|")&&Z.eat("="))return Ze(null,"compare");if(K=='"'||K=="'")return se.tokenize=Zr(K),se.tokenize(Z,se);if(K=="#")return Z.eatWhile(/[\w\\\-]/),Ze("atom","hash");if(K=="!")return Z.match(/^\s*\w*/),Ze("keyword","important");if(/\d/.test(K)||K=="."&&Z.eat(/\d/))return Z.eatWhile(/[\w.%]/),Ze("number","unit");if(K==="-"){if(/[\d.]/.test(Z.peek()))return Z.eatWhile(/[\w.%]/),Ze("number","unit");if(Z.match(/^-[\w\\\-]*/))return Z.eatWhile(/[\w\\\-]/),Z.match(/^\s*:/,!1)?Ze("variable-2","variable-definition"):Ze("variable-2","variable");if(Z.match(/^\w+-/))return Ze("meta","meta")}else return/[,+>*\/]/.test(K)?Ze(null,"select-op"):K=="."&&Z.match(/^-?[_a-z][_a-z0-9-]*/i)?Ze("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(K)?Ze(null,K):Z.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Z.current())&&(se.tokenize=tr),Ze("variable callee","variable")):/[\w\\\-]/.test(K)?(Z.eatWhile(/[\w\\\-]/),Ze("property","word")):Ze(null,null)}function Zr(Z){return function(se,K){for(var tt=!1,sr;(sr=se.next())!=null;){if(sr==Z&&!tt){Z==")"&&se.backUp(1);break}tt=!tt&&sr=="\\"}return(sr==Z||!tt&&Z!=")")&&(K.tokenize=null),Ze("string","string")}}function tr(Z,se){return Z.next(),Z.match(/^\s*[\"\')]/,!1)?se.tokenize=null:se.tokenize=Zr(")"),Ze(null,"(")}function Qe(Z,se,K){this.type=Z,this.indent=se,this.prev=K}function bt(Z,se,K,tt){return Z.context=new Qe(K,se.indentation()+(tt===!1?0:$),Z.context),K}function kt(Z){return Z.context.prev&&(Z.context=Z.context.prev),Z.context.type}function Pr(Z,se,K){return it[K.context.type](Z,se,K)}function en(Z,se,K,tt){for(var sr=tt||1;sr>0;sr--)K.context=K.context.prev;return Pr(Z,se,K)}function ar(Z){var se=Z.current().toLowerCase();xt.hasOwnProperty(se)?lt="atom":Mt.hasOwnProperty(se)?lt="keyword":lt="variable"}var it={};return it.top=function(Z,se,K){if(Z=="{")return bt(K,se,"block");if(Z=="}"&&K.context.prev)return kt(K);if(Ne&&/@component/i.test(Z))return bt(K,se,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Z))return bt(K,se,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Z))return bt(K,se,"atBlock");if(/^@(font-face|counter-style)/i.test(Z))return K.stateArg=Z,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Z))return"keyframes";if(Z&&Z.charAt(0)=="@")return bt(K,se,"at");if(Z=="hash")lt="builtin";else if(Z=="word")lt="tag";else{if(Z=="variable-definition")return"maybeprop";if(Z=="interpolation")return bt(K,se,"interpolation");if(Z==":")return"pseudo";if(rt&&Z=="(")return bt(K,se,"parens")}return K.context.type},it.block=function(Z,se,K){if(Z=="word"){var tt=se.current().toLowerCase();return et.hasOwnProperty(tt)?(lt="property","maybeprop"):pt.hasOwnProperty(tt)?(lt=Ge?"string-2":"property","maybeprop"):rt?(lt=se.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(lt+=" error","maybeprop")}else return Z=="meta"?"block":!rt&&(Z=="hash"||Z=="qualifier")?(lt="error","block"):it.top(Z,se,K)},it.maybeprop=function(Z,se,K){return Z==":"?bt(K,se,"prop"):Pr(Z,se,K)},it.prop=function(Z,se,K){if(Z==";")return kt(K);if(Z=="{"&&rt)return bt(K,se,"propBlock");if(Z=="}"||Z=="{")return en(Z,se,K);if(Z=="(")return bt(K,se,"parens");if(Z=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(se.current()))lt+=" error";else if(Z=="word")ar(se);else if(Z=="interpolation")return bt(K,se,"interpolation");return"prop"},it.propBlock=function(Z,se,K){return Z=="}"?kt(K):Z=="word"?(lt="property","maybeprop"):K.context.type},it.parens=function(Z,se,K){return Z=="{"||Z=="}"?en(Z,se,K):Z==")"?kt(K):Z=="("?bt(K,se,"parens"):Z=="interpolation"?bt(K,se,"interpolation"):(Z=="word"&&ar(se),"parens")},it.pseudo=function(Z,se,K){return Z=="meta"?"pseudo":Z=="word"?(lt="variable-3",K.context.type):Pr(Z,se,K)},it.documentTypes=function(Z,se,K){return Z=="word"&&E.hasOwnProperty(se.current())?(lt="tag",K.context.type):it.atBlock(Z,se,K)},it.atBlock=function(Z,se,K){if(Z=="(")return bt(K,se,"atBlock_parens");if(Z=="}"||Z==";")return en(Z,se,K);if(Z=="{")return kt(K)&&bt(K,se,rt?"block":"top");if(Z=="interpolation")return bt(K,se,"interpolation");if(Z=="word"){var tt=se.current().toLowerCase();tt=="only"||tt=="not"||tt=="and"||tt=="or"?lt="keyword":Y.hasOwnProperty(tt)?lt="attribute":ue.hasOwnProperty(tt)?lt="property":Ae.hasOwnProperty(tt)?lt="keyword":et.hasOwnProperty(tt)?lt="property":pt.hasOwnProperty(tt)?lt=Ge?"string-2":"property":xt.hasOwnProperty(tt)?lt="atom":Mt.hasOwnProperty(tt)?lt="keyword":lt="error"}return K.context.type},it.atComponentBlock=function(Z,se,K){return Z=="}"?en(Z,se,K):Z=="{"?kt(K)&&bt(K,se,rt?"block":"top",!1):(Z=="word"&&(lt="error"),K.context.type)},it.atBlock_parens=function(Z,se,K){return Z==")"?kt(K):Z=="{"||Z=="}"?en(Z,se,K,2):it.atBlock(Z,se,K)},it.restricted_atBlock_before=function(Z,se,K){return Z=="{"?bt(K,se,"restricted_atBlock"):Z=="word"&&K.stateArg=="@counter-style"?(lt="variable","restricted_atBlock_before"):Pr(Z,se,K)},it.restricted_atBlock=function(Z,se,K){return Z=="}"?(K.stateArg=null,kt(K)):Z=="word"?(K.stateArg=="@font-face"&&!yt.hasOwnProperty(se.current().toLowerCase())||K.stateArg=="@counter-style"&&!or.hasOwnProperty(se.current().toLowerCase())?lt="error":lt="property","maybeprop"):"restricted_atBlock"},it.keyframes=function(Z,se,K){return Z=="word"?(lt="variable","keyframes"):Z=="{"?bt(K,se,"top"):Pr(Z,se,K)},it.at=function(Z,se,K){return Z==";"?kt(K):Z=="{"||Z=="}"?en(Z,se,K):(Z=="word"?lt="tag":Z=="hash"&&(lt="builtin"),"at")},it.interpolation=function(Z,se,K){return Z=="}"?kt(K):Z=="{"||Z==";"?en(Z,se,K):(Z=="word"?lt="variable":Z!="variable"&&Z!="("&&Z!=")"&&(lt="error"),"interpolation")},{startState:function(Z){return{tokenize:null,state:Q?"block":"top",stateArg:null,context:new Qe(Q?"block":"top",Z||0,null)}},token:function(Z,se){if(!se.tokenize&&Z.eatSpace())return null;var K=(se.tokenize||Vt)(Z,se);return K&&typeof K=="object"&&(st=K[1],K=K[0]),lt=K,st!="comment"&&(se.state=it[se.state](st,Z,se)),lt},indent:function(Z,se){var K=Z.context,tt=se&&se.charAt(0),sr=K.indent;return K.type=="prop"&&(tt=="}"||tt==")")&&(K=K.prev),K.prev&&(tt=="}"&&(K.type=="block"||K.type=="top"||K.type=="interpolation"||K.type=="restricted_atBlock")?(K=K.prev,sr=K.indent):(tt==")"&&(K.type=="parens"||K.type=="atBlock_parens")||tt=="{"&&(K.type=="at"||K.type=="atBlock"))&&(sr=Math.max(0,K.indent-$))),sr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ze,fold:"brace"}});function l(Ce){for(var le={},Q=0;Q<Ce.length;++Q)le[Ce[Q].toLowerCase()]=!0;return le}var c=["domain","regexp","url","url-prefix"],g=l(c),h=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],x=l(h),z=["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"],S=l(z),k=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],D=l(k),B=["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"],R=l(B),J=["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"],pe=l(J),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Te=l(ge),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],be=l(Ie),ve=["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"],Oe=l(ve),$e=["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"],De=l($e),je=c.concat(h).concat(z).concat(k).concat(B).concat(J).concat(ve).concat($e);n.registerHelper("hintWords","css",je);function Ye(Ce,le){for(var Q=!1,$;($=Ce.next())!=null;){if(Q&&$=="/"){le.tokenize=null;break}Q=$=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:g,mediaTypes:x,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:Oe,valueKeywords:De,tokenHooks:{"/":function(Ce,le){return Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:x,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,colorKeywords:Oe,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,le){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):["operator","operator"]},":":function(Ce){return Ce.match(/^\s*\{/,!1)?[null,null]:!1},$:function(Ce){return Ce.match(/^[\w-]+/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(Ce){return Ce.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:x,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,colorKeywords:Oe,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,le){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):["operator","operator"]},"@":function(Ce){return Ce.eat("{")?[null,"interpolation"]:Ce.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(Ce.eatWhile(/[\w\\\-]/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:x,mediaFeatures:S,propertyKeywords:R,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:Oe,valueKeywords:De,supportsAtComponent:!0,tokenHooks:{"/":function(Ce,le){return Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):!1}},name:"css",helperType:"gss"})})}()),E2.exports}(function(o,t){(function(n){n(ra,wC,zC,LC())})(function(n){var l={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 c(D,B,R){var J=D.current(),pe=J.search(B);return pe>-1?D.backUp(J.length-pe):J.match(/<\/?$/)&&(D.backUp(J.length),D.match(B,!1)||D.match(J)),R}var g={};function h(D){var B=g[D];return B||(g[D]=new RegExp("\\s+"+D+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function x(D,B){var R=D.match(h(B));return R?/^\s*(.*?)\s*$/.exec(R[2])[1]:""}function z(D,B){return new RegExp((B?"^":"")+"</s*"+D+"s*>","i")}function S(D,B){for(var R in D)for(var J=B[R]||(B[R]=[]),pe=D[R],ge=pe.length-1;ge>=0;ge--)J.unshift(pe[ge])}function k(D,B){for(var R=0;R<D.length;R++){var J=D[R];if(!J[0]||J[1].test(x(B,J[0])))return J[2]}}n.defineMode("htmlmixed",function(D,B){var R=n.getMode(D,{name:"xml",htmlMode:!0,multilineTagIndentFactor:B.multilineTagIndentFactor,multilineTagIndentPastTag:B.multilineTagIndentPastTag,allowMissingTagName:B.allowMissingTagName}),J={},pe=B&&B.tags,ge=B&&B.scriptTypes;if(S(l,J),pe&&S(pe,J),ge)for(var Te=ge.length-1;Te>=0;Te--)J.script.unshift(["type",ge[Te].matches,ge[Te].mode]);function Ie(be,ve){var Oe=R.token(be,ve.htmlState),$e=/\btag\b/.test(Oe),De;if($e&&!/[<>\s\/]/.test(be.current())&&(De=ve.htmlState.tagName&&ve.htmlState.tagName.toLowerCase())&&J.hasOwnProperty(De))ve.inTag=De+" ";else if(ve.inTag&&$e&&/>$/.test(be.current())){var je=/^([\S]+) (.*)/.exec(ve.inTag);ve.inTag=null;var Ye=be.current()==">"&&k(J[je[1]],je[2]),Ce=n.getMode(D,Ye),le=z(je[1],!0),Q=z(je[1],!1);ve.token=function($,O){return $.match(le,!1)?(O.token=Ie,O.localState=O.localMode=null,null):c($,Q,O.localMode.token($,O.localState))},ve.localMode=Ce,ve.localState=n.startState(Ce,R.indent(ve.htmlState,"",""))}else ve.inTag&&(ve.inTag+=be.current(),be.eol()&&(ve.inTag+=" "));return Oe}return{startState:function(){var be=n.startState(R);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:be}},copyState:function(be){var ve;return be.localState&&(ve=n.copyState(be.localMode,be.localState)),{token:be.token,inTag:be.inTag,localMode:be.localMode,localState:ve,htmlState:n.copyState(R,be.htmlState)}},token:function(be,ve){return ve.token(be,ve)},indent:function(be,ve,Oe){return!be.localMode||/^\s*<\//.test(ve)?R.indent(be.htmlState,ve,Oe):be.localMode.indent?be.localMode.indent(be.localState,ve,Oe):n.Pass},innerMode:function(be){return{state:be.localState||be.htmlState,mode:be.localMode||R}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})();(function(o,t){(function(n){n(ra)})(function(n){n.defineMode("solr",function(){var l=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function h(D){return parseFloat(D).toString()===D}function x(D){return function(B,R){for(var J=!1,pe;(pe=B.next())!=null&&!(pe==D&&!J);)J=!J&&pe=="\\";return J||(R.tokenize=k),"string"}}function z(D){return function(B,R){var J="operator";return D=="+"?J+=" positive":D=="-"?J+=" negative":D=="|"?B.eat(/\|/):D=="&"?B.eat(/\&/):D=="^"&&(J+=" boost"),R.tokenize=k,J}}function S(D){return function(B,R){for(var J=D;(D=B.peek())&&D.match(l)!=null;)J+=B.next();return R.tokenize=k,g.test(J)?"operator":h(J)?"number":B.peek()==":"?"field":"string"}}function k(D,B){var R=D.next();return R=='"'?B.tokenize=x(R):c.test(R)?B.tokenize=z(R):l.test(R)&&(B.tokenize=S(R)),B.tokenize!=k?B.tokenize(D,B):null}return{startState:function(){return{tokenize:k}},token:function(D,B){return D.eatSpace()?null:B.tokenize(D,B)}}}),n.defineMIME("text/x-solr","solr")})})();(function(o,t){(function(n){n(ra)})(function(n){n.defineOption("placeholder","",function(S,k,D){var B=D&&D!=n.Init;if(k&&!B)S.on("blur",h),S.on("change",x),S.on("swapDoc",x),n.on(S.getInputField(),"compositionupdate",S.state.placeholderCompose=function(){g(S)}),x(S);else if(!k&&B){S.off("blur",h),S.off("change",x),S.off("swapDoc",x),n.off(S.getInputField(),"compositionupdate",S.state.placeholderCompose),l(S);var R=S.getWrapperElement();R.className=R.className.replace(" CodeMirror-empty","")}k&&!S.hasFocus()&&h(S)});function l(S){S.state.placeholder&&(S.state.placeholder.parentNode.removeChild(S.state.placeholder),S.state.placeholder=null)}function c(S){l(S);var k=S.state.placeholder=document.createElement("pre");k.style.cssText="height: 0; overflow: visible",k.style.direction=S.getOption("direction"),k.className="CodeMirror-placeholder CodeMirror-line-like";var D=S.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),k.appendChild(D),S.display.lineSpace.insertBefore(k,S.display.lineSpace.firstChild)}function g(S){setTimeout(function(){var k=!1;if(S.lineCount()==1){var D=S.getInputField();k=D.nodeName=="TEXTAREA"?!S.getLine(0).length:!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)}k?c(S):l(S)},20)}function h(S){z(S)&&c(S)}function x(S){var k=S.getWrapperElement(),D=z(S);k.className=k.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?c(S):l(S)}function z(S){return S.lineCount()===1&&S.getLine(0)===""}})})();var SC=Object.defineProperty,_C=Object.getOwnPropertyDescriptor,vu=(o,t,n,l)=>{for(var c=l>1?void 0:l?_C(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&SC(t,n,c),c};Lc.defineMode("nunjucks",(o,t)=>Lc.overlayMode(Lc.getMode(o,t.backdrop||"text/html"),Lc.getMode(o,"jinja2")));const Qv=Le("input-code"),MC=["json","nunjucks","javascript","solr"],TC={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends yn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(t){this.value=t.getValue(),this.dispatchChange()}updated(t){var l,c;super.updated(t);const n=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),n!==((l=this.editor)==null?void 0:l.isReadOnly())&&((c=this.editor)==null||c.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var g;return(g=this.editor)==null?void 0:g.refresh()})}get editorValue(){var t;return((t=this.editor)==null?void 0:t.getDoc().getValue())||""}set editorValue(t){var n;(n=this.editor)==null||n.setValue(t)}firstUpdated(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");t&&(this.editor=Lc.fromTextArea(t,{mode:TC[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const c=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.editor)==null||t.off("change",this.changeHandler)}renderInput(){return q`
|
|
2951
|
-
<textarea class="editor" placeholder="${
|
|
2951
|
+
`;(function(o,t){(function(n){n(ra())})(function(n){n.overlayMode=function(l,c,g){return{startState:function(){return{base:n.startState(l),overlay:n.startState(c),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(h){return{base:n.copyState(l,h.base),overlay:n.copyState(c,h.overlay),basePos:h.basePos,baseCur:null,overlayPos:h.overlayPos,overlayCur:null}},token:function(h,x){return(h!=x.streamSeen||Math.min(x.basePos,x.overlayPos)<h.start)&&(x.streamSeen=h,x.basePos=x.overlayPos=h.start),h.start==x.basePos&&(x.baseCur=l.token(h,x.base),x.basePos=h.pos),h.start==x.overlayPos&&(h.pos=h.start,x.overlayCur=c.token(h,x.overlay),x.overlayPos=h.pos),h.pos=Math.min(x.basePos,x.overlayPos),x.overlayCur==null?x.baseCur:x.baseCur!=null&&x.overlay.combineTokens||g&&x.overlay.combineTokens==null?x.baseCur+" "+x.overlayCur:x.overlayCur},indent:l.indent&&function(h,x,z){return l.indent(h.base,x,z)},electricChars:l.electricChars,innerMode:function(h){return{state:h.base,mode:l}},blankLine:function(h){var x,z;return l.blankLine&&(x=l.blankLine(h.base)),c.blankLine&&(z=c.blankLine(h.overlay)),z==null?x:g&&x!=null?x+" "+z:z}}}})})();(function(o,t){(function(n){n(ra())})(function(n){n.defineMode("jinja2",function(){var l=["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"],c=/^[+\-*&%=<>!?|~^]/,g=/^[:\[\(\{]/,h=["true","false"],x=/^(\d[+\-\*\/])?\d+(\.\d+)?/;l=new RegExp("(("+l.join(")|(")+"))\\b"),h=new RegExp("(("+h.join(")|(")+"))\\b");function z(S,E){var D=S.peek();if(E.incomment)return S.skipTo("#}")?(S.eatWhile(/\#|}/),E.incomment=!1):S.skipToEnd(),"comment";if(E.intag){if(E.operator){if(E.operator=!1,S.match(h))return"atom";if(S.match(x))return"number"}if(E.sign){if(E.sign=!1,S.match(h))return"atom";if(S.match(x))return"number"}if(E.instring)return D==E.instring&&(E.instring=!1),S.next(),"string";if(D=="'"||D=='"')return E.instring=D,S.next(),"string";if(S.match(E.intag+"}")||S.eat("-")&&S.match(E.intag+"}"))return E.intag=!1,"tag";if(S.match(c))return E.operator=!0,"operator";if(S.match(g))E.sign=!0;else if(S.eat(" ")||S.sol()){if(S.match(l))return"keyword";if(S.match(h))return"atom";if(S.match(x))return"number";S.sol()&&S.next()}else S.next();return"variable"}else if(S.eat("{")){if(S.eat("#"))return E.incomment=!0,S.skipTo("#}")?(S.eatWhile(/\#|}/),E.incomment=!1):S.skipToEnd(),"comment";if(D=S.eat(/\{|%/))return E.intag=D,D=="{"&&(E.intag="}"),S.eat("-"),"tag"}S.next()}return{startState:function(){return{tokenize:z}},token:function(S,E){return E.tokenize(S,E)},blockCommentStart:"{#",blockCommentEnd:"#}"}}),n.defineMIME("text/jinja2","jinja2")})})();var SC={exports:{}};(function(o,t){(function(n){n(ra())})(function(n){var l={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},c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(g,h){var x=g.indentUnit,z={},S=h.htmlMode?l:c;for(var E in S)z[E]=S[E];for(var E in h)z[E]=h[E];var D,B;function R(O,k){function Y(et){return k.tokenize=et,et(O,k)}var ue=O.next();if(ue=="<")return O.eat("!")?O.eat("[")?O.match("CDATA[")?Y(ge("atom","]]>")):null:O.match("--")?Y(ge("comment","-->")):O.match("DOCTYPE",!0,!0)?(O.eatWhile(/[\w\._\-]/),Y(Te(1))):null:O.eat("?")?(O.eatWhile(/[\w\._\-]/),k.tokenize=ge("meta","?>"),"meta"):(D=O.eat("/")?"closeTag":"openTag",k.tokenize=J,"tag bracket");if(ue=="&"){var Ae;return O.eat("#")?O.eat("x")?Ae=O.eatWhile(/[a-fA-F\d]/)&&O.eat(";"):Ae=O.eatWhile(/[\d]/)&&O.eat(";"):Ae=O.eatWhile(/[\w\.\-:]/)&&O.eat(";"),Ae?"atom":"error"}else return O.eatWhile(/[^&<]/),null}R.isInText=!0;function J(O,k){var Y=O.next();if(Y==">"||Y=="/"&&O.eat(">"))return k.tokenize=R,D=Y==">"?"endTag":"selfcloseTag","tag bracket";if(Y=="=")return D="equals",null;if(Y=="<"){k.tokenize=R,k.state=Oe,k.tagName=k.tagStart=null;var ue=k.tokenize(O,k);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(Y)?(k.tokenize=pe(Y),k.stringStartCol=O.column(),k.tokenize(O,k)):(O.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function pe(O){var k=function(Y,ue){for(;!Y.eol();)if(Y.next()==O){ue.tokenize=J;break}return"string"};return k.isInAttribute=!0,k}function ge(O,k){return function(Y,ue){for(;!Y.eol();){if(Y.match(k)){ue.tokenize=R;break}Y.next()}return O}}function Te(O){return function(k,Y){for(var ue;(ue=k.next())!=null;){if(ue=="<")return Y.tokenize=Te(O+1),Y.tokenize(k,Y);if(ue==">")if(O==1){Y.tokenize=R;break}else return Y.tokenize=Te(O-1),Y.tokenize(k,Y)}return"meta"}}function Ie(O,k,Y){this.prev=O.context,this.tagName=k||"",this.indent=O.indented,this.startOfLine=Y,(z.doNotIndent.hasOwnProperty(k)||O.context&&O.context.noIndent)&&(this.noIndent=!0)}function be(O){O.context&&(O.context=O.context.prev)}function ve(O,k){for(var Y;;){if(!O.context||(Y=O.context.tagName,!z.contextGrabbers.hasOwnProperty(Y)||!z.contextGrabbers[Y].hasOwnProperty(k)))return;be(O)}}function Oe(O,k,Y){return O=="openTag"?(Y.tagStart=k.column(),$e):O=="closeTag"?De:Oe}function $e(O,k,Y){return O=="word"?(Y.tagName=k.current(),B="tag",Ce):z.allowMissingTagName&&O=="endTag"?(B="tag bracket",Ce(O,k,Y)):(B="error",$e)}function De(O,k,Y){if(O=="word"){var ue=k.current();return Y.context&&Y.context.tagName!=ue&&z.implicitlyClosed.hasOwnProperty(Y.context.tagName)&&be(Y),Y.context&&Y.context.tagName==ue||z.matchClosing===!1?(B="tag",je):(B="tag error",Ye)}else return z.allowMissingTagName&&O=="endTag"?(B="tag bracket",je(O,k,Y)):(B="error",Ye)}function je(O,k,Y){return O!="endTag"?(B="error",je):(be(Y),Oe)}function Ye(O,k,Y){return B="error",je(O,k,Y)}function Ce(O,k,Y){if(O=="word")return B="attribute",le;if(O=="endTag"||O=="selfcloseTag"){var ue=Y.tagName,Ae=Y.tagStart;return Y.tagName=Y.tagStart=null,O=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(ue)?ve(Y,ue):(ve(Y,ue),Y.context=new Ie(Y,ue,Ae==Y.indented)),Oe}return B="error",Ce}function le(O,k,Y){return O=="equals"?Q:(z.allowMissing||(B="error"),Ce(O,k,Y))}function Q(O,k,Y){return O=="string"?$:O=="word"&&z.allowUnquoted?(B="string",Ce):(B="error",Ce(O,k,Y))}function $(O,k,Y){return O=="string"?$:Ce(O,k,Y)}return{startState:function(O){var k={tokenize:R,state:Oe,indented:O||0,tagName:null,tagStart:null,context:null};return O!=null&&(k.baseIndent=O),k},token:function(O,k){if(!k.tagName&&O.sol()&&(k.indented=O.indentation()),O.eatSpace())return null;D=null;var Y=k.tokenize(O,k);return(Y||D)&&Y!="comment"&&(B=null,k.state=k.state(D||Y,O,k),B&&(Y=B=="error"?Y+" error":B)),Y},indent:function(O,k,Y){var ue=O.context;if(O.tokenize.isInAttribute)return O.tagStart==O.indented?O.stringStartCol+1:O.indented+x;if(ue&&ue.noIndent)return n.Pass;if(O.tokenize!=J&&O.tokenize!=R)return Y?Y.match(/^(\s*)/)[0].length:0;if(O.tagName)return z.multilineTagIndentPastTag!==!1?O.tagStart+O.tagName.length+2:O.tagStart+x*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(k))return 0;var Ae=k&&/^<(\/)?([\w_:\.-]*)/.exec(k);if(Ae&&Ae[1])for(;ue;)if(ue.tagName==Ae[2]){ue=ue.prev;break}else if(z.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(Ae)for(;ue;){var et=z.contextGrabbers[ue.tagName];if(et&&et.hasOwnProperty(Ae[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+x:O.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(O){O.state==Q&&(O.state=Ce)},xmlCurrentTag:function(O){return O.tagName?{name:O.tagName,close:O.type=="closeTag"}:null},xmlCurrentContext:function(O){for(var k=[],Y=O.context;Y;Y=Y.prev)k.push(Y.tagName);return k.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var _C=SC.exports,I2={exports:{}},A2;function r4(){return A2||(A2=1,function(o,t){(function(n){n(ra())})(function(n){n.defineMode("javascript",function(l,c){var g=l.indentUnit,h=c.statementIndent,x=c.jsonld,z=c.json||x,S=c.trackScope!==!1,E=c.typescript,D=c.wordCharacters||/[\w$\xa1-\uffff]/,B=function(){function w(_r){return{type:_r,style:"keyword"}}var A=w("keyword a"),te=w("keyword b"),ce=w("keyword c"),Ke=w("keyword d"),gt=w("operator"),we={type:"atom",style:"atom"};return{if:w("if"),while:A,with:A,else:te,do:te,try:te,finally:te,return:Ke,break:Ke,continue:Ke,new:w("new"),delete:ce,void:ce,throw:ce,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:gt,typeof:gt,instanceof:gt,true:we,false:we,null:we,undefined:we,NaN:we,Infinity:we,this:w("this"),class:w("class"),super:w("atom"),yield:ce,export:w("export"),import:w("import"),extends:ce,await:ce}}(),R=/[+\-*&%=<>!?|~^@]/,J=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function pe(w){for(var A=!1,te,ce=!1;(te=w.next())!=null;){if(!A){if(te=="/"&&!ce)return;te=="["?ce=!0:ce&&te=="]"&&(ce=!1)}A=!A&&te=="\\"}}var ge,Te;function Ie(w,A,te){return ge=w,Te=te,A}function be(w,A){var te=w.next();if(te=='"'||te=="'")return A.tokenize=ve(te),A.tokenize(w,A);if(te=="."&&w.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return Ie("number","number");if(te=="."&&w.match(".."))return Ie("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(te))return Ie(te);if(te=="="&&w.eat(">"))return Ie("=>","operator");if(te=="0"&&w.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return Ie("number","number");if(/\d/.test(te))return w.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),Ie("number","number");if(te=="/")return w.eat("*")?(A.tokenize=Oe,Oe(w,A)):w.eat("/")?(w.skipToEnd(),Ie("comment","comment")):ae(w,A,1)?(pe(w),w.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),Ie("regexp","string-2")):(w.eat("="),Ie("operator","operator",w.current()));if(te=="`")return A.tokenize=$e,$e(w,A);if(te=="#"&&w.peek()=="!")return w.skipToEnd(),Ie("meta","meta");if(te=="#"&&w.eatWhile(D))return Ie("variable","property");if(te=="<"&&w.match("!--")||te=="-"&&w.match("->")&&!/\S/.test(w.string.slice(0,w.start)))return w.skipToEnd(),Ie("comment","comment");if(R.test(te))return(te!=">"||!A.lexical||A.lexical.type!=">")&&(w.eat("=")?(te=="!"||te=="=")&&w.eat("="):/[<>*+\-|&?]/.test(te)&&(w.eat(te),te==">"&&w.eat(te))),te=="?"&&w.eat(".")?Ie("."):Ie("operator","operator",w.current());if(D.test(te)){w.eatWhile(D);var ce=w.current();if(A.lastType!="."){if(B.propertyIsEnumerable(ce)){var Ke=B[ce];return Ie(Ke.type,Ke.style,ce)}if(ce=="async"&&w.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return Ie("async","keyword",ce)}return Ie("variable","variable",ce)}}function ve(w){return function(A,te){var ce=!1,Ke;if(x&&A.peek()=="@"&&A.match(J))return te.tokenize=be,Ie("jsonld-keyword","meta");for(;(Ke=A.next())!=null&&!(Ke==w&&!ce);)ce=!ce&&Ke=="\\";return ce||(te.tokenize=be),Ie("string","string")}}function Oe(w,A){for(var te=!1,ce;ce=w.next();){if(ce=="/"&&te){A.tokenize=be;break}te=ce=="*"}return Ie("comment","comment")}function $e(w,A){for(var te=!1,ce;(ce=w.next())!=null;){if(!te&&(ce=="`"||ce=="$"&&w.eat("{"))){A.tokenize=be;break}te=!te&&ce=="\\"}return Ie("quasi","string-2",w.current())}var De="([{}])";function je(w,A){A.fatArrowAt&&(A.fatArrowAt=null);var te=w.string.indexOf("=>",w.start);if(!(te<0)){if(E){var ce=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(w.string.slice(w.start,te));ce&&(te=ce.index)}for(var Ke=0,gt=!1,we=te-1;we>=0;--we){var _r=w.string.charAt(we),rn=De.indexOf(_r);if(rn>=0&&rn<3){if(!Ke){++we;break}if(--Ke==0){_r=="("&&(gt=!0);break}}else if(rn>=3&&rn<6)++Ke;else if(D.test(_r))gt=!0;else if(/["'\/`]/.test(_r))for(;;--we){if(we==0)return;var yi=w.string.charAt(we-1);if(yi==_r&&w.string.charAt(we-2)!="\\"){we--;break}}else if(gt&&!Ke){++we;break}}gt&&!Ke&&(A.fatArrowAt=we)}}var Ye={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Ce(w,A,te,ce,Ke,gt){this.indented=w,this.column=A,this.type=te,this.prev=Ke,this.info=gt,ce!=null&&(this.align=ce)}function le(w,A){if(!S)return!1;for(var te=w.localVars;te;te=te.next)if(te.name==A)return!0;for(var ce=w.context;ce;ce=ce.prev)for(var te=ce.vars;te;te=te.next)if(te.name==A)return!0}function Q(w,A,te,ce,Ke){var gt=w.cc;for($.state=w,$.stream=Ke,$.marked=null,$.cc=gt,$.style=A,w.lexical.hasOwnProperty("align")||(w.lexical.align=!0);;){var we=gt.length?gt.pop():z?Ze:st;if(we(te,ce)){for(;gt.length&>[gt.length-1].lex;)gt.pop()();return $.marked?$.marked:te=="variable"&&le(w,ce)?"variable-2":A}}}var $={state:null,column:null,marked:null,cc:null};function O(){for(var w=arguments.length-1;w>=0;w--)$.cc.push(arguments[w])}function k(){return O.apply(null,arguments),!0}function Y(w,A){for(var te=A;te;te=te.next)if(te.name==w)return!0;return!1}function ue(w){var A=$.state;if($.marked="def",!!S){if(A.context){if(A.lexical.info=="var"&&A.context&&A.context.block){var te=Ae(w,A.context);if(te!=null){A.context=te;return}}else if(!Y(w,A.localVars)){A.localVars=new yt(w,A.localVars);return}}c.globalVars&&!Y(w,A.globalVars)&&(A.globalVars=new yt(w,A.globalVars))}}function Ae(w,A){if(A)if(A.block){var te=Ae(w,A.prev);return te?te==A.prev?A:new pt(te,A.vars,!0):null}else return Y(w,A.vars)?A:new pt(A.prev,new yt(w,A.vars),!1);else return null}function et(w){return w=="public"||w=="private"||w=="protected"||w=="abstract"||w=="readonly"}function pt(w,A,te){this.prev=w,this.vars=A,this.block=te}function yt(w,A){this.name=w,this.next=A}var or=new yt("this",new yt("arguments",null));function Mt(){$.state.context=new pt($.state.context,$.state.localVars,!1),$.state.localVars=or}function xt(){$.state.context=new pt($.state.context,$.state.localVars,!0),$.state.localVars=null}function rt(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}rt.lex=!0;function ze(w,A){var te=function(){var ce=$.state,Ke=ce.indented;if(ce.lexical.type=="stat")Ke=ce.lexical.indented;else for(var gt=ce.lexical;gt&>.type==")"&>.align;gt=gt.prev)Ke=gt.indented;ce.lexical=new Ce(Ke,$.stream.column(),w,null,ce.lexical,A)};return te.lex=!0,te}function Ne(){var w=$.state;w.lexical.prev&&(w.lexical.type==")"&&(w.indented=w.lexical.indented),w.lexical=w.lexical.prev)}Ne.lex=!0;function Ge(w){function A(te){return te==w?k():w==";"||te=="}"||te==")"||te=="]"?O():k(A)}return A}function st(w,A){return w=="var"?k(ze("vardef",A),Ka,Ge(";"),Ne):w=="keyword a"?k(ze("form"),Zr,st,Ne):w=="keyword b"?k(ze("form"),st,Ne):w=="keyword d"?$.stream.match(/^\s*$/,!1)?k():k(ze("stat"),Qe,Ge(";"),Ne):w=="debugger"?k(Ge(";")):w=="{"?k(ze("}"),xt,Dr,Ne,rt):w==";"?k():w=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Ne&&$.state.cc.pop()(),k(ze("form"),Zr,st,Ne,nl)):w=="function"?k(Cn):w=="for"?k(ze("form"),xt,il,st,rt,Ne):w=="class"||E&&A=="interface"?($.marked="keyword",k(ze("form",w=="class"?w:A),oa,Ne)):w=="variable"?E&&A=="declare"?($.marked="keyword",k(st)):E&&(A=="module"||A=="enum"||A=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",A=="enum"?k(Fn):A=="type"?k(ol,Ge("operator"),qe,Ge(";")):k(ze("form"),qr,Ge("{"),ze("}"),Dr,Ne,Ne)):E&&A=="namespace"?($.marked="keyword",k(ze("form"),Ze,st,Ne)):E&&A=="abstract"?($.marked="keyword",k(st)):k(ze("stat"),tt):w=="switch"?k(ze("form"),Zr,Ge("{"),ze("}","switch"),xt,Dr,Ne,Ne,rt):w=="case"?k(Ze,Ge(":")):w=="default"?k(Ge(":")):w=="catch"?k(ze("form"),Mt,lt,st,Ne,rt):w=="export"?k(ze("stat"),Xa,Ne):w=="import"?k(ze("stat"),Bt,Ne):w=="async"?k(st):A=="@"?k(Ze,st):O(ze("stat"),Ze,Ge(";"),Ne)}function lt(w){if(w=="(")return k(mi,Ge(")"))}function Ze(w,A){return tr(w,A,!1)}function Vt(w,A){return tr(w,A,!0)}function Zr(w){return w!="("?O():k(ze(")"),Qe,Ge(")"),Ne)}function tr(w,A,te){if($.state.fatArrowAt==$.stream.start){var ce=te?it:ar;if(w=="(")return k(Mt,ze(")"),Ut(mi,")"),Ne,Ge("=>"),ce,rt);if(w=="variable")return O(Mt,qr,Ge("=>"),ce,rt)}var Ke=te?Et:bt;return Ye.hasOwnProperty(w)?k(Ke):w=="function"?k(Cn,Ke):w=="class"||E&&A=="interface"?($.marked="keyword",k(ze("form"),Lo,Ne)):w=="keyword c"||w=="async"?k(te?Vt:Ze):w=="("?k(ze(")"),Qe,Ge(")"),Ne,Ke):w=="operator"||w=="spread"?k(te?Vt:Ze):w=="["?k(ze("]"),zt,Ne,Ke):w=="{"?bi(Lr,"}",null,Ke):w=="quasi"?O(Pr,Ke):w=="new"?k(Z(te)):k()}function Qe(w){return w.match(/[;\}\)\],]/)?O():O(Ze)}function bt(w,A){return w==","?k(Qe):Et(w,A,!1)}function Et(w,A,te){var ce=te==!1?bt:Et,Ke=te==!1?Ze:Vt;if(w=="=>")return k(Mt,te?it:ar,rt);if(w=="operator")return/\+\+|--/.test(A)||E&&A=="!"?k(ce):E&&A=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(ze(">"),Ut(qe,">"),Ne,ce):A=="?"?k(Ze,Ge(":"),Ke):k(Ke);if(w=="quasi")return O(Pr,ce);if(w!=";"){if(w=="(")return bi(Vt,")","call",ce);if(w==".")return k(sr,ce);if(w=="[")return k(ze("]"),Qe,Ge("]"),Ne,ce);if(E&&A=="as")return $.marked="keyword",k(qe,ce);if(w=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),k(Ke)}}function Pr(w,A){return w!="quasi"?O():A.slice(A.length-2)!="${"?k(Pr):k(Qe,en)}function en(w){if(w=="}")return $.marked="string-2",$.state.tokenize=$e,k(Pr)}function ar(w){return je($.stream,$.state),O(w=="{"?st:Ze)}function it(w){return je($.stream,$.state),O(w=="{"?st:Vt)}function Z(w){return function(A){return A=="."?k(w?K:se):A=="variable"&&E?k(wo,w?Et:bt):O(w?Vt:Ze)}}function se(w,A){if(A=="target")return $.marked="keyword",k(bt)}function K(w,A){if(A=="target")return $.marked="keyword",k(Et)}function tt(w){return w==":"?k(Ne,st):O(bt,Ge(";"),Ne)}function sr(w){if(w=="variable")return $.marked="property",k()}function Lr(w,A){if(w=="async")return $.marked="property",k(Lr);if(w=="variable"||$.style=="keyword"){if($.marked="property",A=="get"||A=="set")return k($n);var te;return E&&$.state.fatArrowAt==$.stream.start&&(te=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+te[0].length),k(Gr)}else{if(w=="number"||w=="string")return $.marked=x?"property":$.style+" property",k(Gr);if(w=="jsonld-keyword")return k(Gr);if(E&&et(A))return $.marked="keyword",k(Lr);if(w=="[")return k(Ze,Pn,Ge("]"),Gr);if(w=="spread")return k(Vt,Gr);if(A=="*")return $.marked="keyword",k(Lr);if(w==":")return O(Gr)}}function $n(w){return w!="variable"?O(Gr):($.marked="property",k(Cn))}function Gr(w){if(w==":")return k(Vt);if(w=="(")return O(Cn)}function Ut(w,A,te){function ce(Ke,gt){if(te?te.indexOf(Ke)>-1:Ke==","){var we=$.state.lexical;return we.info=="call"&&(we.pos=(we.pos||0)+1),k(function(_r,rn){return _r==A||rn==A?O():O(w)},ce)}return Ke==A||gt==A?k():te&&te.indexOf(";")>-1?O(w):k(Ge(A))}return function(Ke,gt){return Ke==A||gt==A?k():O(w,ce)}}function bi(w,A,te){for(var ce=3;ce<arguments.length;ce++)$.cc.push(arguments[ce]);return k(ze(A,te),Ut(w,A),Ne)}function Dr(w){return w=="}"?k():O(st,Dr)}function Pn(w,A){if(E){if(w==":")return k(qe);if(A=="?")return k(Pn)}}function We(w,A){if(E&&(w==":"||A=="in"))return k(qe)}function Wi(w){if(E&&w==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?k(Ze,Sr,qe):k(qe)}function Sr(w,A){if(A=="is")return $.marked="keyword",k()}function qe(w,A){if(A=="keyof"||A=="typeof"||A=="infer"||A=="readonly")return $.marked="keyword",k(A=="typeof"?Vt:qe);if(w=="variable"||A=="void")return $.marked="type",k(ln);if(A=="|"||A=="&")return k(qe);if(w=="string"||w=="number"||w=="atom")return k(ln);if(w=="[")return k(ze("]"),Ut(qe,"]",","),Ne,ln);if(w=="{")return k(ze("}"),na,Ne,ln);if(w=="(")return k(Ut(ia,")"),Jt,ln);if(w=="<")return k(Ut(qe,">"),qe);if(w=="quasi")return O(Dn,ln)}function Jt(w){if(w=="=>")return k(qe)}function na(w){return w.match(/[\}\)\]]/)?k():w==","||w==";"?k(na):O(gr,na)}function gr(w,A){if(w=="variable"||$.style=="keyword")return $.marked="property",k(gr);if(A=="?"||w=="number"||w=="string")return k(gr);if(w==":")return k(qe);if(w=="[")return k(Ge("variable"),We,Ge("]"),gr);if(w=="(")return O(un,gr);if(!w.match(/[;\}\)\],]/))return k()}function Dn(w,A){return w!="quasi"?O():A.slice(A.length-2)!="${"?k(Dn):k(qe,vr)}function vr(w){if(w=="}")return $.marked="string-2",$.state.tokenize=$e,k(Dn)}function ia(w,A){return w=="variable"&&$.stream.match(/^\s*[?:]/,!1)||A=="?"?k(ia):w==":"?k(qe):w=="spread"?k(ia):O(qe)}function ln(w,A){if(A=="<")return k(ze(">"),Ut(qe,">"),Ne,ln);if(A=="|"||w=="."||A=="&")return k(qe);if(w=="[")return k(qe,Ge("]"),ln);if(A=="extends"||A=="implements")return $.marked="keyword",k(qe);if(A=="?")return k(qe,Ge(":"),qe)}function wo(w,A){if(A=="<")return k(ze(">"),Ut(qe,">"),Ne,ln)}function Ui(){return O(qe,ja)}function ja(w,A){if(A=="=")return k(qe)}function Ka(w,A){return A=="enum"?($.marked="keyword",k(Fn)):O(qr,Pn,Xn,zo)}function qr(w,A){if(E&&et(A))return $.marked="keyword",k(qr);if(w=="variable")return ue(A),k();if(w=="spread")return k(qr);if(w=="[")return bi(xo,"]");if(w=="{")return bi(rl,"}")}function rl(w,A){return w=="variable"&&!$.stream.match(/^\s*:/,!1)?(ue(A),k(Xn)):(w=="variable"&&($.marked="property"),w=="spread"?k(qr):w=="}"?O():w=="["?k(Ze,Ge("]"),Ge(":"),rl):k(Ge(":"),qr,Xn))}function xo(){return O(qr,Xn)}function Xn(w,A){if(A=="=")return k(Vt)}function zo(w){if(w==",")return k(Ka)}function nl(w,A){if(w=="keyword b"&&A=="else")return k(ze("form","else"),st,Ne)}function il(w,A){if(A=="await")return k(il);if(w=="(")return k(ze(")"),Ya,Ne)}function Ya(w){return w=="var"?k(Ka,Vi):w=="variable"?k(Vi):O(Vi)}function Vi(w,A){return w==")"?k():w==";"?k(Vi):A=="in"||A=="of"?($.marked="keyword",k(Ze,Vi)):O(Ze,Vi)}function Cn(w,A){if(A=="*")return $.marked="keyword",k(Cn);if(w=="variable")return ue(A),k(Cn);if(w=="(")return k(Mt,ze(")"),Ut(mi,")"),Ne,Wi,st,rt);if(E&&A=="<")return k(ze(">"),Ut(Ui,">"),Ne,Cn)}function un(w,A){if(A=="*")return $.marked="keyword",k(un);if(w=="variable")return ue(A),k(un);if(w=="(")return k(Mt,ze(")"),Ut(mi,")"),Ne,Wi,rt);if(E&&A=="<")return k(ze(">"),Ut(Ui,">"),Ne,un)}function ol(w,A){if(w=="keyword"||w=="variable")return $.marked="type",k(ol);if(A=="<")return k(ze(">"),Ut(Ui,">"),Ne)}function mi(w,A){return A=="@"&&k(Ze,mi),w=="spread"?k(mi):E&&et(A)?($.marked="keyword",k(mi)):E&&w=="this"?k(Pn,Xn):O(qr,Pn,Xn)}function Lo(w,A){return w=="variable"?oa(w,A):Nn(w,A)}function oa(w,A){if(w=="variable")return ue(A),k(Nn)}function Nn(w,A){if(A=="<")return k(ze(">"),Ut(Ui,">"),Ne,Nn);if(A=="extends"||A=="implements"||E&&w==",")return A=="implements"&&($.marked="keyword"),k(E?qe:Ze,Nn);if(w=="{")return k(ze("}"),Rn,Ne)}function Rn(w,A){if(w=="async"||w=="variable"&&(A=="static"||A=="get"||A=="set"||E&&et(A))&&$.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return $.marked="keyword",k(Rn);if(w=="variable"||$.style=="keyword")return $.marked="property",k(cn,Rn);if(w=="number"||w=="string")return k(cn,Rn);if(w=="[")return k(Ze,Pn,Ge("]"),cn,Rn);if(A=="*")return $.marked="keyword",k(Rn);if(E&&w=="(")return O(un,Rn);if(w==";"||w==",")return k(Rn);if(w=="}")return k();if(A=="@")return k(Ze,Rn)}function cn(w,A){if(A=="!"||A=="?")return k(cn);if(w==":")return k(qe,Xn);if(A=="=")return k(Vt);var te=$.state.lexical.prev,ce=te&&te.info=="interface";return O(ce?un:Cn)}function Xa(w,A){return A=="*"?($.marked="keyword",k(tn,Ge(";"))):A=="default"?($.marked="keyword",k(Ze,Ge(";"))):w=="{"?k(Ut(Ja,"}"),tn,Ge(";")):O(st)}function Ja(w,A){if(A=="as")return $.marked="keyword",k(Ge("variable"));if(w=="variable")return O(Vt,Ja)}function Bt(w){return w=="string"?k():w=="("?O(Ze):w=="."?O(bt):O(Ee,dn,tn)}function Ee(w,A){return w=="{"?bi(Ee,"}"):(w=="variable"&&ue(A),A=="*"&&($.marked="keyword"),k(Qa))}function dn(w){if(w==",")return k(Ee,dn)}function Qa(w,A){if(A=="as")return $.marked="keyword",k(Ee)}function tn(w,A){if(A=="from")return $.marked="keyword",k(Ze)}function zt(w){return w=="]"?k():O(Ut(Vt,"]"))}function Fn(){return O(ze("form"),qr,Ge("{"),ze("}"),Ut(Zi,"}"),Ne,Ne)}function Zi(){return O(qr,Xn)}function aa(w,A){return w.lastType=="operator"||w.lastType==","||R.test(A.charAt(0))||/[,.]/.test(A.charAt(0))}function ae(w,A,te){return A.tokenize==be&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(A.lastType)||A.lastType=="quasi"&&/\{\s*$/.test(w.string.slice(0,w.pos-(te||0)))}return{startState:function(w){var A={tokenize:be,lastType:"sof",cc:[],lexical:new Ce((w||0)-g,0,"block",!1),localVars:c.localVars,context:c.localVars&&new pt(null,null,!1),indented:w||0};return c.globalVars&&typeof c.globalVars=="object"&&(A.globalVars=c.globalVars),A},token:function(w,A){if(w.sol()&&(A.lexical.hasOwnProperty("align")||(A.lexical.align=!1),A.indented=w.indentation(),je(w,A)),A.tokenize!=Oe&&w.eatSpace())return null;var te=A.tokenize(w,A);return ge=="comment"?te:(A.lastType=ge=="operator"&&(Te=="++"||Te=="--")?"incdec":ge,Q(A,te,ge,Te,w))},indent:function(w,A){if(w.tokenize==Oe||w.tokenize==$e)return n.Pass;if(w.tokenize!=be)return 0;var te=A&&A.charAt(0),ce=w.lexical,Ke;if(!/^\s*else\b/.test(A))for(var gt=w.cc.length-1;gt>=0;--gt){var we=w.cc[gt];if(we==Ne)ce=ce.prev;else if(we!=nl&&we!=rt)break}for(;(ce.type=="stat"||ce.type=="form")&&(te=="}"||(Ke=w.cc[w.cc.length-1])&&(Ke==bt||Ke==Et)&&!/^[,\.=+\-*:?[\(]/.test(A));)ce=ce.prev;h&&ce.type==")"&&ce.prev.type=="stat"&&(ce=ce.prev);var _r=ce.type,rn=te==_r;return _r=="vardef"?ce.indented+(w.lastType=="operator"||w.lastType==","?ce.info.length+1:0):_r=="form"&&te=="{"?ce.indented:_r=="form"?ce.indented+g:_r=="stat"?ce.indented+(aa(w,A)?h||g:0):ce.info=="switch"&&!rn&&c.doubleIndentSwitch!=!1?ce.indented+(/^(?:case|default)\b/.test(A)?g:2*g):ce.align?ce.column+(rn?0:1):ce.indented+(rn?0:g)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:z?null:"/*",blockCommentEnd:z?null:"*/",blockCommentContinue:z?null:" * ",lineComment:z?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:z?"json":"javascript",jsonldMode:x,jsonMode:z,expressionAllowed:ae,skipExpression:function(w){Q(w,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),I2.exports}r4();var $2={exports:{}},P2;function MC(){return P2||(P2=1,function(o,t){(function(n){n(ra())})(function(n){n.defineMode("css",function(Ce,le){var Q=le.inline;le.propertyKeywords||(le=n.resolveMode("text/css"));var $=Ce.indentUnit,O=le.tokenHooks,k=le.documentTypes||{},Y=le.mediaTypes||{},ue=le.mediaFeatures||{},Ae=le.mediaValueKeywords||{},et=le.propertyKeywords||{},pt=le.nonStandardPropertyKeywords||{},yt=le.fontProperties||{},or=le.counterDescriptors||{},Mt=le.colorKeywords||{},xt=le.valueKeywords||{},rt=le.allowNested,ze=le.lineComment,Ne=le.supportsAtComponent===!0,Ge=Ce.highlightNonStandardPropertyKeywords!==!1,st,lt;function Ze(Z,se){return st=se,Z}function Vt(Z,se){var K=Z.next();if(O[K]){var tt=O[K](Z,se);if(tt!==!1)return tt}if(K=="@")return Z.eatWhile(/[\w\\\-]/),Ze("def",Z.current());if(K=="="||(K=="~"||K=="|")&&Z.eat("="))return Ze(null,"compare");if(K=='"'||K=="'")return se.tokenize=Zr(K),se.tokenize(Z,se);if(K=="#")return Z.eatWhile(/[\w\\\-]/),Ze("atom","hash");if(K=="!")return Z.match(/^\s*\w*/),Ze("keyword","important");if(/\d/.test(K)||K=="."&&Z.eat(/\d/))return Z.eatWhile(/[\w.%]/),Ze("number","unit");if(K==="-"){if(/[\d.]/.test(Z.peek()))return Z.eatWhile(/[\w.%]/),Ze("number","unit");if(Z.match(/^-[\w\\\-]*/))return Z.eatWhile(/[\w\\\-]/),Z.match(/^\s*:/,!1)?Ze("variable-2","variable-definition"):Ze("variable-2","variable");if(Z.match(/^\w+-/))return Ze("meta","meta")}else return/[,+>*\/]/.test(K)?Ze(null,"select-op"):K=="."&&Z.match(/^-?[_a-z][_a-z0-9-]*/i)?Ze("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(K)?Ze(null,K):Z.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Z.current())&&(se.tokenize=tr),Ze("variable callee","variable")):/[\w\\\-]/.test(K)?(Z.eatWhile(/[\w\\\-]/),Ze("property","word")):Ze(null,null)}function Zr(Z){return function(se,K){for(var tt=!1,sr;(sr=se.next())!=null;){if(sr==Z&&!tt){Z==")"&&se.backUp(1);break}tt=!tt&&sr=="\\"}return(sr==Z||!tt&&Z!=")")&&(K.tokenize=null),Ze("string","string")}}function tr(Z,se){return Z.next(),Z.match(/^\s*[\"\')]/,!1)?se.tokenize=null:se.tokenize=Zr(")"),Ze(null,"(")}function Qe(Z,se,K){this.type=Z,this.indent=se,this.prev=K}function bt(Z,se,K,tt){return Z.context=new Qe(K,se.indentation()+(tt===!1?0:$),Z.context),K}function Et(Z){return Z.context.prev&&(Z.context=Z.context.prev),Z.context.type}function Pr(Z,se,K){return it[K.context.type](Z,se,K)}function en(Z,se,K,tt){for(var sr=tt||1;sr>0;sr--)K.context=K.context.prev;return Pr(Z,se,K)}function ar(Z){var se=Z.current().toLowerCase();xt.hasOwnProperty(se)?lt="atom":Mt.hasOwnProperty(se)?lt="keyword":lt="variable"}var it={};return it.top=function(Z,se,K){if(Z=="{")return bt(K,se,"block");if(Z=="}"&&K.context.prev)return Et(K);if(Ne&&/@component/i.test(Z))return bt(K,se,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Z))return bt(K,se,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Z))return bt(K,se,"atBlock");if(/^@(font-face|counter-style)/i.test(Z))return K.stateArg=Z,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Z))return"keyframes";if(Z&&Z.charAt(0)=="@")return bt(K,se,"at");if(Z=="hash")lt="builtin";else if(Z=="word")lt="tag";else{if(Z=="variable-definition")return"maybeprop";if(Z=="interpolation")return bt(K,se,"interpolation");if(Z==":")return"pseudo";if(rt&&Z=="(")return bt(K,se,"parens")}return K.context.type},it.block=function(Z,se,K){if(Z=="word"){var tt=se.current().toLowerCase();return et.hasOwnProperty(tt)?(lt="property","maybeprop"):pt.hasOwnProperty(tt)?(lt=Ge?"string-2":"property","maybeprop"):rt?(lt=se.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(lt+=" error","maybeprop")}else return Z=="meta"?"block":!rt&&(Z=="hash"||Z=="qualifier")?(lt="error","block"):it.top(Z,se,K)},it.maybeprop=function(Z,se,K){return Z==":"?bt(K,se,"prop"):Pr(Z,se,K)},it.prop=function(Z,se,K){if(Z==";")return Et(K);if(Z=="{"&&rt)return bt(K,se,"propBlock");if(Z=="}"||Z=="{")return en(Z,se,K);if(Z=="(")return bt(K,se,"parens");if(Z=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(se.current()))lt+=" error";else if(Z=="word")ar(se);else if(Z=="interpolation")return bt(K,se,"interpolation");return"prop"},it.propBlock=function(Z,se,K){return Z=="}"?Et(K):Z=="word"?(lt="property","maybeprop"):K.context.type},it.parens=function(Z,se,K){return Z=="{"||Z=="}"?en(Z,se,K):Z==")"?Et(K):Z=="("?bt(K,se,"parens"):Z=="interpolation"?bt(K,se,"interpolation"):(Z=="word"&&ar(se),"parens")},it.pseudo=function(Z,se,K){return Z=="meta"?"pseudo":Z=="word"?(lt="variable-3",K.context.type):Pr(Z,se,K)},it.documentTypes=function(Z,se,K){return Z=="word"&&k.hasOwnProperty(se.current())?(lt="tag",K.context.type):it.atBlock(Z,se,K)},it.atBlock=function(Z,se,K){if(Z=="(")return bt(K,se,"atBlock_parens");if(Z=="}"||Z==";")return en(Z,se,K);if(Z=="{")return Et(K)&&bt(K,se,rt?"block":"top");if(Z=="interpolation")return bt(K,se,"interpolation");if(Z=="word"){var tt=se.current().toLowerCase();tt=="only"||tt=="not"||tt=="and"||tt=="or"?lt="keyword":Y.hasOwnProperty(tt)?lt="attribute":ue.hasOwnProperty(tt)?lt="property":Ae.hasOwnProperty(tt)?lt="keyword":et.hasOwnProperty(tt)?lt="property":pt.hasOwnProperty(tt)?lt=Ge?"string-2":"property":xt.hasOwnProperty(tt)?lt="atom":Mt.hasOwnProperty(tt)?lt="keyword":lt="error"}return K.context.type},it.atComponentBlock=function(Z,se,K){return Z=="}"?en(Z,se,K):Z=="{"?Et(K)&&bt(K,se,rt?"block":"top",!1):(Z=="word"&&(lt="error"),K.context.type)},it.atBlock_parens=function(Z,se,K){return Z==")"?Et(K):Z=="{"||Z=="}"?en(Z,se,K,2):it.atBlock(Z,se,K)},it.restricted_atBlock_before=function(Z,se,K){return Z=="{"?bt(K,se,"restricted_atBlock"):Z=="word"&&K.stateArg=="@counter-style"?(lt="variable","restricted_atBlock_before"):Pr(Z,se,K)},it.restricted_atBlock=function(Z,se,K){return Z=="}"?(K.stateArg=null,Et(K)):Z=="word"?(K.stateArg=="@font-face"&&!yt.hasOwnProperty(se.current().toLowerCase())||K.stateArg=="@counter-style"&&!or.hasOwnProperty(se.current().toLowerCase())?lt="error":lt="property","maybeprop"):"restricted_atBlock"},it.keyframes=function(Z,se,K){return Z=="word"?(lt="variable","keyframes"):Z=="{"?bt(K,se,"top"):Pr(Z,se,K)},it.at=function(Z,se,K){return Z==";"?Et(K):Z=="{"||Z=="}"?en(Z,se,K):(Z=="word"?lt="tag":Z=="hash"&&(lt="builtin"),"at")},it.interpolation=function(Z,se,K){return Z=="}"?Et(K):Z=="{"||Z==";"?en(Z,se,K):(Z=="word"?lt="variable":Z!="variable"&&Z!="("&&Z!=")"&&(lt="error"),"interpolation")},{startState:function(Z){return{tokenize:null,state:Q?"block":"top",stateArg:null,context:new Qe(Q?"block":"top",Z||0,null)}},token:function(Z,se){if(!se.tokenize&&Z.eatSpace())return null;var K=(se.tokenize||Vt)(Z,se);return K&&typeof K=="object"&&(st=K[1],K=K[0]),lt=K,st!="comment"&&(se.state=it[se.state](st,Z,se)),lt},indent:function(Z,se){var K=Z.context,tt=se&&se.charAt(0),sr=K.indent;return K.type=="prop"&&(tt=="}"||tt==")")&&(K=K.prev),K.prev&&(tt=="}"&&(K.type=="block"||K.type=="top"||K.type=="interpolation"||K.type=="restricted_atBlock")?(K=K.prev,sr=K.indent):(tt==")"&&(K.type=="parens"||K.type=="atBlock_parens")||tt=="{"&&(K.type=="at"||K.type=="atBlock"))&&(sr=Math.max(0,K.indent-$))),sr},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ze,fold:"brace"}});function l(Ce){for(var le={},Q=0;Q<Ce.length;++Q)le[Ce[Q].toLowerCase()]=!0;return le}var c=["domain","regexp","url","url-prefix"],g=l(c),h=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],x=l(h),z=["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"],S=l(z),E=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],D=l(E),B=["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"],R=l(B),J=["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"],pe=l(J),ge=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Te=l(ge),Ie=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],be=l(Ie),ve=["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"],Oe=l(ve),$e=["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"],De=l($e),je=c.concat(h).concat(z).concat(E).concat(B).concat(J).concat(ve).concat($e);n.registerHelper("hintWords","css",je);function Ye(Ce,le){for(var Q=!1,$;($=Ce.next())!=null;){if(Q&&$=="/"){le.tokenize=null;break}Q=$=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:g,mediaTypes:x,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:Oe,valueKeywords:De,tokenHooks:{"/":function(Ce,le){return Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:x,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,colorKeywords:Oe,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,le){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):["operator","operator"]},":":function(Ce){return Ce.match(/^\s*\{/,!1)?[null,null]:!1},$:function(Ce){return Ce.match(/^[\w-]+/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(Ce){return Ce.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:x,mediaFeatures:S,mediaValueKeywords:D,propertyKeywords:R,nonStandardPropertyKeywords:pe,colorKeywords:Oe,valueKeywords:De,fontProperties:Te,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(Ce,le){return Ce.eat("/")?(Ce.skipToEnd(),["comment","comment"]):Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):["operator","operator"]},"@":function(Ce){return Ce.eat("{")?[null,"interpolation"]:Ce.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(Ce.eatWhile(/[\w\\\-]/),Ce.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:g,mediaTypes:x,mediaFeatures:S,propertyKeywords:R,nonStandardPropertyKeywords:pe,fontProperties:Te,counterDescriptors:be,colorKeywords:Oe,valueKeywords:De,supportsAtComponent:!0,tokenHooks:{"/":function(Ce,le){return Ce.eat("*")?(le.tokenize=Ye,Ye(Ce,le)):!1}},name:"css",helperType:"gss"})})}()),$2.exports}(function(o,t){(function(n){n(ra(),_C,r4(),MC())})(function(n){var l={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 c(D,B,R){var J=D.current(),pe=J.search(B);return pe>-1?D.backUp(J.length-pe):J.match(/<\/?$/)&&(D.backUp(J.length),D.match(B,!1)||D.match(J)),R}var g={};function h(D){var B=g[D];return B||(g[D]=new RegExp("\\s+"+D+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function x(D,B){var R=D.match(h(B));return R?/^\s*(.*?)\s*$/.exec(R[2])[1]:""}function z(D,B){return new RegExp((B?"^":"")+"</s*"+D+"s*>","i")}function S(D,B){for(var R in D)for(var J=B[R]||(B[R]=[]),pe=D[R],ge=pe.length-1;ge>=0;ge--)J.unshift(pe[ge])}function E(D,B){for(var R=0;R<D.length;R++){var J=D[R];if(!J[0]||J[1].test(x(B,J[0])))return J[2]}}n.defineMode("htmlmixed",function(D,B){var R=n.getMode(D,{name:"xml",htmlMode:!0,multilineTagIndentFactor:B.multilineTagIndentFactor,multilineTagIndentPastTag:B.multilineTagIndentPastTag,allowMissingTagName:B.allowMissingTagName}),J={},pe=B&&B.tags,ge=B&&B.scriptTypes;if(S(l,J),pe&&S(pe,J),ge)for(var Te=ge.length-1;Te>=0;Te--)J.script.unshift(["type",ge[Te].matches,ge[Te].mode]);function Ie(be,ve){var Oe=R.token(be,ve.htmlState),$e=/\btag\b/.test(Oe),De;if($e&&!/[<>\s\/]/.test(be.current())&&(De=ve.htmlState.tagName&&ve.htmlState.tagName.toLowerCase())&&J.hasOwnProperty(De))ve.inTag=De+" ";else if(ve.inTag&&$e&&/>$/.test(be.current())){var je=/^([\S]+) (.*)/.exec(ve.inTag);ve.inTag=null;var Ye=be.current()==">"&&E(J[je[1]],je[2]),Ce=n.getMode(D,Ye),le=z(je[1],!0),Q=z(je[1],!1);ve.token=function($,O){return $.match(le,!1)?(O.token=Ie,O.localState=O.localMode=null,null):c($,Q,O.localMode.token($,O.localState))},ve.localMode=Ce,ve.localState=n.startState(Ce,R.indent(ve.htmlState,"",""))}else ve.inTag&&(ve.inTag+=be.current(),be.eol()&&(ve.inTag+=" "));return Oe}return{startState:function(){var be=n.startState(R);return{token:Ie,inTag:null,localMode:null,localState:null,htmlState:be}},copyState:function(be){var ve;return be.localState&&(ve=n.copyState(be.localMode,be.localState)),{token:be.token,inTag:be.inTag,localMode:be.localMode,localState:ve,htmlState:n.copyState(R,be.htmlState)}},token:function(be,ve){return ve.token(be,ve)},indent:function(be,ve,Oe){return!be.localMode||/^\s*<\//.test(ve)?R.indent(be.htmlState,ve,Oe):be.localMode.indent?be.localMode.indent(be.localState,ve,Oe):n.Pass},innerMode:function(be){return{state:be.localState||be.htmlState,mode:be.localMode||R}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})();(function(o,t){(function(n){n(ra())})(function(n){n.defineMode("solr",function(){var l=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,c=/[\|\!\+\-\*\?\~\^\&]/,g=/^(OR|AND|NOT|TO)$/i;function h(D){return parseFloat(D).toString()===D}function x(D){return function(B,R){for(var J=!1,pe;(pe=B.next())!=null&&!(pe==D&&!J);)J=!J&&pe=="\\";return J||(R.tokenize=E),"string"}}function z(D){return function(B,R){var J="operator";return D=="+"?J+=" positive":D=="-"?J+=" negative":D=="|"?B.eat(/\|/):D=="&"?B.eat(/\&/):D=="^"&&(J+=" boost"),R.tokenize=E,J}}function S(D){return function(B,R){for(var J=D;(D=B.peek())&&D.match(l)!=null;)J+=B.next();return R.tokenize=E,g.test(J)?"operator":h(J)?"number":B.peek()==":"?"field":"string"}}function E(D,B){var R=D.next();return R=='"'?B.tokenize=x(R):c.test(R)?B.tokenize=z(R):l.test(R)&&(B.tokenize=S(R)),B.tokenize!=E?B.tokenize(D,B):null}return{startState:function(){return{tokenize:E}},token:function(D,B){return D.eatSpace()?null:B.tokenize(D,B)}}}),n.defineMIME("text/x-solr","solr")})})();(function(o,t){(function(n){n(ra())})(function(n){n.defineOption("placeholder","",function(S,E,D){var B=D&&D!=n.Init;if(E&&!B)S.on("blur",h),S.on("change",x),S.on("swapDoc",x),n.on(S.getInputField(),"compositionupdate",S.state.placeholderCompose=function(){g(S)}),x(S);else if(!E&&B){S.off("blur",h),S.off("change",x),S.off("swapDoc",x),n.off(S.getInputField(),"compositionupdate",S.state.placeholderCompose),l(S);var R=S.getWrapperElement();R.className=R.className.replace(" CodeMirror-empty","")}E&&!S.hasFocus()&&h(S)});function l(S){S.state.placeholder&&(S.state.placeholder.parentNode.removeChild(S.state.placeholder),S.state.placeholder=null)}function c(S){l(S);var E=S.state.placeholder=document.createElement("pre");E.style.cssText="height: 0; overflow: visible",E.style.direction=S.getOption("direction"),E.className="CodeMirror-placeholder CodeMirror-line-like";var D=S.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),E.appendChild(D),S.display.lineSpace.insertBefore(E,S.display.lineSpace.firstChild)}function g(S){setTimeout(function(){var E=!1;if(S.lineCount()==1){var D=S.getInputField();E=D.nodeName=="TEXTAREA"?!S.getLine(0).length:!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)}E?c(S):l(S)},20)}function h(S){z(S)&&c(S)}function x(S){var E=S.getWrapperElement(),D=z(S);E.className=E.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?c(S):l(S)}function z(S){return S.lineCount()===1&&S.getLine(0)===""}})})();var TC=Object.defineProperty,OC=Object.getOwnPropertyDescriptor,vu=(o,t,n,l)=>{for(var c=l>1?void 0:l?OC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&TC(t,n,c),c};Lc.defineMode("nunjucks",(o,t)=>Lc.overlayMode(Lc.getMode(o,t.backdrop||"text/html"),Lc.getMode(o,"jinja2")));const n4=Le("input-code"),kC=["json","nunjucks","javascript","solr"],EC={json:{name:"javascript",json:!0},javascript:"javascript",nunjucks:"nunjucks",solr:"solr"};exports.InputCode=class extends yn{constructor(){super(...arguments),this.mode="nunjucks",this.size="x-large",this.height=10,this.hideLineNumbers=!1}changeHandler(t){this.value=t.getValue(),this.dispatchChange()}updated(t){var l,c;super.updated(t);const n=this.disabled||this.readonly;this.value!==this.editorValue&&(this.editorValue=this.value||""),n!==((l=this.editor)==null?void 0:l.isReadOnly())&&((c=this.editor)==null||c.setOption("readOnly",this.disabled?"nocursor":this.readonly)),setTimeout(()=>{var g;return(g=this.editor)==null?void 0:g.refresh()})}get editorValue(){var t;return((t=this.editor)==null?void 0:t.getDoc().getValue())||""}set editorValue(t){var n;(n=this.editor)==null||n.setValue(t)}firstUpdated(){var n;const t=(n=this.shadowRoot)==null?void 0:n.querySelector(".editor");t&&(this.editor=Lc.fromTextArea(t,{mode:EC[this.mode],value:this.value,lineNumbers:!this.hideLineNumbers,readOnly:this.disabled?"nocursor":this.readonly,smartIndent:!0,theme:"skedulo"}),this.editor.setSize("100%",`${24*this.height}px`),this.editor.setOption("extraKeys",{Tab:l=>{const c=Array((l.getOption("indentUnit")||0)+1).join(" ");l.replaceSelection(c)}}),this.editor.on("change",this.changeHandler.bind(this)),setTimeout(()=>{var l;return(l=this.editor)==null?void 0:l.refresh()}))}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.editor)==null||t.off("change",this.changeHandler)}renderInput(){return q`
|
|
2952
|
+
<textarea class="editor" placeholder="${kt(this.placeholder)}">
|
|
2952
2953
|
${this.value}</textarea
|
|
2953
2954
|
>
|
|
2954
2955
|
`}};exports.InputCode.styles=[...yn.styles,fe`
|
|
2955
|
-
${Ua(
|
|
2956
|
+
${Ua(zC)}
|
|
2956
2957
|
|
|
2957
2958
|
:host([size="full"]) {
|
|
2958
2959
|
width: 100%;
|
|
@@ -3016,14 +3017,14 @@ ${this.value}</textarea
|
|
|
3016
3017
|
.CodeMirror pre.CodeMirror-placeholder {
|
|
3017
3018
|
color: var(--brz-color-neutral-500);
|
|
3018
3019
|
}
|
|
3019
|
-
`,
|
|
3020
|
+
`,LC];vu([H()],exports.InputCode.prototype,"mode",2);vu([H({reflect:!0})],exports.InputCode.prototype,"size",2);vu([H({type:Number})],exports.InputCode.prototype,"height",2);vu([H({type:Boolean,attribute:"hide-line-numbers"})],exports.InputCode.prototype,"hideLineNumbers",2);vu([Be()],exports.InputCode.prototype,"editor",2);exports.InputCode=vu([ee(n4)],exports.InputCode);var IC=Object.defineProperty,AC=Object.getOwnPropertyDescriptor,Zc=(o,t,n,l)=>{for(var c=l>1?void 0:l?AC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&IC(t,n,c),c};const i4=Le("input-select");exports.InputSelect=class extends zr{constructor(){super(...arguments),this.value="",this.query="",this.hasResults=!1}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue()},200)}handleValueChange(){this.syncValueLabel(this.value),this.resetSearch()}handleSelect(t){this.setValue(t.detail.selected[0])}setQueryInputValue(){this.queryInput&&(this.queryInput.value=this.query||this.valueLabel||"")}applySelectedStatusToChildren(){super.getItems().forEach(t=>{t.selected=this.value===t.value})}renderReferenceElement(){var t;return this.applySelectedStatusToChildren(),this.controlled||this.search(),q`
|
|
3020
3021
|
<button
|
|
3021
3022
|
type="button"
|
|
3022
3023
|
class="wrapper"
|
|
3023
3024
|
tabindex=${this.disabled?-1:0}
|
|
3024
3025
|
@keydown=${this.handleKeyDown}
|
|
3025
3026
|
@keyup=${this.handleKeyUp}
|
|
3026
|
-
aria-required=${
|
|
3027
|
+
aria-required=${kt(this.required)}
|
|
3027
3028
|
>
|
|
3028
3029
|
${this.canSearch?null:q`
|
|
3029
3030
|
<span class=${this.value&&this.valueLabel?"":"placeholder"}>
|
|
@@ -3034,13 +3035,13 @@ ${this.value}</textarea
|
|
|
3034
3035
|
<input
|
|
3035
3036
|
id="selectSearch"
|
|
3036
3037
|
type="search"
|
|
3037
|
-
placeholder=${
|
|
3038
|
+
placeholder=${kt(this.placeholder)}
|
|
3038
3039
|
@click=${this.handleSearchInputClick}
|
|
3039
3040
|
@input=${this.handleQueryInput}
|
|
3040
3041
|
?disabled=${this.disabled}
|
|
3041
3042
|
?readonly=${this.readonly}
|
|
3042
3043
|
value=${(t=this.valueLabel)!=null?t:""}
|
|
3043
|
-
aria-invalid=${
|
|
3044
|
+
aria-invalid=${kt(this.invalid?this.invalid:void 0)}
|
|
3044
3045
|
class="search-area"
|
|
3045
3046
|
/>
|
|
3046
3047
|
`:null}
|
|
@@ -3052,7 +3053,7 @@ ${this.value}</textarea
|
|
|
3052
3053
|
`}renderDropdownContent(){return q`
|
|
3053
3054
|
${!this.controlled&&!this.hasQueryResults?this.renderSearchMessage():null}
|
|
3054
3055
|
${this.isDataDriven?this.renderOptionsData():q` <slot slot="options"></slot> `}
|
|
3055
|
-
`}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const t=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(l=>{var g;if("id"in l&&l.id===Rc)return;if(!t||t===((g=this.valueLabel)==null?void 0:g.toLowerCase())){l.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(l);c&&(this.hasResults=!0),l.hidden=!c})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${
|
|
3056
|
+
`}resetSearch(){this.query=""}search(){var n;this.hasResults=!1;const t=(n=this.query)==null?void 0:n.toLowerCase();this.getItems().forEach(l=>{var g;if("id"in l&&l.id===Rc)return;if(!t||t===((g=this.valueLabel)==null?void 0:g.toLowerCase())){l.hidden=!1,this.hasResults=!0;return}const c=this.isQueryMatch(l);c&&(this.hasResults=!0),l.hidden=!c})}setInnerOptions(){this.innerOptions=this.isDataDriven?[...this.required?[]:[{id:`option-${fh()}`,label:this.placeholder?this.placeholder:"Select an option",value:""}],...this.options.map(t=>({...t,id:`option-${fh()}`}))]:[]}disconnectedCallback(){var t;(t=this.selectedOptionObserver)==null||t.disconnect(),super.disconnectedCallback()}findItem(t){var n;return((n=this.getItems())==null?void 0:n[0])instanceof exports.MenuItem?this.optionElements.find(l=>l.value===t):this.innerOptions.find(l=>l.value===t)}syncValueLabel(t){var l;(l=this.selectedOptionObserver)==null||l.disconnect();const n=this.findItem(t);this.valueLabel=this.getItemLabel(n),!(this.isDataDriven&&this.isReadonlyOrDisabled)&&n instanceof Node&&(this.selectedOptionObserver=new MutationObserver(()=>{this.valueLabel=this.getItemLabel(n),this.resetSearch()}),this.selectedOptionObserver.observe(n,{characterData:!1,childList:!0,attributes:!1}))}};exports.InputSelect.styles=[...zr.styles,fe`
|
|
3056
3057
|
input {
|
|
3057
3058
|
text-overflow: ellipsis;
|
|
3058
3059
|
}
|
|
@@ -3083,7 +3084,7 @@ ${this.value}</textarea
|
|
|
3083
3084
|
.placeholder {
|
|
3084
3085
|
color: var(--input-placeholder-font-color);
|
|
3085
3086
|
}
|
|
3086
|
-
`];Zc([H({type:String})],exports.InputSelect.prototype,"value",2);Zc([Be()],exports.InputSelect.prototype,"query",2);Zc([Be()],exports.InputSelect.prototype,"valueLabel",2);Zc([Be()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Zc([ee(
|
|
3087
|
+
`];Zc([H({type:String})],exports.InputSelect.prototype,"value",2);Zc([Be()],exports.InputSelect.prototype,"query",2);Zc([Be()],exports.InputSelect.prototype,"valueLabel",2);Zc([Be()],exports.InputSelect.prototype,"hasResults",2);exports.InputSelect=Zc([ee(i4)],exports.InputSelect);var $C=Object.defineProperty,PC=Object.getOwnPropertyDescriptor,Hi=(o,t,n,l)=>{for(var c=l>1?void 0:l?PC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&$C(t,n,c),c};const o4=Le("lozenge"),DC=["neutral","green","orange","red","cyan","purple","sapphire"],NC=["solid","subtle","border"],RC=["small","medium","large"];class a4 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(t){t.stopPropagation(),this.dispatchEvent(new a4)}get iconSize(){switch(this.size){case"large":return 16;case"medium":return 14;case"small":return 12}}render(){var t;return this.updateComplete.then(()=>this.checkOverflow()),q`
|
|
3087
3088
|
<brz-tooltip
|
|
3088
3089
|
content=${(t=this.defaultSlot[0])==null?void 0:t.textContent}
|
|
3089
3090
|
?disabled=${!this.isOverflowing}
|
|
@@ -3235,7 +3236,7 @@ ${this.value}</textarea
|
|
|
3235
3236
|
margin-right: var(--brz-spacing-2);
|
|
3236
3237
|
}
|
|
3237
3238
|
|
|
3238
|
-
${
|
|
3239
|
+
${Fg(".close",fe`
|
|
3239
3240
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
3240
3241
|
`)}
|
|
3241
3242
|
|
|
@@ -3253,7 +3254,7 @@ ${this.value}</textarea
|
|
|
3253
3254
|
color: var(--brz-color-neutral-550);
|
|
3254
3255
|
cursor: unset;
|
|
3255
3256
|
}
|
|
3256
|
-
`;
|
|
3257
|
+
`;Hi([H({type:String,attribute:"size",reflect:!0})],exports.Lozenge.prototype,"size",2);Hi([H({type:String,attribute:"theme",reflect:!0})],exports.Lozenge.prototype,"theme",2);Hi([H({type:String,attribute:"color",reflect:!0})],exports.Lozenge.prototype,"color",2);Hi([H({type:String,attribute:"leading-icon",reflect:!0})],exports.Lozenge.prototype,"leadingIcon",2);Hi([H({type:Boolean,attribute:"can-delete",reflect:!0})],exports.Lozenge.prototype,"canDelete",2);Hi([H({type:Boolean,attribute:"disabled",reflect:!0})],exports.Lozenge.prototype,"disabled",2);Hi([H({type:Boolean,attribute:"no-truncate",reflect:!0})],exports.Lozenge.prototype,"noTruncate",2);Hi([Th()],exports.Lozenge.prototype,"defaultSlot",2);Hi([k9(".message")],exports.Lozenge.prototype,"message",2);Hi([Be()],exports.Lozenge.prototype,"isOverflowing",2);exports.Lozenge=Hi([ee(o4)],exports.Lozenge);var FC=Object.defineProperty,HC=Object.getOwnPropertyDescriptor,Gc=(o,t,n,l)=>{for(var c=l>1?void 0:l?HC(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&FC(t,n,c),c};const s4=Le("input-multiselect");exports.InputMultiselect=class extends zr{constructor(){super(...arguments),this.size="x-large",this.truncateValuesAfter=20,this.value=[],this.valueLabels=[]}updated(t){super.updated(t),this.dropdown&&(this.dropdown.multiselect=!0),(t.has("value")||t.has("selected-items"))&&this.renderSelectedItems(),this.isDataDriven&&!this.innerOptions.find(n=>n.id===Ai)&&this.innerOptions.unshift(this.selectAllOption)}get allSelected(){const{enabled:t,toggled:n}=[...this.getItems()].reduce((l,c)=>c.id===Ai?l:{enabled:c.disabled?l.enabled:l.enabled+1,toggled:c.selected?l.toggled+1:l.toggled},{enabled:0,toggled:0});return t===n}dispatchChange(){this.dispatchEvent(new CustomEvent("brz-input-change",{detail:{value:[...this.value||[]]}}))}handleCloseDropdown(){super.handleCloseDropdown(),window.setTimeout(()=>{this.resetSearch(),this.setQueryInputValue(),this.controlled&&this.dispatchEvent(new Gh({detail:{query:""}}))},200)}handleValueChange(){this.controlled||this.syncValueLabels()}handleSelect(t){this.setValue(t.detail.selected)}handleItemSelect({detail:{item:t}}){t.id===Ai&&this.toggleAllSelected()}toggleAllSelected(){const t=[];this.allSelected||this.getItems().forEach(n=>{!n.disabled&&n.id!==Ai&&t.push(n.value)}),this.setValue(t),this.handleValueChange()}toggleSelection(t){const n=this.value?[...this.value]:[],l=n.indexOf(t);l>-1&&n.splice(l,1),l===-1&&n.push(t),this.setValue(n)}syncSelected(){this.getItems().forEach(t=>{const n=this.value&&this.value.includes(t.value);t.selected=t.id===Ai?this.allSelected:n})}get truncation(){return this.value&&this.value.length>this.truncateValuesAfter?q`<span class="truncation"
|
|
3257
3258
|
>+${this.value.length-this.truncateValuesAfter} more</span
|
|
3258
3259
|
>`:null}handleKeyDown(t){super.handleKeyDown(t),t.key==="Backspace"&&(!this.queryInput||this.queryInput.value==="")&&!this.isReadonlyOrDisabled&&this.removeLastValue()}renderReferenceElement(){return this.syncSelected(),this.controlled||this.search(),this.updateComplete.then(()=>{this.renderSelectedItems()}),q`
|
|
3259
3260
|
<button
|
|
@@ -3282,10 +3283,10 @@ ${this.value}</textarea
|
|
|
3282
3283
|
<input
|
|
3283
3284
|
id="selectSearch"
|
|
3284
3285
|
type="search"
|
|
3285
|
-
value=${
|
|
3286
|
+
value=${kt(this.query)}
|
|
3286
3287
|
@click=${this.handleSearchInputClick}
|
|
3287
3288
|
@input=${this.handleQueryInput}
|
|
3288
|
-
placeholder="${
|
|
3289
|
+
placeholder="${kt(this.placeholder)}"
|
|
3289
3290
|
class="search-area"
|
|
3290
3291
|
/>
|
|
3291
3292
|
`:null}
|
|
@@ -3364,10 +3365,10 @@ ${this.value}</textarea
|
|
|
3364
3365
|
brz-icon[icon='chevronDown'] {
|
|
3365
3366
|
color: var(--brz-color-neutral-750);
|
|
3366
3367
|
}
|
|
3367
|
-
`];Gc([H({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Gc([H({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Gc([H({type:Array})],exports.InputMultiselect.prototype,"value",2);Gc([Be()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Gc([ee(n4)],exports.InputMultiselect);class el extends Error{}class RC extends el{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class FC extends el{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class HC extends el{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Sc extends el{}class i4 extends el{constructor(t){super(`Invalid unit ${t}`)}}class di extends el{}class Ra extends el{constructor(){super("Zone is an abstract class")}}const Me="numeric",Ni="short",Kn="long",Qd={year:Me,month:Me,day:Me},o4={year:Me,month:Ni,day:Me},BC={year:Me,month:Ni,day:Me,weekday:Ni},a4={year:Me,month:Kn,day:Me},s4={year:Me,month:Kn,day:Me,weekday:Kn},l4={hour:Me,minute:Me},u4={hour:Me,minute:Me,second:Me},c4={hour:Me,minute:Me,second:Me,timeZoneName:Ni},d4={hour:Me,minute:Me,second:Me,timeZoneName:Kn},f4={hour:Me,minute:Me,hourCycle:"h23"},h4={hour:Me,minute:Me,second:Me,hourCycle:"h23"},p4={hour:Me,minute:Me,second:Me,hourCycle:"h23",timeZoneName:Ni},g4={hour:Me,minute:Me,second:Me,hourCycle:"h23",timeZoneName:Kn},v4={year:Me,month:Me,day:Me,hour:Me,minute:Me},b4={year:Me,month:Me,day:Me,hour:Me,minute:Me,second:Me},m4={year:Me,month:Ni,day:Me,hour:Me,minute:Me},y4={year:Me,month:Ni,day:Me,hour:Me,minute:Me,second:Me},WC={year:Me,month:Ni,day:Me,weekday:Ni,hour:Me,minute:Me},C4={year:Me,month:Kn,day:Me,hour:Me,minute:Me,timeZoneName:Ni},w4={year:Me,month:Kn,day:Me,hour:Me,minute:Me,second:Me,timeZoneName:Ni},x4={year:Me,month:Kn,day:Me,weekday:Kn,hour:Me,minute:Me,timeZoneName:Kn},z4={year:Me,month:Kn,day:Me,weekday:Kn,hour:Me,minute:Me,second:Me,timeZoneName:Kn};class qc{get type(){throw new Ra}get name(){throw new Ra}get ianaName(){return this.name}get isUniversal(){throw new Ra}offsetName(t,n){throw new Ra}formatOffset(t,n){throw new Ra}offset(t){throw new Ra}equals(t){throw new Ra}get isValid(){throw new Ra}}let qf=null;class b1 extends qc{static get instance(){return qf===null&&(qf=new b1),qf}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return S4(t,n,l)}formatOffset(t,n){return kc(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let $d={};function UC(o){return $d[o]||($d[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),$d[o]}const VC={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function ZC(o,t){const n=o.format(t).replace(/\u200E/g,""),l=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,c,g,h,x,z,S,k]=l;return[h,c,g,x,z,S,k]}function GC(o,t){const n=o.formatToParts(t),l=[];for(let c=0;c<n.length;c++){const{type:g,value:h}=n[c],x=VC[g];g==="era"?l[x]=h:_t(x)||(l[x]=parseInt(h,10))}return l}let Ld={};class Xo extends qc{static create(t){return Ld[t]||(Ld[t]=new Xo(t)),Ld[t]}static resetCache(){Ld={},$d={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Xo.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return S4(t,n,l,this.name)}formatOffset(t,n){return kc(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const l=UC(this.name);let[c,g,h,x,z,S,k]=l.formatToParts?GC(l,n):ZC(l,n);x==="BC"&&(c=-Math.abs(c)+1);const B=y1({year:c,month:g,day:h,hour:z===24?0:z,minute:S,second:k,millisecond:0});let R=+n;const J=R%1e3;return R-=J>=0?J:1e3+J,(B-R)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let I2={};function qC(o,t={}){const n=JSON.stringify([o,t]);let l=I2[n];return l||(l=new Intl.ListFormat(o,t),I2[n]=l),l}let ph={};function gh(o,t={}){const n=JSON.stringify([o,t]);let l=ph[n];return l||(l=new Intl.DateTimeFormat(o,t),ph[n]=l),l}let vh={};function jC(o,t={}){const n=JSON.stringify([o,t]);let l=vh[n];return l||(l=new Intl.NumberFormat(o,t),vh[n]=l),l}let bh={};function KC(o,t={}){const{base:n,...l}=t,c=JSON.stringify([o,l]);let g=bh[c];return g||(g=new Intl.RelativeTimeFormat(o,t),bh[c]=g),g}let _c=null;function YC(){return _c||(_c=new Intl.DateTimeFormat().resolvedOptions().locale,_c)}function XC(o){const t=o.indexOf("-x-");t!==-1&&(o=o.substring(0,t));const n=o.indexOf("-u-");if(n===-1)return[o];{let l,c;try{l=gh(o).resolvedOptions(),c=o}catch{const z=o.substring(0,n);l=gh(z).resolvedOptions(),c=z}const{numberingSystem:g,calendar:h}=l;return[c,g,h]}}function JC(o,t,n){return(n||t)&&(o.includes("-u-")||(o+="-u"),n&&(o+=`-ca-${n}`),t&&(o+=`-nu-${t}`)),o}function QC(o){const t=[];for(let n=1;n<=12;n++){const l=at.utc(2009,n,1);t.push(o(l))}return t}function ew(o){const t=[];for(let n=1;n<=7;n++){const l=at.utc(2016,11,13+n);t.push(o(l))}return t}function Sd(o,t,n,l){const c=o.listingMode();return c==="error"?null:c==="en"?n(t):l(t)}function tw(o){return o.numberingSystem&&o.numberingSystem!=="latn"?!1:o.numberingSystem==="latn"||!o.locale||o.locale.startsWith("en")||new Intl.DateTimeFormat(o.intl).resolvedOptions().numberingSystem==="latn"}class rw{constructor(t,n,l){this.padTo=l.padTo||0,this.floor=l.floor||!1;const{padTo:c,floor:g,...h}=l;if(!n||Object.keys(h).length>0){const x={useGrouping:!1,...l};l.padTo>0&&(x.minimumIntegerDigits=l.padTo),this.inf=jC(t,x)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):jh(t,3);return xr(n,this.padTo)}}}class nw{constructor(t,n,l){this.opts=l,this.originalZone=void 0;let c;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const h=-1*(t.offset/60),x=h>=0?`Etc/GMT+${h}`:`Etc/GMT${h}`;t.offset!==0&&Xo.create(x).valid?(c=x,this.dt=t):(c="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,c=t.zone.name):(c="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const g={...this.opts};g.timeZone=g.timeZone||c,this.dtf=gh(n,g)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const l=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:l}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class iw{constructor(t,n,l){this.opts={style:"long",...l},!n&&L4()&&(this.rtf=KC(t,l))}format(t,n){return this.rtf?this.rtf.format(t,n):ww(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class Kt{static fromOpts(t){return Kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,l,c=!1){const g=t||wr.defaultLocale,h=g||(c?"en-US":YC()),x=n||wr.defaultNumberingSystem,z=l||wr.defaultOutputCalendar;return new Kt(h,x,z,g)}static resetCache(){_c=null,ph={},vh={},bh={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:l}={}){return Kt.create(t,n,l)}constructor(t,n,l,c){const[g,h,x]=XC(t);this.locale=g,this.numberingSystem=n||h||null,this.outputCalendar=l||x||null,this.intl=JC(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=c,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=tw(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Sd(this,t,T4,()=>{const l=n?{month:t,day:"numeric"}:{month:t},c=n?"format":"standalone";return this.monthsCache[c][t]||(this.monthsCache[c][t]=QC(g=>this.extract(g,l,"month"))),this.monthsCache[c][t]})}weekdays(t,n=!1){return Sd(this,t,k4,()=>{const l=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},c=n?"format":"standalone";return this.weekdaysCache[c][t]||(this.weekdaysCache[c][t]=ew(g=>this.extract(g,l,"weekday"))),this.weekdaysCache[c][t]})}meridiems(){return Sd(this,void 0,()=>I4,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[at.utc(2016,11,13,9),at.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Sd(this,t,A4,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[at.utc(-40,1,1),at.utc(2017,1,1)].map(l=>this.extract(l,n,"era"))),this.eraCache[t]})}extract(t,n,l){const c=this.dtFormatter(t,n),g=c.formatToParts(),h=g.find(x=>x.type.toLowerCase()===l);return h?h.value:null}numberFormatter(t={}){return new rw(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new nw(t,this.intl,n)}relFormatter(t={}){return new iw(this.intl,this.isEnglish(),t)}listFormatter(t={}){return qC(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let jf=null;class mn extends qc{static get utcInstance(){return jf===null&&(jf=new mn(0)),jf}static instance(t){return t===0?mn.utcInstance:new mn(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new mn(C1(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${kc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${kc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return kc(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class ow extends qc{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Wa(o,t){if(_t(o)||o===null)return t;if(o instanceof qc)return o;if(aw(o)){const n=o.toLowerCase();return n==="default"?t:n==="local"||n==="system"?b1.instance:n==="utc"||n==="gmt"?mn.utcInstance:mn.parseSpecifier(n)||Xo.create(o)}else return Us(o)?mn.instance(o):typeof o=="object"&&"offset"in o&&typeof o.offset=="function"?o:new ow(o)}let A2=()=>Date.now(),$2="system",P2=null,D2=null,N2=null,R2=60,F2;class wr{static get now(){return A2}static set now(t){A2=t}static set defaultZone(t){$2=t}static get defaultZone(){return Wa($2,b1.instance)}static get defaultLocale(){return P2}static set defaultLocale(t){P2=t}static get defaultNumberingSystem(){return D2}static set defaultNumberingSystem(t){D2=t}static get defaultOutputCalendar(){return N2}static set defaultOutputCalendar(t){N2=t}static get twoDigitCutoffYear(){return R2}static set twoDigitCutoffYear(t){R2=t%100}static get throwOnInvalid(){return F2}static set throwOnInvalid(t){F2=t}static resetCaches(){Kt.resetCache(),Xo.resetCache()}}function _t(o){return typeof o=="undefined"}function Us(o){return typeof o=="number"}function m1(o){return typeof o=="number"&&o%1===0}function aw(o){return typeof o=="string"}function sw(o){return Object.prototype.toString.call(o)==="[object Date]"}function L4(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function lw(o){return Array.isArray(o)?o:[o]}function H2(o,t,n){if(o.length!==0)return o.reduce((l,c)=>{const g=[t(c),c];return l&&n(l[0],g[0])===l[0]?l:g},null)[1]}function uw(o,t){return t.reduce((n,l)=>(n[l]=o[l],n),{})}function hu(o,t){return Object.prototype.hasOwnProperty.call(o,t)}function Ko(o,t,n){return m1(o)&&o>=t&&o<=n}function cw(o,t){return o-t*Math.floor(o/t)}function xr(o,t=2){const n=o<0;let l;return n?l="-"+(""+-o).padStart(t,"0"):l=(""+o).padStart(t,"0"),l}function Ha(o){if(!(_t(o)||o===null||o===""))return parseInt(o,10)}function Ps(o){if(!(_t(o)||o===null||o===""))return parseFloat(o)}function qh(o){if(!(_t(o)||o===null||o==="")){const t=parseFloat("0."+o)*1e3;return Math.floor(t)}}function jh(o,t,n=!1){const l=10**t;return(n?Math.trunc:Math.round)(o*l)/l}function jc(o){return o%4===0&&(o%100!==0||o%400===0)}function Ec(o){return jc(o)?366:365}function e1(o,t){const n=cw(t-1,12)+1,l=o+(t-n)/12;return n===2?jc(l)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function y1(o){let t=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond);return o.year<100&&o.year>=0&&(t=new Date(t),t.setUTCFullYear(o.year,o.month-1,o.day)),+t}function t1(o){const t=(o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400))%7,n=o-1,l=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||l===3?53:52}function mh(o){return o>99?o:o>wr.twoDigitCutoffYear?1900+o:2e3+o}function S4(o,t,n,l=null){const c=new Date(o),g={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};l&&(g.timeZone=l);const h={timeZoneName:t,...g},x=new Intl.DateTimeFormat(n,h).formatToParts(c).find(z=>z.type.toLowerCase()==="timezonename");return x?x.value:null}function C1(o,t){let n=parseInt(o,10);Number.isNaN(n)&&(n=0);const l=parseInt(t,10)||0,c=n<0||Object.is(n,-0)?-l:l;return n*60+c}function _4(o){const t=Number(o);if(typeof o=="boolean"||o===""||Number.isNaN(t))throw new di(`Invalid unit value ${o}`);return t}function r1(o,t){const n={};for(const l in o)if(hu(o,l)){const c=o[l];if(c==null)continue;n[t(l)]=_4(c)}return n}function kc(o,t){const n=Math.trunc(Math.abs(o/60)),l=Math.trunc(Math.abs(o%60)),c=o>=0?"+":"-";switch(t){case"short":return`${c}${xr(n,2)}:${xr(l,2)}`;case"narrow":return`${c}${n}${l>0?`:${l}`:""}`;case"techie":return`${c}${xr(n,2)}${xr(l,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function w1(o){return uw(o,["hour","minute","second","millisecond"])}const dw=["January","February","March","April","May","June","July","August","September","October","November","December"],M4=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fw=["J","F","M","A","M","J","J","A","S","O","N","D"];function T4(o){switch(o){case"narrow":return[...fw];case"short":return[...M4];case"long":return[...dw];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const O4=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],E4=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],hw=["M","T","W","T","F","S","S"];function k4(o){switch(o){case"narrow":return[...hw];case"short":return[...E4];case"long":return[...O4];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const I4=["AM","PM"],pw=["Before Christ","Anno Domini"],gw=["BC","AD"],vw=["B","A"];function A4(o){switch(o){case"narrow":return[...vw];case"short":return[...gw];case"long":return[...pw];default:return null}}function bw(o){return I4[o.hour<12?0:1]}function mw(o,t){return k4(t)[o.weekday-1]}function yw(o,t){return T4(t)[o.month-1]}function Cw(o,t){return A4(t)[o.year<0?0:1]}function ww(o,t,n="always",l=!1){const c={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},g=["hours","minutes","seconds"].indexOf(o)===-1;if(n==="auto"&&g){const D=o==="days";switch(t){case 1:return D?"tomorrow":`next ${c[o][0]}`;case-1:return D?"yesterday":`last ${c[o][0]}`;case 0:return D?"today":`this ${c[o][0]}`}}const h=Object.is(t,-0)||t<0,x=Math.abs(t),z=x===1,S=c[o],k=l?z?S[1]:S[2]||S[1]:z?c[o][0]:o;return h?`${x} ${k} ago`:`in ${x} ${k}`}function B2(o,t){let n="";for(const l of o)l.literal?n+=l.val:n+=t(l.val);return n}const xw={D:Qd,DD:o4,DDD:a4,DDDD:s4,t:l4,tt:u4,ttt:c4,tttt:d4,T:f4,TT:h4,TTT:p4,TTTT:g4,f:v4,ff:m4,fff:C4,ffff:x4,F:b4,FF:y4,FFF:w4,FFFF:z4};class sn{static create(t,n={}){return new sn(t,n)}static parseFormat(t){let n=null,l="",c=!1;const g=[];for(let h=0;h<t.length;h++){const x=t.charAt(h);x==="'"?(l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),n=null,l="",c=!c):c||x===n?l+=x:(l.length>0&&g.push({literal:/^\s+$/.test(l),val:l}),l=x,n=x)}return l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),g}static macroTokenToFormatOpts(t){return xw[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return xr(t,n);const l={...this.opts};return n>0&&(l.padTo=n),this.loc.numberFormatter(l).format(t)}formatDateTimeFromString(t,n){const l=this.loc.listingMode()==="en",c=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",g=(R,J)=>this.loc.extract(t,R,J),h=R=>t.isOffsetFixed&&t.offset===0&&R.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,R.format):"",x=()=>l?bw(t):g({hour:"numeric",hourCycle:"h12"},"dayperiod"),z=(R,J)=>l?yw(t,R):g(J?{month:R}:{month:R,day:"numeric"},"month"),S=(R,J)=>l?mw(t,R):g(J?{weekday:R}:{weekday:R,month:"long",day:"numeric"},"weekday"),k=R=>{const J=sn.macroTokenToFormatOpts(R);return J?this.formatWithSystemDefault(t,J):R},D=R=>l?Cw(t,R):g({era:R},"era"),B=R=>{switch(R){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return h({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return h({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return h({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return x();case"d":return c?g({day:"numeric"},"day"):this.num(t.day);case"dd":return c?g({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return S("short",!0);case"cccc":return S("long",!0);case"ccccc":return S("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return S("short",!1);case"EEEE":return S("long",!1);case"EEEEE":return S("narrow",!1);case"L":return c?g({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return c?g({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return z("short",!0);case"LLLL":return z("long",!0);case"LLLLL":return z("narrow",!0);case"M":return c?g({month:"numeric"},"month"):this.num(t.month);case"MM":return c?g({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return z("short",!1);case"MMMM":return z("long",!1);case"MMMMM":return z("narrow",!1);case"y":return c?g({year:"numeric"},"year"):this.num(t.year);case"yy":return c?g({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return c?g({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return c?g({year:"numeric"},"year"):this.num(t.year,6);case"G":return D("short");case"GG":return D("long");case"GGGGG":return D("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return k(R)}};return B2(sn.parseFormat(n),B)}formatDurationFromString(t,n){const l=z=>{switch(z[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},c=z=>S=>{const k=l(S);return k?this.num(z.get(k),S.length):S},g=sn.parseFormat(n),h=g.reduce((z,{literal:S,val:k})=>S?z:z.concat(k),[]),x=t.shiftTo(...h.map(l).filter(z=>z));return B2(g,c(x))}}class $i{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const $4=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bu(...o){const t=o.reduce((n,l)=>n+l.source,"");return RegExp(`^${t}$`)}function mu(...o){return t=>o.reduce(([n,l,c],g)=>{const[h,x,z]=g(t,c);return[{...n,...h},x||l,z]},[{},null,1]).slice(0,2)}function yu(o,...t){if(o==null)return[null,null];for(const[n,l]of t){const c=n.exec(o);if(c)return l(c)}return[null,null]}function P4(...o){return(t,n)=>{const l={};let c;for(c=0;c<o.length;c++)l[o[c]]=Ha(t[n+c]);return[l,null,n+c]}}const D4=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,zw=`(?:${D4.source}?(?:\\[(${$4.source})\\])?)?`,Kh=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,N4=RegExp(`${Kh.source}${zw}`),Yh=RegExp(`(?:T${N4.source})?`),Lw=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Sw=/(\d{4})-?W(\d\d)(?:-?(\d))?/,_w=/(\d{4})-?(\d{3})/,Mw=P4("weekYear","weekNumber","weekDay"),Tw=P4("year","ordinal"),Ow=/(\d{4})-(\d\d)-(\d\d)/,R4=RegExp(`${Kh.source} ?(?:${D4.source}|(${$4.source}))?`),Ew=RegExp(`(?: ${R4.source})?`);function iu(o,t,n){const l=o[t];return _t(l)?n:Ha(l)}function kw(o,t){return[{year:iu(o,t),month:iu(o,t+1,1),day:iu(o,t+2,1)},null,t+3]}function Cu(o,t){return[{hours:iu(o,t,0),minutes:iu(o,t+1,0),seconds:iu(o,t+2,0),milliseconds:qh(o[t+3])},null,t+4]}function Kc(o,t){const n=!o[t]&&!o[t+1],l=C1(o[t+1],o[t+2]),c=n?null:mn.instance(l);return[{},c,t+3]}function Yc(o,t){const n=o[t]?Xo.create(o[t]):null;return[{},n,t+1]}const Iw=RegExp(`^T?${Kh.source}$`),Aw=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function $w(o){const[t,n,l,c,g,h,x,z,S]=o,k=t[0]==="-",D=z&&z[0]==="-",B=(R,J=!1)=>R!==void 0&&(J||R&&k)?-R:R;return[{years:B(Ps(n)),months:B(Ps(l)),weeks:B(Ps(c)),days:B(Ps(g)),hours:B(Ps(h)),minutes:B(Ps(x)),seconds:B(Ps(z),z==="-0"),milliseconds:B(qh(S),D)}]}const Pw={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 Xh(o,t,n,l,c,g,h){const x={year:t.length===2?mh(Ha(t)):Ha(t),month:M4.indexOf(n)+1,day:Ha(l),hour:Ha(c),minute:Ha(g)};return h&&(x.second=Ha(h)),o&&(x.weekday=o.length>3?O4.indexOf(o)+1:E4.indexOf(o)+1),x}const Dw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Nw(o){const[,t,n,l,c,g,h,x,z,S,k,D]=o,B=Xh(t,c,l,n,g,h,x);let R;return z?R=Pw[z]:S?R=0:R=C1(k,D),[B,new mn(R)]}function Rw(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Fw=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Hw=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Bw=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function W2(o){const[,t,n,l,c,g,h,x]=o;return[Xh(t,c,l,n,g,h,x),mn.utcInstance]}function Ww(o){const[,t,n,l,c,g,h,x]=o;return[Xh(t,x,n,l,c,g,h),mn.utcInstance]}const Uw=bu(Lw,Yh),Vw=bu(Sw,Yh),Zw=bu(_w,Yh),Gw=bu(N4),F4=mu(kw,Cu,Kc,Yc),qw=mu(Mw,Cu,Kc,Yc),jw=mu(Tw,Cu,Kc,Yc),Kw=mu(Cu,Kc,Yc);function Yw(o){return yu(o,[Uw,F4],[Vw,qw],[Zw,jw],[Gw,Kw])}function Xw(o){return yu(Rw(o),[Dw,Nw])}function Jw(o){return yu(o,[Fw,W2],[Hw,W2],[Bw,Ww])}function Qw(o){return yu(o,[Aw,$w])}const ex=mu(Cu);function tx(o){return yu(o,[Iw,ex])}const rx=bu(Ow,Ew),nx=bu(R4),ix=mu(Cu,Kc,Yc);function ox(o){return yu(o,[rx,F4],[nx,ix])}const ax="Invalid Duration",H4={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},sx={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...H4},ci=146097/400,eu=146097/4800,lx={years:{quarters:4,months:12,weeks:ci/7,days:ci,hours:ci*24,minutes:ci*24*60,seconds:ci*24*60*60,milliseconds:ci*24*60*60*1e3},quarters:{months:3,weeks:ci/28,days:ci/4,hours:ci*24/4,minutes:ci*24*60/4,seconds:ci*24*60*60/4,milliseconds:ci*24*60*60*1e3/4},months:{weeks:eu/7,days:eu,hours:eu*24,minutes:eu*24*60,seconds:eu*24*60*60,milliseconds:eu*24*60*60*1e3},...H4},Ns=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],B4=Ns.slice(0).reverse();function Fa(o,t,n=!1){const l={values:n?t.values:{...o.values,...t.values||{}},loc:o.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||o.conversionAccuracy,matrix:t.matrix||o.matrix};return new Ot(l)}function U2(o){return Math.trunc(o*1e3)/1e3}function W4(o,t,n,l,c){const g=o[c][n],h=t[n]/g,x=Math.floor(h);l[c]=U2(l[c]+x),t[n]=U2(t[n]-x*g)}function ux(o,t){B4.reduce((n,l)=>_t(t[l])?n:(n&&W4(o,t,n,t,l),l),null)}function cx(o){const t={};for(const[n,l]of Object.entries(o))l!==0&&(t[n]=l);return t}class Ot{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let l=n?lx:sx;t.matrix&&(l=t.matrix),this.values=t.values,this.loc=t.loc||Kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=l,this.isLuxonDuration=!0}static fromMillis(t,n){return Ot.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new di(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Ot({values:r1(t,Ot.normalizeUnit),loc:Kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Us(t))return Ot.fromMillis(t);if(Ot.isDuration(t))return t;if(typeof t=="object")return Ot.fromObject(t);throw new di(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[l]=Qw(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[l]=tx(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Duration is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new HC(l);return new Ot({invalid:l})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new i4(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const l={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?sn.create(this.loc,l).formatDurationFromString(this,t):ax}toHuman(t={}){const n=Ns.map(l=>{const c=this.values[l];return _t(c)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:l.slice(0,-1)}).format(c)}).filter(l=>l);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=jh(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},at.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var n,l;let t=(n=this.values.milliseconds)!=null?n:0;for(let c of B4.slice(1))(l=this.values)!=null&&l[c]&&(t+=this.values[c]*this.matrix[c].milliseconds);return t}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t),l={};for(const c of Ns)(hu(n.values,c)||hu(this.values,c))&&(l[c]=n.get(c)+this.get(c));return Fa(this,{values:l},!0)}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const l of Object.keys(this.values))n[l]=_4(t(this.values[l],l));return Fa(this,{values:n},!0)}get(t){return this[Ot.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...r1(t,Ot.normalizeUnit)};return Fa(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:l,matrix:c}={}){const h={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:c,conversionAccuracy:l};return Fa(this,h)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return this.valueOf()>=0?(ux(this.matrix,t),Fa(this,{values:t},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const t=cx(this.normalize().shiftToAll().toObject());return Fa(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(h=>Ot.normalizeUnit(h));const n={},l={},c=this.toObject();let g;for(const h of Ns)if(t.indexOf(h)>=0){g=h;let x=0;for(const S in l)x+=this.matrix[S][h]*l[S],l[S]=0;Us(c[h])&&(x+=c[h]);const z=Math.trunc(x);n[h]=z,l[h]=(x*1e3-z*1e3)/1e3;for(const S in c)Ns.indexOf(S)>Ns.indexOf(h)&&W4(this.matrix,c,S,n,h)}else Us(c[h])&&(l[h]=c[h]);for(const h in l)l[h]!==0&&(n[g]+=h===g?l[h]:l[h]/this.matrix[g][h]);return Fa(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Fa(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(l,c){return l===void 0||l===0?c===void 0||c===0:l===c}for(const l of Ns)if(!n(this.values[l],t.values[l]))return!1;return!0}}const tu="Invalid Interval";function dx(o,t){return!o||!o.isValid?ir.invalid("missing or invalid start"):!t||!t.isValid?ir.invalid("missing or invalid end"):t<o?ir.invalid("end before start",`The end of an interval must be after its start, but you had start=${o.toISO()} and end=${t.toISO()}`):null}class ir{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Interval is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new FC(l);return new ir({invalid:l})}static fromDateTimes(t,n){const l=zc(t),c=zc(n),g=dx(l,c);return g==null?new ir({start:l,end:c}):g}static after(t,n){const l=Ot.fromDurationLike(n),c=zc(t);return ir.fromDateTimes(c,c.plus(l))}static before(t,n){const l=Ot.fromDurationLike(n),c=zc(t);return ir.fromDateTimes(c.minus(l),c)}static fromISO(t,n){const[l,c]=(t||"").split("/",2);if(l&&c){let g,h;try{g=at.fromISO(l,n),h=g.isValid}catch{h=!1}let x,z;try{x=at.fromISO(c,n),z=x.isValid}catch{z=!1}if(h&&z)return ir.fromDateTimes(g,x);if(h){const S=Ot.fromISO(c,n);if(S.isValid)return ir.after(g,S)}else if(z){const S=Ot.fromISO(l,n);if(S.isValid)return ir.before(x,S)}}return ir.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),l=this.end.startOf(t);return Math.floor(l.diff(n,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?ir.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(zc).filter(h=>this.contains(h)).sort(),l=[];let{s:c}=this,g=0;for(;c<this.e;){const h=n[g]||this.e,x=+h>+this.e?this.e:h;l.push(ir.fromDateTimes(c,x)),c=x,g+=1}return l}splitBy(t){const n=Ot.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:l}=this,c=1,g;const h=[];for(;l<this.e;){const x=this.start.plus(n.mapUnits(z=>z*c));g=+x>+this.e?this.e:x,h.push(ir.fromDateTimes(l,g)),l=g,c+=1}return h}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,l=this.e<t.e?this.e:t.e;return n>=l?null:ir.fromDateTimes(n,l)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,l=this.e>t.e?this.e:t.e;return ir.fromDateTimes(n,l)}static merge(t){const[n,l]=t.sort((c,g)=>c.s-g.s).reduce(([c,g],h)=>g?g.overlaps(h)||g.abutsStart(h)?[c,g.union(h)]:[c.concat([g]),h]:[c,h],[[],null]);return l&&n.push(l),n}static xor(t){let n=null,l=0;const c=[],g=t.map(z=>[{time:z.s,type:"s"},{time:z.e,type:"e"}]),h=Array.prototype.concat(...g),x=h.sort((z,S)=>z.time-S.time);for(const z of x)l+=z.type==="s"?1:-1,l===1?n=z.time:(n&&+n!=+z.time&&c.push(ir.fromDateTimes(n,z.time)),n=null);return ir.merge(c)}difference(...t){return ir.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:tu}toLocaleString(t=Qd,n={}){return this.isValid?sn.create(this.s.loc.clone(n),t).formatInterval(this):tu}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:tu}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:tu}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:tu}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:tu}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ot.invalid(this.invalidReason)}mapEndpoints(t){return ir.fromDateTimes(t(this.s),t(this.e))}}class _d{static hasDST(t=wr.defaultZone){const n=at.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Xo.isValidZone(t)}static normalizeZone(t){return Wa(t,wr.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Kt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Kt.create(n,null,"gregory").eras(t)}static features(){return{relative:L4()}}}function V2(o,t){const n=c=>c.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),l=n(t)-n(o);return Math.floor(Ot.fromMillis(l).as("days"))}function fx(o,t,n){const l=[["years",(z,S)=>S.year-z.year],["quarters",(z,S)=>S.quarter-z.quarter+(S.year-z.year)*4],["months",(z,S)=>S.month-z.month+(S.year-z.year)*12],["weeks",(z,S)=>{const k=V2(z,S);return(k-k%7)/7}],["days",V2]],c={},g=o;let h,x;for(const[z,S]of l)n.indexOf(z)>=0&&(h=z,c[z]=S(o,t),x=g.plus(c),x>t?(c[z]--,o=g.plus(c),o>t&&(x=o,c[z]--,o=g.plus(c))):o=x);return[o,c,x,h]}function hx(o,t,n,l){let[c,g,h,x]=fx(o,t,n);const z=t-c,S=n.filter(D=>["hours","minutes","seconds","milliseconds"].indexOf(D)>=0);S.length===0&&(h<t&&(h=c.plus({[x]:1})),h!==c&&(g[x]=(g[x]||0)+z/(h-c)));const k=Ot.fromObject(g,l);return S.length>0?Ot.fromMillis(z,l).shiftTo(...S).plus(k):k}const Jh={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Z2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},px=Jh.hanidec.replace(/[\[|\]]/g,"").split("");function gx(o){let t=parseInt(o,10);if(isNaN(t)){t="";for(let n=0;n<o.length;n++){const l=o.charCodeAt(n);if(o[n].search(Jh.hanidec)!==-1)t+=px.indexOf(o[n]);else for(const c in Z2){const[g,h]=Z2[c];l>=g&&l<=h&&(t+=l-g)}}return parseInt(t,10)}else return t}function ki({numberingSystem:o},t=""){return new RegExp(`${Jh[o||"latn"]}${t}`)}const vx="missing Intl.DateTimeFormat.formatToParts support";function Pt(o,t=n=>n){return{regex:o,deser:([n])=>t(gx(n))}}const bx=String.fromCharCode(160),U4=`[ ${bx}]`,V4=new RegExp(U4,"g");function mx(o){return o.replace(/\./g,"\\.?").replace(V4,U4)}function G2(o){return o.replace(/\./g,"").replace(V4," ").toLowerCase()}function Ii(o,t){return o===null?null:{regex:RegExp(o.map(mx).join("|")),deser:([n])=>o.findIndex(l=>G2(n)===G2(l))+t}}function q2(o,t){return{regex:o,deser:([,n,l])=>C1(n,l),groups:t}}function Md(o){return{regex:o,deser:([t])=>t}}function yx(o){return o.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Cx(o,t){const n=ki(t),l=ki(t,"{2}"),c=ki(t,"{3}"),g=ki(t,"{4}"),h=ki(t,"{6}"),x=ki(t,"{1,2}"),z=ki(t,"{1,3}"),S=ki(t,"{1,6}"),k=ki(t,"{1,9}"),D=ki(t,"{2,4}"),B=ki(t,"{4,6}"),R=ge=>({regex:RegExp(yx(ge.val)),deser:([Te])=>Te,literal:!0}),pe=(ge=>{if(o.literal)return R(ge);switch(ge.val){case"G":return Ii(t.eras("short"),0);case"GG":return Ii(t.eras("long"),0);case"y":return Pt(S);case"yy":return Pt(D,mh);case"yyyy":return Pt(g);case"yyyyy":return Pt(B);case"yyyyyy":return Pt(h);case"M":return Pt(x);case"MM":return Pt(l);case"MMM":return Ii(t.months("short",!0),1);case"MMMM":return Ii(t.months("long",!0),1);case"L":return Pt(x);case"LL":return Pt(l);case"LLL":return Ii(t.months("short",!1),1);case"LLLL":return Ii(t.months("long",!1),1);case"d":return Pt(x);case"dd":return Pt(l);case"o":return Pt(z);case"ooo":return Pt(c);case"HH":return Pt(l);case"H":return Pt(x);case"hh":return Pt(l);case"h":return Pt(x);case"mm":return Pt(l);case"m":return Pt(x);case"q":return Pt(x);case"qq":return Pt(l);case"s":return Pt(x);case"ss":return Pt(l);case"S":return Pt(z);case"SSS":return Pt(c);case"u":return Md(k);case"uu":return Md(x);case"uuu":return Pt(n);case"a":return Ii(t.meridiems(),0);case"kkkk":return Pt(g);case"kk":return Pt(D,mh);case"W":return Pt(x);case"WW":return Pt(l);case"E":case"c":return Pt(n);case"EEE":return Ii(t.weekdays("short",!1),1);case"EEEE":return Ii(t.weekdays("long",!1),1);case"ccc":return Ii(t.weekdays("short",!0),1);case"cccc":return Ii(t.weekdays("long",!0),1);case"Z":case"ZZ":return q2(new RegExp(`([+-]${x.source})(?::(${l.source}))?`),2);case"ZZZ":return q2(new RegExp(`([+-]${x.source})(${l.source})?`),2);case"z":return Md(/[a-z_+-/]{1,256}?/i);case" ":return Md(/[^\S\n\r]/);default:return R(ge)}})(o)||{invalidReason:vx};return pe.token=o,pe}const wx={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function xx(o,t,n){const{type:l,value:c}=o;if(l==="literal"){const z=/^\s+$/.test(c);return{literal:!z,val:z?" ":c}}const g=t[l];let h=l;l==="hour"&&(t.hour12!=null?h=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?h="hour12":h="hour24":h=n.hour12?"hour12":"hour24");let x=wx[h];if(typeof x=="object"&&(x=x[g]),x)return{literal:!1,val:x}}function zx(o){return[`^${o.map(n=>n.regex).reduce((n,l)=>`${n}(${l.source})`,"")}$`,o]}function Lx(o,t,n){const l=o.match(t);if(l){const c={};let g=1;for(const h in n)if(hu(n,h)){const x=n[h],z=x.groups?x.groups+1:1;!x.literal&&x.token&&(c[x.token.val[0]]=x.deser(l.slice(g,g+z))),g+=z}return[l,c]}else return[l,{}]}function Sx(o){const t=g=>{switch(g){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,l;return _t(o.z)||(n=Xo.create(o.z)),_t(o.Z)||(n||(n=new mn(o.Z)),l=o.Z),_t(o.q)||(o.M=(o.q-1)*3+1),_t(o.h)||(o.h<12&&o.a===1?o.h+=12:o.h===12&&o.a===0&&(o.h=0)),o.G===0&&o.y&&(o.y=-o.y),_t(o.u)||(o.S=qh(o.u)),[Object.keys(o).reduce((g,h)=>{const x=t(h);return x&&(g[x]=o[h]),g},{}),n,l]}let Kf=null;function _x(){return Kf||(Kf=at.fromMillis(1555555555555)),Kf}function Mx(o,t){if(o.literal)return o;const n=sn.macroTokenToFormatOpts(o.val),l=q4(n,t);return l==null||l.includes(void 0)?o:l}function Z4(o,t){return Array.prototype.concat(...o.map(n=>Mx(n,t)))}function G4(o,t,n){const l=Z4(sn.parseFormat(n),o),c=l.map(h=>Cx(h,o)),g=c.find(h=>h.invalidReason);if(g)return{input:t,tokens:l,invalidReason:g.invalidReason};{const[h,x]=zx(c),z=RegExp(h,"i"),[S,k]=Lx(t,z,x),[D,B,R]=k?Sx(k):[null,null,void 0];if(hu(k,"a")&&hu(k,"H"))throw new Sc("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:l,regex:z,rawMatches:S,matches:k,result:D,zone:B,specificOffset:R}}}function Tx(o,t,n){const{result:l,zone:c,specificOffset:g,invalidReason:h}=G4(o,t,n);return[l,c,g,h]}function q4(o,t){if(!o)return null;const l=sn.create(t,o).dtFormatter(_x()),c=l.formatToParts(),g=l.resolvedOptions();return c.map(h=>xx(h,o,g))}const j4=[0,31,59,90,120,151,181,212,243,273,304,334],K4=[0,31,60,91,121,152,182,213,244,274,305,335];function fi(o,t){return new $i("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${o}, which is invalid`)}function Y4(o,t,n){const l=new Date(Date.UTC(o,t-1,n));o<100&&o>=0&&l.setUTCFullYear(l.getUTCFullYear()-1900);const c=l.getUTCDay();return c===0?7:c}function X4(o,t,n){return n+(jc(o)?K4:j4)[t-1]}function J4(o,t){const n=jc(o)?K4:j4,l=n.findIndex(g=>g<t),c=t-n[l];return{month:l+1,day:c}}function yh(o){const{year:t,month:n,day:l}=o,c=X4(t,n,l),g=Y4(t,n,l);let h=Math.floor((c-g+10)/7),x;return h<1?(x=t-1,h=t1(x)):h>t1(t)?(x=t+1,h=1):x=t,{weekYear:x,weekNumber:h,weekday:g,...w1(o)}}function j2(o){const{weekYear:t,weekNumber:n,weekday:l}=o,c=Y4(t,1,4),g=Ec(t);let h=n*7+l-c-3,x;h<1?(x=t-1,h+=Ec(x)):h>g?(x=t+1,h-=Ec(t)):x=t;const{month:z,day:S}=J4(x,h);return{year:x,month:z,day:S,...w1(o)}}function Yf(o){const{year:t,month:n,day:l}=o,c=X4(t,n,l);return{year:t,ordinal:c,...w1(o)}}function K2(o){const{year:t,ordinal:n}=o,{month:l,day:c}=J4(t,n);return{year:t,month:l,day:c,...w1(o)}}function Ox(o){const t=m1(o.weekYear),n=Ko(o.weekNumber,1,t1(o.weekYear)),l=Ko(o.weekday,1,7);return t?n?l?!1:fi("weekday",o.weekday):fi("week",o.week):fi("weekYear",o.weekYear)}function Ex(o){const t=m1(o.year),n=Ko(o.ordinal,1,Ec(o.year));return t?n?!1:fi("ordinal",o.ordinal):fi("year",o.year)}function Q4(o){const t=m1(o.year),n=Ko(o.month,1,12),l=Ko(o.day,1,e1(o.year,o.month));return t?n?l?!1:fi("day",o.day):fi("month",o.month):fi("year",o.year)}function e6(o){const{hour:t,minute:n,second:l,millisecond:c}=o,g=Ko(t,0,23)||t===24&&n===0&&l===0&&c===0,h=Ko(n,0,59),x=Ko(l,0,59),z=Ko(c,0,999);return g?h?x?z?!1:fi("millisecond",c):fi("second",l):fi("minute",n):fi("hour",t)}const Xf="Invalid DateTime",Y2=864e13;function Td(o){return new $i("unsupported zone",`the zone "${o.name}" is not supported`)}function Jf(o){return o.weekData===null&&(o.weekData=yh(o.c)),o.weekData}function Ds(o,t){const n={ts:o.ts,zone:o.zone,c:o.c,o:o.o,loc:o.loc,invalid:o.invalid};return new at({...n,...t,old:n})}function t6(o,t,n){let l=o-t*60*1e3;const c=n.offset(l);if(t===c)return[l,t];l-=(c-t)*60*1e3;const g=n.offset(l);return c===g?[l,c]:[o-Math.min(c,g)*60*1e3,Math.max(c,g)]}function Od(o,t){o+=t*60*1e3;const n=new Date(o);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Pd(o,t,n){return t6(y1(o),t,n)}function X2(o,t){const n=o.o,l=o.c.year+Math.trunc(t.years),c=o.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,g={...o.c,year:l,month:c,day:Math.min(o.c.day,e1(l,c))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},h=Ot.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),x=y1(g);let[z,S]=t6(x,n,o.zone);return h!==0&&(z+=h,S=o.zone.offset(z)),{ts:z,o:S}}function xc(o,t,n,l,c,g){const{setZone:h,zone:x}=n;if(o&&Object.keys(o).length!==0||t){const z=t||x,S=at.fromObject(o,{...n,zone:z,specificOffset:g});return h?S:S.setZone(x)}else return at.invalid(new $i("unparsable",`the input "${c}" can't be parsed as ${l}`))}function Ed(o,t,n=!0){return o.isValid?sn.create(Kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(o,t):null}function Qf(o,t){const n=o.c.year>9999||o.c.year<0;let l="";return n&&o.c.year>=0&&(l+="+"),l+=xr(o.c.year,n?6:4),t?(l+="-",l+=xr(o.c.month),l+="-",l+=xr(o.c.day)):(l+=xr(o.c.month),l+=xr(o.c.day)),l}function J2(o,t,n,l,c,g){let h=xr(o.c.hour);return t?(h+=":",h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=":")):h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=xr(o.c.second),(o.c.millisecond!==0||!l)&&(h+=".",h+=xr(o.c.millisecond,3))),c&&(o.isOffsetFixed&&o.offset===0&&!g?h+="Z":o.o<0?(h+="-",h+=xr(Math.trunc(-o.o/60)),h+=":",h+=xr(Math.trunc(-o.o%60))):(h+="+",h+=xr(Math.trunc(o.o/60)),h+=":",h+=xr(Math.trunc(o.o%60)))),g&&(h+="["+o.zone.ianaName+"]"),h}const r6={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},kx={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ix={ordinal:1,hour:0,minute:0,second:0,millisecond:0},n6=["year","month","day","hour","minute","second","millisecond"],Ax=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],$x=["year","ordinal","hour","minute","second","millisecond"];function Q2(o){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[o.toLowerCase()];if(!t)throw new i4(o);return t}function eg(o,t){const n=Wa(t.zone,wr.defaultZone),l=Kt.fromObject(t),c=wr.now();let g,h;if(_t(o.year))g=c;else{for(const S of n6)_t(o[S])&&(o[S]=r6[S]);const x=Q4(o)||e6(o);if(x)return at.invalid(x);const z=n.offset(c);[g,h]=Pd(o,z,n)}return new at({ts:g,zone:n,loc:l,o:h})}function tg(o,t,n){const l=_t(n.round)?!0:n.round,c=(h,x)=>(h=jh(h,l||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(h,x)),g=h=>n.calendary?t.hasSame(o,h)?0:t.startOf(h).diff(o.startOf(h),h).get(h):t.diff(o,h).get(h);if(n.unit)return c(g(n.unit),n.unit);for(const h of n.units){const x=g(h);if(Math.abs(x)>=1)return c(x,h)}return c(o>t?-0:0,n.units[n.units.length-1])}function rg(o){let t={},n;return o.length>0&&typeof o[o.length-1]=="object"?(t=o[o.length-1],n=Array.from(o).slice(0,o.length-1)):n=Array.from(o),[t,n]}class at{constructor(t){const n=t.zone||wr.defaultZone;let l=t.invalid||(Number.isNaN(t.ts)?new $i("invalid input"):null)||(n.isValid?null:Td(n));this.ts=_t(t.ts)?wr.now():t.ts;let c=null,g=null;if(!l)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[c,g]=[t.old.c,t.old.o];else{const x=n.offset(this.ts);c=Od(this.ts,x),l=Number.isNaN(c.year)?new $i("invalid input"):null,c=l?null:c,g=l?null:x}this._zone=n,this.loc=t.loc||Kt.create(),this.invalid=l,this.weekData=null,this.c=c,this.o=g,this.isLuxonDateTime=!0}static now(){return new at({})}static local(){const[t,n]=rg(arguments),[l,c,g,h,x,z,S]=n;return eg({year:l,month:c,day:g,hour:h,minute:x,second:z,millisecond:S},t)}static utc(){const[t,n]=rg(arguments),[l,c,g,h,x,z,S]=n;return t.zone=mn.utcInstance,eg({year:l,month:c,day:g,hour:h,minute:x,second:z,millisecond:S},t)}static fromJSDate(t,n={}){const l=sw(t)?t.valueOf():NaN;if(Number.isNaN(l))return at.invalid("invalid input");const c=Wa(n.zone,wr.defaultZone);return c.isValid?new at({ts:l,zone:c,loc:Kt.fromObject(n)}):at.invalid(Td(c))}static fromMillis(t,n={}){if(Us(t))return t<-Y2||t>Y2?at.invalid("Timestamp out of range"):new at({ts:t,zone:Wa(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Us(t))return new at({ts:t*1e3,zone:Wa(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const l=Wa(n.zone,wr.defaultZone);if(!l.isValid)return at.invalid(Td(l));const c=wr.now(),g=_t(n.specificOffset)?l.offset(c):n.specificOffset,h=r1(t,Q2),x=!_t(h.ordinal),z=!_t(h.year),S=!_t(h.month)||!_t(h.day),k=z||S,D=h.weekYear||h.weekNumber,B=Kt.fromObject(n);if((k||x)&&D)throw new Sc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&x)throw new Sc("Can't mix ordinal dates with month/day");const R=D||h.weekday&&!k;let J,pe,ge=Od(c,g);R?(J=Ax,pe=kx,ge=yh(ge)):x?(J=$x,pe=Ix,ge=Yf(ge)):(J=n6,pe=r6);let Te=!1;for(const je of J){const Ye=h[je];_t(Ye)?Te?h[je]=pe[je]:h[je]=ge[je]:Te=!0}const Ie=R?Ox(h):x?Ex(h):Q4(h),be=Ie||e6(h);if(be)return at.invalid(be);const ve=R?j2(h):x?K2(h):h,[Oe,$e]=Pd(ve,g,l),De=new at({ts:Oe,zone:l,o:$e,loc:B});return h.weekday&&k&&t.weekday!==De.weekday?at.invalid("mismatched weekday",`you can't specify both a weekday of ${h.weekday} and a date of ${De.toISO()}`):De}static fromISO(t,n={}){const[l,c]=Yw(t);return xc(l,c,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[l,c]=Xw(t);return xc(l,c,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[l,c]=Jw(t);return xc(l,c,n,"HTTP",n)}static fromFormat(t,n,l={}){if(_t(t)||_t(n))throw new di("fromFormat requires an input string and a format");const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0}),[x,z,S,k]=Tx(h,t,n);return k?at.invalid(k):xc(x,z,l,`format ${n}`,t,S)}static fromString(t,n,l={}){return at.fromFormat(t,n,l)}static fromSQL(t,n={}){const[l,c]=ox(t);return xc(l,c,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the DateTime is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new RC(l);return new at({invalid:l})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const l=q4(t,Kt.fromObject(n));return l?l.map(c=>c?c.val:null).join(""):null}static expandFormat(t,n={}){return Z4(sn.parseFormat(t),Kt.fromObject(n)).map(c=>c.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Jf(this).weekYear:NaN}get weekNumber(){return this.isValid?Jf(this).weekNumber:NaN}get weekday(){return this.isValid?Jf(this).weekday:NaN}get ordinal(){return this.isValid?Yf(this.c).ordinal:NaN}get monthShort(){return this.isValid?_d.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?_d.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?_d.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?_d.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,l=y1(this.c),c=this.zone.offset(l-t),g=this.zone.offset(l+t),h=this.zone.offset(l-c*n),x=this.zone.offset(l-g*n);if(h===x)return[this];const z=l-h*n,S=l-x*n,k=Od(z,h),D=Od(S,x);return k.hour===D.hour&&k.minute===D.minute&&k.second===D.second&&k.millisecond===D.millisecond?[Ds(this,{ts:z}),Ds(this,{ts:S})]:[this]}get isInLeapYear(){return jc(this.year)}get daysInMonth(){return e1(this.year,this.month)}get daysInYear(){return this.isValid?Ec(this.year):NaN}get weeksInWeekYear(){return this.isValid?t1(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:l,calendar:c}=sn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:l,outputCalendar:c}}toUTC(t=0,n={}){return this.setZone(mn.instance(t),n)}toLocal(){return this.setZone(wr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:l=!1}={}){if(t=Wa(t,wr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let c=this.ts;if(n||l){const g=t.offset(this.ts),h=this.toObject();[c]=Pd(h,g,t)}return Ds(this,{ts:c,zone:t})}else return at.invalid(Td(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:l}={}){const c=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:l});return Ds(this,{loc:c})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=r1(t,Q2),l=!_t(n.weekYear)||!_t(n.weekNumber)||!_t(n.weekday),c=!_t(n.ordinal),g=!_t(n.year),h=!_t(n.month)||!_t(n.day),x=g||h,z=n.weekYear||n.weekNumber;if((x||c)&&z)throw new Sc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new Sc("Can't mix ordinal dates with month/day");let S;l?S=j2({...yh(this.c),...n}):_t(n.ordinal)?(S={...this.toObject(),...n},_t(n.day)&&(S.day=Math.min(e1(S.year,S.month),S.day))):S=K2({...Yf(this.c),...n});const[k,D]=Pd(S,this.o,this.zone);return Ds(this,{ts:k,o:D})}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return Ds(this,X2(this,n))}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t).negate();return Ds(this,X2(this,n))}startOf(t){if(!this.isValid)return this;const n={},l=Ot.normalizeUnit(t);switch(l){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(l==="weeks"&&(n.weekday=1),l==="quarters"){const c=Math.ceil(this.month/3);n.month=(c-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?sn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Xf}toLocaleString(t=Qd,n={}){return this.isValid?sn.create(this.loc.clone(n),t).formatDateTime(this):Xf}toLocaleParts(t={}){return this.isValid?sn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:l=!1,includeOffset:c=!0,extendedZone:g=!1}={}){if(!this.isValid)return null;const h=t==="extended";let x=Qf(this,h);return x+="T",x+=J2(this,h,n,l,c,g),x}toISODate({format:t="extended"}={}){return this.isValid?Qf(this,t==="extended"):null}toISOWeekDate(){return Ed(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:l=!0,includePrefix:c=!1,extendedZone:g=!1,format:h="extended"}={}){return this.isValid?(c?"T":"")+J2(this,h==="extended",n,t,l,g):null}toRFC2822(){return Ed(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ed(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Qf(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:l=!0}={}){let c="HH:mm:ss.SSS";return(n||t)&&(l&&(c+=" "),n?c+="z":t&&(c+="ZZ")),Ed(this,c,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Xf}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",l={}){if(!this.isValid||!t.isValid)return Ot.invalid("created by diffing an invalid DateTime");const c={locale:this.locale,numberingSystem:this.numberingSystem,...l},g=lw(n).map(Ot.normalizeUnit),h=t.valueOf()>this.valueOf(),x=h?this:t,z=h?t:this,S=hx(x,z,g,c);return h?S.negate():S}diffNow(t="milliseconds",n={}){return this.diff(at.now(),t,n)}until(t){return this.isValid?ir.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const l=t.valueOf(),c=this.setZone(t.zone,{keepLocalTime:!0});return c.startOf(n)<=l&&l<=c.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||at.fromObject({},{zone:this.zone}),l=t.padding?this<n?-t.padding:t.padding:0;let c=["years","months","days","hours","minutes","seconds"],g=t.unit;return Array.isArray(t.unit)&&(c=t.unit,g=void 0),tg(n,this.plus(l),{...t,numeric:"always",units:c,unit:g})}toRelativeCalendar(t={}){return this.isValid?tg(t.base||at.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(at.isDateTime))throw new di("min requires all arguments be DateTimes");return H2(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(at.isDateTime))throw new di("max requires all arguments be DateTimes");return H2(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,l={}){const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0});return G4(h,t,n)}static fromStringExplain(t,n,l={}){return at.fromFormatExplain(t,n,l)}static get DATE_SHORT(){return Qd}static get DATE_MED(){return o4}static get DATE_MED_WITH_WEEKDAY(){return BC}static get DATE_FULL(){return a4}static get DATE_HUGE(){return s4}static get TIME_SIMPLE(){return l4}static get TIME_WITH_SECONDS(){return u4}static get TIME_WITH_SHORT_OFFSET(){return c4}static get TIME_WITH_LONG_OFFSET(){return d4}static get TIME_24_SIMPLE(){return f4}static get TIME_24_WITH_SECONDS(){return h4}static get TIME_24_WITH_SHORT_OFFSET(){return p4}static get TIME_24_WITH_LONG_OFFSET(){return g4}static get DATETIME_SHORT(){return v4}static get DATETIME_SHORT_WITH_SECONDS(){return b4}static get DATETIME_MED(){return m4}static get DATETIME_MED_WITH_SECONDS(){return y4}static get DATETIME_MED_WITH_WEEKDAY(){return WC}static get DATETIME_FULL(){return C4}static get DATETIME_FULL_WITH_SECONDS(){return w4}static get DATETIME_HUGE(){return x4}static get DATETIME_HUGE_WITH_SECONDS(){return z4}}function zc(o){if(at.isDateTime(o))return o;if(o&&o.valueOf&&Us(o.valueOf()))return at.fromJSDate(o);if(o&&typeof o=="object")return at.fromObject(o);throw new di(`Unknown datetime argument: ${o}, of type ${typeof o}`)}const Px={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},Dx=o=>at.local().setZone(o).isValid,Ch=o=>o.hour<12,ng=o=>!Ch(o),Nx=(o,t)=>Ch(o)&&Ch(t)||ng(o)&&ng(t),ig=(o,t)=>{var c;const n=t&&Dx(t)?t:"utc",l=(c=Px[n.split("/")[0]])!=null?c:"en-us";return o.setZone(n).setLocale(l)},og=o=>Rx(i6(o)),Rx=o=>o.replace(/Sept/,"Sep"),i6=o=>o.replace(/(AM|PM)/,t=>t.toLowerCase());var Fx=Object.defineProperty,Hx=Object.getOwnPropertyDescriptor,qa=(o,t,n,l)=>{for(var c=l>1?void 0:l?Hx(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Fx(t,n,c),c};const o6=Le("input-time"),a6="h:mma",s6=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,l6=/^(1[3-9]|2[0-3]).*/,u6=/^(\d\d?)(am?|pm?)/,Bx=["UTC","AEST"],c6=(o,t)=>({label:`${o}${t?` (${t})`:""}`,value:o}),Wx=(o,t)=>{const l=Math.ceil(1440/o),c=at.local().startOf("day");return Array(l).fill(null).map((g,h)=>{const x=c.plus({minutes:o*h}),z=i6(x.toFormat(a6));return c6(z,t)})},Ux=(o,t)=>{const n=o.trim(),l=o.match(s6);if(!n||!l)return[];const[,c,g,h]=l,x=parseInt(c,10),z=x>12?`${x-12}`:`${x}`,S=`${g}${h||0}`,k=`${z}:${S}`;return["am","pm"].map(D=>c6(`${k}${D}`,t))},Vx=(o,{value:t})=>{const n=o.match(l6);if(!n||!t)return!1;const[,l]=n,c=`${parseInt(l,10)-12}`,g=o.substring(l.length).replace(":",""),h=`${c}:${g}`;return t.startsWith(h)&&t.endsWith("pm")},Zx=(o,{value:t})=>{const n=o.match(u6);if(!n)return!1;const[,l,c]=n;return!!(t!=null&&t.replace(":00","").startsWith(`${l}${c}`))},Gx=(...o)=>Zx(...o)||Vx(...o);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=Wx(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var t;this.valueLabel=this.value&&this.value!==this.placeholder?(t=this.getItems().find(({value:n})=>n===this.value))==null?void 0:t.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(t){return this.query?Gx(this.query,t):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=Ux(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return q`
|
|
3368
|
+
`];Gc([H({type:String,reflect:!0})],exports.InputMultiselect.prototype,"size",2);Gc([H({attribute:"truncate-values-after",type:Number})],exports.InputMultiselect.prototype,"truncateValuesAfter",2);Gc([H({type:Array})],exports.InputMultiselect.prototype,"value",2);Gc([Be()],exports.InputMultiselect.prototype,"valueLabels",2);exports.InputMultiselect=Gc([ee(s4)],exports.InputMultiselect);class tl extends Error{}class BC extends tl{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class WC extends tl{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class UC extends tl{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Sc extends tl{}class l4 extends tl{constructor(t){super(`Invalid unit ${t}`)}}class di extends tl{}class Ra extends tl{constructor(){super("Zone is an abstract class")}}const Me="numeric",Ni="short",Kn="long",Qd={year:Me,month:Me,day:Me},u4={year:Me,month:Ni,day:Me},VC={year:Me,month:Ni,day:Me,weekday:Ni},c4={year:Me,month:Kn,day:Me},d4={year:Me,month:Kn,day:Me,weekday:Kn},f4={hour:Me,minute:Me},h4={hour:Me,minute:Me,second:Me},p4={hour:Me,minute:Me,second:Me,timeZoneName:Ni},g4={hour:Me,minute:Me,second:Me,timeZoneName:Kn},v4={hour:Me,minute:Me,hourCycle:"h23"},b4={hour:Me,minute:Me,second:Me,hourCycle:"h23"},m4={hour:Me,minute:Me,second:Me,hourCycle:"h23",timeZoneName:Ni},y4={hour:Me,minute:Me,second:Me,hourCycle:"h23",timeZoneName:Kn},C4={year:Me,month:Me,day:Me,hour:Me,minute:Me},w4={year:Me,month:Me,day:Me,hour:Me,minute:Me,second:Me},x4={year:Me,month:Ni,day:Me,hour:Me,minute:Me},z4={year:Me,month:Ni,day:Me,hour:Me,minute:Me,second:Me},ZC={year:Me,month:Ni,day:Me,weekday:Ni,hour:Me,minute:Me},L4={year:Me,month:Kn,day:Me,hour:Me,minute:Me,timeZoneName:Ni},S4={year:Me,month:Kn,day:Me,hour:Me,minute:Me,second:Me,timeZoneName:Ni},_4={year:Me,month:Kn,day:Me,weekday:Kn,hour:Me,minute:Me,timeZoneName:Kn},M4={year:Me,month:Kn,day:Me,weekday:Kn,hour:Me,minute:Me,second:Me,timeZoneName:Kn};class qc{get type(){throw new Ra}get name(){throw new Ra}get ianaName(){return this.name}get isUniversal(){throw new Ra}offsetName(t,n){throw new Ra}formatOffset(t,n){throw new Ra}offset(t){throw new Ra}equals(t){throw new Ra}get isValid(){throw new Ra}}let jf=null;class b1 extends qc{static get instance(){return jf===null&&(jf=new b1),jf}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return O4(t,n,l)}formatOffset(t,n){return Ec(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let $d={};function GC(o){return $d[o]||($d[o]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:o,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),$d[o]}const qC={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function jC(o,t){const n=o.format(t).replace(/\u200E/g,""),l=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,c,g,h,x,z,S,E]=l;return[h,c,g,x,z,S,E]}function KC(o,t){const n=o.formatToParts(t),l=[];for(let c=0;c<n.length;c++){const{type:g,value:h}=n[c],x=qC[g];g==="era"?l[x]=h:_t(x)||(l[x]=parseInt(h,10))}return l}let Ld={};class Xo extends qc{static create(t){return Ld[t]||(Ld[t]=new Xo(t)),Ld[t]}static resetCache(){Ld={},$d={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Xo.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:l}){return O4(t,n,l,this.name)}formatOffset(t,n){return Ec(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const l=GC(this.name);let[c,g,h,x,z,S,E]=l.formatToParts?KC(l,n):jC(l,n);x==="BC"&&(c=-Math.abs(c)+1);const B=y1({year:c,month:g,day:h,hour:z===24?0:z,minute:S,second:E,millisecond:0});let R=+n;const J=R%1e3;return R-=J>=0?J:1e3+J,(B-R)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let D2={};function YC(o,t={}){const n=JSON.stringify([o,t]);let l=D2[n];return l||(l=new Intl.ListFormat(o,t),D2[n]=l),l}let gh={};function vh(o,t={}){const n=JSON.stringify([o,t]);let l=gh[n];return l||(l=new Intl.DateTimeFormat(o,t),gh[n]=l),l}let bh={};function XC(o,t={}){const n=JSON.stringify([o,t]);let l=bh[n];return l||(l=new Intl.NumberFormat(o,t),bh[n]=l),l}let mh={};function JC(o,t={}){const{base:n,...l}=t,c=JSON.stringify([o,l]);let g=mh[c];return g||(g=new Intl.RelativeTimeFormat(o,t),mh[c]=g),g}let _c=null;function QC(){return _c||(_c=new Intl.DateTimeFormat().resolvedOptions().locale,_c)}function ew(o){const t=o.indexOf("-x-");t!==-1&&(o=o.substring(0,t));const n=o.indexOf("-u-");if(n===-1)return[o];{let l,c;try{l=vh(o).resolvedOptions(),c=o}catch{const z=o.substring(0,n);l=vh(z).resolvedOptions(),c=z}const{numberingSystem:g,calendar:h}=l;return[c,g,h]}}function tw(o,t,n){return(n||t)&&(o.includes("-u-")||(o+="-u"),n&&(o+=`-ca-${n}`),t&&(o+=`-nu-${t}`)),o}function rw(o){const t=[];for(let n=1;n<=12;n++){const l=at.utc(2009,n,1);t.push(o(l))}return t}function nw(o){const t=[];for(let n=1;n<=7;n++){const l=at.utc(2016,11,13+n);t.push(o(l))}return t}function Sd(o,t,n,l){const c=o.listingMode();return c==="error"?null:c==="en"?n(t):l(t)}function iw(o){return o.numberingSystem&&o.numberingSystem!=="latn"?!1:o.numberingSystem==="latn"||!o.locale||o.locale.startsWith("en")||new Intl.DateTimeFormat(o.intl).resolvedOptions().numberingSystem==="latn"}class ow{constructor(t,n,l){this.padTo=l.padTo||0,this.floor=l.floor||!1;const{padTo:c,floor:g,...h}=l;if(!n||Object.keys(h).length>0){const x={useGrouping:!1,...l};l.padTo>0&&(x.minimumIntegerDigits=l.padTo),this.inf=XC(t,x)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Kh(t,3);return xr(n,this.padTo)}}}class aw{constructor(t,n,l){this.opts=l,this.originalZone=void 0;let c;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const h=-1*(t.offset/60),x=h>=0?`Etc/GMT+${h}`:`Etc/GMT${h}`;t.offset!==0&&Xo.create(x).valid?(c=x,this.dt=t):(c="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,c=t.zone.name):(c="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const g={...this.opts};g.timeZone=g.timeZone||c,this.dtf=vh(n,g)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const l=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:l}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class sw{constructor(t,n,l){this.opts={style:"long",...l},!n&&T4()&&(this.rtf=JC(t,l))}format(t,n){return this.rtf?this.rtf.format(t,n):Lw(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class Kt{static fromOpts(t){return Kt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,l,c=!1){const g=t||wr.defaultLocale,h=g||(c?"en-US":QC()),x=n||wr.defaultNumberingSystem,z=l||wr.defaultOutputCalendar;return new Kt(h,x,z,g)}static resetCache(){_c=null,gh={},bh={},mh={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:l}={}){return Kt.create(t,n,l)}constructor(t,n,l,c){const[g,h,x]=ew(t);this.locale=g,this.numberingSystem=n||h||null,this.outputCalendar=l||x||null,this.intl=tw(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=c,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=iw(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:Kt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return Sd(this,t,I4,()=>{const l=n?{month:t,day:"numeric"}:{month:t},c=n?"format":"standalone";return this.monthsCache[c][t]||(this.monthsCache[c][t]=rw(g=>this.extract(g,l,"month"))),this.monthsCache[c][t]})}weekdays(t,n=!1){return Sd(this,t,P4,()=>{const l=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},c=n?"format":"standalone";return this.weekdaysCache[c][t]||(this.weekdaysCache[c][t]=nw(g=>this.extract(g,l,"weekday"))),this.weekdaysCache[c][t]})}meridiems(){return Sd(this,void 0,()=>D4,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[at.utc(2016,11,13,9),at.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Sd(this,t,N4,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[at.utc(-40,1,1),at.utc(2017,1,1)].map(l=>this.extract(l,n,"era"))),this.eraCache[t]})}extract(t,n,l){const c=this.dtFormatter(t,n),g=c.formatToParts(),h=g.find(x=>x.type.toLowerCase()===l);return h?h.value:null}numberFormatter(t={}){return new ow(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new aw(t,this.intl,n)}relFormatter(t={}){return new sw(this.intl,this.isEnglish(),t)}listFormatter(t={}){return YC(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let Kf=null;class mn extends qc{static get utcInstance(){return Kf===null&&(Kf=new mn(0)),Kf}static instance(t){return t===0?mn.utcInstance:new mn(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new mn(C1(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ec(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ec(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Ec(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class lw extends qc{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Wa(o,t){if(_t(o)||o===null)return t;if(o instanceof qc)return o;if(uw(o)){const n=o.toLowerCase();return n==="default"?t:n==="local"||n==="system"?b1.instance:n==="utc"||n==="gmt"?mn.utcInstance:mn.parseSpecifier(n)||Xo.create(o)}else return Us(o)?mn.instance(o):typeof o=="object"&&"offset"in o&&typeof o.offset=="function"?o:new lw(o)}let N2=()=>Date.now(),R2="system",F2=null,H2=null,B2=null,W2=60,U2;class wr{static get now(){return N2}static set now(t){N2=t}static set defaultZone(t){R2=t}static get defaultZone(){return Wa(R2,b1.instance)}static get defaultLocale(){return F2}static set defaultLocale(t){F2=t}static get defaultNumberingSystem(){return H2}static set defaultNumberingSystem(t){H2=t}static get defaultOutputCalendar(){return B2}static set defaultOutputCalendar(t){B2=t}static get twoDigitCutoffYear(){return W2}static set twoDigitCutoffYear(t){W2=t%100}static get throwOnInvalid(){return U2}static set throwOnInvalid(t){U2=t}static resetCaches(){Kt.resetCache(),Xo.resetCache()}}function _t(o){return typeof o=="undefined"}function Us(o){return typeof o=="number"}function m1(o){return typeof o=="number"&&o%1===0}function uw(o){return typeof o=="string"}function cw(o){return Object.prototype.toString.call(o)==="[object Date]"}function T4(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function dw(o){return Array.isArray(o)?o:[o]}function V2(o,t,n){if(o.length!==0)return o.reduce((l,c)=>{const g=[t(c),c];return l&&n(l[0],g[0])===l[0]?l:g},null)[1]}function fw(o,t){return t.reduce((n,l)=>(n[l]=o[l],n),{})}function pu(o,t){return Object.prototype.hasOwnProperty.call(o,t)}function Ko(o,t,n){return m1(o)&&o>=t&&o<=n}function hw(o,t){return o-t*Math.floor(o/t)}function xr(o,t=2){const n=o<0;let l;return n?l="-"+(""+-o).padStart(t,"0"):l=(""+o).padStart(t,"0"),l}function Ha(o){if(!(_t(o)||o===null||o===""))return parseInt(o,10)}function Ps(o){if(!(_t(o)||o===null||o===""))return parseFloat(o)}function jh(o){if(!(_t(o)||o===null||o==="")){const t=parseFloat("0."+o)*1e3;return Math.floor(t)}}function Kh(o,t,n=!1){const l=10**t;return(n?Math.trunc:Math.round)(o*l)/l}function jc(o){return o%4===0&&(o%100!==0||o%400===0)}function kc(o){return jc(o)?366:365}function e1(o,t){const n=hw(t-1,12)+1,l=o+(t-n)/12;return n===2?jc(l)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function y1(o){let t=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second,o.millisecond);return o.year<100&&o.year>=0&&(t=new Date(t),t.setUTCFullYear(o.year,o.month-1,o.day)),+t}function t1(o){const t=(o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400))%7,n=o-1,l=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||l===3?53:52}function yh(o){return o>99?o:o>wr.twoDigitCutoffYear?1900+o:2e3+o}function O4(o,t,n,l=null){const c=new Date(o),g={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};l&&(g.timeZone=l);const h={timeZoneName:t,...g},x=new Intl.DateTimeFormat(n,h).formatToParts(c).find(z=>z.type.toLowerCase()==="timezonename");return x?x.value:null}function C1(o,t){let n=parseInt(o,10);Number.isNaN(n)&&(n=0);const l=parseInt(t,10)||0,c=n<0||Object.is(n,-0)?-l:l;return n*60+c}function k4(o){const t=Number(o);if(typeof o=="boolean"||o===""||Number.isNaN(t))throw new di(`Invalid unit value ${o}`);return t}function r1(o,t){const n={};for(const l in o)if(pu(o,l)){const c=o[l];if(c==null)continue;n[t(l)]=k4(c)}return n}function Ec(o,t){const n=Math.trunc(Math.abs(o/60)),l=Math.trunc(Math.abs(o%60)),c=o>=0?"+":"-";switch(t){case"short":return`${c}${xr(n,2)}:${xr(l,2)}`;case"narrow":return`${c}${n}${l>0?`:${l}`:""}`;case"techie":return`${c}${xr(n,2)}${xr(l,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function w1(o){return fw(o,["hour","minute","second","millisecond"])}const pw=["January","February","March","April","May","June","July","August","September","October","November","December"],E4=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gw=["J","F","M","A","M","J","J","A","S","O","N","D"];function I4(o){switch(o){case"narrow":return[...gw];case"short":return[...E4];case"long":return[...pw];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const A4=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],$4=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],vw=["M","T","W","T","F","S","S"];function P4(o){switch(o){case"narrow":return[...vw];case"short":return[...$4];case"long":return[...A4];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const D4=["AM","PM"],bw=["Before Christ","Anno Domini"],mw=["BC","AD"],yw=["B","A"];function N4(o){switch(o){case"narrow":return[...yw];case"short":return[...mw];case"long":return[...bw];default:return null}}function Cw(o){return D4[o.hour<12?0:1]}function ww(o,t){return P4(t)[o.weekday-1]}function xw(o,t){return I4(t)[o.month-1]}function zw(o,t){return N4(t)[o.year<0?0:1]}function Lw(o,t,n="always",l=!1){const c={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},g=["hours","minutes","seconds"].indexOf(o)===-1;if(n==="auto"&&g){const D=o==="days";switch(t){case 1:return D?"tomorrow":`next ${c[o][0]}`;case-1:return D?"yesterday":`last ${c[o][0]}`;case 0:return D?"today":`this ${c[o][0]}`}}const h=Object.is(t,-0)||t<0,x=Math.abs(t),z=x===1,S=c[o],E=l?z?S[1]:S[2]||S[1]:z?c[o][0]:o;return h?`${x} ${E} ago`:`in ${x} ${E}`}function Z2(o,t){let n="";for(const l of o)l.literal?n+=l.val:n+=t(l.val);return n}const Sw={D:Qd,DD:u4,DDD:c4,DDDD:d4,t:f4,tt:h4,ttt:p4,tttt:g4,T:v4,TT:b4,TTT:m4,TTTT:y4,f:C4,ff:x4,fff:L4,ffff:_4,F:w4,FF:z4,FFF:S4,FFFF:M4};class sn{static create(t,n={}){return new sn(t,n)}static parseFormat(t){let n=null,l="",c=!1;const g=[];for(let h=0;h<t.length;h++){const x=t.charAt(h);x==="'"?(l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),n=null,l="",c=!c):c||x===n?l+=x:(l.length>0&&g.push({literal:/^\s+$/.test(l),val:l}),l=x,n=x)}return l.length>0&&g.push({literal:c||/^\s+$/.test(l),val:l}),g}static macroTokenToFormatOpts(t){return Sw[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return xr(t,n);const l={...this.opts};return n>0&&(l.padTo=n),this.loc.numberFormatter(l).format(t)}formatDateTimeFromString(t,n){const l=this.loc.listingMode()==="en",c=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",g=(R,J)=>this.loc.extract(t,R,J),h=R=>t.isOffsetFixed&&t.offset===0&&R.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,R.format):"",x=()=>l?Cw(t):g({hour:"numeric",hourCycle:"h12"},"dayperiod"),z=(R,J)=>l?xw(t,R):g(J?{month:R}:{month:R,day:"numeric"},"month"),S=(R,J)=>l?ww(t,R):g(J?{weekday:R}:{weekday:R,month:"long",day:"numeric"},"weekday"),E=R=>{const J=sn.macroTokenToFormatOpts(R);return J?this.formatWithSystemDefault(t,J):R},D=R=>l?zw(t,R):g({era:R},"era"),B=R=>{switch(R){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return h({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return h({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return h({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return x();case"d":return c?g({day:"numeric"},"day"):this.num(t.day);case"dd":return c?g({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return S("short",!0);case"cccc":return S("long",!0);case"ccccc":return S("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return S("short",!1);case"EEEE":return S("long",!1);case"EEEEE":return S("narrow",!1);case"L":return c?g({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return c?g({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return z("short",!0);case"LLLL":return z("long",!0);case"LLLLL":return z("narrow",!0);case"M":return c?g({month:"numeric"},"month"):this.num(t.month);case"MM":return c?g({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return z("short",!1);case"MMMM":return z("long",!1);case"MMMMM":return z("narrow",!1);case"y":return c?g({year:"numeric"},"year"):this.num(t.year);case"yy":return c?g({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return c?g({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return c?g({year:"numeric"},"year"):this.num(t.year,6);case"G":return D("short");case"GG":return D("long");case"GGGGG":return D("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return E(R)}};return Z2(sn.parseFormat(n),B)}formatDurationFromString(t,n){const l=z=>{switch(z[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},c=z=>S=>{const E=l(S);return E?this.num(z.get(E),S.length):S},g=sn.parseFormat(n),h=g.reduce((z,{literal:S,val:E})=>S?z:z.concat(E),[]),x=t.shiftTo(...h.map(l).filter(z=>z));return Z2(g,c(x))}}class $i{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const R4=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bu(...o){const t=o.reduce((n,l)=>n+l.source,"");return RegExp(`^${t}$`)}function mu(...o){return t=>o.reduce(([n,l,c],g)=>{const[h,x,z]=g(t,c);return[{...n,...h},x||l,z]},[{},null,1]).slice(0,2)}function yu(o,...t){if(o==null)return[null,null];for(const[n,l]of t){const c=n.exec(o);if(c)return l(c)}return[null,null]}function F4(...o){return(t,n)=>{const l={};let c;for(c=0;c<o.length;c++)l[o[c]]=Ha(t[n+c]);return[l,null,n+c]}}const H4=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,_w=`(?:${H4.source}?(?:\\[(${R4.source})\\])?)?`,Yh=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,B4=RegExp(`${Yh.source}${_w}`),Xh=RegExp(`(?:T${B4.source})?`),Mw=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Tw=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ow=/(\d{4})-?(\d{3})/,kw=F4("weekYear","weekNumber","weekDay"),Ew=F4("year","ordinal"),Iw=/(\d{4})-(\d\d)-(\d\d)/,W4=RegExp(`${Yh.source} ?(?:${H4.source}|(${R4.source}))?`),Aw=RegExp(`(?: ${W4.source})?`);function ou(o,t,n){const l=o[t];return _t(l)?n:Ha(l)}function $w(o,t){return[{year:ou(o,t),month:ou(o,t+1,1),day:ou(o,t+2,1)},null,t+3]}function Cu(o,t){return[{hours:ou(o,t,0),minutes:ou(o,t+1,0),seconds:ou(o,t+2,0),milliseconds:jh(o[t+3])},null,t+4]}function Kc(o,t){const n=!o[t]&&!o[t+1],l=C1(o[t+1],o[t+2]),c=n?null:mn.instance(l);return[{},c,t+3]}function Yc(o,t){const n=o[t]?Xo.create(o[t]):null;return[{},n,t+1]}const Pw=RegExp(`^T?${Yh.source}$`),Dw=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Nw(o){const[t,n,l,c,g,h,x,z,S]=o,E=t[0]==="-",D=z&&z[0]==="-",B=(R,J=!1)=>R!==void 0&&(J||R&&E)?-R:R;return[{years:B(Ps(n)),months:B(Ps(l)),weeks:B(Ps(c)),days:B(Ps(g)),hours:B(Ps(h)),minutes:B(Ps(x)),seconds:B(Ps(z),z==="-0"),milliseconds:B(jh(S),D)}]}const Rw={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 Jh(o,t,n,l,c,g,h){const x={year:t.length===2?yh(Ha(t)):Ha(t),month:E4.indexOf(n)+1,day:Ha(l),hour:Ha(c),minute:Ha(g)};return h&&(x.second=Ha(h)),o&&(x.weekday=o.length>3?A4.indexOf(o)+1:$4.indexOf(o)+1),x}const Fw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Hw(o){const[,t,n,l,c,g,h,x,z,S,E,D]=o,B=Jh(t,c,l,n,g,h,x);let R;return z?R=Rw[z]:S?R=0:R=C1(E,D),[B,new mn(R)]}function Bw(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Ww=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Uw=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Vw=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function G2(o){const[,t,n,l,c,g,h,x]=o;return[Jh(t,c,l,n,g,h,x),mn.utcInstance]}function Zw(o){const[,t,n,l,c,g,h,x]=o;return[Jh(t,x,n,l,c,g,h),mn.utcInstance]}const Gw=bu(Mw,Xh),qw=bu(Tw,Xh),jw=bu(Ow,Xh),Kw=bu(B4),U4=mu($w,Cu,Kc,Yc),Yw=mu(kw,Cu,Kc,Yc),Xw=mu(Ew,Cu,Kc,Yc),Jw=mu(Cu,Kc,Yc);function Qw(o){return yu(o,[Gw,U4],[qw,Yw],[jw,Xw],[Kw,Jw])}function ex(o){return yu(Bw(o),[Fw,Hw])}function tx(o){return yu(o,[Ww,G2],[Uw,G2],[Vw,Zw])}function rx(o){return yu(o,[Dw,Nw])}const nx=mu(Cu);function ix(o){return yu(o,[Pw,nx])}const ox=bu(Iw,Aw),ax=bu(W4),sx=mu(Cu,Kc,Yc);function lx(o){return yu(o,[ox,U4],[ax,sx])}const ux="Invalid Duration",V4={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},cx={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...V4},ci=146097/400,tu=146097/4800,dx={years:{quarters:4,months:12,weeks:ci/7,days:ci,hours:ci*24,minutes:ci*24*60,seconds:ci*24*60*60,milliseconds:ci*24*60*60*1e3},quarters:{months:3,weeks:ci/28,days:ci/4,hours:ci*24/4,minutes:ci*24*60/4,seconds:ci*24*60*60/4,milliseconds:ci*24*60*60*1e3/4},months:{weeks:tu/7,days:tu,hours:tu*24,minutes:tu*24*60,seconds:tu*24*60*60,milliseconds:tu*24*60*60*1e3},...V4},Ns=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Z4=Ns.slice(0).reverse();function Fa(o,t,n=!1){const l={values:n?t.values:{...o.values,...t.values||{}},loc:o.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||o.conversionAccuracy,matrix:t.matrix||o.matrix};return new Ot(l)}function q2(o){return Math.trunc(o*1e3)/1e3}function G4(o,t,n,l,c){const g=o[c][n],h=t[n]/g,x=Math.floor(h);l[c]=q2(l[c]+x),t[n]=q2(t[n]-x*g)}function fx(o,t){Z4.reduce((n,l)=>_t(t[l])?n:(n&&G4(o,t,n,t,l),l),null)}function hx(o){const t={};for(const[n,l]of Object.entries(o))l!==0&&(t[n]=l);return t}class Ot{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let l=n?dx:cx;t.matrix&&(l=t.matrix),this.values=t.values,this.loc=t.loc||Kt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=l,this.isLuxonDuration=!0}static fromMillis(t,n){return Ot.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new di(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Ot({values:r1(t,Ot.normalizeUnit),loc:Kt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Us(t))return Ot.fromMillis(t);if(Ot.isDuration(t))return t;if(typeof t=="object")return Ot.fromObject(t);throw new di(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[l]=rx(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[l]=ix(t);return l?Ot.fromObject(l,n):Ot.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Duration is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new UC(l);return new Ot({invalid:l})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new l4(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const l={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?sn.create(this.loc,l).formatDurationFromString(this,t):ux}toHuman(t={}){const n=Ns.map(l=>{const c=this.values[l];return _t(c)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:l.slice(0,-1)}).format(c)}).filter(l=>l);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Kh(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},at.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){var n,l;let t=(n=this.values.milliseconds)!=null?n:0;for(let c of Z4.slice(1))(l=this.values)!=null&&l[c]&&(t+=this.values[c]*this.matrix[c].milliseconds);return t}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t),l={};for(const c of Ns)(pu(n.values,c)||pu(this.values,c))&&(l[c]=n.get(c)+this.get(c));return Fa(this,{values:l},!0)}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const l of Object.keys(this.values))n[l]=k4(t(this.values[l],l));return Fa(this,{values:n},!0)}get(t){return this[Ot.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...r1(t,Ot.normalizeUnit)};return Fa(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:l,matrix:c}={}){const h={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:c,conversionAccuracy:l};return Fa(this,h)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return this.valueOf()>=0?(fx(this.matrix,t),Fa(this,{values:t},!0)):this.negate().normalize().negate()}rescale(){if(!this.isValid)return this;const t=hx(this.normalize().shiftToAll().toObject());return Fa(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(h=>Ot.normalizeUnit(h));const n={},l={},c=this.toObject();let g;for(const h of Ns)if(t.indexOf(h)>=0){g=h;let x=0;for(const S in l)x+=this.matrix[S][h]*l[S],l[S]=0;Us(c[h])&&(x+=c[h]);const z=Math.trunc(x);n[h]=z,l[h]=(x*1e3-z*1e3)/1e3;for(const S in c)Ns.indexOf(S)>Ns.indexOf(h)&&G4(this.matrix,c,S,n,h)}else Us(c[h])&&(l[h]=c[h]);for(const h in l)l[h]!==0&&(n[g]+=h===g?l[h]:l[h]/this.matrix[g][h]);return Fa(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Fa(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(l,c){return l===void 0||l===0?c===void 0||c===0:l===c}for(const l of Ns)if(!n(this.values[l],t.values[l]))return!1;return!0}}const ru="Invalid Interval";function px(o,t){return!o||!o.isValid?ir.invalid("missing or invalid start"):!t||!t.isValid?ir.invalid("missing or invalid end"):t<o?ir.invalid("end before start",`The end of an interval must be after its start, but you had start=${o.toISO()} and end=${t.toISO()}`):null}class ir{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the Interval is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new WC(l);return new ir({invalid:l})}static fromDateTimes(t,n){const l=zc(t),c=zc(n),g=px(l,c);return g==null?new ir({start:l,end:c}):g}static after(t,n){const l=Ot.fromDurationLike(n),c=zc(t);return ir.fromDateTimes(c,c.plus(l))}static before(t,n){const l=Ot.fromDurationLike(n),c=zc(t);return ir.fromDateTimes(c.minus(l),c)}static fromISO(t,n){const[l,c]=(t||"").split("/",2);if(l&&c){let g,h;try{g=at.fromISO(l,n),h=g.isValid}catch{h=!1}let x,z;try{x=at.fromISO(c,n),z=x.isValid}catch{z=!1}if(h&&z)return ir.fromDateTimes(g,x);if(h){const S=Ot.fromISO(c,n);if(S.isValid)return ir.after(g,S)}else if(z){const S=Ot.fromISO(l,n);if(S.isValid)return ir.before(x,S)}}return ir.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),l=this.end.startOf(t);return Math.floor(l.diff(n,t).get(t))+(l.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?ir.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(zc).filter(h=>this.contains(h)).sort(),l=[];let{s:c}=this,g=0;for(;c<this.e;){const h=n[g]||this.e,x=+h>+this.e?this.e:h;l.push(ir.fromDateTimes(c,x)),c=x,g+=1}return l}splitBy(t){const n=Ot.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:l}=this,c=1,g;const h=[];for(;l<this.e;){const x=this.start.plus(n.mapUnits(z=>z*c));g=+x>+this.e?this.e:x,h.push(ir.fromDateTimes(l,g)),l=g,c+=1}return h}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,l=this.e<t.e?this.e:t.e;return n>=l?null:ir.fromDateTimes(n,l)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,l=this.e>t.e?this.e:t.e;return ir.fromDateTimes(n,l)}static merge(t){const[n,l]=t.sort((c,g)=>c.s-g.s).reduce(([c,g],h)=>g?g.overlaps(h)||g.abutsStart(h)?[c,g.union(h)]:[c.concat([g]),h]:[c,h],[[],null]);return l&&n.push(l),n}static xor(t){let n=null,l=0;const c=[],g=t.map(z=>[{time:z.s,type:"s"},{time:z.e,type:"e"}]),h=Array.prototype.concat(...g),x=h.sort((z,S)=>z.time-S.time);for(const z of x)l+=z.type==="s"?1:-1,l===1?n=z.time:(n&&+n!=+z.time&&c.push(ir.fromDateTimes(n,z.time)),n=null);return ir.merge(c)}difference(...t){return ir.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:ru}toLocaleString(t=Qd,n={}){return this.isValid?sn.create(this.s.loc.clone(n),t).formatInterval(this):ru}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:ru}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ru}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:ru}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:ru}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Ot.invalid(this.invalidReason)}mapEndpoints(t){return ir.fromDateTimes(t(this.s),t(this.e))}}class _d{static hasDST(t=wr.defaultZone){const n=at.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Xo.isValidZone(t)}static normalizeZone(t){return Wa(t,wr.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null,outputCalendar:g="gregory"}={}){return(c||Kt.create(n,l,g)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:l=null,locObj:c=null}={}){return(c||Kt.create(n,l,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Kt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return Kt.create(n,null,"gregory").eras(t)}static features(){return{relative:T4()}}}function j2(o,t){const n=c=>c.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),l=n(t)-n(o);return Math.floor(Ot.fromMillis(l).as("days"))}function gx(o,t,n){const l=[["years",(z,S)=>S.year-z.year],["quarters",(z,S)=>S.quarter-z.quarter+(S.year-z.year)*4],["months",(z,S)=>S.month-z.month+(S.year-z.year)*12],["weeks",(z,S)=>{const E=j2(z,S);return(E-E%7)/7}],["days",j2]],c={},g=o;let h,x;for(const[z,S]of l)n.indexOf(z)>=0&&(h=z,c[z]=S(o,t),x=g.plus(c),x>t?(c[z]--,o=g.plus(c),o>t&&(x=o,c[z]--,o=g.plus(c))):o=x);return[o,c,x,h]}function vx(o,t,n,l){let[c,g,h,x]=gx(o,t,n);const z=t-c,S=n.filter(D=>["hours","minutes","seconds","milliseconds"].indexOf(D)>=0);S.length===0&&(h<t&&(h=c.plus({[x]:1})),h!==c&&(g[x]=(g[x]||0)+z/(h-c)));const E=Ot.fromObject(g,l);return S.length>0?Ot.fromMillis(z,l).shiftTo(...S).plus(E):E}const Qh={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},K2={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},bx=Qh.hanidec.replace(/[\[|\]]/g,"").split("");function mx(o){let t=parseInt(o,10);if(isNaN(t)){t="";for(let n=0;n<o.length;n++){const l=o.charCodeAt(n);if(o[n].search(Qh.hanidec)!==-1)t+=bx.indexOf(o[n]);else for(const c in K2){const[g,h]=K2[c];l>=g&&l<=h&&(t+=l-g)}}return parseInt(t,10)}else return t}function Ei({numberingSystem:o},t=""){return new RegExp(`${Qh[o||"latn"]}${t}`)}const yx="missing Intl.DateTimeFormat.formatToParts support";function Pt(o,t=n=>n){return{regex:o,deser:([n])=>t(mx(n))}}const Cx=String.fromCharCode(160),q4=`[ ${Cx}]`,j4=new RegExp(q4,"g");function wx(o){return o.replace(/\./g,"\\.?").replace(j4,q4)}function Y2(o){return o.replace(/\./g,"").replace(j4," ").toLowerCase()}function Ii(o,t){return o===null?null:{regex:RegExp(o.map(wx).join("|")),deser:([n])=>o.findIndex(l=>Y2(n)===Y2(l))+t}}function X2(o,t){return{regex:o,deser:([,n,l])=>C1(n,l),groups:t}}function Md(o){return{regex:o,deser:([t])=>t}}function xx(o){return o.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function zx(o,t){const n=Ei(t),l=Ei(t,"{2}"),c=Ei(t,"{3}"),g=Ei(t,"{4}"),h=Ei(t,"{6}"),x=Ei(t,"{1,2}"),z=Ei(t,"{1,3}"),S=Ei(t,"{1,6}"),E=Ei(t,"{1,9}"),D=Ei(t,"{2,4}"),B=Ei(t,"{4,6}"),R=ge=>({regex:RegExp(xx(ge.val)),deser:([Te])=>Te,literal:!0}),pe=(ge=>{if(o.literal)return R(ge);switch(ge.val){case"G":return Ii(t.eras("short"),0);case"GG":return Ii(t.eras("long"),0);case"y":return Pt(S);case"yy":return Pt(D,yh);case"yyyy":return Pt(g);case"yyyyy":return Pt(B);case"yyyyyy":return Pt(h);case"M":return Pt(x);case"MM":return Pt(l);case"MMM":return Ii(t.months("short",!0),1);case"MMMM":return Ii(t.months("long",!0),1);case"L":return Pt(x);case"LL":return Pt(l);case"LLL":return Ii(t.months("short",!1),1);case"LLLL":return Ii(t.months("long",!1),1);case"d":return Pt(x);case"dd":return Pt(l);case"o":return Pt(z);case"ooo":return Pt(c);case"HH":return Pt(l);case"H":return Pt(x);case"hh":return Pt(l);case"h":return Pt(x);case"mm":return Pt(l);case"m":return Pt(x);case"q":return Pt(x);case"qq":return Pt(l);case"s":return Pt(x);case"ss":return Pt(l);case"S":return Pt(z);case"SSS":return Pt(c);case"u":return Md(E);case"uu":return Md(x);case"uuu":return Pt(n);case"a":return Ii(t.meridiems(),0);case"kkkk":return Pt(g);case"kk":return Pt(D,yh);case"W":return Pt(x);case"WW":return Pt(l);case"E":case"c":return Pt(n);case"EEE":return Ii(t.weekdays("short",!1),1);case"EEEE":return Ii(t.weekdays("long",!1),1);case"ccc":return Ii(t.weekdays("short",!0),1);case"cccc":return Ii(t.weekdays("long",!0),1);case"Z":case"ZZ":return X2(new RegExp(`([+-]${x.source})(?::(${l.source}))?`),2);case"ZZZ":return X2(new RegExp(`([+-]${x.source})(${l.source})?`),2);case"z":return Md(/[a-z_+-/]{1,256}?/i);case" ":return Md(/[^\S\n\r]/);default:return R(ge)}})(o)||{invalidReason:yx};return pe.token=o,pe}const Lx={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Sx(o,t,n){const{type:l,value:c}=o;if(l==="literal"){const z=/^\s+$/.test(c);return{literal:!z,val:z?" ":c}}const g=t[l];let h=l;l==="hour"&&(t.hour12!=null?h=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?h="hour12":h="hour24":h=n.hour12?"hour12":"hour24");let x=Lx[h];if(typeof x=="object"&&(x=x[g]),x)return{literal:!1,val:x}}function _x(o){return[`^${o.map(n=>n.regex).reduce((n,l)=>`${n}(${l.source})`,"")}$`,o]}function Mx(o,t,n){const l=o.match(t);if(l){const c={};let g=1;for(const h in n)if(pu(n,h)){const x=n[h],z=x.groups?x.groups+1:1;!x.literal&&x.token&&(c[x.token.val[0]]=x.deser(l.slice(g,g+z))),g+=z}return[l,c]}else return[l,{}]}function Tx(o){const t=g=>{switch(g){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,l;return _t(o.z)||(n=Xo.create(o.z)),_t(o.Z)||(n||(n=new mn(o.Z)),l=o.Z),_t(o.q)||(o.M=(o.q-1)*3+1),_t(o.h)||(o.h<12&&o.a===1?o.h+=12:o.h===12&&o.a===0&&(o.h=0)),o.G===0&&o.y&&(o.y=-o.y),_t(o.u)||(o.S=jh(o.u)),[Object.keys(o).reduce((g,h)=>{const x=t(h);return x&&(g[x]=o[h]),g},{}),n,l]}let Yf=null;function Ox(){return Yf||(Yf=at.fromMillis(1555555555555)),Yf}function kx(o,t){if(o.literal)return o;const n=sn.macroTokenToFormatOpts(o.val),l=X4(n,t);return l==null||l.includes(void 0)?o:l}function K4(o,t){return Array.prototype.concat(...o.map(n=>kx(n,t)))}function Y4(o,t,n){const l=K4(sn.parseFormat(n),o),c=l.map(h=>zx(h,o)),g=c.find(h=>h.invalidReason);if(g)return{input:t,tokens:l,invalidReason:g.invalidReason};{const[h,x]=_x(c),z=RegExp(h,"i"),[S,E]=Mx(t,z,x),[D,B,R]=E?Tx(E):[null,null,void 0];if(pu(E,"a")&&pu(E,"H"))throw new Sc("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:l,regex:z,rawMatches:S,matches:E,result:D,zone:B,specificOffset:R}}}function Ex(o,t,n){const{result:l,zone:c,specificOffset:g,invalidReason:h}=Y4(o,t,n);return[l,c,g,h]}function X4(o,t){if(!o)return null;const l=sn.create(t,o).dtFormatter(Ox()),c=l.formatToParts(),g=l.resolvedOptions();return c.map(h=>Sx(h,o,g))}const J4=[0,31,59,90,120,151,181,212,243,273,304,334],Q4=[0,31,60,91,121,152,182,213,244,274,305,335];function fi(o,t){return new $i("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${o}, which is invalid`)}function e6(o,t,n){const l=new Date(Date.UTC(o,t-1,n));o<100&&o>=0&&l.setUTCFullYear(l.getUTCFullYear()-1900);const c=l.getUTCDay();return c===0?7:c}function t6(o,t,n){return n+(jc(o)?Q4:J4)[t-1]}function r6(o,t){const n=jc(o)?Q4:J4,l=n.findIndex(g=>g<t),c=t-n[l];return{month:l+1,day:c}}function Ch(o){const{year:t,month:n,day:l}=o,c=t6(t,n,l),g=e6(t,n,l);let h=Math.floor((c-g+10)/7),x;return h<1?(x=t-1,h=t1(x)):h>t1(t)?(x=t+1,h=1):x=t,{weekYear:x,weekNumber:h,weekday:g,...w1(o)}}function J2(o){const{weekYear:t,weekNumber:n,weekday:l}=o,c=e6(t,1,4),g=kc(t);let h=n*7+l-c-3,x;h<1?(x=t-1,h+=kc(x)):h>g?(x=t+1,h-=kc(t)):x=t;const{month:z,day:S}=r6(x,h);return{year:x,month:z,day:S,...w1(o)}}function Xf(o){const{year:t,month:n,day:l}=o,c=t6(t,n,l);return{year:t,ordinal:c,...w1(o)}}function Q2(o){const{year:t,ordinal:n}=o,{month:l,day:c}=r6(t,n);return{year:t,month:l,day:c,...w1(o)}}function Ix(o){const t=m1(o.weekYear),n=Ko(o.weekNumber,1,t1(o.weekYear)),l=Ko(o.weekday,1,7);return t?n?l?!1:fi("weekday",o.weekday):fi("week",o.week):fi("weekYear",o.weekYear)}function Ax(o){const t=m1(o.year),n=Ko(o.ordinal,1,kc(o.year));return t?n?!1:fi("ordinal",o.ordinal):fi("year",o.year)}function n6(o){const t=m1(o.year),n=Ko(o.month,1,12),l=Ko(o.day,1,e1(o.year,o.month));return t?n?l?!1:fi("day",o.day):fi("month",o.month):fi("year",o.year)}function i6(o){const{hour:t,minute:n,second:l,millisecond:c}=o,g=Ko(t,0,23)||t===24&&n===0&&l===0&&c===0,h=Ko(n,0,59),x=Ko(l,0,59),z=Ko(c,0,999);return g?h?x?z?!1:fi("millisecond",c):fi("second",l):fi("minute",n):fi("hour",t)}const Jf="Invalid DateTime",eg=864e13;function Td(o){return new $i("unsupported zone",`the zone "${o.name}" is not supported`)}function Qf(o){return o.weekData===null&&(o.weekData=Ch(o.c)),o.weekData}function Ds(o,t){const n={ts:o.ts,zone:o.zone,c:o.c,o:o.o,loc:o.loc,invalid:o.invalid};return new at({...n,...t,old:n})}function o6(o,t,n){let l=o-t*60*1e3;const c=n.offset(l);if(t===c)return[l,t];l-=(c-t)*60*1e3;const g=n.offset(l);return c===g?[l,c]:[o-Math.min(c,g)*60*1e3,Math.max(c,g)]}function Od(o,t){o+=t*60*1e3;const n=new Date(o);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Pd(o,t,n){return o6(y1(o),t,n)}function tg(o,t){const n=o.o,l=o.c.year+Math.trunc(t.years),c=o.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,g={...o.c,year:l,month:c,day:Math.min(o.c.day,e1(l,c))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},h=Ot.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),x=y1(g);let[z,S]=o6(x,n,o.zone);return h!==0&&(z+=h,S=o.zone.offset(z)),{ts:z,o:S}}function xc(o,t,n,l,c,g){const{setZone:h,zone:x}=n;if(o&&Object.keys(o).length!==0||t){const z=t||x,S=at.fromObject(o,{...n,zone:z,specificOffset:g});return h?S:S.setZone(x)}else return at.invalid(new $i("unparsable",`the input "${c}" can't be parsed as ${l}`))}function kd(o,t,n=!0){return o.isValid?sn.create(Kt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(o,t):null}function eh(o,t){const n=o.c.year>9999||o.c.year<0;let l="";return n&&o.c.year>=0&&(l+="+"),l+=xr(o.c.year,n?6:4),t?(l+="-",l+=xr(o.c.month),l+="-",l+=xr(o.c.day)):(l+=xr(o.c.month),l+=xr(o.c.day)),l}function rg(o,t,n,l,c,g){let h=xr(o.c.hour);return t?(h+=":",h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=":")):h+=xr(o.c.minute),(o.c.millisecond!==0||o.c.second!==0||!n)&&(h+=xr(o.c.second),(o.c.millisecond!==0||!l)&&(h+=".",h+=xr(o.c.millisecond,3))),c&&(o.isOffsetFixed&&o.offset===0&&!g?h+="Z":o.o<0?(h+="-",h+=xr(Math.trunc(-o.o/60)),h+=":",h+=xr(Math.trunc(-o.o%60))):(h+="+",h+=xr(Math.trunc(o.o/60)),h+=":",h+=xr(Math.trunc(o.o%60)))),g&&(h+="["+o.zone.ianaName+"]"),h}const a6={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},$x={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Px={ordinal:1,hour:0,minute:0,second:0,millisecond:0},s6=["year","month","day","hour","minute","second","millisecond"],Dx=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Nx=["year","ordinal","hour","minute","second","millisecond"];function ng(o){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[o.toLowerCase()];if(!t)throw new l4(o);return t}function ig(o,t){const n=Wa(t.zone,wr.defaultZone),l=Kt.fromObject(t),c=wr.now();let g,h;if(_t(o.year))g=c;else{for(const S of s6)_t(o[S])&&(o[S]=a6[S]);const x=n6(o)||i6(o);if(x)return at.invalid(x);const z=n.offset(c);[g,h]=Pd(o,z,n)}return new at({ts:g,zone:n,loc:l,o:h})}function og(o,t,n){const l=_t(n.round)?!0:n.round,c=(h,x)=>(h=Kh(h,l||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(h,x)),g=h=>n.calendary?t.hasSame(o,h)?0:t.startOf(h).diff(o.startOf(h),h).get(h):t.diff(o,h).get(h);if(n.unit)return c(g(n.unit),n.unit);for(const h of n.units){const x=g(h);if(Math.abs(x)>=1)return c(x,h)}return c(o>t?-0:0,n.units[n.units.length-1])}function ag(o){let t={},n;return o.length>0&&typeof o[o.length-1]=="object"?(t=o[o.length-1],n=Array.from(o).slice(0,o.length-1)):n=Array.from(o),[t,n]}class at{constructor(t){const n=t.zone||wr.defaultZone;let l=t.invalid||(Number.isNaN(t.ts)?new $i("invalid input"):null)||(n.isValid?null:Td(n));this.ts=_t(t.ts)?wr.now():t.ts;let c=null,g=null;if(!l)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[c,g]=[t.old.c,t.old.o];else{const x=n.offset(this.ts);c=Od(this.ts,x),l=Number.isNaN(c.year)?new $i("invalid input"):null,c=l?null:c,g=l?null:x}this._zone=n,this.loc=t.loc||Kt.create(),this.invalid=l,this.weekData=null,this.c=c,this.o=g,this.isLuxonDateTime=!0}static now(){return new at({})}static local(){const[t,n]=ag(arguments),[l,c,g,h,x,z,S]=n;return ig({year:l,month:c,day:g,hour:h,minute:x,second:z,millisecond:S},t)}static utc(){const[t,n]=ag(arguments),[l,c,g,h,x,z,S]=n;return t.zone=mn.utcInstance,ig({year:l,month:c,day:g,hour:h,minute:x,second:z,millisecond:S},t)}static fromJSDate(t,n={}){const l=cw(t)?t.valueOf():NaN;if(Number.isNaN(l))return at.invalid("invalid input");const c=Wa(n.zone,wr.defaultZone);return c.isValid?new at({ts:l,zone:c,loc:Kt.fromObject(n)}):at.invalid(Td(c))}static fromMillis(t,n={}){if(Us(t))return t<-eg||t>eg?at.invalid("Timestamp out of range"):new at({ts:t,zone:Wa(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Us(t))return new at({ts:t*1e3,zone:Wa(n.zone,wr.defaultZone),loc:Kt.fromObject(n)});throw new di("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const l=Wa(n.zone,wr.defaultZone);if(!l.isValid)return at.invalid(Td(l));const c=wr.now(),g=_t(n.specificOffset)?l.offset(c):n.specificOffset,h=r1(t,ng),x=!_t(h.ordinal),z=!_t(h.year),S=!_t(h.month)||!_t(h.day),E=z||S,D=h.weekYear||h.weekNumber,B=Kt.fromObject(n);if((E||x)&&D)throw new Sc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&x)throw new Sc("Can't mix ordinal dates with month/day");const R=D||h.weekday&&!E;let J,pe,ge=Od(c,g);R?(J=Dx,pe=$x,ge=Ch(ge)):x?(J=Nx,pe=Px,ge=Xf(ge)):(J=s6,pe=a6);let Te=!1;for(const je of J){const Ye=h[je];_t(Ye)?Te?h[je]=pe[je]:h[je]=ge[je]:Te=!0}const Ie=R?Ix(h):x?Ax(h):n6(h),be=Ie||i6(h);if(be)return at.invalid(be);const ve=R?J2(h):x?Q2(h):h,[Oe,$e]=Pd(ve,g,l),De=new at({ts:Oe,zone:l,o:$e,loc:B});return h.weekday&&E&&t.weekday!==De.weekday?at.invalid("mismatched weekday",`you can't specify both a weekday of ${h.weekday} and a date of ${De.toISO()}`):De}static fromISO(t,n={}){const[l,c]=Qw(t);return xc(l,c,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[l,c]=ex(t);return xc(l,c,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[l,c]=tx(t);return xc(l,c,n,"HTTP",n)}static fromFormat(t,n,l={}){if(_t(t)||_t(n))throw new di("fromFormat requires an input string and a format");const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0}),[x,z,S,E]=Ex(h,t,n);return E?at.invalid(E):xc(x,z,l,`format ${n}`,t,S)}static fromString(t,n,l={}){return at.fromFormat(t,n,l)}static fromSQL(t,n={}){const[l,c]=lx(t);return xc(l,c,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new di("need to specify a reason the DateTime is invalid");const l=t instanceof $i?t:new $i(t,n);if(wr.throwOnInvalid)throw new BC(l);return new at({invalid:l})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const l=X4(t,Kt.fromObject(n));return l?l.map(c=>c?c.val:null).join(""):null}static expandFormat(t,n={}){return K4(sn.parseFormat(t),Kt.fromObject(n)).map(c=>c.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Qf(this).weekYear:NaN}get weekNumber(){return this.isValid?Qf(this).weekNumber:NaN}get weekday(){return this.isValid?Qf(this).weekday:NaN}get ordinal(){return this.isValid?Xf(this.c).ordinal:NaN}get monthShort(){return this.isValid?_d.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?_d.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?_d.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?_d.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,l=y1(this.c),c=this.zone.offset(l-t),g=this.zone.offset(l+t),h=this.zone.offset(l-c*n),x=this.zone.offset(l-g*n);if(h===x)return[this];const z=l-h*n,S=l-x*n,E=Od(z,h),D=Od(S,x);return E.hour===D.hour&&E.minute===D.minute&&E.second===D.second&&E.millisecond===D.millisecond?[Ds(this,{ts:z}),Ds(this,{ts:S})]:[this]}get isInLeapYear(){return jc(this.year)}get daysInMonth(){return e1(this.year,this.month)}get daysInYear(){return this.isValid?kc(this.year):NaN}get weeksInWeekYear(){return this.isValid?t1(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:l,calendar:c}=sn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:l,outputCalendar:c}}toUTC(t=0,n={}){return this.setZone(mn.instance(t),n)}toLocal(){return this.setZone(wr.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:l=!1}={}){if(t=Wa(t,wr.defaultZone),t.equals(this.zone))return this;if(t.isValid){let c=this.ts;if(n||l){const g=t.offset(this.ts),h=this.toObject();[c]=Pd(h,g,t)}return Ds(this,{ts:c,zone:t})}else return at.invalid(Td(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:l}={}){const c=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:l});return Ds(this,{loc:c})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=r1(t,ng),l=!_t(n.weekYear)||!_t(n.weekNumber)||!_t(n.weekday),c=!_t(n.ordinal),g=!_t(n.year),h=!_t(n.month)||!_t(n.day),x=g||h,z=n.weekYear||n.weekNumber;if((x||c)&&z)throw new Sc("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new Sc("Can't mix ordinal dates with month/day");let S;l?S=J2({...Ch(this.c),...n}):_t(n.ordinal)?(S={...this.toObject(),...n},_t(n.day)&&(S.day=Math.min(e1(S.year,S.month),S.day))):S=Q2({...Xf(this.c),...n});const[E,D]=Pd(S,this.o,this.zone);return Ds(this,{ts:E,o:D})}plus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t);return Ds(this,tg(this,n))}minus(t){if(!this.isValid)return this;const n=Ot.fromDurationLike(t).negate();return Ds(this,tg(this,n))}startOf(t){if(!this.isValid)return this;const n={},l=Ot.normalizeUnit(t);switch(l){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(l==="weeks"&&(n.weekday=1),l==="quarters"){const c=Math.ceil(this.month/3);n.month=(c-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?sn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Jf}toLocaleString(t=Qd,n={}){return this.isValid?sn.create(this.loc.clone(n),t).formatDateTime(this):Jf}toLocaleParts(t={}){return this.isValid?sn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:l=!1,includeOffset:c=!0,extendedZone:g=!1}={}){if(!this.isValid)return null;const h=t==="extended";let x=eh(this,h);return x+="T",x+=rg(this,h,n,l,c,g),x}toISODate({format:t="extended"}={}){return this.isValid?eh(this,t==="extended"):null}toISOWeekDate(){return kd(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:l=!0,includePrefix:c=!1,extendedZone:g=!1,format:h="extended"}={}){return this.isValid?(c?"T":"")+rg(this,h==="extended",n,t,l,g):null}toRFC2822(){return kd(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return kd(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?eh(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:l=!0}={}){let c="HH:mm:ss.SSS";return(n||t)&&(l&&(c+=" "),n?c+="z":t&&(c+="ZZ")),kd(this,c,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Jf}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",l={}){if(!this.isValid||!t.isValid)return Ot.invalid("created by diffing an invalid DateTime");const c={locale:this.locale,numberingSystem:this.numberingSystem,...l},g=dw(n).map(Ot.normalizeUnit),h=t.valueOf()>this.valueOf(),x=h?this:t,z=h?t:this,S=vx(x,z,g,c);return h?S.negate():S}diffNow(t="milliseconds",n={}){return this.diff(at.now(),t,n)}until(t){return this.isValid?ir.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const l=t.valueOf(),c=this.setZone(t.zone,{keepLocalTime:!0});return c.startOf(n)<=l&&l<=c.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||at.fromObject({},{zone:this.zone}),l=t.padding?this<n?-t.padding:t.padding:0;let c=["years","months","days","hours","minutes","seconds"],g=t.unit;return Array.isArray(t.unit)&&(c=t.unit,g=void 0),og(n,this.plus(l),{...t,numeric:"always",units:c,unit:g})}toRelativeCalendar(t={}){return this.isValid?og(t.base||at.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(at.isDateTime))throw new di("min requires all arguments be DateTimes");return V2(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(at.isDateTime))throw new di("max requires all arguments be DateTimes");return V2(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,l={}){const{locale:c=null,numberingSystem:g=null}=l,h=Kt.fromOpts({locale:c,numberingSystem:g,defaultToEN:!0});return Y4(h,t,n)}static fromStringExplain(t,n,l={}){return at.fromFormatExplain(t,n,l)}static get DATE_SHORT(){return Qd}static get DATE_MED(){return u4}static get DATE_MED_WITH_WEEKDAY(){return VC}static get DATE_FULL(){return c4}static get DATE_HUGE(){return d4}static get TIME_SIMPLE(){return f4}static get TIME_WITH_SECONDS(){return h4}static get TIME_WITH_SHORT_OFFSET(){return p4}static get TIME_WITH_LONG_OFFSET(){return g4}static get TIME_24_SIMPLE(){return v4}static get TIME_24_WITH_SECONDS(){return b4}static get TIME_24_WITH_SHORT_OFFSET(){return m4}static get TIME_24_WITH_LONG_OFFSET(){return y4}static get DATETIME_SHORT(){return C4}static get DATETIME_SHORT_WITH_SECONDS(){return w4}static get DATETIME_MED(){return x4}static get DATETIME_MED_WITH_SECONDS(){return z4}static get DATETIME_MED_WITH_WEEKDAY(){return ZC}static get DATETIME_FULL(){return L4}static get DATETIME_FULL_WITH_SECONDS(){return S4}static get DATETIME_HUGE(){return _4}static get DATETIME_HUGE_WITH_SECONDS(){return M4}}function zc(o){if(at.isDateTime(o))return o;if(o&&o.valueOf&&Us(o.valueOf()))return at.fromJSDate(o);if(o&&typeof o=="object")return at.fromObject(o);throw new di(`Unknown datetime argument: ${o}, of type ${typeof o}`)}const Rx={Africa:"en-za",America:"en-us",US:"en-us",Australia:"en-au",Europe:"en-gb",Pacific:"en-nz"},Fx=o=>at.local().setZone(o).isValid,wh=o=>o.hour<12,sg=o=>!wh(o),Hx=(o,t)=>wh(o)&&wh(t)||sg(o)&&sg(t),lg=(o,t)=>{var c;const n=t&&Fx(t)?t:"utc",l=(c=Rx[n.split("/")[0]])!=null?c:"en-us";return o.setZone(n).setLocale(l)},ug=o=>Bx(l6(o)),Bx=o=>o.replace(/Sept/,"Sep"),l6=o=>o.replace(/(AM|PM)/,t=>t.toLowerCase());var Wx=Object.defineProperty,Ux=Object.getOwnPropertyDescriptor,qa=(o,t,n,l)=>{for(var c=l>1?void 0:l?Ux(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Wx(t,n,c),c};const u6=Le("input-time"),c6="h:mma",d6=/^([1-9]|1[0-9]|2[0-3]):([0-5])([0-9])?(am?|pm?)?$/,f6=/^(1[3-9]|2[0-3]).*/,h6=/^(\d\d?)(am?|pm?)/,Vx=["UTC","AEST"],p6=(o,t)=>({label:`${o}${t?` (${t})`:""}`,value:o}),Zx=(o,t)=>{const l=Math.ceil(1440/o),c=at.local().startOf("day");return Array(l).fill(null).map((g,h)=>{const x=c.plus({minutes:o*h}),z=l6(x.toFormat(c6));return p6(z,t)})},Gx=(o,t)=>{const n=o.trim(),l=o.match(d6);if(!n||!l)return[];const[,c,g,h]=l,x=parseInt(c,10),z=x>12?`${x-12}`:`${x}`,S=`${g}${h||0}`,E=`${z}:${S}`;return["am","pm"].map(D=>p6(`${E}${D}`,t))},qx=(o,{value:t})=>{const n=o.match(f6);if(!n||!t)return!1;const[,l]=n,c=`${parseInt(l,10)-12}`,g=o.substring(l.length).replace(":",""),h=`${c}:${g}`;return t.startsWith(h)&&t.endsWith("pm")},jx=(o,{value:t})=>{const n=o.match(h6);if(!n)return!1;const[,l,c]=n;return!!(t!=null&&t.replace(":00","").startsWith(`${l}${c}`))},Kx=(...o)=>jx(...o)||qx(...o);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=Zx(this.increment,this.suffix)}resetFreeformOptions(){this.freeformOptions=[]}handleCloseDropdown(){super.handleCloseDropdown(),this.resetFreeformOptions()}getItems(){return[...this.freeformOptions,...super.getItems()]}handleValueChange(){var t;this.valueLabel=this.value&&this.value!==this.placeholder?(t=this.getItems().find(({value:n})=>n===this.value))==null?void 0:t.label:"",!this.isFreeform&&this.resetSearch()}isCustomQueryMatch(t){return this.query?Kx(this.query,t):!1}handleNoResults(){if(this.hasQueryResults)return null;if(!this.isFreeform)return this.renderSearchMessage();this.freeformOptions=Gx(this.query,this.suffix),this.hasResults=!!this.freeformOptions.length}renderFreeformOptions(){return this.isFreeform?this.hasQueryResults?this.renderOptionsData(this.freeformOptions):this.renderSearchMessage():null}renderDropdownContent(){return q`
|
|
3368
3369
|
${this.handleNoResults()} ${this.renderOptionsData()}
|
|
3369
3370
|
${this.renderFreeformOptions()}
|
|
3370
|
-
`}};qa([H({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);qa([H({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);qa([H({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);qa([H({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);qa([H({type:String})],exports.InputTime.prototype,"placeholder",2);qa([H({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);qa([Be()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=qa([ee(
|
|
3371
|
+
`}};qa([H({attribute:"can-search",type:Boolean,reflect:!0})],exports.InputTime.prototype,"canSearch",2);qa([H({type:Number,reflect:!0})],exports.InputTime.prototype,"increment",2);qa([H({type:String,reflect:!0})],exports.InputTime.prototype,"suffix",2);qa([H({type:Boolean,attribute:"is-freeform",reflect:!0})],exports.InputTime.prototype,"isFreeform",2);qa([H({type:String})],exports.InputTime.prototype,"placeholder",2);qa([H({type:String,reflect:!0,attribute:"trailing-icon"})],exports.InputTime.prototype,"trailingIcon",2);qa([Be()],exports.InputTime.prototype,"freeformOptions",2);exports.InputTime=qa([ee(u6)],exports.InputTime);var Yx=Object.defineProperty,Xx=Object.getOwnPropertyDescriptor,ep=(o,t,n,l)=>{for(var c=l>1?void 0:l?Xx(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Yx(t,n,c),c};const g6=Le("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 t=`size-${(n=this.size)!=null?n:"base"}`;switch(this.getLevel()){case 1:return q`<h1 class=${t}><slot></slot></h1>`;case 2:return q`<h2 class=${t}><slot></slot></h2>`;case 3:return q`<h3 class=${t}><slot></slot></h3>`;case 4:return q`<h4 class=${t}><slot></slot></h4>`;case 5:return q`<h5 class=${t}><slot></slot></h5>`;case 6:return q`<h6 class=${t}><slot></slot></h6>`}}};exports.Heading.styles=fe`
|
|
3371
3372
|
h1,
|
|
3372
3373
|
h2,
|
|
3373
3374
|
h3,
|
|
@@ -3412,7 +3413,7 @@ ${this.value}</textarea
|
|
|
3412
3413
|
:host {
|
|
3413
3414
|
display: block;
|
|
3414
3415
|
}
|
|
3415
|
-
`;
|
|
3416
|
+
`;ep([H({type:String})],exports.Heading.prototype,"size",2);ep([H({type:Number})],exports.Heading.prototype,"level",2);exports.Heading=ep([ee(g6)],exports.Heading);const v6=Le("inline-edit-field"),tp=Le("inline-edit-group"),b6=Le("inline-edit-controls"),m6=["edit","saving","error"],Jx=["read","saved",...m6];class y6 extends CustomEvent{constructor(t={}){super("brz-inline-edit-controls-cancel",{bubbles:!0,composed:!0,...t})}}class C6 extends CustomEvent{constructor(t={}){super("brz-inline-edit-controls-save",{bubbles:!0,composed:!0,...t})}}class w6 extends CustomEvent{constructor(t={}){super("brz-inline-edit-field-broadcast",{bubbles:!0,composed:!0,...t})}}class x6 extends CustomEvent{constructor(t={}){super("brz-inline-edit-field-mode-change",{bubbles:!0,composed:!0,...t})}}class z6 extends CustomEvent{constructor(t={}){super("brz-inline-edit-group-mode-change",{bubbles:!0,composed:!0,...t})}}const Qx=fe`
|
|
3416
3417
|
:host {
|
|
3417
3418
|
display: block;
|
|
3418
3419
|
}
|
|
@@ -3502,7 +3503,7 @@ ${this.value}</textarea
|
|
|
3502
3503
|
|
|
3503
3504
|
margin-top: var(--brz-inline-edit-controls-spacing);
|
|
3504
3505
|
}
|
|
3505
|
-
`,
|
|
3506
|
+
`,ez=fe`
|
|
3506
3507
|
.inline-edit-group {
|
|
3507
3508
|
display: inline-flex;
|
|
3508
3509
|
flex-direction: column;
|
|
@@ -3513,7 +3514,7 @@ ${this.value}</textarea
|
|
|
3513
3514
|
brz-inline-edit-controls {
|
|
3514
3515
|
margin-top: var(--brz-inline-edit-controls-spacing);
|
|
3515
3516
|
}
|
|
3516
|
-
`,
|
|
3517
|
+
`,tz=fe`
|
|
3517
3518
|
:host {
|
|
3518
3519
|
--brz-inline-edit-controls-spacing: var(--brz-spacing-4);
|
|
3519
3520
|
|
|
@@ -3521,7 +3522,7 @@ ${this.value}</textarea
|
|
|
3521
3522
|
flex-direction: column;
|
|
3522
3523
|
row-gap: var(--brz-inline-edit-controls-spacing);
|
|
3523
3524
|
}
|
|
3524
|
-
`;var
|
|
3525
|
+
`;var rz=Object.defineProperty,nz=Object.getOwnPropertyDescriptor,L6=(o,t,n,l)=>{for(var c=l>1?void 0:l?nz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&rz(t,n,c),c};exports.InlineEditControls=class extends Ue{constructor(){super(...arguments),this.mode="edit"}handleCancelClick(){this.dispatchEvent(new y6)}handleSaveClick(){this.dispatchEvent(new C6)}render(){return q`
|
|
3525
3526
|
<brz-split-row>
|
|
3526
3527
|
<brz-button-group slot="right">
|
|
3527
3528
|
${["edit","error"].includes(this.mode)?q`
|
|
@@ -3546,7 +3547,7 @@ ${this.value}</textarea
|
|
|
3546
3547
|
</brz-split-row>
|
|
3547
3548
|
|
|
3548
3549
|
${this.mode==="error"?q` <slot name="error"></slot> `:null}
|
|
3549
|
-
`}};exports.InlineEditControls.styles=[
|
|
3550
|
+
`}};exports.InlineEditControls.styles=[tz];L6([H()],exports.InlineEditControls.prototype,"mode",2);exports.InlineEditControls=L6([ee(b6)],exports.InlineEditControls);var iz=Object.defineProperty,oz=Object.getOwnPropertyDescriptor,rp=(o,t,n,l)=>{for(var c=l>1?void 0:l?oz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&iz(t,n,c),c};class Xc extends Ue{constructor(){super(...arguments),this.locked=!1,this.mode="read"}setEditMode(){this.locked||(this.mode="edit")}setReadMode(){this.mode="read"}setSavingMode(){this.locked||(this.mode="saving")}setErrorMode(){this.locked||(this.mode="error")}setSavedMode(){this.locked||(this.mode="saved",setTimeout(()=>this.setReadMode(),5e3))}setMode(t){switch(t){case"edit":return this.setEditMode();case"saving":return this.setSavingMode();case"error":return this.setErrorMode();case"saved":return this.setSavedMode();case"read":default:return this.setReadMode()}}async handleSaveClick(){this.setMode("saving");try{await this.handleSave(),this.setMode("saved")}catch(t){throw this.setMode("error"),t}}handleCancelClick(){this.setMode("read")}}rp([H({type:Boolean,reflect:!0})],Xc.prototype,"locked",2);rp([H({type:Function,attribute:!1})],Xc.prototype,"save",2);rp([Be()],Xc.prototype,"mode",2);var az=Object.defineProperty,sz=Object.getOwnPropertyDescriptor,np=(o,t,n,l)=>{for(var c=l>1?void 0:l?sz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&az(t,n,c),c};exports.InlineEditGroup=class extends Xc{constructor(){super(...arguments),this.controller=!1,this.fields=[]}handleInlineEditFieldViewModeClick(){this.controller&&this.setMode("edit")}async handleSave(){var t;await((t=this.save)==null?void 0:t.call(this))}registerField(t){this.fields.push(t)}updated(t){super.updated(t),this.locked&&this.fields.forEach(n=>n.locked=!0),this.controller&&this.fields.forEach(n=>{n.controlled=!0,n.setMode(this.mode)}),t.has("mode")&&this.dispatchEvent(new z6({detail:{currentMode:this.mode,previousMode:t.get("mode"),fields:this.fields,group:this}}))}get defaultSlot(){return q`
|
|
3550
3551
|
<slot
|
|
3551
3552
|
@brz-inline-edit-field-broadcast=${this.handleInlineEditFieldViewModeClick}
|
|
3552
3553
|
>
|
|
@@ -3566,7 +3567,7 @@ ${this.value}</textarea
|
|
|
3566
3567
|
</slot>
|
|
3567
3568
|
`:null}
|
|
3568
3569
|
</dl>
|
|
3569
|
-
`}};exports.InlineEditGroup.styles=[
|
|
3570
|
+
`}};exports.InlineEditGroup.styles=[ez];np([H({type:Boolean})],exports.InlineEditGroup.prototype,"controller",2);np([Be()],exports.InlineEditGroup.prototype,"fields",2);exports.InlineEditGroup=np([ee(tp)],exports.InlineEditGroup);var lz=Object.defineProperty,uz=Object.getOwnPropertyDescriptor,Bi=(o,t,n,l)=>{for(var c=l>1?void 0:l?uz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&lz(t,n,c),c};const cz=o=>o instanceof zr&&!!o.options.length;exports.InlineEditField=class extends Xc{constructor(){super(...arguments),this.controlled=!1,this.truncate=!1,this.labelPosition="top",this.size="medium",this.options=[],this.hasLabel=!1,this.isValueOverflowing=!1}connectedCallback(){var t;super.connectedCallback(),(t=this.group)==null||t.registerField(this)}updated(t){super.updated(t),this.setStateFromInputElement(),this.updateComplete.then(()=>this.setOverflowingState()),this.hasLabel=!!this.label,this.inputElement.disabled=this.mode==="saving",t.has("mode")&&this.dispatchEvent(new x6({detail:{element:this,currentMode:this.mode,previousMode:t.get("mode"),group:this.group}}))}async setOverflowingState(){await this.updateComplete,this.isValueOverflowing=!!this.valueElement&&this.valueElement.clientHeight>=40}setStateFromInputElement(){this.labelPosition=this.fieldElement.labelPosition,this.size=this.fieldElement.size,this.value=this.inputElement.value,cz(this.inputElement)&&(this.options=this.inputElement.options),(this.inputElement instanceof zr||this.inputElement instanceof exports.InputRadio)&&!this.options.length&&this.setOptionsFromChildren(this.inputElement);const t=this.slottedInputLabel;if(!t){this.label=this.generateFieldLabelSlot();return}this.label=t}setOptionsFromChildren(t){const n=[...t.children];this.options=n.filter(l=>!!l.value).map(l=>{var c;return{value:l.value,label:((c=l.textContent)==null?void 0:c.trim())||this.value}})}async handleValueClick(){this.locked||(this.emitBroadcastEvent(),this.controlled||this.setMode("edit"),await this.updateComplete,this.inputElement.focus())}get fieldElement(){const t=[...this.children].find(n=>n.slot==="");if(!t)throw new Error("No element has been assigned to the default slot.");if(!(t instanceof exports.LabeledInput)&&!(t instanceof exports.RecordField))throw new Error("Expected a Breeze Input, LabeledInput or RecordField in the default slot.");return t}get inputElement(){if(this.fieldElement instanceof exports.RecordField){const t=[...this.fieldElement.children].find(n=>n.slot==="");if(!t)throw new Error("No element has been assigned to the RecordField default slot.");if(!(t instanceof Yn))throw new Error("Expected a Breeze Input in the RecordField default slot.");return t}return this.fieldElement}generateFieldLabelSlot(){var t,n;if(this.fieldElement instanceof exports.RecordField&&this.inputElement instanceof exports.InputCheckbox){const l=document.createElement("brz-record-field-label");l.slot="label";const c=document.createElement("span");return c.textContent=((n=(t=this.inputElement.firstChild)==null?void 0:t.textContent)==null?void 0:n.trim())||"",l.appendChild(c),this.fieldElement.appendChild(l),l}}get friendlyValue(){var t;if(this.options.length){if(Array.isArray(this.value)){const l=this.value.map(g=>{var h;return(h=this.options.find(({value:x})=>x===g))==null?void 0:h.label}).filter(g=>!!g);return(l.length===this.value.length?l:this.value).map(g=>this.getSelectValueTemplate(g))}const n=(t=this.options.find(({value:l})=>l===this.value))==null?void 0:t.label;return this.inputElement instanceof exports.InputSelect?this.getSelectValueTemplate(n||this.value):n||this.value}return this.inputElement instanceof exports.InputCheckbox?this.getCheckboxValueTemplate(this.inputElement):this.value}getSelectValueTemplate(t){return q`
|
|
3570
3571
|
<brz-lozenge theme="subtle" color="sapphire" size="small">
|
|
3571
3572
|
${t}
|
|
3572
3573
|
</brz-lozenge>
|
|
@@ -3598,10 +3599,10 @@ ${this.value}</textarea
|
|
|
3598
3599
|
icon-size="14"
|
|
3599
3600
|
trailing-icon=${this.locked?"locked":"edit"}
|
|
3600
3601
|
@brz-button-click=${this.handleValueClick}
|
|
3601
|
-
class=${
|
|
3602
|
+
class=${kn({button:!0,offset:this.labelPosition==="top",overflowing:this.isValueOverflowing})}
|
|
3602
3603
|
>
|
|
3603
3604
|
<span
|
|
3604
|
-
class=${
|
|
3605
|
+
class=${kn({value:!0,truncate:this.truncate,overflowing:this.isValueOverflowing})}
|
|
3605
3606
|
>
|
|
3606
3607
|
<slot name="read-mode">${this.friendlyValue}</slot>
|
|
3607
3608
|
</span>
|
|
@@ -3611,7 +3612,7 @@ ${this.value}</textarea
|
|
|
3611
3612
|
</brz-record-field>
|
|
3612
3613
|
`}get editModeTemplate(){return q`
|
|
3613
3614
|
<div
|
|
3614
|
-
class=${
|
|
3615
|
+
class=${kn({"edit-mode":!0,block:["full","auto"].includes(this.size)})}
|
|
3615
3616
|
>
|
|
3616
3617
|
<slot></slot>
|
|
3617
3618
|
|
|
@@ -3627,7 +3628,7 @@ ${this.value}</textarea
|
|
|
3627
3628
|
</slot>
|
|
3628
3629
|
`}
|
|
3629
3630
|
</div>
|
|
3630
|
-
`}get group(){return this.closest(
|
|
3631
|
+
`}get group(){return this.closest(tp)}emitBroadcastEvent(){this.dispatchEvent(new w6({detail:{element:this,currentMode:this.mode}}))}render(){switch(this.mode){case"edit":case"saving":case"error":return this.editModeTemplate;case"read":case"saved":default:return this.readModeTemplate}}};exports.InlineEditField.styles=[Qx];Bi([H({type:Boolean})],exports.InlineEditField.prototype,"controlled",2);Bi([H({type:Boolean})],exports.InlineEditField.prototype,"truncate",2);Bi([Be()],exports.InlineEditField.prototype,"labelPosition",2);Bi([Be()],exports.InlineEditField.prototype,"size",2);Bi([Be()],exports.InlineEditField.prototype,"value",2);Bi([Be()],exports.InlineEditField.prototype,"options",2);Bi([Be()],exports.InlineEditField.prototype,"label",2);Bi([Be()],exports.InlineEditField.prototype,"hasLabel",2);Bi([Be()],exports.InlineEditField.prototype,"isValueOverflowing",2);Bi([Ri(".value")],exports.InlineEditField.prototype,"valueElement",2);exports.InlineEditField=Bi([ee(v6)],exports.InlineEditField);var dz=Object.defineProperty,fz=Object.getOwnPropertyDescriptor,Jc=(o,t,n,l)=>{for(var c=l>1?void 0:l?fz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&dz(t,n,c),c};const S6=Le("side-navigation-item"),hz=fe`
|
|
3631
3632
|
:host li {
|
|
3632
3633
|
list-style: none;
|
|
3633
3634
|
padding: var(--brz-spacing-2) 0;
|
|
@@ -3656,14 +3657,14 @@ ${this.value}</textarea
|
|
|
3656
3657
|
`;exports.SideNavigationItem=class extends Ue{render(){return q`
|
|
3657
3658
|
<li>
|
|
3658
3659
|
<a
|
|
3659
|
-
href="${
|
|
3660
|
-
target="${
|
|
3661
|
-
rel="${
|
|
3660
|
+
href="${kt(this.href)}"
|
|
3661
|
+
target="${kt(this.target)}"
|
|
3662
|
+
rel="${kt(this.rel)}"
|
|
3662
3663
|
>
|
|
3663
3664
|
<slot></slot>
|
|
3664
3665
|
</a>
|
|
3665
3666
|
</li>
|
|
3666
|
-
`}};exports.SideNavigationItem.styles=[
|
|
3667
|
+
`}};exports.SideNavigationItem.styles=[hz];Jc([H({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"target",2);Jc([H({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"rel",2);Jc([H({type:String,reflect:!0})],exports.SideNavigationItem.prototype,"href",2);Jc([H({type:Boolean,reflect:!0})],exports.SideNavigationItem.prototype,"active",2);exports.SideNavigationItem=Jc([ee(S6)],exports.SideNavigationItem);var pz=Object.defineProperty,gz=Object.getOwnPropertyDescriptor,vz=(o,t,n,l)=>{for(var c=l>1?void 0:l?gz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&pz(t,n,c),c};const _6=Le("side-navigation"),bz=fe`
|
|
3667
3668
|
:host {
|
|
3668
3669
|
display: block;
|
|
3669
3670
|
height: 100%;
|
|
@@ -3677,15 +3678,15 @@ ${this.value}</textarea
|
|
|
3677
3678
|
}
|
|
3678
3679
|
`;exports.SideNavigation=class extends Ue{render(){return q`<ul>
|
|
3679
3680
|
<slot></slot>
|
|
3680
|
-
</ul>`}};exports.SideNavigation.styles=[
|
|
3681
|
+
</ul>`}};exports.SideNavigation.styles=[bz];exports.SideNavigation=vz([ee(_6)],exports.SideNavigation);var mz=Object.defineProperty,yz=Object.getOwnPropertyDescriptor,M6=(o,t,n,l)=>{for(var c=l>1?void 0:l?yz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&mz(t,n,c),c};const T6=Le("record-row"),O6=Le("record-row-label");exports.RecordRow=class extends exports.RecordField{connectedCallback(){super.connectedCallback(),this.labelPosition="side"}};exports.RecordRow.styles=[...exports.RecordField.styles,fe`
|
|
3681
3682
|
:host(:nth-of-type(n + 2)) {
|
|
3682
3683
|
margin-top: var(--brz-spacing-4);
|
|
3683
3684
|
}
|
|
3684
|
-
`];exports.RecordRow=
|
|
3685
|
+
`];exports.RecordRow=M6([ee(T6)],exports.RecordRow);exports.RecordRowLabel=class extends exports.RecordFieldLabel{};exports.RecordRowLabel=M6([ee(O6)],exports.RecordRowLabel);var Cz=Object.defineProperty,wz=Object.getOwnPropertyDescriptor,ip=(o,t,n,l)=>{for(var c=l>1?void 0:l?wz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Cz(t,n,c),c};const k6=Le("tab-panel");exports.TabPanel=class extends Ue{constructor(){super(...arguments),this.name="",this.shown=!1}render(){return q`<div id="panel"><slot></slot></div>`}};exports.TabPanel.styles=fe`
|
|
3685
3686
|
:host(:not([shown])) #panel {
|
|
3686
3687
|
display: none;
|
|
3687
3688
|
}
|
|
3688
|
-
`;
|
|
3689
|
+
`;ip([H({type:String,reflect:!0})],exports.TabPanel.prototype,"name",2);ip([H({type:Boolean,reflect:!0})],exports.TabPanel.prototype,"shown",2);exports.TabPanel=ip([ee(k6)],exports.TabPanel);class x1 extends CustomEvent{constructor(t){super("brz-tab-selected",{bubbles:!0,detail:{name:t}})}}class E6 extends CustomEvent{constructor(t){super("brz-tab-deselected",{bubbles:!0,detail:{name:t}})}}var xz=Object.defineProperty,zz=Object.getOwnPropertyDescriptor,z1=(o,t,n,l)=>{for(var c=l>1?void 0:l?zz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&xz(t,n,c),c};const I6=Le("tab");exports.Tab=class extends Ue{constructor(){super(...arguments),this.selected=!1,this.name="",this.link=""}updated(t){const n=t.get("selected");n===!1&&this.selected===!0?this.dispatchEvent(new x1(this.name)):n===!0&&this.selected===!1&&this.dispatchEvent(new E6(this.name)),super.updated(t)}render(){return this.link?q`<a href=${this.link} id="tab"><slot></slot></a>`:q`<div
|
|
3689
3690
|
tabindex="0"
|
|
3690
3691
|
role="tab"
|
|
3691
3692
|
aria-selected=${this.selected}
|
|
@@ -3713,7 +3714,7 @@ ${this.value}</textarea
|
|
|
3713
3714
|
#tab:hover {
|
|
3714
3715
|
color: var(--brz-color-neutral-850);
|
|
3715
3716
|
}
|
|
3716
|
-
`;z1([H({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);z1([H({type:String,reflect:!0})],exports.Tab.prototype,"name",2);z1([H({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=z1([ee(
|
|
3717
|
+
`;z1([H({type:Boolean,reflect:!0})],exports.Tab.prototype,"selected",2);z1([H({type:String,reflect:!0})],exports.Tab.prototype,"name",2);z1([H({type:String,reflect:!0})],exports.Tab.prototype,"link",2);exports.Tab=z1([ee(I6)],exports.Tab);var Lz=Object.defineProperty,Sz=Object.getOwnPropertyDescriptor,L1=(o,t,n,l)=>{for(var c=l>1?void 0:l?Sz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Lz(t,n,c),c};const A6=Le("tab-bar");exports.TabBar=class extends Ue{constructor(){super(...arguments),this.controlled=!1,this.selected="",this.tabs=[]}handleSlotChange(){var l,c,g;const t=(l=this.shadowRoot)==null?void 0:l.querySelector("slot");if(!t){this.tabs=[];return}let n=Array.from(t.assignedElements());for(;n[0]instanceof HTMLSlotElement;)n=Array.from(n[0].assignedElements());this.tabs=n.filter(h=>h instanceof exports.Tab&&!!h.name),this.controlled||(this.selected||(this.selected=(g=(c=this.tabs.find(h=>h.selected))==null?void 0:c.name)!=null?g:""),!this.selected&&this.tabs.length&&(this.selected=this.tabs[0].name,this.tabs[0].selected=!0)),this.updateSelectedTab()}handleClick(t){if(t.target instanceof exports.Tab){const{name:n}=t.target;n&&(this.controlled||(this.selected=n),this.dispatchEvent(new x1(n)))}}updated(t){t.has("selected")&&this.updateSelectedTab()}updateSelectedTab(){this.tabs.forEach(t=>{const n=t.name===this.selected;n!==t.selected&&(t.selected=n)})}render(){return q`
|
|
3717
3718
|
<brz-row id="tabbar" @click=${this.handleClick}>
|
|
3718
3719
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
3719
3720
|
</brz-row>
|
|
@@ -3735,7 +3736,7 @@ ${this.value}</textarea
|
|
|
3735
3736
|
top: 0;
|
|
3736
3737
|
z-index: 1;
|
|
3737
3738
|
}
|
|
3738
|
-
`;L1([H({type:Boolean})],exports.TabBar.prototype,"controlled",2);L1([H({type:String})],exports.TabBar.prototype,"selected",2);L1([Be()],exports.TabBar.prototype,"tabs",2);exports.TabBar=L1([ee(
|
|
3739
|
+
`;L1([H({type:Boolean})],exports.TabBar.prototype,"controlled",2);L1([H({type:String})],exports.TabBar.prototype,"selected",2);L1([Be()],exports.TabBar.prototype,"tabs",2);exports.TabBar=L1([ee(A6)],exports.TabBar);var _z=Object.defineProperty,Mz=Object.getOwnPropertyDescriptor,op=(o,t,n,l)=>{for(var c=l>1?void 0:l?Mz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&_z(t,n,c),c};const $6=Le("tabs");exports.Tabs=class extends Ue{constructor(){super(...arguments),this.selected="",this.panels=[]}handleSlotChange(){var n,l,c;const t=(n=this.shadowRoot)==null?void 0:n.querySelector("slot:not([name])");if(this.panels=[],!!t){for(const g of t.assignedElements())if(g instanceof exports.TabPanel)this.panels.push(g);else{const h=g.querySelectorAll("brz-tab-panel"),x=g.querySelectorAll("sp-tab-panel");this.panels.push(...Array.from(h.length?h:x))}this.selected||(this.selected=(c=(l=this.panels.find(g=>g.shown))==null?void 0:l.name)!=null?c:""),!this.selected&&this.panels.length&&(this.selected=this.panels[0].name),this.updatePanelVisibility()}}updatePanelVisibility(){this.panels.forEach(t=>{const n=t.name===this.selected;n!==t.shown&&(t.shown=n)})}handleTabSelected(t){this.selected=t.detail.name,this.updatePanelVisibility(),t.stopPropagation(),this.dispatchEvent(new x1(this.selected))}render(){return q`
|
|
3739
3740
|
<brz-tab-bar
|
|
3740
3741
|
controlled
|
|
3741
3742
|
selected=${this.selected}
|
|
@@ -3748,7 +3749,7 @@ ${this.value}</textarea
|
|
|
3748
3749
|
:host {
|
|
3749
3750
|
background-color: var(--brz-color-white);
|
|
3750
3751
|
}
|
|
3751
|
-
`;
|
|
3752
|
+
`;op([H({type:String,reflect:!0})],exports.Tabs.prototype,"selected",2);op([Be()],exports.Tabs.prototype,"panels",2);exports.Tabs=op([ee($6)],exports.Tabs);var Tz=Object.defineProperty,Oz=Object.getOwnPropertyDescriptor,S1=(o,t,n,l)=>{for(var c=l>1?void 0:l?Oz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Tz(t,n,c),c};const P6=Le("badge");var D6=(o=>(o[o.subtle=0]="subtle",o[o.primary=1]="primary",o[o.important=2]="important",o))(D6||{});const kz=o=>!o||typeof o!="string"?!1:/^-?\d+$/.test(o),N6=5,R6=99;exports.Badge=class extends Ue{constructor(){super(...arguments),this.limit=0,this.content=""}setDefaultLimit(){this.limit||(this.limit=typeof this.content=="number"?R6:N6)}updated(t){super.updated(t),t.has("content")&&(this.content=kz(this.content)?parseInt(this.content):this.content),this.setDefaultLimit()}generateContent(){return typeof this.content=="number"?this.content>this.limit?`${this.limit}+`:`${this.content}`:this.content.length>this.limit?`${this.content.slice(0,this.limit)}...`:this.content}render(){return q` <span>${this.generateContent()}</span> `}};exports.Badge.styles=fe`
|
|
3752
3753
|
:host {
|
|
3753
3754
|
--brz-badge-background-color: var(--brz-color-neutral-250);
|
|
3754
3755
|
--brz-badge-color: var(--brz-color-neutral-750);
|
|
@@ -3780,7 +3781,7 @@ ${this.value}</textarea
|
|
|
3780
3781
|
--brz-badge-background-color: var(--brz-color-red-600);
|
|
3781
3782
|
--brz-badge-color: var(--brz-color-white);
|
|
3782
3783
|
}
|
|
3783
|
-
`;S1([H({reflect:!0})],exports.Badge.prototype,"theme",2);S1([H({type:Number})],exports.Badge.prototype,"limit",2);S1([H({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=S1([ee(
|
|
3784
|
+
`;S1([H({reflect:!0})],exports.Badge.prototype,"theme",2);S1([H({type:Number})],exports.Badge.prototype,"limit",2);S1([H({type:String||Number})],exports.Badge.prototype,"content",2);exports.Badge=S1([ee(P6)],exports.Badge);const{range:_1}=$8;function Ez(o,t,n){return[1,null,..._1(o-t,o+t+1),null,n]}function Iz(o,t){return[1,null,..._1(o-(t-3),o+1)]}function Az(o,t){return[..._1(1,t-1),null,o]}function $z(o,t,n){return o>1+1+t*2&&o<n-1-t*2}function Pz(o,t=1,n=1){const l=5+n*2;if(o<=l)return _1(1,o+1);if($z(t,n,o))return Ez(t,n,o);if(t+(l-3)>=o)return Iz(o,l);if(t<l)return Az(o,l)}var Dz=Object.defineProperty,Nz=Object.getOwnPropertyDescriptor,Co=(o,t,n,l)=>{for(var c=l>1?void 0:l?Nz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Dz(t,n,c),c};const ap=Le("basic-pagination"),sp=Le("pagination");class F6 extends CustomEvent{constructor(t){super(`${ap}-${t}`,{bubbles:!0,composed:!0})}}exports.BasicPagination=class extends Ue{constructor(){super(...arguments),this.hasPreviousPage=!1,this.hasNextPage=!1}emit(t){this.dispatchEvent(new F6(t))}handlePageChange(t){this.emit(`${t}-page`)}render(){return q`
|
|
3784
3785
|
<brz-button-group role="navigation" aria-label="Pagination Navigation">
|
|
3785
3786
|
<brz-button
|
|
3786
3787
|
compact
|
|
@@ -3806,7 +3807,7 @@ ${this.value}</textarea
|
|
|
3806
3807
|
brz-button-group {
|
|
3807
3808
|
--brz-spacing-2: var(--brz-spacing-1);
|
|
3808
3809
|
}
|
|
3809
|
-
`;Co([H({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Co([H({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Co([ee(
|
|
3810
|
+
`;Co([H({type:Boolean,attribute:"has-previous-page",reflect:!0})],exports.BasicPagination.prototype,"hasPreviousPage",2);Co([H({type:Boolean,attribute:"has-next-page",reflect:!0})],exports.BasicPagination.prototype,"hasNextPage",2);exports.BasicPagination=Co([ee(ap)],exports.BasicPagination);class H6 extends CustomEvent{constructor(t,n){super(`${sp}-${t}`,{bubbles:!0,composed:!0,detail:{page:n}})}}exports.Pagination=class extends Ue{constructor(){super(...arguments),this.currentPageSiblings=1}emit(t,n){this.dispatchEvent(new H6(t,n))}onPageChange(t){this.emit("page-change",t)}isCurrentPage(t){return t===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 t;return this.totalPages=Math.max(1,Math.ceil(this.totalItems/this.pageSize)),this.pages=Pz(this.totalPages,this.currentPage,this.currentPageSiblings),q`
|
|
3810
3811
|
<brz-row role="navigation" aria-label="Pagination Navigation">
|
|
3811
3812
|
<button
|
|
3812
3813
|
role="link"
|
|
@@ -3819,7 +3820,7 @@ ${this.value}</textarea
|
|
|
3819
3820
|
</div>
|
|
3820
3821
|
</button>
|
|
3821
3822
|
${(t=this.pages)==null?void 0:t.map(n=>n?q`<button
|
|
3822
|
-
class=${
|
|
3823
|
+
class=${kn({page:n,selected:this.isCurrentPage(n)})}
|
|
3823
3824
|
role="link"
|
|
3824
3825
|
aria-label=${`${this.isCurrentPage(n)?`Current Page, Page ${n}`:`Go to page ${n}`}`}
|
|
3825
3826
|
aria-current=${`${this.isCurrentPage(n)}`}
|
|
@@ -3907,7 +3908,7 @@ ${this.value}</textarea
|
|
|
3907
3908
|
.page {
|
|
3908
3909
|
padding: 0 var(--brz-spacing-2);
|
|
3909
3910
|
}
|
|
3910
|
-
`;Co([H({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Co([H({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Co([H({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Co([Be()],exports.Pagination.prototype,"currentPageSiblings",2);Co([Be()],exports.Pagination.prototype,"totalPages",2);Co([Be()],exports.Pagination.prototype,"pages",2);exports.Pagination=Co([ee(
|
|
3911
|
+
`;Co([H({type:Number,attribute:"total-items",reflect:!0})],exports.Pagination.prototype,"totalItems",2);Co([H({type:Number,attribute:"page-size",reflect:!0})],exports.Pagination.prototype,"pageSize",2);Co([H({type:Number,attribute:"current-page",reflect:!0})],exports.Pagination.prototype,"currentPage",2);Co([Be()],exports.Pagination.prototype,"currentPageSiblings",2);Co([Be()],exports.Pagination.prototype,"totalPages",2);Co([Be()],exports.Pagination.prototype,"pages",2);exports.Pagination=Co([ee(sp)],exports.Pagination);var Rz=Object.defineProperty,Fz=Object.getOwnPropertyDescriptor,Qc=(o,t,n,l)=>{for(var c=l>1?void 0:l?Fz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Rz(t,n,c),c};const Hz=["info","success","warning","error"],B6=Le("alert");class W6 extends CustomEvent{constructor(t){super(t,{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 W6("brz-alert-cleared"))}render(){return this.cleared?null:q`<div class="alert-container">
|
|
3911
3912
|
<brz-icon class="type-icon" icon="${this.getIcon()}"></brz-icon>
|
|
3912
3913
|
<div role="alert">
|
|
3913
3914
|
${this.title?q`<div><brz-heading>${this.title}</brz-heading></div>`:q``}
|
|
@@ -3983,7 +3984,7 @@ ${this.value}</textarea
|
|
|
3983
3984
|
padding-top: 1px;
|
|
3984
3985
|
}
|
|
3985
3986
|
|
|
3986
|
-
${
|
|
3987
|
+
${Fg(".clear-button",fe`
|
|
3987
3988
|
align-self: start;
|
|
3988
3989
|
margin-left: auto;
|
|
3989
3990
|
margin-right: calc(0px - var(--brz-spacing-1));
|
|
@@ -3992,7 +3993,7 @@ ${this.value}</textarea
|
|
|
3992
3993
|
.clear-button brz-icon {
|
|
3993
3994
|
vertical-align: middle;
|
|
3994
3995
|
}
|
|
3995
|
-
`;Qc([H({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Qc([H({type:Boolean})],exports.Alert.prototype,"clearable",2);Qc([H()],exports.Alert.prototype,"title",2);Qc([Be()],exports.Alert.prototype,"cleared",2);exports.Alert=Qc([ee(
|
|
3996
|
+
`;Qc([H({type:String,reflect:!0})],exports.Alert.prototype,"type",2);Qc([H({type:Boolean})],exports.Alert.prototype,"clearable",2);Qc([H()],exports.Alert.prototype,"title",2);Qc([Be()],exports.Alert.prototype,"cleared",2);exports.Alert=Qc([ee(B6)],exports.Alert);const lp={resources:X`
|
|
3996
3997
|
<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"/>
|
|
3997
3998
|
<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"/>
|
|
3998
3999
|
<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"/>
|
|
@@ -4086,7 +4087,7 @@ ${this.value}</textarea
|
|
|
4086
4087
|
<circle cx="35.1426" cy="45.4286" r="4.28571" fill="white"/>
|
|
4087
4088
|
<circle cx="22.1426" cy="73.5714" r="19.2857" fill="#CACFD9" stroke="white" stroke-width="3"/>
|
|
4088
4089
|
<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"/>
|
|
4089
|
-
<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"/>`},
|
|
4090
|
+
<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"/>`},Bz=Object.keys(lp);var Wz=Object.defineProperty,Uz=Object.getOwnPropertyDescriptor,M1=(o,t,n,l)=>{for(var c=l>1?void 0:l?Uz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Wz(t,n,c),c};const U6=Le("illustration");exports.Illustration=class extends Ue{constructor(){super(...arguments),this.illustration="",this.altTitle="",this.altDescription=""}render(){const t=lp[this.illustration],n=Math.floor(Math.random()*100),l=`${this.illustration}Title${n}`,c=`${this.illustration}Desc${n}`;if(!t){console.warn(`Can't find illustration ${this.illustration}`);return}return q`<svg
|
|
4090
4091
|
aria-hidden=${!this.altTitle.length||!this.altDescription.length}
|
|
4091
4092
|
role="img"
|
|
4092
4093
|
aria-labelledby=${`${l} ${c}`}
|
|
@@ -4102,13 +4103,13 @@ ${this.value}</textarea
|
|
|
4102
4103
|
/* to get rid of extra height caused by white space */
|
|
4103
4104
|
line-height: 0;
|
|
4104
4105
|
}
|
|
4105
|
-
`;M1([H({type:String})],exports.Illustration.prototype,"illustration",2);M1([H({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);M1([H({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=M1([ee(
|
|
4106
|
+
`;M1([H({type:String})],exports.Illustration.prototype,"illustration",2);M1([H({type:String,attribute:"alt-title"})],exports.Illustration.prototype,"altTitle",2);M1([H({type:String,attribute:"alt-description"})],exports.Illustration.prototype,"altDescription",2);exports.Illustration=M1([ee(U6)],exports.Illustration);var Vz=Object.defineProperty,Zz=Object.getOwnPropertyDescriptor,Gz=(o,t,n,l)=>{for(var c=l>1?void 0:l?Zz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Vz(t,n,c),c};const V6=Le("header");exports.Header=class extends Ue{render(){return q`<slot></slot>`}};exports.Header.styles=fe`
|
|
4106
4107
|
:host {
|
|
4107
4108
|
display: block;
|
|
4108
4109
|
padding: var(--brz-spacing-5);
|
|
4109
4110
|
margin-bottom: var(--brz-spacing-4);
|
|
4110
4111
|
}
|
|
4111
|
-
`;exports.Header=
|
|
4112
|
+
`;exports.Header=Gz([ee(V6)],exports.Header);var qz=Object.defineProperty,jz=Object.getOwnPropertyDescriptor,Kz=(o,t,n,l)=>{for(var c=l>1?void 0:l?jz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&qz(t,n,c),c};const Z6=Le("header-footer-page");exports.HeaderFooterPage=class extends Ue{render(){return q`
|
|
4112
4113
|
<div id="container">
|
|
4113
4114
|
<div id="header"><slot name="header"></slot></div>
|
|
4114
4115
|
<div id="body"><slot></slot></div>
|
|
@@ -4132,7 +4133,7 @@ ${this.value}</textarea
|
|
|
4132
4133
|
flex: 1 1;
|
|
4133
4134
|
overflow-y: auto;
|
|
4134
4135
|
}
|
|
4135
|
-
`;exports.HeaderFooterPage=
|
|
4136
|
+
`;exports.HeaderFooterPage=Kz([ee(Z6)],exports.HeaderFooterPage);var Yz=Object.defineProperty,Xz=Object.getOwnPropertyDescriptor,Jz=(o,t,n,l)=>{for(var c=l>1?void 0:l?Xz(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Yz(t,n,c),c};const G6=Le("responsive-columns");exports.ResponsiveColumns=class extends Ue{render(){return q`<slot></slot>`}};exports.ResponsiveColumns.styles=fe`
|
|
4136
4137
|
:host {
|
|
4137
4138
|
display: flex;
|
|
4138
4139
|
flex-direction: row;
|
|
@@ -4164,7 +4165,7 @@ ${this.value}</textarea
|
|
|
4164
4165
|
margin-bottom: var(--brz-padding, var(--brz-spacing-8));
|
|
4165
4166
|
}
|
|
4166
4167
|
}
|
|
4167
|
-
`;exports.ResponsiveColumns=
|
|
4168
|
+
`;exports.ResponsiveColumns=Jz([ee(G6)],exports.ResponsiveColumns);var Qz=Object.defineProperty,eL=Object.getOwnPropertyDescriptor,tL=(o,t,n,l)=>{for(var c=l>1?void 0:l?eL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&Qz(t,n,c),c};const q6=Le("footer");exports.Footer=class extends Ue{render(){return q`<div class="container">
|
|
4168
4169
|
<slot name="left"></slot>
|
|
4169
4170
|
<slot name="middle"></slot>
|
|
4170
4171
|
<slot name="right"></slot>
|
|
@@ -4175,7 +4176,7 @@ ${this.value}</textarea
|
|
|
4175
4176
|
justify-content: space-between;
|
|
4176
4177
|
padding: var(--brz-spacing-3) var(--brz-spacing-4);
|
|
4177
4178
|
}
|
|
4178
|
-
`;exports.Footer=
|
|
4179
|
+
`;exports.Footer=tL([ee(q6)],exports.Footer);var rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,T1=(o,t,n,l)=>{for(var c=l>1?void 0:l?nL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&rL(t,n,c),c};const j6=Le("page-header");exports.PageHeader=class extends Ue{constructor(){super(...arguments),this.hasTitle=!1}updated(t){var n;super.updated(t),this.hasTitle=!!((n=this.slottedTitle)!=null&&n.length||this.pageTitle)}render(){return q`
|
|
4179
4180
|
<header>
|
|
4180
4181
|
<slot name="decorator"></slot>
|
|
4181
4182
|
|
|
@@ -4184,7 +4185,7 @@ ${this.value}</textarea
|
|
|
4184
4185
|
<brz-heading
|
|
4185
4186
|
level="1"
|
|
4186
4187
|
size="2xl"
|
|
4187
|
-
class=${
|
|
4188
|
+
class=${kn({hidden:!this.hasTitle})}
|
|
4188
4189
|
>
|
|
4189
4190
|
<slot name="title">${this.pageTitle}</slot>
|
|
4190
4191
|
</brz-heading>
|
|
@@ -4235,7 +4236,7 @@ ${this.value}</textarea
|
|
|
4235
4236
|
brz-heading.hidden {
|
|
4236
4237
|
display: none;
|
|
4237
4238
|
}
|
|
4238
|
-
`;T1([H({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);T1([Be()],exports.PageHeader.prototype,"hasTitle",2);T1([
|
|
4239
|
+
`;T1([H({attribute:"page-title"})],exports.PageHeader.prototype,"pageTitle",2);T1([Be()],exports.PageHeader.prototype,"hasTitle",2);T1([Th({slot:"title"})],exports.PageHeader.prototype,"slottedTitle",2);exports.PageHeader=T1([ee(j6)],exports.PageHeader);var iL=Object.defineProperty,oL=Object.getOwnPropertyDescriptor,O1=(o,t,n,l)=>{for(var c=l>1?void 0:l?oL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&iL(t,n,c),c};const K6=Le("grid"),aL=Vc.map(o=>fe`
|
|
4239
4240
|
:host([spacing='${o}']),
|
|
4240
4241
|
:host([col-spacing='${o}']) {
|
|
4241
4242
|
--brz-grid-column-gap: var(--brz-spacing-${o});
|
|
@@ -4244,7 +4245,7 @@ ${this.value}</textarea
|
|
|
4244
4245
|
:host([row-spacing='${o}']) {
|
|
4245
4246
|
--brz-grid-row-gap: var(--brz-spacing-${o});
|
|
4246
4247
|
}
|
|
4247
|
-
`);exports.Grid=class extends
|
|
4248
|
+
`);exports.Grid=class extends gu{render(){return q`<slot></slot>`}};var gg;exports.Grid.styles=[(gg=gu.styles)!=null?gg:[],fe`
|
|
4248
4249
|
:host {
|
|
4249
4250
|
--brz-grid-columns: 12;
|
|
4250
4251
|
--brz-grid-column-gap: var(--brz-spacing-5);
|
|
@@ -4257,34 +4258,34 @@ ${this.value}</textarea
|
|
|
4257
4258
|
column-gap: var(--brz-grid-column-gap);
|
|
4258
4259
|
row-gap: var(--brz-grid-row-gap);
|
|
4259
4260
|
}
|
|
4260
|
-
`,...
|
|
4261
|
+
`,...aL];O1([H({type:Number,reflect:!0})],exports.Grid.prototype,"spacing",2);O1([H({type:Number,attribute:"col-spacing",reflect:!0})],exports.Grid.prototype,"colSpacing",2);O1([H({type:Number,attribute:"row-spacing",reflect:!0})],exports.Grid.prototype,"rowSpacing",2);exports.Grid=O1([ee(K6)],exports.Grid);const n1={lg:960,md:640},sL=fe`
|
|
4261
4262
|
--brz-breakpoint-lg: ${n1.lg}px;
|
|
4262
4263
|
--brz-breakpoint-md: ${n1.md}px;
|
|
4263
|
-
`,
|
|
4264
|
+
`,th=o=>(t,...n)=>fe`
|
|
4264
4265
|
@media (max-width: ${n1[o]}px) {
|
|
4265
4266
|
${fe(t,...n)}
|
|
4266
4267
|
}
|
|
4267
|
-
`,
|
|
4268
|
+
`,cg=o=>(t,...n)=>fe`
|
|
4268
4269
|
@media (min-width: ${n1[o]}px) {
|
|
4269
4270
|
${fe(t,...n)}
|
|
4270
4271
|
}
|
|
4271
|
-
`,i1={breakpointUp:
|
|
4272
|
+
`,i1={breakpointUp:cg,breakpointDown:th,sm:th("md"),md:th("lg"),lg:cg("lg")};var lL=Object.defineProperty,uL=Object.getOwnPropertyDescriptor,k1=(o,t,n,l)=>{for(var c=l>1?void 0:l?uL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&lL(t,n,c),c};const Y6=Le("grid-item"),E1=[1,2,3,4,5,6,7,8,9,10,11,12],cL=E1.map(o=>fe`
|
|
4272
4273
|
:host([cols='${o}']) {
|
|
4273
4274
|
grid-column: auto / span ${o};
|
|
4274
4275
|
}
|
|
4275
|
-
`),
|
|
4276
|
+
`),dL=E1.map(o=>fe`
|
|
4276
4277
|
${i1.md`
|
|
4277
4278
|
:host([md-cols='${o}']) {
|
|
4278
4279
|
grid-column: auto / span ${o};
|
|
4279
4280
|
}
|
|
4280
4281
|
`}
|
|
4281
|
-
`),
|
|
4282
|
+
`),fL=E1.map(o=>fe`
|
|
4282
4283
|
${i1.sm`
|
|
4283
4284
|
:host([sm-cols='${o}']) {
|
|
4284
4285
|
grid-column: auto / span ${o};
|
|
4285
4286
|
}
|
|
4286
4287
|
`}
|
|
4287
|
-
`),
|
|
4288
|
+
`),hL=fe`
|
|
4288
4289
|
${i1.md`
|
|
4289
4290
|
:host([cols='9']:not([md-cols])),
|
|
4290
4291
|
:host([cols='8']:not([md-cols])),
|
|
@@ -4304,7 +4305,7 @@ ${this.value}</textarea
|
|
|
4304
4305
|
:host {
|
|
4305
4306
|
grid-column: auto / span 12;
|
|
4306
4307
|
}
|
|
4307
|
-
`,
|
|
4308
|
+
`,cL,hL,dL,fL];k1([H({type:Number,reflect:!0})],exports.GridItem.prototype,"cols",2);k1([H({type:Number,reflect:!0,attribute:"md-cols"})],exports.GridItem.prototype,"mdCols",2);k1([H({type:Number,reflect:!0,attribute:"sm-cols"})],exports.GridItem.prototype,"smCols",2);exports.GridItem=k1([ee(Y6)],exports.GridItem);const pL=fe`
|
|
4308
4309
|
:host {
|
|
4309
4310
|
--brz-border-radius-default: 2px;
|
|
4310
4311
|
--brz-border-radius-medium: 3px;
|
|
@@ -4312,7 +4313,7 @@ ${this.value}</textarea
|
|
|
4312
4313
|
|
|
4313
4314
|
--brz-border-divider: 1px solid var(--brz-color-neutral-400);
|
|
4314
4315
|
}
|
|
4315
|
-
`,
|
|
4316
|
+
`,gL=fe`
|
|
4316
4317
|
:host {
|
|
4317
4318
|
--brz-color-neutral-900: #1b263a;
|
|
4318
4319
|
--brz-color-neutral-850: #223049;
|
|
@@ -4505,7 +4506,7 @@ ${this.value}</textarea
|
|
|
4505
4506
|
|
|
4506
4507
|
--brz-color-text-on-color: var(--brz-color-white);
|
|
4507
4508
|
}
|
|
4508
|
-
`,
|
|
4509
|
+
`,vL=fe`
|
|
4509
4510
|
:host {
|
|
4510
4511
|
--sp-border-radius-default: var(--brz-border-radius-default);
|
|
4511
4512
|
--sp-border-radius-medium: var(--brz-border-radius-medium)
|
|
@@ -4770,14 +4771,14 @@ ${this.value}</textarea
|
|
|
4770
4771
|
--sp-z-index-dropdown: var(--brz-z-index-dropdown);
|
|
4771
4772
|
--sp-z-index-tooltip: var(--brz-z-index-tooltip);
|
|
4772
4773
|
}
|
|
4773
|
-
`,
|
|
4774
|
+
`,bL=fe`
|
|
4774
4775
|
:host {
|
|
4775
4776
|
// TODO: These names currently match the design system but should probably be more generic (based on elevation instead of specific components)
|
|
4776
4777
|
--brz-box-shadow-info-window: 0px 5px 10px rgba(28, 46, 72, 0.15);
|
|
4777
4778
|
--brz-box-shadow-menu: 0 3px 5px var(--brz-color-shadow-150);
|
|
4778
4779
|
--brz-box-shadow-modal: 0 3px 12px var(--brz-color-shadow-100);
|
|
4779
4780
|
}
|
|
4780
|
-
`,
|
|
4781
|
+
`,mL=fe`
|
|
4781
4782
|
:host {
|
|
4782
4783
|
--brz-font-family-brand: Inter, sofiapro;
|
|
4783
4784
|
--brz-font-family-fallback: system-ui, BlinkMacSystemFont, -apple-system,
|
|
@@ -4821,14 +4822,14 @@ ${this.value}</textarea
|
|
|
4821
4822
|
--brz-text-block-max-width: 44rem;
|
|
4822
4823
|
--brz-list-block-max-width: 40rem;
|
|
4823
4824
|
}
|
|
4824
|
-
`,
|
|
4825
|
+
`,yL=fe`
|
|
4825
4826
|
:host {
|
|
4826
4827
|
--brz-z-index-navigation: 1000;
|
|
4827
4828
|
--brz-z-index-dialog: 1100;
|
|
4828
4829
|
--brz-z-index-dropdown: 1200;
|
|
4829
4830
|
--brz-z-index-tooltip: 1300;
|
|
4830
4831
|
}
|
|
4831
|
-
`;var
|
|
4832
|
+
`;var CL=Object.defineProperty,wL=Object.getOwnPropertyDescriptor,xL=(o,t,n,l)=>{for(var c=l>1?void 0:l?wL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&CL(t,n,c),c};const X6=Le("global-styles");exports.GlobalStyles=class extends Ue{render(){return q`<slot></slot>`}};exports.GlobalStyles.styles=[gL,nv,mL,pL,bL,yL,sL,vL,fe`
|
|
4832
4833
|
:host {
|
|
4833
4834
|
--brz-outline-color: var(--brz-color-primary-600);
|
|
4834
4835
|
--brz-outline-style: solid;
|
|
@@ -4846,7 +4847,7 @@ ${this.value}</textarea
|
|
|
4846
4847
|
font-weight: var(--brz-font-weight-normal);
|
|
4847
4848
|
color: var(--brz-color-text);
|
|
4848
4849
|
}
|
|
4849
|
-
`];exports.GlobalStyles=
|
|
4850
|
+
`];exports.GlobalStyles=xL([ee(X6)],exports.GlobalStyles);const J6=Le("card"),Q6=Le("card-header"),e5=Le("card-footer"),t5=Le("card-section-header"),zL=fe`
|
|
4850
4851
|
:host {
|
|
4851
4852
|
--brz-card-background-color: var(--brz-color-white);
|
|
4852
4853
|
--brz-card-color: var(--brz-color-text);
|
|
@@ -4884,7 +4885,7 @@ ${this.value}</textarea
|
|
|
4884
4885
|
|
|
4885
4886
|
padding-bottom: calc(2 * var(--brz-card-body-balancer));
|
|
4886
4887
|
}
|
|
4887
|
-
`,
|
|
4888
|
+
`,LL=o=>fe`
|
|
4888
4889
|
:host([padding='${o}']) {
|
|
4889
4890
|
--brz-card-padding: var(--brz-spacing-${o});
|
|
4890
4891
|
}
|
|
@@ -4892,7 +4893,7 @@ ${this.value}</textarea
|
|
|
4892
4893
|
:host([body-padding='${o}']) {
|
|
4893
4894
|
--brz-card-body-padding: var(--brz-spacing-${o});
|
|
4894
4895
|
}
|
|
4895
|
-
`,
|
|
4896
|
+
`,SL=Vc.map(LL),_L=fe`
|
|
4896
4897
|
:host {
|
|
4897
4898
|
--brz-card-header-color: var(--brz-card-color, var(--brz-color-text));
|
|
4898
4899
|
--brz-card-header-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
|
|
@@ -4940,7 +4941,7 @@ ${this.value}</textarea
|
|
|
4940
4941
|
align-self: flex-start;
|
|
4941
4942
|
flex-shrink: 0;
|
|
4942
4943
|
}
|
|
4943
|
-
`,
|
|
4944
|
+
`,ML=fe`
|
|
4944
4945
|
:host {
|
|
4945
4946
|
--brz-card-footer-color: var(--brz-card-color, var(--brz-color-text));
|
|
4946
4947
|
--brz-card-footer-padding-x: var(--brz-card-padding, var(--brz-spacing-5));
|
|
@@ -4968,7 +4969,7 @@ ${this.value}</textarea
|
|
|
4968
4969
|
align-self: flex-start;
|
|
4969
4970
|
flex-shrink: 0;
|
|
4970
4971
|
}
|
|
4971
|
-
`;var
|
|
4972
|
+
`;var TL=Object.defineProperty,OL=Object.getOwnPropertyDescriptor,kL=(o,t,n,l)=>{for(var c=l>1?void 0:l?OL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&TL(t,n,c),c};exports.CardHeader=class extends Ue{connectedCallback(){super.connectedCallback(),this.slot="header"}get contentTemplate(){return q`
|
|
4972
4973
|
<div class="title">
|
|
4973
4974
|
<slot></slot>
|
|
4974
4975
|
</div>
|
|
@@ -4976,9 +4977,9 @@ ${this.value}</textarea
|
|
|
4976
4977
|
<div class="aside">
|
|
4977
4978
|
<slot name="aside"></slot>
|
|
4978
4979
|
</div>
|
|
4979
|
-
`}render(){return q` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[
|
|
4980
|
+
`}render(){return q` <header class="card-header">${this.contentTemplate}</header> `}};exports.CardHeader.styles=[_L];exports.CardHeader=kL([Bc(Q6)],exports.CardHeader);var EL=Object.defineProperty,IL=Object.getOwnPropertyDescriptor,r5=(o,t,n,l)=>{for(var c=l>1?void 0:l?IL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&EL(t,n,c),c};exports.CardSectionHeader=class extends exports.CardHeader{constructor(){super(...arguments),this.hasDivider=!1}connectedCallback(){super.connectedCallback(),this.slot=""}render(){return q`
|
|
4980
4981
|
<div class="card-section-header">${this.contentTemplate}</div>
|
|
4981
|
-
`}};
|
|
4982
|
+
`}};r5([H({type:Boolean,reflect:!0,attribute:"has-divider"})],exports.CardSectionHeader.prototype,"hasDivider",2);exports.CardSectionHeader=r5([Bc(t5)],exports.CardSectionHeader);var AL=Object.defineProperty,$L=Object.getOwnPropertyDescriptor,PL=(o,t,n,l)=>{for(var c=l>1?void 0:l?$L(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&AL(t,n,c),c};exports.CardFooter=class extends Ue{connectedCallback(){super.connectedCallback(),this.slot="footer"}render(){return q`
|
|
4982
4983
|
<footer class="card-footer">
|
|
4983
4984
|
<div>
|
|
4984
4985
|
<slot></slot>
|
|
@@ -4988,19 +4989,19 @@ ${this.value}</textarea
|
|
|
4988
4989
|
<slot name="aside"></slot>
|
|
4989
4990
|
</div>
|
|
4990
4991
|
</footer>
|
|
4991
|
-
`}};exports.CardFooter.styles=[
|
|
4992
|
+
`}};exports.CardFooter.styles=[ML];exports.CardFooter=PL([Bc(e5)],exports.CardFooter);var DL=Object.defineProperty,NL=Object.getOwnPropertyDescriptor,e0=(o,t,n,l)=>{for(var c=l>1?void 0:l?NL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&DL(t,n,c),c};exports.Card=class extends gu{constructor(){super(...arguments),this.hasHeader=!1}updated(t){super.updated(t),this.hasHeader=!!this.header.length&&this.header[0]instanceof exports.CardHeader}render(){return q`
|
|
4992
4993
|
<article class="card" part="card">
|
|
4993
4994
|
<slot name="header"></slot>
|
|
4994
4995
|
|
|
4995
4996
|
<div
|
|
4996
|
-
class=${
|
|
4997
|
+
class=${kn({"card-body":!0,"has-header":this.hasHeader})}
|
|
4997
4998
|
>
|
|
4998
4999
|
<slot></slot>
|
|
4999
5000
|
</div>
|
|
5000
5001
|
|
|
5001
5002
|
<slot name="footer"></slot>
|
|
5002
5003
|
</article>
|
|
5003
|
-
`}};var
|
|
5004
|
+
`}};var vg;exports.Card.styles=[(vg=gu.styles)!=null?vg:[],zL,SL];e0([H({type:Number,reflect:!0})],exports.Card.prototype,"padding",2);e0([H({type:Number,reflect:!0,attribute:"body-padding"})],exports.Card.prototype,"bodyPadding",2);e0([Be()],exports.Card.prototype,"hasHeader",2);e0([Jo({slot:"header",flatten:!0})],exports.Card.prototype,"header",2);exports.Card=e0([Bc(J6)],exports.Card);var RL=Object.defineProperty,FL=Object.getOwnPropertyDescriptor,up=(o,t,n,l)=>{for(var c=l>1?void 0:l?FL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&RL(t,n,c),c};const n5=Le("paper");exports.Paper=class extends Ue{constructor(){super(...arguments),this.hasBorder=!1,this.level=1}render(){return q` <div class="container"><slot></slot></div> `}};exports.Paper.styles=fe`
|
|
5004
5005
|
:host {
|
|
5005
5006
|
display: block;
|
|
5006
5007
|
position: relative;
|
|
@@ -5024,4 +5025,4 @@ ${this.value}</textarea
|
|
|
5024
5025
|
:host([has-border]) .container {
|
|
5025
5026
|
border: 1px solid var(--brz-color-neutral-300);
|
|
5026
5027
|
}
|
|
5027
|
-
`;lp([H({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);lp([H({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=lp([ee(Q6)],exports.Paper);var NL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,Re=(o,t,n,l)=>{for(var c=l>1?void 0:l?RL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&NL(t,n,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Re([ee("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Re([ee("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Re([ee("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Re([ee("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Re([ee("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Re([ee("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Re([ee("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Re([ee("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Re([ee("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Re([ee("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Re([ee("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Re([ee("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Re([ee("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Re([ee("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Re([ee("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Re([ee("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Re([ee("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Re([ee("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Re([ee("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Re([ee("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Re([ee("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Re([ee("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Re([ee("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Re([ee("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Re([ee("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Re([ee("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Re([ee("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Re([ee("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Re([ee("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Re([ee("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Re([ee("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Re([ee("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Re([ee("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Re([ee("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Re([ee("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Re([ee("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Re([ee("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Re([ee("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Re([ee("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Re([ee("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Re([ee("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Re([ee("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Re([ee("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Re([ee("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Re([ee("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Re([ee("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Re([ee("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Re([ee("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends qd{};exports.LegacyInputGuide=Re([ee("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Re([ee("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Re([ee("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Re([ee("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Re([ee("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Re([ee("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Re([ee("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Re([ee("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Re([ee("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Re([ee("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Re([ee("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Re([ee("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Re([ee("sp-labeled-input")],exports.LegacyLabeledInput);const wh="a",e5="ccc d LLL",t5="ccc LLL d",r5="ZZZZ",n5=Le("date-time-range");var FL=Object.defineProperty,HL=Object.getOwnPropertyDescriptor,wu=(o,t,n,l)=>{for(var c=l>1?void 0:l?HL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&FL(t,n,c),c};const sg=(o,t)=>{const{dateFormat:n,year:l,minutes:c,ampm:g,timezone:h=""}=t,z=`${n?`${n}${l}, `:""}${c}${g}${h}`;return o.toFormat(z)},lg=o=>o.minute===0?"h":"h:mm",ug=(o,t)=>o.year!==t.year?" yyyy":"";exports.DateTimeRange=class extends Ue{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const t=ig(at.fromISO(this.start),this.timezone),n=ig(at.fromISO(this.end),this.timezone),l=this.dateFormat==="DayMonthYear"?e5:t5,c={minutes:lg(t),year:ug(t,n),dateFormat:l,ampm:t.hasSame(n,"day")&&Nx(t,n)?"":wh},g={minutes:lg(n),year:ug(n,t),dateFormat:t.hasSame(n,"day")?"":l,ampm:wh,timezone:this.hideTimezone?"":` (${r5})`},h=og(sg(t,c)),x=og(sg(n,g));return`${h} - ${x}`}render(){return q`<span>${this.generateContent()}</span>`}};wu([H({type:String})],exports.DateTimeRange.prototype,"start",2);wu([H({type:String})],exports.DateTimeRange.prototype,"end",2);wu([H({type:String})],exports.DateTimeRange.prototype,"timezone",2);wu([H({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);wu([H({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=wu([ee(n5)],exports.DateTimeRange);exports.ACTION_BAR=$v;exports.ALERT=N6;exports.AM_PM_FORMAT=wh;exports.AVATAR=Yg;exports.AVATAR_GROUP=Xg;exports.AlertEvent=R6;exports.AvatarSize=Zd;exports.AvatarTheme=Jg;exports.BADGE=k6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=A6;exports.BADGE_NUMBER_LIMIT_DEFAULT=$6;exports.BASIC_PAGINATION=op;exports.BUTTON=Bh;exports.BUTTON_GROUP=lv;exports.BadgeTheme=I6;exports.BasicPaginationEvent=P6;exports.ButtonEvent=uv;exports.CARD=j6;exports.CARD_FOOTER=Y6;exports.CARD_HEADER=K6;exports.CARD_SECTION_HEADER=X6;exports.COLUMN=ov;exports.COMBO_BOX=Lv;exports.COMBO_BOX_OPTION=Sv;exports.CONFIRMATION_DIALOG=Fv;exports.ConfirmationDialogCancel=Hv;exports.ConfirmationDialogConfirm=Bv;exports.DATE_TIME_RANGE=n5;exports.DAY_MONTH_YEAR_FORMAT=e5;exports.DROPDOWN_BUTTON=Uv;exports.DROPDOWN_MENU=cv;exports.DeleteLozengeEvent=r4;exports.FADE_IN_OUT=Ag;exports.FOOTER=U6;exports.GLOBAL_STYLES=q6;exports.GRID=Z6;exports.GRID_ITEM=G6;exports.HEADER=H6;exports.HEADER_FOOTER_PAGE=B6;exports.HEADING=d6;exports.ICON=tv;exports.ILLUSTRATION=F6;exports.INLINE_EDIT_CONTROLS=h6;exports.INLINE_EDIT_FIELD=f6;exports.INLINE_EDIT_GROUP=ep;exports.INPUT_CHECKBOX=Vv;exports.INPUT_CODE=Qv;exports.INPUT_ERROR=vv;exports.INPUT_LABEL=mv;exports.INPUT_MULTISELECT=n4;exports.INPUT_NUMBER=qv;exports.INPUT_RADIO_GROUP=Yv;exports.INPUT_RADIO_OPTION=Xv;exports.INPUT_SELECT=e4;exports.INPUT_TEXT=Zv;exports.INPUT_TEXTAREA=Gv;exports.INPUT_TIME=o6;exports.InlineEditControlsCancelEvent=g6;exports.InlineEditControlsSaveEvent=v6;exports.InlineEditFieldBroadcastEvent=b6;exports.InlineEditFieldModeChangeEvent=m6;exports.InlineEditGroupModeChangeEvent=y6;exports.InputBase=Yn;exports.InputSelectBase=zr;exports.InputSelectQueryChangeEvent=Zh;exports.LABELED_INPUT=bv;exports.LINK=rv;exports.LINK_BUTTON=nv;exports.LOADING_SPINNER=sv;exports.LOZENGE=t4;exports.MENU=Cv;exports.MENU_ITEM=jd;exports.MODAL=Iv;exports.MODAL_BODY=Dv;exports.MODAL_FOOTER=Nv;exports.MODAL_HEADER=Pv;exports.MONTH_DAY_YEAR_FORMAT=t5;exports.MenuBlurEvent=wv;exports.MenuItemSelectEvent=yv;exports.MenuSelectEvent=xv;exports.ModalCloseEvent=Gh;exports.PAGE_HEADER=V6;exports.PAGINATION=ap;exports.PAPER=Q6;exports.POPOVER=Ph;exports.POPOVER_LISTENABLE_EVENT_TYPES=Vd;exports.POPOVER_ROLES=Dh;exports.POPOVER_TRIGGERS=Gg;exports.PURE_POPOVER=Zg;exports.PaginationEvent=D6;exports.PopoverEvent=qg;exports.RECORD_FIELD=pv;exports.RECORD_FIELD_LABEL=gv;exports.RECORD_ROW=L6;exports.RECORD_ROW_LABEL=S6;exports.RESPONSIVE_COLUMNS=W6;exports.ROW=iv;exports.SEARCH_MESSAGE_ID=Rc;exports.SELECT_ALL_ID=Ai;exports.SIDE_NAVIGATION=x6;exports.SIDE_NAVIGATION_ITEM=w6;exports.SPACING_BASE=Nh;exports.SPLIT_ROW=Av;exports.TAB=T6;exports.TABS=E6;exports.TAB_BAR=O6;exports.TAB_PANEL=_6;exports.TIMEZONE_FORMAT=r5;exports.TIME_FORMAT=a6;exports.TIME_REGEX_12H=u6;exports.TIME_REGEX_24H=l6;exports.TIME_REGEX_LOOSE=s6;exports.TOOLTIP=jg;exports.TabDeselectedEvent=M6;exports.TabSelectedEvent=x1;exports.TooltipTheme=Kg;exports.VIRTUAL_LIST=Uh;exports.VirtualListUpdateEvent=hv;exports.alertTypes=Nz;exports.buttonTypes=L8;exports.click=Ud;exports.columnSpans=k1;exports.dropdownMenuSizes=T8;exports.focus=Rs;exports.hover=ch;exports.iconNames=u8;exports.icons=Rh;exports.illustrationNames=Rz;exports.illustrations=sp;exports.inlineEditControlsModes=p6;exports.inlineEditModes=Kx;exports.inputSizes=H8;exports.labelPositions=B8;exports.linkButtonElementTypes=p8;exports.linkTypes=b8;exports.lozengeColors=AC;exports.lozengeSizes=PC;exports.lozengeThemes=$C;exports.modalSizes=qy;exports.radioLayouts=bC;exports.resetLinkStyle=Hh;exports.spacing=Qg;exports.spacingLevels=Vc;exports.syntaxes=MC;exports.timeSuffixes=Bx;exports.transformIcon=ev;
|
|
5028
|
+
`;up([H({type:Boolean,attribute:"has-border",reflect:!0})],exports.Paper.prototype,"hasBorder",2);up([H({type:Number,reflect:!0})],exports.Paper.prototype,"level",2);exports.Paper=up([ee(n5)],exports.Paper);var HL=Object.defineProperty,BL=Object.getOwnPropertyDescriptor,Re=(o,t,n,l)=>{for(var c=l>1?void 0:l?BL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&HL(t,n,c),c};exports.LegacyGlobalStyles=class extends exports.GlobalStyles{};exports.LegacyGlobalStyles=Re([ee("sp-global-styles")],exports.LegacyGlobalStyles);exports.LegacyAlert=class extends exports.Alert{};exports.LegacyAlert=Re([ee("sp-alert")],exports.LegacyAlert);exports.LegacyAvatar=class extends exports.Avatar{};exports.LegacyAvatar=Re([ee("sp-avatar")],exports.LegacyAvatar);exports.LegacyAvatarGroup=class extends exports.AvatarGroup{};exports.LegacyAvatarGroup=Re([ee("sp-avatar-group")],exports.LegacyAvatarGroup);exports.LegacyButton=class extends exports.Button{};exports.LegacyButton=Re([ee("sp-button")],exports.LegacyButton);exports.LegacyButtonGroup=class extends exports.ButtonGroup{};exports.LegacyButtonGroup=Re([ee("sp-button-group")],exports.LegacyButtonGroup);exports.LegacyBadge=class extends exports.Badge{};exports.LegacyBadge=Re([ee("sp-badge")],exports.LegacyBadge);exports.LegacyComboBox=class extends exports.ComboBox{};exports.LegacyComboBox=Re([ee("sp-combo-box")],exports.LegacyComboBox);exports.LegacyComboBoxOption=class extends exports.ComboBoxOption{};exports.LegacyComboBoxOption=Re([ee("sp-combo-box-option")],exports.LegacyComboBoxOption);exports.LegacyConfirmationDialog=class extends exports.ConfirmationDialog{};exports.LegacyConfirmationDialog=Re([ee("sp-confirmation-dialog")],exports.LegacyConfirmationDialog);exports.LegacyHeading=class extends exports.Heading{};exports.LegacyHeading=Re([ee("sp-heading")],exports.LegacyHeading);exports.LegacyLink=class extends exports.Link{};exports.LegacyLink=Re([ee("sp-link")],exports.LegacyLink);exports.LegacyLinkButton=class extends exports.LinkButton{};exports.LegacyLinkButton=Re([ee("sp-link-button")],exports.LegacyLinkButton);exports.LegacyLoadingSpinner=class extends exports.LoadingSpinner{};exports.LegacyLoadingSpinner=Re([ee("sp-loading-spinner")],exports.LegacyLoadingSpinner);exports.LegacyLozenge=class extends exports.Lozenge{};exports.LegacyLozenge=Re([ee("sp-lozenge")],exports.LegacyLozenge);exports.LegacyBasicPagination=class extends exports.BasicPagination{};exports.LegacyBasicPagination=Re([ee("sp-basic-pagination")],exports.LegacyBasicPagination);exports.LegacyPagination=class extends exports.Pagination{};exports.LegacyPagination=Re([ee("sp-pagination")],exports.LegacyPagination);exports.LegacyPopover=class extends exports.Popover{};exports.LegacyPopover=Re([ee("sp-popover")],exports.LegacyPopover);exports.LegacyPurePopover=class extends exports.PurePopover{};exports.LegacyPurePopover=Re([ee("sp-pure-popover")],exports.LegacyPurePopover);exports.LegacyRecordRow=class extends exports.RecordRow{};exports.LegacyRecordRow=Re([ee("sp-record-row")],exports.LegacyRecordRow);exports.LegacyRecordRowLabel=class extends exports.RecordRowLabel{};exports.LegacyRecordRowLabel=Re([ee("sp-record-row-label")],exports.LegacyRecordRowLabel);exports.LegacyTooltip=class extends exports.Tooltip{};exports.LegacyTooltip=Re([ee("sp-tooltip")],exports.LegacyTooltip);exports.LegacyVirtualList=class extends exports.VirtualList{};exports.LegacyVirtualList=Re([ee("sp-virtual-list")],exports.LegacyVirtualList);exports.LegacyFadeInOut=class extends exports.FadeInOut{};exports.LegacyFadeInOut=Re([ee("sp-fade-in-out")],exports.LegacyFadeInOut);exports.LegacyPaper=class extends exports.Paper{};exports.LegacyPaper=Re([ee("sp-paper")],exports.LegacyPaper);exports.LegacyRow=class extends exports.Row{};exports.LegacyRow=Re([ee("sp-row")],exports.LegacyRow);exports.LegacyColumn=class extends exports.Column{};exports.LegacyColumn=Re([ee("sp-column")],exports.LegacyColumn);exports.LegacyFooter=class extends exports.Footer{};exports.LegacyFooter=Re([ee("sp-footer")],exports.LegacyFooter);exports.LegacyHeaderFooterPage=class extends exports.HeaderFooterPage{};exports.LegacyHeaderFooterPage=Re([ee("sp-header-footer-page")],exports.LegacyHeaderFooterPage);exports.LegacyHeader=class extends exports.Header{};exports.LegacyHeader=Re([ee("sp-header")],exports.LegacyHeader);exports.LegacyResponsiveColumns=class extends exports.ResponsiveColumns{};exports.LegacyResponsiveColumns=Re([ee("sp-responsive-columns")],exports.LegacyResponsiveColumns);exports.LegacySplitRow=class extends exports.SplitRow{};exports.LegacySplitRow=Re([ee("sp-split-row")],exports.LegacySplitRow);exports.LegacyActionBar=class extends exports.ActionBar{};exports.LegacyActionBar=Re([ee("sp-action-bar")],exports.LegacyActionBar);exports.LegacyIllustration=class extends exports.Illustration{};exports.LegacyIllustration=Re([ee("sp-illustration")],exports.LegacyIllustration);exports.LegacyIcon=class extends exports.Icon{};exports.LegacyIcon=Re([ee("sp-icon")],exports.LegacyIcon);exports.LegacyModalHeader=class extends exports.ModalHeader{};exports.LegacyModalHeader=Re([ee("sp-modal-header")],exports.LegacyModalHeader);exports.LegacyModalBody=class extends exports.ModalBody{};exports.LegacyModalBody=Re([ee("sp-modal-body")],exports.LegacyModalBody);exports.LegacyModalFooter=class extends exports.ModalFooter{};exports.LegacyModalFooter=Re([ee("sp-modal-footer")],exports.LegacyModalFooter);exports.LegacyModal=class extends exports.Modal{};exports.LegacyModal=Re([ee("sp-modal")],exports.LegacyModal);exports.LegacySideNavigationItem=class extends exports.SideNavigationItem{};exports.LegacySideNavigationItem=Re([ee("sp-side-navigation-item")],exports.LegacySideNavigationItem);exports.LegacySideNavigation=class extends exports.SideNavigation{};exports.LegacySideNavigation=Re([ee("sp-side-navigation")],exports.LegacySideNavigation);exports.LegacyTabs=class extends exports.Tabs{};exports.LegacyTabs=Re([ee("sp-tabs")],exports.LegacyTabs);exports.LegacyTabPanel=class extends exports.TabPanel{};exports.LegacyTabPanel=Re([ee("sp-tab-panel")],exports.LegacyTabPanel);exports.LegacyTabBar=class extends exports.TabBar{};exports.LegacyTabBar=Re([ee("sp-tab-bar")],exports.LegacyTabBar);exports.LegacyTab=class extends exports.Tab{};exports.LegacyTab=Re([ee("sp-tab")],exports.LegacyTab);exports.LegacyInputCheckbox=class extends exports.InputCheckbox{};exports.LegacyInputCheckbox=Re([ee("sp-input-checkbox")],exports.LegacyInputCheckbox);exports.LegacyInputCode=class extends exports.InputCode{};exports.LegacyInputCode=Re([ee("sp-input-code")],exports.LegacyInputCode);exports.LegacyInputError=class extends exports.InputError{};exports.LegacyInputError=Re([ee("sp-input-error")],exports.LegacyInputError);exports.LegacyInputGuide=class extends qd{};exports.LegacyInputGuide=Re([ee("sp-input-guide")],exports.LegacyInputGuide);exports.LegacyInputMultiselect=class extends exports.InputMultiselect{};exports.LegacyInputMultiselect=Re([ee("sp-input-multiselect")],exports.LegacyInputMultiselect);exports.LegacyInputNumber=class extends exports.InputNumber{};exports.LegacyInputNumber=Re([ee("sp-input-number")],exports.LegacyInputNumber);exports.LegacyInputRadio=class extends exports.InputRadio{};exports.LegacyInputRadio=Re([ee("sp-input-radio-group")],exports.LegacyInputRadio);exports.LegacyInputRadioOption=class extends exports.InputRadioOption{};exports.LegacyInputRadioOption=Re([ee("sp-input-radio-option")],exports.LegacyInputRadioOption);exports.LegacyMenu=class extends exports.Menu{};exports.LegacyMenu=Re([ee("sp-menu")],exports.LegacyMenu);exports.LegacyMenuItem=class extends exports.MenuItem{};exports.LegacyMenuItem=Re([ee("sp-menu-item")],exports.LegacyMenuItem);exports.LegacyInputSelect=class extends exports.InputSelect{};exports.LegacyInputSelect=Re([ee("sp-input-select")],exports.LegacyInputSelect);exports.LegacyInputText=class extends exports.InputText{};exports.LegacyInputText=Re([ee("sp-input-text")],exports.LegacyInputText);exports.LegacyInputTextarea=class extends exports.InputTextarea{};exports.LegacyInputTextarea=Re([ee("sp-input-textarea")],exports.LegacyInputTextarea);exports.LegacyInputTime=class extends exports.InputTime{};exports.LegacyInputTime=Re([ee("sp-input-time")],exports.LegacyInputTime);exports.LegacyInputLabel=class extends exports.InputLabel{};exports.LegacyInputLabel=Re([ee("sp-input-label")],exports.LegacyInputLabel);exports.LegacyLabeledInput=class extends exports.LabeledInput{};exports.LegacyLabeledInput=Re([ee("sp-labeled-input")],exports.LegacyLabeledInput);const xh="a",i5="ccc d LLL",o5="ccc LLL d",a5="ZZZZ",s5=Le("date-time-range");var WL=Object.defineProperty,UL=Object.getOwnPropertyDescriptor,wu=(o,t,n,l)=>{for(var c=l>1?void 0:l?UL(t,n):t,g=o.length-1,h;g>=0;g--)(h=o[g])&&(c=(l?h(t,n,c):h(c))||c);return l&&c&&WL(t,n,c),c};const dg=(o,t)=>{const{dateFormat:n,year:l,minutes:c,ampm:g,timezone:h=""}=t,z=`${n?`${n}${l}, `:""}${c}${g}${h}`;return o.toFormat(z)},fg=o=>o.minute===0?"h":"h:mm",hg=(o,t)=>o.year!==t.year?" yyyy":"";exports.DateTimeRange=class extends Ue{constructor(){super(...arguments),this.hideTimezone=!1,this.dateFormat="MonthDayYear"}generateContent(){if(!this.start||!this.end)return"No date and time set";const t=lg(at.fromISO(this.start),this.timezone),n=lg(at.fromISO(this.end),this.timezone),l=this.dateFormat==="DayMonthYear"?i5:o5,c={minutes:fg(t),year:hg(t,n),dateFormat:l,ampm:t.hasSame(n,"day")&&Hx(t,n)?"":xh},g={minutes:fg(n),year:hg(n,t),dateFormat:t.hasSame(n,"day")?"":l,ampm:xh,timezone:this.hideTimezone?"":` (${a5})`},h=ug(dg(t,c)),x=ug(dg(n,g));return`${h} - ${x}`}render(){return q`<span>${this.generateContent()}</span>`}};wu([H({type:String})],exports.DateTimeRange.prototype,"start",2);wu([H({type:String})],exports.DateTimeRange.prototype,"end",2);wu([H({type:String})],exports.DateTimeRange.prototype,"timezone",2);wu([H({attribute:"hide-timezone",type:Boolean})],exports.DateTimeRange.prototype,"hideTimezone",2);wu([H({attribute:"date-format",type:String})],exports.DateTimeRange.prototype,"dateFormat",2);exports.DateTimeRange=wu([ee(s5)],exports.DateTimeRange);exports.ACTION_BAR=Rv;exports.ALERT=B6;exports.AM_PM_FORMAT=xh;exports.AVATAR=ev;exports.AVATAR_GROUP=tv;exports.AlertEvent=W6;exports.AvatarSize=Zd;exports.AvatarTheme=rv;exports.BADGE=P6;exports.BADGE_CHARACTER_LIMIT_DEFAULT=N6;exports.BADGE_NUMBER_LIMIT_DEFAULT=R6;exports.BASIC_PAGINATION=ap;exports.BUTTON=Wh;exports.BUTTON_GROUP=fv;exports.BadgeTheme=D6;exports.BasicPaginationEvent=F6;exports.ButtonEvent=hv;exports.CARD=J6;exports.CARD_FOOTER=e5;exports.CARD_HEADER=Q6;exports.CARD_SECTION_HEADER=t5;exports.COLUMN=uv;exports.COMBO_BOX=Tv;exports.COMBO_BOX_OPTION=Ov;exports.CONFIRMATION_DIALOG=Uv;exports.ConfirmationDialogCancel=Vv;exports.ConfirmationDialogConfirm=Zv;exports.DATE_TIME_RANGE=s5;exports.DAY_MONTH_YEAR_FORMAT=i5;exports.DROPDOWN_BUTTON=qv;exports.DROPDOWN_MENU=pv;exports.DeleteLozengeEvent=a4;exports.FADE_IN_OUT=Ng;exports.FOOTER=q6;exports.GLOBAL_STYLES=X6;exports.GRID=K6;exports.GRID_ITEM=Y6;exports.HEADER=V6;exports.HEADER_FOOTER_PAGE=Z6;exports.HEADING=g6;exports.ICON=ov;exports.ILLUSTRATION=U6;exports.INLINE_EDIT_CONTROLS=b6;exports.INLINE_EDIT_FIELD=v6;exports.INLINE_EDIT_GROUP=tp;exports.INPUT_CHECKBOX=jv;exports.INPUT_CODE=n4;exports.INPUT_ERROR=Cv;exports.INPUT_LABEL=xv;exports.INPUT_MULTISELECT=s4;exports.INPUT_NUMBER=Xv;exports.INPUT_RADIO_GROUP=e4;exports.INPUT_RADIO_OPTION=t4;exports.INPUT_SELECT=i4;exports.INPUT_TEXT=Kv;exports.INPUT_TEXTAREA=Yv;exports.INPUT_TIME=u6;exports.InlineEditControlsCancelEvent=y6;exports.InlineEditControlsSaveEvent=C6;exports.InlineEditFieldBroadcastEvent=w6;exports.InlineEditFieldModeChangeEvent=x6;exports.InlineEditGroupModeChangeEvent=z6;exports.InputBase=Yn;exports.InputSelectBase=zr;exports.InputSelectQueryChangeEvent=Gh;exports.LABELED_INPUT=wv;exports.LINK=av;exports.LINK_BUTTON=sv;exports.LOADING_SPINNER=dv;exports.LOZENGE=o4;exports.MENU=Lv;exports.MENU_ITEM=jd;exports.MODAL=Dv;exports.MODAL_BODY=Hv;exports.MODAL_FOOTER=Bv;exports.MODAL_HEADER=Fv;exports.MONTH_DAY_YEAR_FORMAT=o5;exports.MenuBlurEvent=Sv;exports.MenuItemSelectEvent=zv;exports.MenuSelectEvent=_v;exports.ModalCloseEvent=qh;exports.PAGE_HEADER=j6;exports.PAGINATION=sp;exports.PAPER=n5;exports.POPOVER=Dh;exports.POPOVER_LISTENABLE_EVENT_TYPES=Vd;exports.POPOVER_ROLES=Nh;exports.POPOVER_TRIGGERS=Yg;exports.PURE_POPOVER=Kg;exports.PaginationEvent=H6;exports.PopoverEvent=Xg;exports.RECORD_FIELD=mv;exports.RECORD_FIELD_LABEL=yv;exports.RECORD_ROW=T6;exports.RECORD_ROW_LABEL=O6;exports.RESPONSIVE_COLUMNS=G6;exports.ROW=lv;exports.SEARCH_MESSAGE_ID=Rc;exports.SELECT_ALL_ID=Ai;exports.SIDE_NAVIGATION=_6;exports.SIDE_NAVIGATION_ITEM=S6;exports.SPACING_BASE=Rh;exports.SPLIT_ROW=Nv;exports.TAB=I6;exports.TABS=$6;exports.TAB_BAR=A6;exports.TAB_PANEL=k6;exports.TIMEZONE_FORMAT=a5;exports.TIME_FORMAT=c6;exports.TIME_REGEX_12H=h6;exports.TIME_REGEX_24H=f6;exports.TIME_REGEX_LOOSE=d6;exports.TOOLTIP=Jg;exports.TabDeselectedEvent=E6;exports.TabSelectedEvent=x1;exports.TooltipTheme=Qg;exports.VIRTUAL_LIST=Vh;exports.VirtualListUpdateEvent=bv;exports.alertTypes=Hz;exports.buttonTypes=T8;exports.click=Ud;exports.columnSpans=E1;exports.dropdownMenuSizes=I8;exports.focus=Rs;exports.hover=dh;exports.iconNames=h8;exports.icons=Fh;exports.illustrationNames=Bz;exports.illustrations=lp;exports.inlineEditControlsModes=m6;exports.inlineEditModes=Jx;exports.inputSizes=V8;exports.labelPositions=Z8;exports.linkButtonElementTypes=m8;exports.linkTypes=w8;exports.lozengeColors=DC;exports.lozengeSizes=RC;exports.lozengeThemes=NC;exports.modalSizes=Xy;exports.radioLayouts=wC;exports.resetLinkStyle=Bh;exports.spacing=nv;exports.spacingLevels=Vc;exports.syntaxes=kC;exports.timeSuffixes=Vx;exports.transformIcon=iv;
|