You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
183 lines
2.6 MiB
183 lines
2.6 MiB
|
2 years ago
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function _3(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const sn={},na=[],Bt=()=>{},GC=()=>!1,YC=/^on[^a-z]/,sc=e=>YC.test(e),E3=e=>e.startsWith("onUpdate:"),bn=Object.assign,S3=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ZC=Object.prototype.hasOwnProperty,At=(e,t)=>ZC.call(e,t),We=Array.isArray,oa=e=>Pa(e)==="[object Map]",ic=e=>Pa(e)==="[object Set]",yi=e=>Pa(e)==="[object Date]",JC=e=>Pa(e)==="[object RegExp]",et=e=>typeof e=="function",nt=e=>typeof e=="string",Ql=e=>typeof e=="symbol",gt=e=>e!==null&&typeof e=="object",jl=e=>gt(e)&&et(e.then)&&et(e.catch),k7=Object.prototype.toString,Pa=e=>k7.call(e),V1=e=>Pa(e).slice(8,-1),M7=e=>Pa(e)==="[object Object]",x3=e=>nt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,P1=_3(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ac=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},$C=/-(\w)/g,Do=ac(e=>e.replace($C,(t,n)=>n?n.toUpperCase():"")),e_=/\B([A-Z])/g,Ns=ac(e=>e.replace(e_,"-$1").toLowerCase()),L2=ac(e=>e.charAt(0).toUpperCase()+e.slice(1)),D1=ac(e=>e?`on${L2(e)}`:""),Kl=(e,t)=>!Object.is(e,t),ra=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},C0=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},T4=e=>{const t=parseFloat(e);return isNaN(t)?e:t},t_=e=>{const t=nt(e)?Number(e):NaN;return isNaN(t)?e:t};let Z8;const H4=()=>Z8||(Z8=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(We(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=nt(o)?s_(o):Ke(o);if(r)for(const s in r)t[s]=r[s]}return t}else{if(nt(e))return e;if(gt(e))return e}}const n_=/;(?![^(]*\))/g,o_=/:([^]+)/,r_=/\/\*[^]*?\*\//g;function s_(e){const t={};return e.replace(r_,"").split(n_).forEach(n=>{if(n){const o=n.split(o_);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Q(e){let t="";if(nt(e))t=e;else if(We(e))for(let n=0;n<e.length;n++){const o=Q(e[n]);o&&(t+=o+" ")}else if(gt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Io(e){if(!e)return null;let{class:t,style:n}=e;return t&&!nt(t)&&(e.class=Q(t)),n&&(e.style=Ke(n)),e}const i_="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",a_=_3(i_);function z7(e){return!!e||e===""}function l_(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=pa(e[o],t[o]);return n}function pa(e,t){if(e===t)return!0;let n=yi(e),o=yi(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=Ql(e),o=Ql(t),n||o)return e===t;if(n=We(e),o=We(t),n||o)return n&&o?l_(e,t):!1;if(n=gt(e),o=gt(t),n||o){if(!n||!o)return!1;const r=Object.keys(e).length,s=Object.keys(t).length;if(r!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!pa(e[i],t[i]))return!1}}return String(e)===String(t)}function L7(e,t){return e.findIndex(n=>pa(n,t))}const Me=e=>nt(e)?e:e==null?"":We(e)||gt(e)&&(e.toString===k7||!et(e.toString))?JSON.stringify(e,T7,2):String(e),T7=(e,t)=>t&&t.__v_isRef?T7(e,t.value):oa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r])=>(n[`${o} =>`]=r,n),{})}:ic(t)?{[`Set(${t.size})`]:[...t.values()]}:gt(t)&&!We(t)&&!M7(t)?String(t):t;let Ao;class H7{constructor(t=!1){this.detached=t,this._
|
||
|
|
(?:
|
||
|
|
(?:`+o+":){7}(?:"+o+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
|
|
(?:`+o+":){6}(?:"+n+"|:"+o+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
|
|
(?:`+o+":){5}(?::"+n+"|(?::"+o+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
|
|
(?:`+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
|
|
(?:`+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
|
|
(?:`+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
|
|
(?:`+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
|
|
(?::(?:(?::`+o+"){0,5}:"+n+"|(?::"+o+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
|
|
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),i=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),l=function(w){return w&&w.exact?s:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+r+t(w)+")","g")};l.v4=function(m){return m&&m.exact?i:new RegExp(""+t(m)+n+t(m),"g")},l.v6=function(m){return m&&m.exact?a:new RegExp(""+t(m)+r+t(m),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",u=l.v4().source,h=l.v6().source,f="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',A="(?:"+c+"|www\\.)"+d+"(?:localhost|"+u+"|"+h+"|"+f+p+v+")"+y+g;return h1=new RegExp("(?:^"+A+"$)","i"),h1},t5={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},pl={integer:function(t){return pl.number(t)&&parseInt(t,10)===t},float:function(t){return pl.number(t)&&!pl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!pl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(t5.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Q4e())},hex:function(t){return typeof t=="string"&&!!t.match(t5.hex)}},j4e=function(t,n,o,r,s){if(t.required&&n===void 0){Dg(t,n,o,r,s);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;i.indexOf(a)>-1?pl[a](n)||r.push(So(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&r.push(So(s.messages.types[a],t.fullField,t.type))},K4e=function(t,n,o,r,s){var i=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,u=null,h=typeof n=="number",f=typeof n=="string",p=Array.isArray(n);if(h?u="number":f?u="string":p&&(u="array"),!u)return!1;p&&(d=n.length),f&&(d=n.replace(c,"_").length),i?d!==t.len&&r.push(So(s.messages[u].len,t.fullField,t.len)):a&&!l&&d<t.min?r.push(So(s.messages[u].min,t.fullField,t.min)):l&&!a&&d>t.max?r.push(So(s.messages[u].max,t.fullField,t.max)):a&&l&&(d<t.min||d>t.max)&&r.push(So(s.messages[u].range,t.fullField,t.min,t.max))},Ii="enum",q4e=function(t,n,o,r,s){t[Ii]=Array.isArray(t[Ii])?t[Ii]:[],t[Ii].indexOf(n)===-1&&r.push(So(s.messages[Ii],t.fullField,t[Ii].join(", ")))},U4e=function(t,n,o,r,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(So(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||r.push(So(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Vt={required:Dg,whitespace:W4e,type:j4e,range:K4e,enum:q4e,pattern:U4e},X4e=function(t,n,o,r,s){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(zn(n,"string")&&!t.required)return o();Vt.required(t,n,r,i,s,"string"),zn(n,"string")||(Vt.type(t,n,r,i,s),Vt.range(t,n,r,i,s),Vt.pattern(t,n,r,i,s),t.whitespace===!0&&Vt.whitespace(t,n,r,i,s))}o(i)},G4e=function(t,n,o,r,s){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(zn(n)&&!t.required)return o();Vt.required(t,n,r,i,s),n!==void 0&&Vt.type(t,n,r,i,s)}o(i)},Y4e=function(t,n,o,r,s){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),zn(n)&&!t.required)return o();Vt.required(t,n,r,i,s),n!==void 0&&(Vt.type(t,n,r,i,s),Vt.range(t,n,r,i,s))}o(i)},Z4e=function(t,n,o,r,s){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(zn
|
||
|
|
height:0 !important;
|
||
|
|
visibility:hidden !important;
|
||
|
|
${Fv()?"":"overflow:hidden !important;"}
|
||
|
|
position:absolute !important;
|
||
|
|
z-index:-1000 !important;
|
||
|
|
top:0 !important;
|
||
|
|
right:0 !important;
|
||
|
|
`,m6e=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function g6e(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:m6e.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:o,borderSize:r,boxSizing:n}}function o5(e,t=1,n){var o;Uo||(Uo=document.createElement("textarea"),document.body.appendChild(Uo));const{paddingSize:r,borderSize:s,boxSizing:i,contextStyle:a}=g6e(e);Uo.setAttribute("style",`${a};${v6e}`),Uo.value=e.value||e.placeholder||"";let l=Uo.scrollHeight;const c={};i==="border-box"?l=l+s:i==="content-box"&&(l=l-r),Uo.value="";const d=Uo.scrollHeight-r;if(Je(t)){let u=d*t;i==="border-box"&&(u=u+r+s),l=Math.max(u,l),c.minHeight=`${u}px`}if(Je(n)){let u=d*n;i==="border-box"&&(u=u+r+s),l=Math.min(u,l)}return c.height=`${l}px`,(o=Uo.parentNode)==null||o.removeChild(Uo),Uo=void 0,c}const b6e=Ie({id:{type:String,default:void 0},size:Qn,disabled:Boolean,modelValue:{type:pe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:pe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:jt},prefixIcon:{type:jt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:pe([Object,Array,String]),default:()=>Zt({})}}),y6e={[vt]:e=>nt(e),input:e=>nt(e),change:e=>nt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},w6e=["role"],A6e=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],C6e=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],_6e=ie({name:"ElInput",inheritAttrs:!1}),E6e=ie({..._6e,props:b6e,emits:y6e,setup(e,{expose:t,emit:n}){const o=e,r=Fa(),s=Pn(),i=I(()=>{const we={};return o.containerRole==="combobox"&&(we["aria-haspopup"]=r["aria-haspopup"],we["aria-owns"]=r["aria-owns"],we["aria-expanded"]=r["aria-expanded"]),we}),a=I(()=>[o.type==="textarea"?y.b():v.b(),v.m(f.value),v.is("disabled",p.value),v.is("exceed",q.value),{[v.b("group")]:s.prepend||s.append,[v.bm("group","append")]:s.append,[v.bm("group","prepend")]:s.prepend,[v.m("prefix")]:s.prefix||o.prefixIcon,[v.m("suffix")]:s.suffix||o.suffixIcon||o.clearable||o.showPassword,[v.bm("suffix","password-clear")]:O.value&&V.value},r.class]),l=I(()=>[v.e("wrapper"),v.is("focus",m.value)]),c=bd({excludeKeys:I(()=>Object.keys(i.value))}),{form:d,formItem:u}=ro(),{inputId:h}=Qs(o,{formItemContext:u}),f=An(),p=go(),v=Se("input"),y=Se("textarea"),g=Dt(),A=Dt(),m=U(!1),w=U(!1),E=U(!1),_=U(!1),S=U(),C=Dt(o.inputStyle),k=I(()=>g.value||A.value),x=I(()=>{var we;return(we=d==null?void 0:d.statusIcon)!=null?we:!1}),M=I(()=>(u==null?void 0:u.validateState)||""),T=I(()=>M.value&&Ym[M.value]),L=I(()=>_.value?qm:Im),H=I(()=>[r.style,o.inputStyle]),F=I(()=>[o.inputStyle,C.value,{resize:o.resize}]),D=I(()=>vn(o.modelValue)?"":String(o.modelValue)),O=I(()=>o.clearable&&!p.value&&!o.readonly&&!!D.value&&(m.value||w.value)),V=I(()=>o.showPassword&&!p.value&&!o.readonly&&!!D
|
||
|
|
* Checks if an event is supported in the current execution environment.
|
||
|
|
*
|
||
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
|
|
* `reset`, `load`, `error`, and `select`.
|
||
|
|
*
|
||
|
|
* Borrows from Modernizr.
|
||
|
|
*
|
||
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
|
|
* @param {?boolean} capture Check if the capture phase is supported.
|
||
|
|
* @return {boolean} True if the event is supported.
|
||
|
|
* @internal
|
||
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
|
|
*/const s8e=function(e,t){if(e&&e.addEventListener){const n=function(o){const r=r8e(o);t&&Reflect.apply(t,this,[o,r])};e.addEventListener("wheel",n,{passive:!0})}},i8e={beforeMount(e,t){s8e(e,t.value)}},a8e=Ie({role:{type:String,required:!0},spinnerDate:{type:pe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:pe(String),default:""},...fb}),l8e=["onClick"],c8e=["onMouseenter"],u8e=ie({__name:"basic-time-spinner",props:a8e,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,o=Se("time"),{getHoursList:r,getMinutesList:s,getSecondsList:i}=gb(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let a=!1;const l=U(),c=U(),d=U(),u=U(),h={hours:c,minutes:d,seconds:u},f=I(()=>n.showSeconds?g5:g5.slice(0,2)),p=I(()=>{const{spinnerDate:P}=n,N=P.hour(),q=P.minute(),W=P.second();return{hours:N,minutes:q,seconds:W}}),v=I(()=>{const{hours:P,minutes:N}=b(p);return{hours:r(n.role),minutes:s(P,n.role),seconds:i(P,N,n.role)}}),y=I(()=>{const{hours:P,minutes:N,seconds:q}=b(p);return{hours:Ru(P,23),minutes:Ru(N,59),seconds:Ru(q,59)}}),g=oo(P=>{a=!1,w(P)},200),A=P=>{if(!!!n.amPmMode)return"";const q=n.amPmMode==="A";let W=P<12?" am":" pm";return q&&(W=W.toUpperCase()),W},m=P=>{let N;switch(P){case"hours":N=[0,2];break;case"minutes":N=[3,5];break;case"seconds":N=[6,8];break}const[q,W]=N;t("select-range",q,W),l.value=P},w=P=>{S(P,b(p)[P])},E=()=>{w("hours"),w("minutes"),w("seconds")},_=P=>P.querySelector(`.${o.namespace.value}-scrollbar__wrap`),S=(P,N)=>{if(n.arrowControl)return;const q=b(h[P]);q&&q.$el&&(_(q.$el).scrollTop=Math.max(0,N*C(P)))},C=P=>{const N=b(h[P]);return(N==null?void 0:N.$el.querySelector("li").offsetHeight)||0},k=()=>{M(1)},x=()=>{M(-1)},M=P=>{l.value||m("hours");const N=l.value,q=b(p)[N],W=l.value==="hours"?24:60,G=T(N,q,P,W);L(N,G),S(N,G),Ne(()=>m(N))},T=(P,N,q,W)=>{let G=(N+q+W)%W;const Y=b(v)[P];for(;Y[G]&&G!==N;)G=(G+q+W)%W;return G},L=(P,N)=>{if(b(v)[P][N])return;const{hours:G,minutes:Y,seconds:oe}=b(p);let ne;switch(P){case"hours":ne=n.spinnerDate.hour(N).minute(Y).second(oe);break;case"minutes":ne=n.spinnerDate.hour(G).minute(N).second(oe);break;case"seconds":ne=n.spinnerDate.hour(G).minute(Y).second(N);break}t("change",ne)},H=(P,{value:N,disabled:q})=>{q||(L(P,N),m(P),S(P,N))},F=P=>{a=!0,g(P);const N=Math.min(Math.round((_(b(h[P]).$el).scrollTop-(D(P)*.5-10)/C(P)+3)/C(P)),P==="hours"?23:59);L(P,N)},D=P=>b(h[P]).$el.offsetHeight,O=()=>{const P=N=>{const q=b(h[N]);q&&q.$el&&(_(q.$el).onscroll=()=>{F(N)})};P("hours"),P("minutes"),P("seconds")};ot(()=>{Ne(()=>{!n.arrowControl&&O(),E(),n.role==="start"&&m("hours")})});const V=(P,N)=>{h[N].value=P};return t("set-option",[`${n.role}_scrollDown`,M]),t("set-option",[`${n.role}_emitSelectRange`,m]),be(()=>n.spinnerDate,()=>{a||E()}),(P,N)=>(z(),B("div",{class:Q([b(o).b("spinner"),{"has-seconds":P.showSeconds}])},[P.arrowControl?de("v-if",!0):(z(!0),B(De,{key:0},mt(b(f),q=>(z(),he(b(os),{key:q,ref_for:!0,ref:W=>V(W,q),class:Q(b(o).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":b(o).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:W=>m(q),onMousemove:W=>w(q)},{default:re(()=>[(z(!0),B(De,null,mt(b(v)[q],(W,G)=>(z(),B("li",{key:G,class:Q([b(o).be("spinner","item"),b(o).is("active",G===b(p)[q]),b(o).is("disabled",W)]),onClick:Y=>H(q,{value:G,disabled:W})},[q==="hours"?(z(),B(De,{key:0},[yt(Me(("0"+(P.amPmMode?G%12||12:G)).slice(-2))+Me(A(G)),1)],64)):(z(),B(De,{key:1},[yt(Me(("0"+G).slice(-2)),1)],64))],10,l8e))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),P.arrowControl?(z(!0),B(De,{key:1},mt(b(f),q=>(z(),B("div",{key:q,class:Q([b(o).be("spinner","wrapper"),b(o).is("arrow")]),onMouseenter:W=>m(q)},[it((z(),he(b(je),{class:Q(["arrow-up",b(o).be("spinner","arrow")])},{default:re(()=>[ee(b(D2))]),_:1},8,["class"])),[[b(B0),x]]),it((z(),he(b(je),{class:Q(["arrow-down",b(o).be("spinner","arrow")])},{default:re(()=>[ee(b(es))]),_:1},8,["class"])),[[b(B0),k]]),R("ul",{class:Q(b(o).be("spinner","list"))},[(z(!0),B(De,null,mt(b(y)[q],(W,G)=>(z(),B("li",
|
||
|
|
Add an empty element to avoid render label,
|
||
|
|
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
|
|
`),jhe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(z(),he(c,{key:2,class:Q(e.ns.e("prefix"))},{default:re(()=>[ee(l)]),_:1},8,["class"])):de("v-if",!0),de(" content "),ee(d),de(" postfix "),e.isLeaf?de("v-if",!0):(z(),B(De,{key:3},[e.node.loading?(z(),he(c,{key:0,class:Q([e.ns.is("loading"),e.ns.e("postfix")])},{default:re(()=>[ee(u)]),_:1},8,["class"])):(z(),he(c,{key:1,class:Q(["arrow-right",e.ns.e("postfix")])},{default:re(()=>[ee(h)]),_:1},8,["class"]))],64))],42,Qhe)}var qhe=Oe(Whe,[["render",Khe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const Uhe=ie({name:"ElCascaderMenu",components:{Loading:ns,ElIcon:je,ElScrollbar:os,ElCascaderNode:qhe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=at(),n=Se("cascader-menu"),{t:o}=kt(),r=Vc();let s=null,i=null;const a=Be(Wd),l=U(null),c=I(()=>!e.nodes.length),d=I(()=>!a.initialLoaded),u=I(()=>`cascader-menu-${r}-${e.index}`),h=y=>{s=y.target},f=y=>{if(!(!a.isHoverMenu||!s||!l.value))if(s.contains(y.target)){p();const g=t.vnode.el,{left:A}=g.getBoundingClientRect(),{offsetWidth:m,offsetHeight:w}=g,E=y.clientX-A,_=s.offsetTop,S=_+s.offsetHeight;l.value.innerHTML=`
|
||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${E} ${_} L${m} 0 V${_} Z" />
|
||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${E} ${S} L${m} ${w} V${S} Z" />
|
||
|
|
`}else i||(i=window.setTimeout(v,a.config.hoverThreshold))},p=()=>{i&&(clearTimeout(i),i=null)},v=()=>{l.value&&(l.value.innerHTML="",p())};return{ns:n,panel:a,hoverZone:l,isEmpty:c,isLoading:d,menuId:u,t:o,handleExpand:h,handleMouseMove:f,clearHoverZone:v}}});function Xhe(e,t,n,o,r,s){const i=rt("el-cascader-node"),a=rt("loading"),l=rt("el-icon"),c=rt("el-scrollbar");return z(),he(c,{key:e.menuId,tag:"ul",role:"menu",class:Q(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:re(()=>{var d;return[(z(!0),B(De,null,mt(e.nodes,u=>(z(),he(i,{key:u.uid,node:u,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(z(),B("div",{key:0,class:Q(e.ns.e("empty-text"))},[ee(l,{size:"14",class:Q(e.ns.is("loading"))},{default:re(()=>[ee(a)]),_:1},8,["class"]),yt(" "+Me(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(z(),B("div",{key:1,class:Q(e.ns.e("empty-text"))},Me(e.t("el.cascader.noData")),3)):(d=e.panel)!=null&&d.isHoverMenu?(z(),B("svg",{key:2,ref:"hoverZone",class:Q(e.ns.e("hover-zone"))},null,2)):de("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var Ghe=Oe(Uhe,[["render",Xhe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let Yhe=0;const Zhe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let C6=class _6{constructor(t,n,o,r=!1){this.data=t,this.config=n,this.parent=o,this.root=r,this.uid=Yhe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:s,label:i,children:a}=n,l=t[a],c=Zhe(this);this.level=r?0:o?o.level+1:1,this.value=t[s],this.label=t[i],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=l,this.children=(l||[]).map(d=>new _6(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!Oo(l)}get isDisabled(){const{data:t,parent:n,config:o}=this,{disabled:r,checkStrictly:s}=o;return(et(r)?r(t,this):!!t[r])||!s&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:o,loaded:r}=this,{lazy:s,leaf:i}=n,a=et(i)?i(t,this):t[i];return Rn(a)?s&&!r?!1:!(Array.isArray(o)&&o.length):!!a}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:o}=this,r=new _6(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],o.push(r),r}calcText(t,n){const o=t?this.pathLabels.join(n):this.label;return this.text=o,o}broadcast(t,...n){const o=`onParent${pr(t)}`;this.children.forEach(r=>{r&&(r.broadcast(t,...n),r[o]&&r[o](...n))})}emit(t,...n){const{parent:o}=this,r=`onChild${pr(t)}`;o&&(o[r]&&o[r](...n),o.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(r=>!r.isDisabled),o=n.length?n.every(r=>r.checked):!1;this.setCheckState(o)}setCheckState(t){const n=this.children.length,o=this.children.reduce((r,s)=>{const i=s.checked?1:s.indeterminate?.5:0;return r+i},0);this.checked=this.loaded&&this.children.filter(r=>!r.isDisabled).every(r=>r.loaded&&r.checked)&&t,this.indeterminate=this.loaded&&o!==n&&o>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:o}=this.config;n||!o?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const E6=(e,t)=>e.reduce((n,o)=>(o.isLeaf?n.push(o):(!t&&n.push(o),n=n.concat(E6(o.children,t))),n),[]);class T5{constructor(t,n){this.config=n;const o=(t||[]).map(r=>new C6(r,this.config));this.nodes=o,this.allNodes=E6(o,!1),this.leafNodes=E6(o,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const o=n?n.appendChild(t):new C6(t,this.config);n||this.nodes.push(o),this.allNodes.push(o),o.isLeaf&&this.leafNodes.push(o)}appendNodes(t,n){t.forEach(o=>this.appendNode(o,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(r=>ho(r.value,t)||ho(r.pathValues,t))||null}getSameNode(t){return t&&t
|
||
|
|
M 50 50
|
||
|
|
m 0 ${w?"":"-"}${m}
|
||
|
|
a ${m} ${m} 0 1 1 0 ${w?"-":""}${m*2}
|
||
|
|
a ${m} ${m} 0 1 1 0 ${w?"":"-"}${m*2}
|
||
|
|
`}),l=I(()=>2*Math.PI*i.value),c=I(()=>t.type==="dashboard"?.75:1),d=I(()=>`${-1*l.value*(1-c.value)/2}px`),u=I(()=>({strokeDasharray:`${l.value*c.value}px, ${l.value}px`,strokeDashoffset:d.value})),h=I(()=>({strokeDasharray:`${l.value*c.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),f=I(()=>{let m;return t.color?m=A(t.percentage):m=n[t.status]||n.default,m}),p=I(()=>t.status==="warning"?N2:t.type==="line"?t.status==="success"?Lc:ts:t.status==="success"?ja:Wo),v=I(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),y=I(()=>t.format(t.percentage));function g(m){const w=100/m.length;return m.map((_,S)=>nt(_)?{color:_,percentage:(S+1)*w}:_).sort((_,S)=>_.percentage-S.percentage)}const A=m=>{var w;const{color:E}=t;if(et(E))return E(m);if(nt(E))return E;{const _=g(E);for(const S of _)if(S.percentage>m)return S.color;return(w=_[_.length-1])==null?void 0:w.color}};return(m,w)=>(z(),B("div",{class:Q([b(o).b(),b(o).m(m.type),b(o).is(m.status),{[b(o).m("without-text")]:!m.showText,[b(o).m("text-inside")]:m.textInside}]),role:"progressbar","aria-valuenow":m.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[m.type==="line"?(z(),B("div",{key:0,class:Q(b(o).b("bar"))},[R("div",{class:Q(b(o).be("bar","outer")),style:Ke({height:`${m.strokeWidth}px`})},[R("div",{class:Q([b(o).be("bar","inner"),{[b(o).bem("bar","inner","indeterminate")]:m.indeterminate},{[b(o).bem("bar","inner","striped")]:m.striped},{[b(o).bem("bar","inner","striped-flow")]:m.stripedFlow}]),style:Ke(b(r))},[(m.showText||m.$slots.default)&&m.textInside?(z(),B("div",{key:0,class:Q(b(o).be("bar","innerText"))},[_e(m.$slots,"default",{percentage:m.percentage},()=>[R("span",null,Me(b(y)),1)])],2)):de("v-if",!0)],6)],6)],2)):(z(),B("div",{key:1,class:Q(b(o).b("circle")),style:Ke({height:`${m.width}px`,width:`${m.width}px`})},[(z(),B("svg",Nge,[R("path",{class:Q(b(o).be("circle","track")),d:b(a),stroke:`var(${b(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":b(s),fill:"none",style:Ke(b(u))},null,14,Fge),R("path",{class:Q(b(o).be("circle","path")),d:b(a),stroke:b(f),fill:"none",opacity:m.percentage?1:0,"stroke-linecap":m.strokeLinecap,"stroke-width":b(s),style:Ke(b(h))},null,14,Wge)]))],6)),(m.showText||m.$slots.default)&&!m.textInside?(z(),B("div",{key:2,class:Q(b(o).e("text")),style:Ke({fontSize:`${b(v)}px`})},[_e(m.$slots,"default",{percentage:m.percentage},()=>[m.status?(z(),he(b(je),{key:1},{default:re(()=>[(z(),he(bt(b(p))))]),_:1})):(z(),B("span",Qge,Me(b(y)),1))])],6)):de("v-if",!0)],10,Dge))}});var qge=Oe(Kge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const Dy=ft(qge),Uge=Ie({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:pe([Array,Object]),default:()=>Zt(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:pe([Array,Object]),default:()=>[fl,fl,fl]},voidIcon:{type:jt,default:()=>Km},disabledVoidIcon:{type:jt,default:()=>fl},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:pe(Array),default:()=>Zt(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Qn,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),Xge={[Ut]:e=>Je(e),[vt]:e=>Je(e)},Gge=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],Yge=["onMousemove","onClick"],Zge=ie({name:"ElRate"}),Jge=ie({...Zge,props:Uge,emits:Xge,setup(e,{expose:t,emit:n}){const o=e;function r(D,O){const V=q=>gt(q),P=Object.keys(O).map(q=>+q).filter(q=>{const W=O[q];return(V(W)?W.excluded:!1)?D<q:D<=q}).sort((q,W)=>q-W),N=O[P[0]];return V(N)&&N.value||N}const s=Be(Hi,void 0),i=Be(Sr,void 0),a=An(),l=Se("rate"),{inputId:c,isLabeledByFormItem:d}=Qs(o,{formItemContext:i}),u=U(
|
||
|
|
* escape-html
|
||
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
|
|
* Copyright(c) 2015 Andreas Lubbe
|
||
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
|
|
* MIT Licensed
|
||
|
|
*/var bwe=/["'&<>]/,ywe=wwe;function wwe(e){var t=""+e,n=bwe.exec(t);if(!n)return t;var o,r="",s=0,i=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}i!==s&&(r+=t.substring(i,s)),i=s+1,r+=o}return i!==s?r+t.substring(i,s):r}const Awe=qo(ywe),Qu=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Cwe=function(e,t,n,o,r){if(!t&&!o&&(!r||Array.isArray(r)&&!r.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=o?null:function(a,l){return r?(Array.isArray(r)||(r=[r]),r.map(c=>typeof c=="string"?Yt(a,c):c(a,l,e))):(t!=="$key"&>(a)&&"$value"in a&&(a=a.$value),[gt(a)?Yt(a,t):a])},i=function(a,l){if(o)return o(a.value,l.value);for(let c=0,d=a.key.length;c<d;c++){if(a.key[c]<l.key[c])return-1;if(a.key[c]>l.key[c])return 1}return 0};return e.map((a,l)=>({value:a,index:l,key:s?s(a,l):null})).sort((a,l)=>{let c=i(a,l);return c||(c=a.index-l.index),c*+n}).map(a=>a.value)},iw=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},_we=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const r=e.columns[o];if(r.columnKey===t){n=r;break}}return n||wn("ElTable",`No column matching with column-key: ${t}`),n},np=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?iw(e,o[0]):null},Fn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const r of n)o=o[r];return`${o}`}else if(typeof t=="function")return t.call(null,e)},ui=function(e,t){const n={};return(e||[]).forEach((o,r)=>{n[Fn(o,t)]={row:o,index:r}}),n};function Ewe(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(At(t,o)){const r=t[o];typeof r<"u"&&(n[o]=r)}return n}function r8(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function aw(e){return e===""||e!==void 0&&(e=r8(e),Number.isNaN(e)&&(e=80)),e}function Swe(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function xwe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function zl(e,t,n){let o=!1;const r=e.indexOf(t),s=r!==-1,i=a=>{a==="add"?e.push(t):e.splice(r,1),o=!0,We(t.children)&&t.children.forEach(l=>{zl(e,l,n??!s)})};return mn(n)?n&&!s?i("add"):!n&&s&&i("remove"):i(s?"remove":"add"),o}function kwe(e,t,n="children",o="hasChildren"){const r=i=>!(Array.isArray(i)&&i.length);function s(i,a,l){t(i,a,l),a.forEach(c=>{if(c[o]){t(c,null,l+1);return}const d=c[n];r(d)||s(c,d,l+1)})}e.forEach(i=>{if(i[o]){t(i,null,0);return}const a=i[n];r(a)||s(i,a,0)})}let Br;function Mwe(e,t,n,o,r){r=Am({enterable:!0,showArrow:!0},r);const s=e==null?void 0:e.dataset.prefix,i=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function a(){const y=r.effect==="light",g=document.createElement("div");return g.className=[`${s}-popper`,y?"is-light":"is-dark",r.popperClass||""].join(" "),n=Awe(n),g.innerHTML=n,g.style.zIndex=String(o()),e==null||e.appendChild(g),g}function l(){const y=document.createElement("div");return y.className=`${s}-popper__arrow`,y}function c(){d&&d.update()}Br==null||Br(),Br=()=>{try{d&&d.destroy(),f&&(e==null||e.removeChild(f)),t.removeEventListener("mouseenter",u),t.removeEventListener("mouseleave",h),i==null||i.removeEventListener("scroll",Br),Br=void 0}catch{}};let d=null,u=c,h=Br;r.enterable&&({onOpen:u,onClose:h}=yg({showAfter:r.showAfter,hideAfter:r.hideAfter,open:c,close:Br}));const f=a();f.onmouseenter=u,f.onmouseleave=h;const p=[];if(r.offset&&p.push({name:"offset",options:{offset:[0,r.offset]}}),r.showArrow){const y=f.appendChild(l());p.push({name:"arrow",options:{element:y,padding:10}})}const v=r.popperOptions||{};return d=mg(t,f,{placement:r.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?p.concat(v.modifiers):p}),t.addEventListener("mouseenter",u),t.addEventListener("mouseleave",h),i==null||i.addEventListe
|
||
|
|
* pinia v2.1.3
|
||
|
|
* (c) 2023 Eduardo San Martin Morote
|
||
|
|
* @license MIT
|
||
|
|
*/let nA;const Zc=e=>nA=e,oA=Symbol();function $6(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Tl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Tl||(Tl={}));function KSe(){const e=lc(!0),t=e.run(()=>U({}));let n=[],o=[];const r=br({install(s){Zc(r),r._a=s,s.provide(oA,r),s.config.globalProperties.$pinia=r,o.forEach(i=>n.push(i)),o=[]},use(s){return!this._a&&!jSe?o.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const rA=()=>{};function Ap(e,t,n,o=rA){e.push(t);const r=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),o())};return!n&&cc()&&uc(r),r}function Pi(e,...t){e.slice().forEach(n=>{n(...t)})}const qSe=e=>e();function e3(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];$6(r)&&$6(o)&&e.hasOwnProperty(n)&&!It(o)&&!Wr(o)?e[n]=e3(r,o):e[n]=o}return e}const USe=Symbol();function XSe(e){return!$6(e)||!e.hasOwnProperty(USe)}const{assign:vs}=Object;function GSe(e){return!!(It(e)&&e.effect)}function YSe(e,t,n,o){const{state:r,actions:s,getters:i}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=r?r():{});const d=yn(n.state.value[e]);return vs(d,s,Object.keys(i||{}).reduce((u,h)=>(u[h]=br(I(()=>{Zc(n);const f=n._s.get(e);return i[h].call(f,f)})),u),{}))}return l=sA(e,c,t,n,o,!0),l}function sA(e,t,n={},o,r,s){let i;const a=vs({actions:{}},n),l={deep:!0};let c,d,u=[],h=[],f;const p=o.state.value[e];!s&&!p&&(o.state.value[e]={}),U({});let v;function y(C){let k;c=d=!1,typeof C=="function"?(C(o.state.value[e]),k={type:Tl.patchFunction,storeId:e,events:f}):(e3(o.state.value[e],C),k={type:Tl.patchObject,payload:C,storeId:e,events:f});const x=v=Symbol();Ne().then(()=>{v===x&&(c=!0)}),d=!0,Pi(u,k,o.state.value[e])}const g=s?function(){const{state:k}=n,x=k?k():{};this.$patch(M=>{vs(M,x)})}:rA;function A(){i.stop(),u=[],h=[],o._s.delete(e)}function m(C,k){return function(){Zc(o);const x=Array.from(arguments),M=[],T=[];function L(D){M.push(D)}function H(D){T.push(D)}Pi(h,{args:x,name:C,store:E,after:L,onError:H});let F;try{F=k.apply(this&&this.$id===e?this:E,x)}catch(D){throw Pi(T,D),D}return F instanceof Promise?F.then(D=>(Pi(M,D),D)).catch(D=>(Pi(T,D),Promise.reject(D))):(Pi(M,F),F)}}const w={_p:o,$id:e,$onAction:Ap.bind(null,h),$patch:y,$reset:g,$subscribe(C,k={}){const x=Ap(u,C,k.detached,()=>M()),M=i.run(()=>be(()=>o.state.value[e],T=>{(k.flush==="sync"?d:c)&&C({storeId:e,type:Tl.direct,events:f},T)},vs({},l,k)));return x},$dispose:A},E=xt(w);o._s.set(e,E);const _=o._a&&o._a.runWithContext||qSe,S=o._e.run(()=>(i=lc(),_(()=>i.run(t))));for(const C in S){const k=S[C];if(It(k)&&!GSe(k)||Wr(k))s||(p&&XSe(k)&&(It(k)?k.value=p[C]:e3(k,p[C])),o.state.value[e][C]=k);else if(typeof k=="function"){const x=m(C,k);S[C]=x,a.actions[C]=k}}return vs(E,S),vs(Ot(E),S),Object.defineProperty(E,"$state",{get:()=>o.state.value[e],set:C=>{y(k=>{vs(k,C)})}}),o._p.forEach(C=>{vs(E,i.run(()=>C({store:E,app:o._a,pinia:o,options:a})))}),p&&s&&n.hydrate&&n.hydrate(E.$state,p),c=!0,d=!0,E}function Jc(e,t,n){let o,r;const s=typeof t=="function";typeof e=="string"?(o=e,r=s?n:t):(r=e,o=e.id);function i(a,l){const c=CE();return a=a||(c?Be(oA,null):null),a&&Zc(a),a=nA,a._s.has(o)||(s?sA(o,t,r,a):YSe(o,r,a)),a._s.get(o)}return i.$id=o,i}function KOe(e){{e=Ot(e);const t={};for(const n in e){const o=e[n];(It(o)||Wr(o))&&(t[n]=qt(e,n))}return t}}function $c(e){return cc()?(uc(e),!0):!1}function On(e){return typeof e=="function"?e():b(e)}const C8=typeof window<"u",ZSe=e=>typeof e<"u",S2=()=>{},JSe=$Se();function $Se(){var e;return C8&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function iA(e,t){function n(...o){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(s)})}return n}const aA=e=>e();function exe(e,t=!0,n=!0,o=!1){let r=0,s,i=!0,a=S2
|
||
|
|
* vue-router v4.2.1
|
||
|
|
* (c) 2023 Eduardo San Martin Morote
|
||
|
|
* @license MIT
|
||
|
|
*/const qi=typeof window<"u";function Yxe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Xt=Object.assign;function Yu(e,t){const n={};for(const o in t){const r=t[o];n[o]=rr(r)?r.map(e):e(r)}return n}const Hl=()=>{},rr=Array.isArray,Zxe=/\/$/,Jxe=e=>e.replace(Zxe,"");function Zu(e,t,n="/"){let o,r={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(o=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),r=e(s)),a>-1&&(o=o||t.slice(0,a),i=t.slice(a,t.length)),o=nke(o??t,n),{fullPath:o+(s&&"?")+s+i,path:o,query:r,hash:i}}function $xe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Dp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function eke(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Oa(t.matched[o],n.matched[r])&&bA(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Oa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function bA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tke(e[n],t[n]))return!1;return!0}function tke(e,t){return rr(e)?Np(e,t):rr(t)?Np(t,e):e===t}function Np(e,t){return rr(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function nke(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let s=n.length-1,i,a;for(i=0;i<o.length;i++)if(a=o[i],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(i-(i===o.length?1:0)).join("/")}var x2;(function(e){e.pop="pop",e.push="push"})(x2||(x2={}));var Ol;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ol||(Ol={}));function oke(e){if(!e)if(qi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Jxe(e)}const rke=/^[^#]+#/;function ske(e,t){return e.replace(rke,"#")+t}function ike(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)}}const eu=()=>({left:window.pageXOffset,top:window.pageYOffset});function ake(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=ike(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Fp(e,t){return(history.state?history.state.position-t:-1)+e}const t3=new Map;function lke(e,t){t3.set(e,t)}function cke(e){const t=t3.get(e);return t3.delete(e),t}let uke=()=>location.protocol+"//"+location.host;function yA(e,t){const{pathname:n,search:o,hash:r}=t,s=e.indexOf("#");if(s>-1){let a=r.includes(e.slice(s))?e.slice(s).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),Dp(l,"")}return Dp(n,e)+o+r}function dke(e,t,n,o){let r=[],s=[],i=null;const a=({state:h})=>{const f=yA(e,location),p=n.value,v=t.value;let y=0;if(h){if(n.value=f,t.value=h,i&&i===p){i=null;return}y=v?h.position-v.position:0}else o(f);r.forEach(g=>{g(n.value,p,{delta:y,type:x2.pop,direction:y?y>0?Ol.forward:Ol.back:Ol.unknown})})};function l(){i=n.value}function c(h){r.push(h);const f=()=>{const p=r.indexOf(h);p>-1&&r.splice(p,1)};return s.push(f),f}function d(){const{history:h}=window;h.state&&h.replaceState(Xt({},h.state,{scroll:eu()}),"")}function u(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:u}}function Wp(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?eu():null}}function hke(e){const{history:t,location:n}=window,o={value:yA(e,n)},r={value:t.state};r.value||s(o.value,{back:null,current:o.value,forward:null,posi
|
||
|
|
`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),o=i.substring(r+1).trim(),!(!n||t[n]&&ZMe[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},a9=Symbol("internals");function il(e){return e&&String(e).trim().toLowerCase()}function p0(e){return e===!1||e==null?e:Fe.isArray(e)?e.map(p0):String(e)}function $Me(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const eze=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function e4(e,t,n,o,r){if(Fe.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!Fe.isString(t)){if(Fe.isString(o))return t.indexOf(o)!==-1;if(Fe.isRegExp(o))return o.test(t)}}function tze(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function nze(e,t){const n=Fe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,s,i){return this[o].call(this,t,r,s,i)},configurable:!0})})}class au{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function s(a,l,c){const d=il(l);if(!d)throw new Error("header name must be a non-empty string");const u=Fe.findKey(r,d);(!u||r[u]===void 0||c===!0||c===void 0&&r[u]!==!1)&&(r[u||l]=p0(a))}const i=(a,l)=>Fe.forEach(a,(c,d)=>s(c,d,l));return Fe.isPlainObject(t)||t instanceof this.constructor?i(t,n):Fe.isString(t)&&(t=t.trim())&&!eze(t)?i(JMe(t),n):t!=null&&s(n,t,o),this}get(t,n){if(t=il(t),t){const o=Fe.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return $Me(r);if(Fe.isFunction(n))return n.call(this,r,o);if(Fe.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=il(t),t){const o=Fe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||e4(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function s(i){if(i=il(i),i){const a=Fe.findKey(o,i);a&&(!n||e4(o,o[a],a,n))&&(delete o[a],r=!0)}}return Fe.isArray(t)?t.forEach(s):s(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const s=n[o];(!t||e4(this,this[s],s,t,!0))&&(delete this[s],r=!0)}return r}normalize(t){const n=this,o={};return Fe.forEach(this,(r,s)=>{const i=Fe.findKey(o,s);if(i){n[i]=p0(r),delete n[s];return}const a=t?tze(s):String(s).trim();a!==s&&delete n[s],n[a]=p0(r),o[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Fe.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&Fe.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[a9]=this[a9]={accessors:{}}).accessors,r=this.prototype;function s(i){const a=il(i);o[a]||(nze(r,i),o[a]=!0)}return Fe.isArray(t)?t.forEach(s):s(t),this}}au.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Fe.freezeMethods(au.prototype);Fe.freezeMethods(au);const Kr=au;function t4(e,t){const n=this||z8,o=t||n,r=Kr.from(o.headers);let s=o.data;return Fe.forEach(e,function(a){s=a.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function KA(e){return!!(e&&e.__CANCEL__)}function X2(e,t,n){Ft.call(this,e??"canceled",Ft.ERR_CANCELED,t,n),this.name="CanceledError"}Fe.inherits(X2,Ft,{__CANCEL__:!0});function oze(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new Ft("Request failed with status code "+n.status,[Ft.ERR_BAD_REQUEST,Ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const rze=gr.isStandardBrowserEnv?function(){return{write:function(n,o,r,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(o)),Fe.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Fe.isString(s)&&l.push("path="+s),Fe.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sze(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ize(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function qA(e,t){return e&&!sze(t)?ize(e,t):t}const aze=gr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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 o=r(window.location.href),function(i){const a=Fe.isString(i)?r(i):i;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}();function lze(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cze(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=o[s];i||(i=c),n[r]=l,o[r]=c;let u=s,h=0;for(;u!==r;)h+=n[u++],u=u%e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),c-i<t)return;const f=d&&c-d;return f?Math.round(h*1e3/f):void 0}}function l9(e,t){let n=0;const o=cze(50,250);return r=>{const s=r.loaded,i=r.lengthComputable?r.total:void 0,a=s-n,l=o(a),c=s<=i;n=s;const d={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&c?(i-s)/l:void 0,event:r};d[t?"download":"upload"]=!0,e(d)}}const uze=typeof XMLHttpRequest<"u",dze=uze&&function(e){return new Promise(function(n,o){let r=e.data;const s=Kr.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}Fe.isFormData(r)&&(gr.isStandardBrowserEnv||gr.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(f+":"+p))}const d=qA(e.baseURL,e.url);c.open(e.method.toUpperCase(),WA(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function u(){if(!c)return;const f=Kr.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:
|
||
|
|
* @license MIT */(function(e,t){(function(n,o){e.exports=o()})(zr,function(){var n={};n.version="0.2.0";var o=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(p){var v,y;for(v in p)y=p[v],y!==void 0&&p.hasOwnProperty(v)&&(o[v]=y);return this},n.status=null,n.set=function(p){var v=n.isStarted();p=r(p,o.minimum,1),n.status=p===1?null:p;var y=n.render(!v),g=y.querySelector(o.barSelector),A=o.speed,m=o.easing;return y.offsetWidth,a(function(w){o.positionUsing===""&&(o.positionUsing=n.getPositioningCSS()),l(g,i(p,A,m)),p===1?(l(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){l(y,{transition:"all "+A+"ms linear",opacity:0}),setTimeout(function(){n.remove(),w()},A)},A)):setTimeout(w,A)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var p=function(){setTimeout(function(){n.status&&(n.trickle(),p())},o.trickleSpeed)};return o.trickle&&p(),this},n.done=function(p){return!p&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(p){var v=n.status;return v?(typeof p!="number"&&(p=(1-v)*r(Math.random()*v,.1,.95)),v=r(v+p,0,.994),n.set(v)):n.start()},n.trickle=function(){return n.inc(Math.random()*o.trickleRate)},function(){var p=0,v=0;n.promise=function(y){return!y||y.state()==="resolved"?this:(v===0&&n.start(),p++,v++,y.always(function(){v--,v===0?(p=0,n.done()):n.set((p-v)/p)}),this)}}(),n.render=function(p){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var v=document.createElement("div");v.id="nprogress",v.innerHTML=o.template;var y=v.querySelector(o.barSelector),g=p?"-100":s(n.status||0),A=document.querySelector(o.parent),m;return l(y,{transition:"all 0 linear",transform:"translate3d("+g+"%,0,0)"}),o.showSpinner||(m=v.querySelector(o.spinnerSelector),m&&f(m)),A!=document.body&&d(A,"nprogress-custom-parent"),A.appendChild(v),v},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(o.parent),"nprogress-custom-parent");var p=document.getElementById("nprogress");p&&f(p)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var p=document.body.style,v="WebkitTransform"in p?"Webkit":"MozTransform"in p?"Moz":"msTransform"in p?"ms":"OTransform"in p?"O":"";return v+"Perspective"in p?"translate3d":v+"Transform"in p?"translate":"margin"};function r(p,v,y){return p<v?v:p>y?y:p}function s(p){return(-1+p)*100}function i(p,v,y){var g;return o.positionUsing==="translate3d"?g={transform:"translate3d("+s(p)+"%,0,0)"}:o.positionUsing==="translate"?g={transform:"translate("+s(p)+"%,0)"}:g={"margin-left":s(p)+"%"},g.transition="all "+v+"ms "+y,g}var a=function(){var p=[];function v(){var y=p.shift();y&&y(v)}return function(y){p.push(y),p.length==1&&v()}}(),l=function(){var p=["Webkit","O","Moz","ms"],v={};function y(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(E,_){return _.toUpperCase()})}function g(w){var E=document.body.style;if(w in E)return w;for(var _=p.length,S=w.charAt(0).toUpperCase()+w.slice(1),C;_--;)if(C=p[_]+S,C in E)return C;return w}function A(w){return w=y(w),v[w]||(v[w]=g(w))}function m(w,E,_){E=A(E),w.style[E]=_}return function(w,E){var _=arguments,S,C;if(_.length==2)for(S in E)C=E[S],C!==void 0&&E.hasOwnProperty(S)&&m(w,S,C);else m(w,_[1],_[2])}}();function c(p,v){var y=typeof p=="string"?p:h(p);return y.indexOf(" "+v+" ")>=0}function d(p,v){var y=h(p),g=y+v;c(y,v)||(p.className=g.substring(1))}function u(p,v){var y=h(p),g;c(p,v)&&(g=y.replace(" "+v+" "," "),p.className=g.substring(1,g.length-1))}function h(p){return(" "+(p.className||"")+" ").replace(/\s+/gi," ")}function f(p){p&&p.parentNode&&p.parentNode.removeChild(p)}return n})})(ZA);var Lze=ZA.exports;const Ji=qo(L
|
||
|
|
* shared v9.2.2
|
||
|
|
* (c) 2022 kazuya kawaguchi
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/const l3=typeof window<"u",Ize=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",js=e=>Ize?Symbol(e):e,Rze=(e,t,n)=>Bze({l:e,k:t,s:n}),Bze=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),kn=e=>typeof e=="number"&&isFinite(e),Vze=e=>I8(e)==="[object Date]",Ds=e=>I8(e)==="[object RegExp]",lu=e=>Lt(e)&&Object.keys(e).length===0;function Pze(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Vn=Object.assign;let f9;const Il=()=>f9||(f9=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function p9(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Dze=Object.prototype.hasOwnProperty;function O8(e,t){return Dze.call(e,t)}const tn=Array.isArray,pn=e=>typeof e=="function",st=e=>typeof e=="string",Pt=e=>typeof e=="boolean",nn=e=>e!==null&&typeof e=="object",JA=Object.prototype.toString,I8=e=>JA.call(e),Lt=e=>I8(e)==="[object Object]",Nze=e=>e==null?"":tn(e)||Lt(e)&&e.toString===JA?JSON.stringify(e,null,2):String(e);/*!
|
||
|
|
* message-compiler v9.2.2
|
||
|
|
* (c) 2022 kazuya kawaguchi
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/const Wt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function cu(e,t,n={}){const{domain:o,messages:r,args:s}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=o,a}function Fze(e){throw e}function Wze(e,t,n){return{line:e,column:t,offset:n}}function c3(e,t,n){const o={start:e,end:t};return n!=null&&(o.source=n),o}const Ir=" ",Qze="\r",Jn=`
|
||
|
|
`,jze=String.fromCharCode(8232),Kze=String.fromCharCode(8233);function qze(e){const t=e;let n=0,o=1,r=1,s=0;const i=S=>t[S]===Qze&&t[S+1]===Jn,a=S=>t[S]===Jn,l=S=>t[S]===Kze,c=S=>t[S]===jze,d=S=>i(S)||a(S)||l(S)||c(S),u=()=>n,h=()=>o,f=()=>r,p=()=>s,v=S=>i(S)||l(S)||c(S)?Jn:t[S],y=()=>v(n),g=()=>v(n+s);function A(){return s=0,d(n)&&(o++,r=0),i(n)&&n++,n++,r++,t[n]}function m(){return i(n+s)&&s++,s++,t[n+s]}function w(){n=0,o=1,r=1,s=0}function E(S=0){s=S}function _(){const S=n+s;for(;S!==n;)A();s=0}return{index:u,line:h,column:f,peekOffset:p,charAt:v,currentChar:y,currentPeek:g,next:A,peek:m,reset:w,resetPeek:E,skipToPeek:_}}const us=void 0,v9="'",Uze="tokenizer";function Xze(e,t={}){const n=t.location!==!1,o=qze(e),r=()=>o.index(),s=()=>Wze(o.line(),o.column(),o.index()),i=s(),a=r(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:d}=t;function u(j,K,$,...ue){const le=c();if(K.column+=$,K.offset+=$,d){const Ce=c3(le.startLoc,K),Ae=cu(j,Ce,{domain:Uze,args:ue});d(Ae)}}function h(j,K,$){j.endLoc=s(),j.currentType=K;const ue={type:K};return n&&(ue.loc=c3(j.startLoc,j.endLoc)),$!=null&&(ue.value=$),ue}const f=j=>h(j,14);function p(j,K){return j.currentChar()===K?(j.next(),K):(u(Wt.EXPECTED_TOKEN,s(),0,K),"")}function v(j){let K="";for(;j.currentPeek()===Ir||j.currentPeek()===Jn;)K+=j.currentPeek(),j.peek();return K}function y(j){const K=v(j);return j.skipToPeek(),K}function g(j){if(j===us)return!1;const K=j.charCodeAt(0);return K>=97&&K<=122||K>=65&&K<=90||K===95}function A(j){if(j===us)return!1;const K=j.charCodeAt(0);return K>=48&&K<=57}function m(j,K){const{currentType:$}=K;if($!==2)return!1;v(j);const ue=g(j.currentPeek());return j.resetPeek(),ue}function w(j,K){const{currentType:$}=K;if($!==2)return!1;v(j);const ue=j.currentPeek()==="-"?j.peek():j.currentPeek(),le=A(ue);return j.resetPeek(),le}function E(j,K){const{currentType:$}=K;if($!==2)return!1;v(j);const ue=j.currentPeek()===v9;return j.resetPeek(),ue}function _(j,K){const{currentType:$}=K;if($!==8)return!1;v(j);const ue=j.currentPeek()===".";return j.resetPeek(),ue}function S(j,K){const{currentType:$}=K;if($!==9)return!1;v(j);const ue=g(j.currentPeek());return j.resetPeek(),ue}function C(j,K){const{currentType:$}=K;if(!($===8||$===12))return!1;v(j);const ue=j.currentPeek()===":";return j.resetPeek(),ue}function k(j,K){const{currentType:$}=K;if($!==10)return!1;const ue=()=>{const Ce=j.currentPeek();return Ce==="{"?g(j.peek()):Ce==="@"||Ce==="%"||Ce==="|"||Ce===":"||Ce==="."||Ce===Ir||!Ce?!1:Ce===Jn?(j.peek(),ue()):g(Ce)},le=ue();return j.resetPeek(),le}function x(j){v(j);const K=j.currentPeek()==="|";return j.resetPeek(),K}function M(j){const K=v(j),$=j.currentPeek()==="%"&&j.peek()==="{";return j.resetPeek(),{isModulo:$,hasSpace:K.length>0}}function T(j,K=!0){const $=(le=!1,Ce="",Ae=!1)=>{const xe=j.currentPeek();return xe==="{"?Ce==="%"?!1:le:xe==="@"||!xe?Ce==="%"?!0:le:xe==="%"?(j.peek(),$(le,"%",!0)):xe==="|"?Ce==="%"||Ae?!0:!(Ce===Ir||Ce===Jn):xe===Ir?(j.peek(),$(!0,Ir,Ae)):xe===Jn?(j.peek(),$(!0,Jn,Ae)):!0},ue=$();return K&&j.resetPeek(),ue}function L(j,K){const $=j.currentChar();return $===us?us:K($)?(j.next(),$):null}function H(j){return L(j,$=>{const ue=$.charCodeAt(0);return ue>=97&&ue<=122||ue>=65&&ue<=90||ue>=48&&ue<=57||ue===95||ue===36})}function F(j){return L(j,$=>{const ue=$.charCodeAt(0);return ue>=48&&ue<=57})}function D(j){return L(j,$=>{const ue=$.charCodeAt(0);return ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102})}function O(j){let K="",$="";for(;K=F(j);)$+=K;return $}function V(j){y(j);const K=j.currentChar();return K!=="%"&&u(Wt.EXPECTED_TOKEN,s(),0,K),j.next(),"%"}function P(j){let K="";for(;;){const $=j.currentChar();if($==="{"||$==="}"||$==="@"||$==="|"||!$)break;if($==="%")if(T(j))K+=$,j.next();else break;else if($===Ir||$===Jn)if(T(j))K+=$,j.next();else{if(x(j))break;K+=$,j.next()}else K+=$,j.next()}return K}function N(j){y(j);let K="",$="";for(;K=H(j);)$+=K;return j.currentChar()===us&&u(Wt.UNTERMINATED_CLOSING_BRACE,s(),0),$}funct
|
||
|
|
`,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=tLe(e,{mode:n,filename:o,sourceMap:r,breakLineCode:s,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${a.map(u=>`${u}: _${u}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Ba(l,e),l.deindent(i),l.push("}");const{code:c,map:d}=l.context();return{ast:e,code:c,map:d?d.toJSON():void 0}};function aLe(e,t={}){const n=Vn({},t),r=Jze(n).parse(e);return eLe(r,n),iLe(r,n)}/*!
|
||
|
|
* devtools-if v9.2.2
|
||
|
|
* (c) 2022 kazuya kawaguchi
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/const $A={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
||
|
|
* core-base v9.2.2
|
||
|
|
* (c) 2022 kazuya kawaguchi
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/const Ks=[];Ks[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Ks[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Ks[2]={w:[2],i:[3,0],[0]:[3,0]};Ks[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Ks[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Ks[5]={["'"]:[4,0],o:8,l:[5,0]};Ks[6]={['"']:[4,0],o:8,l:[6,0]};const lLe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function cLe(e){return lLe.test(e)}function uLe(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function dLe(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function hLe(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:cLe(t)?uLe(t):"*"+t}function fLe(e){const t=[];let n=-1,o=0,r=0,s,i,a,l,c,d,u;const h=[];h[0]=()=>{i===void 0?i=a:i+=a},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,o=4,h[0]();else{if(r=0,i===void 0||(i=hLe(i),i===!1))return!1;h[1]()}};function f(){const p=e[n+1];if(o===5&&p==="'"||o===6&&p==='"')return n++,a="\\"+p,h[0](),!0}for(;o!==null;)if(n++,s=e[n],!(s==="\\"&&f())){if(l=dLe(s),u=Ks[o],c=u[l]||u.l||8,c===8||(o=c[0],c[1]!==void 0&&(d=h[c[1]],d&&(a=s,d()===!1))))return;if(o===7)return t}}const g9=new Map;function pLe(e,t){return nn(e)?e[t]:null}function vLe(e,t){if(!nn(e))return null;let n=g9.get(t);if(n||(n=fLe(t),n&&g9.set(t,n)),!n)return null;const o=n.length;let r=e,s=0;for(;s<o;){const i=r[n[s]];if(i===void 0)return null;r=i,s++}return r}const mLe=e=>e,gLe=e=>"",bLe="text",yLe=e=>e.length===0?"":e.join(""),wLe=Nze;function b9(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ALe(e){const t=kn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(kn(e.named.count)||kn(e.named.n))?kn(e.named.count)?e.named.count:kn(e.named.n)?e.named.n:t:t}function CLe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function _Le(e={}){const t=e.locale,n=ALe(e),o=nn(e.pluralRules)&&st(t)&&pn(e.pluralRules[t])?e.pluralRules[t]:b9,r=nn(e.pluralRules)&&st(t)&&pn(e.pluralRules[t])?b9:void 0,s=g=>g[o(n,g.length,r)],i=e.list||[],a=g=>i[g],l=e.named||{};kn(e.pluralIndex)&&CLe(n,l);const c=g=>l[g];function d(g){const A=pn(e.messages)?e.messages(g):nn(e.messages)?e.messages[g]:!1;return A||(e.parent?e.parent.message(g):gLe)}const u=g=>e.modifiers?e.modifiers[g]:mLe,h=Lt(e.processor)&&pn(e.processor.normalize)?e.processor.normalize:yLe,f=Lt(e.processor)&&pn(e.processor.interpolate)?e.processor.interpolate:wLe,p=Lt(e.processor)&&st(e.processor.type)?e.processor.type:bLe,y={list:a,named:c,plural:s,linked:(g,...A)=>{const[m,w]=A;let E="text",_="";A.length===1?nn(m)?(_=m.modifier||_,E=m.type||E):st(m)&&(_=m||_):A.length===2&&(st(m)&&(_=m||_),st(w)&&(E=w||E));let S=d(g)(y);return E==="vnode"&&tn(S)&&_&&(S=S[0]),_?u(_)(S,E):S},message:d,type:p,interpolate:f,normalize:h};return y}let z2=null;function ELe(e){z2=e}function SLe(e,t,n){z2&&z2.emit($A.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const xLe=kLe($A.FunctionTranslate);function kLe(e){return t=>z2&&z2.emit(e,t)}function MLe(e,t,n){return[...new Set([n,...tn(t)?t:nn(t)?Object.keys(t):st(t)?[t]:[n]])]}function eC(e,t,n){const o=st(n)?n:G2,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(o);if(!s){s=[];let i=[n];for(;tn(i);)i=y9(s,i,t);const a=tn(t)||!Lt(t)?t:t.default?t.default:null;i=st(a)?[a]:a,tn(i)&&y9(s,i,!1),r.__localeChainCache.set(o,s)}return s}function y9(e,t,n){let o=!0;for(let r=0;r<t.length&&Pt(o);r++){const s=t[r];st(s)&&(o=zLe(e,t[r],n))}return o}function zLe(e,t,n){let o;const r=t.split("-");do{const s=r.join("-");o=LLe(e,s,n),r.splice(-1,1)}while(r.length&&o===!0);return o}function LLe(e,t,n){let o=!1;if(!e.includes(t)&&(o=!0,t)){o=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(tn(n)||Lt(n))&&n[r]&&(o=n[r])}return o}const TLe="9.2.2",uu=-1,G2="en-US",w9="",A9=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function HLe(){return{upper:(e,
|
||
|
|
* vue-i18n v9.2.2
|
||
|
|
* (c) 2022 kazuya kawaguchi
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/const KLe="9.2.2";function qLe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Il().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Il().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Il().__INTLIFY_PROD_DEVTOOLS__=!1)}let dC=Wt.__EXTEND_POINT__;const io=()=>++dC,_n={UNEXPECTED_RETURN_TYPE:dC,INVALID_ARGUMENT:io(),MUST_BE_CALL_SETUP_TOP:io(),NOT_INSLALLED:io(),NOT_AVAILABLE_IN_LEGACY_MODE:io(),REQUIRED_VALUE:io(),INVALID_VALUE:io(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:io(),NOT_INSLALLED_WITH_PROVIDE:io(),UNEXPECTED_ERROR:io(),NOT_COMPATIBLE_LEGACY_VUE_I18N:io(),BRIDGE_SUPPORT_VUE_2_ONLY:io(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:io(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:io(),__EXTEND_POINT__:io()};function Mn(e,...t){return cu(e,null,void 0)}const f3=js("__transrateVNode"),p3=js("__datetimeParts"),v3=js("__numberParts"),hC=js("__setPluralRules");js("__intlifyMeta");const fC=js("__injectWithOption");function m3(e){if(!nn(e))return e;for(const t in e)if(O8(e,t))if(!t.includes("."))nn(e[t])&&m3(e[t]);else{const n=t.split("."),o=n.length-1;let r=e;for(let s=0;s<o;s++)n[s]in r||(r[n[s]]={}),r=r[n[s]];r[n[o]]=e[t],delete e[t],nn(r[n[o]])&&m3(r[n[o]])}return e}function du(e,t){const{messages:n,__i18n:o,messageResolver:r,flatJson:s}=t,i=Lt(n)?n:tn(o)?{}:{[e]:{}};if(tn(o)&&o.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||{},Rl(c,i[l])):Rl(c,i)}else st(a)&&Rl(JSON.parse(a),i)}),r==null&&s)for(const a in i)O8(i,a)&&m3(i[a]);return i}const x1=e=>!nn(e)||tn(e);function Rl(e,t){if(x1(e)||x1(t))throw Mn(_n.INVALID_VALUE);for(const n in e)O8(e,n)&&(x1(e[n])||x1(t[n])?t[n]=e[n]:Rl(e[n],t[n]))}function pC(e){return e.type}function vC(e,t,n){let o=nn(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=du(e.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const r=Object.keys(o);r.length&&r.forEach(s=>{e.mergeLocaleMessage(s,o[s])});{if(nn(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(nn(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function H9(e){return ee(ki,null,e,0)}const O9="__INTLIFY_META__";let I9=0;function R9(e){return(t,n,o,r)=>e(n,o,at()||void 0,r)}const ULe=()=>{const e=at();let t=null;return e&&(t=pC(e)[O9])?{[O9]:t}:null};function V8(e={},t){const{__root:n}=e,o=n===void 0;let r=Pt(e.inheritLocale)?e.inheritLocale:!0;const s=U(n&&r?n.locale.value:st(e.locale)?e.locale:G2),i=U(n&&r?n.fallbackLocale.value:st(e.fallbackLocale)||tn(e.fallbackLocale)||Lt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),a=U(du(s.value,e)),l=U(Lt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),c=U(Lt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let d=n?n.missingWarn:Pt(e.missingWarn)||Ds(e.missingWarn)?e.missingWarn:!0,u=n?n.fallbackWarn:Pt(e.fallbackWarn)||Ds(e.fallbackWarn)?e.fallbackWarn:!0,h=n?n.fallbackRoot:Pt(e.fallbackRoot)?e.fallbackRoot:!0,f=!!e.fallbackFormat,p=pn(e.missing)?e.missing:null,v=pn(e.missing)?R9(e.missing):null,y=pn(e.postTranslation)?e.postTranslation:null,g=n?n.warnHtmlMessage:Pt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,A=!!e.escapeParameter;const m=n?n.modifiers:Lt(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,E;E=(()=>{o&&_9(null);const ve={version:KLe,locale:s.value,fallbackLocale:i.value,messages:a.value,modifiers:m,pluralRules:w,missing:v===null?void 0:v,missingWarn:d,fallbackWarn:u,fallbackFormat:f,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:g,escapeParameter:A,messageResolver:e.messageResolver,__meta:{framework:"vue"}};ve.datetimeFormats=l.value,ve.numberFormats=c.value,ve.__datetimeFormatters=Lt(E)?E.__datetimeFormatters:void 0,ve.__numberFormatters=Lt(E)?E.__numberFormatters:void 0;const ye=PLe(ve);return o&&_9(ye),ye})(),al(E,s.value,i.value);function S(){return[s.value,i.value,a.value,l.value,c.value]}const C=I({get:()=>s.value,set:ve=>{s.value=ve,E.locale=s.value}}),k=I({get:()=>i.value,se
|
||
|
|
* Sortable 1.14.0
|
||
|
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
|
* @author owenm <owen23355@gmail.com>
|
||
|
|
* @license MIT
|
||
|
|
*/function W9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W9(Object(n),!0).forEach(function(o){bTe(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W9(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function g0(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g0=function(t){return typeof t}:g0=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g0(e)}function bTe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(){return Yr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yr.apply(this,arguments)}function yTe(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,s;for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function wTe(e,t){if(e==null)return{};var n=yTe(e,t),o,r;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)o=s[r],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var ATe="1.14.0";function qr(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var rs=qr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Y2=qr(/Edge/i),Q9=qr(/firefox/i),Bl=qr(/safari/i)&&!qr(/chrome/i)&&!qr(/android/i),bC=qr(/iP(ad|od|hone)/i),CTe=qr(/chrome/i)&&qr(/android/i),yC={capture:!1,passive:!1};function Qt(e,t,n){e.addEventListener(t,n,!rs&&yC)}function Nt(e,t,n){e.removeEventListener(t,n,!rs&&yC)}function Y0(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function _Te(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ur(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Y0(e,t):Y0(e,t))||o&&e===n)return e;if(e===n)break}while(e=_Te(e))}return null}var j9=/\s+/g;function yo(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(j9," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(j9," ")}}function Ct(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function fa(e,t){var n="";if(typeof e=="string")n=e;else do{var o=Ct(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function wC(e,t,n){if(e){var o=e.getElementsByTagName(t),r=0,s=o.length;if(n)for(;r<s;r++)n(o[r],r);return o}return[]}function wr(){var e=document.scrollingElement;return e||document.documentElement}function Sn(e,t,n,o,r){if(!(!e.getBoundingClientRect&&e!==window)){var s,i,a,l,c,d,u;if(e!==window&&e.parentNode&&e!==wr()?(s=e.getBoundingClientRect(),i=s.top,a=s.left,l=s.bottom,c=s.right,d=s.height,u=s.width):(i=0,a=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,u=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!rs))do if(r&&r.getBoundingClientRect&&(Ct(r,"transform")!=="none"||n&&Ct(r,"position")!=="static")){var h=r.getBoundingClientRect();i-=h.top+parseInt(Ct(r,"border-top-width")),a-=h.left+parseInt(Ct(r,"border-left-width")),l=i+s.height,c=a+s.width;break}while(r=r.parentNode);if(o&&e!==window){var f=
|
||
|
|
`);r!==-1?this.__character_count=o.length-r:this.__character_count+=o.length},e.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function t(o,r){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),r=r||"",o.indent_level>0&&(r=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=r,this.__base_string_length=r.length}t.prototype.get_indent_size=function(o,r){var s=this.__base_string_length;return r=r||0,o<0&&(s=0),s+=o*this.__indent_size,s+=r,s},t.prototype.get_indent_string=function(o,r){var s=this.__base_string;return r=r||0,o<0&&(o=0,s=""),r+=o*this.__indent_size,this.__ensure_cache(r),s+=this.__cache[r],s},t.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var o=this.__cache.length,r=0,s="";this.__indent_size&&o>=this.__indent_size&&(r=Math.floor(o/this.__indent_size),o-=r*this.__indent_size,s=new Array(r+1).join(this.__indent_string)),o&&(s+=new Array(o+1).join(" ")),this.__cache.push(s)};function n(o,r){this.__indent_cache=new t(o,r),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(o,r){return this.__indent_cache.get_indent_string(o,r)},n.prototype.get_indent_size=function(o,r){return this.__indent_cache.get_indent_size(o,r)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(o){this.trim(!0);var r=this.current_line.pop();r&&(r[r.length-1]===`
|
||
|
|
`&&(r=r.replace(/\n+$/g,"")),this.current_line.push(r)),this._end_with_newline&&this.__add_outputline();var s=this.__lines.join(`
|
||
|
|
`);return o!==`
|
||
|
|
`&&(s=s.replace(/[\n]/g,o)),s},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(o,r){return o=o||0,r=r||0,this.next_line.set_indent(o,r),this.__lines.length>1?(this.current_line.set_indent(o,r),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(o){for(var r=0;r<o.newlines;r++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},n.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},n.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},n.prototype.remove_indent=function(o){for(var r=this.__lines.length;o<r;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},n.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(o,r){for(var s=this.__lines.length-2;s>=0;){var i=this.__lines[s];if(i.is_empty())break;if(i.item(0).indexOf(o)!==0&&i.item(-1)!==r){this.__lines.splice(s+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}s--}},m4.Output=n,m4}var g4={},o7;function DC(){if(o7)return g4;o7=1;function e(t,n,o,r){this.type=t,this.text=n,this.comments_before=null,this.newlines=o||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return g4.Token=e,g4}var b4={},r7;function NC(){return r7||(r7=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e4
|
||
|
|
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(b4)),b4}var y4={},cl={},s7;function q8(){if(s7)return cl;s7=1;function e(o,r){this.raw_options=t(o,r),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(o,r){var s=this.raw_options[o],i=r||[];return typeof s=="object"?s!==null&&typeof s.concat=="function"&&(i=s.concat()):typeof s=="string"&&(i=s.split(/[^a-zA-Z0-9_\/\-]+/)),i},e.prototype._get_boolean=function(o,r){var s=this.raw_options[o],i=s===void 0?!!r:!!s;return i},e.prototype._get_characters=function(o,r){var s=this.raw_options[o],i=r||"";return typeof s=="string"&&(i=s.replace(/\\r/,"\r").replace(/\\n/,`
|
||
|
|
`).replace(/\\t/," ")),i},e.prototype._get_number=function(o,r){var s=this.raw_options[o];r=parseInt(r,10),isNaN(r)&&(r=0);var i=parseInt(s,10);return isNaN(i)&&(i=r),i},e.prototype._get_selection=function(o,r,s){var i=this._get_selection_list(o,r,s);if(i.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
|
||
|
|
`+r+`
|
||
|
|
You passed in: '`+this.raw_options[o]+"'");return i[0]},e.prototype._get_selection_list=function(o,r,s){if(!r||r.length===0)throw new Error("Selection list cannot be empty.");if(s=s||[r[0]],!this._is_valid_selection(s,r))throw new Error("Invalid Default Value!");var i=this._get_array(o,s);if(!this._is_valid_selection(i,r))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
|
||
|
|
`+r+`
|
||
|
|
You passed in: '`+this.raw_options[o]+"'");return i},e.prototype._is_valid_selection=function(o,r){return o.length&&r.length&&!o.some(function(s){return r.indexOf(s)===-1})};function t(o,r){var s={};o=n(o);var i;for(i in o)i!==r&&(s[i]=o[i]);if(r&&o[r])for(i in o[r])s[i]=o[r][i];return s}function n(o){var r={},s;for(s in o){var i=s.replace(/-/g,"_");r[i]=o[s]}return r}return cl.Options=e,cl.normalizeOpts=n,cl.mergeOpts=t,cl}var i7;function FC(){if(i7)return y4;i7=1;var e=q8().Options,t=["before-newline","after-newline","preserve-newline"];function n(o){e.call(this,o,"js");var r=this.raw_options.brace_style||null;r==="expand-strict"?this.raw_options.brace_style="expand":r==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var i=0;i<s.length;i++)s[i]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=s[i];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return n.prototype=new e,y4.Options=n,y4}var Fi={},w4={},a7;function U8(){if(a7)return w4;a7=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(n){this.__input=n||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__input.charAt(this.__position),this.__position+=1),n},t.prototype.peek=function(n){var o=null;return n=n||0,n+=this.__position,n>=0&&n<this.__input_length&&(o=this.__input.charAt(n)),o},t.prototype.__match=function(n,o){n.lastIndex=o;var r=n.exec(this.__input);return r&&!(e&&n.sticky)&&r.index!==o&&(r=null),r},t.prototype.test=function(n,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(n,o):!1},t.prototype.testChar=function(n,o){var r=this.peek(o);return n.lastIndex=0,r!==null&&n.test(r)},t.prototype.match=function(n){var o=this.__match(n,this.__position);return o?this.__position+=o[0].length:o=null,o},t.prototype.read=function(n,o,r){var s="",i;return n&&(i=this.match(n),i&&(s+=i[0])),o&&(i||!n)&&(s+=this.readUntil(o,r)),s},t.prototype.readUntil=function(n,o){var r="",s=this.__position;n.lastIndex=this.__position;var i=n.exec(this.__input);return i?(s=i.index,o&&(s+=i[0].length)):s=this.__input_length,r=this.__input.substring(this.__position,s),this.__position=s,r},t.prototype.readUntilAfter=function(n){return this.readUntil(n,!0)},t.prototype.get_regexp=function(n,o){var r=null,s="g";return o&&e&&(s="y"),typeof n=="string"&&n!==""?r=new RegExp(n,s):n&&(r=new RegExp(n.source,s)),r},t.prototype.get_literal_regexp=function(n){return RegExp(n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(n){var o=this.__position,r=this.readUntilAfter(n);return this.__position=o,r},t.prototype.lookBack=
|
||
|
|
`),!(_.type===l.DOT||_.type===l.RESERVED&&(_.text==="set"||_.text==="get"))&&A.test(S)?(S==="in"||S==="of")&&(_.type===l.WORD||_.type===l.STRING)?this._create_token(l.OPERATOR,S):this._create_token(l.RESERVED,S):this._create_token(l.WORD,S);if(S=this.__patterns.number.read(),S!=="")return this._create_token(l.WORD,S)},w.prototype._read_singles=function(_){var S=null;return _==="("||_==="["?S=this._create_token(l.START_EXPR,_):_===")"||_==="]"?S=this._create_token(l.END_EXPR,_):_==="{"?S=this._create_token(l.START_BLOCK,_):_==="}"?S=this._create_token(l.END_BLOCK,_):_===";"?S=this._create_token(l.SEMICOLON,_):_==="."&&h.test(this._input.peek(1))?S=this._create_token(l.DOT,_):_===","&&(S=this._create_token(l.COMMA,_)),S&&this._input.next(),S},w.prototype._read_pair=function(_,S){var C=null;return _==="#"&&S==="{"&&(C=this._create_token(l.START_BLOCK,_+S)),C&&(this._input.next(),this._input.next()),C},w.prototype._read_punctuation=function(){var _=this.__patterns.punct.read();if(_!=="")return _==="="?this._create_token(l.EQUALS,_):_==="?."?this._create_token(l.DOT,_):this._create_token(l.OPERATOR,_)},w.prototype._read_non_javascript=function(_){var S="";if(_==="#"){if(this._is_first_token()&&(S=this.__patterns.shebang.read(),S))return this._create_token(l.UNKNOWN,S.trim()+`
|
||
|
|
`);if(S=this.__patterns.include.read(),S)return this._create_token(l.UNKNOWN,S.trim()+`
|
||
|
|
`);_=this._input.next();var C="#";if(this._input.hasNext()&&this._input.testChar(u)){do _=this._input.next(),C+=_;while(this._input.hasNext()&&_!=="#"&&_!=="=");return _==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(C+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(C+="{}",this._input.next(),this._input.next())),this._create_token(l.WORD,C)}this._input.back()}else if(_==="<"&&this._is_first_token()){if(S=this.__patterns.html_comment_start.read(),S){for(;this._input.hasNext()&&!this._input.testChar(r.newline);)S+=this._input.next();return m=!0,this._create_token(l.COMMENT,S)}}else if(m&&_==="-"&&(S=this.__patterns.html_comment_end.read(),S))return m=!1,this._create_token(l.COMMENT,S);return null},w.prototype._read_comment=function(_){var S=null;if(_==="/"){var C="";if(this._input.peek(1)==="*"){C=this.__patterns.block_comment.read();var k=c.get_directives(C);k&&k.ignore==="start"&&(C+=c.readIgnored(this._input)),C=C.replace(r.allLineBreaks,`
|
||
|
|
`),S=this._create_token(l.BLOCK_COMMENT,C),S.directives=k}else this._input.peek(1)==="/"&&(C=this.__patterns.comment.read(),S=this._create_token(l.COMMENT,C))}return S},w.prototype._read_string=function(_){if(_==="`"||_==="'"||_==='"'){var S=this._input.next();return this.has_char_escapes=!1,_==="`"?S+=this._read_string_recursive("`",!0,"${"):S+=this._read_string_recursive(_),this.has_char_escapes&&this._options.unescape_strings&&(S=E(S)),this._input.peek()===_&&(S+=this._input.next()),S=S.replace(r.allLineBreaks,`
|
||
|
|
`),this._create_token(l.STRING,S)}return null},w.prototype._allow_regexp_or_xml=function(_){return _.type===l.RESERVED&&a(_.text,["return","case","throw","else","do","typeof","yield"])||_.type===l.END_EXPR&&_.text===")"&&_.opened.previous.type===l.RESERVED&&a(_.opened.previous.text,["if","while","for"])||a(_.type,[l.COMMENT,l.START_EXPR,l.START_BLOCK,l.START,l.END_BLOCK,l.OPERATOR,l.EQUALS,l.EOF,l.SEMICOLON,l.COMMA])},w.prototype._read_regexp=function(_,S){if(_==="/"&&this._allow_regexp_or_xml(S)){for(var C=this._input.next(),k=!1,x=!1;this._input.hasNext()&&(k||x||this._input.peek()!==_)&&!this._input.testChar(r.newline);)C+=this._input.peek(),k?k=!1:(k=this._input.peek()==="\\",this._input.peek()==="["?x=!0:this._input.peek()==="]"&&(x=!1)),this._input.next();return this._input.peek()===_&&(C+=this._input.next(),C+=this._input.read(r.identifier)),this._create_token(l.STRING,C)}return null},w.prototype._read_xml=function(_,S){if(this._options.e4x&&_==="<"&&this._allow_regexp_or_xml(S)){var C="",k=this.__patterns.xml.read_match();if(k){for(var x=k[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),M=x.indexOf("{")===0,T=0;k;){var L=!!k[1],H=k[2],F=!!k[k.length-1]||H.slice(0,8)==="![CDATA[";if(!F&&(H===x||M&&H.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(L?--T:++T),C+=k[0],T<=0)break;k=this.__patterns.xml.read_match()}return k||(C+=this._input.match(/[\s\S]*/g)[0]),C=C.replace(r.allLineBreaks,`
|
||
|
|
`),this._create_token(l.STRING,C)}}return null};function E(_){for(var S="",C=0,k=new e(_),x=null;k.hasNext();)if(x=k.match(/([\s]|[^\\]|\\\\)+/g),x&&(S+=x[0]),k.peek()==="\\"){if(k.next(),k.peek()==="x")x=k.match(/x([0-9A-Fa-f]{2})/g);else if(k.peek()==="u")x=k.match(/u([0-9A-Fa-f]{4})/g);else{S+="\\",k.hasNext()&&(S+=k.next());continue}if(!x||(C=parseInt(x[1],16),C>126&&C<=255&&x[0].indexOf("x")===0))return _;if(C>=0&&C<32){S+="\\"+x[0];continue}else C===34||C===39||C===92?S+="\\"+String.fromCharCode(C):S+=String.fromCharCode(C)}return S}return w.prototype._read_string_recursive=function(_,S,C){var k,x;_==="'"?x=this.__patterns.single_quote:_==='"'?x=this.__patterns.double_quote:_==="`"?x=this.__patterns.template_text:_==="}"&&(x=this.__patterns.template_expression);for(var M=x.read(),T="";this._input.hasNext();){if(T=this._input.next(),T===_||!S&&r.newline.test(T)){this._input.back();break}else T==="\\"&&this._input.hasNext()?(k=this._input.peek(),k==="x"||k==="u"?this.has_char_escapes=!0:k==="\r"&&this._input.peek(1)===`
|
||
|
|
`&&this._input.next(),T+=this._input.next()):C&&(C==="${"&&T==="$"&&this._input.peek()==="{"&&(T+=this._input.next()),C===T&&(_==="`"?T+=this._read_string_recursive("}",S,"`"):T+=this._read_string_recursive("`",S,"${"),this._input.hasNext()&&(T+=this._input.next())));T+=x.read(),M+=T}return M},Fi.Tokenizer=w,Fi.TOKEN=l,Fi.positionable_operators=f.slice(),Fi.line_starters=y.slice(),Fi}var v7;function HHe(){if(v7)return v4;v7=1;var e=K8().Output,t=DC().Token,n=NC(),o=FC().Options,r=O1().Tokenizer,s=O1().line_starters,i=O1().positionable_operators,a=O1().TOKEN;function l(x,M){return M.indexOf(x)!==-1}function c(x){return x.replace(/^\s+/g,"")}function d(x){for(var M={},T=0;T<x.length;T++)M[x[T].replace(/-/g,"_")]=x[T];return M}function u(x,M){return x&&x.type===a.RESERVED&&x.text===M}function h(x,M){return x&&x.type===a.RESERVED&&l(x.text,M)}var f=["case","return","do","if","throw","else","await","break","continue","async"],p=["before-newline","after-newline","preserve-newline"],v=d(p),y=[v.before_newline,v.preserve_newline],g={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function A(x,M){M.multiline_frame||M.mode===g.ForInitializer||M.mode===g.Conditional||x.remove_indent(M.start_line_index)}function m(x){x=x.replace(n.allLineBreaks,`
|
||
|
|
`);for(var M=[],T=x.indexOf(`
|
||
|
|
`);T!==-1;)M.push(x.substring(0,T)),x=x.substring(T+1),T=x.indexOf(`
|
||
|
|
`);return x.length&&M.push(x),M}function w(x){return x===g.ArrayLiteral}function E(x){return l(x,[g.Expression,g.ForInitializer,g.Conditional])}function _(x,M){for(var T=0;T<x.length;T++){var L=x[T].trim();if(L.charAt(0)!==M)return!1}return!0}function S(x,M){for(var T=0,L=x.length,H;T<L;T++)if(H=x[T],H&&H.indexOf(M)!==0)return!1;return!0}function C(x,M){M=M||{},this._source_text=x||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new o(M)}C.prototype.create_flags=function(x,M){var T=0;x&&(T=x.indentation_level,!this._output.just_added_newline()&&x.line_indent_level>T&&(T=x.line_indent_level));var L={mode:M,parent:x,last_token:x?x.last_token:new t(a.START_BLOCK,""),last_word:x?x.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:T,alignment:0,line_indent_level:x?x.line_indent_level:T,start_line_index:this._output.get_line_number(),ternary_depth:0};return L},C.prototype._reset=function(x){var M=x.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,M),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(g.BlockStatement);var T=new r(x,this._options);return this._tokens=T.tokenize(),x},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var x,M=this._reset(this._source_text),T=this._options.eol;this._options.eol==="auto"&&(T=`
|
||
|
|
`,M&&n.lineBreak.test(M||"")&&(T=M.match(n.lineBreak)[0]));for(var L=this._tokens.next();L;)this.handle_token(L),this._last_last_text=this._flags.last_token.text,this._flags.last_token=L,L=this._tokens.next();return x=this._output.get_code(T),x},C.prototype.handle_token=function(x,M){x.type===a.START_EXPR?this.handle_start_expr(x):x.type===a.END_EXPR?this.handle_end_expr(x):x.type===a.START_BLOCK?this.handle_start_block(x):x.type===a.END_BLOCK?this.handle_end_block(x):x.type===a.WORD?this.handle_word(x):x.type===a.RESERVED?this.handle_word(x):x.type===a.SEMICOLON?this.handle_semicolon(x):x.type===a.STRING?this.handle_string(x):x.type===a.EQUALS?this.handle_equals(x):x.type===a.OPERATOR?this.handle_operator(x):x.type===a.COMMA?this.handle_comma(x):x.type===a.BLOCK_COMMENT?this.handle_block_comment(x,M):x.type===a.COMMENT?this.handle_comment(x,M):x.type===a.DOT?this.handle_dot(x):x.type===a.EOF?this.handle_eof(x):x.type===a.UNKNOWN?this.handle_unknown(x,M):this.handle_unknown(x,M)},C.prototype.handle_whitespace_and_comments=function(x,M){var T=x.newlines,L=this._options.keep_array_indentation&&w(this._flags.mode);if(x.comments_before)for(var H=x.comments_before.next();H;)this.handle_whitespace_and_comments(H,M),this.handle_token(H,M),H=x.comments_before.next();if(L)for(var F=0;F<T;F+=1)this.print_newline(F>0,M);else if(this._options.max_preserve_newlines&&T>this._options.max_preserve_newlines&&(T=this._options.max_preserve_newlines),this._options.preserve_newlines&&T>1){this.print_newline(!1,M);for(var D=1;D<T;D+=1)this.print_newline(!0,M)}};var k=["async","break","continue","return","throw","yield"];return C.prototype.allow_wrap_or_preserved_newline=function(x,M){if(M=M===void 0?!1:M,!this._output.just_added_newline()){var T=this._options.preserve_newlines&&x.newlines||M,L=l(this._flags.last_token.text,i)||l(x.text,i);if(L){var H=l(this._flags.last_token.text,i)&&l(this._options.operator_position,y)||l(x.text,i);T=T&&H}if(T)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(h(this._flags.last_token,k))return;this._output.set_wrap_point()}}},C.prototype.print_newline=function(x,M){if(!M&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==a.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var T=this._tokens.peek();this._flags.mode===g.Statement&&!(this._flags.if_block&&u(T,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(x)&&(this._flags.multiline_frame=!0)},C.prototype.print_token_line_indentation=function(x){this._output.just_added_newline()&&(this._options.keep_array_indentation&&x.newlines&&(x.text==="["||w(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(x.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},C.prototype.print_token=function(x){if(this._output.raw){this._output.add_raw_token(x);return}if(this._options.comma_first&&x.previous&&x.previous.type===a.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var M=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(M),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(x),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(x),this._output.non_breaking_space=!0,this._output.add_token(x.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},C.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},C.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation
|
||
|
|
`&&this.print_newline(!1,M)},C.prototype.handle_eof=function(x){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(x)},v4.Beautifier=C,v4}var m7;function OHe(){if(m7)return T1.exports;m7=1;var e=HHe().Beautifier,t=FC().Options;function n(o,r){var s=new e(o,r);return s.beautify()}return T1.exports=n,T1.exports.defaultOptions=function(){return new t},T1.exports}var I1={exports:{}},x4={},k4={},g7;function QC(){if(g7)return k4;g7=1;var e=q8().Options;function t(n){e.call(this,n,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var o=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||o;var r=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var s=0;s<r.length;s++)r[s]!=="expand"?this.brace_style="collapse":this.brace_style=r[s]}return t.prototype=new e,k4.Options=t,k4}var b7;function IHe(){if(b7)return x4;b7=1;var e=QC().Options,t=K8().Output,n=U8().InputScanner,o=X8().Directives,r=new o(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,i=/\r\n|[\r\n]/g,a=/\s/,l=/(?:\s|\n)+/g,c=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,d=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function u(h,f){this._source_text=h||"",this._options=new e(f),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return u.prototype.eatString=function(h){var f="";for(this._ch=this._input.next();this._ch;){if(f+=this._ch,this._ch==="\\")f+=this._input.next();else if(h.indexOf(this._ch)!==-1||this._ch===`
|
||
|
|
`)break;this._ch=this._input.next()}return f},u.prototype.eatWhitespace=function(h){for(var f=a.test(this._input.peek()),p=0;a.test(this._input.peek());)this._ch=this._input.next(),h&&this._ch===`
|
||
|
|
`&&(p===0||p<this._options.max_preserve_newlines)&&(p++,this._output.add_new_line(!0));return f},u.prototype.foundNestedPseudoClass=function(){for(var h=0,f=1,p=this._input.peek(f);p;){if(p==="{")return!0;if(p==="(")h+=1;else if(p===")"){if(h===0)return!1;h-=1}else if(p===";"||p==="}")return!1;f++,p=this._input.peek(f)}return!1},u.prototype.print_string=function(h){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(h)},u.prototype.preserveSingleSpace=function(h){h&&(this._output.space_before_token=!0)},u.prototype.indent=function(){this._indentLevel++},u.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},u.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var h=this._source_text,f=this._options.eol;f==="auto"&&(f=`
|
||
|
|
`,h&&s.test(h||"")&&(f=h.match(s)[0])),h=h.replace(i,`
|
||
|
|
`);var p=h.match(/^[\t ]*/)[0];this._output=new t(this._options,p),this._input=new n(h),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var v=0,y=!1,g=!1,A=!1,m=!1,w=!1,E=this._ch,_=!1,S,C,k;S=this._input.read(l),C=S!=="",k=E,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),E=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var x=this._input.read(c),M=r.get_directives(x);M&&M.ignore==="start"&&(x+=r.readIgnored(this._input)),this.print_string(x),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(d)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(C),this.print_string(this._ch);var T=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);T.match(/[ :]$/)&&(T=this.eatString(": ").replace(/\s$/,""),this.print_string(T),this._output.space_before_token=!0),T=T.replace(/\s$/,""),v===0&&T.indexOf(":")!==-1&&(g=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(C),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var L=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);L.match(/[ :]$/)&&(L=this.eatString(": ").replace(/\s$/,""),this.print_string(L),this._output.space_before_token=!0),L=L.replace(/\s$/,""),v===0&&L.indexOf(":")!==-1?(g=!0,this.indent()):L in this.NESTED_AT_RULE?(this._nestedLevel+=1,L in this.CONDITIONAL_GROUP_RULE&&(A=!0)):v===0&&!g&&(m=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(C),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")g&&(g=!1,this.outdent()),m=!1,A?(A=!1,y=this._indentLevel>=this._nestedLevel):y=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&y&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(k==="("?this._output.space_before_token=!1:k!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),k==="{"&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),y=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var H=0;H<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;H++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[H])){_=!0;break}(y||A)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!m&&v===0?(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var F=k==='"'||k==="'";this.preserveSingleSpace(F||C),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")_=!1,v===0?(g&&(this.outdent(),g=!1),m=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),v++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this.
|
||
|
|
`&&_&&this._output.add_new_line()}var V=this._output.get_code(f);return V},x4.Beautifier=u,x4}var y7;function RHe(){if(y7)return I1.exports;y7=1;var e=IHe().Beautifier,t=QC().Options;function n(o,r){var s=new e(o,r);return s.beautify()}return I1.exports=n,I1.exports.defaultOptions=function(){return new t},I1.exports}var R1={exports:{}},M4={},z4={},w7;function jC(){if(w7)return z4;w7=1;var e=q8().Options;function t(n){e.call(this,n,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,z4.Options=t,z4}var B1={},A7;function C7(){if(A7)return B1;A7=1;var e=oc().Tokenizer,t=oc().TOKEN,n=X8().Directives,o=WC().TemplatablePattern,r=fu().Pattern,s={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},i=new n(/<\!--/,/-->/),a=function(l,c){e.call(this,l,c),this._current_tag_name="";var d=new o(this._input).read_options(this._options),u=new r(this._input);if(this.__patterns={word:d.until(/[\n\r\t <]/),single_quote:d.until_after(/'/),double_quote:d.until_after(/"/),attribute:d.until(/[\n\r\t =>]|\/>/),element_name:d.until(/[\n\r\t >\/]/),handlebars_comment:u.starting_with(/{{!--/).until_after(/--}}/),handlebars:u.starting_with(/{{/).until_after(/}}/),handlebars_open:u.until(/[\n\r\t }]/),handlebars_raw_close:u.until(/}}/),comment:u.starting_with(/<!--/).until_after(/-->/),cdata:u.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:u.starting_with(/<!\[/).until_after(/]>/),processing:u.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var h=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=u.matching(h).until_after(h)}};return a.prototype=new e,a.prototype._is_comment=function(l){return!1},a.prototype._is_opening=function(l){return l.type===s.TAG_OPEN},a.prototype._is_closing=function(l,c){return l.type===s.TAG_CLOSE&&c&&((l.text===">"||l.text==="/>")&&c.text[0]==="<"||l.text==="}}"&&c.text[0]==="{"&&c.text[1]==="{")},a.prototype._reset=function(){this._current_tag_name=""},a.prototype._get_next_token=functi
|
||
|
|
`,y&&r.test(y)&&(g=y.match(r)[0])),y=y.replace(s,`
|
||
|
|
`);var A=y.match(/^[\t ]*/)[0],m={text:"",type:""},w=new f,E=new i(this._options,A),_=new n(y,this._options).tokenize();this._tag_stack=new u(E);for(var S=null,C=_.next();C.type!==o.EOF;)C.type===o.TAG_OPEN||C.type===o.COMMENT?(S=this._handle_tag_open(E,C,w,m,_),w=S):C.type===o.ATTRIBUTE||C.type===o.EQUALS||C.type===o.VALUE||C.type===o.TEXT&&!w.tag_complete?S=this._handle_inside_tag(E,C,w,m):C.type===o.TAG_CLOSE?S=this._handle_tag_close(E,C,w):C.type===o.TEXT?S=this._handle_text(E,C,w):E.add_raw_token(C),m=S,C=_.next();var k=E._output.get_code(g);return k},h.prototype._handle_tag_close=function(y,g,A){var m={text:g.text,type:g.type};return y.alignment_size=0,A.tag_complete=!0,y.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),A.is_unformatted?y.add_raw_token(g):(A.tag_start_char==="<"&&(y.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&A.has_wrapped_attrs&&y.print_newline(!1)),y.print_token(g)),A.indent_content&&!(A.is_unformatted||A.is_content_unformatted)&&(y.indent(),A.indent_content=!1),!A.is_inline_element&&!(A.is_unformatted||A.is_content_unformatted)&&y.set_wrap_point(),m},h.prototype._handle_inside_tag=function(y,g,A,m){var w=A.has_wrapped_attrs,E={text:g.text,type:g.type};return y.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),A.is_unformatted?y.add_raw_token(g):A.tag_start_char==="{"&&g.type===o.TEXT?y.print_preserved_newlines(g)?(g.newlines=0,y.add_raw_token(g)):y.print_token(g):(g.type===o.ATTRIBUTE?y.set_space_before_token(!0):(g.type===o.EQUALS||g.type===o.VALUE&&g.previous.type===o.EQUALS)&&y.set_space_before_token(!1),g.type===o.ATTRIBUTE&&A.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(y.traverse_whitespace(g),w=w||g.newlines!==0),this._is_wrap_attributes_force&&A.attr_count>=this._options.wrap_attributes_min_attrs&&(m.type!==o.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(y.print_newline(!1),w=!0)),y.print_token(g),w=w||y.previous_token_wrapped(),A.has_wrapped_attrs=w),E},h.prototype._handle_text=function(y,g,A){var m={text:g.text,type:"TK_CONTENT"};return A.custom_beautifier_name?this._print_custom_beatifier_text(y,g,A):A.is_unformatted||A.is_content_unformatted?y.add_raw_token(g):(y.traverse_whitespace(g),y.print_token(g)),m},h.prototype._print_custom_beatifier_text=function(y,g,A){var m=this;if(g.text!==""){var w=g.text,E,_=1,S="",C="";A.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?E=this._js_beautify:A.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?E=this._css_beautify:A.custom_beautifier_name==="html"&&(E=function(H,F){var D=new h(H,F,m._js_beautify,m._css_beautify);return D.beautify()}),this._options.indent_scripts==="keep"?_=0:this._options.indent_scripts==="separate"&&(_=-y.indent_level);var k=y.get_full_indent(_);if(w=w.replace(/\n[ \t]*$/,""),A.custom_beautifier_name!=="html"&&w[0]==="<"&&w.match(/^(<!--|<!\[CDATA\[)/)){var x=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(w);if(!x){y.add_raw_token(g);return}S=k+x[1]+`
|
||
|
|
`,w=x[4],x[5]&&(C=k+x[5]),w=w.replace(/\n[ \t]*$/,""),(x[2]||x[3].indexOf(`
|
||
|
|
`)!==-1)&&(x=x[3].match(/[ \t]+$/),x&&(g.whitespace_before=x[0]))}if(w)if(E){var M=function(){this.eol=`
|
||
|
|
`};M.prototype=this._options.raw_options;var T=new M;w=E(k+w,T)}else{var L=g.whitespace_before;L&&(w=w.replace(new RegExp(`
|
||
|
|
(`+L+")?","g"),`
|
||
|
|
`)),w=k+w.replace(/\n/g,`
|
||
|
|
`+k)}S&&(w?w=S+w+`
|
||
|
|
`+C:w=S+C),y.print_newline(!1),w&&(g.text=w,g.whitespace_before="",g.newlines=0,y.add_raw_token(g),y.print_newline(!0))}},h.prototype._handle_tag_open=function(y,g,A,m,w){var E=this._get_tag_open_token(g);if((A.is_unformatted||A.is_content_unformatted)&&!A.is_empty_element&&g.type===o.TAG_OPEN&&!E.is_start_tag?(y.add_raw_token(g),E.start_tag_token=this._tag_stack.try_pop(E.tag_name)):(y.traverse_whitespace(g),this._set_tag_position(y,g,E,A,m),E.is_inline_element||y.set_wrap_point(),y.print_token(g)),E.is_start_tag&&this._is_wrap_attributes_force){var _=0,S;do S=w.peek(_),S.type===o.ATTRIBUTE&&(E.attr_count+=1),_+=1;while(S.type!==o.EOF&&S.type!==o.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(E.alignment_size=g.text.length+1),!E.tag_complete&&!E.is_unformatted&&(y.alignment_size=E.alignment_size),E};var f=function(y,g){if(this.parent=y||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!g)this.tag_complete=!0;else{var A;this.tag_start_char=g.text[0],this.text=g.text,this.tag_start_char==="<"?(A=g.text.match(/^<([^\s>]*)/),this.tag_check=A?A[1]:""):(A=g.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=A?A[1]:"",(g.text.startsWith("{{#>")||g.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&g.next!==null?this.tag_check=g.next.text.split(" ")[0]:this.tag_check=g.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),g.type===o.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||g.closed&&g.closed.text==="/>";var m=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(m=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(m)))}};h.prototype._get_tag_open_token=function(y){var g=new f(this._tag_stack.get_parser_token(),y);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||c(g.tag_check,this._options.void_elements),g.is_empty_element=g.tag_complete||g.is_start_tag&&g.is_end_tag,g.is_unformatted=!g.tag_complete&&c(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&c(g.tag_check,this._options.content_unformatted),g.is_inline_element=c(g.tag_name,this._options.inline)||g.tag_name.includes("-")||g.tag_start_char==="{",g},h.prototype._set_tag_position=function(y,g,A,m,w){if(A.is_empty_element||(A.is_end_tag?A.start_tag_token=this._tag_stack.try_pop(A.tag_name):(this._do_optional_end_element(A)&&(A.is_inline_element||y.print_newline(!1)),this._tag_stack.record_tag(A),(A.tag_name==="script"||A.tag_name==="style")&&!(A.is_unformatted||A.is_content_unformatted)&&(A.custom_beautifier_name=l(A.tag_check,g)))),c(A.tag_check,this._options.extra_liners)&&(y.print_newline(!1),y._output.just_added_blankline()||y.print_newline(!0)),A.is_empty_element){if(A.tag_start_char==="{"&&A.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),A.indent_content=!0;var E=y.current_line_has_match(/{{#if/);E||y.print_newline(!1)}A.tag_name==="!--"&&w.type===o.TAG_CLOSE&&m.is_end_tag&&A.text.indexOf(`
|
||
|
|
`)===-1||(A.is_inline_element||A.is_unformatted||y.print_newline(!1),this._calcluate_parent_multiline(y,A))}else if(A.is_end_tag){var _=!1;_=A.start_tag_token&&A.start_tag_token.multiline_content,_=_||!A.is_inline_element&&!(m.is_inline_element||m.is_unformatted)&&!(w.type===o.TAG_CLOSE&&A.start_tag_token===m)&&w.type!=="TK_CONTENT",(A.is_content_unformatted||A.is_unformatted)&&(_=!1),_&&y.print_newline(!1)}else A.indent_content=!A.custom_beautifier_name,A.tag_start_char==="<"&&(A.tag_name==="html"?A.indent_content=this._options.indent_inner_html:A.tag_name==="head"?A.indent_content=this._options.indent_head_inner_html:A.tag_name==="body"&&(A.indent_content=this._options.indent_body_inner_html)),!(A.is_inline_element||A.is_unformatted)&&(w.type!=="TK_CONTENT"||A.is_content_unformatted)&&y.print_newline(!1),this._calcluate_parent_multiline(y,A)},h.prototype._calcluate_parent_multiline=function(y,g){g.parent&&y._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var p=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],v=["a","audio","del","ins","map","noscript","video"];return h.prototype._do_optional_end_element=function(y){var g=null;if(!(y.is_empty_element||!y.is_start_tag||!y.parent)){if(y.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(y.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(y.tag_name==="dd"||y.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(y.parent.tag_name==="p"&&p.indexOf(y.tag_name)!==-1){var A=y.parent.parent;(!A||v.indexOf(A.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else y.tag_name==="rp"||y.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):y.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):y.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):y.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):y.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):y.tag_name==="tbody"||y.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):y.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(y.tag_name==="th"||y.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return y.parent=this._tag_stack.get_parser_token(),g}},M4.Beautifier=h,M4}var E7;function VHe(){if(E7)return R1.exports;E7=1;var e=BHe().Beautifier,t=jC().Options;function n(o,r,s,i){var a=new e(o,r,s,i);return a.beautify()}return R1.exports=n,R1.exports.defaultOptions=function(){return new t},R1.exports}var S7;function PHe(){if(S7)return ll;S7=1;var e=OHe(),t=RHe(),n=VHe();function o(r,s,i,a){return i=i||e,a=a||t,n(r,s,i,a)}return o.defaultOptions=n.defaultOptions,ll.js=e,ll.css=t,ll.html=o,ll}(function(e){function t(n,o,r){var s=function(i,a){return n.js_beautify(i,a)};return s.js=n.js_beautify,s.css=o.css_beautify,s.html=r.html_beautify,s.js_beautify=n.js_beautify,s.css_beautify=o.css_beautify,s.html_beautify=r.html_beautify,s}(function(n){var o=PHe();o.js_beautify=o.js,o.css_beautify=o.css,o.html_beautify=o.html,n.exports=t(o,o,o)})(e)})(PC);var DHe=PC.exports;const NHe=qo(DHe),FHe="javascript";function WHe(e){const t=Function;return new t("return "+e)()}function rc(e){let t=[];if(e===null)return null;if(typeof e=="string")return'"'+e.replace(/([\\'\\"\\])/g,"\\$1")
|
||
|
|
// data经过处理后返回
|
||
|
|
console.log('beforeRequest',data)
|
||
|
|
return data
|
||
|
|
}`,EIe=`opt=(res) => {
|
||
|
|
// res返回数据
|
||
|
|
console.log('afterResponse',res)
|
||
|
|
return res
|
||
|
|
}`,SIe=`opt=(key,model) => {
|
||
|
|
// name当前改变组件的值,model表单的值
|
||
|
|
console.log('onChange',key)
|
||
|
|
return model
|
||
|
|
}`,J2="AK",KC=J2+"ControlChange",G8=J2+"SetFormOptions",qC=J2+"GetControlByName",UC=J2+"FormBtnEvent",Ga=J2+"FormProps",x7=[{type:"required",label:"必填",regExp:/^\s*$/,message:"必填项"},{type:"mobile",label:"手机号码",regExp:/^0{0,1}(13[0-9]|15[7-9]|153|156|18[7-9])[0-9]{8}$/,message:"请输入手机号码"},{type:"tel",label:"固话",regExp:/^0\d{2,3}-\d{7,8}$/,message:"请输入固定电话号码"},{type:"phone",label:"固话或手机",regExp:/^((0\d{2,3}(-?)\d{7,8})|(1[3456789]\d{9}))$/,message:"请输入固定电话号码或手机号"},{type:"email",label:"邮箱",regExp:/^[a-z0-9A-Z._%-]+@([a-z0-9A-Z-]+\.)+[a-zA-Z]{2,4}$/,message:"请输入邮箱地址"},{type:"int",label:"正整数",regExp:/^[0-9]*[1-9][0-9]*$/,message:"请输入正整数"},{type:"number",label:"数字",regExp:/^\d+(\.\d+)?$/,message:"请输入数字"},{type:"money",label:"金额",regExp:/^[0-9]+\.?[0-9]{0,2}$/,message:"请输入正确的金额,最多两位小数"},{type:"card",label:"身份证",regExp:/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/,message:"请输入身份证号"},{type:"cn",label:"中文",regExp:/[\u4e00-\u9fa5]+/,message:"请输入中文"},{type:"numberLetter",label:"数字字母",regExp:/[0-9a-zA-Z]$/,message:"请输入数字或字母"},{type:"url",label:"网址",regExp:/^https?:\/\/((.)+(\.)?)*(:\d+)?(\/((\.)?(\?)?=?&?.(\?)?)*)*$/,message:"请输入网址"},{type:"longitude",label:"经度",regExp:/^[-+]?(0?\d{1,2}\.\d{1,10}|1[0-7]?\d\.\d{1,10}|180\.0{1,10})$/,message:"请输入正确的经度"},{type:"latitude",label:"纬度",regExp:/^[-+]?([0-8]?\d{1}\.\d{1,10}|90\.0{1,10})$/,message:"请输入正确的纬度"}],KHe=["onClick"],qHe=ie({__name:"user",props:{modelValue:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=U(),r=I({get:()=>n.modelValue,set:i=>{t("update:modelValue",i)}}),s=()=>{o.value.open()};return ot(()=>{Ne(()=>{})}),(i,a)=>{const l=Bn,c=rt("user-dialog");return z(),B(De,null,[ee(l,tt({placeholder:"请选择用户或输入用户名称"},i.$props,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=d=>r.value=d),onClick:s}),{append:re(()=>[R("i",{class:"icon-user",onClick:Ye(s,["stop"])},null,8,KHe)]),_:1},16,["modelValue"]),ee(c,{ref_key:"userDialogEl",ref:o,modelValue:r.value,"onUpdate:modelValue":a[1]||(a[1]=d=>r.value=d)},null,8,["modelValue"])],64)}}});const L4=ie({__name:"select",props:{data:{},modelValue:{},disabled:{type:Boolean},transformOption:{},options:{default:()=>[]},type:{},remoteMethod:{}},emits:["change","update:modelValue"],setup(e,{emit:t}){const n=e,o=U(),r=Be(Ga,{}),s=I(()=>{var u,h;if(o.value)return o.value;if(n.type==="slot"){const f=r.value.dict;if(f&&((u=n.data.config)==null?void 0:u.optionsType)===2){const p=f[(h=n.data.config)==null?void 0:h.optionsFun];if(p!==void 0)return Fl(p)}return n.data.options}else return n.options}),i=Be(G8,{});be(()=>i.value,u=>{const h=u[n.data.name];u&&h!==void 0&&(o.value=Fl(h))});const a=I({get(){return n.type==="slot"?r.value.model[n.data.name]:n.modelValue},set(u){n.type==="slot"?t("change",u,n.data.name):t("update:modelValue",u)}}),l=xt({loading:!1});be(()=>n.data.options,()=>{l.loading=!1});const c=I(()=>{var u,h,f,p;return!!((u=n.data.control)!=null&&u.remote&&((h=n.data.control)!=null&&h.filterable)&&((f=n.data.config)==null?void 0:f.optionsType)===1&&((p=n.data.config)!=null&&p.optionsFun))}),d=u=>{var h;if(c.value){l.loading=!0;const f=((h=n.data.config)==null?void 0:h.queryName)||"name";n.remoteMethod&&n.remoteMethod({[f]:u}),n.data.control.remoteMethod&&n.data.control.remoteMethod(u)}};return(u,h)=>{const f=m2,p=Ps;return z(),he(p,tt(u.data.control,{disabled:u.disabled,modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=v=>a.value=v),loading:l.loading,remoteMethod:d}),{default:re(()=>{var v;return[(v=u.data.config)!=null&&v.addAll?(z(),he(f,{key:0,value:"",label:"全部"})):de("",!0),(z(!0),B(De,null,mt(s.value,y=>{var g;return z(),he(f,{key:y.value,label:y.label,value:u.transf
|
||
|
|
\v\f\r \u2028\u2029\uFEFF`;if(!String.prototype.trim||D.trim()){D="["+D+"]";var O=new RegExp("^"+D+D+"*"),V=new RegExp(D+D+"*$");String.prototype.trim=function(){return String(this).replace(O,"").replace(V,"")}}var P=function(N){if(N==null)throw new TypeError("can't convert "+N+" to object");return Object(N)}}),define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(e,t,n){e("./regexp"),e("./es5-shim"),typeof Element<"u"&&!Element.prototype.remove&&Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})}),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},typeof navigator=="object"){var o=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),r=navigator.userAgent;t.isWin=o=="win",t.isMac=o=="mac",t.isLinux=o=="linux",t.isIE=navigator.appName=="Microsoft Internet Explorer"||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=r.match(/ Gecko\/\d+/),t.isOpera=window.opera&&Object.prototype.toString.call(window.opera)=="[object Opera]",t.isWebKit=parseFloat(r.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(r.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(r.split(" Edge/")[1])||void 0,t.isAIR=r.indexOf("AdobeAIR")>=0,t.isIPad=r.indexOf("iPad")>=0,t.isAndroid=r.indexOf("Android")>=0,t.isChromeOS=r.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(r)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIPad||t.isAndroid}}),define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,t,n){var o=e("./useragent"),r="http://www.w3.org/1999/xhtml";if(t.buildDom=function i(a,l,c){if(typeof a=="string"&&a){var d=document.createTextNode(a);return l&&l.appendChild(d),d}if(!Array.isArray(a))return a;if(typeof a[0]!="string"||!a[0]){for(var u=[],h=0;h<a.length;h++){var f=i(a[h],l,c);f&&u.push(f)}return u}var p=document.createElement(a[0]),v=a[1],y=1;v&&typeof v=="object"&&!Array.isArray(v)&&(y=2);for(var h=y;h<a.length;h++)i(a[h],p,c);return y==2&&Object.keys(v).forEach(function(g){var A=v[g];g==="class"?p.className=Array.isArray(A)?A.join(" "):A:typeof A=="function"||g=="value"?p[g]=A:g==="ref"?c&&(c[A]=p):A!=null&&p.setAttribute(g,A)}),l&&l.appendChild(p),p},t.getDocumentHead=function(i){return i||(i=document),i.head||i.getElementsByTagName("head")[0]||i.documentElement},t.createElement=function(i,a){return document.createElementNS?document.createElementNS(a||r,i):document.createElement(i)},t.removeChildren=function(i){i.innerHTML=""},t.createTextNode=function(i,a){var l=a?a.ownerDocument:document;return l.createTextNode(i)},t.createFragment=function(i){var a=i?i.ownerDocument:document;return a.createDocumentFragment()},t.hasCssClass=function(i,a){var l=(i.className+"").split(/\s+/g);return l.indexOf(a)!==-1},t.addCssClass=function(i,a){t.hasCssClass(i,a)||(i.className+=" "+a)},t.removeCssClass=function(i,a){for(var l=i.className.split(/\s+/g);;){var c=l.indexOf(a);if(c==-1)break;l.splice(c,1)}i.className=l.join(" ")},t.toggleCssClass=function(i,a){for(var l=i.className.split(/\s+/g),c=!0;;){var d=l.indexOf(a);if(d==-1)break;c=!1,l.splice(d,1)}return c&&l.push(a),i.className=l.join(" "),c},t.setCssClass=function(i,a,l){l?t.addCssClass(i,a):t.removeCssClass(i,a)},t.hasCssString=function(i,a){var l=0,c;if(a=a||document,c=a.querySelectorAll("style")){for(;l<c.length;)if(c[l++].id===i)return!0}},t.importCssString=function(i,a,l){var c=l&&l.getRootNode?l.getRootNode():document,d=c.ownerDocument||c;if(a&&t.hasCssString(a,c))return null;a&&(i+=`
|
||
|
|
/*# sourceURL=ace/css/`+a+" */");var u=t.createElement("style");u.appendChild(d.createTextNode(i)),a&&(u.id=a),c==d&&(c=t.getDocumentHead(d)),c.insertBefore(u,c.firstChild)},t.importCssStylsheet=function(i,a){t.buildDom(["link",{rel:"stylesheet",href:i}],t.getDocumentHead(a))},t.scrollbarWidth=function(i){var a=t.createElement("ace_inner");a.style.width="100%",a.style.minWidth="0px",a.style.height="200px",a.style.display="block";var l=t.createElement("ace_outer"),c=l.style;c.position="absolute",c.left="-10000px",c.overflow="hidden",c.width="200px",c.minWidth="0px",c.height="150px",c.display="block",l.appendChild(a);var d=i.documentElement;d.appendChild(l);var u=a.offsetWidth;c.overflow="scroll";var h=a.offsetWidth;return u==h&&(h=l.clientWidth),d.removeChild(l),u-h},typeof document>"u"&&(t.importCssString=function(){}),t.computedStyle=function(i,a){return window.getComputedStyle(i,"")||{}},t.setStyle=function(i,a,l){i[a]!==l&&(i[a]=l)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=o.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,typeof document<"u"){var s=document.createElement("div");t.HI_DPI&&s.style.transform!==void 0&&(t.HAS_CSS_TRANSFORMS=!0),!o.isEdge&&typeof s.style.animationName<"u"&&(t.HAS_CSS_ANIMATION=!0),s=null}t.HAS_CSS_TRANSFORMS?t.translate=function(i,a,l){i.style.transform="translate("+Math.round(a)+"px, "+Math.round(l)+"px)"}:t.translate=function(i,a,l){i.style.top=Math.round(l)+"px",i.style.left=Math.round(a)+"px"}}),define("ace/lib/oop",["require","exports","module"],function(e,t,n){t.inherits=function(o,r){o.super_=r,o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(o,r){for(var s in r)o[s]=r[s];return o},t.implement=function(o,r){t.mixin(o,r)}}),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 s={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:"*"}},i,a;for(a in s.FUNCTION_KEYS)i=s.FUNCTION_KEYS[a].toLowerCase(),s[i]=parseInt(a,10);for(a in s.PRINTABLE_KEYS)i=s.PRINTABLE_KEYS[a].toLowerCase(),s[i]=parseInt(a,10);return o.mixin(s,s.MODIFIER_KEYS),o.mixin(s,s.PRINTABLE_KEYS),o.mixin(s,s.FUNCTION_KEYS),s.enter=s.return,s.escape=s.esc,s.del=s.delete,s[173]="-",function(){for(var l=["cmd","ctrl","alt","shift"],c=Math.pow(2,l.length);c--;)s.KEY_MODS[c]=l.filter(function(d){return c&s.KEY_MODS[d]}).join("-")+"-"}(),s.KEY_MODS[0]="",s.KEY_MODS[-1]="input-",s}();o.mixin(t,r),t.keyCodeToString=function(s){var i=r[s];return typeof i!="string"&&(i=String.fromCharCode(s)),i.toLowerCase()}}),define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){function o(u,h,f){var p=c(h);if(!i.isMac&&a){if(h.getModifierState&&(h.getModifierState("OS")||h.getModifierState("Win"))&&(p|=8),a.altGr){if((3&p)==3)return;a.altGr=0}if(f===18||f===17){var v="location"in h?h.location:h.keyLocation;if(f===17&&v===1)a[f]==1&&(l=h.timeStamp);else if(f===18&&p===3&&v===2){var y=h.timeStamp-l;y<50&&(a.altGr=!0)}}}i
|
||
|
|
aaaa a
|
||
|
|
`,m=!1,w=!1,E=!1,_=!1,S="",C=!0;try{var k=document.activeElement===g}catch{}o.addListener(g,"blur",function(X){f.onBlur(X),k=!1}),o.addListener(g,"focus",function(X){k=!0,f.onFocus(X),p()}),this.focus=function(){if(S)return g.focus();g.style.position="fixed",g.focus()},this.blur=function(){g.blur()},this.isFocused=function(){return k};var x=i.delayedCall(function(){k&&p(C)}),M=i.delayedCall(function(){_||(g.value=A,k&&p())});r.isWebKit||f.addEventListener("changeSelection",function(){f.selection.isEmpty()!=C&&(C=!C,x.schedule())}),v(),k&&f.onFocus();var T=function(X){return X.selectionStart===0&&X.selectionEnd===X.value.length},L=function(X){T(g)?(f.selectAll(),p()):H&&p(f.selection.isEmpty())},H=null;this.setInputHandler=function(X){H=X},this.getInputHandler=function(){return H};var F=!1,D=function(X){g.selectionStart===4&&g.selectionEnd===5||(H&&(X=H(X),H=null),E?(p(),X&&f.onPaste(X),E=!1):X==A.substr(0)&&g.selectionStart===4?F?f.execCommand("del",{source:"ace"}):f.execCommand("backspace",{source:"ace"}):m||(X.substring(0,9)==A&&X.length>A.length?X=X.substr(9):X.substr(0,4)==A.substr(0,4)?X=X.substr(4,X.length-A.length+1):X.charAt(X.length-1)==A.charAt(0)&&(X=X.slice(0,-1)),X!=A.charAt(0)&&X.charAt(X.length-1)==A.charAt(0)&&(X=X.slice(0,-1)),X&&f.onTextInput(X)),m&&(m=!1),F&&(F=!1))},O=function(X){if(!_){var j=g.value;D(j),v()}},V=function(X,j,K){var $=X.clipboardData||window.clipboardData;if(!(!$||c)){var ue=d||K?"Text":"text/plain";try{return j?$.setData(ue,j)!==!1:$.getData(ue)}catch(le){if(!K)return V(le,j,!0)}}},P=function(X,j){var K=f.getCopyText();if(!K)return o.preventDefault(X);V(X,K)?(r.isIOS&&(w=j,g.value=`
|
||
|
|
aa`+K+`a a
|
||
|
|
`,g.setSelectionRange(4,4+K.length),m={value:K}),j?f.onCut():f.onCopy(),r.isIOS||o.preventDefault(X)):(m=!0,g.value=K,g.select(),setTimeout(function(){m=!1,v(),p(),j?f.onCut():f.onCopy()}))},N=function(X){P(X,!0)},q=function(X){P(X,!1)},W=function(X){var j=V(X);typeof j=="string"?(j&&f.onPaste(j,X),r.isIE&&setTimeout(p),o.preventDefault(X)):(g.value="",E=!0)};o.addCommandKeyListener(g,f.onCommandKey.bind(f)),o.addListener(g,"select",L),o.addListener(g,"input",O),o.addListener(g,"cut",N),o.addListener(g,"copy",q),o.addListener(g,"paste",W);var G=function(X){_||!f.onCompositionStart||f.$readOnly||(_={},_.canUndo=f.session.$undoManager,f.onCompositionStart(),setTimeout(Y,0),f.on("mousedown",oe),_.canUndo&&!f.selection.isEmpty()&&(f.insert(""),f.session.markUndoGroup(),f.selection.clearSelection()),f.session.markUndoGroup())},Y=function(){if(!(!_||!f.onCompositionUpdate||f.$readOnly)){var X=g.value.replace(/\x01/g,"");if(_.lastValue!==X&&(f.onCompositionUpdate(X),_.lastValue&&f.undo(),_.canUndo&&(_.lastValue=X),_.lastValue)){var j=f.selection.getRange();f.insert(_.lastValue),f.session.markUndoGroup(),_.range=f.selection.getRange(),f.selection.setRange(j),f.selection.clearSelection()}}},oe=function(X){if(!(!f.onCompositionEnd||f.$readOnly)){var j=_;_=!1;var K=setTimeout(function(){K=null;var ue=g.value.replace(/\x01/g,"");_||(ue==j.lastValue?v():!j.lastValue&&ue&&(v(),D(ue)))});H=function(ue){return K&&clearTimeout(K),ue=ue.replace(/\x01/g,""),ue==j.lastValue?"":(j.lastValue&&K&&f.undo(),ue)},f.onCompositionEnd(),f.removeListener("mousedown",oe),X.type=="compositionend"&&j.range&&f.selection.setRange(j.range);var $=!!r.isChrome&&r.isChrome>=53||!!r.isWebKit&&r.isWebKit>=603;$&&O()}},ne=i.delayedCall(Y,50);o.addListener(g,"compositionstart",G),o.addListener(g,"compositionupdate",function(){ne.schedule()}),o.addListener(g,"keyup",function(){ne.schedule()}),o.addListener(g,"keydown",function(){ne.schedule()}),o.addListener(g,"compositionend",oe),this.getElement=function(){return g},this.setReadOnly=function(X){g.readOnly=X},this.onContextMenu=function(X){F=!0,p(f.selection.isEmpty()),f._emit("nativecontextmenu",{target:f,domEvent:X}),this.moveToMouse(X,!0)},this.moveToMouse=function(X,j){S||(S=g.style.cssText),g.style.cssText=(j?"z-index:100000;":"")+"height:"+g.style.height+";"+(r.isIE?"opacity:0.1;":"");var K=f.container.getBoundingClientRect(),$=s.computedStyle(f.container),ue=K.top+(parseInt($.borderTopWidth)||0),le=K.left+(parseInt(K.borderLeftWidth)||0),Ce=K.bottom-ue-g.clientHeight-2,Ae=function(xe){g.style.left=xe.clientX-le-2+"px",g.style.top=Math.min(xe.clientY-ue-2,Ce)+"px"};Ae(X),X.type=="mousedown"&&(f.renderer.$keepTextAreaAtCursor&&(f.renderer.$keepTextAreaAtCursor=null),clearTimeout(J),r.isWin&&o.capture(f.container,Ae,y))},this.onContextMenuClose=y;var J,Z=function(X){f.textInput.onContextMenu(X),y()};if(o.addListener(g,"mouseup",Z),o.addListener(g,"mousedown",function(X){X.preventDefault(),y()}),o.addListener(f.renderer.scroller,"contextmenu",Z),o.addListener(g,"contextmenu",Z),r.isIOS){var te=null,ce=!1;h.addEventListener("keydown",function(X){te&&clearTimeout(te),ce=!0}),h.addEventListener("keyup",function(X){te=setTimeout(function(){ce=!1},100)});var Ee=function(X){if(document.activeElement===g&&!ce){if(w)return setTimeout(function(){w=!1},100);var j=g.selectionStart,K=g.selectionEnd;if(g.setSelectionRange(4,5),j==K)switch(j){case 0:f.onCommandKey(null,0,a.up);break;case 1:f.onCommandKey(null,0,a.home);break;case 2:f.onCommandKey(null,l.option,a.left);break;case 4:f.onCommandKey(null,0,a.left);break;case 5:f.onCommandKey(null,0,a.right);break;case 7:f.onCommandKey(null,l.option,a.right);break;case 8:f.onCommandKey(null,0,a.end);break;case 9:f.onCommandKey(null,0,a.down)}else{switch(K){case 6:f.onCommandKey(null,l.shift,a.right);break;case 7:f.onCommandKey(null,l.shift|l.option,a.right);break;case 8:f.onCommandKey(null,l.shift,a.end);break;case 9:f.onCommandKey(null,l.shift,a.down)}switch(j){case 0:f.onCommandKey(null,l.shift,a.up);break;case 1:f.onCommandKey(null,l.shift,a.home);break;case 2:f.onCommandKey(
|
||
|
|
`+le}else if(j.end.row!=K){var Ae=p.session.getLine(K+1);ue=j.end.row>K+1?Ae.length:ue,ue+=le.length+1,le=le+`
|
||
|
|
`+Ae}le.length>d&&($<d&&ue<d?le=le.slice(0,d):(le=`
|
||
|
|
`,$=0,ue=1));var xe=le+`
|
||
|
|
|
||
|
|
`;if(xe!=M&&(m.value=M=xe,T=L=xe.length),V&&(T=m.selectionStart,L=m.selectionEnd),L!=ue||T!=$)try{m.setSelectionRange($,ue),T=$,L=ue}catch{}_=!1}}function y(){x=!0,m.blur(),m.focus(),x=!1}function g(X){X.keyCode==27&&m.value.length<m.selectionStart&&(_||(M=m.value),T=L=-1,v()),te()}function A(){clearTimeout(ce),ce=setTimeout(function(){C&&(m.style.cssText=C,C=""),p.renderer.$keepTextAreaAtCursor==null&&(p.renderer.$keepTextAreaAtCursor=!0,p.renderer.$moveTextAreaToCursor())},0)}if(r.isIOS)return u.call(this,f,p);var m=s.createElement("textarea");m.className="ace_text-input",m.setAttribute("wrap","off"),m.setAttribute("autocorrect","off"),m.setAttribute("autocapitalize","off"),m.setAttribute("spellcheck",!1),m.style.opacity="0",f.insertBefore(m,f.firstChild);var w=!1,E=!1,_=!1,S=!1,C="";r.isMobile||(m.style.fontSize="1px");var k=!1,x=!1,M="",T=0,L=0;try{var H=document.activeElement===m}catch{}o.addListener(m,"blur",function(X){x||(p.onBlur(X),H=!1)}),o.addListener(m,"focus",function(X){x||(H=!0,p.onFocus(X),v())}),this.$focusScroll=!1,this.focus=function(){if(C||c||this.$focusScroll=="browser")return m.focus({preventScroll:!0});if(document.documentElement.contains(m)){var X=m.style.top;m.style.position="fixed",m.style.top="0px";var j=m.getBoundingClientRect().top!=0,K=[];if(j)for(var $=m.parentElement;$&&$.nodeType==1;)K.push($),$.setAttribute("ace_nocontext",!0),!$.parentElement&&$.getRootNode?$=$.getRootNode().host:$=$.parentElement;m.focus({preventScroll:!0}),j&&K.forEach(function(ue){ue.removeAttribute("ace_nocontext")}),setTimeout(function(){m.style.position="",m.style.top=="0px"&&(m.style.top=X)},0)}},this.blur=function(){m.blur()},this.isFocused=function(){return H},p.on("beforeEndOperation",function(){p.curOp&&p.curOp.command.name=="insertstring"||(_&&(M=m.value="",Z()),v())}),H&&p.onFocus();var F=function(X){return X.selectionStart===0&&X.selectionEnd>=M.length&&X.value===M&&M&&X.selectionEnd!==L},D=function(X){_||(w?w=!1:F(m)&&(p.selectAll(),v()))},O=null;this.setInputHandler=function(X){O=X},this.getInputHandler=function(){return O};var V=!1,P=function(X,j){if(V&&(V=!1),E)return v(),X&&p.onPaste(X),E=!1,"";for(var K=m.selectionStart,$=m.selectionEnd,ue=T,le=M.length-L,Ce=X,Ae=X.length-K,xe=X.length-$,me=0;ue>0&&M[me]==X[me];)me++,ue--;for(Ce=Ce.slice(me),me=1;le>0&&M.length-me>T-1&&M[M.length-me]==X[X.length-me];)me++,le--;return Ae-=me-1,xe-=me-1,Ce=Ce.slice(0,Ce.length-me+1),!j&&Ae==Ce.length&&!ue&&!le&&!xe?"":(S=!0,Ce&&!ue&&!le&&!Ae&&!xe||k?p.onTextInput(Ce):p.onTextInput(Ce,{extendLeft:ue,extendRight:le,restoreStart:Ae,restoreEnd:xe}),S=!1,M=X,T=K,L=$,Ce)},N=function(X){if(_)return J();var j=m.value,K=P(j,!0);(j.length>d+100||/\n/.test(K))&&v()},q=function(X,j,K){var $=X.clipboardData||window.clipboardData;if(!(!$||a)){var ue=l||K?"Text":"text/plain";try{return j?$.setData(ue,j)!==!1:$.getData(ue)}catch(le){if(!K)return q(le,j,!0)}}},W=function(X,j){var K=p.getCopyText();if(!K)return o.preventDefault(X);q(X,K)?(j?p.onCut():p.onCopy(),o.preventDefault(X)):(w=!0,m.value=K,m.select(),setTimeout(function(){w=!1,v(),j?p.onCut():p.onCopy()}))},G=function(X){W(X,!0)},Y=function(X){W(X,!1)},oe=function(X){var j=q(X);typeof j=="string"?(j&&p.onPaste(j,X),r.isIE&&setTimeout(v),o.preventDefault(X)):(m.value="",E=!0)};o.addCommandKeyListener(m,p.onCommandKey.bind(p)),o.addListener(m,"select",D),o.addListener(m,"input",N),o.addListener(m,"cut",G),o.addListener(m,"copy",Y),o.addListener(m,"paste",oe),(!("oncut"in m)||!("oncopy"in m)||!("onpaste"in m))&&o.addListener(f,"keydown",function(X){if(!(r.isMac&&!X.metaKey||!X.ctrlKey))switch(X.keyCode){case 67:Y(X);break;case 86:oe(X);break;case 88:G(X)}});var ne=function(X){if(!(_||!p.onCompositionStart||p.$readOnly)&&(_={},!k)){setTimeout(J,0),p.on("mousedown",y);var j=p.getSelectionRange();j.end.row=j.start.row,j.end.column=j.start.column,_.markerRange=j,_.selectionStart=T,p.onCompositionStart(_),_.useTextareaForIME?(m.value="",M="",T=0,L=0):(m.msGetInputContext&&(_.context=m.msGetInputContext()),m.getInputContext&&(_.context=m.getInputContext()))}},J=function(){if(!(!_||!p.
|
||
|
|
`))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var a=0,l=this.session.$screenRowCache;if(l.length){var c=this.session.$getRowCacheIndex(l,this.currentRow);c>=0&&(a=this.session.$docRowCache[c])}return a},this.getSplitIndex=function(){var a=0,l=this.session.$screenRowCache;if(l.length)for(var c,d=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-a>0&&(c=this.session.$getRowCacheIndex(l,this.currentRow-a-1),c===d);)d=c,a++;else a=this.currentRow;return a},this.updateRowLine=function(a,l){a===void 0&&(a=this.getDocumentRow());var c=a===this.session.getLength()-1,d=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(a),this.isRtlDir=this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var u=this.session.$wrapData[a];u&&(l===void 0&&(l=this.getSplitIndex()),l>0&&u.length?(this.wrapIndent=u.indent,this.wrapOffset=this.wrapIndent*this.charWidths[o.L],this.line=l<u.length?this.line.substring(u[l-1],u[l]):this.line.substring(u[u.length-1])):this.line=this.line.substring(0,u[l])),l==u.length&&(this.line+=this.showInvisibles?d:o.DOT)}else this.line+=this.showInvisibles?d:o.DOT;var h=this.session,f=0,p;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,function(v,y){return v===" "||h.isFullWidth(v.charCodeAt(0))?(p=v===" "?h.getScreenTabSize(y+f):2,f+=p-1,r.stringRepeat(o.DOT,p)):v}),this.isRtlDir&&(this.fontMetrics.$main.innerHTML=this.line.charAt(this.line.length-1)==o.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var a=[];o.hasBidiCharacters(this.line,a)||this.isRtlDir?this.bidiMap=o.doBidiReorder(this.line,a,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(a){if(this.characterWidth!==a.$characterSize.width){this.fontMetrics=a;var l=this.characterWidth=a.$characterSize.width,c=a.$measureCharWidth("ה");this.charWidths[o.L]=this.charWidths[o.EN]=this.charWidths[o.ON_R]=l,this.charWidths[o.R]=this.charWidths[o.AN]=c,this.charWidths[o.R_H]=c*.45,this.charWidths[o.B]=this.charWidths[o.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(a){this.showInvisibles=a,this.currentRow=null},this.setEolChar=function(a){this.EOL=a},this.setContentWidth=function(a){this.contentWidth=a},this.isRtlLine=function(a){return a!=null?this.session.getLine(a).charAt(0)==this.RLE:this.isRtlDir},this.setRtlDirection=function(a,l){for(var c=a.getCursorPosition(),d=a.selection.getSelectionAnchor().row;d<=c.row;d++)!l&&a.session.getLine(d).charAt(0)===a.session.$bidiHandler.RLE?a.session.doc.removeInLine(d,0,1):l&&a.session.getLine(d).charAt(0)!==a.session.$bidiHandler.RLE&&a.session.doc.insert({column:0,row:d},a.session.$bidiHandler.RLE)},this.getPosLeft=function(a){a-=this.wrapIndent;var l=this.line.charAt(0)===this.RLE?1:0,c=a>l?this.session.getOverwrite()?a:a-1:l,d=o.getVisualFromLogicalIdx(c,this.bidiMap),u=this.bidiMap.bidiLevels,h=0;!this.session.getOverwrite()&&a<=l&&u[d]%2!==0&&d++;for(var f=0;f<d;f++)h+=this.charWidths[u[f]];return!this.session.getOverwrite()&&a>l&&u[d]%2===0&&(h+=this.charWidths[u[d]]),this.wrapIndent&&(h+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(h+=this.rtlLineOffset),h},this.getSelections=function(a,l){var c=this.bidiMap,d=c.bidiLevels,u,h=[],f=0,p=Math.min(a,l)-this.wrapIndent,v=Math.max(a,l)-this.wrapIndent,y=!1,g=!1,A=0;this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var m,w=0;w<d.length;w++)m=c.logicalFromVisual[w],u=d[w],y=m>=p&&m<v,y&&!g?A=f:!y&&g&&h.push({left:A,width:f-A}),f+=this.charWidths[u],g=y;if(y&&w===d.length&&h.push({left:A,width:f-A}),this.isRtlDir)for(var E=0;E<h.length;E++)h[E].left+=this.rtlLineOffset;return h},this.offsetToCol=function(c){this.isRtlDir&&(c-=this.rtlLineOffset);var l=0,c=Math.max(c,0),d=0,u=0,h=this.bidiMap.bidiLevels,f=this.charWidths[h[u]];for(this.wrapIndent&&(c-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);c>d+f/2;){if(d+=f,u===h.length-1){f=0;
|
||
|
|
`||w==`\r
|
||
|
|
`){h(A);var M="";p.isMaybeInsertedClosing(E,_)&&(M=i.stringRepeat("}",c.maybeInsertedBrackets),p.clearMaybeInsertedClosing());var k=_.substring(E.column,E.column+1);if(k==="}"){var T=m.findMatchingBracket({row:E.row,column:E.column+1},"}");if(!T)return null;var L=this.$getIndent(m.getLine(T.row))}else{if(!M){p.clearMaybeInsertedClosing();return}var L=this.$getIndent(_)}var H=L+m.getTabString();return{text:`
|
||
|
|
`+H+`
|
||
|
|
`+L+M,selection:[1,H.length,1,H.length]}}p.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(y,g,A,m,w){var E=m.doc.getTextRange(w);if(!w.isMultiLine()&&E=="{"){h(A);var _=m.doc.getLine(w.start.row),S=_.substring(w.end.column,w.end.column+1);if(S=="}")return w.end.column++,w;c.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,g,A,m,w){if(w=="("){h(A);var E=A.getSelectionRange(),_=m.doc.getTextRange(E);if(_!==""&&A.getWrapBehavioursEnabled())return f(E,_,"(",")");if(p.isSaneInsertion(A,m))return p.recordAutoInsert(A,m,")"),{text:"()",selection:[1,1]}}else if(w==")"){h(A);var S=A.getCursorPosition(),C=m.doc.getLine(S.row),k=C.substring(S.column,S.column+1);if(k==")"){var x=m.$findOpeningBracket(")",{column:S.column+1,row:S.row});if(x!==null&&p.isAutoInsertedClosing(S,C,w))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,g,A,m,w){var E=m.doc.getTextRange(w);if(!w.isMultiLine()&&E=="("){h(A);var _=m.doc.getLine(w.start.row),S=_.substring(w.start.column+1,w.start.column+2);if(S==")")return w.end.column++,w}}),this.add("brackets","insertion",function(y,g,A,m,w){if(w=="["){h(A);var E=A.getSelectionRange(),_=m.doc.getTextRange(E);if(_!==""&&A.getWrapBehavioursEnabled())return f(E,_,"[","]");if(p.isSaneInsertion(A,m))return p.recordAutoInsert(A,m,"]"),{text:"[]",selection:[1,1]}}else if(w=="]"){h(A);var S=A.getCursorPosition(),C=m.doc.getLine(S.row),k=C.substring(S.column,S.column+1);if(k=="]"){var x=m.$findOpeningBracket("]",{column:S.column+1,row:S.row});if(x!==null&&p.isAutoInsertedClosing(S,C,w))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,g,A,m,w){var E=m.doc.getTextRange(w);if(!w.isMultiLine()&&E=="["){h(A);var _=m.doc.getLine(w.start.row),S=_.substring(w.start.column+1,w.start.column+2);if(S=="]")return w.end.column++,w}}),this.add("string_dquotes","insertion",function(y,g,A,m,w){var E=m.$mode.$quotes||u;if(w.length==1&&E[w]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(w)!=-1)return;h(A);var _=w,S=A.getSelectionRange(),C=m.doc.getTextRange(S);if(C!==""&&(C.length!=1||!E[C])&&A.getWrapBehavioursEnabled())return f(S,C,_,_);if(!C){var k=A.getCursorPosition(),x=m.doc.getLine(k.row),M=x.substring(k.column-1,k.column),T=x.substring(k.column,k.column+1),L=m.getTokenAt(k.row,k.column),H=m.getTokenAt(k.row,k.column+1);if(M=="\\"&&L&&/escape/.test(L.type))return null;var F=L&&/string|escape/.test(L.type),D=!H||/string|escape/.test(H.type),O;if(T==_)O=F!==D,O&&/string\.end/.test(H.type)&&(O=!1);else{if(F&&!D||F&&D)return null;var V=m.$mode.tokenRe;V.lastIndex=0;var P=V.test(M);V.lastIndex=0;var N=V.test(M);if(P||N||T&&!/[\s;,.})\]\\]/.test(T))return null;O=!0}return{text:O?_+_:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,g,A,m,w){var E=m.$mode.$quotes||u,_=m.doc.getTextRange(w);if(!w.isMultiLine()&&E.hasOwnProperty(_)){h(A);var S=m.doc.getLine(w.start.row),C=S.substring(w.start.column+1,w.start.column+2);if(C==_)return w.end.column++,w}})};p.isSaneInsertion=function(v,y){var g=v.getCursorPosition(),A=new s(y,g.row,g.column);if(!this.$matchTokenType(A.getCurrentToken()||"text",a)){var m=new s(y,g.row,g.column+1);if(!this.$matchTokenType(m.getCurrentToken()||"text",a))return!1}return A.stepForward(),A.getCurrentTokenRow()!==g.row||this.$matchTokenType(A.getCurrentToken()||"text",l)},p.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},p.recordAutoInsert=function(v,y,g){var A=v.getCursorPosition(),m=y.doc.getLine(A.row);this.isAutoInsertedClosing(A,m,c.autoInsertedLineEnd[0])||(c.autoInsertedBrackets=0),c.autoInsertedRow=A.row,c.autoInsertedLineEnd=g+m.substr(A.column),c.autoInsertedBrackets++},p.recordMaybeInsert=function(v,y,g){var A=v.getCursorPosition(),m=y.doc.getLine(A.row);this.isMaybeInsertedClosing(A,m)||(c.maybeInsertedBrackets=0),c.maybeInsertedRow=A.row,c.maybeInsertedLineStart=m.substr(0,A.column)+g,c.maybeInsertedLineEnd=m.substr(A.column),c.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(v,y,g){return c.autoInse
|
||
|
|
`).split(`
|
||
|
|
`)}:this.$split=function(c){return c.split(/\r\n|\r|\n/)},this.$detectNewLine=function(c){var d=c.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=d?d[1]:`
|
||
|
|
`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
|
||
|
|
`;case"unix":return`
|
||
|
|
`;default:return this.$autoNewLine||`
|
||
|
|
`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(c){this.$newLineMode!==c&&(this.$newLineMode=c,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(c){return c==`\r
|
||
|
|
`||c=="\r"||c==`
|
||
|
|
`},this.getLine=function(c){return this.$lines[c]||""},this.getLines=function(c,d){return this.$lines.slice(c,d+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(c){return this.getLinesForRange(c).join(this.getNewLineCharacter())},this.getLinesForRange=function(c){var d;if(c.start.row===c.end.row)d=[this.getLine(c.start.row).substring(c.start.column,c.end.column)];else{d=this.getLines(c.start.row,c.end.row),d[0]=(d[0]||"").substring(c.start.column);var u=d.length-1;c.end.row-c.start.row==u&&(d[u]=d[u].substring(0,c.end.column))}return d},this.insertLines=function(c,d){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(c,d)},this.removeLines=function(c,d){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(c,d)},this.insertNewLine=function(c){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(c,["",""])},this.insert=function(c,d){return this.getLength()<=1&&this.$detectNewLine(d),this.insertMergedLines(c,this.$split(d))},this.insertInLine=function(c,d){var u=this.clippedPos(c.row,c.column),h=this.pos(c.row,c.column+d.length);return this.applyDelta({start:u,end:h,action:"insert",lines:[d]},!0),this.clonePos(h)},this.clippedPos=function(c,d){var u=this.getLength();c===void 0?c=u:c<0?c=0:c>=u&&(c=u-1,d=void 0);var h=this.getLine(c);return d==null&&(d=h.length),d=Math.min(Math.max(d,0),h.length),{row:c,column:d}},this.clonePos=function(c){return{row:c.row,column:c.column}},this.pos=function(c,d){return{row:c,column:d}},this.$clipPosition=function(c){var d=this.getLength();return c.row>=d?(c.row=Math.max(0,d-1),c.column=this.getLine(d-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},this.insertFullLines=function(c,d){c=Math.min(Math.max(c,0),this.getLength());var u=0;c<this.getLength()?(d=d.concat([""]),u=0):(d=[""].concat(d),c--,u=this.$lines[c].length),this.insertMergedLines({row:c,column:u},d)},this.insertMergedLines=function(c,d){var u=this.clippedPos(c.row,c.column),h={row:u.row+d.length-1,column:(d.length==1?u.column:0)+d[d.length-1].length};return this.applyDelta({start:u,end:h,action:"insert",lines:d}),this.clonePos(h)},this.remove=function(c){var d=this.clippedPos(c.start.row,c.start.column),u=this.clippedPos(c.end.row,c.end.column);return this.applyDelta({start:d,end:u,action:"remove",lines:this.getLinesForRange({start:d,end:u})}),this.clonePos(d)},this.removeInLine=function(c,d,u){var h=this.clippedPos(c,d),f=this.clippedPos(c,u);return this.applyDelta({start:h,end:f,action:"remove",lines:this.getLinesForRange({start:h,end:f})},!0),this.clonePos(h)},this.removeFullLines=function(c,d){c=Math.min(Math.max(0,c),this.getLength()-1),d=Math.min(Math.max(0,d),this.getLength()-1);var u=d==this.getLength()-1&&c>0,h=d<this.getLength()-1,f=u?c-1:c,p=u?this.getLine(f).length:0,v=h?d+1:d,y=h?0:this.getLine(v).length,g=new i(f,p,v,y),A=this.$lines.slice(c,d+1);return this.applyDelta({start:g.start,end:g.end,action:"remove",lines:this.getLinesForRange(g)}),A},this.removeNewLine=function(c){c<this.getLength()-1&&c>=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},this.replace=function(c,d){if(c instanceof i||(c=i.fromPoints(c.start,c.end)),d.length===0&&c.isEmpty())return c.start;if(d==this.getTextRange(c))return c.end;this.remove(c);var u;return d?u=this.insert(c.start,d):u=c.start,u},this.applyDeltas=function(c){for(var d=0;d<c.length;d++)this.applyDelta(c[d])},this.revertDeltas=function(c){for(var d=c.length-1;d>=0;d--)this.revertDelta(c[d])},this.applyDelta=function(c,d){var u=c.action=="insert";(u?c.lines.length<=1&&!c.lines[0]:!i.comparePoints(c.start,c.end))||(u&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(r(this.$lines,c,d),this._signal("change",c)))
|
||
|
|
`)},this.idxToPosition=function(s){for(var i=0,a=0;a<this.folds.length;a++){var l=this.folds[a];if(s-=l.start.column-i,s<0)return{row:l.start.row,column:l.start.column+s};if(s-=l.placeholder.length,s<0)return l.start;i=l.end.column}return{row:this.end.row,column:this.end.column+s}}}).call(o.prototype),t.FoldLine=o}),define("ace/range_list",["require","exports","module","ace/range"],function(e,t,n){var o=e("./range").Range,r=o.comparePoints,s=function(){this.ranges=[]};(function(){this.comparePoints=r,this.pointIndex=function(i,a,l){for(var c=this.ranges,d=l||0;d<c.length;d++){var u=c[d],h=r(i,u.end);if(!(h>0)){var f=r(i,u.start);return h===0?a&&f!==0?-d-2:d:f>0||f===0&&!a?d:-d-1}}return-d-1},this.add=function(i){var a=!i.isEmpty(),l=this.pointIndex(i.start,a);l<0&&(l=-l-1);var c=this.pointIndex(i.end,a,l);return c<0?c=-c-1:c++,this.ranges.splice(l,c-l,i)},this.addList=function(i){for(var a=[],l=i.length;l--;)a.push.apply(a,this.add(i[l]));return a},this.substractPoint=function(i){var a=this.pointIndex(i);if(a>=0)return this.ranges.splice(a,1)},this.merge=function(){var i=[],a=this.ranges;a=a.sort(function(h,f){return r(h.start,f.start)});for(var l=a[0],c,d=1;d<a.length;d++){c=l,l=a[d];var u=r(c.end,l.start);u<0||u==0&&!c.isEmpty()&&!l.isEmpty()||(r(c.end,l.end)<0&&(c.end.row=l.end.row,c.end.column=l.end.column),a.splice(d,1),i.push(l),l=c,d--)}return this.ranges=a,i},this.contains=function(i,a){return this.pointIndex({row:i,column:a})>=0},this.containsPoint=function(i){return this.pointIndex(i)>=0},this.rangeAtPoint=function(i){var a=this.pointIndex(i);if(a>=0)return this.ranges[a]},this.clipRows=function(i,a){var l=this.ranges;if(l[0].start.row>a||l[l.length-1].start.row<i)return[];var c=this.pointIndex({row:i,column:0});c<0&&(c=-c-1);var d=this.pointIndex({row:a,column:0},c);d<0&&(d=-d-1);for(var u=[],h=c;h<d;h++)u.push(l[h]);return u},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(i){this.session&&this.detach(),this.session=i,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(i){for(var a=i.start,l=i.end,c=a.row,d=l.row,u=this.ranges,h=0,f=u.length;h<f;h++){var p=u[h];if(p.end.row>=c)break}if(i.action=="insert")for(var v=d-c,y=-a.column+l.column;h<f;h++){var p=u[h];if(p.start.row>c)break;if(p.start.row==c&&p.start.column>=a.column&&(p.start.column!=a.column||!this.$insertRight)&&(p.start.column+=y,p.start.row+=v),p.end.row==c&&p.end.column>=a.column){if(p.end.column==a.column&&this.$insertRight)continue;p.end.column==a.column&&y>0&&h<f-1&&p.end.column>p.start.column&&p.end.column==u[h+1].start.column&&(p.end.column-=y),p.end.column+=y,p.end.row+=v}}else for(var v=c-d,y=a.column-l.column;h<f;h++){var p=u[h];if(p.start.row>d)break;p.end.row<d&&(p.end.row=c,p.end.column=a.column),(p.start.row<d||p.start.row==d&&p.start.column<=l.colum)&&(p.start.row=c,p.start.column=a.column),p.end.row==d&&(p.end.column<=l.column?(v||p.end.column>a.column)&&(p.end.column=a.column,p.end.row=a.row):(p.end.column+=y,p.end.row+=v)),p.start.row==d&&(p.start.column<=l.column?(v||p.start.column>a.column)&&(p.start.column=a.column,p.start.row=a.row):(p.start.column+=y,p.start.row+=v))}if(v!=0&&h<f)for(;h<f;h++){var p=u[h];p.start.row+=v,p.end.row+=v}}}).call(s.prototype),t.RangeList=s}),define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],function(e,t,n){function o(d,u){d.row-=u.row,d.row==0&&(d.column-=u.column)}function r(d,u){o(d.start,u),o(d.end,u)}function s(d,u){d.row==0&&(d.column+=u.column),d.row+=u.row}function i(d,u){s(d.start,u),s(d.end,u)}e("../range").Range;var a=e("../range_list").RangeList,l=e("../lib/oop"),c=t.Fold=function(d,u){this.foldLine=null,this.placeholder=u,this.range=d,this.start=d.start,this.end=d.end,this.sameRow=d.start.row==d.end.row,this.subFolds=this.ranges=[]};l.inherits(c,a),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.rang
|
||
|
|
`)},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),(typeof v!="object"||!v.getLine)&&(v=new u(v)),this.setDocument(v),this.selection=new l(this),this.$bidiHandler=new s(this),i.resetOptions(this),this.setMode(y),i._signal("session",this)};p.$uid=0,function(){function v(C){return C<4352?!1:C>=4352&&C<=4447||C>=4515&&C<=4519||C>=4602&&C<=4607||C>=9001&&C<=9002||C>=11904&&C<=11929||C>=11931&&C<=12019||C>=12032&&C<=12245||C>=12272&&C<=12283||C>=12288&&C<=12350||C>=12353&&C<=12438||C>=12441&&C<=12543||C>=12549&&C<=12589||C>=12593&&C<=12686||C>=12688&&C<=12730||C>=12736&&C<=12771||C>=12784&&C<=12830||C>=12832&&C<=12871||C>=12880&&C<=13054||C>=13056&&C<=19903||C>=19968&&C<=42124||C>=42128&&C<=42182||C>=43360&&C<=43388||C>=44032&&C<=55203||C>=55216&&C<=55238||C>=55243&&C<=55291||C>=63744&&C<=64255||C>=65040&&C<=65049||C>=65072&&C<=65106||C>=65108&&C<=65126||C>=65128&&C<=65131||C>=65281&&C<=65376||C>=65504&&C<=65510}o.implement(this,a),this.setDocument=function(C){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=C,C.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(C){if(!C){this.$docRowCache=[],this.$screenRowCache=[];return}var k=this.$docRowCache.length,x=this.$getRowCacheIndex(this.$docRowCache,C)+1;k>x&&(this.$docRowCache.splice(x,k),this.$screenRowCache.splice(x,k))},this.$getRowCacheIndex=function(C,k){for(var x=0,M=C.length-1;x<=M;){var T=x+M>>1,L=C[T];if(k>L)x=T+1;else{if(!(k<L))return T;M=T-1}}return x-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(C){var k=C.data;this.$resetRowCache(k.start.row)},this.onChange=function(C){this.$modified=!0,this.$bidiHandler.onChange(C),this.$resetRowCache(C.start.row);var k=this.$updateInternalDataOnChange(C);!this.$fromUndo&&this.$undoManager&&(k&&k.length&&(this.$undoManager.add({action:"removeFolds",folds:k},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(C,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(C),this._signal("change",C)},this.setValue=function(C){this.doc.setValue(C),this.selection.moveTo(0,0),this.$resetRowCache(0),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(C){return this.bgTokenizer.getState(C)},this.getTokens=function(C){return this.bgTokenizer.getTokens(C)},this.getTokenAt=function(C,k){var x=this.bgTokenizer.getTokens(C),M,T=0;if(k==null){var L=x.length-1;T=this.getLine(C).length}else for(var L=0;L<x.length&&(T+=x[L].value.length,!(T>=k));L++);return M=x[L],M?(M.index=L,M.start=T-M.value.length,M):null},this.setUndoManager=function(C){if(this.$undoManager=C,this.$informUndoManager&&this.$informUndoManager.cancel(),C){var k=this;C.addSession(this),this.$syncInformUndoManager=function(){k.$informUndoManager.cancel(),k.mergeUndoDeltas=!1},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(C){this.setOption("useSoftTabs",C)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(C){this.setOption("tabSize",C)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=funct
|
||
|
|
`},this.getWordRange=function(C,k){var x=this.getLine(C),M=!1;if(k>0&&(M=!!x.charAt(k-1).match(this.tokenRe)),M||(M=!!x.charAt(k).match(this.tokenRe)),M)var T=this.tokenRe;else if(/^\s+$/.test(x.slice(k-1,k+1)))var T=/\s/;else var T=this.nonTokenRe;var L=k;if(L>0){do L--;while(L>=0&&x.charAt(L).match(T));L++}for(var H=k;H<x.length&&x.charAt(H).match(T);)H++;return new d(C,L,C,H)},this.getAWordRange=function(C,k){for(var x=this.getWordRange(C,k),M=this.getLine(x.end.row);M.charAt(x.end.column).match(/[ \t]/);)x.end.column+=1;return x},this.setNewLineMode=function(C){this.doc.setNewLineMode(C)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(C){this.setOption("useWorker",C)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(C){var k=C.data;this.bgTokenizer.start(k.first),this._signal("tokenizerUpdate",C)},this.$modes=i.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(C,k){if(C&&typeof C=="object"){if(C.getTokenizer)return this.$onChangeMode(C);var x=C,M=x.path}else M=C||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[M]&&!x){this.$onChangeMode(this.$modes[M]),k&&k();return}this.$modeId=M,i.loadModule(["mode",M],function(T){if(this.$modeId!==M)return k&&k();this.$modes[M]&&!x?this.$onChangeMode(this.$modes[M]):T&&T.Mode&&(T=new T.Mode(x),x||(this.$modes[M]=T,T.$id=M),this.$onChangeMode(T)),k&&k()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(C,k){if(k||(this.$modeId=C.$id),this.$mode!==C){this.$mode=C,this.$stopWorker(),this.$useWorker&&this.$startWorker();var x=C.getTokenizer();if(x.addEventListener!==void 0){var M=this.onReloadTokenizer.bind(this);x.addEventListener("update",M)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(x);else{this.bgTokenizer=new h(x);var T=this;this.bgTokenizer.addEventListener("update",function(L){T._signal("tokenizerUpdate",L)})}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=C.tokenRe,this.nonTokenRe=C.nonTokenRe,k||(C.attachToSession&&C.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(C.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(C){i.warn("Could not load worker",C),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(C){this.$scrollTop===C||isNaN(C)||(this.$scrollTop=C,this._signal("changeScrollTop",C))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(C){this.$scrollLeft===C||isNaN(C)||(this.$scrollLeft=C,this._signal("changeScrollLeft",C))},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(this.lineWidgetsWidth!=null)return this.lineWidgetsWidth;var C=0;return this.lineWidgets.forEach(function(k){k&&k.screenWidth>C&&(C=k.screenWidth)}),this.lineWidgetWidth=C},this.$computeWidth=function(C){if(this.$modified||C){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var k=this.doc.getAllLines(),x=this.$rowLengthCache,M=0,T=0,L=this.$foldData[T],H=L?L.start.row:1/0,F=k.length,D=0;D<F;D++){if(D>H){if(D=L.end.row+1,D>=F)break;L=this.$foldData[T++],H=L?L.start.row:1/0}x[D]==null&&(x[D]=this.$getStringScreenWidth(k[D])[0]),x[D]>M&&(M=x[D])}this.screenWidth=M}},this.getLine=function(C){return this.doc.getLine(C)},this.getLines=function(C,k){return this.doc.getLines(C,k)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(C){return this.doc.getTextRange(C||this.selection.getRange())},this.insert=function(C,k){return this.doc.insert(C,k)},this.remove=function(C){return this.doc.remove(C)},this
|
||
|
|
^`).split(`
|
||
|
|
`),u=[],h=0;h<d.length;h++)try{u.push(new RegExp(d[h],c))}catch{return!1}return u},this.$matchIterator=function(l,c){var d=this.$assembleRegExp(c);if(!d)return!1;var u=c.backwards==1,h=c.skipCurrent!=0,f=c.range,p=c.start;p||(p=f?f[u?"end":"start"]:l.selection.getRange()),p.start&&(p=p[h!=u?"end":"start"]);var v=f?f.start.row:0,y=f?f.end.row:l.getLength()-1;if(u)var g=function(w){var E=p.row;if(!m(E,p.column,w)){for(E--;E>=v;E--)if(m(E,Number.MAX_VALUE,w))return;if(c.wrap!=0){for(E=y,v=p.row;E>=v;E--)if(m(E,Number.MAX_VALUE,w))return}}};else var g=function(w){var E=p.row;if(!m(E,p.column,w)){for(E+=1;E<=y;E++)if(m(E,0,w))return;if(c.wrap!=0){for(E=v,y=p.row;E<=y;E++)if(m(E,0,w))return}}};if(c.$isMultiLine)var A=d.length,m=function(w,E,_){var S=u?w-A+1:w;if(!(S<0)){var C=l.getLine(S),k=C.search(d[0]);if(!(!u&&k<E||k===-1)){for(var x=1;x<A;x++)if(C=l.getLine(S+x),C.search(d[x])==-1)return;var M=C.match(d[A-1])[0].length;if(!(u&&M>E)&&_(S,k,S+A-1,M))return!0}}};else if(u)var m=function(w,E,_){var S=l.getLine(w),C=[],k,x=0;for(d.lastIndex=0;k=d.exec(S);){var M=k[0].length;if(x=k.index,!M){if(x>=S.length)break;d.lastIndex=x+=1}if(k.index+M>E)break;C.push(k.index,M)}for(var T=C.length-1;T>=0;T-=2){var L=C[T-1],M=C[T];if(_(w,L,w,L+M))return!0}};else var m=function(w,E,_){var S=l.getLine(w),C,k;for(d.lastIndex=E;k=d.exec(S);){var x=k[0].length;if(C=k.index,_(w,C,w,C+x))return!0;if(!x&&(d.lastIndex=C+=1,C>=S.length))return!1}};return{forEach:g}}}).call(a.prototype),t.Search=a}),define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){function o(l,c){this.platform=c||(i.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(l),this.$singleCommand=!0}function r(l,c){o.call(this,l,c),this.$singleCommand=!1}var s=e("../lib/keys"),i=e("../lib/useragent"),a=s.KEY_MODS;r.prototype=o.prototype,function(){function l(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}this.addCommand=function(c){this.commands[c.name]&&this.removeCommand(c),this.commands[c.name]=c,c.bindKey&&this._buildKeyHash(c)},this.removeCommand=function(c,d){var u=c&&(typeof c=="string"?c:c.name);c=this.commands[u],d||delete this.commands[u];var h=this.commandKeyBinding;for(var f in h){var p=h[f];if(p==c)delete h[f];else if(Array.isArray(p)){var v=p.indexOf(c);v!=-1&&(p.splice(v,1),p.length==1&&(h[f]=p[0]))}}},this.bindKey=function(c,d,u){if(typeof c=="object"&&c&&(u==null&&(u=c.position),c=c[this.platform]),!!c){if(typeof d=="function")return this.addCommand({exec:d,bindKey:c,name:d.name||c});c.split("|").forEach(function(h){var f="";if(h.indexOf(" ")!=-1){var p=h.split(/\s+/);h=p.pop(),p.forEach(function(g){var A=this.parseKeys(g),m=a[A.hashId]+A.key;f+=(f?" ":"")+m,this._addCommandToBinding(f,"chainKeys")},this),f+=" "}var v=this.parseKeys(h),y=a[v.hashId]+v.key;this._addCommandToBinding(f+y,d,u)},this)}},this._addCommandToBinding=function(c,d,u){var h=this.commandKeyBinding,f;if(!d)delete h[c];else if(!h[c]||this.$singleCommand)h[c]=d;else{Array.isArray(h[c])?(f=h[c].indexOf(d))!=-1&&h[c].splice(f,1):h[c]=[h[c]],typeof u!="number"&&(u=l(d));var p=h[c];for(f=0;f<p.length;f++){var v=p[f],y=l(v);if(y>u)break}p.splice(f,0,d)}},this.addCommands=function(c){c&&Object.keys(c).forEach(function(d){var u=c[d];if(u){if(typeof u=="string")return this.bindKey(u,d);typeof u=="function"&&(u={exec:u}),typeof u=="object"&&(u.name||(u.name=d),this.addCommand(u))}},this)},this.removeCommands=function(c){Object.keys(c).forEach(function(d){this.removeCommand(c[d])},this)},this.bindKeys=function(c){Object.keys(c).forEach(function(d){this.bindKey(d,c[d])},this)},this._buildKeyHash=function(c){this.bindKey(c.bindKey,c)},this.parseKeys=function(c){var d=c.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(y){return y}),u=d.pop(),h=s[u];if(s.FUNCTION_KEYS[h])u=s.FUNCTION_KEYS[h].toLowerCase();else{if(!d.length)return{key:u,hashId:-1};if(d.length==1&&d[0]=="shift")return{key:u.toUpperCase(),hashId:-1}}for(var f=0,p=d.length;p--;){var v=s.KEY_MODS[d[p]];if(v==null)return type
|
||
|
|
`)==-1){var T=new f.fromPoints(x,x);T.end.column+=_.length,this.session.remove(T)}}else{var T=this.getSelectionRange();x=this.session.remove(T),this.clearSelection()}if(_==`
|
||
|
|
`||_==`\r
|
||
|
|
`){var D=C.getLine(x.row);if(x.column>D.search(/\S|$/)){var L=D.substr(x.column).search(/\S|$/);C.doc.removeInLine(x.row,x.column,x.column+L)}}this.clearSelection();var H=x.column,F=C.getState(x.row),D=C.getLine(x.row),O=k.checkOutdent(F,D,_);if(C.insert(x,_),M&&M.selection&&(M.selection.length==2?this.selection.setSelectionRange(new f(x.row,H+M.selection[0],x.row,H+M.selection[1])):this.selection.setSelectionRange(new f(x.row+M.selection[0],M.selection[1],x.row+M.selection[2],M.selection[3]))),C.getDocument().isNewLine(_)){var V=k.getNextLineIndent(F,D.slice(0,x.column),C.getTabString());C.insert({row:x.row+1,column:0},V)}O&&k.autoOutdent(F,C,x.row)},this.onTextInput=function(_,S){if(!S)return this.keyBinding.onTextInput(_);this.startOperation({command:{name:"insertstring"}});var C=this.applyComposition.bind(this,_,S);this.selection.rangeCount?this.forEachSelection(C):C(),this.endOperation()},this.applyComposition=function(_,S){if(S.extendLeft||S.extendRight){var C=this.selection.getRange();C.start.column-=S.extendLeft,C.end.column+=S.extendRight,this.selection.setRange(C),!_&&!C.isEmpty()&&this.remove()}if((_||!this.selection.isEmpty())&&this.insert(_,!0),S.restoreStart||S.restoreEnd){var C=this.selection.getRange();C.start.column-=S.restoreStart,C.end.column-=S.restoreEnd,this.selection.setRange(C)}},this.onCommandKey=function(_,S,C){this.keyBinding.onCommandKey(_,S,C)},this.setOverwrite=function(_){this.session.setOverwrite(_)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(_){this.setOption("scrollSpeed",_)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(_){this.setOption("dragDelay",_)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(_){this.setOption("selectionStyle",_)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(_){this.setOption("highlightActiveLine",_)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(_){this.setOption("highlightGutterLine",_)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(_){this.setOption("highlightSelectedWord",_)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(_){this.renderer.setAnimatedScroll(_)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(_){this.renderer.setShowInvisibles(_)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(_){this.renderer.setDisplayIndentGuides(_)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(_){this.renderer.setShowPrintMargin(_)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(_){this.renderer.setPrintMarginColumn(_)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(_){this.setOption("readOnly",_)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(_){this.setOption("behavioursEnabled",_)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(_){this.setOption("wrapBehavioursEnabled",_)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(_){this.setOption("showFoldWidgets",_)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(_){this.setOption("fadeFoldWidgets",_)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(_){this.selection.isEmpty()&&(_=="left"?this.selection.selectLef
|
||
|
|
`){var T=C.getLine(S.end.row);/^\s+$/.test(T)&&(S.end.column=T.length)}}x&&(S=x)}this.session.remove(S),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 _=this.getSelectionRange();_.start.column==_.end.column&&_.start.row==_.end.row&&(_.end.column=0,_.end.row++),this.session.remove(_),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var _=this.getCursorPosition();this.insert(`
|
||
|
|
`),this.moveCursorToPosition(_)},this.transposeLetters=function(){if(this.selection.isEmpty()){var _=this.getCursorPosition(),S=_.column;if(S!==0){var C=this.session.getLine(_.row),k,x;S<C.length?(k=C.charAt(S)+C.charAt(S-1),x=new f(_.row,S-1,_.row,S+1)):(k=C.charAt(S-1)+C.charAt(S-2),x=new f(_.row,S-2,_.row,S)),this.session.replace(x,k),this.session.selection.moveToPosition(x.end)}}},this.toLowerCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var S=this.getSelectionRange(),C=this.session.getTextRange(S);this.session.replace(S,C.toLowerCase()),this.selection.setSelectionRange(_)},this.toUpperCase=function(){var _=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var S=this.getSelectionRange(),C=this.session.getTextRange(S);this.session.replace(S,C.toUpperCase()),this.selection.setSelectionRange(_)},this.indent=function(){var _=this.session,S=this.getSelectionRange();if(S.start.row<S.end.row){var C=this.$getSelectedRows();_.indentRows(C.first,C.last," ");return}if(S.start.column<S.end.column){var k=_.getTextRange(S);if(!/^\s+$/.test(k)){var C=this.$getSelectedRows();_.indentRows(C.first,C.last," ");return}}var x=_.getLine(S.start.row),M=S.start,T=_.getTabSize(),L=_.documentToScreenColumn(M.row,M.column);if(this.session.getUseSoftTabs())var H=T-L%T,F=s.stringRepeat(" ",H);else{for(var H=L%T;x[S.start.column-1]==" "&&H;)S.start.column--,H--;this.selection.setSelectionRange(S),F=" "}return this.insert(F)},this.blockIndent=function(){var _=this.$getSelectedRows();this.session.indentRows(_.first,_.last," ")},this.blockOutdent=function(){var _=this.session.getSelection();this.session.outdentRows(_.getRange())},this.sortLines=function(){for(var _=this.$getSelectedRows(),S=this.session,C=[],k=_.first;k<=_.last;k++)C.push(S.getLine(k));C.sort(function(T,L){return T.toLowerCase()<L.toLowerCase()?-1:T.toLowerCase()>L.toLowerCase()?1:0});for(var x=new f(0,0,0,0),k=_.first;k<=_.last;k++){var M=S.getLine(k);x.start.row=k,x.end.row=k,x.end.column=M.length,S.replace(x,C[k-_.first])}},this.toggleCommentLines=function(){var _=this.session.getState(this.getCursorPosition().row),S=this.$getSelectedRows();this.session.getMode().toggleCommentLines(_,this.session,S.first,S.last)},this.toggleBlockComment=function(){var _=this.getCursorPosition(),S=this.session.getState(_.row),C=this.getSelectionRange();this.session.getMode().toggleBlockComment(S,this.session,C,_)},this.getNumberAt=function(_,S){var C=/[\-]?[0-9]+(?:\.[0-9]+)?/g;C.lastIndex=0;for(var k=this.session.getLine(_);C.lastIndex<S;){var x=C.exec(k);if(x.index<=S&&x.index+x[0].length>=S){var M={value:x[0],start:x.index,end:x.index+x[0].length};return M}}return null},this.modifyNumber=function(_){var S=this.selection.getCursor().row,C=this.selection.getCursor().column,k=new f(S,C-1,S,C),x=this.session.getTextRange(k);if(!isNaN(parseFloat(x))&&isFinite(x)){var M=this.getNumberAt(S,C);if(M){var T=M.value.indexOf(".")>=0?M.start+M.value.indexOf(".")+1:M.end,L=M.start+M.value.length-T,H=parseFloat(M.value);H*=Math.pow(10,L),T!==M.end&&C<T?_*=Math.pow(10,M.end-C-1):_*=Math.pow(10,M.end-C),H+=_,H/=Math.pow(10,L);var F=H.toFixed(L),D=new f(S,M.start,S,M.end);this.session.replace(D,F),this.moveCursorTo(S,Math.max(M.start+1,C+F.length-M.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var _=this.selection.getCursor().row,S=this.selection.getCursor().column;this.selection.selectWord();var C=this.getSelectedText(),k=this.selection.getWordRange().start.column,x=C.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),M=S-k-1;M<0&&(M=0);var T=0,L=0,H=this;C.match(/[A-Za-z0-9_]+/)&&x.forEach(function(G,Y){L=T+G.length
|
||
|
|
`);var w="";return m.action?(w=m.action=="insert"?"+":"-",w+="["+m.lines+"]"):m.value&&(Array.isArray(m.value)?w=m.value.map(a).join(`
|
||
|
|
`):w=a(m.value)),m.start&&(w+=a(m)),(m.id||m.rev)&&(w+=" ("+(m.id||m.rev)+")"),w}function a(m){return m.start.row+":"+m.start.column+"=>"+m.end.row+":"+m.end.column}function l(m,w){var E=m.action=="insert",_=w.action=="insert";if(E&&_)if(A(w.start,m.end)>=0)u(w,m,-1);else{if(!(A(w.start,m.start)<=0))return null;u(m,w,1)}else if(E&&!_)if(A(w.start,m.end)>=0)u(w,m,-1);else{if(!(A(w.end,m.start)<=0))return null;u(m,w,-1)}else if(!E&&_)if(A(w.start,m.start)>=0)u(w,m,1);else{if(!(A(w.start,m.start)<=0))return null;u(m,w,1)}else if(!E&&!_)if(A(w.start,m.start)>=0)u(w,m,1);else{if(!(A(w.end,m.start)<=0))return null;u(m,w,-1)}return[w,m]}function c(m,w){for(var E=m.length;E--;)for(var _=0;_<w.length;_++)if(!l(m[E],w[_])){for(;E<m.length;){for(;_--;)l(w[_],m[E]);_=w.length,E++}return[m,w]}return m.selectionBefore=w.selectionBefore=m.selectionAfter=w.selectionAfter=null,[w,m]}function d(m,w){var E=m.action=="insert",_=w.action=="insert";if(E&&_)A(m.start,w.start)<0?u(w,m,1):u(m,w,1);else if(E&&!_)A(m.start,w.end)>=0?u(m,w,-1):(A(m.start,w.start)<=0||u(m,g.fromPoints(w.start,m.start),-1),u(w,m,1));else if(!E&&_)A(w.start,m.end)>=0?u(w,m,-1):(A(w.start,m.start)<=0||u(w,g.fromPoints(m.start,w.start),-1),u(m,w,1));else if(!E&&!_)if(A(w.start,m.end)>=0)u(w,m,-1);else{if(!(A(w.end,m.start)<=0)){var S,C;return A(m.start,w.start)<0&&(S=m,m=f(m,w.start)),A(m.end,w.end)>0&&(C=f(m,w.end)),h(w.end,m.start,m.end,-1),C&&!S&&(m.lines=C.lines,m.start=C.start,m.end=C.end,C=m),[w,S,C].filter(Boolean)}u(m,w,-1)}return[w,m]}function u(m,w,E){h(m.start,w.start,w.end,E),h(m.end,w.start,w.end,E)}function h(m,w,E,_){m.row==(_==1?w:E).row&&(m.column+=_*(E.column-w.column)),m.row+=_*(E.row-w.row)}function f(m,w){var E=m.lines,_=m.end;m.end=r(w);var S=m.end.row-m.start.row,C=E.splice(S,E.length),k=S?w.column:w.column-m.start.column;E.push(C[0].substring(0,k)),C[0]=C[0].substr(k);var x={start:r(w),end:_,lines:C,action:m.action};return x}function p(m,w){w=s(w);for(var E=m.length;E--;){for(var _=m[E],S=0;S<_.length;S++){var C=_[S],k=d(C,w);w=k[0],k.length!=2&&(k[2]?(_.splice(S+1,1,k[1],k[2]),S++):k[1]||(_.splice(S,1),S--))}_.length||m.splice(E,1)}return m}function v(m,w){for(var E=0;E<w.length;E++)for(var _=w[E],S=0;S<_.length;S++)p(m,_[S])}var y=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};(function(){this.addSession=function(m){this.$session=m},this.add=function(m,w,E){this.$fromUndo||m!=this.$lastDelta&&((w===!1||!this.lastDeltas)&&(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),m.id=this.$rev=++this.$maxRev),(m.action=="remove"||m.action=="insert")&&(this.$lastDelta=m),this.lastDeltas.push(m))},this.addSelection=function(m,w){this.selections.push({value:m,rev:w||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(m,w){w==null&&(w=this.$rev+1);for(var E=this.$undoStack,_=E.length;_--;){var S=E[_][0];if(S.id<=m)break;S.id<w&&(S.ignore=!0)}this.lastDeltas=null},this.getSelection=function(m,w){for(var E=this.selections,_=E.length;_--;){var S=E[_];if(S.rev<m)return w&&(S=E[_+1]),S}},this.getRevision=function(){return this.$rev},this.getDeltas=function(m,w){w==null&&(w=this.$rev+1);for(var E=this.$undoStack,_=null,S=0,C=E.length;C--;){var k=E[C][0];if(k.id<w&&!_&&(_=C+1),k.id<=m){S=C+1;break}}return E.slice(S,_)},this.getChangedRanges=function(m,w){w==null&&(w=this.$rev+1)},this.getChangedLines=function(m,w){w==null&&(w=this.$rev+1)},this.undo=function(m,w){this.lastDeltas=null;var E=this.$undoStack;if(o(E,E.length)){m||(m=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var _=E.pop(),S=null;return _&&_.length&&(S=m.undoChanges(_,w),this.$redoStack.push(_),this.$syncRev()),this.$fromUndo=!1,S}},this.redo=function(m,w){if(this.lastDeltas=null,m||(m=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var E=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);v(this.$redoStack,E),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(C){C[0].id=++this.$maxRev},this)}var _=this.$redoStack.pop(),S=nu
|
||
|
|
---
|
||
|
|
`+i(this.$redoStack)}}).call(y.prototype);var g=e("./range").Range,A=g.comparePoints;g.comparePoints,t.UndoManager=y}),define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,t,n){var o=e("../lib/dom"),r=function(s,i){this.element=s,this.canvasHeight=i||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(s){o.translate(this.element,0,-(s.firstRowScreen*s.lineHeight%this.canvasHeight)-s.offset*this.$offsetCoefficient)},this.pageChanged=function(s,i){return Math.floor(s.firstRowScreen*s.lineHeight/this.canvasHeight)!==Math.floor(i.firstRowScreen*i.lineHeight/this.canvasHeight)},this.computeLineTop=function(s,i,a){var l=i.firstRowScreen*i.lineHeight,c=Math.floor(l/this.canvasHeight),d=a.documentToScreenRow(s,0)*i.lineHeight;return d-c*this.canvasHeight},this.computeLineHeight=function(s,i,a){return i.lineHeight*a.getRowLength(s)},this.getLength=function(){return this.cells.length},this.get=function(s){return this.cells[s]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(s){if(Array.isArray(s)){this.cells.push.apply(this.cells,s);for(var i=o.createFragment(this.element),a=0;a<s.length;a++)i.appendChild(s[a].element);this.element.appendChild(i)}else this.cells.push(s),this.element.appendChild(s.element)},this.unshift=function(s){if(Array.isArray(s)){this.cells.unshift.apply(this.cells,s);for(var i=o.createFragment(this.element),a=0;a<s.length;a++)i.appendChild(s[a].element);this.element.firstChild?this.element.insertBefore(i,this.element.firstChild):this.element.appendChild(i)}else this.cells.unshift(s),this.element.insertAdjacentElement("afterbegin",s.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(s){s&&(s.element.remove(),this.cellCache.push(s))},this.createCell=function(s,i,a,l){var c=this.cellCache.pop();if(!c){var d=o.createElement("div");l&&l(d),this.element.appendChild(d),c={element:d,text:"",row:s}}return c.row=s,c}}).call(r.prototype),t.Lines=r}),define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],function(e,t,n){function o(d){var u=document.createTextNode("");d.appendChild(u);var h=r.createElement("span");return d.appendChild(h),d}var r=e("../lib/dom"),s=e("../lib/oop"),i=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,l=e("./lines").Lines,c=function(d){this.element=r.createElement("div"),this.element.className="ace_layer ace_gutter-layer",d.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new l(this.element),this.$lines.$offsetCoefficient=1};(function(){s.implement(this,a),this.setSession=function(d){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=d,d&&d.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(d,u){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(d,u)},this.removeGutterDecoration=function(d,u){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(d,u)},this.setAnnotations=function(d){this.$annotations=[];for(var u=0;u<d.length;u++){var h=d[u],f=h.row,p=this.$annotations[f];p||(p=this.$annotations[f]={text:[]});var v=h.text;v=v?i.escapeHTML(v):h.html||"",p.text.indexOf(v)===-1&&p.text.push(v);var y=h.type;y=="error"?p.className=" ace_error":y=="warning"&&p.className!=" ace_error"?p.className=" ace_warning":y=="info"&&!p.className&&(p.className=" ace_info")}},this.$updateAnnotations=function(d){if(this.$annotations.length){var u=d.start.row,h=d.end.row-u;if(h!==0)if(d.action=="remove")this.$annotations.splice(u,h+1,null);else{var f=new Array(h+1);f.unshift(u,1),this.$annotations.splice.
|
||
|
|
`&&c.getNewLineMode()!="windows",u=d?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=u)return this.EOL_CHAR=u,!0},this.setPadding=function(c){this.$padding=c,this.element.style.margin="0 "+c+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(c){this.$fontMetrics=c,this.$fontMetrics.on("changeCharacterSize",function(d){this._signal("changeCharacterSize",d)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(c){this.session=c,c&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(c){return this.showInvisibles==c?!1:(this.showInvisibles=c,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(c){return this.displayIndentGuides==c?!1:(this.displayIndentGuides=c,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var c=this.session.getTabSize();this.tabSize=c;for(var d=this.$tabStrings=[0],u=1;u<c+1;u++)if(this.showInvisibles){var h=this.dom.createElement("span");h.className="ace_invisible ace_invisible_tab",h.textContent=s.stringRepeat(this.TAB_CHAR,u),d.push(h)}else d.push(this.dom.createTextNode(s.stringRepeat(" ",u),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var f="ace_indent-guide",p="",v="";if(this.showInvisibles){f+=" ace_invisible",p=" ace_invisible_space",v=" ace_invisible_tab";var y=s.stringRepeat(this.SPACE_CHAR,this.tabSize),g=s.stringRepeat(this.TAB_CHAR,this.tabSize)}else var y=s.stringRepeat(" ",this.tabSize),g=y;var h=this.dom.createElement("span");h.className=f+p,h.textContent=y,this.$tabStrings[" "]=h;var h=this.dom.createElement("span");h.className=f+v,h.textContent=g,this.$tabStrings[" "]=h}},this.updateLines=function(c,d,u){if(this.config.lastRow!=c.lastRow||this.config.firstRow!=c.firstRow)return this.update(c);this.config=c;for(var h=Math.max(d,c.firstRow),f=Math.min(u,c.lastRow),p=this.element.childNodes,v=0,g=c.firstRow;g<h;g++){var A=this.session.getFoldLine(g);if(A){if(A.containsRow(h)){h=A.start.row;break}g=A.end.row}v++}for(var y=!1,g=h,A=this.session.getNextFoldLine(g),m=A?A.start.row:1/0;g>m&&(g=A.end.row+1,A=this.session.getNextFoldLine(g,A),m=A?A.start.row:1/0),!(g>f);){var w=p[v++];if(w){this.dom.removeChildren(w),this.$renderLine(w,g,g==m?A:!1);var E=c.lineHeight*this.session.getRowLength(g)+"px";w.style.height!=E&&(y=!0,w.style.height=E)}g++}if(y)for(;v<this.$lines.cells.length;){var _=this.$lines.cells[v++];_.element.style.top=this.$lines.computeLineTop(_.row,c,this.session)+"px"}},this.scrollLines=function(c){var d=this.config;if(this.config=c,this.$lines.pageChanged(d,c))return this.update(c);this.$lines.moveContainer(c);var u=c.lastRow,h=d?d.lastRow:-1;if(!d||h<c.firstRow)return this.update(c);if(u<d.firstRow)return this.update(c);if(!d||d.lastRow<c.firstRow)return this.update(c);if(c.lastRow<d.firstRow)return this.update(c);if(d.firstRow<c.firstRow)for(var f=this.session.getFoldedRowCount(d.firstRow,c.firstRow-1);f>0;f--)this.$lines.shift();if(d.lastRow>c.lastRow)for(var f=this.session.getFoldedRowCount(c.lastRow+1,d.lastRow);f>0;f--)this.$lines.pop();c.firstRow<d.firstRow&&this.$lines.unshift(this.$renderLinesFragment(c,c.firstRow,d.firstRow-1)),c.lastRow>d.lastRow&&this.$lines.push(this.$renderLinesFragment(c,d.lastRow+1,c.lastRow))},this.$renderLinesFragment=function(c,d,u){for(var h=[],f=d,p=this.session.getNextFoldLine(f),v=p?p.start.row:1/0;f>v&&(f=p.end.row+1,p=this.session.getNextFoldLine(f,p),v=p?p.start.row:1/0),!(f>u);){var y=this.$lines.createCell(f,c,this.session),g=y.element;this.dom.removeChildren(g),r.setStyle(g.style,"height",this.$lines.computeLineHeight(f,c,this.session)+"px"),r.setStyle(g.style,"top",this.$lines.computeLineTop(f,c,this.session)+"px"),this.$renderL
|
||
|
|
`)+`
|
||
|
|
`),x||(S.start.column=0,S.end.column=L[L.length-1].length),this.selection.setRange(S)}else{_.forEach(function(O){m.substractPoint(O.cursor)});var H=0,F=1/0,D=w.map(function(O){var V=O.cursor,P=A.getLine(V.row),N=P.substr(V.column).search(/\S/g);return N==-1&&(N=0),V.column>H&&(H=V.column),N<F&&(F=N),N});w.forEach(function(O,V){var P=O.cursor,N=H-P.column,q=D[V]-F;N>q?A.insert(P,h.stringRepeat(" ",N-q)):A.remove(new l(P.row,P.column,P.row,P.column-N+q)),O.start.column=O.end.column=H,O.start.row=O.end.row=P.row,O.cursor=O.end}),m.fromOrientedRange(w[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(A,m){function w(L){return h.stringRepeat(" ",L)}function E(L){return L[2]?w(x)+L[2]+w(M-L[2].length+T)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function _(L){return L[2]?w(x+M-L[2].length)+L[2]+w(T)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}function S(L){return L[2]?w(x)+L[2]+w(T)+L[4].replace(/^([=:])\s+/,"$1 "):L[0]}var C=!0,k=!0,x,M,T;return A.map(function(L){var H=L.match(/(\s*)(.*?)(\s*)([=:].*)/);return H?x==null?(x=H[1].length,M=H[2].length,T=H[3].length,H):(x+M+T!=H[1].length+H[2].length+H[3].length&&(k=!1),x!=H[1].length&&(C=!1),x>H[1].length&&(x=H[1].length),M<H[2].length&&(M=H[2].length),T>H[3].length&&(T=H[3].length),H):[L]}).map(m?E:C?k?_:E:S)}}).call(g.prototype),t.onSessionChange=function(A){var m=A.session;m&&!m.multiSelect&&(m.$selectionMarkers=[],m.selection.$initRangeList(),m.multiSelect=m.selection),this.multiSelect=m&&m.multiSelect;var w=A.oldSession;w&&(w.multiSelect.off("addRange",this.$onAddRange),w.multiSelect.off("removeRange",this.$onRemoveRange),w.multiSelect.off("multiSelect",this.$onMultiSelect),w.multiSelect.off("singleSelect",this.$onSingleSelect),w.multiSelect.lead.off("change",this.$checkMultiselectChange),w.multiSelect.anchor.off("change",this.$checkMultiselectChange)),m&&(m.multiSelect.on("addRange",this.$onAddRange),m.multiSelect.on("removeRange",this.$onRemoveRange),m.multiSelect.on("multiSelect",this.$onMultiSelect),m.multiSelect.on("singleSelect",this.$onSingleSelect),m.multiSelect.lead.on("change",this.$checkMultiselectChange),m.multiSelect.anchor.on("change",this.$checkMultiselectChange)),m&&this.inMultiSelectMode!=m.selection.inMultiSelectMode&&(m.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=s,e("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(A){s(this),A?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",d)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",d))},value:!0},enableBlockSelect:{set:function(A){this.$blockSelectEnabled=A},value:!0}})}),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(s,i,a){var l=s.getLine(a);return this.foldingStartMarker.test(l)?"start":i=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(l)?"end":""},this.getFoldWidgetRange=function(s,i,a){return null},this.indentationBlock=function(s,i,a){var l=/\S/,c=s.getLine(i),d=c.search(l);if(d!=-1){for(var u=a||c.length,h=s.getLength(),f=i,p=i;++i<h;){var v=s.getLine(i).search(l);if(v!=-1){if(v<=d)break;p=i}}if(p>f){var y=s.getLine(p).length;return new o(f,u,p,y)}}},this.openingBracketBlock=function(s,i,a,l,c){var d={row:a,column:l+1},u=s.$findClosingBracket(i,d,c);if(u){var h=s.foldWidgets[u.row];return h==null&&(h=s.getFoldWidget(u.row)),h=="start"&&u.row>d.row&&(u.row--,u.column=s.getLine(u.row).length),o.fromPoints(d,u)}},this.closingBracketBlock=function(s,i,a,l,c){var d={row:a,column:l},u=s.$findOpeningBracket(i,d);if(u)return u.column++,d.column--,o.fromPoints(u,d)}}).call(r.prototype)}),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: #e8e
|
||
|
|
`:"ulULE".indexOf(E)!=-1&&(A={changeCase:E,local:E>"a"})),[A]}},{regex:/}/,onMatch:function(A,m,w){return[w.length?w.shift():A]}},{regex:/\$(?:\d+|\w+)/,onMatch:y},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(A,m,w){var E=y(A.substr(1),m,w);return w.unshift(E[0]),E},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+g("\\|")+"*\\|",onMatch:function(A,m,w){w[0].choices=A.slice(1,-1).split(",")},next:"start"},{regex:"/("+g("/")+"+)/(?:("+g("/")+"*)/)(\\w*):?",onMatch:function(A,m,w){var E=w[0];return E.fmtString=A,A=this.splitRegex.exec(A),E.guard=A[1],E.fmt=A[2],E.flag=A[3],""},next:"start"},{regex:"`"+g("`")+"*`",onMatch:function(A,m,w){return w[0].code=A.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(A,m,w){w[0]&&(w[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+g("/")+"+)/",token:"regex"},{regex:"",onMatch:function(A,m,w){w.inFormatString=!0},next:"start"}]}),u.prototype.getTokenizer=function(){return u.$tokenizer},u.$tokenizer},this.tokenizeTmSnippet=function(y,g){return this.getTokenizer().getLineTokens(y,g).tokens.map(function(A){return A.value||A})},this.$getDefaultValue=function(y,g){if(/^[A-Z]\d+$/.test(g)){var A=g.substr(1);return(this.variables[g[0]+"__"]||{})[A]}if(/^\d+$/.test(g))return(this.variables.__||{})[g];if(g=g.replace(/^TM_/,""),!!y){var m=y.session;switch(g){case"CURRENT_WORD":var w=m.getWordRange();case"SELECTION":case"SELECTED_TEXT":return m.getTextRange(w);case"CURRENT_LINE":return m.getLine(y.getCursorPosition().row);case"PREV_LINE":return m.getLine(y.getCursorPosition().row-1);case"LINE_INDEX":return y.getCursorPosition().column;case"LINE_NUMBER":return y.getCursorPosition().row+1;case"SOFT_TABS":return m.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return m.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(y,g){return this.variables.hasOwnProperty(g)?this.variables[g](y,g)||"":this.$getDefaultValue(y,g)||""},this.tmStrFormat=function(y,g,A){var m=g.flag||"",w=g.guard;w=new RegExp(w,m.replace(/[^gi]/,""));var E=this.tokenizeTmSnippet(g.fmt,"formatString"),_=this,S=y.replace(w,function(){_.variables.__=arguments;for(var C=_.resolveVariables(E,A),k="E",x=0;x<C.length;x++){var M=C[x];if(typeof M=="object")if(C[x]="",M.changeCase&&M.local){var T=C[x+1];T&&typeof T=="string"&&(M.changeCase=="u"?C[x]=T[0].toUpperCase():C[x]=T[0].toLowerCase(),C[x+1]=T.substr(1))}else M.changeCase&&(k=M.changeCase);else k=="U"?C[x]=M.toUpperCase():k=="L"&&(C[x]=M.toLowerCase())}return C.join("")});return this.variables.__=null,S},this.resolveVariables=function(y,g){function A(S){var C=y.indexOf(S,w+1);C!=-1&&(w=C)}for(var m=[],w=0;w<y.length;w++){var E=y[w];if(typeof E=="string")m.push(E);else{if(typeof E!="object")continue;if(E.skip)A(E);else{if(E.processed<w)continue;if(E.text){var _=this.getVariableValue(g,E.text);_&&E.fmtString&&(_=this.tmStrFormat(_,E)),E.processed=w,E.expectIf==null?_&&(m.push(_),A(E)):_?E.skip=E.elseBranch:A(E)}else(E.tabstopId!=null||E.changeCase!=null)&&m.push(E)}}}return m},this.insertSnippetForSelection=function(y,g){function A(G){for(var Y=[],oe=0;oe<G.length;oe++){var ne=G[oe];if(typeof ne=="object"){if(k[ne.tabstopId])continue;var J=G.lastIndexOf(ne,oe-1);ne=Y[J]||{tabstopId:ne.tabstopId}}Y[oe]=ne}return Y}var m=y.getCursorPosition(),w=y.session.getLine(m.row),E=y.session.getTabString(),_=w.match(/^\s*/)[0];m.column<_.length&&(_=_.slice(0,m.column)),g=g.replace(/\r/g,"");var S=this.tokenizeTmSnippet(g);S=this.resolveVariables(S,y),S=S.map(function(G){return G==`
|
||
|
|
`?G+_:typeof G=="string"?G.replace(/\t/g,E):G});var C=[];S.forEach(function(G,Y){if(typeof G=="object"){var oe=G.tabstopId,ne=C[oe];if(ne||(ne=C[oe]=[],ne.index=oe,ne.value=""),ne.indexOf(G)===-1){ne.push(G);var J=S.indexOf(G,Y+1);if(J!==-1){var Z=S.slice(Y+1,J),te=Z.some(function(ce){return typeof ce=="object"});te&&!ne.value?ne.value=Z:Z.length&&(!ne.value||typeof ne.value!="string")&&(ne.value=Z.join(""))}}}}),C.forEach(function(G){G.length=0});for(var k={},x=0;x<S.length;x++){var M=S[x];if(typeof M=="object"){var T=M.tabstopId,L=S.indexOf(M,x+1);if(k[T]){k[T]===M&&(k[T]=null);continue}var H=C[T],F=typeof H.value=="string"?[H.value]:A(H.value);F.unshift(x+1,Math.max(0,L-x)),F.push(M),k[T]=M,S.splice.apply(S,F),H.indexOf(M)===-1&&H.push(M)}}var D=0,O=0,V="";S.forEach(function(G){if(typeof G=="string"){var Y=G.split(`
|
||
|
|
`);Y.length>1?(O=Y[Y.length-1].length,D+=Y.length-1):O+=G.length,V+=G}else G.start?G.end={row:D,column:O}:G.start={row:D,column:O}});var P=y.getSelectionRange(),N=y.session.replace(P,V),q=new h(y),W=y.inVirtualSelectionMode&&y.selection.index;q.addTabstops(C,P.start,N,W)},this.insertSnippet=function(y,g){var A=this;if(y.inVirtualSelectionMode)return A.insertSnippetForSelection(y,g);y.forEachSelection(function(){A.insertSnippetForSelection(y,g)},null,{keepOrder:!0}),y.tabstopManager&&y.tabstopManager.tabNext()},this.$getScope=function(y){var g=y.session.$mode.$id||"";if(g=g.split("/").pop(),g==="html"||g==="php"){g==="php"&&!y.session.$mode.inlinePhp&&(g="html");var A=y.getCursorPosition(),m=y.session.getState(A.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?g="javascript":m.substring(0,4)=="css-"?g="css":m.substring(0,4)=="php-"&&(g="php"))}return g},this.getActiveScopes=function(y){var g=this.$getScope(y),A=[g],m=this.snippetMap;return m[g]&&m[g].includeScopes&&A.push.apply(A,m[g].includeScopes),A.push("_"),A},this.expandWithTab=function(y,g){var A=this,m=y.forEachSelection(function(){return A.expandSnippetForSelection(y,g)},null,{keepOrder:!0});return m&&y.tabstopManager&&y.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(y,g){var A=y.getCursorPosition(),m=y.session.getLine(A.row),w=m.substring(0,A.column),E=m.substr(A.column),_=this.snippetMap,S;return this.getActiveScopes(y).some(function(C){var k=_[C];return k&&(S=this.findMatchingSnippet(k,w,E)),!!S},this),S?(g&&g.dryRun||(y.session.doc.removeInLine(A.row,A.column-S.replaceBefore.length,A.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(y,S.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(y,g,A){for(var m=y.length;m--;){var w=y[m];if(!(w.startRe&&!w.startRe.test(g))&&!(w.endRe&&!w.endRe.test(A))&&!(!w.startRe&&!w.endRe))return w.matchBefore=w.startRe?w.startRe.exec(g):[""],w.matchAfter=w.endRe?w.endRe.exec(A):[""],w.replaceBefore=w.triggerRe?w.triggerRe.exec(g)[0]:"",w.replaceAfter=w.endTriggerRe?w.endTriggerRe.exec(A)[0]:"",w}},this.snippetMap={},this.snippetNameMap={},this.register=function(y,g){function A(C){return C&&!/^\^?\(.*\)\$?$|^\\b$/.test(C)&&(C="(?:"+C+")"),C||""}function m(C,k,x){return C=A(C),k=A(k),x?(C=k+C,C&&C[C.length-1]!="$"&&(C+="$")):(C+=k,C&&C[0]!="^"&&(C="^"+C)),new RegExp(C)}function w(C){C.scope||(C.scope=g||"_"),g=C.scope,E[g]||(E[g]=[],_[g]={});var k=_[g];if(C.name){var x=k[C.name];x&&S.unregister(x),k[C.name]=C}E[g].push(C),C.tabTrigger&&!C.trigger&&(!C.guard&&/^\w/.test(C.tabTrigger)&&(C.guard="\\b"),C.trigger=s.escapeRegExp(C.tabTrigger)),!(!C.trigger&&!C.guard&&!C.endTrigger&&!C.endGuard)&&(C.startRe=m(C.trigger,C.guard,!0),C.triggerRe=new RegExp(C.trigger),C.endRe=m(C.endTrigger,C.endGuard,!0),C.endTriggerRe=new RegExp(C.endTrigger))}var E=this.snippetMap,_=this.snippetNameMap,S=this;y||(y=[]),y&&y.content?w(y):Array.isArray(y)&&y.forEach(w),this._signal("registerSnippets",{scope:g})},this.unregister=function(y,g){function A(E){var _=w[E.scope||g];if(_&&_[E.name]){delete _[E.name];var S=m[E.scope||g],C=S&&S.indexOf(E);C>=0&&S.splice(C,1)}}var m=this.snippetMap,w=this.snippetNameMap;y.content?A(y):Array.isArray(y)&&y.forEach(A)},this.parseSnippetFile=function(y){y=y.replace(/\r/g,"");for(var g=[],A={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,w;w=m.exec(y);){if(w[1])try{A=JSON.parse(w[1]),g.push(A)}catch{}if(w[4])A.content=w[4].replace(/^\t/gm,""),g.push(A),A={};else{var E=w[2],_=w[3];if(E=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;A.guard=S.exec(_)[1],A.trigger=S.exec(_)[1],A.endTrigger=S.exec(_)[1],A.endGuard=S.exec(_)[1]}else E=="snippet"?(A.tabTrigger=_.match(/^\S*/)[0],A.name||(A.name=_)):A[E]=_}}return g},this.getSnippetByName=function(y,g){var A=this.snippetNameMap,m;return this.getActiveScopes(g).some(function(w){var E=A[w];return E&&(m=E[y]),!!m},this),m}}).call(u.prototype);var h=function(y){if(y.tabstopManager)return y.tabstopManager;y.tabstopMa
|
||
|
|
`,E.length),-1),f.data=E||[],f.setRow(0)},f.getData=function(E){return f.data[E]},f.getRow=function(){return g.start.row},f.setRow=function(E){E=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,E)),g.start.row!=E&&(f.selection.clearSelection(),g.start.row=g.end.row=E||0,f.session._emit("changeBackMarker"),f.moveCursorTo(E||0,0),f.isOpen&&f._signal("select"))},f.on("changeSelection",function(){f.isOpen&&f.setRow(f.selection.lead.row),f.renderer.scrollCursorIntoView()}),f.hide=function(){this.container.style.display="none",this._signal("hide"),f.isOpen=!1},f.show=function(E,_,S){var C=this.container,k=window.innerHeight,x=window.innerWidth,M=this.renderer,T=M.$maxLines*_*1.4,L=E.top+this.$borderSize,H=L>k/2&&!S;H&&L+_+T>k?(M.$maxPixelHeight=L-2*this.$borderSize,C.style.top="",C.style.bottom=k-L+"px",f.isTopdown=!1):(L+=_,M.$maxPixelHeight=k-L-.2*_,C.style.top=L+"px",C.style.bottom="",f.isTopdown=!0),C.style.display="",this.renderer.$textLayer.checkForSizeChanges();var F=E.left;F+C.offsetWidth>x&&(F=x-C.offsetWidth),C.style.left=F+"px",this._signal("show"),v=null,f.isOpen=!0},f.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},f.$imageSize=0,f.$borderSize=1,f};l.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #3a674e;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4); position: absolute; z-index: 2;}.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid rgba(109, 150, 13, 0.8); background: rgba(58, 103, 78, 0.62);}.ace_completion-meta { opacity: 0.5; margin: 0.9em;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #2d69c7;}.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #93ca12;}.ace_editor.ace_autocomplete { width: 300px; z-index: 200000; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4; background: #fefefe; color: #111;}.ace_dark.ace_editor.ace_autocomplete { border: 1px #484747 solid; box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); line-height: 1.4; background: #25282c; color: #c1c1c1;}","autocompletion.css"),t.AcePopup=d}),define("ace/autocomplete/util",["require","exports","module"],function(e,t,n){t.parForEach=function(r,s,i){var a=0,l=r.length;l===0&&i();for(var c=0;c<l;c++)s(r[c],function(d,u){a++,a===l&&i(d,u)})};var o=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(r,s,i){i=i||o;for(var a=[],l=s-1;l>=0&&i.test(r[l]);l--)a.push(r[l]);return a.reverse().join("")},t.retrieveFollowingIdentifier=function(r,s,i){i=i||o;for(var a=[],l=s;l<r.length&&i.test(r[l]);l++)a.push(r[l]);return a},t.getCompletionPrefix=function(r){var s=r.getCursorPosition(),i=r.session.getLine(s.row),a;return r.completers.forEach(function(l){l.identifierRegexps&&l.identifierRegexps.forEach(function(c){!a&&c&&(a=this.retrievePrecedingIdentifier(i,s.column,c))}.bind(this))}.bind(this)),a||this.retrievePrecedingIdentifier(i,s.column)}}),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,s=e("./autocomplete/util");e("./lib/event");var i=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=i.delayedCall(function(
|