15 lines
1.1 MiB
15 lines
1.1 MiB
var e=Object.defineProperty,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,r=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o;function i(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const s=i("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function a(e){return!!e||""===e}function l(e){if(F(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=R(o)?u(o):l(o);if(r)for(const e in r)t[e]=r[e]}return t}return R(e)||T(e)?e:void 0}const c=/;(?![^(]*\))/g,d=/:(.+)/;function u(e){const t={};return e.split(c).forEach((e=>{if(e){const n=e.split(d);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function h(e){let t="";if(R(e))t=e;else if(F(e))for(let n=0;n<e.length;n++){const o=h(e[n]);o&&(t+=o+" ")}else if(T(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const p=e=>null==e?"":F(e)||T(e)&&(e.toString===M||!_(e.toString))?JSON.stringify(e,f,2):String(e),f=(e,t)=>t&&t.__v_isRef?f(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:$(t)?{[`Set(${t.size})`]:[...t.values()]}:!T(t)||F(t)||P(t)?t:String(t),g={},m=[],v=()=>{},b=()=>!1,y=/^on[^a-z]/,C=e=>y.test(e),w=e=>e.startsWith("onUpdate:"),x=Object.assign,S=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},A=Object.prototype.hasOwnProperty,k=(e,t)=>A.call(e,t),F=Array.isArray,E=e=>"[object Map]"===L(e),$=e=>"[object Set]"===L(e),_=e=>"function"==typeof e,R=e=>"string"==typeof e,B=e=>"symbol"==typeof e,T=e=>null!==e&&"object"==typeof e,D=e=>T(e)&&_(e.then)&&_(e.catch),M=Object.prototype.toString,L=e=>M.call(e),P=e=>"[object Object]"===L(e),O=e=>R(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,z=i(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},j=/-(\w)/g,N=I((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),H=/\B([A-Z])/g,W=I((e=>e.replace(H,"-$1").toLowerCase())),V=I((e=>e.charAt(0).toUpperCase()+e.slice(1))),U=I((e=>e?`on${V(e)}`:"")),K=(e,t)=>!Object.is(e,t),G=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Y=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},q=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let X;const Z=[];class J{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&X&&(this.parent=X,this.index=(X.scopes||(X.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(Z.push(this),X=this)}off(){this.active&&(Z.pop(),X=Z[Z.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const Q=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ee=e=>(e.w&re)>0,te=e=>(e.n&re)>0,ne=new WeakMap;let oe=0,re=1;const ie=[];let se;const ae=Symbol(""),le=Symbol("");class ce{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||X)&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();if(!ie.includes(this))try{return ie.push(se=this),he.push(ue),ue=!0,re=1<<++oe,oe<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=re})(this):de(this),this.fn()}finally{oe<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];ee(r)&&!te(r)?r.delete(e):t[n++]=r,r.w&=~re,r.n&=~re}t.length=n}})(this),re=1<<--oe,fe(),ie.pop();const e=ie.length;se=e>0?ie[e-1]:void 0}}stop(){this.active&&(de(this),this.onStop&&this.onStop(),this.active=!1)}}function de(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ue=!0;const he=[];function pe(){he.push(ue),ue=!1}function fe(){const e=he.pop();ue=void 0===e||e}function ge(e,t,n){if(!me())return;let o=ne.get(e);o||ne.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=Q()),ve(r)}function me(){return ue&&void 0!==se}function ve(e,t){let n=!1;oe<=30?te(e)||(e.n|=re,n=!ee(e)):n=!e.has(se),n&&(e.add(se),se.deps.push(e))}function be(e,t,n,o,r,i){const s=ne.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&F(e))s.forEach(((e,t)=>{("length"===t||t>=o)&&a.push(e)}));else switch(void 0!==n&&a.push(s.get(n)),t){case"add":F(e)?O(n)&&a.push(s.get("length")):(a.push(s.get(ae)),E(e)&&a.push(s.get(le)));break;case"delete":F(e)||(a.push(s.get(ae)),E(e)&&a.push(s.get(le)));break;case"set":E(e)&&a.push(s.get(ae))}if(1===a.length)a[0]&&ye(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);ye(Q(e))}}function ye(e,t){for(const n of F(e)?e:[...e])(n!==se||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const Ce=i("__proto__,__v_isRef,__isVue"),we=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(B)),xe=Ee(),Se=Ee(!1,!0),Ae=Ee(!0),ke=Fe();function Fe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ht(this);for(let t=0,r=this.length;t<r;t++)ge(n,0,t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(ht)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){pe();const n=ht(this)[t].apply(this,e);return fe(),n}})),e}function Ee(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?rt:ot:t?nt:tt).get(n))return n;const i=F(n);if(!e&&i&&k(ke,o))return Reflect.get(ke,o,r);const s=Reflect.get(n,o,r);if(B(o)?we.has(o):Ce(o))return s;if(e||ge(n,0,o),t)return s;if(vt(s)){return!i||!O(o)?s.value:s}return T(s)?e?at(s):st(s):s}}function $e(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&(o=ht(o),i=ht(i),!F(t)&&vt(i)&&!vt(o)))return i.value=o,!0;const s=F(t)&&O(n)?Number(n)<t.length:k(t,n),a=Reflect.set(t,n,o,r);return t===ht(r)&&(s?K(o,i)&&be(t,"set",n,o):be(t,"add",n,o)),a}}const _e={get:xe,set:$e(),deleteProperty:function(e,t){const n=k(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&be(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return B(t)&&we.has(t)||ge(e,0,t),n},ownKeys:function(e){return ge(e,0,F(e)?"length":ae),Reflect.ownKeys(e)}},Re={get:Ae,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Be=x({},_e,{get:Se,set:$e(!0)}),Te=e=>T(e)?st(e):e,De=e=>T(e)?at(e):e,Me=e=>e,Le=e=>Reflect.getPrototypeOf(e);function Pe(e,t,n=!1,o=!1){const r=ht(e=e.__v_raw),i=ht(t);t!==i&&!n&&ge(r,0,t),!n&&ge(r,0,i);const{has:s}=Le(r),a=o?Me:n?De:Te;return s.call(r,t)?a(e.get(t)):s.call(r,i)?a(e.get(i)):void(e!==r&&e.get(t))}function Oe(e,t=!1){const n=this.__v_raw,o=ht(n),r=ht(e);return e!==r&&!t&&ge(o,0,e),!t&&ge(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function ze(e,t=!1){return e=e.__v_raw,!t&&ge(ht(e),0,ae),Reflect.get(e,"size",e)}function Ie(e){e=ht(e);const t=ht(this);return Le(t).has.call(t,e)||(t.add(e),be(t,"add",e,e)),this}function je(e,t){t=ht(t);const n=ht(this),{has:o,get:r}=Le(n);let i=o.call(n,e);i||(e=ht(e),i=o.call(n,e));const s=r.call(n,e);return n.set(e,t),i?K(t,s)&&be(n,"set",e,t):be(n,"add",e,t),this}function Ne(e){const t=ht(this),{has:n,get:o}=Le(t);let r=n.call(t,e);r||(e=ht(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&be(t,"delete",e,void 0),i}function He(){const e=ht(this),t=0!==e.size,n=e.clear();return t&&be(e,"clear",void 0,void 0),n}function We(e,t){return function(n,o){const r=this,i=r.__v_raw,s=ht(i),a=t?Me:e?De:Te;return!e&&ge(s,0,ae),i.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}}function Ve(e,t,n){return function(...o){const r=this.__v_raw,i=ht(r),s=E(i),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=r[e](...o),d=n?Me:t?De:Te;return!t&&ge(i,0,l?le:ae),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function Ue(e){return function(...t){return"delete"!==e&&this}}function Ke(){const e={get(e){return Pe(this,e)},get size(){return ze(this)},has:Oe,add:Ie,set:je,delete:Ne,clear:He,forEach:We(!1,!1)},t={get(e){return Pe(this,e,!1,!0)},get size(){return ze(this)},has:Oe,add:Ie,set:je,delete:Ne,clear:He,forEach:We(!1,!0)},n={get(e){return Pe(this,e,!0)},get size(){return ze(this,!0)},has(e){return Oe.call(this,e,!0)},add:Ue("add"),set:Ue("set"),delete:Ue("delete"),clear:Ue("clear"),forEach:We(!0,!1)},o={get(e){return Pe(this,e,!0,!0)},get size(){return ze(this,!0)},has(e){return Oe.call(this,e,!0)},add:Ue("add"),set:Ue("set"),delete:Ue("delete"),clear:Ue("clear"),forEach:We(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Ve(r,!1,!1),n[r]=Ve(r,!0,!1),t[r]=Ve(r,!1,!0),o[r]=Ve(r,!0,!0)})),[e,n,t,o]}const[Ge,Ye,qe,Xe]=Ke();function Ze(e,t){const n=t?e?Xe:qe:e?Ye:Ge;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(k(n,o)&&o in t?n:t,o,r)}const Je={get:Ze(!1,!1)},Qe={get:Ze(!1,!0)},et={get:Ze(!0,!1)},tt=new WeakMap,nt=new WeakMap,ot=new WeakMap,rt=new WeakMap;function it(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>L(e).slice(8,-1))(e))}function st(e){return e&&e.__v_isReadonly?e:lt(e,!1,_e,Je,tt)}function at(e){return lt(e,!0,Re,et,ot)}function lt(e,t,n,o,r){if(!T(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const s=it(e);if(0===s)return e;const a=new Proxy(e,2===s?o:n);return r.set(e,a),a}function ct(e){return dt(e)?ct(e.__v_raw):!(!e||!e.__v_isReactive)}function dt(e){return!(!e||!e.__v_isReadonly)}function ut(e){return ct(e)||dt(e)}function ht(e){const t=e&&e.__v_raw;return t?ht(t):e}function pt(e){return Y(e,"__v_skip",!0),e}function ft(e){me()&&((e=ht(e)).dep||(e.dep=Q()),ve(e.dep))}function gt(e,t){(e=ht(e)).dep&&ye(e.dep)}const mt=e=>T(e)?st(e):e;function vt(e){return Boolean(e&&!0===e.__v_isRef)}function bt(e){return Ct(e,!1)}class yt{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ht(e),this._value=t?e:mt(e)}get value(){return ft(this),this._value}set value(e){e=this._shallow?e:ht(e),K(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:mt(e),gt(this))}}function Ct(e,t){return vt(e)?e:new yt(e,t)}function wt(e){return vt(e)?e.value:e}const xt={get:(e,t,n)=>wt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return vt(r)&&!vt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function St(e){return ct(e)?e:new Proxy(e,xt)}class At{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}function kt(e,t){const n=e[t];return vt(n)?n:new At(e,t)}class Ft{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new ce(e,(()=>{this._dirty||(this._dirty=!0,gt(this))})),this.__v_isReadonly=n}get value(){const e=ht(this);return ft(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Et(e,t){let n,o;_(e)?(n=e,o=v):(n=e.get,o=e.set);return new Ft(n,o,_(e)||!e.set)}Promise.resolve();function $t(e,t,...n){const o=e.vnode.props||g;let r=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:i}=o[e]||g;i?r=n.map((e=>e.trim())):t&&(r=n.map(q))}let a,l=o[a=U(t)]||o[a=U(N(t))];!l&&i&&(l=o[a=U(W(t))]),l&&Jo(l,e,6,r);const c=o[a+"Once"];if(c){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Jo(c,e,6,r)}}function _t(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let s={},a=!1;if(!_(e)){const o=e=>{const n=_t(e,t,!0);n&&(a=!0,x(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||a?(F(i)?i.forEach((e=>s[e]=null)):x(s,i),o.set(e,s),s):(o.set(e,null),null)}function Rt(e,t){return!(!e||!C(t))&&(t=t.slice(2).replace(/Once$/,""),k(e,t[0].toLowerCase()+t.slice(1))||k(e,W(t))||k(e,t))}let Bt=null,Tt=null;function Dt(e){const t=Bt;return Bt=e,Tt=e&&e.type.__scopeId||null,t}function Mt(e){Tt=e}function Lt(){Tt=null}function Pt(e,t=Bt,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&go(-1);const r=Dt(t),i=e(...n);return Dt(r),o._d&&go(1),i};return o._n=!0,o._c=!0,o._d=!0,o}function Ot(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[s],slots:a,attrs:l,emit:c,render:d,renderCache:u,data:h,setupState:p,ctx:f,inheritAttrs:g}=e;let m;const v=Dt(e);try{let e;if(4&n.shapeFlag){const t=r||o;m=_o(d.call(t,t,u,i,p,h,f)),e=l}else{const n=t;0,m=_o(n.length>1?n(i,{attrs:l,slots:a,emit:c}):n(i,null)),e=t.props?l:zt(l)}let v=m;if(e&&!1!==g){const t=Object.keys(e),{shapeFlag:n}=v;t.length&&7&n&&(s&&t.some(w)&&(e=It(e,s)),v=Fo(v,e))}0,n.dirs&&(v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),m=v}catch(b){uo.length=0,Qo(b,e,1),m=ko(lo)}return Dt(v),m}const zt=e=>{let t;for(const n in e)("class"===n||"style"===n||C(n))&&((t||(t={}))[n]=e[n]);return t},It=(e,t)=>{const n={};for(const o in e)w(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function jt(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Rt(n,i))return!0}return!1}function Nt(e,t){if(No){let n=No.provides;const o=No.parent&&No.parent.provides;o===n&&(n=No.provides=Object.create(o)),n[e]=t}else;}function Ht(e,t,n=!1){const o=No||Bt;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&_(t)?t.call(o.proxy):t}}function Wt(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cn((()=>{e.isMounted=!0})),hn((()=>{e.isUnmounting=!0})),e}const Vt=[Function,Array],Ut={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vt,onEnter:Vt,onAfterEnter:Vt,onEnterCancelled:Vt,onBeforeLeave:Vt,onLeave:Vt,onAfterLeave:Vt,onLeaveCancelled:Vt,onBeforeAppear:Vt,onAppear:Vt,onAfterAppear:Vt,onAppearCancelled:Vt},setup(e,{slots:t}){const n=Ho(),o=Wt();let r;return()=>{const i=t.default&&Zt(t.default(),!0);if(!i||!i.length)return;const s=ht(e),{mode:a}=s,l=i[0];if(o.isLeaving)return Yt(l);const c=qt(l);if(!c)return Yt(l);const d=Gt(c,s,o,n);Xt(c,d);const u=n.subTree,h=u&&qt(u);let p=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,p=!0)}if(h&&h.type!==lo&&(!Co(c,h)||p)){const e=Gt(h,s,o,n);if(Xt(h,e),"out-in"===a)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},Yt(l);"in-out"===a&&c.type!==lo&&(e.delayLeave=(e,t,n)=>{Kt(o,h)[String(h.key)]=h,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return l}}};function Kt(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Gt(e,t,n,o){const{appear:r,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:u,onLeave:h,onAfterLeave:p,onLeaveCancelled:f,onBeforeAppear:g,onAppear:m,onAfterAppear:v,onAppearCancelled:b}=t,y=String(e.key),C=Kt(n,e),w=(e,t)=>{e&&Jo(e,o,9,t)},x={mode:i,persisted:s,beforeEnter(t){let o=a;if(!n.isMounted){if(!r)return;o=g||a}t._leaveCb&&t._leaveCb(!0);const i=C[y];i&&Co(e,i)&&i.el._leaveCb&&i.el._leaveCb(),w(o,[t])},enter(e){let t=l,o=c,i=d;if(!n.isMounted){if(!r)return;t=m||l,o=v||c,i=b||d}let s=!1;const a=e._enterCb=t=>{s||(s=!0,w(t?i:o,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();w(u,[t]);let i=!1;const s=t._leaveCb=n=>{i||(i=!0,o(),w(n?f:p,[t]),t._leaveCb=void 0,C[r]===e&&delete C[r])};C[r]=e,h?(h(t,s),h.length<=1&&s()):s()},clone:e=>Gt(e,t,n,o)};return x}function Yt(e){if(en(e))return(e=Fo(e)).children=null,e}function qt(e){return en(e)?e.children?e.children[0]:void 0:e}function Xt(e,t){6&e.shapeFlag&&e.component?Xt(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zt(e,t=!1){let n=[],o=0;for(let r=0;r<e.length;r++){const i=e[r];i.type===so?(128&i.patchFlag&&o++,n=n.concat(Zt(i.children,t))):(t||i.type!==lo)&&n.push(i)}if(o>1)for(let r=0;r<n.length;r++)n[r].patchFlag=-2;return n}function Jt(e){return _(e)?{setup:e,name:e.name}:e}const Qt=e=>!!e.type.__asyncLoader,en=e=>e.type.__isKeepAlive;function tn(e,t){on(e,"a",t)}function nn(e,t){on(e,"da",t)}function on(e,t,n=No){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}e()});if(sn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)en(e.parent.vnode)&&rn(o,t,n,e),e=e.parent}}function rn(e,t,n,o){const r=sn(t,e,o,!0);pn((()=>{S(o[t],r)}),n)}function sn(e,t,n=No,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;pe(),Wo(n);const r=Jo(t,n,e,o);return Vo(),fe(),r});return o?r.unshift(i):r.push(i),i}}const an=e=>(t,n=No)=>(!Ko||"sp"===e)&&sn(e,t,n),ln=an("bm"),cn=an("m"),dn=an("bu"),un=an("u"),hn=an("bum"),pn=an("um"),fn=an("sp"),gn=an("rtg"),mn=an("rtc");function vn(e,t=No){sn("ec",e,t)}let bn=!0;function yn(e){const t=xn(e),n=e.proxy,o=e.ctx;bn=!1,t.beforeCreate&&Cn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:s,watch:a,provide:l,inject:c,created:d,beforeMount:u,mounted:h,beforeUpdate:p,updated:f,activated:g,deactivated:m,beforeDestroy:b,beforeUnmount:y,destroyed:C,unmounted:w,render:x,renderTracked:S,renderTriggered:A,errorCaptured:k,serverPrefetch:E,expose:$,inheritAttrs:R,components:B,directives:D,filters:M}=t;if(c&&function(e,t,n=v,o=!1){F(e)&&(e=Fn(e));for(const r in e){const n=e[r];let i;i=T(n)?"default"in n?Ht(n.from||r,n.default,!0):Ht(n.from||r):Ht(n),vt(i)&&o?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[r]=i}}(c,o,null,e.appContext.config.unwrapInjectedRef),s)for(const v in s){const e=s[v];_(e)&&(o[v]=e.bind(n))}if(r){const t=r.call(n,n);T(t)&&(e.data=st(t))}if(bn=!0,i)for(const F in i){const e=i[F],t=Et({get:_(e)?e.bind(n,n):_(e.get)?e.get.bind(n,n):v,set:!_(e)&&_(e.set)?e.set.bind(n):v});Object.defineProperty(o,F,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(a)for(const v in a)wn(a[v],o,n,v);if(l){const e=_(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Nt(t,e[t])}))}function L(e,t){F(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&Cn(d,e,"c"),L(ln,u),L(cn,h),L(dn,p),L(un,f),L(tn,g),L(nn,m),L(vn,k),L(mn,S),L(gn,A),L(hn,y),L(pn,w),L(fn,E),F($))if($.length){const t=e.exposed||(e.exposed={});$.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===v&&(e.render=x),null!=R&&(e.inheritAttrs=R),B&&(e.components=B),D&&(e.directives=D)}function Cn(e,t,n){Jo(F(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function wn(e,t,n,o){const r=o.includes(".")?Fr(n,o):()=>n[o];if(R(e)){const n=t[e];_(n)&&Sr(r,n)}else if(_(e))Sr(r,e.bind(n));else if(T(e))if(F(e))e.forEach((e=>wn(e,t,n,o)));else{const o=_(e.handler)?e.handler.bind(n):t[e.handler];_(o)&&Sr(r,o,e)}}function xn(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:r.length||n||o?(l={},r.length&&r.forEach((e=>Sn(l,e,s,!0))),Sn(l,t,s)):l=t,i.set(t,l),l}function Sn(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Sn(e,i,n,!0),r&&r.forEach((t=>Sn(e,t,n,!0)));for(const s in t)if(o&&"expose"===s);else{const o=An[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const An={data:kn,props:$n,emits:$n,methods:$n,computed:$n,beforeCreate:En,created:En,beforeMount:En,mounted:En,beforeUpdate:En,updated:En,beforeDestroy:En,beforeUnmount:En,destroyed:En,unmounted:En,activated:En,deactivated:En,errorCaptured:En,serverPrefetch:En,components:$n,directives:$n,watch:function(e,t){if(!e)return t;if(!t)return e;const n=x(Object.create(null),e);for(const o in t)n[o]=En(e[o],t[o]);return n},provide:kn,inject:function(e,t){return $n(Fn(e),Fn(t))}};function kn(e,t){return t?e?function(){return x(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function Fn(e){if(F(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function En(e,t){return e?[...new Set([].concat(e,t))]:t}function $n(e,t){return e?x(x(Object.create(null),e),t):t}function _n(e,t,n,o=!1){const r={},i={};Y(i,wo,1),e.propsDefaults=Object.create(null),Rn(e,t,r,i);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=o?r:lt(r,!1,Be,Qe,nt):e.type.props?e.props=r:e.props=i,e.attrs=i}function Rn(e,t,n,o){const[r,i]=e.propsOptions;let s,a=!1;if(t)for(let l in t){if(z(l))continue;const c=t[l];let d;r&&k(r,d=N(l))?i&&i.includes(d)?(s||(s={}))[d]=c:n[d]=c:Rt(e.emitsOptions,l)||c!==o[l]&&(o[l]=c,a=!0)}if(i){const t=ht(n),o=s||g;for(let s=0;s<i.length;s++){const a=i[s];n[a]=Bn(r,t,a,o[a],e,!k(o,a))}}return a}function Bn(e,t,n,o,r,i){const s=e[n];if(null!=s){const e=k(s,"default");if(e&&void 0===o){const e=s.default;if(s.type!==Function&&_(e)){const{propsDefaults:i}=r;n in i?o=i[n]:(Wo(r),o=i[n]=e.call(null,t),Vo())}else o=e}s[0]&&(i&&!e?o=!1:!s[1]||""!==o&&o!==W(n)||(o=!0))}return o}function Tn(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,s={},a=[];let l=!1;if(!_(e)){const o=e=>{l=!0;const[n,o]=Tn(e,t,!0);x(s,n),o&&a.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!l)return o.set(e,m),m;if(F(i))for(let d=0;d<i.length;d++){const e=N(i[d]);Dn(e)&&(s[e]=g)}else if(i)for(const d in i){const e=N(d);if(Dn(e)){const t=i[d],n=s[e]=F(t)||_(t)?{type:t}:t;if(n){const t=Pn(Boolean,n.type),o=Pn(String,n.type);n[0]=t>-1,n[1]=o<0||t<o,(t>-1||k(n,"default"))&&a.push(e)}}}const c=[s,a];return o.set(e,c),c}function Dn(e){return"$"!==e[0]}function Mn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Ln(e,t){return Mn(e)===Mn(t)}function Pn(e,t){return F(t)?t.findIndex((t=>Ln(t,e))):_(t)&&Ln(t,e)?0:-1}const On=e=>"_"===e[0]||"$stable"===e,zn=e=>F(e)?e.map(_o):[_o(e)],In=(e,t,n)=>{const o=Pt(((...e)=>zn(t(...e))),n);return o._c=!1,o},jn=(e,t,n)=>{const o=e._ctx;for(const r in e){if(On(r))continue;const n=e[r];if(_(n))t[r]=In(0,n,o);else if(null!=n){const e=zn(n);t[r]=()=>e}}},Nn=(e,t)=>{const n=zn(t);e.slots.default=()=>n};function Hn(e,t){if(null===Bt)return e;const n=Bt.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[e,i,s,a=g]=t[r];_(e)&&(e={mounted:e,updated:e}),e.deep&&Er(i),o.push({dir:e,instance:n,value:i,oldValue:void 0,arg:s,modifiers:a})}return e}function Wn(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let s=0;s<r.length;s++){const a=r[s];i&&(a.oldValue=i[s].value);let l=a.dir[o];l&&(pe(),Jo(l,n,8,[e.el,a,e,t]),fe())}}function Vn(){return{app:null,config:{isNativeTag:b,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Un=0;function Kn(e,t){return function(n,o=null){null==o||T(o)||(o=null);const r=Vn(),i=new Set;let s=!1;const a=r.app={_uid:Un++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:_r,get config(){return r.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&_(e.install)?(i.add(e),e.install(a,...t)):_(e)&&(i.add(e),e(a,...t))),a),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),a),component:(e,t)=>t?(r.components[e]=t,a):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,a):r.directives[e],mount(i,l,c){if(!s){const d=ko(n,o);return d.appContext=r,l&&t?t(d,i):e(d,i,c),s=!0,a._container=i,i.__vue_app__=a,d.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,a)};return a}}const Gn=function(e,t){t&&t.pendingBranch?F(e)?t.effects.push(...e):t.effects.push(e):mr(e,lr,ar,cr)};function Yn(e){return function(e,t){const{insert:n,remove:o,patchProp:r,createElement:i,createText:s,createComment:a,setText:l,setElementText:c,parentNode:d,nextSibling:u,setScopeId:h=v,cloneNode:p,insertStaticContent:f}=e,b=(e,t,n,o=null,r=null,i=null,s=!1,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Co(e,t)&&(o=te(e),q(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case ao:y(e,t,n,o);break;case lo:C(e,t,n,o);break;case co:null==e&&w(t,n,o,s);break;case so:M(e,t,n,o,r,i,s,a,l);break;default:1&u?F(e,t,n,o,r,i,s,a,l):6&u?L(e,t,n,o,r,i,s,a,l):(64&u||128&u)&&c.process(e,t,n,o,r,i,s,a,l,oe)}null!=d&&r&&qn(d,e&&e.ref,i,t||e,!t)},y=(e,t,o,r)=>{if(null==e)n(t.el=s(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},C=(e,t,o,r)=>{null==e?n(t.el=a(t.children||""),o,r):t.el=e.el},w=(e,t,n,o)=>{[e.el,e.anchor]=f(e.children,t,n,o)},S=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=u(e),n(e,o,r),e=i;n(t,o,r)},A=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=u(e),o(e),e=n;o(t)},F=(e,t,n,o,r,i,s,a,l)=>{s=s||"svg"===t.type,null==e?E(t,n,o,r,i,s,a,l):R(e,t,r,i,s,a,l)},E=(e,t,o,s,a,l,d,u)=>{let h,f;const{type:g,props:m,shapeFlag:v,transition:b,patchFlag:y,dirs:C}=e;if(e.el&&void 0!==p&&-1===y)h=e.el=p(e.el);else{if(h=e.el=i(e.type,l,m&&m.is,m),8&v?c(h,e.children):16&v&&_(e.children,h,null,s,a,l&&"foreignObject"!==g,d,u),C&&Wn(e,null,s,"created"),m){for(const t in m)"value"===t||z(t)||r(h,t,null,m[t],l,e.children,s,a,ee);"value"in m&&r(h,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Xn(f,s,e)}$(h,e,e.scopeId,d,s)}C&&Wn(e,null,s,"beforeMount");const w=(!a||a&&!a.pendingBranch)&&b&&!b.persisted;w&&b.beforeEnter(h),n(h,t,o),((f=m&&m.onVnodeMounted)||w||C)&&Gn((()=>{f&&Xn(f,s,e),w&&b.enter(h),C&&Wn(e,null,s,"mounted")}),a)},$=(e,t,n,o,r)=>{if(n&&h(e,n),o)for(let i=0;i<o.length;i++)h(e,o[i]);if(r){if(t===r.subTree){const t=r.vnode;$(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},_=(e,t,n,o,r,i,s,a,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=a?Ro(e[c]):_o(e[c]);b(null,l,t,n,o,r,i,s,a)}},R=(e,t,n,o,i,s,a)=>{const l=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:h}=t;d|=16&e.patchFlag;const p=e.props||g,f=t.props||g;let m;(m=f.onVnodeBeforeUpdate)&&Xn(m,n,t,e),h&&Wn(t,e,n,"beforeUpdate");const v=i&&"foreignObject"!==t.type;if(u?B(e.dynamicChildren,u,l,n,o,v,s):a||H(e,t,l,null,n,o,v,s,!1),d>0){if(16&d)T(l,t,p,f,n,o,i);else if(2&d&&p.class!==f.class&&r(l,"class",null,f.class,i),4&d&&r(l,"style",p.style,f.style,i),8&d){const s=t.dynamicProps;for(let t=0;t<s.length;t++){const a=s[t],c=p[a],d=f[a];d===c&&"value"!==a||r(l,a,c,d,i,e.children,n,o,ee)}}1&d&&e.children!==t.children&&c(l,t.children)}else a||null!=u||T(l,t,p,f,n,o,i);((m=f.onVnodeUpdated)||h)&&Gn((()=>{m&&Xn(m,n,t,e),h&&Wn(t,e,n,"updated")}),o)},B=(e,t,n,o,r,i,s)=>{for(let a=0;a<t.length;a++){const l=e[a],c=t[a],u=l.el&&(l.type===so||!Co(l,c)||70&l.shapeFlag)?d(l.el):n;b(l,c,u,null,o,r,i,s,!0)}},T=(e,t,n,o,i,s,a)=>{if(n!==o){for(const l in o){if(z(l))continue;const c=o[l],d=n[l];c!==d&&"value"!==l&&r(e,l,d,c,a,t.children,i,s,ee)}if(n!==g)for(const l in n)z(l)||l in o||r(e,l,n[l],null,a,t.children,i,s,ee);"value"in o&&r(e,"value",n.value,o.value)}},M=(e,t,o,r,i,a,l,c,d)=>{const u=t.el=e?e.el:s(""),h=t.anchor=e?e.anchor:s("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(u,o,r),n(h,o,r),_(t.children,o,h,i,a,l,c,d)):p>0&&64&p&&f&&e.dynamicChildren?(B(e.dynamicChildren,f,o,i,a,l,c),(null!=t.key||i&&t===i.subTree)&&Zn(e,t,!0)):H(e,t,o,h,i,a,l,c,d)},L=(e,t,n,o,r,i,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,s,l):P(t,n,o,r,i,s,l):O(e,t,l)},P=(e,t,n,o,r,i,s)=>{const a=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Io,i={uid:jo++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,update:null,scope:new J(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Tn(o,r),emitsOptions:_t(o,r),emit:null,emitted:null,propsDefaults:g,inheritAttrs:o.inheritAttrs,ctx:g,data:g,props:g,attrs:g,slots:g,refs:g,setupState:g,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i},i.root=t?t.root:i,i.emit=$t.bind(null,i),e.ce&&e.ce(i);return i}(e,o,r);if(en(e)&&(a.ctx.renderer=oe),function(e,t=!1){Ko=t;const{props:n,children:o}=e.vnode,r=Uo(e);_n(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=ht(t),Y(t,"_",n)):jn(t,e.slots={})}else e.slots={},t&&Nn(e,t);Y(e.slots,wo,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=pt(new Proxy(e.ctx,zo));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(ge(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Wo(e),pe();const r=Zo(o,e,0,[e.props,n]);if(fe(),Vo(),D(r)){if(r.then(Vo,Vo),t)return r.then((t=>{Go(e,t)})).catch((t=>{Qo(t,e,0)}));e.asyncDep=r}else Go(e,r)}else Yo(e)}(e,t):void 0;Ko=!1}(a),a.asyncDep){if(r&&r.registerDep(a,I),!e.el){const e=a.subTree=ko(lo);C(null,e,t,n)}}else I(a,e,t,n,r,i,s)},O=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:s,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!a||a&&a.$stable)||o!==s&&(o?!s||jt(o,s,c):!!s);if(1024&l)return!0;if(16&l)return o?jt(o,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==o[n]&&!Rt(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void j(o,t,n);o.next=t,function(e){const t=nr.indexOf(e);t>or&&nr.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},I=(e,t,n,o,r,i,s)=>{const a=new ce((()=>{if(e.isMounted){let t,{next:n,bu:o,u:l,parent:c,vnode:u}=e,h=n;a.allowRecurse=!1,n?(n.el=u.el,j(e,n,s)):n=u,o&&G(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Xn(t,c,n,u),a.allowRecurse=!0;const p=Ot(e),f=e.subTree;e.subTree=p,b(f,p,d(f.el),te(f),e,r,i),n.el=p.el,null===h&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,p.el),l&&Gn(l,r),(t=n.props&&n.props.onVnodeUpdated)&&Gn((()=>Xn(t,c,n,u)),r)}else{let s;const{el:l,props:c}=t,{bm:d,m:u,parent:h}=e,p=Qt(t);if(a.allowRecurse=!1,d&&G(d),!p&&(s=c&&c.onVnodeBeforeMount)&&Xn(s,h,t),a.allowRecurse=!0,l&&ie){const n=()=>{e.subTree=Ot(e),ie(l,e.subTree,e,r,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=Ot(e);b(null,s,n,o,e,r,i),t.el=s.el}if(u&&Gn(u,r),!p&&(s=c&&c.onVnodeMounted)){const e=t;Gn((()=>Xn(s,h,e)),r)}256&t.shapeFlag&&e.a&&Gn(e.a,r),e.isMounted=!0,t=n=o=null}}),(()=>fr(e.update)),e.scope),l=e.update=a.run.bind(a);l.id=e.uid,a.allowRecurse=l.allowRecurse=!0,l()},j=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:s}}=e,a=ht(r),[l]=e.propsOptions;let c=!1;if(!(o||s>0)||16&s){let o;Rn(e,t,r,i)&&(c=!0);for(const i in a)t&&(k(t,i)||(o=W(i))!==i&&k(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(r[i]=Bn(l,a,i,void 0,e,!0)):delete r[i]);if(i!==a)for(const e in i)t&&k(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let s=n[o];const d=t[s];if(l)if(k(i,s))d!==i[s]&&(i[s]=d,c=!0);else{const t=N(s);r[t]=Bn(l,a,t,d,e,!1)}else d!==i[s]&&(i[s]=d,c=!0)}}c&&be(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,s=g;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(x(r,t),n||1!==e||delete r._):(i=!t.$stable,jn(t,r)),s=t}else t&&(Nn(e,t),s={default:1});if(i)for(const a in r)On(a)||a in s||delete r[a]})(e,t.children,n),pe(),vr(void 0,e.update),fe()},H=(e,t,n,o,r,i,s,a,l=!1)=>{const d=e&&e.children,u=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void U(d,h,n,o,r,i,s,a,l);if(256&p)return void V(d,h,n,o,r,i,s,a,l)}8&f?(16&u&&ee(d,r,i),h!==d&&c(n,h)):16&u?16&f?U(d,h,n,o,r,i,s,a,l):ee(d,r,i,!0):(8&u&&c(n,""),16&f&&_(h,n,o,r,i,s,a,l))},V=(e,t,n,o,r,i,s,a,l)=>{t=t||m;const c=(e=e||m).length,d=t.length,u=Math.min(c,d);let h;for(h=0;h<u;h++){const o=t[h]=l?Ro(t[h]):_o(t[h]);b(e[h],o,n,null,r,i,s,a,l)}c>d?ee(e,r,i,!0,!1,u):_(t,n,o,r,i,s,a,l,u)},U=(e,t,n,o,r,i,s,a,l)=>{let c=0;const d=t.length;let u=e.length-1,h=d-1;for(;c<=u&&c<=h;){const o=e[c],d=t[c]=l?Ro(t[c]):_o(t[c]);if(!Co(o,d))break;b(o,d,n,null,r,i,s,a,l),c++}for(;c<=u&&c<=h;){const o=e[u],c=t[h]=l?Ro(t[h]):_o(t[h]);if(!Co(o,c))break;b(o,c,n,null,r,i,s,a,l),u--,h--}if(c>u){if(c<=h){const e=h+1,u=e<d?t[e].el:o;for(;c<=h;)b(null,t[c]=l?Ro(t[c]):_o(t[c]),n,u,r,i,s,a,l),c++}}else if(c>h)for(;c<=u;)q(e[c],r,i,!0),c++;else{const p=c,f=c,g=new Map;for(c=f;c<=h;c++){const e=t[c]=l?Ro(t[c]):_o(t[c]);null!=e.key&&g.set(e.key,c)}let v,y=0;const C=h-f+1;let w=!1,x=0;const S=new Array(C);for(c=0;c<C;c++)S[c]=0;for(c=p;c<=u;c++){const o=e[c];if(y>=C){q(o,r,i,!0);continue}let d;if(null!=o.key)d=g.get(o.key);else for(v=f;v<=h;v++)if(0===S[v-f]&&Co(o,t[v])){d=v;break}void 0===d?q(o,r,i,!0):(S[d-f]=c+1,d>=x?x=d:w=!0,b(o,t[d],n,null,r,i,s,a,l),y++)}const A=w?function(e){const t=e.slice(),n=[0];let o,r,i,s,a;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(r=n[n.length-1],e[r]<l){t[o]=r,n.push(o);continue}for(i=0,s=n.length-1;i<s;)a=i+s>>1,e[n[a]]<l?i=a+1:s=a;l<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(S):m;for(v=A.length-1,c=C-1;c>=0;c--){const e=f+c,u=t[e],h=e+1<d?t[e+1].el:o;0===S[c]?b(null,u,n,h,r,i,s,a,l):w&&(v<0||c!==A[v]?K(u,n,h,2):v--)}}},K=(e,t,o,r,i=null)=>{const{el:s,type:a,transition:l,children:c,shapeFlag:d}=e;if(6&d)return void K(e.component.subTree,t,o,r);if(128&d)return void e.suspense.move(t,o,r);if(64&d)return void a.move(e,t,o,oe);if(a===so){n(s,t,o);for(let e=0;e<c.length;e++)K(c[e],t,o,r);return void n(e.anchor,t,o)}if(a===co)return void S(e,t,o);if(2!==r&&1&d&&l)if(0===r)l.beforeEnter(s),n(s,t,o),Gn((()=>l.enter(s)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,a=()=>n(s,t,o),c=()=>{e(s,(()=>{a(),i&&i()}))};r?r(s,a,c):c()}else n(s,t,o)},q=(e,t,n,o=!1,r=!1)=>{const{type:i,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:h}=e;if(null!=a&&qn(a,null,n,e,!0),256&d)return void t.ctx.deactivate(e);const p=1&d&&h,f=!Qt(e);let g;if(f&&(g=s&&s.onVnodeBeforeUnmount)&&Xn(g,t,e),6&d)Q(e.component,n,o);else{if(128&d)return void e.suspense.unmount(n,o);p&&Wn(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,r,oe,o):c&&(i!==so||u>0&&64&u)?ee(c,t,n,!1,!0):(i===so&&384&u||!r&&16&d)&&ee(l,t,n),o&&X(e)}(f&&(g=s&&s.onVnodeUnmounted)||p)&&Gn((()=>{g&&Xn(g,t,e),p&&Wn(e,null,t,"unmounted")}),n)},X=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===so)return void Z(n,r);if(t===co)return void A(e);const s=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,r=()=>t(n,s);o?o(e.el,s,r):r()}else s()},Z=(e,t)=>{let n;for(;e!==t;)n=u(e),o(e),e=n;o(t)},Q=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:s,um:a}=e;o&&G(o),r.stop(),i&&(i.active=!1,q(s,e,t,n)),a&&Gn(a,t),Gn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let s=i;s<e.length;s++)q(e[s],t,n,o,r)},te=e=>6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():u(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),br(),t._vnode=e},oe={p:b,um:q,m:K,r:X,mt:P,mc:_,pc:H,pbc:B,n:te,o:e};let re,ie;t&&([re,ie]=t(oe));return{render:ne,hydrate:re,createApp:Kn(ne,re)}}(e)}function qn(e,t,n,o,r=!1){if(F(e))return void e.forEach(((e,i)=>qn(e,t&&(F(t)?t[i]:t),n,o,r)));if(Qt(o)&&!r)return;const i=4&o.shapeFlag?qo(o.component)||o.component.proxy:o.el,s=r?null:i,{i:a,r:l}=e,c=t&&t.r,d=a.refs===g?a.refs={}:a.refs,u=a.setupState;if(null!=c&&c!==l&&(R(c)?(d[c]=null,k(u,c)&&(u[c]=null)):vt(c)&&(c.value=null)),R(l)){const e=()=>{d[l]=s,k(u,l)&&(u[l]=s)};s?(e.id=-1,Gn(e,n)):e()}else if(vt(l)){const e=()=>{l.value=s};s?(e.id=-1,Gn(e,n)):e()}else _(l)&&Zo(l,a,12,[s,d])}function Xn(e,t,n,o=null){Jo(e,t,7,[n,o])}function Zn(e,t,n=!1){const o=e.children,r=t.children;if(F(o)&&F(r))for(let i=0;i<o.length;i++){const e=o[i];let t=r[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[i]=Ro(r[i]),t.el=e.el),n||Zn(e,t))}}const Jn=e=>e&&(e.disabled||""===e.disabled),Qn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,eo=(e,t)=>{const n=e&&e.to;if(R(n)){if(t){return t(n)}return null}return n};function to(e,t,n,{o:{insert:o},m:r},i=2){0===i&&o(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:c,props:d}=e,u=2===i;if(u&&o(s,t,n),(!u||Jn(d))&&16&l)for(let h=0;h<c.length;h++)r(c[h],t,n,2);u&&o(a,t,n)}const no={__isTeleport:!0,process(e,t,n,o,r,i,s,a,l,c){const{mc:d,pc:u,pbc:h,o:{insert:p,querySelector:f,createText:g,createComment:m}}=c,v=Jn(t.props);let{shapeFlag:b,children:y,dynamicChildren:C}=t;if(null==e){const e=t.el=g(""),c=t.anchor=g("");p(e,n,o),p(c,n,o);const u=t.target=eo(t.props,f),h=t.targetAnchor=g("");u&&(p(h,u),s=s||Qn(u));const m=(e,t)=>{16&b&&d(y,e,t,r,i,s,a,l)};v?m(n,c):u&&m(u,h)}else{t.el=e.el;const o=t.anchor=e.anchor,d=t.target=e.target,p=t.targetAnchor=e.targetAnchor,g=Jn(e.props),m=g?n:d,b=g?o:p;if(s=s||Qn(d),C?(h(e.dynamicChildren,C,m,r,i,s,a),Zn(e,t,!0)):l||u(e,t,m,b,r,i,s,a,!1),v)g||to(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=eo(t.props,f);e&&to(t,e,null,c,0)}else g&&to(t,d,p,c,1)}},remove(e,t,n,o,{um:r,o:{remove:i}},s){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:u,props:h}=e;if(u&&i(d),(s||!Jn(h))&&(i(c),16&a))for(let p=0;p<l.length;p++){const e=l[p];r(e,t,n,!0,!!e.dynamicChildren)}},move:to,hydrate:function(e,t,n,o,r,i,{o:{nextSibling:s,parentNode:a,querySelector:l}},c){const d=t.target=eo(t.props,l);if(d){const l=d._lpa||d.firstChild;16&t.shapeFlag&&(Jn(t.props)?(t.anchor=c(s(e),t,a(e),n,o,r,i),t.targetAnchor=l):(t.anchor=s(e),t.targetAnchor=c(l,t,d,n,o,r,i)),d._lpa=t.targetAnchor&&s(t.targetAnchor))}return t.anchor&&s(t.anchor)}};function oo(e,t){return function(e,t,n=!0,o=!1){const r=Bt||No;if(r){const n=r.type;if("components"===e){const e=Xo(n);if(e&&(e===t||e===N(t)||e===V(N(t))))return n}const i=io(r[e]||n[e],t)||io(r.appContext[e],t);return!i&&o?n:i}}("components",e,!0,t)||e}const ro=Symbol();function io(e,t){return e&&(e[t]||e[N(t)]||e[V(N(t))])}const so=Symbol(void 0),ao=Symbol(void 0),lo=Symbol(void 0),co=Symbol(void 0),uo=[];let ho=null;function po(e=!1){uo.push(ho=e?null:[])}let fo=1;function go(e){fo+=e}function mo(e){return e.dynamicChildren=fo>0?ho||m:null,uo.pop(),ho=uo[uo.length-1]||null,fo>0&&ho&&ho.push(e),e}function vo(e,t,n,o,r,i){return mo(Ao(e,t,n,o,r,i,!0))}function bo(e,t,n,o,r){return mo(ko(e,t,n,o,r,!0))}function yo(e){return!!e&&!0===e.__v_isVNode}function Co(e,t){return e.type===t.type&&e.key===t.key}const wo="__vInternal",xo=({key:e})=>null!=e?e:null,So=({ref:e})=>null!=e?R(e)||vt(e)||_(e)?{i:Bt,r:e}:e:null;function Ao(e,t=null,n=null,o=0,r=null,i=(e===so?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xo(t),ref:t&&So(t),scopeId:Tt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return a?(Bo(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=R(n)?8:16),fo>0&&!s&&ho&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&ho.push(l),l}const ko=function(e,t=null,n=null,o=0,r=null,i=!1){e&&e!==ro||(e=lo);if(yo(e)){const o=Fo(e,t,!0);return n&&Bo(o,n),o}s=e,_(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=function(e){return e?ut(e)||wo in e?x({},e):e:null}(t);let{class:e,style:n}=t;e&&!R(e)&&(t.class=h(e)),T(n)&&(ut(n)&&!F(n)&&(n=x({},n)),t.style=l(n))}const a=R(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:T(e)?4:_(e)?2:0;return Ao(e,t,n,o,r,a,i,!0)};function Fo(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:s}=e,a=t?To(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&xo(a),ref:t&&t.ref?n&&r?F(r)?r.concat(So(t)):[r,So(t)]:So(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==so?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Fo(e.ssContent),ssFallback:e.ssFallback&&Fo(e.ssFallback),el:e.el,anchor:e.anchor}}function Eo(e=" ",t=0){return ko(ao,null,e,t)}function $o(e="",t=!1){return t?(po(),bo(lo,null,e)):ko(lo,null,e)}function _o(e){return null==e||"boolean"==typeof e?ko(lo):F(e)?ko(so,null,e.slice()):"object"==typeof e?Ro(e):ko(ao,null,String(e))}function Ro(e){return null===e.el||e.memo?e:Fo(e)}function Bo(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(F(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Bo(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||wo in t?3===o&&Bt&&(1===Bt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Bt}}else _(t)?(t={default:t,_ctx:Bt},n=32):(t=String(t),64&o?(n=16,t=[Eo(t)]):n=8);e.children=t,e.shapeFlag|=n}function To(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=h([t.class,o.class]));else if("style"===e)t.style=l([t.style,o.style]);else if(C(e)){const n=t[e],r=o[e];n!==r&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}function Do(e,t,n,o){let r;const i=n&&n[o];if(F(e)||R(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i&&i[n])}else if(T(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,s=n.length;o<s;o++){const s=n[o];r[o]=t(e[s],s,o,i&&i[o])}}else r=[];return n&&(n[o]=r),r}function Mo(e,t,n={},o,r){if(Bt.isCE)return ko("slot","default"===t?null:{name:t},o&&o());let i=e[t];i&&i._c&&(i._d=!1),po();const s=i&&Lo(i(n)),a=bo(so,{key:n.key||`_${t}`},s||(o?o():[]),s&&1===e._?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Lo(e){return e.some((e=>!yo(e)||e.type!==lo&&!(e.type===so&&!Lo(e.children))))?e:null}const Po=e=>e?Uo(e)?qo(e)||e.proxy:Po(e.parent):null,Oo=x(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Po(e.parent),$root:e=>Po(e.root),$emit:e=>e.emit,$options:e=>xn(e),$forceUpdate:e=>()=>fr(e.update),$nextTick:e=>pr.bind(e.proxy),$watch:e=>kr.bind(e)}),zo={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:s,type:a,appContext:l}=e;let c;if("$"!==t[0]){const a=s[t];if(void 0!==a)switch(a){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return i[t]}else{if(o!==g&&k(o,t))return s[t]=0,o[t];if(r!==g&&k(r,t))return s[t]=1,r[t];if((c=e.propsOptions[0])&&k(c,t))return s[t]=2,i[t];if(n!==g&&k(n,t))return s[t]=3,n[t];bn&&(s[t]=4)}}const d=Oo[t];let u,h;return d?("$attrs"===t&&ge(e,0,t),d(e)):(u=a.__cssModules)&&(u=u[t])?u:n!==g&&k(n,t)?(s[t]=3,n[t]):(h=l.config.globalProperties,k(h,t)?h[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==g&&k(r,t))r[t]=n;else if(o!==g&&k(o,t))o[t]=n;else if(k(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},s){let a;return void 0!==n[s]||e!==g&&k(e,s)||t!==g&&k(t,s)||(a=i[0])&&k(a,s)||k(o,s)||k(Oo,s)||k(r.config.globalProperties,s)}},Io=Vn();let jo=0;let No=null;const Ho=()=>No||Bt,Wo=e=>{No=e,e.scope.on()},Vo=()=>{No&&No.scope.off(),No=null};function Uo(e){return 4&e.vnode.shapeFlag}let Ko=!1;function Go(e,t,n){_(t)?e.render=t:T(t)&&(e.setupState=St(t)),Yo(e)}function Yo(e,t,n){const o=e.type;e.render||(e.render=o.render||v),Wo(e),pe(),yn(e),fe(),Vo()}function qo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(St(pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Oo?Oo[n](e):void 0}))}function Xo(e){return _(e)&&e.displayName||e.name}function Zo(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){Qo(i,t,n)}return r}function Jo(e,t,n,o){if(_(e)){const r=Zo(e,t,n,o);return r&&D(r)&&r.catch((e=>{Qo(e,t,n)})),r}const r=[];for(let i=0;i<e.length;i++)r.push(Jo(e[i],t,n,o));return r}function Qo(e,t,n,o=!0){t&&t.vnode;if(t){let o=t.parent;const r=t.proxy,i=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Zo(s,null,10,[e,r,i])}!function(e,t,n,o=!0){console.error(e)}(e,0,0,o)}let er=!1,tr=!1;const nr=[];let or=0;const rr=[];let ir=null,sr=0;const ar=[];let lr=null,cr=0;const dr=Promise.resolve();let ur=null,hr=null;function pr(e){const t=ur||dr;return e?t.then(this?e.bind(this):e):t}function fr(e){nr.length&&nr.includes(e,er&&e.allowRecurse?or+1:or)||e===hr||(null==e.id?nr.push(e):nr.splice(function(e){let t=or+1,n=nr.length;for(;t<n;){const o=t+n>>>1;yr(nr[o])<e?t=o+1:n=o}return t}(e.id),0,e),gr())}function gr(){er||tr||(tr=!0,ur=dr.then(Cr))}function mr(e,t,n,o){F(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),gr()}function vr(e,t=null){if(rr.length){for(hr=t,ir=[...new Set(rr)],rr.length=0,sr=0;sr<ir.length;sr++)ir[sr]();ir=null,sr=0,hr=null,vr(e,t)}}function br(e){if(ar.length){const e=[...new Set(ar)];if(ar.length=0,lr)return void lr.push(...e);for(lr=e,lr.sort(((e,t)=>yr(e)-yr(t))),cr=0;cr<lr.length;cr++)lr[cr]();lr=null,cr=0}}const yr=e=>null==e.id?1/0:e.id;function Cr(e){tr=!1,er=!0,vr(e),nr.sort(((e,t)=>yr(e)-yr(t)));try{for(or=0;or<nr.length;or++){const e=nr[or];e&&!1!==e.active&&Zo(e,null,14)}}finally{or=0,nr.length=0,br(),er=!1,ur=null,(nr.length||rr.length||ar.length)&&Cr(e)}}function wr(e,t){return Ar(e,null,t)}const xr={};function Sr(e,t,n){return Ar(e,t,n)}function Ar(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:s}=g){const a=No;let l,c,d=!1,u=!1;if(vt(e)?(l=()=>e.value,d=!!e._shallow):ct(e)?(l=()=>e,o=!0):F(e)?(u=!0,d=e.some(ct),l=()=>e.map((e=>vt(e)?e.value:ct(e)?Er(e):_(e)?Zo(e,a,2):void 0))):l=_(e)?t?()=>Zo(e,a,2):()=>{if(!a||!a.isUnmounted)return c&&c(),Jo(e,a,3,[h])}:v,t&&o){const e=l;l=()=>Er(e())}let h=e=>{c=b.onStop=()=>{Zo(e,a,4)}},p=u?[]:xr;const f=()=>{if(b.active)if(t){const e=b.run();(o||d||(u?e.some(((e,t)=>K(e,p[t]))):K(e,p)))&&(c&&c(),Jo(t,a,3,[e,p===xr?void 0:p,h]),p=e)}else b.run()};let m;f.allowRecurse=!!t,m="sync"===r?f:"post"===r?()=>Gn(f,a&&a.suspense):()=>{!a||a.isMounted?function(e){mr(e,ir,rr,sr)}(f):f()};const b=new ce(l,m);return t?n?f():p=b.run():"post"===r?Gn(b.run.bind(b),a&&a.suspense):b.run(),()=>{b.stop(),a&&a.scope&&S(a.scope.effects,b)}}function kr(e,t,n){const o=this.proxy,r=R(e)?e.includes(".")?Fr(o,e):()=>o[e]:e.bind(o,o);let i;_(t)?i=t:(i=t.handler,n=t);const s=No;Wo(this);const a=Ar(r,i.bind(o),n);return s?Wo(s):Vo(),a}function Fr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Er(e,t=new Set){if(!T(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),vt(e))Er(e.value,t);else if(F(e))for(let n=0;n<e.length;n++)Er(e[n],t);else if($(e)||E(e))e.forEach((e=>{Er(e,t)}));else if(P(e))for(const n in e)Er(e[n],t);return e}function $r(e,t,n){const o=arguments.length;return 2===o?T(t)&&!F(t)?yo(t)?ko(e,null,[t]):ko(e,t):ko(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&yo(n)&&(n=[n]),ko(e,t,n))}const _r="3.2.8",Rr="undefined"!=typeof document?document:null,Br=new Map,Tr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Rr.createElementNS("http://www.w3.org/2000/svg",e):Rr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Rr.createTextNode(e),createComment:e=>Rr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o){const r=n?n.previousSibling:t.lastChild;let i=Br.get(e);if(!i){const t=Rr.createElement("template");if(t.innerHTML=o?`<svg>${e}</svg>`:e,i=t.content,o){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}Br.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Dr=/\s*!important$/;function Mr(e,t,n){if(F(n))n.forEach((n=>Mr(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Pr[t];if(n)return n;let o=N(t);if("filter"!==o&&o in e)return Pr[t]=o;o=V(o);for(let r=0;r<Lr.length;r++){const n=Lr[r]+o;if(n in e)return Pr[t]=n}return t}(e,t);Dr.test(n)?e.setProperty(W(o),n.replace(Dr,""),"important"):e[o]=n}}const Lr=["Webkit","Moz","ms"],Pr={};const Or="http://www.w3.org/1999/xlink";let zr=Date.now,Ir=!1;if("undefined"!=typeof window){zr()>document.createEvent("Event").timeStamp&&(zr=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Ir=!!(e&&Number(e[1])<=53)}let jr=0;const Nr=Promise.resolve(),Hr=()=>{jr=0};function Wr(e,t,n,o,r=null){const i=e._vei||(e._vei={}),s=i[t];if(o&&s)s.value=o;else{const[n,a]=function(e){let t;if(Vr.test(e)){let n;for(t={};n=e.match(Vr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[W(e.slice(2)),t]}(t);if(o){!function(e,t,n,o){e.addEventListener(t,n,o)}(e,n,i[t]=function(e,t){const n=e=>{const o=e.timeStamp||zr();(Ir||o>=n.attached-1)&&Jo(function(e,t){if(F(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>jr||(Nr.then(Hr),jr=zr()))(),n}(o,r),a)}else s&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,s,a),i[t]=void 0)}}const Vr=/(?:Once|Passive|Capture)$/;const Ur=/^on[a-z]/;const Kr=(e,{slots:t})=>$r(Ut,Zr(e),t);Kr.displayName="Transition";const Gr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Yr=Kr.props=x({},Ut.props,Gr),qr=(e,t=[])=>{F(e)?e.forEach((e=>e(...t))):e&&e(...t)},Xr=e=>!!e&&(F(e)?e.some((e=>e.length>1)):e.length>1);function Zr(e){const t={};for(const x in e)x in Gr||(t[x]=e[x]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=s,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(T(e))return[Jr(e.enter),Jr(e.leave)];{const t=Jr(e);return[t,t]}}(r),g=f&&f[0],m=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:C,onLeaveCancelled:w,onBeforeAppear:S=v,onAppear:A=b,onAppearCancelled:k=y}=t,F=(e,t,n)=>{ei(e,t?d:a),ei(e,t?c:s),n&&n()},E=(e,t)=>{ei(e,p),ei(e,h),t&&t()},$=e=>(t,n)=>{const r=e?A:b,s=()=>F(t,e,n);qr(r,[t,s]),ti((()=>{ei(t,e?l:i),Qr(t,e?d:a),Xr(r)||oi(t,o,g,s)}))};return x(t,{onBeforeEnter(e){qr(v,[e]),Qr(e,i),Qr(e,s)},onBeforeAppear(e){qr(S,[e]),Qr(e,l),Qr(e,c)},onEnter:$(!1),onAppear:$(!0),onLeave(e,t){const n=()=>E(e,t);Qr(e,u),ai(),Qr(e,h),ti((()=>{ei(e,u),Qr(e,p),Xr(C)||oi(e,o,m,n)})),qr(C,[e,n])},onEnterCancelled(e){F(e,!1),qr(y,[e])},onAppearCancelled(e){F(e,!0),qr(k,[e])},onLeaveCancelled(e){E(e),qr(w,[e])}})}function Jr(e){return q(e)}function Qr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function ei(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ti(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ni=0;function oi(e,t,n,o){const r=e._endId=++ni,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:l}=ri(e,t);if(!s)return o();const c=s+"end";let d=0;const u=()=>{e.removeEventListener(c,h),i()},h=t=>{t.target===e&&++d>=l&&u()};setTimeout((()=>{d<l&&u()}),a+1),e.addEventListener(c,h)}function ri(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),i=o("transitionDuration"),s=ii(r,i),a=o("animationDelay"),l=o("animationDuration"),c=ii(a,l);let d=null,u=0,h=0;"transition"===t?s>0&&(d="transition",u=s,h=i.length):"animation"===t?c>0&&(d="animation",u=c,h=l.length):(u=Math.max(s,c),d=u>0?s>c?"transition":"animation":null,h=d?"transition"===d?i.length:l.length:0);return{type:d,timeout:u,propCount:h,hasTransform:"transition"===d&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function ii(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>si(t)+si(e[n]))))}function si(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ai(){return document.body.offsetHeight}const li=new WeakMap,ci=new WeakMap,di={name:"TransitionGroup",props:x({},Yr,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ho(),o=Wt();let r,i;return un((()=>{if(!r.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(o);const{hasTransform:i}=ri(o);return r.removeChild(o),i}(r[0].el,n.vnode.el,t))return;r.forEach(ui),r.forEach(hi);const o=r.filter(pi);ai(),o.forEach((e=>{const n=e.el,o=n.style;Qr(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n._moveCb=null,ei(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const s=ht(e),a=Zr(s);let l=s.tag||so;r=i,i=t.default?Zt(t.default()):[];for(let e=0;e<i.length;e++){const t=i[e];null!=t.key&&Xt(t,Gt(t,a,o,n))}if(r)for(let e=0;e<r.length;e++){const t=r[e];Xt(t,Gt(t,a,o,n)),li.set(t,t.el.getBoundingClientRect())}return ko(l,null,i)}}};function ui(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function hi(e){ci.set(e,e.el.getBoundingClientRect())}function pi(e){const t=li.get(e),n=ci.get(e),o=t.left-n.left,r=t.top-n.top;if(o||r){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${o}px,${r}px)`,t.transitionDuration="0s",e}}const fi={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):gi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),gi(e,!0),o.enter(e)):o.leave(e,(()=>{gi(e,!1)})):gi(e,t))},beforeUnmount(e,{value:t}){gi(e,t)}};function gi(e,t){e.style.display=t?e._vod:"none"}const mi=x({patchProp:(e,t,n,o,r=!1,i,l,c,d)=>{"class"===t?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style;if(n)if(R(n)){if(t!==n){const t=o.display;o.cssText=n,"_vod"in e&&(o.display=t)}}else{for(const e in n)Mr(o,e,n[e]);if(t&&!R(t))for(const e in t)null==n[e]&&Mr(o,e,"")}else e.removeAttribute("style")}(e,n,o):C(t)?w(t)||Wr(e,t,0,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ur.test(t)&&_(n));if("spellcheck"===t||"draggable"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Ur.test(t)&&R(n))return!1;return t in e}(e,t,o,r))?function(e,t,n,o,r,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,r,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const o=null==n?"":n;return e.value!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if("boolean"===o)return void(e[t]=a(n));if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(Fc){}return void e.removeAttribute(t)}}try{e[t]=n}catch(l){}}(e,t,o,i,l,c,d):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Or,t.slice(6,t.length)):e.setAttributeNS(Or,t,n);else{const o=s(t);null==n||o&&!a(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},Tr);let vi;const bi=(...e)=>{const t=(vi||(vi=Yn(mi))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(R(e)){return document.querySelector(e)}return e}(e);if(!o)return;const r=t._component;_(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};let yi=[];const Ci=new WeakMap;function wi(){yi.forEach((e=>e(...Ci.get(e)))),yi=[]}function xi(e,...t){Ci.set(e,t),yi.includes(e)||1===yi.push(e)&&requestAnimationFrame(wi)}function Si(e){if(null===e)return null;const t=function(e){return 9===e.nodeType?null:e.parentNode}(e);if(null===t)return null;if(9===t.nodeType)return document.documentElement;if(1===t.nodeType){const{overflow:e,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+o+n))return t}return Si(t)}function Ai(e,t){let{target:n}=e;for(;n;){if(n.dataset&&void 0!==n.dataset[t])return!0;n=n.parentElement}return!1}function ki(e,t){var n;if(null==e)return;const o=function(e){if("number"==typeof e)return{"":e.toString()};const t={};return e.split(/ +/).forEach((e=>{if(""===e)return;const[n,o]=e.split(":");void 0===o?t[""]=n:t[n]=o})),t}(e);if(void 0===t)return o[""];if("string"==typeof t)return null!==(n=o[t])&&void 0!==n?n:o[""];if(Array.isArray(t)){for(let e=t.length-1;e>=0;--e){const n=t[e];if(n in o)return o[n]}return o[""]}{let e,n=-1;return Object.keys(o).forEach((r=>{const i=Number(r);!Number.isNaN(i)&&t>=i&&i>=n&&(n=i,e=o[r])})),e}}function Fi(e){return"string"==typeof e?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Ei(e){if(null!=e)return"number"==typeof e?`${e}px`:e.endsWith("px")?e:`${e}px`}function $i(e,t){const n=e.trim().split(/\s+/g),o={top:n[0]};switch(n.length){case 1:o.right=n[0],o.bottom=n[0],o.left=n[0];break;case 2:o.right=n[1],o.left=n[1],o.bottom=n[0];break;case 3:o.right=n[1],o.bottom=n[2],o.left=n[1];break;case 4:o.right=n[1],o.bottom=n[2],o.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return void 0===t?o:o[t]}var _i={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"};const Ri="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Bi="([0-9A-Fa-f])",Ti="([0-9A-Fa-f]{2})",Di=new RegExp(`^\\s*rgb\\s*\\(${Ri},${Ri},${Ri}\\)\\s*$`),Mi=new RegExp(`^\\s*rgba\\s*\\(${Ri},${Ri},${Ri},${Ri}\\)\\s*$`),Li=new RegExp(`^\\s*#${Bi}${Bi}${Bi}\\s*$`),Pi=new RegExp(`^\\s*#${Ti}${Ti}${Ti}\\s*$`),Oi=new RegExp(`^\\s*#${Bi}${Bi}${Bi}${Bi}\\s*$`),zi=new RegExp(`^\\s*#${Ti}${Ti}${Ti}${Ti}\\s*$`);function Ii(e){return parseInt(e,16)}function ji(e){try{let t;if(t=Pi.exec(e))return[Ii(t[1]),Ii(t[2]),Ii(t[3]),1];if(t=Di.exec(e))return[Gi(t[1]),Gi(t[5]),Gi(t[9]),1];if(t=Mi.exec(e))return[Gi(t[1]),Gi(t[5]),Gi(t[9]),Ki(t[13])];if(t=Li.exec(e))return[Ii(t[1]+t[1]),Ii(t[2]+t[2]),Ii(t[3]+t[3]),1];if(t=zi.exec(e))return[Ii(t[1]),Ii(t[2]),Ii(t[3]),Ki(Ii(t[4])/255)];if(t=Oi.exec(e))return[Ii(t[1]+t[1]),Ii(t[2]+t[2]),Ii(t[3]+t[3]),Ki(Ii(t[4]+t[4])/255)];if(e in _i)return ji(_i[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Ni(e,t,n,o){return`rgba(${Gi(e)}, ${Gi(t)}, ${Gi(n)}, ${r=o,r>1?1:r<0?0:r})`;var r}function Hi(e,t,n,o,r){return Gi((e*t*(1-o)+n*o)/r)}function Wi(e,t){Array.isArray(e)||(e=ji(e)),Array.isArray(t)||(t=ji(t));const n=e[3],o=t[3],r=Ki(n+o-n*o);return Ni(Hi(e[0],n,t[0],o,r),Hi(e[1],n,t[1],o,r),Hi(e[2],n,t[2],o,r),r)}function Vi(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:ji(e);return t.alpha?Ni(n,o,r,t.alpha):Ni(n,o,r,i)}function Ui(e,t){const[n,o,r,i=1]=Array.isArray(e)?e:ji(e),{lightness:s=1,alpha:a=1}=t;return function(e){const[t,n,o]=e;if(3 in e)return`rgba(${Gi(t)}, ${Gi(n)}, ${Gi(o)}, ${Ki(e[3])})`;return`rgba(${Gi(t)}, ${Gi(n)}, ${Gi(o)}, 1)`}([n*s,o*s,r*s,i*a])}function Ki(e){const t=Math.round(100*Number(e))/100;return t>1?1:t<0?0:t}function Gi(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Yi(e=8){return Math.random().toString(16).slice(2,2+e)}function qi(e,t){const n=[];for(let o=0;o<e;++o)n.push(t);return n}const Xi=Symbol("formItem");function Zi(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:o}={}){const r=Ht(Xi,null);Nt(Xi,null);const i=Et(n?()=>n(r):()=>{const{size:n}=e;if(n)return n;if(r){const{mergedSize:e}=r;if(void 0!==e.value)return e.value}return t}),s=Et(o?()=>o(r):()=>{const{disabled:t}=e;return void 0!==t?t:!!r&&r.disabled.value});return hn((()=>{r&&r.restoreValidation()})),{mergedSizeRef:i,mergedDisabledRef:s,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}var Ji="object"==typeof global&&global&&global.Object===Object&&global,Qi="object"==typeof self&&self&&self.Object===Object&&self,es=Ji||Qi||Function("return this")(),ts=es.Symbol,ns=Object.prototype,os=ns.hasOwnProperty,rs=ns.toString,is=ts?ts.toStringTag:void 0;var ss=Object.prototype.toString;var as=ts?ts.toStringTag:void 0;function ls(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":as&&as in Object(e)?function(e){var t=os.call(e,is),n=e[is];try{e[is]=void 0;var o=!0}catch(i){}var r=rs.call(e);return o&&(t?e[is]=n:delete e[is]),r}(e):function(e){return ss.call(e)}(e)}function cs(e){return null!=e&&"object"==typeof e}function ds(e){return"symbol"==typeof e||cs(e)&&"[object Symbol]"==ls(e)}var us=Array.isArray,hs=ts?ts.prototype:void 0,ps=hs?hs.toString:void 0;function fs(e){if("string"==typeof e)return e;if(us(e))return function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}(e,fs)+"";if(ds(e))return ps?ps.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var gs=/\s/;var ms=/^\s+/;function vs(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&gs.test(e.charAt(t)););return t}(e)+1).replace(ms,""):e}function bs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var ys=/^[-+]0x[0-9a-f]+$/i,Cs=/^0b[01]+$/i,ws=/^0o[0-7]+$/i,xs=parseInt;function Ss(e){if("number"==typeof e)return e;if(ds(e))return NaN;if(bs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=bs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=vs(e);var n=Cs.test(e);return n||ws.test(e)?xs(e.slice(2),n?2:8):ys.test(e)?NaN:+e}function As(e){return e}function ks(e){if(!bs(e))return!1;var t=ls(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var Fs,Es=es["__core-js_shared__"],$s=(Fs=/[^.]+$/.exec(Es&&Es.keys&&Es.keys.IE_PROTO||""))?"Symbol(src)_1."+Fs:"";var _s=Function.prototype.toString;var Rs=/^\[object .+?Constructor\]$/,Bs=Function.prototype,Ts=Object.prototype,Ds=Bs.toString,Ms=Ts.hasOwnProperty,Ls=RegExp("^"+Ds.call(Ms).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ps(e){return!(!bs(e)||(t=e,$s&&$s in t))&&(ks(e)?Ls:Rs).test(function(e){if(null!=e){try{return _s.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t}function Os(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ps(n)?n:void 0}var zs=Object.create,Is=function(){function e(){}return function(t){if(!bs(t))return{};if(zs)return zs(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function js(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ns=Date.now;var Hs,Ws,Vs,Us=function(){try{var e=Os(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ks=(Hs=Us?function(e,t){return Us(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:As,Ws=0,Vs=0,function(){var e=Ns(),t=16-(e-Vs);if(Vs=e,t>0){if(++Ws>=800)return arguments[0]}else Ws=0;return Hs.apply(void 0,arguments)}),Gs=/^(?:0|[1-9]\d*)$/;function Ys(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Gs.test(e))&&e>-1&&e%1==0&&e<t}function qs(e,t,n){"__proto__"==t&&Us?Us(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Xs(e,t){return e===t||e!=e&&t!=t}var Zs=Object.prototype.hasOwnProperty;function Js(e,t,n){var o=e[t];Zs.call(e,t)&&Xs(o,n)&&(void 0!==n||t in e)||qs(e,t,n)}var Qs=Math.max;function ea(e,t){return Ks(function(e,t,n){return t=Qs(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=Qs(o.length-t,0),s=Array(i);++r<i;)s[r]=o[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=o[r];return a[t]=n(s),js(e,this,a)}}(e,t,As),e+"")}function ta(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function na(e){return null!=e&&ta(e.length)&&!ks(e)}var oa=Object.prototype;function ra(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||oa)}function ia(e){return cs(e)&&"[object Arguments]"==ls(e)}var sa=Object.prototype,aa=sa.hasOwnProperty,la=sa.propertyIsEnumerable,ca=ia(function(){return arguments}())?ia:function(e){return cs(e)&&aa.call(e,"callee")&&!la.call(e,"callee")};var da="object"==typeof exports&&exports&&!exports.nodeType&&exports,ua=da&&"object"==typeof module&&module&&!module.nodeType&&module,ha=ua&&ua.exports===da?es.Buffer:void 0,pa=(ha?ha.isBuffer:void 0)||function(){return!1},fa={};fa["[object Float32Array]"]=fa["[object Float64Array]"]=fa["[object Int8Array]"]=fa["[object Int16Array]"]=fa["[object Int32Array]"]=fa["[object Uint8Array]"]=fa["[object Uint8ClampedArray]"]=fa["[object Uint16Array]"]=fa["[object Uint32Array]"]=!0,fa["[object Arguments]"]=fa["[object Array]"]=fa["[object ArrayBuffer]"]=fa["[object Boolean]"]=fa["[object DataView]"]=fa["[object Date]"]=fa["[object Error]"]=fa["[object Function]"]=fa["[object Map]"]=fa["[object Number]"]=fa["[object Object]"]=fa["[object RegExp]"]=fa["[object Set]"]=fa["[object String]"]=fa["[object WeakMap]"]=!1;var ga="object"==typeof exports&&exports&&!exports.nodeType&&exports,ma=ga&&"object"==typeof module&&module&&!module.nodeType&&module,va=ma&&ma.exports===ga&&Ji.process,ba=function(){try{var e=ma&&ma.require&&ma.require("util").types;return e||va&&va.binding&&va.binding("util")}catch(t){}}(),ya=ba&&ba.isTypedArray,Ca=ya?function(e){return function(t){return e(t)}}(ya):function(e){return cs(e)&&ta(e.length)&&!!fa[ls(e)]},wa=Object.prototype.hasOwnProperty;function xa(e,t){var n=us(e),o=!n&&ca(e),r=!n&&!o&&pa(e),i=!n&&!o&&!r&&Ca(e),s=n||o||r||i,a=s?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],l=a.length;for(var c in e)!t&&!wa.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ys(c,l))||a.push(c);return a}var Sa=Object.prototype.hasOwnProperty;function Aa(e){if(!bs(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ra(e),n=[];for(var o in e)("constructor"!=o||!t&&Sa.call(e,o))&&n.push(o);return n}function ka(e){return na(e)?xa(e,!0):Aa(e)}var Fa=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ea=/^\w*$/;var $a=Os(Object,"create");var _a=Object.prototype.hasOwnProperty;var Ra=Object.prototype.hasOwnProperty;function Ba(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Ta(e,t){for(var n=e.length;n--;)if(Xs(e[n][0],t))return n;return-1}Ba.prototype.clear=function(){this.__data__=$a?$a(null):{},this.size=0},Ba.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ba.prototype.get=function(e){var t=this.__data__;if($a){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _a.call(t,e)?t[e]:void 0},Ba.prototype.has=function(e){var t=this.__data__;return $a?void 0!==t[e]:Ra.call(t,e)},Ba.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$a&&void 0===t?"__lodash_hash_undefined__":t,this};var Da=Array.prototype.splice;function Ma(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ma.prototype.clear=function(){this.__data__=[],this.size=0},Ma.prototype.delete=function(e){var t=this.__data__,n=Ta(t,e);return!(n<0)&&(n==t.length-1?t.pop():Da.call(t,n,1),--this.size,!0)},Ma.prototype.get=function(e){var t=this.__data__,n=Ta(t,e);return n<0?void 0:t[n][1]},Ma.prototype.has=function(e){return Ta(this.__data__,e)>-1},Ma.prototype.set=function(e,t){var n=this.__data__,o=Ta(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};var La=Os(es,"Map");function Pa(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Oa(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Oa.prototype.clear=function(){this.size=0,this.__data__={hash:new Ba,map:new(La||Ma),string:new Ba}},Oa.prototype.delete=function(e){var t=Pa(this,e).delete(e);return this.size-=t?1:0,t},Oa.prototype.get=function(e){return Pa(this,e).get(e)},Oa.prototype.has=function(e){return Pa(this,e).has(e)},Oa.prototype.set=function(e,t){var n=Pa(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function za(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,o);return n.cache=i.set(r,s)||i,s};return n.cache=new(za.Cache||Oa),n}za.Cache=Oa;var Ia=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ja=/\\(\\)?/g,Na=function(e){var t=za(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ia,(function(e,n,o,r){t.push(o?r.replace(ja,"$1"):n||e)})),t}));function Ha(e){return null==e?"":fs(e)}function Wa(e,t){return us(e)?e:function(e,t){if(us(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ds(e))||Ea.test(e)||!Fa.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:Na(Ha(e))}function Va(e){if("string"==typeof e||ds(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function Ua(e,t,n){var o=null==e?void 0:function(e,t){for(var n=0,o=(t=Wa(t,e)).length;null!=e&&n<o;)e=e[Va(t[n++])];return n&&n==o?e:void 0}(e,t);return void 0===o?n:o}var Ka=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Ga=Function.prototype,Ya=Object.prototype,qa=Ga.toString,Xa=Ya.hasOwnProperty,Za=qa.call(Object);function Ja(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o<r;)i[o]=e[o+t];return i}(e,t,n)}var Qa=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function el(e){return Qa.test(e)}var tl="[\\ud800-\\udfff]",nl="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",ol="\\ud83c[\\udffb-\\udfff]",rl="[^\\ud800-\\udfff]",il="(?:\\ud83c[\\udde6-\\uddff]){2}",sl="[\\ud800-\\udbff][\\udc00-\\udfff]",al="(?:"+nl+"|"+ol+")"+"?",ll="[\\ufe0e\\ufe0f]?"+al+("(?:\\u200d(?:"+[rl,il,sl].join("|")+")[\\ufe0e\\ufe0f]?"+al+")*"),cl="(?:"+[rl+nl+"?",nl,il,sl,tl].join("|")+")",dl=RegExp(ol+"(?="+ol+")|"+cl+ll,"g");function ul(e){return el(e)?function(e){return e.match(dl)||[]}(e):function(e){return e.split("")}(e)}var hl,pl=(hl="toUpperCase",function(e){var t=el(e=Ha(e))?ul(e):void 0,n=t?t[0]:e.charAt(0),o=t?Ja(t,1).join(""):e.slice(1);return n[hl]()+o});function fl(e){var t=this.__data__=new Ma(e);this.size=t.size}fl.prototype.clear=function(){this.__data__=new Ma,this.size=0},fl.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},fl.prototype.get=function(e){return this.__data__.get(e)},fl.prototype.has=function(e){return this.__data__.has(e)},fl.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ma){var o=n.__data__;if(!La||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Oa(o)}return n.set(e,t),this.size=n.size,this};var gl="object"==typeof exports&&exports&&!exports.nodeType&&exports,ml=gl&&"object"==typeof module&&module&&!module.nodeType&&module,vl=ml&&ml.exports===gl?es.Buffer:void 0,bl=vl?vl.allocUnsafe:void 0;var yl=es.Uint8Array;function Cl(e,t){var n,o,r=t?(n=e.buffer,o=new n.constructor(n.byteLength),new yl(o).set(new yl(n)),o):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var wl,xl=function(e,t,n){for(var o=-1,r=Object(e),i=n(e),s=i.length;s--;){var a=i[wl?s:++o];if(!1===t(r[a],a,r))break}return e},Sl=function(){return es.Date.now()},Al=Math.max,kl=Math.min;function Fl(e,t,n){var o,r,i,s,a,l,c=0,d=!1,u=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=o,i=r;return o=r=void 0,c=t,s=e.apply(i,n)}function f(e){return c=e,a=setTimeout(m,t),d?p(e):s}function g(e){var n=e-l;return void 0===l||n>=t||n<0||u&&e-c>=i}function m(){var e=Sl();if(g(e))return v(e);a=setTimeout(m,function(e){var n=t-(e-l);return u?kl(n,i-(e-c)):n}(e))}function v(e){return a=void 0,h&&o?p(e):(o=r=void 0,s)}function b(){var e=Sl(),n=g(e);if(o=arguments,r=this,l=e,n){if(void 0===a)return f(l);if(u)return clearTimeout(a),a=setTimeout(m,t),p(l)}return void 0===a&&(a=setTimeout(m,t)),s}return t=Ss(t)||0,bs(n)&&(d=!!n.leading,i=(u="maxWait"in n)?Al(Ss(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,o=l=r=a=void 0},b.flush=function(){return void 0===a?s:v(Sl())},b}function El(e,t,n){(void 0!==n&&!Xs(e[t],n)||void 0===n&&!(t in e))&&qs(e,t,n)}function $l(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function _l(e){return function(e,t,n,o){var r=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=o?o(n[a],e[a],a,n,e):void 0;void 0===l&&(l=e[a]),r?qs(n,a,l):Js(n,a,l)}return n}(e,ka(e))}function Rl(e,t,n,o,r,i,s){var a=$l(e,n),l=$l(t,n),c=s.get(l);if(c)El(e,n,c);else{var d,u=i?i(a,l,n+"",e,t,s):void 0,h=void 0===u;if(h){var p=us(l),f=!p&&pa(l),g=!p&&!f&&Ca(l);u=l,p||f||g?us(a)?u=a:cs(d=a)&&na(d)?u=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}(a):f?(h=!1,u=function(e,t){if(t)return e.slice();var n=e.length,o=bl?bl(n):new e.constructor(n);return e.copy(o),o}(l,!0)):g?(h=!1,u=Cl(l,!0)):u=[]:function(e){if(!cs(e)||"[object Object]"!=ls(e))return!1;var t=Ka(e);if(null===t)return!0;var n=Xa.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qa.call(n)==Za}(l)||ca(l)?(u=a,ca(a)?u=_l(a):bs(a)&&!ks(a)||(u=function(e){return"function"!=typeof e.constructor||ra(e)?{}:Is(Ka(e))}(l))):h=!1}h&&(s.set(l,u),r(u,l,o,i,s),s.delete(l)),El(e,n,u)}}function Bl(e,t,n,o,r){e!==t&&xl(t,(function(i,s){if(r||(r=new fl),bs(i))Rl(e,t,s,n,Bl,o,r);else{var a=o?o($l(e,s),i,s+"",e,t,r):void 0;void 0===a&&(a=i),El(e,s,a)}}),ka)}var Tl,Dl=(Tl=function(e,t,n){Bl(e,t,n)},ea((function(e,t){var n=-1,o=t.length,r=o>1?t[o-1]:void 0,i=o>2?t[2]:void 0;for(r=Tl.length>3&&"function"==typeof r?(o--,r):void 0,i&&function(e,t,n){if(!bs(n))return!1;var o=typeof t;return!!("number"==o?na(n)&&Ys(t,n.length):"string"==o&&t in n)&&Xs(n[t],e)}(t[0],t[1],i)&&(r=o<3?void 0:r,o=1),e=Object(e);++n<o;){var s=t[n];s&&Tl(e,s,n,r)}return e})));function Ml(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return bs(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),Fl(e,t,{leading:o,maxWait:t,trailing:r})}const Ll=Symbol("@css-render/vue3-ssr");function Pl(e,t){const n=Ht(Ll,null);if(null===n)return void console.error("[css-render/vue3-ssr]: no ssr context found.");const{styles:o,ids:r}=n;r.has(e)||null!==o&&(r.add(e),o.push(function(e,t){return`<style cssr-id="${e}">\n${t}\n</style>`}(e,t)))}function Ol(){const e=Ht(Ll,null);if(null!==e)return{adapter:Pl,context:e}}const zl=/\s*,(?![^(]*\))\s*/g,Il=/\s+/g;function jl(e){let t=[""];return e.forEach((e=>{(e=e&&e.trim())&&(t=e.includes("&")?function(e,t){const n=[];return t.split(zl).forEach((t=>{let o=function(e){let t=0;for(let n=0;n<e.length;++n)"&"===e[n]&&++t;return t}(t);if(!o)return void e.forEach((e=>{n.push((e&&e+" ")+t)}));if(1===o)return void e.forEach((e=>{n.push(t.replace("&",e))}));let r=[t];for(;o--;){const t=[];r.forEach((n=>{e.forEach((e=>{t.push(n.replace("&",e))}))})),r=t}r.forEach((e=>n.push(e)))})),n}(t,e):function(e,t){const n=[];return t.split(zl).forEach((t=>{e.forEach((e=>{n.push((e&&e+" ")+t)}))})),n}(t,e))})),t.join(", ").replace(Il," ")}const Nl=/[A-Z]/g;function Hl(e){return e.replace(Nl,(e=>"-"+e.toLowerCase()))}function Wl(e,t,n,o){if(!t)return"";const r=function(e,t,n){return"function"==typeof e?e({context:t.context,props:n}):e}(t,n,o);if(!r)return"";if("string"==typeof r)return`${e} {\n${r}\n}`;const i=Object.keys(r);if(0===i.length)return n.config.keepEmptyBlock?e+" {\n}":"";const s=e?[e+" {"]:[];return i.forEach((e=>{const t=r[e];"raw"!==e?(e=Hl(e),null!=t&&s.push(` ${e}${function(e,t=" "){return"object"==typeof e&&null!==e?" {\n"+Object.entries(e).map((e=>t+` ${Hl(e[0])}: ${e[1]};`)).join("\n")+"\n"+t+"}":`: ${e};`}(t)}`)):s.push("\n"+t+"\n")})),e&&s.push("}"),s.join("\n")}function Vl(e,t,n){e&&e.forEach((e=>{if(Array.isArray(e))Vl(e,t,n);else if("function"==typeof e){const o=e(t);Array.isArray(o)?Vl(o,t,n):o&&n(o)}else e&&n(e)}))}function Ul(e,t,n,o,r,i){const s=e.$;s&&"string"!=typeof s?"function"==typeof s?t.push(s({context:o.context,props:r})):(s.before&&s.before(o.context),s.$&&"string"!=typeof s.$?s.$&&t.push(s.$({context:o.context,props:r})):t.push(s.$)):t.push(s);const a=jl(t),l=Wl(a,e.props,o,r);i&&l&&i.insertRule(l),!i&&l.length&&n.push(l),e.children&&Vl(e.children,{context:o.context,props:r},(e=>{if("string"==typeof e){const t=Wl(a,{raw:e},o,r);i?i.insertRule(t):n.push(t)}else Ul(e,t,n,o,r,i)})),t.pop(),s&&s.after&&s.after(o.context)}function Kl(e,t,n,o=!1){const r=[];return Ul(e,[],r,t,n,o?e.instance.__styleSheet:void 0),o?"":r.join("\n\n")}function Gl(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Yl(e){return document.querySelector(`style[cssr-id="${e}"]`)}function ql(e,t,n,o,r,i,s,a){var l;if(i&&!a){if(void 0===n)return void console.error("[css-render/mount]: `id` is required in `slient` mode.");const r=window.__cssrContext;return void(r[n]||(r[n]=!0,Kl(t,e,o,i)))}let c;if(void 0===n&&(c=t.render(o),n=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(c)),a)return void a.adapter(n,null!=c?c:t.render(o));const d=Yl(n);if(null!==d&&!s)return d;const u=null!=d?d:function(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}(n);if(void 0===c&&(c=t.render(o)),u.textContent=c,null!==d)return d;if(r){const e=null!==(l=document.head.querySelector("style, link"))&&void 0!==l?l:null;document.head.insertBefore(u,e)}else document.head.appendChild(u);return function(e,t){e.push(t)}(t.els,u),null!=d?d:u}function Xl(e){return Kl(this,this.instance,e)}function Zl(e={}){const{id:t,ssr:n,props:o,head:r=!1,slient:i=!1,force:s=!1}=e;return ql(this.instance,this,t,o,r,i,s,n)}function Jl(e={}){const{id:t}=e;!function(e,t,n){const{els:o}=t;if(void 0===n)o.forEach(Gl),t.els=[];else{const e=Yl(n);e&&o.includes(e)&&(Gl(e),t.els=o.filter((t=>t!==e)))}}(this.instance,this,t)}"undefined"!=typeof window&&(window.__cssrContext={});const Ql=function(e,t,n,o){return{instance:e,$:t,props:n,children:o,els:[],render:Xl,mount:Zl,unmount:Jl}};function ec(e={}){let t=null;const n={c:(...e)=>function(e,t,n,o){return Array.isArray(t)?Ql(e,{$:null},null,t):Array.isArray(n)?Ql(e,t,null,n):Array.isArray(o)?Ql(e,t,n,o):Ql(e,t,n,null)}(n,...e),use:(e,...t)=>e.install(n,...t),find:Yl,context:{},config:e,get __styleSheet(){if(!t){const e=document.createElement("style");return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function tc(e,t){return e+("default"===t?"":t.replace(/^[a-z]/,(e=>e.toUpperCase())))}tc("abc","def");const nc=ec(),oc=function(e){let t,n=".",o="__",r="--";if(e){let t=e.blockPrefix;t&&(n=t),t=e.elementPrefix,t&&(o=t),t=e.modifierPrefix,t&&(r=t)}const i={install(e){t=e.c;const n=e.context;n.bem={},n.bem.b=null,n.bem.els=null}};return Object.assign(i,{cB:(...e)=>t(function(e){let t,o;return{before(e){t=e.bem.b,o=e.bem.els,e.bem.els=null},after(e){e.bem.b=t,e.bem.els=o},$:({context:t,props:o})=>(e="string"==typeof e?e:e({context:t,props:o}),t.bem.b=e,`${(null==o?void 0:o.bPrefix)||n}${t.bem.b}`)}}(e[0]),e[1],e[2]),cE:(...e)=>t(function(e){let t;return{before(e){t=e.bem.els},after(e){e.bem.els=t},$:({context:t,props:o})=>(e="string"==typeof e?e:e({context:t,props:o}),t.bem.els=e.split(",").map((e=>e.trim())),t.bem.els.map((e=>`${(null==o?void 0:o.bPrefix)||n}${t.bem.b}__${e}`)).join(", "))}}(e[0]),e[1],e[2]),cM:(...e)=>{return t((i=e[0],{$({context:e,props:t}){const s=(i="string"==typeof i?i:i({context:e,props:t})).split(",").map((e=>e.trim()));function a(i){return s.map((s=>`&${(null==t?void 0:t.bPrefix)||n}${e.bem.b}${void 0!==i?`${o}${i}`:""}${r}${s}`)).join(", ")}const l=e.bem.els;return null!==l?a(l[0]):a()}}),e[1],e[2]);var i},cNotM:(...e)=>{return t((i=e[0],{$({context:e,props:t}){i="string"==typeof i?i:i({context:e,props:t});const s=e.bem.els;return`&:not(${(null==t?void 0:t.bPrefix)||n}${e.bem.b}${null!==s&&s.length>0?`${o}${s[0]}`:""}${r}${i})`}}),e[1],e[2]);var i}}),i}({blockPrefix:".n-",elementPrefix:"__",modifierPrefix:"--"});nc.use(oc);const{c:rc,find:ic}=nc,{cB:sc,cE:ac,cM:lc,cNotM:cc}=oc;function dc(e,t){return null===e?t:rc([({props:{bPrefix:n}})=>rc(`${n||".n-"}form-item`,[rc(`${n||".n-"}form-item-blank`,[rc(`&${n||".n-"}form-item-blank--${e}`,[t])])])])}function uc(e){return rc((({props:{bPrefix:e}})=>`${e||".n-"}modal, ${e||".n-"}drawer`),[e])}function hc(e){return rc((({props:{bPrefix:e}})=>`${e||".n-"}popover:not(${e||".n-"}tooltip)`),[e])}function pc(e){return rc((({props:{bPrefix:e}})=>`&${e||".n-"}modal`),e)}const fc=(...e)=>rc(">",[sc(...e)]);var gc={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px",transformDebounceScale:"scale(1)"};const{fontSize:mc,fontFamily:vc,lineHeight:bc}=gc;var yc=rc("body",`\n margin: 0;\n font-size: ${mc};\n font-family: ${vc};\n line-height: ${bc};\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: transparent;\n`,[rc("input","\n font-family: inherit;\n font-size: inherit;\n ")]);function Cc(e){const t=bt(!!e.value);if(t.value)return at(t);const n=Sr(e,(e=>{e&&(t.value=!0,n())}));return at(t)}function wc(e){const t=Et(e),n=bt(t.value);return Sr(t,(e=>{n.value=e})),"function"==typeof e?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function xc(){return null!==Ho()}const Sc="undefined"!=typeof window;let Ac,kc;var Fc,Ec;function $c(e){if(kc)return;let t=!1;cn((()=>{kc||null==Ac||Ac.then((()=>{t||e()}))})),hn((()=>{t=!0}))}Ac=Sc?null===(Ec=null===(Fc=document)||void 0===Fc?void 0:Fc.fonts)||void 0===Ec?void 0:Ec.ready:void 0,kc=!1,void 0!==Ac?Ac.then((()=>{kc=!0})):kc=!0;const _c={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Rc(e,t,n){const o=_c[e];let r=o.get(t);void 0===r&&o.set(t,r=new WeakMap);let i=r.get(n);return void 0===i&&r.set(n,i=function(e,t,n){if("mousemoveoutside"===e){const e=e=>{t.contains(e.target)||n(e)};return{mousemove:e,touchstart:e}}if("clickoutside"===e){let e=!1;const o=n=>{e=!t.contains(n.target)},r=o=>{e&&(t.contains(o.target)||n(o))};return{mousedown:o,mouseup:r,touchstart:o,touchend:r}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}(e,t,n)),i}const{on:Bc,off:Tc}=function(){if("undefined"==typeof window)return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function o(){e.set(this,!0),t.set(this,!0)}function r(e,t,n){const o=e[t];return e[t]=function(){return n.apply(e,arguments),o.apply(e,arguments)},e}function i(e,t){e[t]=Event.prototype[t]}const s=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var e;return null!==(e=s.get(this))&&void 0!==e?e:null}function c(e,t){void 0!==a&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:null!=t?t:a.get})}const d={bubble:{},capture:{}},u={},h=function(){const a=function(a){const{type:u,eventPhase:h,target:p,bubbles:f}=a;if(2===h)return;const g=1===h?"capture":"bubble";let m=p;const v=[];for(;null===m&&(m=window),v.push(m),m!==window;)m=m.parentNode||null;const b=d.capture[u],y=d.bubble[u];if(r(a,"stopPropagation",n),r(a,"stopImmediatePropagation",o),c(a,l),"capture"===g){if(void 0===b)return;for(let n=v.length-1;n>=0&&!e.has(a);--n){const e=v[n],o=b.get(e);if(void 0!==o){s.set(a,e);for(const e of o){if(t.has(a))break;e(a)}}if(0===n&&!f&&void 0!==y){const n=y.get(e);if(void 0!==n)for(const e of n){if(t.has(a))break;e(a)}}}}else if("bubble"===g){if(void 0===y)return;for(let n=0;n<v.length&&!e.has(a);++n){const e=v[n],o=y.get(e);if(void 0!==o){s.set(a,e);for(const e of o){if(t.has(a))break;e(a)}}}}i(a,"stopPropagation"),i(a,"stopImmediatePropagation"),c(a)};return a.displayName="evtdUnifiedHandler",a}(),p=function(){const e=function(e){const{type:t,eventPhase:n}=e;if(2!==n)return;const o=u[t];void 0!==o&&o.forEach((t=>t(e)))};return e.displayName="evtdUnifiedWindowEventHandler",e}();function f(e,t){const n=d[e];return void 0===n[t]&&(n[t]=new Map,window.addEventListener(t,h,"capture"===e)),n[t]}function g(e,t){let n=e.get(t);return void 0===n&&e.set(t,n=new Set),n}function m(e,t,n,o){if(function(e,t,n,o){if("mousemoveoutside"===e||"clickoutside"===e){const r=Rc(e,t,n);return Object.keys(r).forEach((e=>{Tc(e,document,r[e],o)})),!0}return!1}(e,t,n,o))return;const r=!0===o||"object"==typeof o&&!0===o.capture,i=r?"capture":"bubble",s=f(i,e),a=g(s,t);if(t===window){if(!function(e,t,n,o){const r=d[t][n];if(void 0!==r){const t=r.get(e);if(void 0!==t&&t.has(o))return!0}return!1}(t,r?"bubble":"capture",e,n)&&function(e,t){const n=u[e];return!(void 0===n||!n.has(t))}(e,n)){const t=u[e];t.delete(n),0===t.size&&(window.removeEventListener(e,p),u[e]=void 0)}}a.has(n)&&a.delete(n),0===a.size&&s.delete(t),0===s.size&&(window.removeEventListener(e,h,"capture"===i),d[i][e]=void 0)}return{on:function(e,t,n,o){let r;if(r="object"==typeof o&&!0===o.once?i=>{m(e,t,r,o),n(i)}:n,function(e,t,n,o){if("mousemoveoutside"===e||"clickoutside"===e){const r=Rc(e,t,n);return Object.keys(r).forEach((e=>{Bc(e,document,r[e],o)})),!0}return!1}(e,t,r,o))return;const i=g(f(!0===o||"object"==typeof o&&!0===o.capture?"capture":"bubble",e),t);if(i.has(r)||i.add(r),t===window){const t=function(e){return void 0===u[e]&&(u[e]=new Set,window.addEventListener(e,p)),u[e]}(e);t.has(r)||t.add(r)}},off:m}}(),Dc=bt(null);function Mc(e){Dc.value={x:e.clientX,y:e.clientY}}let Lc=0,Pc=!0;function Oc(){if(!Sc)return at(bt(null));0===Lc&&Bc("click",window,Mc,!0);const e=()=>{Lc+=1};return Pc&&(Pc=xc())?(ln(e),hn((()=>{Lc-=1,0===Lc&&Tc("click",window,Mc,!0)}))):e(),at(Dc)}const zc=bt(void 0);let Ic=0;function jc(){zc.value=Date.now()}let Nc=!0;function Hc(e){if(!Sc)return at(bt(!1));const t=bt(!1);let n=null;function o(){null!==n&&window.clearTimeout(n)}function r(){o(),t.value=!0,n=window.setTimeout((()=>{t.value=!1}),e)}0===Ic&&Bc("click",window,jc,!0);const i=()=>{Ic+=1,Bc("click",window,r,!0)};return Nc&&(Nc=xc())?(ln(i),hn((()=>{Ic-=1,0===Ic&&Tc("click",window,jc,!0),Tc("click",window,r,!0),o()}))):i(),at(t)}function Wc(e,t){return Sr(e,(e=>{void 0!==e&&(t.value=e)})),Et((()=>void 0===e.value?t.value:e.value))}function Vc(){const e=bt(!1);return cn((()=>{e.value=!0})),at(e)}function Uc(e,t){return Et((()=>{for(const n of t)if(void 0!==e[n])return e[n];return e[t[t.length-1]]}))}const Kc="undefined"!=typeof window&&(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream;const Gc={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};const Yc={};function qc(e,t="default",n=[]){const o=e.$slots[t];return void 0===o?n:o()}function Xc(e,t=[],n){const o={};return t.forEach((t=>{o[t]=e[t]})),Object.assign(o,n)}function Zc(e,t=[],n){const o={};return Object.getOwnPropertyNames(e).forEach((n=>{t.includes(n)||(o[n]=e[n])})),Object.assign(o,n)}function Jc(e,t=!0,n=[]){return e.forEach((e=>{if(null!==e)if("object"==typeof e)if(Array.isArray(e))Jc(e,t,n);else if(e.type===so){if(null===e.children)return;Array.isArray(e.children)&&Jc(e.children,t,n)}else e.type!==lo&&n.push(e);else"string"!=typeof e&&"number"!=typeof e||n.push(Eo(String(e)))})),n}function Qc(e,...t){if(!Array.isArray(e))return e(...t);e.forEach((e=>Qc(e,...t)))}function ed(e){return Object.keys(e)}const td=(e,...t)=>"function"==typeof e?e(...t):"string"==typeof e?Eo(e):"number"==typeof e?Eo(String(e)):null;function nd(e,t){console.error(`[naive/${e}]: ${t}`)}function od(e,t){throw new Error(`[naive/${e}]: ${t}`)}function rd(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}function id(e,t="default",n){const o=e[t];if(!o)return nd("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Jc(o(n));return 1===r.length?r[0]:(nd("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function sd(e){return t=>{e.value=t?t.$el:null}}const ad=/^(\d|\.)+$/,ld=/(\d|\.)+/;function cd(e,{c:t=1,offset:n=0,attachPx:o=!0}={}){if("number"==typeof e){const o=(e+n)*t;return 0===o?"0":`${o}px`}if("string"==typeof e){if(ad.test(e)){const r=(Number(e)+n)*t;return o?0===r?"0":`${r}px`:`${r}`}{const o=ld.exec(e);return o?e.replace(ld,String((Number(o[0])+n)*t)):e}}return e}const dd=Symbol("modalBody"),ud=Symbol("modal"),hd=Symbol("drawerBody"),pd=Symbol("drawer"),fd=Symbol("popoverBodyInjection"),gd=Symbol("internal-select-menu"),md=Symbol("internal-select-menu-body");function vd(e){const t=Ht(dd,null),n=Ht(hd,null),o=Ht(fd,null),r=Ht(md,null);return wc((()=>{var i;const{to:s}=e;return void 0!==s?!1===s?"__disabled__":!0===s?"body":s:(null==t?void 0:t.value)?null!==(i=t.value.$el)&&void 0!==i?i:t.value:(null==n?void 0:n.value)?n.value:(null==o?void 0:o.value)?o.value:(null==r?void 0:r.value)?r.value:null!=s?s:"body"}))}vd.tdkey="__disabled__",vd.propTo={type:[String,Object,Boolean],default:void 0};let bd=!1;const yd=Symbol("configProviderInjection");var Cd=Jt({name:"ConfigProvider",alias:["App"],props:{abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,as:{type:String,validator:()=>(nd("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){const t=Ht(yd,null),n=Et((()=>{const{theme:n}=e;if(null===n)return;const o=null==t?void 0:t.mergedThemeRef.value;return void 0===n?o:void 0===o?n:Object.assign({},o,n)})),o=Et((()=>{const{themeOverrides:n}=e;if(null!==n){if(void 0===n)return null==t?void 0:t.mergedThemeOverridesRef.value;{const e=null==t?void 0:t.mergedThemeOverridesRef.value;return void 0===e?n:Dl({},e,n)}}})),r=wc((()=>{const{namespace:n}=e;return void 0===n?null==t?void 0:t.mergedNamespaceRef.value:n})),i=wc((()=>{const{bordered:n}=e;return void 0===n?null==t?void 0:t.mergedBorderedRef.value:n})),s=Et((()=>{const{icons:n}=e;return void 0===n?null==t?void 0:t.mergedIconsRef.value:n})),a=Et((()=>{const{componentOptions:n}=e;return void 0!==n?n:null==t?void 0:t.mergedComponentPropsRef.value})),l=Et((()=>{const{clsPrefix:n}=e;return void 0!==n?n:null==t?void 0:t.mergedClsPrefixRef.value})),c=Et((()=>{const{rtl:n}=e;if(void 0===n)return null==t?void 0:t.mergedRtlRef.value;const o={};for(const e of n)o[e.name]=pt(e);return o})),d=Et((()=>e.breakpoints||(null==t?void 0:t.mergedBreakpointsRef.value)));return Nt(yd,{mergedBreakpointsRef:d,mergedRtlRef:c,mergedIconsRef:s,mergedComponentPropsRef:a,mergedBorderedRef:i,mergedNamespaceRef:r,mergedClsPrefixRef:l,mergedLocaleRef:Et((()=>{const{locale:n}=e;if(null!==n)return void 0===n?null==t?void 0:t.mergedLocaleRef.value:n})),mergedDateLocaleRef:Et((()=>{const{dateLocale:n}=e;if(null!==n)return void 0===n?null==t?void 0:t.mergedDateLocaleRef.value:n})),mergedHljsRef:Et((()=>{const{hljs:n}=e;return void 0===n?null==t?void 0:t.mergedHljsRef.value:n})),mergedThemeRef:n,mergedThemeOverridesRef:o}),{mergedClsPrefix:l,mergedBordered:i,mergedNamespace:r,mergedTheme:n,mergedThemeOverrides:o}},render(){return this.abstract?Mo(this.$slots,"default"):$r(this.as||this.tag,{class:`${this.mergedClsPrefix||xd}-config-provider`},Mo(this.$slots,"default"))}});function wd(e,t,n,o,r,i){const s=Ol();if(n){const e=()=>{const e=null==i?void 0:i.value;n.mount({id:void 0===e?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},ssr:s}),yc.mount({id:"naive-ui/global",head:!0,ssr:s})};s?e():ln(e)}const a=Ht(yd,null);return Et((()=>{var t;const{theme:{common:n,self:i,peers:s={}}={},themeOverrides:l={},builtinThemeOverrides:c={}}=r,{common:d,peers:u}=l,{common:h,[e]:{common:p,self:f,peers:g={}}={}}=(null==a?void 0:a.mergedThemeRef.value)||{},{common:m,[e]:v={}}=(null==a?void 0:a.mergedThemeOverridesRef.value)||{},{common:b,peers:y={}}=v,C=Dl({},n||p||h||o.common,m,b,d);return{common:C,self:Dl(null===(t=i||f||o.self)||void 0===t?void 0:t(C),c,v,l),peers:Dl({},o.peers,g,s),peerOverrides:Dl({},y,u)}}))}wd.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const xd="n";function Sd(e={},t={defaultBordered:!0}){const n=Ht(yd,null);return{NConfigProvider:n,mergedBorderedRef:Et((()=>{var o,r;const{bordered:i}=e;return void 0!==i?i:null===(r=null!==(o=null==n?void 0:n.mergedBorderedRef.value)&&void 0!==o?o:t.defaultBordered)||void 0===r||r})),mergedClsPrefixRef:Et((()=>(null==n?void 0:n.mergedClsPrefixRef.value)||xd)),namespaceRef:Et((()=>null==n?void 0:n.mergedNamespaceRef.value))}}var Ad={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descedants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},Transfer:{sourceTitle:"Source",targetTitle:"Target"},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"}};function kd(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,o=e.formats[n]||e.formats[e.defaultWidth];return o}}function Fd(e){return function(t,n){var o,r=n||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=r.width?String(r.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{var a=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;o=e.values[l]||e.values[a]}return o[e.argumentCallback?e.argumentCallback(t):t]}}function Ed(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var s,a=i[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?_d(l,(function(e){return e.test(a)})):$d(l,(function(e){return e.test(a)}));s=e.valueCallback?e.valueCallback(c):c,s=n.valueCallback?n.valueCallback(s):s;var d=t.slice(a.length);return{value:s,rest:d}}}function $d(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function _d(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var Rd,Bd={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Td=function(e,t,n){var o,r=Bd[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},Dd={date:kd({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:kd({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:kd({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Md={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var Ld={name:"en-US",locale:{code:"en-US",formatDistance:Td,formatLong:Dd,formatRelative:function(e,t,n,o){return Md[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Fd({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Fd({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Fd({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Fd({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Fd({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Rd={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Rd.matchPattern);if(!n)return null;var o=n[0],r=e.match(Rd.parsePattern);if(!r)return null;var i=Rd.valueCallback?Rd.valueCallback(r[0]):r[0];i=t.valueCallback?t.valueCallback(i):i;var s=e.slice(o.length);return{value:i,rest:s}}),era:Ed({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ed({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ed({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ed({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ed({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}};function Pd(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=Ht(yd,null)||{},o=Et((()=>{var n,o;return null!==(o=null===(n=null==t?void 0:t.value)||void 0===n?void 0:n[e])&&void 0!==o?o:Ad[e]}));return{dateLocaleRef:Et((()=>{var e;return null!==(e=null==n?void 0:n.value)&&void 0!==e?e:Ld})),localeRef:o}}function Od(e,t,n){if(!t)return;const o=Ol(),r=()=>{const r=null==n?void 0:n.value;t.mount({id:void 0===r?e:r+e,head:!0,props:{bPrefix:r?`.${r}-`:void 0},ssr:o}),yc.mount({id:"naive-ui/global",head:!0,ssr:o})};o?r():ln(r)}var zd=Jt({name:"Add",render:()=>$r("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$r("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}),Id=Jt({name:"ArrowDown",render:()=>$r("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$r("g",{"fill-rule":"nonzero"},$r("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))});function jd(e,t){return Jt({name:pl(e),setup(){const{NConfigProvider:n}=Sd();return()=>{var o;const r=null===(o=null==n?void 0:n.mergedIconsRef.value)||void 0===o?void 0:o[e];return r?r():t}}})}var Nd=Jt({name:"Backward",render:()=>$r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$r("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}),Hd=Jt({name:"Checkmark",render:()=>$r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},$r("g",{fill:"none"},$r("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}),Wd=Jt({name:"ChevronRight",render:()=>$r("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$r("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}),Vd=jd("close",$r("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},$r("g",{fill:"currentColor","fill-rule":"nonzero"},$r("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),Ud=Jt({name:"Eye",render:()=>$r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},$r("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),$r("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}),Kd=Jt({name:"EyeOff",render:()=>$r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},$r("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),$r("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),$r("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),$r("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),$r("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}),Gd=Jt({name:"Empty",render:()=>$r("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$r("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),$r("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}),Yd=jd("error",$r("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$r("g",{"fill-rule":"nonzero"},$r("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),qd=Jt({name:"FastBackward",render:()=>$r("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},$r("g",{fill:"currentColor","fill-rule":"nonzero"},$r("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}),Xd=Jt({name:"FastForward",render:()=>$r("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},$r("g",{fill:"currentColor","fill-rule":"nonzero"},$r("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}),Zd=Jt({name:"Filter",render:()=>$r("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$r("g",{"fill-rule":"nonzero"},$r("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}),Jd=Jt({name:"Forward",render:()=>$r("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$r("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}),Qd=jd("info",$r("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$r("g",{"fill-rule":"nonzero"},$r("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),eu=Jt({name:"More",render:()=>$r("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},$r("g",{fill:"currentColor","fill-rule":"nonzero"},$r("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}),tu=jd("success",$r("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$r("g",{"fill-rule":"nonzero"},$r("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),nu=jd("warning",$r("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$r("g",{"fill-rule":"nonzero"},$r("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),ou=Jt({name:"ChevronDown",render:()=>$r("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$r("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}),ru=jd("clear",$r("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},$r("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},$r("g",{fill:"currentColor","fill-rule":"nonzero"},$r("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),iu=Jt({name:"ChevronDownFilled",render:()=>$r("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$r("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}),su=Jt({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=Vc();return()=>$r(Kr,{name:"icon-switch-transition",appear:n.value},t)}}),au=Jt({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function o(t){e.width?t.style.maxWidth="0":t.style.maxHeight="0",t.offsetWidth;const{onLeave:n}=e;n&&n()}function r(t){e.width?t.style.maxWidth="":t.style.maxHeight="";const{onAfterLeave:n}=e;n&&n()}function i(t){if(t.style.transition="none",e.width){const e=t.offsetWidth;t.style.maxWidth="0",t.offsetWidth,t.style.transition="",t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition="",t.style.maxHeight="0";else{const e=t.offsetHeight;t.style.maxHeight="0",t.offsetWidth,t.style.transition="",t.style.maxHeight=`${e}px`}t.offsetWidth}function s(t){var n;e.width?t.style.maxWidth="":e.reverse||(t.style.maxHeight=""),null===(n=e.onAfterEnter)||void 0===n||n.call(e)}return()=>$r(e.group?di:Kr,{name:e.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:e.mode,appear:e.appear,onEnter:i,onAfterEnter:s,onBeforeLeave:n,onLeave:o,onAfterLeave:r},t)}}),lu=sc("base-icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[rc("svg",{height:"1em",width:"1em"})]),cu=Jt({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Od("BaseIcon",lu,kt(e,"clsPrefix"))},render(){return $r("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),du=sc("base-close","\n cursor: pointer;\n color: var(--close-color);\n",[rc("&:hover",{color:"var(--close-color-hover)"}),rc("&:active",{color:"var(--close-color-pressed)"}),lc("disabled",{cursor:"not-allowed!important",color:"var(--close-color-disabled)"})]),uu=Jt({name:"BaseClose",props:{clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},onClick:Function},setup:e=>(Od("BaseClose",du,kt(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n}=e;return $r(cu,{role:"button",ariaDisabled:n,ariaLabel:"close",clsPrefix:t,class:[`${t}-base-close`,n&&`${t}-base-close--disabled`],onClick:n?void 0:e.onClick},{default:()=>$r(Vd,null)})})}),hu=Jt({props:{onFocus:Function,onBlur:Function},setup:e=>()=>$r("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})});const{cubicBezierEaseInOut:pu,transformDebounceScale:fu}=gc;function gu({originalTransform:e="",left:t=0,top:n=0,transition:o=`all .3s ${pu} !important`}={}){return[rc("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),rc("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`${fu} ${e}`,left:t,top:n,opacity:1}),rc("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:o})]}var mu=sc("base-loading","\n position: relative;\n line-height: 0;\n width: 1em;\n height: 1em;\n",[ac("placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[gu({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),ac("icon","\n height: 1em;\n width: 1em;\n ",[gu()])]);var vu=Jt({name:"BaseLoading",props:{clsPrefix:{type:String,required:!0},scale:{type:Number,default:1},radius:{type:Number,default:100},strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},show:{type:Boolean,default:!0}},setup(e){Od("BaseLoading",mu,kt(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:o,scale:r}=this,i=t/r;return $r("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},$r(su,null,{default:()=>this.show?$r("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},$r("g",null,$r("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:"1.6s",fill:"freeze",repeatCount:"indefinite"}),$r("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},$r("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:"1.6s",fill:"freeze",repeatCount:"indefinite"}),$r("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:"1.6s",fill:"freeze",repeatCount:"indefinite"})))):$r("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function bu(e){return Array.isArray(e)?e:[e]}const yu="STOP";function Cu(e,t){const n=t(e);void 0!==e.children&&n!==yu&&e.children.forEach((e=>Cu(e,t)))}function wu(e){return e.children}function xu(e){return e.key}function Su(){return!1}function Au(e){return!0===e.disabled}function ku(e){var t;return null==e?[]:Array.isArray(e)?e:null!==(t=e.checkedKeys)&&void 0!==t?t:[]}function Fu(e){var t;return null==e||Array.isArray(e)?[]:null!==(t=e.indeterminateKeys)&&void 0!==t?t:[]}function Eu(e,t){const n=new Set(e);return t.forEach((e=>{n.has(e)||n.add(e)})),Array.from(n)}function $u(e,t){const n=new Set(e);return t.forEach((e=>{n.has(e)&&n.delete(e)})),Array.from(n)}function _u(e){return"group"===(null==e?void 0:e.type)}class Ru extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function Bu(e,t,n){const o=Du(t,n),r=Du(e,n,!0),i=function(e,t){const n=new Set;return e.forEach((e=>{const o=t.treeNodeMap.get(e);if(void 0!==o){let e=o.parent;for(;null!==e&&!e.disabled&&!n.has(e.key);)n.add(e.key),e=e.parent}})),n}(e,n),s=[];return o.forEach((e=>{(r.has(e)||i.has(e))&&s.push(e)})),s.forEach((e=>o.delete(e))),o}function Tu(e,t){const{checkedKeys:n,keysToCheck:o,keysToUncheck:r,indeterminateKeys:i,cascade:s,leafOnly:a,checkStrategy:l}=e;if(!s)return void 0!==o?{checkedKeys:Eu(n,o),indeterminateKeys:Array.from(i)}:void 0!==r?{checkedKeys:$u(n,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:c}=t;let d;d=void 0!==r?Bu(r,n,t):void 0!==o?function(e,t,n){return Du(t.concat(e),n)}(o,n,t):Du(n,t);const u="parent"===l,h="child"===l||a,p=d,f=new Set;for(let g=Math.max.apply(null,Array.from(c.keys()));g>=0;g-=1){const e=0===g,t=c.get(g);for(const n of t){if(n.isLeaf)continue;const{key:t,shallowLoaded:o}=n;if(h&&o&&n.children.forEach((e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&p.has(e.key)&&p.delete(e.key)})),n.disabled||!o)continue;let r=!0,i=!1,s=!0;for(const e of n.children){const t=e.key;if(!e.disabled)if(s&&(s=!1),p.has(t))i=!0;else{if(f.has(t)){i=!0,r=!1;break}if(r=!1,i)break}}r&&!s?(u&&n.children.forEach((e=>{!e.disabled&&p.has(e.key)&&p.delete(e.key)})),p.add(t)):i&&f.add(t),e&&h&&p.has(t)&&p.delete(t)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(f)}}function Du(e,t,n=!1){const{treeNodeMap:o,getChildren:r}=t,i=new Set,s=new Set(e);return e.forEach((e=>{const t=o.get(e);void 0!==t&&Cu(t,(e=>{if(e.disabled)return yu;const{key:t}=e;if(!i.has(t)&&(i.add(t),s.add(t),function(e,t){return!1===e.isLeaf&&!Array.isArray(t(e))}(e.rawNode,r))){if(n)return yu;throw new Ru}}))})),s}function Mu(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r+1)%o]:r===n.length-1?null:n[r+1]}function Lu(e,t,{loop:n=!1,includeDisabled:o=!1}={}){const r="prev"===t?Pu:Mu,i={reverse:"prev"===t};let s=!1,a=null;return function t(l){if(null!==l){if(l===e)if(s){if(!e.disabled&&!e.isGroup)return void(a=e)}else s=!0;else if((!l.disabled||o)&&!l.ignored&&!l.isGroup)return void(a=l);if(l.isGroup){const e=Ou(l,i);null!==e?a=e:t(r(l,n))}else{const e=r(l,!1);if(null!==e)t(e);else{const e=function(e){return e.parent}(l);(null==e?void 0:e.isGroup)?t(r(e,n)):n&&t(r(l,!0))}}}}(e),a}function Pu(e,t){const n=e.siblings,o=n.length,{index:r}=e;return t?n[(r-1+o)%o]:0===r?null:n[r-1]}function Ou(e,t={}){const{reverse:n=!1}=t,{children:o}=e;if(o){const{length:e}=o,r=n?-1:e,i=n?-1:1;for(let s=n?e-1:0;s!==r;s+=i){const e=o[s];if(!e.disabled&&!e.ignored){if(!e.isGroup)return e;{const n=Ou(e,t);if(null!==n)return n}}}}return null}const zu={getChild(){return this.ignored?null:Ou(this)},getParent(){const{parent:e}=this;return(null==e?void 0:e.isGroup)?e.getParent():e},getNext(e={}){return Lu(this,"next",e)},getPrev(e={}){return Lu(this,"prev",e)}};function Iu(e,t,n,o,r,i=null,s=0){const a=[];return e.forEach(((l,c)=>{var d;const u=Object.create(o);if(u.rawNode=l,u.siblings=a,u.level=s,u.index=c,u.isFirstChild=0===c,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const e=r(l);Array.isArray(e)&&(u.children=Iu(e,t,n,o,r,u,s+1))}a.push(u),t.set(u.key,u),n.has(s)||n.set(s,[]),null===(d=n.get(s))||void 0===d||d.push(u)})),a}function ju(e,t={}){var n;const o=new Map,r=new Map,{getDisabled:i=Au,getIgnored:s=Su,getIsGroup:a=_u,getKey:l=xu}=t,c=null!==(n=t.getChildren)&&void 0!==n?n:wu,d=t.ignoreEmptyChildren?e=>{const t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,u=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return a(this.rawNode)},get isLeaf(){return function(e,t){const{isLeaf:n}=e;return void 0!==n?n:!t(e)}(this.rawNode,d)},get shallowLoaded(){return function(e,t){const{isLeaf:n}=e;return!(!1===n&&!Array.isArray(t(e)))}(this.rawNode,d)},get ignored(){return s(this.rawNode)},contains(e){return function(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}(this,e)}},zu),h=Iu(e,o,r,u,d);function p(e){if(null==e)return null;const t=o.get(e);return t&&!t.ignored?t:null}const f={treeNodes:h,treeNodeMap:o,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes:e=>function(e,t){const n=t?new Set(t):void 0,o=[];return function e(t){t.forEach((t=>{o.push(t),t.isLeaf||!t.children||t.ignored||(t.isGroup||void 0===n||n.has(t.key))&&e(t.children)}))}(e),o}(h,e),getNode:function(e){if(null==e)return null;const t=o.get(e);return!t||t.isGroup||t.ignored?null:t},getPrev:function(e,t){const n=p(e);return n?n.getPrev(t):null},getNext:function(e,t){const n=p(e);return n?n.getNext(t):null},getParent:function(e){const t=p(e);return t?t.getParent():null},getChild:function(e){const t=p(e);return t?t.getChild():null},getFirstAvailableNode:()=>function(e){if(0===e.length)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}(h),getPath:(e,t={})=>function(e,{includeGroup:t=!1,includeSelf:n=!0},o){var r;const i=o.treeNodeMap;let s=null==e?null:null!==(r=i.get(e))&&void 0!==r?r:null;const a={keyPath:[],treeNodePath:[],treeNode:s};if(null==s?void 0:s.ignored)return a.treeNode=null,a;for(;s;)s.ignored||!t&&s.isGroup||a.treeNodePath.push(s),s=s.parent;return a.treeNodePath.reverse(),n||a.treeNodePath.pop(),a.keyPath=a.treeNodePath.map((e=>e.key)),a}(e,t,f),getCheckedKeys(e,t={}){const{cascade:n=!0,leafOnly:o=!1,checkStrategy:r="all"}=t;return Tu({checkedKeys:ku(e),indeterminateKeys:Fu(e),cascade:n,leafOnly:o,checkStrategy:r},f)},check(e,t,n={}){const{cascade:o=!0,leafOnly:r=!1,checkStrategy:i="all"}=n;return Tu({checkedKeys:ku(t),indeterminateKeys:Fu(t),keysToCheck:null==e?[]:bu(e),cascade:o,leafOnly:r,checkStrategy:i},f)},uncheck(e,t,n={}){const{cascade:o=!0,leafOnly:r=!1,checkStrategy:i="all"}=n;return Tu({checkedKeys:ku(t),indeterminateKeys:Fu(t),keysToUncheck:null==e?[]:bu(e),cascade:o,leafOnly:r,checkStrategy:i},f)},getNonLeafKeys:(e={})=>function(e,t={}){const{preserveGroup:n=!1}=t,o=[],r=n?e=>{e.isLeaf||(o.push(e.key),i(e.children))}:e=>{e.isLeaf||(e.isGroup||o.push(e.key),i(e.children))};function i(e){e.forEach(r)}return i(e),o}(h,e)};return f}function Nu(e,t="default"){const n=e[t];if(void 0===n)throw new Error(`[vueuc/binder]: slot[${t}] is empty.`);return n()}function Hu(e,t="default"){const n=e[t];if(void 0===n)throw new Error(`[vueuc/binder]: slot[${t}] is empty.`);const o=n();if(1===o.length)return o[0];throw new Error(`[vueuc/binder]: slot[${t}] should have exactly one child.`)}let Wu=null;function Vu(){if(null===Wu&&(Wu=document.getElementById("v-binder-view-measurer"),null===Wu)){Wu=document.createElement("div"),Wu.id="v-binder-view-measurer";const{style:e}=Wu;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Wu)}return Wu.getBoundingClientRect()}function Uu(e){const t=e.getBoundingClientRect(),n=Vu();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function Ku(e){if(null===e)return null;const t=function(e){return 9===e.nodeType?null:e.parentNode}(e);if(null===t)return null;if(9===t.nodeType)return document;if(1===t.nodeType){const{overflow:e,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+o+n))return t}return Ku(t)}var Gu=Jt({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Nt("VBinder",null===(t=Ho())||void 0===t?void 0:t.proxy);const n=Ht("VBinder",null),o=bt(null);let r=[];const i=()=>{for(const e of r)Tc("scroll",e,a,!0);r=[]},s=new Set,a=()=>{xi(l)},l=()=>{s.forEach((e=>e()))},c=new Set,d=()=>{c.forEach((e=>e()))};return hn((()=>{Tc("resize",window,d),i()})),{targetRef:o,setTargetRef:t=>{o.value=t,n&&e.syncTargetWithParent&&n.setTargetRef(t)},addScrollListener:e=>{0===s.size&&(()=>{let e=o.value;for(;e=Ku(e),null!==e;)r.push(e);for(const t of r)Bc("scroll",t,a,!0)})(),s.has(e)||s.add(e)},removeScrollListener:e=>{s.has(e)&&s.delete(e),0===s.size&&i()},addResizeListener:e=>{0===c.size&&Bc("resize",window,d),c.has(e)||c.add(e)},removeResizeListener:e=>{c.has(e)&&c.delete(e),0===c.size&&Tc("resize",window,d)}}},render(){return Nu(this.$slots)}}),Yu=Jt({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Ht("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Hn(Hu(this.$slots),[[t]]):Hu(this.$slots)}});const qu="@@mmoContext";var Xu={mounted(e,{value:t}){e[qu]={handler:void 0},"function"==typeof t&&(e[qu].handler=t,Bc("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[qu];"function"==typeof t?n.handler?n.handler!==t&&(Tc("mousemoveoutside",e,n.handler),n.handler=t,Bc("mousemoveoutside",e,t)):(e[qu].handler=t,Bc("mousemoveoutside",e,t)):n.handler&&(Tc("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[qu];t&&Tc("mousemoveoutside",e,t),e[qu].handler=void 0}};const Zu="@@coContext";var Ju={mounted(e,{value:t}){e[Zu]={handler:void 0},"function"==typeof t&&(e[Zu].handler=t,Bc("clickoutside",e,t))},updated(e,{value:t}){const n=e[Zu];"function"==typeof t?n.handler?n.handler!==t&&(Tc("clickoutside",e,n.handler),n.handler=t,Bc("clickoutside",e,t)):(e[Zu].handler=t,Bc("clickoutside",e,t)):n.handler&&(Tc("clickoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Zu];t&&Tc("clickoutside",e,t),e[Zu].handler=void 0}};var Qu=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){const{elementZIndex:n}=this;if(void 0!==t)return e.style.zIndex=`${t}`,void n.delete(e);const{nextZIndex:o}=this;if(n.has(e)){if(n.get(e)+1===this.nextZIndex)return}e.style.zIndex=`${o}`,n.set(e,o),this.nextZIndex=o+1,this.squashState()}unregister(e){const{elementZIndex:t}=this;var n,o;t.has(e)?t.delete(e):(n="vdirs/z-index-manager/unregister-element",o="Element not found when unregistering.",console.error(`[vdirs/${n}]: ${o}`)),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort(((e,t)=>e[1]-t[1])),this.nextZIndex=2e3,e.forEach((e=>{const t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)}))}};const eh="@@ziContext";var th={mounted(e,t){const{value:n={}}=t,{zIndex:o,enabled:r}=n;Qu.ensureZIndex(e,o),e[eh]={enabled:r}},updated(e,t){const{value:n={}}=t,{zIndex:o,enabled:r}=n,i=e[eh].enabled;r&&!i&&Qu.ensureZIndex(e,o),e[eh].enabled=r},unmounted(e){Qu.unregister(e)}};function nh(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:oh}=ec();function rh(e){return e&-e}class ih{constructor(e,t){this.l=e,this.min=t;const n=new Array(e+1);for(let o=0;o<e+1;++o)n[o]=0;this.ft=n}add(e,t){if(0===t)return;const{l:n,ft:o}=this;for(e+=1;e<=n;)o[e]+=t,e+=rh(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(0===e)return 0;const{ft:t,min:n,l:o}=this;if(void 0===e&&(e=o),e>o)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let r=e*n;for(;e>0;)r+=t[e],e-=rh(e);return r}getBound(e){let t=0,n=this.l;for(;n>t;){const o=Math.floor((t+n)/2),r=this.sum(o);if(r>e)n=o;else{if(!(r<e))return o;if(t===o)return this.sum(t+1)<=e?t+1:o;t=o}}return t}}var sh=Jt({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup:e=>({showTeleport:Cc(kt(e,"show")),mergedTo:Et((()=>{const{to:t}=e;return null!=t?t:"body"}))}),render(){return this.showTeleport?this.disabled?Nu(this.$slots):$r(no,{disabled:this.disabled,to:this.mergedTo},Nu(this.$slots)):null}});const ah={top:"bottom",bottom:"top",left:"right",right:"left"},lh={start:"end",center:"center",end:"start"},ch={top:"height",bottom:"height",left:"width",right:"width"},dh={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},uh={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},hh={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},ph={top:"end",bottom:"start",left:"end",right:"start"};const fh=oh([oh(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),oh(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[oh("> *",{pointerEvents:"all"})])]);var gh=Jt({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},flipLevel:{type:Number,default:1},x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Ht("VBinder"),n=wc((()=>void 0!==e.enabled?e.enabled:e.show)),o=bt(null),r=bt(null),i=()=>{const{syncTrigger:n}=e;n.includes("scroll")&&t.addScrollListener(l),n.includes("resize")&&t.addResizeListener(l)},s=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};cn((()=>{n.value&&(l(),i())}));const a=Ol();fh.mount({id:"vueuc/binder",head:!0,ssr:a}),hn((()=>{s()})),$c((()=>{n.value&&l()}));const l=()=>{if(!n.value)return;const i=o.value;if(null===i)return;const s=t.targetRef,{x:a,y:l,overlap:c}=e,d=void 0!==a&&void 0!==l?function(e,t){const n=Vu();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}(a,l):Uu(s),{width:u,minWidth:h,placement:p,flipLevel:f,flip:g}=e;i.setAttribute("v-placement",p),c?i.setAttribute("v-overlap",""):i.removeAttribute("v-overlap");const{style:m}=i;m.width="target"===u?`${d.width}px`:void 0!==u?u:"",m.minWidth="target"===h?`${d.width}px`:void 0!==h?h:"";const v=Uu(i),b=Uu(r.value),{left:y,top:C,placement:w}=function(e,t,n,o,r,i){if(!r||i)return{placement:e,top:0,left:0};const[s,a]=e.split("-");let l=null!=a?a:"center";if("center"!==l){const o=hh[e],r=ah[o],i=ch[o];if(n[i]>t[i]){if(t[o]+t[i]<n[i]){const e=(n[i]-t[i])/2;t[o]<e||t[r]<e?t[o]<t[r]&&(l=lh[a]):l="center"}}else n[i]<t[i]&&t[r]<0&&t[o]>t[r]&&(l=lh[a])}else{const e="bottom"===s||"top"===s?"left":"top",o=ah[e],r=ch[e],i=(n[r]-t[r])/2;(t[e]<i||t[o]<i)&&(l=t[e]>t[o]?ph[e]:ph[o])}let c=s;return t[s]<n[ch[s]]&&t[s]<t[ah[s]]&&(c=ah[s]),{placement:"center"!==l?`${c}-${l}`:c,left:0,top:0}}(p,d,v,0,g,c),x=function(e,t){return t?uh[e]:dh[e]}(w,c),{left:S,top:A,transform:k}=function(e,t,n,o,r,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+r)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+n.width+r)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+r)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+n.width+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+n.width+r)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+n.width+r)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+r)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+o)}px`,left:`${Math.round(n.left-t.left+n.width/2+r)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+o)}px`,left:`${Math.round(n.left-t.left+n.width+r)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+o)}px`,left:`${Math.round(n.left-t.left+r)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-t.top+n.height+o)}px`,left:`${Math.round(n.left-t.left+n.width/2+r)}px`,transform:"translateX(-50%)"}}}(w,b,d,C,y,c);i.setAttribute("v-placement",w),i.style.transform=`translateX(${S}) translateY(${A}) ${k}`,i.style.transformOrigin=x};Sr(n,(e=>{e?(i(),c()):s()}));const c=()=>{pr().then(l).catch((e=>console.error(e)))};["placement","x","y","flipLevel","flip","width","overlap","minWidth"].forEach((t=>{Sr(kt(e,t),l)})),["teleportDisabled"].forEach((t=>{Sr(kt(e,t),c)})),Sr(kt(e,"syncTrigger"),(e=>{e.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),e.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)}));const d=Vc(),u=wc((()=>{const{to:t}=e;if(void 0!==t)return t;d.value}));return{VBinder:t,mergedEnabled:n,offsetContainerRef:r,followerRef:o,mergedTo:u,syncPosition:l}},render(){return $r(sh,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{const e=$r("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[$r("div",{class:"v-binder-follower-content",ref:"followerRef"},this.$slots)]);return this.zindexable?Hn(e,[[th,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):e}})}}),mh=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),vh="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,bh="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),yh="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(bh):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var Ch=["top","right","bottom","left","width","height","size","weight"],wh="undefined"!=typeof MutationObserver,xh=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&a()}function s(){yh(i)}function a(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(s,t);r=e}return a}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){vh&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wh?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){vh&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;Ch.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Sh=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},Ah=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||bh},kh=Bh(0,0,0,0);function Fh(e){return parseFloat(e)||0}function Eh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+Fh(e["border-"+n+"-width"])}),0)}function $h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return kh;var o=Ah(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=Fh(i)}return t}(o),i=r.left+r.right,s=r.top+r.bottom,a=Fh(o.width),l=Fh(o.height);if("border-box"===o.boxSizing&&(Math.round(a+i)!==t&&(a-=Eh(o,"left","right")+i),Math.round(l+s)!==n&&(l-=Eh(o,"top","bottom")+s)),!function(e){return e===Ah(e).document.documentElement}(e)){var c=Math.round(a+i)-t,d=Math.round(l+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(d)&&(l-=d)}return Bh(r.left,r.top,a,l)}var _h="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof Ah(e).SVGGraphicsElement}:function(e){return e instanceof Ah(e).SVGElement&&"function"==typeof e.getBBox};function Rh(e){return vh?_h(e)?function(e){var t=e.getBBox();return Bh(0,0,t.width,t.height)}(e):$h(e):kh}function Bh(e,t,n,o){return{x:e,y:t,width:n,height:o}}var Th=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Bh(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Rh(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Dh=function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,r=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(i.prototype);return Sh(s,{x:t,y:n,width:o,height:r,top:n,right:t+o,bottom:r+n,left:t}),s}(t);Sh(this,{target:e,contentRect:n})},Mh=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new mh,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ah(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Th(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof Ah(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Dh(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Lh="undefined"!=typeof WeakMap?new WeakMap:new mh,Ph=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=xh.getInstance(),o=new Mh(t,n,this);Lh.set(this,o)};["observe","unobserve","disconnect"].forEach((function(e){Ph.prototype[e]=function(){var t;return(t=Lh.get(this))[e].apply(t,arguments)}}));var Oh=void 0!==bh.ResizeObserver?bh.ResizeObserver:Ph;var zh=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new Oh(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const e=this.elHandlersMap.get(t.target);void 0!==e&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Ih=Jt({name:"ResizeObserver",props:{onResize:Function},setup:e=>({registered:!1,handleResize(t){const{onResize:n}=e;void 0!==n&&n(t)}}),mounted(){const e=this.$el;void 0===e?nh("resize-observer","$el does not exist."):e.nextElementSibling!==e.nextSibling?nh("resize-observer","$el can not be observed (it may be a text node)."):null!==e.nextElementSibling&&(zh.registerHandler(e.nextElementSibling,this.handleResize),this.registered=!0)},beforeUnmount(){this.registered&&zh.unregisterHandler(this.$el.nextElementSibling)},render(){return Mo(this.$slots,"default")}});const jh=oh(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[oh("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[oh("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var Nh=Jt({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Ol();jh.mount({id:"vueuc/virtual-list",head:!0,ssr:t}),cn((()=>{const{defaultScrollIndex:t,defaultScrollKey:n}=e;null!=t?u({index:t}):null!=n&&u({key:n})}));const n=Et((()=>{const t=new Map,{keyField:n}=e;return e.items.forEach(((e,o)=>{t.set(e[n],o)})),t})),o=bt(null),r=bt(void 0),i=new Map,s=Et((()=>{const{items:t,itemSize:n,keyField:o}=e,r=new ih(t.length,n);return t.forEach(((e,t)=>{const n=e[o],s=i.get(n);void 0!==s&&r.add(t,s)})),r})),a=bt(0),l=bt(0),c=wc((()=>Math.max(s.value.getBound(l.value-Fi(e.paddingTop))-1,0))),d=Et((()=>{const{value:t}=r;if(void 0===t)return[];const{items:n,itemSize:o}=e,i=c.value,s=Math.min(i+Math.ceil(t/o+1),n.length-1),a=[];for(let e=i;e<=s;++e)a.push(n[e]);return a})),u=e=>{const{left:t,top:o,index:r,key:i,position:s,behavior:a,debounce:l=!0}=e;if(void 0!==t||void 0!==o)p(t,o,a);else if(void 0!==r)h(r,a,l);else if(void 0!==i){const e=n.value.get(i);void 0!==e&&h(e,a,l)}else"bottom"===s?p(0,Number.MAX_SAFE_INTEGER,a):"top"===s&&p(0,0,a)};function h(t,n,r){const{value:i}=s,a=i.sum(t)+Fi(e.paddingTop);if(r){const{scrollTop:e,offsetHeight:r}=o.value;if(a>e){const s=i.get(t);a+s<=e+r||o.value.scrollTo({left:0,top:a+s-r,behavior:n})}else o.value.scrollTo({left:0,top:a,behavior:n})}else o.value.scrollTo({left:0,top:a,behavior:n});f=t}function p(e,t,n){o.value.scrollTo({left:e,top:t,behavior:n})}let f,g;function m(){const{value:e}=o;null!=e&&(g=null!=f?f:c.value,f=void 0,l.value=o.value.scrollTop)}return{listHeight:r,listStyle:{overflow:"auto"},keyToIndex:n,itemsStyle:Et((()=>{const{itemResizable:t}=e,n=Ei(s.value.sum());return a.value,[e.itemsStyle,{boxSizing:"content-box",height:t?"":n,minHeight:t?n:"",paddingTop:Ei(e.paddingTop),paddingBottom:Ei(e.paddingBottom)}]})),visibleItemsStyle:Et((()=>(a.value,{transform:`translate3d(0, ${Ei(s.value.sum(c.value))}, 0)`}))),viewportItems:d,listElRef:o,itemsElRef:bt(null),scrollTo:u,handleListResize:function(t){r.value=t.contentRect.height;const{onResize:n}=e;void 0!==n&&n(t)},handleListScroll:function(t){xi(m);const{onScroll:n}=e;void 0!==n&&n(t)},handleItemResize:function(t,r){var l;if(e.ignoreItemResize)return;const{value:c}=s,d=n.value.get(t),u=r.target.offsetHeight;0===u-e.itemSize?i.delete(t):i.set(t,u-e.itemSize);const h=u-c.get(d);0!==h&&(void 0!==g&&d<=g&&(null===(l=o.value)||void 0===l||l.scrollBy(0,h)),c.add(d,h),a.value++)}}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:o}=this;return $r(Ih,{onResize:this.handleListResize},{default:()=>{var r,i;return $r("div",To(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.onWheel,ref:"listElRef"}),[0!==this.items.length?$r("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[$r(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map((o=>{const r=o[t],i=n.get(r),s=this.$slots.default({item:o,index:i})[0];return e?$r(Ih,{key:r,onResize:e=>this.handleItemResize(r,e)},{default:()=>s}):(s.key=r,s)}))})]):null===(i=(r=this.$slots).empty)||void 0===i?void 0:i.call(r)])}})}});const Hh=oh(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[oh("&::-webkit-scrollbar",{width:0,height:0})]);var Wh=Jt({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=bt(null);const t=Ol();Hh.mount({id:"vueuc/x-scroll",head:!0,ssr:t});const n={scrollTo(...t){var n;null===(n=e.value)||void 0===n||n.scrollTo(...t)}};return Object.assign({selfRef:e,handleWheel:function(e){e.currentTarget.offsetWidth<e.currentTarget.scrollWidth&&0!==e.deltaY&&(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}},n)},render(){return $r("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});const Vh=oh("[v-hidden]",{display:"none!important"});var Uh=Jt({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const n=bt(null),o=bt(null);function r(){const{value:r}=n,{getCounter:i,getTail:s}=e;let a;if(a=void 0!==i?i():o.value,!r||!a)return;a.hasAttribute("v-hidden")&&a.removeAttribute("v-hidden");const{children:l}=r,c=r.offsetWidth,d=[],u=t.tail?null==s?void 0:s():null;let h=u?u.offsetWidth:0,p=!1;const f=r.children.length-(t.tail?1:0);for(let t=0;t<f-1;++t){if(t<0)continue;const n=l[t];if(p){n.hasAttribute("v-hidden")||n.setAttribute("v-hidden","");continue}n.hasAttribute("v-hidden")&&n.removeAttribute("v-hidden");const o=n.offsetWidth;if(h+=o,d[t]=o,h>c){const{updateCounter:n}=e;for(let e=t;e>=0;--e){const o=f-1-e;void 0!==n?n(o):a.textContent=`${o}`;const r=a.offsetWidth;if(h-=d[e],h+r<=c||0===e){p=!0,t=e-1,u&&(-1===t?(u.style.maxWidth=c-r+"px",u.style.boxSizing="border-box"):u.style.maxWidth="");break}}}}const{onUpdateOverflow:g}=e;p?void 0!==g&&g(!0):(void 0!==g&&g(!1),a.setAttribute("v-hidden",""))}const i=Ol();return Vh.mount({id:"vueuc/overflow",head:!0,ssr:i}),cn(r),{selfRef:n,counterRef:o,sync:r}},render(){const{$slots:e}=this;return pr(this.sync),$r("div",{class:"v-overflow",ref:"selfRef"},[Mo(e,"default"),e.counter?e.counter():$r("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});const Kh="#000",Gh="#fff",Yh="#fff",qh="rgb(72, 72, 78)",Xh="rgb(24, 24, 28)",Zh="rgb(44, 44, 50)",Jh="rgb(16, 16, 20)",Qh="0.9",ep="0.82",tp="0.52",np="0.38",op="0.28",rp="0.52",ip="0.38",sp="0.06",ap="0.09",lp="0.06",cp="0.05",dp="0.05",up="0.18",hp="0.2",pp="0.12",fp="0.24",gp="0.09",mp="0.1",vp="0.06",bp="0.04",yp="0.2",Cp="0.3",wp="0.12",xp="0",Sp="#7fe7c4",Ap="#63e2b7",kp="#5acea7",Fp="rgb(42, 148, 125)",Ep="#8acbec",$p="#70c0e8",_p="#66afd3",Rp="rgb(56, 137, 197)",Bp="#e98b8b",Tp="#e88080",Dp="#e57272",Mp="rgb(208, 58, 82)",Lp="#f5d599",Pp="#f2c97d",Op="#e6c260",zp="rgb(240, 138, 0)",Ip="#7fe7c4",jp="#63e2b7",Np="#5acea7",Hp="rgb(42, 148, 125)",Wp=ji(Kh),Vp=ji(Gh),Up="rgba("+Vp.slice(0,3).join(", ")+", ";function Kp(e){return Up+String(e)+")"}var Gp=Object.assign(Object.assign({name:"common"},gc),{baseColor:Kh,primaryColor:Ap,primaryColorHover:Sp,primaryColorPressed:kp,primaryColorSuppl:Fp,infoColor:$p,infoColorHover:Ep,infoColorPressed:_p,infoColorSuppl:Rp,successColor:jp,successColorHover:Ip,successColorPressed:Np,successColorSuppl:Hp,warningColor:Pp,warningColorHover:Lp,warningColorPressed:Op,warningColorSuppl:zp,errorColor:Tp,errorColorHover:Bp,errorColorPressed:Dp,errorColorSuppl:Mp,textColorBase:Yh,textColor1:Kp(Qh),textColor2:Kp(ep),textColor3:Kp(tp),textColorDisabled:Kp(np),placeholderColor:Kp(np),placeholderColorDisabled:Kp(op),iconColor:Kp(np),iconColorDisabled:Kp(op),iconColorHover:Kp(1.25*Number(np)),iconColorPressed:Kp(.8*Number(np)),opacity1:Qh,opacity2:ep,opacity3:tp,opacity4:np,opacity5:op,dividerColor:Kp(gp),borderColor:Kp(fp),closeColorHover:Kp(1.25*Number(rp)),closeColor:Kp(Number(rp)),closeColorPressed:Kp(.8*Number(rp)),closeColorDisabled:Kp(np),clearColor:Kp(np),clearColorHover:Ui(Kp(np),{alpha:1.25}),clearColorPressed:Ui(Kp(np),{alpha:.8}),scrollbarColor:Kp(yp),scrollbarColorHover:Kp(Cp),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Kp(pp),railColor:Kp(hp),popoverColor:qh,tableColor:Xh,cardColor:Xh,modalColor:Zh,bodyColor:Jh,tagColor:function(e){const t=Array.from(Vp);return t[3]=Number(e),Wi(Wp,t)}(xp),avatarColor:Kp(up),invertedColor:Kh,inputColor:Kp(mp),codeColor:Kp(wp),tabColor:Kp(bp),actionColor:Kp(vp),tableHeaderColor:Kp(vp),hoverColor:Kp(ap),tableColorHover:Kp(lp),tableColorStriped:Kp(cp),pressedColor:Kp(dp),opacityDisabled:ip,inputColorDisabled:Kp(sp),buttonColor2:"rgba(255, 255, 255, .06)",buttonColor2Hover:"rgba(255, 255, 255, .09)",buttonColor2Pressed:"rgba(255, 255, 255, .05)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"});const Yp="#FFF",qp="#000",Xp="#000",Zp="#fff",Jp="#fff",Qp="#fff",ef="#fff",tf="0.82",nf="0.72",of="0.38",rf="0.24",sf="0.18",af="0.52",lf="0.5",cf="0.2",df=".08",uf="0",hf="0.25",pf="0.4",ff="#36ad6a",gf="#18a058",mf="#0c7a43",vf="#36ad6a",bf="#4098fc",yf="#2080f0",Cf="#1060c9",wf="#4098fc",xf="#de576d",Sf="#d03050",Af="#ab1f3f",kf="#de576d",Ff="#fcb040",Ef="#f0a020",$f="#c97c10",_f="#fcb040",Rf="#36ad6a",Bf="#18a058",Tf="#0c7a43",Df="#36ad6a",Mf=ji(Yp),Lf=ji(qp),Pf="rgba("+Lf.slice(0,3).join(", ")+", ";function Of(e){return Pf+String(e)+")"}function zf(e){const t=Array.from(Lf);return t[3]=Number(e),Wi(Mf,t)}var If=Object.assign(Object.assign({name:"common"},gc),{baseColor:Yp,primaryColor:gf,primaryColorHover:ff,primaryColorPressed:mf,primaryColorSuppl:vf,infoColor:yf,infoColorHover:bf,infoColorPressed:Cf,infoColorSuppl:wf,successColor:Bf,successColorHover:Rf,successColorPressed:Tf,successColorSuppl:Df,warningColor:Ef,warningColorHover:Ff,warningColorPressed:$f,warningColorSuppl:_f,errorColor:Sf,errorColorHover:xf,errorColorPressed:Af,errorColorSuppl:kf,textColorBase:Xp,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:zf(rf),placeholderColor:zf(rf),placeholderColorDisabled:zf(sf),iconColor:zf(rf),iconColorHover:Ui(zf(rf),{lightness:.75}),iconColorPressed:Ui(zf(rf),{lightness:.9}),iconColorDisabled:zf(sf),opacity1:tf,opacity2:nf,opacity3:of,opacity4:rf,opacity5:sf,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeColor:zf(Number(af)),closeColorHover:zf(1.25*Number(af)),closeColorPressed:zf(.8*Number(af)),closeColorDisabled:zf(rf),clearColor:zf(rf),clearColorHover:Ui(zf(rf),{lightness:.75}),clearColorPressed:Ui(zf(rf),{lightness:.9}),scrollbarColor:Of(hf),scrollbarColorHover:Of(pf),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:zf(df),railColor:"rgb(219, 219, 223)",popoverColor:Zp,tableColor:Jp,cardColor:Jp,modalColor:Qp,bodyColor:ef,tagColor:"rgb(250, 250, 252)",avatarColor:zf(cf),invertedColor:"rgb(0, 20, 40)",inputColor:zf(uf),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:lf,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),jf={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};const Nf=e=>{const{textColorDisabled:t,iconColor:n,textColor2:o,fontSizeSmall:r,fontSizeMedium:i,fontSizeLarge:s,fontSizeHuge:a}=e;return Object.assign(Object.assign({},jf),{fontSizeSmall:r,fontSizeMedium:i,fontSizeLarge:s,fontSizeHuge:a,textColor:t,iconColor:n,extraTextColor:o})};var Hf={name:"Empty",common:If,self:Nf};var Wf={name:"Empty",common:Gp,self:Nf},Vf=sc("empty","\n display: flex;\n flex-direction: column;\n align-items: center;\n font-size: var(--font-size);\n",[ac("icon","\n width: var(--icon-size);\n height: var(--icon-size);\n font-size: var(--icon-size);\n line-height: var(--icon-size);\n color: var(--icon-color);\n transition:\n color .3s var(--bezier);\n "),ac("description","\n margin-top: 8px;\n transition: color .3s var(--bezier);\n color: var(--text-color);\n "),ac("extra","\n text-align: center;\n transition: color .3s var(--bezier);\n margin-top: 12px;\n color: var(--extra-text-color);\n ")]);var Uf=Jt({name:"Empty",props:Object.assign(Object.assign({},wd.props),{description:{type:String,default:void 0},showDescription:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Empty","Empty",Vf,Hf,e,t),{localeRef:o}=Pd("Empty"),r=Ht(yd,null),i=Et((()=>{var t,n,o;return null!==(t=e.description)&&void 0!==t?t:null===(o=null===(n=null==r?void 0:r.mergedComponentPropsRef.value)||void 0===n?void 0:n.Empty)||void 0===o?void 0:o.description}));return{mergedClsPrefix:t,mergedRenderIcon:Et((()=>{var e,t;return(null===(t=null===(e=null==r?void 0:r.mergedComponentPropsRef.value)||void 0===e?void 0:e.Empty)||void 0===t?void 0:t.renderIcon)||(()=>$r(Gd,null))})),localizedDescription:Et((()=>i.value||o.value.description)),cssVars:Et((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:o},self:{[tc("iconSize",t)]:r,[tc("fontSize",t)]:i,textColor:s,iconColor:a,extraTextColor:l}}=n.value;return{"--icon-size":r,"--font-size":i,"--bezier":o,"--text-color":s,"--icon-color":a,"--extra-text-color":l}}))}},render(){const{$slots:e,mergedClsPrefix:t}=this;return $r("div",{class:`${t}-empty`,style:this.cssVars},$r("div",{class:`${t}-empty__icon`},Mo(e,"icon",void 0,(()=>[$r(cu,{clsPrefix:t},{default:this.mergedRenderIcon})]))),this.showDescription?$r("div",{class:`${t}-empty__description`},Mo(e,"default",void 0,(()=>[this.localizedDescription]))):null,e.extra?$r("div",{class:`${t}-empty__extra`},Mo(e,"extra")):null)}});const Kf=e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}};var Gf={name:"Scrollbar",common:If,self:Kf};var Yf={name:"Scrollbar",common:Gp,self:Kf};const{cubicBezierEaseInOut:qf}=gc;function Xf({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:o=qf,leaveCubicBezier:r=qf}={}){return[rc(`&.${e}-transition-enter-active`,{transition:`all ${t} ${o}!important`}),rc(`&.${e}-transition-leave-active`,{transition:`all ${n} ${r}!important`}),rc(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),rc(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}var Zf=sc("scrollbar","\n overflow: hidden;\n position: relative;\n z-index: auto;\n height: 100%;\n width: 100%;\n",[rc(">",[sc("scrollbar-container","\n width: 100%;\n overflow: scroll;\n height: 100%;\n max-height: inherit;\n scrollbar-width: none;\n ",[rc("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),rc(">",[sc("scrollbar-content","\n box-sizing: border-box;\n min-width: 100%;\n ")])]),sc("scrollbar-rail","\n position: absolute;\n pointer-events: none;\n user-select: none;\n ",[lc("horizontal","\n left: 2px;\n right: 2px;\n bottom: 4px;\n height: var(--scrollbar-height);\n ",[rc(">",[ac("scrollbar","\n height: var(--scrollbar-height);\n border-radius: var(--scrollbar-border-radius);\n right: 0;\n ")])]),lc("vertical","\n right: 4px;\n top: 2px;\n bottom: 2px;\n width: var(--scrollbar-width);\n ",[rc(">",[ac("scrollbar","\n width: var(--scrollbar-width);\n border-radius: var(--scrollbar-border-radius);\n bottom: 0;\n ")])]),lc("disabled",[rc(">",[ac("scrollbar",{pointerEvents:"none"})])]),rc(">",[ac("scrollbar","\n position: absolute;\n cursor: pointer;\n pointer-events: all;\n background-color: var(--scrollbar-color);\n transition: background-color .2s var(--scrollbar-bezier);\n ",[Xf(),rc("&:hover",{backgroundColor:"var(--scrollbar-color-hover)"})])])])])]);var Jf=Jt({name:"Scrollbar",props:Object.assign(Object.assign({},wd.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:{type:Boolean,default:!1},container:Function,content:Function,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function}),inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=bt(null),o=bt(null),r=bt(null),i=bt(null),s=bt(null),a=bt(null),l=bt(null),c=bt(null),d=bt(null),u=bt(null),h=bt(null),p=bt(0),f=bt(0),g=bt(!1),m=bt(!1);let v,b,y=!1,C=!1,w=0,x=0,S=0,A=0;const k=Kc,F=Et((()=>{const{value:t}=c,{value:n}=a,{value:o}=u;return null===t||null===n||null===o?0:Math.min(t,o*t/n+1.5*e.size)})),E=Et((()=>`${F.value}px`)),$=Et((()=>{const{value:t}=d,{value:n}=l,{value:o}=h;return null===t||null===n||null===o?0:o*t/n+1.5*e.size})),_=Et((()=>`${$.value}px`)),R=Et((()=>{const{value:e}=c,{value:t}=p,{value:n}=a,{value:o}=u;return null===e||null===n||null===o?0:t/(n-e)*(o-F.value)})),B=Et((()=>`${R.value}px`)),T=Et((()=>{const{value:e}=d,{value:t}=f,{value:n}=l,{value:o}=h;return null===e||null===n||null===o?0:t/(n-e)*(o-$.value)})),D=Et((()=>`${T.value}px`)),M=Et((()=>{const{value:e}=c,{value:t}=a;return null!==e&&null!==t&&t>e})),L=Et((()=>{const{value:e}=d,{value:t}=l;return null!==e&&null!==t&&t>e})),P=Et((()=>{const{container:t}=e;return t?t():o.value})),O=Et((()=>{const{content:t}=e;return t?t():r.value})),z=H;function I(e,t,n,o,r){const{value:i}=P;if(i){if(o){const{scrollTop:o,offsetHeight:s}=i;if(t>o)return void(t+n<=o+s||i.scrollTo({left:e,top:t+n-s,behavior:r}))}i.scrollTo({left:e,top:t,behavior:r})}}function j(){!function(){void 0!==b&&window.clearTimeout(b);b=window.setTimeout((()=>{m.value=!1}),e.duration)}(),function(){void 0!==v&&window.clearTimeout(v);v=window.setTimeout((()=>{g.value=!1}),e.duration)}()}function N(){const{value:e}=P;e&&(p.value=e.scrollTop,f.value=e.scrollLeft)}function H(){e.scrollable&&(!function(){const{value:e}=O;e&&(a.value=e.offsetHeight,l.value=e.offsetWidth);const{value:t}=P;t&&(c.value=t.offsetHeight,d.value=t.offsetWidth);const{value:n}=s,{value:o}=i;n&&(h.value=n.offsetWidth),o&&(u.value=o.offsetHeight)}(),N())}function W(e){var t;return!(null===(t=n.value)||void 0===t?void 0:t.contains(e.target))}function V(t){if(!C)return;void 0!==v&&window.clearTimeout(v),void 0!==b&&window.clearTimeout(b);const{value:n}=d,{value:o}=l,{value:r}=$;if(null===n||null===o)return;const i=t.clientX-S,s=o-n;let a=x+i*(o-n)/(n-r);a=Math.min(s,a),a=Math.max(a,0);const{value:c}=P;if(c){c.scrollLeft=a;const{internalOnUpdateScrollLeft:t}=e;t&&t(a)}}function U(e){e.preventDefault(),e.stopPropagation(),Tc("mousemove",window,V,!0),Tc("mouseup",window,U,!0),C=!1,H(),W(e)&&j()}function K(e){if(!y)return;void 0!==v&&window.clearTimeout(v),void 0!==b&&window.clearTimeout(b);const{value:t}=c,{value:n}=a,{value:o}=F;if(null===t||null===n)return;const r=e.clientY-A,i=n-t;let s=w+r*(n-t)/(t-o);s=Math.min(i,s),s=Math.max(s,0);const{value:l}=P;l&&(l.scrollTop=s)}function G(e){e.preventDefault(),e.stopPropagation(),Tc("mousemove",window,K,!0),Tc("mouseup",window,G,!0),y=!1,H(),W(e)&&j()}wr((()=>{const{value:e}=L,{value:n}=M,{value:o}=t,{value:r}=s,{value:a}=i;r&&(e?r.classList.remove(`${o}-scrollbar-rail--disabled`):r.classList.add(`${o}-scrollbar-rail--disabled`)),a&&(n?a.classList.remove(`${o}-scrollbar-rail--disabled`):a.classList.add(`${o}-scrollbar-rail--disabled`))})),cn((()=>{e.container||H()})),hn((()=>{void 0!==v&&window.clearTimeout(v),void 0!==b&&window.clearTimeout(b),Tc("mousemove",window,K,!0),Tc("mouseup",window,G,!0)}));const Y=wd("Scrollbar","Scrollbar",Zf,Gf,e,t);return{sync:H,scrollTo:(t,n)=>{if(!e.scrollable)return;if("number"==typeof t)return void I(t,null!=n?n:0,0,!1,"auto");const{left:o,top:r,index:i,elSize:s,position:a,behavior:l,el:c,debounce:d=!0}=t;void 0===o&&void 0===r||I(null!=o?o:0,null!=r?r:0,0,!1,l),void 0!==c?I(0,c.offsetTop,c.offsetHeight,d,l):void 0!==i&&void 0!==s?I(0,i*s,s,d,l):"bottom"===a?I(0,Number.MAX_SAFE_INTEGER,0,!1,l):"top"===a&&I(0,0,0,!1,l)},mergedClsPrefix:t,containerScrollTop:p,wrapperRef:n,containerRef:o,contentRef:r,yRailRef:i,xRailRef:s,needYBar:M,needXBar:L,yBarSizePx:E,xBarSizePx:_,yBarTopPx:B,xBarLeftPx:D,isShowXBar:g,isShowYBar:m,isIos:k,handleScroll:function(t){const{onScroll:n}=e;n&&n(t),N()},handleContentResize:z,handleContainerResize:t=>{const{onResize:n}=e;n&&n(t),H()},handleMouseEnterWrapper:function(){!function(){void 0!==v&&window.clearTimeout(v);g.value=!0}(),function(){void 0!==b&&window.clearTimeout(b);m.value=!0}(),H()},handleMouseLeaveWrapper:function(){j()},handleYScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),y=!0,Bc("mousemove",window,K,!0),Bc("mouseup",window,G,!0),w=p.value,A=e.clientY},handleXScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),C=!0,Bc("mousemove",window,V,!0),Bc("mouseup",window,U,!0),x=f.value,S=e.clientX},cssVars:Et((()=>{const{common:{cubicBezierEaseInOut:e,scrollbarBorderRadius:t,scrollbarHeight:n,scrollbarWidth:o},self:{color:r,colorHover:i}}=Y.value;return{"--scrollbar-bezier":e,"--scrollbar-color":r,"--scrollbar-color-hover":i,"--scrollbar-border-radius":t,"--scrollbar-width":o,"--scrollbar-height":n}}))}},render(){const{$slots:e,mergedClsPrefix:t}=this;if(!this.scrollable)return Mo(e,"default");const n=()=>$r("div",To(this.$attrs,{ref:"wrapperRef",class:`${t}-scrollbar`,style:this.cssVars,onMouseenter:this.handleMouseEnterWrapper,onMouseleave:this.handleMouseLeaveWrapper}),[this.container?Mo(e,"default"):$r("div",{ref:"containerRef",class:`${t}-scrollbar-container`,style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},$r(Ih,{onResize:this.handleContentResize},{default:()=>$r("div",{ref:"contentRef",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${t}-scrollbar-content`,this.contentClass]},e)})),$r("div",{ref:"yRailRef",class:`${t}-scrollbar-rail ${t}-scrollbar-rail--vertical`,style:[this.horizontalRailStyle]},$r(Kr,{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?$r("div",{class:`${t}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),$r("div",{ref:"xRailRef",class:`${t}-scrollbar-rail ${t}-scrollbar-rail--horizontal`,style:[this.verticalRailStyle]},$r(Kr,{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?$r("div",{class:`${t}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,left:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))]);return this.container?n():$r(Ih,{onResize:this.handleContainerResize},{default:n})}});const Qf=$r(Hd);var eg=Jt({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:o,valueSetRef:r,renderLabelRef:i,renderOptionRef:s,handleOptionClick:a,handleOptionMouseEnter:l}=Ht(gd),c=wc((()=>{const{value:t}=n;return!!t&&e.tmNode.key===t.key}));return{multiple:o,isGrouped:wc((()=>{const{tmNode:t}=e,{parent:n}=t;return n&&"group"===n.rawNode.type})),isPending:c,isSelected:wc((()=>{const{value:n}=t,{value:i}=o;if(null===n)return!1;const s=e.tmNode.rawNode.value;if(i){const{value:e}=r;return e.has(s)}return n===s})),renderLabel:i,renderOption:s,handleMouseMove:function(t){const{tmNode:n}=e,{value:o}=c;n.disabled||o||l(t,n)},handleMouseEnter:function(t){const{tmNode:n}=e;n.disabled||l(t,n)},handleClick:function(t){const{tmNode:n}=e;n.disabled||a(t,n)}}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:o,isGrouped:r,multiple:i,renderOption:s,renderLabel:a,handleClick:l,handleMouseEnter:c,handleMouseMove:d}=this,u=function(e,t){return $r(Kr,{name:"fade-in-scale-up-transition"},{default:()=>e?$r(cu,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>Qf}):null})}(i&&n,e),h=a?[a(t,n),u]:[td(t.label,t,n),u],p=$r("div",{class:[`${e}-base-select-option`,t.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:o}],style:t.style,onClick:l,onMouseenter:c,onMousemove:d},$r("div",{class:`${e}-base-select-option__content`},h));return t.render?t.render({node:p,option:t,selected:n}):s?s({node:p,option:t,selected:n}):p}}),tg=Jt({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t}=Ht(gd);return{renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,tmNode:{rawNode:o}}=this,r=$r("div",{class:`${e}-base-select-group-header`},t?t(o,!1):td(o.label,o,!1));return o.render?o.render({node:r,option:o}):n?n({node:r,option:o,selected:!1}):r}});const{cubicBezierEaseIn:ng,cubicBezierEaseOut:og,transformDebounceScale:rg}=gc;function ig({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:o="",originalTransition:r=""}={}){return[rc("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${ng}, transform ${t} ${ng} ${r&&","+r}`}),rc("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${og}, transform ${t} ${og} ${r&&","+r}`}),rc("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${n})`}),rc("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(${rg})`})]}var sg=sc("base-select-menu","\n line-height: 1.5;\n outline: none;\n z-index: 0;\n position: relative;\n border-radius: var(--border-radius);\n transition:\n background-color .3s var(--bezier),\n box-shadow .3s var(--bezier);\n background-color: var(--color);\n",[lc("multiple",[sc("base-select-option","\n padding-right: 28px;\n ")]),sc("scrollbar","\n max-height: var(--height);\n "),sc("virtual-list","\n max-height: var(--height);\n "),sc("base-select-option","\n min-height: var(--option-height);\n font-size: var(--option-font-size);\n display: flex;\n align-items: center;\n ",[ac("content","\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n ")]),sc("base-select-group-header","\n min-height: var(--option-height);\n font-size: .93em;\n display: flex;\n align-items: center;\n "),sc("base-select-menu-option-wrapper","\n position: relative;\n width: 100%;\n "),ac("loading, empty","\n display: flex;\n padding: 12px 32px;\n flex: 1;\n justify-content: center;\n "),ac("loading","\n color: var(--loading-color);\n font-size: var(--loading-size);\n "),ac("action","\n padding: 8px var(--option-padding-left);\n font-size: var(--option-font-size);\n transition: \n color .3s var(--bezier);\n border-color .3s var(--bezier);\n border-top: 1px solid var(--action-divider-color);\n color: var(--action-text-color);\n "),sc("base-select-group-header","\n position: relative;\n cursor: default;\n padding: var(--option-padding);\n color: var(--group-header-text-color);\n "),sc("base-select-option","\n cursor: pointer;\n position: relative;\n padding: var(--option-padding);\n transition:\n background-color .3s var(--bezier),\n color .3s var(--bezier),\n opacity .3s var(--bezier);\n box-sizing: border-box;\n color: var(--option-text-color);\n opacity: 1;\n ",[rc("&:active","\n color: var(--option-text-color-pressed);\n "),lc("grouped","\n padding-left: calc(var(--option-padding-left) * 1.5);\n "),lc("pending","\n background-color: var(--option-color-pending);\n "),lc("selected","\n color: var(--option-text-color-active);\n background-color: var(--option-color-active);\n "),lc("disabled","\n cursor: not-allowed;\n ",[cc("selected","\n color: var(--option-text-color-disabled);\n "),lc("selected","\n opacity: var(--option-opacity-disabled);\n ")]),ac("check","\n font-size: 16px;\n position: absolute;\n right: 8px;\n top: calc(50% - 7px);\n color: var(--option-check-color);\n transition: color .3s var(--bezier);\n ",[ig({enterScale:"0.5"})])])]),ag={height:"calc(var(--option-height) * 7.6)",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};const lg=e=>{const{borderRadius:t,popoverColor:n,textColor3:o,dividerColor:r,textColor2:i,primaryColorPressed:s,textColorDisabled:a,primaryColor:l,opacityDisabled:c,hoverColor:d,fontSizeSmall:u,fontSizeMedium:h,fontSizeLarge:p,fontSizeHuge:f,heightSmall:g,heightMedium:m,heightLarge:v,heightHuge:b}=e;return Object.assign(Object.assign({},ag),{optionFontSizeSmall:u,optionFontSizeMedium:h,optionFontSizeLarge:p,optionFontSizeHuge:f,optionHeightSmall:g,optionHeightMedium:m,optionHeightLarge:v,optionHeightHuge:b,borderRadius:t,color:n,groupHeaderTextColor:o,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:s,optionTextColorDisabled:a,optionTextColorActive:l,optionOpacityDisabled:c,optionCheckColor:l,optionColorPending:d,optionColorActive:d,actionTextColor:i,loadingColor:l})};var cg={name:"InternalSelectMenu",common:If,peers:{Scrollbar:Gf,Empty:Hf},self:lg};var dg={name:"InternalSelectMenu",common:Gp,peers:{Scrollbar:Yf,Empty:Wf},self:lg},ug=Jt({name:"InternalSelectMenu",props:Object.assign(Object.assign({},wd.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},width:[Number,String],autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onToggle:Function}),setup(e){const t=wd("InternalSelectMenu","InternalSelectMenu",sg,cg,e,kt(e,"clsPrefix")),n=bt(null),o=bt(null),r=bt(null),i=Et((()=>e.treeMate.getFlattenedNodes())),s=Et((()=>function(e){const t=new Map;return e.forEach(((e,n)=>{t.set(e.key,n)})),e=>{var n;return null!==(n=t.get(e))&&void 0!==n?n:null}}(i.value))),a=bt(null);function l(){const{treeMate:t}=e;g(e.autoPending?null===e.value?t.getFirstAvailableNode():e.multiple?t.getNode((e.value||[])[(e.value||[]).length-1])||t.getFirstAvailableNode():t.getNode(e.value)||t.getFirstAvailableNode():null)}l(),cn((()=>{wr((()=>{e.show&&(l(),pr(m))}))}));const c=Et((()=>Fi(t.value.self[tc("optionHeight",e.size)]))),d=Et((()=>$i(t.value.self[tc("padding",e.size)]))),u=Et((()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set)),h=Et((()=>{const e=i.value;return e&&0===e.length})),p=Et((()=>[{width:cd(e.width)},v.value]));function f(t){const{onScroll:n}=e;n&&n(t)}function g(e,t=!1){a.value=e,t&&m()}function m(){var t,n;const i=a.value;if(!i)return;const l=s.value(i.key);null!==l&&(e.virtualScroll?null===(t=o.value)||void 0===t||t.scrollTo({index:l}):null===(n=r.value)||void 0===n||n.scrollTo({index:l,elSize:c.value}))}Sr(kt(e,"treeMate"),(()=>{if(e.autoPending){g(e.treeMate.getFirstAvailableNode())}else g(null)})),Nt(gd,{handleOptionMouseEnter:function(e,t){t.disabled||g(t,!1)},handleOptionClick:function(t,n){n.disabled||function(t){const{onToggle:n}=e;n&&n(t)}(n)},valueSetRef:u,multipleRef:kt(e,"multiple"),valueRef:kt(e,"value"),renderLabelRef:kt(e,"renderLabel"),renderOptionRef:kt(e,"renderOption"),pendingTmNodeRef:a}),Nt(md,n),cn((()=>{const{value:e}=r;e&&e.sync()}));const v=Et((()=>{const{size:n}=e,{common:{cubicBezierEaseInOut:o},self:{height:r,borderRadius:i,color:s,groupHeaderTextColor:a,actionDividerColor:l,optionTextColorPressed:c,optionTextColor:d,optionTextColorDisabled:u,optionTextColorActive:h,optionOpacityDisabled:p,optionCheckColor:f,actionTextColor:g,optionColorPending:m,optionColorActive:v,loadingColor:b,loadingSize:y,[tc("optionFontSize",n)]:C,[tc("optionHeight",n)]:w,[tc("optionPadding",n)]:x}}=t.value;return{"--height":r,"--action-divider-color":l,"--action-text-color":g,"--bezier":o,"--border-radius":i,"--color":s,"--option-font-size":C,"--group-header-text-color":a,"--option-check-color":f,"--option-color-pending":m,"--option-color-active":v,"--option-height":w,"--option-opacity-disabled":p,"--option-text-color":d,"--option-text-color-active":h,"--option-text-color-disabled":u,"--option-text-color-pressed":c,"--option-padding":x,"--option-padding-left":$i(x,"left"),"--loading-color":b,"--loading-size":y}})),b={selfRef:n,next:function(){const{value:e}=a;e&&g(e.getNext({loop:!0}),!0)},prev:function(){const{value:e}=a;e&&g(e.getPrev({loop:!0}),!0)},getPendingTmNode:function(){const{value:e}=a;return e||null}};return Object.assign({mergedTheme:t,virtualListRef:o,scrollbarRef:r,style:p,itemSize:c,padding:d,flattenedNodes:i,empty:h,virtualListContainer(){const{value:e}=o;return null==e?void 0:e.listElRef},virtualListContent(){const{value:e}=o;return null==e?void 0:e.itemsElRef},doScroll:f,handleFocusin:function(t){var o,r;(null===(o=n.value)||void 0===o?void 0:o.contains(t.target))&&(null===(r=e.onFocus)||void 0===r||r.call(e,t))},handleFocusout:function(t){var o,r;(null===(o=n.value)||void 0===o?void 0:o.contains(t.relatedTarget))||null===(r=e.onBlur)||void 0===r||r.call(e,t)},handleKeyUp:function(t){var n;Ai(t,"action")||null===(n=e.onKeyup)||void 0===n||n.call(e,t)},handleKeyDown:function(t){var n;Ai(t,"action")||null===(n=e.onKeydown)||void 0===n||n.call(e,t)},handleMouseDown:function(t){var n;null===(n=e.onMousedown)||void 0===n||n.call(e,t),e.focusable||t.preventDefault()},handleVirtualListResize:function(){var e;null===(e=r.value)||void 0===e||e.sync()},handleVirtualListScroll:function(e){var t;null===(t=r.value)||void 0===t||t.sync(),f(e)}},b)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:o}=this;return $r("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,this.multiple&&`${n}-base-select-menu--multiple`],style:this.style,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},this.loading?$r("div",{class:`${n}-base-select-menu__loading`},$r(vu,{clsPrefix:n,strokeWidth:20})):this.empty?$r("div",{class:`${n}-base-select-menu__empty`},Mo(e,"empty",void 0,(()=>[$r(Uf,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty})]))):$r(Jf,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?$r(Nh,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:e})=>e.isGroup?$r(tg,{key:e.key,clsPrefix:n,tmNode:e}):e.ignored?null:$r(eg,{clsPrefix:n,key:e.key,tmNode:e})}):$r("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map((e=>e.isGroup?$r(tg,{key:e.key,clsPrefix:n,tmNode:e}):$r(eg,{clsPrefix:n,key:e.key,tmNode:e}))))}),e.action&&$r("div",{class:`${n}-base-select-menu__action`,"data-action":!0},Mo(e,"action")),e.action&&$r(hu,{onFocus:this.onTabOut}))}}),hg=sc("base-wave","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n"),pg=Jt({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Od("BaseWave",hg,kt(e,"clsPrefix"));const t=bt(null),n=bt(!1);let o=null;return hn((()=>{null!==o&&window.clearTimeout(o)})),{active:n,selfRef:t,play(){null!==o&&(window.clearTimeout(o),n.value=!1,o=null),pr((()=>{var e;null===(e=t.value)||void 0===e||e.offsetHeight,n.value=!0,o=window.setTimeout((()=>{n.value=!1,o=null}),1e3)}))}}},render(){const{clsPrefix:e}=this;return $r("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),fg={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};const gg=e=>{const{boxShadow2:t,popoverColor:n,textColor2:o,borderRadius:r,fontSize:i,dividerColor:s}=e;return Object.assign(Object.assign({},fg),{fontSize:i,borderRadius:r,color:n,dividerColor:s,textColor:o,boxShadow:t})};var mg={name:"Popover",common:If,self:gg};var vg={name:"Popover",common:Gp,self:gg};const bg={top:"bottom",bottom:"top",left:"right",right:"left"};var yg=rc([sc("popover","\n transition:\n box-shadow .3s var(--bezier),\n background-color .3s var(--bezier),\n color .3s var(--bezier);\n transform-origin: inherit;\n position: relative;\n font-size: var(--font-size);\n color: var(--text-color);\n box-shadow: var(--box-shadow);\n ",[rc("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),rc("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),rc("&.popover-transition-enter-active","\n transition:\n opacity .15s var(--bezier-ease-out),\n transform .15s var(--bezier-ease-out);\n "),rc("&.popover-transition-leave-active","\n transition:\n opacity .15s var(--bezier-ease-in),\n transform .15s var(--bezier-ease-in);\n "),cc("raw","\n background-color: var(--color);\n border-radius: var(--border-radius);\n ",[cc("show-header","padding: var(--padding);")]),ac("header","\n padding: var(--padding);\n border-bottom: 1px solid var(--divider-color);\n transition: border-color .3s var(--bezier);\n "),ac("content","\n padding: var(--padding);\n "),sc("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[sc("popover-arrow","\n transition: background-color .3s var(--bezier);\n position: absolute;\n display: block;\n width: calc(var(--arrow-height) * 1.414);\n height: calc(var(--arrow-height) * 1.414);\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--color);\n pointer-events: all;\n ")])]),Cg("top-start","\n top: calc(-0.707 * var(--arrow-height));\n left: var(--arrow-offset);\n "),Cg("top","\n top: calc(-0.707 * var(--arrow-height));\n transform: translateX(calc(-0.707 * var(--arrow-height))) rotate(45deg);\n left: 50%;\n "),Cg("top-end","\n top: calc(-0.707 * var(--arrow-height));\n right: var(--arrow-offset);\n "),Cg("bottom-start","\n bottom: calc(-0.707 * var(--arrow-height));\n left: var(--arrow-offset);\n "),Cg("bottom","\n bottom: calc(-0.707 * var(--arrow-height));\n transform: translateX(calc(-0.707 * var(--arrow-height))) rotate(45deg);\n left: 50%;\n "),Cg("bottom-end","\n bottom: calc(-0.707 * var(--arrow-height));\n right: var(--arrow-offset);\n "),Cg("left-start","\n left: calc(-0.707 * var(--arrow-height));\n top: var(--arrow-offset-vertical);\n "),Cg("left","\n left: calc(-0.707 * var(--arrow-height));\n transform: translateY(calc(-0.707 * var(--arrow-height))) rotate(45deg);\n top: 50%;\n "),Cg("left-end","\n left: calc(-0.707 * var(--arrow-height));\n bottom: var(--arrow-offset-vertical);\n "),Cg("right-start","\n right: calc(-0.707 * var(--arrow-height));\n top: var(--arrow-offset-vertical);\n "),Cg("right","\n right: calc(-0.707 * var(--arrow-height));\n transform: translateY(calc(-0.707 * var(--arrow-height))) rotate(45deg);\n top: 50%;\n "),Cg("right-end","\n right: calc(-0.707 * var(--arrow-height));\n bottom: var(--arrow-offset-vertical);\n ")]);function Cg(e,t){const n=e.split("-")[0],o=["top","bottom"].includes(n)?"height: var(--space-arrow);":"width: var(--space-arrow);";return rc(`[v-placement="${e}"] >`,[sc("popover",`\n margin-${bg[n]}: var(--space);\n `,[lc("show-arrow",`\n margin-${bg[n]}: var(--space-arrow);\n `),lc("overlap","\n margin: 0;\n "),fc("popover-arrow-wrapper",`\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ${n}: 100%;\n ${bg[n]}: auto;\n ${o}\n `,[sc("popover-arrow",t)])])])}const wg=Object.assign(Object.assign({},wd.props),{to:vd.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],animated:Boolean,onClickoutside:Function,minWidth:Number,maxWidth:Number}),xg=({arrowStyle:e,clsPrefix:t})=>$r("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},$r("div",{class:`${t}-popover-arrow`,style:e}));var Sg=Jt({name:"PopoverBody",inheritAttrs:!1,props:wg,setup(e,{slots:t,attrs:n}){const{namespaceRef:o,mergedClsPrefixRef:r}=Sd(e),i=wd("Popover","Popover",yg,mg,e,r),s=bt(null),a=Ht("NPopover"),l=bt(null),c=bt(e.show),d=Et((()=>{const{trigger:t,onClickoutside:n}=e,o=[],{positionManuallyRef:{value:r}}=a;return r||("click"!==t||n||o.push([Ju,m]),"hover"===t&&o.push([Xu,g])),n&&o.push([Ju,m]),"show"===e.displayDirective&&o.push([fi,e.show]),o})),u=Et((()=>[{width:"trigger"===e.width?"":cd(e.width),maxWidth:cd(e.maxWidth),minWidth:cd(e.minWidth)},h.value])),h=Et((()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{space:o,spaceArrow:r,padding:s,fontSize:a,textColor:l,dividerColor:c,color:d,boxShadow:u,borderRadius:h,arrowHeight:p,arrowOffset:f,arrowOffsetVertical:g}}=i.value;return{"--box-shadow":u,"--bezier":e,"--bezier-ease-in":t,"--bezier-ease-out":n,"--font-size":a,"--text-color":l,"--color":d,"--divider-color":c,"--border-radius":h,"--arrow-height":p,"--arrow-offset":f,"--arrow-offset-vertical":g,"--padding":s,"--space":o,"--space-arrow":r}}));function p(t){"hover"===e.trigger&&a.handleMouseEnter(t)}function f(t){"hover"===e.trigger&&a.handleMouseLeave(t)}function g(t){"hover"!==e.trigger||v().contains(t.target)||a.handleMouseMoveOutside(t)}function m(t){("click"===e.trigger&&!v().contains(t.target)||e.onClickoutside)&&a.handleClickOutside(t)}function v(){return a.getTriggerElement()}return a.setBodyInstance({syncPosition:function(){var e;null===(e=s.value)||void 0===e||e.syncPosition()}}),hn((()=>{a.setBodyInstance(null)})),Sr(kt(e,"show"),(t=>{e.animated||(c.value=!!t)})),Nt(fd,l),Nt(hd,null),Nt(dd,null),{namespace:o,isMounted:a.isMountedRef,zIndex:a.zIndexRef,followerRef:s,adjustedTo:vd(e),followerEnabled:c,renderContentNode:function(){let o;const{internalRenderBodyRef:{value:i}}=a,{value:s}=r;if(i)o=i([`${s}-popover`,e.overlap&&`${s}-popover--overlap`],l,u.value,p,f);else{const{value:r}=a.extraClassRef;o=$r("div",To({class:[`${s}-popover`,r.map((e=>`${s}-${e}`)),{[`${s}-popover--overlap`]:e.overlap,[`${s}-popover--show-arrow`]:e.showArrow,[`${s}-popover--show-header`]:!!t.header,[`${s}-popover--raw`]:e.raw}],ref:l,style:u.value,onMouseenter:p,onMouseleave:f},n),[t.header?$r(so,null,$r("div",{class:`${s}-popover__header`},t.header()),$r("div",{class:`${s}-popover__content`},t)):Mo(t,"default"),e.showArrow?xg({arrowStyle:e.arrowStyle,clsPrefix:s}):null])}return"show"===e.displayDirective||e.show?Hn(o,d.value):null}}},render(){return $r(gh,{zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,ref:"followerRef",overlap:this.overlap,width:"trigger"===this.width?"target":void 0,teleportDisabled:this.adjustedTo===vd.tdkey},{default:()=>this.animated?$r(Kr,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{this.followerEnabled=!1}},{default:this.renderContentNode}):this.renderContentNode()})}});const Ag=Object.keys(wg),kg={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};const Fg=Eo("").type,Eg={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,internalExtraClass:{type:Array,default:()=>[]},onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],zIndex:Number,to:vd.propTo,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number};var $g=Jt({name:"Popover",inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},wd.props),Eg),{internalRenderBody:Function}),__popover__:!0,setup(e){const t=Vc(),n=bt(null),o=Et((()=>e.show)),r=bt(e.defaultShow),i=Wc(o,r),s=wc((()=>!e.disabled&&i.value)),a=()=>{if(e.disabled)return!0;const{getDisabled:t}=e;return!!(null==t?void 0:t())},l=()=>!a()&&i.value,c=Uc(e,["arrow","showArrow"]),d=Et((()=>!e.overlap&&c.value));let u=null;const h=bt(null),p=bt(null),f=wc((()=>void 0!==e.x&&void 0!==e.y));function g(t){const{"onUpdate:show":n,onUpdateShow:o,onShow:i,onHide:s}=e;r.value=t,n&&Qc(n,t),o&&Qc(o,t),t&&i&&Qc(i,!0),t&&s&&Qc(s,!1)}function m(){const{value:e}=h;e&&(window.clearTimeout(e),h.value=null)}function v(){const{value:e}=p;e&&(window.clearTimeout(e),p.value=null)}function b(){const t=a();if("hover"===e.trigger&&!t){if(v(),null!==h.value)return;if(l())return;const t=()=>{g(!0),h.value=null},{delay:n}=e;0===n?t():h.value=window.setTimeout(t,n)}}function y(){const t=a();if("hover"===e.trigger&&!t){if(m(),null!==p.value)return;if(!l())return;const t=()=>{g(!1),p.value=null},{duration:n}=e;0===n?t():p.value=window.setTimeout(t,n)}}return Nt("NPopover",{getTriggerElement:function(){var e;return null===(e=n.value)||void 0===e?void 0:e.targetRef},handleMouseEnter:b,handleMouseLeave:y,handleClickOutside:function(t){var n;l()&&("click"===e.trigger&&(m(),v(),g(!1)),null===(n=e.onClickoutside)||void 0===n||n.call(e,t))},handleMouseMoveOutside:function(){y()},setBodyInstance:function(e){u=e},positionManuallyRef:f,isMountedRef:t,zIndexRef:kt(e,"zIndex"),extraClassRef:kt(e,"internalExtraClass"),internalRenderBodyRef:kt(e,"internalRenderBody")}),{binderInstRef:n,positionManually:f,mergedShowConsideringDisabledProp:s,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:l,setShow:function(e){r.value=e},handleClick:function(){if("click"===e.trigger&&!a()){m(),v();g(!l())}},handleMouseEnter:b,handleMouseLeave:y,handleFocus:function(){const t=a();if("focus"===e.trigger&&!t){if(l())return;g(!0)}},handleBlur:function(){const t=a();if("focus"===e.trigger&&!t){if(!l())return;g(!1)}},syncPosition:function(){u&&u.syncPosition()}}},render(){var e;const{positionManually:t,$slots:n}=this;let o,r=!1;if(!t&&(o=n.activator?id(n,"activator"):id(n,"trigger"),o)){o=Fo(o),o=o.type===Fg?$r("span",[o]):o;const n={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(null===(e=o.type)||void 0===e?void 0:e.__popover__)r=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[n,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[n];else{const{internalInheritedEventHandlers:e}=this,r=[n,...e],l={onBlur:e=>{r.forEach((t=>{t.onBlur(e)}))},onFocus:e=>{r.forEach((t=>{t.onFocus(e)}))},onClick:e=>{r.forEach((t=>{t.onClick(e)}))},onMouseenter:e=>{r.forEach((t=>{t.onMouseenter(e)}))},onMouseleave:e=>{r.forEach((t=>{t.onMouseleave(e)}))}};i=o,s=e?"nested":t?"manual":this.trigger,a=l,kg[s].forEach((e=>{i.props?i.props=Object.assign({},i.props):i.props={};const t=i.props[e],n=a[e];i.props[e]=t?(...e)=>{t(...e),n(...e)}:n}))}}var i,s,a;return $r(Gu,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const e=this.getMergedShow();return[t?null:$r(Yu,null,{default:()=>o}),$r(Sg,Xc(this.$props,Ag,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:e})),n)]}})}}),_g={closeSizeSmall:"14px",closeSizeMedium:"14px",closeSizeLarge:"14px",padding:"0 7px",closeMargin:"0 0 0 3px",closeMarginRtl:"0 3px 0 0"};var Rg={name:"Tag",common:Gp,self(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:s,warningColor:a,errorColor:l,baseColor:c,borderColor:d,opacityDisabled:u,closeColor:h,closeColorHover:p,closeColorPressed:f,borderRadiusSmall:g,fontSizeTiny:m,fontSizeSmall:v,fontSizeMedium:b,heightTiny:y,heightSmall:C,heightMedium:w}=e;return Object.assign(Object.assign({},_g),{heightSmall:y,heightMedium:C,heightLarge:w,borderRadius:g,opacityDisabled:u,fontSizeSmall:m,fontSizeMedium:v,fontSizeLarge:b,textColorCheckable:t,textColorHoverCheckable:n,textColorPressedCheckable:o,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:"#0000",colorPressedCheckable:"#0000",colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${d}`,textColor:t,color:"#0000",closeColor:h,closeColorHover:p,closeColorPressed:f,borderPrimary:`1px solid ${Vi(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:"#0000",closeColorPrimary:Vi(r,{alpha:.7}),closeColorHoverPrimary:Vi(r,{alpha:.85}),closeColorPressedPrimary:Vi(r,{alpha:.57}),borderInfo:`1px solid ${Vi(i,{alpha:.3})}`,textColorInfo:i,colorInfo:"#0000",closeColorInfo:Vi(i,{alpha:.7}),closeColorHoverInfo:Vi(i,{alpha:.85}),closeColorPressedInfo:Vi(i,{alpha:.57}),borderSuccess:`1px solid ${Vi(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:"#0000",closeColorSuccess:Vi(s,{alpha:.7}),closeColorHoverSuccess:Vi(s,{alpha:.85}),closeColorPressedSuccess:Vi(s,{alpha:.57}),borderWarning:`1px solid ${Vi(a,{alpha:.3})}`,textColorWarning:a,colorWarning:"#0000",closeColorWarning:Vi(a,{alpha:.7}),closeColorHoverWarning:Vi(a,{alpha:.85}),closeColorPressedWarning:Vi(a,{alpha:.57}),borderError:`1px solid ${Vi(l,{alpha:.3})}`,textColorError:l,colorError:"#0000",closeColorError:Vi(l,{alpha:.7}),closeColorHoverError:Vi(l,{alpha:.85}),closeColorPressedError:Vi(l,{alpha:.57})})}};var Bg={name:"Tag",common:If,self:e=>{const{textColor2:t,primaryColorHover:n,primaryColorPressed:o,primaryColor:r,infoColor:i,successColor:s,warningColor:a,errorColor:l,baseColor:c,borderColor:d,opacityDisabled:u,tagColor:h,closeColor:p,closeColorHover:f,closeColorPressed:g,borderRadiusSmall:m,fontSizeTiny:v,fontSizeSmall:b,fontSizeMedium:y,heightTiny:C,heightSmall:w,heightMedium:x}=e;return Object.assign(Object.assign({},_g),{heightSmall:C,heightMedium:w,heightLarge:x,borderRadius:m,opacityDisabled:u,fontSizeSmall:v,fontSizeMedium:b,fontSizeLarge:y,textColorCheckable:t,textColorHoverCheckable:n,textColorPressedCheckable:o,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:"#0000",colorPressedCheckable:"#0000",colorChecked:r,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${d}`,textColor:t,color:h,closeColor:p,closeColorHover:f,closeColorPressed:g,borderPrimary:`1px solid ${Vi(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Vi(r,{alpha:.1}),closeColorPrimary:Vi(r,{alpha:.75}),closeColorHoverPrimary:Vi(r,{alpha:.6}),closeColorPressedPrimary:Vi(r,{alpha:.9}),borderInfo:`1px solid ${Vi(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Vi(i,{alpha:.1}),closeColorInfo:Vi(i,{alpha:.75}),closeColorHoverInfo:Vi(i,{alpha:.6}),closeColorPressedInfo:Vi(i,{alpha:.9}),borderSuccess:`1px solid ${Vi(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:Vi(s,{alpha:.1}),closeColorSuccess:Vi(s,{alpha:.75}),closeColorHoverSuccess:Vi(s,{alpha:.6}),closeColorPressedSuccess:Vi(s,{alpha:.9}),borderWarning:`1px solid ${Vi(a,{alpha:.35})}`,textColorWarning:a,colorWarning:Vi(a,{alpha:.12}),closeColorWarning:Vi(a,{alpha:.75}),closeColorHoverWarning:Vi(a,{alpha:.6}),closeColorPressedWarning:Vi(a,{alpha:.9}),borderError:`1px solid ${Vi(l,{alpha:.23})}`,textColorError:l,colorError:Vi(l,{alpha:.08}),closeColorError:Vi(l,{alpha:.65}),closeColorHoverError:Vi(l,{alpha:.5}),closeColorPressedError:Vi(l,{alpha:.8})})}},Tg={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},Dg=sc("tag","\n white-space: nowrap;\n position: relative;\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex-wrap: nowrap;\n padding: var(--padding);\n border-radius: var(--border-radius);\n color: var(--text-color);\n background-color: var(--color);\n transition: \n border-color .3s var(--bezier),\n background-color .3s var(--bezier),\n color .3s var(--bezier),\n box-shadow .3s var(--bezier),\n opacity .3s var(--bezier);\n line-height: 1;\n height: var(--height);\n font-size: var(--font-size);\n",[ac("border","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--border);\n transition: border-color .3s var(--bezier);\n "),ac("avatar","\n display: flex;\n margin-right: 6px;\n "),ac("close","\n font-size: var(--close-size);\n margin: var(--close-margin);\n transition: color .3s var(--bezier);\n cursor: pointer;\n "),lc("round","\n padding: 0 calc(var(--height) / 2);\n border-radius: calc(var(--height) / 2);\n ",[ac("avatar","\n margin-left: calc((var(--height) - 8px) / -2);\n ")]),lc("disabled","\n cursor: not-allowed !important;\n opacity: var(--opacity-disabled);\n "),lc("checkable","\n cursor: pointer;\n box-shadow: none;\n color: var(--text-color-checkable);\n background-color: var(--color-checkable);\n ",[cc("disabled",[rc("&:hover",{backgroundColor:"var(--color-hover-checkable)"},[cc("checked",{color:"var(--text-color-hover-checkable)"})]),rc("&:active",{backgroundColor:"var(--color-pressed-checkable)"},[cc("checked",{color:"var(--text-color-pressed-checkable)"})])]),lc("checked",{color:"var(--text-color-checked)",backgroundColor:"var(--color-checked)"},[cc("disabled",[rc("&:hover",{backgroundColor:"var(--color-checked-hover)"}),rc("&:active",{backgroundColor:"var(--color-checked-pressed)"})])])])]);function Mg(e,t,n){if(!t)return;const o=Ol(),r=Et((()=>{const{value:n}=t;if(!n)return;const o=n[e];return o||void 0})),i=()=>{wr((()=>{const{value:t}=n,i=`${t}${e}Rtl`;if(function(e,t){if(void 0===e)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return null!==Yl(e)}(i,o))return;const{value:s}=r;s&&s.style.mount({id:i,head:!0,props:{bPrefix:t?`.${t}-`:void 0},ssr:o})}))};return o?i():ln(i),r}const Lg=Object.assign(Object.assign(Object.assign({},wd.props),Tg),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalStopClickPropagation:Boolean,onCheckedChange:{type:Function,validator:()=>!0,default:void 0}}),Pg=Symbol("tag");var Og=Jt({name:"Tag",props:Lg,setup(e){const t=bt(null),{mergedBorderedRef:n,mergedClsPrefixRef:o,NConfigProvider:r}=Sd(e),i=wd("Tag","Tag",Dg,Bg,e,o);Nt(Pg,{roundRef:kt(e,"round")});const s={setTextContent(e){const{value:n}=t;n&&(n.textContent=e)}},a=Mg("Tag",null==r?void 0:r.mergedRtlRef,o);return Object.assign(Object.assign({},s),{rtlEnabled:a,mergedClsPrefix:o,contentRef:t,mergedBordered:n,handleClick:function(t){if(!e.disabled&&e.checkable){const{checked:t,onCheckedChange:n,onUpdateChecked:o,"onUpdate:checked":r}=e;o&&o(!t),r&&r(!t),n&&n(!t)}},handleCloseClick:function(t){if(e.internalStopClickPropagation&&t.stopPropagation(),!e.disabled){const{onClose:n}=e;n&&Qc(n,t)}},cssVars:Et((()=>{const{type:t,size:n,color:{color:o,textColor:r}={}}=e,{common:{cubicBezierEaseInOut:s},self:{padding:a,closeMargin:l,closeMarginRtl:c,borderRadius:d,opacityDisabled:u,textColorCheckable:h,textColorHoverCheckable:p,textColorPressedCheckable:f,textColorChecked:g,colorCheckable:m,colorHoverCheckable:v,colorPressedCheckable:b,colorChecked:y,colorCheckedHover:C,colorCheckedPressed:w,[tc("closeSize",n)]:x,[tc("fontSize",n)]:S,[tc("height",n)]:A,[tc("color",t)]:k,[tc("textColor",t)]:F,[tc("border",t)]:E,[tc("closeColor",t)]:$,[tc("closeColorHover",t)]:_,[tc("closeColorPressed",t)]:R}}=i.value;return{"--avatar-size-override":`calc(${A} - 8px)`,"--bezier":s,"--border-radius":d,"--border":E,"--close-color":$,"--close-color-hover":_,"--close-color-pressed":R,"--close-margin":l,"--close-margin-rtl":c,"--close-size":x,"--color":o||k,"--color-checkable":m,"--color-checked":y,"--color-checked-hover":C,"--color-checked-pressed":w,"--color-hover-checkable":v,"--color-pressed-checkable":b,"--font-size":S,"--height":A,"--opacity-disabled":u,"--padding":a,"--text-color":r||F,"--text-color-checkable":h,"--text-color-checked":g,"--text-color-hover-checkable":p,"--text-color-pressed-checkable":f}}))})},render(){const{mergedClsPrefix:e,rtlEnabled:t,color:{borderColor:n}={},$slots:o}=this;return $r("div",{class:[`${e}-tag`,{[`${e}-tag--rtl`]:t,[`${e}-tag--disabled`]:this.disabled,[`${e}-tag--checkable`]:this.checkable,[`${e}-tag--checked`]:this.checkable&&this.checked,[`${e}-tag--round`]:this.round}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},o.avatar&&$r("div",{class:`${e}-tag__avatar`},{default:o.avatar}),$r("span",{class:`${e}-tag__content`,ref:"contentRef"},this.$slots),!this.checkable&&this.closable?$r(uu,{clsPrefix:e,class:`${e}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick}):null,!this.checkable&&this.mergedBordered?$r("div",{class:`${e}-tag__border`,style:{borderColor:n}}):null)}}),zg=sc("base-clear","\n flex-shrink: 0;\n height: 1em;\n width: 1em;\n position: relative;\n",[rc(">",[ac("clear","\n font-size: var(--clear-size);\n cursor: pointer;\n color: var(--clear-color);\n transition: color .3s var(--bezier);\n ",[rc("&:hover","\n color: var(--clear-color-hover)!important;\n "),rc("&:active","\n color: var(--clear-color-pressed)!important;\n ")]),ac("placeholder","\n display: flex;\n "),ac("clear, placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[gu({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Ig=Jt({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){Od("BaseClear",zg,kt(e,"clsPrefix"));const{NConfigProvider:t}=Sd();return{NConfigProvider:t,handleMouseDown(e){e.preventDefault()}}},render(){const{clsPrefix:e}=this;return $r("div",{class:`${e}-base-clear`},$r(su,null,{default:()=>this.show?$r(cu,{clsPrefix:e,key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},{default:()=>$r(ru,null)}):$r("div",{key:"icon",class:`${e}-base-clear__placeholder`},this.$slots)}))}}),jg=Jt({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup:e=>()=>{const{clsPrefix:t}=e;return $r(vu,{clsPrefix:t,class:`${t}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?$r(Ig,{clsPrefix:t,show:e.showClear,onClear:e.onClear},{default:()=>$r(cu,{clsPrefix:t,class:`${t}-base-suffix__arrow`},{default:()=>$r(ou,null)})}):null})}}),Ng={paddingSingle:"0 26px 0 14px",clearSize:"16px",arrowSize:"16px"};var Hg={name:"InternalSelection",common:If,peers:{Popover:mg},self:e=>{const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:s,primaryColorHover:a,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderColor:h,iconColor:p,iconColorDisabled:f,clearColor:g,clearColorHover:m,clearColorPressed:v,placeholderColor:b,placeholderColorDisabled:y,fontSizeTiny:C,fontSizeSmall:w,fontSizeMedium:x,fontSizeLarge:S,heightTiny:A,heightSmall:k,heightMedium:F,heightLarge:E}=e;return Object.assign(Object.assign({},Ng),{fontSizeTiny:C,fontSizeSmall:w,fontSizeMedium:x,fontSizeLarge:S,heightTiny:A,heightSmall:k,heightMedium:F,heightLarge:E,borderRadius:t,textColor:n,textColorDisabled:o,placeholderColor:b,placeholderColorDisabled:y,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${h}`,borderHover:`1px solid ${a}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${a}`,boxShadowHover:null,boxShadowActive:`0 0 0 2px ${Vi(s,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Vi(s,{alpha:.2})}`,caretColor:s,arrowColor:p,arrowColorDisabled:f,loadingColor:s,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:null,boxShadowActiveWarning:`0 0 0 2px ${Vi(l,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Vi(l,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:null,boxShadowActiveError:`0 0 0 2px ${Vi(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Vi(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:g,clearColorHover:m,clearColorPressed:v})}};var Wg={name:"InternalSelection",common:Gp,peers:{Popover:vg},self(e){const{borderRadius:t,textColor2:n,textColorDisabled:o,inputColor:r,inputColorDisabled:i,primaryColor:s,primaryColorHover:a,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,iconColor:h,iconColorDisabled:p,clearColor:f,clearColorHover:g,clearColorPressed:m,placeholderColor:v,placeholderColorDisabled:b,fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:w,fontSizeLarge:x,heightTiny:S,heightSmall:A,heightMedium:k,heightLarge:F}=e;return Object.assign(Object.assign({},Ng),{fontSizeTiny:y,fontSizeSmall:C,fontSizeMedium:w,fontSizeLarge:x,heightTiny:S,heightSmall:A,heightMedium:k,heightLarge:F,borderRadius:t,textColor:n,textColorDisabled:o,placeholderColor:v,placeholderColorDisabled:b,color:r,colorDisabled:i,colorActive:Vi(s,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${a}`,borderActive:`1px solid ${s}`,borderFocus:`1px solid ${a}`,boxShadowHover:null,boxShadowActive:`0 0 8px 0 ${Vi(s,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Vi(s,{alpha:.4})}`,caretColor:s,arrowColor:h,arrowColorDisabled:p,loadingColor:s,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${l}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:null,boxShadowActiveWarning:`0 0 8px 0 ${Vi(l,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Vi(l,{alpha:.4})}`,colorActiveWarning:Vi(l,{alpha:.1}),caretColorWarning:l,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:null,boxShadowActiveError:`0 0 8px 0 ${Vi(d,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Vi(d,{alpha:.4})}`,colorActiveError:Vi(d,{alpha:.1}),caretColorError:d,clearColor:f,clearColorHover:g,clearColorPressed:m})}},Vg=rc([sc("base-selection","\n position: relative;\n z-index: auto;\n box-shadow: none;\n width: 100%;\n max-width: 100%;\n display: inline-block;\n vertical-align: bottom;\n border-radius: var(--border-radius);\n min-height: var(--height);\n line-height: 1.5;\n font-size: var(--font-size);\n ",[sc("base-loading","\n color: var(--loading-color);\n "),sc("base-selection-tags",{minHeight:"var(--height)"}),ac("border, state-border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border: var(--border);\n border-radius: inherit;\n transition:\n box-shadow .3s var(--bezier),\n border-color .3s var(--bezier);\n "),ac("state-border","\n z-index: 1;\n border-color: #0000;\n "),sc("base-suffix","\n cursor: pointer;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 10px;\n ",[ac("arrow","\n font-size: var(--arrow-size);\n color: var(--arrow-color);\n transition: color .3s var(--bezier);\n ")]),sc("base-selection-overlay","\n display: flex;\n align-items: center;\n white-space: nowrap;\n overflow: hidden;\n pointer-events: none;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: var(--padding-single);\n transition: color .3s var(--bezier);\n "),sc("base-selection-placeholder","\n color: var(--placeholder-color);\n "),sc("base-selection-tags","\n cursor: pointer;\n outline: none;\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n display: flex;\n padding: 3px 26px 0 14px;\n flex-wrap: wrap;\n align-items: center;\n width: 100%;\n vertical-align: bottom;\n background-color: var(--color);\n border-radius: inherit;\n transition:\n color .3s var(--bezier),\n box-shadow .3s var(--bezier),\n background-color .3s var(--bezier);\n "),sc("base-selection-label","\n height: var(--height);\n display: inline-flex;\n width: 100%;\n vertical-align: bottom;\n cursor: pointer;\n outline: none;\n z-index: auto;\n box-sizing: border-box;\n position: relative;\n transition:\n color .3s var(--bezier),\n box-shadow .3s var(--bezier),\n background-color .3s var(--bezier);\n border-radius: inherit;\n background-color: var(--color);\n align-items: center;\n ",[sc("base-selection-input","\n line-height: inherit;\n outline: none;\n cursor: pointer;\n box-sizing: border-box;\n border:none;\n width: 100%;\n padding: var(--padding-single);\n background-color: #0000;\n color: var(--text-color);\n transition: color .3s var(--bezier);\n caret-color: var(--caret-color);\n ",[ac("content","\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap; \n ")]),ac("render-label","\n color: var(--text-color);\n ")]),cc("disabled",[rc("&:hover",[ac("state-border","\n box-shadow: var(--box-shadow-hover);\n border: var(--border-hover);\n ")]),lc("focus",[ac("state-border","\n box-shadow: var(--box-shadow-focus);\n border: var(--border-focus);\n ")]),lc("active",[ac("state-border","\n box-shadow: var(--box-shadow-active);\n border: var(--border-active);\n "),sc("base-selection-label",{backgroundColor:"var(--color-active)"}),sc("base-selection-tags",{backgroundColor:"var(--color-active)"})])]),lc("disabled",{cursor:"not-allowed"},[ac("arrow","\n color: var(--arrow-color-disabled);\n "),sc("base-selection-label","\n cursor: not-allowed;\n background-color: var(--color-disabled);\n ",[sc("base-selection-input","\n cursor: not-allowed;\n color: var(--text-color-disabled);\n "),ac("render-label","\n color: var(--text-color-disabled);\n ")]),sc("base-selection-tags","\n cursor: not-allowed;\n background-color: var(--color-disabled);\n "),sc("base-selection-placeholder","\n cursor: not-allowed;\n color: var(--placeholder-color-disabled);\n ")]),sc("base-selection-input-tag","\n height: calc(var(--height) - 6px);\n line-height: calc(var(--height) - 6px);\n outline: none;\n display: none;\n position: relative;\n margin-bottom: 3px;\n max-width: 100%;\n vertical-align: bottom;\n ",[ac("input","\n min-width: 1px;\n padding: 0;\n background-color: #0000;\n outline: none;\n border: none;\n max-width: 100%;\n overflow: hidden;\n width: 1em;\n line-height: inherit;\n cursor: pointer;\n color: var(--text-color);\n caret-color: var(--caret-color);\n "),ac("mirror","\n position: absolute;\n left: 0;\n top: 0;\n white-space: pre;\n visibility: hidden;\n user-select: none;\n opacity: 0;\n ")])]),sc("base-selection-popover","\n margin-bottom: -3px;\n display: flex;\n flex-wrap: wrap;\n "),sc("base-selection-tag-wrapper","\n max-width: 100%;\n display: inline-flex;\n padding: 0 7px 3px 0;\n ",[rc("&:last-child",{paddingRight:0}),sc("tag","\n font-size: 14px;\n max-width: 100%;\n ",[ac("content","\n text-overflow: ellipsis;\n overflow: hidden;\n ")])]),["warning","error"].map((e=>dc(e,sc("base-selection",[ac("state-border",{border:`var(--border-${e})`}),cc("disabled",[rc("&:hover",[ac("state-border",`\n box-shadow: var(--box-shadow-hover-${e});\n border: var(--border-hover-${e});\n `)]),lc("active",[ac("state-border",`\n box-shadow: var(--box-shadow-active-${e});\n border: var(--border-active-${e});\n `),sc("base-selection-label",{backgroundColor:`var(--color-active-${e})`}),sc("base-selection-tags",{backgroundColor:`var(--box-shadow-active-${e})`})]),lc("focus",[ac("state-border",`\n box-shadow: var(--box-shadow-focus-${e});\n border: var(--border-focus-${e});\n `)])])]))))]),Ug=Jt({name:"InternalSelection",props:Object.assign(Object.assign({},wd.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:null},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeyup:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],onClear:Function,onPatternInput:Function,renderLabel:Function}),setup(e){const t=bt(null),n=bt(null),o=bt(null),r=bt(null),i=bt(null),s=bt(null),a=bt(null),l=bt(null),c=bt(null),d=bt(null),u=bt(!1),h=bt(!1),p=bt(!1),f=wd("InternalSelection","InternalSelection",Vg,Hg,e,kt(e,"clsPrefix")),g=Et((()=>e.clearable&&!e.disabled&&(p.value||e.active))),m=Et((()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):td(e.selectedOption.label,e.selectedOption,!0):e.placeholder)),v=Et((()=>{const t=e.selectedOption;if(t)return t.label})),b=Et((()=>e.multiple?!(!Array.isArray(e.selectedOptions)||!e.selectedOptions.length):null!==e.selectedOption));function y(){var o;const{value:r}=t;if(r){const{value:t}=n;t&&(t.style.width=`${r.offsetWidth}px`,"responsive"!==e.maxTagCount&&(null===(o=c.value)||void 0===o||o.sync()))}}function C(t){const{onPatternInput:n}=e;n&&n(t)}function w(t){!function(t){const{onDeleteOption:n}=e;n&&n(t)}(t)}Sr(kt(e,"active"),(e=>{e||function(){const{value:e}=d;e&&(e.style.display="none")}()})),Sr(kt(e,"pattern"),(()=>{e.multiple&&pr(y)}));const x=bt(!1);let S=null;let A=null;function k(){null!==A&&window.clearTimeout(A)}return cn((()=>{wr((()=>{const t=s.value;t&&(t.tabIndex=e.disabled||h.value?-1:0)}))})),{mergedTheme:f,mergedClearable:g,patternInputFocused:h,filterablePlaceholder:m,label:v,selected:b,showTagsPanel:u,isCompositing:x,counterRef:a,counterWrapperRef:l,patternInputMirrorRef:t,patternInputRef:n,selfRef:o,multipleElRef:r,singleElRef:i,patternInputWrapperRef:s,overflowRef:c,inputTagElRef:d,handleMouseDown:function(t){e.active&&e.filterable&&t.target!==n.value&&t.preventDefault()},handleFocusin:function(t){var n;t.relatedTarget&&(null===(n=o.value)||void 0===n?void 0:n.contains(t.relatedTarget))||function(t){const{onFocus:n}=e;n&&n(t)}(t)},handleClear:function(t){!function(t){const{onClear:n}=e;n&&n(t)}(t)},handleMouseEnter:function(){p.value=!0},handleMouseLeave:function(){p.value=!1},handleDeleteOption:w,handlePatternKeyDown:function(t){if("Backspace"===t.code&&!e.pattern.length){const{selectedOptions:t}=e;(null==t?void 0:t.length)&&w(t[t.length-1])}},handlePatternInputInput:function(e){const{value:n}=t;if(n){const t=e.target.value;n.textContent=t,y()}x.value?S=e:C(e)},handlePatternInputBlur:function(e){h.value=!1},handlePatternInputFocus:function(){h.value=!0},handleMouseEnterCounter:function(){e.disabled||e.active||(k(),A=window.setTimeout((()=>{u.value=!0}),100))},handleMouseLeaveCounter:function(){k()},handleFocusout:function(t){var n;(null===(n=o.value)||void 0===n?void 0:n.contains(t.relatedTarget))||function(t){const{onBlur:n}=e;n&&n(t)}(t)},handleCompositionEnd:function(){x.value=!1,C(S),S=null},handleCompositionStart:function(){x.value=!0},onPopoverUpdateShow:function(e){e||(k(),u.value=!1)},focus:function(){if(e.filterable){h.value=!1;const{value:e}=s;e&&e.focus()}else if(e.multiple){const{value:e}=r;null==e||e.focus()}else{const{value:e}=i;null==e||e.focus()}},focusInput:function(){const{value:e}=n;e&&(!function(){const{value:e}=d;e&&(e.style.display="inline-block")}(),e.focus())},blurInput:function(){const{value:e}=n;e&&e.blur()},updateCounter:function(e){const{value:t}=a;t&&t.setTextContent(`+${e}`)},getCounter:function(){const{value:e}=l;return e},getTail:function(){return n.value},renderLabel:e.renderLabel,cssVars:Et((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{borderRadius:o,color:r,placeholderColor:i,textColor:s,paddingSingle:a,caretColor:l,colorDisabled:c,textColorDisabled:d,placeholderColorDisabled:u,colorActive:h,boxShadowFocus:p,boxShadowActive:g,boxShadowHover:m,border:v,borderFocus:b,borderHover:y,borderActive:C,arrowColor:w,arrowColorDisabled:x,loadingColor:S,colorActiveWarning:A,boxShadowFocusWarning:k,boxShadowActiveWarning:F,boxShadowHoverWarning:E,borderWarning:$,borderFocusWarning:_,borderHoverWarning:R,borderActiveWarning:B,colorActiveError:T,boxShadowFocusError:D,boxShadowActiveError:M,boxShadowHoverError:L,borderError:P,borderFocusError:O,borderHoverError:z,borderActiveError:I,clearColor:j,clearColorHover:N,clearColorPressed:H,clearSize:W,arrowSize:V,[tc("height",t)]:U,[tc("fontSize",t)]:K}}=f.value;return{"--bezier":n,"--border":v,"--border-active":C,"--border-focus":b,"--border-hover":y,"--border-radius":o,"--box-shadow-active":g,"--box-shadow-focus":p,"--box-shadow-hover":m,"--caret-color":l,"--color":r,"--color-active":h,"--color-disabled":c,"--font-size":K,"--height":U,"--padding-single":a,"--placeholder-color":i,"--placeholder-color-disabled":u,"--text-color":s,"--text-color-disabled":d,"--arrow-color":w,"--arrow-color-disabled":x,"--loading-color":S,"--color-active-warning":A,"--box-shadow-focus-warning":k,"--box-shadow-active-warning":F,"--box-shadow-hover-warning":E,"--border-warning":$,"--border-focus-warning":_,"--border-hover-warning":R,"--border-active-warning":B,"--color-active-error":T,"--box-shadow-focus-error":D,"--box-shadow-active-error":M,"--box-shadow-hover-error":L,"--border-error":P,"--border-focus-error":O,"--border-hover-error":z,"--border-active-error":I,"--clear-size":W,"--clear-color":j,"--clear-color-hover":N,"--clear-color-pressed":H,"--arrow-size":V}}))}},render(){const{multiple:e,size:t,disabled:n,filterable:o,maxTagCount:r,bordered:i,clsPrefix:s,renderTag:a,renderLabel:l}=this,c="responsive"===r,d="number"==typeof r,u=c||d,h=$r(jg,{clsPrefix:s,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear});let p;if(e){const e=e=>$r("div",{class:`${s}-base-selection-tag-wrapper`,key:e.value},a?a({option:e,handleClose:()=>this.handleDeleteOption(e)}):$r(Og,{size:t,closable:!e.disabled,disabled:n,internalStopClickPropagation:!0,onClose:()=>this.handleDeleteOption(e)},{default:()=>l?l(e,!0):td(e.label,e,!0)})),i=(d?this.selectedOptions.slice(0,r):this.selectedOptions).map(e),f=o?$r("div",{class:`${s}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},$r("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:n,value:this.pattern,autofocus:this.autofocus,class:`${s}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),$r("span",{ref:"patternInputMirrorRef",class:`${s}-base-selection-input-tag__mirror`},this.pattern?this.pattern:"")):null,g=c?()=>$r("div",{class:`${s}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},$r(Og,{ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let m;if(d){const e=this.selectedOptions.length-r;e>0&&(m=$r("div",{class:`${s}-base-selection-tag-wrapper`,key:"__counter__"},$r(Og,{ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${e}`})))}const v=c?o?$r(Uh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:()=>i,counter:g,tail:()=>f}):$r(Uh,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:()=>i,counter:g}):d?i.concat(m):i,b=u?()=>$r("div",{class:`${s}-base-selection-popover`},c?i:this.selectedOptions.map(e)):void 0,y=u?{show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover}:null,C=this.selected||this.pattern||this.isCompositing?null:$r("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`},this.placeholder);if(o){const e=$r("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-tags`},v,c?null:f,h);p=$r(so,null,u?$r($g,Object.assign({},y),{trigger:()=>e,default:b}):e,C)}else{const e=$r("div",{ref:"multipleElRef",class:`${s}-base-selection-tags`,tabindex:n?void 0:0},v,h);p=$r(so,null,u?$r($g,Object.assign({},y),{trigger:()=>e,default:b}):e,C)}}else if(o){const e=!this.pattern&&(this.active||!this.selected)&&!this.isCompositing;p=$r("div",{ref:"patternInputWrapperRef",class:`${s}-base-selection-label`},$r("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${s}-base-selection-input`,value:this.patternInputFocused&&this.active?this.pattern:"",placeholder:"",readonly:n,disabled:n,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),e||this.patternInputFocused&&this.active?null:$r("div",{class:`${s}-base-selection-label__render-label ${s}-base-selection-overlay`,key:"input"},a?a({option:this.selectedOption,handleClose:()=>{}}):l?l(this.selectedOption,!0):td(this.label,this.selectedOption,!0)),e?$r("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},this.filterablePlaceholder):null,h)}else p=$r("div",{ref:"singleElRef",class:`${s}-base-selection-label`,tabindex:this.disabled?void 0:0},void 0!==this.label?$r("div",{class:`${s}-base-selection-input`,title:rd(this.label),key:"input"},$r("div",{class:`${s}-base-selection-input__content`},a?a({option:this.selectedOption,handleClose:()=>{}}):l?l(this.selectedOption,!0):td(this.label,this.selectedOption,!0))):$r("div",{class:`${s}-base-selection-placeholder ${s}-base-selection-overlay`,key:"placeholder"},this.placeholder),h);return $r("div",{ref:"selfRef",class:[`${s}-base-selection`,{[`${s}-base-selection--active`]:this.active,[`${s}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${s}-base-selection--disabled`]:this.disabled,[`${s}-base-selection--multiple`]:this.multiple,[`${s}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeyup:this.onKeyup,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},p,i?$r("div",{class:`${s}-base-selection__border`}):null,i?$r("div",{class:`${s}-base-selection__state-border`}):null)}}),Kg=Jt({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=bt(null),n=bt(e.value),o=bt(e.value),r=bt("up"),i=bt(!1),s=Et((()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${r.value}-scroll`:null)),a=Et((()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${r.value}-scroll`:null));function l(){const t=e.newOriginalNumber,n=e.oldOriginalNumber;void 0!==n&&void 0!==t&&(t>n?c("up"):n>t&&c("down"))}function c(e){r.value=e,i.value=!1,pr((()=>{var e;null===(e=t.value)||void 0===e||e.offsetWidth,i.value=!0}))}return Sr(kt(e,"value"),((e,t)=>{n.value=t,o.value=e,pr(l)})),()=>{const{clsPrefix:r}=e;return $r("span",{ref:t,class:`${r}-base-slot-machine-number`},null!==n.value?$r("span",{class:[`${r}-base-slot-machine-old-number ${r}-base-slot-machine-old-number--top`,a.value]},n.value):null,$r("span",{class:[`${r}-base-slot-machine-current-number`,s.value]},$r("span",{ref:"numberWrapper",class:[`${r}-base-slot-machine-current-number__inner`,"number"!=typeof e.value&&`${r}-base-slot-machine-current-number__inner--not-number`]},o.value)),null!==n.value?$r("span",{class:[`${r}-base-slot-machine-old-number ${r}-base-slot-machine-old-number--bottom`,a.value]},n.value):null)}}});const{cubicBezierEaseInOut:Gg}=gc;function Yg({duration:e=".2s",delay:t=".1s"}={}){return[rc("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),rc("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from","\n opacity: 0!important;\n margin-left: 0!important;\n margin-right: 0!important;\n "),rc("&.fade-in-width-expand-transition-leave-active",`\n overflow: hidden;\n transition:\n opacity ${e} ${Gg},\n max-width ${e} ${Gg} ${t},\n margin-left ${e} ${Gg} ${t},\n margin-right ${e} ${Gg} ${t};\n `),rc("&.fade-in-width-expand-transition-enter-active",`\n overflow: hidden;\n transition:\n opacity ${e} ${Gg} ${t},\n max-width ${e} ${Gg},\n margin-left ${e} ${Gg},\n margin-right ${e} ${Gg};\n `)]}const{cubicBezierEaseOut:qg}=gc;var Xg=rc([rc("@keyframes n-base-slot-machine-fade-up-in","\n from {\n transform: translateY(60%);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n "),rc("@keyframes n-base-slot-machine-fade-down-in","\n from {\n transform: translateY(-60%);\n opacity: 0;\n }\n to {\n transform: translateY(0);\n opacity: 1;\n }\n "),rc("@keyframes n-base-slot-machine-fade-up-out","\n from {\n transform: translateY(0%);\n opacity: 1;\n }\n to {\n transform: translateY(-60%);\n opacity: 0;\n }\n "),rc("@keyframes n-base-slot-machine-fade-down-out","\n from {\n transform: translateY(0%);\n opacity: 1;\n }\n to {\n transform: translateY(60%);\n opacity: 0;\n }\n "),sc("base-slot-machine","\n overflow: hidden;\n white-space: nowrap;\n display: inline-block;\n height: 18px;\n line-height: 18px;\n ",[sc("base-slot-machine-number","\n display: inline-block;\n position: relative;\n height: 18px;\n width: .6em;\n max-width: .6em;\n ",[function({duration:e=".2s"}={}){return[rc("&.fade-up-width-expand-transition-leave-active",{transition:`\n opacity ${e} ${qg},\n max-width ${e} ${qg},\n transform ${e} ${qg}\n `}),rc("&.fade-up-width-expand-transition-enter-active",{transition:`\n opacity ${e} ${qg},\n max-width ${e} ${qg},\n transform ${e} ${qg}\n `}),rc("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),rc("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),rc("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),rc("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}({duration:".2s"}),Yg({duration:".2s",delay:"0s"}),sc("base-slot-machine-old-number","\n display: inline-block;\n opacity: 0;\n position: absolute;\n left: 0;\n right: 0;\n ",[lc("top",{transform:"translateY(-100%)"}),lc("bottom",{transform:"translateY(100%)"}),lc("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),lc("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),sc("base-slot-machine-current-number","\n display: inline-block;\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n opacity: 1;\n transform: translateY(0);\n width: .6em;\n ",[lc("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),lc("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),ac("inner","\n display: inline-block;\n position: absolute;\n right: 0;\n top: 0;\n width: .6em;\n ",[lc("not-number","\n right: unset;\n left: 0;\n ")])])])])]),Zg=Jt({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){Od("BaseSlotMachine",Xg,kt(e,"clsPrefix"));const t=bt(),n=bt(),o=Et((()=>{if("string"==typeof e.value)return[];if(e.value<1)return[0];const t=[];let n=e.value;for(void 0!==e.max&&(n=Math.min(e.max,n));n>=1;)t.push(n%10),n/=10,n=Math.floor(n);return t.reverse(),t}));return Sr(kt(e,"value"),((e,o)=>{"string"==typeof e?(n.value=void 0,t.value=void 0):"string"==typeof o?(n.value=e,t.value=void 0):(n.value=e,t.value=o)})),()=>{const{value:r,clsPrefix:i}=e;return"number"==typeof r?$r("span",{class:`${i}-base-slot-machine`},$r(di,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>o.value.map(((e,r)=>$r(Kg,{clsPrefix:i,key:o.value.length-r-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:e})))}),$r(au,{key:"+",width:!0},{default:()=>void 0!==e.max&&e.max<r?$r(Kg,{clsPrefix:i,value:"+"}):null})):$r("span",{class:`${i}-base-slot-machine`},r)}}}),Jg={iconMargin:"12px 8px 0 12px",iconSize:"26px",closeSize:"16px",closeMargin:"14px 16px 0 0",padding:"15px"};var Qg={name:"Alert",common:Gp,self(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:o,dividerColor:r,inputColor:i,textColor1:s,textColor2:a,closeColor:l,closeColorHover:c,closeColorPressed:d,infoColorSuppl:u,successColorSuppl:h,warningColorSuppl:p,errorColorSuppl:f,fontSize:g}=e;return Object.assign(Object.assign({},Jg),{fontSize:g,lineHeight:t,titleFontWeight:o,borderRadius:n,border:`1px solid ${r}`,color:i,titleTextColor:s,iconColor:a,contentTextColor:a,closeColor:l,closeColorHover:c,closeColorPressed:d,borderInfo:`1px solid ${Vi(u,{alpha:.35})}`,colorInfo:Vi(u,{alpha:.25}),titleTextColorInfo:s,iconColorInfo:u,contentTextColorInfo:a,closeColorInfo:l,closeColorHoverInfo:c,closeColorPressedInfo:d,borderSuccess:`1px solid ${Vi(h,{alpha:.35})}`,colorSuccess:Vi(h,{alpha:.25}),titleTextColorSuccess:s,iconColorSuccess:h,contentTextColorSuccess:a,closeColorSuccess:l,closeColorHoverSuccess:c,closeColorPressedSuccess:d,borderWarning:`1px solid ${Vi(p,{alpha:.35})}`,colorWarning:Vi(p,{alpha:.25}),titleTextColorWarning:s,iconColorWarning:p,contentTextColorWarning:a,closeColorWarning:l,closeColorHoverWarning:c,closeColorPressedWarning:d,borderError:`1px solid ${Vi(f,{alpha:.35})}`,colorError:Vi(f,{alpha:.25}),titleTextColorError:s,iconColorError:f,contentTextColorError:a,closeColorError:l,closeColorHoverError:c,closeColorPressedError:d})}};const{cubicBezierEaseInOut:em,cubicBezierEaseOut:tm,cubicBezierEaseIn:nm}=gc;function om({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:o="0s",foldPadding:r=!1,enterToProps:i,leaveToProps:s,reverse:a=!1}={}){const l=a?"leave":"enter",c=a?"enter":"leave";return[rc(`&.fade-in-height-expand-transition-${c}-from,\n &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),rc(`&.fade-in-height-expand-transition-${c}-to,\n &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},s),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),rc(`&.fade-in-height-expand-transition-${c}-active`,`\n overflow: ${e};\n transition:\n max-height ${t} ${em} ${o},\n opacity ${t} ${tm} ${o},\n margin-top ${t} ${em} ${o},\n margin-bottom ${t} ${em} ${o},\n padding-top ${t} ${em} ${o},\n padding-bottom ${t} ${em} ${o}\n ${n?","+n:""}\n `),rc(`&.fade-in-height-expand-transition-${l}-active`,`\n overflow: ${e};\n transition:\n max-height ${t} ${em},\n opacity ${t} ${nm},\n margin-top ${t} ${em},\n margin-bottom ${t} ${em},\n padding-top ${t} ${em},\n padding-bottom ${t} ${em}\n ${n?","+n:""}\n `)]}var rm={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};var im={name:"Anchor",common:Gp,self:e=>{const{borderRadius:t,railColor:n,primaryColor:o,primaryColorHover:r,primaryColorPressed:i,textColor2:s}=e;return Object.assign(Object.assign({},rm),{borderRadius:t,railColor:n,railColorActive:o,linkColor:Vi(o,{alpha:.15}),linkTextColor:s,linkTextColorHover:r,linkTextColorPressed:i,linkTextColorActive:o})}},sm={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};var am={name:"Input",common:Gp,self(e){const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:s,inputColorDisabled:a,warningColor:l,warningColorHover:c,errorColor:d,errorColorHover:u,borderRadius:h,lineHeight:p,fontSizeTiny:f,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:v,heightTiny:b,heightSmall:y,heightMedium:C,heightLarge:w,clearColor:x,clearColorHover:S,clearColorPressed:A,placeholderColor:k,placeholderColorDisabled:F,iconColor:E,iconColorDisabled:$,iconColorHover:_,iconColorPressed:R}=e;return Object.assign(Object.assign({},sm),{countTextColor:n,heightTiny:b,heightSmall:y,heightMedium:C,heightLarge:w,fontSizeTiny:f,fontSizeSmall:g,fontSizeMedium:m,fontSizeLarge:v,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:s,textColor:t,textColorDisabled:o,textDecorationColor:t,groupLabelTextColor:t,caretColor:r,placeholderColor:k,placeholderColorDisabled:F,color:s,colorDisabled:a,colorFocus:Vi(r,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Vi(r,{alpha:.3})}`,loadingColor:r,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:Vi(l,{alpha:.1}),borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 8px 0 ${Vi(l,{alpha:.3})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,colorFocusError:Vi(d,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${Vi(d,{alpha:.3})}`,caretColorError:d,clearColor:x,clearColorHover:S,clearColorPressed:A,iconColor:E,iconColorDisabled:$,iconColorHover:_,iconColorPressed:R,suffixTextColor:t})}};var lm={name:"Input",common:If,self:e=>{const{textColor2:t,textColor3:n,textColorDisabled:o,primaryColor:r,primaryColorHover:i,inputColor:s,inputColorDisabled:a,borderColor:l,warningColor:c,warningColorHover:d,errorColor:u,errorColorHover:h,borderRadius:p,lineHeight:f,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:v,fontSizeLarge:b,heightTiny:y,heightSmall:C,heightMedium:w,heightLarge:x,actionColor:S,clearColor:A,clearColorHover:k,clearColorPressed:F,placeholderColor:E,placeholderColorDisabled:$,iconColor:_,iconColorDisabled:R,iconColorHover:B,iconColorPressed:T}=e;return Object.assign(Object.assign({},sm),{countTextColor:n,heightTiny:y,heightSmall:C,heightMedium:w,heightLarge:x,fontSizeTiny:g,fontSizeSmall:m,fontSizeMedium:v,fontSizeLarge:b,lineHeight:f,lineHeightTextarea:f,borderRadius:p,iconSize:"16px",groupLabelColor:S,groupLabelTextColor:t,textColor:t,textColorDisabled:o,textDecorationColor:t,caretColor:r,placeholderColor:E,placeholderColorDisabled:$,color:s,colorDisabled:a,colorFocus:s,groupLabelBorder:`1px solid ${l}`,border:`1px solid ${l}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${l}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Vi(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:s,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${Vi(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${h}`,colorFocusError:s,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${Vi(u,{alpha:.2})}`,caretColorError:u,clearColor:A,clearColorHover:k,clearColorPressed:F,iconColor:_,iconColorDisabled:R,iconColorHover:B,iconColorPressed:T,suffixTextColor:t})}};const cm=Symbol("input");function dm(e){return["",void 0,null].includes(e)}var um=Jt({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:o,mergedClsPrefixRef:r}=Ht(cm),i=Et((()=>{const{value:e}=n;return null===e||Array.isArray(e)?0:function(e){let t=0;for(const n of e)t++;return t}(e)}));return()=>{const{value:e}=o,{value:s}=n;return $r("span",{class:`${r.value}-input-word-count`},t.default?t.default({value:null===s||Array.isArray(s)?"":s}):void 0===e?i.value:`${i.value} / ${e}`)}}}),hm=rc([sc("input","\n max-width: 100%;\n cursor: text;\n line-height: 1.5;\n z-index: auto;\n outline: none;\n box-sizing: border-box;\n position: relative;\n display: inline-flex;\n border-radius: var(--border-radius);\n background-color: var(--color);\n transition: background-color .3s var(--bezier);\n font-size: var(--font-size);\n --padding-vertical: calc((var(--height) - 1.5 * var(--font-size)) / 2);\n ",[ac("input, textarea","\n overflow: hidden;\n flex-grow: 1;\n position: relative;\n "),ac("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder","\n box-sizing: border-box;\n font-size: inherit;\n line-height: 1.5;\n font-family: inherit;\n border: none;\n outline: none;\n background-color: #0000;\n text-align: inherit;\n transition:\n caret-color .3s var(--bezier),\n color .3s var(--bezier),\n text-decoration-color .3s var(--bezier);\n "),ac("input-el, textarea-el","\n -webkit-appearance: none;\n width: 100%;\n min-width: 0;\n text-decoration-color: var(--text-decoration-color);\n color: var(--text-color);\n caret-color: var(--caret-color);\n background-color: transparent;\n ",[rc("&::placeholder",{color:"#0000"})]),lc("round",[cc("textarea",{borderRadius:"calc(var(--height) / 2)"})]),ac("placeholder","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: hidden;\n color: var(--placeholder-color);\n ",[rc("span",{width:"100%",display:"inline-block"})]),cc("autosize",{width:"100%"}),lc("autosize",[ac("textarea-el, input-el","\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n ")]),sc("input-wrapper","\n overflow: hidden;\n display: inline-flex;\n flex-grow: 1;\n position: relative;\n padding-left: var(--padding-left);\n padding-right: var(--padding-right);\n "),ac("input-mirror","\n padding: 0;\n height: var(--height);\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: nowrap;\n pointer-events: none;\n "),ac("input-el","\n padding: 0;\n height: var(--height);\n line-height: var(--height);\n ",[rc("+",[ac("placeholder","\n display: flex;\n align-items: center; \n ")])]),cc("textarea",[ac("placeholder",{whiteSpace:"nowrap"})]),ac("eye","\n transition: color .3s var(--bezier);\n "),lc("textarea",{width:"100%"},[sc("input-word-count","\n position: absolute;\n right: var(--padding-right);\n bottom: var(--padding-vertical);\n "),lc("resizable",[sc("input-wrapper","\n resize: vertical;\n overflow: auto;\n min-height: var(--height);\n ")]),ac("textarea-el, textarea-mirror, placeholder","\n width: 100%;\n height: 100%;\n padding-left: 0;\n padding-right: 0;\n padding-top: var(--padding-vertical);\n padding-bottom: var(--padding-vertical);\n display: inline-block;\n vertical-align: bottom;\n box-sizing: border-box;\n line-height: var(--line-height-textarea);\n margin: 0;\n resize: none;\n "),ac("textarea-mirror","\n pointer-events: none;\n overflow: hidden;\n visibility: hidden;\n position: static;\n white-space: pre-wrap;\n overflow-wrap: break-word;\n ")]),lc("pair",[ac("input-el, placeholder",{textAlign:"center"}),ac("separator","\n display: flex;\n align-items: center;\n transition: color .3s var(--bezier);\n color: var(--text-color);\n ",[sc("icon","\n color: var(--icon-color);\n "),sc("base-icon","\n color: var(--icon-color);\n ")])]),lc("disabled",{cursor:"not-allowed",backgroundColor:"var(--color-disabled)"},[ac("border",{border:"var(--border-disabled)"}),ac("input-el, textarea-el",{cursor:"not-allowed",color:"var(--text-color-disabled)",textDecorationColor:"var(--text-color-disabled)"}),ac("placeholder",{color:"var(--placeholder-color-disabled)"}),ac("separator",{color:"var(--text-color-disabled)"},[sc("icon","\n color: var(--icon-color-disabled);\n "),sc("base-icon","\n color: var(--icon-color-disabled);\n ")]),ac("suffix, prefix",{color:"var(--text-color-disabled)"},[sc("icon","\n color: var(--icon-color-disabled);\n "),sc("internal-icon","\n color: var(--icon-color-disabled);\n ")])]),cc("disabled",[ac("eye","\n color: var(--icon-color);\n cursor: pointer;\n ",[rc("&:hover","\n color: var(--icon-color-hover);\n "),rc("&:active","\n color: var(--icon-color-pressed);\n ")]),lc("focus",{backgroundColor:"var(--color-focus)"},[ac("state-border",{border:"var(--border-focus)",boxShadow:"var(--box-shadow-focus)"})]),rc("&:hover",[ac("state-border",{border:"var(--border-hover)"})])]),ac("border, state-border","\n box-sizing: border-box;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border-radius: inherit;\n border: var(--border);\n transition:\n box-shadow .3s var(--bezier),\n border-color .3s var(--bezier);\n "),ac("state-border","\n border-color: #0000;\n z-index: 1;\n "),ac("prefix",{marginRight:"4px"}),ac("suffix","\n margin-left: 4px;\n "),ac("suffix, prefix","\n transition: color .3s var(--bezier);\n flex-wrap: nowrap;\n flex-shrink: 0;\n line-height: var(--height);\n white-space: nowrap;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: var(--suffix-text-color);\n ",[sc("base-loading","\n font-size: var(--icon-size);\n margin-left: 4px;\n color: var(--loading-color);\n "),sc("base-clear","\n font-size: var(--icon-size);\n margin-left: 4px;\n ",[ac("placeholder",[sc("base-icon","\n transition: color .3s var(--bezier);\n color: var(--icon-color);\n font-size: var(--icon-size);\n ")])]),sc("icon","\n transition: color .3s var(--bezier);\n color: var(--icon-color);\n font-size: var(--icon-size);\n "),sc("base-icon","\n font-size: var(--icon-size);\n ")]),sc("input-word-count","\n pointer-events: none;\n line-height: 1.5;\n font-size: .85em;\n color: var(--count-text-color);\n transition: color .3s var(--bezier);\n margin-left: 4px;\n font-variant: tabular-nums;\n ")]),["warning","error"].map((e=>dc(e,sc("input",[cc("disabled",[sc("base-loading",`\n color: var(--loading-color-${e})\n `),ac("input-el, textarea-el",{caretColor:`var(--caret-color-${e})`}),ac("state-border",{border:`var(--border-${e})`}),rc("&:hover",[ac("state-border",`\n border: var(--border-hover-${e});\n `)]),rc("&:focus",{backgroundColor:`var(--color-focus-${e})`},[ac("state-border",`\n box-shadow: var(--box-shadow-focus-${e});\n border: var(--border-focus-${e});\n `)]),lc("focus",{backgroundColor:`var(--color-focus-${e})`},[ac("state-border",`\n box-shadow: var(--box-shadow-focus-${e});\n border: var(--border-focus-${e});\n `)])])]))))]);var pm=Jt({name:"Input",props:Object.assign(Object.assign({},wd.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},onMousedown:Function,onKeydown:Function,onKeyup:Function,onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,showPasswordToggle:Boolean}),setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n}=Sd(e),o=wd("Input","Input",hm,lm,e,t),r=bt(null),i=bt(null),s=bt(null),a=bt(null),l=bt(null),c=bt(null),{localeRef:d}=Pd("Input"),u=bt(e.defaultValue),h=Wc(kt(e,"value"),u),p=Zi(e),{mergedSizeRef:f,mergedDisabledRef:g}=p,m=bt(!1),v=bt(!1),b=bt(!1),y=bt(!1);let C=null;const w=Et((()=>{const{placeholder:t,pair:n}=e;return n?Array.isArray(t)?t:void 0===t?["",""]:[t,t]:void 0===t?[d.value.placeholder]:[t]})),x=Et((()=>{const{value:e}=b,{value:t}=h,{value:n}=w;return!e&&(dm(t)||Array.isArray(t)&&dm(t[0]))&&n[0]})),S=Et((()=>{const{value:e}=b,{value:t}=h,{value:n}=w;return!e&&n[1]&&(dm(t)||Array.isArray(t)&&dm(t[1]))})),A=wc((()=>e.internalForceFocus||m.value)),k=wc((()=>{if(g.value||e.readonly||!e.clearable||!A.value&&!v.value)return!1;const{value:t}=h,{value:n}=A;return e.pair?!(!Array.isArray(t)||!t[0]&&!t[1])&&(v.value||n):!!t&&(v.value||n)})),F=Et((()=>{const{showPasswordOn:t}=e;return t||(e.showPasswordToggle?"click":void 0)})),E=bt(!1),$=Et((()=>{const{textDecoration:t}=e;return t?Array.isArray(t)?t.map((e=>({textDecoration:e}))):[{textDecoration:t}]:["",""]})),_=Et((()=>{const{maxlength:t}=e;return void 0===t?void 0:Number(t)}));cn((()=>{const{value:e}=h;Array.isArray(e)||O(e)}));const R=Ho().proxy;function B(t){const{onUpdateValue:n,"onUpdate:value":o,onInput:r}=e,{nTriggerFormInput:i}=p;n&&Qc(n,t),o&&Qc(o,t),r&&Qc(r,t),u.value=t,i()}function T(t){const{onChange:n}=e,{nTriggerFormChange:o}=p;n&&Qc(n,t),u.value=t,o()}function D(t,n=0,o="input"){const r=t.target.value;if(O(r),C=r,b.value)return;const i=r;if(e.pair){let{value:e}=h;e=Array.isArray(e)?[...e]:["",""],e[n]=i,"input"===o?B(e):T(e)}else"input"===o?B(i):T(i);R.$forceUpdate()}function M(t,n){(null===t.relatedTarget||t.relatedTarget!==l.value&&t.relatedTarget!==c.value&&t.relatedTarget!==i.value&&t.relatedTarget!==r.value)&&("focus"===n?(!function(t){const{onFocus:n}=e,{nTriggerFormFocus:o}=p;n&&Qc(n,t),o()}(t),m.value=!0):"blur"===n&&(!function(t){const{onBlur:n}=e,{nTriggerFormBlur:o}=p;n&&Qc(n,t),o()}(t),m.value=!1))}function L(){e.passivelyActivated&&(y.value=!1,pr((()=>{var e;null===(e=r.value)||void 0===e||e.focus()})))}function P(){var t,n,o;g.value||(e.passivelyActivated?null===(t=r.value)||void 0===t||t.focus():(null===(n=i.value)||void 0===n||n.focus(),null===(o=l.value)||void 0===o||o.focus()))}function O(t){const{type:n,pair:o,autosize:r}=e;if(!o&&r)if("textarea"===n){const{value:e}=s;e&&(e.textContent=(null!=t?t:"")+"\r\n")}else{const{value:e}=a;e&&(t?e.textContent=t:e.innerHTML=" ")}}let z=null;wr((()=>{const{autosize:t,type:n}=e;t&&"textarea"===n?z=Sr(h,(e=>{Array.isArray(e)||e===C||O(e)})):null==z||z()})),Nt(cm,{mergedValueRef:h,maxlengthRef:_,mergedClsPrefixRef:t});const I={wrapperElRef:r,inputElRef:l,textareaElRef:i,isCompositing:b,focus:P,blur:function(){var e;(null===(e=r.value)||void 0===e?void 0:e.contains(document.activeElement))&&document.activeElement.blur()},select:function(){var e,t;null===(e=i.value)||void 0===e||e.select(),null===(t=l.value)||void 0===t||t.select()},deactivate:function(){const{value:e}=r;(null==e?void 0:e.contains(document.activeElement))&&e!==document.activeElement&&L()},activate:function(){g.value||(i.value?i.value.focus():l.value&&l.value.focus())}};return Object.assign(Object.assign({},I),{wrapperElRef:r,inputElRef:l,inputMirrorElRef:a,inputEl2Ref:c,textareaElRef:i,textareaMirrorElRef:s,uncontrolledValue:u,mergedValue:h,passwordVisible:E,mergedPlaceholder:w,showPlaceholder1:x,showPlaceholder2:S,mergedFocus:A,isComposing:b,activated:y,showClearButton:k,mergedSize:f,mergedDisabled:g,textDecorationStyle:$,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:F,handleCompositionStart:function(){b.value=!0},handleCompositionEnd:function(e){b.value=!1,e.target===c.value?D(e,1):D(e,0)},handleInput:D,handleInputBlur:function(t){!function(t){const{onInputBlur:n}=e;n&&Qc(n,t)}(t),t.relatedTarget===r.value&&function(){const{onDeactivate:t}=e;t&&Qc(t)}(),(null===t.relatedTarget||t.relatedTarget!==l.value&&t.relatedTarget!==c.value&&t.relatedTarget!==i.value)&&(y.value=!1),M(t,"blur")},handleInputFocus:function(t){!function(t){const{onInputFocus:n}=e;n&&Qc(n,t)}(t),m.value=!0,y.value=!0,function(){const{onActivate:t}=e;t&&Qc(t)}(),M(t,"focus")},handleWrapperBlur:function(t){e.passivelyActivated&&(!function(t){const{onWrapperBlur:n}=e;n&&Qc(n,t)}(t),M(t,"blur"))},handleWrapperFocus:function(t){e.passivelyActivated&&(m.value=!0,function(t){const{onWrapperFocus:n}=e;n&&Qc(n,t)}(t),M(t,"focus"))},handleMouseEnter:function(){v.value=!0},handleMouseLeave:function(){v.value=!1},handleMouseDown:function(t){const{onMousedown:n}=e;n&&n(t);const{tagName:o}=t.target;if("INPUT"!==o&&"TEXTAREA"!==o){if(e.resizable){const{value:e}=r;if(e){const{left:n,top:o,width:r,height:i}=e.getBoundingClientRect(),s=14;if(n+r-s<t.clientX&&t.clientY<n+r&&o+i-s<t.clientY&&t.clientY<o+i)return}}t.preventDefault(),m.value||P()}},handleChange:function(e,t){D(e,t,"change")},handleClick:function(t){!function(t){const{onClick:n}=e;n&&Qc(n,t)}(t)},handleClear:function(t){!function(t){const{onClear:n}=e;n&&Qc(n,t)}(t),e.pair?B(["",""]):B("")},handlePasswordToggleClick:function(){g.value||"click"===F.value&&(E.value=!E.value)},handlePasswordToggleMousedown:function(e){if(g.value)return;e.preventDefault();const t=e=>{e.preventDefault(),Tc("mouseup",document,t)};if(Bc("mouseup",document,t),"mousedown"!==F.value)return;E.value=!0;const n=()=>{E.value=!1,Tc("mouseup",document,n)};Bc("mouseup",document,n)},handleWrapperKeyDown:function(t){var n;switch(null===(n=e.onKeydown)||void 0===n||n.call(e,t),t.code){case"Escape":L();break;case"Enter":case"NumpadEnter":!function(t){var n,o;if(e.passivelyActivated){const{value:r}=y;if(r)return void(e.internalDeactivateOnEnter&&L());t.preventDefault(),"textarea"===e.type?null===(n=i.value)||void 0===n||n.focus():null===(o=l.value)||void 0===o||o.focus()}}(t)}},handleTextAreaMirrorResize:function(){(()=>{if("textarea"===e.type){const{autosize:t}=e;if("boolean"==typeof t)return;if(!i.value)return;const{paddingTop:n,paddingBottom:o,lineHeight:r}=window.getComputedStyle(i.value),a=Number(n.slice(0,-2)),l=Number(o.slice(0,-2)),c=Number(r.slice(0,-2)),{value:d}=s;if(!d)return;if(t.minRows){const e=`${a+l+c*Math.max(t.minRows,1)}px`;d.style.minHeight=e}if(t.maxRows){const e=`${a+l+c*t.maxRows}px`;d.style.maxHeight=e}}})()},mergedTheme:o,cssVars:Et((()=>{const{value:e}=f,{common:{cubicBezierEaseInOut:t},self:{color:n,borderRadius:r,textColor:i,caretColor:s,caretColorError:a,caretColorWarning:l,textDecorationColor:c,border:d,borderDisabled:u,borderHover:h,borderFocus:p,placeholderColor:g,placeholderColorDisabled:m,lineHeightTextarea:v,colorDisabled:b,colorFocus:y,textColorDisabled:C,boxShadowFocus:w,iconSize:x,colorFocusWarning:S,boxShadowFocusWarning:A,borderWarning:k,borderFocusWarning:F,borderHoverWarning:E,colorFocusError:$,boxShadowFocusError:_,borderError:R,borderFocusError:B,borderHoverError:T,clearSize:D,clearColor:M,clearColorHover:L,clearColorPressed:P,iconColor:O,iconColorDisabled:z,suffixTextColor:I,countTextColor:j,iconColorHover:N,iconColorPressed:H,loadingColor:W,loadingColorError:V,loadingColorWarning:U,[tc("padding",e)]:K,[tc("fontSize",e)]:G,[tc("height",e)]:Y}}=o.value,{left:q,right:X}=$i(K);return{"--bezier":t,"--count-text-color":j,"--color":n,"--font-size":G,"--border-radius":r,"--height":Y,"--padding-left":q,"--padding-right":X,"--text-color":i,"--caret-color":s,"--text-decoration-color":c,"--border":d,"--border-disabled":u,"--border-hover":h,"--border-focus":p,"--placeholder-color":g,"--placeholder-color-disabled":m,"--icon-size":x,"--line-height-textarea":v,"--color-disabled":b,"--color-focus":y,"--text-color-disabled":C,"--box-shadow-focus":w,"--loading-color":W,"--caret-color-warning":l,"--color-focus-warning":S,"--box-shadow-focus-warning":A,"--border-warning":k,"--border-focus-warning":F,"--border-hover-warning":E,"--loading-color-warning":U,"--caret-color-error":a,"--color-focus-error":$,"--box-shadow-focus-error":_,"--border-error":R,"--border-focus-error":B,"--border-hover-error":T,"--loading-color-error":V,"--clear-color":M,"--clear-size":D,"--clear-color-hover":L,"--clear-color-pressed":P,"--icon-color":O,"--icon-color-hover":N,"--icon-color-pressed":H,"--icon-color-disabled":z,"--suffix-text-color":I}}))})},render(){const{mergedClsPrefix:e}=this;return $r("div",{ref:"wrapperElRef",class:[`${e}-input`,{[`${e}-input--disabled`]:this.mergedDisabled,[`${e}-input--textarea`]:"textarea"===this.type,[`${e}-input--resizable`]:this.resizable&&!this.autosize,[`${e}-input--autosize`]:this.autosize,[`${e}-input--round`]:this.round&&!("textarea"===this.type),[`${e}-input--pair`]:this.pair,[`${e}-input--focus`]:this.mergedFocus,[`${e}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:this.mergedDisabled||!this.passivelyActivated||this.activated?void 0:0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.onKeyup,onKeydown:this.handleWrapperKeyDown},$r("div",{class:`${e}-input-wrapper`},this.$slots.affix||this.$slots.prefix?$r("div",{class:`${e}-input__prefix`},Mo(this.$slots,"affix",void 0,(()=>[Mo(this.$slots,"prefix")]))):null,"textarea"===this.type?$r("div",{class:`${e}-input__textarea`},$r("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:`${e}-input__textarea-el`,autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:this.textDecorationStyle[0],onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onInput:this.handleInput,onChange:this.handleChange})),this.showPlaceholder1?$r("div",{class:`${e}-input__placeholder`,key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?$r(Ih,{onResize:this.handleTextAreaMirrorResize},{default:()=>$r("div",{ref:"textareaMirrorElRef",class:`${e}-input__textarea-mirror`,key:"mirror"})}):null):$r("div",{class:`${e}-input__input`},$r("input",Object.assign({type:"password"===this.type&&this.mergedShowPasswordOn&&this.passwordVisible?"text":this.type},this.inputProps,{ref:"inputElRef",class:`${e}-input__input-el`,style:this.textDecorationStyle[0],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onInput:e=>this.handleInput(e,0),onChange:e=>this.handleChange(e,0)})),this.showPlaceholder1?$r("div",{class:`${e}-input__placeholder`},$r("span",null,this.mergedPlaceholder[0])):null,this.autosize?$r("div",{class:`${e}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&(this.$slots.suffix||this.clearable||this.showCount||this.mergedShowPasswordOn||void 0!==this.loading)?$r("div",{class:`${e}-input__suffix`},[this.clearable||this.$slots.clear?$r(Ig,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{default:()=>Mo(this.$slots,"clear")}):null,Mo(this.$slots,"suffix"),void 0!==this.loading?$r(jg,{clsPrefix:e,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.showCount&&"textarea"!==this.type?$r(um,null,{default:this.$slots.count}):null,this.mergedShowPasswordOn&&"password"===this.type?$r(cu,{clsPrefix:e,class:`${e}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},{default:()=>this.passwordVisible?$r(Ud,null):$r(Kd,null)}):null]):null),this.pair?$r("span",{class:`${e}-input__separator`},Mo(this.$slots,"separator",void 0,(()=>[this.separator]))):null,this.pair?$r("div",{class:`${e}-input-wrapper`},$r("div",{class:`${e}-input__input`},$r("input",{ref:"inputEl2Ref",type:this.type,class:`${e}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:this.maxlength,minlength:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onInput:e=>this.handleInput(e,1),onChange:e=>this.handleChange(e,1)}),this.showPlaceholder2?$r("div",{class:`${e}-input__placeholder`},$r("span",null,this.mergedPlaceholder[1])):null),$r("div",{class:`${e}-input__suffix`},[this.clearable||this.$slots.clear?$r(Ig,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{default:()=>Mo(this.$slots,"clear")}):null,Mo(this.$slots,"suffix")])):null,this.mergedBordered?$r("div",{class:`${e}-input__border`}):null,this.mergedBordered?$r("div",{class:`${e}-input__state-border`}):null,this.showCount&&"textarea"===this.type?$r(um,null,{default:this.$slots.count}):null)}}),fm=sc("input-group","\n display: inline-flex;\n width: 100%;\n flex-wrap: nowrap;\n vertical-align: bottom;\n",[rc(">",[sc("input",[rc("&:not(:last-child)","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n "),rc("&:not(:first-child)","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n margin-left: -1px!important;\n ")]),sc("button",[rc("&:not(:last-child)","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n ",[ac("state-border, border","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n ")]),rc("&:not(:first-child)","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n ",[ac("state-border, border","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n ")])]),rc("*",[rc("&:not(:last-child)","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n ",[rc(">",[sc("input","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n "),sc("base-selection",[sc("base-selection-label","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n "),sc("base-selection-tags","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n "),ac("box-shadow, border, state-border","\n border-top-right-radius: 0!important;\n border-bottom-right-radius: 0!important;\n ")])])]),rc("&:not(:first-child)","\n margin-left: -1px!important;\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n ",[rc(">",[sc("input","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n "),sc("base-selection",[sc("base-selection-label","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n "),sc("base-selection-tags","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n "),ac("box-shadow, border, state-border","\n border-top-left-radius: 0!important;\n border-bottom-left-radius: 0!important;\n ")])])])])])]);var gm=Jt({name:"InputGroup",props:{},setup(e){const{mergedClsPrefixRef:t}=Sd(e);return Od("InputGroup",fm,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return $r("div",{class:`${e}-input-group`},this.$slots)}}),mm=sc("input-group-label","\n position: relative;\n user-select: none;\n box-sizing: border-box;\n padding: 0 12px;\n display: inline-block;\n border-radius: var(--border-radius);\n background-color: var(--group-label-color);\n color: var(--group-label-text-color);\n font-size: var(--font-size);\n line-height: var(--height);\n height: var(--height);\n transition: \n color .3s var(--bezier),\n background-color .3s var(--bezier),\n box-shadow .3s var(--bezier);\n",[ac("border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--group-label-border);\n transition: border-color .3s var(--bezier);\n ")]);var vm=Jt({name:"InputGroupLabel",props:Object.assign(Object.assign({},wd.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n}=Sd(e),o=wd("Input","InputGroupLabel",mm,lm,e,n);return{mergedClsPrefix:n,mergedBordered:t,cssVars:Et((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{groupLabelColor:r,borderRadius:i,groupLabelTextColor:s,lineHeight:a,groupLabelBorder:l,[tc("fontSize",t)]:c,[tc("height",t)]:d}}=o.value;return{"--bezier":n,"--group-label-color":r,"--group-label-border":l,"--border-radius":i,"--group-label-text-color":s,"--font-size":c,"--line-height":a,"--height":d}}))}},render(){const{mergedClsPrefix:e}=this;return $r("div",{class:`${e}-input-group-label`,style:this.cssVars},Mo(this.$slots,"default"),this.mergedBordered?$r("div",{class:`${e}-input-group-label__border`}):null)}});var bm={name:"AutoComplete",common:Gp,peers:{InternalSelectMenu:dg,Input:am},self:function(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function ym(e){return"group"===e.type}function Cm(e){return"ignored"===e.type}const wm={getKey:function(e){return ym(e)?e.name||e.key||"key-required":e.value},getIsGroup:ym,getIgnored:Cm};function xm(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch(n){return!1}}var Sm={name:"Avatar",common:Gp,self:e=>{const{borderRadius:t,avatarColor:n,fontSize:o,heightTiny:r,heightSmall:i,heightMedium:s,heightLarge:a,heightHuge:l}=e;return{borderRadius:t,fontSize:o,heightTiny:r,heightSmall:i,heightMedium:s,heightLarge:a,heightHuge:l,color:n}}},Am={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"};var km={name:"BackTop",common:Gp,self(e){const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},Am),{color:t,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}};var Fm={name:"BackTop",common:If,self:e=>{const{popoverColor:t,textColor2:n,primaryColorHover:o,primaryColorPressed:r}=e;return Object.assign(Object.assign({},Am),{color:t,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}},Em=$r("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},$r("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},$r("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},$r("g",{transform:"translate(120.000000, 4285.000000)"},$r("g",{transform:"translate(7.000000, 126.000000)"},$r("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},$r("g",{transform:"translate(4.000000, 2.000000)"},$r("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),$r("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),$m=sc("back-top","\n position: fixed;\n right: 40px;\n bottom: 40px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--text-color);\n transition:\n color .3s var(--bezier),\n box-shadow .3s var(--bezier),\n background-color .3s var(--bezier);\n border-radius: var(--border-radius);\n height: var(--height);\n min-width: var(--width);\n box-shadow: var(--box-shadow);\n background-color: var(--color);\n",[ig(),lc("transition-disabled",{transition:"none !important"}),sc("base-icon","\n font-size: var(--icon-size);\n color: var(--icon-color);\n transition: color .3s var(--bezier);\n "),rc("svg",{pointerEvents:"none"}),rc("&:hover",{boxShadow:"var(--box-shadow-hover)"},[sc("base-icon",{color:"var(--icon-color-hover)"})]),rc("&:active",{boxShadow:"var(--box-shadow-pressed)"},[sc("base-icon",{color:"var(--icon-color-pressed)"})])]);var _m=Jt({name:"BackTop",inheritAttrs:!1,props:Object.assign(Object.assign({},wd.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:{type:Function,validator:()=>(nd("back-top","`target` is deprecated, please use `listen-to` instead."),!0),default:void 0},onShow:{type:Function,validator:()=>(nd("back-top","`on-show` is deprecated, please use `on-update:show` instead."),!0),default:void 0},onHide:{type:Function,validator:()=>(nd("back-top","`on-hide` is deprecated, please use `on-update:show` instead."),!0),default:void 0}}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=bt(null),o=Et((()=>null!==n.value&&n.value>=e.visibilityHeight)),r=bt(!1);Sr(o,(t=>{r.value&&e["onUpdate:show"](t)}));const i=Wc(kt(e,"show"),o),s=bt(!0),a=bt(null),l=Et((()=>({right:cd(e.right),bottom:cd(e.bottom)})));let c,d;Sr(i,(t=>{var n,o;r.value&&(t&&(null===(n=e.onShow)||void 0===n||n.call(e)),null===(o=e.onHide)||void 0===o||o.call(e))}));const u=wd("BackTop","BackTop",$m,Fm,e,t);function h(){var t;if(d)return;d=!0;const n=(null===(t=e.target)||void 0===t?void 0:t.call(e))||("string"==typeof(o=e.listenTo)?document.querySelector(o):"function"==typeof o?o():o)||Si(a.value);var o;if(!n)return;c=n;const{to:r}=e;"string"==typeof r&&document.querySelector(r),n&&(n.addEventListener("scroll",p),p())}function p(){"#document"===c.nodeName?n.value=c.documentElement.scrollTop:n.value=c.scrollTop,r.value||pr((()=>{r.value=!0}))}return cn((()=>{h(),s.value=i.value})),hn((()=>{c&&c.removeEventListener("scroll",p)})),{placeholderRef:a,style:l,mergedShow:i,isMounted:Vc(),scrollElement:bt(null),scrollTop:n,DomInfoReady:r,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:function(){s.value=!1},handleScroll:p,handleClick:function(e){"#document"===c.nodeName?c.documentElement.scrollTo({top:0,behavior:"smooth"}):c.scrollTo({top:0,behavior:"smooth"})},cssVars:Et((()=>{const{self:{color:e,boxShadow:t,boxShadowHover:n,boxShadowPressed:o,iconColor:r,iconColorHover:i,iconColorPressed:s,width:a,height:l,iconSize:c,borderRadius:d,textColor:h},common:{cubicBezierEaseInOut:p}}=u.value;return{"--bezier":p,"--border-radius":d,"--height":l,"--width":a,"--box-shadow":t,"--box-shadow-hover":n,"--box-shadow-pressed":o,"--color":e,"--icon-size":c,"--icon-color":r,"--icon-color-hover":i,"--icon-color-pressed":s,"--text-color":h}}))}},render(){const{mergedClsPrefix:e}=this;return $r("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},$r(sh,{to:this.to,show:this.mergedShow},{default:()=>$r(Kr,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>this.mergedShow?$r("div",To(this.$attrs,{class:[`${e}-back-top`,{[`${e}-back-top--transition-disabled`]:this.transitionDisabled}],style:Object.assign(Object.assign({},this.style),this.cssVars),onClick:this.handleClick}),[Mo(this.$slots,"default",void 0,(()=>[$r(cu,{clsPrefix:e},{default:()=>Em})]))]):null})}))}});var Rm={name:"Badge",common:Gp,self(e){const{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:o,warningColorSuppl:r,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:o,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}};var Bm={name:"Badge",common:If,self:e=>{const{errorColor:t,infoColor:n,successColor:o,warningColor:r,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:o,colorError:t,colorWarning:r,fontSize:"12px",fontFamily:i}}},Tm=rc([rc("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--ripple-color)",opacity:0}}),sc("badge","\n display: inline-flex;\n position: relative;\n vertical-align: middle;\n color: var(--color);\n font-family: var(--font-family);\n ",[lc("as-is",[sc("badge-sup",{position:"static",transform:"translateX(0)"},[ig({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),lc("dot",[sc("badge-sup",{height:"8px",width:"8px",padding:0,minWidth:"8px",left:"100%",bottom:"calc(100% - 4px)"},[rc("::before",{borderRadius:"4px"})])]),sc("badge-sup","\n background: var(--color);\n transition:\n background-color .3s var(--bezier),\n color .3s var(--bezier);\n color: #FFF;\n position: absolute;\n height: 18px;\n line-height: 18px;\n border-radius: 9px;\n padding: 0 6px;\n text-align: center;\n font-size: var(--font-size);\n transform: translateX(-50%);\n left: 100%;\n bottom: calc(100% - 9px);\n font-variant-numeric: tabular-nums;\n z-index: 1;\n ",[ig({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),sc("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--ripple-bezier)",animationName:"badge-wave-spread"}),rc("&::before",'\n opacity: 0;\n transform: scale(1);\n border-radius: 9px;\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')])])]);var Dm=Jt({name:"Badge",props:Object.assign(Object.assign({},wd.props),{value:[String,Number],max:Number,dot:{type:Boolean,default:!1},type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:{type:Boolean,default:!1},processing:{type:Boolean,default:!1},color:String}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Badge","Badge",Tm,Bm,e,t),o=bt(!1),r=Et((()=>e.show&&(e.dot||void 0!==e.value&&!(!e.showZero&&e.value<=0))));return cn((()=>{r.value&&(o.value=!0)})),{mergedClsPrefix:t,appeared:bt(!1),showBadge:r,handleAfterEnter:()=>{o.value=!0},handleAfterLeave:()=>{o.value=!1},cssVars:Et((()=>{const{type:t,color:o}=e,{common:{cubicBezierEaseInOut:r,cubicBezierEaseOut:i},self:{[tc("color",t)]:s,fontFamily:a,fontSize:l}}=n.value;return{"--font-size":l,"--font-family":a,"--color":o||s,"--ripple-color":o||s,"--bezier":r,"--ripple-bezier":i}}))}},render(){const{mergedClsPrefix:e}=this;return $r("div",{class:[`${e}-badge`,{[`${e}-badge--dot`]:this.dot,[`${e}-badge--as-is`]:!this.$slots.default}],style:this.cssVars},Mo(this.$slots,"default"),$r(Kr,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?$r("sup",{class:`${e}-badge-sup`,title:rd(this.value)},this.dot?null:$r(Zg,{clsPrefix:e,appeared:this.appeared,max:this.max,value:this.value}),this.processing?$r(pg,{clsPrefix:e}):null):null}))}}),Mm={fontWeightActive:"400"};var Lm={name:"Breadcrumb",common:Gp,self:e=>{const{fontSize:t,textColor3:n,primaryColorHover:o,primaryColorPressed:r,textColor2:i}=e;return Object.assign(Object.assign({},Mm),{fontSize:t,itemTextColor:n,itemTextColorHover:o,itemTextColorPressed:r,itemTextColorActive:i,separatorColor:n})}};function Pm(e){return Wi(e,[255,255,255,.16])}function Om(e){return Wi(e,[0,0,0,.12])}var zm={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};const Im=e=>{const{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadius:i,fontSizeTiny:s,fontSizeSmall:a,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:d,textColor2:u,textColor3:h,primaryColorHover:p,primaryColorPressed:f,borderColor:g,primaryColor:m,baseColor:v,infoColor:b,infoColorHover:y,infoColorPressed:C,successColor:w,successColorHover:x,successColorPressed:S,warningColor:A,warningColorHover:k,warningColorPressed:F,errorColor:E,errorColorHover:$,errorColorPressed:_,fontWeight:R,buttonColor2:B,buttonColor2Hover:T,buttonColor2Pressed:D,fontWeightStrong:M}=e;return Object.assign(Object.assign({},zm),{heightTiny:t,heightSmall:n,heightMedium:o,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:s,fontSizeSmall:a,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.2",colorOpacitySecondaryPressed:"0.24",colorSecondary:B,colorSecondaryHover:T,colorSecondaryPressed:D,colorTertiary:B,colorTertiaryHover:T,colorTertiaryPressed:D,colorQuaternary:"#0000",colorQuaternaryHover:T,colorQuaternaryPressed:D,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:h,textColorHover:p,textColorPressed:f,textColorFocus:p,textColorDisabled:u,textColorText:u,textColorTextHover:p,textColorTextPressed:f,textColorTextFocus:p,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:p,textColorGhostPressed:f,textColorGhostFocus:p,textColorGhostDisabled:u,border:`1px solid ${g}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${f}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${g}`,rippleColor:m,colorPrimary:m,colorHoverPrimary:p,colorPressedPrimary:f,colorFocusPrimary:p,colorDisabledPrimary:m,textColorPrimary:v,textColorHoverPrimary:v,textColorPressedPrimary:v,textColorFocusPrimary:v,textColorDisabledPrimary:v,textColorTextPrimary:m,textColorTextHoverPrimary:p,textColorTextPressedPrimary:f,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:u,textColorGhostPrimary:m,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:f,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:m,borderPrimary:`1px solid ${m}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${f}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${m}`,rippleColorPrimary:m,colorInfo:b,colorHoverInfo:y,colorPressedInfo:C,colorFocusInfo:y,colorDisabledInfo:b,textColorInfo:v,textColorHoverInfo:v,textColorPressedInfo:v,textColorFocusInfo:v,textColorDisabledInfo:v,textColorTextInfo:b,textColorTextHoverInfo:y,textColorTextPressedInfo:C,textColorTextFocusInfo:y,textColorTextDisabledInfo:u,textColorGhostInfo:b,textColorGhostHoverInfo:y,textColorGhostPressedInfo:C,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:b,borderInfo:`1px solid ${b}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${C}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${b}`,rippleColorInfo:b,colorSuccess:w,colorHoverSuccess:x,colorPressedSuccess:S,colorFocusSuccess:x,colorDisabledSuccess:w,textColorSuccess:v,textColorHoverSuccess:v,textColorPressedSuccess:v,textColorFocusSuccess:v,textColorDisabledSuccess:v,textColorTextSuccess:w,textColorTextHoverSuccess:x,textColorTextPressedSuccess:S,textColorTextFocusSuccess:x,textColorTextDisabledSuccess:u,textColorGhostSuccess:w,textColorGhostHoverSuccess:x,textColorGhostPressedSuccess:S,textColorGhostFocusSuccess:x,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${x}`,borderPressedSuccess:`1px solid ${S}`,borderFocusSuccess:`1px solid ${x}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:A,colorHoverWarning:k,colorPressedWarning:F,colorFocusWarning:k,colorDisabledWarning:A,textColorWarning:v,textColorHoverWarning:v,textColorPressedWarning:v,textColorFocusWarning:v,textColorDisabledWarning:v,textColorTextWarning:A,textColorTextHoverWarning:k,textColorTextPressedWarning:F,textColorTextFocusWarning:k,textColorTextDisabledWarning:u,textColorGhostWarning:A,textColorGhostHoverWarning:k,textColorGhostPressedWarning:F,textColorGhostFocusWarning:k,textColorGhostDisabledWarning:A,borderWarning:`1px solid ${A}`,borderHoverWarning:`1px solid ${k}`,borderPressedWarning:`1px solid ${F}`,borderFocusWarning:`1px solid ${k}`,borderDisabledWarning:`1px solid ${A}`,rippleColorWarning:A,colorError:E,colorHoverError:$,colorPressedError:_,colorFocusError:$,colorDisabledError:E,textColorError:v,textColorHoverError:v,textColorPressedError:v,textColorFocusError:v,textColorDisabledError:v,textColorTextError:E,textColorTextHoverError:$,textColorTextPressedError:_,textColorTextFocusError:$,textColorTextDisabledError:u,textColorGhostError:E,textColorGhostHoverError:$,textColorGhostPressedError:_,textColorGhostFocusError:$,textColorGhostDisabledError:E,borderError:`1px solid ${E}`,borderHoverError:`1px solid ${$}`,borderPressedError:`1px solid ${_}`,borderFocusError:`1px solid ${$}`,borderDisabledError:`1px solid ${E}`,rippleColorError:E,waveOpacity:"0.6",fontWeight:R,fontWeightStrong:M})};var jm={name:"Button",common:If,self:Im};var Nm={name:"Button",common:Gp,self(e){const t=Im(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}};const Hm="0!important",Wm="-1px!important";function Vm(e){return lc(e+"-type",[rc("& +",[sc("button",{},[lc(e+"-type",[ac("border",{borderLeftWidth:Hm}),ac("state-border",{left:Wm})])])])])}function Um(e){return lc(e+"-type",[rc("& +",[sc("button",[lc(e+"-type",[ac("border",{borderTopWidth:Hm}),ac("state-border",{top:Wm})])])])])}var Km=sc("button-group","\n flex-wrap: nowrap;\n display: inline-flex;\n position: relative;\n",[cc("vertical",{flexDirection:"row"},[sc("button",[rc("&:first-child:not(:last-child)",`\n margin-right: ${Hm};\n border-top-right-radius: ${Hm};\n border-bottom-right-radius: ${Hm};\n `),rc("&:last-child:not(:first-child)",`\n margin-left: ${Hm};\n border-top-left-radius: ${Hm};\n border-bottom-left-radius: ${Hm};\n `),rc("&:not(:first-child):not(:last-child)",`\n margin-left: ${Hm};\n margin-right: ${Hm};\n border-radius: ${Hm};\n `),Vm("default"),lc("ghost",[Vm("primary"),Vm("info"),Vm("success"),Vm("warning"),Vm("error")])])]),lc("vertical",{flexDirection:"column"},[sc("button",[rc("&:first-child:not(:last-child)",`\n margin-bottom: ${Hm};\n margin-left: ${Hm};\n margin-right: ${Hm};\n border-bottom-left-radius: ${Hm};\n border-bottom-right-radius: ${Hm};\n `),rc("&:last-child:not(:first-child)",`\n margin-top: ${Hm};\n margin-left: ${Hm};\n margin-right: ${Hm};\n border-top-left-radius: ${Hm};\n border-top-right-radius: ${Hm};\n `),rc("&:not(:first-child):not(:last-child)",`\n margin: ${Hm};\n border-radius: ${Hm};\n `),Um("default"),lc("ghost",[Um("primary"),Um("info"),Um("success"),Um("warning"),Um("error")])])])]);const Gm=Symbol("button-group");Jt({name:"ButtonGroup",props:{size:{type:String,default:void 0},vertical:Boolean},setup(e){const{mergedClsPrefixRef:t}=Sd(e);return Od("ButtonGroup",Km,t),Nt(Gm,e),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return $r("div",{class:[`${e}-button-group`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}});var Ym=rc([sc("button","\n font-weight: var(--font-weight);\n line-height: 1;\n font-family: inherit;\n padding: var(--padding);\n height: var(--height);\n font-size: var(--font-size);\n border-radius: var(--border-radius);\n color: var(--text-color);\n background-color: var(--color);\n width: var(--width);\n white-space: nowrap;\n outline: none;\n position: relative;\n z-index: auto;\n border: none;\n display: inline-flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n user-select: none;\n text-align: center;\n cursor: pointer;\n text-decoration: none;\n transition:\n color .3s var(--bezier),\n background-color .3s var(--bezier),\n opacity .3s var(--bezier),\n border-color .3s var(--bezier);\n ",[lc("color",[ac("border",{borderColor:"var(--border-color)"}),lc("disabled",[ac("border",{borderColor:"var(--border-color-disabled)"})]),cc("disabled",[rc("&:focus",[ac("state-border",{borderColor:"var(--border-color-focus)"})]),rc("&:hover",[ac("state-border",{borderColor:"var(--border-color-hover)"})]),rc("&:active",[ac("state-border",{borderColor:"var(--border-color-pressed)"})]),lc("pressed",[ac("state-border",{borderColor:"var(--border-color-pressed)"})])])]),lc("disabled",{backgroundColor:"var(--color-disabled)",color:"var(--text-color-disabled)"},[ac("border",{border:"var(--border-disabled)"})]),cc("disabled",[rc("&:focus",{backgroundColor:"var(--color-focus)",color:"var(--text-color-focus)"},[ac("state-border",{border:"var(--border-focus)"})]),rc("&:hover",{backgroundColor:"var(--color-hover)",color:"var(--text-color-hover)"},[ac("state-border",{border:"var(--border-hover)"})]),rc("&:active",{backgroundColor:"var(--color-pressed)",color:"var(--text-color-pressed)"},[ac("state-border",{border:"var(--border-pressed)"})]),lc("pressed",{backgroundColor:"var(--color-pressed)",color:"var(--text-color-pressed)"},[ac("state-border",{border:"var(--border-pressed)"})])]),sc("base-wave","\n pointer-events: none;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n animation-iteration-count: 1;\n animation-duration: var(--ripple-duration);\n animation-timing-function: var(--bezier-ease-out), var(--bezier-ease-out);\n ",[lc("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),"undefined"!=typeof window&&"MozBoxSizing"in document.createElement("div").style?rc("&::moz-focus-inner",{border:0}):null,ac("border, state-border","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n transition: border-color .3s var(--bezier);\n pointer-events: none;\n "),ac("border",{border:"var(--border)"}),ac("state-border",{border:"var(--border)",borderColor:"#0000",zIndex:1}),ac("icon","\n margin: var(--icon-margin);\n margin-left: 0;\n height: var(--icon-size);\n width: var(--icon-size);\n max-width: var(--icon-size);\n font-size: var(--icon-size);\n position: relative;\n flex-shrink: 0;\n ",[sc("icon-slot","\n height: var(--icon-size);\n width: var(--icon-size);\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n ",[gu({top:"50%",originalTransform:"translateY(-50%)"})]),Yg()]),ac("content","\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n ",[rc("~",[ac("icon",{margin:"var(--icon-margin)",marginRight:0})])]),lc("block","\n display: flex;\n width: 100%;\n "),lc("dashed",[ac("border, state-border",{borderStyle:"dashed !important"})]),lc("disabled",{cursor:"not-allowed",opacity:"var(--opacity-disabled)"})]),rc("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--ripple-color)"}}),rc("@keyframes button-wave-opacity",{from:{opacity:"var(--wave-opacity)"},to:{opacity:0}})]);var qm=Jt({name:"Button",props:Object.assign(Object.assign({},wd.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},onClick:[Function,Array],bordered:{type:Boolean,default:!0}}),setup(e){const t=bt(null),n=bt(null),o=bt(!1),r=wc((()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered)),i=Ht(Gm,{}),{mergedSizeRef:s}=Zi({},{defaultSize:"medium",mergedSize:t=>{const{size:n}=e;if(n)return n;const{size:o}=i;if(o)return o;const{mergedSize:r}=t||{};return r?r.value:"medium"}}),a=Et((()=>e.focusable&&!e.disabled)),{mergedClsPrefixRef:l,NConfigProvider:c}=Sd(e),d=wd("Button","Button",Ym,jm,e,l),u=Mg("Button",null==c?void 0:c.mergedRtlRef,l);return{selfRef:t,waveRef:n,mergedClsPrefix:l,mergedFocusable:a,mergedSize:s,showBorder:r,enterPressed:o,rtlEnabled:u,handleMousedown:n=>{var o;n.preventDefault(),e.disabled||a.value&&(null===(o=t.value)||void 0===o||o.focus({preventScroll:!0}))},handleKeydown:t=>{switch(t.code){case"Enter":case"NumpadEnter":if(!e.keyboard)return void t.preventDefault();o.value=!0}},handleBlur:()=>{o.value=!1},handleKeyup:t=>{switch(t.code){case"Enter":case"NumpadEnter":if(!e.keyboard)return;o.value=!1}},handleClick:t=>{if(!e.disabled){const{onClick:o}=e;if(o&&Qc(o,t),!e.text){const{value:e}=n;e&&e.play()}}},customColorCssVars:Et((()=>{const{color:t}=e;if(!t)return null;const n=Pm(t);return{"--border-color":t,"--border-color-hover":n,"--border-color-pressed":Om(t),"--border-color-focus":n,"--border-color-disabled":t}})),cssVars:Et((()=>{const t=d.value,{common:{cubicBezierEaseInOut:n,cubicBezierEaseOut:o},self:r}=t,{rippleDuration:i,opacityDisabled:a,fontWeight:l,fontWeightStrong:c}=r,u=s.value,{dashed:h,type:p,ghost:f,text:g,color:m,round:v,circle:b,textColor:y,secondary:C,tertiary:w,quaternary:x,strong:S}=e,A={fontWeight:S?c:l};let k={"--color":"initial","--color-hover":"initial","--color-pressed":"initial","--color-focus":"initial","--color-disabled":"initial","--ripple-color":"initial","--text-color":"initial","--text-color-hover":"initial","--text-color-pressed":"initial","--text-color-focus":"initial","--text-color-disabled":"initial"};const F="tertiary"===p,E="default"===p,$=F?"default":p;if(g){const e=y||m;k={"--color":"#0000","--color-hover":"#0000","--color-pressed":"#0000","--color-focus":"#0000","--color-disabled":"#0000","--ripple-color":"#0000","--text-color":e||r[tc("textColorText",$)],"--text-color-hover":e?Pm(e):r[tc("textColorTextHover",$)],"--text-color-pressed":e?Om(e):r[tc("textColorTextPressed",$)],"--text-color-focus":e?Pm(e):r[tc("textColorTextHover",$)],"--text-color-disabled":e||r[tc("textColorTextDisabled",$)]}}else if(f||h){const e=y||m;k={"--color":"#0000","--color-hover":"#0000","--color-pressed":"#0000","--color-focus":"#0000","--color-disabled":"#0000","--ripple-color":m||r[tc("rippleColor",$)],"--text-color":e||r[tc("textColorGhost",$)],"--text-color-hover":e?Pm(e):r[tc("textColorGhostHover",$)],"--text-color-pressed":e?Om(e):r[tc("textColorGhostPressed",$)],"--text-color-focus":e?Pm(e):r[tc("textColorGhostHover",$)],"--text-color-disabled":e||r[tc("textColorGhostDisabled",$)]}}else if(C){const e=E?r.textColor:F?r.textColorTertiary:r[tc("color",$)],t=m||e,n="default"!==p&&"tertiary"!==p;k={"--color":n?Vi(t,{alpha:Number(r.colorOpacitySecondary)}):r.colorSecondary,"--color-hover":n?Vi(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--color-pressed":n?Vi(t,{alpha:Number(r.colorOpacitySecondaryPressed)}):r.colorSecondaryPressed,"--color-focus":n?Vi(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--color-disabled":r.colorSecondary,"--ripple-color":"#0000","--text-color":t,"--text-color-hover":t,"--text-color-pressed":t,"--text-color-focus":t,"--text-color-disabled":t}}else if(w||x){const e=E?r.textColor:F?r.textColorTertiary:r[tc("color",$)],t=m||e;w?(k["--color"]=r.colorTertiary,k["--color-hover"]=r.colorTertiaryHover,k["--color-pressed"]=r.colorTertiaryPressed,k["--color-focus"]=r.colorSecondaryHover,k["--color-disabled"]=r.colorTertiary):(k["--color"]=r.colorQuaternary,k["--color-hover"]=r.colorQuaternaryHover,k["--color-pressed"]=r.colorQuaternaryPressed,k["--color-focus"]=r.colorQuaternaryHover,k["--color-disabled"]=r.colorQuaternary),k["--ripple-color"]="#0000",k["--text-color"]=t,k["--text-color-hover"]=t,k["--text-color-pressed"]=t,k["--text-color-focus"]=t,k["--text-color-disabled"]=t}else k={"--color":m||r[tc("color",$)],"--color-hover":m?Pm(m):r[tc("colorHover",$)],"--color-pressed":m?Om(m):r[tc("colorPressed",$)],"--color-focus":m?Pm(m):r[tc("colorFocus",$)],"--color-disabled":m||r[tc("colorDisabled",$)],"--ripple-color":m||r[tc("rippleColor",$)],"--text-color":y||(m?r.textColorPrimary:F?r.textColorTertiary:r[tc("textColor",$)]),"--text-color-hover":y||(m?r.textColorHoverPrimary:r[tc("textColorHover",$)]),"--text-color-pressed":y||(m?r.textColorPressedPrimary:r[tc("textColorPressed",$)]),"--text-color-focus":y||(m?r.textColorFocusPrimary:r[tc("textColorFocus",$)]),"--text-color-disabled":y||(m?r.textColorDisabledPrimary:r[tc("textColorDisabled",$)])};let _={"--border":"initial","--border-hover":"initial","--border-pressed":"initial","--border-focus":"initial","--border-disabled":"initial"};_=g?{"--border":"none","--border-hover":"none","--border-pressed":"none","--border-focus":"none","--border-disabled":"none"}:{"--border":r[tc("border",$)],"--border-hover":r[tc("borderHover",$)],"--border-pressed":r[tc("borderPressed",$)],"--border-focus":r[tc("borderFocus",$)],"--border-disabled":r[tc("borderDisabled",$)]};const{[tc("height",u)]:R,[tc("fontSize",u)]:B,[tc("padding",u)]:T,[tc("paddingRound",u)]:D,[tc("iconSize",u)]:M,[tc("borderRadius",u)]:L,[tc("iconMargin",u)]:P,waveOpacity:O}=r,z={"--width":b&&!g?R:"initial","--height":g?"initial":R,"--font-size":B,"--padding":b||g?"initial":v?D:T,"--icon-size":M,"--icon-margin":P,"--border-radius":g?"initial":b||v?R:L};return Object.assign(Object.assign(Object.assign(Object.assign({"--bezier":n,"--bezier-ease-out":o,"--ripple-duration":i,"--opacity-disabled":a,"--wave-opacity":O},A),k),_),z)}))}},render(){const{$slots:e,mergedClsPrefix:t,tag:n}=this;return $r(n,{ref:"selfRef",class:[`${t}-button`,`${t}-button--${this.type}-type`,`${t}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${t}-button--rtl`,this.disabled&&`${t}-button--disabled`,this.block&&`${t}-button--block`,this.enterPressed&&`${t}-button--pressed`,!this.text&&this.dashed&&`${t}-button--dashed`,this.color&&`${t}-button--color`,this.secondary&&`${t}-button--secondary`,this.ghost&&`${t}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},e.default&&"right"===this.iconPlacement?$r("div",{class:`${t}-button__content`},e):null,$r(au,{width:!0},{default:()=>e.icon||this.loading?$r("span",{class:`${t}-button__icon`,style:{margin:e.default?"":0}},$r(su,null,{default:()=>this.loading?$r(vu,{clsPrefix:t,key:"loading",class:`${t}-icon-slot`,strokeWidth:20}):$r("div",{key:"icon",class:`${t}-icon-slot`,role:"none"},Mo(e,"icon"))})):null}),e.default&&"left"===this.iconPlacement?$r("span",{class:`${t}-button__content`},e):null,this.text?null:$r(pg,{ref:"waveRef",clsPrefix:t}),this.showBorder?$r("div",{"aria-hidden":!0,class:`${t}-button__border`,style:this.customColorCssVars}):null,this.showBorder?$r("div",{"aria-hidden":!0,class:`${t}-button__state-border`,style:this.customColorCssVars}):null)}}),Xm={titleFontSize:"22px"};var Zm={name:"Calendar",common:Gp,peers:{Button:Nm},self:e=>{const{borderRadius:t,fontSize:n,lineHeight:o,textColor2:r,textColor1:i,textColorDisabled:s,dividerColor:a,fontWeightStrong:l,primaryColor:c,baseColor:d,hoverColor:u,cardColor:h,modalColor:p,popoverColor:f}=e;return Object.assign(Object.assign({},Xm),{borderRadius:t,borderColor:Wi(h,a),borderColorModal:Wi(p,a),borderColorPopover:Wi(f,a),textColor:r,titleFontWeight:l,titleTextColor:i,dayTextColor:s,fontSize:n,lineHeight:o,dateColorCurrent:c,dateTextColorCurrent:d,cellColorHover:Wi(h,u),cellColorHoverModal:Wi(p,u),cellColorHoverPopover:Wi(f,u),cellColor:h,cellColorModal:p,cellColorPopover:f,barColor:c})}};var Jm={name:"ColorPicker",common:Gp,peers:{Input:am,Button:Nm},self:e=>{const{fontSize:t,boxShadow2:n,popoverColor:o,textColor2:r,borderRadius:i,borderColor:s,heightSmall:a,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:h,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:o,textColor:r,borderRadius:i,border:`1px solid ${s}`,heightSmall:a,heightMedium:l,heightLarge:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:h,dividerColor:p}}},Qm={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeSize:"18px"};const ev=e=>{const{primaryColor:t,borderRadius:n,lineHeight:o,fontSize:r,cardColor:i,textColor2:s,textColor1:a,dividerColor:l,fontWeightStrong:c,closeColor:d,closeColorHover:u,closeColorPressed:h,modalColor:p,boxShadow1:f,popoverColor:g,actionColor:m}=e;return Object.assign(Object.assign({},Qm),{lineHeight:o,color:i,colorModal:p,colorPopover:g,colorTarget:t,colorEmbedded:m,textColor:s,titleTextColor:a,borderColor:l,actionColor:m,titleFontWeight:c,closeColor:d,closeColorHover:u,closeColorPressed:h,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:f,borderRadius:n})};var tv={name:"Card",common:If,self:ev};var nv={name:"Card",common:Gp,self(e){const t=ev(e),{cardColor:n}=e;return t.colorEmbedded=n,t}},ov=rc([sc("card","\n font-size: var(--font-size);\n line-height: var(--line-height);\n display: flex;\n flex-direction: column;\n width: 100%;\n box-sizing: border-box;\n position: relative;\n border-radius: var(--border-radius);\n background-color: var(--color);\n color: var(--text-color);\n transition: \n color .3s var(--bezier),\n background-color .3s var(--bezier),\n box-shadow .3s var(--bezier),\n border-color .3s var(--bezier);\n ",[lc("hoverable",[rc("&:hover","box-shadow: var(--box-shadow);")]),lc("content-segmented",[rc(">",[ac("content",{paddingTop:"var(--padding-bottom)"})])]),lc("content-soft-segmented",[rc(">",[ac("content","\n margin: 0 var(--padding-left);\n padding: var(--padding-bottom) 0;\n ")])]),lc("footer-segmented",[rc(">",[ac("footer",{paddingTop:"var(--padding-bottom)"})])]),lc("footer-soft-segmented",[rc(">",[ac("footer","\n padding: var(--padding-bottom) 0;\n margin: 0 var(--padding-left);\n ")])]),rc(">",[sc("card-header","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n font-size: var(--title-font-size);\n padding:\n var(--padding-top)\n var(--padding-left)\n var(--padding-bottom)\n var(--padding-left);\n ",[ac("main","\n font-weight: var(--title-font-weight);\n transition: color .3s var(--bezier);\n flex: 1;\n color: var(--title-text-color);\n "),ac("extra","\n display: flex;\n align-items: center;\n font-size: var(--font-size);\n font-weight: 400;\n transition: color .3s var(--bezier);\n color: var(--text-color);\n "),ac("close","\n font-size: var(--close-size);\n transition: color .3s var(--bezier);\n ")]),ac("action","\n box-sizing: border-box;\n transition:\n background-color .3s var(--bezier),\n border-color .3s var(--bezier);\n background-clip: padding-box;\n background-color: var(--action-color);\n "),ac("content","flex: 1;"),ac("content, footer","\n box-sizing: border-box;\n padding: 0 var(--padding-left) var(--padding-bottom) var(--padding-left);\n font-size: var(--font-size);\n ",[rc("&:first-child",{paddingTop:"var(--padding-bottom)"})]),ac("action","\n background-color: var(--action-color);\n padding: var(--padding-bottom) var(--padding-left);\n ")]),sc("card-cover","\n overflow: hidden;\n width: 100%;\n border-radius: var(--border-radius) var(--border-radius) 0 0;\n ",[rc("img","\n display: block;\n width: 100%;\n ")]),lc("bordered","\n border: 1px solid var(--border-color);\n ",[rc("&:target","border-color: var(--color-target);")]),lc("action-segmented",[rc(">",[ac("action",[rc("&:not(:first-child)",{borderTop:"1px solid var(--border-color)"})])])]),lc("content-segmented, content-soft-segmented",[rc(">",[ac("content",{transition:"border-color 0.3s var(--bezier)"},[rc("&:not(:first-child)",{borderTop:"1px solid var(--border-color)"})])])]),lc("footer-segmented, footer-soft-segmented",[rc(">",[ac("footer",{transition:"border-color 0.3s var(--bezier)"},[rc("&:not(:first-child)",{borderTop:"1px solid var(--border-color)"})])])])]),uc(sc("card",{background:"var(--color-modal)"})),hc(sc("card",{background:"var(--color-popover)"})),sc("card",[pc({background:"var(--color-modal)"})])]);const rv={title:String,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},hoverable:Boolean,onClose:[Function,Array]},iv=ed(rv);var sv=Jt({name:"Card",props:Object.assign(Object.assign({},wd.props),rv),setup(e){const{mergedClsPrefixRef:t,NConfigProvider:n}=Sd(e),o=wd("Card","Card",ov,tv,e,t);return{rtlEnabled:Mg("Card",null==n?void 0:n.mergedRtlRef,t),mergedClsPrefix:t,mergedTheme:o,handleCloseClick:()=>{const{onClose:t}=e;t&&Qc(t)},cssVars:Et((()=>{const{size:t}=e,{self:{color:n,colorModal:r,colorTarget:i,textColor:s,titleTextColor:a,titleFontWeight:l,borderColor:c,actionColor:d,borderRadius:u,closeColor:h,closeColorHover:p,closeColorPressed:f,lineHeight:g,closeSize:m,boxShadow:v,colorPopover:b,colorEmbedded:y,[tc("padding",t)]:C,[tc("fontSize",t)]:w,[tc("titleFontSize",t)]:x},common:{cubicBezierEaseInOut:S}}=o.value,{top:A,left:k,bottom:F}=$i(C);return{"--bezier":S,"--border-radius":u,"--color":e.embedded?y:n,"--color-modal":r,"--color-popover":b,"--color-target":i,"--text-color":s,"--line-height":g,"--action-color":d,"--title-text-color":a,"--title-font-weight":l,"--close-color":h,"--close-color-hover":p,"--close-color-pressed":f,"--border-color":c,"--box-shadow":v,"--padding-top":A,"--padding-bottom":F,"--padding-left":k,"--font-size":w,"--title-font-size":x,"--close-size":m}}))}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:o,rtlEnabled:r,$slots:i}=this;return $r("div",{class:[`${o}-card`,{[`${o}-card--rtl`]:r,[`${o}-card--content${"boolean"!=typeof e&&"soft"===e.content?"-soft":""}-segmented`]:!0===e||!1!==e&&e.content,[`${o}-card--footer${"boolean"!=typeof e&&"soft"===e.footer?"-soft":""}-segmented`]:!0===e||!1!==e&&e.footer,[`${o}-card--action-segmented`]:!0===e||!1!==e&&e.action,[`${o}-card--bordered`]:t,[`${o}-card--hoverable`]:n}],style:this.cssVars},i.cover?$r("div",{class:`${o}-card-cover`,role:"none"},Mo(i,"cover")):null,i.header||this.title||this.closable?$r("div",{class:`${o}-card-header`,style:this.headerStyle},$r("div",{class:`${o}-card-header__main`,role:"heading"},Mo(i,"header",{},(()=>[this.title]))),i["header-extra"]?$r("div",{class:`${o}-card-header__extra`},Mo(i,"header-extra")):null,this.closable?$r(uu,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick}):null):null,$r("div",{class:`${o}-card__content`,style:this.contentStyle,role:"none"},i),i.footer?$r("div",{class:`${o}-card__footer`,style:this.footerStyle,role:"none"},Mo(i,"footer")):null,i.action?$r("div",{class:`${o}-card__action`,role:"none"},Mo(i,"action")):null)}});var av={name:"Carousel",common:Gp,self:e=>({dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",arrowColor:"rgba(255, 255, 255, .6)"})},lv={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px"};const cv=e=>{const{baseColor:t,inputColorDisabled:n,cardColor:o,modalColor:r,popoverColor:i,textColorDisabled:s,borderColor:a,primaryColor:l,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:h,borderRadiusSmall:p}=e;return Object.assign(Object.assign({},lv),{fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:h,borderRadius:p,color:t,colorChecked:l,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:o,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:s,checkMarkColorDisabledChecked:s,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${l}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${Vi(l,{alpha:.3})}`,textColor:c,textColorDisabled:s})};var dv={name:"Checkbox",common:If,self:cv};var uv={name:"Checkbox",common:Gp,self(e){const{cardColor:t}=e,n=cv(e);return n.color="#0000",n.checkMarkColor=t,n}};var hv={name:"Cascader",common:Gp,peers:{InternalSelectMenu:dg,InternalSelection:Wg,Scrollbar:Yf,Checkbox:uv},self:e=>{const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r,textColor3:i,primaryColor:s,textColorDisabled:a,dividerColor:l,hoverColor:c,fontSizeMedium:d,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:o,menuBoxShadow:n,menuDividerColor:l,menuHeight:"calc(var(--option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:d,optionColorHover:c,optionTextColor:r,optionTextColorActive:s,optionTextColorDisabled:a,optionCheckMarkColor:s,loadingColor:s,columnWidth:"180px"}}},pv=$r("svg",{viewBox:"0 0 64 64",class:"check-icon"},$r("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),fv=$r("svg",{viewBox:"0 0 100 100",class:"line-icon"},$r("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"}));const gv=Symbol("checkboxGroup");var mv=Jt({name:"CheckboxGroup",props:{min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:{type:[Function,Array],validator:()=>!0,default:void 0}},setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=Zi(e),{mergedSizeRef:o,mergedDisabledRef:r}=n,i=bt(e.defaultValue),s=Wc(Et((()=>e.value)),i),a=Et((()=>{var e;return(null===(e=s.value)||void 0===e?void 0:e.length)||0})),l=Et((()=>Array.isArray(s.value)?new Set(s.value):new Set));return Nt(gv,{checkedCountRef:a,maxRef:kt(e,"max"),minRef:kt(e,"min"),valueSetRef:l,disabledRef:r,mergedSizeRef:o,toggleCheckbox:function(t,o){const{nTriggerFormInput:r,nTriggerFormChange:a}=n,{onChange:l,"onUpdate:value":c,onUpdateValue:d}=e;if(Array.isArray(s.value)){const e=Array.from(s.value),n=e.findIndex((e=>e===o));t?~n||(e.push(o),d&&Qc(d,e),c&&Qc(c,e),r(),a(),i.value=e,l&&Qc(l,e)):~n&&(e.splice(n,1),d&&Qc(d,e),c&&Qc(c,e),l&&Qc(l,e),i.value=e,r(),a())}else t?(d&&Qc(d,[o]),c&&Qc(c,[o]),l&&Qc(l,[o]),i.value=[o],r(),a()):(d&&Qc(d,[]),c&&Qc(c,[]),l&&Qc(l,[]),i.value=[],r(),a())}}),{mergedClsPrefix:t}},render(){return $r("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),vv=rc([sc("checkbox","\n line-height: 1;\n font-size: var(--font-size);\n outline: none;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n vertical-align: middle;\n --merged-color-table-header: var(--color-table-header);\n ",[rc("&:hover",[sc("checkbox-box",[ac("border",{border:"var(--border-checked)"})])]),rc("&:focus:not(:active)",[sc("checkbox-box",[ac("border",{border:"var(--border-focus)",boxShadow:"var(--box-shadow-focus)"})])]),lc("table-header",[sc("checkbox-box",{backgroundColor:"var(--merged-color-table-header)"})]),lc("checked",[sc("checkbox-box",{backgroundColor:"var(--color-checked)"},[sc("checkbox-icon",[rc(".check-icon","\n width: 100%;\n opacity: 1;\n transform: scale(1);\n ")])])]),lc("indeterminate",[sc("checkbox-box",[sc("checkbox-icon",[rc(".check-icon","\n opacity: 0;\n transform: scale(.5);\n "),rc(".line-icon","\n opacity: 1;\n transform: scale(1);\n ")])])]),lc("checked, indeterminate",[rc("&:focus:not(:active)",[sc("checkbox-box",[ac("border",{border:"var(--border-checked)",boxShadow:"var(--box-shadow-focus)"})])]),sc("checkbox-box","\n background-color: var(--color-checked);\n border-left: 0;\n border-top: 0;\n ",[ac("border",{border:"var(--border-checked)"})])]),lc("disabled",{cursor:"not-allowed"},[lc("checked",[sc("checkbox-box","\n background-color: var(--color-disabled-checked);\n ",[ac("border",{border:"var(--border-disabled-checked)"}),sc("checkbox-icon",[rc(".check-icon, .line-icon",{fill:"var(--check-mark-color-disabled-checked)"})])])]),sc("checkbox-box","\n background-color: var(--color-disabled);\n ",[ac("border",{border:"var(--border-disabled)"}),sc("checkbox-icon",[rc(".check-icon, .line-icon",{fill:"var(--check-mark-color-disabled)"})])]),ac("label",{color:"var(--text-color-disabled)"})]),sc("checkbox-box","\n height: var(--size);\n width: var(--size);\n display: inline-block;\n box-sizing: border-box;\n border-radius: var(--border-radius);\n background-color: var(--color);\n position: relative;\n transition:\n background-color 0.3s var(--bezier);\n ",[ac("border","\n transition:\n border-color .3s var(--bezier),\n box-shadow .3s var(--bezier);\n border-radius: inherit;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border: var(--border);\n "),sc("checkbox-icon","\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n left: 1px;\n right: 1px;\n top: 1px;\n bottom: 1px;\n ",[rc(".check-icon, .line-icon","\n fill: var(--check-mark-color);\n opacity: 0;\n transform: scale(0.5);\n transform-origin: center;\n transition:\n fill 0.3s var(--bezier),\n transform 0.3s var(--bezier),\n opacity 0.3s var(--bezier),\n border-color 0.3s var(--bezier);\n "),gu({left:"1px",top:"1px"})])]),ac("label","\n color: var(--text-color);\n transition: color .3s var(--bezier);\n user-select: none;\n padding: var(--label-padding);\n ",[rc("&:empty",{display:"none"})])]),uc(sc("checkbox","\n --merged-color-table-header: var(--color-table-header-modal);\n ")),hc(sc("checkbox","\n --merged-color-table-header: var(--color-table-header-popover);\n "))]);var bv=Jt({name:"Checkbox",props:Object.assign(Object.assign({},wd.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=Zi(e,{mergedSize(t){const{size:n}=e;if(void 0!==n)return n;if(i){const{value:e}=i.mergedSizeRef;if(void 0!==e)return e}if(t){const{mergedSize:e}=t;if(void 0!==e)return e.value}return"medium"},mergedDisabled(t){const{disabled:n}=e;if(void 0!==n)return n;if(i){if(i.disabledRef.value)return!0;const{maxRef:{value:e},checkedCountRef:t}=i;if(void 0!==e&&t.value>=e&&!l.value)return!0;const{minRef:{value:n}}=i;if(void 0!==n&&t.value<=n&&l.value)return!0}return!!t&&t.disabled.value}}),{mergedDisabledRef:o,mergedSizeRef:r}=n,i=Ht(gv,null),s=bt(e.defaultChecked),a=Wc(kt(e,"checked"),s),l=wc((()=>{if(i){const t=i.valueSetRef.value;return!(!t||void 0===e.value)&&t.has(e.value)}return a.value===e.checkedValue})),c=wd("Checkbox","Checkbox",vv,dv,e,t);function d(t){if(i&&void 0!==e.value)i.toggleCheckbox(!l.value,e.value);else{const{onChange:o,"onUpdate:checked":r,onUpdateChecked:i}=e,{nTriggerFormInput:a,nTriggerFormChange:c}=n,d=l.value?e.uncheckedValue:e.checkedValue;r&&Qc(r,d,t),i&&Qc(i,d,t),o&&Qc(o,d,t),a(),c(),s.value=d}}return Object.assign(n,{mergedClsPrefix:t,mergedDisabled:o,renderedChecked:l,mergedTheme:c,labelId:Yi(),handleClick:function(e){o.value||d(e)},handleKeyUp:function(e){if(!o.value)switch(e.code){case"Space":case"Enter":case"NumpadEnter":d(e)}},handleKeyDown:function(e){switch(e.code){case"Space":e.preventDefault()}},cssVars:Et((()=>{const{value:e}=r,{common:{cubicBezierEaseInOut:t},self:{borderRadius:n,color:o,colorChecked:i,colorDisabled:s,colorTableHeader:a,colorTableHeaderModal:l,colorTableHeaderPopover:d,checkMarkColor:u,checkMarkColorDisabled:h,border:p,borderFocus:f,borderDisabled:g,borderChecked:m,boxShadowFocus:v,textColor:b,textColorDisabled:y,checkMarkColorDisabledChecked:C,colorDisabledChecked:w,borderDisabledChecked:x,labelPadding:S,[tc("fontSize",e)]:A,[tc("size",e)]:k}}=c.value;return{"--size":k,"--bezier":t,"--border-radius":n,"--border":p,"--border-checked":m,"--border-focus":f,"--border-disabled":g,"--border-disabled-checked":x,"--box-shadow-focus":v,"--color":o,"--color-checked":i,"--color-table-header":a,"--color-table-header-modal":l,"--color-table-header-popover":d,"--color-disabled":s,"--color-disabled-checked":w,"--text-color":b,"--text-color-disabled":y,"--check-mark-color":u,"--check-mark-color-disabled":h,"--check-mark-color-disabled-checked":C,"--font-size":A,"--label-padding":S}}))})},render(){const{$slots:e,renderedChecked:t,mergedDisabled:n,indeterminate:o,privateInsideTable:r,cssVars:i,labelId:s,label:a,mergedClsPrefix:l,focusable:c,handleKeyUp:d,handleKeyDown:u,handleClick:h}=this;return $r("div",{class:[`${l}-checkbox`,t&&`${l}-checkbox--checked`,n&&`${l}-checkbox--disabled`,o&&`${l}-checkbox--indeterminate`,r&&`${l}-checkbox--table-header`],tabindex:n||!c?void 0:0,role:"checkbox","aria-checked":o?"mixed":t,"aria-labelledby":s,style:i,onKeyup:d,onKeydown:u,onClick:h,onMousedown:()=>{Bc("selectstart",window,(e=>{e.preventDefault()}),{once:!0})}},$r("div",{class:`${l}-checkbox-box`},$r(su,null,{default:()=>this.indeterminate?$r("div",{key:"indeterminate",class:`${l}-checkbox-icon`},fv):$r("div",{key:"check",class:`${l}-checkbox-icon`},pv)}),$r("div",{class:`${l}-checkbox-box__border`})),null!==a||e.default?$r("span",{class:`${l}-checkbox__label`,id:s},Mo(e,"default",void 0,(()=>[a]))):null)}});var yv={name:"Code",common:Gp,self(e){const{textColor2:t,fontSize:n,fontWeightStrong:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:o,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b"}}};const Cv=e=>{const{fontWeight:t,textColor1:n,textColor2:o,dividerColor:r,fontSize:i}=e;return{titleFontSize:i,titleFontWeight:t,dividerColor:r,titleTextColor:n,fontSize:i,textColor:o,arrowColor:o}};var wv={name:"Collapse",common:If,self:Cv};var xv={name:"Collapse",common:Gp,self:Cv},Sv=sc("collapse",{width:"100%"},[sc("collapse-item","\n font-size: var(--font-size);\n color: var(--text-color);\n transition:\n color .3s var(--bezier),\n border-color .3s var(--bezier);\n margin: 16px 0 0 0;\n ",[sc("collapse-item","margin-left: 32px;"),rc("&:first-child",{marginTop:0}),rc("&:first-child >",[ac("header",{paddingTop:0})]),lc("left-arrow-placement",[ac("header",[sc("collapse-item-arrow",{marginRight:"4px"})])]),lc("right-arrow-placement",[ac("header",[sc("collapse-item-arrow",{marginLeft:"4px"})])]),ac("content-wrapper",[ac("content-inner",{paddingTop:"16px"}),om({duration:"0.15s"})]),lc("active",[ac("header",[lc("active",[sc("collapse-item-arrow",{transform:"rotate(90deg)"})])])]),rc("&:not(:first-child)",{borderTop:"1px solid var(--divider-color)"}),ac("header","\n font-size: var(--title-font-size);\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n transition: color .3s var(--bezier);\n position: relative;\n padding: 16px 0 0 0;\n color: var(--title-text-color);\n ",[ac("header-main","\n cursor: pointer;\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n font-weight: var(--title-font-weight);\n transition: color .3s var(--bezier);\n flex: 1;\n color: var(--title-text-color);\n "),ac("header-extra","\n cursor: pointer;\n display: flex;\n align-items: center;\n transition: color .3s var(--bezier);\n color: var(--text-color);\n "),sc("collapse-item-arrow","\n display: flex;\n transition:\n transform .15s var(--bezier),\n color .3s var(--bezier);\n font-size: 18px;\n color: var(--arrow-color);\n ")])])]);const Av=Object.assign(Object.assign({},wd.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),kv=Symbol("collapse");var Fv=Jt({name:"Collapse",props:Av,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=Sd(e),o=bt(e.defaultExpandedNames),r=Wc(Et((()=>e.expandedNames)),o),i=wd("Collapse","Collapse",Sv,wv,e,n);function s(t){const{"onUpdate:expandedNames":n,onUpdateExpandedNames:r,onExpandedNamesChange:i}=e;r&&Qc(r,t),n&&Qc(n,t),i&&Qc(i,t),o.value=t}function a(t){const{onItemHeaderClick:n}=e;n&&Qc(n,t)}return Nt(kv,{props:e,mergedClsPrefixRef:n,expandedNamesRef:r,slots:t,toggleItem:function(t,n,o){const{accordion:i}=e,{value:l}=r;if(i)t?(s([n]),a({name:n,expanded:!0,event:o})):(s([]),a({name:n,expanded:!1,event:o}));else if(Array.isArray(l)){const e=l.slice(),t=e.findIndex((e=>n===e));~t?(e.splice(t,1),s(e),a({name:n,expanded:!1,event:o})):(e.push(n),s(e),a({name:n,expanded:!0,event:o}))}else s([n]),a({name:n,expanded:!0,event:o})}}),{mergedTheme:i,mergedClsPrefix:n,cssVars:Et((()=>{const{common:{cubicBezierEaseInOut:e},self:{titleFontWeight:t,dividerColor:n,titleTextColor:o,textColor:r,arrowColor:s,fontSize:a,titleFontSize:l}}=i.value;return{"--font-size":a,"--bezier":e,"--text-color":r,"--divider-color":n,"--title-font-size":l,"--title-text-color":o,"--title-font-weight":t,"--arrow-color":s}}))}},render(){return $r("div",{class:`${this.mergedClsPrefix}-collapse`,style:this.cssVars},this.$slots)}}),Ev=Jt({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup:e=>({onceTrue:Cc(kt(e,"show"))}),render(){return $r(au,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:o}=this,r="show"===t&&n,i=$r("div",{class:`${o}-collapse-item__content-wrapper`},$r("div",{class:`${o}-collapse-item__content-inner`},this.$slots));return r?Hn(i,[[fi,e]]):e?i:null}})}});var $v=Jt({name:"CollapseItem",props:{title:String,name:[String,Number],displayDirective:String},setup(e){const t=Yi(),n=wc((()=>{var n;return null!==(n=e.name)&&void 0!==n?n:t})),o=Ht(kv);o||od("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:r,props:i,mergedClsPrefixRef:s,slots:a}=o,l=Et((()=>{const{value:e}=r;if(Array.isArray(e)){const{value:t}=n;return!~e.findIndex((e=>e===t))}if(e){const{value:t}=n;return t!==e}return!0}));return{collapseSlots:a,randomName:t,mergedClsPrefix:s,collapsed:l,mergedDisplayDirective:Et((()=>{const{displayDirective:t}=e;return t||i.displayDirective})),arrowPlacement:Et((()=>i.arrowPlacement)),handleClick(e){o&&o.toggleItem(l.value,n.value,e)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:o,title:r,mergedDisplayDirective:i,mergedClsPrefix:s}=this,a=Mo(t,"header",void 0,(()=>[r])),l=t["header-extra"]||e["header-extra"];return $r("div",{class:[`${s}-collapse-item`,`${s}-collapse-item--${n}-arrow-placement`,!o&&`${s}-collapse-item--active`]},$r("div",{class:[`${s}-collapse-item__header`,!o&&`${s}-collapse-item__header--active`]},$r("div",{class:`${s}-collapse-item__header-main`,onClick:this.handleClick},"right"===n&&a,$r("div",{class:`${s}-collapse-item-arrow`},Mo(t.arrow?t:e.arrow?e:t,"arrow",{collapsed:o},(()=>{var t;return[$r(cu,{clsPrefix:s},{default:null!==(t=e.expandIcon)&&void 0!==t?t:()=>$r(Wd,null)})]}))),"left"===n&&a),l&&$r("div",{class:`${s}-collapse-item__header-extra`,onClick:this.handleClick},{default:l})),$r(Ev,{clsPrefix:s,displayDirective:i,show:!o},t))}});var _v={name:"CollapseTransition",common:Gp,self:e=>{const{cubicBezierEaseInOut:t}=e;return{bezier:t}}};function Rv(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}var Bv={name:"Select",common:If,peers:{InternalSelection:Hg,InternalSelectMenu:cg},self:Rv};var Tv={name:"Select",common:Gp,peers:{InternalSelection:Wg,InternalSelectMenu:dg},self:Rv},Dv=rc([sc("select","\n z-index: auto;\n outline: none;\n width: 100%;\n position: relative;\n "),sc("select-menu","\n margin: 4px 0;\n box-shadow: var(--menu-box-shadow);\n ",[ig()])]);var Mv=Jt({name:"Select",props:Object.assign(Object.assign({},wd.props),{to:vd.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:{type:Function,default:function(e,t){return!!t&&("string"==typeof t.label?xm(e,t.label):void 0!==t.value&&xm(e,String(t.value)))}},placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:{type:Function,default:e=>({label:e,value:e})},fallbackOption:{type:[Function,Boolean],default:()=>e=>({label:String(e),value:e})},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],onChange:{type:[Function,Array],validator:()=>!0,default:void 0},items:{type:Array,validator:()=>!0,default:void 0},displayDirective:{type:String,default:"show"}}),setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:o}=Sd(e),r=wd("Select","Select",Dv,Bv,e,t),i=bt(e.defaultValue),s=Wc(kt(e,"value"),i),a=bt(!1),l=bt(""),c=Et((()=>ju(A.value,wm))),d=Et((()=>function(e){const t=new Map;return e.forEach((e=>{ym(e)?e.children.forEach((e=>{t.set(e.value,e)})):t.set(e.value,e)})),t}(S.value))),u=bt(!1),h=Wc(kt(e,"show"),u),p=bt(null),f=bt(null),g=bt(null),{localeRef:m}=Pd("Select"),v=Et((()=>{var t;return null!==(t=e.placeholder)&&void 0!==t?t:m.value.placeholder})),b=Uc(e,["items","options"]),y=bt([]),C=bt([]),w=bt(new Map),x=Et((()=>{const{fallbackOption:t}=e;return!!t&&(e=>Object.assign(t(e),{value:e}))})),S=Et((()=>C.value.concat(y.value).concat(b.value))),A=Et((()=>{if(e.remote)return b.value;{const{value:t}=S,{value:n}=l;if(n.length&&e.filterable){const{filter:o}=e;return function(e,t,n){return t?function e(o){if(!Array.isArray(o))return[];const r=[];for(const i of o)if(ym(i)){const t=e(i.children);t.length&&r.push(Object.assign({},i,{children:t}))}else{if(Cm(i))continue;t(n,i)&&r.push(i)}return r}(e):e}(t,o,n)}return t}}));function k(t){const n=e.remote,{value:o}=w,{value:r}=d,{value:i}=x,s=[];return t.forEach((e=>{if(r.has(e))s.push(r.get(e));else if(n&&o.has(e))s.push(o.get(e));else if(i){const t=i(e);t&&s.push(t)}})),s}const F=Et((()=>{if(e.multiple){const{value:e}=s;return Array.isArray(e)?k(e):[]}return null})),E=Et((()=>{const{value:t}=s;return e.multiple||Array.isArray(t)||null===t?null:k([t])[0]||null})),$=Zi(e),{mergedSizeRef:_,mergedDisabledRef:R}=$;function B(t,n){const{onChange:o,"onUpdate:value":r,onUpdateValue:s}=e,{nTriggerFormChange:a,nTriggerFormInput:l}=$;o&&Qc(o,t,n),s&&Qc(s,t,n),r&&Qc(r,t,n),i.value=t,a(),l()}function T(t){const{onBlur:n}=e,{nTriggerFormBlur:o}=$;n&&Qc(n,t),o()}function D(){var t;const{remote:n,multiple:o}=e;if(n){const{value:e}=w;if(o)null===(t=F.value)||void 0===t||t.forEach((t=>{e.set(t.value,t)}));else{const t=E.value;t&&e.set(t.value,t)}}}function M(t){const{onUpdateShow:n,"onUpdate:show":o}=e;n&&Qc(n,t),o&&Qc(o,t),u.value=t}function L(){R.value||(l.value="",M(!0),u.value=!0,e.filterable&&function(){var e;null===(e=p.value)||void 0===e||e.focusInput()}())}function P(){M(!1)}function O(e){z(e.rawNode)}function z(t){if(R.value)return;const{tag:n,remote:o}=e;if(n&&!o){const{value:e}=C,t=e[0]||null;t&&(y.value.push(t),C.value=[])}if(o&&w.value.set(t.value,t),e.multiple){const r=function(t){if(!Array.isArray(t))return[];if(x.value)return Array.from(t);{const{remote:n}=e,{value:o}=d;if(n){const{value:e}=w;return t.filter((t=>o.has(t)||e.has(t)))}return t.filter((e=>o.has(e)))}}(s.value),i=r.findIndex((e=>e===t.value));if(~i){if(r.splice(i,1),n&&!o){const e=I(t.value);~e&&(y.value.splice(e,1),l.value="")}}else r.push(t.value),l.value="";B(r,k(r))}else{if(n&&!o){const e=I(t.value);y.value=~e?[y.value[e]]:[]}H(),P(),B(t.value,t)}}function I(e){return y.value.findIndex((t=>t.value===e))}function j(t){var n,o,r,i;switch(t.code){case"Space":if(e.filterable)break;case"Enter":case"NumpadEnter":if(h.value){const t=null===(n=g.value)||void 0===n?void 0:n.getPendingTmNode();t?O(t):e.filterable||(P(),H())}else L();t.preventDefault();break;case"ArrowUp":if(e.loading)return;h.value&&(null===(o=g.value)||void 0===o||o.prev());break;case"ArrowDown":if(e.loading)return;h.value?null===(r=g.value)||void 0===r||r.next():L();break;case"Escape":P(),null===(i=p.value)||void 0===i||i.focus()}}function N(t){switch(t.code){case"Space":e.filterable||t.preventDefault();break;case"ArrowUp":case"ArrowDown":t.preventDefault()}}function H(){var e;null===(e=p.value)||void 0===e||e.focus()}function W(){var e;null===(e=f.value)||void 0===e||e.syncPosition()}return D(),Sr(kt(e,"options"),D),Sr(A,(()=>{h.value&&pr(W)})),Sr(s,(()=>{h.value&&pr(W)})),{mergedClsPrefix:t,mergedBordered:n,namespace:o,treeMate:c,isMounted:Vc(),triggerRef:p,menuRef:g,pattern:l,uncontrolledShow:u,mergedShow:h,adjustedTo:vd(e),uncontrolledValue:i,mergedValue:s,followerRef:f,localizedPlaceholder:v,selectedOption:E,selectedOptions:F,mergedSize:_,mergedDisabled:R,focused:a,handleMenuFocus:function(e){a.value=!0},handleMenuBlur:function(e){var t;(null===(t=p.value)||void 0===t?void 0:t.$el.contains(e.relatedTarget))||(a.value=!1,T(e),P())},handleMenuTabOut:function(){var e;null===(e=p.value)||void 0===e||e.focus(),P()},handleTriggerClick:function(){R.value||(h.value?e.filterable||P():L())},handleToggle:O,handleDeleteOption:z,handlePatternInput:function(t){h.value||L();const{value:n}=t.target;l.value=n;const{tag:o,remote:r}=e;if(function(t){const{onSearch:n}=e;n&&Qc(n,t)}(n),o&&!r){if(!n)return void(C.value=[]);const t=e.onCreate(n);b.value.some((e=>e.value===t.value))||y.value.some((e=>e.value===t.value))?C.value=[]:C.value=[t]}},handleClear:function(t){t.stopPropagation();const{multiple:n}=e;!n&&e.filterable&&P(),function(){const{onClear:t}=e;t&&Qc(t)}(),n?B([],[]):B(null,null)},handleTriggerBlur:function(e){var t,n;(null===(n=null===(t=g.value)||void 0===t?void 0:t.selfRef)||void 0===n?void 0:n.contains(e.relatedTarget))||(a.value=!1,T(e),P())},handleTriggerFocus:function(t){!function(t){const{onFocus:n}=e,{nTriggerFormFocus:o}=$;n&&Qc(n,t),o()}(t),a.value=!0},handleKeyDown:N,handleKeyUp:j,syncPosition:W,handleMenuAfterLeave:function(){l.value=""},handleMenuClickOutside:function(e){var t;h.value&&((null===(t=p.value)||void 0===t?void 0:t.$el.contains(e.target))||P())},handleMenuScroll:function(t){!function(t){const{onScroll:n}=e;n&&Qc(n,t)}(t)},handleMenuKeyup:j,handleMenuKeydown:N,handleMenuMousedown:function(e){Ai(e,"action")||e.preventDefault()},mergedTheme:r,cssVars:Et((()=>{const{self:{menuBoxShadow:e}}=r.value;return{"--menu-box-shadow":e}}))}},render(){const{$slots:e,mergedClsPrefix:t}=this;return $r("div",{class:`${t}-select`},$r(Gu,null,{default:()=>[$r(Yu,null,{default:()=>$r(Ug,{ref:"triggerRef",inputProps:this.inputProps,clsPrefix:t,showArrow:this.showArrow,maxTagCount:this.maxTagCount,bordered:this.mergedBordered,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp})}),$r(gh,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===vd.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>$r(Kr,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var n,o;return(this.mergedShow||"show"===this.displayDirective)&&Hn($r(ug,Object.assign({},this.menuProps,{ref:"menuRef",virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${t}-select-menu`,null===(n=this.menuProps)||void 0===n?void 0:n.class],clsPrefix:t,focusable:!0,autoPending:!0,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:"medium",renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[null===(o=this.menuProps)||void 0===o?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeyup:this.handleMenuKeyup,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow}),e),"show"===this.displayDirective?[[fi,this.mergedShow],[Ju,this.handleMenuClickOutside]]:[[Ju,this.handleMenuClickOutside]])}})})]}))}}),Lv={itemSize:"28px",itemPadding:"0 4px",itemMargin:"0 0 0 8px",buttonIconSize:"16px",inputWidth:"60px",selectWidth:"unset",inputMargin:"0 0 0 8px",selectMargin:"0 0 0 8px",prefixMargin:"0 8px 0 0",suffixMargin:"0 0 0 8px",jumperFontSize:"14px"};const Pv=e=>{const{textColor2:t,primaryColor:n,primaryColorHover:o,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:s,borderColor:a,borderRadius:l,fontSize:c}=e;return Object.assign(Object.assign({},Lv),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:o,itemTextColorPressed:r,itemTextColorActive:n,itemTextColorDisabled:s,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:l,itemFontSize:c,jumperTextColor:t,jumperTextColorDisabled:s})};var Ov={name:"Pagination",common:If,peers:{Select:Bv,Input:lm},self:Pv};var zv={name:"Pagination",common:Gp,peers:{Select:Tv,Input:am},self(e){const{primaryColor:t,opacity3:n}=e,o=Vi(t,{alpha:Number(n)}),r=Pv(e);return r.itemBorderActive=`1px solid ${o}`,r.itemBorderDisabled="1px solid #0000",r}};function Iv(e,t,n){return function(e,t){return e.map((e=>{switch(e){case-2:return{type:"fastBackward",label:"fastBackward",active:!1};case-1:return{type:"fastForward",label:"fastForward",active:!1};default:return e===t?{type:"page",label:e,active:!0}:{type:"page",label:e,active:!1}}}))}(function(e,t,n=9){if(1===t)return[1];if(2===t)return[1,2];const o=t;let r=e,i=e;const s=(n-5)/2;i+=Math.ceil(s),i=Math.min(Math.max(i,1+n-3),o-2),r-=Math.floor(s),r=Math.max(Math.min(r,o-n+3),3);let a=!1,l=!1;r>3&&(a=!0),i<o-2&&(l=!0);const c=[];c.push(1),a?c.push(-2):o>=2&&c.push(2);for(let d=r;d<=i;++d)c.push(d);return l?c.push(-1):i===o-2&&c[c.length-1]!==o-1&&c.push(o-1),c[c.length-1]!==o&&c.push(o),c}(e,t,n),e)}var jv=sc("pagination","\n display: flex;\n vertical-align: middle;\n font-size: var(--item-font-size);\n flex-wrap: nowrap;\n",[sc("pagination-prefix","\n display: flex;\n align-items: center;\n margin: var(--prefix-margin);\n "),sc("pagination-suffix","\n display: flex;\n align-items: center;\n margin: var(--suffix-margin);\n "),rc("> *:not(:first-child)",{margin:"var(--item-margin)"}),sc("select",{width:"var(--select-width)"}),rc("&.transition-disabled",[sc("pagination-item",{transition:"none!important"})]),sc("pagination-quick-jumper","\n white-space: nowrap;\n display: flex;\n color: var(--jumper-text-color);\n transition: color .3s var(--bezier);\n align-items: center;\n font-size: var(--jumter-font-size);\n ",[sc("input","\n margin: var(--input-margin);\n width: var(--input-width);\n ")]),sc("pagination-item","\n position: relative;\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n min-width: var(--item-size);\n height: var(--item-size);\n padding: var(--item-padding);\n background-color: var(--item-color);\n color: var(--item-text-color);\n border-radius: var(--item-border-radius);\n border: var(--item-border);\n fill: var(--button-icon-color);\n transition:\n color .3s var(--bezier),\n border-color .3s var(--bezier),\n background-color .3s var(--bezier),\n fill .3s var(--bezier);\n ",[lc("button","\n background: var(--button-color);\n color: var(--button-icon-color);\n border: var(--button-border);\n ",[sc("base-icon","\n font-size: var(--button-icon-size);\n ")]),cc("disabled",[rc("&:hover",{background:"var(--item-color-hover)",color:"var(--item-text-color-hover)",border:"var(--item-border-hover)"},[lc("button",{background:"var(--button-color-hover)",border:"var(--button-border-hover)",color:"var(--button-icon-color-hover)"})]),rc("&:active",{background:"var(--item-color-pressed)",color:"var(--item-text-color-pressed)",border:"var(--item-border-pressed)"},[lc("button",{background:"var(--button-color-pressed)",border:"var(--button-border-pressed)",color:"var(--button-icon-color-pressed)"})]),lc("active",{background:"var(--item-color-active)",color:"var(--item-text-color-active)",border:"var(--item-border-active)"},[rc("&:hover",{background:"var(--item-color-active-hover)"})])]),lc("disabled","\n cursor: not-allowed;\n color: var(--item-text-color-disabled);\n ",[lc("active, button",{backgroundColor:"var(--item-color-disabled)",border:"var(--item-border-disabled)"})])]),lc("disabled",{cursor:"not-allowed"},[sc("pagination-quick-jumper",{color:"var(--jumper-text-color-disabled)"})])]);var Nv=Jt({name:"Pagination",props:Object.assign(Object.assign({},wd.props),{page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10]},showQuickJumper:Boolean,disabled:Boolean,pageSlot:{type:Number,default:9},prev:Function,next:Function,prefix:Function,suffix:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),setup(e){const{NConfigProvider:t,mergedClsPrefixRef:n}=Sd(e),o=wd("Pagination","Pagination",jv,Ov,e,n),{localeRef:r}=Pd("Pagination"),i=bt(null),s=bt(null),a=bt(""),l=bt(e.defaultPage),c=bt(e.defaultPageSize),d=Wc(kt(e,"page"),l),u=Wc(kt(e,"pageSize"),c),h=Et((()=>{const{itemCount:t}=e;if(void 0!==t)return Math.max(1,Math.ceil(t/u.value));const{pageCount:n}=e;return void 0!==n?n:1})),p=bt(!1),f=bt(!1),g=Et((()=>{const t=r.value.selectionSuffix;return e.pageSizes.map((e=>"number"==typeof e?{label:`${e} / ${t}`,value:e}:e))})),m=Et((()=>{var e,n;return(null===(n=null===(e=null==t?void 0:t.mergedComponentPropsRef.value)||void 0===e?void 0:e.Pagination)||void 0===n?void 0:n.inputSize)||"small"})),v=Et((()=>{var e,n;return(null===(n=null===(e=null==t?void 0:t.mergedComponentPropsRef.value)||void 0===e?void 0:e.Pagination)||void 0===n?void 0:n.selectSize)||"small"})),b=Et((()=>(d.value-1)*u.value)),y=Et((()=>{const t=d.value*u.value-1,{itemCount:n}=e;return void 0!==n&&t>n?n:t})),C=()=>{pr((()=>{var e;const{value:t}=i;t&&(t.classList.add("transition-disabled"),null===(e=i.value)||void 0===e||e.offsetWidth,t.classList.remove("transition-disabled"))}))};function w(t){if(t===d.value)return;const{"onUpdate:page":n,onUpdatePage:o,onChange:r}=e;n&&Qc(n,t),o&&Qc(o,t),r&&Qc(r,t),l.value=t}return wr((()=>{d.value,u.value,C()})),{mergedClsPrefix:n,locale:r,selfRef:i,jumperRef:s,mergedPage:d,showFastBackward:f,showFastForward:p,pageItems:Et((()=>Iv(d.value,h.value,e.pageSlot))),jumperValue:a,pageSizeOptions:g,mergedPageSize:u,inputSize:m,selectSize:v,mergedTheme:o,mergedPageCount:h,startIndex:b,endIndex:y,handleJumperInput:function(e){a.value=e},handleBackwardClick:function(){if(e.disabled)return;w(Math.max(d.value-1,1))},handleForwardClick:function(){if(e.disabled)return;w(Math.min(d.value+1,h.value))},handlePageItemClick:function(t){if(!e.disabled)switch(t.type){case"page":w(t.label);break;case"fastBackward":!function(){if(e.disabled)return;w(Math.max(d.value-(e.pageSlot-4),1))}();break;case"fastForward":!function(){if(e.disabled)return;w(Math.min(d.value+(e.pageSlot-4),h.value))}()}},handleSizePickerChange:function(t){!function(t){if(t===u.value)return;const{"onUpdate:pageSize":n,onUpdatePageSize:o,onPageSizeChange:r}=e;n&&Qc(n,t),o&&Qc(o,t),r&&Qc(r,t),c.value=t,h.value<d.value&&w(h.value)}(t)},handleQuickJumperKeyUp:function(e){var t;if("Enter"===e.code||"NumpadEnter"===e.code){const e=parseInt(a.value);!Number.isNaN(e)&&e>=1&&e<=h.value&&(w(e),a.value="",null===(t=s.value)||void 0===t||t.blur())}},handlePageItemMouseEnter:function(t){if(!e.disabled){switch(t.type){case"fastBackward":f.value=!0;break;case"fastForward":p.value=!0;break;default:return}C()}},handlePageItemMouseLeave:function(t){if(!e.disabled){switch(t.type){case"fastBackward":f.value=!1;break;case"fastForward":p.value=!1;break;default:return}C()}},cssVars:Et((()=>{const{self:{itemSize:e,itemPadding:t,itemMargin:n,inputWidth:r,selectWidth:i,inputMargin:s,selectMargin:a,buttonBorder:l,buttonBorderHover:c,buttonBorderPressed:d,buttonIconColor:u,buttonIconColorHover:h,buttonIconColorPressed:p,buttonIconSize:f,itemTextColor:g,itemTextColorHover:m,itemTextColorPressed:v,itemTextColorActive:b,itemTextColorDisabled:y,itemColor:C,itemColorHover:w,itemColorPressed:x,itemColorActive:S,itemColorActiveHover:A,itemColorDisabled:k,itemBorder:F,itemBorderHover:E,itemBorderPressed:$,itemBorderActive:_,itemBorderDisabled:R,itemBorderRadius:B,itemFontSize:T,jumperFontSize:D,jumperTextColor:M,jumperTextColorDisabled:L,prefixMargin:P,suffixMargin:O,buttonColor:z,buttonColorHover:I,buttonColorPressed:j},common:{cubicBezierEaseInOut:N}}=o.value;return{"--prefix-margin":P,"--suffix-margin":O,"--item-font-size":T,"--select-width":i,"--select-margin":a,"--input-width":r,"--input-margin":s,"--item-size":e,"--item-text-color":g,"--item-text-color-disabled":y,"--item-text-color-hover":m,"--item-text-color-active":b,"--item-text-color-pressed":v,"--item-color":C,"--item-color-hover":w,"--item-color-disabled":k,"--item-color-active":S,"--item-color-active-hover":A,"--item-color-pressed":x,"--item-border":F,"--item-border-hover":E,"--item-border-disabled":R,"--item-border-active":_,"--item-border-pressed":$,"--item-padding":t,"--item-border-radius":B,"--bezier":N,"--jumper-font-size":D,"--jumper-text-color":M,"--jumper-text-color-disabled":L,"--item-margin":n,"--button-icon-size":f,"--button-icon-color":u,"--button-icon-color-hover":h,"--button-icon-color-pressed":p,"--button-color-hover":I,"--button-color":z,"--button-color-pressed":j,"--button-border":l,"--button-border-hover":c,"--button-border-pressed":d}}))}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:o,mergedPage:r,mergedPageCount:i,pageItems:s,showFastBackward:a,showFastForward:l,showSizePicker:c,showQuickJumper:d,mergedTheme:u,locale:h,inputSize:p,selectSize:f,mergedPageSize:g,pageSizeOptions:m,jumperValue:v,prev:b,next:y,prefix:C,suffix:w,handleJumperInput:x,handleSizePickerChange:S,handleBackwardClick:A,handlePageItemClick:k,handlePageItemMouseEnter:F,handlePageItemMouseLeave:E,handleForwardClick:$,handleQuickJumperKeyUp:_}=this,R=b||e.prev,B=y||e.next;return $r("div",{ref:"selfRef",class:[`${t}-pagination`,n&&`${t}-pagination--disabled`],style:o},C||e.prefix?$r("div",{class:`${t}-pagination-prefix`},(e.prefix?e.prefix:C)({page:r,pageSize:g,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.itemCount})):null,$r("div",{class:[`${t}-pagination-item`,!R&&`${t}-pagination-item--button`,(r<=1||r>i||n)&&`${t}-pagination-item--disabled`],onClick:A},R?R({page:r,pageSize:g,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.itemCount}):$r(cu,{clsPrefix:t},{default:()=>$r(Nd,null)})),s.map(((e,o)=>$r("div",{key:o,class:[`${t}-pagination-item`,{[`${t}-pagination-item--active`]:e.active,[`${t}-pagination-item--disabled`]:n}],onClick:()=>k(e),onMouseenter:()=>F(e),onMouseleave:()=>E(e)},"page"===e.type?e.label:null,"fastBackward"===e.type?$r(cu,{clsPrefix:t},a?{default:()=>$r(qd,null)}:{default:()=>$r(eu,null)}):null,"fastForward"===e.type?$r(cu,{clsPrefix:t},l?{default:()=>$r(Xd,null)}:{default:()=>$r(eu,null)}):null))),$r("div",{class:[`${t}-pagination-item`,!B&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||n}],onClick:$},B?B({page:r,pageSize:g,pageCount:i,itemCount:this.itemCount,startIndex:this.startIndex,endIndex:this.endIndex}):$r(cu,{clsPrefix:t},{default:()=>$r(Jd,null)})),c?$r(Mv,{size:f,placeholder:"",options:m,value:g,disabled:n,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:S}):null,d?$r("div",{class:`${t}-pagination-quick-jumper`},h.goto,$r(pm,{ref:"jumperRef",value:v,onUpdateValue:x,size:p,placeholder:"",disabled:n,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onKeyup:_})):null,w||e.suffix?$r("div",{class:`${t}-pagination-suffix`},(e.suffix?e.suffix:w)({page:r,pageSize:g,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.itemCount})):null)}}),Hv={padding:"8px 14px"};var Wv={name:"Tooltip",common:Gp,peers:{Popover:vg},self(e){const{borderRadius:t,boxShadow2:n,popoverColor:o,textColor2:r}=e;return Object.assign(Object.assign({},Hv),{borderRadius:t,boxShadow:n,color:o,textColor:r})}};var Vv={name:"Tooltip",common:If,peers:{Popover:mg},self:e=>{const{borderRadius:t,boxShadow2:n,baseColor:o}=e;return Object.assign(Object.assign({},Hv),{borderRadius:t,boxShadow:n,color:"rgba(0, 0, 0, .85)",textColor:o})}};var Uv={name:"Ellipsis",common:Gp,peers:{Tooltip:Wv}};var Kv={name:"Ellipsis",common:If,peers:{Tooltip:Vv}},Gv={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px"};var Yv={name:"Radio",common:Gp,self(e){const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:s,opacityDisabled:a,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:h,heightMedium:p,heightLarge:f}=e;return Object.assign(Object.assign({},Gv),{buttonHeightSmall:h,buttonHeightMedium:p,buttonHeightLarge:f,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Vi(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,textColor:s,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:"#0000",buttonColorActive:n,buttonTextColor:s,buttonTextColorActive:o,buttonTextColorHover:n,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Vi(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}};var qv={name:"Radio",common:If,self:e=>{const{borderColor:t,primaryColor:n,baseColor:o,textColorDisabled:r,inputColorDisabled:i,textColor2:s,opacityDisabled:a,borderRadius:l,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:h,heightMedium:p,heightLarge:f}=e;return Object.assign(Object.assign({},Gv),{buttonHeightSmall:h,buttonHeightMedium:p,buttonHeightLarge:f,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Vi(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:o,colorDisabled:i,textColor:s,textColorDisabled:r,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:o,buttonColorActive:o,buttonTextColor:s,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${Vi(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:l})}},Xv={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"16px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};const Zv=e=>{const{cardColor:t,modalColor:n,popoverColor:o,textColor2:r,textColor1:i,tableHeaderColor:s,tableColorHover:a,iconColor:l,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:h,fontSizeSmall:p,fontSizeMedium:f,fontSizeLarge:g,dividerColor:m,heightSmall:v,opacityDisabled:b,tableColorStriped:y}=e;return Object.assign(Object.assign({},Xv),{actionDividerColor:m,lineHeight:h,borderRadius:u,fontSizeSmall:p,fontSizeMedium:f,fontSizeLarge:g,borderColor:Wi(t,m),tdColorHover:Wi(t,a),tdColorStriped:Wi(t,y),thColor:Wi(t,s),thColorHover:Wi(Wi(t,s),a),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:a,thIconColor:l,thIconColorActive:c,borderColorModal:Wi(n,m),tdColorHoverModal:Wi(n,a),tdColorStripedModal:Wi(n,y),thColorModal:Wi(n,s),thColorHoverModal:Wi(Wi(n,s),a),tdColorModal:n,borderColorPopover:Wi(o,m),tdColorHoverPopover:Wi(o,a),tdColorStripedPopover:Wi(o,y),thColorPopover:Wi(o,s),thColorHoverPopover:Wi(Wi(o,s),a),tdColorPopover:o,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:v,opacityLoading:b})};var Jv={name:"DataTable",common:If,peers:{Button:jm,Checkbox:dv,Radio:qv,Pagination:Ov,Scrollbar:Gf,Empty:Hf,Popover:mg,Ellipsis:Kv},self:Zv};var Qv={name:"DataTable",common:Gp,peers:{Button:Nm,Checkbox:uv,Radio:Yv,Pagination:zv,Scrollbar:Yf,Empty:Wf,Popover:vg,Ellipsis:Uv},self(e){const t=Zv(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}};var eb=Jt({name:"Tooltip",props:Object.assign(Object.assign({},Eg),wd.props),__popover__:!0,setup(e){const t=wd("Tooltip","Tooltip",void 0,Vv,e),n=bt(null),o={syncPosition(){n.value.syncPosition()},setShow(e){n.value.setShow(e)}};return Object.assign(Object.assign({},o),{popoverRef:n,mergedTheme:t,popoverThemeOverrides:Et((()=>t.value.self))})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return $r($g,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),tb=sc("ellipsis",{overflow:"hidden"},[cc("line-clamp","\n white-space: nowrap;\n display: inline-block;\n vertical-align: bottom;\n max-width: 100%;\n "),lc("line-clamp","\n display: -webkit-inline-box;\n -webkit-box-orient: vertical;\n "),lc("cursor-pointer","\n cursor: pointer;\n ")]);function nb(e){return`${e}-ellipsis--line-clamp`}function ob(e,t){return`${e}-ellipsis--cursor-${t}`}var rb=Jt({name:"Ellipsis",inheritAttrs:!1,props:Object.assign(Object.assign({},wd.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),setup(e,{slots:t,attrs:n}){const{mergedClsPrefixRef:o}=Sd(e),r=wd("Ellipsis","ellipsis",tb,Kv,e,o),i=bt(null),s=bt(null),a=bt(!1),l=Et((()=>{const{lineClamp:t}=e,{value:n}=a;return void 0!==t?{textOverflow:"","-webkit-line-clamp":n?"":t}:{textOverflow:n?"":"ellipsis","-webkit-line-clamp":""}}));function c(){let t=!1;const{value:n}=a;if(n)return!0;const{value:r}=i;if(r){const{lineClamp:n}=e;!function(t){if(!t)return;const n=l.value,r=nb(o.value);void 0!==e.lineClamp?u(t,r,"add"):u(t,r,"remove");for(const e in n)t.style[e]!==n[e]&&(t.style[e]=n[e])}(r),t=void 0!==n?r.scrollHeight<=r.offsetHeight:r.scrollWidth<=r.offsetWidth,function(t,n){const r=ob(o.value,"pointer");"click"!==e.expandTrigger||n?u(t,r,"remove"):u(t,r,"add")}(r,t)}return t}const d=Et((()=>"click"===e.expandTrigger?()=>{var e;const{value:t}=a;t&&(null===(e=s.value)||void 0===e||e.setShow(!1)),a.value=!t}:void 0));function u(e,t,n){"add"===n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}return{mergedTheme:r,triggerRef:i,tooltipRef:s,handleClick:d,renderTrigger:()=>$r("span",Object.assign({},To(n,{class:[`${o.value}-ellipsis`,void 0!==e.lineClamp?nb(o.value):void 0,"click"===e.expandTrigger?ob(o.value,"pointer"):void 0],style:l.value}),{ref:"triggerRef",onClick:d.value,onMouseenter:"click"===e.expandTrigger?c:void 0}),t),getTooltipDisabled:c}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:o}=this;if(t){const{mergedTheme:r}=this;return $r(eb,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:n,default:null!==(e=o.tooltip)&&void 0!==e?e:o.default})}return n()}}),ib=Jt({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}});const sb=Symbol("dataTable");var ab=Jt({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{NConfigProvider:t}=Sd(),{mergedSortStateRef:n,mergedClsPrefixRef:o}=Ht(sb),r=Et((()=>n.value.find((t=>t.columnKey===e.column.key)))),i=Et((()=>void 0!==r.value)),s=Et((()=>{const{value:e}=r;return!(!e||!i.value)&&e.order})),a=Et((()=>{var n,o;return(null===(o=null===(n=null==t?void 0:t.mergedComponentPropsRef.value)||void 0===n?void 0:n.DataTable)||void 0===o?void 0:o.renderSorter)||e.column.renderSorter}));return{mergedClsPrefix:o,active:i,mergedSortOrder:s,mergedRenderSorter:a}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this;return e?$r(ib,{render:e,order:t}):$r("span",{class:[`${n}-data-table-sorter`,{[`${n}-data-table-sorter--asc`]:"ascend"===t,[`${n}-data-table-sorter--desc`]:"descend"===t}]},$r(cu,{clsPrefix:n},{default:()=>$r(Id,null)}))}}),lb=Jt({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}});const cb={name:String,value:{type:[String,Number],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,validator:()=>(nd("radio","`checked-value` is deprecated, please use `checked` instead."),!0),default:void 0}},db=Symbol("radioGroup");function ub(e){const t=Zi(e,{mergedSize(t){const{size:n}=e;if(void 0!==n)return n;if(s){const{mergedSizeRef:{value:e}}=s;if(void 0!==e)return e}return t?t.mergedSize.value:"medium"},mergedDisabled:t=>!!e.disabled||(!!(null==s?void 0:s.disabledRef.value)||!!(null==t?void 0:t.disabled.value))}),{mergedSizeRef:n,mergedDisabledRef:o}=t,r=bt(null),i=bt(null),s=Ht(db,null),a=bt(e.defaultChecked),l=Wc(kt(e,"checked"),a),c=wc((()=>s?s.valueRef.value===e.value:l.value)),d=wc((()=>{const{name:t}=e;return void 0!==t?t:s?s.nameRef.value:void 0})),u=bt(!1);function h(){o.value||c.value||function(){if(s){const{doUpdateValue:t}=s,{value:n}=e;Qc(t,n)}else{const{onUpdateChecked:n,"onUpdate:checked":o}=e,{nTriggerFormInput:r,nTriggerFormChange:i}=t;n&&Qc(n,!0),o&&Qc(o,!0),r(),i(),a.value=!0}}()}return{mergedClsPrefix:s?s.mergedClsPrefixRef:Sd(e).mergedClsPrefixRef,inputRef:r,labelRef:i,mergedName:d,mergedDisabled:o,uncontrolledChecked:a,renderSafeChecked:c,focus:u,mergedSize:n,handleRadioInputChange:function(){h()},handleRadioInputBlur:function(){u.value=!1},handleRadioInputFocus:function(){u.value=!0},handleKeyUp:function(e){var t;switch(e.code){case"Enter":case"NumpadEnter":null===(t=r.value)||void 0===t||t.click()}},handleMouseDown:function(){o.value||setTimeout((()=>{var e,t;(null===(e=i.value)||void 0===e?void 0:e.contains(document.activeElement))||null===(t=r.value)||void 0===t||t.focus()}),0)},handleClick:function(){var e;null===(e=r.value)||void 0===e||e.click()}}}ub.props=cb;var hb=sc("radio","\n line-height: 1;\n outline: none;\n position: relative;\n user-select: none;\n display: inline-flex;\n vertical-align: middle;\n align-items: center;\n font-size: var(--font-size);\n",[ac("dot","\n height: var(--radio-size);\n width: var(--radio-size);\n "),ac("radio-input","\n border: 0;\n width: 0;\n height: 0;\n opacity: 0;\n margin: 0;\n "),ac("dot","\n background: var(--color);\n box-shadow: var(--box-shadow);\n transition:\n background-color .3s var(--bezier),\n box-shadow .3s var(--bezier);\n position: relative;\n border-radius: 50%;\n ",[rc("&::before",'\n content: "";\n opacity: 0;\n position: absolute;\n left: 4px;\n top: 4px;\n height: calc(100% - 8px);\n width: calc(100% - 8px);\n border-radius: 50%;\n transform: scale(.8);\n background: var(--dot-color-active);\n transition: \n opacity .3s var(--bezier),\n background-color .3s var(--bezier),\n transform .3s var(--bezier);\n '),lc("checked",{boxShadow:"var(--box-shadow-active)"},[rc("&::before","\n opacity: 1;\n transform: scale(1);\n ")])]),ac("label","\n color: var(--text-color);\n padding: var(--label-padding);\n display: inline-block;\n white-space: nowrap;\n transition: color .3s var(--bezier);\n "),cc("disabled","\n cursor: pointer;\n ",[rc("&:hover",[ac("dot",{boxShadow:"var(--box-shadow-hover)"})]),lc("focus",[rc("&:not(:active)",[ac("dot",{boxShadow:"var(--box-shadow-focus)"})])])]),lc("disabled","\n cursor: not-allowed;\n ",[ac("dot",{boxShadow:"var(--box-shadow-disabled)",backgroundColor:"var(--color-disabled)"},[rc("&::before",{backgroundColor:"var(--dot-color-disabled)"}),lc("checked","\n transform: scale(1);\n opacity: 1;\n ")]),ac("label",{color:"var(--text-color-disabled)"})])]),pb=Jt({name:"Radio",props:Object.assign(Object.assign({},wd.props),ub.props),setup(e){const t=ub(e),n=wd("Radio","Radio",hb,qv,e,t.mergedClsPrefix);return Object.assign(t,{cssVars:Et((()=>{const{mergedSize:{value:e}}=t,{common:{cubicBezierEaseInOut:o},self:{boxShadow:r,boxShadowActive:i,boxShadowDisabled:s,boxShadowFocus:a,boxShadowHover:l,color:c,colorDisabled:d,textColor:u,textColorDisabled:h,dotColorActive:p,dotColorDisabled:f,labelPadding:g,[tc("fontSize",e)]:m,[tc("radioSize",e)]:v}}=n.value;return{"--bezier":o,"--box-shadow":r,"--box-shadow-active":i,"--box-shadow-disabled":s,"--box-shadow-focus":a,"--box-shadow-hover":l,"--color":c,"--color-disabled":d,"--dot-color-active":p,"--dot-color-disabled":f,"--font-size":m,"--radio-size":v,"--text-color":u,"--text-color-disabled":h,"--label-padding":g}}))})},render(){const{$slots:e,mergedClsPrefix:t}=this;return $r("div",{class:[`${t}-radio`,{[`${t}-radio--disabled`]:this.mergedDisabled,[`${t}-radio--checked`]:this.renderSafeChecked,[`${t}-radio--focus`]:this.focus}],style:this.cssVars,onKeyup:this.handleKeyUp,onClick:this.handleClick,onMousedown:this.handleMouseDown},$r("input",{ref:"inputRef",type:"radio",class:`${t}-radio__radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),$r("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]}),e.default?$r("div",{ref:"labelRef",class:`${t}-radio__label`},e.default()):null)}}),fb=sc("radio-group","\n display: inline-block;\n font-size: var(--font-size);\n",[ac("splitor","\n display: inline-block;\n vertical-align: bottom;\n width: 1px;\n transition:\n background-color .3s var(--bezier),\n opacity .3s var(--bezier);\n background: var(--button-border-color);\n ",[lc("checked",{backgroundColor:"var(--button-border-color-active)"}),lc("disabled",{opacity:"var(--opacity-disabled)"})]),lc("button-group","\n white-space: nowrap;\n height: var(--height);\n line-height: var(--height);\n ",[sc("radio-button",{height:"var(--height)",lineHeight:"var(--height)"}),ac("splitor",{height:"var(--height)"})]),sc("radio-button","\n vertical-align: bottom;\n outline: none;\n position: relative;\n user-select: none;\n display: inline-block;\n box-sizing: border-box;\n padding-left: 14px;\n padding-right: 14px;\n white-space: nowrap;\n transition:\n background-color .3s var(--bezier),\n opacity .3s var(--bezier),\n border-color .3s var(--bezier),\n color .3s var(--bezier);\n color: var(--button-text-color);\n border-top: 1px solid var(--button-border-color);\n border-bottom: 1px solid var(--button-border-color);\n ",[ac("radio-input","\n border: 0;\n width: 0;\n height: 0;\n opacity: 0;\n margin: 0;\n "),ac("state-border","\n pointer-events: none;\n position: absolute;\n box-shadow: var(--button-box-shadow);\n transition: box-shadow .3s var(--bezier);\n left: -1px;\n bottom: -1px;\n right: -1px;\n top: -1px;\n "),rc("&:first-child","\n border-top-left-radius: var(--button-border-radius);\n border-bottom-left-radius: var(--button-border-radius);\n border-left: 1px solid var(--button-border-color);\n ",[ac("state-border","\n border-top-left-radius: var(--button-border-radius);\n border-bottom-left-radius: var(--button-border-radius);\n ")]),rc("&:last-child","\n border-top-right-radius: var(--button-border-radius);\n border-bottom-right-radius: var(--button-border-radius);\n border-right: 1px solid var(--button-border-color);\n ",[ac("state-border","\n border-top-right-radius: var(--button-border-radius);\n border-bottom-right-radius: var(--button-border-radius);\n ")]),cc("disabled","\n cursor: pointer;\n ",[rc("&:hover",[ac("state-border","\n transition: box-shadow .3s var(--bezier);\n box-shadow: var(--button-box-shadow-hover);\n "),cc("checked",{color:"var(--button-text-color-hover)"})]),lc("focus",[rc("&:not(:active)",[ac("state-border",{boxShadow:"var(--button-box-shadow-focus)"})])])]),lc("checked","\n background: var(--button-color-active);\n color: var(--button-text-color-active);\n border-color: var(--button-border-color-active);\n "),lc("disabled","\n cursor: not-allowed;\n opacity: var(--opacity-disabled);\n ")])]);var gb=Jt({name:"RadioGroup",props:Object.assign(Object.assign({},wd.props),{name:String,value:[String,Number],defaultValue:{type:[String,Number],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),setup(e){const t=bt(null),{mergedSizeRef:n,mergedDisabledRef:o,nTriggerFormChange:r,nTriggerFormInput:i,nTriggerFormBlur:s,nTriggerFormFocus:a}=Zi(e),{mergedClsPrefixRef:l}=Sd(e),c=wd("Radio","RadioGroup",fb,qv,e,l),d=bt(e.defaultValue),u=Wc(kt(e,"value"),d);return Nt(db,{mergedClsPrefixRef:l,nameRef:kt(e,"name"),valueRef:u,disabledRef:o,mergedSizeRef:n,doUpdateValue:function(t){const{onUpdateValue:n,"onUpdate:value":o}=e;n&&Qc(n,t),o&&Qc(o,t),d.value=t,r(),i()}}),{selfElRef:t,mergedClsPrefix:l,mergedValue:u,handleFocusout:function(e){const{value:n}=t;n&&(n.contains(e.relatedTarget)||s())},handleFocusin:function(e){const{value:n}=t;n&&(n.contains(e.relatedTarget)||a())},cssVars:Et((()=>{const{value:e}=n,{common:{cubicBezierEaseInOut:t},self:{buttonBorderColor:o,buttonBorderColorActive:r,buttonBorderRadius:i,buttonBoxShadow:s,buttonBoxShadowFocus:a,buttonBoxShadowHover:l,buttonColorActive:d,buttonTextColor:u,buttonTextColorActive:h,buttonTextColorHover:p,opacityDisabled:f,[tc("buttonHeight",e)]:g,[tc("fontSize",e)]:m}}=c.value;return{"--font-size":m,"--bezier":t,"--button-border-color":o,"--button-border-color-active":r,"--button-border-radius":i,"--button-box-shadow":s,"--button-box-shadow-focus":a,"--button-box-shadow-hover":l,"--button-color-active":d,"--button-text-color":u,"--button-text-color-hover":p,"--button-text-color-active":h,"--height":g,"--opacity-disabled":f}}))}},render(){const{mergedValue:e,mergedClsPrefix:t,handleFocusin:n,handleFocusout:o}=this,{children:r,isButtonGroup:i}=function(e,t,n){var o;const r=[];let i=!1;for(let s=0;s<e.length;++s){const a=e[s],l=null===(o=a.type)||void 0===o?void 0:o.name;"RadioButton"===l&&(i=!0);const c=a.props;if("RadioButton"===l)if(0===s)r.push(a);else{const e=r[r.length-1].props,o=t===e.value,i=e.disabled,s=t===c.value,l=c.disabled,d={[`${n}-radio-group__splitor--disabled`]:i,[`${n}-radio-group__splitor--checked`]:o},u={[`${n}-radio-group__splitor--disabled`]:l,[`${n}-radio-group__splitor--checked`]:s},h=(o?2:0)+(i?0:1)<(s?2:0)+(l?0:1)?u:d;r.push($r("div",{class:[`${n}-radio-group__splitor`,h]}),a)}else r.push(a)}return{children:r,isButtonGroup:i}}(Jc(qc(this)),e,t);return $r("div",{onFocusin:n,onFocusout:o,ref:"selfElRef",class:[`${t}-radio-group`,i&&`${t}-radio-group--button-group`],style:this.cssVars},r)}}),mb=Jt({name:"RadioButton",props:ub.props,setup:e=>ub(e),render(){const{mergedClsPrefix:e}=this;return $r("div",{class:[`${e}-radio-button`,{[`${e}-radio-button--disabled`]:this.mergedDisabled,[`${e}-radio-button--checked`]:this.renderSafeChecked,[`${e}-radio-button--focus`]:this.focus}],onKeyup:this.handleKeyUp,onClick:this.handleClick,onMousedown:this.handleMouseDown},$r("input",{ref:"inputRef",type:"radio",class:`${e}-radio-button__radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),$r("div",{class:`${e}-radio-button__state-border`}),$r("span",{ref:"labelRef"},this.$slots))}});function vb(e){return"selection"===e.type||"expand"===e.type?40:"children"in e?void 0:e.width}function bb(e){return"selection"===e.type?"__n_selection__":"expand"===e.type?"__n_expand__":e.key}function yb(e){return e&&"object"==typeof e?Object.assign({},e):e}function Cb(e){const t=Ei(vb(e));return{width:t,minWidth:t}}function wb(e){return void 0!==e.filterOptionValues||void 0===e.filterOptionValue&&void 0!==e.defaultFilterOptionValues}function xb(e){return!("children"in e)&&!!e.sorter}function Sb(e){return!("children"in e)&&!(!e.filter||!e.filterOptions&&!e.renderFilterMenu)}function Ab(e){return e?"descend"===e&&"ascend":"descend"}function kb(e,t){return void 0!==t.find((t=>t.columnKey===e.key&&t.order))}var Fb=Jt({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,localeRef:o}=Ht(sb),r=bt(e.value);function i(t){e.onChange(t)}return{mergedClsPrefix:t,mergedTheme:n,locale:o,checkboxGroupValue:Et((()=>{const{value:e}=r;return Array.isArray(e)?e:null})),radioGroupValue:Et((()=>{const{value:t}=r;return wb(e.column)?Array.isArray(t)&&t.length&&t[0]||null:Array.isArray(t)?null:t})),handleChange:function(t){e.multiple&&Array.isArray(t)?r.value=t:wb(e.column)&&!Array.isArray(t)?r.value=[t]:r.value=t},handleConfirmClick:function(){i(r.value),e.onConfirm()},handleClearClick:function(){e.multiple||wb(e.column)?i([]):i(null),e.onClear()}}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return $r("div",{class:`${n}-data-table-filter-menu`},$r(Jf,null,{default:()=>{const{checkboxGroupValue:t,handleChange:o}=this;return this.multiple?$r(mv,{value:t,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map((t=>$r(bv,{key:t.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:t.value},{default:()=>t.label})))}):$r(gb,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map((t=>$r(pb,{key:t.value,value:t.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>t.label})))})}}),$r("div",{class:`${n}-data-table-filter-menu__action`},$r(qm,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),$r(qm,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}});var Eb=Jt({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{NConfigProvider:t}=Sd(),{mergedThemeRef:n,mergedClsPrefixRef:o,mergedFilterStateRef:r,filterMenuCssVarsRef:i,doUpdateFilters:s}=Ht(sb),a=bt(!1),l=r,c=Et((()=>!1!==e.column.filterMultiple)),d=Et((()=>{const t=l.value[e.column.key];if(void 0===t){const{value:e}=c;return e?[]:null}return t})),u=Et((()=>{const{value:e}=d;return Array.isArray(e)?e.length>0:null!==e})),h=Et((()=>{var n,o;return(null===(o=null===(n=null==t?void 0:t.mergedComponentPropsRef.value)||void 0===n?void 0:n.DataTable)||void 0===o?void 0:o.renderFilter)||e.column.renderFilter}));return{mergedTheme:n,mergedClsPrefix:o,active:u,showPopover:a,mergedRenderFilter:h,filterMultiple:c,mergedFilterValue:d,filterMenuCssVars:i,handleFilterChange:function(t){const n=function(e,t,n){const o=Object.assign({},e);return o[t]=n,o}(l.value,e.column.key,t);s(n,e.column)},handleFilterMenuConfirm:function(){a.value=!1},handleFilterMenuCancel:function(){a.value=!1}}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n}=this;return $r($g,{show:this.showPopover,onUpdateShow:e=>this.showPopover=e,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:e}=this;if(e)return $r(lb,{"data-data-table-filter":!0,render:e,active:this.active,show:this.showPopover});const{renderFilterIcon:n}=this.column;return $r("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},n?n({active:this.active,show:this.showPopover}):$r(cu,{clsPrefix:t},{default:()=>$r(Zd,null)}))},default:()=>{const{renderFilterMenu:e}=this.column;return e?e({hide:n}):$r(Fb,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),$b={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};const _b=e=>{const{primaryColor:t,textColor2:n,dividerColor:o,hoverColor:r,popoverColor:i,invertedColor:s,borderRadius:a,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:h,heightMedium:p,heightLarge:f,heightHuge:g,textColor3:m,opacityDisabled:v}=e;return Object.assign(Object.assign({},$b),{optionHeightSmall:h,optionHeightMedium:p,optionHeightLarge:f,optionHeightHuge:g,borderRadius:a,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:o,suffixColor:n,prefixColor:n,optionColorHover:r,optionColorActive:Vi(t,{alpha:.1}),groupHeaderTextColor:m,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:s,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:v})};var Rb={name:"Dropdown",common:If,peers:{Popover:mg},self:_b};var Bb={name:"Dropdown",common:Gp,peers:{Popover:vg},self(e){const{primaryColorSuppl:t,primaryColor:n,popoverColor:o}=e,r=_b(e);return r.colorInverted=o,r.optionColorActive=Vi(n,{alpha:.15}),r.optionColorActiveInverted=t,r.optionColorHoverInverted=t,r}};const Tb=e=>{const{textColorBase:t,opacity1:n,opacity2:o,opacity3:r,opacity4:i,opacity5:s}=e;return{color:t,opacity1Depth:n,opacity2Depth:o,opacity3Depth:r,opacity4Depth:i,opacity5Depth:s}};var Db={name:"Icon",common:If,self:Tb};var Mb={name:"Icon",common:Gp,self:Tb},Lb=sc("icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[lc("color-transition",{transition:"color .3s var(--bezier)"}),lc("depth",{color:"var(--color)"},[rc("svg",{opacity:"var(--opacity)",transition:"opacity .3s var(--bezier)"})]),rc("svg",{height:"1em",width:"1em"})]),Pb=Jt({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Object.assign(Object.assign({},wd.props),{depth:[String,Number],size:[Number,String],color:String}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Icon","Icon",Lb,Db,e,t);return{mergedClsPrefix:t,mergedStyle:Et((()=>{const{size:t,color:n}=e;return{fontSize:cd(t),color:n}})),cssVars:Et((()=>{const{depth:t}=e,{common:{cubicBezierEaseInOut:o},self:r}=n.value;if(void 0!==t){const{color:e,[`opacity${t}Depth`]:n}=r;return{"--bezier":o,"--color":e,"--opacity":n}}return{"--bezier":o}}))}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:o}=this;return(null===(e=null==t?void 0:t.$options)||void 0===e?void 0:e._n_icon__)&&nd("icon","don't wrap `n-icon` inside `n-icon`"),$r("i",To(this.$attrs,{role:"img",class:[`${o}-icon`,{[`${o}-icon--depth`]:n,[`${o}-icon--color-transition`]:void 0!==n}],style:Object.assign(this.cssVars,this.mergedStyle)}),this.$slots)}});function Ob(e,t){return"submenu"===e.type||void 0===e.type&&void 0!==e[t]}function zb(e){return"divider"===e.type}const Ib=Symbol("dropdown-option");var jb=Jt({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object},setup(e){const t=Ht(Yb),{hoverKeyRef:n,keyboardKeyRef:o,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:s,animatedRef:a,mergedShowRef:l,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:h}=t,p=Ht(Ib,null),f=Ht(Ub),g=Et((()=>e.tmNode.rawNode)),m=Et((()=>{const{value:t}=h;return Ob(e.tmNode.rawNode,t)})),v=Et((()=>{const{disabled:t}=e.tmNode;return t})),b=function(e,t,n){if(!t)return e;const o=bt(e.value);let r=null;return Sr(e,(e=>{null!==r&&window.clearTimeout(r),!0===e?n&&!n.value?o.value=!0:r=window.setTimeout((()=>{o.value=!0}),t):o.value=!1})),o}(Et((()=>{if(!m.value)return!1;const{key:t,disabled:s}=e.tmNode;if(s)return!1;const{value:a}=n,{value:l}=o,{value:c}=r,{value:d}=i;return null!==a?d.includes(t):null!==l?d.includes(t)&&d[d.length-1]!==t:null!==c&&d.includes(t)})),300,Et((()=>null===o.value&&!a.value))),y=Et((()=>!!(null==p?void 0:p.enteringSubmenuRef.value))),C=bt(!1);function w(){const{parentKey:t,tmNode:i}=e;l.value&&(r.value=t,o.value=null,n.value=i.key)}return Nt(Ib,{enteringSubmenuRef:C}),{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:f.showIconRef,siblingHasSubmenu:f.hasSubmenuRef,animated:a,mergedShowSubmenu:Et((()=>b.value&&!y.value)),rawNode:g,hasSubmenu:m,pending:wc((()=>{const{value:t}=i,{key:n}=e.tmNode;return t.includes(n)})),childActive:wc((()=>{const{value:t}=s,{key:n}=e.tmNode,o=t.findIndex((e=>n===e));return-1!==o&&o<t.length-1})),active:wc((()=>{const{value:t}=s,{key:n}=e.tmNode,o=t.findIndex((e=>n===e));return-1!==o&&o===t.length-1})),mergedDisabled:v,handleClick:function(){const{value:n}=m,{tmNode:o}=e;l.value&&(n||o.disabled||(t.doSelect(o.key,o.rawNode),t.doUpdateShow(!1)))},handleMouseMove:function(){const{tmNode:t}=e;l.value&&n.value!==t.key&&w()},handleMouseEnter:w,handleMouseLeave:function(e){if(!l.value)return;const{relatedTarget:t}=e;t&&!Ai({target:t},"dropdownOption")&&(n.value=null)},handleSubmenuBeforeEnter:function(){C.value=!0},handleSubmenuAfterEnter:function(){C.value=!1}}},render(){var e;const{animated:t,rawNode:n,mergedShowSubmenu:o,clsPrefix:r,siblingHasIcon:i,siblingHasSubmenu:s,renderLabel:a,renderIcon:l,props:c}=this,d=o?$r(Kb,{clsPrefix:r,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}):null,u={class:[`${r}-dropdown-option-body`,this.pending&&`${r}-dropdown-option-body--pending`,this.active&&`${r}-dropdown-option-body--active`,this.childActive&&`${r}-dropdown-option-body--child-active`,this.mergedDisabled&&`${r}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick};return $r("div",{class:`${r}-dropdown-option`},$r("div",To(u,c),[$r("div",{"data-dropdown-option":!0,class:[`${r}-dropdown-option-body__prefix`,i&&`${r}-dropdown-option-body__prefix--show-icon`]},[l?l(n):td(n.icon)]),$r("div",{"data-dropdown-option":!0,class:`${r}-dropdown-option-body__label`},a?a(n):td(null!==(e=n[this.labelField])&&void 0!==e?e:n.title)),$r("div",{"data-dropdown-option":!0,class:[`${r}-dropdown-option-body__suffix`,s&&`${r}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?$r(Pb,null,{default:()=>$r(Wd,null)}):null)]),this.hasSubmenu?$r(Gu,null,{default:()=>[$r(Yu,null,{default:()=>$r("div",{class:`${r}-dropdown-offset-container`},$r(gh,{show:this.mergedShowSubmenu,placement:this.placement,teleportDisabled:!0},{default:()=>$r("div",{class:`${r}-dropdown-menu-wrapper`},t?$r(Kr,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>d}):d)}))})]}):null)}}),Nb=Jt({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return $r("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Hb=Jt({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Ht(Ub),{renderLabelRef:n,labelFieldRef:o}=Ht(Yb);return{labelField:o,showIcon:e,hasSubmenu:t,renderLabel:n}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:o,renderLabel:r}=this,{rawNode:i}=this.tmNode;return $r("div",{class:`${t}-dropdown-option`},$r("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},$r("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,o&&`${t}-dropdown-option-body__prefix--show-icon`]},td(i.icon)),$r("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},r?r(i):td(null!==(e=i.title)&&void 0!==e?e:i[this.labelField])),$r("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})))}}),Wb=Jt({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:o}=e;return $r(so,null,$r(Hb,{clsPrefix:n,tmNode:e,key:e.key}),null==o?void 0:o.map((e=>zb(e.rawNode)?$r(Nb,{clsPrefix:n,key:e.key}):e.isGroup?(nd("dropdown","`group` node is not allowed to be put in `group` node."),null):$r(jb,{clsPrefix:n,tmNode:e,parentKey:t,key:e.key}))))}}),Vb=Jt({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return $r("div",t,[null==e?void 0:e()])}});const Ub=Symbol("dropdownMenu");var Kb=Jt({name:"DropdownMenu",props:{showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Ht(Yb);Nt(Ub,{showIconRef:Et((()=>{const n=t.value;return e.tmNodes.some((e=>{var t;if(e.isGroup)return null===(t=e.children)||void 0===t?void 0:t.some((({rawNode:e})=>n?n(e):e.icon));const{rawNode:o}=e;return n?n(o):o.icon}))})),hasSubmenuRef:Et((()=>{const{value:t}=n;return e.tmNodes.some((e=>{var n;if(e.isGroup)return null===(n=e.children)||void 0===n?void 0:n.some((({rawNode:e})=>Ob(e,t)));const{rawNode:o}=e;return Ob(o,t)}))}))})},render(){const{parentKey:e,clsPrefix:t}=this;return $r("div",{class:`${t}-dropdown-menu`},this.tmNodes.map((n=>{const{rawNode:o}=n;return function(e){return"render"===e.type}(o)?$r(Vb,{tmNode:n,key:n.key}):zb(o)?$r(Nb,{clsPrefix:t,key:n.key}):function(e){return"group"===e.type}(o)?$r(Wb,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key}):$r(jb,{clsPrefix:t,tmNode:n,parentKey:e,key:n.key,props:o.props})})),this.showArrow?xg({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),Gb=sc("dropdown-menu","\n transform-origin: inherit;\n padding: var(--padding);\n background-color: var(--color);\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n transition:\n background-color .3s var(--bezier),\n box-shadow .3s var(--bezier);\n",[ig(),sc("dropdown-option","\n position: relative;\n ",[rc("a","\n text-decoration: none;\n color: inherit;\n ",[rc("&::before",'\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),sc("dropdown-option-body","\n display: flex;\n cursor: pointer;\n height: var(--option-height);\n line-height: var(--option-height);\n font-size: var(--font-size);\n color: var(--option-text-color);\n transition:\n background-color .3s var(--bezier),\n color .3s var(--bezier);\n ",[lc("pending",[cc("disabled",{color:"var(--option-text-color-hover)",backgroundColor:"var(--option-color-hover)"}),ac("prefix, suffix",{color:"var(--option-text-color-hover)"})]),lc("active",[cc("disabled",{color:"var(--option-text-color-active)",backgroundColor:"var(--option-color-active)"}),ac("prefix, suffix",{color:"var(--option-text-color-active)"})]),lc("disabled",{cursor:"not-allowed",opacity:"var(--option-opacity-disabled)"}),lc("child-active",{color:"var(--option-text-color-child-active)"},[ac("prefix, suffix",{color:"var(--option-text-color-child-active)"})]),lc("group",{fontSize:"calc(var(--font-size) - 1px)",color:"var(--group-header-text-color)"},[ac("prefix",{width:"calc(var(--option-prefix-width) / 2)"},[lc("show-icon",{width:"calc(var(--option-icon-prefix-width) / 2)"})])]),ac("prefix","\n width: var(--option-prefix-width);\n display: flex;\n justify-content: center;\n align-items: center;\n color: var(--prefix-color);\n transition: color .3s var(--bezier);\n ",[lc("show-icon",{width:"var(--option-icon-prefix-width)"}),sc("icon",{fontSize:"var(--option-icon-size)"})]),ac("label",{whiteSpace:"nowrap",flex:1}),ac("suffix","\n box-sizing: border-box;\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n min-width: var(--option-suffix-width);\n padding: 0 8px;\n transition: color .3s var(--bezier);\n color: var(--suffix-color);\n ",[lc("has-submenu",{width:"var(--option-icon-suffix-width)"}),sc("icon",{fontSize:"var(--option-icon-size)"})]),sc("dropdown-menu",{pointerEvents:"all"})]),sc("dropdown-offset-container","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: -4px;\n bottom: -4px;\n ")]),sc("dropdown-divider","\n transition: background-color .3s var(--bezier);\n background-color: var(--divider-color);\n height: 1px;\n margin: 4px 0;\n "),sc("dropdown-menu-wrapper","\n transform-origin: inherit;\n width: fit-content;\n ")]);const Yb=Symbol("dropdown"),qb={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},showArrow:Boolean,renderLabel:Function,renderIcon:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},Xb=Object.keys(Eg);var Zb=Jt({name:"Dropdown",inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},Eg),qb),wd.props),setup(e){const t=bt(!1),n=Wc(kt(e,"show"),t),o=Et((()=>{const{keyField:t,childrenField:n}=e;return ju(e.options,{getKey:e=>e[t],getDisabled:e=>!0===e.disabled,getIgnored:e=>"divider"===e.type||"render"===e.type,getChildren:e=>e[n]})})),r=Et((()=>o.value.treeNodes)),i=bt(null),s=bt(null),a=bt(null),l=Et((()=>{var e,t,n;return null!==(n=null!==(t=null!==(e=i.value)&&void 0!==e?e:s.value)&&void 0!==t?t:a.value)&&void 0!==n?n:null})),c=Et((()=>o.value.getPath(l.value).keyPath)),d=Et((()=>o.value.getPath(e.value).keyPath));!function(e={},t){const n=st({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:r}=e,i=e=>{switch(e.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0}void 0!==o&&Object.keys(o).forEach((t=>{if(t!==e.key)return;const n=o[t];if("function"==typeof n)n(e);else{const{stop:t=!1,prevent:o=!1}=n;t&&e.stopPropagation(),o&&e.preventDefault(),n.handler(e)}}))},s=e=>{switch(e.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1}void 0!==r&&Object.keys(r).forEach((t=>{if(t!==e.key)return;const n=r[t];if("function"==typeof n)n(e);else{const{stop:t=!1,prevent:o=!1}=n;t&&e.stopPropagation(),o&&e.preventDefault(),n.handler(e)}}))},a=()=>{(void 0===t||t.value)&&(Bc("keydown",document,i),Bc("keyup",document,s)),void 0!==t&&Sr(t,(e=>{e?(Bc("keydown",document,i),Bc("keyup",document,s)):(Tc("keydown",document,i),Tc("keyup",document,s))}))};xc()?(ln(a),hn((()=>{(void 0===t||t.value)&&(Tc("keydown",document,i),Tc("keyup",document,s))}))):a(),at(n)}({keydown:{ArrowUp:{prevent:!0,handler:function(){m("up")}},ArrowRight:{prevent:!0,handler:function(){m("right")}},ArrowDown:{prevent:!0,handler:function(){m("down")}},ArrowLeft:{prevent:!0,handler:function(){m("left")}},Escape:function(){f(!1)}},keyup:{Enter:function(){const e=g();(null==e?void 0:e.isLeaf)&&(p(e.key,e.rawNode),f(!1))}}},wc((()=>e.keyboard&&n.value)));const{mergedClsPrefixRef:u}=Sd(e),h=wd("Dropdown","Dropdown",Gb,Rb,e,u);function p(t,n){const{onSelect:o}=e;o&&Qc(o,t,n)}function f(n){const{"onUpdate:show":o}=e;o&&Qc(o,n),t.value=n}function g(){var e;const{value:t}=o,{value:n}=l;return t&&null!==n&&null!==(e=t.getNode(n))&&void 0!==e?e:null}function m(e){const{value:t}=l,{value:{getFirstAvailableNode:n}}=o;let r=null;if(null===t){const e=n();null!==e&&(r=e.key)}else{const t=g();if(t){let n;switch(e){case"down":n=t.getNext();break;case"up":n=t.getPrev();break;case"right":n=t.getChild();break;case"left":n=t.getParent()}n&&(r=n.key)}}null!==r&&(i.value=null,s.value=r)}return Nt(Yb,{labelFieldRef:kt(e,"labelField"),childrenFieldRef:kt(e,"childrenField"),renderLabelRef:kt(e,"renderLabel"),renderIconRef:kt(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:s,lastToggledSubmenuKeyRef:a,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:kt(e,"animated"),mergedShowRef:n,doSelect:p,doUpdateShow:f}),Sr(n,(e=>{e||(i.value=null,s.value=null,a.value=null)})),{mergedClsPrefix:u,mergedTheme:h,tmNodes:r,mergedShow:n,doUpdateShow:f,cssVars:Et((()=>{const{size:t,inverted:n}=e,{common:{cubicBezierEaseInOut:o},self:r}=h.value,{padding:i,dividerColor:s,borderRadius:a,optionOpacityDisabled:l,[tc("optionIconSuffixWidth",t)]:c,[tc("optionSuffixWidth",t)]:d,[tc("optionIconPrefixWidth",t)]:u,[tc("optionPrefixWidth",t)]:p,[tc("fontSize",t)]:f,[tc("optionHeight",t)]:g,[tc("optionIconSize",t)]:m}=r,v={"--bezier":o,"--font-size":f,"--padding":i,"--border-radius":a,"--option-height":g,"--option-prefix-width":p,"--option-icon-prefix-width":u,"--option-suffix-width":d,"--option-icon-suffix-width":c,"--option-icon-size":m,"--divider-color":s,"--option-opacity-disabled":l};return n?(v["--color"]=r.colorInverted,v["--option-color-hover"]=r.optionColorHoverInverted,v["--option-color-active"]=r.optionColorActiveInverted,v["--option-text-color"]=r.optionTextColorInverted,v["--option-text-color-hover"]=r.optionTextColorHoverInverted,v["--option-text-color-active"]=r.optionTextColorActiveInverted,v["--option-text-color-child-active"]=r.optionTextColorChildActiveInverted,v["--prefix-color"]=r.prefixColorInverted,v["--suffix-color"]=r.suffixColorInverted,v["--group-header-text-color"]=r.groupHeaderTextColorInverted):(v["--color"]=r.color,v["--option-color-hover"]=r.optionColorHover,v["--option-color-active"]=r.optionColorActive,v["--option-text-color"]=r.optionTextColor,v["--option-text-color-hover"]=r.optionTextColorHover,v["--option-text-color-active"]=r.optionTextColorActive,v["--option-text-color-child-active"]=r.optionTextColorChildActive,v["--prefix-color"]=r.prefixColor,v["--suffix-color"]=r.suffixColor,v["--group-header-text-color"]=r.groupHeaderTextColor),v}))}},render(){const{mergedTheme:e}=this,t={show:this.mergedShow,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,internalRenderBody:(e,t,n,o,r)=>{const{mergedClsPrefix:i}=this,s={ref:sd(t),class:[e,`${i}-dropdown`,this.showArrow&&`${i}-popover--show-arrow`],clsPrefix:i,tmNodes:this.tmNodes,style:[n,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,onMouseenter:o,onMouseleave:r};return $r(Kb,To(this.$attrs,s))},onUpdateShow:this.doUpdateShow};return $r($g,Object.assign({},Xc(this.$props,Xb),t),{trigger:this.$slots.default,_:1})}});var Jb=Jt({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(){const{localeRef:e,checkOptionsRef:t,rawPaginatedDataRef:n,doCheckAll:o,doUncheckAll:r}=Ht(sb);return{handleSelect:Et((()=>function(e,t,n,o){return e?r=>{for(const i of e)switch(r){case"_n_all__":return void n(!0);case"_n_none__":return void o(!0);default:if("object"==typeof i&&i.key===r)return void i.onSelect(t.value)}}:()=>{}}(t.value,n,o,r))),options:Et((()=>function(e,t){return e?e.map((e=>{switch(e){case"all":return{label:t.checkTableAll,key:"_n_all__"};case"none":return{label:t.uncheckTableAll,key:"_n_none__"};default:return e}})):[]}(t.value,e.value)))}},render(){const{clsPrefix:e}=this;return $r(Zb,{options:this.options,onSelect:this.handleSelect},{default:()=>$r(cu,{clsPrefix:e,class:`${e}-data-table-check-extra`},{default:()=>$r(ou,null)})})}});function Qb(e){return"function"==typeof e.title?e.title(e):e.title}var ey=Jt({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:o,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:s,rowsRef:a,colsRef:l,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:u,componentId:h,scrollPartRef:p,mergedTableLayoutRef:f,headerCheckboxDisabledRef:g,handleTableHeaderScroll:m,deriveNextSorter:v,doUncheckAll:b,doCheckAll:y}=Ht(sb);return{componentId:h,mergedSortState:u,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:r,allRowsChecked:i,someRowsChecked:s,rows:a,cols:l,mergedTheme:c,checkOptions:d,mergedTableLayout:f,headerCheckboxDisabled:g,handleMouseenter:function(){p.value="head"},handleCheckboxUpdateChecked:function(){s.value||i.value?b():y()},handleColHeaderClick:function(e,t){if(Ai(e,"dataTableFilter"))return;if(!xb(t))return;const n=u.value.find((e=>e.columnKey===t.key))||null,o=function(e,t){return void 0===e.sorter?null:null===t||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:Ab(!1)}:Object.assign(Object.assign({},t),{order:Ab(t.order)})}(t,n);v(o)},handleTableHeaderScroll:m}},render(){const{mergedClsPrefix:e,fixedColumnLeftMap:t,fixedColumnRightMap:n,currentPage:o,allRowsChecked:r,someRowsChecked:i,rows:s,cols:a,mergedTheme:l,checkOptions:c,componentId:d,discrete:u,mergedTableLayout:h,headerCheckboxDisabled:p,mergedSortState:f,handleColHeaderClick:g,handleCheckboxUpdateChecked:m}=this,v=$r("thead",{class:`${e}-data-table-thead`,"data-n-id":d},s.map((s=>$r("tr",{class:`${e}-data-table-tr`},s.map((({column:s,colSpan:a,rowSpan:d,isLast:u})=>{var h,v;const b=bb(s),{ellipsis:y}=s,C=b in t,w=b in n;return $r("th",{key:b,style:{textAlign:s.align,left:Ei(null===(h=t[b])||void 0===h?void 0:h.start),right:Ei(null===(v=n[b])||void 0===v?void 0:v.start)},colspan:a,rowspan:d,"data-col-key":b,class:[`${e}-data-table-th`,(C||w)&&`${e}-data-table-th--fixed-${C?"left":"right"}`,{[`${e}-data-table-th--hover`]:kb(s,f),[`${e}-data-table-th--filterable`]:Sb(s),[`${e}-data-table-th--sortable`]:xb(s),[`${e}-data-table-th--selection`]:"selection"===s.type,[`${e}-data-table-th--last`]:u},s.className],onClick:"selection"===s.type||"expand"===s.type||"children"in s?void 0:e=>{g(e,s)}},"selection"===s.type?$r(so,null,$r(bv,{key:o,privateInsideTable:!0,checked:r,indeterminate:i,disabled:p,onUpdateChecked:m}),c?$r(Jb,{clsPrefix:e}):null):!0===y||y&&!y.tooltip?$r("div",{class:`${e}-data-table-th__ellipsis`},Qb(s)):y&&y.tooltip?$r(rb,{tooltip:y.tooltip,theme:l.peers.Ellipsis,themeOverrides:l.peerOverrides.Ellipsis},{default:()=>Qb(s)}):Qb(s),xb(s)?$r(ab,{column:s}):null,Sb(s)?$r(Eb,{column:s,options:s.filterOptions}):null)}))))));if(!u)return v;const{handleTableHeaderScroll:b,handleMouseenter:y,scrollX:C}=this;return $r("div",{class:`${e}-data-table-base-table-header`,onScroll:b,onMouseenter:y},$r("table",{ref:"body",class:`${e}-data-table-table`,style:{minWidth:cd(C),tableLayout:h}},$r("colgroup",null,a.map((e=>$r("col",{key:e.key,style:e.style})))),v))}}),ty=Jt({name:"DataTableCell",props:{row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0}},render(){const{isSummary:e,column:{render:t,key:n,ellipsis:o},row:r}=this;let i;i=t&&!e?t(r,this.index):e?r[n].value:Ua(r,n);const s="object"==typeof o?o.tooltip:void 0;if(s){const{mergedTheme:e}=this;return $r(rb,{tooltip:s,theme:e.peers.Ellipsis,themeOverrides:e.peerOverrides.Ellipsis},{default:()=>i})}return i}}),ny=Jt({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,onClick:{type:Function,required:!0}},render(){return $r(cu,{class:`${this.clsPrefix}-data-table-expand-trigger`,clsPrefix:this.clsPrefix,onClick:this.onClick},{default:()=>$r(Wd,{style:this.expanded?"transform: rotate(90deg);":void 0})})}}),oy=Jt({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Ht(sb);return()=>{const{rowKey:o}=e;return $r(bv,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(o),checked:t.value.has(o),onUpdateChecked:e.onUpdateChecked})}}});function ry(e,t){const n=[];function o(e){e.forEach((e=>{e.children&&t.has(e.key)?(n.push({tmNode:e,striped:!1,key:e.key}),o(e.children)):n.push({key:e.key,tmNode:e,striped:!1})}))}return e.forEach((e=>{n.push(e);const{children:r}=e.tmNode;r&&t.has(e.key)&&o(r)})),n}const iy=Jt({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:o,onMouseleave:r}=this;return $r("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:o,onMouseleave:r},$r("colgroup",null,n.map((e=>$r("col",{key:e.key,style:e.style})))),$r("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}});var sy=Jt({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean},setup(e){const{mergedExpandedRowKeysRef:t,mergedClsPrefixRef:n,mergedThemeRef:o,scrollXRef:r,colsRef:i,paginatedDataRef:s,rawPaginatedDataRef:a,fixedColumnLeftMapRef:l,fixedColumnRightMapRef:c,mergedCurrentPageRef:d,rowClassNameRef:u,leftActiveFixedColKeyRef:h,rightActiveFixedColKeyRef:p,renderExpandRef:f,hoverKeyRef:g,summaryRef:m,mergedSortStateRef:v,virtualScrollRef:b,componentId:y,scrollPartRef:C,mergedTableLayoutRef:w,hasChildrenRef:x,firstContentfulColIndexRef:S,indentRef:A,rowPropsRef:k,maxHeightRef:F,stripedRef:E,setHeaderScrollLeft:$,doUpdateExpandedRowKeys:_,handleTableBodyScroll:R,doCheck:B,doUncheck:T}=Ht(sb),D=bt(null),M=bt(null);let L="";const P=Et((()=>new Set(t.value)));function O(){const{value:e}=M;return null==e?void 0:e.listElRef}const z={getScrollContainer:function(){if(b.value)return O();const{value:e}=D;return e?e.containerRef:null}},I=rc([({props:e})=>rc([null===e.leftActiveFixedColKey?null:rc(`[data-n-id="${e.componentId}"] [data-col-key="${e.leftActiveFixedColKey}"]::after`,{boxShadow:"var(--box-shadow-after)"}),null===e.rightActiveFixedColKey?null:rc(`[data-n-id="${e.componentId}"] [data-col-key="${e.rightActiveFixedColKey}"]::before`,{boxShadow:"var(--box-shadow-before)"})])]);let j=!1;return wr((()=>{const{value:e}=h,{value:t}=p;(j||null!==e||null!==t)&&(I.mount({id:`n-${y}`,force:!0,props:{leftActiveFixedColKey:e,rightActiveFixedColKey:t,componentId:y}}),j=!0)})),pn((()=>{I.unmount({id:`n-${y}`})})),Object.assign({componentId:y,scrollbarInstRef:D,virtualListRef:M,summary:m,mergedClsPrefix:n,mergedTheme:o,scrollX:r,cols:i,paginatedData:Et((()=>{const{value:e}=E;return s.value.map(e?(e,t)=>({tmNode:e,key:e.key,striped:t%2==1}):e=>({tmNode:e,key:e.key,striped:!1}))})),rawPaginatedData:a,fixedColumnLeftMap:l,fixedColumnRightMap:c,currentPage:d,rowClassName:u,renderExpand:f,mergedExpandedRowKeySet:P,hoverKey:g,mergedSortState:v,virtualScroll:b,mergedTableLayout:w,hasChildren:x,firstContentfulColIndex:S,indent:A,rowProps:k,maxHeight:F,setHeaderScrollLeft:$,handleMouseenterTable:function(){C.value="body"},handleVirtualListScroll:function(e){var t;R(e),null===(t=D.value)||void 0===t||t.sync()},handleVirtualListResize:function(t){var n;const{onResize:o}=e;o&&o(t),null===(n=D.value)||void 0===n||n.sync()},handleMouseleaveTable:function(){g.value=null},virtualListContainer:O,virtualListContent:function(){const{value:e}=M;return null==e?void 0:e.itemsElRef},handleTableBodyScroll:R,handleCheckboxUpdateChecked:function(e,t,n){if(n){const n=s.value.findIndex((e=>e.key===L));if(-1!==n){const o=s.value.findIndex((t=>t.key===e.key)),r=Math.min(n,o),i=Math.max(n,o),a=[];return s.value.slice(r,i+1).forEach((e=>{e.disabled||a.push(e.key)})),t?B(a):T(a),void(L=e.key)}}t?B(e.key):T(e.key),L=e.key},handleUpdateExpanded:function(e){const{value:n}=t,o=n.indexOf(e),r=Array.from(n);~o?r.splice(o,1):r.push(e),_(r)}},z)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:o,maxHeight:r,mergedTableLayout:i,flexHeight:s,onResize:a,setHeaderScrollLeft:l}=this,c=void 0!==t||void 0!==r||s,d=!c&&"auto"===i,u=void 0!==t||d,h={minWidth:cd(t)||"100%"};return t&&(h.width="100%"),$r(Jf,{ref:"scrollbarInstRef",scrollable:c||d,class:`${n}-data-table-base-table-body`,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:h,container:o?this.virtualListContainer:void 0,content:o?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:u,onScroll:o?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:l,onResize:a},{default:()=>{const e={},t={},{cols:r,paginatedData:i,mergedTheme:s,fixedColumnLeftMap:a,fixedColumnRightMap:l,currentPage:c,rowClassName:d,mergedSortState:u,mergedExpandedRowKeySet:p,componentId:f,showHeader:g,hasChildren:m,firstContentfulColIndex:v,rowProps:b,handleMouseenterTable:y,handleMouseleaveTable:C,renderExpand:w,summary:x,handleCheckboxUpdateChecked:S,handleUpdateExpanded:A}=this,{length:k}=r;let F;const E=m?ry(i,p):i;if(x){const e=x(this.rawPaginatedData);F=Array.isArray(e)?[...E,...e.map(((e,t)=>({isSummaryRow:!0,key:`__n_summary__${t}`,tmNode:{rawNode:e,disabled:!0}})))]:[...E,{isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:e,disabled:!0}}]}else F=E;const $=m?{width:Ei(this.indent)}:void 0,_=[];F.forEach((e=>{w&&p.has(e.key)?_.push(e,{isExpandedRow:!0,key:e.key,tmNode:e.tmNode}):_.push(e)}));const{length:R}=_,B={};i.forEach((({tmNode:e},t)=>{B[t]=e.key}));const T=(o,i,h)=>{if("isExpandedRow"in o){const{tmNode:{key:e,rawNode:t}}=o;return $r("tr",{class:`${n}-data-table-tr`,key:`${e}__expand`},$r("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,i+1===R&&`${n}-data-table-td--last-row`],colspan:k},w(t,i)))}const f="isSummaryRow"in o,g=!f&&o.striped,{tmNode:y,key:C}=o,{rawNode:x}=y,F=p.has(C),E=b?b(x,i):void 0,_="string"==typeof d?d:function(e,t,n){return"function"==typeof n?n(e,t):n||""}(x,i,d);return $r("tr",Object.assign({onMouseenter:()=>{this.hoverKey=C},key:C,class:[`${n}-data-table-tr`,g&&`${n}-data-table-tr--striped`,_]},E),r.map(((r,d)=>{var p,g,b,y,w;if(!h&&i in e){const t=e[i],n=t.indexOf(d);if(~n)return t.splice(n,1),null}const{column:E}=r,_=bb(r),{rowSpan:T,colSpan:D}=E,M=f?(null===(p=o.tmNode.rawNode[_])||void 0===p?void 0:p.colSpan)||1:D?D(x,i):1,L=f?(null===(g=o.tmNode.rawNode[_])||void 0===g?void 0:g.rowSpan)||1:T?T(x,i):1,P=d+M===k,O=i+L===R,z=L>1;if(z&&(t[i]={[d]:[]}),M>1||z)for(let n=i;n<i+L;++n){z&&t[i][d].push(B[n]);for(let t=d;t<d+M;++t)n===i&&t===d||(n in e?e[n].push(t):e[n]=[t])}const I=z?this.hoverKey:null,{ellipsis:j}=E;return $r("td",{key:_,style:{textAlign:E.align||void 0,left:Ei(null===(b=a[_])||void 0===b?void 0:b.start),right:Ei(null===(y=l[_])||void 0===y?void 0:y.start)},colspan:M,rowspan:h?void 0:L,"data-col-key":_,class:[`${n}-data-table-td`,E.className,f&&`${n}-data-table-td--summary`,(null!==I&&t[i][d].includes(I)||kb(E,u))&&`${n}-data-table-td--hover`,E.fixed&&`${n}-data-table-td--fixed-${E.fixed}`,E.align&&`${n}-data-table-td--${E.align}-align`,{[`${n}-data-table-td--ellipsis`]:!0===j||j&&!j.tooltip,[`${n}-data-table-td--selection`]:"selection"===E.type,[`${n}-data-table-td--expand`]:"expand"===E.type,[`${n}-data-table-td--last-col`]:P,[`${n}-data-table-td--last-row`]:O}]},m&&d===v?[qi(f?0:o.tmNode.level,$r("div",{class:`${n}-data-table-indent`,style:$})),f||!o.tmNode.children?$r("div",{class:`${n}-data-table-expand-placeholder`}):$r(ny,{class:`${n}-data-table-expand-trigger`,clsPrefix:n,expanded:F,onClick:()=>{A(C)}})]:null,"selection"===E.type?f?null:$r(oy,{key:c,rowKey:C,disabled:o.tmNode.disabled,onUpdateChecked:(e,t)=>S(o.tmNode,e,t.shiftKey)}):"expand"===E.type?f?null:!E.expandable||(null===(w=E.expandable)||void 0===w?void 0:w.call(E,x,i))?$r(ny,{clsPrefix:n,expanded:F,onClick:()=>A(C)}):null:$r(ty,{index:i,row:x,column:E,isSummary:f,mergedTheme:s}))})))};return o?$r(Nh,{ref:"virtualListRef",items:_,itemSize:28,visibleItemsTag:iy,visibleItemsProps:{clsPrefix:n,id:f,cols:r,onMouseenter:y,onMouseleave:C},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:h,itemResizable:!0},{default:({item:e,index:t})=>T(e,t,!0)}):$r("table",{class:`${n}-data-table-table`,onMouseleave:C,onMouseenter:y,style:{tableLayout:this.mergedTableLayout}},$r("colgroup",null,r.map((e=>$r("col",{key:e.key,style:e.style})))),g?$r(ey,{discrete:!1}):null,$r("tbody",{"data-n-id":f,class:`${n}-data-table-tbody`},_.map(((e,t)=>T(e,t,!1)))))}})}}),ay=Jt({setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:o,maxHeightRef:r,minHeightRef:i,flexHeightRef:s,syncScrollState:a}=Ht(sb),l=bt(null),c=bt(null),d=bt(null),u=bt(!(n.value.length||t.value.length)),h=Et((()=>({maxHeight:cd(r.value),minHeight:cd(i.value)})));const p={getBodyElement:function(){const{value:e}=c;return e?e.getScrollContainer():null},getHeaderElement:function(){const{value:e}=l;return e?e.$el:null}};return wr((()=>{const{value:t}=d;if(!t)return;const n=`${e.value}-data-table-base-table--transition-disabled`;u.value?setTimeout((()=>{t.classList.remove(n)}),0):t.classList.add(n)})),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:d,headerInstRef:l,bodyInstRef:c,bodyStyle:h,flexHeight:s,handleBodyResize:function(e){o.value=e.contentRect.width,a(),u.value||(u.value=!0)}},p)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,o=void 0===t&&!n;return $r("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},o?null:$r(ey,{ref:"headerInstRef"}),$r(sy,{ref:"bodyInstRef",style:this.bodyStyle,showHeader:o,flexHeight:n,onResize:this.handleBodyResize}),Mo(this.$slots,"default"))}});function ly(e){return"object"==typeof e&&"number"==typeof e.multiple&&e.multiple}function cy(e,{dataRelatedColsRef:t,filteredDataRef:n}){const o=[];t.value.forEach((e=>{var t;void 0!==e.sorter&&c(o,{columnKey:e.key,sorter:e.sorter,order:null!==(t=e.defaultSortOrder)&&void 0!==t&&t})}));const r=bt(o),i=Et((()=>{const e=t.value.filter((e=>"selection"!==e.type&&void 0!==e.sorter&&("ascend"===e.sortOrder||"descend"===e.sortOrder||!1===e.sortOrder))),n=e.filter((e=>!1!==e.sortOrder));if(n.length)return n.map((e=>({columnKey:e.key,order:e.sortOrder,sorter:e.sorter})));if(e.length)return[];const{value:o}=r;return Array.isArray(o)?o:o?[o]:[]}));function s(e){a(function(e){let t=i.value.slice();return e&&!1!==ly(e.sorter)?(t=t.filter((e=>!1!==ly(e.sorter))),c(t,e),t):e||null}(e))}function a(t){const{"onUpdate:sorter":n,onUpdateSorter:o,onSorterChange:i}=e;n&&Qc(n,t),o&&Qc(o,t),i&&Qc(i,t),r.value=t}function l(){a(null)}function c(e,t){const n=e.findIndex((e=>(null==t?void 0:t.columnKey)&&e.columnKey===t.columnKey));void 0!==n&&n>=0?e[n]=t:e.push(t)}return{clearSorter:l,sort:function(e,n="ascend"){if(e){const o=t.value.find((t=>"selection"!==t.type&&"expand"!==t.type&&t.key===e));if(!o||!o.sorter)return;const r=o.sorter;s({columnKey:e,sorter:r,order:n})}else l()},sortedDataRef:Et((()=>{const e=i.value.slice().sort(((e,t)=>{const n=ly(e.sorter)||0;return(ly(t.sorter)||0)-n}));if(e.length){return n.value.slice().sort(((t,n)=>{let o=0;return e.some((e=>{const{columnKey:r,sorter:i,order:s}=e,a=function(e,t){return t&&(void 0===e||"default"===e||"object"==typeof e&&"default"===e.compare)?function(e){return(t,n)=>{const o=t[e],r=n[e];return"number"==typeof o&&"number"==typeof r?o-r:"string"==typeof o&&"string"==typeof r?o.localeCompare(r):0}}(t):"function"==typeof e?e:!(!e||"object"!=typeof e||!e.compare||"default"===e.compare)&&e.compare}(i,r);return!(!a||!s||(o=a(t.rawNode,n.rawNode),0===o))&&(o*=function(e){return"ascend"===e?1:"descend"===e?-1:0}(s),!0)})),o}))}return n.value})),mergedSortStateRef:i,deriveNextSorter:s}}function dy(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:o,scrollPartRef:r}){let i=0;const s=bt(null),a=bt(null),l=Et((()=>cd(e.scrollX))),c=Et((()=>e.columns.filter((e=>"left"===e.fixed)))),d=Et((()=>e.columns.filter((e=>"right"===e.fixed)))),u=Et((()=>{const e={};let t=0;return function n(o){o.forEach((o=>{const r={start:t,end:0};e[bb(o)]=r,"children"in o?(n(o.children),r.end=t):(t+=vb(o)||0,r.end=t)}))}(c.value),e})),h=Et((()=>{const e={};let t=0;return function n(o){o.forEach((o=>{const r={start:t,end:0};e[bb(o)]=r,"children"in o?(n(o.children),r.end=t):(t+=vb(o)||0,r.end=t)}))}(d.value.reverse()),e}));function p(){return{header:t.value?t.value.getHeaderElement():null,body:t.value?t.value.getBodyElement():null}}function f(){const{header:t,body:n}=p();if(!n)return;const{value:l}=o;if(null===l)return;const{value:f}=r;if(e.maxHeight||e.flexHeight){if(!t)return;"head"===f?(i=t.scrollLeft,n.scrollLeft=i):(i=n.scrollLeft,t.scrollLeft=i)}else i=n.scrollLeft;!function(){var e,t;const{value:n}=c;let o=0;const{value:r}=u;let a=null;for(let s=0;s<n.length;++s){const l=bb(n[s]);if(!(i>((null===(e=r[l])||void 0===e?void 0:e.start)||0)-o))break;a=l,o=(null===(t=r[l])||void 0===t?void 0:t.end)||0}s.value=a}(),function(){var t,n;const{value:r}=d,s=Number(e.scrollX),{value:l}=o;if(null===l)return;let c=0,u=null;const{value:p}=h;for(let e=0;e<r.length;++e){const o=bb(r[e]);if(!(Math.round(i+((null===(t=p[o])||void 0===t?void 0:t.start)||0)+l-c)<s))break;u=o,c=(null===(n=p[o])||void 0===n?void 0:n.end)||0}a.value=u}()}return Sr(n,(()=>{!function(){const{body:e}=p();e&&(e.scrollTop=0)}()})),{styleScrollXRef:l,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:h,leftFixedColumnsRef:c,rightFixedColumnsRef:d,leftActiveFixedColKeyRef:s,rightActiveFixedColKeyRef:a,syncScrollState:f,handleTableBodyScroll:function(){"body"===r.value&&xi(f)},handleTableHeaderScroll:function(){"head"===r.value&&xi(f)},setHeaderScrollLeft:function(e){const{header:t}=p();t&&(t.scrollLeft=e,f())}}}const uy=[lc("fixed-left","\n left: 0;\n position: sticky;\n z-index: 2;\n ",[rc("&::after",'\n pointer-events: none;\n content: "";\n width: 36px;\n display: inline-block;\n position: absolute;\n top: 0;\n bottom: -1px;\n transition: box-shadow .2s var(--bezier);\n right: -36px;\n ')]),lc("fixed-right",{right:0,position:"sticky",zIndex:1},[rc("&::before",'\n pointer-events: none;\n content: "";\n width: 36px;\n display: inline-block;\n position: absolute;\n top: 0;\n bottom: -1px;\n transition: box-shadow .2s var(--bezier);\n left: -36px;\n ')])];var hy=rc([sc("data-table","\n width: 100%;\n font-size: var(--font-size);\n display: flex;\n flex-direction: column;\n position: relative;\n --merged-th-color: var(--th-color);\n --merged-td-color: var(--td-color);\n --merged-border-color: var(--border-color);\n --merged-th-color-hover: var(--th-color-hover);\n --merged-td-color-hover: var(--td-color-hover);\n --merged-td-color-striped: var(--td-color-striped);\n ",[lc("flex-height",[rc(">",[sc("data-table-wrapper","\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n ",[rc(">",[sc("data-table-base-table","\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n ",[rc(">",[sc("data-table-base-table-body","flex-basis: 0;",[rc("&:last-child","flex-grow: 1;")])])])])])])]),rc(">",[sc("base-loading","\n color: var(--loading-color);\n font-size: var(--loading-size);\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n transition: color .3s var(--bezier);\n ",[ig({originalTransform:"translateX(-50%) translateY(-50%)"})])]),sc("data-table-expand-trigger","cursor: pointer;"),sc("data-table-expand-placeholder","\n margin-right: 8px;\n display: inline-block;\n width: 16px;\n height: 1px;\n "),sc("data-table-indent","\n display: inline-block;\n height: 1px;\n "),sc("data-table-expand-trigger","\n margin-right: 8px;\n cursor: pointer;\n font-size: 16px;\n vertical-align: -0.2em;\n "),sc("data-table-thead",{transition:"background-color .3s var(--bezier)",backgroundColor:"var(--merged-th-color)"}),sc("data-table-tr","\n box-sizing: border-box;\n background-clip: padding-box;\n transition: background-color .3s var(--bezier);\n ",[lc("striped","background-color: var(--merged-td-color-striped);",[sc("data-table-td","background-color: var(--merged-td-color-striped);")]),rc("&:hover","background-color: var(--merged-td-color-hover);",[sc("data-table-td","background-color: var(--merged-td-color-hover);")])]),sc("data-table-th","\n padding: var(--th-padding);\n position: relative;\n text-align: start;\n box-sizing: border-box;\n background-color: var(--merged-th-color);\n border-color: var(--merged-border-color);\n border-bottom: 1px solid var(--merged-border-color);\n color: var(--th-text-color);\n transition:\n border-color .3s var(--bezier),\n color .3s var(--bezier),\n background-color .3s var(--bezier);\n font-weight: var(--th-font-weight);\n ",[lc("filterable",{paddingRight:"36px"}),uy,lc("selection","\n padding: 0;\n text-align: center;\n line-height: 0;\n z-index: 3;\n "),ac("ellipsis","\n display: inline-block;\n vertical-align: bottom;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n max-width: 100%;\n "),lc("hover",{backgroundColor:"var(--merged-th-color-hover)"}),lc("sortable",{cursor:"pointer"},[ac("ellipsis",{maxWidth:"calc(100% - 18px)"}),rc("&:hover",{backgroundColor:"var(--merged-th-color-hover)"})]),sc("data-table-sorter","\n height: var(--sorter-size);\n width: var(--sorter-size);\n margin-left: 4px;\n position: relative;\n display: inline-flex;\n vertical-align: -0.2em;\n color: var(--th-icon-color);\n transition: \n transform .3s var(--bezier),\n color .3s var(--bezier);\n ",[lc("desc",{transform:"rotate(0)"}),lc("asc",{transform:"rotate(-180deg)"}),lc("asc, desc",{color:"var(--th-icon-color-active)"})]),sc("data-table-filter","\n position: absolute;\n z-index: auto;\n right: 0;\n width: 36px;\n top: 0;\n bottom: 0;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n transition:\n background-color .3s var(--bezier),\n color .3s var(--bezier);\n font-size: var(--filter-size);\n color: var(--th-icon-color);\n ",[rc("&:hover","\n background-color: var(--th-button-color-hover);\n "),lc("show","\n background-color: var(--th-button-color-hover);\n "),lc("active","\n background-color: var(--th-button-color-hover);\n color: var(--th-icon-color-active);\n ")])]),sc("data-table-td","\n padding: var(--td-padding);\n text-align: start;\n box-sizing: border-box;\n border: none;\n background-color: var(--merged-td-color);\n color: var(--td-text-color);\n border-bottom: 1px solid var(--merged-border-color);\n transition:\n box-shadow .3s var(--bezier),\n background-color .3s var(--bezier),\n border-color .3s var(--bezier),\n color .3s var(--bezier);\n ",[lc("last-row",{borderBottom:"0 solid var(--merged-border-color)"},[rc("&::after",{bottom:"0 !important"}),rc("&::before",{bottom:"0 !important"})]),lc("summary","\n background-color: var(--merged-th-color);\n "),lc("hover",{backgroundColor:"var(--merged-td-color-hover)"}),lc("ellipsis","\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n "),lc("selection, expand","\n text-align: center;\n padding: 0;\n line-height: 0;\n "),uy]),sc("data-table-empty","\n padding: var(--empty-padding);\n flex-grow: 1;\n flex-shrink: 0;\n opacity: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: opacity .3s var(--bezier);\n ",[lc("hide",{opacity:0})]),ac("pagination","\n margin: var(--pagination-margin);\n display: flex;\n justify-content: flex-end;\n "),sc("data-table-wrapper","\n position: relative;\n opacity: 1;\n transition: opacity .3s var(--bezier), border-color .3s var(--bezier);\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n line-height: var(--line-height);\n "),lc("loading",[sc("data-table-wrapper","opacity: var(--opacity-loading);")]),lc("single-column",[sc("data-table-td",{borderBottom:"0 solid var(--merged-border-color)"},[rc("&::after, &::before",{bottom:"0 !important"})])]),cc("single-line",[sc("data-table-th",{borderRight:"1px solid var(--merged-border-color)"},[lc("last",{borderRight:"0 solid var(--merged-border-color)"})]),sc("data-table-td",{borderRight:"1px solid var(--merged-border-color)"},[lc("last-col",{borderRight:"0 solid var(--merged-border-color)"})])]),lc("bordered",[sc("data-table-wrapper","\n border: 1px solid var(--merged-border-color);\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n overflow: hidden;\n ")]),sc("data-table-base-table",[lc("transition-disabled",[sc("data-table-th",[rc("&::after, &::before",{transition:"none"})]),sc("data-table-td",[rc("&::after, &::before",{transition:"none"})])])]),lc("bottom-bordered",[sc("data-table-td",[lc("last-row",{borderBottom:"1px solid var(--merged-border-color)"})])]),sc("data-table-table","\n font-variant-numeric: tabular-nums;\n width: 100%;\n word-wrap: break-word;\n word-break: break-all;\n transition: background-color .3s var(--bezier);\n border-collapse: separate;\n border-spacing: 0;\n background-color: var(--merged-td-color);\n "),sc("data-table-base-table-header","\n border-top-left-radius: calc(var(--border-radius) - 1px);\n border-top-right-radius: calc(var(--border-radius) - 1px);\n z-index: 3;\n overflow: scroll;\n flex-shrink: 0;\n transition: border-color .3s var(--bezier);\n scrollbar-width: none;\n ",[rc("&::-webkit-scrollbar",{width:0,height:0})]),sc("data-table-check-extra","\n transition: color .3s var(--bezier);\n color: var(--th-icon-color);\n position: absolute;\n font-size: 14px;\n right: -4px;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n ")]),sc("data-table-filter-menu",[sc("scrollbar",{maxHeight:"240px"}),ac("group",{display:"flex",flexDirection:"column",padding:"12px 12px 0 12px"},[sc("checkbox",{marginBottom:"12px",marginRight:0}),sc("radio",{marginBottom:"12px",marginRight:0})]),ac("action","\n padding: var(--action-padding);\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-evenly;\n border-top: 1px solid var(--action-divider-color);\n ",[sc("button",[rc("&:not(:last-child)",{margin:"var(--action-button-margin)"}),rc("&:last-child",{marginRight:0})])]),sc("divider",{margin:"0!important"})]),uc(sc("data-table","\n --merged-th-color: var(--th-color-modal);\n --merged-td-color: var(--td-color-modal);\n --merged-border-color: var(--border-color-modal);\n --merged-th-color-hover: var(--th-color-hover-modal);\n --merged-td-color-hover: var(--td-color-hover-modal);\n --merged-td-color-striped: var(--td-color-striped-modal);\n ")),hc(sc("data-table","\n --merged-th-color: var(--th-color-popover);\n --merged-td-color: var(--td-color-popover);\n --merged-border-color: var(--border-color-popover);\n --merged-th-color-hover: var(--th-color-hover-popover);\n --merged-td-color-hover: var(--td-color-hover-popover);\n --merged-td-color-striped: var(--td-color-striped-popover);\n "))]);function py(e){const t=Et((()=>function(e){const t=[],n=[],o=[],r=new WeakMap;let i=-1,s=0,a=!1;!function e(r,l){l>i&&(t[l]=[],i=l);for(const t of r)"children"in t?e(t.children,l+1):(n.push({key:bb(t),style:Cb(t),column:t}),s+=1,a||(a=!!t.ellipsis),o.push(t))}(e,0);let l=0;return function e(n,o){let a=0;n.forEach(((n,c)=>{var d;if("children"in n){const i=l,a={column:n,colSpan:0,rowSpan:1,isLast:!1};e(n.children,o+1),n.children.forEach((e=>{var t,n;a.colSpan+=null!==(n=null===(t=r.get(e))||void 0===t?void 0:t.colSpan)&&void 0!==n?n:0})),i+a.colSpan===s&&(a.isLast=!0),r.set(n,a),t[o].push(a)}else{if(l<a)return void(l+=1);let e=1;"titleColSpan"in n&&(e=null!==(d=n.titleColSpan)&&void 0!==d?d:1),e>1&&(a=l+e);const c={column:n,colSpan:e,rowSpan:i-o+1,isLast:l+e===s};r.set(n,c),t[o].push(c),l+=1}}))}(e,0),{hasEllipsis:a,rows:t,cols:n,dataRelatedCols:o}}(e.columns)));return{rowsRef:Et((()=>t.value.rows)),colsRef:Et((()=>t.value.cols)),hasEllipsisRef:Et((()=>t.value.hasEllipsis)),dataRelatedColsRef:Et((()=>t.value.dataRelatedCols))}}var fy=Jt({name:"DataTable",alias:["AdvancedTable"],props:Object.assign(Object.assign({},wd.props),{pagination:{type:[Object,Boolean],default:!1},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},expandedRowKeys:Array,virtualScroll:Boolean,tableLayout:{type:String,default:"auto"},cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onPageChange:{type:[Function,Array],validator:()=>!0,default:void 0},onPageSizeChange:{type:[Function,Array],validator:()=>!0,default:void 0},onSorterChange:{type:[Function,Array],validator:()=>!0,default:void 0},onFiltersChange:{type:[Function,Array],validator:()=>!0,default:void 0},onCheckedRowKeysChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n}=Sd(e),o=Et((()=>{const{bottomBordered:n}=e;return!t.value&&(void 0===n||n)})),r=wd("DataTable","DataTable",hy,Jv,e,n),i=bt(null),s=bt("body"),a=bt(null),{rowsRef:l,colsRef:c,dataRelatedColsRef:d,hasEllipsisRef:u}=py(e),{treeMateRef:h,mergedCurrentPageRef:p,paginatedDataRef:f,rawPaginatedDataRef:g,selectionColumnRef:m,hoverKeyRef:v,mergedPaginationRef:b,mergedFilterStateRef:y,mergedSortStateRef:C,firstContentfulColIndexRef:w,doUpdateFilters:x,deriveNextSorter:S,filter:A,filters:k,clearFilter:F,clearFilters:E,clearSorter:$,page:_,sort:R}=function(e,{dataRelatedColsRef:t}){const n=Et((()=>e.columns.find((e=>"selection"===e.type))||null)),o=Et((()=>{const{childrenKey:t}=e;return ju(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:e=>e[t],getDisabled:e=>{var t,o;return!!(null===(o=null===(t=n.value)||void 0===t?void 0:t.disabled)||void 0===o?void 0:o.call(t,e))}})})),r=wc((()=>{const{columns:t}=e,{length:n}=t;for(let e=0;e<n;++e)if(!t[e].type)return e;return 0})),i=bt({}),s=bt(1),a=bt(10),l=Et((()=>{const e=t.value.filter((e=>void 0!==e.filterOptionValues||void 0!==e.filterOptionValue)),n={};return e.forEach((e=>{"selection"!==e.type&&"expand"!==e.type&&(n[e.key]=e.filterOptionValues||e.filterOptionValue||null)})),Object.assign(yb(i.value),n)})),c=Et((()=>{const t=l.value,{columns:n}=e;function r(e){return(t,n)=>!!~String(n[e]).indexOf(String(t))}const{value:{treeNodes:i}}=o,s=[];return n.forEach((e=>{"selection"===e.type||"expand"===e.type||"children"in e||s.push([e.key,e])})),i?i.filter((e=>{const{rawNode:n}=e;for(const[o,i]of s){let e=t[o];if(null==e)continue;if(Array.isArray(e)||(e=[e]),!e.length)continue;const s="default"===i.filter?r(o):i.filter;if(i&&"function"==typeof s){if("and"!==i.filterMode){if(e.some((e=>s(e,n))))continue;return!1}if(e.some((e=>!s(e,n))))return!1}}return!0})):[]})),{sortedDataRef:d,deriveNextSorter:u,mergedSortStateRef:h,sort:p,clearSorter:f}=cy(e,{dataRelatedColsRef:t,filteredDataRef:c});t.value.forEach((e=>{var t;if(e.filter){const n=e.defaultFilterOptionValues;e.filterMultiple?i.value[e.key]=n||[]:i.value[e.key]=void 0!==n?null===n?[]:n:null!==(t=e.defaultFilterOptionValue)&&void 0!==t?t:null}}));const g=Et((()=>{const{pagination:t}=e;if(!1!==t)return t.page})),m=Et((()=>{const{pagination:t}=e;if(!1!==t)return t.pageSize})),v=Wc(g,s),b=Wc(m,a),y=Et((()=>{const{pagination:t}=e;if(t){const{pageCount:e}=t;if(void 0!==e)return e}})),C=Et((()=>{if(e.remote)return o.value.treeNodes;if(!e.pagination)return d.value;const t=b.value,n=(v.value-1)*t;return d.value.slice(n,n+t)})),w=Et((()=>C.value.map((e=>e.rawNode))));function x(t){const{pagination:n}=e;if(n){const{onChange:e,"onUpdate:page":o,onUpdatePage:r}=n;e&&Qc(e,t),r&&Qc(r,t),o&&Qc(o,t),F(t)}}function S(t){const{pagination:n}=e;if(n){const{onPageSizeChange:e,"onUpdate:pageSize":o}=n;e&&Qc(e,t),o&&Qc(o,t),E(t)}}const A=Et((()=>{if(!e.remote)return c.value.length;{const{pagination:t}=e;if(t){const{itemCount:e}=t;if(void 0!==e)return e}}})),k=Et((()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":x,"onUpdate:pageSize":S,page:v.value,pageSize:b.value,pageCount:void 0===A.value?y.value:void 0,itemCount:A.value})));function F(t){const{"onUpdate:page":n,onPageChange:o,onUpdatePage:r}=e;r&&Qc(r,t),n&&Qc(n,t),o&&Qc(o,t),s.value=t}function E(t){const{"onUpdate:pageSize":n,onPageSizeChange:o,onUpdatePageSize:r}=e;o&&Qc(o,t),r&&Qc(r,t),n&&Qc(n,t),a.value=t}function $(t,n){const{onUpdateFilters:o,"onUpdate:filters":r,onFiltersChange:s}=e;o&&Qc(o,t,n),r&&Qc(r,t,n),s&&Qc(s,t,n),i.value=t}function _(){R({})}function R(e){B(e)}function B(e){e?e&&$(yb(e)):$({})}return{treeMateRef:o,mergedCurrentPageRef:v,mergedPaginationRef:k,paginatedDataRef:C,rawPaginatedDataRef:w,mergedFilterStateRef:l,mergedSortStateRef:h,hoverKeyRef:bt(null),selectionColumnRef:n,firstContentfulColIndexRef:r,doUpdateFilters:$,deriveNextSorter:u,doUpdatePageSize:E,doUpdatePage:F,filter:B,filters:R,clearFilter:function(){_()},clearFilters:_,clearSorter:f,page:function(e){F(e)},sort:p}}(e,{dataRelatedColsRef:d}),{doCheckAll:B,doUncheckAll:T,doCheck:D,doUncheck:M,headerCheckboxDisabledRef:L,someRowsCheckedRef:P,allRowsCheckedRef:O,mergedCheckedRowKeySetRef:z,mergedInderminateRowKeySetRef:I}=function(e,t){const{paginatedDataRef:n,treeMateRef:o,selectionColumnRef:r}=t,i=bt(e.defaultCheckedRowKeys),s=Et((()=>{const{checkedRowKeys:t}=e;return o.value.getCheckedKeys(void 0===t?i.value:t,{cascade:e.cascade})})),a=Et((()=>s.value.checkedKeys)),l=Et((()=>s.value.indeterminateKeys)),c=Et((()=>new Set(a.value))),d=Et((()=>new Set(l.value))),u=Et((()=>{const{value:e}=c;return n.value.reduce(((t,n)=>{const{key:o,disabled:r}=n;return t+(!r&&e.has(o)?1:0)}),0)})),h=Et((()=>n.value.filter((e=>e.disabled)).length)),p=Et((()=>{const{length:e}=n.value,{value:t}=d;return u.value>0&&u.value<e-h.value||n.value.some((e=>t.has(e.key)))})),f=Et((()=>{const{length:e}=n.value;return 0!==u.value&&u.value===e-h.value})),g=Et((()=>0===n.value.length));function m(t){const{"onUpdate:checkedRowKeys":n,onUpdateCheckedRowKeys:o,onCheckedRowKeysChange:r}=e;n&&Qc(n,t),o&&Qc(o,t),r&&Qc(r,t),i.value=t}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:a,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:p,allRowsCheckedRef:f,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:m,doCheckAll:function(e=!1){const{value:t}=r;if(!t)return;const i=[];(e?o.value.treeNodes:n.value).forEach((e=>{e.disabled||i.push(e.key)})),m(o.value.check(i,a.value,{cascade:!0}).checkedKeys)},doUncheckAll:function(e=!1){const{value:t}=r;if(!t)return;const i=[];(e?o.value.treeNodes:n.value).forEach((e=>{e.disabled||i.push(e.key)})),m(o.value.uncheck(i,a.value,{cascade:!0}).checkedKeys)},doCheck:function(t){m(o.value.check(t,a.value,{cascade:e.cascade}).checkedKeys)},doUncheck:function(t){m(o.value.uncheck(t,a.value,{cascade:e.cascade}).checkedKeys)}}}(e,{selectionColumnRef:m,treeMateRef:h,paginatedDataRef:f}),{mergedExpandedRowKeysRef:j,renderExpandRef:N,doUpdateExpandedRowKeys:H}=function(e){const t=wc((()=>{for(const t of e.columns)if("expand"===t.type)return t.renderExpand})),n=bt(e.defaultExpandedRowKeys);return{mergedExpandedRowKeysRef:Wc(kt(e,"expandedRowKeys"),n),renderExpandRef:t,doUpdateExpandedRowKeys:function(t){const{onUpdateExpandedRowKeys:o,"onUpdate:expandedRowKeys":r}=e;o&&Qc(o,t),r&&Qc(r,t),n.value=t}}}(e),{handleTableBodyScroll:W,handleTableHeaderScroll:V,syncScrollState:U,setHeaderScrollLeft:K,leftActiveFixedColKeyRef:G,rightActiveFixedColKeyRef:Y,leftFixedColumnsRef:q,rightFixedColumnsRef:X,fixedColumnLeftMapRef:Z,fixedColumnRightMapRef:J}=dy(e,{scrollPartRef:s,bodyWidthRef:i,mainTableInstRef:a,mergedCurrentPageRef:p}),{localeRef:Q}=Pd("DataTable"),ee=Et((()=>e.virtualScroll||e.flexHeight||void 0!==e.maxHeight||u.value?"fixed":e.tableLayout));Nt(sb,{indentRef:kt(e,"indent"),firstContentfulColIndexRef:w,bodyWidthRef:i,componentId:Yi(),hoverKeyRef:v,mergedClsPrefixRef:n,mergedThemeRef:r,scrollXRef:Et((()=>e.scrollX)),rowsRef:l,colsRef:c,paginatedDataRef:f,leftActiveFixedColKeyRef:G,rightActiveFixedColKeyRef:Y,leftFixedColumnsRef:q,rightFixedColumnsRef:X,fixedColumnLeftMapRef:Z,fixedColumnRightMapRef:J,mergedCurrentPageRef:p,someRowsCheckedRef:P,allRowsCheckedRef:O,mergedSortStateRef:C,mergedFilterStateRef:y,loadingRef:kt(e,"loading"),rowClassNameRef:kt(e,"rowClassName"),mergedCheckedRowKeySetRef:z,mergedExpandedRowKeysRef:j,mergedInderminateRowKeySetRef:I,localeRef:Q,scrollPartRef:s,rowKeyRef:kt(e,"rowKey"),renderExpandRef:N,summaryRef:kt(e,"summary"),virtualScrollRef:kt(e,"virtualScroll"),rowPropsRef:kt(e,"rowProps"),stripedRef:kt(e,"striped"),checkOptionsRef:Et((()=>{const{value:e}=m;return null==e?void 0:e.options})),rawPaginatedDataRef:g,hasChildrenRef:Et((()=>h.value.maxLevel>0)),filterMenuCssVarsRef:Et((()=>{const{self:{actionDividerColor:e,actionPadding:t,actionButtonMargin:n}}=r.value;return{"--action-padding":t,"--action-button-margin":n,"--action-divider-color":e}})),mergedTableLayoutRef:ee,maxHeightRef:kt(e,"maxHeight"),minHeightRef:kt(e,"minHeight"),flexHeightRef:kt(e,"flexHeight"),headerCheckboxDisabledRef:L,syncScrollState:U,doUpdateFilters:x,deriveNextSorter:S,doCheck:D,doUncheck:M,doCheckAll:B,doUncheckAll:T,doUpdateExpandedRowKeys:H,handleTableHeaderScroll:V,handleTableBodyScroll:W,setHeaderScrollLeft:K});const te={filter:A,filters:k,clearFilters:E,clearSorter:$,page:_,sort:R,clearFilter:F};return Object.assign(Object.assign({mainTableInstRef:a,mergedClsPrefix:n,mergedTheme:r,paginatedData:f,mergedBordered:t,mergedBottomBordered:o,mergedPagination:b},te),{cssVars:Et((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{borderColor:o,tdColorHover:i,thColor:s,thColorHover:a,tdColor:l,tdTextColor:c,thTextColor:d,thFontWeight:u,thButtonColorHover:h,thIconColor:p,thIconColorActive:f,filterSize:g,borderRadius:m,lineHeight:v,tdColorModal:b,thColorModal:y,borderColorModal:C,thColorHoverModal:w,tdColorHoverModal:x,borderColorPopover:S,thColorPopover:A,tdColorPopover:k,tdColorHoverPopover:F,thColorHoverPopover:E,paginationMargin:$,emptyPadding:_,boxShadowAfter:R,boxShadowBefore:B,sorterSize:T,loadingColor:D,loadingSize:M,opacityLoading:L,tdColorStriped:P,tdColorStripedModal:O,tdColorStripedPopover:z,[tc("fontSize",t)]:I,[tc("thPadding",t)]:j,[tc("tdPadding",t)]:N}}=r.value;return{"--font-size":I,"--th-padding":j,"--td-padding":N,"--bezier":n,"--border-radius":m,"--line-height":v,"--border-color":o,"--border-color-modal":C,"--border-color-popover":S,"--th-color":s,"--th-color-hover":a,"--th-color-modal":y,"--th-color-hover-modal":w,"--th-color-popover":A,"--th-color-hover-popover":E,"--td-color":l,"--td-color-hover":i,"--td-color-modal":b,"--td-color-hover-modal":x,"--td-color-popover":k,"--td-color-hover-popover":F,"--th-text-color":d,"--td-text-color":c,"--th-font-weight":u,"--th-button-color-hover":h,"--th-icon-color":p,"--th-icon-color-active":f,"--filter-size":g,"--pagination-margin":$,"--empty-padding":_,"--box-shadow-before":B,"--box-shadow-after":R,"--sorter-size":T,"--loading-size":M,"--loading-color":D,"--opacity-loading":L,"--td-color-striped":P,"--td-color-striped-modal":O,"--td-color-striped-popover":z}}))})},render(){const{mergedClsPrefix:e}=this;return $r("div",{class:[`${e}-data-table`,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},$r("div",{class:`${e}-data-table-wrapper`},$r(ay,{ref:"mainTableInstRef"},{default:()=>0===this.paginatedData.length?$r("div",{class:[`${e}-data-table-empty`,this.loading&&`${e}-data-table-empty--hide`]},Mo(this.$slots,"empty",void 0,(()=>[$r(Uf,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))):null})),this.pagination?$r("div",{class:`${e}-data-table__pagination`},$r(Nv,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,$r(Kr,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?$r(vu,{clsPrefix:e,strokeWidth:20}):null}))}}),gy={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};var my={name:"TimePicker",common:Gp,peers:{Scrollbar:Yf,Button:Nm,Input:am},self:e=>{const{popoverColor:t,textColor2:n,primaryColor:o,hoverColor:r,dividerColor:i,opacityDisabled:s,boxShadow2:a,borderRadius:l,iconColor:c,iconColorDisabled:d}=e;return Object.assign(Object.assign({},gy),{panelColor:t,panelBoxShadow:a,panelDividerColor:i,itemTextColor:n,itemTextColorActive:o,itemColorHover:r,itemOpacityDisabled:s,itemBorderRadius:l,borderRadius:l,iconColor:c,iconColorDisabled:d})}},vy={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0"};var by={name:"DatePicker",common:Gp,peers:{Input:am,Button:Nm,TimePicker:my,Scrollbar:Yf},self(e){const{popoverColor:t,hoverColor:n,primaryColor:o}=e,r=(e=>{const{hoverColor:t,fontSize:n,textColor2:o,textColorDisabled:r,popoverColor:i,primaryColor:s,borderRadiusSmall:a,iconColor:l,iconColorDisabled:c,textColor1:d,dividerColor:u,boxShadow2:h,borderRadius:p,fontWeightStrong:f}=e;return Object.assign(Object.assign({},vy),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:o,itemTextColorDisabled:r,itemTextColorActive:i,itemTextColorCurrent:s,itemColorIncluded:Vi(s,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:s,itemBorderRadius:a,panelColor:i,panelTextColor:o,arrowColor:l,calendarTitleTextColor:d,calendarDaysTextColor:o,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:h,panelBorderRadius:p,calendarTitleFontWeight:f,scrollItemBorderRadius:p,iconColor:l,iconColorDisabled:c})})(e);return r.itemColorDisabled=Wi(t,n),r.itemColorIncluded=Vi(o,{alpha:.15}),r.itemColorHover=Wi(t,n),r}},yy={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};var Cy={name:"Descriptions",common:Gp,self:e=>{const{tableHeaderColor:t,textColor1:n,textColor2:o,cardColor:r,modalColor:i,popoverColor:s,dividerColor:a,borderRadius:l,fontWeightStrong:c,lineHeight:d,fontSizeSmall:u,fontSizeMedium:h,fontSizeLarge:p}=e;return Object.assign(Object.assign({},yy),{lineHeight:d,fontSizeSmall:u,fontSizeMedium:h,fontSizeLarge:p,thColor:Wi(r,t),thColorModal:Wi(i,t),thColorPopover:Wi(s,t),thTextColor:n,thFontWeight:c,tdTextColor:o,tdColor:r,tdColorModal:i,tdColorPopover:s,borderColor:Wi(r,a),borderColorModal:Wi(i,a),borderColorPopover:Wi(s,a),borderRadius:l})}},wy={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"18px",closeMargin:"22px 28px 0 0",closeMarginIconTop:"12px 18px 0 0"};const xy=e=>{const{textColor1:t,textColor2:n,modalColor:o,closeColor:r,closeColorHover:i,closeColorPressed:s,infoColor:a,successColor:l,warningColor:c,errorColor:d,primaryColor:u,dividerColor:h,borderRadius:p,fontWeightStrong:f,lineHeight:g,fontSize:m}=e;return Object.assign(Object.assign({},wy),{fontSize:m,lineHeight:g,border:`1px solid ${h}`,titleTextColor:t,textColor:n,color:o,closeColor:r,closeColorHover:i,closeColorPressed:s,iconColor:u,iconColorInfo:a,iconColorSuccess:l,iconColorWarning:c,iconColorError:d,borderRadius:p,titleFontWeight:f})};var Sy={name:"Dialog",common:If,peers:{Button:jm},self:xy};var Ay={name:"Dialog",common:Gp,peers:{Button:Nm},self:xy},ky=rc([sc("dialog","\n line-height: var(--line-height);\n position: relative;\n background: var(--color);\n color: var(--text-color);\n box-sizing: border-box;\n margin: auto;\n border-radius: var(--border-radius);\n padding: var(--padding);\n transition: \n border-color .3s var(--bezier),\n background-color .3s var(--bezier),\n color .3s var(--bezier);\n ",[ac("icon",{color:"var(--icon-color)"}),lc("bordered",{border:"var(--border)"}),lc("icon-top",[ac("close",{margin:"var(--close-margin)"}),ac("icon",{margin:"var(--icon-margin)"}),ac("content",{textAlign:"center"}),ac("title",{justifyContent:"center"}),ac("action",{justifyContent:"center"})]),lc("icon-left",[ac("icon",{margin:"var(--icon-margin)"})]),ac("close","\n font-size: var(--close-size);\n position: absolute;\n right: 0;\n top: 0;\n margin: var(--close-margin);\n transition: .3s color var(--bezier);\n z-index: 1;\n "),ac("content","\n font-size: var(--font-size);\n margin: var(--content-margin);\n position: relative;\n word-break: break-word;\n ",[rc("&:last-child","margin-bottom: 0;")]),ac("action","\n display: flex;\n justify-content: flex-end;\n ",[rc("> *:not(:last-child)",{marginRight:"var(--action-space)"})]),ac("icon",{fontSize:"var(--icon-size)",transition:"color .3s var(--bezier)"}),ac("title","\n transition: color .3s var(--bezier);\n display: flex;\n align-items: center;\n font-size: var(--title-font-size);\n font-weight: var(--title-font-weight);\n color: var(--title-text-color);\n "),sc("dialog-icon-container",{display:"flex",justifyContent:"center"})]),uc(sc("dialog","\n width: 446px;\n max-width: calc(100vw - 32px);\n ")),sc("dialog",[pc("\n width: 446px;\n max-width: calc(100vw - 32px);\n ")])]);const Fy=$r(Qd,null),Ey={default:Fy,info:Fy,success:$r(tu,null),warning:$r(nu,null),error:$r(Yd,null)},$y={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,onPositiveClick:Function,onNegativeClick:Function,onClose:Function},_y=ed($y);var Ry=Jt({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},wd.props),$y),setup(e){const{NConfigProvider:t,mergedClsPrefixRef:n}=Sd(e),o=Et((()=>{var n,o,r;const{iconPlacement:i}=e;return null!==(r=null!=i?i:null===(o=null===(n=null==t?void 0:t.mergedComponentPropsRef.value)||void 0===n?void 0:n.Dialog)||void 0===o?void 0:o.iconPlacement)&&void 0!==r?r:"left"}));const r=wd("Dialog","Dialog",ky,Sy,e,n);return{mergedClsPrefix:n,mergedIconPlacement:o,mergedTheme:r,handlePositiveClick:function(t){const{onPositiveClick:n}=e;n&&n(t)},handleNegativeClick:function(t){const{onNegativeClick:n}=e;n&&n(t)},handleCloseClick:function(){const{onClose:t}=e;t&&t()},cssVars:Et((()=>{const{type:t,iconPlacement:n}=e,{common:{cubicBezierEaseInOut:o},self:{fontSize:i,lineHeight:s,border:a,titleTextColor:l,textColor:c,color:d,closeColor:u,closeColorHover:h,closeColorPressed:p,borderRadius:f,titleFontWeight:g,titleFontSize:m,padding:v,iconSize:b,actionSpace:y,contentMargin:C,closeSize:w,["top"===n?"iconMarginIconTop":"iconMargin"]:x,["top"===n?"closeMarginIconTop":"closeMargin"]:S,[tc("iconColor",t)]:A}}=r.value;return{"--font-size":i,"--icon-color":A,"--bezier":o,"--close-margin":S,"--icon-margin":x,"--icon-size":b,"--close-size":w,"--close-color":u,"--close-color-hover":h,"--close-color-pressed":p,"--color":d,"--text-color":c,"--border-radius":f,"--padding":v,"--line-height":s,"--border":a,"--content-margin":C,"--title-font-size":m,"--title-font-weight":g,"--title-text-color":l,"--action-space":y}}))}},render(){const{$slots:e,bordered:t,mergedIconPlacement:n,cssVars:o,closable:r,showIcon:i,title:s,content:a,action:l,negativeText:c,positiveText:d,handlePositiveClick:u,handleNegativeClick:h,mergedTheme:p,loading:f,type:g,mergedClsPrefix:m}=this;return $r("div",{class:[`${m}-dialog`,`${m}-dialog--icon-${n}`,t&&`${m}-dialog--bordered`],style:o},r?$r(uu,{clsPrefix:m,class:`${m}-dialog__close`,onClick:this.handleCloseClick}):null,i&&"top"===n?$r("div",{class:`${m}-dialog-icon-container`},$r(cu,{clsPrefix:m,class:`${m}-dialog__icon`},{default:()=>Mo(e,"icon",void 0,(()=>[this.icon?td(this.icon):Ey[this.type]]))})):null,$r("div",{class:`${m}-dialog__title`},i&&"left"===n?$r(cu,{clsPrefix:m,class:`${m}-dialog__icon`},{default:()=>Mo(e,"icon",void 0,(()=>[this.icon?td(this.icon):Ey[this.type]]))}):null,Mo(e,"header",void 0,(()=>[td(s)]))),$r("div",{class:`${m}-dialog__content`},Mo(e,"default",void 0,(()=>[td(a)]))),e.action||d||c||l?$r("div",{class:`${m}-dialog__action`},Mo(e,"action",void 0,l?()=>[td(l)]:()=>[this.negativeText&&$r(qm,{theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,ghost:!0,size:"small",onClick:h},{default:()=>td(this.negativeText)}),this.positiveText&&$r(qm,{theme:p.peers.Button,themeOverrides:p.peerOverrides.Button,disabled:f,loading:f,size:"small",type:"default"===g?"primary":g,onClick:u},{default:()=>td(this.positiveText)})])):null)}});const By=e=>{const{modalColor:t,textColor2:n,boxShadow3:o}=e;return{color:t,textColor:n,boxShadow:o}};var Ty={name:"Modal",common:If,peers:{Scrollbar:Gf,Dialog:Sy,Card:tv},self:By};var Dy={name:"Modal",common:Gp,peers:{Scrollbar:Yf,Dialog:Ay,Card:nv},self:By};const My=Object.assign(Object.assign({},rv),$y),Ly=ed(My);var Py=Jt({name:"ModalBody",inheritAttrs:!1,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0}},My),{onClickoutside:{type:Function,required:!0},onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function}),setup(e){const t=bt(null),n=bt(null),o=bt(e.show),r=bt(null),i=bt(null);Sr(kt(e,"show"),(e=>{e&&(o.value=!0)}));const s=Ht(ud);function a(){if("center"===s.transformOriginRef.value)return"";const{value:e}=r,{value:t}=i;if(null===e||null===t)return"";if(n.value){return`${e}px ${t+n.value.containerScrollTop}px`}return""}return Nt(dd,t),Nt(hd,null),Nt(fd,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,displayed:o,handleClickOutside:function(t){e.onClickoutside(t)},handlePositiveClick:function(){e.onPositiveClick()},handleNegativeClick:function(){e.onNegativeClick()},handleCloseClick:function(){const{onClose:t}=e;t&&t()},handleAfterLeave:function(){o.value=!1,r.value=null,i.value=null,e.onAfterLeave()},handleBeforeLeave:function(t){t.style.transformOrigin=a(),e.onBeforeLeave()},handleEnter:function(e){pr((()=>{!function(e){if("center"===s.transformOriginRef.value)return;const t=s.getMousePosition();if(!t)return;if(!n.value)return;const o=n.value.containerScrollTop,{offsetLeft:l,offsetTop:c}=e;if(t){const e=t.y,n=t.x;r.value=-(l-n),i.value=-(c-e-o)}e.style.transformOrigin=a()}(e)}))}}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterLeave:o,handleBeforeLeave:r,handleClickOutside:i,preset:s,mergedClsPrefix:a}=this;let l=null;if(!s){if(l=id(e),!l)return void nd("modal","default slot is empty");l=Fo(l),l.props=To({class:`${a}-modal`},t,l.props||{})}return"show"===this.displayDirective||this.displayed||this.show?Hn($r("div",{class:`${a}-modal-body-wrapper`},$r(Jf,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${a}-modal-scroll-content`},{default:()=>{var t;return $r(Kr,{name:"fade-in-scale-up-transition",appear:null!==(t=this.appear)&&void 0!==t?t:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:o,onBeforeLeave:r},{default:()=>Hn("confirm"===this.preset||"dialog"===this.preset?$r(Ry,Object.assign({},this.$attrs,{class:[`${a}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},Xc(this.$props,_y)),e):"card"===this.preset?$r(sv,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${a}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},Xc(this.$props,iv)),e):l,[[fi,this.show],[Ju,i]])})}})),[[fi,"if"===this.displayDirective||this.displayed||this.show]]):null}}),Oy=rc([sc("modal-container","\n position: fixed;\n left: 0;\n top: 0;\n height: 0;\n width: 0;\n display: flex;\n "),sc("modal-mask","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, .4);\n ",[Xf({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--bezier-ease-out)",leaveCubicBezier:"var(--bezier-ease-out)"})]),sc("modal-body-wrapper","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n overflow: visible;\n ",[sc("modal-scroll-content","\n min-height: 100%;\n display: flex;\n position: relative;\n ")]),sc("modal","\n align-self: center;\n color: var(--text-color);\n margin: auto;\n box-shadow: var(--box-shadow);\n ",[ig({duration:".25s",enterScale:".5"})])]);var zy=Jt({name:"Modal",inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign(Object.assign({},wd.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"}}),My),{"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,dialog:Boolean,appear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),setup(e){const t=bt(null),{mergedClsPrefixRef:n,namespaceRef:o}=Sd(e),r=wd("Modal","Modal",Oy,Ty,e,n),i=Hc(64),s=Oc(),a=Vc(),l=e.dialog?Ht(Hy,null):null;function c(t){const{onUpdateShow:n,"onUpdate:show":o,onHide:r}=e;n&&Qc(n,t),o&&Qc(o,t),r&&!t&&r(t)}return Nt(ud,{getMousePosition:()=>{if(l){const{clickedRef:e,clickPositionRef:t}=l;if(e.value&&t.value)return t.value}return i.value?s.value:null},mergedClsPrefixRef:n,mergedThemeRef:r,isMountedRef:a,appearRef:kt(e,"appear"),transformOriginRef:kt(e,"transformOrigin")}),{mergedClsPrefix:n,namespace:o,isMounted:a,containerRef:t,presetProps:Et((()=>Xc(e,Ly))),handleAfterLeave:function(){const{onAfterLeave:t,onAfterHide:n}=e;t&&Qc(t),n&&n()},handleClickoutside:function(n){var o;const{onMaskClick:r}=e;r&&r(n),e.maskClosable&&(null===(o=t.value)||void 0===o?void 0:o.contains(n.target))&&c(!1)},handleBeforeLeave:function(){const{onBeforeLeave:t,onBeforeHide:n}=e;t&&Qc(t),n&&n()},doUpdateShow:c,handleNegativeClick:function(){const{onNegativeClick:t}=e;t?Promise.resolve(t()).then((e=>{!1!==e&&c(!1)})):c(!1)},handlePositiveClick:function(){const{onPositiveClick:t}=e;t?Promise.resolve(t()).then((e=>{!1!==e&&c(!1)})):c(!1)},handleCloseClick:function(){const{onClose:t}=e;t?Promise.resolve(t()).then((e=>{!1!==e&&c(!1)})):c(!1)},cssVars:Et((()=>{const{common:{cubicBezierEaseOut:e},self:{boxShadow:t,color:n,textColor:o}}=r.value;return{"--bezier-ease-out":e,"--box-shadow":t,"--color":n,"--text-color":o}}))}},render(){const{mergedClsPrefix:e}=this;return $r(sh,{to:this.to,show:this.show},{default:()=>{var t;return[Hn($r("div",{ref:"containerRef",class:[`${e}-modal-container`,this.namespace],style:this.cssVars},this.unstableShowMask?$r(Kr,{name:"fade-in-transition",key:"mask",appear:null!==(t=this.appear)&&void 0!==t?t:this.isMounted},{default:()=>this.show?$r("div",{ref:"containerRef",class:`${e}-modal-mask`}):null}):null,$r(Py,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset},this.presetProps,{onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:this.handleClickoutside}),this.$slots)),[[th,{enabled:this.show}]])]}})}});const Iy=Object.assign(Object.assign({},$y),{internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function});var jy=Jt({name:"DialogEnvironment",props:Object.assign(Object.assign({},Iy),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=bt(!0);function n(){t.value=!1}return{show:t,hide:n,handleUpdateShow:function(e){t.value=e},handleAfterLeave:function(){e.onInternalAfterLeave(e.internalKey)},handleCloseClick:function(){const{onClose:t}=e;t?Promise.resolve(t()).then((e=>{!1!==e&&n()})):n()},handleNegativeClick:function(t){const{onNegativeClick:o}=e;o?Promise.resolve(o(t)).then((e=>{!1!==e&&n()})):n()},handlePositiveClick:function(t){const{onPositiveClick:o}=e;o?Promise.resolve(o(t)).then((e=>{!1!==e&&n()})):n()},handleMaskClick:function(t){const{onMaskClick:o,maskClosable:r}=e;o&&(o(t),r&&n())}}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:o,handleAfterLeave:r,handleMaskClick:i,to:s,maskClosable:a,show:l}=this;return $r(zy,{show:l,onUpdateShow:t,onMaskClick:i,appear:!0,dialog:!0,to:s,maskClosable:a,onAfterLeave:r},{default:()=>$r(Ry,Object.assign({},Xc(this.$props,_y),{style:this.internalStyle,onClose:o,onNegativeClick:n,onPositiveClick:e}))})}});const Ny=Symbol("dialogApi"),Hy=Symbol("dialogProvider");Jt({name:"DialogProvider",props:{injectionKey:String,to:[String,Object]},setup(){const e=bt([]),t={};function n(n={}){const o=Yi(),r=st(Object.assign(Object.assign({},n),{key:o,destroy:()=>{t[`n-dialog-${o}`].hide()}}));return e.value.push(r),r}const o=["info","success","warning","error"].map((e=>t=>n(Object.assign(Object.assign({},t),{type:e}))));const r={create:n,destroyAll:function(){Object.values(t).forEach((e=>e.hide()))},info:o[0],success:o[1],warning:o[2],error:o[3]};return Nt(Ny,r),Nt(Hy,{clickedRef:Hc(64),clickPositionRef:Oc()}),Object.assign(Object.assign({},r),{dialogList:e,dialogInstRefs:t,handleAfterLeave:function(t){const{value:n}=e;n.splice(n.findIndex((e=>e.key===t)),1)}})},render(){var e,t;return $r(so,null,[this.dialogList.map((e=>$r(jy,Zc(e,["destroy","style"],{internalStyle:e.style,to:this.to,ref:t=>{null===t?delete this.dialogInstRefs[`n-dialog-${e.key}`]:this.dialogInstRefs[`n-dialog-${e.key}`]=t},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave})))),null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});const Wy=e=>{const{textColor1:t,dividerColor:n,fontWeightStrong:o}=e;return{textColor:t,color:n,fontWeight:o}};var Vy={name:"Divider",common:If,self:Wy};var Uy={name:"Divider",common:Gp,self:Wy},Ky=sc("divider","\n position: relative;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n font-size: 16px;\n color: var(--text-color);\n transition:\n color .3s var(--bezier),\n background-color .3s var(--bezier);\n",[cc("vertical","\n margin-top: 24px;\n margin-bottom: 24px;\n ",[cc("no-title","\n display: flex;\n align-items: center;\n ")]),ac("title","\n display: flex;\n align-items: center;\n margin-left: 12px;\n margin-right: 12px;\n white-space: nowrap;\n font-weight: var(--font-weight);\n "),lc("title-position-left",[ac("line",[lc("left",{width:"28px"})])]),lc("title-position-right",[ac("line",[lc("right",{width:"28px"})])]),lc("dashed",[ac("line","\n background-color: #0000;\n height: 0px;\n width: 100%;\n border-style: dashed;\n border-width: 1px 0 0;\n ")]),lc("vertical","\n display: inline-block;\n height: 1em;\n margin: 0 8px;\n vertical-align: middle;\n width: 1px;\n "),ac("line","\n border: none;\n transition: background-color .3s var(--bezier), border-color .3s var(--bezier);\n height: 1px;\n width: 100%;\n margin: 0;\n "),cc("dashed",[ac("line",{backgroundColor:"var(--color)"})]),lc("dashed",[ac("line",{borderColor:"var(--color)"})]),lc("vertical",{backgroundColor:"var(--color)"})]);var Gy=Jt({name:"Divider",props:Object.assign(Object.assign({},wd.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Divider","Divider",Ky,Vy,e,t);return{mergedClsPrefix:t,cssVars:Et((()=>{const{common:{cubicBezierEaseInOut:e},self:{color:t,textColor:o,fontWeight:r}}=n.value;return{"--bezier":e,"--color":t,"--text-color":o,"--font-weight":r}}))}},render(){const{$slots:e,titlePlacement:t,vertical:n,dashed:o,cssVars:r,mergedClsPrefix:i}=this;return $r("div",{role:"separator",class:[`${i}-divider`,{[`${i}-divider--vertical`]:n,[`${i}-divider--no-title`]:!e.default,[`${i}-divider--dashed`]:o,[`${i}-divider--title-position-${t}`]:e.default&&t}],style:r},n?null:$r("div",{class:`${i}-divider__line ${i}-divider__line--left`}),!n&&e.default?$r(so,null,$r("div",{class:`${i}-divider__title`},this.$slots),$r("div",{class:`${i}-divider__line ${i}-divider__line--right`})):null)}});const Yy=e=>{const{modalColor:t,textColor1:n,textColor2:o,boxShadow3:r,lineHeight:i,fontWeightStrong:s,dividerColor:a,closeColor:l,closeColorHover:c,closeColorPressed:d}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:o,titleTextColor:n,titleFontSize:"18px",titleFontWeight:s,boxShadow:r,lineHeight:i,headerBorderBottom:`1px solid ${a}`,footerBorderTop:`1px solid ${a}`,closeColor:l,closeColorHover:c,closeColorPressed:d,closeSize:"18px"}};var qy={name:"Drawer",common:If,peers:{Scrollbar:Gf},self:Yy};var Xy={name:"Drawer",common:Gp,peers:{Scrollbar:Yf},self:Yy},Zy=Jt({name:"NDrawerContent",inheritAttrs:!1,props:{show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object},setup(e){const t=bt(e.show),n=bt(null),o=Ht(pd);return wr((()=>{e.show&&(t.value=!0)})),Nt(hd,n),Nt(fd,null),Nt(dd,null),{bodyRef:n,mergedClsPrefix:o.mergedClsPrefixRef,isMounted:o.isMountedRef,mergedTheme:o.mergedThemeRef,displayed:t,transitionName:Et((()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"}[e.placement]))),handleAfterLeave:function(){t.value=!1}}},render(){const{$slots:e,mergedClsPrefix:t}=this;return"show"===this.displayDirective||this.displayed||this.show?Hn($r("div",null,$r(Kr,{name:this.transitionName,appear:this.isMounted,onAfterLeave:this.handleAfterLeave},{default:()=>Hn($r("div",To(this.$attrs,{ref:"bodyRef",class:[`${t}-drawer`,`${t}-drawer--${this.placement}-placement`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.nativeScrollbar?$r("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle},e):$r(Jf,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),[[fi,this.show]])})),[[fi,"if"===this.displayDirective||this.displayed||this.show]]):null}});const{cubicBezierEaseIn:Jy,cubicBezierEaseOut:Qy}=gc;const{cubicBezierEaseIn:eC,cubicBezierEaseOut:tC}=gc;const{cubicBezierEaseIn:nC,cubicBezierEaseOut:oC}=gc;const{cubicBezierEaseIn:rC,cubicBezierEaseOut:iC}=gc;var sC=rc([sc("drawer","\n line-height: var(--line-height);\n position: absolute;\n pointer-events: all;\n box-shadow: var(--box-shadow);\n transition:\n background-color .3s var(--bezier),\n color .3s var(--bezier);\n background-color: var(--color);\n color: var(--text-color);\n box-sizing: border-box;\n ",[function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[rc(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Jy}`}),rc(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Qy}`}),rc(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),rc(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),rc(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),rc(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[rc(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${eC}`}),rc(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${tC}`}),rc(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),rc(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),rc(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),rc(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[rc(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${nC}`}),rc(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${oC}`}),rc(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),rc(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),rc(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),rc(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[rc(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${rC}`}),rc(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${iC}`}),rc(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),rc(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),rc(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),rc(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}(),lc("native-scrollbar",[sc("drawer-content-wrapper","\n overflow: auto;\n height: 100%;\n ")]),sc("drawer-content-wrapper","\n box-sizing: border-box;\n "),sc("drawer-content","\n height: 100%;\n display: flex;\n flex-direction: column;\n ",[lc("native-scrollbar",[sc("drawer-body-content-wrapper","\n height: 100%;\n overflow: auto;\n ")]),sc("drawer-body","\n flex: 1 0 0;\n "),sc("drawer-body-content-wrapper","\n box-sizing: border-box;\n padding: var(--body-padding);\n "),sc("drawer-header","\n font-weight: var(--title-font-weight);\n line-height: 1;\n font-size: var(--title-font-size);\n color: var(--title-text-color);\n padding: var(--header-padding);\n transition: border .3s var(--bezier);\n border-bottom: 1px solid var(--divider-color);\n border-bottom: var(--header-border-bottom);\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",[ac("close","\n transition: color .3s var(--bezier);\n font-size: var(--close-size);\n ")]),sc("drawer-footer","\n display: flex;\n justify-content: flex-end;\n border-top: var(--footer-border-top);\n transition: border .3s var(--bezier);\n padding: var(--footer-padding);\n ")]),lc("right-placement","\n top: 0;\n bottom: 0;\n right: 0;\n "),lc("left-placement","\n top: 0;\n bottom: 0;\n left: 0;\n "),lc("top-placement","\n top: 0;\n left: 0;\n right: 0;\n "),lc("bottom-placement","\n left: 0;\n bottom: 0;\n right: 0;\n ")]),rc("body",[rc(">",[sc("drawer-container",{position:"fixed"})])]),sc("drawer-container","\n position: relative;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n ",[rc("> *",{pointerEvents:"all"})]),sc("drawer-mask","\n background-color: rgba(0, 0, 0, .3);\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ",[Xf({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--bezier-in)",leaveCubicBezier:"var(--bezier-out)"})])]);var aC=Jt({name:"Drawer",inheritAttrs:!1,props:Object.assign(Object.assign({},wd.props),{show:Boolean,width:{type:[Number,String],default:251},height:{type:[Number,String],default:251},placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],drawerStyle:{type:[Object,String],validator:void 0,default:void 0},drawerClass:{type:String,validator:void 0,default:void 0},target:{validator:void 0,default:void 0},onShow:{type:[Function,Array],validator:()=>(nd("drawer","`on-show` is deprecated, please use `on-update:show` instead."),!0),default:void 0},onHide:{type:[Function,Array],validator:()=>(nd("drawer","`on-hide` is deprecated, please use `on-update:show` instead."),!0),default:void 0}}),setup(e){const{mergedClsPrefixRef:t,namespaceRef:n}=Sd(e),o=Vc(),r=wd("Drawer","Drawer",sC,qy,e,t),i=Et((()=>{const{placement:t}=e;if("top"===t||"bottom"===t)return"";const{width:n}=e;return cd(n)})),s=Et((()=>{const{placement:t}=e;if("left"===t||"right"===t)return"";const{height:n}=e;return cd(n)})),a=Et((()=>[{width:i.value,height:s.value},e.drawerStyle]));function l(t){const{onHide:n,onUpdateShow:o,"onUpdate:show":r}=e;o&&Qc(o,t),r&&Qc(r,t),n&&!t&&Qc(n,t)}return Nt(pd,{isMountedRef:o,mergedThemeRef:r,mergedClsPrefixRef:t,doUpdateShow:l}),{mergedClsPrefix:t,namespace:n,mergedBodyStyle:a,handleMaskClick:function(t){const{onMaskClick:n,maskClosable:o}=e;o&&l(!1),n&&n(t)},mergedTheme:r,cssVars:Et((()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{color:o,textColor:i,boxShadow:s,lineHeight:a,headerPadding:l,footerPadding:c,bodyPadding:d,titleFontSize:u,titleTextColor:h,titleFontWeight:p,headerBorderBottom:f,footerBorderTop:g,closeColor:m,closeColorHover:v,closeColorPressed:b,closeSize:y}}=r.value;return{"--line-height":a,"--color":o,"--text-color":i,"--box-shadow":s,"--bezier":e,"--bezier-out":n,"--bezier-in":t,"--header-padding":l,"--body-padding":d,"--footer-padding":c,"--title-text-color":h,"--title-font-size":u,"--title-font-weight":p,"--header-border-bottom":f,"--footer-border-top":g,"--close-color":m,"--close-color-hover":v,"--close-color-pressed":b,"--close-size":y}})),isMounted:o}},render(){const{mergedClsPrefix:e}=this;return $r(sh,{to:this.to,show:this.show},{default:()=>Hn($r("div",{class:[`${e}-drawer-container`,this.namespace],style:this.cssVars},$r(Kr,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?$r("div",{class:`${e}-drawer-mask`,onClick:this.handleMaskClick}):null}),$r(Zy,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar}),this.$slots)),[[th,{enabled:this.show}]])})}});var lC=Jt({name:"DrawerContent",props:{title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},setup(){const e=Ht(pd,null);e||od("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;return{handleCloseClick:function(){t(!1)},mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:o,bodyStyle:r,bodyContentStyle:i,headerStyle:s,footerStyle:a,scrollbarProps:l,closable:c,$slots:d}=this;return $r("div",{class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},d.header||e||c?$r("div",{class:`${t}-drawer-header`,style:s},$r("div",{class:`${t}-drawer-header__main`},void 0!==d.header?d.header():e),c&&$r(uu,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`})):null,n?$r("div",{class:`${t}-drawer-body`,style:r},$r("div",{class:`${t}-drawer-body-content-wrapper`,style:i},d)):$r(Jf,Object.assign({themeOverrides:o.peerOverrides.Scrollbar,theme:o.peers.Scrollbar},l,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),d),d.footer?$r("div",{class:`${t}-drawer-footer`,style:a},d.footer()):null)}}),cC={actionMargin:"0 0 0 20px"};var dC={name:"DynamicInput",common:Gp,peers:{Input:am,Button:Nm},self:()=>cC},uC={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};var hC={name:"Space",self:()=>uC};var pC={name:"Space",self:()=>uC};var fC=Jt({name:"Space",props:Object.assign(Object.assign({},wd.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},itemStyle:[String,Object],wrap:{type:Boolean,default:!0}}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Space","Space",void 0,pC,e,t);return{mergedClsPrefix:t,margin:Et((()=>{const{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if("number"==typeof t)return{horizontal:t,vertical:t};const{self:{[tc("gap",t)]:o}}=n.value,{row:r,col:i}=function(e,t){const[n,o]=e.split(" ");return t?"row"===t?n:o:{row:n,col:o||n}}(o);return{horizontal:Fi(i),vertical:Fi(r)}}))}},render(){const{vertical:e,align:t,inline:n,justify:o,itemStyle:r,margin:i,wrap:s,mergedClsPrefix:a}=this,l=Jc(qc(this));if(!l.length)return null;const c=`${i.horizontal}px`,d=i.horizontal/2+"px",u=`${i.vertical}px`,h=i.vertical/2+"px",p=l.length-1,f=o.startsWith("space-");return $r("div",{role:"none",class:`${a}-space`,style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(o)?"flex-"+o:o,flexWrap:!s||e?"nowrap":"wrap",marginTop:e?"":`-${h}`,marginBottom:e?"":`-${h}`,alignItems:t}},l.map(((t,n)=>$r("div",{role:"none",style:[r,{maxWidth:"100%"},e?{marginBottom:n!==p?u:""}:{marginRight:f?"space-between"===o&&n===p?"":d:n!==p?c:"",marginLeft:f?"space-between"===o&&0===n?"":d:"",paddingTop:h,paddingBottom:h}]},t))))}});var gC={name:"DynamicTags",common:Gp,peers:{Input:am,Button:Nm,Tag:Rg,Space:hC},self:()=>({inputWidth:"64px"})};var mC={name:"Element",common:Gp},vC={blankHeightSmall:"28px",blankHeightMedium:"34px",blankHeightLarge:"40px",feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 8px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right"};var bC={name:"Form",common:Gp,self:e=>{const{textColor1:t,errorColor:n,warningColor:o,lineHeight:r,textColor3:i}=e;return Object.assign(Object.assign({},vC),{lineHeight:r,labelTextColor:t,asteriskColor:n,feedbackTextColorError:n,feedbackTextColorWarning:o,feedbackTextColor:i})}};const yC={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},CC={responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:24},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},wC=Symbol("grid");var xC=Jt({name:"Grid",inheritAttrs:!1,props:CC,setup(e){const{mergedClsPrefixRef:t,NConfigProvider:n}=Sd(e),o=/^\d+$/,r=bt(void 0),i=function(e=Gc){if(!Sc)return Et((()=>[]));if("function"!=typeof window.matchMedia)return Et((()=>[]));const t=bt({}),n=Object.keys(e),o=(e,n)=>{e.matches?t.value[n]=!0:t.value[n]=!1};return n.forEach((t=>{const n=e[t];let r,i;void 0===Yc[n]?(r=window.matchMedia(`(min-width: ${n}px)`),r.addEventListener?r.addEventListener("change",(e=>{i.forEach((n=>{n(e,t)}))})):r.addListener&&r.addListener((e=>{i.forEach((n=>{n(e,t)}))})),i=new Set,Yc[n]={mql:r,cbs:i}):(r=Yc[n].mql,i=Yc[n].cbs),i.add(o),r.matches&&i.forEach((e=>{e(r,t)}))})),hn((()=>{n.forEach((t=>{const{cbs:n}=Yc[e[t]];n.has(o)&&n.delete(o)}))})),Et((()=>{const{value:e}=t;return n.filter((t=>e[t]))}))}((null==n?void 0:n.mergedBreakpointsRef.value)||yC),s=wc((()=>!!e.itemResponsive||(!o.test(e.cols.toString())||(!o.test(e.xGap.toString())||!o.test(e.yGap.toString()))))),a=Et((()=>{if(s.value)return"self"===e.responsive?r.value:i.value})),l=wc((()=>{var t;return null!==(t=Number(ki(e.cols.toString(),a.value)))&&void 0!==t?t:24})),c=wc((()=>ki(e.xGap.toString(),a.value))),d=wc((()=>ki(e.yGap.toString(),a.value))),u=e=>{r.value=e.contentRect.width},h=e=>{xi(u,e)},p=bt(!1),f=Et((()=>{if("self"===e.responsive)return h}));return Nt(wC,{itemStyleRef:kt(e,"itemStyle"),xGapRef:c,overflowRef:p}),{mergedClsPrefix:t,style:Et((()=>({width:"100%",display:"grid",gridTemplateColumns:`repeat(${l.value}, minmax(0, 1fr))`,columnGap:Ei(c.value),rowGap:Ei(d.value)}))),isResponsive:s,responsiveQuery:a,responsiveCols:l,handleResize:f,overflow:p}},render(){const e=()=>{var e,t,n,o,r,i;this.overflow=!1;const s=Jc(qc(this)),a=[],{collapsed:l,collapsedRows:c,responsiveCols:d,responsiveQuery:u}=this;s.forEach((e=>{var t,n,o;if(!0!==(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.__GRID_ITEM__))return;const r=Fo(e),i=Number(null!==(o=ki(null===(n=r.props)||void 0===n?void 0:n.span,u))&&void 0!==o?o:SC);0!==i&&a.push({child:r,rawChildSpan:i})}));let h=0;const p=null===(e=a[a.length-1])||void 0===e?void 0:e.child;if(null==p?void 0:p.props){const e=null===(t=p.props)||void 0===t?void 0:t.suffix;void 0!==e&&!1!==e&&(h=null!==(o=null===(n=p.props)||void 0===n?void 0:n.span)&&void 0!==o?o:SC,p.props.privateSpan=h,p.props.privateColStart=d+1-h,p.props.privateShow=!0)}let f=0,g=!1;for(const{child:m,rawChildSpan:v}of a){if(g&&(this.overflow=!0),!g){const e=Number(null!==(i=ki(null===(r=m.props)||void 0===r?void 0:r.offset,u))&&void 0!==i?i:0),t=Math.min(v+e,d)||1;if(m.props?(m.props.privateSpan=t,m.props.privateOffset=e):m.props={privateSpan:t,privateOffset:e},l){const e=f%d;t+e>d&&(f+=d-e),t+f+h>c*d?g=!0:f+=t}}g&&(m.props?!0!==m.props.privateShow&&(m.props.privateShow=!1):m.props={privateShow:!1})}return $r("div",To({class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),a.map((({child:e})=>e)))};return this.isResponsive&&"self"===this.responsive?$r(Ih,{onResize:this.handleResize},{default:e}):e()}});const SC=1;var AC=Jt({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:{span:{type:[Number,String],default:SC},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},setup(){const{xGapRef:e,itemStyleRef:t,overflowRef:n}=Ht(wC),o=Ho();return{overflow:n,itemStyle:t,deriveStyle:()=>{const{privateSpan:t=SC,privateShow:n=!0,privateColStart:r,privateOffset:i=0}=o.vnode.props,{value:s}=e,a=Ei(s||0);return{display:n?"":"none",gridColumn:`${null!=r?r:`span ${t}`} / span ${t}`,marginLeft:i?`calc((100% - (${t} - 1) * ${a}) / ${t} * ${i} + ${a} * ${i})`:""}}}},render(){return $r("div",{style:[this.itemStyle,this.deriveStyle()]},Mo(this.$slots,"default",{overflow:this.overflow}))}});var kC={name:"GradientText",common:Gp,self(e){const{primaryColor:t,successColor:n,warningColor:o,errorColor:r,infoColor:i,primaryColorSuppl:s,successColorSuppl:a,warningColorSuppl:l,errorColorSuppl:c,infoColorSuppl:d,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:s,colorStartInfo:i,colorEndInfo:d,colorStartWarning:o,colorEndWarning:l,colorStartError:r,colorEndError:c,colorStartSuccess:n,colorEndSuccess:a}}};var FC={name:"GradientText",common:If,self:e=>{const{primaryColor:t,successColor:n,warningColor:o,errorColor:r,infoColor:i,fontWeightStrong:s}=e;return{fontWeight:s,rotate:"252deg",colorStartPrimary:Vi(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Vi(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:Vi(o,{alpha:.6}),colorEndWarning:o,colorStartError:Vi(r,{alpha:.6}),colorEndError:r,colorStartSuccess:Vi(n,{alpha:.6}),colorEndSuccess:n}}},EC=sc("gradient-text","\n display: inline-block;\n font-weight: var(--font-weight);\n -webkit-background-clip: text;\n background-clip: text;\n color: #0000;\n white-space: nowrap;\n background-image: linear-gradient(var(--rotate), var(--color-start) 0%, var(--color-end) 100%);\n transition:\n --color-start .3s var(--bezier),\n --color-end .3s var(--bezier);\n");var $C=Jt({name:"GradientText",props:Object.assign(Object.assign({},wd.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),setup(e){ln((()=>{var e;bd||(bd=!0,(null===(e=null===window||void 0===window?void 0:window.CSS)||void 0===e?void 0:e.registerProperty)&&(CSS.registerProperty({name:"--color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})))}));const{mergedClsPrefixRef:t}=Sd(e),n=Et((()=>{const{type:t}=e;return"danger"===t?"error":t})),o=Et((()=>{let t=e.size||e.fontSize;return t&&(t=cd(t)),t||void 0})),r=Et((()=>{const t=e.color||e.gradient;if("string"==typeof t)return t;if(t){return`linear-gradient(${t.deg||0}deg, ${t.from} 0%, ${t.to} 100%)`}})),i=wd("GradientText","GradientText",EC,FC,e,t);return{mergedClsPrefix:t,compatibleType:n,styleFontSize:o,styleBgImage:r,cssVars:Et((()=>{const{value:e}=n,{common:{cubicBezierEaseInOut:t},self:{rotate:o,[tc("colorStart",e)]:r,[tc("colorEnd",e)]:s,fontWeight:a}}=i.value;return{"--bezier":t,"--rotate":o,"--color-start":r,"--color-end":s,"--font-weight":a}}))}},render(){const{mergedClsPrefix:e}=this;return $r("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}});const _C={name:"Image",common:Gp,self:e=>{const{textColor2:t}=e;return{iconColor:t}}};var RC={name:"InputNumber",common:Gp,peers:{Button:Nm,Input:am},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};var BC={name:"Layout",common:Gp,peers:{Scrollbar:Yf},self(e){const{textColor2:t,bodyColor:n,popoverColor:o,cardColor:r,dividerColor:i,scrollbarColor:s,scrollbarColorHover:a}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:r,headerColorInverted:r,footerColor:r,footerColorInverted:r,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:r,siderColorInverted:r,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:o,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Wi(n,s),siderToggleBarColorHover:Wi(n,a),__invertScrollbar:"false"}}};var TC={name:"Layout",common:If,peers:{Scrollbar:Gf},self:e=>{const{baseColor:t,textColor2:n,bodyColor:o,cardColor:r,dividerColor:i,actionColor:s,scrollbarColor:a,scrollbarColorHover:l,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:o,colorEmbedded:s,headerColor:r,headerColorInverted:c,footerColor:s,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:r,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:Wi(o,a),siderToggleBarColorHover:Wi(o,l),__invertScrollbar:"true"}}},DC=sc("layout","\n color: var(--text-color);\n background-color: var(--color);\n box-sizing: border-box;\n position: relative;\n z-index: auto;\n flex: auto;\n overflow: hidden;\n transition:\n box-shadow .3s var(--bezier),\n background-color .3s var(--bezier),\n color .3s var(--bezier);\n",[sc("layout-scroll-container","\n overflow-x: hidden;\n box-sizing: border-box;\n height: 100%;\n "),lc("absolute-positioned","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ")]);const MC=Symbol("layoutSiderInjection"),LC={type:String,default:"static"},PC={embedded:Boolean,position:LC,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},OC=Symbol("layout");var zC,IC=Jt({name:(zC=!1)?"LayoutContent":"Layout",props:Object.assign(Object.assign({},wd.props),PC),setup(e){const t=bt(null),n=bt(null),{mergedClsPrefixRef:o}=Sd(e),r=wd("Layout","Layout",DC,TC,e,o);Nt(OC,e);const i={scrollTo:function(o,r){if(e.nativeScrollbar){const{value:e}=t;e&&(void 0===r?e.scrollTo(o):e.scrollTo(o,r))}else{const{value:e}=n;e&&e.scrollTo(o,r)}}};return Object.assign({mergedClsPrefix:o,scrollableElRef:t,scrollbarInstRef:n,hasSiderStyle:{display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},mergedTheme:r,cssVars:Et((()=>{const{common:{cubicBezierEaseInOut:t},self:n}=r.value;return{"--bezier":t,"--color":e.embedded?n.colorEmbedded:n.color,"--text-color":n.textColor}}))},i)},render(){const{mergedClsPrefix:e,hasSider:t}=this,n=t?this.hasSiderStyle:void 0;return $r("div",{class:[zC&&`${e}-layout-content`,`${e}-layout`,`${e}-layout--${this.position}-positioned`],style:this.cssVars},this.nativeScrollbar?$r("div",{ref:"scrollableElRef",class:`${e}-layout-scroll-container`,style:[this.contentStyle,n],onScroll:this.onScroll},this.$slots):$r(Jf,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,n]}),this.$slots))}}),jC=sc("layout-header","\n transition:\n color .3s var(--bezier),\n background-color .3s var(--bezier),\n box-shadow .3s var(--bezier),\n border-color .3s var(--bezier);\n box-sizing: border-box;\n width: 100%;\n background-color: var(--color);\n color: var(--text-color);\n",[lc("absolute-positioned","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n "),lc("bordered","\n border-bottom: solid 1px var(--border-color);\n ")]);const NC={position:LC,inverted:Boolean,bordered:{type:Boolean,default:!1}};var HC=Jt({name:"LayoutHeader",props:Object.assign(Object.assign({},wd.props),NC),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Layout","LayoutHeader",jC,TC,e,t);return{mergedClsPrefix:t,cssVars:Et((()=>{const{common:{cubicBezierEaseInOut:t},self:o}=n.value,r={"--bezier":t};return e.inverted?(r["--color"]=o.headerColorInverted,r["--text-color"]=o.textColorInverted,r["--border-color"]=o.headerBorderColorInverted):(r["--color"]=o.headerColor,r["--text-color"]=o.textColor,r["--border-color"]=o.headerBorderColor),r}))}},render(){const{mergedClsPrefix:e}=this;return $r("div",{class:[`${e}-layout-header`,this.position&&`${e}-layout-header--${this.position}-positioned`,this.bordered&&`${e}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),WC=sc("layout-sider","\n flex-shrink: 0;\n box-sizing: border-box;\n position: relative;\n z-index: 1;\n color: var(--text-color);\n transition:\n color .3s var(--bezier),\n border-color .3s var(--bezier),\n min-width .3s var(--bezier),\n max-width .3s var(--bezier),\n transform .3s var(--bezier),\n background-color .3s var(--bezier);\n background-color: var(--color);\n display: flex;\n justify-content: flex-end;\n",[lc("right-placement","\n justify-content: flex-start;\n ",[lc("bordered","\n border-right: none;\n border-left: 1px solid var(--border-color);\n "),lc("collapsed",[sc("layout-toggle-button",[sc("base-icon","\n transform: rotate(180deg);\n ")]),sc("layout-toggle-bar",[rc("&:hover",[ac("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),ac("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),sc("layout-toggle-button","\n left: 0;\n transform: translateX(-50%) translateY(-50%);\n ",[sc("base-icon","\n transform: rotate(0);\n ")]),sc("layout-toggle-bar","\n left: -28px;\n transform: rotate(180deg);\n ",[rc("&:hover",[ac("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),ac("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),lc("collapsed",[sc("layout-toggle-bar",[rc("&:hover",[ac("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),ac("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),sc("layout-toggle-button",[sc("base-icon","\n transform: rotate(0);\n ")])]),sc("layout-toggle-button","\n transition:\n color .3s var(--bezier),\n right .3s var(--bezier),\n left .3s var(--bezier),\n border-color .3s var(--bezier),\n background-color .3s var(--bezier);\n cursor: pointer;\n width: 24px;\n height: 24px;\n position: absolute;\n top: 50%;\n right: 0;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 18px;\n color: var(--toggle-button-icon-color);\n border: var(--toggle-button-border);\n background-color: var(--toggle-button-color);\n box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);\n transform: translateX(50%) translateY(-50%);\n ",[sc("base-icon","\n transition: transform .3s var(--bezier);\n transform: rotate(180deg);\n ")]),sc("layout-toggle-bar","\n cursor: pointer;\n height: 72px;\n width: 32px;\n position: absolute;\n top: calc(50% - 36px);\n right: -28px;\n ",[ac("top, bottom","\n position: absolute;\n width: 4px;\n border-radius: 2px;\n height: 38px;\n left: 14px;\n transition: \n background-color .3s var(--bezier),\n transform .3s var(--bezier);\n "),ac("bottom","\n position: absolute;\n top: 34px;\n "),rc("&:hover",[ac("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),ac("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),ac("top, bottom",{backgroundColor:"var(--toggle-bar-color)"}),rc("&:hover",[ac("top, bottom",{backgroundColor:"var(--toggle-bar-color-hover)"})])]),ac("border","\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 1px;\n transition: background-color .3s var(--bezier);\n "),sc("layout-sider-scroll-container","\n flex-grow: 1;\n flex-shrink: 0;\n box-sizing: border-box;\n height: 100%;\n opacity: 0;\n transition: opacity .3s var(--bezier);\n max-width: 100%;\n "),lc("show-content",[sc("layout-sider-scroll-container",{opacity:1})]),lc("absolute-positioned","\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n "),lc("bordered","\n border-right: 1px solid var(--border-color);\n ")]),VC=Jt({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return $r("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},$r(cu,{clsPrefix:e},{default:()=>$r(Wd,null)}))}}),UC=Jt({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return $r("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},$r("div",{class:`${e}-layout-toggle-bar__top`}),$r("div",{class:`${e}-layout-toggle-bar__bottom`}))}});const KC={position:LC,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerStyle:[String,Object],collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function};var GC=Jt({name:"LayoutSider",props:Object.assign(Object.assign({},wd.props),KC),setup(e){const t=Ht(OC),n=bt(null),o=bt(null),r=Et((()=>cd(l.value?e.collapsedWidth:e.width))),i=Et((()=>"transform"!==e.collapseMode?{}:{minWidth:cd(e.width)})),s=Et((()=>t?t.siderPlacement:"left")),a=bt(e.defaultCollapsed),l=Wc(kt(e,"collapsed"),a);Nt(MC,{collapsedRef:l,collapseModeRef:kt(e,"collapseMode")});const{mergedClsPrefixRef:c}=Sd(e),d=wd("Layout","LayoutSider",WC,TC,e,c);const u={scrollTo:function(t,r){if(e.nativeScrollbar){const{value:e}=n;e&&(void 0===r?e.scrollTo(t):e.scrollTo(t,r))}else{const{value:e}=o;e&&e.scrollTo(t,r)}}};return Object.assign({scrollableElRef:n,scrollbarInstRef:o,mergedClsPrefix:c,mergedTheme:d,styleMaxWidth:r,mergedCollapsed:l,scrollContainerStyle:i,siderPlacement:s,handleTransitionend:function(t){var n,o;"max-width"===t.propertyName&&(l.value?null===(n=e.onAfterLeave)||void 0===n||n.call(e):null===(o=e.onAfterEnter)||void 0===o||o.call(e))},handleTriggerClick:function(){const{"onUpdate:collapsed":t,onUpdateCollapsed:n,onExpand:o,onCollapse:r}=e,{value:i}=l;n&&Qc(n,!i),t&&Qc(t,!i),a.value=!i,i?o&&Qc(o):r&&Qc(r)},cssVars:Et((()=>{const{common:{cubicBezierEaseInOut:t},self:n}=d.value,{siderToggleButtonColor:o,siderToggleButtonBorder:r,siderToggleBarColor:i,siderToggleBarColorHover:s}=n,a={"--bezier":t,"--toggle-button-color":o,"--toggle-button-border":r,"--toggle-bar-color":i,"--toggle-bar-color-hover":s};return e.inverted?(a["--color"]=n.siderColorInverted,a["--text-color"]=n.textColorInverted,a["--border-color"]=n.siderBorderColorInverted,a["--toggle-button-icon-color"]=n.siderToggleButtonIconColorInverted,a.__invertScrollbar=n.__invertScrollbar):(a["--color"]=n.siderColor,a["--text-color"]=n.textColor,a["--border-color"]=n.siderBorderColor,a["--toggle-button-icon-color"]=n.siderToggleButtonIconColor),a}))},u)},render(){const{mergedClsPrefix:e,mergedCollapsed:t,showTrigger:n}=this;return $r("aside",{class:[`${e}-layout-sider`,`${e}-layout-sider--${this.position}-positioned`,`${e}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${e}-layout-sider--bordered`,t&&`${e}-layout-sider--collapsed`,(!t||this.showCollapsedContent)&&`${e}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.cssVars,{maxWidth:this.styleMaxWidth,width:cd(this.width)}]},this.nativeScrollbar?$r("div",{class:`${e}-layout-sider-scroll-container`,onScroll:this.onScroll,style:[this.scrollContainerStyle,this.contentStyle,{overflow:"auto"}],ref:"scrollableElRef"},this.$slots):$r(Jf,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&"true"===this.cssVars.__invertScrollbar?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),n?$r("bar"===n?UC:VC,{clsPrefix:e,style:t?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null)}});var YC={name:"List",common:Gp,self:e=>{const{textColor2:t,cardColor:n,modalColor:o,popoverColor:r,dividerColor:i,borderRadius:s,fontSize:a}=e;return{textColor:t,color:n,colorModal:o,colorPopover:r,borderColor:i,borderColorModal:Wi(o,i),borderColorPopover:Wi(r,i),borderRadius:s,fontSize:a}}};var qC={name:"LoadingBar",common:Gp,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}};var XC={name:"Log",common:Gp,peers:{Scrollbar:Yf,Code:yv},self(e){const{textColor2:t,inputColor:n,fontSize:o,primaryColor:r}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:"1px solid #0000",loadingColor:r}}};const ZC={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]};var JC=Jt({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0}},setup(e){const{props:t}=Ht(yw);return{menuProps:t,style:Et((()=>{const{paddingLeft:t}=e;return{paddingLeft:t&&`${t}px`}})),iconStyle:Et((()=>{const{maxIconSize:t,activeIconSize:n,iconMarginRight:o}=e;return{width:`${t}px`,height:`${t}px`,fontSize:`${n}px`,marginRight:`${o}px`}}))}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:o,renderExtra:r,expandIcon:i}}=this,s=n?n(t.rawNode):td(this.icon);return $r("div",{onClick:this.onClick,role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},s&&$r("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[s]),$r("div",{class:`${e}-menu-item-content-header`,role:"none"},o?o(t.rawNode):td(this.title),this.extra||r?$r("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):td(this.extra)):null),this.showArrow?$r(cu,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):$r(iu,null)}):null)}});const QC=Object.assign(Object.assign({},ZC),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),ew=Symbol("submenu");var tw=Jt({name:"Submenu",props:QC,setup(e){const t=nw(e),{NMenu:n,NSubmenu:o}=t,{props:r,mergedCollapsedRef:i}=n,s=Et((()=>{const{disabled:t}=e;return!!(null==o?void 0:o.mergedDisabledRef.value)||(!!r.disabled||t)})),a=bt(!1);return Nt(ew,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),Nt(rw,null),{menuProps:r,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:a,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:n.mergedValueRef,childActive:wc((()=>n.activePathRef.value.includes(e.internalKey))),collapsed:Et((()=>"horizontal"!==r.mode&&(!!i.value||!n.mergedExpandedKeysRef.value.includes(e.internalKey)))),dropdownEnabled:Et((()=>!s.value&&("horizontal"===r.mode||i.value))),handlePopoverShowChange:function(e){a.value=e},handleClick:function(){s.value||(i.value||n.toggleExpand(e.internalKey),function(){const{onClick:t}=e;t&&t()}())}}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:o}}=this,r=()=>{const{isHorizontal:e,paddingLeft:n,collapsed:o,mergedDisabled:r,maxIconSize:i,activeIconSize:s,title:a,childActive:l,icon:c,handleClick:d,dropdownShow:u,iconMarginRight:h,tmNode:p}=this;return $r(JC,{tmNode:p,paddingLeft:n,collapsed:o,disabled:r,iconMarginRight:h,maxIconSize:i,activeIconSize:s,title:a,showArrow:!e,childActive:l,clsPrefix:t,icon:c,hover:u,onClick:d})},i=()=>$r(au,null,{default:()=>{const{tmNodes:e,collapsed:n}=this;return n?null:$r("div",{class:`${t}-submenu-children`,role:"menu"},e.map((e=>hw(e,this.menuProps))))}});return this.root?$r(Zb,Object.assign({},null===(e=this.menuProps)||void 0===e?void 0:e.dropdownProps,{builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,size:"large",trigger:"hover",disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:o}),{default:()=>$r("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},r(),this.isHorizontal?null:i())}):$r("div",{class:`${t}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},r(),i())}});function nw(e){const t=Ht(yw),{props:n,mergedCollapsedRef:o}=t,r=Ht(ew,null),i=Ht(rw,null),s=Et((()=>"horizontal"===n.mode)),a=Et((()=>s.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right")),l=Et((()=>{var e;return Math.max(null!==(e=n.collapsedIconSize)&&void 0!==e?e:n.iconSize,n.iconSize)})),c=Et((()=>{var t;return!s.value&&e.root&&o.value&&null!==(t=n.collapsedIconSize)&&void 0!==t?t:n.iconSize})),d=Et((()=>{if(s.value)return;const{collapsedWidth:t,indent:a,rootIndent:c}=n,{root:d,isGroup:u}=e,h=void 0===c?a:c;return d?o.value?t/2-l.value/2:h:i?a/2+i.paddingLeftRef.value:r?(u?a/2:a)+r.paddingLeftRef.value:void 0})),u=Et((()=>{const{collapsedWidth:t,indent:r,rootIndent:i}=n,{value:a}=l,{root:c}=e;if(s.value)return 8;if(!c)return 8;if(!o.value)return 8;return(void 0===i?r:i)+a+8-(t+a)/2}));return{dropdownPlacement:a,activeIconSize:c,maxIconSize:l,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:r}}const ow=Object.assign(Object.assign({},ZC),{tmNodes:{type:Array,required:!0}}),rw=Symbol("menu-item-group");var iw=Jt({name:"MenuOptionGroup",props:ow,setup(e){Nt(ew,null);const t=nw(e);Nt(rw,{paddingLeftRef:t.paddingLeft});const{mergedClsPrefixRef:n,props:o}=Ht(yw);return function(){const{value:r}=n,i=t.paddingLeft.value;return $r("div",{class:`${r}-menu-item-group`,role:"group"},$r("span",{class:`${r}-menu-item-group-title`,style:void 0!==i?`padding-left: ${i}px;`:void 0},td(e.title),e.extra?$r(so,null," ",td(e.extra)):null),$r("div",null,e.tmNodes.map((e=>hw(e,o)))))}}});const sw=Object.assign(Object.assign({},ZC),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function});var aw=Jt({name:"MenuOption",props:sw,setup(e){const t=nw(e),{NSubmenu:n,NMenu:o}=t,{props:r,mergedClsPrefixRef:i,mergedCollapsedRef:s}=o,a=n?n.mergedDisabledRef:{value:!1},l=Et((()=>a.value||e.disabled));return{mergedClsPrefix:i,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:o.mergedThemeRef,menuProps:r,dropdownEnabled:wc((()=>e.root&&s.value&&"horizontal"!==r.mode&&!l.value)),selected:Et((()=>o.mergedValueRef.value===e.internalKey)),mergedDisabled:l,handleClick:function(t){l.value||(o.doSelect(e.internalKey,e.tmNode.rawNode),function(t){const{onClick:n}=e;n&&n(t)}(t))}}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:o}}=this;return $r("div",{role:"menuitem",class:[`${e}-menu-item`,this.selected&&`${e}-menu-item--selected`,this.mergedDisabled&&`${e}-menu-item--disabled`]},$r(eb,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||void 0===this.title,internalExtraClass:["menu-tooltip"]},{default:()=>o?o(n.rawNode):td(this.title),trigger:()=>$r(JC,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),lw=Jt({name:"MenuDivider",setup(){const e=Ht(yw),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:$r("div",{class:`${t.value}-menu-divider`})}});const cw=ed(ow),dw=ed(sw),uw=ed(QC);function hw(e,t){const{rawNode:n}=e;if(function(e){return"divider"===e.type||"render"===e.type}(n))return function(e){return"divider"===e.type}(n)?$r(lw,Object.assign({key:e.key},n.props)):void 0;const{labelField:o}=t,{key:r,level:i,isGroup:s}=e,a=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:r,internalKey:r,level:i,root:0===i,isGroup:s});return e.children?e.isGroup?$r(iw,Xc(a,cw,{tmNodes:e.children,key:r})):$r(tw,Xc(a,uw,{key:r,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):$r(aw,Xc(a,dw,{key:r,tmNode:e}))}const pw=e=>{const{borderRadius:t,textColor3:n,primaryColor:o,textColor2:r,primaryColorHover:i,textColor1:s,fontSize:a,dividerColor:l}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorActive:Vi(o,{alpha:.1}),itemColorActiveCollapsed:"#0000",itemTextColor:r,itemTextColorHover:i,itemTextColorChildActive:o,itemTextColorActive:o,itemIconColor:s,itemIconColorHover:i,itemIconColorActive:o,itemIconColorChildActive:o,itemIconColorCollapsed:s,itemHeight:"42px",arrowColor:r,arrowColorHover:i,arrowColorChildActive:o,arrowColorActive:o,colorInverted:"#0000",itemColorActiveInverted:o,itemColorActiveCollapsedInverted:o,borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},{itemTextColorInverted:c="#BBB",itemTextColorHoverInverted:d="#FFF",itemTextColorChildActiveInverted:d,itemTextColorActiveInverted:d,itemIconColorInverted:c,itemIconColorHoverInverted:d,itemIconColorActiveInverted:d,itemIconColorChildActiveInverted:d,itemIconColorCollapsedInverted:c,arrowColorInverted:c,arrowColorHoverInverted:d,arrowColorChildActiveInverted:d,arrowColorActiveInverted:d,groupTextColorInverted:"#AAA"});var c,d};var fw={name:"Menu",common:If,peers:{Tooltip:Vv},self:pw};var gw={name:"Menu",common:Gp,peers:{Tooltip:Wv},self(e){const{primaryColor:t,primaryColorSuppl:n}=e,o=pw(e);return o.itemColorActive=Vi(t,{alpha:.15}),o.itemColorActiveInverted=n,o.itemColorActiveCollapsedInverted=n,o.colorInverted="#0000",o}},mw=rc([sc("menu","\n background-color: var(--color);\n color: var(--item-text-color);\n overflow: hidden;\n transition: background-color .3s var(--bezier);\n box-sizing: border-box;\n font-size: var(--font-size);\n padding-bottom: 6px;\n ",[lc("horizontal",{display:"inline-flex",paddingBottom:0},[sc("submenu",{margin:0}),sc("menu-item",{margin:0},[rc("&::before",{backgroundColor:"#0000 !important"}),lc("selected",[sc("menu-item-content",{borderBottom:"2px solid var(--border-color-horizontal)"})])]),sc("menu-item-content",{padding:"0 20px",borderBottom:"2px solid #0000"},[lc("child-active",{borderBottom:"2px solid var(--border-color-horizontal)"}),cc("disabled",[vw({borderBottom:"2px solid var(--border-color-horizontal)"},null)])])]),lc("collapsed",[sc("menu-item",[lc("selected",[rc("&::before",{backgroundColor:"var(--item-color-active-collapsed) !important"})])]),sc("menu-item-content",[sc("menu-item-content-header",{opacity:0}),ac("arrow",{opacity:0}),ac("icon",{color:"var(--item-icon-color-collapsed)"})])]),sc("menu-item","\n transition: background-color .3s var(--bezier);\n height: var(--item-height);\n margin-top: 6px;\n position: relative;\n ",[rc("&::before",'\n z-index: auto;\n content: "";\n background-color: #0000;\n position: absolute;\n left: 8px;\n right: 8px;\n top: 0;\n bottom: 0;\n pointer-events: none;\n border-radius: var(--border-radius);\n transition: background-color .3s var(--bezier);\n '),cc("disabled",[rc("&:active::before",{backgroundColor:"var(--item-color-active)"})]),lc("selected",[rc("&::before",{backgroundColor:"var(--item-color-active)"}),sc("menu-item-content",[ac("arrow",{color:"var(--arrow-color-active)"}),ac("icon",{color:"var(--item-icon-color-active)"}),sc("menu-item-content-header",{color:"var(--item-text-color-active)"},[ac("extra",{color:"var(--item-text-color-active)"})])])])]),sc("menu-item-content",'\n box-sizing: border-box;\n line-height: 1.75;\n height: 100%;\n display: grid;\n grid-template-areas: "icon content arrow";\n grid-template-columns: auto 1fr auto;\n align-items: center;\n cursor: pointer;\n position: relative;\n z-index: auto;\n padding-right: 18px;\n transition:\n background-color .3s var(--bezier),\n padding-left .3s var(--bezier),\n border-color .3s var(--bezier);\n ',[lc("disabled",{opacity:".45",cursor:"not-allowed"}),lc("collapsed",[ac("arrow",{transform:"rotate(0)"})]),lc("child-active",[sc("menu-item-content-header",{color:"var(--item-text-color-child-active)"},[ac("extra",{color:"var(--item-text-color-child-active)"})]),ac("arrow",{color:"var(--arrow-color-child-active)"}),ac("icon",{color:"var(--item-icon-color-child-active)"})]),cc("disabled",[vw(null,[ac("arrow",{color:"var(--arrow-color-hover)"}),ac("icon",{color:"var(--item-icon-color-hover)"}),sc("menu-item-content-header",{color:"var(--item-text-color-hover)"},[ac("extra",{color:"var(--item-text-color-hover)"})])])]),ac("icon","\n grid-area: icon;\n color: var(--item-icon-color);\n transition:\n color .3s var(--bezier),\n font-size .3s var(--bezier),\n margin-right .3s var(--bezier);\n box-sizing: content-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n "),ac("arrow","\n grid-area: arrow;\n font-size: 16px;\n color: var(--arrow-color);\n transform: rotate(180deg);\n opacity: 1;\n transition:\n color .3s var(--bezier),\n transform 0.2s var(--bezier),\n opacity 0.2s var(--bezier);\n "),sc("menu-item-content-header","\n grid-area: content;\n transition:\n color .3s var(--bezier),\n opacity .3s var(--bezier);\n opacity: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n color: var(--item-text-color);\n ",[rc("a","\n text-decoration: none;\n color: inherit;\n ",[rc("&::before",'\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),ac("extra","\n font-size: .93em;\n color: var(--group-text-color);\n transition: color .3s var(--bezier);\n ")])]),sc("submenu",{cursor:"pointer",position:"relative",marginTop:"6px"},[sc("menu-item-content","\n height: var(--item-height);\n "),sc("submenu-children",{overflow:"hidden",padding:0},[om({duration:".2s"})])]),sc("menu-item-group",[sc("menu-item-group-title","\n margin-top: 6px;\n color: var(--group-text-color);\n cursor: default;\n font-size: .93em;\n height: 36px;\n display: flex;\n align-items: center;\n transition:\n padding-left .3s var(--bezier),\n color .3s var(--bezier);\n ")])]),sc("menu-tooltip",[rc("a","\n color: inherit;\n text-decoration: none;\n ")]),sc("menu-divider","\n transition: background-color .3s var(--bezier);\n background-color: var(--divider-color);\n height: 1px;\n margin: 6px 18px;\n ")]);function vw(e,t){return[lc("hover",e,t),rc("&:hover",e,t)]}const bw=Object.assign(Object.assign({},wd.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownPlacement:{type:String,default:"bottom"},dropdownProps:Object,accordion:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),yw=Symbol("menu");var Cw=Jt({name:"Menu",props:bw,setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Menu","Menu",mw,fw,e,t),o=Ht(MC,null),r=Et((()=>{var t;const{collapsed:n}=e;if(void 0!==n)return n;if(o){const{collapseModeRef:e,collapsedRef:n}=o;if("width"===e.value)return null!==(t=n.value)&&void 0!==t&&t}return!1})),i=Et((()=>{const{keyField:t,childrenField:n}=e;return ju(e.items||e.options,{getChildren:e=>e[n],getKey(e){var n;return null!==(n=e[t])&&void 0!==n?n:e.name}})})),s=Et((()=>new Set(i.value.treeNodes.map((e=>e.key))))),{watchProps:a}=e,l=bt(null);(null==a?void 0:a.includes("defaultValue"))?wr((()=>{l.value=e.defaultValue})):l.value=e.defaultValue;const c=Wc(kt(e,"value"),l),d=bt([]),u=()=>{d.value=e.defaultExpandAll?i.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||i.value.getPath(c.value,{includeSelf:!1}).keyPath};(null==a?void 0:a.includes("defaultExpandedKeys"))?wr(u):u();const h=Uc(e,["expandedNames","expandedKeys"]),p=Wc(h,d),f=Et((()=>i.value.treeNodes)),g=Et((()=>i.value.getPath(c.value).keyPath));return Nt(yw,{props:e,mergedCollapsedRef:r,mergedThemeRef:n,mergedValueRef:c,mergedExpandedKeysRef:p,activePathRef:g,mergedClsPrefixRef:t,isHorizontalRef:Et((()=>"horizontal"===e.mode)),invertedRef:kt(e,"inverted"),doSelect:function(t,n){const{"onUpdate:value":o,onUpdateValue:r,onSelect:i}=e;r&&Qc(r,t,n);o&&Qc(o,t,n);i&&Qc(i,t,n);l.value=t},toggleExpand:function(t){const n=Array.from(p.value),o=n.findIndex((e=>e===t));if(~o)n.splice(o,1);else{if(e.accordion&&s.value.has(t)){const e=n.findIndex((e=>s.value.has(e)));e>-1&&n.splice(e,1)}n.push(t)}!function(t){const{"onUpdate:expandedKeys":n,onUpdateExpandedKeys:o,onExpandedNamesChange:r,onOpenNamesChange:i}=e;n&&Qc(n,t);o&&Qc(o,t);r&&Qc(r,t);i&&Qc(i,t);d.value=t}(n)}}),{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:d,mergedExpandedKeys:p,uncontrolledValue:l,mergedValue:c,activePath:g,tmNodes:f,mergedTheme:n,mergedCollapsed:r,cssVars:Et((()=>{const{inverted:t}=e,{common:{cubicBezierEaseInOut:o},self:r}=n.value,{borderRadius:i,borderColorHorizontal:s,fontSize:a,itemHeight:l,dividerColor:c}=r,d={"--divider-color":c,"--bezier":o,"--font-size":a,"--border-color-horizontal":s,"--border-radius":i,"--item-height":l};return t?(d["--group-text-color"]=r.groupTextColorInverted,d["--color"]=r.colorInverted,d["--item-text-color"]=r.itemTextColorInverted,d["--arrow-color"]=r.arrowColorInverted,d["--arrow-color-hover"]=r.arrowColorHoverInverted,d["--arrow-color-active"]=r.arrowColorActiveInverted,d["--arrow-color-child-active"]=r.arrowColorChildActiveInverted,d["--item-icon-color"]=r.itemIconColorInverted,d["--item-text-color-hover"]=r.itemTextColorHoverInverted,d["--item-icon-color-hover"]=r.itemIconColorHoverInverted,d["--item-text-color-active"]=r.itemTextColorActiveInverted,d["--item-icon-color-active"]=r.itemIconColorActiveInverted,d["--item-icon-color-collapsed"]=r.itemIconColorCollapsedInverted,d["--item-color-active"]=r.itemColorActiveInverted,d["--item-color-active-collapsed"]=r.itemColorActiveCollapsedInverted,d["--item-text-color-child-active"]=r.itemTextColorChildActiveInverted,d["--item-icon-color-child-active"]=r.itemIconColorChildActiveInverted):(d["--group-text-color"]=r.groupTextColor,d["--color"]=r.color,d["--item-text-color"]=r.itemTextColor,d["--arrow-color"]=r.arrowColor,d["--arrow-color-hover"]=r.arrowColorHover,d["--arrow-color-active"]=r.arrowColorActive,d["--arrow-color-child-active"]=r.arrowColorChildActive,d["--item-icon-color"]=r.itemIconColor,d["--item-text-color-hover"]=r.itemTextColorHover,d["--item-icon-color-hover"]=r.itemIconColorHover,d["--item-text-color-active"]=r.itemTextColorActive,d["--item-icon-color-active"]=r.itemIconColorActive,d["--item-icon-color-collapsed"]=r.itemIconColorCollapsed,d["--item-color-active"]=r.itemColorActive,d["--item-color-active-collapsed"]=r.itemColorActiveCollapsed,d["--item-text-color-child-active"]=r.itemTextColorChildActive,d["--item-icon-color-child-active"]=r.itemIconColorChildActive),d}))}},render(){const{mergedClsPrefix:e,mode:t}=this;return $r("div",{role:"horizontal"===t?"menubar":"menu",class:[`${e}-menu`,`${e}-menu--${t}`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars},this.tmNodes.map((e=>hw(e,this.$props))))}});var ww={name:"Mention",common:Gp,peers:{InternalSelectMenu:dg,Input:am},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}},xw={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 12px",closeSize:"16px",iconSize:"20px",fontSize:"14px"};const Sw=e=>{const{textColor2:t,closeColor:n,closeColorHover:o,closeColorPressed:r,infoColor:i,successColor:s,errorColor:a,warningColor:l,popoverColor:c,boxShadow2:d,primaryColor:u,lineHeight:h,borderRadius:p}=e;return Object.assign(Object.assign({},xw),{textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadowInfo:d,boxShadowSuccess:d,boxShadowError:d,boxShadowWarning:d,boxShadowLoading:d,iconColorInfo:i,iconColorSuccess:s,iconColorWarning:l,iconColorError:a,iconColorLoading:u,closeColorInfo:n,closeColorHoverInfo:o,closeColorPressedInfo:r,closeColorSuccess:n,closeColorHoverSuccess:o,closeColorPressedSuccess:r,closeColorError:n,closeColorHoverError:o,closeColorPressedError:r,closeColorWarning:n,closeColorHoverWarning:o,closeColorPressedWarning:r,closeColorLoading:n,closeColorHoverLoading:o,closeColorPressedLoading:r,loadingColor:u,lineHeight:h,borderRadius:p})};var Aw={name:"Message",common:If,self:Sw};var kw={name:"Message",common:Gp,self:Sw};const Fw={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function};var Ew=rc([sc("message-wrapper","\n margin: var(--margin);\n z-index: 0;\n transform-origin: top center;\n display: flex;\n ",[om({overflow:"visible",originalTransition:"transform .3s var(--bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),sc("message","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition:\n color .3s var(--bezier),\n box-shadow .3s var(--bezier),\n background-color .3s var(--bezier),\n opacity .3s var(--bezier),\n transform .3s var(--bezier),\n margin-bottom .3s var(--bezier);\n padding: var(--padding);\n border-radius: var(--border-radius);\n flex-wrap: nowrap;\n overflow: hidden;\n max-width: var(--max-width);\n color: var(--text-color);\n background-color: var(--color);\n box-shadow: var(--box-shadow);\n ",[ac("content","\n display: inline-block;\n line-height: var(--line-height);\n font-size: var(--font-size);\n "),ac("icon","\n position: relative;\n margin: var(--icon-margin);\n height: var(--icon-size);\n width: var(--icon-size);\n font-size: var(--icon-size);\n flex-shrink: 0;\n ",[["info","success","warning","error","loading"].map((e=>lc(`${e}-type`,[rc("> *",`\n color: var(--icon-color-${e});\n transition: color .3s var(--bezier);\n `)]))),rc("> *","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n ",[gu()])]),ac("close","\n font-size: var(--close-size);\n margin: var(--close-margin);\n transition: color .3s var(--bezier);\n flex-shrink: 0;\n ",[rc("&:hover","\n color: var(--close-color-hover);\n "),rc("&:active","\n color: var(--close-color-pressed);\n ")])]),sc("message-container","\n z-index: 6000;\n position: fixed;\n height: 0;\n overflow: visible;\n display: flex;\n flex-direction: column;\n align-items: center;\n ",[lc("top","\n top: 12px;\n left: 0;\n right: 0;\n "),lc("top-left","\n top: 12px;\n left: 12px;\n right: 0;\n align-items: flex-start;\n "),lc("top-right","\n top: 12px;\n left: 0;\n right: 12px;\n align-items: flex-end;\n "),lc("bottom","\n bottom: 4px;\n left: 0;\n right: 0;\n justify-content: flex-end;\n "),lc("bottom-left","\n bottom: 4px;\n left: 12px;\n right: 0;\n justify-content: flex-end;\n align-items: flex-start;\n "),lc("bottom-right","\n bottom: 4px;\n left: 0;\n right: 12px;\n justify-content: flex-end;\n align-items: flex-end;\n ")])]);const $w={info:$r(Qd,null),success:$r(tu,null),warning:$r(nu,null),error:$r(Yd,null)};var _w=Jt({name:"Message",props:Fw,setup(e){const{props:t,mergedClsPrefixRef:n}=Ht(Mw),o=wd("Message","Message",Ew,Aw,t,n);return{mergedClsPrefix:n,handleClose(){var t;null===(t=e.onClose)||void 0===t||t.call(e)},cssVars:Et((()=>{const{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:s,iconMargin:a,closeMargin:l,closeSize:c,iconSize:d,fontSize:u,lineHeight:h,borderRadius:p,iconColorInfo:f,iconColorSuccess:g,iconColorWarning:m,iconColorError:v,iconColorLoading:b,[tc("textColor",t)]:y,[tc("boxShadow",t)]:C,[tc("color",t)]:w,[tc("closeColor",t)]:x,[tc("closeColorPressed",t)]:S,[tc("closeColorHover",t)]:A}}=o.value;return{"--bezier":n,"--margin":i,"--padding":r,"--max-width":s,"--font-size":u,"--icon-margin":a,"--icon-size":d,"--close-size":c,"--close-margin":l,"--text-color":y,"--color":w,"--box-shadow":C,"--icon-color-info":f,"--icon-color-success":g,"--icon-color-warning":m,"--icon-color-error":v,"--icon-color-loading":b,"--close-color":x,"--close-color-pressed":S,"--close-color-hover":A,"--line-height":h,"--border-radius":p}})),placement:t.placement}},render(){const{icon:e,type:t,closable:n,content:o,mergedClsPrefix:r,cssVars:i,handleClose:s}=this;return $r("div",{class:`${r}-message-wrapper`,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:Object.assign(Object.assign({},i),{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"})},$r("div",{class:`${r}-message ${r}-message--${t}-type`},$r("div",{class:`${r}-message__icon ${r}-message__icon--${t}-type`},$r(su,null,{default:()=>[Rw(e,t,r)]})),$r("div",{class:`${r}-message__content`},td(o)),n?$r(uu,{clsPrefix:r,class:`${r}-message__close`,onClick:s}):null))}});function Rw(e,t,n){return"function"==typeof e?e():$r(cu,{clsPrefix:n,key:t},{default:()=>"loading"===t?$r(vu,{clsPrefix:n,strokeWidth:24,scale:.85}):$w[t]})}var Bw=Jt({name:"MessageEnvironment",props:Object.assign(Object.assign({},Fw),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=bt(!0);function o(){const{duration:n}=e;n&&(t=window.setTimeout(r,n))}function r(){const{onHide:o}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),o&&o()}return cn((()=>{o()})),{show:n,hide:r,handleClose:function(){const{onClose:t}=e;t&&t(),r()},handleAfterLeave:function(){const{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:o,internalKey:r}=e;t&&t(),n&&n(r),o&&o()},handleMouseleave:function(e){e.currentTarget===e.target&&o()},handleMouseenter:function(e){e.currentTarget===e.target&&null!==t&&(window.clearTimeout(t),t=null)},deactivate:function(){r()}}},render(){return $r(au,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?$r(_w,{content:this.content,type:this.type,icon:this.icon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}});const Tw=Symbol("messageApi"),Dw=Object.assign(Object.assign({},wd.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),Mw=Symbol("messageProvider");var Lw=Jt({name:"MessageProvider",props:Dw,setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=bt([]),o=bt({}),r={info:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"info"})),success:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"success"})),warning:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"warning"})),error:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"error"})),loading:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"loading"})),destroyAll:function(){Object.values(o.value).forEach((e=>{e.hide()}))}};function i(t,r={}){const i=Yi(),s=st(Object.assign(Object.assign({},r),{content:t,key:i,destroy:()=>{o.value[i].hide()}})),{max:a}=e;return a&&n.value.length>=a&&n.value.shift(),n.value.push(s),s}return Nt(Mw,{props:e,mergedClsPrefixRef:t}),Nt(Tw,r),Object.assign({mergedClsPrefix:t,messageRefs:o,messageList:n,handleAfterLeave:function(e){n.value.splice(n.value.findIndex((t=>t.key===e)),1),delete o.value[e]}},r)},render(){var e;return $r(so,null,Mo(this.$slots,"default"),this.messageList.length?$r(no,{to:null!==(e=this.to)&&void 0!==e?e:"body"},$r("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map((e=>$r(Bw,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},Zc(e,["destroy"],void 0),{duration:void 0===e.duration?this.duration:e.duration,keepAliveOnHover:void 0===e.keepAliveOnHover?this.keepAliveOnHover:e.keepAliveOnHover,closable:void 0===e.closable?this.closable:e.closable})))))):null)}});function Pw(){const e=Ht(Tw,null);return null===e&&od("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}var Ow={closeMargin:"18px 14px",closeSize:"16px",width:"365px",padding:"16px"};var zw={name:"Notification",common:Gp,peers:{Scrollbar:Yf},self:e=>{const{textColor2:t,successColor:n,infoColor:o,warningColor:r,errorColor:i,popoverColor:s,closeColor:a,closeColorHover:l,textColor1:c,textColor3:d,borderRadius:u,fontWeightStrong:h,boxShadow2:p,lineHeight:f,fontSize:g}=e;return Object.assign(Object.assign({},Ow),{borderRadius:u,lineHeight:f,fontSize:g,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:o,iconColorWarning:r,iconColorError:i,color:s,textColor:t,closeColor:a,closeColorHover:l,closeColorPressed:a,headerTextColor:c,descriptionTextColor:d,actionTextColor:t,boxShadow:p})}},Iw={titleFontSize:"18px",backSize:"22px"};var jw={iconSize:"22px"};const Nw=e=>{const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},jw),{fontSize:t,iconColor:n})};var Hw={name:"Popconfirm",common:If,peers:{Button:jm,Popover:mg},self:Nw};var Ww={name:"Popconfirm",common:Gp,peers:{Button:Nm,Popover:vg},self:Nw};const Vw=Symbol("popconfirm"),Uw={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},Kw=ed(Uw);var Gw=Jt({name:"NPopconfirmPanel",props:Uw,setup(e){const{localeRef:t}=Pd("Popconfirm"),{mergedClsPrefixRef:n,mergedThemeRef:o}=Ht(Vw);return Object.assign(Object.assign({},Pd("Popconfirm")),{mergedClsPrefix:n,cssVars:Et((()=>{const{common:{cubicBezierEaseInOut:e},self:{fontSize:t,iconSize:n,iconColor:r}}=o.value;return{"--bezier":e,"--font-size":t,"--icon-size":n,"--icon-color":r}})),localizedPositiveText:Et((()=>e.positiveText||t.value.positiveText)),localizedNegativeText:Et((()=>e.negativeText||t.value.negativeText)),handlePositiveClick(t){e.onPositiveClick(t)},handleNegativeClick(t){e.onNegativeClick(t)}})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=t.action?t.action():null===this.negativeText&&null===this.positiveText?null:[null!==this.negativeText&&$r(qm,{size:"small",onClick:this.handleNegativeClick},{default:()=>this.localizedNegativeText}),null!==this.positiveText&&$r(qm,{size:"small",type:"primary",onClick:this.handlePositiveClick},{default:()=>this.localizedPositiveText})];return $r("div",{style:this.cssVars},$r("div",{class:`${e}-popconfirm__body`},this.showIcon?$r("div",{class:`${e}-popconfirm__icon`},Mo(t,"icon",void 0,(()=>[$r(cu,{clsPrefix:e},{default:()=>$r(nu,null)})]))):null,Mo(t,"default")),n?$r("div",{class:`${e}-popconfirm__action`},n):null)}}),Yw=sc("popconfirm",[ac("body","\n font-size: var(--font-size);\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n position: relative;\n ",[ac("icon","\n display: flex;\n font-size: var(--icon-size);\n color: var(--icon-color);\n transition: color .3s var(--bezier);\n margin: 0 8px 0 0;\n ")]),ac("action","\n margin-top: 8px;\n display: flex;\n justify-content: flex-end;\n ",[sc("button",[rc("&:not(:last-child)",{marginRight:"8px"})])])]);var qw=Jt({name:"Popconfirm",props:Object.assign(Object.assign(Object.assign({},wd.props),Eg),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},onPositiveClick:Function,onNegativeClick:Function}),__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Sd(),n=wd("Popconfirm","Popconfirm",Yw,Hw,e,t),o=bt(null);return Nt(Vw,{mergedThemeRef:n,mergedClsPrefixRef:t}),{mergedTheme:n,popoverInstRef:o,handlePositiveClick:function(t){const{onPositiveClick:n,"onUpdate:show":r}=e;Promise.resolve(!n||n(t)).then((e=>{var t;!1!==e&&(null===(t=o.value)||void 0===t||t.setShow(!1),r&&Qc(r,!1))}))},handleNegativeClick:function(t){const{onNegativeClick:n,"onUpdate:show":r}=e;Promise.resolve(!n||n(t)).then((e=>{var t;!1!==e&&(null===(t=o.value)||void 0===t||t.setShow(!1),r&&Qc(r,!1))}))}}},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return $r($g,Zc(t,Kw,{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.activator||e.trigger,default:()=>{const n=Xc(t,Kw);return $r(Gw,Object.assign(Object.assign({},n),{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}});var Xw={name:"Popselect",common:Gp,peers:{Popover:vg,InternalSelectMenu:dg}};var Zw={name:"Progress",common:Gp,self(e){const t=(e=>{const{infoColor:t,successColor:n,warningColor:o,errorColor:r,textColor2:i,progressRailColor:s,fontSize:a,fontWeight:l}=e;return{fontSize:a,fontSizeCircle:"28px",fontWeightCircle:l,railColor:s,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:o,iconColorError:r,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:o,fillColorError:r,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}})(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}};var Jw={name:"Rate",common:Gp,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},Qw={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};const ex=e=>{const{textColor2:t,textColor1:n,errorColor:o,successColor:r,infoColor:i,warningColor:s,lineHeight:a,fontWeightStrong:l}=e;return Object.assign(Object.assign({},Qw),{lineHeight:a,titleFontWeight:l,titleTextColor:n,textColor:t,iconColorError:o,iconColorSuccess:r,iconColorInfo:i,iconColorWarning:s})};var tx={name:"Result",common:If,self:ex};var nx={name:"Result",common:Gp,self:ex},ox=$r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},$r("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),$r("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),$r("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),$r("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),$r("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),$r("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),rx=$r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},$r("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),$r("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),$r("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),ix=$r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},$r("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),$r("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),$r("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),$r("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),$r("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),$r("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),sx=$r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},$r("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),$r("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),ax=sc("result","\n color: var(--text-color);\n line-height: var(--line-height);\n font-size: var(--font-size);\n transition:\n color .3s var(--bezier);\n",[sc("result-icon","\n height: 1em;\n display: flex;\n justify-content: center;\n transition: color .3s var(--bezier);\n color: var(--icon-color);\n font-size: var(--icon-size);\n ",[ac("status-image",{width:"1em"}),rc("svg",{height:"1em"})]),sc("result-content",{marginTop:"24px"}),sc("result-footer","\n margin-top: 24px;\n text-align: center;\n "),sc("result-header",[ac("title","\n margin-top: 16px;\n font-weight: var(--title-font-weight);\n transition: color .3s var(--bezier);\n text-align: center;\n color: var(--title-text-color);\n font-size: var(--title-font-size);\n "),ac("description","\n margin-top: 4px;\n text-align: center;\n font-size: var(--font-size);\n ")])]);const lx={403:sx,404:ox,418:ix,500:rx},cx={info:$r(Qd,null),success:$r(tu,null),warning:$r(nu,null),error:$r(Yd,null)};var dx=Jt({name:"Result",props:Object.assign(Object.assign({},wd.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Result","Result",ax,tx,e,t);return{mergedClsPrefix:t,cssVars:Et((()=>{const{size:t,status:o}=e,{common:{cubicBezierEaseInOut:r},self:{textColor:i,lineHeight:s,titleTextColor:a,titleFontWeight:l,[tc("iconColor",o)]:c,[tc("fontSize",t)]:d,[tc("titleFontSize",t)]:u,[tc("iconSize",t)]:h}}=n.value;return{"--bezier":r,"--font-size":d,"--icon-size":h,"--line-height":s,"--text-color":i,"--title-font-size":u,"--title-font-weight":l,"--title-text-color":a,"--icon-color":c}}))}},render(){const{status:e,$slots:t,mergedClsPrefix:n}=this;return $r("div",{class:`${n}-result`,style:this.cssVars},$r("div",{class:`${n}-result-icon`},e in lx?lx[e]:$r(cu,{clsPrefix:n},{default:()=>cx[e]})),$r("div",{class:`${n}-result-header`},$r("div",{class:`${n}-result-header__title`},this.title),$r("div",{class:`${n}-result-header__description`},this.description)),t.default?$r("div",{class:`${n}-result-content`},t):null,$r("div",{class:`${n}-result-footer`},Mo(t,"footer")))}});const ux={name:"Skeleton",common:Gp,self(e){const{heightSmall:t,heightMedium:n,heightLarge:o,borderRadius:r}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:r,heightSmall:t,heightMedium:n,heightLarge:o}}};var hx={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};var px={name:"Slider",common:Gp,self(e){const{railColor:t,modalColor:n,primaryColorSuppl:o,popoverColor:r,textColor2:i,cardColor:s,borderRadius:a,fontSize:l,opacityDisabled:c}=e;return Object.assign(Object.assign({},hx),{fontSize:l,railColor:t,railColorHover:t,fillColor:o,fillColorHover:o,opacityDisabled:c,handleColor:"#FFF",dotColor:s,dotColorModal:n,dotColorPopover:r,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:r,indicatorBoxShadow:"0 2px 8px 0 rgba(0, 0, 0, 0.12)",indicatorTextColor:i,indicatorBorderRadius:a,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}};const fx=e=>{const{opacityDisabled:t,heightTiny:n,heightSmall:o,heightMedium:r,heightLarge:i,heightHuge:s,primaryColor:a,fontSize:l}=e;return{fontSize:l,textColor:a,sizeTiny:n,sizeSmall:o,sizeMedium:r,sizeLarge:i,sizeHuge:s,color:a,opacitySpinning:t}};var gx={name:"Spin",common:If,self:fx};var mx={name:"Spin",common:Gp,self:fx},vx=rc([rc("@keyframes spin-rotate","\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n "),sc("spin-container",{position:"relative"},[sc("spin-body","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[Xf()])]),sc("spin-body","\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n "),sc("spin","\n display: inline-flex;\n height: var(--size);\n width: var(--size);\n font-size: var(--size);\n color: var(--color);\n ",[lc("rotate","\n animation: spin-rotate 2s linear infinite;\n ")]),sc("spin-description","\n display: inline-block;\n font-size: var(--font-size);\n color: var(--text-color);\n transition: color .3s var(--bezier);\n margin-top: 8px;\n "),sc("spin-content","\n opacity: 1;\n transition: opacity .3s var(--bezier);\n pointer-events: all;\n ",[lc("spinning","\n user-select: none;\n pointer-events: none;\n opacity: var(--opacity-spinning);\n ")])]);const bx={small:20,medium:18,large:16};var yx=Jt({name:"Spin",props:Object.assign(Object.assign({},wd.props),{description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0}}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Spin","Spin",vx,gx,e,t);return{mergedClsPrefix:t,compitableShow:Uc(e,["spinning","show"]),mergedStrokeWidth:Et((()=>{const{strokeWidth:t}=e;if(void 0!==t)return t;const{size:n}=e;return bx["number"==typeof n?"medium":n]})),cssVars:Et((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:o},self:r}=n.value,{opacitySpinning:i,color:s,textColor:a}=r;return{"--bezier":o,"--opacity-spinning":i,"--size":"number"==typeof t?Ei(t):r[tc("size",t)],"--color":s,"--text-color":a}}))}},render(){var e;const{$slots:t,mergedClsPrefix:n,description:o}=this,r=t.icon&&this.rotate,i=(o||t.description)&&$r("div",{class:`${n}-spin-description`},o||(null===(e=t.description)||void 0===e?void 0:e.call(t))),s=t.icon?$r("div",{class:`${n}-spin-body`},$r("div",{class:[`${n}-spin`,r&&`${n}-spin--rotate`],style:t.default?"":this.cssVars},t.icon()),i):$r("div",{class:`${n}-spin-body`},$r(vu,{clsPrefix:n,style:t.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${n}-spin`}),i);return t.default?$r("div",{class:`${n}-spin-container`,style:this.cssVars},$r("div",{class:[`${n}-spin-content`,this.compitableShow&&`${n}-spin-content--spinning`]},t),$r(Kr,{name:"fade-in-transition"},{default:()=>this.compitableShow?s:null})):s}});const Cx=e=>{const{textColor2:t,textColor3:n,fontSize:o,fontWeight:r}=e;return{labelFontSize:o,labelFontWeight:r,valueFontWeight:r,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}};var wx={name:"Statistic",common:If,self:Cx};var xx={name:"Statistic",common:Gp,self:Cx},Sx=sc("statistic",[ac("label","\n font-weight: var(--label-font-weight);\n transition: .3s color var(--bezier);\n font-size: var(--label-font-size);\n color: var(--label-text-color);\n "),sc("statistic-value","\n margin-top: 4px;\n font-weight: var(--value-font-weight);\n ",[ac("prefix","\n margin: 0 4px 0 0;\n font-size: 24px;\n transition: .3s color var(--bezier);\n color: var(--value-prefix-text-color);\n ",[sc("icon",{verticalAlign:"-0.125em"})]),ac("content","\n font-size: 24px;\n transition: .3s color var(--bezier);\n color: var(--value-text-color);\n "),ac("suffix","\n margin: 0 0 0 4px;\n font-size: 24px;\n transition: .3s color var(--bezier);\n color: var(--value-suffix-text-color);\n ",[sc("icon",{verticalAlign:"-0.125em"})])])]);var Ax=Jt({name:"Statistic",props:Object.assign(Object.assign({},wd.props),{label:{type:String,default:void 0},value:{type:[String,Number],default:void 0},valueStyle:{type:[Object,String],default:void 0}}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Statistic","Statistic",Sx,wx,e,t);return{mergedClsPrefix:t,cssVars:Et((()=>{const{self:{labelFontWeight:e,valueFontWeight:t,valuePrefixTextColor:o,labelTextColor:r,valueSuffixTextColor:i,valueTextColor:s,labelFontSize:a},common:{cubicBezierEaseInOut:l}}=n.value;return{"--bezier":l,"--label-font-size":a,"--label-font-weight":e,"--label-text-color":r,"--value-font-weight":t,"--value-prefix-text-color":o,"--value-suffix-text-color":i,"--value-text-color":s}}))}},render(){var e;const{$slots:t,mergedClsPrefix:n}=this;return $r("div",{class:`${n}-statistic`,style:this.cssVars},$r("div",{class:`${n}-statistic__label`},this.label||(null===(e=t.label)||void 0===e?void 0:e.call(t))),$r("div",{class:`${n}-statistic-value`},t.prefix?$r("span",{class:`${n}-statistic-value__prefix`},Mo(t,"prefix")):null,void 0!==this.value?$r("span",{class:`${n}-statistic-value__content`},this.value):$r("span",{class:`${n}-statistic-value__content`},t),t.suffix?$r("span",{class:`${n}-statistic-value__suffix`},Mo(t,"suffix")):null))}}),kx={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};var Fx={name:"Steps",common:Gp,self:e=>{const{fontWeightStrong:t,baseColor:n,textColorDisabled:o,primaryColor:r,errorColor:i,textColor1:s,textColor2:a}=e;return Object.assign(Object.assign({},kx),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:o,indicatorTextColorFinish:r,indicatorTextColorError:i,indicatorBorderColorProcess:r,indicatorBorderColorWait:o,indicatorBorderColorFinish:r,indicatorBorderColorError:i,indicatorColorProcess:r,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:r,splitorColorError:o,headerTextColorProcess:s,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:i,descriptionTextColorProcess:a,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:i})}},Ex={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};var $x={name:"Switch",common:Gp,self(e){const{primaryColorSuppl:t,opacityDisabled:n,borderRadius:o,primaryColor:r,textColor2:i}=e;return Object.assign(Object.assign({},Ex),{textColor:i,loadingColor:t,opacityDisabled:n,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${Vi(r,{alpha:.3})}`})}};var _x={name:"Switch",common:If,self:e=>{const{primaryColor:t,opacityDisabled:n,borderRadius:o}=e;return Object.assign(Object.assign({},Ex),{textColor:"white",loadingColor:t,opacityDisabled:n,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 0 2px ${Vi(t,{alpha:.2})}`})}},Rx=sc("switch","\n height: var(--height);\n min-width: var(--width);\n vertical-align: middle;\n user-select: none;\n display: inline-flex;\n outline: none;\n justify-content: center;\n align-items: center;\n",[ac("children-placeholder","\n height: var(--rail-height);\n display: flex;\n flex-direction: column;\n overflow: hidden;\n pointer-events: none;\n visibility: hidden;\n "),ac("rail-placeholder","\n display: flex;\n flex-wrap: none;\n "),ac("button-placeholder","\n width: calc(1.75 * var(--rail-height));\n height: var(--rail-height);\n "),sc("base-loading","\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n font-size: calc(var(--button-width) - 4px);\n color: var(--loading-color);\n transition: color .3s var(--bezier);\n ",[ig({originalTransform:"translateX(-50%) translateY(-50%)"})]),ac("checked, unchecked","\n transition: color .3s var(--bezier);\n color: var(--text-color);\n box-sizing: border-box;\n position: absolute;\n white-space: nowrap;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n line-height: 1;\n "),ac("checked","\n right: 0;\n padding-right: calc(1.25 * var(--rail-height) - var(--offset));\n "),ac("unchecked","\n left: 0;\n justify-content: flex-end;\n padding-left: calc(1.25 * var(--rail-height) - var(--offset));\n "),rc("&:focus",[ac("rail","\n box-shadow: var(--box-shadow-focus);\n ")]),lc("round",[ac("rail",{borderRadius:"calc(var(--rail-height) / 2)"},[ac("button",{borderRadius:"calc(var(--button-height) / 2)"})])]),cc("disabled",[lc("pressed",[ac("rail",[ac("button",{maxWidth:"var(--button-width-pressed)"})])]),ac("rail",[rc("&:active",[ac("button",{maxWidth:"var(--button-width-pressed)"})])]),lc("active",[lc("pressed",[ac("rail",[ac("button",{left:"calc(100% - var(--offset) - var(--button-width-pressed))"})])]),ac("rail",[rc("&:active",[ac("button",{left:"calc(100% - var(--offset) - var(--button-width-pressed))"})])])])]),lc("active",[ac("rail",[ac("button",{left:"calc(100% - (var(--rail-height) + var(--button-width)) / 2)"})])]),ac("rail","\n overflow: hidden;\n height: var(--rail-height);\n min-width: var(--rail-width);\n border-radius: var(--rail-border-radius);\n cursor: pointer;\n position: relative;\n transition:\n background .3s var(--bezier),\n box-shadow .3s var(--bezier);\n background-color: var(--rail-color);\n ",[ac("button",'\n top: var(--offset);\n left: var(--offset);\n height: var(--button-width);\n width: var(--button-width-pressed);\n max-width: var(--button-width);\n border-radius: var(--button-border-radius);\n background-color: var(--button-color);\n box-shadow: var(--button-box-shadow);\n box-sizing: border-box;\n cursor: inherit;\n content: "";\n position: absolute;\n transition:\n background-color .3s var(--bezier),\n left .3s var(--bezier),\n opacity .3s var(--bezier),\n max-width .3s var(--bezier),\n box-shadow .3s var(--bezier);\n ')]),lc("active",[ac("rail",{backgroundColor:"var(--rail-color-active)"})]),lc("disabled",[ac("rail","\n cursor: not-allowed;\n opacity: .5;\n ")])]);var Bx=Jt({name:"Switch",props:Object.assign(Object.assign({},wd.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,onChange:[Function,Array]}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Switch","Switch",Rx,_x,e,t),o=Zi(e),{mergedSizeRef:r,mergedDisabledRef:i}=o,s=bt(e.defaultValue),a=Wc(kt(e,"value"),s),l=Et((()=>a.value===e.checkedValue)),c=bt(!1),d=bt(!1);function u(t){const{"onUpdate:value":n,onChange:r,onUpdateValue:i}=e,{nTriggerFormInput:a,nTriggerFormChange:l}=o;n&&Qc(n,t),i&&Qc(i,t),r&&Qc(r,t),s.value=t,a(),l()}return{handleClick:function(){i.value||(a.value!==e.checkedValue?u(e.checkedValue):u(e.uncheckedValue))},handleBlur:function(){d.value=!1,function(){const{nTriggerFormBlur:e}=o;e()}(),c.value=!1},handleFocus:function(){d.value=!0,function(){const{nTriggerFormFocus:e}=o;e()}()},handleKeyup:function(e){"Space"===e.code&&(u(!a.value),c.value=!1)},handleKeydown:function(e){"Space"===e.code&&(e.preventDefault(),c.value=!0)},mergedRailStyle:Et((()=>{const{railStyle:t}=e;if(t)return t({focused:d.value,checked:l.value})})),pressed:c,mergedClsPrefix:t,mergedValue:a,checked:l,mergedDisabled:i,cssVars:Et((()=>{const{value:e}=r,{self:{opacityDisabled:t,railColor:o,railColorActive:i,buttonBoxShadow:s,buttonColor:a,boxShadowFocus:l,loadingColor:c,textColor:d,[tc("buttonHeight",e)]:u,[tc("buttonWidth",e)]:h,[tc("buttonWidthPressed",e)]:p,[tc("railHeight",e)]:f,[tc("railWidth",e)]:g,[tc("railBorderRadius",e)]:m,[tc("buttonBorderRadius",e)]:v},common:{cubicBezierEaseInOut:b}}=n.value,y=Ei((Fi(f)-Fi(u))/2);return{"--bezier":b,"--button-border-radius":v,"--button-box-shadow":s,"--button-color":a,"--button-width":h,"--button-width-pressed":p,"--button-height":u,"--height":Ei(Math.max(Fi(f),Fi(u))),"--offset":y,"--opacity-disabled":t,"--rail-border-radius":m,"--rail-color":o,"--rail-color-active":i,"--rail-height":f,"--rail-width":g,"--width":Fi(f)>Fi(u)?g:Ei(Fi(g)+Fi(u)-Fi(f)),"--box-shadow-focus":l,"--loading-color":c,"--text-color":d}}))}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:o,$slots:r}=this,{checked:i,unchecked:s}=r;return $r("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.pressed&&`${e}-switch--pressed`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},$r("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:o},(i||s)&&$r("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},$r("div",{class:`${e}-switch__rail-placeholder`},$r("div",{class:`${e}-switch__button-placeholder`}),null==i?void 0:i()),$r("div",{class:`${e}-switch__rail-placeholder`},$r("div",{class:`${e}-switch__button-placeholder`}),null==s?void 0:s())),$r("div",{class:`${e}-switch__button`},$r(Kr,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?$r(vu,{key:"loading",clsPrefix:e,strokeWidth:20}):null}),i&&$r("div",{key:"checked",class:`${e}-switch__checked`},i()),s&&$r("div",{key:"unchecked",class:`${e}-switch__unchecked`},s()))))}}),Tx={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};const Dx=e=>{const{dividerColor:t,cardColor:n,modalColor:o,popoverColor:r,tableHeaderColor:i,tableColorStriped:s,textColor1:a,textColor2:l,borderRadius:c,fontWeightStrong:d,lineHeight:u,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:f}=e;return Object.assign(Object.assign({},Tx),{fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:f,lineHeight:u,borderRadius:c,borderColor:Wi(n,t),borderColorModal:Wi(o,t),borderColorPopover:Wi(r,t),tdColor:n,tdColorModal:o,tdColorPopover:r,tdColorStriped:Wi(n,s),tdColorStripedModal:Wi(o,s),tdColorStripedPopover:Wi(r,s),thColor:Wi(n,i),thColorModal:Wi(o,i),thColorPopover:Wi(r,i),thTextColor:a,tdTextColor:l,thFontWeight:d})};var Mx={name:"Table",common:If,self:Dx};var Lx={name:"Table",common:Gp,self:Dx},Px=rc([sc("table","\n font-size: var(--font-size);\n font-variant-numeric: tabular-nums;\n line-height: var(--line-height);\n width: 100%;\n border-radius: var(--border-radius) var(--border-radius) 0 0;\n text-align: left;\n border-collapse: separate;\n border-spacing: 0;\n overflow: hidden;\n background-color: var(--td-color);\n transition:\n background-color .3s var(--bezier),\n border-color .3s var(--bezier),\n color .3s var(--bezier);\n --merged-border-color: var(--border-color);\n ",[rc("th","\n white-space: nowrap;\n transition:\n background-color .3s var(--bezier),\n border-color .3s var(--bezier),\n color .3s var(--bezier);\n text-align: inherit;\n padding: var(--th-padding);\n vertical-align: inherit;\n text-transform: none;\n border: none;\n font-weight: var(--th-font-weight);\n color: var(--th-text-color);\n background-color: var(--th-color);\n border-color: var(--merged-border-color);\n border-bottom: 1px solid var(--merged-border-color);\n border-right: 1px solid var(--merged-border-color);\n ",[rc("&:last-child","\n border-right: none;\n ")]),rc("td","\n transition:\n background-color .3s var(--bezier),\n border-color .3s var(--bezier),\n color .3s var(--bezier);\n padding: var(--td-padding);\n color: var(--td-text-color);\n background-color: var(--td-color);\n border-right: 1px solid var(--merged-border-color);\n border-bottom: 1px solid var(--merged-border-color);\n ",[rc("&:last-child","\n border-right: none;\n ")]),lc("bordered","\n border: 1px solid var(--merged-border-color);\n border-radius: var(--border-radius);\n ",[rc("tr",[rc("&:last-child",[rc("td","\n border-bottom: none;\n ")])])]),lc("single-line",[rc("th","\n border-right: none;\n "),rc("td","\n border-right: none;\n ")]),lc("single-column",[rc("tr",[rc("&:not(:last-child)",[rc("td","\n border-bottom: none;\n ")])])]),lc("striped",[rc("tr:nth-of-type(even)",[rc("td","background-color: var(--td-color-striped)")])]),cc("bottom-bordered",[rc("tr",[rc("&:last-child",[rc("td","\n border-bottom: none;\n ")])])])]),uc(sc("table","\n background-color: var(--td-color-modal);\n --merged-border-color: var(--border-color-modal);\n ",[rc("th","\n background-color: var(--th-color-modal);\n "),rc("td","\n background-color: var(--td-color-modal);\n ")])),hc(sc("table","\n background-color: var(--td-color-popover);\n --merged-border-color: var(--border-color-popover);\n ",[rc("th","\n background-color: var(--th-color-popover);\n "),rc("td","\n background-color: var(--td-color-popover);\n ")]))]);var Ox=Jt({name:"Table",props:Object.assign(Object.assign({},wd.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),setup(e){const{mergedClsPrefixRef:t}=Sd(e),n=wd("Table","Table",Px,Mx,e,t);return{mergedClsPrefix:t,cssVars:Et((()=>{const{size:t}=e,{self:{borderColor:o,tdColor:r,tdColorModal:i,tdColorPopover:s,thColor:a,thColorModal:l,thColorPopover:c,thTextColor:d,tdTextColor:u,borderRadius:h,thFontWeight:p,lineHeight:f,borderColorModal:g,borderColorPopover:m,tdColorStriped:v,tdColorStripedModal:b,tdColorStripedPopover:y,[tc("fontSize",t)]:C,[tc("tdPadding",t)]:w,[tc("thPadding",t)]:x},common:{cubicBezierEaseInOut:S}}=n.value;return{"--bezier":S,"--td-color":r,"--td-color-modal":i,"--td-color-popover":s,"--td-text-color":u,"--border-color":o,"--border-color-modal":g,"--border-color-popover":m,"--border-radius":h,"--font-size":C,"--th-color":a,"--th-color-modal":l,"--th-color-popover":c,"--th-font-weight":p,"--th-text-color":d,"--line-height":f,"--td-padding":w,"--th-padding":x,"--td-color-striped":v,"--td-color-striped-modal":b,"--td-color-striped-popover":y}}))}},render(){const{mergedClsPrefix:e}=this;return $r("table",{class:[`${e}-table`,{[`${e}-table--bottom-bordered`]:this.bottomBordered,[`${e}-table--bordered`]:this.bordered,[`${e}-table--single-line`]:this.singleLine,[`${e}-table--single-column`]:this.singleColumn,[`${e}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),zx={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0"};const Ix=e=>{const{textColor2:t,primaryColor:n,textColorDisabled:o,closeColor:r,closeColorHover:i,closeColorPressed:s,tabColor:a,baseColor:l,dividerColor:c,fontWeight:d,textColor1:u,borderRadius:h,fontSize:p,fontWeightStrong:f}=e;return Object.assign(Object.assign({},zx),{colorSegment:a,tabFontSizeCard:p,tabTextColorLine:u,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:o,tabTextColorSegment:u,tabTextColorActiveSegment:n,tabTextColorHoverSegment:n,tabTextColorDisabledSegment:o,tabTextColorBar:u,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:o,tabTextColorCard:u,tabTextColorHoverCard:u,tabTextColorActiveCard:n,tabTextColorDisabledCard:o,barColor:n,closeColor:r,closeColorHover:i,closeColorPressed:s,tabColor:a,tabColorSegment:l,tabBorderColor:c,tabFontWeightActive:d,tabFontWeight:d,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:f})};var jx={name:"Tabs",common:If,self:Ix};var Nx={name:"Tabs",common:Gp,self(e){const t=Ix(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};const Hx=Symbol("tabs");var Wx=sc("tabs","\n width: 100%;\n transition:\n background-color .3s var(--bezier),\n border-color .3s var(--bezier);\n",[sc("tabs-rail","\n padding: 3px;\n border-radius: var(--tab-border-radius);\n width: 100%;\n background-color: var(--color-segment);\n transition: background-color .3s var(--bezier);\n display: flex;\n align-items: center;\n ",[sc("tabs-tab-wrapper","\n flex-basis: 0;\n flex-grow: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[sc("tabs-tab","\n overflow: hidden;\n border-radius: var(--tab-border-radius);\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n ",[lc("active","\n font-weight: var(--font-weight-strong);\n background-color: var(--tab-color-segment);\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);\n ")])])]),lc("flex",[sc("tabs-nav",{width:"100%"},[sc("tabs-wrapper",{width:"100%"},[sc("tabs-tab",{marginRight:0})])])]),sc("tabs-nav","\n box-sizing: border-box;\n line-height: 1.5;\n display: flex;\n transition: border-color .3s var(--bezier);\n ",[ac("prefix, suffix","\n display: flex;\n align-items: center;\n "),ac("prefix","padding-right: 16px;"),ac("suffix","padding-left: 16px;")]),sc("tabs-nav-scroll-wrapper","\n flex: 1;\n position: relative;\n overflow: hidden;\n ",[lc("shadow-before",[rc("&::before","\n box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);\n ")]),lc("shadow-after",[rc("&::after","\n box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);\n ")]),rc("&::before, &::after",'\n transition: box-shadow .3s var(--bezier);\n pointer-events: none;\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n width: 20px;\n z-index: 1;\n '),rc("&::before","\n left: 0;\n "),rc("&::after","\n right: 0;\n ")]),sc("tabs-nav-scroll-content","\n display: flex;\n position: relative;\n "),sc("tabs-wrapper","\n display: inline-flex;\n flex-wrap: nowrap;\n position: relative;\n "),sc("tabs-tab-wrapper","\n display: flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n flex-grow: 0;\n "),sc("tabs-tab","\n cursor: pointer;\n white-space: nowrap;\n flex-wrap: nowrap;\n display: inline-flex;\n align-items: center;\n color: var(--tab-text-color);\n font-size: var(--tab-font-size);\n background-clip: padding-box;\n padding: var(--tab-padding);\n transition:\n box-shadow .3s var(--bezier),\n color .3s var(--bezier),\n background-color .3s var(--bezier),\n border-color .3s var(--bezier);\n ",[lc("disabled",{cursor:"not-allowed"}),ac("close","\n margin-left: 8px;\n font-size: 14px;\n transition: color .3s var(--bezier);\n "),ac("label","\n display: flex;\n align-items: center;\n ")]),sc("tabs-bar","\n position: absolute;\n bottom: 0;\n height: 2px;\n border-radius: 1px;\n background-color: var(--bar-color);\n transition:\n left .2s var(--bezier),\n max-width .2s var(--bezier),\n background-color .3s var(--bezier);\n ",[lc("transition-disabled","\n transition: none;\n "),lc("disabled","\n background-color: var(--tab-text-color-disabled)\n ")]),sc("tab-pane","\n color: var(--pane-text-color);\n width: 100%;\n padding: var(--pane-padding);\n transition:\n color .3s var(--bezier),\n background-color .3s var(--bezier);\n "),sc("tabs-tab-pad","\n width: var(--tab-gap);\n flex-grow: 0;\n flex-shrink: 0;\n "),lc("line-type, bar-type",[sc("tabs-tab","\n font-weight: var(--tab-font-weight-active);\n box-sizing: border-box;\n vertical-align: bottom;\n ",[rc("&:hover",{color:"var(--tab-text-color-hover)"}),lc("active",{color:"var(--tab-text-color-active)"}),lc("disabled",{color:"var(--tab-text-color-disabled)"})])]),sc("tabs-nav",[lc("line-type",[ac("prefix, suffix","\n transition: border-color .3s var(--bezier);\n border-bottom: 1px solid var(--tab-border-color);\n "),sc("tabs-nav-scroll-content","\n transition: border-color .3s var(--bezier);\n border-bottom: 1px solid var(--tab-border-color);\n "),sc("tabs-bar","\n border-radius: 0;\n bottom: -1px;\n ")]),lc("card-type",[ac("prefix, suffix","\n transition: border-color .3s var(--bezier);\n border-bottom: 1px solid var(--tab-border-color);\n "),sc("tabs-pad","\n flex-grow: 1;\n transition: border-color .3s var(--bezier);\n border-bottom: 1px solid var(--tab-border-color);\n "),sc("tabs-tab-pad","\n transition: border-color .3s var(--bezier);\n border-bottom: 1px solid var(--tab-border-color);\n "),sc("tabs-tab","\n font-weight: var(--tab-font-weight);\n border: 1px solid var(--tab-border-color);\n border-top-left-radius: var(--tab-border-radius);\n border-top-right-radius: var(--tab-border-radius);\n background-color: var(--tab-color);\n box-sizing: border-box;\n position: relative;\n vertical-align: bottom;\n display: flex;\n justify-content: space-between;\n font-size: var(--tab-font-size);\n color: var(--tab-text-color);\n ",[lc("addable","\n padding-left: 8px;\n padding-right: 8px;\n font-size: 16px;\n ",[cc("disabled",[rc("&:hover","\n color: var(--tab-text-color-active);\n ")])]),lc("closable","padding-right: 6px;"),lc("active","\n border-bottom: 1px solid #0000;\n background-color: #0000;\n font-weight: var(--tab-font-weight-active);\n color: var(--tab-text-color-active);\n "),lc("disabled","color: var(--tab-text-color-disabled);")]),sc("tabs-scroll-padding","border-bottom: 1px solid var(--tab-border-color);")])])]);const Vx={label:{type:[String,Number,Object,Function],default:void 0,validator:()=>!0},tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0}};var Ux=Jt({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Vx,setup(){const e=Ht(Hx,null);return e||od("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:e.paneStyleRef,class:e.paneClassRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){return $r("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}});var Kx=Jt({__TAB__:!0,name:"Tab",props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean},Zc(Vx,["displayDirective"])),setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:o,closableRef:r,tabStyleRef:i,tabChangeIdRef:s,onBeforeLeaveRef:a,handleAdd:l,handleTabClick:c,handleClose:d}=Ht(Hx);return{mergedClosable:Et((()=>{if(e.internalAddable)return!1;const{closable:t}=e;return void 0===t?r.value:t})),style:i,clsPrefix:t,value:n,type:o,handleClose(t){t.stopPropagation(),e.disabled||d(e.name)},handleClick(){if(e.disabled)return;if(e.internalAddable)return void l();const{name:t}=e,o=++s.id;if(t!==n.value){const{value:r}=a;r?Promise.resolve(r(e.name,n.value)).then((e=>{e&&s.id===o&&c(t)})):c(t)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:o,label:r,tab:i,value:s,mergedClosable:a,style:l,$slots:{default:c}}=this,d=null!=r?r:i;return $r("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?$r("div",{class:`${t}-tabs-tab-pad`}):null,$r("div",{key:n,"data-name":n,"data-disabled":!!o||void 0,class:[`${t}-tabs-tab`,s===n&&`${t}-tabs-tab--active`,o&&`${t}-tabs-tab--disabled`,a&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`],onClick:this.handleClick,style:e?void 0:l},$r("span",{class:`${t}-tabs-tab__label`},e?$r(cu,{clsPrefix:t},{default:()=>$r(zd,null)}):c?c():"object"==typeof d?d:td(null!=d?d:n)),a&&"card"===this.type?$r(uu,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:o}):null))}});var Gx=Jt({name:"Tabs",props:Object.assign(Object.assign({},wd.props),{value:[String,Number],defaultValue:[String,Number],type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},tabStyle:[String,Object],paneClass:String,paneStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),setup(e,{slots:t}){var n,o;const{mergedClsPrefixRef:r}=Sd(e),i=wd("Tabs","Tabs",Wx,jx,e,r),s=bt(null),a=bt(null),l=bt(null),c=bt(null),d=bt(null),u=bt(!0),h=bt(!0),p=Uc(e,["labelSize","size"]),f=Uc(e,["activeName","value"]),g=bt(null!==(o=null!==(n=f.value)&&void 0!==n?n:e.defaultValue)&&void 0!==o?o:t.default?Jc(t.default())[0].props.name:null),m=Wc(f,g),v={id:0};Sr(m,(()=>{v.id=0}));const b=Et((()=>{if(e.justifyContent&&"card"!==e.type)return{display:"flex",justifyContent:e.justifyContent}}));function y(){var e;const{value:t}=m;if(null===t)return null;return null===(e=s.value)||void 0===e?void 0:e.querySelector(`[data-name="${t}"]`)}function C(){if("card"===e.type)return;const t=y();t&&function(t){if("card"===e.type)return;const{value:n}=a;if(n&&t){const e=`${r.value}-tabs-bar--disabled`;"true"===t.dataset.disabled?n.classList.add(e):n.classList.remove(e),n.style.left=`${t.offsetLeft}px`,n.style.width="8192px",n.style.maxWidth=`${t.offsetWidth+1}px`}}(t)}Sr(m,(()=>{C()}));const w=Ml((function(){var t;const{type:n}=e;if("line"===n||"bar"===n){const{value:e}=a;if(!e)return;const t=`${r.value}-tabs-bar--transition-disabled`;e.classList.add(t),C(),e.classList.remove(t)}"segment"!==n&&A(null===(t=d.value)||void 0===t?void 0:t.$el)}),64),x=bt(!1);const S=Ml((function(e){var t;const{target:n,contentRect:{width:o}}=e,r=n.parentElement.offsetWidth;if(x.value){const{value:e}=c;if(!e)return;r-o>e.$el.offsetWidth&&(x.value=!1)}else r<o&&(x.value=!0);A(null===(t=d.value)||void 0===t?void 0:t.$el)}),64);function A(e){if(!e)return;const{scrollLeft:t,scrollWidth:n,offsetWidth:o}=e;u.value=t<=0,h.value=t+o>=n}const k=Ml((e=>{A(e.target)}),64);return Nt(Hx,{tabStyleRef:kt(e,"tabStyle"),paneClassRef:kt(e,"paneClass"),paneStyleRef:kt(e,"paneStyle"),mergedClsPrefixRef:r,typeRef:kt(e,"type"),closableRef:kt(e,"closable"),valueRef:m,tabChangeIdRef:v,onBeforeLeaveRef:kt(e,"onBeforeLeave"),handleTabClick:function(t){!function(t){const{onActiveNameChange:n,onUpdateValue:o,"onUpdate:value":r}=e;n&&Qc(n,t);o&&Qc(o,t);r&&Qc(r,t);g.value=t}(t)},handleClose:function(t){const{onClose:n}=e;n&&Qc(n,t)},handleAdd:function(){const{onAdd:t}=e;t&&t(),pr((()=>{const e=y(),{value:t}=d;e&&t&&t.scrollTo({left:e.offsetLeft,top:0,behavior:"smooth"})}))}}),$c((()=>{C()})),wr((()=>{const{value:e}=l;if(!e)return;const{value:t}=r,n=`${t}-tabs-nav-scroll-wrapper--shadow-before`,o=`${t}-tabs-nav-scroll-wrapper--shadow-after`;u.value?e.classList.remove(n):e.classList.add(n),h.value?e.classList.remove(o):e.classList.add(o)})),{mergedClsPrefix:r,mergedValue:m,renderedNames:new Set,tabsElRef:s,barElRef:a,addTabInstRef:c,xScrollInstRef:d,scrollWrapperElRef:l,addTabFixed:x,tabWrapperStyle:b,handleNavResize:w,mergedSize:p,handleScroll:k,handleTabsResize:S,cssVars:Et((()=>{const{value:t}=p,{type:n}=e,o=`${t}${{card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[n]}`,{self:{barColor:r,closeColor:s,closeColorHover:a,closeColorPressed:l,tabColor:c,tabBorderColor:d,paneTextColor:u,tabFontWeight:h,tabBorderRadius:f,tabFontWeightActive:g,colorSegment:m,fontWeightStrong:v,tabColorSegment:b,[tc("panePadding",t)]:y,[tc("tabPadding",o)]:C,[tc("tabGap",o)]:w,[tc("tabTextColor",n)]:x,[tc("tabTextColorActive",n)]:S,[tc("tabTextColorHover",n)]:A,[tc("tabTextColorDisabled",n)]:k,[tc("tabFontSize",t)]:F},common:{cubicBezierEaseInOut:E}}=i.value;return{"--bezier":E,"--color-segment":m,"--bar-color":r,"--tab-font-size":F,"--tab-text-color":x,"--tab-text-color-active":S,"--tab-text-color-disabled":k,"--tab-text-color-hover":A,"--pane-text-color":u,"--tab-border-color":d,"--tab-border-radius":f,"--close-color":s,"--close-color-hover":a,"--close-color-pressed":l,"--tab-color":c,"--tab-font-weight":h,"--tab-font-weight-active":g,"--tab-padding":C,"--tab-gap":w,"--pane-padding":y,"--font-weight-strong":v,"--tab-color-segment":b}}))}},render(){const{mergedClsPrefix:e,type:t,addTabFixed:n,addable:o,mergedSize:r,$slots:{default:i,prefix:s,suffix:a}}=this,l=i?Jc(i()).filter((e=>!0===e.type.__TAB_PANE__)):[],c=i?Jc(i()).filter((e=>!0===e.type.__TAB__)):[],d=!c.length,u=s?s():null,h=a?a():null,p="card"===t,f="segment"===t,g=!p&&!f&&this.justifyContent;return $r("div",{class:[`${e}-tabs`,`${e}-tabs--${t}-type`,`${e}-tabs--${r}-size`,g&&`${e}-tabs--flex`],style:this.cssVars},$r("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav`]},u?$r("div",{class:`${e}-tabs-nav__prefix`},u):null,f?$r("div",{class:`${e}-tabs-rail`},d?l.map(((e,t)=>$r(Kx,Object.assign({},e.props,{internalLeftPadded:0!==t}),e.children?{default:e.children.tab}:void 0))):c.map(((e,t)=>0===t?e:qx(e)))):$r(Ih,{onResize:this.handleNavResize},{default:()=>$r("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},$r(Wh,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:()=>{const t=$r("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},g?null:$r("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),d?l.map(((e,t)=>$r(Kx,Object.assign({},e.props,{internalLeftPadded:0!==t&&!g}),e.children?{default:e.children.tab}:void 0))):c.map(((e,t)=>0===t||g?e:qx(e))),!n&&o&&p?Yx(o,0!==(d?l.length:c.length)):null,g?null:$r("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));let r=t;return p&&o&&(r=$r(Ih,{onResize:this.handleTabsResize},{default:()=>t})),$r("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},r,p?$r("div",{class:`${e}-tabs-pad`}):null,p?null:$r("div",{ref:"barElRef",class:`${e}-tabs-bar`}))}}))}),n&&o&&p?Yx(o,!0):null,h?$r("div",{class:`${e}-tabs-nav__suffix`},h):null),d&&function(e,t,n){const o=[];return e.forEach((e=>{const{name:r,displayDirective:i,"display-directive":s}=e.props,a=e=>i===e||s===e,l=t===r;if(void 0!==e.key&&(e.key=r),l||a("show")||a("show:lazy")&&n.has(r)){n.has(r)||n.add(r);const t=!a("if");o.push(t?Hn(e,[[fi,l]]):e)}})),o}(l,this.mergedValue,this.renderedNames))}});function Yx(e,t){return $r(Kx,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalAddable:!0,internalLeftPadded:t,disabled:"object"==typeof e&&e.disabled})}function qx(e){const t=Fo(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}var Xx={titleMarginMedium:0,titleMarginLarge:"-2px 0 0 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};var Zx={extraFontSize:"12px",width:"440px"};const Jx={name:"Tree",common:Gp,peers:{Checkbox:uv,Scrollbar:Yf},self(e){const{primaryColor:t}=e,n=(e=>{const{borderRadiusSmall:t,hoverColor:n,pressedColor:o,primaryColor:r,textColor3:i,textColor2:s,textColorDisabled:a,fontSize:l}=e;return{fontSize:l,nodeBorderRadius:t,nodeColorHover:n,nodeColorPressed:o,nodeColorActive:Vi(r,{alpha:.1}),arrowColor:i,nodeTextColor:s,nodeTextColorDisabled:a,loadingColor:r,dropMarkColor:r}})(e);return n.nodeColorActive=Vi(t,{alpha:.15}),n}};var Qx={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};const eS={common:Gp,Alert:Qg,Anchor:im,AutoComplete:bm,Avatar:Sm,BackTop:km,Badge:Rm,Breadcrumb:Lm,Button:Nm,Calendar:Zm,Card:nv,Carousel:av,Cascader:hv,Checkbox:uv,Code:yv,Collapse:xv,CollapseTransition:_v,ColorPicker:Jm,DataTable:Qv,DatePicker:by,Descriptions:Cy,Dialog:Ay,Divider:Uy,Drawer:Xy,Dropdown:Bb,DynamicInput:dC,DynamicTags:gC,Element:mC,Empty:Wf,Ellipsis:Uv,Form:bC,GradientText:kC,Icon:Mb,Image:_C,Input:am,InputNumber:RC,Layout:BC,List:YC,LoadingBar:qC,Log:XC,Menu:gw,Mention:ww,Message:kw,Modal:Dy,Notification:zw,PageHeader:{name:"PageHeader",common:Gp,self:function(e){const{textColor1:t,textColor2:n,textColor3:o,fontSize:r,fontWeightStrong:i,primaryColorHover:s,primaryColorPressed:a}=e;return Object.assign(Object.assign({},Iw),{titleFontWeight:i,fontSize:r,titleTextColor:t,backColor:n,backColorHover:s,backColorPressed:a,subtitleTextColor:o})}},Pagination:zv,Popconfirm:Ww,Popover:vg,Popselect:Xw,Progress:Zw,Radio:Yv,Rate:Jw,Result:nx,Scrollbar:Yf,Select:Tv,Skeleton:ux,Slider:px,Space:hC,Spin:mx,Statistic:xx,Steps:Fx,Switch:$x,Table:Lx,Tabs:Nx,Tag:Rg,Thing:{name:"Thing",common:Gp,self:e=>{const{textColor1:t,textColor2:n,fontWeightStrong:o,fontSize:r}=e;return{fontSize:r,titleTextColor:t,textColor:n,titleFontWeight:o}}},TimePicker:my,Timeline:{name:"Timeline",common:Gp,self(e){const{textColor3:t,infoColorSuppl:n,errorColorSuppl:o,successColorSuppl:r,warningColorSuppl:i,textColor1:s,textColor2:a,railColor:l,fontWeightStrong:c,fontSize:d}=e;return Object.assign(Object.assign({},Xx),{contentFontSize:d,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${r}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:o,iconColorSuccess:r,iconColorWarning:i,titleTextColor:s,contentTextColor:a,metaTextColor:t,lineColor:l})}},Tooltip:Wv,Transfer:{name:"Transfer",common:Gp,peers:{Checkbox:uv,Scrollbar:Yf,Input:am,Empty:Wf,Button:Nm},self(e){const{iconColorDisabled:t,iconColor:n,fontWeight:o,fontSizeLarge:r,fontSizeMedium:i,fontSizeSmall:s,heightLarge:a,heightMedium:l,heightSmall:c,borderRadius:d,inputColor:u,tableHeaderColor:h,textColor1:p,textColorDisabled:f,textColor2:g,hoverColor:m}=e;return Object.assign(Object.assign({},Zx),{itemHeightSmall:c,itemHeightMedium:l,itemHeightLarge:a,fontSizeSmall:s,fontSizeMedium:i,fontSizeLarge:r,borderRadius:d,borderColor:"#0000",listColor:u,headerColor:h,titleTextColor:p,titleTextColorDisabled:f,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:f,itemColorPending:m,titleFontWeight:o,iconColor:n,iconColorDisabled:t})}},Tree:Jx,TreeSelect:{name:"TreeSelect",common:Gp,peers:{Tree:Jx,Empty:Wf,InternalSelection:Wg}},Typography:{name:"Typography",common:Gp,self:e=>{const{primaryColor:t,textColor2:n,borderColor:o,lineHeight:r,fontSize:i,borderRadiusSmall:s,dividerColor:a,fontWeightStrong:l,textColor1:c,textColor3:d,infoColor:u,warningColor:h,errorColor:p,successColor:f,codeColor:g}=e;return Object.assign(Object.assign({},Qx),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:o,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:s,liTextColor:n,liLineHeight:r,liFontSize:i,hrColor:a,headerFontWeight:l,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:p,headerBarColorWarning:h,headerBarColorSuccess:f,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:f,textColorWarning:h,textColorError:p,codeTextColor:n,codeColor:g,codeBorder:"1px solid #0000"})}},Upload:{name:"Upload",common:Gp,peers:{Button:Nm,Progress:Zw},self(e){const{errorColor:t}=e,n=(e=>{const{iconColor:t,primaryColor:n,errorColor:o,textColor2:r,successColor:i,opacityDisabled:s,actionColor:a,borderColor:l,hoverColor:c,lineHeight:d,borderRadius:u,fontSize:h}=e;return{fontSize:h,lineHeight:d,borderRadius:u,draggerColor:a,draggerBorder:`1px dashed ${l}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:Vi(o,{alpha:.06}),itemTextColor:r,itemTextColorError:o,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:s,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${l}`}})(e);return n.itemColorHoverError=Vi(t,{alpha:.09}),n}}},tS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},nS=ko("path",{d:"M456 128a40 40 0 0 0-37.23 54.6l-84.17 84.17a39.86 39.86 0 0 0-29.2 0l-60.17-60.17a40 40 0 1 0-74.46 0L70.6 306.77a40 40 0 1 0 22.63 22.63L193.4 229.23a39.86 39.86 0 0 0 29.2 0l60.17 60.17a40 40 0 1 0 74.46 0l84.17-84.17A40 40 0 1 0 456 128z",fill:"currentColor"},null,-1);var oS=Jt({name:"Analytics",render:function(e,t){return po(),bo("svg",tS,[nS])}});const rS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},iS=ko("path",{d:"M250.54 129.17l-67.8-67.8A209.65 209.65 0 0 0 86.32 136h161.4a4 4 0 0 0 2.82-6.83z",fill:"currentColor"},null,-1),sS=ko("path",{d:"M167.72 168H67.63a207.34 207.34 0 0 0-16.15 125.9l119.06-119.07a4 4 0 0 0-2.82-6.83z",fill:"currentColor"},null,-1),aS=ko("path",{d:"M344 167.72V67.56a207.82 207.82 0 0 0-125.89-16.08l119.06 119.06a4 4 0 0 0 6.83-2.82z",fill:"currentColor"},null,-1),lS=ko("path",{d:"M460.52 218.1L341.46 337.17a4 4 0 0 0 2.82 6.83h100.09a207.34 207.34 0 0 0 16.15-125.9z",fill:"currentColor"},null,-1),cS=ko("path",{d:"M382.83 250.54l67.83-67.82A209.08 209.08 0 0 0 376 86.2v161.52a4 4 0 0 0 6.83 2.82z",fill:"currentColor"},null,-1),dS=ko("path",{d:"M221.68 341.77a8 8 0 0 0 5.54 2.23h59.66a8 8 0 0 0 5.7-2.39l49.18-50a8 8 0 0 0 2.3-5.62l-.06-60.81a8 8 0 0 0-2.38-5.69l-50-49.25a8 8 0 0 0-5.63-2.3l-60.84.06a8 8 0 0 0-5.69 2.38l-49.25 50a8 8 0 0 0-2.3 5.63l.06 60.78a8 8 0 0 0 2.45 5.76z",fill:"currentColor"},null,-1),uS=ko("path",{d:"M261.46 382.83l67.8 67.8A209.65 209.65 0 0 0 425.68 376h-161.4a4 4 0 0 0-2.82 6.83z",fill:"currentColor"},null,-1),hS=ko("path",{d:"M168 344.28v100.16a207.82 207.82 0 0 0 125.89 16.08L174.83 341.46a4 4 0 0 0-6.83 2.82z",fill:"currentColor"},null,-1),pS=ko("path",{d:"M129.17 261.46l-67.83 67.83A209.1 209.1 0 0 0 136 425.8V264.28a4 4 0 0 0-6.83-2.82z",fill:"currentColor"},null,-1);var fS=Jt({name:"Aperture",render:function(e,t){return po(),bo("svg",rS,[iS,sS,aS,lS,cS,dS,uS,hS,pS])}});const gS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},mS=ko("path",{d:"M98 190.06l139.78 163.12a24 24 0 0 0 36.44 0L414 190.06c13.34-15.57 2.28-39.62-18.22-39.62h-279.6c-20.5 0-31.56 24.05-18.18 39.62z",fill:"currentColor"},null,-1);var vS=Jt({name:"CaretDownOutline",render:function(e,t){return po(),bo("svg",gS,[mS])}});const bS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},yS=ko("path",{d:"M256 48C141.31 48 48 141.31 48 256s93.31 208 208 208s208-93.31 208-208S370.69 48 256 48zm75.31 260.69a16 16 0 1 1-22.62 22.62L256 278.63l-52.69 52.68a16 16 0 0 1-22.62-22.62L233.37 256l-52.68-52.69a16 16 0 0 1 22.62-22.62L256 233.37l52.69-52.68a16 16 0 0 1 22.62 22.62L278.63 256z",fill:"currentColor"},null,-1);var CS=Jt({name:"CloseCircle",render:function(e,t){return po(),bo("svg",bS,[yS])}});const wS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},xS=ko("path",{d:"M253.72 202.53a4 4 0 0 0 4.56 0a151.88 151.88 0 0 1 128.44-20.41a4 4 0 0 0 5.15-4C388.8 105.86 329 48 256 48s-132.8 57.86-135.87 130.15a4 4 0 0 0 5.15 4a151.88 151.88 0 0 1 128.44 20.41z",fill:"currentColor"},null,-1),SS=ko("path",{d:"M405.31 212.56a152.53 152.53 0 0 1-83.08 108.23a4 4 0 0 0-2.28 3.69c0 1.17.05 2.34.05 3.52a151.58 151.58 0 0 1-47.15 109.94a4 4 0 0 0 .64 6.31A135.24 135.24 0 0 0 344 464c72.07 0 134.1-60.28 136-132.34a136.07 136.07 0 0 0-68.76-121.87a4 4 0 0 0-5.93 2.77z",fill:"currentColor"},null,-1),AS=ko("path",{d:"M390.57 203.67a4 4 0 0 0-2.69-4.4a135.84 135.84 0 0 0-114.4 12.49a4 4 0 0 0-.64 6.29a151.92 151.92 0 0 1 44.47 81.4a4 4 0 0 0 5.94 2.72a136.29 136.29 0 0 0 67.32-98.5z",fill:"currentColor"},null,-1),kS=ko("path",{d:"M192 328c0-1.18 0-2.35.05-3.52a4 4 0 0 0-2.28-3.69a152.53 152.53 0 0 1-83.08-108.23a4 4 0 0 0-5.88-2.77a136.07 136.07 0 0 0-68.76 121.87C34 403.72 96 464 168.05 464a135.24 135.24 0 0 0 70.46-19.75a4 4 0 0 0 .64-6.31A151.58 151.58 0 0 1 192 328z",fill:"currentColor"},null,-1),FS=ko("path",{d:"M168 192a135.34 135.34 0 0 0-43.88 7.27a4 4 0 0 0-2.69 4.4a136.29 136.29 0 0 0 67.32 98.5a4 4 0 0 0 5.94-2.72a151.92 151.92 0 0 1 44.47-81.4a4 4 0 0 0-.64-6.29A135.18 135.18 0 0 0 168 192z",fill:"currentColor"},null,-1),ES=ko("path",{d:"M256 336a151.44 151.44 0 0 1-42.72-6.12a4 4 0 0 0-5.15 4a135.69 135.69 0 0 0 45.18 95.4a4 4 0 0 0 5.38 0a135.69 135.69 0 0 0 45.18-95.4a4 4 0 0 0-5.15-4A151.44 151.44 0 0 1 256 336z",fill:"currentColor"},null,-1),$S=ko("path",{d:"M302.57 308.33a135.94 135.94 0 0 0-43.87-81.58a4.06 4.06 0 0 0-5.4 0a135.94 135.94 0 0 0-43.87 81.58a4 4 0 0 0 2.69 4.4a136.06 136.06 0 0 0 87.76 0a4 4 0 0 0 2.69-4.4z",fill:"currentColor"},null,-1);var _S=Jt({name:"ColorFilter",render:function(e,t){return po(),bo("svg",wS,[xS,SS,AS,kS,FS,ES,$S])}});const RS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},BS=ko("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),TS=ko("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),DS=ko("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1);var MS=Jt({name:"DownloadOutline",render:function(e,t){return po(),bo("svg",RS,[BS,TS,DS])}});const LS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},PS=ko("circle",{cx:"256",cy:"256",r:"64",fill:"currentColor"},null,-1),OS=ko("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96c-42.52 0-84.33 12.15-124.27 36.11c-40.73 24.43-77.63 60.12-109.68 106.07a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416c46.71 0 93.81-14.43 136.2-41.72c38.46-24.77 72.72-59.66 99.08-100.92a32.2 32.2 0 0 0-.1-34.76zM256 352a96 96 0 1 1 96-96a96.11 96.11 0 0 1-96 96z",fill:"currentColor"},null,-1);var zS=Jt({name:"Eye",render:function(e,t){return po(),bo("svg",LS,[PS,OS])}});const IS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},jS=ko("path",{d:"M16.08 189.4l28.58 233.87A28 28 0 0 0 72.52 448h367a28 28 0 0 0 27.86-24.73l28.54-233.87A12 12 0 0 0 484 176H28a12 12 0 0 0-11.92 13.4z",fill:"currentColor"},null,-1),NS=ko("path",{d:"M464 124a28 28 0 0 0-28-28H244.84l-48-32H76a28 28 0 0 0-28 28v52h416z",fill:"currentColor"},null,-1);var HS=Jt({name:"FolderOpenSharp",render:function(e,t){return po(),bo("svg",IS,[jS,NS])}});const WS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},VS=ko("path",{d:"M414.39 97.61A224 224 0 1 0 97.61 414.39A224 224 0 1 0 414.39 97.61zM184 208a24 24 0 1 1-24 24a23.94 23.94 0 0 1 24-24zm167.67 106.17c-12 40.3-50.2 69.83-95.62 69.83s-83.62-29.53-95.72-69.83a8 8 0 0 1 7.83-10.17h175.69a8 8 0 0 1 7.82 10.17zM328 256a24 24 0 1 1 24-24a23.94 23.94 0 0 1-24 24z",fill:"currentColor"},null,-1);var US=Jt({name:"Happy",render:function(e,t){return po(),bo("svg",WS,[VS])}});const KS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},GS=ko("path",{d:"M261.56 101.28a8 8 0 0 0-11.06 0L66.4 277.15a8 8 0 0 0-2.47 5.79L63.9 448a32 32 0 0 0 32 32H192a16 16 0 0 0 16-16V328a8 8 0 0 1 8-8h80a8 8 0 0 1 8 8v136a16 16 0 0 0 16 16h96.06a32 32 0 0 0 32-32V282.94a8 8 0 0 0-2.47-5.79z",fill:"currentColor"},null,-1),YS=ko("path",{d:"M490.91 244.15l-74.8-71.56V64a16 16 0 0 0-16-16h-48a16 16 0 0 0-16 16v32l-57.92-55.38C272.77 35.14 264.71 32 256 32c-8.68 0-16.72 3.14-22.14 8.63l-212.7 203.5c-6.22 6-7 15.87-1.34 22.37A16 16 0 0 0 43 267.56L250.5 69.28a8 8 0 0 1 11.06 0l207.52 198.28a16 16 0 0 0 22.59-.44c6.14-6.36 5.63-16.86-.76-22.97z",fill:"currentColor"},null,-1);var qS=Jt({name:"Home",render:function(e,t){return po(),bo("svg",KS,[GS,YS])}});const XS={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ZS=ko("path",{d:"M328.85 156.79a26.69 26.69 0 1 0 18.88 7.81a26.6 26.6 0 0 0-18.88-7.81z",fill:"currentColor"},null,-1),JS=ko("path",{d:"M477.44 50.06a.29.29 0 0 1 0-.09a20.4 20.4 0 0 0-15.13-15.3c-29.8-7.27-76.68.48-128.63 21.28c-52.36 21-101.42 52-134.58 85.22A320.7 320.7 0 0 0 169.55 175c-22.33-1-42 2.18-58.57 9.41c-57.74 25.41-74.23 90.44-78.62 117.14a25 25 0 0 0 27.19 29h.13l64.32-7.02c.08.82.17 1.57.24 2.26a34.36 34.36 0 0 0 9.9 20.72l31.39 31.41a34.27 34.27 0 0 0 20.71 9.91l2.15.23l-7 64.24v.13A25 25 0 0 0 206 480a25.25 25.25 0 0 0 4.15-.34C237 475.34 302 459.05 327.34 401c7.17-16.46 10.34-36.05 9.45-58.34a314.78 314.78 0 0 0 33.95-29.55c33.43-33.26 64.53-81.92 85.31-133.52c20.69-51.36 28.48-98.59 21.39-129.53zM370.38 224.94a58.77 58.77 0 1 1 0-83.07a58.3 58.3 0 0 1 0 83.07z",fill:"currentColor"},null,-1),QS=ko("path",{d:"M161.93 386.44a16 16 0 0 0-11 2.67c-6.39 4.37-12.81 8.69-19.29 12.9c-13.11 8.52-28.79-6.44-21-20l12.15-21a16 16 0 0 0-15.16-24.91A61.25 61.25 0 0 0 72 353.56c-3.66 3.67-14.79 14.81-20.78 57.26A357.94 357.94 0 0 0 48 447.59A16 16 0 0 0 64 464h.4a359.87 359.87 0 0 0 36.8-3.2c42.47-6 53.61-17.14 57.27-20.8a60.49 60.49 0 0 0 17.39-35.74a16 16 0 0 0-13.93-17.82z",fill:"currentColor"},null,-1);var eA=Jt({name:"Rocket",render:function(e,t){return po(),bo("svg",XS,[ZS,JS,QS])}});const tA={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},nA=ko("path",{d:"M380.44 32H64a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h384a32.09 32.09 0 0 0 32-32V131.56zM112 176v-64h192v64zm223.91 179.76a80 80 0 1 1-83.66-83.67a80.21 80.21 0 0 1 83.66 83.67z",fill:"currentColor"},null,-1);var oA=Jt({name:"SaveSharp",render:function(e,t){return po(),bo("svg",tA,[nA])}});const rA={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},iA=ko("path",{d:"M384 336a63.78 63.78 0 0 0-46.12 19.7l-148-83.27a63.85 63.85 0 0 0 0-32.86l148-83.27a63.8 63.8 0 1 0-15.73-27.87l-148 83.27a64 64 0 1 0 0 88.6l148 83.27A64 64 0 1 0 384 336z",fill:"currentColor"},null,-1);var sA=Jt({name:"ShareSocial",render:function(e,t){return po(),bo("svg",rA,[iA])}});
|
||
/*!
|
||
* vue-router v4.0.0-beta.13
|
||
* (c) 2020 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const aA="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,lA=e=>aA?Symbol(e):"_vr_"+e,cA=lA("rvlm"),dA=lA("rvd"),uA=lA("r"),hA=lA("rl"),pA="undefined"!=typeof window;const fA=Object.assign;function gA(e,t){const n={};for(const o in t){const r=t[o];n[o]=Array.isArray(r)?r.map(e):e(r)}return n}let mA=()=>{};const vA=/\/$/;function bA(e,t,n="/"){let o,r={},i="",s="";const a=t.indexOf("?"),l=t.indexOf("#",a>-1?a:0);return a>-1&&(o=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),r=e(i)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r,i,s=n.length-1;for(r=0;r<o.length;r++)if(i=o[r],1!==s&&"."!==i){if(".."!==i)break;s--}return n.slice(0,s).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+s,path:o,query:r,hash:s}}function yA(e,t){return!t||e.toLowerCase().indexOf(t.toLowerCase())?e:e.slice(t.length)||"/"}function CA(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!xA(e[n],t[n]))return!1;return!0}function xA(e,t){return Array.isArray(e)?SA(e,t):Array.isArray(t)?SA(t,e):e===t}function SA(e,t){return Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var AA,kA,FA,EA;function $A(e){if(!e)if(pA){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(vA,"")}(kA=AA||(AA={})).pop="pop",kA.push="push",(EA=FA||(FA={})).back="back",EA.forward="forward",EA.unknown="";const _A=/^[^#]+#/;function RA(e,t){return e.replace(_A,"#")+t}const BA=()=>({left:window.pageXOffset,top:window.pageYOffset});function TA(e){let t;if("el"in e){let n=e.el;const o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function DA(e,t){return(history.state?history.state.position-t:-1)+e}const MA=new Map;function LA(e,t){const{pathname:n,search:o,hash:r}=t;if(e.indexOf("#")>-1){let e=r.slice(1);return"/"!==e[0]&&(e="/"+e),yA(e,"")}return yA(n,e)+o+r}function PA(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?BA():null}}function OA(e){const{history:t,location:n}=window;let o={value:LA(e,n)},r={value:t.state};function i(o,i,s){const a=e.indexOf("#"),l=a>-1?e.slice(a)+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](i,"",l),r.value=i}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const s=fA({},r.value,t.state,{forward:e,scroll:BA()});i(s.current,s,!0),i(e,fA({},PA(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){i(e,fA({},t.state,PA(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function zA(e){const t=OA(e=$A(e)),n=function(e,t,n,o){let r=[],i=[],s=null;const a=({state:i})=>{const a=LA(e,location),l=n.value,c=t.value;let d=0;if(i){if(n.value=a,t.value=i,s&&s===l)return void(s=null);d=c?i.position-c.position:0}else o(a);r.forEach((e=>{e(n.value,l,{delta:d,type:AA.pop,direction:d?d>0?FA.forward:FA.back:FA.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(fA({},e.state,{scroll:BA()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l),{pauseListeners:function(){s=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=fA({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:RA.bind(null,e)},t,n);return Object.defineProperty(o,"location",{get:()=>t.location.value}),Object.defineProperty(o,"state",{get:()=>t.state.value}),o}function IA(e){return(e=location.host?e||location.pathname:"").indexOf("#")<0&&(e+="#"),zA(e)}function jA(e){return"string"==typeof e||"symbol"==typeof e}const NA={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},HA=lA("nf");var WA,VA;function UA(e,t){return fA(new Error,{type:e,[HA]:!0},t)}function KA(e,t){return e instanceof Error&&HA in e&&(null==t||!!(e.type&t))}(VA=WA||(WA={}))[VA.aborted=4]="aborted",VA[VA.cancelled=8]="cancelled",VA[VA.duplicated=16]="duplicated";const GA={sensitive:!1,strict:!1,start:!0,end:!0},YA=/[.+*?^${}()[\]/\\]/g;function qA(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function XA(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const e=qA(o[n],r[n]);if(e)return e;n++}return r.length-o.length}const ZA={type:0,value:""},JA=/[a-zA-Z0-9_]/;function QA(e,t,n){const o=function(e,t){const n=fA({},GA,t);let o=[],r=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t<l.length;t++){const o=l[t];let s=40+(n.sensitive?.25:0);if(0===o.type)t||(r+="/"),r+=o.value.replace(YA,"\\$&"),s+=40;else if(1===o.type){const{value:e,repeatable:n,optional:l,regexp:c}=o;i.push({name:e,repeatable:n,optional:l});const d=c||"[^/]+?";if("[^/]+?"!==d){s+=10;try{new RegExp(`(${d})`)}catch(a){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+a.message)}}let u=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(u=l?`(?:/${u})`:"/"+u),l&&(u+="?"),r+=u,s+=20,l&&(s+=-8),n&&(s+=-20),".*"===d&&(s+=-50)}e.push(s)}o.push(e)}if(n.strict&&n.end){const e=o.length-1;o[e][o[e].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const s=new RegExp(r,n.sensitive?"":"i");return{re:s,score:o,keys:i,parse:function(e){const t=e.match(s),n={};if(!t)return null;for(let o=1;o<t.length;o++){const e=t[o]||"",r=i[o-1];n[r.name]=e&&r.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",o=!1;for(const r of e){o&&n.endsWith("/")||(n+="/"),o=!1;for(const e of r)if(0===e.type)n+=e.value;else if(1===e.type){const{value:r,repeatable:i,optional:s}=e,a=r in t?t[r]:"";if(Array.isArray(a)&&!i)throw new Error(`Provided param "${r}" is an array but it is not repeatable (* or + modifiers)`);const l=Array.isArray(a)?a.join("/"):a;if(!l){if(!s)throw new Error(`Missing required param "${r}"`);n.endsWith("/")?n=n.slice(0,-1):o=!0}n+=l}}return n}}}(function(e){if(!e)return[[]];if("/"===e)return[[ZA]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,o=n;const r=[];let i;function s(){i&&r.push(i),i=[]}let a,l=0,c="",d="";function u(){c&&(0===n?i.push({type:0,value:c}):1===n||2===n||3===n?(i.length>1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function h(){c+=a}for(;l<e.length;)if(a=e[l++],"\\"!==a||2===n)switch(n){case 0:"/"===a?(c&&u(),s()):":"===a?(u(),n=1):h();break;case 4:h(),n=o;break;case 1:"("===a?(n=2,d=""):JA.test(a)?h():(u(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--);break;case 2:")"===a?"\\"==d[d.length-1]?d=d.slice(0,-1)+a:n=3:d+=a;break;case 3:u(),n=0,"*"!==a&&"?"!==a&&"+"!==a&&l--;break;default:t("Unknown state")}else o=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),u(),s(),r}(e.path),n),r=fA(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function ek(e,t){const n=[],o=new Map;function r(e,n,o){let a=!o,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:tk(e),children:e.children||[],instances:{},leaveGuards:[],updateGuards:[],enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}(e);l.aliasOf=o&&o.record;const c=rk(t,e),d=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(fA({},l,{components:o?o.record.components:l.components,path:e,aliasOf:o?o.record:l}))}let u,h;for(const t of d){let{path:d}=t;if(n&&"/"!==d[0]){let e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(d&&o+d)}if(u=QA(t,n,c),o?o.alias.push(u):(h=h||u,h!==u&&h.alias.push(u),a&&e.name&&!nk(u)&&i(e.name)),"children"in l){let e=l.children;for(let t=0;t<e.length;t++)r(e[t],u,o&&o.children[t])}o=o||u,s(u)}return h?()=>{i(h)}:mA}function i(e){if(jA(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function s(e){let t=0;for(;t<n.length&&XA(e,n[t])>=0;)t++;n.splice(t,0,e),e.record.name&&!nk(e)&&o.set(e.record.name,e)}return t=rk({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,s,a={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw UA(1,{location:e});s=r.record.name,a=fA(function(e,t){let n={};for(let o of t)o in e&&(n[o]=e[o]);return n}(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params),i=r.stringify(a)}else if("path"in e)i=e.path,r=n.find((e=>e.re.test(i))),r&&(a=r.parse(i),s=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw UA(1,{location:e,currentLocation:t});s=r.record.name,a=fA({},t.params,e.params),i=r.stringify(a)}const l=[];let c=r;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:i,params:a,matched:l,meta:ok(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function tk(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(let o in e.components)t[o]="boolean"==typeof n?n:n[o];return t}function nk(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ok(e){return e.reduce(((e,t)=>fA(e,t.meta)),{})}function rk(e,t){let n={};for(let o in e)n[o]=o in t?t[o]:e[o];return n}const ik=/#/g,sk=/&/g,ak=/\//g,lk=/=/g,ck=/\?/g,dk=/%5B/g,uk=/%5D/g,hk=/%5E/g,pk=/%60/g,fk=/%7B/g,gk=/%7C/g,mk=/%7D/g;function vk(e){return encodeURI(""+e).replace(gk,"|").replace(dk,"[").replace(uk,"]")}function bk(e){return vk(e).replace(ik,"%23").replace(sk,"%26").replace(pk,"`").replace(fk,"{").replace(mk,"}").replace(hk,"^")}function yk(e){return function(e){return vk(e).replace(ik,"%23").replace(ck,"%3F")}(e).replace(ak,"%2F")}function Ck(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function wk(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const e=n[o];let r=e.indexOf("="),i=Ck(r<0?e:e.slice(0,r)),s=r<0?null:Ck(e.slice(r+1));if(i in t){let e=t[i];Array.isArray(e)||(e=t[i]=[e]),e.push(s)}else t[i]=s}return t}function xk(e){let t="";for(let n in e){t.length&&(t+="&");const o=e[n];if(n=bk(n).replace(lk,"%3D"),null==o){void 0!==o&&(t+=n);continue}let r=Array.isArray(o)?o.map((e=>e&&bk(e))):[o&&bk(o)];for(let e=0;e<r.length;e++)t+=(e?"&":"")+n,null!=r[e]&&(t+="="+r[e])}return t}function Sk(e){const t={};for(let n in e){let o=e[n];void 0!==o&&(t[n]=Array.isArray(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}function Ak(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function kk(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((s,a)=>{const l=e=>{var l;!1===e?a(UA(4,{from:n,to:t})):e instanceof Error?a(e):"string"==typeof(l=e)||l&&"object"==typeof l?a(UA(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),s())},c=e.call(o&&o.instances[r],t,n,l);let d=Promise.resolve(c);e.length<3&&(d=d.then(l)),d.catch((e=>a(e)))}))}function Fk(e,t,n,o){const r=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(i=a)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(a.__vccOpts||a)[t];i&&r.push(kk(i,n,o,s,e))}else{let i=a();i=i.catch(console.error),r.push((()=>i.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`));const i=(a=r).__esModule||aA&&"Module"===a[Symbol.toStringTag]?r.default:r;var a;s.components[e]=i;const l=i[t];return l&&kk(l,n,o,s,e)()}))))}}var i;return r}function Ek(e){const t=Ht(uA),n=Ht(hA),o=Et((()=>t.resolve(wt(e.to)))),r=Et((()=>{let{matched:e}=o.value,{length:t}=e;const r=e[t-1];let i=n.matched;if(!r||!i.length)return-1;let s=i.findIndex(CA.bind(null,r));if(s>-1)return s;let a=_k(e[t-2]);return t>1&&_k(r)===a&&i[i.length-1].path!==a?i.findIndex(CA.bind(null,e[t-2])):s})),i=Et((()=>r.value>-1&&function(e,t){for(let n in t){let o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!Array.isArray(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),s=Et((()=>r.value>-1&&r.value===n.matched.length-1&&wA(n.params,o.value.params)));return{route:o,href:Et((()=>o.value.href)),isActive:i,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[wt(e.replace)?"replace":"push"](wt(e.to)):Promise.resolve()}}}const $k=Jt({name:"RouterLink",props:{to:{type:[String,Object],required:!0},activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},setup(e,{slots:t,attrs:n}){const o=st(Ek(e)),{options:r}=Ht(uA),i=Et((()=>({[Rk(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[Rk(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive})));return()=>{const r=t.default&&t.default(o);return e.custom?r:$r("a",fA({"aria-current":o.isExactActive?e.ariaCurrentValue:null,onClick:o.navigate,href:o.href},n,{class:i.value}),r)}}});function _k(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}let Rk=(e,t,n)=>null!=e?e:null!=t?t:n;const Bk=Jt({name:"RouterView",props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const o=Ht(hA),r=Ht(dA,0),i=Et((()=>(e.route||o).matched[r]));Nt(dA,r+1),Nt(cA,i);const s=bt();return Sr((()=>[s.value,i.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&e===o&&(t.leaveGuards=r.leaveGuards,t.updateGuards=r.updateGuards)),!e||!t||r&&CA(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=e.route||o,a=i.value,l=a&&a.components[e.name],c=e.name;if(!l)return n.default?n.default({Component:l,route:r}):null;const d=a.props[e.name],u=d?!0===d?r.params:"function"==typeof d?d(r):d:null,h=$r(l,fA({},u,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[c]=null)},ref:s}));return n.default?n.default({Component:h,route:r}):h}}});function Tk(e){const t=ek(e.routes,e);let n=e.parseQuery||wk,o=e.stringifyQuery||xk,{scrollBehavior:r}=e,i=e.history;const s=Ak(),a=Ak(),l=Ak(),c=Ct(NA,!0);let d=NA;pA&&r&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=gA.bind(null,(e=>""+e)),h=gA.bind(null,yk),p=gA.bind(null,Ck);function f(e,r){if(r=fA({},r||c.value),"string"==typeof e){let o=bA(n,e,r.path),s=t.resolve({path:o.path},r),a=i.createHref(o.fullPath);return fA(o,s,{params:p(s.params),hash:Ck(o.hash),redirectedFrom:void 0,href:a})}let s;"path"in e?s=fA({},e,{path:bA(n,e.path,r.path).path}):(s=fA({},e,{params:h(e.params)}),r.params=h(r.params));let a=t.resolve(s,r);const l=e.hash||"";a.params=u(p(a.params));const d=function(e,t){let n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,fA({},e,{hash:(f=l,vk(f).replace(fk,"{").replace(mk,"}").replace(hk,"^")),path:a.path}));var f;let g=i.createHref(d);return fA({fullPath:d,hash:l,query:o===xk?Sk(e.query):e.query},a,{redirectedFrom:void 0,href:g})}function g(e){return"string"==typeof e?{path:e}:fA({},e)}function m(e,t){if(d!==e)return UA(8,{from:t,to:e})}function v(e){return b(e)}function b(e,t){const n=d=f(e),r=c.value,i=e.state,s=e.force,a=!0===e.replace,l=n.matched[n.matched.length-1];if(l&&l.redirect){const{redirect:e}=l;let o=g("function"==typeof e?e(n):e);return b(fA({query:n.query,hash:n.hash,params:n.params},o,{state:i,force:s,replace:a}),t||n)}const u=n;let h;return u.redirectedFrom=t,!s&&function(e,t,n){let o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&CA(t.matched[o],n.matched[r])&&wA(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(h=UA(16,{to:u,from:r}),R(r,r,!0,!1)),(h?Promise.resolve(h):C(u,r)).catch((e=>KA(e,14)?e:$(e))).then((e=>{if(e){if(KA(e,2))return b(fA(g(e.to),{state:i,force:s,replace:a}),t||u)}else e=x(u,r,!0,a,i);return w(u,r,e),e}))}function y(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function C(e,t){let n;const[o,r,i]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const i=t.matched[s];i&&(e.matched.indexOf(i)<0?n.push(i):o.push(i));const a=e.matched[s];a&&t.matched.indexOf(a)<0&&r.push(a)}return[n,o,r]}(e,t);n=Fk(o.reverse(),"beforeRouteLeave",e,t);for(const s of o)for(const o of s.leaveGuards)n.push(kk(o,e,t));const l=y.bind(null,e,t);return n.push(l),Dk(n).then((()=>{n=[];for(const o of s.list())n.push(kk(o,e,t));return n.push(l),Dk(n)})).then((()=>{n=Fk(r,"beforeRouteUpdate",e,t);for(const o of r)for(const r of o.updateGuards)n.push(kk(r,e,t));return n.push(l),Dk(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&t.matched.indexOf(o)<0)if(Array.isArray(o.beforeEnter))for(const r of o.beforeEnter)n.push(kk(r,e,t));else n.push(kk(o.beforeEnter,e,t));return n.push(l),Dk(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Fk(i,"beforeRouteEnter",e,t),n.push(l),Dk(n)))).then((()=>{n=[];for(const o of a.list())n.push(kk(o,e,t));return n.push(l),Dk(n)})).catch((e=>KA(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const o of l.list())o(e,t,n)}function x(e,t,n,o,r){const s=m(e,t);if(s)return s;const a=t===NA,l=pA?history.state:{};n&&(o||a?i.replace(e.fullPath,fA({scroll:a&&l&&l.scroll},r)):i.push(e.fullPath,r)),c.value=e,R(e,t,n,a),_()}let S;function A(){S=i.listen(((e,t,n)=>{const o=f(e);d=o;const r=c.value;var s,a;pA&&(s=DA(r.fullPath,n.delta),a=BA(),MA.set(s,a)),C(o,r).catch((e=>KA(e,12)?e:KA(e,2)?(n.delta&&i.go(-n.delta,!1),b(e.to,o).catch(mA),Promise.reject()):(n.delta&&i.go(-n.delta,!1),$(e)))).then((e=>{(e=e||x(o,r,!1))&&n.delta&&i.go(-n.delta,!1),w(o,r,e)})).catch(mA)}))}let k,F=Ak(),E=Ak();function $(e){return _(e),E.list().forEach((t=>t(e))),Promise.reject(e)}function _(e){k||(k=!0,A(),F.list().forEach((([t,n])=>e?n(e):t())),F.reset())}function R(e,t,n,o){if(!pA||!r)return Promise.resolve();let i=!n&&function(e){const t=MA.get(e);return MA.delete(e),t}(DA(e.fullPath,0))||(o||!n)&&history.state&&history.state.scroll||null;return pr().then((()=>r(e,t,i))).then((e=>e&&TA(e))).catch($)}const B=e=>i.go(e);let T;const D=new Set;return{currentRoute:c,addRoute:function(e,n){let o,r;return jA(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:v,replace:function(e){return v(fA(g(e),{replace:!0}))},go:B,back:()=>B(-1),forward:()=>B(1),beforeEach:s.add,beforeResolve:a.add,afterEach:l.add,onError:E.add,isReady:function(){return k&&c.value!==NA?Promise.resolve():new Promise(((e,t)=>{F.add([e,t])}))},install(e){e.component("RouterLink",$k),e.component("RouterView",Bk),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{get:()=>wt(c)}),pA&&!T&&c.value===NA&&(T=!0,v(i.location).catch((e=>{})));const t={};for(let o in NA)t[o]=Et((()=>c.value[o]));e.provide(uA,this),e.provide(hA,st(t));let n=e.unmount;D.add(e),e.unmount=function(){D.delete(e),D.size<1&&(S(),c.value=NA,T=!1,k=!1),n.call(this,arguments)}}}}function Dk(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function Mk(){return Ht(uA)}function Lk(){return Ht(hA)}
|
||
//! moment.js
|
||
//! version : 2.29.1
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
var Pk,Ok;function zk(){return Pk.apply(null,arguments)}function Ik(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function jk(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function Nk(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Hk(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(Nk(e,t))return!1;return!0}function Wk(e){return void 0===e}function Vk(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function Uk(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Kk(e,t){var n,o=[];for(n=0;n<e.length;++n)o.push(t(e[n],n));return o}function Gk(e,t){for(var n in t)Nk(t,n)&&(e[n]=t[n]);return Nk(t,"toString")&&(e.toString=t.toString),Nk(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Yk(e,t,n,o){return i$(e,t,n,o,!0).utc()}function qk(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function Xk(e){if(null==e._isValid){var t=qk(e),n=Ok.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function Zk(e){var t=Yk(NaN);return null!=e?Gk(qk(t),e):qk(t).userInvalidated=!0,t}Ok=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),o=n.length>>>0;for(t=0;t<o;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var Jk=zk.momentProperties=[],Qk=!1;function eF(e,t){var n,o,r;if(Wk(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Wk(t._i)||(e._i=t._i),Wk(t._f)||(e._f=t._f),Wk(t._l)||(e._l=t._l),Wk(t._strict)||(e._strict=t._strict),Wk(t._tzm)||(e._tzm=t._tzm),Wk(t._isUTC)||(e._isUTC=t._isUTC),Wk(t._offset)||(e._offset=t._offset),Wk(t._pf)||(e._pf=qk(t)),Wk(t._locale)||(e._locale=t._locale),Jk.length>0)for(n=0;n<Jk.length;n++)Wk(r=t[o=Jk[n]])||(e[o]=r);return e}function tF(e){eF(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Qk&&(Qk=!0,zk.updateOffset(this),Qk=!1)}function nF(e){return e instanceof tF||null!=e&&null!=e._isAMomentObject}function oF(e){!1===zk.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function rF(e,t){var n=!0;return Gk((function(){if(null!=zk.deprecationHandler&&zk.deprecationHandler(null,e),n){var o,r,i,s=[];for(r=0;r<arguments.length;r++){if(o="","object"==typeof arguments[r]){for(i in o+="\n["+r+"] ",arguments[0])Nk(arguments[0],i)&&(o+=i+": "+arguments[0][i]+", ");o=o.slice(0,-2)}else o=arguments[r];s.push(o)}oF(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var iF,sF={};function aF(e,t){null!=zk.deprecationHandler&&zk.deprecationHandler(e,t),sF[e]||(oF(t),sF[e]=!0)}function lF(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function cF(e,t){var n,o=Gk({},e);for(n in t)Nk(t,n)&&(jk(e[n])&&jk(t[n])?(o[n]={},Gk(o[n],e[n]),Gk(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)Nk(e,n)&&!Nk(t,n)&&jk(e[n])&&(o[n]=Gk({},o[n]));return o}function dF(e){null!=e&&this.set(e)}zk.suppressDeprecationWarnings=!1,zk.deprecationHandler=null,iF=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)Nk(e,t)&&n.push(t);return n};function uF(e,t,n){var o=""+Math.abs(e),r=t-o.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var hF=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,pF=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fF={},gF={};function mF(e,t,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),e&&(gF[e]=r),t&&(gF[t[0]]=function(){return uF(r.apply(this,arguments),t[1],t[2])}),n&&(gF[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function vF(e,t){return e.isValid()?(t=bF(t,e.localeData()),fF[t]=fF[t]||function(e){var t,n,o,r=e.match(hF);for(t=0,n=r.length;t<n;t++)gF[r[t]]?r[t]=gF[r[t]]:r[t]=(o=r[t]).match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"");return function(t){var o,i="";for(o=0;o<n;o++)i+=lF(r[o])?r[o].call(t,e):r[o];return i}}(t),fF[t](e)):e.localeData().invalidDate()}function bF(e,t){var n=5;function o(e){return t.longDateFormat(e)||e}for(pF.lastIndex=0;n>=0&&pF.test(e);)e=e.replace(pF,o),pF.lastIndex=0,n-=1;return e}var yF={};function CF(e,t){var n=e.toLowerCase();yF[n]=yF[n+"s"]=yF[t]=e}function wF(e){return"string"==typeof e?yF[e]||yF[e.toLowerCase()]:void 0}function xF(e){var t,n,o={};for(n in e)Nk(e,n)&&(t=wF(n))&&(o[t]=e[n]);return o}var SF={};function AF(e,t){SF[e]=t}function kF(e){return e%4==0&&e%100!=0||e%400==0}function FF(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function EF(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=FF(t)),n}function $F(e,t){return function(n){return null!=n?(RF(this,e,n),zk.updateOffset(this,t),this):_F(this,e)}}function _F(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function RF(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&kF(e.year())&&1===e.month()&&29===e.date()?(n=EF(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),nE(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var BF,TF=/\d/,DF=/\d\d/,MF=/\d{3}/,LF=/\d{4}/,PF=/[+-]?\d{6}/,OF=/\d\d?/,zF=/\d\d\d\d?/,IF=/\d\d\d\d\d\d?/,jF=/\d{1,3}/,NF=/\d{1,4}/,HF=/[+-]?\d{1,6}/,WF=/\d+/,VF=/[+-]?\d+/,UF=/Z|[+-]\d\d:?\d\d/gi,KF=/Z|[+-]\d\d(?::?\d\d)?/gi,GF=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function YF(e,t,n){BF[e]=lF(t)?t:function(e,o){return e&&n?n:t}}function qF(e,t){return Nk(BF,e)?BF[e](t._strict,t._locale):new RegExp(XF(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,o,r){return t||n||o||r}))))}function XF(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}BF={};var ZF={};function JF(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),Vk(t)&&(o=function(e,n){n[t]=EF(e)}),n=0;n<e.length;n++)ZF[e[n]]=o}function QF(e,t){JF(e,(function(e,n,o,r){o._w=o._w||{},t(e,o._w,o,r)}))}function eE(e,t,n){null!=t&&Nk(ZF,e)&&ZF[e](t,n._a,n,e)}var tE;function nE(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,o=(t%(n=12)+n)%n;return e+=(t-o)/12,1===o?kF(e)?29:28:31-o%7%2}tE=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},mF("M",["MM",2],"Mo",(function(){return this.month()+1})),mF("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),mF("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),CF("month","M"),AF("month",8),YF("M",OF),YF("MM",OF,DF),YF("MMM",(function(e,t){return t.monthsShortRegex(e)})),YF("MMMM",(function(e,t){return t.monthsRegex(e)})),JF(["M","MM"],(function(e,t){t[1]=EF(e)-1})),JF(["MMM","MMMM"],(function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);null!=r?t[1]=r:qk(n).invalidMonth=e}));var oE="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),rE="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),iE=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,sE=GF,aE=GF;function lE(e,t,n){var o,r,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=Yk([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=tE.call(this._shortMonthsParse,s))?r:null:-1!==(r=tE.call(this._longMonthsParse,s))?r:null:"MMM"===t?-1!==(r=tE.call(this._shortMonthsParse,s))||-1!==(r=tE.call(this._longMonthsParse,s))?r:null:-1!==(r=tE.call(this._longMonthsParse,s))||-1!==(r=tE.call(this._shortMonthsParse,s))?r:null}function cE(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=EF(t);else if(!Vk(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),nE(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dE(e){return null!=e?(cE(this,e),zk.updateOffset(this,!0),this):_F(this,"Month")}function uE(){function e(e,t){return t.length-e.length}var t,n,o=[],r=[],i=[];for(t=0;t<12;t++)n=Yk([2e3,t]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(o.sort(e),r.sort(e),i.sort(e),t=0;t<12;t++)o[t]=XF(o[t]),r[t]=XF(r[t]);for(t=0;t<24;t++)i[t]=XF(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function hE(e){return kF(e)?366:365}mF("Y",0,0,(function(){var e=this.year();return e<=9999?uF(e,4):"+"+e})),mF(0,["YY",2],0,(function(){return this.year()%100})),mF(0,["YYYY",4],0,"year"),mF(0,["YYYYY",5],0,"year"),mF(0,["YYYYYY",6,!0],0,"year"),CF("year","y"),AF("year",1),YF("Y",VF),YF("YY",OF,DF),YF("YYYY",NF,LF),YF("YYYYY",HF,PF),YF("YYYYYY",HF,PF),JF(["YYYYY","YYYYYY"],0),JF("YYYY",(function(e,t){t[0]=2===e.length?zk.parseTwoDigitYear(e):EF(e)})),JF("YY",(function(e,t){t[0]=zk.parseTwoDigitYear(e)})),JF("Y",(function(e,t){t[0]=parseInt(e,10)})),zk.parseTwoDigitYear=function(e){return EF(e)+(EF(e)>68?1900:2e3)};var pE=$F("FullYear",!0);function fE(e,t,n,o,r,i,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,o,r,i,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,o,r,i,s),a}function gE(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function mE(e,t,n){var o=7+t-n;return-((7+gE(e,0,o).getUTCDay()-t)%7)+o-1}function vE(e,t,n,o,r){var i,s,a=1+7*(t-1)+(7+n-o)%7+mE(e,o,r);return a<=0?s=hE(i=e-1)+a:a>hE(e)?(i=e+1,s=a-hE(e)):(i=e,s=a),{year:i,dayOfYear:s}}function bE(e,t,n){var o,r,i=mE(e.year(),t,n),s=Math.floor((e.dayOfYear()-i-1)/7)+1;return s<1?o=s+yE(r=e.year()-1,t,n):s>yE(e.year(),t,n)?(o=s-yE(e.year(),t,n),r=e.year()+1):(r=e.year(),o=s),{week:o,year:r}}function yE(e,t,n){var o=mE(e,t,n),r=mE(e+1,t,n);return(hE(e)-o+r)/7}mF("w",["ww",2],"wo","week"),mF("W",["WW",2],"Wo","isoWeek"),CF("week","w"),CF("isoWeek","W"),AF("week",5),AF("isoWeek",5),YF("w",OF),YF("ww",OF,DF),YF("W",OF),YF("WW",OF,DF),QF(["w","ww","W","WW"],(function(e,t,n,o){t[o.substr(0,1)]=EF(e)}));function CE(e,t){return e.slice(t,7).concat(e.slice(0,t))}mF("d",0,"do","day"),mF("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),mF("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),mF("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),mF("e",0,0,"weekday"),mF("E",0,0,"isoWeekday"),CF("day","d"),CF("weekday","e"),CF("isoWeekday","E"),AF("day",11),AF("weekday",11),AF("isoWeekday",11),YF("d",OF),YF("e",OF),YF("E",OF),YF("dd",(function(e,t){return t.weekdaysMinRegex(e)})),YF("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),YF("dddd",(function(e,t){return t.weekdaysRegex(e)})),QF(["dd","ddd","dddd"],(function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:qk(n).invalidWeekday=e})),QF(["d","e","E"],(function(e,t,n,o){t[o]=EF(e)}));var wE="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xE="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),SE="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),AE=GF,kE=GF,FE=GF;function EE(e,t,n){var o,r,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=Yk([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=tE.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=tE.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=tE.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=tE.call(this._weekdaysParse,s))||-1!==(r=tE.call(this._shortWeekdaysParse,s))||-1!==(r=tE.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=tE.call(this._shortWeekdaysParse,s))||-1!==(r=tE.call(this._weekdaysParse,s))||-1!==(r=tE.call(this._minWeekdaysParse,s))?r:null:-1!==(r=tE.call(this._minWeekdaysParse,s))||-1!==(r=tE.call(this._weekdaysParse,s))||-1!==(r=tE.call(this._shortWeekdaysParse,s))?r:null}function $E(){function e(e,t){return t.length-e.length}var t,n,o,r,i,s=[],a=[],l=[],c=[];for(t=0;t<7;t++)n=Yk([2e3,1]).day(t),o=XF(this.weekdaysMin(n,"")),r=XF(this.weekdaysShort(n,"")),i=XF(this.weekdays(n,"")),s.push(o),a.push(r),l.push(i),c.push(o),c.push(r),c.push(i);s.sort(e),a.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function _E(){return this.hours()%12||12}function RE(e,t){mF(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function BE(e,t){return t._meridiemParse}mF("H",["HH",2],0,"hour"),mF("h",["hh",2],0,_E),mF("k",["kk",2],0,(function(){return this.hours()||24})),mF("hmm",0,0,(function(){return""+_E.apply(this)+uF(this.minutes(),2)})),mF("hmmss",0,0,(function(){return""+_E.apply(this)+uF(this.minutes(),2)+uF(this.seconds(),2)})),mF("Hmm",0,0,(function(){return""+this.hours()+uF(this.minutes(),2)})),mF("Hmmss",0,0,(function(){return""+this.hours()+uF(this.minutes(),2)+uF(this.seconds(),2)})),RE("a",!0),RE("A",!1),CF("hour","h"),AF("hour",13),YF("a",BE),YF("A",BE),YF("H",OF),YF("h",OF),YF("k",OF),YF("HH",OF,DF),YF("hh",OF,DF),YF("kk",OF,DF),YF("hmm",zF),YF("hmmss",IF),YF("Hmm",zF),YF("Hmmss",IF),JF(["H","HH"],3),JF(["k","kk"],(function(e,t,n){var o=EF(e);t[3]=24===o?0:o})),JF(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),JF(["h","hh"],(function(e,t,n){t[3]=EF(e),qk(n).bigHour=!0})),JF("hmm",(function(e,t,n){var o=e.length-2;t[3]=EF(e.substr(0,o)),t[4]=EF(e.substr(o)),qk(n).bigHour=!0})),JF("hmmss",(function(e,t,n){var o=e.length-4,r=e.length-2;t[3]=EF(e.substr(0,o)),t[4]=EF(e.substr(o,2)),t[5]=EF(e.substr(r)),qk(n).bigHour=!0})),JF("Hmm",(function(e,t,n){var o=e.length-2;t[3]=EF(e.substr(0,o)),t[4]=EF(e.substr(o))})),JF("Hmmss",(function(e,t,n){var o=e.length-4,r=e.length-2;t[3]=EF(e.substr(0,o)),t[4]=EF(e.substr(o,2)),t[5]=EF(e.substr(r))}));var TE=$F("Hours",!0);var DE,ME={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:oE,monthsShort:rE,week:{dow:0,doy:6},weekdays:wE,weekdaysMin:SE,weekdaysShort:xE,meridiemParse:/[ap]\.?m?\.?/i},LE={},PE={};function OE(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}function zE(e){return e?e.toLowerCase().replace("_","-"):e}function IE(e){var t=null;if(void 0===LE[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=DE._abbr,require("./locale/"+e),jE(t)}catch(n){LE[e]=null}return LE[e]}function jE(e,t){var n;return e&&((n=Wk(t)?HE(e):NE(e,t))?DE=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),DE._abbr}function NE(e,t){if(null!==t){var n,o=ME;if(t.abbr=e,null!=LE[e])aF("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=LE[e]._config;else if(null!=t.parentLocale)if(null!=LE[t.parentLocale])o=LE[t.parentLocale]._config;else{if(null==(n=IE(t.parentLocale)))return PE[t.parentLocale]||(PE[t.parentLocale]=[]),PE[t.parentLocale].push({name:e,config:t}),null;o=n._config}return LE[e]=new dF(cF(o,t)),PE[e]&&PE[e].forEach((function(e){NE(e.name,e.config)})),jE(e),LE[e]}return delete LE[e],null}function HE(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return DE;if(!Ik(e)){if(t=IE(e))return t;e=[e]}return function(e){for(var t,n,o,r,i=0;i<e.length;){for(t=(r=zE(e[i]).split("-")).length,n=(n=zE(e[i+1]))?n.split("-"):null;t>0;){if(o=IE(r.slice(0,t).join("-")))return o;if(n&&n.length>=t&&OE(r,n)>=t-1)break;t--}i++}return DE}(e)}function WE(e){var t,n=e._a;return n&&-2===qk(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>nE(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,qk(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),qk(e)._overflowWeeks&&-1===t&&(t=7),qk(e)._overflowWeekday&&-1===t&&(t=8),qk(e).overflow=t),e}var VE=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,UE=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,KE=/Z|[+-]\d\d(?::?\d\d)?/,GE=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],YE=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],qE=/^\/?Date\((-?\d+)/i,XE=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ZE={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function JE(e){var t,n,o,r,i,s,a=e._i,l=VE.exec(a)||UE.exec(a);if(l){for(qk(e).iso=!0,t=0,n=GE.length;t<n;t++)if(GE[t][1].exec(l[1])){r=GE[t][0],o=!1!==GE[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=YE.length;t<n;t++)if(YE[t][1].exec(l[3])){i=(l[2]||" ")+YE[t][0];break}if(null==i)return void(e._isValid=!1)}if(!o&&null!=i)return void(e._isValid=!1);if(l[4]){if(!KE.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(i||"")+(s||""),o$(e)}else e._isValid=!1}function QE(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function e$(e){var t,n,o,r,i,s,a,l,c=XE.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],o=c[3],r=c[2],i=c[5],s=c[6],a=c[7],l=[QE(n),rE.indexOf(o),parseInt(r,10),parseInt(i,10),parseInt(s,10)],a&&l.push(parseInt(a,10)),t=l,!function(e,t,n){return!e||xE.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(qk(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return ZE[e];if(t)return 0;var o=parseInt(n,10),r=o%100;return(o-r)/100*60+r}(c[8],c[9],c[10]),e._d=gE.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),qk(e).rfc2822=!0}else e._isValid=!1}function t$(e,t,n){return null!=e?e:null!=t?t:n}function n$(e){var t,n,o,r,i,s=[];if(!e._d){for(o=function(e){var t=new Date(zk.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,o,r,i,s,a,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,s=4,n=t$(t.GG,e._a[0],bE(s$(),1,4).year),o=t$(t.W,1),((r=t$(t.E,1))<1||r>7)&&(l=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,c=bE(s$(),i,s),n=t$(t.gg,e._a[0],c.year),o=t$(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+i,(t.e<0||t.e>6)&&(l=!0)):r=i);o<1||o>yE(n,i,s)?qk(e)._overflowWeeks=!0:null!=l?qk(e)._overflowWeekday=!0:(a=vE(n,o,r,i,s),e._a[0]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(i=t$(e._a[0],o[0]),(e._dayOfYear>hE(i)||0===e._dayOfYear)&&(qk(e)._overflowDayOfYear=!0),n=gE(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=o[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?gE:fE).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(qk(e).weekdayMismatch=!0)}}function o$(e){if(e._f!==zk.ISO_8601)if(e._f!==zk.RFC_2822){e._a=[],qk(e).empty=!0;var t,n,o,r,i,s,a=""+e._i,l=a.length,c=0;for(o=bF(e._f,e._locale).match(hF)||[],t=0;t<o.length;t++)r=o[t],(n=(a.match(qF(r,e))||[])[0])&&((i=a.substr(0,a.indexOf(n))).length>0&&qk(e).unusedInput.push(i),a=a.slice(a.indexOf(n)+n.length),c+=n.length),gF[r]?(n?qk(e).empty=!1:qk(e).unusedTokens.push(r),eE(r,n,e)):e._strict&&!n&&qk(e).unusedTokens.push(r);qk(e).charsLeftOver=l-c,a.length>0&&qk(e).unusedInput.push(a),e._a[3]<=12&&!0===qk(e).bigHour&&e._a[3]>0&&(qk(e).bigHour=void 0),qk(e).parsedDateParts=e._a.slice(0),qk(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var o;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((o=e.isPM(n))&&t<12&&(t+=12),o||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=qk(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),n$(e),WE(e)}else e$(e);else JE(e)}function r$(e){var t=e._i,n=e._f;return e._locale=e._locale||HE(e._l),null===t||void 0===n&&""===t?Zk({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),nF(t)?new tF(WE(t)):(Uk(t)?e._d=t:Ik(n)?function(e){var t,n,o,r,i,s,a=!1;if(0===e._f.length)return qk(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)i=0,s=!1,t=eF({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],o$(t),Xk(t)&&(s=!0),i+=qk(t).charsLeftOver,i+=10*qk(t).unusedTokens.length,qk(t).score=i,a?i<o&&(o=i,n=t):(null==o||i<o||s)&&(o=i,n=t,s&&(a=!0));Gk(e,n||t)}(e):n?o$(e):function(e){var t=e._i;Wk(t)?e._d=new Date(zk.now()):Uk(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=qE.exec(e._i);null===t?(JE(e),!1===e._isValid&&(delete e._isValid,e$(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:zk.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):Ik(t)?(e._a=Kk(t.slice(0),(function(e){return parseInt(e,10)})),n$(e)):jk(t)?function(e){if(!e._d){var t=xF(e._i),n=void 0===t.day?t.date:t.day;e._a=Kk([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),n$(e)}}(e):Vk(t)?e._d=new Date(t):zk.createFromInputFallback(e)}(e),Xk(e)||(e._d=null),e))}function i$(e,t,n,o,r){var i,s={};return!0!==t&&!1!==t||(o=t,t=void 0),!0!==n&&!1!==n||(o=n,n=void 0),(jk(e)&&Hk(e)||Ik(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=e,s._f=t,s._strict=o,(i=new tF(WE(r$(s))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function s$(e,t,n,o){return i$(e,t,n,o,!1)}zk.createFromInputFallback=rF("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),zk.ISO_8601=function(){},zk.RFC_2822=function(){};var a$=rF("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=s$.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Zk()})),l$=rF("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=s$.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Zk()}));function c$(e,t){var n,o;if(1===t.length&&Ik(t[0])&&(t=t[0]),!t.length)return s$();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}var d$=["year","quarter","month","week","day","hour","minute","second","millisecond"];function u$(e){var t=xF(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,o=!1;for(t in e)if(Nk(e,t)&&(-1===tE.call(d$,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<d$.length;++n)if(e[d$[n]]){if(o)return!1;parseFloat(e[d$[n]])!==EF(e[d$[n]])&&(o=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*l+1e3*a*60*60,this._days=+s+7*i,this._months=+r+3*o+12*n,this._data={},this._locale=HE(),this._bubble()}function h$(e){return e instanceof u$}function p$(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function f$(e,t){mF(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+uF(~~(e/60),2)+t+uF(~~e%60,2)}))}f$("Z",":"),f$("ZZ",""),YF("Z",KF),YF("ZZ",KF),JF(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=m$(KF,e)}));var g$=/([\+\-]|\d\d)/gi;function m$(e,t){var n,o,r=(t||"").match(e);return null===r?null:0===(o=60*(n=((r[r.length-1]||[])+"").match(g$)||["-",0,0])[1]+EF(n[2]))?0:"+"===n[0]?o:-o}function v$(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(nF(e)||Uk(e)?e.valueOf():s$(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),zk.updateOffset(n,!1),n):s$(e).local()}function b$(e){return-Math.round(e._d.getTimezoneOffset())}function y$(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}zk.updateOffset=function(){};var C$=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,w$=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function x$(e,t){var n,o,r,i=e,s=null;return h$(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:Vk(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=C$.exec(e))?(n="-"===s[1]?-1:1,i={y:0,d:EF(s[2])*n,h:EF(s[3])*n,m:EF(s[4])*n,s:EF(s[5])*n,ms:EF(p$(1e3*s[6]))*n}):(s=w$.exec(e))?(n="-"===s[1]?-1:1,i={y:S$(s[2],n),M:S$(s[3],n),w:S$(s[4],n),d:S$(s[5],n),h:S$(s[6],n),m:S$(s[7],n),s:S$(s[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=v$(t,e),e.isBefore(t)?n=A$(e,t):((n=A$(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(s$(i.from),s$(i.to)),(i={}).ms=r.milliseconds,i.M=r.months),o=new u$(i),h$(e)&&Nk(e,"_locale")&&(o._locale=e._locale),h$(e)&&Nk(e,"_isValid")&&(o._isValid=e._isValid),o}function S$(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function A$(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function k$(e,t){return function(n,o){var r;return null===o||isNaN(+o)||(aF(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=o,o=r),F$(this,x$(n,o),e),this}}function F$(e,t,n,o){var r=t._milliseconds,i=p$(t._days),s=p$(t._months);e.isValid()&&(o=null==o||o,s&&cE(e,_F(e,"Month")+s*n),i&&RF(e,"Date",_F(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&zk.updateOffset(e,i||s))}x$.fn=u$.prototype,x$.invalid=function(){return x$(NaN)};var E$=k$(1,"add"),$$=k$(-1,"subtract");function _$(e){return"string"==typeof e||e instanceof String}function R$(e){return nF(e)||Uk(e)||_$(e)||Vk(e)||function(e){var t=Ik(e),n=!1;t&&(n=0===e.filter((function(t){return!Vk(t)&&_$(e)})).length);return t&&n}(e)||function(e){var t,n,o=jk(e)&&!Hk(e),r=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<i.length;t+=1)n=i[t],r=r||Nk(e,n);return o&&r}(e)||null==e}function B$(e){var t,n=jk(e)&&!Hk(e),o=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)o=o||Nk(e,r[t]);return n&&o}function T$(e,t){if(e.date()<t.date())return-T$(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(n,"months");return-(n+(t-o<0?(t-o)/(o-e.clone().add(n-1,"months")):(t-o)/(e.clone().add(n+1,"months")-o)))||0}function D$(e){var t;return void 0===e?this._locale._abbr:(null!=(t=HE(e))&&(this._locale=t),this)}zk.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",zk.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var M$=rF("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function L$(){return this._locale}function P$(e,t){return(e%t+t)%t}function O$(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function z$(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function I$(e,t){return t.erasAbbrRegex(e)}function j$(){var e,t,n=[],o=[],r=[],i=[],s=this.eras();for(e=0,t=s.length;e<t;++e)o.push(XF(s[e].name)),n.push(XF(s[e].abbr)),r.push(XF(s[e].narrow)),i.push(XF(s[e].name)),i.push(XF(s[e].abbr)),i.push(XF(s[e].narrow));this._erasRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function N$(e,t){mF(0,[e,e.length],0,t)}function H$(e,t,n,o,r){var i;return null==e?bE(this,o,r).year:(t>(i=yE(e,o,r))&&(t=i),W$.call(this,e,t,n,o,r))}function W$(e,t,n,o,r){var i=vE(e,t,n,o,r),s=gE(i.year,0,i.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}mF("N",0,0,"eraAbbr"),mF("NN",0,0,"eraAbbr"),mF("NNN",0,0,"eraAbbr"),mF("NNNN",0,0,"eraName"),mF("NNNNN",0,0,"eraNarrow"),mF("y",["y",1],"yo","eraYear"),mF("y",["yy",2],0,"eraYear"),mF("y",["yyy",3],0,"eraYear"),mF("y",["yyyy",4],0,"eraYear"),YF("N",I$),YF("NN",I$),YF("NNN",I$),YF("NNNN",(function(e,t){return t.erasNameRegex(e)})),YF("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),JF(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?qk(n).era=r:qk(n).invalidEra=e})),YF("y",WF),YF("yy",WF),YF("yyy",WF),YF("yyyy",WF),YF("yo",(function(e,t){return t._eraYearOrdinalRegex||WF})),JF(["y","yy","yyy","yyyy"],0),JF(["yo"],(function(e,t,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,r):t[0]=parseInt(e,10)})),mF(0,["gg",2],0,(function(){return this.weekYear()%100})),mF(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),N$("gggg","weekYear"),N$("ggggg","weekYear"),N$("GGGG","isoWeekYear"),N$("GGGGG","isoWeekYear"),CF("weekYear","gg"),CF("isoWeekYear","GG"),AF("weekYear",1),AF("isoWeekYear",1),YF("G",VF),YF("g",VF),YF("GG",OF,DF),YF("gg",OF,DF),YF("GGGG",NF,LF),YF("gggg",NF,LF),YF("GGGGG",HF,PF),YF("ggggg",HF,PF),QF(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,o){t[o.substr(0,2)]=EF(e)})),QF(["gg","GG"],(function(e,t,n,o){t[o]=zk.parseTwoDigitYear(e)})),mF("Q",0,"Qo","quarter"),CF("quarter","Q"),AF("quarter",7),YF("Q",TF),JF("Q",(function(e,t){t[1]=3*(EF(e)-1)})),mF("D",["DD",2],"Do","date"),CF("date","D"),AF("date",9),YF("D",OF),YF("DD",OF,DF),YF("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),JF(["D","DD"],2),JF("Do",(function(e,t){t[2]=EF(e.match(OF)[0])}));var V$=$F("Date",!0);mF("DDD",["DDDD",3],"DDDo","dayOfYear"),CF("dayOfYear","DDD"),AF("dayOfYear",4),YF("DDD",jF),YF("DDDD",MF),JF(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=EF(e)})),mF("m",["mm",2],0,"minute"),CF("minute","m"),AF("minute",14),YF("m",OF),YF("mm",OF,DF),JF(["m","mm"],4);var U$=$F("Minutes",!1);mF("s",["ss",2],0,"second"),CF("second","s"),AF("second",15),YF("s",OF),YF("ss",OF,DF),JF(["s","ss"],5);var K$,G$,Y$=$F("Seconds",!1);for(mF("S",0,0,(function(){return~~(this.millisecond()/100)})),mF(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),mF(0,["SSS",3],0,"millisecond"),mF(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),mF(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),mF(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),mF(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),mF(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),mF(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),CF("millisecond","ms"),AF("millisecond",16),YF("S",jF,TF),YF("SS",jF,DF),YF("SSS",jF,MF),K$="SSSS";K$.length<=9;K$+="S")YF(K$,WF);function q$(e,t){t[6]=EF(1e3*("0."+e))}for(K$="S";K$.length<=9;K$+="S")JF(K$,q$);G$=$F("Milliseconds",!1),mF("z",0,0,"zoneAbbr"),mF("zz",0,0,"zoneName");var X$=tF.prototype;function Z$(e){return e}X$.add=E$,X$.calendar=function(e,t){1===arguments.length&&(arguments[0]?R$(arguments[0])?(e=arguments[0],t=void 0):B$(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||s$(),o=v$(n,this).startOf("day"),r=zk.calendarFormat(this,o)||"sameElse",i=t&&(lF(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,s$(n)))},X$.clone=function(){return new tF(this)},X$.diff=function(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(!(o=v$(e,this)).isValid())return NaN;switch(r=6e4*(o.utcOffset()-this.utcOffset()),t=wF(t)){case"year":i=T$(this,o)/12;break;case"month":i=T$(this,o);break;case"quarter":i=T$(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:FF(i)},X$.endOf=function(e){var t,n;if(void 0===(e=wF(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?z$:O$,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-P$(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-P$(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-P$(t,1e3)-1}return this._d.setTime(t),zk.updateOffset(this,!0),this},X$.format=function(e){e||(e=this.isUtc()?zk.defaultFormatUtc:zk.defaultFormat);var t=vF(this,e);return this.localeData().postformat(t)},X$.from=function(e,t){return this.isValid()&&(nF(e)&&e.isValid()||s$(e).isValid())?x$({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},X$.fromNow=function(e){return this.from(s$(),e)},X$.to=function(e,t){return this.isValid()&&(nF(e)&&e.isValid()||s$(e).isValid())?x$({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},X$.toNow=function(e){return this.to(s$(),e)},X$.get=function(e){return lF(this[e=wF(e)])?this[e]():this},X$.invalidAt=function(){return qk(this).overflow},X$.isAfter=function(e,t){var n=nF(e)?e:s$(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=wF(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},X$.isBefore=function(e,t){var n=nF(e)?e:s$(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=wF(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},X$.isBetween=function(e,t,n,o){var r=nF(e)?e:s$(e),i=nF(t)?t:s$(t);return!!(this.isValid()&&r.isValid()&&i.isValid())&&(("("===(o=o||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===o[1]?this.isBefore(i,n):!this.isAfter(i,n)))},X$.isSame=function(e,t){var n,o=nF(e)?e:s$(e);return!(!this.isValid()||!o.isValid())&&("millisecond"===(t=wF(t)||"millisecond")?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},X$.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},X$.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},X$.isValid=function(){return Xk(this)},X$.lang=M$,X$.locale=D$,X$.localeData=L$,X$.max=l$,X$.min=a$,X$.parsingFlags=function(){return Gk({},qk(this))},X$.set=function(e,t){if("object"==typeof e){var n,o=function(e){var t,n=[];for(t in e)Nk(e,t)&&n.push({unit:t,priority:SF[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=xF(e));for(n=0;n<o.length;n++)this[o[n].unit](e[o[n].unit])}else if(lF(this[e=wF(e)]))return this[e](t);return this},X$.startOf=function(e){var t,n;if(void 0===(e=wF(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?z$:O$,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=P$(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=P$(t,6e4);break;case"second":t=this._d.valueOf(),t-=P$(t,1e3)}return this._d.setTime(t),zk.updateOffset(this,!0),this},X$.subtract=$$,X$.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},X$.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},X$.toDate=function(){return new Date(this.valueOf())},X$.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?vF(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):lF(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",vF(n,"Z")):vF(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},X$.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,o="moment",r="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY","-MM-DD[T]HH:mm:ss.SSS",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(X$[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),X$.toJSON=function(){return this.isValid()?this.toISOString():null},X$.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},X$.unix=function(){return Math.floor(this.valueOf()/1e3)},X$.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},X$.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},X$.eraName=function(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].name;if(o[e].until<=n&&n<=o[e].since)return o[e].name}return""},X$.eraNarrow=function(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].narrow;if(o[e].until<=n&&n<=o[e].since)return o[e].narrow}return""},X$.eraAbbr=function(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until)return o[e].abbr;if(o[e].until<=n&&n<=o[e].since)return o[e].abbr}return""},X$.eraYear=function(){var e,t,n,o,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,o=this.clone().startOf("day").valueOf(),r[e].since<=o&&o<=r[e].until||r[e].until<=o&&o<=r[e].since)return(this.year()-zk(r[e].since).year())*n+r[e].offset;return this.year()},X$.year=pE,X$.isLeapYear=function(){return kF(this.year())},X$.weekYear=function(e){return H$.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},X$.isoWeekYear=function(e){return H$.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},X$.quarter=X$.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},X$.month=dE,X$.daysInMonth=function(){return nE(this.year(),this.month())},X$.week=X$.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},X$.isoWeek=X$.isoWeeks=function(e){var t=bE(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},X$.weeksInYear=function(){var e=this.localeData()._week;return yE(this.year(),e.dow,e.doy)},X$.weeksInWeekYear=function(){var e=this.localeData()._week;return yE(this.weekYear(),e.dow,e.doy)},X$.isoWeeksInYear=function(){return yE(this.year(),1,4)},X$.isoWeeksInISOWeekYear=function(){return yE(this.isoWeekYear(),1,4)},X$.date=V$,X$.day=X$.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},X$.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},X$.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},X$.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},X$.hour=X$.hours=TE,X$.minute=X$.minutes=U$,X$.second=X$.seconds=Y$,X$.millisecond=X$.milliseconds=G$,X$.utcOffset=function(e,t,n){var o,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=m$(KF,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=b$(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==e&&(!t||this._changeInProgress?F$(this,x$(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,zk.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:b$(this)},X$.utc=function(e){return this.utcOffset(0,e)},X$.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(b$(this),"m")),this},X$.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=m$(UF,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},X$.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?s$(e).utcOffset():0,(this.utcOffset()-e)%60==0)},X$.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},X$.isLocal=function(){return!!this.isValid()&&!this._isUTC},X$.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},X$.isUtc=y$,X$.isUTC=y$,X$.zoneAbbr=function(){return this._isUTC?"UTC":""},X$.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},X$.dates=rF("dates accessor is deprecated. Use date instead.",V$),X$.months=rF("months accessor is deprecated. Use month instead",dE),X$.years=rF("years accessor is deprecated. Use year instead",pE),X$.zone=rF("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),X$.isDSTShifted=rF("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!Wk(this._isDSTShifted))return this._isDSTShifted;var e,t={};return eF(t,this),(t=r$(t))._a?(e=t._isUTC?Yk(t._a):s$(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var o,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&EF(e[o])!==EF(t[o]))&&s++;return s+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var J$=dF.prototype;function Q$(e,t,n,o){var r=HE(),i=Yk().set(o,t);return r[n](i,e)}function e_(e,t,n){if(Vk(e)&&(t=e,e=void 0),e=e||"",null!=t)return Q$(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=Q$(e,o,n,"month");return r}function t_(e,t,n,o){"boolean"==typeof e?(Vk(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,Vk(t)&&(n=t,t=void 0),t=t||"");var r,i=HE(),s=e?i._week.dow:0,a=[];if(null!=n)return Q$(t,(n+s)%7,o,"day");for(r=0;r<7;r++)a[r]=Q$(t,(r+s)%7,o,"day");return a}J$.calendar=function(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return lF(o)?o.call(t,n):o},J$.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(hF).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},J$.invalidDate=function(){return this._invalidDate},J$.ordinal=function(e){return this._ordinal.replace("%d",e)},J$.preparse=Z$,J$.postformat=Z$,J$.relativeTime=function(e,t,n,o){var r=this._relativeTime[n];return lF(r)?r(e,t,n,o):r.replace(/%d/i,e)},J$.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return lF(n)?n(t):n.replace(/%s/i,t)},J$.set=function(e){var t,n;for(n in e)Nk(e,n)&&(lF(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},J$.eras=function(e,t){var n,o,r,i=this._eras||HE("en")._eras;for(n=0,o=i.length;n<o;++n){switch(typeof i[n].since){case"string":r=zk(i[n].since).startOf("day"),i[n].since=r.valueOf()}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=zk(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf()}}return i},J$.erasParse=function(e,t,n){var o,r,i,s,a,l=this.eras();for(e=e.toUpperCase(),o=0,r=l.length;o<r;++o)if(i=l[o].name.toUpperCase(),s=l[o].abbr.toUpperCase(),a=l[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[o];break;case"NNNN":if(i===e)return l[o];break;case"NNNNN":if(a===e)return l[o]}else if([i,s,a].indexOf(e)>=0)return l[o]},J$.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?zk(e.since).year():zk(e.since).year()+(t-e.offset)*n},J$.erasAbbrRegex=function(e){return Nk(this,"_erasAbbrRegex")||j$.call(this),e?this._erasAbbrRegex:this._erasRegex},J$.erasNameRegex=function(e){return Nk(this,"_erasNameRegex")||j$.call(this),e?this._erasNameRegex:this._erasRegex},J$.erasNarrowRegex=function(e){return Nk(this,"_erasNarrowRegex")||j$.call(this),e?this._erasNarrowRegex:this._erasRegex},J$.months=function(e,t){return e?Ik(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||iE).test(t)?"format":"standalone"][e.month()]:Ik(this._months)?this._months:this._months.standalone},J$.monthsShort=function(e,t){return e?Ik(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[iE.test(t)?"format":"standalone"][e.month()]:Ik(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},J$.monthsParse=function(e,t,n){var o,r,i;if(this._monthsParseExact)return lE.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=Yk([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}},J$.monthsRegex=function(e){return this._monthsParseExact?(Nk(this,"_monthsRegex")||uE.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Nk(this,"_monthsRegex")||(this._monthsRegex=aE),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},J$.monthsShortRegex=function(e){return this._monthsParseExact?(Nk(this,"_monthsRegex")||uE.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Nk(this,"_monthsShortRegex")||(this._monthsShortRegex=sE),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},J$.week=function(e){return bE(e,this._week.dow,this._week.doy).week},J$.firstDayOfYear=function(){return this._week.doy},J$.firstDayOfWeek=function(){return this._week.dow},J$.weekdays=function(e,t){var n=Ik(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?CE(n,this._week.dow):e?n[e.day()]:n},J$.weekdaysMin=function(e){return!0===e?CE(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},J$.weekdaysShort=function(e){return!0===e?CE(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},J$.weekdaysParse=function(e,t,n){var o,r,i;if(this._weekdaysParseExact)return EE.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=Yk([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}},J$.weekdaysRegex=function(e){return this._weekdaysParseExact?(Nk(this,"_weekdaysRegex")||$E.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Nk(this,"_weekdaysRegex")||(this._weekdaysRegex=AE),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},J$.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(Nk(this,"_weekdaysRegex")||$E.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nk(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kE),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},J$.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(Nk(this,"_weekdaysRegex")||$E.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nk(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=FE),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},J$.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},J$.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},jE("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===EF(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),zk.lang=rF("moment.lang is deprecated. Use moment.locale instead.",jE),zk.langData=rF("moment.langData is deprecated. Use moment.localeData instead.",HE);var n_=Math.abs;function o_(e,t,n,o){var r=x$(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function r_(e){return e<0?Math.floor(e):Math.ceil(e)}function i_(e){return 4800*e/146097}function s_(e){return 146097*e/4800}function a_(e){return function(){return this.as(e)}}var l_=a_("ms"),c_=a_("s"),d_=a_("m"),u_=a_("h"),h_=a_("d"),p_=a_("w"),f_=a_("M"),g_=a_("Q"),m_=a_("y");function v_(e){return function(){return this.isValid()?this._data[e]:NaN}}var b_=v_("milliseconds"),y_=v_("seconds"),C_=v_("minutes"),w_=v_("hours"),x_=v_("days"),S_=v_("months"),A_=v_("years");var k_=Math.round,F_={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function E_(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}var $_=Math.abs;function __(e){return(e>0)-(e<0)||+e}function R_(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,o,r,i,s,a,l=$_(this._milliseconds)/1e3,c=$_(this._days),d=$_(this._months),u=this.asSeconds();return u?(e=FF(l/60),t=FF(e/60),l%=60,e%=60,n=FF(d/12),d%=12,o=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=u<0?"-":"",i=__(this._months)!==__(u)?"-":"",s=__(this._days)!==__(u)?"-":"",a=__(this._milliseconds)!==__(u)?"-":"",r+"P"+(n?i+n+"Y":"")+(d?i+d+"M":"")+(c?s+c+"D":"")+(t||e||l?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(l?a+o+"S":"")):"P0D"}var B_=u$.prototype;B_.isValid=function(){return this._isValid},B_.abs=function(){var e=this._data;return this._milliseconds=n_(this._milliseconds),this._days=n_(this._days),this._months=n_(this._months),e.milliseconds=n_(e.milliseconds),e.seconds=n_(e.seconds),e.minutes=n_(e.minutes),e.hours=n_(e.hours),e.months=n_(e.months),e.years=n_(e.years),this},B_.add=function(e,t){return o_(this,e,t,1)},B_.subtract=function(e,t){return o_(this,e,t,-1)},B_.as=function(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if("month"===(e=wF(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,n=this._months+i_(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(s_(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}},B_.asMilliseconds=l_,B_.asSeconds=c_,B_.asMinutes=d_,B_.asHours=u_,B_.asDays=h_,B_.asWeeks=p_,B_.asMonths=f_,B_.asQuarters=g_,B_.asYears=m_,B_.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*EF(this._months/12):NaN},B_._bubble=function(){var e,t,n,o,r,i=this._milliseconds,s=this._days,a=this._months,l=this._data;return i>=0&&s>=0&&a>=0||i<=0&&s<=0&&a<=0||(i+=864e5*r_(s_(a)+s),s=0,a=0),l.milliseconds=i%1e3,e=FF(i/1e3),l.seconds=e%60,t=FF(e/60),l.minutes=t%60,n=FF(t/60),l.hours=n%24,s+=FF(n/24),a+=r=FF(i_(s)),s-=r_(s_(r)),o=FF(a/12),a%=12,l.days=s,l.months=a,l.years=o,this},B_.clone=function(){return x$(this)},B_.get=function(e){return e=wF(e),this.isValid()?this[e+"s"]():NaN},B_.milliseconds=b_,B_.seconds=y_,B_.minutes=C_,B_.hours=w_,B_.days=x_,B_.weeks=function(){return FF(this.days()/7)},B_.months=S_,B_.years=A_,B_.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,o,r=!1,i=F_;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(i=Object.assign({},F_,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),o=function(e,t,n,o){var r=x$(e).abs(),i=k_(r.as("s")),s=k_(r.as("m")),a=k_(r.as("h")),l=k_(r.as("d")),c=k_(r.as("M")),d=k_(r.as("w")),u=k_(r.as("y")),h=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||d<=1&&["w"]||d<n.w&&["ww",d]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||u<=1&&["y"]||["yy",u])[2]=t,h[3]=+e>0,h[4]=o,E_.apply(null,h)}(this,!r,i,n=this.localeData()),r&&(o=n.pastFuture(+this,o)),n.postformat(o)},B_.toISOString=R_,B_.toString=R_,B_.toJSON=R_,B_.locale=D$,B_.localeData=L$,B_.toIsoString=rF("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",R_),B_.lang=M$,mF("X",0,0,"unix"),mF("x",0,0,"valueOf"),YF("x",VF),YF("X",/[+-]?\d+(\.\d{1,3})?/),JF("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),JF("x",(function(e,t,n){n._d=new Date(EF(e))})),
|
||
//! moment.js
|
||
zk.version="2.29.1",Pk=s$,zk.fn=X$,zk.min=function(){var e=[].slice.call(arguments,0);return c$("isBefore",e)},zk.max=function(){var e=[].slice.call(arguments,0);return c$("isAfter",e)},zk.now=function(){return Date.now?Date.now():+new Date},zk.utc=Yk,zk.unix=function(e){return s$(1e3*e)},zk.months=function(e,t){return e_(e,t,"months")},zk.isDate=Uk,zk.locale=jE,zk.invalid=Zk,zk.duration=x$,zk.isMoment=nF,zk.weekdays=function(e,t,n){return t_(e,t,n,"weekdays")},zk.parseZone=function(){return s$.apply(null,arguments).parseZone()},zk.localeData=HE,zk.isDuration=h$,zk.monthsShort=function(e,t){return e_(e,t,"monthsShort")},zk.weekdaysMin=function(e,t,n){return t_(e,t,n,"weekdaysMin")},zk.defineLocale=NE,zk.updateLocale=function(e,t){if(null!=t){var n,o,r=ME;null!=LE[e]&&null!=LE[e].parentLocale?LE[e].set(cF(LE[e]._config,t)):(null!=(o=IE(e))&&(r=o._config),t=cF(r,t),null==o&&(t.abbr=e),(n=new dF(t)).parentLocale=LE[e],LE[e]=n),jE(e)}else null!=LE[e]&&(null!=LE[e].parentLocale?(LE[e]=LE[e].parentLocale,e===jE()&&jE(e)):null!=LE[e]&&delete LE[e]);return LE[e]},zk.locales=function(){return iF(LE)},zk.weekdaysShort=function(e,t,n){return t_(e,t,n,"weekdaysShort")},zk.normalizeUnits=wF,zk.relativeTimeRounding=function(e){return void 0===e?k_:"function"==typeof e&&(k_=e,!0)},zk.relativeTimeThreshold=function(e,t){return void 0!==F_[e]&&(void 0===t?F_[e]:(F_[e]=t,"s"===e&&(F_.ss=t-1),!0))},zk.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},zk.prototype=X$,zk.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function T_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D_={exports:{}},M_=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}},L_=M_,P_=Object.prototype.toString;function O_(e){return"[object Array]"===P_.call(e)}function z_(e){return void 0===e}function I_(e){return null!==e&&"object"==typeof e}function j_(e){if("[object Object]"!==P_.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function N_(e){return"[object Function]"===P_.call(e)}function H_(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),O_(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var W_={isArray:O_,isArrayBuffer:function(e){return"[object ArrayBuffer]"===P_.call(e)},isBuffer:function(e){return null!==e&&!z_(e)&&null!==e.constructor&&!z_(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:I_,isPlainObject:j_,isUndefined:z_,isDate:function(e){return"[object Date]"===P_.call(e)},isFile:function(e){return"[object File]"===P_.call(e)},isBlob:function(e){return"[object Blob]"===P_.call(e)},isFunction:N_,isStream:function(e){return I_(e)&&N_(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:H_,merge:function e(){var t={};function n(n,o){j_(t[o])&&j_(n)?t[o]=e(t[o],n):j_(n)?t[o]=e({},n):O_(n)?t[o]=n.slice():t[o]=n}for(var o=0,r=arguments.length;o<r;o++)H_(arguments[o],n);return t},extend:function(e,t,n){return H_(t,(function(t,o){e[o]=n&&"function"==typeof t?L_(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},V_=W_;function U_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var K_=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(V_.isURLSearchParams(t))o=t.toString();else{var r=[];V_.forEach(t,(function(e,t){null!=e&&(V_.isArray(e)?t+="[]":e=[e],V_.forEach(e,(function(e){V_.isDate(e)?e=e.toISOString():V_.isObject(e)&&(e=JSON.stringify(e)),r.push(U_(t)+"="+U_(e))})))})),o=r.join("&")}if(o){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e},G_=W_;function Y_(){this.handlers=[]}Y_.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},Y_.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Y_.prototype.forEach=function(e){G_.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var q_=Y_,X_=W_,Z_=function(e,t,n,o,r){return e.config=t,n&&(e.code=n),e.request=o,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},J_=Z_,Q_=function(e,t,n,o,r){var i=new Error(e);return J_(i,t,n,o,r)},eR=Q_,tR=W_,nR=tR.isStandardBrowserEnv()?{write:function(e,t,n,o,r,i){var s=[];s.push(e+"="+encodeURIComponent(t)),tR.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),tR.isString(o)&&s.push("path="+o),tR.isString(r)&&s.push("domain="+r),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},oR=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},rR=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},iR=W_,sR=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],aR=W_,lR=aR.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var o=e;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=aR.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function cR(e){this.message=e}cR.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},cR.prototype.__CANCEL__=!0;var dR=cR,uR=W_,hR=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(eR("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)},pR=nR,fR=K_,gR=function(e,t){return e&&!oR(t)?rR(e,t):t},mR=function(e){var t,n,o,r={};return e?(iR.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=iR.trim(e.substr(0,o)).toLowerCase(),n=iR.trim(e.substr(o+1)),t){if(r[t]&&sR.indexOf(t)>=0)return;r[t]="set-cookie"===t?(r[t]?r[t]:[]).concat([n]):r[t]?r[t]+", "+n:n}})),r):r},vR=lR,bR=Q_,yR=_R,CR=dR,wR=function(e){return new Promise((function(t,n){var o,r=e.data,i=e.headers,s=e.responseType;function a(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}uR.isFormData(r)&&delete i["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",d=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+d)}var u=gR(e.baseURL,e.url);function h(){if(l){var o="getAllResponseHeaders"in l?mR(l.getAllResponseHeaders()):null,r={data:s&&"text"!==s&&"json"!==s?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:o,config:e,request:l};hR((function(e){t(e),a()}),(function(e){n(e),a()}),r),l=null}}if(l.open(e.method.toUpperCase(),fR(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(h)},l.onabort=function(){l&&(n(bR("Request aborted",e,"ECONNABORTED",l)),l=null)},l.onerror=function(){n(bR("Network Error",e,null,l)),l=null},l.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",o=e.transitional||yR.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(bR(t,e,o.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l)),l=null},uR.isStandardBrowserEnv()){var p=(e.withCredentials||vR(u))&&e.xsrfCookieName?pR.read(e.xsrfCookieName):void 0;p&&(i[e.xsrfHeaderName]=p)}"setRequestHeader"in l&&uR.forEach(i,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete i[t]:l.setRequestHeader(t,e)})),uR.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),s&&"json"!==s&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(o=function(e){l&&(n(!e||e&&e.type?new CR("canceled"):e),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o))),r||(r=null),l.send(r)}))},xR=W_,SR=function(e,t){X_.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))},AR=Z_,kR={"Content-Type":"application/x-www-form-urlencoded"};function FR(e,t){!xR.isUndefined(e)&&xR.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ER,$R={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(ER=wR),ER),transformRequest:[function(e,t){return SR(t,"Accept"),SR(t,"Content-Type"),xR.isFormData(e)||xR.isArrayBuffer(e)||xR.isBuffer(e)||xR.isStream(e)||xR.isFile(e)||xR.isBlob(e)?e:xR.isArrayBufferView(e)?e.buffer:xR.isURLSearchParams(e)?(FR(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):xR.isObject(e)||t&&"application/json"===t["Content-Type"]?(FR(t,"application/json"),function(e,t,n){if(xR.isString(e))try{return(t||JSON.parse)(e),xR.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||$R.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,r=!n&&"json"===this.responseType;if(r||o&&xR.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(r){if("SyntaxError"===i.name)throw AR(i,this,"E_JSON_PARSE");throw i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};xR.forEach(["delete","get","head"],(function(e){$R.headers[e]={}})),xR.forEach(["post","put","patch"],(function(e){$R.headers[e]=xR.merge(kR)}));var _R=$R,RR=W_,BR=_R,TR=function(e){return!(!e||!e.__CANCEL__)},DR=W_,MR=function(e,t,n){var o=this||BR;return RR.forEach(n,(function(n){e=n.call(o,e,t)})),e},LR=TR,PR=_R,OR=dR;function zR(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new OR("canceled")}var IR=W_,jR=function(e,t){t=t||{};var n={};function o(e,t){return IR.isPlainObject(e)&&IR.isPlainObject(t)?IR.merge(e,t):IR.isPlainObject(t)?IR.merge({},t):IR.isArray(t)?t.slice():t}function r(n){return IR.isUndefined(t[n])?IR.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function i(e){if(!IR.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return IR.isUndefined(t[n])?IR.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function a(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return IR.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||r,o=t(e);IR.isUndefined(o)&&t!==a||(n[e]=o)})),n},NR="0.24.0",HR=NR,WR={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){WR[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var VR={};WR.transitional=function(e,t,n){function o(e,t){return"[Axios v"+HR+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,i){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!VR[r]&&(VR[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}};var UR=W_,KR=K_,GR=q_,YR=function(e){return zR(e),e.headers=e.headers||{},e.data=MR.call(e,e.data,e.headers,e.transformRequest),e.headers=DR.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),DR.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||PR.adapter)(e).then((function(t){return zR(e),t.data=MR.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return LR(t)||(zR(e),t&&t.response&&(t.response.data=MR.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},qR=jR,XR={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var o=Object.keys(e),r=o.length;r-- >0;){var i=o[r],s=t[i];if(s){var a=e[i],l=void 0===a||s(a,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:WR},ZR=XR.validators;function JR(e){this.defaults=e,this.interceptors={request:new GR,response:new GR}}JR.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=qR(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&XR.assertOptions(t,{silentJSONParsing:ZR.transitional(ZR.boolean),forcedJSONParsing:ZR.transitional(ZR.boolean),clarifyTimeoutError:ZR.transitional(ZR.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(o=o&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var r,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!o){var s=[YR,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(i),r=Promise.resolve(e);s.length;)r=r.then(s.shift(),s.shift());return r}for(var a=e;n.length;){var l=n.shift(),c=n.shift();try{a=l(a)}catch(d){c(d);break}}try{r=YR(a)}catch(d){return Promise.reject(d)}for(;i.length;)r=r.then(i.shift(),i.shift());return r},JR.prototype.getUri=function(e){return e=qR(this.defaults,e),KR(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},UR.forEach(["delete","get","head","options"],(function(e){JR.prototype[e]=function(t,n){return this.request(qR(n||{},{method:e,url:t,data:(n||{}).data}))}})),UR.forEach(["post","put","patch"],(function(e){JR.prototype[e]=function(t,n,o){return this.request(qR(o||{},{method:e,url:t,data:n}))}}));var QR=JR,eB=dR;function tB(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,o=n._listeners.length;for(t=0;t<o;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,o=new Promise((function(e){n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e){n.reason||(n.reason=new eB(e),t(n.reason))}))}tB.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},tB.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},tB.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},tB.source=function(){var e;return{token:new tB((function(t){e=t})),cancel:e}};var nB=tB,oB=W_,rB=M_,iB=QR,sB=jR;var aB=function e(t){var n=new iB(t),o=rB(iB.prototype.request,n);return oB.extend(o,iB.prototype,n),oB.extend(o,n),o.create=function(n){return e(sB(t,n))},o}(_R);aB.Axios=iB,aB.Cancel=dR,aB.CancelToken=nB,aB.isCancel=TR,aB.VERSION=NR,aB.all=function(e){return Promise.all(e)},aB.spread=function(e){return function(t){return e.apply(null,t)}},aB.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError},D_.exports=aB,D_.exports.default=aB;var lB=D_.exports,cB={exports:{}},dB=T_(cB.exports=function(){var e={134:function(e,t,n){n.d(t,{default:function(){return y}});var o=n(279),r=n.n(o),i=n(370),s=n.n(i),a=n(817),l=n.n(a);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}var t,n,o;return t=e,(n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=l()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==c(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}])&&d(t.prototype,n),o&&d(t,o),e}();function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(i,e);var t,n,o,r=g(i);function i(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(n=r.call(this)).resolveOptions(t),n.listenClick(e),n}return t=i,o=[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],(n=[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=s()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return b("action",e)}},{key:"defaultTarget",value:function(e){var t=b("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return b("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&p(t.prototype,n),o&&p(t,o),i}(r())},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var o=n(828);function r(e,t,n,o,r){var s=i.apply(this,arguments);return e.addEventListener(n,s,r),{destroy:function(){e.removeEventListener(n,s,r)}}}function i(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}e.exports=function(e,t,n,o,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,o,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var o=n(879),r=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!o.string(t))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(o.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(o.string(e))return function(e,t,n){return r(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(e),o.removeAllRanges(),o.addRange(r),t=o.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t)for(var i=0,s=o.length;i<s;i++)o[i].fn!==t&&o[i].fn._!==t&&r.push(o[i]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n(134)}().default);function uB(e){return(uB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var hB=/^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/,pB={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(){var e,t=this.jsonValue,n=hB.test(t);return this.expand?(e={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"},n?(t='<a href="'.concat(t,'" target="_blank" class="jv-link">').concat(t,"</a>"),e.innerHTML='"'.concat(t.toString(),'"')):e.innerText='"'.concat(t.toString(),'"')):e={class:{"jv-ellipsis":!0},onClick:this.toggle,innerText:"..."},$r("span",{},[this.canExtend&&$r("span",{class:{"jv-toggle":!0,open:this.expand},onClick:this.toggle}),$r("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),$r("span",e)])},__file:"src/Components/types/json-string.vue"},fB={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(){return $r("span",{class:{"jv-item":!0,"jv-undefined":!0},innerText:null===this.jsonValue?"null":"undefined"})},__file:"src/Components/types/json-undefined.vue"},gB={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(){var e=Number.isInteger(this.jsonValue);return $r("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":e,"jv-number-float":!e},innerText:this.jsonValue.toString()})},__file:"src/Components/types/json-number.vue"},mB={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(){return $r("span",{class:{"jv-item":!0,"jv-boolean":!0},innerText:this.jsonValue.toString()})},__file:"src/Components/types/json-boolean.vue"},vB={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,sort:Boolean,previewMode:Boolean},data:function(){return{value:{}}},computed:{ordered:function(){var e=this;if(!this.sort)return this.value;var t={};return Object.keys(this.value).sort().forEach((function(n){t[n]=e.value[n]})),t}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var t=this;setTimeout((function(){t.value=e}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(){var e=[];if(this.previewMode||this.keyName||e.push($r("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),e.push($r("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"{"})),this.expand)for(var t in this.ordered)if(this.ordered.hasOwnProperty(t)){var n=this.ordered[t];e.push($r(wB,{key:t,style:{display:this.expand?void 0:"none"},sort:this.sort,keyName:t,depth:this.depth+1,value:n,previewMode:this.previewMode}))}return!this.expand&&Object.keys(this.value).length&&e.push($r("span",{style:{display:this.expand?"none":void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal object content (keys: ".concat(Object.keys(this.ordered).join(", "),")"),innerText:"..."})),e.push($r("span",{class:{"jv-item":!0,"jv-object":!0},innerText:"}"})),$r("span",e)},__file:"src/Components/types/json-object.vue"},bB={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,previewMode:Boolean},data:function(){return{value:[]}},watch:{jsonValue:function(e){this.setValue(e)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;0===n&&(this.value=[]),setTimeout((function(){e.length>n&&(t.value.push(e[n]),t.setValue(e,n+1))}),0)},toggle:function(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(){var e=this,t=[];return this.previewMode||this.keyName||t.push($r("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),t.push($r("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"["})),this.expand&&this.value.forEach((function(n,o){t.push($r(wB,{key:o,style:{display:e.expand?void 0:"none"},sort:e.sort,depth:e.depth+1,value:n,previewMode:e.previewMode}))})),!this.expand&&this.value.length&&t.push($r("span",{style:{display:void 0},class:{"jv-ellipsis":!0},onClick:this.toggle,title:"click to reveal ".concat(this.value.length," hidden items"),innerText:"..."})),t.push($r("span",{class:{"jv-item":!0,"jv-array":!0},innerText:"]"})),$r("span",t)},__file:"src/Components/types/json-array.vue"},yB={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(){return $r("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:this.jsonValue.toString()},innerHTML:"<function>"})},__file:"src/Components/types/json-function.vue"},CB={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(){var e=this.jsonValue,t=this.timeformat;return $r("span",{class:{"jv-item":!0,"jv-string":!0},innerText:'"'.concat(t(e),'"')})},__file:"src/Components/types/json-date.vue"},wB={name:"JsonBox",inject:["expandDepth"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean},data:function(){return{expand:!0}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)},methods:{toggle:function(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(){var e,t=this,n=[];null===this.value||void 0===this.value?e=fB:Array.isArray(this.value)?e=bB:"[object Date]"===Object.prototype.toString.call(this.value)?e=CB:"object"===uB(this.value)?e=vB:"number"==typeof this.value?e=gB:"string"==typeof this.value?e=pB:"boolean"==typeof this.value?e=mB:"function"==typeof this.value&&(e=yB);var o=this.keyName&&this.value&&(Array.isArray(this.value)||"object"===uB(this.value)&&"[object Date]"!==Object.prototype.toString.call(this.value));return!this.previewMode&&o&&n.push($r("span",{class:{"jv-toggle":!0,open:!!this.expand},onClick:this.toggle})),this.keyName&&n.push($r("span",{class:{"jv-key":!0},innerText:"".concat(this.keyName,":")})),n.push($r(e,{class:{"jv-push":!0},jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,"onUpdate:expand":function(e){t.expand=e}})),$r("div",{class:{"jv-node":!0,"jv-key-node":Boolean(this.keyName)&&!o,toggle:!this.previewMode&&o}},n)},__file:"src/Components/json-box.vue"},xB={name:"JsonViewer",components:{JsonBox:wB},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(e){return e.toLocaleString()}},previewMode:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var e=this.copyable;return{copyText:e.copyText||"copy",copiedText:e.copiedText||"copied!",timeout:e.timeout||2e3,align:e.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var e,t,n,o,r=this;this.debounceResized=(e=this.debResized.bind(this),t=200,o=Date.now(),function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];Date.now()-o<t&&n&&clearTimeout(n),n=setTimeout((function(){e.apply(void 0,i)}),t),o=Date.now()}),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new dB(this.$refs.clip,{text:function(){return JSON.stringify(r.value,null,2)}}).on("success",(function(e){r.onCopied(e)}))},methods:{onResized:function(){this.debounceResized()},debResized:function(){var e=this;this.$nextTick((function(){e.$refs.jsonBox&&(e.$refs.jsonBox.$el.clientHeight>=250?e.expandableCode=!0:e.expandableCode=!1)}))},onCopied:function(e){var t=this;this.copied||(this.copied=!0,setTimeout((function(){t.copied=!1}),this.copyText.timeout),this.$emit("copied",e))},toggleExpandCode:function(){this.expandCode=!this.expandCode}},render:function(e,t,n,o,r,i){var s=oo("json-box");return po(),bo("div",{class:i.jvClass},[n.copyable?(po(),bo("div",{key:0,class:"jv-tooltip ".concat(i.copyText.align||"right")},[ko("span",{ref:"clip",class:["jv-button",{copied:r.copied}]},[Mo(e.$slots,"copy",{copied:r.copied},(function(){return[Eo(p(r.copied?i.copyText.copiedText:i.copyText.copyText),1)]}))],2)],2)):$o("v-if",!0),ko("div",{class:["jv-code",{open:r.expandCode,boxed:n.boxed}]},[ko(s,{ref:"jsonBox",value:n.value,sort:n.sort,"preview-mode":n.previewMode},null,8,["value","sort","preview-mode"])],2),r.expandableCode&&n.boxed?(po(),bo("div",{key:1,class:"jv-more",onClick:t[1]||(t[1]=function(){return i.toggleExpandCode&&i.toggleExpandCode.apply(i,arguments)})},[ko("span",{class:["jv-toggle",{open:!!r.expandCode}]},null,2)])):$o("v-if",!0)],2)},__file:"src/Components/json-viewer.vue"},SB={install:function(e){e.component(xB.name,xB)}};!function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function(e,n,o){"string"==typeof e?(2==arguments.length&&(o=n),t.modules[e]||(t.payloads[e]=o,t.modules[e]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n,o,r=function(e,t,n){if("string"==typeof t){var o=a(e,t);if(null!=o)return n&&n(),o}else if("[object Array]"===Object.prototype.toString.call(t)){for(var r=[],s=0,l=t.length;s<l;++s){var c=a(e,t[s]);if(null==c&&i.original)return;r.push(c)}return n&&n.apply(null,r)||!0}},i=function(e,t){var n=r("",e,t);return null==n&&i.original?i.original.apply(this,arguments):n},s=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return s(e,n[0])+"!"+s(e,n[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&o!=t;){var o=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},a=function(e,n){n=s(e,n);var o=t.modules[n];if(!o){if("function"==typeof(o=t.payloads[n])){var i={},a={id:n,uri:"",exports:i,packaged:!0};i=o((function(e,t){return r(n,e,t)}),i,a)||a.exports,t.modules[n]=i,delete t.payloads[n]}o=t.modules[n]=i||o}return o};o=e,(n="ace")&&(e[n]||(e[n]={}),o=e[n]),o.define&&o.define.packaged||(t.original=o.define,o.define=t,o.define.packaged=!0),o.acequire&&o.acequire.packaged||(i.original=o.acequire,o.acequire=i,o.acequire.packaged=!0)}(),ace.define("ace/lib/regexp",["require","exports","module"],(function(e,t,n){var o,r={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},i=void 0===r.exec.call(/()??/,"")[1],s=(o=/^/g,r.test.call(o,""),!o.lastIndex);function a(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function l(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var o=n||0;o<e.length;o++)if(e[o]===t)return o;return-1}s&&i||(RegExp.prototype.exec=function(e){var t,n,o=r.exec.apply(this,arguments);if("string"==typeof e&&o){if(!i&&o.length>1&&l(o,"")>-1&&(n=RegExp(this.source,r.replace.call(a(this),"g","")),r.replace.call(e.slice(o.index),n,(function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(o[e]=void 0)}))),this._xregexp&&this._xregexp.captureNames)for(var c=1;c<o.length;c++)(t=this._xregexp.captureNames[c-1])&&(o[t]=o[c]);!s&&this.global&&!o[0].length&&this.lastIndex>o.index&&this.lastIndex--}return o},s||(RegExp.prototype.test=function(e){var t=r.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function o(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=h.call(arguments,1),r=function(){if(this instanceof r){var o=t.apply(this,n.concat(h.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(h.call(arguments)))};return t.prototype&&(o.prototype=t.prototype,r.prototype=new o,o.prototype=null),r});var r,i,s,a,l,c=Function.prototype.call,d=Array.prototype,u=Object.prototype,h=d.slice,p=c.bind(u.toString),f=c.bind(u.hasOwnProperty);if((l=f(u,"__defineGetter__"))&&(r=c.bind(u.__defineGetter__),i=c.bind(u.__defineSetter__),s=c.bind(u.__lookupGetter__),a=c.bind(u.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var g=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?g.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(h.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var o=this.slice(e,e+t),r=h.call(arguments,2),i=r.length;if(e===n)i&&this.push.apply(this,r);else{var s=Math.min(t,n-e),a=e+s,l=a+i-s,c=n-a,d=n-s;if(l<a)for(var u=0;u<c;++u)this[l+u]=this[a+u];else if(l>a)for(u=c;u--;)this[l+u]=this[a+u];if(i&&e===d)this.length=d,this.push.apply(this,r);else for(this.length=d+i,u=0;u<i;++u)this[e+u]=r[u]}return o};Array.isArray||(Array.isArray=function(e){return"[object Array]"==p(e)});var m,v,b=Object("a"),y="a"!=b[0]||!(0 in b);if(Array.prototype.forEach||(Array.prototype.forEach=function(e){var t=T(this),n=y&&"[object String]"==p(this)?this.split(""):t,o=arguments[1],r=-1,i=n.length>>>0;if("[object Function]"!=p(e))throw new TypeError;for(;++r<i;)r in n&&e.call(o,n[r],r,t)}),Array.prototype.map||(Array.prototype.map=function(e){var t=T(this),n=y&&"[object String]"==p(this)?this.split(""):t,o=n.length>>>0,r=Array(o),i=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var s=0;s<o;s++)s in n&&(r[s]=e.call(i,n[s],s,t));return r}),Array.prototype.filter||(Array.prototype.filter=function(e){var t,n=T(this),o=y&&"[object String]"==p(this)?this.split(""):n,r=o.length>>>0,i=[],s=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var a=0;a<r;a++)a in o&&(t=o[a],e.call(s,t,a,n)&&i.push(t));return i}),Array.prototype.every||(Array.prototype.every=function(e){var t=T(this),n=y&&"[object String]"==p(this)?this.split(""):t,o=n.length>>>0,r=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var i=0;i<o;i++)if(i in n&&!e.call(r,n[i],i,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){var t=T(this),n=y&&"[object String]"==p(this)?this.split(""):t,o=n.length>>>0,r=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var i=0;i<o;i++)if(i in n&&e.call(r,n[i],i,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){var t=T(this),n=y&&"[object String]"==p(this)?this.split(""):t,o=n.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!o&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var r,i=0;if(arguments.length>=2)r=arguments[1];else for(;;){if(i in n){r=n[i++];break}if(++i>=o)throw new TypeError("reduce of empty array with no initial value")}for(;i<o;i++)i in n&&(r=e.call(void 0,r,n[i],i,t));return r}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){var t=T(this),n=y&&"[object String]"==p(this)?this.split(""):t,o=n.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!o&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var r,i=o-1;if(arguments.length>=2)r=arguments[1];else for(;;){if(i in n){r=n[i--];break}if(--i<0)throw new TypeError("reduceRight of empty array with no initial value")}do{i in this&&(r=e.call(void 0,r,n[i],i,t))}while(i--);return r}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=y&&"[object String]"==p(this)?this.split(""):T(this),n=t.length>>>0;if(!n)return-1;var o=0;for(arguments.length>1&&(o=B(arguments[1])),o=o>=0?o:Math.max(0,n+o);o<n;o++)if(o in t&&t[o]===e)return o;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){var t=y&&"[object String]"==p(this)?this.split(""):T(this),n=t.length>>>0;if(!n)return-1;var o=n-1;for(arguments.length>1&&(o=Math.min(o,B(arguments[1]))),o=o>=0?o:n-Math.abs(o);o>=0;o--)if(o in t&&e===t[o])return o;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(f(e,t)){var n;if(n={enumerable:!0,configurable:!0},l){var o=e.__proto__;e.__proto__=u;var r=s(e,t),i=a(e,t);if(e.__proto__=o,r||i)return r&&(n.get=r),i&&(n.set=i),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(m=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=m();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var o=function(){};o.prototype=e,(n=new o).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});function C(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){}}if(Object.defineProperty){var w=C({}),x="undefined"==typeof document||C(document.createElement("div"));if(!w||!x)var S=Object.defineProperty}if(!Object.defineProperty||S){Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(S)try{return S.call(Object,e,t,n)}catch(c){}if(f(n,"value"))if(l&&(s(e,t)||a(e,t))){var o=e.__proto__;e.__proto__=u,delete e[t],e[t]=n.value,e.__proto__=o}else e[t]=n.value;else{if(!l)throw new TypeError("getters & setters can not be defined on this javascript engine");f(n,"get")&&r(e,t,n.get),f(n,"set")&&i(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)f(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(D){Object.freeze=(v=Object.freeze,function(e){return"function"==typeof e?e:v(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";f(e,t);)t+="?";e[t]=!0;var n=f(e,t);return delete e[t],n}),!Object.keys){var A=!0,k=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],F=k.length;for(var E in{toString:null})A=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)f(e,n)&&t.push(n);if(A)for(var o=0,r=F;o<r;o++){var i=k[o];f(e,i)&&t.push(i)}return t}}Date.now||(Date.now=function(){return(new Date).getTime()});var $="\t\n\v\f\r \u2028\u2029\ufeff";if(!String.prototype.trim||$.trim()){$="["+$+"]";var _=new RegExp("^"+$+$+"*"),R=new RegExp($+$+"*$");String.prototype.trim=function(){return String(this).replace(_,"").replace(R,"")}}function B(e){return(e=+e)!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}var T=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(e,t,n){e("./regexp"),e("./es5-shim")})),ace.define("ace/lib/dom",["require","exports","module"],(function(e,t,n){t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var o=n.indexOf(t);if(-1==o)break;n.splice(o,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),o=!0;;){var r=n.indexOf(t);if(-1==r)break;o=!1,n.splice(r,1)}return o&&n.push(t),e.className=n.join(" "),o},t.setCssClass=function(e,n,o){o?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,o=0;if((t=t||document).createStyleSheet&&(n=t.styleSheets)){for(;o<n.length;)if(n[o++].owningElement.id===e)return!0}else if(n=t.getElementsByTagName("style"))for(;o<n.length;)if(n[o++].id===e)return!0;return!1},t.importCssString=function(e,n,o){if(o=o||document,n&&t.hasCssString(n,o))return null;var r;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */"),o.createStyleSheet?((r=o.createStyleSheet()).cssText=e,n&&(r.owningElement.id=n)):((r=t.createElement("style")).appendChild(o.createTextNode(e)),n&&(r.id=n),t.getDocumentHead(o).appendChild(r))},t.importCssStylsheet=function(e,n){if(n.createStyleSheet)n.createStyleSheet(e);else{var o=t.createElement("link");o.rel="stylesheet",o.href=e,t.getDocumentHead(n).appendChild(o)}},t.getInnerWidth=function(e){return parseInt(t.computedStyle(e,"paddingLeft"),10)+parseInt(t.computedStyle(e,"paddingRight"),10)+e.clientWidth},t.getInnerHeight=function(e){return parseInt(t.computedStyle(e,"paddingTop"),10)+parseInt(t.computedStyle(e,"paddingBottom"),10)+e.clientHeight},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var o=t.createElement("ace_outer"),r=o.style;r.position="absolute",r.left="-10000px",r.overflow="hidden",r.width="200px",r.minWidth="0px",r.height="150px",r.display="block",o.appendChild(n);var i=e.documentElement;i.appendChild(o);var s=n.offsetWidth;r.overflow="scroll";var a=n.offsetWidth;return s==a&&(a=o.clientWidth),i.removeChild(o),s-a},"undefined"!=typeof document?(void 0!==window.pageYOffset?(t.getPageScrollTop=function(){return window.pageYOffset},t.getPageScrollLeft=function(){return window.pageXOffset}):(t.getPageScrollTop=function(){return document.body.scrollTop},t.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?t.computedStyle=function(e,t){return t?(window.getComputedStyle(e,"")||{})[t]||"":window.getComputedStyle(e,"")||{}}:t.computedStyle=function(e,t){return t?e.currentStyle[t]:e.currentStyle},t.setInnerHtml=function(e,t){var n=e.cloneNode(!1);return n.innerHTML=t,e.parentNode.replaceChild(n,e),n},"textContent"in document.documentElement?(t.setInnerText=function(e,t){e.textContent=t},t.getInnerText=function(e){return e.textContent}):(t.setInnerText=function(e,t){e.innerText=t},t.getInnerText=function(e){return e.innerText}),t.getParentWindow=function(e){return e.defaultView||e.parentWindow}):t.importCssString=function(){}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],(function(e,t,n){e("./fixoldbrowsers");var o=e("./oop"),r=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return o.mixin(n,n.MODIFIER_KEYS),o.mixin(n,n.PRINTABLE_KEYS),o.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();o.mixin(t,r),t.keyCodeToString=function(e){var t=r[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},"object"==typeof navigator){var o=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),r=navigator.userAgent;t.isWin="win"==o,t.isMac="mac"==o,t.isLinux="linux"==o,t.isIE="Microsoft Internet Explorer"==navigator.appName||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((r.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((r.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((r.match(/rv:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isAIR=r.indexOf("AdobeAIR")>=0,t.isIPad=r.indexOf("iPad")>=0,t.isChromeOS=r.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0)}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){var o=e("./keys"),r=e("./useragent"),i=null,s=0;t.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var o=function(){n.call(e,window.event)};n._wrapper=o,e.attachEvent("on"+t,o)}},t.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||r.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},t.capture=function(e,n,o){function r(e){n&&n(e),o&&o(e),t.removeListener(document,"mousemove",n,!0),t.removeListener(document,"mouseup",r,!0),t.removeListener(document,"dragstart",r,!0)}return t.addListener(document,"mousemove",n,!0),t.addListener(document,"mouseup",r,!0),t.addListener(document,"dragstart",r,!0),r},t.addTouchMoveListener=function(e,n){var o,r;t.addListener(e,"touchstart",(function(e){var t=e.touches[0];o=t.clientX,r=t.clientY})),t.addListener(e,"touchmove",(function(e){var t=e.touches;if(!(t.length>1)){var i=t[0];e.wheelX=o-i.clientX,e.wheelY=r-i.clientY,o=i.clientX,r=i.clientY,n(e)}}))},t.addMouseWheelListener=function(e,n){"onmousewheel"in e?t.addListener(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),n(e)})):"onwheel"in e?t.addListener(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}n(e)})):t.addListener(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)}))},t.addMultiMouseDownListener=function(e,n,o,i){var s,a,l,c=0,d={2:"dblclick",3:"tripleclick",4:"quadclick"};function u(e){if(0!==t.getButton(e)?c=0:e.detail>1?++c>4&&(c=1):c=1,r.isIE){var u=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-a)>5;l&&!u||(c=1),l&&clearTimeout(l),l=setTimeout((function(){l=null}),n[c-1]||600),1==c&&(s=e.clientX,a=e.clientY)}if(e._clicks=c,o[i]("mousedown",e),c>4)c=0;else if(c>1)return o[i](d[c],e)}function h(e){c=2,l&&clearTimeout(l),l=setTimeout((function(){l=null}),n[c-1]||600),o[i]("mousedown",e),o[i](d[c],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){t.addListener(e,"mousedown",u),r.isOldIE&&t.addListener(e,"dblclick",h)}))};var a=r.isMac&&r.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function l(e,t,n){var l=a(t);if(!r.isMac&&i){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(l|=8),i.altGr){if(3==(3&l))return;i.altGr=0}if(18===n||17===n){var c="location"in t?t.location:t.keyLocation;if(17===n&&1===c)1==i[n]&&(s=t.timeStamp);else if(18===n&&3===l&&2===c){t.timeStamp-s<50&&(i.altGr=!0)}}}if((n in o.MODIFIER_KEYS&&(n=-1),8&l&&n>=91&&n<=93&&(n=-1),!l&&13===n)&&(3===(c="location"in t?t.location:t.keyLocation)&&(e(t,l,-n),t.defaultPrevented)))return;if(r.isChromeOS&&8&l){if(e(t,l,n),t.defaultPrevented)return;l&=-9}return!!(l||n in o.FUNCTION_KEYS||n in o.PRINTABLE_KEYS)&&e(t,l,n)}function c(){i=Object.create(null)}if(t.getModifierString=function(e){return o.KEY_MODS[a(e)]},t.addCommandKeyListener=function(e,n){var o=t.addListener;if(r.isOldGecko||r.isOpera&&!("KeyboardEvent"in window)){var s=null;o(e,"keydown",(function(e){s=e.keyCode})),o(e,"keypress",(function(e){return l(n,e,s)}))}else{var a=null;o(e,"keydown",(function(e){i[e.keyCode]=(i[e.keyCode]||0)+1;var t=l(n,e,e.keyCode);return a=e.defaultPrevented,t})),o(e,"keypress",(function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)})),o(e,"keyup",(function(e){i[e.keyCode]=null})),i||(c(),o(window,"focus",c))}},"object"==typeof window&&window.postMessage&&!r.isOldIE){t.nextTick=function(e,n){n=n||window;var o="zero-timeout-message-1";t.addListener(n,"message",(function r(i){i.data==o&&(t.stopPropagation(i),t.removeListener(n,"message",r),e())})),n.postMessage(o,"*")}}t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var o=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(o,"")},t.stringTrimRight=function(e){return e.replace(r,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,o=e.length;n<o;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var o=0;o<t.length;o++)n[o]=e(t[o]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var o in n={},t)n[o]=e(t[o]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},o=function(e){return o.cancel(),t=setTimeout(n,e||0),o};return o.schedule=o,o.call=function(){return this.cancel(),e(),o},o.cancel=function(){return clearTimeout(t),t=null,o},o.isPending=function(){return t},o},t.delayedCall=function(e,t){var n=null,o=function(){n=null,e()},r=function(e){null==n&&(n=setTimeout(o,e||t))};return r.delay=function(e){n&&clearTimeout(n),n=setTimeout(o,e||t)},r.schedule=r,r.call=function(){this.cancel(),e()},r.cancel=function(){n&&clearTimeout(n),n=null},r.isPending=function(){return n},r}})),ace.define("ace/keyboard/textinput_ios",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/lib/keys"],(function(e,t,n){var o=e("../lib/event"),r=e("../lib/useragent"),i=e("../lib/dom"),s=e("../lib/lang"),a=e("../lib/keys"),l=a.KEY_MODS,c=r.isChrome<18,d=r.isIE;t.TextInput=function(e,t){var n=i.createElement("textarea");n.className=r.isIOS?"ace_text-input ace_text-input-ios":"ace_text-input",r.isTouchPad&&n.setAttribute("x-palm-disable-auto-cap",!0),n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var u="\n aaaa a\n",h=!1,p=!1,f=!1,g=!1,m="",v=!0;try{var b=document.activeElement===n}catch(z){}o.addListener(n,"blur",(function(e){t.onBlur(e),b=!1})),o.addListener(n,"focus",(function(e){b=!0,t.onFocus(e),w()})),this.focus=function(){if(m)return n.focus();n.style.position="fixed",n.focus()},this.blur=function(){n.blur()},this.isFocused=function(){return b};var y=s.delayedCall((function(){b&&w(v)})),C=s.delayedCall((function(){g||(n.value=u,b&&w())}));function w(e){if(!g){if(g=!0,S)t=0,o=e?0:n.value.length-1;else var t=4,o=5;try{n.setSelectionRange(t,o)}catch(z){}g=!1}}function x(){g||(n.value=u,r.isWebKit&&C.schedule())}r.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=v&&(v=!v,y.schedule())})),x(),b&&t.onFocus();var S=null;this.setInputHandler=function(e){S=e},this.getInputHandler=function(){return S};var A=!1,k=function(e){4===n.selectionStart&&5===n.selectionEnd||(S&&(e=S(e),S=null),f?(w(),e&&t.onPaste(e),f=!1):e==u.substr(0)&&4===n.selectionStart?A?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):h||(e.substring(0,9)==u&&e.length>u.length?e=e.substr(9):e.substr(0,4)==u.substr(0,4)?e=e.substr(4,e.length-u.length+1):e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e==u.charAt(0)||e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),h&&(h=!1),A&&(A=!1))},F=function(e){if(!g){var t=n.value;k(t),x()}},E=function(e,t,n){var o=e.clipboardData||window.clipboardData;if(o&&!c){var r=d||n?"Text":"text/plain";try{return t?!1!==o.setData(r,t):o.getData(r)}catch(i){if(!n)return E(i,t,!0)}}},$=function(e,i){var s=t.getCopyText();if(!s)return o.preventDefault(e);E(e,s)?(r.isIOS&&(p=i,n.value="\n aa"+s+"a a\n",n.setSelectionRange(4,4+s.length),h={value:s}),i?t.onCut():t.onCopy(),r.isIOS||o.preventDefault(e)):(h=!0,n.value=s,n.select(),setTimeout((function(){h=!1,x(),w(),i?t.onCut():t.onCopy()})))};o.addCommandKeyListener(n,t.onCommandKey.bind(t)),o.addListener(n,"select",(function(e){var o;0===(o=n).selectionStart&&o.selectionEnd===o.value.length?(t.selectAll(),w()):S&&w(t.selection.isEmpty())})),o.addListener(n,"input",F),o.addListener(n,"cut",(function(e){$(e,!0)})),o.addListener(n,"copy",(function(e){$(e,!1)})),o.addListener(n,"paste",(function(e){var i=E(e);"string"==typeof i?(i&&t.onPaste(i,e),r.isIE&&setTimeout(w),o.preventDefault(e)):(n.value="",f=!0)}));var _,R=function(){if(g&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\x01/g,"");if(g.lastValue!==e&&(t.onCompositionUpdate(e),g.lastValue&&t.undo(),g.canUndo&&(g.lastValue=e),g.lastValue)){var o=t.selection.getRange();t.insert(g.lastValue),t.session.markUndoGroup(),g.range=t.selection.getRange(),t.selection.setRange(o),t.selection.clearSelection()}}},B=function(e){if(t.onCompositionEnd&&!t.$readOnly){var o=g;g=!1;var i=setTimeout((function(){i=null;var e=n.value.replace(/\x01/g,"");g||(e==o.lastValue?x():!o.lastValue&&e&&(x(),k(e)))}));S=function(e){return i&&clearTimeout(i),(e=e.replace(/\x01/g,""))==o.lastValue?"":(o.lastValue&&i&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",B),"compositionend"==e.type&&o.range&&t.selection.setRange(o.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&F()}},T=s.delayedCall(R,50);function D(){clearTimeout(_),_=setTimeout((function(){m&&(n.style.cssText=m,m=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}o.addListener(n,"compositionstart",(function(e){g||!t.onCompositionStart||t.$readOnly||((g={}).canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(R,0),t.on("mousedown",B),g.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())})),r.isGecko?o.addListener(n,"text",(function(){T.schedule()})):(o.addListener(n,"keyup",(function(){T.schedule()})),o.addListener(n,"keydown",(function(){T.schedule()}))),o.addListener(n,"compositionend",B),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){A=!0,w(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,s){m||(m=n.style.cssText),n.style.cssText=(s?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var a=t.container.getBoundingClientRect(),l=i.computedStyle(t.container),c=a.top+(parseInt(l.borderTopWidth)||0),d=a.left+(parseInt(a.borderLeftWidth)||0),u=a.bottom-c-n.clientHeight-2,h=function(e){n.style.left=e.clientX-d-2+"px",n.style.top=Math.min(e.clientY-c-2,u)+"px"};h(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(_),r.isWin&&o.capture(t.container,h,D))},this.onContextMenuClose=D;var M=function(e){t.textInput.onContextMenu(e),D()};if(o.addListener(n,"mouseup",M),o.addListener(n,"mousedown",(function(e){e.preventDefault(),D()})),o.addListener(t.renderer.scroller,"contextmenu",M),o.addListener(n,"contextmenu",M),r.isIOS){var L=null,P=!1;e.addEventListener("keydown",(function(e){L&&clearTimeout(L),P=!0})),e.addEventListener("keyup",(function(e){L=setTimeout((function(){P=!1}),100)}));var O=function(e){if(document.activeElement===n&&!P){if(p)return setTimeout((function(){p=!1}),100);var o=n.selectionStart,r=n.selectionEnd;if(n.setSelectionRange(4,5),o==r)switch(o){case 0:t.onCommandKey(null,0,a.up);break;case 1:t.onCommandKey(null,0,a.home);break;case 2:t.onCommandKey(null,l.option,a.left);break;case 4:t.onCommandKey(null,0,a.left);break;case 5:t.onCommandKey(null,0,a.right);break;case 7:t.onCommandKey(null,l.option,a.right);break;case 8:t.onCommandKey(null,0,a.end);break;case 9:t.onCommandKey(null,0,a.down)}else{switch(r){case 6:t.onCommandKey(null,l.shift,a.right);break;case 7:t.onCommandKey(null,l.shift|l.option,a.right);break;case 8:t.onCommandKey(null,l.shift,a.end);break;case 9:t.onCommandKey(null,l.shift,a.down)}switch(o){case 0:t.onCommandKey(null,l.shift,a.up);break;case 1:t.onCommandKey(null,l.shift,a.home);break;case 2:t.onCommandKey(null,l.shift|l.option,a.left);break;case 3:t.onCommandKey(null,l.shift,a.left)}}}};document.addEventListener("selectionchange",O),t.on("destroy",(function(){document.removeEventListener("selectionchange",O)}))}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],(function(e,t,n){var o=e("../lib/event"),r=e("../lib/useragent"),i=e("../lib/dom"),s=e("../lib/lang"),a=r.isChrome<18,l=r.isIE,c=e("./textinput_ios").TextInput;t.TextInput=function(e,t){if(r.isIOS)return c.call(this,e,t);var n=i.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var d="\u2028\u2028",u=!1,h=!1,p=!1,f="",g=!0;try{var m=document.activeElement===n}catch(P){}o.addListener(n,"blur",(function(e){t.onBlur(e),m=!1})),o.addListener(n,"focus",(function(e){m=!0,t.onFocus(e),y()})),this.focus=function(){if(f)return n.focus();var e=n.style.top;n.style.position="fixed",n.style.top="0px",n.focus(),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return m};var v=s.delayedCall((function(){m&&y(g)})),b=s.delayedCall((function(){p||(n.value=d,m&&y())}));function y(e){if(!p){if(p=!0,w)var t=0,o=e?0:n.value.length-1;else t=e?2:1,o=2;try{n.setSelectionRange(t,o)}catch(P){}p=!1}}function C(){p||(n.value=d,r.isWebKit&&b.schedule())}r.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=g&&(g=!g,v.schedule())})),C(),m&&t.onFocus();var w=null;this.setInputHandler=function(e){w=e},this.getInputHandler=function(){return w};var x=!1,S=function(e){w&&(e=w(e),w=null),h?(y(),e&&t.onPaste(e),h=!1):e==d.charAt(0)?x?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):(e.substring(0,2)==d?e=e.substr(2):e.charAt(0)==d.charAt(0)?e=e.substr(1):e.charAt(e.length-1)==d.charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)==d.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),x&&(x=!1)},A=function(e){if(!p){var t=n.value;S(t),C()}},k=function(e,t,n){var o=e.clipboardData||window.clipboardData;if(o&&!a){var r=l||n?"Text":"text/plain";try{return t?!1!==o.setData(r,t):o.getData(r)}catch(i){if(!n)return k(i,t,!0)}}},F=function(e,r){var i=t.getCopyText();if(!i)return o.preventDefault(e);k(e,i)?(r?t.onCut():t.onCopy(),o.preventDefault(e)):(u=!0,n.value=i,n.select(),setTimeout((function(){u=!1,C(),y(),r?t.onCut():t.onCopy()})))},E=function(e){F(e,!0)},$=function(e){F(e,!1)},_=function(e){var i=k(e);"string"==typeof i?(i&&t.onPaste(i,e),r.isIE&&setTimeout(y),o.preventDefault(e)):(n.value="",h=!0)};o.addCommandKeyListener(n,t.onCommandKey.bind(t)),o.addListener(n,"select",(function(e){var o;u?u=!1:0===(o=n).selectionStart&&o.selectionEnd===o.value.length?(t.selectAll(),y()):w&&y(t.selection.isEmpty())})),o.addListener(n,"input",A),o.addListener(n,"cut",E),o.addListener(n,"copy",$),o.addListener(n,"paste",_),"oncut"in n&&"oncopy"in n&&"onpaste"in n||o.addListener(e,"keydown",(function(e){if((!r.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:$(e);break;case 86:_(e);break;case 88:E(e)}}));var R,B=function(){if(p&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\u2028/g,"");if(p.lastValue!==e&&(t.onCompositionUpdate(e),p.lastValue&&t.undo(),p.canUndo&&(p.lastValue=e),p.lastValue)){var o=t.selection.getRange();t.insert(p.lastValue),t.session.markUndoGroup(),p.range=t.selection.getRange(),t.selection.setRange(o),t.selection.clearSelection()}}},T=function(e){if(t.onCompositionEnd&&!t.$readOnly){var o=p;p=!1;var i=setTimeout((function(){i=null;var e=n.value.replace(/\u2028/g,"");p||(e==o.lastValue?C():!o.lastValue&&e&&(C(),S(e)))}));w=function(e){return i&&clearTimeout(i),(e=e.replace(/\u2028/g,""))==o.lastValue?"":(o.lastValue&&i&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",T),"compositionend"==e.type&&o.range&&t.selection.setRange(o.range),(!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603)&&A()}},D=s.delayedCall(B,50);function M(){clearTimeout(R),R=setTimeout((function(){f&&(n.style.cssText=f,f=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}o.addListener(n,"compositionstart",(function(e){p||!t.onCompositionStart||t.$readOnly||((p={}).canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(B,0),t.on("mousedown",T),p.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())})),r.isGecko?o.addListener(n,"text",(function(){D.schedule()})):(o.addListener(n,"keyup",(function(){D.schedule()})),o.addListener(n,"keydown",(function(){D.schedule()}))),o.addListener(n,"compositionend",T),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){x=!0,y(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,s){f||(f=n.style.cssText),n.style.cssText=(s?"z-index:100000;":"")+"height:"+n.style.height+";"+(r.isIE?"opacity:0.1;":"");var a=t.container.getBoundingClientRect(),l=i.computedStyle(t.container),c=a.top+(parseInt(l.borderTopWidth)||0),d=a.left+(parseInt(a.borderLeftWidth)||0),u=a.bottom-c-n.clientHeight-2,h=function(e){n.style.left=e.clientX-d-2+"px",n.style.top=Math.min(e.clientY-c-2,u)+"px"};h(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(R),r.isWin&&o.capture(t.container,h,M))},this.onContextMenuClose=M;var L=function(e){t.textInput.onContextMenu(e),M()};o.addListener(n,"mouseup",L),o.addListener(n,"mousedown",(function(e){e.preventDefault(),M()})),o.addListener(t.renderer.scroller,"contextmenu",L),o.addListener(n,"contextmenu",L)}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){e("../lib/dom"),e("../lib/event");var o=e("../lib/useragent");function r(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function i(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var r=this.editor,i=e.getButton();if(0!==i){var s=r.getSelectionRange().isEmpty();return r.$blockScrolling++,(s||1==i)&&r.selection.moveToPosition(n),r.$blockScrolling--,void(2==i&&(r.textInput.onContextMenu(e.domEvent),o.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||r.isFocused()||(r.focus(),!this.$focusTimout||this.$clickSelection||r.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;n.$blockScrolling++,this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"),n.$blockScrolling--},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var o=this.$clickSelection.comparePoint(n);if(-1==o)e=this.$clickSelection.end;else if(1==o)e=this.$clickSelection.start;else{var r=i(this.$clickSelection,n);n=r.cursor,e=r.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,o=n.renderer.screenToTextCoordinates(this.x,this.y),r=n.selection[e](o.row,o.column);if(n.$blockScrolling++,this.$clickSelection){var s=this.$clickSelection.comparePoint(r.start),a=this.$clickSelection.comparePoint(r.end);if(-1==s&&a<=0)t=this.$clickSelection.end,r.end.row==o.row&&r.end.column==o.column||(o=r.start);else if(1==a&&s>=0)t=this.$clickSelection.start,r.start.row==o.row&&r.start.column==o.column||(o=r.end);else if(-1==s&&1==a)o=r.end,t=r.start;else{var l=i(this.$clickSelection,o);o=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(o),n.$blockScrolling--,n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,o,r=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,o=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(o-t,2))),i=Date.now();(r>0||i-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,o=n.session.getBracketRange(t);o?(o.isEmpty()&&(o.start.column--,o.end.column++),this.setState("select")):(o=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=o,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var o=n.getSelectionRange();o.isMultiLine()&&o.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(o.start.row),this.$clickSelection.end=n.selection.getLineRange(o.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,o=e.domEvent.timeStamp,r=o-n.t,i=e.wheelX/r,s=e.wheelY/r;r<250&&(i=(i+n.vx)/2,s=(s+n.vy)/2);var a=Math.abs(i/s),l=!1;if(a>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=o;else if(o-n.allowed<250){Math.abs(i)<=1.1*Math.abs(n.vx)&&Math.abs(s)<=1.1*Math.abs(n.vy)?(l=!0,n.allowed=o):n.allowed=0}return n.t=o,n.vx=i,n.vy=s,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){this.editor._emit("mousewheel",e)}}).call(r.prototype),t.DefaultHandlers=r})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){e("./lib/oop");var o=e("./lib/dom");function r(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=o.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){o.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){o.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(r.prototype),t.Tooltip=r})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){var o=e("../lib/dom"),r=e("../lib/oop"),i=e("../lib/event"),s=e("../tooltip").Tooltip;function a(e){s.call(this,e)}r.inherits(a,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),i=this.getHeight();(e+=15)+r>n&&(e-=e+r-n),(t+=15)+i>o&&(t-=20+i),s.prototype.setPosition.call(this,e,t)}}.call(a.prototype),t.GutterHandler=function(e){var t,n,r,s=e.editor,l=s.renderer.$gutterLayer,c=new a(s.container);function d(){t&&(t=clearTimeout(t)),r&&(c.hide(),r=null,s._signal("hideGutterTooltip",c),s.removeEventListener("mousewheel",d))}function u(e){c.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(s.isFocused()&&0==t.getButton()&&"foldWidgets"!=l.getRegion(t)){var n=t.getDocumentPosition().row,o=s.session.selection;if(t.getShiftKey())o.selectTo(n,0);else{if(2==t.domEvent.detail)return s.selectAll(),t.preventDefault();e.$clickSelection=s.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(i){var a=i.domEvent.target||i.domEvent.srcElement;if(o.hasCssClass(a,"ace_fold-widget"))return d();r&&e.$tooltipFollowsMouse&&u(i),n=i,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,o=l.$annotations[t];if(!o)return d();if(t==s.session.getLength()){var i=s.renderer.pixelToScreenCoordinates(0,n.y).row,a=n.$pos;if(i>s.session.documentToScreenRow(a.row,a.column))return d()}if(r!=o)if(r=o.text.join("<br/>"),c.setHtml(r),c.show(),s._signal("showGutterTooltip",c),s.on("mousewheel",d),e.$tooltipFollowsMouse)u(n);else{var h=n.domEvent.target.getBoundingClientRect(),p=c.getElement().style;p.left=h.right+"px",p.top=h.bottom+"px"}}():d()}),50))})),i.addListener(s.renderer.$gutter,"mouseout",(function(e){n=null,r&&!t&&(t=setTimeout((function(){t=null,d()}),50))})),s.on("changeSession",d)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var o=e("../lib/event"),r=e("../lib/useragent"),i=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){o.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){o.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return o.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(i.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var o=e("../lib/dom"),r=e("../lib/event"),i=e("../lib/useragent");function s(e){var t=e.editor,n=o.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",i.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var s,l,c,d,u,h,p,f,g,m,v,b=t.container,y=0;function C(){var e=h;(function(e,n){var o=Date.now(),r=!n||e.row!=n.row,i=!n||e.column!=n.column;!m||r||i?(t.$blockScrolling+=1,t.moveCursorToPosition(e),t.$blockScrolling-=1,m=o,v={x:l,y:c}):a(v.x,v.y,l,c)>5?m=null:o-m>=200&&(t.renderer.scrollCursorIntoView(),m=null)})(h=t.renderer.screenToTextCoordinates(l,c),e),function(e,n){var o=Date.now(),r=t.renderer.layerConfig.lineHeight,i=t.renderer.layerConfig.characterWidth,s=t.renderer.scroller.getBoundingClientRect(),a={x:{left:l-s.left,right:s.right-l},y:{top:c-s.top,bottom:s.bottom-c}},d=Math.min(a.x.left,a.x.right),u=Math.min(a.y.top,a.y.bottom),h={row:e.row,column:e.column};d/i<=2&&(h.column+=a.x.left<a.x.right?-3:2),u/r<=1&&(h.row+=a.y.top<a.y.bottom?-1:1);var p=e.row!=h.row,f=e.column!=h.column,m=!n||e.row!=n.row;p||f&&!m?g?o-g>=200&&t.renderer.scrollCursorIntoView(h):g=o:g=null}(h,e)}function w(){u=t.selection.toOrientedRange(),s=t.session.addMarker(u,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(d),C(),d=setInterval(C,20),y=0,r.addListener(document,"mousemove",A)}function x(){clearInterval(d),t.session.removeMarker(s),s=null,t.$blockScrolling+=1,t.selection.fromOrientedRange(u),t.$blockScrolling-=1,t.isFocused()&&!f&&t.renderer.$cursorLayer.setBlinking(!t.getReadOnly()),u=null,h=null,y=0,g=null,m=null,r.removeListener(document,"mousemove",A)}this.onDragStart=function(e){if(this.cancelDrag||!b.draggable){var o=this;return setTimeout((function(){o.startSelect(),o.captureMouse(e)}),0),e.preventDefault()}u=t.getSelectionRange();var r=e.dataTransfer;r.effectAllowed=t.getReadOnly()?"copy":"copyMove",i.isOpera&&(t.container.appendChild(n),n.scrollTop=0),r.setDragImage&&r.setDragImage(n,0,0),i.isOpera&&t.container.removeChild(n),r.clearData(),r.setData("Text",t.session.getTextRange()),f=!0,this.setState("drag")},this.onDragEnd=function(e){if(b.draggable=!1,f=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;p||"move"!=n||t.session.remove(t.getSelectionRange()),t.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return l=e.clientX,c=e.clientY,s||w(),y++,e.dataTransfer.dropEffect=p=F(e),r.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return l=e.clientX,c=e.clientY,s||(w(),y++),null!==S&&(S=null),e.dataTransfer.dropEffect=p=F(e),r.preventDefault(e)},this.onDragLeave=function(e){if(--y<=0&&s)return x(),p=null,r.preventDefault(e)},this.onDrop=function(e){if(h){var n=e.dataTransfer;if(f)switch(p){case"move":u=u.contains(h.row,h.column)?{start:h,end:h}:t.moveText(u,h);break;case"copy":u=t.moveText(u,h,!0)}else{var o=n.getData("Text");u={start:h,end:t.session.insert(h,o)},t.focus(),p=null}return x(),r.preventDefault(e)}},r.addListener(b,"dragstart",this.onDragStart.bind(e)),r.addListener(b,"dragend",this.onDragEnd.bind(e)),r.addListener(b,"dragenter",this.onDragEnter.bind(e)),r.addListener(b,"dragover",this.onDragOver.bind(e)),r.addListener(b,"dragleave",this.onDragLeave.bind(e)),r.addListener(b,"drop",this.onDrop.bind(e));var S=null;function A(){null==S&&(S=setTimeout((function(){null!=S&&s&&x()}),20))}function k(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function F(e){var t=["copy","copymove","all","uninitialized"],n=i.isMac?e.altKey:e.ctrlKey,o="uninitialized";try{o=e.dataTransfer.effectAllowed.toLowerCase()}catch(s){}var r="none";return n&&t.indexOf(o)>=0?r="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(o)>=0?r="move":t.indexOf(o)>=0&&(r="copy"),r}}function a(e,t,n,o){return Math.sqrt(Math.pow(n-e,2)+Math.pow(o-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=i.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;i.isIE&&"dragReady"==this.state&&(a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),o=e.getButton();if(1===(e.domEvent.detail||1)&&0===o&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var r=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in r&&(r.unselectable="on"),t.getDragDelay()){if(i.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(s.prototype),t.DragdropHandler=s})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){var o=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=o.getDocumentHead(),r=document.createElement("script");r.src=e,n.appendChild(r),r.onload=r.onreadystatechange=function(e,n){!n&&r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(r=r.onload=r.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){var o={},r=function(){this.propagationStopped=!0},i=function(){this.defaultPrevented=!0};o._emit=o._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],o=this._defaultHandlers[e];if(n.length||o){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=i),n=n.slice();for(var s=0;s<n.length&&(n[s](t,this),!t.propagationStopped);s++);return o&&!t.defaultPrevented?o(t,this):void 0}},o._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var o=0;o<n.length;o++)n[o](t,this)}},o.once=function(e,t){var n=this;t&&this.addEventListener(e,(function o(){n.removeEventListener(e,o),t.apply(null,arguments)}))},o.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var o=n[e],r=n._disabled_[e];r||(n._disabled_[e]=r=[]),r.push(o);var i=r.indexOf(t);-1!=i&&r.splice(i,1)}n[e]=t},o.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var o=n._disabled_[e];if(n[e]==t)n[e],o&&this.setDefaultHandler(e,o.pop());else if(o){var r=o.indexOf(t);-1!=r&&o.splice(r,1)}}},o.on=o.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var o=this._eventRegistry[e];return o||(o=this._eventRegistry[e]=[]),-1==o.indexOf(t)&&o[n?"unshift":"push"](t),t},o.off=o.removeListener=o.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var o=n.indexOf(t);-1!==o&&n.splice(o,1)}},o.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=o})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var o=e("./oop"),r=e("./event_emitter").EventEmitter,i={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};return e?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return s('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:s('misspelled option "'+e+'"')}};function s(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function a(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}var l=function(){this.$defaultOptions={}};(function(){o.implement(this,r),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var o=n[t];"string"==typeof o&&(o={forwardTo:o}),o.name||(o.name=t),e.$options[o.name]=o,"initialValue"in o&&(e["$"+o.name]=o.initialValue)})),o.implement(e,i),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){var o=this.$defaultOptions[e]||(this.$defaultOptions[e]={});o[t]&&(o.forwardTo?this.setDefaultValue(o.forwardTo,t,n):o[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=s,this.reportError=a}).call(l.prototype),t.AppConfig=l})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(e,t,n){var o=e("./lib/lang");e("./lib/oop");var r=e("./lib/net"),i=e("./lib/app_config").AppConfig;n.exports=t=new i;var s=function(){return this||"undefined"!=typeof window&&window}(),a={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};function l(o){if(s&&s.document){a.packaged=o||e.packaged||n.packaged||s.define&&(void 0).packaged;for(var r,i={},l="",c=document.currentScript||document._currentScript,d=(c&&c.ownerDocument||document).getElementsByTagName("script"),u=0;u<d.length;u++){var h=d[u],p=h.src||h.getAttribute("src");if(p){for(var f=h.attributes,g=0,m=f.length;g<m;g++){var v=f[g];0===v.name.indexOf("data-ace-")&&(i[(r=v.name.replace(/^data-ace-/,""),r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=v.value)}var b=p.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);b&&(l=b[1])}}for(var y in l&&(i.base=i.base||l,i.packaged=!0),i.basePath=i.base,i.workerPath=i.workerPath||i.base,i.modePath=i.modePath||i.base,i.themePath=i.themePath||i.base,delete i.base,i)void 0!==i[y]&&t.set(y,i[y])}}t.get=function(e){if(!a.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return a[e]},t.set=function(e,t){if(!a.hasOwnProperty(e))throw new Error("Unknown config key: "+e);a[e]=t},t.all=function(){return o.copyObject(a)},t.moduleUrl=function(e,t){if(a.$moduleUrls[e])return a.$moduleUrls[e];var n=e.split("/"),o="snippets"==(t=t||n[n.length-2]||"")?"/":"-",r=n[n.length-1];if("worker"==t&&"-"==o){var i=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");r=r.replace(i,"")}(!r||r==t)&&n.length>1&&(r=n[n.length-2]);var s=a[t+"Path"];return null==s?s=a.basePath:"/"==o&&(t=o=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+o+r+this.get("suffix")},t.setModuleUrl=function(e,t){return a.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,o){var i,s;Array.isArray(n)&&(s=n[0],n=n[1]);try{i=e(n)}catch(l){}if(i&&!t.$loading[n])return o&&o(i);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(o),!(t.$loading[n].length>1)){var a=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var o=t.$loading[n];t.$loading[n]=null,o.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return a();r.loadScript(t.moduleUrl(n,s),a)}},l(!0),t.init=l})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],(function(e,t,n){var o=e("../lib/event"),r=e("../lib/useragent"),i=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,c=e("../config"),d=function(e){var t=this;this.editor=e,new i(this),new s(this),new l(this);var n=function(t){(!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement()))&&window.focus(),e.focus()},a=e.renderer.getMouseEventTarget();o.addListener(a,"click",this.onMouseEvent.bind(this,"click")),o.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove")),o.addMultiMouseDownListener([a,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),o.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel")),o.addTouchMoveListener(e.container,this.onTouchMove.bind(this,"touchmove"));var c=e.renderer.$gutter;o.addListener(c,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),o.addListener(c,"click",this.onMouseEvent.bind(this,"gutterclick")),o.addListener(c,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),o.addListener(c,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),o.addListener(a,"mousedown",n),o.addListener(c,"mousedown",n),r.isIE&&e.renderer.scrollBarV&&(o.addListener(e.renderer.scrollBarV.element,"mousedown",n),o.addListener(e.renderer.scrollBarH.element,"mousedown",n)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var o=e.renderer.screenToTextCoordinates(n.x,n.y),r=e.session.selection.getRange(),i=e.renderer;!r.isEmpty()&&r.insideStart(o.row,o.column)?i.setCursorStyle("default"):i.setCursorStyle("")}}))};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new a(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new a(t,this.editor))},this.onMouseWheel=function(e,t){var n=new a(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.onTouchMove=function(e,t){var n=new a(t,this.editor);n.speed=1,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor.renderer;n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=null);var i=this,s=function(e){if(e){if(r.isWebKit&&!e.which&&i.releaseMouse)return i.releaseMouse();i.x=e.clientX,i.y=e.clientY,t&&t(e),i.mouseEvent=new a(e,i.editor),i.$mouseMoved=!0}},l=function(e){clearInterval(d),c(),i[i.state+"End"]&&i[i.state+"End"](e),i.state="",null==n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=!0,n.$moveTextAreaToCursor()),i.isMousePressed=!1,i.$onCaptureMouseMove=i.releaseMouse=null,e&&i.onMouseEvent("mouseup",e)},c=function(){i[i.state]&&i[i.state](),i.$mouseMoved=!1};if(r.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){l(e)}));i.$onCaptureMouseMove=s,i.releaseMouse=o.capture(this.editor.container,s,l);var d=setInterval(c,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&o.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)}}).call(d.prototype),c.defineOptions(d.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:r.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=d})),ace.define("ace/mouse/fold_handler",["require","exports","module"],(function(e,t,n){t.FoldHandler=function(e){e.on("click",(function(t){var n=t.getDocumentPosition(),o=e.session,r=o.getFoldAt(n.row,n.column,1);r&&(t.getAccelKey()?o.removeFold(r):o.expandFold(r),t.stop())})),e.on("gutterclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,o=e.session;o.foldWidgets&&o.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,o=e.session,r=o.getParentFoldRangeData(n,!0),i=r.range||r.firstRange;if(i){n=i.start.row;var s=o.getFoldAt(n,o.getLine(n).length,1);s?o.removeFold(s):(o.addFold("...",i),e.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}t.stop()}}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){var o=e("../lib/keys"),r=e("../lib/event"),i=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,o){for(var i,s=!1,a=this.$editor.commands,l=this.$handlers.length;l--&&!((i=this.$handlers[l].handleKeyboard(this.$data,e,t,n,o))&&i.command&&((s="null"==i.command||a.exec(i.command,this.$editor,i.args,o))&&o&&-1!=e&&1!=i.passEvent&&1!=i.command.passEvent&&r.stopEvent(o),s)););return s||-1!=e||(i={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal&&this.$editor._signal("keyboardActivity",i),s},this.onCommandKey=function(e,t,n){var r=o.keyCodeToString(n);this.$callKeyboardHandlers(t,r,n,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)}}).call(i.prototype),t.KeyBinding=i})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){var o=0,r=0,i=!1,s=!1,a=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],c=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d=11,u=18,h=[u,u,u,u,u,u,u,u,u,6,5,6,8,5,u,u,u,u,u,u,u,u,u,u,u,u,u,u,5,5,5,6,8,4,4,d,d,d,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,u,u,u,u,u,u,5,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,u,9,4,d,d,d,d,4,4,4,4,0,4,4,u,4,4,d,d,2,2,4,0,4,4,4,2,0,4,4,4,4,4],p=[8,8,8,8,8,8,8,8,8,8,8,u,u,u,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,d,d,d,d,d,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8];function f(e,t,n){if(!(r<e))if(1!=e||1!=o||s)for(var i,a,l,c,d=n.length,u=0;u<d;){if(t[u]>=e){for(i=u+1;i<d&&t[i]>=e;)i++;for(a=u,l=i-1;a<l;a++,l--)c=n[a],n[a]=n[l],n[l]=c;u=i}u++}else n.reverse()}function g(e,t,n,r){var l,c,h,p,f=t[r];switch(f){case 0:case 1:i=!1;case 4:case 3:return f;case 2:return i?3:2;case 7:return i=!0,1;case 8:return 4;case 9:return r<1||r+1>=t.length||2!=(l=n[r-1])&&3!=l||2!=(c=t[r+1])&&3!=c?4:(i&&(c=3),c==l?c:4);case 10:return 2==(l=r>0?n[r-1]:5)&&r+1<t.length&&2==t[r+1]?2:4;case d:if(r>0&&2==n[r-1])return 2;if(i)return 4;for(p=r+1,h=t.length;p<h&&t[p]==d;)p++;return p<h&&2==t[p]?2:4;case 12:for(h=t.length,p=r+1;p<h&&12==t[p];)p++;if(p<h){var g=e[r],m=g>=1425&&g<=2303||64286==g;if(l=t[p],m&&(1==l||7==l))return 1}return r<1||5==(l=t[r-1])?4:n[r-1];case 5:return i=!1,s=!0,o;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:i=!1;case u:return 4}}function m(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?0:h[t]:5==n?/[\u0591-\u05f4]/.test(e)?1:0:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?d:/[\u06f0-\u06f9]/.test(e)?2:7:32==n&&t<=8287?p[255&t]:254==n&&t>=65136?7:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.DOT="·",t.doBidiReorder=function(e,n,d){if(e.length<2)return{};var h=e.split(""),p=new Array(h.length),v=new Array(h.length),b=[];o=d?1:0,function(e,t,n,d){var u=o?c:l,h=null,p=null,f=null,v=0,b=null,y=-1,C=null,w=null,x=[];if(!d)for(C=0,d=[];C<n;C++)d[C]=m(e[C]);for(r=o,i=!1,s=!1,a=!1,w=0;w<n;w++){if(h=v,x[w]=p=g(e,d,x,w),b=240&(v=u[h][p]),v&=15,t[w]=f=u[v][5],b>0)if(16==b){for(C=y;C<w;C++)t[C]=1;y=-1}else y=-1;if(u[v][6])-1==y&&(y=w);else if(y>-1){for(C=y;C<w;C++)t[C]=f;y=-1}5==d[w]&&(t[w]=0),r|=f}if(a)for(C=0;C<n;C++)if(6==d[C]){t[C]=o;for(var S=C-1;S>=0&&8==d[S];S--)t[S]=o}}(h,b,h.length,n);for(var y=0;y<p.length;p[y]=y,y++);f(2,b,p),f(1,b,p);for(y=0;y<p.length-1;y++)3===n[y]?b[y]=t.AN:1===b[y]&&(n[y]>7&&n[y]<13||4===n[y]||n[y]===u)?b[y]=t.ON_R:y>0&&"ل"===h[y-1]&&/\u0622|\u0623|\u0625|\u0627/.test(h[y])&&(b[y-1]=b[y]=t.R_H,y++);h[h.length-1]===t.DOT&&(b[h.length-1]=t.B);for(y=0;y<p.length;y++)v[y]=b[p[y]];return{logicalFromVisual:p,bidiLevels:v}},t.hasBidiCharacters=function(e,t){for(var n=!1,o=0;o<e.length;o++)t[o]=m(e.charAt(o)),n||1!=t[o]&&7!=t[o]||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang","ace/lib/useragent"],(function(e,t,n){var o=e("./lib/bidiutil"),r=e("./lib/lang"),i=e("./lib/useragent"),s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=o,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.line="",this.wrapIndent=0,this.isLastRow=!1,this.EOF="¶",this.seenBidi=!1};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&s.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,o=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===o;)o=n,e++;return e},this.updateRowLine=function(e,t){if(void 0===e&&(e=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=e===this.session.getLength()-1,this.line=this.session.getLine(e),this.session.$useWrapMode){var n=this.session.$wrapData[e];n&&(void 0===t&&(t=this.getSplitIndex()),t>0&&n.length?(this.wrapIndent=n.indent,this.line=t<n.length?this.line.substring(n[t-1],n[n.length-1]):this.line.substring(n[n.length-1])):this.line=this.line.substring(0,n[t]))}var i,s=this.session,a=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||s.isFullWidth(e.charCodeAt(0))?(i="\t"===e?s.getScreenTabSize(t+a):2,a+=i-1,r.stringRepeat(o.DOT,i)):e}))},this.updateBidiMap=function(){var e=[],t=this.isLastRow?this.EOF:this.EOL,n=this.line+(this.showInvisibles?t:o.DOT);o.hasBidiCharacters(n,e)?this.bidiMap=o.doBidiReorder(n,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.seenBidi&&this.characterWidth!==e.$characterSize.width){var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[o.L]=this.charWidths[o.EN]=this.charWidths[o.ON_R]=t,this.charWidths[o.R]=this.charWidths[o.AN]=n,this.charWidths[o.R_H]=i.isChrome?n:.45*n,this.charWidths[o.B]=0,this.currentRow=null}},this.getShowInvisibles=function(){return this.showInvisibles},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setTextDir=function(e){this.isRtlDir=e},this.getPosLeft=function(e){e-=this.wrapIndent;var t=o.getVisualFromLogicalIdx(e>0?e-1:0,this.bidiMap),n=this.bidiMap.bidiLevels,r=0;0===e&&n[t]%2!=0&&t++;for(var i=0;i<t;i++)r+=this.charWidths[n[i]];return 0!==e&&n[t]%2==0&&(r+=this.charWidths[n[t]]),this.wrapIndent&&(r+=this.wrapIndent*this.charWidths[o.L]),r},this.getSelections=function(e,t){for(var n,r,i=this.bidiMap,s=i.bidiLevels,a=this.wrapIndent*this.charWidths[o.L],l=[],c=Math.min(e,t)-this.wrapIndent,d=Math.max(e,t)-this.wrapIndent,u=!1,h=!1,p=0,f=0;f<s.length;f++)r=i.logicalFromVisual[f],n=s[f],(u=r>=c&&r<d)&&!h?p=a:!u&&h&&l.push({left:p,width:a-p}),a+=this.charWidths[n],h=u;return u&&f===s.length&&l.push({left:p,width:a-p}),l},this.offsetToCol=function(e){var t=0,n=(e=Math.max(e,0),0),r=0,i=this.bidiMap.bidiLevels,s=this.charWidths[i[r]];for(this.wrapIndent&&(e-=this.wrapIndent*this.charWidths[o.L]);e>n+s/2;){if(n+=s,r===i.length-1){s=0;break}s=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!=0&&i[r]%2==0?(e<n&&r--,t=this.bidiMap.logicalFromVisual[r]):r>0&&i[r-1]%2==0&&i[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&0===s&&i[r-1]%2==0||!this.isRtlDir&&0===r&&i[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!=0&&0!==s&&r--,t=this.bidiMap.logicalFromVisual[r]),t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){var o=function(e,t,n,o){this.start={row:e,column:t},this.end={row:n,column:o}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,o=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(o.row,o.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(o.row,o.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)r={row:e,column:0};return o.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var r={row:e,column:t};else var i={row:e,column:t};return o.fromPoints(r||this.start,i||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return o.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new o(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new o(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new o(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(o.prototype),o.fromPoints=function(e,t){return new o(e.row,e.column,t.row,t.column)},o.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},o.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=o})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){var o=e("./lib/oop"),r=e("./lib/lang"),i=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var t=this;this.lead.on("change",(function(e){t._emit("changeCursor"),t.$isEmpty||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.selectionAnchor.on("change",(function(){t.$isEmpty||t._emit("changeSelection")}))};(function(){o.implement(this,i),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.anchor.setPosition(e,t),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(e){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+e);else{var t=this.getSelectionAnchor(),n=this.getSelectionLead(),o=this.isBackwards();o&&0===t.column||this.setSelectionAnchor(t.row,t.column+e),(o||0!==n.column)&&this.$moveSelection((function(){this.moveCursorTo(n.row,n.column+e)}))}},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?s.fromPoints(t,t):this.isBackwards()?s.fromPoints(t,e):s.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,o="number"==typeof e?e:this.lead.row,r=this.session.getFoldLine(o);return r?(o=r.start.row,n=r.end.row):n=o,!0===t?new s(o,0,n,this.session.getLine(n).length):new s(o,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var o=e.column,r=e.column+t;return n<0&&(o=e.column-t,r=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(o,r).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),o=this.session.screenToDocumentPosition(n,0),r=this.session.getDisplayLine(e,null,o.row,o.column).match(/^\s*/);r[0].length==t||this.session.$useEmacsStyleLineStart||(o.column+=r[0].length),this.moveCursorToPosition(o)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var o=n.search(/\s+$/);o>0&&(t.column=o)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),o=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var r=this.session.getFoldAt(e,t,1);if(r)this.moveCursorTo(r.end.row,r.end.column);else{if(this.session.nonTokenRe.exec(o)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,o=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(o)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var o=this.session.getFoldStringAt(t,n,-1);null==o&&(o=this.doc.getLine(t).substring(0,n));var i=r.stringReverse(o);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(i)&&(n-=this.session.nonTokenRe.lastIndex,i=i.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(i)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,o=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&o.test(t);)n++;if(n<1)for(r.lastIndex=0;(t=e[n])&&!r.test(t);)if(r.lastIndex=0,n++,o.test(t)){if(n>2){n--;break}for(;(t=e[n])&&o.test(t);)n++;if(n>2)break}}return r.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),o=n.substring(t),r=this.session.getFoldAt(e,t,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(t==n.length){var i=this.doc.getLength();do{e++,o=this.doc.getLine(e)}while(e<i&&/^\s*$/.test(o));/^\s+/.test(o)||(o=""),t=0}var s=this.$shortWordEndIndex(o);this.moveCursorTo(e,t+s)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var o=this.session.getLine(t).substring(0,n);if(0===n){do{t--,o=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(o));n=o.length,/\s+$/.test(o)||(o="")}var i=r.stringReverse(o),s=this.$shortWordEndIndex(i);return this.moveCursorTo(t,n-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,o=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(o.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(o.column),o.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=o.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?o.column=this.$desiredColumn:this.$desiredColumn=o.column);var r=this.session.screenToDocumentPosition(o.row+e,o.column,n);0!==e&&0===t&&r.row===this.lead.row&&r.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[r.row]&&(r.row>0||e>0)&&r.row++,this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var o=this.session.getFoldAt(e,t,1);o&&(e=o.start.row,t=o.start.column),this.$keepDesiredColumnOnChange=!0;var r=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(r.charAt(t))&&r.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var o=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(o.row,o.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return s.fromPoints(t,n)}catch(o){return s.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=s.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){var o=e("./config"),r=2e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],o=[],r=0,i=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(i.defaultToken=c.defaultToken),c.caseInsensitive&&(s="gi"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var d=c.regex,u=new RegExp("(?:("+d+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"!=typeof c.token||c.onMatch||(c.onMatch=u>1?this.$applyToken:c.token),u>1&&(/\\\d/.test(c.regex)?d=c.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+r+1)})):(u=1,d=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||a.push(c)),i[r]=l,r+=u,o.push(d),c.onMatch||(c.onMatch=null)}}o.length||(i[0]=0,o.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)}),this),this.regExps[t]=new RegExp("("+o.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(e){r=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var o=[],r=0,i=n.length;r<i;r++)t[r]&&(o[o.length]={type:n[r],value:t[r]});return o},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],o=this.tokenArray,r=0,i=o.length;r<i;r++)t[r+1]&&(n[n.length]={type:o[r],value:t[r+1]});return n},this.removeCapturingGroups=function(e){return e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,(function(e,t){return t?"(?:":e}))},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,o=!1,r={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,i,s,a,l){return o?o="]"!=a:a?o=!0:s?(n==r.stack&&(r.end=l+1,r.stack=-1),n--):i&&(n++,1!=i.length&&(r.stack=n,r.start=l)),e})),null!=r.end&&/^\)*$/.test(e.substr(r.end))&&(e=e.substring(0,r.start)+e.substr(r.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);"#tmp"===(t=n[0])&&(n.shift(),t=n.shift())}else n=[];var o=t||"start",i=this.states[o];i||(o="start",i=this.states[o]);var s=this.matchMappings[o],a=this.regExps[o];a.lastIndex=0;for(var l,c=[],d=0,u=0,h={type:null,value:""};l=a.exec(e);){var p=s.defaultToken,f=null,g=l[0],m=a.lastIndex;if(m-g.length>d){var v=e.substring(d,m-g.length);h.type==p?h.value+=v:(h.type&&c.push(h),h={type:p,value:v})}for(var b=0;b<l.length-2;b++)if(void 0!==l[b+1]){p=(f=i[s[b]]).onMatch?f.onMatch(g,o,n,e):f.token,f.next&&(o="string"==typeof f.next?f.next:f.next(o,n),(i=this.states[o])||(this.reportError("state doesn't exist",o),o="start",i=this.states[o]),s=this.matchMappings[o],d=m,(a=this.regExps[o]).lastIndex=m),f.consumeLineEnd&&(d=m);break}if(g)if("string"==typeof p)f&&!1===f.merge||h.type!==p?(h.type&&c.push(h),h={type:p,value:g}):h.value+=g;else if(p){h.type&&c.push(h),h={type:null,value:""};for(b=0;b<p.length;b++)c.push(p[b])}if(d==e.length)break;if(d=m,u++>r){for(u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});d<e.length;)h.type&&c.push(h),h={value:e.substring(d,d+=2e3),type:"overflow"};o="start",n=[];break}}return h.type&&c.push(h),n.length>1&&n[0]!==o&&n.unshift("#tmp",o),{tokens:c,state:n.length?n:o}},this.reportError=o.reportError}).call(i.prototype),t.Tokenizer=i})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){var o=e("../lib/lang"),r=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var o=e[n],r=0;r<o.length;r++){var i=o[r];(i.next||i.onMatch)&&("string"==typeof i.next&&0!==i.next.indexOf(t)&&(i.next=t+i.next),i.nextState&&0!==i.nextState.indexOf(t)&&(i.nextState=t+i.nextState))}this.$rules[t+n]=o}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,r,i){var s="function"==typeof e?(new e).getRules():e;if(r)for(var a=0;a<r.length;a++)r[a]=t+r[a];else for(var l in r=[],s)r.push(t+l);if(this.addRules(s,t),n){var c=Array.prototype[i?"push":"unshift"];for(a=0;a<r.length;a++)c.apply(this.$rules[r[a]],o.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,o=this.$rules;Object.keys(o).forEach((function r(i){var s=o[i];s.processed=!0;for(var a=0;a<s.length;a++){var l=s[a],c=null;Array.isArray(l)&&(c=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var d=l.next||l.push;if(d&&Array.isArray(d)){var u=l.stateName;u||("string"!=typeof(u=l.token)&&(u=u[0]||""),o[u]&&(u+=n++)),o[u]=d,l.next=u,r(u)}else"pop"==d&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var h in l.rules)o[h]?o[h].push&&o[h].push.apply(o[h],l.rules[h]):o[h]=l.rules[h];var p="string"==typeof l?l:l.include;if(p&&(c=Array.isArray(p)?p.map((function(e){return o[e]})):o[p]),c){var f=[a,1].concat(c);l.noEscape&&(f=f.filter((function(e){return!e.next}))),s.splice.apply(s,f),a--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}),this)},this.createKeywordMapper=function(e,t,n,o){var r=Object.create(null);return Object.keys(e).forEach((function(t){var i=e[t];n&&(i=i.toLowerCase());for(var s=i.split(o||"|"),a=s.length;a--;)r[s[a]]=t})),Object.getPrototypeOf(r)&&(r.__proto__=null),this.$keywordList=Object.keys(r),e=null,n?function(e){return r[e.toLowerCase()]||t}:function(e){return r[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(r.prototype),t.TextHighlightRules=r})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){var o=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(o.prototype),t.Behaviour=o})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){var o=e("./range").Range,r=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var o=e.getTokenAt(t,n);this.$tokenIndex=o?o.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new o(this.$row,t,this.$row,t+e.value.length)}}).call(r.prototype),t.TokenIterator=r})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){var o,r=e("../../lib/oop"),i=e("../behaviour").Behaviour,s=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),l=["text","paren.rparen","punctuation.operator"],c=["text","paren.rparen","punctuation.operator","comment"],d={},u={'"':'"',"'":"'"},h=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,d.rangeCount!=e.multiSelect.rangeCount&&(d={rangeCount:e.multiSelect.rangeCount})),d[t])return o=d[t];o=d[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},p=function(e,t,n,o){var r=e.end.row-e.start.row;return{text:n+t+o,selection:[0,e.start.column+1,r,e.end.column+(r?0:1)]}},f=function(e){this.add("braces","insertion",(function(t,n,r,i,s){var l=r.getCursorPosition(),c=i.doc.getLine(l.row);if("{"==s){h(r);var d=r.getSelectionRange(),u=i.doc.getTextRange(d);if(""!==u&&"{"!==u&&r.getWrapBehavioursEnabled())return p(d,u,"{","}");if(f.isSaneInsertion(r,i))return/[\]\}\)]/.test(c[l.column])||r.inMultiSelectMode||e&&e.braces?(f.recordAutoInsert(r,i,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(r,i,"{"),{text:"{",selection:[1,1]})}else if("}"==s){if(h(r),"}"==c.substring(l.column,l.column+1))if(null!==i.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&f.isAutoInsertedClosing(l,c,s))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==s||"\r\n"==s){h(r);var g="";if(f.isMaybeInsertedClosing(l,c)&&(g=a.stringRepeat("}",o.maybeInsertedBrackets),f.clearMaybeInsertedClosing()),"}"===c.substring(l.column,l.column+1)){var m=i.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!m)return null;var v=this.$getIndent(i.getLine(m.row))}else{if(!g)return void f.clearMaybeInsertedClosing();v=this.$getIndent(c)}var b=v+i.getTabString();return{text:"\n"+b+"\n"+v+g,selection:[1,b.length,1,b.length]}}f.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,r,i){var s=r.doc.getTextRange(i);if(!i.isMultiLine()&&"{"==s){if(h(n),"}"==r.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i;o.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,o,r){if("("==r){h(n);var i=n.getSelectionRange(),s=o.doc.getTextRange(i);if(""!==s&&n.getWrapBehavioursEnabled())return p(i,s,"(",")");if(f.isSaneInsertion(n,o))return f.recordAutoInsert(n,o,")"),{text:"()",selection:[1,1]}}else if(")"==r){h(n);var a=n.getCursorPosition(),l=o.doc.getLine(a.row);if(")"==l.substring(a.column,a.column+1))if(null!==o.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&f.isAutoInsertedClosing(a,l,r))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,o,r){var i=o.doc.getTextRange(r);if(!r.isMultiLine()&&"("==i&&(h(n),")"==o.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("brackets","insertion",(function(e,t,n,o,r){if("["==r){h(n);var i=n.getSelectionRange(),s=o.doc.getTextRange(i);if(""!==s&&n.getWrapBehavioursEnabled())return p(i,s,"[","]");if(f.isSaneInsertion(n,o))return f.recordAutoInsert(n,o,"]"),{text:"[]",selection:[1,1]}}else if("]"==r){h(n);var a=n.getCursorPosition(),l=o.doc.getLine(a.row);if("]"==l.substring(a.column,a.column+1))if(null!==o.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&f.isAutoInsertedClosing(a,l,r))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,o,r){var i=o.doc.getTextRange(r);if(!r.isMultiLine()&&"["==i&&(h(n),"]"==o.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)))return r.end.column++,r})),this.add("string_dquotes","insertion",(function(e,t,n,o,r){var i=o.$mode.$quotes||u;if(1==r.length&&i[r]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(r))return;h(n);var s=r,a=n.getSelectionRange(),l=o.doc.getTextRange(a);if(!(""===l||1==l.length&&i[l])&&n.getWrapBehavioursEnabled())return p(a,l,s,s);if(!l){var c=n.getCursorPosition(),d=o.doc.getLine(c.row),f=d.substring(c.column-1,c.column),g=d.substring(c.column,c.column+1),m=o.getTokenAt(c.row,c.column),v=o.getTokenAt(c.row,c.column+1);if("\\"==f&&m&&/escape/.test(m.type))return null;var b,y=m&&/string|escape/.test(m.type),C=!v||/string|escape/.test(v.type);if(g==s)(b=y!==C)&&/string\.end/.test(v.type)&&(b=!1);else{if(y&&!C)return null;if(y&&C)return null;var w=o.$mode.tokenRe;w.lastIndex=0;var x=w.test(f);w.lastIndex=0;var S=w.test(f);if(x||S)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;b=!0}return{text:b?s+s:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,o,r){var i=o.doc.getTextRange(r);if(!r.isMultiLine()&&('"'==i||"'"==i)&&(h(n),o.doc.getLine(r.start.row).substring(r.start.column+1,r.start.column+2)==i))return r.end.column++,r}))};f.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),o=new s(t,n.row,n.column);if(!this.$matchTokenType(o.getCurrentToken()||"text",l)){var r=new s(t,n.row,n.column+1);if(!this.$matchTokenType(r.getCurrentToken()||"text",l))return!1}return o.stepForward(),o.getCurrentTokenRow()!==n.row||this.$matchTokenType(o.getCurrentToken()||"text",c)},f.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},f.recordAutoInsert=function(e,t,n){var r=e.getCursorPosition(),i=t.doc.getLine(r.row);this.isAutoInsertedClosing(r,i,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=r.row,o.autoInsertedLineEnd=n+i.substr(r.column),o.autoInsertedBrackets++},f.recordMaybeInsert=function(e,t,n){var r=e.getCursorPosition(),i=t.doc.getLine(r.row);this.isMaybeInsertedClosing(r,i)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=r.row,o.maybeInsertedLineStart=i.substr(0,r.column)+n,o.maybeInsertedLineEnd=i.substr(r.column),o.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(e,t,n){return o.autoInsertedBrackets>0&&e.row===o.autoInsertedRow&&n===o.autoInsertedLineEnd[0]&&t.substr(e.column)===o.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(e,t){return o.maybeInsertedBrackets>0&&e.row===o.maybeInsertedRow&&t.substr(e.column)===o.maybeInsertedLineEnd&&t.substr(0,e.column)==o.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},r.inherits(f,i),t.CstyleBehaviour=f})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){t.packages={},function(e){var n=/\w{4}/g;for(var o in e)t.packages[o]=e[o].replace(n,"\\u$&")}({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})})),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){var o=e("../tokenizer").Tokenizer,r=e("./text_highlight_rules").TextHighlightRules,i=e("./behaviour/cstyle").CstyleBehaviour,s=e("../unicode"),a=e("../lib/lang"),l=e("../token_iterator").TokenIterator,c=e("../range").Range,d=function(){this.HighlightRules=r};(function(){this.$defaultBehaviour=new i,this.tokenRe=new RegExp("^["+s.packages.L+s.packages.Mn+s.packages.Mc+s.packages.Nd+s.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+s.packages.L+s.packages.Mn+s.packages.Mc+s.packages.Nd+s.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,o){var r=t.doc,i=!0,s=!0,l=1/0,c=t.getTabSize(),d=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))g=this.lineCommentStart.map(a.escapeRegExp).join("|"),p=this.lineCommentStart[0];else g=a.escapeRegExp(this.lineCommentStart),p=this.lineCommentStart;g=new RegExp("^(\\s*)(?:"+g+") ?"),d=t.getUseSoftTabs();b=function(e,t){var n=e.match(g);if(n){var o=n[1].length,i=n[0].length;h(e,o,i)||" "!=n[0][i-1]||i--,r.removeInLine(t,o,i)}};var u=p+" ",h=(v=function(e,t){i&&!/\S/.test(e)||(h(e,l,l)?r.insertInLine({row:t,column:l},u):r.insertInLine({row:t,column:l},p))},y=function(e,t){return g.test(e)},function(e,t,n){for(var o=0;t--&&" "==e.charAt(t);)o++;if(o%c!=0)return!1;for(o=0;" "==e.charAt(n++);)o++;return c>2?o%c!=c-1:o%c==0})}else{if(!this.blockComment)return!1;var p=this.blockComment.start,f=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+a.escapeRegExp(p)+")"),m=new RegExp("(?:"+a.escapeRegExp(f)+")\\s*$"),v=function(e,t){y(e,t)||i&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},f),r.insertInLine({row:t,column:l},p))},b=function(e,t){var n;(n=e.match(m))&&r.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&r.removeInLine(t,n[1].length,n[0].length)},y=function(e,n){if(g.test(e))return!0;for(var o=t.getTokens(n),r=0;r<o.length;r++)if("comment"===o[r].type)return!0}}function C(e){for(var t=n;t<=o;t++)e(r.getLine(t),t)}var w=1/0;C((function(e,t){var n=e.search(/\S/);-1!==n?(n<l&&(l=n),s&&!y(e,t)&&(s=!1)):w>e.length&&(w=e.length)})),l==1/0&&(l=w,i=!1,s=!1),d&&l%c!=0&&(l=Math.floor(l/c)*c),C(s?b:v)},this.toggleBlockComment=function(e,t,n,o){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var i=(g=new l(t,o.row,o.column)).getCurrentToken();t.selection;var s,a,d=t.selection.toOrientedRange();if(i&&/comment/.test(i.type)){for(var u,h;i&&/comment/.test(i.type);){if(-1!=(m=i.value.indexOf(r.start))){var p=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m;u=new c(p,f,p,f+r.start.length);break}i=g.stepBackward()}var g;for(i=(g=new l(t,o.row,o.column)).getCurrentToken();i&&/comment/.test(i.type);){var m;if(-1!=(m=i.value.indexOf(r.end))){p=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m;h=new c(p,f,p,f+r.end.length);break}i=g.stepForward()}h&&t.remove(h),u&&(t.remove(u),s=u.start.row,a=-r.start.length)}else a=r.start.length,s=n.start.row,t.insert(n.end,r.end),t.insert(n.start,r.start);d.start.row==s&&(d.start.column+=a),d.end.row==s&&(d.end.column+=a),t.selection.fromOrientedRange(d)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)e[t]&&(this.$embeds.push(t),this.$modes[t]=new e[t]);var n=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<n.length;t++)!function(e){var o=n[t],r=e[o];e[n[t]]=function(){return this.$delegator(o,arguments,r)}}(this)},this.$delegator=function(e,t,n){var o=t[0];"string"!=typeof o&&(o=o[0]);for(var r=0;r<this.$embeds.length;r++)if(this.$modes[this.$embeds[r]]){var i=o.split(this.$embeds[r]);if(!i[0]&&i[1]){t[0]=i[1];var s=this.$modes[this.$embeds[r]];return s[e].apply(s,t)}}var a=n.apply(this,t);return n?a:void 0},this.transformAction=function(e,t,n,o,r){if(this.$behaviour){var i=this.$behaviour.getBehaviours();for(var s in i)if(i[s][t]){var a=i[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var o in t)for(var r=t[o],i=0,s=r.length;i<s;i++)if("string"==typeof r[i].token)/keyword|support|storage/.test(r[i].token)&&n.push(r[i].regex);else if("object"==typeof r[i].token)for(var a=0,l=r[i].token.length;a<l;a++)if(/keyword|support|storage/.test(r[i].token[a])){o=r[i].regex.match(/\(.+?\)/g)[a];n.push(o.substr(1,o.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,o){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(d.prototype),t.Mode=d})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){t.applyDelta=function(e,t,n){var o=t.start.row,r=t.start.column,i=e[o]||"";switch(t.action){case"insert":if(1===t.lines.length)e[o]=i.substring(0,r)+t.lines[0]+i.substring(r);else{var s=[o,1].concat(t.lines);e.splice.apply(e,s),e[o]=i.substring(0,r)+e[o],e[o+t.lines.length-1]+=i.substring(r)}break;case"remove":var a=t.end.column,l=t.end.row;o===l?e[o]=i.substring(0,r)+i.substring(a):e.splice(o,l-o+1,i.substring(0,r)+e[l].substring(a))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var o=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,i=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var o=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&o}o.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row||t.start.row>this.row)){var n=function(t,n,o){var r="insert"==t.action,i=(r?1:-1)*(t.end.row-t.start.row),s=(r?1:-1)*(t.end.column-t.start.column),a=t.start,l=r?a:t.end;if(e(n,a,o))return{row:n.row,column:n.column};if(e(l,n,!o))return{row:n.row+i,column:n.column+(n.row==l.row?s:0)};return{row:a.row,column:a.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var o;if(o=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=o.row||this.column!=o.column){var r={row:this.row,column:this.column};this.row=o.row,this.column=o.column,this._signal("change",{old:r,value:o})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(i.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){var o=e("./lib/oop"),r=e("./apply_delta").applyDelta,i=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){o.implement(this,i),this.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),o=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:o,action:"insert",lines:[t]},!0),this.clonePos(o)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var o=this.getLine(e);return null==t&&(t=o.length),{row:e,column:t=Math.min(Math.max(t,0),o.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),o={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:o,action:"insert",lines:t}),this.clonePos(o)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var o=this.clippedPos(e,t),r=this.clippedPos(e,n);return this.applyDelta({start:o,end:r,action:"remove",lines:this.getLinesForRange({start:o,end:r})},!0),this.clonePos(o)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,o=t<this.getLength()-1,r=n?e-1:e,i=n?this.getLine(r).length:0,a=o?t+1:t,l=o?0:this.getLine(a).length,c=new s(r,i,a,l),d=this.$lines.slice(e,t+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),d},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),r(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,o=n.length,r=e.start.row,i=e.start.column,s=0,a=0;;){s=a,a+=t-1;var l=n.slice(s,a);if(a>o){e.lines=l,e.start.row=r+s,e.start.column=i;break}l.push(""),this.applyDelta({start:this.pos(r+s,i),end:this.pos(r+a,i=0),action:e.action,lines:l},!0)}},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),o=this.getNewLineCharacter().length,r=t||0,i=n.length;r<i;r++)if((e-=n[r].length+o)<0)return{row:r,column:e+n[r].length+o};return{row:i-1,column:n[i-1].length}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),o=this.getNewLineCharacter().length,r=0,i=Math.min(e.row,n.length),s=t||0;s<i;++s)r+=n[s].length+o;return r+e.column}}).call(l.prototype),t.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var o=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,i=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,o=-1,r=n.doc,i=t;n.lines[t];)t++;var s=r.getLength(),a=0;for(n.running=!1;t<s;){n.$tokenizeRow(t),o=t;do{t++}while(n.lines[t]);if(++a%5==0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==o&&(o=t),i<=o&&n.fireUpdateEvent(i,o)}}};(function(){o.implement(this,r),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var o=Array(n+1);o.unshift(t,1),this.lines.splice.apply(this.lines,o),this.states.splice.apply(this.states,o)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],o=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=o.state+""?(this.states[e]=o.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=o.tokens}}).call(i.prototype),t.BackgroundTokenizer=i})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){var o=e("./lib/lang");e("./lib/oop");var r=e("./range").Range,i=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,i){if(this.regExp)for(var s=i.firstRow,a=i.lastRow,l=s;l<=a;l++){var c=this.cache[l];null==c&&((c=o.getMatchOffsets(n.getLine(l),this.regExp)).length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map((function(e){return new r(l,e.offset,l,e.offset+e.length)})),this.cache[l]=c.length?c:"");for(var d=c.length;d--;)t.drawSingleLineMarker(e,c[d].toScreenRange(n),this.clazz,i)}}}).call(i.prototype),t.SearchHighlight=i})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){var o=e("../range").Range;function r(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new o(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var o,r,i=0,s=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<s.length;l++){if(-1==(r=(o=s[l]).range.compareStart(t,n)))return void e(null,t,n,i,a);if(!e(null,o.start.row,o.start.column,i,a)&&e(o.placeholder,o.start.row,o.start.column,i)||0===r)return;a=!o.sameRow,i=o.end.column}e(null,t,n,i,a)},this.getNextFoldTo=function(e,t){for(var n,o,r=0;r<this.folds.length;r++){if(-1==(o=(n=this.folds[r]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===o)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var o,r,i=this.getNextFoldTo(e,t);if(i)if(o=i.fold,"inside"==i.kind&&o.start.column!=t&&o.start.row!=e)window.console&&window.console.log(e,t,o);else if(o.start.row==e){var s=(r=this.folds).indexOf(o);for(0===s&&(this.start.column+=n);s<r.length;s++){if((o=r[s]).start.column+=n,!o.sameRow)return;o.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var o=n.fold,i=this.folds,s=this.foldData,a=i.indexOf(o),l=i[a-1];this.end.row=l.end.row,this.end.column=l.end.column;var c=new r(s,i=i.splice(a,i.length-a));return s.splice(s.indexOf(this)+1,0,c),c},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var o=this.foldData;o.splice(o.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var o=this.folds[n];if((e-=o.start.column-t)<0)return{row:o.start.row,column:o.start.column+e};if((e-=o.placeholder.length)<0)return o.start;t=o.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(r.prototype),t.FoldLine=r})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){var o=e("./range").Range.comparePoints,r=function(){this.ranges=[]};(function(){this.comparePoints=o,this.pointIndex=function(e,t,n){for(var r=this.ranges,i=n||0;i<r.length;i++){var s=r[i],a=o(e,s.end);if(!(a>0)){var l=o(e,s.start);return 0===a?t&&0!==l?-i-2:i:l>0||0===l&&!t?i:-i-1}}return-i-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var o=this.pointIndex(e.end,t,n);return o<0?o=-o-1:o++,this.ranges.splice(n,o-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,r=(n=n.sort((function(e,t){return o(e.start,t.start)})))[0],i=1;i<n.length;i++){e=r,r=n[i];var s=o(e.end,r.start);s<0||(0!=s||e.isEmpty()||r.isEmpty())&&(o(e.end,r.end)<0&&(e.end.row=r.end.row,e.end.column=r.end.column),n.splice(i,1),t.push(r),r=e,i--)}return this.ranges=n,t},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var o=this.pointIndex({row:e,column:0});o<0&&(o=-o-1);var r=this.pointIndex({row:t,column:0},o);r<0&&(r=-r-1);for(var i=[],s=o;s<r;s++)i.push(n[s]);return i},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){if("insert"==e.action)var t=e.start,n=e.end;else n=e.start,t=e.end;for(var o=t.row,r=n.row-o,i=-t.column+n.column,s=this.ranges,a=0,l=s.length;a<l;a++){if(!((c=s[a]).end.row<o)){if(c.start.row>o)break;if(c.start.row==o&&c.start.column>=t.column&&(c.start.column==t.column&&this.$insertRight||(c.start.column+=i,c.start.row+=r)),c.end.row==o&&c.end.column>=t.column){if(c.end.column==t.column&&this.$insertRight)continue;c.end.column==t.column&&i>0&&a<l-1&&c.end.column>c.start.column&&c.end.column==s[a+1].start.column&&(c.end.column-=i),c.end.column+=i,c.end.row+=r}}}if(0!=r&&a<l)for(;a<l;a++){var c;(c=s[a]).start.row+=r,c.end.row+=r}}}).call(r.prototype),t.RangeList=r})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],(function(e,t,n){e("../range").Range;var o=e("../range_list").RangeList,r=e("../lib/oop"),i=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function s(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function a(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}r.inherits(i,o),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new i(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){if(!this.range.containsRange(e))throw new Error("A fold can't intersect already existing fold"+e.range+this.range);var t,n;t=e,n=this.start,s(t.start,n),s(t.end,n);for(var o=e.start.row,r=e.start.column,i=0,a=-1;i<this.subFolds.length&&1==(a=this.subFolds[i].range.compare(o,r));i++);var l=this.subFolds[i];if(0==a)return l.addSubFold(e);o=e.range.end.row,r=e.range.end.column;var c=i;for(a=-1;c<this.subFolds.length&&1==(a=this.subFolds[c].range.compare(o,r));c++);if(this.subFolds[c],0==a)throw new Error("A fold can't intersect already existing fold"+e.range+this.range);return this.subFolds.splice(i,c-i,e),e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return function(e,t){a(e.start,t),a(e.end,t)}(e,this.start)}}.call(i.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){var o=e("../range").Range,r=e("./fold_line").FoldLine,i=e("./fold").Fold,s=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,n){var o=this.getFoldLine(e);if(!o)return null;for(var r=o.folds,i=0;i<r.length;i++){var s=r[i];if(s.range.contains(e,t)){if(1==n&&s.range.isEnd(e,t))continue;if(-1==n&&s.range.isStart(e,t))continue;return s}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,o=this.$foldData,r=[];t.column+=1,n.column-=1;for(var i=0;i<o.length;i++){var s=o[i].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=o[i].folds,l=0;l<a.length;l++){var c=a[l];if(-2==(s=c.range.compareRange(e)))break;if(2!=s){if(42==s)break;r.push(c)}}}}return t.column-=1,n.column+=1,r},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var o=0;o<t[n].folds.length;o++)e.push(t[n].folds[o]);return e},this.getFoldStringAt=function(e,t,n,o){if(!(o=o||this.getFoldLine(e)))return null;for(var r,i,s={end:{column:0}},a=0;a<o.folds.length;a++){var l=(i=o.folds[a]).range.compareEnd(e,t);if(-1==l){r=this.getLine(i.start.row).substring(s.end.column,i.start.column);break}if(0===l)return null;s=i}return r||(r=this.getLine(i.start.row).substring(s.end.column)),-1==n?r.substring(0,t-s.end.column):1==n?r.substring(t-s.end.column):r},this.getFoldLine=function(e,t){var n=this.$foldData,o=0;for(t&&(o=n.indexOf(t)),-1==o&&(o=0);o<n.length;o++){var r=n[o];if(r.start.row<=e&&r.end.row>=e)return r;if(r.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,o=0;for(t&&(o=n.indexOf(t)),-1==o&&(o=0);o<n.length;o++){var r=n[o];if(r.end.row>=e)return r}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,o=t-e+1,r=0;r<n.length;r++){var i=n[r],s=i.end.row,a=i.start.row;if(s>=t){a<t&&(a>=e?o-=t-a:o=0);break}s>=e&&(o-=a>=e?s-a:s-e+1)}return o},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,o=this.$foldData,s=!1;e instanceof i?n=e:(n=new i(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var a=n.start.row,l=n.start.column,c=n.end.row,d=n.end.column;if(!(a<c||a==c&&l<=d-2))throw new Error("The range has to be at least 2 characters width");var u=this.getFoldAt(a,l,1),h=this.getFoldAt(c,d,-1);if(u&&h==u)return u.addSubFold(n);u&&!u.range.isStart(a,l)&&this.removeFold(u),h&&!h.range.isEnd(c,d)&&this.removeFold(h);var p=this.getFoldsInRange(n.range);p.length>0&&(this.removeFolds(p),p.forEach((function(e){n.addSubFold(e)})));for(var f=0;f<o.length;f++){var g=o[f];if(c==g.start.row){g.addFold(n),s=!0;break}if(a==g.end.row){if(g.addFold(n),s=!0,!n.sameRow){var m=o[f+1];if(m&&m.start.row==c){g.merge(m);break}}break}if(c<=g.start.row)break}return s||(g=this.$addFoldLine(new r(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,o=t.end.row,r=this.$foldData,i=t.folds;if(1==i.length)r.splice(r.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))i.pop(),t.end.row=i[i.length-1].end.row,t.end.column=i[i.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))i.shift(),t.start.row=i[0].start.row,t.start.column=i[0].start.column;else if(e.sameRow)i.splice(i.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);(i=s.folds).shift(),s.start.row=i[0].start.row,s.start.column=i[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,o):this.$updateRowLengthCache(n,o)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,r;if(null==e?(n=new o(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new o(e,0,e,this.getLine(e).length):"row"in e?o.fromPoints(e,e):e,r=this.getFoldsInRangeList(n),t)this.removeFolds(r);else for(var i=r;i.length;)this.expandFolds(i),i=this.getFoldsInRangeList(n);if(r.length)return r},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,o,r){null==o&&(o=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var i=this.doc,s="";return e.walk((function(e,t,n,a){if(!(t<o)){if(t==o){if(n<r)return;a=Math.max(r,a)}s+=null!=e?e:i.getLine(t).substring(a,n)}}),t,n),s},this.getDisplayLine=function(e,t,n,o){var r,i=this.getFoldLine(e);return i?this.getFoldDisplayLine(i,e,t,n,o):(r=this.doc.getLine(e)).substring(o||0,t||r.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new r(e,n)}))},this.toggleFold=function(e){var t,n,o=this.selection.getRange();if(o.isEmpty()){var r=o.start;if(t=this.getFoldAt(r.row,r.column))return void this.expandFold(t);(n=this.findMatchingBracket(r))?1==o.comparePoint(n)?o.end=n:(o.start=n,o.start.column++,o.end.column--):(n=this.findMatchingBracket({row:r.row,column:r.column+1}))?(1==o.comparePoint(n)?o.end=n:o.start=n,o.start.column++):o=this.getCommentFoldRange(r.row,r.column)||o}else{var i=this.getFoldsInRange(o);if(e&&i.length)return void this.expandFolds(i);1==i.length&&(t=i[0])}if(t||(t=this.getFoldAt(o.start.row,o.start.column)),t&&t.range.toString()==o.toString())this.expandFold(t);else{var s="...";if(!o.isMultiLine()){if((s=this.getTextRange(o)).length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,o)}},this.getCommentFoldRange=function(e,t,n){var r=new s(this,e,t),i=r.getCurrentToken(),a=i.type;if(i&&/^comment|string/.test(a)){"comment"==(a=a.match(/comment|string/)[0])&&(a+="|doc-start");var l=new RegExp(a),c=new o;if(1!=n){do{i=r.stepBackward()}while(i&&l.test(i.type));r.stepForward()}if(c.start.row=r.getCurrentTokenRow(),c.start.column=r.getCurrentTokenColumn()+2,r=new s(this,e,t),-1!=n){var d=-1;do{if(i=r.stepForward(),-1==d){var u=this.getState(r.$row);l.test(u)||(d=r.$row)}else if(r.$row>d)break}while(i&&l.test(i.type));i=r.stepBackward()}else i=r.getCurrentToken();return c.end.row=r.getCurrentTokenRow(),c.end.column=r.getCurrentTokenColumn()+i.value.length-2,c}},this.foldAll=function(e,t,n){null==n&&(n=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength();for(var r=e=e||0;r<t;r++)if(null==o[r]&&(o[r]=this.getFoldWidget(r)),"start"==o[r]){var i=this.getFoldWidgetRange(r);if(i&&i.isMultiLine()&&i.end.row<=t&&i.start.row>=e){r=i.end.row;try{var s=this.addFold("...",i);s&&(s.collapseChildren=n)}catch(a){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var o,r=e-1;r>=0;){var i=n[r];if(null==i&&(i=n[r]=this.getFoldWidget(r)),"start"==i){var s=this.getFoldWidgetRange(r);if(o||(o=s),s&&s.end.row>=e)break}r--}return{range:-1!==r&&s,firstRange:o}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var o=t.target||t.srcElement;o&&/ace_fold-widget/.test(o.className)&&(o.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),o=this.getLine(e),r="end"===n?-1:1,i=this.getFoldAt(e,-1===r?0:o.length,r);if(i)return t.children||t.all?this.removeFold(i):this.expandFold(i),i;var s=this.getFoldWidgetRange(e,!0);if(s&&!s.isMultiLine()&&(i=this.getFoldAt(s.start.row,s.start.column,1))&&s.isEqual(i.range))return this.removeFold(i),i;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=s?s.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var o=this.getParentFoldRangeData(t,!0);if(n=o.range||o.firstRange){t=n.start.row;var r=this.getFoldAt(t,this.getLine(t).length,1);r?this.removeFold(r):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var o=Array(n+1);o.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,o)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){var o=e("../token_iterator").TokenIterator,r=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var o=n.match(/([\(\[\{])|([\)\]\}])/);return o?o[1]?this.$findClosingBracket(o[1],e):this.$findOpeningBracket(o[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),o=!0,i=n.charAt(e.column-1),s=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(s||(i=n.charAt(e.column),e={row:e.row,column:e.column+1},s=i&&i.match(/([\(\[\{])|([\)\]\}])/),o=!1),!s)return null;if(s[1]){if(!(a=this.$findClosingBracket(s[1],e)))return null;t=r.fromPoints(e,a),o||(t.end.column++,t.start.column--),t.cursor=t.end}else{var a;if(!(a=this.$findOpeningBracket(s[2],e)))return null;t=r.fromPoints(a,e),o||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,n){var r=this.$brackets[e],i=1,s=new o(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-s.getCurrentTokenColumn()-2,c=a.value;;){for(;l>=0;){var d=c.charAt(l);if(d==r){if(0==(i-=1))return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else d==e&&(i+=1);l-=1}do{a=s.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;l=(c=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var r=this.$brackets[e],i=1,s=new o(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-s.getCurrentTokenColumn();;){for(var c=a.value,d=c.length;l<d;){var u=c.charAt(l);if(u==r){if(0==(i-=1))return{row:s.getCurrentTokenRow(),column:l+s.getCurrentTokenColumn()}}else u==e&&(i+=1);l+=1}do{a=s.stepForward()}while(a&&!n.test(a.type));if(null==a)break;l=0}return null}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){var o=e("./lib/oop"),r=e("./lib/lang"),i=e("./bidihandler").BidiHandler,s=e("./config"),a=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,c=e("./mode/text").Mode,d=e("./range").Range,u=e("./document").Document,h=e("./background_tokenizer").BackgroundTokenizer,p=e("./search_highlight").SearchHighlight,f=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++f.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new u(e)),this.$bidiHandler=new i(this),this.setDocument(e),this.selection=new l(this),s.resetOptions(this),this.setMode(t),s._signal("session",this)};f.$uid=0,function(){o.implement(this,a),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,o=e.length-1;n<=o;){var r=n+o>>1,i=e[r];if(t>i)n=r+1;else{if(!(t<i))return r;o=r-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);this.$fromUndo||!this.$undoManager||e.ignore||(this.$deltasDoc.push(e),t&&0!=t.length&&this.$deltasFold.push({action:"removeFolds",folds:t}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,o=this.bgTokenizer.getTokens(e),r=0;if(null==t){var i=o.length-1;r=this.getLine(e).length}else for(i=0;i<o.length&&!((r+=o[i].value.length)>=t);i++);return(n=o[i])?(n.index=i,n.start=r-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),t.$deltas.length>0&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,o){var r=this.$markerId++,i={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!o,id:r};return o?(this.$frontMarkers[r]=i,this._signal("changeFrontMarker")):(this.$backMarkers[r]=i,this._signal("changeBackMarker")),r},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;t&&(delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new p(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,o){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var r=new d(e,0,t,1/0);return r.id=this.addMarker(r,n,"fullLine",o),r},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),o=!1;if(t>0&&(o=!!n.charAt(t-1).match(this.tokenRe)),o||(o=!!n.charAt(t).match(this.tokenRe)),o)var r=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))r=/\s/;else r=this.nonTokenRe;var i=t;if(i>0){do{i--}while(i>=0&&n.charAt(i).match(r));i++}for(var s=t;s<n.length&&n.charAt(s).match(r);)s++;return new d(e,i,e,s)},this.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),o=this.getLine(n.end.row);o.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,o=n.path}else o=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[o]&&!n)return this.$onChangeMode(this.$modes[o]),void(t&&t());this.$modeId=o,s.loadModule(["mode",o],function(e){if(this.$modeId!==o)return t&&t();this.$modes[o]&&!n?this.$onChangeMode(this.$modes[o]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[o]=e,e.$id=o),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var n=e.getTokenizer();if(void 0!==n.addEventListener){var o=this.onReloadTokenizer.bind(this);n.addEventListener("update",o)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=new h(n);var r=this;this.bgTokenizer.addEventListener("update",(function(e){r._signal("tokenizerUpdate",e)}))}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,o=0,r=0,i=this.$foldData[r],s=i?i.start.row:1/0,a=t.length,l=0;l<a;l++){if(l>s){if((l=i.end.row+1)>=a)break;s=(i=this.$foldData[r++])?i.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>o&&(o=n[l])}this.screenWidth=o}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,o=e.length-1;-1!=o;o--){var r=e[o];"doc"==r.group?(this.doc.revertDeltas(r.deltas),n=this.$getUndoSelection(r.deltas,!0,n)):r.deltas.forEach((function(e){this.addFolds(e.folds)}),this)}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,o=0;o<e.length;o++){var r=e[o];"doc"==r.group&&(this.doc.applyDeltas(r.deltas),n=this.$getUndoSelection(r.deltas,!1,n))}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,n){function o(e){return t?"insert"!==e.action:"insert"===e.action}var r,i,s=e[0];r=o(s)?d.fromPoints(s.start,s.end):d.fromPoints(s.start,s.start);for(var a=1;a<e.length;a++)o(s=e[a])?(i=s.start,-1==r.compare(i.row,i.column)&&r.setStart(i),i=s.end,1==r.compare(i.row,i.column)&&r.setEnd(i)):(i=s.start,-1==r.compare(i.row,i.column)&&(r=d.fromPoints(s.start,s.start)));if(null!=n){0===d.comparePoints(n.start,r.start)&&(n.start.column+=r.end.column-r.start.column,n.end.column+=r.end.column-r.start.column);var l=n.compareRange(r);1==l?r.setStart(n.start):-1==l&&r.setEnd(n.end)}return r},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var o=this.getTextRange(e),r=this.getFoldsInRange(e),i=d.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row;(c=s?-e.end.column:e.start.column-e.end.column)&&(i.start.row==e.end.row&&i.start.column>e.end.column&&(i.start.column+=c),i.end.row==e.end.row&&i.end.column>e.end.column&&(i.end.column+=c)),s&&i.start.row>=e.end.row&&(i.start.row+=s,i.end.row+=s)}if(i.end=this.insert(i.start,o),r.length){var a=e.start,l=i.start,c=(s=l.row-a.row,l.column-a.column);this.addFolds(r.map((function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=c),e.end.row==a.row&&(e.end.column+=c),e.start.row+=s,e.end.row+=s,e})))}return i},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var o=e;o<=t;o++)this.doc.insertInLine({row:o,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new d(0,0,0,0),o=this.getTabSize(),r=t.start.row;r<=t.end.row;++r){var i=this.getLine(r);n.start.row=r,n.end.row=r;for(var s=0;s<o&&" "==i.charAt(s);++s);s<o&&"\t"==i.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((r=this.getRowFoldStart(e+n))<0)return 0;var o=r-e}else if(n>0){var r;if((r=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;o=r-t}else{e=this.$clipRowToDocument(e);o=(t=this.$clipRowToDocument(t))-e+1}var i=new d(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(i).map((function(e){return(e=e.clone()).start.row+=o,e.end.row+=o,e})),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+o,a),s.length&&this.addFolds(s),o},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var o=this.$constrainWrapLimit(e,n.min,n.max);return o!=this.$wrapLimit&&o>1&&(this.$wrapLimit=o,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,o=e.start,r=e.end,i=o.row,s=r.row,a=s-i,l=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(i,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var d=0;if(g=this.getFoldLine(r.row)){g.addRemoveChars(r.row,r.column,o.column-r.column),g.shiftRow(-a);var u=this.getFoldLine(i);u&&u!==g&&(u.merge(g),g=u),d=c.indexOf(g)+1}for(;d<c.length;d++){(g=c[d]).start.row>=r.row&&g.shiftRow(-a)}s=i}else{var h=Array(a);h.unshift(i,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,h);c=this.$foldData,d=0;if(g=this.getFoldLine(i)){var f=g.range.compareInside(o.row,o.column);0==f?(g=g.split(o.row,o.column))&&(g.shiftRow(a),g.addRemoveChars(s,0,r.column-o.column)):-1==f&&(g.addRemoveChars(i,0,r.column-o.column),g.shiftRow(a)),d=c.indexOf(g)+1}for(;d<c.length;d++){var g;(g=c[d]).start.row>=i&&g.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(g=this.getFoldLine(i))&&g.addRemoveChars(i,o.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(i,s):this.$updateRowLengthCache(i,s),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,o){var r,i,s=this.doc.getAllLines(),a=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,d=n;for(o=Math.min(o,s.length-1);d<=o;)(i=this.getFoldLine(d,i))?(r=[],i.walk(function(n,o,i,a){var l;if(null!=n){(l=this.$getDisplayTokens(n,r.length))[0]=e;for(var c=1;c<l.length;c++)l[c]=t}else l=this.$getDisplayTokens(s[o].substring(a,i),r.length);r=r.concat(l)}.bind(this),i.end.row,s[i.end.row].length+1),l[i.start.row]=this.$computeWrapSplits(r,c,a),d=i.end.row+1):(r=this.$getDisplayTokens(s[d]),l[d]=this.$computeWrapSplits(r,c,a),d++)};var e=3,t=4;function n(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(n,o,r){if(0==n.length)return[];var i=[],s=n.length,a=0,l=0,c=this.$wrapAsCode,d=this.$indentedSoftWrap,u=o<=Math.max(2*r,8)||!1===d?0:Math.floor(o/2);function h(e){var t=n.slice(a,e),o=t.length;t.join("").replace(/12/g,(function(){o-=1})).replace(/2/g,(function(){o-=1})),i.length||(p=function(){var e=0;if(0===u)return e;if(d)for(var t=0;t<n.length;t++){var o=n[t];if(10==o)e+=1;else{if(11!=o){if(12==o)continue;break}e+=r}}return c&&!1!==d&&(e+=r),Math.min(e,u)}(),i.indent=p),l+=o,i.push(l),a=e}for(var p=0;s-a>o-p;){var f=a+o-p;if(n[f-1]>=10&&n[f]>=10)h(f);else if(n[f]!=e&&n[f]!=t){for(var g=Math.max(f-(o-(o>>2)),a-1);f>g&&n[f]<e;)f--;if(c){for(;f>g&&n[f]<e;)f--;for(;f>g&&9==n[f];)f--}else for(;f>g&&n[f]<10;)f--;f>g?h(++f):(2==n[f=a+o]&&f--,h(f-p))}else{for(;f!=a-1&&n[f]!=e;f--);if(f>a){h(f);continue}for(f=a+o;f<n.length&&n[f]==t;f++);if(f==n.length)break;h(f)}}return i},this.$getDisplayTokens=function(e,t){var o,r=[];t=t||0;for(var i=0;i<e.length;i++){var s=e.charCodeAt(i);if(9==s){o=this.getScreenTabSize(r.length+t),r.push(11);for(var a=1;a<o;a++)r.push(12)}else 32==s?r.push(10):s>39&&s<48||s>57&&s<64?r.push(9):s>=4352&&n(s)?r.push(1,2):r.push(1)}return r},this.$getStringScreenWidth=function(e,t,o){if(0==t)return[0,0];var r,i;for(null==t&&(t=1/0),o=o||0,i=0;i<e.length&&(9==(r=e.charCodeAt(i))?o+=this.getScreenTabSize(o):r>=4352&&n(r)?o+=2:o+=1,!(o>t));i++);return[o,i]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-e%this.$tabSize},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var o,r,i=0,s=0,a=0,l=0,c=this.$screenRowCache,d=this.$getRowCacheIndex(c,e),u=c.length;if(u&&d>=0){a=c[d],i=this.$docRowCache[d];var h=e>c[u-1]}else h=!u;for(var p=this.getLength()-1,f=this.getNextFoldLine(i),g=f?f.start.row:1/0;a<=e&&!(a+(l=this.getRowLength(i))>e||i>=p);)a+=l,++i>g&&(i=f.end.row+1,g=(f=this.getNextFoldLine(i,f))?f.start.row:1/0),h&&(this.$docRowCache.push(i),this.$screenRowCache.push(a));if(f&&f.start.row<=i)o=this.getFoldDisplayLine(f),i=f.start.row;else{if(a+l<=e||i>p)return{row:p,column:this.getLine(p).length};o=this.getLine(i),f=null}var m=0,v=Math.floor(e-a);if(this.$useWrapMode){var b=this.$wrapData[i];b&&(r=b[v],v>0&&b.length&&(m=b.indent,s=b[v-1]||b[b.length-1],o=o.substring(s)))}return void 0!==n&&this.$bidiHandler.isBidiRow(a+v,i,v)&&(t=this.$bidiHandler.offsetToCol(n)),s+=this.$getStringScreenWidth(o,t-m)[1],this.$useWrapMode&&s>=r&&(s=r-1),f?f.idxToPosition(s):{row:i,column:s}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var o,r=0,i=null;(o=this.getFoldAt(e,t,1))&&(e=o.start.row,t=o.start.column);var s,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),d=l.length;if(d&&c>=0){a=l[c],r=this.$screenRowCache[c];var u=e>l[d-1]}else u=!d;for(var h=this.getNextFoldLine(a),p=h?h.start.row:1/0;a<e;){if(a>=p){if((s=h.end.row+1)>e)break;p=(h=this.getNextFoldLine(s,h))?h.start.row:1/0}else s=a+1;r+=this.getRowLength(a),a=s,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(r))}var f="";h&&a>=p?(f=this.getFoldDisplayLine(h,e,t),i=h.start.row):(f=this.getLine(e).substring(0,t),i=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[i];if(m){for(var v=0;f.length>=m[v];)r++,v++;f=f.substring(m[v-1]||0,f.length),g=v>0?m.indent:0}}return{row:r,column:g+this.$getStringScreenWidth(f)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,o=0,r=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);o<n;){var i=this.$wrapData[o];e+=i?i.length+1:1,++o>r&&(o=t.end.row+1,r=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)e-=(t=s[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,o){if(0===n)return[0,0];var r,i;for(n||(n=1/0),o=o||0,i=0;i<t.length&&!((o+="\t"===(r=t.charAt(i))?this.getScreenTabSize(o):e.getCharacterWidth(r))>n);i++);return[o,i]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=n}.call(f.prototype),e("./edit_session/folding").Folding.call(f.prototype),e("./edit_session/bracket_match").BracketMatch.call(f.prototype),s.defineOptions(f.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}}),t.EditSession=f})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){var o=e("./lib/lang"),r=e("./lib/oop"),i=e("./range").Range,s=function(){this.$options={}};(function(){this.set=function(e){return r.mixin(this.$options,e),this},this.getOptions=function(){return o.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var o=null;return n.forEach((function(e,n,r,s){return o=new i(e,n,r,s),!(n==s&&t.start&&t.start.start&&0!=t.skipCurrent&&o.isEqual(t.start))||(o=null,!1)})),o},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,r=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var l,c=a.length,d=r.length-c;e:for(var u=a.offset||0;u<=d;u++){for(var h=0;h<c;h++)if(-1==r[u+h].search(a[h]))continue e;var p=r[u],f=r[u+c-1],g=p.length-p.match(a[0])[0].length,m=f.match(a[c-1])[0].length;l&&l.end.row===u&&l.end.column>g||(s.push(l=new i(u,g,u+c-1,m)),c>2&&(u=u+c-2))}}else for(var v=0;v<r.length;v++){var b=o.getMatchOffsets(r[v],a);for(h=0;h<b.length;h++){var y=b[h];s.push(new i(v,y.offset,v,y.offset+y.length))}}if(n){var C=n.start.column,w=n.start.column;for(v=0,h=s.length-1;v<h&&s[v].start.column<C&&s[v].start.row==n.start.row;)v++;for(;v<h&&s[h].end.column>w&&s[h].end.row==n.end.row;)h--;for(s=s.slice(v,h+1),v=0,h=s.length;v<h;v++)s[v].start.row+=n.start.row,s[v].end.row+=n.start.row}return s},this.replace=function(e,t){var n=this.$options,o=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(o){var r=o.exec(e);if(!r||r[0].length!=e.length)return null;if(t=e.replace(o,t),n.preserveCase){t=t.split("");for(var i=Math.min(e.length,e.length);i--;){var s=e[i];s&&s.toLowerCase()!=s?t[i]=t[i].toUpperCase():t[i]=t[i].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=o.escapeRegExp(n)),e.wholeWord&&(n=function(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(n,e));var r=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,r);try{var i=new RegExp(n,r)}catch(s){i=!1}return e.re=i},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),o=[],r=0;r<n.length;r++)try{o.push(new RegExp(n[r],t))}catch(i){return!1}return o},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var o=1==t.backwards,r=0!=t.skipCurrent,i=t.range,s=t.start;s||(s=i?i[o?"end":"start"]:e.selection.getRange()),s.start&&(s=s[r!=o?"end":"start"]);var a=i?i.start.row:0,l=i?i.end.row:e.getLength()-1;if(o)var c=function(e){var n=s.row;if(!u(n,s.column,e)){for(n--;n>=a;n--)if(u(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,a=s.row;n>=a;n--)if(u(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=s.row;if(!u(n,s.column,e)){for(n+=1;n<=l;n++)if(u(n,0,e))return;if(0!=t.wrap)for(n=a,l=s.row;n<=l;n++)if(u(n,0,e))return}};if(t.$isMultiLine)var d=n.length,u=function(t,r,i){var s=o?t-d+1:t;if(!(s<0)){var a=e.getLine(s),l=a.search(n[0]);if(!(!o&&l<r||-1===l)){for(var c=1;c<d;c++)if(-1==(a=e.getLine(s+c)).search(n[c]))return;var u=a.match(n[d-1])[0].length;if(!(o&&u>r))return!!i(s,l,s+d-1,u)||void 0}}};else if(o)u=function(t,o,r){var i,s=e.getLine(t),a=[],l=0;for(n.lastIndex=0;i=n.exec(s);){var c=i[0].length;if(l=i.index,!c){if(l>=s.length)break;n.lastIndex=l+=1}if(i.index+c>o)break;a.push(i.index,c)}for(var d=a.length-1;d>=0;d-=2){var u=a[d-1];if(r(t,u,t,u+(c=a[d])))return!0}};else u=function(t,o,r){var i,s=e.getLine(t),a=o;for(n.lastIndex=o;i=n.exec(s);){var l=i[0].length;if(r(t,a=i.index,t,a+l))return!0;if(!l&&(n.lastIndex=a+=1,a>=s.length))return!1}};return{forEach:c}}}).call(s.prototype),t.Search=s})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){var o=e("../lib/keys"),r=e("../lib/useragent"),i=o.KEY_MODS;function s(e,t){this.platform=t||(r.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){s.call(this,e,t),this.$singleCommand=!1}a.prototype=s.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var o=this.commandKeyBinding;for(var r in o){var i=o[r];if(i==e)delete o[r];else if(Array.isArray(i)){var s=i.indexOf(e);-1!=s&&(i.splice(s,1),1==i.length&&(o[r]=i[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var o="";if(-1!=e.indexOf(" ")){var r=e.split(/\s+/);e=r.pop(),r.forEach((function(e){var t=this.parseKeys(e),n=i[t.hashId]+t.key;o+=(o?" ":"")+n,this._addCommandToBinding(o,"chainKeys")}),this),o+=" "}var s=this.parseKeys(e),a=i[s.hashId]+s.key;this._addCommandToBinding(o+a,t,n)}),this)},this._addCommandToBinding=function(t,n,o){var r,i=this.commandKeyBinding;if(n)if(!i[t]||this.$singleCommand)i[t]=n;else{Array.isArray(i[t])?-1!=(r=i[t].indexOf(n))&&i[t].splice(r,1):i[t]=[i[t]],"number"!=typeof o&&(o=e(n));var s=i[t];for(r=0;r<s.length;r++){if(e(s[r])>o)break}s.splice(r,0,n)}else delete i[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),r=o[n];if(o.FUNCTION_KEYS[r])n=o.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var i=0,s=t.length;s--;){var a=o.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;i|=a}return{key:n,hashId:i}},this.findKeyCommand=function(e,t){var n=i[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,o){if(!(o<0)){var r=i[t]+n,s=this.commandKeyBinding[r];return e.$keyChain&&(e.$keyChain+=" "+r,s=this.commandKeyBinding[e.$keyChain]||s),!s||"chainKeys"!=s&&"chainKeys"!=s[s.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||o>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-r.length-1)),{command:s}):(e.$keyChain=e.$keyChain||r,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(s.prototype),t.HashHandler=s,t.MultiHashHandler=a})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){var o=e("../lib/oop"),r=e("../keyboard/hash_handler").MultiHashHandler,i=e("../lib/event_emitter").EventEmitter,s=function(e,t){r.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};o.inherits(s,r),function(){o.implement(this,i),this.exec=function(e,t,n){if(Array.isArray(e)){for(var o=e.length;o--;)if(this.exec(e[o],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(e.isAvailable&&!e.isAvailable(t))return!1;var r={editor:t,command:e,args:n};return r.returnValue=this._emit("exec",r),this._signal("afterExec",r),!1!==r.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(s.prototype),t.CommandManager=s})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){var o=e("../lib/lang"),r=e("../config"),i=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){r.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:s("Alt-E","F4"),exec:function(e){r.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(e){r.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:s("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){r.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:s("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:s("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){r.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(o.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:s(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),r=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),c=n.row+1;c<=r.row+1;c++){var d=o.stringTrimLeft(o.stringTrimRight(e.session.doc.getLine(c)));0!==d.length&&(d=" "+d),l+=d}r.row+1<e.session.doc.getLength()-1&&(l+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new i(n.row,0,r.row+2,0),l),a>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+a)):(s=e.session.doc.getLine(n.row).length>s?s+1:s,e.selection.moveCursorTo(n.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,o=e.selection.rangeList.ranges,r=[];o.length<1&&(o=[e.selection.getRange()]);for(var s=0;s<o.length;s++)s==o.length-1&&(o[s].end.row===t&&o[s].end.column===n||r.push(new i(o[s].end.row,o[s].end.column,t,n))),0===s?0===o[s].start.row&&0===o[s].start.column||r.push(new i(0,0,o[s].start.row,o[s].start.column)):r.push(new i(o[s-1].end.row,o[s-1].end.column,o[s].start.row,o[s].start.column));e.exitMultiSelectMode(),e.clearSelection();for(s=0;s<r.length;s++)e.selection.addRange(r[s],!1)},readOnly:!0,scrollIntoView:"none"}]})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],(function(e,t,n){e("./lib/fixoldbrowsers");var o=e("./lib/oop"),r=e("./lib/dom"),i=e("./lib/lang"),s=e("./lib/useragent"),a=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,c=e("./mouse/fold_handler").FoldHandler,d=e("./keyboard/keybinding").KeyBinding,u=e("./edit_session").EditSession,h=e("./search").Search,p=e("./range").Range,f=e("./lib/event_emitter").EventEmitter,g=e("./commands/command_manager").CommandManager,m=e("./commands/default_commands").commands,v=e("./config"),b=e("./token_iterator").TokenIterator,y=function(e,t){var n=e.getContainerElement();this.container=n,this.renderer=e,this.id="editor"+ ++y.$uid,this.commands=new g(s.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new a(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new d(this),this.$blockScrolling=0,this.$search=(new h).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=i.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||new u("")),v.resetOptions(this),v._signal("editor",this)};y.$uid=0,function(){o.implement(this,f),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=i.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var t=this.curOp.command;t.name&&this.$blockScrolling>0&&this.$blockScrolling--;var n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var o=this.selection.getRange(),r=this.renderer.layerConfig;(o.start.row>=r.lastRow||o.end.row<=r.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,o=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var r=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),o=o&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(t.args)),this.mergeNextCommand=!0}else o=o&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(o=!1),o?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(o){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(o&&o.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var o=new p(n.row,n.column,n.row,n.column+1);else if(t.$mode.getMatching)o=t.$mode.getMatching(e.session);o&&(t.$bracketHighlight=t.addMarker(o,"ace_bracket","text"))}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),o=new b(e.session,n.row,n.column),r=o.getCurrentToken();if(!r||!/\b(?:tag-open|tag-name)/.test(r.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==r.type.indexOf("tag-open")||(r=o.stepForward())){var i=r.value,s=0,a=o.stepBackward();if("<"==a.value)do{a=r,(r=o.stepForward())&&r.value===i&&-1!==r.type.indexOf("tag-name")&&("<"===a.value?s++:"</"===a.value&&s--)}while(r&&s>=0);else{do{r=a,a=o.stepBackward(),r&&r.value===i&&-1!==r.type.indexOf("tag-name")&&("<"===a.value?s++:"</"===a.value&&s--)}while(a&&s<=0);o.stepForward()}if(!r)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);var l=o.getCurrentTokenRow(),c=o.getCurrentTokenColumn(),d=new p(l,c,l,c+r.value.length),u=t.$backMarkers[t.$tagHighlight];t.$tagHighlight&&null!=u&&0!==d.compareRange(u.range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),d&&!t.$tagHighlight&&(t.$tagHighlight=t.addMarker(d,"ace_bracket","text"))}}}),50)}},this.focus=function(){var e=this;setTimeout((function(){e.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(v.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new p(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),o=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",o)}var r=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(r),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column-1,o=t.end.column+1,r=e.getLine(t.start.row),i=r.length,s=r.substring(Math.max(n,0),Math.min(o,i));if(!(n>=0&&/^[\w\d]/.test(s)||o<=i&&/[\w\d]$/.test(s)))if(s=r.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(s))return this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:s})}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var n=t.split(/\r\n|\r|\n/),o=this.selection.rangeList.ranges;if(n.length>o.length||n.length<2||!n[1])return this.commands.exec("insertstring",this,t);for(var r=o.length;r--;){var i=o[r];i.isEmpty()||this.session.remove(i),this.session.insert(i.start,n[r])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,o=n.getMode(),r=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var i=o.transformAction(n.getState(r.row),"insertion",this,n,e);i&&(e!==i.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=i.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(s=new p.fromPoints(r,r)).end.column+=e.length,this.session.remove(s)}}else{var s=this.getSelectionRange();r=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(r.row);if(r.column>a.search(/\S|$/)){var l=a.substr(r.column).search(/\S|$/);n.doc.removeInLine(r.row,r.column,r.column+l)}}this.clearSelection();var c=r.column,d=n.getState(r.row),u=(a=n.getLine(r.row),o.checkOutdent(d,a,e));if(n.insert(r,e),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new p(r.row,c+i.selection[0],r.row,c+i.selection[1])):this.selection.setSelectionRange(new p(r.row+i.selection[0],i.selection[1],r.row+i.selection[2],i.selection[3]))),n.getDocument().isNewLine(e)){var h=o.getNextLineIndent(d,a.slice(0,r.column),n.getTabString());n.insert({row:r.row+1,column:0},h)}u&&o.autoOutdent(d,n,r.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,o=n.getState(t.start.row),r=n.getMode().transformAction(o,"deletion",this,n,t);if(0===t.end.column){var i=n.getTextRange(t);if("\n"==i[i.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}r&&(t=r)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,o,r=this.session.getLine(e.row);t<r.length?(n=r.charAt(t)+r.charAt(t-1),o=new p(e.row,t-1,e.row,t+1)):(n=r.charAt(t-1)+r.charAt(t-2),o=new p(e.row,t-2,e.row,t)),this.session.replace(o,n),this.session.selection.moveToPosition(o.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){d=this.$getSelectedRows();return void e.indentRows(d.first,d.last,"\t")}}var o=e.getLine(t.start.row),r=t.start,s=e.getTabSize(),a=e.documentToScreenColumn(r.row,r.column);if(this.session.getUseSoftTabs())var l=s-a%s,c=i.stringRepeat(" ",l);else{for(l=a%s;" "==o[t.start.column-1]&&l;)t.start.column--,l--;this.selection.setSelectionRange(t),c="\t"}return this.insert(c)}var d=this.$getSelectedRows();e.indentRows(d.first,d.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],o=e.first;o<=e.last;o++)n.push(t.getLine(o));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var r=new p(0,0,0,0);for(o=e.first;o<=e.last;o++){var i=t.getLine(o);r.start.row=o,r.end.row=o,r.end.column=i.length,t.replace(r,n[o-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var o=this.session.getLine(e);n.lastIndex<t;){var r=n.exec(o);if(r.index<=t&&r.index+r[0].length>=t)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,o=new p(t,n-1,t,n),r=this.session.getTextRange(o);if(!isNaN(parseFloat(r))&&isFinite(r)){var i=this.getNumberAt(t,n);if(i){var s=i.value.indexOf(".")>=0?i.start+i.value.indexOf(".")+1:i.end,a=i.start+i.value.length-s,l=parseFloat(i.value);l*=Math.pow(10,a),s!==i.end&&n<s?e*=Math.pow(10,i.end-n-1):e*=Math.pow(10,i.end-n),l+=e;var c=(l/=Math.pow(10,a)).toFixed(a),d=new p(t,i.start,t,i.end);this.session.replace(d,c),this.moveCursorTo(t,Math.max(i.start+1,n+c.length-i.value.length))}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),o=e.isBackwards();if(n.isEmpty()){var r=n.start.row;t.duplicateLines(r,r)}else{var i=o?n.start:n.end,s=t.insert(i,t.getTextRange(n),!1);n.start=i,n.end=s,e.setSelectionRange(n,o)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,o,r=this.selection;if(!r.inMultiSelectMode||this.inVirtualSelectionMode){var i=r.toOrientedRange();n=this.$getSelectedRows(i),o=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(o=0),i.moveBy(o,0),r.fromOrientedRange(i)}else{var s=r.rangeList.ranges;r.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=s.length,d=0;d<c;d++){var u=d;s[d].moveBy(a,0);for(var h=(n=this.$getSelectedRows(s[d])).first,p=n.last;++d<c;){l&&s[d].moveBy(l,0);var f=this.$getSelectedRows(s[d]);if(t&&f.first!=p)break;if(!t&&f.first>p+1)break;p=f.last}for(d--,a=this.session.$moveLines(h,p,t?0:e),t&&-1==e&&(u=d+1);u<=d;)s[u].moveBy(a,0),u++;t||(a=0),l+=a}r.fromOrientedRange(r.ranges[0]),r.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,o=this.renderer.layerConfig,r=e*Math.floor(o.height/o.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(r,0)})):!1===t&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection()),this.$blockScrolling--;var i=n.scrollTop;n.scrollBy(0,r*o.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(i)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,o){this.renderer.scrollToLine(e,t,n,o)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),o=new b(this.session,n.row,n.column),r=o.getCurrentToken(),i=r||o.stepForward();if(i){var s,a,l=!1,c={},d=n.column-i.start,u={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(i.value.match(/[{}()\[\]]/g)){for(;d<i.value.length&&!l;d++)if(u[i.value[d]])switch(a=u[i.value[d]]+"."+i.type.replace("rparen","lparen"),isNaN(c[a])&&(c[a]=0),i.value[d]){case"(":case"[":case"{":c[a]++;break;case")":case"]":case"}":c[a]--,-1===c[a]&&(s="bracket",l=!0)}}else i&&-1!==i.type.indexOf("tag-name")&&(isNaN(c[i.value])&&(c[i.value]=0),"<"===r.value?c[i.value]++:"</"===r.value&&c[i.value]--,-1===c[i.value]&&(s="tag",l=!0));l||(r=i,i=o.stepForward(),d=0)}while(i&&!l);if(s){var h,f;if("bracket"===s)(h=this.session.getBracketRange(n))||(f=(h=new p(o.getCurrentTokenRow(),o.getCurrentTokenColumn()+d-1,o.getCurrentTokenRow(),o.getCurrentTokenColumn()+d-1)).start,(t||f.row===n.row&&Math.abs(f.column-n.column)<2)&&(h=this.session.getBracketRange(f)));else if("tag"===s){if(!i||-1===i.type.indexOf("tag-name"))return;var g=i.value;if(0===(h=new p(o.getCurrentTokenRow(),o.getCurrentTokenColumn()-2,o.getCurrentTokenRow(),o.getCurrentTokenColumn()-2)).compare(n.row,n.column)){l=!1;do{i=r,(r=o.stepBackward())&&(-1!==r.type.indexOf("tag-close")&&h.setEnd(o.getCurrentTokenRow(),o.getCurrentTokenColumn()+1),i.value===g&&-1!==i.type.indexOf("tag-name")&&("<"===r.value?c[g]++:"</"===r.value&&c[g]--,0===c[g]&&(l=!0)))}while(r&&!l)}i&&i.type.indexOf("tag-name")&&(f=h.start).row==n.row&&Math.abs(f.column-n.column)<2&&(f=h.end)}(f=h&&h.cursor||f)&&(e?h&&t?this.selection.setRange(h):h&&h.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(f.row,f.column):this.selection.moveTo(f.row,f.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.$blockScrolling-=1,this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),o=0;return n?(this.$tryReplace(n,e)&&(o=1),null!==n&&(this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),o):o},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),o=0;if(!n.length)return o;this.$blockScrolling+=1;var r=this.getSelectionRange();this.selection.moveTo(0,0);for(var i=n.length-1;i>=0;--i)this.$tryReplace(n[i],e)&&o++;return this.selection.setSelectionRange(r),this.$blockScrolling-=1,o},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&o.mixin(t,e);var r=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),e=this.session.getTextRange(r)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:r});var i=this.$search.find(this.session);return t.preventScroll?i:i?(this.revealRange(i,n),i):(t.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,o=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var r=this.$scrollAnchor;r.style.cssText="position:absolute",this.container.insertBefore(r,this.container.firstChild);var i=this.on("changeSelection",(function(){o=!0})),s=this.renderer.on("beforeRender",(function(){o&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(o&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,i=e.$cursorLayer.$pixelPos,s=e.layerConfig,a=i.top-s.offset;null!=(o=i.top>=0&&a+t.top<0||!(i.top<s.height&&i.top+t.top+s.lineHeight>window.innerHeight)&&null)&&(r.style.top=a+"px",r.style.left=i.left+"px",r.style.height=s.lineHeight+"px",r.scrollIntoView(o)),o=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",i),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,r.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))}}.call(y.prototype),v.defineOptions(y.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=y})),ace.define("ace/undomanager",["require","exports","module"],(function(e,t,n){var o=function(){this.reset()};(function(){function e(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function t(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function n(e,t){for(var n=new Array(e.length),o=0;o<e.length;o++){for(var r=e[o],i={group:r.group,deltas:new Array(r.length)},s=0;s<r.deltas.length;s++){var a=r.deltas[s];i.deltas[s]=t(a)}n[o]=i}return n}this.execute=function(e){var t=e.args[0];this.$doc=e.args[1],e.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(e){var t=this.$undoStack.pop(),n=null;return t&&(n=this.$doc.undoChanges(t,e),this.$redoStack.push(t),this.dirtyCounter--),n},this.redo=function(e){var t=this.$redoStack.pop(),n=null;return t&&(n=this.$doc.redoChanges(this.$deserializeDeltas(t),e),this.$undoStack.push(t),this.dirtyCounter++),n},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(t){return n(t,e)},this.$deserializeDeltas=function(e){return n(e,t)}}).call(o.prototype),t.UndoManager=o})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],(function(e,t,n){var o=e("../lib/dom"),r=e("../lib/oop"),i=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,a=function(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){r.implement(this,s),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],o=n.row,r=this.$annotations[o];r||(r=this.$annotations[o]={text:[]});var s=n.text;s=s?i.escapeHTML(s):n.html||"",-1===r.text.indexOf(s)&&r.text.push(s);var a=n.type;"error"==a?r.className=" ace_error":"warning"==a&&" ace_error"!=r.className?r.className=" ace_warning":"info"!=a||r.className||(r.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var o=new Array(n+1);o.unshift(t,1),this.$annotations.splice.apply(this.$annotations,o)}}},this.update=function(e){for(var t=this.session,n=e.firstRow,r=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),i=t.getNextFoldLine(n),s=i?i.start.row:1/0,a=this.$showFoldWidgets&&t.foldWidgets,l=t.$breakpoints,c=t.$decorations,d=t.$firstLineNumber,u=0,h=t.gutterRenderer||this.$renderer,p=null,f=-1,g=n;;){if(g>s&&(g=i.end.row+1,s=(i=t.getNextFoldLine(g,i))?i.start.row:1/0),g>r){for(;this.$cells.length>f+1;)p=this.$cells.pop(),this.element.removeChild(p.element);break}(p=this.$cells[++f])||((p={element:null,textNode:null,foldWidget:null}).element=o.createElement("div"),p.textNode=document.createTextNode(""),p.element.appendChild(p.textNode),this.element.appendChild(p.element),this.$cells[f]=p);var m="ace_gutter-cell ";if(l[g]&&(m+=l[g]),c[g]&&(m+=c[g]),this.$annotations[g]&&(m+=this.$annotations[g].className),p.element.className!=m&&(p.element.className=m),(b=t.getRowLength(g)*e.lineHeight+"px")!=p.element.style.height&&(p.element.style.height=b),a){var v=a[g];null==v&&(v=a[g]=t.getFoldWidget(g))}if(v){p.foldWidget||(p.foldWidget=o.createElement("span"),p.element.appendChild(p.foldWidget));m="ace_fold-widget ace_"+v;"start"==v&&g==s&&g<i.end.row?m+=" ace_closed":m+=" ace_open",p.foldWidget.className!=m&&(p.foldWidget.className=m);var b=e.lineHeight+"px";p.foldWidget.style.height!=b&&(p.foldWidget.style.height=b)}else p.foldWidget&&(p.element.removeChild(p.foldWidget),p.foldWidget=null);var y=u=h?h.getText(t,g):g+d;y!==p.textNode.data&&(p.textNode.data=y),g++}this.element.style.height=e.minHeight+"px",(this.$fixedWidth||t.$useWrapMode)&&(u=t.getLength()+d);var C=h?h.getWidth(t,u,e):u.toString().length*e.characterWidth,w=this.$padding||this.$computePadding();(C+=w.left+w.right)===this.gutterWidth||isNaN(C)||(this.gutterWidth=C,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",C))},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?o.addCssClass(this.element,"ace_folding-enabled"):o.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=o.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(e.paddingLeft)+1||0,this.$padding.right=parseInt(e.paddingRight)||0,this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(a.prototype),t.Gutter=a})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){var o=e("../range").Range,r=e("../lib/dom"),i=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e){this.config=e;var t=[];for(var n in this.markers){var o=this.markers[n];if(o.range){var r=o.range.clipRows(e.firstRow,e.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),o.renderer){var i=this.$getTop(r.start.row,e),s=this.$padding+(this.session.$bidiHandler.isBidiRow(r.start.row)?this.session.$bidiHandler.getPosLeft(r.start.column):r.start.column*e.characterWidth);o.renderer(t,r,s,i,e)}else"fullLine"==o.type?this.drawFullLineMarker(t,r,o.clazz,e):"screenLine"==o.type?this.drawScreenLineMarker(t,r,o.clazz,e):r.isMultiLine()?"text"==o.type?this.drawTextMarker(t,r,o.clazz,e):this.drawMultiLineMarker(t,r,o.clazz,e):this.session.$bidiHandler.isBidiRow(r.start.row)?this.drawBidiSingleLineMarker(t,r,o.clazz+" ace_start ace_br15",e):this.drawSingleLineMarker(t,r,o.clazz+" ace_start ace_br15",e)}else o.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,r,i){for(var s=this.session,a=t.start.row,l=t.end.row,c=a,d=0,u=0,h=s.getScreenLastRowColumn(c),p=null,f=new o(c,t.start.column,c,u);c<=l;c++)f.start.row=f.end.row=c,f.start.column=c==a?t.start.column:s.getRowWrapIndent(c),f.end.column=h,d=u,u=h,h=c+1<l?s.getScreenLastRowColumn(c+1):c==l?0:t.end.column,p=n+(c==a?" ace_start":"")+" ace_br"+((c==a||c==a+1&&t.start.column?1:0)|(d<u?2:0)|(u>h?4:0)|(c==l?8:0)),this.session.$bidiHandler.isBidiRow(c)?this.drawBidiSingleLineMarker(e,f,p,r,c==l?0:1,i):this.drawSingleLineMarker(e,f,p,r,c==l?0:1,i)},this.drawMultiLineMarker=function(e,t,n,o,r){var i,s,a,l=this.$padding;(r=r||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((c=t.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",o,null,r)):(i=o.lineHeight,s=this.$getTop(t.start.row,o),a=l+t.start.column*o.characterWidth,e.push("<div class='",n," ace_br1 ace_start' style='","height:",i,"px;","right:0;","top:",s,"px;","left:",a,"px;",r,"'></div>"));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var c;(c=t.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",o,null,r)}else{var d=t.end.column*o.characterWidth;i=o.lineHeight,s=this.$getTop(t.end.row,o),e.push("<div class='",n," ace_br12' style='","height:",i,"px;","width:",d,"px;","top:",s,"px;","left:",l,"px;",r,"'></div>")}if(!((i=(t.end.row-t.start.row-1)*o.lineHeight)<=0)){s=this.$getTop(t.start.row+1,o);var u=(t.start.column?1:0)|(t.end.column?0:8);e.push("<div class='",n,u?" ace_br"+u:"","' style='","height:",i,"px;","right:0;","top:",s,"px;","left:",l,"px;",r,"'></div>")}},this.drawSingleLineMarker=function(e,t,n,o,r,i){var s=o.lineHeight,a=(t.end.column+(r||0)-t.start.column)*o.characterWidth,l=this.$getTop(t.start.row,o),c=this.$padding+t.start.column*o.characterWidth;e.push("<div class='",n,"' style='","height:",s,"px;","width:",a,"px;","top:",l,"px;","left:",c,"px;",i||"","'></div>")},this.drawBidiSingleLineMarker=function(e,t,n,o,r,i){var s=o.lineHeight,a=this.$getTop(t.start.row,o),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(t){e.push("<div class='",n,"' style='","height:",s,"px;","width:",t.width+(r||0),"px;","top:",a,"px;","left:",l+t.left,"px;",i||"","'></div>")}))},this.drawFullLineMarker=function(e,t,n,o,r){var i=this.$getTop(t.start.row,o),s=o.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,o)-i),e.push("<div class='",n,"' style='","height:",s,"px;","top:",i,"px;","left:0;right:0;",r||"","'></div>")},this.drawScreenLineMarker=function(e,t,n,o,r){var i=this.$getTop(t.start.row,o),s=o.lineHeight;e.push("<div class='",n,"' style='","height:",s,"px;","top:",i,"px;","left:0;right:0;",r||"","'></div>")}}).call(i.prototype),t.Marker=i})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var o=e("../lib/oop"),r=e("../lib/dom"),i=e("../lib/lang");e("../lib/useragent");var s=e("../lib/event_emitter").EventEmitter,a=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){o.implement(this,s),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)this.showInvisibles?t.push("<span class='ace_invisible ace_invisible_tab'>"+i.stringRepeat(this.TAB_CHAR,n)+"</span>"):t.push(i.stringRepeat(" ",n));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var o="ace_indent-guide",r="",s="";if(this.showInvisibles){o+=" ace_invisible",r=" ace_invisible_space",s=" ace_invisible_tab";var a=i.stringRepeat(this.SPACE_CHAR,this.tabSize),l=i.stringRepeat(this.TAB_CHAR,this.tabSize)}else l=a=i.stringRepeat(" ",this.tabSize);this.$tabStrings[" "]="<span class='"+o+r+"'>"+a+"</span>",this.$tabStrings["\t"]="<span class='"+o+s+"'>"+l+"</span>"}},this.updateLines=function(e,t,n){this.config.lastRow==e.lastRow&&this.config.firstRow==e.firstRow||this.scrollLines(e),this.config=e;for(var o=Math.max(t,e.firstRow),r=Math.min(n,e.lastRow),i=this.element.childNodes,s=0,a=e.firstRow;a<o;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(o)){o=l.start.row;break}a=l.end.row}s++}a=o;for(var l,c=(l=this.session.getNextFoldLine(a))?l.start.row:1/0;a>c&&(a=l.end.row+1,c=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(a>r);){var d=i[s++];if(d){var u=[];this.$renderLine(u,a,!this.$useLineGroups(),a==c&&l),d.style.height=e.lineHeight*this.session.getRowLength(a)+"px",d.innerHTML=u.join("")}a++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);var n=this.element;if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o--)n.removeChild(n.firstChild);if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)n.removeChild(n.lastChild);if(e.firstRow<t.firstRow){var r=this.$renderLinesFragment(e,e.firstRow,t.firstRow-1);n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r)}if(e.lastRow>t.lastRow){r=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);n.appendChild(r)}},this.$renderLinesFragment=function(e,t,n){for(var o=this.element.ownerDocument.createDocumentFragment(),i=t,s=this.session.getNextFoldLine(i),a=s?s.start.row:1/0;i>a&&(i=s.end.row+1,a=(s=this.session.getNextFoldLine(i,s))?s.start.row:1/0),!(i>n);){var l=r.createElement("div"),c=[];if(this.$renderLine(c,i,!1,i==a&&s),l.innerHTML=c.join(""),this.$useLineGroups())l.className="ace_line_group",o.appendChild(l),l.style.height=e.lineHeight*this.session.getRowLength(i)+"px";else for(;l.firstChild;)o.appendChild(l.firstChild);i++}return o},this.update=function(e){this.config=e;for(var t=[],n=e.firstRow,o=e.lastRow,r=n,i=this.session.getNextFoldLine(r),s=i?i.start.row:1/0;r>s&&(r=i.end.row+1,s=(i=this.session.getNextFoldLine(r,i))?i.start.row:1/0),!(r>o);)this.$useLineGroups()&&t.push("<div class='ace_line_group' style='height:",e.lineHeight*this.session.getRowLength(r),"px'>"),this.$renderLine(t,r,!1,r==s&&i),this.$useLineGroups()&&t.push("</div>"),r++;this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,o){var r=this,s=o.replace(/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,o,s,a){if(n)return r.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+i.stringRepeat(r.SPACE_CHAR,e.length)+"</span>":e;if("&"==e)return"&";if("<"==e)return"<";if(">"==e)return">";if("\t"==e){var l=r.session.getScreenTabSize(t+s);return t+=l-1,r.$tabStrings[l]}if(" "==e){var c=r.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",d=r.showInvisibles?r.SPACE_CHAR:"";return t+=1,"<span class='"+c+"' style='width:"+2*r.config.characterWidth+"px'>"+d+"</span>"}return o?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+r.SPACE_CHAR+"</span>":(t+=1,"<span class='ace_cjk' style='width:"+2*r.config.characterWidth+"px'>"+e+"</span>")}));if(this.$textToken[n.type])e.push(s);else{var a="ace_"+n.type.replace(/\./g," ace_"),l="";"fold"==n.type&&(l=" style='width:"+n.value.length*this.config.characterWidth+"px;' "),e.push("<span class='",a,"'",l,">",s,"</span>")}return t+o.length},this.renderIndentGuide=function(e,t,n){var o=t.search(this.$indentGuideRe);return o<=0||o>=n?t:" "==t[0]?(o-=o%this.tabSize,e.push(i.stringRepeat(this.$tabStrings[" "],o/this.tabSize)),t.substr(o)):"\t"==t[0]?(e.push(i.stringRepeat(this.$tabStrings["\t"],o)),t.substr(o)):t},this.$renderWrappedLine=function(e,t,n,o){for(var r=0,s=0,a=n[0],l=0,c=0;c<t.length;c++){var d=t[c],u=d.value;if(0==c&&this.displayIndentGuides){if(r=u.length,!(u=this.renderIndentGuide(e,u,a)))continue;r-=u.length}if(r+u.length<a)l=this.$renderToken(e,l,d,u),r+=u.length;else{for(;r+u.length>=a;)l=this.$renderToken(e,l,d,u.substring(0,a-r)),u=u.substring(a-r),r=a,o||e.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),e.push(i.stringRepeat(" ",n.indent)),l=0,a=n[++s]||Number.MAX_VALUE;0!=u.length&&(r+=u.length,l=this.$renderToken(e,l,d,u))}}},this.$renderSimpleLine=function(e,t){var n=0,o=t[0],r=o.value;this.displayIndentGuides&&(r=this.renderIndentGuide(e,r)),r&&(n=this.$renderToken(e,n,o,r));for(var i=1;i<t.length;i++)r=(o=t[i]).value,n=this.$renderToken(e,n,o,r)},this.$renderLine=function(e,t,n,o){if(o||0==o||(o=this.session.getFoldLine(t)),o)var r=this.$getFoldLineTokens(t,o);else r=this.session.getTokens(t);if(n||e.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(t)),"px'>"),r.length){var i=this.session.getRowSplitData(t);i&&i.length?this.$renderWrappedLine(e,r,i,n):this.$renderSimpleLine(e,r)}this.showInvisibles&&(o&&(t=o.end.row),e.push("<span class='ace_invisible ace_invisible_eol'>",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),n||e.push("</div>")},this.$getFoldLineTokens=function(e,t){var n=this.session,o=[];var r=n.getTokens(e);return t.walk((function(e,t,i,s,a){null!=e?o.push({type:"fold",value:e}):(a&&(r=n.getTokens(t)),r.length&&function(e,t,n){for(var r=0,i=0;i+e[r].value.length<t;)if(i+=e[r].value.length,++r==e.length)return;for(i!=t&&((s=e[r].value.substring(t-i)).length>n-t&&(s=s.substring(0,n-t)),o.push({type:e[r].type,value:s}),i=t+s.length,r+=1);i<n&&r<e.length;){var s;(s=e[r].value).length+i>n?o.push({type:e[r].type,value:s.substring(0,n-i)}):o.push(e[r]),i+=s.length,r+=1}}(r,s,i))}),t.end.row,this.session.getLine(t.end.row).length),o},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(a.prototype),t.Text=a})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){var o,r=e("../lib/dom"),i=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===o&&(o=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(o?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||o||(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,o=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var r=t.length;n<r;n++){var i=this.getPixelPosition(t[n].cursor,!0);if(!((i.top>e.height+e.offset||i.top<0)&&n>1)){var s=(this.cursors[o++]||this.addCursor()).style;this.drawCursor?this.drawCursor(s,i,e,t[n],this.session):(s.left=i.left+"px",s.top=i.top+"px",s.width=e.characterWidth+"px",s.height=e.lineHeight+"px")}}for(;this.cursors.length>o;)this.removeCursor();var a=this.session.getOverwrite();this.$setOverwrite(a),this.$pixelPos=i,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),t.Cursor=i})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){var o=e("./lib/oop"),r=e("./lib/dom"),i=e("./lib/event"),s=e("./lib/event_emitter").EventEmitter,a=32768,l=function(e){this.element=r.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=r.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,i.addListener(this.element,"scroll",this.onScroll.bind(this)),i.addListener(this.element,"mousedown",i.preventDefault)};(function(){o.implement(this,s),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(l.prototype);var c=function(e,t){l.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=r.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};o.inherits(c,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>a?(this.coeff=a/e,e=a):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var d=function(e,t){l.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};o.inherits(d,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(d.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=d,t.VScrollBar=c,t.HScrollBar=d})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){var o=e("./lib/event"),r=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;o.nextFrame((function(){var e;for(t.pending=!1;e=t.changes;)t.changes=0,t.onRender(e)}),this.window)}}}).call(r.prototype),t.RenderLoop=r})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var o=e("../lib/oop"),r=e("../lib/dom"),i=e("../lib/lang"),s=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,l=0,c=t.FontMetrics=function(e){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),l||this.$testFractionalRect(),this.$measureNode.innerHTML=i.stringRepeat("X",l),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){o.implement(this,a),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=r.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;l=t>0&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval((function(){e.checkForSizeChanges()}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===l){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(n){e={width:0,height:0}}var t={height:e.height,width:e.width/l}}else t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/l};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.innerHTML=i.stringRepeat(e,l),this.$main.getBoundingClientRect().width/l},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(c.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],(function(e,t,n){var o=e("./lib/oop"),r=e("./lib/dom"),i=e("./config"),s=e("./lib/useragent"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,d=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,p=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter;r.importCssString('.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}',"ace_editor.css");var m=function(e,t){var n=this;this.container=e||r.createElement("div"),this.$keepTextAreaAtCursor=!s.isOldIE,r.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var o=this.$textLayer=new c(this.content);this.canvas=o.element,this.$markerFront=new l(this.content),this.$cursorLayer=new d(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),i.resetOptions(this),i._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,o.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,o){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var r=this.container;o||(o=r.clientHeight||r.scrollHeight),n||(n=r.clientWidth||r.scrollWidth);var i=this.$updateCachedSize(e,t,n,o);if(!this.$size.scrollerHeight||!n&&!o)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(i|this.$changes,!0):this.$loop.schedule(i|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,o){o-=this.$extraHeight||0;var r=0,i=this.$size,s={width:i.width,height:i.height,scrollerHeight:i.scrollerHeight,scrollerWidth:i.scrollerWidth};return o&&(e||i.height!=o)&&(i.height=o,r|=this.CHANGE_SIZE,i.scrollerHeight=i.height,this.$horizScroll&&(i.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(e||i.width!=n)&&(r|=this.CHANGE_SIZE,i.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",i.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(r|=this.CHANGE_FULL)),i.$dirty=!n||!o,r&&this._signal("resize",s),r},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var n=this.session.selection.getCursor();n.column=0,e=this.$cursorLayer.getPixelPosition(n,!0),t*=this.session.getRowLength(n.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=r.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,n=this.$cursorLayer.$pixelPos.left;t-=e.offset;var o=this.textarea.style,r=this.lineHeight;if(t<0||t>e.height-r)o.top=o.left="0";else{var i=this.characterWidth;if(this.$composition){var s=this.textarea.value.replace(/^\x01+/,"");i*=this.session.$getStringScreenWidth(s)[0]+2,r+=2}(n-=this.scrollLeft)>this.$size.scrollerWidth-i&&(n=this.$size.scrollerWidth-i),n+=this.gutterWidth,o.height=r+"px",o.width=i+"px",o.left=Math.min(n,this.$size.scrollerWidth-i)+"px",o.top=Math.min(t,this.$size.height-r)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,o){var r=this.scrollMargin;r.top=0|e,r.bottom=0|t,r.right=0|o,r.left=0|n,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var o=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;o>0&&(this.scrollTop=o,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-n.offset+"px",this.content.style.marginTop=-n.offset+"px",this.content.style.width=n.width+2*this.$padding+"px",this.content.style.height=n.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var o=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||o!=this.$vScroll){o!=this.$vScroll&&(this.$vScroll=o,this.scrollBarV.setVisible(o));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,o=this.session.getScreenLength()*this.lineHeight,r=this.$getLongestLine(),i=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-r-2*this.$padding<0),s=this.$horizScroll!==i;s&&(this.$horizScroll=i,this.scrollBarH.setVisible(i));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=this.scrollTop%this.lineHeight,c=t.scrollerHeight+this.lineHeight,d=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;o+=d;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,o-t.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,r+2*this.$padding-t.scrollerWidth+u.right)));var h=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-o+d<0||this.scrollTop>u.top),p=a!==h;p&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var f,g,m=Math.ceil(c/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-l)/this.lineHeight)),b=v+m,y=this.lineHeight;v=e.screenToDocumentRow(v,0);var C=e.getFoldLine(v);C&&(v=C.start.row),f=e.documentToScreenRow(v,0),g=e.getRowLength(v)*y,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(b)*y+g,l=this.scrollTop-f*y;var w=0;return this.layerConfig.width!=r&&(w=this.CHANGE_H_SCROLL),(s||p)&&(w=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),p&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:v,firstRowScreen:f,lastRow:b,lineHeight:y,characterWidth:this.characterWidth,minHeight:c,maxHeight:o,offset:l,gutterOffset:y?Math.max(0,Math.ceil((l+t.height-t.scrollerHeight)/y)):0,height:this.$size.scrollerHeight},w},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var o=this.$cursorLayer.getPixelPosition(e),r=o.left,i=o.top,s=n&&n.top||0,a=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+s>i?(t&&l+s>i+this.lineHeight&&(i-=t*this.$size.scrollerHeight),0===i&&(i=-this.scrollMargin.top),this.session.setScrollTop(i)):l+this.$size.scrollerHeight-a<i+this.lineHeight&&(t&&l+this.$size.scrollerHeight-a<i-this.lineHeight&&(i+=t*this.$size.scrollerHeight),this.session.setScrollTop(i+this.lineHeight-this.$size.scrollerHeight));var c=this.scrollLeft;c>r?(r<this.$padding+2*this.layerConfig.characterWidth&&(r=-this.scrollMargin.left),this.session.setScrollLeft(r)):c+this.$size.scrollerWidth<r+this.characterWidth?this.session.setScrollLeft(Math.round(r+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&r-c<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),o=this.$size.scrollerHeight-this.lineHeight,r=n.top-o*(t||0);return this.session.setScrollTop(r),r},this.STEPS=8,this.$calcSteps=function(e,t){var n,o,r=0,i=this.STEPS,s=[];for(r=0;r<i;++r)s.push((n=r/this.STEPS,o=e,(t-e)*(Math.pow(n-1,3)+1)+o));return s},this.scrollToLine=function(e,t,n,o){var r=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(r-=this.$size.scrollerHeight/2);var i=this.scrollTop;this.session.setScrollTop(r),!1!==n&&this.animateScrolling(i,o)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var o=this;if(e!=n){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(e=r[0])==n)return}var i=o.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:i},clearInterval(this.$timer),o.session.setScrollTop(i.shift()),o.session.$scrollTop=n,this.$timer=setInterval((function(){i.length?(o.session.setScrollTop(i.shift()),o.session.$scrollTop=n):null!=n?(o.session.$scrollTop=-1,o.session.setScrollTop(n),n=null):(o.$timer=clearInterval(o.$timer),o.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),o=e+this.scrollLeft-n.left-this.$padding,r=o/this.characterWidth,i=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=Math.round(r);return{row:i,column:s,side:r-s>0?1:-1,offsetX:o}},this.screenToTextCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),o=e+this.scrollLeft-n.left-this.$padding,r=Math.round(o/this.characterWidth),i=(t+this.scrollTop-n.top)/this.lineHeight;return this.session.screenToDocumentPosition(i,Math.max(r,0),o)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),o=this.session.documentToScreenPosition(e,t),r=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,e)?this.session.$bidiHandler.getPosLeft(o.column):Math.round(o.column*this.characterWidth)),i=o.row*this.lineHeight;return{pageX:n.left+r-this.scrollLeft,pageY:n.top+i-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(r.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)s(e);else{var o=e||this.$options.theme.initialValue;i.loadModule(["theme",o],s)}function s(o){if(n.$themeId!=e)return t&&t();if(!o||!o.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.importCssString(o.cssText,o.cssClass,n.container.ownerDocument),n.theme&&r.removeCssClass(n.container,n.theme.cssClass);var i="padding"in o?o.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&i!=n.$padding&&n.setPadding(i),n.$theme=o.cssClass,n.theme=o,r.addCssClass(n.container,o.cssClass),r.setCssClass(n.container,"ace_dark",o.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:o}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){r.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){r.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(m.prototype),i.defineOptions(m.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=r.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=m})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){var o=e("../lib/oop"),r=e("../lib/net"),i=e("../lib/event_emitter").EventEmitter,s=e("../config");function a(e,t){var n=function(e,t){var n=t.src;r.qualifyURL(e);try{return new Blob([n],{type:"application/javascript"})}catch(i){var o=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return o.append(n),o.getBlob("application/javascript")}}(e,t),o=(window.URL||window.webkitURL).createObjectURL(n);return new Worker(o)}var l=function(t,n,o,r,i){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl)r=r||s.moduleUrl(n.id,"worker");else{var l=this.$normalizePath;r=r||l(e.toUrl("ace/worker/worker.js",null,"_"));var c={};t.forEach((function(t){c[t]=l(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}this.$worker=a(r,n),i&&this.send("importScripts",i),this.$worker.postMessage({init:!0,tlns:c,module:n.id,classname:o}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){o.implement(this,i),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return r.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var o=this.callbackId++;this.callbacks[o]=n,t.push(o)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){console.error(n.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);var c=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var o=null,r=!1,a=Object.create(i),l=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){l.messageBuffer.push(e),o&&(r?setTimeout(c):c())},this.setEmitSync=function(e){r=e};var c=function(){var e=l.messageBuffer.shift();e.command?o[e.command].apply(o,e.args):e.event&&a._signal(e.event,e.data)};a.postMessage=function(e){l.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],(function(e){for(o=new e[n](a);l.messageBuffer.length;)c()}))};c.prototype=l.prototype,t.UIWorkerClient=c,t.WorkerClient=l,t.createWorker=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){var o=e("./range").Range,r=e("./lib/event_emitter").EventEmitter,i=e("./lib/oop"),s=function(e,t,n,o,r,i){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=r,this.othersClass=i,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=o,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){i.implement(this,r),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=n.addMarker(new o(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var o=t.createAnchor(n.row,n.column);o.$insertRight=!0,o.detach(),e.others.push(o)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new o(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,r=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,i=t.start.column-this.pos.column;if(this.updateAnchors(e),r&&(this.length+=n),r&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;s>=0;s--){var a={row:(l=this.others[s]).row,column:l.column+i};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;s>=0;s--){var l;a={row:(l=this.others[s]).row,column:l.column+i};this.doc.remove(new o(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,r){t.removeMarker(n.markerId),n.markerId=t.addMarker(new o(n.row,n.column,n.row,n.column+e.length),r,null,!1)};n(this.pos,this.mainClass);for(var r=this.others.length;r--;)n(this.others[r],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(s.prototype),t.PlaceHolder=s})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var o=e("../lib/event"),r=e("../lib/useragent");function i(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,l=e.getAccelKey(),c=e.getButton();if(a&&r.isMac&&(c=t.button),e.editor.inMultiSelectMode&&2==c)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||l){if(0===c){var d,u=e.editor,h=u.selection,p=u.inMultiSelectMode,f=e.getDocumentPosition(),g=h.getCursor(),m=e.inSelection()||h.isEmpty()&&i(f,g),v=e.x,b=e.y,y=u.session,C=u.renderer.pixelToScreenCoordinates(v,b),w=C;if(u.$mouseHandler.$enableJumpToDef)a&&n||l&&n?d=s?"block":"add":n&&u.$blockSelectEnabled&&(d="block");else if(l&&!n){if(d="add",!p&&s)return}else n&&u.$blockSelectEnabled&&(d="block");if(d&&r.isMac&&t.ctrlKey&&u.$mouseHandler.cancelContextMenu(),"add"==d){if(!p&&m)return;if(!p){var x=h.toOrientedRange();u.addSelectionMarker(x)}var S=h.rangeList.rangeAtPoint(f);u.$blockScrolling++,u.inVirtualSelectionMode=!0,s&&(S=null,x=h.ranges[0]||x,u.removeSelectionMarker(x)),u.once("mouseup",(function(){var e=h.toOrientedRange();S&&e.isEmpty()&&i(S.cursor,e.cursor)?h.substractPoint(e.cursor):(s?h.substractPoint(x.cursor):x&&(u.removeSelectionMarker(x),h.addRange(x)),h.addRange(e)),u.$blockScrolling--,u.inVirtualSelectionMode=!1}))}else if("block"==d){var A;e.stop(),u.inVirtualSelectionMode=!0;var k=[];u.$blockScrolling++,p&&!l?h.toSingleRange():!p&&l&&(A=h.toOrientedRange(),u.addSelectionMarker(A)),s?C=y.documentToScreenPosition(h.lead):h.moveToPosition(f),u.$blockScrolling--,w={row:-1,column:-1};var F=function(){var e=u.renderer.pixelToScreenCoordinates(v,b),t=y.screenToDocumentPosition(e.row,e.column,e.offsetX);i(w,e)&&i(t,h.lead)||(w=e,u.$blockScrolling++,u.selection.moveToPosition(t),u.renderer.scrollCursorIntoView(),u.removeSelectionMarkers(k),k=h.rectangularRangeBlock(w,C),u.$mouseHandler.$clickSelection&&1==k.length&&k[0].isEmpty()&&(k[0]=u.$mouseHandler.$clickSelection.clone()),k.forEach(u.addSelectionMarker,u),u.updateSelectionMarkers(),u.$blockScrolling--)};o.capture(u.container,(function(e){v=e.clientX,b=e.clientY}),(function(e){clearInterval(E),u.removeSelectionMarkers(k),k.length||(k=[h.toOrientedRange()]),u.$blockScrolling++,A&&(u.removeSelectionMarker(A),h.toSingleRange(A));for(var t=0;t<k.length;t++)h.addRange(k[t]);u.inVirtualSelectionMode=!1,u.$mouseHandler.$clickSelection=null,u.$blockScrolling--}));var E=setInterval((function(){F()}),20);return e.preventDefault()}}}else 0===c&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var o=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new o(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var o=e("./range_list").RangeList,r=e("./range").Range,i=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var d=new(0,e("./search").Search);var u=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(u.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var o=this.rangeList.add(e);return this.$onAddRange(e),o.length&&this.$onRemoveRange(o),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var o=this.ranges.indexOf(e[n]);this.ranges.splice(o,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new o,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var o=this.isBackwards(),i=n.start.row,s=n.end.row;if(i==s){if(o)var a=n.end,l=n.start;else a=n.start,l=n.end;return this.addRange(r.fromPoints(l,l)),void this.addRange(r.fromPoints(a,a))}var c=[],d=this.getLineRange(i,!0);d.start.column=n.start.column,c.push(d);for(var u=i+1;u<s;u++)c.push(this.getLineRange(u,!0));(d=this.getLineRange(s,!0)).end.column=n.end.column,c.push(d),c.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=r.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var o=this.session.documentToScreenPosition(this.selectionLead),i=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(o,i).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var o=[],i=e.column<t.column;if(i)var s=e.column,a=t.column,l=e.offsetX,c=t.offsetX;else s=t.column,a=e.column,l=t.offsetX,c=e.offsetX;var d,u,h=e.row<t.row;if(h)var p=e.row,f=t.row;else p=t.row,f=e.row;s<0&&(s=0),p<0&&(p=0),p==f&&(n=!0);for(var g=p;g<=f;g++){var m=r.fromPoints(this.session.screenToDocumentPosition(g,s,l),this.session.screenToDocumentPosition(g,a,c));if(m.isEmpty()){if(v&&(d=m.end,u=v,d.row==u.row&&d.column==u.column))break;var v=m.end}m.cursor=i?m.start:m.end,o.push(m)}if(h&&o.reverse(),!n){for(var b=o.length-1;o[b].isEmpty()&&b>0;)b--;if(b>0)for(var y=0;o[y].isEmpty();)y++;for(var C=b;C>=y;C--)o[C].isEmpty()&&o.splice(C,1)}return o}}.call(i.prototype);var h=e("./editor").Editor;function p(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(c.defaultCommands),function(e){var t=e.textInput.getElement(),n=!1;function o(t){n&&(e.renderer.setMouseCursor(""),n=!1)}a.addListener(t,"keydown",(function(t){var r=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&r?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&o()})),a.addListener(t,"keyup",o),a.addListener(t,"blur",o)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var o=e[n];if(o.marker){this.session.removeMarker(o.marker);var r=t.indexOf(o);-1!=r&&t.splice(r,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?o=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?o=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),o=t.exec(n,e.args||{})):o=t.multiSelectAction(n,e.args||{});else{var o=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return o}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var o,r=n&&n.keepOrder,s=1==n||n&&n.$byLines,a=this.session,l=this.selection,c=l.rangeList,d=(r?l:c).ranges;if(!d.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var u=l._eventRegistry;l._eventRegistry={};var h=new i(a);this.inVirtualSelectionMode=!0;for(var p=d.length;p--;){if(s)for(;p>0&&d[p].start.row==d[p-1].end.row;)p--;h.fromOrientedRange(d[p]),h.index=p,this.selection=a.selection=h;var f=e.exec?e.exec(this,t||{}):e(this,t||{});o||void 0===f||(o=f),h.toOrientedRange(d[p])}h.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=u,l.mergeOverlappingRanges();var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),o}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],o=0;o<t.length;o++)n.push(this.session.getTextRange(t[o]));var r=this.session.getDocument().getNewLineCharacter();(e=n.join(r)).length==(n.length-1)*r.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var o=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;o.row==t.row&&this.session.$clipPositionToDocument(o.row,o.column).column==t.column||this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,null==t.needle){var o=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(o)}this.$search.set(t);var r=this.$search.findAll(this.session);if(!r.length)return 0;this.$blockScrolling+=1;var i=this.multiSelect;n||i.toSingleRange(r[0]);for(var s=r.length;s--;)i.addRange(r[s],!0);return o&&i.rangeList.rangeAtPoint(o.start)&&i.addRange(o,!0),this.$blockScrolling-=1,r.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),o=n.cursor==n.end,i=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(i.column=this.selection.$desiredColumn);var s,a=this.session.screenToDocumentPosition(i.row+e,i.column);if(n.isEmpty())c=a;else var l=this.session.documentToScreenPosition(o?n.end:n.start),c=this.session.screenToDocumentPosition(l.row+e,l.column);o?(s=r.fromPoints(a,c)).cursor=s.start:(s=r.fromPoints(c,a)).cursor=s.end;if(s.desiredColumn=i.column,this.selection.inMultiSelectMode){if(t)var d=n.cursor}else this.selection.addRange(n);this.selection.addRange(s),d&&this.selection.substractPoint(d)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,o=n.ranges,r=o.length;r--;){if((a=o[r]).isEmpty()){var i=t.getWordRange(a.start.row,a.start.column);a.start.row=i.start.row,a.start.column=i.start.column,a.end.row=i.end.row,a.end.column=i.end.column}}n.mergeOverlappingRanges();var s=[];for(r=o.length;r--;){var a=o[r];s.unshift(t.getTextRange(a))}e<0?s.unshift(s.pop()):s.push(s.shift());for(r=o.length;r--;){i=(a=o[r]).clone();t.replace(a,s[r]),a.start.row=i.start.row,a.start.column=i.start.column}},this.selectMore=function(e,t,n){var o=this.session,r=o.multiSelect.toOrientedRange();if(!r.isEmpty()||((r=o.getWordRange(r.start.row,r.start.column)).cursor=-1==e?r.start:r.end,this.multiSelect.addRange(r),!n)){var i=o.getTextRange(r),s=function(e,t,n){return d.$options.wrap=!0,d.$options.needle=t,d.$options.backwards=-1==n,d.find(e)}(o,i,e);s&&(s.cursor=-1==e?s.start:s.end,this.$blockScrolling+=1,this.session.unfold(s),this.multiSelect.addRange(s),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(r.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,o=-1,i=n.filter((function(e){if(e.cursor.row==o)return!0;o=e.cursor.row}));if(n.length&&i.length!=n.length-1){i.forEach((function(e){t.substractPoint(e.cursor)}));var s=0,a=1/0,c=n.map((function(t){var n=t.cursor,o=e.getLine(n.row).substr(n.column).search(/\S/g);return-1==o&&(o=0),n.column>s&&(s=n.column),o<a&&(a=o),o}));n.forEach((function(t,n){var o=t.cursor,i=s-o.column,d=c[n]-a;i>d?e.insert(o,l.stringRepeat(" ",i-d)):e.remove(new r(o.row,o.column,o.row,o.column-i+d)),t.start.column=t.end.column=s,t.start.row=t.end.row=o.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var d=this.selection.getRange(),u=d.start.row,h=d.end.row,p=u==h;if(p){var f,g=this.session.getLength();do{f=this.session.getLine(h)}while(/[=:]/.test(f)&&++h<g);do{f=this.session.getLine(u)}while(/[=:]/.test(f)&&--u>0);u<0&&(u=0),h>=g&&(h=g-1)}var m=this.session.removeFullLines(u,h);m=this.$reAlignText(m,p),this.session.insert({row:u,column:0},m.join("\n")+"\n"),p||(d.start.column=0,d.end.column=m[m.length-1].length),this.selection.setRange(d)}},this.$reAlignText=function(e,t){var n,o,r,i=!0,s=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,o=t[2].length,r=t[3].length,t):(n+o+r!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(i=!1),n>t[1].length&&(n=t[1].length),o<t[2].length&&(o=t[2].length),r>t[3].length&&(r=t[3].length),t):[e]})).map(t?c:i?s?function(e){return e[2]?a(n+o-e[2].length)+e[2]+a(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:c:function(e){return e[2]?a(n)+e[2]+a(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?a(n)+e[2]+a(o-e[2].length+r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(h.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=p,e("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(e){p(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){var o=e("../../range").Range,r=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var o=e.getLine(n);return this.foldingStartMarker.test(o)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var r=/\S/,i=e.getLine(t),s=i.search(r);if(-1!=s){for(var a=n||i.length,l=e.getLength(),c=t,d=t;++t<l;){var u=e.getLine(t).search(r);if(-1!=u){if(u<=s)break;d=t}}if(d>c){var h=e.getLine(d).length;return new o(c,a,d,h)}}},this.openingBracketBlock=function(e,t,n,r,i){var s={row:n,column:r+1},a=e.$findClosingBracket(t,s,i);if(a){var l=e.foldWidgets[a.row];return null==l&&(l=e.getFoldWidget(a.row)),"start"==l&&a.row>s.row&&(a.row--,a.column=e.getLine(a.row).length),o.fromPoints(s,a)}},this.closingBracketBlock=function(e,t,n,r,i){var s={row:n,column:r},a=e.$findOpeningBracket(t,s);if(a)return a.column++,s.column--,o.fromPoints(a,s)}}).call(r.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(e,t,n){e("./lib/oop");var o=e("./lib/dom");function r(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}e("./range").Range,function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var o=e.data,r=o.start.row,i=o.end.row,s="add"==e.action,a=r+1;a<i;a++)n[a]&&(n[a].hidden=s);n[i]&&(s?n[r]?n[i].hidden=s:n[r]=n[i]:(n[r]==n[i]&&(n[r]=void 0),n[i].hidden=s))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,o=e.end.row-n;if(0===o);else if("remove"==e.action){t.splice(n+1,o).forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var r=new Array(o);r.unshift(n,0),t.splice.apply(t,r),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e.session=this.session;var n=this.editor.renderer;e.html&&!e.el&&(e.el=o.createElement("div"),e.el.innerHTML=e.html),e.el&&(o.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,n.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/n.layerConfig.lineHeight);var r=this.session.getFoldAt(e.row,0);if(e.$fold=r,r){var i=this.session.lineWidgets;e.row!=r.end.row||i[r.start.row]?e.hidden=!0:i[r.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],o=[];n;)o.push(n),n=n.$oldWidget;return o},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,o=t.layerConfig;if(n&&n.length){for(var r=1/0,i=0;i<n.length;i++){var s=n[i];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/o.characterWidth));var a=s.h/o.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<r&&(r=s.row))}}r!=1/0&&(this.session._emit("changeFold",{data:{start:{row:r}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,o=this.session.lineWidgets;if(o){for(var r=Math.min(this.firstRow,n.firstRow),i=Math.max(this.lastRow,n.lastRow,o.length);r>0&&!o[r];)r--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=r;s<=i;s++){var a=o[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-n.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}.call(r.prototype),t.LineWidgets=r})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){var o=e("../line_widgets").LineWidgets,r=e("../lib/dom"),i=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new o(n),n.widgetManager.attach(e));var s=e.getCursorPosition(),a=s.row,l=n.widgetManager.getWidgetsAtRow(a).filter((function(e){return"errorMarker"==e.type}))[0];l?l.destroy():a-=t;var c,d=function(e,t,n){var o=e.getAnnotations().sort(i.comparePoints);if(o.length){var r=function(e,t,n){for(var o=0,r=e.length-1;o<=r;){var i=o+r>>1,s=n(t,e[i]);if(s>0)o=i+1;else{if(!(s<0))return i;r=i-1}}return-(o+1)}(o,{row:t,column:-1},i.comparePoints);r<0&&(r=-r-1),r>=o.length?r=n>0?0:o.length-1:0===r&&n<0&&(r=o.length-1);var s=o[r];if(s&&n){if(s.row===t){do{s=o[r+=n]}while(s&&s.row===t);if(!s)return o.slice()}var a=[];t=s.row;do{a[n<0?"unshift":"push"](s),s=o[r+=n]}while(s&&s.row==t);return a.length&&a}}}(n,a,t);if(d){var u=d[0];s.column=(u.pos&&"number"!=typeof u.column?u.pos.sc:u.column)||0,s.row=u.row,c=e.renderer.$gutterLayer.$annotations[s.row]}else{if(l)return;c={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(s.row),e.selection.moveToPosition(s);var h={row:s.row,fixedWidth:!0,coverGutter:!0,el:r.createElement("div"),type:"errorMarker"},p=h.el.appendChild(r.createElement("div")),f=h.el.appendChild(r.createElement("div"));f.className="error_widget_arrow "+c.className;var g=e.renderer.$cursorLayer.getPixelPosition(s).left;f.style.left=g+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",p.className="error_widget "+c.className,p.innerHTML=c.text.join("<br>"),p.appendChild(r.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},r.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,n){e("./lib/fixoldbrowsers");var o=e("./lib/dom"),r=e("./lib/event"),i=e("./editor").Editor,s=e("./edit_session").EditSession,a=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,t.edit=function(e){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof i)return e.env.editor;var s="";if(e&&/input|textarea/i.test(e.tagName)){var a=e;s=a.value,e=o.createElement("pre"),a.parentNode.replaceChild(e,a)}else e&&(s=o.getInnerText(e),e.innerHTML="");var c=t.createEditSession(s),d=new i(new l(e));d.setSession(c);var u={document:c,editor:d,onResize:d.resize.bind(d,null)};return a&&(u.textarea=a),r.addListener(window,"resize",u.onResize),d.on("destroy",(function(){r.removeListener(window,"resize",u.onResize),u.editor.container.env=null})),d.container.env=d.env=u,d},t.createEditSession=function(e,t){var n=new s(e,t);return n.setUndoManager(new a),n},t.EditSession=s,t.UndoManager=a,t.version="1.2.9"})),ace.acequire(["ace/ace"],(function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}));var AB=window.ace.acequire("ace/ace");const kB={name:"BAceEditor",props:{modelValue:String,lang:{type:String,default:"json"},theme:{type:String,default:"chrome"},height:{type:String,default:"350"},width:{type:String,default:"100%"},fontSize:{type:Number,default:12},options:Object,readonly:Boolean,wrap:{type:Boolean,default:!1},snippets:{type:Boolean,default:!0},styles:{type:Object}},data:()=>({editor:null,contentBackup:""}),emits:["blur","init","update:modelValue","change"],computed:{wrapStyles(){return((e,i)=>{for(var s in i||(i={}))n.call(i,s)&&r(e,s,i[s]);if(t)for(var s of t(i))o.call(i,s)&&r(e,s,i[s]);return e})({width:this.width?this.px(this.width):"100%",height:this.height?this.px(this.height):"100%",border:"1px solid #e8e8e8"},this.styles)}},methods:{px:e=>/^\d*$/.test(e)?`${e}px`:e,getValue(){return this.editor.getValue()},handleBlur(e){this.$emit("blur",e)}},watch:{modelValue(e){this.contentBackup!==e&&(this.editor.session.setValue(e,1),this.contentBackup=e)},theme(e){this.editor.setTheme("ace/theme/"+e)},lang(e){this.editor.getSession().setMode("ace/mode/"+e)},options(e){this.editor.setOptions(e)},fontSize(e){this.editor.setFontSize(e)},readonly(e){this.editor.setReadOnly(e)},height(){this.$nextTick((()=>{this.editor.resize()}))},width(){this.$nextTick((()=>{this.editor.resize()}))}},beforeUnmount(){this.editor.destroy(),this.editor.container.remove()},mounted(){let e=this,t=this.lang,n=this.theme,o=e.editor=AB.edit(this.$el);o.getSession().setMode("ace/mode/"+t),o.setTheme("ace/theme/"+n),o.$blockScrolling=1/0,o.setFontSize(this.fontSize),o.setReadOnly(this.readonly),o.getSession().setUseWrapMode(this.wrap),o.setShowPrintMargin(!1),o.getSession().setTabSize(2),o.setOptions({enableBasicAutocompletion:this.snippets,enableSnippets:this.snippets,enableLiveAutocompletion:this.snippets}),this.$emit("init",o),this.modelValue&&(o.setValue(this.modelValue,1),o.gotoLine(0,0,!1)),this.contentBackup=this.modelValue,o.on("change",(function(){let t=o.getValue();e.$emit("update:modelValue",t),e.$emit("change",t),e.contentBackup=t})),o.on("blur",this.handleBlur),e.options&&o.setOptions(e.options)}};kB.render=function(e,t,n,o,r,i){return po(),vo("div",{class:"bin-editor-next",style:l(i.wrapStyles)},null,4)},ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(e,t,n){var o=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,i=e("./lib/lang"),s=e("./range").Range,a=e("./anchor").Anchor,l=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,d=s.comparePoints,u=function(){this.snippetMap={},this.snippetNameMap={}};(function(){o.implement(this,r),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return u.$tokenizer=new c({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var o=e[1];return"}"==o&&n.length||-1!="`$\\".indexOf(o)?e=o:n.inFormatString&&("n"==o||"t"==o?e="\n":-1!="ulULE".indexOf(o)&&(e={changeCase:o,local:o>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,o){var r=e(t.substr(1),0,o);return o.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var o=n[0];return o.fmtString=e,e=this.splitRegex.exec(e),o.guard=e[1],o.fmt=e[2],o.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),u.prototype.getTokenizer=function(){return u.$tokenizer},u.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var o=e.session;switch(t){case"CURRENT_WORD":var r=o.getWordRange();case"SELECTION":case"SELECTED_TEXT":return o.getTextRange(r);case"CURRENT_LINE":return o.getLine(e.getCursorPosition().row);case"PREV_LINE":return o.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return o.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return o.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(e,t,n){var o=t.flag||"",r=t.guard;r=new RegExp(r,o.replace(/[^gi]/,""));var i=this.tokenizeTmSnippet(t.fmt,"formatString"),s=this,a=e.replace(r,(function(){s.variables.__=arguments;for(var e=s.resolveVariables(i,n),t="E",o=0;o<e.length;o++){var r=e[o];if("object"==typeof r)if(e[o]="",r.changeCase&&r.local){var a=e[o+1];a&&"string"==typeof a&&("u"==r.changeCase?e[o]=a[0].toUpperCase():e[o]=a[0].toLowerCase(),e[o+1]=a.substr(1))}else r.changeCase&&(t=r.changeCase);else"U"==t?e[o]=r.toUpperCase():"L"==t&&(e[o]=r.toLowerCase())}return e.join("")}));return this.variables.__=null,a},this.resolveVariables=function(e,t){for(var n=[],o=0;o<e.length;o++){var r=e[o];if("string"==typeof r)n.push(r);else{if("object"!=typeof r)continue;if(r.skip)s(r);else{if(r.processed<o)continue;if(r.text){var i=this.getVariableValue(t,r.text);i&&r.fmtString&&(i=this.tmStrFormat(i,r)),r.processed=o,null==r.expectIf?i&&(n.push(i),s(r)):i?r.skip=r.elseBranch:s(r)}else(null!=r.tabstopId||null!=r.changeCase)&&n.push(r)}}}function s(t){var n=e.indexOf(t,o+1);-1!=n&&(o=n)}return n},this.insertSnippetForSelection=function(e,t){var n=e.getCursorPosition(),o=e.session.getLine(n.row),r=e.session.getTabString(),i=o.match(/^\s*/)[0];n.column<i.length&&(i=i.slice(0,n.column)),t=t.replace(/\r/g,"");var s=this.tokenizeTmSnippet(t);s=(s=this.resolveVariables(s,e)).map((function(e){return"\n"==e?e+i:"string"==typeof e?e.replace(/\t/g,r):e}));var a=[];s.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,o=a[n];if(o||((o=a[n]=[]).index=n,o.value=""),-1===o.indexOf(e)){o.push(e);var r=s.indexOf(e,t+1);if(-1!==r){var i=s.slice(t+1,r);i.some((function(e){return"object"==typeof e}))&&!o.value?o.value=i:!i.length||o.value&&"string"==typeof o.value||(o.value=i.join(""))}}}})),a.forEach((function(e){e.length=0}));var l={};function c(e){for(var t=[],n=0;n<e.length;n++){var o=e[n];if("object"==typeof o){if(l[o.tabstopId])continue;o=t[e.lastIndexOf(o,n-1)]||{tabstopId:o.tabstopId}}t[n]=o}return t}for(var d=0;d<s.length;d++){var u=s[d];if("object"==typeof u){var p=u.tabstopId,f=s.indexOf(u,d+1);if(l[p])l[p]===u&&(l[p]=null);else{var g=a[p],m="string"==typeof g.value?[g.value]:c(g.value);m.unshift(d+1,Math.max(0,f-d)),m.push(u),l[p]=u,s.splice.apply(s,m),-1===g.indexOf(u)&&g.push(u)}}}var v=0,b=0,y="";s.forEach((function(e){if("string"==typeof e){var t=e.split("\n");t.length>1?(b=t[t.length-1].length,v+=t.length-1):b+=e.length,y+=e}else e.start?e.end={row:v,column:b}:e.start={row:v,column:b}}));var C=e.getSelectionRange(),w=e.session.replace(C,y),x=new h(e),S=e.inVirtualSelectionMode&&e.selection.index;x.addTabstops(a,C.start,w,S)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),o=e.session.getState(n.row);"object"==typeof o&&(o=o[0]),o.substring&&("js-"==o.substring(0,3)?t="javascript":"css-"==o.substring(0,4)?t="css":"php-"==o.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],o=this.snippetMap;return o[t]&&o[t].includeScopes&&n.push.apply(n,o[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,o=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return o&&e.tabstopManager&&e.tabstopManager.tabNext(),o},this.expandSnippetForSelection=function(e,t){var n,o=e.getCursorPosition(),r=e.session.getLine(o.row),i=r.substring(0,o.column),s=r.substr(o.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,i,s)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(o.row,o.column-n.replaceBefore.length,o.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var o=e.length;o--;){var r=e[o];if((!r.startRe||r.startRe.test(t))&&((!r.endRe||r.endRe.test(n))&&(r.startRe||r.endRe)))return r.matchBefore=r.startRe?r.startRe.exec(t):[""],r.matchAfter=r.endRe?r.endRe.exec(n):[""],r.replaceBefore=r.triggerRe?r.triggerRe.exec(t)[0]:"",r.replaceAfter=r.endTriggerRe?r.endTriggerRe.exec(n)[0]:"",r}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,o=this.snippetNameMap,r=this;function s(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function a(e,t,n){return e=s(e),t=s(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],o[t]={});var s=o[t];if(e.name){var l=s[e.name];l&&r.unregister(l),s[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=i.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=a(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=a(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?l(e):Array.isArray(e)&&e.forEach(l),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,o=this.snippetNameMap;function r(e){var r=o[e.scope||t];if(r&&r[e.name]){delete r[e.name];var i=n[e.scope||t],s=i&&i.indexOf(e);s>=0&&i.splice(s,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],o={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=r.exec(e);){if(t[1])try{o=JSON.parse(t[1]),n.push(o)}catch(l){}if(t[4])o.content=t[4].replace(/^\t/gm,""),n.push(o),o={};else{var i=t[2],s=t[3];if("regex"==i){var a=/\/((?:[^\/\\]|\\.)*)|$/g;o.guard=a.exec(s)[1],o.trigger=a.exec(s)[1],o.endTrigger=a.exec(s)[1],o.endGuard=a.exec(s)[1]}else"snippet"==i?(o.tabTrigger=s.match(/^\S*/)[0],o.name||(o.name=s)):o[i]=s}}return n},this.getSnippetByName=function(e,t){var n,o=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var r=o[t];return r&&(n=r[e]),!!n}),this),n}}).call(u.prototype);var h=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=i.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,o=e.end,r=n.row,i=o.row-r,s=o.column-n.column;if(t&&(i=-i,s=-s),!this.$inChange&&t){var a=this.selectedTabstop;if(a&&!a.some((function(e){return d(e.start,n)<=0&&d(e.end,o)>=0})))return this.detach()}for(var l=this.ranges,c=0;c<l.length;c++){var u=l[c];u.end.row<n.row||(t&&d(n,u.start)<0&&d(o,u.end)>0?(this.removeRange(u),c--):(u.start.row==r&&u.start.column>n.column&&(u.start.column+=s),u.end.row==r&&u.end.column>=n.column&&(u.end.column+=s),u.start.row>=r&&(u.start.row+=i),u.end.row>=r&&(u.end.row+=i),d(u.start,u.end)>0&&this.removeRange(u)))}l.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var n=this.editor.session,o=n.getTextRange(e.firstNonLinked),r=e.length;r--;){var i=e[r];if(i.linked){var s=t.snippetManager.tmStrFormat(o,i.original);n.replace(i,s)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),o=this.ranges.length;o--;)if(!this.ranges[o].linked){var r=this.ranges[o].contains(e.row,e.column),i=n||this.ranges[o].contains(t.row,t.column);if(r&&i)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var o=t.length;o--;)t.hasLinkedRanges&&t[o].linked||n.addRange(t[o].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var o=s.fromPoints(n,n);f(o.start,t),f(o.end,t),e[0]=[o],e[0].index=0}var r=[this.index+1,0],i=this.ranges;e.forEach((function(e,n){for(var o=this.$openTabstops[n]||e,a=e.length;a--;){var l=e[a],c=s.fromPoints(l.start,l.end||l.start);p(c.start,t),p(c.end,t),c.original=l,c.tabstop=o,i.push(c),o!=e?o.unshift(c):o[a]=c,l.fmtString?(c.linked=!0,o.hasLinkedRanges=!0):o.firstNonLinked||(o.firstNonLinked=c)}o.firstNonLinked||(o.hasLinkedRanges=!1),o===e&&(r.push(o),this.$openTabstops[n]=o),this.addTabstopMarkers(o)}),this),r.length>2&&(this.tabstops.length&&r.push(r.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,r))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(h.prototype),a.prototype.onChange;var p=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},f=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new u;var g=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(g.prototype)})),ace.define("ace/ext/emmet",["require","exports","module","ace/keyboard/hash_handler","ace/editor","ace/snippets","ace/range","resources","resources","tabStops","resources","utils","actions","ace/config","ace/config"],(function(e,t,n){var o,r,i=e("ace/keyboard/hash_handler").HashHandler,s=e("ace/editor").Editor,a=e("ace/snippets").snippetManager,l=e("ace/range").Range;function c(){}c.prototype={setupContext:function(e){this.ace=e,this.indentation=e.session.getTabString(),o||(o=window.emmet),(o.resources||o.require("resources")).setVariable("indentation",this.indentation),this.$syntax=null,this.$syntax=this.getSyntax()},getSelectionRange:function(){var e=this.ace.getSelectionRange(),t=this.ace.session.doc;return{start:t.positionToIndex(e.start),end:t.positionToIndex(e.end)}},createSelection:function(e,t){var n=this.ace.session.doc;this.ace.selection.setRange({start:n.indexToPosition(e),end:n.indexToPosition(t)})},getCurrentLineRange:function(){var e=this.ace,t=e.getCursorPosition().row,n=e.session.getLine(t).length,o=e.session.doc.positionToIndex({row:t,column:0});return{start:o,end:o+n}},getCaretPos:function(){var e=this.ace.getCursorPosition();return this.ace.session.doc.positionToIndex(e)},setCaretPos:function(e){var t=this.ace.session.doc.indexToPosition(e);this.ace.selection.moveToPosition(t)},getCurrentLine:function(){var e=this.ace.getCursorPosition().row;return this.ace.session.getLine(e)},replaceContent:function(e,t,n,o){null==n&&(n=null==t?this.getContent().length:t),null==t&&(t=0);var r=this.ace,i=r.session.doc,s=l.fromPoints(i.indexToPosition(t),i.indexToPosition(n));r.session.remove(s),s.end=s.start,e=this.$updateTabstops(e),a.insertSnippet(r,e)},getContent:function(){return this.ace.getValue()},getSyntax:function(){if(this.$syntax)return this.$syntax;var e=this.ace.session.$modeId.split("/").pop();if("html"==e||"php"==e){var t=this.ace.getCursorPosition(),n=this.ace.session.getState(t.row);"string"!=typeof n&&(n=n[0]),n&&((n=n.split("-")).length>1?e=n[0]:"php"==e&&(e="html"))}return e},getProfileName:function(){var e=o.resources||o.require("resources");switch(this.getSyntax()){case"css":return"css";case"xml":case"xsl":return"xml";case"html":var t=e.getVariable("profile");return t||(t=-1!=this.ace.session.getLines(0,2).join("").search(/<!DOCTYPE[^>]+XHTML/i)?"xhtml":"html"),t;default:var n=this.ace.session.$mode;return n.emmetConfig&&n.emmetConfig.profile||"xhtml"}},prompt:function(e){return prompt(e)},getSelection:function(){return this.ace.session.getTextRange()},getFilePath:function(){return""},$updateTabstops:function(e){var t=0,n=null,r=o.tabStops||o.require("tabStops"),i=(o.resources||o.require("resources")).getVocabulary("user"),s={tabstop:function(e){var o=parseInt(e.group,10),i=0===o;i?o=++t:o+=1e3;var a=e.placeholder;a&&(a=r.processText(a,s));var l="${"+o+(a?":"+a:"")+"}";return i&&(n=[e.start,l]),l},escape:function(e){return"$"==e?"\\$":"\\"==e?"\\\\":e}};if(e=r.processText(e,s),i.variables.insert_final_tabstop&&!/\$\{0\}$/.test(e))e+="${0}";else if(n){e=(o.utils?o.utils.common:o.require("utils")).replaceSubstring(e,"${0}",n[0],n[1])}return e}};var d={expand_abbreviation:{mac:"ctrl+alt+e",win:"alt+e"},match_pair_outward:{mac:"ctrl+d",win:"ctrl+,"},match_pair_inward:{mac:"ctrl+j",win:"ctrl+shift+0"},matching_pair:{mac:"ctrl+alt+j",win:"alt+j"},next_edit_point:"alt+right",prev_edit_point:"alt+left",toggle_comment:{mac:"command+/",win:"ctrl+/"},split_join_tag:{mac:"shift+command+'",win:"shift+ctrl+`"},remove_tag:{mac:"command+'",win:"shift+ctrl+;"},evaluate_math_expression:{mac:"shift+command+y",win:"shift+ctrl+y"},increment_number_by_1:"ctrl+up",decrement_number_by_1:"ctrl+down",increment_number_by_01:"alt+up",decrement_number_by_01:"alt+down",increment_number_by_10:{mac:"alt+command+up",win:"shift+alt+up"},decrement_number_by_10:{mac:"alt+command+down",win:"shift+alt+down"},select_next_item:{mac:"shift+command+.",win:"shift+ctrl+."},select_previous_item:{mac:"shift+command+,",win:"shift+ctrl+,"},reflect_css_value:{mac:"shift+command+r",win:"shift+ctrl+r"},encode_decode_data_url:{mac:"shift+ctrl+d",win:"ctrl+'"},expand_abbreviation_with_tab:"Tab",wrap_with_abbreviation:{mac:"shift+ctrl+a",win:"shift+ctrl+a"}},u=new c;for(var h in t.commands=new i,t.runEmmetCommand=function e(t){try{u.setupContext(t);var n=o.actions||o.require("actions");if("expand_abbreviation_with_tab"==this.action){if(!t.selection.isEmpty())return!1;var r=t.selection.lead,i=t.session.getTokenAt(r.row,r.column);if(i&&/\btag\b/.test(i.type))return!1}if("wrap_with_abbreviation"==this.action)return setTimeout((function(){n.run("wrap_with_abbreviation",u)}),0);var s=n.run(this.action,u)}catch(a){if(!o)return f(e.bind(this,t)),!0;t._signal("changeStatus","string"==typeof a?a:a.message),console.log(a),s=!1}return s},d)t.commands.addCommand({name:"emmet:"+h,action:h,bindKey:d[h],exec:t.runEmmetCommand,multiSelectAction:"forEach"});t.updateCommands=function(e,n){n?e.keyBinding.addKeyboardHandler(t.commands):e.keyBinding.removeKeyboardHandler(t.commands)},t.isSupportedMode=function(e){if(!e)return!1;if(e.emmetConfig)return!0;var t=e.$id||e;return/css|less|scss|sass|stylus|html|php|twig|ejs|handlebars/.test(t)},t.isAvailable=function(e,n){if(/(evaluate_math_expression|expand_abbreviation)$/.test(n))return!0;var o=e.session.$mode,r=t.isSupportedMode(o);if(r&&o.$modes)try{u.setupContext(e),/js|php/.test(u.getSyntax())&&(r=!1)}catch(i){}return r};var p=function(e,n){var o=n;if(o){var r=t.isSupportedMode(o.session.$mode);!1===e.enableEmmet&&(r=!1),r&&f(),t.updateCommands(o,r)}},f=function(t){"string"==typeof r&&e("ace/config").loadModule(r,(function(){r=null,t&&t()}))};t.AceEmmetEditor=c,e("ace/config").defineOptions(s.prototype,"editor",{enableEmmet:{set:function(e){this[e?"on":"removeListener"]("changeMode",p),p({enableEmmet:!!e},this)},value:!0}}),t.setCore=function(e){"string"==typeof e?r=e:o=e}})),ace.acequire(["ace/ext/emmet"],(function(){})),ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(e,t,n){var o=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,i=e("./lib/lang"),s=e("./range").Range,a=e("./anchor").Anchor,l=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,d=s.comparePoints,u=function(){this.snippetMap={},this.snippetNameMap={}};(function(){o.implement(this,r),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return u.$tokenizer=new c({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var o=e[1];return"}"==o&&n.length||-1!="`$\\".indexOf(o)?e=o:n.inFormatString&&("n"==o||"t"==o?e="\n":-1!="ulULE".indexOf(o)&&(e={changeCase:o,local:o>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,o){var r=e(t.substr(1),0,o);return o.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var o=n[0];return o.fmtString=e,e=this.splitRegex.exec(e),o.guard=e[1],o.fmt=e[2],o.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),u.prototype.getTokenizer=function(){return u.$tokenizer},u.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var o=e.session;switch(t){case"CURRENT_WORD":var r=o.getWordRange();case"SELECTION":case"SELECTED_TEXT":return o.getTextRange(r);case"CURRENT_LINE":return o.getLine(e.getCursorPosition().row);case"PREV_LINE":return o.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return o.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return o.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(e,t,n){var o=t.flag||"",r=t.guard;r=new RegExp(r,o.replace(/[^gi]/,""));var i=this.tokenizeTmSnippet(t.fmt,"formatString"),s=this,a=e.replace(r,(function(){s.variables.__=arguments;for(var e=s.resolveVariables(i,n),t="E",o=0;o<e.length;o++){var r=e[o];if("object"==typeof r)if(e[o]="",r.changeCase&&r.local){var a=e[o+1];a&&"string"==typeof a&&("u"==r.changeCase?e[o]=a[0].toUpperCase():e[o]=a[0].toLowerCase(),e[o+1]=a.substr(1))}else r.changeCase&&(t=r.changeCase);else"U"==t?e[o]=r.toUpperCase():"L"==t&&(e[o]=r.toLowerCase())}return e.join("")}));return this.variables.__=null,a},this.resolveVariables=function(e,t){for(var n=[],o=0;o<e.length;o++){var r=e[o];if("string"==typeof r)n.push(r);else{if("object"!=typeof r)continue;if(r.skip)s(r);else{if(r.processed<o)continue;if(r.text){var i=this.getVariableValue(t,r.text);i&&r.fmtString&&(i=this.tmStrFormat(i,r)),r.processed=o,null==r.expectIf?i&&(n.push(i),s(r)):i?r.skip=r.elseBranch:s(r)}else(null!=r.tabstopId||null!=r.changeCase)&&n.push(r)}}}function s(t){var n=e.indexOf(t,o+1);-1!=n&&(o=n)}return n},this.insertSnippetForSelection=function(e,t){var n=e.getCursorPosition(),o=e.session.getLine(n.row),r=e.session.getTabString(),i=o.match(/^\s*/)[0];n.column<i.length&&(i=i.slice(0,n.column)),t=t.replace(/\r/g,"");var s=this.tokenizeTmSnippet(t);s=(s=this.resolveVariables(s,e)).map((function(e){return"\n"==e?e+i:"string"==typeof e?e.replace(/\t/g,r):e}));var a=[];s.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,o=a[n];if(o||((o=a[n]=[]).index=n,o.value=""),-1===o.indexOf(e)){o.push(e);var r=s.indexOf(e,t+1);if(-1!==r){var i=s.slice(t+1,r);i.some((function(e){return"object"==typeof e}))&&!o.value?o.value=i:!i.length||o.value&&"string"==typeof o.value||(o.value=i.join(""))}}}})),a.forEach((function(e){e.length=0}));var l={};function c(e){for(var t=[],n=0;n<e.length;n++){var o=e[n];if("object"==typeof o){if(l[o.tabstopId])continue;o=t[e.lastIndexOf(o,n-1)]||{tabstopId:o.tabstopId}}t[n]=o}return t}for(var d=0;d<s.length;d++){var u=s[d];if("object"==typeof u){var p=u.tabstopId,f=s.indexOf(u,d+1);if(l[p])l[p]===u&&(l[p]=null);else{var g=a[p],m="string"==typeof g.value?[g.value]:c(g.value);m.unshift(d+1,Math.max(0,f-d)),m.push(u),l[p]=u,s.splice.apply(s,m),-1===g.indexOf(u)&&g.push(u)}}}var v=0,b=0,y="";s.forEach((function(e){if("string"==typeof e){var t=e.split("\n");t.length>1?(b=t[t.length-1].length,v+=t.length-1):b+=e.length,y+=e}else e.start?e.end={row:v,column:b}:e.start={row:v,column:b}}));var C=e.getSelectionRange(),w=e.session.replace(C,y),x=new h(e),S=e.inVirtualSelectionMode&&e.selection.index;x.addTabstops(a,C.start,w,S)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),o=e.session.getState(n.row);"object"==typeof o&&(o=o[0]),o.substring&&("js-"==o.substring(0,3)?t="javascript":"css-"==o.substring(0,4)?t="css":"php-"==o.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],o=this.snippetMap;return o[t]&&o[t].includeScopes&&n.push.apply(n,o[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,o=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return o&&e.tabstopManager&&e.tabstopManager.tabNext(),o},this.expandSnippetForSelection=function(e,t){var n,o=e.getCursorPosition(),r=e.session.getLine(o.row),i=r.substring(0,o.column),s=r.substr(o.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,i,s)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(o.row,o.column-n.replaceBefore.length,o.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var o=e.length;o--;){var r=e[o];if((!r.startRe||r.startRe.test(t))&&((!r.endRe||r.endRe.test(n))&&(r.startRe||r.endRe)))return r.matchBefore=r.startRe?r.startRe.exec(t):[""],r.matchAfter=r.endRe?r.endRe.exec(n):[""],r.replaceBefore=r.triggerRe?r.triggerRe.exec(t)[0]:"",r.replaceAfter=r.endTriggerRe?r.endTriggerRe.exec(n)[0]:"",r}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,o=this.snippetNameMap,r=this;function s(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function a(e,t,n){return e=s(e),t=s(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],o[t]={});var s=o[t];if(e.name){var l=s[e.name];l&&r.unregister(l),s[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=i.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=a(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=a(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?l(e):Array.isArray(e)&&e.forEach(l),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,o=this.snippetNameMap;function r(e){var r=o[e.scope||t];if(r&&r[e.name]){delete r[e.name];var i=n[e.scope||t],s=i&&i.indexOf(e);s>=0&&i.splice(s,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],o={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=r.exec(e);){if(t[1])try{o=JSON.parse(t[1]),n.push(o)}catch(l){}if(t[4])o.content=t[4].replace(/^\t/gm,""),n.push(o),o={};else{var i=t[2],s=t[3];if("regex"==i){var a=/\/((?:[^\/\\]|\\.)*)|$/g;o.guard=a.exec(s)[1],o.trigger=a.exec(s)[1],o.endTrigger=a.exec(s)[1],o.endGuard=a.exec(s)[1]}else"snippet"==i?(o.tabTrigger=s.match(/^\S*/)[0],o.name||(o.name=s)):o[i]=s}}return n},this.getSnippetByName=function(e,t){var n,o=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var r=o[t];return r&&(n=r[e]),!!n}),this),n}}).call(u.prototype);var h=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=i.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,o=e.end,r=n.row,i=o.row-r,s=o.column-n.column;if(t&&(i=-i,s=-s),!this.$inChange&&t){var a=this.selectedTabstop;if(a&&!a.some((function(e){return d(e.start,n)<=0&&d(e.end,o)>=0})))return this.detach()}for(var l=this.ranges,c=0;c<l.length;c++){var u=l[c];u.end.row<n.row||(t&&d(n,u.start)<0&&d(o,u.end)>0?(this.removeRange(u),c--):(u.start.row==r&&u.start.column>n.column&&(u.start.column+=s),u.end.row==r&&u.end.column>=n.column&&(u.end.column+=s),u.start.row>=r&&(u.start.row+=i),u.end.row>=r&&(u.end.row+=i),d(u.start,u.end)>0&&this.removeRange(u)))}l.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var n=this.editor.session,o=n.getTextRange(e.firstNonLinked),r=e.length;r--;){var i=e[r];if(i.linked){var s=t.snippetManager.tmStrFormat(o,i.original);n.replace(i,s)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),o=this.ranges.length;o--;)if(!this.ranges[o].linked){var r=this.ranges[o].contains(e.row,e.column),i=n||this.ranges[o].contains(t.row,t.column);if(r&&i)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var o=t.length;o--;)t.hasLinkedRanges&&t[o].linked||n.addRange(t[o].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var o=s.fromPoints(n,n);f(o.start,t),f(o.end,t),e[0]=[o],e[0].index=0}var r=[this.index+1,0],i=this.ranges;e.forEach((function(e,n){for(var o=this.$openTabstops[n]||e,a=e.length;a--;){var l=e[a],c=s.fromPoints(l.start,l.end||l.start);p(c.start,t),p(c.end,t),c.original=l,c.tabstop=o,i.push(c),o!=e?o.unshift(c):o[a]=c,l.fmtString?(c.linked=!0,o.hasLinkedRanges=!0):o.firstNonLinked||(o.firstNonLinked=c)}o.firstNonLinked||(o.hasLinkedRanges=!1),o===e&&(r.push(o),this.$openTabstops[n]=o),this.addTabstopMarkers(o)}),this),r.length>2&&(this.tabstops.length&&r.push(r.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,r))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(h.prototype),a.prototype.onChange;var p=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},f=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new u;var g=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(g.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){var o=e("../virtual_renderer").VirtualRenderer,r=e("../editor").Editor,i=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),c=function(e){var t=new o(e);t.$maxLines=4;var n=new r(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusWaitTimout=0,n.$highlightTagPending=!0,n};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=function(e){var t=l.createElement("div"),n=new c(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var o,r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),u.start.row=u.end.row=t.row,e.stop()}));var d=new i(-1,0,-1,1/0),u=new i(-1,0,-1,1/0);u.id=n.session.addMarker(u,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?d.id&&(n.session.removeMarker(d.id),d.id=null):d.id=n.session.addMarker(d,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(o){if(o.x!=e.x||o.y!=e.y){(o=e).scrollTop=n.renderer.scrollTop;var t=o.getDocumentPosition().row;d.start.row!=t&&(d.id||n.setRow(t),p(t))}}else o=e})),n.renderer.on("beforeRender",(function(){if(o&&-1!=d.start.row){o.$pos=null;var e=o.getDocumentPosition().row;d.id||n.setRow(e),p(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,o=t.element.childNodes[e-t.config.firstRow];o!=t.selectedNode&&(t.selectedNode&&l.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=o,o&&l.addCssClass(o,"ace_selected"))}));var h=function(){p(-1)},p=function(e,t){e!==d.start.row&&(d.start.row=d.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return d.start.row},s.addListener(n.container,"mouseout",h),n.on("hide",h),n.on("changeSelection",h),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var f=n.session.bgTokenizer;return f.$tokenizeRow=function(e){var t=n.data[e],o=[];if(!t)return o;"string"==typeof t&&(t={value:t}),t.caption||(t.caption=t.value||t.name);for(var r,i,s=-1,a=0;a<t.caption.length;a++)i=t.caption[a],s!==(r=t.matchMask&1<<a?1:0)?(o.push({type:t.className||(r?"completion-highlight":""),value:i}),s=r):o[o.length-1].value+=i;if(t.meta){var l=n.renderer.$size.scrollerWidth/n.renderer.layerConfig.characterWidth,c=t.meta;c.length+t.caption.length>l-2&&(c=c.substr(0,l-t.caption.length-3)+"…"),o.push({type:"rightAlignedText",value:c})}return o},f.$updateOnChange=r,f.start=r,n.session.$computeWidth=function(){return this.screenWidth=0},n.$blockScrolling=1/0,n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.data=[],n.setData=function(e){n.setValue(a.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return u.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),u.start.row!=e&&(n.selection.clearSelection(),u.start.row=u.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,r){var i=this.container,s=window.innerHeight,a=window.innerWidth,l=this.renderer,c=l.$maxLines*t*1.4,d=e.top+this.$borderSize;d>s/2&&!r&&d+t+c>s?(l.$maxPixelHeight=d-2*this.$borderSize,i.style.top="",i.style.bottom=s-d+"px",n.isTopdown=!1):(d+=t,l.$maxPixelHeight=s-d-.2*t,i.style.top=d+"px",i.style.bottom="",n.isTopdown=!0),i.style.display="",this.renderer.$textLayer.checkForSizeChanges();var u=e.left;u+i.offsetWidth>a&&(u=a-i.offsetWidth),i.style.left=u+"px",this._signal("show"),o=null,n.isOpen=!0},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n}})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){t.parForEach=function(e,t,n){var o=0,r=e.length;0===r&&n();for(var i=0;i<r;i++)t(e[i],(function(e,t){++o===r&&n(e,t)}))};var o=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||o;for(var r=[],i=t-1;i>=0&&n.test(e[i]);i--)r.push(e[i]);return r.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||o;for(var r=[],i=t;i<e.length&&n.test(e[i]);i++)r.push(e[i]);return r},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),o=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(o,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(o,n.column)}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],(function(e,t,n){var o=e("./keyboard/hash_handler").HashHandler,r=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/util");e("./lib/event");var s=e("./lib/lang"),a=e("./lib/dom"),l=e("./snippets").snippetManager,c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new o,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=s.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new r(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var o=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var r=o.layerConfig.lineHeight,i=o.$cursorLayer.getPixelPosition(this.base,!0);i.left-=this.popup.getTextLeftOffset();var s=e.container.getBoundingClientRect();i.top+=s.top-o.layerConfig.offset,i.left+=s.left-e.renderer.scrollLeft,i.left+=o.gutterWidth,this.popup.show(i,r)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),o=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),r=this.popup&&this.popup.container;t==n||t.parentNode==r||o||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){var t=this.popup.getRow(),n=this.popup.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.popup.setRow(t)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText)for(var n,o=this.editor.selection.getAllRanges(),r=0;n=o[r];r++)n.start.column-=this.completions.filterText.length,this.editor.session.remove(n);e.snippet?l.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.detach()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),o=e.getCursorPosition(),r=i.getCompletionPrefix(e);this.base=n.doc.createAnchor(o.row,o.column-r.length),this.base.$insertRight=!0;var s=[],a=e.completers.length;return e.completers.forEach((function(l,c){l.getCompletions(e,n,o,r,(function(n,o){!n&&o&&(s=s.concat(o)),t(null,{prefix:i.getCompletionPrefix(e),matches:s,finished:0==--a})}))})),!0},this.showPopup=function(e){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(e){if(e&&this.base&&this.completions){var t=this.editor.getCursorPosition(),n=this.editor.session.getTextRange({start:this.base,end:t});if(n==this.completions.filterText)return;return this.completions.setFilter(n),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=n||this.completions.filtered[0].snippet?void this.openPopup(this.editor,n,e):this.detach():this.detach()}var o=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var r=function(){if(n.finished)return this.detach()}.bind(this),i=n.prefix,s=n&&n.matches;if(!s||!s.length)return r();if(0===i.indexOf(n.prefix)&&o==this.gatherCompletionsId){this.completions=new d(s),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(i);var a=this.completions.filtered;return a.length&&(1!=a.length||a[0].value!=i||a[0].snippet)?this.autoInsert&&1==a.length&&n.finished?this.insertMatch(a[0]):void this.openPopup(this.editor,i,e):r()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),o=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(o=e.getDocTooltip(n)),o})),o||(o=n),"string"==typeof o&&(o={docText:o}),o&&(o.docHTML||o.docText)?void this.showDocTooltip(o):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=a.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,o=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,window.innerWidth-o.right<320?(t.style.right=window.innerWidth-o.left+"px",t.style.left=""):(t.style.left=o.right+1+"px",t.style.right=""),t.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}}}).call(c.prototype),c.startCommand={name:"startAutocomplete",exec:function(e){e.completer||(e.completer=new c),e.completer.autoInsert=!1,e.completer.autoSelect=!0,e.completer.showPopup(e),e.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var d=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){return t.exactMatch-e.exactMatch||t.score-e.score}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],o=t.toUpperCase(),r=t.toLowerCase();e:for(var i,s=0;i=e[s];s++){var a=i.value||i.caption||i.snippet;if(a){var l,c,d=-1,u=0,h=0;if(this.exactMatch){if(t!==a.substr(0,t.length))continue e}else for(var p=0;p<t.length;p++){var f=a.indexOf(r[p],d+1),g=a.indexOf(o[p],d+1);if((l=f>=0&&(g<0||f<g)?f:g)<0)continue e;(c=l-d-1)>0&&(-1===d&&(h+=10),h+=c),u|=1<<l,d=l}i.matchMask=u,i.exactMatch=h?0:1,i.score=(i.score||0)-h,n.push(i)}}return n}}).call(d.prototype),t.Autocomplete=c,t.FilteredList=d})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var o=e("../range").Range,r=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(e,t){var n=function(e,t){return e.getTextRange(o.fromPoints({row:0,column:0},t)).split(r).length-1}(e,t),i=e.getValue().split(r),s=Object.create(null),a=i[n];return i.forEach((function(e,t){if(e&&e!==a){var o=Math.abs(n-t),r=i.length-o;s[e]?s[e]=Math.max(r,s[e]):s[e]=r}})),s}t.getCompletions=function(e,t,n,o,r){var s=i(t,n);r(null,Object.keys(s).map((function(e){return{caption:e,value:e,score:s[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){var o=e("../snippets").snippetManager,r=e("../autocomplete").Autocomplete,i=e("../config"),s=e("../lib/lang"),a=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),c={getCompletions:function(e,t,n,o,r){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,o,r);var i=e.session.getState(n.row);r(null,t.$mode.getCompletions(i,t,n,o))}},d={getCompletions:function(e,t,n,r,i){var s=o.snippetMap,a=[];o.getActiveScopes(e).forEach((function(e){for(var t=s[e]||[],n=t.length;n--;){var o=t[n],r=o.name||o.tabTrigger;r&&a.push({caption:r,snippet:o.content,meta:o.tabTrigger&&!o.name?o.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),i(null,a)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",s.escapeHTML(e.caption),"</b>","<hr></hr>",s.escapeHTML(e.snippet)].join(""))}},u=[d,l,c];t.setCompleters=function(e){u.length=0,e&&u.push.apply(u,e)},t.addCompleter=function(e){u.push(e)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=d;var h={name:"expandSnippet",exec:function(e){return o.expandWithTab(e)},bindKey:"Tab"},p=function(e,t){f(t.session.$mode)},f=function(e){var t=e.$id;o.files||(o.files={}),g(t),e.modes&&e.modes.forEach(f)},g=function(e){if(e&&!o.files[e]){var t=e.replace("mode","snippets");o.files[e]={},i.loadModule(t,(function(t){t&&(o.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=o.parseSnippetFile(t.snippetText)),o.register(t.snippets||[],t.scope),t.includeScopes&&(o.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){g("ace/mode/"+e)}))))}))}},m=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!a.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){a.getCompletionPrefix(t)&&!n&&(t.completer||(t.completer=new r),t.completer.autoInsert=!1,t.completer.showPopup(t))}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:u),this.commands.addCommand(r.startCommand)):this.commands.removeCommand(r.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:u),this.commands.on("afterExec",m)):this.commands.removeListener("afterExec",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(h),this.on("changeMode",p),p(0,this)):(this.commands.removeCommand(h),this.off("changeMode",p))},value:!1}})})),ace.acequire(["ace/ext/language_tools"],(function(){}));var FB={id:"ace/mode/json_worker",src:'"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/\'/g,"'").replace(/</g,"<")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={\'"\':\'"\',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:"\t"},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected \'"+c+"\' instead of \'"+ch+"\'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if(\'"\'===ch)for(;next();){if(\'"\'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected \'"+ch+"\'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error(\'Duplicate key "\'+key+\'"\'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case\'"\':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0\n}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != \'object\'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws="\t\\n\v\\f\\r \\u2028\\u2029\ufeff";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can\'t convert "+o+" to object");return Object(o)}});'};ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){var o=e("../lib/oop"),r=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};o.inherits(i,r),t.JsonHighlightRules=i})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){var o=e("../range").Range,r=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var r=n[1].length,i=e.findMatchingBracket({row:t,column:r});if(!i||i.row==t)return 0;var s=this.$getIndent(e.getLine(i.row));e.replace(new o(t,0,t,r-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(r.prototype),t.MatchingBraceOutdent=r})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){var o=e("../../lib/oop"),r=e("../../range").Range,i=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};o.inherits(s,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var o=e.getLine(n);if(this.singleLineBlockCommentRe.test(o)&&!this.startRegionRe.test(o)&&!this.tripleStarBlockCommentRe.test(o))return"";var r=this._getFoldWidgetBase(e,t,n);return!r&&this.startRegionRe.test(o)?"start":r},this.getFoldWidgetRange=function(e,t,n,o){var r,i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);if(r=i.match(this.foldingStartMarker)){var s=r.index;if(r[1])return this.openingBracketBlock(e,r[1],n,s);var a=e.getCommentFoldRange(n,s+r[0].length,1);return a&&!a.isMultiLine()&&(o?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}if("markbegin"!==t&&(r=i.match(this.foldingStopMarker))){s=r.index+r[0].length;return r[1]?this.closingBracketBlock(e,r[1],n,s):e.getCommentFoldRange(n,s,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),o=n.search(/\S/),i=t,s=n.length,a=t+=1,l=e.getLength();++t<l;){var c=(n=e.getLine(t)).search(/\S/);if(-1!==c){if(o>c)break;var d=this.getFoldWidgetRange(e,"all",t);if(d){if(d.start.row<=i)break;if(d.isMultiLine())t=d.end.row;else if(o==c)break}a=t}}return new r(i,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var o=t.search(/\s*$/),i=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<i;){t=e.getLine(n);var c=a.exec(t);if(c&&(c[1]?l--:l++,!l))break}if(n>s)return new r(s,o,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(e,t,n){var o=e("../lib/oop"),r=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,d=function(){this.HighlightRules=i,this.$outdent=new s,this.$behaviour=new a,this.foldingRules=new l};o.inherits(d,r),function(){this.getNextLineIndent=function(e,t,n){var o=this.$getIndent(t);"start"==e&&(t.match(/^.*[\{\(\[]\s*$/)&&(o+=n));return o},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],FB,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/json"}.call(d.prototype),t.Mode=d})),ace.define("ace/snippets/json",["require","exports","module"],(function(e,t,n){t.snippetText=void 0,t.scope="json"})),ace.define("ace/theme/github",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!1,t.cssClass="ace-github",t.cssText='.ace-github .ace_gutter {background: #e8e8e8;color: #AAA;}.ace-github {background: #fff;color: #000;}.ace-github .ace_keyword {font-weight: bold;}.ace-github .ace_string {color: #D14;}.ace-github .ace_variable.ace_class {color: teal;}.ace-github .ace_constant.ace_numeric {color: #099;}.ace-github .ace_constant.ace_buildin {color: #0086B3;}.ace-github .ace_support.ace_function {color: #0086B3;}.ace-github .ace_comment {color: #998;font-style: italic;}.ace-github .ace_variable.ace_language {color: #0086B3;}.ace-github .ace_paren {font-weight: bold;}.ace-github .ace_boolean {font-weight: bold;}.ace-github .ace_string.ace_regexp {color: #009926;font-weight: normal;}.ace-github .ace_variable.ace_instance {color: teal;}.ace-github .ace_constant.ace_language {font-weight: bold;}.ace-github .ace_cursor {color: black;}.ace-github.ace_focus .ace_marker-layer .ace_active-line {background: rgb(255, 255, 204);}.ace-github .ace_marker-layer .ace_active-line {background: rgb(245, 245, 245);}.ace-github .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-github.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-github.ace_nobold .ace_line > span {font-weight: normal !important;}.ace-github .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-github .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-github .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-github .ace_gutter-active-line {background-color : rgba(0, 0, 0, 0.07);}.ace-github .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-github .ace_invisible {color: #BFBFBF}.ace-github .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-github .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/theme/vibrant_ink",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-vibrant-ink",t.cssText=".ace-vibrant-ink .ace_gutter {background: #1a1a1a;color: #BEBEBE}.ace-vibrant-ink .ace_print-margin {width: 1px;background: #1a1a1a}.ace-vibrant-ink {background-color: #0F0F0F;color: #FFFFFF}.ace-vibrant-ink .ace_cursor {color: #FFFFFF}.ace-vibrant-ink .ace_marker-layer .ace_selection {background: #6699CC}.ace-vibrant-ink.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #0F0F0F;}.ace-vibrant-ink .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-vibrant-ink .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #404040}.ace-vibrant-ink .ace_marker-layer .ace_active-line {background: #333333}.ace-vibrant-ink .ace_gutter-active-line {background-color: #333333}.ace-vibrant-ink .ace_marker-layer .ace_selected-word {border: 1px solid #6699CC}.ace-vibrant-ink .ace_invisible {color: #404040}.ace-vibrant-ink .ace_keyword,.ace-vibrant-ink .ace_meta {color: #FF6600}.ace-vibrant-ink .ace_constant,.ace-vibrant-ink .ace_constant.ace_character,.ace-vibrant-ink .ace_constant.ace_character.ace_escape,.ace-vibrant-ink .ace_constant.ace_other {color: #339999}.ace-vibrant-ink .ace_constant.ace_numeric {color: #99CC99}.ace-vibrant-ink .ace_invalid,.ace-vibrant-ink .ace_invalid.ace_deprecated {color: #CCFF33;background-color: #000000}.ace-vibrant-ink .ace_fold {background-color: #FFCC00;border-color: #FFFFFF}.ace-vibrant-ink .ace_entity.ace_name.ace_function,.ace-vibrant-ink .ace_support.ace_function,.ace-vibrant-ink .ace_variable {color: #FFCC00}.ace-vibrant-ink .ace_variable.ace_parameter {font-style: italic}.ace-vibrant-ink .ace_string {color: #66FF00}.ace-vibrant-ink .ace_string.ace_regexp {color: #44B4CC}.ace-vibrant-ink .ace_comment {color: #9933CC}.ace-vibrant-ink .ace_entity.ace_other.ace_attribute-name {font-style: italic;color: #99CC99}.ace-vibrant-ink .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYNDTc/oPAALPAZ7hxlbYAAAAAElFTkSuQmCC) right repeat-y}",e("../lib/dom").importCssString(t.cssText,t.cssClass)}));var EB,$B,_B={exports:{}},RB={exports:{}};RB.exports=function(){return t={134:function(e,t,n){n.d(t,{default:function(){return g}}),t=n(279);var o=n.n(t),r=(t=n(370),n.n(t)),i=(t=n(817),n.n(t));function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var l=function(){function e(t){!function(t){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(t),this.initSelection()}var t;return(t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px",e=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(e,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=i()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==s(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}])&&a(e.prototype,t),e}();function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=p(e);return n=t?(n=p(this).constructor,Reflect.construct(o,arguments,n)):o.apply(this,arguments),o=this,!(n=n)||"object"!==c(n)&&"function"!=typeof n?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(o):n}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var g=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(s,o());var e,t,n,i=h(s);function s(e,t){var n;return function(e){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}(this),(n=i.call(this)).resolveOptions(t),n.listenClick(e),n}return e=s,n=[{key:"isSupported",value:function(){var e="string"==typeof(e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"])?[e]:e,t=!!document.queryCommandSupported;return e.forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],(t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===c(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=r()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){e=e.delegateTarget||e.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(e){return f("action",e)}},{key:"defaultTarget",value:function(e){if(e=f("target",e))return document.querySelector(e)}},{key:"defaultText",value:function(e){return f("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&d(e.prototype,t),n&&d(e,n),s}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var o=n(828);function r(e,t,n,r,i){var s=function(e,t,n,r){return function(n){n.delegateTarget=o(n.target,t),n.delegateTarget&&r.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,s,i),{destroy:function(){e.removeEventListener(n,s,i)}}}e.exports=function(e,t,n,o,i){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,o,i)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var o=n(879),r=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!o.string(t))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(e))return c=t,d=n,(l=e).addEventListener(c,d),{destroy:function(){l.removeEventListener(c,d)}};if(o.nodeList(e))return i=e,s=t,a=n,Array.prototype.forEach.call(i,(function(e){e.addEventListener(s,a)})),{destroy:function(){Array.prototype.forEach.call(i,(function(e){e.removeEventListener(s,a)}))}};if(o.string(e))return e=e,t=t,n=n,r(document.body,e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var i,s,a,l,c,d}},817:function(e){e.exports=function(e){var t,n="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t),n.toString());return n}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t)for(var i=0,s=o.length;i<s;i++)o[i].fn!==t&&o[i].fn._!==t&&r.push(o[i]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(134).default;function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{}};return t[o](r,r.exports,e),r.exports}var t,n}(),EB=RB.exports;var BB=_B.exports={install:function(e){var t="3."===e.version.slice(0,2)?e.config.globalProperties:e.prototype;t.$clipboardConfig=$B,t.$copyText=function(e,t){return new Promise((function(n,o){var r=document.createElement("button"),i=new EB(r,{text:function(){return e},action:function(){return"copy"},container:"object"==typeof t?t:document.body});i.on("success",(function(e){i.destroy(),n(e)})),i.on("error",(function(e){i.destroy(),o(e)})),$B.appendToBody&&document.body.appendChild(r),r.click(),$B.appendToBody&&document.body.removeChild(r)}))},e.directive("clipboard",{bind:function(e,t,n){if("success"===t.arg)e._vClipboard_success=t.value;else if("error"===t.arg)e._vClipboard_error=t.value;else{var o=new EB(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"},container:$B.autoSetContainer?e:void 0});o.on("success",(function(t){var n=e._vClipboard_success;n&&n(t)})),o.on("error",(function(t){var n=e._vClipboard_error;n&&n(t)})),e._vClipboard=o}},update:function(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=function(){return t.value},e._vClipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard))}})},config:$B={autoSetContainer:!1,appendToBody:!0}};export{bi as $,p as A,Ux as B,CS as C,rb as D,Dm as E,HS as F,_S as G,qS as H,fS as I,oS as J,vS as K,lB as L,HC as M,$C as N,Ao as O,Mv as P,vt as Q,eA as R,sA as S,fC as T,Lw as U,yx as V,$o as W,Cd as X,eS as Y,Tk as Z,IA as _,Lt as a,SB as a0,BB as a1,kB as a2,sv as a3,xC as a4,AC as a5,Pw as a6,Lk as a7,Sr as a8,Ox as a9,pr as aA,Ax as aB,zS as aC,Hn as aD,fi as aE,zy as aF,MS as aG,fy as aa,Bx as ab,gm as ac,vm as ad,pm as ae,oA as af,aC as ag,lC as ah,gb as ai,Gy as aj,_m as ak,Og as al,pb as am,mb as an,qw as ao,US as ap,dx as aq,Fv as ar,$v as as,Jt as at,st as au,hn as av,Fo as aw,To as ax,no as ay,Nt as az,$r as b,Et as c,oo as d,po as e,vo as f,ko as g,zk as h,Ht as i,wt as j,GC as k,Cw as l,IC as m,Gx as n,cn as o,Mt as p,Pb as q,bt as r,eb as s,qm as t,Mk as u,so as v,Pt as w,Do as x,bo as y,Eo as z};
|